g3-toolkit API Reference
    Preparing search index...

    Interface OrthogonalRouteRequest

    interface OrthogonalRouteRequest {
        bendPenalty?: number;
        clearance?: number;
        minStub?: number;
        obstacles: readonly RouteBox[];
        source: RouteTerminal;
        target: RouteTerminal;
    }
    Index

    Properties

    bendPenalty?: number

    A* cost per direction change; higher = straighter routes. Default 30.

    clearance?: number

    Minimum distance kept from obstacle borders (and the length of the perpendicular exit stubs). Default 12.

    minStub?: number

    Minimum length of the FIRST and LAST route segments (the perpendicular exit stubs). UML relationship symbols (diamonds, hollow triangles) sit on the terminal segments; an immediate bend buries them (owner finding, 2026-07-11). Tried at full length first, degrading toward clearance when a long stub lands inside an inflated obstacle. Default 28.

    obstacles: readonly RouteBox[]

    Boxes the route must clear, EXCLUDING the endpoint nodes' own boxes (anchors sit on those borders by definition).