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

i hope g-canvas can able to zoom in and out #1659

Open
1 task
hcxcomeon opened this issue Apr 7, 2024 · 1 comment
Open
1 task

i hope g-canvas can able to zoom in and out #1659

hcxcomeon opened this issue Apr 7, 2024 · 1 comment

Comments

@hcxcomeon
Copy link

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

What problem does this feature solve?

I hope the canvas can be zoomed in and out when using the annotation plugin, Because annotation requires more precise operations sometimes, then I can zoom in the canvas to annotation the box

What does the proposed API look like?

like 'setZoomByViewportPoint',The coordinates of points change with the canvas zooms in and out

@xiaoiver
Copy link
Contributor

Thanks for your feature request. Can you use camera API like setZoom?

Here's the DEMO.
https://codesandbox.io/p/sandbox/shi-yong-g-hui-zhi-path-forked-t6nvl7?file=%2Findex.js%3A50%2C23

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