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 1.15.2 to 1.16.0

8

package.json
{
"name": "angular-gridster2",
"version": "1.15.2",
"version": "1.16.0",
"main": "index.js",

@@ -14,3 +14,3 @@ "dependencies": {

"browser-sync-spa": "1.0.3",
"chalk": "2.2.0",
"chalk": "2.3.0",
"del": "3.0.0",

@@ -34,3 +34,3 @@ "eslint-plugin-angular": "3.1.1",

"gulp-replace": "0.6.1",
"gulp-rev": "8.0.0",
"gulp-rev": "8.1.0",
"gulp-rev-replace": "0.4.3",

@@ -50,3 +50,3 @@ "gulp-size": "2.1.0",

"lodash": "4.17.4",
"phantomjs-prebuilt": "2.1.15",
"phantomjs-prebuilt": "2.1.16",
"uglify-save-license": "0.4.1",

@@ -53,0 +53,0 @@ "wrench": "1.5.9"

@@ -153,2 +153,16 @@ angular-gridster2

this.options.api.getNextPossiblePosition(item: GridsterItem); // call to get a viable position for item. Returns true if found
// if you want to push items from code use the GridsterPush service
import {GridsterItemComponent, GridsterPush, GridsterPushResize, GridsterSwap} from 'gridster'
myMethod(gridsterItemComponent: GridsterItemComponent) {
const push = new GridsterPush(gridsterItemComponent); // init the service
gridsterItemComponent.$item.rows += 1; // move your item
push.pushItems(push.fromEast); // push items from a direction
push.setPushedItems(); // save the items pushed
push.restoreItems(); // restore to initial state the pushed items
push.checkPushBack(); // check for items restore to original position
// same for GridsterPushResize and GridsterSwap
}
```

@@ -155,0 +169,0 @@

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