@univerjs/drawing v0.5.0-beta.1 • Docs
Interface: IImageIoService
Properties
Property | Type | Defined in |
---|---|---|
change$ | Observable <number > | submodules/univer/packages/drawing/src/services/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
submodules/univer/packages/drawing/src/services/image-io.service.ts:52
getImage()
getImage(imageId): Promise<string>
Parameters
Parameter | Type |
---|---|
imageId | string |
Returns
Promise
<string
>
Defined in
submodules/univer/packages/drawing/src/services/image-io.service.ts:47
getImageSourceCache()
getImageSourceCache(source, imageSourceType): Nullable<HTMLImageElement>
Parameters
Parameter | Type |
---|---|
source | string |
imageSourceType | ImageSourceType |
Returns
Nullable
<HTMLImageElement
>
Defined in
submodules/univer/packages/drawing/src/services/image-io.service.ts:51
saveImage()
saveImage(imageFile): Promise<Nullable<IImageIoServiceParam>>
Parameters
Parameter | Type |
---|---|
imageFile | File |
Returns
Promise
<Nullable
<IImageIoServiceParam
>>
Defined in
submodules/univer/packages/drawing/src/services/image-io.service.ts:49
setWaitCount()
setWaitCount(count): void
Parameters
Parameter | Type |
---|---|
count | number |
Returns
void
Defined in
submodules/univer/packages/drawing/src/services/image-io.service.ts:45