• This hook uses a web worker to perform edge bundling asynchronously.

    Parameters

    • nodesMap: Map<string, Node>

      The map of nodes.

    • edges: Edge[]

      The list of edges.

    • k: number

      The deroute parameter.

    Returns { flightPaths: FlightPath[]; loading: boolean; status: WORKER_STATUS }

    The flight paths, loading state, and worker status.