https://github.com/d3/d3-drag
Drag and drop SVG, HTML or Canvas using mouse or touch input.
https://github.com/d3/d3-drag
Last synced: 12 months ago
JSON representation
Drag and drop SVG, HTML or Canvas using mouse or touch input.
- Host: GitHub
- URL: https://github.com/d3/d3-drag
- Owner: d3
- License: isc
- Created: 2016-05-02T18:09:51.000Z (about 10 years ago)
- Default Branch: main
- Last Pushed: 2023-10-06T15:02:24.000Z (over 2 years ago)
- Last Synced: 2025-04-30T18:05:47.515Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://d3js.org/d3-drag
- Size: 472 KB
- Stars: 337
- Watchers: 17
- Forks: 61
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# d3-drag
[Drag-and-drop](https://en.wikipedia.org/wiki/Drag_and_drop) is a popular and easy-to-learn pointing gesture: move the pointer to an object, press and hold to grab it, “drag” the object to a new location, and release to “drop”. D3’s [drag behavior](#api-reference) provides a convenient but flexible abstraction for enabling drag-and-drop interaction on [selections](https://github.com/d3/d3-selection).
## Resources
- [Documentation](https://d3js.org/d3-drag)
- [Examples](https://observablehq.com/collection/@d3/d3-drag)
- [Releases](https://github.com/d3/d3-drag/releases)
- [Getting help](https://d3js.org/community)