@univerjs/watermark v0.4.2 • 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 (opens in a new tab)
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | core/src/shared/lifecycle.ts:93 (opens in a new tab) |
refresh$ | readonly | Observable <number > | undefined | - | watermark/src/services/watermark.service.ts:27 (opens in a new tab) |
updateConfig$ | readonly | Observable <Nullable <IWatermarkConfigWithType >> | undefined | - | watermark/src/services/watermark.service.ts:25 (opens in a new tab) |
Methods
deleteWatermarkConfig()
deleteWatermarkConfig(): void
Returns
void
Defined in
watermark/src/services/watermark.service.ts:45 (opens in a new tab)
dispose()
dispose(): void
Returns
void
Overrides
Defined in
watermark/src/services/watermark.service.ts:54 (opens in a new tab)
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
core/src/shared/lifecycle.ts:96 (opens in a new tab)
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
core/src/shared/lifecycle.ts:100 (opens in a new tab)
getWatermarkConfig()
getWatermarkConfig(): Promise<null | IWatermarkConfigWithType>
Returns
Promise
<null
| IWatermarkConfigWithType
>
Defined in
watermark/src/services/watermark.service.ts:35 (opens in a new tab)
refresh()
refresh(): void
Returns
void
Defined in
watermark/src/services/watermark.service.ts:50 (opens in a new tab)
updateWatermarkConfig()
updateWatermarkConfig(config): void
Parameters
Parameter | Type |
---|---|
config | IWatermarkConfigWithType |
Returns
void
Defined in
watermark/src/services/watermark.service.ts:40 (opens in a new tab)