API Reference
@univerjs
@univerjs/sheets-ui
interfaces
Isheetselectionrenderservice

@univerjs/sheets-ui v0.4.2Docs


Interface: ISheetSelectionRenderService

Properties

PropertyModifierTypeDefined in
controlFillConfig$readonlyObservable<null | IControlFillConfig>packages/sheets-ui/src/services/selection/base-selection-render.service.ts:54 (opens in a new tab)
interceptorpublicInterceptorManager<{ RANGE_FILL_PERMISSION_CHECK: IInterceptor<boolean, { scene: Scene; skeleton: SpreadsheetSkeleton; x: number; y: number; }>; RANGE_MOVE_PERMISSION_CHECK: IInterceptor<boolean, null>; }>packages/sheets-ui/src/services/selection/base-selection-render.service.ts:60 (opens in a new tab)
selectionMoveEnd$readonlyObservable<ISelectionWithCoordAndStyle[]>packages/sheets-ui/src/services/selection/base-selection-render.service.ts:53 (opens in a new tab)
selectionMoveStart$readonlyObservable<ISelectionWithCoordAndStyle[]>packages/sheets-ui/src/services/selection/base-selection-render.service.ts:56 (opens in a new tab)
selectionMoving$readonlyObservable<ISelectionWithCoordAndStyle[]>packages/sheets-ui/src/services/selection/base-selection-render.service.ts:55 (opens in a new tab)

Accessors

selectionMoving

get selectionMoving(): boolean

Returns

boolean

Defined in

packages/sheets-ui/src/services/selection/base-selection-render.service.ts:58 (opens in a new tab)

Methods

attachPrimaryWithCoord()

attachPrimaryWithCoord(primary): Nullable<ISelectionCellWithMergeInfo>

Parameters

ParameterType
primaryNullable<Partial<ISelectionCell>>

Returns

Nullable<ISelectionCellWithMergeInfo>

Deprecated

Use the function attachPrimaryWithCoord instead`.

Defined in

packages/sheets-ui/src/services/selection/base-selection-render.service.ts:78 (opens in a new tab)


attachSelectionWithCoord()

attachSelectionWithCoord(selectionWithStyle): ISelectionWithCoordAndStyle

Parameters

ParameterType
selectionWithStyleISelectionWithStyle

Returns

ISelectionWithCoordAndStyle

Deprecated

Use the function attachSelectionWithCoord instead.

Defined in

packages/sheets-ui/src/services/selection/base-selection-render.service.ts:76 (opens in a new tab)


getSelectionCellByPosition()

getSelectionCellByPosition(x, y): Nullable<ISelectionCellWithMergeInfo>

Parameters

ParameterType
xnumber
ynumber

Returns

Nullable<ISelectionCellWithMergeInfo>

Defined in

packages/sheets-ui/src/services/selection/base-selection-render.service.ts:80 (opens in a new tab)


getSelectionControls()

getSelectionControls(): SelectionShape[]

Returns

SelectionShape[]

Defined in

packages/sheets-ui/src/services/selection/base-selection-render.service.ts:70 (opens in a new tab)


getSkeleton()

getSkeleton(): SpreadsheetSkeleton

Returns

SpreadsheetSkeleton

Defined in

packages/sheets-ui/src/services/selection/base-selection-render.service.ts:68 (opens in a new tab)


getViewPort()

getViewPort(): Viewport

Returns

Viewport

Deprecated

This should not be provided by the selection render service.

Defined in

packages/sheets-ui/src/services/selection/base-selection-render.service.ts:66 (opens in a new tab)


refreshSelectionMoveEnd()

refreshSelectionMoveEnd(): void

Returns

void

Defined in

packages/sheets-ui/src/services/selection/base-selection-render.service.ts:84 (opens in a new tab)


setSingleSelectionEnabled()

setSingleSelectionEnabled(enabled): void

Parameters

ParameterType
enabledboolean

Returns

void

Defined in

packages/sheets-ui/src/services/selection/base-selection-render.service.ts:82 (opens in a new tab)


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