Intermact API Reference / @intermact/core / InstancedTrait
Interface: InstancedTrait
Defined in: packages/core/src/object/traits.ts:110
Single base geometry instanced across many transforms (design.md §6.6, §15.2). The object also bakes the aggregated geometry into its stroke/fill traits (so headless sampling, SVG, hit-testing and bounds stay correct); a GPU renderer reads this trait instead to draw one geometry N times via real instancing (InstancedMesh) rather than a single giant buffer.
Properties
baseFill?
readonlyoptionalbaseFill?: readonlySampledContour2D[]
Defined in: packages/core/src/object/traits.ts:117
Base fill contours in local space (when the base object is fillable).
baseStroke?
readonlyoptionalbaseStroke?:SampledPath2D
Defined in: packages/core/src/object/traits.ts:115
Base stroke path in local space (one geometry, drawn per instance).
instances
readonlyinstances: readonlyInstanceTransform2D[]
Defined in: packages/core/src/object/traits.ts:113
Per-instance transforms applied by the renderer.
kind
readonlykind:"instanced"
Defined in: packages/core/src/object/traits.ts:111