Handles loading images from SVG.

Implements

Methods

  • Create an SVGLoader from the content of an SVG image. SVGs are loaded within a sandboxed iframe with sandbox="allow-same-origin" thereby disabling JavaScript.

    Parameters

    • text: string

      Textual representation of the SVG (e.g. <svg viewbox='...'>...</svg>).

    • options: boolean | Partial<SVGLoaderOptions> = false

      if true or false, treated as the sanitize option -- don't store unknown attributes.

    Returns SVGLoader

Generated using TypeDoc

OpenSource licenses