@univerjscoreinterfacesIimageioservice

@univerjs/core v0.5.1Docs


Interface: IImageIoService

Properties

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

Methods

addImageSourceCache()

addImageSourceCache(
   source, 
   imageSourceType, 
   imageSource): void

Parameters

ParameterType
sourcestring
imageSourceTypeImageSourceType
imageSourceNullable<HTMLImageElement>

Returns

void

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/image-io/image-io.service.ts:52


getImage()

getImage(imageId): Promise<string>

Parameters

ParameterType
imageIdstring

Returns

Promise<string>

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/image-io/image-io.service.ts:47


getImageSourceCache()

getImageSourceCache(source, imageSourceType): Nullable<HTMLImageElement>

Parameters

ParameterType
sourcestring
imageSourceTypeImageSourceType

Returns

Nullable<HTMLImageElement>

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/image-io/image-io.service.ts:51


saveImage()

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

Parameters

ParameterType
imageFileFile

Returns

Promise<Nullable<IImageIoServiceParam>>

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/image-io/image-io.service.ts:49


setWaitCount()

setWaitCount(count): void

Parameters

ParameterType
countnumber

Returns

void

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/image-io/image-io.service.ts:45