• Find the closest point out of locations to the given point on the given constraining rectangle.

    Type Parameters

    Parameters

    • pos: PointXY

      An x,y location in pixel values

    • constrainRect: Size

      Width/height of the bounding box, in pixels

    • locations: T[]

      A list of x/y logical locations, whose values are proportional lengths (anchor format).

    Returns ClosestPointCandidate<T>

Version :