@univerjs/drawing v0.5.4


Class: ImageIoService

Defined in: submodules/univer/packages/drawing/src/services/image-io-impl.service.ts:25

Implements

Constructors

new ImageIoService()

new ImageIoService(): ImageIoService

Returns

ImageIoService

Properties

PropertyTypeDefined in
change$Observable<number>submodules/univer/packages/drawing/src/services/image-io-impl.service.ts:29

Methods

addImageSourceCache()

addImageSourceCache(
   source, 
   imageSourceType, 
   imageSource): void

Defined in: submodules/univer/packages/drawing/src/services/image-io-impl.service.ts:46

Parameters

ParameterType
sourcestring
imageSourceTypeImageSourceType
imageSourceNullable<HTMLImageElement>

Returns

void

Implementation of

IImageIoService.addImageSourceCache


getImage()

getImage(imageId): Promise<string>

Defined in: submodules/univer/packages/drawing/src/services/image-io-impl.service.ts:53

Parameters

ParameterType
imageIdstring

Returns

Promise<string>

Implementation of

IImageIoService.getImage


getImageSourceCache()

getImageSourceCache(source, imageSourceType): undefined | HTMLImageElement

Defined in: submodules/univer/packages/drawing/src/services/image-io-impl.service.ts:37

Parameters

ParameterType
sourcestring
imageSourceTypeImageSourceType

Returns

undefined | HTMLImageElement

Implementation of

IImageIoService.getImageSourceCache


saveImage()

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

Defined in: submodules/univer/packages/drawing/src/services/image-io-impl.service.ts:57

Parameters

ParameterType
imageFileFile

Returns

Promise<Nullable<IImageIoServiceParam>>

Implementation of

IImageIoService.saveImage


setWaitCount()

setWaitCount(count): void

Defined in: submodules/univer/packages/drawing/src/services/image-io-impl.service.ts:31

Parameters

ParameterType
countnumber

Returns

void

Implementation of

IImageIoService.setWaitCount