i hope g-canvas can able to zoom in and out
hcxcomeon opened this issue · comments
hcxcomeon commented
- 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 commented
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