Edit

PrimitiveShapesManager Class

Primitive Shapes class used to allow adding and removing text primitives to the world.

Properties

maxShapes

read-only maxShapes: number;

This is the maximum number of allowed primitive shapes.

Type: number

Methods

addText

addText(text: TextPrimitive, dimension?: Dimension): void

Adds a new text primitive to the world.

Parameters

Notes:

removeAll

removeAll(): void

Removes all text primitives from the world.

removeText

removeText(text: TextPrimitive): void

Removes an instance of a text primitive from the world. This is equivalent to calling remove on the text itself.

Parameters