g3-toolkit API Reference
    Preparing search index...

    Function polylineIntersectsBoxes

    • Does an orthogonal polyline pass through any box interior? (Touching a border is not a crossing.) Used to decide whether a cheap rescale result is acceptable or an obstacle-aware reroute is required (G3L:RTE-011 drag policy: preserve ELK's route shape when it stays clear, reroute only on collision).

      Parameters

      • points: readonly { x: number; y: number }[]
      • boxes: readonly RouteBox[]

      Returns boolean