Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Route Around An Obstacle

The wrapper captures a policy for individually declared connections. Registered nodes stay fixed; the sharp orthogonal route avoids the middle rectangle.

Complete editable source

Setup Required

Source

#show: deixis-routing.with(
  policy: "avoid", clearance: 5pt)
#let node(id, body) = deixis-attach(
  id: id, rect(inset: 6pt, body))
#grid(columns: (auto, auto, auto),
  gutter: 25pt, align: horizon,
  node(<a>)[A],
  deixis-attach(behavior: "avoid",
    rect(width: 45pt, height: 65pt,
      fill: luma(235), stroke: none)),
  node(<b>)[B],
)
#deixis-connect(from: (node: <a>),
  to: (node: <b>),
  connector: (heads: "stealth"))