@univerjs/watermark v0.5.4


Class: WatermarkService

Defined in: watermark/src/services/watermark.service.ts:23

Extends

Constructors

new WatermarkService()

new WatermarkService(_localStorageService): WatermarkService

Defined in: watermark/src/services/watermark.service.ts:29

Parameters

ParameterType
_localStorageServiceILocalStorageService

Returns

WatermarkService

Overrides

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedcore/src/shared/lifecycle.ts:96
refresh$readonlyObservable<number>undefined-watermark/src/services/watermark.service.ts:27
updateConfig$readonlyObservable<Nullable<IWatermarkConfigWithType>>undefined-watermark/src/services/watermark.service.ts:25

Methods

deleteWatermarkConfig()

deleteWatermarkConfig(): void

Defined in: watermark/src/services/watermark.service.ts:45

Returns

void


dispose()

dispose(): void

Defined in: watermark/src/services/watermark.service.ts:54

Returns

void

Overrides

Disposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Disposable.ensureNotDisposed


getWatermarkConfig()

getWatermarkConfig(): Promise<
  | null
| IWatermarkConfigWithType>

Defined in: watermark/src/services/watermark.service.ts:35

Returns

Promise< | null | IWatermarkConfigWithType>


refresh()

refresh(): void

Defined in: watermark/src/services/watermark.service.ts:50

Returns

void


updateWatermarkConfig()

updateWatermarkConfig(config): void

Defined in: watermark/src/services/watermark.service.ts:40

Parameters

ParameterType
configIWatermarkConfigWithType

Returns

void