calculate-packing 0.0.72 → 0.0.73

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 +2 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3323,6 +3323,8 @@ var getObstacleFromElement = (element) => {
3323
3323
  // lib/plumbing/convertCircuitJsonToPackOutput.ts
3324
3324
  var extractCourtyardForComponent = (opts) => {
3325
3325
  const { db, pcbComponentIds, componentCenter } = opts;
3326
+ const uniquePcbComponentIds = Array.from(new Set(pcbComponentIds));
3327
+ if (uniquePcbComponentIds.length !== 1) return void 0;
3326
3328
  const idSet = new Set(pcbComponentIds);
3327
3329
  let minX = Infinity;
3328
3330
  let minY = Infinity;
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.72",
5
+ "version": "0.0.73",
6
6
  "description": "Calculate a packing layout with support for different strategy configurations",
7
7
  "scripts": {
8
8
  "start": "cosmos",