MessageGeometry
import { MessageGeometry } from 'pixi-silk/i18n/pixi';
The geometry of a SilkMessage’s text buffer: one unit quad, and one instance (INSTANCE_FLOATS
floats) per glyph or line. PixiBackend owns it. You rarely need it directly.
Extends#
Geometry
Constructors#
Constructor#
new MessageGeometry(capacity?: number): MessageGeometry;
Makes room for capacity instances. The buffer grows when more are written.
Parameters#
| Parameter | Type | Default value |
|---|---|---|
capacity | number | 16 |
Returns#
MessageGeometry
Overrides#
Geometry.constructor
Properties#
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
instances | readonly | Buffer | Instance data, INSTANCE_FLOATS floats per instance. | packages/pixi-silk/src/i18n/pixi/geometry.ts:10 |