Replies: 1 comment 2 replies
-
|
可以在初始化画布的时候配置: new Graph({
interacting: {
edgeLabelMovable: true,
},
})不过现在边是可以自由移动的(没有限制在线上移动),这个已经加入到我们的工作计划中。 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
背景:X6 已支持标签,但没找到标签拖拽移动
在 x6 的官方示例 https://x6.antv.vision/en/examples/edge/label#render-with-svg 中,描述了如何在边上创建一个固定位置的标签。
如上图所示,无法左右拖拽移动,只能改一些 distance 值来静态修改。
想要的效果 1 - 标签支持拖拽移动
我在 Draw IO 上模拟了想要的这个效果(但其实这个例子中 draw io 移动的也是个元素),x6 的标签能否如动画这样支持?
如果效果 1 不行,降级方案 - 文字拖拽移动能否可以?
以上如果有答案,都不会影响 x6 的线段和顶点功能吧?
其它有趣的案例
https://projectstorm.cloud/react-diagrams/?path=/story/simple-usage--demo-simple
我还看到了如下 x6 相关例子,但不知怎么应用到此 issue 上
Beta Was this translation helpful? Give feedback.
All reactions