velxio/frontend/src/utils
David Montero aed1796a8f fix(wires): stop board-corner wire anchors — alias fallbacks for pin-name spellings
A wire endpoint naming a pin the board element does not expose silently
resolved to nothing and rendered anchored at the board corner. A full
audit (all gallery examples + every saved project on velxio.dev) found 15
examples and 28 user projects doing it — the same electrical pin spelled
differently per surface: GND.1 on the classic ESP32 (element exposes
GND/GND2), 3.3V vs 3V3, GND2 vs GND.2, D13 vs 13 vs GP13, A0-A2 vs
GP26-28 on the Pico, 36/39 vs VP/VN, bare 5V vs VBUS/VIN.

calculatePinPosition now tries those equivalences AFTER the exact match
and the two existing fallbacks miss (so no current resolution changes),
healing old saves, .vlx imports and agent-authored wires without a data
migration. The Pico element gains A0/A1/A2 alias pads on the ADC pins
(RX2/16 dual-entry precedent) and a GP25 pad at the onboard LED silk so
pico-blink-style wires have an anchor. The two examples that were
outright wrong (microsd-card-esp32 GND.1, pico-serial-echo TX) now use
the element's real pin names.

Netlist snapshots (166) untouched; verifier + builder suites green.
2026-08-15 20:08:47 +02:00
..
analytics.ts feat(datasheet): Product-page links carry UTM attribution and report the click 2026-08-09 08:16:47 +02:00
boardPinMapping.ts feat(m5stack-core): header pins resolve, and PWM tones carry their real pitch 2026-08-12 15:19:30 +02:00
boardProtocols.ts
…
breadboardNets.ts
…
breadboardOccupancy.ts
…
breadboardSnap.ts
…
captureCanvasPreview.ts
…
compilationLogger.ts fix(console): the final flush speaks in whole lines, from the real buffer 2026-08-09 08:05:43 +02:00
countryFlag.ts
…
dropSlot.ts
…
esp32ImageParser.ts
…
exampleToBuildNetlistInput.ts
…
fatImage.ts
…
firmwareLoader.ts
…
generateExamplePreview.tsx
…
hexParser.ts refactor: rename components and update prefixes to 'velxio-' for consistency 2026-04-21 16:45:45 -03:00
importProject.ts
…
keyButtonBindings.ts
…
libraryManifest.ts
…
loadExample.ts feat(metrics): compiles and runs remember which gallery example they came from 2026-08-09 22:34:26 +02:00
piUpload.ts
…
pinInspectorLayout.ts fix(picker+inspector): dedupe Pi cards, wire Zero/1/2 as real boards, readable many-pin inspectors 2026-08-07 23:03:05 +02:00
pinPositionCalculator.ts fix(wires): stop board-corner wire anchors — alias fallbacks for pin-name spellings 2026-08-15 20:08:47 +02:00
projectPayload.ts fix(editor): reconcile active file-group pointers; stop persisting compiledProgram 2026-08-15 08:29:39 +02:00
reservedUsernames.ts
…
sdCardFiles.ts
…
socketSnap.ts
…
useSEO.ts
…
useTouchDevice.ts
…
uuid.ts
…
vlxFile.ts Merge remote-tracking branch 'origin/master' into v3.2-worktree 2026-08-10 17:00:24 +02:00
wireAutoRoute.ts
…
wireColors.ts
…
wireHitDetection.ts
…
wireUtils.ts
…
wokwiZip.ts
…
workspaceDraft.ts
…