是否有与CSS z-index相当的vis.js节点属性?
假设我有两种节点(在禁用物理引擎的图表中):圆和矩形。当它们重叠时,我希望矩形始终显示在圆的上方。
是否有与CSS z-index相当的vis.js节点属性?
假设我有两种节点(在禁用物理引擎的图表中):圆和矩形。当它们重叠时,我希望矩形始终显示在圆的上方。
I used the following test nodes:
var nodes = [ {id: 'a', label: 'a', shape: 'dot'}, {id: 'b', label: 'b', shape: 'dot'}, {id: 'c', label: 'c', shape: 'dot'}, {id: 'd', label: 'd', shape: 'dot'} ];
When not selected, these will draw in the node order:
Now, let's change the order:
var nodes = [ {id: 'c', label: 'c', shape: 'dot'}, {id: 'b', label: 'b', shape: 'dot'}, {id: 'd', label: 'd', shape: 'dot'}, {id: 'a', label: 'a', shape: 'dot'} ];