victory-area 36.3.0 → 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/dist/victory-area.js +145 -39
- package/dist/victory-area.min.js +1 -1
- package/es/victory-area.js +3 -2
- package/lib/victory-area.js +4 -1
- package/package.json +3 -3
- package/src/victory-area.js +7 -2
package/es/victory-area.js
CHANGED
|
@@ -18,7 +18,7 @@ import PropTypes from "prop-types";
|
|
|
18
18
|
import React from "react";
|
|
19
19
|
import { getBaseProps } from "./helper-methods";
|
|
20
20
|
import Area from "./area";
|
|
21
|
-
import { PropTypes as CustomPropTypes, Helpers, VictoryLabel, VictoryContainer, CommonProps, DefaultTransitions, VictoryClipContainer, addEvents, VictoryTheme, Data, Domain } from "victory-core";
|
|
21
|
+
import { PropTypes as CustomPropTypes, Helpers, VictoryLabel, VictoryContainer, CommonProps, DefaultTransitions, VictoryClipContainer, addEvents, VictoryTheme, Data, Domain, UserProps } from "victory-core";
|
|
22
22
|
var fallbackProps = {
|
|
23
23
|
width: 450,
|
|
24
24
|
height: 300,
|
|
@@ -66,7 +66,8 @@ function (_React$Component) {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
var children = this.renderContinuousData(props);
|
|
69
|
-
|
|
69
|
+
var container = React.cloneElement(props.containerComponent, UserProps.getSafeUserProps(props));
|
|
70
|
+
return props.standalone ? this.renderContainer(container, children) : children;
|
|
70
71
|
}
|
|
71
72
|
}]);
|
|
72
73
|
|
package/lib/victory-area.js
CHANGED
|
@@ -81,7 +81,10 @@ function (_React$Component) {
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
var children = this.renderContinuousData(props);
|
|
84
|
-
|
|
84
|
+
|
|
85
|
+
var container = _react.default.cloneElement(props.containerComponent, _victoryCore.UserProps.getSafeUserProps(props));
|
|
86
|
+
|
|
87
|
+
return props.standalone ? this.renderContainer(container, children) : children;
|
|
85
88
|
}
|
|
86
89
|
}]);
|
|
87
90
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "victory-area",
|
|
3
|
-
"version": "36.3.
|
|
3
|
+
"version": "36.3.2",
|
|
4
4
|
"description": "Area Component for Victory",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data visualization",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"d3-shape": "^1.2.0",
|
|
23
23
|
"lodash": "^4.17.19",
|
|
24
24
|
"prop-types": "^15.5.8",
|
|
25
|
-
"victory-core": "^36.3.
|
|
25
|
+
"victory-core": "^36.3.2"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": "^16.6.0 || ^17.0.0"
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"version": "yarn run nps build-libs && nps build-dists"
|
|
32
32
|
},
|
|
33
33
|
"sideEffects": false,
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "18895d1290245732d14332bbbda10336032c9aab"
|
|
35
35
|
}
|
package/src/victory-area.js
CHANGED
|
@@ -13,7 +13,8 @@ import {
|
|
|
13
13
|
addEvents,
|
|
14
14
|
VictoryTheme,
|
|
15
15
|
Data,
|
|
16
|
-
Domain
|
|
16
|
+
Domain,
|
|
17
|
+
UserProps
|
|
17
18
|
} from "victory-core";
|
|
18
19
|
|
|
19
20
|
const fallbackProps = {
|
|
@@ -107,8 +108,12 @@ class VictoryArea extends React.Component {
|
|
|
107
108
|
}
|
|
108
109
|
|
|
109
110
|
const children = this.renderContinuousData(props);
|
|
111
|
+
const container = React.cloneElement(
|
|
112
|
+
props.containerComponent,
|
|
113
|
+
UserProps.getSafeUserProps(props)
|
|
114
|
+
);
|
|
110
115
|
return props.standalone
|
|
111
|
-
? this.renderContainer(
|
|
116
|
+
? this.renderContainer(container, children)
|
|
112
117
|
: children;
|
|
113
118
|
}
|
|
114
119
|
}
|