gantt-renderer
    Preparing search index...

    Function routeLinks

    • Computes orthogonal routing for all dependency links. Links whose source or target is not in the layout map are skipped silently (e.g. when the row is collapsed).

      Parameters

      • links: {
            data?: Record<string, unknown>;
            id: number;
            readonly?: boolean;
            source: number;
            target: number;
            type: "FS" | "SS" | "FF" | "SF";
        }[]

        The dependency links to route.

        • Optionaldata?: Record<string, unknown>

          Optional arbitrary metadata for consumer use. Preserved in the parsed output.

        • id: number

          Unique positive integer identifier for the dependency link.

        • Optionalreadonly?: boolean

          When true, the link cannot be modified or deleted through the UI.

        • source: number

          The id of the predecessor task (the task that drives the dependency).

        • target: number

          The id of the successor task (the task that depends on the predecessor).

        • type: "FS" | "SS" | "FF" | "SF"

          Dependency type.

          • 'FS' — Finish-to-start: successor starts after predecessor finishes.
          • 'SS' — Start-to-start: successor starts at the same time as predecessor.
          • 'FF' — Finish-to-finish: successor finishes at the same time as predecessor.
          • 'SF' — Start-to-finish: successor finishes after predecessor starts.
          'FS'
          
      • layouts: Map<number, BarLayout>

        A map from task ID to its computed BarLayout.

      Returns RoutedLink[]

      An array of RoutedLink objects with computed vertex paths.