docx 9.5.2 → 9.6.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/README.md +1 -1
- package/dist/index.cjs +4215 -3062
- package/dist/index.d.cts +380 -246
- package/dist/index.d.ts +380 -246
- package/dist/index.iife.js +4210 -3057
- package/dist/index.mjs +4215 -3062
- package/dist/index.umd.cjs +4210 -3057
- package/package.json +16 -18
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
|
|
3
1
|
import { default as default_2 } from 'jszip';
|
|
4
2
|
import { Element as Element_2 } from 'xml-js';
|
|
5
3
|
import { Stream } from 'stream';
|
|
@@ -11,18 +9,6 @@ export declare class AbstractNumbering extends XmlComponent {
|
|
|
11
9
|
|
|
12
10
|
export declare const abstractNumUniqueNumericIdGen: () => UniqueNumericIdCreator;
|
|
13
11
|
|
|
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
12
|
export declare const AlignmentType: {
|
|
27
13
|
readonly START: "start";
|
|
28
14
|
readonly CENTER: "center";
|
|
@@ -104,20 +90,12 @@ export declare class Attributes extends XmlAttributeComponent<{
|
|
|
104
90
|
};
|
|
105
91
|
}
|
|
106
92
|
|
|
107
|
-
export declare abstract class BaseEmphasisMark extends XmlComponent {
|
|
108
|
-
protected constructor(emphasisMarkType: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType]);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
93
|
export declare abstract class BaseXmlComponent {
|
|
112
94
|
protected readonly rootKey: string;
|
|
113
95
|
constructor(rootKey: string);
|
|
114
96
|
abstract prepForXml(context: IContext): IXmlableObject | undefined;
|
|
115
97
|
}
|
|
116
98
|
|
|
117
|
-
declare class Begin extends XmlComponent {
|
|
118
|
-
constructor(dirty?: boolean);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
99
|
declare class Body_2 extends XmlComponent {
|
|
122
100
|
private readonly sections;
|
|
123
101
|
constructor();
|
|
@@ -133,10 +111,7 @@ export declare class Bookmark {
|
|
|
133
111
|
readonly start: BookmarkStart;
|
|
134
112
|
readonly children: readonly ParagraphChild[];
|
|
135
113
|
readonly end: BookmarkEnd;
|
|
136
|
-
constructor(options:
|
|
137
|
-
readonly id: string;
|
|
138
|
-
readonly children: readonly ParagraphChild[];
|
|
139
|
-
});
|
|
114
|
+
constructor(options: IBookmarkOptions);
|
|
140
115
|
}
|
|
141
116
|
|
|
142
117
|
export declare class BookmarkEnd extends XmlComponent {
|
|
@@ -153,10 +128,6 @@ export declare class Border extends IgnoreIfEmptyXmlComponent {
|
|
|
153
128
|
constructor(options: IBordersOptions);
|
|
154
129
|
}
|
|
155
130
|
|
|
156
|
-
export declare class BorderElement extends XmlComponent {
|
|
157
|
-
constructor(elementName: string, { color, size, space, style }: IBorderOptions);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
131
|
export declare const BorderStyle: {
|
|
161
132
|
readonly SINGLE: "single";
|
|
162
133
|
readonly DASH_DOT_STROKED: "dashDotStroked";
|
|
@@ -187,10 +158,6 @@ export declare const BorderStyle: {
|
|
|
187
158
|
readonly WAVE: "wave";
|
|
188
159
|
};
|
|
189
160
|
|
|
190
|
-
declare class Break extends XmlComponent {
|
|
191
|
-
constructor();
|
|
192
|
-
}
|
|
193
|
-
|
|
194
161
|
export declare class BuilderElement<T extends AttributeData = {}> extends XmlComponent {
|
|
195
162
|
constructor({ name, attributes, children, }: {
|
|
196
163
|
readonly name: string;
|
|
@@ -203,6 +170,20 @@ export declare class CarriageReturn extends EmptyElement {
|
|
|
203
170
|
constructor();
|
|
204
171
|
}
|
|
205
172
|
|
|
173
|
+
export declare class CellMerge extends XmlComponent {
|
|
174
|
+
constructor(options: ICellMergeAttributes);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export declare class CellMergeAttributes extends XmlAttributeComponent<ICellMergeAttributes> {
|
|
178
|
+
protected readonly xmlKeys: {
|
|
179
|
+
id: string;
|
|
180
|
+
author: string;
|
|
181
|
+
date: string;
|
|
182
|
+
verticalMerge: string;
|
|
183
|
+
verticalMergeOriginal: string;
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
|
|
206
187
|
declare const CellSpacingType: {
|
|
207
188
|
readonly DXA: "dxa";
|
|
208
189
|
readonly NIL: "nil";
|
|
@@ -249,17 +230,13 @@ export declare class CheckBoxUtil extends XmlComponent {
|
|
|
249
230
|
}
|
|
250
231
|
|
|
251
232
|
export declare class Column extends XmlComponent {
|
|
252
|
-
constructor(
|
|
233
|
+
constructor(options: IColumnAttributes);
|
|
253
234
|
}
|
|
254
235
|
|
|
255
236
|
export declare class ColumnBreak extends Run {
|
|
256
237
|
constructor();
|
|
257
238
|
}
|
|
258
239
|
|
|
259
|
-
export declare class Columns extends XmlComponent {
|
|
260
|
-
constructor({ space, count, separate, equalWidth, children }: IColumnsAttributes);
|
|
261
|
-
}
|
|
262
|
-
|
|
263
240
|
declare class Comment_2 extends XmlComponent {
|
|
264
241
|
constructor({ id, initials, author, date, children }: ICommentOptions);
|
|
265
242
|
}
|
|
@@ -321,11 +298,19 @@ export declare const convertMillimetersToTwip: (millimeters: number) => number;
|
|
|
321
298
|
|
|
322
299
|
export declare const convertToXmlComponent: (element: Element_2) => ImportedXmlComponent | string | undefined;
|
|
323
300
|
|
|
301
|
+
declare type CoreGroupOptions = {
|
|
302
|
+
readonly children: readonly IGroupChildMediaData[];
|
|
303
|
+
readonly transformation: IMediaTransformation;
|
|
304
|
+
readonly floating?: IFloating;
|
|
305
|
+
readonly altText?: DocPropertiesOptions;
|
|
306
|
+
};
|
|
307
|
+
|
|
324
308
|
declare type CoreImageOptions = {
|
|
325
309
|
readonly transformation: IMediaTransformation;
|
|
326
310
|
readonly floating?: IFloating;
|
|
327
311
|
readonly altText?: DocPropertiesOptions;
|
|
328
312
|
readonly outline?: OutlineOptions;
|
|
313
|
+
readonly solidFill?: SolidFillOptions;
|
|
329
314
|
};
|
|
330
315
|
|
|
331
316
|
declare type CoreMediaData = {
|
|
@@ -338,12 +323,36 @@ declare class CoreProperties extends XmlComponent {
|
|
|
338
323
|
constructor(options: Omit<IPropertiesOptions, "sections">);
|
|
339
324
|
}
|
|
340
325
|
|
|
326
|
+
declare type CoreShapeOptions = {
|
|
327
|
+
readonly transformation: IMediaTransformation;
|
|
328
|
+
readonly floating?: IFloating;
|
|
329
|
+
readonly altText?: DocPropertiesOptions;
|
|
330
|
+
readonly outline?: OutlineOptions;
|
|
331
|
+
readonly solidFill?: SolidFillOptions;
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
export declare const createAlignment: (type: (typeof AlignmentType)[keyof typeof AlignmentType]) => XmlComponent;
|
|
335
|
+
|
|
336
|
+
export declare const createBodyProperties: (options?: IBodyPropertiesOptions) => XmlComponent;
|
|
337
|
+
|
|
338
|
+
export declare const createBorderElement: (elementName: string, { color, size, space, style }: IBorderOptions) => XmlComponent;
|
|
339
|
+
|
|
340
|
+
export declare const createColumns: ({ space, count, separate, equalWidth, children }: IColumnsAttributes) => XmlComponent;
|
|
341
|
+
|
|
341
342
|
export declare const createDocumentGrid: ({ type, linePitch, charSpace }: IDocGridAttributesProperties) => XmlComponent;
|
|
342
343
|
|
|
344
|
+
export declare const createDotEmphasisMark: () => XmlComponent;
|
|
345
|
+
|
|
346
|
+
export declare const createEmphasisMark: (emphasisMarkType?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType]) => XmlComponent;
|
|
347
|
+
|
|
343
348
|
export declare const createFrameProperties: (options: IFrameOptions) => XmlComponent;
|
|
344
349
|
|
|
350
|
+
export declare const createHeaderFooterReference: (type: (typeof HeaderFooterType)[keyof typeof HeaderFooterType], options: IHeaderFooterOptions) => XmlComponent;
|
|
351
|
+
|
|
345
352
|
export declare const createHorizontalPosition: ({ relative, align, offset }: IHorizontalPositionOptions) => XmlComponent;
|
|
346
353
|
|
|
354
|
+
export declare const createIndent: ({ start, end, left, right, hanging, firstLine }: IIndentAttributesProperties) => XmlComponent;
|
|
355
|
+
|
|
347
356
|
export declare const createLineNumberType: ({ countBy, start, restart, distance }: ILineNumberAttributes) => XmlComponent;
|
|
348
357
|
|
|
349
358
|
export declare const createMathAccentCharacter: ({ accent }: MathAccentCharacterOptions) => XmlComponent;
|
|
@@ -366,14 +375,58 @@ export declare const createMathSuperScriptElement: ({ children }: MathSuperScrip
|
|
|
366
375
|
|
|
367
376
|
export declare const createMathSuperScriptProperties: () => XmlComponent;
|
|
368
377
|
|
|
378
|
+
export declare const createOutlineLevel: (level: number) => XmlComponent;
|
|
379
|
+
|
|
380
|
+
export declare const createPageMargin: (top: number | UniversalMeasure, right: number | PositiveUniversalMeasure, bottom: number | UniversalMeasure, left: number | PositiveUniversalMeasure, header: number | PositiveUniversalMeasure, footer: number | PositiveUniversalMeasure, gutter: number | PositiveUniversalMeasure) => XmlComponent;
|
|
381
|
+
|
|
382
|
+
export declare const createPageNumberType: ({ start, formatType, separator }: IPageNumberTypeAttributes) => XmlComponent;
|
|
383
|
+
|
|
369
384
|
export declare const createPageSize: ({ width, height, orientation, code }: IPageSizeAttributes) => XmlComponent;
|
|
370
385
|
|
|
386
|
+
export declare const createParagraphStyle: (styleId: string) => XmlComponent;
|
|
387
|
+
|
|
388
|
+
export declare const createRunFonts: (nameOrAttrs: string | IFontAttributesProperties, hint?: string) => XmlComponent;
|
|
389
|
+
|
|
390
|
+
export declare const createSectionType: (value: (typeof SectionType)[keyof typeof SectionType]) => XmlComponent;
|
|
391
|
+
|
|
392
|
+
export declare const createShading: ({ fill, color, type }: IShadingAttributesProperties) => XmlComponent;
|
|
393
|
+
|
|
371
394
|
export declare const createSimplePos: () => XmlComponent;
|
|
372
395
|
|
|
396
|
+
export declare const createSpacing: ({ after, before, line, lineRule, beforeAutoSpacing, afterAutoSpacing }: ISpacingProperties) => XmlComponent;
|
|
397
|
+
|
|
373
398
|
export declare const createStringElement: (name: string, value: string) => XmlComponent;
|
|
374
399
|
|
|
400
|
+
export declare const createTableFloatProperties: ({ horizontalAnchor, verticalAnchor, absoluteHorizontalPosition, relativeHorizontalPosition, absoluteVerticalPosition, relativeVerticalPosition, bottomFromText, topFromText, leftFromText, rightFromText, overlap, }: ITableFloatOptions) => XmlComponent;
|
|
401
|
+
|
|
402
|
+
export declare const createTableLayout: (type: (typeof TableLayoutType)[keyof typeof TableLayoutType]) => XmlComponent;
|
|
403
|
+
|
|
404
|
+
export declare const createTableLook: ({ firstRow, lastRow, firstColumn, lastColumn, noHBand, noVBand }: ITableLookOptions) => XmlComponent;
|
|
405
|
+
|
|
406
|
+
export declare const createTableRowHeight: (value: number | PositiveUniversalMeasure, rule: (typeof HeightRule)[keyof typeof HeightRule]) => XmlComponent;
|
|
407
|
+
|
|
408
|
+
export declare const createTableWidthElement: (name: string, { type, size }: ITableWidthProperties) => XmlComponent;
|
|
409
|
+
|
|
410
|
+
export declare const createTabStop: (tabDefinitions: readonly TabStopDefinition[]) => XmlComponent;
|
|
411
|
+
|
|
412
|
+
export declare const createTabStopItem: ({ type, position, leader }: TabStopDefinition) => XmlComponent;
|
|
413
|
+
|
|
414
|
+
export declare const createTransformation: (options: IMediaTransformation) => IMediaDataTransformation;
|
|
415
|
+
|
|
416
|
+
export declare const createUnderline: (underlineType?: (typeof UnderlineType)[keyof typeof UnderlineType], color?: string) => XmlComponent;
|
|
417
|
+
|
|
418
|
+
export declare const createVerticalAlign: (value: (typeof VerticalAlign)[keyof typeof VerticalAlign]) => XmlComponent;
|
|
419
|
+
|
|
375
420
|
export declare const createVerticalPosition: ({ relative, align, offset }: IVerticalPositionOptions) => XmlComponent;
|
|
376
421
|
|
|
422
|
+
export declare const createWrapNone: () => XmlComponent;
|
|
423
|
+
|
|
424
|
+
export declare const createWrapSquare: (textWrapping: ITextWrapping, margins?: IMargins) => XmlComponent;
|
|
425
|
+
|
|
426
|
+
export declare const createWrapTight: (margins?: IMargins) => XmlComponent;
|
|
427
|
+
|
|
428
|
+
export declare const createWrapTopAndBottom: (margins?: IMargins) => XmlComponent;
|
|
429
|
+
|
|
377
430
|
declare class CustomProperties extends XmlComponent {
|
|
378
431
|
private nextId;
|
|
379
432
|
private readonly properties;
|
|
@@ -394,6 +447,14 @@ export declare class DayShort extends EmptyElement {
|
|
|
394
447
|
|
|
395
448
|
export declare const decimalNumber: (val: number) => number;
|
|
396
449
|
|
|
450
|
+
export declare class DeletedTableCell extends XmlComponent {
|
|
451
|
+
constructor(options: IChangedAttributesProperties);
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
export declare class DeletedTableRow extends XmlComponent {
|
|
455
|
+
constructor(options: IChangedAttributesProperties);
|
|
456
|
+
}
|
|
457
|
+
|
|
397
458
|
export declare class DeletedTextRun extends XmlComponent {
|
|
398
459
|
protected readonly deletedTextRunWrapper: DeletedTextRunWrapper;
|
|
399
460
|
constructor(options: IDeletedRunOptions);
|
|
@@ -407,6 +468,7 @@ declare type DocPropertiesOptions = {
|
|
|
407
468
|
readonly name: string;
|
|
408
469
|
readonly description?: string;
|
|
409
470
|
readonly title?: string;
|
|
471
|
+
readonly id?: string;
|
|
410
472
|
};
|
|
411
473
|
|
|
412
474
|
export declare const docPropertiesUniqueNumericIdGen: () => UniqueNumericIdCreator;
|
|
@@ -504,12 +566,8 @@ declare class DocumentWrapper implements IViewWrapper {
|
|
|
504
566
|
get Relationships(): Relationships;
|
|
505
567
|
}
|
|
506
568
|
|
|
507
|
-
export declare class DotEmphasisMark extends BaseEmphasisMark {
|
|
508
|
-
constructor();
|
|
509
|
-
}
|
|
510
|
-
|
|
511
569
|
export declare class Drawing extends XmlComponent {
|
|
512
|
-
constructor(imageData:
|
|
570
|
+
constructor(imageData: IExtendedMediaData, drawingOptions?: IDrawingOptions);
|
|
513
571
|
}
|
|
514
572
|
|
|
515
573
|
export declare const DropCapType: {
|
|
@@ -520,10 +578,6 @@ export declare const DropCapType: {
|
|
|
520
578
|
|
|
521
579
|
export declare const eighthPointMeasureValue: (val: number) => number;
|
|
522
580
|
|
|
523
|
-
export declare class EmphasisMark extends BaseEmphasisMark {
|
|
524
|
-
constructor(emphasisMarkType?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType]);
|
|
525
|
-
}
|
|
526
|
-
|
|
527
581
|
export declare const EmphasisMarkType: {
|
|
528
582
|
readonly DOT: "dot";
|
|
529
583
|
};
|
|
@@ -533,23 +587,44 @@ export declare const EMPTY_OBJECT: {};
|
|
|
533
587
|
export declare class EmptyElement extends XmlComponent {
|
|
534
588
|
}
|
|
535
589
|
|
|
536
|
-
declare
|
|
537
|
-
|
|
590
|
+
export declare const encodeUtf8: (str: string) => Uint8Array;
|
|
591
|
+
|
|
592
|
+
export declare class EndnoteIdReference extends XmlComponent {
|
|
593
|
+
constructor(id: number);
|
|
538
594
|
}
|
|
539
595
|
|
|
540
596
|
export declare class EndnoteReference extends EmptyElement {
|
|
541
597
|
constructor();
|
|
542
598
|
}
|
|
543
599
|
|
|
544
|
-
export declare class
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
600
|
+
export declare class EndnoteReferenceRun extends Run {
|
|
601
|
+
constructor(id: number);
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
export declare class EndnoteReferenceRunAttributes extends XmlAttributeComponent<{
|
|
605
|
+
readonly id: number;
|
|
606
|
+
}> {
|
|
607
|
+
protected readonly xmlKeys: {
|
|
608
|
+
id: string;
|
|
548
609
|
};
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
export declare class Endnotes extends XmlComponent {
|
|
613
|
+
constructor();
|
|
614
|
+
createEndnote(id: number, paragraph: readonly Paragraph[]): void;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
declare class EndnotesWrapper implements IViewWrapper {
|
|
618
|
+
private readonly endnotes;
|
|
619
|
+
private readonly relationships;
|
|
620
|
+
constructor();
|
|
621
|
+
get View(): Endnotes;
|
|
622
|
+
get Relationships(): Relationships;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
export declare class ExternalHyperlink extends XmlComponent {
|
|
626
|
+
readonly options: IExternalHyperlinkOptions;
|
|
627
|
+
constructor(options: IExternalHyperlinkOptions);
|
|
553
628
|
}
|
|
554
629
|
|
|
555
630
|
declare class FieldInstruction extends XmlComponent {
|
|
@@ -567,6 +642,7 @@ declare class File_2 {
|
|
|
567
642
|
private readonly media;
|
|
568
643
|
private readonly fileRelationships;
|
|
569
644
|
private readonly footnotesWrapper;
|
|
645
|
+
private readonly endnotesWrapper;
|
|
570
646
|
private readonly settings;
|
|
571
647
|
private readonly contentTypes;
|
|
572
648
|
private readonly customProperties;
|
|
@@ -593,6 +669,7 @@ declare class File_2 {
|
|
|
593
669
|
get CustomProperties(): CustomProperties;
|
|
594
670
|
get AppProperties(): AppProperties;
|
|
595
671
|
get FootNotes(): FootnotesWrapper;
|
|
672
|
+
get Endnotes(): EndnotesWrapper;
|
|
596
673
|
get Settings(): Settings;
|
|
597
674
|
get Comments(): Comments;
|
|
598
675
|
get FontTable(): FontWrapper;
|
|
@@ -719,10 +796,6 @@ declare class Header_2 extends InitializableXmlComponent {
|
|
|
719
796
|
add(item: Paragraph | Table): void;
|
|
720
797
|
}
|
|
721
798
|
|
|
722
|
-
export declare class HeaderFooterReference extends XmlComponent {
|
|
723
|
-
constructor(type: (typeof HeaderFooterType)[keyof typeof HeaderFooterType], options: IHeaderFooterOptions);
|
|
724
|
-
}
|
|
725
|
-
|
|
726
799
|
export declare const HeaderFooterReferenceType: {
|
|
727
800
|
readonly DEFAULT: "default";
|
|
728
801
|
readonly FIRST: "first";
|
|
@@ -849,6 +922,23 @@ export declare type IBaseParagraphStyleOptions = {
|
|
|
849
922
|
readonly run?: IRunStylePropertiesOptions;
|
|
850
923
|
} & IStyleOptions;
|
|
851
924
|
|
|
925
|
+
export declare type IBodyPropertiesOptions = {
|
|
926
|
+
readonly wrap?: (typeof TextWrappingType)[keyof typeof TextWrappingType];
|
|
927
|
+
readonly verticalAnchor?: VerticalAnchor;
|
|
928
|
+
readonly margins?: {
|
|
929
|
+
readonly top?: number;
|
|
930
|
+
readonly bottom?: number;
|
|
931
|
+
readonly left?: number;
|
|
932
|
+
readonly right?: number;
|
|
933
|
+
};
|
|
934
|
+
readonly noAutoFit?: boolean;
|
|
935
|
+
};
|
|
936
|
+
|
|
937
|
+
export declare type IBookmarkOptions = {
|
|
938
|
+
readonly id: string;
|
|
939
|
+
readonly children: readonly ParagraphChild[];
|
|
940
|
+
};
|
|
941
|
+
|
|
852
942
|
export declare type IBorderOptions = {
|
|
853
943
|
readonly style: (typeof BorderStyle)[keyof typeof BorderStyle];
|
|
854
944
|
readonly color?: string;
|
|
@@ -864,6 +954,11 @@ export declare type IBordersOptions = {
|
|
|
864
954
|
readonly between?: IBorderOptions;
|
|
865
955
|
};
|
|
866
956
|
|
|
957
|
+
export declare type ICellMergeAttributes = IChangedAttributesProperties & {
|
|
958
|
+
readonly verticalMerge?: (typeof VerticalMergeRevisionType)[keyof typeof VerticalMergeRevisionType];
|
|
959
|
+
readonly verticalMergeOriginal?: (typeof VerticalMergeRevisionType)[keyof typeof VerticalMergeRevisionType];
|
|
960
|
+
};
|
|
961
|
+
|
|
867
962
|
declare type IChangedAttributesProperties = {
|
|
868
963
|
readonly id: number;
|
|
869
964
|
readonly author: string;
|
|
@@ -886,7 +981,7 @@ export declare type ICheckboxSymbolProperties = {
|
|
|
886
981
|
readonly font?: string;
|
|
887
982
|
};
|
|
888
983
|
|
|
889
|
-
declare type IColumnAttributes = {
|
|
984
|
+
export declare type IColumnAttributes = {
|
|
890
985
|
readonly width: number | PositiveUniversalMeasure;
|
|
891
986
|
readonly space?: number | PositiveUniversalMeasure;
|
|
892
987
|
};
|
|
@@ -1014,6 +1109,9 @@ declare type IDefaultStylesOptions = {
|
|
|
1014
1109
|
readonly footnoteReference?: IBaseCharacterStyleOptions;
|
|
1015
1110
|
readonly footnoteText?: IBaseParagraphStyleOptions;
|
|
1016
1111
|
readonly footnoteTextChar?: IBaseCharacterStyleOptions;
|
|
1112
|
+
readonly endnoteReference?: IBaseCharacterStyleOptions;
|
|
1113
|
+
readonly endnoteText?: IBaseParagraphStyleOptions;
|
|
1114
|
+
readonly endnoteTextChar?: IBaseCharacterStyleOptions;
|
|
1017
1115
|
};
|
|
1018
1116
|
|
|
1019
1117
|
declare type IDeletedRunOptions = IRunOptions & IChangedAttributesProperties;
|
|
@@ -1065,6 +1163,14 @@ export declare type IDrawingOptions = {
|
|
|
1065
1163
|
readonly floating?: IFloating;
|
|
1066
1164
|
readonly docProperties?: DocPropertiesOptions;
|
|
1067
1165
|
readonly outline?: OutlineOptions;
|
|
1166
|
+
readonly solidFill?: SolidFillOptions;
|
|
1167
|
+
};
|
|
1168
|
+
|
|
1169
|
+
export declare type IExtendedMediaData = IMediaData | WpsMediaData | WpgMediaData;
|
|
1170
|
+
|
|
1171
|
+
export declare type IExternalHyperlinkOptions = {
|
|
1172
|
+
readonly children: readonly ParagraphChild[];
|
|
1173
|
+
readonly link: string;
|
|
1068
1174
|
};
|
|
1069
1175
|
|
|
1070
1176
|
export declare type IFloating = {
|
|
@@ -1095,9 +1201,13 @@ declare type IFontOptions = {
|
|
|
1095
1201
|
export declare type IFrameOptions = IXYFrameOptions | IAlignmentFrameOptions;
|
|
1096
1202
|
|
|
1097
1203
|
export declare abstract class IgnoreIfEmptyXmlComponent extends XmlComponent {
|
|
1204
|
+
private readonly includeIfEmpty;
|
|
1205
|
+
constructor(rootKey: string, includeIfEmpty?: boolean);
|
|
1098
1206
|
prepForXml(context: IContext): IXmlableObject | undefined;
|
|
1099
1207
|
}
|
|
1100
1208
|
|
|
1209
|
+
export declare type IGroupChildMediaData = (WpsMediaData | IMediaData) & WpgCommonMediaData;
|
|
1210
|
+
|
|
1101
1211
|
export declare type IHeaderFooterGroup<T> = {
|
|
1102
1212
|
readonly default?: T;
|
|
1103
1213
|
readonly first?: T;
|
|
@@ -1139,6 +1249,11 @@ export declare type IIndentAttributesProperties = {
|
|
|
1139
1249
|
|
|
1140
1250
|
declare type IInsertedRunOptions = IChangedAttributesProperties & IRunOptions;
|
|
1141
1251
|
|
|
1252
|
+
export declare type IInternalHyperlinkOptions = {
|
|
1253
|
+
readonly children: readonly ParagraphChild[];
|
|
1254
|
+
readonly anchor: string;
|
|
1255
|
+
};
|
|
1256
|
+
|
|
1142
1257
|
declare type ILanguageOptions = {
|
|
1143
1258
|
readonly value?: string;
|
|
1144
1259
|
readonly eastAsia?: string;
|
|
@@ -1258,6 +1373,16 @@ export declare type IMathSuperScriptOptions = {
|
|
|
1258
1373
|
export declare type IMediaData = (RegularMediaData | SvgMediaData) & CoreMediaData;
|
|
1259
1374
|
|
|
1260
1375
|
export declare type IMediaDataTransformation = {
|
|
1376
|
+
readonly offset?: {
|
|
1377
|
+
readonly pixels: {
|
|
1378
|
+
readonly x: number;
|
|
1379
|
+
readonly y: number;
|
|
1380
|
+
};
|
|
1381
|
+
readonly emus?: {
|
|
1382
|
+
readonly x: number;
|
|
1383
|
+
readonly y: number;
|
|
1384
|
+
};
|
|
1385
|
+
};
|
|
1261
1386
|
readonly pixels: {
|
|
1262
1387
|
readonly x: number;
|
|
1263
1388
|
readonly y: number;
|
|
@@ -1274,6 +1399,10 @@ export declare type IMediaDataTransformation = {
|
|
|
1274
1399
|
};
|
|
1275
1400
|
|
|
1276
1401
|
export declare type IMediaTransformation = {
|
|
1402
|
+
readonly offset?: {
|
|
1403
|
+
readonly top?: number;
|
|
1404
|
+
readonly left?: number;
|
|
1405
|
+
};
|
|
1277
1406
|
readonly width: number;
|
|
1278
1407
|
readonly height: number;
|
|
1279
1408
|
readonly flip?: {
|
|
@@ -1295,25 +1424,30 @@ export declare class ImportedXmlComponent extends XmlComponent {
|
|
|
1295
1424
|
push(xmlComponent: XmlComponent | string): void;
|
|
1296
1425
|
}
|
|
1297
1426
|
|
|
1298
|
-
export declare class Indent extends XmlComponent {
|
|
1299
|
-
constructor({ start, end, left, right, hanging, firstLine }: IIndentAttributesProperties);
|
|
1300
|
-
}
|
|
1301
|
-
|
|
1302
1427
|
export declare abstract class InitializableXmlComponent extends XmlComponent {
|
|
1303
1428
|
constructor(rootKey: string, initComponent?: InitializableXmlComponent);
|
|
1304
1429
|
}
|
|
1305
1430
|
|
|
1431
|
+
declare type INonVisualShapePropertiesOptions = {
|
|
1432
|
+
readonly txBox: string;
|
|
1433
|
+
};
|
|
1434
|
+
|
|
1306
1435
|
export declare type InputDataType = Buffer | string | number[] | Uint8Array | ArrayBuffer | Blob | NodeJS.ReadableStream | default_2;
|
|
1307
1436
|
|
|
1437
|
+
export declare class InsertedTableCell extends XmlComponent {
|
|
1438
|
+
constructor(options: IChangedAttributesProperties);
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
export declare class InsertedTableRow extends XmlComponent {
|
|
1442
|
+
constructor(options: IChangedAttributesProperties);
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1308
1445
|
export declare class InsertedTextRun extends XmlComponent {
|
|
1309
1446
|
constructor(options: IInsertedRunOptions);
|
|
1310
1447
|
}
|
|
1311
1448
|
|
|
1312
1449
|
export declare class InternalHyperlink extends ConcreteHyperlink {
|
|
1313
|
-
constructor(options:
|
|
1314
|
-
readonly children: readonly ParagraphChild[];
|
|
1315
|
-
readonly anchor: string;
|
|
1316
|
-
});
|
|
1450
|
+
constructor(options: IInternalHyperlinkOptions);
|
|
1317
1451
|
}
|
|
1318
1452
|
|
|
1319
1453
|
export declare type INumberedItemReferenceOptions = {
|
|
@@ -1380,7 +1514,14 @@ export declare type IParagraphOptions = {
|
|
|
1380
1514
|
readonly children?: readonly ParagraphChild[];
|
|
1381
1515
|
} & IParagraphPropertiesOptions;
|
|
1382
1516
|
|
|
1517
|
+
export declare type IParagraphPropertiesChangeOptions = IChangedAttributesProperties & IParagraphPropertiesOptionsBase;
|
|
1518
|
+
|
|
1383
1519
|
export declare type IParagraphPropertiesOptions = {
|
|
1520
|
+
readonly revision?: IParagraphPropertiesChangeOptions;
|
|
1521
|
+
readonly includeIfEmpty?: boolean;
|
|
1522
|
+
} & IParagraphPropertiesOptionsBase;
|
|
1523
|
+
|
|
1524
|
+
export declare type IParagraphPropertiesOptionsBase = {
|
|
1384
1525
|
readonly heading?: (typeof HeadingLevel)[keyof typeof HeadingLevel];
|
|
1385
1526
|
readonly bidirectional?: boolean;
|
|
1386
1527
|
readonly pageBreakBefore?: boolean;
|
|
@@ -1396,9 +1537,16 @@ export declare type IParagraphPropertiesOptions = {
|
|
|
1396
1537
|
readonly overflowPunctuation?: boolean;
|
|
1397
1538
|
readonly scale?: number;
|
|
1398
1539
|
readonly autoSpaceEastAsianText?: boolean;
|
|
1399
|
-
readonly run?:
|
|
1540
|
+
readonly run?: IParagraphRunOptions;
|
|
1400
1541
|
} & IParagraphStylePropertiesOptions;
|
|
1401
1542
|
|
|
1543
|
+
export declare type IParagraphRunOptions = IRunOptionsBase & IParagraphRunPropertiesOptions;
|
|
1544
|
+
|
|
1545
|
+
export declare type IParagraphRunPropertiesOptions = {
|
|
1546
|
+
readonly insertion?: IChangedAttributesProperties;
|
|
1547
|
+
readonly deletion?: IChangedAttributesProperties;
|
|
1548
|
+
} & IRunPropertiesOptions;
|
|
1549
|
+
|
|
1402
1550
|
export declare type IParagraphStyleOptions = {
|
|
1403
1551
|
readonly id: string;
|
|
1404
1552
|
} & IBaseParagraphStyleOptions;
|
|
@@ -1432,6 +1580,9 @@ export declare type IPropertiesOptions = {
|
|
|
1432
1580
|
readonly footnotes?: Readonly<Record<string, {
|
|
1433
1581
|
readonly children: readonly Paragraph[];
|
|
1434
1582
|
}>>;
|
|
1583
|
+
readonly endnotes?: Readonly<Record<string, {
|
|
1584
|
+
readonly children: readonly Paragraph[];
|
|
1585
|
+
}>>;
|
|
1435
1586
|
readonly background?: IDocumentBackgroundOptions;
|
|
1436
1587
|
readonly features?: {
|
|
1437
1588
|
readonly trackRevisions?: boolean;
|
|
@@ -1446,11 +1597,13 @@ export declare type IPropertiesOptions = {
|
|
|
1446
1597
|
readonly hyphenation?: IHyphenationOptions;
|
|
1447
1598
|
};
|
|
1448
1599
|
|
|
1449
|
-
export declare type IRunOptions =
|
|
1450
|
-
|
|
1600
|
+
export declare type IRunOptions = IRunOptionsBase & IRunPropertiesOptions;
|
|
1601
|
+
|
|
1602
|
+
declare type IRunOptionsBase = {
|
|
1603
|
+
readonly children?: readonly (FieldInstruction | (typeof PageNumber)[keyof typeof PageNumber] | FootnoteReferenceRun | AnnotationReference | CarriageReturn | ContinuationSeparator | DayLong | DayShort | EndnoteReference | FootnoteReferenceElement | LastRenderedPageBreak | MonthLong | MonthShort | NoBreakHyphen | PageNumberElement | Separator | SoftHyphen | Tab | YearLong | YearShort | XmlComponent | string)[];
|
|
1451
1604
|
readonly break?: number;
|
|
1452
1605
|
readonly text?: string;
|
|
1453
|
-
}
|
|
1606
|
+
};
|
|
1454
1607
|
|
|
1455
1608
|
export declare type IRunPropertiesChangeOptions = {} & IRunPropertiesOptions & IChangedAttributesProperties;
|
|
1456
1609
|
|
|
@@ -1516,7 +1669,13 @@ export declare type ISectionOptions = {
|
|
|
1516
1669
|
readonly children: readonly FileChild[];
|
|
1517
1670
|
};
|
|
1518
1671
|
|
|
1672
|
+
export declare type ISectionPropertiesChangeOptions = IChangedAttributesProperties & ISectionPropertiesOptionsBase;
|
|
1673
|
+
|
|
1519
1674
|
export declare type ISectionPropertiesOptions = {
|
|
1675
|
+
readonly revision?: ISectionPropertiesChangeOptions;
|
|
1676
|
+
} & ISectionPropertiesOptionsBase;
|
|
1677
|
+
|
|
1678
|
+
export declare type ISectionPropertiesOptionsBase = {
|
|
1520
1679
|
readonly page?: {
|
|
1521
1680
|
readonly size?: Partial<IPageSizeAttributes>;
|
|
1522
1681
|
readonly margin?: IPageMarginAttributes;
|
|
@@ -1620,7 +1779,14 @@ export declare type ITableCellOptions = {
|
|
|
1620
1779
|
readonly children: readonly (Paragraph | Table)[];
|
|
1621
1780
|
} & ITableCellPropertiesOptions;
|
|
1622
1781
|
|
|
1782
|
+
declare type ITableCellPropertiesChangeOptions = ITableCellPropertiesOptionsBase & IChangedAttributesProperties;
|
|
1783
|
+
|
|
1623
1784
|
declare type ITableCellPropertiesOptions = {
|
|
1785
|
+
readonly revision?: ITableCellPropertiesChangeOptions;
|
|
1786
|
+
readonly includeIfEmpty?: boolean;
|
|
1787
|
+
} & ITableCellPropertiesOptionsBase;
|
|
1788
|
+
|
|
1789
|
+
declare type ITableCellPropertiesOptionsBase = {
|
|
1624
1790
|
readonly shading?: IShadingAttributesProperties;
|
|
1625
1791
|
readonly margins?: ITableCellMarginOptions;
|
|
1626
1792
|
readonly verticalAlign?: TableVerticalAlign;
|
|
@@ -1630,6 +1796,9 @@ declare type ITableCellPropertiesOptions = {
|
|
|
1630
1796
|
readonly columnSpan?: number;
|
|
1631
1797
|
readonly rowSpan?: number;
|
|
1632
1798
|
readonly borders?: ITableCellBorders;
|
|
1799
|
+
readonly insertion?: IChangedAttributesProperties;
|
|
1800
|
+
readonly deletion?: IChangedAttributesProperties;
|
|
1801
|
+
readonly cellMerge?: ICellMergeAttributes;
|
|
1633
1802
|
};
|
|
1634
1803
|
|
|
1635
1804
|
declare type ITableCellSpacingProperties = {
|
|
@@ -1651,6 +1820,20 @@ export declare type ITableFloatOptions = {
|
|
|
1651
1820
|
readonly overlap?: (typeof OverlapType)[keyof typeof OverlapType];
|
|
1652
1821
|
};
|
|
1653
1822
|
|
|
1823
|
+
declare type ITableGridChangeOptions = {
|
|
1824
|
+
readonly id: number;
|
|
1825
|
+
readonly columnWidths: readonly number[] | readonly PositiveUniversalMeasure[];
|
|
1826
|
+
};
|
|
1827
|
+
|
|
1828
|
+
export declare type ITableLookOptions = {
|
|
1829
|
+
readonly firstRow?: boolean;
|
|
1830
|
+
readonly lastRow?: boolean;
|
|
1831
|
+
readonly firstColumn?: boolean;
|
|
1832
|
+
readonly lastColumn?: boolean;
|
|
1833
|
+
readonly noHBand?: boolean;
|
|
1834
|
+
readonly noVBand?: boolean;
|
|
1835
|
+
};
|
|
1836
|
+
|
|
1654
1837
|
export declare type ITableOfContentsOptions = {
|
|
1655
1838
|
readonly captionLabel?: string;
|
|
1656
1839
|
readonly entriesFromBookmark?: string;
|
|
@@ -1674,6 +1857,7 @@ export declare type ITableOptions = {
|
|
|
1674
1857
|
readonly rows: readonly TableRow[];
|
|
1675
1858
|
readonly width?: ITableWidthProperties;
|
|
1676
1859
|
readonly columnWidths?: readonly number[];
|
|
1860
|
+
readonly columnWidthsRevision?: ITableGridChangeOptions;
|
|
1677
1861
|
readonly margins?: ITableCellMarginOptions;
|
|
1678
1862
|
readonly indent?: ITableWidthProperties;
|
|
1679
1863
|
readonly float?: ITableFloatOptions;
|
|
@@ -1682,10 +1866,19 @@ export declare type ITableOptions = {
|
|
|
1682
1866
|
readonly borders?: ITableBordersOptions;
|
|
1683
1867
|
readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
1684
1868
|
readonly visuallyRightToLeft?: boolean;
|
|
1869
|
+
readonly tableLook?: ITableLookOptions;
|
|
1685
1870
|
readonly cellSpacing?: ITableCellSpacingProperties;
|
|
1871
|
+
readonly revision?: ITablePropertiesChangeOptions;
|
|
1686
1872
|
};
|
|
1687
1873
|
|
|
1874
|
+
export declare type ITablePropertiesChangeOptions = ITablePropertiesOptions & IChangedAttributesProperties;
|
|
1875
|
+
|
|
1688
1876
|
export declare type ITablePropertiesOptions = {
|
|
1877
|
+
readonly revision?: ITablePropertiesChangeOptions;
|
|
1878
|
+
readonly includeIfEmpty?: boolean;
|
|
1879
|
+
} & ITablePropertiesOptionsBase;
|
|
1880
|
+
|
|
1881
|
+
export declare type ITablePropertiesOptionsBase = {
|
|
1689
1882
|
readonly width?: ITableWidthProperties;
|
|
1690
1883
|
readonly indent?: ITableWidthProperties;
|
|
1691
1884
|
readonly layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
|
|
@@ -1696,6 +1889,7 @@ export declare type ITablePropertiesOptions = {
|
|
|
1696
1889
|
readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
1697
1890
|
readonly cellMargin?: ITableCellMarginOptions;
|
|
1698
1891
|
readonly visuallyRightToLeft?: boolean;
|
|
1892
|
+
readonly tableLook?: ITableLookOptions;
|
|
1699
1893
|
readonly cellSpacing?: ITableCellSpacingProperties;
|
|
1700
1894
|
};
|
|
1701
1895
|
|
|
@@ -1703,7 +1897,16 @@ export declare type ITableRowOptions = {
|
|
|
1703
1897
|
readonly children: readonly TableCell[];
|
|
1704
1898
|
} & ITableRowPropertiesOptions;
|
|
1705
1899
|
|
|
1706
|
-
export declare type
|
|
1900
|
+
export declare type ITableRowPropertiesChangeOptions = ITableRowPropertiesOptionsBase & IChangedAttributesProperties;
|
|
1901
|
+
|
|
1902
|
+
export declare type ITableRowPropertiesOptions = ITableRowPropertiesOptionsBase & {
|
|
1903
|
+
readonly insertion?: IChangedAttributesProperties;
|
|
1904
|
+
readonly deletion?: IChangedAttributesProperties;
|
|
1905
|
+
readonly revision?: ITableRowPropertiesChangeOptions;
|
|
1906
|
+
readonly includeIfEmpty?: boolean;
|
|
1907
|
+
};
|
|
1908
|
+
|
|
1909
|
+
export declare type ITableRowPropertiesOptionsBase = {
|
|
1707
1910
|
readonly cantSplit?: boolean;
|
|
1708
1911
|
readonly tableHeader?: boolean;
|
|
1709
1912
|
readonly height?: {
|
|
@@ -1735,10 +1938,18 @@ export declare type IVerticalPositionOptions = {
|
|
|
1735
1938
|
};
|
|
1736
1939
|
|
|
1737
1940
|
declare type IViewWrapper = {
|
|
1738
|
-
readonly View: Document_2 | Footer_2 | Header_2 | FootNotes | XmlComponent;
|
|
1941
|
+
readonly View: Document_2 | Footer_2 | Header_2 | FootNotes | Endnotes | XmlComponent;
|
|
1739
1942
|
readonly Relationships: Relationships;
|
|
1740
1943
|
};
|
|
1741
1944
|
|
|
1945
|
+
export declare type IWpgGroupOptions = {
|
|
1946
|
+
readonly type: "wpg";
|
|
1947
|
+
} & CoreGroupOptions;
|
|
1948
|
+
|
|
1949
|
+
export declare type IWpsShapeOptions = WpsShapeCoreOptions & {
|
|
1950
|
+
readonly type: "wps";
|
|
1951
|
+
} & CoreShapeOptions;
|
|
1952
|
+
|
|
1742
1953
|
export declare interface IXmlableObject extends Record<string, unknown> {
|
|
1743
1954
|
readonly [key: string]: any;
|
|
1744
1955
|
}
|
|
@@ -2154,11 +2365,6 @@ declare type OutlineAttributes = {
|
|
|
2154
2365
|
|
|
2155
2366
|
declare type OutlineFillProperties = OutlineNoFill | OutlineSolidFill;
|
|
2156
2367
|
|
|
2157
|
-
export declare class OutlineLevel extends XmlComponent {
|
|
2158
|
-
readonly level: number;
|
|
2159
|
-
constructor(level: number);
|
|
2160
|
-
}
|
|
2161
|
-
|
|
2162
2368
|
declare type OutlineNoFill = {
|
|
2163
2369
|
readonly type: "noFill";
|
|
2164
2370
|
};
|
|
@@ -2237,10 +2443,6 @@ export declare class PageBreakBefore extends XmlComponent {
|
|
|
2237
2443
|
constructor();
|
|
2238
2444
|
}
|
|
2239
2445
|
|
|
2240
|
-
export declare class PageMargin extends XmlComponent {
|
|
2241
|
-
constructor(top: number | UniversalMeasure, right: number | PositiveUniversalMeasure, bottom: number | UniversalMeasure, left: number | PositiveUniversalMeasure, header: number | PositiveUniversalMeasure, footer: number | PositiveUniversalMeasure, gutter: number | PositiveUniversalMeasure);
|
|
2242
|
-
}
|
|
2243
|
-
|
|
2244
2446
|
export declare const PageNumber: {
|
|
2245
2447
|
readonly CURRENT: "CURRENT";
|
|
2246
2448
|
readonly TOTAL_PAGES: "TOTAL_PAGES";
|
|
@@ -2260,18 +2462,6 @@ export declare const PageNumberSeparator: {
|
|
|
2260
2462
|
readonly EN_DASH: "endash";
|
|
2261
2463
|
};
|
|
2262
2464
|
|
|
2263
|
-
export declare class PageNumberType extends XmlComponent {
|
|
2264
|
-
constructor({ start, formatType, separator }: IPageNumberTypeAttributes);
|
|
2265
|
-
}
|
|
2266
|
-
|
|
2267
|
-
export declare class PageNumberTypeAttributes extends XmlAttributeComponent<IPageNumberTypeAttributes> {
|
|
2268
|
-
protected readonly xmlKeys: {
|
|
2269
|
-
start: string;
|
|
2270
|
-
formatType: string;
|
|
2271
|
-
separator: string;
|
|
2272
|
-
};
|
|
2273
|
-
}
|
|
2274
|
-
|
|
2275
2465
|
export declare const PageOrientation: {
|
|
2276
2466
|
readonly PORTRAIT: "portrait";
|
|
2277
2467
|
readonly LANDSCAPE: "landscape";
|
|
@@ -2311,17 +2501,25 @@ export declare class ParagraphProperties extends IgnoreIfEmptyXmlComponent {
|
|
|
2311
2501
|
prepForXml(context: IContext): IXmlableObject | undefined;
|
|
2312
2502
|
}
|
|
2313
2503
|
|
|
2504
|
+
export declare class ParagraphPropertiesChange extends XmlComponent {
|
|
2505
|
+
constructor(options: IParagraphPropertiesChangeOptions);
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2314
2508
|
export declare class ParagraphPropertiesDefaults extends XmlComponent {
|
|
2315
2509
|
constructor(options?: IParagraphStylePropertiesOptions);
|
|
2316
2510
|
}
|
|
2317
2511
|
|
|
2512
|
+
export declare class ParagraphRunProperties extends RunProperties {
|
|
2513
|
+
constructor(options?: IParagraphRunPropertiesOptions);
|
|
2514
|
+
}
|
|
2515
|
+
|
|
2318
2516
|
export declare const patchDetector: ({ data }: PatchDetectorOptions) => Promise<readonly string[]>;
|
|
2319
2517
|
|
|
2320
2518
|
declare type PatchDetectorOptions = {
|
|
2321
2519
|
readonly data: InputDataType;
|
|
2322
2520
|
};
|
|
2323
2521
|
|
|
2324
|
-
export declare const patchDocument: <T extends
|
|
2522
|
+
export declare const patchDocument: <T extends PatchDocumentOutputType = PatchDocumentOutputType>({ outputType, data, patches, keepOriginalStyles, placeholderDelimiters, recursive, }: PatchDocumentOptions<T>) => Promise<OutputByType[T]>;
|
|
2325
2523
|
|
|
2326
2524
|
export declare type PatchDocumentOptions<T extends PatchDocumentOutputType = PatchDocumentOutputType> = {
|
|
2327
2525
|
readonly outputType: T;
|
|
@@ -2404,17 +2602,13 @@ declare type RegularMediaData = {
|
|
|
2404
2602
|
readonly type: "jpg" | "png" | "gif" | "bmp";
|
|
2405
2603
|
};
|
|
2406
2604
|
|
|
2407
|
-
declare class Relationship extends XmlComponent {
|
|
2408
|
-
constructor(id: string, type: RelationshipType, target: string, targetMode?: (typeof TargetModeType)[keyof typeof TargetModeType]);
|
|
2409
|
-
}
|
|
2410
|
-
|
|
2411
2605
|
declare class Relationships extends XmlComponent {
|
|
2412
2606
|
constructor();
|
|
2413
|
-
|
|
2607
|
+
addRelationship(id: number | string, type: RelationshipType, target: string, targetMode?: (typeof TargetModeType)[keyof typeof TargetModeType]): void;
|
|
2414
2608
|
get RelationshipCount(): number;
|
|
2415
2609
|
}
|
|
2416
2610
|
|
|
2417
|
-
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";
|
|
2611
|
+
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/endnotes" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/font";
|
|
2418
2612
|
|
|
2419
2613
|
export declare const RelativeHorizontalPosition: {
|
|
2420
2614
|
readonly CENTER: "center";
|
|
@@ -2435,16 +2629,16 @@ export declare const RelativeVerticalPosition: {
|
|
|
2435
2629
|
readonly TOP: "top";
|
|
2436
2630
|
};
|
|
2437
2631
|
|
|
2632
|
+
declare type RgbColorOptions = {
|
|
2633
|
+
readonly type: "rgb";
|
|
2634
|
+
readonly value: string;
|
|
2635
|
+
};
|
|
2636
|
+
|
|
2438
2637
|
export declare class Run extends XmlComponent {
|
|
2439
2638
|
protected readonly properties: RunProperties;
|
|
2440
2639
|
constructor(options: IRunOptions);
|
|
2441
2640
|
}
|
|
2442
2641
|
|
|
2443
|
-
export declare class RunFonts extends XmlComponent {
|
|
2444
|
-
constructor(name: string, hint?: string);
|
|
2445
|
-
constructor(attrs: string | IFontAttributesProperties);
|
|
2446
|
-
}
|
|
2447
|
-
|
|
2448
2642
|
export declare class RunProperties extends IgnoreIfEmptyXmlComponent {
|
|
2449
2643
|
constructor(options?: IRunPropertiesOptions);
|
|
2450
2644
|
push(item: XmlComponent): void;
|
|
@@ -2478,6 +2672,11 @@ declare const SchemeColor: {
|
|
|
2478
2672
|
readonly PHCLR: "phClr";
|
|
2479
2673
|
};
|
|
2480
2674
|
|
|
2675
|
+
declare type SchemeColorOptions = {
|
|
2676
|
+
readonly type: "scheme";
|
|
2677
|
+
readonly value: (typeof SchemeColor)[keyof typeof SchemeColor];
|
|
2678
|
+
};
|
|
2679
|
+
|
|
2481
2680
|
export declare const sectionMarginDefaults: {
|
|
2482
2681
|
TOP: number;
|
|
2483
2682
|
RIGHT: number;
|
|
@@ -2495,10 +2694,14 @@ export declare const sectionPageSizeDefaults: {
|
|
|
2495
2694
|
};
|
|
2496
2695
|
|
|
2497
2696
|
export declare class SectionProperties extends XmlComponent {
|
|
2498
|
-
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);
|
|
2697
|
+
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, revision, }?: ISectionPropertiesOptions);
|
|
2499
2698
|
private addHeaderFooterGroup;
|
|
2500
2699
|
}
|
|
2501
2700
|
|
|
2701
|
+
export declare class SectionPropertiesChange extends XmlComponent {
|
|
2702
|
+
constructor(options: ISectionPropertiesChangeOptions);
|
|
2703
|
+
}
|
|
2704
|
+
|
|
2502
2705
|
export declare const SectionType: {
|
|
2503
2706
|
readonly NEXT_PAGE: "nextPage";
|
|
2504
2707
|
readonly NEXT_COLUMN: "nextColumn";
|
|
@@ -2507,20 +2710,8 @@ export declare const SectionType: {
|
|
|
2507
2710
|
readonly ODD_PAGE: "oddPage";
|
|
2508
2711
|
};
|
|
2509
2712
|
|
|
2510
|
-
export declare class SectionTypeAttributes extends XmlAttributeComponent<{
|
|
2511
|
-
readonly val: (typeof SectionType)[keyof typeof SectionType];
|
|
2512
|
-
}> {
|
|
2513
|
-
protected readonly xmlKeys: {
|
|
2514
|
-
val: string;
|
|
2515
|
-
};
|
|
2516
|
-
}
|
|
2517
|
-
|
|
2518
2713
|
export declare type SectionVerticalAlign = (typeof VerticalAlignSection)[keyof typeof VerticalAlignSection];
|
|
2519
2714
|
|
|
2520
|
-
declare class Separate extends XmlComponent {
|
|
2521
|
-
constructor(dirty?: boolean);
|
|
2522
|
-
}
|
|
2523
|
-
|
|
2524
2715
|
export declare class Separator extends EmptyElement {
|
|
2525
2716
|
constructor();
|
|
2526
2717
|
}
|
|
@@ -2533,10 +2724,6 @@ declare class Settings extends XmlComponent {
|
|
|
2533
2724
|
constructor(options: ISettingsOptions);
|
|
2534
2725
|
}
|
|
2535
2726
|
|
|
2536
|
-
export declare class Shading extends XmlComponent {
|
|
2537
|
-
constructor({ fill, color, type }: IShadingAttributesProperties);
|
|
2538
|
-
}
|
|
2539
|
-
|
|
2540
2727
|
export declare const ShadingType: {
|
|
2541
2728
|
readonly CLEAR: "clear";
|
|
2542
2729
|
readonly DIAGONAL_CROSS: "diagCross";
|
|
@@ -2595,14 +2782,14 @@ export declare class SoftHyphen extends EmptyElement {
|
|
|
2595
2782
|
constructor();
|
|
2596
2783
|
}
|
|
2597
2784
|
|
|
2785
|
+
declare type SolidFillOptions = RgbColorOptions | SchemeColorOptions;
|
|
2786
|
+
|
|
2598
2787
|
export declare const SpaceType: {
|
|
2599
2788
|
readonly DEFAULT: "default";
|
|
2600
2789
|
readonly PRESERVE: "preserve";
|
|
2601
2790
|
};
|
|
2602
2791
|
|
|
2603
|
-
export declare
|
|
2604
|
-
constructor(options: ISpacingProperties);
|
|
2605
|
-
}
|
|
2792
|
+
export declare const standardizeData: (data: string | Buffer | Uint8Array | ArrayBuffer) => Buffer | Uint8Array | ArrayBuffer;
|
|
2606
2793
|
|
|
2607
2794
|
export declare class StringContainer extends XmlComponent {
|
|
2608
2795
|
constructor(name: string, val: string);
|
|
@@ -2616,20 +2803,16 @@ export declare class StringValueElement extends XmlComponent {
|
|
|
2616
2803
|
constructor(name: string, val: string);
|
|
2617
2804
|
}
|
|
2618
2805
|
|
|
2619
|
-
|
|
2620
|
-
constructor(styleId: string);
|
|
2621
|
-
}
|
|
2622
|
-
|
|
2623
|
-
declare class Style_2 extends XmlComponent {
|
|
2806
|
+
declare class Style extends XmlComponent {
|
|
2624
2807
|
constructor(attributes: IStyleAttributes, options: IStyleOptions);
|
|
2625
2808
|
}
|
|
2626
2809
|
|
|
2627
|
-
export declare class StyleForCharacter extends
|
|
2810
|
+
export declare class StyleForCharacter extends Style {
|
|
2628
2811
|
private readonly runProperties;
|
|
2629
2812
|
constructor(options: ICharacterStyleOptions);
|
|
2630
2813
|
}
|
|
2631
2814
|
|
|
2632
|
-
export declare class StyleForParagraph extends
|
|
2815
|
+
export declare class StyleForParagraph extends Style {
|
|
2633
2816
|
private readonly paragraphProperties;
|
|
2634
2817
|
private readonly runProperties;
|
|
2635
2818
|
constructor(options: IParagraphStyleOptions);
|
|
@@ -2664,20 +2847,8 @@ export declare class Tab extends EmptyElement {
|
|
|
2664
2847
|
constructor();
|
|
2665
2848
|
}
|
|
2666
2849
|
|
|
2667
|
-
export declare class TabAttributes extends XmlAttributeComponent<{
|
|
2668
|
-
readonly val: (typeof TabStopType)[keyof typeof TabStopType];
|
|
2669
|
-
readonly pos: string | number;
|
|
2670
|
-
readonly leader?: (typeof LeaderType)[keyof typeof LeaderType];
|
|
2671
|
-
}> {
|
|
2672
|
-
protected readonly xmlKeys: {
|
|
2673
|
-
val: string;
|
|
2674
|
-
pos: string;
|
|
2675
|
-
leader: string;
|
|
2676
|
-
};
|
|
2677
|
-
}
|
|
2678
|
-
|
|
2679
2850
|
export declare class Table extends FileChild {
|
|
2680
|
-
constructor({ rows, width, columnWidths, margins, indent, float, layout, style, borders, alignment, visuallyRightToLeft, cellSpacing, }: ITableOptions);
|
|
2851
|
+
constructor({ rows, width, columnWidths, columnWidthsRevision, margins, indent, float, layout, style, borders, alignment, visuallyRightToLeft, tableLook, cellSpacing, revision, }: ITableOptions);
|
|
2681
2852
|
}
|
|
2682
2853
|
|
|
2683
2854
|
export declare const TableAnchorType: {
|
|
@@ -2687,38 +2858,7 @@ export declare const TableAnchorType: {
|
|
|
2687
2858
|
};
|
|
2688
2859
|
|
|
2689
2860
|
export declare class TableBorders extends XmlComponent {
|
|
2690
|
-
static readonly NONE:
|
|
2691
|
-
top: {
|
|
2692
|
-
style: "none";
|
|
2693
|
-
size: number;
|
|
2694
|
-
color: string;
|
|
2695
|
-
};
|
|
2696
|
-
bottom: {
|
|
2697
|
-
style: "none";
|
|
2698
|
-
size: number;
|
|
2699
|
-
color: string;
|
|
2700
|
-
};
|
|
2701
|
-
left: {
|
|
2702
|
-
style: "none";
|
|
2703
|
-
size: number;
|
|
2704
|
-
color: string;
|
|
2705
|
-
};
|
|
2706
|
-
right: {
|
|
2707
|
-
style: "none";
|
|
2708
|
-
size: number;
|
|
2709
|
-
color: string;
|
|
2710
|
-
};
|
|
2711
|
-
insideHorizontal: {
|
|
2712
|
-
style: "none";
|
|
2713
|
-
size: number;
|
|
2714
|
-
color: string;
|
|
2715
|
-
};
|
|
2716
|
-
insideVertical: {
|
|
2717
|
-
style: "none";
|
|
2718
|
-
size: number;
|
|
2719
|
-
color: string;
|
|
2720
|
-
};
|
|
2721
|
-
};
|
|
2861
|
+
static readonly NONE: ITableBordersOptions;
|
|
2722
2862
|
constructor(options: ITableBordersOptions);
|
|
2723
2863
|
}
|
|
2724
2864
|
|
|
@@ -2732,21 +2872,20 @@ export declare class TableCellBorders extends IgnoreIfEmptyXmlComponent {
|
|
|
2732
2872
|
constructor(options: ITableCellBorders);
|
|
2733
2873
|
}
|
|
2734
2874
|
|
|
2735
|
-
export declare class TableFloatProperties extends XmlComponent {
|
|
2736
|
-
constructor({ horizontalAnchor, verticalAnchor, absoluteHorizontalPosition, relativeHorizontalPosition, absoluteVerticalPosition, relativeVerticalPosition, bottomFromText, topFromText, leftFromText, rightFromText, overlap, }: ITableFloatOptions);
|
|
2737
|
-
}
|
|
2738
|
-
|
|
2739
|
-
export declare class TableLayout extends XmlComponent {
|
|
2740
|
-
constructor(type: (typeof TableLayoutType)[keyof typeof TableLayoutType]);
|
|
2741
|
-
}
|
|
2742
|
-
|
|
2743
2875
|
export declare const TableLayoutType: {
|
|
2744
2876
|
readonly AUTOFIT: "autofit";
|
|
2745
2877
|
readonly FIXED: "fixed";
|
|
2746
2878
|
};
|
|
2747
2879
|
|
|
2748
2880
|
export declare class TableOfContents extends FileChild {
|
|
2749
|
-
constructor(alias?: string, properties?: ITableOfContentsOptions
|
|
2881
|
+
constructor(alias?: string, { contentChildren, cachedEntries, beginDirty, ...properties }?: ITableOfContentsOptions & {
|
|
2882
|
+
readonly contentChildren?: readonly (XmlComponent | string)[];
|
|
2883
|
+
readonly cachedEntries?: readonly ToCEntry[];
|
|
2884
|
+
readonly beginDirty?: boolean;
|
|
2885
|
+
});
|
|
2886
|
+
private getTabStopsForLevel;
|
|
2887
|
+
private buildCachedContentRun;
|
|
2888
|
+
private buildCachedContentParagraphChild;
|
|
2750
2889
|
}
|
|
2751
2890
|
|
|
2752
2891
|
export declare class TableProperties extends IgnoreIfEmptyXmlComponent {
|
|
@@ -2764,33 +2903,15 @@ export declare class TableRow extends XmlComponent {
|
|
|
2764
2903
|
columnIndexToRootIndex(columnIndex: number, allowEndNewCell?: boolean): number;
|
|
2765
2904
|
}
|
|
2766
2905
|
|
|
2767
|
-
export declare class TableRowHeight extends XmlComponent {
|
|
2768
|
-
constructor(value: number | PositiveUniversalMeasure, rule: (typeof HeightRule)[keyof typeof HeightRule]);
|
|
2769
|
-
}
|
|
2770
|
-
|
|
2771
|
-
export declare class TableRowHeightAttributes extends XmlAttributeComponent<{
|
|
2772
|
-
readonly value: number | string;
|
|
2773
|
-
readonly rule: (typeof HeightRule)[keyof typeof HeightRule];
|
|
2774
|
-
}> {
|
|
2775
|
-
protected readonly xmlKeys: {
|
|
2776
|
-
value: string;
|
|
2777
|
-
rule: string;
|
|
2778
|
-
};
|
|
2779
|
-
}
|
|
2780
|
-
|
|
2781
2906
|
export declare class TableRowProperties extends IgnoreIfEmptyXmlComponent {
|
|
2782
2907
|
constructor(options: ITableRowPropertiesOptions);
|
|
2783
2908
|
}
|
|
2784
2909
|
|
|
2785
|
-
export declare
|
|
2786
|
-
|
|
2787
|
-
export declare class TableWidthElement extends XmlComponent {
|
|
2788
|
-
constructor(name: string, { type, size }: ITableWidthProperties);
|
|
2910
|
+
export declare class TableRowPropertiesChange extends XmlComponent {
|
|
2911
|
+
constructor(options: ITableRowPropertiesChangeOptions);
|
|
2789
2912
|
}
|
|
2790
2913
|
|
|
2791
|
-
export declare
|
|
2792
|
-
constructor(tabDefinitions: readonly TabStopDefinition[]);
|
|
2793
|
-
}
|
|
2914
|
+
export declare type TableVerticalAlign = (typeof VerticalAlignTable)[keyof typeof VerticalAlignTable];
|
|
2794
2915
|
|
|
2795
2916
|
export declare type TabStopDefinition = {
|
|
2796
2917
|
readonly type: (typeof TabStopType)[keyof typeof TabStopType];
|
|
@@ -2798,10 +2919,6 @@ export declare type TabStopDefinition = {
|
|
|
2798
2919
|
readonly leader?: (typeof LeaderType)[keyof typeof LeaderType];
|
|
2799
2920
|
};
|
|
2800
2921
|
|
|
2801
|
-
export declare class TabStopItem extends XmlComponent {
|
|
2802
|
-
constructor({ type, position, leader }: TabStopDefinition);
|
|
2803
|
-
}
|
|
2804
|
-
|
|
2805
2922
|
export declare const TabStopPosition: {
|
|
2806
2923
|
readonly MAX: 9026;
|
|
2807
2924
|
};
|
|
@@ -2868,18 +2985,17 @@ export declare class ThematicBreak extends XmlComponent {
|
|
|
2868
2985
|
constructor();
|
|
2869
2986
|
}
|
|
2870
2987
|
|
|
2871
|
-
|
|
2988
|
+
declare type ToCEntry = {
|
|
2989
|
+
readonly title: string;
|
|
2990
|
+
readonly level: number;
|
|
2991
|
+
readonly page?: number;
|
|
2992
|
+
readonly href?: string;
|
|
2993
|
+
};
|
|
2872
2994
|
|
|
2873
|
-
export declare
|
|
2874
|
-
constructor(value: (typeof SectionType)[keyof typeof SectionType]);
|
|
2875
|
-
}
|
|
2995
|
+
export declare const twipsMeasureValue: (val: PositiveUniversalMeasure | number) => PositiveUniversalMeasure | number;
|
|
2876
2996
|
|
|
2877
2997
|
export declare const uCharHexNumber: (val: string) => string;
|
|
2878
2998
|
|
|
2879
|
-
export declare class Underline extends XmlComponent {
|
|
2880
|
-
constructor(underlineType?: (typeof UnderlineType)[keyof typeof UnderlineType], color?: string);
|
|
2881
|
-
}
|
|
2882
|
-
|
|
2883
2999
|
export declare const UnderlineType: {
|
|
2884
3000
|
readonly SINGLE: "single";
|
|
2885
3001
|
readonly WORDS: "words";
|
|
@@ -2922,18 +3038,6 @@ export declare const VerticalAlign: {
|
|
|
2922
3038
|
readonly BOTTOM: "bottom";
|
|
2923
3039
|
};
|
|
2924
3040
|
|
|
2925
|
-
export declare class VerticalAlignAttributes extends XmlAttributeComponent<{
|
|
2926
|
-
readonly verticalAlign?: (typeof VerticalAlign)[keyof typeof VerticalAlign];
|
|
2927
|
-
}> {
|
|
2928
|
-
protected readonly xmlKeys: {
|
|
2929
|
-
verticalAlign: string;
|
|
2930
|
-
};
|
|
2931
|
-
}
|
|
2932
|
-
|
|
2933
|
-
export declare class VerticalAlignElement extends XmlComponent {
|
|
2934
|
-
constructor(value: (typeof VerticalAlign)[keyof typeof VerticalAlign]);
|
|
2935
|
-
}
|
|
2936
|
-
|
|
2937
3041
|
export declare const VerticalAlignSection: {
|
|
2938
3042
|
readonly BOTH: "both";
|
|
2939
3043
|
readonly TOP: "top";
|
|
@@ -2947,10 +3051,21 @@ export declare const VerticalAlignTable: {
|
|
|
2947
3051
|
readonly BOTTOM: "bottom";
|
|
2948
3052
|
};
|
|
2949
3053
|
|
|
3054
|
+
export declare enum VerticalAnchor {
|
|
3055
|
+
CENTER = "ctr",
|
|
3056
|
+
TOP = "t",
|
|
3057
|
+
BOTTOM = "b"
|
|
3058
|
+
}
|
|
3059
|
+
|
|
2950
3060
|
export declare class VerticalMerge extends XmlComponent {
|
|
2951
3061
|
constructor(value: (typeof VerticalMergeType)[keyof typeof VerticalMergeType]);
|
|
2952
3062
|
}
|
|
2953
3063
|
|
|
3064
|
+
export declare const VerticalMergeRevisionType: {
|
|
3065
|
+
readonly CONTINUE: "cont";
|
|
3066
|
+
readonly RESTART: "rest";
|
|
3067
|
+
};
|
|
3068
|
+
|
|
2954
3069
|
export declare const VerticalMergeType: {
|
|
2955
3070
|
readonly CONTINUE: "continue";
|
|
2956
3071
|
readonly RESTART: "restart";
|
|
@@ -3014,20 +3129,39 @@ export declare const WORKAROUND3 = "";
|
|
|
3014
3129
|
|
|
3015
3130
|
export declare const WORKAROUND4 = "";
|
|
3016
3131
|
|
|
3017
|
-
export declare
|
|
3018
|
-
|
|
3019
|
-
|
|
3132
|
+
export declare type WpgCommonMediaData = {
|
|
3133
|
+
readonly outline?: OutlineOptions;
|
|
3134
|
+
readonly solidFill?: SolidFillOptions;
|
|
3135
|
+
};
|
|
3020
3136
|
|
|
3021
|
-
export declare class
|
|
3022
|
-
|
|
3137
|
+
export declare class WpgGroupRun extends Run {
|
|
3138
|
+
private readonly wpgGroupData;
|
|
3139
|
+
private readonly mediaDatas;
|
|
3140
|
+
constructor(options: IWpgGroupOptions);
|
|
3141
|
+
prepForXml(context: IContext): IXmlableObject | undefined;
|
|
3023
3142
|
}
|
|
3024
3143
|
|
|
3025
|
-
export declare
|
|
3026
|
-
|
|
3027
|
-
|
|
3144
|
+
export declare type WpgMediaData = {
|
|
3145
|
+
readonly type: "wpg";
|
|
3146
|
+
readonly transformation: IMediaDataTransformation;
|
|
3147
|
+
readonly children: readonly IGroupChildMediaData[];
|
|
3148
|
+
};
|
|
3149
|
+
|
|
3150
|
+
export declare type WpsMediaData = {
|
|
3151
|
+
readonly type: "wps";
|
|
3152
|
+
readonly transformation: IMediaDataTransformation;
|
|
3153
|
+
readonly data: WpsShapeCoreOptions;
|
|
3154
|
+
};
|
|
3155
|
+
|
|
3156
|
+
declare type WpsShapeCoreOptions = {
|
|
3157
|
+
readonly children: readonly Paragraph[];
|
|
3158
|
+
readonly nonVisualProperties?: INonVisualShapePropertiesOptions;
|
|
3159
|
+
readonly bodyProperties?: IBodyPropertiesOptions;
|
|
3160
|
+
};
|
|
3028
3161
|
|
|
3029
|
-
export declare class
|
|
3030
|
-
|
|
3162
|
+
export declare class WpsShapeRun extends Run {
|
|
3163
|
+
private readonly wpsShapeData;
|
|
3164
|
+
constructor(options: IWpsShapeOptions);
|
|
3031
3165
|
}
|
|
3032
3166
|
|
|
3033
3167
|
export declare abstract class XmlAttributeComponent<T extends Record<string, any>> extends BaseXmlComponent {
|