@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.
Files changed (81) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +4 -5
  3. package/dist/canvas.css +1 -1
  4. package/dist/components/CanvasArea.vue.d.ts +8 -5
  5. package/dist/components/CanvasPaper.vue.d.ts +8 -2
  6. package/dist/components/DesignerToolbar.vue.d.ts +6 -5
  7. package/dist/components/ExpressionEditor.vue.d.ts +6 -0
  8. package/dist/components/FieldTreePanel.vue.d.ts +6 -0
  9. package/dist/components/FormatToolbar.vue.d.ts +6 -0
  10. package/dist/components/HelpButton.vue.d.ts +6 -0
  11. package/dist/components/HelpModal.vue.d.ts +6 -0
  12. package/dist/components/LayerPanel.vue.d.ts +6 -0
  13. package/dist/components/LeftPanel.vue.d.ts +6 -0
  14. package/dist/components/PageTabs.vue.d.ts +6 -0
  15. package/dist/components/PresetColorPicker.vue.d.ts +6 -0
  16. package/dist/components/PrintDesigner.vue.d.ts +9 -5
  17. package/dist/components/PrintHtmlPreview.vue.d.ts +6 -0
  18. package/dist/components/PropertyPanel.vue.d.ts +6 -0
  19. package/dist/components/Ruler.vue.d.ts +6 -0
  20. package/dist/components/StatusBar.vue.d.ts +6 -0
  21. package/dist/components/ToolbarDropdown.vue.d.ts +6 -0
  22. package/dist/components/WatermarkConfig.vue.d.ts +6 -0
  23. package/dist/components/elements/BarcodeElement.vue.d.ts +6 -0
  24. package/dist/components/elements/BaseElement.vue.d.ts +9 -3
  25. package/dist/components/elements/CellBarcode.vue.d.ts +6 -0
  26. package/dist/components/elements/CellImage.vue.d.ts +6 -0
  27. package/dist/components/elements/HtmlElement.vue.d.ts +6 -0
  28. package/dist/components/elements/ImageElement.vue.d.ts +6 -0
  29. package/dist/components/elements/LineElement.vue.d.ts +6 -0
  30. package/dist/components/elements/LongTextElement.vue.d.ts +6 -0
  31. package/dist/components/elements/PageNumberElement.vue.d.ts +6 -0
  32. package/dist/components/elements/QrcodeElement.vue.d.ts +6 -0
  33. package/dist/components/elements/ShapeElement.vue.d.ts +6 -0
  34. package/dist/components/elements/TableContextMenu.vue.d.ts +6 -0
  35. package/dist/components/elements/TableElement.vue.d.ts +6 -2
  36. package/dist/components/elements/TextElement.vue.d.ts +6 -0
  37. package/dist/components/property/AdvancedGroup.vue.d.ts +6 -0
  38. package/dist/components/property/AppearanceGroup.vue.d.ts +6 -0
  39. package/dist/components/property/BindingControl.vue.d.ts +6 -0
  40. package/dist/components/property/BorderBgGroup.vue.d.ts +6 -0
  41. package/dist/components/property/CodeGroup.vue.d.ts +6 -0
  42. package/dist/components/property/DesignBackgroundConfig.vue.d.ts +6 -0
  43. package/dist/components/property/FontSelect.vue.d.ts +6 -0
  44. package/dist/components/property/ImageContentUpload.vue.d.ts +6 -0
  45. package/dist/components/property/PaginationGroup.vue.d.ts +6 -0
  46. package/dist/components/property/PositionSizeGroup.vue.d.ts +6 -0
  47. package/dist/components/property/PropertyGroup.vue.d.ts +6 -0
  48. package/dist/components/property/PropertySearch.vue.d.ts +6 -0
  49. package/dist/components/property/StepperInput.vue.d.ts +6 -0
  50. package/dist/components/property/TableCellGroup.vue.d.ts +6 -0
  51. package/dist/components/property/TableRowGroup.vue.d.ts +6 -0
  52. package/dist/components/property/TableSettingsGroup.vue.d.ts +6 -0
  53. package/dist/components/property/TilingConfig.vue.d.ts +6 -0
  54. package/dist/composables/useAdsorb.d.ts +6 -0
  55. package/dist/composables/useAdsorbManager.d.ts +6 -0
  56. package/dist/composables/useClipboard.d.ts +6 -0
  57. package/dist/composables/useDesignerState.d.ts +133 -775
  58. package/dist/composables/useDocumentFontFace.d.ts +6 -0
  59. package/dist/composables/useDrag.d.ts +6 -0
  60. package/dist/composables/useFontCatalog.d.ts +6 -0
  61. package/dist/composables/useFormatPainter.d.ts +6 -0
  62. package/dist/composables/useFormatToolbar.d.ts +6 -0
  63. package/dist/composables/useGuides.d.ts +6 -0
  64. package/dist/composables/useHistory.d.ts +6 -0
  65. package/dist/composables/useHostAdapter.d.ts +6 -0
  66. package/dist/composables/useSelection.d.ts +6 -0
  67. package/dist/composables/useShrinkFit.d.ts +6 -0
  68. package/dist/composables/useStudioChrome.d.ts +6 -0
  69. package/dist/composables/useTableSelection.d.ts +6 -0
  70. package/dist/help-content/changelog.d.ts +6 -0
  71. package/dist/help-content/faq.d.ts +6 -0
  72. package/dist/help-content/features.d.ts +6 -0
  73. package/dist/help-content/getting-started.d.ts +6 -0
  74. package/dist/help-content/index.d.ts +6 -0
  75. package/dist/help-content/shortcuts.d.ts +6 -0
  76. package/dist/index.cjs +50 -19
  77. package/dist/index.d.ts +6 -0
  78. package/dist/index.js +3764 -3821
  79. package/package.json +12 -6
  80. package/dist/index.cjs.map +0 -1
  81. 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
  import { type Ref } from 'vue';
2
8
  /**
3
9
  * @param root 元素根节点(元素级缩小挂在根上,单元格级挂在根的后代上)
@@ -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 {
@@ -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
  declare const _default: {
2
8
  id: string;
3
9
  title: string;
@@ -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
  declare const _default: {
2
8
  id: string;
3
9
  title: string;
@@ -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
  declare const _default: {
2
8
  id: string;
3
9
  title: string;
@@ -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
  declare const _default: {
2
8
  id: string;
3
9
  title: string;
@@ -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 type HelpSection = {
2
8
  id: string;
3
9
  title: string;
@@ -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
  declare const _default: {
2
8
  id: string;
3
9
  title: string;