@univerjssheets-uiindexinterfacesIsheetselectionrenderservice

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


Interface: ISheetSelectionRenderService

Properties

PropertyModifierTypeDefined in
controlFillConfig$readonlyObservable<null | IControlFillConfig>submodules/univer/packages/sheets-ui/src/services/selection/base-selection-render.service.ts:51
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:57
selectionMoveEnd$readonlyObservable<ISelectionWithCoord[]>submodules/univer/packages/sheets-ui/src/services/selection/base-selection-render.service.ts:50
selectionMoveStart$readonlyObservable<ISelectionWithCoord[]>submodules/univer/packages/sheets-ui/src/services/selection/base-selection-render.service.ts:53
selectionMoving$readonlyObservable<ISelectionWithCoord[]>submodules/univer/packages/sheets-ui/src/services/selection/base-selection-render.service.ts:52

Accessors

selectionMoving

Get Signature

get selectionMoving(): boolean
Returns

boolean

Defined in

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

Methods

attachPrimaryWithCoord()

attachPrimaryWithCoord(primary): Nullable<ICellWithCoord>

Parameters

ParameterType
primaryNullable<Partial<ICellInfo>>

Returns

Nullable<ICellWithCoord>

Deprecated

Use the function attachPrimaryWithCoord instead`.

Defined in

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


attachSelectionWithCoord()

attachSelectionWithCoord(selectionWithStyle): ISelectionWithCoord

Parameters

ParameterType
selectionWithStyleISelectionWithStyle

Returns

ISelectionWithCoord

Deprecated

Use the function attachSelectionWithCoord instead.

Defined in

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


getCellWithCoordByOffset()

getCellWithCoordByOffset(x, y): Nullable<ICellWithCoord>

Parameters

ParameterType
xnumber
ynumber

Returns

Nullable<ICellWithCoord>

Defined in

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


getSelectionCellByPosition()

getSelectionCellByPosition(x, y): ICellWithCoord

Parameters

ParameterType
xnumber
ynumber

Returns

ICellWithCoord

Deprecated

Please use getCellWithCoordByOffset instead.

Defined in

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


getSelectionControls()

getSelectionControls(): SelectionShape[]

Returns

SelectionShape[]

Defined in

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


getSkeleton()

getSkeleton(): SpreadsheetSkeleton

Returns

SpreadsheetSkeleton

Defined in

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


getViewPort()

getViewPort(): Viewport

Returns

Viewport

Deprecated

This should not be provided by the selection render service.

Defined in

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


refreshSelectionMoveEnd()

refreshSelectionMoveEnd(): void

Returns

void

Defined in

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


setSingleSelectionEnabled()

setSingleSelectionEnabled(enabled): void

Parameters

ParameterType
enabledboolean

Returns

void

Defined in

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