@logicflow/core 1.2.0-alpha.6 → 1.2.0-alpha.9
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/dist/entry.js +7 -0
- package/dist/logic-flow.js +37911 -1
- package/dist/logic-flow.min.js +1 -0
- package/package.json +5 -5
- package/types/model/EditConfigModel.d.ts +7 -0
- package/types/model/edge/PolylineEdgeModel.d.ts +16 -4
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logicflow/core",
|
|
3
|
-
"version": "1.2.0-alpha.
|
|
3
|
+
"version": "1.2.0-alpha.9",
|
|
4
4
|
"description": "LogicFlow core, to quickly build flowchart editor",
|
|
5
|
-
"main": "dist/
|
|
6
|
-
"unpkg": "dist/logic-flow.js",
|
|
7
|
-
"jsdelivr": "dist/logic-flow.js",
|
|
5
|
+
"main": "dist/entry.js",
|
|
6
|
+
"unpkg": "dist/logic-flow.min.js",
|
|
7
|
+
"jsdelivr": "dist/logic-flow.min.js",
|
|
8
8
|
"license": "Apache-2.0",
|
|
9
9
|
"homepage": "http://logic-flow.org/",
|
|
10
10
|
"types": "types/index.d.ts",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"dev": "cross-env NODE_ENV=development webpack-dev-server --client-log-level warning --config scripts/webpack.config.dev.js",
|
|
18
18
|
"clean": "rimraf dist lib esm cjs",
|
|
19
19
|
"build": "npm run build:umd",
|
|
20
|
-
"build:umd": "cross-env NODE_ENV=production webpack --config scripts/webpack.config.build.js && cp -r src/style/ dist/style",
|
|
20
|
+
"build:umd": "cross-env NODE_ENV=production webpack --config scripts/webpack.config.build.js && cp -r src/style/ dist/style && cp scripts/entry.js dist",
|
|
21
21
|
"build-analyse": "cross-env analyse=true npm run build",
|
|
22
22
|
"types": "tsc -d --declarationDir ./tempTypes --outDir temp && rimraf types && mv ./tempTypes/src ./types && rimraf temp && rimraf tempTypes",
|
|
23
23
|
"lint": "eslint . --ext .ts,.tsx",
|
|
@@ -68,6 +68,12 @@ export interface EditConfigInterface {
|
|
|
68
68
|
* 不支持ctrl,ctrl会触发contextmenu
|
|
69
69
|
*/
|
|
70
70
|
multipleSelectKey?: string;
|
|
71
|
+
/**
|
|
72
|
+
* 拖动节点靠近画布边缘时,
|
|
73
|
+
* 是否自动扩张画布.
|
|
74
|
+
* 默认false。
|
|
75
|
+
*/
|
|
76
|
+
autoExpand?: string;
|
|
71
77
|
}
|
|
72
78
|
/**
|
|
73
79
|
* 页面编辑配置
|
|
@@ -89,6 +95,7 @@ export default class EditConfigModel {
|
|
|
89
95
|
edgeTextEdit: boolean;
|
|
90
96
|
nodeTextDraggable: boolean;
|
|
91
97
|
edgeTextDraggable: boolean;
|
|
98
|
+
autoExpand: boolean;
|
|
92
99
|
multipleSelectKey: string;
|
|
93
100
|
defaultConfig: {};
|
|
94
101
|
constructor(config: EditConfigInterface);
|
|
@@ -37,15 +37,27 @@ export default class PolylineEdgeModel extends BaseEdgeModel {
|
|
|
37
37
|
moveEndPoint(deltaX: any, deltaY: any): void;
|
|
38
38
|
dragAppendStart(): void;
|
|
39
39
|
dragAppendSimple(appendInfo: any, dragInfo: any): {
|
|
40
|
-
start:
|
|
41
|
-
|
|
40
|
+
start: {
|
|
41
|
+
x: any;
|
|
42
|
+
y: any;
|
|
43
|
+
};
|
|
44
|
+
end: {
|
|
45
|
+
x: any;
|
|
46
|
+
y: any;
|
|
47
|
+
};
|
|
42
48
|
startIndex: any;
|
|
43
49
|
endIndex: any;
|
|
44
50
|
direction: any;
|
|
45
51
|
};
|
|
46
52
|
dragAppend(appendInfo: any, dragInfo: any): {
|
|
47
|
-
start:
|
|
48
|
-
|
|
53
|
+
start: {
|
|
54
|
+
x: any;
|
|
55
|
+
y: any;
|
|
56
|
+
};
|
|
57
|
+
end: {
|
|
58
|
+
x: any;
|
|
59
|
+
y: any;
|
|
60
|
+
};
|
|
49
61
|
startIndex: any;
|
|
50
62
|
endIndex: any;
|
|
51
63
|
direction: any;
|