Commit Graph
9 Commits
Author SHA1 Message Date
David Stadelmann 2c6e5f44df feat: add anchor-based zigzag bend placement via zigzag-at
Add the `zigzag-at` parameter to place the middle bend of a zigzag wire
on the axis of a referenced anchor. It overrides `zigzag-ratio`, which
now defaults to `auto` (resolving to 50%) so the two are mutually
exclusive. Accepted forms are an anchor name, any CeTZ coordinate, or
the scalar offset `(rel: <length>, to: <coord>)`.

Add the generic helpers this relies on and that other wire styles reuse:
- `normalize-scalar-offset(at, axis)` turns a scalar offset into an x or
  y offset; `normalize-zigzag-at` is a wrapper around it.
- `detect-port-side(anchor, ctx)` deduces the cardinal side a port faces
  by comparing it with its element's `.center` anchor.

Add the `zigzag-at` example.
2026-10-22 00:31:52 +02:00
HEL 459892bb13 refactor: centralize cetz import 2026-06-30 18:48:34 +02:00
Shmerlard 87643983ec added guided wire 2025-08-17 22:05:36 +03:00
bono 94d5d6b854 add examples and add iec gates to manual 2025-06-28 13:56:22 -03:00
HEL ff0b91e683 updated compiler version + dependencies 2025-03-01 21:22:08 +01:00
HEL a856b7f634 added doc for wire.intersection 2024-05-18 21:52:46 +02:00
HEL 86d9122740 added groups 2024-05-18 13:06:57 +02:00
HEL 64a6146f32 added doc for gates + minor changes 2024-05-17 22:24:38 +02:00
HEL 4d97062d30 improved doc + moved examples to separate file 2024-05-17 16:52:43 +02:00