Embed KiCad's gerbview WASM in the graphics-to-WebGL blog post as a
click-to-load demo that opens the tiny_tapeout board entirely in-browser.
- GerberDemo.astro: lazy iframe embed + cross-origin-isolation reload guard
+ WebGL2/SharedArrayBuffer feature-detect with a poster fallback
- public/gerber-demo/{index.html,boot.js}: self-contained gerbview boot
harness (config seed, MEMFS board preload, argv auto-open)
- board/ tiny_tapeout layers + poster.png committed; wasm/ glue JS committed
(served same-origin — pthread worker can't be cross-origin), while
gerbview.wasm + kicad-resources.bin are git-ignored and served from
Cloudflare R2 (assets.pcbjam.com)
- COOP/COEP require-corp scoped to the post + /gerber-demo routes
(dev: astro.config.mjs + middleware.ts; prod: vercel.json)
- post converted to MDX (@astrojs/mdx) so it can embed the component
- scripts/: sync-demo-wasm.sh, r2-deploy.sh, r2-cors.json
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
100 lines
1.8 KiB
Text
100 lines
1.8 KiB
Text
G04 #@! TF.GenerationSoftware,KiCad,Pcbnew,7.0.9-7.0.9~ubuntu22.04.1*
|
|
G04 #@! TF.CreationDate,2023-12-15T15:20:45-05:00*
|
|
G04 #@! TF.ProjectId,tinytapeout-demo,74696e79-7461-4706-956f-75742d64656d,0.9.4*
|
|
G04 #@! TF.SameCoordinates,PX35e1f20PY8044ea0*
|
|
G04 #@! TF.FileFunction,Profile,NP*
|
|
%FSLAX46Y46*%
|
|
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
|
|
G04 Created by KiCad (PCBNEW 7.0.9-7.0.9~ubuntu22.04.1) date 2023-12-15 15:20:45*
|
|
%MOMM*%
|
|
%LPD*%
|
|
G01*
|
|
G04 APERTURE LIST*
|
|
G04 #@! TA.AperFunction,Profile*
|
|
%ADD10C,0.100000*%
|
|
G04 #@! TD*
|
|
G04 #@! TA.AperFunction,Profile*
|
|
%ADD11C,0.080000*%
|
|
G04 #@! TD*
|
|
G04 APERTURE END LIST*
|
|
D10*
|
|
X23630000Y80600000D02*
|
|
G75*
|
|
G03*
|
|
X23230000Y81000000I-400000J0D01*
|
|
G01*
|
|
X33270000Y81000000D02*
|
|
G75*
|
|
G03*
|
|
X32870000Y80600000I0J-400000D01*
|
|
G01*
|
|
X104500000Y78000000D02*
|
|
G75*
|
|
G03*
|
|
X101500000Y81000000I-3000000J0D01*
|
|
G01*
|
|
X33270000Y81000000D02*
|
|
X101500000Y81000000D01*
|
|
X101500000Y0D02*
|
|
X3000000Y0D01*
|
|
X104500000Y78000000D02*
|
|
X104500000Y3000000D01*
|
|
X0Y3000000D02*
|
|
G75*
|
|
G03*
|
|
X3000000Y0I3000000J0D01*
|
|
G01*
|
|
X23230000Y81000000D02*
|
|
X3000000Y81000000D01*
|
|
X3000000Y81000000D02*
|
|
G75*
|
|
G03*
|
|
X0Y78000000I0J-3000000D01*
|
|
G01*
|
|
X0Y3000000D02*
|
|
X0Y78000000D01*
|
|
X101500000Y0D02*
|
|
G75*
|
|
G03*
|
|
X104500000Y3000000I0J3000000D01*
|
|
G01*
|
|
D11*
|
|
G04 #@! TO.C,J15*
|
|
X32870000Y80600000D02*
|
|
X32870000Y74400000D01*
|
|
X32070000Y74400000D02*
|
|
X24430000Y74400000D01*
|
|
X23630000Y74400000D02*
|
|
X23630000Y80600000D01*
|
|
X32545000Y74000001D02*
|
|
G75*
|
|
G03*
|
|
X32869999Y74400000I-37502J362500D01*
|
|
G01*
|
|
X32220001Y74280000D02*
|
|
G75*
|
|
G03*
|
|
X32545000Y74000001I302498J22499D01*
|
|
G01*
|
|
X32219999Y74280000D02*
|
|
G75*
|
|
G03*
|
|
X32070001Y74399998I-134999J-15001D01*
|
|
G01*
|
|
X24430000Y74399998D02*
|
|
G75*
|
|
G03*
|
|
X24280002Y74279999I-15000J-134998D01*
|
|
G01*
|
|
X23955000Y74000003D02*
|
|
G75*
|
|
G03*
|
|
X24279997Y74279999I22500J302497D01*
|
|
G01*
|
|
X23630000Y74400000D02*
|
|
G75*
|
|
G03*
|
|
X23955000Y74000000I362500J-37500D01*
|
|
G01*
|
|
G04 #@! TD*
|
|
M02*
|