🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

muuri

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

muuri - npm Package Compare versions

Comparing version

to
0.9.5

41

package.json
{
"name": "muuri",
"version": "0.9.4",
"version": "0.9.5",
"description": "Responsive, sortable, filterable and draggable layouts",

@@ -58,24 +58,21 @@ "keywords": [

"devDependencies": {
"dotenv": "^9.0.2",
"gulp": "^4.0.2",
"gulp-eslint": "^6.0.0",
"gulp-size": "^4.0.0",
"husky": "^4.2.5",
"karma": "^6.3.2",
"karma-chrome-launcher": "^3.1.0",
"karma-edge-launcher": "^0.4.2",
"karma-firefox-launcher": "^2.1.0",
"karma-qunit": "^4.1.2",
"karma-safari-launcher": "^1.0.0",
"karma-sauce-launcher": "^4.3.6",
"karma-story-reporter": "^0.3.1",
"mezr": "^0.6.2",
"prettier": "^2.3.0",
"prosthetic-hand": "^1.3.1",
"qunit": "^2.15.0",
"rimraf": "^3.0.2",
"rollup": "^2.47.0",
"terser": "^5.7.0",
"web-animations-js": "^2.3.2"
"dotenv": "10.0.0",
"gulp": "4.0.2",
"gulp-eslint": "6.0.0",
"gulp-size": "4.0.1",
"husky": "4.3.8",
"karma": "6.3.4",
"karma-chrome-launcher": "3.1.0",
"karma-qunit": "4.1.2",
"karma-sauce-launcher": "4.3.6",
"karma-story-reporter": "0.3.1",
"mezr": "0.6.2",
"prettier": "2.3.2",
"prosthetic-hand": "1.3.1",
"qunit": "2.16.0",
"rimraf": "3.0.2",
"rollup": "2.52.8",
"terser": "5.7.1",
"web-animations-js": "2.3.2"
}
}

@@ -1387,5 +1387,2 @@ /**

var gridContainer = grid._element;
var axis = grid._settings.dragAxis;
var moveX = axis !== 'y';
var moveY = axis !== 'x';
var rect = element.getBoundingClientRect();

@@ -1401,14 +1398,10 @@

// Update horizontal position data.
if (moveX) {
var scrollDiffX = this._clientX - this._moveDiffX - this._scrollDiffX - rect.left;
this._left = this._left - this._scrollDiffX + scrollDiffX;
this._scrollDiffX = scrollDiffX;
}
var scrollDiffX = this._clientX - this._moveDiffX - rect.left;
this._left = this._left - this._scrollDiffX + scrollDiffX;
this._scrollDiffX = scrollDiffX;
// Update vertical position data.
if (moveY) {
var scrollDiffY = this._clientY - this._moveDiffY - this._scrollDiffY - rect.top;
this._top = this._top - this._scrollDiffY + scrollDiffY;
this._scrollDiffY = scrollDiffY;
}
var scrollDiffY = this._clientY - this._moveDiffY - rect.top;
this._top = this._top - this._scrollDiffY + scrollDiffY;
this._scrollDiffY = scrollDiffY;

@@ -1415,0 +1408,0 @@ // Update grid position.

@@ -81,3 +81,3 @@ /**

if (layout) delete this._layoutCallbacks[layoutId];
if (layout) delete this._layouts[layoutId];
if (callback) delete this._layoutCallbacks[layoutId];

@@ -84,0 +84,0 @@ if (worker) delete this._layoutWorkers[layoutId];

@@ -142,2 +142,3 @@ /**

this.nextRects.length = 0;
this.rectStore.length = 0;
this.rectId = 0;

@@ -144,0 +145,0 @@ this.slotIndex = -1;

@@ -6,16 +6,5 @@ /**

*/
var isWeakMapSupported = typeof WeakMap === 'function';
var cache = isWeakMapSupported ? new WeakMap() : null;
var cacheInterval = 3000;
var cacheTimer;
var canClearCache = true;
var clearCache = function () {
if (canClearCache) {
cacheTimer = window.clearInterval(cacheTimer);
cache = isWeakMapSupported ? new WeakMap() : null;
} else {
canClearCache = true;
}
};
var cache = typeof WeakMap === 'function' ? new WeakMap() : null;
/**

@@ -36,11 +25,3 @@ * Returns the computed value of an element's style property as a string.

if (cache) {
if (!cacheTimer) {
cacheTimer = window.setInterval(clearCache, cacheInterval);
} else {
canClearCache = false;
}
}
return styles.getPropertyValue(style);
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display