Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
render() {
const { animationWhitelist, role } = VictoryErrorBar;
const props = Helpers.modifyProps(this.props, fallbackProps, role);
if (this.shouldAnimate()) {
return this.animateComponent(props, animationWhitelist);
}
const children = this.renderData(props);
return props.standalone ? this.renderContainer(props.containerComponent, children) : children;
}
}
export default addEvents(VictoryErrorBar);
}
render() {
const { role } = this.constructor;
const props = Helpers.modifyProps(this.props, fallbackProps, role);
if (this.shouldAnimate()) {
return this.animateComponent(props, animationWhitelist);
}
const children = this.renderSunburstData(props);
return props.standalone ? this.renderContainer(props.containerComponent, children) : children;
}
}
export default addEvents(VictorySunburst);
return !!this.props.animate;
}
render() {
const { animationWhitelist, role } = VictoryLine;
const props = Helpers.modifyProps(this.props, fallbackProps, role);
if (this.shouldAnimate()) {
return this.animateComponent(props, animationWhitelist);
}
const children = this.renderContinuousData(props);
return props.standalone ? this.renderContainer(props.containerComponent, children) : children;
}
}
export default addEvents(VictoryLine);
return !!this.props.animate;
}
render() {
const { animationWhitelist, role } = VictoryLine;
const props = Helpers.modifyProps(this.props, fallbackProps, role);
if (this.shouldAnimate()) {
return this.animateComponent(props, animationWhitelist);
}
const children = this.renderContinuousData(props);
return props.standalone ? this.renderContainer(props.containerComponent, children) : children;
}
}
export default addEvents(VictoryLine, options);
}
render() {
const { animationWhitelist, role } = VictoryArea;
const props = Helpers.modifyProps(this.props, fallbackProps, role);
if (this.shouldAnimate()) {
return this.animateComponent(props, animationWhitelist);
}
const children = this.renderContinuousData(props);
return props.standalone ? this.renderContainer(props.containerComponent, children) : children;
}
}
export default addEvents(VictoryArea);
render() {
const {role} = this.constructor;
const props = Helpers.modifyProps(this.props, fallbackProps, role);
if (this.shouldAnimate()) {
return (
{React.createElement(this.constructor, props)}
);
}
const children = this.renderData(props);
return this.renderContainer(props, children);
}
}
export default addEvents(VictoryVoronoiTooltip);
}
render() {
const { animationWhitelist, role } = VictoryBoxPlot;
const props = Helpers.modifyProps(this.props, fallbackProps, role);
if (this.shouldAnimate()) {
return this.animateComponent(props, animationWhitelist);
}
const children = this.renderBoxPlot(props);
return props.standalone ? this.renderContainer(props.containerComponent, children) : children;
}
}
export default addEvents(VictoryBoxPlot, options);
const { role } = this.constructor;
const props = Helpers.modifyProps(this.props, fallbackProps, role);
if (this.shouldAnimate()) {
return (
{React.createElement(this.constructor, props)}
);
}
const children = this.renderData(props);
return this.renderContainer(props.containerComponent, children);
}
}
export default addEvents(VictoryArea);
render() {
const {role} = this.constructor;
const props = Helpers.modifyProps(this.props, fallbackProps, role);
if (this.shouldAnimate()) {
return (
{React.createElement(this.constructor, props)}
);
}
const children = this.renderData(props);
return this.renderContainer(props.containerComponent, children);
}
}
export default addEvents(VictoryScatter);
if (this.shouldAnimate()) {
return this.animateComponent(props, animationWhitelist);
}
const gridAndTicks = this.renderGridAndTicks(props);
const modifiedGridAndTicks = props.fixLabelOverlap
? this.fixLabelOverlap(gridAndTicks, props)
: gridAndTicks;
const children = [this.renderLine(props), this.renderLabel(props), ...modifiedGridAndTicks];
return props.standalone
? this.renderContainer(props.containerComponent, children)
: React.cloneElement(props.groupComponent, {}, children);
}
}
export default addEvents(VictoryAxis, options);