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

react-grid-layout

Package Overview
Dependencies
Maintainers
1
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-grid-layout - npm Package Compare versions

Comparing version 0.16.4 to 0.16.5

35

build/utils.js

@@ -366,2 +366,5 @@ "use strict";

if (isUserAction) {
// Reset isUserAction flag because we're not in the main collision anymore.
isUserAction = false;
// Make a mock item so we don't modify the item here, only modify in moveElement.

@@ -376,14 +379,4 @@ var fakeItem = {

// This makes it feel a bit more precise by waiting to swap for just a bit when moving up.
var _ref = compactType === "horizontal" ? ["x", "w"] : ["y", "h"],
axis = _ref[0],
dimension = _ref[1];
var shouldSkip = false &&
// Our collision is below the item to move, and only encroaches by 25% of its dimension; ignore
collidesWith[axis] > itemToMove[axis] && collidesWith[axis] - itemToMove[axis] > itemToMove[dimension] / 4;
// No collision? If so, we can go up there; otherwise, we'll end up moving down as normal
if (!shouldSkip && !getFirstCollision(layout, fakeItem)) {
if (!getFirstCollision(layout, fakeItem)) {
log("Doing reverse collision on " + itemToMove.i + " up to [" + fakeItem.x + "," + fakeItem.y + "].");

@@ -407,7 +400,7 @@ return moveElement(layout, itemToMove, fakeItem.x, fakeItem.y, isUserAction, preventCollision, compactType, cols);

function setTransform(_ref2) {
var top = _ref2.top,
left = _ref2.left,
width = _ref2.width,
height = _ref2.height;
function setTransform(_ref) {
var top = _ref.top,
left = _ref.left,
width = _ref.width,
height = _ref.height;

@@ -428,7 +421,7 @@ // Replace unitless items with px

function setTopLeft(_ref3) {
var top = _ref3.top,
left = _ref3.left,
width = _ref3.width,
height = _ref3.height;
function setTopLeft(_ref2) {
var top = _ref2.top,
left = _ref2.left,
width = _ref2.width,
height = _ref2.height;

@@ -435,0 +428,0 @@ return {

# Changelog
0.16.5 (Feb 26, 2018)
----
- Minor fix to `isUserAction` on certain types of compaction cascades (#714, #720, #729)
0.16.4 (Feb 15, 2018)
----
- Skip null items in processGridItem (#578)
- Resize is broken for grids with preventCollision: true, fixes #655 (#656)
- Minor refactoring
0.16.3 (Jan 31, 2018)

@@ -4,0 +16,0 @@ ----

2

package.json
{
"name": "react-grid-layout",
"version": "0.16.4",
"version": "0.16.5",
"description": "A draggable and resizable grid layout with responsive breakpoints, for React.",

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

@@ -61,2 +61,3 @@ # React-Grid-Layout

- [ez-Dashing](https://github.com/ylacaute/ez-Dashing)
- [Kibana](https://www.elastic.co/products/kibana)

@@ -63,0 +64,0 @@ *Know of others? Create a PR to let me know!*

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