mxgraph html标签有一个红色框

时间:2018-09-18 18:46:48

标签: html label mxgraph

我需要为顶点标签设置样式,例如粗体或斜体,因此我使用

在mxGraph中启用了HTML标签。
graph.setHtmlLabels(true)

然后使用诸如“ hello world !”之类的字符串!作为insertVertex调用的标签。

但是,所有顶点都有一个无法禁用的红色框,如上图所示。

使用了以下样式:

    style.put(mxConstants.STYLE_NOLABEL, false);
    style.put(mxConstants.STYLE_LABEL_BORDERCOLOR, "blue");
    style.put(mxConstants.STYLE_STROKECOLOR, "orange");
    style.put(mxConstants.STYLE_STROKEWIDTH, 0);

因此,蓝色框是标签边框。我不确定红框是什么。

Sample image

0 个答案:

没有答案
相关问题