circuit-to-svg 0.0.449 → 0.0.451
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 +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5576,8 +5576,8 @@ function createSvgObjectsFromPcbPlatedHole(hole, ctx) {
|
|
|
5576
5576
|
);
|
|
5577
5577
|
const padPointsString = padPoints.map((p) => p.join(",")).join(" ");
|
|
5578
5578
|
const [holeCenterX, holeCenterY] = applyToPoint23(transform, [
|
|
5579
|
-
holeX + polygonHole.hole_offset_x,
|
|
5580
|
-
holeY + polygonHole.hole_offset_y
|
|
5579
|
+
holeX + (polygonHole.hole_offset_x ?? 0),
|
|
5580
|
+
holeY + (polygonHole.hole_offset_y ?? 0)
|
|
5581
5581
|
]);
|
|
5582
5582
|
const createHoleSvgObject = () => {
|
|
5583
5583
|
if (polygonHole.hole_shape === "circle") {
|
|
@@ -8982,7 +8982,7 @@ var package_default = {
|
|
|
8982
8982
|
engines: {
|
|
8983
8983
|
node: "24.x"
|
|
8984
8984
|
},
|
|
8985
|
-
version: "0.0.
|
|
8985
|
+
version: "0.0.450",
|
|
8986
8986
|
repository: {
|
|
8987
8987
|
type: "git",
|
|
8988
8988
|
url: "https://github.com/tscircuit/circuit-to-svg.git"
|
|
@@ -10857,6 +10857,7 @@ function createSvgObjects({
|
|
|
10857
10857
|
case "pcb_board":
|
|
10858
10858
|
return ctx.drawPaddingOutsideBoard ? createSvgObjectsFromPcbBoard(elm, ctx) : [];
|
|
10859
10859
|
case "pcb_via":
|
|
10860
|
+
if (ctx.layer && !elm.layers.includes(ctx.layer)) return [];
|
|
10860
10861
|
return createSvgObjectsFromPcbVia(elm, ctx);
|
|
10861
10862
|
case "pcb_cutout":
|
|
10862
10863
|
const cutout = elm;
|