@lucablockltd/ultimate-packaging 1.0.2 → 1.1.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 +288 -106
- package/dist/index.d.mts +129 -23
- package/dist/index.d.ts +129 -23
- package/dist/index.js +2167 -522
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2164 -523
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -3
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$5 {
|
|
14
14
|
modelId: string;
|
|
15
15
|
overallWidth: number;
|
|
16
16
|
overallHeight: number;
|
|
@@ -21,13 +21,13 @@ interface GetAttributesResult$3 {
|
|
|
21
21
|
dustFlap: number;
|
|
22
22
|
tuckFlap: number;
|
|
23
23
|
}
|
|
24
|
-
interface ExportImageOptions$
|
|
24
|
+
interface ExportImageOptions$5 {
|
|
25
25
|
isShowDimension: boolean;
|
|
26
26
|
originalSize: boolean;
|
|
27
27
|
}
|
|
28
28
|
interface DieLineBecf1010aRef {
|
|
29
|
-
getAttributes: () => GetAttributesResult$
|
|
30
|
-
exportImage: (options: ExportImageOptions$
|
|
29
|
+
getAttributes: () => GetAttributesResult$5;
|
|
30
|
+
exportImage: (options: ExportImageOptions$5) => Promise<Blob>;
|
|
31
31
|
exportDimension: () => Promise<Blob>;
|
|
32
32
|
}
|
|
33
33
|
interface CanvasBecf1010aRef extends DieLineBecf1010aRef {
|
|
@@ -62,7 +62,7 @@ interface TuckEndBoxAttributes$1 {
|
|
|
62
62
|
tuckFlap: number;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
interface GetAttributesResult$
|
|
65
|
+
interface GetAttributesResult$4 {
|
|
66
66
|
modelId: string;
|
|
67
67
|
overallWidth: number;
|
|
68
68
|
overallHeight: number;
|
|
@@ -73,13 +73,13 @@ interface GetAttributesResult$2 {
|
|
|
73
73
|
dustFlap: number;
|
|
74
74
|
tuckFlap: number;
|
|
75
75
|
}
|
|
76
|
-
interface ExportImageOptions$
|
|
76
|
+
interface ExportImageOptions$4 {
|
|
77
77
|
isShowDimension: boolean;
|
|
78
78
|
originalSize: boolean;
|
|
79
79
|
}
|
|
80
80
|
interface DieLineBecf1030aRef {
|
|
81
|
-
getAttributes: () => GetAttributesResult$
|
|
82
|
-
exportImage: (options: ExportImageOptions$
|
|
81
|
+
getAttributes: () => GetAttributesResult$4;
|
|
82
|
+
exportImage: (options: ExportImageOptions$4) => Promise<Blob>;
|
|
83
83
|
exportDimension: () => Promise<Blob>;
|
|
84
84
|
}
|
|
85
85
|
interface CanvasBecf1030aRef extends DieLineBecf1030aRef {
|
|
@@ -104,7 +104,7 @@ interface TuckEndBoxAttributes {
|
|
|
104
104
|
tuckFlap: number;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
interface GetAttributesResult$
|
|
107
|
+
interface GetAttributesResult$3 {
|
|
108
108
|
modelId: string;
|
|
109
109
|
overallWidth: number;
|
|
110
110
|
overallHeight: number;
|
|
@@ -115,13 +115,13 @@ interface GetAttributesResult$1 {
|
|
|
115
115
|
dustFlap: number;
|
|
116
116
|
tuckFlap: number;
|
|
117
117
|
}
|
|
118
|
-
interface ExportImageOptions$
|
|
118
|
+
interface ExportImageOptions$3 {
|
|
119
119
|
isShowDimension: boolean;
|
|
120
120
|
originalSize: boolean;
|
|
121
121
|
}
|
|
122
122
|
interface DieLineBecf1040aRef {
|
|
123
|
-
getAttributes: () => GetAttributesResult$
|
|
124
|
-
exportImage: (options: ExportImageOptions$
|
|
123
|
+
getAttributes: () => GetAttributesResult$3;
|
|
124
|
+
exportImage: (options: ExportImageOptions$3) => Promise<Blob>;
|
|
125
125
|
exportDimension: () => Promise<Blob>;
|
|
126
126
|
}
|
|
127
127
|
interface CanvasBecf1040aRef extends DieLineBecf1040aRef {
|
|
@@ -145,7 +145,7 @@ interface StandardBoxAttributes {
|
|
|
145
145
|
glueArea: number;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
interface GetAttributesResult {
|
|
148
|
+
interface GetAttributesResult$2 {
|
|
149
149
|
modelId: string;
|
|
150
150
|
overallWidth: number;
|
|
151
151
|
overallHeight: number;
|
|
@@ -155,13 +155,13 @@ interface GetAttributesResult {
|
|
|
155
155
|
flapHeight: number;
|
|
156
156
|
glueArea: number;
|
|
157
157
|
}
|
|
158
|
-
interface ExportImageOptions {
|
|
158
|
+
interface ExportImageOptions$2 {
|
|
159
159
|
isShowDimension: boolean;
|
|
160
160
|
originalSize: boolean;
|
|
161
161
|
}
|
|
162
162
|
interface DieLineBecf11d01Ref {
|
|
163
|
-
getAttributes: () => GetAttributesResult;
|
|
164
|
-
exportImage: (options: ExportImageOptions) => Promise<Blob>;
|
|
163
|
+
getAttributes: () => GetAttributesResult$2;
|
|
164
|
+
exportImage: (options: ExportImageOptions$2) => Promise<Blob>;
|
|
165
165
|
exportDimension: () => Promise<Blob>;
|
|
166
166
|
}
|
|
167
167
|
interface CanvasBecf11d01Ref extends DieLineBecf11d01Ref {
|
|
@@ -177,6 +177,94 @@ interface ModelBecf11d01Props {
|
|
|
177
177
|
}
|
|
178
178
|
declare const MODEL_BECF_11D01: react.ForwardRefExoticComponent<ModelBecf11d01Props & react.RefAttributes<DieLineBecf11d01Ref | CanvasBecf11d01Ref>>;
|
|
179
179
|
|
|
180
|
+
interface CartonBagAttributes {
|
|
181
|
+
length: number;
|
|
182
|
+
width: number;
|
|
183
|
+
height: number;
|
|
184
|
+
glueArea?: number;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
interface GetAttributesResult$1 {
|
|
188
|
+
modelId: string;
|
|
189
|
+
overallWidth: number;
|
|
190
|
+
overallHeight: number;
|
|
191
|
+
length: number;
|
|
192
|
+
width: number;
|
|
193
|
+
height: number;
|
|
194
|
+
glueArea: number;
|
|
195
|
+
d: number;
|
|
196
|
+
kulak: number;
|
|
197
|
+
dip: number;
|
|
198
|
+
ropeR: number;
|
|
199
|
+
ropeY: number;
|
|
200
|
+
ropeX: number;
|
|
201
|
+
}
|
|
202
|
+
interface ExportImageOptions$1 {
|
|
203
|
+
isShowDimension: boolean;
|
|
204
|
+
originalSize: boolean;
|
|
205
|
+
}
|
|
206
|
+
interface DieLineBecf12101Ref {
|
|
207
|
+
getAttributes: () => GetAttributesResult$1;
|
|
208
|
+
exportImage: (options: ExportImageOptions$1) => Promise<Blob>;
|
|
209
|
+
exportDimension: () => Promise<Blob>;
|
|
210
|
+
}
|
|
211
|
+
interface CanvasBecf12101Ref extends DieLineBecf12101Ref {
|
|
212
|
+
resetView: () => void;
|
|
213
|
+
fitView: () => void;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
interface ModelBecf12101Props {
|
|
217
|
+
attributes: CartonBagAttributes;
|
|
218
|
+
unit?: "mm" | "cm" | "in";
|
|
219
|
+
mode?: ModelMode;
|
|
220
|
+
isShowDimensions?: boolean;
|
|
221
|
+
}
|
|
222
|
+
declare const MODEL_BECF_12101: react.ForwardRefExoticComponent<ModelBecf12101Props & react.RefAttributes<DieLineBecf12101Ref | CanvasBecf12101Ref>>;
|
|
223
|
+
|
|
224
|
+
interface CartonBag12109Attributes {
|
|
225
|
+
length: number;
|
|
226
|
+
width: number;
|
|
227
|
+
height: number;
|
|
228
|
+
glueArea?: number;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
interface GetAttributesResult {
|
|
232
|
+
modelId: string;
|
|
233
|
+
overallWidth: number;
|
|
234
|
+
overallHeight: number;
|
|
235
|
+
length: number;
|
|
236
|
+
width: number;
|
|
237
|
+
height: number;
|
|
238
|
+
glueArea: number;
|
|
239
|
+
d: number;
|
|
240
|
+
kulak: number;
|
|
241
|
+
dip: number;
|
|
242
|
+
ropeR: number;
|
|
243
|
+
ropeY: number;
|
|
244
|
+
ropeX: number;
|
|
245
|
+
}
|
|
246
|
+
interface ExportImageOptions {
|
|
247
|
+
isShowDimension: boolean;
|
|
248
|
+
originalSize: boolean;
|
|
249
|
+
}
|
|
250
|
+
interface DieLineBecf12109Ref {
|
|
251
|
+
getAttributes: () => GetAttributesResult;
|
|
252
|
+
exportImage: (options: ExportImageOptions) => Promise<Blob>;
|
|
253
|
+
exportDimension: () => Promise<Blob>;
|
|
254
|
+
}
|
|
255
|
+
interface CanvasBecf12109Ref extends DieLineBecf12109Ref {
|
|
256
|
+
resetView: () => void;
|
|
257
|
+
fitView: () => void;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
interface ModelBecf12109Props {
|
|
261
|
+
attributes: CartonBag12109Attributes;
|
|
262
|
+
unit?: "mm" | "cm" | "in";
|
|
263
|
+
mode?: ModelMode;
|
|
264
|
+
isShowDimensions?: boolean;
|
|
265
|
+
}
|
|
266
|
+
declare const MODEL_BECF_12109: react.ForwardRefExoticComponent<ModelBecf12109Props & react.RefAttributes<DieLineBecf12109Ref | CanvasBecf12109Ref>>;
|
|
267
|
+
|
|
180
268
|
type GripperSide = "top" | "bottom" | "left" | "right";
|
|
181
269
|
interface AutoLayoutPaper {
|
|
182
270
|
paperId: string;
|
|
@@ -192,11 +280,11 @@ interface AutoLayoutConfig {
|
|
|
192
280
|
papers: AutoLayoutPaper[];
|
|
193
281
|
model: AutoLayoutModel;
|
|
194
282
|
quantity: number;
|
|
195
|
-
layoutDistance
|
|
196
|
-
spacing
|
|
197
|
-
griper
|
|
198
|
-
colorbarHeight
|
|
199
|
-
isShowColorbar
|
|
283
|
+
layoutDistance?: number;
|
|
284
|
+
spacing?: number;
|
|
285
|
+
griper?: number;
|
|
286
|
+
colorbarHeight?: number;
|
|
287
|
+
isShowColorbar?: boolean;
|
|
200
288
|
}
|
|
201
289
|
interface AutoLayoutPlacement {
|
|
202
290
|
x: number;
|
|
@@ -226,6 +314,7 @@ interface AutoLayoutResult {
|
|
|
226
314
|
remainingNeeded: number;
|
|
227
315
|
recommendedPaperId: string | null;
|
|
228
316
|
}
|
|
317
|
+
type AutoLayoutAction = "EXPORT_SHEET" | "EXPORT_PDF" | "MODIFY_LAYOUT";
|
|
229
318
|
interface AutoLayoutPackedResult extends AutoLayoutPaperResult {
|
|
230
319
|
quantity: number;
|
|
231
320
|
dielineFile: File;
|
|
@@ -236,6 +325,8 @@ interface AutoLayoutProps {
|
|
|
236
325
|
config: AutoLayoutConfig | null;
|
|
237
326
|
onResult?: (result: AutoLayoutResult | null) => void;
|
|
238
327
|
onModifiedPapers?: (papers: AutoLayoutPaperResult[]) => void;
|
|
328
|
+
isShowSummary?: boolean;
|
|
329
|
+
isShowAction?: AutoLayoutAction[];
|
|
239
330
|
}
|
|
240
331
|
interface AutoLayoutRef {
|
|
241
332
|
getResult: () => AutoLayoutResult | null;
|
|
@@ -284,7 +375,7 @@ interface GripperProps {
|
|
|
284
375
|
declare function Gripper({ side, paperWidth, paperHeight, depth, fillColor }: GripperProps): react_jsx_runtime.JSX.Element;
|
|
285
376
|
declare function appendGripperToSvg(svg: SVGSVGElement, svgNs: string, side: GripperSide, paperWidth: number, paperHeight: number, depth: number, fillColor: string): void;
|
|
286
377
|
|
|
287
|
-
declare function calculateAutoLayout(
|
|
378
|
+
declare function calculateAutoLayout(rawConfig: AutoLayoutConfig): AutoLayoutResult;
|
|
288
379
|
|
|
289
380
|
declare const BECF_1010A_DEFAULT_ATTRIBUTES: {
|
|
290
381
|
length: number;
|
|
@@ -321,6 +412,20 @@ declare const BECF_11D01_DEFAULT_ATTRIBUTES: {
|
|
|
321
412
|
glueArea: number;
|
|
322
413
|
};
|
|
323
414
|
|
|
415
|
+
declare const BECF_12101_DEFAULT_ATTRIBUTES: {
|
|
416
|
+
length: number;
|
|
417
|
+
width: number;
|
|
418
|
+
height: number;
|
|
419
|
+
glueArea: number;
|
|
420
|
+
};
|
|
421
|
+
|
|
422
|
+
declare const BECF_12109_DEFAULT_ATTRIBUTES: {
|
|
423
|
+
length: number;
|
|
424
|
+
width: number;
|
|
425
|
+
height: number;
|
|
426
|
+
glueArea: number;
|
|
427
|
+
};
|
|
428
|
+
|
|
324
429
|
interface ModelThemeConfig {
|
|
325
430
|
colorBackground: string;
|
|
326
431
|
colorDieLine: string;
|
|
@@ -344,7 +449,8 @@ declare const AUTO_LAYOUT_THEME_CONFIG: AutoLayoutThemeConfig;
|
|
|
344
449
|
interface UltimatePackagingConfig {
|
|
345
450
|
modelTheme?: Partial<ModelThemeConfig>;
|
|
346
451
|
autoLayoutTheme?: Partial<AutoLayoutThemeConfig>;
|
|
452
|
+
fontDimensionSize?: number;
|
|
347
453
|
}
|
|
348
454
|
declare function configurePackaging(config: UltimatePackagingConfig): void;
|
|
349
455
|
|
|
350
|
-
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, Colorbar, type ColorbarProps, DIE_LINE_LAYOUT, type DieLineLayoutProps, type DieLineLayoutRef, type ExportImageOptions$
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ interface TuckEndBoxAttributes$2 {
|
|
|
10
10
|
tuckFlap: number;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
interface GetAttributesResult$
|
|
13
|
+
interface GetAttributesResult$5 {
|
|
14
14
|
modelId: string;
|
|
15
15
|
overallWidth: number;
|
|
16
16
|
overallHeight: number;
|
|
@@ -21,13 +21,13 @@ interface GetAttributesResult$3 {
|
|
|
21
21
|
dustFlap: number;
|
|
22
22
|
tuckFlap: number;
|
|
23
23
|
}
|
|
24
|
-
interface ExportImageOptions$
|
|
24
|
+
interface ExportImageOptions$5 {
|
|
25
25
|
isShowDimension: boolean;
|
|
26
26
|
originalSize: boolean;
|
|
27
27
|
}
|
|
28
28
|
interface DieLineBecf1010aRef {
|
|
29
|
-
getAttributes: () => GetAttributesResult$
|
|
30
|
-
exportImage: (options: ExportImageOptions$
|
|
29
|
+
getAttributes: () => GetAttributesResult$5;
|
|
30
|
+
exportImage: (options: ExportImageOptions$5) => Promise<Blob>;
|
|
31
31
|
exportDimension: () => Promise<Blob>;
|
|
32
32
|
}
|
|
33
33
|
interface CanvasBecf1010aRef extends DieLineBecf1010aRef {
|
|
@@ -62,7 +62,7 @@ interface TuckEndBoxAttributes$1 {
|
|
|
62
62
|
tuckFlap: number;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
interface GetAttributesResult$
|
|
65
|
+
interface GetAttributesResult$4 {
|
|
66
66
|
modelId: string;
|
|
67
67
|
overallWidth: number;
|
|
68
68
|
overallHeight: number;
|
|
@@ -73,13 +73,13 @@ interface GetAttributesResult$2 {
|
|
|
73
73
|
dustFlap: number;
|
|
74
74
|
tuckFlap: number;
|
|
75
75
|
}
|
|
76
|
-
interface ExportImageOptions$
|
|
76
|
+
interface ExportImageOptions$4 {
|
|
77
77
|
isShowDimension: boolean;
|
|
78
78
|
originalSize: boolean;
|
|
79
79
|
}
|
|
80
80
|
interface DieLineBecf1030aRef {
|
|
81
|
-
getAttributes: () => GetAttributesResult$
|
|
82
|
-
exportImage: (options: ExportImageOptions$
|
|
81
|
+
getAttributes: () => GetAttributesResult$4;
|
|
82
|
+
exportImage: (options: ExportImageOptions$4) => Promise<Blob>;
|
|
83
83
|
exportDimension: () => Promise<Blob>;
|
|
84
84
|
}
|
|
85
85
|
interface CanvasBecf1030aRef extends DieLineBecf1030aRef {
|
|
@@ -104,7 +104,7 @@ interface TuckEndBoxAttributes {
|
|
|
104
104
|
tuckFlap: number;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
interface GetAttributesResult$
|
|
107
|
+
interface GetAttributesResult$3 {
|
|
108
108
|
modelId: string;
|
|
109
109
|
overallWidth: number;
|
|
110
110
|
overallHeight: number;
|
|
@@ -115,13 +115,13 @@ interface GetAttributesResult$1 {
|
|
|
115
115
|
dustFlap: number;
|
|
116
116
|
tuckFlap: number;
|
|
117
117
|
}
|
|
118
|
-
interface ExportImageOptions$
|
|
118
|
+
interface ExportImageOptions$3 {
|
|
119
119
|
isShowDimension: boolean;
|
|
120
120
|
originalSize: boolean;
|
|
121
121
|
}
|
|
122
122
|
interface DieLineBecf1040aRef {
|
|
123
|
-
getAttributes: () => GetAttributesResult$
|
|
124
|
-
exportImage: (options: ExportImageOptions$
|
|
123
|
+
getAttributes: () => GetAttributesResult$3;
|
|
124
|
+
exportImage: (options: ExportImageOptions$3) => Promise<Blob>;
|
|
125
125
|
exportDimension: () => Promise<Blob>;
|
|
126
126
|
}
|
|
127
127
|
interface CanvasBecf1040aRef extends DieLineBecf1040aRef {
|
|
@@ -145,7 +145,7 @@ interface StandardBoxAttributes {
|
|
|
145
145
|
glueArea: number;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
interface GetAttributesResult {
|
|
148
|
+
interface GetAttributesResult$2 {
|
|
149
149
|
modelId: string;
|
|
150
150
|
overallWidth: number;
|
|
151
151
|
overallHeight: number;
|
|
@@ -155,13 +155,13 @@ interface GetAttributesResult {
|
|
|
155
155
|
flapHeight: number;
|
|
156
156
|
glueArea: number;
|
|
157
157
|
}
|
|
158
|
-
interface ExportImageOptions {
|
|
158
|
+
interface ExportImageOptions$2 {
|
|
159
159
|
isShowDimension: boolean;
|
|
160
160
|
originalSize: boolean;
|
|
161
161
|
}
|
|
162
162
|
interface DieLineBecf11d01Ref {
|
|
163
|
-
getAttributes: () => GetAttributesResult;
|
|
164
|
-
exportImage: (options: ExportImageOptions) => Promise<Blob>;
|
|
163
|
+
getAttributes: () => GetAttributesResult$2;
|
|
164
|
+
exportImage: (options: ExportImageOptions$2) => Promise<Blob>;
|
|
165
165
|
exportDimension: () => Promise<Blob>;
|
|
166
166
|
}
|
|
167
167
|
interface CanvasBecf11d01Ref extends DieLineBecf11d01Ref {
|
|
@@ -177,6 +177,94 @@ interface ModelBecf11d01Props {
|
|
|
177
177
|
}
|
|
178
178
|
declare const MODEL_BECF_11D01: react.ForwardRefExoticComponent<ModelBecf11d01Props & react.RefAttributes<DieLineBecf11d01Ref | CanvasBecf11d01Ref>>;
|
|
179
179
|
|
|
180
|
+
interface CartonBagAttributes {
|
|
181
|
+
length: number;
|
|
182
|
+
width: number;
|
|
183
|
+
height: number;
|
|
184
|
+
glueArea?: number;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
interface GetAttributesResult$1 {
|
|
188
|
+
modelId: string;
|
|
189
|
+
overallWidth: number;
|
|
190
|
+
overallHeight: number;
|
|
191
|
+
length: number;
|
|
192
|
+
width: number;
|
|
193
|
+
height: number;
|
|
194
|
+
glueArea: number;
|
|
195
|
+
d: number;
|
|
196
|
+
kulak: number;
|
|
197
|
+
dip: number;
|
|
198
|
+
ropeR: number;
|
|
199
|
+
ropeY: number;
|
|
200
|
+
ropeX: number;
|
|
201
|
+
}
|
|
202
|
+
interface ExportImageOptions$1 {
|
|
203
|
+
isShowDimension: boolean;
|
|
204
|
+
originalSize: boolean;
|
|
205
|
+
}
|
|
206
|
+
interface DieLineBecf12101Ref {
|
|
207
|
+
getAttributes: () => GetAttributesResult$1;
|
|
208
|
+
exportImage: (options: ExportImageOptions$1) => Promise<Blob>;
|
|
209
|
+
exportDimension: () => Promise<Blob>;
|
|
210
|
+
}
|
|
211
|
+
interface CanvasBecf12101Ref extends DieLineBecf12101Ref {
|
|
212
|
+
resetView: () => void;
|
|
213
|
+
fitView: () => void;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
interface ModelBecf12101Props {
|
|
217
|
+
attributes: CartonBagAttributes;
|
|
218
|
+
unit?: "mm" | "cm" | "in";
|
|
219
|
+
mode?: ModelMode;
|
|
220
|
+
isShowDimensions?: boolean;
|
|
221
|
+
}
|
|
222
|
+
declare const MODEL_BECF_12101: react.ForwardRefExoticComponent<ModelBecf12101Props & react.RefAttributes<DieLineBecf12101Ref | CanvasBecf12101Ref>>;
|
|
223
|
+
|
|
224
|
+
interface CartonBag12109Attributes {
|
|
225
|
+
length: number;
|
|
226
|
+
width: number;
|
|
227
|
+
height: number;
|
|
228
|
+
glueArea?: number;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
interface GetAttributesResult {
|
|
232
|
+
modelId: string;
|
|
233
|
+
overallWidth: number;
|
|
234
|
+
overallHeight: number;
|
|
235
|
+
length: number;
|
|
236
|
+
width: number;
|
|
237
|
+
height: number;
|
|
238
|
+
glueArea: number;
|
|
239
|
+
d: number;
|
|
240
|
+
kulak: number;
|
|
241
|
+
dip: number;
|
|
242
|
+
ropeR: number;
|
|
243
|
+
ropeY: number;
|
|
244
|
+
ropeX: number;
|
|
245
|
+
}
|
|
246
|
+
interface ExportImageOptions {
|
|
247
|
+
isShowDimension: boolean;
|
|
248
|
+
originalSize: boolean;
|
|
249
|
+
}
|
|
250
|
+
interface DieLineBecf12109Ref {
|
|
251
|
+
getAttributes: () => GetAttributesResult;
|
|
252
|
+
exportImage: (options: ExportImageOptions) => Promise<Blob>;
|
|
253
|
+
exportDimension: () => Promise<Blob>;
|
|
254
|
+
}
|
|
255
|
+
interface CanvasBecf12109Ref extends DieLineBecf12109Ref {
|
|
256
|
+
resetView: () => void;
|
|
257
|
+
fitView: () => void;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
interface ModelBecf12109Props {
|
|
261
|
+
attributes: CartonBag12109Attributes;
|
|
262
|
+
unit?: "mm" | "cm" | "in";
|
|
263
|
+
mode?: ModelMode;
|
|
264
|
+
isShowDimensions?: boolean;
|
|
265
|
+
}
|
|
266
|
+
declare const MODEL_BECF_12109: react.ForwardRefExoticComponent<ModelBecf12109Props & react.RefAttributes<DieLineBecf12109Ref | CanvasBecf12109Ref>>;
|
|
267
|
+
|
|
180
268
|
type GripperSide = "top" | "bottom" | "left" | "right";
|
|
181
269
|
interface AutoLayoutPaper {
|
|
182
270
|
paperId: string;
|
|
@@ -192,11 +280,11 @@ interface AutoLayoutConfig {
|
|
|
192
280
|
papers: AutoLayoutPaper[];
|
|
193
281
|
model: AutoLayoutModel;
|
|
194
282
|
quantity: number;
|
|
195
|
-
layoutDistance
|
|
196
|
-
spacing
|
|
197
|
-
griper
|
|
198
|
-
colorbarHeight
|
|
199
|
-
isShowColorbar
|
|
283
|
+
layoutDistance?: number;
|
|
284
|
+
spacing?: number;
|
|
285
|
+
griper?: number;
|
|
286
|
+
colorbarHeight?: number;
|
|
287
|
+
isShowColorbar?: boolean;
|
|
200
288
|
}
|
|
201
289
|
interface AutoLayoutPlacement {
|
|
202
290
|
x: number;
|
|
@@ -226,6 +314,7 @@ interface AutoLayoutResult {
|
|
|
226
314
|
remainingNeeded: number;
|
|
227
315
|
recommendedPaperId: string | null;
|
|
228
316
|
}
|
|
317
|
+
type AutoLayoutAction = "EXPORT_SHEET" | "EXPORT_PDF" | "MODIFY_LAYOUT";
|
|
229
318
|
interface AutoLayoutPackedResult extends AutoLayoutPaperResult {
|
|
230
319
|
quantity: number;
|
|
231
320
|
dielineFile: File;
|
|
@@ -236,6 +325,8 @@ interface AutoLayoutProps {
|
|
|
236
325
|
config: AutoLayoutConfig | null;
|
|
237
326
|
onResult?: (result: AutoLayoutResult | null) => void;
|
|
238
327
|
onModifiedPapers?: (papers: AutoLayoutPaperResult[]) => void;
|
|
328
|
+
isShowSummary?: boolean;
|
|
329
|
+
isShowAction?: AutoLayoutAction[];
|
|
239
330
|
}
|
|
240
331
|
interface AutoLayoutRef {
|
|
241
332
|
getResult: () => AutoLayoutResult | null;
|
|
@@ -284,7 +375,7 @@ interface GripperProps {
|
|
|
284
375
|
declare function Gripper({ side, paperWidth, paperHeight, depth, fillColor }: GripperProps): react_jsx_runtime.JSX.Element;
|
|
285
376
|
declare function appendGripperToSvg(svg: SVGSVGElement, svgNs: string, side: GripperSide, paperWidth: number, paperHeight: number, depth: number, fillColor: string): void;
|
|
286
377
|
|
|
287
|
-
declare function calculateAutoLayout(
|
|
378
|
+
declare function calculateAutoLayout(rawConfig: AutoLayoutConfig): AutoLayoutResult;
|
|
288
379
|
|
|
289
380
|
declare const BECF_1010A_DEFAULT_ATTRIBUTES: {
|
|
290
381
|
length: number;
|
|
@@ -321,6 +412,20 @@ declare const BECF_11D01_DEFAULT_ATTRIBUTES: {
|
|
|
321
412
|
glueArea: number;
|
|
322
413
|
};
|
|
323
414
|
|
|
415
|
+
declare const BECF_12101_DEFAULT_ATTRIBUTES: {
|
|
416
|
+
length: number;
|
|
417
|
+
width: number;
|
|
418
|
+
height: number;
|
|
419
|
+
glueArea: number;
|
|
420
|
+
};
|
|
421
|
+
|
|
422
|
+
declare const BECF_12109_DEFAULT_ATTRIBUTES: {
|
|
423
|
+
length: number;
|
|
424
|
+
width: number;
|
|
425
|
+
height: number;
|
|
426
|
+
glueArea: number;
|
|
427
|
+
};
|
|
428
|
+
|
|
324
429
|
interface ModelThemeConfig {
|
|
325
430
|
colorBackground: string;
|
|
326
431
|
colorDieLine: string;
|
|
@@ -344,7 +449,8 @@ declare const AUTO_LAYOUT_THEME_CONFIG: AutoLayoutThemeConfig;
|
|
|
344
449
|
interface UltimatePackagingConfig {
|
|
345
450
|
modelTheme?: Partial<ModelThemeConfig>;
|
|
346
451
|
autoLayoutTheme?: Partial<AutoLayoutThemeConfig>;
|
|
452
|
+
fontDimensionSize?: number;
|
|
347
453
|
}
|
|
348
454
|
declare function configurePackaging(config: UltimatePackagingConfig): void;
|
|
349
455
|
|
|
350
|
-
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, Colorbar, type ColorbarProps, DIE_LINE_LAYOUT, type DieLineLayoutProps, type DieLineLayoutRef, type ExportImageOptions$
|
|
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 };
|