@univerjs/drawing v0.4.2 • Docs
Interface: IImageIoService
Properties
Property | Type | Defined 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
Parameter | Type |
---|---|
source | string |
imageSourceType | ImageSourceType |
imageSource | Nullable <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
Parameter | Type |
---|---|
imageId | string |
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
Parameter | Type |
---|---|
source | string |
imageSourceType | ImageSourceType |
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
Parameter | Type |
---|---|
imageFile | File |
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
Parameter | Type |
---|---|
count | number |
Returns
void
Defined in
packages/drawing/src/services/image-io.service.ts:45 (opens in a new tab)