@logicflow/extension 1.2.0-alpha.0 → 1.2.0-alpha.3
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.
- package/cjs/components/control/index.js +16 -16
- package/cjs/components/menu/index.js +9 -9
- package/cjs/index.js +1 -0
- package/cjs/locale/en-locale/en.js +22 -0
- package/cjs/locale/en-locale/index.js +29 -0
- package/cjs/locale/locale.js +19 -0
- package/cjs/tools/snapshot/index.js +47 -46
- package/cjs/turbo-adapter/index.js +71 -41
- package/es/components/control/index.d.ts +2 -3
- package/es/components/control/index.js +16 -16
- package/es/components/menu/index.d.ts +2 -3
- package/es/components/menu/index.js +9 -9
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/locale/en-locale/en.d.ts +19 -0
- package/es/locale/en-locale/en.js +19 -0
- package/es/locale/en-locale/index.d.ts +9 -0
- package/es/locale/en-locale/index.js +26 -0
- package/es/locale/locale.d.ts +6 -0
- package/es/locale/locale.js +16 -0
- package/es/tools/snapshot/index.d.ts +15 -7
- package/es/tools/snapshot/index.js +47 -46
- package/es/turbo-adapter/index.d.ts +6 -7
- package/es/turbo-adapter/index.js +70 -40
- package/lib/AutoLayout.js +1 -1
- package/lib/BpmnAdapter.js +1 -1
- package/lib/BpmnElement.js +1 -1
- package/lib/ContextMenu.js +1 -1
- package/lib/Control.js +1 -1
- package/lib/CurvedEdge.js +1 -1
- package/lib/DndPanel.js +1 -1
- package/lib/EnLocale.js +1 -0
- package/lib/FlowPath.js +1 -1
- package/lib/Group.js +1 -1
- package/lib/InsertNodeInPolyline.js +1 -1
- package/lib/Menu.js +1 -1
- package/lib/MiniMap.js +1 -1
- package/lib/NodeResize.js +1 -1
- package/lib/RectLabelNode.js +1 -1
- package/lib/SelectionSelect.js +1 -1
- package/lib/Snapshot.js +1 -1
- package/lib/TurboAdapter.js +1 -1
- package/lib/lfJson2Xml.js +1 -1
- package/lib/lfXml2Json.js +1 -1
- package/package.json +2 -2
- package/types/components/control/index.d.ts +2 -3
- package/types/components/menu/index.d.ts +2 -3
- package/types/index.d.ts +1 -0
- package/types/locale/en-locale/en.d.ts +19 -0
- package/types/locale/en-locale/index.d.ts +9 -0
- package/types/locale/locale.d.ts +6 -0
- package/types/tools/snapshot/index.d.ts +15 -7
- package/types/turbo-adapter/index.d.ts +6 -7
|
@@ -13,14 +13,13 @@ export declare type MenuConfig = {
|
|
|
13
13
|
};
|
|
14
14
|
declare class Menu {
|
|
15
15
|
lf: LogicFlow;
|
|
16
|
+
LogicFlow: any;
|
|
16
17
|
private __container;
|
|
17
18
|
private __menuDOM;
|
|
18
19
|
private menuTypeMap;
|
|
19
20
|
private __currentData;
|
|
20
21
|
static pluginName: string;
|
|
21
|
-
constructor(
|
|
22
|
-
lf: any;
|
|
23
|
-
});
|
|
22
|
+
constructor(args: any);
|
|
24
23
|
/**
|
|
25
24
|
* 初始化设置默认内置菜单栏
|
|
26
25
|
*/
|
package/types/index.d.ts
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const en: {
|
|
2
|
+
文本: string;
|
|
3
|
+
开始: string;
|
|
4
|
+
缩小流程图: string;
|
|
5
|
+
缩小: string;
|
|
6
|
+
放大流程图: string;
|
|
7
|
+
放大: string;
|
|
8
|
+
恢复流程原有尺寸: string;
|
|
9
|
+
适应: string;
|
|
10
|
+
回到上一步: string;
|
|
11
|
+
上一步: string;
|
|
12
|
+
移到下一步: string;
|
|
13
|
+
下一步: string;
|
|
14
|
+
删除: string;
|
|
15
|
+
编辑文本: string;
|
|
16
|
+
复制: string;
|
|
17
|
+
};
|
|
18
|
+
export default en;
|
|
19
|
+
export { en };
|
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 快照插件,生成视图
|
|
3
3
|
*/
|
|
4
|
-
declare
|
|
5
|
-
pluginName: string;
|
|
6
|
-
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
|
9
|
-
pluginName: string;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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;
|