You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I perfected my designer with the Ruler component, and now I want to implement a mouse point as the center, scaling the canvas while scaling the Ruler component, when using the zoom property, the component does scale, but from the effect, the zoom center is in the upper left corner, not the coordinates of the mouse; I tried getting the ruler instance using the ref attribute and calling the TRANSLATE method of the canvas instance, but it failed because the ruler component doesn't seem to be a pure canvas object
The text was updated successfully, but these errors were encountered:
Environments
Description
I perfected my designer with the Ruler component, and now I want to implement a mouse point as the center, scaling the canvas while scaling the Ruler component, when using the zoom property, the component does scale, but from the effect, the zoom center is in the upper left corner, not the coordinates of the mouse; I tried getting the ruler instance using the ref attribute and calling the TRANSLATE method of the canvas instance, but it failed because the ruler component doesn't seem to be a pure canvas object
The text was updated successfully, but these errors were encountered: