@univerjs/drawing v0.5.4


Interface: IImageIoService

Defined in: submodules/univer/packages/core/src/services/image-io/image-io.service.ts:55

Properties

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

Methods

addImageSourceCache()

addImageSourceCache(
   source, 
   imageSourceType, 
   imageSource): void

Defined in: submodules/univer/packages/core/src/services/image-io/image-io.service.ts:64

Parameters

ParameterType
sourcestring
imageSourceTypeImageSourceType
imageSourceNullable<HTMLImageElement>

Returns

void


getImage()

getImage(imageId): Promise<string>

Defined in: submodules/univer/packages/core/src/services/image-io/image-io.service.ts:59

Parameters

ParameterType
imageIdstring

Returns

Promise<string>


getImageSourceCache()

getImageSourceCache(source, imageSourceType): Nullable<HTMLImageElement>

Defined in: submodules/univer/packages/core/src/services/image-io/image-io.service.ts:63

Parameters

ParameterType
sourcestring
imageSourceTypeImageSourceType

Returns

Nullable<HTMLImageElement>


saveImage()

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

Defined in: submodules/univer/packages/core/src/services/image-io/image-io.service.ts:61

Parameters

ParameterType
imageFileFile

Returns

Promise<Nullable<IImageIoServiceParam>>


setWaitCount()

setWaitCount(count): void

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

Parameters

ParameterType
countnumber

Returns

void