@logicflow/extension 1.1.0-alpha.3 → 1.1.0-alpha.4
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/group-shrink/index.js +213 -0
- package/cjs/index.js +1 -0
- package/cjs/materials/group/GroupNode.js +123 -6
- package/cjs/tools/snapshot/index.js +7 -2
- package/es/group-shrink/index.d.ts +28 -0
- package/es/group-shrink/index.js +210 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/materials/group/GroupNode.d.ts +13 -4
- package/es/materials/group/GroupNode.js +123 -6
- package/es/tools/snapshot/index.js +7 -2
- 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/FlowPath.js +1 -1
- package/lib/Group.js +1 -1
- package/lib/GroupShrink.js +1 -0
- 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/group-shrink/index.d.ts +28 -0
- package/types/index.d.ts +1 -0
- package/types/materials/group/GroupNode.d.ts +13 -4
|
@@ -5,7 +5,19 @@ declare class GroupNodeModel extends RectResize.model {
|
|
|
5
5
|
children: Set<string>;
|
|
6
6
|
isRestrict: boolean;
|
|
7
7
|
resizable: boolean;
|
|
8
|
+
foldedWidth: number;
|
|
9
|
+
foldedHeight: number;
|
|
10
|
+
unfoldedWidth: number;
|
|
11
|
+
unfoldedHight: number;
|
|
8
12
|
initNodeData(data: any): void;
|
|
13
|
+
foldGroup(isFolded: any): void;
|
|
14
|
+
/**
|
|
15
|
+
* 折叠分组的时候,处理分组内部子节点上的连线
|
|
16
|
+
* 1. 为了保证校验规则不被打乱,所以只隐藏子节点上面的连线。
|
|
17
|
+
* 2. 重新创建一个属性一样的边。
|
|
18
|
+
* 3. 这个边拥有virtual=true的属性,表示不支持直接修改此边内容。
|
|
19
|
+
*/
|
|
20
|
+
private foldEdge;
|
|
9
21
|
isInRange({ x1, y1, x2, y2 }: {
|
|
10
22
|
x1: any;
|
|
11
23
|
y1: any;
|
|
@@ -32,12 +44,9 @@ declare class GroupNodeModel extends RectResize.model {
|
|
|
32
44
|
getData(): import("@logicflow/core").NodeData;
|
|
33
45
|
}
|
|
34
46
|
declare class GroupNode extends RectResize.view {
|
|
35
|
-
/**
|
|
36
|
-
* 重新toFront,阻止其置顶
|
|
37
|
-
*/
|
|
38
|
-
toFront(): void;
|
|
39
47
|
getControlGroup(): h.JSX.Element;
|
|
40
48
|
getAddedableShape(): import("preact").VNode<any>;
|
|
49
|
+
getFoldIcon(): import("preact").VNode<any>;
|
|
41
50
|
getResizeShape(): import("preact").VNode<any>;
|
|
42
51
|
}
|
|
43
52
|
declare const _default: {
|