Returns a point on the edge of rectangle
const r1 = {x: 10, y: 10, width: 100, height: 50};Rects.getEdgeY(r1, `right`); // Yields: 10Rects.getEdgeY(r1, `bottom`); // Yields: 60const r2 = {width: 100, height: 50};Rects.getEdgeY(r2, `right`); // Yields: 0Rects.getEdgeY(r2, `bottom`); // Yields: 50 Copy
const r1 = {x: 10, y: 10, width: 100, height: 50};Rects.getEdgeY(r1, `right`); // Yields: 10Rects.getEdgeY(r1, `bottom`); // Yields: 60const r2 = {width: 100, height: 50};Rects.getEdgeY(r2, `right`); // Yields: 0Rects.getEdgeY(r2, `bottom`); // Yields: 50
Which edge: right, left, bottom, top
Returns a point on the edge of rectangle