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

@dflex/draggable

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dflex/draggable - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

6

dist/AbstractDraggable.js

@@ -17,5 +17,5 @@ "use strict";

this.draggedElm = abstractCoreElm;
var _b = this.draggedElm, translateX = _b.translateX, translateY = _b.translateY;
this.outerOffsetX = -initX + translateX;
this.outerOffsetY = -initY + translateY;
var translate = this.draggedElm.translate;
this.outerOffsetX = -initX + translate.x;
this.outerOffsetY = -initY + translate.y;
this.tempTranslate = {

@@ -22,0 +22,0 @@ x: 0,

@@ -34,6 +34,4 @@ "use strict";

function Draggable(id, clickCoordinates) {
var _this = this;
var element = DraggableStoreImp_1.default.registry[id];
_this = _super.call(this, element, clickCoordinates) || this;
return _this;
return _super.call(this, element, clickCoordinates) || this;
}

@@ -46,4 +44,4 @@ /**

this.translate(x, y);
this.draggedElm.translateX = this.tempTranslate.x;
this.draggedElm.translateY = this.tempTranslate.y;
this.draggedElm.translate.x = this.tempTranslate.x;
this.draggedElm.translate.y = this.tempTranslate.y;
};

@@ -50,0 +48,0 @@ Draggable.prototype.endDragging = function () {

import Store from "@dflex/store";
import { AbstractCoreInterface } from "@dflex/core-instance";
import type { RegisterInput } from "./types";
declare class DraggableStoreImp extends Store<AbstractCoreInterface> {
declare class DraggableStoreImp extends Store {
/**

@@ -6,0 +5,0 @@ * Register element for Draggable store

@@ -33,3 +33,2 @@ "use strict";

var store_1 = __importDefault(require("@dflex/store"));
var core_instance_1 = __importDefault(require("@dflex/core-instance"));
var DraggableStoreImp = /** @class */ (function (_super) {

@@ -57,4 +56,3 @@ __extends(DraggableStoreImp, _super);

}
var elm = __assign(__assign({}, element), { id: id, depth: 0 });
_super.prototype.register.call(this, elm, core_instance_1.default);
_super.prototype.register.call(this, __assign({ id: id, depth: 0, isInitialized: true, isPaused: false, scrollX: 0, scrollY: 0 }, element));
};

@@ -61,0 +59,0 @@ return DraggableStoreImp;

{
"name": "@dflex/draggable",
"version": "3.0.0",
"version": "3.1.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"description": "Modern Draggable package for all JavaScript frameworks",
"author": "Jalal Maskoun <jimmy002020@gmail.com>",
"author": "Jalal Maskoun",
"scripts": {

@@ -21,4 +21,4 @@ "compile": "yarn rimraf ./dist tsconfig.tsbuildinfo && yarn tsc -b",

"dependencies": {
"@dflex/core-instance": "^3.0.0",
"@dflex/store": "^3.0.0"
"@dflex/core-instance": "^3.1.0",
"@dflex/store": "^3.1.0"
},

@@ -45,3 +45,3 @@ "keywords": [

},
"gitHead": "8a604a4bbdfa2584879b6fd0da7d982a7b21b9aa"
"gitHead": "eac9f58fd4893166f1db260bc01a99fa8b641af3"
}

Sorry, the diff of this file is not supported yet

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