circuit-to-svg 0.0.317 → 0.0.318
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -6042,7 +6042,7 @@ function getSoftwareUsedString(circuitJson) {
|
|
|
6042
6042
|
var package_default = {
|
|
6043
6043
|
name: "circuit-to-svg",
|
|
6044
6044
|
type: "module",
|
|
6045
|
-
version: "0.0.
|
|
6045
|
+
version: "0.0.317",
|
|
6046
6046
|
description: "Convert Circuit JSON to SVG",
|
|
6047
6047
|
main: "dist/index.js",
|
|
6048
6048
|
files: [
|
|
@@ -6065,7 +6065,7 @@ var package_default = {
|
|
|
6065
6065
|
"@vitejs/plugin-react": "5.0.0",
|
|
6066
6066
|
biome: "^0.3.3",
|
|
6067
6067
|
"bun-match-svg": "^0.0.12",
|
|
6068
|
-
"circuit-json": "^0.0.
|
|
6068
|
+
"circuit-json": "^0.0.362",
|
|
6069
6069
|
esbuild: "^0.20.2",
|
|
6070
6070
|
"performance-now": "^2.1.0",
|
|
6071
6071
|
react: "19.1.0",
|
|
@@ -12751,7 +12751,7 @@ function createSvgObjectsFromSchematicPath({
|
|
|
12751
12751
|
const pathD = transformedPoints.map((p, i) => `${i === 0 ? "M" : "L"} ${p.x} ${p.y}`).join(" ");
|
|
12752
12752
|
const strokeColor = colorMap2.schematic.component_outline;
|
|
12753
12753
|
const fillColor = schPath.fill_color ?? "none";
|
|
12754
|
-
const strokeWidth = Math.abs(transform.a) * 0.02;
|
|
12754
|
+
const strokeWidth = schPath.stroke_width ? Math.abs(transform.a) * schPath.stroke_width : Math.abs(transform.a) * 0.02;
|
|
12755
12755
|
return [
|
|
12756
12756
|
{
|
|
12757
12757
|
name: "path",
|