Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自定义线段 #3886

Open
ZouYuLong opened this issue Sep 3, 2023 · 8 comments
Open

自定义线段 #3886

ZouYuLong opened this issue Sep 3, 2023 · 8 comments
Labels
type: discussion 讨论 Usage questions, guidance, and other discussions

Comments

@ZouYuLong
Copy link

功能描述

创建独立的线条(没有任何连接node)

可以拖动两端端点控制线段的长度与位置

可以拖动两端端点链接上目标node

可以拖动线条本身整体移动

期望解决方案

创建独立的线条(没有任何连接node)

可以拖动两端端点控制线段的长度与位置

可以拖动两端端点自动链接上node

可以拖动线条本身整体移动

@x6-bot
Copy link
Contributor

x6-bot bot commented Sep 3, 2023

👋 @ZouYuLong

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.

@ZouYuLong
Copy link
Author

参考 如图
image

@light-years-run
Copy link

参考 如图 image

我也在做这块,我目前是采用自定义顶点工具,类似于edge的顶点,然后实现 渲染控制的,拖拽事件,删除事件等.....

@ZouYuLong
Copy link
Author

自由变换拖拽那些可以的,但是怎么去让单独拖拽线段的时候连接到链接桩上呢,没看到API

@light-years-run
Copy link

你只能用边,才可以连接到连接桩上

@NewByVector
Copy link
Contributor

@ZouYuLong 使用 source-arrowhead 和 target-arrowhead 工具就可以了。

@NewByVector NewByVector added the type: discussion 讨论 Usage questions, guidance, and other discussions label Oct 3, 2023
@iugsm
Copy link

iugsm commented Nov 1, 2023

你只能用边,才可以连接到连接桩上

请问能提供下参考代码么?

@TLovers
Copy link

TLovers commented Nov 8, 2023

你只能用边,才可以连接到连接桩上

只能用边才可以链接到桩吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: discussion 讨论 Usage questions, guidance, and other discussions
Projects
None yet
Development

No branches or pull requests

5 participants