victory-core 36.8.1 → 36.8.2
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 +8 -0
- package/dist/victory-core.js +5 -3
- package/dist/victory-core.min.js +1 -1
- package/es/victory-label/victory-label.js +1 -1
- package/es/victory-util/add-events.d.ts +2 -2
- package/es/victory-util/add-events.js +4 -2
- package/lib/victory-label/victory-label.js +1 -1
- package/lib/victory-util/add-events.d.ts +2 -2
- package/lib/victory-util/add-events.js +4 -2
- package/package.json +2 -2
- package/src/victory-label/victory-label.tsx +1 -1
- package/src/victory-util/add-events.tsx +14 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# victory-core
|
|
2
2
|
|
|
3
|
+
## 36.8.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix the label background position when using dy fns ([#2720](https://github.com/FormidableLabs/victory/pull/2720))
|
|
8
|
+
|
|
9
|
+
* Migrate victory-legend to TypeScript ([#2712](https://github.com/FormidableLabs/victory/pull/2712))
|
|
10
|
+
|
|
3
11
|
## 36.8.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/victory-core.js
CHANGED
|
@@ -1700,7 +1700,7 @@ var getCalculatedProps = function (props) {
|
|
|
1700
1700
|
verticalAnchor: verticalAnchor,
|
|
1701
1701
|
dx: dx,
|
|
1702
1702
|
dy: dy,
|
|
1703
|
-
originalDy: props.dy,
|
|
1703
|
+
originalDy: _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.dy, props),
|
|
1704
1704
|
transform: transform,
|
|
1705
1705
|
x: x,
|
|
1706
1706
|
y: y
|
|
@@ -4393,13 +4393,15 @@ function addEvents(WrappedComponent) {
|
|
|
4393
4393
|
return undefined;
|
|
4394
4394
|
}
|
|
4395
4395
|
|
|
4396
|
+
var currentProps = component && typeof component === "object" && "props" in component ? component.props : undefined;
|
|
4397
|
+
|
|
4396
4398
|
if (this.hasEvents) {
|
|
4397
4399
|
var baseEvents = this.getEvents(this.props, type, key);
|
|
4398
4400
|
|
|
4399
4401
|
var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({
|
|
4400
4402
|
index: index,
|
|
4401
4403
|
key: id
|
|
4402
|
-
}, this.getEventState(key, type), this.getSharedEventState(key, type),
|
|
4404
|
+
}, this.getEventState(key, type), this.getSharedEventState(key, type), currentProps, baseProps, {
|
|
4403
4405
|
id: id
|
|
4404
4406
|
});
|
|
4405
4407
|
|
|
@@ -4413,7 +4415,7 @@ function addEvents(WrappedComponent) {
|
|
|
4413
4415
|
return lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({
|
|
4414
4416
|
index: index,
|
|
4415
4417
|
key: id
|
|
4416
|
-
},
|
|
4418
|
+
}, currentProps, baseProps, {
|
|
4417
4419
|
id: id
|
|
4418
4420
|
});
|
|
4419
4421
|
}
|