victory 37.3.3 → 37.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/victory.js +3 -3
- package/dist/victory.min.js +1 -1
- package/package.json +28 -28
package/CHANGELOG.md
CHANGED
package/dist/victory.js
CHANGED
|
@@ -9575,7 +9575,7 @@ const getCalculatedValues = props => {
|
|
|
9575
9575
|
|
|
9576
9576
|
// when inside a zoom container, reset the _x and _y properties of each datum to the original
|
|
9577
9577
|
// x and y property values so they will not be clipped. See https://github.com/FormidableLabs/victory/pull/2970
|
|
9578
|
-
if (props.groupComponent
|
|
9578
|
+
if (props.groupComponent?.type === victory_core__WEBPACK_IMPORTED_MODULE_5__.VictoryClipContainer) {
|
|
9579
9579
|
data = data.map(datum => ({
|
|
9580
9580
|
...datum,
|
|
9581
9581
|
_x: datum.x,
|
|
@@ -10293,7 +10293,7 @@ class VictoryBarBase extends (react__WEBPACK_IMPORTED_MODULE_0___default().Compo
|
|
|
10293
10293
|
// when inside a zoom container (the only place VictoryClipContainer is used), all data
|
|
10294
10294
|
// should be renderable so bars won't dissappear before they've fully exited the container's bounds
|
|
10295
10295
|
// see https://github.com/FormidableLabs/victory/pull/2970
|
|
10296
|
-
if (props.groupComponent
|
|
10296
|
+
if (props.groupComponent?.type === victory_core__WEBPACK_IMPORTED_MODULE_9__.VictoryClipContainer) {
|
|
10297
10297
|
children = this.renderData(props, VictoryBarBase.shouldRenderDatum);
|
|
10298
10298
|
} else {
|
|
10299
10299
|
children = this.renderData(props);
|
|
@@ -23147,7 +23147,7 @@ const useVictoryCursorContainer = initialProps => {
|
|
|
23147
23147
|
const child = Array.isArray(props.children) ? props.children.find(c => {
|
|
23148
23148
|
return lodash_isObject__WEBPACK_IMPORTED_MODULE_2___default()(c.props) && c.props.padding !== undefined;
|
|
23149
23149
|
}) : props.children;
|
|
23150
|
-
return victory_core__WEBPACK_IMPORTED_MODULE_5__.getPadding(child?.props);
|
|
23150
|
+
return victory_core__WEBPACK_IMPORTED_MODULE_5__.getPadding(child?.props?.padding);
|
|
23151
23151
|
}
|
|
23152
23152
|
return victory_core__WEBPACK_IMPORTED_MODULE_5__.getPadding(props.padding);
|
|
23153
23153
|
};
|