@logicflow/layout 1.2.0-alpha.15 → 1.2.0-alpha.16
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/dagre.js +115 -40
- package/es/dagre.d.ts +5 -6
- package/es/dagre.js +115 -40
- package/lib/dagre.js +3 -3
- package/package.json +1 -1
- package/types/dagre.d.ts +5 -6
package/package.json
CHANGED
package/types/dagre.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export declare class Dagre {
|
|
|
4
4
|
lf: any;
|
|
5
5
|
option: DagreLayoutOptions;
|
|
6
6
|
render(lf: any): void;
|
|
7
|
+
getBytesLength(word: string): number;
|
|
7
8
|
/**
|
|
8
9
|
* option: {
|
|
9
10
|
* rankdir: "TB", // layout 方向, 可选 TB, BT, LR, RL
|
|
@@ -11,16 +12,14 @@ export declare class Dagre {
|
|
|
11
12
|
* nodeSize: undefined, // 节点大小
|
|
12
13
|
* nodesepFunc: undefined, // 节点水平间距(px)
|
|
13
14
|
* ranksepFunc: undefined, // 每一层节点之间间距
|
|
14
|
-
* nodesep:
|
|
15
|
-
* ranksep:
|
|
15
|
+
* nodesep: 40, // 节点水平间距(px) 注意:如果有grid,需要保证nodesep为grid的偶数倍
|
|
16
|
+
* ranksep: 40, // 每一层节点之间间距 注意:如果有grid,需要保证ranksep为grid的偶数倍
|
|
16
17
|
* controlPoints: false, // 是否保留布局连线的控制点
|
|
17
18
|
* radial: false, // 是否基于 dagre 进行辐射布局
|
|
18
19
|
* focusNode: null, // radial 为 true 时生效,关注的节点
|
|
19
20
|
* };
|
|
20
21
|
*/
|
|
21
22
|
layout(option?: {}): void;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
y: any;
|
|
25
|
-
}[];
|
|
23
|
+
pointFilter(points: any): any;
|
|
24
|
+
calcPointsList(model: any, nodes: any): any;
|
|
26
25
|
}
|