@lucablockltd/ultimate-packaging 1.2.0 → 1.4.0
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/AGENTS_README.md +79 -5
- package/dist/index.d.mts +270 -25
- package/dist/index.d.ts +270 -25
- package/dist/index.js +3830 -555
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3820 -556
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/AGENTS_README.md
CHANGED
|
@@ -40,7 +40,7 @@ const model = modelList.find((m) => m.id === "BECF-1010A")!;
|
|
|
40
40
|
|
|
41
41
|
| Prop | Type | Required | Default | Description |
|
|
42
42
|
| ------------------ | ---------------------- | -------- | ------------ | ------------------------------------------------------------------------------------------------------ |
|
|
43
|
-
| `modelId` | `string` | YES | — | One of: `"BECF-1010A"`, `"BECF-1030A"`, `"BECF-1040A"`, `"BECF-11D01"`, `"BECF-12101"`, `"BECF-12109"` |
|
|
43
|
+
| `modelId` | `string` | YES | — | One of: `"BECF-1010A"`, `"BECF-1030A"`, `"BECF-1040A"`, `"BECF-11D01"`, `"BECF-12101"`, `"BECF-12109"`, `"BECF-B-12101"`, `"BECF-B-12109"`, `"BECF-C-12101"`, `"BECF-C-12109"` |
|
|
44
44
|
| `attributes` | `object` | YES | — | Box dimensions (see Model Attributes below) |
|
|
45
45
|
| `unit` | `"mm" \| "cm" \| "in"` | no | `"mm"` | Display unit for dimension labels |
|
|
46
46
|
| `mode` | `ModelMode` | no | `"DIE_LINE"` | `"DIE_LINE"` = interactive canvas, `"AUTO_LAYOUT"` = raw SVG |
|
|
@@ -142,8 +142,12 @@ interface AutoLayoutModel {
|
|
|
142
142
|
| `BECF-1030A` | Tuck End Box Type C | `length`, `width`, `height`, `glueArea`, `dustFlap`, `tuckFlap` |
|
|
143
143
|
| `BECF-1040A` | Tuck End Box Type B | `length`, `width`, `height`, `glueArea`, `dustFlap`, `tuckFlap` |
|
|
144
144
|
| `BECF-11D01` | Standard Box | `length`, `width`, `height`, `flapHeight`, `glueArea` |
|
|
145
|
-
| `BECF-12101` |
|
|
146
|
-
| `BECF-12109` |
|
|
145
|
+
| `BECF-12101` | Shopping Bag Type A (rope holes) | `length`, `width`, `height`, `glueArea` |
|
|
146
|
+
| `BECF-12109` | Shopping Bag Type A1 (rope holes) | `length`, `width`, `height`, `glueArea` |
|
|
147
|
+
| `BECF-B-12101` | Shopping Bag Type B (twisted paper handle, no flap, no holes) | `length`, `width`, `height`, `glueArea` |
|
|
148
|
+
| `BECF-B-12109` | Shopping Bag Type B1 (twisted paper handle, no flap, no holes) | `length`, `width`, `height`, `glueArea` |
|
|
149
|
+
| `BECF-C-12101` | Shopping Bag Type C (ribbon V-notch holes) | `length`, `width`, `height`, `glueArea` |
|
|
150
|
+
| `BECF-C-12109` | Shopping Bag Type C1 (ribbon V-notch holes) | `length`, `width`, `height`, `glueArea` |
|
|
147
151
|
|
|
148
152
|
**Example — Tuck End Box:**
|
|
149
153
|
|
|
@@ -468,7 +472,7 @@ interface StandardBoxAttributes {
|
|
|
468
472
|
| ---------- | ------ | ----- | ------ | ---------- | -------- |
|
|
469
473
|
| BECF-11D01 | 100 | 50 | 150 | 50 | 13 |
|
|
470
474
|
|
|
471
|
-
####
|
|
475
|
+
#### Shopping Bags — Rope Holes (BECF-12101, BECF-12109)
|
|
472
476
|
|
|
473
477
|
```typescript
|
|
474
478
|
interface CartonBagAttributes {
|
|
@@ -483,14 +487,65 @@ Auto-calculated values (not user inputs):
|
|
|
483
487
|
|
|
484
488
|
- `D` — top flap height = min(C - 2 - B/2, 40)
|
|
485
489
|
- `DIP` — bottom glue tab height (15mm for 12101, 13mm for 12109)
|
|
490
|
+
- 8 circular rope holes at top flap fold line
|
|
486
491
|
|
|
487
492
|
| Model | length | width | height | glueArea |
|
|
488
493
|
| ------------------- | ------ | ----- | ------ | -------- |
|
|
489
494
|
| BECF-12101 (Type A) | 100 | 50 | 150 | 13 |
|
|
490
|
-
| BECF-12109 (Type
|
|
495
|
+
| BECF-12109 (Type A1) | 100 | 50 | 150 | 13 |
|
|
496
|
+
|
|
497
|
+
#### Shopping Bags — Twisted Paper Handle (BECF-B-12101, BECF-B-12109)
|
|
498
|
+
|
|
499
|
+
Same attributes as above. No top flap, no holes — handle is glued directly.
|
|
500
|
+
|
|
501
|
+
- No `D` (top flap removed — top edge is the bag body)
|
|
502
|
+
- `DIP` — 15mm for B-12101, 13mm for B-12109
|
|
503
|
+
|
|
504
|
+
| Model | length | width | height | glueArea |
|
|
505
|
+
| --------------------- | ------ | ----- | ------ | -------- |
|
|
506
|
+
| BECF-B-12101 (Type B) | 100 | 50 | 150 | 13 |
|
|
507
|
+
| BECF-B-12109 (Type B1) | 100 | 50 | 150 | 13 |
|
|
508
|
+
|
|
509
|
+
#### Shopping Bags — Ribbon (BECF-C-12101, BECF-C-12109)
|
|
510
|
+
|
|
511
|
+
Same attributes as above. Has V-notch diamond holes at fold line for ribbon threading.
|
|
512
|
+
|
|
513
|
+
- `D` — top flap height = min(C - 2 - B/2, 40)
|
|
514
|
+
- 4 V-notch ribbon holes (diamond shape) instead of 8 circular rope holes
|
|
515
|
+
|
|
516
|
+
| Model | length | width | height | glueArea |
|
|
517
|
+
| --------------------- | ------ | ----- | ------ | -------- |
|
|
518
|
+
| BECF-C-12101 (Type C) | 100 | 50 | 150 | 13 |
|
|
519
|
+
| BECF-C-12109 (Type C1) | 100 | 50 | 150 | 13 |
|
|
491
520
|
|
|
492
521
|
### Default Attribute Constants
|
|
493
522
|
|
|
523
|
+
#### `MODEL_DEFAULT_ATTRIBUTES` (Recommended)
|
|
524
|
+
|
|
525
|
+
A single map of all model default values, keyed by model ID:
|
|
526
|
+
|
|
527
|
+
```tsx
|
|
528
|
+
import { MODEL_DEFAULT_ATTRIBUTES } from "@lucablockltd/ultimate-packaging";
|
|
529
|
+
|
|
530
|
+
// MODEL_DEFAULT_ATTRIBUTES = {
|
|
531
|
+
// "BECF-1010A": { length: 60, width: 25, height: 100, glueArea: 15, dustFlap: 15, tuckFlap: 15 },
|
|
532
|
+
// "BECF-1040A": { length: 56, width: 56, height: 150, glueArea: 15, dustFlap: 30, tuckFlap: 14 },
|
|
533
|
+
// "BECF-1030A": { length: 105, width: 50, height: 155, glueArea: 15, dustFlap: 25, tuckFlap: 14 },
|
|
534
|
+
// "BECF-12101": { length: 100, width: 50, height: 150, glueArea: 13 },
|
|
535
|
+
// "BECF-12109": { length: 100, width: 50, height: 150, glueArea: 13 },
|
|
536
|
+
// "BECF-B-12101": { length: 100, width: 50, height: 150, glueArea: 13 },
|
|
537
|
+
// "BECF-B-12109": { length: 100, width: 50, height: 150, glueArea: 13 },
|
|
538
|
+
// "BECF-C-12101": { length: 100, width: 50, height: 150, glueArea: 13 },
|
|
539
|
+
// "BECF-C-12109": { length: 100, width: 50, height: 150, glueArea: 13 },
|
|
540
|
+
// "BECF-10A0A": { length: 150, width: 50, height: 150 },
|
|
541
|
+
// }
|
|
542
|
+
|
|
543
|
+
const attrs = MODEL_DEFAULT_ATTRIBUTES["BECF-1010A"];
|
|
544
|
+
// { length: 60, width: 25, height: 100, glueArea: 15, dustFlap: 15, tuckFlap: 15 }
|
|
545
|
+
```
|
|
546
|
+
|
|
547
|
+
#### Individual Constants
|
|
548
|
+
|
|
494
549
|
```tsx
|
|
495
550
|
import {
|
|
496
551
|
BECF_1010A_DEFAULT_ATTRIBUTES,
|
|
@@ -499,6 +554,11 @@ import {
|
|
|
499
554
|
BECF_11D01_DEFAULT_ATTRIBUTES,
|
|
500
555
|
BECF_12101_DEFAULT_ATTRIBUTES,
|
|
501
556
|
BECF_12109_DEFAULT_ATTRIBUTES,
|
|
557
|
+
BECF_B_12101_DEFAULT_ATTRIBUTES,
|
|
558
|
+
BECF_B_12109_DEFAULT_ATTRIBUTES,
|
|
559
|
+
BECF_C_12101_DEFAULT_ATTRIBUTES,
|
|
560
|
+
BECF_C_12109_DEFAULT_ATTRIBUTES,
|
|
561
|
+
BECF_10A0A_DEFAULT_ATTRIBUTES,
|
|
502
562
|
} from "@lucablockltd/ultimate-packaging";
|
|
503
563
|
```
|
|
504
564
|
|
|
@@ -713,6 +773,10 @@ import {
|
|
|
713
773
|
MODEL_BECF_11D01,
|
|
714
774
|
MODEL_BECF_12101,
|
|
715
775
|
MODEL_BECF_12109,
|
|
776
|
+
MODEL_BECF_B_12101,
|
|
777
|
+
MODEL_BECF_B_12109,
|
|
778
|
+
MODEL_BECF_C_12101,
|
|
779
|
+
MODEL_BECF_C_12109,
|
|
716
780
|
Colorbar, // Sub-components for custom rendering
|
|
717
781
|
Gripper,
|
|
718
782
|
} from "@lucablockltd/ultimate-packaging";
|
|
@@ -735,6 +799,10 @@ import type {
|
|
|
735
799
|
StandardBoxAttributes,
|
|
736
800
|
CartonBagAttributes,
|
|
737
801
|
CartonBag12109Attributes,
|
|
802
|
+
CartonBagB12101Attributes,
|
|
803
|
+
CartonBagB12109Attributes,
|
|
804
|
+
CartonBagC12101Attributes,
|
|
805
|
+
CartonBagC12109Attributes,
|
|
738
806
|
ModelMode,
|
|
739
807
|
PackagingModel,
|
|
740
808
|
GripperSide,
|
|
@@ -747,12 +815,18 @@ import type {
|
|
|
747
815
|
// Data & Constants
|
|
748
816
|
import {
|
|
749
817
|
modelList, // PackagingModel[] — all models with defaults
|
|
818
|
+
MODEL_DEFAULT_ATTRIBUTES, // { [modelId]: { ...defaultValues } } — all model defaults in one map
|
|
750
819
|
BECF_1010A_DEFAULT_ATTRIBUTES,
|
|
751
820
|
BECF_1030A_DEFAULT_ATTRIBUTES,
|
|
752
821
|
BECF_1040A_DEFAULT_ATTRIBUTES,
|
|
753
822
|
BECF_11D01_DEFAULT_ATTRIBUTES,
|
|
754
823
|
BECF_12101_DEFAULT_ATTRIBUTES,
|
|
755
824
|
BECF_12109_DEFAULT_ATTRIBUTES,
|
|
825
|
+
BECF_B_12101_DEFAULT_ATTRIBUTES,
|
|
826
|
+
BECF_B_12109_DEFAULT_ATTRIBUTES,
|
|
827
|
+
BECF_C_12101_DEFAULT_ATTRIBUTES,
|
|
828
|
+
BECF_C_12109_DEFAULT_ATTRIBUTES,
|
|
829
|
+
BECF_10A0A_DEFAULT_ATTRIBUTES,
|
|
756
830
|
MODEL_THEME_CONFIG,
|
|
757
831
|
AUTO_LAYOUT_THEME_CONFIG,
|
|
758
832
|
} from "@lucablockltd/ultimate-packaging";
|
package/dist/index.d.mts
CHANGED
|
@@ -10,7 +10,7 @@ interface TuckEndBoxAttributes$2 {
|
|
|
10
10
|
tuckFlap: number;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
interface GetAttributesResult$
|
|
13
|
+
interface GetAttributesResult$a {
|
|
14
14
|
modelId: string;
|
|
15
15
|
overallWidth: number;
|
|
16
16
|
overallHeight: number;
|
|
@@ -21,13 +21,13 @@ interface GetAttributesResult$5 {
|
|
|
21
21
|
dustFlap: number;
|
|
22
22
|
tuckFlap: number;
|
|
23
23
|
}
|
|
24
|
-
interface ExportImageOptions$
|
|
24
|
+
interface ExportImageOptions$a {
|
|
25
25
|
isShowDimension: boolean;
|
|
26
26
|
originalSize: boolean;
|
|
27
27
|
}
|
|
28
28
|
interface DieLineBecf1010aRef {
|
|
29
|
-
getAttributes: () => GetAttributesResult$
|
|
30
|
-
exportImage: (options: ExportImageOptions$
|
|
29
|
+
getAttributes: () => GetAttributesResult$a;
|
|
30
|
+
exportImage: (options: ExportImageOptions$a) => Promise<Blob>;
|
|
31
31
|
exportDimension: () => Promise<Blob>;
|
|
32
32
|
}
|
|
33
33
|
interface CanvasBecf1010aRef extends DieLineBecf1010aRef {
|
|
@@ -43,6 +43,7 @@ interface PackagingModel {
|
|
|
43
43
|
dimension: ModelMode[];
|
|
44
44
|
attributes: Record<string, number>;
|
|
45
45
|
}
|
|
46
|
+
declare const MODEL_DEFAULT_ATTRIBUTES: Record<string, Record<string, number>>;
|
|
46
47
|
declare const modelList: PackagingModel[];
|
|
47
48
|
|
|
48
49
|
interface ModelBecf1010aProps {
|
|
@@ -62,7 +63,7 @@ interface TuckEndBoxAttributes$1 {
|
|
|
62
63
|
tuckFlap: number;
|
|
63
64
|
}
|
|
64
65
|
|
|
65
|
-
interface GetAttributesResult$
|
|
66
|
+
interface GetAttributesResult$9 {
|
|
66
67
|
modelId: string;
|
|
67
68
|
overallWidth: number;
|
|
68
69
|
overallHeight: number;
|
|
@@ -73,13 +74,13 @@ interface GetAttributesResult$4 {
|
|
|
73
74
|
dustFlap: number;
|
|
74
75
|
tuckFlap: number;
|
|
75
76
|
}
|
|
76
|
-
interface ExportImageOptions$
|
|
77
|
+
interface ExportImageOptions$9 {
|
|
77
78
|
isShowDimension: boolean;
|
|
78
79
|
originalSize: boolean;
|
|
79
80
|
}
|
|
80
81
|
interface DieLineBecf1030aRef {
|
|
81
|
-
getAttributes: () => GetAttributesResult$
|
|
82
|
-
exportImage: (options: ExportImageOptions$
|
|
82
|
+
getAttributes: () => GetAttributesResult$9;
|
|
83
|
+
exportImage: (options: ExportImageOptions$9) => Promise<Blob>;
|
|
83
84
|
exportDimension: () => Promise<Blob>;
|
|
84
85
|
}
|
|
85
86
|
interface CanvasBecf1030aRef extends DieLineBecf1030aRef {
|
|
@@ -104,7 +105,7 @@ interface TuckEndBoxAttributes {
|
|
|
104
105
|
tuckFlap: number;
|
|
105
106
|
}
|
|
106
107
|
|
|
107
|
-
interface GetAttributesResult$
|
|
108
|
+
interface GetAttributesResult$8 {
|
|
108
109
|
modelId: string;
|
|
109
110
|
overallWidth: number;
|
|
110
111
|
overallHeight: number;
|
|
@@ -115,13 +116,13 @@ interface GetAttributesResult$3 {
|
|
|
115
116
|
dustFlap: number;
|
|
116
117
|
tuckFlap: number;
|
|
117
118
|
}
|
|
118
|
-
interface ExportImageOptions$
|
|
119
|
+
interface ExportImageOptions$8 {
|
|
119
120
|
isShowDimension: boolean;
|
|
120
121
|
originalSize: boolean;
|
|
121
122
|
}
|
|
122
123
|
interface DieLineBecf1040aRef {
|
|
123
|
-
getAttributes: () => GetAttributesResult$
|
|
124
|
-
exportImage: (options: ExportImageOptions$
|
|
124
|
+
getAttributes: () => GetAttributesResult$8;
|
|
125
|
+
exportImage: (options: ExportImageOptions$8) => Promise<Blob>;
|
|
125
126
|
exportDimension: () => Promise<Blob>;
|
|
126
127
|
}
|
|
127
128
|
interface CanvasBecf1040aRef extends DieLineBecf1040aRef {
|
|
@@ -145,7 +146,7 @@ interface StandardBoxAttributes {
|
|
|
145
146
|
glueArea: number;
|
|
146
147
|
}
|
|
147
148
|
|
|
148
|
-
interface GetAttributesResult$
|
|
149
|
+
interface GetAttributesResult$7 {
|
|
149
150
|
modelId: string;
|
|
150
151
|
overallWidth: number;
|
|
151
152
|
overallHeight: number;
|
|
@@ -155,13 +156,13 @@ interface GetAttributesResult$2 {
|
|
|
155
156
|
flapHeight: number;
|
|
156
157
|
glueArea: number;
|
|
157
158
|
}
|
|
158
|
-
interface ExportImageOptions$
|
|
159
|
+
interface ExportImageOptions$7 {
|
|
159
160
|
isShowDimension: boolean;
|
|
160
161
|
originalSize: boolean;
|
|
161
162
|
}
|
|
162
163
|
interface DieLineBecf11d01Ref {
|
|
163
|
-
getAttributes: () => GetAttributesResult$
|
|
164
|
-
exportImage: (options: ExportImageOptions$
|
|
164
|
+
getAttributes: () => GetAttributesResult$7;
|
|
165
|
+
exportImage: (options: ExportImageOptions$7) => Promise<Blob>;
|
|
165
166
|
exportDimension: () => Promise<Blob>;
|
|
166
167
|
}
|
|
167
168
|
interface CanvasBecf11d01Ref extends DieLineBecf11d01Ref {
|
|
@@ -184,7 +185,7 @@ interface CartonBagAttributes {
|
|
|
184
185
|
glueArea?: number;
|
|
185
186
|
}
|
|
186
187
|
|
|
187
|
-
interface GetAttributesResult$
|
|
188
|
+
interface GetAttributesResult$6 {
|
|
188
189
|
modelId: string;
|
|
189
190
|
overallWidth: number;
|
|
190
191
|
overallHeight: number;
|
|
@@ -199,13 +200,13 @@ interface GetAttributesResult$1 {
|
|
|
199
200
|
ropeY: number;
|
|
200
201
|
ropeX: number;
|
|
201
202
|
}
|
|
202
|
-
interface ExportImageOptions$
|
|
203
|
+
interface ExportImageOptions$6 {
|
|
203
204
|
isShowDimension: boolean;
|
|
204
205
|
originalSize: boolean;
|
|
205
206
|
}
|
|
206
207
|
interface DieLineBecf12101Ref {
|
|
207
|
-
getAttributes: () => GetAttributesResult$
|
|
208
|
-
exportImage: (options: ExportImageOptions$
|
|
208
|
+
getAttributes: () => GetAttributesResult$6;
|
|
209
|
+
exportImage: (options: ExportImageOptions$6) => Promise<Blob>;
|
|
209
210
|
exportDimension: () => Promise<Blob>;
|
|
210
211
|
}
|
|
211
212
|
interface CanvasBecf12101Ref extends DieLineBecf12101Ref {
|
|
@@ -228,7 +229,7 @@ interface CartonBag12109Attributes {
|
|
|
228
229
|
glueArea?: number;
|
|
229
230
|
}
|
|
230
231
|
|
|
231
|
-
interface GetAttributesResult {
|
|
232
|
+
interface GetAttributesResult$5 {
|
|
232
233
|
modelId: string;
|
|
233
234
|
overallWidth: number;
|
|
234
235
|
overallHeight: number;
|
|
@@ -243,13 +244,13 @@ interface GetAttributesResult {
|
|
|
243
244
|
ropeY: number;
|
|
244
245
|
ropeX: number;
|
|
245
246
|
}
|
|
246
|
-
interface ExportImageOptions {
|
|
247
|
+
interface ExportImageOptions$5 {
|
|
247
248
|
isShowDimension: boolean;
|
|
248
249
|
originalSize: boolean;
|
|
249
250
|
}
|
|
250
251
|
interface DieLineBecf12109Ref {
|
|
251
|
-
getAttributes: () => GetAttributesResult;
|
|
252
|
-
exportImage: (options: ExportImageOptions) => Promise<Blob>;
|
|
252
|
+
getAttributes: () => GetAttributesResult$5;
|
|
253
|
+
exportImage: (options: ExportImageOptions$5) => Promise<Blob>;
|
|
253
254
|
exportDimension: () => Promise<Blob>;
|
|
254
255
|
}
|
|
255
256
|
interface CanvasBecf12109Ref extends DieLineBecf12109Ref {
|
|
@@ -265,6 +266,216 @@ interface ModelBecf12109Props {
|
|
|
265
266
|
}
|
|
266
267
|
declare const MODEL_BECF_12109: react.ForwardRefExoticComponent<ModelBecf12109Props & react.RefAttributes<DieLineBecf12109Ref | CanvasBecf12109Ref>>;
|
|
267
268
|
|
|
269
|
+
interface CartonBagC12101Attributes {
|
|
270
|
+
length: number;
|
|
271
|
+
width: number;
|
|
272
|
+
height: number;
|
|
273
|
+
glueArea?: number;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
interface GetAttributesResult$4 {
|
|
277
|
+
modelId: string;
|
|
278
|
+
overallWidth: number;
|
|
279
|
+
overallHeight: number;
|
|
280
|
+
length: number;
|
|
281
|
+
width: number;
|
|
282
|
+
height: number;
|
|
283
|
+
glueArea: number;
|
|
284
|
+
d: number;
|
|
285
|
+
kulak: number;
|
|
286
|
+
dip: number;
|
|
287
|
+
ribbonHW: number;
|
|
288
|
+
ribbonDX: number;
|
|
289
|
+
ribbonDY: number;
|
|
290
|
+
ribbonX: number;
|
|
291
|
+
}
|
|
292
|
+
interface ExportImageOptions$4 {
|
|
293
|
+
isShowDimension: boolean;
|
|
294
|
+
originalSize: boolean;
|
|
295
|
+
}
|
|
296
|
+
interface DieLineBecfC12101Ref {
|
|
297
|
+
getAttributes: () => GetAttributesResult$4;
|
|
298
|
+
exportImage: (options: ExportImageOptions$4) => Promise<Blob>;
|
|
299
|
+
exportDimension: () => Promise<Blob>;
|
|
300
|
+
}
|
|
301
|
+
interface CanvasBecfC12101Ref extends DieLineBecfC12101Ref {
|
|
302
|
+
resetView: () => void;
|
|
303
|
+
fitView: () => void;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
interface ModelBecfC12101Props {
|
|
307
|
+
attributes: CartonBagC12101Attributes;
|
|
308
|
+
unit?: "mm" | "cm" | "in";
|
|
309
|
+
mode?: ModelMode;
|
|
310
|
+
isShowDimensions?: boolean;
|
|
311
|
+
}
|
|
312
|
+
declare const MODEL_BECF_C_12101: react.ForwardRefExoticComponent<ModelBecfC12101Props & react.RefAttributes<DieLineBecfC12101Ref | CanvasBecfC12101Ref>>;
|
|
313
|
+
|
|
314
|
+
interface CartonBagC12109Attributes {
|
|
315
|
+
length: number;
|
|
316
|
+
width: number;
|
|
317
|
+
height: number;
|
|
318
|
+
glueArea?: number;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
interface GetAttributesResult$3 {
|
|
322
|
+
modelId: string;
|
|
323
|
+
overallWidth: number;
|
|
324
|
+
overallHeight: number;
|
|
325
|
+
length: number;
|
|
326
|
+
width: number;
|
|
327
|
+
height: number;
|
|
328
|
+
glueArea: number;
|
|
329
|
+
d: number;
|
|
330
|
+
kulak: number;
|
|
331
|
+
dip: number;
|
|
332
|
+
ribbonHW: number;
|
|
333
|
+
ribbonDX: number;
|
|
334
|
+
ribbonDY: number;
|
|
335
|
+
ribbonX: number;
|
|
336
|
+
}
|
|
337
|
+
interface ExportImageOptions$3 {
|
|
338
|
+
isShowDimension: boolean;
|
|
339
|
+
originalSize: boolean;
|
|
340
|
+
}
|
|
341
|
+
interface DieLineBecfC12109Ref {
|
|
342
|
+
getAttributes: () => GetAttributesResult$3;
|
|
343
|
+
exportImage: (options: ExportImageOptions$3) => Promise<Blob>;
|
|
344
|
+
exportDimension: () => Promise<Blob>;
|
|
345
|
+
}
|
|
346
|
+
interface CanvasBecfC12109Ref extends DieLineBecfC12109Ref {
|
|
347
|
+
resetView: () => void;
|
|
348
|
+
fitView: () => void;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
interface ModelBecfC12109Props {
|
|
352
|
+
attributes: CartonBagC12109Attributes;
|
|
353
|
+
unit?: "mm" | "cm" | "in";
|
|
354
|
+
mode?: ModelMode;
|
|
355
|
+
isShowDimensions?: boolean;
|
|
356
|
+
}
|
|
357
|
+
declare const MODEL_BECF_C_12109: react.ForwardRefExoticComponent<ModelBecfC12109Props & react.RefAttributes<DieLineBecfC12109Ref | CanvasBecfC12109Ref>>;
|
|
358
|
+
|
|
359
|
+
interface CartonBagB12101Attributes {
|
|
360
|
+
length: number;
|
|
361
|
+
width: number;
|
|
362
|
+
height: number;
|
|
363
|
+
glueArea?: number;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
interface GetAttributesResult$2 {
|
|
367
|
+
modelId: string;
|
|
368
|
+
overallWidth: number;
|
|
369
|
+
overallHeight: number;
|
|
370
|
+
length: number;
|
|
371
|
+
width: number;
|
|
372
|
+
height: number;
|
|
373
|
+
glueArea: number;
|
|
374
|
+
kulak: number;
|
|
375
|
+
dip: number;
|
|
376
|
+
}
|
|
377
|
+
interface ExportImageOptions$2 {
|
|
378
|
+
isShowDimension: boolean;
|
|
379
|
+
originalSize: boolean;
|
|
380
|
+
}
|
|
381
|
+
interface DieLineBecfB12101Ref {
|
|
382
|
+
getAttributes: () => GetAttributesResult$2;
|
|
383
|
+
exportImage: (options: ExportImageOptions$2) => Promise<Blob>;
|
|
384
|
+
exportDimension: () => Promise<Blob>;
|
|
385
|
+
}
|
|
386
|
+
interface CanvasBecfB12101Ref extends DieLineBecfB12101Ref {
|
|
387
|
+
resetView: () => void;
|
|
388
|
+
fitView: () => void;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
interface ModelBecfB12101Props {
|
|
392
|
+
attributes: CartonBagB12101Attributes;
|
|
393
|
+
unit?: "mm" | "cm" | "in";
|
|
394
|
+
mode?: ModelMode;
|
|
395
|
+
isShowDimensions?: boolean;
|
|
396
|
+
}
|
|
397
|
+
declare const MODEL_BECF_B_12101: react.ForwardRefExoticComponent<ModelBecfB12101Props & react.RefAttributes<DieLineBecfB12101Ref | CanvasBecfB12101Ref>>;
|
|
398
|
+
|
|
399
|
+
interface CartonBagB12109Attributes {
|
|
400
|
+
length: number;
|
|
401
|
+
width: number;
|
|
402
|
+
height: number;
|
|
403
|
+
glueArea?: number;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
interface GetAttributesResult$1 {
|
|
407
|
+
modelId: string;
|
|
408
|
+
overallWidth: number;
|
|
409
|
+
overallHeight: number;
|
|
410
|
+
length: number;
|
|
411
|
+
width: number;
|
|
412
|
+
height: number;
|
|
413
|
+
glueArea: number;
|
|
414
|
+
kulak: number;
|
|
415
|
+
dip: number;
|
|
416
|
+
}
|
|
417
|
+
interface ExportImageOptions$1 {
|
|
418
|
+
isShowDimension: boolean;
|
|
419
|
+
originalSize: boolean;
|
|
420
|
+
}
|
|
421
|
+
interface DieLineBecfB12109Ref {
|
|
422
|
+
getAttributes: () => GetAttributesResult$1;
|
|
423
|
+
exportImage: (options: ExportImageOptions$1) => Promise<Blob>;
|
|
424
|
+
exportDimension: () => Promise<Blob>;
|
|
425
|
+
}
|
|
426
|
+
interface CanvasBecfB12109Ref extends DieLineBecfB12109Ref {
|
|
427
|
+
resetView: () => void;
|
|
428
|
+
fitView: () => void;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
interface ModelBecfB12109Props {
|
|
432
|
+
attributes: CartonBagB12109Attributes;
|
|
433
|
+
unit?: "mm" | "cm" | "in";
|
|
434
|
+
mode?: ModelMode;
|
|
435
|
+
isShowDimensions?: boolean;
|
|
436
|
+
}
|
|
437
|
+
declare const MODEL_BECF_B_12109: react.ForwardRefExoticComponent<ModelBecfB12109Props & react.RefAttributes<DieLineBecfB12109Ref | CanvasBecfB12109Ref>>;
|
|
438
|
+
|
|
439
|
+
interface SnapLockBoxAttributes {
|
|
440
|
+
length: number;
|
|
441
|
+
width: number;
|
|
442
|
+
height: number;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
interface GetAttributesResult {
|
|
446
|
+
modelId: string;
|
|
447
|
+
overallWidth: number;
|
|
448
|
+
overallHeight: number;
|
|
449
|
+
length: number;
|
|
450
|
+
width: number;
|
|
451
|
+
height: number;
|
|
452
|
+
kulak: number;
|
|
453
|
+
dil: number;
|
|
454
|
+
flap: number;
|
|
455
|
+
dip: number;
|
|
456
|
+
}
|
|
457
|
+
interface ExportImageOptions {
|
|
458
|
+
isShowDimension: boolean;
|
|
459
|
+
originalSize: boolean;
|
|
460
|
+
}
|
|
461
|
+
interface DieLineBecf10a0aRef {
|
|
462
|
+
getAttributes: () => GetAttributesResult;
|
|
463
|
+
exportImage: (options: ExportImageOptions) => Promise<Blob>;
|
|
464
|
+
exportDimension: () => Promise<Blob>;
|
|
465
|
+
}
|
|
466
|
+
interface CanvasBecf10a0aRef extends DieLineBecf10a0aRef {
|
|
467
|
+
resetView: () => void;
|
|
468
|
+
fitView: () => void;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
interface ModelBecf10a0aProps {
|
|
472
|
+
attributes: SnapLockBoxAttributes;
|
|
473
|
+
unit?: "mm" | "cm" | "in";
|
|
474
|
+
mode?: ModelMode;
|
|
475
|
+
isShowDimensions?: boolean;
|
|
476
|
+
}
|
|
477
|
+
declare const MODEL_BECF_10A0A: react.ForwardRefExoticComponent<ModelBecf10a0aProps & react.RefAttributes<DieLineBecf10a0aRef | CanvasBecf10a0aRef>>;
|
|
478
|
+
|
|
268
479
|
type GripperSide = "top" | "bottom" | "left" | "right";
|
|
269
480
|
interface AutoLayoutPaper {
|
|
270
481
|
paperId: string;
|
|
@@ -426,6 +637,40 @@ declare const BECF_12109_DEFAULT_ATTRIBUTES: {
|
|
|
426
637
|
glueArea: number;
|
|
427
638
|
};
|
|
428
639
|
|
|
640
|
+
declare const BECF_C_12101_DEFAULT_ATTRIBUTES: {
|
|
641
|
+
length: number;
|
|
642
|
+
width: number;
|
|
643
|
+
height: number;
|
|
644
|
+
glueArea: number;
|
|
645
|
+
};
|
|
646
|
+
|
|
647
|
+
declare const BECF_C_12109_DEFAULT_ATTRIBUTES: {
|
|
648
|
+
length: number;
|
|
649
|
+
width: number;
|
|
650
|
+
height: number;
|
|
651
|
+
glueArea: number;
|
|
652
|
+
};
|
|
653
|
+
|
|
654
|
+
declare const BECF_B_12101_DEFAULT_ATTRIBUTES: {
|
|
655
|
+
length: number;
|
|
656
|
+
width: number;
|
|
657
|
+
height: number;
|
|
658
|
+
glueArea: number;
|
|
659
|
+
};
|
|
660
|
+
|
|
661
|
+
declare const BECF_B_12109_DEFAULT_ATTRIBUTES: {
|
|
662
|
+
length: number;
|
|
663
|
+
width: number;
|
|
664
|
+
height: number;
|
|
665
|
+
glueArea: number;
|
|
666
|
+
};
|
|
667
|
+
|
|
668
|
+
declare const BECF_10A0A_DEFAULT_ATTRIBUTES: {
|
|
669
|
+
length: number;
|
|
670
|
+
width: number;
|
|
671
|
+
height: number;
|
|
672
|
+
};
|
|
673
|
+
|
|
429
674
|
interface ModelThemeConfig {
|
|
430
675
|
colorBackground: string;
|
|
431
676
|
colorDieLine: string;
|
|
@@ -453,4 +698,4 @@ interface UltimatePackagingConfig {
|
|
|
453
698
|
}
|
|
454
699
|
declare function configurePackaging(config: UltimatePackagingConfig): void;
|
|
455
700
|
|
|
456
|
-
export { AUTO_LAYOUT, AUTO_LAYOUT_THEME_CONFIG, type AutoLayoutConfig, type AutoLayoutModel, type AutoLayoutPaper, type AutoLayoutPaperResult, type AutoLayoutPlacement, type AutoLayoutProps, type AutoLayoutRef, type AutoLayoutResult, type AutoLayoutThemeConfig, BECF_1010A_DEFAULT_ATTRIBUTES, BECF_1030A_DEFAULT_ATTRIBUTES, BECF_1040A_DEFAULT_ATTRIBUTES, BECF_11D01_DEFAULT_ATTRIBUTES, BECF_12101_DEFAULT_ATTRIBUTES, BECF_12109_DEFAULT_ATTRIBUTES, type CartonBag12109Attributes, type CartonBagAttributes, Colorbar, type ColorbarProps, DIE_LINE_LAYOUT, type DieLineLayoutProps, type DieLineLayoutRef, type ExportImageOptions$
|
|
701
|
+
export { AUTO_LAYOUT, AUTO_LAYOUT_THEME_CONFIG, type AutoLayoutConfig, type AutoLayoutModel, type AutoLayoutPaper, type AutoLayoutPaperResult, type AutoLayoutPlacement, type AutoLayoutProps, type AutoLayoutRef, type AutoLayoutResult, type AutoLayoutThemeConfig, BECF_1010A_DEFAULT_ATTRIBUTES, BECF_1030A_DEFAULT_ATTRIBUTES, BECF_1040A_DEFAULT_ATTRIBUTES, BECF_10A0A_DEFAULT_ATTRIBUTES, BECF_11D01_DEFAULT_ATTRIBUTES, BECF_12101_DEFAULT_ATTRIBUTES, BECF_12109_DEFAULT_ATTRIBUTES, BECF_B_12101_DEFAULT_ATTRIBUTES, BECF_B_12109_DEFAULT_ATTRIBUTES, BECF_C_12101_DEFAULT_ATTRIBUTES, BECF_C_12109_DEFAULT_ATTRIBUTES, type CartonBag12109Attributes, type CartonBagAttributes, type CartonBagB12101Attributes, type CartonBagB12109Attributes, type CartonBagC12101Attributes, type CartonBagC12109Attributes, Colorbar, type ColorbarProps, DIE_LINE_LAYOUT, type DieLineLayoutProps, type DieLineLayoutRef, type ExportImageOptions$a as ExportImageOptions, type GetAttributesResult$a as GetAttributesResult, Gripper, type GripperProps, type GripperSide, MODEL_BECF_1010A, MODEL_BECF_1030A, MODEL_BECF_1040A, MODEL_BECF_10A0A, MODEL_BECF_11D01, MODEL_BECF_12101, MODEL_BECF_12109, MODEL_BECF_B_12101, MODEL_BECF_B_12109, MODEL_BECF_C_12101, MODEL_BECF_C_12109, MODEL_DEFAULT_ATTRIBUTES, MODEL_THEME_CONFIG, type ModelBecf1010aProps, type CanvasBecf1010aRef as ModelBecf1010aRef, type ModelBecf1030aProps, type CanvasBecf1030aRef as ModelBecf1030aRef, type ModelBecf1040aProps, type CanvasBecf1040aRef as ModelBecf1040aRef, type ModelBecf10a0aProps, type CanvasBecf10a0aRef as ModelBecf10a0aRef, type ModelBecf11d01Props, type CanvasBecf11d01Ref as ModelBecf11d01Ref, type ModelBecf12101Props, type CanvasBecf12101Ref as ModelBecf12101Ref, type ModelBecf12109Props, type CanvasBecf12109Ref as ModelBecf12109Ref, type ModelBecfB12101Props, type CanvasBecfB12101Ref as ModelBecfB12101Ref, type ModelBecfB12109Props, type CanvasBecfB12109Ref as ModelBecfB12109Ref, type ModelBecfC12101Props, type CanvasBecfC12101Ref as ModelBecfC12101Ref, type ModelBecfC12109Props, type CanvasBecfC12109Ref as ModelBecfC12109Ref, type ModelMode, type ModelThemeConfig, type PackagingModel, type SnapLockBoxAttributes, type StandardBoxAttributes, type TuckEndBoxAttributes$2 as TuckEndBoxAttributes, type UltimatePackagingConfig, appendColorbarToSvg, appendGripperToSvg, calculateAutoLayout, configurePackaging, modelList };
|