This is used to wrap 2d/gl/svg canvas elements together.

interface CanvasWrapper {
    element: HTMLCanvasElement | SVGElement;
    setSize: ((width, height) => void);
}

Properties

Properties

element: HTMLCanvasElement | SVGElement
setSize: ((width, height) => void)

Type declaration

    • (width, height): void
    • Parameters

      • width: number
      • height: number

      Returns void