Commit 63c4c80
authored
v0.9.0 (#18)
- Bring back main module imports.
- Refactor the repo structure into a monorepo where the lib, docs and tests are separate packages, for better isolation.
Update names of package.json scripts.
- Bring in ESLint for enforcing better code quality (also to sort imports).
- Add new Draggable option/setting: sensorProcessingMode. It can be sampled (default) or immediate. Check the docs for more in-depth explanation.
- Ensure the ticker can never accidentally tick on the server.
- Update docs and deps.
- BREAKING: In default sensorProcessingMode (sampled), if you previously had a sensor emitting end event before the draggable's drag start process was started/finished, the start procedure was discarded, which also meant that the start events/callbacks were never called. To me, this was a bit problematic, that an end event can be sent without a start event firing first (or at all). So now this is behavior is changed so that the start procedure is forcefully completed if it has not yet completed when the drag stops for one reason or another.
- BREAKING: Rename Draggable group option/setting to dndGroups and enforce it to always be a Set of DraggableDndGroups. This makes the Droppable and Draggable matching quite a bit more flexible.
- BREAKING: Droppable accept option/setting can not be an array anymore, but a Set instead. It can still be a function too though, like before.1 parent ef51ffd commit 63c4c80
File tree
519 files changed
+19858
-16060
lines changed- .github/workflows
- dist
- dnd-context
- draggable
- helpers
- modifiers
- plugins
- sensors
- singletons
- docs/public/examples
- 002-draggable-auto-scroll
- 003-draggable-transformed
- 005-draggable-snap-to-grid
- 012-dnd-advanced-collision-detector
- packages
- dragdoll-docs
- docs
- .vitepress
- dist
- assets
- chunks
- docs
- examples
- theme
- public
- examples
- 001-draggable-basic
- 002-draggable-auto-scroll
- 003-draggable-transformed
- 004-draggable-locked-axis
- 005-draggable-snap-to-grid
- 006-draggable-containment
- 007-draggable-center-to-pointer
- 008-draggable-drag-handle
- 009-draggable-ghost-element
- 010-draggable-multiple-elements
- 011-dnd-basic
- 012-dnd-advanced-collision-detector
- examples
- 001-draggable-basic
- 002-draggable-auto-scroll
- 003-draggable-transformed
- 004-draggable-locked-axis
- 005-draggable-snap-to-grid
- 006-draggable-containment
- 007-draggable-center-to-pointer
- 008-draggable-drag-handle
- 009-draggable-ghost-element
- 010-draggable-multiple-elements
- 011-dnd-basic
- 012-dnd-advanced-collision-detector
- assets
- scripts
- dragdoll-tests
- dist
- src
- base-sensor
- methods
- properties
- dnd-context
- draggable
- methods
- options
- keyboard-sensor
- events
- methods
- options
- properties
- pointer-sensor
- events
- methods
- options
- properties
- utils
- dragdoll
- dist
- dnd-context
- draggable
- helpers
- modifiers
- plugins
- sensors
- singletons
- src
- auto-scroll
- dnd-context
- draggable
- helpers
- modifiers
- plugins
- droppable
- sensors
- singletons
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
519 files changed
+19858
-16060
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | | - | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
27 | | - | |
| 29 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | | - | |
8 | 6 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | 1 | | |
6 | 2 | | |
7 | 3 | | |
8 | | - | |
9 | 4 | | |
10 | | - | |
11 | 5 | | |
12 | 6 | | |
13 | | - | |
14 | 7 | | |
15 | 8 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
28 | 28 | | |
29 | | - | |
30 | | - | |
| 29 | + | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
39 | 46 | | |
40 | 47 | | |
41 | 48 | | |
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments