source: imaps-frontend/node_modules/svg-pathdata/lib/SVGPathData.d.ts@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 1.4 KB
Line 
1import { TransformableSVG } from "./TransformableSVG";
2import { SVGCommand } from "./types";
3export declare class SVGPathData extends TransformableSVG {
4 commands: SVGCommand[];
5 constructor(content: string | SVGCommand[]);
6 encode(): string;
7 getBounds(): import("./types").TransformFunction & {
8 minX: number;
9 maxX: number;
10 minY: number;
11 maxY: number;
12 };
13 transform(transformFunction: (input: SVGCommand) => SVGCommand | SVGCommand[]): this;
14 static encode(commands: SVGCommand[]): string;
15 static parse(path: string): SVGCommand[];
16 static readonly CLOSE_PATH: 1;
17 static readonly MOVE_TO: 2;
18 static readonly HORIZ_LINE_TO: 4;
19 static readonly VERT_LINE_TO: 8;
20 static readonly LINE_TO: 16;
21 static readonly CURVE_TO: 32;
22 static readonly SMOOTH_CURVE_TO: 64;
23 static readonly QUAD_TO: 128;
24 static readonly SMOOTH_QUAD_TO: 256;
25 static readonly ARC: 512;
26 static readonly LINE_COMMANDS: number;
27 static readonly DRAWING_COMMANDS: number;
28}
29export declare const COMMAND_ARG_COUNTS: {
30 2: number;
31 16: number;
32 4: number;
33 8: number;
34 1: number;
35 128: number;
36 256: number;
37 32: number;
38 64: number;
39 512: number;
40};
41export { encodeSVGPath } from "./SVGPathDataEncoder";
42export { SVGPathDataParser } from "./SVGPathDataParser";
43export { SVGPathDataTransformer } from "./SVGPathDataTransformer";
Note: See TracBrowser for help on using the repository browser.