vue-safe-force-graph 2.0.53 → 2.0.55
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 +10 -1
- package/lib/vue-safe-force-graph.js +222 -207
- package/lib/vue-safe-force-graph.umd.cjs +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -307,6 +307,15 @@ function showNode() {
|
|
|
307
307
|
function hideNode() {
|
|
308
308
|
forceGraph.value.controlOperation({ nodes: [{ id: '8c5c0cda7d0f3ec28e818b441037cf2d' }], api: { name: 'hide_node' }})
|
|
309
309
|
}
|
|
310
|
+
|
|
311
|
+
// 全部展示数据节点边的label
|
|
312
|
+
function allShowEdgeLabel() {
|
|
313
|
+
forceGraph.value.controlOperation({ api: { name: 'all_show_edges_label' }})
|
|
314
|
+
}
|
|
315
|
+
// 全部隐藏数据节点边的label
|
|
316
|
+
function allHideEdgeLabel() {
|
|
317
|
+
forceGraph.value.controlOperation({ api: { name: 'all_hide_edges_label' }})
|
|
318
|
+
}
|
|
310
319
|
```
|
|
311
320
|
|
|
312
321
|
##### controlOperation其他api name
|
|
@@ -403,7 +412,7 @@ const handleHighLight = () => {
|
|
|
403
412
|
"id": "sfdsdfsf",
|
|
404
413
|
"name": "“xxx",
|
|
405
414
|
"type": "report",
|
|
406
|
-
"
|
|
415
|
+
"icon_img": "自定义节点图片", // 自定义图片
|
|
407
416
|
"basic": {
|
|
408
417
|
"title": "“黑球”行动再升级,SMBGhost漏洞攻击进入实战",
|
|
409
418
|
"url": "xxxx",
|