How to draw a polygon from lines using Konva js? I want to enable the user to draw a polygon from lines to create the shape he want and apply transform to it (Rotate and resize). How to implement it using Konvajs ?