@univerjs/drawing v0.5.0-beta.1Docs


Interface: IImageIoService

Properties

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

Methods

addImageSourceCache()

addImageSourceCache(
   source, 
   imageSourceType, 
   imageSource): void

Parameters

ParameterType
sourcestring
imageSourceTypeImageSourceType
imageSourceNullable<HTMLImageElement>

Returns

void

Defined in

submodules/univer/packages/drawing/src/services/image-io.service.ts:52


getImage()

getImage(imageId): Promise<string>

Parameters

ParameterType
imageIdstring

Returns

Promise<string>

Defined in

submodules/univer/packages/drawing/src/services/image-io.service.ts:47


getImageSourceCache()

getImageSourceCache(source, imageSourceType): Nullable<HTMLImageElement>

Parameters

ParameterType
sourcestring
imageSourceTypeImageSourceType

Returns

Nullable<HTMLImageElement>

Defined in

submodules/univer/packages/drawing/src/services/image-io.service.ts:51


saveImage()

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

Parameters

ParameterType
imageFileFile

Returns

Promise<Nullable<IImageIoServiceParam>>

Defined in

submodules/univer/packages/drawing/src/services/image-io.service.ts:49


setWaitCount()

setWaitCount(count): void

Parameters

ParameterType
countnumber

Returns

void

Defined in

submodules/univer/packages/drawing/src/services/image-io.service.ts:45