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

victory-pie

Package Overview
Dependencies
Maintainers
30
Versions
213
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

victory-pie - npm Package Compare versions

Comparing version 36.5.0 to 36.5.1

3

es/helper-methods.js

@@ -298,2 +298,3 @@ import _isNil from "lodash/isNil";

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

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

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

@@ -18,0 +18,0 @@

export { default as VictoryPie } from "./victory-pie";
export { default as Slice } from "./slice";
export { default as Slice } from "./slice";
//# sourceMappingURL=index.js.map

@@ -115,2 +115,3 @@ import _assign from "lodash/assign";

};
export default Slice;
export default Slice;
//# sourceMappingURL=slice.js.map

@@ -199,2 +199,3 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

VictoryPie.expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent"];
export default addEvents(VictoryPie);
export default addEvents(VictoryPie);
//# sourceMappingURL=victory-pie.js.map

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

exports.getBaseProps = getBaseProps;
exports.getBaseProps = getBaseProps;
//# sourceMappingURL=helper-methods.js.map

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

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

@@ -18,0 +18,0 @@

@@ -23,2 +23,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

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

var _default = Slice;
exports.default = _default;
exports.default = _default;
//# sourceMappingURL=slice.js.map

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

exports.default = _default;
exports.default = _default;
//# sourceMappingURL=victory-pie.js.map
{
"name": "victory-pie",
"version": "36.5.0",
"version": "36.5.1",
"description": "Pie Component for Victory",

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

"prop-types": "^15.8.1",
"victory-core": "^36.5.0",
"victory-vendor": "^36.5.0"
"victory-core": "^36.5.1",
"victory-vendor": "^36.5.1"
},

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

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

@@ -29,3 +29,3 @@ /*eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2, 45, 90, 135, 180, 225, 270, 315, 360] }]*/

props.width - padding.left - padding.right,
props.height - padding.top - padding.bottom
props.height - padding.top - padding.bottom,
) / 2

@@ -46,3 +46,3 @@ );

? origin.y
: (padding.top - padding.bottom + height) / 2
: (padding.top - padding.bottom + height) / 2,
};

@@ -84,3 +84,3 @@ };

slices,
origin
origin,
});

@@ -116,3 +116,3 @@ };

startAngle: position === "startAngle" ? slice.startAngle : slice.endAngle,
endAngle: position === "endAngle" ? slice.endAngle : slice.startAngle
endAngle: position === "endAngle" ? slice.endAngle : slice.startAngle,
};

@@ -160,3 +160,3 @@ const clonedArc = assign({}, slice, construct);

baseAngle = Helpers.radiansToDegrees(
(slice.startAngle + slice.endAngle) / 2
(slice.startAngle + slice.endAngle) / 2,
);

@@ -188,3 +188,3 @@ } else {

calculatedValues.labelRadius,
assign({ text }, dataProps)
assign({ text }, dataProps),
);

@@ -194,3 +194,3 @@ const labelPosition =

calculatedValues.labelPosition,
assign({ text }, dataProps)
assign({ text }, dataProps),
) || "centroid";

@@ -200,3 +200,3 @@ const labelPlacement =

calculatedValues.labelPlacement,
assign({ text }, dataProps)
assign({ text }, dataProps),
) || "vertical";

@@ -206,3 +206,3 @@ const labelStyle = assign({ padding: 0 }, style.labels);

labelStyle,
assign({ labelRadius, text }, dataProps)
assign({ labelRadius, text }, dataProps),
);

@@ -232,3 +232,3 @@ const labelArc = getLabelArc(defaultRadius, labelRadius, evaluatedStyle);

verticalAnchor,
angle: labelAngle
angle: labelAngle,
};

@@ -262,7 +262,7 @@

padAngle,
disableInlineStyles
disableInlineStyles,
} = calculatedValues;
const radius = props.radius || defaultRadius;
const initialChildProps = {
parent: { standalone, height, width, slices, name, style: style.parent }
parent: { standalone, height, width, slices, name, style: style.parent },
};

@@ -274,3 +274,3 @@

endAngle: Helpers.radiansToDegrees(slice.endAngle),
padAngle: Helpers.radiansToDegrees(slice.padAngle)
padAngle: Helpers.radiansToDegrees(slice.padAngle),
});

@@ -289,6 +289,6 @@ const eventKey = !isNil(datum.eventKey) ? datum.eventKey : index;

style: disableInlineStyles ? {} : getSliceStyle(index, calculatedValues),
disableInlineStyles
disableInlineStyles,
};
childProps[eventKey] = {
data: dataProps
data: dataProps,
};

@@ -304,3 +304,3 @@ const text = getLabelText(props, datum, index);

assign({}, props, dataProps),
calculatedValues
calculatedValues,
);

@@ -307,0 +307,0 @@ }

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

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

@@ -18,0 +18,0 @@

@@ -42,7 +42,7 @@ import React from "react";

props.radius,
assign({}, props, { style })
assign({}, props, { style }),
);
const innerRadius = Helpers.evaluateProp(
props.innerRadius,
assign({}, props, { style, radius })
assign({}, props, { style, radius }),
);

@@ -68,3 +68,3 @@

sliceEndAngle,
tabIndex
tabIndex,
});

@@ -89,3 +89,3 @@ };

clipPath: props.clipPath,
tabIndex: props.tabIndex
tabIndex: props.tabIndex,
});

@@ -105,3 +105,3 @@ };

sliceEndAngle: PropTypes.oneOfType([PropTypes.number, PropTypes.func]),
sliceStartAngle: PropTypes.oneOfType([PropTypes.number, PropTypes.func])
sliceStartAngle: PropTypes.oneOfType([PropTypes.number, PropTypes.func]),
};

@@ -112,5 +112,5 @@

role: "presentation",
shapeRendering: "auto"
shapeRendering: "auto",
};
export default Slice;

@@ -12,3 +12,3 @@ /*eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2] }]*/

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

@@ -36,5 +36,5 @@ import Slice from "./slice";

"#252525",
"#000000"
"#000000",
],
labelPosition: "centroid"
labelPosition: "centroid",
};

@@ -54,3 +54,3 @@

"style",
"width"
"width",
];

@@ -65,3 +65,3 @@

duration: 500,
before: () => ({ _y: 0, label: " " })
before: () => ({ _y: 0, label: " " }),
},

@@ -73,5 +73,5 @@ onEnter: {

y_: datum._y,
label: datum.label
})
}
label: datum.label,
}),
},
};

@@ -91,4 +91,4 @@

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

@@ -98,3 +98,3 @@ containerComponent: PropTypes.element,

CustomPropTypes.nonNegative,
PropTypes.func
PropTypes.func,
]),

@@ -109,5 +109,5 @@ data: PropTypes.array,

CustomPropTypes.integer,
CustomPropTypes.nonNegative
CustomPropTypes.nonNegative,
]),
PropTypes.string
PropTypes.string,
]),

@@ -122,8 +122,8 @@ events: PropTypes.arrayOf(

CustomPropTypes.integer,
CustomPropTypes.nonNegative
CustomPropTypes.nonNegative,
]),
PropTypes.string
PropTypes.string,
]),
eventHandlers: PropTypes.object
})
eventHandlers: PropTypes.object,
}),
),

@@ -138,9 +138,9 @@ externalEventMutations: PropTypes.arrayOf(

CustomPropTypes.integer,
CustomPropTypes.nonNegative
CustomPropTypes.nonNegative,
]),
PropTypes.string
PropTypes.string,
]),
mutation: PropTypes.func,
target: PropTypes.oneOfType([PropTypes.string, PropTypes.array])
})
target: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
}),
),

@@ -151,3 +151,3 @@ groupComponent: PropTypes.element,

CustomPropTypes.nonNegative,
PropTypes.func
PropTypes.func,
]),

@@ -157,11 +157,11 @@ labelComponent: PropTypes.element,

PropTypes.func,
PropTypes.oneOf(["parallel", "perpendicular", "vertical"])
PropTypes.oneOf(["parallel", "perpendicular", "vertical"]),
]),
labelPosition: PropTypes.oneOfType([
PropTypes.func,
PropTypes.oneOf(["startAngle", "centroid", "endAngle"])
PropTypes.oneOf(["startAngle", "centroid", "endAngle"]),
]),
labelRadius: PropTypes.oneOfType([
CustomPropTypes.nonNegative,
PropTypes.func
PropTypes.func,
]),

@@ -172,7 +172,7 @@ labels: PropTypes.oneOfType([PropTypes.func, PropTypes.array]),

x: CustomPropTypes.nonNegative,
y: CustomPropTypes.nonNegative
y: CustomPropTypes.nonNegative,
}),
padAngle: PropTypes.oneOfType([
CustomPropTypes.nonNegative,
PropTypes.func
PropTypes.func,
]),

@@ -185,4 +185,4 @@ padding: PropTypes.oneOfType([

left: PropTypes.number,
right: PropTypes.number
})
right: PropTypes.number,
}),
]),

@@ -192,3 +192,3 @@ radius: PropTypes.oneOfType([CustomPropTypes.nonNegative, PropTypes.func]),

events: PropTypes.array,
getEventState: PropTypes.func
getEventState: PropTypes.func,
}),

@@ -199,6 +199,6 @@ sortKey: PropTypes.oneOfType([

CustomPropTypes.integer,
CustomPropTypes.nonNegative
CustomPropTypes.nonNegative,
]),
PropTypes.string,
PropTypes.arrayOf(PropTypes.string)
PropTypes.arrayOf(PropTypes.string),
]),

@@ -211,3 +211,3 @@ sortOrder: PropTypes.oneOf(["ascending", "descending"]),

data: PropTypes.object,
labels: PropTypes.object
labels: PropTypes.object,
}),

@@ -220,6 +220,6 @@ theme: PropTypes.object,

CustomPropTypes.integer,
CustomPropTypes.nonNegative
CustomPropTypes.nonNegative,
]),
PropTypes.string,
PropTypes.arrayOf(PropTypes.string)
PropTypes.arrayOf(PropTypes.string),
]),

@@ -230,7 +230,7 @@ y: PropTypes.oneOfType([

CustomPropTypes.integer,
CustomPropTypes.nonNegative
CustomPropTypes.nonNegative,
]),
PropTypes.string,
PropTypes.arrayOf(PropTypes.string)
])
PropTypes.arrayOf(PropTypes.string),
]),
};

@@ -244,3 +244,3 @@

{ x: "D", y: 1 },
{ x: "E", y: 2 }
{ x: "E", y: 2 },
],

@@ -253,3 +253,3 @@ standalone: true,

sortOrder: "ascending",
theme: VictoryTheme.grayscale
theme: VictoryTheme.grayscale,
};

@@ -263,3 +263,3 @@

"groupComponent",
"containerComponent"
"containerComponent",
];

@@ -266,0 +266,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