OnDragFromToolbarToCreateShapesOpts

See source code
Table of contents

Options for onDragFromToolbarToCreateShape.

interface OnDragFromToolbarToCreateShapesOpts {}

Properties

maskedToolId

optional

The id of the toolbar tool to keep highlighted while dragging. Defaults to the created shape's type. Set this when the dragged shape's type differs from the tool it's dragged from — for example, dragging a draw shape out from the select tool.

maskedToolId?: string;

Methods

createShape

Create the shape being dragged. You don't need to worry about positioning it, as it'll be immediately updated with the correct position.

Parameters

NameDescription

id

Returns

void;

onDragEnd

optional

Called once the drag interaction has finished.

Parameters

NameDescription

id

Returns

void;

Prev
NoteShapeUtilDisplayValues
Next
OverflowingToolbarProps