@logicflow/extension 1.1.12 → 1.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,6 @@
1
+ export declare class Locale {
2
+ constructor(LogicFlow?: any, map?: Object);
3
+ replaceTranslator(LogicFlow: any, map: Object): void;
4
+ setDefault(LogicFlow: any): void;
5
+ static defaultTranslator: (text: string) => string;
6
+ }
@@ -1,17 +1,25 @@
1
1
  /**
2
2
  * 快照插件,生成视图
3
3
  */
4
- declare const Snapshot: {
5
- pluginName: string;
6
- install(lf: any): void;
4
+ declare class Snapshot {
5
+ static pluginName: string;
6
+ lf: any;
7
+ offsetX: number;
8
+ offsetY: number;
9
+ fileName: string;
10
+ customCssRules: string;
11
+ useGlobalRules: boolean;
12
+ constructor({ lf }: {
13
+ lf: any;
14
+ });
7
15
  getSvgRootElement(lf: any): any;
8
16
  triggerDownload(imgURI: string): void;
9
17
  removeAnchor(element: any): void;
10
- downloadSvg(svg: SVGGraphicsElement, fileName: string, backgroundColor: string): void;
11
- getBase64(svg: SVGGraphicsElement, backgroundColor: string): Promise<unknown>;
12
- getBlob(svg: SVGGraphicsElement, backgroundColor: string): Promise<unknown>;
18
+ getSnapshot(fileName: string, backgroundColor: string): void;
19
+ getSnapshotBase64(backgroundColor: string): Promise<unknown>;
20
+ getSnapshotBlob(backgroundColor: string): Promise<unknown>;
13
21
  getClassRules(): string;
14
22
  getCanvasData(svg: SVGGraphicsElement, backgroundColor: string): Promise<unknown>;
15
- };
23
+ }
16
24
  export default Snapshot;
17
25
  export { Snapshot, };
@@ -5,11 +5,11 @@ export declare function toLogicflowData(data: any): {
5
5
  nodes: any[];
6
6
  edges: any[];
7
7
  };
8
- declare const TurboAdapter: {
9
- pluginName: string;
10
- install(lf: any): void;
11
- shapeConfigMap: Map<any, any>;
12
- setCustomShape(key: any, val: any): void;
8
+ declare class TurboAdapter {
9
+ static pluginName: string;
10
+ constructor({ lf }: {
11
+ lf: any;
12
+ });
13
13
  adapterOut(logicflowData: any): {
14
14
  flowElementList: any[];
15
15
  };
@@ -17,6 +17,5 @@ declare const TurboAdapter: {
17
17
  nodes: any[];
18
18
  edges: any[];
19
19
  };
20
- };
21
- export { TurboAdapter };
20
+ }
22
21
  export default TurboAdapter;
@@ -1,2 +0,0 @@
1
- import { h } from '@logicflow/core';
2
- export default function Ellipse(props: any): h.JSX.Element;
package/types/curved.d.ts DELETED
File without changes
@@ -1,28 +0,0 @@
1
- declare class GroupShrink {
2
- static pluginName: string;
3
- group: any;
4
- lf: any;
5
- shrinkWidth: number;
6
- shrinkHeight: number;
7
- constructor({ lf }: {
8
- lf: any;
9
- });
10
- /**
11
- * 收缩
12
- */
13
- startShrink(group: any): void;
14
- /**
15
- * 展开
16
- */
17
- startExpand(group: any): void;
18
- /**
19
- * 获取分组内的节点上的所有边,以及计算新的分组节点需要连接的边,之后删除原来的边
20
- */
21
- private getGroupEdges;
22
- /**
23
- * 获取分组内的节点和左上角节点,获取到有效信息后,删除节点
24
- */
25
- private getGroupNodes;
26
- private getGraphDataWithGroup;
27
- }
28
- export { GroupShrink, };