@sheetxl/sdk 0.6.16 → 0.6.17
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/browser/cjs/{U1dm1Xm2kdqUeD6H.cjs → B0ZRkYe5vXS8AXl5.cjs} +1 -1
- package/browser/cjs/{DjmtCi-hr6IRzsjv.cjs → B8C0qJCXRmSK9w8i.cjs} +1 -1
- package/browser/cjs/{Cv6raToEFuWdFg1l.cjs → BiZu_UkuyEYl_49H.cjs} +1 -1
- package/browser/cjs/{Chn_rXue5ZRT7QzO.cjs → BjkUWCp2ObvYeP19.cjs} +1 -1
- package/browser/cjs/{GFeCgzGuw5cNzIuz.cjs → BrPDVJeOA7eotIdQ.cjs} +1 -1
- package/browser/cjs/{BoWPwuGQGZ9LeAwf.cjs → Bt0KH5ry8A-H2XJc.cjs} +1 -1
- package/browser/cjs/{D3PLUvJebJwixno3.cjs → ByU95-ZXPn3w3tPi.cjs} +1 -1
- package/browser/cjs/{C2INdehyVPgz1Jzb.cjs → BynzHHQPUmhMyHYX.cjs} +3 -3
- package/browser/cjs/{C8JMdl2QLUqigZSp.cjs → C2z-2oeFQXCC2sdF.cjs} +1 -1
- package/browser/cjs/{XwMJLG3fnrWb7Kry.cjs → CNU-5-cLXkZdlc_I.cjs} +1 -1
- package/browser/cjs/{PxEF95ZwIuQT4wGv.cjs → C_7BUvmtSDknJjxh.cjs} +1 -1
- package/browser/cjs/{Pld4bpB-RO-4zCrM.cjs → Ck6yfrJGBKcCAnfo.cjs} +2 -2
- package/browser/cjs/{Cr8vGsKEARWkuGbH.cjs → DAVtwWgUmRbYKaUI.cjs} +1 -1
- package/browser/cjs/{CDTddlrrNAPAzT-b.cjs → DS7I31gDrgGx-Kjc.cjs} +1 -1
- package/browser/cjs/{BmCsHRYZD4YndYs4.cjs → DSBHJBPea75XkjbG.cjs} +1 -1
- package/browser/cjs/D_KL_f2CIY390LrK.cjs +54 -0
- package/browser/cjs/{_lYekKV2drbqLkab.cjs → DbJg_p3YrWqNiONk.cjs} +1 -1
- package/browser/cjs/{Cz3DPikv1uHxmHQO.cjs → Dudo2JNx8nSohuJ9.cjs} +1 -1
- package/browser/cjs/{pIJzNhe-hEXBTLKA.cjs → DwpsSlAaY2T3Rh0z.cjs} +1 -1
- package/browser/cjs/{eN9d-xodim4o2fVd.cjs → MxGT1owu3LK7lzv4.cjs} +1 -1
- package/browser/cjs/{k-_Yko2e0fYeYSMz.cjs → OlJ4WvknCU0tx9zr.cjs} +2 -2
- package/browser/cjs/{kFY5EKAHOvJcdTHU.cjs → PYxlwwf8LymgB6KF.cjs} +1 -1
- package/browser/cjs/{C0A1ZSbqhJpcZBXL.cjs → QSfpWHpM3ExP8C31.cjs} +1 -1
- package/browser/cjs/{DwQjplri0TLmw6Dr.cjs → SDe43jbsWmUivkUh.cjs} +1 -1
- package/browser/cjs/{DQ_XM6muCimf60e7.cjs → g-p1ZhI1XIJx-vvq.cjs} +1 -1
- package/browser/cjs/{DtX35zG23d6nmxHr.cjs → g44jkX22Kjpaujd8.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{DWgPdK1bXl_mpisL.cjs → vytrRYuoufF5SUFz.cjs} +1 -1
- package/browser/esm/{D6BieKg9I2zdEnme.mjs → 1H4OcVpECNdo2leo.mjs} +1 -1
- package/browser/esm/BCR-QupOzqFjIQ26.mjs +23328 -0
- package/browser/esm/{DXM-_v3PvFbM2njM.mjs → BSkaqwyDqSBFahkS.mjs} +1 -1
- package/{node/esm/CaJltcT8q2Qt4tOb.mjs → browser/esm/BbRFZyuCl2YcHE_O.mjs} +1 -1
- package/{node/esm/NussRz_Lfu19nTDO.mjs → browser/esm/BcSMUT4Sx-YNny4I.mjs} +1 -1
- package/browser/esm/{DpNBrNeVIhiQtG7J.mjs → Bj5dWxpiNTkchR1Y.mjs} +1 -1
- package/{node/esm/Ce3zqAUmE9OyqGvt.mjs → browser/esm/Bo9TMq-qqBydQB-d.mjs} +1 -1
- package/{node/esm/DXsvBOTVsF5m0ROF.mjs → browser/esm/Bu-rq4yH8T1EwN2P.mjs} +1 -1
- package/browser/esm/{BhlYeywnKEKSsVBp.mjs → CF9WRmqFK1b5FwUY.mjs} +1 -1
- package/browser/esm/{CoqdATBvO4OVNwUE.mjs → CiDTEYF3f2Ays6hs.mjs} +1 -1
- package/browser/esm/{DssDWFBai4LRnGyo.mjs → CijgE8Xdf4U-p_n_.mjs} +1 -1
- package/browser/esm/{iMtWYxITH-mK8yV4.mjs → Cjbrqj_RTTjDFoIZ.mjs} +1 -1
- package/{node/esm/COVt6Go-h1KJ_SYL.mjs → browser/esm/D1kVfIYxJreinijW.mjs} +1 -1
- package/{node/esm/DdQcQ9S4ZGjE5io0.mjs → browser/esm/D3Dm6W1dzveetEon.mjs} +1 -1
- package/browser/esm/{BXhWgBqyW7vVSwCE.mjs → DGvCi12sa7ZIIyrU.mjs} +1 -1
- package/browser/esm/{CEMahAUp4yeaRZyO.mjs → DKVh-BpPSxRKNBg0.mjs} +1 -1
- package/browser/esm/{qYVVqNYgMTjgxSFA.mjs → D_RGE3EZfJC5ZZWR.mjs} +2 -2
- package/{node/esm/ktpMAehXfPbHpZxp.mjs → browser/esm/DbfaEgmktGZoVmR9.mjs} +1 -1
- package/browser/esm/{DMcVQ-BL4bA_OnOG.mjs → Dh0gG6If4az9wdA_.mjs} +1 -1
- package/browser/esm/{CvL_oKmyxaK1QYqk.mjs → Ls1ZSIs4_Dizy6M2.mjs} +1 -1
- package/browser/esm/{CMtecoWQQB5QJglr.mjs → PC-0s4BlfmcUuM2n.mjs} +2 -2
- package/browser/esm/{B29IdOudbMkKhUWx.mjs → VABCB8JWd3GRuJSJ.mjs} +1 -1
- package/browser/esm/{rG8mrr2nckUu5hbw.mjs → W2jVr33Yj6xCsoBI.mjs} +3 -3
- package/browser/esm/index.mjs +2 -2
- package/{node/esm/DL8H1TIz4eYTJlVj.mjs → browser/esm/sblqA0GEw7u_7uUc.mjs} +1 -1
- package/{node/esm/Cu9gRGU_8MCajq2K.mjs → browser/esm/v18e8vKmxVrtktOm.mjs} +1 -1
- package/browser/esm/{CwlYf8-SIFOPR2bo.mjs → vbJIfJnzIQ7BWeaz.mjs} +1 -1
- package/browser/esm/{DxkU0bhpXyM3VNYS.mjs → xQmntmz9bIJQGGk5.mjs} +1 -1
- package/node/esm/{DjzRVBemDPA3DN_8.mjs → 60NBbrQpc9hm9XDF.mjs} +1 -1
- package/node/esm/{BqqNCz_koCAYJ3Kx.mjs → B-VscQXhRPYYzMBg.mjs} +1 -1
- package/node/esm/{DXM-_v3PvFbM2njM.mjs → BSkaqwyDqSBFahkS.mjs} +1 -1
- package/{browser/esm/CaJltcT8q2Qt4tOb.mjs → node/esm/BbRFZyuCl2YcHE_O.mjs} +1 -1
- package/{browser/esm/NussRz_Lfu19nTDO.mjs → node/esm/BcSMUT4Sx-YNny4I.mjs} +1 -1
- package/node/esm/{DpNBrNeVIhiQtG7J.mjs → Bj5dWxpiNTkchR1Y.mjs} +1 -1
- package/{browser/esm/Ce3zqAUmE9OyqGvt.mjs → node/esm/Bo9TMq-qqBydQB-d.mjs} +1 -1
- package/node/esm/{Dxs2OFUMD57Oo_AB.mjs → BpnjD3v17ME5wsuw.mjs} +1 -1
- package/{browser/esm/DXsvBOTVsF5m0ROF.mjs → node/esm/Bu-rq4yH8T1EwN2P.mjs} +1 -1
- package/node/esm/{C61hKIygirc2mSxV.mjs → C4eGsdqRlRQklHCI.mjs} +1 -1
- package/node/esm/{PWC-IfMc5cNOks4D.mjs → CV4lgmXng9GwC7Jc.mjs} +2 -2
- package/node/esm/{0VNBUAjGhg3IHPRC.mjs → CduvvHyonYr0CJdM.mjs} +1 -1
- package/node/esm/{CLXpyIa1G-kRzIzH.mjs → Ch4EonmIhss9y_h3.mjs} +1 -1
- package/node/esm/{iMtWYxITH-mK8yV4.mjs → Cjbrqj_RTTjDFoIZ.mjs} +1 -1
- package/{browser/esm/COVt6Go-h1KJ_SYL.mjs → node/esm/D1kVfIYxJreinijW.mjs} +1 -1
- package/{browser/esm/DdQcQ9S4ZGjE5io0.mjs → node/esm/D3Dm6W1dzveetEon.mjs} +1 -1
- package/node/esm/{CEMahAUp4yeaRZyO.mjs → DKVh-BpPSxRKNBg0.mjs} +1 -1
- package/{browser/esm/ktpMAehXfPbHpZxp.mjs → node/esm/DbfaEgmktGZoVmR9.mjs} +1 -1
- package/node/esm/{DMcVQ-BL4bA_OnOG.mjs → Dh0gG6If4az9wdA_.mjs} +1 -1
- package/node/esm/{BoURPosx6Uvnr7bI.mjs → DkQjw7yUaMjLtVhs.mjs} +1 -1
- package/node/esm/{Bj_liro3wEoofx_s.mjs → DrAv_iWPmonAJ9-3.mjs} +1 -1
- package/node/esm/{CvL_oKmyxaK1QYqk.mjs → Ls1ZSIs4_Dizy6M2.mjs} +1 -1
- package/node/esm/{B29IdOudbMkKhUWx.mjs → VABCB8JWd3GRuJSJ.mjs} +1 -1
- package/node/esm/index.mjs +913 -796
- package/{browser/esm/DL8H1TIz4eYTJlVj.mjs → node/esm/sblqA0GEw7u_7uUc.mjs} +1 -1
- package/{browser/esm/Cu9gRGU_8MCajq2K.mjs → node/esm/v18e8vKmxVrtktOm.mjs} +1 -1
- package/package.json +4 -4
- package/types/index.d.ts +217 -32
- package/types/scripting.d.ts +308 -52
- package/browser/cjs/CtMEtiTTRRZpP_y5.cjs +0 -54
- package/browser/esm/BadKxl9yXM8LRAt0.mjs +0 -23197
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.6.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.6.17
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.6.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.6.17
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheetxl/sdk",
|
|
3
3
|
"description": "SDK - A high-performance, embeddable spreadsheet engine.",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.17",
|
|
5
5
|
"license": "SEE LICENSE IN <LICENSE>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"automation"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@sheetxl/primitives": "^0.6.
|
|
35
|
-
"@sheetxl/scripting": "^0.6.
|
|
36
|
-
"@sheetxl/utils": "^0.6.
|
|
34
|
+
"@sheetxl/primitives": "^0.6.17",
|
|
35
|
+
"@sheetxl/scripting": "^0.6.17",
|
|
36
|
+
"@sheetxl/utils": "^0.6.17",
|
|
37
37
|
"bahttext": "^2.3.0",
|
|
38
38
|
"bessel": "^1.0.2",
|
|
39
39
|
"chalk": "^5.5.0",
|
package/types/index.d.ts
CHANGED
|
@@ -2155,7 +2155,19 @@ export declare namespace IBorder {
|
|
|
2155
2155
|
}
|
|
2156
2156
|
export interface IStroke {
|
|
2157
2157
|
getStyle(): StrokeStyle;
|
|
2158
|
+
/**
|
|
2159
|
+
* Sets the stroke style.
|
|
2160
|
+
*
|
|
2161
|
+
* @param style The stroke style.
|
|
2162
|
+
*/
|
|
2163
|
+
setStyle(style: IBorder.StrokeStyle | string | null, options?: IStyle.UpdateOptions): IBorder.IStroke;
|
|
2158
2164
|
getColor(): IColor;
|
|
2165
|
+
/**
|
|
2166
|
+
* Sets the stroke color.
|
|
2167
|
+
*
|
|
2168
|
+
* @param color The stroke color.
|
|
2169
|
+
*/
|
|
2170
|
+
setColor(color: IColor.Serializable | null, options?: IStyle.UpdateOptions): IBorder.IStroke;
|
|
2159
2171
|
/**
|
|
2160
2172
|
* Returns all the set properties and their values for the border.
|
|
2161
2173
|
*/
|
|
@@ -2209,7 +2221,7 @@ export declare interface IBorder {
|
|
|
2209
2221
|
*
|
|
2210
2222
|
* @param edge The border edge.
|
|
2211
2223
|
*/
|
|
2212
|
-
setLeft(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.
|
|
2224
|
+
setLeft(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.Properties> | string | null, options?: IStyle.UpdateOptions): IBorder;
|
|
2213
2225
|
/**
|
|
2214
2226
|
* @returns The top border.
|
|
2215
2227
|
*/
|
|
@@ -2219,17 +2231,17 @@ export declare interface IBorder {
|
|
|
2219
2231
|
*
|
|
2220
2232
|
* @param edge The border edge.
|
|
2221
2233
|
*/
|
|
2222
|
-
setTop(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.
|
|
2234
|
+
setTop(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.Properties> | string | null, options?: IStyle.UpdateOptions): IBorder;
|
|
2223
2235
|
/**
|
|
2224
2236
|
* @returns The right border.
|
|
2225
2237
|
*/
|
|
2226
2238
|
getRight(): IBorder.IStroke;
|
|
2227
2239
|
/**
|
|
2228
|
-
* Sets the
|
|
2240
|
+
* Sets the right border.
|
|
2229
2241
|
*
|
|
2230
2242
|
* @param edge The border edge.
|
|
2231
2243
|
*/
|
|
2232
|
-
|
|
2244
|
+
setRight(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.Properties> | string | null, options?: IStyle.UpdateOptions): IBorder;
|
|
2233
2245
|
/**
|
|
2234
2246
|
* @returns The bottom border.
|
|
2235
2247
|
*/
|
|
@@ -2239,7 +2251,7 @@ export declare interface IBorder {
|
|
|
2239
2251
|
*
|
|
2240
2252
|
* @param edge The border edge.
|
|
2241
2253
|
*/
|
|
2242
|
-
setBottom(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.
|
|
2254
|
+
setBottom(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.Properties> | string | null, options?: IStyle.UpdateOptions): IBorder;
|
|
2243
2255
|
/**
|
|
2244
2256
|
* @returns The diagonalUp border.
|
|
2245
2257
|
*/
|
|
@@ -2249,7 +2261,7 @@ export declare interface IBorder {
|
|
|
2249
2261
|
*
|
|
2250
2262
|
* @param edge The border edge.
|
|
2251
2263
|
*/
|
|
2252
|
-
setDiagonalUp(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.
|
|
2264
|
+
setDiagonalUp(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.Properties> | string | null, options?: IStyle.UpdateOptions): IBorder;
|
|
2253
2265
|
/**
|
|
2254
2266
|
* @returns The diagonalDown border.
|
|
2255
2267
|
*/
|
|
@@ -2259,7 +2271,7 @@ export declare interface IBorder {
|
|
|
2259
2271
|
*
|
|
2260
2272
|
* @param edge The border edge.
|
|
2261
2273
|
*/
|
|
2262
|
-
setDiagonalDown(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.StrokeProperties> | string | null, options?: IStyle.UpdateOptions): IBorder
|
|
2274
|
+
setDiagonalDown(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.StrokeProperties> | string | null, options?: IStyle.UpdateOptions): IBorder;
|
|
2263
2275
|
/**
|
|
2264
2276
|
* If there are any borders that are not none.
|
|
2265
2277
|
*/
|
|
@@ -4348,11 +4360,10 @@ export declare interface ICellRange {
|
|
|
4348
4360
|
*/
|
|
4349
4361
|
getValue(options?: ICellRange.GetValuesOptions): Scalar | JSScalar;
|
|
4350
4362
|
/**
|
|
4351
|
-
* Returns the style for the
|
|
4363
|
+
* Returns the style for the ranges.
|
|
4352
4364
|
*
|
|
4353
|
-
* @
|
|
4354
|
-
*
|
|
4355
|
-
* set values work for the entire range.
|
|
4365
|
+
* @see
|
|
4366
|
+
* {@link ICellRange.getStyle}
|
|
4356
4367
|
*/
|
|
4357
4368
|
getStyle(): IStyle;
|
|
4358
4369
|
/**
|
|
@@ -4676,14 +4687,6 @@ export declare interface ICellRange {
|
|
|
4676
4687
|
* @returns Current `ICellRange`.
|
|
4677
4688
|
*/
|
|
4678
4689
|
unmerge(options?: ITransaction.OperationOptions): this;
|
|
4679
|
-
/**
|
|
4680
|
-
* Update the style for the range(s).
|
|
4681
|
-
*
|
|
4682
|
-
* @param style {@link IStyle.Update}
|
|
4683
|
-
* @param options {@link IStyle.UpdateOptions}
|
|
4684
|
-
* @returns Current `ICellRange`.
|
|
4685
|
-
*/
|
|
4686
|
-
updateStyle(style: IStyle.Update, options?: IStyle.UpdateOptions): this;
|
|
4687
4690
|
/**
|
|
4688
4691
|
* Returns an iterator of ICells that match the results.
|
|
4689
4692
|
*
|
|
@@ -5849,9 +5852,13 @@ export declare interface ICellRanges {
|
|
|
5849
5852
|
*/
|
|
5850
5853
|
getSheet(): ISheet;
|
|
5851
5854
|
/**
|
|
5852
|
-
*
|
|
5855
|
+
* Returns the style for the range.
|
|
5856
|
+
*
|
|
5857
|
+
* @remarks
|
|
5858
|
+
* When querying the style the values will always be for the top left. However the
|
|
5859
|
+
* set values work for the entire range.
|
|
5853
5860
|
*/
|
|
5854
|
-
|
|
5861
|
+
getStyle(): IStyle;
|
|
5855
5862
|
/**
|
|
5856
5863
|
* {@inheritDoc ICellRange.find}
|
|
5857
5864
|
*/
|
|
@@ -8186,6 +8193,12 @@ export declare namespace IFill {
|
|
|
8186
8193
|
* Returns the color of the fill.
|
|
8187
8194
|
*/
|
|
8188
8195
|
getColor(): IColor;
|
|
8196
|
+
/**
|
|
8197
|
+
* Sets the stroke color.
|
|
8198
|
+
*
|
|
8199
|
+
* @param color The stroke color.
|
|
8200
|
+
*/
|
|
8201
|
+
setColor(color: IColor.Serializable | null, options?: IStyle.UpdateOptions): IFill.ISolid;
|
|
8189
8202
|
}
|
|
8190
8203
|
export interface SolidProperties<C = IColor.Serializable> extends IFill.Properties {
|
|
8191
8204
|
/**
|
|
@@ -8311,19 +8324,46 @@ export declare namespace IFill {
|
|
|
8311
8324
|
* * This must be at least two stops.
|
|
8312
8325
|
*/
|
|
8313
8326
|
getStops(): IGradientStop[];
|
|
8327
|
+
/**
|
|
8328
|
+
* Sets the gradient stops.
|
|
8329
|
+
*
|
|
8330
|
+
* @param stops The gradient stops.
|
|
8331
|
+
*/
|
|
8332
|
+
setStops(stops: (IGradientStop | IColor.Serializable | null)[], options?: IStyle.UpdateOptions): IFill.IGradient;
|
|
8314
8333
|
/**
|
|
8315
8334
|
* The type of gradient.
|
|
8316
8335
|
* @defaultValue GradientType.Linear
|
|
8317
8336
|
*/
|
|
8318
8337
|
getGradientType(): IFill.GradientType;
|
|
8338
|
+
/**
|
|
8339
|
+
* Sets the gradient type.
|
|
8340
|
+
*
|
|
8341
|
+
* @param type The gradient type.
|
|
8342
|
+
*/
|
|
8343
|
+
setGradientType(type: IFill.GradientType | null, options?: IStyle.UpdateOptions): IFill.IGradient;
|
|
8319
8344
|
/**
|
|
8320
8345
|
* The angle of the gradient in degrees if gradient type is linear.
|
|
8321
8346
|
*/
|
|
8322
8347
|
getAngle(): number;
|
|
8348
|
+
/**
|
|
8349
|
+
* Sets the rotation
|
|
8350
|
+
*
|
|
8351
|
+
* @param angle The angle
|
|
8352
|
+
*/
|
|
8353
|
+
setAngle(angle: number | null, options?: IStyle.UpdateOptions): IFill.IGradient;
|
|
8323
8354
|
/**
|
|
8324
8355
|
* Used for path and circular gradients.
|
|
8325
8356
|
*/
|
|
8326
8357
|
getFillTo(): Rectangle;
|
|
8358
|
+
/**
|
|
8359
|
+
* Sets the fill area for the gradient.
|
|
8360
|
+
*
|
|
8361
|
+
* @param fillTo The fill area.
|
|
8362
|
+
*/
|
|
8363
|
+
setFillTo(fillTo: Rectangle | null, options?: IStyle.UpdateOptions): IFill.IGradient;
|
|
8364
|
+
/**
|
|
8365
|
+
* Converts the gradient fill to a JSON representation.
|
|
8366
|
+
*/
|
|
8327
8367
|
toJSON(): GradientJSON;
|
|
8328
8368
|
}
|
|
8329
8369
|
export interface GradientJSON extends GradientProperties<string> {
|
|
@@ -8340,14 +8380,35 @@ export declare namespace IFill {
|
|
|
8340
8380
|
* The foreground color for the pattern.
|
|
8341
8381
|
*/
|
|
8342
8382
|
getForeground(): IColor;
|
|
8383
|
+
/**
|
|
8384
|
+
* Sets the foreground color.
|
|
8385
|
+
*
|
|
8386
|
+
* @param color The foreground color.
|
|
8387
|
+
*/
|
|
8388
|
+
setForeground(color: IColor.Serializable | null, options?: IStyle.UpdateOptions): IFill.IPattern;
|
|
8343
8389
|
/**
|
|
8344
8390
|
* The background color for the pattern.
|
|
8345
8391
|
*/
|
|
8346
8392
|
getBackground(): IColor;
|
|
8393
|
+
/**
|
|
8394
|
+
* Sets the background color.
|
|
8395
|
+
*
|
|
8396
|
+
* @param color The background color.
|
|
8397
|
+
*/
|
|
8398
|
+
setBackground(color: IColor.Serializable | null, options?: IStyle.UpdateOptions): IFill.IPattern;
|
|
8347
8399
|
/**
|
|
8348
8400
|
* The type of pattern used.
|
|
8349
8401
|
*/
|
|
8350
8402
|
getPatternType(): IFill.BuiltInSheetPattern;
|
|
8403
|
+
/**
|
|
8404
|
+
* Sets the pattern type.
|
|
8405
|
+
*
|
|
8406
|
+
* @param type The pattern type.
|
|
8407
|
+
*/
|
|
8408
|
+
setPatternType(type: IFill.BuiltInSheetPattern | null, options?: IStyle.UpdateOptions): IFill.IPattern;
|
|
8409
|
+
/**
|
|
8410
|
+
* Converts the pattern fill to a JSON representation.
|
|
8411
|
+
*/
|
|
8351
8412
|
toJSON(): PatternJSON;
|
|
8352
8413
|
}
|
|
8353
8414
|
export interface PatternProperties<C = IColor.Serializable> extends IFill.Properties {
|
|
@@ -13957,13 +14018,13 @@ export declare interface IStyle {
|
|
|
13957
14018
|
*
|
|
13958
14019
|
* @remarks
|
|
13959
14020
|
* * If a number provided the builtIn numFmtId as defined in OOXML will be used.
|
|
13960
|
-
*
|
|
14021
|
+
* * {@link NumberFormat.Type}
|
|
13961
14022
|
*/
|
|
13962
14023
|
getNumberFormat(): string;
|
|
13963
14024
|
/**
|
|
13964
14025
|
* @see {@link IStyle.getNumberFormat}
|
|
13965
14026
|
*/
|
|
13966
|
-
setNumberFormat(numFmt: string | null, options?: IStyle.UpdateOptions):
|
|
14027
|
+
setNumberFormat(numFmt: string | null, options?: IStyle.UpdateOptions): IStyle;
|
|
13967
14028
|
/**
|
|
13968
14029
|
* A boolean value indicating whether the text string in a cell should be prefixed by a single quote mark (e.g., 'text).
|
|
13969
14030
|
* In these cases, the quote is not stored in the Shared Strings Part.
|
|
@@ -13972,7 +14033,7 @@ export declare interface IStyle {
|
|
|
13972
14033
|
/**
|
|
13973
14034
|
* @see {@link IStyle.getQuotePrefix}
|
|
13974
14035
|
*/
|
|
13975
|
-
setQuotePrefix(quotePrefix: boolean | null, options?: IStyle.UpdateOptions):
|
|
14036
|
+
setQuotePrefix(quotePrefix: boolean | null, options?: IStyle.UpdateOptions): IStyle;
|
|
13976
14037
|
/**
|
|
13977
14038
|
* Returns the border style.
|
|
13978
14039
|
*/
|
|
@@ -13986,7 +14047,7 @@ export declare interface IStyle {
|
|
|
13986
14047
|
* @param options Optional configuration for the update.
|
|
13987
14048
|
* @returns The `IBorder` object for further modifications.
|
|
13988
14049
|
*/
|
|
13989
|
-
setBorder(border: IBorder | IProperties.ResolvableProperties<IBorder.Properties> | string | null, options?: IStyle.UpdateOptions):
|
|
14050
|
+
setBorder(border: IBorder | IProperties.ResolvableProperties<IBorder.Properties> | string | null, options?: IStyle.UpdateOptions): IStyle;
|
|
13990
14051
|
/**
|
|
13991
14052
|
* Fill properties for the background.
|
|
13992
14053
|
*/
|
|
@@ -14000,7 +14061,7 @@ export declare interface IStyle {
|
|
|
14000
14061
|
* @param options Optional configuration for the update.
|
|
14001
14062
|
* @returns The `IFill` object for further modifications.
|
|
14002
14063
|
*/
|
|
14003
|
-
setFill(fill: IFill | IProperties.ResolvableProperties<IFill.Properties> | string | null, options?: IStyle.UpdateOptions):
|
|
14064
|
+
setFill(fill: IFill | IProperties.ResolvableProperties<IFill.Properties> | string | null, options?: IStyle.UpdateOptions): IStyle;
|
|
14004
14065
|
/**
|
|
14005
14066
|
* Returns the alignment for the style.
|
|
14006
14067
|
*/
|
|
@@ -14014,7 +14075,7 @@ export declare interface IStyle {
|
|
|
14014
14075
|
* @param options Optional configuration for the update.
|
|
14015
14076
|
* @returns The `ITextFrame.IAlignment` object for further modifications.
|
|
14016
14077
|
*/
|
|
14017
|
-
setAlignment(alignment: ITextFrame.IAlignment | IProperties.ResolvableProperties<ITextFrame.IAlignment.Properties> | string | null, options?: IStyle.UpdateOptions):
|
|
14078
|
+
setAlignment(alignment: ITextFrame.IAlignment | IProperties.ResolvableProperties<ITextFrame.IAlignment.Properties> | string | null, options?: IStyle.UpdateOptions): IStyle;
|
|
14018
14079
|
/**
|
|
14019
14080
|
* Returns the font for the style.
|
|
14020
14081
|
*/
|
|
@@ -14028,7 +14089,25 @@ export declare interface IStyle {
|
|
|
14028
14089
|
* @param options Optional configuration for the update.
|
|
14029
14090
|
* @returns The `IStyledFont` object for further modifications.
|
|
14030
14091
|
*/
|
|
14031
|
-
setFont(font: IStyledFont | IProperties.ResolvableProperties<IStyledFont.Properties> | string | null, options?: IStyle.UpdateOptions):
|
|
14092
|
+
setFont(font: IStyledFont | IProperties.ResolvableProperties<IStyledFont.Properties> | string | null, options?: IStyle.UpdateOptions): IStyle;
|
|
14093
|
+
/**
|
|
14094
|
+
* Returns an instance of the named style that this is derived from.
|
|
14095
|
+
*/
|
|
14096
|
+
getNamed(): IStyle.INamed;
|
|
14097
|
+
/**
|
|
14098
|
+
* Sets the named style that this is derived from.
|
|
14099
|
+
*
|
|
14100
|
+
* @param named The named style to set.
|
|
14101
|
+
*/
|
|
14102
|
+
setNamed(named: string | IStyle.INamed | null, options?: IStyle.UpdateOptions): IStyle;
|
|
14103
|
+
/**
|
|
14104
|
+
* Update many style properties at once.
|
|
14105
|
+
*
|
|
14106
|
+
* @param update {@link IStyle.Update}
|
|
14107
|
+
* @param options {@link IStyle.UpdateOptions}
|
|
14108
|
+
* @returns The `IStyle` for further modifications.
|
|
14109
|
+
*/
|
|
14110
|
+
update(update: IStyle.Update, options?: IStyle.UpdateOptions): IStyle;
|
|
14032
14111
|
/**
|
|
14033
14112
|
* Measure the text using the styling properties
|
|
14034
14113
|
*
|
|
@@ -14065,10 +14144,6 @@ export declare interface IStyle {
|
|
|
14065
14144
|
* @param update Adjustments to the style.
|
|
14066
14145
|
*/
|
|
14067
14146
|
createTemporaryStyle(update: IStyle.Update): IStyle;
|
|
14068
|
-
/**
|
|
14069
|
-
* Returns an instance of the named style that this is derived from.
|
|
14070
|
-
*/
|
|
14071
|
-
getNamed(): IStyle.INamed;
|
|
14072
14147
|
/**
|
|
14073
14148
|
* Returns `true` if the CellStyle is the normal style
|
|
14074
14149
|
*/
|
|
@@ -14643,23 +14718,43 @@ export declare interface IStyledFont {
|
|
|
14643
14718
|
* marshalled into their correct property.
|
|
14644
14719
|
*/
|
|
14645
14720
|
getFamily(): string;
|
|
14721
|
+
/**
|
|
14722
|
+
* @see {@link IStyledFont.getFamily}
|
|
14723
|
+
*/
|
|
14724
|
+
setFamily(family: string | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
14646
14725
|
/**
|
|
14647
14726
|
* A list of fonts and their fallbacks. These can also be provided in the fontFamily attribute but will
|
|
14648
14727
|
* be normalized to here.
|
|
14649
14728
|
*/
|
|
14650
14729
|
getFallbacks(): string[];
|
|
14730
|
+
/**
|
|
14731
|
+
* @see {@link IStyledFont.setFallbacks}
|
|
14732
|
+
*/
|
|
14733
|
+
setFallbacks(fallbacks: string[] | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
14651
14734
|
/**
|
|
14652
14735
|
* Font size is either a number in points or a string that can be converted such as '14px', '1.5em'.
|
|
14653
14736
|
*/
|
|
14654
14737
|
getSize(): number;
|
|
14738
|
+
/**
|
|
14739
|
+
* @see {@link IStyledFont.setSize}
|
|
14740
|
+
*/
|
|
14741
|
+
setSize(size: number | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
14655
14742
|
/**
|
|
14656
14743
|
* The weight of the characters.
|
|
14657
14744
|
*/
|
|
14658
14745
|
getWeight(): number;
|
|
14746
|
+
/**
|
|
14747
|
+
* @see {@link IStyledFont.setWeight}
|
|
14748
|
+
*/
|
|
14749
|
+
setWeight(weight: number | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
14659
14750
|
/**
|
|
14660
14751
|
* @default `IFont.Style.Normal`
|
|
14661
14752
|
*/
|
|
14662
14753
|
getStyle(): IFont.Style;
|
|
14754
|
+
/**
|
|
14755
|
+
* @see {@link IStyledFont.setStyle}
|
|
14756
|
+
*/
|
|
14757
|
+
setStyle(style: IFont.Style | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
14663
14758
|
/**
|
|
14664
14759
|
* The text color.
|
|
14665
14760
|
*
|
|
@@ -14667,25 +14762,45 @@ export declare interface IStyledFont {
|
|
|
14667
14762
|
* Currently only solid fill is supported but this will be expanded to allow all fill types similar to DrawML.
|
|
14668
14763
|
*/
|
|
14669
14764
|
getFill(): IColor;
|
|
14765
|
+
/**
|
|
14766
|
+
* @see {@link IStyledFont.setFill}
|
|
14767
|
+
*/
|
|
14768
|
+
setFill(fill: IColor | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
14670
14769
|
/**
|
|
14671
14770
|
* Adds or removes additional spacing between the characters.
|
|
14672
14771
|
*/
|
|
14673
14772
|
getLetterSpacing(): number;
|
|
14773
|
+
/**
|
|
14774
|
+
* @see {@link IStyledFont.setLetterSpacing}
|
|
14775
|
+
*/
|
|
14776
|
+
setLetterSpacing(letterSpacing: number | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
14674
14777
|
/**
|
|
14675
14778
|
* Sets the underline style. If true defaults to single. If false or null defaults to none.
|
|
14676
14779
|
*
|
|
14677
14780
|
* @default `IFont.UnderlineStyle.None`
|
|
14678
14781
|
*/
|
|
14679
14782
|
getUnderline(): IFont.UnderlineStyle;
|
|
14783
|
+
/**
|
|
14784
|
+
* @see {@link IStyledFont.setUnderline}
|
|
14785
|
+
*/
|
|
14786
|
+
setUnderline(underline: IFont.UnderlineStyle | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
14680
14787
|
/**
|
|
14681
14788
|
* The effect draws the text with a line through it.
|
|
14682
14789
|
*/
|
|
14683
14790
|
getStrike(): boolean;
|
|
14791
|
+
/**
|
|
14792
|
+
* @see {@link IStyledFont.setStrike}
|
|
14793
|
+
*/
|
|
14794
|
+
setStrike(strike: boolean | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
14684
14795
|
/**
|
|
14685
14796
|
* Defines the font scheme to use.
|
|
14686
14797
|
* @default `IFont.Scheme.Minor`
|
|
14687
14798
|
*/
|
|
14688
14799
|
getScheme(): IFont.Scheme;
|
|
14800
|
+
/**
|
|
14801
|
+
* @see {@link IStyledFont.setScheme}
|
|
14802
|
+
*/
|
|
14803
|
+
setScheme(scheme: IFont.Scheme | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
14689
14804
|
/**
|
|
14690
14805
|
* Returns the vertical alignment of the text within a text line.
|
|
14691
14806
|
*
|
|
@@ -14693,6 +14808,10 @@ export declare interface IStyledFont {
|
|
|
14693
14808
|
* If the IFont.VerticalAlignment is superscript or subscript then the font size should also render smaller.
|
|
14694
14809
|
*/
|
|
14695
14810
|
getVerticalAlignment(): IFont.VerticalAlignment;
|
|
14811
|
+
/**
|
|
14812
|
+
* @see {@link IStyledFont.setVerticalAlignment}
|
|
14813
|
+
*/
|
|
14814
|
+
setVerticalAlignment(verticalAlignment: IFont.VerticalAlignment | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
14696
14815
|
/**
|
|
14697
14816
|
* The effect draws a shadow around the text.
|
|
14698
14817
|
*
|
|
@@ -14700,6 +14819,10 @@ export declare interface IStyledFont {
|
|
|
14700
14819
|
* Not rendered by Excel or SheetXL.
|
|
14701
14820
|
*/
|
|
14702
14821
|
getShadow(): boolean;
|
|
14822
|
+
/**
|
|
14823
|
+
* @see {@link IStyledFont.setShadow}
|
|
14824
|
+
*/
|
|
14825
|
+
setShadow(shadow: boolean | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
14703
14826
|
/**
|
|
14704
14827
|
* The effect draws the text as an outline.
|
|
14705
14828
|
*
|
|
@@ -14707,6 +14830,10 @@ export declare interface IStyledFont {
|
|
|
14707
14830
|
* Not rendered by Excel or SheetXL.
|
|
14708
14831
|
*/
|
|
14709
14832
|
getOutline(): boolean;
|
|
14833
|
+
/**
|
|
14834
|
+
* @see {@link IStyledFont.setOutline}
|
|
14835
|
+
*/
|
|
14836
|
+
setOutline(outline: boolean | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
14710
14837
|
/**
|
|
14711
14838
|
* The effect extends or stretches out the text.
|
|
14712
14839
|
*
|
|
@@ -14714,6 +14841,10 @@ export declare interface IStyledFont {
|
|
|
14714
14841
|
* Not rendered by Excel or SheetXL.
|
|
14715
14842
|
*/
|
|
14716
14843
|
getExtend(): boolean;
|
|
14844
|
+
/**
|
|
14845
|
+
* @see {@link IStyledFont.setExtend}
|
|
14846
|
+
*/
|
|
14847
|
+
setExtend(extend: boolean | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
14717
14848
|
/**
|
|
14718
14849
|
* Returns `true` if the font is either a superscript or a subscript.
|
|
14719
14850
|
*/
|
|
@@ -15648,10 +15779,22 @@ export declare interface ITextBoxAlignment {
|
|
|
15648
15779
|
* Types of horizontal alignment.
|
|
15649
15780
|
*/
|
|
15650
15781
|
getHorizontal(): ITextFrame.HorizontalAlignment;
|
|
15782
|
+
/**
|
|
15783
|
+
* Sets the horizontal alignment
|
|
15784
|
+
*
|
|
15785
|
+
* @param horizontal The horizontal alignment
|
|
15786
|
+
*/
|
|
15787
|
+
setHorizontal(horizontal: ITextFrame.HorizontalAlignment | null, options?: IStyle.UpdateOptions): ITextBoxAlignment;
|
|
15651
15788
|
/**
|
|
15652
15789
|
* Types of horizontal alignment.
|
|
15653
15790
|
*/
|
|
15654
15791
|
getVertical(): ITextFrame.VerticalAlignment;
|
|
15792
|
+
/**
|
|
15793
|
+
* Sets the vertical alignment
|
|
15794
|
+
*
|
|
15795
|
+
* @param vertical The vertical alignment
|
|
15796
|
+
*/
|
|
15797
|
+
setVertical(vertical: ITextFrame.VerticalAlignment | null, options?: IStyle.UpdateOptions): ITextBoxAlignment;
|
|
15655
15798
|
/**
|
|
15656
15799
|
* An integer value, where an increment of 1 represents 3 spaces.
|
|
15657
15800
|
* Indicates the number of spaces (of the normal style font) of indentation for text in a cell.
|
|
@@ -15660,34 +15803,76 @@ export declare interface ITextBoxAlignment {
|
|
|
15660
15803
|
* This is only applied for alignments: left, right, and distributed.
|
|
15661
15804
|
*/
|
|
15662
15805
|
getIndent(): number;
|
|
15806
|
+
/**
|
|
15807
|
+
* Sets the indentation
|
|
15808
|
+
*
|
|
15809
|
+
* @param indent The indentation
|
|
15810
|
+
*/
|
|
15811
|
+
setIndent(indent: number | null, options?: IStyle.UpdateOptions): ITextBoxAlignment;
|
|
15663
15812
|
/**
|
|
15664
15813
|
* Indicates additional number of spaces of indentation to adjust for text in a cell.
|
|
15665
15814
|
*/
|
|
15666
15815
|
getRelativeIndent(): number;
|
|
15816
|
+
/**
|
|
15817
|
+
* Sets the relative indentation
|
|
15818
|
+
*
|
|
15819
|
+
* @param relativeIndent The relative indentation
|
|
15820
|
+
*/
|
|
15821
|
+
setRelativeIndent(relativeIndent: number | null, options?: IStyle.UpdateOptions): ITextBoxAlignment;
|
|
15667
15822
|
/**
|
|
15668
15823
|
* The behavior for text that does not fit with the cell bounds.
|
|
15669
15824
|
* @see
|
|
15670
15825
|
* {@link ITextFrame.Overflow}
|
|
15671
15826
|
*/
|
|
15672
15827
|
getOverflow(): ITextFrame.Overflow;
|
|
15828
|
+
/**
|
|
15829
|
+
* Sets the overflow behavior
|
|
15830
|
+
*
|
|
15831
|
+
* @param overflow The overflow behavior
|
|
15832
|
+
*/
|
|
15833
|
+
setOverflow(overflow: ITextFrame.Overflow | null, options?: IStyle.UpdateOptions): ITextBoxAlignment;
|
|
15673
15834
|
/**
|
|
15674
15835
|
* Rotation of the text.
|
|
15675
15836
|
* @defaultValue 0
|
|
15676
15837
|
*/
|
|
15677
15838
|
getRotation(): number;
|
|
15839
|
+
/**
|
|
15840
|
+
* Sets the rotation
|
|
15841
|
+
*
|
|
15842
|
+
* @param rotation The rotation
|
|
15843
|
+
*/
|
|
15844
|
+
setRotation(rotation: number | null, options?: IStyle.UpdateOptions): ITextBoxAlignment;
|
|
15678
15845
|
/**
|
|
15679
15846
|
* If the text should stack vertically instead of horizontally.
|
|
15680
15847
|
*/
|
|
15681
15848
|
getStacked(): boolean;
|
|
15849
|
+
/**
|
|
15850
|
+
* Sets the stacked
|
|
15851
|
+
*
|
|
15852
|
+
* @param stacked The stacked
|
|
15853
|
+
*/
|
|
15854
|
+
setStacked(stacked: boolean | null, options?: IStyle.UpdateOptions): ITextBoxAlignment;
|
|
15682
15855
|
/**
|
|
15683
15856
|
* If the cells justified or distributed alignment should be used on the last line of text.
|
|
15684
15857
|
* (This is typical for East Asian alignments but not typical in other contexts.)
|
|
15685
15858
|
*/
|
|
15686
15859
|
getJustifyLastLine(): boolean;
|
|
15860
|
+
/**
|
|
15861
|
+
* Sets the justified last line
|
|
15862
|
+
*
|
|
15863
|
+
* @param justifyLastLine The justified last line
|
|
15864
|
+
*/
|
|
15865
|
+
setJustifyLastLine(justifyLastLine: boolean | null, options?: IStyle.UpdateOptions): ITextBoxAlignment;
|
|
15687
15866
|
/**
|
|
15688
15867
|
* The direction the cell is being read.
|
|
15689
15868
|
*/
|
|
15690
15869
|
getReadingDirection(): ITextFrame.ReadingDirection;
|
|
15870
|
+
/**
|
|
15871
|
+
* Sets the reading direction
|
|
15872
|
+
*
|
|
15873
|
+
* @param readingDirection The reading direction
|
|
15874
|
+
*/
|
|
15875
|
+
setReadingDirection(readingDirection: ITextFrame.ReadingDirection | null, options?: IStyle.UpdateOptions): ITextBoxAlignment;
|
|
15691
15876
|
toJSON(): ITextBoxAlignment.JSON;
|
|
15692
15877
|
/**
|
|
15693
15878
|
* For runtime type checking.
|