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.
17 lines
428 B
17 lines
428 B
/**
|
|
* Encode SVG for use in url()
|
|
*
|
|
* Short alternative to encodeURIComponent() that encodes only stuff used in SVG, generating
|
|
* smaller code.
|
|
*/
|
|
declare function encodeSVGforURL(svg: string): string;
|
|
/**
|
|
* Generate data: URL from SVG
|
|
*/
|
|
declare function svgToData(svg: string): string;
|
|
/**
|
|
* Generate url() from SVG
|
|
*/
|
|
declare function svgToURL(svg: string): string;
|
|
|
|
export { encodeSVGforURL, svgToData, svgToURL };
|
|
|