I want to create a grid of draggable lines. Once I create the grid, I'd like to be able to get the width and height of each region.
example: 1 vertical line and 1 horizontal would create 4 regions.
Using FabricJs, I'm able to create my lines, I'm able to drag left and right, up and down, but I'm not sure how to get the width and height for each region.
I was trying to see how the code worked on this link, but I can't quite grasp it: Detecting Regions Described by Lines on HTML5 Canvas