how to hide resize bounding lines when exporting an image in konvajs?

Viewed 47

I'm building some drag and drop Javascript app using konva.js and I have this one problem: when i'm exporting the image using the "stage.toDataURL()" command, the exported image contains the resizing boundings: see attached picture How can i export the image without the resize bounding lines?

Thanks

1 Answers

Just hide transformer before export, then show it back.

tranformer.hide();
const url = stage.toDataURL():
tranformer.show();
Related