API Reference
@univerjs
@univerjs/rpc
classes
Webworkerremoteinstanceservice

@univerjs/rpc v0.4.2Docs


Class: WebWorkerRemoteInstanceService

Implements

Constructors

new WebWorkerRemoteInstanceService()

new WebWorkerRemoteInstanceService(
   _univerInstanceService, 
   _commandService, 
   _logService): WebWorkerRemoteInstanceService

Parameters

ParameterType
_univerInstanceServiceIUniverInstanceService
_commandServiceICommandService
_logServiceILogService

Returns

WebWorkerRemoteInstanceService

Defined in

packages/rpc/src/services/remote-instance/remote-instance.service.ts:67 (opens in a new tab)

Properties

PropertyModifierTypeDefined in
_commandServicereadonlyICommandServicepackages/rpc/src/services/remote-instance/remote-instance.service.ts:69 (opens in a new tab)
_logServicereadonlyILogServicepackages/rpc/src/services/remote-instance/remote-instance.service.ts:70 (opens in a new tab)
_univerInstanceServicereadonlyIUniverInstanceServicepackages/rpc/src/services/remote-instance/remote-instance.service.ts:68 (opens in a new tab)

Methods

_applyMutation()

protected _applyMutation(mutationInfo): boolean

Parameters

ParameterType
mutationInfoIMutationInfo<object>

Returns

boolean

Defined in

packages/rpc/src/services/remote-instance/remote-instance.service.ts:112 (opens in a new tab)


createInstance()

createInstance(params): Promise<boolean>

Parameters

ParameterType
paramsobject
params.snapshotIWorkbookData
params.typeUniverInstanceType
params.unitIDstring

Returns

Promise<boolean>

Implementation of

IRemoteInstanceService.createInstance

Defined in

packages/rpc/src/services/remote-instance/remote-instance.service.ts:83 (opens in a new tab)


disposeInstance()

disposeInstance(params): Promise<boolean>

Parameters

ParameterType
paramsobject
params.unitIDstring

Returns

Promise<boolean>

Implementation of

IRemoteInstanceService.disposeInstance

Defined in

packages/rpc/src/services/remote-instance/remote-instance.service.ts:108 (opens in a new tab)


syncMutation()

syncMutation(params): Promise<boolean>

Parameters

ParameterType
paramsobject
params.mutationInfoIMutationInfo<object>

Returns

Promise<boolean>

Implementation of

IRemoteInstanceService.syncMutation

Defined in

packages/rpc/src/services/remote-instance/remote-instance.service.ts:79 (opens in a new tab)


whenReady()

whenReady(): Promise<true>

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

Returns

Promise<true>

Implementation of

IRemoteInstanceService.whenReady

Defined in

packages/rpc/src/services/remote-instance/remote-instance.service.ts:75 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.