@univerjs/sheets-conditional-formatting v0.5.0-beta.1 • Docs
Class: DataBar
Extends
Constructors
new DataBar()
new DataBar(): DataBar
Returns
Inherited from
Properties
Property | Type | Default value | Overrides | Inherited from | Defined in |
---|---|---|---|---|---|
_radius | number | 1 | - | - | sheets-conditional-formatting/src/render/data-bar.render.ts:35 |
extensionOffset | IExtensionConfig | {} | - | SheetExtension .extensionOffset | engine-render/src/components/extension.ts:53 |
parent | Nullable <BaseObject > | undefined | - | SheetExtension .parent | engine-render/src/components/extension.ts:47 |
translateX | number | 0 | - | SheetExtension .translateX | engine-render/src/components/extension.ts:49 |
translateY | number | 0 | - | SheetExtension .translateY | engine-render/src/components/extension.ts:51 |
type | SHEET_EXTENSION_TYPE | SHEET_EXTENSION_TYPE.GRID | - | SheetExtension .type | engine-render/src/components/sheets/extensions/sheet-extension.ts:33 |
uKey | string | dataBarUKey | SheetExtension .uKey | - | sheets-conditional-formatting/src/render/data-bar.render.ts:32 |
Z_INDEX | number | EXTENSION_Z_INDEX | SheetExtension .Z_INDEX | - | sheets-conditional-formatting/src/render/data-bar.render.ts:34 |
Accessors
zIndex
Get Signature
get zIndex(): number
Returns
number
Inherited from
Defined in
engine-render/src/components/extension.ts:55
Methods
_getScale()
protected _getScale(parentScale): number
Parameters
Parameter | Type |
---|---|
parentScale | IScale |
Returns
number
Inherited from
Defined in
engine-render/src/components/extension.ts:67
clearCache()
clearCache(): void
Returns
void
Inherited from
Defined in
engine-render/src/components/extension.ts:63
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
engine-render/src/components/extension.ts:71
draw()
draw(
ctx,
_parentScale,
spreadsheetSkeleton,
diffRanges): undefined | false
Parameters
Parameter | Type |
---|---|
ctx | UniverRenderingContext |
_parentScale | IScale |
spreadsheetSkeleton | SpreadsheetSkeleton |
diffRanges | IRange [] |
Returns
undefined
| false
Overrides
Defined in
sheets-conditional-formatting/src/render/data-bar.render.ts:38
isRenderDiffRangesByCell()
isRenderDiffRangesByCell(rangeP, diffRanges?): boolean
Parameters
Parameter | Type |
---|---|
rangeP | IRange |
diffRanges ? | IRange [] |
Returns
boolean
Inherited from
SheetExtension
.isRenderDiffRangesByCell
Defined in
engine-render/src/components/sheets/extensions/sheet-extension.ts:35
isRenderDiffRangesByColumn()
isRenderDiffRangesByColumn(
curStartColumn,
curEndColumn,
diffRanges?): boolean
Parameters
Parameter | Type |
---|---|
curStartColumn | number |
curEndColumn | number |
diffRanges ? | IRange [] |
Returns
boolean
Inherited from
SheetExtension
.isRenderDiffRangesByColumn
Defined in
engine-render/src/components/sheets/extensions/sheet-extension.ts:72
isRenderDiffRangesByRow()
isRenderDiffRangesByRow(
curStartRow,
curEndRow,
diffRanges?): boolean
Parameters
Parameter | Type |
---|---|
curStartRow | number |
curEndRow | number |
diffRanges ? | IRange [] |
Returns
boolean
Inherited from
SheetExtension
.isRenderDiffRangesByRow
Defined in
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
Parameter | Type |
---|---|
curStartRow | number |
curEndRow | number |
viewranges ? | IRange [] |
Returns
boolean
Inherited from
Defined in
engine-render/src/components/sheets/extensions/sheet-extension.ts:144