docx-plus 0.0.14 → 0.1.1

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.d.cts CHANGED
@@ -537,11 +537,16 @@ declare class SymbolRun extends Run {
537
537
  }
538
538
  //#endregion
539
539
  //#region src/file/drawing/doc-properties/doc-properties.d.ts
540
+ interface HyperlinkOptions {
541
+ readonly click?: string;
542
+ readonly hover?: string;
543
+ }
540
544
  interface DocPropertiesOptions {
541
545
  readonly name: string;
542
546
  readonly description?: string;
543
547
  readonly title?: string;
544
548
  readonly id?: string;
549
+ readonly hyperlink?: HyperlinkOptions;
545
550
  }
546
551
  //#endregion
547
552
  //#region src/file/drawing/inline/graphic/graphic-data/pic/blip/source-rectangle.d.ts
@@ -820,13 +825,26 @@ interface SystemColorOptions {
820
825
  //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/solid-fill.d.ts
821
826
  type SolidFillOptions = RgbColorOptions | SchemeColorOptions | HslColorOptions | SystemColorOptions | PresetColorOptions;
822
827
  //#endregion
828
+ //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/fill-overlay.d.ts
829
+ declare const BlendMode: {
830
+ readonly OVER: "over";
831
+ readonly MULTIPLY: "mult";
832
+ readonly SCREEN: "screen";
833
+ readonly DARKEN: "darken";
834
+ readonly LIGHTEN: "lighten";
835
+ };
836
+ interface FillOverlayEffectOptions {
837
+ readonly blend: (typeof BlendMode)[keyof typeof BlendMode];
838
+ readonly color: SolidFillOptions;
839
+ }
840
+ //#endregion
823
841
  //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/glow.d.ts
824
842
  interface GlowEffectOptions {
825
843
  readonly rad?: number;
826
844
  readonly color: SolidFillOptions;
827
845
  }
828
846
  //#endregion
829
- //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/inner-shdw.d.ts
847
+ //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/inner-shadow.d.ts
830
848
  interface InnerShadowEffectOptions {
831
849
  readonly blurRad?: number;
832
850
  readonly dist?: number;
@@ -834,7 +852,7 @@ interface InnerShadowEffectOptions {
834
852
  readonly color: SolidFillOptions;
835
853
  }
836
854
  //#endregion
837
- //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/outer-shdw.d.ts
855
+ //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/outer-shadow.d.ts
838
856
  declare const RectAlignment: {
839
857
  readonly TOP_LEFT: "tl";
840
858
  readonly TOP: "t";
@@ -859,7 +877,7 @@ interface OuterShadowEffectOptions {
859
877
  readonly color: SolidFillOptions;
860
878
  }
861
879
  //#endregion
862
- //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/prst-shdw.d.ts
880
+ //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/preset-shadow.d.ts
863
881
  declare const PresetShadowVal: {
864
882
  readonly SHDW1: "shdw1";
865
883
  readonly SHDW2: "shdw2";
@@ -914,10 +932,11 @@ interface BlurEffectOptions {
914
932
  }
915
933
  interface EffectListOptions {
916
934
  readonly blur?: BlurEffectOptions;
935
+ readonly fillOverlay?: FillOverlayEffectOptions;
917
936
  readonly glow?: GlowEffectOptions;
918
- readonly innerShdw?: InnerShadowEffectOptions;
919
- readonly outerShdw?: OuterShadowEffectOptions;
920
- readonly prstShdw?: PresetShadowEffectOptions;
937
+ readonly innerShadow?: InnerShadowEffectOptions;
938
+ readonly outerShadow?: OuterShadowEffectOptions;
939
+ readonly presetShadow?: PresetShadowEffectOptions;
921
940
  readonly reflection?: ReflectionEffectOptions | true;
922
941
  readonly softEdge?: number;
923
942
  }
@@ -1048,8 +1067,8 @@ declare const PresetMaterialType: {
1048
1067
  interface Shape3DOptions {
1049
1068
  readonly bevelT?: BevelOptions;
1050
1069
  readonly bevelB?: BevelOptions;
1051
- readonly extrusionClr?: SolidFillOptions;
1052
- readonly contourClr?: SolidFillOptions;
1070
+ readonly extrusionColor?: SolidFillOptions;
1071
+ readonly contourColor?: SolidFillOptions;
1053
1072
  readonly z?: number;
1054
1073
  readonly extrusionH?: number;
1055
1074
  readonly contourW?: number;
@@ -1239,7 +1258,7 @@ interface CoreMediaData {
1239
1258
  readonly srcRect?: SourceRectangleOptions;
1240
1259
  }
1241
1260
  interface RegularMediaData {
1242
- readonly type: "jpg" | "png" | "gif" | "bmp";
1261
+ readonly type: "jpg" | "png" | "gif" | "bmp" | "tif" | "ico" | "emf" | "wmf";
1243
1262
  }
1244
1263
  interface SvgMediaData {
1245
1264
  readonly type: "svg";
@@ -1290,6 +1309,93 @@ declare class Media {
1290
1309
  get Array(): readonly IMediaData[];
1291
1310
  }
1292
1311
  //#endregion
1312
+ //#region src/file/drawing/inline/graphic/graphic-data/pic/blip/blip-effects.d.ts
1313
+ interface LuminanceEffectOptions {
1314
+ readonly bright?: number;
1315
+ readonly contrast?: number;
1316
+ }
1317
+ interface HSLEffectOptions {
1318
+ readonly hue?: number;
1319
+ readonly sat?: number;
1320
+ readonly lum?: number;
1321
+ }
1322
+ interface TintEffectOptions {
1323
+ readonly hue?: number;
1324
+ readonly amt?: number;
1325
+ }
1326
+ interface DuotoneEffectOptions {
1327
+ readonly color1: SolidFillOptions;
1328
+ readonly color2: SolidFillOptions;
1329
+ }
1330
+ interface BiLevelEffectOptions {
1331
+ readonly thresh: number;
1332
+ }
1333
+ interface AlphaReplaceEffectOptions {
1334
+ readonly amount: number;
1335
+ }
1336
+ interface AlphaBiLevelEffectOptions {
1337
+ readonly thresh: number;
1338
+ }
1339
+ interface AlphaModulateFixedEffectOptions {
1340
+ readonly amount?: number;
1341
+ }
1342
+ interface ColorChangeEffectOptions {
1343
+ readonly from: SolidFillOptions;
1344
+ readonly to: SolidFillOptions;
1345
+ readonly useAlpha?: boolean;
1346
+ }
1347
+ interface ColorReplaceEffectOptions {
1348
+ readonly color: SolidFillOptions;
1349
+ }
1350
+ interface BlipBlurEffectOptions {
1351
+ readonly rad?: number;
1352
+ readonly grow?: boolean;
1353
+ }
1354
+ interface BlipEffectsOptions {
1355
+ readonly grayscale?: boolean;
1356
+ readonly luminance?: LuminanceEffectOptions;
1357
+ readonly hsl?: HSLEffectOptions;
1358
+ readonly tint?: TintEffectOptions;
1359
+ readonly duotone?: DuotoneEffectOptions;
1360
+ readonly biLevel?: BiLevelEffectOptions;
1361
+ readonly alphaCeiling?: boolean;
1362
+ readonly alphaFloor?: boolean;
1363
+ readonly alphaInverse?: SolidFillOptions;
1364
+ readonly alphaModFix?: AlphaModulateFixedEffectOptions;
1365
+ readonly alphaRepl?: AlphaReplaceEffectOptions;
1366
+ readonly alphaBiLevel?: AlphaBiLevelEffectOptions;
1367
+ readonly colorChange?: ColorChangeEffectOptions;
1368
+ readonly colorRepl?: ColorReplaceEffectOptions;
1369
+ readonly blur?: BlipBlurEffectOptions;
1370
+ }
1371
+ //#endregion
1372
+ //#region src/file/drawing/inline/graphic/graphic-data/pic/blip/tile.d.ts
1373
+ declare const TileFlipMode: {
1374
+ readonly NONE: "none";
1375
+ readonly X: "x";
1376
+ readonly Y: "y";
1377
+ readonly XY: "xy";
1378
+ };
1379
+ declare const TileAlignment: {
1380
+ readonly TOP_LEFT: "tl";
1381
+ readonly TOP: "t";
1382
+ readonly TOP_RIGHT: "tr";
1383
+ readonly LEFT: "l";
1384
+ readonly CENTER: "ctr";
1385
+ readonly RIGHT: "r";
1386
+ readonly BOTTOM_LEFT: "bl";
1387
+ readonly BOTTOM: "b";
1388
+ readonly BOTTOM_RIGHT: "br";
1389
+ };
1390
+ interface TileOptions {
1391
+ readonly tx?: number;
1392
+ readonly ty?: number;
1393
+ readonly sx?: number;
1394
+ readonly sy?: number;
1395
+ readonly flip?: keyof typeof TileFlipMode;
1396
+ readonly align?: keyof typeof TileAlignment;
1397
+ }
1398
+ //#endregion
1293
1399
  //#region src/file/drawing/drawing.d.ts
1294
1400
  interface IDistance {
1295
1401
  readonly distT?: number;
@@ -1302,6 +1408,9 @@ interface IDrawingOptions {
1302
1408
  readonly docProperties?: DocPropertiesOptions;
1303
1409
  readonly outline?: OutlineOptions;
1304
1410
  readonly solidFill?: SolidFillOptions;
1411
+ readonly effects?: EffectListOptions;
1412
+ readonly blipEffects?: BlipEffectsOptions;
1413
+ readonly tile?: TileOptions;
1305
1414
  }
1306
1415
  declare class Drawing extends XmlComponent {
1307
1416
  constructor(imageData: IExtendedMediaData, drawingOptions?: IDrawingOptions);
@@ -1314,10 +1423,13 @@ interface CoreImageOptions {
1314
1423
  readonly altText?: DocPropertiesOptions;
1315
1424
  readonly outline?: OutlineOptions;
1316
1425
  readonly solidFill?: SolidFillOptions;
1426
+ readonly effects?: EffectListOptions;
1427
+ readonly blipEffects?: BlipEffectsOptions;
1317
1428
  readonly srcRect?: SourceRectangleOptions;
1429
+ readonly tile?: TileOptions;
1318
1430
  }
1319
1431
  interface RegularImageOptions {
1320
- readonly type: "jpg" | "png" | "gif" | "bmp";
1432
+ readonly type: "jpg" | "png" | "gif" | "bmp" | "tif" | "ico" | "emf" | "wmf";
1321
1433
  readonly data: DataType;
1322
1434
  }
1323
1435
  interface SvgMediaOptions {
package/dist/index.d.mts CHANGED
@@ -539,11 +539,16 @@ declare class SymbolRun extends Run {
539
539
  }
540
540
  //#endregion
541
541
  //#region src/file/drawing/doc-properties/doc-properties.d.ts
542
+ interface HyperlinkOptions {
543
+ readonly click?: string;
544
+ readonly hover?: string;
545
+ }
542
546
  interface DocPropertiesOptions {
543
547
  readonly name: string;
544
548
  readonly description?: string;
545
549
  readonly title?: string;
546
550
  readonly id?: string;
551
+ readonly hyperlink?: HyperlinkOptions;
547
552
  }
548
553
  //#endregion
549
554
  //#region src/file/drawing/inline/graphic/graphic-data/pic/blip/source-rectangle.d.ts
@@ -822,13 +827,26 @@ interface SystemColorOptions {
822
827
  //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/solid-fill.d.ts
823
828
  type SolidFillOptions = RgbColorOptions | SchemeColorOptions | HslColorOptions | SystemColorOptions | PresetColorOptions;
824
829
  //#endregion
830
+ //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/fill-overlay.d.ts
831
+ declare const BlendMode: {
832
+ readonly OVER: "over";
833
+ readonly MULTIPLY: "mult";
834
+ readonly SCREEN: "screen";
835
+ readonly DARKEN: "darken";
836
+ readonly LIGHTEN: "lighten";
837
+ };
838
+ interface FillOverlayEffectOptions {
839
+ readonly blend: (typeof BlendMode)[keyof typeof BlendMode];
840
+ readonly color: SolidFillOptions;
841
+ }
842
+ //#endregion
825
843
  //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/glow.d.ts
826
844
  interface GlowEffectOptions {
827
845
  readonly rad?: number;
828
846
  readonly color: SolidFillOptions;
829
847
  }
830
848
  //#endregion
831
- //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/inner-shdw.d.ts
849
+ //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/inner-shadow.d.ts
832
850
  interface InnerShadowEffectOptions {
833
851
  readonly blurRad?: number;
834
852
  readonly dist?: number;
@@ -836,7 +854,7 @@ interface InnerShadowEffectOptions {
836
854
  readonly color: SolidFillOptions;
837
855
  }
838
856
  //#endregion
839
- //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/outer-shdw.d.ts
857
+ //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/outer-shadow.d.ts
840
858
  declare const RectAlignment: {
841
859
  readonly TOP_LEFT: "tl";
842
860
  readonly TOP: "t";
@@ -861,7 +879,7 @@ interface OuterShadowEffectOptions {
861
879
  readonly color: SolidFillOptions;
862
880
  }
863
881
  //#endregion
864
- //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/prst-shdw.d.ts
882
+ //#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/preset-shadow.d.ts
865
883
  declare const PresetShadowVal: {
866
884
  readonly SHDW1: "shdw1";
867
885
  readonly SHDW2: "shdw2";
@@ -916,10 +934,11 @@ interface BlurEffectOptions {
916
934
  }
917
935
  interface EffectListOptions {
918
936
  readonly blur?: BlurEffectOptions;
937
+ readonly fillOverlay?: FillOverlayEffectOptions;
919
938
  readonly glow?: GlowEffectOptions;
920
- readonly innerShdw?: InnerShadowEffectOptions;
921
- readonly outerShdw?: OuterShadowEffectOptions;
922
- readonly prstShdw?: PresetShadowEffectOptions;
939
+ readonly innerShadow?: InnerShadowEffectOptions;
940
+ readonly outerShadow?: OuterShadowEffectOptions;
941
+ readonly presetShadow?: PresetShadowEffectOptions;
923
942
  readonly reflection?: ReflectionEffectOptions | true;
924
943
  readonly softEdge?: number;
925
944
  }
@@ -1050,8 +1069,8 @@ declare const PresetMaterialType: {
1050
1069
  interface Shape3DOptions {
1051
1070
  readonly bevelT?: BevelOptions;
1052
1071
  readonly bevelB?: BevelOptions;
1053
- readonly extrusionClr?: SolidFillOptions;
1054
- readonly contourClr?: SolidFillOptions;
1072
+ readonly extrusionColor?: SolidFillOptions;
1073
+ readonly contourColor?: SolidFillOptions;
1055
1074
  readonly z?: number;
1056
1075
  readonly extrusionH?: number;
1057
1076
  readonly contourW?: number;
@@ -1241,7 +1260,7 @@ interface CoreMediaData {
1241
1260
  readonly srcRect?: SourceRectangleOptions;
1242
1261
  }
1243
1262
  interface RegularMediaData {
1244
- readonly type: "jpg" | "png" | "gif" | "bmp";
1263
+ readonly type: "jpg" | "png" | "gif" | "bmp" | "tif" | "ico" | "emf" | "wmf";
1245
1264
  }
1246
1265
  interface SvgMediaData {
1247
1266
  readonly type: "svg";
@@ -1292,6 +1311,93 @@ declare class Media {
1292
1311
  get Array(): readonly IMediaData[];
1293
1312
  }
1294
1313
  //#endregion
1314
+ //#region src/file/drawing/inline/graphic/graphic-data/pic/blip/blip-effects.d.ts
1315
+ interface LuminanceEffectOptions {
1316
+ readonly bright?: number;
1317
+ readonly contrast?: number;
1318
+ }
1319
+ interface HSLEffectOptions {
1320
+ readonly hue?: number;
1321
+ readonly sat?: number;
1322
+ readonly lum?: number;
1323
+ }
1324
+ interface TintEffectOptions {
1325
+ readonly hue?: number;
1326
+ readonly amt?: number;
1327
+ }
1328
+ interface DuotoneEffectOptions {
1329
+ readonly color1: SolidFillOptions;
1330
+ readonly color2: SolidFillOptions;
1331
+ }
1332
+ interface BiLevelEffectOptions {
1333
+ readonly thresh: number;
1334
+ }
1335
+ interface AlphaReplaceEffectOptions {
1336
+ readonly amount: number;
1337
+ }
1338
+ interface AlphaBiLevelEffectOptions {
1339
+ readonly thresh: number;
1340
+ }
1341
+ interface AlphaModulateFixedEffectOptions {
1342
+ readonly amount?: number;
1343
+ }
1344
+ interface ColorChangeEffectOptions {
1345
+ readonly from: SolidFillOptions;
1346
+ readonly to: SolidFillOptions;
1347
+ readonly useAlpha?: boolean;
1348
+ }
1349
+ interface ColorReplaceEffectOptions {
1350
+ readonly color: SolidFillOptions;
1351
+ }
1352
+ interface BlipBlurEffectOptions {
1353
+ readonly rad?: number;
1354
+ readonly grow?: boolean;
1355
+ }
1356
+ interface BlipEffectsOptions {
1357
+ readonly grayscale?: boolean;
1358
+ readonly luminance?: LuminanceEffectOptions;
1359
+ readonly hsl?: HSLEffectOptions;
1360
+ readonly tint?: TintEffectOptions;
1361
+ readonly duotone?: DuotoneEffectOptions;
1362
+ readonly biLevel?: BiLevelEffectOptions;
1363
+ readonly alphaCeiling?: boolean;
1364
+ readonly alphaFloor?: boolean;
1365
+ readonly alphaInverse?: SolidFillOptions;
1366
+ readonly alphaModFix?: AlphaModulateFixedEffectOptions;
1367
+ readonly alphaRepl?: AlphaReplaceEffectOptions;
1368
+ readonly alphaBiLevel?: AlphaBiLevelEffectOptions;
1369
+ readonly colorChange?: ColorChangeEffectOptions;
1370
+ readonly colorRepl?: ColorReplaceEffectOptions;
1371
+ readonly blur?: BlipBlurEffectOptions;
1372
+ }
1373
+ //#endregion
1374
+ //#region src/file/drawing/inline/graphic/graphic-data/pic/blip/tile.d.ts
1375
+ declare const TileFlipMode: {
1376
+ readonly NONE: "none";
1377
+ readonly X: "x";
1378
+ readonly Y: "y";
1379
+ readonly XY: "xy";
1380
+ };
1381
+ declare const TileAlignment: {
1382
+ readonly TOP_LEFT: "tl";
1383
+ readonly TOP: "t";
1384
+ readonly TOP_RIGHT: "tr";
1385
+ readonly LEFT: "l";
1386
+ readonly CENTER: "ctr";
1387
+ readonly RIGHT: "r";
1388
+ readonly BOTTOM_LEFT: "bl";
1389
+ readonly BOTTOM: "b";
1390
+ readonly BOTTOM_RIGHT: "br";
1391
+ };
1392
+ interface TileOptions {
1393
+ readonly tx?: number;
1394
+ readonly ty?: number;
1395
+ readonly sx?: number;
1396
+ readonly sy?: number;
1397
+ readonly flip?: keyof typeof TileFlipMode;
1398
+ readonly align?: keyof typeof TileAlignment;
1399
+ }
1400
+ //#endregion
1295
1401
  //#region src/file/drawing/drawing.d.ts
1296
1402
  interface IDistance {
1297
1403
  readonly distT?: number;
@@ -1304,6 +1410,9 @@ interface IDrawingOptions {
1304
1410
  readonly docProperties?: DocPropertiesOptions;
1305
1411
  readonly outline?: OutlineOptions;
1306
1412
  readonly solidFill?: SolidFillOptions;
1413
+ readonly effects?: EffectListOptions;
1414
+ readonly blipEffects?: BlipEffectsOptions;
1415
+ readonly tile?: TileOptions;
1307
1416
  }
1308
1417
  declare class Drawing extends XmlComponent {
1309
1418
  constructor(imageData: IExtendedMediaData, drawingOptions?: IDrawingOptions);
@@ -1316,10 +1425,13 @@ interface CoreImageOptions {
1316
1425
  readonly altText?: DocPropertiesOptions;
1317
1426
  readonly outline?: OutlineOptions;
1318
1427
  readonly solidFill?: SolidFillOptions;
1428
+ readonly effects?: EffectListOptions;
1429
+ readonly blipEffects?: BlipEffectsOptions;
1319
1430
  readonly srcRect?: SourceRectangleOptions;
1431
+ readonly tile?: TileOptions;
1320
1432
  }
1321
1433
  interface RegularImageOptions {
1322
- readonly type: "jpg" | "png" | "gif" | "bmp";
1434
+ readonly type: "jpg" | "png" | "gif" | "bmp" | "tif" | "ico" | "emf" | "wmf";
1323
1435
  readonly data: DataType;
1324
1436
  }
1325
1437
  interface SvgMediaOptions {