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.
43 lines
1.4 KiB
43 lines
1.4 KiB
import { TransformableSVG } from "./TransformableSVG"; |
|
import { SVGCommand } from "./types"; |
|
export declare class SVGPathData extends TransformableSVG { |
|
commands: SVGCommand[]; |
|
constructor(content: string | SVGCommand[]); |
|
encode(): string; |
|
getBounds(): import("./types").TransformFunction & { |
|
minX: number; |
|
maxX: number; |
|
minY: number; |
|
maxY: number; |
|
}; |
|
transform(transformFunction: (input: SVGCommand) => SVGCommand | SVGCommand[]): this; |
|
static encode(commands: SVGCommand[]): string; |
|
static parse(path: string): SVGCommand[]; |
|
static readonly CLOSE_PATH: 1; |
|
static readonly MOVE_TO: 2; |
|
static readonly HORIZ_LINE_TO: 4; |
|
static readonly VERT_LINE_TO: 8; |
|
static readonly LINE_TO: 16; |
|
static readonly CURVE_TO: 32; |
|
static readonly SMOOTH_CURVE_TO: 64; |
|
static readonly QUAD_TO: 128; |
|
static readonly SMOOTH_QUAD_TO: 256; |
|
static readonly ARC: 512; |
|
static readonly LINE_COMMANDS: number; |
|
static readonly DRAWING_COMMANDS: number; |
|
} |
|
export declare const COMMAND_ARG_COUNTS: { |
|
2: number; |
|
16: number; |
|
4: number; |
|
8: number; |
|
1: number; |
|
128: number; |
|
256: number; |
|
32: number; |
|
64: number; |
|
512: number; |
|
}; |
|
export { encodeSVGPath } from "./SVGPathDataEncoder"; |
|
export { SVGPathDataParser } from "./SVGPathDataParser"; |
|
export { SVGPathDataTransformer } from "./SVGPathDataTransformer";
|
|
|