X6 icon indicating copy to clipboard operation
X6 copied to clipboard

x6 支持使用组件来自定义一个边吗?

Open qoiii opened this issue 11 months ago • 2 comments

功能描述

类似vue flow中自定义连接线的能力? https://vueflow.dev/examples/edges/connection-line.html

期望解决方案

类似注册自定义节点?🤔

qoiii avatar Jan 06 '25 12:01 qoiii

👋 @qoiii

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. To help make it easier for us to investigate your issue, please follow the contributing guidelines. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

x6-bot[bot] avatar Jan 06 '25 12:01 x6-bot[bot]

你注册一个自定义组件, width 是minWidth: 100px(只是示意), width: auto; height: 1px , 这样就是一个线条的组件了。

cgxdd avatar Feb 24 '25 00:02 cgxdd

@qoiii 主要看 X6 内置的连线是否能满足需求,不满足的情况是什么,再来看是否需要家自定义吧,目前也是有一些边自定义能力

hustcc avatar Aug 07 '25 11:08 hustcc