first commit
This commit is contained in:
commit
eb2f504652
32490 changed files with 5731109 additions and 0 deletions
43
node_modules/canvg/lib/util/string.d.ts
generated
vendored
Normal file
43
node_modules/canvg/lib/util/string.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
/**
|
||||
* HTML-safe compress white-spaces.
|
||||
* @param str - String to compress.
|
||||
* @returns String.
|
||||
*/
|
||||
export declare function compressSpaces(str: string): string;
|
||||
/**
|
||||
* HTML-safe left trim.
|
||||
* @param str - String to trim.
|
||||
* @returns String.
|
||||
*/
|
||||
export declare function trimLeft(str: string): string;
|
||||
/**
|
||||
* HTML-safe right trim.
|
||||
* @param str - String to trim.
|
||||
* @returns String.
|
||||
*/
|
||||
export declare function trimRight(str: string): string;
|
||||
/**
|
||||
* String to numbers array.
|
||||
* @param str - Numbers string.
|
||||
* @returns Numbers array.
|
||||
*/
|
||||
export declare function toNumbers(str: string): number[];
|
||||
/**
|
||||
* Normalize attribute name.
|
||||
* @param name - Attribute name.
|
||||
* @returns Normalized attribute name.
|
||||
*/
|
||||
export declare function normalizeAttributeName(name: string): string;
|
||||
/**
|
||||
* Parse external URL.
|
||||
* @param url - CSS url string.
|
||||
* @returns Parsed URL.
|
||||
*/
|
||||
export declare function parseExternalUrl(url: string): string;
|
||||
/**
|
||||
* Transform floats to integers in rgb colors.
|
||||
* @param color - Color to normalize.
|
||||
* @returns Normalized color.
|
||||
*/
|
||||
export declare function normalizeColor(color: string): string;
|
||||
//# sourceMappingURL=string.d.ts.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue