From af358ff9444cec0952b6ae18fffe8c53e92f1ac3 Mon Sep 17 00:00:00 2001 From: Anas sarkiz Date: Sun, 17 Nov 2024 21:59:53 +0200 Subject: [PATCH 1/2] Refacor the trace so it does not get passed to the chip manufacturer part number and name --- bun.lockb | Bin 123698 -> 123343 bytes lib/components/normal-components/Chip.ts | 30 +++++++- .../primitive-components/Trace/Trace.ts | 11 +++ package.json | 2 +- .../repro5-schematic-schematic.snap.svg | 17 +++++ tests/repros/repro5-schematic.test.tsx | 70 ++++++++++++++++++ 6 files changed, 125 insertions(+), 5 deletions(-) create mode 100644 tests/repros/__snapshots__/repro5-schematic-schematic.snap.svg create mode 100644 tests/repros/repro5-schematic.test.tsx diff --git a/bun.lockb b/bun.lockb index aa5a581041d8ca36039ef067c76417560ec26506..bb842cb0596c3bb92e98385b955acd1170142d9c 100755 GIT binary patch delta 18676 zcmeHvd3a4%-}YIjIb6k(iLP8QGDMHDiv=XIawU(G? zQf(@R5^asGilKzoJVmRGqN*b;kMI8NLA?F?J@5C&b6xKrZ})ZG`(F22zrEJ_t#R8Y z%Z{TpPamnd*xz^1hB~=k%cVv2r%(9Nm0Um#%diV&2=&{pSe-KDSmf16|z; zZC=Jb*1~Di@;V`=j=^Bho-!_bVy40HgUMj11szqxV35EeU?=c(#McAAT+?8v4W5ve zImU0|Si?eSvP(cZ#XCBx`L#m64WTze*9AWSQ$DdUei^(Q44r3pKxqvS5s3)O;4m~5 zv_s}x)VoT*Z!U@CkonDPkV zWybctOOXv#VI!IxUf6T8UztSBzaHh2)iN-}cjeA6x#UH=tL05f%Sy^g$u?w6CtHKT z+e39QCp9HAZEUWgwx%0{DfeJJM~;n4pO{Sc-+CGhjiJwj$*&Df)aRFJJT*0KbSmu9 zvQws|fZKQ}bhor*(^X(< zpfW9fc5}7h95CgV;jP+t0h7C~EmU@bMrYZJpkNU>d0itc0f4=KPY$E6=@?+GZv&jj9J>Dqqt0h{o@0ybRn3c5}fr zdnRc-LgStqhiKeX<2o8Y>Zm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a/lib/components/normal-components/Chip.ts b/lib/components/normal-components/Chip.ts index 99fa63e1..43af92c6 100644 --- a/lib/components/normal-components/Chip.ts +++ b/lib/components/normal-components/Chip.ts @@ -1,4 +1,5 @@ import { chipProps } from "@tscircuit/props" +import type { SchematicPortArrangement } from "circuit-json" import { NormalComponent } from "lib/components/base-components/NormalComponent" import { underscorifyPinStyles } from "lib/soup/underscorifyPinStyles" import { underscorifyPortArrangement } from "lib/soup/underscorifyPortArrangement" @@ -24,17 +25,39 @@ export class Chip extends NormalComponent< doInitialSourceRender(): void { const { db } = this.root! const { _parsedProps: props } = this - const source_component = db.source_component.insert({ ftype: "simple_chip", name: props.name, manufacturer_part_number: props.manufacturerPartNumber, supplier_part_numbers: props.supplierPartNumbers, }) - + const dimensions = this._getSchematicBoxDimensions() + const schematic_box_width = dimensions?.getSize().width + const schematic_box_height = dimensions?.getSize().height + const manufacturer_part_number_text = db.schematic_text.insert({ + text: props.manufacturerPartNumber ?? "", + schematic_component_id: source_component.source_component_id, + anchor: "left", + rotation: 0, + position: { + x: (props.schX ?? 0) + (schematic_box_width ?? 0) / 2, + y: (props.schY ?? 0) + (schematic_box_height ?? 0) / 2 + 0.55, + }, + color: "black", + }) + const component_name_text = db.schematic_text.insert({ + text: props.name ?? "", + schematic_component_id: source_component.source_component_id, + anchor: "left", + rotation: 0, + position: { + x: (props.schX ?? 0) + (schematic_box_width ?? 0) / 2, + y: (props.schY ?? 0) + (schematic_box_height ?? 0) / 2 + 0.35, + }, + color: "black", + }) this.source_component_id = source_component.source_component_id! } - doInitialPcbComponentRender() { const { db } = this.root! const { _parsedProps: props } = this @@ -47,7 +70,6 @@ export class Chip extends NormalComponent< rotation: props.pcbRotation ?? 0, source_component_id: this.source_component_id!, }) - this.pcb_component_id = pcb_component.pcb_component_id } } diff --git a/lib/components/primitive-components/Trace/Trace.ts b/lib/components/primitive-components/Trace/Trace.ts index fa253f96..3835ed74 100644 --- a/lib/components/primitive-components/Trace/Trace.ts +++ b/lib/components/primitive-components/Trace/Trace.ts @@ -629,6 +629,17 @@ export class Trace connectedTo: [], }) } + if (elm.type === "schematic_text") { + obstacles.push({ + type: "rect", + layers: ["top"], + center: elm.position, + // Approximate text bounds based on text length + width: (elm.text?.length ?? 0) * 0.1, + height: 0.2, + connectedTo: [], + }) + } } // Get port positions for later use diff --git a/package.json b/package.json index 2b1f284d..15f21165 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "@tscircuit/soup-util": "^0.0.40", "circuit-json": "^0.0.104", "circuit-json-to-connectivity-map": "^0.0.17", - "circuit-to-svg": "^0.0.77", + "circuit-to-svg": "^0.0.80", "format-si-unit": "^0.0.2", "nanoid": "^5.0.7", "performance-now": "^2.1.0", diff --git a/tests/repros/__snapshots__/repro5-schematic-schematic.snap.svg b/tests/repros/__snapshots__/repro5-schematic-schematic.snap.svg new file mode 100644 index 00000000..e406bdc8 --- /dev/null +++ b/tests/repros/__snapshots__/repro5-schematic-schematic.snap.svg @@ -0,0 +1,17 @@ +-2,-3-2,-2-2,-1-2,0-2,1-2,2-2,3-2,4-1,-3-1,-2-1,-1-1,0-1,1-1,2-1,3-1,40,-30,-20,-10,00,10,20,30,41,-31,-21,-11,01,11,21,31,42,-32,-22,-12,02,12,22,32,43,-33,-23,-13,03,13,23,33,44,-34,-24,-14,04,14,24,34,4part-numberU11TXD2DTR3RTS4VCCIO5RXD6RI7GND79DSR10DCD11CTS12SLEEP13TXDEN14PWRUN15USBDP16USBDM173V3OUT18GND1819RESET20VCC21GND2122RXLED23TXLED25AGND26TEST27OSCI28OSCOLED1part-numberU1 \ No newline at end of file diff --git a/tests/repros/repro5-schematic.test.tsx b/tests/repros/repro5-schematic.test.tsx new file mode 100644 index 00000000..2a53ff36 --- /dev/null +++ b/tests/repros/repro5-schematic.test.tsx @@ -0,0 +1,70 @@ +import { expect, test } from "bun:test" +import { getTestFixture } from "../fixtures/get-test-fixture" + +test("Schematic trace overlaps manufacturer label", async () => { + const { circuit } = getTestFixture() + + circuit.add( + + + + port.right", ".U1 > .pin20"]} /> + , + ) + + circuit.render() + + expect(circuit).toMatchSchematicSnapshot(import.meta.path) +}) From 63678b460e8ba7f6facc6ed0cdb9a88f16183c18 Mon Sep 17 00:00:00 2001 From: Anas sarkiz Date: Sun, 17 Nov 2024 22:24:36 +0200 Subject: [PATCH 2/2] update all the snapshots --- lib/components/normal-components/Chip.ts | 4 ++-- .../__snapshots__/battery-schematic.snap.svg | 3 +++ ...omplex-crossings-simplified-1-schematic.snap.svg | 5 ++++- ...p-complex-schematic-crossings-schematic.snap.svg | 5 ++++- .../chip-layer-flip-schematic.snap.svg | 5 ++++- ...ports-when-schPortArrangement-schematic.snap.svg | 5 ++++- .../__snapshots__/chip-pin-alias-schematic.snap.svg | 5 ++++- .../chip-port-schematic-position-schematic.snap.svg | 5 ++++- ...-port-without-portarrangement-schematic.snap.svg | 7 +++++-- .../normal-components/__snapshots__/chip.snap.svg | 5 ++++- .../__snapshots__/custom-footprint-4-ports.snap.svg | 5 ++++- .../diode-svg-snapshot-schematic.snap.svg | 3 +++ .../__snapshots__/header-schematic.snap.svg | 5 ++++- .../__snapshots__/inductor-schematic.snap.svg | 3 +++ .../__snapshots__/jumper-schematic.snap.svg | 5 ++++- .../__snapshots__/pin-header-schematic.snap.svg | 5 ++++- .../__snapshots__/potentiometer-schematic.snap.svg | 3 +++ .../__snapshots__/pushbutton-schematic.snap.svg | 3 +++ .../rotated-components-schematic.snap.svg | 3 +++ .../schematic-crossing-rendering-schematic.snap.svg | 5 ++++- .../__snapshots__/trace-hint-schematic.snap.svg | 7 ------- .../__snapshots__/trace-schematic.snap.svg | 7 ------- .../bug-high-port-number-schematic.snap.svg | 7 +++++-- .../example3-2x2-keyboard-pcb.snap.svg | 13 ------------- .../__snapshots__/example4-kicad-schematic.snap.svg | 5 ++++- .../example5-simple-circuit-schematic.snap.svg | 7 +++++-- .../example6-voltage-regulator-schematic.snap.svg | 12 ------------ ...ge-regulator-with-connections-schematic.snap.svg | 7 +++++-- .../repro3-usb-port-footprint-schematic.snap.svg | 5 ++++- ...epro4-schematic-trace-overlap-schematic.snap.svg | 5 ++++- .../repro5-schematic-schematic.snap.svg | 2 +- 31 files changed, 101 insertions(+), 65 deletions(-) delete mode 100644 tests/components/primitive-components/__snapshots__/trace-hint-schematic.snap.svg delete mode 100644 tests/components/primitive-components/__snapshots__/trace-schematic.snap.svg delete mode 100644 tests/examples/__snapshots__/example3-2x2-keyboard-pcb.snap.svg delete mode 100644 tests/examples/__snapshots__/example6-voltage-regulator-schematic.snap.svg diff --git a/lib/components/normal-components/Chip.ts b/lib/components/normal-components/Chip.ts index 43af92c6..0bf6fda5 100644 --- a/lib/components/normal-components/Chip.ts +++ b/lib/components/normal-components/Chip.ts @@ -43,7 +43,7 @@ export class Chip extends NormalComponent< x: (props.schX ?? 0) + (schematic_box_width ?? 0) / 2, y: (props.schY ?? 0) + (schematic_box_height ?? 0) / 2 + 0.55, }, - color: "black", + color: "#006464", }) const component_name_text = db.schematic_text.insert({ text: props.name ?? "", @@ -54,7 +54,7 @@ export class Chip extends NormalComponent< x: (props.schX ?? 0) + (schematic_box_width ?? 0) / 2, y: (props.schY ?? 0) + (schematic_box_height ?? 0) / 2 + 0.35, }, - color: "black", + color: "#006464", }) this.source_component_id = source_component.source_component_id! } diff --git a/tests/components/normal-components/__snapshots__/battery-schematic.snap.svg b/tests/components/normal-components/__snapshots__/battery-schematic.snap.svg index 47a1e9c6..d4657648 100644 --- a/tests/components/normal-components/__snapshots__/battery-schematic.snap.svg +++ b/tests/components/normal-components/__snapshots__/battery-schematic.snap.svg @@ -7,6 +7,9 @@ .trace:hover { filter: invert(1); } + .trace:hover .trace-crossing-outline { + opacity: 0; + } .text { font-family: sans-serif; fill: rgb(0, 150, 0); } .pin-number { fill: rgb(169, 0, 0); } .port-label { fill: rgb(0, 100, 100); } diff --git a/tests/components/normal-components/__snapshots__/chip-complex-crossings-simplified-1-schematic.snap.svg b/tests/components/normal-components/__snapshots__/chip-complex-crossings-simplified-1-schematic.snap.svg index f80b47b6..4490b1a2 100644 --- a/tests/components/normal-components/__snapshots__/chip-complex-crossings-simplified-1-schematic.snap.svg +++ b/tests/components/normal-components/__snapshots__/chip-complex-crossings-simplified-1-schematic.snap.svg @@ -7,8 +7,11 @@ .trace:hover { filter: invert(1); } + .trace:hover .trace-crossing-outline { + opacity: 0; + } .text { font-family: sans-serif; fill: rgb(0, 150, 0); } .pin-number { fill: rgb(169, 0, 0); } .port-label { fill: rgb(0, 100, 100); } .component-name { fill: rgb(0, 100, 100); } - -6,-3-6,-2-6,-1-6,0-6,1-6,2-5,-3-5,-2-5,-1-5,0-5,1-5,2-4,-3-4,-2-4,-1-4,0-4,1-4,2-3,-3-3,-2-3,-1-3,0-3,1-3,2-2,-3-2,-2-2,-1-2,0-2,1-2,2-1,-3-1,-2-1,-1-1,0-1,1-1,20,-30,-20,-10,00,10,21,-31,-21,-11,01,11,22,-32,-22,-12,02,12,2U11IN12IN23IN34IN45IN56IN67IN78IN89OUT110OUT211OUT312OUT413OUT514OUT615OUT716OUT8R210kΩR310kΩR410kΩ \ No newline at end of file + -6,-3-6,-2-6,-1-6,0-6,1-6,2-5,-3-5,-2-5,-1-5,0-5,1-5,2-4,-3-4,-2-4,-1-4,0-4,1-4,2-3,-3-3,-2-3,-1-3,0-3,1-3,2-2,-3-2,-2-2,-1-2,0-2,1-2,2-1,-3-1,-2-1,-1-1,0-1,1-1,20,-30,-20,-10,00,10,21,-31,-21,-11,01,11,22,-32,-22,-12,02,12,2U11IN12IN23IN34IN45IN56IN67IN78IN89OUT110OUT211OUT312OUT413OUT514OUT615OUT716OUT8R210kΩR310kΩR410kΩU1 \ No newline at end of file diff --git a/tests/components/normal-components/__snapshots__/chip-complex-schematic-crossings-schematic.snap.svg b/tests/components/normal-components/__snapshots__/chip-complex-schematic-crossings-schematic.snap.svg index 7fbecc8d..c0f25626 100644 --- a/tests/components/normal-components/__snapshots__/chip-complex-schematic-crossings-schematic.snap.svg +++ b/tests/components/normal-components/__snapshots__/chip-complex-schematic-crossings-schematic.snap.svg @@ -7,8 +7,11 @@ .trace:hover { filter: invert(1); } + .trace:hover .trace-crossing-outline { + opacity: 0; + } .text { font-family: sans-serif; fill: rgb(0, 150, 0); } .pin-number { fill: rgb(169, 0, 0); } .port-label { fill: rgb(0, 100, 100); } .component-name { fill: rgb(0, 100, 100); } - -6,-5-6,-4-6,-3-6,-2-6,-1-6,0-6,1-6,2-6,3-5,-5-5,-4-5,-3-5,-2-5,-1-5,0-5,1-5,2-5,3-4,-5-4,-4-4,-3-4,-2-4,-1-4,0-4,1-4,2-4,3-3,-5-3,-4-3,-3-3,-2-3,-1-3,0-3,1-3,2-3,3-2,-5-2,-4-2,-3-2,-2-2,-1-2,0-2,1-2,2-2,3-1,-5-1,-4-1,-3-1,-2-1,-1-1,0-1,1-1,2-1,30,-50,-40,-30,-20,-10,00,10,20,31,-51,-41,-31,-21,-11,01,11,21,32,-52,-42,-32,-22,-12,02,12,22,33,-53,-43,-33,-23,-13,03,13,23,34,-54,-44,-34,-24,-14,04,14,24,35,-55,-45,-35,-25,-15,05,15,25,36,-56,-46,-36,-26,-16,06,16,26,37,-57,-47,-37,-27,-17,07,17,27,3U11IN12IN23IN34IN45IN56IN67IN78IN89OUT110OUT211OUT312OUT413OUT514OUT615OUT716OUT8R110kΩR210kΩR310kΩR410kΩR510kΩR610kΩR710kΩR810kΩR910kΩR1010kΩR1110kΩR1210kΩ \ No newline at end of file + -6,-5-6,-4-6,-3-6,-2-6,-1-6,0-6,1-6,2-6,3-6,4-6,5-6,6-5,-5-5,-4-5,-3-5,-2-5,-1-5,0-5,1-5,2-5,3-5,4-5,5-5,6-4,-5-4,-4-4,-3-4,-2-4,-1-4,0-4,1-4,2-4,3-4,4-4,5-4,6-3,-5-3,-4-3,-3-3,-2-3,-1-3,0-3,1-3,2-3,3-3,4-3,5-3,6-2,-5-2,-4-2,-3-2,-2-2,-1-2,0-2,1-2,2-2,3-2,4-2,5-2,6-1,-5-1,-4-1,-3-1,-2-1,-1-1,0-1,1-1,2-1,3-1,4-1,5-1,60,-50,-40,-30,-20,-10,00,10,20,30,40,50,61,-51,-41,-31,-21,-11,01,11,21,31,41,51,62,-52,-42,-32,-22,-12,02,12,22,32,42,52,63,-53,-43,-33,-23,-13,03,13,23,33,43,53,64,-54,-44,-34,-24,-14,04,14,24,34,44,54,65,-55,-45,-35,-25,-15,05,15,25,35,45,55,66,-56,-46,-36,-26,-16,06,16,26,36,46,56,67,-57,-47,-37,-27,-17,07,17,27,37,47,57,6U11IN12IN23IN34IN45IN56IN67IN78IN89OUT110OUT211OUT312OUT413OUT514OUT615OUT716OUT8R110kΩR210kΩR310kΩR410kΩR510kΩR610kΩR710kΩR810kΩR910kΩR1010kΩR1110kΩR1210kΩU1 \ No newline at end of file diff --git a/tests/components/normal-components/__snapshots__/chip-layer-flip-schematic.snap.svg b/tests/components/normal-components/__snapshots__/chip-layer-flip-schematic.snap.svg index 2282168b..d32ff7d1 100644 --- a/tests/components/normal-components/__snapshots__/chip-layer-flip-schematic.snap.svg +++ b/tests/components/normal-components/__snapshots__/chip-layer-flip-schematic.snap.svg @@ -7,8 +7,11 @@ .trace:hover { filter: invert(1); } + .trace:hover .trace-crossing-outline { + opacity: 0; + } .text { font-family: sans-serif; fill: rgb(0, 150, 0); } .pin-number { fill: rgb(169, 0, 0); } .port-label { fill: rgb(0, 100, 100); } .component-name { fill: rgb(0, 100, 100); } - -2,-1-2,0-2,1-1,-1-1,0-1,10,-10,00,11,-11,01,12,-12,02,1U1123U2123 \ No newline at end of file + -2,-1-2,0-2,1-2,2-1,-1-1,0-1,1-1,20,-10,00,10,21,-11,01,11,22,-12,02,12,2U1123U2123U1U2 \ No newline at end of file diff --git a/tests/components/normal-components/__snapshots__/chip-override-footprint-ports-when-schPortArrangement-schematic.snap.svg b/tests/components/normal-components/__snapshots__/chip-override-footprint-ports-when-schPortArrangement-schematic.snap.svg index 51833c51..ff33e59e 100644 --- a/tests/components/normal-components/__snapshots__/chip-override-footprint-ports-when-schPortArrangement-schematic.snap.svg +++ b/tests/components/normal-components/__snapshots__/chip-override-footprint-ports-when-schPortArrangement-schematic.snap.svg @@ -7,8 +7,11 @@ .trace:hover { filter: invert(1); } + .trace:hover .trace-crossing-outline { + opacity: 0; + } .text { font-family: sans-serif; fill: rgb(0, 150, 0); } .pin-number { fill: rgb(169, 0, 0); } .port-label { fill: rgb(0, 100, 100); } .component-name { fill: rgb(0, 100, 100); } - -2,-2-2,-1-2,0-2,1-2,2-1,-2-1,-1-1,0-1,1-1,20,-20,-10,00,10,21,-21,-11,01,11,22,-22,-12,02,12,2ESP321pos2neg \ No newline at end of file + -2,-2-2,-1-2,0-2,1-2,2-1,-2-1,-1-1,0-1,1-1,20,-20,-10,00,10,21,-21,-11,01,11,22,-22,-12,02,12,2ESP321pos2negESP32 \ No newline at end of file diff --git a/tests/components/normal-components/__snapshots__/chip-pin-alias-schematic.snap.svg b/tests/components/normal-components/__snapshots__/chip-pin-alias-schematic.snap.svg index c40e0ac0..21827441 100644 --- a/tests/components/normal-components/__snapshots__/chip-pin-alias-schematic.snap.svg +++ b/tests/components/normal-components/__snapshots__/chip-pin-alias-schematic.snap.svg @@ -7,8 +7,11 @@ .trace:hover { filter: invert(1); } + .trace:hover .trace-crossing-outline { + opacity: 0; + } .text { font-family: sans-serif; fill: rgb(0, 150, 0); } .pin-number { fill: rgb(169, 0, 0); } .port-label { fill: rgb(0, 100, 100); } .component-name { fill: rgb(0, 100, 100); } - -2,-2-2,-1-2,0-2,1-2,2-1,-2-1,-1-1,0-1,1-1,20,-20,-10,00,10,21,-21,-11,01,11,22,-22,-12,02,12,2U11A12A23B1_14B1_25B2_16B2_27B3_18B3_2 \ No newline at end of file + -2,-2-2,-1-2,0-2,1-2,2-2,3-1,-2-1,-1-1,0-1,1-1,2-1,30,-20,-10,00,10,20,31,-21,-11,01,11,21,32,-22,-12,02,12,22,3U11A12A23B1_14B1_25B2_16B2_27B3_18B3_2U1 \ No newline at end of file diff --git a/tests/components/normal-components/__snapshots__/chip-port-schematic-position-schematic.snap.svg b/tests/components/normal-components/__snapshots__/chip-port-schematic-position-schematic.snap.svg index cdab5da1..752268ce 100644 --- a/tests/components/normal-components/__snapshots__/chip-port-schematic-position-schematic.snap.svg +++ b/tests/components/normal-components/__snapshots__/chip-port-schematic-position-schematic.snap.svg @@ -7,8 +7,11 @@ .trace:hover { filter: invert(1); } + .trace:hover .trace-crossing-outline { + opacity: 0; + } .text { font-family: sans-serif; fill: rgb(0, 150, 0); } .pin-number { fill: rgb(169, 0, 0); } .port-label { fill: rgb(0, 100, 100); } .component-name { fill: rgb(0, 100, 100); } - 3,-13,-0.53,03,0.53,13.5,-13.5,-0.53.5,03.5,0.53.5,14,-14,-0.54,04,0.54,14.5,-14.5,-0.54.5,04.5,0.54.5,15,-15,-0.55,05,0.55,15.5,-15.5,-0.55.5,05.5,0.55.5,16,-16,-0.56,06,0.56,16.5,-16.5,-0.56.5,06.5,0.56.5,17,-17,-0.57,07,0.57,1U11VCC8GND234567 \ No newline at end of file + 3,-13,-0.53,03,0.53,13,1.53,23.5,-13.5,-0.53.5,03.5,0.53.5,13.5,1.53.5,24,-14,-0.54,04,0.54,14,1.54,24.5,-14.5,-0.54.5,04.5,0.54.5,14.5,1.54.5,25,-15,-0.55,05,0.55,15,1.55,25.5,-15.5,-0.55.5,05.5,0.55.5,15.5,1.55.5,26,-16,-0.56,06,0.56,16,1.56,26.5,-16.5,-0.56.5,06.5,0.56.5,16.5,1.56.5,27,-17,-0.57,07,0.57,17,1.57,2U11VCC8GND234567U1 \ No newline at end of file diff --git a/tests/components/normal-components/__snapshots__/chip-port-without-portarrangement-schematic.snap.svg b/tests/components/normal-components/__snapshots__/chip-port-without-portarrangement-schematic.snap.svg index e9c2eaf2..e0327448 100644 --- a/tests/components/normal-components/__snapshots__/chip-port-without-portarrangement-schematic.snap.svg +++ b/tests/components/normal-components/__snapshots__/chip-port-without-portarrangement-schematic.snap.svg @@ -7,11 +7,14 @@ .trace:hover { filter: invert(1); } + .trace:hover .trace-crossing-outline { + opacity: 0; + } .text { font-family: sans-serif; fill: rgb(0, 150, 0); } .pin-number { fill: rgb(169, 0, 0); } .port-label { fill: rgb(0, 100, 100); } .component-name { fill: rgb(0, 100, 100); } - -9,-2-9,-1-9,0-9,1-9,2-9,3-8,-2-8,-1-8,0-8,1-8,2-8,3-7,-2-7,-1-7,0-7,1-7,2-7,3-6,-2-6,-1-6,0-6,1-6,2-6,3-5,-2-5,-1-5,0-5,1-5,2-5,3-4,-2-4,-1-4,0-4,1-4,2-4,3-3,-2-3,-1-3,0-3,1-3,2-3,3-2,-2-2,-1-2,0-2,1-2,2-2,3-1,-2-1,-1-1,0-1,1-1,2-1,30,-20,-10,00,10,20,31,-21,-11,01,11,21,32,-22,-12,02,12,22,33,-23,-13,03,13,23,34,-24,-14,04,14,24,3U11OUT12OUT23OUT34OUT45VCC6IN17IN28GNDD1D2C11nFC21nF-9,-2-9,-1-9,0-9,1-9,2-9,3-8,-2-8,-1-8,0-8,1-8,2-8,3-7,-2-7,-1-7,0-7,1-7,2-7,3-6,-2-6,-1-6,0-6,1-6,2-6,3-5,-2-5,-1-5,0-5,1-5,2-5,3-4,-2-4,-1-4,0-4,1-4,2-4,3-3,-2-3,-1-3,0-3,1-3,2-3,3-2,-2-2,-1-2,0-2,1-2,2-2,3-1,-2-1,-1-1,0-1,1-1,2-1,30,-20,-10,00,10,20,31,-21,-11,01,11,21,32,-22,-12,02,12,22,33,-23,-13,03,13,23,34,-24,-14,04,14,24,3U11OUT12OUT23OUT34OUT45VCC6IN17IN28GNDD1D2C11nFC21nFMOUT2 \ No newline at end of file + " fill="white" stroke="rgb(132, 0, 0)" stroke-width="1.87495651844px"/>MOUT2U1 \ No newline at end of file diff --git a/tests/components/normal-components/__snapshots__/chip.snap.svg b/tests/components/normal-components/__snapshots__/chip.snap.svg index 76a5b6c4..a5ae7184 100644 --- a/tests/components/normal-components/__snapshots__/chip.snap.svg +++ b/tests/components/normal-components/__snapshots__/chip.snap.svg @@ -7,8 +7,11 @@ .trace:hover { filter: invert(1); } + .trace:hover .trace-crossing-outline { + opacity: 0; + } .text { font-family: sans-serif; fill: rgb(0, 150, 0); } .pin-number { fill: rgb(169, 0, 0); } .port-label { fill: rgb(0, 100, 100); } .component-name { fill: rgb(0, 100, 100); } - U11VCC8GND234567 \ No newline at end of file + U11VCC8GND234567U1 \ No newline at end of file diff --git a/tests/components/normal-components/__snapshots__/custom-footprint-4-ports.snap.svg b/tests/components/normal-components/__snapshots__/custom-footprint-4-ports.snap.svg index aeee983a..2de4d6b8 100644 --- a/tests/components/normal-components/__snapshots__/custom-footprint-4-ports.snap.svg +++ b/tests/components/normal-components/__snapshots__/custom-footprint-4-ports.snap.svg @@ -7,8 +7,11 @@ .trace:hover { filter: invert(1); } + .trace:hover .trace-crossing-outline { + opacity: 0; + } .text { font-family: sans-serif; fill: rgb(0, 150, 0); } .pin-number { fill: rgb(169, 0, 0); } .port-label { fill: rgb(0, 100, 100); } .component-name { fill: rgb(0, 100, 100); } - -2,-1-2,0-2,1-1,-1-1,0-1,10,-10,00,11,-11,01,12,-12,02,1AMS1117_3_3chips1GND2VOUT13VIN4VOUT2 \ No newline at end of file + -2,-1-2,0-2,1-2,2-1,-1-1,0-1,1-1,20,-10,00,10,21,-11,01,11,22,-12,02,12,2AMS1117_3_3chips1GND2VOUT13VIN4VOUT2AMS1117_3_3chips \ No newline at end of file diff --git a/tests/components/normal-components/__snapshots__/diode-svg-snapshot-schematic.snap.svg b/tests/components/normal-components/__snapshots__/diode-svg-snapshot-schematic.snap.svg index c9076cbd..ed4ad39b 100644 --- a/tests/components/normal-components/__snapshots__/diode-svg-snapshot-schematic.snap.svg +++ b/tests/components/normal-components/__snapshots__/diode-svg-snapshot-schematic.snap.svg @@ -7,6 +7,9 @@ .trace:hover { filter: invert(1); } + .trace:hover .trace-crossing-outline { + opacity: 0; + } .text { font-family: sans-serif; fill: rgb(0, 150, 0); } .pin-number { fill: rgb(169, 0, 0); } .port-label { fill: rgb(0, 100, 100); } diff --git a/tests/components/normal-components/__snapshots__/header-schematic.snap.svg b/tests/components/normal-components/__snapshots__/header-schematic.snap.svg index ef474c68..8b242c35 100644 --- a/tests/components/normal-components/__snapshots__/header-schematic.snap.svg +++ b/tests/components/normal-components/__snapshots__/header-schematic.snap.svg @@ -7,8 +7,11 @@ .trace:hover { filter: invert(1); } + .trace:hover .trace-crossing-outline { + opacity: 0; + } .text { font-family: sans-serif; fill: rgb(0, 150, 0); } .pin-number { fill: rgb(169, 0, 0); } .port-label { fill: rgb(0, 100, 100); } .component-name { fill: rgb(0, 100, 100); } - -1,-1-1,0-1,10,-10,00,11,-11,01,12,-12,02,1J11234 \ No newline at end of file + -1,-1-1,0-1,10,-10,00,11,-11,01,12,-12,02,1J11234 \ No newline at end of file diff --git a/tests/components/normal-components/__snapshots__/inductor-schematic.snap.svg b/tests/components/normal-components/__snapshots__/inductor-schematic.snap.svg index 4068ad8c..eced868d 100644 --- a/tests/components/normal-components/__snapshots__/inductor-schematic.snap.svg +++ b/tests/components/normal-components/__snapshots__/inductor-schematic.snap.svg @@ -7,6 +7,9 @@ .trace:hover { filter: invert(1); } + .trace:hover .trace-crossing-outline { + opacity: 0; + } .text { font-family: sans-serif; fill: rgb(0, 150, 0); } .pin-number { fill: rgb(169, 0, 0); } .port-label { fill: rgb(0, 100, 100); } diff --git a/tests/components/normal-components/__snapshots__/jumper-schematic.snap.svg b/tests/components/normal-components/__snapshots__/jumper-schematic.snap.svg index e59df868..fb19eb4f 100644 --- a/tests/components/normal-components/__snapshots__/jumper-schematic.snap.svg +++ b/tests/components/normal-components/__snapshots__/jumper-schematic.snap.svg @@ -7,8 +7,11 @@ .trace:hover { filter: invert(1); } + .trace:hover .trace-crossing-outline { + opacity: 0; + } .text { font-family: sans-serif; fill: rgb(0, 150, 0); } .pin-number { fill: rgb(169, 0, 0); } .port-label { fill: rgb(0, 100, 100); } .component-name { fill: rgb(0, 100, 100); } - -2,-1-2,0-2,1-1,-1-1,0-1,10,-10,00,11,-11,01,12,-12,02,1J11234 \ No newline at end of file + -2,-1-2,0-2,1-1,-1-1,0-1,10,-10,00,11,-11,01,12,-12,02,1J11234 \ No newline at end of file diff --git a/tests/components/normal-components/__snapshots__/pin-header-schematic.snap.svg b/tests/components/normal-components/__snapshots__/pin-header-schematic.snap.svg index ed40be8b..ee6a6bda 100644 --- a/tests/components/normal-components/__snapshots__/pin-header-schematic.snap.svg +++ b/tests/components/normal-components/__snapshots__/pin-header-schematic.snap.svg @@ -7,8 +7,11 @@ .trace:hover { filter: invert(1); } + .trace:hover .trace-crossing-outline { + opacity: 0; + } .text { font-family: sans-serif; fill: rgb(0, 150, 0); } .pin-number { fill: rgb(169, 0, 0); } .port-label { fill: rgb(0, 100, 100); } .component-name { fill: rgb(0, 100, 100); } - -2,-1-2,0-2,1-1,-1-1,0-1,10,-10,00,11,-11,01,12,-12,02,1P11234 \ No newline at end of file + -2,-1-2,0-2,1-1,-1-1,0-1,10,-10,00,11,-11,01,12,-12,02,1P11234 \ No newline at end of file diff --git a/tests/components/normal-components/__snapshots__/potentiometer-schematic.snap.svg b/tests/components/normal-components/__snapshots__/potentiometer-schematic.snap.svg index e7bd57be..d91d3c06 100644 --- a/tests/components/normal-components/__snapshots__/potentiometer-schematic.snap.svg +++ b/tests/components/normal-components/__snapshots__/potentiometer-schematic.snap.svg @@ -7,6 +7,9 @@ .trace:hover { filter: invert(1); } + .trace:hover .trace-crossing-outline { + opacity: 0; + } .text { font-family: sans-serif; fill: rgb(0, 150, 0); } .pin-number { fill: rgb(169, 0, 0); } .port-label { fill: rgb(0, 100, 100); } diff --git a/tests/components/normal-components/__snapshots__/pushbutton-schematic.snap.svg b/tests/components/normal-components/__snapshots__/pushbutton-schematic.snap.svg index 04bb9226..1d0c10b4 100644 --- a/tests/components/normal-components/__snapshots__/pushbutton-schematic.snap.svg +++ b/tests/components/normal-components/__snapshots__/pushbutton-schematic.snap.svg @@ -7,6 +7,9 @@ .trace:hover { filter: invert(1); } + .trace:hover .trace-crossing-outline { + opacity: 0; + } .text { font-family: sans-serif; fill: rgb(0, 150, 0); } .pin-number { fill: rgb(169, 0, 0); } .port-label { fill: rgb(0, 100, 100); } diff --git a/tests/components/normal-components/__snapshots__/rotated-components-schematic.snap.svg b/tests/components/normal-components/__snapshots__/rotated-components-schematic.snap.svg index ccd5ff6e..197ecf32 100644 --- a/tests/components/normal-components/__snapshots__/rotated-components-schematic.snap.svg +++ b/tests/components/normal-components/__snapshots__/rotated-components-schematic.snap.svg @@ -7,6 +7,9 @@ .trace:hover { filter: invert(1); } + .trace:hover .trace-crossing-outline { + opacity: 0; + } .text { font-family: sans-serif; fill: rgb(0, 150, 0); } .pin-number { fill: rgb(169, 0, 0); } .port-label { fill: rgb(0, 100, 100); } diff --git a/tests/components/primitive-components/__snapshots__/schematic-crossing-rendering-schematic.snap.svg b/tests/components/primitive-components/__snapshots__/schematic-crossing-rendering-schematic.snap.svg index f8fc7e77..7b0bf55a 100644 --- a/tests/components/primitive-components/__snapshots__/schematic-crossing-rendering-schematic.snap.svg +++ b/tests/components/primitive-components/__snapshots__/schematic-crossing-rendering-schematic.snap.svg @@ -7,8 +7,11 @@ .trace:hover { filter: invert(1); } + .trace:hover .trace-crossing-outline { + opacity: 0; + } .text { font-family: sans-serif; fill: rgb(0, 150, 0); } .pin-number { fill: rgb(169, 0, 0); } .port-label { fill: rgb(0, 100, 100); } .component-name { fill: rgb(0, 100, 100); } - -5,-2-5,-1-5,0-5,1-5,2-4,-2-4,-1-4,0-4,1-4,2-3,-2-3,-1-3,0-3,1-3,2-2,-2-2,-1-2,0-2,1-2,2-1,-2-1,-1-1,0-1,1-1,20,-20,-10,00,10,21,-21,-11,01,11,22,-22,-12,02,12,2U11IN12IN23OUT14OUT2R210kΩR310kΩ \ No newline at end of file + -5,-2-5,-1-5,0-5,1-5,2-4,-2-4,-1-4,0-4,1-4,2-3,-2-3,-1-3,0-3,1-3,2-2,-2-2,-1-2,0-2,1-2,2-1,-2-1,-1-1,0-1,1-1,20,-20,-10,00,10,21,-21,-11,01,11,22,-22,-12,02,12,2U11IN12IN23OUT14OUT2R210kΩR310kΩU1 \ No newline at end of file diff --git a/tests/components/primitive-components/__snapshots__/trace-hint-schematic.snap.svg b/tests/components/primitive-components/__snapshots__/trace-hint-schematic.snap.svg deleted file mode 100644 index c11e7b4a..00000000 --- a/tests/components/primitive-components/__snapshots__/trace-hint-schematic.snap.svg +++ /dev/null @@ -1,7 +0,0 @@ - \ No newline at end of file diff --git a/tests/components/primitive-components/__snapshots__/trace-schematic.snap.svg b/tests/components/primitive-components/__snapshots__/trace-schematic.snap.svg deleted file mode 100644 index c11e7b4a..00000000 --- a/tests/components/primitive-components/__snapshots__/trace-schematic.snap.svg +++ /dev/null @@ -1,7 +0,0 @@ - \ No newline at end of file diff --git a/tests/examples/__snapshots__/bug-high-port-number-schematic.snap.svg b/tests/examples/__snapshots__/bug-high-port-number-schematic.snap.svg index d2086c02..fc47ef5f 100644 --- a/tests/examples/__snapshots__/bug-high-port-number-schematic.snap.svg +++ b/tests/examples/__snapshots__/bug-high-port-number-schematic.snap.svg @@ -7,11 +7,14 @@ .trace:hover { filter: invert(1); } + .trace:hover .trace-crossing-outline { + opacity: 0; + } .text { font-family: sans-serif; fill: rgb(0, 150, 0); } .pin-number { fill: rgb(169, 0, 0); } .port-label { fill: rgb(0, 100, 100); } .component-name { fill: rgb(0, 100, 100); } - -9,-3-9,-2-9,-1-9,0-9,1-9,2-9,3-9,4-9,5-8,-3-8,-2-8,-1-8,0-8,1-8,2-8,3-8,4-8,5-7,-3-7,-2-7,-1-7,0-7,1-7,2-7,3-7,4-7,5-6,-3-6,-2-6,-1-6,0-6,1-6,2-6,3-6,4-6,5-5,-3-5,-2-5,-1-5,0-5,1-5,2-5,3-5,4-5,5-4,-3-4,-2-4,-1-4,0-4,1-4,2-4,3-4,4-4,5-3,-3-3,-2-3,-1-3,0-3,1-3,2-3,3-3,4-3,5-2,-3-2,-2-2,-1-2,0-2,1-2,2-2,3-2,4-2,5-1,-3-1,-2-1,-1-1,0-1,1-1,2-1,3-1,4-1,50,-30,-20,-10,00,10,20,30,40,51,-31,-21,-11,01,11,21,31,41,52,-32,-22,-12,02,12,22,32,42,53,-33,-23,-13,03,13,23,33,43,54,-34,-24,-14,04,14,24,34,44,55,-35,-25,-15,05,15,25,35,45,56,-36,-26,-16,06,16,26,36,46,5part-numberU11TXD2DTR3RTS4VCCIO5RXD6RI7GND79DSR10DCD11CTS12SLEEP13TXDEN14PWRUN15USBDP16USBDM173V3OUT18GND1819RESET20VCC21GND2122RXLED23TXLED25AGND26TEST27OSCI28OSCOR11ΩR21ΩLED1LED2-9,-3-9,-2-9,-1-9,0-9,1-9,2-9,3-9,4-9,5-8,-3-8,-2-8,-1-8,0-8,1-8,2-8,3-8,4-8,5-7,-3-7,-2-7,-1-7,0-7,1-7,2-7,3-7,4-7,5-6,-3-6,-2-6,-1-6,0-6,1-6,2-6,3-6,4-6,5-5,-3-5,-2-5,-1-5,0-5,1-5,2-5,3-5,4-5,5-4,-3-4,-2-4,-1-4,0-4,1-4,2-4,3-4,4-4,5-3,-3-3,-2-3,-1-3,0-3,1-3,2-3,3-3,4-3,5-2,-3-2,-2-2,-1-2,0-2,1-2,2-2,3-2,4-2,5-1,-3-1,-2-1,-1-1,0-1,1-1,2-1,3-1,4-1,50,-30,-20,-10,00,10,20,30,40,51,-31,-21,-11,01,11,21,31,41,52,-32,-22,-12,02,12,22,32,42,53,-33,-23,-13,03,13,23,33,43,54,-34,-24,-14,04,14,24,34,44,55,-35,-25,-15,05,15,25,35,45,56,-36,-26,-16,06,16,26,36,46,5part-numberU11TXD2DTR3RTS4VCCIO5RXD6RI7GND79DSR10DCD11CTS12SLEEP13TXDEN14PWRUN15USBDP16USBDM173V3OUT18GND1819RESET20VCC21GND2122RXLED23TXLED25AGND26TEST27OSCI28OSCOR11ΩR21ΩLED1LED2GND \ No newline at end of file + " fill="white" stroke="rgb(132, 0, 0)" stroke-width="1.5px"/>GNDpart-numberU1 \ No newline at end of file diff --git a/tests/examples/__snapshots__/example3-2x2-keyboard-pcb.snap.svg b/tests/examples/__snapshots__/example3-2x2-keyboard-pcb.snap.svg deleted file mode 100644 index 4f92c101..00000000 --- a/tests/examples/__snapshots__/example3-2x2-keyboard-pcb.snap.svg +++ /dev/null @@ -1,13 +0,0 @@ - \ No newline at end of file diff --git a/tests/examples/__snapshots__/example4-kicad-schematic.snap.svg b/tests/examples/__snapshots__/example4-kicad-schematic.snap.svg index 79ba0d90..2addb749 100644 --- a/tests/examples/__snapshots__/example4-kicad-schematic.snap.svg +++ b/tests/examples/__snapshots__/example4-kicad-schematic.snap.svg @@ -7,8 +7,11 @@ .trace:hover { filter: invert(1); } + .trace:hover .trace-crossing-outline { + opacity: 0; + } .text { font-family: sans-serif; fill: rgb(0, 150, 0); } .pin-number { fill: rgb(169, 0, 0); } .port-label { fill: rgb(0, 100, 100); } .component-name { fill: rgb(0, 100, 100); } - -4,-5-4,-4-4,-3-4,-2-4,-1-4,0-4,1-4,2-4,3-4,4-4,5-3,-5-3,-4-3,-3-3,-2-3,-1-3,0-3,1-3,2-3,3-3,4-3,5-2,-5-2,-4-2,-3-2,-2-2,-1-2,0-2,1-2,2-2,3-2,4-2,5-1,-5-1,-4-1,-3-1,-2-1,-1-1,0-1,1-1,2-1,3-1,4-1,50,-50,-40,-30,-20,-10,00,10,20,30,40,51,-51,-41,-31,-21,-11,01,11,21,31,41,52,-52,-42,-32,-22,-12,02,12,22,32,42,53,-53,-43,-33,-23,-13,03,13,23,33,43,54,-54,-44,-34,-24,-14,04,14,24,34,44,55,-55,-45,-35,-25,-15,05,15,25,35,45,56,-56,-46,-36,-26,-16,06,16,26,36,46,57,-57,-47,-37,-27,-17,07,17,27,37,47,58,-58,-48,-38,-28,-18,08,18,28,38,48,59,-59,-49,-39,-29,-19,09,19,29,39,49,510,-510,-410,-310,-210,-110,010,110,210,310,410,5R110kΩC110µFATmega8-16AU27GND8-V+234121314151617181920222329 \ No newline at end of file + -4,-5-4,-4-4,-3-4,-2-4,-1-4,0-4,1-4,2-4,3-4,4-4,5-3,-5-3,-4-3,-3-3,-2-3,-1-3,0-3,1-3,2-3,3-3,4-3,5-2,-5-2,-4-2,-3-2,-2-2,-1-2,0-2,1-2,2-2,3-2,4-2,5-1,-5-1,-4-1,-3-1,-2-1,-1-1,0-1,1-1,2-1,3-1,4-1,50,-50,-40,-30,-20,-10,00,10,20,30,40,51,-51,-41,-31,-21,-11,01,11,21,31,41,52,-52,-42,-32,-22,-12,02,12,22,32,42,53,-53,-43,-33,-23,-13,03,13,23,33,43,54,-54,-44,-34,-24,-14,04,14,24,34,44,55,-55,-45,-35,-25,-15,05,15,25,35,45,56,-56,-46,-36,-26,-16,06,16,26,36,46,57,-57,-47,-37,-27,-17,07,17,27,37,47,58,-58,-48,-38,-28,-18,08,18,28,38,48,59,-59,-49,-39,-29,-19,09,19,29,39,49,510,-510,-410,-310,-210,-110,010,110,210,310,410,5R110kΩC110µFATmega8-16AU27GND8-V+234121314151617181920222329ATmega8-16AU2 \ No newline at end of file diff --git a/tests/examples/__snapshots__/example5-simple-circuit-schematic.snap.svg b/tests/examples/__snapshots__/example5-simple-circuit-schematic.snap.svg index 20264b74..4b153d9c 100644 --- a/tests/examples/__snapshots__/example5-simple-circuit-schematic.snap.svg +++ b/tests/examples/__snapshots__/example5-simple-circuit-schematic.snap.svg @@ -7,11 +7,14 @@ .trace:hover { filter: invert(1); } + .trace:hover .trace-crossing-outline { + opacity: 0; + } .text { font-family: sans-serif; fill: rgb(0, 150, 0); } .pin-number { fill: rgb(169, 0, 0); } .port-label { fill: rgb(0, 100, 100); } .component-name { fill: rgb(0, 100, 100); } - -6,-2-6,-1-6,0-6,1-6,2-5,-2-5,-1-5,0-5,1-5,2-4,-2-4,-1-4,0-4,1-4,2-3,-2-3,-1-3,0-3,1-3,2-2,-2-2,-1-2,0-2,1-2,2-1,-2-1,-1-1,0-1,1-1,20,-20,-10,00,10,21,-21,-11,01,11,22,-22,-12,02,12,2C110µFR110kΩSW11234-6,-2-6,-1-6,0-6,1-6,2-5,-2-5,-1-5,0-5,1-5,2-4,-2-4,-1-4,0-4,1-4,2-3,-2-3,-1-3,0-3,1-3,2-2,-2-2,-1-2,0-2,1-2,2-1,-2-1,-1-1,0-1,1-1,20,-20,-10,00,10,21,-21,-11,01,11,22,-22,-12,02,12,2C110µFR110kΩSW11234GND \ No newline at end of file + " fill="white" stroke="rgb(132, 0, 0)" stroke-width="3.46162578055px"/>GNDSW1 \ No newline at end of file diff --git a/tests/examples/__snapshots__/example6-voltage-regulator-schematic.snap.svg b/tests/examples/__snapshots__/example6-voltage-regulator-schematic.snap.svg deleted file mode 100644 index ff41937e..00000000 --- a/tests/examples/__snapshots__/example6-voltage-regulator-schematic.snap.svg +++ /dev/null @@ -1,12 +0,0 @@ --1,-2-1,-1-1,0-1,1-1,20,-20,-10,00,10,21,-21,-11,01,11,2U17EP6IN5PG4EN3GND2FB1OUT89 \ No newline at end of file diff --git a/tests/examples/__snapshots__/example7-voltage-regulator-with-connections-schematic.snap.svg b/tests/examples/__snapshots__/example7-voltage-regulator-with-connections-schematic.snap.svg index bbd4955e..636a1e2a 100644 --- a/tests/examples/__snapshots__/example7-voltage-regulator-with-connections-schematic.snap.svg +++ b/tests/examples/__snapshots__/example7-voltage-regulator-with-connections-schematic.snap.svg @@ -7,11 +7,14 @@ .trace:hover { filter: invert(1); } + .trace:hover .trace-crossing-outline { + opacity: 0; + } .text { font-family: sans-serif; fill: rgb(0, 150, 0); } .pin-number { fill: rgb(169, 0, 0); } .port-label { fill: rgb(0, 100, 100); } .component-name { fill: rgb(0, 100, 100); } - -6,-3-6,-2-6,-1-6,0-6,1-6,2-6,3-6,4-6,5-5,-3-5,-2-5,-1-5,0-5,1-5,2-5,3-5,4-5,5-4,-3-4,-2-4,-1-4,0-4,1-4,2-4,3-4,4-4,5-3,-3-3,-2-3,-1-3,0-3,1-3,2-3,3-3,4-3,5-2,-3-2,-2-2,-1-2,0-2,1-2,2-2,3-2,4-2,5-1,-3-1,-2-1,-1-1,0-1,1-1,2-1,3-1,4-1,50,-30,-20,-10,00,10,20,30,40,51,-31,-21,-11,01,11,21,31,41,52,-32,-22,-12,02,12,22,32,42,53,-33,-23,-13,03,13,23,33,43,54,-34,-24,-14,04,14,24,34,44,55,-35,-25,-15,05,15,25,35,45,56,-36,-26,-16,06,16,26,36,46,5PWR17EP6IN5PG4EN3GND2FB1OUTR61MΩR72kΩR81kΩC610µFC710µFLED1-6,-3-6,-2-6,-1-6,0-6,1-6,2-6,3-6,4-6,5-5,-3-5,-2-5,-1-5,0-5,1-5,2-5,3-5,4-5,5-4,-3-4,-2-4,-1-4,0-4,1-4,2-4,3-4,4-4,5-3,-3-3,-2-3,-1-3,0-3,1-3,2-3,3-3,4-3,5-2,-3-2,-2-2,-1-2,0-2,1-2,2-2,3-2,4-2,5-1,-3-1,-2-1,-1-1,0-1,1-1,2-1,3-1,4-1,50,-30,-20,-10,00,10,20,30,40,51,-31,-21,-11,01,11,21,31,41,52,-32,-22,-12,02,12,22,32,42,53,-33,-23,-13,03,13,23,33,43,54,-34,-24,-14,04,14,24,34,44,55,-35,-25,-15,05,15,25,35,45,56,-36,-26,-16,06,16,26,36,46,5PWR17EP6IN5PG4EN3GND2FB1OUTR61MΩR72kΩR81kΩC610µFC710µFLED1v3_3junction \ No newline at end of file + " fill="white" stroke="rgb(132, 0, 0)" stroke-width="1.7142015592339999px"/>v3_3PWR1junction \ No newline at end of file diff --git a/tests/repros/__snapshots__/repro3-usb-port-footprint-schematic.snap.svg b/tests/repros/__snapshots__/repro3-usb-port-footprint-schematic.snap.svg index 6fb779df..3025c09e 100644 --- a/tests/repros/__snapshots__/repro3-usb-port-footprint-schematic.snap.svg +++ b/tests/repros/__snapshots__/repro3-usb-port-footprint-schematic.snap.svg @@ -7,8 +7,11 @@ .trace:hover { filter: invert(1); } + .trace:hover .trace-crossing-outline { + opacity: 0; + } .text { font-family: sans-serif; fill: rgb(0, 150, 0); } .pin-number { fill: rgb(169, 0, 0); } .port-label { fill: rgb(0, 100, 100); } .component-name { fill: rgb(0, 100, 100); } - -2,-5-2,-4-2,-3-2,-2-2,-1-2,0-2,1-2,2-2,3-2,4-2,5-1,-5-1,-4-1,-3-1,-2-1,-1-1,0-1,1-1,2-1,3-1,4-1,50,-50,-40,-30,-20,-10,00,10,20,30,40,51,-51,-41,-31,-21,-11,01,11,21,31,41,52,-52,-42,-32,-22,-12,02,12,22,32,42,5U1235B86A57B78A69A710B611A812B513A114B1215A416B917B418A919B1 \ No newline at end of file + -2,-5-2,-4-2,-3-2,-2-2,-1-2,0-2,1-2,2-2,3-2,4-2,5-2,6-1,-5-1,-4-1,-3-1,-2-1,-1-1,0-1,1-1,2-1,3-1,4-1,5-1,60,-50,-40,-30,-20,-10,00,10,20,30,40,50,61,-51,-41,-31,-21,-11,01,11,21,31,41,51,62,-52,-42,-32,-22,-12,02,12,22,32,42,52,6U1235B86A57B78A69A710B611A812B513A114B1215A416B917B418A919B1U1 \ No newline at end of file diff --git a/tests/repros/__snapshots__/repro4-schematic-trace-overlap-schematic.snap.svg b/tests/repros/__snapshots__/repro4-schematic-trace-overlap-schematic.snap.svg index 09efd2f9..02f716dd 100644 --- a/tests/repros/__snapshots__/repro4-schematic-trace-overlap-schematic.snap.svg +++ b/tests/repros/__snapshots__/repro4-schematic-trace-overlap-schematic.snap.svg @@ -7,8 +7,11 @@ .trace:hover { filter: invert(1); } + .trace:hover .trace-crossing-outline { + opacity: 0; + } .text { font-family: sans-serif; fill: rgb(0, 150, 0); } .pin-number { fill: rgb(169, 0, 0); } .port-label { fill: rgb(0, 100, 100); } .component-name { fill: rgb(0, 100, 100); } - -4,-3-4,-2-4,-1-4,0-4,1-4,2-4,3-3,-3-3,-2-3,-1-3,0-3,1-3,2-3,3-2,-3-2,-2-2,-1-2,0-2,1-2,2-2,3-1,-3-1,-2-1,-1-1,0-1,1-1,2-1,30,-30,-20,-10,00,10,20,31,-31,-21,-11,01,11,21,32,-32,-22,-12,02,12,22,3R110kΩR210kΩR310kΩ \ No newline at end of file + -4,-3-4,-2-4,-1-4,0-4,1-4,2-4,3-3,-3-3,-2-3,-1-3,0-3,1-3,2-3,3-2,-3-2,-2-2,-1-2,0-2,1-2,2-2,3-1,-3-1,-2-1,-1-1,0-1,1-1,2-1,30,-30,-20,-10,00,10,20,31,-31,-21,-11,01,11,21,32,-32,-22,-12,02,12,22,3R110kΩR210kΩR310kΩ \ No newline at end of file diff --git a/tests/repros/__snapshots__/repro5-schematic-schematic.snap.svg b/tests/repros/__snapshots__/repro5-schematic-schematic.snap.svg index e406bdc8..2370f277 100644 --- a/tests/repros/__snapshots__/repro5-schematic-schematic.snap.svg +++ b/tests/repros/__snapshots__/repro5-schematic-schematic.snap.svg @@ -14,4 +14,4 @@ .pin-number { fill: rgb(169, 0, 0); } .port-label { fill: rgb(0, 100, 100); } .component-name { fill: rgb(0, 100, 100); } - -2,-3-2,-2-2,-1-2,0-2,1-2,2-2,3-2,4-1,-3-1,-2-1,-1-1,0-1,1-1,2-1,3-1,40,-30,-20,-10,00,10,20,30,41,-31,-21,-11,01,11,21,31,42,-32,-22,-12,02,12,22,32,43,-33,-23,-13,03,13,23,33,44,-34,-24,-14,04,14,24,34,4part-numberU11TXD2DTR3RTS4VCCIO5RXD6RI7GND79DSR10DCD11CTS12SLEEP13TXDEN14PWRUN15USBDP16USBDM173V3OUT18GND1819RESET20VCC21GND2122RXLED23TXLED25AGND26TEST27OSCI28OSCOLED1part-numberU1 \ No newline at end of file + -2,-3-2,-2-2,-1-2,0-2,1-2,2-2,3-2,4-1,-3-1,-2-1,-1-1,0-1,1-1,2-1,3-1,40,-30,-20,-10,00,10,20,30,41,-31,-21,-11,01,11,21,31,42,-32,-22,-12,02,12,22,32,43,-33,-23,-13,03,13,23,33,44,-34,-24,-14,04,14,24,34,4part-numberU11TXD2DTR3RTS4VCCIO5RXD6RI7GND79DSR10DCD11CTS12SLEEP13TXDEN14PWRUN15USBDP16USBDM173V3OUT18GND1819RESET20VCC21GND2122RXLED23TXLED25AGND26TEST27OSCI28OSCOLED1part-numberU1 \ No newline at end of file