Releases: ThibaultJanBeyer/DragSelect
Releases · ThibaultJanBeyer/DragSelect
Version 2.4.2
- Add Selecrables events/topics for add/delete:
Selectable:added
&Selectable:added:pre
&Selectable:removed
&Selectable:removed:pre
Version 2.4.1
- Change all Properties dynamically anytime. Solves #111 and #95. Very helpful for async libraries like react. You can do so using the
setSettings
method, you can pass any settings in the object and they will be updated. Example: update the drag area at any time by running:ds.setSettings({ area: document.getElementById("new-area") })
. - Remove deprecated keys
ctrlKey
,shiftKey
andmetaKey
. UseControl
,Shift
andMeta
respectively instead. - Remove deprecated method
getCursorPositionDifference
. Calculate the difference on your own instead. - Remove deprecated setting property callbacks. Use
DragSelect.subscribe("callback", (callbackObject) => {})
instead.
Version 2.3.1
- Fix bug #109 where inner elements are ignored from normal drag behaviour
Version 2.3.0
- Fix bug with
break
not working. (still handling change) - Fix bug with
pre
events not working properly. - Caution:
-
- This upgrade changes the order in which the callbacks are fired. The normal callbacks are fired in a FIFO order, first in, first out. The
pre
callbacks are fired in a LIFO order, last in first out.
- This upgrade changes the order in which the callbacks are fired. The normal callbacks are fired in a FIFO order, first in, first out. The
-
- Pre Events are now really triggered before the whole action.
Version 2.2.2
2.2.2
- Add a check whether the initial click was issued within the area
- Fixes #105
Version 2.2.1
- removes generated dom-nodes when using
.stop
- fixes #94
Version 2.2.0
- Add new possible callback value:
isDraggingKeyboard
- Add new settings prop
keyboardDrag: false
- Add
pre
events for all events. i.e.predragstart
,predragmove
, etc. - Add information on 3rd party integration to the README.
- Re-add
break
functionality to give maximum flexibility on 3rd party integration
All these changes solve #80
Version 2.1.2
- Fixes build error bug introduced by typings. Solves #100
Issue: the JS-Docs file types.js was not included in d.ts files. Now rollup builds are force-including it.