Coral 0.2.17 candidate API
    Preparing search index...

    Interface UseWaypointManagerResult

    interface UseWaypointManagerResult {
        addWaypoint: (edgeId: string, position: Position) => void;
        clearAllWaypoints: () => void;
        clearWaypoints: (edgeId: string) => void;
        getRoutedPaths: () => Map<string, RoutedPath>;
        hasWaypoints: (edgeId: string) => boolean;
        moveWaypoint: (
            edgeId: string,
            waypointId: string,
            position: Position,
        ) => void;
        removeWaypoint: (edgeId: string, waypointId: string) => void;
        setWaypoints: (waypoints: Map<string, EdgeWaypoint[]>) => void;
        waypointMap: Map<string, EdgeWaypoint[]>;
    }
    Index
    addWaypoint: (edgeId: string, position: Position) => void

    Add a waypoint to an edge at a position

    clearAllWaypoints: () => void

    Clear all waypoints for all edges

    clearWaypoints: (edgeId: string) => void

    Clear all waypoints for a specific edge

    getRoutedPaths: () => Map<string, RoutedPath>

    Get routed paths computed from current waypoints

    hasWaypoints: (edgeId: string) => boolean

    Whether an edge has waypoints

    moveWaypoint: (edgeId: string, waypointId: string, position: Position) => void

    Move an existing waypoint

    removeWaypoint: (edgeId: string, waypointId: string) => void

    Remove a waypoint by ID

    setWaypoints: (waypoints: Map<string, EdgeWaypoint[]>) => void

    Replace all waypoints, used when DSL, recovery, or a document is loaded.

    waypointMap: Map<string, EdgeWaypoint[]>

    Current waypoint map: edgeId → waypoints