@antv/layout 1.2.14-beta.1 → 1.2.14-beta.2
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/62953f7fd7012203b024.worker.js +2 -0
- package/dist/62953f7fd7012203b024.worker.js.map +1 -0
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/lib/d3-force/index.d.ts +33 -0
- package/lib/d3-force/index.js +162 -0
- package/lib/d3-force/index.js.map +1 -0
- package/lib/d3-force/types.d.ts +108 -0
- package/lib/d3-force/types.js +2 -0
- package/lib/d3-force/types.js.map +1 -0
- package/lib/d3-force-3d/index.d.ts +25 -0
- package/lib/d3-force-3d/index.js +47 -0
- package/lib/d3-force-3d/index.js.map +1 -0
- package/lib/d3-force-3d/types.d.ts +44 -0
- package/lib/d3-force-3d/types.js +2 -0
- package/lib/d3-force-3d/types.js.map +1 -0
- package/lib/exports.d.ts +4 -1
- package/lib/exports.js +2 -1
- package/lib/exports.js.map +1 -1
- package/lib/registry.js +3 -1
- package/lib/registry.js.map +1 -1
- package/package.json +2 -1
- package/dist/85db61ddc757dae66e04.worker.js +0 -2
- package/dist/85db61ddc757dae66e04.worker.js.map +0 -1
- package/lib/d3Force/forceInBox.d.ts +0 -28
- package/lib/d3Force/forceInBox.js +0 -329
- package/lib/d3Force/forceInBox.js.map +0 -1
- package/lib/d3Force/index.d.ts +0 -57
- package/lib/d3Force/index.js +0 -313
- package/lib/d3Force/index.js.map +0 -1
package/lib/d3Force/index.js
DELETED
|
@@ -1,313 +0,0 @@
|
|
|
1
|
-
import { __awaiter, __rest } from "tslib";
|
|
2
|
-
import { isFunction, isNumber, isObject } from '@antv/util';
|
|
3
|
-
import * as d3Force from 'd3-force';
|
|
4
|
-
import { cloneFormatData, isArray } from '../util';
|
|
5
|
-
import forceInBox from './forceInBox';
|
|
6
|
-
const DEFAULTS_LAYOUT_OPTIONS = {
|
|
7
|
-
center: [0, 0],
|
|
8
|
-
preventOverlap: false,
|
|
9
|
-
nodeSize: undefined,
|
|
10
|
-
nodeSpacing: undefined,
|
|
11
|
-
linkDistance: 50,
|
|
12
|
-
forceSimulation: null,
|
|
13
|
-
alphaDecay: 0.028,
|
|
14
|
-
alphaMin: 0.001,
|
|
15
|
-
alpha: 0.3,
|
|
16
|
-
collideStrength: 1,
|
|
17
|
-
clustering: false,
|
|
18
|
-
clusterNodeStrength: -1,
|
|
19
|
-
clusterEdgeStrength: 0.1,
|
|
20
|
-
clusterEdgeDistance: 100,
|
|
21
|
-
clusterFociStrength: 0.8,
|
|
22
|
-
clusterNodeSize: 10,
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* Layout the nodes' positions with d3's basic classic force
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* // Assign layout options when initialization.
|
|
29
|
-
* const layout = new D3ForceLayout({ center: [100, 100] });
|
|
30
|
-
* const positions = await layout.execute(graph); // { nodes: [], edges: [] }
|
|
31
|
-
*
|
|
32
|
-
* // Or use different options later.
|
|
33
|
-
* const layout = new D3ForceLayout({ center: [100, 100] });
|
|
34
|
-
* const positions = await layout.execute(graph, { center: [100, 100] }); // { nodes: [], edges: [] }
|
|
35
|
-
*
|
|
36
|
-
* // If you want to assign the positions directly to the nodes, use assign method.
|
|
37
|
-
* await layout.assign(graph, { center: [100, 100] });
|
|
38
|
-
*/
|
|
39
|
-
export class D3ForceLayout {
|
|
40
|
-
constructor(options = {}) {
|
|
41
|
-
this.options = options;
|
|
42
|
-
this.id = 'd3force';
|
|
43
|
-
this.options = Object.assign(Object.assign({}, DEFAULTS_LAYOUT_OPTIONS), options);
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Return the positions of nodes and edges(if needed).
|
|
47
|
-
*/
|
|
48
|
-
execute(graph, options) {
|
|
49
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
-
return this.genericForceLayout(false, graph, options);
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* To directly assign the positions to the nodes.
|
|
55
|
-
*/
|
|
56
|
-
assign(graph, options) {
|
|
57
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
-
this.genericForceLayout(true, graph, options);
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Stop simulation immediately.
|
|
63
|
-
*/
|
|
64
|
-
stop() {
|
|
65
|
-
var _a;
|
|
66
|
-
(_a = this.forceSimulation) === null || _a === void 0 ? void 0 : _a.stop();
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Manually steps the simulation by the specified number of iterations.
|
|
70
|
-
* @see https://github.com/d3/d3-force#simulation_tick
|
|
71
|
-
*/
|
|
72
|
-
tick(iterations = 1) {
|
|
73
|
-
this.forceSimulation.tick(iterations);
|
|
74
|
-
const result = {
|
|
75
|
-
nodes: formatOutNodes(this.lastLayoutNodes),
|
|
76
|
-
edges: formatOutEdges(this.lastLayoutEdges),
|
|
77
|
-
};
|
|
78
|
-
if (this.lastAssign) {
|
|
79
|
-
result.nodes.forEach((node) => this.lastGraph.mergeNodeData(node.id, {
|
|
80
|
-
x: node.data.x,
|
|
81
|
-
y: node.data.y,
|
|
82
|
-
}));
|
|
83
|
-
}
|
|
84
|
-
return result;
|
|
85
|
-
}
|
|
86
|
-
genericForceLayout(assign, graph, options) {
|
|
87
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
88
|
-
const mergedOptions = Object.assign(Object.assign({}, this.options), options);
|
|
89
|
-
const nodes = graph.getAllNodes();
|
|
90
|
-
const edges = graph.getAllEdges();
|
|
91
|
-
const layoutNodes = nodes.map((node) => {
|
|
92
|
-
var _a, _b;
|
|
93
|
-
return (Object.assign(Object.assign({}, cloneFormatData(node)), { x: (_a = node.data) === null || _a === void 0 ? void 0 : _a.x, y: (_b = node.data) === null || _b === void 0 ? void 0 : _b.y }));
|
|
94
|
-
});
|
|
95
|
-
const layoutEdges = edges.map((edge) => cloneFormatData(edge));
|
|
96
|
-
// Use them later in `tick`.
|
|
97
|
-
this.lastLayoutNodes = layoutNodes;
|
|
98
|
-
this.lastLayoutEdges = layoutEdges;
|
|
99
|
-
this.lastAssign = assign;
|
|
100
|
-
this.lastGraph = graph;
|
|
101
|
-
const { alphaMin, alphaDecay, alpha, nodeStrength, edgeStrength, linkDistance, clustering, clusterFociStrength, clusterEdgeDistance, clusterEdgeStrength, clusterNodeStrength, clusterNodeSize, collideStrength = 1, center = [0, 0], preventOverlap, nodeSize, nodeSpacing, onTick, } = mergedOptions;
|
|
102
|
-
let { forceSimulation } = mergedOptions;
|
|
103
|
-
return new Promise((resolve) => {
|
|
104
|
-
if (!forceSimulation) {
|
|
105
|
-
try {
|
|
106
|
-
// 定义节点的力
|
|
107
|
-
const nodeForce = d3Force.forceManyBody();
|
|
108
|
-
if (nodeStrength) {
|
|
109
|
-
nodeForce.strength(nodeStrength);
|
|
110
|
-
}
|
|
111
|
-
forceSimulation = d3Force.forceSimulation().nodes(layoutNodes);
|
|
112
|
-
if (clustering) {
|
|
113
|
-
const clusterForce = forceInBox();
|
|
114
|
-
clusterForce
|
|
115
|
-
.centerX(center[0])
|
|
116
|
-
.centerY(center[1])
|
|
117
|
-
.template('force')
|
|
118
|
-
.strength(clusterFociStrength);
|
|
119
|
-
if (layoutEdges) {
|
|
120
|
-
clusterForce.links(layoutEdges);
|
|
121
|
-
}
|
|
122
|
-
if (layoutNodes) {
|
|
123
|
-
clusterForce.nodes(layoutNodes);
|
|
124
|
-
}
|
|
125
|
-
clusterForce
|
|
126
|
-
.forceLinkDistance(clusterEdgeDistance)
|
|
127
|
-
.forceLinkStrength(clusterEdgeStrength)
|
|
128
|
-
.forceCharge(clusterNodeStrength)
|
|
129
|
-
.forceNodeSize(clusterNodeSize);
|
|
130
|
-
forceSimulation.force('group', clusterForce);
|
|
131
|
-
}
|
|
132
|
-
forceSimulation
|
|
133
|
-
.force('center', d3Force.forceCenter(center[0], center[1]))
|
|
134
|
-
.force('charge', nodeForce)
|
|
135
|
-
.alpha(alpha)
|
|
136
|
-
.alphaDecay(alphaDecay)
|
|
137
|
-
.alphaMin(alphaMin);
|
|
138
|
-
if (preventOverlap) {
|
|
139
|
-
this.overlapProcess(forceSimulation, {
|
|
140
|
-
nodeSize,
|
|
141
|
-
nodeSpacing,
|
|
142
|
-
collideStrength,
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
// 如果有边,定义边的力
|
|
146
|
-
if (layoutEdges) {
|
|
147
|
-
// d3 的 forceLayout 会重新生成边的数据模型,为了避免污染源数据
|
|
148
|
-
const edgeForce = d3Force
|
|
149
|
-
.forceLink()
|
|
150
|
-
.id((d) => d.id)
|
|
151
|
-
.links(layoutEdges);
|
|
152
|
-
if (edgeStrength) {
|
|
153
|
-
edgeForce.strength(edgeStrength);
|
|
154
|
-
}
|
|
155
|
-
if (linkDistance) {
|
|
156
|
-
edgeForce.distance(linkDistance);
|
|
157
|
-
}
|
|
158
|
-
forceSimulation.force('link', edgeForce);
|
|
159
|
-
}
|
|
160
|
-
forceSimulation
|
|
161
|
-
.on('tick', () => {
|
|
162
|
-
const outNodes = formatOutNodes(layoutNodes);
|
|
163
|
-
onTick === null || onTick === void 0 ? void 0 : onTick({
|
|
164
|
-
nodes: outNodes,
|
|
165
|
-
edges: formatOutEdges(layoutEdges),
|
|
166
|
-
});
|
|
167
|
-
if (assign) {
|
|
168
|
-
outNodes.forEach((node) => graph.mergeNodeData(node.id, {
|
|
169
|
-
x: node.data.x,
|
|
170
|
-
y: node.data.y,
|
|
171
|
-
}));
|
|
172
|
-
}
|
|
173
|
-
})
|
|
174
|
-
.on('end', () => {
|
|
175
|
-
const outNodes = formatOutNodes(layoutNodes);
|
|
176
|
-
if (assign) {
|
|
177
|
-
outNodes.forEach((node) => graph.mergeNodeData(node.id, {
|
|
178
|
-
x: node.data.x,
|
|
179
|
-
y: node.data.y,
|
|
180
|
-
}));
|
|
181
|
-
}
|
|
182
|
-
resolve({
|
|
183
|
-
nodes: outNodes,
|
|
184
|
-
edges: formatOutEdges(layoutEdges),
|
|
185
|
-
});
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
catch (e) {
|
|
189
|
-
console.warn(e);
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
else {
|
|
193
|
-
// forceSimulation is defined
|
|
194
|
-
if (clustering) {
|
|
195
|
-
const clusterForce = forceInBox();
|
|
196
|
-
clusterForce.nodes(layoutNodes);
|
|
197
|
-
clusterForce.links(layoutEdges);
|
|
198
|
-
}
|
|
199
|
-
forceSimulation.nodes(layoutNodes);
|
|
200
|
-
if (layoutEdges) {
|
|
201
|
-
// d3 的 forceLayout 会重新生成边的数据模型,为了避免污染源数据
|
|
202
|
-
const edgeForce = d3Force
|
|
203
|
-
.forceLink()
|
|
204
|
-
.id((d) => d.id)
|
|
205
|
-
.links(layoutEdges);
|
|
206
|
-
if (edgeStrength) {
|
|
207
|
-
edgeForce.strength(edgeStrength);
|
|
208
|
-
}
|
|
209
|
-
if (linkDistance) {
|
|
210
|
-
edgeForce.distance(linkDistance);
|
|
211
|
-
}
|
|
212
|
-
forceSimulation.force('link', edgeForce);
|
|
213
|
-
}
|
|
214
|
-
if (preventOverlap) {
|
|
215
|
-
this.overlapProcess(forceSimulation, {
|
|
216
|
-
nodeSize,
|
|
217
|
-
nodeSpacing,
|
|
218
|
-
collideStrength,
|
|
219
|
-
});
|
|
220
|
-
}
|
|
221
|
-
forceSimulation.alpha(alpha).restart();
|
|
222
|
-
// since d3 writes x and y as node's first level properties, format them into data
|
|
223
|
-
const outNodes = formatOutNodes(layoutNodes);
|
|
224
|
-
const outEdges = formatOutEdges(layoutEdges);
|
|
225
|
-
if (assign) {
|
|
226
|
-
outNodes.forEach((node) => graph.mergeNodeData(node.id, {
|
|
227
|
-
x: node.data.x,
|
|
228
|
-
y: node.data.y,
|
|
229
|
-
}));
|
|
230
|
-
}
|
|
231
|
-
resolve({
|
|
232
|
-
nodes: outNodes,
|
|
233
|
-
edges: outEdges,
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
this.forceSimulation = forceSimulation;
|
|
237
|
-
});
|
|
238
|
-
});
|
|
239
|
-
}
|
|
240
|
-
/**
|
|
241
|
-
* Prevent overlappings.
|
|
242
|
-
* @param {object} simulation force simulation of d3
|
|
243
|
-
*/
|
|
244
|
-
overlapProcess(simulation, options) {
|
|
245
|
-
const { nodeSize, nodeSpacing, collideStrength } = options;
|
|
246
|
-
let nodeSizeFunc;
|
|
247
|
-
let nodeSpacingFunc;
|
|
248
|
-
if (isNumber(nodeSpacing)) {
|
|
249
|
-
nodeSpacingFunc = () => nodeSpacing;
|
|
250
|
-
}
|
|
251
|
-
else if (isFunction(nodeSpacing)) {
|
|
252
|
-
nodeSpacingFunc = nodeSpacing;
|
|
253
|
-
}
|
|
254
|
-
else {
|
|
255
|
-
nodeSpacingFunc = () => 0;
|
|
256
|
-
}
|
|
257
|
-
if (!nodeSize) {
|
|
258
|
-
nodeSizeFunc = (d) => {
|
|
259
|
-
if (d.size) {
|
|
260
|
-
if (isArray(d.size)) {
|
|
261
|
-
const res = d.size[0] > d.size[1] ? d.size[0] : d.size[1];
|
|
262
|
-
return res / 2 + nodeSpacingFunc(d);
|
|
263
|
-
}
|
|
264
|
-
if (isObject(d.size)) {
|
|
265
|
-
const res = d.size.width > d.size.height ? d.size.width : d.size.height;
|
|
266
|
-
return res / 2 + nodeSpacingFunc(d);
|
|
267
|
-
}
|
|
268
|
-
return d.size / 2 + nodeSpacingFunc(d);
|
|
269
|
-
}
|
|
270
|
-
return 10 + nodeSpacingFunc(d);
|
|
271
|
-
};
|
|
272
|
-
}
|
|
273
|
-
else if (isFunction(nodeSize)) {
|
|
274
|
-
nodeSizeFunc = (d) => {
|
|
275
|
-
const size = nodeSize(d);
|
|
276
|
-
return size + nodeSpacingFunc(d);
|
|
277
|
-
};
|
|
278
|
-
}
|
|
279
|
-
else if (isArray(nodeSize)) {
|
|
280
|
-
const larger = nodeSize[0] > nodeSize[1] ? nodeSize[0] : nodeSize[1];
|
|
281
|
-
const radius = larger / 2;
|
|
282
|
-
nodeSizeFunc = (d) => radius + nodeSpacingFunc(d);
|
|
283
|
-
}
|
|
284
|
-
else if (isNumber(nodeSize)) {
|
|
285
|
-
const radius = nodeSize / 2;
|
|
286
|
-
nodeSizeFunc = (d) => radius + nodeSpacingFunc(d);
|
|
287
|
-
}
|
|
288
|
-
else {
|
|
289
|
-
nodeSizeFunc = () => 10;
|
|
290
|
-
}
|
|
291
|
-
// forceCollide's parameter is a radius
|
|
292
|
-
simulation.force('collisionForce', d3Force.forceCollide(nodeSizeFunc).strength(collideStrength));
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
/**
|
|
296
|
-
* Format the calculation nodes into output nodes.
|
|
297
|
-
* Since d3 reads properties in plain node data object which is not compact to the OutNode
|
|
298
|
-
* @param layoutNodes
|
|
299
|
-
* @returns
|
|
300
|
-
*/
|
|
301
|
-
const formatOutNodes = (layoutNodes) => layoutNodes.map((node) => {
|
|
302
|
-
const { x, y } = node, others = __rest(node, ["x", "y"]);
|
|
303
|
-
return Object.assign(Object.assign({}, others), { data: Object.assign(Object.assign({}, others.data), { x,
|
|
304
|
-
y }) });
|
|
305
|
-
});
|
|
306
|
-
/**
|
|
307
|
-
* d3 will modify `source` and `target` on edge object.
|
|
308
|
-
*/
|
|
309
|
-
const formatOutEdges = (edges) => edges.map((edge) => {
|
|
310
|
-
const { source, target } = edge, rest = __rest(edge, ["source", "target"]);
|
|
311
|
-
return Object.assign(Object.assign({}, rest), { source: source.id, target: target.id });
|
|
312
|
-
});
|
|
313
|
-
//# sourceMappingURL=index.js.map
|
package/lib/d3Force/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/d3Force/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC5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