@sheetxl/sdk 0.6.15 → 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.
Files changed (87) hide show
  1. package/browser/cjs/{DEezdLdn55kGultJ.cjs → B0ZRkYe5vXS8AXl5.cjs} +1 -1
  2. package/browser/cjs/{C_JGndrOOobXdWM9.cjs → B8C0qJCXRmSK9w8i.cjs} +1 -1
  3. package/browser/cjs/{DwsD11UtBZVBKXDj.cjs → BiZu_UkuyEYl_49H.cjs} +1 -1
  4. package/browser/cjs/{DoYc2FzwQCh04_iU.cjs → BjkUWCp2ObvYeP19.cjs} +1 -1
  5. package/browser/cjs/{B8Z20ZHnVdKPe_wg.cjs → BrPDVJeOA7eotIdQ.cjs} +1 -1
  6. package/browser/cjs/{BMlsgnEKkvuJ_zCU.cjs → Bt0KH5ry8A-H2XJc.cjs} +1 -1
  7. package/browser/cjs/{DPW1fNYgmA7pYuD4.cjs → ByU95-ZXPn3w3tPi.cjs} +1 -1
  8. package/browser/cjs/{CpEBLzivH9arChhd.cjs → BynzHHQPUmhMyHYX.cjs} +3 -3
  9. package/browser/cjs/{drmp51GNkc-_dEhU.cjs → C2z-2oeFQXCC2sdF.cjs} +1 -1
  10. package/browser/cjs/{Dx5kop28TgYNjLWg.cjs → CNU-5-cLXkZdlc_I.cjs} +1 -1
  11. package/browser/cjs/{B1FSysGLiMuBWWG7.cjs → C_7BUvmtSDknJjxh.cjs} +1 -1
  12. package/browser/cjs/{BmAuZ-x329wWwez-.cjs → Ck6yfrJGBKcCAnfo.cjs} +2 -2
  13. package/browser/cjs/{DD47hmAQlYVCONFG.cjs → DAVtwWgUmRbYKaUI.cjs} +1 -1
  14. package/browser/cjs/{C1Z-iNMVmlFh0-9a.cjs → DS7I31gDrgGx-Kjc.cjs} +1 -1
  15. package/browser/cjs/{Dy7TA5w_6b7NZ9L5.cjs → DSBHJBPea75XkjbG.cjs} +1 -1
  16. package/browser/cjs/D_KL_f2CIY390LrK.cjs +54 -0
  17. package/browser/cjs/{DANE2K4uLXH2h6L_.cjs → DbJg_p3YrWqNiONk.cjs} +1 -1
  18. package/browser/cjs/{EYh0tqpDATD-VWjH.cjs → Dudo2JNx8nSohuJ9.cjs} +1 -1
  19. package/browser/cjs/{CVgEYzGdf73vqt1t.cjs → DwpsSlAaY2T3Rh0z.cjs} +1 -1
  20. package/browser/cjs/{tVPyTuFILZF8dLSx.cjs → MxGT1owu3LK7lzv4.cjs} +1 -1
  21. package/browser/cjs/{BE6JxE7oSWBEp-mN.cjs → OlJ4WvknCU0tx9zr.cjs} +2 -2
  22. package/browser/cjs/{BqL47R-5d3W6dAVu.cjs → PYxlwwf8LymgB6KF.cjs} +1 -1
  23. package/browser/cjs/{DnxziYwOHzv72aCD.cjs → QSfpWHpM3ExP8C31.cjs} +1 -1
  24. package/browser/cjs/{C62iavaEh4cKs8ra.cjs → SDe43jbsWmUivkUh.cjs} +1 -1
  25. package/browser/cjs/{DV0GzxQXzduRewRU.cjs → g-p1ZhI1XIJx-vvq.cjs} +1 -1
  26. package/browser/cjs/{b7ZrNvJyGPgBRWxt.cjs → g44jkX22Kjpaujd8.cjs} +1 -1
  27. package/browser/cjs/index.cjs +2 -2
  28. package/browser/cjs/{CCTKLml0jGdTAZmx.cjs → vytrRYuoufF5SUFz.cjs} +1 -1
  29. package/browser/esm/{T3E730OGyqLICaG4.mjs → 1H4OcVpECNdo2leo.mjs} +1 -1
  30. package/browser/esm/BCR-QupOzqFjIQ26.mjs +23328 -0
  31. package/browser/esm/{BcWVEl_OmB71TLif.mjs → BSkaqwyDqSBFahkS.mjs} +1 -1
  32. package/browser/esm/{uQly1tDDOJIVS3ry.mjs → BbRFZyuCl2YcHE_O.mjs} +1 -1
  33. package/browser/esm/{CIpcOv2dF1XO5m1x.mjs → BcSMUT4Sx-YNny4I.mjs} +1 -1
  34. package/browser/esm/{nS59IDXNCyy1-vgD.mjs → Bj5dWxpiNTkchR1Y.mjs} +1 -1
  35. package/{node/esm/BzevSgN_GJWMD5yy.mjs → browser/esm/Bo9TMq-qqBydQB-d.mjs} +1 -1
  36. package/browser/esm/{sqBXERj3-thNudHO.mjs → Bu-rq4yH8T1EwN2P.mjs} +1 -1
  37. package/browser/esm/{2hhwCP61Sa3v1NjZ.mjs → CF9WRmqFK1b5FwUY.mjs} +1 -1
  38. package/browser/esm/{CTejJJENMp_FS_6U.mjs → CiDTEYF3f2Ays6hs.mjs} +1 -1
  39. package/browser/esm/{Dm_128Lljhtv6Jn3.mjs → CijgE8Xdf4U-p_n_.mjs} +1 -1
  40. package/{node/esm/B0g5pJy-yw8fGJdl.mjs → browser/esm/Cjbrqj_RTTjDFoIZ.mjs} +1 -1
  41. package/browser/esm/{C9G6mh11Yamc32zo.mjs → D1kVfIYxJreinijW.mjs} +1 -1
  42. package/{node/esm/BphXbjjrr-xRvn_v.mjs → browser/esm/D3Dm6W1dzveetEon.mjs} +1 -1
  43. package/browser/esm/{BjhhLrmxn09ZN2F4.mjs → DGvCi12sa7ZIIyrU.mjs} +1 -1
  44. package/{node/esm/Cz0W8hPCLvXlkbQo.mjs → browser/esm/DKVh-BpPSxRKNBg0.mjs} +1 -1
  45. package/browser/esm/{icvBR7LJkMU_-6XY.mjs → D_RGE3EZfJC5ZZWR.mjs} +2 -2
  46. package/{node/esm/PPPix-VNwJDk_TOK.mjs → browser/esm/DbfaEgmktGZoVmR9.mjs} +1 -1
  47. package/{node/esm/B97kvVdQfa3Exl2N.mjs → browser/esm/Dh0gG6If4az9wdA_.mjs} +1 -1
  48. package/browser/esm/{gWGzpjWJcRXCmFpy.mjs → Ls1ZSIs4_Dizy6M2.mjs} +1 -1
  49. package/browser/esm/{QAWVi4qmFpATjne0.mjs → PC-0s4BlfmcUuM2n.mjs} +2 -2
  50. package/browser/esm/{BoFx5mWOQ9kDmxAd.mjs → VABCB8JWd3GRuJSJ.mjs} +1 -1
  51. package/browser/esm/{6vhfFZ6TcuKo4lbQ.mjs → W2jVr33Yj6xCsoBI.mjs} +3 -3
  52. package/browser/esm/index.mjs +2 -2
  53. package/browser/esm/{DJkuQy_knvUrhvPq.mjs → sblqA0GEw7u_7uUc.mjs} +1 -1
  54. package/browser/esm/{CNF1rtJTtfg0sPAm.mjs → v18e8vKmxVrtktOm.mjs} +1 -1
  55. package/browser/esm/{DKa84yD16Xrsh-v9.mjs → vbJIfJnzIQ7BWeaz.mjs} +1 -1
  56. package/browser/esm/{ZH5jyv9nq8TH5fJm.mjs → xQmntmz9bIJQGGk5.mjs} +1 -1
  57. package/node/esm/{B6qtasB4ksqh4JoN.mjs → 60NBbrQpc9hm9XDF.mjs} +1 -1
  58. package/node/esm/{CKBYykISy-lvkNyD.mjs → B-VscQXhRPYYzMBg.mjs} +1 -1
  59. package/node/esm/{BcWVEl_OmB71TLif.mjs → BSkaqwyDqSBFahkS.mjs} +1 -1
  60. package/node/esm/{uQly1tDDOJIVS3ry.mjs → BbRFZyuCl2YcHE_O.mjs} +1 -1
  61. package/node/esm/{CIpcOv2dF1XO5m1x.mjs → BcSMUT4Sx-YNny4I.mjs} +1 -1
  62. package/node/esm/{nS59IDXNCyy1-vgD.mjs → Bj5dWxpiNTkchR1Y.mjs} +1 -1
  63. package/{browser/esm/BzevSgN_GJWMD5yy.mjs → node/esm/Bo9TMq-qqBydQB-d.mjs} +1 -1
  64. package/node/esm/{CAlsCjZ5AvJtJ3Pm.mjs → BpnjD3v17ME5wsuw.mjs} +1 -1
  65. package/node/esm/{sqBXERj3-thNudHO.mjs → Bu-rq4yH8T1EwN2P.mjs} +1 -1
  66. package/node/esm/{CW-N7xXW32EPyr3n.mjs → C4eGsdqRlRQklHCI.mjs} +1 -1
  67. package/node/esm/{DHSx9xekAnH8zZVV.mjs → CV4lgmXng9GwC7Jc.mjs} +2 -2
  68. package/node/esm/{B5SmfILHrn_jXyuk.mjs → CduvvHyonYr0CJdM.mjs} +1 -1
  69. package/node/esm/{Cfn8RWH90XePIyI4.mjs → Ch4EonmIhss9y_h3.mjs} +1 -1
  70. package/{browser/esm/B0g5pJy-yw8fGJdl.mjs → node/esm/Cjbrqj_RTTjDFoIZ.mjs} +1 -1
  71. package/node/esm/{C9G6mh11Yamc32zo.mjs → D1kVfIYxJreinijW.mjs} +1 -1
  72. package/{browser/esm/BphXbjjrr-xRvn_v.mjs → node/esm/D3Dm6W1dzveetEon.mjs} +1 -1
  73. package/{browser/esm/Cz0W8hPCLvXlkbQo.mjs → node/esm/DKVh-BpPSxRKNBg0.mjs} +1 -1
  74. package/{browser/esm/PPPix-VNwJDk_TOK.mjs → node/esm/DbfaEgmktGZoVmR9.mjs} +1 -1
  75. package/{browser/esm/B97kvVdQfa3Exl2N.mjs → node/esm/Dh0gG6If4az9wdA_.mjs} +1 -1
  76. package/node/esm/{B4b_hQqKGPRL1siC.mjs → DkQjw7yUaMjLtVhs.mjs} +1 -1
  77. package/node/esm/{pD_Jl_6CMYcVAUPV.mjs → DrAv_iWPmonAJ9-3.mjs} +1 -1
  78. package/node/esm/{gWGzpjWJcRXCmFpy.mjs → Ls1ZSIs4_Dizy6M2.mjs} +1 -1
  79. package/node/esm/{BoFx5mWOQ9kDmxAd.mjs → VABCB8JWd3GRuJSJ.mjs} +1 -1
  80. package/node/esm/index.mjs +2196 -1980
  81. package/node/esm/{DJkuQy_knvUrhvPq.mjs → sblqA0GEw7u_7uUc.mjs} +1 -1
  82. package/node/esm/{CNF1rtJTtfg0sPAm.mjs → v18e8vKmxVrtktOm.mjs} +1 -1
  83. package/package.json +4 -4
  84. package/types/index.d.ts +312 -147
  85. package/types/scripting.d.ts +484 -174
  86. package/browser/cjs/BxD8HnRMYSdquKAd.cjs +0 -54
  87. package/browser/esm/DLiq84aEiY21Fyro.mjs +0 -23110
@@ -2901,6 +2901,7 @@ declare module "fill/IFill" {
2901
2901
  import type { Properties as CSSProperties } from 'csstype';
2902
2902
  import type { Rectangle, Bounds } from '@sheetxl/utils';
2903
2903
  import { IColor } from "color/index";
2904
+ import { IStyle } from "style/index";
2904
2905
  /**
2905
2906
  * Defines how an area or shape is filled with color or a pattern.
2906
2907
  */
@@ -2918,7 +2919,14 @@ declare module "fill/IFill" {
2918
2919
  * (for example color, backgroundColor)
2919
2920
  */
2920
2921
  toCSS(darkMode?: boolean, bounds?: Bounds): CSSProperties;
2922
+ /**
2923
+ * Returns the fill as a JSON object.
2924
+ */
2921
2925
  toJSON(): IFill.JSON;
2926
+ /**
2927
+ * For type checking.
2928
+ */
2929
+ readonly isIFill: true;
2922
2930
  }
2923
2931
  /**
2924
2932
  * {@inheritDoc IFill}
@@ -3170,6 +3178,12 @@ declare module "fill/IFill" {
3170
3178
  * Returns the color of the fill.
3171
3179
  */
3172
3180
  getColor(): IColor;
3181
+ /**
3182
+ * Sets the stroke color.
3183
+ *
3184
+ * @param color The stroke color.
3185
+ */
3186
+ setColor(color: IColor.Serializable | null, options?: IStyle.UpdateOptions): IFill.ISolid;
3173
3187
  }
3174
3188
  interface SolidProperties<C = IColor.Serializable> extends IFill.Properties {
3175
3189
  /**
@@ -3263,7 +3277,7 @@ declare module "fill/IFill" {
3263
3277
  * @see
3264
3278
  * {@link IFill.IGradient.getStops}
3265
3279
  */
3266
- stops?: GradientStopProperties<C>[];
3280
+ stops?: (GradientStopProperties<C> | C)[];
3267
3281
  /**
3268
3282
  * @see
3269
3283
  * {@link IFill.IGradient.getGradientType}
@@ -3295,19 +3309,46 @@ declare module "fill/IFill" {
3295
3309
  * * This must be at least two stops.
3296
3310
  */
3297
3311
  getStops(): IGradientStop[];
3312
+ /**
3313
+ * Sets the gradient stops.
3314
+ *
3315
+ * @param stops The gradient stops.
3316
+ */
3317
+ setStops(stops: (IGradientStop | IColor.Serializable | null)[], options?: IStyle.UpdateOptions): IFill.IGradient;
3298
3318
  /**
3299
3319
  * The type of gradient.
3300
3320
  * @defaultValue GradientType.Linear
3301
3321
  */
3302
3322
  getGradientType(): IFill.GradientType;
3323
+ /**
3324
+ * Sets the gradient type.
3325
+ *
3326
+ * @param type The gradient type.
3327
+ */
3328
+ setGradientType(type: IFill.GradientType | null, options?: IStyle.UpdateOptions): IFill.IGradient;
3303
3329
  /**
3304
3330
  * The angle of the gradient in degrees if gradient type is linear.
3305
3331
  */
3306
3332
  getAngle(): number;
3333
+ /**
3334
+ * Sets the rotation
3335
+ *
3336
+ * @param angle The angle
3337
+ */
3338
+ setAngle(angle: number | null, options?: IStyle.UpdateOptions): IFill.IGradient;
3307
3339
  /**
3308
3340
  * Used for path and circular gradients.
3309
3341
  */
3310
3342
  getFillTo(): Rectangle;
3343
+ /**
3344
+ * Sets the fill area for the gradient.
3345
+ *
3346
+ * @param fillTo The fill area.
3347
+ */
3348
+ setFillTo(fillTo: Rectangle | null, options?: IStyle.UpdateOptions): IFill.IGradient;
3349
+ /**
3350
+ * Converts the gradient fill to a JSON representation.
3351
+ */
3311
3352
  toJSON(): GradientJSON;
3312
3353
  }
3313
3354
  interface GradientJSON extends GradientProperties<string> {
@@ -3324,14 +3365,35 @@ declare module "fill/IFill" {
3324
3365
  * The foreground color for the pattern.
3325
3366
  */
3326
3367
  getForeground(): IColor;
3368
+ /**
3369
+ * Sets the foreground color.
3370
+ *
3371
+ * @param color The foreground color.
3372
+ */
3373
+ setForeground(color: IColor.Serializable | null, options?: IStyle.UpdateOptions): IFill.IPattern;
3327
3374
  /**
3328
3375
  * The background color for the pattern.
3329
3376
  */
3330
3377
  getBackground(): IColor;
3378
+ /**
3379
+ * Sets the background color.
3380
+ *
3381
+ * @param color The background color.
3382
+ */
3383
+ setBackground(color: IColor.Serializable | null, options?: IStyle.UpdateOptions): IFill.IPattern;
3331
3384
  /**
3332
3385
  * The type of pattern used.
3333
3386
  */
3334
3387
  getPatternType(): IFill.BuiltInSheetPattern;
3388
+ /**
3389
+ * Sets the pattern type.
3390
+ *
3391
+ * @param type The pattern type.
3392
+ */
3393
+ setPatternType(type: IFill.BuiltInSheetPattern | null, options?: IStyle.UpdateOptions): IFill.IPattern;
3394
+ /**
3395
+ * Converts the pattern fill to a JSON representation.
3396
+ */
3335
3397
  toJSON(): PatternJSON;
3336
3398
  }
3337
3399
  interface PatternProperties<C = IColor.Serializable> extends IFill.Properties {
@@ -3576,6 +3638,7 @@ declare module "text/Bullet" {
3576
3638
  }
3577
3639
  declare module "text/TextBoxAlignment" {
3578
3640
  import { ITextFrame } from "text/ITextFrame";
3641
+ import { IStyle } from "style/index";
3579
3642
  /**
3580
3643
  * Provided options for aligned text within a bounding box.
3581
3644
  */
@@ -3584,10 +3647,22 @@ declare module "text/TextBoxAlignment" {
3584
3647
  * Types of horizontal alignment.
3585
3648
  */
3586
3649
  getHorizontal(): ITextFrame.HorizontalAlignment;
3650
+ /**
3651
+ * Sets the horizontal alignment
3652
+ *
3653
+ * @param horizontal The horizontal alignment
3654
+ */
3655
+ setHorizontal(horizontal: ITextFrame.HorizontalAlignment | null, options?: IStyle.UpdateOptions): ITextBoxAlignment;
3587
3656
  /**
3588
3657
  * Types of horizontal alignment.
3589
3658
  */
3590
3659
  getVertical(): ITextFrame.VerticalAlignment;
3660
+ /**
3661
+ * Sets the vertical alignment
3662
+ *
3663
+ * @param vertical The vertical alignment
3664
+ */
3665
+ setVertical(vertical: ITextFrame.VerticalAlignment | null, options?: IStyle.UpdateOptions): ITextBoxAlignment;
3591
3666
  /**
3592
3667
  * An integer value, where an increment of 1 represents 3 spaces.
3593
3668
  * Indicates the number of spaces (of the normal style font) of indentation for text in a cell.
@@ -3596,34 +3671,76 @@ declare module "text/TextBoxAlignment" {
3596
3671
  * This is only applied for alignments: left, right, and distributed.
3597
3672
  */
3598
3673
  getIndent(): number;
3674
+ /**
3675
+ * Sets the indentation
3676
+ *
3677
+ * @param indent The indentation
3678
+ */
3679
+ setIndent(indent: number | null, options?: IStyle.UpdateOptions): ITextBoxAlignment;
3599
3680
  /**
3600
3681
  * Indicates additional number of spaces of indentation to adjust for text in a cell.
3601
3682
  */
3602
3683
  getRelativeIndent(): number;
3684
+ /**
3685
+ * Sets the relative indentation
3686
+ *
3687
+ * @param relativeIndent The relative indentation
3688
+ */
3689
+ setRelativeIndent(relativeIndent: number | null, options?: IStyle.UpdateOptions): ITextBoxAlignment;
3603
3690
  /**
3604
3691
  * The behavior for text that does not fit with the cell bounds.
3605
3692
  * @see
3606
3693
  * {@link ITextFrame.Overflow}
3607
3694
  */
3608
3695
  getOverflow(): ITextFrame.Overflow;
3696
+ /**
3697
+ * Sets the overflow behavior
3698
+ *
3699
+ * @param overflow The overflow behavior
3700
+ */
3701
+ setOverflow(overflow: ITextFrame.Overflow | null, options?: IStyle.UpdateOptions): ITextBoxAlignment;
3609
3702
  /**
3610
3703
  * Rotation of the text.
3611
3704
  * @defaultValue 0
3612
3705
  */
3613
3706
  getRotation(): number;
3707
+ /**
3708
+ * Sets the rotation
3709
+ *
3710
+ * @param rotation The rotation
3711
+ */
3712
+ setRotation(rotation: number | null, options?: IStyle.UpdateOptions): ITextBoxAlignment;
3614
3713
  /**
3615
3714
  * If the text should stack vertically instead of horizontally.
3616
3715
  */
3617
3716
  getStacked(): boolean;
3717
+ /**
3718
+ * Sets the stacked
3719
+ *
3720
+ * @param stacked The stacked
3721
+ */
3722
+ setStacked(stacked: boolean | null, options?: IStyle.UpdateOptions): ITextBoxAlignment;
3618
3723
  /**
3619
3724
  * If the cells justified or distributed alignment should be used on the last line of text.
3620
3725
  * (This is typical for East Asian alignments but not typical in other contexts.)
3621
3726
  */
3622
3727
  getJustifyLastLine(): boolean;
3728
+ /**
3729
+ * Sets the justified last line
3730
+ *
3731
+ * @param justifyLastLine The justified last line
3732
+ */
3733
+ setJustifyLastLine(justifyLastLine: boolean | null, options?: IStyle.UpdateOptions): ITextBoxAlignment;
3623
3734
  /**
3624
3735
  * The direction the cell is being read.
3625
3736
  */
3626
3737
  getReadingDirection(): ITextFrame.ReadingDirection;
3738
+ /**
3739
+ * Sets the reading direction
3740
+ *
3741
+ * @param readingDirection The reading direction
3742
+ */
3743
+ setReadingDirection(readingDirection: ITextFrame.ReadingDirection | null, options?: IStyle.UpdateOptions): ITextBoxAlignment;
3627
3744
  toJSON(): ITextBoxAlignment.JSON;
3628
3745
  /**
3629
3746
  * For runtime type checking.
@@ -4496,6 +4613,7 @@ declare module "text/richtext/IStyledFont" {
4496
4613
  import { Properties as CSSProperties } from 'csstype';
4497
4614
  import { IColor } from "color/index";
4498
4615
  import { IFont } from "font/index";
4616
+ import { IStyle } from "style/index";
4499
4617
  /**
4500
4618
  * Represents a font with styling color.
4501
4619
  */
@@ -4505,23 +4623,43 @@ declare module "text/richtext/IStyledFont" {
4505
4623
  * marshalled into their correct property.
4506
4624
  */
4507
4625
  getFamily(): string;
4626
+ /**
4627
+ * @see {@link IStyledFont.getFamily}
4628
+ */
4629
+ setFamily(family: string | null, options?: IStyle.UpdateOptions): IStyledFont;
4508
4630
  /**
4509
4631
  * A list of fonts and their fallbacks. These can also be provided in the fontFamily attribute but will
4510
4632
  * be normalized to here.
4511
4633
  */
4512
4634
  getFallbacks(): string[];
4635
+ /**
4636
+ * @see {@link IStyledFont.setFallbacks}
4637
+ */
4638
+ setFallbacks(fallbacks: string[] | null, options?: IStyle.UpdateOptions): IStyledFont;
4513
4639
  /**
4514
4640
  * Font size is either a number in points or a string that can be converted such as '14px', '1.5em'.
4515
4641
  */
4516
4642
  getSize(): number;
4643
+ /**
4644
+ * @see {@link IStyledFont.setSize}
4645
+ */
4646
+ setSize(size: number | null, options?: IStyle.UpdateOptions): IStyledFont;
4517
4647
  /**
4518
4648
  * The weight of the characters.
4519
4649
  */
4520
4650
  getWeight(): number;
4651
+ /**
4652
+ * @see {@link IStyledFont.setWeight}
4653
+ */
4654
+ setWeight(weight: number | null, options?: IStyle.UpdateOptions): IStyledFont;
4521
4655
  /**
4522
4656
  * @default `IFont.Style.Normal`
4523
4657
  */
4524
4658
  getStyle(): IFont.Style;
4659
+ /**
4660
+ * @see {@link IStyledFont.setStyle}
4661
+ */
4662
+ setStyle(style: IFont.Style | null, options?: IStyle.UpdateOptions): IStyledFont;
4525
4663
  /**
4526
4664
  * The text color.
4527
4665
  *
@@ -4529,25 +4667,45 @@ declare module "text/richtext/IStyledFont" {
4529
4667
  * Currently only solid fill is supported but this will be expanded to allow all fill types similar to DrawML.
4530
4668
  */
4531
4669
  getFill(): IColor;
4670
+ /**
4671
+ * @see {@link IStyledFont.setFill}
4672
+ */
4673
+ setFill(fill: IColor | null, options?: IStyle.UpdateOptions): IStyledFont;
4532
4674
  /**
4533
4675
  * Adds or removes additional spacing between the characters.
4534
4676
  */
4535
4677
  getLetterSpacing(): number;
4678
+ /**
4679
+ * @see {@link IStyledFont.setLetterSpacing}
4680
+ */
4681
+ setLetterSpacing(letterSpacing: number | null, options?: IStyle.UpdateOptions): IStyledFont;
4536
4682
  /**
4537
4683
  * Sets the underline style. If true defaults to single. If false or null defaults to none.
4538
4684
  *
4539
4685
  * @default `IFont.UnderlineStyle.None`
4540
4686
  */
4541
4687
  getUnderline(): IFont.UnderlineStyle;
4688
+ /**
4689
+ * @see {@link IStyledFont.setUnderline}
4690
+ */
4691
+ setUnderline(underline: IFont.UnderlineStyle | null, options?: IStyle.UpdateOptions): IStyledFont;
4542
4692
  /**
4543
4693
  * The effect draws the text with a line through it.
4544
4694
  */
4545
4695
  getStrike(): boolean;
4696
+ /**
4697
+ * @see {@link IStyledFont.setStrike}
4698
+ */
4699
+ setStrike(strike: boolean | null, options?: IStyle.UpdateOptions): IStyledFont;
4546
4700
  /**
4547
4701
  * Defines the font scheme to use.
4548
4702
  * @default `IFont.Scheme.Minor`
4549
4703
  */
4550
4704
  getScheme(): IFont.Scheme;
4705
+ /**
4706
+ * @see {@link IStyledFont.setScheme}
4707
+ */
4708
+ setScheme(scheme: IFont.Scheme | null, options?: IStyle.UpdateOptions): IStyledFont;
4551
4709
  /**
4552
4710
  * Returns the vertical alignment of the text within a text line.
4553
4711
  *
@@ -4555,6 +4713,10 @@ declare module "text/richtext/IStyledFont" {
4555
4713
  * If the IFont.VerticalAlignment is superscript or subscript then the font size should also render smaller.
4556
4714
  */
4557
4715
  getVerticalAlignment(): IFont.VerticalAlignment;
4716
+ /**
4717
+ * @see {@link IStyledFont.setVerticalAlignment}
4718
+ */
4719
+ setVerticalAlignment(verticalAlignment: IFont.VerticalAlignment | null, options?: IStyle.UpdateOptions): IStyledFont;
4558
4720
  /**
4559
4721
  * The effect draws a shadow around the text.
4560
4722
  *
@@ -4562,6 +4724,10 @@ declare module "text/richtext/IStyledFont" {
4562
4724
  * Not rendered by Excel or SheetXL.
4563
4725
  */
4564
4726
  getShadow(): boolean;
4727
+ /**
4728
+ * @see {@link IStyledFont.setShadow}
4729
+ */
4730
+ setShadow(shadow: boolean | null, options?: IStyle.UpdateOptions): IStyledFont;
4565
4731
  /**
4566
4732
  * The effect draws the text as an outline.
4567
4733
  *
@@ -4569,6 +4735,10 @@ declare module "text/richtext/IStyledFont" {
4569
4735
  * Not rendered by Excel or SheetXL.
4570
4736
  */
4571
4737
  getOutline(): boolean;
4738
+ /**
4739
+ * @see {@link IStyledFont.setOutline}
4740
+ */
4741
+ setOutline(outline: boolean | null, options?: IStyle.UpdateOptions): IStyledFont;
4572
4742
  /**
4573
4743
  * The effect extends or stretches out the text.
4574
4744
  *
@@ -4576,6 +4746,10 @@ declare module "text/richtext/IStyledFont" {
4576
4746
  * Not rendered by Excel or SheetXL.
4577
4747
  */
4578
4748
  getExtend(): boolean;
4749
+ /**
4750
+ * @see {@link IStyledFont.setExtend}
4751
+ */
4752
+ setExtend(extend: boolean | null, options?: IStyle.UpdateOptions): IStyledFont;
4579
4753
  /**
4580
4754
  * Returns `true` if the font is either a superscript or a subscript.
4581
4755
  */
@@ -4821,7 +4995,9 @@ declare module "text/index" {
4821
4995
  export * as TextUtils from "text/TextUtils";
4822
4996
  }
4823
4997
  declare module "border/IBorder" {
4998
+ import { IProperties } from "type/index";
4824
4999
  import type { IColor } from "color/index";
5000
+ import { IStyle } from "style/index";
4825
5001
  export namespace IBorder {
4826
5002
  /**
4827
5003
  * @remarks
@@ -4880,7 +5056,19 @@ declare module "border/IBorder" {
4880
5056
  }
4881
5057
  interface IStroke {
4882
5058
  getStyle(): StrokeStyle;
5059
+ /**
5060
+ * Sets the stroke style.
5061
+ *
5062
+ * @param style The stroke style.
5063
+ */
5064
+ setStyle(style: IBorder.StrokeStyle | string | null, options?: IStyle.UpdateOptions): IBorder.IStroke;
4883
5065
  getColor(): IColor;
5066
+ /**
5067
+ * Sets the stroke color.
5068
+ *
5069
+ * @param color The stroke color.
5070
+ */
5071
+ setColor(color: IColor.Serializable | null, options?: IStyle.UpdateOptions): IBorder.IStroke;
4884
5072
  /**
4885
5073
  * Returns all the set properties and their values for the border.
4886
5074
  */
@@ -4928,26 +5116,62 @@ declare module "border/IBorder" {
4928
5116
  * @returns The left border.
4929
5117
  */
4930
5118
  getLeft(): IBorder.IStroke;
5119
+ /**
5120
+ * Sets the left border.
5121
+ *
5122
+ * @param edge The border edge.
5123
+ */
5124
+ setLeft(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.Properties> | string | null, options?: IStyle.UpdateOptions): IBorder;
4931
5125
  /**
4932
5126
  * @returns The top border.
4933
5127
  */
4934
5128
  getTop(): IBorder.IStroke;
5129
+ /**
5130
+ * Sets the top border.
5131
+ *
5132
+ * @param edge The border edge.
5133
+ */
5134
+ setTop(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.Properties> | string | null, options?: IStyle.UpdateOptions): IBorder;
4935
5135
  /**
4936
5136
  * @returns The right border.
4937
5137
  */
4938
5138
  getRight(): IBorder.IStroke;
4939
5139
  /**
4940
- * @returns The bottom border.
4941
- */
5140
+ * Sets the right border.
5141
+ *
5142
+ * @param edge The border edge.
5143
+ */
5144
+ setRight(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.Properties> | string | null, options?: IStyle.UpdateOptions): IBorder;
5145
+ /**
5146
+ * @returns The bottom border.
5147
+ */
4942
5148
  getBottom(): IBorder.IStroke;
5149
+ /**
5150
+ * Sets the bottom border.
5151
+ *
5152
+ * @param edge The border edge.
5153
+ */
5154
+ setBottom(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.Properties> | string | null, options?: IStyle.UpdateOptions): IBorder;
4943
5155
  /**
4944
5156
  * @returns The diagonalUp border.
4945
5157
  */
4946
5158
  getDiagonalUp(): IBorder.IStroke;
5159
+ /**
5160
+ * Sets the diagonalUp border.
5161
+ *
5162
+ * @param edge The border edge.
5163
+ */
5164
+ setDiagonalUp(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.Properties> | string | null, options?: IStyle.UpdateOptions): IBorder;
4947
5165
  /**
4948
5166
  * @returns The diagonalDown border.
4949
5167
  */
4950
5168
  getDiagonalDown(): IBorder.IStroke;
5169
+ /**
5170
+ * Sets the diagonalDown border.
5171
+ *
5172
+ * @param edge The border edge.
5173
+ */
5174
+ setDiagonalDown(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.StrokeProperties> | string | null, options?: IStyle.UpdateOptions): IBorder;
4951
5175
  /**
4952
5176
  * If there are any borders that are not none.
4953
5177
  */
@@ -7012,30 +7236,96 @@ declare module "style/IStyle" {
7012
7236
  *
7013
7237
  * @remarks
7014
7238
  * * If a number provided the builtIn numFmtId as defined in OOXML will be used.
7015
- * - {@link NumberFormat.Type}
7239
+ * * {@link NumberFormat.Type}
7016
7240
  */
7017
7241
  getNumberFormat(): string;
7242
+ /**
7243
+ * @see {@link IStyle.getNumberFormat}
7244
+ */
7245
+ setNumberFormat(numFmt: string | null, options?: IStyle.UpdateOptions): IStyle;
7018
7246
  /**
7019
7247
  * A boolean value indicating whether the text string in a cell should be prefixed by a single quote mark (e.g., 'text).
7020
7248
  * In these cases, the quote is not stored in the Shared Strings Part.
7021
7249
  */
7022
7250
  getQuotePrefix(): boolean;
7023
7251
  /**
7024
- * Returns the alignment for the style.
7252
+ * @see {@link IStyle.getQuotePrefix}
7025
7253
  */
7026
- getAlignment(): ITextFrame.IAlignment;
7254
+ setQuotePrefix(quotePrefix: boolean | null, options?: IStyle.UpdateOptions): IStyle;
7027
7255
  /**
7028
7256
  * Returns the border style.
7029
7257
  */
7030
7258
  getBorder(): IBorder;
7259
+ /**
7260
+ * Sets the border style.
7261
+ *
7262
+ * This method allows updating borders using an {@link IBorder} or a shorthand property object.
7263
+ *
7264
+ * @param border The border object or a shorthand property object to apply. Pass `null` to clear.
7265
+ * @param options Optional configuration for the update.
7266
+ * @returns The `IBorder` object for further modifications.
7267
+ */
7268
+ setBorder(border: IBorder | IProperties.ResolvableProperties<IBorder.Properties> | string | null, options?: IStyle.UpdateOptions): IStyle;
7031
7269
  /**
7032
7270
  * Fill properties for the background.
7033
7271
  */
7034
7272
  getFill(): IFill.ISolid | IFill.IGradient | IFill.IPattern | IFill.INone;
7273
+ /**
7274
+ * Sets the fill style.
7275
+ *
7276
+ * This method allows updating fill using an {@link IFill} or a shorthand property object.
7277
+ *
7278
+ * @param fill The fill object or a shorthand property object to apply. Pass `null` to clear.
7279
+ * @param options Optional configuration for the update.
7280
+ * @returns The `IFill` object for further modifications.
7281
+ */
7282
+ setFill(fill: IFill | IProperties.ResolvableProperties<IFill.Properties> | string | null, options?: IStyle.UpdateOptions): IStyle;
7283
+ /**
7284
+ * Returns the alignment for the style.
7285
+ */
7286
+ getAlignment(): ITextFrame.IAlignment;
7287
+ /**
7288
+ * Sets the alignment style.
7289
+ *
7290
+ * This method allows updating alignments using an {@link ITextFrame.IAlignment} or a shorthand property object.
7291
+ *
7292
+ * @param alignment The alignment object or a shorthand property object to apply. Pass `null` to clear.
7293
+ * @param options Optional configuration for the update.
7294
+ * @returns The `ITextFrame.IAlignment` object for further modifications.
7295
+ */
7296
+ setAlignment(alignment: ITextFrame.IAlignment | IProperties.ResolvableProperties<ITextFrame.IAlignment.Properties> | string | null, options?: IStyle.UpdateOptions): IStyle;
7035
7297
  /**
7036
7298
  * Returns the font for the style.
7037
7299
  */
7038
7300
  getFont(): IStyledFont;
7301
+ /**
7302
+ * Sets the font style.
7303
+ *
7304
+ * This method allows updating fill using an {@link IStyledFont} or a shorthand property object.
7305
+ *
7306
+ * @param font The font object or a shorthand property object to apply. Pass `null` to clear.
7307
+ * @param options Optional configuration for the update.
7308
+ * @returns The `IStyledFont` object for further modifications.
7309
+ */
7310
+ setFont(font: IStyledFont | IProperties.ResolvableProperties<IStyledFont.Properties> | string | null, options?: IStyle.UpdateOptions): IStyle;
7311
+ /**
7312
+ * Returns an instance of the named style that this is derived from.
7313
+ */
7314
+ getNamed(): IStyle.INamed;
7315
+ /**
7316
+ * Sets the named style that this is derived from.
7317
+ *
7318
+ * @param named The named style to set.
7319
+ */
7320
+ setNamed(named: string | IStyle.INamed | null, options?: IStyle.UpdateOptions): IStyle;
7321
+ /**
7322
+ * Update many style properties at once.
7323
+ *
7324
+ * @param update {@link IStyle.Update}
7325
+ * @param options {@link IStyle.UpdateOptions}
7326
+ * @returns The `IStyle` for further modifications.
7327
+ */
7328
+ update(update: IStyle.Update, options?: IStyle.UpdateOptions): IStyle;
7039
7329
  /**
7040
7330
  * Measure the text using the styling properties
7041
7331
  *
@@ -7072,14 +7362,14 @@ declare module "style/IStyle" {
7072
7362
  * @param update Adjustments to the style.
7073
7363
  */
7074
7364
  createTemporaryStyle(update: IStyle.Update): IStyle;
7075
- /**
7076
- * Returns an instance of the named style that this is derived from.
7077
- */
7078
- getNamed(): IStyle.INamed;
7079
7365
  /**
7080
7366
  * Returns `true` if the CellStyle is the normal style
7081
7367
  */
7082
7368
  isNormal(): boolean;
7369
+ /**
7370
+ * Returns a JSON representation of the style.
7371
+ */
7372
+ toJSON(): IStyle.JSON | null;
7083
7373
  /**
7084
7374
  * For runtime type checking.
7085
7375
  */
@@ -7182,106 +7472,6 @@ declare module "style/IStyle" {
7182
7472
  */
7183
7473
  autoFit?: boolean | ICellRange.AutoFitOptions;
7184
7474
  }
7185
- /**
7186
- * Provides an API for updating styles.
7187
- */
7188
- interface Updater {
7189
- /**
7190
- * @see {@link IStyle.getNumberFormat}
7191
- */
7192
- setNumberFormat(numFmt: string | null, options?: IStyle.UpdateOptions): this;
7193
- /**
7194
- * Sets or removes the quote prefix for the range.
7195
- *
7196
- * The quote prefix ensures that values in cells are treated as text.
7197
- *
7198
- * @see {@link IStyle.getQuotePrefix}
7199
- */
7200
- setQuotePrefix(quotePrefix: boolean | null, options?: IStyle.UpdateOptions): this;
7201
- /**
7202
- * Sets the alignment style.
7203
- *
7204
- * This method allows updating alignments using an {@link ITextFrame.IAlignment} or a shorthand property object.
7205
- *
7206
- * @param alignment The alignment object or a shorthand property object to apply. Pass `null` to clear.
7207
- * @param options Optional configuration for the update.
7208
- * @returns The `ITextFrame.IAlignment.Updater` object for further modifications.
7209
- */
7210
- setAlignment(alignment: ITextFrame.IAlignment | IProperties.ResolvableProperties<ITextFrame.IAlignment.Properties> | string | null, options?: IStyle.UpdateOptions): ITextFrame.IAlignment;
7211
- /**
7212
- * Retrieves the alignment updater.
7213
- *
7214
- * @returns An `ITextFrame.IAlignment.Updater` object.
7215
- */
7216
- getAlignment(): ITextFrame.IAlignment;
7217
- /**
7218
- * Sets the border style.
7219
- *
7220
- * This method allows updating borders using an {@link IBorder} or a shorthand property object.
7221
- *
7222
- * @param border The border object or a shorthand property object to apply. Pass `null` to clear.
7223
- * @param options Optional configuration for the update.
7224
- * @returns The `IBorder.Updater` object for further modifications.
7225
- */
7226
- setBorder(border: IBorder | IProperties.ResolvableProperties<IBorder.Properties> | string | null, options?: IStyle.UpdateOptions): IBorder;
7227
- /**
7228
- * Retrieves the border updater.
7229
- *
7230
- * @returns An `IBorder.Updater` object.
7231
- */
7232
- getBorder(): IBorder;
7233
- /**
7234
- * Sets the fill style.
7235
- *
7236
- * This method allows updating fill using an {@link IFill} or a shorthand property object.
7237
- *
7238
- * @param fill The fill object or a shorthand property object to apply. Pass `null` to clear.
7239
- * @param options Optional configuration for the update.
7240
- * @returns The `IFill.Updater` object for further modifications.
7241
- */
7242
- setFill(fill: IFill | IProperties.ResolvableProperties<IFill.Properties> | string | null, options?: IStyle.UpdateOptions): IFill;
7243
- /**
7244
- * Retrieves the fill updater.
7245
- *
7246
- * @returns An `IFIll.Updater` object.
7247
- */
7248
- getFill(): IFill;
7249
- /**
7250
- * Sets the font style.
7251
- *
7252
- * This method allows updating fill using an {@link IStyledFont} or a shorthand property object.
7253
- *
7254
- * @param font The font object or a shorthand property object to apply. Pass `null` to clear.
7255
- * @param options Optional configuration for the update.
7256
- * @returns The `IStyledFont.Updater` object for further modifications.
7257
- */
7258
- setFont(font: IFill | IProperties.ResolvableProperties<IFill.Properties> | string | null, options?: IStyle.UpdateOptions): IFill;
7259
- /**
7260
- * Retrieves the IStyledFont updater.
7261
- *
7262
- * @returns An `IStyledFont.Updater` object.
7263
- */
7264
- getFont(): IStyledFont;
7265
- /**
7266
- * Updates multiple style properties at once.
7267
- *
7268
- * This method is the most versatile way to update styles, allowing bulk updates with nested properties,
7269
- * shorthand strings, or function callbacks.
7270
- *
7271
- * @example
7272
- * ```typescript
7273
- * updater.update({
7274
- * font: { bold: true, color: "blue" },
7275
- * fill: { pattern: "solid", color: "yellow" }
7276
- * });
7277
- * ```
7278
- *
7279
- * @param style An object describing the style updates.
7280
- * @param options Optional configuration for the update.
7281
- * @returns The current `Updater` instance for chaining.
7282
- */
7283
- update(style: IStyle.Update, options?: IStyle.UpdateOptions): this;
7284
- }
7285
7475
  interface JSON extends Properties<string> {
7286
7476
  }
7287
7477
  /**
@@ -19418,7 +19608,7 @@ declare module "utils/CSSUtils" {
19418
19608
  export const toCSSGradient: (gradientFill: IFill.IGradient, darkMode?: boolean, _bounds?: Bounds) => string;
19419
19609
  export const toCSSPattern: (patternType: IFill.BuiltInSheetPattern) => string;
19420
19610
  export const toCSSBorderStroke: (stroke: IBorder.IStroke) => string;
19421
- export const parseBorderStroke: (value: string) => IBorder.StrokeProperties;
19611
+ export const parseBorderStroke: (value: string, parseColor?: (str: string) => string) => IBorder.StrokeProperties;
19422
19612
  /**
19423
19613
  * @see
19424
19614
  * {@link https://developer.mozilla.org/en-US/docs/Web/CSS/text-align}
@@ -19924,7 +20114,7 @@ declare module "sheet/style/_Resolvers" {
19924
20114
  export const FILL_NONE: TypedObject<IFill.NoneProperties, IFill.INone, IStyleCollection>;
19925
20115
  export const FILL_SOLID: TypedObject<IFill.SolidProperties, IFill.ISolid, IStyleCollection>;
19926
20116
  export const GRADIENT_STOP: TypedObject<IFill.GradientStopProperties, IFill.IGradientStop, IStyleCollection>;
19927
- export const GRADIENT_STOPS: TypedObject<IFill.GradientStopProperties[], IFill.IGradientStop[], IStyleCollection>;
20117
+ export const GRADIENT_STOPS: TypedObject<(IFill.GradientStopProperties | IColor.Serializable)[], (IFill.IGradientStop | IColor.Serializable)[], IStyleCollection>;
19928
20118
  export const FILL_GRADIENT: TypedObject<IFill.GradientProperties, IFill.IGradient, IStyleCollection>;
19929
20119
  export const FILL_PATTERN: TypedObject<IFill.PatternProperties, IFill.IPattern, IStyleCollection>;
19930
20120
  export const FILL: TypedObject<IFill.Properties | IFill.SolidProperties | IFill.GradientProperties | IFill.PatternProperties | IFill.NoneProperties, IFill.ISolid | IFill.IGradient | IFill.IPattern | IFill.INone, IStyleCollection>;
@@ -20043,15 +20233,21 @@ declare module "sheet/style/SheetCellStyle" {
20043
20233
  * A cell style is a specific coords
20044
20234
  */
20045
20235
  range: IRange.Coords;
20236
+ /**
20237
+ * For updating styles from accessors
20238
+ */
20239
+ updater: CellStyleUpdater;
20240
+ }
20241
+ export interface CellStyleUpdater {
20242
+ (update: IStyle.Update, options?: IStyle.UpdateOptions, range?: IRange.Coords): IStyle;
20046
20243
  }
20047
20244
  /**
20048
20245
  * This is for cell styles that don't have specific properties per row,column
20049
20246
  */
20050
20247
  export const resolveStyleUpdate: (styles: IStyleCollection, update: IStyle.Update, prev: (() => IStyle) | IStyle) => IStyle.Modifiers;
20051
20248
  class InheritableProperties<P, J> {
20052
- protected _c: IStyleCollection;
20053
20249
  protected _p: readonly Readonly<P>[];
20054
- constructor(styles: IStyleCollection, properties: Readonly<P> | readonly Readonly<P>[]);
20250
+ constructor(properties: Readonly<P> | readonly Readonly<P>[]);
20055
20251
  /**
20056
20252
  * Use when returning a left value
20057
20253
  * @param key
@@ -20072,9 +20268,11 @@ declare module "sheet/style/SheetCellStyle" {
20072
20268
  * Subclassed by items that have properties that can be inherited.
20073
20269
  */
20074
20270
  class Inheritable<P, J> {
20075
- protected _c: IStyleCollection;
20271
+ protected _o: CreateCellStyleOptions;
20076
20272
  protected _p: readonly P[];
20077
- constructor(styles: IStyleCollection, properties: P[]);
20273
+ protected _c: IStyleCollection;
20274
+ constructor(options: CreateCellStyleOptions, properties: P[]);
20275
+ protected _setValue(key: keyof P, value: any): any;
20078
20276
  /**
20079
20277
  * Use when returning a left value
20080
20278
  * @param key
@@ -20090,11 +20288,15 @@ declare module "sheet/style/SheetCellStyle" {
20090
20288
  }
20091
20289
  export class CellBorderStroke extends Inheritable<IBorder.StrokeProperties, IBorder.StrokeJSON> implements IBorder.IStroke {
20092
20290
  protected _edge: IBorder.Edge;
20093
- constructor(edge: IBorder.Edge, styles: IStyleCollection, properties: IBorder.StrokeProperties[]);
20291
+ constructor(edge: IBorder.Edge, options: CreateCellStyleOptions, properties: IBorder.StrokeProperties[]);
20094
20292
  /** {@inheritDoc IBorder.IStroke.getStyle} */
20095
20293
  getStyle(): IBorder.StrokeStyle;
20294
+ /** {@inheritDoc IBorder.IStroke.setStyle} */
20295
+ setStyle(style: IBorder.StrokeStyle | string | null, options?: IStyle.UpdateOptions): IBorder.IStroke;
20096
20296
  /** {@inheritDoc IBorder.IStroke.getColor} */
20097
20297
  getColor(): IColor;
20298
+ /** {@inheritDoc IBorder.IStroke.setColor} */
20299
+ setColor(color: IColor.Serializable | null, options?: IStyle.UpdateOptions): IBorder.IStroke;
20098
20300
  /** {@inheritDoc IBorder.IStroke.isNone} */
20099
20301
  isNone(): boolean;
20100
20302
  /** {@inheritDoc IBorder.IStroke.toCSS} */
@@ -20103,37 +20305,79 @@ declare module "sheet/style/SheetCellStyle" {
20103
20305
  get isIStroke(): true;
20104
20306
  }
20105
20307
  export class CellBorder extends Inheritable<IBorder.Properties, IBorder.JSON> implements IBorder {
20106
- /** {@inheritDoc IBorder.IStroke.getLeft} */
20308
+ /** {@inheritDoc IBorder.getLeft} */
20107
20309
  getLeft(): IBorder.IStroke;
20108
- /** {@inheritDoc IBorder.IStroke.getRight} */
20310
+ /** {@inheritDoc IBorder.setLeft} */
20311
+ setLeft(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.Properties> | string | null, options?: IStyle.UpdateOptions): IBorder;
20312
+ /** {@inheritDoc IBorder.getRight} */
20109
20313
  getRight(): IBorder.IStroke;
20110
- /** {@inheritDoc IBorder.IStroke.getTop} */
20314
+ /** {@inheritDoc IBorder.setLeft} */
20315
+ setRight(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.Properties> | string | null, options?: IStyle.UpdateOptions): IBorder;
20316
+ /** {@inheritDoc IBorder.getTop} */
20111
20317
  getTop(): IBorder.IStroke;
20318
+ /** {@inheritDoc IBorder.setTop} */
20319
+ setTop(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.Properties> | string | null, options?: IStyle.UpdateOptions): IBorder;
20112
20320
  /** {@inheritDoc IBorder.IStroke.getBottom} */
20113
20321
  getBottom(): IBorder.IStroke;
20322
+ /** {@inheritDoc IBorder.setBottom} */
20323
+ setBottom(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.Properties> | string | null, options?: IStyle.UpdateOptions): IBorder;
20114
20324
  /** {@inheritDoc IBorder.IStroke.getDiagonalUp} */
20115
20325
  getDiagonalUp(): IBorder.IStroke;
20326
+ /** {@inheritDoc IBorder.setDiagonalUp} */
20327
+ setDiagonalUp(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.Properties> | string | null, options?: IStyle.UpdateOptions): IBorder;
20116
20328
  /** {@inheritDoc IBorder.IStroke.getDiagonalDown} */
20117
20329
  getDiagonalDown(): IBorder.IStroke;
20330
+ /** {@inheritDoc IBorder.setDiagonalDown} */
20331
+ setDiagonalDown(edge: IBorder.IStroke | IProperties.ResolvableProperties<IBorder.StrokeProperties> | string | null, options?: IStyle.UpdateOptions): IBorder;
20118
20332
  /** {@inheritDoc IBorder.IStroke.isEmpty} */
20119
20333
  isEmpty(): boolean;
20120
20334
  /** {@inheritDoc IBorder.IStroke.isIBorder} */
20121
20335
  get isIBorder(): true;
20122
20336
  }
20123
20337
  export class CellAlignment extends Inheritable<ITextFrame.IAlignment.Properties, ITextFrame.IAlignment.JSON> implements ITextFrame.IAlignment {
20338
+ /** {@inheritDoc ITextBoxAlignment.isITextBoxAlignment} */
20124
20339
  get isITextBoxAlignment(): true;
20340
+ /** {@inheritDoc ITextBoxAlignment.getHorizontal} */
20125
20341
  getHorizontal(): ITextFrame.HorizontalAlignment;
20342
+ /** {@inheritDoc ITextBoxAlignment.setHorizontal} */
20343
+ setHorizontal(horizontal: ITextFrame.HorizontalAlignment | null, options?: IStyle.UpdateOptions): ITextFrame.IAlignment;
20344
+ /** {@inheritDoc ITextBoxAlignment.getVertical} */
20126
20345
  getVertical(): ITextFrame.VerticalAlignment;
20346
+ /** {@inheritDoc ITextBoxAlignment.setVertical} */
20347
+ setVertical(vertical: ITextFrame.VerticalAlignment | null, options?: IStyle.UpdateOptions): ITextFrame.IAlignment;
20348
+ /** {@inheritDoc ITextBoxAlignment.getIndent} */
20127
20349
  getIndent(): number;
20350
+ /** {@inheritDoc ITextBoxAlignment.setIndent} */
20351
+ setIndent(indent: number | null, options?: IStyle.UpdateOptions): ITextFrame.IAlignment;
20352
+ /** {@inheritDoc ITextBoxAlignment.getRelativeIndent} */
20128
20353
  getRelativeIndent(): number;
20354
+ /** {@inheritDoc ITextBoxAlignment.setRelativeIndent} */
20355
+ setRelativeIndent(relativeIndent: number | null, options?: IStyle.UpdateOptions): ITextFrame.IAlignment;
20356
+ /** {@inheritDoc ITextBoxAlignment.getOverflow} */
20129
20357
  getOverflow(): ITextFrame.Overflow;
20358
+ /** {@inheritDoc ITextBoxAlignment.setOverflow} */
20359
+ setOverflow(overflow: ITextFrame.Overflow | null, options?: IStyle.UpdateOptions): ITextFrame.IAlignment;
20360
+ /** {@inheritDoc ITextBoxAlignment.getRotation} */
20130
20361
  getRotation(): number;
20362
+ /** {@inheritDoc ITextBoxAlignment.setRotation} */
20363
+ setRotation(rotation: number | null, options?: IStyle.UpdateOptions): ITextFrame.IAlignment;
20364
+ /** {@inheritDoc ITextBoxAlignment.getStacked} */
20131
20365
  getStacked(): boolean;
20366
+ /** {@inheritDoc ITextBoxAlignment.setStacked} */
20367
+ setStacked(stacked: boolean | null, options?: IStyle.UpdateOptions): ITextFrame.IAlignment;
20368
+ /** {@inheritDoc ITextBoxAlignment.getJustifyLastLine} */
20132
20369
  getJustifyLastLine(): boolean;
20370
+ /** {@inheritDoc ITextBoxAlignment.setJustifyLastLine} */
20371
+ setJustifyLastLine(justifyLastLine: boolean | null, options?: IStyle.UpdateOptions): ITextFrame.IAlignment;
20372
+ /** {@inheritDoc ITextBoxAlignment.getReadingDirection} */
20133
20373
  getReadingDirection(): ITextFrame.ReadingDirection;
20374
+ /** {@inheritDoc ITextBoxAlignment.setReadingDirection} */
20375
+ setReadingDirection(readingDirection: ITextFrame.ReadingDirection | null, options?: IStyle.UpdateOptions): ITextFrame.IAlignment;
20134
20376
  }
20135
20377
  export class CellFont extends Inheritable<IStyledFont.Properties, IStyledFont.JSON> implements IStyledFont {
20136
20378
  isEqualMeasure(other: IStyledFont): boolean;
20379
+ /** {@inheritDoc IStyle.toCSS} */
20380
+ toCSS(darkMode?: boolean, zoom?: number, excludeNormal?: boolean): CSSProperties;
20137
20381
  /** {@inheritDoc IStyle.isSuperSub} */
20138
20382
  isSuperSub(): boolean;
20139
20383
  /** {@inheritDoc IStyle.isSuperSub} */
@@ -20142,107 +20386,199 @@ declare module "sheet/style/SheetCellStyle" {
20142
20386
  getSuperSubScale(): number;
20143
20387
  /** {@inheritDoc IStyle.getSuperSubShift} */
20144
20388
  getSuperSubShift(): number;
20145
- /** {@inheritDoc IStyle.toCSS} */
20146
- toCSS(darkMode?: boolean, zoom?: number, excludeNormal?: boolean): CSSProperties;
20147
20389
  /** {@inheritDoc IStyle.getFamily} */
20148
20390
  getFamily(): string;
20391
+ /** {@inheritDoc IStyle.setFamily} */
20392
+ setFamily(family: string | null, options?: IStyle.UpdateOptions): IStyledFont;
20149
20393
  /** {@inheritDoc IStyle.getFallbacks} */
20150
20394
  getFallbacks(): string[];
20395
+ /** {@inheritDoc IStyle.setFamily} */
20396
+ setFallbacks(fallbacks: string[] | null, options?: IStyle.UpdateOptions): IStyledFont;
20151
20397
  /** {@inheritDoc IStyle.getSize} */
20152
20398
  getSize(): number;
20399
+ /** {@inheritDoc IStyle.setSize} */
20400
+ setSize(size: number | null, options?: IStyle.UpdateOptions): IStyledFont;
20153
20401
  /** {@inheritDoc IStyle.getWeight} */
20154
20402
  getWeight(): number;
20403
+ /** {@inheritDoc IStyle.setWeight} */
20404
+ setWeight(weight: number | null, options?: IStyle.UpdateOptions): IStyledFont;
20155
20405
  /** {@inheritDoc IStyle.getStyle} */
20156
20406
  getStyle(): IFont.Style;
20407
+ /** {@inheritDoc IStyle.setStyle} */
20408
+ setStyle(style: IFont.Style | null, options?: IStyle.UpdateOptions): IStyledFont;
20157
20409
  /** {@inheritDoc IStyle.getFill} */
20158
20410
  getFill(): IColor;
20411
+ /** {@inheritDoc IStyle.setFill} */
20412
+ setFill(fill: IColor | null, options?: IStyle.UpdateOptions): IStyledFont;
20159
20413
  /** {@inheritDoc IStyle.getLetterSpacing} */
20160
20414
  getLetterSpacing(): number;
20415
+ /** {@inheritDoc IStyle.setLetterSpacing} */
20416
+ setLetterSpacing(letterSpacing: number | null, options?: IStyle.UpdateOptions): IStyledFont;
20161
20417
  /** {@inheritDoc IStyle.getUnderline} */
20162
20418
  getUnderline(): IFont.UnderlineStyle;
20419
+ /** {@inheritDoc IStyle.setUnderline} */
20420
+ setUnderline(underline: IFont.UnderlineStyle | null, options?: IStyle.UpdateOptions): IStyledFont;
20163
20421
  /** {@inheritDoc IStyle.getStrike} */
20164
20422
  getStrike(): boolean;
20423
+ /** {@inheritDoc IStyle.setStrike} */
20424
+ setStrike(strike: boolean | null, options?: IStyle.UpdateOptions): IStyledFont;
20165
20425
  /** {@inheritDoc IStyle.getScheme} */
20166
20426
  getScheme(): IFont.Scheme;
20427
+ /** {@inheritdoc IStyle.setScheme} */
20428
+ setScheme(scheme: IFont.Scheme | null, options?: IStyle.UpdateOptions): IStyledFont;
20167
20429
  /** {@inheritDoc IStyle.getVerticalAlignment} */
20168
20430
  getVerticalAlignment(): IFont.VerticalAlignment;
20431
+ /** {@inheritDoc IStyle.setVerticalAlignment} */
20432
+ setVerticalAlignment(verticalAlign: IFont.VerticalAlignment | null, options?: IStyle.UpdateOptions): IStyledFont;
20169
20433
  /** {@inheritDoc IStyle.getShadow} */
20170
20434
  getShadow(): boolean;
20435
+ /** {@inheritDoc IStyle.setShadow} */
20436
+ setShadow(shadow: boolean | null, options?: IStyle.UpdateOptions): IStyledFont;
20171
20437
  /** {@inheritDoc IStyle.getOutline} */
20172
20438
  getOutline(): boolean;
20439
+ /** {@inheritDoc IStyle.setOutline} */
20440
+ setOutline(outline: boolean | null, options?: IStyle.UpdateOptions): IStyledFont;
20173
20441
  /** {@inheritDoc IStyle.getExtend} */
20174
20442
  getExtend(): boolean;
20443
+ /** {@inheritDoc IStyle.setExtend} */
20444
+ setExtend(extend: boolean | null, options?: IStyle.UpdateOptions): IStyledFont;
20175
20445
  /** {@inheritDoc IStyle.isIStyledFont} */
20176
20446
  get isIStyledFont(): true;
20177
20447
  }
20178
20448
  export class NoneFill extends Inheritable<IFill.NoneProperties, IFill.NoneJSON> implements IFill.INone {
20449
+ /** {@inheritDoc IFill.INone.getType} */
20179
20450
  getType(): typeof IFill.Type.None;
20451
+ /** {@inheritDoc IFill.INone.toCSS} */
20180
20452
  toCSS(_darkMode?: boolean): CSSProperties;
20453
+ /** {@inheritDoc IFill.INone.toJSON} */
20181
20454
  toJSON(): IFill.NoneJSON;
20455
+ /** {@inheritDoc IFill.isIFill} */
20456
+ get isIFill(): true;
20182
20457
  }
20183
20458
  export class SolidFill extends Inheritable<IFill.SolidProperties, IFill.SolidJSON> implements IFill.ISolid {
20459
+ /** {@inheritDoc IFill.ISolid.getType} */
20184
20460
  getType(): typeof IFill.Type.Solid;
20461
+ /** {@inheritDoc IFill.ISolid.getColor} */
20185
20462
  getColor(): IColor;
20463
+ /** {@inheritDoc IFill.ISolid.setColor} */
20464
+ setColor(color: IColor.Serializable | null, options?: IStyle.UpdateOptions): IFill.ISolid;
20465
+ /** {@inheritDoc IFill.ISolid.toCSS} */
20186
20466
  toCSS(darkMode?: boolean): CSSProperties;
20467
+ /** {@inheritDoc IFill.ISolid.toJSON} */
20187
20468
  toJSON(): IFill.SolidJSON;
20469
+ /** {@inheritDoc IFill.isIFill} */
20470
+ get isIFill(): true;
20188
20471
  }
20189
20472
  export class GradientStop extends Inheritable<IFill.GradientStopProperties, any> implements IFill.IGradientStop {
20473
+ protected _i: number;
20474
+ protected _l: number;
20475
+ constructor(index: number, length: number, options: CreateCellStyleOptions, properties: IFill.GradientStopProperties[]);
20476
+ /** {@inheritDoc IFill.IGradientStop.getOffset} */
20190
20477
  getOffset(): number;
20478
+ /** {@inheritDoc IFill.IGradientStop.getColor} */
20191
20479
  getColor(): IColor;
20192
20480
  }
20193
20481
  export class GradientFill extends Inheritable<IFill.GradientProperties, IFill.GradientJSON> implements IFill.IGradient {
20482
+ /** {@inheritDoc IFill.IGradient.getType} */
20194
20483
  getType(): typeof IFill.Type.Gradient;
20484
+ /** {@inheritDoc IFill.IGradient.getStops} */
20195
20485
  getStops(): IFill.IGradientStop[];
20486
+ /** {@inheritDoc IFill.IGradient.setStops} */
20487
+ setStops(stops: IFill.IGradientStop[], options?: IStyle.UpdateOptions): IFill.IGradient;
20488
+ /** {@inheritDoc IFill.IGradient.getGradientType} */
20196
20489
  getGradientType(): IFill.GradientType;
20490
+ /** {@inheritDoc IFill.IGradient.setGradientType} */
20491
+ setGradientType(gradientType: IFill.GradientType, options?: IStyle.UpdateOptions): IFill.IGradient;
20492
+ /** {@inheritDoc IFill.IGradient.getAngle} */
20197
20493
  getAngle(): number;
20494
+ /** {@inheritDoc IFill.IGradient.setAngle} */
20495
+ setAngle(angle: number, options?: IStyle.UpdateOptions): IFill.IGradient;
20496
+ /** {@inheritDoc IFill.IGradient.getFillTo} */
20198
20497
  getFillTo(): Rectangle;
20498
+ /** {@inheritDoc IFill.IGradient.setFillTo} */
20499
+ setFillTo(fillTo: Rectangle, options?: IStyle.UpdateOptions): IFill.IGradient;
20500
+ /** {@inheritDoc IFill.IGradient.toCSS} */
20199
20501
  toCSS(darkMode?: boolean, bounds?: Bounds): CSSProperties;
20502
+ /** {@inheritDoc IFill.IGradient.toJSON} */
20200
20503
  toJSON(): IFill.GradientJSON;
20504
+ /** {@inheritDoc IFill.isIFill} */
20505
+ get isIFill(): true;
20201
20506
  }
20202
20507
  export class PatternFill extends Inheritable<IFill.PatternProperties, IFill.PatternJSON> implements IFill.IPattern {
20508
+ /** {@inheritDoc IFill.IPattern.getType} */
20203
20509
  getType(): typeof IFill.Type.Pattern;
20510
+ /** {@inheritDoc IFill.IPattern.getBackground} */
20204
20511
  getBackground(): IColor;
20512
+ /** {@inheritDoc IFill.ISolid.setBackground} */
20513
+ setBackground(color: IColor.Serializable | null, options?: IStyle.UpdateOptions): IFill.IPattern;
20514
+ /** {@inheritDoc IFill.IPattern.getForeground} */
20205
20515
  getForeground(): IColor;
20516
+ /** {@inheritDoc IFill.ISolid.setForeground} */
20517
+ setForeground(color: IColor.Serializable | null, options?: IStyle.UpdateOptions): IFill.IPattern;
20518
+ /** {@inheritDoc IFill.IPattern.getPatternType} */
20206
20519
  getPatternType(): IFill.BuiltInSheetPattern;
20520
+ /** {@inheritDoc IFill.IGradient.setPatternType} */
20521
+ setPatternType(patternType: IFill.BuiltInSheetPattern, options?: IStyle.UpdateOptions): IFill.IPattern;
20522
+ /** {@inheritDoc IFill.IPattern.toCSS} */
20207
20523
  toCSS(darkMode?: boolean): CSSProperties;
20524
+ /** {@inheritDoc IFill.IPattern.toJSON} */
20208
20525
  toJSON(): IFill.PatternJSON;
20526
+ /** {@inheritDoc IFill.isIFill} */
20527
+ get isIFill(): true;
20209
20528
  }
20210
20529
  export class SheetCellStyle implements IStyle {
20211
- protected _options: CreateCellStyleOptions;
20530
+ protected _o: CreateCellStyleOptions;
20212
20531
  protected _p: InheritableProperties<IStyle.Properties, IStyle.JSON>;
20213
- protected _c: IStyleCollection;
20214
20532
  protected _bestFit: Partial<Dimensions>;
20215
20533
  protected _insets: Rectangle;
20216
20534
  protected _hasVisibleStyling: boolean;
20217
20535
  constructor(options: CreateCellStyleOptions);
20536
+ /** {@inheritDoc IStyle.toJSON} */
20537
+ toJSON(): IStyle.JSON;
20218
20538
  /** {@inheritDoc IStyle.hasVisibleStyling} */
20219
20539
  hasVisibleStyling(): boolean;
20220
20540
  /** {@inheritDoc IStyle.isNormal} */
20221
20541
  isNormal(): boolean;
20222
- /** {@inheritDoc IStyle.getNamed} */
20223
- getNamed(): IStyle.INamed;
20224
20542
  /** {@inheritDoc IStyle.createTemporaryStyle} */
20225
20543
  createTemporaryStyle(update: IStyle.Update): IStyle;
20226
20544
  /** {@inheritDoc IStyle.measureText} */
20227
20545
  measureText(text: string, size?: number, family?: string, options?: IFont.MetricOptions): IFont.ExtendedMetrics;
20228
20546
  /** {@inheritDoc IStyle.createTemporaryTextFrame} */
20229
20547
  createTemporaryTextFrame(text: string, allowWrap?: boolean): ITextFrame;
20548
+ /** {@inheritDoc IStyle.update} */
20549
+ update(update: IStyle.Update, options?: IStyle.UpdateOptions): IStyle;
20230
20550
  /** {@inheritDoc IStyle.getBestFit} */
20231
20551
  getBestFit(): Partial<Dimensions> | null;
20232
20552
  /** {@inheritDoc IStyle.getInsets} */
20233
20553
  getInsets(): Rectangle;
20234
20554
  /** {@inheritDoc IStyle.getBorder} */
20235
20555
  getBorder(): IBorder;
20556
+ /** {@inheritDoc IStyle.setBorder} */
20557
+ setBorder(border: IBorder | IProperties.ResolvableProperties<IBorder.Properties> | string | null, options?: IStyle.UpdateOptions): IStyle;
20236
20558
  /** {@inheritDoc IStyle.getFont} */
20237
20559
  getFont(): IStyledFont;
20560
+ /** {@inheritDoc IStyle.setFont} */
20561
+ setFont(font: IStyledFont | IProperties.ResolvableProperties<IStyledFont.Properties> | string | null, options?: IStyle.UpdateOptions): IStyle;
20238
20562
  /** {@inheritDoc IStyle.getFill} */
20239
20563
  getFill(): IFill.ISolid | IFill.IGradient | IFill.IPattern | IFill.INone;
20564
+ /** {@inheritDoc IStyle.setFill} */
20565
+ setFill(fill: IFill | IProperties.ResolvableProperties<IFill.Properties> | string | null, options?: IStyle.UpdateOptions): IStyle;
20240
20566
  /** {@inheritDoc IStyle.getAlignment} */
20241
20567
  getAlignment(): ITextFrame.IAlignment;
20568
+ /** {@inheritDoc IStyle.setAlignment} */
20569
+ setAlignment(alignment: ITextFrame.IAlignment | IProperties.ResolvableProperties<ITextFrame.IAlignment.Properties> | string | null, options?: IStyle.UpdateOptions): IStyle;
20242
20570
  /** {@inheritDoc IStyle.getNumberFormat} */
20243
20571
  getNumberFormat(): string;
20572
+ /** {@inheritDoc IStyle.setNumberFormat} */
20573
+ setNumberFormat(numFmt: string | null, options?: IStyle.UpdateOptions): this;
20244
20574
  /** {@inheritDoc IStyle.getQuotePrefix} */
20245
20575
  getQuotePrefix(): boolean;
20576
+ /** {@inheritDoc IStyle.setQuotePrefix} */
20577
+ setQuotePrefix(quotePrefix: boolean | null, options?: IStyle.UpdateOptions): IStyle;
20578
+ /** {@inheritDoc IStyle.getNamed} */
20579
+ getNamed(): IStyle.INamed;
20580
+ /** {@inheritDoc IStyle.setNamed} */
20581
+ setNamed(named: string | IStyle.INamed | null, options?: IStyle.UpdateOptions): IStyle;
20246
20582
  /** {@inheritDoc IStyle.isIStyle} */
20247
20583
  get isIStyle(): true;
20248
20584
  }
@@ -20252,7 +20588,7 @@ declare module "sheet/style/SheetCellStyle" {
20252
20588
  * @remarks
20253
20589
  * Not part of the public interface.
20254
20590
  */
20255
- export const createCellStyle: (styles: IStyleCollection, layer: IProperties.ICellRanged<IStyle.Properties>, range?: Readonly<IRange.Coords>) => IStyle;
20591
+ export const createCellStyle: (styles: IStyleCollection, layer: IProperties.ICellRanged<IStyle.Properties>, range?: Readonly<IRange.Coords>, updater?: CellStyleUpdater) => IStyle;
20256
20592
  export class EmptyStyle extends SheetCellStyle {
20257
20593
  /** {@inheritDoc IStyle.hasVisibleStyling} */
20258
20594
  hasVisibleStyling(): boolean;
@@ -20261,6 +20597,7 @@ declare module "sheet/style/SheetCellStyle" {
20261
20597
  /** {@inheritDoc IStyle.isNormal} */
20262
20598
  isNormal(): boolean;
20263
20599
  }
20600
+ export const ReadOnlyUpdater: (update: IStyle.Update) => IStyle;
20264
20601
  }
20265
20602
  declare module "sheet/spatial/MergeEntry" {
20266
20603
  import { Scalar, IRange } from '@sheetxl/primitives';
@@ -21057,6 +21394,7 @@ declare module "sheet/SheetCell" {
21057
21394
  import { ISheet } from "sheet/ISheet";
21058
21395
  import { RangeState } from "sheet/_SheetTypes";
21059
21396
  import { FormulaEntry } from "sheet/spatial/index";
21397
+ import { CellStyleUpdater } from "sheet/style/SheetCellStyle";
21060
21398
  import { ICalcGraph } from "calculation/graph/index";
21061
21399
  /**
21062
21400
  * CellModifiers with all functions removed and all properties set and a type.
@@ -21112,6 +21450,7 @@ declare module "sheet/SheetCell" {
21112
21450
  calcGraph(): ICalcGraph;
21113
21451
  colHeaders: ISheetHeader;
21114
21452
  getRange(coords: IRange.Coords): ICellRange;
21453
+ styleUpdater: CellStyleUpdater;
21115
21454
  opener(url: string, options: ICellRange.SelectOptions, target?: string, features?: string): Promise<boolean>;
21116
21455
  }
21117
21456
  export class SheetCell implements ICell {
@@ -21297,10 +21636,8 @@ declare module "sheet/SheetRanges" {
21297
21636
  autoFit(options?: ICellRange.AutoFitOptions): this;
21298
21637
  /** {@inheritDoc ICellRanges.clear} */
21299
21638
  clear(applyTo?: ICell.Content, options?: ITransaction.OperationOptions): this;
21300
- /** {@inheritDoc ICellRanges.updateStyle} */
21301
- updateStyle(style: IStyle.Update, options?: IStyle.UpdateOptions): this;
21302
- /** {@inheritDoc ICellRange.getStyleUpdater} */
21303
- getStyleUpdater(): IStyle.Updater;
21639
+ /** {@inheritDoc ICellRanges.getStyle} */
21640
+ getStyle(): IStyle;
21304
21641
  /** {@inheritDoc ICellRanges.merge} */
21305
21642
  merge(options?: ICellRange.MergeOptions | IRange.Orientations): this;
21306
21643
  /** {@inheritDoc ICellRanges.unmerge} */
@@ -22029,7 +22366,7 @@ declare module "sheet/Sheet" {
22029
22366
  /** @internal */
22030
22367
  protected _getScalar(rowIndex: number, columnIndex: number, asJSDate?: boolean): Scalar | JSScalar;
22031
22368
  /** @internal */
22032
- protected getStyleUpdater(_range: IRange.Coords, _selection?: IRangeSelection.Coords): IStyle.Updater;
22369
+ protected _getStyle(ranges: IRange.Coords[], anchor?: IRangeSelection.Coords): IStyle;
22033
22370
  /** @internal */
22034
22371
  protected _initState(): void;
22035
22372
  /** @internal */
@@ -22238,10 +22575,8 @@ declare module "sheet/SheetRange" {
22238
22575
  setHyperlink(hyperlink: IHyperlink.Update, options?: ITransaction.OperationOptions): this;
22239
22576
  /** {@inheritDoc ICellRange.setComments} */
22240
22577
  setComments(comments: IComment.Properties, options?: ITransaction.OperationOptions): this;
22241
- /** {@inheritDoc ICellRange.updateStyle} */
22242
- updateStyle(style: IStyle.Update, options?: IStyle.UpdateOptions): this;
22243
- /** {@inheritDoc ICellRange.getStyleUpdater} */
22244
- getStyleUpdater(): IStyle.Updater;
22578
+ /** {@inheritDoc ICellRange.getStyle} */
22579
+ getStyle(): IStyle;
22245
22580
  /** {@inheritDoc ICellRange.merge} */
22246
22581
  merge(options?: IRange.Orientations | ICellRange.MergeOptions): this;
22247
22582
  /** {@inheritDoc ICellRange.unmerge} */
@@ -31198,13 +31533,13 @@ declare module "cellRange/ICellRanges" {
31198
31533
  */
31199
31534
  getSheet(): ISheet;
31200
31535
  /**
31201
- * {@inheritDoc ICellRange.getStyleUpdater}
31202
- */
31203
- getStyleUpdater(): IStyle.Updater;
31204
- /**
31205
- * {@inheritDoc ICellRange.updateStyle}
31536
+ * Returns the style for the range.
31537
+ *
31538
+ * @remarks
31539
+ * When querying the style the values will always be for the top left. However the
31540
+ * set values work for the entire range.
31206
31541
  */
31207
- updateStyle(style: IStyle.Update, options?: IStyle.UpdateOptions): this;
31542
+ getStyle(): IStyle;
31208
31543
  /**
31209
31544
  * {@inheritDoc ICellRange.find}
31210
31545
  */
@@ -31791,30 +32126,6 @@ declare module "cellRange/ICellRange" {
31791
32126
  * - Methods that transform the range's data into a different type use a `to` prefix (e.g., `toArray()`).
31792
32127
  */
31793
32128
  export interface ICellRange {
31794
- /**
31795
- * Retrieves an {@link IStyle.Updater} object for updating the styles of the range.
31796
- *
31797
- * Unlike {@link ICell.getStyle}, which provides a read-only view of a cell's style,
31798
- * this method returns an updater object that allows modifications to the styles
31799
- * of all cells in the range.
31800
- *
31801
- * @example
31802
- * ```typescript
31803
- * const updater = range.getStyleUpdater();
31804
- * updater.setColor("blue").setFont("Arial");
31805
- * ```
31806
- * @returns {IStyle.Updater} A style updater for the range.
31807
- *
31808
- * @remarks
31809
- * - **Deterministic Behavior**: All updates via the `IStyle.Updater` are applied
31810
- * to the entire range, overriding any mixed styles with the specified values.
31811
- * - **Read-Only Alternatives**: To inspect styles across all cells in the range
31812
- * without modifying them, use {@link ICellRange.entries} or {@link ICellRange.forEach} to iterate over immutable
31813
- * {@link ICell}s.
31814
- * - **Immutable Philosophy**: This API aligns with the principle that `ICell`
31815
- * objects are immutable, while `ICellRange` is the interface for mutable operations.
31816
- */
31817
- getStyleUpdater(): IStyle.Updater;
31818
32129
  /**
31819
32130
  * Return an array of coords for all merges.
31820
32131
  *
@@ -31851,6 +32162,13 @@ declare module "cellRange/ICellRange" {
31851
32162
  * {@link ICellRange.getValues}
31852
32163
  */
31853
32164
  getValue(options?: ICellRange.GetValuesOptions): Scalar | JSScalar;
32165
+ /**
32166
+ * Returns the style for the ranges.
32167
+ *
32168
+ * @see
32169
+ * {@link ICellRange.getStyle}
32170
+ */
32171
+ getStyle(): IStyle;
31854
32172
  /**
31855
32173
  * Returns the intersection of the current range and the specified range.
31856
32174
  *
@@ -32172,14 +32490,6 @@ declare module "cellRange/ICellRange" {
32172
32490
  * @returns Current `ICellRange`.
32173
32491
  */
32174
32492
  unmerge(options?: ITransaction.OperationOptions): this;
32175
- /**
32176
- * Update the style for the range(s).
32177
- *
32178
- * @param style {@link IStyle.Update}
32179
- * @param options {@link IStyle.UpdateOptions}
32180
- * @returns Current `ICellRange`.
32181
- */
32182
- updateStyle(style: IStyle.Update, options?: IStyle.UpdateOptions): this;
32183
32493
  /**
32184
32494
  * Returns an iterator of ICells that match the results.
32185
32495
  *