vue-safe-force-graph 2.0.57 → 2.0.59
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/README.md +3 -0
- package/lib/vue-safe-force-graph.js +7904 -7870
- package/lib/vue-safe-force-graph.umd.cjs +39 -39
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -172,6 +172,9 @@ app.use(Graph)
|
|
|
172
172
|
| linkDistance | 用于调整**`d3.forceLink` 的距离**:以确保link长度,值越大距离越长。[d3文档](https://d3js.org/d3-force/link#link_distance) (当配置nodeWidth后可能会用到,比如nodewidth太大时,需要增加link距离) | Number | 120 | 否 |
|
|
173
173
|
| strength | d3js的*manyBody*.strength属性。**调整 `d3.forceManyBody` 的强度**:增加或减少节点之间的排斥力,值为负值,负数越大斥力越大,如0表示无斥力,-600中等斥力。[d3文档](https://d3js.org/d3-force/many-body#manyBody_strength)(当配置nodeWidth后可能会用到,比如nodewidth太大时,需要增加节点之间的斥力) | Number | -600 | 否 |
|
|
174
174
|
| customTooltip | 自定义tooltip内容,传入一个函数,函数中能拿到节点数据,函数需返回html模板 | Function | | 否 |
|
|
175
|
+
| edgeLabelMaxLength | 边上文字的最大长度,超过则省略展示,鼠标悬浮展示全部 | Number | 10 | 否 |
|
|
176
|
+
|
|
177
|
+
|
|
175
178
|
|
|
176
179
|
### 自定义右键菜单
|
|
177
180
|
|