HTML5 Canvas Drag and Drop the Stage
To drag and drop a stage with Konva, we can set the draggable
property
of the config object to true
when the group is instantiated, or we can use the draggable()
method.
Unlike drag and drop for other nodes, such as shapes, groups, and layers, we can drag the entire stage by dragging any portion of the stage.
- Vanilla
- React
- Vue