Socket
Socket
Sign inDemoInstall

victory-polar-axis

Package Overview
Dependencies
31
Maintainers
26
Versions
135
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 36.5.0 to 36.5.1

3

es/helper-methods.js

@@ -417,2 +417,3 @@ import _defaults from "lodash/defaults";

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

@@ -19,3 +19,3 @@ // Definitions by: Alexey Svetliakov <https://github.com/asvetliakov>

VictoryCommonProps,
VictorySingleLabelableProps
VictorySingleLabelableProps,
} from "victory-core";

@@ -22,0 +22,0 @@

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

export { default as VictoryPolarAxis } from "./victory-polar-axis";
export { default as VictoryPolarAxis } from "./victory-polar-axis";
//# sourceMappingURL=index.js.map

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

VictoryPolarAxis.expectedComponents = ["axisComponent", "circularAxisComponent", "groupComponent", "containerComponent", "tickComponent", "tickLabelComponent", "gridComponent", "circularGridComponent"];
export default addEvents(VictoryPolarAxis, options);
export default addEvents(VictoryPolarAxis, options);
//# sourceMappingURL=victory-polar-axis.js.map

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

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

@@ -19,3 +19,3 @@ // Definitions by: Alexey Svetliakov <https://github.com/asvetliakov>

VictoryCommonProps,
VictorySingleLabelableProps
VictorySingleLabelableProps,
} from "victory-core";

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

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

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

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

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

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

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

@@ -23,3 +23,3 @@ import { assign, uniqBy, defaults } from "lodash";

labelStyle: Helpers.evaluateStyle(style.tickLabels, props),
gridStyle: Helpers.evaluateStyle(style.grid, props)
gridStyle: Helpers.evaluateStyle(style.grid, props),
};

@@ -48,3 +48,3 @@ };

"tickLabels",
"ticks"
"ticks",
];

@@ -55,3 +55,3 @@ return styleNamespaces.reduce((memo, curr) => {

specificAxisStyle[curr],
generalAxisStyle[curr]
generalAxisStyle[curr],
);

@@ -114,3 +114,3 @@ return memo;

ticks: defaults({}, style.ticks, styleObject.ticks),
tickLabels: defaults({}, style.tickLabels, styleObject.tickLabels)
tickLabels: defaults({}, style.tickLabels, styleObject.tickLabels),
};

@@ -139,3 +139,3 @@ };

tickFormat,
origin
origin,
} = calculatedValues;

@@ -153,3 +153,3 @@ const text = tickFormat(tickValue, index, ticks);

axisType,
text
text,
});

@@ -174,3 +174,3 @@ const axisAngle =

x2: getPosition(tickRadius + tickPadding, tickAngle, "x") + origin.x,
y2: getPosition(tickRadius + tickPadding, tickAngle, "y") + origin.y
y2: getPosition(tickRadius + tickPadding, tickAngle, "y") + origin.y,
}

@@ -196,3 +196,3 @@ : {

Math.sin(padAngle) * tickPadding +
origin.y
origin.y,
};

@@ -211,3 +211,3 @@ };

stringTicks,
origin
origin,
} = calculatedValues;

@@ -225,3 +225,3 @@ const text = tickFormat(tickValue, index, ticks);

scale,
axisType
axisType,
});

@@ -245,3 +245,3 @@ const { tickLabelComponent } = props;

assign({}, props, { labelPlacement }),
labelAngle
labelAngle,
)

@@ -255,3 +255,3 @@ : labelStyle.angle;

assign({}, props, { labelPlacement }),
labelAngle
labelAngle,
);

@@ -266,3 +266,3 @@ return {

x: labelRadius * Math.cos(Helpers.degreesToRadians(labelAngle)) + origin.x,
y: -labelRadius * Math.sin(Helpers.degreesToRadians(labelAngle)) + origin.y
y: -labelRadius * Math.sin(Helpers.degreesToRadians(labelAngle)) + origin.y,
};

@@ -281,3 +281,3 @@ };

tickFormat,
origin
origin,
} = calculatedValues;

@@ -296,3 +296,3 @@ const text = tickFormat(tickValue, index, ticks);

axisType,
text
text,
});

@@ -308,3 +308,3 @@ const angle = scale(tickValue);

x2: getPosition(innerRadius, angle, "x") + origin.x,
y2: getPosition(innerRadius, angle, "y") + origin.y
y2: getPosition(innerRadius, angle, "y") + origin.y,
}

@@ -319,3 +319,3 @@ : {

startAngle,
endAngle
endAngle,
};

@@ -341,3 +341,3 @@ };

assign({}, props, { labelPlacement }),
axisAngle
axisAngle,
)

@@ -350,3 +350,3 @@ : labelStyle.angle;

assign({}, props, { labelPlacement }),
axisAngle
axisAngle,
);

@@ -357,3 +357,3 @@ const verticalAnchor =

assign({}, props, { labelPlacement }),
axisAngle
axisAngle,
);

@@ -371,3 +371,3 @@ return {

getPosition(labelRadius, Helpers.degreesToRadians(axisAngle), "y") +
origin.y
origin.y,
};

@@ -389,3 +389,3 @@ };

y1: getPosition(innerRadius, axisAngle, "y") + origin.y,
y2: getPosition(radius, axisAngle, "y") + origin.y
y2: getPosition(radius, axisAngle, "y") + origin.y,
}

@@ -398,3 +398,3 @@ : {

startAngle,
endAngle
endAngle,
};

@@ -432,3 +432,3 @@ };

radius,
origin
origin,
};

@@ -454,4 +454,4 @@ };

theme,
name
}
name,
},
};

@@ -465,3 +465,3 @@

tickLabels: getTickLabelProps(props, calculatedValues, tick, index),
grid: getGridProps(props, calculatedValues, tick, index)
grid: getGridProps(props, calculatedValues, tick, index),
};

@@ -468,0 +468,0 @@

@@ -19,3 +19,3 @@ // Definitions by: Alexey Svetliakov <https://github.com/asvetliakov>

VictoryCommonProps,
VictorySingleLabelableProps
VictorySingleLabelableProps,
} from "victory-core";

@@ -22,0 +22,0 @@

@@ -13,3 +13,3 @@ import React from "react";

Arc,
Axis
Axis,
} from "victory-core";

@@ -21,3 +21,3 @@ import { getScale, getStyles, getBaseProps } from "./helper-methods";

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

@@ -32,4 +32,4 @@

{ name: "ticks" },
{ name: "tickLabels" }
]
{ name: "tickLabels" },
],
};

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

"width",
"height"
"height",
];

@@ -56,7 +56,7 @@

onExit: {
duration: 500
duration: 500,
},
onEnter: {
duration: 500
}
duration: 500,
},
};

@@ -72,3 +72,3 @@

PropTypes.string,
PropTypes.object
PropTypes.object,
]),

@@ -79,4 +79,4 @@ categories: PropTypes.oneOfType([

x: PropTypes.arrayOf(PropTypes.string),
y: PropTypes.arrayOf(PropTypes.string)
})
y: PropTypes.arrayOf(PropTypes.string),
}),
]),

@@ -96,3 +96,3 @@ circularAxisComponent: PropTypes.element,

"ticks",
"tickLabels"
"tickLabels",
]),

@@ -103,8 +103,8 @@ eventKey: PropTypes.oneOfType([

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

@@ -122,3 +122,3 @@ gridComponent: PropTypes.element,

ticks: PropTypes.object,
tickLabels: PropTypes.object
tickLabels: PropTypes.object,
}),

@@ -128,10 +128,10 @@ tickComponent: PropTypes.element,

CustomPropTypes.integer,
CustomPropTypes.greaterThanZero
CustomPropTypes.greaterThanZero,
]),
tickFormat: PropTypes.oneOfType([
PropTypes.func,
CustomPropTypes.homogeneousArray
CustomPropTypes.homogeneousArray,
]),
tickLabelComponent: PropTypes.element,
tickValues: CustomPropTypes.homogeneousArray
tickValues: CustomPropTypes.homogeneousArray,
};

@@ -153,3 +153,3 @@

tickComponent: <LineSegment />,
tickLabelComponent: <VictoryLabel />
tickLabelComponent: <VictoryLabel />,
};

@@ -170,3 +170,3 @@

"gridComponent",
"circularGridComponent"
"circularGridComponent",
];

@@ -191,3 +191,3 @@

"axisLabel",
0
0,
);

@@ -214,3 +214,3 @@ return React.cloneElement(axisLabelComponent, axisLabelProps);

{ key: `${name}-tick-${key}` },
this.getComponentProps(tickComponent, "ticks", index)
this.getComponentProps(tickComponent, "ticks", index),
);

@@ -226,3 +226,3 @@ const TickComponent = React.cloneElement(tickComponent, tickProps);

{ key: `${name}-grid-${key}` },
this.getComponentProps(gridComponent, "grid", index)
this.getComponentProps(gridComponent, "grid", index),
);

@@ -237,3 +237,3 @@ const GridComponent = React.cloneElement(gridComponent, gridProps);

{ key: `${name}-tick-${key}` },
this.getComponentProps(tickLabelComponent, "tickLabels", index)
this.getComponentProps(tickLabelComponent, "tickLabels", index),
);

@@ -249,3 +249,3 @@ return React.cloneElement(tickLabelComponent, tickLabelProps);

...gridComponents,
...tickLabelComponents
...tickLabelComponents,
];

@@ -252,0 +252,0 @@ return this.renderGroup(props, children);

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc