@univerjs/watermark v0.5.0-beta.1 • Docs
Class: WatermarkService
Extends
Constructors
new WatermarkService()
new WatermarkService(_localStorageService): WatermarkService
Parameters
Parameter | Type |
---|---|
_localStorageService | ILocalStorageService |
Returns
Overrides
Defined in
watermark/src/services/watermark.service.ts:29
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | core/src/shared/lifecycle.ts:93 |
refresh$ | readonly | Observable <number > | undefined | - | watermark/src/services/watermark.service.ts:27 |
updateConfig$ | readonly | Observable <Nullable <IWatermarkConfigWithType >> | undefined | - | watermark/src/services/watermark.service.ts:25 |
Methods
deleteWatermarkConfig()
deleteWatermarkConfig(): void
Returns
void
Defined in
watermark/src/services/watermark.service.ts:45
dispose()
dispose(): void
Returns
void
Overrides
Defined in
watermark/src/services/watermark.service.ts:54
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
core/src/shared/lifecycle.ts:96
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
core/src/shared/lifecycle.ts:100
getWatermarkConfig()
getWatermarkConfig(): Promise<null | IWatermarkConfigWithType>
Returns
Promise
<null
| IWatermarkConfigWithType
>
Defined in
watermark/src/services/watermark.service.ts:35
refresh()
refresh(): void
Returns
void
Defined in
watermark/src/services/watermark.service.ts:50
updateWatermarkConfig()
updateWatermarkConfig(config): void
Parameters
Parameter | Type |
---|---|
config | IWatermarkConfigWithType |
Returns
void
Defined in
watermark/src/services/watermark.service.ts:40