@univerjssheets-uiindexinterfacesIsheetselectionrenderservice

@univerjs/sheets-ui v0.5.4


Interface: ISheetSelectionRenderService

Defined in: submodules/univer/packages/sheets-ui/src/services/selection/base-selection-render.service.ts:50

Properties

PropertyModifierTypeDefined in
controlFillConfig$readonlyObservable<null | IControlFillConfig>submodules/univer/packages/sheets-ui/src/services/selection/base-selection-render.service.ts:52
interceptorpublicInterceptorManager<{ RANGE_FILL_PERMISSION_CHECK: IInterceptor<boolean, { scene: Scene; skeleton: SpreadsheetSkeleton; x: number; y: number; }>; RANGE_MOVE_PERMISSION_CHECK: IInterceptor<boolean, null>; }>submodules/univer/packages/sheets-ui/src/services/selection/base-selection-render.service.ts:58
selectionMoveEnd$readonlyObservable<ISelectionWithCoord[]>submodules/univer/packages/sheets-ui/src/services/selection/base-selection-render.service.ts:51
selectionMoveStart$readonlyObservable<ISelectionWithCoord[]>submodules/univer/packages/sheets-ui/src/services/selection/base-selection-render.service.ts:54
selectionMoving$readonlyObservable<ISelectionWithCoord[]>submodules/univer/packages/sheets-ui/src/services/selection/base-selection-render.service.ts:53

Accessors

selectionMoving

Get Signature

get selectionMoving(): boolean

Defined in: submodules/univer/packages/sheets-ui/src/services/selection/base-selection-render.service.ts:56

Returns

boolean

Methods

attachPrimaryWithCoord()

attachPrimaryWithCoord(primary): Nullable<ICellWithCoord>

Defined in: submodules/univer/packages/sheets-ui/src/services/selection/base-selection-render.service.ts:76

Parameters

ParameterType
primaryNullable<Partial<ICellInfo>>

Returns

Nullable<ICellWithCoord>

Deprecated

Use the function attachPrimaryWithCoord instead`.


attachSelectionWithCoord()

attachSelectionWithCoord(selectionWithStyle): ISelectionWithCoord

Defined in: submodules/univer/packages/sheets-ui/src/services/selection/base-selection-render.service.ts:74

Parameters

ParameterType
selectionWithStyleISelectionWithStyle

Returns

ISelectionWithCoord

Deprecated

Use the function attachSelectionWithCoord instead.


getCellWithCoordByOffset()

getCellWithCoordByOffset(
   x, 
   y, 
skeleton?): Nullable<ICellWithCoord>

Defined in: submodules/univer/packages/sheets-ui/src/services/selection/base-selection-render.service.ts:83

Parameters

ParameterType
xnumber
ynumber
skeleton?SpreadsheetSkeleton

Returns

Nullable<ICellWithCoord>


getSelectionCellByPosition()

getSelectionCellByPosition(x, y): ICellWithCoord

Defined in: submodules/univer/packages/sheets-ui/src/services/selection/base-selection-render.service.ts:81

Parameters

ParameterType
xnumber
ynumber

Returns

ICellWithCoord

Deprecated

Please use getCellWithCoordByOffset instead.


getSelectionControls()

getSelectionControls(): SelectionControl[]

Defined in: submodules/univer/packages/sheets-ui/src/services/selection/base-selection-render.service.ts:68

Returns

SelectionControl[]


getSkeleton()

getSkeleton(): SpreadsheetSkeleton

Defined in: submodules/univer/packages/sheets-ui/src/services/selection/base-selection-render.service.ts:66

Returns

SpreadsheetSkeleton


getViewPort()

getViewPort(): Viewport

Defined in: submodules/univer/packages/sheets-ui/src/services/selection/base-selection-render.service.ts:64

Returns

Viewport

Deprecated

This should not be provided by the selection render service.


refreshSelectionMoveEnd()

refreshSelectionMoveEnd(): void

Defined in: submodules/univer/packages/sheets-ui/src/services/selection/base-selection-render.service.ts:87

Returns

void


setSingleSelectionEnabled()

setSingleSelectionEnabled(enabled): void

Defined in: submodules/univer/packages/sheets-ui/src/services/selection/base-selection-render.service.ts:85

Parameters

ParameterType
enabledboolean

Returns

void