@univerjs/engine-render v0.5.4


Class: SheetExtension

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

Extends

Extended by

Constructors

new SheetExtension()

new SheetExtension(): SheetExtension

Returns

SheetExtension

Inherited from

ComponentExtension.constructor

Properties

PropertyModifierTypeDefault valueOverridesInherited fromDefined in
extensionOffsetpublicIExtensionConfig{}-ComponentExtension.extensionOffsetpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/extension.ts:53
parentpublicNullable<BaseObject>undefined-ComponentExtension.parentpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/extension.ts:47
translateXpublicnumber0-ComponentExtension.translateXpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/extension.ts:49
translateYpublicnumber0-ComponentExtension.translateYpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/extension.ts:51
typepublicGRIDSHEET_EXTENSION_TYPE.GRIDComponentExtension.type-packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/sheets/extensions/sheet-extension.ts:33
uKeypublicstring''-ComponentExtension.uKeypackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/extension.ts:41
Z_INDEXprotectednumber0-ComponentExtension.Z_INDEXpackages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/components/extension.ts:45

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

ComponentExtension.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

ComponentExtension._getScale


clearCache()

clearCache(): void

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

Returns

void

Inherited from

ComponentExtension.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

ComponentExtension.dispose


draw()

draw(
   ctx, 
   parentScale, 
   skeleton, 
   diffBounds?, 
   more?): void

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

Parameters

ParameterType
ctxUniverRenderingContext
parentScaleIScale
skeletonSpreadsheetSkeleton
diffBounds?IRange[]
more?IDrawInfo

Returns

void

Inherited from

ComponentExtension.draw


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


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


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


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