Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
text: TextPrimitive
The text primitive to be added.
dimension?: Dimension =
null
Notes:
- This function can throw errors.
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
- text: TextPrimitive