setcola icon indicating copy to clipboard operation
setcola copied to clipboard

How to show label text of one node? Or can we specify text constraint?

Open qiliux opened this issue 6 years ago • 1 comments

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 avatar Jul 02 '18 06:07 qiliux

@qiliux Did you figure it out? Thanks!

zhiboz avatar Jun 20 '20 16:06 zhiboz