Konva - finding the center of the current view
Your app allows zooming and panning and now you need to find the center of the current canvas view to add a new shape. How do you do that...
A tech blog giving usable explainers, advice, tools, tricks and techniques for the Konva.js JavaScript canvas library, the HTML5 canvas, and related subjects.
Your app allows zooming and panning and now you need to find the center of the current canvas view to add a new shape. How do you do that...