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

2.x删除了render:done事件,能否加上 #3512

Closed
GrayLinTouchWorld opened this issue Apr 17, 2023 · 5 comments
Closed

2.x删除了render:done事件,能否加上 #3512

GrayLinTouchWorld opened this issue Apr 17, 2023 · 5 comments

Comments

@GrayLinTouchWorld
Copy link

问题描述

场景:编辑流程的画布和展示流程的画布大小不一致,需要等到画布渲染完毕再进行居中处理,如果编辑画布宽高大于展示画布,直接进行居中处理会导致流程图超出画布,这个情况用view:mounted也不是很好解决,希望能够恢复该api

重现链接

重现步骤

编辑流程的画布和展示流程的画布大小不一致,需要等到画布渲染完毕再进行居中处理,如果编辑画布宽高大于展示画布,直接进行居中处理会导致流程图超出画布

预期行为

希望能够恢复该 api

平台

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

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented Apr 17, 2023

👋 @GrayLinTouchWorld

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

增加了两个事件 view:mounted 以及 view:unmounted。

@favorite58
Copy link

同样遇到该问题,需要怎么解决?view:mounted触发的非常频繁,没法判断画布渲染完毕

@NewByVector
Copy link
Contributor

@favorite58 升级到 2.15.1,增加了 render:done 事件。

@x6-bot
Copy link
Contributor

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