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

toDataURL 支持传入自定义 matrix #3594

Closed
1 task
Fiv5 opened this issue Aug 27, 2021 · 2 comments
Closed
1 task

toDataURL 支持传入自定义 matrix #3594

Fiv5 opened this issue Aug 27, 2021 · 2 comments

Comments

@Fiv5
Copy link

Fiv5 commented Aug 27, 2021

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

有时候我们希望自己控制图片中主图的位置,比如当图中节点很多时,使用 ImageMinimap 代替 Minimap 以提高渲染性能。当主图发生了变更需要更新图片时,直接 toDataURL 拿到的是当前画布范围内的图片(为什么不用 toFullDataURL 的原因是图片会失真,不够清晰)。如果可以自己控制 matrix 的话我们可以在更新图片时传入graph.fitView() 时的最佳视角 matrix ,在更新完图片后再通过group.setMatrix 还原用户之前操作位置。

What does the proposed API look like?

imageMinimap 的传入配置增加 matrix

@hustcc
Copy link
Member

hustcc commented Aug 27, 2021

G6 的 issue 嘛,可以去 G6 的仓库提交 issue。

@hustcc hustcc closed this as completed Aug 27, 2021
@Fiv5
Copy link
Author

Fiv5 commented Aug 27, 2021

G6 的 issue 嘛,可以去 G6 的仓库提交 issue。

sorry,选错了

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