如何按顺序定位 nz-graph 的节点?
如何使Node a
放置在其邻居节点b
的级别上?
{
nodes: [
{id: `enter`, width: 100, height: 100},
{id: `a`, width: 100, height: 100},
{id: `b`, width: 100, height: 100},
{id: `c`, width: 100, height: 100},
{id: `exit`, width: 100, height: 100},
],
edges: [
{v: `enter`, w: `a`},
{v: `a`, w: `c`},
{v: `c`, w: `exit`},
{v: `enter`, w: `b`},
{v: `b`, w: `exit`},
]
}
How to make node a
be placed at the level of its neighbor node b
?
{
nodes: [
{id: `enter`, width: 100, height: 100},
{id: `a`, width: 100, height: 100},
{id: `b`, width: 100, height: 100},
{id: `c`, width: 100, height: 100},
{id: `exit`, width: 100, height: 100},
],
edges: [
{v: `enter`, w: `a`},
{v: `a`, w: `c`},
{v: `c`, w: `exit`},
{v: `enter`, w: `b`},
{v: `b`, w: `exit`},
]
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)