@sunertech/docx 10.0.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/LICENSE +21 -0
- package/README.md +124 -0
- package/dist/index.cjs +29922 -0
- package/dist/index.d.cts +3684 -0
- package/dist/index.d.ts +3684 -0
- package/dist/index.iife.js +29925 -0
- package/dist/index.mjs +29922 -0
- package/dist/index.umd.cjs +29926 -0
- package/package.json +120 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,3684 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
|
|
3
|
+
import { default as default_2 } from 'jszip';
|
|
4
|
+
import { Element as Element_2 } from 'xml-js';
|
|
5
|
+
import { Stream } from 'stream';
|
|
6
|
+
|
|
7
|
+
export declare class AbstractNumbering extends XmlComponent {
|
|
8
|
+
readonly id: number;
|
|
9
|
+
constructor(id: number, levelOptions: readonly ILevelsOptions[]);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export declare const abstractNumUniqueNumericIdGen: () => UniqueNumericIdCreator;
|
|
13
|
+
|
|
14
|
+
export declare class Alignment extends XmlComponent {
|
|
15
|
+
constructor(type: (typeof AlignmentType)[keyof typeof AlignmentType]);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export declare class AlignmentAttributes extends XmlAttributeComponent<{
|
|
19
|
+
readonly val: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
20
|
+
}> {
|
|
21
|
+
protected readonly xmlKeys: {
|
|
22
|
+
val: string;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export declare const AlignmentType: {
|
|
27
|
+
readonly START: "start";
|
|
28
|
+
readonly CENTER: "center";
|
|
29
|
+
readonly END: "end";
|
|
30
|
+
readonly BOTH: "both";
|
|
31
|
+
readonly MEDIUM_KASHIDA: "mediumKashida";
|
|
32
|
+
readonly DISTRIBUTE: "distribute";
|
|
33
|
+
readonly NUM_TAB: "numTab";
|
|
34
|
+
readonly HIGH_KASHIDA: "highKashida";
|
|
35
|
+
readonly LOW_KASHIDA: "lowKashida";
|
|
36
|
+
readonly THAI_DISTRIBUTE: "thaiDistribute";
|
|
37
|
+
readonly LEFT: "left";
|
|
38
|
+
readonly RIGHT: "right";
|
|
39
|
+
readonly JUSTIFIED: "both";
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export declare class AnnotationReference extends EmptyElement {
|
|
43
|
+
constructor();
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
declare class AppProperties extends XmlComponent {
|
|
47
|
+
constructor();
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
declare type Area3DChartOptions = {};
|
|
51
|
+
|
|
52
|
+
declare type AreaChartOptions = {};
|
|
53
|
+
|
|
54
|
+
export declare type AttributeData = Record<string, boolean | number | string>;
|
|
55
|
+
|
|
56
|
+
export declare type AttributeMap<T> = Record<keyof T, string>;
|
|
57
|
+
|
|
58
|
+
export declare type AttributePayload<T> = {
|
|
59
|
+
readonly [P in keyof T]: {
|
|
60
|
+
readonly key: string;
|
|
61
|
+
readonly value: T[P];
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export declare class Attributes extends XmlAttributeComponent<{
|
|
66
|
+
readonly val?: string | number | boolean;
|
|
67
|
+
readonly color?: string;
|
|
68
|
+
readonly fill?: string;
|
|
69
|
+
readonly space?: string;
|
|
70
|
+
readonly sz?: string;
|
|
71
|
+
readonly type?: string;
|
|
72
|
+
readonly rsidR?: string;
|
|
73
|
+
readonly rsidRPr?: string;
|
|
74
|
+
readonly rsidSect?: string;
|
|
75
|
+
readonly w?: string;
|
|
76
|
+
readonly h?: string;
|
|
77
|
+
readonly top?: string;
|
|
78
|
+
readonly right?: string;
|
|
79
|
+
readonly bottom?: string;
|
|
80
|
+
readonly left?: string;
|
|
81
|
+
readonly header?: string;
|
|
82
|
+
readonly footer?: string;
|
|
83
|
+
readonly gutter?: string;
|
|
84
|
+
readonly linePitch?: string;
|
|
85
|
+
readonly pos?: string | number;
|
|
86
|
+
}> {
|
|
87
|
+
protected readonly xmlKeys: {
|
|
88
|
+
val: string;
|
|
89
|
+
color: string;
|
|
90
|
+
fill: string;
|
|
91
|
+
space: string;
|
|
92
|
+
sz: string;
|
|
93
|
+
type: string;
|
|
94
|
+
rsidR: string;
|
|
95
|
+
rsidRPr: string;
|
|
96
|
+
rsidSect: string;
|
|
97
|
+
w: string;
|
|
98
|
+
h: string;
|
|
99
|
+
top: string;
|
|
100
|
+
right: string;
|
|
101
|
+
bottom: string;
|
|
102
|
+
left: string;
|
|
103
|
+
header: string;
|
|
104
|
+
footer: string;
|
|
105
|
+
gutter: string;
|
|
106
|
+
linePitch: string;
|
|
107
|
+
pos: string;
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export declare enum AxisCrosses {
|
|
112
|
+
AUTO_ZERO = "autoZero",
|
|
113
|
+
MAX = "max",
|
|
114
|
+
MIN = "min"
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export declare enum AxisPosition {
|
|
118
|
+
BOTTOM = "b",
|
|
119
|
+
LEFT = "l",
|
|
120
|
+
RIGHT = "r",
|
|
121
|
+
TOP = "t"
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
declare type AxisSharedOptions = {
|
|
125
|
+
readonly scaling?: {
|
|
126
|
+
readonly logBase?: number;
|
|
127
|
+
readonly orientation?: ScalingOrientation;
|
|
128
|
+
readonly max?: number;
|
|
129
|
+
readonly min?: number;
|
|
130
|
+
readonly extensionList?: ExtensionListOptions;
|
|
131
|
+
};
|
|
132
|
+
readonly delete?: boolean;
|
|
133
|
+
readonly position?: AxisPosition;
|
|
134
|
+
readonly gridlines?: {
|
|
135
|
+
readonly major?: IShapePropertiesOptions;
|
|
136
|
+
readonly minor?: IShapePropertiesOptions;
|
|
137
|
+
};
|
|
138
|
+
readonly title?: TitleOptions | string;
|
|
139
|
+
readonly numFmt?: {
|
|
140
|
+
readonly formatCode: string;
|
|
141
|
+
readonly sourceLinked?: boolean;
|
|
142
|
+
};
|
|
143
|
+
readonly tick?: {
|
|
144
|
+
readonly mark?: {
|
|
145
|
+
readonly major?: TickMark;
|
|
146
|
+
readonly minor?: TickMark;
|
|
147
|
+
};
|
|
148
|
+
readonly label?: {
|
|
149
|
+
readonly position?: TickLabelPosition;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
readonly shape?: IShapePropertiesOptions;
|
|
153
|
+
readonly textProperties?: TextPropertiesOptions;
|
|
154
|
+
readonly cross?: {
|
|
155
|
+
readonly axis?: AxisTypes;
|
|
156
|
+
readonly mode?: AxisCrosses;
|
|
157
|
+
readonly at?: number;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
export declare enum AxisTypes {
|
|
162
|
+
CATEGORY = "category",
|
|
163
|
+
VALUE = "value",
|
|
164
|
+
DATE = "date",
|
|
165
|
+
SERIES = "series"
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
declare type Bar3DChartOptions = {};
|
|
169
|
+
|
|
170
|
+
declare type BarChartOptions = {
|
|
171
|
+
readonly categories?: string[];
|
|
172
|
+
readonly direction?: BarDirection;
|
|
173
|
+
readonly grouping?: BarGrouping;
|
|
174
|
+
readonly varyColors?: boolean;
|
|
175
|
+
readonly series: BarSeriesOptions[];
|
|
176
|
+
readonly gapWidth?: number | string;
|
|
177
|
+
readonly overlap?: number | string;
|
|
178
|
+
readonly lineShape?: IShapePropertiesOptions;
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
export declare enum BarDirection {
|
|
182
|
+
BAR = "bar",
|
|
183
|
+
COLUMN = "col"
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export declare enum BarGrouping {
|
|
187
|
+
PERCENT_STACKED = "percentStacked",
|
|
188
|
+
CLUSTERED = "clustered",
|
|
189
|
+
STANDARD = "standard",
|
|
190
|
+
STACKED = "stacked"
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
declare type BarSeriesOptions = SeriesSharedOptions & {
|
|
194
|
+
readonly invertIfNegative?: boolean;
|
|
195
|
+
readonly pictureOptions?: PictureOptionsOptions;
|
|
196
|
+
readonly dataPoints?: DataPointOptions[];
|
|
197
|
+
readonly dataLabels?: DataLabelsOptions;
|
|
198
|
+
readonly trendlines?: TrendlineOptions[];
|
|
199
|
+
readonly errorBars?: ErrorBarsOptions;
|
|
200
|
+
readonly categories?: string[];
|
|
201
|
+
readonly values?: number[];
|
|
202
|
+
readonly shape?: BarShape;
|
|
203
|
+
readonly extensionList?: ExtensionListOptions;
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
export declare enum BarShape {
|
|
207
|
+
CONE = "cone",
|
|
208
|
+
CONE_TO_MAX = "coneToMax",
|
|
209
|
+
BOX = "box",
|
|
210
|
+
CYLINDER = "cylinder",
|
|
211
|
+
PYRAMID = "pyramid",
|
|
212
|
+
PYRAMID_TO_MAX = "pyramidToMax"
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export declare abstract class BaseEmphasisMark extends XmlComponent {
|
|
216
|
+
protected constructor(emphasisMarkType: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType]);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export declare abstract class BaseXmlComponent {
|
|
220
|
+
protected rootKey: string;
|
|
221
|
+
constructor(rootKey: string);
|
|
222
|
+
abstract prepForXml(context: IContext): IXmlableObject | undefined;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
declare class Begin extends XmlComponent {
|
|
226
|
+
constructor(dirty?: boolean);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
declare class Body_2 extends XmlComponent {
|
|
230
|
+
private readonly sections;
|
|
231
|
+
constructor();
|
|
232
|
+
addSection(options: ISectionPropertiesOptions): void;
|
|
233
|
+
prepForXml(context: IContext): IXmlableObject | undefined;
|
|
234
|
+
push(component: XmlComponent): void;
|
|
235
|
+
private createSectionParagraph;
|
|
236
|
+
}
|
|
237
|
+
export { Body_2 as Body }
|
|
238
|
+
|
|
239
|
+
export declare class Bookmark {
|
|
240
|
+
private readonly bookmarkUniqueNumericId;
|
|
241
|
+
readonly start: BookmarkStart;
|
|
242
|
+
readonly children: readonly ParagraphChild[];
|
|
243
|
+
readonly end: BookmarkEnd;
|
|
244
|
+
constructor(options: {
|
|
245
|
+
readonly id: string;
|
|
246
|
+
readonly children: readonly ParagraphChild[];
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export declare class BookmarkEnd extends XmlComponent {
|
|
251
|
+
constructor(linkId: number);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
export declare class BookmarkStart extends XmlComponent {
|
|
255
|
+
constructor(id: string, linkId: number);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export declare const bookmarkUniqueNumericIdGen: () => UniqueNumericIdCreator;
|
|
259
|
+
|
|
260
|
+
export declare class BooleanElement extends XmlComponent {
|
|
261
|
+
constructor(name: string, val?: boolean | undefined, namespace?: string);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
export declare class Border extends IgnoreIfEmptyXmlComponent {
|
|
265
|
+
constructor(options: IBordersOptions);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
export declare class BorderElement extends XmlComponent {
|
|
269
|
+
constructor(elementName: string, { color, size, space, style }: IBorderOptions);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
export declare const BorderStyle: {
|
|
273
|
+
readonly SINGLE: "single";
|
|
274
|
+
readonly DASH_DOT_STROKED: "dashDotStroked";
|
|
275
|
+
readonly DASHED: "dashed";
|
|
276
|
+
readonly DASH_SMALL_GAP: "dashSmallGap";
|
|
277
|
+
readonly DOT_DASH: "dotDash";
|
|
278
|
+
readonly DOT_DOT_DASH: "dotDotDash";
|
|
279
|
+
readonly DOTTED: "dotted";
|
|
280
|
+
readonly DOUBLE: "double";
|
|
281
|
+
readonly DOUBLE_WAVE: "doubleWave";
|
|
282
|
+
readonly INSET: "inset";
|
|
283
|
+
readonly NIL: "nil";
|
|
284
|
+
readonly NONE: "none";
|
|
285
|
+
readonly OUTSET: "outset";
|
|
286
|
+
readonly THICK: "thick";
|
|
287
|
+
readonly THICK_THIN_LARGE_GAP: "thickThinLargeGap";
|
|
288
|
+
readonly THICK_THIN_MEDIUM_GAP: "thickThinMediumGap";
|
|
289
|
+
readonly THICK_THIN_SMALL_GAP: "thickThinSmallGap";
|
|
290
|
+
readonly THIN_THICK_LARGE_GAP: "thinThickLargeGap";
|
|
291
|
+
readonly THIN_THICK_MEDIUM_GAP: "thinThickMediumGap";
|
|
292
|
+
readonly THIN_THICK_SMALL_GAP: "thinThickSmallGap";
|
|
293
|
+
readonly THIN_THICK_THIN_LARGE_GAP: "thinThickThinLargeGap";
|
|
294
|
+
readonly THIN_THICK_THIN_MEDIUM_GAP: "thinThickThinMediumGap";
|
|
295
|
+
readonly THIN_THICK_THIN_SMALL_GAP: "thinThickThinSmallGap";
|
|
296
|
+
readonly THREE_D_EMBOSS: "threeDEmboss";
|
|
297
|
+
readonly THREE_D_ENGRAVE: "threeDEngrave";
|
|
298
|
+
readonly TRIPLE: "triple";
|
|
299
|
+
readonly WAVE: "wave";
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
declare class Break extends XmlComponent {
|
|
303
|
+
constructor();
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
declare type BubbleChartOptions = {};
|
|
307
|
+
|
|
308
|
+
export declare class BuilderElement<T extends AttributeData = {}> extends XmlComponent {
|
|
309
|
+
constructor({ name, attributes, children, }: {
|
|
310
|
+
readonly name: string;
|
|
311
|
+
readonly attributes?: AttributePayload<T>;
|
|
312
|
+
readonly children?: readonly XmlComponent[];
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
declare type BuiltInUnit = "hundreds" | "thousands" | "tenThousands" | "hundredThousands" | "millions" | "tenMillions" | "hundredMillions" | "billions" | "trillions";
|
|
317
|
+
|
|
318
|
+
export declare class CarriageReturn extends EmptyElement {
|
|
319
|
+
constructor();
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
declare type CategoryAxisOptions = {
|
|
323
|
+
readonly auto?: boolean;
|
|
324
|
+
readonly label?: {
|
|
325
|
+
readonly align?: LabelAlign;
|
|
326
|
+
readonly offset?: number | string;
|
|
327
|
+
readonly noMultiLevel?: boolean;
|
|
328
|
+
};
|
|
329
|
+
readonly tick?: {
|
|
330
|
+
readonly label?: {
|
|
331
|
+
readonly skip?: number;
|
|
332
|
+
};
|
|
333
|
+
readonly mark?: {
|
|
334
|
+
readonly skip?: number;
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
readonly extensionList?: ExtensionListOptions;
|
|
338
|
+
} & AxisSharedOptions;
|
|
339
|
+
|
|
340
|
+
declare const CellSpacingType: {
|
|
341
|
+
readonly DXA: "dxa";
|
|
342
|
+
readonly NIL: "nil";
|
|
343
|
+
};
|
|
344
|
+
|
|
345
|
+
export declare const CharacterSet: {
|
|
346
|
+
readonly ANSI: "00";
|
|
347
|
+
readonly DEFAULT: "01";
|
|
348
|
+
readonly SYMBOL: "02";
|
|
349
|
+
readonly MAC: "4D";
|
|
350
|
+
readonly JIS: "80";
|
|
351
|
+
readonly HANGUL: "81";
|
|
352
|
+
readonly JOHAB: "82";
|
|
353
|
+
readonly GB_2312: "86";
|
|
354
|
+
readonly CHINESEBIG5: "88";
|
|
355
|
+
readonly GREEK: "A1";
|
|
356
|
+
readonly TURKISH: "A2";
|
|
357
|
+
readonly VIETNAMESE: "A3";
|
|
358
|
+
readonly HEBREW: "B1";
|
|
359
|
+
readonly ARABIC: "B2";
|
|
360
|
+
readonly BALTIC: "BA";
|
|
361
|
+
readonly RUSSIAN: "CC";
|
|
362
|
+
readonly THAI: "DE";
|
|
363
|
+
readonly EASTEUROPE: "EE";
|
|
364
|
+
readonly OEM: "FF";
|
|
365
|
+
};
|
|
366
|
+
|
|
367
|
+
declare class Chart extends XmlComponent {
|
|
368
|
+
constructor({ id }: ChartOptions_2);
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
export declare enum ChartGrouping {
|
|
372
|
+
PERCENT_STACKED = "percentStacked",
|
|
373
|
+
STANDARD = "standard",
|
|
374
|
+
STACKED = "stacked"
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
declare type ChartOptions = {
|
|
378
|
+
readonly title?: TitleOptions | string;
|
|
379
|
+
readonly legend?: LegendOptions;
|
|
380
|
+
} & PlotAreaOptions;
|
|
381
|
+
|
|
382
|
+
declare type ChartOptions_2 = {
|
|
383
|
+
readonly id: string;
|
|
384
|
+
};
|
|
385
|
+
|
|
386
|
+
export declare class ChartRun extends Run {
|
|
387
|
+
private readonly id;
|
|
388
|
+
private readonly chartSpace;
|
|
389
|
+
constructor({ width, height, floating, altText, outline, ...options }: ChartRunOptions);
|
|
390
|
+
prepForXml(context: IContext): IXmlableObject | undefined;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
export declare type ChartRunOptions = ChartSpaceOptions & DrawingCoreOptions & SizeProperty;
|
|
394
|
+
|
|
395
|
+
declare class Charts {
|
|
396
|
+
private readonly map;
|
|
397
|
+
constructor();
|
|
398
|
+
add(key: string, chartFile: ChartSpace): void;
|
|
399
|
+
get Entries(): readonly [string, ChartWrapper][];
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
declare class ChartSpace extends XmlComponent {
|
|
403
|
+
readonly options: ChartOptions;
|
|
404
|
+
constructor({ date1904, roundedCorners, shapeProperties, ...options }: ChartSpaceOptions);
|
|
405
|
+
get dataTable(): (number | string)[][];
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
declare type ChartSpaceOptions = {
|
|
409
|
+
readonly date1904?: boolean;
|
|
410
|
+
readonly roundedCorners?: boolean;
|
|
411
|
+
readonly shapeProperties?: IShapePropertiesOptions;
|
|
412
|
+
} & ChartOptions;
|
|
413
|
+
|
|
414
|
+
declare class ChartWrapper {
|
|
415
|
+
private readonly chart;
|
|
416
|
+
private readonly relationships;
|
|
417
|
+
constructor(chart: ChartSpace);
|
|
418
|
+
get View(): ChartSpace;
|
|
419
|
+
get Relationships(): Relationships;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
export declare class CheckBox extends XmlComponent {
|
|
423
|
+
private readonly DEFAULT_UNCHECKED_SYMBOL;
|
|
424
|
+
private readonly DEFAULT_CHECKED_SYMBOL;
|
|
425
|
+
private readonly DEFAULT_FONT;
|
|
426
|
+
constructor(options?: ICheckboxSymbolOptions);
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
export declare class CheckBoxSymbolElement extends XmlComponent {
|
|
430
|
+
constructor(name: string, val: string, font?: string);
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
export declare class CheckBoxUtil extends XmlComponent {
|
|
434
|
+
private readonly DEFAULT_UNCHECKED_SYMBOL;
|
|
435
|
+
private readonly DEFAULT_CHECKED_SYMBOL;
|
|
436
|
+
private readonly DEFAULT_FONT;
|
|
437
|
+
constructor(options?: ICheckboxSymbolOptions);
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
export declare class Column extends XmlComponent {
|
|
441
|
+
constructor({ width, space }: IColumnAttributes);
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
export declare class ColumnBreak extends Run {
|
|
445
|
+
constructor();
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
export declare class Columns extends XmlComponent {
|
|
449
|
+
constructor({ space, count, separate, equalWidth, children }: IColumnsAttributes);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
declare class Comment_2 extends XmlComponent {
|
|
453
|
+
constructor({ id, initials, author, date, children }: ICommentOptions);
|
|
454
|
+
}
|
|
455
|
+
export { Comment_2 as Comment }
|
|
456
|
+
|
|
457
|
+
export declare class CommentRangeEnd extends XmlComponent {
|
|
458
|
+
constructor(id: number);
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
export declare class CommentRangeStart extends XmlComponent {
|
|
462
|
+
constructor(id: number);
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
export declare class CommentReference extends XmlComponent {
|
|
466
|
+
constructor(id: number);
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
export declare class Comments extends XmlComponent {
|
|
470
|
+
private readonly relationships;
|
|
471
|
+
constructor({ children }: ICommentsOptions);
|
|
472
|
+
get Relationships(): Relationships;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
export declare enum CompoundLine {
|
|
476
|
+
SINGLE = "sng",
|
|
477
|
+
DOUBLE = "dbl",
|
|
478
|
+
THICK_THIN = "thickThin",
|
|
479
|
+
THIN_THICK = "thinThick",
|
|
480
|
+
TRI = "tri"
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
export declare class ConcreteHyperlink extends XmlComponent {
|
|
484
|
+
readonly linkId: string;
|
|
485
|
+
constructor(children: readonly ParagraphChild[], relationshipId: string, anchor?: string);
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
export declare class ConcreteNumbering extends XmlComponent {
|
|
489
|
+
readonly numId: number;
|
|
490
|
+
readonly reference: string;
|
|
491
|
+
readonly instance: number;
|
|
492
|
+
constructor(options: IConcreteNumberingOptions);
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
export declare const concreteNumUniqueNumericIdGen: () => UniqueNumericIdCreator;
|
|
496
|
+
|
|
497
|
+
declare class ContentTypes extends XmlComponent {
|
|
498
|
+
constructor();
|
|
499
|
+
addFooter(index: number): void;
|
|
500
|
+
addHeader(index: number): void;
|
|
501
|
+
addChart(index: number): void;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
export declare class ContinuationSeparator extends EmptyElement {
|
|
505
|
+
constructor();
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
export declare const convertInchesToTwip: (inches: number) => number;
|
|
509
|
+
|
|
510
|
+
export declare const convertMillimetersToTwip: (millimeters: number) => number;
|
|
511
|
+
|
|
512
|
+
export declare const convertToXmlComponent: (element: Element_2) => ImportedXmlComponent | string | undefined;
|
|
513
|
+
|
|
514
|
+
declare type CoreImageOptions = {
|
|
515
|
+
readonly transformation: IMediaTransformation;
|
|
516
|
+
};
|
|
517
|
+
|
|
518
|
+
declare type CoreMediaData = {
|
|
519
|
+
readonly fileName: string;
|
|
520
|
+
readonly transformation: IMediaDataTransformation;
|
|
521
|
+
readonly data: Buffer | Uint8Array | ArrayBuffer;
|
|
522
|
+
};
|
|
523
|
+
|
|
524
|
+
declare class CoreProperties extends XmlComponent {
|
|
525
|
+
constructor(options: Omit<IPropertiesOptions, "sections">);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
export declare const createDocumentGrid: ({ type, linePitch, charSpace }: IDocGridAttributesProperties) => XmlComponent;
|
|
529
|
+
|
|
530
|
+
export declare const createFrameProperties: (options: IFrameOptions) => XmlComponent;
|
|
531
|
+
|
|
532
|
+
export declare const createHorizontalPosition: ({ relative, align, offset }: IHorizontalPositionOptions) => XmlComponent;
|
|
533
|
+
|
|
534
|
+
export declare const createImageData: (options: IImageOptions, key: string) => Pick<IMediaData, "data" | "fileName" | "transformation">;
|
|
535
|
+
|
|
536
|
+
export declare const createLineNumberType: ({ countBy, start, restart, distance }: ILineNumberAttributes) => XmlComponent;
|
|
537
|
+
|
|
538
|
+
export declare const createMathAccentCharacter: ({ accent }: MathAccentCharacterOptions) => XmlComponent;
|
|
539
|
+
|
|
540
|
+
export declare const createMathBase: ({ children }: MathBaseOptions) => XmlComponent;
|
|
541
|
+
|
|
542
|
+
export declare const createMathLimitLocation: ({ value }: MathLimitLocationOptions) => XmlComponent;
|
|
543
|
+
|
|
544
|
+
export declare const createMathNAryProperties: ({ accent, hasSuperScript, hasSubScript, limitLocationVal, }: MathNAryPropertiesOptions) => XmlComponent;
|
|
545
|
+
|
|
546
|
+
export declare const createMathPreSubSuperScriptProperties: () => XmlComponent;
|
|
547
|
+
|
|
548
|
+
export declare const createMathSubScriptElement: ({ children }: MathSubScriptElementOptions) => XmlComponent;
|
|
549
|
+
|
|
550
|
+
export declare const createMathSubScriptProperties: () => XmlComponent;
|
|
551
|
+
|
|
552
|
+
export declare const createMathSubSuperScriptProperties: () => XmlComponent;
|
|
553
|
+
|
|
554
|
+
export declare const createMathSuperScriptElement: ({ children }: MathSuperScriptElementOptions) => XmlComponent;
|
|
555
|
+
|
|
556
|
+
export declare const createMathSuperScriptProperties: () => XmlComponent;
|
|
557
|
+
|
|
558
|
+
export declare const createPageSize: ({ width, height, orientation, code }: IPageSizeAttributes) => XmlComponent;
|
|
559
|
+
|
|
560
|
+
export declare const createSimplePos: () => XmlComponent;
|
|
561
|
+
|
|
562
|
+
export declare const createStringElement: (name: string, value: string) => XmlComponent;
|
|
563
|
+
|
|
564
|
+
export declare const createVerticalPosition: ({ relative, align, offset }: IVerticalPositionOptions) => XmlComponent;
|
|
565
|
+
|
|
566
|
+
export declare enum CrossBetween {
|
|
567
|
+
BETWEEN = "between",
|
|
568
|
+
MIDDLE_CATEGORY = "midCat"
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
declare class CustomProperties extends XmlComponent {
|
|
572
|
+
private nextId;
|
|
573
|
+
private readonly properties;
|
|
574
|
+
constructor(properties: readonly ICustomPropertyOptions[]);
|
|
575
|
+
prepForXml(context: IContext): IXmlableObject | undefined;
|
|
576
|
+
addCustomProperty(property: ICustomPropertyOptions): void;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
declare type DataLabelOptions = {
|
|
580
|
+
readonly extensionList?: ExtensionListOptions;
|
|
581
|
+
} & ({
|
|
582
|
+
readonly delete: boolean;
|
|
583
|
+
} | GroupDataLabelOptions);
|
|
584
|
+
|
|
585
|
+
export declare enum DataLabelPosition {
|
|
586
|
+
BEST_FIT = "bestFit",
|
|
587
|
+
BOTTOM = "b",
|
|
588
|
+
CENTER = "ctr",
|
|
589
|
+
IN_BASE = "inBase",
|
|
590
|
+
IN_END = "inEnd",
|
|
591
|
+
LEFT = "l",
|
|
592
|
+
OUT_END = "outEnd",
|
|
593
|
+
RIGHT = "r",
|
|
594
|
+
TOP = "t"
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
declare type DataLabelSharedOptions = {
|
|
598
|
+
readonly numFmt?: {
|
|
599
|
+
readonly formatCode: string;
|
|
600
|
+
readonly sourceLinked?: boolean;
|
|
601
|
+
};
|
|
602
|
+
readonly shape?: IShapePropertiesOptions;
|
|
603
|
+
readonly textProperties?: TextPropertiesOptions;
|
|
604
|
+
readonly position?: DataLabelPosition;
|
|
605
|
+
readonly showLegendKey?: boolean;
|
|
606
|
+
readonly showValue?: boolean;
|
|
607
|
+
readonly showCategoryName?: boolean;
|
|
608
|
+
readonly showSeriesName?: boolean;
|
|
609
|
+
readonly showPercent?: boolean;
|
|
610
|
+
readonly showBubbleSize?: boolean;
|
|
611
|
+
readonly separator?: string;
|
|
612
|
+
};
|
|
613
|
+
|
|
614
|
+
declare type DataLabelsOptions = {
|
|
615
|
+
readonly items?: DataLabelOptions[];
|
|
616
|
+
readonly extensionList?: ExtensionListOptions;
|
|
617
|
+
} & ({
|
|
618
|
+
readonly delete: boolean;
|
|
619
|
+
} | GroupDataLabelsOptions);
|
|
620
|
+
|
|
621
|
+
declare type DataPointOptions = {};
|
|
622
|
+
|
|
623
|
+
declare type DateAxisOptions = {};
|
|
624
|
+
|
|
625
|
+
export declare const dateTimeValue: (val: Date) => string;
|
|
626
|
+
|
|
627
|
+
export declare class DayLong extends EmptyElement {
|
|
628
|
+
constructor();
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
export declare class DayShort extends EmptyElement {
|
|
632
|
+
constructor();
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
export declare const decimalNumber: (val: number) => number;
|
|
636
|
+
|
|
637
|
+
export declare class DeletedTextRun extends XmlComponent {
|
|
638
|
+
protected readonly deletedTextRunWrapper: DeletedTextRunWrapper;
|
|
639
|
+
constructor(options: IDeletedRunOptions);
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
declare class DeletedTextRunWrapper extends XmlComponent {
|
|
643
|
+
constructor(options: IRunOptions);
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
declare type DisplayUnitLabelOptions = {
|
|
647
|
+
readonly layout?: LayoutOptions;
|
|
648
|
+
readonly textSource?: TextSourceOptions;
|
|
649
|
+
readonly shape?: IShapePropertiesOptions;
|
|
650
|
+
readonly textProperties?: TextPropertiesOptions;
|
|
651
|
+
};
|
|
652
|
+
|
|
653
|
+
declare type DisplayUnitOptions = ({
|
|
654
|
+
readonly custom: number;
|
|
655
|
+
} | {
|
|
656
|
+
readonly builtIn: BuiltInUnit;
|
|
657
|
+
}) & {
|
|
658
|
+
readonly label?: DisplayUnitLabelOptions;
|
|
659
|
+
readonly extensionList?: ExtensionListOptions;
|
|
660
|
+
};
|
|
661
|
+
|
|
662
|
+
declare type DocPropertiesOptions = {
|
|
663
|
+
readonly name: string;
|
|
664
|
+
readonly description?: string;
|
|
665
|
+
readonly title?: string;
|
|
666
|
+
};
|
|
667
|
+
|
|
668
|
+
export declare const docPropertiesUniqueNumericIdGen: () => UniqueNumericIdCreator;
|
|
669
|
+
|
|
670
|
+
declare class Document_2 extends XmlComponent {
|
|
671
|
+
private readonly body;
|
|
672
|
+
constructor(options: IDocumentOptions);
|
|
673
|
+
add(item: Paragraph | Table | TableOfContents | ConcreteHyperlink): Document_2;
|
|
674
|
+
get Body(): Body_2;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
export declare type DocumentAttributeNamespace = keyof typeof DocumentAttributeNamespaces;
|
|
678
|
+
|
|
679
|
+
export declare const DocumentAttributeNamespaces: {
|
|
680
|
+
wpc: string;
|
|
681
|
+
mc: string;
|
|
682
|
+
o: string;
|
|
683
|
+
r: string;
|
|
684
|
+
m: string;
|
|
685
|
+
v: string;
|
|
686
|
+
wp14: string;
|
|
687
|
+
wp: string;
|
|
688
|
+
w10: string;
|
|
689
|
+
w: string;
|
|
690
|
+
w14: string;
|
|
691
|
+
w15: string;
|
|
692
|
+
wpg: string;
|
|
693
|
+
wpi: string;
|
|
694
|
+
wne: string;
|
|
695
|
+
wps: string;
|
|
696
|
+
cp: string;
|
|
697
|
+
dc: string;
|
|
698
|
+
dcterms: string;
|
|
699
|
+
dcmitype: string;
|
|
700
|
+
xsi: string;
|
|
701
|
+
cx: string;
|
|
702
|
+
cx1: string;
|
|
703
|
+
cx2: string;
|
|
704
|
+
cx3: string;
|
|
705
|
+
cx4: string;
|
|
706
|
+
cx5: string;
|
|
707
|
+
cx6: string;
|
|
708
|
+
cx7: string;
|
|
709
|
+
cx8: string;
|
|
710
|
+
aink: string;
|
|
711
|
+
am3d: string;
|
|
712
|
+
w16cex: string;
|
|
713
|
+
w16cid: string;
|
|
714
|
+
w16: string;
|
|
715
|
+
w16sdtdh: string;
|
|
716
|
+
w16se: string;
|
|
717
|
+
};
|
|
718
|
+
|
|
719
|
+
export declare class DocumentAttributes extends XmlAttributeComponent<IDocumentAttributesProperties> {
|
|
720
|
+
protected readonly xmlKeys: AttributeMap<IDocumentAttributesProperties>;
|
|
721
|
+
constructor(ns: readonly DocumentAttributeNamespace[], Ignorable?: string);
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
export declare class DocumentBackground extends XmlComponent {
|
|
725
|
+
constructor(options: IDocumentBackgroundOptions);
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
export declare class DocumentBackgroundAttributes extends XmlAttributeComponent<{
|
|
729
|
+
readonly color?: string;
|
|
730
|
+
readonly themeColor?: string;
|
|
731
|
+
readonly themeShade?: string;
|
|
732
|
+
readonly themeTint?: string;
|
|
733
|
+
}> {
|
|
734
|
+
protected readonly xmlKeys: {
|
|
735
|
+
color: string;
|
|
736
|
+
themeColor: string;
|
|
737
|
+
themeShade: string;
|
|
738
|
+
themeTint: string;
|
|
739
|
+
};
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
export declare class DocumentDefaults extends XmlComponent {
|
|
743
|
+
private readonly runPropertiesDefaults;
|
|
744
|
+
private readonly paragraphPropertiesDefaults;
|
|
745
|
+
constructor(options: IDocumentDefaultsOptions);
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
export declare const DocumentGridType: {
|
|
749
|
+
readonly DEFAULT: "default";
|
|
750
|
+
readonly LINES: "lines";
|
|
751
|
+
readonly LINES_AND_CHARS: "linesAndChars";
|
|
752
|
+
readonly SNAP_TO_CHARS: "snapToChars";
|
|
753
|
+
};
|
|
754
|
+
|
|
755
|
+
declare class DocumentWrapper implements IViewWrapper {
|
|
756
|
+
private readonly document;
|
|
757
|
+
private readonly relationships;
|
|
758
|
+
constructor(options: IDocumentOptions);
|
|
759
|
+
get View(): Document_2;
|
|
760
|
+
get Relationships(): Relationships;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
export declare class DotEmphasisMark extends BaseEmphasisMark {
|
|
764
|
+
constructor();
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
declare type DoughnutChartOptions = {};
|
|
768
|
+
|
|
769
|
+
export declare class Drawing extends XmlComponent {
|
|
770
|
+
constructor({ floating, ...options }: DrawingOptions);
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
export declare type DrawingCoreOptions = IAnchorCoreOptions & InlineCoreOptions;
|
|
774
|
+
|
|
775
|
+
export declare type DrawingOptions = DrawingCoreOptions & GraphicOptions & GraphicWrapperOptions;
|
|
776
|
+
|
|
777
|
+
export declare const DropCapType: {
|
|
778
|
+
readonly NONE: "none";
|
|
779
|
+
readonly DROP: "drop";
|
|
780
|
+
readonly MARGIN: "margin";
|
|
781
|
+
};
|
|
782
|
+
|
|
783
|
+
export declare const eighthPointMeasureValue: (val: number) => number;
|
|
784
|
+
|
|
785
|
+
export declare class EmphasisMark extends BaseEmphasisMark {
|
|
786
|
+
constructor(emphasisMarkType?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType]);
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
export declare const EmphasisMarkType: {
|
|
790
|
+
readonly DOT: "dot";
|
|
791
|
+
};
|
|
792
|
+
|
|
793
|
+
export declare const EMPTY_OBJECT: {};
|
|
794
|
+
|
|
795
|
+
export declare class EmptyElement extends XmlComponent {
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
declare class End extends XmlComponent {
|
|
799
|
+
constructor(dirty?: boolean);
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
export declare class EndnoteReference extends EmptyElement {
|
|
803
|
+
constructor();
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
declare type ErrorBarsOptions = {};
|
|
807
|
+
|
|
808
|
+
declare type ExtensionListOptions = {};
|
|
809
|
+
|
|
810
|
+
export declare class ExternalHyperlink extends XmlComponent {
|
|
811
|
+
readonly options: {
|
|
812
|
+
readonly children: readonly ParagraphChild[];
|
|
813
|
+
readonly link: string;
|
|
814
|
+
};
|
|
815
|
+
constructor(options: {
|
|
816
|
+
readonly children: readonly ParagraphChild[];
|
|
817
|
+
readonly link: string;
|
|
818
|
+
});
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
declare class FieldInstruction extends XmlComponent {
|
|
822
|
+
private readonly properties;
|
|
823
|
+
constructor(properties?: ITableOfContentsOptions);
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
declare class File_2 {
|
|
827
|
+
private currentRelationshipId;
|
|
828
|
+
private readonly documentWrapper;
|
|
829
|
+
private readonly headers;
|
|
830
|
+
private readonly footers;
|
|
831
|
+
private readonly coreProperties;
|
|
832
|
+
private readonly numbering;
|
|
833
|
+
private readonly media;
|
|
834
|
+
private readonly charts;
|
|
835
|
+
private readonly fileRelationships;
|
|
836
|
+
private readonly footnotesWrapper;
|
|
837
|
+
private readonly settings;
|
|
838
|
+
private readonly contentTypes;
|
|
839
|
+
private readonly customProperties;
|
|
840
|
+
private readonly appProperties;
|
|
841
|
+
private readonly styles;
|
|
842
|
+
private readonly comments;
|
|
843
|
+
private readonly fontWrapper;
|
|
844
|
+
constructor(options: IPropertiesOptions);
|
|
845
|
+
private addSection;
|
|
846
|
+
private createHeader;
|
|
847
|
+
private createFooter;
|
|
848
|
+
private addHeaderToDocument;
|
|
849
|
+
private addFooterToDocument;
|
|
850
|
+
private addDefaultRelationships;
|
|
851
|
+
get Document(): DocumentWrapper;
|
|
852
|
+
get Styles(): Styles;
|
|
853
|
+
get CoreProperties(): CoreProperties;
|
|
854
|
+
get Numbering(): Numbering;
|
|
855
|
+
get Media(): Media;
|
|
856
|
+
get Charts(): Charts;
|
|
857
|
+
get FileRelationships(): Relationships;
|
|
858
|
+
get Headers(): readonly HeaderWrapper[];
|
|
859
|
+
get Footers(): readonly FooterWrapper[];
|
|
860
|
+
get ContentTypes(): ContentTypes;
|
|
861
|
+
get CustomProperties(): CustomProperties;
|
|
862
|
+
get AppProperties(): AppProperties;
|
|
863
|
+
get FootNotes(): FootnotesWrapper;
|
|
864
|
+
get Settings(): Settings;
|
|
865
|
+
get Comments(): Comments;
|
|
866
|
+
get FontTable(): FontWrapper;
|
|
867
|
+
}
|
|
868
|
+
export { File_2 as Document }
|
|
869
|
+
export { File_2 as File }
|
|
870
|
+
|
|
871
|
+
export declare class FileChild extends XmlComponent {
|
|
872
|
+
readonly fileChild: symbol;
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
declare type FilePatch = {
|
|
876
|
+
readonly type: typeof PatchType.DOCUMENT;
|
|
877
|
+
readonly children: readonly FileChild[];
|
|
878
|
+
};
|
|
879
|
+
|
|
880
|
+
declare type FontOptions = {
|
|
881
|
+
readonly name: string;
|
|
882
|
+
readonly data: Buffer;
|
|
883
|
+
readonly characterSet?: (typeof CharacterSet)[keyof typeof CharacterSet];
|
|
884
|
+
};
|
|
885
|
+
|
|
886
|
+
declare type FontOptionsWithKey = FontOptions & {
|
|
887
|
+
readonly fontKey: string;
|
|
888
|
+
};
|
|
889
|
+
|
|
890
|
+
declare class FontWrapper implements IViewWrapper {
|
|
891
|
+
readonly options: readonly FontOptions[];
|
|
892
|
+
private readonly fontTable;
|
|
893
|
+
private readonly relationships;
|
|
894
|
+
readonly fontOptionsWithKey: readonly FontOptionsWithKey[];
|
|
895
|
+
constructor(options: readonly FontOptions[]);
|
|
896
|
+
get View(): XmlComponent;
|
|
897
|
+
get Relationships(): Relationships;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
export declare class Footer {
|
|
901
|
+
readonly options: IHeaderOptions;
|
|
902
|
+
constructor(options?: IHeaderOptions);
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
declare class Footer_2 extends InitializableXmlComponent {
|
|
906
|
+
private readonly refId;
|
|
907
|
+
constructor(referenceNumber: number, initContent?: XmlComponent);
|
|
908
|
+
get ReferenceId(): number;
|
|
909
|
+
add(item: Paragraph | Table): void;
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
export declare class FooterWrapper implements IViewWrapper {
|
|
913
|
+
private readonly media;
|
|
914
|
+
private readonly footer;
|
|
915
|
+
private readonly relationships;
|
|
916
|
+
constructor(media: Media, referenceId: number, initContent?: XmlComponent);
|
|
917
|
+
add(item: Paragraph | Table): void;
|
|
918
|
+
addChildElement(childElement: XmlComponent): void;
|
|
919
|
+
get View(): Footer_2;
|
|
920
|
+
get Relationships(): Relationships;
|
|
921
|
+
get Media(): Media;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
export declare class FootnoteReference extends XmlComponent {
|
|
925
|
+
constructor(id: number);
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
export declare class FootnoteReferenceElement extends EmptyElement {
|
|
929
|
+
constructor();
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
export declare class FootnoteReferenceRun extends Run {
|
|
933
|
+
constructor(id: number);
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
export declare class FootNoteReferenceRunAttributes extends XmlAttributeComponent<{
|
|
937
|
+
readonly id: number;
|
|
938
|
+
}> {
|
|
939
|
+
protected readonly xmlKeys: {
|
|
940
|
+
id: string;
|
|
941
|
+
};
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
export declare class FootNotes extends XmlComponent {
|
|
945
|
+
constructor();
|
|
946
|
+
createFootNote(id: number, paragraph: readonly Paragraph[]): void;
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
declare class FootnotesWrapper implements IViewWrapper {
|
|
950
|
+
private readonly footnotess;
|
|
951
|
+
private readonly relationships;
|
|
952
|
+
constructor();
|
|
953
|
+
get View(): FootNotes;
|
|
954
|
+
get Relationships(): Relationships;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
export declare const FrameAnchorType: {
|
|
958
|
+
readonly MARGIN: "margin";
|
|
959
|
+
readonly PAGE: "page";
|
|
960
|
+
readonly TEXT: "text";
|
|
961
|
+
};
|
|
962
|
+
|
|
963
|
+
export declare const FrameWrap: {
|
|
964
|
+
readonly AROUND: "around";
|
|
965
|
+
readonly AUTO: "auto";
|
|
966
|
+
readonly NONE: "none";
|
|
967
|
+
readonly NOT_BESIDE: "notBeside";
|
|
968
|
+
readonly THROUGH: "through";
|
|
969
|
+
readonly TIGHT: "tight";
|
|
970
|
+
};
|
|
971
|
+
|
|
972
|
+
declare type GraphicOptions = {
|
|
973
|
+
readonly dataElement: Pic | Chart;
|
|
974
|
+
readonly uri: string;
|
|
975
|
+
};
|
|
976
|
+
|
|
977
|
+
declare type GraphicWrapperOptions = {
|
|
978
|
+
readonly transform: IMediaDataTransformation;
|
|
979
|
+
};
|
|
980
|
+
|
|
981
|
+
export declare class GridSpan extends XmlComponent {
|
|
982
|
+
constructor(value: number);
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
declare type GroupDataLabelOptions = {
|
|
986
|
+
readonly layout?: LayoutOptions;
|
|
987
|
+
readonly text?: TextSourceOptions | string;
|
|
988
|
+
} & DataLabelSharedOptions;
|
|
989
|
+
|
|
990
|
+
declare type GroupDataLabelsOptions = DataLabelSharedOptions & {
|
|
991
|
+
readonly leaderLines?: {
|
|
992
|
+
readonly show?: boolean;
|
|
993
|
+
readonly shape?: IShapePropertiesOptions;
|
|
994
|
+
};
|
|
995
|
+
};
|
|
996
|
+
|
|
997
|
+
export declare const hashedId: (data: Buffer | string | Uint8Array | ArrayBuffer) => string;
|
|
998
|
+
|
|
999
|
+
export declare class Header {
|
|
1000
|
+
readonly options: IHeaderOptions;
|
|
1001
|
+
constructor(options?: IHeaderOptions);
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
declare class Header_2 extends InitializableXmlComponent {
|
|
1005
|
+
private readonly refId;
|
|
1006
|
+
constructor(referenceNumber: number, initContent?: XmlComponent);
|
|
1007
|
+
get ReferenceId(): number;
|
|
1008
|
+
add(item: Paragraph | Table): void;
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
export declare class HeaderFooterReference extends XmlComponent {
|
|
1012
|
+
constructor(type: (typeof HeaderFooterType)[keyof typeof HeaderFooterType], options: IHeaderFooterOptions);
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
export declare const HeaderFooterReferenceType: {
|
|
1016
|
+
readonly DEFAULT: "default";
|
|
1017
|
+
readonly FIRST: "first";
|
|
1018
|
+
readonly EVEN: "even";
|
|
1019
|
+
};
|
|
1020
|
+
|
|
1021
|
+
export declare const HeaderFooterType: {
|
|
1022
|
+
readonly HEADER: "w:headerReference";
|
|
1023
|
+
readonly FOOTER: "w:footerReference";
|
|
1024
|
+
};
|
|
1025
|
+
|
|
1026
|
+
export declare class HeaderWrapper implements IViewWrapper {
|
|
1027
|
+
private readonly media;
|
|
1028
|
+
private readonly header;
|
|
1029
|
+
private readonly relationships;
|
|
1030
|
+
constructor(media: Media, referenceId: number, initContent?: XmlComponent);
|
|
1031
|
+
add(item: Paragraph | Table): HeaderWrapper;
|
|
1032
|
+
addChildElement(childElement: XmlComponent | string): void;
|
|
1033
|
+
get View(): Header_2;
|
|
1034
|
+
get Relationships(): Relationships;
|
|
1035
|
+
get Media(): Media;
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
export declare const HeadingLevel: {
|
|
1039
|
+
readonly HEADING_1: "Heading1";
|
|
1040
|
+
readonly HEADING_2: "Heading2";
|
|
1041
|
+
readonly HEADING_3: "Heading3";
|
|
1042
|
+
readonly HEADING_4: "Heading4";
|
|
1043
|
+
readonly HEADING_5: "Heading5";
|
|
1044
|
+
readonly HEADING_6: "Heading6";
|
|
1045
|
+
readonly TITLE: "Title";
|
|
1046
|
+
};
|
|
1047
|
+
|
|
1048
|
+
export declare const HeightRule: {
|
|
1049
|
+
readonly AUTO: "auto";
|
|
1050
|
+
readonly ATLEAST: "atLeast";
|
|
1051
|
+
readonly EXACT: "exact";
|
|
1052
|
+
};
|
|
1053
|
+
|
|
1054
|
+
export declare const hexColorValue: (val: string) => string;
|
|
1055
|
+
|
|
1056
|
+
export declare const HighlightColor: {
|
|
1057
|
+
readonly BLACK: "black";
|
|
1058
|
+
readonly BLUE: "blue";
|
|
1059
|
+
readonly CYAN: "cyan";
|
|
1060
|
+
readonly DARK_BLUE: "darkBlue";
|
|
1061
|
+
readonly DARK_CYAN: "darkCyan";
|
|
1062
|
+
readonly DARK_GRAY: "darkGray";
|
|
1063
|
+
readonly DARK_GREEN: "darkGreen";
|
|
1064
|
+
readonly DARK_MAGENTA: "darkMagenta";
|
|
1065
|
+
readonly DARK_RED: "darkRed";
|
|
1066
|
+
readonly DARK_YELLOW: "darkYellow";
|
|
1067
|
+
readonly GREEN: "green";
|
|
1068
|
+
readonly LIGHT_GRAY: "lightGray";
|
|
1069
|
+
readonly MAGENTA: "magenta";
|
|
1070
|
+
readonly NONE: "none";
|
|
1071
|
+
readonly RED: "red";
|
|
1072
|
+
readonly WHITE: "white";
|
|
1073
|
+
readonly YELLOW: "yellow";
|
|
1074
|
+
};
|
|
1075
|
+
|
|
1076
|
+
export declare const HorizontalPositionAlign: {
|
|
1077
|
+
readonly CENTER: "center";
|
|
1078
|
+
readonly INSIDE: "inside";
|
|
1079
|
+
readonly LEFT: "left";
|
|
1080
|
+
readonly OUTSIDE: "outside";
|
|
1081
|
+
readonly RIGHT: "right";
|
|
1082
|
+
};
|
|
1083
|
+
|
|
1084
|
+
export declare const HorizontalPositionRelativeFrom: {
|
|
1085
|
+
readonly CHARACTER: "character";
|
|
1086
|
+
readonly COLUMN: "column";
|
|
1087
|
+
readonly INSIDE_MARGIN: "insideMargin";
|
|
1088
|
+
readonly LEFT_MARGIN: "leftMargin";
|
|
1089
|
+
readonly MARGIN: "margin";
|
|
1090
|
+
readonly OUTSIDE_MARGIN: "outsideMargin";
|
|
1091
|
+
readonly PAGE: "page";
|
|
1092
|
+
readonly RIGHT_MARGIN: "rightMargin";
|
|
1093
|
+
};
|
|
1094
|
+
|
|
1095
|
+
export declare class HpsMeasureElement extends XmlComponent {
|
|
1096
|
+
constructor(name: string, val: number | PositiveUniversalMeasure, namespace?: string);
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
export declare const hpsMeasureValue: (val: PositiveUniversalMeasure | number) => string | number;
|
|
1100
|
+
|
|
1101
|
+
export declare const HyperlinkType: {
|
|
1102
|
+
readonly INTERNAL: "INTERNAL";
|
|
1103
|
+
readonly EXTERNAL: "EXTERNAL";
|
|
1104
|
+
};
|
|
1105
|
+
|
|
1106
|
+
export declare type IAlignmentFrameOptions = {
|
|
1107
|
+
readonly type: "alignment";
|
|
1108
|
+
readonly alignment: {
|
|
1109
|
+
readonly x: (typeof HorizontalPositionAlign)[keyof typeof HorizontalPositionAlign];
|
|
1110
|
+
readonly y: (typeof VerticalPositionAlign)[keyof typeof VerticalPositionAlign];
|
|
1111
|
+
};
|
|
1112
|
+
} & IBaseFrameOptions;
|
|
1113
|
+
|
|
1114
|
+
declare type IAnchorCoreOptions = {
|
|
1115
|
+
readonly floating?: IFloating;
|
|
1116
|
+
readonly altText?: DocPropertiesOptions;
|
|
1117
|
+
};
|
|
1118
|
+
|
|
1119
|
+
export declare type IBaseCharacterStyleOptions = {
|
|
1120
|
+
readonly run?: IRunStylePropertiesOptions;
|
|
1121
|
+
} & IStyleOptions;
|
|
1122
|
+
|
|
1123
|
+
declare type IBaseFrameOptions = {
|
|
1124
|
+
readonly anchorLock?: boolean;
|
|
1125
|
+
readonly dropCap?: (typeof DropCapType)[keyof typeof DropCapType];
|
|
1126
|
+
readonly width: number;
|
|
1127
|
+
readonly height: number;
|
|
1128
|
+
readonly wrap?: (typeof FrameWrap)[keyof typeof FrameWrap];
|
|
1129
|
+
readonly lines?: number;
|
|
1130
|
+
readonly anchor: {
|
|
1131
|
+
readonly horizontal: (typeof FrameAnchorType)[keyof typeof FrameAnchorType];
|
|
1132
|
+
readonly vertical: (typeof FrameAnchorType)[keyof typeof FrameAnchorType];
|
|
1133
|
+
};
|
|
1134
|
+
readonly space?: {
|
|
1135
|
+
readonly horizontal: number;
|
|
1136
|
+
readonly vertical: number;
|
|
1137
|
+
};
|
|
1138
|
+
readonly rule?: (typeof HeightRule)[keyof typeof HeightRule];
|
|
1139
|
+
};
|
|
1140
|
+
|
|
1141
|
+
export declare type IBaseParagraphStyleOptions = {
|
|
1142
|
+
readonly paragraph?: IParagraphStylePropertiesOptions;
|
|
1143
|
+
readonly run?: IRunStylePropertiesOptions;
|
|
1144
|
+
} & IStyleOptions;
|
|
1145
|
+
|
|
1146
|
+
export declare type IBorderOptions = {
|
|
1147
|
+
readonly style: (typeof BorderStyle)[keyof typeof BorderStyle];
|
|
1148
|
+
readonly color?: string;
|
|
1149
|
+
readonly size?: number;
|
|
1150
|
+
readonly space?: number;
|
|
1151
|
+
};
|
|
1152
|
+
|
|
1153
|
+
export declare type IBordersOptions = {
|
|
1154
|
+
readonly top?: IBorderOptions;
|
|
1155
|
+
readonly bottom?: IBorderOptions;
|
|
1156
|
+
readonly left?: IBorderOptions;
|
|
1157
|
+
readonly right?: IBorderOptions;
|
|
1158
|
+
};
|
|
1159
|
+
|
|
1160
|
+
declare type IChangedAttributesProperties = {
|
|
1161
|
+
readonly id: number;
|
|
1162
|
+
readonly author: string;
|
|
1163
|
+
readonly date: string;
|
|
1164
|
+
};
|
|
1165
|
+
|
|
1166
|
+
export declare type ICharacterStyleOptions = {
|
|
1167
|
+
readonly id: string;
|
|
1168
|
+
} & IBaseCharacterStyleOptions;
|
|
1169
|
+
|
|
1170
|
+
export declare type ICheckboxSymbolOptions = {
|
|
1171
|
+
readonly alias?: string;
|
|
1172
|
+
readonly checked?: boolean;
|
|
1173
|
+
readonly checkedState?: ICheckboxSymbolProperties;
|
|
1174
|
+
readonly uncheckedState?: ICheckboxSymbolProperties;
|
|
1175
|
+
};
|
|
1176
|
+
|
|
1177
|
+
export declare type ICheckboxSymbolProperties = {
|
|
1178
|
+
readonly value?: string;
|
|
1179
|
+
readonly font?: string;
|
|
1180
|
+
};
|
|
1181
|
+
|
|
1182
|
+
declare type IColumnAttributes = {
|
|
1183
|
+
readonly width: number | PositiveUniversalMeasure;
|
|
1184
|
+
readonly space?: number | PositiveUniversalMeasure;
|
|
1185
|
+
};
|
|
1186
|
+
|
|
1187
|
+
export declare type IColumnsAttributes = {
|
|
1188
|
+
readonly space?: number | PositiveUniversalMeasure;
|
|
1189
|
+
readonly count?: number;
|
|
1190
|
+
readonly separate?: boolean;
|
|
1191
|
+
readonly equalWidth?: boolean;
|
|
1192
|
+
readonly children?: readonly Column[];
|
|
1193
|
+
};
|
|
1194
|
+
|
|
1195
|
+
export declare type ICommentOptions = {
|
|
1196
|
+
readonly id: number;
|
|
1197
|
+
readonly children: readonly FileChild[];
|
|
1198
|
+
readonly initials?: string;
|
|
1199
|
+
readonly author?: string;
|
|
1200
|
+
readonly date?: Date;
|
|
1201
|
+
};
|
|
1202
|
+
|
|
1203
|
+
export declare type ICommentsOptions = {
|
|
1204
|
+
readonly children: readonly ICommentOptions[];
|
|
1205
|
+
};
|
|
1206
|
+
|
|
1207
|
+
declare type ICompatibilityOptions = {
|
|
1208
|
+
readonly version?: number;
|
|
1209
|
+
readonly useSingleBorderforContiguousCells?: boolean;
|
|
1210
|
+
readonly wordPerfectJustification?: boolean;
|
|
1211
|
+
readonly noTabStopForHangingIndent?: boolean;
|
|
1212
|
+
readonly noLeading?: boolean;
|
|
1213
|
+
readonly spaceForUnderline?: boolean;
|
|
1214
|
+
readonly noColumnBalance?: boolean;
|
|
1215
|
+
readonly balanceSingleByteDoubleByteWidth?: boolean;
|
|
1216
|
+
readonly noExtraLineSpacing?: boolean;
|
|
1217
|
+
readonly doNotLeaveBackslashAlone?: boolean;
|
|
1218
|
+
readonly underlineTrailingSpaces?: boolean;
|
|
1219
|
+
readonly doNotExpandShiftReturn?: boolean;
|
|
1220
|
+
readonly spacingInWholePoints?: boolean;
|
|
1221
|
+
readonly lineWrapLikeWord6?: boolean;
|
|
1222
|
+
readonly printBodyTextBeforeHeader?: boolean;
|
|
1223
|
+
readonly printColorsBlack?: boolean;
|
|
1224
|
+
readonly spaceWidth?: boolean;
|
|
1225
|
+
readonly showBreaksInFrames?: boolean;
|
|
1226
|
+
readonly subFontBySize?: boolean;
|
|
1227
|
+
readonly suppressBottomSpacing?: boolean;
|
|
1228
|
+
readonly suppressTopSpacing?: boolean;
|
|
1229
|
+
readonly suppressSpacingAtTopOfPage?: boolean;
|
|
1230
|
+
readonly suppressTopSpacingWP?: boolean;
|
|
1231
|
+
readonly suppressSpBfAfterPgBrk?: boolean;
|
|
1232
|
+
readonly swapBordersFacingPages?: boolean;
|
|
1233
|
+
readonly convertMailMergeEsc?: boolean;
|
|
1234
|
+
readonly truncateFontHeightsLikeWP6?: boolean;
|
|
1235
|
+
readonly macWordSmallCaps?: boolean;
|
|
1236
|
+
readonly usePrinterMetrics?: boolean;
|
|
1237
|
+
readonly doNotSuppressParagraphBorders?: boolean;
|
|
1238
|
+
readonly wrapTrailSpaces?: boolean;
|
|
1239
|
+
readonly footnoteLayoutLikeWW8?: boolean;
|
|
1240
|
+
readonly shapeLayoutLikeWW8?: boolean;
|
|
1241
|
+
readonly alignTablesRowByRow?: boolean;
|
|
1242
|
+
readonly forgetLastTabAlignment?: boolean;
|
|
1243
|
+
readonly adjustLineHeightInTable?: boolean;
|
|
1244
|
+
readonly autoSpaceLikeWord95?: boolean;
|
|
1245
|
+
readonly noSpaceRaiseLower?: boolean;
|
|
1246
|
+
readonly doNotUseHTMLParagraphAutoSpacing?: boolean;
|
|
1247
|
+
readonly layoutRawTableWidth?: boolean;
|
|
1248
|
+
readonly layoutTableRowsApart?: boolean;
|
|
1249
|
+
readonly useWord97LineBreakRules?: boolean;
|
|
1250
|
+
readonly doNotBreakWrappedTables?: boolean;
|
|
1251
|
+
readonly doNotSnapToGridInCell?: boolean;
|
|
1252
|
+
readonly selectFieldWithFirstOrLastCharacter?: boolean;
|
|
1253
|
+
readonly applyBreakingRules?: boolean;
|
|
1254
|
+
readonly doNotWrapTextWithPunctuation?: boolean;
|
|
1255
|
+
readonly doNotUseEastAsianBreakRules?: boolean;
|
|
1256
|
+
readonly useWord2002TableStyleRules?: boolean;
|
|
1257
|
+
readonly growAutofit?: boolean;
|
|
1258
|
+
readonly useFELayout?: boolean;
|
|
1259
|
+
readonly useNormalStyleForList?: boolean;
|
|
1260
|
+
readonly doNotUseIndentAsNumberingTabStop?: boolean;
|
|
1261
|
+
readonly useAlternateEastAsianLineBreakRules?: boolean;
|
|
1262
|
+
readonly allowSpaceOfSameStyleInTable?: boolean;
|
|
1263
|
+
readonly doNotSuppressIndentation?: boolean;
|
|
1264
|
+
readonly doNotAutofitConstrainedTables?: boolean;
|
|
1265
|
+
readonly autofitToFirstFixedWidthCell?: boolean;
|
|
1266
|
+
readonly underlineTabInNumberingList?: boolean;
|
|
1267
|
+
readonly displayHangulFixedWidth?: boolean;
|
|
1268
|
+
readonly splitPgBreakAndParaMark?: boolean;
|
|
1269
|
+
readonly doNotVerticallyAlignCellWithSp?: boolean;
|
|
1270
|
+
readonly doNotBreakConstrainedForcedTable?: boolean;
|
|
1271
|
+
readonly ignoreVerticalAlignmentInTextboxes?: boolean;
|
|
1272
|
+
readonly useAnsiKerningPairs?: boolean;
|
|
1273
|
+
readonly cachedColumnBalance?: boolean;
|
|
1274
|
+
};
|
|
1275
|
+
|
|
1276
|
+
export declare type IConcreteNumberingOptions = {
|
|
1277
|
+
readonly numId: number;
|
|
1278
|
+
readonly abstractNumId: number;
|
|
1279
|
+
readonly reference: string;
|
|
1280
|
+
readonly instance: number;
|
|
1281
|
+
readonly overrideLevels?: readonly IOverrideLevel[];
|
|
1282
|
+
};
|
|
1283
|
+
|
|
1284
|
+
export declare type IContext = {
|
|
1285
|
+
readonly file: File_2;
|
|
1286
|
+
readonly viewWrapper: IViewWrapper;
|
|
1287
|
+
readonly stack: IXmlableObject[];
|
|
1288
|
+
};
|
|
1289
|
+
|
|
1290
|
+
declare type ICustomPropertyOptions = {
|
|
1291
|
+
readonly name: string;
|
|
1292
|
+
readonly value: string;
|
|
1293
|
+
};
|
|
1294
|
+
|
|
1295
|
+
declare type IDefaultStylesOptions = {
|
|
1296
|
+
readonly document?: IDocumentDefaultsOptions;
|
|
1297
|
+
readonly title?: IBaseParagraphStyleOptions;
|
|
1298
|
+
readonly heading1?: IBaseParagraphStyleOptions;
|
|
1299
|
+
readonly heading2?: IBaseParagraphStyleOptions;
|
|
1300
|
+
readonly heading3?: IBaseParagraphStyleOptions;
|
|
1301
|
+
readonly heading4?: IBaseParagraphStyleOptions;
|
|
1302
|
+
readonly heading5?: IBaseParagraphStyleOptions;
|
|
1303
|
+
readonly heading6?: IBaseParagraphStyleOptions;
|
|
1304
|
+
readonly strong?: IBaseParagraphStyleOptions;
|
|
1305
|
+
readonly listParagraph?: IBaseParagraphStyleOptions;
|
|
1306
|
+
readonly hyperlink?: IBaseCharacterStyleOptions;
|
|
1307
|
+
readonly footnoteReference?: IBaseCharacterStyleOptions;
|
|
1308
|
+
readonly footnoteText?: IBaseParagraphStyleOptions;
|
|
1309
|
+
readonly footnoteTextChar?: IBaseCharacterStyleOptions;
|
|
1310
|
+
};
|
|
1311
|
+
|
|
1312
|
+
declare type IDeletedRunOptions = IRunOptions & IChangedAttributesProperties;
|
|
1313
|
+
|
|
1314
|
+
export declare type IDistance = {
|
|
1315
|
+
readonly distT?: number;
|
|
1316
|
+
readonly distB?: number;
|
|
1317
|
+
readonly distL?: number;
|
|
1318
|
+
readonly distR?: number;
|
|
1319
|
+
};
|
|
1320
|
+
|
|
1321
|
+
export declare type IDocGridAttributesProperties = {
|
|
1322
|
+
readonly type?: (typeof DocumentGridType)[keyof typeof DocumentGridType];
|
|
1323
|
+
readonly linePitch: number;
|
|
1324
|
+
readonly charSpace?: number;
|
|
1325
|
+
};
|
|
1326
|
+
|
|
1327
|
+
export declare type IDocumentAttributesProperties = Partial<Record<DocumentAttributeNamespace, string>> & {
|
|
1328
|
+
readonly Ignorable?: string;
|
|
1329
|
+
};
|
|
1330
|
+
|
|
1331
|
+
export declare type IDocumentBackgroundOptions = {
|
|
1332
|
+
readonly color?: string;
|
|
1333
|
+
readonly themeColor?: string;
|
|
1334
|
+
readonly themeShade?: string;
|
|
1335
|
+
readonly themeTint?: string;
|
|
1336
|
+
};
|
|
1337
|
+
|
|
1338
|
+
export declare type IDocumentDefaultsOptions = {
|
|
1339
|
+
readonly paragraph?: IParagraphStylePropertiesOptions;
|
|
1340
|
+
readonly run?: IRunStylePropertiesOptions;
|
|
1341
|
+
};
|
|
1342
|
+
|
|
1343
|
+
export declare type IDocumentFooter = {
|
|
1344
|
+
readonly footer: FooterWrapper;
|
|
1345
|
+
readonly type: (typeof HeaderFooterReferenceType)[keyof typeof HeaderFooterReferenceType];
|
|
1346
|
+
};
|
|
1347
|
+
|
|
1348
|
+
export declare type IDocumentHeader = {
|
|
1349
|
+
readonly header: HeaderWrapper;
|
|
1350
|
+
readonly type: (typeof HeaderFooterReferenceType)[keyof typeof HeaderFooterReferenceType];
|
|
1351
|
+
};
|
|
1352
|
+
|
|
1353
|
+
export declare type IDocumentOptions = {
|
|
1354
|
+
readonly background?: IDocumentBackgroundOptions;
|
|
1355
|
+
};
|
|
1356
|
+
|
|
1357
|
+
export declare type IFloating = {
|
|
1358
|
+
readonly horizontalPosition: IHorizontalPositionOptions;
|
|
1359
|
+
readonly verticalPosition: IVerticalPositionOptions;
|
|
1360
|
+
readonly allowOverlap?: boolean;
|
|
1361
|
+
readonly lockAnchor?: boolean;
|
|
1362
|
+
readonly behindDocument?: boolean;
|
|
1363
|
+
readonly layoutInCell?: boolean;
|
|
1364
|
+
readonly margins?: IMargins;
|
|
1365
|
+
readonly wrap?: ITextWrapping;
|
|
1366
|
+
readonly zIndex?: number;
|
|
1367
|
+
};
|
|
1368
|
+
|
|
1369
|
+
export declare type IFontAttributesProperties = {
|
|
1370
|
+
readonly ascii?: string;
|
|
1371
|
+
readonly cs?: string;
|
|
1372
|
+
readonly eastAsia?: string;
|
|
1373
|
+
readonly hAnsi?: string;
|
|
1374
|
+
readonly hint?: string;
|
|
1375
|
+
};
|
|
1376
|
+
|
|
1377
|
+
declare type IFontOptions = {
|
|
1378
|
+
readonly name: string;
|
|
1379
|
+
readonly hint?: string;
|
|
1380
|
+
};
|
|
1381
|
+
|
|
1382
|
+
export declare type IFrameOptions = IXYFrameOptions | IAlignmentFrameOptions;
|
|
1383
|
+
|
|
1384
|
+
export declare abstract class IgnoreIfEmptyXmlComponent extends XmlComponent {
|
|
1385
|
+
prepForXml(context: IContext): IXmlableObject | undefined;
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
export declare type IHeaderFooterGroup<T> = {
|
|
1389
|
+
readonly default?: T;
|
|
1390
|
+
readonly first?: T;
|
|
1391
|
+
readonly even?: T;
|
|
1392
|
+
};
|
|
1393
|
+
|
|
1394
|
+
export declare type IHeaderFooterOptions = {
|
|
1395
|
+
readonly type?: (typeof HeaderFooterReferenceType)[keyof typeof HeaderFooterReferenceType];
|
|
1396
|
+
readonly id?: number;
|
|
1397
|
+
};
|
|
1398
|
+
|
|
1399
|
+
export declare type IHeaderOptions = {
|
|
1400
|
+
readonly children: readonly (Paragraph | Table)[];
|
|
1401
|
+
};
|
|
1402
|
+
|
|
1403
|
+
export declare type IHorizontalPositionOptions = {
|
|
1404
|
+
readonly relative?: (typeof HorizontalPositionRelativeFrom)[keyof typeof HorizontalPositionRelativeFrom];
|
|
1405
|
+
readonly align?: (typeof HorizontalPositionAlign)[keyof typeof HorizontalPositionAlign];
|
|
1406
|
+
readonly offset?: number;
|
|
1407
|
+
};
|
|
1408
|
+
|
|
1409
|
+
declare type IHyphenationOptions = {
|
|
1410
|
+
readonly autoHyphenation?: boolean;
|
|
1411
|
+
readonly hyphenationZone?: number;
|
|
1412
|
+
readonly consecutiveHyphenLimit?: number;
|
|
1413
|
+
readonly doNotHyphenateCaps?: boolean;
|
|
1414
|
+
};
|
|
1415
|
+
|
|
1416
|
+
export declare type IImageOptions = (RegularImageOptions | SvgMediaOptions) & DrawingCoreOptions & CoreImageOptions;
|
|
1417
|
+
|
|
1418
|
+
export declare type IIndentAttributesProperties = {
|
|
1419
|
+
readonly start?: number | UniversalMeasure;
|
|
1420
|
+
readonly end?: number | UniversalMeasure;
|
|
1421
|
+
readonly left?: number | UniversalMeasure;
|
|
1422
|
+
readonly right?: number | UniversalMeasure;
|
|
1423
|
+
readonly hanging?: number | PositiveUniversalMeasure;
|
|
1424
|
+
readonly firstLine?: number | PositiveUniversalMeasure;
|
|
1425
|
+
};
|
|
1426
|
+
|
|
1427
|
+
declare type IInsertedRunOptions = IChangedAttributesProperties & IRunOptions;
|
|
1428
|
+
|
|
1429
|
+
declare type ILanguageOptions = {
|
|
1430
|
+
readonly value?: string;
|
|
1431
|
+
readonly eastAsia?: string;
|
|
1432
|
+
readonly bidirectional?: string;
|
|
1433
|
+
};
|
|
1434
|
+
|
|
1435
|
+
export declare type ILevelParagraphStylePropertiesOptions = {
|
|
1436
|
+
readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
1437
|
+
readonly thematicBreak?: boolean;
|
|
1438
|
+
readonly contextualSpacing?: boolean;
|
|
1439
|
+
readonly rightTabStop?: number;
|
|
1440
|
+
readonly leftTabStop?: number;
|
|
1441
|
+
readonly indent?: IIndentAttributesProperties;
|
|
1442
|
+
readonly spacing?: ISpacingProperties;
|
|
1443
|
+
readonly keepNext?: boolean;
|
|
1444
|
+
readonly keepLines?: boolean;
|
|
1445
|
+
readonly outlineLevel?: number;
|
|
1446
|
+
};
|
|
1447
|
+
|
|
1448
|
+
export declare type ILevelsOptions = {
|
|
1449
|
+
readonly level: number;
|
|
1450
|
+
readonly format?: (typeof LevelFormat)[keyof typeof LevelFormat];
|
|
1451
|
+
readonly text?: string;
|
|
1452
|
+
readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
1453
|
+
readonly start?: number;
|
|
1454
|
+
readonly suffix?: (typeof LevelSuffix)[keyof typeof LevelSuffix];
|
|
1455
|
+
readonly isLegalNumberingStyle?: boolean;
|
|
1456
|
+
readonly style?: {
|
|
1457
|
+
readonly run?: IRunStylePropertiesOptions;
|
|
1458
|
+
readonly paragraph?: ILevelParagraphStylePropertiesOptions;
|
|
1459
|
+
};
|
|
1460
|
+
};
|
|
1461
|
+
|
|
1462
|
+
export declare type ILineNumberAttributes = {
|
|
1463
|
+
readonly countBy?: number;
|
|
1464
|
+
readonly start?: number;
|
|
1465
|
+
readonly restart?: (typeof LineNumberRestartFormat)[keyof typeof LineNumberRestartFormat];
|
|
1466
|
+
readonly distance?: number | PositiveUniversalMeasure;
|
|
1467
|
+
};
|
|
1468
|
+
|
|
1469
|
+
export declare class ImageRun extends Run {
|
|
1470
|
+
private readonly imageData;
|
|
1471
|
+
constructor(options: IImageOptions);
|
|
1472
|
+
prepForXml(context: IContext): IXmlableObject | undefined;
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1475
|
+
export declare type IMargins = {
|
|
1476
|
+
readonly left?: number;
|
|
1477
|
+
readonly bottom?: number;
|
|
1478
|
+
readonly top?: number;
|
|
1479
|
+
readonly right?: number;
|
|
1480
|
+
};
|
|
1481
|
+
|
|
1482
|
+
export declare type IMathFractionOptions = {
|
|
1483
|
+
readonly numerator: readonly MathComponent[];
|
|
1484
|
+
readonly denominator: readonly MathComponent[];
|
|
1485
|
+
};
|
|
1486
|
+
|
|
1487
|
+
export declare type IMathFunctionOptions = {
|
|
1488
|
+
readonly children: readonly MathComponent[];
|
|
1489
|
+
readonly name: readonly MathComponent[];
|
|
1490
|
+
};
|
|
1491
|
+
|
|
1492
|
+
export declare type IMathIntegralOptions = {
|
|
1493
|
+
readonly children: readonly MathComponent[];
|
|
1494
|
+
readonly subScript?: readonly MathComponent[];
|
|
1495
|
+
readonly superScript?: readonly MathComponent[];
|
|
1496
|
+
};
|
|
1497
|
+
|
|
1498
|
+
export declare type IMathLimitLowerOptions = {
|
|
1499
|
+
readonly children: readonly MathComponent[];
|
|
1500
|
+
readonly limit: readonly MathComponent[];
|
|
1501
|
+
};
|
|
1502
|
+
|
|
1503
|
+
export declare type IMathLimitUpperOptions = {
|
|
1504
|
+
readonly children: readonly MathComponent[];
|
|
1505
|
+
readonly limit: readonly MathComponent[];
|
|
1506
|
+
};
|
|
1507
|
+
|
|
1508
|
+
export declare type IMathOptions = {
|
|
1509
|
+
readonly children: readonly MathComponent[];
|
|
1510
|
+
};
|
|
1511
|
+
|
|
1512
|
+
export declare type IMathPreSubSuperScriptOptions = {
|
|
1513
|
+
readonly children: readonly MathComponent[];
|
|
1514
|
+
readonly subScript: readonly MathComponent[];
|
|
1515
|
+
readonly superScript: readonly MathComponent[];
|
|
1516
|
+
};
|
|
1517
|
+
|
|
1518
|
+
export declare type IMathRadicalOptions = {
|
|
1519
|
+
readonly children: readonly MathComponent[];
|
|
1520
|
+
readonly degree?: readonly MathComponent[];
|
|
1521
|
+
};
|
|
1522
|
+
|
|
1523
|
+
export declare type IMathSubScriptOptions = {
|
|
1524
|
+
readonly children: readonly MathComponent[];
|
|
1525
|
+
readonly subScript: readonly MathComponent[];
|
|
1526
|
+
};
|
|
1527
|
+
|
|
1528
|
+
export declare type IMathSubSuperScriptOptions = {
|
|
1529
|
+
readonly children: readonly MathComponent[];
|
|
1530
|
+
readonly subScript: readonly MathComponent[];
|
|
1531
|
+
readonly superScript: readonly MathComponent[];
|
|
1532
|
+
};
|
|
1533
|
+
|
|
1534
|
+
export declare type IMathSumOptions = {
|
|
1535
|
+
readonly children: readonly MathComponent[];
|
|
1536
|
+
readonly subScript?: readonly MathComponent[];
|
|
1537
|
+
readonly superScript?: readonly MathComponent[];
|
|
1538
|
+
};
|
|
1539
|
+
|
|
1540
|
+
export declare type IMathSuperScriptOptions = {
|
|
1541
|
+
readonly children: readonly MathComponent[];
|
|
1542
|
+
readonly superScript: readonly MathComponent[];
|
|
1543
|
+
};
|
|
1544
|
+
|
|
1545
|
+
export declare type IMediaData = (RegularMediaData | SvgMediaData) & CoreMediaData;
|
|
1546
|
+
|
|
1547
|
+
export declare type IMediaDataTransformation = {
|
|
1548
|
+
readonly pixels: {
|
|
1549
|
+
readonly x: number;
|
|
1550
|
+
readonly y: number;
|
|
1551
|
+
};
|
|
1552
|
+
readonly emus: {
|
|
1553
|
+
readonly x: number;
|
|
1554
|
+
readonly y: number;
|
|
1555
|
+
};
|
|
1556
|
+
readonly flip?: {
|
|
1557
|
+
readonly vertical?: boolean;
|
|
1558
|
+
readonly horizontal?: boolean;
|
|
1559
|
+
};
|
|
1560
|
+
readonly rotation?: number;
|
|
1561
|
+
};
|
|
1562
|
+
|
|
1563
|
+
export declare type IMediaTransformation = {
|
|
1564
|
+
readonly flip?: {
|
|
1565
|
+
readonly vertical?: boolean;
|
|
1566
|
+
readonly horizontal?: boolean;
|
|
1567
|
+
};
|
|
1568
|
+
readonly rotation?: number;
|
|
1569
|
+
} & SizeProperty;
|
|
1570
|
+
|
|
1571
|
+
export declare class ImportedRootElementAttributes extends XmlComponent {
|
|
1572
|
+
private readonly _attr;
|
|
1573
|
+
constructor(_attr: any);
|
|
1574
|
+
prepForXml(_: IContext): IXmlableObject;
|
|
1575
|
+
}
|
|
1576
|
+
|
|
1577
|
+
export declare class ImportedXmlComponent extends XmlComponent {
|
|
1578
|
+
static fromXmlString(importedContent: string): ImportedXmlComponent;
|
|
1579
|
+
constructor(rootKey: string, _attr?: any);
|
|
1580
|
+
push(xmlComponent: XmlComponent | string): void;
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1583
|
+
export declare class Indent extends XmlComponent {
|
|
1584
|
+
constructor({ start, end, left, right, hanging, firstLine }: IIndentAttributesProperties);
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
export declare abstract class InitializableXmlComponent extends XmlComponent {
|
|
1588
|
+
constructor(rootKey: string, initComponent?: InitializableXmlComponent);
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
declare type InlineCoreOptions = {
|
|
1592
|
+
readonly outline?: OutlineOptions;
|
|
1593
|
+
readonly altText?: DocPropertiesOptions;
|
|
1594
|
+
};
|
|
1595
|
+
|
|
1596
|
+
export declare type InputDataType = Buffer | string | number[] | Uint8Array | ArrayBuffer | Blob | NodeJS.ReadableStream | default_2;
|
|
1597
|
+
|
|
1598
|
+
export declare class InsertedTextRun extends XmlComponent {
|
|
1599
|
+
constructor(options: IInsertedRunOptions);
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
export declare class InternalHyperlink extends ConcreteHyperlink {
|
|
1603
|
+
constructor(options: {
|
|
1604
|
+
readonly children: readonly ParagraphChild[];
|
|
1605
|
+
readonly anchor: string;
|
|
1606
|
+
});
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1609
|
+
export declare type INumberingOptions = {
|
|
1610
|
+
readonly config: readonly {
|
|
1611
|
+
readonly levels: readonly ILevelsOptions[];
|
|
1612
|
+
readonly reference: string;
|
|
1613
|
+
}[];
|
|
1614
|
+
};
|
|
1615
|
+
|
|
1616
|
+
declare type IOverrideLevel = {
|
|
1617
|
+
readonly num: number;
|
|
1618
|
+
readonly start?: number;
|
|
1619
|
+
};
|
|
1620
|
+
|
|
1621
|
+
export declare type IPageBorderAttributes = {
|
|
1622
|
+
readonly display?: (typeof PageBorderDisplay)[keyof typeof PageBorderDisplay];
|
|
1623
|
+
readonly offsetFrom?: (typeof PageBorderOffsetFrom)[keyof typeof PageBorderOffsetFrom];
|
|
1624
|
+
readonly zOrder?: (typeof PageBorderZOrder)[keyof typeof PageBorderZOrder];
|
|
1625
|
+
};
|
|
1626
|
+
|
|
1627
|
+
export declare type IPageBordersOptions = {
|
|
1628
|
+
readonly pageBorders?: IPageBorderAttributes;
|
|
1629
|
+
readonly pageBorderTop?: IBorderOptions;
|
|
1630
|
+
readonly pageBorderRight?: IBorderOptions;
|
|
1631
|
+
readonly pageBorderBottom?: IBorderOptions;
|
|
1632
|
+
readonly pageBorderLeft?: IBorderOptions;
|
|
1633
|
+
};
|
|
1634
|
+
|
|
1635
|
+
export declare type IPageMarginAttributes = {
|
|
1636
|
+
readonly top?: number | UniversalMeasure;
|
|
1637
|
+
readonly right?: number | PositiveUniversalMeasure;
|
|
1638
|
+
readonly bottom?: number | UniversalMeasure;
|
|
1639
|
+
readonly left?: number | PositiveUniversalMeasure;
|
|
1640
|
+
readonly header?: number | PositiveUniversalMeasure;
|
|
1641
|
+
readonly footer?: number | PositiveUniversalMeasure;
|
|
1642
|
+
readonly gutter?: number | PositiveUniversalMeasure;
|
|
1643
|
+
};
|
|
1644
|
+
|
|
1645
|
+
export declare type IPageNumberTypeAttributes = {
|
|
1646
|
+
readonly start?: number;
|
|
1647
|
+
readonly formatType?: (typeof NumberFormat)[keyof typeof NumberFormat];
|
|
1648
|
+
readonly separator?: (typeof PageNumberSeparator)[keyof typeof PageNumberSeparator];
|
|
1649
|
+
};
|
|
1650
|
+
|
|
1651
|
+
export declare type IPageReferenceOptions = {
|
|
1652
|
+
readonly hyperlink?: boolean;
|
|
1653
|
+
readonly useRelativePosition?: boolean;
|
|
1654
|
+
};
|
|
1655
|
+
|
|
1656
|
+
export declare type IPageSizeAttributes = {
|
|
1657
|
+
readonly width: number | PositiveUniversalMeasure;
|
|
1658
|
+
readonly height: number | PositiveUniversalMeasure;
|
|
1659
|
+
readonly orientation?: (typeof PageOrientation)[keyof typeof PageOrientation];
|
|
1660
|
+
readonly code?: number;
|
|
1661
|
+
};
|
|
1662
|
+
|
|
1663
|
+
export declare type IParagraphOptions = {
|
|
1664
|
+
readonly text?: string;
|
|
1665
|
+
readonly children?: readonly ParagraphChild[];
|
|
1666
|
+
} & IParagraphPropertiesOptions;
|
|
1667
|
+
|
|
1668
|
+
export declare type IParagraphPropertiesOptions = {
|
|
1669
|
+
readonly heading?: (typeof HeadingLevel)[keyof typeof HeadingLevel];
|
|
1670
|
+
readonly bidirectional?: boolean;
|
|
1671
|
+
readonly pageBreakBefore?: boolean;
|
|
1672
|
+
readonly tabStops?: readonly TabStopDefinition[];
|
|
1673
|
+
readonly style?: string;
|
|
1674
|
+
readonly bullet?: {
|
|
1675
|
+
readonly level: number;
|
|
1676
|
+
};
|
|
1677
|
+
readonly widowControl?: boolean;
|
|
1678
|
+
readonly frame?: IFrameOptions;
|
|
1679
|
+
readonly suppressLineNumbers?: boolean;
|
|
1680
|
+
readonly wordWrap?: boolean;
|
|
1681
|
+
readonly overflowPunctuation?: boolean;
|
|
1682
|
+
readonly scale?: number;
|
|
1683
|
+
readonly autoSpaceEastAsianText?: boolean;
|
|
1684
|
+
readonly run?: IRunOptions;
|
|
1685
|
+
} & IParagraphStylePropertiesOptions;
|
|
1686
|
+
|
|
1687
|
+
export declare type IParagraphStyleOptions = {
|
|
1688
|
+
readonly id: string;
|
|
1689
|
+
} & IBaseParagraphStyleOptions;
|
|
1690
|
+
|
|
1691
|
+
export declare type IParagraphStylePropertiesOptions = {
|
|
1692
|
+
readonly border?: IBordersOptions;
|
|
1693
|
+
readonly shading?: IShadingAttributesProperties;
|
|
1694
|
+
readonly numbering?: {
|
|
1695
|
+
readonly reference: string;
|
|
1696
|
+
readonly level: number;
|
|
1697
|
+
readonly instance?: number;
|
|
1698
|
+
readonly custom?: boolean;
|
|
1699
|
+
} | false;
|
|
1700
|
+
} & ILevelParagraphStylePropertiesOptions;
|
|
1701
|
+
|
|
1702
|
+
export declare type IPatch = ParagraphPatch | FilePatch;
|
|
1703
|
+
|
|
1704
|
+
export declare type IPropertiesOptions = {
|
|
1705
|
+
readonly sections: readonly ISectionOptions[];
|
|
1706
|
+
readonly title?: string;
|
|
1707
|
+
readonly subject?: string;
|
|
1708
|
+
readonly creator?: string;
|
|
1709
|
+
readonly keywords?: string;
|
|
1710
|
+
readonly description?: string;
|
|
1711
|
+
readonly lastModifiedBy?: string;
|
|
1712
|
+
readonly revision?: number;
|
|
1713
|
+
readonly externalStyles?: string;
|
|
1714
|
+
readonly styles?: IStylesOptions;
|
|
1715
|
+
readonly numbering?: INumberingOptions;
|
|
1716
|
+
readonly comments?: ICommentsOptions;
|
|
1717
|
+
readonly footnotes?: Readonly<Record<string, {
|
|
1718
|
+
readonly children: readonly Paragraph[];
|
|
1719
|
+
}>>;
|
|
1720
|
+
readonly background?: IDocumentBackgroundOptions;
|
|
1721
|
+
readonly features?: {
|
|
1722
|
+
readonly trackRevisions?: boolean;
|
|
1723
|
+
readonly updateFields?: boolean;
|
|
1724
|
+
};
|
|
1725
|
+
readonly compatabilityModeVersion?: number;
|
|
1726
|
+
readonly compatibility?: ICompatibilityOptions;
|
|
1727
|
+
readonly customProperties?: readonly ICustomPropertyOptions[];
|
|
1728
|
+
readonly evenAndOddHeaderAndFooters?: boolean;
|
|
1729
|
+
readonly defaultTabStop?: number;
|
|
1730
|
+
readonly fonts?: readonly FontOptions[];
|
|
1731
|
+
readonly hyphenation?: IHyphenationOptions;
|
|
1732
|
+
};
|
|
1733
|
+
|
|
1734
|
+
export declare type IRunOptions = {
|
|
1735
|
+
readonly children?: readonly (Begin | FieldInstruction | Separate | End | (typeof PageNumber)[keyof typeof PageNumber] | FootnoteReferenceRun | Break | AnnotationReference | CarriageReturn | ContinuationSeparator | DayLong | DayShort | EndnoteReference | FootnoteReferenceElement | LastRenderedPageBreak | MonthLong | MonthShort | NoBreakHyphen | PageNumberElement | Separator | SoftHyphen | Tab | YearLong | YearShort | PositionalTab | string)[];
|
|
1736
|
+
readonly break?: number;
|
|
1737
|
+
readonly text?: string;
|
|
1738
|
+
} & IRunPropertiesOptions;
|
|
1739
|
+
|
|
1740
|
+
export declare type IRunPropertiesChangeOptions = {} & IRunPropertiesOptions & IChangedAttributesProperties;
|
|
1741
|
+
|
|
1742
|
+
export declare type IRunPropertiesOptions = {
|
|
1743
|
+
readonly style?: string;
|
|
1744
|
+
} & IRunStylePropertiesOptions;
|
|
1745
|
+
|
|
1746
|
+
export declare type IRunStylePropertiesOptions = {
|
|
1747
|
+
readonly noProof?: boolean;
|
|
1748
|
+
readonly bold?: boolean;
|
|
1749
|
+
readonly boldComplexScript?: boolean;
|
|
1750
|
+
readonly italics?: boolean;
|
|
1751
|
+
readonly italicsComplexScript?: boolean;
|
|
1752
|
+
readonly underline?: {
|
|
1753
|
+
readonly color?: string;
|
|
1754
|
+
readonly type?: (typeof UnderlineType)[keyof typeof UnderlineType];
|
|
1755
|
+
};
|
|
1756
|
+
readonly effect?: (typeof TextEffect)[keyof typeof TextEffect];
|
|
1757
|
+
readonly emphasisMark?: {
|
|
1758
|
+
readonly type?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType];
|
|
1759
|
+
};
|
|
1760
|
+
readonly color?: string;
|
|
1761
|
+
readonly kern?: number | PositiveUniversalMeasure;
|
|
1762
|
+
readonly position?: UniversalMeasure;
|
|
1763
|
+
readonly size?: number | PositiveUniversalMeasure;
|
|
1764
|
+
readonly sizeComplexScript?: boolean | number | PositiveUniversalMeasure;
|
|
1765
|
+
readonly rightToLeft?: boolean;
|
|
1766
|
+
readonly smallCaps?: boolean;
|
|
1767
|
+
readonly allCaps?: boolean;
|
|
1768
|
+
readonly strike?: boolean;
|
|
1769
|
+
readonly doubleStrike?: boolean;
|
|
1770
|
+
readonly subScript?: boolean;
|
|
1771
|
+
readonly superScript?: boolean;
|
|
1772
|
+
readonly font?: string | IFontOptions | IFontAttributesProperties;
|
|
1773
|
+
readonly highlight?: (typeof HighlightColor)[keyof typeof HighlightColor];
|
|
1774
|
+
readonly highlightComplexScript?: boolean | string;
|
|
1775
|
+
readonly characterSpacing?: number;
|
|
1776
|
+
readonly shading?: IShadingAttributesProperties;
|
|
1777
|
+
readonly emboss?: boolean;
|
|
1778
|
+
readonly imprint?: boolean;
|
|
1779
|
+
readonly revision?: IRunPropertiesChangeOptions;
|
|
1780
|
+
readonly language?: ILanguageOptions;
|
|
1781
|
+
readonly border?: IBorderOptions;
|
|
1782
|
+
readonly snapToGrid?: boolean;
|
|
1783
|
+
readonly vanish?: boolean;
|
|
1784
|
+
readonly specVanish?: boolean;
|
|
1785
|
+
readonly scale?: number;
|
|
1786
|
+
readonly math?: boolean;
|
|
1787
|
+
};
|
|
1788
|
+
|
|
1789
|
+
export declare type ISectionOptions = {
|
|
1790
|
+
readonly headers?: {
|
|
1791
|
+
readonly default?: Header;
|
|
1792
|
+
readonly first?: Header;
|
|
1793
|
+
readonly even?: Header;
|
|
1794
|
+
};
|
|
1795
|
+
readonly footers?: {
|
|
1796
|
+
readonly default?: Footer;
|
|
1797
|
+
readonly first?: Footer;
|
|
1798
|
+
readonly even?: Footer;
|
|
1799
|
+
};
|
|
1800
|
+
readonly properties?: ISectionPropertiesOptions;
|
|
1801
|
+
readonly children: readonly FileChild[];
|
|
1802
|
+
};
|
|
1803
|
+
|
|
1804
|
+
export declare type ISectionPropertiesOptions = {
|
|
1805
|
+
readonly page?: {
|
|
1806
|
+
readonly size?: Partial<IPageSizeAttributes>;
|
|
1807
|
+
readonly margin?: IPageMarginAttributes;
|
|
1808
|
+
readonly pageNumbers?: IPageNumberTypeAttributes;
|
|
1809
|
+
readonly borders?: IPageBordersOptions;
|
|
1810
|
+
readonly textDirection?: (typeof PageTextDirectionType)[keyof typeof PageTextDirectionType];
|
|
1811
|
+
};
|
|
1812
|
+
readonly grid?: Partial<IDocGridAttributesProperties>;
|
|
1813
|
+
readonly headerWrapperGroup?: IHeaderFooterGroup<HeaderWrapper>;
|
|
1814
|
+
readonly footerWrapperGroup?: IHeaderFooterGroup<FooterWrapper>;
|
|
1815
|
+
readonly lineNumbers?: ILineNumberAttributes;
|
|
1816
|
+
readonly titlePage?: boolean;
|
|
1817
|
+
readonly verticalAlign?: SectionVerticalAlign;
|
|
1818
|
+
readonly column?: IColumnsAttributes;
|
|
1819
|
+
readonly type?: (typeof SectionType)[keyof typeof SectionType];
|
|
1820
|
+
};
|
|
1821
|
+
|
|
1822
|
+
declare type ISettingsOptions = {
|
|
1823
|
+
readonly compatibilityModeVersion?: number;
|
|
1824
|
+
readonly evenAndOddHeaders?: boolean;
|
|
1825
|
+
readonly trackRevisions?: boolean;
|
|
1826
|
+
readonly updateFields?: boolean;
|
|
1827
|
+
readonly compatibility?: ICompatibilityOptions;
|
|
1828
|
+
readonly defaultTabStop?: number;
|
|
1829
|
+
readonly hyphenation?: IHyphenationOptions;
|
|
1830
|
+
};
|
|
1831
|
+
|
|
1832
|
+
export declare type IShadingAttributesProperties = {
|
|
1833
|
+
readonly fill?: string;
|
|
1834
|
+
readonly color?: string;
|
|
1835
|
+
readonly type?: (typeof ShadingType)[keyof typeof ShadingType];
|
|
1836
|
+
};
|
|
1837
|
+
|
|
1838
|
+
declare type IShapePropertiesOptions = {
|
|
1839
|
+
readonly bwMode?: string;
|
|
1840
|
+
readonly outline?: OutlineOptions;
|
|
1841
|
+
readonly transform?: IMediaDataTransformation;
|
|
1842
|
+
readonly presetGeometry?: boolean;
|
|
1843
|
+
} & ({
|
|
1844
|
+
type?: undefined;
|
|
1845
|
+
} | OutlineFillProperties);
|
|
1846
|
+
|
|
1847
|
+
export declare type ISpacingProperties = {
|
|
1848
|
+
readonly after?: number;
|
|
1849
|
+
readonly before?: number;
|
|
1850
|
+
readonly line?: number;
|
|
1851
|
+
readonly lineRule?: (typeof LineRuleType)[keyof typeof LineRuleType];
|
|
1852
|
+
readonly beforeAutoSpacing?: boolean;
|
|
1853
|
+
readonly afterAutoSpacing?: boolean;
|
|
1854
|
+
};
|
|
1855
|
+
|
|
1856
|
+
declare type IStyleAttributes = {
|
|
1857
|
+
readonly type?: string;
|
|
1858
|
+
readonly styleId?: string;
|
|
1859
|
+
readonly default?: boolean;
|
|
1860
|
+
readonly customStyle?: string;
|
|
1861
|
+
};
|
|
1862
|
+
|
|
1863
|
+
declare type IStyleOptions = {
|
|
1864
|
+
readonly name?: string;
|
|
1865
|
+
readonly basedOn?: string;
|
|
1866
|
+
readonly next?: string;
|
|
1867
|
+
readonly link?: string;
|
|
1868
|
+
readonly uiPriority?: number;
|
|
1869
|
+
readonly semiHidden?: boolean;
|
|
1870
|
+
readonly unhideWhenUsed?: boolean;
|
|
1871
|
+
readonly quickFormat?: boolean;
|
|
1872
|
+
};
|
|
1873
|
+
|
|
1874
|
+
export declare type IStylesOptions = {
|
|
1875
|
+
readonly default?: IDefaultStylesOptions;
|
|
1876
|
+
readonly initialStyles?: BaseXmlComponent;
|
|
1877
|
+
readonly paragraphStyles?: readonly IParagraphStyleOptions[];
|
|
1878
|
+
readonly characterStyles?: readonly ICharacterStyleOptions[];
|
|
1879
|
+
readonly importedStyles?: readonly (XmlComponent | StyleForParagraph | StyleForCharacter | ImportedXmlComponent)[];
|
|
1880
|
+
};
|
|
1881
|
+
|
|
1882
|
+
export declare type ISymbolRunOptions = {
|
|
1883
|
+
readonly char: string;
|
|
1884
|
+
readonly symbolfont?: string;
|
|
1885
|
+
} & IRunOptions;
|
|
1886
|
+
|
|
1887
|
+
export declare type ITableBordersOptions = {
|
|
1888
|
+
readonly top?: IBorderOptions;
|
|
1889
|
+
readonly bottom?: IBorderOptions;
|
|
1890
|
+
readonly left?: IBorderOptions;
|
|
1891
|
+
readonly right?: IBorderOptions;
|
|
1892
|
+
readonly insideHorizontal?: IBorderOptions;
|
|
1893
|
+
readonly insideVertical?: IBorderOptions;
|
|
1894
|
+
};
|
|
1895
|
+
|
|
1896
|
+
export declare type ITableCellBorders = {
|
|
1897
|
+
readonly top?: IBorderOptions;
|
|
1898
|
+
readonly start?: IBorderOptions;
|
|
1899
|
+
readonly left?: IBorderOptions;
|
|
1900
|
+
readonly bottom?: IBorderOptions;
|
|
1901
|
+
readonly end?: IBorderOptions;
|
|
1902
|
+
readonly right?: IBorderOptions;
|
|
1903
|
+
};
|
|
1904
|
+
|
|
1905
|
+
declare type ITableCellMarginOptions = {
|
|
1906
|
+
readonly marginUnitType?: (typeof WidthType)[keyof typeof WidthType];
|
|
1907
|
+
readonly top?: number;
|
|
1908
|
+
readonly bottom?: number;
|
|
1909
|
+
readonly left?: number;
|
|
1910
|
+
readonly right?: number;
|
|
1911
|
+
};
|
|
1912
|
+
|
|
1913
|
+
export declare type ITableCellOptions = {
|
|
1914
|
+
readonly children: readonly (Paragraph | Table)[];
|
|
1915
|
+
} & ITableCellPropertiesOptions;
|
|
1916
|
+
|
|
1917
|
+
declare type ITableCellPropertiesOptions = {
|
|
1918
|
+
readonly shading?: IShadingAttributesProperties;
|
|
1919
|
+
readonly margins?: ITableCellMarginOptions;
|
|
1920
|
+
readonly verticalAlign?: TableVerticalAlign;
|
|
1921
|
+
readonly textDirection?: (typeof TextDirection)[keyof typeof TextDirection];
|
|
1922
|
+
readonly verticalMerge?: (typeof VerticalMergeType)[keyof typeof VerticalMergeType];
|
|
1923
|
+
readonly width?: ITableWidthProperties;
|
|
1924
|
+
readonly columnSpan?: number;
|
|
1925
|
+
readonly rowSpan?: number;
|
|
1926
|
+
readonly borders?: ITableCellBorders;
|
|
1927
|
+
};
|
|
1928
|
+
|
|
1929
|
+
declare type ITableCellSpacingProperties = {
|
|
1930
|
+
readonly value: number | Percentage | UniversalMeasure;
|
|
1931
|
+
readonly type?: (typeof CellSpacingType)[keyof typeof CellSpacingType];
|
|
1932
|
+
};
|
|
1933
|
+
|
|
1934
|
+
export declare type ITableFloatOptions = {
|
|
1935
|
+
readonly horizontalAnchor?: (typeof TableAnchorType)[keyof typeof TableAnchorType];
|
|
1936
|
+
readonly absoluteHorizontalPosition?: number | UniversalMeasure;
|
|
1937
|
+
readonly relativeHorizontalPosition?: (typeof RelativeHorizontalPosition)[keyof typeof RelativeHorizontalPosition];
|
|
1938
|
+
readonly verticalAnchor?: (typeof TableAnchorType)[keyof typeof TableAnchorType];
|
|
1939
|
+
readonly absoluteVerticalPosition?: number | UniversalMeasure;
|
|
1940
|
+
readonly relativeVerticalPosition?: (typeof RelativeVerticalPosition)[keyof typeof RelativeVerticalPosition];
|
|
1941
|
+
readonly bottomFromText?: number | PositiveUniversalMeasure;
|
|
1942
|
+
readonly topFromText?: number | PositiveUniversalMeasure;
|
|
1943
|
+
readonly leftFromText?: number | PositiveUniversalMeasure;
|
|
1944
|
+
readonly rightFromText?: number | PositiveUniversalMeasure;
|
|
1945
|
+
readonly overlap?: (typeof OverlapType)[keyof typeof OverlapType];
|
|
1946
|
+
};
|
|
1947
|
+
|
|
1948
|
+
export declare type ITableOfContentsOptions = {
|
|
1949
|
+
readonly captionLabel?: string;
|
|
1950
|
+
readonly entriesFromBookmark?: string;
|
|
1951
|
+
readonly captionLabelIncludingNumbers?: string;
|
|
1952
|
+
readonly sequenceAndPageNumbersSeparator?: string;
|
|
1953
|
+
readonly tcFieldIdentifier?: string;
|
|
1954
|
+
readonly hyperlink?: boolean;
|
|
1955
|
+
readonly tcFieldLevelRange?: string;
|
|
1956
|
+
readonly pageNumbersEntryLevelsRange?: string;
|
|
1957
|
+
readonly headingStyleRange?: string;
|
|
1958
|
+
readonly entryAndPageNumberSeparator?: string;
|
|
1959
|
+
readonly seqFieldIdentifierForPrefix?: string;
|
|
1960
|
+
readonly stylesWithLevels?: readonly StyleLevel[];
|
|
1961
|
+
readonly useAppliedParagraphOutlineLevel?: boolean;
|
|
1962
|
+
readonly preserveTabInEntries?: boolean;
|
|
1963
|
+
readonly preserveNewLineInEntries?: boolean;
|
|
1964
|
+
readonly hideTabAndPageNumbersInWebView?: boolean;
|
|
1965
|
+
};
|
|
1966
|
+
|
|
1967
|
+
export declare type ITableOptions = {
|
|
1968
|
+
readonly rows: readonly TableRow[];
|
|
1969
|
+
readonly width?: ITableWidthProperties;
|
|
1970
|
+
readonly columnWidths?: readonly number[];
|
|
1971
|
+
readonly margins?: ITableCellMarginOptions;
|
|
1972
|
+
readonly indent?: ITableWidthProperties;
|
|
1973
|
+
readonly float?: ITableFloatOptions;
|
|
1974
|
+
readonly layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
|
|
1975
|
+
readonly style?: string;
|
|
1976
|
+
readonly borders?: ITableBordersOptions;
|
|
1977
|
+
readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
1978
|
+
readonly visuallyRightToLeft?: boolean;
|
|
1979
|
+
readonly cellSpacing?: ITableCellSpacingProperties;
|
|
1980
|
+
};
|
|
1981
|
+
|
|
1982
|
+
export declare type ITablePropertiesOptions = {
|
|
1983
|
+
readonly width?: ITableWidthProperties;
|
|
1984
|
+
readonly indent?: ITableWidthProperties;
|
|
1985
|
+
readonly layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
|
|
1986
|
+
readonly borders?: ITableBordersOptions;
|
|
1987
|
+
readonly float?: ITableFloatOptions;
|
|
1988
|
+
readonly shading?: IShadingAttributesProperties;
|
|
1989
|
+
readonly style?: string;
|
|
1990
|
+
readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
1991
|
+
readonly cellMargin?: ITableCellMarginOptions;
|
|
1992
|
+
readonly visuallyRightToLeft?: boolean;
|
|
1993
|
+
readonly cellSpacing?: ITableCellSpacingProperties;
|
|
1994
|
+
};
|
|
1995
|
+
|
|
1996
|
+
export declare type ITableRowOptions = {
|
|
1997
|
+
readonly children: readonly TableCell[];
|
|
1998
|
+
} & ITableRowPropertiesOptions;
|
|
1999
|
+
|
|
2000
|
+
export declare type ITableRowPropertiesOptions = {
|
|
2001
|
+
readonly cantSplit?: boolean;
|
|
2002
|
+
readonly tableHeader?: boolean;
|
|
2003
|
+
readonly height?: {
|
|
2004
|
+
readonly value: number | PositiveUniversalMeasure;
|
|
2005
|
+
readonly rule: (typeof HeightRule)[keyof typeof HeightRule];
|
|
2006
|
+
};
|
|
2007
|
+
readonly cellSpacing?: ITableCellSpacingProperties;
|
|
2008
|
+
};
|
|
2009
|
+
|
|
2010
|
+
export declare type ITableWidthProperties = {
|
|
2011
|
+
readonly size: number | Percentage | UniversalMeasure;
|
|
2012
|
+
readonly type?: (typeof WidthType)[keyof typeof WidthType];
|
|
2013
|
+
};
|
|
2014
|
+
|
|
2015
|
+
declare type ITextboxOptions = Omit<IParagraphOptions, "style"> & {
|
|
2016
|
+
readonly style?: VmlShapeStyle;
|
|
2017
|
+
};
|
|
2018
|
+
|
|
2019
|
+
export declare type ITextWrapping = {
|
|
2020
|
+
readonly type: (typeof TextWrappingType)[keyof typeof TextWrappingType];
|
|
2021
|
+
readonly side?: (typeof TextWrappingSide)[keyof typeof TextWrappingSide];
|
|
2022
|
+
readonly margins?: IDistance;
|
|
2023
|
+
};
|
|
2024
|
+
|
|
2025
|
+
export declare type IVerticalPositionOptions = {
|
|
2026
|
+
readonly relative?: (typeof VerticalPositionRelativeFrom)[keyof typeof VerticalPositionRelativeFrom];
|
|
2027
|
+
readonly align?: (typeof VerticalPositionAlign)[keyof typeof VerticalPositionAlign];
|
|
2028
|
+
readonly offset?: number;
|
|
2029
|
+
};
|
|
2030
|
+
|
|
2031
|
+
declare type IViewWrapper = {
|
|
2032
|
+
readonly View: Document_2 | Footer_2 | Header_2 | FootNotes | XmlComponent;
|
|
2033
|
+
readonly Relationships: Relationships;
|
|
2034
|
+
};
|
|
2035
|
+
|
|
2036
|
+
export declare interface IXmlableObject extends Record<string, unknown> {
|
|
2037
|
+
readonly [key: string]: any;
|
|
2038
|
+
}
|
|
2039
|
+
|
|
2040
|
+
export declare type IXmlAttribute = Readonly<Record<string, string | number | boolean>>;
|
|
2041
|
+
|
|
2042
|
+
declare type IXmlifyedFile = {
|
|
2043
|
+
readonly data: string;
|
|
2044
|
+
readonly path: string;
|
|
2045
|
+
};
|
|
2046
|
+
|
|
2047
|
+
export declare type IXYFrameOptions = {
|
|
2048
|
+
readonly type: "absolute";
|
|
2049
|
+
readonly position: {
|
|
2050
|
+
readonly x: number;
|
|
2051
|
+
readonly y: number;
|
|
2052
|
+
};
|
|
2053
|
+
} & IBaseFrameOptions;
|
|
2054
|
+
|
|
2055
|
+
export declare enum LabelAlign {
|
|
2056
|
+
CENTER = "ctr",
|
|
2057
|
+
LEFT = "l",
|
|
2058
|
+
RIGHT = "r"
|
|
2059
|
+
}
|
|
2060
|
+
|
|
2061
|
+
export declare class LastRenderedPageBreak extends EmptyElement {
|
|
2062
|
+
constructor();
|
|
2063
|
+
}
|
|
2064
|
+
|
|
2065
|
+
export declare enum LayoutMode {
|
|
2066
|
+
EDGE = "edge",
|
|
2067
|
+
FACTOR = "factor"
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2070
|
+
declare type LayoutOptions = {} & ManualLayoutOptions;
|
|
2071
|
+
|
|
2072
|
+
export declare enum LayoutTarget {
|
|
2073
|
+
INNER = "inner",
|
|
2074
|
+
OUTER = "outer"
|
|
2075
|
+
}
|
|
2076
|
+
|
|
2077
|
+
export declare const LeaderType: {
|
|
2078
|
+
readonly DOT: "dot";
|
|
2079
|
+
readonly HYPHEN: "hyphen";
|
|
2080
|
+
readonly MIDDLE_DOT: "middleDot";
|
|
2081
|
+
readonly NONE: "none";
|
|
2082
|
+
readonly UNDERSCORE: "underscore";
|
|
2083
|
+
};
|
|
2084
|
+
|
|
2085
|
+
declare type LegendEntryOptions = {};
|
|
2086
|
+
|
|
2087
|
+
declare type LegendOptions = {
|
|
2088
|
+
readonly position?: LegendPosition;
|
|
2089
|
+
readonly entry?: LegendEntryOptions;
|
|
2090
|
+
readonly layout?: LayoutOptions;
|
|
2091
|
+
readonly overlay?: boolean;
|
|
2092
|
+
readonly shape?: IShapePropertiesOptions;
|
|
2093
|
+
readonly textProperties?: TextPropertiesOptions;
|
|
2094
|
+
readonly extensionList?: ExtensionListOptions;
|
|
2095
|
+
};
|
|
2096
|
+
|
|
2097
|
+
export declare enum LegendPosition {
|
|
2098
|
+
RIGHT = "r",
|
|
2099
|
+
TOP = "t",
|
|
2100
|
+
LEFT = "l",
|
|
2101
|
+
BOTTOM = "b",
|
|
2102
|
+
TOP_RIGHT = "tr"
|
|
2103
|
+
}
|
|
2104
|
+
|
|
2105
|
+
declare type LengthUnit = "auto" | number | Percentage | UniversalMeasure | RelativeMeasure;
|
|
2106
|
+
|
|
2107
|
+
export declare class Level extends LevelBase {
|
|
2108
|
+
}
|
|
2109
|
+
|
|
2110
|
+
export declare class LevelBase extends XmlComponent {
|
|
2111
|
+
private readonly paragraphProperties;
|
|
2112
|
+
private readonly runProperties;
|
|
2113
|
+
constructor({ level, format, text, alignment, start, style, suffix, isLegalNumberingStyle, }: ILevelsOptions);
|
|
2114
|
+
}
|
|
2115
|
+
|
|
2116
|
+
export declare const LevelFormat: {
|
|
2117
|
+
readonly DECIMAL: "decimal";
|
|
2118
|
+
readonly UPPER_ROMAN: "upperRoman";
|
|
2119
|
+
readonly LOWER_ROMAN: "lowerRoman";
|
|
2120
|
+
readonly UPPER_LETTER: "upperLetter";
|
|
2121
|
+
readonly LOWER_LETTER: "lowerLetter";
|
|
2122
|
+
readonly ORDINAL: "ordinal";
|
|
2123
|
+
readonly CARDINAL_TEXT: "cardinalText";
|
|
2124
|
+
readonly ORDINAL_TEXT: "ordinalText";
|
|
2125
|
+
readonly HEX: "hex";
|
|
2126
|
+
readonly CHICAGO: "chicago";
|
|
2127
|
+
readonly IDEOGRAPH__DIGITAL: "ideographDigital";
|
|
2128
|
+
readonly JAPANESE_COUNTING: "japaneseCounting";
|
|
2129
|
+
readonly AIUEO: "aiueo";
|
|
2130
|
+
readonly IROHA: "iroha";
|
|
2131
|
+
readonly DECIMAL_FULL_WIDTH: "decimalFullWidth";
|
|
2132
|
+
readonly DECIMAL_HALF_WIDTH: "decimalHalfWidth";
|
|
2133
|
+
readonly JAPANESE_LEGAL: "japaneseLegal";
|
|
2134
|
+
readonly JAPANESE_DIGITAL_TEN_THOUSAND: "japaneseDigitalTenThousand";
|
|
2135
|
+
readonly DECIMAL_ENCLOSED_CIRCLE: "decimalEnclosedCircle";
|
|
2136
|
+
readonly DECIMAL_FULL_WIDTH2: "decimalFullWidth2";
|
|
2137
|
+
readonly AIUEO_FULL_WIDTH: "aiueoFullWidth";
|
|
2138
|
+
readonly IROHA_FULL_WIDTH: "irohaFullWidth";
|
|
2139
|
+
readonly DECIMAL_ZERO: "decimalZero";
|
|
2140
|
+
readonly BULLET: "bullet";
|
|
2141
|
+
readonly GANADA: "ganada";
|
|
2142
|
+
readonly CHOSUNG: "chosung";
|
|
2143
|
+
readonly DECIMAL_ENCLOSED_FULLSTOP: "decimalEnclosedFullstop";
|
|
2144
|
+
readonly DECIMAL_ENCLOSED_PARENTHESES: "decimalEnclosedParen";
|
|
2145
|
+
readonly DECIMAL_ENCLOSED_CIRCLE_CHINESE: "decimalEnclosedCircleChinese";
|
|
2146
|
+
readonly IDEOGRAPH_ENCLOSED_CIRCLE: "ideographEnclosedCircle";
|
|
2147
|
+
readonly IDEOGRAPH_TRADITIONAL: "ideographTraditional";
|
|
2148
|
+
readonly IDEOGRAPH_ZODIAC: "ideographZodiac";
|
|
2149
|
+
readonly IDEOGRAPH_ZODIAC_TRADITIONAL: "ideographZodiacTraditional";
|
|
2150
|
+
readonly TAIWANESE_COUNTING: "taiwaneseCounting";
|
|
2151
|
+
readonly IDEOGRAPH_LEGAL_TRADITIONAL: "ideographLegalTraditional";
|
|
2152
|
+
readonly TAIWANESE_COUNTING_THOUSAND: "taiwaneseCountingThousand";
|
|
2153
|
+
readonly TAIWANESE_DIGITAL: "taiwaneseDigital";
|
|
2154
|
+
readonly CHINESE_COUNTING: "chineseCounting";
|
|
2155
|
+
readonly CHINESE_LEGAL_SIMPLIFIED: "chineseLegalSimplified";
|
|
2156
|
+
readonly CHINESE_COUNTING_THOUSAND: "chineseCountingThousand";
|
|
2157
|
+
readonly KOREAN_DIGITAL: "koreanDigital";
|
|
2158
|
+
readonly KOREAN_COUNTING: "koreanCounting";
|
|
2159
|
+
readonly KOREAN_LEGAL: "koreanLegal";
|
|
2160
|
+
readonly KOREAN_DIGITAL2: "koreanDigital2";
|
|
2161
|
+
readonly VIETNAMESE_COUNTING: "vietnameseCounting";
|
|
2162
|
+
readonly RUSSIAN_LOWER: "russianLower";
|
|
2163
|
+
readonly RUSSIAN_UPPER: "russianUpper";
|
|
2164
|
+
readonly NONE: "none";
|
|
2165
|
+
readonly NUMBER_IN_DASH: "numberInDash";
|
|
2166
|
+
readonly HEBREW1: "hebrew1";
|
|
2167
|
+
readonly HEBREW2: "hebrew2";
|
|
2168
|
+
readonly ARABIC_ALPHA: "arabicAlpha";
|
|
2169
|
+
readonly ARABIC_ABJAD: "arabicAbjad";
|
|
2170
|
+
readonly HINDI_VOWELS: "hindiVowels";
|
|
2171
|
+
readonly HINDI_CONSONANTS: "hindiConsonants";
|
|
2172
|
+
readonly HINDI_NUMBERS: "hindiNumbers";
|
|
2173
|
+
readonly HINDI_COUNTING: "hindiCounting";
|
|
2174
|
+
readonly THAI_LETTERS: "thaiLetters";
|
|
2175
|
+
readonly THAI_NUMBERS: "thaiNumbers";
|
|
2176
|
+
readonly THAI_COUNTING: "thaiCounting";
|
|
2177
|
+
readonly BAHT_TEXT: "bahtText";
|
|
2178
|
+
readonly DOLLAR_TEXT: "dollarText";
|
|
2179
|
+
readonly CUSTOM: "custom";
|
|
2180
|
+
};
|
|
2181
|
+
|
|
2182
|
+
export declare class LevelForOverride extends LevelBase {
|
|
2183
|
+
}
|
|
2184
|
+
|
|
2185
|
+
export declare class LevelOverride extends XmlComponent {
|
|
2186
|
+
constructor(levelNum: number, start?: number);
|
|
2187
|
+
}
|
|
2188
|
+
|
|
2189
|
+
export declare const LevelSuffix: {
|
|
2190
|
+
readonly NOTHING: "nothing";
|
|
2191
|
+
readonly SPACE: "space";
|
|
2192
|
+
readonly TAB: "tab";
|
|
2193
|
+
};
|
|
2194
|
+
|
|
2195
|
+
declare type Line3DChartOptions = {};
|
|
2196
|
+
|
|
2197
|
+
export declare enum LineCap {
|
|
2198
|
+
ROUND = "rnd",
|
|
2199
|
+
SQUARE = "sq",
|
|
2200
|
+
FLAT = "flat"
|
|
2201
|
+
}
|
|
2202
|
+
|
|
2203
|
+
declare type LineChartOptions = LineChartSharedOptions & {
|
|
2204
|
+
readonly lines?: {
|
|
2205
|
+
readonly hiLow?: IShapePropertiesOptions;
|
|
2206
|
+
} & LineChartSharedOptions["lines"];
|
|
2207
|
+
readonly bars?: {
|
|
2208
|
+
readonly gapWidth?: number | string;
|
|
2209
|
+
readonly up?: {
|
|
2210
|
+
readonly shape?: IShapePropertiesOptions;
|
|
2211
|
+
};
|
|
2212
|
+
readonly down?: {
|
|
2213
|
+
readonly shape?: IShapePropertiesOptions;
|
|
2214
|
+
};
|
|
2215
|
+
readonly extensionList?: ExtensionListOptions;
|
|
2216
|
+
};
|
|
2217
|
+
readonly marker?: boolean;
|
|
2218
|
+
readonly smooth?: boolean;
|
|
2219
|
+
readonly extensionList?: ExtensionListOptions;
|
|
2220
|
+
};
|
|
2221
|
+
|
|
2222
|
+
declare type LineChartSharedOptions = {
|
|
2223
|
+
readonly categories?: string[];
|
|
2224
|
+
readonly grouping?: ChartGrouping;
|
|
2225
|
+
readonly varyColors?: boolean;
|
|
2226
|
+
readonly series?: LineSeriesOptions[];
|
|
2227
|
+
readonly dataLabels?: DataLabelsOptions;
|
|
2228
|
+
readonly lines?: {
|
|
2229
|
+
readonly drop?: IShapePropertiesOptions;
|
|
2230
|
+
};
|
|
2231
|
+
};
|
|
2232
|
+
|
|
2233
|
+
declare type LineDashProperties = {
|
|
2234
|
+
readonly dash?: {
|
|
2235
|
+
readonly type: "preset";
|
|
2236
|
+
readonly value?: PresetLineDash;
|
|
2237
|
+
} | {
|
|
2238
|
+
readonly type: "custom";
|
|
2239
|
+
readonly items?: {
|
|
2240
|
+
readonly length: string | number;
|
|
2241
|
+
readonly gap: string | number;
|
|
2242
|
+
}[];
|
|
2243
|
+
};
|
|
2244
|
+
};
|
|
2245
|
+
|
|
2246
|
+
declare type LineJoinProperties = {
|
|
2247
|
+
readonly join?: {
|
|
2248
|
+
readonly type: "round" | "bevel";
|
|
2249
|
+
} | {
|
|
2250
|
+
readonly type: "miter";
|
|
2251
|
+
readonly limit?: string | number;
|
|
2252
|
+
};
|
|
2253
|
+
};
|
|
2254
|
+
|
|
2255
|
+
export declare const LineNumberRestartFormat: {
|
|
2256
|
+
readonly NEW_PAGE: "newPage";
|
|
2257
|
+
readonly NEW_SECTION: "newSection";
|
|
2258
|
+
readonly CONTINUOUS: "continuous";
|
|
2259
|
+
};
|
|
2260
|
+
|
|
2261
|
+
export declare const LineRuleType: {
|
|
2262
|
+
readonly AT_LEAST: "atLeast";
|
|
2263
|
+
readonly EXACTLY: "exactly";
|
|
2264
|
+
readonly EXACT: "exact";
|
|
2265
|
+
readonly AUTO: "auto";
|
|
2266
|
+
};
|
|
2267
|
+
|
|
2268
|
+
declare type LineSeriesOptions = SeriesSharedOptions & {
|
|
2269
|
+
readonly marker?: MarkerOptions;
|
|
2270
|
+
readonly dataPoints?: DataPointOptions[];
|
|
2271
|
+
readonly dataLabels?: DataLabelsOptions;
|
|
2272
|
+
readonly trendlines?: TrendlineOptions[];
|
|
2273
|
+
readonly errorBars?: ErrorBarsOptions;
|
|
2274
|
+
readonly categories?: string[];
|
|
2275
|
+
readonly values?: number[];
|
|
2276
|
+
readonly smooth?: boolean;
|
|
2277
|
+
readonly extensionList?: ExtensionListOptions;
|
|
2278
|
+
};
|
|
2279
|
+
|
|
2280
|
+
export declare const longHexNumber: (val: string) => string;
|
|
2281
|
+
|
|
2282
|
+
declare type ManualLayoutOptions = {
|
|
2283
|
+
readonly target?: LayoutTarget;
|
|
2284
|
+
readonly mode?: {
|
|
2285
|
+
readonly x?: LayoutMode;
|
|
2286
|
+
readonly y?: LayoutMode;
|
|
2287
|
+
readonly width?: LayoutMode;
|
|
2288
|
+
readonly height?: LayoutMode;
|
|
2289
|
+
};
|
|
2290
|
+
readonly x?: number;
|
|
2291
|
+
readonly y?: number;
|
|
2292
|
+
readonly width?: number;
|
|
2293
|
+
readonly height?: number;
|
|
2294
|
+
};
|
|
2295
|
+
|
|
2296
|
+
declare type MarkerOptions = {
|
|
2297
|
+
readonly symbol?: MarkerStyle;
|
|
2298
|
+
readonly size?: number;
|
|
2299
|
+
readonly shape?: IShapePropertiesOptions;
|
|
2300
|
+
readonly extensionList?: ExtensionListOptions;
|
|
2301
|
+
};
|
|
2302
|
+
|
|
2303
|
+
export declare enum MarkerStyle {
|
|
2304
|
+
CIRCLE = "circle",
|
|
2305
|
+
DASH = "dash",
|
|
2306
|
+
DIAMOND = "diamond",
|
|
2307
|
+
DOT = "dot",
|
|
2308
|
+
NONE = "none",
|
|
2309
|
+
PICTURE = "picture",
|
|
2310
|
+
PLUS = "plus",
|
|
2311
|
+
SQUARE = "square",
|
|
2312
|
+
STAR = "star",
|
|
2313
|
+
TRIANGLE = "triangle",
|
|
2314
|
+
X = "x",
|
|
2315
|
+
AUTO = "auto"
|
|
2316
|
+
}
|
|
2317
|
+
|
|
2318
|
+
declare class Math_2 extends XmlComponent {
|
|
2319
|
+
constructor(options: IMathOptions);
|
|
2320
|
+
}
|
|
2321
|
+
export { Math_2 as Math }
|
|
2322
|
+
|
|
2323
|
+
declare type MathAccentCharacterOptions = {
|
|
2324
|
+
readonly accent: string;
|
|
2325
|
+
};
|
|
2326
|
+
|
|
2327
|
+
export declare class MathAngledBrackets extends XmlComponent {
|
|
2328
|
+
constructor(options: MathAngledBracketsOptions);
|
|
2329
|
+
}
|
|
2330
|
+
|
|
2331
|
+
declare type MathAngledBracketsOptions = {
|
|
2332
|
+
readonly children: readonly MathComponent[];
|
|
2333
|
+
};
|
|
2334
|
+
|
|
2335
|
+
declare type MathBaseOptions = {
|
|
2336
|
+
readonly children: readonly MathComponent[];
|
|
2337
|
+
};
|
|
2338
|
+
|
|
2339
|
+
export declare type MathComponent = MathRun | MathFraction | MathSum | MathIntegral | MathSuperScript | MathSubScript | MathSubSuperScript | MathRadical | MathFunction | MathRoundBrackets | MathCurlyBrackets | MathAngledBrackets | MathSquareBrackets;
|
|
2340
|
+
|
|
2341
|
+
export declare class MathCurlyBrackets extends XmlComponent {
|
|
2342
|
+
constructor(options: {
|
|
2343
|
+
readonly children: readonly MathComponent[];
|
|
2344
|
+
});
|
|
2345
|
+
}
|
|
2346
|
+
|
|
2347
|
+
export declare class MathDegree extends XmlComponent {
|
|
2348
|
+
constructor(children?: readonly MathComponent[]);
|
|
2349
|
+
}
|
|
2350
|
+
|
|
2351
|
+
export declare class MathDenominator extends XmlComponent {
|
|
2352
|
+
constructor(children: readonly MathComponent[]);
|
|
2353
|
+
}
|
|
2354
|
+
|
|
2355
|
+
export declare class MathFraction extends XmlComponent {
|
|
2356
|
+
constructor(options: IMathFractionOptions);
|
|
2357
|
+
}
|
|
2358
|
+
|
|
2359
|
+
export declare class MathFunction extends XmlComponent {
|
|
2360
|
+
constructor(options: IMathFunctionOptions);
|
|
2361
|
+
}
|
|
2362
|
+
|
|
2363
|
+
export declare class MathFunctionName extends XmlComponent {
|
|
2364
|
+
constructor(children: readonly MathComponent[]);
|
|
2365
|
+
}
|
|
2366
|
+
|
|
2367
|
+
export declare class MathFunctionProperties extends XmlComponent {
|
|
2368
|
+
constructor();
|
|
2369
|
+
}
|
|
2370
|
+
|
|
2371
|
+
export declare class MathIntegral extends XmlComponent {
|
|
2372
|
+
constructor(options: IMathIntegralOptions);
|
|
2373
|
+
}
|
|
2374
|
+
|
|
2375
|
+
export declare class MathLimit extends XmlComponent {
|
|
2376
|
+
constructor(children: readonly MathComponent[]);
|
|
2377
|
+
}
|
|
2378
|
+
|
|
2379
|
+
declare type MathLimitLocationOptions = {
|
|
2380
|
+
readonly value?: string;
|
|
2381
|
+
};
|
|
2382
|
+
|
|
2383
|
+
export declare class MathLimitLower extends XmlComponent {
|
|
2384
|
+
constructor(options: IMathLimitLowerOptions);
|
|
2385
|
+
}
|
|
2386
|
+
|
|
2387
|
+
export declare class MathLimitUpper extends XmlComponent {
|
|
2388
|
+
constructor(options: IMathLimitUpperOptions);
|
|
2389
|
+
}
|
|
2390
|
+
|
|
2391
|
+
declare type MathNAryPropertiesOptions = {
|
|
2392
|
+
readonly accent: string;
|
|
2393
|
+
readonly hasSuperScript: boolean;
|
|
2394
|
+
readonly hasSubScript: boolean;
|
|
2395
|
+
readonly limitLocationVal?: string;
|
|
2396
|
+
};
|
|
2397
|
+
|
|
2398
|
+
export declare class MathNumerator extends XmlComponent {
|
|
2399
|
+
constructor(children: readonly MathComponent[]);
|
|
2400
|
+
}
|
|
2401
|
+
|
|
2402
|
+
export declare class MathPreSubSuperScript extends BuilderElement {
|
|
2403
|
+
constructor({ children, subScript, superScript }: IMathPreSubSuperScriptOptions);
|
|
2404
|
+
}
|
|
2405
|
+
|
|
2406
|
+
export declare class MathRadical extends XmlComponent {
|
|
2407
|
+
constructor(options: IMathRadicalOptions);
|
|
2408
|
+
}
|
|
2409
|
+
|
|
2410
|
+
export declare class MathRadicalProperties extends XmlComponent {
|
|
2411
|
+
constructor(hasDegree: boolean);
|
|
2412
|
+
}
|
|
2413
|
+
|
|
2414
|
+
export declare class MathRoundBrackets extends XmlComponent {
|
|
2415
|
+
constructor(options: {
|
|
2416
|
+
readonly children: readonly MathComponent[];
|
|
2417
|
+
});
|
|
2418
|
+
}
|
|
2419
|
+
|
|
2420
|
+
export declare class MathRun extends XmlComponent {
|
|
2421
|
+
constructor(text: string);
|
|
2422
|
+
}
|
|
2423
|
+
|
|
2424
|
+
export declare class MathSquareBrackets extends XmlComponent {
|
|
2425
|
+
constructor(options: {
|
|
2426
|
+
readonly children: readonly MathComponent[];
|
|
2427
|
+
});
|
|
2428
|
+
}
|
|
2429
|
+
|
|
2430
|
+
export declare class MathSubScript extends XmlComponent {
|
|
2431
|
+
constructor(options: IMathSubScriptOptions);
|
|
2432
|
+
}
|
|
2433
|
+
|
|
2434
|
+
declare type MathSubScriptElementOptions = {
|
|
2435
|
+
readonly children: readonly MathComponent[];
|
|
2436
|
+
};
|
|
2437
|
+
|
|
2438
|
+
export declare class MathSubSuperScript extends XmlComponent {
|
|
2439
|
+
constructor(options: IMathSubSuperScriptOptions);
|
|
2440
|
+
}
|
|
2441
|
+
|
|
2442
|
+
export declare class MathSum extends XmlComponent {
|
|
2443
|
+
constructor(options: IMathSumOptions);
|
|
2444
|
+
}
|
|
2445
|
+
|
|
2446
|
+
export declare class MathSuperScript extends XmlComponent {
|
|
2447
|
+
constructor(options: IMathSuperScriptOptions);
|
|
2448
|
+
}
|
|
2449
|
+
|
|
2450
|
+
declare type MathSuperScriptElementOptions = {
|
|
2451
|
+
readonly children: readonly MathComponent[];
|
|
2452
|
+
};
|
|
2453
|
+
|
|
2454
|
+
export declare const measurementOrPercentValue: (val: number | Percentage | UniversalMeasure) => number | UniversalMeasure | Percentage;
|
|
2455
|
+
|
|
2456
|
+
export declare class Media {
|
|
2457
|
+
private readonly map;
|
|
2458
|
+
constructor();
|
|
2459
|
+
addImage(key: string, mediaData: IMediaData): void;
|
|
2460
|
+
get Array(): readonly IMediaData[];
|
|
2461
|
+
}
|
|
2462
|
+
|
|
2463
|
+
export declare class MonthLong extends EmptyElement {
|
|
2464
|
+
constructor();
|
|
2465
|
+
}
|
|
2466
|
+
|
|
2467
|
+
export declare class MonthShort extends EmptyElement {
|
|
2468
|
+
constructor();
|
|
2469
|
+
}
|
|
2470
|
+
|
|
2471
|
+
export declare class NextAttributeComponent<T extends AttributeData> extends BaseXmlComponent {
|
|
2472
|
+
private readonly root;
|
|
2473
|
+
constructor(root: AttributePayload<T>);
|
|
2474
|
+
prepForXml(_: IContext): IXmlableObject;
|
|
2475
|
+
}
|
|
2476
|
+
|
|
2477
|
+
export declare class NoBreakHyphen extends EmptyElement {
|
|
2478
|
+
constructor();
|
|
2479
|
+
}
|
|
2480
|
+
|
|
2481
|
+
export declare enum NumberedItemReferenceFormat {
|
|
2482
|
+
NONE = "none",
|
|
2483
|
+
RELATIVE = "relative",
|
|
2484
|
+
NO_CONTEXT = "no_context",
|
|
2485
|
+
FULL_CONTEXT = "full_context"
|
|
2486
|
+
}
|
|
2487
|
+
|
|
2488
|
+
export declare const NumberFormat: {
|
|
2489
|
+
readonly DECIMAL: "decimal";
|
|
2490
|
+
readonly UPPER_ROMAN: "upperRoman";
|
|
2491
|
+
readonly LOWER_ROMAN: "lowerRoman";
|
|
2492
|
+
readonly UPPER_LETTER: "upperLetter";
|
|
2493
|
+
readonly LOWER_LETTER: "lowerLetter";
|
|
2494
|
+
readonly ORDINAL: "ordinal";
|
|
2495
|
+
readonly CARDINAL_TEXT: "cardinalText";
|
|
2496
|
+
readonly ORDINAL_TEXT: "ordinalText";
|
|
2497
|
+
readonly HEX: "hex";
|
|
2498
|
+
readonly CHICAGO: "chicago";
|
|
2499
|
+
readonly IDEOGRAPH_DIGITAL: "ideographDigital";
|
|
2500
|
+
readonly JAPANESE_COUNTING: "japaneseCounting";
|
|
2501
|
+
readonly AIUEO: "aiueo";
|
|
2502
|
+
readonly IROHA: "iroha";
|
|
2503
|
+
readonly DECIMAL_FULL_WIDTH: "decimalFullWidth";
|
|
2504
|
+
readonly DECIMAL_HALF_WIDTH: "decimalHalfWidth";
|
|
2505
|
+
readonly JAPANESE_LEGAL: "japaneseLegal";
|
|
2506
|
+
readonly JAPANESE_DIGITAL_TEN_THOUSAND: "japaneseDigitalTenThousand";
|
|
2507
|
+
readonly DECIMAL_ENCLOSED_CIRCLE: "decimalEnclosedCircle";
|
|
2508
|
+
readonly DECIMAL_FULL_WIDTH_2: "decimalFullWidth2";
|
|
2509
|
+
readonly AIUEO_FULL_WIDTH: "aiueoFullWidth";
|
|
2510
|
+
readonly IROHA_FULL_WIDTH: "irohaFullWidth";
|
|
2511
|
+
readonly DECIMAL_ZERO: "decimalZero";
|
|
2512
|
+
readonly BULLET: "bullet";
|
|
2513
|
+
readonly GANADA: "ganada";
|
|
2514
|
+
readonly CHOSUNG: "chosung";
|
|
2515
|
+
readonly DECIMAL_ENCLOSED_FULL_STOP: "decimalEnclosedFullstop";
|
|
2516
|
+
readonly DECIMAL_ENCLOSED_PAREN: "decimalEnclosedParen";
|
|
2517
|
+
readonly DECIMAL_ENCLOSED_CIRCLE_CHINESE: "decimalEnclosedCircleChinese";
|
|
2518
|
+
readonly IDEOGRAPH_ENCLOSED_CIRCLE: "ideographEnclosedCircle";
|
|
2519
|
+
readonly IDEOGRAPH_TRADITIONAL: "ideographTraditional";
|
|
2520
|
+
readonly IDEOGRAPH_ZODIAC: "ideographZodiac";
|
|
2521
|
+
readonly IDEOGRAPH_ZODIAC_TRADITIONAL: "ideographZodiacTraditional";
|
|
2522
|
+
readonly TAIWANESE_COUNTING: "taiwaneseCounting";
|
|
2523
|
+
readonly IDEOGRAPH_LEGAL_TRADITIONAL: "ideographLegalTraditional";
|
|
2524
|
+
readonly TAIWANESE_COUNTING_THOUSAND: "taiwaneseCountingThousand";
|
|
2525
|
+
readonly TAIWANESE_DIGITAL: "taiwaneseDigital";
|
|
2526
|
+
readonly CHINESE_COUNTING: "chineseCounting";
|
|
2527
|
+
readonly CHINESE_LEGAL_SIMPLIFIED: "chineseLegalSimplified";
|
|
2528
|
+
readonly CHINESE_COUNTING_TEN_THOUSAND: "chineseCountingThousand";
|
|
2529
|
+
readonly KOREAN_DIGITAL: "koreanDigital";
|
|
2530
|
+
readonly KOREAN_COUNTING: "koreanCounting";
|
|
2531
|
+
readonly KOREAN_LEGAL: "koreanLegal";
|
|
2532
|
+
readonly KOREAN_DIGITAL_2: "koreanDigital2";
|
|
2533
|
+
readonly VIETNAMESE_COUNTING: "vietnameseCounting";
|
|
2534
|
+
readonly RUSSIAN_LOWER: "russianLower";
|
|
2535
|
+
readonly RUSSIAN_UPPER: "russianUpper";
|
|
2536
|
+
readonly NONE: "none";
|
|
2537
|
+
readonly NUMBER_IN_DASH: "numberInDash";
|
|
2538
|
+
readonly HEBREW_1: "hebrew1";
|
|
2539
|
+
readonly HEBREW_2: "hebrew2";
|
|
2540
|
+
readonly ARABIC_ALPHA: "arabicAlpha";
|
|
2541
|
+
readonly ARABIC_ABJAD: "arabicAbjad";
|
|
2542
|
+
readonly HINDI_VOWELS: "hindiVowels";
|
|
2543
|
+
readonly HINDI_CONSONANTS: "hindiConsonants";
|
|
2544
|
+
readonly HINDI_NUMBERS: "hindiNumbers";
|
|
2545
|
+
readonly HINDI_COUNTING: "hindiCounting";
|
|
2546
|
+
readonly THAI_LETTERS: "thaiLetters";
|
|
2547
|
+
readonly THAI_NUMBERS: "thaiNumbers";
|
|
2548
|
+
readonly THAI_COUNTING: "thaiCounting";
|
|
2549
|
+
readonly BAHT_TEXT: "bahtText";
|
|
2550
|
+
readonly DOLLAR_TEXT: "dollarText";
|
|
2551
|
+
};
|
|
2552
|
+
|
|
2553
|
+
export declare class Numbering extends XmlComponent {
|
|
2554
|
+
private readonly abstractNumberingMap;
|
|
2555
|
+
private readonly concreteNumberingMap;
|
|
2556
|
+
private readonly referenceConfigMap;
|
|
2557
|
+
private readonly abstractNumUniqueNumericId;
|
|
2558
|
+
private readonly concreteNumUniqueNumericId;
|
|
2559
|
+
constructor(options: INumberingOptions);
|
|
2560
|
+
prepForXml(context: IContext): IXmlableObject | undefined;
|
|
2561
|
+
createConcreteNumberingInstance(reference: string, instance: number): void;
|
|
2562
|
+
get ConcreteNumbering(): readonly ConcreteNumbering[];
|
|
2563
|
+
get ReferenceConfig(): readonly Record<string, any>[];
|
|
2564
|
+
}
|
|
2565
|
+
|
|
2566
|
+
export declare class NumberProperties extends XmlComponent {
|
|
2567
|
+
constructor(numberId: number | string, indentLevel: number);
|
|
2568
|
+
}
|
|
2569
|
+
|
|
2570
|
+
export declare class NumberValueElement extends XmlComponent {
|
|
2571
|
+
constructor(name: string, val: number, namespace?: string);
|
|
2572
|
+
}
|
|
2573
|
+
|
|
2574
|
+
declare type OfPieChartOptions = {};
|
|
2575
|
+
|
|
2576
|
+
export declare class OnOffElement extends XmlComponent {
|
|
2577
|
+
constructor(name: string, val?: boolean | undefined, namespace?: string);
|
|
2578
|
+
}
|
|
2579
|
+
|
|
2580
|
+
declare type OutlineAttributes = {
|
|
2581
|
+
readonly width?: number;
|
|
2582
|
+
readonly cap?: LineCap;
|
|
2583
|
+
readonly compoundLine?: CompoundLine;
|
|
2584
|
+
readonly align?: PenAlignment;
|
|
2585
|
+
};
|
|
2586
|
+
|
|
2587
|
+
declare type OutlineFillProperties = OutlineNoFill | OutlineSolidFill | {
|
|
2588
|
+
type?: undefined;
|
|
2589
|
+
};
|
|
2590
|
+
|
|
2591
|
+
export declare class OutlineLevel extends XmlComponent {
|
|
2592
|
+
readonly level: number;
|
|
2593
|
+
constructor(level: number);
|
|
2594
|
+
}
|
|
2595
|
+
|
|
2596
|
+
declare type OutlineNoFill = {
|
|
2597
|
+
readonly type: "noFill";
|
|
2598
|
+
};
|
|
2599
|
+
|
|
2600
|
+
declare type OutlineOptions = OutlineAttributes & OutlineFillProperties & LineJoinProperties & LineDashProperties;
|
|
2601
|
+
|
|
2602
|
+
declare type OutlineRgbSolidFill = {
|
|
2603
|
+
readonly type: "solidFill";
|
|
2604
|
+
readonly solidFillType: "rgb";
|
|
2605
|
+
readonly value: string;
|
|
2606
|
+
};
|
|
2607
|
+
|
|
2608
|
+
declare type OutlineSchemeSolidFill = {
|
|
2609
|
+
readonly type: "solidFill";
|
|
2610
|
+
readonly solidFillType: "scheme";
|
|
2611
|
+
readonly value: (typeof SchemeColor)[keyof typeof SchemeColor];
|
|
2612
|
+
};
|
|
2613
|
+
|
|
2614
|
+
declare type OutlineSolidFill = OutlineRgbSolidFill | OutlineSchemeSolidFill;
|
|
2615
|
+
|
|
2616
|
+
export declare type OutputByType = {
|
|
2617
|
+
readonly base64: string;
|
|
2618
|
+
readonly string: string;
|
|
2619
|
+
readonly text: string;
|
|
2620
|
+
readonly binarystring: string;
|
|
2621
|
+
readonly array: readonly number[];
|
|
2622
|
+
readonly uint8array: Uint8Array;
|
|
2623
|
+
readonly arraybuffer: ArrayBuffer;
|
|
2624
|
+
readonly blob: Blob;
|
|
2625
|
+
readonly nodebuffer: Buffer;
|
|
2626
|
+
};
|
|
2627
|
+
|
|
2628
|
+
export declare type OutputType = keyof OutputByType;
|
|
2629
|
+
|
|
2630
|
+
export declare const OverlapType: {
|
|
2631
|
+
readonly NEVER: "never";
|
|
2632
|
+
readonly OVERLAP: "overlap";
|
|
2633
|
+
};
|
|
2634
|
+
|
|
2635
|
+
export declare class Packer {
|
|
2636
|
+
static pack<T extends OutputType>(file: File_2, type: T, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Promise<OutputByType[T]>;
|
|
2637
|
+
static toString(file: File_2, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Promise<string>;
|
|
2638
|
+
static toBuffer(file: File_2, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Promise<Buffer>;
|
|
2639
|
+
static toBase64String(file: File_2, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Promise<string>;
|
|
2640
|
+
static toBlob(file: File_2, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Promise<Blob>;
|
|
2641
|
+
static toArrayBuffer(file: File_2, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Promise<ArrayBuffer>;
|
|
2642
|
+
static toStream(file: File_2, prettify?: boolean | (typeof PrettifyType)[keyof typeof PrettifyType], overrides?: readonly IXmlifyedFile[]): Stream;
|
|
2643
|
+
private static readonly compiler;
|
|
2644
|
+
}
|
|
2645
|
+
|
|
2646
|
+
export declare const PageBorderDisplay: {
|
|
2647
|
+
readonly ALL_PAGES: "allPages";
|
|
2648
|
+
readonly FIRST_PAGE: "firstPage";
|
|
2649
|
+
readonly NOT_FIRST_PAGE: "notFirstPage";
|
|
2650
|
+
};
|
|
2651
|
+
|
|
2652
|
+
export declare const PageBorderOffsetFrom: {
|
|
2653
|
+
readonly PAGE: "page";
|
|
2654
|
+
readonly TEXT: "text";
|
|
2655
|
+
};
|
|
2656
|
+
|
|
2657
|
+
export declare class PageBorders extends IgnoreIfEmptyXmlComponent {
|
|
2658
|
+
constructor(options?: IPageBordersOptions);
|
|
2659
|
+
}
|
|
2660
|
+
|
|
2661
|
+
export declare const PageBorderZOrder: {
|
|
2662
|
+
readonly BACK: "back";
|
|
2663
|
+
readonly FRONT: "front";
|
|
2664
|
+
};
|
|
2665
|
+
|
|
2666
|
+
export declare class PageBreak extends Run {
|
|
2667
|
+
constructor();
|
|
2668
|
+
}
|
|
2669
|
+
|
|
2670
|
+
export declare class PageBreakBefore extends XmlComponent {
|
|
2671
|
+
constructor();
|
|
2672
|
+
}
|
|
2673
|
+
|
|
2674
|
+
export declare class PageMargin extends XmlComponent {
|
|
2675
|
+
constructor(top: number | UniversalMeasure, right: number | PositiveUniversalMeasure, bottom: number | UniversalMeasure, left: number | PositiveUniversalMeasure, header: number | PositiveUniversalMeasure, footer: number | PositiveUniversalMeasure, gutter: number | PositiveUniversalMeasure);
|
|
2676
|
+
}
|
|
2677
|
+
|
|
2678
|
+
export declare const PageNumber: {
|
|
2679
|
+
readonly CURRENT: "CURRENT";
|
|
2680
|
+
readonly TOTAL_PAGES: "TOTAL_PAGES";
|
|
2681
|
+
readonly TOTAL_PAGES_IN_SECTION: "TOTAL_PAGES_IN_SECTION";
|
|
2682
|
+
readonly CURRENT_SECTION: "SECTION";
|
|
2683
|
+
};
|
|
2684
|
+
|
|
2685
|
+
export declare class PageNumberElement extends EmptyElement {
|
|
2686
|
+
constructor();
|
|
2687
|
+
}
|
|
2688
|
+
|
|
2689
|
+
export declare const PageNumberSeparator: {
|
|
2690
|
+
readonly HYPHEN: "hyphen";
|
|
2691
|
+
readonly PERIOD: "period";
|
|
2692
|
+
readonly COLON: "colon";
|
|
2693
|
+
readonly EM_DASH: "emDash";
|
|
2694
|
+
readonly EN_DASH: "endash";
|
|
2695
|
+
};
|
|
2696
|
+
|
|
2697
|
+
export declare class PageNumberType extends XmlComponent {
|
|
2698
|
+
constructor({ start, formatType, separator }: IPageNumberTypeAttributes);
|
|
2699
|
+
}
|
|
2700
|
+
|
|
2701
|
+
export declare class PageNumberTypeAttributes extends XmlAttributeComponent<IPageNumberTypeAttributes> {
|
|
2702
|
+
protected readonly xmlKeys: {
|
|
2703
|
+
start: string;
|
|
2704
|
+
formatType: string;
|
|
2705
|
+
separator: string;
|
|
2706
|
+
};
|
|
2707
|
+
}
|
|
2708
|
+
|
|
2709
|
+
export declare const PageOrientation: {
|
|
2710
|
+
readonly PORTRAIT: "portrait";
|
|
2711
|
+
readonly LANDSCAPE: "landscape";
|
|
2712
|
+
};
|
|
2713
|
+
|
|
2714
|
+
export declare class PageReference extends Run {
|
|
2715
|
+
constructor(bookmarkId: string, options?: IPageReferenceOptions);
|
|
2716
|
+
}
|
|
2717
|
+
|
|
2718
|
+
export declare class PageTextDirection extends XmlComponent {
|
|
2719
|
+
constructor(value: (typeof PageTextDirectionType)[keyof typeof PageTextDirectionType]);
|
|
2720
|
+
}
|
|
2721
|
+
|
|
2722
|
+
export declare const PageTextDirectionType: {
|
|
2723
|
+
readonly LEFT_TO_RIGHT_TOP_TO_BOTTOM: "lrTb";
|
|
2724
|
+
readonly TOP_TO_BOTTOM_RIGHT_TO_LEFT: "tbRl";
|
|
2725
|
+
};
|
|
2726
|
+
|
|
2727
|
+
export declare class Paragraph extends FileChild {
|
|
2728
|
+
private readonly properties;
|
|
2729
|
+
constructor(options: string | IParagraphOptions);
|
|
2730
|
+
prepForXml(context: IContext): IXmlableObject | undefined;
|
|
2731
|
+
addRunToFront(run: Run): Paragraph;
|
|
2732
|
+
}
|
|
2733
|
+
|
|
2734
|
+
export declare type ParagraphChild = TextRun | ImageRun | ChartRun | SymbolRun | Bookmark | PageBreak | ColumnBreak | SequentialIdentifier | FootnoteReferenceRun | InternalHyperlink | ExternalHyperlink | InsertedTextRun | DeletedTextRun | Math_2 | SimpleField | SimpleMailMergeField | Comments | Comment_2 | CommentRangeStart | CommentRangeEnd | CommentReference | CheckBox;
|
|
2735
|
+
|
|
2736
|
+
declare type ParagraphPatch = {
|
|
2737
|
+
readonly type: typeof PatchType.PARAGRAPH;
|
|
2738
|
+
readonly children: readonly ParagraphChild[];
|
|
2739
|
+
};
|
|
2740
|
+
|
|
2741
|
+
export declare class ParagraphProperties extends IgnoreIfEmptyXmlComponent {
|
|
2742
|
+
private readonly numberingReferences;
|
|
2743
|
+
constructor(options?: IParagraphPropertiesOptions);
|
|
2744
|
+
push(item: XmlComponent): void;
|
|
2745
|
+
prepForXml(context: IContext): IXmlableObject | undefined;
|
|
2746
|
+
}
|
|
2747
|
+
|
|
2748
|
+
export declare class ParagraphPropertiesDefaults extends XmlComponent {
|
|
2749
|
+
constructor(options?: IParagraphStylePropertiesOptions);
|
|
2750
|
+
}
|
|
2751
|
+
|
|
2752
|
+
export declare const patchDetector: ({ data }: PatchDetectorOptions) => Promise<readonly string[]>;
|
|
2753
|
+
|
|
2754
|
+
declare type PatchDetectorOptions = {
|
|
2755
|
+
readonly data: InputDataType;
|
|
2756
|
+
};
|
|
2757
|
+
|
|
2758
|
+
export declare const patchDocument: <T extends keyof OutputByType = keyof OutputByType>({ outputType, data, patches, keepOriginalStyles, placeholderDelimiters, recursive, }: PatchDocumentOptions<T>) => Promise<OutputByType[T]>;
|
|
2759
|
+
|
|
2760
|
+
export declare type PatchDocumentOptions<T extends PatchDocumentOutputType = PatchDocumentOutputType> = {
|
|
2761
|
+
readonly outputType: T;
|
|
2762
|
+
readonly data: InputDataType;
|
|
2763
|
+
readonly patches: Readonly<Record<string, IPatch>>;
|
|
2764
|
+
readonly keepOriginalStyles?: boolean;
|
|
2765
|
+
readonly placeholderDelimiters?: Readonly<{
|
|
2766
|
+
readonly start: string;
|
|
2767
|
+
readonly end: string;
|
|
2768
|
+
}>;
|
|
2769
|
+
readonly recursive?: boolean;
|
|
2770
|
+
};
|
|
2771
|
+
|
|
2772
|
+
export declare type PatchDocumentOutputType = OutputType;
|
|
2773
|
+
|
|
2774
|
+
export declare const PatchType: {
|
|
2775
|
+
readonly DOCUMENT: "file";
|
|
2776
|
+
readonly PARAGRAPH: "paragraph";
|
|
2777
|
+
};
|
|
2778
|
+
|
|
2779
|
+
export declare enum PenAlignment {
|
|
2780
|
+
CENTER = "ctr",
|
|
2781
|
+
INSET = "in"
|
|
2782
|
+
}
|
|
2783
|
+
|
|
2784
|
+
export declare type Percentage = `${"-" | ""}${number}%`;
|
|
2785
|
+
|
|
2786
|
+
export declare const percentageValue: (val: Percentage) => Percentage;
|
|
2787
|
+
|
|
2788
|
+
declare class Pic extends XmlComponent {
|
|
2789
|
+
constructor({ mediaData, transform, outline, }: {
|
|
2790
|
+
readonly mediaData: IMediaData;
|
|
2791
|
+
readonly transform: IMediaDataTransformation;
|
|
2792
|
+
readonly outline?: OutlineOptions;
|
|
2793
|
+
});
|
|
2794
|
+
}
|
|
2795
|
+
|
|
2796
|
+
declare type PictureOptionsOptions = {};
|
|
2797
|
+
|
|
2798
|
+
declare type Pie3DChartOptions = {};
|
|
2799
|
+
|
|
2800
|
+
declare type PieChartOptions = {};
|
|
2801
|
+
|
|
2802
|
+
declare type PlotAreaOptions = {
|
|
2803
|
+
readonly categories?: string[];
|
|
2804
|
+
readonly layout?: LayoutOptions;
|
|
2805
|
+
readonly areaChart?: AreaChartOptions;
|
|
2806
|
+
readonly area3DChart?: Area3DChartOptions;
|
|
2807
|
+
readonly lineChart?: LineChartOptions;
|
|
2808
|
+
readonly line3DChart?: Line3DChartOptions;
|
|
2809
|
+
readonly stockChart?: StockChartOptions;
|
|
2810
|
+
readonly radarChart?: RadarChartOptions;
|
|
2811
|
+
readonly scatterChart?: ScatterChartOptions;
|
|
2812
|
+
readonly pieChart?: PieChartOptions;
|
|
2813
|
+
readonly pie3DChart?: Pie3DChartOptions;
|
|
2814
|
+
readonly doughnutChart?: DoughnutChartOptions;
|
|
2815
|
+
readonly barChart?: BarChartOptions;
|
|
2816
|
+
readonly bar3DChart?: Bar3DChartOptions;
|
|
2817
|
+
readonly ofPieChart?: OfPieChartOptions;
|
|
2818
|
+
readonly surfaceChart?: SurfaceChartOptions;
|
|
2819
|
+
readonly surface3DChart?: Surface3DChartOptions;
|
|
2820
|
+
readonly bubbleChart?: BubbleChartOptions;
|
|
2821
|
+
readonly valueAxis?: ValueAxisOptions;
|
|
2822
|
+
readonly categoryAxis?: CategoryAxisOptions;
|
|
2823
|
+
readonly dateAxis?: DateAxisOptions;
|
|
2824
|
+
readonly seriesAxis?: SeriesAxisOptions;
|
|
2825
|
+
readonly shape?: IShapePropertiesOptions;
|
|
2826
|
+
};
|
|
2827
|
+
|
|
2828
|
+
export declare const pointMeasureValue: (val: number) => number;
|
|
2829
|
+
|
|
2830
|
+
export declare class PositionalTab extends XmlComponent {
|
|
2831
|
+
constructor(options: PositionalTabOptions);
|
|
2832
|
+
}
|
|
2833
|
+
|
|
2834
|
+
export declare const PositionalTabAlignment: {
|
|
2835
|
+
readonly LEFT: "left";
|
|
2836
|
+
readonly CENTER: "center";
|
|
2837
|
+
readonly RIGHT: "right";
|
|
2838
|
+
};
|
|
2839
|
+
|
|
2840
|
+
export declare const PositionalTabLeader: {
|
|
2841
|
+
readonly NONE: "none";
|
|
2842
|
+
readonly DOT: "dot";
|
|
2843
|
+
readonly HYPHEN: "hyphen";
|
|
2844
|
+
readonly UNDERSCORE: "underscore";
|
|
2845
|
+
readonly MIDDLE_DOT: "middleDot";
|
|
2846
|
+
};
|
|
2847
|
+
|
|
2848
|
+
export declare type PositionalTabOptions = {
|
|
2849
|
+
readonly alignment: (typeof PositionalTabAlignment)[keyof typeof PositionalTabAlignment];
|
|
2850
|
+
readonly relativeTo: (typeof PositionalTabRelativeTo)[keyof typeof PositionalTabRelativeTo];
|
|
2851
|
+
readonly leader: (typeof PositionalTabLeader)[keyof typeof PositionalTabLeader];
|
|
2852
|
+
};
|
|
2853
|
+
|
|
2854
|
+
export declare const PositionalTabRelativeTo: {
|
|
2855
|
+
readonly MARGIN: "margin";
|
|
2856
|
+
readonly INDENT: "indent";
|
|
2857
|
+
};
|
|
2858
|
+
|
|
2859
|
+
export declare type PositivePercentage = `${number}%`;
|
|
2860
|
+
|
|
2861
|
+
export declare type PositiveUniversalMeasure = `${number}${"mm" | "cm" | "in" | "pt" | "pc" | "pi"}`;
|
|
2862
|
+
|
|
2863
|
+
export declare const positiveUniversalMeasureValue: (val: PositiveUniversalMeasure) => PositiveUniversalMeasure;
|
|
2864
|
+
|
|
2865
|
+
export declare enum PresetLineDash {
|
|
2866
|
+
SOLID = "solid",
|
|
2867
|
+
DOT = "dot",
|
|
2868
|
+
DASH = "dash",
|
|
2869
|
+
LG_DASH = "lgDash",
|
|
2870
|
+
DASH_DOT = "dashDot",
|
|
2871
|
+
LG_DASH_DOT = "lgDashDot",
|
|
2872
|
+
LG_DASH_DOT_DOT = "lgDashDotDot",
|
|
2873
|
+
SYS_DASH = "sysDash",
|
|
2874
|
+
SYS_DOT = "sysDot",
|
|
2875
|
+
SYS_DASH_DOT = "sysDashDot",
|
|
2876
|
+
SYS_DASH_DOT_DOT = "sysDashDotDot"
|
|
2877
|
+
}
|
|
2878
|
+
|
|
2879
|
+
export declare const PrettifyType: {
|
|
2880
|
+
readonly NONE: "";
|
|
2881
|
+
readonly WITH_2_BLANKS: " ";
|
|
2882
|
+
readonly WITH_4_BLANKS: " ";
|
|
2883
|
+
readonly WITH_TAB: "\t";
|
|
2884
|
+
};
|
|
2885
|
+
|
|
2886
|
+
declare type RadarChartOptions = {};
|
|
2887
|
+
|
|
2888
|
+
declare type RegularImageOptions = {
|
|
2889
|
+
readonly type: "jpg" | "png" | "gif" | "bmp";
|
|
2890
|
+
readonly data: Buffer | string | Uint8Array | ArrayBuffer;
|
|
2891
|
+
};
|
|
2892
|
+
|
|
2893
|
+
declare type RegularMediaData = {
|
|
2894
|
+
readonly type: "jpg" | "png" | "gif" | "bmp";
|
|
2895
|
+
};
|
|
2896
|
+
|
|
2897
|
+
declare class Relationship extends XmlComponent {
|
|
2898
|
+
constructor(id: string, type: RelationshipType, target: string, targetMode?: (typeof TargetModeType)[keyof typeof TargetModeType]);
|
|
2899
|
+
}
|
|
2900
|
+
|
|
2901
|
+
declare class Relationships extends XmlComponent {
|
|
2902
|
+
constructor();
|
|
2903
|
+
createRelationship(id: number | string, type: RelationshipType, target: string, targetMode?: (typeof TargetModeType)[keyof typeof TargetModeType]): Relationship;
|
|
2904
|
+
get RelationshipCount(): number;
|
|
2905
|
+
}
|
|
2906
|
+
|
|
2907
|
+
declare type RelationshipType = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" | "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/font" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/package";
|
|
2908
|
+
|
|
2909
|
+
export declare const RelativeHorizontalPosition: {
|
|
2910
|
+
readonly CENTER: "center";
|
|
2911
|
+
readonly INSIDE: "inside";
|
|
2912
|
+
readonly LEFT: "left";
|
|
2913
|
+
readonly OUTSIDE: "outside";
|
|
2914
|
+
readonly RIGHT: "right";
|
|
2915
|
+
};
|
|
2916
|
+
|
|
2917
|
+
export declare type RelativeMeasure = `${"-" | ""}${number}${"em" | "ex"}`;
|
|
2918
|
+
|
|
2919
|
+
export declare const RelativeVerticalPosition: {
|
|
2920
|
+
readonly CENTER: "center";
|
|
2921
|
+
readonly INSIDE: "inside";
|
|
2922
|
+
readonly BOTTOM: "bottom";
|
|
2923
|
+
readonly OUTSIDE: "outside";
|
|
2924
|
+
readonly INLINE: "inline";
|
|
2925
|
+
readonly TOP: "top";
|
|
2926
|
+
};
|
|
2927
|
+
|
|
2928
|
+
export declare class Run extends XmlComponent {
|
|
2929
|
+
protected readonly properties: RunProperties;
|
|
2930
|
+
constructor(options: IRunOptions);
|
|
2931
|
+
}
|
|
2932
|
+
|
|
2933
|
+
export declare class RunFonts extends XmlComponent {
|
|
2934
|
+
constructor(name: string, hint?: string);
|
|
2935
|
+
constructor(attrs: string | IFontAttributesProperties);
|
|
2936
|
+
}
|
|
2937
|
+
|
|
2938
|
+
export declare class RunProperties extends IgnoreIfEmptyXmlComponent {
|
|
2939
|
+
constructor(options?: IRunPropertiesOptions);
|
|
2940
|
+
push(item: XmlComponent): void;
|
|
2941
|
+
}
|
|
2942
|
+
|
|
2943
|
+
export declare class RunPropertiesChange extends XmlComponent {
|
|
2944
|
+
constructor(options: IRunPropertiesChangeOptions);
|
|
2945
|
+
}
|
|
2946
|
+
|
|
2947
|
+
export declare class RunPropertiesDefaults extends XmlComponent {
|
|
2948
|
+
constructor(options?: IRunStylePropertiesOptions);
|
|
2949
|
+
}
|
|
2950
|
+
|
|
2951
|
+
export declare enum ScalingOrientation {
|
|
2952
|
+
MAX_MIN = "maxMin",
|
|
2953
|
+
MIN_MAX = "minMax"
|
|
2954
|
+
}
|
|
2955
|
+
|
|
2956
|
+
declare type ScatterChartOptions = {};
|
|
2957
|
+
|
|
2958
|
+
declare const SchemeColor: {
|
|
2959
|
+
readonly BG1: "bg1";
|
|
2960
|
+
readonly TX1: "tx1";
|
|
2961
|
+
readonly BG2: "bg2";
|
|
2962
|
+
readonly TX2: "tx2";
|
|
2963
|
+
readonly ACCENT1: "accent1";
|
|
2964
|
+
readonly ACCENT2: "accent2";
|
|
2965
|
+
readonly ACCENT3: "accent3";
|
|
2966
|
+
readonly ACCENT4: "accent4";
|
|
2967
|
+
readonly ACCENT5: "accent5";
|
|
2968
|
+
readonly ACCENT6: "accent6";
|
|
2969
|
+
readonly HLINK: "hlink";
|
|
2970
|
+
readonly FOLHLINK: "folHlink";
|
|
2971
|
+
readonly DK1: "dk1";
|
|
2972
|
+
readonly LT1: "lt1";
|
|
2973
|
+
readonly DK2: "dk2";
|
|
2974
|
+
readonly LT2: "lt2";
|
|
2975
|
+
readonly PHCLR: "phClr";
|
|
2976
|
+
};
|
|
2977
|
+
|
|
2978
|
+
export declare const sectionMarginDefaults: {
|
|
2979
|
+
TOP: number;
|
|
2980
|
+
RIGHT: number;
|
|
2981
|
+
BOTTOM: number;
|
|
2982
|
+
LEFT: number;
|
|
2983
|
+
HEADER: number;
|
|
2984
|
+
FOOTER: number;
|
|
2985
|
+
GUTTER: number;
|
|
2986
|
+
};
|
|
2987
|
+
|
|
2988
|
+
export declare const sectionPageSizeDefaults: {
|
|
2989
|
+
WIDTH: number;
|
|
2990
|
+
HEIGHT: number;
|
|
2991
|
+
ORIENTATION: "portrait";
|
|
2992
|
+
};
|
|
2993
|
+
|
|
2994
|
+
export declare class SectionProperties extends XmlComponent {
|
|
2995
|
+
constructor({ page: { size: { width, height, orientation, }, margin: { top, right, bottom, left, header, footer, gutter, }, pageNumbers, borders, textDirection, }, grid: { linePitch, charSpace, type: gridType }, headerWrapperGroup, footerWrapperGroup, lineNumbers, titlePage, verticalAlign, column, type, }?: ISectionPropertiesOptions);
|
|
2996
|
+
private addHeaderFooterGroup;
|
|
2997
|
+
}
|
|
2998
|
+
|
|
2999
|
+
export declare const SectionType: {
|
|
3000
|
+
readonly NEXT_PAGE: "nextPage";
|
|
3001
|
+
readonly NEXT_COLUMN: "nextColumn";
|
|
3002
|
+
readonly CONTINUOUS: "continuous";
|
|
3003
|
+
readonly EVEN_PAGE: "evenPage";
|
|
3004
|
+
readonly ODD_PAGE: "oddPage";
|
|
3005
|
+
};
|
|
3006
|
+
|
|
3007
|
+
export declare class SectionTypeAttributes extends XmlAttributeComponent<{
|
|
3008
|
+
readonly val: (typeof SectionType)[keyof typeof SectionType];
|
|
3009
|
+
}> {
|
|
3010
|
+
protected readonly xmlKeys: {
|
|
3011
|
+
val: string;
|
|
3012
|
+
};
|
|
3013
|
+
}
|
|
3014
|
+
|
|
3015
|
+
export declare type SectionVerticalAlign = (typeof VerticalAlignSection)[keyof typeof VerticalAlignSection];
|
|
3016
|
+
|
|
3017
|
+
declare class Separate extends XmlComponent {
|
|
3018
|
+
constructor(dirty?: boolean);
|
|
3019
|
+
}
|
|
3020
|
+
|
|
3021
|
+
export declare class Separator extends EmptyElement {
|
|
3022
|
+
constructor();
|
|
3023
|
+
}
|
|
3024
|
+
|
|
3025
|
+
export declare class SequentialIdentifier extends Run {
|
|
3026
|
+
constructor(identifier: string);
|
|
3027
|
+
}
|
|
3028
|
+
|
|
3029
|
+
declare type SeriesAxisOptions = {};
|
|
3030
|
+
|
|
3031
|
+
declare type SeriesSharedOptions = {
|
|
3032
|
+
readonly order?: number;
|
|
3033
|
+
readonly name?: string;
|
|
3034
|
+
readonly shape?: IShapePropertiesOptions;
|
|
3035
|
+
};
|
|
3036
|
+
|
|
3037
|
+
declare class Settings extends XmlComponent {
|
|
3038
|
+
constructor(options: ISettingsOptions);
|
|
3039
|
+
}
|
|
3040
|
+
|
|
3041
|
+
export declare class Shading extends XmlComponent {
|
|
3042
|
+
constructor({ fill, color, type }: IShadingAttributesProperties);
|
|
3043
|
+
}
|
|
3044
|
+
|
|
3045
|
+
export declare const ShadingType: {
|
|
3046
|
+
readonly CLEAR: "clear";
|
|
3047
|
+
readonly DIAGONAL_CROSS: "diagCross";
|
|
3048
|
+
readonly DIAGONAL_STRIPE: "diagStripe";
|
|
3049
|
+
readonly HORIZONTAL_CROSS: "horzCross";
|
|
3050
|
+
readonly HORIZONTAL_STRIPE: "horzStripe";
|
|
3051
|
+
readonly NIL: "nil";
|
|
3052
|
+
readonly PERCENT_5: "pct5";
|
|
3053
|
+
readonly PERCENT_10: "pct10";
|
|
3054
|
+
readonly PERCENT_12: "pct12";
|
|
3055
|
+
readonly PERCENT_15: "pct15";
|
|
3056
|
+
readonly PERCENT_20: "pct20";
|
|
3057
|
+
readonly PERCENT_25: "pct25";
|
|
3058
|
+
readonly PERCENT_30: "pct30";
|
|
3059
|
+
readonly PERCENT_35: "pct35";
|
|
3060
|
+
readonly PERCENT_37: "pct37";
|
|
3061
|
+
readonly PERCENT_40: "pct40";
|
|
3062
|
+
readonly PERCENT_45: "pct45";
|
|
3063
|
+
readonly PERCENT_50: "pct50";
|
|
3064
|
+
readonly PERCENT_55: "pct55";
|
|
3065
|
+
readonly PERCENT_60: "pct60";
|
|
3066
|
+
readonly PERCENT_62: "pct62";
|
|
3067
|
+
readonly PERCENT_65: "pct65";
|
|
3068
|
+
readonly PERCENT_70: "pct70";
|
|
3069
|
+
readonly PERCENT_75: "pct75";
|
|
3070
|
+
readonly PERCENT_80: "pct80";
|
|
3071
|
+
readonly PERCENT_85: "pct85";
|
|
3072
|
+
readonly PERCENT_87: "pct87";
|
|
3073
|
+
readonly PERCENT_90: "pct90";
|
|
3074
|
+
readonly PERCENT_95: "pct95";
|
|
3075
|
+
readonly REVERSE_DIAGONAL_STRIPE: "reverseDiagStripe";
|
|
3076
|
+
readonly SOLID: "solid";
|
|
3077
|
+
readonly THIN_DIAGONAL_CROSS: "thinDiagCross";
|
|
3078
|
+
readonly THIN_DIAGONAL_STRIPE: "thinDiagStripe";
|
|
3079
|
+
readonly THIN_HORIZONTAL_CROSS: "thinHorzCross";
|
|
3080
|
+
readonly THIN_REVERSE_DIAGONAL_STRIPE: "thinReverseDiagStripe";
|
|
3081
|
+
readonly THIN_VERTICAL_STRIPE: "thinVertStripe";
|
|
3082
|
+
readonly VERTICAL_STRIPE: "vertStripe";
|
|
3083
|
+
};
|
|
3084
|
+
|
|
3085
|
+
export declare const shortHexNumber: (val: string) => string;
|
|
3086
|
+
|
|
3087
|
+
export declare const signedHpsMeasureValue: (val: UniversalMeasure | number) => string | number;
|
|
3088
|
+
|
|
3089
|
+
export declare const signedTwipsMeasureValue: (val: UniversalMeasure | number) => UniversalMeasure | number;
|
|
3090
|
+
|
|
3091
|
+
export declare class SimpleField extends XmlComponent {
|
|
3092
|
+
constructor(instruction: string, cachedValue?: string);
|
|
3093
|
+
}
|
|
3094
|
+
|
|
3095
|
+
export declare class SimpleMailMergeField extends SimpleField {
|
|
3096
|
+
constructor(fieldName: string);
|
|
3097
|
+
}
|
|
3098
|
+
|
|
3099
|
+
export declare type SizeProperty = {
|
|
3100
|
+
readonly width: number;
|
|
3101
|
+
readonly height: number;
|
|
3102
|
+
};
|
|
3103
|
+
|
|
3104
|
+
export declare class SoftHyphen extends EmptyElement {
|
|
3105
|
+
constructor();
|
|
3106
|
+
}
|
|
3107
|
+
|
|
3108
|
+
export declare const SpaceType: {
|
|
3109
|
+
readonly DEFAULT: "default";
|
|
3110
|
+
readonly PRESERVE: "preserve";
|
|
3111
|
+
};
|
|
3112
|
+
|
|
3113
|
+
export declare class Spacing extends XmlComponent {
|
|
3114
|
+
constructor(options: ISpacingProperties);
|
|
3115
|
+
}
|
|
3116
|
+
|
|
3117
|
+
declare type StockChartOptions = {};
|
|
3118
|
+
|
|
3119
|
+
export declare class StringContainer extends XmlComponent {
|
|
3120
|
+
constructor(name: string, val: string);
|
|
3121
|
+
}
|
|
3122
|
+
|
|
3123
|
+
export declare class StringEnumValueElement<T extends string> extends XmlComponent {
|
|
3124
|
+
constructor(name: string, val: T, namespace?: string);
|
|
3125
|
+
}
|
|
3126
|
+
|
|
3127
|
+
export declare class StringValueElement extends XmlComponent {
|
|
3128
|
+
constructor(name: string, val: string | undefined, namespace?: string);
|
|
3129
|
+
}
|
|
3130
|
+
|
|
3131
|
+
export declare class Style extends XmlComponent {
|
|
3132
|
+
constructor(styleId: string);
|
|
3133
|
+
}
|
|
3134
|
+
|
|
3135
|
+
declare class Style_2 extends XmlComponent {
|
|
3136
|
+
constructor(attributes: IStyleAttributes, options: IStyleOptions);
|
|
3137
|
+
}
|
|
3138
|
+
|
|
3139
|
+
export declare class StyleForCharacter extends Style_2 {
|
|
3140
|
+
private readonly runProperties;
|
|
3141
|
+
constructor(options: ICharacterStyleOptions);
|
|
3142
|
+
}
|
|
3143
|
+
|
|
3144
|
+
export declare class StyleForParagraph extends Style_2 {
|
|
3145
|
+
private readonly paragraphProperties;
|
|
3146
|
+
private readonly runProperties;
|
|
3147
|
+
constructor(options: IParagraphStyleOptions);
|
|
3148
|
+
}
|
|
3149
|
+
|
|
3150
|
+
export declare class StyleLevel {
|
|
3151
|
+
readonly styleName: string;
|
|
3152
|
+
readonly level: number;
|
|
3153
|
+
constructor(styleName: string, level: number);
|
|
3154
|
+
}
|
|
3155
|
+
|
|
3156
|
+
export declare class Styles extends XmlComponent {
|
|
3157
|
+
constructor(options: IStylesOptions);
|
|
3158
|
+
}
|
|
3159
|
+
|
|
3160
|
+
declare type Surface3DChartOptions = {};
|
|
3161
|
+
|
|
3162
|
+
declare type SurfaceChartOptions = {};
|
|
3163
|
+
|
|
3164
|
+
declare type SvgMediaData = {
|
|
3165
|
+
readonly type: "svg";
|
|
3166
|
+
readonly fallback: RegularMediaData & CoreMediaData;
|
|
3167
|
+
};
|
|
3168
|
+
|
|
3169
|
+
declare type SvgMediaOptions = {
|
|
3170
|
+
readonly type: "svg";
|
|
3171
|
+
readonly data: Buffer | string | Uint8Array | ArrayBuffer;
|
|
3172
|
+
readonly fallback: RegularImageOptions;
|
|
3173
|
+
};
|
|
3174
|
+
|
|
3175
|
+
export declare class SymbolRun extends Run {
|
|
3176
|
+
constructor(options: ISymbolRunOptions | string);
|
|
3177
|
+
}
|
|
3178
|
+
|
|
3179
|
+
export declare class Tab extends EmptyElement {
|
|
3180
|
+
constructor();
|
|
3181
|
+
}
|
|
3182
|
+
|
|
3183
|
+
export declare class TabAttributes extends XmlAttributeComponent<{
|
|
3184
|
+
readonly val: (typeof TabStopType)[keyof typeof TabStopType];
|
|
3185
|
+
readonly pos: string | number;
|
|
3186
|
+
readonly leader?: (typeof LeaderType)[keyof typeof LeaderType];
|
|
3187
|
+
}> {
|
|
3188
|
+
protected readonly xmlKeys: {
|
|
3189
|
+
val: string;
|
|
3190
|
+
pos: string;
|
|
3191
|
+
leader: string;
|
|
3192
|
+
};
|
|
3193
|
+
}
|
|
3194
|
+
|
|
3195
|
+
export declare class Table extends FileChild {
|
|
3196
|
+
constructor({ rows, width, columnWidths, margins, indent, float, layout, style, borders, alignment, visuallyRightToLeft, cellSpacing, }: ITableOptions);
|
|
3197
|
+
}
|
|
3198
|
+
|
|
3199
|
+
export declare const TableAnchorType: {
|
|
3200
|
+
readonly MARGIN: "margin";
|
|
3201
|
+
readonly PAGE: "page";
|
|
3202
|
+
readonly TEXT: "text";
|
|
3203
|
+
};
|
|
3204
|
+
|
|
3205
|
+
export declare class TableBorders extends XmlComponent {
|
|
3206
|
+
static readonly NONE: {
|
|
3207
|
+
top: {
|
|
3208
|
+
style: "none";
|
|
3209
|
+
size: number;
|
|
3210
|
+
color: string;
|
|
3211
|
+
};
|
|
3212
|
+
bottom: {
|
|
3213
|
+
style: "none";
|
|
3214
|
+
size: number;
|
|
3215
|
+
color: string;
|
|
3216
|
+
};
|
|
3217
|
+
left: {
|
|
3218
|
+
style: "none";
|
|
3219
|
+
size: number;
|
|
3220
|
+
color: string;
|
|
3221
|
+
};
|
|
3222
|
+
right: {
|
|
3223
|
+
style: "none";
|
|
3224
|
+
size: number;
|
|
3225
|
+
color: string;
|
|
3226
|
+
};
|
|
3227
|
+
insideHorizontal: {
|
|
3228
|
+
style: "none";
|
|
3229
|
+
size: number;
|
|
3230
|
+
color: string;
|
|
3231
|
+
};
|
|
3232
|
+
insideVertical: {
|
|
3233
|
+
style: "none";
|
|
3234
|
+
size: number;
|
|
3235
|
+
color: string;
|
|
3236
|
+
};
|
|
3237
|
+
};
|
|
3238
|
+
constructor(options: ITableBordersOptions);
|
|
3239
|
+
}
|
|
3240
|
+
|
|
3241
|
+
export declare class TableCell extends XmlComponent {
|
|
3242
|
+
readonly options: ITableCellOptions;
|
|
3243
|
+
constructor(options: ITableCellOptions);
|
|
3244
|
+
prepForXml(context: IContext): IXmlableObject | undefined;
|
|
3245
|
+
}
|
|
3246
|
+
|
|
3247
|
+
export declare class TableCellBorders extends IgnoreIfEmptyXmlComponent {
|
|
3248
|
+
constructor(options: ITableCellBorders);
|
|
3249
|
+
}
|
|
3250
|
+
|
|
3251
|
+
export declare class TableFloatProperties extends XmlComponent {
|
|
3252
|
+
constructor({ horizontalAnchor, verticalAnchor, absoluteHorizontalPosition, relativeHorizontalPosition, absoluteVerticalPosition, relativeVerticalPosition, bottomFromText, topFromText, leftFromText, rightFromText, overlap, }: ITableFloatOptions);
|
|
3253
|
+
}
|
|
3254
|
+
|
|
3255
|
+
export declare class TableLayout extends XmlComponent {
|
|
3256
|
+
constructor(type: (typeof TableLayoutType)[keyof typeof TableLayoutType]);
|
|
3257
|
+
}
|
|
3258
|
+
|
|
3259
|
+
export declare const TableLayoutType: {
|
|
3260
|
+
readonly AUTOFIT: "autofit";
|
|
3261
|
+
readonly FIXED: "fixed";
|
|
3262
|
+
};
|
|
3263
|
+
|
|
3264
|
+
export declare class TableOfContents extends FileChild {
|
|
3265
|
+
constructor(alias?: string, properties?: ITableOfContentsOptions);
|
|
3266
|
+
}
|
|
3267
|
+
|
|
3268
|
+
export declare class TableProperties extends IgnoreIfEmptyXmlComponent {
|
|
3269
|
+
constructor(options: ITablePropertiesOptions);
|
|
3270
|
+
}
|
|
3271
|
+
|
|
3272
|
+
export declare class TableRow extends XmlComponent {
|
|
3273
|
+
private readonly options;
|
|
3274
|
+
constructor(options: ITableRowOptions);
|
|
3275
|
+
get CellCount(): number;
|
|
3276
|
+
get cells(): readonly TableCell[];
|
|
3277
|
+
addCellToIndex(cell: TableCell, index: number): void;
|
|
3278
|
+
addCellToColumnIndex(cell: TableCell, columnIndex: number): void;
|
|
3279
|
+
rootIndexToColumnIndex(rootIndex: number): number;
|
|
3280
|
+
columnIndexToRootIndex(columnIndex: number, allowEndNewCell?: boolean): number;
|
|
3281
|
+
}
|
|
3282
|
+
|
|
3283
|
+
export declare class TableRowHeight extends XmlComponent {
|
|
3284
|
+
constructor(value: number | PositiveUniversalMeasure, rule: (typeof HeightRule)[keyof typeof HeightRule]);
|
|
3285
|
+
}
|
|
3286
|
+
|
|
3287
|
+
export declare class TableRowHeightAttributes extends XmlAttributeComponent<{
|
|
3288
|
+
readonly value: number | string;
|
|
3289
|
+
readonly rule: (typeof HeightRule)[keyof typeof HeightRule];
|
|
3290
|
+
}> {
|
|
3291
|
+
protected readonly xmlKeys: {
|
|
3292
|
+
value: string;
|
|
3293
|
+
rule: string;
|
|
3294
|
+
};
|
|
3295
|
+
}
|
|
3296
|
+
|
|
3297
|
+
export declare class TableRowProperties extends IgnoreIfEmptyXmlComponent {
|
|
3298
|
+
constructor(options: ITableRowPropertiesOptions);
|
|
3299
|
+
}
|
|
3300
|
+
|
|
3301
|
+
export declare type TableVerticalAlign = (typeof VerticalAlignTable)[keyof typeof VerticalAlignTable];
|
|
3302
|
+
|
|
3303
|
+
export declare class TableWidthElement extends XmlComponent {
|
|
3304
|
+
constructor(name: string, { type, size }: ITableWidthProperties);
|
|
3305
|
+
}
|
|
3306
|
+
|
|
3307
|
+
export declare class TabStop extends XmlComponent {
|
|
3308
|
+
constructor(tabDefinitions: readonly TabStopDefinition[]);
|
|
3309
|
+
}
|
|
3310
|
+
|
|
3311
|
+
export declare type TabStopDefinition = {
|
|
3312
|
+
readonly type: (typeof TabStopType)[keyof typeof TabStopType];
|
|
3313
|
+
readonly position: number | (typeof TabStopPosition)[keyof typeof TabStopPosition];
|
|
3314
|
+
readonly leader?: (typeof LeaderType)[keyof typeof LeaderType];
|
|
3315
|
+
};
|
|
3316
|
+
|
|
3317
|
+
export declare class TabStopItem extends XmlComponent {
|
|
3318
|
+
constructor({ type, position, leader }: TabStopDefinition);
|
|
3319
|
+
}
|
|
3320
|
+
|
|
3321
|
+
export declare const TabStopPosition: {
|
|
3322
|
+
readonly MAX: 9026;
|
|
3323
|
+
};
|
|
3324
|
+
|
|
3325
|
+
export declare const TabStopType: {
|
|
3326
|
+
readonly LEFT: "left";
|
|
3327
|
+
readonly RIGHT: "right";
|
|
3328
|
+
readonly CENTER: "center";
|
|
3329
|
+
readonly BAR: "bar";
|
|
3330
|
+
readonly CLEAR: "clear";
|
|
3331
|
+
readonly DECIMAL: "decimal";
|
|
3332
|
+
readonly END: "end";
|
|
3333
|
+
readonly NUM: "num";
|
|
3334
|
+
readonly START: "start";
|
|
3335
|
+
};
|
|
3336
|
+
|
|
3337
|
+
declare const TargetModeType: {
|
|
3338
|
+
readonly EXTERNAL: "External";
|
|
3339
|
+
};
|
|
3340
|
+
|
|
3341
|
+
export declare class TDirection extends XmlComponent {
|
|
3342
|
+
constructor(value: (typeof TextDirection)[keyof typeof TextDirection]);
|
|
3343
|
+
}
|
|
3344
|
+
|
|
3345
|
+
declare type TextBodyAttributesOptions = {
|
|
3346
|
+
readonly rotation?: number;
|
|
3347
|
+
};
|
|
3348
|
+
|
|
3349
|
+
declare type TextBodyPropertiesOptions = {} & TextBodyAttributesOptions;
|
|
3350
|
+
|
|
3351
|
+
export declare class Textbox extends FileChild {
|
|
3352
|
+
constructor({ style, children, ...rest }: ITextboxOptions);
|
|
3353
|
+
}
|
|
3354
|
+
|
|
3355
|
+
export declare enum TextCapsType {
|
|
3356
|
+
NONE = "none",
|
|
3357
|
+
SMALL = "small",
|
|
3358
|
+
ALL = "all"
|
|
3359
|
+
}
|
|
3360
|
+
|
|
3361
|
+
declare type TextCharacterAttributesOptions = {
|
|
3362
|
+
readonly kumimoji?: boolean;
|
|
3363
|
+
readonly lang?: string;
|
|
3364
|
+
readonly altLang?: string;
|
|
3365
|
+
readonly size?: number;
|
|
3366
|
+
readonly bold?: boolean;
|
|
3367
|
+
readonly italic?: boolean;
|
|
3368
|
+
readonly underline?: TextUnderlineType;
|
|
3369
|
+
readonly strike?: TextStrikeType;
|
|
3370
|
+
readonly kern?: number;
|
|
3371
|
+
readonly cap?: TextCapsType;
|
|
3372
|
+
readonly spc?: number;
|
|
3373
|
+
readonly normalizeH?: boolean;
|
|
3374
|
+
readonly baseline?: number;
|
|
3375
|
+
readonly noProof?: boolean;
|
|
3376
|
+
readonly dirty?: boolean;
|
|
3377
|
+
readonly err?: boolean;
|
|
3378
|
+
readonly smtClean?: boolean;
|
|
3379
|
+
readonly smtId?: number;
|
|
3380
|
+
readonly bmk?: string;
|
|
3381
|
+
};
|
|
3382
|
+
|
|
3383
|
+
declare type TextCharacterPropertiesOptions = {
|
|
3384
|
+
readonly fill?: {
|
|
3385
|
+
readonly type: "noFill" | "rgb";
|
|
3386
|
+
readonly color?: string;
|
|
3387
|
+
};
|
|
3388
|
+
readonly latin?: string;
|
|
3389
|
+
} & TextCharacterAttributesOptions;
|
|
3390
|
+
|
|
3391
|
+
export declare const TextDirection: {
|
|
3392
|
+
readonly BOTTOM_TO_TOP_LEFT_TO_RIGHT: "btLr";
|
|
3393
|
+
readonly LEFT_TO_RIGHT_TOP_TO_BOTTOM: "lrTb";
|
|
3394
|
+
readonly TOP_TO_BOTTOM_RIGHT_TO_LEFT: "tbRl";
|
|
3395
|
+
};
|
|
3396
|
+
|
|
3397
|
+
export declare const TextEffect: {
|
|
3398
|
+
readonly BLINK_BACKGROUND: "blinkBackground";
|
|
3399
|
+
readonly LIGHTS: "lights";
|
|
3400
|
+
readonly ANTS_BLACK: "antsBlack";
|
|
3401
|
+
readonly ANTS_RED: "antsRed";
|
|
3402
|
+
readonly SHIMMER: "shimmer";
|
|
3403
|
+
readonly SPARKLE: "sparkle";
|
|
3404
|
+
readonly NONE: "none";
|
|
3405
|
+
};
|
|
3406
|
+
|
|
3407
|
+
declare type TextListStyleOptions = {};
|
|
3408
|
+
|
|
3409
|
+
declare type TextParagraphOptions = {
|
|
3410
|
+
readonly properties?: TextParagraphPropertiesOptions;
|
|
3411
|
+
readonly text?: TextRunOptions | string;
|
|
3412
|
+
};
|
|
3413
|
+
|
|
3414
|
+
declare type TextParagraphPropertiesOptions = {
|
|
3415
|
+
readonly defaultCharacterProperties?: TextCharacterPropertiesOptions;
|
|
3416
|
+
};
|
|
3417
|
+
|
|
3418
|
+
declare type TextPropertiesOptions = {
|
|
3419
|
+
readonly bodyProperties?: TextBodyPropertiesOptions;
|
|
3420
|
+
readonly listStyle?: TextListStyleOptions;
|
|
3421
|
+
readonly paragraph?: TextParagraphOptions;
|
|
3422
|
+
};
|
|
3423
|
+
|
|
3424
|
+
export declare class TextRun extends Run {
|
|
3425
|
+
constructor(options: IRunOptions | string);
|
|
3426
|
+
}
|
|
3427
|
+
|
|
3428
|
+
declare type TextRunOptions = {
|
|
3429
|
+
readonly properties?: TextCharacterPropertiesOptions;
|
|
3430
|
+
readonly text: string;
|
|
3431
|
+
};
|
|
3432
|
+
|
|
3433
|
+
declare type TextSourceOptions = {
|
|
3434
|
+
formula: string;
|
|
3435
|
+
values: string[];
|
|
3436
|
+
} | TextPropertiesOptions;
|
|
3437
|
+
|
|
3438
|
+
export declare enum TextStrikeType {
|
|
3439
|
+
NO_STRIKE = "noStrike",
|
|
3440
|
+
SINGLE_STRIKE = "sngStrike",
|
|
3441
|
+
DOUBLE_STRIKE = "dblStrike"
|
|
3442
|
+
}
|
|
3443
|
+
|
|
3444
|
+
declare type TextUnderlineType = "none" | "words" | "sng" | "dbl" | "heavy" | "dotted" | "dottedHeavy" | "dash" | "dashHeavy" | "dashLong" | "dashLongHeavy" | "dotDash" | "dotDashHeavy" | "dotDotDash" | "dotDotDashHeavy" | "wavy" | "wavyHeavy" | "wavyDbl";
|
|
3445
|
+
|
|
3446
|
+
export declare const TextWrappingSide: {
|
|
3447
|
+
readonly BOTH_SIDES: "bothSides";
|
|
3448
|
+
readonly LEFT: "left";
|
|
3449
|
+
readonly RIGHT: "right";
|
|
3450
|
+
readonly LARGEST: "largest";
|
|
3451
|
+
};
|
|
3452
|
+
|
|
3453
|
+
export declare const TextWrappingType: {
|
|
3454
|
+
readonly NONE: 0;
|
|
3455
|
+
readonly SQUARE: 1;
|
|
3456
|
+
readonly TIGHT: 2;
|
|
3457
|
+
readonly TOP_AND_BOTTOM: 3;
|
|
3458
|
+
};
|
|
3459
|
+
|
|
3460
|
+
export declare class ThematicBreak extends XmlComponent {
|
|
3461
|
+
constructor();
|
|
3462
|
+
}
|
|
3463
|
+
|
|
3464
|
+
export declare enum TickLabelPosition {
|
|
3465
|
+
HIGH = "high",
|
|
3466
|
+
LOW = "low",
|
|
3467
|
+
NEXT_TO = "nextTo",
|
|
3468
|
+
NONE = "none"
|
|
3469
|
+
}
|
|
3470
|
+
|
|
3471
|
+
export declare enum TickMark {
|
|
3472
|
+
CROSS = "cross",
|
|
3473
|
+
IN = "in",
|
|
3474
|
+
NONE = "none",
|
|
3475
|
+
OUT = "out"
|
|
3476
|
+
}
|
|
3477
|
+
|
|
3478
|
+
declare type TitleOptions = {
|
|
3479
|
+
readonly textSource?: TextSourceOptions;
|
|
3480
|
+
readonly layout?: LayoutOptions;
|
|
3481
|
+
readonly overlay?: boolean;
|
|
3482
|
+
readonly shape?: IShapePropertiesOptions;
|
|
3483
|
+
readonly extensionList?: ExtensionListOptions;
|
|
3484
|
+
};
|
|
3485
|
+
|
|
3486
|
+
declare type TrendlineOptions = {};
|
|
3487
|
+
|
|
3488
|
+
export declare const twipsMeasureValue: (val: PositiveUniversalMeasure | number) => PositiveUniversalMeasure | number;
|
|
3489
|
+
|
|
3490
|
+
export declare class Type extends XmlComponent {
|
|
3491
|
+
constructor(value: (typeof SectionType)[keyof typeof SectionType]);
|
|
3492
|
+
}
|
|
3493
|
+
|
|
3494
|
+
export declare const uCharHexNumber: (val: string) => string;
|
|
3495
|
+
|
|
3496
|
+
export declare class Underline extends XmlComponent {
|
|
3497
|
+
constructor(underlineType?: (typeof UnderlineType)[keyof typeof UnderlineType], color?: string);
|
|
3498
|
+
}
|
|
3499
|
+
|
|
3500
|
+
export declare const UnderlineType: {
|
|
3501
|
+
readonly SINGLE: "single";
|
|
3502
|
+
readonly WORDS: "words";
|
|
3503
|
+
readonly DOUBLE: "double";
|
|
3504
|
+
readonly THICK: "thick";
|
|
3505
|
+
readonly DOTTED: "dotted";
|
|
3506
|
+
readonly DOTTEDHEAVY: "dottedHeavy";
|
|
3507
|
+
readonly DASH: "dash";
|
|
3508
|
+
readonly DASHEDHEAVY: "dashedHeavy";
|
|
3509
|
+
readonly DASHLONG: "dashLong";
|
|
3510
|
+
readonly DASHLONGHEAVY: "dashLongHeavy";
|
|
3511
|
+
readonly DOTDASH: "dotDash";
|
|
3512
|
+
readonly DASHDOTHEAVY: "dashDotHeavy";
|
|
3513
|
+
readonly DOTDOTDASH: "dotDotDash";
|
|
3514
|
+
readonly DASHDOTDOTHEAVY: "dashDotDotHeavy";
|
|
3515
|
+
readonly WAVE: "wave";
|
|
3516
|
+
readonly WAVYHEAVY: "wavyHeavy";
|
|
3517
|
+
readonly WAVYDOUBLE: "wavyDouble";
|
|
3518
|
+
readonly NONE: "none";
|
|
3519
|
+
};
|
|
3520
|
+
|
|
3521
|
+
export declare const uniqueId: () => string;
|
|
3522
|
+
|
|
3523
|
+
export declare type UniqueNumericIdCreator = () => number;
|
|
3524
|
+
|
|
3525
|
+
export declare const uniqueNumericIdCreator: (initial?: number) => UniqueNumericIdCreator;
|
|
3526
|
+
|
|
3527
|
+
export declare const uniqueUuid: () => string;
|
|
3528
|
+
|
|
3529
|
+
export declare type UniversalMeasure = `${"-" | ""}${number}${"mm" | "cm" | "in" | "pt" | "pc" | "pi"}`;
|
|
3530
|
+
|
|
3531
|
+
export declare const universalMeasureValue: (val: UniversalMeasure) => UniversalMeasure;
|
|
3532
|
+
|
|
3533
|
+
export declare const unsignedDecimalNumber: (val: number) => number;
|
|
3534
|
+
|
|
3535
|
+
declare type ValueAxisOptions = {
|
|
3536
|
+
readonly crossBetween?: CrossBetween;
|
|
3537
|
+
readonly unit?: {
|
|
3538
|
+
readonly major?: number;
|
|
3539
|
+
readonly minor?: number;
|
|
3540
|
+
readonly display?: DisplayUnitOptions;
|
|
3541
|
+
};
|
|
3542
|
+
readonly extensionList?: ExtensionListOptions;
|
|
3543
|
+
} & AxisSharedOptions;
|
|
3544
|
+
|
|
3545
|
+
export declare const VerticalAlign: {
|
|
3546
|
+
readonly BOTH: "both";
|
|
3547
|
+
readonly TOP: "top";
|
|
3548
|
+
readonly CENTER: "center";
|
|
3549
|
+
readonly BOTTOM: "bottom";
|
|
3550
|
+
};
|
|
3551
|
+
|
|
3552
|
+
export declare class VerticalAlignAttributes extends XmlAttributeComponent<{
|
|
3553
|
+
readonly verticalAlign?: (typeof VerticalAlign)[keyof typeof VerticalAlign];
|
|
3554
|
+
}> {
|
|
3555
|
+
protected readonly xmlKeys: {
|
|
3556
|
+
verticalAlign: string;
|
|
3557
|
+
};
|
|
3558
|
+
}
|
|
3559
|
+
|
|
3560
|
+
export declare class VerticalAlignElement extends XmlComponent {
|
|
3561
|
+
constructor(value: (typeof VerticalAlign)[keyof typeof VerticalAlign]);
|
|
3562
|
+
}
|
|
3563
|
+
|
|
3564
|
+
export declare const VerticalAlignSection: {
|
|
3565
|
+
readonly BOTH: "both";
|
|
3566
|
+
readonly TOP: "top";
|
|
3567
|
+
readonly CENTER: "center";
|
|
3568
|
+
readonly BOTTOM: "bottom";
|
|
3569
|
+
};
|
|
3570
|
+
|
|
3571
|
+
export declare const VerticalAlignTable: {
|
|
3572
|
+
readonly TOP: "top";
|
|
3573
|
+
readonly CENTER: "center";
|
|
3574
|
+
readonly BOTTOM: "bottom";
|
|
3575
|
+
};
|
|
3576
|
+
|
|
3577
|
+
export declare class VerticalMerge extends XmlComponent {
|
|
3578
|
+
constructor(value: (typeof VerticalMergeType)[keyof typeof VerticalMergeType]);
|
|
3579
|
+
}
|
|
3580
|
+
|
|
3581
|
+
export declare const VerticalMergeType: {
|
|
3582
|
+
readonly CONTINUE: "continue";
|
|
3583
|
+
readonly RESTART: "restart";
|
|
3584
|
+
};
|
|
3585
|
+
|
|
3586
|
+
export declare const VerticalPositionAlign: {
|
|
3587
|
+
readonly BOTTOM: "bottom";
|
|
3588
|
+
readonly CENTER: "center";
|
|
3589
|
+
readonly INSIDE: "inside";
|
|
3590
|
+
readonly OUTSIDE: "outside";
|
|
3591
|
+
readonly TOP: "top";
|
|
3592
|
+
};
|
|
3593
|
+
|
|
3594
|
+
export declare const VerticalPositionRelativeFrom: {
|
|
3595
|
+
readonly BOTTOM_MARGIN: "bottomMargin";
|
|
3596
|
+
readonly INSIDE_MARGIN: "insideMargin";
|
|
3597
|
+
readonly LINE: "line";
|
|
3598
|
+
readonly MARGIN: "margin";
|
|
3599
|
+
readonly OUTSIDE_MARGIN: "outsideMargin";
|
|
3600
|
+
readonly PAGE: "page";
|
|
3601
|
+
readonly PARAGRAPH: "paragraph";
|
|
3602
|
+
readonly TOP_MARGIN: "topMargin";
|
|
3603
|
+
};
|
|
3604
|
+
|
|
3605
|
+
declare type VmlShapeStyle = {
|
|
3606
|
+
readonly flip?: "x" | "y" | "xy" | "yx";
|
|
3607
|
+
readonly height?: LengthUnit;
|
|
3608
|
+
readonly left?: LengthUnit;
|
|
3609
|
+
readonly marginBottom?: LengthUnit;
|
|
3610
|
+
readonly marginLeft?: LengthUnit;
|
|
3611
|
+
readonly marginRight?: LengthUnit;
|
|
3612
|
+
readonly marginTop?: LengthUnit;
|
|
3613
|
+
readonly positionHorizontal?: "absolute" | "left" | "center" | "right" | "inside" | "outside";
|
|
3614
|
+
readonly positionHorizontalRelative?: "margin" | "page" | "text" | "char";
|
|
3615
|
+
readonly positionVertical?: "absolute" | "left" | "center" | "right" | "inside" | "outside";
|
|
3616
|
+
readonly positionVerticalRelative?: "margin" | "page" | "text" | "char";
|
|
3617
|
+
readonly wrapDistanceBottom?: number;
|
|
3618
|
+
readonly wrapDistanceLeft?: number;
|
|
3619
|
+
readonly wrapDistanceRight?: number;
|
|
3620
|
+
readonly wrapDistanceTop?: number;
|
|
3621
|
+
readonly wrapEdited?: boolean;
|
|
3622
|
+
readonly wrapStyle?: "square" | "none";
|
|
3623
|
+
readonly position?: "static" | "absolute" | "relative";
|
|
3624
|
+
readonly rotation?: number;
|
|
3625
|
+
readonly top?: LengthUnit;
|
|
3626
|
+
readonly visibility?: "hidden" | "inherit";
|
|
3627
|
+
readonly width: LengthUnit;
|
|
3628
|
+
readonly zIndex?: "auto" | number;
|
|
3629
|
+
};
|
|
3630
|
+
|
|
3631
|
+
export declare const WidthType: {
|
|
3632
|
+
readonly AUTO: "auto";
|
|
3633
|
+
readonly DXA: "dxa";
|
|
3634
|
+
readonly NIL: "nil";
|
|
3635
|
+
readonly PERCENTAGE: "pct";
|
|
3636
|
+
};
|
|
3637
|
+
|
|
3638
|
+
export declare const WORKAROUND2 = "";
|
|
3639
|
+
|
|
3640
|
+
export declare const WORKAROUND3 = "";
|
|
3641
|
+
|
|
3642
|
+
export declare const WORKAROUND4 = "";
|
|
3643
|
+
|
|
3644
|
+
export declare class WrapNone extends XmlComponent {
|
|
3645
|
+
constructor();
|
|
3646
|
+
}
|
|
3647
|
+
|
|
3648
|
+
export declare class WrapSquare extends XmlComponent {
|
|
3649
|
+
constructor(textWrapping: ITextWrapping, margins?: IMargins);
|
|
3650
|
+
}
|
|
3651
|
+
|
|
3652
|
+
export declare class WrapTight extends XmlComponent {
|
|
3653
|
+
constructor(margins?: IMargins);
|
|
3654
|
+
}
|
|
3655
|
+
|
|
3656
|
+
export declare class WrapTopAndBottom extends XmlComponent {
|
|
3657
|
+
constructor(margins?: IMargins);
|
|
3658
|
+
}
|
|
3659
|
+
|
|
3660
|
+
export declare abstract class XmlAttributeComponent<T extends Record<string, any>> extends BaseXmlComponent {
|
|
3661
|
+
private readonly root;
|
|
3662
|
+
private readonly namespace?;
|
|
3663
|
+
protected readonly xmlKeys?: AttributeMap<T>;
|
|
3664
|
+
constructor(root: T, namespace?: string | undefined);
|
|
3665
|
+
prepForXml(_: IContext): IXmlableObject;
|
|
3666
|
+
}
|
|
3667
|
+
|
|
3668
|
+
export declare abstract class XmlComponent extends BaseXmlComponent {
|
|
3669
|
+
protected root: (BaseXmlComponent | string | any)[];
|
|
3670
|
+
constructor(rootKey: string);
|
|
3671
|
+
prepForXml(context: IContext): IXmlableObject | undefined;
|
|
3672
|
+
replaceNamespace(current: string, replacement: string): void;
|
|
3673
|
+
addChildElement(child: XmlComponent | string): XmlComponent;
|
|
3674
|
+
}
|
|
3675
|
+
|
|
3676
|
+
export declare class YearLong extends EmptyElement {
|
|
3677
|
+
constructor();
|
|
3678
|
+
}
|
|
3679
|
+
|
|
3680
|
+
export declare class YearShort extends EmptyElement {
|
|
3681
|
+
constructor();
|
|
3682
|
+
}
|
|
3683
|
+
|
|
3684
|
+
export { }
|