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.
- package/dist/index.js +2 -0
- 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