@gct-paas/word 0.1.74-beta.27 → 0.1.74-beta.29

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.
@@ -14,5 +14,9 @@ export declare class UnmergeCells extends CommandBase<'unmergeCells'> {
14
14
  pos: number;
15
15
  side: string;
16
16
  wp?: undefined;
17
- } | null | undefined>;
17
+ } | null>;
18
+ /** 光标落在合并格内时,解析其 merge root */
19
+ private resolveRootsFromCursor;
20
+ /** 框选单元格时,收集选区内的 merge roots */
21
+ private resolveRootsFromSelection;
18
22
  }
@@ -151,6 +151,7 @@ export type CommandPayloadMap = {
151
151
  };
152
152
  setFontSize: CommandPayload & {
153
153
  fontSize: number;
154
+ fontSizeOption?: string;
154
155
  };
155
156
  setUnderline: CommandPayload & {
156
157
  underline?: string;
@@ -94,6 +94,8 @@ export declare class WrText extends ModelNode {
94
94
  * @param fontSize 字号大小(半磅单位)
95
95
  */
96
96
  setFontSize(fontSize: number): void;
97
+ /** 记录 Ribbon 选中的字号项,用于同磅值下区分「小六」与「6.5」 */
98
+ setFontSizeOption(fontSizeOption: string): void;
97
99
  /**
98
100
  * 在指定字符位置拆分文本节点
99
101
  * @param index 拆分位置(在此字符之前分割)
@@ -20,6 +20,8 @@ export type TextStyle = {
20
20
  };
21
21
  sz?: number;
22
22
  szCs?: number;
23
+ /** Ribbon 字号选项 id,区分同磅值的号数/数字项 */
24
+ fontSizeOption?: string;
23
25
  spacing?: number;
24
26
  kern?: number;
25
27
  rFonts?: {
@@ -30,6 +30,8 @@ export interface ITextRun {
30
30
  text: string;
31
31
  /** 字号 */
32
32
  fontSize: number;
33
+ /** Ribbon 字号选项 id */
34
+ fontSizeOption?: string;
33
35
  /** 字体 */
34
36
  fontFamily: string;
35
37
  /** 高亮 */
@@ -72,6 +74,8 @@ export declare class TextRun extends LayoutNode implements ITextRun {
72
74
  text: string;
73
75
  /** 字号 */
74
76
  fontSize: number;
77
+ /** Ribbon 字号选项 id */
78
+ fontSizeOption?: string;
75
79
  /** 字体 */
76
80
  fontFamily: string;
77
81
  /** 高亮 */