API Reference
@univerjs
@univerjs/drawing
interfaces
Iimageioservice

@univerjs/drawing v0.4.2Docs


Interface: IImageIoService

Properties

PropertyTypeDefined in
change$Observable<number>packages/drawing/src/services/image-io.service.ts:44 (opens in a new tab)

Methods

addImageSourceCache()

addImageSourceCache(
   source, 
   imageSourceType, 
   imageSource): void

Parameters

ParameterType
sourcestring
imageSourceTypeImageSourceType
imageSourceNullable<HTMLImageElement>

Returns

void

Defined in

packages/drawing/src/services/image-io.service.ts:52 (opens in a new tab)


getImage()

getImage(imageId): Promise<string>

Parameters

ParameterType
imageIdstring

Returns

Promise<string>

Defined in

packages/drawing/src/services/image-io.service.ts:47 (opens in a new tab)


getImageSourceCache()

getImageSourceCache(source, imageSourceType): Nullable<HTMLImageElement>

Parameters

ParameterType
sourcestring
imageSourceTypeImageSourceType

Returns

Nullable<HTMLImageElement>

Defined in

packages/drawing/src/services/image-io.service.ts:51 (opens in a new tab)


saveImage()

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

Parameters

ParameterType
imageFileFile

Returns

Promise<Nullable<IImageIoServiceParam>>

Defined in

packages/drawing/src/services/image-io.service.ts:49 (opens in a new tab)


setWaitCount()

setWaitCount(count): void

Parameters

ParameterType
countnumber

Returns

void

Defined in

packages/drawing/src/services/image-io.service.ts:45 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.