Function htmlToCanvas

  • Renders an HTML string to a canvas. This is done by first embedding HTML into a svg and then rendering the svg to a canvas.

    Parameters

    • html: string

      HTML string

    • style: string

      CSS string

    • options: ImageCanvasOptions

      options for rendering the canvas

    Returns Promise<HTMLCanvasElement>

    HTML canvas element

Generated using TypeDoc