Cut A Curve Without Moving It
Cuts hide intervals on the completed curve. Optional indicators are independent; the remaining pieces retain the original geometry.
No Setup
Source
#context {
let path = deixis-route(
from: (0pt, 25pt),
to: (210pt, 25pt),
route: "curve",
via: ((70pt, 0pt), (140pt, 50pt)))
let paint = deixis-prepare-connector(
path, stroke: teal + 1pt,
heads: (body: "stealth"),
cuts: (at: 50%, length: 18pt),
gap-marks: "slash")
box(width: 220pt, height: 70pt,
place(top + left, dy: 25pt,
deixis-render-connector(paint)))
}