@univerjs-pro/collaboration-client v0.5.0-beta.1Docs


Class: ImageIoService

Implements

Constructors

new ImageIoService()

new ImageIoService(
   _httpService, 
   _configService, 
   _univerInstanceService): ImageIoService

Parameters

ParameterType
_httpServiceHTTPService
_configServiceIConfigService
_univerInstanceServiceIUniverInstanceService

Returns

ImageIoService

Defined in

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

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

Parameters

ParameterType
sourcestring
imageSourceTypeImageSourceType
imageSourceNullable<HTMLImageElement>

Returns

void

Implementation of

IImageIoService.addImageSourceCache

Defined in

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


getImage()

getImage(imageId): Promise<string>

Parameters

ParameterType
imageIdstring

Returns

Promise<string>

Implementation of

IImageIoService.getImage

Defined in

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


getImageSourceCache()

getImageSourceCache(source, imageSourceType): undefined | HTMLImageElement

Parameters

ParameterType
sourcestring
imageSourceTypeImageSourceType

Returns

undefined | HTMLImageElement

Implementation of

IImageIoService.getImageSourceCache

Defined in

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


saveImage()

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

Parameters

ParameterType
imageFileFile

Returns

Promise<Nullable<IImageIoServiceParam>>

Implementation of

IImageIoService.saveImage

Defined in

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


setWaitCount()

setWaitCount(count): void

Parameters

ParameterType
countnumber

Returns

void

Implementation of

IImageIoService.setWaitCount

Defined in

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