@logicflow/core 1.2.0-alpha.7 → 1.2.0-alpha.8
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/package.json
CHANGED
|
@@ -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;
|