@univerjs/sheets-conditional-formatting v0.5.4
Class: ConditionalFormattingViewModel
Defined in: sheets-conditional-formatting/src/models/conditional-formatting-view-model.ts:33
Extends
Constructors
new ConditionalFormattingViewModel()
new ConditionalFormattingViewModel(
_injector,
_conditionalFormattingRuleModel,
_conditionalFormattingFormulaService,
_univerInstanceService): ConditionalFormattingViewModel
Defined in: sheets-conditional-formatting/src/models/conditional-formatting-view-model.ts:49
Parameters
Parameter | Type |
---|---|
_injector | Injector |
_conditionalFormattingRuleModel | ConditionalFormattingRuleModel |
_conditionalFormattingFormulaService | ConditionalFormattingFormulaService |
_univerInstanceService | IUniverInstanceService |
Returns
ConditionalFormattingViewModel
Overrides
Properties
Property | Modifier | Type | Default value | Description | Inherited from | Defined in |
---|---|---|---|---|---|---|
_disposed | protected | boolean | false | - | Disposable ._disposed | core/src/shared/lifecycle.ts:96 |
markDirty$ | public | Observable <{ cfId : string ; isImmediately : boolean ; subUnitId : string ; unitId : string ; }> | undefined | The rendering layer listens to this variable to determine whether a reRender is necessary. Memberof ConditionalFormattingViewModel | - | sheets-conditional-formatting/src/models/conditional-formatting-view-model.ts:48 |
markRuleDirty | public | (unitId : string , subUnitId : string , cfId : string , isNeedResetPreComputingCache : boolean ) => void | undefined | For the same condition format being marked dirty multiple times at the same time, it will cause the style cache to be cleared, thereby causing the screen to flicker. Here,multiple dirties are merged into one.. | - | sheets-conditional-formatting/src/models/conditional-formatting-view-model.ts:133 |
Methods
dispose()
dispose(): void
Defined in: core/src/shared/lifecycle.ts:109
Returns
void
Inherited from
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
getCellCfs()
getCellCfs(
unitId,
subUnitId,
row,
col):
| undefined
| {
cfId: string;
priority: number;
result: any;
}[]
Defined in: sheets-conditional-formatting/src/models/conditional-formatting-view-model.ts:71
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
row | number |
col | number |
Returns
| undefined
| {
cfId
: string
;
priority
: number
;
result
: any
;
}[]
setCacheLength()
setCacheLength(length): void
Defined in: sheets-conditional-formatting/src/models/conditional-formatting-view-model.ts:271
Parameters
Parameter | Type | Default value |
---|---|---|
length | number | CONDITIONAL_FORMATTING_VIEWPORT_CACHE_LENGTH |
Returns
void