Skip to content

BlockSuite API Documentation / @blocksuite/affine-block-surface / addNoteAtPoint

Function: addNoteAtPoint()

addNoteAtPoint(std, point, options): string

Defined in: packages/affine/blocks/block-surface/src/utils/add-note.ts:22

Parameters

std

BlockStdScope

point

IPoint

The point is in browser coordinate

options

height?

number

noteIndex?

number

offsetX?

number

offsetY?

number

parentId?

string

scale?

number

width?

number

Returns

string