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

victory-stack

Package Overview
Dependencies
Maintainers
26
Versions
148
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

victory-stack - npm Package Compare versions

Comparing version 36.5.0 to 36.5.1

3

es/helper-methods.js

@@ -288,2 +288,3 @@ import _orderBy from "lodash/orderBy";

});
}
}
//# sourceMappingURL=helper-methods.js.map

@@ -11,3 +11,3 @@ import * as React from "react";

VictoryMultiLabelableProps,
VictoryStyleInterface
VictoryStyleInterface,
} from "victory-core";

@@ -14,0 +14,0 @@

@@ -1,1 +0,2 @@

export { default as VictoryStack } from "./victory-stack";
export { default as VictoryStack } from "./victory-stack";
//# sourceMappingURL=index.js.map

@@ -155,2 +155,3 @@ import _isEmpty from "lodash/isEmpty";

VictoryStackMemo.getChildren = getChildren;
export default VictoryStackMemo;
export default VictoryStackMemo;
//# sourceMappingURL=victory-stack.js.map

@@ -312,2 +312,3 @@ "use strict";

});
}
}
//# sourceMappingURL=helper-methods.js.map

@@ -11,3 +11,3 @@ import * as React from "react";

VictoryMultiLabelableProps,
VictoryStyleInterface
VictoryStyleInterface,
} from "victory-core";

@@ -14,0 +14,0 @@

@@ -15,2 +15,3 @@ "use strict";

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
//# sourceMappingURL=index.js.map

@@ -184,2 +184,3 @@ "use strict";

var _default = VictoryStackMemo;
exports.default = _default;
exports.default = _default;
//# sourceMappingURL=victory-stack.js.map
{
"name": "victory-stack",
"version": "36.5.0",
"version": "36.5.1",
"description": "Stack Layout Component for Victory",

@@ -25,4 +25,4 @@ "keywords": [

"react-fast-compare": "^3.2.0",
"victory-core": "^36.5.0",
"victory-shared-events": "^36.5.0"
"victory-core": "^36.5.1",
"victory-shared-events": "^36.5.1"
},

@@ -36,3 +36,3 @@ "peerDependencies": {

"sideEffects": false,
"gitHead": "7cecba921f751c3decc8215f7e866f51d11203c1"
"gitHead": "fbe60407533cd7a6da4f8155d2ef8e189583c5a2"
}

@@ -10,3 +10,3 @@ /* eslint-disable no-use-before-define */

height: 300,
padding: 50
padding: 50,
};

@@ -69,5 +69,5 @@

? previousDatum._x.getTime() === datum._x.getTime()
: previousDatum._x === datum._x
: previousDatum._x === datum._x,
)
.map((previousDatum) => previousDatum._y || 0)
.map((previousDatum) => previousDatum._y || 0),
);

@@ -109,3 +109,3 @@ }, []);

? new Date(+datum._x + +xOffset)
: datum._x + xOffset
: datum._x + xOffset,
});

@@ -119,3 +119,3 @@ });

const filterNullChildData = dataFromChildren.map((dataset) =>
dataset.filter((datum) => datum._x !== null && datum._y !== null)
dataset.filter((datum) => datum._x !== null && datum._y !== null),
);

@@ -139,15 +139,15 @@ const datasets = fillData(props, filterNullChildData);

x: Wrapper.getDomain(assign({}, props, { categories }), "x", children),
y: Wrapper.getDomain(assign({}, props, { categories }), "y", children)
y: Wrapper.getDomain(assign({}, props, { categories }), "y", children),
};
const range = props.range || {
x: Helpers.getRange(props, "x"),
y: Helpers.getRange(props, "y")
y: Helpers.getRange(props, "y"),
};
const baseScale = {
x: Scale.getScaleFromProps(props, "x") || Wrapper.getScale(props, "x"),
y: Scale.getScaleFromProps(props, "y") || Wrapper.getScale(props, "y")
y: Scale.getScaleFromProps(props, "y") || Wrapper.getScale(props, "y"),
};
const scale = {
x: baseScale.x.domain(domain.x).range(props.horizontal ? range.y : range.x),
y: baseScale.y.domain(domain.y).range(props.horizontal ? range.x : range.y)
y: baseScale.y.domain(domain.y).range(props.horizontal ? range.x : range.y),
};

@@ -164,3 +164,3 @@ const { colorScale, horizontal } = props;

colorScale,
role
role,
};

@@ -176,3 +176,3 @@ }

...child,
props: Helpers.omit(child.props, ["sharedEvents"])
props: Helpers.omit(child.props, ["sharedEvents"]),
};

@@ -220,3 +220,3 @@ });

scale,
horizontal
horizontal,
};

@@ -265,8 +265,8 @@ }

data,
polar: props.polar
polar: props.polar,
},
childProps
)
childProps,
),
);
});
}

@@ -11,3 +11,3 @@ import * as React from "react";

VictoryMultiLabelableProps,
VictoryStyleInterface
VictoryStyleInterface,
} from "victory-core";

@@ -14,0 +14,0 @@

@@ -12,3 +12,3 @@ import { assign, defaults, isEmpty } from "lodash";

VictoryTheme,
Wrapper
Wrapper,
} from "victory-core";

@@ -22,3 +22,3 @@ import { VictorySharedEvents } from "victory-shared-events";

height: 300,
padding: 50
padding: 50,
};

@@ -46,3 +46,3 @@

horizontal,
name
name,
} = modifiedProps;

@@ -59,3 +59,3 @@

{ animate: getAnimationProps(props, child, index, "victory-stack") },
child.props
child.props,
);

@@ -85,3 +85,3 @@ return React.cloneElement(child, childProps);

origin,
name
name,
};

@@ -101,7 +101,7 @@ }

origin,
name
name,
]);
const userProps = React.useMemo(
() => UserProps.getSafeUserProps(initialProps),
[initialProps]
[initialProps],
);

@@ -115,3 +115,3 @@

containerProps,
userProps
userProps,
);

@@ -126,3 +126,3 @@ return React.cloneElement(containerComponent, defaultContainerProps);

containerProps,
userProps
userProps,
]);

@@ -167,6 +167,6 @@

CustomPropTypes.nonNegative,
PropTypes.instanceOf(Date)
])
PropTypes.instanceOf(Date),
]),
),
CustomPropTypes.nonNegative
CustomPropTypes.nonNegative,
]),

@@ -177,8 +177,8 @@ categories: PropTypes.oneOfType([

x: PropTypes.arrayOf(PropTypes.string),
y: PropTypes.arrayOf(PropTypes.string)
})
y: PropTypes.arrayOf(PropTypes.string),
}),
]),
children: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.node),
PropTypes.node
PropTypes.node,
]),

@@ -195,4 +195,4 @@ colorScale: PropTypes.oneOfType([

"green",
"blue"
])
"blue",
]),
]),

@@ -206,5 +206,5 @@ fillInMissingData: PropTypes.bool,

data: PropTypes.object,
labels: PropTypes.object
labels: PropTypes.object,
}),
xOffset: PropTypes.number
xOffset: PropTypes.number,
};

@@ -217,3 +217,3 @@

theme: VictoryTheme.grayscale,
fillInMissingData: true
fillInMissingData: true,
};

@@ -229,3 +229,3 @@

"containerComponent",
"labelComponent"
"labelComponent",
];

@@ -232,0 +232,0 @@

Sorry, the diff of this file is too big to display

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