onDragFromToolbarToCreateShape

See source code

A helper method to use in to create a shape by dragging it from the toolbar.

function onDragFromToolbarToCreateShape(
  editor: Editor,
  info: TLPointerEventInfo,
  opts: OnDragFromToolbarToCreateShapesOpts
): void

Parameters

Returns

void
Prev
notifyIfFileNotAllowed
Next
parseTldrawJsonFile