@univerjsdocs-uiindexclassesDocautoformatservice

@univerjs/docs-ui v0.5.4


Class: DocAutoFormatService

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

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

Extends

Constructors

new DocAutoFormatService()

new DocAutoFormatService(_univerInstanceService, _textSelectionManagerService): DocAutoFormatService

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

Parameters

ParameterType
_univerInstanceServiceIUniverInstanceService
_textSelectionManagerServiceDocSelectionManagerService

Returns

DocAutoFormatService

Overrides

Disposable.constructor

Properties

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

Methods

dispose()

dispose(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:109

Returns

void

Inherited from

Disposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Disposable.ensureNotDisposed


onAutoFormat()

onAutoFormat(id, params): ICommandInfo[]

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

Parameters

ParameterType
idstring
paramsNullable<object>

Returns

ICommandInfo[]


registerAutoFormat()

registerAutoFormat(match): IDisposable

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

Parameters

ParameterType
matchIAutoFormat

Returns

IDisposable