OnDragFromToolbarToCreateShapesOpts
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
| Name | Description |
|---|---|
|
Returns
void;onDragEnd
optional
Called once the drag interaction has finished.
Parameters
| Name | Description |
|---|---|
|
Returns
void;Prev
NoteShapeUtilDisplayValuesNext
OverflowingToolbarProps