diff --git a/package.json b/package.json index 64ac4a43..27768e2f 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "bun-match-svg": "^0.0.12", "circuit-json": "^0.0.411", "circuit-json-to-connectivity-map": "^0.0.18", - "circuit-to-svg": "^0.0.354", + "circuit-to-svg": "^0.0.371", "esbuild": "^0.21.4", "esbuild-register": "^3.5.0", "react": "^19.0.0", diff --git a/src/fn/sod110.ts b/src/fn/sod110.ts index 7e8dbae2..f503ccd3 100644 --- a/src/fn/sod110.ts +++ b/src/fn/sod110.ts @@ -8,6 +8,7 @@ import { rectpad } from "../helpers/rectpad" import { silkscreenRef, type SilkscreenRef } from "src/helpers/silkscreenRef" import { length } from "circuit-json" import { base_def } from "../helpers/zod/base_def" +import { createFabricationNoteDiodeFromCopperPads } from "../helpers/create-fabrication-note-diode" export const sod_def = base_def.extend({ fn: z.string(), @@ -69,6 +70,7 @@ export const sod110 = ( return { circuitJson: sodWithoutParsing(parameters).concat( + ...createFabricationNoteDiodeFromCopperPads(parameters), silkscreenLine as AnyCircuitElement, silkscreenRefText as AnyCircuitElement, courtyard as AnyCircuitElement, diff --git a/src/fn/sod123.ts b/src/fn/sod123.ts index f346b7b4..bfcae276 100644 --- a/src/fn/sod123.ts +++ b/src/fn/sod123.ts @@ -4,6 +4,7 @@ import { rectpad } from "../helpers/rectpad" import { silkscreenRef, type SilkscreenRef } from "src/helpers/silkscreenRef" import { length } from "circuit-json" import { base_def } from "../helpers/zod/base_def" +import { createFabricationNoteDiodeFromCopperPads } from "../helpers/create-fabrication-note-diode" export const sod_def = base_def.extend({ fn: z.string(), @@ -19,9 +20,10 @@ export const sod123 = ( raw_params: z.input, ): { circuitJson: AnyCircuitElement[]; parameters: any } => { const parameters = sod_def.parse(raw_params) + const bodyHeight = length.parse(parameters.h) const silkscreenRefText: SilkscreenRef = silkscreenRef( 0, - length.parse(parameters.h) / 4 + 0.4, + bodyHeight / 4 + 0.4, 0.3, ) @@ -39,6 +41,7 @@ export const sod123 = ( return { circuitJson: sodWithoutParsing(parameters).concat( + ...createFabricationNoteDiodeFromCopperPads(parameters), silkscreenRefText as AnyCircuitElement, courtyard as AnyCircuitElement, ), diff --git a/src/fn/sod123f.ts b/src/fn/sod123f.ts index bd3bf040..207bcd2b 100644 --- a/src/fn/sod123f.ts +++ b/src/fn/sod123f.ts @@ -8,6 +8,7 @@ import { rectpad } from "../helpers/rectpad" import { silkscreenRef, type SilkscreenRef } from "src/helpers/silkscreenRef" import { length } from "circuit-json" import { base_def } from "../helpers/zod/base_def" +import { createFabricationNoteDiodeFromCopperPads } from "../helpers/create-fabrication-note-diode" export const sod_def = base_def.extend({ fn: z.string(), @@ -72,6 +73,7 @@ export const sod123f = ( return { circuitJson: sodWithoutParsing(parameters).concat( + ...createFabricationNoteDiodeFromCopperPads(parameters), silkscreenLine as AnyCircuitElement, silkscreenRefText as AnyCircuitElement, courtyard as AnyCircuitElement, diff --git a/src/fn/sod123fl.ts b/src/fn/sod123fl.ts index b1555915..5f605b04 100644 --- a/src/fn/sod123fl.ts +++ b/src/fn/sod123fl.ts @@ -8,6 +8,7 @@ import { rectpad } from "../helpers/rectpad" import { silkscreenRef, type SilkscreenRef } from "src/helpers/silkscreenRef" import { length } from "circuit-json" import { base_def } from "../helpers/zod/base_def" +import { createFabricationNoteDiodeFromCopperPads } from "../helpers/create-fabrication-note-diode" export const sod123FL_def = base_def.extend({ fn: z.string(), @@ -72,6 +73,7 @@ export const sod123fl = ( return { circuitJson: sodWithoutParsing(parameters).concat( + ...createFabricationNoteDiodeFromCopperPads(parameters), silkscreenLine as AnyCircuitElement, silkscreenRefText as AnyCircuitElement, courtyard as AnyCircuitElement, diff --git a/src/fn/sod123w.ts b/src/fn/sod123w.ts index b2138813..6f2c23d4 100644 --- a/src/fn/sod123w.ts +++ b/src/fn/sod123w.ts @@ -8,6 +8,7 @@ import { rectpad } from "../helpers/rectpad" import { silkscreenRef, type SilkscreenRef } from "src/helpers/silkscreenRef" import { length } from "circuit-json" import { base_def } from "../helpers/zod/base_def" +import { createFabricationNoteDiodeFromCopperPads } from "../helpers/create-fabrication-note-diode" export const sod_def = base_def.extend({ fn: z.string(), @@ -72,6 +73,7 @@ export const sod123w = ( return { circuitJson: sodWithoutParsing(parameters).concat( + ...createFabricationNoteDiodeFromCopperPads(parameters), silkscreenLine as AnyCircuitElement, silkscreenRefText as AnyCircuitElement, courtyard as AnyCircuitElement, diff --git a/src/fn/sod128.ts b/src/fn/sod128.ts index fb164e48..ee7e98b1 100644 --- a/src/fn/sod128.ts +++ b/src/fn/sod128.ts @@ -8,6 +8,7 @@ import { rectpad } from "../helpers/rectpad" import { silkscreenRef, type SilkscreenRef } from "src/helpers/silkscreenRef" import { length } from "circuit-json" import { base_def } from "../helpers/zod/base_def" +import { createFabricationNoteDiodeFromCopperPads } from "../helpers/create-fabrication-note-diode" export const sod_def = base_def.extend({ fn: z.string(), @@ -72,6 +73,7 @@ export const sod128 = ( return { circuitJson: sodWithoutParsing(parameters).concat( + ...createFabricationNoteDiodeFromCopperPads(parameters), silkscreenLine as AnyCircuitElement, silkscreenRefText as AnyCircuitElement, courtyard as AnyCircuitElement, diff --git a/src/fn/sod323.ts b/src/fn/sod323.ts index 4c7ea3aa..5232e15e 100644 --- a/src/fn/sod323.ts +++ b/src/fn/sod323.ts @@ -8,6 +8,7 @@ import { rectpad } from "../helpers/rectpad" import { silkscreenRef, type SilkscreenRef } from "src/helpers/silkscreenRef" import { length } from "circuit-json" import { base_def } from "../helpers/zod/base_def" +import { createFabricationNoteDiodeFromCopperPads } from "../helpers/create-fabrication-note-diode" export const sod_def = base_def.extend({ fn: z.string(), @@ -71,6 +72,7 @@ export const sod323 = ( return { circuitJson: sodWithoutParsing(parameters).concat( + ...createFabricationNoteDiodeFromCopperPads(parameters), silkscreenLine as AnyCircuitElement, silkscreenRefText as AnyCircuitElement, courtyard as AnyCircuitElement, diff --git a/src/fn/sod323f.ts b/src/fn/sod323f.ts index 74883fa2..6cd96b45 100644 --- a/src/fn/sod323f.ts +++ b/src/fn/sod323f.ts @@ -8,6 +8,7 @@ import { rectpad } from "../helpers/rectpad" import { silkscreenRef, type SilkscreenRef } from "src/helpers/silkscreenRef" import { length } from "circuit-json" import { base_def } from "../helpers/zod/base_def" +import { createFabricationNoteDiodeFromCopperPads } from "../helpers/create-fabrication-note-diode" export const sod_def = base_def.extend({ fn: z.string(), @@ -72,6 +73,7 @@ export const sod323f = ( return { circuitJson: sodWithoutParsing(parameters).concat( + ...createFabricationNoteDiodeFromCopperPads(parameters), silkscreenLine as AnyCircuitElement, silkscreenRefText as AnyCircuitElement, courtyard as AnyCircuitElement, diff --git a/src/fn/sod323fl.ts b/src/fn/sod323fl.ts index 76fdb356..0d39af84 100644 --- a/src/fn/sod323fl.ts +++ b/src/fn/sod323fl.ts @@ -8,6 +8,7 @@ import { rectpad } from "../helpers/rectpad" import { silkscreenRef, type SilkscreenRef } from "src/helpers/silkscreenRef" import { length } from "circuit-json" import { base_def } from "../helpers/zod/base_def" +import { createFabricationNoteDiodeFromCopperPads } from "../helpers/create-fabrication-note-diode" export const sod323FL_def = base_def.extend({ fn: z.string(), @@ -72,6 +73,7 @@ export const sod323fl = ( return { circuitJson: sodWithoutParsing(parameters).concat( + ...createFabricationNoteDiodeFromCopperPads(parameters), silkscreenLine as AnyCircuitElement, silkscreenRefText as AnyCircuitElement, courtyard as AnyCircuitElement, diff --git a/src/fn/sod323w.ts b/src/fn/sod323w.ts index 35740742..b8d12539 100644 --- a/src/fn/sod323w.ts +++ b/src/fn/sod323w.ts @@ -8,6 +8,7 @@ import { rectpad } from "../helpers/rectpad" import { silkscreenRef, type SilkscreenRef } from "src/helpers/silkscreenRef" import { length } from "circuit-json" import { base_def } from "../helpers/zod/base_def" +import { createFabricationNoteDiodeFromCopperPads } from "../helpers/create-fabrication-note-diode" export const sod323w_def = base_def.extend({ fn: z.string(), @@ -72,6 +73,7 @@ export const sod323w = ( return { circuitJson: sodWithoutParsing(parameters).concat( + ...createFabricationNoteDiodeFromCopperPads(parameters), silkscreenLine as AnyCircuitElement, silkscreenRefText as AnyCircuitElement, courtyard as AnyCircuitElement, diff --git a/src/fn/sod523.ts b/src/fn/sod523.ts index edd8d5b4..106d0c6c 100644 --- a/src/fn/sod523.ts +++ b/src/fn/sod523.ts @@ -8,6 +8,7 @@ import { rectpad } from "../helpers/rectpad" import { silkscreenRef, type SilkscreenRef } from "src/helpers/silkscreenRef" import { length } from "circuit-json" import { base_def } from "../helpers/zod/base_def" +import { createFabricationNoteDiodeFromCopperPads } from "../helpers/create-fabrication-note-diode" export const sod_def = base_def.extend({ fn: z.string(), @@ -72,6 +73,7 @@ export const sod523 = ( return { circuitJson: sodWithoutParsing(parameters).concat( + ...createFabricationNoteDiodeFromCopperPads(parameters), silkscreenLine as AnyCircuitElement, silkscreenRefText as AnyCircuitElement, courtyard as AnyCircuitElement, diff --git a/src/fn/sod723.ts b/src/fn/sod723.ts index 05f530fe..716d5057 100644 --- a/src/fn/sod723.ts +++ b/src/fn/sod723.ts @@ -8,6 +8,7 @@ import { rectpad } from "../helpers/rectpad" import { silkscreenRef, type SilkscreenRef } from "src/helpers/silkscreenRef" import { length } from "circuit-json" import { base_def } from "../helpers/zod/base_def" +import { createFabricationNoteDiodeFromCopperPads } from "../helpers/create-fabrication-note-diode" export const sod_def = base_def.extend({ fn: z.string(), @@ -71,6 +72,7 @@ export const sod723 = ( return { circuitJson: sodWithoutParsing(parameters).concat( + ...createFabricationNoteDiodeFromCopperPads(parameters), silkscreenLine as AnyCircuitElement, silkscreenRefText as AnyCircuitElement, courtyard as AnyCircuitElement, diff --git a/src/fn/sod80.ts b/src/fn/sod80.ts index 206cb917..02b83d54 100644 --- a/src/fn/sod80.ts +++ b/src/fn/sod80.ts @@ -8,6 +8,7 @@ import { rectpad } from "../helpers/rectpad" import { silkscreenRef, type SilkscreenRef } from "src/helpers/silkscreenRef" import { length } from "circuit-json" import { base_def } from "../helpers/zod/base_def" +import { createFabricationNoteDiodeFromCopperPads } from "../helpers/create-fabrication-note-diode" export const sod80_def = base_def.extend({ fn: z.string(), @@ -71,6 +72,7 @@ export const sod80 = ( return { circuitJson: sod80WithoutParsing(parameters).concat( + ...createFabricationNoteDiodeFromCopperPads(parameters), silkscreenLine as AnyCircuitElement, silkscreenRefText as AnyCircuitElement, courtyard as AnyCircuitElement, diff --git a/src/fn/sod882.ts b/src/fn/sod882.ts index 7fddcf8b..9d10cd9a 100644 --- a/src/fn/sod882.ts +++ b/src/fn/sod882.ts @@ -8,6 +8,7 @@ import { rectpad } from "../helpers/rectpad" import { silkscreenRef, type SilkscreenRef } from "src/helpers/silkscreenRef" import { length } from "circuit-json" import { base_def } from "../helpers/zod/base_def" +import { createFabricationNoteDiodeFromCopperPads } from "../helpers/create-fabrication-note-diode" export const sod_def = base_def.extend({ fn: z.string(), @@ -72,6 +73,7 @@ export const sod882 = ( return { circuitJson: sodWithoutParsing(parameters).concat( + ...createFabricationNoteDiodeFromCopperPads(parameters), silkscreenLine as AnyCircuitElement, silkscreenRefText as AnyCircuitElement, courtyard as AnyCircuitElement, diff --git a/src/fn/sod882d.ts b/src/fn/sod882d.ts index 0ed8447a..38a3e9a0 100644 --- a/src/fn/sod882d.ts +++ b/src/fn/sod882d.ts @@ -8,6 +8,7 @@ import { rectpad } from "../helpers/rectpad" import { silkscreenRef, type SilkscreenRef } from "src/helpers/silkscreenRef" import { length } from "circuit-json" import { base_def } from "../helpers/zod/base_def" +import { createFabricationNoteDiodeFromCopperPads } from "../helpers/create-fabrication-note-diode" export const sod_def = base_def.extend({ fn: z.string(), @@ -72,6 +73,7 @@ export const sod882d = ( return { circuitJson: sodWithoutParsing(parameters).concat( + ...createFabricationNoteDiodeFromCopperPads(parameters), silkscreenLine as AnyCircuitElement, silkscreenRefText as AnyCircuitElement, courtyard as AnyCircuitElement, diff --git a/src/fn/sod923.ts b/src/fn/sod923.ts index 8c3b365b..b27c7b89 100644 --- a/src/fn/sod923.ts +++ b/src/fn/sod923.ts @@ -9,6 +9,7 @@ import { silkscreenRef, type SilkscreenRef } from "src/helpers/silkscreenRef" import { length } from "circuit-json" import { base_def } from "../helpers/zod/base_def" import { createRectUnionOutline } from "src/helpers/rect-union-outline" +import { createFabricationNoteDiodeFromCopperPads } from "../helpers/create-fabrication-note-diode" export const sod_def = base_def.extend({ fn: z.string(), @@ -96,6 +97,7 @@ export const sod923 = ( return { circuitJson: sodWithoutParsing(parameters).concat( + ...createFabricationNoteDiodeFromCopperPads(parameters), silkscreenLine as AnyCircuitElement, silkscreenRefText as AnyCircuitElement, courtyard as AnyCircuitElement, diff --git a/src/helpers/create-fabrication-note-diode.ts b/src/helpers/create-fabrication-note-diode.ts new file mode 100644 index 00000000..11bfc3d1 --- /dev/null +++ b/src/helpers/create-fabrication-note-diode.ts @@ -0,0 +1,140 @@ +import { + length, + type AnyCircuitElement, + type PcbFabricationNotePath, + type PcbFabricationNoteText, +} from "circuit-json" +import type { RectBounds } from "./rect-union-outline" + +type DiodeCopperPadBoundsParams = { + p?: string | number + pad_spacing?: string | number + pl?: string | number + pw?: string | number +} + +export const createFabricationNoteDiodeFromCopperPads = ( + parameters: DiodeCopperPadBoundsParams, +): AnyCircuitElement[] => { + const pitch = parameters.p ?? parameters.pad_spacing + + if ( + pitch === undefined || + parameters.pl === undefined || + parameters.pw === undefined + ) { + throw new Error( + "Diode fabrication note requires p or pad_spacing, pl, and pw", + ) + } + + const padPitch = length.parse(pitch) + const padLength = length.parse(parameters.pl) + const padWidth = length.parse(parameters.pw) + + return createFabricationNoteDiode({ + minX: -padPitch / 2 - padLength / 2, + maxX: padPitch / 2 + padLength / 2, + minY: -padWidth / 2, + maxY: padWidth / 2, + }) +} + +export const createFabricationNoteDiode = ( + bounds: RectBounds, +): AnyCircuitElement[] => { + const elms: (PcbFabricationNotePath | PcbFabricationNoteText)[] = [] + + const width = bounds.maxX - bounds.minX + const height = bounds.maxY - bounds.minY + const centerX = (bounds.minX + bounds.maxX) / 2 + const centerY = (bounds.minY + bounds.maxY) / 2 + const symbolHalfHeight = height * 0.28 + const symbolHeight = symbolHalfHeight * 2 + const maxSymbolWidth = width * 0.2 + const maxSymbolWidthToHeightRatio = 1.25 + const symbolWidth = Math.min( + maxSymbolWidth, + symbolHeight * maxSymbolWidthToHeightRatio, + ) + const symbolMinX = centerX - symbolWidth / 2 + const symbolMaxX = centerX + symbolWidth / 2 + const legLength = symbolWidth * 0.18 + const triangleBaseX = symbolMinX + legLength + const cathodeX = symbolMaxX - legLength + const strokeWidth = Math.max(Math.min(width, height) * 0.035, 0.01) + const fontSize = Math.max(Math.min(width, height) * 0.25, 0.1) + + elms.push( + { + type: "pcb_fabrication_note_path", + pcb_fabrication_note_path_id: "diode_fabrication_note_anode_leg", + pcb_component_id: "", + layer: "top", + stroke_width: strokeWidth, + route: [ + { x: symbolMinX, y: centerY }, + { x: triangleBaseX, y: centerY }, + ], + }, + { + type: "pcb_fabrication_note_path", + pcb_fabrication_note_path_id: "diode_fabrication_note_triangle", + pcb_component_id: "", + layer: "top", + stroke_width: strokeWidth, + route: [ + { x: triangleBaseX, y: centerY + symbolHalfHeight }, + { x: cathodeX, y: centerY }, + { x: triangleBaseX, y: centerY - symbolHalfHeight }, + { x: triangleBaseX, y: centerY + symbolHalfHeight }, + ], + }, + { + type: "pcb_fabrication_note_path", + pcb_fabrication_note_path_id: "diode_fabrication_note_cathode", + pcb_component_id: "", + layer: "top", + stroke_width: strokeWidth, + route: [ + { x: cathodeX, y: centerY + symbolHalfHeight }, + { x: cathodeX, y: centerY - symbolHalfHeight }, + ], + }, + { + type: "pcb_fabrication_note_path", + pcb_fabrication_note_path_id: "diode_fabrication_note_cathode_leg", + pcb_component_id: "", + layer: "top", + stroke_width: strokeWidth, + route: [ + { x: cathodeX, y: centerY }, + { x: symbolMaxX, y: centerY }, + ], + }, + { + type: "pcb_fabrication_note_text", + pcb_fabrication_note_text_id: "diode_fabrication_note_positive", + pcb_component_id: "", + layer: "top", + font: "tscircuit2024", + font_size: fontSize, + text: "+", + anchor_position: { x: bounds.minX + width * 0.125, y: centerY }, + anchor_alignment: "center", + }, + { + type: "pcb_fabrication_note_text", + pcb_fabrication_note_text_id: "diode_fabrication_note_negative", + pcb_component_id: "", + layer: "top", + font: "tscircuit2024", + font_size: fontSize, + text: "-", + anchor_position: { x: bounds.maxX - width * 0.125, y: centerY }, + anchor_alignment: "center", + }, + ) + + return elms +} diff --git a/tests/__snapshots__/sod110.snap.svg b/tests/__snapshots__/sod110.snap.svg index 87d9a294..d58a59f6 100644 --- a/tests/__snapshots__/sod110.snap.svg +++ b/tests/__snapshots__/sod110.snap.svg @@ -1 +1 @@ -{REF} \ No newline at end of file +{REF}+- \ No newline at end of file diff --git a/tests/__snapshots__/sod123.snap.svg b/tests/__snapshots__/sod123.snap.svg index be674646..2caaa521 100644 --- a/tests/__snapshots__/sod123.snap.svg +++ b/tests/__snapshots__/sod123.snap.svg @@ -1 +1 @@ -{REF} \ No newline at end of file +{REF}+- \ No newline at end of file diff --git a/tests/__snapshots__/sod123f.snap.svg b/tests/__snapshots__/sod123f.snap.svg index 66409c57..8babfd7f 100644 --- a/tests/__snapshots__/sod123f.snap.svg +++ b/tests/__snapshots__/sod123f.snap.svg @@ -1 +1 @@ -{REF} \ No newline at end of file +{REF}+- \ No newline at end of file diff --git a/tests/__snapshots__/sod123fl.snap.svg b/tests/__snapshots__/sod123fl.snap.svg index 768d6b4c..b3e8edc0 100644 --- a/tests/__snapshots__/sod123fl.snap.svg +++ b/tests/__snapshots__/sod123fl.snap.svg @@ -1 +1 @@ -{REF} \ No newline at end of file +{REF}+- \ No newline at end of file diff --git a/tests/__snapshots__/sod123w.snap.svg b/tests/__snapshots__/sod123w.snap.svg index 0d9ce4c8..278653c8 100644 --- a/tests/__snapshots__/sod123w.snap.svg +++ b/tests/__snapshots__/sod123w.snap.svg @@ -1 +1 @@ -{REF} \ No newline at end of file +{REF}+- \ No newline at end of file diff --git a/tests/__snapshots__/sod128.snap.svg b/tests/__snapshots__/sod128.snap.svg index 221ad88a..a11012cd 100644 --- a/tests/__snapshots__/sod128.snap.svg +++ b/tests/__snapshots__/sod128.snap.svg @@ -1 +1 @@ -{REF} \ No newline at end of file +{REF}+- \ No newline at end of file diff --git a/tests/__snapshots__/sod323.snap.svg b/tests/__snapshots__/sod323.snap.svg index f3827cf3..f132fe82 100644 --- a/tests/__snapshots__/sod323.snap.svg +++ b/tests/__snapshots__/sod323.snap.svg @@ -1 +1 @@ -{REF} \ No newline at end of file +{REF}+- \ No newline at end of file diff --git a/tests/__snapshots__/sod323f.snap.svg b/tests/__snapshots__/sod323f.snap.svg index 553c0813..d315a625 100644 --- a/tests/__snapshots__/sod323f.snap.svg +++ b/tests/__snapshots__/sod323f.snap.svg @@ -1 +1 @@ -{REF} \ No newline at end of file +{REF}+- \ No newline at end of file diff --git a/tests/__snapshots__/sod323fl.snap.svg b/tests/__snapshots__/sod323fl.snap.svg index 0f799bee..69b3f318 100644 --- a/tests/__snapshots__/sod323fl.snap.svg +++ b/tests/__snapshots__/sod323fl.snap.svg @@ -1 +1 @@ -{REF} \ No newline at end of file +{REF}+- \ No newline at end of file diff --git a/tests/__snapshots__/sod323w.snap.svg b/tests/__snapshots__/sod323w.snap.svg index 14396708..e7b65111 100644 --- a/tests/__snapshots__/sod323w.snap.svg +++ b/tests/__snapshots__/sod323w.snap.svg @@ -1 +1 @@ -{REF} \ No newline at end of file +{REF}+- \ No newline at end of file diff --git a/tests/__snapshots__/sod523.snap.svg b/tests/__snapshots__/sod523.snap.svg index 36f79e59..f5593c74 100644 --- a/tests/__snapshots__/sod523.snap.svg +++ b/tests/__snapshots__/sod523.snap.svg @@ -1 +1 @@ -{REF} \ No newline at end of file +{REF}+- \ No newline at end of file diff --git a/tests/__snapshots__/sod723.snap.svg b/tests/__snapshots__/sod723.snap.svg index ff6348ff..87b05e74 100644 --- a/tests/__snapshots__/sod723.snap.svg +++ b/tests/__snapshots__/sod723.snap.svg @@ -1 +1 @@ -{REF} \ No newline at end of file +{REF}+- \ No newline at end of file diff --git a/tests/__snapshots__/sod80.snap.svg b/tests/__snapshots__/sod80.snap.svg index 8799fe57..f7e53a7a 100644 --- a/tests/__snapshots__/sod80.snap.svg +++ b/tests/__snapshots__/sod80.snap.svg @@ -1 +1 @@ -{REF} \ No newline at end of file +{REF}+- \ No newline at end of file diff --git a/tests/__snapshots__/sod882.snap.svg b/tests/__snapshots__/sod882.snap.svg index 0ccf0914..f92446a8 100644 --- a/tests/__snapshots__/sod882.snap.svg +++ b/tests/__snapshots__/sod882.snap.svg @@ -1 +1 @@ -{REF} \ No newline at end of file +{REF}+- \ No newline at end of file diff --git a/tests/__snapshots__/sod882d.snap.svg b/tests/__snapshots__/sod882d.snap.svg index 7580f80f..7c0b9eb7 100644 --- a/tests/__snapshots__/sod882d.snap.svg +++ b/tests/__snapshots__/sod882d.snap.svg @@ -1 +1 @@ -{REF} \ No newline at end of file +{REF}+- \ No newline at end of file diff --git a/tests/__snapshots__/sod923.snap.svg b/tests/__snapshots__/sod923.snap.svg index 2012a033..bbd2371d 100644 --- a/tests/__snapshots__/sod923.snap.svg +++ b/tests/__snapshots__/sod923.snap.svg @@ -1 +1 @@ -{REF} \ No newline at end of file +{REF}+- \ No newline at end of file diff --git a/tests/kicad-parity/__snapshots__/sod110.snap.svg b/tests/kicad-parity/__snapshots__/sod110.snap.svg index 83532844..7f49b080 100644 --- a/tests/kicad-parity/__snapshots__/sod110.snap.svg +++ b/tests/kicad-parity/__snapshots__/sod110.snap.svg @@ -1 +1 @@ -{REF}REF**Diff: 0.00% \ No newline at end of file +{REF}REF**Diff: 0.00%+- \ No newline at end of file diff --git a/tests/kicad-parity/__snapshots__/sod123.snap.svg b/tests/kicad-parity/__snapshots__/sod123.snap.svg index 0490d493..6669992d 100644 --- a/tests/kicad-parity/__snapshots__/sod123.snap.svg +++ b/tests/kicad-parity/__snapshots__/sod123.snap.svg @@ -1 +1 @@ -{REF}REF**Diff: 0.00% \ No newline at end of file +{REF}REF**Diff: 0.00%+- \ No newline at end of file diff --git a/tests/kicad-parity/__snapshots__/sod123f.snap.svg b/tests/kicad-parity/__snapshots__/sod123f.snap.svg index a0c4fb1a..a6d95c1f 100644 --- a/tests/kicad-parity/__snapshots__/sod123f.snap.svg +++ b/tests/kicad-parity/__snapshots__/sod123f.snap.svg @@ -1 +1 @@ -{REF}REF**Diff: 0.00% \ No newline at end of file +{REF}REF**Diff: 0.00%+- \ No newline at end of file diff --git a/tests/kicad-parity/__snapshots__/sod123w.snap.svg b/tests/kicad-parity/__snapshots__/sod123w.snap.svg index f97632ac..9397015b 100644 --- a/tests/kicad-parity/__snapshots__/sod123w.snap.svg +++ b/tests/kicad-parity/__snapshots__/sod123w.snap.svg @@ -1 +1 @@ -{REF}REF**Diff: 0.00% \ No newline at end of file +{REF}REF**Diff: 0.00%+- \ No newline at end of file diff --git a/tests/kicad-parity/__snapshots__/sod128.snap.svg b/tests/kicad-parity/__snapshots__/sod128.snap.svg index 7583e18c..0334b05a 100644 --- a/tests/kicad-parity/__snapshots__/sod128.snap.svg +++ b/tests/kicad-parity/__snapshots__/sod128.snap.svg @@ -1 +1 @@ -{REF}REF**Diff: 0.00% \ No newline at end of file +{REF}REF**Diff: 0.00%+- \ No newline at end of file diff --git a/tests/kicad-parity/__snapshots__/sod323.snap.svg b/tests/kicad-parity/__snapshots__/sod323.snap.svg index ebe22399..25263e0a 100644 --- a/tests/kicad-parity/__snapshots__/sod323.snap.svg +++ b/tests/kicad-parity/__snapshots__/sod323.snap.svg @@ -1 +1 @@ -{REF}REF**Diff: 0.00% \ No newline at end of file +{REF}REF**Diff: 0.00%+- \ No newline at end of file diff --git a/tests/kicad-parity/__snapshots__/sod323f.snap.svg b/tests/kicad-parity/__snapshots__/sod323f.snap.svg index 261376e6..cda20488 100644 --- a/tests/kicad-parity/__snapshots__/sod323f.snap.svg +++ b/tests/kicad-parity/__snapshots__/sod323f.snap.svg @@ -1 +1 @@ -{REF}REF**Diff: 0.00% \ No newline at end of file +{REF}REF**Diff: 0.00%+- \ No newline at end of file diff --git a/tests/kicad-parity/__snapshots__/sod523.snap.svg b/tests/kicad-parity/__snapshots__/sod523.snap.svg index 9c050d49..77935ce1 100644 --- a/tests/kicad-parity/__snapshots__/sod523.snap.svg +++ b/tests/kicad-parity/__snapshots__/sod523.snap.svg @@ -1 +1 @@ -{REF}REF**Diff: 0.00% \ No newline at end of file +{REF}REF**Diff: 0.00%+- \ No newline at end of file diff --git a/tests/kicad-parity/__snapshots__/sod882.snap.svg b/tests/kicad-parity/__snapshots__/sod882.snap.svg index 257f07ce..555d565f 100644 --- a/tests/kicad-parity/__snapshots__/sod882.snap.svg +++ b/tests/kicad-parity/__snapshots__/sod882.snap.svg @@ -1 +1 @@ -{REF}REF**Diff: 0.00% \ No newline at end of file +{REF}REF**Diff: 0.00%+- \ No newline at end of file diff --git a/tests/kicad-parity/__snapshots__/sod882d.snap.svg b/tests/kicad-parity/__snapshots__/sod882d.snap.svg index fc29e92a..5516e91a 100644 --- a/tests/kicad-parity/__snapshots__/sod882d.snap.svg +++ b/tests/kicad-parity/__snapshots__/sod882d.snap.svg @@ -1 +1 @@ -{REF}REF**Diff: 0.00% \ No newline at end of file +{REF}REF**Diff: 0.00%+- \ No newline at end of file diff --git a/tests/kicad-parity/__snapshots__/sod923.snap.svg b/tests/kicad-parity/__snapshots__/sod923.snap.svg index 8f2c2777..7a9cd358 100644 --- a/tests/kicad-parity/__snapshots__/sod923.snap.svg +++ b/tests/kicad-parity/__snapshots__/sod923.snap.svg @@ -1 +1 @@ -{REF}REF**Diff: 0.00% \ No newline at end of file +{REF}REF**Diff: 0.00%+- \ No newline at end of file diff --git a/tests/kicad-parity/diodes/__snapshots__/sod110.snap.svg b/tests/kicad-parity/diodes/__snapshots__/sod110.snap.svg index 83532844..7f49b080 100644 --- a/tests/kicad-parity/diodes/__snapshots__/sod110.snap.svg +++ b/tests/kicad-parity/diodes/__snapshots__/sod110.snap.svg @@ -1 +1 @@ -{REF}REF**Diff: 0.00% \ No newline at end of file +{REF}REF**Diff: 0.00%+- \ No newline at end of file diff --git a/tests/kicad-parity/diodes/__snapshots__/sod123.snap.svg b/tests/kicad-parity/diodes/__snapshots__/sod123.snap.svg index 0490d493..6669992d 100644 --- a/tests/kicad-parity/diodes/__snapshots__/sod123.snap.svg +++ b/tests/kicad-parity/diodes/__snapshots__/sod123.snap.svg @@ -1 +1 @@ -{REF}REF**Diff: 0.00% \ No newline at end of file +{REF}REF**Diff: 0.00%+- \ No newline at end of file diff --git a/tests/kicad-parity/diodes/__snapshots__/sod123f.snap.svg b/tests/kicad-parity/diodes/__snapshots__/sod123f.snap.svg index a0c4fb1a..a6d95c1f 100644 --- a/tests/kicad-parity/diodes/__snapshots__/sod123f.snap.svg +++ b/tests/kicad-parity/diodes/__snapshots__/sod123f.snap.svg @@ -1 +1 @@ -{REF}REF**Diff: 0.00% \ No newline at end of file +{REF}REF**Diff: 0.00%+- \ No newline at end of file diff --git a/tests/kicad-parity/diodes/__snapshots__/sod123w.snap.svg b/tests/kicad-parity/diodes/__snapshots__/sod123w.snap.svg index 35fc4fd0..9397015b 100644 --- a/tests/kicad-parity/diodes/__snapshots__/sod123w.snap.svg +++ b/tests/kicad-parity/diodes/__snapshots__/sod123w.snap.svg @@ -1 +1 @@ -{REF}REF**Diff: 0.00% \ No newline at end of file +{REF}REF**Diff: 0.00%+- \ No newline at end of file diff --git a/tests/kicad-parity/diodes/__snapshots__/sod128.snap.svg b/tests/kicad-parity/diodes/__snapshots__/sod128.snap.svg index 7583e18c..0334b05a 100644 --- a/tests/kicad-parity/diodes/__snapshots__/sod128.snap.svg +++ b/tests/kicad-parity/diodes/__snapshots__/sod128.snap.svg @@ -1 +1 @@ -{REF}REF**Diff: 0.00% \ No newline at end of file +{REF}REF**Diff: 0.00%+- \ No newline at end of file diff --git a/tests/kicad-parity/diodes/__snapshots__/sod323.snap.svg b/tests/kicad-parity/diodes/__snapshots__/sod323.snap.svg index ebe22399..25263e0a 100644 --- a/tests/kicad-parity/diodes/__snapshots__/sod323.snap.svg +++ b/tests/kicad-parity/diodes/__snapshots__/sod323.snap.svg @@ -1 +1 @@ -{REF}REF**Diff: 0.00% \ No newline at end of file +{REF}REF**Diff: 0.00%+- \ No newline at end of file diff --git a/tests/kicad-parity/diodes/__snapshots__/sod323f.snap.svg b/tests/kicad-parity/diodes/__snapshots__/sod323f.snap.svg index 261376e6..cda20488 100644 --- a/tests/kicad-parity/diodes/__snapshots__/sod323f.snap.svg +++ b/tests/kicad-parity/diodes/__snapshots__/sod323f.snap.svg @@ -1 +1 @@ -{REF}REF**Diff: 0.00% \ No newline at end of file +{REF}REF**Diff: 0.00%+- \ No newline at end of file diff --git a/tests/kicad-parity/diodes/__snapshots__/sod523.snap.svg b/tests/kicad-parity/diodes/__snapshots__/sod523.snap.svg index 9c050d49..77935ce1 100644 --- a/tests/kicad-parity/diodes/__snapshots__/sod523.snap.svg +++ b/tests/kicad-parity/diodes/__snapshots__/sod523.snap.svg @@ -1 +1 @@ -{REF}REF**Diff: 0.00% \ No newline at end of file +{REF}REF**Diff: 0.00%+- \ No newline at end of file diff --git a/tests/kicad-parity/diodes/__snapshots__/sod882.snap.svg b/tests/kicad-parity/diodes/__snapshots__/sod882.snap.svg index a4c72abc..555d565f 100644 --- a/tests/kicad-parity/diodes/__snapshots__/sod882.snap.svg +++ b/tests/kicad-parity/diodes/__snapshots__/sod882.snap.svg @@ -1 +1 @@ -{REF}REF**Diff: 0.00% \ No newline at end of file +{REF}REF**Diff: 0.00%+- \ No newline at end of file diff --git a/tests/kicad-parity/diodes/__snapshots__/sod882d.snap.svg b/tests/kicad-parity/diodes/__snapshots__/sod882d.snap.svg index fc29e92a..5516e91a 100644 --- a/tests/kicad-parity/diodes/__snapshots__/sod882d.snap.svg +++ b/tests/kicad-parity/diodes/__snapshots__/sod882d.snap.svg @@ -1 +1 @@ -{REF}REF**Diff: 0.00% \ No newline at end of file +{REF}REF**Diff: 0.00%+- \ No newline at end of file diff --git a/tests/kicad-parity/diodes/__snapshots__/sod923.snap.svg b/tests/kicad-parity/diodes/__snapshots__/sod923.snap.svg index 8f2c2777..7a9cd358 100644 --- a/tests/kicad-parity/diodes/__snapshots__/sod923.snap.svg +++ b/tests/kicad-parity/diodes/__snapshots__/sod923.snap.svg @@ -1 +1 @@ -{REF}REF**Diff: 0.00% \ No newline at end of file +{REF}REF**Diff: 0.00%+- \ No newline at end of file