diff --git a/demos/tree-and-bubble-leaves.html b/demos/tree-and-bubble-leaves.html new file mode 100644 index 0000000000..f98cd2444c --- /dev/null +++ b/demos/tree-and-bubble-leaves.html @@ -0,0 +1,302 @@ + + + + + + Dagre Layout + + + +
+ + + + + + \ No newline at end of file diff --git a/src/layout/force.js b/src/layout/force.js index caad69be9b..08a0e8e069 100644 --- a/src/layout/force.js +++ b/src/layout/force.js @@ -110,6 +110,7 @@ Layout.registerLayout('force', { * @param {object} simulation 力模拟模型 */ overlapProcess(simulation) { + const self = this; let nodeSize = self.nodeSize; if (!nodeSize) { nodeSize = d => {