gpt4 book ai didi

vis.js - 在vis-network中,层次布局中的水平顺序是如何确定的?

转载 作者:行者123 更新时间:2023-12-04 11:50:28 36 4
gpt4 key购买 nike

this example , "level"用于控制节点放置的垂直位置(假设 hierarchical.directionup-down )。
enter image description here
但是,我没有找到如何设置 同一层次结构中节点的水平顺序 .例如,如果我想放 node 6前面node 1 ,有办法吗?
我的理解是,水平顺序纯粹是由 决定的。节点插入顺序 , 这是正确的吗?

最佳答案

根据 https://github.com/visjs/vis-network/issues/926 ,顺序是不确定的。引用:

Q: I didn't find how to set the horizontal order for nodes on the same hierarchy. For example, if I want to put node 6 in front of node 1, is there a way to do it?

A: As far as the public API goes: No, the order is not guaranteed in any way, do not rely on it, it may change with any new release or between browsers.

Q: My understanding is that the horizontal order is purely determined by node insertion order, is it correct?

A: As far as the CURRENT implementation and decent browsers go: Yes.

关于vis.js - 在vis-network中,层次布局中的水平顺序是如何确定的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63278116/

36 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com