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

自定义的非path节点怎样拖拽大小 #3705

Closed
bighhhh opened this issue Jun 25, 2023 · 5 comments
Closed

自定义的非path节点怎样拖拽大小 #3705

bighhhh opened this issue Jun 25, 2023 · 5 comments

Comments

@bighhhh
Copy link
Contributor

bighhhh commented Jun 25, 2023

问题描述

自定义节点怎样才能拖拽调整大小,path的形式我知道可以用refD,但是像官网图表示例中的开关这种通过多个圆形和矩形的形式组合的应该怎样做呢

重现链接

https://x6.antv.antgroup.com/zh/examples/node/custom-node/#switch

重现步骤

https://x6.antv.antgroup.com/zh/examples/node/custom-node/#switch

预期行为

https://x6.antv.antgroup.com/zh/examples/showcase/practices/#flowchart

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox ...]
  • X6 版本: [2.11.1 ...]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented Jun 25, 2023

👋 @hhzhldhjl

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.

@NewByVector
Copy link
Contributor

具备修改元素尺寸的条件是:节点内部的元素的尺寸、位置是通过相对属性来赋值的,比如 refWidth、refX,这样才能做到拖拽的时候自适应大小。

@bighhhh
Copy link
Contributor Author

bighhhh commented Jun 29, 2023

具备修改元素尺寸的条件是:节点内部的元素的尺寸、位置是通过相对属性来赋值的,比如 refWidth、refX,这样才能做到拖拽的时候自适应大小。

好的,谢谢

@bighhhh bighhhh closed this as completed Jun 29, 2023
@x6-bot
Copy link
Contributor

x6-bot bot commented Jun 29, 2024

This thread has been automatically locked because it has not had recent activity.

Please open a new issue for related bugs and link to relevant comments in this thread.

@x6-bot x6-bot bot locked as resolved and limited conversation to collaborators Jun 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants