setcola
setcola copied to clipboard
How to show label text of one node? Or can we specify text constraint?
How to display the label text of one node? Or can we the constracints to the text layout?
"nodes": [
{"name": "a","showLabel":true,"-label":"libcola","depth":1,"color": "red","width":30,"height":30},
{"name": "b","showLabel":true,"-label":"Webbcola","depth":1.3,"color": "black"},
{"name": "c","showLabel":true,"-label":"Setbcola","depth":1.8,"color": "black"}
],
"links": [
{"source": 0, "target": 1},
{"source": 1, "target": 2}
],
"constraintDefinitions": [
{
"name": "layer",
"sets": {"partition": "depth"},
"forEach": [{"constraint": "align", "axis": "x"}]
}
]
}```
@qiliux Did you figure it out? Thanks!