Canvas JS How to get height and width of polygon shape? – Photoshop
I created a small canvas js script and draw outline on shape here is the script context.beginPath(); context.moveTo(coordinates[0].x, coordinates[0].y); for (let index = 1; index < coordinates.length; index++) { context.lineTo(coordinates[index].x, coordinates[index].y); } context.lineWidth = 2; context.strokeStyle = "red"; context.fillStyle =…