Class Diagram3D

A wrapper around the HTML canvas element that projects from 3D onto the canvas. This utility conveniently integrates with the PerspectiveCamera to provide an overlay for WebGL.

Constructors

  • Parameters

    • canvas: string | HTMLCanvasElement

      The canvas elementId or the HTML canvas element.

    • camera: Camera

      Provides the camera (eye, look, and up) parameters.

    • prism: Prism

      Provides the viewport (near, far, fov, and aspect) parameters.

    Returns Diagram3D

Properties

ctx: CanvasRenderingContext2D

Accessors

Methods