ps3
    Preparing search index...

    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
      • Optionaltype: "svg" | "pdf"

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

      Returns Canvas