-
Notifications
You must be signed in to change notification settings - Fork 305
Question: Possible to zoom without distorting canvas? #77
Comments
I needed this as well. Manged to do it by monkey patching the |
Mind sharing a bit more about how you rigged it up? |
@petedejoy It's a combination with the react-zoom-pan-pinch package. I basically change/monkey patch the
If the CanvasDraw expects such prop, this can be safely added to the real |
Ahh, that's interesting! I'll try to follow along and implement a similar function when I have a chance. I'm not sure how much of a lift it'd be to PR your |
Hey @martin056, how did you access the scale prop from Transform wrapper? I'm just not sure how scale is defined your example |
I needed this too, so I built it! #87 |
@markbiddlecom the hero we don't deserve! Thanks a ton- will definitely be checking out your PR and giving it a shot as soon as I have a chance. |
The hero we don't deserve indeed. Merged his PR finally (sorry for the delays), so this feature will be part of v1.2.0 |
Does anyone know if there's an elegant way to zoom in on the canvas to observe items/draw "up-close" without distorting the larger image? If there's a way to implement this and folks would find it useful, I'm happy to PR it as a default prop of the
CanvasDraw
component.The text was updated successfully, but these errors were encountered: