Replies: 1 comment
-
|
Try this: const selection = instance.getCropperSelection();
setTimeout(() => {
selection.x = 0;
selection.y = 0;
});
// Or
setTimeout(() => {
selection.$move(0, 0);
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am able to programmatically change only width/height of the selection, but not x and y coordinates. The selection is always centered. I've attached
changeevent handler to selection instance, and can see that the position is set correctly for a second, and then the selection is centered regardless.None of the below works:
Beta Was this translation helpful? Give feedback.
All reactions