@univerjssheetsindexclassesRangeprotectionrefrangeservice

@univerjs/sheets v0.5.0-beta.1Docs


Class: RangeProtectionRefRangeService

Extends

Constructors

new RangeProtectionRefRangeService()

new RangeProtectionRefRangeService(
   _selectionProtectionRuleModel, 
   _univerInstanceService, 
   _commandService, 
   _refRangeService, 
   _selectionProtectionRenderModel, 
   _rangeProtectionCache, 
   _sheetInterceptorService, 
   _rangeProtectionRuleModel): RangeProtectionRefRangeService

Parameters

ParameterType
_selectionProtectionRuleModelRangeProtectionRuleModel
_univerInstanceServiceIUniverInstanceService
_commandServiceICommandService
_refRangeServiceRefRangeService
_selectionProtectionRenderModelRangeProtectionRenderModel
_rangeProtectionCacheRangeProtectionCache
_sheetInterceptorServiceSheetInterceptorService
_rangeProtectionRuleModelRangeProtectionRuleModel

Returns

RangeProtectionRefRangeService

Overrides

Disposable.constructor

Defined in

submodules/univer/packages/sheets/src/services/permission/range-permission/range-protection.ref-range.ts:65

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:93
disposableCollectionpublicDisposableCollectionundefined-submodules/univer/packages/sheets/src/services/permission/range-permission/range-protection.ref-range.ts:63

Methods

dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:106


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:96


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:100


refRangeHandle()

refRangeHandle(
   config, 
   unitId, 
   subUnitId): {
  redos: redoMutations;
  undos: undoMutations;
 } | {
  redos: redoMutations;
  undos: undoMutations;
}

Parameters

ParameterType
configEffectRefRangeParams
unitIdstring
subUnitIdstring

Returns

{ redos: redoMutations; undos: undoMutations; } | { redos: redoMutations; undos: undoMutations; }

Defined in

submodules/univer/packages/sheets/src/services/permission/range-permission/range-protection.ref-range.ts:139