@worm-vue3-print/canvas 1.2.0 → 1.2.2

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.
Files changed (74) hide show
  1. package/README.md +76 -17
  2. package/dist/canvas.css +1 -1
  3. package/dist/components/CanvasArea.vue.d.ts +19 -8
  4. package/dist/components/CanvasPaper.vue.d.ts +3 -3
  5. package/dist/components/DesignerToolbar.vue.d.ts +3 -0
  6. package/dist/components/ExpressionEditor.vue.d.ts +1 -1
  7. package/dist/components/FieldTreePanel.vue.d.ts +1 -1
  8. package/dist/components/LayerPanel.vue.d.ts +1 -1
  9. package/dist/components/LeftPanel.vue.d.ts +1 -1
  10. package/dist/components/PrintDesigner.vue.d.ts +3 -1
  11. package/dist/components/PropertyPanel.vue.d.ts +1 -1
  12. package/dist/components/WatermarkConfig.vue.d.ts +1 -1
  13. package/dist/components/elements/BarcodeElement.vue.d.ts +1 -1
  14. package/dist/components/elements/BaseElement.vue.d.ts +3 -3
  15. package/dist/components/elements/HtmlElement.vue.d.ts +1 -1
  16. package/dist/components/elements/ImageElement.vue.d.ts +1 -1
  17. package/dist/components/elements/LineElement.vue.d.ts +1 -1
  18. package/dist/components/elements/LongTextElement.vue.d.ts +1 -1
  19. package/dist/components/elements/PageNumberElement.vue.d.ts +1 -1
  20. package/dist/components/elements/QrcodeElement.vue.d.ts +1 -1
  21. package/dist/components/elements/ShapeElement.vue.d.ts +1 -1
  22. package/dist/components/elements/TableContextMenu.vue.d.ts +1 -1
  23. package/dist/components/elements/TableElement.vue.d.ts +1 -1
  24. package/dist/components/elements/TextElement.vue.d.ts +1 -1
  25. package/dist/components/property/AdvancedGroup.vue.d.ts +1 -1
  26. package/dist/components/property/AppearanceGroup.vue.d.ts +1 -1
  27. package/dist/components/property/BindingControl.vue.d.ts +1 -1
  28. package/dist/components/property/BorderBgGroup.vue.d.ts +1 -1
  29. package/dist/components/property/CodeGroup.vue.d.ts +1 -1
  30. package/dist/components/property/PaginationGroup.vue.d.ts +1 -1
  31. package/dist/components/property/PositionSizeGroup.vue.d.ts +1 -1
  32. package/dist/components/property/TableCellGroup.vue.d.ts +1 -1
  33. package/dist/components/property/TableRowGroup.vue.d.ts +1 -1
  34. package/dist/components/property/TableSettingsGroup.vue.d.ts +1 -1
  35. package/dist/composables/useAdsorb.d.ts +3 -7
  36. package/dist/composables/useAdsorbManager.d.ts +2 -2
  37. package/dist/composables/useClipboard.d.ts +15 -15
  38. package/dist/composables/useDesignerState.d.ts +44 -44
  39. package/dist/composables/useDrag.d.ts +1 -1
  40. package/dist/composables/useGuides.d.ts +1 -1
  41. package/dist/composables/useHistory.d.ts +1 -1
  42. package/dist/composables/useHostAdapter.d.ts +1 -1
  43. package/dist/composables/useSelection.d.ts +1 -1
  44. package/dist/composables/useTableSelection.d.ts +1 -1
  45. package/dist/index.cjs +42 -8
  46. package/dist/index.cjs.map +1 -1
  47. package/dist/index.d.ts +3 -4
  48. package/dist/index.js +3508 -4616
  49. package/dist/index.js.map +1 -1
  50. package/package.json +1 -1
  51. package/dist/composables/useAlign.d.ts +0 -5
  52. package/dist/composables/useBindingDisplay.d.ts +0 -11
  53. package/dist/composables/useGroup.d.ts +0 -7
  54. package/dist/composables/useKeyboard.d.ts +0 -22
  55. package/dist/composables/useResize.d.ts +0 -26
  56. package/dist/render/browser-code-renderer.d.ts +0 -3
  57. package/dist/render/browser-pagination.d.ts +0 -17
  58. package/dist/types.d.ts +0 -287
  59. package/dist/utils/binding-registry.d.ts +0 -8
  60. package/dist/utils/binding.d.ts +0 -16
  61. package/dist/utils/default-config.d.ts +0 -13
  62. package/dist/utils/demo-data.d.ts +0 -2
  63. package/dist/utils/element-factory.d.ts +0 -4
  64. package/dist/utils/engine.d.ts +0 -2
  65. package/dist/utils/expression-eval.d.ts +0 -30
  66. package/dist/utils/field-groups.d.ts +0 -21
  67. package/dist/utils/migrate.d.ts +0 -2
  68. package/dist/utils/preset-colors.d.ts +0 -2
  69. package/dist/utils/property-search.d.ts +0 -18
  70. package/dist/utils/ruler.d.ts +0 -29
  71. package/dist/utils/scale.d.ts +0 -13
  72. package/dist/utils/table-matrix.d.ts +0 -69
  73. package/dist/utils/units.d.ts +0 -6
  74. package/dist/utils/zone-layout.d.ts +0 -27
@@ -1,4 +1,4 @@
1
- import type { BindingDescriptor, PrintBusinessField } from '../../types';
1
+ import type { BindingDescriptor, PrintBusinessField } from '@worm-vue3-print/core/designer';
2
2
  type __VLS_Props = {
3
3
  descriptor: BindingDescriptor;
4
4
  modelValue: string;
@@ -1,4 +1,4 @@
1
- import type { RuntimeElement } from '../../types';
1
+ import type { RuntimeElement } from '@worm-vue3-print/core/designer';
2
2
  type __VLS_Props = {
3
3
  element: RuntimeElement;
4
4
  matchedKeys?: Set<string>;
@@ -1,4 +1,4 @@
1
- import type { RuntimeElement } from '../../types';
1
+ import type { RuntimeElement } from '@worm-vue3-print/core/designer';
2
2
  type __VLS_Props = {
3
3
  element: RuntimeElement;
4
4
  matchedKeys?: Set<string>;
@@ -1,4 +1,4 @@
1
- import type { RuntimeElement } from '../../types';
1
+ import type { RuntimeElement } from '@worm-vue3-print/core/designer';
2
2
  type __VLS_Props = {
3
3
  element: RuntimeElement;
4
4
  matchedKeys?: Set<string>;
@@ -1,4 +1,4 @@
1
- import type { RuntimeElement } from '../../types';
1
+ import type { RuntimeElement } from '@worm-vue3-print/core/designer';
2
2
  type __VLS_Props = {
3
3
  element: RuntimeElement;
4
4
  matchedKeys?: Set<string>;
@@ -1,4 +1,4 @@
1
- import type { RuntimeElement, TableSelection, PrintBusinessField } from '../../types';
1
+ import type { RuntimeElement, TableSelection, PrintBusinessField } from '@worm-vue3-print/core/designer';
2
2
  type __VLS_Props = {
3
3
  element: RuntimeElement;
4
4
  selection: TableSelection;
@@ -1,4 +1,4 @@
1
- import type { RuntimeElement, TableSelection } from '../../types';
1
+ import type { RuntimeElement, TableSelection } from '@worm-vue3-print/core/designer';
2
2
  type __VLS_Props = {
3
3
  element: RuntimeElement;
4
4
  selection: TableSelection;
@@ -1,4 +1,4 @@
1
- import type { RuntimeElement, PrintBusinessField } from '../../types';
1
+ import type { RuntimeElement, PrintBusinessField } from '@worm-vue3-print/core/designer';
2
2
  type __VLS_Props = {
3
3
  element: RuntimeElement;
4
4
  fields: PrintBusinessField[];
@@ -1,12 +1,8 @@
1
1
  import { type Ref } from 'vue';
2
- import type { ElementRect, AlignLine, AdsorbResult } from '../types';
3
- export interface AdsorbConfig {
4
- adsorbMin?: number;
5
- adsorbLineMin?: number;
6
- showAdsorbLine?: boolean;
7
- }
2
+ import { type AdsorbConfig, type ElementRect, type AlignLine, type AdsorbResult } from '@worm-vue3-print/core/designer';
3
+ export type { AdsorbConfig };
8
4
  export declare function useAdsorb(config?: AdsorbConfig): {
9
- check: (movingRect: ElementRect, others: ElementRect[], guideLines?: {
5
+ check: (movingRect: ElementRect, others: ElementRect[], guides?: {
10
6
  vertical: number[];
11
7
  horizontal: number[];
12
8
  }) => AdsorbResult;
@@ -1,4 +1,4 @@
1
- import type { RuntimeElement, ElementRect, AdsorbResult } from '../types';
1
+ import type { RuntimeElement, ElementRect, AdsorbResult } from '@worm-vue3-print/core/designer';
2
2
  import { type AdsorbConfig } from './useAdsorb';
3
3
  export interface AdsorbManagerOptions {
4
4
  getElements: () => RuntimeElement[];
@@ -17,7 +17,7 @@ export interface AdsorbManagerOptions {
17
17
  export declare function useAdsorbManager(options: AdsorbManagerOptions): {
18
18
  requestAdsorb: (movingRect: ElementRect) => AdsorbResult;
19
19
  clearGuides: () => void;
20
- guideLines: import("vue").Ref<import("..").AlignLine[], import("..").AlignLine[]>;
20
+ guideLines: import("vue").Ref<import("@worm-vue3-print/core/designer").AlignLine[], import("@worm-vue3-print/core/designer").AlignLine[]>;
21
21
  paperSize: import("vue").Ref<{
22
22
  width: number;
23
23
  height: number;
@@ -1,8 +1,8 @@
1
- import type { RuntimeElement, PrintElementData } from '../types';
1
+ import type { RuntimeElement, PrintElementData } from '@worm-vue3-print/core/designer';
2
2
  export declare function useClipboard(): {
3
3
  clipboard: import("vue").Ref<{
4
4
  id?: string | undefined;
5
- type?: import("..").ElementType | undefined;
5
+ type?: import("@worm-vue3-print/core/designer").ElementType | undefined;
6
6
  options: {
7
7
  left: number;
8
8
  top: number;
@@ -15,8 +15,8 @@ export declare function useClipboard(): {
15
15
  fontFamily?: string | undefined;
16
16
  color?: string | undefined;
17
17
  backgroundColor?: string | undefined;
18
- textAlign?: import("..").TextAlign | undefined;
19
- verticalAlign?: import("..").VerticalAlign | undefined;
18
+ textAlign?: import("@worm-vue3-print/core/designer").TextAlign | undefined;
19
+ verticalAlign?: import("@worm-vue3-print/core/designer").VerticalAlign | undefined;
20
20
  lineHeight?: number | undefined;
21
21
  letterSpacing?: number | undefined;
22
22
  fixed?: boolean | undefined;
@@ -53,20 +53,20 @@ export declare function useClipboard(): {
53
53
  tableMode?: "dynamic" | "static" | undefined;
54
54
  tableRows?: {
55
55
  id: string;
56
- type: import("..").TableRowType;
56
+ type: import("@worm-vue3-print/core/designer").TableRowType;
57
57
  height: number;
58
58
  repeatOnPage?: boolean | undefined;
59
59
  cells: {
60
60
  id: string;
61
61
  formatter?: string | undefined;
62
- cellType?: import("..").TableCellType | undefined;
62
+ cellType?: import("@worm-vue3-print/core/designer").TableCellType | undefined;
63
63
  barcodeType?: string | undefined;
64
64
  qrCodeLevel?: string | undefined;
65
65
  showBarcodeText?: boolean | undefined;
66
66
  rowspan?: number | undefined;
67
67
  colspan?: number | undefined;
68
68
  merged?: boolean | undefined;
69
- align?: import("..").TextAlign | undefined;
69
+ align?: import("@worm-vue3-print/core/designer").TextAlign | undefined;
70
70
  valign?: "top" | "middle" | "bottom" | undefined;
71
71
  fontFamily?: string | undefined;
72
72
  fontSize?: number | undefined;
@@ -120,14 +120,14 @@ export declare function useClipboard(): {
120
120
  };
121
121
  printElementType: {
122
122
  title?: string | undefined;
123
- type: import("..").ElementType;
123
+ type: import("@worm-vue3-print/core/designer").ElementType;
124
124
  editable?: boolean | undefined;
125
125
  formatter?: string | undefined;
126
126
  styler?: string | undefined;
127
127
  };
128
128
  }[] | null, PrintElementData[] | {
129
129
  id?: string | undefined;
130
- type?: import("..").ElementType | undefined;
130
+ type?: import("@worm-vue3-print/core/designer").ElementType | undefined;
131
131
  options: {
132
132
  left: number;
133
133
  top: number;
@@ -140,8 +140,8 @@ export declare function useClipboard(): {
140
140
  fontFamily?: string | undefined;
141
141
  color?: string | undefined;
142
142
  backgroundColor?: string | undefined;
143
- textAlign?: import("..").TextAlign | undefined;
144
- verticalAlign?: import("..").VerticalAlign | undefined;
143
+ textAlign?: import("@worm-vue3-print/core/designer").TextAlign | undefined;
144
+ verticalAlign?: import("@worm-vue3-print/core/designer").VerticalAlign | undefined;
145
145
  lineHeight?: number | undefined;
146
146
  letterSpacing?: number | undefined;
147
147
  fixed?: boolean | undefined;
@@ -178,20 +178,20 @@ export declare function useClipboard(): {
178
178
  tableMode?: "dynamic" | "static" | undefined;
179
179
  tableRows?: {
180
180
  id: string;
181
- type: import("..").TableRowType;
181
+ type: import("@worm-vue3-print/core/designer").TableRowType;
182
182
  height: number;
183
183
  repeatOnPage?: boolean | undefined;
184
184
  cells: {
185
185
  id: string;
186
186
  formatter?: string | undefined;
187
- cellType?: import("..").TableCellType | undefined;
187
+ cellType?: import("@worm-vue3-print/core/designer").TableCellType | undefined;
188
188
  barcodeType?: string | undefined;
189
189
  qrCodeLevel?: string | undefined;
190
190
  showBarcodeText?: boolean | undefined;
191
191
  rowspan?: number | undefined;
192
192
  colspan?: number | undefined;
193
193
  merged?: boolean | undefined;
194
- align?: import("..").TextAlign | undefined;
194
+ align?: import("@worm-vue3-print/core/designer").TextAlign | undefined;
195
195
  valign?: "top" | "middle" | "bottom" | undefined;
196
196
  fontFamily?: string | undefined;
197
197
  fontSize?: number | undefined;
@@ -245,7 +245,7 @@ export declare function useClipboard(): {
245
245
  };
246
246
  printElementType: {
247
247
  title?: string | undefined;
248
- type: import("..").ElementType;
248
+ type: import("@worm-vue3-print/core/designer").ElementType;
249
249
  editable?: boolean | undefined;
250
250
  formatter?: string | undefined;
251
251
  styler?: string | undefined;
@@ -1,5 +1,5 @@
1
- import type { RuntimeElement, ElementType, PrintBusinessField, TemplateData, TableSelection } from '../types';
2
- import { type AlignMode } from './useAlign';
1
+ import type { RuntimeElement, ElementType, PrintBusinessField, TemplateData, TableSelection } from '@worm-vue3-print/core/designer';
2
+ import { type AlignMode } from '@worm-vue3-print/core/designer';
3
3
  export interface DesignerStateOptions {
4
4
  initialTemplate?: TemplateData;
5
5
  initialElements?: RuntimeElement[];
@@ -16,7 +16,7 @@ export declare function useDesignerState(options?: DesignerStateOptions): {
16
16
  snapToGrid: import("vue").Ref<boolean, boolean>;
17
17
  showTableGhostBorder: import("vue").Ref<boolean, boolean>;
18
18
  templateData: import("vue").Ref<{
19
- paperSize: import("..").PaperSize;
19
+ paperSize: import("@worm-vue3-print/core/designer").PaperSize;
20
20
  orientation: "portrait" | "landscape";
21
21
  margins: {
22
22
  top: number;
@@ -41,8 +41,8 @@ export declare function useDesignerState(options?: DesignerStateOptions): {
41
41
  fontFamily?: string | undefined;
42
42
  color?: string | undefined;
43
43
  backgroundColor?: string | undefined;
44
- textAlign?: import("..").TextAlign | undefined;
45
- verticalAlign?: import("..").VerticalAlign | undefined;
44
+ textAlign?: import("@worm-vue3-print/core/designer").TextAlign | undefined;
45
+ verticalAlign?: import("@worm-vue3-print/core/designer").VerticalAlign | undefined;
46
46
  lineHeight?: number | undefined;
47
47
  letterSpacing?: number | undefined;
48
48
  fixed?: boolean | undefined;
@@ -79,20 +79,20 @@ export declare function useDesignerState(options?: DesignerStateOptions): {
79
79
  tableMode?: "dynamic" | "static" | undefined;
80
80
  tableRows?: {
81
81
  id: string;
82
- type: import("..").TableRowType;
82
+ type: import("@worm-vue3-print/core/designer").TableRowType;
83
83
  height: number;
84
84
  repeatOnPage?: boolean | undefined;
85
85
  cells: {
86
86
  id: string;
87
87
  formatter?: string | undefined;
88
- cellType?: import("..").TableCellType | undefined;
88
+ cellType?: import("@worm-vue3-print/core/designer").TableCellType | undefined;
89
89
  barcodeType?: string | undefined;
90
90
  qrCodeLevel?: string | undefined;
91
91
  showBarcodeText?: boolean | undefined;
92
92
  rowspan?: number | undefined;
93
93
  colspan?: number | undefined;
94
94
  merged?: boolean | undefined;
95
- align?: import("..").TextAlign | undefined;
95
+ align?: import("@worm-vue3-print/core/designer").TextAlign | undefined;
96
96
  valign?: "top" | "middle" | "bottom" | undefined;
97
97
  fontFamily?: string | undefined;
98
98
  fontSize?: number | undefined;
@@ -170,8 +170,8 @@ export declare function useDesignerState(options?: DesignerStateOptions): {
170
170
  fontFamily?: string | undefined;
171
171
  color?: string | undefined;
172
172
  backgroundColor?: string | undefined;
173
- textAlign?: import("..").TextAlign | undefined;
174
- verticalAlign?: import("..").VerticalAlign | undefined;
173
+ textAlign?: import("@worm-vue3-print/core/designer").TextAlign | undefined;
174
+ verticalAlign?: import("@worm-vue3-print/core/designer").VerticalAlign | undefined;
175
175
  lineHeight?: number | undefined;
176
176
  letterSpacing?: number | undefined;
177
177
  fixed?: boolean | undefined;
@@ -208,20 +208,20 @@ export declare function useDesignerState(options?: DesignerStateOptions): {
208
208
  tableMode?: "dynamic" | "static" | undefined;
209
209
  tableRows?: {
210
210
  id: string;
211
- type: import("..").TableRowType;
211
+ type: import("@worm-vue3-print/core/designer").TableRowType;
212
212
  height: number;
213
213
  repeatOnPage?: boolean | undefined;
214
214
  cells: {
215
215
  id: string;
216
216
  formatter?: string | undefined;
217
- cellType?: import("..").TableCellType | undefined;
217
+ cellType?: import("@worm-vue3-print/core/designer").TableCellType | undefined;
218
218
  barcodeType?: string | undefined;
219
219
  qrCodeLevel?: string | undefined;
220
220
  showBarcodeText?: boolean | undefined;
221
221
  rowspan?: number | undefined;
222
222
  colspan?: number | undefined;
223
223
  merged?: boolean | undefined;
224
- align?: import("..").TextAlign | undefined;
224
+ align?: import("@worm-vue3-print/core/designer").TextAlign | undefined;
225
225
  valign?: "top" | "middle" | "bottom" | undefined;
226
226
  fontFamily?: string | undefined;
227
227
  fontSize?: number | undefined;
@@ -299,8 +299,8 @@ export declare function useDesignerState(options?: DesignerStateOptions): {
299
299
  fontFamily?: string | undefined;
300
300
  color?: string | undefined;
301
301
  backgroundColor?: string | undefined;
302
- textAlign?: import("..").TextAlign | undefined;
303
- verticalAlign?: import("..").VerticalAlign | undefined;
302
+ textAlign?: import("@worm-vue3-print/core/designer").TextAlign | undefined;
303
+ verticalAlign?: import("@worm-vue3-print/core/designer").VerticalAlign | undefined;
304
304
  lineHeight?: number | undefined;
305
305
  letterSpacing?: number | undefined;
306
306
  fixed?: boolean | undefined;
@@ -337,20 +337,20 @@ export declare function useDesignerState(options?: DesignerStateOptions): {
337
337
  tableMode?: "dynamic" | "static" | undefined;
338
338
  tableRows?: {
339
339
  id: string;
340
- type: import("..").TableRowType;
340
+ type: import("@worm-vue3-print/core/designer").TableRowType;
341
341
  height: number;
342
342
  repeatOnPage?: boolean | undefined;
343
343
  cells: {
344
344
  id: string;
345
345
  formatter?: string | undefined;
346
- cellType?: import("..").TableCellType | undefined;
346
+ cellType?: import("@worm-vue3-print/core/designer").TableCellType | undefined;
347
347
  barcodeType?: string | undefined;
348
348
  qrCodeLevel?: string | undefined;
349
349
  showBarcodeText?: boolean | undefined;
350
350
  rowspan?: number | undefined;
351
351
  colspan?: number | undefined;
352
352
  merged?: boolean | undefined;
353
- align?: import("..").TextAlign | undefined;
353
+ align?: import("@worm-vue3-print/core/designer").TextAlign | undefined;
354
354
  valign?: "top" | "middle" | "bottom" | undefined;
355
355
  fontFamily?: string | undefined;
356
356
  fontSize?: number | undefined;
@@ -426,8 +426,8 @@ export declare function useDesignerState(options?: DesignerStateOptions): {
426
426
  fontFamily?: string | undefined;
427
427
  color?: string | undefined;
428
428
  backgroundColor?: string | undefined;
429
- textAlign?: import("..").TextAlign | undefined;
430
- verticalAlign?: import("..").VerticalAlign | undefined;
429
+ textAlign?: import("@worm-vue3-print/core/designer").TextAlign | undefined;
430
+ verticalAlign?: import("@worm-vue3-print/core/designer").VerticalAlign | undefined;
431
431
  lineHeight?: number | undefined;
432
432
  letterSpacing?: number | undefined;
433
433
  fixed?: boolean | undefined;
@@ -464,20 +464,20 @@ export declare function useDesignerState(options?: DesignerStateOptions): {
464
464
  tableMode?: "dynamic" | "static" | undefined;
465
465
  tableRows?: {
466
466
  id: string;
467
- type: import("..").TableRowType;
467
+ type: import("@worm-vue3-print/core/designer").TableRowType;
468
468
  height: number;
469
469
  repeatOnPage?: boolean | undefined;
470
470
  cells: {
471
471
  id: string;
472
472
  formatter?: string | undefined;
473
- cellType?: import("..").TableCellType | undefined;
473
+ cellType?: import("@worm-vue3-print/core/designer").TableCellType | undefined;
474
474
  barcodeType?: string | undefined;
475
475
  qrCodeLevel?: string | undefined;
476
476
  showBarcodeText?: boolean | undefined;
477
477
  rowspan?: number | undefined;
478
478
  colspan?: number | undefined;
479
479
  merged?: boolean | undefined;
480
- align?: import("..").TextAlign | undefined;
480
+ align?: import("@worm-vue3-print/core/designer").TextAlign | undefined;
481
481
  valign?: "top" | "middle" | "bottom" | undefined;
482
482
  fontFamily?: string | undefined;
483
483
  fontSize?: number | undefined;
@@ -559,7 +559,7 @@ export declare function useDesignerState(options?: DesignerStateOptions): {
559
559
  color?: string | undefined;
560
560
  }[] | undefined;
561
561
  }, TemplateData | {
562
- paperSize: import("..").PaperSize;
562
+ paperSize: import("@worm-vue3-print/core/designer").PaperSize;
563
563
  orientation: "portrait" | "landscape";
564
564
  margins: {
565
565
  top: number;
@@ -584,8 +584,8 @@ export declare function useDesignerState(options?: DesignerStateOptions): {
584
584
  fontFamily?: string | undefined;
585
585
  color?: string | undefined;
586
586
  backgroundColor?: string | undefined;
587
- textAlign?: import("..").TextAlign | undefined;
588
- verticalAlign?: import("..").VerticalAlign | undefined;
587
+ textAlign?: import("@worm-vue3-print/core/designer").TextAlign | undefined;
588
+ verticalAlign?: import("@worm-vue3-print/core/designer").VerticalAlign | undefined;
589
589
  lineHeight?: number | undefined;
590
590
  letterSpacing?: number | undefined;
591
591
  fixed?: boolean | undefined;
@@ -622,20 +622,20 @@ export declare function useDesignerState(options?: DesignerStateOptions): {
622
622
  tableMode?: "dynamic" | "static" | undefined;
623
623
  tableRows?: {
624
624
  id: string;
625
- type: import("..").TableRowType;
625
+ type: import("@worm-vue3-print/core/designer").TableRowType;
626
626
  height: number;
627
627
  repeatOnPage?: boolean | undefined;
628
628
  cells: {
629
629
  id: string;
630
630
  formatter?: string | undefined;
631
- cellType?: import("..").TableCellType | undefined;
631
+ cellType?: import("@worm-vue3-print/core/designer").TableCellType | undefined;
632
632
  barcodeType?: string | undefined;
633
633
  qrCodeLevel?: string | undefined;
634
634
  showBarcodeText?: boolean | undefined;
635
635
  rowspan?: number | undefined;
636
636
  colspan?: number | undefined;
637
637
  merged?: boolean | undefined;
638
- align?: import("..").TextAlign | undefined;
638
+ align?: import("@worm-vue3-print/core/designer").TextAlign | undefined;
639
639
  valign?: "top" | "middle" | "bottom" | undefined;
640
640
  fontFamily?: string | undefined;
641
641
  fontSize?: number | undefined;
@@ -713,8 +713,8 @@ export declare function useDesignerState(options?: DesignerStateOptions): {
713
713
  fontFamily?: string | undefined;
714
714
  color?: string | undefined;
715
715
  backgroundColor?: string | undefined;
716
- textAlign?: import("..").TextAlign | undefined;
717
- verticalAlign?: import("..").VerticalAlign | undefined;
716
+ textAlign?: import("@worm-vue3-print/core/designer").TextAlign | undefined;
717
+ verticalAlign?: import("@worm-vue3-print/core/designer").VerticalAlign | undefined;
718
718
  lineHeight?: number | undefined;
719
719
  letterSpacing?: number | undefined;
720
720
  fixed?: boolean | undefined;
@@ -751,20 +751,20 @@ export declare function useDesignerState(options?: DesignerStateOptions): {
751
751
  tableMode?: "dynamic" | "static" | undefined;
752
752
  tableRows?: {
753
753
  id: string;
754
- type: import("..").TableRowType;
754
+ type: import("@worm-vue3-print/core/designer").TableRowType;
755
755
  height: number;
756
756
  repeatOnPage?: boolean | undefined;
757
757
  cells: {
758
758
  id: string;
759
759
  formatter?: string | undefined;
760
- cellType?: import("..").TableCellType | undefined;
760
+ cellType?: import("@worm-vue3-print/core/designer").TableCellType | undefined;
761
761
  barcodeType?: string | undefined;
762
762
  qrCodeLevel?: string | undefined;
763
763
  showBarcodeText?: boolean | undefined;
764
764
  rowspan?: number | undefined;
765
765
  colspan?: number | undefined;
766
766
  merged?: boolean | undefined;
767
- align?: import("..").TextAlign | undefined;
767
+ align?: import("@worm-vue3-print/core/designer").TextAlign | undefined;
768
768
  valign?: "top" | "middle" | "bottom" | undefined;
769
769
  fontFamily?: string | undefined;
770
770
  fontSize?: number | undefined;
@@ -842,8 +842,8 @@ export declare function useDesignerState(options?: DesignerStateOptions): {
842
842
  fontFamily?: string | undefined;
843
843
  color?: string | undefined;
844
844
  backgroundColor?: string | undefined;
845
- textAlign?: import("..").TextAlign | undefined;
846
- verticalAlign?: import("..").VerticalAlign | undefined;
845
+ textAlign?: import("@worm-vue3-print/core/designer").TextAlign | undefined;
846
+ verticalAlign?: import("@worm-vue3-print/core/designer").VerticalAlign | undefined;
847
847
  lineHeight?: number | undefined;
848
848
  letterSpacing?: number | undefined;
849
849
  fixed?: boolean | undefined;
@@ -880,20 +880,20 @@ export declare function useDesignerState(options?: DesignerStateOptions): {
880
880
  tableMode?: "dynamic" | "static" | undefined;
881
881
  tableRows?: {
882
882
  id: string;
883
- type: import("..").TableRowType;
883
+ type: import("@worm-vue3-print/core/designer").TableRowType;
884
884
  height: number;
885
885
  repeatOnPage?: boolean | undefined;
886
886
  cells: {
887
887
  id: string;
888
888
  formatter?: string | undefined;
889
- cellType?: import("..").TableCellType | undefined;
889
+ cellType?: import("@worm-vue3-print/core/designer").TableCellType | undefined;
890
890
  barcodeType?: string | undefined;
891
891
  qrCodeLevel?: string | undefined;
892
892
  showBarcodeText?: boolean | undefined;
893
893
  rowspan?: number | undefined;
894
894
  colspan?: number | undefined;
895
895
  merged?: boolean | undefined;
896
- align?: import("..").TextAlign | undefined;
896
+ align?: import("@worm-vue3-print/core/designer").TextAlign | undefined;
897
897
  valign?: "top" | "middle" | "bottom" | undefined;
898
898
  fontFamily?: string | undefined;
899
899
  fontSize?: number | undefined;
@@ -969,8 +969,8 @@ export declare function useDesignerState(options?: DesignerStateOptions): {
969
969
  fontFamily?: string | undefined;
970
970
  color?: string | undefined;
971
971
  backgroundColor?: string | undefined;
972
- textAlign?: import("..").TextAlign | undefined;
973
- verticalAlign?: import("..").VerticalAlign | undefined;
972
+ textAlign?: import("@worm-vue3-print/core/designer").TextAlign | undefined;
973
+ verticalAlign?: import("@worm-vue3-print/core/designer").VerticalAlign | undefined;
974
974
  lineHeight?: number | undefined;
975
975
  letterSpacing?: number | undefined;
976
976
  fixed?: boolean | undefined;
@@ -1007,20 +1007,20 @@ export declare function useDesignerState(options?: DesignerStateOptions): {
1007
1007
  tableMode?: "dynamic" | "static" | undefined;
1008
1008
  tableRows?: {
1009
1009
  id: string;
1010
- type: import("..").TableRowType;
1010
+ type: import("@worm-vue3-print/core/designer").TableRowType;
1011
1011
  height: number;
1012
1012
  repeatOnPage?: boolean | undefined;
1013
1013
  cells: {
1014
1014
  id: string;
1015
1015
  formatter?: string | undefined;
1016
- cellType?: import("..").TableCellType | undefined;
1016
+ cellType?: import("@worm-vue3-print/core/designer").TableCellType | undefined;
1017
1017
  barcodeType?: string | undefined;
1018
1018
  qrCodeLevel?: string | undefined;
1019
1019
  showBarcodeText?: boolean | undefined;
1020
1020
  rowspan?: number | undefined;
1021
1021
  colspan?: number | undefined;
1022
1022
  merged?: boolean | undefined;
1023
- align?: import("..").TextAlign | undefined;
1023
+ align?: import("@worm-vue3-print/core/designer").TextAlign | undefined;
1024
1024
  valign?: "top" | "middle" | "bottom" | undefined;
1025
1025
  fontFamily?: string | undefined;
1026
1026
  fontSize?: number | undefined;
@@ -1,4 +1,4 @@
1
- import type { AdsorbResult } from '../types';
1
+ import type { AdsorbResult } from '@worm-vue3-print/core/designer';
2
2
  export interface DragOptions {
3
3
  axis?: 'x' | 'y';
4
4
  disabled?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { type Ref } from 'vue';
2
- import type { TemplateData, AlignLine } from '../types';
2
+ import type { TemplateData, AlignLine } from '@worm-vue3-print/core/designer';
3
3
  export declare function useGuides(templateData: Ref<TemplateData>, recordHistory: () => void): {
4
4
  guides: import("vue").ComputedRef<AlignLine[]>;
5
5
  addGuide: (type: "vertical" | "horizontal", position: number) => void;
@@ -1,4 +1,4 @@
1
- import type { TemplateData } from '../types';
1
+ import type { TemplateData } from '@worm-vue3-print/core/designer';
2
2
  export interface HistoryState {
3
3
  elements: any[];
4
4
  templateData?: TemplateData;
@@ -1,4 +1,4 @@
1
1
  import type { ComputedRef, InjectionKey } from 'vue';
2
- import type { UploadImageFn } from '../types';
2
+ import type { UploadImageFn } from '@worm-vue3-print/core/designer';
3
3
  /** 图片上传适配器:PrintDesigner provide,ImageContentUpload inject */
4
4
  export declare const UPLOAD_IMAGE_KEY: InjectionKey<ComputedRef<UploadImageFn | undefined>>;
@@ -1,5 +1,5 @@
1
1
  import { type InjectionKey, type Ref } from 'vue';
2
- import type { RuntimeElement } from '../types';
2
+ import type { RuntimeElement } from '@worm-vue3-print/core/designer';
3
3
  /** 通过 provide/inject 共享选中状态,每个 BaseElement 精确追踪自身是否被选中 */
4
4
  export declare const SELECTED_IDS_KEY: InjectionKey<Ref<Set<string>>>;
5
5
  /** 框选实时预选状态:拖拽过程中高亮即将选中的元素,提交后转为正式选中 */
@@ -1,5 +1,5 @@
1
1
  import type { InjectionKey, Ref } from 'vue';
2
- import type { TableSelection } from '../types';
2
+ import type { TableSelection } from '@worm-vue3-print/core/designer';
3
3
  export interface TableEditContext {
4
4
  tableSelection: Ref<TableSelection | null>;
5
5
  setTableSelection: (s: TableSelection | null) => void;