OK, this has been fixed in nightly and will be released in 1.17. I've also updated the documentation for nodeMenu.buttons
. Until it comes online, here's the updated text:
Buttons to show in the node menu. It is possible to use both custom buttons and built-in buttons. When built-in buttons are used, they will be shown and hidden as necessary based on the node state. For example, the "unfocus" button will only be available for focused nodes; the "expand" button will only be available if there are hidden neighbor nodes, etc.
Currently the following built-in buttons are supported:
-
"btn:expand"
- expands the node. All nodes that are linked to this node are shown.
-
"btn:collapse"
- collapses the node. In focusnodes
navigation this hides all linked nodes with a smaller relevance; in other navigation modes this hides this node and all linked nodes.
-
"btn:close"
- closes the node. Unavailable for focusnodes
navigation; in other navigation modes hides all linked nodes that do not have any links to nodes other than this node or nodes directly linked to this node.
-
"btn:focus"
- focuses the node. This is most useful for focusnodes
navigation, but available for all navigation modes.
-
"btn:unfocus"
- unfocuses the node. This is most useful for focusnodes
navigation but available for all navigation modes.
-
"btn:lock"
- pins the node in place and prevents the layout algorithm from moving it around.
-
"btn:unlock"
- unpins the node and allows the layout algorithm to position the node as necessary.
-
"btn:hide"
- Hides this node.
-
"expand"
- Composite setting including "btn:expand"
, "btn:collapse"
and "btn:close"
-
"focus"
- Composite setting including "btn:focus"
and "btn:unfocus"
-
"lock"
- Composite setting including "btn:lock"
and "btn:unlock"
-
"hide"
- Same as "btn:hide"
, included for backwards compatibility