Coral 0.2.17 candidate API
    Preparing search index...

    Function insertWaypointAtPosition

    • Insert a waypoint at the closest segment of a polyline path.

      The path is an array of points representing the full edge path (startPoint + bendPoints + endPoint). The new waypoint is inserted at the position along the path where it is closest.

      Parameters

      • existing: EdgeWaypoint[]
      • path: { x: number; y: number }[]
      • position: { x: number; y: number }

      Returns EdgeWaypoint[]