Fix dashed wire anchors at any zoom and let endpoints be dragged to reorder #38
Loading…
Reference in a new issue
No description provided.
Delete branch "endpoint-reorder"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two node builder changes.
The dashed "uses" wires between an endpoint and its setting or heater drifted below their rows at any zoom other than 100%. The row anchor added its 26px title-line offset in screen pixels rather than world units, so the error grew as you zoomed out. Measured in the browser at 60% zoom the wire ends now sit within half a pixel of the row's title line.
Endpoint rows can be dragged up and down within their node. The drag starts after 8px of vertical movement so a plain click still selects, the row lifts while dragging, and rows swap once the pointer passes their midpoint so they don't flip back and forth. The new order feeds the YAML and the automatic indices. Moving an endpoint between nodes is not included.
Tested with
node --test(20 passing, 1 skipped), html-validate, and a Chromium run that reorders a row, checks the YAML order and confirms a click still selects without moving anything.