@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/index.d.ts CHANGED
@@ -10,7 +10,7 @@ interface TuckEndBoxAttributes$2 {
10
10
  tuckFlap: number;
11
11
  }
12
12
 
13
- interface GetAttributesResult$5 {
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$5 {
24
+ interface ExportImageOptions$a {
25
25
  isShowDimension: boolean;
26
26
  originalSize: boolean;
27
27
  }
28
28
  interface DieLineBecf1010aRef {
29
- getAttributes: () => GetAttributesResult$5;
30
- exportImage: (options: ExportImageOptions$5) => 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$4 {
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$4 {
77
+ interface ExportImageOptions$9 {
77
78
  isShowDimension: boolean;
78
79
  originalSize: boolean;
79
80
  }
80
81
  interface DieLineBecf1030aRef {
81
- getAttributes: () => GetAttributesResult$4;
82
- exportImage: (options: ExportImageOptions$4) => 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$3 {
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$3 {
119
+ interface ExportImageOptions$8 {
119
120
  isShowDimension: boolean;
120
121
  originalSize: boolean;
121
122
  }
122
123
  interface DieLineBecf1040aRef {
123
- getAttributes: () => GetAttributesResult$3;
124
- exportImage: (options: ExportImageOptions$3) => 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$2 {
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$2 {
159
+ interface ExportImageOptions$7 {
159
160
  isShowDimension: boolean;
160
161
  originalSize: boolean;
161
162
  }
162
163
  interface DieLineBecf11d01Ref {
163
- getAttributes: () => GetAttributesResult$2;
164
- exportImage: (options: ExportImageOptions$2) => 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$1 {
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$1 {
203
+ interface ExportImageOptions$6 {
203
204
  isShowDimension: boolean;
204
205
  originalSize: boolean;
205
206
  }
206
207
  interface DieLineBecf12101Ref {
207
- getAttributes: () => GetAttributesResult$1;
208
- exportImage: (options: ExportImageOptions$1) => 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 {
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$5 as ExportImageOptions, type GetAttributesResult$5 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_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 ModelMode, type ModelThemeConfig, type PackagingModel, type StandardBoxAttributes, type TuckEndBoxAttributes$2 as TuckEndBoxAttributes, type UltimatePackagingConfig, appendColorbarToSvg, appendGripperToSvg, calculateAutoLayout, configurePackaging, modelList };
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 };