docx-plus 0.0.7 → 0.0.9

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/dist/index.cjs CHANGED
@@ -5839,7 +5839,11 @@ const createWpsShape = (options) => new BuilderElement({
5839
5839
  createNonVisualShapeProperties(options.nonVisualProperties),
5840
5840
  new ShapeProperties({
5841
5841
  element: "wps",
5842
+ effects: options.effects,
5843
+ gradientFill: options.gradientFill,
5844
+ noFill: options.noFill,
5842
5845
  outline: options.outline,
5846
+ shape3d: options.shape3d,
5843
5847
  solidFill: options.solidFill,
5844
5848
  transform: options.transformation
5845
5849
  }),
@@ -23621,7 +23625,7 @@ var Compiler = class {
23621
23625
  viewWrapper: file.Document
23622
23626
  }), {
23623
23627
  declaration: {
23624
- encoding: "utf8",
23628
+ encoding: "UTF-8",
23625
23629
  standalone: "yes"
23626
23630
  },
23627
23631
  indent: prettify
@@ -23636,7 +23640,7 @@ var Compiler = class {
23636
23640
  }
23637
23641
  }), {
23638
23642
  declaration: {
23639
- encoding: "utf8",
23643
+ encoding: "UTF-8",
23640
23644
  standalone: "yes"
23641
23645
  },
23642
23646
  indent: prettify
@@ -23648,7 +23652,7 @@ var Compiler = class {
23648
23652
  viewWrapper: file.FootNotes
23649
23653
  }), {
23650
23654
  declaration: {
23651
- encoding: "utf8",
23655
+ encoding: "UTF-8",
23652
23656
  standalone: "yes"
23653
23657
  },
23654
23658
  indent: prettify
@@ -23664,7 +23668,7 @@ var Compiler = class {
23664
23668
  viewWrapper: file.Document
23665
23669
  }), {
23666
23670
  declaration: {
23667
- encoding: "utf8",
23671
+ encoding: "UTF-8",
23668
23672
  standalone: "yes"
23669
23673
  },
23670
23674
  indent: prettify
@@ -23691,7 +23695,7 @@ var Compiler = class {
23691
23695
  View: file.Comments
23692
23696
  }
23693
23697
  }), {
23694
- declaration: { encoding: "utf8" },
23698
+ declaration: { encoding: "UTF-8" },
23695
23699
  indent: prettify
23696
23700
  });
23697
23701
  })(),
@@ -23703,7 +23707,7 @@ var Compiler = class {
23703
23707
  stack: [],
23704
23708
  viewWrapper: file.Document
23705
23709
  }), {
23706
- declaration: { encoding: "utf8" },
23710
+ declaration: { encoding: "UTF-8" },
23707
23711
  indent: prettify
23708
23712
  }),
23709
23713
  path: "[Content_Types].xml"
@@ -23715,7 +23719,7 @@ var Compiler = class {
23715
23719
  viewWrapper: file.Document
23716
23720
  }), {
23717
23721
  declaration: {
23718
- encoding: "utf8",
23722
+ encoding: "UTF-8",
23719
23723
  standalone: "yes"
23720
23724
  },
23721
23725
  indent: prettify
@@ -23735,7 +23739,7 @@ var Compiler = class {
23735
23739
  stack: [],
23736
23740
  viewWrapper: file.Endnotes
23737
23741
  }), {
23738
- declaration: { encoding: "utf8" },
23742
+ declaration: { encoding: "UTF-8" },
23739
23743
  indent: prettify
23740
23744
  }),
23741
23745
  path: "word/endnotes.xml"
@@ -23746,7 +23750,7 @@ var Compiler = class {
23746
23750
  stack: [],
23747
23751
  viewWrapper: file.Endnotes
23748
23752
  }), {
23749
- declaration: { encoding: "utf8" },
23753
+ declaration: { encoding: "UTF-8" },
23750
23754
  indent: prettify
23751
23755
  }),
23752
23756
  path: "word/_rels/endnotes.xml.rels"
@@ -23757,7 +23761,7 @@ var Compiler = class {
23757
23761
  stack: [],
23758
23762
  viewWrapper: file.Document
23759
23763
  }), {
23760
- declaration: { encoding: "utf8" },
23764
+ declaration: { encoding: "UTF-8" },
23761
23765
  indent: prettify
23762
23766
  }),
23763
23767
  path: "_rels/.rels"
@@ -23769,7 +23773,7 @@ var Compiler = class {
23769
23773
  viewWrapper: file.Document
23770
23774
  }), {
23771
23775
  declaration: {
23772
- encoding: "utf8",
23776
+ encoding: "UTF-8",
23773
23777
  standalone: "yes"
23774
23778
  },
23775
23779
  indent: prettify
@@ -23782,7 +23786,7 @@ var Compiler = class {
23782
23786
  stack: [],
23783
23787
  viewWrapper: file.Document
23784
23788
  }), {
23785
- declaration: { encoding: "utf8" },
23789
+ declaration: { encoding: "UTF-8" },
23786
23790
  indent: prettify
23787
23791
  }),
23788
23792
  path: "word/_rels/fontTable.xml.rels"
@@ -23804,7 +23808,7 @@ var Compiler = class {
23804
23808
  stack: [],
23805
23809
  viewWrapper: file.FootNotes
23806
23810
  }), {
23807
- declaration: { encoding: "utf8" },
23811
+ declaration: { encoding: "UTF-8" },
23808
23812
  indent: prettify
23809
23813
  });
23810
23814
  })(),
@@ -23816,7 +23820,7 @@ var Compiler = class {
23816
23820
  stack: [],
23817
23821
  viewWrapper: footerWrapper
23818
23822
  }), {
23819
- declaration: { encoding: "utf8" },
23823
+ declaration: { encoding: "UTF-8" },
23820
23824
  indent: prettify
23821
23825
  });
23822
23826
  footerFormattedViews.set(index, xmlData);
@@ -23829,7 +23833,7 @@ var Compiler = class {
23829
23833
  stack: [],
23830
23834
  viewWrapper: footerWrapper
23831
23835
  }), {
23832
- declaration: { encoding: "utf8" },
23836
+ declaration: { encoding: "UTF-8" },
23833
23837
  indent: prettify
23834
23838
  }),
23835
23839
  path: `word/_rels/footer${index + 1}.xml.rels`
@@ -23850,7 +23854,7 @@ var Compiler = class {
23850
23854
  stack: [],
23851
23855
  viewWrapper: headerWrapper
23852
23856
  }), {
23853
- declaration: { encoding: "utf8" },
23857
+ declaration: { encoding: "UTF-8" },
23854
23858
  indent: prettify
23855
23859
  });
23856
23860
  headerFormattedViews.set(index, xmlData);
@@ -23863,7 +23867,7 @@ var Compiler = class {
23863
23867
  stack: [],
23864
23868
  viewWrapper: headerWrapper
23865
23869
  }), {
23866
- declaration: { encoding: "utf8" },
23870
+ declaration: { encoding: "UTF-8" },
23867
23871
  indent: prettify
23868
23872
  }),
23869
23873
  path: `word/_rels/header${index + 1}.xml.rels`
@@ -23885,7 +23889,7 @@ var Compiler = class {
23885
23889
  viewWrapper: file.Document
23886
23890
  }), {
23887
23891
  declaration: {
23888
- encoding: "utf8",
23892
+ encoding: "UTF-8",
23889
23893
  standalone: "yes"
23890
23894
  },
23891
23895
  indent: prettify
@@ -23899,7 +23903,7 @@ var Compiler = class {
23899
23903
  viewWrapper: file.Document
23900
23904
  }), {
23901
23905
  declaration: {
23902
- encoding: "utf8",
23906
+ encoding: "UTF-8",
23903
23907
  standalone: "yes"
23904
23908
  },
23905
23909
  indent: prettify
@@ -23917,7 +23921,7 @@ var Compiler = class {
23917
23921
  stack: [],
23918
23922
  viewWrapper: file.Document
23919
23923
  }), {
23920
- declaration: { encoding: "utf8" },
23924
+ declaration: { encoding: "UTF-8" },
23921
23925
  indent: prettify
23922
23926
  });
23923
23927
  })(),
@@ -23930,7 +23934,7 @@ var Compiler = class {
23930
23934
  viewWrapper: file.Document
23931
23935
  }), {
23932
23936
  declaration: {
23933
- encoding: "utf8",
23937
+ encoding: "UTF-8",
23934
23938
  standalone: "yes"
23935
23939
  },
23936
23940
  indent: prettify
@@ -23945,7 +23949,7 @@ var Compiler = class {
23945
23949
  viewWrapper: file.Document
23946
23950
  }), {
23947
23951
  declaration: {
23948
- encoding: "utf8",
23952
+ encoding: "UTF-8",
23949
23953
  standalone: "yes"
23950
23954
  },
23951
23955
  indent: prettify
@@ -24883,7 +24887,7 @@ const toXml = (jsonObj) => {
24883
24887
  };
24884
24888
  const createRelationshipFile = () => ({
24885
24889
  declaration: { attributes: {
24886
- encoding: "utf8",
24890
+ encoding: "UTF-8",
24887
24891
  standalone: "yes",
24888
24892
  version: "1.0"
24889
24893
  } },
package/dist/index.d.cts CHANGED
@@ -987,6 +987,80 @@ interface IChildExtent {
987
987
  readonly cy: number;
988
988
  }
989
989
  //#endregion
990
+ //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/fill/gradient-fill.d.ts
991
+ interface IGradientStop {
992
+ readonly position: number;
993
+ readonly color: SolidFillOptions;
994
+ }
995
+ declare const PathShadeType: {
996
+ readonly SHAPE: "shape";
997
+ readonly CIRCLE: "circle";
998
+ readonly RECT: "rect";
999
+ };
1000
+ interface LinearShadeOptions {
1001
+ readonly angle?: number;
1002
+ readonly scaled?: boolean;
1003
+ }
1004
+ interface PathShadeOptions {
1005
+ readonly path?: keyof typeof PathShadeType;
1006
+ }
1007
+ type GradientShadeOptions = LinearShadeOptions | PathShadeOptions;
1008
+ interface GradientFillOptions {
1009
+ readonly stops: readonly IGradientStop[];
1010
+ readonly shade?: GradientShadeOptions;
1011
+ readonly rotateWithShape?: boolean;
1012
+ }
1013
+ //#endregion
1014
+ //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/three-d/bevel.d.ts
1015
+ declare const BevelPresetType: {
1016
+ readonly RELAXED_INSET: "relaxedInset";
1017
+ readonly CIRCLE: "circle";
1018
+ readonly SLOPE: "slope";
1019
+ readonly CROSS: "cross";
1020
+ readonly ANGLE: "angle";
1021
+ readonly SOFT_ROUND: "softRound";
1022
+ readonly CONVEX: "convex";
1023
+ readonly COOL_SLANT: "coolSlant";
1024
+ readonly DIVOT: "divot";
1025
+ readonly RIBLET: "riblet";
1026
+ readonly HARD_EDGE: "hardEdge";
1027
+ readonly ART_DECO: "artDeco";
1028
+ };
1029
+ interface BevelOptions {
1030
+ readonly w?: number;
1031
+ readonly h?: number;
1032
+ readonly prst?: keyof typeof BevelPresetType;
1033
+ }
1034
+ //#endregion
1035
+ //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/three-d/shape-3d.d.ts
1036
+ declare const PresetMaterialType: {
1037
+ readonly LEGACY_MATTE: "legacyMatte";
1038
+ readonly LEGACY_PLASTIC: "legacyPlastic";
1039
+ readonly LEGACY_METAL: "legacyMetal";
1040
+ readonly LEGACY_WIREFRAME: "legacyWireframe";
1041
+ readonly MATTE: "matte";
1042
+ readonly PLASTIC: "plastic";
1043
+ readonly METAL: "metal";
1044
+ readonly WARM_MATTE: "warmMatte";
1045
+ readonly TRANSLUCENT_POWDER: "translucentPowder";
1046
+ readonly POWDER: "powder";
1047
+ readonly DK_EDGE: "dkEdge";
1048
+ readonly SOFT_EDGE: "softEdge";
1049
+ readonly CLEAR: "clear";
1050
+ readonly FLAT: "flat";
1051
+ readonly SOFT_METAL: "softmetal";
1052
+ };
1053
+ interface Shape3DOptions {
1054
+ readonly bevelT?: BevelOptions;
1055
+ readonly bevelB?: BevelOptions;
1056
+ readonly extrusionClr?: SolidFillOptions;
1057
+ readonly contourClr?: SolidFillOptions;
1058
+ readonly z?: number;
1059
+ readonly extrusionH?: number;
1060
+ readonly contourW?: number;
1061
+ readonly prstMaterial?: keyof typeof PresetMaterialType;
1062
+ }
1063
+ //#endregion
990
1064
  //#region src/file/drawing/text-wrap/text-wrapping.d.ts
991
1065
  declare const TextWrappingType: {
992
1066
  readonly NONE: 0;
@@ -1129,6 +1203,12 @@ interface WpsShapeCoreOptions {
1129
1203
  readonly children: readonly Paragraph[];
1130
1204
  readonly nonVisualProperties?: INonVisualShapePropertiesOptions;
1131
1205
  readonly bodyProperties?: IBodyPropertiesOptions;
1206
+ readonly outline?: OutlineOptions;
1207
+ readonly solidFill?: SolidFillOptions;
1208
+ readonly gradientFill?: GradientFillOptions;
1209
+ readonly noFill?: boolean;
1210
+ readonly effects?: EffectListOptions;
1211
+ readonly shape3d?: Shape3DOptions;
1132
1212
  }
1133
1213
  //#endregion
1134
1214
  //#region src/file/media/data.d.ts
@@ -1261,8 +1341,6 @@ interface CoreShapeOptions {
1261
1341
  readonly transformation: IMediaTransformation;
1262
1342
  readonly floating?: IFloating;
1263
1343
  readonly altText?: DocPropertiesOptions;
1264
- readonly outline?: OutlineOptions;
1265
- readonly solidFill?: SolidFillOptions;
1266
1344
  }
1267
1345
  type IWpsShapeOptions = WpsShapeCoreOptions & {
1268
1346
  readonly type: "wps";
package/dist/index.d.mts CHANGED
@@ -989,6 +989,80 @@ interface IChildExtent {
989
989
  readonly cy: number;
990
990
  }
991
991
  //#endregion
992
+ //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/fill/gradient-fill.d.ts
993
+ interface IGradientStop {
994
+ readonly position: number;
995
+ readonly color: SolidFillOptions;
996
+ }
997
+ declare const PathShadeType: {
998
+ readonly SHAPE: "shape";
999
+ readonly CIRCLE: "circle";
1000
+ readonly RECT: "rect";
1001
+ };
1002
+ interface LinearShadeOptions {
1003
+ readonly angle?: number;
1004
+ readonly scaled?: boolean;
1005
+ }
1006
+ interface PathShadeOptions {
1007
+ readonly path?: keyof typeof PathShadeType;
1008
+ }
1009
+ type GradientShadeOptions = LinearShadeOptions | PathShadeOptions;
1010
+ interface GradientFillOptions {
1011
+ readonly stops: readonly IGradientStop[];
1012
+ readonly shade?: GradientShadeOptions;
1013
+ readonly rotateWithShape?: boolean;
1014
+ }
1015
+ //#endregion
1016
+ //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/three-d/bevel.d.ts
1017
+ declare const BevelPresetType: {
1018
+ readonly RELAXED_INSET: "relaxedInset";
1019
+ readonly CIRCLE: "circle";
1020
+ readonly SLOPE: "slope";
1021
+ readonly CROSS: "cross";
1022
+ readonly ANGLE: "angle";
1023
+ readonly SOFT_ROUND: "softRound";
1024
+ readonly CONVEX: "convex";
1025
+ readonly COOL_SLANT: "coolSlant";
1026
+ readonly DIVOT: "divot";
1027
+ readonly RIBLET: "riblet";
1028
+ readonly HARD_EDGE: "hardEdge";
1029
+ readonly ART_DECO: "artDeco";
1030
+ };
1031
+ interface BevelOptions {
1032
+ readonly w?: number;
1033
+ readonly h?: number;
1034
+ readonly prst?: keyof typeof BevelPresetType;
1035
+ }
1036
+ //#endregion
1037
+ //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/three-d/shape-3d.d.ts
1038
+ declare const PresetMaterialType: {
1039
+ readonly LEGACY_MATTE: "legacyMatte";
1040
+ readonly LEGACY_PLASTIC: "legacyPlastic";
1041
+ readonly LEGACY_METAL: "legacyMetal";
1042
+ readonly LEGACY_WIREFRAME: "legacyWireframe";
1043
+ readonly MATTE: "matte";
1044
+ readonly PLASTIC: "plastic";
1045
+ readonly METAL: "metal";
1046
+ readonly WARM_MATTE: "warmMatte";
1047
+ readonly TRANSLUCENT_POWDER: "translucentPowder";
1048
+ readonly POWDER: "powder";
1049
+ readonly DK_EDGE: "dkEdge";
1050
+ readonly SOFT_EDGE: "softEdge";
1051
+ readonly CLEAR: "clear";
1052
+ readonly FLAT: "flat";
1053
+ readonly SOFT_METAL: "softmetal";
1054
+ };
1055
+ interface Shape3DOptions {
1056
+ readonly bevelT?: BevelOptions;
1057
+ readonly bevelB?: BevelOptions;
1058
+ readonly extrusionClr?: SolidFillOptions;
1059
+ readonly contourClr?: SolidFillOptions;
1060
+ readonly z?: number;
1061
+ readonly extrusionH?: number;
1062
+ readonly contourW?: number;
1063
+ readonly prstMaterial?: keyof typeof PresetMaterialType;
1064
+ }
1065
+ //#endregion
992
1066
  //#region src/file/drawing/text-wrap/text-wrapping.d.ts
993
1067
  declare const TextWrappingType: {
994
1068
  readonly NONE: 0;
@@ -1131,6 +1205,12 @@ interface WpsShapeCoreOptions {
1131
1205
  readonly children: readonly Paragraph[];
1132
1206
  readonly nonVisualProperties?: INonVisualShapePropertiesOptions;
1133
1207
  readonly bodyProperties?: IBodyPropertiesOptions;
1208
+ readonly outline?: OutlineOptions;
1209
+ readonly solidFill?: SolidFillOptions;
1210
+ readonly gradientFill?: GradientFillOptions;
1211
+ readonly noFill?: boolean;
1212
+ readonly effects?: EffectListOptions;
1213
+ readonly shape3d?: Shape3DOptions;
1134
1214
  }
1135
1215
  //#endregion
1136
1216
  //#region src/file/media/data.d.ts
@@ -1263,8 +1343,6 @@ interface CoreShapeOptions {
1263
1343
  readonly transformation: IMediaTransformation;
1264
1344
  readonly floating?: IFloating;
1265
1345
  readonly altText?: DocPropertiesOptions;
1266
- readonly outline?: OutlineOptions;
1267
- readonly solidFill?: SolidFillOptions;
1268
1346
  }
1269
1347
  type IWpsShapeOptions = WpsShapeCoreOptions & {
1270
1348
  readonly type: "wps";
@@ -5834,7 +5834,11 @@ var docx = (function(exports, xml_js, hash_js, nanoid_non_secure, undio, fflate,
5834
5834
  createNonVisualShapeProperties(options.nonVisualProperties),
5835
5835
  new ShapeProperties({
5836
5836
  element: "wps",
5837
+ effects: options.effects,
5838
+ gradientFill: options.gradientFill,
5839
+ noFill: options.noFill,
5837
5840
  outline: options.outline,
5841
+ shape3d: options.shape3d,
5838
5842
  solidFill: options.solidFill,
5839
5843
  transform: options.transformation
5840
5844
  }),
@@ -23616,7 +23620,7 @@ var docx = (function(exports, xml_js, hash_js, nanoid_non_secure, undio, fflate,
23616
23620
  viewWrapper: file.Document
23617
23621
  }), {
23618
23622
  declaration: {
23619
- encoding: "utf8",
23623
+ encoding: "UTF-8",
23620
23624
  standalone: "yes"
23621
23625
  },
23622
23626
  indent: prettify
@@ -23631,7 +23635,7 @@ var docx = (function(exports, xml_js, hash_js, nanoid_non_secure, undio, fflate,
23631
23635
  }
23632
23636
  }), {
23633
23637
  declaration: {
23634
- encoding: "utf8",
23638
+ encoding: "UTF-8",
23635
23639
  standalone: "yes"
23636
23640
  },
23637
23641
  indent: prettify
@@ -23643,7 +23647,7 @@ var docx = (function(exports, xml_js, hash_js, nanoid_non_secure, undio, fflate,
23643
23647
  viewWrapper: file.FootNotes
23644
23648
  }), {
23645
23649
  declaration: {
23646
- encoding: "utf8",
23650
+ encoding: "UTF-8",
23647
23651
  standalone: "yes"
23648
23652
  },
23649
23653
  indent: prettify
@@ -23659,7 +23663,7 @@ var docx = (function(exports, xml_js, hash_js, nanoid_non_secure, undio, fflate,
23659
23663
  viewWrapper: file.Document
23660
23664
  }), {
23661
23665
  declaration: {
23662
- encoding: "utf8",
23666
+ encoding: "UTF-8",
23663
23667
  standalone: "yes"
23664
23668
  },
23665
23669
  indent: prettify
@@ -23686,7 +23690,7 @@ var docx = (function(exports, xml_js, hash_js, nanoid_non_secure, undio, fflate,
23686
23690
  View: file.Comments
23687
23691
  }
23688
23692
  }), {
23689
- declaration: { encoding: "utf8" },
23693
+ declaration: { encoding: "UTF-8" },
23690
23694
  indent: prettify
23691
23695
  });
23692
23696
  })(),
@@ -23698,7 +23702,7 @@ var docx = (function(exports, xml_js, hash_js, nanoid_non_secure, undio, fflate,
23698
23702
  stack: [],
23699
23703
  viewWrapper: file.Document
23700
23704
  }), {
23701
- declaration: { encoding: "utf8" },
23705
+ declaration: { encoding: "UTF-8" },
23702
23706
  indent: prettify
23703
23707
  }),
23704
23708
  path: "[Content_Types].xml"
@@ -23710,7 +23714,7 @@ var docx = (function(exports, xml_js, hash_js, nanoid_non_secure, undio, fflate,
23710
23714
  viewWrapper: file.Document
23711
23715
  }), {
23712
23716
  declaration: {
23713
- encoding: "utf8",
23717
+ encoding: "UTF-8",
23714
23718
  standalone: "yes"
23715
23719
  },
23716
23720
  indent: prettify
@@ -23730,7 +23734,7 @@ var docx = (function(exports, xml_js, hash_js, nanoid_non_secure, undio, fflate,
23730
23734
  stack: [],
23731
23735
  viewWrapper: file.Endnotes
23732
23736
  }), {
23733
- declaration: { encoding: "utf8" },
23737
+ declaration: { encoding: "UTF-8" },
23734
23738
  indent: prettify
23735
23739
  }),
23736
23740
  path: "word/endnotes.xml"
@@ -23741,7 +23745,7 @@ var docx = (function(exports, xml_js, hash_js, nanoid_non_secure, undio, fflate,
23741
23745
  stack: [],
23742
23746
  viewWrapper: file.Endnotes
23743
23747
  }), {
23744
- declaration: { encoding: "utf8" },
23748
+ declaration: { encoding: "UTF-8" },
23745
23749
  indent: prettify
23746
23750
  }),
23747
23751
  path: "word/_rels/endnotes.xml.rels"
@@ -23752,7 +23756,7 @@ var docx = (function(exports, xml_js, hash_js, nanoid_non_secure, undio, fflate,
23752
23756
  stack: [],
23753
23757
  viewWrapper: file.Document
23754
23758
  }), {
23755
- declaration: { encoding: "utf8" },
23759
+ declaration: { encoding: "UTF-8" },
23756
23760
  indent: prettify
23757
23761
  }),
23758
23762
  path: "_rels/.rels"
@@ -23764,7 +23768,7 @@ var docx = (function(exports, xml_js, hash_js, nanoid_non_secure, undio, fflate,
23764
23768
  viewWrapper: file.Document
23765
23769
  }), {
23766
23770
  declaration: {
23767
- encoding: "utf8",
23771
+ encoding: "UTF-8",
23768
23772
  standalone: "yes"
23769
23773
  },
23770
23774
  indent: prettify
@@ -23777,7 +23781,7 @@ var docx = (function(exports, xml_js, hash_js, nanoid_non_secure, undio, fflate,
23777
23781
  stack: [],
23778
23782
  viewWrapper: file.Document
23779
23783
  }), {
23780
- declaration: { encoding: "utf8" },
23784
+ declaration: { encoding: "UTF-8" },
23781
23785
  indent: prettify
23782
23786
  }),
23783
23787
  path: "word/_rels/fontTable.xml.rels"
@@ -23799,7 +23803,7 @@ var docx = (function(exports, xml_js, hash_js, nanoid_non_secure, undio, fflate,
23799
23803
  stack: [],
23800
23804
  viewWrapper: file.FootNotes
23801
23805
  }), {
23802
- declaration: { encoding: "utf8" },
23806
+ declaration: { encoding: "UTF-8" },
23803
23807
  indent: prettify
23804
23808
  });
23805
23809
  })(),
@@ -23811,7 +23815,7 @@ var docx = (function(exports, xml_js, hash_js, nanoid_non_secure, undio, fflate,
23811
23815
  stack: [],
23812
23816
  viewWrapper: footerWrapper
23813
23817
  }), {
23814
- declaration: { encoding: "utf8" },
23818
+ declaration: { encoding: "UTF-8" },
23815
23819
  indent: prettify
23816
23820
  });
23817
23821
  footerFormattedViews.set(index, xmlData);
@@ -23824,7 +23828,7 @@ var docx = (function(exports, xml_js, hash_js, nanoid_non_secure, undio, fflate,
23824
23828
  stack: [],
23825
23829
  viewWrapper: footerWrapper
23826
23830
  }), {
23827
- declaration: { encoding: "utf8" },
23831
+ declaration: { encoding: "UTF-8" },
23828
23832
  indent: prettify
23829
23833
  }),
23830
23834
  path: `word/_rels/footer${index + 1}.xml.rels`
@@ -23845,7 +23849,7 @@ var docx = (function(exports, xml_js, hash_js, nanoid_non_secure, undio, fflate,
23845
23849
  stack: [],
23846
23850
  viewWrapper: headerWrapper
23847
23851
  }), {
23848
- declaration: { encoding: "utf8" },
23852
+ declaration: { encoding: "UTF-8" },
23849
23853
  indent: prettify
23850
23854
  });
23851
23855
  headerFormattedViews.set(index, xmlData);
@@ -23858,7 +23862,7 @@ var docx = (function(exports, xml_js, hash_js, nanoid_non_secure, undio, fflate,
23858
23862
  stack: [],
23859
23863
  viewWrapper: headerWrapper
23860
23864
  }), {
23861
- declaration: { encoding: "utf8" },
23865
+ declaration: { encoding: "UTF-8" },
23862
23866
  indent: prettify
23863
23867
  }),
23864
23868
  path: `word/_rels/header${index + 1}.xml.rels`
@@ -23880,7 +23884,7 @@ var docx = (function(exports, xml_js, hash_js, nanoid_non_secure, undio, fflate,
23880
23884
  viewWrapper: file.Document
23881
23885
  }), {
23882
23886
  declaration: {
23883
- encoding: "utf8",
23887
+ encoding: "UTF-8",
23884
23888
  standalone: "yes"
23885
23889
  },
23886
23890
  indent: prettify
@@ -23894,7 +23898,7 @@ var docx = (function(exports, xml_js, hash_js, nanoid_non_secure, undio, fflate,
23894
23898
  viewWrapper: file.Document
23895
23899
  }), {
23896
23900
  declaration: {
23897
- encoding: "utf8",
23901
+ encoding: "UTF-8",
23898
23902
  standalone: "yes"
23899
23903
  },
23900
23904
  indent: prettify
@@ -23912,7 +23916,7 @@ var docx = (function(exports, xml_js, hash_js, nanoid_non_secure, undio, fflate,
23912
23916
  stack: [],
23913
23917
  viewWrapper: file.Document
23914
23918
  }), {
23915
- declaration: { encoding: "utf8" },
23919
+ declaration: { encoding: "UTF-8" },
23916
23920
  indent: prettify
23917
23921
  });
23918
23922
  })(),
@@ -23925,7 +23929,7 @@ var docx = (function(exports, xml_js, hash_js, nanoid_non_secure, undio, fflate,
23925
23929
  viewWrapper: file.Document
23926
23930
  }), {
23927
23931
  declaration: {
23928
- encoding: "utf8",
23932
+ encoding: "UTF-8",
23929
23933
  standalone: "yes"
23930
23934
  },
23931
23935
  indent: prettify
@@ -23940,7 +23944,7 @@ var docx = (function(exports, xml_js, hash_js, nanoid_non_secure, undio, fflate,
23940
23944
  viewWrapper: file.Document
23941
23945
  }), {
23942
23946
  declaration: {
23943
- encoding: "utf8",
23947
+ encoding: "UTF-8",
23944
23948
  standalone: "yes"
23945
23949
  },
23946
23950
  indent: prettify
@@ -24878,7 +24882,7 @@ var docx = (function(exports, xml_js, hash_js, nanoid_non_secure, undio, fflate,
24878
24882
  };
24879
24883
  const createRelationshipFile = () => ({
24880
24884
  declaration: { attributes: {
24881
- encoding: "utf8",
24885
+ encoding: "UTF-8",
24882
24886
  standalone: "yes",
24883
24887
  version: "1.0"
24884
24888
  } },
package/dist/index.mjs CHANGED
@@ -5814,7 +5814,11 @@ const createWpsShape = (options) => new BuilderElement({
5814
5814
  createNonVisualShapeProperties(options.nonVisualProperties),
5815
5815
  new ShapeProperties({
5816
5816
  element: "wps",
5817
+ effects: options.effects,
5818
+ gradientFill: options.gradientFill,
5819
+ noFill: options.noFill,
5817
5820
  outline: options.outline,
5821
+ shape3d: options.shape3d,
5818
5822
  solidFill: options.solidFill,
5819
5823
  transform: options.transformation
5820
5824
  }),
@@ -23596,7 +23600,7 @@ var Compiler = class {
23596
23600
  viewWrapper: file.Document
23597
23601
  }), {
23598
23602
  declaration: {
23599
- encoding: "utf8",
23603
+ encoding: "UTF-8",
23600
23604
  standalone: "yes"
23601
23605
  },
23602
23606
  indent: prettify
@@ -23611,7 +23615,7 @@ var Compiler = class {
23611
23615
  }
23612
23616
  }), {
23613
23617
  declaration: {
23614
- encoding: "utf8",
23618
+ encoding: "UTF-8",
23615
23619
  standalone: "yes"
23616
23620
  },
23617
23621
  indent: prettify
@@ -23623,7 +23627,7 @@ var Compiler = class {
23623
23627
  viewWrapper: file.FootNotes
23624
23628
  }), {
23625
23629
  declaration: {
23626
- encoding: "utf8",
23630
+ encoding: "UTF-8",
23627
23631
  standalone: "yes"
23628
23632
  },
23629
23633
  indent: prettify
@@ -23639,7 +23643,7 @@ var Compiler = class {
23639
23643
  viewWrapper: file.Document
23640
23644
  }), {
23641
23645
  declaration: {
23642
- encoding: "utf8",
23646
+ encoding: "UTF-8",
23643
23647
  standalone: "yes"
23644
23648
  },
23645
23649
  indent: prettify
@@ -23666,7 +23670,7 @@ var Compiler = class {
23666
23670
  View: file.Comments
23667
23671
  }
23668
23672
  }), {
23669
- declaration: { encoding: "utf8" },
23673
+ declaration: { encoding: "UTF-8" },
23670
23674
  indent: prettify
23671
23675
  });
23672
23676
  })(),
@@ -23678,7 +23682,7 @@ var Compiler = class {
23678
23682
  stack: [],
23679
23683
  viewWrapper: file.Document
23680
23684
  }), {
23681
- declaration: { encoding: "utf8" },
23685
+ declaration: { encoding: "UTF-8" },
23682
23686
  indent: prettify
23683
23687
  }),
23684
23688
  path: "[Content_Types].xml"
@@ -23690,7 +23694,7 @@ var Compiler = class {
23690
23694
  viewWrapper: file.Document
23691
23695
  }), {
23692
23696
  declaration: {
23693
- encoding: "utf8",
23697
+ encoding: "UTF-8",
23694
23698
  standalone: "yes"
23695
23699
  },
23696
23700
  indent: prettify
@@ -23710,7 +23714,7 @@ var Compiler = class {
23710
23714
  stack: [],
23711
23715
  viewWrapper: file.Endnotes
23712
23716
  }), {
23713
- declaration: { encoding: "utf8" },
23717
+ declaration: { encoding: "UTF-8" },
23714
23718
  indent: prettify
23715
23719
  }),
23716
23720
  path: "word/endnotes.xml"
@@ -23721,7 +23725,7 @@ var Compiler = class {
23721
23725
  stack: [],
23722
23726
  viewWrapper: file.Endnotes
23723
23727
  }), {
23724
- declaration: { encoding: "utf8" },
23728
+ declaration: { encoding: "UTF-8" },
23725
23729
  indent: prettify
23726
23730
  }),
23727
23731
  path: "word/_rels/endnotes.xml.rels"
@@ -23732,7 +23736,7 @@ var Compiler = class {
23732
23736
  stack: [],
23733
23737
  viewWrapper: file.Document
23734
23738
  }), {
23735
- declaration: { encoding: "utf8" },
23739
+ declaration: { encoding: "UTF-8" },
23736
23740
  indent: prettify
23737
23741
  }),
23738
23742
  path: "_rels/.rels"
@@ -23744,7 +23748,7 @@ var Compiler = class {
23744
23748
  viewWrapper: file.Document
23745
23749
  }), {
23746
23750
  declaration: {
23747
- encoding: "utf8",
23751
+ encoding: "UTF-8",
23748
23752
  standalone: "yes"
23749
23753
  },
23750
23754
  indent: prettify
@@ -23757,7 +23761,7 @@ var Compiler = class {
23757
23761
  stack: [],
23758
23762
  viewWrapper: file.Document
23759
23763
  }), {
23760
- declaration: { encoding: "utf8" },
23764
+ declaration: { encoding: "UTF-8" },
23761
23765
  indent: prettify
23762
23766
  }),
23763
23767
  path: "word/_rels/fontTable.xml.rels"
@@ -23779,7 +23783,7 @@ var Compiler = class {
23779
23783
  stack: [],
23780
23784
  viewWrapper: file.FootNotes
23781
23785
  }), {
23782
- declaration: { encoding: "utf8" },
23786
+ declaration: { encoding: "UTF-8" },
23783
23787
  indent: prettify
23784
23788
  });
23785
23789
  })(),
@@ -23791,7 +23795,7 @@ var Compiler = class {
23791
23795
  stack: [],
23792
23796
  viewWrapper: footerWrapper
23793
23797
  }), {
23794
- declaration: { encoding: "utf8" },
23798
+ declaration: { encoding: "UTF-8" },
23795
23799
  indent: prettify
23796
23800
  });
23797
23801
  footerFormattedViews.set(index, xmlData);
@@ -23804,7 +23808,7 @@ var Compiler = class {
23804
23808
  stack: [],
23805
23809
  viewWrapper: footerWrapper
23806
23810
  }), {
23807
- declaration: { encoding: "utf8" },
23811
+ declaration: { encoding: "UTF-8" },
23808
23812
  indent: prettify
23809
23813
  }),
23810
23814
  path: `word/_rels/footer${index + 1}.xml.rels`
@@ -23825,7 +23829,7 @@ var Compiler = class {
23825
23829
  stack: [],
23826
23830
  viewWrapper: headerWrapper
23827
23831
  }), {
23828
- declaration: { encoding: "utf8" },
23832
+ declaration: { encoding: "UTF-8" },
23829
23833
  indent: prettify
23830
23834
  });
23831
23835
  headerFormattedViews.set(index, xmlData);
@@ -23838,7 +23842,7 @@ var Compiler = class {
23838
23842
  stack: [],
23839
23843
  viewWrapper: headerWrapper
23840
23844
  }), {
23841
- declaration: { encoding: "utf8" },
23845
+ declaration: { encoding: "UTF-8" },
23842
23846
  indent: prettify
23843
23847
  }),
23844
23848
  path: `word/_rels/header${index + 1}.xml.rels`
@@ -23860,7 +23864,7 @@ var Compiler = class {
23860
23864
  viewWrapper: file.Document
23861
23865
  }), {
23862
23866
  declaration: {
23863
- encoding: "utf8",
23867
+ encoding: "UTF-8",
23864
23868
  standalone: "yes"
23865
23869
  },
23866
23870
  indent: prettify
@@ -23874,7 +23878,7 @@ var Compiler = class {
23874
23878
  viewWrapper: file.Document
23875
23879
  }), {
23876
23880
  declaration: {
23877
- encoding: "utf8",
23881
+ encoding: "UTF-8",
23878
23882
  standalone: "yes"
23879
23883
  },
23880
23884
  indent: prettify
@@ -23892,7 +23896,7 @@ var Compiler = class {
23892
23896
  stack: [],
23893
23897
  viewWrapper: file.Document
23894
23898
  }), {
23895
- declaration: { encoding: "utf8" },
23899
+ declaration: { encoding: "UTF-8" },
23896
23900
  indent: prettify
23897
23901
  });
23898
23902
  })(),
@@ -23905,7 +23909,7 @@ var Compiler = class {
23905
23909
  viewWrapper: file.Document
23906
23910
  }), {
23907
23911
  declaration: {
23908
- encoding: "utf8",
23912
+ encoding: "UTF-8",
23909
23913
  standalone: "yes"
23910
23914
  },
23911
23915
  indent: prettify
@@ -23920,7 +23924,7 @@ var Compiler = class {
23920
23924
  viewWrapper: file.Document
23921
23925
  }), {
23922
23926
  declaration: {
23923
- encoding: "utf8",
23927
+ encoding: "UTF-8",
23924
23928
  standalone: "yes"
23925
23929
  },
23926
23930
  indent: prettify
@@ -24858,7 +24862,7 @@ const toXml = (jsonObj) => {
24858
24862
  };
24859
24863
  const createRelationshipFile = () => ({
24860
24864
  declaration: { attributes: {
24861
- encoding: "utf8",
24865
+ encoding: "UTF-8",
24862
24866
  standalone: "yes",
24863
24867
  version: "1.0"
24864
24868
  } },
package/dist/index.umd.js CHANGED
@@ -5844,7 +5844,11 @@
5844
5844
  createNonVisualShapeProperties(options.nonVisualProperties),
5845
5845
  new ShapeProperties({
5846
5846
  element: "wps",
5847
+ effects: options.effects,
5848
+ gradientFill: options.gradientFill,
5849
+ noFill: options.noFill,
5847
5850
  outline: options.outline,
5851
+ shape3d: options.shape3d,
5848
5852
  solidFill: options.solidFill,
5849
5853
  transform: options.transformation
5850
5854
  }),
@@ -23626,7 +23630,7 @@
23626
23630
  viewWrapper: file.Document
23627
23631
  }), {
23628
23632
  declaration: {
23629
- encoding: "utf8",
23633
+ encoding: "UTF-8",
23630
23634
  standalone: "yes"
23631
23635
  },
23632
23636
  indent: prettify
@@ -23641,7 +23645,7 @@
23641
23645
  }
23642
23646
  }), {
23643
23647
  declaration: {
23644
- encoding: "utf8",
23648
+ encoding: "UTF-8",
23645
23649
  standalone: "yes"
23646
23650
  },
23647
23651
  indent: prettify
@@ -23653,7 +23657,7 @@
23653
23657
  viewWrapper: file.FootNotes
23654
23658
  }), {
23655
23659
  declaration: {
23656
- encoding: "utf8",
23660
+ encoding: "UTF-8",
23657
23661
  standalone: "yes"
23658
23662
  },
23659
23663
  indent: prettify
@@ -23669,7 +23673,7 @@
23669
23673
  viewWrapper: file.Document
23670
23674
  }), {
23671
23675
  declaration: {
23672
- encoding: "utf8",
23676
+ encoding: "UTF-8",
23673
23677
  standalone: "yes"
23674
23678
  },
23675
23679
  indent: prettify
@@ -23696,7 +23700,7 @@
23696
23700
  View: file.Comments
23697
23701
  }
23698
23702
  }), {
23699
- declaration: { encoding: "utf8" },
23703
+ declaration: { encoding: "UTF-8" },
23700
23704
  indent: prettify
23701
23705
  });
23702
23706
  })(),
@@ -23708,7 +23712,7 @@
23708
23712
  stack: [],
23709
23713
  viewWrapper: file.Document
23710
23714
  }), {
23711
- declaration: { encoding: "utf8" },
23715
+ declaration: { encoding: "UTF-8" },
23712
23716
  indent: prettify
23713
23717
  }),
23714
23718
  path: "[Content_Types].xml"
@@ -23720,7 +23724,7 @@
23720
23724
  viewWrapper: file.Document
23721
23725
  }), {
23722
23726
  declaration: {
23723
- encoding: "utf8",
23727
+ encoding: "UTF-8",
23724
23728
  standalone: "yes"
23725
23729
  },
23726
23730
  indent: prettify
@@ -23740,7 +23744,7 @@
23740
23744
  stack: [],
23741
23745
  viewWrapper: file.Endnotes
23742
23746
  }), {
23743
- declaration: { encoding: "utf8" },
23747
+ declaration: { encoding: "UTF-8" },
23744
23748
  indent: prettify
23745
23749
  }),
23746
23750
  path: "word/endnotes.xml"
@@ -23751,7 +23755,7 @@
23751
23755
  stack: [],
23752
23756
  viewWrapper: file.Endnotes
23753
23757
  }), {
23754
- declaration: { encoding: "utf8" },
23758
+ declaration: { encoding: "UTF-8" },
23755
23759
  indent: prettify
23756
23760
  }),
23757
23761
  path: "word/_rels/endnotes.xml.rels"
@@ -23762,7 +23766,7 @@
23762
23766
  stack: [],
23763
23767
  viewWrapper: file.Document
23764
23768
  }), {
23765
- declaration: { encoding: "utf8" },
23769
+ declaration: { encoding: "UTF-8" },
23766
23770
  indent: prettify
23767
23771
  }),
23768
23772
  path: "_rels/.rels"
@@ -23774,7 +23778,7 @@
23774
23778
  viewWrapper: file.Document
23775
23779
  }), {
23776
23780
  declaration: {
23777
- encoding: "utf8",
23781
+ encoding: "UTF-8",
23778
23782
  standalone: "yes"
23779
23783
  },
23780
23784
  indent: prettify
@@ -23787,7 +23791,7 @@
23787
23791
  stack: [],
23788
23792
  viewWrapper: file.Document
23789
23793
  }), {
23790
- declaration: { encoding: "utf8" },
23794
+ declaration: { encoding: "UTF-8" },
23791
23795
  indent: prettify
23792
23796
  }),
23793
23797
  path: "word/_rels/fontTable.xml.rels"
@@ -23809,7 +23813,7 @@
23809
23813
  stack: [],
23810
23814
  viewWrapper: file.FootNotes
23811
23815
  }), {
23812
- declaration: { encoding: "utf8" },
23816
+ declaration: { encoding: "UTF-8" },
23813
23817
  indent: prettify
23814
23818
  });
23815
23819
  })(),
@@ -23821,7 +23825,7 @@
23821
23825
  stack: [],
23822
23826
  viewWrapper: footerWrapper
23823
23827
  }), {
23824
- declaration: { encoding: "utf8" },
23828
+ declaration: { encoding: "UTF-8" },
23825
23829
  indent: prettify
23826
23830
  });
23827
23831
  footerFormattedViews.set(index, xmlData);
@@ -23834,7 +23838,7 @@
23834
23838
  stack: [],
23835
23839
  viewWrapper: footerWrapper
23836
23840
  }), {
23837
- declaration: { encoding: "utf8" },
23841
+ declaration: { encoding: "UTF-8" },
23838
23842
  indent: prettify
23839
23843
  }),
23840
23844
  path: `word/_rels/footer${index + 1}.xml.rels`
@@ -23855,7 +23859,7 @@
23855
23859
  stack: [],
23856
23860
  viewWrapper: headerWrapper
23857
23861
  }), {
23858
- declaration: { encoding: "utf8" },
23862
+ declaration: { encoding: "UTF-8" },
23859
23863
  indent: prettify
23860
23864
  });
23861
23865
  headerFormattedViews.set(index, xmlData);
@@ -23868,7 +23872,7 @@
23868
23872
  stack: [],
23869
23873
  viewWrapper: headerWrapper
23870
23874
  }), {
23871
- declaration: { encoding: "utf8" },
23875
+ declaration: { encoding: "UTF-8" },
23872
23876
  indent: prettify
23873
23877
  }),
23874
23878
  path: `word/_rels/header${index + 1}.xml.rels`
@@ -23890,7 +23894,7 @@
23890
23894
  viewWrapper: file.Document
23891
23895
  }), {
23892
23896
  declaration: {
23893
- encoding: "utf8",
23897
+ encoding: "UTF-8",
23894
23898
  standalone: "yes"
23895
23899
  },
23896
23900
  indent: prettify
@@ -23904,7 +23908,7 @@
23904
23908
  viewWrapper: file.Document
23905
23909
  }), {
23906
23910
  declaration: {
23907
- encoding: "utf8",
23911
+ encoding: "UTF-8",
23908
23912
  standalone: "yes"
23909
23913
  },
23910
23914
  indent: prettify
@@ -23922,7 +23926,7 @@
23922
23926
  stack: [],
23923
23927
  viewWrapper: file.Document
23924
23928
  }), {
23925
- declaration: { encoding: "utf8" },
23929
+ declaration: { encoding: "UTF-8" },
23926
23930
  indent: prettify
23927
23931
  });
23928
23932
  })(),
@@ -23935,7 +23939,7 @@
23935
23939
  viewWrapper: file.Document
23936
23940
  }), {
23937
23941
  declaration: {
23938
- encoding: "utf8",
23942
+ encoding: "UTF-8",
23939
23943
  standalone: "yes"
23940
23944
  },
23941
23945
  indent: prettify
@@ -23950,7 +23954,7 @@
23950
23954
  viewWrapper: file.Document
23951
23955
  }), {
23952
23956
  declaration: {
23953
- encoding: "utf8",
23957
+ encoding: "UTF-8",
23954
23958
  standalone: "yes"
23955
23959
  },
23956
23960
  indent: prettify
@@ -24888,7 +24892,7 @@
24888
24892
  };
24889
24893
  const createRelationshipFile = () => ({
24890
24894
  declaration: { attributes: {
24891
- encoding: "utf8",
24895
+ encoding: "UTF-8",
24892
24896
  standalone: "yes",
24893
24897
  version: "1.0"
24894
24898
  } },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docx-plus",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.",
5
5
  "keywords": [
6
6
  "clippy",