@borurio-print/print-designer 1.0.5 → 1.0.6

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.
@@ -84,6 +84,10 @@ export interface ElementPropertyConfig {
84
84
  /** 属性是否适用于元素当前状态,例如固定时间只在“固定”模式下展示。 */
85
85
  visibleWhen?: (element: DesignerElement) => boolean;
86
86
  }
87
+ /** 元素相对标签画布持续生效的水平对齐规则。 */
88
+ export type CanvasHorizontalAlign = 'left' | 'center' | 'right';
89
+ /** 元素相对标签画布持续生效的垂直对齐规则。 */
90
+ export type CanvasVerticalAlign = 'top' | 'center' | 'bottom';
87
91
  /**
88
92
  * 所有可编辑元素共用的布局数据。
89
93
  * 坐标和尺寸统一使用毫米,rotation 统一使用角度,避免保存屏幕像素后
@@ -98,6 +102,10 @@ export interface BaseDesignerElement {
98
102
  heightMm: number;
99
103
  rotation: number;
100
104
  zIndex: number;
105
+ /** 缺少时沿用模板保存的 xMm,不做运行时重排。 */
106
+ canvasHorizontalAlign?: CanvasHorizontalAlign;
107
+ /** 缺少时沿用模板保存的 yMm,不做运行时重排。 */
108
+ canvasVerticalAlign?: CanvasVerticalAlign;
101
109
  }
102
110
  /** 普通文字元素独有的排版属性。 */
103
111
  export interface TextDesignerElement extends BaseDesignerElement {