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