Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dragselect

Package Overview
Dependencies
Maintainers
0
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dragselect - npm Package Compare versions

Comparing version 3.0.5 to 3.0.6

4

CHANGELOG.md

@@ -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>;

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc