Skip to content

BlockSuite API Documentation / @blocksuite/blocks / CopilotSelectionController

Class: CopilotSelectionController

Extends

  • EdgelessToolController<CopilotSelectionTool>

Constructors

new CopilotSelectionController(service)

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

_dragLastPoint

private _dragLastPoint: [number, number]

Source

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


_dragStartPoint

private _dragStartPoint: [number, number]

Source

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


_dragging

private _dragging: boolean = false

Source

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


_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


draggingAreaUpdated

draggingAreaUpdated: Slot<void>

Source

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


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:10

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:43


draggingArea

get draggingArea(): null | SelectionArea

Returns

null | SelectionArea

Source

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


selectedElements

get selectedElements(): EdgelessModel[]

Returns

EdgelessModel[]

Source

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


selection

get selection(): EdgelessSelectionManager

Returns

EdgelessSelectionManager

Source

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

Methods

_initDragState()

private _initDragState(e): void

Parameters

e: PointerEventState

Returns

void

Source

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


afterModeSwitch()

afterModeSwitch(): void

Returns

void

Overrides

EdgelessToolController.afterModeSwitch

Source

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


beforeModeSwitch()

beforeModeSwitch(): void

Returns

void

Overrides

EdgelessToolController.beforeModeSwitch

Source

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


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:82


onContainerContextMenu()

onContainerContextMenu(): void

Returns

void

Overrides

EdgelessToolController.onContainerContextMenu

Source

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


onContainerDblClick()

onContainerDblClick(): void

Returns

void

Overrides

EdgelessToolController.onContainerDblClick

Source

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


onContainerDragEnd()

onContainerDragEnd(): void

Returns

void

Overrides

EdgelessToolController.onContainerDragEnd

Source

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


onContainerDragMove()

onContainerDragMove(e): void

Parameters

e: PointerEventState

Returns

void

Overrides

EdgelessToolController.onContainerDragMove

Source

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


onContainerDragStart()

onContainerDragStart(e): void

Parameters

e: PointerEventState

Returns

void

Overrides

EdgelessToolController.onContainerDragStart

Source

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


onContainerMouseMove()

onContainerMouseMove(): void

Returns

void

Overrides

EdgelessToolController.onContainerMouseMove

Source

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


onContainerMouseOut()

onContainerMouseOut(): void

Returns

void

Overrides

EdgelessToolController.onContainerMouseOut

Source

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


onContainerPointerDown()

onContainerPointerDown(): void

Returns

void

Overrides

EdgelessToolController.onContainerPointerDown

Source

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


onContainerTripleClick()

onContainerTripleClick(): void

Returns

void

Overrides

EdgelessToolController.onContainerTripleClick

Source

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


onPressShiftKey()

onPressShiftKey(): void

Returns

void

Overrides

EdgelessToolController.onPressShiftKey

Source

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


onPressSpaceBar()

onPressSpaceBar(): void

Returns

void

Overrides

EdgelessToolController.onPressSpaceBar

Source

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