API Reference
@univerjs
@univerjs/engine-render
classes
Rowheaderlayout

@univerjs/engine-render v0.4.2Docs


Class: RowHeaderLayout

Extends

Constructors

new RowHeaderLayout()

new RowHeaderLayout(cfg?): RowHeaderLayout

Parameters

ParameterType
cfg?IRowsHeaderCfgParam

Returns

RowHeaderLayout

Overrides

SheetExtension.constructor

Defined in

submodules/univer/packages/engine-render/src/components/sheets/extensions/row-header-layout.ts:58 (opens in a new tab)

Properties

PropertyTypeDefault valueOverridesInherited fromDefined in
Z_INDEXnumber10SheetExtension.Z_INDEX-submodules/univer/packages/engine-render/src/components/sheets/extensions/row-header-layout.ts:46 (opens in a new tab)
extensionOffsetIExtensionConfig{}-SheetExtension.extensionOffsetsubmodules/univer/packages/engine-render/src/components/extension.ts:53 (opens in a new tab)
headerStyleIRowStyleCfgundefined--submodules/univer/packages/engine-render/src/components/sheets/extensions/row-header-layout.ts:48 (opens in a new tab)
parentNullable<BaseObject>undefined-SheetExtension.parentsubmodules/univer/packages/engine-render/src/components/extension.ts:47 (opens in a new tab)
rowsCfgIARowCfg[][]--submodules/univer/packages/engine-render/src/components/sheets/extensions/row-header-layout.ts:47 (opens in a new tab)
translateXnumber0-SheetExtension.translateXsubmodules/univer/packages/engine-render/src/components/extension.ts:49 (opens in a new tab)
translateYnumber0-SheetExtension.translateYsubmodules/univer/packages/engine-render/src/components/extension.ts:51 (opens in a new tab)
typeSHEET_EXTENSION_TYPESHEET_EXTENSION_TYPE.GRID-SheetExtension.typesubmodules/univer/packages/engine-render/src/components/sheets/extensions/sheet-extension.ts:34 (opens in a new tab)
uKeystringUNIQUE_KEYSheetExtension.uKey-submodules/univer/packages/engine-render/src/components/sheets/extensions/row-header-layout.ts:45 (opens in a new tab)

Accessors

zIndex

get zIndex(): number

Returns

number

Inherited from

SheetExtension.zIndex

Defined in

submodules/univer/packages/engine-render/src/components/extension.ts:55 (opens in a new tab)

Methods

_getScale()

protected _getScale(parentScale): number

Parameters

ParameterType
parentScaleIScale

Returns

number

Inherited from

SheetExtension._getScale

Defined in

submodules/univer/packages/engine-render/src/components/extension.ts:67 (opens in a new tab)


clearCache()

clearCache(): void

Returns

void

Inherited from

SheetExtension.clearCache

Defined in

submodules/univer/packages/engine-render/src/components/extension.ts:63 (opens in a new tab)


configHeaderRow()

configHeaderRow(cfg): void

Parameters

ParameterType
cfgIRowsHeaderCfgParam

Returns

void

Defined in

submodules/univer/packages/engine-render/src/components/sheets/extensions/row-header-layout.ts:65 (opens in a new tab)


dispose()

dispose(): void

Returns

void

Inherited from

SheetExtension.dispose

Defined in

submodules/univer/packages/engine-render/src/components/extension.ts:71 (opens in a new tab)


draw()

draw(
   ctx, 
   parentScale, 
   spreadsheetSkeleton): void

Parameters

ParameterType
ctxUniverRenderingContext
parentScaleIScale
spreadsheetSkeletonSpreadsheetSkeleton

Returns

void

Overrides

SheetExtension.draw

Defined in

submodules/univer/packages/engine-render/src/components/sheets/extensions/row-header-layout.ts:97 (opens in a new tab)


getCellByIndex()

getCellByIndex(
   rowIndex, 
   columnIndex, 
   rowHeightAccumulation, 
   columnWidthAccumulation, 
   dataMergeCache): ISelectionCellWithMergeInfo

Parameters

ParameterType
rowIndexnumber
columnIndexnumber
rowHeightAccumulationnumber[]
columnWidthAccumulationnumber[]
dataMergeCacheIRange[]

Returns

ISelectionCellWithMergeInfo

cell Position & mergeInfo

Deprecated

The function maybe cause performance issue, use spreadsheetSkeleton.getCellByIndexWithNoHeader instead. Get ISelectionCellWithMergeInfo by cell rowIndex and cell columnIndex. The startXY in return value does not include rowHeader and columnHeader.

Inherited from

SheetExtension.getCellByIndex

Defined in

submodules/univer/packages/engine-render/src/components/sheets/extensions/sheet-extension.ts:48 (opens in a new tab)


getCfgOfCurrentRow()

getCfgOfCurrentRow(rowIndex): [IARowCfgObj, boolean]

Parameters

ParameterType
rowIndexnumber

Returns

[IARowCfgObj, boolean]

Defined in

submodules/univer/packages/engine-render/src/components/sheets/extensions/row-header-layout.ts:70 (opens in a new tab)


isRenderDiffRangesByCell()

isRenderDiffRangesByCell(rangeP, diffRanges?): boolean

Parameters

ParameterType
rangePIRange
diffRanges?IRange[]

Returns

boolean

Inherited from

SheetExtension.isRenderDiffRangesByCell

Defined in

submodules/univer/packages/engine-render/src/components/sheets/extensions/sheet-extension.ts:60 (opens in a new tab)


isRenderDiffRangesByColumn()

isRenderDiffRangesByColumn(
   curStartColumn, 
   curEndColumn, 
   diffRanges?): boolean

Parameters

ParameterType
curStartColumnnumber
curEndColumnnumber
diffRanges?IRange[]

Returns

boolean

Inherited from

SheetExtension.isRenderDiffRangesByColumn

Defined in

submodules/univer/packages/engine-render/src/components/sheets/extensions/sheet-extension.ts:97 (opens in a new tab)


isRenderDiffRangesByRow()

isRenderDiffRangesByRow(
   curStartRow, 
   curEndRow, 
   diffRanges?): boolean

Parameters

ParameterType
curStartRownumber
curEndRownumber
diffRanges?IRange[]

Returns

boolean

Inherited from

SheetExtension.isRenderDiffRangesByRow

Defined in

submodules/univer/packages/engine-render/src/components/sheets/extensions/sheet-extension.ts:130 (opens in a new tab)


isRowInRanges()

isRowInRanges(
   curStartRow, 
   curEndRow, 
   viewranges?): boolean

传入的 row 范围和 diffRanges 有相交, 返回 true

Parameters

ParameterType
curStartRownumber
curEndRownumber
viewranges?IRange[]

Returns

boolean

Inherited from

SheetExtension.isRowInRanges

Defined in

submodules/univer/packages/engine-render/src/components/sheets/extensions/sheet-extension.ts:169 (opens in a new tab)


setStyleToCtx()

setStyleToCtx(ctx, rowStyle): void

Parameters

ParameterType
ctxUniverRenderingContext
rowStylePartial<IColumnStyleCfg>

Returns

void

Defined in

submodules/univer/packages/engine-render/src/components/sheets/extensions/row-header-layout.ts:88 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.