123456789101112131415161718192021222324252627 |
- import { Dictionary, JSONObject } from '@antv/x6-common';
- import { Line, Rectangle, Ellipse, Polyline, Path, Segment } from '@antv/x6-geometry';
- import { CellView } from './cell';
- export declare class Cache {
- protected view: CellView;
- protected elemCache: Dictionary<Element, Cache.Item>;
- pathCache: {
- data?: string;
- length?: number;
- segmentSubdivisions?: Segment[][];
- };
- constructor(view: CellView);
- clean(): void;
- get(elem: Element): Cache.Item;
- getData(elem: Element): JSONObject;
- getMatrix(elem: Element): DOMMatrix;
- getShape(elem: Element): Path | Rectangle | Line | Polyline | Ellipse;
- getBoundingRect(elem: Element): Rectangle;
- }
- export declare namespace Cache {
- interface Item {
- data?: JSONObject;
- matrix?: DOMMatrix;
- boundingRect?: Rectangle;
- shape?: Rectangle | Ellipse | Polyline | Path | Line;
- }
- }
|