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

绘制的svg如何设置大小 #3866

Closed
zfy171 opened this issue Aug 22, 2023 · 6 comments
Closed

绘制的svg如何设置大小 #3866

zfy171 opened this issue Aug 22, 2023 · 6 comments

Comments

@zfy171
Copy link

zfy171 commented Aug 22, 2023

问题描述

自定义节点为svg 绘制完成后 大小无法控制

重现链接

1

重现步骤

image

预期行为

svg渲染出来的大小无法控制

平台

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

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@zfy171
Copy link
Author

zfy171 commented Aug 22, 2023

手动修改也不行

@x6-bot
Copy link
Contributor

x6-bot bot commented Aug 22, 2023

👋 @zfy171

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.

@zfy171
Copy link
Author

zfy171 commented Sep 5, 2023

已改方案 将svg当着图片渲染

@NewByVector
Copy link
Contributor

svg 结构和 X6 markup 是不兼容的,使用图片方式渲染是合理的。

@AMhehe
Copy link

AMhehe commented Sep 16, 2023

可以用 transform:"scale(0.02,0.02)",
image

@x6-bot
Copy link
Contributor

x6-bot bot commented Sep 16, 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 Sep 16, 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