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

victory-box-plot

Package Overview
Dependencies
Maintainers
2
Versions
148
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

victory-box-plot - npm Package Compare versions

Comparing version 32.3.7 to 33.0.0

22

es/helper-methods.js

@@ -175,11 +175,11 @@ import _isNil from "lodash/isNil";

max: _defaults({}, style.max, styleObject.max, whiskerStyles),
maxLabels: _defaults({}, style.maxLabels, styleObject.maxlabels, labelStyles),
maxLabels: _defaults({}, style.maxLabels, styleObject.maxLabels, labelStyles),
median: _defaults({}, style.median, styleObject.median, whiskerStyles),
medianLabels: _defaults({}, style.medianLabels, styleObject.medianlabels, labelStyles),
medianLabels: _defaults({}, style.medianLabels, styleObject.medianLabels, labelStyles),
min: _defaults({}, style.min, styleObject.min, whiskerStyles),
minLabels: _defaults({}, style.minLabels, styleObject.minlabels, labelStyles),
minLabels: _defaults({}, style.minLabels, styleObject.minLabels, labelStyles),
q1: _defaults({}, style.q1, styleObject.q1, boxStyles),
q1Labels: _defaults({}, style.q1Labels, styleObject.q1labels, labelStyles),
q1Labels: _defaults({}, style.q1Labels, styleObject.q1Labels, labelStyles),
q3: _defaults({}, style.q3, styleObject.q3, boxStyles),
q3Labels: _defaults({}, style.q3Labels, styleObject.q3labels, labelStyles),
q3Labels: _defaults({}, style.q3Labels, styleObject.q3Labels, labelStyles),
whiskers: whiskerStyles

@@ -359,3 +359,3 @@ };

var getDefaultPosition = function (coord) {
var getOffset = function (coord) {
var sign = {

@@ -365,3 +365,3 @@ x: orientation === "left" ? -1 : 1,

};
return positions[coord] + sign[coord] * width / 2 + sign[coord] * (labelStyle.padding || 0);
return sign[coord] * width / 2 + sign[coord] * (labelStyle.padding || 0);
};

@@ -373,6 +373,8 @@

index: index,
orientation: labelOrientation,
orientation: orientation,
style: labelStyle,
y: horizontal ? getDefaultPosition("y") : positions[type],
x: horizontal ? positions[type] : getDefaultPosition("x"),
y: horizontal ? positions.y : positions[type],
x: horizontal ? positions[type] : positions.x,
dy: horizontal ? getOffset("y") : 0,
dx: horizontal ? 0 : getOffset("x"),
textAnchor: labelStyle.textAnchor || defaultTextAnchors[labelOrientation],

@@ -379,0 +381,0 @@ verticalAnchor: labelStyle.verticalAnchor || defaultVerticalAnchors[labelOrientation],

@@ -196,11 +196,11 @@ "use strict";

max: (0, _defaults2.default)({}, style.max, styleObject.max, whiskerStyles),
maxLabels: (0, _defaults2.default)({}, style.maxLabels, styleObject.maxlabels, labelStyles),
maxLabels: (0, _defaults2.default)({}, style.maxLabels, styleObject.maxLabels, labelStyles),
median: (0, _defaults2.default)({}, style.median, styleObject.median, whiskerStyles),
medianLabels: (0, _defaults2.default)({}, style.medianLabels, styleObject.medianlabels, labelStyles),
medianLabels: (0, _defaults2.default)({}, style.medianLabels, styleObject.medianLabels, labelStyles),
min: (0, _defaults2.default)({}, style.min, styleObject.min, whiskerStyles),
minLabels: (0, _defaults2.default)({}, style.minLabels, styleObject.minlabels, labelStyles),
minLabels: (0, _defaults2.default)({}, style.minLabels, styleObject.minLabels, labelStyles),
q1: (0, _defaults2.default)({}, style.q1, styleObject.q1, boxStyles),
q1Labels: (0, _defaults2.default)({}, style.q1Labels, styleObject.q1labels, labelStyles),
q1Labels: (0, _defaults2.default)({}, style.q1Labels, styleObject.q1Labels, labelStyles),
q3: (0, _defaults2.default)({}, style.q3, styleObject.q3, boxStyles),
q3Labels: (0, _defaults2.default)({}, style.q3Labels, styleObject.q3labels, labelStyles),
q3Labels: (0, _defaults2.default)({}, style.q3Labels, styleObject.q3Labels, labelStyles),
whiskers: whiskerStyles

@@ -380,3 +380,3 @@ };

var getDefaultPosition = function (coord) {
var getOffset = function (coord) {
var sign = {

@@ -386,3 +386,3 @@ x: orientation === "left" ? -1 : 1,

};
return positions[coord] + sign[coord] * width / 2 + sign[coord] * (labelStyle.padding || 0);
return sign[coord] * width / 2 + sign[coord] * (labelStyle.padding || 0);
};

@@ -394,6 +394,8 @@

index: index,
orientation: labelOrientation,
orientation: orientation,
style: labelStyle,
y: horizontal ? getDefaultPosition("y") : positions[type],
x: horizontal ? positions[type] : getDefaultPosition("x"),
y: horizontal ? positions.y : positions[type],
x: horizontal ? positions[type] : positions.x,
dy: horizontal ? getOffset("y") : 0,
dx: horizontal ? 0 : getOffset("x"),
textAnchor: labelStyle.textAnchor || defaultTextAnchors[labelOrientation],

@@ -400,0 +402,0 @@ verticalAnchor: labelStyle.verticalAnchor || defaultVerticalAnchors[labelOrientation],

{
"name": "victory-box-plot",
"version": "32.3.7",
"version": "33.0.0",
"description": "Box Plot Component for Victory",

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

"prop-types": "^15.5.8",
"victory-core": "^32.3.7"
"victory-core": "^33.0.0"
},

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

@@ -152,11 +152,11 @@ import { orderBy, defaults, assign, uniq, groupBy, keys, isNaN, isNil } from "lodash";

max: defaults({}, style.max, styleObject.max, whiskerStyles),
maxLabels: defaults({}, style.maxLabels, styleObject.maxlabels, labelStyles),
maxLabels: defaults({}, style.maxLabels, styleObject.maxLabels, labelStyles),
median: defaults({}, style.median, styleObject.median, whiskerStyles),
medianLabels: defaults({}, style.medianLabels, styleObject.medianlabels, labelStyles),
medianLabels: defaults({}, style.medianLabels, styleObject.medianLabels, labelStyles),
min: defaults({}, style.min, styleObject.min, whiskerStyles),
minLabels: defaults({}, style.minLabels, styleObject.minlabels, labelStyles),
minLabels: defaults({}, style.minLabels, styleObject.minLabels, labelStyles),
q1: defaults({}, style.q1, styleObject.q1, boxStyles),
q1Labels: defaults({}, style.q1Labels, styleObject.q1labels, labelStyles),
q1Labels: defaults({}, style.q1Labels, styleObject.q1Labels, labelStyles),
q3: defaults({}, style.q3, styleObject.q3, boxStyles),
q3Labels: defaults({}, style.q3Labels, styleObject.q3labels, labelStyles),
q3Labels: defaults({}, style.q3Labels, styleObject.q3Labels, labelStyles),
whiskers: whiskerStyles

@@ -280,3 +280,3 @@ };

const getDefaultPosition = (coord) => {
const getOffset = (coord) => {
const sign = {

@@ -286,3 +286,3 @@ x: orientation === "left" ? -1 : 1,

};
return positions[coord] + (sign[coord] * width) / 2 + sign[coord] * (labelStyle.padding || 0);
return (sign[coord] * width) / 2 + sign[coord] * (labelStyle.padding || 0);
};

@@ -294,6 +294,8 @@

index,
orientation: labelOrientation,
orientation,
style: labelStyle,
y: horizontal ? getDefaultPosition("y") : positions[type],
x: horizontal ? positions[type] : getDefaultPosition("x"),
y: horizontal ? positions.y : positions[type],
x: horizontal ? positions[type] : positions.x,
dy: horizontal ? getOffset("y") : 0,
dx: horizontal ? 0 : getOffset("x"),
textAnchor: labelStyle.textAnchor || defaultTextAnchors[labelOrientation],

@@ -300,0 +302,0 @@ verticalAnchor: labelStyle.verticalAnchor || defaultVerticalAnchors[labelOrientation],

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