pcbjam/scripts
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Gergő Törcsvári 9dbfddc527
feat(pcbnew): collab adds footprints (s-expr blob) + vias/zones (native)
Footprint add reconstructs from the bare `(footprint …)` s-expr clipboard blob via
CLIPBOARD_IO (SetWriter/SetReader redirect it to a string for headless/wasm). The
non-footprint `(kicad_pcb …)` envelope parse (parseBOARD) is asyncify-fragile in wasm
— commit.Add of an envelope-parsed item silently stages nothing and subsequent virtual
dispatch traps ("index out of bounds"), the same wall that deferred the eeschema symbol
blob — so vias and zones reconstruct NATIVELY instead: itemToJson emits drill/layer-pair
for a PCB_VIA and the outline polygon for a ZONE, and makeItem builds a fresh PCB_VIA /
ZONE. flushDiff attaches the blob only to types that need it (footprints/board graphics);
tracks/vias/zones skip it. Includes the dangling-parent fix for the envelope path
(SetParent before delete) which footprints don't hit.

Build: kicad_clipboard.h pulls in the generated pcb_lexer.h (emitted into the common
build subdir by make_lexer) — added -I${KICAD_BUILD}/common to the embind include path.

Tests: sample board gains a via + zone; snapshot asserts their native fields are emitted,
and three round-trip add tests (footprint via blob, via/zone native) delete then re-add
each by uuid and confirm it returns at the same position. 6 passed, 1 skipped, 0 aborts.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-09 06:03:59 +02:00
..
common fix(wasm): dynCall signature-mismatch fallback + eeschema collab wire converters 2026-06-05 13:56:42 +02:00
config Add autom4te wrapper to keep submodules clean 2025-12-27 09:21:31 +01:00
deps Remove .git from meson subprojects to keep IDE clean 2025-12-27 09:37:20 +01:00
git-workflow refactor: 💡 remove orphaned files 2026-06-05 13:18:24 +02:00
kicad feat(pcbnew): collab adds footprints (s-expr blob) + vias/zones (native) 2026-06-09 06:03:59 +02:00
build-gal-native-test.sh feat(webgl): Add GAL native test harness for visual regression testing 2026-01-07 09:42:31 +01:00
build-gal-webgl-test.sh fix(wasm): Fix asyncify rewind with asyncify-aware dynCall shims 2026-03-13 12:26:48 +01:00
build-monitor.sh chore: 🤖 add build monitor 2026-06-01 17:37:00 +02:00
build-wasm-test.sh fix(build): Source env.sh in build-wasm-test.sh for Python 3.10+ 2026-01-10 21:24:51 +01:00
build-wxuniversal-wasm.sh chore: 🤖 add build monitor 2026-06-01 17:37:00 +02:00
compare-screenshots.sh Add baseline screenshots and visual regression testing 2025-11-29 19:55:12 +01:00
create-feature-patches.sh feat(schematic): eeschema WASM build + e2e harness 2026-05-29 16:01:17 +02:00
kicad-diff-stats.sh Reduce KiCad fork divergence with CMake cleanup 2026-01-05 14:03:03 +01:00
setup-emsdk.sh fix(wasm): Fix asyncify rewind with asyncify-aware dynCall shims 2026-03-13 12:26:48 +01:00
test-gal-regression.sh refactor(webgl): Move WebGL GAL from test harness to KiCad source tree 2026-01-10 13:15:58 +01:00
test-gal-webgl.sh refactor(webgl): Move WebGL GAL from test harness to KiCad source tree 2026-01-10 13:15:58 +01:00
update-baseline-screenshots.sh Fix Asyncify and improve build process 2025-12-14 11:59:50 +01:00