@worm-vue3-print/canvas 1.3.4 → 1.3.5
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/LICENSE +21 -0
- package/README.md +4 -5
- package/dist/canvas.css +1 -1
- package/dist/components/CanvasArea.vue.d.ts +8 -5
- package/dist/components/CanvasPaper.vue.d.ts +8 -2
- package/dist/components/DesignerToolbar.vue.d.ts +6 -5
- package/dist/components/ExpressionEditor.vue.d.ts +6 -0
- package/dist/components/FieldTreePanel.vue.d.ts +6 -0
- package/dist/components/FormatToolbar.vue.d.ts +6 -0
- package/dist/components/HelpButton.vue.d.ts +6 -0
- package/dist/components/HelpModal.vue.d.ts +6 -0
- package/dist/components/LayerPanel.vue.d.ts +6 -0
- package/dist/components/LeftPanel.vue.d.ts +6 -0
- package/dist/components/PageTabs.vue.d.ts +6 -0
- package/dist/components/PresetColorPicker.vue.d.ts +6 -0
- package/dist/components/PrintDesigner.vue.d.ts +9 -5
- package/dist/components/PrintHtmlPreview.vue.d.ts +6 -0
- package/dist/components/PropertyPanel.vue.d.ts +6 -0
- package/dist/components/Ruler.vue.d.ts +6 -0
- package/dist/components/StatusBar.vue.d.ts +6 -0
- package/dist/components/ToolbarDropdown.vue.d.ts +6 -0
- package/dist/components/WatermarkConfig.vue.d.ts +6 -0
- package/dist/components/elements/BarcodeElement.vue.d.ts +6 -0
- package/dist/components/elements/BaseElement.vue.d.ts +9 -3
- package/dist/components/elements/CellBarcode.vue.d.ts +6 -0
- package/dist/components/elements/CellImage.vue.d.ts +6 -0
- package/dist/components/elements/HtmlElement.vue.d.ts +6 -0
- package/dist/components/elements/ImageElement.vue.d.ts +6 -0
- package/dist/components/elements/LineElement.vue.d.ts +6 -0
- package/dist/components/elements/LongTextElement.vue.d.ts +6 -0
- package/dist/components/elements/PageNumberElement.vue.d.ts +6 -0
- package/dist/components/elements/QrcodeElement.vue.d.ts +6 -0
- package/dist/components/elements/ShapeElement.vue.d.ts +6 -0
- package/dist/components/elements/TableContextMenu.vue.d.ts +6 -0
- package/dist/components/elements/TableElement.vue.d.ts +6 -2
- package/dist/components/elements/TextElement.vue.d.ts +6 -0
- package/dist/components/property/AdvancedGroup.vue.d.ts +6 -0
- package/dist/components/property/AppearanceGroup.vue.d.ts +6 -0
- package/dist/components/property/BindingControl.vue.d.ts +6 -0
- package/dist/components/property/BorderBgGroup.vue.d.ts +6 -0
- package/dist/components/property/CodeGroup.vue.d.ts +6 -0
- package/dist/components/property/DesignBackgroundConfig.vue.d.ts +6 -0
- package/dist/components/property/FontSelect.vue.d.ts +6 -0
- package/dist/components/property/ImageContentUpload.vue.d.ts +6 -0
- package/dist/components/property/PaginationGroup.vue.d.ts +6 -0
- package/dist/components/property/PositionSizeGroup.vue.d.ts +6 -0
- package/dist/components/property/PropertyGroup.vue.d.ts +6 -0
- package/dist/components/property/PropertySearch.vue.d.ts +6 -0
- package/dist/components/property/StepperInput.vue.d.ts +6 -0
- package/dist/components/property/TableCellGroup.vue.d.ts +6 -0
- package/dist/components/property/TableRowGroup.vue.d.ts +6 -0
- package/dist/components/property/TableSettingsGroup.vue.d.ts +6 -0
- package/dist/components/property/TilingConfig.vue.d.ts +6 -0
- package/dist/composables/useAdsorb.d.ts +6 -0
- package/dist/composables/useAdsorbManager.d.ts +6 -0
- package/dist/composables/useClipboard.d.ts +6 -0
- package/dist/composables/useDesignerState.d.ts +133 -775
- package/dist/composables/useDocumentFontFace.d.ts +6 -0
- package/dist/composables/useDrag.d.ts +6 -0
- package/dist/composables/useFontCatalog.d.ts +6 -0
- package/dist/composables/useFormatPainter.d.ts +6 -0
- package/dist/composables/useFormatToolbar.d.ts +6 -0
- package/dist/composables/useGuides.d.ts +6 -0
- package/dist/composables/useHistory.d.ts +6 -0
- package/dist/composables/useHostAdapter.d.ts +6 -0
- package/dist/composables/useSelection.d.ts +6 -0
- package/dist/composables/useShrinkFit.d.ts +6 -0
- package/dist/composables/useStudioChrome.d.ts +6 -0
- package/dist/composables/useTableSelection.d.ts +6 -0
- package/dist/help-content/changelog.d.ts +6 -0
- package/dist/help-content/faq.d.ts +6 -0
- package/dist/help-content/features.d.ts +6 -0
- package/dist/help-content/getting-started.d.ts +6 -0
- package/dist/help-content/index.d.ts +6 -0
- package/dist/help-content/shortcuts.d.ts +6 -0
- package/dist/index.cjs +50 -19
- package/dist/index.d.ts +6 -0
- package/dist/index.js +3764 -3821
- package/package.json +12 -6
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -1,2 +1,8 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @worm-vue3-print/canvas v1.3.5
|
|
3
|
+
* Copyright (c) 2026 Worm Base AI
|
|
4
|
+
* SPDX-FileCopyrightText: 2026 Worm Base AI
|
|
5
|
+
* SPDX-License-Identifier: MIT
|
|
6
|
+
*/
|
|
1
7
|
import { type MaybeRefOrGetter } from 'vue';
|
|
2
8
|
export declare function useDocumentFontFace(css: MaybeRefOrGetter<string>): void;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @worm-vue3-print/canvas v1.3.5
|
|
3
|
+
* Copyright (c) 2026 Worm Base AI
|
|
4
|
+
* SPDX-FileCopyrightText: 2026 Worm Base AI
|
|
5
|
+
* SPDX-License-Identifier: MIT
|
|
6
|
+
*/
|
|
1
7
|
import type { AdsorbResult } from '@worm-vue3-print/core/designer';
|
|
2
8
|
export interface DragOptions {
|
|
3
9
|
axis?: 'x' | 'y';
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @worm-vue3-print/canvas v1.3.5
|
|
3
|
+
* Copyright (c) 2026 Worm Base AI
|
|
4
|
+
* SPDX-FileCopyrightText: 2026 Worm Base AI
|
|
5
|
+
* SPDX-License-Identifier: MIT
|
|
6
|
+
*/
|
|
1
7
|
import { type ComputedRef, type MaybeRefOrGetter } from 'vue';
|
|
2
8
|
import type { PrintFontDeclaration } from '@worm-vue3-print/core';
|
|
3
9
|
/** 下拉候选项:family 写入模板,label 仅用于界面展示 */
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @worm-vue3-print/canvas v1.3.5
|
|
3
|
+
* Copyright (c) 2026 Worm Base AI
|
|
4
|
+
* SPDX-FileCopyrightText: 2026 Worm Base AI
|
|
5
|
+
* SPDX-License-Identifier: MIT
|
|
6
|
+
*/
|
|
1
7
|
import { type Ref } from 'vue';
|
|
2
8
|
import type { RuntimeElement } from '@worm-vue3-print/core/designer';
|
|
3
9
|
export interface FormatPainterDeps {
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @worm-vue3-print/canvas v1.3.5
|
|
3
|
+
* Copyright (c) 2026 Worm Base AI
|
|
4
|
+
* SPDX-FileCopyrightText: 2026 Worm Base AI
|
|
5
|
+
* SPDX-License-Identifier: MIT
|
|
6
|
+
*/
|
|
1
7
|
import { type Ref } from 'vue';
|
|
2
8
|
import type { RuntimeElement, TableSelection, TextAlign, VerticalAlign, TableCellBorder, ElementBorderSide } from '@worm-vue3-print/core/designer';
|
|
3
9
|
import { type BorderPreset } from '@worm-vue3-print/core/designer';
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @worm-vue3-print/canvas v1.3.5
|
|
3
|
+
* Copyright (c) 2026 Worm Base AI
|
|
4
|
+
* SPDX-FileCopyrightText: 2026 Worm Base AI
|
|
5
|
+
* SPDX-License-Identifier: MIT
|
|
6
|
+
*/
|
|
1
7
|
import { type Ref } from 'vue';
|
|
2
8
|
import type { TemplateData, AlignLine } from '@worm-vue3-print/core/designer';
|
|
3
9
|
export declare function useGuides(templateData: Ref<TemplateData>, recordHistory: () => void): {
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @worm-vue3-print/canvas v1.3.5
|
|
3
|
+
* Copyright (c) 2026 Worm Base AI
|
|
4
|
+
* SPDX-FileCopyrightText: 2026 Worm Base AI
|
|
5
|
+
* SPDX-License-Identifier: MIT
|
|
6
|
+
*/
|
|
1
7
|
import type { TemplateData } from '@worm-vue3-print/core/designer';
|
|
2
8
|
export interface HistoryState {
|
|
3
9
|
elements: any[];
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @worm-vue3-print/canvas v1.3.5
|
|
3
|
+
* Copyright (c) 2026 Worm Base AI
|
|
4
|
+
* SPDX-FileCopyrightText: 2026 Worm Base AI
|
|
5
|
+
* SPDX-License-Identifier: MIT
|
|
6
|
+
*/
|
|
1
7
|
import type { ComputedRef, InjectionKey } from 'vue';
|
|
2
8
|
import type { UploadDesignBackgroundFn, UploadImageFn } from '@worm-vue3-print/core/designer';
|
|
3
9
|
import type { FontOption } from './useFontCatalog';
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @worm-vue3-print/canvas v1.3.5
|
|
3
|
+
* Copyright (c) 2026 Worm Base AI
|
|
4
|
+
* SPDX-FileCopyrightText: 2026 Worm Base AI
|
|
5
|
+
* SPDX-License-Identifier: MIT
|
|
6
|
+
*/
|
|
1
7
|
import { type InjectionKey, type Ref } from 'vue';
|
|
2
8
|
import type { RuntimeElement } from '@worm-vue3-print/core/designer';
|
|
3
9
|
/** 通过 provide/inject 共享选中状态,每个 BaseElement 精确追踪自身是否被选中 */
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @worm-vue3-print/canvas v1.3.5
|
|
3
|
+
* Copyright (c) 2026 Worm Base AI
|
|
4
|
+
* SPDX-FileCopyrightText: 2026 Worm Base AI
|
|
5
|
+
* SPDX-License-Identifier: MIT
|
|
6
|
+
*/
|
|
1
7
|
export declare function useStudioChrome(): {
|
|
2
8
|
leftCollapsed: import("vue").Ref<boolean, boolean>;
|
|
3
9
|
rightCollapsed: import("vue").Ref<boolean, boolean>;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @worm-vue3-print/canvas v1.3.5
|
|
3
|
+
* Copyright (c) 2026 Worm Base AI
|
|
4
|
+
* SPDX-FileCopyrightText: 2026 Worm Base AI
|
|
5
|
+
* SPDX-License-Identifier: MIT
|
|
6
|
+
*/
|
|
1
7
|
import type { InjectionKey, Ref } from 'vue';
|
|
2
8
|
import type { TableSelection } from '@worm-vue3-print/core/designer';
|
|
3
9
|
export interface TableEditContext {
|