CSSPropertyPath.d.ts 1.1 KB

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