area-divide
Divide an area by the percentage.
Usage
npm i --save area-divide
var areaDivide = ; var data = 04 03 03;; // will get array like below: x1: 0 y1: 0 x2: 40 y2: 50 x1: 40 y1: 0 x2: 100 y2: 25 x1: 40 y1: 25 x2: 100 y2: 50
License
ISC@ProtoTeam.