circuit-to-svg 0.0.220 → 0.0.222
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 +5 -8
- package/dist/index.js.map +1 -1
- package/package.json +2 -5
package/dist/index.js
CHANGED
|
@@ -950,7 +950,7 @@ var DEFAULT_PCB_COLOR_MAP = {
|
|
|
950
950
|
bottom: "rgb(77, 127, 196)"
|
|
951
951
|
},
|
|
952
952
|
soldermask: {
|
|
953
|
-
top: "
|
|
953
|
+
top: "#006400",
|
|
954
954
|
bottom: "rgb(77, 127, 196)"
|
|
955
955
|
},
|
|
956
956
|
drill: "#FF26E2",
|
|
@@ -1008,7 +1008,7 @@ function createSvgObjectsFromPcbTrace(trace, ctx) {
|
|
|
1008
1008
|
children: [],
|
|
1009
1009
|
attributes: {
|
|
1010
1010
|
class: "pcb-trace",
|
|
1011
|
-
stroke:
|
|
1011
|
+
stroke: maskColor,
|
|
1012
1012
|
fill: "none",
|
|
1013
1013
|
d: `M ${startPoint[0]} ${startPoint[1]} L ${endPoint[0]} ${endPoint[1]}`,
|
|
1014
1014
|
"stroke-width": width,
|
|
@@ -1044,7 +1044,7 @@ function createSvgObjectsFromPcbTrace(trace, ctx) {
|
|
|
1044
1044
|
children: [],
|
|
1045
1045
|
attributes: {
|
|
1046
1046
|
class: "pcb-trace",
|
|
1047
|
-
stroke:
|
|
1047
|
+
stroke: copperColor,
|
|
1048
1048
|
fill: "none",
|
|
1049
1049
|
d: `M ${startPoint[0]} ${startPoint[1]} L ${endPoint[0]} ${endPoint[1]}`,
|
|
1050
1050
|
"stroke-width": width,
|
|
@@ -1788,7 +1788,7 @@ function getSoftwareUsedString(circuitJson) {
|
|
|
1788
1788
|
var package_default = {
|
|
1789
1789
|
name: "circuit-to-svg",
|
|
1790
1790
|
type: "module",
|
|
1791
|
-
version: "0.0.
|
|
1791
|
+
version: "0.0.221",
|
|
1792
1792
|
description: "Convert Circuit JSON to SVG",
|
|
1793
1793
|
main: "dist/index.js",
|
|
1794
1794
|
files: [
|
|
@@ -1797,7 +1797,7 @@ var package_default = {
|
|
|
1797
1797
|
scripts: {
|
|
1798
1798
|
start: "cosmos",
|
|
1799
1799
|
prepublish: "npm run build",
|
|
1800
|
-
build: "tsup-node ./lib/index.ts --format esm --dts --sourcemap",
|
|
1800
|
+
build: "tsup-node ./lib/index.ts --format esm --dts --sourcemap --external tscircuit",
|
|
1801
1801
|
format: "biome format . --write",
|
|
1802
1802
|
"format:check": "biome format .",
|
|
1803
1803
|
cosmos: "cosmos",
|
|
@@ -1822,9 +1822,6 @@ var package_default = {
|
|
|
1822
1822
|
typescript: "^5.4.5",
|
|
1823
1823
|
"vite-tsconfig-paths": "^5.0.1"
|
|
1824
1824
|
},
|
|
1825
|
-
peerDependencies: {
|
|
1826
|
-
tscircuit: "*"
|
|
1827
|
-
},
|
|
1828
1825
|
dependencies: {
|
|
1829
1826
|
"@types/node": "^22.5.5",
|
|
1830
1827
|
"bun-types": "^1.1.40",
|