@office-open/docx 0.9.0 → 0.9.2
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 +8 -8
- package/dist/{context-Ca7nmKV2.mjs → context-CERMOUn0.mjs} +2231 -1714
- package/dist/context-CERMOUn0.mjs.map +1 -0
- package/dist/{core-properties-B3ztqzLD.d.mts → core-properties-Bh8_D5Kh.d.mts} +906 -871
- package/dist/core-properties-Bh8_D5Kh.d.mts.map +1 -0
- package/dist/{document-CWr8C_OX.mjs → document-CeM-U6J3.mjs} +68 -8
- package/dist/document-CeM-U6J3.mjs.map +1 -0
- package/dist/{generate-m1Cw7CHL.mjs → generate-DiDgl0bc.mjs} +3 -3
- package/dist/{generate-m1Cw7CHL.mjs.map → generate-DiDgl0bc.mjs.map} +1 -1
- package/dist/generate.d.mts +1 -1
- package/dist/generate.mjs +1 -1
- package/dist/index.d.mts +6 -37
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/dist/{parse-D9ujyKBr.mjs → parse-BIJM6_8Y.mjs} +42 -61
- package/dist/parse-BIJM6_8Y.mjs.map +1 -0
- package/dist/parse.d.mts +1 -1
- package/dist/parse.mjs +1 -1
- package/dist/patch/index.d.mts +4 -4
- package/dist/patch/index.d.mts.map +1 -1
- package/dist/patch/index.mjs +2 -2
- package/dist/patch/index.mjs.map +1 -1
- package/package.json +3 -3
- package/dist/context-Ca7nmKV2.mjs.map +0 -1
- package/dist/core-properties-B3ztqzLD.d.mts.map +0 -1
- package/dist/document-CWr8C_OX.mjs.map +0 -1
- package/dist/parse-D9ujyKBr.mjs.map +0 -1
|
@@ -31,6 +31,37 @@ interface BibliographyOptions {
|
|
|
31
31
|
}
|
|
32
32
|
declare const bibliographyDesc: CustomDescriptor<BibliographyOptions>;
|
|
33
33
|
//#endregion
|
|
34
|
+
//#region src/parts/contenttypes.d.ts
|
|
35
|
+
interface ContentTypeDefault {
|
|
36
|
+
extension: string;
|
|
37
|
+
contentType: string;
|
|
38
|
+
}
|
|
39
|
+
interface ContentTypeOverride {
|
|
40
|
+
partName: string;
|
|
41
|
+
contentType: string;
|
|
42
|
+
}
|
|
43
|
+
interface ContentTypesInput {
|
|
44
|
+
defaults: ContentTypeDefault[];
|
|
45
|
+
overrides: ContentTypeOverride[];
|
|
46
|
+
}
|
|
47
|
+
declare const contentTypesDesc: CustomDescriptor<ContentTypesInput>;
|
|
48
|
+
declare function buildContentTypes(extras?: {
|
|
49
|
+
headerCount?: number;
|
|
50
|
+
footerCount?: number;
|
|
51
|
+
chartCount?: number;
|
|
52
|
+
smartArtCount?: number;
|
|
53
|
+
hasBibliography?: boolean;
|
|
54
|
+
hasGlossary?: boolean;
|
|
55
|
+
hasWebSettings?: boolean;
|
|
56
|
+
altChunks?: {
|
|
57
|
+
path: string;
|
|
58
|
+
contentType: string;
|
|
59
|
+
}[];
|
|
60
|
+
subDocs?: {
|
|
61
|
+
path: string;
|
|
62
|
+
}[];
|
|
63
|
+
}): ContentTypesInput;
|
|
64
|
+
//#endregion
|
|
34
65
|
//#region src/parts/fonts/font.d.ts
|
|
35
66
|
declare const CharacterSet: {
|
|
36
67
|
readonly ANSI: "00";
|
|
@@ -141,7 +172,7 @@ declare const VerticalMergeRevisionType: {
|
|
|
141
172
|
readonly CONTINUE: "continue";
|
|
142
173
|
readonly RESTART: "restart";
|
|
143
174
|
};
|
|
144
|
-
type
|
|
175
|
+
type CellMergeAttributes = ChangedAttributesProperties & {
|
|
145
176
|
verticalMerge?: (typeof VerticalMergeRevisionType)[keyof typeof VerticalMergeRevisionType];
|
|
146
177
|
verticalMergeOriginal?: (typeof VerticalMergeRevisionType)[keyof typeof VerticalMergeRevisionType];
|
|
147
178
|
};
|
|
@@ -328,18 +359,140 @@ declare const TabStopPosition: {
|
|
|
328
359
|
readonly MAX: 9026;
|
|
329
360
|
};
|
|
330
361
|
//#endregion
|
|
331
|
-
//#region src/parts/
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
hyperlink?: HyperlinkOptions;
|
|
362
|
+
//#region src/parts/paragraph/math.d.ts
|
|
363
|
+
type MathScriptType = "roman" | "script" | "fraktur" | "double-struck" | "sans-serif" | "monospace";
|
|
364
|
+
type MathStyleType = "p" | "b" | "i" | "bi";
|
|
365
|
+
interface MathRunPropertiesOptions {
|
|
366
|
+
lit?: boolean;
|
|
367
|
+
normal?: boolean;
|
|
368
|
+
script?: MathScriptType;
|
|
369
|
+
style?: MathStyleType;
|
|
370
|
+
breakAlignment?: number;
|
|
371
|
+
align?: boolean;
|
|
342
372
|
}
|
|
373
|
+
type MathInput = string | {
|
|
374
|
+
text: string;
|
|
375
|
+
properties?: MathRunPropertiesOptions;
|
|
376
|
+
} | {
|
|
377
|
+
fraction: {
|
|
378
|
+
numerator: MathInput[];
|
|
379
|
+
denominator: MathInput[];
|
|
380
|
+
fractionType?: string;
|
|
381
|
+
};
|
|
382
|
+
} | {
|
|
383
|
+
superScript: {
|
|
384
|
+
children: MathInput[];
|
|
385
|
+
superScript: MathInput[];
|
|
386
|
+
};
|
|
387
|
+
} | {
|
|
388
|
+
subScript: {
|
|
389
|
+
children: MathInput[];
|
|
390
|
+
subScript: MathInput[];
|
|
391
|
+
};
|
|
392
|
+
} | {
|
|
393
|
+
subSuperScript: {
|
|
394
|
+
children: MathInput[];
|
|
395
|
+
subScript: MathInput[];
|
|
396
|
+
superScript: MathInput[];
|
|
397
|
+
};
|
|
398
|
+
} | {
|
|
399
|
+
preSubSuperScript: {
|
|
400
|
+
children: MathInput[];
|
|
401
|
+
subScript: MathInput[];
|
|
402
|
+
superScript: MathInput[];
|
|
403
|
+
};
|
|
404
|
+
} | {
|
|
405
|
+
radical: {
|
|
406
|
+
children: MathInput[];
|
|
407
|
+
degree?: MathInput[];
|
|
408
|
+
};
|
|
409
|
+
} | {
|
|
410
|
+
sum: {
|
|
411
|
+
children: MathInput[];
|
|
412
|
+
subScript?: MathInput[];
|
|
413
|
+
superScript?: MathInput[];
|
|
414
|
+
};
|
|
415
|
+
} | {
|
|
416
|
+
integral: {
|
|
417
|
+
children: MathInput[];
|
|
418
|
+
subScript?: MathInput[];
|
|
419
|
+
superScript?: MathInput[];
|
|
420
|
+
};
|
|
421
|
+
} | {
|
|
422
|
+
limitLower: {
|
|
423
|
+
children: MathInput[];
|
|
424
|
+
limit: MathInput[];
|
|
425
|
+
properties?: Record<string, unknown>;
|
|
426
|
+
};
|
|
427
|
+
} | {
|
|
428
|
+
limitUpper: {
|
|
429
|
+
children: MathInput[];
|
|
430
|
+
limit: MathInput[];
|
|
431
|
+
properties?: Record<string, unknown>;
|
|
432
|
+
};
|
|
433
|
+
} | {
|
|
434
|
+
function: {
|
|
435
|
+
children: MathInput[];
|
|
436
|
+
name: MathInput[];
|
|
437
|
+
properties?: Record<string, unknown>;
|
|
438
|
+
};
|
|
439
|
+
} | {
|
|
440
|
+
matrix: {
|
|
441
|
+
rows: MathInput[][];
|
|
442
|
+
properties?: Record<string, unknown>;
|
|
443
|
+
};
|
|
444
|
+
} | {
|
|
445
|
+
roundBrackets: MathInput[] | {
|
|
446
|
+
children: MathInput[];
|
|
447
|
+
};
|
|
448
|
+
} | {
|
|
449
|
+
curlyBrackets: MathInput[] | {
|
|
450
|
+
children: MathInput[];
|
|
451
|
+
};
|
|
452
|
+
} | {
|
|
453
|
+
angledBrackets: MathInput[] | {
|
|
454
|
+
children: MathInput[];
|
|
455
|
+
};
|
|
456
|
+
} | {
|
|
457
|
+
squareBrackets: MathInput[] | {
|
|
458
|
+
children: MathInput[];
|
|
459
|
+
};
|
|
460
|
+
} | {
|
|
461
|
+
borderBox: {
|
|
462
|
+
children: MathInput[];
|
|
463
|
+
properties?: Record<string, unknown>;
|
|
464
|
+
};
|
|
465
|
+
} | {
|
|
466
|
+
box: {
|
|
467
|
+
children: MathInput[];
|
|
468
|
+
properties?: Record<string, unknown>;
|
|
469
|
+
};
|
|
470
|
+
} | {
|
|
471
|
+
groupChr: {
|
|
472
|
+
children: MathInput[];
|
|
473
|
+
properties?: Record<string, unknown>;
|
|
474
|
+
};
|
|
475
|
+
} | {
|
|
476
|
+
phant: {
|
|
477
|
+
children: MathInput[];
|
|
478
|
+
properties?: Record<string, unknown>;
|
|
479
|
+
};
|
|
480
|
+
} | {
|
|
481
|
+
eqArr: {
|
|
482
|
+
rows: MathInput[][];
|
|
483
|
+
properties?: Record<string, unknown>;
|
|
484
|
+
};
|
|
485
|
+
} | {
|
|
486
|
+
accent: {
|
|
487
|
+
children: MathInput[];
|
|
488
|
+
accentCharacter?: string;
|
|
489
|
+
};
|
|
490
|
+
} | {
|
|
491
|
+
bar: {
|
|
492
|
+
children: MathInput[];
|
|
493
|
+
type: "top" | "bot";
|
|
494
|
+
};
|
|
495
|
+
};
|
|
343
496
|
//#endregion
|
|
344
497
|
//#region src/shared/constants.d.ts
|
|
345
498
|
declare const HorizontalPositionAlign: {
|
|
@@ -425,875 +578,736 @@ declare const SpaceType: {
|
|
|
425
578
|
readonly PRESERVE: "preserve";
|
|
426
579
|
};
|
|
427
580
|
//#endregion
|
|
428
|
-
//#region src/parts/
|
|
429
|
-
declare const
|
|
430
|
-
readonly NONE:
|
|
431
|
-
readonly
|
|
432
|
-
readonly TIGHT: 2;
|
|
433
|
-
readonly TOP_AND_BOTTOM: 3;
|
|
434
|
-
readonly THROUGH: 4;
|
|
435
|
-
};
|
|
436
|
-
declare const TextWrappingSide: {
|
|
437
|
-
readonly BOTH_SIDES: "bothSides";
|
|
438
|
-
readonly LEFT: "left";
|
|
439
|
-
readonly RIGHT: "right";
|
|
440
|
-
readonly LARGEST: "largest";
|
|
441
|
-
};
|
|
442
|
-
interface TextWrapping {
|
|
443
|
-
type: (typeof TextWrappingType)[keyof typeof TextWrappingType];
|
|
444
|
-
side?: (typeof TextWrappingSide)[keyof typeof TextWrappingSide];
|
|
445
|
-
margins?: Distance;
|
|
446
|
-
}
|
|
447
|
-
//#endregion
|
|
448
|
-
//#region src/parts/drawing/text-wrap/wrap-tight.d.ts
|
|
449
|
-
declare const createWrapTight: (textWrapping: TextWrapping, margins: Margins | undefined, extent: {
|
|
450
|
-
x: number;
|
|
451
|
-
y: number;
|
|
452
|
-
}) => string;
|
|
453
|
-
//#endregion
|
|
454
|
-
//#region src/parts/drawing/text-wrap/wrap-through.d.ts
|
|
455
|
-
declare const createWrapThrough: (textWrapping: TextWrapping, margins: Margins | undefined, extent: {
|
|
456
|
-
x: number;
|
|
457
|
-
y: number;
|
|
458
|
-
}) => string;
|
|
459
|
-
//#endregion
|
|
460
|
-
//#region src/parts/drawing/floating/floating-position.d.ts
|
|
461
|
-
declare const HorizontalPositionRelativeFrom: {
|
|
462
|
-
readonly CHARACTER: "character";
|
|
463
|
-
readonly COLUMN: "column";
|
|
464
|
-
readonly INSIDE_MARGIN: "insideMargin";
|
|
465
|
-
readonly LEFT_MARGIN: "leftMargin";
|
|
581
|
+
//#region src/parts/paragraph/frame/frame-properties.d.ts
|
|
582
|
+
declare const DropCapType: {
|
|
583
|
+
readonly NONE: "none";
|
|
584
|
+
readonly DROP: "drop";
|
|
466
585
|
readonly MARGIN: "margin";
|
|
467
|
-
readonly OUTSIDE_MARGIN: "outsideMargin";
|
|
468
|
-
readonly PAGE: "page";
|
|
469
|
-
readonly RIGHT_MARGIN: "rightMargin";
|
|
470
586
|
};
|
|
471
|
-
declare const
|
|
472
|
-
readonly BOTTOM_MARGIN: "bottomMargin";
|
|
473
|
-
readonly INSIDE_MARGIN: "insideMargin";
|
|
474
|
-
readonly LINE: "line";
|
|
587
|
+
declare const FrameAnchorType: {
|
|
475
588
|
readonly MARGIN: "margin";
|
|
476
|
-
readonly OUTSIDE_MARGIN: "outsideMargin";
|
|
477
589
|
readonly PAGE: "page";
|
|
478
|
-
readonly
|
|
479
|
-
readonly TOP_MARGIN: "topMargin";
|
|
590
|
+
readonly TEXT: "text";
|
|
480
591
|
};
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
592
|
+
declare const FrameWrap: {
|
|
593
|
+
readonly AROUND: "around";
|
|
594
|
+
readonly AUTO: "auto";
|
|
595
|
+
readonly NONE: "none";
|
|
596
|
+
readonly NOT_BESIDE: "notBeside";
|
|
597
|
+
readonly THROUGH: "through";
|
|
598
|
+
readonly TIGHT: "tight";
|
|
599
|
+
};
|
|
600
|
+
interface BaseFrameOptions {
|
|
601
|
+
anchorLock?: boolean;
|
|
602
|
+
dropCap?: (typeof DropCapType)[keyof typeof DropCapType];
|
|
603
|
+
width: number;
|
|
604
|
+
height: number;
|
|
605
|
+
wrap?: (typeof FrameWrap)[keyof typeof FrameWrap];
|
|
606
|
+
lines?: number;
|
|
607
|
+
anchor: {
|
|
608
|
+
horizontal: (typeof FrameAnchorType)[keyof typeof FrameAnchorType];
|
|
609
|
+
vertical: (typeof FrameAnchorType)[keyof typeof FrameAnchorType];
|
|
610
|
+
};
|
|
611
|
+
space?: {
|
|
612
|
+
horizontal: number;
|
|
613
|
+
vertical: number;
|
|
614
|
+
};
|
|
615
|
+
rule?: (typeof HeightRule)[keyof typeof HeightRule];
|
|
485
616
|
}
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
617
|
+
type XYFrameOptions = {
|
|
618
|
+
type: "absolute";
|
|
619
|
+
position: {
|
|
620
|
+
x: number;
|
|
621
|
+
y: number;
|
|
622
|
+
};
|
|
623
|
+
} & BaseFrameOptions;
|
|
624
|
+
type AlignmentFrameOptions = {
|
|
625
|
+
type: "alignment";
|
|
626
|
+
alignment: {
|
|
627
|
+
x: (typeof HorizontalPositionAlign)[keyof typeof HorizontalPositionAlign];
|
|
628
|
+
y: (typeof VerticalPositionAlign)[keyof typeof VerticalPositionAlign];
|
|
629
|
+
};
|
|
630
|
+
} & BaseFrameOptions;
|
|
631
|
+
type FrameOptions$1 = XYFrameOptions | AlignmentFrameOptions;
|
|
632
|
+
//#endregion
|
|
633
|
+
//#region src/parts/paragraph/run/empty-children.d.ts
|
|
634
|
+
interface NoBreakHyphen {
|
|
635
|
+
noBreakHyphen: true;
|
|
490
636
|
}
|
|
491
|
-
interface
|
|
492
|
-
|
|
493
|
-
bottom?: number | UniversalMeasure;
|
|
494
|
-
top?: number | UniversalMeasure;
|
|
495
|
-
right?: number | UniversalMeasure;
|
|
637
|
+
interface SoftHyphen {
|
|
638
|
+
softHyphen: true;
|
|
496
639
|
}
|
|
497
|
-
interface
|
|
498
|
-
|
|
499
|
-
verticalPosition: VerticalPositionOptions;
|
|
500
|
-
allowOverlap?: boolean;
|
|
501
|
-
lockAnchor?: boolean;
|
|
502
|
-
behindDocument?: boolean;
|
|
503
|
-
layoutInCell?: boolean;
|
|
504
|
-
margins?: Margins;
|
|
505
|
-
wrap?: TextWrapping;
|
|
506
|
-
zIndex?: number;
|
|
640
|
+
interface DayShort {
|
|
641
|
+
dayShort: true;
|
|
507
642
|
}
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
declare const createHorizontalPosition: ({
|
|
511
|
-
relative,
|
|
512
|
-
align,
|
|
513
|
-
offset
|
|
514
|
-
}: HorizontalPositionOptions) => string;
|
|
515
|
-
//#endregion
|
|
516
|
-
//#region src/parts/drawing/floating/vertical-position.d.ts
|
|
517
|
-
declare const createVerticalPosition: ({
|
|
518
|
-
relative,
|
|
519
|
-
align,
|
|
520
|
-
offset
|
|
521
|
-
}: VerticalPositionOptions) => string;
|
|
522
|
-
//#endregion
|
|
523
|
-
//#region src/parts/drawing/drawing.d.ts
|
|
524
|
-
interface Distance {
|
|
525
|
-
distT?: number;
|
|
526
|
-
distB?: number;
|
|
527
|
-
distL?: number;
|
|
528
|
-
distR?: number;
|
|
643
|
+
interface MonthShort {
|
|
644
|
+
monthShort: true;
|
|
529
645
|
}
|
|
530
|
-
interface
|
|
531
|
-
|
|
532
|
-
docProperties?: DocPropertiesOptions;
|
|
533
|
-
outline?: OutlineOptions;
|
|
534
|
-
fill?: FillOptions;
|
|
535
|
-
effects?: EffectListOptions;
|
|
536
|
-
blipEffects?: BlipEffectsOptions;
|
|
537
|
-
tile?: TileOptions;
|
|
646
|
+
interface YearShort {
|
|
647
|
+
yearShort: true;
|
|
538
648
|
}
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
type GroupChild = unknown;
|
|
542
|
-
interface ChildOffset {
|
|
543
|
-
x: number;
|
|
544
|
-
y: number;
|
|
649
|
+
interface DayLong {
|
|
650
|
+
dayLong: true;
|
|
545
651
|
}
|
|
546
|
-
interface
|
|
547
|
-
|
|
548
|
-
cy: number;
|
|
652
|
+
interface MonthLong {
|
|
653
|
+
monthLong: true;
|
|
549
654
|
}
|
|
550
|
-
interface
|
|
551
|
-
|
|
655
|
+
interface YearLong {
|
|
656
|
+
yearLong: true;
|
|
552
657
|
}
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
chOff?: ChildOffset;
|
|
556
|
-
chExt?: ChildExtent;
|
|
557
|
-
fill?: FillOptions;
|
|
558
|
-
effects?: EffectListOptions;
|
|
559
|
-
};
|
|
560
|
-
//#endregion
|
|
561
|
-
//#region src/shared/media/data.d.ts
|
|
562
|
-
interface MediaDataTransformation {
|
|
563
|
-
offset?: {
|
|
564
|
-
pixels: {
|
|
565
|
-
x: number;
|
|
566
|
-
y: number;
|
|
567
|
-
};
|
|
568
|
-
emus?: {
|
|
569
|
-
x: number;
|
|
570
|
-
y: number;
|
|
571
|
-
};
|
|
572
|
-
};
|
|
573
|
-
pixels: {
|
|
574
|
-
x: number;
|
|
575
|
-
y: number;
|
|
576
|
-
};
|
|
577
|
-
emus: {
|
|
578
|
-
x: number;
|
|
579
|
-
y: number;
|
|
580
|
-
};
|
|
581
|
-
flip?: {
|
|
582
|
-
vertical?: boolean;
|
|
583
|
-
horizontal?: boolean;
|
|
584
|
-
};
|
|
585
|
-
rotation?: number;
|
|
658
|
+
interface AnnotationReference {
|
|
659
|
+
annotationRef: true;
|
|
586
660
|
}
|
|
587
|
-
interface
|
|
588
|
-
|
|
589
|
-
transformation: MediaDataTransformation;
|
|
590
|
-
data: Uint8Array;
|
|
591
|
-
srcRect?: SourceRectangleOptions;
|
|
661
|
+
interface FootnoteReferenceElement {
|
|
662
|
+
footnoteRef: true;
|
|
592
663
|
}
|
|
593
|
-
interface
|
|
594
|
-
|
|
664
|
+
interface EndnoteReference {
|
|
665
|
+
endnoteRef: true;
|
|
595
666
|
}
|
|
596
|
-
interface
|
|
597
|
-
|
|
598
|
-
fallback: RegularMediaData & CoreMediaData;
|
|
667
|
+
interface Separator {
|
|
668
|
+
separator: true;
|
|
599
669
|
}
|
|
600
|
-
interface
|
|
601
|
-
|
|
602
|
-
transformation: MediaDataTransformation;
|
|
603
|
-
data: WpsShapeCoreOptions;
|
|
670
|
+
interface ContinuationSeparator {
|
|
671
|
+
continuationSeparator: true;
|
|
604
672
|
}
|
|
605
|
-
interface
|
|
606
|
-
|
|
607
|
-
fill?: FillOptions;
|
|
673
|
+
interface PageNumberElement {
|
|
674
|
+
pgNum: true;
|
|
608
675
|
}
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
type: "wpg";
|
|
612
|
-
transformation: MediaDataTransformation;
|
|
613
|
-
children: IGroupChildMediaData[];
|
|
614
|
-
chOff?: ChildOffset;
|
|
615
|
-
chExt?: ChildExtent;
|
|
616
|
-
fill?: FillOptions;
|
|
617
|
-
effects?: EffectListOptions;
|
|
676
|
+
interface CarriageReturn {
|
|
677
|
+
carriageReturn: true;
|
|
618
678
|
}
|
|
619
|
-
interface
|
|
620
|
-
|
|
621
|
-
transformation: MediaDataTransformation;
|
|
622
|
-
chartKey: string;
|
|
679
|
+
interface Tab {
|
|
680
|
+
tab: true;
|
|
623
681
|
}
|
|
624
|
-
interface
|
|
625
|
-
|
|
626
|
-
transformation: MediaDataTransformation;
|
|
627
|
-
smartArtKey: string;
|
|
682
|
+
interface LastRenderedPageBreak {
|
|
683
|
+
lastRenderedPageBreak: true;
|
|
628
684
|
}
|
|
629
|
-
type IExtendedMediaData = IMediaData | WpsMediaData | WpgMediaData | ChartMediaData | SmartArtMediaData;
|
|
630
|
-
type IMediaData = (RegularMediaData | SvgMediaData) & CoreMediaData;
|
|
631
|
-
declare const WORKAROUND2 = "";
|
|
632
685
|
//#endregion
|
|
633
|
-
//#region src/
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
declare const createTransformation: (options: MediaTransformation) => MediaDataTransformation;
|
|
648
|
-
declare class Media {
|
|
649
|
-
private map;
|
|
650
|
-
constructor();
|
|
651
|
-
addImage(key: string, mediaData: IMediaData): void;
|
|
652
|
-
get array(): IMediaData[];
|
|
686
|
+
//#region src/parts/paragraph/run/east-asian-layout.d.ts
|
|
687
|
+
declare const CombineBracketsType: {
|
|
688
|
+
readonly NONE: "none";
|
|
689
|
+
readonly ROUND: "round";
|
|
690
|
+
readonly SQUARE: "square";
|
|
691
|
+
readonly ANGLE: "angle";
|
|
692
|
+
readonly CURLY: "curly";
|
|
693
|
+
};
|
|
694
|
+
interface EastAsianLayoutOptions {
|
|
695
|
+
id?: number;
|
|
696
|
+
combine?: boolean;
|
|
697
|
+
combineBrackets?: (typeof CombineBracketsType)[keyof typeof CombineBracketsType];
|
|
698
|
+
vert?: boolean;
|
|
699
|
+
vertCompress?: boolean;
|
|
653
700
|
}
|
|
654
701
|
//#endregion
|
|
655
|
-
//#region src/parts/
|
|
656
|
-
declare
|
|
657
|
-
TOP = "t",
|
|
658
|
-
CENTER = "ctr",
|
|
659
|
-
BOTTOM = "b",
|
|
660
|
-
JUSTIFY = "just",
|
|
661
|
-
DISTRIBUTED = "dist"
|
|
662
|
-
}
|
|
663
|
-
declare const TextVertOverflowType: {
|
|
664
|
-
readonly OVERFLOW: "overflow";
|
|
665
|
-
readonly ELLIPSIS: "ellipsis";
|
|
666
|
-
readonly CLIP: "clip";
|
|
667
|
-
};
|
|
668
|
-
declare const TextHorzOverflowType: {
|
|
669
|
-
readonly OVERFLOW: "overflow";
|
|
670
|
-
readonly CLIP: "clip";
|
|
671
|
-
};
|
|
672
|
-
declare const TextVerticalType: {
|
|
673
|
-
readonly HORIZONTAL: "horz";
|
|
674
|
-
readonly VERTICAL: "vert";
|
|
675
|
-
readonly VERTICAL_270: "vert270";
|
|
676
|
-
readonly WORD_ART_VERTICAL: "wordArtVert";
|
|
677
|
-
readonly EAST_ASIAN_VERTICAL: "eaVert";
|
|
678
|
-
readonly MONGOLIAN_VERTICAL: "mongolianVert";
|
|
679
|
-
readonly WORD_ART_VERTICAL_RTL: "wordArtVertRtl";
|
|
680
|
-
};
|
|
681
|
-
declare const TextBodyWrappingType: {
|
|
702
|
+
//#region src/parts/paragraph/run/emphasis-mark.d.ts
|
|
703
|
+
declare const EmphasisMarkType: {
|
|
682
704
|
readonly NONE: "none";
|
|
683
|
-
readonly
|
|
705
|
+
readonly COMMA: "comma";
|
|
706
|
+
readonly CIRCLE: "circle";
|
|
707
|
+
readonly DOT: "dot";
|
|
708
|
+
readonly UNDER_DOT: "underDot";
|
|
684
709
|
};
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
710
|
+
//#endregion
|
|
711
|
+
//#region src/parts/paragraph/run/formatting.d.ts
|
|
712
|
+
interface ColorOptions {
|
|
713
|
+
val?: string;
|
|
714
|
+
themeColor?: (typeof ThemeColor)[keyof typeof ThemeColor];
|
|
715
|
+
themeTint?: string;
|
|
716
|
+
themeShade?: string;
|
|
688
717
|
}
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
718
|
+
//#endregion
|
|
719
|
+
//#region src/parts/paragraph/run/language.d.ts
|
|
720
|
+
interface LanguageOptions {
|
|
721
|
+
value?: string;
|
|
722
|
+
eastAsia?: string;
|
|
723
|
+
bidirectional?: string;
|
|
695
724
|
}
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
rIns?: number | UniversalMeasure;
|
|
709
|
-
bIns?: number | UniversalMeasure;
|
|
710
|
-
numCol?: number;
|
|
711
|
-
spcCol?: number | UniversalMeasure;
|
|
712
|
-
rtlCol?: boolean;
|
|
713
|
-
fromWordArt?: boolean;
|
|
714
|
-
anchor?: (typeof VerticalAnchor)[keyof typeof VerticalAnchor];
|
|
715
|
-
anchorCtr?: boolean;
|
|
716
|
-
forceAA?: boolean;
|
|
717
|
-
upright?: boolean;
|
|
718
|
-
compatLnSpc?: boolean;
|
|
719
|
-
verticalAnchor?: VerticalAnchor;
|
|
720
|
-
margins?: {
|
|
721
|
-
top?: number | UniversalMeasure;
|
|
722
|
-
bottom?: number | UniversalMeasure;
|
|
723
|
-
left?: number | UniversalMeasure;
|
|
724
|
-
right?: number | UniversalMeasure;
|
|
725
|
-
};
|
|
726
|
-
prstTxWarp?: PresetTextShapeOptions;
|
|
727
|
-
noAutoFit?: boolean;
|
|
728
|
-
normAutofit?: NormalAutofitOptions;
|
|
729
|
-
spAutoFit?: boolean;
|
|
730
|
-
scene3d?: Scene3DOptions;
|
|
731
|
-
sp3d?: Shape3DOptions;
|
|
732
|
-
flatTx?: FlatTextOptions;
|
|
733
|
-
}
|
|
734
|
-
declare const createBodyProperties: (options?: BodyPropertiesOptions) => string;
|
|
735
|
-
//#endregion
|
|
736
|
-
//#region src/parts/drawing/inline/graphic/graphic-data/wps/non-visual-shape-properties.d.ts
|
|
737
|
-
interface NonVisualShapePropertiesOptions {
|
|
738
|
-
txBox: string;
|
|
725
|
+
//#endregion
|
|
726
|
+
//#region src/parts/paragraph/run/run-fonts.d.ts
|
|
727
|
+
interface FontAttributesProperties {
|
|
728
|
+
ascii?: string;
|
|
729
|
+
cs?: string;
|
|
730
|
+
eastAsia?: string;
|
|
731
|
+
hAnsi?: string;
|
|
732
|
+
hint?: string;
|
|
733
|
+
asciiTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
|
|
734
|
+
hAnsiTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
|
|
735
|
+
eastAsiaTheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
|
|
736
|
+
cstheme?: (typeof ThemeFont)[keyof typeof ThemeFont];
|
|
739
737
|
}
|
|
740
738
|
//#endregion
|
|
741
|
-
//#region src/parts/
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
739
|
+
//#region src/parts/paragraph/run/underline.d.ts
|
|
740
|
+
declare const UnderlineType: {
|
|
741
|
+
readonly SINGLE: "single";
|
|
742
|
+
readonly WORDS: "words";
|
|
743
|
+
readonly DOUBLE: "double";
|
|
744
|
+
readonly THICK: "thick";
|
|
745
|
+
readonly DOTTED: "dotted";
|
|
746
|
+
readonly DOTTEDHEAVY: "dottedHeavy";
|
|
747
|
+
readonly DASH: "dash";
|
|
748
|
+
readonly DASHEDHEAVY: "dashedHeavy";
|
|
749
|
+
readonly DASHLONG: "dashLong";
|
|
750
|
+
readonly DASHLONGHEAVY: "dashLongHeavy";
|
|
751
|
+
readonly DOTDASH: "dotDash";
|
|
752
|
+
readonly DASHDOTHEAVY: "dashDotHeavy";
|
|
753
|
+
readonly DOTDOTDASH: "dotDotDash";
|
|
754
|
+
readonly DASHDOTDOTHEAVY: "dashDotDotHeavy";
|
|
755
|
+
readonly WAVE: "wave";
|
|
756
|
+
readonly WAVYHEAVY: "wavyHeavy";
|
|
757
|
+
readonly WAVYDOUBLE: "wavyDouble";
|
|
758
|
+
readonly NONE: "none";
|
|
756
759
|
};
|
|
757
760
|
//#endregion
|
|
758
|
-
//#region src/parts/
|
|
759
|
-
interface
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
floating?: Floating;
|
|
763
|
-
outline?: OutlineOptions;
|
|
764
|
-
fill?: FillOptions;
|
|
765
|
-
effects?: EffectListOptions;
|
|
766
|
-
blipEffects?: BlipEffectsOptions;
|
|
767
|
-
tile?: TileOptions;
|
|
768
|
-
}
|
|
769
|
-
declare const resetDrawingIdGen: () => void;
|
|
770
|
-
declare const drawingDesc: CustomDescriptor<DrawingDescriptorOptions, BodyContext>;
|
|
771
|
-
//#endregion
|
|
772
|
-
//#region src/parts/paragraph/run/smartart-run.d.ts
|
|
773
|
-
interface SmartArtNode {
|
|
774
|
-
text: string;
|
|
775
|
-
children?: SmartArtNode[];
|
|
776
|
-
}
|
|
777
|
-
interface SmartArtOptions {
|
|
778
|
-
data: {
|
|
779
|
-
nodes: SmartArtNode[];
|
|
780
|
-
};
|
|
781
|
-
transformation: MediaTransformation;
|
|
782
|
-
floating?: Floating;
|
|
783
|
-
altText?: DocPropertiesOptions;
|
|
784
|
-
layout?: string;
|
|
785
|
-
style?: string;
|
|
786
|
-
color?: string;
|
|
787
|
-
}
|
|
788
|
-
//#endregion
|
|
789
|
-
//#region src/parts/paragraph/math.d.ts
|
|
790
|
-
type MathScriptType = "roman" | "script" | "fraktur" | "double-struck" | "sans-serif" | "monospace";
|
|
791
|
-
type MathStyleType = "p" | "b" | "i" | "bi";
|
|
792
|
-
interface MathRunPropertiesOptions {
|
|
793
|
-
lit?: boolean;
|
|
794
|
-
normal?: boolean;
|
|
795
|
-
script?: MathScriptType;
|
|
796
|
-
style?: MathStyleType;
|
|
797
|
-
breakAlignment?: number;
|
|
798
|
-
align?: boolean;
|
|
761
|
+
//#region src/parts/paragraph/run/properties.d.ts
|
|
762
|
+
interface RunFontReference {
|
|
763
|
+
name: string;
|
|
764
|
+
hint?: string;
|
|
799
765
|
}
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
sum: {
|
|
838
|
-
children: MathInput[];
|
|
839
|
-
subScript?: MathInput[];
|
|
840
|
-
superScript?: MathInput[];
|
|
841
|
-
};
|
|
842
|
-
} | {
|
|
843
|
-
integral: {
|
|
844
|
-
children: MathInput[];
|
|
845
|
-
subScript?: MathInput[];
|
|
846
|
-
superScript?: MathInput[];
|
|
847
|
-
};
|
|
848
|
-
} | {
|
|
849
|
-
limitLower: {
|
|
850
|
-
children: MathInput[];
|
|
851
|
-
limit: MathInput[];
|
|
852
|
-
properties?: Record<string, unknown>;
|
|
853
|
-
};
|
|
854
|
-
} | {
|
|
855
|
-
limitUpper: {
|
|
856
|
-
children: MathInput[];
|
|
857
|
-
limit: MathInput[];
|
|
858
|
-
properties?: Record<string, unknown>;
|
|
859
|
-
};
|
|
860
|
-
} | {
|
|
861
|
-
function: {
|
|
862
|
-
children: MathInput[];
|
|
863
|
-
name: MathInput[];
|
|
864
|
-
properties?: Record<string, unknown>;
|
|
865
|
-
};
|
|
866
|
-
} | {
|
|
867
|
-
matrix: {
|
|
868
|
-
rows: MathInput[][];
|
|
869
|
-
properties?: Record<string, unknown>;
|
|
870
|
-
};
|
|
871
|
-
} | {
|
|
872
|
-
roundBrackets: MathInput[] | {
|
|
873
|
-
children: MathInput[];
|
|
874
|
-
};
|
|
875
|
-
} | {
|
|
876
|
-
curlyBrackets: MathInput[] | {
|
|
877
|
-
children: MathInput[];
|
|
878
|
-
};
|
|
879
|
-
} | {
|
|
880
|
-
angledBrackets: MathInput[] | {
|
|
881
|
-
children: MathInput[];
|
|
882
|
-
};
|
|
883
|
-
} | {
|
|
884
|
-
squareBrackets: MathInput[] | {
|
|
885
|
-
children: MathInput[];
|
|
886
|
-
};
|
|
887
|
-
} | {
|
|
888
|
-
borderBox: {
|
|
889
|
-
children: MathInput[];
|
|
890
|
-
properties?: Record<string, unknown>;
|
|
891
|
-
};
|
|
892
|
-
} | {
|
|
893
|
-
box: {
|
|
894
|
-
children: MathInput[];
|
|
895
|
-
properties?: Record<string, unknown>;
|
|
896
|
-
};
|
|
897
|
-
} | {
|
|
898
|
-
groupChr: {
|
|
899
|
-
children: MathInput[];
|
|
900
|
-
properties?: Record<string, unknown>;
|
|
901
|
-
};
|
|
902
|
-
} | {
|
|
903
|
-
phant: {
|
|
904
|
-
children: MathInput[];
|
|
905
|
-
properties?: Record<string, unknown>;
|
|
906
|
-
};
|
|
907
|
-
} | {
|
|
908
|
-
eqArr: {
|
|
909
|
-
rows: MathInput[][];
|
|
910
|
-
properties?: Record<string, unknown>;
|
|
911
|
-
};
|
|
912
|
-
} | {
|
|
913
|
-
accent: {
|
|
914
|
-
children: MathInput[];
|
|
915
|
-
accentCharacter?: string;
|
|
766
|
+
declare const TextEffect: {
|
|
767
|
+
readonly BLINK_BACKGROUND: "blinkBackground";
|
|
768
|
+
readonly LIGHTS: "lights";
|
|
769
|
+
readonly ANTS_BLACK: "antsBlack";
|
|
770
|
+
readonly ANTS_RED: "antsRed";
|
|
771
|
+
readonly SHIMMER: "shimmer";
|
|
772
|
+
readonly SPARKLE: "sparkle";
|
|
773
|
+
readonly NONE: "none";
|
|
774
|
+
};
|
|
775
|
+
declare const HighlightColor: {
|
|
776
|
+
readonly BLACK: "black";
|
|
777
|
+
readonly BLUE: "blue";
|
|
778
|
+
readonly CYAN: "cyan";
|
|
779
|
+
readonly DARK_BLUE: "darkBlue";
|
|
780
|
+
readonly DARK_CYAN: "darkCyan";
|
|
781
|
+
readonly DARK_GRAY: "darkGray";
|
|
782
|
+
readonly DARK_GREEN: "darkGreen";
|
|
783
|
+
readonly DARK_MAGENTA: "darkMagenta";
|
|
784
|
+
readonly DARK_RED: "darkRed";
|
|
785
|
+
readonly DARK_YELLOW: "darkYellow";
|
|
786
|
+
readonly GREEN: "green";
|
|
787
|
+
readonly LIGHT_GRAY: "lightGray";
|
|
788
|
+
readonly MAGENTA: "magenta";
|
|
789
|
+
readonly NONE: "none";
|
|
790
|
+
readonly RED: "red";
|
|
791
|
+
readonly WHITE: "white";
|
|
792
|
+
readonly YELLOW: "yellow";
|
|
793
|
+
};
|
|
794
|
+
interface RunStylePropertiesOptions {
|
|
795
|
+
noProof?: boolean;
|
|
796
|
+
bold?: boolean;
|
|
797
|
+
boldComplexScript?: boolean;
|
|
798
|
+
italic?: boolean;
|
|
799
|
+
italicComplexScript?: boolean;
|
|
800
|
+
underline?: {
|
|
801
|
+
color?: string;
|
|
802
|
+
type?: (typeof UnderlineType)[keyof typeof UnderlineType];
|
|
916
803
|
};
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
type: "top" | "bot";
|
|
804
|
+
effect?: (typeof TextEffect)[keyof typeof TextEffect];
|
|
805
|
+
emphasisMark?: {
|
|
806
|
+
type?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType];
|
|
921
807
|
};
|
|
922
|
-
|
|
808
|
+
color?: string | ColorOptions;
|
|
809
|
+
kern?: number;
|
|
810
|
+
position?: string;
|
|
811
|
+
size?: number;
|
|
812
|
+
sizeComplexScript?: boolean | number;
|
|
813
|
+
rightToLeft?: boolean;
|
|
814
|
+
smallCaps?: boolean;
|
|
815
|
+
allCaps?: boolean;
|
|
816
|
+
strike?: boolean;
|
|
817
|
+
doubleStrike?: boolean;
|
|
818
|
+
subScript?: boolean;
|
|
819
|
+
superScript?: boolean;
|
|
820
|
+
font?: string | RunFontReference | FontAttributesProperties;
|
|
821
|
+
highlight?: (typeof HighlightColor)[keyof typeof HighlightColor];
|
|
822
|
+
highlightComplexScript?: boolean | string;
|
|
823
|
+
characterSpacing?: number;
|
|
824
|
+
shading?: ShadingAttributesProperties;
|
|
825
|
+
emboss?: boolean;
|
|
826
|
+
imprint?: boolean;
|
|
827
|
+
revision?: RunPropertiesChangeOptions;
|
|
828
|
+
language?: LanguageOptions;
|
|
829
|
+
border?: BorderOptions;
|
|
830
|
+
snapToGrid?: boolean;
|
|
831
|
+
vanish?: boolean;
|
|
832
|
+
specVanish?: boolean;
|
|
833
|
+
scale?: number;
|
|
834
|
+
math?: boolean;
|
|
835
|
+
outline?: boolean;
|
|
836
|
+
shadow?: boolean;
|
|
837
|
+
webHidden?: boolean;
|
|
838
|
+
fitText?: number;
|
|
839
|
+
complexScript?: boolean;
|
|
840
|
+
eastAsianLayout?: EastAsianLayoutOptions;
|
|
841
|
+
contentPartRId?: string;
|
|
842
|
+
}
|
|
843
|
+
type RunPropertiesOptions = {
|
|
844
|
+
style?: string;
|
|
845
|
+
} & RunStylePropertiesOptions;
|
|
846
|
+
type RunPropertiesChangeOptions = {} & RunPropertiesOptions & ChangedAttributesProperties;
|
|
847
|
+
type ParagraphRunPropertiesOptions = {
|
|
848
|
+
insertion?: ChangedAttributesProperties;
|
|
849
|
+
deletion?: ChangedAttributesProperties;
|
|
850
|
+
} & RunPropertiesOptions;
|
|
923
851
|
//#endregion
|
|
924
|
-
//#region src/parts/paragraph/
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
852
|
+
//#region src/parts/paragraph/run/run.d.ts
|
|
853
|
+
interface RunOptionsBase {
|
|
854
|
+
children?: ((typeof PageNumber)[keyof typeof PageNumber] | string | AnnotationReference | CarriageReturn | ContinuationSeparator | DayLong | DayShort | EndnoteReference | FootnoteReferenceElement | LastRenderedPageBreak | MonthLong | MonthShort | NoBreakHyphen | PageNumberElement | Separator | SoftHyphen | Tab | YearLong | YearShort | Record<string, unknown>)[];
|
|
855
|
+
break?: number;
|
|
856
|
+
text?: string;
|
|
857
|
+
}
|
|
858
|
+
type RunOptions = RunOptionsBase & RunPropertiesOptions & {
|
|
859
|
+
rsidRPr?: string;
|
|
860
|
+
rsidDel?: string;
|
|
929
861
|
};
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
readonly
|
|
933
|
-
readonly
|
|
862
|
+
type ParagraphRunOptions = RunOptionsBase & ParagraphRunPropertiesOptions;
|
|
863
|
+
declare const PageNumber: {
|
|
864
|
+
readonly CURRENT: "CURRENT";
|
|
865
|
+
readonly TOTAL_PAGES: "TOTAL_PAGES";
|
|
866
|
+
readonly TOTAL_PAGES_IN_SECTION: "TOTAL_PAGES_IN_SECTION";
|
|
867
|
+
readonly CURRENT_SECTION: "SECTION";
|
|
934
868
|
};
|
|
935
|
-
|
|
936
|
-
|
|
869
|
+
//#endregion
|
|
870
|
+
//#region src/parts/paragraph/properties.d.ts
|
|
871
|
+
declare const TextAlignmentType: {
|
|
872
|
+
readonly TOP: "top";
|
|
873
|
+
readonly CENTER: "center";
|
|
874
|
+
readonly BASELINE: "baseline";
|
|
875
|
+
readonly BOTTOM: "bottom";
|
|
937
876
|
readonly AUTO: "auto";
|
|
877
|
+
};
|
|
878
|
+
declare const TextboxTightWrapType: {
|
|
938
879
|
readonly NONE: "none";
|
|
939
|
-
readonly
|
|
940
|
-
readonly
|
|
941
|
-
readonly
|
|
880
|
+
readonly ALL_LINES: "allLines";
|
|
881
|
+
readonly FIRST_AND_LAST_LINE: "firstAndLastLine";
|
|
882
|
+
readonly FIRST_LINE_ONLY: "firstLineOnly";
|
|
883
|
+
readonly LAST_LINE_ONLY: "lastLineOnly";
|
|
942
884
|
};
|
|
943
|
-
interface
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
885
|
+
interface LevelParagraphStylePropertiesOptions {
|
|
886
|
+
alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
887
|
+
bidirectional?: boolean;
|
|
888
|
+
pageBreakBefore?: boolean;
|
|
889
|
+
tabStops?: TabStopDefinition[];
|
|
890
|
+
thematicBreak?: boolean;
|
|
891
|
+
widowControl?: boolean;
|
|
892
|
+
contextualSpacing?: boolean;
|
|
893
|
+
rightTabStop?: number;
|
|
894
|
+
leftTabStop?: number;
|
|
895
|
+
indent?: IndentAttributesProperties;
|
|
896
|
+
spacing?: SpacingProperties;
|
|
897
|
+
keepNext?: boolean;
|
|
898
|
+
keepLines?: boolean;
|
|
899
|
+
frame?: FrameOptions$1;
|
|
900
|
+
suppressLineNumbers?: boolean;
|
|
901
|
+
wordWrap?: boolean;
|
|
902
|
+
overflowPunctuation?: boolean;
|
|
903
|
+
autoSpaceEastAsianText?: boolean;
|
|
904
|
+
suppressOverlap?: boolean;
|
|
905
|
+
suppressAutoHyphens?: boolean;
|
|
906
|
+
adjustRightInd?: boolean;
|
|
907
|
+
snapToGrid?: boolean;
|
|
908
|
+
mirrorIndents?: boolean;
|
|
909
|
+
kinsoku?: boolean;
|
|
910
|
+
topLinePunct?: boolean;
|
|
911
|
+
autoSpaceDE?: boolean;
|
|
912
|
+
textAlignment?: (typeof TextAlignmentType)[keyof typeof TextAlignmentType];
|
|
913
|
+
textboxTightWrap?: (typeof TextboxTightWrapType)[keyof typeof TextboxTightWrapType];
|
|
914
|
+
textDirection?: "lr" | "rl" | "tb" | "tbV" | "rlV" | "lrV";
|
|
915
|
+
outlineLevel?: number;
|
|
916
|
+
divId?: number;
|
|
917
|
+
cnfStyle?: CnfConditionalOptions;
|
|
959
918
|
}
|
|
960
|
-
type
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
919
|
+
type ParagraphStylePropertiesOptions = {
|
|
920
|
+
border?: BordersOptions;
|
|
921
|
+
shading?: ShadingAttributesProperties;
|
|
922
|
+
numbering?: {
|
|
923
|
+
reference: string;
|
|
924
|
+
level: number;
|
|
925
|
+
instance?: number;
|
|
926
|
+
custom?: boolean;
|
|
927
|
+
numberingChange?: {
|
|
928
|
+
original: string;
|
|
929
|
+
id: string;
|
|
930
|
+
author: string;
|
|
931
|
+
date?: string;
|
|
932
|
+
};
|
|
933
|
+
} | false;
|
|
934
|
+
} & LevelParagraphStylePropertiesOptions;
|
|
935
|
+
type ParagraphPropertiesOptionsBase = {
|
|
936
|
+
heading?: (typeof HeadingLevel)[keyof typeof HeadingLevel];
|
|
937
|
+
style?: string;
|
|
938
|
+
bullet?: {
|
|
939
|
+
level: number;
|
|
972
940
|
};
|
|
973
|
-
|
|
974
|
-
|
|
941
|
+
run?: ParagraphRunOptions;
|
|
942
|
+
} & ParagraphStylePropertiesOptions;
|
|
943
|
+
type ParagraphPropertiesChangeOptions = ChangedAttributesProperties & ParagraphPropertiesOptionsBase;
|
|
944
|
+
type ParagraphPropertiesOptions = {
|
|
945
|
+
revision?: ParagraphPropertiesChangeOptions;
|
|
946
|
+
includeIfEmpty?: boolean;
|
|
947
|
+
} & ParagraphPropertiesOptionsBase;
|
|
975
948
|
//#endregion
|
|
976
|
-
//#region src/parts/paragraph/run/
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
interface
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
interface MonthShort {
|
|
987
|
-
monthShort: true;
|
|
988
|
-
}
|
|
989
|
-
interface YearShort {
|
|
990
|
-
yearShort: true;
|
|
991
|
-
}
|
|
992
|
-
interface DayLong {
|
|
993
|
-
dayLong: true;
|
|
994
|
-
}
|
|
995
|
-
interface MonthLong {
|
|
996
|
-
monthLong: true;
|
|
997
|
-
}
|
|
998
|
-
interface YearLong {
|
|
999
|
-
yearLong: true;
|
|
1000
|
-
}
|
|
1001
|
-
interface AnnotationReference {
|
|
1002
|
-
annotationRef: true;
|
|
1003
|
-
}
|
|
1004
|
-
interface FootnoteReferenceElement {
|
|
1005
|
-
footnoteRef: true;
|
|
1006
|
-
}
|
|
1007
|
-
interface EndnoteReference {
|
|
1008
|
-
endnoteRef: true;
|
|
1009
|
-
}
|
|
1010
|
-
interface Separator {
|
|
1011
|
-
separator: true;
|
|
1012
|
-
}
|
|
1013
|
-
interface ContinuationSeparator {
|
|
1014
|
-
continuationSeparator: true;
|
|
949
|
+
//#region src/parts/paragraph/run/symbol-run.d.ts
|
|
950
|
+
type SymbolRunOptions = {
|
|
951
|
+
char: string;
|
|
952
|
+
symbolfont?: string;
|
|
953
|
+
} & RunOptions;
|
|
954
|
+
//#endregion
|
|
955
|
+
//#region src/parts/drawing/doc-properties/doc-properties.d.ts
|
|
956
|
+
interface HyperlinkOptions {
|
|
957
|
+
click?: string;
|
|
958
|
+
hover?: string;
|
|
1015
959
|
}
|
|
1016
|
-
interface
|
|
1017
|
-
|
|
960
|
+
interface DocPropertiesOptions {
|
|
961
|
+
name: string;
|
|
962
|
+
description?: string;
|
|
963
|
+
title?: string;
|
|
964
|
+
id?: string;
|
|
965
|
+
hyperlink?: HyperlinkOptions;
|
|
1018
966
|
}
|
|
1019
|
-
|
|
1020
|
-
|
|
967
|
+
//#endregion
|
|
968
|
+
//#region src/parts/drawing/inline/graphic/graphic-data/wpg/wpg-group.d.ts
|
|
969
|
+
type GroupChild = unknown;
|
|
970
|
+
interface ChildOffset {
|
|
971
|
+
x: number;
|
|
972
|
+
y: number;
|
|
1021
973
|
}
|
|
1022
|
-
interface
|
|
1023
|
-
|
|
974
|
+
interface ChildExtent {
|
|
975
|
+
cx: number;
|
|
976
|
+
cy: number;
|
|
1024
977
|
}
|
|
1025
|
-
interface
|
|
1026
|
-
|
|
978
|
+
interface WpgGroupCoreOptions {
|
|
979
|
+
children: GroupChild[];
|
|
1027
980
|
}
|
|
981
|
+
type WpgGroupOptions = WpgGroupCoreOptions & {
|
|
982
|
+
transformation: MediaDataTransformation;
|
|
983
|
+
chOff?: ChildOffset;
|
|
984
|
+
chExt?: ChildExtent;
|
|
985
|
+
fill?: FillOptions;
|
|
986
|
+
effects?: EffectListOptions;
|
|
987
|
+
};
|
|
1028
988
|
//#endregion
|
|
1029
|
-
//#region src/parts/
|
|
1030
|
-
declare
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
989
|
+
//#region src/parts/drawing/inline/graphic/graphic-data/wps/body-properties.d.ts
|
|
990
|
+
declare enum VerticalAnchor {
|
|
991
|
+
TOP = "t",
|
|
992
|
+
CENTER = "ctr",
|
|
993
|
+
BOTTOM = "b",
|
|
994
|
+
JUSTIFY = "just",
|
|
995
|
+
DISTRIBUTED = "dist"
|
|
996
|
+
}
|
|
997
|
+
declare const TextVertOverflowType: {
|
|
998
|
+
readonly OVERFLOW: "overflow";
|
|
999
|
+
readonly ELLIPSIS: "ellipsis";
|
|
1000
|
+
readonly CLIP: "clip";
|
|
1001
|
+
};
|
|
1002
|
+
declare const TextHorzOverflowType: {
|
|
1003
|
+
readonly OVERFLOW: "overflow";
|
|
1004
|
+
readonly CLIP: "clip";
|
|
1005
|
+
};
|
|
1006
|
+
declare const TextVerticalType: {
|
|
1007
|
+
readonly HORIZONTAL: "horz";
|
|
1008
|
+
readonly VERTICAL: "vert";
|
|
1009
|
+
readonly VERTICAL_270: "vert270";
|
|
1010
|
+
readonly WORD_ART_VERTICAL: "wordArtVert";
|
|
1011
|
+
readonly EAST_ASIAN_VERTICAL: "eaVert";
|
|
1012
|
+
readonly MONGOLIAN_VERTICAL: "mongolianVert";
|
|
1013
|
+
readonly WORD_ART_VERTICAL_RTL: "wordArtVertRtl";
|
|
1036
1014
|
};
|
|
1037
|
-
|
|
1038
|
-
id?: number;
|
|
1039
|
-
combine?: boolean;
|
|
1040
|
-
combineBrackets?: (typeof CombineBracketsType)[keyof typeof CombineBracketsType];
|
|
1041
|
-
vert?: boolean;
|
|
1042
|
-
vertCompress?: boolean;
|
|
1043
|
-
}
|
|
1044
|
-
//#endregion
|
|
1045
|
-
//#region src/parts/paragraph/run/emphasis-mark.d.ts
|
|
1046
|
-
declare const EmphasisMarkType: {
|
|
1015
|
+
declare const TextBodyWrappingType: {
|
|
1047
1016
|
readonly NONE: "none";
|
|
1048
|
-
readonly
|
|
1049
|
-
readonly CIRCLE: "circle";
|
|
1050
|
-
readonly DOT: "dot";
|
|
1051
|
-
readonly UNDER_DOT: "underDot";
|
|
1017
|
+
readonly SQUARE: "square";
|
|
1052
1018
|
};
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
val?: string;
|
|
1057
|
-
themeColor?: (typeof ThemeColor)[keyof typeof ThemeColor];
|
|
1058
|
-
themeTint?: string;
|
|
1059
|
-
themeShade?: string;
|
|
1019
|
+
interface NormalAutofitOptions {
|
|
1020
|
+
fontScale?: number;
|
|
1021
|
+
lnSpcReduction?: number;
|
|
1060
1022
|
}
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1023
|
+
interface PresetTextShapeOptions {
|
|
1024
|
+
preset: string;
|
|
1025
|
+
adjustments?: {
|
|
1026
|
+
name: string;
|
|
1027
|
+
formula: string;
|
|
1028
|
+
}[];
|
|
1067
1029
|
}
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1030
|
+
interface FlatTextOptions {
|
|
1031
|
+
z?: number;
|
|
1032
|
+
}
|
|
1033
|
+
interface BodyPropertiesOptions {
|
|
1034
|
+
rotation?: number;
|
|
1035
|
+
spcFirstLastPara?: boolean;
|
|
1036
|
+
vertOverflow?: (typeof TextVertOverflowType)[keyof typeof TextVertOverflowType];
|
|
1037
|
+
horzOverflow?: (typeof TextHorzOverflowType)[keyof typeof TextHorzOverflowType];
|
|
1038
|
+
vert?: (typeof TextVerticalType)[keyof typeof TextVerticalType];
|
|
1039
|
+
wrap?: (typeof TextBodyWrappingType)[keyof typeof TextBodyWrappingType];
|
|
1040
|
+
lIns?: number | UniversalMeasure;
|
|
1041
|
+
tIns?: number | UniversalMeasure;
|
|
1042
|
+
rIns?: number | UniversalMeasure;
|
|
1043
|
+
bIns?: number | UniversalMeasure;
|
|
1044
|
+
numCol?: number;
|
|
1045
|
+
spcCol?: number | UniversalMeasure;
|
|
1046
|
+
rtlCol?: boolean;
|
|
1047
|
+
fromWordArt?: boolean;
|
|
1048
|
+
anchor?: (typeof VerticalAnchor)[keyof typeof VerticalAnchor];
|
|
1049
|
+
anchorCtr?: boolean;
|
|
1050
|
+
forceAA?: boolean;
|
|
1051
|
+
upright?: boolean;
|
|
1052
|
+
compatLnSpc?: boolean;
|
|
1053
|
+
verticalAnchor?: VerticalAnchor;
|
|
1054
|
+
margins?: {
|
|
1055
|
+
top?: number | UniversalMeasure;
|
|
1056
|
+
bottom?: number | UniversalMeasure;
|
|
1057
|
+
left?: number | UniversalMeasure;
|
|
1058
|
+
right?: number | UniversalMeasure;
|
|
1059
|
+
};
|
|
1060
|
+
prstTxWarp?: PresetTextShapeOptions;
|
|
1061
|
+
noAutoFit?: boolean;
|
|
1062
|
+
normAutofit?: NormalAutofitOptions;
|
|
1063
|
+
spAutoFit?: boolean;
|
|
1064
|
+
scene3d?: Scene3DOptions;
|
|
1065
|
+
sp3d?: Shape3DOptions;
|
|
1066
|
+
flatTx?: FlatTextOptions;
|
|
1080
1067
|
}
|
|
1068
|
+
declare const createBodyProperties: (options?: BodyPropertiesOptions) => string;
|
|
1081
1069
|
//#endregion
|
|
1082
|
-
//#region src/parts/
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
readonly DOUBLE: "double";
|
|
1087
|
-
readonly THICK: "thick";
|
|
1088
|
-
readonly DOTTED: "dotted";
|
|
1089
|
-
readonly DOTTEDHEAVY: "dottedHeavy";
|
|
1090
|
-
readonly DASH: "dash";
|
|
1091
|
-
readonly DASHEDHEAVY: "dashedHeavy";
|
|
1092
|
-
readonly DASHLONG: "dashLong";
|
|
1093
|
-
readonly DASHLONGHEAVY: "dashLongHeavy";
|
|
1094
|
-
readonly DOTDASH: "dotDash";
|
|
1095
|
-
readonly DASHDOTHEAVY: "dashDotHeavy";
|
|
1096
|
-
readonly DOTDOTDASH: "dotDotDash";
|
|
1097
|
-
readonly DASHDOTDOTHEAVY: "dashDotDotHeavy";
|
|
1098
|
-
readonly WAVE: "wave";
|
|
1099
|
-
readonly WAVYHEAVY: "wavyHeavy";
|
|
1100
|
-
readonly WAVYDOUBLE: "wavyDouble";
|
|
1101
|
-
readonly NONE: "none";
|
|
1102
|
-
};
|
|
1070
|
+
//#region src/parts/drawing/inline/graphic/graphic-data/wps/non-visual-shape-properties.d.ts
|
|
1071
|
+
interface NonVisualShapePropertiesOptions {
|
|
1072
|
+
txBox: string;
|
|
1073
|
+
}
|
|
1103
1074
|
//#endregion
|
|
1104
|
-
//#region src/parts/
|
|
1105
|
-
interface
|
|
1106
|
-
|
|
1107
|
-
|
|
1075
|
+
//#region src/parts/drawing/inline/graphic/graphic-data/wps/wps-shape.d.ts
|
|
1076
|
+
interface WpsShapeCoreOptions {
|
|
1077
|
+
children: (ParagraphOptions | string)[];
|
|
1078
|
+
nonVisualProperties?: NonVisualShapePropertiesOptions;
|
|
1079
|
+
bodyProperties?: BodyPropertiesOptions;
|
|
1080
|
+
outline?: OutlineOptions;
|
|
1081
|
+
fill?: FillOptions;
|
|
1082
|
+
customGeometry?: CustomGeometryOptions;
|
|
1083
|
+
effectDag?: EffectDagOptions;
|
|
1084
|
+
effects?: EffectListOptions;
|
|
1085
|
+
scene3d?: Scene3DOptions;
|
|
1086
|
+
shape3d?: Shape3DOptions;
|
|
1108
1087
|
}
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
readonly LIGHTS: "lights";
|
|
1112
|
-
readonly ANTS_BLACK: "antsBlack";
|
|
1113
|
-
readonly ANTS_RED: "antsRed";
|
|
1114
|
-
readonly SHIMMER: "shimmer";
|
|
1115
|
-
readonly SPARKLE: "sparkle";
|
|
1116
|
-
readonly NONE: "none";
|
|
1117
|
-
};
|
|
1118
|
-
declare const HighlightColor: {
|
|
1119
|
-
readonly BLACK: "black";
|
|
1120
|
-
readonly BLUE: "blue";
|
|
1121
|
-
readonly CYAN: "cyan";
|
|
1122
|
-
readonly DARK_BLUE: "darkBlue";
|
|
1123
|
-
readonly DARK_CYAN: "darkCyan";
|
|
1124
|
-
readonly DARK_GRAY: "darkGray";
|
|
1125
|
-
readonly DARK_GREEN: "darkGreen";
|
|
1126
|
-
readonly DARK_MAGENTA: "darkMagenta";
|
|
1127
|
-
readonly DARK_RED: "darkRed";
|
|
1128
|
-
readonly DARK_YELLOW: "darkYellow";
|
|
1129
|
-
readonly GREEN: "green";
|
|
1130
|
-
readonly LIGHT_GRAY: "lightGray";
|
|
1131
|
-
readonly MAGENTA: "magenta";
|
|
1132
|
-
readonly NONE: "none";
|
|
1133
|
-
readonly RED: "red";
|
|
1134
|
-
readonly WHITE: "white";
|
|
1135
|
-
readonly YELLOW: "yellow";
|
|
1088
|
+
type WpsShapeOptions = WpsShapeCoreOptions & {
|
|
1089
|
+
transformation: MediaDataTransformation;
|
|
1136
1090
|
};
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1091
|
+
//#endregion
|
|
1092
|
+
//#region src/shared/media/data.d.ts
|
|
1093
|
+
interface MediaDataTransformation {
|
|
1094
|
+
offset?: {
|
|
1095
|
+
pixels: {
|
|
1096
|
+
x: number;
|
|
1097
|
+
y: number;
|
|
1098
|
+
};
|
|
1099
|
+
emus?: {
|
|
1100
|
+
x: number;
|
|
1101
|
+
y: number;
|
|
1102
|
+
};
|
|
1146
1103
|
};
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1104
|
+
pixels: {
|
|
1105
|
+
x: number;
|
|
1106
|
+
y: number;
|
|
1150
1107
|
};
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1108
|
+
emus: {
|
|
1109
|
+
x: number;
|
|
1110
|
+
y: number;
|
|
1111
|
+
};
|
|
1112
|
+
flip?: {
|
|
1113
|
+
vertical?: boolean;
|
|
1114
|
+
horizontal?: boolean;
|
|
1115
|
+
};
|
|
1116
|
+
rotation?: number;
|
|
1117
|
+
}
|
|
1118
|
+
interface CoreMediaData {
|
|
1119
|
+
fileName: string;
|
|
1120
|
+
transformation: MediaDataTransformation;
|
|
1121
|
+
data: Uint8Array;
|
|
1122
|
+
srcRect?: SourceRectangleOptions;
|
|
1123
|
+
}
|
|
1124
|
+
interface RegularMediaData {
|
|
1125
|
+
type: "jpg" | "png" | "gif" | "bmp" | "tif" | "ico" | "emf" | "wmf";
|
|
1126
|
+
}
|
|
1127
|
+
interface SvgMediaData {
|
|
1128
|
+
type: "svg";
|
|
1129
|
+
fallback: RegularMediaData & CoreMediaData;
|
|
1130
|
+
}
|
|
1131
|
+
interface WpsMediaData {
|
|
1132
|
+
type: "wps";
|
|
1133
|
+
transformation: MediaDataTransformation;
|
|
1134
|
+
data: WpsShapeCoreOptions;
|
|
1135
|
+
}
|
|
1136
|
+
interface WpgCommonMediaData {
|
|
1137
|
+
outline?: OutlineOptions;
|
|
1138
|
+
fill?: FillOptions;
|
|
1139
|
+
}
|
|
1140
|
+
type GroupChildMediaData = (WpsMediaData | MediaData) & WpgCommonMediaData;
|
|
1141
|
+
interface WpgMediaData {
|
|
1142
|
+
type: "wpg";
|
|
1143
|
+
transformation: MediaDataTransformation;
|
|
1144
|
+
children: GroupChildMediaData[];
|
|
1145
|
+
chOff?: ChildOffset;
|
|
1146
|
+
chExt?: ChildExtent;
|
|
1147
|
+
fill?: FillOptions;
|
|
1148
|
+
effects?: EffectListOptions;
|
|
1185
1149
|
}
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1150
|
+
interface ChartMediaData {
|
|
1151
|
+
type: "chart";
|
|
1152
|
+
transformation: MediaDataTransformation;
|
|
1153
|
+
chartKey: string;
|
|
1154
|
+
}
|
|
1155
|
+
interface SmartArtMediaData {
|
|
1156
|
+
type: "smartart";
|
|
1157
|
+
transformation: MediaDataTransformation;
|
|
1158
|
+
smartArtKey: string;
|
|
1159
|
+
}
|
|
1160
|
+
type ExtendedMediaData = MediaData | WpsMediaData | WpgMediaData | ChartMediaData | SmartArtMediaData;
|
|
1161
|
+
type MediaData = (RegularMediaData | SvgMediaData) & CoreMediaData;
|
|
1162
|
+
declare const WORKAROUND2 = "";
|
|
1194
1163
|
//#endregion
|
|
1195
|
-
//#region src/
|
|
1196
|
-
interface
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1164
|
+
//#region src/shared/media/media.d.ts
|
|
1165
|
+
interface MediaTransformation {
|
|
1166
|
+
offset?: {
|
|
1167
|
+
top?: number | UniversalMeasure;
|
|
1168
|
+
left?: number | UniversalMeasure;
|
|
1169
|
+
};
|
|
1170
|
+
width: number | UniversalMeasure;
|
|
1171
|
+
height: number | UniversalMeasure;
|
|
1172
|
+
flip?: {
|
|
1173
|
+
vertical?: boolean;
|
|
1174
|
+
horizontal?: boolean;
|
|
1175
|
+
};
|
|
1176
|
+
rotation?: number;
|
|
1200
1177
|
}
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1178
|
+
declare const createTransformation: (options: MediaTransformation) => MediaDataTransformation;
|
|
1179
|
+
declare class Media {
|
|
1180
|
+
private map;
|
|
1181
|
+
constructor();
|
|
1182
|
+
addImage(key: string, mediaData: MediaData): void;
|
|
1183
|
+
get array(): MediaData[];
|
|
1184
|
+
}
|
|
1185
|
+
//#endregion
|
|
1186
|
+
//#region src/parts/drawing/text-wrap/text-wrapping.d.ts
|
|
1187
|
+
declare const TextWrappingType: {
|
|
1188
|
+
readonly NONE: 0;
|
|
1189
|
+
readonly SQUARE: 1;
|
|
1190
|
+
readonly TIGHT: 2;
|
|
1191
|
+
readonly TOP_AND_BOTTOM: 3;
|
|
1192
|
+
readonly THROUGH: 4;
|
|
1204
1193
|
};
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
readonly
|
|
1208
|
-
readonly
|
|
1209
|
-
readonly
|
|
1210
|
-
readonly CURRENT_SECTION: "SECTION";
|
|
1194
|
+
declare const TextWrappingSide: {
|
|
1195
|
+
readonly BOTH_SIDES: "bothSides";
|
|
1196
|
+
readonly LEFT: "left";
|
|
1197
|
+
readonly RIGHT: "right";
|
|
1198
|
+
readonly LARGEST: "largest";
|
|
1211
1199
|
};
|
|
1200
|
+
interface TextWrapping {
|
|
1201
|
+
type: (typeof TextWrappingType)[keyof typeof TextWrappingType];
|
|
1202
|
+
side?: (typeof TextWrappingSide)[keyof typeof TextWrappingSide];
|
|
1203
|
+
margins?: Distance;
|
|
1204
|
+
}
|
|
1212
1205
|
//#endregion
|
|
1213
|
-
//#region src/parts/
|
|
1214
|
-
declare const
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1206
|
+
//#region src/parts/drawing/text-wrap/wrap-tight.d.ts
|
|
1207
|
+
declare const createWrapTight: (textWrapping: TextWrapping, margins: Margins | undefined, extent: {
|
|
1208
|
+
x: number;
|
|
1209
|
+
y: number;
|
|
1210
|
+
}) => string;
|
|
1211
|
+
//#endregion
|
|
1212
|
+
//#region src/parts/drawing/text-wrap/wrap-through.d.ts
|
|
1213
|
+
declare const createWrapThrough: (textWrapping: TextWrapping, margins: Margins | undefined, extent: {
|
|
1214
|
+
x: number;
|
|
1215
|
+
y: number;
|
|
1216
|
+
}) => string;
|
|
1217
|
+
//#endregion
|
|
1218
|
+
//#region src/parts/drawing/floating/floating-position.d.ts
|
|
1219
|
+
declare const HorizontalPositionRelativeFrom: {
|
|
1220
|
+
readonly CHARACTER: "character";
|
|
1221
|
+
readonly COLUMN: "column";
|
|
1222
|
+
readonly INSIDE_MARGIN: "insideMargin";
|
|
1223
|
+
readonly LEFT_MARGIN: "leftMargin";
|
|
1224
|
+
readonly MARGIN: "margin";
|
|
1225
|
+
readonly OUTSIDE_MARGIN: "outsideMargin";
|
|
1226
|
+
readonly PAGE: "page";
|
|
1227
|
+
readonly RIGHT_MARGIN: "rightMargin";
|
|
1220
1228
|
};
|
|
1221
|
-
declare const
|
|
1222
|
-
readonly
|
|
1223
|
-
readonly
|
|
1224
|
-
readonly
|
|
1225
|
-
readonly
|
|
1226
|
-
readonly
|
|
1229
|
+
declare const VerticalPositionRelativeFrom: {
|
|
1230
|
+
readonly BOTTOM_MARGIN: "bottomMargin";
|
|
1231
|
+
readonly INSIDE_MARGIN: "insideMargin";
|
|
1232
|
+
readonly LINE: "line";
|
|
1233
|
+
readonly MARGIN: "margin";
|
|
1234
|
+
readonly OUTSIDE_MARGIN: "outsideMargin";
|
|
1235
|
+
readonly PAGE: "page";
|
|
1236
|
+
readonly PARAGRAPH: "paragraph";
|
|
1237
|
+
readonly TOP_MARGIN: "topMargin";
|
|
1227
1238
|
};
|
|
1228
|
-
interface
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
autoSpaceDE?: boolean;
|
|
1255
|
-
textAlignment?: (typeof TextAlignmentType)[keyof typeof TextAlignmentType];
|
|
1256
|
-
textboxTightWrap?: (typeof TextboxTightWrapType)[keyof typeof TextboxTightWrapType];
|
|
1257
|
-
textDirection?: "lr" | "rl" | "tb" | "tbV" | "rlV" | "lrV";
|
|
1258
|
-
outlineLevel?: number;
|
|
1259
|
-
divId?: number;
|
|
1260
|
-
cnfStyle?: CnfConditionalOptions;
|
|
1239
|
+
interface HorizontalPositionOptions {
|
|
1240
|
+
relative?: (typeof HorizontalPositionRelativeFrom)[keyof typeof HorizontalPositionRelativeFrom];
|
|
1241
|
+
align?: (typeof HorizontalPositionAlign)[keyof typeof HorizontalPositionAlign];
|
|
1242
|
+
offset?: number | UniversalMeasure;
|
|
1243
|
+
}
|
|
1244
|
+
interface VerticalPositionOptions {
|
|
1245
|
+
relative?: (typeof VerticalPositionRelativeFrom)[keyof typeof VerticalPositionRelativeFrom];
|
|
1246
|
+
align?: (typeof VerticalPositionAlign)[keyof typeof VerticalPositionAlign];
|
|
1247
|
+
offset?: number | UniversalMeasure;
|
|
1248
|
+
}
|
|
1249
|
+
interface Margins {
|
|
1250
|
+
left?: number | UniversalMeasure;
|
|
1251
|
+
bottom?: number | UniversalMeasure;
|
|
1252
|
+
top?: number | UniversalMeasure;
|
|
1253
|
+
right?: number | UniversalMeasure;
|
|
1254
|
+
}
|
|
1255
|
+
interface Floating {
|
|
1256
|
+
horizontalPosition: HorizontalPositionOptions;
|
|
1257
|
+
verticalPosition: VerticalPositionOptions;
|
|
1258
|
+
allowOverlap?: boolean;
|
|
1259
|
+
lockAnchor?: boolean;
|
|
1260
|
+
behindDocument?: boolean;
|
|
1261
|
+
layoutInCell?: boolean;
|
|
1262
|
+
margins?: Margins;
|
|
1263
|
+
wrap?: TextWrapping;
|
|
1264
|
+
zIndex?: number;
|
|
1261
1265
|
}
|
|
1262
|
-
type IParagraphStylePropertiesOptions = {
|
|
1263
|
-
border?: BordersOptions;
|
|
1264
|
-
shading?: ShadingAttributesProperties;
|
|
1265
|
-
numbering?: {
|
|
1266
|
-
reference: string;
|
|
1267
|
-
level: number;
|
|
1268
|
-
instance?: number;
|
|
1269
|
-
custom?: boolean;
|
|
1270
|
-
numberingChange?: {
|
|
1271
|
-
original: string;
|
|
1272
|
-
id: string;
|
|
1273
|
-
author: string;
|
|
1274
|
-
date?: string;
|
|
1275
|
-
};
|
|
1276
|
-
} | false;
|
|
1277
|
-
} & LevelParagraphStylePropertiesOptions;
|
|
1278
|
-
type IParagraphPropertiesOptionsBase = {
|
|
1279
|
-
heading?: (typeof HeadingLevel)[keyof typeof HeadingLevel];
|
|
1280
|
-
style?: string;
|
|
1281
|
-
bullet?: {
|
|
1282
|
-
level: number;
|
|
1283
|
-
};
|
|
1284
|
-
run?: IParagraphRunOptions;
|
|
1285
|
-
} & IParagraphStylePropertiesOptions;
|
|
1286
|
-
type IParagraphPropertiesChangeOptions = ChangedAttributesProperties & IParagraphPropertiesOptionsBase;
|
|
1287
|
-
type ParagraphPropertiesOptions = {
|
|
1288
|
-
revision?: IParagraphPropertiesChangeOptions;
|
|
1289
|
-
includeIfEmpty?: boolean;
|
|
1290
|
-
} & IParagraphPropertiesOptionsBase;
|
|
1291
1266
|
//#endregion
|
|
1292
|
-
//#region src/parts/
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1267
|
+
//#region src/parts/drawing/floating/horizontal-position.d.ts
|
|
1268
|
+
declare const createHorizontalPosition: ({
|
|
1269
|
+
relative,
|
|
1270
|
+
align,
|
|
1271
|
+
offset
|
|
1272
|
+
}: HorizontalPositionOptions) => string;
|
|
1273
|
+
//#endregion
|
|
1274
|
+
//#region src/parts/drawing/floating/vertical-position.d.ts
|
|
1275
|
+
declare const createVerticalPosition: ({
|
|
1276
|
+
relative,
|
|
1277
|
+
align,
|
|
1278
|
+
offset
|
|
1279
|
+
}: VerticalPositionOptions) => string;
|
|
1280
|
+
//#endregion
|
|
1281
|
+
//#region src/parts/drawing/drawing.d.ts
|
|
1282
|
+
interface Distance {
|
|
1283
|
+
distT?: number;
|
|
1284
|
+
distB?: number;
|
|
1285
|
+
distL?: number;
|
|
1286
|
+
distR?: number;
|
|
1287
|
+
}
|
|
1288
|
+
interface DrawingOptions {
|
|
1289
|
+
floating?: Floating;
|
|
1290
|
+
docProperties?: DocPropertiesOptions;
|
|
1291
|
+
outline?: OutlineOptions;
|
|
1292
|
+
fill?: FillOptions;
|
|
1293
|
+
effects?: EffectListOptions;
|
|
1294
|
+
blipEffects?: BlipEffectsOptions;
|
|
1295
|
+
tile?: TileOptions;
|
|
1296
|
+
}
|
|
1297
|
+
//#endregion
|
|
1298
|
+
//#region src/parts/drawing/descriptor.d.ts
|
|
1299
|
+
interface DrawingDescriptorOptions {
|
|
1300
|
+
mediaData: ExtendedMediaData;
|
|
1301
|
+
docProperties?: DocPropertiesOptions;
|
|
1302
|
+
floating?: Floating;
|
|
1303
|
+
outline?: OutlineOptions;
|
|
1304
|
+
fill?: FillOptions;
|
|
1305
|
+
effects?: EffectListOptions;
|
|
1306
|
+
blipEffects?: BlipEffectsOptions;
|
|
1307
|
+
tile?: TileOptions;
|
|
1308
|
+
}
|
|
1309
|
+
declare const resetDrawingIdGen: () => void;
|
|
1310
|
+
declare const drawingDesc: CustomDescriptor<DrawingDescriptorOptions, BodyContext>;
|
|
1297
1311
|
//#endregion
|
|
1298
1312
|
//#region src/parts/paragraph/run/image-run.d.ts
|
|
1299
1313
|
interface CoreImageOptions {
|
|
@@ -1316,8 +1330,8 @@ interface SvgMediaOptions {
|
|
|
1316
1330
|
data: DataType;
|
|
1317
1331
|
fallback: RegularImageOptions;
|
|
1318
1332
|
}
|
|
1319
|
-
type
|
|
1320
|
-
declare const createImageData: (data: Uint8Array, transformation: MediaTransformation, key: string, srcRect?: SourceRectangleOptions) => Pick<
|
|
1333
|
+
type ImageOptions = (RegularImageOptions | SvgMediaOptions) & CoreImageOptions;
|
|
1334
|
+
declare const createImageData: (data: Uint8Array, transformation: MediaTransformation, key: string, srcRect?: SourceRectangleOptions) => Pick<MediaData, "data" | "fileName" | "transformation" | "srcRect">;
|
|
1321
1335
|
//#endregion
|
|
1322
1336
|
//#region src/parts/paragraph/run/chart-run.d.ts
|
|
1323
1337
|
interface ChartOptions extends ChartSpaceOptions {
|
|
@@ -1326,24 +1340,41 @@ interface ChartOptions extends ChartSpaceOptions {
|
|
|
1326
1340
|
altText?: DocPropertiesOptions;
|
|
1327
1341
|
}
|
|
1328
1342
|
//#endregion
|
|
1343
|
+
//#region src/parts/paragraph/run/smartart-run.d.ts
|
|
1344
|
+
interface SmartArtNode {
|
|
1345
|
+
text: string;
|
|
1346
|
+
children?: SmartArtNode[];
|
|
1347
|
+
}
|
|
1348
|
+
interface SmartArtOptions {
|
|
1349
|
+
data: {
|
|
1350
|
+
nodes: SmartArtNode[];
|
|
1351
|
+
};
|
|
1352
|
+
transformation: MediaTransformation;
|
|
1353
|
+
floating?: Floating;
|
|
1354
|
+
altText?: DocPropertiesOptions;
|
|
1355
|
+
layout?: string;
|
|
1356
|
+
style?: string;
|
|
1357
|
+
color?: string;
|
|
1358
|
+
}
|
|
1359
|
+
//#endregion
|
|
1329
1360
|
//#region src/parts/paragraph/run/wps-shape-run.d.ts
|
|
1330
1361
|
interface CoreShapeOptions {
|
|
1331
1362
|
transformation: MediaTransformation;
|
|
1332
1363
|
floating?: Floating;
|
|
1333
1364
|
altText?: DocPropertiesOptions;
|
|
1334
1365
|
}
|
|
1335
|
-
type
|
|
1366
|
+
type WpsShapeRunOptions = WpsShapeCoreOptions & {
|
|
1336
1367
|
type: "wps";
|
|
1337
1368
|
} & CoreShapeOptions;
|
|
1338
1369
|
//#endregion
|
|
1339
1370
|
//#region src/parts/paragraph/run/wpg-group-run.d.ts
|
|
1340
1371
|
interface CoreGroupOptions {
|
|
1341
|
-
children:
|
|
1372
|
+
children: GroupChildMediaData[];
|
|
1342
1373
|
transformation: MediaTransformation;
|
|
1343
1374
|
floating?: Floating;
|
|
1344
1375
|
altText?: DocPropertiesOptions;
|
|
1345
1376
|
}
|
|
1346
|
-
type
|
|
1377
|
+
type WpgGroupRunOptions = {
|
|
1347
1378
|
type: "wpg";
|
|
1348
1379
|
} & CoreGroupOptions;
|
|
1349
1380
|
//#endregion
|
|
@@ -1484,15 +1515,15 @@ interface SmartArtChild {
|
|
|
1484
1515
|
smartArt: SmartArtOptions;
|
|
1485
1516
|
}
|
|
1486
1517
|
interface ImageChild {
|
|
1487
|
-
image:
|
|
1518
|
+
image: ImageOptions;
|
|
1488
1519
|
}
|
|
1489
1520
|
interface MathChild {
|
|
1490
1521
|
math: {
|
|
1491
1522
|
children?: MathInput[];
|
|
1492
1523
|
};
|
|
1493
1524
|
}
|
|
1494
|
-
type
|
|
1495
|
-
symbolRun:
|
|
1525
|
+
type ParagraphChild = ChartChild | SmartArtChild | ImageChild | MathChild | {
|
|
1526
|
+
symbolRun: SymbolRunOptions;
|
|
1496
1527
|
} | {
|
|
1497
1528
|
footnoteReference: number;
|
|
1498
1529
|
} | {
|
|
@@ -1526,7 +1557,7 @@ type IParagraphJsonChild = ChartChild | SmartArtChild | ImageChild | MathChild |
|
|
|
1526
1557
|
} | {
|
|
1527
1558
|
bookmarkEnd: number;
|
|
1528
1559
|
} | {
|
|
1529
|
-
wpsShape: Omit<
|
|
1560
|
+
wpsShape: Omit<WpsShapeRunOptions, "type">;
|
|
1530
1561
|
} | {
|
|
1531
1562
|
proofErr: "spellStart" | "spellEnd" | "gramStart" | "gramEnd";
|
|
1532
1563
|
} | {
|
|
@@ -1647,12 +1678,12 @@ type IParagraphJsonChild = ChartChild | SmartArtChild | ImageChild | MathChild |
|
|
|
1647
1678
|
uri?: string;
|
|
1648
1679
|
}>;
|
|
1649
1680
|
};
|
|
1650
|
-
children?: (
|
|
1681
|
+
children?: (ParagraphChild | string)[];
|
|
1651
1682
|
};
|
|
1652
|
-
};
|
|
1683
|
+
} | RunOptions;
|
|
1653
1684
|
type ParagraphOptions = {
|
|
1654
1685
|
text?: string;
|
|
1655
|
-
children?: (
|
|
1686
|
+
children?: (ParagraphChild | string)[];
|
|
1656
1687
|
rsidR?: string;
|
|
1657
1688
|
rsidRPr?: string;
|
|
1658
1689
|
rsidRDefault?: string;
|
|
@@ -1773,9 +1804,9 @@ interface TablePropertiesOptionsBase {
|
|
|
1773
1804
|
caption?: string;
|
|
1774
1805
|
description?: string;
|
|
1775
1806
|
}
|
|
1776
|
-
type
|
|
1777
|
-
type
|
|
1778
|
-
revision?:
|
|
1807
|
+
type TablePropertiesChangeOptions = TablePropertiesOptions & ChangedAttributesProperties;
|
|
1808
|
+
type TablePropertiesOptions = {
|
|
1809
|
+
revision?: TablePropertiesChangeOptions;
|
|
1779
1810
|
includeIfEmpty?: boolean;
|
|
1780
1811
|
} & TablePropertiesOptionsBase;
|
|
1781
1812
|
//#endregion
|
|
@@ -1847,13 +1878,13 @@ interface TableRowPropertiesOptionsBase {
|
|
|
1847
1878
|
rowAlignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
1848
1879
|
hidden?: boolean;
|
|
1849
1880
|
}
|
|
1850
|
-
type
|
|
1881
|
+
type TableRowPropertiesOptions = TableRowPropertiesOptionsBase & {
|
|
1851
1882
|
insertion?: ChangedAttributesProperties;
|
|
1852
1883
|
deletion?: ChangedAttributesProperties;
|
|
1853
|
-
revision?:
|
|
1884
|
+
revision?: TableRowPropertiesChangeOptions;
|
|
1854
1885
|
includeIfEmpty?: boolean;
|
|
1855
1886
|
};
|
|
1856
|
-
type
|
|
1887
|
+
type TableRowPropertiesChangeOptions = TableRowPropertiesOptionsBase & ChangedAttributesProperties;
|
|
1857
1888
|
//#endregion
|
|
1858
1889
|
//#region src/parts/table/table-row/table-row.d.ts
|
|
1859
1890
|
type TableRowOptions = {
|
|
@@ -1863,7 +1894,7 @@ type TableRowOptions = {
|
|
|
1863
1894
|
rsidR?: string;
|
|
1864
1895
|
rsidDel?: string;
|
|
1865
1896
|
rsidTr?: string;
|
|
1866
|
-
} &
|
|
1897
|
+
} & TableRowPropertiesOptions;
|
|
1867
1898
|
//#endregion
|
|
1868
1899
|
//#region src/parts/table/table.d.ts
|
|
1869
1900
|
interface TableOptions {
|
|
@@ -1885,7 +1916,7 @@ interface TableOptions {
|
|
|
1885
1916
|
styleColBandSize?: number;
|
|
1886
1917
|
caption?: string;
|
|
1887
1918
|
description?: string;
|
|
1888
|
-
revision?:
|
|
1919
|
+
revision?: TablePropertiesChangeOptions;
|
|
1889
1920
|
}
|
|
1890
1921
|
//#endregion
|
|
1891
1922
|
//#region src/parts/table/descriptor.d.ts
|
|
@@ -1921,18 +1952,18 @@ interface TableCellPropertiesOptionsBase {
|
|
|
1921
1952
|
headers?: string[];
|
|
1922
1953
|
insertion?: ChangedAttributesProperties;
|
|
1923
1954
|
deletion?: ChangedAttributesProperties;
|
|
1924
|
-
cellMerge?:
|
|
1955
|
+
cellMerge?: CellMergeAttributes;
|
|
1925
1956
|
}
|
|
1926
|
-
type
|
|
1927
|
-
revision?:
|
|
1957
|
+
type TableCellPropertiesOptions = {
|
|
1958
|
+
revision?: TableCellPropertiesChangeOptions;
|
|
1928
1959
|
includeIfEmpty?: boolean;
|
|
1929
1960
|
} & TableCellPropertiesOptionsBase;
|
|
1930
|
-
type
|
|
1961
|
+
type TableCellPropertiesChangeOptions = TableCellPropertiesOptionsBase & ChangedAttributesProperties;
|
|
1931
1962
|
//#endregion
|
|
1932
1963
|
//#region src/parts/table/table-cell/table-cell.d.ts
|
|
1933
1964
|
type TableCellOptions = {
|
|
1934
1965
|
children: SectionChild[];
|
|
1935
|
-
} &
|
|
1966
|
+
} & TableCellPropertiesOptions;
|
|
1936
1967
|
//#endregion
|
|
1937
1968
|
//#region src/parts/custom-xml/custom-xml.d.ts
|
|
1938
1969
|
interface CustomXmlDataBindingOptions {
|
|
@@ -2133,9 +2164,9 @@ declare const HeaderFooterType: {
|
|
|
2133
2164
|
declare const createHeaderFooterReference: (type: (typeof HeaderFooterType)[keyof typeof HeaderFooterType], options: HeaderFooterReferenceOptions) => string;
|
|
2134
2165
|
//#endregion
|
|
2135
2166
|
//#region src/parts/document/body/section-properties/descriptor.d.ts
|
|
2136
|
-
declare const sectionPropertiesDesc: CustomDescriptor<
|
|
2137
|
-
declare function stringifySectionPropertiesXml(opts:
|
|
2138
|
-
declare function parseSectionPropertiesEl(el: Element): Partial<
|
|
2167
|
+
declare const sectionPropertiesDesc: CustomDescriptor<SectionPropertiesOptions, BodyContext>;
|
|
2168
|
+
declare function stringifySectionPropertiesXml(opts: SectionPropertiesOptions): string;
|
|
2169
|
+
declare function parseSectionPropertiesEl(el: Element): Partial<SectionPropertiesOptions>;
|
|
2139
2170
|
//#endregion
|
|
2140
2171
|
//#region src/parts/sub-doc/sub-doc.d.ts
|
|
2141
2172
|
interface SubDocOptions {
|
|
@@ -2317,7 +2348,7 @@ interface SectionOptions {
|
|
|
2317
2348
|
first?: SectionChild[];
|
|
2318
2349
|
even?: SectionChild[];
|
|
2319
2350
|
};
|
|
2320
|
-
properties?:
|
|
2351
|
+
properties?: SectionPropertiesOptions;
|
|
2321
2352
|
children: SectionChild[];
|
|
2322
2353
|
}
|
|
2323
2354
|
//#endregion
|
|
@@ -2437,9 +2468,9 @@ interface SectionPropertiesOptionsBase {
|
|
|
2437
2468
|
endnotePr?: EndnotePropertiesOptions$1;
|
|
2438
2469
|
printerSettingsId?: string;
|
|
2439
2470
|
}
|
|
2440
|
-
type
|
|
2441
|
-
type
|
|
2442
|
-
revision?:
|
|
2471
|
+
type SectionPropertiesChangeOptions = ChangedAttributesProperties & SectionPropertiesOptionsBase;
|
|
2472
|
+
type SectionPropertiesOptions = {
|
|
2473
|
+
revision?: SectionPropertiesChangeOptions;
|
|
2443
2474
|
} & SectionPropertiesOptionsBase;
|
|
2444
2475
|
declare const sectionMarginDefaults: {
|
|
2445
2476
|
TOP: number;
|
|
@@ -3064,32 +3095,32 @@ interface MathPropertiesOptions {
|
|
|
3064
3095
|
//#region src/parts/styles/factory.d.ts
|
|
3065
3096
|
interface DefaultStylesOptions {
|
|
3066
3097
|
document?: DocumentDefaultsOptions;
|
|
3067
|
-
title?:
|
|
3068
|
-
subtitle?:
|
|
3069
|
-
heading1?:
|
|
3070
|
-
heading2?:
|
|
3071
|
-
heading3?:
|
|
3072
|
-
heading4?:
|
|
3073
|
-
heading5?:
|
|
3074
|
-
heading6?:
|
|
3075
|
-
heading7?:
|
|
3076
|
-
heading8?:
|
|
3077
|
-
heading9?:
|
|
3078
|
-
strong?:
|
|
3079
|
-
emphasis?:
|
|
3080
|
-
listParagraph?:
|
|
3081
|
-
quote?:
|
|
3082
|
-
intenseQuote?:
|
|
3083
|
-
hyperlink?:
|
|
3084
|
-
footnoteReference?:
|
|
3085
|
-
footnoteText?:
|
|
3086
|
-
footnoteTextChar?:
|
|
3087
|
-
endnoteReference?:
|
|
3088
|
-
endnoteText?:
|
|
3089
|
-
endnoteTextChar?:
|
|
3098
|
+
title?: BaseParagraphStyleOptions;
|
|
3099
|
+
subtitle?: BaseParagraphStyleOptions;
|
|
3100
|
+
heading1?: BaseParagraphStyleOptions;
|
|
3101
|
+
heading2?: BaseParagraphStyleOptions;
|
|
3102
|
+
heading3?: BaseParagraphStyleOptions;
|
|
3103
|
+
heading4?: BaseParagraphStyleOptions;
|
|
3104
|
+
heading5?: BaseParagraphStyleOptions;
|
|
3105
|
+
heading6?: BaseParagraphStyleOptions;
|
|
3106
|
+
heading7?: BaseParagraphStyleOptions;
|
|
3107
|
+
heading8?: BaseParagraphStyleOptions;
|
|
3108
|
+
heading9?: BaseParagraphStyleOptions;
|
|
3109
|
+
strong?: BaseParagraphStyleOptions;
|
|
3110
|
+
emphasis?: BaseParagraphStyleOptions;
|
|
3111
|
+
listParagraph?: BaseParagraphStyleOptions;
|
|
3112
|
+
quote?: BaseParagraphStyleOptions;
|
|
3113
|
+
intenseQuote?: BaseParagraphStyleOptions;
|
|
3114
|
+
hyperlink?: BaseCharacterStyleOptions;
|
|
3115
|
+
footnoteReference?: BaseCharacterStyleOptions;
|
|
3116
|
+
footnoteText?: BaseParagraphStyleOptions;
|
|
3117
|
+
footnoteTextChar?: BaseCharacterStyleOptions;
|
|
3118
|
+
endnoteReference?: BaseCharacterStyleOptions;
|
|
3119
|
+
endnoteText?: BaseParagraphStyleOptions;
|
|
3120
|
+
endnoteTextChar?: BaseCharacterStyleOptions;
|
|
3090
3121
|
}
|
|
3091
3122
|
interface DocumentDefaultsOptions {
|
|
3092
|
-
paragraph?:
|
|
3123
|
+
paragraph?: ParagraphStylePropertiesOptions;
|
|
3093
3124
|
run?: RunStylePropertiesOptions;
|
|
3094
3125
|
}
|
|
3095
3126
|
interface StyleOptions {
|
|
@@ -3108,13 +3139,13 @@ interface StyleOptions {
|
|
|
3108
3139
|
personalCompose?: boolean;
|
|
3109
3140
|
personalReply?: boolean;
|
|
3110
3141
|
}
|
|
3111
|
-
type
|
|
3112
|
-
paragraph?:
|
|
3142
|
+
type BaseParagraphStyleOptions = {
|
|
3143
|
+
paragraph?: ParagraphStylePropertiesOptions;
|
|
3113
3144
|
run?: RunStylePropertiesOptions;
|
|
3114
3145
|
} & StyleOptions & {
|
|
3115
3146
|
id?: string;
|
|
3116
3147
|
};
|
|
3117
|
-
type
|
|
3148
|
+
type BaseCharacterStyleOptions = {
|
|
3118
3149
|
run?: RunStylePropertiesOptions;
|
|
3119
3150
|
} & StyleOptions & {
|
|
3120
3151
|
id?: string;
|
|
@@ -3127,10 +3158,10 @@ interface StylesOptions {
|
|
|
3127
3158
|
importedStyles?: {
|
|
3128
3159
|
_raw: string;
|
|
3129
3160
|
}[];
|
|
3130
|
-
paragraphStyles?: (
|
|
3161
|
+
paragraphStyles?: (BaseParagraphStyleOptions & {
|
|
3131
3162
|
id: string;
|
|
3132
3163
|
})[];
|
|
3133
|
-
characterStyles?: (
|
|
3164
|
+
characterStyles?: (BaseCharacterStyleOptions & {
|
|
3134
3165
|
id: string;
|
|
3135
3166
|
})[];
|
|
3136
3167
|
}
|
|
@@ -3277,6 +3308,8 @@ interface DocxPartRefs {
|
|
|
3277
3308
|
media: Map<string, string>;
|
|
3278
3309
|
afChunks: Map<string, string>;
|
|
3279
3310
|
subDocs: Map<string, string>;
|
|
3311
|
+
bibliography?: string;
|
|
3312
|
+
glossary?: string;
|
|
3280
3313
|
}
|
|
3281
3314
|
interface DocxDocument {
|
|
3282
3315
|
doc: ParsedArchive;
|
|
@@ -3291,6 +3324,7 @@ interface DocxDocument {
|
|
|
3291
3324
|
coreProps?: string;
|
|
3292
3325
|
appProps?: string;
|
|
3293
3326
|
customProps?: string;
|
|
3327
|
+
contentTypes?: Element;
|
|
3294
3328
|
}
|
|
3295
3329
|
declare function parseDocument(data: DataType): DocumentOptions;
|
|
3296
3330
|
declare function parseDocx(data: DataType): DocxDocument;
|
|
@@ -3336,7 +3370,7 @@ declare class DocxWriteContext implements WriteContext {
|
|
|
3336
3370
|
glossaryOptions: GlossaryDocumentOptions | undefined;
|
|
3337
3371
|
webSettings: WebSettingsOptions | undefined;
|
|
3338
3372
|
private _sectionProperties;
|
|
3339
|
-
get sectionProperties(): readonly
|
|
3373
|
+
get sectionProperties(): readonly SectionPropertiesOptions[];
|
|
3340
3374
|
addRelationship(_type: string, _target: string, _mode?: string): string;
|
|
3341
3375
|
addMedia(_data: Uint8Array, _type: string): string;
|
|
3342
3376
|
private _headers;
|
|
@@ -3460,6 +3494,7 @@ interface DocumentOptions {
|
|
|
3460
3494
|
glossary?: GlossaryDocumentOptions;
|
|
3461
3495
|
settings?: SettingsOptions;
|
|
3462
3496
|
webSettings?: WebSettingsOptions;
|
|
3497
|
+
contentTypes?: ContentTypesInput;
|
|
3463
3498
|
}
|
|
3464
3499
|
interface CorePropertiesInput {
|
|
3465
3500
|
title?: string;
|
|
@@ -3472,5 +3507,5 @@ interface CorePropertiesInput {
|
|
|
3472
3507
|
}
|
|
3473
3508
|
declare const corePropertiesDesc: CustomDescriptor<CorePropertiesInput>;
|
|
3474
3509
|
//#endregion
|
|
3475
|
-
export { SettingsOptions as $,
|
|
3476
|
-
//# sourceMappingURL=core-properties-
|
|
3510
|
+
export { SettingsOptions as $, buildContentTypes as $a, MonthLong as $i, ImageChild as $n, ExtendedMediaData as $r, PageTextDirectionType as $t, StylesOptions as A, BreakTypeValue as Aa, ParagraphStylePropertiesOptions as Ai, TableRowPropertiesChangeOptions as An, createImageData as Ar, SdtDataBindingOptions as At, HyphenationOptions as B, VerticalAlignTable as Ba, RunStylePropertiesOptions as Bi, TablePropertiesOptionsBase as Bn, HorizontalPositionRelativeFrom as Br, SubDocOptions as Bt, WebSettingsOptions as C, TabStopDefinition as Ca, WpgGroupCoreOptions as Ci, CustomXmlRunOptions as Cn, SimpleFieldOptions as Cr, DocumentAttributeNamespaces as Ct, SubDocCollection as D, LineRuleType as Da, ParagraphPropertiesChangeOptions as Di, TableOptions as Dn, SmartArtOptions as Dr, stringifyTableOfContents as Dt, webSettingsDesc as E, HeadingLevel as Ea, LevelParagraphStylePropertiesOptions as Ei, tableDesc as En, SmartArtNode as Er, VmlShapeStyle as Et, CaptionOptions as F, BorderStyle as Fa, RunOptions as Fi, TextDirection as Fn, DrawingOptions as Fr, SdtLock as Ft, MailMergeSourceType as G, ShadingType as Ga, AnnotationReference as Gi, RelativeVerticalPosition as Gn, createWrapTight as Gr, HeaderFooterReferenceType as Gt, MailMergeDest as H, CellMergeAttributes as Ha, UnderlineType as Hi, TableLayoutType as Hn, VerticalPositionOptions as Hr, sectionPropertiesDesc as Ht, CaptionsOptions as I, AlignmentType as Ia, HighlightColor as Ii, VerticalMergeType as In, createVerticalPosition as Ir, SdtPropertiesOptions as It, OdsoFieldType as J, AltChunkData as Ja, DayLong as Ji, TABLE_BORDERS_NONE as Jn, TextWrappingType as Jr, SectionType as Jt, MathPropertiesOptions as K, AltChunkOptions as Ka, CarriageReturn as Ki, TableAnchorType as Kn, TextWrapping as Kr, HeaderFooterType as Kt, DocumentProtectionOptions as L, SectionVerticalAlign as La, ParagraphRunPropertiesOptions as Li, TablePropertyExOptions as Ln, createHorizontalPosition as Lr, SdtTextOptions as Lt, buildStyleCache as M, CnfConditionalOptions as Ma, TextboxTightWrapType as Mi, TableRowPropertiesOptionsBase as Mn, drawingDesc as Mr, SdtDateOptions as Mt, parseStyleDefinitions as N, BordersOptions as Na, PageNumber as Ni, HeightRule as Nn, resetDrawingIdGen as Nr, SdtDropDownListOptions as Nt, SubDocData as O, SpacingProperties as Oa, ParagraphPropertiesOptions as Oi, TableRowOptions as On, ChartOptions as Or, parseToc as Ot, AutoCaptionOptions as P, BorderOptions as Pa, ParagraphRunOptions as Pi, TableCellBordersOptions as Pn, Distance as Pr, SdtListItem as Pt, RsidsOptions as Q, ContentTypesInput as Qa, LastRenderedPageBreak as Qi, ChartChild as Qn, ChartMediaData as Qr, createLineNumberType as Qt, EndnotePropertiesOptions as R, TableVerticalAlign as Ra, RunPropertiesChangeOptions as Ri, TablePropertiesChangeOptions as Rn, Floating as Rr, StyleLevel as Rt, WebSettingsInput as S, LeaderType as Sa, GroupChild as Si, CustomXmlRowOptions as Sn, CommentsOptions as Sr, DocumentAttributeNamespace as St, framesetXml as T, TabStopType as Ta, SymbolRunOptions as Ti, setTableParseChild as Tn, WpsShapeRunOptions as Tr, SectionOptions as Tt, MailMergeDocType as U, VerticalMergeRevisionType as Ua, FontAttributesProperties as Ui, OverlapType as Un, VerticalPositionRelativeFrom as Ur, stringifySectionPropertiesXml as Ut, MailMergeDataType as V, createVerticalAlign as Va, TextEffect as Vi, TableLookOptions as Vn, Margins as Vr, parseSectionPropertiesEl as Vt, MailMergeOptions as W, ShadingAttributesProperties as Wa, EmphasisMarkType as Wi, RelativeHorizontalPosition as Wn, createWrapThrough as Wr, HeaderFooterReferenceOptions as Wt, ReadModeInkLockDownOptions as X, ContentTypeDefault as Xa, EndnoteReference as Xi, TableWidthProperties as Xn, MediaTransformation as Xr, LineNumberAttributes as Xt, OdsoOptions as Y, CharacterSet as Ya, DayShort as Yi, TableBordersOptions as Yn, Media as Yr, createSectionType as Yt, RevisionViewOptions as Z, ContentTypeOverride as Za, FootnoteReferenceElement as Zi, WidthType as Zn, createTransformation as Zr, LineNumberRestartFormat as Zt, parseDocument as _, VerticalPositionAlign as _a, TextVerticalType as _i, CustomXmlAttributeOptions as _n, PositionalTabAlignment as _r, SectionPropertiesChangeOptions as _t, DocumentBackgroundOptions as a, Tab as aa, WpgCommonMediaData as ai, PageBordersOptions as an, ProofErrorTypeValue as ar, NumberingOptions as at, DivOptions as b, MathScriptType as ba, ChildExtent as bi, CustomXmlDataBindingOptions as bn, PositionalTabRelativeTo as br, sectionMarginDefaults as bt, customPropertiesDesc as c, AlignmentFrameOptions as ca, WpsShapeCoreOptions as ci, createPageNumberType as cn, DropDownListOptions as cr, LevelSuffix as ct, BodyContext as d, FrameOptions$1 as da, FlatTextOptions as di, createPageSize as dn, FormFieldTextOptions as dr, DocPartGallery as dt, MonthShort as ea, GroupChildMediaData as ei, PageMarginAttributes as en, contentTypesDesc as eo, MathChild as er, WriteProtectionOptions as et, DocxReadContext as f, FrameWrap as fa, NormalAutofitOptions as fi, DocGridAttributesProperties as fn, FormFieldTextType as fr, DocPartOptions as ft, parseArchive as g, SpaceType as ga, TextVertOverflowType as gi, ColumnAttributes as gn, RubyOptions as gr, HeaderFooterGroup as gt, DocxPartRefs as h, NumberFormat as ha, TextHorzOverflowType as hi, ColumnsAttributes as hn, RubyAlign as hr, glossaryDesc as ht, BackgroundImageOptions as i, SoftHyphen as ia, WORKAROUND2 as ii, PageBorderZOrder as in, ProofErrorType as ir, Numbering as it, buildNumberingCache as j, IndentAttributesProperties as ja, TextAlignmentType as ji, TableRowPropertiesOptions as jn, DrawingDescriptorOptions as jr, SdtDateMappingType as jt, Styles as k, BreakType as ka, ParagraphPropertiesOptionsBase as ki, CnfStyleOptions as kn, ImageOptions as kr, SdtComboBoxOptions as kt, settingsDesc as l, DropCapType as la, WpsShapeOptions as li, PageOrientation as ln, FormFieldCommonOptions as lr, LevelsOptions as lt, DocxDocument as m, HorizontalPositionAlign as ma, TextBodyWrappingType as mi, createDocumentGrid as mn, createFormFieldData as mr, GlossaryDocumentOptions as mt, DocumentOptions as n, PageNumberElement as na, MediaDataTransformation as ni, PageBorderDisplay as nn, SourceTypeOptions as no, ParagraphOptions as nr, ConcreteNumberingOptions as nt, CustomPropertiesInput as o, YearLong as oa, WpgMediaData as oi, PageNumberSeparator as on, SmartTagRunOptions as or, parseNumberingDefinitions as ot, DocxWriteContext as p, XYFrameOptions as pa, PresetTextShapeOptions as pi, DocumentGridType as pn, TextInputOptions as pr, DocPartType as pt, OdsoFieldMapDataOptions as q, AltChunkCollection as qa, ContinuationSeparator as qi, TableFloatOptions as qn, TextWrappingSide as qr, createHeaderFooterReference as qt, corePropertiesDesc as r, Separator as ra, SmartArtMediaData as ri, PageBorderOffsetFrom as rn, bibliographyDesc as ro, SmartArtChild as rr, AbstractNumberingOptions as rt, CustomPropertyOptions as s, YearShort as sa, WpsMediaData as si, PageNumberTypeAttributes as sn, CheckBoxOptions as sr, LevelFormat as st, CorePropertiesInput as t, NoBreakHyphen as ta, MediaData as ti, createPageMargin as tn, BibliographyOptions as to, ParagraphChild as tr, CompatibilityOptions as tt, EmbeddedFontOptionsWithKey as u, FrameAnchorType as ua, BodyPropertiesOptions as ui, PageSizeAttributes as un, FormFieldOptions as ur, DocPartBehavior as ut, parseDocx as v, MathInput as va, VerticalAnchor as vi, CustomXmlBlockOptions as vn, PositionalTabLeader as vr, SectionPropertiesOptions as vt, frameXml as w, TabStopPosition as wa, WpgGroupOptions as wi, TableCellOptions as wn, WpgGroupRunOptions as wr, SectionChild as wt, TargetScreenSize as x, MathStyleType as xa, ChildOffset as xi, CustomXmlPrOptions as xn, CommentOptions as xr, sectionPageSizeDefaults as xt, DivBorderOptions as y, MathRunPropertiesOptions as ya, createBodyProperties as yi, CustomXmlCellOptions as yn, PositionalTabOptions as yr, SectionPropertiesOptionsBase as yt, FootnotePropertiesOptions as z, VerticalAlignSection as za, RunPropertiesOptions as zi, TablePropertiesOptions as zn, HorizontalPositionOptions as zr, TableOfContentsOptions as zt };
|
|
3511
|
+
//# sourceMappingURL=core-properties-Bh8_D5Kh.d.mts.map
|