@univerjs-pro/collaboration-client v0.5.4
Class: CollaborationImageIoService
Defined in: packages/collaboration-client/src/services/image-remote/image-io.service.ts:38
Implements
Constructors
new CollaborationImageIoService()
new CollaborationImageIoService(
_httpService,
_configService,
_univerInstanceService): CollaborationImageIoService
Defined in: packages/collaboration-client/src/services/image-remote/image-io.service.ts:44
Parameters
Parameter | Type |
---|---|
_httpService | HTTPService |
_configService | IConfigService |
_univerInstanceService | IUniverInstanceService |
Returns
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
Defined in: packages/collaboration-client/src/services/image-remote/image-io.service.ts:67
Parameters
Parameter | Type |
---|---|
source | string |
imageSourceType | ImageSourceType |
imageSource | Nullable <HTMLImageElement > |
Returns
void
Implementation of
IImageIoService
.addImageSourceCache
getImage()
getImage(imageId): Promise<string>
Defined in: packages/collaboration-client/src/services/image-remote/image-io.service.ts:74
Parameters
Parameter | Type |
---|---|
imageId | string |
Returns
Promise
<string
>
Implementation of
getImageSourceCache()
getImageSourceCache(source, imageSourceType): undefined | HTMLImageElement
Defined in: packages/collaboration-client/src/services/image-remote/image-io.service.ts:58
Parameters
Parameter | Type |
---|---|
source | string |
imageSourceType | ImageSourceType |
Returns
undefined
| HTMLImageElement
Implementation of
IImageIoService
.getImageSourceCache
saveImage()
saveImage(imageFile): Promise<Nullable<IImageIoServiceParam>>
Defined in: packages/collaboration-client/src/services/image-remote/image-io.service.ts:91
Parameters
Parameter | Type |
---|---|
imageFile | File |
Returns
Promise
<Nullable
<IImageIoServiceParam
>>
Implementation of
setWaitCount()
setWaitCount(count): void
Defined in: packages/collaboration-client/src/services/image-remote/image-io.service.ts:52
Parameters
Parameter | Type |
---|---|
count | number |
Returns
void