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?
readonlyoptionalcolor?:string
Defined in: packages/core/src/object/style.ts:26
3D material color convenience alias.
doubleSided?
readonlyoptionaldoubleSided?:boolean
Defined in: packages/core/src/object/style.ts:30
Render both faces of 3D meshes/surfaces (default true for surfaces).
fill?
readonlyoptionalfill?:string
Defined in: packages/core/src/object/style.ts:13
Fill color (CSS color string).
fillRule?
readonlyoptionalfillRule?:"nonzero"|"evenodd"
Defined in: packages/core/src/object/style.ts:24
Fill rule for self-intersecting / holed paths.
lineWidth?
readonlyoptionallineWidth?:LineWidth
Defined in: packages/core/src/object/style.ts:20
Stroke width; world units unless declared as px (§15).
opacity?
readonlyoptionalopacity?:number
Defined in: packages/core/src/object/style.ts:22
Overall opacity multiplier in [0,1].
pointSize?
readonlyoptionalpointSize?:number
Defined in: packages/core/src/object/style.ts:28
Point size for 3D point clouds (world units).
stroke?
readonlyoptionalstroke?:string
Defined in: packages/core/src/object/style.ts:11
Stroke color (CSS color string).
underlayFill?
readonlyoptionalunderlayFill?: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.