feat: Add PCB texture support using circuit-to-svg and resvg-wasm#633
Open
SiddhantOfficial wants to merge 5 commits intotscircuit:mainfrom
Open
feat: Add PCB texture support using circuit-to-svg and resvg-wasm#633SiddhantOfficial wants to merge 5 commits intotscircuit:mainfrom
SiddhantOfficial wants to merge 5 commits intotscircuit:mainfrom
Conversation
- Add svg-texture-utils.ts for SVG to PNG texture conversion - Add usePcbSvgTexture hook for React integration - Use circuit-to-svg to render circuit JSON as SVG - Use @resvg/resvg-wasm for high-quality PNG conversion Closes tscircuit#534
- Add circuit-to-svg and @resvg/resvg-wasm dependencies - Add PcbTexture.stories.tsx with basic and complex examples - Demonstrates SVG to PNG texture conversion for PCB rendering
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
rushabhcodes
left a comment
There was a problem hiding this comment.
Your type checks are failing!
Contributor
|
Hey @SiddhantOfficial, please don’t be discouraged by this but we no longer support bounties, but we do have a sponsorship though. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements PCB texture rendering using
circuit-to-svgandresvg-wasmas specified in issue #534.Changes
New Dependencies:
circuit-to-svg(^0.0.108) - Generates SVG from circuit JSON@resvg/resvg-wasm(^2.6.2) - High-fidelity SVG to PNG conversionNew Files:
src/utils/svg-texture-utils.ts- Core utilities for SVG to PNG texture conversionsrc/hooks/usePcbSvgTexture.ts- React hook for managing PCB texture generationstories/PcbTexture.stories.tsx- Storybook demosModified Files:
src/hooks/index.ts- Added export for new hookpackage.json- Added new dependenciesTechnical Implementation
circuit-to-svgto convert circuit JSON to SVG formatresvg-wasmfor WASM-based PNG renderingTesting
npm run storybookto view the examplesFixes #534