We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
有些场景下画布窗口会缩放,比如窗口被缩小了,或者画布父元素被缩小了,此时画布能显示的范围也变化了,但小地图并没有跟着变化,希望能自动缩放或者提供一个方法 比如下图,此时画布为正常大小,能显示全部的节点,小地图的范围也正常 但在下图中,画布范围被压缩(并非覆盖),已经无法显示全部的节点,但小地图仍不变
The text was updated successfully, but these errors were encountered:
feat(GraphModel, MiniMap): 新增MiniMap组件跟随的当前容器一起缩放
ba1f993
使用ResizeObserver监听GraphModel中的rootEl大小变化,并新增抛出“graph:resize”事件,MiniMap监听“graph:resize”实现跟随缩放 Closes didi#1957
Successfully merging a pull request may close this issue.
背景&目的
有些场景下画布窗口会缩放,比如窗口被缩小了,或者画布父元素被缩小了,此时画布能显示的范围也变化了,但小地图并没有跟着变化,希望能自动缩放或者提供一个方法
比如下图,此时画布为正常大小,能显示全部的节点,小地图的范围也正常
但在下图中,画布范围被压缩(并非覆盖),已经无法显示全部的节点,但小地图仍不变
The text was updated successfully, but these errors were encountered: