UNPKG

1.06 kBTypeScriptView Raw
1import type { DisplayObject, ParsedPathStyleProps } from '../../display-objects';
2import { Rectangle } from '../../shapes';
3import type { CSSProperty } from '../CSSProperty';
4import { parsePath, mergePaths } from '../parser';
5export declare class CSSPropertyPath implements Partial<CSSProperty<ParsedPathStyleProps['path'], ParsedPathStyleProps['path']>> {
6 /**
7 * path2Curve
8 */
9 parser: typeof parsePath;
10 calculator(name: string, oldParsed: ParsedPathStyleProps['path'], parsed: ParsedPathStyleProps['path']): {
11 absolutePath: import("../..").PathCommand[];
12 hasArc: boolean;
13 segments: import("../../display-objects").PathSegment[];
14 polygons: [number, number][][];
15 polylines: [number, number][][];
16 curve: import("../..").PathCommand[];
17 totalLength: number;
18 curveSegments: number[][];
19 zCommandIndexes: number[];
20 rect: Rectangle;
21 };
22 mixer: typeof mergePaths;
23 /**
24 * update local position
25 */
26 postProcessor(object: DisplayObject): void;
27}