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.
- package/dist/index.js +4 -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 ===
|
|
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