Function createCanvas

  • Creates a Canvas instance. This function works in both Node.js and Web browsers, where there is no Canvas constructor.

    Parameters

    • width: number
    • height: number
    • Optional type: "svg" | "pdf"

      Optionally specify to create a PDF or SVG canvas. Defaults to an image canvas.

    Returns Canvas

Generated using TypeDoc