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: string) => Promise<string> = defaultDownloader

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

    Returns Promise<string>