@worm-vue3-print/canvas 1.3.6 → 1.3.8
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/canvas.css +1 -1
- package/dist/components/CanvasArea.vue.d.ts +1 -1
- package/dist/components/CanvasPaper.vue.d.ts +1 -1
- package/dist/components/DesignerToolbar.vue.d.ts +1 -1
- package/dist/components/ExpressionEditor.vue.d.ts +1 -1
- package/dist/components/FieldTreePanel.vue.d.ts +1 -1
- package/dist/components/FormatToolbar.vue.d.ts +1 -1
- package/dist/components/HelpButton.vue.d.ts +1 -1
- package/dist/components/HelpModal.vue.d.ts +1 -1
- package/dist/components/LayerPanel.vue.d.ts +1 -1
- package/dist/components/LeftPanel.vue.d.ts +1 -1
- package/dist/components/PageTabs.vue.d.ts +1 -1
- package/dist/components/PresetColorPicker.vue.d.ts +1 -1
- package/dist/components/PrintDesigner.vue.d.ts +1 -1
- package/dist/components/PrintHtmlPreview.vue.d.ts +1 -1
- package/dist/components/PropertyPanel.vue.d.ts +1 -1
- package/dist/components/Ruler.vue.d.ts +1 -1
- package/dist/components/StatusBar.vue.d.ts +1 -1
- package/dist/components/ToolbarDropdown.vue.d.ts +4 -1
- package/dist/components/ToolbarMore.vue.d.ts +9 -0
- package/dist/components/WatermarkConfig.vue.d.ts +1 -1
- package/dist/components/elements/BarcodeElement.vue.d.ts +1 -1
- package/dist/components/elements/BaseElement.vue.d.ts +1 -1
- package/dist/components/elements/CellBarcode.vue.d.ts +3 -1
- package/dist/components/elements/CellImage.vue.d.ts +6 -1
- package/dist/components/elements/HtmlElement.vue.d.ts +1 -1
- package/dist/components/elements/ImageElement.vue.d.ts +1 -1
- package/dist/components/elements/LineElement.vue.d.ts +1 -1
- package/dist/components/elements/LongTextElement.vue.d.ts +1 -1
- package/dist/components/elements/PageNumberElement.vue.d.ts +1 -1
- package/dist/components/elements/QrcodeElement.vue.d.ts +1 -1
- package/dist/components/elements/ShapeElement.vue.d.ts +1 -1
- package/dist/components/elements/TableContextMenu.vue.d.ts +1 -1
- package/dist/components/elements/TableElement.vue.d.ts +1 -1
- package/dist/components/elements/TextElement.vue.d.ts +1 -1
- package/dist/components/property/AdvancedGroup.vue.d.ts +1 -1
- package/dist/components/property/AppearanceGroup.vue.d.ts +1 -1
- package/dist/components/property/BindingControl.vue.d.ts +1 -1
- package/dist/components/property/BorderBgGroup.vue.d.ts +1 -1
- package/dist/components/property/CodeGroup.vue.d.ts +1 -1
- package/dist/components/property/CropAnchorField.vue.d.ts +35 -0
- package/dist/components/property/DesignBackgroundConfig.vue.d.ts +1 -1
- package/dist/components/property/FontSelect.vue.d.ts +1 -1
- package/dist/components/property/ImageContentUpload.vue.d.ts +1 -1
- package/dist/components/property/PaginationGroup.vue.d.ts +1 -1
- package/dist/components/property/PositionSizeGroup.vue.d.ts +1 -1
- package/dist/components/property/PropertyGroup.vue.d.ts +1 -1
- package/dist/components/property/PropertySearch.vue.d.ts +1 -1
- package/dist/components/property/StepperInput.vue.d.ts +1 -1
- package/dist/components/property/TableCellGroup.vue.d.ts +1 -1
- package/dist/components/property/TableRowGroup.vue.d.ts +1 -1
- package/dist/components/property/TableSettingsGroup.vue.d.ts +1 -1
- package/dist/components/property/TilingConfig.vue.d.ts +1 -1
- package/dist/composables/useAdsorb.d.ts +1 -1
- package/dist/composables/useAdsorbManager.d.ts +1 -1
- package/dist/composables/useClipboard.d.ts +13 -5
- package/dist/composables/useDesignerState.d.ts +73 -25
- package/dist/composables/useDocumentFontFace.d.ts +1 -1
- package/dist/composables/useDrag.d.ts +1 -1
- package/dist/composables/useFontCatalog.d.ts +1 -1
- package/dist/composables/useFormatPainter.d.ts +1 -1
- package/dist/composables/useFormatToolbar.d.ts +1 -1
- package/dist/composables/useGuides.d.ts +1 -1
- package/dist/composables/useHistory.d.ts +1 -1
- package/dist/composables/useHostAdapter.d.ts +1 -1
- package/dist/composables/useSelection.d.ts +1 -1
- package/dist/composables/useShrinkFit.d.ts +1 -1
- package/dist/composables/useStudioChrome.d.ts +1 -1
- package/dist/composables/useTableSelection.d.ts +1 -1
- package/dist/composables/useToolbarOverflow.d.ts +51 -0
- package/dist/help-content/changelog.d.ts +1 -1
- package/dist/help-content/faq.d.ts +1 -1
- package/dist/help-content/features.d.ts +1 -1
- package/dist/help-content/getting-started.d.ts +1 -1
- package/dist/help-content/index.d.ts +1 -1
- package/dist/help-content/shortcuts.d.ts +1 -1
- package/dist/index.cjs +55 -8
- package/dist/index.d.ts +3 -1
- package/dist/index.js +5872 -5211
- package/package.json +2 -2
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @worm-vue3-print/canvas v1.3.8
|
|
3
|
+
* Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
|
|
4
|
+
* SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
|
|
5
|
+
* SPDX-License-Identifier: MIT
|
|
6
|
+
*/
|
|
7
|
+
type __VLS_Props = {
|
|
8
|
+
/** 注册表 key,用于取字段说明 */
|
|
9
|
+
fieldKey: string;
|
|
10
|
+
label: string;
|
|
11
|
+
/** 已解析的图片地址(表达式由宿主求值后传入);为空则回落内置示例图 */
|
|
12
|
+
src?: string;
|
|
13
|
+
/** 模板里的存量值,原样是 CSS 两轴位置 */
|
|
14
|
+
modelValue?: string;
|
|
15
|
+
widthMm: number;
|
|
16
|
+
heightMm: number;
|
|
17
|
+
/** 缩放模式(CSS object-fit 原值,缺省按 contain):可挪余量按它逐轴结算 */
|
|
18
|
+
fit?: string;
|
|
19
|
+
/** 剪裁放大比例(%):只有剪裁档消费,铺满后把画面再推大这么多 */
|
|
20
|
+
scale?: number;
|
|
21
|
+
};
|
|
22
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
|
+
"update:scale": (value: number | undefined) => any;
|
|
24
|
+
"update:modelValue": (value: string | undefined) => any;
|
|
25
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
26
|
+
"onUpdate:scale"?: ((value: number | undefined) => any) | undefined;
|
|
27
|
+
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
28
|
+
}>, {
|
|
29
|
+
src: string;
|
|
30
|
+
fit: string;
|
|
31
|
+
scale: number;
|
|
32
|
+
modelValue: string;
|
|
33
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
declare const _default: typeof __VLS_export;
|
|
35
|
+
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @worm-vue3-print/canvas v1.3.
|
|
2
|
+
* @worm-vue3-print/canvas v1.3.8
|
|
3
3
|
* Copyright (c) 2026 worm <liu_long_qqcom@qq.com>
|
|
4
4
|
* SPDX-FileCopyrightText: 2026 worm <liu_long_qqcom@qq.com>
|
|
5
5
|
* SPDX-License-Identifier: MIT
|
|
@@ -67,8 +67,11 @@ export declare function useClipboard(): {
|
|
|
67
67
|
barAutoWidth?: string | undefined;
|
|
68
68
|
printerDpi?: number | undefined;
|
|
69
69
|
qrCodeLevel?: string | undefined;
|
|
70
|
+
qrQuietZone?: number | undefined;
|
|
70
71
|
src?: string | undefined;
|
|
71
72
|
fit?: string | undefined;
|
|
73
|
+
objectPosition?: string | undefined;
|
|
74
|
+
fitScale?: number | undefined;
|
|
72
75
|
maxWidth?: number | undefined;
|
|
73
76
|
maxHeight?: number | undefined;
|
|
74
77
|
hideTitle?: boolean | undefined;
|
|
@@ -96,6 +99,7 @@ export declare function useClipboard(): {
|
|
|
96
99
|
cellType?: import("@worm-vue3-print/core/designer").TableCellType | undefined;
|
|
97
100
|
barcodeType?: string | undefined;
|
|
98
101
|
qrCodeLevel?: string | undefined;
|
|
102
|
+
qrQuietZone?: number | undefined;
|
|
99
103
|
showBarcodeText?: boolean | undefined;
|
|
100
104
|
printerDpi?: number | undefined;
|
|
101
105
|
barWidth?: number | undefined;
|
|
@@ -137,6 +141,8 @@ export declare function useClipboard(): {
|
|
|
137
141
|
textFit?: import("@worm-vue3-print/core").TextFit | undefined;
|
|
138
142
|
shrinkMinFontSize?: number | undefined;
|
|
139
143
|
fit?: "contain" | "cover" | "fill" | "none" | "scale-down" | undefined;
|
|
144
|
+
objectPosition?: string | undefined;
|
|
145
|
+
fitScale?: number | undefined;
|
|
140
146
|
maxWidth?: number | undefined;
|
|
141
147
|
maxHeight?: number | undefined;
|
|
142
148
|
}[];
|
|
@@ -154,8 +160,6 @@ export declare function useClipboard(): {
|
|
|
154
160
|
styler?: string | undefined;
|
|
155
161
|
rowStyler?: string | undefined;
|
|
156
162
|
longTextIndent?: number | undefined;
|
|
157
|
-
leftSpaceRemoved?: boolean | undefined;
|
|
158
|
-
lHeight?: number | undefined;
|
|
159
163
|
};
|
|
160
164
|
printElementType: {
|
|
161
165
|
title?: string | undefined;
|
|
@@ -225,8 +229,11 @@ export declare function useClipboard(): {
|
|
|
225
229
|
barAutoWidth?: string | undefined;
|
|
226
230
|
printerDpi?: number | undefined;
|
|
227
231
|
qrCodeLevel?: string | undefined;
|
|
232
|
+
qrQuietZone?: number | undefined;
|
|
228
233
|
src?: string | undefined;
|
|
229
234
|
fit?: string | undefined;
|
|
235
|
+
objectPosition?: string | undefined;
|
|
236
|
+
fitScale?: number | undefined;
|
|
230
237
|
maxWidth?: number | undefined;
|
|
231
238
|
maxHeight?: number | undefined;
|
|
232
239
|
hideTitle?: boolean | undefined;
|
|
@@ -254,6 +261,7 @@ export declare function useClipboard(): {
|
|
|
254
261
|
cellType?: import("@worm-vue3-print/core/designer").TableCellType | undefined;
|
|
255
262
|
barcodeType?: string | undefined;
|
|
256
263
|
qrCodeLevel?: string | undefined;
|
|
264
|
+
qrQuietZone?: number | undefined;
|
|
257
265
|
showBarcodeText?: boolean | undefined;
|
|
258
266
|
printerDpi?: number | undefined;
|
|
259
267
|
barWidth?: number | undefined;
|
|
@@ -295,6 +303,8 @@ export declare function useClipboard(): {
|
|
|
295
303
|
textFit?: import("@worm-vue3-print/core").TextFit | undefined;
|
|
296
304
|
shrinkMinFontSize?: number | undefined;
|
|
297
305
|
fit?: "contain" | "cover" | "fill" | "none" | "scale-down" | undefined;
|
|
306
|
+
objectPosition?: string | undefined;
|
|
307
|
+
fitScale?: number | undefined;
|
|
298
308
|
maxWidth?: number | undefined;
|
|
299
309
|
maxHeight?: number | undefined;
|
|
300
310
|
}[];
|
|
@@ -312,8 +322,6 @@ export declare function useClipboard(): {
|
|
|
312
322
|
styler?: string | undefined;
|
|
313
323
|
rowStyler?: string | undefined;
|
|
314
324
|
longTextIndent?: number | undefined;
|
|
315
|
-
leftSpaceRemoved?: boolean | undefined;
|
|
316
|
-
lHeight?: number | undefined;
|
|
317
325
|
};
|
|
318
326
|
printElementType: {
|
|
319
327
|
title?: string | undefined;
|