calculate-packing 0.0.66 → 0.0.67

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 +4 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3305,8 +3305,10 @@ var convertCircuitJsonToPackOutput = (circuitJson, opts = {}) => {
3305
3305
  if (pcbComponent.position_mode === "relative_to_group_anchor") {
3306
3306
  continue;
3307
3307
  }
3308
- let shouldAddInnerObstaclesForComp = opts.shouldAddInnerObstacles;
3309
- if (pcbComponent.obstructs_within_bounds === false) {
3308
+ let shouldAddInnerObstaclesForComp = opts.shouldAddInnerObstacles ?? false;
3309
+ if (pcbComponent.obstructs_within_bounds === true) {
3310
+ shouldAddInnerObstaclesForComp = true;
3311
+ } else if (pcbComponent.obstructs_within_bounds === false) {
3310
3312
  shouldAddInnerObstaclesForComp = false;
3311
3313
  }
3312
3314
  packOutput.components.push(
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.66",
5
+ "version": "0.0.67",
6
6
  "description": "Calculate a packing layout with support for different strategy configurations",
7
7
  "scripts": {
8
8
  "start": "cosmos",