magic-grid
Advanced tools
Comparing version 3.1.1 to 3.1.2
@@ -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 () { |
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
32662
14
818