From 4f3f1886e7053d2dfbfc26f05216cb1071cc79d3 Mon Sep 17 00:00:00 2001 From: techmannih Date: Fri, 10 Jan 2025 21:30:31 +0530 Subject: [PATCH] add snapshot --- .../create-svg-objects-for-sch-net-label.ts | 4 ++-- tests/sch/__snapshots__/net-label.snap.svg | 22 +++++++++---------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/sch/svg-object-fns/create-svg-objects-for-sch-net-label.ts b/lib/sch/svg-object-fns/create-svg-objects-for-sch-net-label.ts index 70e624c..14474a1 100644 --- a/lib/sch/svg-object-fns/create-svg-objects-for-sch-net-label.ts +++ b/lib/sch/svg-object-fns/create-svg-objects-for-sch-net-label.ts @@ -150,7 +150,7 @@ export const createSvgObjectsForSchNetLabel = ( attributes: { class: "net-label", d: pathD, - // fill: "white", + fill: "transparent", stroke: colorMap.schematic.label_global, "stroke-width": `${getSchStrokeSize(realToScreenTransform)}px`, }, @@ -185,7 +185,7 @@ export const createSvgObjectsForSchNetLabel = ( class: "net-label-text", x: screenTextPos.x.toString(), y: screenTextPos.y.toString(), - // fill: colorMap.schematic.label_global, + fill: colorMap.schematic.label_global, "text-anchor": textAnchor, "dominant-baseline": "central", "font-family": "sans-serif", diff --git a/tests/sch/__snapshots__/net-label.snap.svg b/tests/sch/__snapshots__/net-label.snap.svg index daf9c16..d19d280 100644 --- a/tests/sch/__snapshots__/net-label.snap.svg +++ b/tests/sch/__snapshots__/net-label.snap.svg @@ -21,74 +21,74 @@ L 389.2,252.77333333333334 L 389.2,205.4 Z - " stroke="rgb(132, 0, 0)" stroke-width="2px"/>VCCVCCGNDGNDSDASDASCLSCLshort labelshort labelWWWWWWWWWWWWWWWWWWWWsuperlong label. This is a long one!superlong label. This is a long one!CENTER1CENTER1CENTER2CENTER2CENTER3CENTER3CENTER4anchor_side=topanchor_side=bottomanchor_side=leftanchor_side=rightcenter1center2center3center4 \ No newline at end of file + " fill="transparent" stroke="rgb(132, 0, 0)" stroke-width="2px"/>CENTER4anchor_side=topanchor_side=bottomanchor_side=leftanchor_side=rightcenter1center2center3center4 \ No newline at end of file