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.cts
CHANGED
|
@@ -344,6 +344,22 @@ declare class InsertedTextRun extends XmlComponent {
|
|
|
344
344
|
constructor(options: IInsertedRunOptions);
|
|
345
345
|
}
|
|
346
346
|
//#endregion
|
|
347
|
+
//#region src/file/paragraph/run/east-asian-layout.d.ts
|
|
348
|
+
declare const CombineBracketsType: {
|
|
349
|
+
readonly NONE: "none";
|
|
350
|
+
readonly ROUND: "round";
|
|
351
|
+
readonly SQUARE: "square";
|
|
352
|
+
readonly ANGLE: "angle";
|
|
353
|
+
readonly CURLY: "curly";
|
|
354
|
+
};
|
|
355
|
+
interface EastAsianLayoutOptions {
|
|
356
|
+
readonly id?: number;
|
|
357
|
+
readonly combine?: boolean;
|
|
358
|
+
readonly combineBrackets?: (typeof CombineBracketsType)[keyof typeof CombineBracketsType];
|
|
359
|
+
readonly vert?: boolean;
|
|
360
|
+
readonly vertCompress?: boolean;
|
|
361
|
+
}
|
|
362
|
+
//#endregion
|
|
347
363
|
//#region src/file/paragraph/run/emphasis-mark.d.ts
|
|
348
364
|
declare const EmphasisMarkType: {
|
|
349
365
|
readonly NONE: "none";
|
|
@@ -356,7 +372,7 @@ declare const createEmphasisMark: (emphasisMarkType?: (typeof EmphasisMarkType)[
|
|
|
356
372
|
declare const createDotEmphasisMark: () => XmlComponent;
|
|
357
373
|
//#endregion
|
|
358
374
|
//#region src/file/paragraph/run/formatting.d.ts
|
|
359
|
-
interface
|
|
375
|
+
interface ColorOptions {
|
|
360
376
|
readonly val?: string;
|
|
361
377
|
readonly themeColor?: (typeof ThemeColor)[keyof typeof ThemeColor];
|
|
362
378
|
readonly themeTint?: string;
|
|
@@ -440,7 +456,7 @@ declare const HighlightColor: {
|
|
|
440
456
|
readonly WHITE: "white";
|
|
441
457
|
readonly YELLOW: "yellow";
|
|
442
458
|
};
|
|
443
|
-
interface
|
|
459
|
+
interface RunStylePropertiesOptions {
|
|
444
460
|
readonly noProof?: boolean;
|
|
445
461
|
readonly bold?: boolean;
|
|
446
462
|
readonly boldComplexScript?: boolean;
|
|
@@ -454,7 +470,7 @@ interface IRunStylePropertiesOptions {
|
|
|
454
470
|
readonly emphasisMark?: {
|
|
455
471
|
readonly type?: (typeof EmphasisMarkType)[keyof typeof EmphasisMarkType];
|
|
456
472
|
};
|
|
457
|
-
readonly color?: string |
|
|
473
|
+
readonly color?: string | ColorOptions;
|
|
458
474
|
readonly kern?: number | PositiveUniversalMeasure;
|
|
459
475
|
readonly position?: UniversalMeasure;
|
|
460
476
|
readonly size?: number | PositiveUniversalMeasure;
|
|
@@ -486,10 +502,11 @@ interface IRunStylePropertiesOptions {
|
|
|
486
502
|
readonly webHidden?: boolean;
|
|
487
503
|
readonly fitText?: number;
|
|
488
504
|
readonly complexScript?: boolean;
|
|
505
|
+
readonly eastAsianLayout?: EastAsianLayoutOptions;
|
|
489
506
|
}
|
|
490
507
|
type IRunPropertiesOptions = {
|
|
491
508
|
readonly style?: string;
|
|
492
|
-
} &
|
|
509
|
+
} & RunStylePropertiesOptions;
|
|
493
510
|
type IRunPropertiesChangeOptions = {} & IRunPropertiesOptions & IChangedAttributesProperties;
|
|
494
511
|
type IParagraphRunPropertiesOptions = {
|
|
495
512
|
readonly insertion?: IChangedAttributesProperties;
|
|
@@ -528,7 +545,220 @@ interface DocPropertiesOptions {
|
|
|
528
545
|
readonly id?: string;
|
|
529
546
|
}
|
|
530
547
|
//#endregion
|
|
548
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/blip/source-rectangle.d.ts
|
|
549
|
+
interface SourceRectangleOptions {
|
|
550
|
+
readonly l?: number;
|
|
551
|
+
readonly t?: number;
|
|
552
|
+
readonly r?: number;
|
|
553
|
+
readonly b?: number;
|
|
554
|
+
}
|
|
555
|
+
//#endregion
|
|
556
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/color-transform.d.ts
|
|
557
|
+
interface ColorTransformOptions {
|
|
558
|
+
readonly tint?: number;
|
|
559
|
+
readonly shade?: number;
|
|
560
|
+
readonly comp?: boolean;
|
|
561
|
+
readonly inv?: boolean;
|
|
562
|
+
readonly gray?: boolean;
|
|
563
|
+
readonly alpha?: number;
|
|
564
|
+
readonly alphaOff?: number;
|
|
565
|
+
readonly alphaMod?: number;
|
|
566
|
+
readonly hue?: number;
|
|
567
|
+
readonly hueOff?: number;
|
|
568
|
+
readonly hueMod?: number;
|
|
569
|
+
readonly sat?: number;
|
|
570
|
+
readonly satOff?: number;
|
|
571
|
+
readonly satMod?: number;
|
|
572
|
+
readonly lum?: number;
|
|
573
|
+
readonly lumOff?: number;
|
|
574
|
+
readonly lumMod?: number;
|
|
575
|
+
readonly red?: number;
|
|
576
|
+
readonly redOff?: number;
|
|
577
|
+
readonly redMod?: number;
|
|
578
|
+
readonly green?: number;
|
|
579
|
+
readonly greenOff?: number;
|
|
580
|
+
readonly greenMod?: number;
|
|
581
|
+
readonly blue?: number;
|
|
582
|
+
readonly blueOff?: number;
|
|
583
|
+
readonly blueMod?: number;
|
|
584
|
+
readonly gamma?: boolean;
|
|
585
|
+
readonly invGamma?: boolean;
|
|
586
|
+
}
|
|
587
|
+
//#endregion
|
|
588
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/hsl-color.d.ts
|
|
589
|
+
interface HslColorOptions {
|
|
590
|
+
readonly hue: number;
|
|
591
|
+
readonly sat: number;
|
|
592
|
+
readonly lum: number;
|
|
593
|
+
readonly transforms?: ColorTransformOptions;
|
|
594
|
+
}
|
|
595
|
+
//#endregion
|
|
596
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/preset-color.d.ts
|
|
597
|
+
declare const PresetColor: {
|
|
598
|
+
readonly ALICE_BLUE: "aliceBlue";
|
|
599
|
+
readonly ANTIQUE_WHITE: "antiqueWhite";
|
|
600
|
+
readonly AQUA: "aqua";
|
|
601
|
+
readonly AQUAMARINE: "aquamarine";
|
|
602
|
+
readonly AZURE: "azure";
|
|
603
|
+
readonly BEIGE: "beige";
|
|
604
|
+
readonly BISQUE: "bisque";
|
|
605
|
+
readonly BLACK: "black";
|
|
606
|
+
readonly BLANCHED_ALMOND: "blanchedAlmond";
|
|
607
|
+
readonly BLUE: "blue";
|
|
608
|
+
readonly BLUE_VIOLET: "blueViolet";
|
|
609
|
+
readonly BROWN: "brown";
|
|
610
|
+
readonly BURLY_WOOD: "burlyWood";
|
|
611
|
+
readonly CADET_BLUE: "cadetBlue";
|
|
612
|
+
readonly CHARTREUSE: "chartreuse";
|
|
613
|
+
readonly CHOCOLATE: "chocolate";
|
|
614
|
+
readonly CORAL: "coral";
|
|
615
|
+
readonly CORNFLOWER_BLUE: "cornflowerBlue";
|
|
616
|
+
readonly CORNSILK: "cornsilk";
|
|
617
|
+
readonly CRIMSON: "crimson";
|
|
618
|
+
readonly CYAN: "cyan";
|
|
619
|
+
readonly DARK_BLUE: "darkBlue";
|
|
620
|
+
readonly DARK_CYAN: "darkCyan";
|
|
621
|
+
readonly DARK_GOLDENROD: "darkGoldenrod";
|
|
622
|
+
readonly DARK_GRAY: "darkGray";
|
|
623
|
+
readonly DARK_GREY: "darkGrey";
|
|
624
|
+
readonly DARK_GREEN: "darkGreen";
|
|
625
|
+
readonly DARK_KHAKI: "darkKhaki";
|
|
626
|
+
readonly DARK_MAGENTA: "darkMagenta";
|
|
627
|
+
readonly DARK_OLIVE_GREEN: "darkOliveGreen";
|
|
628
|
+
readonly DARK_ORANGE: "darkOrange";
|
|
629
|
+
readonly DARK_ORCHID: "darkOrchid";
|
|
630
|
+
readonly DARK_RED: "darkRed";
|
|
631
|
+
readonly DARK_SALMON: "darkSalmon";
|
|
632
|
+
readonly DARK_SEA_GREEN: "darkSeaGreen";
|
|
633
|
+
readonly DARK_SLATE_BLUE: "darkSlateBlue";
|
|
634
|
+
readonly DARK_SLATE_GRAY: "darkSlateGray";
|
|
635
|
+
readonly DARK_SLATE_GREY: "darkSlateGrey";
|
|
636
|
+
readonly DARK_TURQUOISE: "darkTurquoise";
|
|
637
|
+
readonly DARK_VIOLET: "darkViolet";
|
|
638
|
+
readonly DEEP_PINK: "deepPink";
|
|
639
|
+
readonly DEEP_SKY_BLUE: "deepSkyBlue";
|
|
640
|
+
readonly DIM_GRAY: "dimGray";
|
|
641
|
+
readonly DIM_GREY: "dimGrey";
|
|
642
|
+
readonly DODGER_BLUE: "dodgerBlue";
|
|
643
|
+
readonly FIREBRICK: "firebrick";
|
|
644
|
+
readonly FLORAL_WHITE: "floralWhite";
|
|
645
|
+
readonly FOREST_GREEN: "forestGreen";
|
|
646
|
+
readonly FUCHSIA: "fuchsia";
|
|
647
|
+
readonly GAINSBORO: "gainsboro";
|
|
648
|
+
readonly GHOST_WHITE: "ghostWhite";
|
|
649
|
+
readonly GOLD: "gold";
|
|
650
|
+
readonly GOLDENROD: "goldenrod";
|
|
651
|
+
readonly GRAY: "gray";
|
|
652
|
+
readonly GREY: "grey";
|
|
653
|
+
readonly GREEN: "green";
|
|
654
|
+
readonly GREEN_YELLOW: "greenYellow";
|
|
655
|
+
readonly HONEYDEW: "honeydew";
|
|
656
|
+
readonly HOT_PINK: "hotPink";
|
|
657
|
+
readonly INDIAN_RED: "indianRed";
|
|
658
|
+
readonly INDIGO: "indigo";
|
|
659
|
+
readonly IVORY: "ivory";
|
|
660
|
+
readonly KHAKI: "khaki";
|
|
661
|
+
readonly LAVENDER: "lavender";
|
|
662
|
+
readonly LAVENDER_BLUSH: "lavenderBlush";
|
|
663
|
+
readonly LAWN_GREEN: "lawnGreen";
|
|
664
|
+
readonly LEMON_CHIFFON: "lemonChiffon";
|
|
665
|
+
readonly LIGHT_BLUE: "lightBlue";
|
|
666
|
+
readonly LIGHT_CORAL: "lightCoral";
|
|
667
|
+
readonly LIGHT_CYAN: "lightCyan";
|
|
668
|
+
readonly LIGHT_GOLDENROD_YELLOW: "lightGoldenrodYellow";
|
|
669
|
+
readonly LIGHT_GRAY: "lightGray";
|
|
670
|
+
readonly LIGHT_GREY: "lightGrey";
|
|
671
|
+
readonly LIGHT_GREEN: "lightGreen";
|
|
672
|
+
readonly LIGHT_PINK: "lightPink";
|
|
673
|
+
readonly LIGHT_SALMON: "lightSalmon";
|
|
674
|
+
readonly LIGHT_SEA_GREEN: "lightSeaGreen";
|
|
675
|
+
readonly LIGHT_SKY_BLUE: "lightSkyBlue";
|
|
676
|
+
readonly LIGHT_SLATE_GRAY: "lightSlateGray";
|
|
677
|
+
readonly LIGHT_SLATE_GREY: "lightSlateGrey";
|
|
678
|
+
readonly LIGHT_STEEL_BLUE: "lightSteelBlue";
|
|
679
|
+
readonly LIGHT_YELLOW: "lightYellow";
|
|
680
|
+
readonly LIME: "lime";
|
|
681
|
+
readonly LIME_GREEN: "limeGreen";
|
|
682
|
+
readonly LINEN: "linen";
|
|
683
|
+
readonly MAGENTA: "magenta";
|
|
684
|
+
readonly MAROON: "maroon";
|
|
685
|
+
readonly MEDIUM_AQUAMARINE: "mediumAquamarine";
|
|
686
|
+
readonly MEDIUM_BLUE: "mediumBlue";
|
|
687
|
+
readonly MEDIUM_ORCHID: "mediumOrchid";
|
|
688
|
+
readonly MEDIUM_PURPLE: "mediumPurple";
|
|
689
|
+
readonly MEDIUM_SEA_GREEN: "mediumSeaGreen";
|
|
690
|
+
readonly MEDIUM_SLATE_BLUE: "mediumSlateBlue";
|
|
691
|
+
readonly MEDIUM_SPRING_GREEN: "mediumSpringGreen";
|
|
692
|
+
readonly MEDIUM_TURQUOISE: "mediumTurquoise";
|
|
693
|
+
readonly MEDIUM_VIOLET_RED: "mediumVioletRed";
|
|
694
|
+
readonly MIDNIGHT_BLUE: "midnightBlue";
|
|
695
|
+
readonly MINT_CREAM: "mintCream";
|
|
696
|
+
readonly MISTY_ROSE: "mistyRose";
|
|
697
|
+
readonly MOCCASIN: "moccasin";
|
|
698
|
+
readonly NAVAJO_WHITE: "navajoWhite";
|
|
699
|
+
readonly NAVY: "navy";
|
|
700
|
+
readonly OLD_LACE: "oldLace";
|
|
701
|
+
readonly OLIVE: "olive";
|
|
702
|
+
readonly OLIVE_DRAB: "oliveDrab";
|
|
703
|
+
readonly ORANGE: "orange";
|
|
704
|
+
readonly ORANGE_RED: "orangeRed";
|
|
705
|
+
readonly ORCHID: "orchid";
|
|
706
|
+
readonly PALE_GOLDENROD: "paleGoldenrod";
|
|
707
|
+
readonly PALE_GREEN: "paleGreen";
|
|
708
|
+
readonly PALE_TURQUOISE: "paleTurquoise";
|
|
709
|
+
readonly PALE_VIOLET_RED: "paleVioletRed";
|
|
710
|
+
readonly PAPAYA_WHIP: "papayaWhip";
|
|
711
|
+
readonly PEACH_PUFF: "peachPuff";
|
|
712
|
+
readonly PERU: "peru";
|
|
713
|
+
readonly PINK: "pink";
|
|
714
|
+
readonly PLUM: "plum";
|
|
715
|
+
readonly POWDER_BLUE: "powderBlue";
|
|
716
|
+
readonly PURPLE: "purple";
|
|
717
|
+
readonly RED: "red";
|
|
718
|
+
readonly ROSY_BROWN: "rosyBrown";
|
|
719
|
+
readonly ROYAL_BLUE: "royalBlue";
|
|
720
|
+
readonly SADDLE_BROWN: "saddleBrown";
|
|
721
|
+
readonly SALMON: "salmon";
|
|
722
|
+
readonly SANDY_BROWN: "sandyBrown";
|
|
723
|
+
readonly SEA_GREEN: "seaGreen";
|
|
724
|
+
readonly SEA_SHELL: "seaShell";
|
|
725
|
+
readonly SIENNA: "sienna";
|
|
726
|
+
readonly SILVER: "silver";
|
|
727
|
+
readonly SKY_BLUE: "skyBlue";
|
|
728
|
+
readonly SLATE_BLUE: "slateBlue";
|
|
729
|
+
readonly SLATE_GRAY: "slateGray";
|
|
730
|
+
readonly SLATE_GREY: "slateGrey";
|
|
731
|
+
readonly SNOW: "snow";
|
|
732
|
+
readonly SPRING_GREEN: "springGreen";
|
|
733
|
+
readonly STEEL_BLUE: "steelBlue";
|
|
734
|
+
readonly TAN: "tan";
|
|
735
|
+
readonly TEAL: "teal";
|
|
736
|
+
readonly THISTLE: "thistle";
|
|
737
|
+
readonly TOMATO: "tomato";
|
|
738
|
+
readonly TURQUOISE: "turquoise";
|
|
739
|
+
readonly VIOLET: "violet";
|
|
740
|
+
readonly WHEAT: "wheat";
|
|
741
|
+
readonly WHITE: "white";
|
|
742
|
+
readonly WHITE_SMOKE: "whiteSmoke";
|
|
743
|
+
readonly YELLOW: "yellow";
|
|
744
|
+
readonly YELLOW_GREEN: "yellowGreen";
|
|
745
|
+
};
|
|
746
|
+
interface PresetColorOptions {
|
|
747
|
+
readonly value: (typeof PresetColor)[keyof typeof PresetColor];
|
|
748
|
+
readonly transforms?: ColorTransformOptions;
|
|
749
|
+
}
|
|
750
|
+
//#endregion
|
|
751
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/rgb-color.d.ts
|
|
752
|
+
interface RgbColorOptions {
|
|
753
|
+
readonly value: string;
|
|
754
|
+
readonly transforms?: ColorTransformOptions;
|
|
755
|
+
}
|
|
756
|
+
//#endregion
|
|
531
757
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/scheme-color.d.ts
|
|
758
|
+
interface SchemeColorOptions {
|
|
759
|
+
readonly value: (typeof SchemeColor)[keyof typeof SchemeColor];
|
|
760
|
+
readonly transforms?: ColorTransformOptions;
|
|
761
|
+
}
|
|
532
762
|
declare const SchemeColor: {
|
|
533
763
|
readonly BG1: "bg1";
|
|
534
764
|
readonly TX1: "tx1";
|
|
@@ -549,6 +779,150 @@ declare const SchemeColor: {
|
|
|
549
779
|
readonly PHCLR: "phClr";
|
|
550
780
|
};
|
|
551
781
|
//#endregion
|
|
782
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/system-color.d.ts
|
|
783
|
+
declare const SystemColor: {
|
|
784
|
+
readonly SCROLL_BAR: "scrollBar";
|
|
785
|
+
readonly BACKGROUND: "background";
|
|
786
|
+
readonly ACTIVE_CAPTION: "activeCaption";
|
|
787
|
+
readonly INACTIVE_CAPTION: "inactiveCaption";
|
|
788
|
+
readonly MENU: "menu";
|
|
789
|
+
readonly WINDOW: "window";
|
|
790
|
+
readonly WINDOW_FRAME: "windowFrame";
|
|
791
|
+
readonly MENU_TEXT: "menuText";
|
|
792
|
+
readonly WINDOW_TEXT: "windowText";
|
|
793
|
+
readonly CAPTION_TEXT: "captionText";
|
|
794
|
+
readonly ACTIVE_BORDER: "activeBorder";
|
|
795
|
+
readonly INACTIVE_BORDER: "inactiveBorder";
|
|
796
|
+
readonly APP_WORKSPACE: "appWorkspace";
|
|
797
|
+
readonly HIGHLIGHT: "highlight";
|
|
798
|
+
readonly HIGHLIGHT_TEXT: "highlightText";
|
|
799
|
+
readonly BTN_FACE: "btnFace";
|
|
800
|
+
readonly BTN_SHADOW: "btnShadow";
|
|
801
|
+
readonly GRAY_TEXT: "grayText";
|
|
802
|
+
readonly BTN_TEXT: "btnText";
|
|
803
|
+
readonly INACTIVE_CAPTION_TEXT: "inactiveCaptionText";
|
|
804
|
+
readonly BTN_HIGHLIGHT: "btnHighlight";
|
|
805
|
+
readonly THREE_D_DK_SHADOW: "3dDkShadow";
|
|
806
|
+
readonly THREE_D_LIGHT: "3dLight";
|
|
807
|
+
readonly INFO_TEXT: "infoText";
|
|
808
|
+
readonly INFO_BK: "infoBk";
|
|
809
|
+
readonly HOT_LIGHT: "hotLight";
|
|
810
|
+
readonly GRADIENT_ACTIVE_CAPTION: "gradientActiveCaption";
|
|
811
|
+
readonly GRADIENT_INACTIVE_CAPTION: "gradientInactiveCaption";
|
|
812
|
+
readonly MENU_HIGHLIGHT: "menuHighlight";
|
|
813
|
+
readonly MENU_BAR: "menuBar";
|
|
814
|
+
};
|
|
815
|
+
interface SystemColorOptions {
|
|
816
|
+
readonly value: (typeof SystemColor)[keyof typeof SystemColor];
|
|
817
|
+
readonly lastClr?: string;
|
|
818
|
+
readonly transforms?: ColorTransformOptions;
|
|
819
|
+
}
|
|
820
|
+
//#endregion
|
|
821
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/solid-fill.d.ts
|
|
822
|
+
type SolidFillOptions = RgbColorOptions | SchemeColorOptions | HslColorOptions | SystemColorOptions | PresetColorOptions;
|
|
823
|
+
//#endregion
|
|
824
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/glow.d.ts
|
|
825
|
+
interface GlowEffectOptions {
|
|
826
|
+
readonly rad?: number;
|
|
827
|
+
readonly color: SolidFillOptions;
|
|
828
|
+
}
|
|
829
|
+
//#endregion
|
|
830
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/inner-shdw.d.ts
|
|
831
|
+
interface InnerShadowEffectOptions {
|
|
832
|
+
readonly blurRad?: number;
|
|
833
|
+
readonly dist?: number;
|
|
834
|
+
readonly dir?: number;
|
|
835
|
+
readonly color: SolidFillOptions;
|
|
836
|
+
}
|
|
837
|
+
//#endregion
|
|
838
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/outer-shdw.d.ts
|
|
839
|
+
declare const RectAlignment: {
|
|
840
|
+
readonly TOP_LEFT: "tl";
|
|
841
|
+
readonly TOP: "t";
|
|
842
|
+
readonly TOP_RIGHT: "tr";
|
|
843
|
+
readonly LEFT: "l";
|
|
844
|
+
readonly CENTER: "ctr";
|
|
845
|
+
readonly RIGHT: "r";
|
|
846
|
+
readonly BOTTOM_LEFT: "bl";
|
|
847
|
+
readonly BOTTOM: "b";
|
|
848
|
+
readonly BOTTOM_RIGHT: "br";
|
|
849
|
+
};
|
|
850
|
+
interface OuterShadowEffectOptions {
|
|
851
|
+
readonly blurRad?: number;
|
|
852
|
+
readonly dist?: number;
|
|
853
|
+
readonly dir?: number;
|
|
854
|
+
readonly sx?: number;
|
|
855
|
+
readonly sy?: number;
|
|
856
|
+
readonly kx?: number;
|
|
857
|
+
readonly ky?: number;
|
|
858
|
+
readonly algn?: keyof typeof RectAlignment;
|
|
859
|
+
readonly rotWithShape?: boolean;
|
|
860
|
+
readonly color: SolidFillOptions;
|
|
861
|
+
}
|
|
862
|
+
//#endregion
|
|
863
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/prst-shdw.d.ts
|
|
864
|
+
declare const PresetShadowVal: {
|
|
865
|
+
readonly SHDW1: "shdw1";
|
|
866
|
+
readonly SHDW2: "shdw2";
|
|
867
|
+
readonly SHDW3: "shdw3";
|
|
868
|
+
readonly SHDW4: "shdw4";
|
|
869
|
+
readonly SHDW5: "shdw5";
|
|
870
|
+
readonly SHDW6: "shdw6";
|
|
871
|
+
readonly SHDW7: "shdw7";
|
|
872
|
+
readonly SHDW8: "shdw8";
|
|
873
|
+
readonly SHDW9: "shdw9";
|
|
874
|
+
readonly SHDW10: "shdw10";
|
|
875
|
+
readonly SHDW11: "shdw11";
|
|
876
|
+
readonly SHDW12: "shdw12";
|
|
877
|
+
readonly SHDW13: "shdw13";
|
|
878
|
+
readonly SHDW14: "shdw14";
|
|
879
|
+
readonly SHDW15: "shdw15";
|
|
880
|
+
readonly SHDW16: "shdw16";
|
|
881
|
+
readonly SHDW17: "shdw17";
|
|
882
|
+
readonly SHDW18: "shdw18";
|
|
883
|
+
readonly SHDW19: "shdw19";
|
|
884
|
+
readonly SHDW20: "shdw20";
|
|
885
|
+
};
|
|
886
|
+
interface PresetShadowEffectOptions {
|
|
887
|
+
readonly prst: keyof typeof PresetShadowVal;
|
|
888
|
+
readonly dist?: number;
|
|
889
|
+
readonly dir?: number;
|
|
890
|
+
readonly color: SolidFillOptions;
|
|
891
|
+
}
|
|
892
|
+
//#endregion
|
|
893
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/reflection.d.ts
|
|
894
|
+
interface ReflectionEffectOptions {
|
|
895
|
+
readonly blurRad?: number;
|
|
896
|
+
readonly stA?: number;
|
|
897
|
+
readonly stPos?: number;
|
|
898
|
+
readonly endA?: number;
|
|
899
|
+
readonly endPos?: number;
|
|
900
|
+
readonly dist?: number;
|
|
901
|
+
readonly dir?: number;
|
|
902
|
+
readonly fadeDir?: number;
|
|
903
|
+
readonly sx?: number;
|
|
904
|
+
readonly sy?: number;
|
|
905
|
+
readonly kx?: number;
|
|
906
|
+
readonly ky?: number;
|
|
907
|
+
readonly algn?: string;
|
|
908
|
+
readonly rotWithShape?: boolean;
|
|
909
|
+
}
|
|
910
|
+
//#endregion
|
|
911
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/effect-list.d.ts
|
|
912
|
+
interface BlurEffectOptions {
|
|
913
|
+
readonly rad?: number;
|
|
914
|
+
readonly grow?: boolean;
|
|
915
|
+
}
|
|
916
|
+
interface EffectListOptions {
|
|
917
|
+
readonly blur?: BlurEffectOptions;
|
|
918
|
+
readonly glow?: GlowEffectOptions;
|
|
919
|
+
readonly innerShdw?: InnerShadowEffectOptions;
|
|
920
|
+
readonly outerShdw?: OuterShadowEffectOptions;
|
|
921
|
+
readonly prstShdw?: PresetShadowEffectOptions;
|
|
922
|
+
readonly reflection?: ReflectionEffectOptions | true;
|
|
923
|
+
readonly softEdge?: number;
|
|
924
|
+
}
|
|
925
|
+
//#endregion
|
|
552
926
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/outline.d.ts
|
|
553
927
|
declare const LineCap: {
|
|
554
928
|
readonly ROUND: "rnd";
|
|
@@ -566,39 +940,52 @@ declare const PenAlignment: {
|
|
|
566
940
|
readonly CENTER: "ctr";
|
|
567
941
|
readonly INSET: "in";
|
|
568
942
|
};
|
|
943
|
+
declare const PresetDash: {
|
|
944
|
+
readonly SOLID: "solid";
|
|
945
|
+
readonly DOT: "dot";
|
|
946
|
+
readonly DASH: "dash";
|
|
947
|
+
readonly LG_DASH: "lgDash";
|
|
948
|
+
readonly DASH_DOT: "dashDot";
|
|
949
|
+
readonly LG_DASH_DOT: "lgDashDot";
|
|
950
|
+
readonly LG_DASH_DOT_DOT: "lgDashDotDot";
|
|
951
|
+
readonly SYS_DASH: "sysDash";
|
|
952
|
+
readonly SYS_DOT: "sysDot";
|
|
953
|
+
readonly SYS_DASH_DOT: "sysDashDot";
|
|
954
|
+
readonly SYS_DASH_DOT_DOT: "sysDashDotDot";
|
|
955
|
+
};
|
|
956
|
+
declare const LineJoin: {
|
|
957
|
+
readonly ROUND: "round";
|
|
958
|
+
readonly BEVEL: "bevel";
|
|
959
|
+
readonly MITER: "miter";
|
|
960
|
+
};
|
|
569
961
|
interface OutlineAttributes {
|
|
570
962
|
readonly width?: number;
|
|
571
963
|
readonly cap?: keyof typeof LineCap;
|
|
572
964
|
readonly compoundLine?: keyof typeof CompoundLine;
|
|
573
965
|
readonly align?: keyof typeof PenAlignment;
|
|
966
|
+
readonly dash?: keyof typeof PresetDash;
|
|
967
|
+
readonly join?: keyof typeof LineJoin;
|
|
968
|
+
readonly miterLimit?: number;
|
|
574
969
|
}
|
|
575
970
|
interface OutlineNoFill {
|
|
576
971
|
readonly type: "noFill";
|
|
577
972
|
}
|
|
578
|
-
interface
|
|
579
|
-
readonly type: "solidFill";
|
|
580
|
-
readonly solidFillType: "rgb";
|
|
581
|
-
readonly value: string;
|
|
582
|
-
}
|
|
583
|
-
interface OutlineSchemeSolidFill {
|
|
973
|
+
interface OutlineSolidFill {
|
|
584
974
|
readonly type: "solidFill";
|
|
585
|
-
readonly
|
|
586
|
-
readonly value: (typeof SchemeColor)[keyof typeof SchemeColor];
|
|
975
|
+
readonly color: SolidFillOptions;
|
|
587
976
|
}
|
|
588
|
-
type OutlineSolidFill = OutlineRgbSolidFill | OutlineSchemeSolidFill;
|
|
589
977
|
type OutlineFillProperties = OutlineNoFill | OutlineSolidFill;
|
|
590
978
|
type OutlineOptions = OutlineAttributes & OutlineFillProperties;
|
|
591
979
|
//#endregion
|
|
592
|
-
//#region src/file/drawing/inline/graphic/graphic-data/
|
|
593
|
-
interface
|
|
594
|
-
readonly
|
|
595
|
-
readonly
|
|
980
|
+
//#region src/file/drawing/inline/graphic/graphic-data/wpg/wpg-group.d.ts
|
|
981
|
+
interface IChildOffset {
|
|
982
|
+
readonly x: number;
|
|
983
|
+
readonly y: number;
|
|
596
984
|
}
|
|
597
|
-
interface
|
|
598
|
-
readonly
|
|
599
|
-
readonly
|
|
985
|
+
interface IChildExtent {
|
|
986
|
+
readonly cx: number;
|
|
987
|
+
readonly cy: number;
|
|
600
988
|
}
|
|
601
|
-
type SolidFillOptions = RgbColorOptions | SchemeColorOptions;
|
|
602
989
|
//#endregion
|
|
603
990
|
//#region src/file/drawing/text-wrap/text-wrapping.d.ts
|
|
604
991
|
declare const TextWrappingType: {
|
|
@@ -774,6 +1161,7 @@ interface CoreMediaData {
|
|
|
774
1161
|
readonly fileName: string;
|
|
775
1162
|
readonly transformation: IMediaDataTransformation;
|
|
776
1163
|
readonly data: Uint8Array;
|
|
1164
|
+
readonly srcRect?: SourceRectangleOptions;
|
|
777
1165
|
}
|
|
778
1166
|
interface RegularMediaData {
|
|
779
1167
|
readonly type: "jpg" | "png" | "gif" | "bmp";
|
|
@@ -796,6 +1184,10 @@ interface WpgMediaData {
|
|
|
796
1184
|
readonly type: "wpg";
|
|
797
1185
|
readonly transformation: IMediaDataTransformation;
|
|
798
1186
|
readonly children: readonly IGroupChildMediaData[];
|
|
1187
|
+
readonly chOff?: IChildOffset;
|
|
1188
|
+
readonly chExt?: IChildExtent;
|
|
1189
|
+
readonly solidFill?: SolidFillOptions;
|
|
1190
|
+
readonly effects?: EffectListOptions;
|
|
799
1191
|
}
|
|
800
1192
|
type IExtendedMediaData = IMediaData | WpsMediaData | WpgMediaData;
|
|
801
1193
|
type IMediaData = (RegularMediaData | SvgMediaData) & CoreMediaData;
|
|
@@ -846,6 +1238,7 @@ interface CoreImageOptions {
|
|
|
846
1238
|
readonly altText?: DocPropertiesOptions;
|
|
847
1239
|
readonly outline?: OutlineOptions;
|
|
848
1240
|
readonly solidFill?: SolidFillOptions;
|
|
1241
|
+
readonly srcRect?: SourceRectangleOptions;
|
|
849
1242
|
}
|
|
850
1243
|
interface RegularImageOptions {
|
|
851
1244
|
readonly type: "jpg" | "png" | "gif" | "bmp";
|
|
@@ -1441,67 +1834,6 @@ declare const createDocumentGrid: ({
|
|
|
1441
1834
|
charSpace
|
|
1442
1835
|
}: IDocGridAttributesProperties) => XmlComponent;
|
|
1443
1836
|
//#endregion
|
|
1444
|
-
//#region src/file/document/body/section-properties/properties/line-number.d.ts
|
|
1445
|
-
declare const LineNumberRestartFormat: {
|
|
1446
|
-
readonly NEW_PAGE: "newPage";
|
|
1447
|
-
readonly NEW_SECTION: "newSection";
|
|
1448
|
-
readonly CONTINUOUS: "continuous";
|
|
1449
|
-
};
|
|
1450
|
-
interface ILineNumberAttributes {
|
|
1451
|
-
readonly countBy?: number;
|
|
1452
|
-
readonly start?: number;
|
|
1453
|
-
readonly restart?: (typeof LineNumberRestartFormat)[keyof typeof LineNumberRestartFormat];
|
|
1454
|
-
readonly distance?: number | PositiveUniversalMeasure;
|
|
1455
|
-
}
|
|
1456
|
-
declare const createLineNumberType: ({
|
|
1457
|
-
countBy,
|
|
1458
|
-
start,
|
|
1459
|
-
restart,
|
|
1460
|
-
distance
|
|
1461
|
-
}: ILineNumberAttributes) => XmlComponent;
|
|
1462
|
-
//#endregion
|
|
1463
|
-
//#region src/file/document/body/section-properties/properties/page-borders.d.ts
|
|
1464
|
-
declare const PageBorderDisplay: {
|
|
1465
|
-
readonly ALL_PAGES: "allPages";
|
|
1466
|
-
readonly FIRST_PAGE: "firstPage";
|
|
1467
|
-
readonly NOT_FIRST_PAGE: "notFirstPage";
|
|
1468
|
-
};
|
|
1469
|
-
declare const PageBorderOffsetFrom: {
|
|
1470
|
-
readonly PAGE: "page";
|
|
1471
|
-
readonly TEXT: "text";
|
|
1472
|
-
};
|
|
1473
|
-
declare const PageBorderZOrder: {
|
|
1474
|
-
readonly BACK: "back";
|
|
1475
|
-
readonly FRONT: "front";
|
|
1476
|
-
};
|
|
1477
|
-
interface IPageBorderAttributes {
|
|
1478
|
-
readonly display?: (typeof PageBorderDisplay)[keyof typeof PageBorderDisplay];
|
|
1479
|
-
readonly offsetFrom?: (typeof PageBorderOffsetFrom)[keyof typeof PageBorderOffsetFrom];
|
|
1480
|
-
readonly zOrder?: (typeof PageBorderZOrder)[keyof typeof PageBorderZOrder];
|
|
1481
|
-
}
|
|
1482
|
-
interface IPageBordersOptions {
|
|
1483
|
-
readonly pageBorders?: IPageBorderAttributes;
|
|
1484
|
-
readonly pageBorderTop?: IBorderOptions;
|
|
1485
|
-
readonly pageBorderRight?: IBorderOptions;
|
|
1486
|
-
readonly pageBorderBottom?: IBorderOptions;
|
|
1487
|
-
readonly pageBorderLeft?: IBorderOptions;
|
|
1488
|
-
}
|
|
1489
|
-
declare class PageBorders extends IgnoreIfEmptyXmlComponent {
|
|
1490
|
-
constructor(options?: IPageBordersOptions);
|
|
1491
|
-
}
|
|
1492
|
-
//#endregion
|
|
1493
|
-
//#region src/file/document/body/section-properties/properties/page-margin.d.ts
|
|
1494
|
-
interface IPageMarginAttributes {
|
|
1495
|
-
readonly top?: number | UniversalMeasure;
|
|
1496
|
-
readonly right?: number | PositiveUniversalMeasure;
|
|
1497
|
-
readonly bottom?: number | UniversalMeasure;
|
|
1498
|
-
readonly left?: number | PositiveUniversalMeasure;
|
|
1499
|
-
readonly header?: number | PositiveUniversalMeasure;
|
|
1500
|
-
readonly footer?: number | PositiveUniversalMeasure;
|
|
1501
|
-
readonly gutter?: number | PositiveUniversalMeasure;
|
|
1502
|
-
}
|
|
1503
|
-
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;
|
|
1504
|
-
//#endregion
|
|
1505
1837
|
//#region src/file/shared/number-format.d.ts
|
|
1506
1838
|
declare const NumberFormat: {
|
|
1507
1839
|
readonly AIUEO: "aiueo";
|
|
@@ -1568,6 +1900,96 @@ declare const NumberFormat: {
|
|
|
1568
1900
|
readonly VIETNAMESE_COUNTING: "vietnameseCounting";
|
|
1569
1901
|
};
|
|
1570
1902
|
//#endregion
|
|
1903
|
+
//#region src/file/document/body/section-properties/properties/footnote-endnote-properties.d.ts
|
|
1904
|
+
declare const FootnotePositionType: {
|
|
1905
|
+
readonly PAGE_BOTTOM: "pageBottom";
|
|
1906
|
+
readonly BENEATH_TEXT: "beneathText";
|
|
1907
|
+
readonly SECT_END: "sectEnd";
|
|
1908
|
+
readonly DOC_END: "docEnd";
|
|
1909
|
+
};
|
|
1910
|
+
declare const EndnotePositionType: {
|
|
1911
|
+
readonly SECT_END: "sectEnd";
|
|
1912
|
+
readonly DOC_END: "docEnd";
|
|
1913
|
+
};
|
|
1914
|
+
declare const NumberRestartType: {
|
|
1915
|
+
readonly CONTINUOUS: "continuous";
|
|
1916
|
+
readonly EACH_SECT: "eachSect";
|
|
1917
|
+
readonly EACH_PAGE: "eachPage";
|
|
1918
|
+
};
|
|
1919
|
+
interface NumberPropertiesOptions {
|
|
1920
|
+
readonly formatType?: (typeof NumberFormat)[keyof typeof NumberFormat];
|
|
1921
|
+
readonly format?: string;
|
|
1922
|
+
readonly numStart?: number;
|
|
1923
|
+
readonly numRestart?: (typeof NumberRestartType)[keyof typeof NumberRestartType];
|
|
1924
|
+
}
|
|
1925
|
+
interface FootnotePropertiesOptions extends NumberPropertiesOptions {
|
|
1926
|
+
readonly pos?: (typeof FootnotePositionType)[keyof typeof FootnotePositionType];
|
|
1927
|
+
}
|
|
1928
|
+
interface EndnotePropertiesOptions extends NumberPropertiesOptions {
|
|
1929
|
+
readonly pos?: (typeof EndnotePositionType)[keyof typeof EndnotePositionType];
|
|
1930
|
+
}
|
|
1931
|
+
//#endregion
|
|
1932
|
+
//#region src/file/document/body/section-properties/properties/line-number.d.ts
|
|
1933
|
+
declare const LineNumberRestartFormat: {
|
|
1934
|
+
readonly NEW_PAGE: "newPage";
|
|
1935
|
+
readonly NEW_SECTION: "newSection";
|
|
1936
|
+
readonly CONTINUOUS: "continuous";
|
|
1937
|
+
};
|
|
1938
|
+
interface ILineNumberAttributes {
|
|
1939
|
+
readonly countBy?: number;
|
|
1940
|
+
readonly start?: number;
|
|
1941
|
+
readonly restart?: (typeof LineNumberRestartFormat)[keyof typeof LineNumberRestartFormat];
|
|
1942
|
+
readonly distance?: number | PositiveUniversalMeasure;
|
|
1943
|
+
}
|
|
1944
|
+
declare const createLineNumberType: ({
|
|
1945
|
+
countBy,
|
|
1946
|
+
start,
|
|
1947
|
+
restart,
|
|
1948
|
+
distance
|
|
1949
|
+
}: ILineNumberAttributes) => XmlComponent;
|
|
1950
|
+
//#endregion
|
|
1951
|
+
//#region src/file/document/body/section-properties/properties/page-borders.d.ts
|
|
1952
|
+
declare const PageBorderDisplay: {
|
|
1953
|
+
readonly ALL_PAGES: "allPages";
|
|
1954
|
+
readonly FIRST_PAGE: "firstPage";
|
|
1955
|
+
readonly NOT_FIRST_PAGE: "notFirstPage";
|
|
1956
|
+
};
|
|
1957
|
+
declare const PageBorderOffsetFrom: {
|
|
1958
|
+
readonly PAGE: "page";
|
|
1959
|
+
readonly TEXT: "text";
|
|
1960
|
+
};
|
|
1961
|
+
declare const PageBorderZOrder: {
|
|
1962
|
+
readonly BACK: "back";
|
|
1963
|
+
readonly FRONT: "front";
|
|
1964
|
+
};
|
|
1965
|
+
interface IPageBorderAttributes {
|
|
1966
|
+
readonly display?: (typeof PageBorderDisplay)[keyof typeof PageBorderDisplay];
|
|
1967
|
+
readonly offsetFrom?: (typeof PageBorderOffsetFrom)[keyof typeof PageBorderOffsetFrom];
|
|
1968
|
+
readonly zOrder?: (typeof PageBorderZOrder)[keyof typeof PageBorderZOrder];
|
|
1969
|
+
}
|
|
1970
|
+
interface IPageBordersOptions {
|
|
1971
|
+
readonly pageBorders?: IPageBorderAttributes;
|
|
1972
|
+
readonly pageBorderTop?: IBorderOptions;
|
|
1973
|
+
readonly pageBorderRight?: IBorderOptions;
|
|
1974
|
+
readonly pageBorderBottom?: IBorderOptions;
|
|
1975
|
+
readonly pageBorderLeft?: IBorderOptions;
|
|
1976
|
+
}
|
|
1977
|
+
declare class PageBorders extends IgnoreIfEmptyXmlComponent {
|
|
1978
|
+
constructor(options?: IPageBordersOptions);
|
|
1979
|
+
}
|
|
1980
|
+
//#endregion
|
|
1981
|
+
//#region src/file/document/body/section-properties/properties/page-margin.d.ts
|
|
1982
|
+
interface IPageMarginAttributes {
|
|
1983
|
+
readonly top?: number | UniversalMeasure;
|
|
1984
|
+
readonly right?: number | PositiveUniversalMeasure;
|
|
1985
|
+
readonly bottom?: number | UniversalMeasure;
|
|
1986
|
+
readonly left?: number | PositiveUniversalMeasure;
|
|
1987
|
+
readonly header?: number | PositiveUniversalMeasure;
|
|
1988
|
+
readonly footer?: number | PositiveUniversalMeasure;
|
|
1989
|
+
readonly gutter?: number | PositiveUniversalMeasure;
|
|
1990
|
+
}
|
|
1991
|
+
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;
|
|
1992
|
+
//#endregion
|
|
1571
1993
|
//#region src/file/document/body/section-properties/properties/page-number.d.ts
|
|
1572
1994
|
declare const PageNumberSeparator: {
|
|
1573
1995
|
readonly HYPHEN: "hyphen";
|
|
@@ -1580,11 +2002,13 @@ interface IPageNumberTypeAttributes {
|
|
|
1580
2002
|
readonly start?: number;
|
|
1581
2003
|
readonly formatType?: (typeof NumberFormat)[keyof typeof NumberFormat];
|
|
1582
2004
|
readonly separator?: (typeof PageNumberSeparator)[keyof typeof PageNumberSeparator];
|
|
2005
|
+
readonly chapStyle?: number;
|
|
1583
2006
|
}
|
|
1584
2007
|
declare const createPageNumberType: ({
|
|
1585
2008
|
start,
|
|
1586
2009
|
formatType,
|
|
1587
|
-
separator
|
|
2010
|
+
separator,
|
|
2011
|
+
chapStyle
|
|
1588
2012
|
}: IPageNumberTypeAttributes) => XmlComponent;
|
|
1589
2013
|
//#endregion
|
|
1590
2014
|
//#region src/file/document/body/section-properties/properties/page-size.d.ts
|
|
@@ -1646,6 +2070,15 @@ interface ISectionPropertiesOptionsBase {
|
|
|
1646
2070
|
readonly verticalAlign?: SectionVerticalAlign;
|
|
1647
2071
|
readonly column?: IColumnsAttributes;
|
|
1648
2072
|
readonly type?: (typeof SectionType)[keyof typeof SectionType];
|
|
2073
|
+
readonly noEndnote?: boolean;
|
|
2074
|
+
readonly bidi?: boolean;
|
|
2075
|
+
readonly rtlGutter?: boolean;
|
|
2076
|
+
readonly paperSrc?: {
|
|
2077
|
+
readonly first?: number;
|
|
2078
|
+
readonly other?: number;
|
|
2079
|
+
};
|
|
2080
|
+
readonly footnotePr?: FootnotePropertiesOptions;
|
|
2081
|
+
readonly endnotePr?: EndnotePropertiesOptions;
|
|
1649
2082
|
}
|
|
1650
2083
|
type ISectionPropertiesChangeOptions = IChangedAttributesProperties & ISectionPropertiesOptionsBase;
|
|
1651
2084
|
type ISectionPropertiesOptions = {
|
|
@@ -1698,7 +2131,13 @@ declare class SectionProperties extends XmlComponent {
|
|
|
1698
2131
|
verticalAlign,
|
|
1699
2132
|
column,
|
|
1700
2133
|
type,
|
|
1701
|
-
revision
|
|
2134
|
+
revision,
|
|
2135
|
+
noEndnote,
|
|
2136
|
+
bidi,
|
|
2137
|
+
rtlGutter,
|
|
2138
|
+
paperSrc,
|
|
2139
|
+
footnotePr,
|
|
2140
|
+
endnotePr
|
|
1702
2141
|
}?: ISectionPropertiesOptions);
|
|
1703
2142
|
private addHeaderFooterGroup;
|
|
1704
2143
|
}
|
|
@@ -2187,7 +2626,21 @@ type IFrameOptions = IXYFrameOptions | IAlignmentFrameOptions;
|
|
|
2187
2626
|
declare const createFrameProperties: (options: IFrameOptions) => XmlComponent;
|
|
2188
2627
|
//#endregion
|
|
2189
2628
|
//#region src/file/paragraph/properties.d.ts
|
|
2190
|
-
|
|
2629
|
+
declare const TextAlignmentType: {
|
|
2630
|
+
readonly TOP: "top";
|
|
2631
|
+
readonly CENTER: "center";
|
|
2632
|
+
readonly BASELINE: "baseline";
|
|
2633
|
+
readonly BOTTOM: "bottom";
|
|
2634
|
+
readonly AUTO: "auto";
|
|
2635
|
+
};
|
|
2636
|
+
declare const TextboxTightWrapType: {
|
|
2637
|
+
readonly NONE: "none";
|
|
2638
|
+
readonly ALL_LINES: "allLines";
|
|
2639
|
+
readonly FIRST_AND_LAST_LINE: "firstAndLastLine";
|
|
2640
|
+
readonly FIRST_LINE_ONLY: "firstLineOnly";
|
|
2641
|
+
readonly LAST_LINE_ONLY: "lastLineOnly";
|
|
2642
|
+
};
|
|
2643
|
+
interface LevelParagraphStylePropertiesOptions {
|
|
2191
2644
|
readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
2192
2645
|
readonly thematicBreak?: boolean;
|
|
2193
2646
|
readonly contextualSpacing?: boolean;
|
|
@@ -2208,7 +2661,7 @@ type IParagraphStylePropertiesOptions = {
|
|
|
2208
2661
|
readonly instance?: number;
|
|
2209
2662
|
readonly custom?: boolean;
|
|
2210
2663
|
} | false;
|
|
2211
|
-
} &
|
|
2664
|
+
} & LevelParagraphStylePropertiesOptions;
|
|
2212
2665
|
type IParagraphPropertiesOptionsBase = {
|
|
2213
2666
|
readonly heading?: (typeof HeadingLevel)[keyof typeof HeadingLevel];
|
|
2214
2667
|
readonly bidirectional?: boolean;
|
|
@@ -2226,6 +2679,15 @@ type IParagraphPropertiesOptionsBase = {
|
|
|
2226
2679
|
readonly scale?: number;
|
|
2227
2680
|
readonly autoSpaceEastAsianText?: boolean;
|
|
2228
2681
|
readonly run?: IParagraphRunOptions;
|
|
2682
|
+
readonly suppressAutoHyphens?: boolean;
|
|
2683
|
+
readonly adjustRightInd?: boolean;
|
|
2684
|
+
readonly snapToGrid?: boolean;
|
|
2685
|
+
readonly mirrorIndents?: boolean;
|
|
2686
|
+
readonly kinsoku?: boolean;
|
|
2687
|
+
readonly topLinePunct?: boolean;
|
|
2688
|
+
readonly autoSpaceDE?: boolean;
|
|
2689
|
+
readonly textAlignment?: (typeof TextAlignmentType)[keyof typeof TextAlignmentType];
|
|
2690
|
+
readonly textboxTightWrap?: (typeof TextboxTightWrapType)[keyof typeof TextboxTightWrapType];
|
|
2229
2691
|
} & IParagraphStylePropertiesOptions;
|
|
2230
2692
|
type IParagraphPropertiesChangeOptions = IChangedAttributesProperties & IParagraphPropertiesOptionsBase;
|
|
2231
2693
|
type IParagraphPropertiesOptions = {
|
|
@@ -2322,8 +2784,8 @@ interface ILevelsOptions {
|
|
|
2322
2784
|
readonly suffix?: (typeof LevelSuffix)[keyof typeof LevelSuffix];
|
|
2323
2785
|
readonly isLegalNumberingStyle?: boolean;
|
|
2324
2786
|
readonly style?: {
|
|
2325
|
-
readonly run?:
|
|
2326
|
-
readonly paragraph?:
|
|
2787
|
+
readonly run?: RunStylePropertiesOptions;
|
|
2788
|
+
readonly paragraph?: LevelParagraphStylePropertiesOptions;
|
|
2327
2789
|
};
|
|
2328
2790
|
}
|
|
2329
2791
|
declare class LevelBase extends XmlComponent {
|
|
@@ -2398,13 +2860,13 @@ declare class ParagraphPropertiesDefaults extends XmlComponent {
|
|
|
2398
2860
|
//#endregion
|
|
2399
2861
|
//#region src/file/styles/defaults/run-properties.d.ts
|
|
2400
2862
|
declare class RunPropertiesDefaults extends XmlComponent {
|
|
2401
|
-
constructor(options?:
|
|
2863
|
+
constructor(options?: RunStylePropertiesOptions);
|
|
2402
2864
|
}
|
|
2403
2865
|
//#endregion
|
|
2404
2866
|
//#region src/file/styles/defaults/document-defaults.d.ts
|
|
2405
2867
|
interface IDocumentDefaultsOptions {
|
|
2406
2868
|
readonly paragraph?: IParagraphStylePropertiesOptions;
|
|
2407
|
-
readonly run?:
|
|
2869
|
+
readonly run?: RunStylePropertiesOptions;
|
|
2408
2870
|
}
|
|
2409
2871
|
declare class DocumentDefaults extends XmlComponent {
|
|
2410
2872
|
private readonly runPropertiesDefaults;
|
|
@@ -2436,7 +2898,7 @@ declare class Style extends XmlComponent {
|
|
|
2436
2898
|
//#region src/file/styles/style/paragraph-style.d.ts
|
|
2437
2899
|
type IBaseParagraphStyleOptions = {
|
|
2438
2900
|
readonly paragraph?: IParagraphStylePropertiesOptions;
|
|
2439
|
-
readonly run?:
|
|
2901
|
+
readonly run?: RunStylePropertiesOptions;
|
|
2440
2902
|
} & IStyleOptions;
|
|
2441
2903
|
type IParagraphStyleOptions = {
|
|
2442
2904
|
readonly id: string;
|
|
@@ -2449,7 +2911,7 @@ declare class StyleForParagraph extends Style {
|
|
|
2449
2911
|
//#endregion
|
|
2450
2912
|
//#region src/file/styles/style/character-style.d.ts
|
|
2451
2913
|
type IBaseCharacterStyleOptions = {
|
|
2452
|
-
readonly run?:
|
|
2914
|
+
readonly run?: RunStylePropertiesOptions;
|
|
2453
2915
|
} & IStyleOptions;
|
|
2454
2916
|
type ICharacterStyleOptions = {
|
|
2455
2917
|
readonly id: string;
|
|
@@ -3319,4 +3781,4 @@ declare const patchDetector: ({
|
|
|
3319
3781
|
data
|
|
3320
3782
|
}: PatchDetectorOptions) => Promise<readonly string[]>;
|
|
3321
3783
|
//#endregion
|
|
3322
|
-
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,
|
|
3784
|
+
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 };
|