Intermact API Reference / @intermact/core / instanceField
Function: instanceField()
instanceField(
object,transforms):IMObject2D
Defined in: packages/core/src/pcg/operators.ts:146
Instance a single geometry across many transforms (design.md §6.6, §15.2). The returned object both (a) bakes the aggregated geometry into its stroke/fill traits — so headless sampling, SVG, hit-testing and bounds stay correct — and (b) carries an InstancedTrait holding the base geometry plus per-instance transforms. A GPU renderer draws the base geometry once per instance via real InstancedMesh instancing (M16) instead of the giant aggregated buffer; renderers without an instanced path fall back to the baked group geometry (identical pixels, no GPU acceleration).
Parameters
object
transforms
readonly ObjectTransform2D[]