main
Last change
on this file 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 | |
---|
1 | import { TransformableSVG } from "./TransformableSVG";
|
---|
2 | import { SVGCommand } from "./types";
|
---|
3 | export 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 | }
|
---|
29 | export 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 | };
|
---|
41 | export { encodeSVGPath } from "./SVGPathDataEncoder";
|
---|
42 | export { SVGPathDataParser } from "./SVGPathDataParser";
|
---|
43 | export { SVGPathDataTransformer } from "./SVGPathDataTransformer";
|
---|
Note:
See
TracBrowser
for help on using the repository browser.