url.d.mts 428 B

1234567891011121314151617
  1. /**
  2. * Encode SVG for use in url()
  3. *
  4. * Short alternative to encodeURIComponent() that encodes only stuff used in SVG, generating
  5. * smaller code.
  6. */
  7. declare function encodeSVGforURL(svg: string): string;
  8. /**
  9. * Generate data: URL from SVG
  10. */
  11. declare function svgToData(svg: string): string;
  12. /**
  13. * Generate url() from SVG
  14. */
  15. declare function svgToURL(svg: string): string;
  16. export { encodeSVGforURL, svgToData, svgToURL };