@univerjs/core 0.9.1 → 0.9.2

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.
@@ -110,9 +110,22 @@ export declare class Worksheet {
110
110
  *
111
111
  * @param {number} row The row index of the cell
112
112
  * @param {number} col The column index of the cell
113
+ * @param {boolean} [rowPriority] If true, row style will precede column style, otherwise use this._isRowStylePrecedeColumnStyle
113
114
  * @returns {IStyleData} The composed style of the cell
114
115
  */
115
116
  getComposedCellStyle(row: number, col: number, rowPriority?: boolean): IStyleData;
117
+ /**
118
+ * Get the composed style of the cell. If you want to get the style of the cell without merging row style,
119
+ * col style and default style, please use {@link getCellStyle} instead.
120
+ * For performance reason, if you already have the cell data, you can use this method to avoid getting the cell data again.
121
+ *
122
+ * @param {number} row The row index of the cell
123
+ * @param {number} col The column index of the cell
124
+ * @param {Nullable<ICellDataForSheetInterceptor>} cellData The cell data of the cell.
125
+ * @param {boolean} [rowPriority] If true, row style will precede column style, otherwise use this._isRowStylePrecedeColumnStyle
126
+ * @returns {IStyleData} The composed style of the cell
127
+ */
128
+ getComposedCellStyleByCellData(row: number, col: number, cellData: Nullable<ICellDataForSheetInterceptor>, rowPriority?: boolean): IStyleData;
116
129
  /**
117
130
  * Returns WorkSheet Cell Data Matrix
118
131
  * @returns WorkSheet Cell Data Matrix