@univerjsengine-renderclassesBackground

@univerjs/engine-render v0.5.0-beta.1 • Docs


Class: Background

Extends

Constructors

new Background()

new Background(): Background

Returns

Background

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
PRINTING_Z_INDEXnumberPRINTING_Z_INDEX--packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/sheets/extensions/background.ts:54
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
typeSHEET_EXTENSION_TYPESHEET_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/background.ts:50
Z_INDEXnumberDOC_EXTENSION_Z_INDEXSheetExtension.Z_INDEX-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/sheets/extensions/background.ts:52

Accessors

zIndex

Get Signature

get zIndex(): number
Returns

number

Overrides

SheetExtension.zIndex

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/sheets/extensions/background.ts:56

Methods

_getScale()

protected _getScale(parentScale): number

Parameters

ParameterType
parentScaleIScale

Returns

number

Inherited from

SheetExtension._getScale

Defined in

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


clearCache()

clearCache(): void

Returns

void

Inherited from

SheetExtension.clearCache

Defined in

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


dispose()

dispose(): void

Returns

void

Inherited from

SheetExtension.dispose

Defined in

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


draw()

draw(
   ctx, 
   _parentScale, 
   spreadsheetSkeleton, 
   diffRanges, 
   __namedParameters): void

Parameters

ParameterType
ctxUniverRenderingContext
_parentScaleIScale
spreadsheetSkeletonSpreadsheetSkeleton
diffRangesIRange[]
__namedParametersIDrawInfo

Returns

void

Overrides

SheetExtension.draw

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/sheets/extensions/background.ts:61


isRenderDiffRangesByCell()

isRenderDiffRangesByCell(rangeP, diffRanges?): boolean

Parameters

ParameterType
rangePIRange
diffRanges?IRange[]

Returns

boolean

Inherited from

SheetExtension.isRenderDiffRangesByCell

Defined in

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


isRenderDiffRangesByColumn()

isRenderDiffRangesByColumn(
   curStartColumn, 
   curEndColumn, 
   diffRanges?): boolean

Parameters

ParameterType
curStartColumnnumber
curEndColumnnumber
diffRanges?IRange[]

Returns

boolean

Inherited from

SheetExtension.isRenderDiffRangesByColumn

Defined in

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


isRenderDiffRangesByRow()

isRenderDiffRangesByRow(
   curStartRow, 
   curEndRow, 
   diffRanges?): boolean

Parameters

ParameterType
curStartRownumber
curEndRownumber
diffRanges?IRange[]

Returns

boolean

Inherited from

SheetExtension.isRenderDiffRangesByRow

Defined in

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


isRowInRanges()

isRowInRanges(
   curStartRow, 
   curEndRow, 
   viewranges?): boolean

Check if row range is in view ranges

Parameters

ParameterType
curStartRownumber
curEndRownumber
viewranges?IRange[]

Returns

boolean

Inherited from

SheetExtension.isRowInRanges

Defined in

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


renderBGByCell()

renderBGByCell(
   bgContext, 
   row, 
   col): undefined | true

Parameters

ParameterType
bgContextIRenderBGContext
rownumber
colnumber

Returns

undefined | true

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/sheets/extensions/background.ts:170