Gojs shapes for _treeExpandedFigure & _treeCollapsedFigure property

Hi There,

I have a requirement where I need to use + and - shapes (“MinusLine”, “PlusLine”) as a _treeExpandedFigure and _treeCollapsedFigure

I tried using it as below

but it is not at all showing any of the two shapes

I tried with other shapes and few of them works here(not all) like the below ones
I can see treeExpanderButtons as below

For my requirement I need these PlusLine and MinusLine shapes for tree expand and collapse.
Please advice how to resolve this issue.


            { // customize the button's appearance
              "_treeExpandedFigure": "PlusLine",
              "_treeCollapsedFigure": "MinusLine"

and it seemed to work as I’d expect. So I’m not sure what’s going on here. Can you make a small reproduction case in Codepen or something? You can fork: https://codepen.io/simonsarris/pen/ORwoLr?editors=1010

Hi Simon,
Thanks for quick response. But after spending some time I was able to figure out the mistake I was doing. I was setting strokeWidth to 0 and I guess that is why I was not getting the stroke line for gojs shapes like PlusLine, MinusLine, CrossLine etc.

Its working for me now

Thank you :)