@univerjsrpcclassesWebworkerremoteinstanceservice

@univerjs/rpc v0.5.4


Class: WebWorkerRemoteInstanceService

Defined in: submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:66

Implements

Constructors

new WebWorkerRemoteInstanceService()

new WebWorkerRemoteInstanceService(
   _univerInstanceService, 
   _commandService, 
   _logService): WebWorkerRemoteInstanceService

Defined in: submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:67

Parameters

ParameterType
_univerInstanceServiceIUniverInstanceService
_commandServiceICommandService
_logServiceILogService

Returns

WebWorkerRemoteInstanceService

Properties

PropertyModifierTypeDefined in
_commandServicereadonlyICommandServicesubmodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:69
_logServicereadonlyILogServicesubmodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:70
_univerInstanceServicereadonlyIUniverInstanceServicesubmodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:68

Methods

_applyMutation()

protected _applyMutation(mutationInfo): boolean

Defined in: submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:112

Parameters

ParameterType
mutationInfoIMutationInfo

Returns

boolean


createInstance()

createInstance(params): Promise<boolean>

Defined in: submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:83

Parameters

ParameterType
params{ snapshot: IWorkbookData; type: UniverInstanceType; unitID: string; }
params.snapshotIWorkbookData
params.typeUniverInstanceType
params.unitIDstring

Returns

Promise<boolean>

Implementation of

IRemoteInstanceService.createInstance


disposeInstance()

disposeInstance(params): Promise<boolean>

Defined in: submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:108

Parameters

ParameterType
params{ unitID: string; }
params.unitIDstring

Returns

Promise<boolean>

Implementation of

IRemoteInstanceService.disposeInstance


syncMutation()

syncMutation(params): Promise<boolean>

Defined in: submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:79

Parameters

ParameterType
params{ mutationInfo: IMutationInfo; }
params.mutationInfoIMutationInfo

Returns

Promise<boolean>

Implementation of

IRemoteInstanceService.syncMutation


whenReady()

whenReady(): Promise<true>

Defined in: submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:75

Tell other modules if the IRemoteInstanceService is ready to load files.

Returns

Promise<true>

Implementation of

IRemoteInstanceService.whenReady