weasel API - v0.8.0
    Preparing search index...

    Function pathDistanceToPoint

    • Closest Euclidean distance from (px, py) to the boundary of path. Pure stroke distance — does not consult fill rule or interior. For closed-region pick distance ("0 inside, stroke-distance outside"), combine with pathContainsPoint at the call site.

      Parameters

      • path: Path
      • px: number
      • py: number

      Returns number