API Reference
@univerjs
@univerjs/sheets-conditional-formatting
classes
Conditionalformattingicon

@univerjs/sheets-conditional-formatting v0.4.2Docs


Class: ConditionalFormattingIcon

Extends

Constructors

new ConditionalFormattingIcon()

new ConditionalFormattingIcon(): ConditionalFormattingIcon

Returns

ConditionalFormattingIcon

Overrides

SheetExtension.constructor

Defined in

sheets-conditional-formatting/src/render/icon.render.ts:40 (opens in a new tab)

Properties

PropertyTypeDefault valueOverridesInherited fromDefined in
Z_INDEXnumberEXTENSION_Z_INDEXSheetExtension.Z_INDEX-sheets-conditional-formatting/src/render/icon.render.ts:38 (opens in a new tab)
_radiusnumber1--sheets-conditional-formatting/src/render/icon.render.ts:39 (opens in a new tab)
extensionOffsetIExtensionConfig{}-SheetExtension.extensionOffsetengine-render/src/components/extension.ts:53 (opens in a new tab)
parentNullable<BaseObject>undefined-SheetExtension.parentengine-render/src/components/extension.ts:47 (opens in a new tab)
translateXnumber0-SheetExtension.translateXengine-render/src/components/extension.ts:49 (opens in a new tab)
translateYnumber0-SheetExtension.translateYengine-render/src/components/extension.ts:51 (opens in a new tab)
typeSHEET_EXTENSION_TYPESHEET_EXTENSION_TYPE.GRID-SheetExtension.typeengine-render/src/components/sheets/extensions/sheet-extension.ts:34 (opens in a new tab)
uKeystringIconUKeySheetExtension.uKey-sheets-conditional-formatting/src/render/icon.render.ts:36 (opens in a new tab)

Accessors

zIndex

get zIndex(): number

Returns

number

Inherited from

SheetExtension.zIndex

Defined in

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

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


clearCache()

clearCache(): void

Returns

void

Inherited from

SheetExtension.clearCache

Defined in

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


dispose()

dispose(): void

Returns

void

Inherited from

SheetExtension.dispose

Defined in

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


draw()

draw(
   ctx, 
   _parentScale, 
   spreadsheetSkeleton, 
   diffRanges): undefined | false

Parameters

ParameterType
ctxUniverRenderingContext
_parentScaleIScale
spreadsheetSkeletonSpreadsheetSkeleton
diffRangesIRange[]

Returns

undefined | false

Overrides

SheetExtension.draw

Defined in

sheets-conditional-formatting/src/render/icon.render.ts:45 (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

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


isRenderDiffRangesByCell()

isRenderDiffRangesByCell(rangeP, diffRanges?): boolean

Parameters

ParameterType
rangePIRange
diffRanges?IRange[]

Returns

boolean

Inherited from

SheetExtension.isRenderDiffRangesByCell

Defined in

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

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

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

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


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