@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.
- package/dist/core/command/commands/UnmergeCells.d.ts +5 -1
- package/dist/core/command/types.d.ts +1 -0
- package/dist/core/model/document/WrText.d.ts +2 -0
- package/dist/core/model/types/style.d.ts +2 -0
- package/dist/core/view/runs/TextRun.d.ts +4 -0
- package/dist/index.es.js +824 -668
- package/dist/runtime/designer/ribbon/constant/font.d.ts +13 -5
- package/dist/word.css +57 -57
- package/package.json +2 -2
|
@@ -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
|
|
17
|
+
} | null>;
|
|
18
|
+
/** 光标落在合并格内时,解析其 merge root */
|
|
19
|
+
private resolveRootsFromCursor;
|
|
20
|
+
/** 框选单元格时,收集选区内的 merge roots */
|
|
21
|
+
private resolveRootsFromSelection;
|
|
18
22
|
}
|
|
@@ -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 拆分位置(在此字符之前分割)
|
|
@@ -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
|
/** 高亮 */
|