onDragFromToolbarToCreateShape
See source codeA 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
Name | Description |
---|---|
| |
| |
|
Returns
void
Prev
notifyIfFileNotAllowedNext
parseTldrawJsonFile