版博士V2.0程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

18 lines
428 B

  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 };