@univerjs/engine-render v0.5.4


Class: Font

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/sheets/extensions/font.ts:68

Extends

Constructors

new Font()

new Font(): Font

Returns

Font

Inherited from

SheetExtension.constructor

Properties

PropertyTypeDefault valueOverridesInherited fromDefined in
extensionOffsetIExtensionConfig{}-SheetExtension.extensionOffsetpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/extension.ts:53
parentNullable<BaseObject>undefined-SheetExtension.parentpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/extension.ts:47
translateXnumber0-SheetExtension.translateXpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/extension.ts:49
translateYnumber0-SheetExtension.translateYpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/extension.ts:51
typeGRIDSHEET_EXTENSION_TYPE.GRID-SheetExtension.typepackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/sheets/extensions/sheet-extension.ts:33
uKeystringUNIQUE_KEYSheetExtension.uKey-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/sheets/extensions/font.ts:69
Z_INDEXnumberFONT_EXTENSION_Z_INDEXSheetExtension.Z_INDEX-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/sheets/extensions/font.ts:70

Accessors

zIndex

Get Signature

get zIndex(): number

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/extension.ts:55

Returns

number

Inherited from

SheetExtension.zIndex

Methods

_getScale()

protected _getScale(parentScale): number

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/extension.ts:67

Parameters

ParameterType
parentScaleIScale

Returns

number

Inherited from

SheetExtension._getScale


_renderFontEachCell()

_renderFontEachCell(
   renderFontCtx, 
   row, 
   col, 
   fontMatrix): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/sheets/extensions/font.ts:162

Parameters

ParameterType
renderFontCtxIRenderFontContext
rownumber
colnumber
fontMatrixObjectMatrix<IFontCacheItem>

Returns

boolean


clearCache()

clearCache(): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/extension.ts:63

Returns

void

Inherited from

SheetExtension.clearCache


dispose()

dispose(): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/extension.ts:71

Returns

void

Inherited from

SheetExtension.dispose


draw()

draw(
   ctx, 
   parentScale, 
   spreadsheetSkeleton, 
   diffRanges, 
   moreBoundsInfo): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/sheets/extensions/font.ts:77

Parameters

ParameterType
ctxUniverRenderingContext
parentScaleIScale
spreadsheetSkeletonSpreadsheetSkeleton
diffRangesIRange[]
moreBoundsInfoIDrawInfo

Returns

void

Overrides

SheetExtension.draw


getDocuments()

getDocuments(): any

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/sheets/extensions/font.ts:72

Returns

any


isRenderDiffRangesByCell()

isRenderDiffRangesByCell(rangeP, diffRanges?): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/sheets/extensions/sheet-extension.ts:35

Parameters

ParameterType
rangePIRange
diffRanges?IRange[]

Returns

boolean

Inherited from

SheetExtension.isRenderDiffRangesByCell


isRenderDiffRangesByColumn()

isRenderDiffRangesByColumn(
   curStartColumn, 
   curEndColumn, 
   diffRanges?): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/sheets/extensions/sheet-extension.ts:72

Parameters

ParameterType
curStartColumnnumber
curEndColumnnumber
diffRanges?IRange[]

Returns

boolean

Inherited from

SheetExtension.isRenderDiffRangesByColumn


isRenderDiffRangesByRow()

isRenderDiffRangesByRow(
   curStartRow, 
   curEndRow, 
   diffRanges?): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/sheets/extensions/sheet-extension.ts:105

Parameters

ParameterType
curStartRownumber
curEndRownumber
diffRanges?IRange[]

Returns

boolean

Inherited from

SheetExtension.isRenderDiffRangesByRow


isRowInRanges()

isRowInRanges(
   curStartRow, 
   curEndRow, 
   viewranges?): boolean

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/sheets/extensions/sheet-extension.ts:144

Check if row range is in view ranges

Parameters

ParameterType
curStartRownumber
curEndRownumber
viewranges?IRange[]

Returns

boolean

Inherited from

SheetExtension.isRowInRanges