calculate-packing 0.0.40 → 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.
Files changed (2) hide show
  1. package/dist/index.js +5 -1
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -2819,13 +2819,17 @@ var convertCircuitJsonToPackOutput = (circuitJson, opts = {}) => {
2819
2819
  (e) => e.type === "pcb_component"
2820
2820
  );
2821
2821
  if (!pcbComponent) continue;
2822
+ let shouldAddInnerObstaclesForComp = opts.shouldAddInnerObstacles;
2823
+ if (pcbComponent.obstructs_within_bounds === false) {
2824
+ shouldAddInnerObstaclesForComp = false;
2825
+ }
2822
2826
  packOutput.components.push(
2823
2827
  buildPackedComponent(
2824
2828
  [pcbComponent],
2825
2829
  pcbComponent.pcb_component_id,
2826
2830
  db,
2827
2831
  getNetworkId,
2828
- opts.shouldAddInnerObstacles,
2832
+ shouldAddInnerObstaclesForComp,
2829
2833
  opts.chipMarginsMap
2830
2834
  )
2831
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.40",
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.19",
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.220",
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.562",
37
+ "tscircuit": "^0.0.693",
38
38
  "tsup": "^8.5.0",
39
39
  "vite": "^7.1.2"
40
40
  },