Assume we have a 1000x1000 image drawn onto canvas, and set konva image size to something like 500x700.
Is it possible to mimic html <img /> tags object-fit property in konva so we can tell image object to fit image in cover / contain mode. Similarly it would be useful to mimic object-position.
Thus far the only way I can think of doing this is to clip image with a rectangle with some custom logic added to handle use cases above. I was wondering if there is a better way?