@univerjs-pro/collaboration-client v0.5.4


Class: CollaborationImageIoService

Defined in: packages/collaboration-client/src/services/image-remote/image-io.service.ts:38

Implements

Constructors

new CollaborationImageIoService()

new CollaborationImageIoService(
   _httpService, 
   _configService, 
   _univerInstanceService): CollaborationImageIoService

Defined in: packages/collaboration-client/src/services/image-remote/image-io.service.ts:44

Parameters

ParameterType
_httpServiceHTTPService
_configServiceIConfigService
_univerInstanceServiceIUniverInstanceService

Returns

CollaborationImageIoService

Properties

PropertyTypeDefined in
change$Observable<number>packages/collaboration-client/src/services/image-remote/image-io.service.ts:42

Methods

addImageSourceCache()

addImageSourceCache(
   source, 
   imageSourceType, 
   imageSource): void

Defined in: packages/collaboration-client/src/services/image-remote/image-io.service.ts:67

Parameters

ParameterType
sourcestring
imageSourceTypeImageSourceType
imageSourceNullable<HTMLImageElement>

Returns

void

Implementation of

IImageIoService.addImageSourceCache


getImage()

getImage(imageId): Promise<string>

Defined in: packages/collaboration-client/src/services/image-remote/image-io.service.ts:74

Parameters

ParameterType
imageIdstring

Returns

Promise<string>

Implementation of

IImageIoService.getImage


getImageSourceCache()

getImageSourceCache(source, imageSourceType): undefined | HTMLImageElement

Defined in: packages/collaboration-client/src/services/image-remote/image-io.service.ts:58

Parameters

ParameterType
sourcestring
imageSourceTypeImageSourceType

Returns

undefined | HTMLImageElement

Implementation of

IImageIoService.getImageSourceCache


saveImage()

saveImage(imageFile): Promise<Nullable<IImageIoServiceParam>>

Defined in: packages/collaboration-client/src/services/image-remote/image-io.service.ts:91

Parameters

ParameterType
imageFileFile

Returns

Promise<Nullable<IImageIoServiceParam>>

Implementation of

IImageIoService.saveImage


setWaitCount()

setWaitCount(count): void

Defined in: packages/collaboration-client/src/services/image-remote/image-io.service.ts:52

Parameters

ParameterType
countnumber

Returns

void

Implementation of

IImageIoService.setWaitCount