Skip to content

BlockSuite API Documentation / @blocksuite/blocks / CopilotSelectionController

Class: CopilotSelectionController

Extends

  • EdgelessToolController<CopilotSelectionTool>

Constructors

new CopilotSelectionController()

new CopilotSelectionController(service): CopilotSelectionController

Parameters

service: EdgelessRootService

Returns

CopilotSelectionController

Inherited from

EdgelessToolController<CopilotSelectionTool>.constructor

Source

packages/blocks/src/root-block/edgeless/controllers/tools/index.ts:20

Properties

_dragging

private _dragging: boolean = false

Source

packages/blocks/src/root-block/edgeless/controllers/tools/copilot-tool.ts:21


_draggingArea

protected _draggingArea: null | SelectionArea = null

Inherited from

EdgelessToolController._draggingArea

Source

packages/blocks/src/root-block/edgeless/controllers/tools/index.ts:14


_edgeless

protected _edgeless: EdgelessRootBlockComponent

Inherited from

EdgelessToolController._edgeless

Source

packages/blocks/src/root-block/edgeless/controllers/tools/index.ts:12


_service

protected _service: EdgelessRootService

Inherited from

EdgelessToolController._service

Source

packages/blocks/src/root-block/edgeless/controllers/tools/index.ts:16


dragLastPoint

dragLastPoint: [number, number]

Source

packages/blocks/src/root-block/edgeless/controllers/tools/copilot-tool.ts:24


dragStartPoint

dragStartPoint: [number, number]

Source

packages/blocks/src/root-block/edgeless/controllers/tools/copilot-tool.ts:23


draggingAreaUpdated

draggingAreaUpdated: Slot<boolean | void>

Source

packages/blocks/src/root-block/edgeless/controllers/tools/copilot-tool.ts:25


enableHover

enableHover: boolean = false

Inherited from

EdgelessToolController.enableHover

Source

packages/blocks/src/root-block/edgeless/controllers/tools/index.ts:18


tool

readonly tool: CopilotSelectionTool

Overrides

EdgelessToolController.tool

Source

packages/blocks/src/root-block/edgeless/controllers/tools/copilot-tool.ts:17

Accessors

_blocks

get protected _blocks(): EdgelessBlock<EdgelessSelectableProps>[]

Returns

EdgelessBlock<EdgelessSelectableProps>[]

Source

packages/blocks/src/root-block/edgeless/controllers/tools/index.ts:40


_doc

get protected _doc(): Doc

Returns

Doc

Source

packages/blocks/src/root-block/edgeless/controllers/tools/index.ts:36


_surface

get protected _surface(): SurfaceBlockComponent

Returns

SurfaceBlockComponent

Source

packages/blocks/src/root-block/edgeless/controllers/tools/index.ts:32


area

get area(): DOMRect

Returns

DOMRect

Source

packages/blocks/src/root-block/edgeless/controllers/tools/copilot-tool.ts:35


draggingArea

get draggingArea(): null | SelectionArea

Returns

null | SelectionArea

Source

packages/blocks/src/root-block/edgeless/controllers/tools/index.ts:28


processing

get processing(): boolean

Returns

boolean

Source

packages/blocks/src/root-block/edgeless/controllers/tools/copilot-tool.ts:48


selectedElements

get selectedElements(): EdgelessModel[]

Returns

EdgelessModel[]

Source

packages/blocks/src/root-block/edgeless/controllers/tools/copilot-tool.ts:31


selection

get selection(): EdgelessSelectionManager

Returns

EdgelessSelectionManager

Source

packages/blocks/src/root-block/edgeless/controllers/tools/copilot-tool.ts:27

Methods

_initDragState()

private _initDragState(e): void

Parameters

e: PointerEventState

Returns

void

Source

packages/blocks/src/root-block/edgeless/controllers/tools/copilot-tool.ts:88


abort()

abort(): void

Returns

void

Source

packages/blocks/src/root-block/edgeless/controllers/tools/copilot-tool.ts:56


afterModeSwitch()

afterModeSwitch(): void

Returns

void

Overrides

EdgelessToolController.afterModeSwitch

Source

packages/blocks/src/root-block/edgeless/controllers/tools/copilot-tool.ts:160


beforeModeSwitch()

beforeModeSwitch(edgelessTool?): void

Parameters

edgelessTool?: EdgelessTool

Returns

void

Overrides

EdgelessToolController.beforeModeSwitch

Source

packages/blocks/src/root-block/edgeless/controllers/tools/copilot-tool.ts:156


mount()

mount(edgeless): void

Parameters

edgeless: EdgelessRootBlockComponent

Returns

void

Inherited from

EdgelessToolController.mount

Source

packages/blocks/src/root-block/edgeless/controllers/tools/index.ts:24


onContainerClick()

onContainerClick(): void

Returns

void

Overrides

EdgelessToolController.onContainerClick

Source

packages/blocks/src/root-block/edgeless/controllers/tools/copilot-tool.ts:140


onContainerContextMenu()

onContainerContextMenu(): void

Returns

void

Overrides

EdgelessToolController.onContainerContextMenu

Source

packages/blocks/src/root-block/edgeless/controllers/tools/copilot-tool.ts:142


onContainerDblClick()

onContainerDblClick(): void

Returns

void

Overrides

EdgelessToolController.onContainerDblClick

Source

packages/blocks/src/root-block/edgeless/controllers/tools/copilot-tool.ts:144


onContainerDragEnd()

onContainerDragEnd(): void

Returns

void

Overrides

EdgelessToolController.onContainerDragEnd

Source

packages/blocks/src/root-block/edgeless/controllers/tools/copilot-tool.ts:124


onContainerDragMove()

onContainerDragMove(e): void

Parameters

e: PointerEventState

Returns

void

Overrides

EdgelessToolController.onContainerDragMove

Source

packages/blocks/src/root-block/edgeless/controllers/tools/copilot-tool.ts:101


onContainerDragStart()

onContainerDragStart(e): void

Parameters

e: PointerEventState

Returns

void

Overrides

EdgelessToolController.onContainerDragStart

Source

packages/blocks/src/root-block/edgeless/controllers/tools/copilot-tool.ts:93


onContainerMouseMove()

onContainerMouseMove(): void

Returns

void

Overrides

EdgelessToolController.onContainerMouseMove

Source

packages/blocks/src/root-block/edgeless/controllers/tools/copilot-tool.ts:148


onContainerMouseOut()

onContainerMouseOut(): void

Returns

void

Overrides

EdgelessToolController.onContainerMouseOut

Source

packages/blocks/src/root-block/edgeless/controllers/tools/copilot-tool.ts:150


onContainerPointerDown()

onContainerPointerDown(e): void

Parameters

e: PointerEventState

Returns

void

Overrides

EdgelessToolController.onContainerPointerDown

Source

packages/blocks/src/root-block/edgeless/controllers/tools/copilot-tool.ts:131


onContainerTripleClick()

onContainerTripleClick(): void

Returns

void

Overrides

EdgelessToolController.onContainerTripleClick

Source

packages/blocks/src/root-block/edgeless/controllers/tools/copilot-tool.ts:146


onPressShiftKey()

onPressShiftKey(): void

Returns

void

Overrides

EdgelessToolController.onPressShiftKey

Source

packages/blocks/src/root-block/edgeless/controllers/tools/copilot-tool.ts:152


onPressSpaceBar()

onPressSpaceBar(): void

Returns

void

Overrides

EdgelessToolController.onPressSpaceBar

Source

packages/blocks/src/root-block/edgeless/controllers/tools/copilot-tool.ts:154


updateDragPointsWith()

updateDragPointsWith(selectedElements, padding): void

Parameters

selectedElements: EdgelessModel[]

padding: number= 0

Returns

void

Source

packages/blocks/src/root-block/edgeless/controllers/tools/copilot-tool.ts:63


updateSelectionWith()

updateSelectionWith(selectedElements, padding): void

Parameters

selectedElements: EdgelessModel[]

padding: number= 0

Returns

void

Source

packages/blocks/src/root-block/edgeless/controllers/tools/copilot-tool.ts:72