calculate-packing 0.0.39 → 0.0.41
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 +9 -2
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -2668,8 +2668,11 @@ var extractPadInfos = (pcbComponent, db, getNetworkId) => {
|
|
|
2668
2668
|
});
|
|
2669
2669
|
break;
|
|
2670
2670
|
}
|
|
2671
|
+
default: {
|
|
2672
|
+
console.warn(`Unsupported plated hole shape ${ph.shape}`);
|
|
2673
|
+
break;
|
|
2674
|
+
}
|
|
2671
2675
|
}
|
|
2672
|
-
console.warn(`Unsupported plated hole shape ${ph.shape}`);
|
|
2673
2676
|
}
|
|
2674
2677
|
for (const sp of db.pcb_smtpad.list({
|
|
2675
2678
|
pcb_component_id: pcbComponent.pcb_component_id
|
|
@@ -2816,13 +2819,17 @@ var convertCircuitJsonToPackOutput = (circuitJson, opts = {}) => {
|
|
|
2816
2819
|
(e) => e.type === "pcb_component"
|
|
2817
2820
|
);
|
|
2818
2821
|
if (!pcbComponent) continue;
|
|
2822
|
+
let shouldAddInnerObstaclesForComp = opts.shouldAddInnerObstacles;
|
|
2823
|
+
if (pcbComponent.obstructs_within_bounds === false) {
|
|
2824
|
+
shouldAddInnerObstaclesForComp = false;
|
|
2825
|
+
}
|
|
2819
2826
|
packOutput.components.push(
|
|
2820
2827
|
buildPackedComponent(
|
|
2821
2828
|
[pcbComponent],
|
|
2822
2829
|
pcbComponent.pcb_component_id,
|
|
2823
2830
|
db,
|
|
2824
2831
|
getNetworkId,
|
|
2825
|
-
|
|
2832
|
+
shouldAddInnerObstaclesForComp,
|
|
2826
2833
|
opts.chipMarginsMap
|
|
2827
2834
|
)
|
|
2828
2835
|
);
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "calculate-packing",
|
|
3
3
|
"main": "dist/index.js",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.41",
|
|
6
6
|
"description": "Calculate a packing layout with support for different strategy configurations",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"start": "cosmos",
|
|
@@ -21,20 +21,20 @@
|
|
|
21
21
|
"@react-hook/resize-observer": "^2.0.2",
|
|
22
22
|
"@tscircuit/circuit-json-util": "^0.0.66",
|
|
23
23
|
"@tscircuit/footprinter": "^0.0.203",
|
|
24
|
-
"@tscircuit/math-utils": "^0.0.
|
|
24
|
+
"@tscircuit/math-utils": "^0.0.25",
|
|
25
25
|
"@types/bun": "latest",
|
|
26
26
|
"@types/react": "^19.1.8",
|
|
27
27
|
"@types/react-dom": "^19.1.6",
|
|
28
28
|
"@vitejs/plugin-react": "^5.0.0",
|
|
29
29
|
"bun-match-svg": "^0.0.12",
|
|
30
|
-
"circuit-json": "^0.0.
|
|
30
|
+
"circuit-json": "^0.0.266",
|
|
31
31
|
"framer-motion": "^12.23.12",
|
|
32
32
|
"graphics-debug": "^0.0.62",
|
|
33
33
|
"react": "^19.1.0",
|
|
34
34
|
"react-cosmos": "^7.0.0",
|
|
35
35
|
"react-cosmos-plugin-vite": "^7.0.0",
|
|
36
36
|
"react-dom": "^19.1.0",
|
|
37
|
-
"tscircuit": "^0.0.
|
|
37
|
+
"tscircuit": "^0.0.693",
|
|
38
38
|
"tsup": "^8.5.0",
|
|
39
39
|
"vite": "^7.1.2"
|
|
40
40
|
},
|