
Magnet is a vanilla JavaScript library and a jQuery plugin to create gapless, filterable and sortable layouts.
New in Magnet 2
- Eliminated jQuery dependency. Magnet has been rewritten in Vanilla JavaScript.
- A bin- packing algorithm to create gapless layouts for ‘grid’ format mode.
- A brand new format mode ‘grid’ that replaces ‘masonry’ and ‘tiles’, creating gapless layouts that may be stuffed from left to proper or high to backside.
- Sorting.
- Magnet now emits customized occasions.
- New strategies that reach Magnet’s performance.
- Extra choices for a deeper customization.
Model Management
Model 2.0.2. Model 2.0.1. Model 2.0.0. Model 1.3.0. Model 1.2.1. Model 1.2.0. Model 1.1.2. Model 1.1.1. Model 1.1.0. Model 1.0.0.Model 2.0.3.
- Mounted: An error that precipitated the plugin to be unable to get objects' kind information, subsequently sorting was bugged in some circumstances.
- Mounted: A bug that was inflicting an error when initializing the plugin with JavaScript underneath sure circumstances, This has been mounted in order that the error now not exists, permitting to initialize with JavaScript usually.
- Mounted: A bug when getting the precise measurement of a component if it was set in %. These values have been rounded as a substitute of staying as a floating level quantity, inflicting layouts to interrupt if components have been rendered in sub-pixels. This has been corrected in order that tthe measurement obtained stays as a floating level quantity.
- Mounted: A bug associated to Occasion constructor that was inflicting the plugin to not work in IE11.
- Mounted: A bug that precipitated take away methodology to not take away objects for sure arguments sorts handed.
- Up to date: Documentation to 2.0.1.
- Added: 'grid' format mode.
- Added: Sorting.
- Added: Occasions.
- Added: New strategies.
- Added: New choices.
- Eliminated: 'masonry', 'tiled' and 'static' format modes.
- Up to date: Documentation to 2.0.0.
- Up to date: Documentation to 1.3.0.
- Added: Static format mode.
- Added: Strategies.
- Mounted: A bug that precipitated objects to not disguise when a filter was set through plugin choices.
- Mounted: Challenge with masonry format mode. When first merchandise of the row was increased than the remainder of the objects in that row, there have been white areas beneath this objects, subsequent row wasn't positioned on the appropriate peak.
- Up to date: Documentation to 1.2.0 model.
- Added: New animation sorts. There are 5 completely different animations that set off when filtering happens. This may be set in choices.
- Added: animationType possibility.
- Modified: Animation on plugin initialitation is eliminated.
- Modified: Manner of getting the width worth launched in 1.1.1 model. Resulting from adjustments made to get objects' measurement each time the window resizes, this methodology was inflicting a battle when a filter was clicked.
- Mounted: Challenge on masonry format mode on window resize. This mode and tiled mode have been improved.
- Mounted: Challenge when objects resized on window resize. This measurement was anticipated to be the identical as on initialization. Now this values are get each time window resizes.
- Up to date: Documentation with new format mode.
- Mounted: Small concern when getting actual container width on initialization.
- Added: New format mode (tiled).
- Mounted: Challenge when getting the worth of the width set in % of a component. jQuery acquired this worth but it surely rounded to an integer inflicting format breaks in some circumstances. Now, this worth is returned as a float.
- Up to date: Documentation with new possibility and a dwell demo within the footer
- Mounted: Incorrect path on linked js in instance
- Mounted: Minor bug setting a clicked filter as energetic
- Mounted: Minor bug when getting a filter on click on occasion
- Added: New possibility gutter
- Launched
Source