@docen/extensions 0.1.2 → 0.2.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/dist/_chunks/types-or4xeozj.d.mts +890 -0
- package/dist/index.d.mts +9 -26
- package/dist/index.mjs +3627 -3629
- package/dist/types.d.mts +2 -682
- package/package.json +2 -2
|
@@ -0,0 +1,890 @@
|
|
|
1
|
+
import { JSONContent } from "@tiptap/core";
|
|
2
|
+
import { Readable } from "node:stream";
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/.pnpm/undio@0.2.0/node_modules/undio/dist/index.d.ts
|
|
5
|
+
type DataType = ArrayBufferLike | Base64 | Blob | DataView | Readable | number[] | ReadableStream | Response | string | Uint8Array;
|
|
6
|
+
type Base64 = string;
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region ../../node_modules/.pnpm/docx-plus@0.1.2/node_modules/docx-plus/dist/index.d.mts
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/file/drawing/doc-properties/doc-properties.d.ts
|
|
11
|
+
interface HyperlinkOptions {
|
|
12
|
+
readonly click?: string;
|
|
13
|
+
readonly hover?: string;
|
|
14
|
+
}
|
|
15
|
+
interface DocPropertiesOptions {
|
|
16
|
+
readonly name: string;
|
|
17
|
+
readonly description?: string;
|
|
18
|
+
readonly title?: string;
|
|
19
|
+
readonly id?: string;
|
|
20
|
+
readonly hyperlink?: HyperlinkOptions;
|
|
21
|
+
} //#endregion
|
|
22
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/blip/source-rectangle.d.ts
|
|
23
|
+
interface SourceRectangleOptions$1 {
|
|
24
|
+
readonly left?: number;
|
|
25
|
+
readonly top?: number;
|
|
26
|
+
readonly right?: number;
|
|
27
|
+
readonly bottom?: number;
|
|
28
|
+
} //#endregion
|
|
29
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/color-transform.d.ts
|
|
30
|
+
interface ColorTransformOptions {
|
|
31
|
+
readonly tint?: number;
|
|
32
|
+
readonly shade?: number;
|
|
33
|
+
readonly comp?: boolean;
|
|
34
|
+
readonly inv?: boolean;
|
|
35
|
+
readonly gray?: boolean;
|
|
36
|
+
readonly alpha?: number;
|
|
37
|
+
readonly alphaOff?: number;
|
|
38
|
+
readonly alphaMod?: number;
|
|
39
|
+
readonly hue?: number;
|
|
40
|
+
readonly hueOff?: number;
|
|
41
|
+
readonly hueMod?: number;
|
|
42
|
+
readonly sat?: number;
|
|
43
|
+
readonly satOff?: number;
|
|
44
|
+
readonly satMod?: number;
|
|
45
|
+
readonly lum?: number;
|
|
46
|
+
readonly lumOff?: number;
|
|
47
|
+
readonly lumMod?: number;
|
|
48
|
+
readonly red?: number;
|
|
49
|
+
readonly redOff?: number;
|
|
50
|
+
readonly redMod?: number;
|
|
51
|
+
readonly green?: number;
|
|
52
|
+
readonly greenOff?: number;
|
|
53
|
+
readonly greenMod?: number;
|
|
54
|
+
readonly blue?: number;
|
|
55
|
+
readonly blueOff?: number;
|
|
56
|
+
readonly blueMod?: number;
|
|
57
|
+
readonly gamma?: boolean;
|
|
58
|
+
readonly invGamma?: boolean;
|
|
59
|
+
} //#endregion
|
|
60
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/hsl-color.d.ts
|
|
61
|
+
interface HslColorOptions {
|
|
62
|
+
readonly hue: number;
|
|
63
|
+
readonly sat: number;
|
|
64
|
+
readonly lum: number;
|
|
65
|
+
readonly transforms?: ColorTransformOptions;
|
|
66
|
+
} //#endregion
|
|
67
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/preset-color.d.ts
|
|
68
|
+
declare const PresetColor: {
|
|
69
|
+
readonly ALICE_BLUE: "aliceBlue";
|
|
70
|
+
readonly ANTIQUE_WHITE: "antiqueWhite";
|
|
71
|
+
readonly AQUA: "aqua";
|
|
72
|
+
readonly AQUAMARINE: "aquamarine";
|
|
73
|
+
readonly AZURE: "azure";
|
|
74
|
+
readonly BEIGE: "beige";
|
|
75
|
+
readonly BISQUE: "bisque";
|
|
76
|
+
readonly BLACK: "black";
|
|
77
|
+
readonly BLANCHED_ALMOND: "blanchedAlmond";
|
|
78
|
+
readonly BLUE: "blue";
|
|
79
|
+
readonly BLUE_VIOLET: "blueViolet";
|
|
80
|
+
readonly BROWN: "brown";
|
|
81
|
+
readonly BURLY_WOOD: "burlyWood";
|
|
82
|
+
readonly CADET_BLUE: "cadetBlue";
|
|
83
|
+
readonly CHARTREUSE: "chartreuse";
|
|
84
|
+
readonly CHOCOLATE: "chocolate";
|
|
85
|
+
readonly CORAL: "coral";
|
|
86
|
+
readonly CORNFLOWER_BLUE: "cornflowerBlue";
|
|
87
|
+
readonly CORNSILK: "cornsilk";
|
|
88
|
+
readonly CRIMSON: "crimson";
|
|
89
|
+
readonly CYAN: "cyan";
|
|
90
|
+
readonly DARK_BLUE: "darkBlue";
|
|
91
|
+
readonly DARK_CYAN: "darkCyan";
|
|
92
|
+
readonly DARK_GOLDENROD: "darkGoldenrod";
|
|
93
|
+
readonly DARK_GRAY: "darkGray";
|
|
94
|
+
readonly DARK_GREY: "darkGrey";
|
|
95
|
+
readonly DARK_GREEN: "darkGreen";
|
|
96
|
+
readonly DARK_KHAKI: "darkKhaki";
|
|
97
|
+
readonly DARK_MAGENTA: "darkMagenta";
|
|
98
|
+
readonly DARK_OLIVE_GREEN: "darkOliveGreen";
|
|
99
|
+
readonly DARK_ORANGE: "darkOrange";
|
|
100
|
+
readonly DARK_ORCHID: "darkOrchid";
|
|
101
|
+
readonly DARK_RED: "darkRed";
|
|
102
|
+
readonly DARK_SALMON: "darkSalmon";
|
|
103
|
+
readonly DARK_SEA_GREEN: "darkSeaGreen";
|
|
104
|
+
readonly DARK_SLATE_BLUE: "darkSlateBlue";
|
|
105
|
+
readonly DARK_SLATE_GRAY: "darkSlateGray";
|
|
106
|
+
readonly DARK_SLATE_GREY: "darkSlateGrey";
|
|
107
|
+
readonly DARK_TURQUOISE: "darkTurquoise";
|
|
108
|
+
readonly DARK_VIOLET: "darkViolet";
|
|
109
|
+
readonly DEEP_PINK: "deepPink";
|
|
110
|
+
readonly DEEP_SKY_BLUE: "deepSkyBlue";
|
|
111
|
+
readonly DIM_GRAY: "dimGray";
|
|
112
|
+
readonly DIM_GREY: "dimGrey";
|
|
113
|
+
readonly DODGER_BLUE: "dodgerBlue";
|
|
114
|
+
readonly FIREBRICK: "firebrick";
|
|
115
|
+
readonly FLORAL_WHITE: "floralWhite";
|
|
116
|
+
readonly FOREST_GREEN: "forestGreen";
|
|
117
|
+
readonly FUCHSIA: "fuchsia";
|
|
118
|
+
readonly GAINSBORO: "gainsboro";
|
|
119
|
+
readonly GHOST_WHITE: "ghostWhite";
|
|
120
|
+
readonly GOLD: "gold";
|
|
121
|
+
readonly GOLDENROD: "goldenrod";
|
|
122
|
+
readonly GRAY: "gray";
|
|
123
|
+
readonly GREY: "grey";
|
|
124
|
+
readonly GREEN: "green";
|
|
125
|
+
readonly GREEN_YELLOW: "greenYellow";
|
|
126
|
+
readonly HONEYDEW: "honeydew";
|
|
127
|
+
readonly HOT_PINK: "hotPink";
|
|
128
|
+
readonly INDIAN_RED: "indianRed";
|
|
129
|
+
readonly INDIGO: "indigo";
|
|
130
|
+
readonly IVORY: "ivory";
|
|
131
|
+
readonly KHAKI: "khaki";
|
|
132
|
+
readonly LAVENDER: "lavender";
|
|
133
|
+
readonly LAVENDER_BLUSH: "lavenderBlush";
|
|
134
|
+
readonly LAWN_GREEN: "lawnGreen";
|
|
135
|
+
readonly LEMON_CHIFFON: "lemonChiffon";
|
|
136
|
+
readonly LIGHT_BLUE: "lightBlue";
|
|
137
|
+
readonly LIGHT_CORAL: "lightCoral";
|
|
138
|
+
readonly LIGHT_CYAN: "lightCyan";
|
|
139
|
+
readonly LIGHT_GOLDENROD_YELLOW: "lightGoldenrodYellow";
|
|
140
|
+
readonly LIGHT_GRAY: "lightGray";
|
|
141
|
+
readonly LIGHT_GREY: "lightGrey";
|
|
142
|
+
readonly LIGHT_GREEN: "lightGreen";
|
|
143
|
+
readonly LIGHT_PINK: "lightPink";
|
|
144
|
+
readonly LIGHT_SALMON: "lightSalmon";
|
|
145
|
+
readonly LIGHT_SEA_GREEN: "lightSeaGreen";
|
|
146
|
+
readonly LIGHT_SKY_BLUE: "lightSkyBlue";
|
|
147
|
+
readonly LIGHT_SLATE_GRAY: "lightSlateGray";
|
|
148
|
+
readonly LIGHT_SLATE_GREY: "lightSlateGrey";
|
|
149
|
+
readonly LIGHT_STEEL_BLUE: "lightSteelBlue";
|
|
150
|
+
readonly LIGHT_YELLOW: "lightYellow";
|
|
151
|
+
readonly LIME: "lime";
|
|
152
|
+
readonly LIME_GREEN: "limeGreen";
|
|
153
|
+
readonly LINEN: "linen";
|
|
154
|
+
readonly MAGENTA: "magenta";
|
|
155
|
+
readonly MAROON: "maroon";
|
|
156
|
+
readonly MEDIUM_AQUAMARINE: "mediumAquamarine";
|
|
157
|
+
readonly MEDIUM_BLUE: "mediumBlue";
|
|
158
|
+
readonly MEDIUM_ORCHID: "mediumOrchid";
|
|
159
|
+
readonly MEDIUM_PURPLE: "mediumPurple";
|
|
160
|
+
readonly MEDIUM_SEA_GREEN: "mediumSeaGreen";
|
|
161
|
+
readonly MEDIUM_SLATE_BLUE: "mediumSlateBlue";
|
|
162
|
+
readonly MEDIUM_SPRING_GREEN: "mediumSpringGreen";
|
|
163
|
+
readonly MEDIUM_TURQUOISE: "mediumTurquoise";
|
|
164
|
+
readonly MEDIUM_VIOLET_RED: "mediumVioletRed";
|
|
165
|
+
readonly MIDNIGHT_BLUE: "midnightBlue";
|
|
166
|
+
readonly MINT_CREAM: "mintCream";
|
|
167
|
+
readonly MISTY_ROSE: "mistyRose";
|
|
168
|
+
readonly MOCCASIN: "moccasin";
|
|
169
|
+
readonly NAVAJO_WHITE: "navajoWhite";
|
|
170
|
+
readonly NAVY: "navy";
|
|
171
|
+
readonly OLD_LACE: "oldLace";
|
|
172
|
+
readonly OLIVE: "olive";
|
|
173
|
+
readonly OLIVE_DRAB: "oliveDrab";
|
|
174
|
+
readonly ORANGE: "orange";
|
|
175
|
+
readonly ORANGE_RED: "orangeRed";
|
|
176
|
+
readonly ORCHID: "orchid";
|
|
177
|
+
readonly PALE_GOLDENROD: "paleGoldenrod";
|
|
178
|
+
readonly PALE_GREEN: "paleGreen";
|
|
179
|
+
readonly PALE_TURQUOISE: "paleTurquoise";
|
|
180
|
+
readonly PALE_VIOLET_RED: "paleVioletRed";
|
|
181
|
+
readonly PAPAYA_WHIP: "papayaWhip";
|
|
182
|
+
readonly PEACH_PUFF: "peachPuff";
|
|
183
|
+
readonly PERU: "peru";
|
|
184
|
+
readonly PINK: "pink";
|
|
185
|
+
readonly PLUM: "plum";
|
|
186
|
+
readonly POWDER_BLUE: "powderBlue";
|
|
187
|
+
readonly PURPLE: "purple";
|
|
188
|
+
readonly RED: "red";
|
|
189
|
+
readonly ROSY_BROWN: "rosyBrown";
|
|
190
|
+
readonly ROYAL_BLUE: "royalBlue";
|
|
191
|
+
readonly SADDLE_BROWN: "saddleBrown";
|
|
192
|
+
readonly SALMON: "salmon";
|
|
193
|
+
readonly SANDY_BROWN: "sandyBrown";
|
|
194
|
+
readonly SEA_GREEN: "seaGreen";
|
|
195
|
+
readonly SEA_SHELL: "seaShell";
|
|
196
|
+
readonly SIENNA: "sienna";
|
|
197
|
+
readonly SILVER: "silver";
|
|
198
|
+
readonly SKY_BLUE: "skyBlue";
|
|
199
|
+
readonly SLATE_BLUE: "slateBlue";
|
|
200
|
+
readonly SLATE_GRAY: "slateGray";
|
|
201
|
+
readonly SLATE_GREY: "slateGrey";
|
|
202
|
+
readonly SNOW: "snow";
|
|
203
|
+
readonly SPRING_GREEN: "springGreen";
|
|
204
|
+
readonly STEEL_BLUE: "steelBlue";
|
|
205
|
+
readonly TAN: "tan";
|
|
206
|
+
readonly TEAL: "teal";
|
|
207
|
+
readonly THISTLE: "thistle";
|
|
208
|
+
readonly TOMATO: "tomato";
|
|
209
|
+
readonly TURQUOISE: "turquoise";
|
|
210
|
+
readonly VIOLET: "violet";
|
|
211
|
+
readonly WHEAT: "wheat";
|
|
212
|
+
readonly WHITE: "white";
|
|
213
|
+
readonly WHITE_SMOKE: "whiteSmoke";
|
|
214
|
+
readonly YELLOW: "yellow";
|
|
215
|
+
readonly YELLOW_GREEN: "yellowGreen";
|
|
216
|
+
};
|
|
217
|
+
interface PresetColorOptions {
|
|
218
|
+
readonly value: (typeof PresetColor)[keyof typeof PresetColor];
|
|
219
|
+
readonly transforms?: ColorTransformOptions;
|
|
220
|
+
} //#endregion
|
|
221
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/rgb-color.d.ts
|
|
222
|
+
interface RgbColorOptions {
|
|
223
|
+
readonly value: string;
|
|
224
|
+
readonly transforms?: ColorTransformOptions;
|
|
225
|
+
} //#endregion
|
|
226
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/scheme-color.d.ts
|
|
227
|
+
interface SchemeColorOptions {
|
|
228
|
+
readonly value: (typeof SchemeColor)[keyof typeof SchemeColor];
|
|
229
|
+
readonly transforms?: ColorTransformOptions;
|
|
230
|
+
}
|
|
231
|
+
declare const SchemeColor: {
|
|
232
|
+
readonly BG1: "bg1";
|
|
233
|
+
readonly TX1: "tx1";
|
|
234
|
+
readonly BG2: "bg2";
|
|
235
|
+
readonly TX2: "tx2";
|
|
236
|
+
readonly ACCENT1: "accent1";
|
|
237
|
+
readonly ACCENT2: "accent2";
|
|
238
|
+
readonly ACCENT3: "accent3";
|
|
239
|
+
readonly ACCENT4: "accent4";
|
|
240
|
+
readonly ACCENT5: "accent5";
|
|
241
|
+
readonly ACCENT6: "accent6";
|
|
242
|
+
readonly HLINK: "hlink";
|
|
243
|
+
readonly FOLHLINK: "folHlink";
|
|
244
|
+
readonly DK1: "dk1";
|
|
245
|
+
readonly LT1: "lt1";
|
|
246
|
+
readonly DK2: "dk2";
|
|
247
|
+
readonly LT2: "lt2";
|
|
248
|
+
readonly PHCLR: "phClr";
|
|
249
|
+
}; //#endregion
|
|
250
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/system-color.d.ts
|
|
251
|
+
declare const SystemColor: {
|
|
252
|
+
readonly SCROLL_BAR: "scrollBar";
|
|
253
|
+
readonly BACKGROUND: "background";
|
|
254
|
+
readonly ACTIVE_CAPTION: "activeCaption";
|
|
255
|
+
readonly INACTIVE_CAPTION: "inactiveCaption";
|
|
256
|
+
readonly MENU: "menu";
|
|
257
|
+
readonly WINDOW: "window";
|
|
258
|
+
readonly WINDOW_FRAME: "windowFrame";
|
|
259
|
+
readonly MENU_TEXT: "menuText";
|
|
260
|
+
readonly WINDOW_TEXT: "windowText";
|
|
261
|
+
readonly CAPTION_TEXT: "captionText";
|
|
262
|
+
readonly ACTIVE_BORDER: "activeBorder";
|
|
263
|
+
readonly INACTIVE_BORDER: "inactiveBorder";
|
|
264
|
+
readonly APP_WORKSPACE: "appWorkspace";
|
|
265
|
+
readonly HIGHLIGHT: "highlight";
|
|
266
|
+
readonly HIGHLIGHT_TEXT: "highlightText";
|
|
267
|
+
readonly BTN_FACE: "btnFace";
|
|
268
|
+
readonly BTN_SHADOW: "btnShadow";
|
|
269
|
+
readonly GRAY_TEXT: "grayText";
|
|
270
|
+
readonly BTN_TEXT: "btnText";
|
|
271
|
+
readonly INACTIVE_CAPTION_TEXT: "inactiveCaptionText";
|
|
272
|
+
readonly BTN_HIGHLIGHT: "btnHighlight";
|
|
273
|
+
readonly THREE_D_DK_SHADOW: "3dDkShadow";
|
|
274
|
+
readonly THREE_D_LIGHT: "3dLight";
|
|
275
|
+
readonly INFO_TEXT: "infoText";
|
|
276
|
+
readonly INFO_BK: "infoBk";
|
|
277
|
+
readonly HOT_LIGHT: "hotLight";
|
|
278
|
+
readonly GRADIENT_ACTIVE_CAPTION: "gradientActiveCaption";
|
|
279
|
+
readonly GRADIENT_INACTIVE_CAPTION: "gradientInactiveCaption";
|
|
280
|
+
readonly MENU_HIGHLIGHT: "menuHighlight";
|
|
281
|
+
readonly MENU_BAR: "menuBar";
|
|
282
|
+
};
|
|
283
|
+
interface SystemColorOptions {
|
|
284
|
+
readonly value: (typeof SystemColor)[keyof typeof SystemColor];
|
|
285
|
+
readonly lastClr?: string;
|
|
286
|
+
readonly transforms?: ColorTransformOptions;
|
|
287
|
+
} //#endregion
|
|
288
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/solid-fill.d.ts
|
|
289
|
+
type SolidFillOptions = RgbColorOptions | SchemeColorOptions | HslColorOptions | SystemColorOptions | PresetColorOptions; //#endregion
|
|
290
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/fill-overlay.d.ts
|
|
291
|
+
declare const BlendMode: {
|
|
292
|
+
readonly OVER: "over";
|
|
293
|
+
readonly MULTIPLY: "mult";
|
|
294
|
+
readonly SCREEN: "screen";
|
|
295
|
+
readonly DARKEN: "darken";
|
|
296
|
+
readonly LIGHTEN: "lighten";
|
|
297
|
+
};
|
|
298
|
+
interface FillOverlayEffectOptions {
|
|
299
|
+
readonly blend: (typeof BlendMode)[keyof typeof BlendMode];
|
|
300
|
+
readonly color: SolidFillOptions;
|
|
301
|
+
} //#endregion
|
|
302
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/glow.d.ts
|
|
303
|
+
interface GlowEffectOptions {
|
|
304
|
+
readonly rad?: number;
|
|
305
|
+
readonly color: SolidFillOptions;
|
|
306
|
+
} //#endregion
|
|
307
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/inner-shadow.d.ts
|
|
308
|
+
interface InnerShadowEffectOptions {
|
|
309
|
+
readonly blurRad?: number;
|
|
310
|
+
readonly dist?: number;
|
|
311
|
+
readonly dir?: number;
|
|
312
|
+
readonly color: SolidFillOptions;
|
|
313
|
+
} //#endregion
|
|
314
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/outer-shadow.d.ts
|
|
315
|
+
declare const RectAlignment: {
|
|
316
|
+
readonly TOP_LEFT: "tl";
|
|
317
|
+
readonly TOP: "t";
|
|
318
|
+
readonly TOP_RIGHT: "tr";
|
|
319
|
+
readonly LEFT: "l";
|
|
320
|
+
readonly CENTER: "ctr";
|
|
321
|
+
readonly RIGHT: "r";
|
|
322
|
+
readonly BOTTOM_LEFT: "bl";
|
|
323
|
+
readonly BOTTOM: "b";
|
|
324
|
+
readonly BOTTOM_RIGHT: "br";
|
|
325
|
+
};
|
|
326
|
+
interface OuterShadowEffectOptions {
|
|
327
|
+
readonly blurRad?: number;
|
|
328
|
+
readonly dist?: number;
|
|
329
|
+
readonly dir?: number;
|
|
330
|
+
readonly sx?: number;
|
|
331
|
+
readonly sy?: number;
|
|
332
|
+
readonly kx?: number;
|
|
333
|
+
readonly ky?: number;
|
|
334
|
+
readonly algn?: keyof typeof RectAlignment;
|
|
335
|
+
readonly rotWithShape?: boolean;
|
|
336
|
+
readonly color: SolidFillOptions;
|
|
337
|
+
} //#endregion
|
|
338
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/preset-shadow.d.ts
|
|
339
|
+
declare const PresetShadowVal: {
|
|
340
|
+
readonly SHDW1: "shdw1";
|
|
341
|
+
readonly SHDW2: "shdw2";
|
|
342
|
+
readonly SHDW3: "shdw3";
|
|
343
|
+
readonly SHDW4: "shdw4";
|
|
344
|
+
readonly SHDW5: "shdw5";
|
|
345
|
+
readonly SHDW6: "shdw6";
|
|
346
|
+
readonly SHDW7: "shdw7";
|
|
347
|
+
readonly SHDW8: "shdw8";
|
|
348
|
+
readonly SHDW9: "shdw9";
|
|
349
|
+
readonly SHDW10: "shdw10";
|
|
350
|
+
readonly SHDW11: "shdw11";
|
|
351
|
+
readonly SHDW12: "shdw12";
|
|
352
|
+
readonly SHDW13: "shdw13";
|
|
353
|
+
readonly SHDW14: "shdw14";
|
|
354
|
+
readonly SHDW15: "shdw15";
|
|
355
|
+
readonly SHDW16: "shdw16";
|
|
356
|
+
readonly SHDW17: "shdw17";
|
|
357
|
+
readonly SHDW18: "shdw18";
|
|
358
|
+
readonly SHDW19: "shdw19";
|
|
359
|
+
readonly SHDW20: "shdw20";
|
|
360
|
+
};
|
|
361
|
+
interface PresetShadowEffectOptions {
|
|
362
|
+
readonly prst: keyof typeof PresetShadowVal;
|
|
363
|
+
readonly dist?: number;
|
|
364
|
+
readonly dir?: number;
|
|
365
|
+
readonly color: SolidFillOptions;
|
|
366
|
+
} //#endregion
|
|
367
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/reflection.d.ts
|
|
368
|
+
interface ReflectionEffectOptions {
|
|
369
|
+
readonly blurRad?: number;
|
|
370
|
+
readonly stA?: number;
|
|
371
|
+
readonly stPos?: number;
|
|
372
|
+
readonly endA?: number;
|
|
373
|
+
readonly endPos?: number;
|
|
374
|
+
readonly dist?: number;
|
|
375
|
+
readonly dir?: number;
|
|
376
|
+
readonly fadeDir?: number;
|
|
377
|
+
readonly sx?: number;
|
|
378
|
+
readonly sy?: number;
|
|
379
|
+
readonly kx?: number;
|
|
380
|
+
readonly ky?: number;
|
|
381
|
+
readonly algn?: string;
|
|
382
|
+
readonly rotWithShape?: boolean;
|
|
383
|
+
} //#endregion
|
|
384
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/effect-list.d.ts
|
|
385
|
+
interface BlurEffectOptions {
|
|
386
|
+
readonly rad?: number;
|
|
387
|
+
readonly grow?: boolean;
|
|
388
|
+
}
|
|
389
|
+
interface EffectListOptions {
|
|
390
|
+
readonly blur?: BlurEffectOptions;
|
|
391
|
+
readonly fillOverlay?: FillOverlayEffectOptions;
|
|
392
|
+
readonly glow?: GlowEffectOptions;
|
|
393
|
+
readonly innerShadow?: InnerShadowEffectOptions;
|
|
394
|
+
readonly outerShadow?: OuterShadowEffectOptions;
|
|
395
|
+
readonly presetShadow?: PresetShadowEffectOptions;
|
|
396
|
+
readonly reflection?: ReflectionEffectOptions | true;
|
|
397
|
+
readonly softEdge?: number;
|
|
398
|
+
} //#endregion
|
|
399
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/outline.d.ts
|
|
400
|
+
declare const LineCap: {
|
|
401
|
+
readonly ROUND: "rnd";
|
|
402
|
+
readonly SQUARE: "sq";
|
|
403
|
+
readonly FLAT: "flat";
|
|
404
|
+
};
|
|
405
|
+
declare const CompoundLine: {
|
|
406
|
+
readonly SINGLE: "sng";
|
|
407
|
+
readonly DOUBLE: "dbl";
|
|
408
|
+
readonly THICK_THIN: "thickThin";
|
|
409
|
+
readonly THIN_THICK: "thinThick";
|
|
410
|
+
readonly TRI: "tri";
|
|
411
|
+
};
|
|
412
|
+
declare const PenAlignment: {
|
|
413
|
+
readonly CENTER: "ctr";
|
|
414
|
+
readonly INSET: "in";
|
|
415
|
+
};
|
|
416
|
+
declare const PresetDash: {
|
|
417
|
+
readonly SOLID: "solid";
|
|
418
|
+
readonly DOT: "dot";
|
|
419
|
+
readonly DASH: "dash";
|
|
420
|
+
readonly LG_DASH: "lgDash";
|
|
421
|
+
readonly DASH_DOT: "dashDot";
|
|
422
|
+
readonly LG_DASH_DOT: "lgDashDot";
|
|
423
|
+
readonly LG_DASH_DOT_DOT: "lgDashDotDot";
|
|
424
|
+
readonly SYS_DASH: "sysDash";
|
|
425
|
+
readonly SYS_DOT: "sysDot";
|
|
426
|
+
readonly SYS_DASH_DOT: "sysDashDot";
|
|
427
|
+
readonly SYS_DASH_DOT_DOT: "sysDashDotDot";
|
|
428
|
+
};
|
|
429
|
+
declare const LineJoin: {
|
|
430
|
+
readonly ROUND: "round";
|
|
431
|
+
readonly BEVEL: "bevel";
|
|
432
|
+
readonly MITER: "miter";
|
|
433
|
+
};
|
|
434
|
+
interface OutlineAttributes {
|
|
435
|
+
readonly width?: number;
|
|
436
|
+
readonly cap?: keyof typeof LineCap;
|
|
437
|
+
readonly compoundLine?: keyof typeof CompoundLine;
|
|
438
|
+
readonly align?: keyof typeof PenAlignment;
|
|
439
|
+
readonly dash?: keyof typeof PresetDash;
|
|
440
|
+
readonly join?: keyof typeof LineJoin;
|
|
441
|
+
readonly miterLimit?: number;
|
|
442
|
+
}
|
|
443
|
+
interface OutlineFillProperties {
|
|
444
|
+
readonly type?: "noFill" | "solidFill";
|
|
445
|
+
readonly color?: SolidFillOptions;
|
|
446
|
+
}
|
|
447
|
+
type OutlineOptions = OutlineAttributes & OutlineFillProperties; //#endregion
|
|
448
|
+
//#region src/file/drawing/inline/graphic/graphic-data/wpg/wpg-group.d.ts
|
|
449
|
+
//#endregion
|
|
450
|
+
//#region src/file/drawing/text-wrap/text-wrapping.d.ts
|
|
451
|
+
declare const TextWrappingType: {
|
|
452
|
+
readonly NONE: 0;
|
|
453
|
+
readonly SQUARE: 1;
|
|
454
|
+
readonly TIGHT: 2;
|
|
455
|
+
readonly TOP_AND_BOTTOM: 3;
|
|
456
|
+
};
|
|
457
|
+
declare const TextWrappingSide: {
|
|
458
|
+
readonly BOTH_SIDES: "bothSides";
|
|
459
|
+
readonly LEFT: "left";
|
|
460
|
+
readonly RIGHT: "right";
|
|
461
|
+
readonly LARGEST: "largest";
|
|
462
|
+
};
|
|
463
|
+
interface ITextWrapping {
|
|
464
|
+
readonly type: (typeof TextWrappingType)[keyof typeof TextWrappingType];
|
|
465
|
+
readonly side?: (typeof TextWrappingSide)[keyof typeof TextWrappingSide];
|
|
466
|
+
readonly margins?: IDistance;
|
|
467
|
+
} //#endregion
|
|
468
|
+
//#region src/file/drawing/text-wrap/wrap-none.d.ts
|
|
469
|
+
//#endregion
|
|
470
|
+
//#region src/file/shared/alignment.d.ts
|
|
471
|
+
declare const HorizontalPositionAlign: {
|
|
472
|
+
readonly CENTER: "center";
|
|
473
|
+
readonly INSIDE: "inside";
|
|
474
|
+
readonly LEFT: "left";
|
|
475
|
+
readonly OUTSIDE: "outside";
|
|
476
|
+
readonly RIGHT: "right";
|
|
477
|
+
};
|
|
478
|
+
declare const VerticalPositionAlign: {
|
|
479
|
+
readonly BOTTOM: "bottom";
|
|
480
|
+
readonly CENTER: "center";
|
|
481
|
+
readonly INSIDE: "inside";
|
|
482
|
+
readonly OUTSIDE: "outside";
|
|
483
|
+
readonly TOP: "top";
|
|
484
|
+
}; //#endregion
|
|
485
|
+
//#region src/file/drawing/floating/floating-position.d.ts
|
|
486
|
+
declare const HorizontalPositionRelativeFrom: {
|
|
487
|
+
readonly CHARACTER: "character";
|
|
488
|
+
readonly COLUMN: "column";
|
|
489
|
+
readonly INSIDE_MARGIN: "insideMargin";
|
|
490
|
+
readonly LEFT_MARGIN: "leftMargin";
|
|
491
|
+
readonly MARGIN: "margin";
|
|
492
|
+
readonly OUTSIDE_MARGIN: "outsideMargin";
|
|
493
|
+
readonly PAGE: "page";
|
|
494
|
+
readonly RIGHT_MARGIN: "rightMargin";
|
|
495
|
+
};
|
|
496
|
+
declare const VerticalPositionRelativeFrom: {
|
|
497
|
+
readonly BOTTOM_MARGIN: "bottomMargin";
|
|
498
|
+
readonly INSIDE_MARGIN: "insideMargin";
|
|
499
|
+
readonly LINE: "line";
|
|
500
|
+
readonly MARGIN: "margin";
|
|
501
|
+
readonly OUTSIDE_MARGIN: "outsideMargin";
|
|
502
|
+
readonly PAGE: "page";
|
|
503
|
+
readonly PARAGRAPH: "paragraph";
|
|
504
|
+
readonly TOP_MARGIN: "topMargin";
|
|
505
|
+
};
|
|
506
|
+
interface IHorizontalPositionOptions {
|
|
507
|
+
readonly relative?: (typeof HorizontalPositionRelativeFrom)[keyof typeof HorizontalPositionRelativeFrom];
|
|
508
|
+
readonly align?: (typeof HorizontalPositionAlign)[keyof typeof HorizontalPositionAlign];
|
|
509
|
+
readonly offset?: number;
|
|
510
|
+
}
|
|
511
|
+
interface IVerticalPositionOptions {
|
|
512
|
+
readonly relative?: (typeof VerticalPositionRelativeFrom)[keyof typeof VerticalPositionRelativeFrom];
|
|
513
|
+
readonly align?: (typeof VerticalPositionAlign)[keyof typeof VerticalPositionAlign];
|
|
514
|
+
readonly offset?: number;
|
|
515
|
+
}
|
|
516
|
+
interface IMargins {
|
|
517
|
+
readonly left?: number;
|
|
518
|
+
readonly bottom?: number;
|
|
519
|
+
readonly top?: number;
|
|
520
|
+
readonly right?: number;
|
|
521
|
+
}
|
|
522
|
+
interface IFloating {
|
|
523
|
+
readonly horizontalPosition: IHorizontalPositionOptions;
|
|
524
|
+
readonly verticalPosition: IVerticalPositionOptions;
|
|
525
|
+
readonly allowOverlap?: boolean;
|
|
526
|
+
readonly lockAnchor?: boolean;
|
|
527
|
+
readonly behindDocument?: boolean;
|
|
528
|
+
readonly layoutInCell?: boolean;
|
|
529
|
+
readonly margins?: IMargins;
|
|
530
|
+
readonly wrap?: ITextWrapping;
|
|
531
|
+
readonly zIndex?: number;
|
|
532
|
+
} //#endregion
|
|
533
|
+
//#region src/file/drawing/floating/simple-pos.d.ts
|
|
534
|
+
//#endregion
|
|
535
|
+
//#region src/file/media/media.d.ts
|
|
536
|
+
interface IMediaTransformation {
|
|
537
|
+
readonly offset?: {
|
|
538
|
+
readonly top?: number;
|
|
539
|
+
readonly left?: number;
|
|
540
|
+
};
|
|
541
|
+
readonly width: number;
|
|
542
|
+
readonly height: number;
|
|
543
|
+
readonly flip?: {
|
|
544
|
+
readonly vertical?: boolean;
|
|
545
|
+
readonly horizontal?: boolean;
|
|
546
|
+
};
|
|
547
|
+
readonly rotation?: number;
|
|
548
|
+
}
|
|
549
|
+
//#endregion
|
|
550
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/blip/blip-effects.d.ts
|
|
551
|
+
interface LuminanceEffectOptions {
|
|
552
|
+
readonly bright?: number;
|
|
553
|
+
readonly contrast?: number;
|
|
554
|
+
}
|
|
555
|
+
interface HSLEffectOptions {
|
|
556
|
+
readonly hue?: number;
|
|
557
|
+
readonly sat?: number;
|
|
558
|
+
readonly lum?: number;
|
|
559
|
+
}
|
|
560
|
+
interface TintEffectOptions {
|
|
561
|
+
readonly hue?: number;
|
|
562
|
+
readonly amt?: number;
|
|
563
|
+
}
|
|
564
|
+
interface DuotoneEffectOptions {
|
|
565
|
+
readonly color1: SolidFillOptions;
|
|
566
|
+
readonly color2: SolidFillOptions;
|
|
567
|
+
}
|
|
568
|
+
interface BiLevelEffectOptions {
|
|
569
|
+
readonly thresh: number;
|
|
570
|
+
}
|
|
571
|
+
interface AlphaReplaceEffectOptions {
|
|
572
|
+
readonly amount: number;
|
|
573
|
+
}
|
|
574
|
+
interface AlphaBiLevelEffectOptions {
|
|
575
|
+
readonly thresh: number;
|
|
576
|
+
}
|
|
577
|
+
interface AlphaModulateFixedEffectOptions {
|
|
578
|
+
readonly amount?: number;
|
|
579
|
+
}
|
|
580
|
+
interface ColorChangeEffectOptions {
|
|
581
|
+
readonly from: SolidFillOptions;
|
|
582
|
+
readonly to: SolidFillOptions;
|
|
583
|
+
readonly useAlpha?: boolean;
|
|
584
|
+
}
|
|
585
|
+
interface ColorReplaceEffectOptions {
|
|
586
|
+
readonly color: SolidFillOptions;
|
|
587
|
+
}
|
|
588
|
+
interface BlipBlurEffectOptions {
|
|
589
|
+
readonly rad?: number;
|
|
590
|
+
readonly grow?: boolean;
|
|
591
|
+
}
|
|
592
|
+
interface BlipEffectsOptions {
|
|
593
|
+
readonly grayscale?: boolean;
|
|
594
|
+
readonly luminance?: LuminanceEffectOptions;
|
|
595
|
+
readonly hsl?: HSLEffectOptions;
|
|
596
|
+
readonly tint?: TintEffectOptions;
|
|
597
|
+
readonly duotone?: DuotoneEffectOptions;
|
|
598
|
+
readonly biLevel?: BiLevelEffectOptions;
|
|
599
|
+
readonly alphaCeiling?: boolean;
|
|
600
|
+
readonly alphaFloor?: boolean;
|
|
601
|
+
readonly alphaInverse?: SolidFillOptions;
|
|
602
|
+
readonly alphaModFix?: AlphaModulateFixedEffectOptions;
|
|
603
|
+
readonly alphaRepl?: AlphaReplaceEffectOptions;
|
|
604
|
+
readonly alphaBiLevel?: AlphaBiLevelEffectOptions;
|
|
605
|
+
readonly colorChange?: ColorChangeEffectOptions;
|
|
606
|
+
readonly colorRepl?: ColorReplaceEffectOptions;
|
|
607
|
+
readonly blur?: BlipBlurEffectOptions;
|
|
608
|
+
} //#endregion
|
|
609
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/blip/tile.d.ts
|
|
610
|
+
declare const TileFlipMode: {
|
|
611
|
+
readonly NONE: "none";
|
|
612
|
+
readonly X: "x";
|
|
613
|
+
readonly Y: "y";
|
|
614
|
+
readonly XY: "xy";
|
|
615
|
+
};
|
|
616
|
+
declare const TileAlignment: {
|
|
617
|
+
readonly TOP_LEFT: "tl";
|
|
618
|
+
readonly TOP: "t";
|
|
619
|
+
readonly TOP_RIGHT: "tr";
|
|
620
|
+
readonly LEFT: "l";
|
|
621
|
+
readonly CENTER: "ctr";
|
|
622
|
+
readonly RIGHT: "r";
|
|
623
|
+
readonly BOTTOM_LEFT: "bl";
|
|
624
|
+
readonly BOTTOM: "b";
|
|
625
|
+
readonly BOTTOM_RIGHT: "br";
|
|
626
|
+
};
|
|
627
|
+
interface TileOptions {
|
|
628
|
+
readonly tx?: number;
|
|
629
|
+
readonly ty?: number;
|
|
630
|
+
readonly sx?: number;
|
|
631
|
+
readonly sy?: number;
|
|
632
|
+
readonly flip?: keyof typeof TileFlipMode;
|
|
633
|
+
readonly align?: keyof typeof TileAlignment;
|
|
634
|
+
} //#endregion
|
|
635
|
+
//#region src/file/drawing/drawing.d.ts
|
|
636
|
+
interface IDistance {
|
|
637
|
+
readonly distT?: number;
|
|
638
|
+
readonly distB?: number;
|
|
639
|
+
readonly distL?: number;
|
|
640
|
+
readonly distR?: number;
|
|
641
|
+
}
|
|
642
|
+
//#endregion
|
|
643
|
+
//#region src/file/paragraph/run/image-run.d.ts
|
|
644
|
+
interface CoreImageOptions {
|
|
645
|
+
readonly transformation: IMediaTransformation;
|
|
646
|
+
readonly floating?: IFloating;
|
|
647
|
+
readonly altText?: DocPropertiesOptions;
|
|
648
|
+
readonly outline?: OutlineOptions;
|
|
649
|
+
readonly solidFill?: SolidFillOptions;
|
|
650
|
+
readonly effects?: EffectListOptions;
|
|
651
|
+
readonly blipEffects?: BlipEffectsOptions;
|
|
652
|
+
readonly srcRect?: SourceRectangleOptions$1;
|
|
653
|
+
readonly tile?: TileOptions;
|
|
654
|
+
}
|
|
655
|
+
interface RegularImageOptions {
|
|
656
|
+
readonly type: "jpg" | "png" | "gif" | "bmp" | "tif" | "ico" | "emf" | "wmf";
|
|
657
|
+
readonly data: DataType;
|
|
658
|
+
}
|
|
659
|
+
interface SvgMediaOptions {
|
|
660
|
+
readonly type: "svg";
|
|
661
|
+
readonly data: DataType;
|
|
662
|
+
readonly fallback: RegularImageOptions;
|
|
663
|
+
}
|
|
664
|
+
type IImageOptions = (RegularImageOptions | SvgMediaOptions) & CoreImageOptions;
|
|
665
|
+
//#endregion
|
|
666
|
+
//#region src/types.d.ts
|
|
667
|
+
/**
|
|
668
|
+
* Border definition (compatible with docx.js BorderOptions)
|
|
669
|
+
* Used by paragraphs, table cells, and blockquotes
|
|
670
|
+
*/
|
|
671
|
+
interface Border {
|
|
672
|
+
/** Border color (hex without #, e.g., "FF0000" or "auto") */
|
|
673
|
+
color?: string;
|
|
674
|
+
/** Border size (eighth-points, 1/8 pt) */
|
|
675
|
+
size?: number;
|
|
676
|
+
/** Border style */
|
|
677
|
+
style?: "single" | "dashed" | "dotted" | "double" | "dotDash" | "dotDotDash" | "none";
|
|
678
|
+
/** Space between border and content (points) */
|
|
679
|
+
space?: number;
|
|
680
|
+
}
|
|
681
|
+
/**
|
|
682
|
+
* Shading definition (compatible with docx.js ShadingOptions)
|
|
683
|
+
* Used for paragraph and table cell background colors
|
|
684
|
+
*/
|
|
685
|
+
interface Shading {
|
|
686
|
+
/** Fill color (hex without #, e.g., "FF0000") */
|
|
687
|
+
fill?: string;
|
|
688
|
+
/** Pattern color (hex without #) */
|
|
689
|
+
color?: string;
|
|
690
|
+
/** Shading pattern type (e.g., "clear", "percent-10") */
|
|
691
|
+
type?: string;
|
|
692
|
+
}
|
|
693
|
+
type ImageFloatingOptions = {
|
|
694
|
+
horizontalPosition: IHorizontalPositionOptions;
|
|
695
|
+
verticalPosition: IVerticalPositionOptions;
|
|
696
|
+
} & Partial<Omit<IFloating, "horizontalPosition" | "verticalPosition">>;
|
|
697
|
+
type ImageOutlineOptions = IImageOptions["outline"];
|
|
698
|
+
/**
|
|
699
|
+
* Crop rectangle (DOCX a:srcRect format).
|
|
700
|
+
* Values are in 1/100000 of a percentage (0-100000).
|
|
701
|
+
* Aligned with docx-plus SourceRectangleOptions.
|
|
702
|
+
*/
|
|
703
|
+
interface SourceRectangleOptions {
|
|
704
|
+
left?: number;
|
|
705
|
+
top?: number;
|
|
706
|
+
right?: number;
|
|
707
|
+
bottom?: number;
|
|
708
|
+
}
|
|
709
|
+
interface TextNode {
|
|
710
|
+
type: "text";
|
|
711
|
+
text: string;
|
|
712
|
+
marks?: Array<Mark>;
|
|
713
|
+
}
|
|
714
|
+
interface HardBreakNode {
|
|
715
|
+
type: "hardBreak";
|
|
716
|
+
marks?: Array<Mark>;
|
|
717
|
+
}
|
|
718
|
+
interface Mark {
|
|
719
|
+
type: "bold" | "italic" | "underline" | "strike" | "code" | "textStyle" | "link" | "highlight" | "subscript" | "superscript";
|
|
720
|
+
attrs?: {
|
|
721
|
+
color?: string;
|
|
722
|
+
backgroundColor?: string;
|
|
723
|
+
fontSize?: string;
|
|
724
|
+
fontFamily?: string;
|
|
725
|
+
lineHeight?: string;
|
|
726
|
+
href?: string;
|
|
727
|
+
target?: string;
|
|
728
|
+
rel?: string;
|
|
729
|
+
class?: string | null;
|
|
730
|
+
[key: string]: unknown;
|
|
731
|
+
};
|
|
732
|
+
}
|
|
733
|
+
interface DocumentNode extends JSONContent {
|
|
734
|
+
type: "doc";
|
|
735
|
+
content?: Array<BlockNode>;
|
|
736
|
+
}
|
|
737
|
+
interface ParagraphNode extends JSONContent {
|
|
738
|
+
type: "paragraph";
|
|
739
|
+
attrs?: {
|
|
740
|
+
textAlign?: "left" | "center" | "right" | "justify";
|
|
741
|
+
indentLeft?: string;
|
|
742
|
+
indentRight?: string;
|
|
743
|
+
indentFirstLine?: string;
|
|
744
|
+
spacingBefore?: string;
|
|
745
|
+
spacingAfter?: string;
|
|
746
|
+
shading?: Shading;
|
|
747
|
+
borderTop?: Border;
|
|
748
|
+
borderBottom?: Border;
|
|
749
|
+
borderLeft?: Border;
|
|
750
|
+
borderRight?: Border;
|
|
751
|
+
};
|
|
752
|
+
content?: Array<TextNode | HardBreakNode | ImageNode>;
|
|
753
|
+
}
|
|
754
|
+
interface HeadingNode extends JSONContent {
|
|
755
|
+
type: "heading";
|
|
756
|
+
attrs: {
|
|
757
|
+
level: 1 | 2 | 3 | 4 | 5 | 6;
|
|
758
|
+
indentLeft?: string;
|
|
759
|
+
indentRight?: string;
|
|
760
|
+
indentFirstLine?: string;
|
|
761
|
+
spacingBefore?: string;
|
|
762
|
+
spacingAfter?: string;
|
|
763
|
+
textAlign?: "left" | "right" | "center" | "justify";
|
|
764
|
+
shading?: Shading;
|
|
765
|
+
borderTop?: Border;
|
|
766
|
+
borderBottom?: Border;
|
|
767
|
+
borderLeft?: Border;
|
|
768
|
+
borderRight?: Border;
|
|
769
|
+
};
|
|
770
|
+
content?: Array<TextNode | HardBreakNode>;
|
|
771
|
+
}
|
|
772
|
+
interface BlockquoteNode extends JSONContent {
|
|
773
|
+
type: "blockquote";
|
|
774
|
+
content?: Array<ParagraphNode>;
|
|
775
|
+
}
|
|
776
|
+
interface CodeBlockNode extends JSONContent {
|
|
777
|
+
type: "codeBlock";
|
|
778
|
+
attrs?: {
|
|
779
|
+
language?: string;
|
|
780
|
+
};
|
|
781
|
+
content?: Array<TextNode>;
|
|
782
|
+
}
|
|
783
|
+
interface HorizontalRuleNode extends JSONContent {
|
|
784
|
+
type: "horizontalRule";
|
|
785
|
+
}
|
|
786
|
+
interface BulletListNode extends JSONContent {
|
|
787
|
+
type: "bulletList";
|
|
788
|
+
content?: Array<ListItemNode>;
|
|
789
|
+
}
|
|
790
|
+
interface OrderedListNode extends JSONContent {
|
|
791
|
+
type: "orderedList";
|
|
792
|
+
attrs?: {
|
|
793
|
+
start?: number;
|
|
794
|
+
order?: number;
|
|
795
|
+
type?: string | null;
|
|
796
|
+
};
|
|
797
|
+
content?: Array<ListItemNode>;
|
|
798
|
+
}
|
|
799
|
+
interface TaskListNode extends JSONContent {
|
|
800
|
+
type: "taskList";
|
|
801
|
+
content?: Array<TaskItemNode>;
|
|
802
|
+
}
|
|
803
|
+
interface ListItemNode extends JSONContent {
|
|
804
|
+
type: "listItem";
|
|
805
|
+
content?: Array<ParagraphNode>;
|
|
806
|
+
}
|
|
807
|
+
interface TaskItemNode extends JSONContent {
|
|
808
|
+
type: "taskItem";
|
|
809
|
+
attrs?: {
|
|
810
|
+
checked?: boolean;
|
|
811
|
+
};
|
|
812
|
+
content?: Array<ParagraphNode>;
|
|
813
|
+
}
|
|
814
|
+
interface TableNode extends JSONContent {
|
|
815
|
+
type: "table";
|
|
816
|
+
attrs?: {
|
|
817
|
+
marginTop?: number | null;
|
|
818
|
+
marginBottom?: number | null;
|
|
819
|
+
marginLeft?: number | null;
|
|
820
|
+
marginRight?: number | null;
|
|
821
|
+
};
|
|
822
|
+
content?: Array<TableRowNode>;
|
|
823
|
+
}
|
|
824
|
+
interface TableRowNode extends JSONContent {
|
|
825
|
+
type: "tableRow";
|
|
826
|
+
attrs?: {
|
|
827
|
+
rowHeight?: string | null;
|
|
828
|
+
};
|
|
829
|
+
content?: Array<TableCellNode | TableHeaderNode>;
|
|
830
|
+
}
|
|
831
|
+
interface TableCellNode extends JSONContent {
|
|
832
|
+
type: "tableCell";
|
|
833
|
+
attrs?: {
|
|
834
|
+
colspan?: number;
|
|
835
|
+
rowspan?: number;
|
|
836
|
+
colwidth?: number[] | null;
|
|
837
|
+
backgroundColor?: string | null;
|
|
838
|
+
verticalAlign?: "top" | "middle" | "bottom" | null;
|
|
839
|
+
borderTop?: Border;
|
|
840
|
+
borderBottom?: Border;
|
|
841
|
+
borderLeft?: Border;
|
|
842
|
+
borderRight?: Border;
|
|
843
|
+
};
|
|
844
|
+
content?: Array<ParagraphNode>;
|
|
845
|
+
}
|
|
846
|
+
interface TableHeaderNode extends JSONContent {
|
|
847
|
+
type: "tableHeader";
|
|
848
|
+
attrs?: {
|
|
849
|
+
colspan?: number;
|
|
850
|
+
rowspan?: number;
|
|
851
|
+
colwidth?: number[] | null;
|
|
852
|
+
backgroundColor?: string | null;
|
|
853
|
+
verticalAlign?: "top" | "middle" | "bottom" | null;
|
|
854
|
+
borderTop?: Border;
|
|
855
|
+
borderBottom?: Border;
|
|
856
|
+
borderLeft?: Border;
|
|
857
|
+
borderRight?: Border;
|
|
858
|
+
};
|
|
859
|
+
content?: Array<ParagraphNode>;
|
|
860
|
+
}
|
|
861
|
+
interface ImageNode extends JSONContent {
|
|
862
|
+
type: "image";
|
|
863
|
+
attrs?: {
|
|
864
|
+
src: string;
|
|
865
|
+
alt?: string | null;
|
|
866
|
+
title?: string | null;
|
|
867
|
+
width?: number | null;
|
|
868
|
+
height?: number | null;
|
|
869
|
+
rotation?: number;
|
|
870
|
+
floating?: ImageFloatingOptions;
|
|
871
|
+
outline?: ImageOutlineOptions;
|
|
872
|
+
crop?: SourceRectangleOptions;
|
|
873
|
+
};
|
|
874
|
+
}
|
|
875
|
+
interface DetailsNode extends JSONContent {
|
|
876
|
+
type: "details";
|
|
877
|
+
content?: Array<DetailsSummaryNode | DetailsContentNode>;
|
|
878
|
+
}
|
|
879
|
+
interface DetailsSummaryNode extends JSONContent {
|
|
880
|
+
type: "detailsSummary";
|
|
881
|
+
content?: Array<TextNode | HardBreakNode>;
|
|
882
|
+
}
|
|
883
|
+
interface DetailsContentNode extends JSONContent {
|
|
884
|
+
type: "detailsContent";
|
|
885
|
+
content?: Array<BlockNode>;
|
|
886
|
+
}
|
|
887
|
+
type TextContent = TextNode | HardBreakNode;
|
|
888
|
+
type BlockNode = ParagraphNode | HeadingNode | BlockquoteNode | CodeBlockNode | HorizontalRuleNode | BulletListNode | OrderedListNode | TaskListNode | TableNode | ImageNode | DetailsNode;
|
|
889
|
+
//#endregion
|
|
890
|
+
export { TextNode as A, TableCellNode as C, TaskItemNode as D, TableRowNode as E, TaskListNode as O, SourceRectangleOptions as S, TableNode as T, ListItemNode as _, CodeBlockNode as a, ParagraphNode as b, DetailsSummaryNode as c, HeadingNode as d, HorizontalRuleNode as f, JSONContent as g, ImageOutlineOptions as h, BulletListNode as i, TextContent as k, DocumentNode as l, ImageNode as m, BlockquoteNode as n, DetailsContentNode as o, ImageFloatingOptions as p, Border as r, DetailsNode as s, BlockNode as t, HardBreakNode as u, Mark as v, TableHeaderNode as w, Shading as x, OrderedListNode as y };
|