@univerjs/core 0.19.0 → 0.20.0
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/lib/cjs/index.js +3 -3
- package/lib/es/index.js +2 -2
- package/lib/index.js +2 -2
- package/lib/types/index.d.ts +1 -1
- package/lib/types/sheets/sheet-skeleton.d.ts +11 -54
- package/lib/umd/index.js +3 -3
- package/package.json +3 -3
|
@@ -103,9 +103,6 @@ export declare class SheetSkeleton extends Skeleton {
|
|
|
103
103
|
private _generateRowMatrixCache;
|
|
104
104
|
/**
|
|
105
105
|
* Calc columnWidthAccumulation by columnData
|
|
106
|
-
* @param colCount
|
|
107
|
-
* @param columnData
|
|
108
|
-
* @param defaultColumnWidth
|
|
109
106
|
*/
|
|
110
107
|
private _generateColumnMatrixCache;
|
|
111
108
|
intersectMergeRange(row: number, column: number): boolean;
|
|
@@ -118,7 +115,6 @@ export declare class SheetSkeleton extends Skeleton {
|
|
|
118
115
|
protected _updateLayout(): void;
|
|
119
116
|
/**
|
|
120
117
|
* Refresh cache after markDirty by SheetSkeletonManagerService.reCalculate()
|
|
121
|
-
* @param bounds
|
|
122
118
|
*/
|
|
123
119
|
calculate(): Nullable<SheetSkeleton>;
|
|
124
120
|
resetRangeCache(_ranges: IRange[]): void;
|
|
@@ -126,7 +122,6 @@ export declare class SheetSkeleton extends Skeleton {
|
|
|
126
122
|
protected _hasUnMergedCellInRow(rowIndex: number, startColumn: number, endColumn: number): boolean;
|
|
127
123
|
/**
|
|
128
124
|
* expand curr range if it's intersect with merge range.
|
|
129
|
-
* @param range
|
|
130
125
|
* @returns {IRange} expanded range because merge info.
|
|
131
126
|
*/
|
|
132
127
|
expandRangeByMerge(range: IRange, inRefSelectionMode?: boolean): IRange;
|
|
@@ -134,38 +129,15 @@ export declare class SheetSkeleton extends Skeleton {
|
|
|
134
129
|
getRowCount(): number;
|
|
135
130
|
/**
|
|
136
131
|
* New version to get merge data.
|
|
137
|
-
* @param row
|
|
138
|
-
* @param column
|
|
139
132
|
* @returns {ISelectionCell} The cell info with merge data
|
|
140
133
|
*/
|
|
141
134
|
protected _getCellMergeInfo(row: number, column: number): ISelectionCell;
|
|
142
|
-
/**
|
|
143
|
-
* @deprecated use getNoMergeCellWithCoordByIndex instead.
|
|
144
|
-
* @param rowIndex
|
|
145
|
-
* @param columnIndex
|
|
146
|
-
* @param header
|
|
147
|
-
* @returns
|
|
148
|
-
*/
|
|
149
|
-
getNoMergeCellPositionByIndex(rowIndex: number, columnIndex: number, header?: boolean): IPosition;
|
|
150
135
|
/**
|
|
151
136
|
* Original name: getNoMergeCellPositionByIndex
|
|
152
|
-
* @param rowIndex
|
|
153
|
-
* @param columnIndex
|
|
154
137
|
*/
|
|
155
138
|
getNoMergeCellWithCoordByIndex(rowIndex: number, columnIndex: number, header?: boolean): IPosition;
|
|
156
139
|
/**
|
|
157
|
-
*
|
|
158
|
-
* @param rowIndex
|
|
159
|
-
* @param columnIndex
|
|
160
|
-
*/
|
|
161
|
-
getNoMergeCellPositionByIndexWithNoHeader(rowIndex: number, columnIndex: number): IPosition;
|
|
162
|
-
/**
|
|
163
|
-
*
|
|
164
|
-
* @param offsetY scaled offset y
|
|
165
|
-
* @param scaleY scale y
|
|
166
|
-
* @param scrollXY
|
|
167
|
-
* @param scrollXY.x
|
|
168
|
-
* @param scrollXY.y
|
|
140
|
+
* Get row index by offset y.
|
|
169
141
|
*/
|
|
170
142
|
getRowIndexByOffsetY(offsetY: number, scaleY: number, scrollXY: {
|
|
171
143
|
x: number;
|
|
@@ -173,10 +145,6 @@ export declare class SheetSkeleton extends Skeleton {
|
|
|
173
145
|
}, options?: IGetRowColByPosOptions): number;
|
|
174
146
|
/**
|
|
175
147
|
* Get column index by offset x.
|
|
176
|
-
* @param offsetX scaled offset x
|
|
177
|
-
* @param scaleX scale x
|
|
178
|
-
* @param scrollXY scrollXY
|
|
179
|
-
* @returns column index
|
|
180
148
|
*/
|
|
181
149
|
getColumnIndexByOffsetX(evtOffsetX: number, scaleX: number, scrollXY: {
|
|
182
150
|
x: number;
|
|
@@ -191,7 +159,6 @@ export declare class SheetSkeleton extends Skeleton {
|
|
|
191
159
|
* @param scrollXY render viewport scroll {x, y}, scene.getScrollXYByRelativeCoords, scene.getScrollXY
|
|
192
160
|
* @param scrollXY.x
|
|
193
161
|
* @param scrollXY.y
|
|
194
|
-
* @returns {row, col}
|
|
195
162
|
*/
|
|
196
163
|
getCellIndexByOffset(offsetX: number, offsetY: number, scaleX: number, scaleY: number, scrollXY: {
|
|
197
164
|
x: number;
|
|
@@ -202,11 +169,6 @@ export declare class SheetSkeleton extends Skeleton {
|
|
|
202
169
|
};
|
|
203
170
|
/**
|
|
204
171
|
* Unlike getCellWithCoordByOffset, returning data doesn't include coord.
|
|
205
|
-
* @param offsetX
|
|
206
|
-
* @param offsetY
|
|
207
|
-
* @param scaleX
|
|
208
|
-
* @param scaleY
|
|
209
|
-
* @param scrollXY
|
|
210
172
|
*/
|
|
211
173
|
getCellByOffset(offsetX: number, offsetY: number, scaleX: number, scaleY: number, scrollXY: {
|
|
212
174
|
x: number;
|
|
@@ -214,7 +176,6 @@ export declare class SheetSkeleton extends Skeleton {
|
|
|
214
176
|
}): Nullable<ICellInfo>;
|
|
215
177
|
/**
|
|
216
178
|
* Return cell information corresponding to the current coordinates, including the merged cell object.
|
|
217
|
-
*
|
|
218
179
|
* @param row Specified Row Coordinate
|
|
219
180
|
* @param column Specified Column Coordinate
|
|
220
181
|
*/
|
|
@@ -237,19 +198,15 @@ export declare class SheetSkeleton extends Skeleton {
|
|
|
237
198
|
}, options?: IGetRowColByPosOptions): ICellWithCoord;
|
|
238
199
|
/**
|
|
239
200
|
* Original name: getOffsetByPositionX
|
|
240
|
-
* @param column
|
|
241
|
-
* @returns
|
|
242
201
|
*/
|
|
243
202
|
getOffsetByColumn(column: number): number;
|
|
244
203
|
/**
|
|
245
204
|
* Original name: getOffsetByPositionY
|
|
246
|
-
* @param row
|
|
247
205
|
*/
|
|
248
206
|
getOffsetByRow(row: number): number;
|
|
249
207
|
/**
|
|
250
208
|
* Original name: getDecomposedOffset
|
|
251
|
-
*
|
|
252
|
-
* @param offsetY
|
|
209
|
+
* Here, offsetX and offsetY are the coordinates in the main viewport, excluding the rowHeaderWidthAndMarginLeft and columnHeaderHeightAndMarginTop.
|
|
253
210
|
*/
|
|
254
211
|
getOffsetRelativeToRowCol(offsetX: number, offsetY: number): {
|
|
255
212
|
row: number;
|
|
@@ -257,6 +214,15 @@ export declare class SheetSkeleton extends Skeleton {
|
|
|
257
214
|
columnOffset: number;
|
|
258
215
|
rowOffset: number;
|
|
259
216
|
};
|
|
217
|
+
/**
|
|
218
|
+
* Here, offsetX and offsetY are the coordinates in the viewport, including the rowHeaderWidthAndMarginLeft and columnHeaderHeightAndMarginTop.
|
|
219
|
+
*/
|
|
220
|
+
getCellIndexAndOffsetByPosition(offsetX: number, offsetY: number): {
|
|
221
|
+
row: number;
|
|
222
|
+
rowOffset: number;
|
|
223
|
+
column: number;
|
|
224
|
+
columnOffset: number;
|
|
225
|
+
};
|
|
260
226
|
protected _updateConfigAndGetDocumentModel(documentData: IDocumentData, horizontalAlign: HorizontalAlign, paddingData: IPaddingData, renderConfig?: IDocumentRenderConfig): Nullable<DocumentDataModel>;
|
|
261
227
|
dispose(): void;
|
|
262
228
|
}
|
|
@@ -269,15 +235,6 @@ export declare class SheetSkeleton extends Skeleton {
|
|
|
269
235
|
* @param columnWidthAccumulation
|
|
270
236
|
*/
|
|
271
237
|
export declare function getCellCoordByIndexSimple(row: number, column: number, rowHeightAccumulation: number[], columnWidthAccumulation: number[]): IPosition;
|
|
272
|
-
/**
|
|
273
|
-
* @deprecated use `getCellCoordByIndexSimple` instead.
|
|
274
|
-
* @param row
|
|
275
|
-
* @param column
|
|
276
|
-
* @param rowHeightAccumulation
|
|
277
|
-
* @param columnWidthAccumulation
|
|
278
|
-
* @returns
|
|
279
|
-
*/
|
|
280
|
-
export declare function getCellPositionByIndexSimple(row: number, column: number, rowHeightAccumulation: number[], columnWidthAccumulation: number[]): IPosition;
|
|
281
238
|
/**
|
|
282
239
|
* @description Get the cell position information of the specified row and column, including the position of the cell and the merge info
|
|
283
240
|
* @param {number} row The row index of the cell
|