From 922dfcaa2c3375ae905d5c78cba2fbbfe2462bc4 Mon Sep 17 00:00:00 2001 From: Abdoaslam Allawlabi Date: Fri, 18 Oct 2024 16:52:26 +0200 Subject: [PATCH] updated the schematic-symbols to fix the baterry in core & formated --- .storybook/preview.ts | 6 +++--- bun.lockb | Bin 260418 -> 260773 bytes .../create-svg-objects-from-sch-component.ts | 16 ++++++++-------- package.json | 6 ++---- stories/net-label-not-overlap.stories.tsx | 5 ++++- .../schematic-resistor-capacitor.stories.tsx | 12 ++++++------ .../silkscreen-with-hole-and-trace.test.ts | 4 +++- .../__snapshots__/kicad-theme-demo.snap.svg | 2 +- tests/sch/__snapshots__/resistor.snap.svg | 2 +- tests/sch/kicad-theme-demo.test.tsx | 18 +++++++++--------- tsconfig.json | 4 ++-- 11 files changed, 39 insertions(+), 36 deletions(-) diff --git a/.storybook/preview.ts b/.storybook/preview.ts index 37914b1..62a4ea3 100644 --- a/.storybook/preview.ts +++ b/.storybook/preview.ts @@ -1,4 +1,4 @@ -import type { Preview } from "@storybook/react"; +import type { Preview } from "@storybook/react" const preview: Preview = { parameters: { @@ -9,6 +9,6 @@ const preview: Preview = { }, }, }, -}; +} -export default preview; +export default preview diff --git a/bun.lockb b/bun.lockb index c80be13d1739babf0b432848f51c880b61f40c5a..2af0d457874d00aba83141eccf0fd33ea898a4ed 100755 GIT binary patch delta 19226 zcmeHvd016t-}N3i$}tg82@nux#Q{ad10tZNsTodXYDP)sfZ>RiXaqRqh@xA&LB*UE z4JT9vMa2;_oGR1I94e>sDW4`W$#1Pa08ejE@AqBT_h6X_U4=;|90K@ zi)&h7KzdNWnis1tty^|&+mv2;ZM(%+{q=H-ClNc}i#@&K$0=bAJRYeMuQf{s`73ME zcTLT!?*4%+N$!%A+&e*%+`vC*p)P#`GTt%Ns)>^14>bc^2Rt9_3Qhsr!S}RXE=`k0 zCrgqKtVZD4;Grp!p0ef^z ze5;XhF{9ccz8dT|MogR%6DLUxV6%?yCdbV(>Ut2|K$2>fXEb%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kL$Mb@9qw^4l{V_C+#AT4T{hbc(=ill2 zub>ANAK$%u3-|h}SBU*35ZaY*^4;g3LucEMa`x9m#J=`h_JAp|v5#X`iUCOKV}Gy2 znNfp(9(~Lo4-$6L^95o-{l`@@+io|CPekRzI2y&U+mqml7_&*`CGqalPo@^9pT>%h z7v2rA;vYYAHJ3fbq=u@$_n*f~k?rBO`m2Q~MN;p!hs{+`r&dFcDGhp^e(d+Wa5Pd| zS$WIW!$2=FvJraOyupc;jZmrl!(x9UJO>>|PJCe6;pNx$aE%7&a$^(6z4)`k;to7Q z?!W`5ZYhn=4*RLJW)|1Jbpv>W7~V<;y!>^WwI@&AL<}D%k+zobXo6~vJYrU}(T(5T zA2$6w1rF8?Dp8Di1~qzL%m)3hem?&>BdZ-auy<>Woa`^(P&z)?TJr3@IghKcVp;SZ9bpd;U$A8%WwLV{e+wXDARV&R` z4_dwTWdl`l!NWxuyH@(CP_%4{ak0Pl!~I9G*e~+T%Eun|7lT9vWV;UkwC)d&W5PsI zQ#8u{CXs^8U7~#Ygsyn(FkEbh1O8>;6sVFXU;5(e+g$vssoF6&u$j7A4)R=YKE5TE zZ2f)egl|IX!}dTUCXM{$x$8rND?eCeJ_PRlSHnX6u4{ZNAqS{_{XaZuyb?=Uw8wYb zQ!} { - const result = convertCircuitJsonToSchematicSvg(soup); + const result = convertCircuitJsonToSchematicSvg(soup) - return
; -}; + return
+} export default { title: "Resistor and Capacitor Schematic", component: ResistorCapacitorSch, -}; +} diff --git a/tests/pcb/silkscreen-with-hole-and-trace.test.ts b/tests/pcb/silkscreen-with-hole-and-trace.test.ts index d4da9c5..2e13635 100644 --- a/tests/pcb/silkscreen-with-hole-and-trace.test.ts +++ b/tests/pcb/silkscreen-with-hole-and-trace.test.ts @@ -1075,5 +1075,7 @@ const pcbSoup: any[] = [ ] test("Silkscreen with PCB Plated Hole", () => { - expect(convertCircuitJsonToPcbSvg(pcbSoup)).toMatchSvgSnapshot(import.meta.path) + expect(convertCircuitJsonToPcbSvg(pcbSoup)).toMatchSvgSnapshot( + import.meta.path, + ) }) diff --git a/tests/sch/__snapshots__/kicad-theme-demo.snap.svg b/tests/sch/__snapshots__/kicad-theme-demo.snap.svg index 16d197b..5d6b4e7 100644 --- a/tests/sch/__snapshots__/kicad-theme-demo.snap.svg +++ b/tests/sch/__snapshots__/kicad-theme-demo.snap.svg @@ -7,4 +7,4 @@ .pin-number { font-size: 0.15px; fill: rgb(169, 0, 0); } .port-label { fill: rgb(0, 100, 100); } .component-name { font-size: 0.25px; fill: rgb(0, 100, 100); } - 10R10.1C1ATmega8-16AU2297820192212131415161723418 \ No newline at end of file + 10R10.1C1ATmega8-16AU2297820192212131415161723418 \ No newline at end of file diff --git a/tests/sch/__snapshots__/resistor.snap.svg b/tests/sch/__snapshots__/resistor.snap.svg index 03717c5..32a8c1a 100644 --- a/tests/sch/__snapshots__/resistor.snap.svg +++ b/tests/sch/__snapshots__/resistor.snap.svg @@ -7,4 +7,4 @@ .pin-number { font-size: 0.15px; fill: rgb(169, 0, 0); } .port-label { fill: rgb(0, 100, 100); } .component-name { font-size: 0.25px; fill: rgb(0, 100, 100); } - 10000R1 \ No newline at end of file + 10000R1 \ No newline at end of file diff --git a/tests/sch/kicad-theme-demo.test.tsx b/tests/sch/kicad-theme-demo.test.tsx index 41d9bf4..c537e0b 100644 --- a/tests/sch/kicad-theme-demo.test.tsx +++ b/tests/sch/kicad-theme-demo.test.tsx @@ -1,9 +1,9 @@ -import { expect, it } from "bun:test"; -import { convertCircuitJsonToSchematicSvg } from "lib/index"; -import { getTestFixture } from "tests/fixtures/get-test-fixture"; +import { expect, it } from "bun:test" +import { convertCircuitJsonToSchematicSvg } from "lib/index" +import { getTestFixture } from "tests/fixtures/get-test-fixture" it("example 4: kicad theme demo", async () => { - const { project } = getTestFixture(); + const { project } = getTestFixture() project.add( @@ -48,11 +48,11 @@ it("example 4: kicad theme demo", async () => { }, }} /> - - ); + , + ) expect( // @ts-ignore - convertCircuitJsonToSchematicSvg(project.getCircuitJson()) - ).toMatchSvgSnapshot(import.meta.path); -}); + convertCircuitJsonToSchematicSvg(project.getCircuitJson()), + ).toMatchSvgSnapshot(import.meta.path) +}) diff --git a/tsconfig.json b/tsconfig.json index 58b7666..8c5058c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,7 +14,7 @@ "paths": { "lib/*": ["lib/*"] }, - + "verbatimModuleSyntax": true, // Enable strict type checking so you can catch bugs early "strict": true, @@ -27,5 +27,5 @@ "es2022" // "dom" ] - }, + } }