@univerjs/engine-render 0.5.2 → 0.5.3

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.
@@ -16,7 +16,10 @@ interface IRenderFontContext {
16
16
  diffRanges: IRange[];
17
17
  spreadsheetSkeleton: SpreadsheetSkeleton;
18
18
  overflowRectangle: Nullable<IRange>;
19
- cellData: Nullable<ICellDataForSheetInterceptor>;
19
+ cellData: {
20
+ fontCache?: Nullable<IFontCacheItem>;
21
+ cellDataInterceptor?: Nullable<ICellDataForSheetInterceptor>;
22
+ };
20
23
  startY: number;
21
24
  endY: number;
22
25
  startX: number;
@@ -35,7 +38,7 @@ export declare class Font extends SheetExtension {
35
38
  * @param renderFontContext
36
39
  * @param row
37
40
  * @param col
38
- * @param fontMatrix
41
+ * @param fontCache
39
42
  */
40
43
  private _setFontRenderBounds;
41
44
  private _renderDocuments;
@@ -1,4 +1,4 @@
1
- import { BorderStyleTypes, HorizontalAlign, ICellWithCoord, ImageCacheMap, ObjectMatrix, VerticalAlign, WrapStrategy } from '@univerjs/core';
1
+ import { BorderStyleTypes, HorizontalAlign, ICellWithCoord, IFontRenderExtension, ImageCacheMap, ObjectMatrix, VerticalAlign, WrapStrategy } from '@univerjs/core';
2
2
  import { BORDER_TYPE as BORDER_LTRB } from '../../basics/const';
3
3
  import { Canvas } from '../../canvas';
4
4
  import { UniverRenderingContext } from '../../context';
@@ -19,6 +19,7 @@ export interface IFontCacheItem {
19
19
  horizontalAlign: HorizontalAlign;
20
20
  wrapStrategy: WrapStrategy;
21
21
  imageCacheMap: ImageCacheMap;
22
+ fontRenderExtension?: IFontRenderExtension;
22
23
  }
23
24
  type colorString = string;
24
25
  export interface IStylesCache {
@@ -453,5 +453,7 @@ export declare class SpreadsheetSkeleton extends Skeleton {
453
453
  * @param col
454
454
  */
455
455
  private _offsetXToCol;
456
+ getHiddenRowsInRange(range: IRowRange): number[];
457
+ getHiddenColumnsInRange(range: IColumnRange): number[];
456
458
  }
457
459
  export {};