我从Gephi导出了Sigma.js模板。我希望只有当您将鼠标悬停在节点上时才会显示边缘。我在network/config.json
中添加了此内容,但它没有帮助:
"drawingProperties": {
**"drawEdges": false,**
"defaultEdgeType": "curve",
"defaultHoverLabelBGColor": "#002147",
"defaultLabelBGColor": "#ddd",
"activeFontStyle": "bold",
"defaultLabelColor": "#000",
"labelThreshold": 10,
"defaultLabelHoverColor": "#fff",
"fontStyle": "bold",
"hoverFontStyle": "bold",
"defaultLabelSize": 14
}
network/js/main.js
:
var a = sigma.init(document.getElementById("sigma-canvas")).drawingProperties(drawProps).graphProperties(graphProps).mouseProperties(mouseProps);
PS:我不知道javascript
答案 0 :(得分:1)
我能够做到这一点
configProps={
drawEdges: false
};
var a = sigma.init(document.getElementById("sigma-canvas")).drawingProperties(drawProps).graphProperties(graphProps).mouseProperties(mouseProps).configProperties(configProps);
PS:我对js
一无所知