API Reference
@univerjs
@univerjs/watermark
classes
Watermarkservice

@univerjs/watermark v0.4.2Docs


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 (opens in a new tab)

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedcore/src/shared/lifecycle.ts:93 (opens in a new tab)
refresh$readonlyObservable<number>undefined-watermark/src/services/watermark.service.ts:27 (opens in a new tab)
updateConfig$readonlyObservable<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

Disposable.dispose

Defined in

watermark/src/services/watermark.service.ts:54 (opens in a new tab)


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

core/src/shared/lifecycle.ts:96 (opens in a new tab)


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

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

ParameterType
configIWatermarkConfigWithType

Returns

void

Defined in

watermark/src/services/watermark.service.ts:40 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.