"use strict"; var x1 = rect.topLeft.x; var y1 = rect.topLeft.y; var x2 = rect.bottomRight.x; var y2 = rect.bottomRight.y;