2014-10-25 09:09:55 +11:00

2 lines
67 B
JavaScript

var {topLeft: {x: x1, y: y1}, bottomRight: {x: x2, y: y2}} = rect;