File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,8 +56,8 @@ async function convertSvgToPng(
5656 // Browser: Use Canvas API (works better for complex SVGs)
5757 return convertSvgToCanvasBrowser ( svgString , resolution , backgroundColor )
5858 } else {
59- // Node.js/Bun: Use WASM for high-quality rendering
60- const { svgToPngDataUrl } = await import ( "../utils/svg-to-png-browser " )
59+ // Node.js/Bun: Use JS implementation for stability
60+ const { svgToPngDataUrl } = await import ( "../utils/svg-to-png" )
6161 return await svgToPngDataUrl ( svgString , {
6262 width : resolution ,
6363 background : backgroundColor ,
@@ -109,8 +109,6 @@ export async function renderBoardTextures(
109109 top : string
110110 bottom : string
111111} > {
112- console . log ( "Generating PCB texture..." )
113-
114112 const [ top , bottom ] = await Promise . all ( [
115113 renderBoardLayer ( circuitJson , {
116114 layer : "top" ,
@@ -123,11 +121,5 @@ export async function renderBoardTextures(
123121 backgroundColor : "#006600" , // Darker green for bottom layer
124122 } ) ,
125123 ] )
126-
127- console . log ( "PCB texture generated:" , {
128- topLength : top . length ,
129- bottomLength : bottom . length ,
130- } )
131-
132124 return { top, bottom }
133125}
You can’t perform that action at this time.
0 commit comments