API Reference
@univerjs
@univerjs/docs
Readme

@univerjs/docs v0.1.17Docs


@univerjs/docs

Enumerations

EnumerationDescription
DOCS_VIEW_KEYCopyright 2023-present DreamNum Inc.
VIEWPORT_KEY-

Classes

ClassDescription
DocSkeletonManagerServiceThis service is for document build and manage doc skeletons. It also manages DocumentViewModels.
DocStateChangeManagerService-
IMEInputManagerService-
TextSelectionManagerServiceThis service is for text selection.
UniverDocsPluginPlug-in base class, all plug-ins must inherit from this base class. Provide basic methods.

Interfaces

InterfaceDescription
ICoverCommandParams-
IDeleteCommandParams-
IDocObjectParam-
IDocStateChangeParams-
IIMEInputCommandParams-
IInsertCommandParams-
IRichTextEditingMutationParams-
ISetDocZoomRatioOperationParams-
ISetTextSelectionsOperationParams-
IUniverDocsConfig-
IUpdateCommandParams-

Variables

VariableDescription
AlignCenterCommand-
AlignJustifyCommand-
AlignLeftCommand-
AlignOperationCommand-
AlignRightCommand-
BreakLineCommand-
BulletListCommand-
CoverContentCommand-
CutContentCommand-
DOCS_COMPONENT_BACKGROUND_LAYER_INDEX-
DOCS_COMPONENT_DEFAULT_Z_INDEX-
DOCS_COMPONENT_HEADER_LAYER_INDEX-
DOCS_COMPONENT_MAIN_LAYER_INDEX-
DeleteCommandThe command to delete text, mainly used in BACKSPACE and DELETE when collapsed is true. ONLY handle collapsed range!!!
DeleteLeftCommand-
DeleteRightCommand-
EditorInsertTextCommandId-
IMEInputCommand-
InnerPasteCommand-
InsertCommandThe command to insert text. The changed range could be non-collapsed, mainly use in line break and normal input.
MoveCursorOperationThe operation to move cursor in the current document.
MoveSelectionOperationThe operation to move selection in the current document.
NORMAL_TEXT_SELECTION_PLUGIN_NAME-
OrderListCommand-
ReplaceContentCommand-
ResetInlineFormatTextBackgroundColorCommand-
RichTextEditingMutationThe core mutator to change rich text actions. The execution result would be undo mutation params. Could be directly send to undo redo service (will be used by the triggering command).
SelectAllOperation-
SetDocZoomRatioCommand-
SetDocZoomRatioOperation-
SetInlineFormatBoldCommand-
SetInlineFormatCommand-
SetInlineFormatFontFamilyCommand-
SetInlineFormatFontSizeCommand-
SetInlineFormatItalicCommand-
SetInlineFormatStrikethroughCommand-
SetInlineFormatSubscriptCommand-
SetInlineFormatSuperscriptCommand-
SetInlineFormatTextBackgroundColorCommand-
SetInlineFormatTextColorCommand-
SetInlineFormatUnderlineCommand-
SetTextSelectionsOperation-
UpdateCommandThe command to update text properties, mainly used in BACKSPACE.

Functions

FunctionDescription
getDocObject-
getDocObjectById-
neoGetDocObject-
serializeTextRange-

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