docx-plus 0.1.5 → 0.1.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 +50 -28
- package/dist/index.cjs +8327 -3262
- package/dist/index.d.cts +1290 -189
- package/dist/index.d.mts +1290 -189
- package/dist/index.iife.js +8327 -3262
- package/dist/index.mjs +8271 -3262
- package/dist/index.umd.js +8327 -3262
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -327,6 +327,10 @@ interface ITablePropertiesOptionsBase {
|
|
|
327
327
|
readonly visuallyRightToLeft?: boolean;
|
|
328
328
|
readonly tableLook?: ITableLookOptions;
|
|
329
329
|
readonly cellSpacing?: ITableCellSpacingProperties;
|
|
330
|
+
readonly styleRowBandSize?: number;
|
|
331
|
+
readonly styleColBandSize?: number;
|
|
332
|
+
readonly caption?: string;
|
|
333
|
+
readonly description?: string;
|
|
330
334
|
}
|
|
331
335
|
type ITablePropertiesChangeOptions = ITablePropertiesOptions & IChangedAttributesProperties;
|
|
332
336
|
type ITablePropertiesOptions = {
|
|
@@ -758,6 +762,14 @@ interface RgbColorOptions {
|
|
|
758
762
|
readonly transforms?: ColorTransformOptions;
|
|
759
763
|
}
|
|
760
764
|
//#endregion
|
|
765
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/sc-rgb-color.d.ts
|
|
766
|
+
interface ScRgbColorOptions {
|
|
767
|
+
readonly r: string;
|
|
768
|
+
readonly g: string;
|
|
769
|
+
readonly b: string;
|
|
770
|
+
readonly transforms?: ColorTransformOptions;
|
|
771
|
+
}
|
|
772
|
+
//#endregion
|
|
761
773
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/scheme-color.d.ts
|
|
762
774
|
interface SchemeColorOptions {
|
|
763
775
|
readonly value: (typeof SchemeColor)[keyof typeof SchemeColor];
|
|
@@ -823,7 +835,109 @@ interface SystemColorOptions {
|
|
|
823
835
|
}
|
|
824
836
|
//#endregion
|
|
825
837
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/solid-fill.d.ts
|
|
826
|
-
type SolidFillOptions = RgbColorOptions | SchemeColorOptions | HslColorOptions | SystemColorOptions | PresetColorOptions;
|
|
838
|
+
type SolidFillOptions = ScRgbColorOptions | RgbColorOptions | SchemeColorOptions | HslColorOptions | SystemColorOptions | PresetColorOptions;
|
|
839
|
+
//#endregion
|
|
840
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/fill/gradient-fill.d.ts
|
|
841
|
+
interface IGradientStop {
|
|
842
|
+
readonly position: number;
|
|
843
|
+
readonly color: SolidFillOptions;
|
|
844
|
+
}
|
|
845
|
+
declare const PathShadeType: {
|
|
846
|
+
readonly SHAPE: "shape";
|
|
847
|
+
readonly CIRCLE: "circle";
|
|
848
|
+
readonly RECT: "rect";
|
|
849
|
+
};
|
|
850
|
+
declare const TileFlipMode$1: {
|
|
851
|
+
readonly NONE: "none";
|
|
852
|
+
readonly X: "x";
|
|
853
|
+
readonly Y: "y";
|
|
854
|
+
readonly XY: "xy";
|
|
855
|
+
};
|
|
856
|
+
interface LinearShadeOptions {
|
|
857
|
+
readonly angle?: number;
|
|
858
|
+
readonly scaled?: boolean;
|
|
859
|
+
}
|
|
860
|
+
interface RelativeRect {
|
|
861
|
+
readonly left?: string;
|
|
862
|
+
readonly top?: string;
|
|
863
|
+
readonly right?: string;
|
|
864
|
+
readonly bottom?: string;
|
|
865
|
+
}
|
|
866
|
+
interface PathShadeOptions {
|
|
867
|
+
readonly path?: keyof typeof PathShadeType;
|
|
868
|
+
readonly fillToRect?: RelativeRect;
|
|
869
|
+
}
|
|
870
|
+
type GradientShadeOptions = LinearShadeOptions | PathShadeOptions;
|
|
871
|
+
interface GradientFillOptions {
|
|
872
|
+
readonly stops: readonly IGradientStop[];
|
|
873
|
+
readonly shade?: GradientShadeOptions;
|
|
874
|
+
readonly flip?: keyof typeof TileFlipMode$1;
|
|
875
|
+
readonly tileRect?: RelativeRect;
|
|
876
|
+
readonly rotateWithShape?: boolean;
|
|
877
|
+
}
|
|
878
|
+
//#endregion
|
|
879
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/fill/pattern-fill.d.ts
|
|
880
|
+
declare const PresetPattern: {
|
|
881
|
+
readonly PCT5: "pct5";
|
|
882
|
+
readonly PCT10: "pct10";
|
|
883
|
+
readonly PCT20: "pct20";
|
|
884
|
+
readonly PCT25: "pct25";
|
|
885
|
+
readonly PCT30: "pct30";
|
|
886
|
+
readonly PCT40: "pct40";
|
|
887
|
+
readonly PCT50: "pct50";
|
|
888
|
+
readonly PCT60: "pct60";
|
|
889
|
+
readonly PCT70: "pct70";
|
|
890
|
+
readonly PCT75: "pct75";
|
|
891
|
+
readonly PCT80: "pct80";
|
|
892
|
+
readonly PCT90: "pct90";
|
|
893
|
+
readonly HORZ: "horz";
|
|
894
|
+
readonly VERT: "vert";
|
|
895
|
+
readonly LT_HORZ: "ltHorz";
|
|
896
|
+
readonly LT_VERT: "ltVert";
|
|
897
|
+
readonly DK_HORZ: "dkHorz";
|
|
898
|
+
readonly DK_VERT: "dkVert";
|
|
899
|
+
readonly NAR_HORZ: "narHorz";
|
|
900
|
+
readonly NAR_VERT: "narVert";
|
|
901
|
+
readonly DASH_HORZ: "dashHorz";
|
|
902
|
+
readonly DASH_VERT: "dashVert";
|
|
903
|
+
readonly CROSS: "cross";
|
|
904
|
+
readonly DN_DIAG: "dnDiag";
|
|
905
|
+
readonly UP_DIAG: "upDiag";
|
|
906
|
+
readonly LT_DN_DIAG: "ltDnDiag";
|
|
907
|
+
readonly LT_UP_DIAG: "ltUpDiag";
|
|
908
|
+
readonly DK_DN_DIAG: "dkDnDiag";
|
|
909
|
+
readonly DK_UP_DIAG: "dkUpDiag";
|
|
910
|
+
readonly WD_DN_DIAG: "wdDnDiag";
|
|
911
|
+
readonly WD_UP_DIAG: "wdUpDiag";
|
|
912
|
+
readonly DASH_DN_DIAG: "dashDnDiag";
|
|
913
|
+
readonly DASH_UP_DIAG: "dashUpDiag";
|
|
914
|
+
readonly DIAG_CROSS: "diagCross";
|
|
915
|
+
readonly SM_CHECK: "smCheck";
|
|
916
|
+
readonly LG_CHECK: "lgCheck";
|
|
917
|
+
readonly SM_GRID: "smGrid";
|
|
918
|
+
readonly LG_GRID: "lgGrid";
|
|
919
|
+
readonly DOT_GRID: "dotGrid";
|
|
920
|
+
readonly SM_CONFETTI: "smConfetti";
|
|
921
|
+
readonly LG_CONFETTI: "lgConfetti";
|
|
922
|
+
readonly HORZ_BRICK: "horzBrick";
|
|
923
|
+
readonly DIAG_BRICK: "diagBrick";
|
|
924
|
+
readonly SOLID_DMND: "solidDmnd";
|
|
925
|
+
readonly OPEN_DMND: "openDmnd";
|
|
926
|
+
readonly DOT_DMND: "dotDmnd";
|
|
927
|
+
readonly PLAID: "plaid";
|
|
928
|
+
readonly SPHERE: "sphere";
|
|
929
|
+
readonly WEAVE: "weave";
|
|
930
|
+
readonly DIVOT: "divot";
|
|
931
|
+
readonly SHINGLE: "shingle";
|
|
932
|
+
readonly WAVE: "wave";
|
|
933
|
+
readonly TRELLIS: "trellis";
|
|
934
|
+
readonly ZIG_ZAG: "zigZag";
|
|
935
|
+
};
|
|
936
|
+
interface PatternFillOptions {
|
|
937
|
+
readonly pattern: (typeof PresetPattern)[keyof typeof PresetPattern];
|
|
938
|
+
readonly foregroundColor?: SolidFillOptions;
|
|
939
|
+
readonly backgroundColor?: SolidFillOptions;
|
|
940
|
+
}
|
|
827
941
|
//#endregion
|
|
828
942
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/fill-overlay.d.ts
|
|
829
943
|
declare const BlendMode: {
|
|
@@ -835,7 +949,11 @@ declare const BlendMode: {
|
|
|
835
949
|
};
|
|
836
950
|
interface FillOverlayEffectOptions {
|
|
837
951
|
readonly blend: (typeof BlendMode)[keyof typeof BlendMode];
|
|
838
|
-
readonly
|
|
952
|
+
readonly solidFill?: SolidFillOptions;
|
|
953
|
+
readonly gradientFill?: GradientFillOptions;
|
|
954
|
+
readonly patternFill?: PatternFillOptions;
|
|
955
|
+
readonly groupFill?: boolean;
|
|
956
|
+
readonly noFill?: boolean;
|
|
839
957
|
}
|
|
840
958
|
//#endregion
|
|
841
959
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/glow.d.ts
|
|
@@ -941,6 +1059,37 @@ interface EffectListOptions {
|
|
|
941
1059
|
readonly softEdge?: number;
|
|
942
1060
|
}
|
|
943
1061
|
//#endregion
|
|
1062
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/custom-dash.d.ts
|
|
1063
|
+
interface DashStop {
|
|
1064
|
+
readonly d: string;
|
|
1065
|
+
readonly sp: string;
|
|
1066
|
+
}
|
|
1067
|
+
//#endregion
|
|
1068
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/line-end.d.ts
|
|
1069
|
+
declare const LineEndType: {
|
|
1070
|
+
readonly NONE: "none";
|
|
1071
|
+
readonly TRIANGLE: "triangle";
|
|
1072
|
+
readonly STEALTH: "stealth";
|
|
1073
|
+
readonly DIAMOND: "diamond";
|
|
1074
|
+
readonly OVAL: "oval";
|
|
1075
|
+
readonly ARROW: "arrow";
|
|
1076
|
+
};
|
|
1077
|
+
declare const LineEndWidth: {
|
|
1078
|
+
readonly SMALL: "sm";
|
|
1079
|
+
readonly MEDIUM: "med";
|
|
1080
|
+
readonly LARGE: "lg";
|
|
1081
|
+
};
|
|
1082
|
+
declare const LineEndLength: {
|
|
1083
|
+
readonly SMALL: "sm";
|
|
1084
|
+
readonly MEDIUM: "med";
|
|
1085
|
+
readonly LARGE: "lg";
|
|
1086
|
+
};
|
|
1087
|
+
interface LineEndOptions {
|
|
1088
|
+
readonly type: keyof typeof LineEndType;
|
|
1089
|
+
readonly width?: keyof typeof LineEndWidth;
|
|
1090
|
+
readonly length?: keyof typeof LineEndLength;
|
|
1091
|
+
}
|
|
1092
|
+
//#endregion
|
|
944
1093
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/outline.d.ts
|
|
945
1094
|
declare const LineCap: {
|
|
946
1095
|
readonly ROUND: "rnd";
|
|
@@ -982,12 +1131,17 @@ interface OutlineAttributes {
|
|
|
982
1131
|
readonly compoundLine?: keyof typeof CompoundLine;
|
|
983
1132
|
readonly align?: keyof typeof PenAlignment;
|
|
984
1133
|
readonly dash?: keyof typeof PresetDash;
|
|
1134
|
+
readonly customDash?: readonly DashStop[];
|
|
985
1135
|
readonly join?: keyof typeof LineJoin;
|
|
986
1136
|
readonly miterLimit?: number;
|
|
1137
|
+
readonly headEnd?: LineEndOptions;
|
|
1138
|
+
readonly tailEnd?: LineEndOptions;
|
|
987
1139
|
}
|
|
988
1140
|
interface OutlineFillProperties {
|
|
989
|
-
readonly type?: "noFill" | "solidFill";
|
|
1141
|
+
readonly type?: "noFill" | "solidFill" | "gradFill" | "pattFill";
|
|
990
1142
|
readonly color?: SolidFillOptions;
|
|
1143
|
+
readonly gradientFill?: GradientFillOptions;
|
|
1144
|
+
readonly patternFill?: PatternFillOptions;
|
|
991
1145
|
}
|
|
992
1146
|
type OutlineOptions = OutlineAttributes & OutlineFillProperties;
|
|
993
1147
|
//#endregion
|
|
@@ -1001,28 +1155,245 @@ interface IChildExtent {
|
|
|
1001
1155
|
readonly cy: number;
|
|
1002
1156
|
}
|
|
1003
1157
|
//#endregion
|
|
1004
|
-
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/
|
|
1005
|
-
interface
|
|
1006
|
-
readonly
|
|
1007
|
-
readonly
|
|
1158
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/preset-geometry/adjustment-values/adjustment-values.d.ts
|
|
1159
|
+
interface GeometryGuide {
|
|
1160
|
+
readonly name: string;
|
|
1161
|
+
readonly formula: string;
|
|
1008
1162
|
}
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
readonly
|
|
1163
|
+
//#endregion
|
|
1164
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/custom-geometry/custom-geometry.d.ts
|
|
1165
|
+
declare const PathFillMode: {
|
|
1166
|
+
readonly NONE: "none";
|
|
1167
|
+
readonly NORM: "norm";
|
|
1168
|
+
readonly LIGHTEN: "lighten";
|
|
1169
|
+
readonly LIGHTEN_LESS: "lightenLess";
|
|
1170
|
+
readonly DARKEN: "darken";
|
|
1171
|
+
readonly DARKEN_LESS: "darkenLess";
|
|
1013
1172
|
};
|
|
1014
|
-
interface
|
|
1015
|
-
readonly
|
|
1016
|
-
readonly
|
|
1173
|
+
interface AdjPoint {
|
|
1174
|
+
readonly x: string;
|
|
1175
|
+
readonly y: string;
|
|
1176
|
+
}
|
|
1177
|
+
interface PathMoveTo {
|
|
1178
|
+
readonly command: "moveTo";
|
|
1179
|
+
readonly point: AdjPoint;
|
|
1180
|
+
}
|
|
1181
|
+
interface PathLineTo {
|
|
1182
|
+
readonly command: "lineTo";
|
|
1183
|
+
readonly point: AdjPoint;
|
|
1184
|
+
}
|
|
1185
|
+
interface PathArcTo {
|
|
1186
|
+
readonly command: "arcTo";
|
|
1187
|
+
readonly wR: string;
|
|
1188
|
+
readonly hR: string;
|
|
1189
|
+
readonly stAng: string;
|
|
1190
|
+
readonly swAng: string;
|
|
1191
|
+
}
|
|
1192
|
+
interface PathQuadBezTo {
|
|
1193
|
+
readonly command: "quadBezTo";
|
|
1194
|
+
readonly points: readonly [AdjPoint, AdjPoint];
|
|
1195
|
+
}
|
|
1196
|
+
interface PathCubicBezTo {
|
|
1197
|
+
readonly command: "cubicBezTo";
|
|
1198
|
+
readonly points: readonly [AdjPoint, AdjPoint, AdjPoint];
|
|
1199
|
+
}
|
|
1200
|
+
interface PathClose {
|
|
1201
|
+
readonly command: "close";
|
|
1202
|
+
}
|
|
1203
|
+
type PathCommand = PathMoveTo | PathLineTo | PathArcTo | PathQuadBezTo | PathCubicBezTo | PathClose;
|
|
1204
|
+
interface PathOptions {
|
|
1205
|
+
readonly w?: number;
|
|
1206
|
+
readonly h?: number;
|
|
1207
|
+
readonly fill?: (typeof PathFillMode)[keyof typeof PathFillMode];
|
|
1208
|
+
readonly stroke?: boolean;
|
|
1209
|
+
readonly extrusionOk?: boolean;
|
|
1210
|
+
readonly commands: readonly PathCommand[];
|
|
1211
|
+
}
|
|
1212
|
+
interface AdjustHandlePosition {
|
|
1213
|
+
readonly x: string;
|
|
1214
|
+
readonly y: string;
|
|
1215
|
+
}
|
|
1216
|
+
interface XYAdjustHandle {
|
|
1217
|
+
readonly type: "xy";
|
|
1218
|
+
readonly gdRefX?: string;
|
|
1219
|
+
readonly minX?: string;
|
|
1220
|
+
readonly maxX?: string;
|
|
1221
|
+
readonly gdRefY?: string;
|
|
1222
|
+
readonly minY?: string;
|
|
1223
|
+
readonly maxY?: string;
|
|
1224
|
+
readonly position: AdjustHandlePosition;
|
|
1225
|
+
}
|
|
1226
|
+
interface PolarAdjustHandle {
|
|
1227
|
+
readonly type: "polar";
|
|
1228
|
+
readonly gdRefR?: string;
|
|
1229
|
+
readonly minR?: string;
|
|
1230
|
+
readonly maxR?: string;
|
|
1231
|
+
readonly gdRefAng?: string;
|
|
1232
|
+
readonly minAng?: string;
|
|
1233
|
+
readonly maxAng?: string;
|
|
1234
|
+
readonly position: AdjustHandlePosition;
|
|
1235
|
+
}
|
|
1236
|
+
type AdjustHandle = XYAdjustHandle | PolarAdjustHandle;
|
|
1237
|
+
interface ConnectionSite {
|
|
1238
|
+
readonly ang: string;
|
|
1239
|
+
readonly position: AdjustHandlePosition;
|
|
1240
|
+
}
|
|
1241
|
+
interface GeomRect {
|
|
1242
|
+
readonly l: string;
|
|
1243
|
+
readonly t: string;
|
|
1244
|
+
readonly r: string;
|
|
1245
|
+
readonly b: string;
|
|
1246
|
+
}
|
|
1247
|
+
interface CustomGeometryOptions {
|
|
1248
|
+
readonly adjustmentValues?: readonly GeometryGuide[];
|
|
1249
|
+
readonly guides?: readonly GeometryGuide[];
|
|
1250
|
+
readonly adjustHandles?: readonly AdjustHandle[];
|
|
1251
|
+
readonly connectionSites?: readonly ConnectionSite[];
|
|
1252
|
+
readonly textRect?: GeomRect;
|
|
1253
|
+
readonly pathList: readonly PathOptions[];
|
|
1254
|
+
}
|
|
1255
|
+
//#endregion
|
|
1256
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/effects/effect-dag.d.ts
|
|
1257
|
+
declare const EffectContainerType: {
|
|
1258
|
+
readonly SIB: "sib";
|
|
1259
|
+
readonly TREE: "tree";
|
|
1260
|
+
};
|
|
1261
|
+
interface AlphaBiLevelEffectOptions$1 {
|
|
1262
|
+
readonly thresh: number;
|
|
1017
1263
|
}
|
|
1018
|
-
interface
|
|
1019
|
-
readonly
|
|
1264
|
+
interface AlphaInverseEffectOptions {
|
|
1265
|
+
readonly color?: SolidFillOptions;
|
|
1020
1266
|
}
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
readonly
|
|
1267
|
+
interface AlphaModulateFixedEffectOptions$1 {
|
|
1268
|
+
readonly amt?: number;
|
|
1269
|
+
}
|
|
1270
|
+
interface AlphaOutsetEffectOptions {
|
|
1271
|
+
readonly rad?: number;
|
|
1272
|
+
}
|
|
1273
|
+
interface AlphaReplaceEffectOptions$1 {
|
|
1274
|
+
readonly a: number;
|
|
1275
|
+
}
|
|
1276
|
+
interface BlendEffectOptions {
|
|
1277
|
+
readonly blend: (typeof BlendMode)[keyof typeof BlendMode];
|
|
1278
|
+
readonly container: EffectDagOptions;
|
|
1279
|
+
}
|
|
1280
|
+
interface ColorChangeEffectOptions$1 {
|
|
1281
|
+
readonly from: SolidFillOptions;
|
|
1282
|
+
readonly to: SolidFillOptions;
|
|
1283
|
+
readonly useA?: boolean;
|
|
1284
|
+
}
|
|
1285
|
+
interface DuotoneEffectOptions$1 {
|
|
1286
|
+
readonly color1: SolidFillOptions;
|
|
1287
|
+
readonly color2: SolidFillOptions;
|
|
1288
|
+
}
|
|
1289
|
+
interface FillEffectOptions {
|
|
1290
|
+
readonly solidFill?: SolidFillOptions;
|
|
1291
|
+
readonly gradientFill?: GradientFillOptions;
|
|
1292
|
+
readonly patternFill?: PatternFillOptions;
|
|
1293
|
+
readonly groupFill?: boolean;
|
|
1294
|
+
readonly noFill?: boolean;
|
|
1295
|
+
}
|
|
1296
|
+
interface HSLEffectOptions$1 {
|
|
1297
|
+
readonly hue?: number;
|
|
1298
|
+
readonly sat?: number;
|
|
1299
|
+
readonly lum?: number;
|
|
1300
|
+
}
|
|
1301
|
+
interface LuminanceEffectOptions$1 {
|
|
1302
|
+
readonly bright?: number;
|
|
1303
|
+
readonly contrast?: number;
|
|
1304
|
+
}
|
|
1305
|
+
interface TintEffectOptions$1 {
|
|
1306
|
+
readonly hue?: number;
|
|
1307
|
+
readonly amt?: number;
|
|
1308
|
+
}
|
|
1309
|
+
interface RelativeOffsetEffectOptions {
|
|
1310
|
+
readonly tx?: number;
|
|
1311
|
+
readonly ty?: number;
|
|
1312
|
+
}
|
|
1313
|
+
interface TransformEffectOptions {
|
|
1314
|
+
readonly sx?: number;
|
|
1315
|
+
readonly sy?: number;
|
|
1316
|
+
readonly kx?: number;
|
|
1317
|
+
readonly ky?: number;
|
|
1318
|
+
readonly tx?: number;
|
|
1319
|
+
readonly ty?: number;
|
|
1320
|
+
}
|
|
1321
|
+
interface EffectReferenceOptions {
|
|
1322
|
+
readonly ref: string;
|
|
1323
|
+
}
|
|
1324
|
+
interface EffectDagOptions {
|
|
1325
|
+
readonly type?: (typeof EffectContainerType)[keyof typeof EffectContainerType];
|
|
1326
|
+
readonly name?: string;
|
|
1327
|
+
readonly blur?: BlurEffectOptions;
|
|
1328
|
+
readonly fillOverlay?: FillOverlayEffectOptions;
|
|
1329
|
+
readonly glow?: GlowEffectOptions;
|
|
1330
|
+
readonly innerShadow?: InnerShadowEffectOptions;
|
|
1331
|
+
readonly outerShadow?: OuterShadowEffectOptions;
|
|
1332
|
+
readonly presetShadow?: PresetShadowEffectOptions;
|
|
1333
|
+
readonly reflection?: ReflectionEffectOptions | true;
|
|
1334
|
+
readonly softEdge?: number;
|
|
1335
|
+
readonly containers?: readonly EffectDagOptions[];
|
|
1336
|
+
readonly effectRefs?: readonly EffectReferenceOptions[];
|
|
1337
|
+
readonly alphaBiLevel?: AlphaBiLevelEffectOptions$1;
|
|
1338
|
+
readonly alphaCeiling?: boolean;
|
|
1339
|
+
readonly alphaFloor?: boolean;
|
|
1340
|
+
readonly alphaInverse?: AlphaInverseEffectOptions;
|
|
1341
|
+
readonly alphaModulate?: EffectDagOptions;
|
|
1342
|
+
readonly alphaModulateFixed?: AlphaModulateFixedEffectOptions$1;
|
|
1343
|
+
readonly alphaOutset?: AlphaOutsetEffectOptions;
|
|
1344
|
+
readonly alphaReplace?: AlphaReplaceEffectOptions$1;
|
|
1345
|
+
readonly biLevel?: {
|
|
1346
|
+
readonly thresh: number;
|
|
1347
|
+
};
|
|
1348
|
+
readonly blend?: BlendEffectOptions;
|
|
1349
|
+
readonly colorChange?: ColorChangeEffectOptions$1;
|
|
1350
|
+
readonly colorReplace?: SolidFillOptions;
|
|
1351
|
+
readonly duotone?: DuotoneEffectOptions$1;
|
|
1352
|
+
readonly fill?: FillEffectOptions;
|
|
1353
|
+
readonly grayscale?: boolean;
|
|
1354
|
+
readonly hsl?: HSLEffectOptions$1;
|
|
1355
|
+
readonly luminance?: LuminanceEffectOptions$1;
|
|
1356
|
+
readonly tint?: TintEffectOptions$1;
|
|
1357
|
+
readonly relativeOffset?: RelativeOffsetEffectOptions;
|
|
1358
|
+
readonly transform?: TransformEffectOptions;
|
|
1359
|
+
}
|
|
1360
|
+
//#endregion
|
|
1361
|
+
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/three-d/scene-3d.d.ts
|
|
1362
|
+
interface SphereCoords {
|
|
1363
|
+
readonly lat: number;
|
|
1364
|
+
readonly lon: number;
|
|
1365
|
+
readonly rev: number;
|
|
1366
|
+
}
|
|
1367
|
+
interface CameraOptions {
|
|
1368
|
+
readonly preset: string;
|
|
1369
|
+
readonly fov?: number;
|
|
1370
|
+
readonly zoom?: string;
|
|
1371
|
+
readonly rotation?: SphereCoords;
|
|
1372
|
+
}
|
|
1373
|
+
interface LightRigOptions {
|
|
1374
|
+
readonly rig: string;
|
|
1375
|
+
readonly direction: string;
|
|
1376
|
+
readonly rotation?: SphereCoords;
|
|
1377
|
+
}
|
|
1378
|
+
interface Point3D {
|
|
1379
|
+
readonly x: number;
|
|
1380
|
+
readonly y: number;
|
|
1381
|
+
readonly z: number;
|
|
1382
|
+
}
|
|
1383
|
+
interface Vector3D {
|
|
1384
|
+
readonly dx: number;
|
|
1385
|
+
readonly dy: number;
|
|
1386
|
+
readonly dz: number;
|
|
1387
|
+
}
|
|
1388
|
+
interface BackdropOptions {
|
|
1389
|
+
readonly anchor: Point3D;
|
|
1390
|
+
readonly normal: Vector3D;
|
|
1391
|
+
readonly up: Vector3D;
|
|
1392
|
+
}
|
|
1393
|
+
interface Scene3DOptions {
|
|
1394
|
+
readonly camera: CameraOptions;
|
|
1395
|
+
readonly lightRig: LightRigOptions;
|
|
1396
|
+
readonly backdrop?: BackdropOptions;
|
|
1026
1397
|
}
|
|
1027
1398
|
//#endregion
|
|
1028
1399
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/shape-properties/three-d/bevel.d.ts
|
|
@@ -1075,137 +1446,70 @@ interface Shape3DOptions {
|
|
|
1075
1446
|
readonly prstMaterial?: keyof typeof PresetMaterialType;
|
|
1076
1447
|
}
|
|
1077
1448
|
//#endregion
|
|
1078
|
-
//#region src/file/drawing/
|
|
1079
|
-
declare
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1449
|
+
//#region src/file/drawing/inline/graphic/graphic-data/wps/body-properties.d.ts
|
|
1450
|
+
declare enum VerticalAnchor {
|
|
1451
|
+
TOP = "t",
|
|
1452
|
+
CENTER = "ctr",
|
|
1453
|
+
BOTTOM = "b",
|
|
1454
|
+
JUSTIFY = "just",
|
|
1455
|
+
DISTRIBUTED = "dist"
|
|
1456
|
+
}
|
|
1457
|
+
declare const TextVertOverflowType: {
|
|
1458
|
+
readonly OVERFLOW: "overflow";
|
|
1459
|
+
readonly ELLIPSIS: "ellipsis";
|
|
1460
|
+
readonly CLIP: "clip";
|
|
1085
1461
|
};
|
|
1086
|
-
declare const
|
|
1087
|
-
readonly
|
|
1088
|
-
readonly
|
|
1089
|
-
readonly RIGHT: "right";
|
|
1090
|
-
readonly LARGEST: "largest";
|
|
1462
|
+
declare const TextHorzOverflowType: {
|
|
1463
|
+
readonly OVERFLOW: "overflow";
|
|
1464
|
+
readonly CLIP: "clip";
|
|
1091
1465
|
};
|
|
1092
|
-
|
|
1093
|
-
readonly
|
|
1094
|
-
readonly
|
|
1095
|
-
readonly
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
//#endregion
|
|
1101
|
-
//#region src/file/shared/alignment.d.ts
|
|
1102
|
-
declare const HorizontalPositionAlign: {
|
|
1103
|
-
readonly CENTER: "center";
|
|
1104
|
-
readonly INSIDE: "inside";
|
|
1105
|
-
readonly LEFT: "left";
|
|
1106
|
-
readonly OUTSIDE: "outside";
|
|
1107
|
-
readonly RIGHT: "right";
|
|
1108
|
-
};
|
|
1109
|
-
declare const VerticalPositionAlign: {
|
|
1110
|
-
readonly BOTTOM: "bottom";
|
|
1111
|
-
readonly CENTER: "center";
|
|
1112
|
-
readonly INSIDE: "inside";
|
|
1113
|
-
readonly OUTSIDE: "outside";
|
|
1114
|
-
readonly TOP: "top";
|
|
1466
|
+
declare const TextVerticalType: {
|
|
1467
|
+
readonly HORIZONTAL: "horz";
|
|
1468
|
+
readonly VERTICAL: "vert";
|
|
1469
|
+
readonly VERTICAL_270: "vert270";
|
|
1470
|
+
readonly WORD_ART_VERTICAL: "wordArtVert";
|
|
1471
|
+
readonly EAST_ASIAN_VERTICAL: "eaVert";
|
|
1472
|
+
readonly MONGOLIAN_VERTICAL: "mongolianVert";
|
|
1473
|
+
readonly WORD_ART_VERTICAL_RTL: "wordArtVertRtl";
|
|
1115
1474
|
};
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
readonly CHARACTER: "character";
|
|
1120
|
-
readonly COLUMN: "column";
|
|
1121
|
-
readonly INSIDE_MARGIN: "insideMargin";
|
|
1122
|
-
readonly LEFT_MARGIN: "leftMargin";
|
|
1123
|
-
readonly MARGIN: "margin";
|
|
1124
|
-
readonly OUTSIDE_MARGIN: "outsideMargin";
|
|
1125
|
-
readonly PAGE: "page";
|
|
1126
|
-
readonly RIGHT_MARGIN: "rightMargin";
|
|
1127
|
-
};
|
|
1128
|
-
declare const VerticalPositionRelativeFrom: {
|
|
1129
|
-
readonly BOTTOM_MARGIN: "bottomMargin";
|
|
1130
|
-
readonly INSIDE_MARGIN: "insideMargin";
|
|
1131
|
-
readonly LINE: "line";
|
|
1132
|
-
readonly MARGIN: "margin";
|
|
1133
|
-
readonly OUTSIDE_MARGIN: "outsideMargin";
|
|
1134
|
-
readonly PAGE: "page";
|
|
1135
|
-
readonly PARAGRAPH: "paragraph";
|
|
1136
|
-
readonly TOP_MARGIN: "topMargin";
|
|
1475
|
+
declare const TextBodyWrappingType: {
|
|
1476
|
+
readonly NONE: "none";
|
|
1477
|
+
readonly SQUARE: "square";
|
|
1137
1478
|
};
|
|
1138
|
-
interface
|
|
1139
|
-
readonly
|
|
1140
|
-
readonly
|
|
1141
|
-
readonly offset?: number;
|
|
1142
|
-
}
|
|
1143
|
-
interface IVerticalPositionOptions {
|
|
1144
|
-
readonly relative?: (typeof VerticalPositionRelativeFrom)[keyof typeof VerticalPositionRelativeFrom];
|
|
1145
|
-
readonly align?: (typeof VerticalPositionAlign)[keyof typeof VerticalPositionAlign];
|
|
1146
|
-
readonly offset?: number;
|
|
1147
|
-
}
|
|
1148
|
-
interface IMargins {
|
|
1149
|
-
readonly left?: number;
|
|
1150
|
-
readonly bottom?: number;
|
|
1151
|
-
readonly top?: number;
|
|
1152
|
-
readonly right?: number;
|
|
1479
|
+
interface NormalAutofitOptions {
|
|
1480
|
+
readonly fontScale?: number;
|
|
1481
|
+
readonly lnSpcReduction?: number;
|
|
1153
1482
|
}
|
|
1154
|
-
interface
|
|
1155
|
-
readonly
|
|
1156
|
-
readonly
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
readonly layoutInCell?: boolean;
|
|
1161
|
-
readonly margins?: IMargins;
|
|
1162
|
-
readonly wrap?: ITextWrapping;
|
|
1163
|
-
readonly zIndex?: number;
|
|
1483
|
+
interface PresetTextShapeOptions {
|
|
1484
|
+
readonly preset: string;
|
|
1485
|
+
readonly adjustments?: readonly {
|
|
1486
|
+
readonly name: string;
|
|
1487
|
+
readonly formula: string;
|
|
1488
|
+
}[];
|
|
1164
1489
|
}
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
declare const createSimplePos: () => XmlComponent;
|
|
1168
|
-
//#endregion
|
|
1169
|
-
//#region src/file/drawing/floating/horizontal-position.d.ts
|
|
1170
|
-
declare const createHorizontalPosition: ({
|
|
1171
|
-
relative,
|
|
1172
|
-
align,
|
|
1173
|
-
offset
|
|
1174
|
-
}: IHorizontalPositionOptions) => XmlComponent;
|
|
1175
|
-
//#endregion
|
|
1176
|
-
//#region src/file/drawing/floating/vertical-position.d.ts
|
|
1177
|
-
declare const createVerticalPosition: ({
|
|
1178
|
-
relative,
|
|
1179
|
-
align,
|
|
1180
|
-
offset
|
|
1181
|
-
}: IVerticalPositionOptions) => XmlComponent;
|
|
1182
|
-
//#endregion
|
|
1183
|
-
//#region src/file/drawing/text-wrap/wrap-square.d.ts
|
|
1184
|
-
declare const createWrapSquare: (textWrapping: ITextWrapping, margins?: IMargins) => XmlComponent;
|
|
1185
|
-
//#endregion
|
|
1186
|
-
//#region src/file/drawing/text-wrap/wrap-tight.d.ts
|
|
1187
|
-
declare const createWrapTight: (textWrapping: ITextWrapping, margins: IMargins | undefined, extent: {
|
|
1188
|
-
x: number;
|
|
1189
|
-
y: number;
|
|
1190
|
-
}) => XmlComponent;
|
|
1191
|
-
//#endregion
|
|
1192
|
-
//#region src/file/drawing/text-wrap/wrap-through.d.ts
|
|
1193
|
-
declare const createWrapThrough: (textWrapping: ITextWrapping, margins: IMargins | undefined, extent: {
|
|
1194
|
-
x: number;
|
|
1195
|
-
y: number;
|
|
1196
|
-
}) => XmlComponent;
|
|
1197
|
-
//#endregion
|
|
1198
|
-
//#region src/file/drawing/text-wrap/wrap-top-and-bottom.d.ts
|
|
1199
|
-
declare const createWrapTopAndBottom: (margins?: IMargins) => XmlComponent;
|
|
1200
|
-
//#endregion
|
|
1201
|
-
//#region src/file/drawing/inline/graphic/graphic-data/wps/body-properties.d.ts
|
|
1202
|
-
declare enum VerticalAnchor {
|
|
1203
|
-
CENTER = "ctr",
|
|
1204
|
-
TOP = "t",
|
|
1205
|
-
BOTTOM = "b"
|
|
1490
|
+
interface FlatTextOptions {
|
|
1491
|
+
readonly z?: number;
|
|
1206
1492
|
}
|
|
1207
1493
|
interface IBodyPropertiesOptions {
|
|
1208
|
-
readonly
|
|
1494
|
+
readonly rotation?: number;
|
|
1495
|
+
readonly spcFirstLastPara?: boolean;
|
|
1496
|
+
readonly vertOverflow?: (typeof TextVertOverflowType)[keyof typeof TextVertOverflowType];
|
|
1497
|
+
readonly horzOverflow?: (typeof TextHorzOverflowType)[keyof typeof TextHorzOverflowType];
|
|
1498
|
+
readonly vert?: (typeof TextVerticalType)[keyof typeof TextVerticalType];
|
|
1499
|
+
readonly wrap?: (typeof TextBodyWrappingType)[keyof typeof TextBodyWrappingType];
|
|
1500
|
+
readonly lIns?: number;
|
|
1501
|
+
readonly tIns?: number;
|
|
1502
|
+
readonly rIns?: number;
|
|
1503
|
+
readonly bIns?: number;
|
|
1504
|
+
readonly numCol?: number;
|
|
1505
|
+
readonly spcCol?: number;
|
|
1506
|
+
readonly rtlCol?: boolean;
|
|
1507
|
+
readonly fromWordArt?: boolean;
|
|
1508
|
+
readonly anchor?: (typeof VerticalAnchor)[keyof typeof VerticalAnchor];
|
|
1509
|
+
readonly anchorCtr?: boolean;
|
|
1510
|
+
readonly forceAA?: boolean;
|
|
1511
|
+
readonly upright?: boolean;
|
|
1512
|
+
readonly compatLnSpc?: boolean;
|
|
1209
1513
|
readonly verticalAnchor?: VerticalAnchor;
|
|
1210
1514
|
readonly margins?: {
|
|
1211
1515
|
readonly top?: number;
|
|
@@ -1213,7 +1517,13 @@ interface IBodyPropertiesOptions {
|
|
|
1213
1517
|
readonly left?: number;
|
|
1214
1518
|
readonly right?: number;
|
|
1215
1519
|
};
|
|
1520
|
+
readonly prstTxWarp?: PresetTextShapeOptions;
|
|
1216
1521
|
readonly noAutoFit?: boolean;
|
|
1522
|
+
readonly normAutofit?: NormalAutofitOptions;
|
|
1523
|
+
readonly spAutoFit?: boolean;
|
|
1524
|
+
readonly scene3d?: Scene3DOptions;
|
|
1525
|
+
readonly sp3d?: Shape3DOptions;
|
|
1526
|
+
readonly flatTx?: FlatTextOptions;
|
|
1217
1527
|
}
|
|
1218
1528
|
declare const createBodyProperties: (options?: IBodyPropertiesOptions) => XmlComponent;
|
|
1219
1529
|
//#endregion
|
|
@@ -1230,8 +1540,12 @@ interface WpsShapeCoreOptions {
|
|
|
1230
1540
|
readonly outline?: OutlineOptions;
|
|
1231
1541
|
readonly solidFill?: SolidFillOptions;
|
|
1232
1542
|
readonly gradientFill?: GradientFillOptions;
|
|
1543
|
+
readonly patternFill?: PatternFillOptions;
|
|
1233
1544
|
readonly noFill?: boolean;
|
|
1545
|
+
readonly customGeometry?: CustomGeometryOptions;
|
|
1546
|
+
readonly effectDag?: EffectDagOptions;
|
|
1234
1547
|
readonly effects?: EffectListOptions;
|
|
1548
|
+
readonly scene3d?: Scene3DOptions;
|
|
1235
1549
|
readonly shape3d?: Shape3DOptions;
|
|
1236
1550
|
}
|
|
1237
1551
|
//#endregion
|
|
@@ -1293,7 +1607,17 @@ interface WpgMediaData {
|
|
|
1293
1607
|
readonly solidFill?: SolidFillOptions;
|
|
1294
1608
|
readonly effects?: EffectListOptions;
|
|
1295
1609
|
}
|
|
1296
|
-
|
|
1610
|
+
interface ChartMediaData {
|
|
1611
|
+
readonly type: "chart";
|
|
1612
|
+
readonly transformation: IMediaDataTransformation;
|
|
1613
|
+
readonly chartKey: string;
|
|
1614
|
+
}
|
|
1615
|
+
interface SmartArtMediaData {
|
|
1616
|
+
readonly type: "smartart";
|
|
1617
|
+
readonly transformation: IMediaDataTransformation;
|
|
1618
|
+
readonly smartArtKey: string;
|
|
1619
|
+
}
|
|
1620
|
+
type IExtendedMediaData = IMediaData | WpsMediaData | WpgMediaData | ChartMediaData | SmartArtMediaData;
|
|
1297
1621
|
type IMediaData = (RegularMediaData | SvgMediaData) & CoreMediaData;
|
|
1298
1622
|
declare const WORKAROUND2 = "";
|
|
1299
1623
|
//#endregion
|
|
@@ -1319,6 +1643,129 @@ declare class Media {
|
|
|
1319
1643
|
get Array(): readonly IMediaData[];
|
|
1320
1644
|
}
|
|
1321
1645
|
//#endregion
|
|
1646
|
+
//#region src/file/shared/alignment.d.ts
|
|
1647
|
+
declare const HorizontalPositionAlign: {
|
|
1648
|
+
readonly CENTER: "center";
|
|
1649
|
+
readonly INSIDE: "inside";
|
|
1650
|
+
readonly LEFT: "left";
|
|
1651
|
+
readonly OUTSIDE: "outside";
|
|
1652
|
+
readonly RIGHT: "right";
|
|
1653
|
+
};
|
|
1654
|
+
declare const VerticalPositionAlign: {
|
|
1655
|
+
readonly BOTTOM: "bottom";
|
|
1656
|
+
readonly CENTER: "center";
|
|
1657
|
+
readonly INSIDE: "inside";
|
|
1658
|
+
readonly OUTSIDE: "outside";
|
|
1659
|
+
readonly TOP: "top";
|
|
1660
|
+
};
|
|
1661
|
+
//#endregion
|
|
1662
|
+
//#region src/file/drawing/text-wrap/text-wrapping.d.ts
|
|
1663
|
+
declare const TextWrappingType: {
|
|
1664
|
+
readonly NONE: 0;
|
|
1665
|
+
readonly SQUARE: 1;
|
|
1666
|
+
readonly TIGHT: 2;
|
|
1667
|
+
readonly TOP_AND_BOTTOM: 3;
|
|
1668
|
+
readonly THROUGH: 4;
|
|
1669
|
+
};
|
|
1670
|
+
declare const TextWrappingSide: {
|
|
1671
|
+
readonly BOTH_SIDES: "bothSides";
|
|
1672
|
+
readonly LEFT: "left";
|
|
1673
|
+
readonly RIGHT: "right";
|
|
1674
|
+
readonly LARGEST: "largest";
|
|
1675
|
+
};
|
|
1676
|
+
interface ITextWrapping {
|
|
1677
|
+
readonly type: (typeof TextWrappingType)[keyof typeof TextWrappingType];
|
|
1678
|
+
readonly side?: (typeof TextWrappingSide)[keyof typeof TextWrappingSide];
|
|
1679
|
+
readonly margins?: IDistance;
|
|
1680
|
+
}
|
|
1681
|
+
//#endregion
|
|
1682
|
+
//#region src/file/drawing/text-wrap/wrap-none.d.ts
|
|
1683
|
+
declare const createWrapNone: () => XmlComponent;
|
|
1684
|
+
//#endregion
|
|
1685
|
+
//#region src/file/drawing/text-wrap/wrap-square.d.ts
|
|
1686
|
+
declare const createWrapSquare: (textWrapping: ITextWrapping, margins?: IMargins) => XmlComponent;
|
|
1687
|
+
//#endregion
|
|
1688
|
+
//#region src/file/drawing/text-wrap/wrap-tight.d.ts
|
|
1689
|
+
declare const createWrapTight: (textWrapping: ITextWrapping, margins: IMargins | undefined, extent: {
|
|
1690
|
+
x: number;
|
|
1691
|
+
y: number;
|
|
1692
|
+
}) => XmlComponent;
|
|
1693
|
+
//#endregion
|
|
1694
|
+
//#region src/file/drawing/text-wrap/wrap-through.d.ts
|
|
1695
|
+
declare const createWrapThrough: (textWrapping: ITextWrapping, margins: IMargins | undefined, extent: {
|
|
1696
|
+
x: number;
|
|
1697
|
+
y: number;
|
|
1698
|
+
}) => XmlComponent;
|
|
1699
|
+
//#endregion
|
|
1700
|
+
//#region src/file/drawing/text-wrap/wrap-top-and-bottom.d.ts
|
|
1701
|
+
declare const createWrapTopAndBottom: (margins?: IMargins) => XmlComponent;
|
|
1702
|
+
//#endregion
|
|
1703
|
+
//#region src/file/drawing/floating/floating-position.d.ts
|
|
1704
|
+
declare const HorizontalPositionRelativeFrom: {
|
|
1705
|
+
readonly CHARACTER: "character";
|
|
1706
|
+
readonly COLUMN: "column";
|
|
1707
|
+
readonly INSIDE_MARGIN: "insideMargin";
|
|
1708
|
+
readonly LEFT_MARGIN: "leftMargin";
|
|
1709
|
+
readonly MARGIN: "margin";
|
|
1710
|
+
readonly OUTSIDE_MARGIN: "outsideMargin";
|
|
1711
|
+
readonly PAGE: "page";
|
|
1712
|
+
readonly RIGHT_MARGIN: "rightMargin";
|
|
1713
|
+
};
|
|
1714
|
+
declare const VerticalPositionRelativeFrom: {
|
|
1715
|
+
readonly BOTTOM_MARGIN: "bottomMargin";
|
|
1716
|
+
readonly INSIDE_MARGIN: "insideMargin";
|
|
1717
|
+
readonly LINE: "line";
|
|
1718
|
+
readonly MARGIN: "margin";
|
|
1719
|
+
readonly OUTSIDE_MARGIN: "outsideMargin";
|
|
1720
|
+
readonly PAGE: "page";
|
|
1721
|
+
readonly PARAGRAPH: "paragraph";
|
|
1722
|
+
readonly TOP_MARGIN: "topMargin";
|
|
1723
|
+
};
|
|
1724
|
+
interface IHorizontalPositionOptions {
|
|
1725
|
+
readonly relative?: (typeof HorizontalPositionRelativeFrom)[keyof typeof HorizontalPositionRelativeFrom];
|
|
1726
|
+
readonly align?: (typeof HorizontalPositionAlign)[keyof typeof HorizontalPositionAlign];
|
|
1727
|
+
readonly offset?: number;
|
|
1728
|
+
}
|
|
1729
|
+
interface IVerticalPositionOptions {
|
|
1730
|
+
readonly relative?: (typeof VerticalPositionRelativeFrom)[keyof typeof VerticalPositionRelativeFrom];
|
|
1731
|
+
readonly align?: (typeof VerticalPositionAlign)[keyof typeof VerticalPositionAlign];
|
|
1732
|
+
readonly offset?: number;
|
|
1733
|
+
}
|
|
1734
|
+
interface IMargins {
|
|
1735
|
+
readonly left?: number;
|
|
1736
|
+
readonly bottom?: number;
|
|
1737
|
+
readonly top?: number;
|
|
1738
|
+
readonly right?: number;
|
|
1739
|
+
}
|
|
1740
|
+
interface IFloating {
|
|
1741
|
+
readonly horizontalPosition: IHorizontalPositionOptions;
|
|
1742
|
+
readonly verticalPosition: IVerticalPositionOptions;
|
|
1743
|
+
readonly allowOverlap?: boolean;
|
|
1744
|
+
readonly lockAnchor?: boolean;
|
|
1745
|
+
readonly behindDocument?: boolean;
|
|
1746
|
+
readonly layoutInCell?: boolean;
|
|
1747
|
+
readonly margins?: IMargins;
|
|
1748
|
+
readonly wrap?: ITextWrapping;
|
|
1749
|
+
readonly zIndex?: number;
|
|
1750
|
+
}
|
|
1751
|
+
//#endregion
|
|
1752
|
+
//#region src/file/drawing/floating/simple-pos.d.ts
|
|
1753
|
+
declare const createSimplePos: () => XmlComponent;
|
|
1754
|
+
//#endregion
|
|
1755
|
+
//#region src/file/drawing/floating/horizontal-position.d.ts
|
|
1756
|
+
declare const createHorizontalPosition: ({
|
|
1757
|
+
relative,
|
|
1758
|
+
align,
|
|
1759
|
+
offset
|
|
1760
|
+
}: IHorizontalPositionOptions) => XmlComponent;
|
|
1761
|
+
//#endregion
|
|
1762
|
+
//#region src/file/drawing/floating/vertical-position.d.ts
|
|
1763
|
+
declare const createVerticalPosition: ({
|
|
1764
|
+
relative,
|
|
1765
|
+
align,
|
|
1766
|
+
offset
|
|
1767
|
+
}: IVerticalPositionOptions) => XmlComponent;
|
|
1768
|
+
//#endregion
|
|
1322
1769
|
//#region src/file/drawing/inline/graphic/graphic-data/pic/blip/blip-effects.d.ts
|
|
1323
1770
|
interface LuminanceEffectOptions {
|
|
1324
1771
|
readonly bright?: number;
|
|
@@ -1454,6 +1901,52 @@ declare class ImageRun extends Run {
|
|
|
1454
1901
|
prepForXml(context: IContext): IXmlableObject | undefined;
|
|
1455
1902
|
}
|
|
1456
1903
|
//#endregion
|
|
1904
|
+
//#region src/file/paragraph/run/chart-run.d.ts
|
|
1905
|
+
interface IChartOptions {
|
|
1906
|
+
readonly type: "column" | "bar" | "line" | "pie" | "area" | "scatter";
|
|
1907
|
+
readonly data: {
|
|
1908
|
+
readonly categories: readonly string[];
|
|
1909
|
+
readonly series: readonly {
|
|
1910
|
+
name: string;
|
|
1911
|
+
values: readonly number[];
|
|
1912
|
+
}[];
|
|
1913
|
+
};
|
|
1914
|
+
readonly transformation: IMediaTransformation;
|
|
1915
|
+
readonly floating?: IFloating;
|
|
1916
|
+
readonly altText?: DocPropertiesOptions;
|
|
1917
|
+
readonly title?: string;
|
|
1918
|
+
readonly showLegend?: boolean;
|
|
1919
|
+
readonly style?: number;
|
|
1920
|
+
}
|
|
1921
|
+
declare class ChartRun extends Run {
|
|
1922
|
+
private readonly chartOptions;
|
|
1923
|
+
private readonly chartKey;
|
|
1924
|
+
constructor(options: IChartOptions);
|
|
1925
|
+
prepForXml(context: IContext): IXmlableObject | undefined;
|
|
1926
|
+
private hashChartData;
|
|
1927
|
+
}
|
|
1928
|
+
//#endregion
|
|
1929
|
+
//#region src/file/paragraph/run/smartart-run.d.ts
|
|
1930
|
+
interface ISmartArtNode {
|
|
1931
|
+
readonly text: string;
|
|
1932
|
+
readonly children?: readonly ISmartArtNode[];
|
|
1933
|
+
}
|
|
1934
|
+
interface ISmartArtOptions {
|
|
1935
|
+
readonly data: {
|
|
1936
|
+
readonly nodes: readonly ISmartArtNode[];
|
|
1937
|
+
};
|
|
1938
|
+
readonly transformation: IMediaTransformation;
|
|
1939
|
+
readonly floating?: IFloating;
|
|
1940
|
+
readonly altText?: DocPropertiesOptions;
|
|
1941
|
+
}
|
|
1942
|
+
declare class SmartArtRun extends Run {
|
|
1943
|
+
private readonly smartArtOptions;
|
|
1944
|
+
private readonly smartArtKey;
|
|
1945
|
+
constructor(options: ISmartArtOptions);
|
|
1946
|
+
prepForXml(context: IContext): IXmlableObject | undefined;
|
|
1947
|
+
private hashSmartArtData;
|
|
1948
|
+
}
|
|
1949
|
+
//#endregion
|
|
1457
1950
|
//#region src/file/paragraph/run/wps-shape-run.d.ts
|
|
1458
1951
|
interface CoreShapeOptions {
|
|
1459
1952
|
readonly transformation: IMediaTransformation;
|
|
@@ -1499,7 +1992,7 @@ declare class SimpleMailMergeField extends SimpleField {
|
|
|
1499
1992
|
}
|
|
1500
1993
|
//#endregion
|
|
1501
1994
|
//#region src/file/relationships/relationship/relationship.d.ts
|
|
1502
|
-
type RelationshipType = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" | "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/font";
|
|
1995
|
+
type RelationshipType = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" | "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/bibliography" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/font" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart" | "http://schemas.openxmlformats.org/officeDocument/2006/relationships/diagramData" | "http://schemas.microsoft.com/office/2007/relationships/diagramLayout" | "http://schemas.microsoft.com/office/2007/relationships/diagramStyle" | "http://schemas.microsoft.com/office/2007/relationships/diagramColors";
|
|
1503
1996
|
declare const TargetModeType: {
|
|
1504
1997
|
readonly EXTERNAL: "External";
|
|
1505
1998
|
};
|
|
@@ -1627,6 +2120,75 @@ declare class PositionalTab extends XmlComponent {
|
|
|
1627
2120
|
constructor(options: PositionalTabOptions);
|
|
1628
2121
|
}
|
|
1629
2122
|
//#endregion
|
|
2123
|
+
//#region src/file/paragraph/run/ruby.d.ts
|
|
2124
|
+
declare const RubyAlign: {
|
|
2125
|
+
readonly CENTER: "center";
|
|
2126
|
+
readonly DISTRIBUTE_LETTER: "distributeLetter";
|
|
2127
|
+
readonly DISTRIBUTE_SPACE: "distributeSpace";
|
|
2128
|
+
readonly LEFT: "left";
|
|
2129
|
+
readonly RIGHT: "right";
|
|
2130
|
+
readonly RIGHT_VERTICAL: "rightVertical";
|
|
2131
|
+
};
|
|
2132
|
+
interface RubyOptions {
|
|
2133
|
+
readonly text: string;
|
|
2134
|
+
readonly base: string;
|
|
2135
|
+
readonly alignment?: keyof typeof RubyAlign;
|
|
2136
|
+
readonly fontSize?: number;
|
|
2137
|
+
readonly raise?: number;
|
|
2138
|
+
readonly baseFontSize?: number;
|
|
2139
|
+
readonly languageId?: string;
|
|
2140
|
+
readonly dirty?: boolean;
|
|
2141
|
+
}
|
|
2142
|
+
declare const createRuby: (options: RubyOptions) => XmlComponent;
|
|
2143
|
+
//#endregion
|
|
2144
|
+
//#region src/file/paragraph/run/form-field.d.ts
|
|
2145
|
+
declare const FormFieldTextType: {
|
|
2146
|
+
readonly REGULAR: "regular";
|
|
2147
|
+
readonly NUMBER: "number";
|
|
2148
|
+
readonly DATE: "date";
|
|
2149
|
+
readonly CURRENT_TIME: "currentTime";
|
|
2150
|
+
readonly CURRENT_DATE: "currentDate";
|
|
2151
|
+
readonly CALCULATED: "calculated";
|
|
2152
|
+
};
|
|
2153
|
+
interface CheckBoxOptions {
|
|
2154
|
+
readonly size?: number;
|
|
2155
|
+
readonly sizeAuto?: boolean;
|
|
2156
|
+
readonly default?: boolean;
|
|
2157
|
+
readonly checked?: boolean;
|
|
2158
|
+
}
|
|
2159
|
+
interface DropDownListOptions {
|
|
2160
|
+
readonly entries: readonly string[];
|
|
2161
|
+
readonly result?: number;
|
|
2162
|
+
readonly default?: number;
|
|
2163
|
+
}
|
|
2164
|
+
interface TextInputOptions {
|
|
2165
|
+
readonly type?: (typeof FormFieldTextType)[keyof typeof FormFieldTextType];
|
|
2166
|
+
readonly default?: string;
|
|
2167
|
+
readonly maxLength?: number;
|
|
2168
|
+
readonly format?: string;
|
|
2169
|
+
}
|
|
2170
|
+
interface FormFieldTextOptions {
|
|
2171
|
+
readonly type: "text" | "autoText";
|
|
2172
|
+
readonly value: string;
|
|
2173
|
+
}
|
|
2174
|
+
interface FormFieldCommonOptions {
|
|
2175
|
+
readonly name?: string;
|
|
2176
|
+
readonly label?: number;
|
|
2177
|
+
readonly tabIndex?: number;
|
|
2178
|
+
readonly enabled?: boolean;
|
|
2179
|
+
readonly calcOnExit?: boolean;
|
|
2180
|
+
readonly entryMacro?: string;
|
|
2181
|
+
readonly exitMacro?: string;
|
|
2182
|
+
readonly helpText?: FormFieldTextOptions;
|
|
2183
|
+
readonly statusText?: FormFieldTextOptions;
|
|
2184
|
+
}
|
|
2185
|
+
interface FormFieldOptions extends FormFieldCommonOptions {
|
|
2186
|
+
readonly checkBox?: CheckBoxOptions;
|
|
2187
|
+
readonly dropDownList?: DropDownListOptions;
|
|
2188
|
+
readonly textInput?: TextInputOptions;
|
|
2189
|
+
}
|
|
2190
|
+
declare const createFormFieldData: (options: FormFieldOptions) => XmlComponent;
|
|
2191
|
+
//#endregion
|
|
1630
2192
|
//#region src/file/footnotes/footnote/run/reference-run.d.ts
|
|
1631
2193
|
declare class FootNoteReferenceRunAttributes extends XmlAttributeComponent<{
|
|
1632
2194
|
readonly id: number;
|
|
@@ -1766,6 +2328,50 @@ type TableVerticalAlign = (typeof VerticalAlignTable)[keyof typeof VerticalAlign
|
|
|
1766
2328
|
type SectionVerticalAlign = (typeof VerticalAlignSection)[keyof typeof VerticalAlignSection];
|
|
1767
2329
|
declare const createVerticalAlign: (value: (typeof VerticalAlign)[keyof typeof VerticalAlign]) => XmlComponent;
|
|
1768
2330
|
//#endregion
|
|
2331
|
+
//#region src/file/table/table-row/table-row-height.d.ts
|
|
2332
|
+
declare const HeightRule: {
|
|
2333
|
+
readonly AUTO: "auto";
|
|
2334
|
+
readonly ATLEAST: "atLeast";
|
|
2335
|
+
readonly EXACT: "exact";
|
|
2336
|
+
};
|
|
2337
|
+
declare const createTableRowHeight: (value: number | PositiveUniversalMeasure, rule: (typeof HeightRule)[keyof typeof HeightRule]) => XmlComponent;
|
|
2338
|
+
//#endregion
|
|
2339
|
+
//#region src/file/table/table-row/table-row-properties.d.ts
|
|
2340
|
+
interface CnfStyleOptions {
|
|
2341
|
+
readonly val: string;
|
|
2342
|
+
readonly changed?: boolean;
|
|
2343
|
+
}
|
|
2344
|
+
interface ITableRowPropertiesOptionsBase {
|
|
2345
|
+
readonly cnfStyle?: CnfStyleOptions;
|
|
2346
|
+
readonly cantSplit?: boolean;
|
|
2347
|
+
readonly tableHeader?: boolean;
|
|
2348
|
+
readonly height?: {
|
|
2349
|
+
readonly value: number | PositiveUniversalMeasure;
|
|
2350
|
+
readonly rule: (typeof HeightRule)[keyof typeof HeightRule];
|
|
2351
|
+
};
|
|
2352
|
+
readonly cellSpacing?: ITableCellSpacingProperties;
|
|
2353
|
+
readonly divId?: number;
|
|
2354
|
+
readonly gridBefore?: number;
|
|
2355
|
+
readonly gridAfter?: number;
|
|
2356
|
+
readonly widthBefore?: ITableWidthProperties;
|
|
2357
|
+
readonly widthAfter?: ITableWidthProperties;
|
|
2358
|
+
readonly rowAlignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
2359
|
+
readonly hidden?: boolean;
|
|
2360
|
+
}
|
|
2361
|
+
type ITableRowPropertiesOptions = ITableRowPropertiesOptionsBase & {
|
|
2362
|
+
readonly insertion?: IChangedAttributesProperties;
|
|
2363
|
+
readonly deletion?: IChangedAttributesProperties;
|
|
2364
|
+
readonly revision?: ITableRowPropertiesChangeOptions;
|
|
2365
|
+
readonly includeIfEmpty?: boolean;
|
|
2366
|
+
};
|
|
2367
|
+
type ITableRowPropertiesChangeOptions = ITableRowPropertiesOptionsBase & IChangedAttributesProperties;
|
|
2368
|
+
declare class TableRowProperties extends IgnoreIfEmptyXmlComponent {
|
|
2369
|
+
constructor(options: ITableRowPropertiesOptions);
|
|
2370
|
+
}
|
|
2371
|
+
declare class TableRowPropertiesChange extends XmlComponent {
|
|
2372
|
+
constructor(options: ITableRowPropertiesChangeOptions);
|
|
2373
|
+
}
|
|
2374
|
+
//#endregion
|
|
1769
2375
|
//#region src/file/table/table-cell/table-cell-components.d.ts
|
|
1770
2376
|
interface ITableCellBorders {
|
|
1771
2377
|
readonly top?: IBorderOptions;
|
|
@@ -1799,6 +2405,7 @@ declare class TDirection extends XmlComponent {
|
|
|
1799
2405
|
//#endregion
|
|
1800
2406
|
//#region src/file/table/table-cell/table-cell-properties.d.ts
|
|
1801
2407
|
interface ITableCellPropertiesOptionsBase {
|
|
2408
|
+
readonly cnfStyle?: CnfStyleOptions;
|
|
1802
2409
|
readonly shading?: IShadingAttributesProperties;
|
|
1803
2410
|
readonly margins?: ITableCellMarginOptions;
|
|
1804
2411
|
readonly verticalAlign?: TableVerticalAlign;
|
|
@@ -1808,6 +2415,11 @@ interface ITableCellPropertiesOptionsBase {
|
|
|
1808
2415
|
readonly columnSpan?: number;
|
|
1809
2416
|
readonly rowSpan?: number;
|
|
1810
2417
|
readonly borders?: ITableCellBorders;
|
|
2418
|
+
readonly horizontalMerge?: "continue" | "restart";
|
|
2419
|
+
readonly noWrap?: boolean;
|
|
2420
|
+
readonly fitText?: boolean;
|
|
2421
|
+
readonly hideMark?: boolean;
|
|
2422
|
+
readonly headers?: string[];
|
|
1811
2423
|
readonly insertion?: IChangedAttributesProperties;
|
|
1812
2424
|
readonly deletion?: IChangedAttributesProperties;
|
|
1813
2425
|
readonly cellMerge?: ICellMergeAttributes;
|
|
@@ -1828,38 +2440,6 @@ declare class TableCell extends XmlComponent {
|
|
|
1828
2440
|
prepForXml(context: IContext): IXmlableObject | undefined;
|
|
1829
2441
|
}
|
|
1830
2442
|
//#endregion
|
|
1831
|
-
//#region src/file/table/table-row/table-row-height.d.ts
|
|
1832
|
-
declare const HeightRule: {
|
|
1833
|
-
readonly AUTO: "auto";
|
|
1834
|
-
readonly ATLEAST: "atLeast";
|
|
1835
|
-
readonly EXACT: "exact";
|
|
1836
|
-
};
|
|
1837
|
-
declare const createTableRowHeight: (value: number | PositiveUniversalMeasure, rule: (typeof HeightRule)[keyof typeof HeightRule]) => XmlComponent;
|
|
1838
|
-
//#endregion
|
|
1839
|
-
//#region src/file/table/table-row/table-row-properties.d.ts
|
|
1840
|
-
interface ITableRowPropertiesOptionsBase {
|
|
1841
|
-
readonly cantSplit?: boolean;
|
|
1842
|
-
readonly tableHeader?: boolean;
|
|
1843
|
-
readonly height?: {
|
|
1844
|
-
readonly value: number | PositiveUniversalMeasure;
|
|
1845
|
-
readonly rule: (typeof HeightRule)[keyof typeof HeightRule];
|
|
1846
|
-
};
|
|
1847
|
-
readonly cellSpacing?: ITableCellSpacingProperties;
|
|
1848
|
-
}
|
|
1849
|
-
type ITableRowPropertiesOptions = ITableRowPropertiesOptionsBase & {
|
|
1850
|
-
readonly insertion?: IChangedAttributesProperties;
|
|
1851
|
-
readonly deletion?: IChangedAttributesProperties;
|
|
1852
|
-
readonly revision?: ITableRowPropertiesChangeOptions;
|
|
1853
|
-
readonly includeIfEmpty?: boolean;
|
|
1854
|
-
};
|
|
1855
|
-
type ITableRowPropertiesChangeOptions = ITableRowPropertiesOptionsBase & IChangedAttributesProperties;
|
|
1856
|
-
declare class TableRowProperties extends IgnoreIfEmptyXmlComponent {
|
|
1857
|
-
constructor(options: ITableRowPropertiesOptions);
|
|
1858
|
-
}
|
|
1859
|
-
declare class TableRowPropertiesChange extends XmlComponent {
|
|
1860
|
-
constructor(options: ITableRowPropertiesChangeOptions);
|
|
1861
|
-
}
|
|
1862
|
-
//#endregion
|
|
1863
2443
|
//#region src/file/table/table-row/table-row.d.ts
|
|
1864
2444
|
type ITableRowOptions = {
|
|
1865
2445
|
readonly children: readonly TableCell[];
|
|
@@ -1891,6 +2471,10 @@ interface ITableOptions {
|
|
|
1891
2471
|
readonly visuallyRightToLeft?: boolean;
|
|
1892
2472
|
readonly tableLook?: ITableLookOptions;
|
|
1893
2473
|
readonly cellSpacing?: ITableCellSpacingProperties;
|
|
2474
|
+
readonly styleRowBandSize?: number;
|
|
2475
|
+
readonly styleColBandSize?: number;
|
|
2476
|
+
readonly caption?: string;
|
|
2477
|
+
readonly description?: string;
|
|
1894
2478
|
readonly revision?: ITablePropertiesChangeOptions;
|
|
1895
2479
|
}
|
|
1896
2480
|
declare class Table extends FileChild {
|
|
@@ -1909,6 +2493,10 @@ declare class Table extends FileChild {
|
|
|
1909
2493
|
visuallyRightToLeft,
|
|
1910
2494
|
tableLook,
|
|
1911
2495
|
cellSpacing,
|
|
2496
|
+
styleRowBandSize,
|
|
2497
|
+
styleColBandSize,
|
|
2498
|
+
caption,
|
|
2499
|
+
description,
|
|
1912
2500
|
revision
|
|
1913
2501
|
}: ITableOptions);
|
|
1914
2502
|
}
|
|
@@ -1936,6 +2524,87 @@ declare class TableOfContents extends FileChild {
|
|
|
1936
2524
|
private buildCachedContentParagraphChild;
|
|
1937
2525
|
}
|
|
1938
2526
|
//#endregion
|
|
2527
|
+
//#region src/file/table-of-contents/sdt-properties.d.ts
|
|
2528
|
+
declare const SdtLock: {
|
|
2529
|
+
readonly SDT_LOCKED: "sdtLocked";
|
|
2530
|
+
readonly CONTENT_LOCKED: "contentLocked";
|
|
2531
|
+
readonly UNLOCKED: "unlocked";
|
|
2532
|
+
readonly SDT_CONTENT_LOCKED: "sdtContentLocked";
|
|
2533
|
+
};
|
|
2534
|
+
interface SdtListItem {
|
|
2535
|
+
readonly displayText?: string;
|
|
2536
|
+
readonly value?: string;
|
|
2537
|
+
}
|
|
2538
|
+
interface SdtComboBoxOptions {
|
|
2539
|
+
readonly items?: readonly SdtListItem[];
|
|
2540
|
+
readonly lastValue?: string;
|
|
2541
|
+
}
|
|
2542
|
+
interface SdtDropDownListOptions {
|
|
2543
|
+
readonly items?: readonly SdtListItem[];
|
|
2544
|
+
readonly lastValue?: string;
|
|
2545
|
+
}
|
|
2546
|
+
declare const SdtDateMappingType: {
|
|
2547
|
+
readonly TEXT: "text";
|
|
2548
|
+
readonly DATE: "date";
|
|
2549
|
+
readonly DATE_TIME: "dateTime";
|
|
2550
|
+
};
|
|
2551
|
+
interface SdtDateOptions {
|
|
2552
|
+
readonly dateFormat?: string;
|
|
2553
|
+
readonly languageId?: string;
|
|
2554
|
+
readonly storeMappedDataAs?: (typeof SdtDateMappingType)[keyof typeof SdtDateMappingType];
|
|
2555
|
+
readonly calendar?: string;
|
|
2556
|
+
readonly fullDate?: string;
|
|
2557
|
+
}
|
|
2558
|
+
interface SdtTextOptions {
|
|
2559
|
+
readonly multiLine?: boolean;
|
|
2560
|
+
}
|
|
2561
|
+
interface SdtDataBindingOptions {
|
|
2562
|
+
readonly prefixMappings?: string;
|
|
2563
|
+
readonly xpath: string;
|
|
2564
|
+
readonly storeItemID: string;
|
|
2565
|
+
}
|
|
2566
|
+
interface SdtPropertiesOptions {
|
|
2567
|
+
readonly alias?: string;
|
|
2568
|
+
readonly tag?: string;
|
|
2569
|
+
readonly id?: number;
|
|
2570
|
+
readonly lock?: (typeof SdtLock)[keyof typeof SdtLock];
|
|
2571
|
+
readonly temporary?: boolean;
|
|
2572
|
+
readonly showingPlaceholder?: boolean;
|
|
2573
|
+
readonly placeholder?: XmlComponent[];
|
|
2574
|
+
readonly dataBinding?: SdtDataBindingOptions;
|
|
2575
|
+
readonly label?: number;
|
|
2576
|
+
readonly tabIndex?: number;
|
|
2577
|
+
readonly runProperties?: XmlComponent;
|
|
2578
|
+
readonly equation?: boolean;
|
|
2579
|
+
readonly comboBox?: SdtComboBoxOptions;
|
|
2580
|
+
readonly date?: SdtDateOptions;
|
|
2581
|
+
readonly docPartObj?: {
|
|
2582
|
+
readonly gallery?: string;
|
|
2583
|
+
readonly category?: string;
|
|
2584
|
+
readonly unique?: boolean;
|
|
2585
|
+
};
|
|
2586
|
+
readonly docPartList?: {
|
|
2587
|
+
readonly gallery?: string;
|
|
2588
|
+
readonly category?: string;
|
|
2589
|
+
readonly unique?: boolean;
|
|
2590
|
+
};
|
|
2591
|
+
readonly dropDownList?: SdtDropDownListOptions;
|
|
2592
|
+
readonly picture?: boolean;
|
|
2593
|
+
readonly richText?: boolean;
|
|
2594
|
+
readonly text?: SdtTextOptions;
|
|
2595
|
+
readonly citation?: boolean;
|
|
2596
|
+
readonly group?: boolean;
|
|
2597
|
+
readonly bibliography?: boolean;
|
|
2598
|
+
}
|
|
2599
|
+
declare class StructuredDocumentTagProperties extends XmlComponent {
|
|
2600
|
+
constructor(aliasOrOptions?: string | SdtPropertiesOptions);
|
|
2601
|
+
}
|
|
2602
|
+
//#endregion
|
|
2603
|
+
//#region src/file/table-of-contents/sdt-content.d.ts
|
|
2604
|
+
declare class StructuredDocumentTagContent extends XmlComponent {
|
|
2605
|
+
constructor();
|
|
2606
|
+
}
|
|
2607
|
+
//#endregion
|
|
1939
2608
|
//#region src/file/footer/footer.d.ts
|
|
1940
2609
|
declare class Footer$1 extends InitializableXmlComponent {
|
|
1941
2610
|
private readonly refId;
|
|
@@ -2191,7 +2860,7 @@ declare const PageNumberSeparator: {
|
|
|
2191
2860
|
readonly PERIOD: "period";
|
|
2192
2861
|
readonly COLON: "colon";
|
|
2193
2862
|
readonly EM_DASH: "emDash";
|
|
2194
|
-
readonly EN_DASH: "
|
|
2863
|
+
readonly EN_DASH: "enDash";
|
|
2195
2864
|
};
|
|
2196
2865
|
interface IPageNumberTypeAttributes {
|
|
2197
2866
|
readonly start?: number;
|
|
@@ -2266,6 +2935,7 @@ interface ISectionPropertiesOptionsBase {
|
|
|
2266
2935
|
readonly column?: IColumnsAttributes;
|
|
2267
2936
|
readonly type?: (typeof SectionType)[keyof typeof SectionType];
|
|
2268
2937
|
readonly noEndnote?: boolean;
|
|
2938
|
+
readonly formProtection?: boolean;
|
|
2269
2939
|
readonly bidi?: boolean;
|
|
2270
2940
|
readonly rtlGutter?: boolean;
|
|
2271
2941
|
readonly paperSrc?: {
|
|
@@ -2274,6 +2944,7 @@ interface ISectionPropertiesOptionsBase {
|
|
|
2274
2944
|
};
|
|
2275
2945
|
readonly footnotePr?: FootnotePropertiesOptions;
|
|
2276
2946
|
readonly endnotePr?: EndnotePropertiesOptions;
|
|
2947
|
+
readonly printerSettingsId?: string;
|
|
2277
2948
|
}
|
|
2278
2949
|
type ISectionPropertiesChangeOptions = IChangedAttributesProperties & ISectionPropertiesOptionsBase;
|
|
2279
2950
|
type ISectionPropertiesOptions = {
|
|
@@ -2328,11 +2999,13 @@ declare class SectionProperties extends XmlComponent {
|
|
|
2328
2999
|
type,
|
|
2329
3000
|
revision,
|
|
2330
3001
|
noEndnote,
|
|
3002
|
+
formProtection,
|
|
2331
3003
|
bidi,
|
|
2332
3004
|
rtlGutter,
|
|
2333
3005
|
paperSrc,
|
|
2334
3006
|
footnotePr,
|
|
2335
|
-
endnotePr
|
|
3007
|
+
endnotePr,
|
|
3008
|
+
printerSettingsId
|
|
2336
3009
|
}?: ISectionPropertiesOptions);
|
|
2337
3010
|
private addHeaderFooterGroup;
|
|
2338
3011
|
}
|
|
@@ -2495,11 +3168,57 @@ declare class AppProperties extends XmlComponent {
|
|
|
2495
3168
|
constructor();
|
|
2496
3169
|
}
|
|
2497
3170
|
//#endregion
|
|
3171
|
+
//#region src/file/bibliography/bibliography.d.ts
|
|
3172
|
+
interface SourceTypeOptions {
|
|
3173
|
+
readonly type?: string;
|
|
3174
|
+
readonly title?: string;
|
|
3175
|
+
readonly author?: string;
|
|
3176
|
+
readonly year?: string;
|
|
3177
|
+
readonly month?: string;
|
|
3178
|
+
readonly day?: string;
|
|
3179
|
+
readonly bookTitle?: string;
|
|
3180
|
+
readonly journal?: string;
|
|
3181
|
+
readonly volume?: string;
|
|
3182
|
+
readonly issue?: string;
|
|
3183
|
+
readonly pages?: string;
|
|
3184
|
+
readonly publisher?: string;
|
|
3185
|
+
readonly city?: string;
|
|
3186
|
+
readonly url?: string;
|
|
3187
|
+
readonly edition?: string;
|
|
3188
|
+
readonly institution?: string;
|
|
3189
|
+
}
|
|
3190
|
+
interface IBibliographyOptions {
|
|
3191
|
+
readonly sources: readonly SourceTypeOptions[];
|
|
3192
|
+
readonly styleName?: string;
|
|
3193
|
+
}
|
|
3194
|
+
declare class Bibliography extends XmlComponent {
|
|
3195
|
+
private readonly relationships;
|
|
3196
|
+
constructor(options: IBibliographyOptions);
|
|
3197
|
+
get Relationships(): Relationships;
|
|
3198
|
+
}
|
|
3199
|
+
//#endregion
|
|
3200
|
+
//#region src/file/chart/chart-collection.d.ts
|
|
3201
|
+
interface IChartData {
|
|
3202
|
+
readonly key: string;
|
|
3203
|
+
readonly chartSpace: XmlComponent;
|
|
3204
|
+
}
|
|
3205
|
+
declare class ChartCollection {
|
|
3206
|
+
private readonly map;
|
|
3207
|
+
constructor();
|
|
3208
|
+
addChart(key: string, chartData: IChartData): void;
|
|
3209
|
+
get Array(): readonly IChartData[];
|
|
3210
|
+
}
|
|
3211
|
+
//#endregion
|
|
2498
3212
|
//#region src/file/content-types/content-types.d.ts
|
|
2499
3213
|
declare class ContentTypes extends XmlComponent {
|
|
2500
3214
|
constructor();
|
|
2501
3215
|
addFooter(index: number): void;
|
|
2502
3216
|
addHeader(index: number): void;
|
|
3217
|
+
addChart(index: number): void;
|
|
3218
|
+
addDiagramData(index: number): void;
|
|
3219
|
+
addDiagramLayout(index: number): void;
|
|
3220
|
+
addDiagramStyle(index: number): void;
|
|
3221
|
+
addDiagramColors(index: number): void;
|
|
2503
3222
|
}
|
|
2504
3223
|
//#endregion
|
|
2505
3224
|
//#region src/file/fonts/font.d.ts
|
|
@@ -2670,6 +3389,23 @@ declare class ThematicBreak extends XmlComponent {
|
|
|
2670
3389
|
constructor();
|
|
2671
3390
|
}
|
|
2672
3391
|
//#endregion
|
|
3392
|
+
//#region src/file/paragraph/formatting/cnf-style.d.ts
|
|
3393
|
+
interface ICnfStyleOptions {
|
|
3394
|
+
readonly firstRow?: boolean;
|
|
3395
|
+
readonly lastRow?: boolean;
|
|
3396
|
+
readonly firstColumn?: boolean;
|
|
3397
|
+
readonly lastColumn?: boolean;
|
|
3398
|
+
readonly oddVBand?: boolean;
|
|
3399
|
+
readonly evenVBand?: boolean;
|
|
3400
|
+
readonly oddHBand?: boolean;
|
|
3401
|
+
readonly evenHBand?: boolean;
|
|
3402
|
+
readonly firstRowFirstColumn?: boolean;
|
|
3403
|
+
readonly firstRowLastColumn?: boolean;
|
|
3404
|
+
readonly lastRowFirstColumn?: boolean;
|
|
3405
|
+
readonly lastRowLastColumn?: boolean;
|
|
3406
|
+
}
|
|
3407
|
+
declare const createCnfStyle: (options: ICnfStyleOptions) => XmlComponent;
|
|
3408
|
+
//#endregion
|
|
2673
3409
|
//#region src/file/paragraph/formatting/indent.d.ts
|
|
2674
3410
|
interface IIndentAttributesProperties {
|
|
2675
3411
|
readonly start?: number | UniversalMeasure;
|
|
@@ -2677,7 +3413,9 @@ interface IIndentAttributesProperties {
|
|
|
2677
3413
|
readonly end?: number | UniversalMeasure;
|
|
2678
3414
|
readonly endChars?: number;
|
|
2679
3415
|
readonly left?: number | UniversalMeasure;
|
|
3416
|
+
readonly leftChars?: number;
|
|
2680
3417
|
readonly right?: number | UniversalMeasure;
|
|
3418
|
+
readonly rightChars?: number;
|
|
2681
3419
|
readonly hanging?: number | PositiveUniversalMeasure;
|
|
2682
3420
|
readonly hangingChars?: number;
|
|
2683
3421
|
readonly firstLine?: number | PositiveUniversalMeasure;
|
|
@@ -2689,7 +3427,9 @@ declare const createIndent: ({
|
|
|
2689
3427
|
end,
|
|
2690
3428
|
endChars,
|
|
2691
3429
|
left,
|
|
3430
|
+
leftChars,
|
|
2692
3431
|
right,
|
|
3432
|
+
rightChars,
|
|
2693
3433
|
hanging,
|
|
2694
3434
|
hangingChars,
|
|
2695
3435
|
firstLine,
|
|
@@ -2870,6 +3610,8 @@ interface LevelParagraphStylePropertiesOptions {
|
|
|
2870
3610
|
readonly textboxTightWrap?: (typeof TextboxTightWrapType)[keyof typeof TextboxTightWrapType];
|
|
2871
3611
|
readonly textDirection?: "lr" | "rl" | "tb" | "tbV" | "rlV" | "lrV";
|
|
2872
3612
|
readonly outlineLevel?: number;
|
|
3613
|
+
readonly divId?: number;
|
|
3614
|
+
readonly cnfStyle?: ICnfStyleOptions;
|
|
2873
3615
|
}
|
|
2874
3616
|
type IParagraphStylePropertiesOptions = {
|
|
2875
3617
|
readonly border?: IBordersOptions;
|
|
@@ -3074,6 +3816,31 @@ declare class DocumentDefaults extends XmlComponent {
|
|
|
3074
3816
|
constructor(options: IDocumentDefaultsOptions);
|
|
3075
3817
|
}
|
|
3076
3818
|
//#endregion
|
|
3819
|
+
//#region src/file/styles/style/table-style-override.d.ts
|
|
3820
|
+
declare const TableStyleOverrideType: {
|
|
3821
|
+
readonly WHOLE_TABLE: "wholeTable";
|
|
3822
|
+
readonly FIRST_ROW: "firstRow";
|
|
3823
|
+
readonly LAST_ROW: "lastRow";
|
|
3824
|
+
readonly FIRST_COL: "firstCol";
|
|
3825
|
+
readonly LAST_COL: "lastCol";
|
|
3826
|
+
readonly BAND1_VERT: "band1Vert";
|
|
3827
|
+
readonly BAND2_VERT: "band2Vert";
|
|
3828
|
+
readonly BAND1_HORZ: "band1Horz";
|
|
3829
|
+
readonly BAND2_HORZ: "band2Horz";
|
|
3830
|
+
readonly NE_CELL: "neCell";
|
|
3831
|
+
readonly NW_CELL: "nwCell";
|
|
3832
|
+
readonly SE_CELL: "seCell";
|
|
3833
|
+
readonly SW_CELL: "swCell";
|
|
3834
|
+
};
|
|
3835
|
+
interface TableStyleOverrideOptions {
|
|
3836
|
+
readonly type: (typeof TableStyleOverrideType)[keyof typeof TableStyleOverrideType];
|
|
3837
|
+
readonly paragraphProperties?: XmlComponent;
|
|
3838
|
+
readonly runProperties?: XmlComponent;
|
|
3839
|
+
readonly tableProperties?: XmlComponent;
|
|
3840
|
+
readonly rowProperties?: XmlComponent;
|
|
3841
|
+
readonly cellProperties?: XmlComponent;
|
|
3842
|
+
}
|
|
3843
|
+
//#endregion
|
|
3077
3844
|
//#region src/file/styles/style/style.d.ts
|
|
3078
3845
|
interface IStyleAttributes {
|
|
3079
3846
|
readonly type?: string;
|
|
@@ -3090,6 +3857,7 @@ interface IStyleOptions {
|
|
|
3090
3857
|
readonly semiHidden?: boolean;
|
|
3091
3858
|
readonly unhideWhenUsed?: boolean;
|
|
3092
3859
|
readonly quickFormat?: boolean;
|
|
3860
|
+
readonly tableStyleOverrides?: readonly TableStyleOverrideOptions[];
|
|
3093
3861
|
}
|
|
3094
3862
|
declare class Style extends XmlComponent {
|
|
3095
3863
|
constructor(attributes: IStyleAttributes, options: IStyleOptions);
|
|
@@ -3168,6 +3936,7 @@ interface IPropertiesOptions {
|
|
|
3168
3936
|
readonly styles?: IStylesOptions;
|
|
3169
3937
|
readonly numbering?: INumberingOptions;
|
|
3170
3938
|
readonly comments?: ICommentsOptions;
|
|
3939
|
+
readonly bibliography?: IBibliographyOptions;
|
|
3171
3940
|
readonly footnotes?: Readonly<Record<string, {
|
|
3172
3941
|
readonly children: readonly Paragraph[];
|
|
3173
3942
|
}>>;
|
|
@@ -3223,6 +3992,28 @@ declare class Footer {
|
|
|
3223
3992
|
constructor(options?: IHeaderOptions);
|
|
3224
3993
|
}
|
|
3225
3994
|
//#endregion
|
|
3995
|
+
//#region src/file/smartart/data-model/connection.d.ts
|
|
3996
|
+
declare class Connection extends XmlComponent {
|
|
3997
|
+
constructor(modelId: number, srcId: number, destId: number, type?: string, srcOrd?: number, destOrd?: number);
|
|
3998
|
+
}
|
|
3999
|
+
//#endregion
|
|
4000
|
+
//#region src/file/smartart/data-model/data-model.d.ts
|
|
4001
|
+
declare class DataModel extends XmlComponent {
|
|
4002
|
+
constructor(points: readonly XmlComponent[], connections: readonly Connection[]);
|
|
4003
|
+
}
|
|
4004
|
+
//#endregion
|
|
4005
|
+
//#region src/file/smartart/smartart-collection.d.ts
|
|
4006
|
+
interface ISmartArtData {
|
|
4007
|
+
readonly key: string;
|
|
4008
|
+
readonly dataModel: DataModel;
|
|
4009
|
+
}
|
|
4010
|
+
declare class SmartArtCollection {
|
|
4011
|
+
private readonly map;
|
|
4012
|
+
constructor();
|
|
4013
|
+
addSmartArt(key: string, data: ISmartArtData): void;
|
|
4014
|
+
get Array(): readonly ISmartArtData[];
|
|
4015
|
+
}
|
|
4016
|
+
//#endregion
|
|
3226
4017
|
//#region src/file/file.d.ts
|
|
3227
4018
|
interface ISectionOptions {
|
|
3228
4019
|
readonly headers?: {
|
|
@@ -3246,6 +4037,8 @@ declare class File {
|
|
|
3246
4037
|
private readonly coreProperties;
|
|
3247
4038
|
private readonly numbering;
|
|
3248
4039
|
private readonly media;
|
|
4040
|
+
private readonly charts;
|
|
4041
|
+
private readonly smartArts;
|
|
3249
4042
|
private readonly fileRelationships;
|
|
3250
4043
|
private readonly footnotesWrapper;
|
|
3251
4044
|
private readonly endnotesWrapper;
|
|
@@ -3255,6 +4048,7 @@ declare class File {
|
|
|
3255
4048
|
private readonly appProperties;
|
|
3256
4049
|
private readonly styles;
|
|
3257
4050
|
private readonly comments;
|
|
4051
|
+
private readonly bibliography;
|
|
3258
4052
|
private readonly fontWrapper;
|
|
3259
4053
|
constructor(options: IPropertiesOptions);
|
|
3260
4054
|
private addSection;
|
|
@@ -3268,6 +4062,8 @@ declare class File {
|
|
|
3268
4062
|
get CoreProperties(): CoreProperties;
|
|
3269
4063
|
get Numbering(): Numbering;
|
|
3270
4064
|
get Media(): Media;
|
|
4065
|
+
get Charts(): ChartCollection;
|
|
4066
|
+
get SmartArts(): SmartArtCollection;
|
|
3271
4067
|
get FileRelationships(): Relationships;
|
|
3272
4068
|
get Headers(): readonly HeaderWrapper[];
|
|
3273
4069
|
get Footers(): readonly FooterWrapper[];
|
|
@@ -3278,6 +4074,7 @@ declare class File {
|
|
|
3278
4074
|
get Endnotes(): EndnotesWrapper;
|
|
3279
4075
|
get Settings(): Settings;
|
|
3280
4076
|
get Comments(): Comments;
|
|
4077
|
+
get Bibliography(): Bibliography | undefined;
|
|
3281
4078
|
get FontTable(): FontWrapper;
|
|
3282
4079
|
}
|
|
3283
4080
|
//#endregion
|
|
@@ -3458,6 +4255,8 @@ declare class BuilderElement<T = {}> extends XmlComponent {
|
|
|
3458
4255
|
readonly children?: readonly XmlComponent[];
|
|
3459
4256
|
});
|
|
3460
4257
|
}
|
|
4258
|
+
declare const chartAttr: (attrs: Record<string, string | number | boolean>) => BaseXmlComponent;
|
|
4259
|
+
declare function wrapEl(elementName: string, child: BaseXmlComponent): XmlComponent;
|
|
3461
4260
|
//#endregion
|
|
3462
4261
|
//#region src/file/paragraph/formatting/alignment.d.ts
|
|
3463
4262
|
declare const AlignmentType: {
|
|
@@ -3524,6 +4323,22 @@ declare class CheckBox extends XmlComponent {
|
|
|
3524
4323
|
constructor(options?: ICheckboxSymbolOptions);
|
|
3525
4324
|
}
|
|
3526
4325
|
//#endregion
|
|
4326
|
+
//#region src/file/sdt/sdt.d.ts
|
|
4327
|
+
interface ISdtRunOptions {
|
|
4328
|
+
readonly properties: SdtPropertiesOptions;
|
|
4329
|
+
readonly children?: readonly XmlComponent[];
|
|
4330
|
+
}
|
|
4331
|
+
declare class StructuredDocumentTagRun extends XmlComponent {
|
|
4332
|
+
constructor(options: ISdtRunOptions);
|
|
4333
|
+
}
|
|
4334
|
+
interface ISdtBlockOptions {
|
|
4335
|
+
readonly properties: SdtPropertiesOptions;
|
|
4336
|
+
readonly children?: readonly XmlComponent[];
|
|
4337
|
+
}
|
|
4338
|
+
declare class StructuredDocumentTagBlock extends FileChild {
|
|
4339
|
+
constructor(options: ISdtBlockOptions);
|
|
4340
|
+
}
|
|
4341
|
+
//#endregion
|
|
3527
4342
|
//#region src/file/paragraph/links/hyperlink.d.ts
|
|
3528
4343
|
declare const HyperlinkType: {
|
|
3529
4344
|
readonly INTERNAL: "INTERNAL";
|
|
@@ -3568,6 +4383,9 @@ declare class BookmarkEnd extends XmlComponent {
|
|
|
3568
4383
|
constructor(linkId: number);
|
|
3569
4384
|
}
|
|
3570
4385
|
//#endregion
|
|
4386
|
+
//#region src/file/paragraph/links/div-id.d.ts
|
|
4387
|
+
declare const createDivId: (id: number) => XmlComponent;
|
|
4388
|
+
//#endregion
|
|
3571
4389
|
//#region src/file/paragraph/links/numbered-item-ref.d.ts
|
|
3572
4390
|
declare enum NumberedItemReferenceFormat {
|
|
3573
4391
|
NONE = "none",
|
|
@@ -3595,6 +4413,46 @@ declare class PageReference extends Run {
|
|
|
3595
4413
|
constructor(bookmarkId: string, options?: IPageReferenceOptions);
|
|
3596
4414
|
}
|
|
3597
4415
|
//#endregion
|
|
4416
|
+
//#region src/file/paragraph/math/border-box/math-border-box-properties.d.ts
|
|
4417
|
+
interface MathBorderBoxPropertiesOptions {
|
|
4418
|
+
readonly hideTop?: boolean;
|
|
4419
|
+
readonly hideBot?: boolean;
|
|
4420
|
+
readonly hideLeft?: boolean;
|
|
4421
|
+
readonly hideRight?: boolean;
|
|
4422
|
+
readonly strikeH?: boolean;
|
|
4423
|
+
readonly strikeV?: boolean;
|
|
4424
|
+
readonly strikeBLTR?: boolean;
|
|
4425
|
+
readonly strikeTLBR?: boolean;
|
|
4426
|
+
}
|
|
4427
|
+
declare const createMathBorderBoxProperties: (options: MathBorderBoxPropertiesOptions) => XmlComponent;
|
|
4428
|
+
//#endregion
|
|
4429
|
+
//#region src/file/paragraph/math/border-box/math-border-box.d.ts
|
|
4430
|
+
interface IMathBorderBoxOptions {
|
|
4431
|
+
readonly properties?: MathBorderBoxPropertiesOptions;
|
|
4432
|
+
readonly children: readonly MathComponent[];
|
|
4433
|
+
}
|
|
4434
|
+
declare class MathBorderBox extends XmlComponent {
|
|
4435
|
+
constructor(options: IMathBorderBoxOptions);
|
|
4436
|
+
}
|
|
4437
|
+
//#endregion
|
|
4438
|
+
//#region src/file/paragraph/math/box/math-box-properties.d.ts
|
|
4439
|
+
interface MathBoxPropertiesOptions {
|
|
4440
|
+
readonly opEmu?: boolean;
|
|
4441
|
+
readonly noBreak?: boolean;
|
|
4442
|
+
readonly diff?: boolean;
|
|
4443
|
+
readonly aln?: boolean;
|
|
4444
|
+
}
|
|
4445
|
+
declare const createMathBoxProperties: (options: MathBoxPropertiesOptions) => XmlComponent;
|
|
4446
|
+
//#endregion
|
|
4447
|
+
//#region src/file/paragraph/math/box/math-box.d.ts
|
|
4448
|
+
interface IMathBoxOptions {
|
|
4449
|
+
readonly properties?: MathBoxPropertiesOptions;
|
|
4450
|
+
readonly children: readonly MathComponent[];
|
|
4451
|
+
}
|
|
4452
|
+
declare class MathBox extends XmlComponent {
|
|
4453
|
+
constructor(options: IMathBoxOptions);
|
|
4454
|
+
}
|
|
4455
|
+
//#endregion
|
|
3598
4456
|
//#region src/file/paragraph/math/brackets/math-round-brackets.d.ts
|
|
3599
4457
|
declare class MathRoundBrackets extends XmlComponent {
|
|
3600
4458
|
constructor(options: {
|
|
@@ -3624,10 +4482,42 @@ declare class MathAngledBrackets extends XmlComponent {
|
|
|
3624
4482
|
constructor(options: MathAngledBracketsOptions);
|
|
3625
4483
|
}
|
|
3626
4484
|
//#endregion
|
|
4485
|
+
//#region src/file/paragraph/math/eq-arr/math-eq-arr-properties.d.ts
|
|
4486
|
+
interface MathEqArrPropertiesOptions {
|
|
4487
|
+
readonly baseJc?: "top" | "bot" | "center";
|
|
4488
|
+
readonly maxDist?: boolean;
|
|
4489
|
+
readonly objDist?: boolean;
|
|
4490
|
+
readonly rSpRule?: "single" | "1.5" | "double" | "exactly" | "multiple";
|
|
4491
|
+
readonly rSp?: number;
|
|
4492
|
+
}
|
|
4493
|
+
declare const createMathEqArrProperties: (options: MathEqArrPropertiesOptions) => XmlComponent;
|
|
4494
|
+
//#endregion
|
|
4495
|
+
//#region src/file/paragraph/math/eq-arr/math-eq-arr.d.ts
|
|
4496
|
+
interface IMathEqArrOptions {
|
|
4497
|
+
readonly properties?: MathEqArrPropertiesOptions;
|
|
4498
|
+
readonly rows: readonly (readonly MathComponent[])[];
|
|
4499
|
+
}
|
|
4500
|
+
declare class MathEqArr extends XmlComponent {
|
|
4501
|
+
constructor(options: IMathEqArrOptions);
|
|
4502
|
+
}
|
|
4503
|
+
//#endregion
|
|
4504
|
+
//#region src/file/paragraph/math/fraction/math-fraction-properties.d.ts
|
|
4505
|
+
declare const FractionType: {
|
|
4506
|
+
readonly BAR: "bar";
|
|
4507
|
+
readonly SKEWED: "skw";
|
|
4508
|
+
readonly LINEAR: "lin";
|
|
4509
|
+
readonly NO_BAR: "noBar";
|
|
4510
|
+
};
|
|
4511
|
+
interface MathFractionPropertiesOptions {
|
|
4512
|
+
readonly fractionType?: keyof typeof FractionType;
|
|
4513
|
+
}
|
|
4514
|
+
declare const createMathFractionProperties: (options: MathFractionPropertiesOptions) => XmlComponent;
|
|
4515
|
+
//#endregion
|
|
3627
4516
|
//#region src/file/paragraph/math/fraction/math-fraction.d.ts
|
|
3628
4517
|
interface IMathFractionOptions {
|
|
3629
4518
|
readonly numerator: readonly MathComponent[];
|
|
3630
4519
|
readonly denominator: readonly MathComponent[];
|
|
4520
|
+
readonly fractionType?: MathFractionPropertiesOptions["fractionType"];
|
|
3631
4521
|
}
|
|
3632
4522
|
declare class MathFraction extends XmlComponent {
|
|
3633
4523
|
constructor(options: IMathFractionOptions);
|
|
@@ -3643,8 +4533,22 @@ declare class MathNumerator extends XmlComponent {
|
|
|
3643
4533
|
constructor(children: readonly MathComponent[]);
|
|
3644
4534
|
}
|
|
3645
4535
|
//#endregion
|
|
4536
|
+
//#region src/file/paragraph/math/math-control-properties.d.ts
|
|
4537
|
+
interface MathControlPropertiesOptions {
|
|
4538
|
+
readonly insertionReference?: string;
|
|
4539
|
+
readonly deletionReference?: string;
|
|
4540
|
+
}
|
|
4541
|
+
declare const createMathControlProperties: (options?: MathControlPropertiesOptions) => XmlComponent;
|
|
4542
|
+
//#endregion
|
|
4543
|
+
//#region src/file/paragraph/math/function/math-function-properties.d.ts
|
|
4544
|
+
interface MathFunctionPropertiesOptions {
|
|
4545
|
+
readonly controlProperties?: MathControlPropertiesOptions;
|
|
4546
|
+
}
|
|
4547
|
+
declare const createMathFunctionProperties: (options?: MathFunctionPropertiesOptions) => XmlComponent;
|
|
4548
|
+
//#endregion
|
|
3646
4549
|
//#region src/file/paragraph/math/function/math-function.d.ts
|
|
3647
4550
|
interface IMathFunctionOptions {
|
|
4551
|
+
readonly properties?: MathFunctionPropertiesOptions;
|
|
3648
4552
|
readonly children: readonly MathComponent[];
|
|
3649
4553
|
readonly name: readonly MathComponent[];
|
|
3650
4554
|
}
|
|
@@ -3657,14 +4561,64 @@ declare class MathFunctionName extends XmlComponent {
|
|
|
3657
4561
|
constructor(children: readonly MathComponent[]);
|
|
3658
4562
|
}
|
|
3659
4563
|
//#endregion
|
|
3660
|
-
//#region src/file/paragraph/math/
|
|
3661
|
-
|
|
3662
|
-
|
|
4564
|
+
//#region src/file/paragraph/math/group-chr/math-group-chr-properties.d.ts
|
|
4565
|
+
interface MathGroupChrPropertiesOptions {
|
|
4566
|
+
readonly chr?: string;
|
|
4567
|
+
readonly pos?: "top" | "bot";
|
|
4568
|
+
readonly vertJc?: "top" | "bot";
|
|
4569
|
+
}
|
|
4570
|
+
declare const createMathGroupChrProperties: (options: MathGroupChrPropertiesOptions) => XmlComponent;
|
|
4571
|
+
//#endregion
|
|
4572
|
+
//#region src/file/paragraph/math/group-chr/math-group-chr.d.ts
|
|
4573
|
+
interface IMathGroupChrOptions {
|
|
4574
|
+
readonly properties?: MathGroupChrPropertiesOptions;
|
|
4575
|
+
readonly children: readonly MathComponent[];
|
|
4576
|
+
}
|
|
4577
|
+
declare class MathGroupChr extends XmlComponent {
|
|
4578
|
+
constructor(options: IMathGroupChrOptions);
|
|
4579
|
+
}
|
|
4580
|
+
//#endregion
|
|
4581
|
+
//#region src/file/paragraph/math/math-run-properties.d.ts
|
|
4582
|
+
type MathScriptType = "roman" | "script" | "fraktur" | "double-struck" | "sans-serif" | "monospace";
|
|
4583
|
+
type MathStyleType = "p" | "b" | "i" | "bi";
|
|
4584
|
+
interface MathRunPropertiesOptions {
|
|
4585
|
+
readonly lit?: boolean;
|
|
4586
|
+
readonly normal?: boolean;
|
|
4587
|
+
readonly script?: MathScriptType;
|
|
4588
|
+
readonly style?: MathStyleType;
|
|
4589
|
+
readonly breakAlignment?: number;
|
|
4590
|
+
readonly align?: boolean;
|
|
3663
4591
|
}
|
|
4592
|
+
declare const createMathRunProperties: (options: MathRunPropertiesOptions) => XmlComponent;
|
|
3664
4593
|
//#endregion
|
|
3665
4594
|
//#region src/file/paragraph/math/math-run.d.ts
|
|
4595
|
+
interface MathRunOptions {
|
|
4596
|
+
readonly text: string;
|
|
4597
|
+
readonly properties?: MathRunPropertiesOptions;
|
|
4598
|
+
}
|
|
3666
4599
|
declare class MathRun extends XmlComponent {
|
|
3667
|
-
constructor(
|
|
4600
|
+
constructor(textOrOptions: string | MathRunOptions);
|
|
4601
|
+
}
|
|
4602
|
+
//#endregion
|
|
4603
|
+
//#region src/file/paragraph/math/matrix/math-matrix-properties.d.ts
|
|
4604
|
+
interface MathMatrixPropertiesOptions {
|
|
4605
|
+
readonly baseJc?: "top" | "bot" | "center";
|
|
4606
|
+
readonly plcHide?: boolean;
|
|
4607
|
+
readonly rSpRule?: "single" | "1.5" | "double" | "exactly" | "multiple";
|
|
4608
|
+
readonly cGpRule?: "single" | "1.5" | "double" | "exactly" | "multiple";
|
|
4609
|
+
readonly rSp?: number;
|
|
4610
|
+
readonly cSp?: number;
|
|
4611
|
+
readonly cGp?: number;
|
|
4612
|
+
}
|
|
4613
|
+
declare const createMathMatrixProperties: (options: MathMatrixPropertiesOptions) => XmlComponent;
|
|
4614
|
+
//#endregion
|
|
4615
|
+
//#region src/file/paragraph/math/matrix/math-matrix.d.ts
|
|
4616
|
+
interface IMathMatrixOptions {
|
|
4617
|
+
readonly properties?: MathMatrixPropertiesOptions;
|
|
4618
|
+
readonly rows: readonly (readonly MathComponent[])[];
|
|
4619
|
+
}
|
|
4620
|
+
declare class MathMatrix extends XmlComponent {
|
|
4621
|
+
constructor(options: IMathMatrixOptions);
|
|
3668
4622
|
}
|
|
3669
4623
|
//#endregion
|
|
3670
4624
|
//#region src/file/paragraph/math/n-ary/math-accent-character.d.ts
|
|
@@ -3697,12 +4651,14 @@ interface MathNAryPropertiesOptions {
|
|
|
3697
4651
|
readonly hasSuperScript: boolean;
|
|
3698
4652
|
readonly hasSubScript: boolean;
|
|
3699
4653
|
readonly limitLocationVal?: string;
|
|
4654
|
+
readonly grow?: boolean;
|
|
3700
4655
|
}
|
|
3701
4656
|
declare const createMathNAryProperties: ({
|
|
3702
4657
|
accent,
|
|
3703
4658
|
hasSuperScript,
|
|
3704
4659
|
hasSubScript,
|
|
3705
|
-
limitLocationVal
|
|
4660
|
+
limitLocationVal,
|
|
4661
|
+
grow
|
|
3706
4662
|
}: MathNAryPropertiesOptions) => XmlComponent;
|
|
3707
4663
|
//#endregion
|
|
3708
4664
|
//#region src/file/paragraph/math/n-ary/math-sub-script.d.ts
|
|
@@ -3746,8 +4702,15 @@ declare class MathLimit extends XmlComponent {
|
|
|
3746
4702
|
constructor(children: readonly MathComponent[]);
|
|
3747
4703
|
}
|
|
3748
4704
|
//#endregion
|
|
4705
|
+
//#region src/file/paragraph/math/n-ary/math-limit-upper-properties.d.ts
|
|
4706
|
+
interface MathLimitUpperPropertiesOptions {
|
|
4707
|
+
readonly controlProperties?: MathControlPropertiesOptions;
|
|
4708
|
+
}
|
|
4709
|
+
declare const createMathLimitUpperProperties: (options?: MathLimitUpperPropertiesOptions) => XmlComponent;
|
|
4710
|
+
//#endregion
|
|
3749
4711
|
//#region src/file/paragraph/math/n-ary/math-limit-upper.d.ts
|
|
3750
4712
|
interface IMathLimitUpperOptions {
|
|
4713
|
+
readonly properties?: MathLimitUpperPropertiesOptions;
|
|
3751
4714
|
readonly children: readonly MathComponent[];
|
|
3752
4715
|
readonly limit: readonly MathComponent[];
|
|
3753
4716
|
}
|
|
@@ -3755,8 +4718,15 @@ declare class MathLimitUpper extends XmlComponent {
|
|
|
3755
4718
|
constructor(options: IMathLimitUpperOptions);
|
|
3756
4719
|
}
|
|
3757
4720
|
//#endregion
|
|
4721
|
+
//#region src/file/paragraph/math/n-ary/math-limit-low-properties.d.ts
|
|
4722
|
+
interface MathLimitLowPropertiesOptions {
|
|
4723
|
+
readonly controlProperties?: MathControlPropertiesOptions;
|
|
4724
|
+
}
|
|
4725
|
+
declare const createMathLimitLowProperties: (options?: MathLimitLowPropertiesOptions) => XmlComponent;
|
|
4726
|
+
//#endregion
|
|
3758
4727
|
//#region src/file/paragraph/math/n-ary/math-limit-lower.d.ts
|
|
3759
4728
|
interface IMathLimitLowerOptions {
|
|
4729
|
+
readonly properties?: MathLimitLowPropertiesOptions;
|
|
3760
4730
|
readonly children: readonly MathComponent[];
|
|
3761
4731
|
readonly limit: readonly MathComponent[];
|
|
3762
4732
|
}
|
|
@@ -3764,6 +4734,25 @@ declare class MathLimitLower extends XmlComponent {
|
|
|
3764
4734
|
constructor(options: IMathLimitLowerOptions);
|
|
3765
4735
|
}
|
|
3766
4736
|
//#endregion
|
|
4737
|
+
//#region src/file/paragraph/math/phant/math-phant-properties.d.ts
|
|
4738
|
+
interface MathPhantPropertiesOptions {
|
|
4739
|
+
readonly show?: boolean;
|
|
4740
|
+
readonly zeroWid?: boolean;
|
|
4741
|
+
readonly zeroAsc?: boolean;
|
|
4742
|
+
readonly zeroDesc?: boolean;
|
|
4743
|
+
readonly transp?: boolean;
|
|
4744
|
+
}
|
|
4745
|
+
declare const createMathPhantProperties: (options: MathPhantPropertiesOptions) => XmlComponent;
|
|
4746
|
+
//#endregion
|
|
4747
|
+
//#region src/file/paragraph/math/phant/math-phant.d.ts
|
|
4748
|
+
interface IMathPhantOptions {
|
|
4749
|
+
readonly properties?: MathPhantPropertiesOptions;
|
|
4750
|
+
readonly children: readonly MathComponent[];
|
|
4751
|
+
}
|
|
4752
|
+
declare class MathPhant extends XmlComponent {
|
|
4753
|
+
constructor(options: IMathPhantOptions);
|
|
4754
|
+
}
|
|
4755
|
+
//#endregion
|
|
3767
4756
|
//#region src/file/paragraph/math/radical/math-degree.d.ts
|
|
3768
4757
|
declare class MathDegree extends XmlComponent {
|
|
3769
4758
|
constructor(children?: readonly MathComponent[]);
|
|
@@ -3818,7 +4807,10 @@ declare class MathSubSuperScript extends XmlComponent {
|
|
|
3818
4807
|
}
|
|
3819
4808
|
//#endregion
|
|
3820
4809
|
//#region src/file/paragraph/math/script/sub-super-script/math-sub-super-script-function-properties.d.ts
|
|
3821
|
-
|
|
4810
|
+
interface MathSubSuperScriptPropertiesOptions {
|
|
4811
|
+
readonly alignScripts?: boolean;
|
|
4812
|
+
}
|
|
4813
|
+
declare const createMathSubSuperScriptProperties: (options?: MathSubSuperScriptPropertiesOptions) => XmlComponent;
|
|
3822
4814
|
//#endregion
|
|
3823
4815
|
//#region src/file/paragraph/math/script/pre-sub-super-script/math-pre-sub-super-script-function.d.ts
|
|
3824
4816
|
interface IMathPreSubSuperScriptOptions {
|
|
@@ -3838,9 +4830,42 @@ declare class MathPreSubSuperScript extends BuilderElement {
|
|
|
3838
4830
|
declare const createMathPreSubSuperScriptProperties: () => XmlComponent;
|
|
3839
4831
|
//#endregion
|
|
3840
4832
|
//#region src/file/paragraph/math/math-component.d.ts
|
|
3841
|
-
type MathComponent = MathRun | MathFraction | MathSum | MathIntegral | MathSuperScript | MathSubScript | MathSubSuperScript | MathRadical | MathFunction | MathRoundBrackets | MathCurlyBrackets | MathAngledBrackets | MathSquareBrackets;
|
|
4833
|
+
type MathComponent = MathRun | MathFraction | MathSum | MathIntegral | MathSuperScript | MathSubScript | MathSubSuperScript | MathRadical | MathFunction | MathRoundBrackets | MathCurlyBrackets | MathAngledBrackets | MathSquareBrackets | MathBox | MathBorderBox | MathEqArr | MathGroupChr | MathLimitLower | MathLimitUpper | MathMatrix | MathPhant;
|
|
3842
4834
|
declare const WORKAROUND4 = "";
|
|
3843
4835
|
//#endregion
|
|
4836
|
+
//#region src/file/paragraph/math/accent/math-accent.d.ts
|
|
4837
|
+
interface MathAccentOptions {
|
|
4838
|
+
readonly accentCharacter?: string;
|
|
4839
|
+
readonly children: readonly MathComponent[];
|
|
4840
|
+
}
|
|
4841
|
+
declare const createMathAccent: ({
|
|
4842
|
+
accentCharacter,
|
|
4843
|
+
children
|
|
4844
|
+
}: MathAccentOptions) => XmlComponent;
|
|
4845
|
+
//#endregion
|
|
4846
|
+
//#region src/file/paragraph/math/accent/math-accent-properties.d.ts
|
|
4847
|
+
interface MathAccentPropertiesOptions {
|
|
4848
|
+
readonly accentCharacter: string;
|
|
4849
|
+
}
|
|
4850
|
+
declare const createMathAccentProperties: (options: MathAccentPropertiesOptions) => XmlComponent;
|
|
4851
|
+
//#endregion
|
|
4852
|
+
//#region src/file/paragraph/math/bar/math-bar.d.ts
|
|
4853
|
+
interface MathBarOptions {
|
|
4854
|
+
readonly type: "top" | "bot";
|
|
4855
|
+
readonly children: readonly MathComponent[];
|
|
4856
|
+
}
|
|
4857
|
+
declare const createMathBar: ({
|
|
4858
|
+
type,
|
|
4859
|
+
children
|
|
4860
|
+
}: MathBarOptions) => XmlComponent;
|
|
4861
|
+
//#endregion
|
|
4862
|
+
//#region src/file/paragraph/math/bar/math-bar-properties.d.ts
|
|
4863
|
+
declare const createMathBarProperties: ({
|
|
4864
|
+
type
|
|
4865
|
+
}: {
|
|
4866
|
+
readonly type: string;
|
|
4867
|
+
}) => XmlComponent;
|
|
4868
|
+
//#endregion
|
|
3844
4869
|
//#region src/file/paragraph/math/math.d.ts
|
|
3845
4870
|
interface IMathOptions {
|
|
3846
4871
|
readonly children: readonly MathComponent[];
|
|
@@ -3849,8 +4874,42 @@ declare class Math extends XmlComponent {
|
|
|
3849
4874
|
constructor(options: IMathOptions);
|
|
3850
4875
|
}
|
|
3851
4876
|
//#endregion
|
|
4877
|
+
//#region src/file/paragraph/math/math-para.d.ts
|
|
4878
|
+
type MathJustification = "left" | "right" | "center" | "centerGroup";
|
|
4879
|
+
interface IMathParagraphOptions {
|
|
4880
|
+
readonly justification?: MathJustification;
|
|
4881
|
+
readonly children: readonly IMathOptions[];
|
|
4882
|
+
}
|
|
4883
|
+
declare class MathParagraph extends XmlComponent {
|
|
4884
|
+
constructor(options: IMathParagraphOptions);
|
|
4885
|
+
}
|
|
4886
|
+
//#endregion
|
|
4887
|
+
//#region src/file/paragraph/math/math-pr.d.ts
|
|
4888
|
+
type MathBreakBin = "before" | "after" | "repeat";
|
|
4889
|
+
type MathBreakBinSub = "--" | "-+" | "+-";
|
|
4890
|
+
type MathPropertiesJustification = "left" | "right" | "center" | "centerGroup";
|
|
4891
|
+
interface MathPropertiesOptions {
|
|
4892
|
+
readonly mathFont?: string;
|
|
4893
|
+
readonly breakBin?: MathBreakBin;
|
|
4894
|
+
readonly breakBinSub?: MathBreakBinSub;
|
|
4895
|
+
readonly smallFrac?: boolean;
|
|
4896
|
+
readonly displayDefault?: boolean;
|
|
4897
|
+
readonly leftMargin?: number;
|
|
4898
|
+
readonly rightMargin?: number;
|
|
4899
|
+
readonly defaultJustification?: MathPropertiesJustification;
|
|
4900
|
+
readonly preSpacing?: number;
|
|
4901
|
+
readonly postSpacing?: number;
|
|
4902
|
+
readonly interSpacing?: number;
|
|
4903
|
+
readonly intraSpacing?: number;
|
|
4904
|
+
readonly wrapIndent?: number;
|
|
4905
|
+
readonly wrapRight?: boolean;
|
|
4906
|
+
readonly integralLimitLocation?: string;
|
|
4907
|
+
readonly naryLimitLocation?: string;
|
|
4908
|
+
}
|
|
4909
|
+
declare const createMathProperties: (options: MathPropertiesOptions) => XmlComponent;
|
|
4910
|
+
//#endregion
|
|
3852
4911
|
//#region src/file/paragraph/paragraph.d.ts
|
|
3853
|
-
type ParagraphChild = TextRun | ImageRun | SymbolRun | Bookmark | PageBreak | ColumnBreak | SequentialIdentifier | FootnoteReferenceRun | InternalHyperlink | ExternalHyperlink | InsertedTextRun | DeletedTextRun | Math | SimpleField | SimpleMailMergeField | Comments | Comment | CommentRangeStart | CommentRangeEnd | CommentReference | CheckBox;
|
|
4912
|
+
type ParagraphChild = TextRun | ImageRun | SymbolRun | Bookmark | PageBreak | ColumnBreak | SequentialIdentifier | FootnoteReferenceRun | InternalHyperlink | ExternalHyperlink | InsertedTextRun | DeletedTextRun | Math | SimpleField | SimpleMailMergeField | Comments | Comment | CommentRangeStart | CommentRangeEnd | CommentReference | CheckBox | StructuredDocumentTagRun;
|
|
3854
4913
|
type IParagraphOptions = {
|
|
3855
4914
|
readonly text?: string;
|
|
3856
4915
|
readonly children?: readonly ParagraphChild[];
|
|
@@ -3910,6 +4969,48 @@ declare class Textbox extends FileChild {
|
|
|
3910
4969
|
}: ITextboxOptions);
|
|
3911
4970
|
}
|
|
3912
4971
|
//#endregion
|
|
4972
|
+
//#region src/file/chart/chart-types/create-chart-type.d.ts
|
|
4973
|
+
type ChartType = "column" | "bar" | "line" | "pie" | "area" | "scatter";
|
|
4974
|
+
//#endregion
|
|
4975
|
+
//#region src/file/chart/chart-space.d.ts
|
|
4976
|
+
interface IChartSeriesData {
|
|
4977
|
+
readonly name: string;
|
|
4978
|
+
readonly values: readonly number[];
|
|
4979
|
+
}
|
|
4980
|
+
interface IChartSpaceOptions {
|
|
4981
|
+
readonly title?: string;
|
|
4982
|
+
readonly type: ChartType;
|
|
4983
|
+
readonly categories: readonly string[];
|
|
4984
|
+
readonly series: readonly IChartSeriesData[];
|
|
4985
|
+
readonly showLegend?: boolean;
|
|
4986
|
+
readonly style?: number;
|
|
4987
|
+
}
|
|
4988
|
+
declare class ChartSpace extends XmlComponent {
|
|
4989
|
+
constructor(options: IChartSpaceOptions);
|
|
4990
|
+
}
|
|
4991
|
+
//#endregion
|
|
4992
|
+
//#region src/file/smartart/built-in-layouts.d.ts
|
|
4993
|
+
declare const LAYOUTS: Record<string, string>;
|
|
4994
|
+
declare const DEFAULT_STYLE_URI = "http://schemas.openxmlformats.org/drawingml/2006/diagramstyle/2";
|
|
4995
|
+
declare const DEFAULT_COLOR_URI = "http://schemas.openxmlformats.org/drawingml/2006/diagramcolor/3";
|
|
4996
|
+
//#endregion
|
|
4997
|
+
//#region src/file/smartart/data-model/point.d.ts
|
|
4998
|
+
declare class Point extends XmlComponent {
|
|
4999
|
+
constructor(modelId: number, text: string, type?: string);
|
|
5000
|
+
}
|
|
5001
|
+
//#endregion
|
|
5002
|
+
//#region src/file/smartart/tree-to-model.d.ts
|
|
5003
|
+
interface ITreeNode {
|
|
5004
|
+
readonly text: string;
|
|
5005
|
+
readonly children?: readonly ITreeNode[];
|
|
5006
|
+
}
|
|
5007
|
+
interface IFlatResult {
|
|
5008
|
+
readonly points: XmlComponent[];
|
|
5009
|
+
readonly connections: Connection[];
|
|
5010
|
+
}
|
|
5011
|
+
declare const treeToModel: (nodes: readonly ITreeNode[]) => IFlatResult;
|
|
5012
|
+
declare const createDataModel: (nodes: readonly ITreeNode[]) => DataModel;
|
|
5013
|
+
//#endregion
|
|
3913
5014
|
//#region src/util/output-type.d.ts
|
|
3914
5015
|
interface OutputByType {
|
|
3915
5016
|
readonly base64: string;
|
|
@@ -4006,4 +5107,4 @@ declare const patchDetector: ({
|
|
|
4006
5107
|
data
|
|
4007
5108
|
}: PatchDetectorOptions) => Promise<readonly string[]>;
|
|
4008
5109
|
//#endregion
|
|
4009
|
-
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, createWrapThrough, 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 };
|
|
5110
|
+
export { AbstractNumbering, AlignmentType, AnnotationReference, AttributeData, AttributeMap, AttributePayload, Attributes, BaseXmlComponent, Bibliography, Body, Bookmark, BookmarkEnd, BookmarkStart, Border, BorderStyle, BuilderElement, CarriageReturn, CellMerge, CellMergeAttributes, CharacterSet, ChartCollection, ChartMediaData, ChartRun, ChartSpace, CheckBox, CheckBoxOptions, CheckBoxSymbolElement, CheckBoxUtil, CnfStyleOptions, Column, ColumnBreak, Comment, CommentRangeEnd, CommentRangeStart, CommentReference, Comments, ConcreteHyperlink, ConcreteNumbering, Connection, ContinuationSeparator, DEFAULT_COLOR_URI, DEFAULT_STYLE_URI, DataModel, DayLong, DayShort, DeletedTableCell, DeletedTableRow, DeletedTextRun, File as Document, File, DocumentAttributeNamespace, DocumentAttributeNamespaces, DocumentAttributes, DocumentBackground, DocumentBackgroundAttributes, DocumentDefaults, DocumentGridType, Drawing, DropCapType, DropDownListOptions, EMPTY_OBJECT, EmphasisMarkType, EmptyElement, EndnoteIdReference, EndnoteReference, EndnoteReferenceRun, EndnoteReferenceRunAttributes, Endnotes, ExternalHyperlink, FileChild, FlatTextOptions, FootNoteReferenceRunAttributes, FootNotes, Footer, FooterWrapper, FootnoteReference, FootnoteReferenceElement, FootnoteReferenceRun, FormFieldCommonOptions, FormFieldOptions, FormFieldTextOptions, FormFieldTextType, FractionType, FrameAnchorType, FrameWrap, GridSpan, Header, HeaderFooterReferenceType, HeaderFooterType, HeaderWrapper, HeadingLevel, HeightRule, HighlightColor, HorizontalPositionAlign, HorizontalPositionRelativeFrom, HpsMeasureElement, HyperlinkType, IAlignmentFrameOptions, IBaseCharacterStyleOptions, IBaseParagraphStyleOptions, IBibliographyOptions, IBodyPropertiesOptions, IBookmarkOptions, IBorderOptions, IBordersOptions, ICellMergeAttributes, ICharacterStyleOptions, IChartData, IChartOptions, IChartSeriesData, IChartSpaceOptions, ICheckboxSymbolOptions, ICheckboxSymbolProperties, ICnfStyleOptions, 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, IMathBorderBoxOptions, IMathBoxOptions, IMathEqArrOptions, IMathFractionOptions, IMathFunctionOptions, IMathGroupChrOptions, IMathIntegralOptions, IMathLimitLowerOptions, IMathLimitUpperOptions, IMathMatrixOptions, IMathOptions, IMathParagraphOptions, IMathPhantOptions, 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, ISdtBlockOptions, ISdtRunOptions, ISectionOptions, ISectionPropertiesChangeOptions, ISectionPropertiesOptions, ISectionPropertiesOptionsBase, IShadingAttributesProperties, ISmartArtData, ISmartArtNode, ISmartArtOptions, ISpacingProperties, IStylesOptions, ISymbolRunOptions, ITableBordersOptions, ITableCellBorders, ITableCellOptions, ITableFloatOptions, ITableLookOptions, ITableOfContentsOptions, ITableOptions, ITablePropertiesChangeOptions, ITablePropertiesOptions, ITablePropertiesOptionsBase, ITableRowOptions, ITableRowPropertiesChangeOptions, ITableRowPropertiesOptions, ITableRowPropertiesOptionsBase, ITableWidthProperties, ITextWrapping, ITreeNode, IVerticalPositionOptions, IWpgGroupOptions, IWpsShapeOptions, IXYFrameOptions, IXmlAttribute, IXmlableObject, IgnoreIfEmptyXmlComponent, ImageRun, ImportedRootElementAttributes, ImportedXmlComponent, InitializableXmlComponent, InputDataType, InsertedTableCell, InsertedTableRow, InsertedTextRun, InternalHyperlink, LAYOUTS, LastRenderedPageBreak, LeaderType, Level, LevelBase, LevelForOverride, LevelFormat, LevelOverride, LevelParagraphStylePropertiesOptions, LevelSuffix, LineNumberRestartFormat, LineRuleType, Math, MathAccentOptions, MathAccentPropertiesOptions, MathAngledBrackets, MathBaseOptions, MathBorderBox, MathBorderBoxPropertiesOptions, MathBox, MathBoxPropertiesOptions, MathBreakBin, MathBreakBinSub, MathComponent, MathControlPropertiesOptions, MathCurlyBrackets, MathDegree, MathDenominator, MathEqArr, MathEqArrPropertiesOptions, MathFraction, MathFractionPropertiesOptions, MathFunction, MathFunctionName, MathFunctionPropertiesOptions, MathGroupChr, MathGroupChrPropertiesOptions, MathIntegral, MathJustification, MathLimit, MathLimitLowPropertiesOptions, MathLimitLower, MathLimitUpper, MathLimitUpperPropertiesOptions, MathMatrix, MathMatrixPropertiesOptions, MathNAryPropertiesOptions, MathNumerator, MathParagraph, MathPhant, MathPhantPropertiesOptions, MathPreSubSuperScript, MathPropertiesJustification, MathPropertiesOptions, MathRadical, MathRadicalProperties, MathRoundBrackets, MathRun, MathRunOptions, MathRunPropertiesOptions, MathScriptType, MathSquareBrackets, MathStyleType, MathSubScript, MathSubSuperScript, MathSubSuperScriptPropertiesOptions, MathSum, MathSuperScript, Media, MonthLong, MonthShort, NextAttributeComponent, NoBreakHyphen, NormalAutofitOptions, 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, Point, PositionalTab, PositionalTabAlignment, PositionalTabLeader, PositionalTabOptions, PositionalTabRelativeTo, PositivePercentage, PositiveUniversalMeasure, PresetTextShapeOptions, PrettifyType, RelativeHorizontalPosition, RelativeMeasure, RelativeVerticalPosition, RubyAlign, RubyOptions, Run, RunProperties, RunPropertiesChange, RunPropertiesDefaults, RunStylePropertiesOptions, SdtComboBoxOptions, SdtDataBindingOptions, SdtDateMappingType, SdtDateOptions, SdtDropDownListOptions, SdtListItem, SdtLock, SdtPropertiesOptions, SdtTextOptions, SectionProperties, SectionPropertiesChange, SectionType, SectionVerticalAlign, Separator, SequentialIdentifier, ShadingType, SimpleField, SimpleMailMergeField, SmartArtCollection, SmartArtMediaData, SmartArtRun, SoftHyphen, SourceTypeOptions, SpaceType, StringContainer, StringEnumValueElement, StringValueElement, StructuredDocumentTagBlock, StructuredDocumentTagContent, StructuredDocumentTagProperties, StructuredDocumentTagRun, StyleForCharacter, StyleForParagraph, StyleLevel, Styles, SymbolRun, TDirection, Tab, TabStopDefinition, TabStopPosition, TabStopType, Table, TableAnchorType, TableBorders, TableCell, TableCellBorders, TableLayoutType, TableOfContents, TableProperties, TableRow, TableRowProperties, TableRowPropertiesChange, TableVerticalAlign, TextAlignmentType, TextBodyWrappingType, TextDirection, TextEffect, TextHorzOverflowType, TextInputOptions, TextRun, TextVertOverflowType, TextVerticalType, 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, chartAttr, concreteNumUniqueNumericIdGen, convertInchesToTwip, convertMillimetersToTwip, convertOutput, convertToXmlComponent, createAlignment, createBodyProperties, createBorderElement, createCnfStyle, createColumns, createDataModel, createDivId, createDocumentGrid, createDotEmphasisMark, createEmphasisMark, createFormFieldData, createFrameProperties, createHeaderFooterReference, createHorizontalPosition, createIndent, createLineNumberType, createMathAccent, createMathAccentCharacter, createMathAccentProperties, createMathBar, createMathBarProperties, createMathBase, createMathBorderBoxProperties, createMathBoxProperties, createMathControlProperties, createMathEqArrProperties, createMathFractionProperties, createMathFunctionProperties, createMathGroupChrProperties, createMathLimitLocation, createMathLimitLowProperties, createMathLimitUpperProperties, createMathMatrixProperties, createMathNAryProperties, createMathPhantProperties, createMathPreSubSuperScriptProperties, createMathProperties, createMathRunProperties, createMathSubScriptElement, createMathSubScriptProperties, createMathSubSuperScriptProperties, createMathSuperScriptElement, createMathSuperScriptProperties, createOutlineLevel, createPageMargin, createPageNumberType, createPageSize, createParagraphStyle, createRuby, createRunFonts, createSectionType, createShading, createSimplePos, createSpacing, createStringElement, createTabStop, createTabStopItem, createTableFloatProperties, createTableLayout, createTableLook, createTableRowHeight, createTableWidthElement, createTransformation, createUnderline, createVerticalAlign, createVerticalPosition, createWrapNone, createWrapSquare, createWrapThrough, createWrapTight, createWrapTopAndBottom, dateTimeValue, decimalNumber, docPropertiesUniqueNumericIdGen, eighthPointMeasureValue, hashedId, hexColorValue, hpsMeasureValue, longHexNumber, measurementOrPercentValue, patchDetector, patchDocument, percentageValue, pointMeasureValue, positiveUniversalMeasureValue, sectionMarginDefaults, sectionPageSizeDefaults, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, treeToModel, twipsMeasureValue, uCharHexNumber, uniqueId, uniqueNumericIdCreator, uniqueUuid, universalMeasureValue, unsignedDecimalNumber, wrapEl };
|