Hierarchy

  • Viewport

Constructors

Properties

canvas: HTMLCanvasElement

HTML Canvas on which the model is rendered

textRenderer: CSS2DRenderer

HTML Element in which text is rendered

Accessors

Methods

  • Calculates and returns the aspect ratio of the parent element.

    Returns

    The aspect ratio (width divided by height) of the parent element.

    Returns number

  • Returns the pixel size of the parent element.

    Returns

    The pixel size of the parent element.

    Returns Vector2

Generated using TypeDoc