circuit-to-svg 0.0.239 → 0.0.240
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 +10 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2933,7 +2933,7 @@ function getSoftwareUsedString(circuitJson) {
|
|
|
2933
2933
|
var package_default = {
|
|
2934
2934
|
name: "circuit-to-svg",
|
|
2935
2935
|
type: "module",
|
|
2936
|
-
version: "0.0.
|
|
2936
|
+
version: "0.0.239",
|
|
2937
2937
|
description: "Convert Circuit JSON to SVG",
|
|
2938
2938
|
main: "dist/index.js",
|
|
2939
2939
|
files: [
|
|
@@ -3131,6 +3131,15 @@ function convertCircuitJsonToPcbSvg(circuitJson, options) {
|
|
|
3131
3131
|
circuitJsonElm.width,
|
|
3132
3132
|
circuitJsonElm.height
|
|
3133
3133
|
);
|
|
3134
|
+
} else if (circuitJsonElm.type === "pcb_cutout") {
|
|
3135
|
+
const cutout = circuitJsonElm;
|
|
3136
|
+
if (cutout.shape === "rect") {
|
|
3137
|
+
updateBounds(cutout.center, cutout.width, cutout.height);
|
|
3138
|
+
} else if (cutout.shape === "circle") {
|
|
3139
|
+
updateBounds(cutout.center, cutout.radius * 2, cutout.radius * 2);
|
|
3140
|
+
} else if (cutout.shape === "polygon") {
|
|
3141
|
+
updateTraceBounds(cutout.points);
|
|
3142
|
+
}
|
|
3134
3143
|
} else if (circuitJsonElm.type === "pcb_silkscreen_text" || circuitJsonElm.type === "pcb_silkscreen_rect" || circuitJsonElm.type === "pcb_silkscreen_circle" || circuitJsonElm.type === "pcb_silkscreen_line") {
|
|
3135
3144
|
updateSilkscreenBounds(circuitJsonElm);
|
|
3136
3145
|
} else if (circuitJsonElm.type === "pcb_copper_pour") {
|