/claim #534
This PR implements PCB texture support for the 3D viewer using circuit-to-svg and resvg-wasm as specified in issue #534.
circuit-to-svg (^0.0.108) and resvg-wasm (^2.6.0) dependenciessrc/utils/svg-texture-utils.ts with texture generation utilities:
initializeResvg() - WASM initializationgeneratePcbTexture() - Converts circuit JSON to PNG texture via SVGcleanupTextureUrl() - Memory leak preventionusePcbSvgTexture) for texture lifecycle managementcircuit-to-svg to convert circuit elements to SVGresvg-wasm for efficient SVG→PNG conversionURL.revokeObjectURL()Core utilities are implemented and ready for integration. Additional testing will be added with the React hook implementation.
Amal SP
@amalsp220
tscircuit
@tscircuit