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.
20 lines
713 B
20 lines
713 B
2 years ago
|
import { TransformableSVG } from "./TransformableSVG";
|
||
|
import { SVGCommand, TransformFunction } from "./types";
|
||
|
export declare class SVGPathDataParser extends TransformableSVG {
|
||
|
private curNumber;
|
||
|
private curCommandType;
|
||
|
private curCommandRelative;
|
||
|
private canParseCommandOrComma;
|
||
|
private curNumberHasExp;
|
||
|
private curNumberHasExpDigits;
|
||
|
private curNumberHasDecimal;
|
||
|
private curArgs;
|
||
|
constructor();
|
||
|
finish(commands?: SVGCommand[]): SVGCommand[];
|
||
|
parse(str: string, commands?: SVGCommand[]): SVGCommand[];
|
||
|
/**
|
||
|
* Return a wrapper around this parser which applies the transformation on parsed commands.
|
||
|
*/
|
||
|
transform(transform: TransformFunction): this;
|
||
|
}
|