@sheetxl/sdk 0.6.16 → 0.6.18
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/{DjmtCi-hr6IRzsjv.cjs → B0zohbxoMFX_YyxY.cjs} +1 -1
- package/browser/cjs/BZT_rYid0KGk6sZI.cjs +54 -0
- package/browser/cjs/{BoWPwuGQGZ9LeAwf.cjs → BcL0Co5Do0G0Rj5q.cjs} +1 -1
- package/browser/cjs/{DwQjplri0TLmw6Dr.cjs → BrglwewnyDRuLNWu.cjs} +1 -1
- package/browser/cjs/{PxEF95ZwIuQT4wGv.cjs → C14oRLcJ8yOb9CWe.cjs} +1 -1
- package/browser/cjs/{C0A1ZSbqhJpcZBXL.cjs → CLBDa9p40Rz5OGjx.cjs} +1 -1
- package/browser/cjs/{eN9d-xodim4o2fVd.cjs → CQieV6dfbzhE2w7T.cjs} +1 -1
- package/browser/cjs/{Cv6raToEFuWdFg1l.cjs → CQvAuEtmtwQxq-I1.cjs} +1 -1
- package/browser/cjs/{C8JMdl2QLUqigZSp.cjs → CgdCEbzcF7rIXt8W.cjs} +1 -1
- package/browser/cjs/{_lYekKV2drbqLkab.cjs → Ckf0d3wir_sWEI3T.cjs} +1 -1
- package/browser/cjs/{pIJzNhe-hEXBTLKA.cjs → D6_FJSzGbDbkYdyY.cjs} +1 -1
- package/browser/cjs/{GFeCgzGuw5cNzIuz.cjs → DNX1XrhRaOAey1_z.cjs} +1 -1
- package/browser/cjs/{kFY5EKAHOvJcdTHU.cjs → DNusCtUnYhRhmQL0.cjs} +1 -1
- package/browser/cjs/{D3PLUvJebJwixno3.cjs → DONdvNCr8LuMIIS7.cjs} +1 -1
- package/browser/cjs/{DtX35zG23d6nmxHr.cjs → DQl3xEXMQLpJnYPV.cjs} +1 -1
- package/browser/cjs/{Cz3DPikv1uHxmHQO.cjs → DRzdCOrAOTMPb1ss.cjs} +1 -1
- package/browser/cjs/{C2INdehyVPgz1Jzb.cjs → DogX-tehVlVU2SW9.cjs} +3 -3
- package/browser/cjs/{BmCsHRYZD4YndYs4.cjs → DsmkViXfzL4G6X6W.cjs} +1 -1
- package/browser/cjs/{k-_Yko2e0fYeYSMz.cjs → FZmhteeUwe0eSNtL.cjs} +2 -2
- package/browser/cjs/{U1dm1Xm2kdqUeD6H.cjs → ReNBPGr_5_vvZUCh.cjs} +1 -1
- package/browser/cjs/{DQ_XM6muCimf60e7.cjs → VfcBbuxKX8ZadDv9.cjs} +1 -1
- package/browser/cjs/{XwMJLG3fnrWb7Kry.cjs → XUcgaBiwOYwhUqws.cjs} +1 -1
- package/browser/cjs/{CDTddlrrNAPAzT-b.cjs → euQrUNlCF6FVGuYC.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{Cr8vGsKEARWkuGbH.cjs → qqAOZx9mCg-TnSrl.cjs} +1 -1
- package/browser/cjs/{Pld4bpB-RO-4zCrM.cjs → s2MQ3DsuTavQ9dN-.cjs} +2 -2
- package/browser/cjs/{DWgPdK1bXl_mpisL.cjs → vcpWwpZjtrXPzI50.cjs} +1 -1
- package/browser/cjs/{Chn_rXue5ZRT7QzO.cjs → xxCGv_gVXM4DTEoK.cjs} +1 -1
- package/browser/esm/{DMcVQ-BL4bA_OnOG.mjs → -DwlZg9-ZTkwvPlZ.mjs} +1 -1
- package/browser/esm/{CwlYf8-SIFOPR2bo.mjs → B4RYxdPPBEHNCkI3.mjs} +1 -1
- package/browser/esm/{CvL_oKmyxaK1QYqk.mjs → B5eOPZ5RRHL262ea.mjs} +1 -1
- package/browser/esm/{B29IdOudbMkKhUWx.mjs → B8lkad2rSCLUdG9n.mjs} +1 -1
- package/browser/esm/{DxkU0bhpXyM3VNYS.mjs → BCOF7PqfsSRVZVul.mjs} +1 -1
- package/browser/esm/{CEMahAUp4yeaRZyO.mjs → BDNcayNfFPm-8zAk.mjs} +1 -1
- package/{node/esm/COVt6Go-h1KJ_SYL.mjs → browser/esm/BQ3vUttTMZM0L93K.mjs} +1 -1
- package/{node/esm/CaJltcT8q2Qt4tOb.mjs → browser/esm/BQlpN8RH7fYEKRtT.mjs} +1 -1
- package/browser/esm/{rG8mrr2nckUu5hbw.mjs → BUAJHem9junUyoVX.mjs} +3 -3
- package/{node/esm/NussRz_Lfu19nTDO.mjs → browser/esm/BUi_q1ySFjLbihcH.mjs} +1 -1
- package/{node/esm/Cu9gRGU_8MCajq2K.mjs → browser/esm/BVKxfHTrt_Mr9LKV.mjs} +1 -1
- package/browser/esm/{DssDWFBai4LRnGyo.mjs → BXb3b0oo2bfzftCe.mjs} +1 -1
- package/browser/esm/{iMtWYxITH-mK8yV4.mjs → B_vPhfIkq3qtt3K4.mjs} +1 -1
- package/browser/esm/{qYVVqNYgMTjgxSFA.mjs → BgeQl8RviunaaWGM.mjs} +2 -2
- package/browser/esm/{CMtecoWQQB5QJglr.mjs → BjVsHHeGEOCJ5hVk.mjs} +2 -2
- package/{node/esm/ktpMAehXfPbHpZxp.mjs → browser/esm/Bl4x8NGhwNSCEvq9.mjs} +1 -1
- package/browser/esm/{DpNBrNeVIhiQtG7J.mjs → Bo4HpDJSEwBn0sv4.mjs} +1 -1
- package/browser/esm/{BXhWgBqyW7vVSwCE.mjs → C0FiKljzxZosroIB.mjs} +1 -1
- package/browser/esm/{BhlYeywnKEKSsVBp.mjs → CNxnsGNSSTehLI1r.mjs} +1 -1
- package/{node/esm/DdQcQ9S4ZGjE5io0.mjs → browser/esm/Ccv_vRwixLeC7RdZ.mjs} +1 -1
- package/browser/esm/{DXM-_v3PvFbM2njM.mjs → CkGWLqyLTaWRjjk9.mjs} +1 -1
- package/{node/esm/DXsvBOTVsF5m0ROF.mjs → browser/esm/DHPwiZkatoCILg96.mjs} +1 -1
- package/browser/esm/DHc-VtJT0L6s243f.mjs +23325 -0
- package/browser/esm/{CoqdATBvO4OVNwUE.mjs → DXLxPBEhgfxqn6N4.mjs} +1 -1
- package/browser/esm/{D6BieKg9I2zdEnme.mjs → Dq8N-lIPRFwDnnUA.mjs} +1 -1
- package/{node/esm/Ce3zqAUmE9OyqGvt.mjs → browser/esm/DqBNVvFKQxSMwMNs.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/{node/esm/DL8H1TIz4eYTJlVj.mjs → browser/esm/lz0-1WdmlC0gLtak.mjs} +1 -1
- package/node/esm/{DMcVQ-BL4bA_OnOG.mjs → -DwlZg9-ZTkwvPlZ.mjs} +1 -1
- package/node/esm/{DjzRVBemDPA3DN_8.mjs → 2H0pff69AyPZGpAO.mjs} +1 -1
- package/node/esm/{BqqNCz_koCAYJ3Kx.mjs → B0VjzdpK5PQFtjEP.mjs} +1 -1
- package/node/esm/{CvL_oKmyxaK1QYqk.mjs → B5eOPZ5RRHL262ea.mjs} +1 -1
- package/node/esm/{B29IdOudbMkKhUWx.mjs → B8lkad2rSCLUdG9n.mjs} +1 -1
- package/node/esm/{CEMahAUp4yeaRZyO.mjs → BDNcayNfFPm-8zAk.mjs} +1 -1
- package/{browser/esm/COVt6Go-h1KJ_SYL.mjs → node/esm/BQ3vUttTMZM0L93K.mjs} +1 -1
- package/{browser/esm/CaJltcT8q2Qt4tOb.mjs → node/esm/BQlpN8RH7fYEKRtT.mjs} +1 -1
- package/node/esm/{PWC-IfMc5cNOks4D.mjs → BSfu58pAZZDNQg3w.mjs} +2 -2
- package/{browser/esm/NussRz_Lfu19nTDO.mjs → node/esm/BUi_q1ySFjLbihcH.mjs} +1 -1
- package/{browser/esm/Cu9gRGU_8MCajq2K.mjs → node/esm/BVKxfHTrt_Mr9LKV.mjs} +1 -1
- package/node/esm/{iMtWYxITH-mK8yV4.mjs → B_vPhfIkq3qtt3K4.mjs} +1 -1
- package/node/esm/{Dxs2OFUMD57Oo_AB.mjs → Bfex2e2cpTMCbUdz.mjs} +1 -1
- package/{browser/esm/ktpMAehXfPbHpZxp.mjs → node/esm/Bl4x8NGhwNSCEvq9.mjs} +1 -1
- package/node/esm/{DpNBrNeVIhiQtG7J.mjs → Bo4HpDJSEwBn0sv4.mjs} +1 -1
- package/node/esm/{C61hKIygirc2mSxV.mjs → C7TE2FuzcKezSHTI.mjs} +1 -1
- package/node/esm/{CLXpyIa1G-kRzIzH.mjs → CQpuLeCV2YlYuGV5.mjs} +1 -1
- package/{browser/esm/DdQcQ9S4ZGjE5io0.mjs → node/esm/Ccv_vRwixLeC7RdZ.mjs} +1 -1
- package/node/esm/{BoURPosx6Uvnr7bI.mjs → Ck8VpGt0yQVrOQNB.mjs} +1 -1
- package/node/esm/{DXM-_v3PvFbM2njM.mjs → CkGWLqyLTaWRjjk9.mjs} +1 -1
- package/{browser/esm/DXsvBOTVsF5m0ROF.mjs → node/esm/DHPwiZkatoCILg96.mjs} +1 -1
- package/node/esm/{0VNBUAjGhg3IHPRC.mjs → DRMIiCGl6hiPlgJc.mjs} +1 -1
- package/{browser/esm/Ce3zqAUmE9OyqGvt.mjs → node/esm/DqBNVvFKQxSMwMNs.mjs} +1 -1
- package/node/esm/{Bj_liro3wEoofx_s.mjs → L2939vUK7F6NFIof.mjs} +1 -1
- package/node/esm/index.mjs +3203 -3109
- package/{browser/esm/DL8H1TIz4eYTJlVj.mjs → node/esm/lz0-1WdmlC0gLtak.mjs} +1 -1
- package/package.json +4 -4
- package/types/index.d.ts +245 -32
- package/types/scripting.d.ts +337 -53
- 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.18
|
|
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.18",
|
|
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.18",
|
|
35
|
+
"@sheetxl/scripting": "^0.6.18",
|
|
36
|
+
"@sheetxl/utils": "^0.6.18",
|
|
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
|
*/
|
|
@@ -2188,6 +2200,10 @@ export declare namespace IBorder {
|
|
|
2188
2200
|
* Modifiers describe a partial list of properties that can be set with values or shorthand strings.
|
|
2189
2201
|
*/
|
|
2190
2202
|
export type Modifiers = Partial<IBorder.Properties>;
|
|
2203
|
+
/**
|
|
2204
|
+
* Options for updating a border.
|
|
2205
|
+
*/
|
|
2206
|
+
export type Update = IBorder | Modifiers | string | null;
|
|
2191
2207
|
/**
|
|
2192
2208
|
* JSON representation of a border.
|
|
2193
2209
|
*/
|
|
@@ -2209,7 +2225,7 @@ export declare interface IBorder {
|
|
|
2209
2225
|
*
|
|
2210
2226
|
* @param edge The border edge.
|
|
2211
2227
|
*/
|
|
2212
|
-
setLeft(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.
|
|
2228
|
+
setLeft(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.Properties> | string | null, options?: IStyle.UpdateOptions): IBorder;
|
|
2213
2229
|
/**
|
|
2214
2230
|
* @returns The top border.
|
|
2215
2231
|
*/
|
|
@@ -2219,17 +2235,17 @@ export declare interface IBorder {
|
|
|
2219
2235
|
*
|
|
2220
2236
|
* @param edge The border edge.
|
|
2221
2237
|
*/
|
|
2222
|
-
setTop(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.
|
|
2238
|
+
setTop(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.Properties> | string | null, options?: IStyle.UpdateOptions): IBorder;
|
|
2223
2239
|
/**
|
|
2224
2240
|
* @returns The right border.
|
|
2225
2241
|
*/
|
|
2226
2242
|
getRight(): IBorder.IStroke;
|
|
2227
2243
|
/**
|
|
2228
|
-
* Sets the
|
|
2244
|
+
* Sets the right border.
|
|
2229
2245
|
*
|
|
2230
2246
|
* @param edge The border edge.
|
|
2231
2247
|
*/
|
|
2232
|
-
|
|
2248
|
+
setRight(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.Properties> | string | null, options?: IStyle.UpdateOptions): IBorder;
|
|
2233
2249
|
/**
|
|
2234
2250
|
* @returns The bottom border.
|
|
2235
2251
|
*/
|
|
@@ -2239,7 +2255,7 @@ export declare interface IBorder {
|
|
|
2239
2255
|
*
|
|
2240
2256
|
* @param edge The border edge.
|
|
2241
2257
|
*/
|
|
2242
|
-
setBottom(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.
|
|
2258
|
+
setBottom(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.Properties> | string | null, options?: IStyle.UpdateOptions): IBorder;
|
|
2243
2259
|
/**
|
|
2244
2260
|
* @returns The diagonalUp border.
|
|
2245
2261
|
*/
|
|
@@ -2249,7 +2265,7 @@ export declare interface IBorder {
|
|
|
2249
2265
|
*
|
|
2250
2266
|
* @param edge The border edge.
|
|
2251
2267
|
*/
|
|
2252
|
-
setDiagonalUp(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.
|
|
2268
|
+
setDiagonalUp(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.Properties> | string | null, options?: IStyle.UpdateOptions): IBorder;
|
|
2253
2269
|
/**
|
|
2254
2270
|
* @returns The diagonalDown border.
|
|
2255
2271
|
*/
|
|
@@ -2259,7 +2275,7 @@ export declare interface IBorder {
|
|
|
2259
2275
|
*
|
|
2260
2276
|
* @param edge The border edge.
|
|
2261
2277
|
*/
|
|
2262
|
-
setDiagonalDown(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.StrokeProperties> | string | null, options?: IStyle.UpdateOptions): IBorder
|
|
2278
|
+
setDiagonalDown(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.StrokeProperties> | string | null, options?: IStyle.UpdateOptions): IBorder;
|
|
2263
2279
|
/**
|
|
2264
2280
|
* If there are any borders that are not none.
|
|
2265
2281
|
*/
|
|
@@ -4348,11 +4364,10 @@ export declare interface ICellRange {
|
|
|
4348
4364
|
*/
|
|
4349
4365
|
getValue(options?: ICellRange.GetValuesOptions): Scalar | JSScalar;
|
|
4350
4366
|
/**
|
|
4351
|
-
* Returns the style for the
|
|
4367
|
+
* Returns the style for the ranges.
|
|
4352
4368
|
*
|
|
4353
|
-
* @
|
|
4354
|
-
*
|
|
4355
|
-
* set values work for the entire range.
|
|
4369
|
+
* @see
|
|
4370
|
+
* {@link ICellRange.getStyle}
|
|
4356
4371
|
*/
|
|
4357
4372
|
getStyle(): IStyle;
|
|
4358
4373
|
/**
|
|
@@ -4676,14 +4691,6 @@ export declare interface ICellRange {
|
|
|
4676
4691
|
* @returns Current `ICellRange`.
|
|
4677
4692
|
*/
|
|
4678
4693
|
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
4694
|
/**
|
|
4688
4695
|
* Returns an iterator of ICells that match the results.
|
|
4689
4696
|
*
|
|
@@ -5849,9 +5856,13 @@ export declare interface ICellRanges {
|
|
|
5849
5856
|
*/
|
|
5850
5857
|
getSheet(): ISheet;
|
|
5851
5858
|
/**
|
|
5852
|
-
*
|
|
5859
|
+
* Returns the style for the range.
|
|
5860
|
+
*
|
|
5861
|
+
* @remarks
|
|
5862
|
+
* When querying the style the values will always be for the top left. However the
|
|
5863
|
+
* set values work for the entire range.
|
|
5853
5864
|
*/
|
|
5854
|
-
|
|
5865
|
+
getStyle(): IStyle;
|
|
5855
5866
|
/**
|
|
5856
5867
|
* {@inheritDoc ICellRange.find}
|
|
5857
5868
|
*/
|
|
@@ -8150,6 +8161,14 @@ export declare namespace IFill {
|
|
|
8150
8161
|
*/
|
|
8151
8162
|
type: IFill.Type;
|
|
8152
8163
|
}
|
|
8164
|
+
/**
|
|
8165
|
+
* Modifiers describe a partial list of properties that can be set with values or shorthand strings.
|
|
8166
|
+
*/
|
|
8167
|
+
export type Modifiers = Partial<IFill.Properties>;
|
|
8168
|
+
/**
|
|
8169
|
+
* Options for updating a fill.
|
|
8170
|
+
*/
|
|
8171
|
+
export type Update = IFill | Modifiers | string | null;
|
|
8153
8172
|
/**
|
|
8154
8173
|
* A JSON representation useful for persistence.
|
|
8155
8174
|
*/
|
|
@@ -8186,6 +8205,12 @@ export declare namespace IFill {
|
|
|
8186
8205
|
* Returns the color of the fill.
|
|
8187
8206
|
*/
|
|
8188
8207
|
getColor(): IColor;
|
|
8208
|
+
/**
|
|
8209
|
+
* Sets the stroke color.
|
|
8210
|
+
*
|
|
8211
|
+
* @param color The stroke color.
|
|
8212
|
+
*/
|
|
8213
|
+
setColor(color: IColor.Serializable | null, options?: IStyle.UpdateOptions): IFill.ISolid;
|
|
8189
8214
|
}
|
|
8190
8215
|
export interface SolidProperties<C = IColor.Serializable> extends IFill.Properties {
|
|
8191
8216
|
/**
|
|
@@ -8311,19 +8336,46 @@ export declare namespace IFill {
|
|
|
8311
8336
|
* * This must be at least two stops.
|
|
8312
8337
|
*/
|
|
8313
8338
|
getStops(): IGradientStop[];
|
|
8339
|
+
/**
|
|
8340
|
+
* Sets the gradient stops.
|
|
8341
|
+
*
|
|
8342
|
+
* @param stops The gradient stops.
|
|
8343
|
+
*/
|
|
8344
|
+
setStops(stops: (IGradientStop | IColor.Serializable | null)[], options?: IStyle.UpdateOptions): IFill.IGradient;
|
|
8314
8345
|
/**
|
|
8315
8346
|
* The type of gradient.
|
|
8316
8347
|
* @defaultValue GradientType.Linear
|
|
8317
8348
|
*/
|
|
8318
8349
|
getGradientType(): IFill.GradientType;
|
|
8350
|
+
/**
|
|
8351
|
+
* Sets the gradient type.
|
|
8352
|
+
*
|
|
8353
|
+
* @param type The gradient type.
|
|
8354
|
+
*/
|
|
8355
|
+
setGradientType(type: IFill.GradientType | null, options?: IStyle.UpdateOptions): IFill.IGradient;
|
|
8319
8356
|
/**
|
|
8320
8357
|
* The angle of the gradient in degrees if gradient type is linear.
|
|
8321
8358
|
*/
|
|
8322
8359
|
getAngle(): number;
|
|
8360
|
+
/**
|
|
8361
|
+
* Sets the rotation
|
|
8362
|
+
*
|
|
8363
|
+
* @param angle The angle
|
|
8364
|
+
*/
|
|
8365
|
+
setAngle(angle: number | null, options?: IStyle.UpdateOptions): IFill.IGradient;
|
|
8323
8366
|
/**
|
|
8324
8367
|
* Used for path and circular gradients.
|
|
8325
8368
|
*/
|
|
8326
8369
|
getFillTo(): Rectangle;
|
|
8370
|
+
/**
|
|
8371
|
+
* Sets the fill area for the gradient.
|
|
8372
|
+
*
|
|
8373
|
+
* @param fillTo The fill area.
|
|
8374
|
+
*/
|
|
8375
|
+
setFillTo(fillTo: Rectangle | null, options?: IStyle.UpdateOptions): IFill.IGradient;
|
|
8376
|
+
/**
|
|
8377
|
+
* Converts the gradient fill to a JSON representation.
|
|
8378
|
+
*/
|
|
8327
8379
|
toJSON(): GradientJSON;
|
|
8328
8380
|
}
|
|
8329
8381
|
export interface GradientJSON extends GradientProperties<string> {
|
|
@@ -8340,14 +8392,35 @@ export declare namespace IFill {
|
|
|
8340
8392
|
* The foreground color for the pattern.
|
|
8341
8393
|
*/
|
|
8342
8394
|
getForeground(): IColor;
|
|
8395
|
+
/**
|
|
8396
|
+
* Sets the foreground color.
|
|
8397
|
+
*
|
|
8398
|
+
* @param color The foreground color.
|
|
8399
|
+
*/
|
|
8400
|
+
setForeground(color: IColor.Serializable | null, options?: IStyle.UpdateOptions): IFill.IPattern;
|
|
8343
8401
|
/**
|
|
8344
8402
|
* The background color for the pattern.
|
|
8345
8403
|
*/
|
|
8346
8404
|
getBackground(): IColor;
|
|
8405
|
+
/**
|
|
8406
|
+
* Sets the background color.
|
|
8407
|
+
*
|
|
8408
|
+
* @param color The background color.
|
|
8409
|
+
*/
|
|
8410
|
+
setBackground(color: IColor.Serializable | null, options?: IStyle.UpdateOptions): IFill.IPattern;
|
|
8347
8411
|
/**
|
|
8348
8412
|
* The type of pattern used.
|
|
8349
8413
|
*/
|
|
8350
8414
|
getPatternType(): IFill.BuiltInSheetPattern;
|
|
8415
|
+
/**
|
|
8416
|
+
* Sets the pattern type.
|
|
8417
|
+
*
|
|
8418
|
+
* @param type The pattern type.
|
|
8419
|
+
*/
|
|
8420
|
+
setPatternType(type: IFill.BuiltInSheetPattern | null, options?: IStyle.UpdateOptions): IFill.IPattern;
|
|
8421
|
+
/**
|
|
8422
|
+
* Converts the pattern fill to a JSON representation.
|
|
8423
|
+
*/
|
|
8351
8424
|
toJSON(): PatternJSON;
|
|
8352
8425
|
}
|
|
8353
8426
|
export interface PatternProperties<C = IColor.Serializable> extends IFill.Properties {
|
|
@@ -13957,13 +14030,13 @@ export declare interface IStyle {
|
|
|
13957
14030
|
*
|
|
13958
14031
|
* @remarks
|
|
13959
14032
|
* * If a number provided the builtIn numFmtId as defined in OOXML will be used.
|
|
13960
|
-
*
|
|
14033
|
+
* * {@link NumberFormat.Type}
|
|
13961
14034
|
*/
|
|
13962
14035
|
getNumberFormat(): string;
|
|
13963
14036
|
/**
|
|
13964
14037
|
* @see {@link IStyle.getNumberFormat}
|
|
13965
14038
|
*/
|
|
13966
|
-
setNumberFormat(numFmt: string | null, options?: IStyle.UpdateOptions):
|
|
14039
|
+
setNumberFormat(numFmt: string | null, options?: IStyle.UpdateOptions): IStyle;
|
|
13967
14040
|
/**
|
|
13968
14041
|
* A boolean value indicating whether the text string in a cell should be prefixed by a single quote mark (e.g., 'text).
|
|
13969
14042
|
* In these cases, the quote is not stored in the Shared Strings Part.
|
|
@@ -13972,7 +14045,7 @@ export declare interface IStyle {
|
|
|
13972
14045
|
/**
|
|
13973
14046
|
* @see {@link IStyle.getQuotePrefix}
|
|
13974
14047
|
*/
|
|
13975
|
-
setQuotePrefix(quotePrefix: boolean | null, options?: IStyle.UpdateOptions):
|
|
14048
|
+
setQuotePrefix(quotePrefix: boolean | null, options?: IStyle.UpdateOptions): IStyle;
|
|
13976
14049
|
/**
|
|
13977
14050
|
* Returns the border style.
|
|
13978
14051
|
*/
|
|
@@ -13986,7 +14059,7 @@ export declare interface IStyle {
|
|
|
13986
14059
|
* @param options Optional configuration for the update.
|
|
13987
14060
|
* @returns The `IBorder` object for further modifications.
|
|
13988
14061
|
*/
|
|
13989
|
-
setBorder(border: IBorder
|
|
14062
|
+
setBorder(border: IBorder.Modifiers, options?: IStyle.UpdateOptions): IStyle;
|
|
13990
14063
|
/**
|
|
13991
14064
|
* Fill properties for the background.
|
|
13992
14065
|
*/
|
|
@@ -14000,7 +14073,7 @@ export declare interface IStyle {
|
|
|
14000
14073
|
* @param options Optional configuration for the update.
|
|
14001
14074
|
* @returns The `IFill` object for further modifications.
|
|
14002
14075
|
*/
|
|
14003
|
-
setFill(fill: IFill
|
|
14076
|
+
setFill(fill: IFill.Update, options?: IStyle.UpdateOptions): IStyle;
|
|
14004
14077
|
/**
|
|
14005
14078
|
* Returns the alignment for the style.
|
|
14006
14079
|
*/
|
|
@@ -14014,7 +14087,7 @@ export declare interface IStyle {
|
|
|
14014
14087
|
* @param options Optional configuration for the update.
|
|
14015
14088
|
* @returns The `ITextFrame.IAlignment` object for further modifications.
|
|
14016
14089
|
*/
|
|
14017
|
-
setAlignment(alignment: ITextFrame.
|
|
14090
|
+
setAlignment(alignment: ITextFrame.Update, options?: IStyle.UpdateOptions): IStyle;
|
|
14018
14091
|
/**
|
|
14019
14092
|
* Returns the font for the style.
|
|
14020
14093
|
*/
|
|
@@ -14028,7 +14101,25 @@ export declare interface IStyle {
|
|
|
14028
14101
|
* @param options Optional configuration for the update.
|
|
14029
14102
|
* @returns The `IStyledFont` object for further modifications.
|
|
14030
14103
|
*/
|
|
14031
|
-
setFont(font: IStyledFont
|
|
14104
|
+
setFont(font: IStyledFont.Update, options?: IStyle.UpdateOptions): IStyle;
|
|
14105
|
+
/**
|
|
14106
|
+
* Returns an instance of the named style that this is derived from.
|
|
14107
|
+
*/
|
|
14108
|
+
getNamed(): IStyle.INamed;
|
|
14109
|
+
/**
|
|
14110
|
+
* Sets the named style that this is derived from.
|
|
14111
|
+
*
|
|
14112
|
+
* @param named The named style to set.
|
|
14113
|
+
*/
|
|
14114
|
+
setNamed(named: string | IStyle.INamed | null, options?: IStyle.UpdateOptions): IStyle;
|
|
14115
|
+
/**
|
|
14116
|
+
* Update many style properties at once.
|
|
14117
|
+
*
|
|
14118
|
+
* @param update {@link IStyle.Update}
|
|
14119
|
+
* @param options {@link IStyle.UpdateOptions}
|
|
14120
|
+
* @returns The `IStyle` for further modifications.
|
|
14121
|
+
*/
|
|
14122
|
+
update(update: IStyle.Update, options?: IStyle.UpdateOptions): IStyle;
|
|
14032
14123
|
/**
|
|
14033
14124
|
* Measure the text using the styling properties
|
|
14034
14125
|
*
|
|
@@ -14065,10 +14156,6 @@ export declare interface IStyle {
|
|
|
14065
14156
|
* @param update Adjustments to the style.
|
|
14066
14157
|
*/
|
|
14067
14158
|
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
14159
|
/**
|
|
14073
14160
|
* Returns `true` if the CellStyle is the normal style
|
|
14074
14161
|
*/
|
|
@@ -14643,23 +14730,43 @@ export declare interface IStyledFont {
|
|
|
14643
14730
|
* marshalled into their correct property.
|
|
14644
14731
|
*/
|
|
14645
14732
|
getFamily(): string;
|
|
14733
|
+
/**
|
|
14734
|
+
* @see {@link IStyledFont.getFamily}
|
|
14735
|
+
*/
|
|
14736
|
+
setFamily(family: string | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
14646
14737
|
/**
|
|
14647
14738
|
* A list of fonts and their fallbacks. These can also be provided in the fontFamily attribute but will
|
|
14648
14739
|
* be normalized to here.
|
|
14649
14740
|
*/
|
|
14650
14741
|
getFallbacks(): string[];
|
|
14742
|
+
/**
|
|
14743
|
+
* @see {@link IStyledFont.setFallbacks}
|
|
14744
|
+
*/
|
|
14745
|
+
setFallbacks(fallbacks: string[] | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
14651
14746
|
/**
|
|
14652
14747
|
* Font size is either a number in points or a string that can be converted such as '14px', '1.5em'.
|
|
14653
14748
|
*/
|
|
14654
14749
|
getSize(): number;
|
|
14750
|
+
/**
|
|
14751
|
+
* @see {@link IStyledFont.setSize}
|
|
14752
|
+
*/
|
|
14753
|
+
setSize(size: number | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
14655
14754
|
/**
|
|
14656
14755
|
* The weight of the characters.
|
|
14657
14756
|
*/
|
|
14658
14757
|
getWeight(): number;
|
|
14758
|
+
/**
|
|
14759
|
+
* @see {@link IStyledFont.setWeight}
|
|
14760
|
+
*/
|
|
14761
|
+
setWeight(weight: number | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
14659
14762
|
/**
|
|
14660
14763
|
* @default `IFont.Style.Normal`
|
|
14661
14764
|
*/
|
|
14662
14765
|
getStyle(): IFont.Style;
|
|
14766
|
+
/**
|
|
14767
|
+
* @see {@link IStyledFont.setStyle}
|
|
14768
|
+
*/
|
|
14769
|
+
setStyle(style: IFont.Style | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
14663
14770
|
/**
|
|
14664
14771
|
* The text color.
|
|
14665
14772
|
*
|
|
@@ -14667,25 +14774,45 @@ export declare interface IStyledFont {
|
|
|
14667
14774
|
* Currently only solid fill is supported but this will be expanded to allow all fill types similar to DrawML.
|
|
14668
14775
|
*/
|
|
14669
14776
|
getFill(): IColor;
|
|
14777
|
+
/**
|
|
14778
|
+
* @see {@link IStyledFont.setFill}
|
|
14779
|
+
*/
|
|
14780
|
+
setFill(fill: IColor | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
14670
14781
|
/**
|
|
14671
14782
|
* Adds or removes additional spacing between the characters.
|
|
14672
14783
|
*/
|
|
14673
14784
|
getLetterSpacing(): number;
|
|
14785
|
+
/**
|
|
14786
|
+
* @see {@link IStyledFont.setLetterSpacing}
|
|
14787
|
+
*/
|
|
14788
|
+
setLetterSpacing(letterSpacing: number | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
14674
14789
|
/**
|
|
14675
14790
|
* Sets the underline style. If true defaults to single. If false or null defaults to none.
|
|
14676
14791
|
*
|
|
14677
14792
|
* @default `IFont.UnderlineStyle.None`
|
|
14678
14793
|
*/
|
|
14679
14794
|
getUnderline(): IFont.UnderlineStyle;
|
|
14795
|
+
/**
|
|
14796
|
+
* @see {@link IStyledFont.setUnderline}
|
|
14797
|
+
*/
|
|
14798
|
+
setUnderline(underline: IFont.UnderlineStyle | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
14680
14799
|
/**
|
|
14681
14800
|
* The effect draws the text with a line through it.
|
|
14682
14801
|
*/
|
|
14683
14802
|
getStrike(): boolean;
|
|
14803
|
+
/**
|
|
14804
|
+
* @see {@link IStyledFont.setStrike}
|
|
14805
|
+
*/
|
|
14806
|
+
setStrike(strike: boolean | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
14684
14807
|
/**
|
|
14685
14808
|
* Defines the font scheme to use.
|
|
14686
14809
|
* @default `IFont.Scheme.Minor`
|
|
14687
14810
|
*/
|
|
14688
14811
|
getScheme(): IFont.Scheme;
|
|
14812
|
+
/**
|
|
14813
|
+
* @see {@link IStyledFont.setScheme}
|
|
14814
|
+
*/
|
|
14815
|
+
setScheme(scheme: IFont.Scheme | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
14689
14816
|
/**
|
|
14690
14817
|
* Returns the vertical alignment of the text within a text line.
|
|
14691
14818
|
*
|
|
@@ -14693,6 +14820,10 @@ export declare interface IStyledFont {
|
|
|
14693
14820
|
* If the IFont.VerticalAlignment is superscript or subscript then the font size should also render smaller.
|
|
14694
14821
|
*/
|
|
14695
14822
|
getVerticalAlignment(): IFont.VerticalAlignment;
|
|
14823
|
+
/**
|
|
14824
|
+
* @see {@link IStyledFont.setVerticalAlignment}
|
|
14825
|
+
*/
|
|
14826
|
+
setVerticalAlignment(verticalAlignment: IFont.VerticalAlignment | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
14696
14827
|
/**
|
|
14697
14828
|
* The effect draws a shadow around the text.
|
|
14698
14829
|
*
|
|
@@ -14700,6 +14831,10 @@ export declare interface IStyledFont {
|
|
|
14700
14831
|
* Not rendered by Excel or SheetXL.
|
|
14701
14832
|
*/
|
|
14702
14833
|
getShadow(): boolean;
|
|
14834
|
+
/**
|
|
14835
|
+
* @see {@link IStyledFont.setShadow}
|
|
14836
|
+
*/
|
|
14837
|
+
setShadow(shadow: boolean | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
14703
14838
|
/**
|
|
14704
14839
|
* The effect draws the text as an outline.
|
|
14705
14840
|
*
|
|
@@ -14707,6 +14842,10 @@ export declare interface IStyledFont {
|
|
|
14707
14842
|
* Not rendered by Excel or SheetXL.
|
|
14708
14843
|
*/
|
|
14709
14844
|
getOutline(): boolean;
|
|
14845
|
+
/**
|
|
14846
|
+
* @see {@link IStyledFont.setOutline}
|
|
14847
|
+
*/
|
|
14848
|
+
setOutline(outline: boolean | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
14710
14849
|
/**
|
|
14711
14850
|
* The effect extends or stretches out the text.
|
|
14712
14851
|
*
|
|
@@ -14714,6 +14853,10 @@ export declare interface IStyledFont {
|
|
|
14714
14853
|
* Not rendered by Excel or SheetXL.
|
|
14715
14854
|
*/
|
|
14716
14855
|
getExtend(): boolean;
|
|
14856
|
+
/**
|
|
14857
|
+
* @see {@link IStyledFont.setExtend}
|
|
14858
|
+
*/
|
|
14859
|
+
setExtend(extend: boolean | null, options?: IStyle.UpdateOptions): IStyledFont;
|
|
14717
14860
|
/**
|
|
14718
14861
|
* Returns `true` if the font is either a superscript or a subscript.
|
|
14719
14862
|
*/
|
|
@@ -14779,6 +14922,14 @@ export declare namespace IStyledFont {
|
|
|
14779
14922
|
outline?: boolean;
|
|
14780
14923
|
extend?: boolean;
|
|
14781
14924
|
}
|
|
14925
|
+
/**
|
|
14926
|
+
* Modifiers describe a partial list of properties that can be set with values or shorthand strings.
|
|
14927
|
+
*/
|
|
14928
|
+
export type Modifiers<C = IColor.Serializable> = Partial<IStyledFont.Properties<C>>;
|
|
14929
|
+
/**
|
|
14930
|
+
* Options for updating a font.
|
|
14931
|
+
*/
|
|
14932
|
+
export type Update<C = IColor.Serializable> = IStyledFont | Modifiers<C> | string | null;
|
|
14782
14933
|
export interface JSON extends Properties<string> {
|
|
14783
14934
|
}
|
|
14784
14935
|
}
|
|
@@ -15648,10 +15799,22 @@ export declare interface ITextBoxAlignment {
|
|
|
15648
15799
|
* Types of horizontal alignment.
|
|
15649
15800
|
*/
|
|
15650
15801
|
getHorizontal(): ITextFrame.HorizontalAlignment;
|
|
15802
|
+
/**
|
|
15803
|
+
* Sets the horizontal alignment
|
|
15804
|
+
*
|
|
15805
|
+
* @param horizontal The horizontal alignment
|
|
15806
|
+
*/
|
|
15807
|
+
setHorizontal(horizontal: ITextFrame.HorizontalAlignment | null, options?: IStyle.UpdateOptions): ITextBoxAlignment;
|
|
15651
15808
|
/**
|
|
15652
15809
|
* Types of horizontal alignment.
|
|
15653
15810
|
*/
|
|
15654
15811
|
getVertical(): ITextFrame.VerticalAlignment;
|
|
15812
|
+
/**
|
|
15813
|
+
* Sets the vertical alignment
|
|
15814
|
+
*
|
|
15815
|
+
* @param vertical The vertical alignment
|
|
15816
|
+
*/
|
|
15817
|
+
setVertical(vertical: ITextFrame.VerticalAlignment | null, options?: IStyle.UpdateOptions): ITextBoxAlignment;
|
|
15655
15818
|
/**
|
|
15656
15819
|
* An integer value, where an increment of 1 represents 3 spaces.
|
|
15657
15820
|
* Indicates the number of spaces (of the normal style font) of indentation for text in a cell.
|
|
@@ -15660,34 +15823,76 @@ export declare interface ITextBoxAlignment {
|
|
|
15660
15823
|
* This is only applied for alignments: left, right, and distributed.
|
|
15661
15824
|
*/
|
|
15662
15825
|
getIndent(): number;
|
|
15826
|
+
/**
|
|
15827
|
+
* Sets the indentation
|
|
15828
|
+
*
|
|
15829
|
+
* @param indent The indentation
|
|
15830
|
+
*/
|
|
15831
|
+
setIndent(indent: number | null, options?: IStyle.UpdateOptions): ITextBoxAlignment;
|
|
15663
15832
|
/**
|
|
15664
15833
|
* Indicates additional number of spaces of indentation to adjust for text in a cell.
|
|
15665
15834
|
*/
|
|
15666
15835
|
getRelativeIndent(): number;
|
|
15836
|
+
/**
|
|
15837
|
+
* Sets the relative indentation
|
|
15838
|
+
*
|
|
15839
|
+
* @param relativeIndent The relative indentation
|
|
15840
|
+
*/
|
|
15841
|
+
setRelativeIndent(relativeIndent: number | null, options?: IStyle.UpdateOptions): ITextBoxAlignment;
|
|
15667
15842
|
/**
|
|
15668
15843
|
* The behavior for text that does not fit with the cell bounds.
|
|
15669
15844
|
* @see
|
|
15670
15845
|
* {@link ITextFrame.Overflow}
|
|
15671
15846
|
*/
|
|
15672
15847
|
getOverflow(): ITextFrame.Overflow;
|
|
15848
|
+
/**
|
|
15849
|
+
* Sets the overflow behavior
|
|
15850
|
+
*
|
|
15851
|
+
* @param overflow The overflow behavior
|
|
15852
|
+
*/
|
|
15853
|
+
setOverflow(overflow: ITextFrame.Overflow | null, options?: IStyle.UpdateOptions): ITextBoxAlignment;
|
|
15673
15854
|
/**
|
|
15674
15855
|
* Rotation of the text.
|
|
15675
15856
|
* @defaultValue 0
|
|
15676
15857
|
*/
|
|
15677
15858
|
getRotation(): number;
|
|
15859
|
+
/**
|
|
15860
|
+
* Sets the rotation
|
|
15861
|
+
*
|
|
15862
|
+
* @param rotation The rotation
|
|
15863
|
+
*/
|
|
15864
|
+
setRotation(rotation: number | null, options?: IStyle.UpdateOptions): ITextBoxAlignment;
|
|
15678
15865
|
/**
|
|
15679
15866
|
* If the text should stack vertically instead of horizontally.
|
|
15680
15867
|
*/
|
|
15681
15868
|
getStacked(): boolean;
|
|
15869
|
+
/**
|
|
15870
|
+
* Sets the stacked
|
|
15871
|
+
*
|
|
15872
|
+
* @param stacked The stacked
|
|
15873
|
+
*/
|
|
15874
|
+
setStacked(stacked: boolean | null, options?: IStyle.UpdateOptions): ITextBoxAlignment;
|
|
15682
15875
|
/**
|
|
15683
15876
|
* If the cells justified or distributed alignment should be used on the last line of text.
|
|
15684
15877
|
* (This is typical for East Asian alignments but not typical in other contexts.)
|
|
15685
15878
|
*/
|
|
15686
15879
|
getJustifyLastLine(): boolean;
|
|
15880
|
+
/**
|
|
15881
|
+
* Sets the justified last line
|
|
15882
|
+
*
|
|
15883
|
+
* @param justifyLastLine The justified last line
|
|
15884
|
+
*/
|
|
15885
|
+
setJustifyLastLine(justifyLastLine: boolean | null, options?: IStyle.UpdateOptions): ITextBoxAlignment;
|
|
15687
15886
|
/**
|
|
15688
15887
|
* The direction the cell is being read.
|
|
15689
15888
|
*/
|
|
15690
15889
|
getReadingDirection(): ITextFrame.ReadingDirection;
|
|
15890
|
+
/**
|
|
15891
|
+
* Sets the reading direction
|
|
15892
|
+
*
|
|
15893
|
+
* @param readingDirection The reading direction
|
|
15894
|
+
*/
|
|
15895
|
+
setReadingDirection(readingDirection: ITextFrame.ReadingDirection | null, options?: IStyle.UpdateOptions): ITextBoxAlignment;
|
|
15691
15896
|
toJSON(): ITextBoxAlignment.JSON;
|
|
15692
15897
|
/**
|
|
15693
15898
|
* For runtime type checking.
|
|
@@ -15785,6 +15990,14 @@ export declare namespace ITextFrame {
|
|
|
15785
15990
|
export type Properties = ITextBoxAlignment.Properties;
|
|
15786
15991
|
export type JSON = ITextBoxAlignment.JSON;
|
|
15787
15992
|
}
|
|
15993
|
+
/**
|
|
15994
|
+
* Modifiers describe a partial list of properties that can be set with values or shorthand strings.
|
|
15995
|
+
*/
|
|
15996
|
+
export type Modifiers = Partial<IAlignment.Properties>;
|
|
15997
|
+
/**
|
|
15998
|
+
* Options for updating an IAlignment.
|
|
15999
|
+
*/
|
|
16000
|
+
export type Update = IAlignment | Modifiers | string | null;
|
|
15788
16001
|
export type IAlignment = ITextBoxAlignment;
|
|
15789
16002
|
/**
|
|
15790
16003
|
* Represents a tab stop within a text frame or paragraph.
|