@univerjs/core v0.5.1 • Docs
Interface: IImageIoService
Properties
Property | Type | Defined 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
Parameter | Type |
---|---|
source | string |
imageSourceType | ImageSourceType |
imageSource | Nullable <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
Parameter | Type |
---|---|
imageId | string |
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
Parameter | Type |
---|---|
source | string |
imageSourceType | ImageSourceType |
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
Parameter | Type |
---|---|
imageFile | File |
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
Parameter | Type |
---|---|
count | number |
Returns
void
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/services/image-io/image-io.service.ts:45