/claim #534
Implements high-fidelity PCB texture rendering using circuit-to-svg and resvg-wasm as specified in issue #534. This allows the 3D viewer to display intricate traces, pads, and silkscreen details directly on the board geometry.
circuit-to-svg (^0.0.108) - Converts circuit JSON to SVG format@resvg/resvg-wasm (^2.6.2) - High-fidelity SVG to PNG conversionsrc/utils/pcb-texture-generator.ts: Core utility with singleton WASM initialization and memory cleanup.src/hooks/use-pcb-texture.ts: React hook for managing texture lifecycles and Three.js disposal.stories/pcb-texture.stories.tsx: Dedicated Storybook demo for visual verification.src/hooks/index.ts: Added export for usePcbTexture.src/utils/create-board-material.ts: Updated to support map (texture) and color neutralization.src/utils/manifold/create-three-geometry-meshes.ts: Updated to pass pcbTexture to the material creator.src/CadViewerManifold.tsx: Integrated the hook into the main rendering pipeline.bunx tsc --noEmit passed.bun run build successful.Fixes #534
Kesavaraja M
@Kesavaraja67
tscircuit
@tscircuit