docx-plus 0.0.7 → 0.0.8

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
  }),
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
  }),
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
  }),
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
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docx-plus",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
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",