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

自定义节点如何缩放节点 #4358

Open
z309520291 opened this issue Jul 9, 2024 · 2 comments
Open

自定义节点如何缩放节点 #4358

z309520291 opened this issue Jul 9, 2024 · 2 comments

Comments

@z309520291
Copy link

问题描述

当我在自定义一个节点后,创建这个节点,但是缩放框异常了,拖动缩放框,图形并没有跟着缩放框改变
image
我的代码是这样的
image
麻烦帮我看看是不是有什么问题

重现链接

https://stackblitz.com/edit/vitejs-vite-qaxtja?file=package.json,src%2Fcomponents%2FHelloWorld.vue,src%2Fcomponents%2Fgraph.js,src%2FApp.vue,src%2Fcomponents%2Findex.js

重现步骤

1.我使用registerNode注册了一个节点类型,2.我在画布中创建了这个节点
问题在于:我不知道为什么缩放框失效了,它和图形直接没有联系了,图形没有跟着缩放框进行缩放

预期行为

希望能和https://x6.antv.vision/zh/examples/showcase/practices#flowchart中的基本流程图的图形一样可以正常缩放就行

平台

  • 操作系统: [Windows]
  • 网页浏览器: [Google Chrome]
  • X6 版本: [1.28]

屏幕截图或视频(可选)

image
image
image

补充说明(可选)

求大佬帮忙瞅瞅 [email protected]

@x6-bot
Copy link
Contributor

x6-bot bot commented Jul 9, 2024

👋 @z309520291

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.

@Ardanas
Copy link

Ardanas commented Sep 14, 2024

可能要自己resize一下

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