Skip to content
pixi-silk
GitHub repository
Class

SilkTextGeometry

import { SilkTextGeometry } from 'pixi-silk/text';

Geometry behind every SilkText: one unit quad plus one instance of 12 floats per glyph. SilkText owns and fills it. You rarely need it directly.

Extends#

  • Geometry

Constructors#

Constructor#

new SilkTextGeometry(): SilkTextGeometry;

Returns#

SilkTextGeometry

Overrides#

Geometry.constructor

Properties#

PropertyModifierTypeDescriptionDefined in
instanceBufferreadonlyBufferPer-glyph instance data, 12 floats per glyph. It grows when the text needs more room and never shrinks.text/SilkText.ts:123
localBoundsreadonlyBoundsThe text box in local units, anchor offset included. Also returned by bounds.text/SilkText.ts:125

Accessors#

bounds#

Get Signature#

get bounds(): Bounds;

Returns the bounds of the geometry.

Returns

Bounds

Overrides#

Geometry.bounds