Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • CanvasManager

Index

Constructors

constructor

  • new CanvasManager(mainCanvas: HTMLCanvasElement): CanvasManager
  • Parameters

    • mainCanvas: HTMLCanvasElement

    Returns CanvasManager

Properties

Private canvasByName

canvasByName: Record<string, HTMLCanvasElement>

Private mainCanvas

mainCanvas: HTMLCanvasElement

Methods

create

  • create(name: string, opts: CanvasOptions): CanvasRenderingContext2D
  • Parameters

    Returns CanvasRenderingContext2D

get

  • get(name: string): HTMLCanvasElement | undefined
  • Parameters

    • name: string

    Returns HTMLCanvasElement | undefined

Private getContextAndScale

  • getContextAndScale(canvas: HTMLCanvasElement, contextAttributes?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D
  • Parameters

    • canvas: HTMLCanvasElement
    • Optional contextAttributes: CanvasRenderingContext2DSettings

    Returns CanvasRenderingContext2D

resize

  • resize(): ClientRect | DOMRect
  • Returns ClientRect | DOMRect

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc