Skip to content
GitHub repository
Class

SilkGeometry

Geometry behind every SilkGraphics: one unit quad plus an interleaved instance buffer (40 floats per primitive). You rarely need it directly.

Extends#

  • Geometry

Constructors#

Constructor#

new SilkGeometry(): SilkGeometry;

Returns#

SilkGeometry

Overrides#

Geometry.constructor

Properties#

PropertyModifierTypeDescriptionDefined in
instanceBufferreadonlyBufferPer-primitive data, grown on demand and reused across clear().SilkGraphics.ts:344
localBoundsreadonlyBoundsBounds of everything drawn, in local units (includes stroke widths and blur).SilkGraphics.ts:346

Accessors#

bounds#

Get Signature#

get bounds(): Bounds;

Returns the bounds of the geometry.

Returns

Bounds

Overrides#

Geometry.bounds