calculate-packing 0.0.2 → 0.0.4
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
|
@@ -203,7 +203,10 @@ var getGraphicsFromPackOutput = (packOutput) => {
|
|
|
203
203
|
width,
|
|
204
204
|
height,
|
|
205
205
|
fill: "rgba(0,0,0,0.25)",
|
|
206
|
-
label:
|
|
206
|
+
label: [
|
|
207
|
+
component.componentId,
|
|
208
|
+
`ccwRotationOffset: ${(component.ccwRotationOffset / Math.PI * 180).toFixed(1)}`
|
|
209
|
+
].join("\n")
|
|
207
210
|
};
|
|
208
211
|
rects.push(rect);
|
|
209
212
|
for (const pad of component.pads) {
|
|
@@ -592,7 +595,6 @@ d=${this.lastBestPointsResult.distance}`
|
|
|
592
595
|
|
|
593
596
|
// lib/pack.ts
|
|
594
597
|
var pack = (input) => {
|
|
595
|
-
console.log("pack", input);
|
|
596
598
|
const solver = new PackSolver(input);
|
|
597
599
|
solver.solve();
|
|
598
600
|
return {
|
package/package.json
CHANGED