@univerjs-pro/collaboration-client v0.5.0-beta.1 • Docs
Class: ImageIoService
Implements
Constructors
new ImageIoService()
new ImageIoService(
_httpService,
_configService,
_univerInstanceService): ImageIoService
Parameters
Parameter | Type |
---|---|
_httpService | HTTPService |
_configService | IConfigService |
_univerInstanceService | IUniverInstanceService |
Returns
Defined in
packages/collaboration-client/src/services/image-remote/image-io.service.ts:44
Properties
Property | Type | Defined in |
---|---|---|
change$ | Observable <number > | packages/collaboration-client/src/services/image-remote/image-io.service.ts:42 |
Methods
addImageSourceCache()
addImageSourceCache(
source,
imageSourceType,
imageSource): void
Parameters
Parameter | Type |
---|---|
source | string |
imageSourceType | ImageSourceType |
imageSource | Nullable <HTMLImageElement > |
Returns
void
Implementation of
IImageIoService
.addImageSourceCache
Defined in
packages/collaboration-client/src/services/image-remote/image-io.service.ts:67
getImage()
getImage(imageId): Promise<string>
Parameters
Parameter | Type |
---|---|
imageId | string |
Returns
Promise
<string
>
Implementation of
Defined in
packages/collaboration-client/src/services/image-remote/image-io.service.ts:74
getImageSourceCache()
getImageSourceCache(source, imageSourceType): undefined | HTMLImageElement
Parameters
Parameter | Type |
---|---|
source | string |
imageSourceType | ImageSourceType |
Returns
undefined
| HTMLImageElement
Implementation of
IImageIoService
.getImageSourceCache
Defined in
packages/collaboration-client/src/services/image-remote/image-io.service.ts:58
saveImage()
saveImage(imageFile): Promise<Nullable<IImageIoServiceParam>>
Parameters
Parameter | Type |
---|---|
imageFile | File |
Returns
Promise
<Nullable
<IImageIoServiceParam
>>
Implementation of
Defined in
packages/collaboration-client/src/services/image-remote/image-io.service.ts:91
setWaitCount()
setWaitCount(count): void
Parameters
Parameter | Type |
---|---|
count | number |
Returns
void
Implementation of
Defined in
packages/collaboration-client/src/services/image-remote/image-io.service.ts:52