@univerjssheetsindexclassesRangeprotectioncache

@univerjs/sheets v0.5.4


Class: RangeProtectionCache

Defined in: submodules/univer/packages/sheets/src/model/range-protection.cache.ts:28

Extends

Constructors

new RangeProtectionCache()

new RangeProtectionCache(
   _ruleModel, 
   _permissionService, 
   _univerInstanceService): RangeProtectionCache

Defined in: submodules/univer/packages/sheets/src/model/range-protection.cache.ts:36

Parameters

ParameterType
_ruleModelRangeProtectionRuleModel
_permissionServiceIPermissionService
_univerInstanceServiceIUniverInstanceService

Returns

RangeProtectionCache

Overrides

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:96

Methods

deleteUnit()

deleteUnit(unitId): void

Defined in: submodules/univer/packages/sheets/src/model/range-protection.cache.ts:375

Parameters

ParameterType
unitIdstring

Returns

void


dispose()

dispose(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:109

Returns

void

Inherited from

Disposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Disposable.ensureNotDisposed


getCellInfo()

getCellInfo(
   unitId, 
   subUnitId, 
   row, 
   col): 
  | undefined
  | Partial<Record<UnitAction, boolean>> & {
  ranges: IRange[];
  ruleId: string;
 }
  | {
  0: boolean;
  1: boolean;
  2: boolean;
  42: boolean;
  ranges: IRange[];
  ruleId: string;
}

Defined in: submodules/univer/packages/sheets/src/model/range-protection.cache.ts:351

Parameters

ParameterType
unitIdstring
subUnitIdstring
rownumber
colnumber

Returns

| undefined | Partial<Record<UnitAction, boolean>> & { ranges: IRange[]; ruleId: string; } | { 0: boolean; 1: boolean; 2: boolean; 42: boolean; ranges: IRange[]; ruleId: string; }


getColPermissionInfo()

getColPermissionInfo(
   unitId, 
   subUnitId, 
   col, 
   types): boolean

Defined in: submodules/univer/packages/sheets/src/model/range-protection.cache.ts:268

Parameters

ParameterType
unitIdstring
subUnitIdstring
colnumber
typesUnitAction[]

Returns

boolean


getRowPermissionInfo()

getRowPermissionInfo(
   unitId, 
   subUnitId, 
   row, 
   types): boolean

Defined in: submodules/univer/packages/sheets/src/model/range-protection.cache.ts:249

Parameters

ParameterType
unitIdstring
subUnitIdstring
rownumber
typesUnitAction[]

Returns

boolean


reBuildCache()

reBuildCache(unitId, subUnitId): void

Defined in: submodules/univer/packages/sheets/src/model/range-protection.cache.ts:205

Parameters

ParameterType
unitIdstring
subUnitIdstring

Returns

void