Skip to content
pixi-silk
GitHub repository
Class

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#

ParameterTypeDefault value
capacitynumber16

Returns#

MessageGeometry

Overrides#

Geometry.constructor

Properties#

PropertyModifierTypeDescriptionDefined in
instancesreadonlyBufferInstance data, INSTANCE_FLOATS floats per instance.packages/pixi-silk/src/i18n/pixi/geometry.ts:10