From 6cf15cd50f3489a783a95e944cbaec97e0b5fd49 Mon Sep 17 00:00:00 2001 From: Rishabh Gupta Date: Tue, 3 Sep 2024 01:28:59 +0530 Subject: [PATCH] fix: silkscreen as top most layer --- src/lib/circuit-to-pcb-svg.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib/circuit-to-pcb-svg.ts b/src/lib/circuit-to-pcb-svg.ts index df82714..cde1cde 100644 --- a/src/lib/circuit-to-pcb-svg.ts +++ b/src/lib/circuit-to-pcb-svg.ts @@ -143,12 +143,6 @@ function circuitJsonToPcbSvg(soup: AnySoupElement[]): string { attributes: { id: "other-elements" }, children: otherElements, }, - { - name: "g", - type: "element", - attributes: { id: "silkscreen" }, - children: silkscreenElements, - }, { name: "g", type: "element", @@ -161,6 +155,12 @@ function circuitJsonToPcbSvg(soup: AnySoupElement[]): string { attributes: { id: "holes" }, children: holeElements, }, + { + name: "g", + type: "element", + attributes: { id: "silkscreen" }, + children: silkscreenElements, + }, ].filter((child) => child !== null), }