dragselect
Advanced tools
Comparing version 3.0.5 to 3.0.6
@@ -0,1 +1,5 @@ | ||
# 3.0.6 | ||
- Expose the Drag class publicly, solves [#224](https://github.com/ThibaultJanBeyer/DragSelect/issues/224) | ||
# 3.0.5 | ||
@@ -2,0 +6,0 @@ |
@@ -567,2 +567,39 @@ type DSDropZone<E extends DSInputElement> = { | ||
declare class Drag<E extends DSInputElement> { | ||
private _prevCursorPos?; | ||
private _prevScrollPos?; | ||
private _elements; | ||
private _dragKeys?; | ||
private _dragKeysFlat; | ||
private _selectionRect; | ||
DS: DragSelect<E>; | ||
PS: PubSub<E>; | ||
Settings: DSSettings<E>; | ||
constructor({ DS, PS }: { | ||
DS: DragSelect<E>; | ||
PS: PubSub<E>; | ||
}); | ||
private assignDragKeys; | ||
private keyboardDrag; | ||
private keyboardEnd; | ||
private start; | ||
stop: () => void; | ||
private update; | ||
private handleZIndex; | ||
private moveElements; | ||
private get _cursorDiff(); | ||
private get _scrollDiff(); | ||
/** | ||
* Can be overridden to apply further filtering logic after the items to move are identified but before they actually get moved | ||
* Is expected to return the elements in the same shape as passed in | ||
*/ | ||
filterDragElements: ({ elements, direction, }: { | ||
elements: E[]; | ||
direction: Vect2; | ||
}) => { | ||
elements: E[]; | ||
direction: Vect2; | ||
}; | ||
} | ||
declare class DropZones<E extends DSInputElement> { | ||
@@ -755,3 +792,3 @@ /** Get the drop zone by the zone element */ | ||
Selection: Selection<E>; | ||
private Drag; | ||
Drag: Drag<E>; | ||
DropZones: DropZones<E>; | ||
@@ -758,0 +795,0 @@ Interaction: Interaction<E>; |
{ | ||
"name": "dragselect", | ||
"version": "3.0.5", | ||
"version": "3.0.6", | ||
"description": "Easy JavaScript library for selecting and moving elements. With no dependencies. Drag-Select & Drag-And-Drop.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/DragSelect.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
405096
5999