@univerjs/watermark v0.5.0-beta.1Docs


Class: WatermarkService

Extends

Constructors

new WatermarkService()

new WatermarkService(_localStorageService): WatermarkService

Parameters

ParameterType
_localStorageServiceILocalStorageService

Returns

WatermarkService

Overrides

Disposable.constructor

Defined in

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

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedcore/src/shared/lifecycle.ts:93
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

Returns

void

Defined in

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


dispose()

dispose(): void

Returns

void

Overrides

Disposable.dispose

Defined in

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


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

core/src/shared/lifecycle.ts:96


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

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

ParameterType
configIWatermarkConfigWithType

Returns

void

Defined in

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