@lucablockltd/ultimate-packaging 1.3.0 → 1.5.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/index.d.ts CHANGED
@@ -10,7 +10,7 @@ interface TuckEndBoxAttributes$2 {
10
10
  tuckFlap: number;
11
11
  }
12
12
 
13
- interface GetAttributesResult$7 {
13
+ interface GetAttributesResult$a {
14
14
  modelId: string;
15
15
  overallWidth: number;
16
16
  overallHeight: number;
@@ -21,13 +21,13 @@ interface GetAttributesResult$7 {
21
21
  dustFlap: number;
22
22
  tuckFlap: number;
23
23
  }
24
- interface ExportImageOptions$7 {
24
+ interface ExportImageOptions$a {
25
25
  isShowDimension: boolean;
26
26
  originalSize: boolean;
27
27
  }
28
28
  interface DieLineBecf1010aRef {
29
- getAttributes: () => GetAttributesResult$7;
30
- exportImage: (options: ExportImageOptions$7) => Promise<Blob>;
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$6 {
66
+ interface GetAttributesResult$9 {
66
67
  modelId: string;
67
68
  overallWidth: number;
68
69
  overallHeight: number;
@@ -73,13 +74,13 @@ interface GetAttributesResult$6 {
73
74
  dustFlap: number;
74
75
  tuckFlap: number;
75
76
  }
76
- interface ExportImageOptions$6 {
77
+ interface ExportImageOptions$9 {
77
78
  isShowDimension: boolean;
78
79
  originalSize: boolean;
79
80
  }
80
81
  interface DieLineBecf1030aRef {
81
- getAttributes: () => GetAttributesResult$6;
82
- exportImage: (options: ExportImageOptions$6) => Promise<Blob>;
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$5 {
108
+ interface GetAttributesResult$8 {
108
109
  modelId: string;
109
110
  overallWidth: number;
110
111
  overallHeight: number;
@@ -115,13 +116,13 @@ interface GetAttributesResult$5 {
115
116
  dustFlap: number;
116
117
  tuckFlap: number;
117
118
  }
118
- interface ExportImageOptions$5 {
119
+ interface ExportImageOptions$8 {
119
120
  isShowDimension: boolean;
120
121
  originalSize: boolean;
121
122
  }
122
123
  interface DieLineBecf1040aRef {
123
- getAttributes: () => GetAttributesResult$5;
124
- exportImage: (options: ExportImageOptions$5) => Promise<Blob>;
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$4 {
149
+ interface GetAttributesResult$7 {
149
150
  modelId: string;
150
151
  overallWidth: number;
151
152
  overallHeight: number;
@@ -155,13 +156,13 @@ interface GetAttributesResult$4 {
155
156
  flapHeight: number;
156
157
  glueArea: number;
157
158
  }
158
- interface ExportImageOptions$4 {
159
+ interface ExportImageOptions$7 {
159
160
  isShowDimension: boolean;
160
161
  originalSize: boolean;
161
162
  }
162
163
  interface DieLineBecf11d01Ref {
163
- getAttributes: () => GetAttributesResult$4;
164
- exportImage: (options: ExportImageOptions$4) => Promise<Blob>;
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$3 {
188
+ interface GetAttributesResult$6 {
188
189
  modelId: string;
189
190
  overallWidth: number;
190
191
  overallHeight: number;
@@ -199,13 +200,13 @@ interface GetAttributesResult$3 {
199
200
  ropeY: number;
200
201
  ropeX: number;
201
202
  }
202
- interface ExportImageOptions$3 {
203
+ interface ExportImageOptions$6 {
203
204
  isShowDimension: boolean;
204
205
  originalSize: boolean;
205
206
  }
206
207
  interface DieLineBecf12101Ref {
207
- getAttributes: () => GetAttributesResult$3;
208
- exportImage: (options: ExportImageOptions$3) => Promise<Blob>;
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$2 {
232
+ interface GetAttributesResult$5 {
232
233
  modelId: string;
233
234
  overallWidth: number;
234
235
  overallHeight: number;
@@ -243,13 +244,13 @@ interface GetAttributesResult$2 {
243
244
  ropeY: number;
244
245
  ropeX: number;
245
246
  }
246
- interface ExportImageOptions$2 {
247
+ interface ExportImageOptions$5 {
247
248
  isShowDimension: boolean;
248
249
  originalSize: boolean;
249
250
  }
250
251
  interface DieLineBecf12109Ref {
251
- getAttributes: () => GetAttributesResult$2;
252
- exportImage: (options: ExportImageOptions$2) => 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 {
@@ -272,7 +273,7 @@ interface CartonBagC12101Attributes {
272
273
  glueArea?: number;
273
274
  }
274
275
 
275
- interface GetAttributesResult$1 {
276
+ interface GetAttributesResult$4 {
276
277
  modelId: string;
277
278
  overallWidth: number;
278
279
  overallHeight: number;
@@ -288,13 +289,13 @@ interface GetAttributesResult$1 {
288
289
  ribbonDY: number;
289
290
  ribbonX: number;
290
291
  }
291
- interface ExportImageOptions$1 {
292
+ interface ExportImageOptions$4 {
292
293
  isShowDimension: boolean;
293
294
  originalSize: boolean;
294
295
  }
295
296
  interface DieLineBecfC12101Ref {
296
- getAttributes: () => GetAttributesResult$1;
297
- exportImage: (options: ExportImageOptions$1) => Promise<Blob>;
297
+ getAttributes: () => GetAttributesResult$4;
298
+ exportImage: (options: ExportImageOptions$4) => Promise<Blob>;
298
299
  exportDimension: () => Promise<Blob>;
299
300
  }
300
301
  interface CanvasBecfC12101Ref extends DieLineBecfC12101Ref {
@@ -317,7 +318,7 @@ interface CartonBagC12109Attributes {
317
318
  glueArea?: number;
318
319
  }
319
320
 
320
- interface GetAttributesResult {
321
+ interface GetAttributesResult$3 {
321
322
  modelId: string;
322
323
  overallWidth: number;
323
324
  overallHeight: number;
@@ -333,13 +334,13 @@ interface GetAttributesResult {
333
334
  ribbonDY: number;
334
335
  ribbonX: number;
335
336
  }
336
- interface ExportImageOptions {
337
+ interface ExportImageOptions$3 {
337
338
  isShowDimension: boolean;
338
339
  originalSize: boolean;
339
340
  }
340
341
  interface DieLineBecfC12109Ref {
341
- getAttributes: () => GetAttributesResult;
342
- exportImage: (options: ExportImageOptions) => Promise<Blob>;
342
+ getAttributes: () => GetAttributesResult$3;
343
+ exportImage: (options: ExportImageOptions$3) => Promise<Blob>;
343
344
  exportDimension: () => Promise<Blob>;
344
345
  }
345
346
  interface CanvasBecfC12109Ref extends DieLineBecfC12109Ref {
@@ -355,6 +356,128 @@ interface ModelBecfC12109Props {
355
356
  }
356
357
  declare const MODEL_BECF_C_12109: react.ForwardRefExoticComponent<ModelBecfC12109Props & react.RefAttributes<DieLineBecfC12109Ref | CanvasBecfC12109Ref>>;
357
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
+ glueArea: number;
444
+ }
445
+
446
+ interface GetAttributesResult {
447
+ modelId: string;
448
+ overallWidth: number;
449
+ overallHeight: number;
450
+ length: number;
451
+ width: number;
452
+ height: number;
453
+ glueArea: number;
454
+ kulak: number;
455
+ dil: number;
456
+ flap: number;
457
+ dip: number;
458
+ }
459
+ interface ExportImageOptions {
460
+ isShowDimension: boolean;
461
+ originalSize: boolean;
462
+ }
463
+ interface DieLineBecf10a0aRef {
464
+ getAttributes: () => GetAttributesResult;
465
+ exportImage: (options: ExportImageOptions) => Promise<Blob>;
466
+ exportDimension: () => Promise<Blob>;
467
+ }
468
+ interface CanvasBecf10a0aRef extends DieLineBecf10a0aRef {
469
+ resetView: () => void;
470
+ fitView: () => void;
471
+ }
472
+
473
+ interface ModelBecf10a0aProps {
474
+ attributes: SnapLockBoxAttributes;
475
+ unit?: "mm" | "cm" | "in";
476
+ mode?: ModelMode;
477
+ isShowDimensions?: boolean;
478
+ }
479
+ declare const MODEL_BECF_10A0A: react.ForwardRefExoticComponent<ModelBecf10a0aProps & react.RefAttributes<DieLineBecf10a0aRef | CanvasBecf10a0aRef>>;
480
+
358
481
  type GripperSide = "top" | "bottom" | "left" | "right";
359
482
  interface AutoLayoutPaper {
360
483
  paperId: string;
@@ -435,6 +558,7 @@ interface DieLineLayoutProps {
435
558
  unit?: "mm" | "cm" | "in";
436
559
  mode?: ModelMode;
437
560
  isShowDimensions?: boolean;
561
+ debug?: boolean;
438
562
  }
439
563
  interface DieLineLayoutRef {
440
564
  getAttributes: () => Record<string, unknown>;
@@ -530,6 +654,27 @@ declare const BECF_C_12109_DEFAULT_ATTRIBUTES: {
530
654
  glueArea: number;
531
655
  };
532
656
 
657
+ declare const BECF_B_12101_DEFAULT_ATTRIBUTES: {
658
+ length: number;
659
+ width: number;
660
+ height: number;
661
+ glueArea: number;
662
+ };
663
+
664
+ declare const BECF_B_12109_DEFAULT_ATTRIBUTES: {
665
+ length: number;
666
+ width: number;
667
+ height: number;
668
+ glueArea: number;
669
+ };
670
+
671
+ declare const BECF_10A0A_DEFAULT_ATTRIBUTES: {
672
+ length: number;
673
+ width: number;
674
+ height: number;
675
+ glueArea: number;
676
+ };
677
+
533
678
  interface ModelThemeConfig {
534
679
  colorBackground: string;
535
680
  colorDieLine: string;
@@ -557,4 +702,4 @@ interface UltimatePackagingConfig {
557
702
  }
558
703
  declare function configurePackaging(config: UltimatePackagingConfig): void;
559
704
 
560
- 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, BECF_C_12101_DEFAULT_ATTRIBUTES, BECF_C_12109_DEFAULT_ATTRIBUTES, type CartonBag12109Attributes, type CartonBagAttributes, type CartonBagC12101Attributes, type CartonBagC12109Attributes, Colorbar, type ColorbarProps, DIE_LINE_LAYOUT, type DieLineLayoutProps, type DieLineLayoutRef, type ExportImageOptions$7 as ExportImageOptions, type GetAttributesResult$7 as GetAttributesResult, Gripper, type GripperProps, type GripperSide, MODEL_BECF_1010A, MODEL_BECF_1030A, MODEL_BECF_1040A, MODEL_BECF_11D01, MODEL_BECF_12101, MODEL_BECF_12109, MODEL_BECF_C_12101, MODEL_BECF_C_12109, MODEL_THEME_CONFIG, type ModelBecf1010aProps, type CanvasBecf1010aRef as ModelBecf1010aRef, type ModelBecf1030aProps, type CanvasBecf1030aRef as ModelBecf1030aRef, type ModelBecf1040aProps, type CanvasBecf1040aRef as ModelBecf1040aRef, type ModelBecf11d01Props, type CanvasBecf11d01Ref as ModelBecf11d01Ref, type ModelBecf12101Props, type CanvasBecf12101Ref as ModelBecf12101Ref, type ModelBecf12109Props, type CanvasBecf12109Ref as ModelBecf12109Ref, type ModelBecfC12101Props, type CanvasBecfC12101Ref as ModelBecfC12101Ref, type ModelBecfC12109Props, type CanvasBecfC12109Ref as ModelBecfC12109Ref, type ModelMode, type ModelThemeConfig, type PackagingModel, type StandardBoxAttributes, type TuckEndBoxAttributes$2 as TuckEndBoxAttributes, type UltimatePackagingConfig, appendColorbarToSvg, appendGripperToSvg, calculateAutoLayout, configurePackaging, modelList };
705
+ 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 };