calculate-packing 0.0.21 → 0.0.22
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.d.ts +2 -1
- package/dist/index.js +9 -8
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -408,7 +408,7 @@ declare class SingleComponentPackSolver extends BaseSolver {
|
|
|
408
408
|
packedComponents: PackedComponent[];
|
|
409
409
|
packPlacementStrategy: PackPlacementStrategy;
|
|
410
410
|
minGap: number;
|
|
411
|
-
}
|
|
411
|
+
};
|
|
412
412
|
}
|
|
413
413
|
|
|
414
414
|
declare class PackSolver2 extends BaseSolver {
|
|
@@ -418,6 +418,7 @@ declare class PackSolver2 extends BaseSolver {
|
|
|
418
418
|
packedComponents: PackedComponent[];
|
|
419
419
|
componentToPack?: InputComponent | null | undefined;
|
|
420
420
|
constructor(packInput: PackInput);
|
|
421
|
+
getConstructorParams(): PackInput;
|
|
421
422
|
_setup(): void;
|
|
422
423
|
private packFirstComponent;
|
|
423
424
|
_step(): void;
|
package/dist/index.js
CHANGED
|
@@ -2904,14 +2904,12 @@ var SingleComponentPackSolver = class extends BaseSolver {
|
|
|
2904
2904
|
return this.outputPackedComponent;
|
|
2905
2905
|
}
|
|
2906
2906
|
getConstructorParams() {
|
|
2907
|
-
return
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
}
|
|
2914
|
-
];
|
|
2907
|
+
return {
|
|
2908
|
+
componentToPack: this.componentToPack,
|
|
2909
|
+
packedComponents: this.packedComponents,
|
|
2910
|
+
packPlacementStrategy: this.packPlacementStrategy,
|
|
2911
|
+
minGap: this.minGap
|
|
2912
|
+
};
|
|
2915
2913
|
}
|
|
2916
2914
|
};
|
|
2917
2915
|
|
|
@@ -2925,6 +2923,9 @@ var PackSolver2 = class extends BaseSolver {
|
|
|
2925
2923
|
super();
|
|
2926
2924
|
this.packInput = packInput;
|
|
2927
2925
|
}
|
|
2926
|
+
getConstructorParams() {
|
|
2927
|
+
return this.packInput;
|
|
2928
|
+
}
|
|
2928
2929
|
_setup() {
|
|
2929
2930
|
const { components, packOrderStrategy, packFirst = [] } = this.packInput;
|
|
2930
2931
|
this.unpackedComponentQueue = sortComponentQueue({
|
package/package.json
CHANGED