Closed vollyimnetz closed 1 year ago
@vollyimnetz, let's go in order.
The answers:
move
function moves the image, not the stencil. It will be renamed to moveImage
in the future.setCoordinates
method.The answer on the bonus question depends on the requirements. You can add event listeners to the document and call setCoordinates
method appropriately.
Thank you for the quick response - i will try with setCoordinates.
I tried to make buttons to move the selection by a certain amount of pixels. I had a look on the example you provided. But the example seems only to work after the zoom function has been applied. The documentation of the move-function talk about the "visible area" that is moved i guess that is the stencil. But it seems not to work.
So my question is
Bonus question 😄: how can i add keypress eventlisteners to move the stencil?