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

victory-stack

Package Overview
Dependencies
Maintainers
3
Versions
149
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 34.1.2 to 34.1.3

8

es/helper-methods.js

@@ -118,4 +118,4 @@ import _orderBy from "lodash/orderBy";

var style = Wrapper.getStyle(props.theme, props.style, role);
var categories = Wrapper.getCategories(props, childComponents);
var datasets = stackData(props, childComponents);
var categories = props.categories || Wrapper.getCategories(props, childComponents);
var datasets = props.datasets || stackData(props, childComponents);
var children = childComponents.map(function (c, i) {

@@ -126,3 +126,3 @@ return React.cloneElement(c, {

});
var domain = {
var domain = props.domain || {
x: Wrapper.getDomain(_assign({}, props, {

@@ -135,3 +135,3 @@ categories: categories

};
var range = {
var range = props.range || {
x: Helpers.getRange(props, "x"),

@@ -138,0 +138,0 @@ y: Helpers.getRange(props, "y")

@@ -133,5 +133,5 @@ "use strict";

var categories = _victoryCore.Wrapper.getCategories(props, childComponents);
var categories = props.categories || _victoryCore.Wrapper.getCategories(props, childComponents);
var datasets = stackData(props, childComponents);
var datasets = props.datasets || stackData(props, childComponents);
var children = childComponents.map(function (c, i) {

@@ -142,3 +142,3 @@ return _react.default.cloneElement(c, {

});
var domain = {
var domain = props.domain || {
x: _victoryCore.Wrapper.getDomain((0, _assign2.default)({}, props, {

@@ -151,3 +151,3 @@ categories: categories

};
var range = {
var range = props.range || {
x: _victoryCore.Helpers.getRange(props, "x"),

@@ -154,0 +154,0 @@ y: _victoryCore.Helpers.getRange(props, "y")

{
"name": "victory-stack",
"version": "34.1.2",
"version": "34.1.3",
"description": "Stack Layout Component for Victory",

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

"react-fast-compare": "^2.0.0",
"victory-core": "^34.1.1",
"victory-shared-events": "^34.1.1"
"victory-core": "^34.1.3",
"victory-shared-events": "^34.1.3"
},

@@ -29,0 +29,0 @@ "scripts": {

@@ -114,12 +114,12 @@ /* eslint-disable func-style */

const style = Wrapper.getStyle(props.theme, props.style, role);
const categories = Wrapper.getCategories(props, childComponents);
const datasets = stackData(props, childComponents);
const categories = props.categories || Wrapper.getCategories(props, childComponents);
const datasets = props.datasets || stackData(props, childComponents);
const children = childComponents.map((c, i) => {
return React.cloneElement(c, { data: datasets[i] });
});
const domain = {
const domain = props.domain || {
x: Wrapper.getDomain(assign({}, props, { categories }), "x", children),
y: Wrapper.getDomain(assign({}, props, { categories }), "y", children)
};
const range = {
const range = props.range || {
x: Helpers.getRange(props, "x"),

@@ -126,0 +126,0 @@ y: Helpers.getRange(props, "y")

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