Skip to content

BlockSuite API Documentation / @blocksuite/blocks / addNoteAtPoint

Function: addNoteAtPoint()

addNoteAtPoint(std, point, options): string

Parameters

std: BlockStdScope

point: IPoint

The point is in browser coordinate

options = {}

options.height?: number

options.noteIndex?: number

options.offsetX?: number

options.offsetY?: number

options.parentId?: string

options.scale?: number

options.width?: number

Returns

string

Defined in

packages/blocks/src/root-block/edgeless/utils/common.ts:230