Skip to content

Intermact API Reference / @intermact/core / ObjectStyle

Interface: ObjectStyle

Defined in: packages/core/src/object/style.ts:9

Visual style shared by 2D/3D objects. Renderer-agnostic.

Properties

color?

readonly optional color?: string

Defined in: packages/core/src/object/style.ts:26

3D material color convenience alias.


doubleSided?

readonly optional doubleSided?: boolean

Defined in: packages/core/src/object/style.ts:30

Render both faces of 3D meshes/surfaces (default true for surfaces).


fill?

readonly optional fill?: string

Defined in: packages/core/src/object/style.ts:13

Fill color (CSS color string).


fillRule?

readonly optional fillRule?: "nonzero" | "evenodd"

Defined in: packages/core/src/object/style.ts:24

Fill rule for self-intersecting / holed paths.


lineWidth?

readonly optional lineWidth?: LineWidth

Defined in: packages/core/src/object/style.ts:20

Stroke width; world units unless declared as px (§15).


opacity?

readonly optional opacity?: number

Defined in: packages/core/src/object/style.ts:22

Overall opacity multiplier in [0,1].


pointSize?

readonly optional pointSize?: number

Defined in: packages/core/src/object/style.ts:28

Point size for 3D point clouds (world units).


stroke?

readonly optional stroke?: string

Defined in: packages/core/src/object/style.ts:11

Stroke color (CSS color string).


underlayFill?

readonly optional underlayFill?: string

Defined in: packages/core/src/object/style.ts:18

Wider underlay fill behind fill (glyph outline halo). Used instead of ribbon-stroking outline contours, which spikes at sharp corners.

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)