d3-dag
    Preparing search index...

    Interface LaneOpt

    a lane operator that assigns lanes to minimize edge crossings.

    Create with laneOpt.

    interface LaneOpt {
        check(val: OptChecking): LaneOpt;
        check(): OptChecking;
        compressed(val: boolean): LaneOpt;
        compressed(): boolean;
        dist(val: boolean): LaneOpt;
        dist(): boolean;
        (ordered: readonly GraphNode<unknown, unknown>[]): void;
    }

    Hierarchy (View Summary)

    • Lane<unknown, unknown>
      • LaneOpt
    Index

    Methods

    • set whether to used compressed output

      If output is compressed then the number of crossings will be minimized subject to the fewest number of lanes necessary.

      (default: false)

      Parameters

      • val: boolean

      Returns LaneOpt

    • get the current compressed setting

      Returns boolean

    • set whether to also minimize distance between connected nodes

      This adds more variables and constraints so will take longer, but will likely produce a better layout.

      (default: true)

      Parameters

      • val: boolean

      Returns LaneOpt

    • get whether the current layout minimized distance

      Returns boolean