Skip to content

BlockSuite API Documentation / @blocksuite/blocks / OnDragStartProps

Type Alias: OnDragStartProps

OnDragStartProps: object

Type declaration

anchorBlockId

anchorBlockId: string | null

editorHost

editorHost: EditorHost

startDragging()

startDragging: (blocks, state, dragPreview?, dragPreviewOffset?) => void

Parameters

blocks: BlockComponent[]

state: PointerEventState

dragPreview?: HTMLElement

dragPreviewOffset?: Point

Returns

void

state

state: PointerEventState

Defined in

packages/affine/shared/dist/services/drag-handle-config.d.ts:4