docx-plus 0.0.5 → 0.0.7
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 +21 -15
- package/dist/index.cjs +2022 -279
- package/dist/index.d.cts +555 -93
- package/dist/index.d.mts +555 -93
- package/dist/index.iife.js +2022 -279
- package/dist/index.mjs +2021 -280
- package/dist/index.umd.js +2022 -279
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -346,6 +346,22 @@ declare class InsertedTextRun extends XmlComponent {
|
|
|
346
346
|
constructor(options: IInsertedRunOptions);
|
|
347
347
|
}
|
|
348
348
|
//#endregion
|
|
349
|
+
//#region src/file/paragraph/run/east-asian-layout.d.ts
|
|
350
|
+
declare const CombineBracketsType: {
|
|
351
|
+
readonly NONE: "none";
|
|
352
|
+
readonly ROUND: "round";
|
|
353
|
+
readonly SQUARE: "square";
|
|
354
|
+
readonly ANGLE: "angle";
|
|
355
|
+
readonly CURLY: "curly";
|
|
356
|
+
};
|
|
357
|
+
interface EastAsianLayoutOptions {
|
|
358
|
+
readonly id?: number;
|
|
359
|
+
readonly combine?: boolean;
|
|
360
|
+
readonly combineBrackets?: (typeof CombineBracketsType)[keyof typeof CombineBracketsType];
|
|
361
|
+
readonly vert?: boolean;
|
|
362
|
+
readonly vertCompress?: boolean;
|
|
363
|
+
}
|
|
364
|
+
//#endregion
|
|
349
365
|
//#region src/file/paragraph/run/emphasis-mark.d.ts
|
|
350
366
|
declare const EmphasisMarkType: {
|
|
351
367
|
readonly NONE: "none";
|
|
@@ -358,7 +374,7 @@ declare const createEmphasisMark: (emphasisMarkType?: (typeof EmphasisMarkType)[
|
|
|
358
374
|
declare const createDotEmphasisMark: () => XmlComponent;
|
|
359
375
|
//#endregion
|
|
360
376
|
//#region src/file/paragraph/run/formatting.d.ts
|
|
361
|
-
interface
|
|
377
|
+
interface ColorOptions {
|
|
362
378
|
readonly val?: string;
|
|
363
379
|
readonly themeColor?: (typeof ThemeColor)[keyof typeof ThemeColor];
|
|
364
380
|
readonly themeTint?: string;
|
|
@@ -442,7 +458,7 @@ declare const HighlightColor: {
|
|
|
442
458
|
readonly WHITE: "white";
|
|
443
459
|
readonly YELLOW: "yellow";
|
|
444
460
|
};
|
|
445
|
-
interface
|
|
461
|
+
interface RunStylePropertiesOptions {
|
|
446
462
|
readonly noProof?: boolean;
|
|
447
463
|
readonly bold?: boolean;
|
|
448
464
|
readonly boldComplexScript?: boolean;
|
|
@@ -456,7 +472,7 @@ interface IRunStylePropertiesOptions {
|
|
|
456
472
|
readonly emphasisMark?: {
|
|
457
473
|
readonly type?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType];
|
|
458
474
|
};
|
|
459
|
-
readonly color?: string |
|
|
475
|
+
readonly color?: string | ColorOptions;
|
|
460
476
|
readonly kern?: number | PositiveUniversalMeasure;
|
|
461
477
|
readonly position?: UniversalMeasure;
|
|
462
478
|
readonly size?: number | PositiveUniversalMeasure;
|
|
@@ -488,10 +504,11 @@ interface IRunStylePropertiesOptions {
|
|
|
488
504
|
readonly webHidden?: boolean;
|
|
489
505
|
readonly fitText?: number;
|
|
490
506
|
readonly complexScript?: boolean;
|
|
507
|
+
readonly eastAsianLayout?: EastAsianLayoutOptions;
|
|
491
508
|
}
|
|
492
509
|
type IRunPropertiesOptions = {
|
|
493
510
|
readonly style?: string;
|
|
494
|
-
} &
|
|
511
|
+
} & RunStylePropertiesOptions;
|
|
495
512
|
type IRunPropertiesChangeOptions = {} & IRunPropertiesOptions & IChangedAttributesProperties;
|
|
496
513
|
type IParagraphRunPropertiesOptions = {
|
|
497
514
|
readonly insertion?: IChangedAttributesProperties;
|
|
@@ -530,7 +547,220 @@ interface DocPropertiesOptions {
|
|
|
530
547
|
readonly id?: string;
|
|
531
548
|
}
|
|
532
549
|
//#endregion
|
|
550
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/blip/source-rectangle.d.ts
|
|
551
|
+
interface SourceRectangleOptions {
|
|
552
|
+
readonly l?: number;
|
|
553
|
+
readonly t?: number;
|
|
554
|
+
readonly r?: number;
|
|
555
|
+
readonly b?: number;
|
|
556
|
+
}
|
|
557
|
+
//#endregion
|
|
558
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/color-transform.d.ts
|
|
559
|
+
interface ColorTransformOptions {
|
|
560
|
+
readonly tint?: number;
|
|
561
|
+
readonly shade?: number;
|
|
562
|
+
readonly comp?: boolean;
|
|
563
|
+
readonly inv?: boolean;
|
|
564
|
+
readonly gray?: boolean;
|
|
565
|
+
readonly alpha?: number;
|
|
566
|
+
readonly alphaOff?: number;
|
|
567
|
+
readonly alphaMod?: number;
|
|
568
|
+
readonly hue?: number;
|
|
569
|
+
readonly hueOff?: number;
|
|
570
|
+
readonly hueMod?: number;
|
|
571
|
+
readonly sat?: number;
|
|
572
|
+
readonly satOff?: number;
|
|
573
|
+
readonly satMod?: number;
|
|
574
|
+
readonly lum?: number;
|
|
575
|
+
readonly lumOff?: number;
|
|
576
|
+
readonly lumMod?: number;
|
|
577
|
+
readonly red?: number;
|
|
578
|
+
readonly redOff?: number;
|
|
579
|
+
readonly redMod?: number;
|
|
580
|
+
readonly green?: number;
|
|
581
|
+
readonly greenOff?: number;
|
|
582
|
+
readonly greenMod?: number;
|
|
583
|
+
readonly blue?: number;
|
|
584
|
+
readonly blueOff?: number;
|
|
585
|
+
readonly blueMod?: number;
|
|
586
|
+
readonly gamma?: boolean;
|
|
587
|
+
readonly invGamma?: boolean;
|
|
588
|
+
}
|
|
589
|
+
//#endregion
|
|
590
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/hsl-color.d.ts
|
|
591
|
+
interface HslColorOptions {
|
|
592
|
+
readonly hue: number;
|
|
593
|
+
readonly sat: number;
|
|
594
|
+
readonly lum: number;
|
|
595
|
+
readonly transforms?: ColorTransformOptions;
|
|
596
|
+
}
|
|
597
|
+
//#endregion
|
|
598
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/preset-color.d.ts
|
|
599
|
+
declare const PresetColor: {
|
|
600
|
+
readonly ALICE_BLUE: "aliceBlue";
|
|
601
|
+
readonly ANTIQUE_WHITE: "antiqueWhite";
|
|
602
|
+
readonly AQUA: "aqua";
|
|
603
|
+
readonly AQUAMARINE: "aquamarine";
|
|
604
|
+
readonly AZURE: "azure";
|
|
605
|
+
readonly BEIGE: "beige";
|
|
606
|
+
readonly BISQUE: "bisque";
|
|
607
|
+
readonly BLACK: "black";
|
|
608
|
+
readonly BLANCHED_ALMOND: "blanchedAlmond";
|
|
609
|
+
readonly BLUE: "blue";
|
|
610
|
+
readonly BLUE_VIOLET: "blueViolet";
|
|
611
|
+
readonly BROWN: "brown";
|
|
612
|
+
readonly BURLY_WOOD: "burlyWood";
|
|
613
|
+
readonly CADET_BLUE: "cadetBlue";
|
|
614
|
+
readonly CHARTREUSE: "chartreuse";
|
|
615
|
+
readonly CHOCOLATE: "chocolate";
|
|
616
|
+
readonly CORAL: "coral";
|
|
617
|
+
readonly CORNFLOWER_BLUE: "cornflowerBlue";
|
|
618
|
+
readonly CORNSILK: "cornsilk";
|
|
619
|
+
readonly CRIMSON: "crimson";
|
|
620
|
+
readonly CYAN: "cyan";
|
|
621
|
+
readonly DARK_BLUE: "darkBlue";
|
|
622
|
+
readonly DARK_CYAN: "darkCyan";
|
|
623
|
+
readonly DARK_GOLDENROD: "darkGoldenrod";
|
|
624
|
+
readonly DARK_GRAY: "darkGray";
|
|
625
|
+
readonly DARK_GREY: "darkGrey";
|
|
626
|
+
readonly DARK_GREEN: "darkGreen";
|
|
627
|
+
readonly DARK_KHAKI: "darkKhaki";
|
|
628
|
+
readonly DARK_MAGENTA: "darkMagenta";
|
|
629
|
+
readonly DARK_OLIVE_GREEN: "darkOliveGreen";
|
|
630
|
+
readonly DARK_ORANGE: "darkOrange";
|
|
631
|
+
readonly DARK_ORCHID: "darkOrchid";
|
|
632
|
+
readonly DARK_RED: "darkRed";
|
|
633
|
+
readonly DARK_SALMON: "darkSalmon";
|
|
634
|
+
readonly DARK_SEA_GREEN: "darkSeaGreen";
|
|
635
|
+
readonly DARK_SLATE_BLUE: "darkSlateBlue";
|
|
636
|
+
readonly DARK_SLATE_GRAY: "darkSlateGray";
|
|
637
|
+
readonly DARK_SLATE_GREY: "darkSlateGrey";
|
|
638
|
+
readonly DARK_TURQUOISE: "darkTurquoise";
|
|
639
|
+
readonly DARK_VIOLET: "darkViolet";
|
|
640
|
+
readonly DEEP_PINK: "deepPink";
|
|
641
|
+
readonly DEEP_SKY_BLUE: "deepSkyBlue";
|
|
642
|
+
readonly DIM_GRAY: "dimGray";
|
|
643
|
+
readonly DIM_GREY: "dimGrey";
|
|
644
|
+
readonly DODGER_BLUE: "dodgerBlue";
|
|
645
|
+
readonly FIREBRICK: "firebrick";
|
|
646
|
+
readonly FLORAL_WHITE: "floralWhite";
|
|
647
|
+
readonly FOREST_GREEN: "forestGreen";
|
|
648
|
+
readonly FUCHSIA: "fuchsia";
|
|
649
|
+
readonly GAINSBORO: "gainsboro";
|
|
650
|
+
readonly GHOST_WHITE: "ghostWhite";
|
|
651
|
+
readonly GOLD: "gold";
|
|
652
|
+
readonly GOLDENROD: "goldenrod";
|
|
653
|
+
readonly GRAY: "gray";
|
|
654
|
+
readonly GREY: "grey";
|
|
655
|
+
readonly GREEN: "green";
|
|
656
|
+
readonly GREEN_YELLOW: "greenYellow";
|
|
657
|
+
readonly HONEYDEW: "honeydew";
|
|
658
|
+
readonly HOT_PINK: "hotPink";
|
|
659
|
+
readonly INDIAN_RED: "indianRed";
|
|
660
|
+
readonly INDIGO: "indigo";
|
|
661
|
+
readonly IVORY: "ivory";
|
|
662
|
+
readonly KHAKI: "khaki";
|
|
663
|
+
readonly LAVENDER: "lavender";
|
|
664
|
+
readonly LAVENDER_BLUSH: "lavenderBlush";
|
|
665
|
+
readonly LAWN_GREEN: "lawnGreen";
|
|
666
|
+
readonly LEMON_CHIFFON: "lemonChiffon";
|
|
667
|
+
readonly LIGHT_BLUE: "lightBlue";
|
|
668
|
+
readonly LIGHT_CORAL: "lightCoral";
|
|
669
|
+
readonly LIGHT_CYAN: "lightCyan";
|
|
670
|
+
readonly LIGHT_GOLDENROD_YELLOW: "lightGoldenrodYellow";
|
|
671
|
+
readonly LIGHT_GRAY: "lightGray";
|
|
672
|
+
readonly LIGHT_GREY: "lightGrey";
|
|
673
|
+
readonly LIGHT_GREEN: "lightGreen";
|
|
674
|
+
readonly LIGHT_PINK: "lightPink";
|
|
675
|
+
readonly LIGHT_SALMON: "lightSalmon";
|
|
676
|
+
readonly LIGHT_SEA_GREEN: "lightSeaGreen";
|
|
677
|
+
readonly LIGHT_SKY_BLUE: "lightSkyBlue";
|
|
678
|
+
readonly LIGHT_SLATE_GRAY: "lightSlateGray";
|
|
679
|
+
readonly LIGHT_SLATE_GREY: "lightSlateGrey";
|
|
680
|
+
readonly LIGHT_STEEL_BLUE: "lightSteelBlue";
|
|
681
|
+
readonly LIGHT_YELLOW: "lightYellow";
|
|
682
|
+
readonly LIME: "lime";
|
|
683
|
+
readonly LIME_GREEN: "limeGreen";
|
|
684
|
+
readonly LINEN: "linen";
|
|
685
|
+
readonly MAGENTA: "magenta";
|
|
686
|
+
readonly MAROON: "maroon";
|
|
687
|
+
readonly MEDIUM_AQUAMARINE: "mediumAquamarine";
|
|
688
|
+
readonly MEDIUM_BLUE: "mediumBlue";
|
|
689
|
+
readonly MEDIUM_ORCHID: "mediumOrchid";
|
|
690
|
+
readonly MEDIUM_PURPLE: "mediumPurple";
|
|
691
|
+
readonly MEDIUM_SEA_GREEN: "mediumSeaGreen";
|
|
692
|
+
readonly MEDIUM_SLATE_BLUE: "mediumSlateBlue";
|
|
693
|
+
readonly MEDIUM_SPRING_GREEN: "mediumSpringGreen";
|
|
694
|
+
readonly MEDIUM_TURQUOISE: "mediumTurquoise";
|
|
695
|
+
readonly MEDIUM_VIOLET_RED: "mediumVioletRed";
|
|
696
|
+
readonly MIDNIGHT_BLUE: "midnightBlue";
|
|
697
|
+
readonly MINT_CREAM: "mintCream";
|
|
698
|
+
readonly MISTY_ROSE: "mistyRose";
|
|
699
|
+
readonly MOCCASIN: "moccasin";
|
|
700
|
+
readonly NAVAJO_WHITE: "navajoWhite";
|
|
701
|
+
readonly NAVY: "navy";
|
|
702
|
+
readonly OLD_LACE: "oldLace";
|
|
703
|
+
readonly OLIVE: "olive";
|
|
704
|
+
readonly OLIVE_DRAB: "oliveDrab";
|
|
705
|
+
readonly ORANGE: "orange";
|
|
706
|
+
readonly ORANGE_RED: "orangeRed";
|
|
707
|
+
readonly ORCHID: "orchid";
|
|
708
|
+
readonly PALE_GOLDENROD: "paleGoldenrod";
|
|
709
|
+
readonly PALE_GREEN: "paleGreen";
|
|
710
|
+
readonly PALE_TURQUOISE: "paleTurquoise";
|
|
711
|
+
readonly PALE_VIOLET_RED: "paleVioletRed";
|
|
712
|
+
readonly PAPAYA_WHIP: "papayaWhip";
|
|
713
|
+
readonly PEACH_PUFF: "peachPuff";
|
|
714
|
+
readonly PERU: "peru";
|
|
715
|
+
readonly PINK: "pink";
|
|
716
|
+
readonly PLUM: "plum";
|
|
717
|
+
readonly POWDER_BLUE: "powderBlue";
|
|
718
|
+
readonly PURPLE: "purple";
|
|
719
|
+
readonly RED: "red";
|
|
720
|
+
readonly ROSY_BROWN: "rosyBrown";
|
|
721
|
+
readonly ROYAL_BLUE: "royalBlue";
|
|
722
|
+
readonly SADDLE_BROWN: "saddleBrown";
|
|
723
|
+
readonly SALMON: "salmon";
|
|
724
|
+
readonly SANDY_BROWN: "sandyBrown";
|
|
725
|
+
readonly SEA_GREEN: "seaGreen";
|
|
726
|
+
readonly SEA_SHELL: "seaShell";
|
|
727
|
+
readonly SIENNA: "sienna";
|
|
728
|
+
readonly SILVER: "silver";
|
|
729
|
+
readonly SKY_BLUE: "skyBlue";
|
|
730
|
+
readonly SLATE_BLUE: "slateBlue";
|
|
731
|
+
readonly SLATE_GRAY: "slateGray";
|
|
732
|
+
readonly SLATE_GREY: "slateGrey";
|
|
733
|
+
readonly SNOW: "snow";
|
|
734
|
+
readonly SPRING_GREEN: "springGreen";
|
|
735
|
+
readonly STEEL_BLUE: "steelBlue";
|
|
736
|
+
readonly TAN: "tan";
|
|
737
|
+
readonly TEAL: "teal";
|
|
738
|
+
readonly THISTLE: "thistle";
|
|
739
|
+
readonly TOMATO: "tomato";
|
|
740
|
+
readonly TURQUOISE: "turquoise";
|
|
741
|
+
readonly VIOLET: "violet";
|
|
742
|
+
readonly WHEAT: "wheat";
|
|
743
|
+
readonly WHITE: "white";
|
|
744
|
+
readonly WHITE_SMOKE: "whiteSmoke";
|
|
745
|
+
readonly YELLOW: "yellow";
|
|
746
|
+
readonly YELLOW_GREEN: "yellowGreen";
|
|
747
|
+
};
|
|
748
|
+
interface PresetColorOptions {
|
|
749
|
+
readonly value: (typeof PresetColor)[keyof typeof PresetColor];
|
|
750
|
+
readonly transforms?: ColorTransformOptions;
|
|
751
|
+
}
|
|
752
|
+
//#endregion
|
|
753
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/rgb-color.d.ts
|
|
754
|
+
interface RgbColorOptions {
|
|
755
|
+
readonly value: string;
|
|
756
|
+
readonly transforms?: ColorTransformOptions;
|
|
757
|
+
}
|
|
758
|
+
//#endregion
|
|
533
759
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/scheme-color.d.ts
|
|
760
|
+
interface SchemeColorOptions {
|
|
761
|
+
readonly value: (typeof SchemeColor)[keyof typeof SchemeColor];
|
|
762
|
+
readonly transforms?: ColorTransformOptions;
|
|
763
|
+
}
|
|
534
764
|
declare const SchemeColor: {
|
|
535
765
|
readonly BG1: "bg1";
|
|
536
766
|
readonly TX1: "tx1";
|
|
@@ -551,6 +781,150 @@ declare const SchemeColor: {
|
|
|
551
781
|
readonly PHCLR: "phClr";
|
|
552
782
|
};
|
|
553
783
|
//#endregion
|
|
784
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/system-color.d.ts
|
|
785
|
+
declare const SystemColor: {
|
|
786
|
+
readonly SCROLL_BAR: "scrollBar";
|
|
787
|
+
readonly BACKGROUND: "background";
|
|
788
|
+
readonly ACTIVE_CAPTION: "activeCaption";
|
|
789
|
+
readonly INACTIVE_CAPTION: "inactiveCaption";
|
|
790
|
+
readonly MENU: "menu";
|
|
791
|
+
readonly WINDOW: "window";
|
|
792
|
+
readonly WINDOW_FRAME: "windowFrame";
|
|
793
|
+
readonly MENU_TEXT: "menuText";
|
|
794
|
+
readonly WINDOW_TEXT: "windowText";
|
|
795
|
+
readonly CAPTION_TEXT: "captionText";
|
|
796
|
+
readonly ACTIVE_BORDER: "activeBorder";
|
|
797
|
+
readonly INACTIVE_BORDER: "inactiveBorder";
|
|
798
|
+
readonly APP_WORKSPACE: "appWorkspace";
|
|
799
|
+
readonly HIGHLIGHT: "highlight";
|
|
800
|
+
readonly HIGHLIGHT_TEXT: "highlightText";
|
|
801
|
+
readonly BTN_FACE: "btnFace";
|
|
802
|
+
readonly BTN_SHADOW: "btnShadow";
|
|
803
|
+
readonly GRAY_TEXT: "grayText";
|
|
804
|
+
readonly BTN_TEXT: "btnText";
|
|
805
|
+
readonly INACTIVE_CAPTION_TEXT: "inactiveCaptionText";
|
|
806
|
+
readonly BTN_HIGHLIGHT: "btnHighlight";
|
|
807
|
+
readonly THREE_D_DK_SHADOW: "3dDkShadow";
|
|
808
|
+
readonly THREE_D_LIGHT: "3dLight";
|
|
809
|
+
readonly INFO_TEXT: "infoText";
|
|
810
|
+
readonly INFO_BK: "infoBk";
|
|
811
|
+
readonly HOT_LIGHT: "hotLight";
|
|
812
|
+
readonly GRADIENT_ACTIVE_CAPTION: "gradientActiveCaption";
|
|
813
|
+
readonly GRADIENT_INACTIVE_CAPTION: "gradientInactiveCaption";
|
|
814
|
+
readonly MENU_HIGHLIGHT: "menuHighlight";
|
|
815
|
+
readonly MENU_BAR: "menuBar";
|
|
816
|
+
};
|
|
817
|
+
interface SystemColorOptions {
|
|
818
|
+
readonly value: (typeof SystemColor)[keyof typeof SystemColor];
|
|
819
|
+
readonly lastClr?: string;
|
|
820
|
+
readonly transforms?: ColorTransformOptions;
|
|
821
|
+
}
|
|
822
|
+
//#endregion
|
|
823
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/solid-fill.d.ts
|
|
824
|
+
type SolidFillOptions = RgbColorOptions | SchemeColorOptions | HslColorOptions | SystemColorOptions | PresetColorOptions;
|
|
825
|
+
//#endregion
|
|
826
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/glow.d.ts
|
|
827
|
+
interface GlowEffectOptions {
|
|
828
|
+
readonly rad?: number;
|
|
829
|
+
readonly color: SolidFillOptions;
|
|
830
|
+
}
|
|
831
|
+
//#endregion
|
|
832
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/inner-shdw.d.ts
|
|
833
|
+
interface InnerShadowEffectOptions {
|
|
834
|
+
readonly blurRad?: number;
|
|
835
|
+
readonly dist?: number;
|
|
836
|
+
readonly dir?: number;
|
|
837
|
+
readonly color: SolidFillOptions;
|
|
838
|
+
}
|
|
839
|
+
//#endregion
|
|
840
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/outer-shdw.d.ts
|
|
841
|
+
declare const RectAlignment: {
|
|
842
|
+
readonly TOP_LEFT: "tl";
|
|
843
|
+
readonly TOP: "t";
|
|
844
|
+
readonly TOP_RIGHT: "tr";
|
|
845
|
+
readonly LEFT: "l";
|
|
846
|
+
readonly CENTER: "ctr";
|
|
847
|
+
readonly RIGHT: "r";
|
|
848
|
+
readonly BOTTOM_LEFT: "bl";
|
|
849
|
+
readonly BOTTOM: "b";
|
|
850
|
+
readonly BOTTOM_RIGHT: "br";
|
|
851
|
+
};
|
|
852
|
+
interface OuterShadowEffectOptions {
|
|
853
|
+
readonly blurRad?: number;
|
|
854
|
+
readonly dist?: number;
|
|
855
|
+
readonly dir?: number;
|
|
856
|
+
readonly sx?: number;
|
|
857
|
+
readonly sy?: number;
|
|
858
|
+
readonly kx?: number;
|
|
859
|
+
readonly ky?: number;
|
|
860
|
+
readonly algn?: keyof typeof RectAlignment;
|
|
861
|
+
readonly rotWithShape?: boolean;
|
|
862
|
+
readonly color: SolidFillOptions;
|
|
863
|
+
}
|
|
864
|
+
//#endregion
|
|
865
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/prst-shdw.d.ts
|
|
866
|
+
declare const PresetShadowVal: {
|
|
867
|
+
readonly SHDW1: "shdw1";
|
|
868
|
+
readonly SHDW2: "shdw2";
|
|
869
|
+
readonly SHDW3: "shdw3";
|
|
870
|
+
readonly SHDW4: "shdw4";
|
|
871
|
+
readonly SHDW5: "shdw5";
|
|
872
|
+
readonly SHDW6: "shdw6";
|
|
873
|
+
readonly SHDW7: "shdw7";
|
|
874
|
+
readonly SHDW8: "shdw8";
|
|
875
|
+
readonly SHDW9: "shdw9";
|
|
876
|
+
readonly SHDW10: "shdw10";
|
|
877
|
+
readonly SHDW11: "shdw11";
|
|
878
|
+
readonly SHDW12: "shdw12";
|
|
879
|
+
readonly SHDW13: "shdw13";
|
|
880
|
+
readonly SHDW14: "shdw14";
|
|
881
|
+
readonly SHDW15: "shdw15";
|
|
882
|
+
readonly SHDW16: "shdw16";
|
|
883
|
+
readonly SHDW17: "shdw17";
|
|
884
|
+
readonly SHDW18: "shdw18";
|
|
885
|
+
readonly SHDW19: "shdw19";
|
|
886
|
+
readonly SHDW20: "shdw20";
|
|
887
|
+
};
|
|
888
|
+
interface PresetShadowEffectOptions {
|
|
889
|
+
readonly prst: keyof typeof PresetShadowVal;
|
|
890
|
+
readonly dist?: number;
|
|
891
|
+
readonly dir?: number;
|
|
892
|
+
readonly color: SolidFillOptions;
|
|
893
|
+
}
|
|
894
|
+
//#endregion
|
|
895
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/reflection.d.ts
|
|
896
|
+
interface ReflectionEffectOptions {
|
|
897
|
+
readonly blurRad?: number;
|
|
898
|
+
readonly stA?: number;
|
|
899
|
+
readonly stPos?: number;
|
|
900
|
+
readonly endA?: number;
|
|
901
|
+
readonly endPos?: number;
|
|
902
|
+
readonly dist?: number;
|
|
903
|
+
readonly dir?: number;
|
|
904
|
+
readonly fadeDir?: number;
|
|
905
|
+
readonly sx?: number;
|
|
906
|
+
readonly sy?: number;
|
|
907
|
+
readonly kx?: number;
|
|
908
|
+
readonly ky?: number;
|
|
909
|
+
readonly algn?: string;
|
|
910
|
+
readonly rotWithShape?: boolean;
|
|
911
|
+
}
|
|
912
|
+
//#endregion
|
|
913
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/effect-list.d.ts
|
|
914
|
+
interface BlurEffectOptions {
|
|
915
|
+
readonly rad?: number;
|
|
916
|
+
readonly grow?: boolean;
|
|
917
|
+
}
|
|
918
|
+
interface EffectListOptions {
|
|
919
|
+
readonly blur?: BlurEffectOptions;
|
|
920
|
+
readonly glow?: GlowEffectOptions;
|
|
921
|
+
readonly innerShdw?: InnerShadowEffectOptions;
|
|
922
|
+
readonly outerShdw?: OuterShadowEffectOptions;
|
|
923
|
+
readonly prstShdw?: PresetShadowEffectOptions;
|
|
924
|
+
readonly reflection?: ReflectionEffectOptions | true;
|
|
925
|
+
readonly softEdge?: number;
|
|
926
|
+
}
|
|
927
|
+
//#endregion
|
|
554
928
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/outline.d.ts
|
|
555
929
|
declare const LineCap: {
|
|
556
930
|
readonly ROUND: "rnd";
|
|
@@ -568,39 +942,52 @@ declare const PenAlignment: {
|
|
|
568
942
|
readonly CENTER: "ctr";
|
|
569
943
|
readonly INSET: "in";
|
|
570
944
|
};
|
|
945
|
+
declare const PresetDash: {
|
|
946
|
+
readonly SOLID: "solid";
|
|
947
|
+
readonly DOT: "dot";
|
|
948
|
+
readonly DASH: "dash";
|
|
949
|
+
readonly LG_DASH: "lgDash";
|
|
950
|
+
readonly DASH_DOT: "dashDot";
|
|
951
|
+
readonly LG_DASH_DOT: "lgDashDot";
|
|
952
|
+
readonly LG_DASH_DOT_DOT: "lgDashDotDot";
|
|
953
|
+
readonly SYS_DASH: "sysDash";
|
|
954
|
+
readonly SYS_DOT: "sysDot";
|
|
955
|
+
readonly SYS_DASH_DOT: "sysDashDot";
|
|
956
|
+
readonly SYS_DASH_DOT_DOT: "sysDashDotDot";
|
|
957
|
+
};
|
|
958
|
+
declare const LineJoin: {
|
|
959
|
+
readonly ROUND: "round";
|
|
960
|
+
readonly BEVEL: "bevel";
|
|
961
|
+
readonly MITER: "miter";
|
|
962
|
+
};
|
|
571
963
|
interface OutlineAttributes {
|
|
572
964
|
readonly width?: number;
|
|
573
965
|
readonly cap?: keyof typeof LineCap;
|
|
574
966
|
readonly compoundLine?: keyof typeof CompoundLine;
|
|
575
967
|
readonly align?: keyof typeof PenAlignment;
|
|
968
|
+
readonly dash?: keyof typeof PresetDash;
|
|
969
|
+
readonly join?: keyof typeof LineJoin;
|
|
970
|
+
readonly miterLimit?: number;
|
|
576
971
|
}
|
|
577
972
|
interface OutlineNoFill {
|
|
578
973
|
readonly type: "noFill";
|
|
579
974
|
}
|
|
580
|
-
interface
|
|
581
|
-
readonly type: "solidFill";
|
|
582
|
-
readonly solidFillType: "rgb";
|
|
583
|
-
readonly value: string;
|
|
584
|
-
}
|
|
585
|
-
interface OutlineSchemeSolidFill {
|
|
975
|
+
interface OutlineSolidFill {
|
|
586
976
|
readonly type: "solidFill";
|
|
587
|
-
readonly
|
|
588
|
-
readonly value: (typeof SchemeColor)[keyof typeof SchemeColor];
|
|
977
|
+
readonly color: SolidFillOptions;
|
|
589
978
|
}
|
|
590
|
-
type OutlineSolidFill = OutlineRgbSolidFill | OutlineSchemeSolidFill;
|
|
591
979
|
type OutlineFillProperties = OutlineNoFill | OutlineSolidFill;
|
|
592
980
|
type OutlineOptions = OutlineAttributes & OutlineFillProperties;
|
|
593
981
|
//#endregion
|
|
594
|
-
//#region src/file/drawing/inline/graphic/graphic-data/
|
|
595
|
-
interface
|
|
596
|
-
readonly
|
|
597
|
-
readonly
|
|
982
|
+
//#region src/file/drawing/inline/graphic/graphic-data/wpg/wpg-group.d.ts
|
|
983
|
+
interface IChildOffset {
|
|
984
|
+
readonly x: number;
|
|
985
|
+
readonly y: number;
|
|
598
986
|
}
|
|
599
|
-
interface
|
|
600
|
-
readonly
|
|
601
|
-
readonly
|
|
987
|
+
interface IChildExtent {
|
|
988
|
+
readonly cx: number;
|
|
989
|
+
readonly cy: number;
|
|
602
990
|
}
|
|
603
|
-
type SolidFillOptions = RgbColorOptions | SchemeColorOptions;
|
|
604
991
|
//#endregion
|
|
605
992
|
//#region src/file/drawing/text-wrap/text-wrapping.d.ts
|
|
606
993
|
declare const TextWrappingType: {
|
|
@@ -776,6 +1163,7 @@ interface CoreMediaData {
|
|
|
776
1163
|
readonly fileName: string;
|
|
777
1164
|
readonly transformation: IMediaDataTransformation;
|
|
778
1165
|
readonly data: Uint8Array;
|
|
1166
|
+
readonly srcRect?: SourceRectangleOptions;
|
|
779
1167
|
}
|
|
780
1168
|
interface RegularMediaData {
|
|
781
1169
|
readonly type: "jpg" | "png" | "gif" | "bmp";
|
|
@@ -798,6 +1186,10 @@ interface WpgMediaData {
|
|
|
798
1186
|
readonly type: "wpg";
|
|
799
1187
|
readonly transformation: IMediaDataTransformation;
|
|
800
1188
|
readonly children: readonly IGroupChildMediaData[];
|
|
1189
|
+
readonly chOff?: IChildOffset;
|
|
1190
|
+
readonly chExt?: IChildExtent;
|
|
1191
|
+
readonly solidFill?: SolidFillOptions;
|
|
1192
|
+
readonly effects?: EffectListOptions;
|
|
801
1193
|
}
|
|
802
1194
|
type IExtendedMediaData = IMediaData | WpsMediaData | WpgMediaData;
|
|
803
1195
|
type IMediaData = (RegularMediaData | SvgMediaData) & CoreMediaData;
|
|
@@ -848,6 +1240,7 @@ interface CoreImageOptions {
|
|
|
848
1240
|
readonly altText?: DocPropertiesOptions;
|
|
849
1241
|
readonly outline?: OutlineOptions;
|
|
850
1242
|
readonly solidFill?: SolidFillOptions;
|
|
1243
|
+
readonly srcRect?: SourceRectangleOptions;
|
|
851
1244
|
}
|
|
852
1245
|
interface RegularImageOptions {
|
|
853
1246
|
readonly type: "jpg" | "png" | "gif" | "bmp";
|
|
@@ -1443,67 +1836,6 @@ declare const createDocumentGrid: ({
|
|
|
1443
1836
|
charSpace
|
|
1444
1837
|
}: IDocGridAttributesProperties) => XmlComponent;
|
|
1445
1838
|
//#endregion
|
|
1446
|
-
//#region src/file/document/body/section-properties/properties/line-number.d.ts
|
|
1447
|
-
declare const LineNumberRestartFormat: {
|
|
1448
|
-
readonly NEW_PAGE: "newPage";
|
|
1449
|
-
readonly NEW_SECTION: "newSection";
|
|
1450
|
-
readonly CONTINUOUS: "continuous";
|
|
1451
|
-
};
|
|
1452
|
-
interface ILineNumberAttributes {
|
|
1453
|
-
readonly countBy?: number;
|
|
1454
|
-
readonly start?: number;
|
|
1455
|
-
readonly restart?: (typeof LineNumberRestartFormat)[keyof typeof LineNumberRestartFormat];
|
|
1456
|
-
readonly distance?: number | PositiveUniversalMeasure;
|
|
1457
|
-
}
|
|
1458
|
-
declare const createLineNumberType: ({
|
|
1459
|
-
countBy,
|
|
1460
|
-
start,
|
|
1461
|
-
restart,
|
|
1462
|
-
distance
|
|
1463
|
-
}: ILineNumberAttributes) => XmlComponent;
|
|
1464
|
-
//#endregion
|
|
1465
|
-
//#region src/file/document/body/section-properties/properties/page-borders.d.ts
|
|
1466
|
-
declare const PageBorderDisplay: {
|
|
1467
|
-
readonly ALL_PAGES: "allPages";
|
|
1468
|
-
readonly FIRST_PAGE: "firstPage";
|
|
1469
|
-
readonly NOT_FIRST_PAGE: "notFirstPage";
|
|
1470
|
-
};
|
|
1471
|
-
declare const PageBorderOffsetFrom: {
|
|
1472
|
-
readonly PAGE: "page";
|
|
1473
|
-
readonly TEXT: "text";
|
|
1474
|
-
};
|
|
1475
|
-
declare const PageBorderZOrder: {
|
|
1476
|
-
readonly BACK: "back";
|
|
1477
|
-
readonly FRONT: "front";
|
|
1478
|
-
};
|
|
1479
|
-
interface IPageBorderAttributes {
|
|
1480
|
-
readonly display?: (typeof PageBorderDisplay)[keyof typeof PageBorderDisplay];
|
|
1481
|
-
readonly offsetFrom?: (typeof PageBorderOffsetFrom)[keyof typeof PageBorderOffsetFrom];
|
|
1482
|
-
readonly zOrder?: (typeof PageBorderZOrder)[keyof typeof PageBorderZOrder];
|
|
1483
|
-
}
|
|
1484
|
-
interface IPageBordersOptions {
|
|
1485
|
-
readonly pageBorders?: IPageBorderAttributes;
|
|
1486
|
-
readonly pageBorderTop?: IBorderOptions;
|
|
1487
|
-
readonly pageBorderRight?: IBorderOptions;
|
|
1488
|
-
readonly pageBorderBottom?: IBorderOptions;
|
|
1489
|
-
readonly pageBorderLeft?: IBorderOptions;
|
|
1490
|
-
}
|
|
1491
|
-
declare class PageBorders extends IgnoreIfEmptyXmlComponent {
|
|
1492
|
-
constructor(options?: IPageBordersOptions);
|
|
1493
|
-
}
|
|
1494
|
-
//#endregion
|
|
1495
|
-
//#region src/file/document/body/section-properties/properties/page-margin.d.ts
|
|
1496
|
-
interface IPageMarginAttributes {
|
|
1497
|
-
readonly top?: number | UniversalMeasure;
|
|
1498
|
-
readonly right?: number | PositiveUniversalMeasure;
|
|
1499
|
-
readonly bottom?: number | UniversalMeasure;
|
|
1500
|
-
readonly left?: number | PositiveUniversalMeasure;
|
|
1501
|
-
readonly header?: number | PositiveUniversalMeasure;
|
|
1502
|
-
readonly footer?: number | PositiveUniversalMeasure;
|
|
1503
|
-
readonly gutter?: number | PositiveUniversalMeasure;
|
|
1504
|
-
}
|
|
1505
|
-
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;
|
|
1506
|
-
//#endregion
|
|
1507
1839
|
//#region src/file/shared/number-format.d.ts
|
|
1508
1840
|
declare const NumberFormat: {
|
|
1509
1841
|
readonly AIUEO: "aiueo";
|
|
@@ -1570,6 +1902,96 @@ declare const NumberFormat: {
|
|
|
1570
1902
|
readonly VIETNAMESE_COUNTING: "vietnameseCounting";
|
|
1571
1903
|
};
|
|
1572
1904
|
//#endregion
|
|
1905
|
+
//#region src/file/document/body/section-properties/properties/footnote-endnote-properties.d.ts
|
|
1906
|
+
declare const FootnotePositionType: {
|
|
1907
|
+
readonly PAGE_BOTTOM: "pageBottom";
|
|
1908
|
+
readonly BENEATH_TEXT: "beneathText";
|
|
1909
|
+
readonly SECT_END: "sectEnd";
|
|
1910
|
+
readonly DOC_END: "docEnd";
|
|
1911
|
+
};
|
|
1912
|
+
declare const EndnotePositionType: {
|
|
1913
|
+
readonly SECT_END: "sectEnd";
|
|
1914
|
+
readonly DOC_END: "docEnd";
|
|
1915
|
+
};
|
|
1916
|
+
declare const NumberRestartType: {
|
|
1917
|
+
readonly CONTINUOUS: "continuous";
|
|
1918
|
+
readonly EACH_SECT: "eachSect";
|
|
1919
|
+
readonly EACH_PAGE: "eachPage";
|
|
1920
|
+
};
|
|
1921
|
+
interface NumberPropertiesOptions {
|
|
1922
|
+
readonly formatType?: (typeof NumberFormat)[keyof typeof NumberFormat];
|
|
1923
|
+
readonly format?: string;
|
|
1924
|
+
readonly numStart?: number;
|
|
1925
|
+
readonly numRestart?: (typeof NumberRestartType)[keyof typeof NumberRestartType];
|
|
1926
|
+
}
|
|
1927
|
+
interface FootnotePropertiesOptions extends NumberPropertiesOptions {
|
|
1928
|
+
readonly pos?: (typeof FootnotePositionType)[keyof typeof FootnotePositionType];
|
|
1929
|
+
}
|
|
1930
|
+
interface EndnotePropertiesOptions extends NumberPropertiesOptions {
|
|
1931
|
+
readonly pos?: (typeof EndnotePositionType)[keyof typeof EndnotePositionType];
|
|
1932
|
+
}
|
|
1933
|
+
//#endregion
|
|
1934
|
+
//#region src/file/document/body/section-properties/properties/line-number.d.ts
|
|
1935
|
+
declare const LineNumberRestartFormat: {
|
|
1936
|
+
readonly NEW_PAGE: "newPage";
|
|
1937
|
+
readonly NEW_SECTION: "newSection";
|
|
1938
|
+
readonly CONTINUOUS: "continuous";
|
|
1939
|
+
};
|
|
1940
|
+
interface ILineNumberAttributes {
|
|
1941
|
+
readonly countBy?: number;
|
|
1942
|
+
readonly start?: number;
|
|
1943
|
+
readonly restart?: (typeof LineNumberRestartFormat)[keyof typeof LineNumberRestartFormat];
|
|
1944
|
+
readonly distance?: number | PositiveUniversalMeasure;
|
|
1945
|
+
}
|
|
1946
|
+
declare const createLineNumberType: ({
|
|
1947
|
+
countBy,
|
|
1948
|
+
start,
|
|
1949
|
+
restart,
|
|
1950
|
+
distance
|
|
1951
|
+
}: ILineNumberAttributes) => XmlComponent;
|
|
1952
|
+
//#endregion
|
|
1953
|
+
//#region src/file/document/body/section-properties/properties/page-borders.d.ts
|
|
1954
|
+
declare const PageBorderDisplay: {
|
|
1955
|
+
readonly ALL_PAGES: "allPages";
|
|
1956
|
+
readonly FIRST_PAGE: "firstPage";
|
|
1957
|
+
readonly NOT_FIRST_PAGE: "notFirstPage";
|
|
1958
|
+
};
|
|
1959
|
+
declare const PageBorderOffsetFrom: {
|
|
1960
|
+
readonly PAGE: "page";
|
|
1961
|
+
readonly TEXT: "text";
|
|
1962
|
+
};
|
|
1963
|
+
declare const PageBorderZOrder: {
|
|
1964
|
+
readonly BACK: "back";
|
|
1965
|
+
readonly FRONT: "front";
|
|
1966
|
+
};
|
|
1967
|
+
interface IPageBorderAttributes {
|
|
1968
|
+
readonly display?: (typeof PageBorderDisplay)[keyof typeof PageBorderDisplay];
|
|
1969
|
+
readonly offsetFrom?: (typeof PageBorderOffsetFrom)[keyof typeof PageBorderOffsetFrom];
|
|
1970
|
+
readonly zOrder?: (typeof PageBorderZOrder)[keyof typeof PageBorderZOrder];
|
|
1971
|
+
}
|
|
1972
|
+
interface IPageBordersOptions {
|
|
1973
|
+
readonly pageBorders?: IPageBorderAttributes;
|
|
1974
|
+
readonly pageBorderTop?: IBorderOptions;
|
|
1975
|
+
readonly pageBorderRight?: IBorderOptions;
|
|
1976
|
+
readonly pageBorderBottom?: IBorderOptions;
|
|
1977
|
+
readonly pageBorderLeft?: IBorderOptions;
|
|
1978
|
+
}
|
|
1979
|
+
declare class PageBorders extends IgnoreIfEmptyXmlComponent {
|
|
1980
|
+
constructor(options?: IPageBordersOptions);
|
|
1981
|
+
}
|
|
1982
|
+
//#endregion
|
|
1983
|
+
//#region src/file/document/body/section-properties/properties/page-margin.d.ts
|
|
1984
|
+
interface IPageMarginAttributes {
|
|
1985
|
+
readonly top?: number | UniversalMeasure;
|
|
1986
|
+
readonly right?: number | PositiveUniversalMeasure;
|
|
1987
|
+
readonly bottom?: number | UniversalMeasure;
|
|
1988
|
+
readonly left?: number | PositiveUniversalMeasure;
|
|
1989
|
+
readonly header?: number | PositiveUniversalMeasure;
|
|
1990
|
+
readonly footer?: number | PositiveUniversalMeasure;
|
|
1991
|
+
readonly gutter?: number | PositiveUniversalMeasure;
|
|
1992
|
+
}
|
|
1993
|
+
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;
|
|
1994
|
+
//#endregion
|
|
1573
1995
|
//#region src/file/document/body/section-properties/properties/page-number.d.ts
|
|
1574
1996
|
declare const PageNumberSeparator: {
|
|
1575
1997
|
readonly HYPHEN: "hyphen";
|
|
@@ -1582,11 +2004,13 @@ interface IPageNumberTypeAttributes {
|
|
|
1582
2004
|
readonly start?: number;
|
|
1583
2005
|
readonly formatType?: (typeof NumberFormat)[keyof typeof NumberFormat];
|
|
1584
2006
|
readonly separator?: (typeof PageNumberSeparator)[keyof typeof PageNumberSeparator];
|
|
2007
|
+
readonly chapStyle?: number;
|
|
1585
2008
|
}
|
|
1586
2009
|
declare const createPageNumberType: ({
|
|
1587
2010
|
start,
|
|
1588
2011
|
formatType,
|
|
1589
|
-
separator
|
|
2012
|
+
separator,
|
|
2013
|
+
chapStyle
|
|
1590
2014
|
}: IPageNumberTypeAttributes) => XmlComponent;
|
|
1591
2015
|
//#endregion
|
|
1592
2016
|
//#region src/file/document/body/section-properties/properties/page-size.d.ts
|
|
@@ -1648,6 +2072,15 @@ interface ISectionPropertiesOptionsBase {
|
|
|
1648
2072
|
readonly verticalAlign?: SectionVerticalAlign;
|
|
1649
2073
|
readonly column?: IColumnsAttributes;
|
|
1650
2074
|
readonly type?: (typeof SectionType)[keyof typeof SectionType];
|
|
2075
|
+
readonly noEndnote?: boolean;
|
|
2076
|
+
readonly bidi?: boolean;
|
|
2077
|
+
readonly rtlGutter?: boolean;
|
|
2078
|
+
readonly paperSrc?: {
|
|
2079
|
+
readonly first?: number;
|
|
2080
|
+
readonly other?: number;
|
|
2081
|
+
};
|
|
2082
|
+
readonly footnotePr?: FootnotePropertiesOptions;
|
|
2083
|
+
readonly endnotePr?: EndnotePropertiesOptions;
|
|
1651
2084
|
}
|
|
1652
2085
|
type ISectionPropertiesChangeOptions = IChangedAttributesProperties & ISectionPropertiesOptionsBase;
|
|
1653
2086
|
type ISectionPropertiesOptions = {
|
|
@@ -1700,7 +2133,13 @@ declare class SectionProperties extends XmlComponent {
|
|
|
1700
2133
|
verticalAlign,
|
|
1701
2134
|
column,
|
|
1702
2135
|
type,
|
|
1703
|
-
revision
|
|
2136
|
+
revision,
|
|
2137
|
+
noEndnote,
|
|
2138
|
+
bidi,
|
|
2139
|
+
rtlGutter,
|
|
2140
|
+
paperSrc,
|
|
2141
|
+
footnotePr,
|
|
2142
|
+
endnotePr
|
|
1704
2143
|
}?: ISectionPropertiesOptions);
|
|
1705
2144
|
private addHeaderFooterGroup;
|
|
1706
2145
|
}
|
|
@@ -2189,7 +2628,21 @@ type IFrameOptions = IXYFrameOptions | IAlignmentFrameOptions;
|
|
|
2189
2628
|
declare const createFrameProperties: (options: IFrameOptions) => XmlComponent;
|
|
2190
2629
|
//#endregion
|
|
2191
2630
|
//#region src/file/paragraph/properties.d.ts
|
|
2192
|
-
|
|
2631
|
+
declare const TextAlignmentType: {
|
|
2632
|
+
readonly TOP: "top";
|
|
2633
|
+
readonly CENTER: "center";
|
|
2634
|
+
readonly BASELINE: "baseline";
|
|
2635
|
+
readonly BOTTOM: "bottom";
|
|
2636
|
+
readonly AUTO: "auto";
|
|
2637
|
+
};
|
|
2638
|
+
declare const TextboxTightWrapType: {
|
|
2639
|
+
readonly NONE: "none";
|
|
2640
|
+
readonly ALL_LINES: "allLines";
|
|
2641
|
+
readonly FIRST_AND_LAST_LINE: "firstAndLastLine";
|
|
2642
|
+
readonly FIRST_LINE_ONLY: "firstLineOnly";
|
|
2643
|
+
readonly LAST_LINE_ONLY: "lastLineOnly";
|
|
2644
|
+
};
|
|
2645
|
+
interface LevelParagraphStylePropertiesOptions {
|
|
2193
2646
|
readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
2194
2647
|
readonly thematicBreak?: boolean;
|
|
2195
2648
|
readonly contextualSpacing?: boolean;
|
|
@@ -2210,7 +2663,7 @@ type IParagraphStylePropertiesOptions = {
|
|
|
2210
2663
|
readonly instance?: number;
|
|
2211
2664
|
readonly custom?: boolean;
|
|
2212
2665
|
} | false;
|
|
2213
|
-
} &
|
|
2666
|
+
} & LevelParagraphStylePropertiesOptions;
|
|
2214
2667
|
type IParagraphPropertiesOptionsBase = {
|
|
2215
2668
|
readonly heading?: (typeof HeadingLevel)[keyof typeof HeadingLevel];
|
|
2216
2669
|
readonly bidirectional?: boolean;
|
|
@@ -2228,6 +2681,15 @@ type IParagraphPropertiesOptionsBase = {
|
|
|
2228
2681
|
readonly scale?: number;
|
|
2229
2682
|
readonly autoSpaceEastAsianText?: boolean;
|
|
2230
2683
|
readonly run?: IParagraphRunOptions;
|
|
2684
|
+
readonly suppressAutoHyphens?: boolean;
|
|
2685
|
+
readonly adjustRightInd?: boolean;
|
|
2686
|
+
readonly snapToGrid?: boolean;
|
|
2687
|
+
readonly mirrorIndents?: boolean;
|
|
2688
|
+
readonly kinsoku?: boolean;
|
|
2689
|
+
readonly topLinePunct?: boolean;
|
|
2690
|
+
readonly autoSpaceDE?: boolean;
|
|
2691
|
+
readonly textAlignment?: (typeof TextAlignmentType)[keyof typeof TextAlignmentType];
|
|
2692
|
+
readonly textboxTightWrap?: (typeof TextboxTightWrapType)[keyof typeof TextboxTightWrapType];
|
|
2231
2693
|
} & IParagraphStylePropertiesOptions;
|
|
2232
2694
|
type IParagraphPropertiesChangeOptions = IChangedAttributesProperties & IParagraphPropertiesOptionsBase;
|
|
2233
2695
|
type IParagraphPropertiesOptions = {
|
|
@@ -2324,8 +2786,8 @@ interface ILevelsOptions {
|
|
|
2324
2786
|
readonly suffix?: (typeof LevelSuffix)[keyof typeof LevelSuffix];
|
|
2325
2787
|
readonly isLegalNumberingStyle?: boolean;
|
|
2326
2788
|
readonly style?: {
|
|
2327
|
-
readonly run?:
|
|
2328
|
-
readonly paragraph?:
|
|
2789
|
+
readonly run?: RunStylePropertiesOptions;
|
|
2790
|
+
readonly paragraph?: LevelParagraphStylePropertiesOptions;
|
|
2329
2791
|
};
|
|
2330
2792
|
}
|
|
2331
2793
|
declare class LevelBase extends XmlComponent {
|
|
@@ -2400,13 +2862,13 @@ declare class ParagraphPropertiesDefaults extends XmlComponent {
|
|
|
2400
2862
|
//#endregion
|
|
2401
2863
|
//#region src/file/styles/defaults/run-properties.d.ts
|
|
2402
2864
|
declare class RunPropertiesDefaults extends XmlComponent {
|
|
2403
|
-
constructor(options?:
|
|
2865
|
+
constructor(options?: RunStylePropertiesOptions);
|
|
2404
2866
|
}
|
|
2405
2867
|
//#endregion
|
|
2406
2868
|
//#region src/file/styles/defaults/document-defaults.d.ts
|
|
2407
2869
|
interface IDocumentDefaultsOptions {
|
|
2408
2870
|
readonly paragraph?: IParagraphStylePropertiesOptions;
|
|
2409
|
-
readonly run?:
|
|
2871
|
+
readonly run?: RunStylePropertiesOptions;
|
|
2410
2872
|
}
|
|
2411
2873
|
declare class DocumentDefaults extends XmlComponent {
|
|
2412
2874
|
private readonly runPropertiesDefaults;
|
|
@@ -2438,7 +2900,7 @@ declare class Style extends XmlComponent {
|
|
|
2438
2900
|
//#region src/file/styles/style/paragraph-style.d.ts
|
|
2439
2901
|
type IBaseParagraphStyleOptions = {
|
|
2440
2902
|
readonly paragraph?: IParagraphStylePropertiesOptions;
|
|
2441
|
-
readonly run?:
|
|
2903
|
+
readonly run?: RunStylePropertiesOptions;
|
|
2442
2904
|
} & IStyleOptions;
|
|
2443
2905
|
type IParagraphStyleOptions = {
|
|
2444
2906
|
readonly id: string;
|
|
@@ -2451,7 +2913,7 @@ declare class StyleForParagraph extends Style {
|
|
|
2451
2913
|
//#endregion
|
|
2452
2914
|
//#region src/file/styles/style/character-style.d.ts
|
|
2453
2915
|
type IBaseCharacterStyleOptions = {
|
|
2454
|
-
readonly run?:
|
|
2916
|
+
readonly run?: RunStylePropertiesOptions;
|
|
2455
2917
|
} & IStyleOptions;
|
|
2456
2918
|
type ICharacterStyleOptions = {
|
|
2457
2919
|
readonly id: string;
|
|
@@ -3321,4 +3783,4 @@ declare const patchDetector: ({
|
|
|
3321
3783
|
data
|
|
3322
3784
|
}: PatchDetectorOptions) => Promise<readonly string[]>;
|
|
3323
3785
|
//#endregion
|
|
3324
|
-
export { AbstractNumbering, AlignmentType, AnnotationReference, AttributeData, AttributeMap, AttributePayload, Attributes, BaseXmlComponent, Body, Bookmark, BookmarkEnd, BookmarkStart, Border, BorderStyle, BuilderElement, CarriageReturn, CellMerge, CellMergeAttributes, CharacterSet, CheckBox, CheckBoxSymbolElement, CheckBoxUtil, Column, ColumnBreak, Comment, CommentRangeEnd, CommentRangeStart, CommentReference, Comments, ConcreteHyperlink, ConcreteNumbering, ContinuationSeparator, DayLong, DayShort, DeletedTableCell, DeletedTableRow, DeletedTextRun, File as Document, File, DocumentAttributeNamespace, DocumentAttributeNamespaces, DocumentAttributes, DocumentBackground, DocumentBackgroundAttributes, DocumentDefaults, DocumentGridType, Drawing, DropCapType, EMPTY_OBJECT, EmphasisMarkType, EmptyElement, EndnoteIdReference, EndnoteReference, EndnoteReferenceRun, EndnoteReferenceRunAttributes, Endnotes, ExternalHyperlink, FileChild, FootNoteReferenceRunAttributes, FootNotes, Footer, FooterWrapper, FootnoteReference, FootnoteReferenceElement, FootnoteReferenceRun, FrameAnchorType, FrameWrap, GridSpan, Header, HeaderFooterReferenceType, HeaderFooterType, HeaderWrapper, HeadingLevel, HeightRule, HighlightColor, HorizontalPositionAlign, HorizontalPositionRelativeFrom, HpsMeasureElement, HyperlinkType, IAlignmentFrameOptions, IBaseCharacterStyleOptions, IBaseParagraphStyleOptions, IBodyPropertiesOptions, IBookmarkOptions, IBorderOptions, IBordersOptions, ICellMergeAttributes, ICharacterStyleOptions, ICheckboxSymbolOptions, ICheckboxSymbolProperties, IColumnAttributes, IColumnsAttributes, ICommentOptions, ICommentsOptions, IConcreteNumberingOptions, IContext, IDistance, IDocGridAttributesProperties, IDocumentAttributesProperties, IDocumentBackgroundOptions, IDocumentDefaultsOptions, IDocumentFooter, IDocumentHeader, IDocumentOptions, IDrawingOptions, IExtendedMediaData, IExternalHyperlinkOptions, IFloating, IFontAttributesProperties, IFrameOptions, IGroupChildMediaData, IHeaderFooterGroup, IHeaderFooterOptions, IHeaderOptions, IHorizontalPositionOptions, IImageOptions, IIndentAttributesProperties, IInternalHyperlinkOptions,
|
|
3786
|
+
export { AbstractNumbering, AlignmentType, AnnotationReference, AttributeData, AttributeMap, AttributePayload, Attributes, BaseXmlComponent, Body, Bookmark, BookmarkEnd, BookmarkStart, Border, BorderStyle, BuilderElement, CarriageReturn, CellMerge, CellMergeAttributes, CharacterSet, CheckBox, CheckBoxSymbolElement, CheckBoxUtil, Column, ColumnBreak, Comment, CommentRangeEnd, CommentRangeStart, CommentReference, Comments, ConcreteHyperlink, ConcreteNumbering, ContinuationSeparator, DayLong, DayShort, DeletedTableCell, DeletedTableRow, DeletedTextRun, File as Document, File, DocumentAttributeNamespace, DocumentAttributeNamespaces, DocumentAttributes, DocumentBackground, DocumentBackgroundAttributes, DocumentDefaults, DocumentGridType, Drawing, DropCapType, EMPTY_OBJECT, EmphasisMarkType, EmptyElement, EndnoteIdReference, EndnoteReference, EndnoteReferenceRun, EndnoteReferenceRunAttributes, Endnotes, ExternalHyperlink, FileChild, FootNoteReferenceRunAttributes, FootNotes, Footer, FooterWrapper, FootnoteReference, FootnoteReferenceElement, FootnoteReferenceRun, FrameAnchorType, FrameWrap, GridSpan, Header, HeaderFooterReferenceType, HeaderFooterType, HeaderWrapper, HeadingLevel, HeightRule, HighlightColor, HorizontalPositionAlign, HorizontalPositionRelativeFrom, HpsMeasureElement, HyperlinkType, IAlignmentFrameOptions, IBaseCharacterStyleOptions, IBaseParagraphStyleOptions, IBodyPropertiesOptions, IBookmarkOptions, IBorderOptions, IBordersOptions, ICellMergeAttributes, ICharacterStyleOptions, ICheckboxSymbolOptions, ICheckboxSymbolProperties, IColumnAttributes, IColumnsAttributes, ICommentOptions, ICommentsOptions, IConcreteNumberingOptions, IContext, IDistance, IDocGridAttributesProperties, IDocumentAttributesProperties, IDocumentBackgroundOptions, IDocumentDefaultsOptions, IDocumentFooter, IDocumentHeader, IDocumentOptions, IDrawingOptions, IExtendedMediaData, IExternalHyperlinkOptions, IFloating, IFontAttributesProperties, IFrameOptions, IGroupChildMediaData, IHeaderFooterGroup, IHeaderFooterOptions, IHeaderOptions, IHorizontalPositionOptions, IImageOptions, IIndentAttributesProperties, IInternalHyperlinkOptions, ILevelsOptions, ILineNumberAttributes, IMargins, IMathFractionOptions, IMathFunctionOptions, IMathIntegralOptions, IMathLimitLowerOptions, IMathLimitUpperOptions, IMathOptions, IMathPreSubSuperScriptOptions, IMathRadicalOptions, IMathSubScriptOptions, IMathSubSuperScriptOptions, IMathSumOptions, IMathSuperScriptOptions, IMediaData, IMediaDataTransformation, IMediaTransformation, INumberedItemReferenceOptions, INumberingOptions, IPageBorderAttributes, IPageBordersOptions, IPageMarginAttributes, IPageNumberTypeAttributes, IPageReferenceOptions, IPageSizeAttributes, IParagraphOptions, IParagraphPropertiesChangeOptions, IParagraphPropertiesOptions, IParagraphPropertiesOptionsBase, IParagraphRunOptions, IParagraphRunPropertiesOptions, IParagraphStyleOptions, IParagraphStylePropertiesOptions, IPatch, type IPropertiesOptions, IRunOptions, IRunPropertiesChangeOptions, IRunPropertiesOptions, ISectionOptions, ISectionPropertiesChangeOptions, ISectionPropertiesOptions, ISectionPropertiesOptionsBase, IShadingAttributesProperties, ISpacingProperties, IStylesOptions, ISymbolRunOptions, ITableBordersOptions, ITableCellBorders, ITableCellOptions, ITableFloatOptions, ITableLookOptions, ITableOfContentsOptions, ITableOptions, ITablePropertiesChangeOptions, ITablePropertiesOptions, ITablePropertiesOptionsBase, ITableRowOptions, ITableRowPropertiesChangeOptions, ITableRowPropertiesOptions, ITableRowPropertiesOptionsBase, ITableWidthProperties, ITextWrapping, IVerticalPositionOptions, IWpgGroupOptions, IWpsShapeOptions, IXYFrameOptions, IXmlAttribute, IXmlableObject, IgnoreIfEmptyXmlComponent, ImageRun, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, InputDataType, InsertedTableCell, InsertedTableRow, InsertedTextRun, InternalHyperlink, LastRenderedPageBreak, LeaderType, Level, LevelBase, LevelForOverride, LevelFormat, LevelOverride, LevelParagraphStylePropertiesOptions, LevelSuffix, LineNumberRestartFormat, LineRuleType, Math, MathAngledBrackets, MathComponent, MathCurlyBrackets, MathDegree, MathDenominator, MathFraction, MathFunction, MathFunctionName, MathFunctionProperties, MathIntegral, MathLimit, MathLimitLower, MathLimitUpper, MathNumerator, MathPreSubSuperScript, MathRadical, MathRadicalProperties, MathRoundBrackets, MathRun, MathSquareBrackets, MathSubScript, MathSubSuperScript, MathSum, MathSuperScript, Media, MonthLong, MonthShort, NextAttributeComponent, NoBreakHyphen, NumberFormat, NumberProperties, NumberValueElement, NumberedItemReference, NumberedItemReferenceFormat, Numbering, OnOffElement, OutputByType, OutputType, OverlapType, Packer, PageBorderDisplay, PageBorderOffsetFrom, PageBorderZOrder, PageBorders, PageBreak, PageBreakBefore, PageNumber, PageNumberElement, PageNumberSeparator, PageOrientation, PageReference, PageTextDirection, PageTextDirectionType, Paragraph, ParagraphChild, ParagraphProperties, ParagraphPropertiesChange, ParagraphPropertiesDefaults, ParagraphRunProperties, PatchDocumentOptions, PatchDocumentOutputType, PatchType, Percentage, PositionalTab, PositionalTabAlignment, PositionalTabLeader, PositionalTabOptions, PositionalTabRelativeTo, PositivePercentage, PositiveUniversalMeasure, PrettifyType, RelativeHorizontalPosition, RelativeMeasure, RelativeVerticalPosition, Run, RunProperties, RunPropertiesChange, RunPropertiesDefaults, RunStylePropertiesOptions, SectionProperties, SectionPropertiesChange, SectionType, SectionVerticalAlign, Separator, SequentialIdentifier, ShadingType, SimpleField, SimpleMailMergeField, SoftHyphen, SpaceType, StringContainer, StringEnumValueElement, StringValueElement, StyleForCharacter, StyleForParagraph, StyleLevel, Styles, SymbolRun, TDirection, Tab, TabStopDefinition, TabStopPosition, TabStopType, Table, TableAnchorType, TableBorders, TableCell, TableCellBorders, TableLayoutType, TableOfContents, TableProperties, TableRow, TableRowProperties, TableRowPropertiesChange, TableVerticalAlign, TextAlignmentType, TextDirection, TextEffect, TextRun, TextWrappingSide, TextWrappingType, Textbox, TextboxTightWrapType, ThematicBreak, ThemeColor, ThemeFont, UnderlineType, UniqueNumericIdCreator, UniversalMeasure, VerticalAlign, VerticalAlignSection, VerticalAlignTable, VerticalAnchor, VerticalMerge, VerticalMergeRevisionType, VerticalMergeType, VerticalPositionAlign, VerticalPositionRelativeFrom, WORKAROUND2, WORKAROUND3, WORKAROUND4, WidthType, WpgCommonMediaData, WpgGroupRun, WpgMediaData, WpsMediaData, WpsShapeRun, XmlAttributeComponent, XmlComponent, YearLong, YearShort, abstractNumUniqueNumericIdGen, bookmarkUniqueNumericIdGen, concreteNumUniqueNumericIdGen, convertInchesToTwip, convertMillimetersToTwip, convertOutput, convertToXmlComponent, createAlignment, createBodyProperties, createBorderElement, createColumns, createDocumentGrid, createDotEmphasisMark, createEmphasisMark, createFrameProperties, createHeaderFooterReference, createHorizontalPosition, createIndent, createLineNumberType, createMathAccentCharacter, createMathBase, createMathLimitLocation, createMathNAryProperties, createMathPreSubSuperScriptProperties, createMathSubScriptElement, createMathSubScriptProperties, createMathSubSuperScriptProperties, createMathSuperScriptElement, createMathSuperScriptProperties, createOutlineLevel, createPageMargin, createPageNumberType, createPageSize, createParagraphStyle, createRunFonts, createSectionType, createShading, createSimplePos, createSpacing, createStringElement, createTabStop, createTabStopItem, createTableFloatProperties, createTableLayout, createTableLook, createTableRowHeight, createTableWidthElement, createTransformation, createUnderline, createVerticalAlign, createVerticalPosition, createWrapNone, createWrapSquare, createWrapTight, createWrapTopAndBottom, dateTimeValue, decimalNumber, docPropertiesUniqueNumericIdGen, eighthPointMeasureValue, hashedId, hexColorValue, hpsMeasureValue, longHexNumber, measurementOrPercentValue, patchDetector, patchDocument, percentageValue, pointMeasureValue, positiveUniversalMeasureValue, sectionMarginDefaults, sectionPageSizeDefaults, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, twipsMeasureValue, uCharHexNumber, uniqueId, uniqueNumericIdCreator, uniqueUuid, universalMeasureValue, unsignedDecimalNumber };
|