@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.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +214 -194
- package/lib/types/components/sheets/extensions/font.d.ts +5 -2
- package/lib/types/components/sheets/interfaces.d.ts +2 -1
- package/lib/types/components/sheets/sheet-skeleton.d.ts +2 -0
- package/lib/umd/index.js +1 -1
- package/package.json +4 -17
|
@@ -16,7 +16,10 @@ interface IRenderFontContext {
|
|
|
16
16
|
diffRanges: IRange[];
|
|
17
17
|
spreadsheetSkeleton: SpreadsheetSkeleton;
|
|
18
18
|
overflowRectangle: Nullable<IRange>;
|
|
19
|
-
cellData:
|
|
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
|
|
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 {
|