优化:支持文字排版
This commit is contained in:
@@ -28,6 +28,8 @@ export interface TemplateElement {
|
||||
y: number; // in mm
|
||||
width: number; // in mm
|
||||
height: number; // in mm
|
||||
/** 旋转角度(度),顺时针,默认 0 */
|
||||
rotation?: number;
|
||||
content: string; // static text or variable binding, e.g. "{货位}" or "格式化文本 {货位}"
|
||||
/** 显示控制:conditional 时按 visibilityRules 判断 */
|
||||
visibilityMode?: ElementVisibilityMode;
|
||||
@@ -45,6 +47,8 @@ export interface TemplateElement {
|
||||
verticalAlign?: 'top' | 'middle' | 'bottom';
|
||||
/** 是否自动换行,仅 type=text,默认 true */
|
||||
wordWrap?: boolean;
|
||||
/** 文本排列方向,仅 type=text,默认 horizontal */
|
||||
textWritingMode?: 'horizontal' | 'vertical';
|
||||
fontWeight: 'normal' | 'bold';
|
||||
/** 斜体,仅 type=text */
|
||||
fontStyle?: 'normal' | 'italic';
|
||||
|
||||
Reference in New Issue
Block a user