@univerjs/core 0.18.0 → 0.19.0
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/lib/cjs/index.js +9 -9
- package/lib/es/index.js +8 -8
- package/lib/index.js +8 -8
- package/lib/types/common/const.d.ts +1 -1
- package/lib/types/types/enum/theme-color-type.d.ts +2 -0
- package/lib/types/types/interfaces/i-style-data.d.ts +62 -0
- package/lib/umd/index.js +9 -9
- package/package.json +5 -5
|
@@ -22,4 +22,4 @@ export declare const IS_ROW_STYLE_PRECEDE_COLUMN_STYLE = "isRowStylePrecedeColum
|
|
|
22
22
|
export declare const AUTO_HEIGHT_FOR_MERGED_CELLS: unique symbol;
|
|
23
23
|
export declare function createInternalEditorID(id: string): string;
|
|
24
24
|
export declare function isInternalEditorID(id: string): boolean;
|
|
25
|
-
export declare function isCommentEditorID(id: string):
|
|
25
|
+
export declare function isCommentEditorID(id: string): boolean;
|
|
@@ -38,13 +38,35 @@ export interface ITextDecoration {
|
|
|
38
38
|
*/
|
|
39
39
|
t?: TextDecoration;
|
|
40
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* Exact keys of {@link ITextDecoration}.
|
|
43
|
+
*/
|
|
44
|
+
export declare const TEXT_DECORATION_KEYS: readonly ["s", "c", "cl", "t"];
|
|
45
|
+
/**
|
|
46
|
+
* Key union of {@link ITextDecoration}.
|
|
47
|
+
*/
|
|
48
|
+
export type TextDecorationKey = (typeof TEXT_DECORATION_KEYS)[number];
|
|
41
49
|
/**
|
|
42
50
|
* RGB color or theme color
|
|
43
51
|
*/
|
|
44
52
|
export interface IColorStyle {
|
|
53
|
+
/**
|
|
54
|
+
* RGB color string, such as `#RRGGBB` or `rgb(r, g, b)`.
|
|
55
|
+
*/
|
|
45
56
|
rgb?: Nullable<string>;
|
|
57
|
+
/**
|
|
58
|
+
* Theme color token.
|
|
59
|
+
*/
|
|
46
60
|
th?: ThemeColorType;
|
|
47
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* Exact keys of {@link IColorStyle}.
|
|
64
|
+
*/
|
|
65
|
+
export declare const COLOR_STYLE_KEYS: readonly ["rgb", "th"];
|
|
66
|
+
/**
|
|
67
|
+
* Key union of {@link IColorStyle}.
|
|
68
|
+
*/
|
|
69
|
+
export type ColorStyleKey = (typeof COLOR_STYLE_KEYS)[number];
|
|
48
70
|
/**
|
|
49
71
|
* Format of RBGA color
|
|
50
72
|
*/
|
|
@@ -61,6 +83,14 @@ export interface IBorderStyleData {
|
|
|
61
83
|
s: BorderStyleTypes;
|
|
62
84
|
cl: IColorStyle;
|
|
63
85
|
}
|
|
86
|
+
/**
|
|
87
|
+
* Exact keys of {@link IBorderStyleData}.
|
|
88
|
+
*/
|
|
89
|
+
export declare const BORDER_STYLE_KEYS: readonly ["s", "cl"];
|
|
90
|
+
/**
|
|
91
|
+
* Key union of {@link IBorderStyleData}.
|
|
92
|
+
*/
|
|
93
|
+
export type BorderStyleKey = (typeof BORDER_STYLE_KEYS)[number];
|
|
64
94
|
/**
|
|
65
95
|
* Style properties of top, bottom, left and right border
|
|
66
96
|
*
|
|
@@ -87,6 +117,14 @@ export interface IBorderData {
|
|
|
87
117
|
ml_tr?: Nullable<IBorderStyleData>;
|
|
88
118
|
bc_tr?: Nullable<IBorderStyleData>;
|
|
89
119
|
}
|
|
120
|
+
/**
|
|
121
|
+
* Exact keys of {@link IBorderData}.
|
|
122
|
+
*/
|
|
123
|
+
export declare const BORDER_KEYS: readonly ["t", "r", "b", "l", "tl_br", "tl_bc", "tl_mr", "bl_tr", "ml_tr", "bc_tr"];
|
|
124
|
+
/**
|
|
125
|
+
* Key union of {@link IBorderData}.
|
|
126
|
+
*/
|
|
127
|
+
export type BorderKey = (typeof BORDER_KEYS)[number];
|
|
90
128
|
export interface ITextRotation {
|
|
91
129
|
/**
|
|
92
130
|
* angle
|
|
@@ -99,6 +137,14 @@ export interface ITextRotation {
|
|
|
99
137
|
*/
|
|
100
138
|
v?: BooleanNumber;
|
|
101
139
|
}
|
|
140
|
+
/**
|
|
141
|
+
* Exact keys of {@link ITextRotation}.
|
|
142
|
+
*/
|
|
143
|
+
export declare const TEXT_ROTATION_KEYS: readonly ["a", "v"];
|
|
144
|
+
/**
|
|
145
|
+
* Key union of {@link ITextRotation}.
|
|
146
|
+
*/
|
|
147
|
+
export type TextRotationKey = (typeof TEXT_ROTATION_KEYS)[number];
|
|
102
148
|
/**
|
|
103
149
|
* Top,right,bottom,left padding
|
|
104
150
|
*/
|
|
@@ -108,6 +154,14 @@ export interface IPaddingData {
|
|
|
108
154
|
b?: number;
|
|
109
155
|
l?: number;
|
|
110
156
|
}
|
|
157
|
+
/**
|
|
158
|
+
* Exact keys of {@link IPaddingData}.
|
|
159
|
+
*/
|
|
160
|
+
export declare const PADDING_KEYS: readonly ["t", "r", "b", "l"];
|
|
161
|
+
/**
|
|
162
|
+
* Key union of {@link IPaddingData}.
|
|
163
|
+
*/
|
|
164
|
+
export type PaddingKey = (typeof PADDING_KEYS)[number];
|
|
111
165
|
/**
|
|
112
166
|
* Basics properties of cell style
|
|
113
167
|
*/
|
|
@@ -203,3 +257,11 @@ export interface IStyleData extends IStyleBase {
|
|
|
203
257
|
*/
|
|
204
258
|
pd?: Nullable<IPaddingData>;
|
|
205
259
|
}
|
|
260
|
+
/**
|
|
261
|
+
* Exact keys of {@link IStyleData}.
|
|
262
|
+
*/
|
|
263
|
+
export declare const STYLE_KEYS: readonly ["ff", "fs", "it", "bl", "ul", "bbl", "st", "ol", "bg", "bd", "cl", "va", "n", "tr", "td", "ht", "vt", "tb", "pd"];
|
|
264
|
+
/**
|
|
265
|
+
* Key union of {@link IStyleData}.
|
|
266
|
+
*/
|
|
267
|
+
export type StyleKey = (typeof STYLE_KEYS)[number];
|