Skip to content

3.7.2 Latex

Jonas de Luna Skulberg edited this page Oct 15, 2023 · 2 revisions

Latex

Extends:

Implements:

Parameters:

Required:

  • text?: string Text string to display.

Optional:

  • position?: InputPosition Component position.
  • color?: string Text color.
  • fontSize?: number Text fontsize.
  • anchorY?: "top" | "middle" | "bottom" Text anchor Y.
  • anchorX?: "left" | "center" | "right" Text anchor X.
  • draggable?: Draggable Whether the component should be draggable.

Default Parameters:

position = [0, 0],
color = "black",
fontSize = 50,
anchorX = "left",
anchorY = "bottom",
draggable = undefined,

Implemented Methods:

  • collidesWith(other: Object3D): boolean
  • distanceTo(other: Object3D<Event>): number

Methods

  • setPosition(position: InputPosition): void Set the component position.
Clone this wiki locally