Function embedUrlRefs

  • Find all URLs in svg, download them and replace with the URL in svg with the downloaded data URLs.

    Parameters

    • str: string

      string

    • downloader: ((p) => Promise<string>) = defaultDownloader

      function to download the URLs in svg and return the data URL

        • (p): Promise<string>
        • Parameters

          • p: string

          Returns Promise<string>

    Returns Promise<string>

Generated using TypeDoc