I use the react-konva library to manipulate the elements of the canvas and I am trying to make the outside of an element blur when it comes out of the container (the inside part of element is not changed). Similar to drag elements in polotno: https://polotno.com/docs/demo-full-editor
You can check out the codesandbox below and in this example I wanna when dragging the circle out of scope of the rect, that outer part of the circle will be blurred.
https://codesandbox.io/s/crimson-sound-i7liy3?file=/src/index.js