Search code examples
reactjsreact-konva

react-konva resize anchors not shown outside canvas


I am trying to get react-konva to work similar as to what canva is. Having a canvas for a certain size and when I add an image, which is larger than the canvas, it should show me the resize anchors outside of the canvas, but it doesn't. It seems to clip the image at the borders of the canvas.

Can it even be done with react-konva to show the anchors outside the canvas to resize an image?


Solution

  • I am posting here the solution I found, pointed in the direction by @lavrton.

    So if anyone else needs this, please have a look.

    codesandbox.io/s/dry-paper-fmpn58?file=/src/App.jsx