@worm-print-platform/canvas 1.5.0 → 1.5.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.
- package/README.md +112 -359
- package/dist/browser-bundle.d.ts +1 -1
- package/dist/canvas.css +1 -1
- package/dist/canvas.js +84 -81
- package/dist/core/default-template.d.ts +1 -1
- package/dist/core/element-definitions.d.ts +1 -1
- package/dist/core/format.d.ts +1 -1
- package/dist/core/h.d.ts +1 -1
- package/dist/core/icons.d.ts +1 -1
- package/dist/core/plugin.d.ts +1 -1
- package/dist/core/store.d.ts +1 -1
- package/dist/host-contract.d.ts +7 -3
- package/dist/index.cjs +14 -11
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1289 -1242
- package/dist/print-designer.d.ts +7 -3
- package/dist/shell/binding.d.ts +1 -1
- package/dist/shell/canvas.d.ts +1 -1
- package/dist/shell/code.d.ts +1 -1
- package/dist/shell/color-picker.d.ts +1 -1
- package/dist/shell/controls.d.ts +4 -1
- package/dist/shell/crop-anchor.d.ts +1 -1
- package/dist/shell/elements.d.ts +1 -1
- package/dist/shell/expression-editor.d.ts +1 -1
- package/dist/shell/flow-list.d.ts +1 -1
- package/dist/shell/font-select.d.ts +1 -1
- package/dist/shell/format-bar.d.ts +1 -1
- package/dist/shell/help-content/advanced-settings.d.ts +1 -1
- package/dist/shell/help-content/changelog.d.ts +1 -1
- package/dist/shell/help-content/faq.d.ts +1 -1
- package/dist/shell/help-content/features.d.ts +1 -1
- package/dist/shell/help-content/getting-started.d.ts +1 -1
- package/dist/shell/help-content/index.d.ts +1 -1
- package/dist/shell/help-content/shortcuts.d.ts +1 -1
- package/dist/shell/help-modal.d.ts +1 -1
- package/dist/shell/page-extras.d.ts +1 -1
- package/dist/shell/panels.d.ts +1 -1
- package/dist/shell/plugin-ui.d.ts +1 -1
- package/dist/shell/prop-group.d.ts +1 -1
- package/dist/shell/property-panel.d.ts +1 -1
- package/dist/shell/property-search.d.ts +1 -1
- package/dist/shell/ruler.d.ts +1 -1
- package/dist/shell/table-props.d.ts +1 -1
- package/dist/shell/table.d.ts +2 -2
- package/dist/shell/toolbar-overflow.d.ts +1 -1
- package/dist/shell/toolbar.d.ts +1 -1
- package/dist/shell/watermark.d.ts +1 -1
- package/dist/vue3/PrintDesigner.d.ts +23 -1
- package/dist/vue3/PrintHtmlPreview.d.ts +1 -1
- package/dist/vue3/index.cjs +2 -2
- package/dist/vue3/index.d.ts +1 -1
- package/dist/vue3/index.js +121 -111
- package/dist/vue3/previewStyle.d.ts +1 -1
- package/dist/vue3/toolbarOverflow.d.ts +1 -1
- package/package.json +4 -4
package/dist/core/format.d.ts
CHANGED
package/dist/core/h.d.ts
CHANGED
package/dist/core/icons.d.ts
CHANGED
package/dist/core/plugin.d.ts
CHANGED
package/dist/core/store.d.ts
CHANGED
package/dist/host-contract.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @worm-print-platform/canvas v1.5.
|
|
2
|
+
* @worm-print-platform/canvas v1.5.2
|
|
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
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
import type { MultiPageTemplateData, PrintBusinessField, TemplateData } from '@worm-print-platform/core/designer';
|
|
8
8
|
import type { PrintFontDeclaration } from '@worm-print-platform/core';
|
|
9
9
|
/** 宿主契约版本;每次改动可观察面必须同步升号 */
|
|
10
|
-
export declare const PRINT_DESIGNER_CONTRACT_VERSION = "1.
|
|
10
|
+
export declare const PRINT_DESIGNER_CONTRACT_VERSION = "1.1.0";
|
|
11
11
|
/** 自定义元素标签名 */
|
|
12
12
|
export declare const PRINT_DESIGNER_TAG: "print-designer";
|
|
13
13
|
/** 会触发 attributeChangedCallback 的声明式 attribute(字符串形态) */
|
|
14
14
|
export declare const PRINT_DESIGNER_ATTRIBUTES: readonly ["template", "fields", "name", "fonts", "design-data"];
|
|
15
15
|
export type PrintDesignerAttribute = typeof PRINT_DESIGNER_ATTRIBUTES[number];
|
|
16
16
|
/** 只走 property 的开关(不进 observedAttributes,写 setAttribute 只影响样式/语义) */
|
|
17
|
-
export declare const PRINT_DESIGNER_BOOLEAN_ATTRIBUTES: readonly ["is-edit", "show-help"];
|
|
17
|
+
export declare const PRINT_DESIGNER_BOOLEAN_ATTRIBUTES: readonly ["is-edit", "show-help", "show-preview", "show-save"];
|
|
18
18
|
export type PrintDesignerBooleanAttribute = typeof PRINT_DESIGNER_BOOLEAN_ATTRIBUTES[number];
|
|
19
19
|
/** 设计态示例数据的数组信封(data[0] 为数据根对象) */
|
|
20
20
|
export type PrintDesignerDesignData = readonly Record<string, unknown>[];
|
|
@@ -32,6 +32,10 @@ export interface PrintDesignerProperties {
|
|
|
32
32
|
isEdit: boolean;
|
|
33
33
|
/** 是否显示帮助入口(同时写 show-help attribute) */
|
|
34
34
|
showHelp: boolean;
|
|
35
|
+
/** 是否显示工具栏「预览」按钮(同时写 show-preview attribute);默认显示,隐藏不影响 preview 事件与宿主旁路 */
|
|
36
|
+
showPreview: boolean;
|
|
37
|
+
/** 是否显示工具栏「保存」按钮(同时写 show-save attribute);默认显示,隐藏不影响 save() 方法与 save 事件 */
|
|
38
|
+
showSave: boolean;
|
|
35
39
|
/** 宿主提供的图片上传回调;未注入时素材台的图片入口回落到内置行为 */
|
|
36
40
|
uploadImage?: (file: File) => Promise<string> | string;
|
|
37
41
|
/** 宿主提供的设计背景上传回调 */
|