@univerjsdocs-uiindexclassesDocautoformatservice

@univerjs/docs-ui v0.5.0-beta.1Docs


Class: DocAutoFormatService

service for auto-formatting, handle shortcut like Space or Tab.

Extends

Constructors

new DocAutoFormatService()

new DocAutoFormatService(_univerInstanceService, _textSelectionManagerService): DocAutoFormatService

Parameters

ParameterType
_univerInstanceServiceIUniverInstanceService
_textSelectionManagerServiceDocSelectionManagerService

Returns

DocAutoFormatService

Overrides

Disposable.constructor

Defined in

submodules/univer/packages/docs-ui/src/services/doc-auto-format.service.ts:85

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:93

Methods

dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:106


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:96


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:100


onAutoFormat()

onAutoFormat(id, params): ICommandInfo<object>[]

Parameters

ParameterType
idstring
paramsNullable<object>

Returns

ICommandInfo<object>[]

Defined in

submodules/univer/packages/docs-ui/src/services/doc-auto-format.service.ts:112


registerAutoFormat()

registerAutoFormat(match): IDisposable

Parameters

ParameterType
matchIAutoFormat

Returns

IDisposable

Defined in

submodules/univer/packages/docs-ui/src/services/doc-auto-format.service.ts:92