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

angular-gridster2

Package Overview
Dependencies
Maintainers
1
Versions
245
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-gridster2 - npm Package Compare versions

Comparing version 2.8.0 to 2.8.1

10

dist/gridsterPush.service.d.ts

@@ -11,7 +11,7 @@ import { GridsterItemComponent } from './gridsterItem.component';

setPushedItems(): void;
private push(gridsterItem);
private trySouth(gridsterItemCollide, gridsterItem);
private tryNorth(gridsterItemCollide, gridsterItem);
private tryEast(gridsterItemCollide, gridsterItem);
private tryWest(gridsterItemCollide, gridsterItem);
private push(gridsterItem, pushedBy);
private trySouth(gridsterItemCollide, gridsterItem, pushedBy);
private tryNorth(gridsterItemCollide, gridsterItem, pushedBy);
private tryEast(gridsterItemCollide, gridsterItem, pushedBy);
private tryWest(gridsterItemCollide, gridsterItem, pushedBy);
private addToPushed(gridsterItem);

@@ -18,0 +18,0 @@ private removeFromPushed(gridsterItem);

@@ -15,3 +15,3 @@ "use strict";

this.checkPushBack();
this.push(this.gridsterItem);
this.push(this.gridsterItem, this.gridsterItem);
}

@@ -41,4 +41,4 @@ };

};
GridsterPush.prototype.push = function (gridsterItem) {
var gridsterItemCollision = this.gridster.checkCollision(gridsterItem, this.gridsterItem);
GridsterPush.prototype.push = function (gridsterItem, pushedBy) {
var gridsterItemCollision = this.gridster.checkCollision(gridsterItem, pushedBy);
if (gridsterItemCollision && gridsterItemCollision !== true) {

@@ -48,6 +48,6 @@ var gridsterItemCollide = gridsterItemCollision;

(gridsterItem.item.y === gridsterItem.$item.y && gridsterItem.item.rows < gridsterItem.$item.rows)) {
if (this.trySouth(gridsterItemCollide, gridsterItem)) {
if (this.trySouth(gridsterItemCollide, gridsterItem, pushedBy)) {
return true;
}
else if (this.tryEast(gridsterItemCollide, gridsterItem)) {
else if (this.tryEast(gridsterItemCollide, gridsterItem, pushedBy)) {
return true;

@@ -57,6 +57,6 @@ }

else if (gridsterItem.item.y > gridsterItem.$item.y) {
if (this.tryNorth(gridsterItemCollide, gridsterItem)) {
if (this.tryNorth(gridsterItemCollide, gridsterItem, pushedBy)) {
return true;
}
else if (this.tryEast(gridsterItemCollide, gridsterItem)) {
else if (this.tryEast(gridsterItemCollide, gridsterItem, pushedBy)) {
return true;

@@ -67,6 +67,6 @@ }

(gridsterItem.item.x === gridsterItem.$item.x && gridsterItem.item.cols < gridsterItem.$item.cols)) {
if (this.tryEast(gridsterItemCollide, gridsterItem)) {
if (this.tryEast(gridsterItemCollide, gridsterItem, pushedBy)) {
return true;
}
else if (this.trySouth(gridsterItemCollide, gridsterItem)) {
else if (this.trySouth(gridsterItemCollide, gridsterItem, pushedBy)) {
return true;

@@ -76,6 +76,6 @@ }

else if (gridsterItem.item.x > gridsterItem.$item.x) {
if (this.tryWest(gridsterItemCollide, gridsterItem)) {
if (this.tryWest(gridsterItemCollide, gridsterItem, pushedBy)) {
return true;
}
else if (this.trySouth(gridsterItemCollide, gridsterItem)) {
else if (this.trySouth(gridsterItemCollide, gridsterItem, pushedBy)) {
return true;

@@ -89,7 +89,7 @@ }

};
GridsterPush.prototype.trySouth = function (gridsterItemCollide, gridsterItem) {
GridsterPush.prototype.trySouth = function (gridsterItemCollide, gridsterItem, pushedBy) {
gridsterItemCollide.$item.y += 1;
if (this.push(gridsterItemCollide)) {
if (this.push(gridsterItemCollide, gridsterItem)) {
gridsterItemCollide.setSize(true);
this.push(gridsterItem);
this.push(gridsterItem, pushedBy);
this.addToPushed(gridsterItemCollide);

@@ -102,7 +102,7 @@ return true;

};
GridsterPush.prototype.tryNorth = function (gridsterItemCollide, gridsterItem) {
GridsterPush.prototype.tryNorth = function (gridsterItemCollide, gridsterItem, pushedBy) {
gridsterItemCollide.$item.y -= 1;
if (this.push(gridsterItemCollide)) {
if (this.push(gridsterItemCollide, gridsterItem)) {
gridsterItemCollide.setSize(true);
this.push(gridsterItem);
this.push(gridsterItem, pushedBy);
this.addToPushed(gridsterItemCollide);

@@ -115,7 +115,7 @@ return true;

};
GridsterPush.prototype.tryEast = function (gridsterItemCollide, gridsterItem) {
GridsterPush.prototype.tryEast = function (gridsterItemCollide, gridsterItem, pushedBy) {
gridsterItemCollide.$item.x += 1;
if (this.push(gridsterItemCollide)) {
if (this.push(gridsterItemCollide, gridsterItem)) {
gridsterItemCollide.setSize(true);
this.push(gridsterItem);
this.push(gridsterItem, pushedBy);
this.addToPushed(gridsterItemCollide);

@@ -128,7 +128,7 @@ return true;

};
GridsterPush.prototype.tryWest = function (gridsterItemCollide, gridsterItem) {
GridsterPush.prototype.tryWest = function (gridsterItemCollide, gridsterItem, pushedBy) {
gridsterItemCollide.$item.x -= 1;
if (this.push(gridsterItemCollide)) {
if (this.push(gridsterItemCollide, gridsterItem)) {
gridsterItemCollide.setSize(true);
this.push(gridsterItem);
this.push(gridsterItem, pushedBy);
this.addToPushed(gridsterItemCollide);

@@ -135,0 +135,0 @@ return true;

{
"name": "angular-gridster2",
"version": "2.8.0",
"version": "2.8.1",
"license": "MIT",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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