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

NameDescription

editor

Editor

info

opts

Returns

void
Prev
notifyIfFileNotAllowed
Next
parseTldrawJsonFile