Cytoscape内容背景

时间:2014-10-26 11:47:59

标签: javascript cytoscape.js

我想知道是否可以使用cytoscape设置边缘标签的背景颜色?我正在设置其余的边缘样式。

    style: cytoscape.stylesheet()
        .selector("edge")
            .css({
                "line-color": "#444444",
                "width": 4,
                "content": "data(length)"
            })

1 个答案:

答案 0 :(得分:1)

您可以在边缘标签上设置轮廓:http://js.cytoscape.org/#style/labels