Skip to content
Discussion options

You must be logged in to vote

Answering myself, if that can be any useful to anyone, I found the issue.

I had to remove the attribute initial-coverage which was actually setting the position

    const cropperSelection = document.querySelector("cropper-selection");
    if (cropperSelection) {
      cropperSelection.removeAttribute("initial-coverage")
      cropperSelection.x = 20;
      cropperSelection.y = 70;
      cropperSelection.width = 100;
      cropperSelection.height = 100;
      cropperSelection.movable = false;
      cropperSelection.resizable = false;
    }

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by webmix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant