ixfx
    Preparing search index...
    • Returns a point on the edge of rectangle

      const r1 = {x: 10, y: 10, width: 100, height: 50};
      Rects.getEdgeY(r1, `right`); // Yields: 10
      Rects.getEdgeY(r1, `bottom`); // Yields: 60

      const r2 = {width: 100, height: 50};
      Rects.getEdgeY(r2, `right`); // Yields: 0
      Rects.getEdgeY(r2, `bottom`); // Yields: 50

      Parameters

      • rect: Rect | RectPositioned
      • edge: "right" | "bottom" | "left" | "top"

        Which edge: right, left, bottom, top

      Returns number