angular-gridster2
Advanced tools
Comparing version 4.7.0 to 4.7.1
@@ -15,3 +15,2 @@ import { GridsterItemComponentInterface } from './gridsterItemComponent.interface'; | ||
private tryPattern; | ||
private count; | ||
constructor(gridsterItem: GridsterItemComponentInterface); | ||
@@ -18,0 +17,0 @@ destroy(): void; |
@@ -7,3 +7,2 @@ "use strict"; | ||
function GridsterPush(gridsterItem) { | ||
this.count = 0; | ||
this.pushedItems = []; | ||
@@ -31,3 +30,2 @@ this.pushedItemsTemp = []; | ||
GridsterPush.prototype.pushItems = function (direction, disable) { | ||
this.count = 0; | ||
if (this.gridster.$options.pushItems && !disable) { | ||
@@ -91,8 +89,2 @@ this.pushedItemsOrder = []; | ||
GridsterPush.prototype.push = function (gridsterItem, direction) { | ||
if (this.count > 50000) { | ||
return false; | ||
} | ||
else { | ||
this.count++; | ||
} | ||
if (this.gridster.checkGridCollision(gridsterItem.$item)) { | ||
@@ -118,3 +110,6 @@ return false; | ||
} | ||
if (this.pushedItemsTemp.indexOf(itemCollision) > -1) { | ||
var compare = this.pushedItemsTemp.find(function (el) { | ||
return el.$item.x === itemCollision.$item.x && el.$item.y === itemCollision.$item.y; | ||
}); | ||
if (compare) { | ||
makePush = false; | ||
@@ -121,0 +116,0 @@ break; |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":4,"metadata":{"GridsterPush":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":5,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./gridsterItemComponent.interface","name":"GridsterItemComponentInterface","line":27,"character":28}]}],"destroy":[{"__symbolic":"method"}],"pushItems":[{"__symbolic":"method"}],"restoreTempItems":[{"__symbolic":"method"}],"restoreItems":[{"__symbolic":"method"}],"setPushedItems":[{"__symbolic":"method"}],"checkPushBack":[{"__symbolic":"method"}],"push":[{"__symbolic":"method"}],"trySouth":[{"__symbolic":"method"}],"tryNorth":[{"__symbolic":"method"}],"tryEast":[{"__symbolic":"method"}],"tryWest":[{"__symbolic":"method"}],"addToTempPushed":[{"__symbolic":"method"}],"removeFromTempPushed":[{"__symbolic":"method"}],"addToPushed":[{"__symbolic":"method"}],"removeFromPushed":[{"__symbolic":"method"}],"removeFromPushedItem":[{"__symbolic":"method"}],"checkPushedItem":[{"__symbolic":"method"}]}}}}] | ||
[{"__symbolic":"module","version":4,"metadata":{"GridsterPush":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":5,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./gridsterItemComponent.interface","name":"GridsterItemComponentInterface","line":26,"character":28}]}],"destroy":[{"__symbolic":"method"}],"pushItems":[{"__symbolic":"method"}],"restoreTempItems":[{"__symbolic":"method"}],"restoreItems":[{"__symbolic":"method"}],"setPushedItems":[{"__symbolic":"method"}],"checkPushBack":[{"__symbolic":"method"}],"push":[{"__symbolic":"method"}],"trySouth":[{"__symbolic":"method"}],"tryNorth":[{"__symbolic":"method"}],"tryEast":[{"__symbolic":"method"}],"tryWest":[{"__symbolic":"method"}],"addToTempPushed":[{"__symbolic":"method"}],"removeFromTempPushed":[{"__symbolic":"method"}],"addToPushed":[{"__symbolic":"method"}],"removeFromPushed":[{"__symbolic":"method"}],"removeFromPushedItem":[{"__symbolic":"method"}],"checkPushedItem":[{"__symbolic":"method"}]}}}}] |
{ | ||
"name": "angular-gridster2", | ||
"version": "4.7.0", | ||
"version": "4.7.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
200048
3495