|
, would be possible to (1) get an example where AFTER Nodes declaration inside index.JS, the zIndex of all nodes will be modified?
for instance swapping node1 with node4
set node1.zIndex = 4
set node2.zIndex = 2
set node3.zIndex = 3
set node4.zIndex = 1
and (2) get the zIndex of all nodes printed out in a separate window when zIndex of a given node is modified in RUNTIME by the right-click menu?
|
We suggest you to set zIndex directly to the respected node to get the expected result, but the predefined zIndex should not repeated, zIndex is a unique value . we have added a sample link to demonstrate how set the zIndex in the node collection.
We can use contextMenuClick event to get the zindex of all node while change the zIndex using context menu order commands. We have added the suggestion in the shared sample for you reference.
Code snippet:
| |
|
zINDEX should be positive or negative? is ZERO allowed? |
zIndex should be positive , which is start from 0 to positive infinity, we don’t recommend any gap in zIndex in diagram, which means if the diagram consist four nodes means zIndex should have range between 0 to 3 and should not set range like 0,1,2 and 100 cause the long gap between 2 and 100. |