@univerjs/engine-render v0.4.2 • Docs
Class: ColumnHeaderLayout
Column Header Bar, include a lot of columns header
Extends
Constructors
new ColumnHeaderLayout()
new ColumnHeaderLayout(cfg?): ColumnHeaderLayout
Parameters
Parameter | Type |
---|---|
cfg ? | IColumnsHeaderCfgParam |
Returns
Overrides
Defined in
Properties
Accessors
zIndex
get zIndex(): number
Returns
number
Inherited from
Defined in
submodules/univer/packages/engine-render/src/components/extension.ts:55 (opens in a new tab)
Methods
_getScale()
protected _getScale(parentScale): number
Parameters
Parameter | Type |
---|---|
parentScale | IScale |
Returns
number
Inherited from
Defined in
submodules/univer/packages/engine-render/src/components/extension.ts:67 (opens in a new tab)
clearCache()
clearCache(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/engine-render/src/components/extension.ts:63 (opens in a new tab)
configHeaderColumn()
configHeaderColumn(cfg): void
Parameters
Parameter | Type |
---|---|
cfg | IColumnsHeaderCfgParam |
Returns
void
Defined in
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/engine-render/src/components/extension.ts:71 (opens in a new tab)
draw()
draw(
ctx,
parentScale,
spreadsheetSkeleton): void
Parameters
Parameter | Type |
---|---|
ctx | UniverRenderingContext |
parentScale | IScale |
spreadsheetSkeleton | SpreadsheetSkeleton |
Returns
void
Overrides
Defined in
getCellByIndex()
getCellByIndex(
rowIndex,
columnIndex,
rowHeightAccumulation,
columnWidthAccumulation,
dataMergeCache): ISelectionCellWithMergeInfo
Parameters
Parameter | Type |
---|---|
rowIndex | number |
columnIndex | number |
rowHeightAccumulation | number [] |
columnWidthAccumulation | number [] |
dataMergeCache | IRange [] |
Returns
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
Defined in
getCfgOfCurrentColumn()
getCfgOfCurrentColumn(colIndex): [IAColumnCfgObj, boolean]
Parameters
Parameter | Type |
---|---|
colIndex | number |
Returns
[IAColumnCfgObj
, boolean
]
Defined in
isRenderDiffRangesByCell()
isRenderDiffRangesByCell(rangeP, diffRanges?): boolean
Parameters
Parameter | Type |
---|---|
rangeP | IRange |
diffRanges ? | IRange [] |
Returns
boolean
Inherited from
SheetExtension
.isRenderDiffRangesByCell
Defined in
isRenderDiffRangesByColumn()
isRenderDiffRangesByColumn(
curStartColumn,
curEndColumn,
diffRanges?): boolean
Parameters
Parameter | Type |
---|---|
curStartColumn | number |
curEndColumn | number |
diffRanges ? | IRange [] |
Returns
boolean
Inherited from
SheetExtension
.isRenderDiffRangesByColumn
Defined in
isRenderDiffRangesByRow()
isRenderDiffRangesByRow(
curStartRow,
curEndRow,
diffRanges?): boolean
Parameters
Parameter | Type |
---|---|
curStartRow | number |
curEndRow | number |
diffRanges ? | IRange [] |
Returns
boolean
Inherited from
SheetExtension
.isRenderDiffRangesByRow
Defined in
isRowInRanges()
isRowInRanges(
curStartRow,
curEndRow,
viewranges?): boolean
传入的 row 范围和 diffRanges 有相交, 返回 true
Parameters
Parameter | Type |
---|---|
curStartRow | number |
curEndRow | number |
viewranges ? | IRange [] |
Returns
boolean
Inherited from
Defined in
setStyleToCtx()
setStyleToCtx(ctx, columnStyle): void
Parameters
Parameter | Type |
---|---|
ctx | UniverRenderingContext |
columnStyle | Partial <IColumnStyleCfg > |
Returns
void