API Reference
@univerjs
@univerjs/sheets-ui
Readme

@univerjs/sheets-ui v0.1.17Docs


@univerjs/sheets-ui

Enumerations

EnumerationDescription
APPLY_TYPE-
COPY_TYPE-
CellAlertType-
DATA_TYPE-
JumpOver-
SHEET_VIEW_KEYCopyright 2023-present DreamNum Inc.
SheetMenuPosition-
SheetsUIPartCopyright 2023-present DreamNum Inc.
VIEWPORT_KEY-

Classes

ClassDescription
AutoFillController-
AutoFillService-
AutoHeightController-
CellAlertManagerService-
CellCustomRenderController-
CellEditorManagerService-
DragManagerService-
DragRenderController-
EditorBridgeService-
FormulaEditorController-
HeaderFreezeRenderController-
HeaderMoveRenderController-
HeaderResizeRenderController-
HoverManagerService-
HoverRenderController-
MarkSelectionService-
SelectionRenderService-
SelectionShapeThe main selection canvas component
SheetCanvasPopManagerService-
SheetClipboardService-
SheetPermissionInterceptorBaseController-
SheetPrintInterceptorService-
SheetRenderController-
SheetSkeletonManagerServiceThis service manages the drawing of the sheet's viewModel (skeleton).
SheetsRenderServiceThis controller is responsible for managing units of a specific kind to be rendered on the canvas.
SheetsScrollRenderControllerThis controller handles scroll logic in sheet interaction.
StatusBarController-
UniverSheetsUIPluginPlug-in base class, all plug-ins must inherit from this base class. Provide basic methods.

Interfaces

InterfaceDescription
IAutoFillLocation-
IAutoFillRule-
IAutoFillService-
ICanvasPopup-
ICellAlert-
ICellEditorManagerService-
ICopyDataPiece-
ICopyPastePayload-
IDiscreteRange-
IDragCellPosition-
IEditorBridgeService-
IEditorBridgeServiceParam-
IEditorBridgeServiceVisibleParam-
IFormulaEditorManagerService-
IHoverCellPosition-
IMarkSelectionService-
IScrollCommandParams-
IScrollToCellCommandParams-
ISelectionRenderService-
ISetScrollRelativeCommandParams-
ISheetAutoFillHook-
ISheetClipboardHookClipboardHook could: 1. Before copy/cut/paste, decide whether to execute the command and prepare caches if necessary. 1. When copying, decide what content could be written into clipboard. 1. When pasting, get access to the clipboard content and append mutations to the paste command.
ISheetClipboardService-
ISheetDiscreteRangeLocation-
ISheetPasteParams-
ISheetSkeletonManagerParam-

Type Aliases

Type aliasDescription
ICellDataWithSpanInfo-
ICopyDataInTypeIndexInfo-
IRangeProtectionRenderCellData-

Variables

VariableDescription
ApplyFormatPainterCommand-
AutoFillCommand-
ExpandSelectionCommand-
MoveSelectionCommandMove selection
PASTE_SPECIAL_MENU_ID-
PREDEFINED_HOOK_NAME-
ResetScrollCommandThis command is reset the scroll position of the current view to 0, 0
SHEET_UI_PLUGIN_NAMECopyright 2023-present DreamNum Inc.
ScrollCommandThis command is used to manage the scroll position of the current view by specifying the cell index of the top left cell Usually triggered by click scrollbar or moving selection range.
ScrollToCellCommandThe command is used to scroll to the specific cell if the target cell is not in the viewport.
ScrollToRangeOperation-
SetCellEditVisibleArrowOperationWhen the editor is not clicked to change the cursor, the arrow keys will exit editing and move the cell.
SetCellEditVisibleOperation-
SetRangeBoldCommandIt is used to set the bold style of selections or one cell, need to distinguish between selection state and edit state. If you are in the selective state, you need to set the style on the cell and the style on the rich text(p textRuns) at the same time, and if it is only in edit state, then you only need to set the style of the rich text(p textRuns)
SetRangeItalicCommand-
SetRangeStrickThroughCommand-
SetRangeUnderlineCommand-
SetScrollOperation-
SetScrollRelativeCommandThis command is used to manage the scroll by relative offset Usually triggered by wheel event.
SetZoomRatioOperation-
SheetCopyCommand-
SheetCutCommand-
SheetPasteColWidthCommand-
SheetPasteCommand-
SheetPasteShortKeyCommand-

Functions

FunctionDescription
IAutoFillService-
ICellEditorManagerService-
IEditorBridgeService-
IFormulaEditorManagerService-
IMarkSelectionService-
ISelectionRenderService-
ISheetClipboardService-
MobileSheetBar-
deriveStateFromActiveSheet$-
expandToContinuousRange-
getAutoFillRepeatRange-
getCoordByCell-
getCoordByOffset-
getCurrentRangeDisable$-
getEditorObject-
getRepeatRange-
getSheetObject-
getTransformCoord-
mergeSetRangeValues-
rangeToDiscreteRange-
useActiveWorkbook-
useActiveWorksheet-
useHighlightRange-
virtualizeDiscreteRanges-
whenFormulaEditorActivatedRequires the currently focused editor is a formula editor, and it is activated.
whenSheetEditorFocusedRequires the currently focused unit to be Workbook and the sheet editor is focused but not activated.

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