Options
All
  • Public
  • Public/Protected
  • All
Menu

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.

Hierarchy

  • Diagram3D

Index

Constructors

constructor

  • 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

Readonly ctx

ctx: CanvasRenderingContext2D

Accessors

canvas

  • get canvas(): HTMLCanvasElement

fillStyle

  • get fillStyle(): string | CanvasGradient | CanvasPattern
  • set fillStyle(fillStyle: string | CanvasGradient | CanvasPattern): void

Methods

beginPath

  • beginPath(): void

clear

  • clear(): void

closePath

  • closePath(): void

fill

  • fill(fillRule?: "nonzero" | "evenodd"): void

fillText

  • fillText(text: string, X: VectorE3, maxWidth?: number): void

lineTo

  • lineTo(X: VectorE3): void

moveTo

  • moveTo(X: VectorE3): void

stroke

  • stroke(): void

strokeText

  • strokeText(text: string, X: VectorE3, maxWidth?: number): void

Legend

  • Constructor
  • Property
  • Method
  • Accessor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Property
  • Method
  • Protected property
  • Protected method
  • Static property
  • Static method

Generated using TypeDoc