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

magic-grid

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

magic-grid - npm Package Compare versions

Comparing version 3.1.1 to 3.1.2

CONTRIBUTING.md

11

dist/magic-grid.cjs.js

@@ -159,5 +159,6 @@ 'use strict';

/**
* Position each items in the container
* based on their corresponding columns
* values.
* Positions each item in the grid, based
* on their corresponding column's height
* and index then stretches the container to
* the height of the grid.
*/

@@ -193,6 +194,6 @@ MagicGrid.prototype.positionItems = function positionItems () {

/**
* Checks if every items has been loaded
* Checks if every item has been loaded
* in the dom.
*
* @return {Boolean} true if every items is present
* @return {Boolean} true if every item is present
*/

@@ -199,0 +200,0 @@ MagicGrid.prototype.ready = function ready () {

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

/**
* Position each items in the container
* based on their corresponding columns
* values.
* Positions each item in the grid, based
* on their corresponding column's height
* and index then stretches the container to
* the height of the grid.
*/

@@ -191,6 +192,6 @@ MagicGrid.prototype.positionItems = function positionItems () {

/**
* Checks if every items has been loaded
* Checks if every item has been loaded
* in the dom.
*
* @return {Boolean} true if every items is present
* @return {Boolean} true if every item is present
*/

@@ -197,0 +198,0 @@ MagicGrid.prototype.ready = function ready () {

{
"name": "magic-grid",
"version": "3.1.1",
"version": "3.1.2",
"description": "Super lightweight javascript library for dynamic grid layouts.",

@@ -5,0 +5,0 @@ "main": "dist/magic-grid.cjs.js",

@@ -9,3 +9,3 @@ [![MIT License](https://img.shields.io/npm/l/magic-grid.svg?style=for-the-badge)](https://www.npmjs.com/package/magic-grid)

**Note: Every item in the grid must have the same width**
**Note: Every item in the grid must have the same width.**

@@ -115,3 +115,3 @@ #### [Sample Usage](https://github.com/e-oj/Magic-Grid/blob/master/test/grid.html)

maxColumns: 5, // Maximum number of columns. Default: Infinite.
useMin: true, // Append next element to the shortest column. Default: false.
useMin: true, // Prioritize shorter columns when placing items in the grid. Default: false.
animate: true, // Animate item positioning. Default: false.

@@ -118,0 +118,0 @@ });

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

/**
* Position each items in the container
* based on their corresponding columns
* values.
* Positions each item in the grid, based
* on their corresponding column's height
* and index then stretches the container to
* the height of the grid.
*/

@@ -153,6 +154,6 @@ positionItems () {

/**
* Checks if every items has been loaded
* Checks if every item has been loaded
* in the dom.
*
* @return {Boolean} true if every items is present
* @return {Boolean} true if every item is present
*/

@@ -159,0 +160,0 @@ ready () {

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