Feat/x align #39

Open
dstadelm wants to merge 5 commits from dstadelm/circuiteria:feat/x-align into main
pull from: dstadelm/circuiteria:feat/x-align
First-time contributor

Add the possibility to align elements based on ports for the x coordinate, analogue to y

Add the possibility to align elements based on ports for the x coordinate, analogue to y
dstadelm added 5 commits 2026-10-21 23:00:31 +00:00
CeTZ 0.5.2 requires 3D coordinate vectors (x, y, z) for raw
coordinate tuples passed to coordinate.resolve(). Update internal
wire computations (dodge, guided) to use 3-element tuples, fix
.last() to .at(1) for y-component access on resolved coordinates,
and add a normalize-coord utility that automatically pads user-
provided 2D points (x, y) to (x, y, 0) so users do not need to
specify the z dimension.
Accept `(from: <anchor>, to: <port-id>)` for the `x` parameter of
elements, aligning the element's port with the anchor, analogous to the
existing form for `y`. Add a `ports-x` parameter for elements with
`auto-ports: false` and a `gallery/test_xalign` gallery entry.
You are not authorized to merge this pull request.
This pull request can be merged automatically.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u https://git.kb28.ch/dstadelm/circuiteria feat/x-align:dstadelm-feat/x-align
git checkout dstadelm-feat/x-align
Sign in to join this conversation.