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

关于X6能否绘制单独的圆环 #4561

Open
pengxu-666 opened this issue Jan 17, 2025 · 2 comments
Open

关于X6能否绘制单独的圆环 #4561

pengxu-666 opened this issue Jan 17, 2025 · 2 comments

Comments

@pengxu-666
Copy link

pengxu-666 commented Jan 17, 2025

功能描述

现在需要用antVx6绘制一个内白外黑的圆环节点出来,但是这个圆环不能由两个圆拼接出来,而且只有当拖动圆环黑色区域的时候该节点才会被拖动,拖动白色区域是不会拖动该节点的。
目前用了react节点的component属性,用div画了出来,但是拖动里面的白色区域还是会拖动整个圆环,与要求不符合。
因此仍需用antVx6的svg方案画出来

期望解决方案

希望各位能给我一些思路,目前使用文心一言、腾讯豆包等辅助工具都无法得到需要的答案,谢谢大家!

@x6-bot
Copy link
Contributor

x6-bot bot commented Jan 17, 2025

👋 @pengxu-666

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.

@fireflyshen
Copy link

兄弟这个简单,是不是就是空心圆,拖动内部的空心无法拖动,拖动外边的圆环可以?如果是这样的话你需要自定义节点,用他的X6对象把你写好的svg描述出来放置节点的之后直接放置他的X6对象就行了,注意话的时候不要在外面套包围盒,用svg的矩阵变换话出来就行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants