victory-scatter 36.2.1 → 36.3.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/LICENSE.txt +30 -0
- package/dist/victory-scatter.js +144 -38
- package/dist/victory-scatter.min.js +1 -1
- package/es/victory-scatter.js +3 -2
- package/lib/victory-scatter.js +4 -1
- package/package.json +4 -3
- package/src/victory-scatter.js +7 -2
package/es/victory-scatter.js
CHANGED
|
@@ -16,7 +16,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
|
|
16
16
|
|
|
17
17
|
import PropTypes from "prop-types";
|
|
18
18
|
import React from "react";
|
|
19
|
-
import { PropTypes as CustomPropTypes, Helpers, VictoryLabel, addEvents, CommonProps, VictoryContainer, VictoryTheme, DefaultTransitions, Data, Domain, Point } from "victory-core";
|
|
19
|
+
import { PropTypes as CustomPropTypes, Helpers, VictoryLabel, addEvents, CommonProps, VictoryContainer, VictoryTheme, DefaultTransitions, Data, Domain, Point, UserProps } from "victory-core";
|
|
20
20
|
import { getBaseProps } from "./helper-methods";
|
|
21
21
|
var fallbackProps = {
|
|
22
22
|
width: 450,
|
|
@@ -55,7 +55,8 @@ function (_React$Component) {
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
var children = this.renderData(props);
|
|
58
|
-
|
|
58
|
+
var container = React.cloneElement(props.containerComponent, UserProps.getSafeUserProps(props));
|
|
59
|
+
return props.standalone ? this.renderContainer(container, children) : children;
|
|
59
60
|
}
|
|
60
61
|
}]);
|
|
61
62
|
|
package/lib/victory-scatter.js
CHANGED
|
@@ -69,7 +69,10 @@ function (_React$Component) {
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
var children = this.renderData(props);
|
|
72
|
-
|
|
72
|
+
|
|
73
|
+
var container = _react.default.cloneElement(props.containerComponent, _victoryCore.UserProps.getSafeUserProps(props));
|
|
74
|
+
|
|
75
|
+
return props.standalone ? this.renderContainer(container, children) : children;
|
|
73
76
|
}
|
|
74
77
|
}]);
|
|
75
78
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "victory-scatter",
|
|
3
|
-
"version": "36.2
|
|
3
|
+
"version": "36.3.2",
|
|
4
4
|
"description": "Scatter Component for Victory",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data visualization",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"lodash": "^4.17.19",
|
|
23
23
|
"prop-types": "^15.5.8",
|
|
24
|
-
"victory-core": "^36.2
|
|
24
|
+
"victory-core": "^36.3.2"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": "^16.6.0 || ^17.0.0"
|
|
@@ -29,5 +29,6 @@
|
|
|
29
29
|
"scripts": {
|
|
30
30
|
"version": "yarn run nps build-libs && nps build-dists"
|
|
31
31
|
},
|
|
32
|
-
"sideEffects": false
|
|
32
|
+
"sideEffects": false,
|
|
33
|
+
"gitHead": "18895d1290245732d14332bbbda10336032c9aab"
|
|
33
34
|
}
|
package/src/victory-scatter.js
CHANGED
|
@@ -11,7 +11,8 @@ import {
|
|
|
11
11
|
DefaultTransitions,
|
|
12
12
|
Data,
|
|
13
13
|
Domain,
|
|
14
|
-
Point
|
|
14
|
+
Point,
|
|
15
|
+
UserProps
|
|
15
16
|
} from "victory-core";
|
|
16
17
|
import { getBaseProps } from "./helper-methods";
|
|
17
18
|
|
|
@@ -98,8 +99,12 @@ class VictoryScatter extends React.Component {
|
|
|
98
99
|
}
|
|
99
100
|
|
|
100
101
|
const children = this.renderData(props);
|
|
102
|
+
const container = React.cloneElement(
|
|
103
|
+
props.containerComponent,
|
|
104
|
+
UserProps.getSafeUserProps(props)
|
|
105
|
+
);
|
|
101
106
|
return props.standalone
|
|
102
|
-
? this.renderContainer(
|
|
107
|
+
? this.renderContainer(container, children)
|
|
103
108
|
: children;
|
|
104
109
|
}
|
|
105
110
|
}
|