@cristiancosano/pallet-builder 0.1.4 → 0.1.5
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/core/packing/MultiPalletBuilder.d.ts +17 -0
- package/dist/core/packing/index.d.ts +6 -6
- package/dist/lib.d.ts +59 -56
- package/dist/pallet-builder.js +1036 -977
- package/dist/pallet-builder.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Box } from "../entities/Box";
|
|
2
|
+
import type { Pallet } from "../entities/Pallet";
|
|
3
|
+
import type { StackedPallet } from "../entities/StackedPallet";
|
|
4
|
+
import type { PackingStrategy } from "./PackingStrategy";
|
|
5
|
+
export interface MultiPalletPackOptions {
|
|
6
|
+
boxes: Box[];
|
|
7
|
+
palletBase: Pallet;
|
|
8
|
+
strategy: PackingStrategy;
|
|
9
|
+
maxFloorsPerPallet?: number;
|
|
10
|
+
namePrefix?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare class MultiPalletBuilder {
|
|
13
|
+
static packMultiple(options: MultiPalletPackOptions): {
|
|
14
|
+
pallets: StackedPallet[];
|
|
15
|
+
unplacedBoxes: Box[];
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export type { PackingStrategy, PackingResult } from
|
|
2
|
-
export { ColumnStrategy } from
|
|
3
|
-
export { BinPacking3DStrategy } from
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export { PackingRegistry, defaultRegistry } from
|
|
1
|
+
export type { PackingStrategy, PackingResult } from "./PackingStrategy";
|
|
2
|
+
export { ColumnStrategy } from "./ColumnStrategy";
|
|
3
|
+
export { BinPacking3DStrategy } from "./BinPacking3D";
|
|
4
|
+
export { MaterialGroupingStrategy } from "./MaterialGroupingStrategy";
|
|
5
|
+
export { MultiPalletBuilder } from "./MultiPalletBuilder";
|
|
6
|
+
export { PackingRegistry, defaultRegistry } from "./registry";
|
package/dist/lib.d.ts
CHANGED
|
@@ -1,56 +1,59 @@
|
|
|
1
|
-
export type { Dimensions3D, Position3D, Point2D, BoundingBox, DiscreteRotation, ValidationResult, Violation, PackingMetrics, PalletPreset, TruckPreset, } from
|
|
2
|
-
export { PalletMaterial, SeparatorMaterial, TruckType } from
|
|
3
|
-
export { STANDARD_PALLETS, TRUCK_PRESETS, SEPARATOR_DEFAULTS, UNITS, COLLISION_TOLERANCE, MIN_SUPPORT_PERCENTAGE, WEIGHT_WARNING_THRESHOLD, } from
|
|
4
|
-
export type { ScenePreset, BoxStyle, PalletStyle, SeparatorStyle, SelectionStyle, WarehouseStyle, TruckStyle, } from
|
|
5
|
-
export { PRESET_UNSTYLED, PRESET_INDUSTRIAL, SCENE_PRESETS, DEFAULT_PRESET, } from
|
|
6
|
-
export { PresetProvider, usePreset } from
|
|
7
|
-
export type { Box } from
|
|
8
|
-
export type { PlacedBox } from
|
|
9
|
-
export type { Pallet } from
|
|
10
|
-
export type { Separator } from
|
|
11
|
-
export type { PalletFloor } from
|
|
12
|
-
export type { StackedPallet } from
|
|
13
|
-
export { getStackedPalletTotalHeight, getStackedPalletTotalWeight, ensureUniqueBoxIds } from
|
|
14
|
-
export type { PlacedPallet } from
|
|
15
|
-
export type { Room } from
|
|
16
|
-
export type { Warehouse } from
|
|
17
|
-
export type { Truck } from
|
|
18
|
-
export { getBoxBoundingBox, getPalletBoundingBox, aabbIntersects, validateNoBoxCollisions, validateNoPalletCollisions, validateBoxInPalletBounds, validateAllBoxesInPalletBounds, validatePalletInTruck, validatePalletHeight, validatePalletWeight, validateTruckWeight, validateFragileLoad, validateWeightDistribution, validateBoxStackability, validateInvertedPyramid, validateStackDimensions, validateSeparators, validateStackHeight, validateStackWeight, validateSupport, calculateCenterOfGravity, calculateStabilityScore, validateCogInsideSupport, validateStability, pointInPolygon, validatePalletInRoom, } from
|
|
19
|
-
export type { PackingStrategy, PackingResult } from
|
|
20
|
-
export { ColumnStrategy } from
|
|
21
|
-
export { BinPacking3DStrategy } from
|
|
22
|
-
export { TypeGroupStrategy } from
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export
|
|
29
|
-
export {
|
|
30
|
-
export
|
|
31
|
-
export {
|
|
32
|
-
export
|
|
33
|
-
export {
|
|
34
|
-
export
|
|
35
|
-
export {
|
|
36
|
-
export
|
|
37
|
-
export {
|
|
38
|
-
export
|
|
39
|
-
export {
|
|
40
|
-
export
|
|
41
|
-
export {
|
|
42
|
-
export
|
|
43
|
-
export {
|
|
44
|
-
export
|
|
45
|
-
export {
|
|
46
|
-
export
|
|
47
|
-
export {
|
|
48
|
-
export
|
|
49
|
-
export {
|
|
50
|
-
export
|
|
51
|
-
export {
|
|
52
|
-
export
|
|
53
|
-
export {
|
|
54
|
-
export
|
|
55
|
-
export {
|
|
56
|
-
export
|
|
1
|
+
export type { Dimensions3D, Position3D, Point2D, BoundingBox, DiscreteRotation, ValidationResult, Violation, PackingMetrics, PalletPreset, TruckPreset, } from "@/core/types";
|
|
2
|
+
export { PalletMaterial, SeparatorMaterial, TruckType } from "@/core/types";
|
|
3
|
+
export { STANDARD_PALLETS, TRUCK_PRESETS, SEPARATOR_DEFAULTS, UNITS, COLLISION_TOLERANCE, MIN_SUPPORT_PERCENTAGE, WEIGHT_WARNING_THRESHOLD, } from "@/core/constants";
|
|
4
|
+
export type { ScenePreset, BoxStyle, PalletStyle, SeparatorStyle, SelectionStyle, WarehouseStyle, TruckStyle, } from "@/core/presets";
|
|
5
|
+
export { PRESET_UNSTYLED, PRESET_INDUSTRIAL, SCENE_PRESETS, DEFAULT_PRESET, } from "@/core/presets";
|
|
6
|
+
export { PresetProvider, usePreset } from "@/context/PresetContext";
|
|
7
|
+
export type { Box } from "@/core/entities/Box";
|
|
8
|
+
export type { PlacedBox } from "@/core/entities/PlacedBox";
|
|
9
|
+
export type { Pallet } from "@/core/entities/Pallet";
|
|
10
|
+
export type { Separator } from "@/core/entities/Separator";
|
|
11
|
+
export type { PalletFloor } from "@/core/entities/PalletFloor";
|
|
12
|
+
export type { StackedPallet } from "@/core/entities/StackedPallet";
|
|
13
|
+
export { getStackedPalletTotalHeight, getStackedPalletTotalWeight, ensureUniqueBoxIds, } from "@/core/entities/StackedPallet";
|
|
14
|
+
export type { PlacedPallet } from "@/core/entities/PlacedPallet";
|
|
15
|
+
export type { Room } from "@/core/entities/Room";
|
|
16
|
+
export type { Warehouse } from "@/core/entities/Warehouse";
|
|
17
|
+
export type { Truck } from "@/core/entities/Truck";
|
|
18
|
+
export { getBoxBoundingBox, getPalletBoundingBox, aabbIntersects, validateNoBoxCollisions, validateNoPalletCollisions, validateBoxInPalletBounds, validateAllBoxesInPalletBounds, validatePalletInTruck, validatePalletHeight, validatePalletWeight, validateTruckWeight, validateFragileLoad, validateWeightDistribution, validateBoxStackability, validateInvertedPyramid, validateStackDimensions, validateSeparators, validateStackHeight, validateStackWeight, validateSupport, calculateCenterOfGravity, calculateStabilityScore, validateCogInsideSupport, validateStability, pointInPolygon, validatePalletInRoom, } from "@/core/validation";
|
|
19
|
+
export type { PackingStrategy, PackingResult, } from "@/core/packing/PackingStrategy";
|
|
20
|
+
export { ColumnStrategy } from "@/core/packing/ColumnStrategy";
|
|
21
|
+
export { BinPacking3DStrategy } from "@/core/packing/BinPacking3D";
|
|
22
|
+
export { TypeGroupStrategy } from "@/core/packing/TypeGroupStrategy";
|
|
23
|
+
export { MaterialGroupingStrategy } from "@/core/packing/MaterialGroupingStrategy";
|
|
24
|
+
export { MultiPalletBuilder } from "@/core/packing/MultiPalletBuilder";
|
|
25
|
+
export type { MultiPalletPackOptions } from "@/core/packing/MultiPalletBuilder";
|
|
26
|
+
export { PackingRegistry, defaultRegistry } from "@/core/packing/registry";
|
|
27
|
+
export { PalletFactory } from "@/core/factories/PalletFactory";
|
|
28
|
+
export { TruckFactory } from "@/core/factories/TruckFactory";
|
|
29
|
+
export { BoxFactory } from "@/core/factories/BoxFactory";
|
|
30
|
+
export { usePhysicsValidation } from "@/hooks/usePhysicsValidation";
|
|
31
|
+
export type { PhysicsValidationResult } from "@/hooks/usePhysicsValidation";
|
|
32
|
+
export { usePalletMetrics } from "@/hooks/usePalletMetrics";
|
|
33
|
+
export type { PalletMetricsResult } from "@/hooks/usePalletMetrics";
|
|
34
|
+
export { usePackingStrategy } from "@/hooks/usePackingStrategy";
|
|
35
|
+
export type { UsePackingStrategyReturn } from "@/hooks/usePackingStrategy";
|
|
36
|
+
export { useWarehouseValidation } from "@/hooks/useWarehouseValidation";
|
|
37
|
+
export type { WarehouseValidationResult } from "@/hooks/useWarehouseValidation";
|
|
38
|
+
export { BoxComponent } from "@/components/primitives/Box";
|
|
39
|
+
export type { BoxProps } from "@/components/primitives/Box";
|
|
40
|
+
export { PalletComponent } from "@/components/primitives/Pallet";
|
|
41
|
+
export type { PalletComponentProps } from "@/components/primitives/Pallet";
|
|
42
|
+
export { SeparatorComponent } from "@/components/primitives/Separator";
|
|
43
|
+
export type { SeparatorComponentProps } from "@/components/primitives/Separator";
|
|
44
|
+
export { StackedPalletComponent } from "@/components/primitives/StackedPallet";
|
|
45
|
+
export type { StackedPalletComponentProps } from "@/components/primitives/StackedPallet";
|
|
46
|
+
export { Label } from "@/components/primitives/Label";
|
|
47
|
+
export type { LabelProps } from "@/components/primitives/Label";
|
|
48
|
+
export { WarehouseEnvironment } from "@/components/environments/WarehouseEnvironment";
|
|
49
|
+
export type { WarehouseEnvironmentProps } from "@/components/environments/WarehouseEnvironment";
|
|
50
|
+
export { TruckEnvironment } from "@/components/environments/TruckEnvironment";
|
|
51
|
+
export type { TruckEnvironmentProps } from "@/components/environments/TruckEnvironment";
|
|
52
|
+
export { CameraControlsComponent } from "@/components/controls/CameraControls";
|
|
53
|
+
export type { CameraControlsProps, CameraPreset, } from "@/components/controls/CameraControls";
|
|
54
|
+
export { PalletScene } from "@/components/scenes/PalletScene";
|
|
55
|
+
export type { PalletSceneProps } from "@/components/scenes/PalletScene";
|
|
56
|
+
export { TruckScene } from "@/components/scenes/TruckScene";
|
|
57
|
+
export type { TruckSceneProps } from "@/components/scenes/TruckScene";
|
|
58
|
+
export { WarehouseScene } from "@/components/scenes/WarehouseScene";
|
|
59
|
+
export type { WarehouseSceneProps } from "@/components/scenes/WarehouseScene";
|