victory-chart 18.2.0 → 19.1.1
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 +28 -0
- package/README.md +9 -5
- package/dist/victory-chart.js +17058 -24378
- package/dist/victory-chart.min.js +13 -14
- package/lib/components/containers/brush-helpers.js +7 -4
- package/lib/components/containers/create-container.js +40 -32
- package/lib/components/containers/cursor-helpers.js +48 -0
- package/lib/components/containers/victory-brush-container.js +7 -3
- package/lib/components/containers/victory-cursor-container.js +145 -0
- package/lib/components/containers/victory-selection-container.js +5 -2
- package/lib/components/containers/victory-voronoi-container.js +40 -15
- package/lib/components/containers/victory-zoom-container.js +9 -2
- package/lib/components/containers/zoom-helpers.js +7 -2
- package/lib/components/victory-area/helper-methods.js +2 -1
- package/lib/components/victory-area/victory-area.js +9 -105
- package/lib/components/victory-axis/helper-methods.js +5 -2
- package/lib/components/victory-axis/victory-axis.js +11 -53
- package/lib/components/victory-bar/helper-methods.js +3 -1
- package/lib/components/victory-bar/victory-bar.js +8 -114
- package/lib/components/victory-candlestick/helper-methods.js +2 -1
- package/lib/components/victory-candlestick/victory-candlestick.js +10 -111
- package/lib/components/victory-chart/helper-methods.js +4 -3
- package/lib/components/victory-chart/victory-chart.js +12 -67
- package/lib/components/victory-errorbar/helper-methods.js +1 -1
- package/lib/components/victory-errorbar/victory-errorbar.js +8 -113
- package/lib/components/victory-group/victory-group.js +12 -86
- package/lib/components/victory-line/helper-methods.js +2 -1
- package/lib/components/victory-line/victory-line.js +9 -105
- package/lib/components/victory-scatter/helper-methods.js +1 -1
- package/lib/components/victory-scatter/victory-scatter.js +8 -111
- package/lib/components/victory-stack/victory-stack.js +11 -59
- package/lib/components/victory-voronoi/helper-methods.js +1 -1
- package/lib/components/victory-voronoi/victory-voronoi.js +7 -112
- package/lib/helpers/common-props.js +87 -0
- package/lib/helpers/wrapper.js +2 -1
- package/lib/index.js +9 -7
- package/package.json +14 -14
- package/src/components/containers/brush-helpers.js +37 -34
- package/src/components/containers/create-container.js +52 -43
- package/src/components/containers/cursor-helpers.js +49 -0
- package/src/components/containers/selection-helpers.js +13 -13
- package/src/components/containers/victory-brush-container.js +33 -29
- package/src/components/containers/victory-cursor-container.js +145 -0
- package/src/components/containers/victory-selection-container.js +14 -11
- package/src/components/containers/victory-voronoi-container.js +50 -25
- package/src/components/containers/victory-zoom-container.js +17 -10
- package/src/components/containers/voronoi-helpers.js +9 -9
- package/src/components/containers/zoom-helpers.js +18 -13
- package/src/components/victory-area/helper-methods.js +7 -6
- package/src/components/victory-area/victory-area.js +14 -110
- package/src/components/victory-axis/helper-methods.js +22 -19
- package/src/components/victory-axis/victory-axis.js +15 -57
- package/src/components/victory-bar/helper-methods.js +7 -5
- package/src/components/victory-bar/victory-bar.js +14 -120
- package/src/components/victory-candlestick/helper-methods.js +10 -9
- package/src/components/victory-candlestick/victory-candlestick.js +20 -121
- package/src/components/victory-chart/helper-methods.js +7 -6
- package/src/components/victory-chart/victory-chart.js +24 -79
- package/src/components/victory-errorbar/helper-methods.js +7 -7
- package/src/components/victory-errorbar/victory-errorbar.js +15 -120
- package/src/components/victory-group/victory-group.js +26 -100
- package/src/components/victory-line/helper-methods.js +5 -4
- package/src/components/victory-line/victory-line.js +16 -112
- package/src/components/victory-scatter/helper-methods.js +8 -8
- package/src/components/victory-scatter/victory-scatter.js +11 -114
- package/src/components/victory-stack/victory-stack.js +21 -69
- package/src/components/victory-voronoi/helper-methods.js +3 -3
- package/src/components/victory-voronoi/victory-voronoi.js +10 -115
- package/src/helpers/axis.js +6 -6
- package/src/helpers/common-props.js +89 -0
- package/src/helpers/wrapper.js +10 -9
- package/src/index.js +7 -5
- package/lib/components/victory-voronoi-tooltip/helper-methods.js +0 -100
- package/lib/components/victory-voronoi-tooltip/victory-voronoi-tooltip.js +0 -180
- package/lib/components/victory-zoom/helper-methods.js +0 -48
- package/lib/components/victory-zoom/victory-zoom.js +0 -221
- package/src/components/victory-voronoi-tooltip/helper-methods.js +0 -101
- package/src/components/victory-voronoi-tooltip/victory-voronoi-tooltip.js +0 -180
- package/src/components/victory-zoom/helper-methods.js +0 -49
- package/src/components/victory-zoom/victory-zoom.js +0 -221
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:true});var _defaults2=require("lodash/defaults");var _defaults3=_interopRequireDefault(_defaults2);var _isFunction2=require("lodash/isFunction");var _isFunction3=_interopRequireDefault(_isFunction2);var _throttle2=require("lodash/throttle");var _throttle3=_interopRequireDefault(_throttle2);var _slicedToArray=function(){function sliceIterator(arr,i){var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=arr[typeof Symbol==="function"?Symbol.iterator:"@@iterator"](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break;}}catch(err){_d=true;_e=err;}finally{try{if(!_n&&_i["return"])_i["return"]();}finally{if(_d)throw _e;}}return _arr;}return function(arr,i){if(Array.isArray(arr)){return arr;}else if((typeof Symbol==="function"?Symbol.iterator:"@@iterator")in Object(arr)){return sliceIterator(arr,i);}else{throw new TypeError("Invalid attempt to destructure non-iterable instance");}};}();
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:true});exports.RawZoomHelpers=undefined;var _defaults2=require("lodash/defaults");var _defaults3=_interopRequireDefault(_defaults2);var _isFunction2=require("lodash/isFunction");var _isFunction3=_interopRequireDefault(_isFunction2);var _throttle2=require("lodash/throttle");var _throttle3=_interopRequireDefault(_throttle2);var _slicedToArray=function(){function sliceIterator(arr,i){var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=arr[typeof Symbol==="function"?Symbol.iterator:"@@iterator"](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break;}}catch(err){_d=true;_e=err;}finally{try{if(!_n&&_i["return"])_i["return"]();}finally{if(_d)throw _e;}}return _arr;}return function(arr,i){if(Array.isArray(arr)){return arr;}else if((typeof Symbol==="function"?Symbol.iterator:"@@iterator")in Object(arr)){return sliceIterator(arr,i);}else{throw new TypeError("Invalid attempt to destructure non-iterable instance");}};}();
|
|
2
|
+
var _victoryCore=require("victory-core");
|
|
2
3
|
|
|
3
4
|
var _eventHandlers=require("../../helpers/event-handlers.js");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
|
|
4
5
|
|
|
@@ -60,6 +61,7 @@ maxExtent<to&&maxExtent>from?maxExtent:+from+extent/2];
|
|
|
60
61
|
|
|
61
62
|
getScaleFactor:function getScaleFactor(evt){
|
|
62
63
|
var sign=evt.deltaY>0?1:-1;
|
|
64
|
+
|
|
63
65
|
var delta=Math.min(Math.abs(evt.deltaY/300),0.5);
|
|
64
66
|
return Math.abs(1+sign*delta);
|
|
65
67
|
},
|
|
@@ -123,6 +125,7 @@ getTimer().bypassAnimation();
|
|
|
123
125
|
return(0,_isFunction3.default)(getTimer().resumeAnimation)?
|
|
124
126
|
function(){return getTimer().resumeAnimation();}:undefined;
|
|
125
127
|
}
|
|
128
|
+
return undefined;
|
|
126
129
|
},
|
|
127
130
|
|
|
128
131
|
getDomain:function getDomain(props){var
|
|
@@ -198,6 +201,7 @@ domain:currentDomain,currentDomain:currentDomain,originalDomain:originalDomain,c
|
|
|
198
201
|
}}];
|
|
199
202
|
|
|
200
203
|
}
|
|
204
|
+
return undefined;
|
|
201
205
|
},
|
|
202
206
|
|
|
203
207
|
onWheel:function onWheel(evt,targetProps,eventKey,ctx){
|
|
@@ -228,9 +232,10 @@ parentControlledProps:["domain"],panning:false};
|
|
|
228
232
|
|
|
229
233
|
}}];
|
|
230
234
|
|
|
231
|
-
}};exports.
|
|
235
|
+
}};exports.
|
|
232
236
|
|
|
233
237
|
|
|
238
|
+
RawZoomHelpers=Helpers;exports.default=
|
|
234
239
|
|
|
235
240
|
{
|
|
236
241
|
onMouseDown:Helpers.onMouseDown.bind(Helpers),
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports,"__esModule",{value:true});var _defaults2=require("lodash/defaults");var _defaults3=_interopRequireDefault(_defaults2);var _assign2=require("lodash/assign");var _assign3=_interopRequireDefault(_assign2);
|
|
2
|
+
|
|
2
3
|
var _victoryCore=require("victory-core");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i<arr.length;i++){arr2[i]=arr[i];}return arr2;}else{return Array.from(arr);}}exports.default=
|
|
3
4
|
|
|
4
5
|
{
|
|
@@ -30,7 +31,7 @@ return childProps;
|
|
|
30
31
|
getCalculatedValues:function getCalculatedValues(props){var
|
|
31
32
|
theme=props.theme;
|
|
32
33
|
var defaultStyles=theme&&theme.area&&theme.area.style?theme.area.style:{};
|
|
33
|
-
var style=_victoryCore.Helpers.getStyles(props.style,defaultStyles
|
|
34
|
+
var style=_victoryCore.Helpers.getStyles(props.style,defaultStyles);
|
|
34
35
|
var range={
|
|
35
36
|
x:_victoryCore.Helpers.getRange(props,"x"),
|
|
36
37
|
y:_victoryCore.Helpers.getRange(props,"y")};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:true});var
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:true});var _partialRight2=require("lodash/partialRight");var _partialRight3=_interopRequireDefault(_partialRight2);var _jsxFileName="src/components/victory-area/victory-area.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();
|
|
2
|
+
var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
|
|
2
3
|
var _react=require("react");var _react2=_interopRequireDefault(_react);
|
|
3
4
|
var _helperMethods=require("./helper-methods");var _helperMethods2=_interopRequireDefault(_helperMethods);
|
|
4
|
-
var _victoryCore=require("victory-core");
|
|
5
|
+
var _victoryCore=require("victory-core");
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
|
|
9
|
+
var _commonProps=require("../../helpers/common-props");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}
|
|
8
10
|
|
|
9
11
|
var fallbackProps={
|
|
10
12
|
width:450,
|
|
@@ -15,7 +17,7 @@ interpolation:"linear"};
|
|
|
15
17
|
|
|
16
18
|
var animationWhitelist=["data","domain","height","padding","style","width"];var
|
|
17
19
|
|
|
18
|
-
VictoryArea=function(_React$Component){_inherits(VictoryArea,_React$Component);function VictoryArea(){_classCallCheck(this,VictoryArea);return _possibleConstructorReturn(this,(VictoryArea.__proto__||Object.getPrototypeOf(VictoryArea)).apply(this,arguments));}_createClass(VictoryArea,[{key:"
|
|
20
|
+
VictoryArea=function(_React$Component){_inherits(VictoryArea,_React$Component);function VictoryArea(){_classCallCheck(this,VictoryArea);return _possibleConstructorReturn(this,(VictoryArea.__proto__||Object.getPrototypeOf(VictoryArea)).apply(this,arguments));}_createClass(VictoryArea,[{key:"shouldAnimate",value:function shouldAnimate()
|
|
19
21
|
|
|
20
22
|
|
|
21
23
|
|
|
@@ -53,100 +55,6 @@ VictoryArea=function(_React$Component){_inherits(VictoryArea,_React$Component);f
|
|
|
53
55
|
|
|
54
56
|
|
|
55
57
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
props){var _this2=this;var
|
|
130
|
-
dataComponent=props.dataComponent,labelComponent=props.labelComponent,groupComponent=props.groupComponent;
|
|
131
|
-
var dataKeys=(0,_without3.default)(this.dataKeys,"all");
|
|
132
|
-
var labelComponents=dataKeys.reduce(function(memo,key){
|
|
133
|
-
var labelProps=_this2.getComponentProps(labelComponent,"labels",key);
|
|
134
|
-
if(labelProps&&labelProps.text!==undefined&&labelProps.text!==null){
|
|
135
|
-
memo=memo.concat(_react2.default.cloneElement(labelComponent,labelProps));
|
|
136
|
-
}
|
|
137
|
-
return memo;
|
|
138
|
-
},[]);
|
|
139
|
-
var dataProps=this.getComponentProps(dataComponent,"data","all");
|
|
140
|
-
var children=[_react2.default.cloneElement(dataComponent,dataProps)].concat(_toConsumableArray(labelComponents));
|
|
141
|
-
return this.renderContainer(groupComponent,children);
|
|
142
|
-
}},{key:"renderContainer",value:function renderContainer(
|
|
143
|
-
|
|
144
|
-
component,children){
|
|
145
|
-
var isContainer=component.type&&component.type.role==="container";
|
|
146
|
-
var parentProps=isContainer?this.getComponentProps(component,"parent","parent"):{};
|
|
147
|
-
return _react2.default.cloneElement(component,parentProps,children);
|
|
148
|
-
}},{key:"shouldAnimate",value:function shouldAnimate()
|
|
149
|
-
|
|
150
58
|
{
|
|
151
59
|
return!!this.props.animate;
|
|
152
60
|
}},{key:"render",value:function render()
|
|
@@ -156,15 +64,11 @@ role=this.constructor.role;
|
|
|
156
64
|
var props=_victoryCore.Helpers.modifyProps(this.props,fallbackProps,role);
|
|
157
65
|
|
|
158
66
|
if(this.shouldAnimate()){
|
|
159
|
-
return(
|
|
160
|
-
_react2.default.createElement(_victoryCore.VictoryTransition,{animate:props.animate,animationWhitelist:animationWhitelist},
|
|
161
|
-
_react2.default.createElement(this.constructor,props)));
|
|
162
|
-
|
|
163
|
-
|
|
67
|
+
return this.animateComponent(props,animationWhitelist);
|
|
164
68
|
}
|
|
165
|
-
var children=this.
|
|
166
|
-
return this.renderContainer(props.containerComponent,children);
|
|
167
|
-
}}]);return VictoryArea;}(_react2.default.Component);VictoryArea.propTypes=
|
|
69
|
+
var children=this.renderContinuousData(props);
|
|
70
|
+
return props.standalone?this.renderContainer(props.containerComponent,children):children;
|
|
71
|
+
}}]);return VictoryArea;}(_react2.default.Component);VictoryArea.propTypes=_extends({},_commonProps.BaseProps,_commonProps.DataProps,{interpolation:_propTypes2.default.oneOf(["basis","bundle","cardinal","catmullRom","linear","monotoneX","monotoneY","natural","radial","step","stepAfter","stepBefore"]),label:_victoryCore.PropTypes.deprecated(_propTypes2.default.string,"Use `labels` instead for individual data labels")});VictoryArea.defaultProps={dataComponent:_react2.default.createElement(_victoryCore.Area,{__source:{fileName:_jsxFileName,lineNumber:36}}),labelComponent:_react2.default.createElement(_victoryCore.VictoryLabel,{renderInPortal:true,__source:{fileName:_jsxFileName,lineNumber:37}}),scale:"linear",samples:50,standalone:true,containerComponent:_react2.default.createElement(_victoryCore.VictoryContainer,{__source:{fileName:_jsxFileName,lineNumber:41}}),groupComponent:_react2.default.createElement(_victoryCore.VictoryClipContainer,{__source:{fileName:_jsxFileName,lineNumber:42}}),theme:_victoryCore.VictoryTheme.grayscale};VictoryArea.displayName="VictoryArea";VictoryArea.role="area";VictoryArea.continuous=true;VictoryArea.defaultTransitions=_victoryCore.DefaultTransitions.continuousTransitions();VictoryArea.getDomain=_victoryCore.Domain.getDomainWithZero.bind(_victoryCore.Domain);VictoryArea.getData=_victoryCore.Data.getData.bind(_victoryCore.Data);VictoryArea.getBaseProps=(0,_partialRight3.default)(_helperMethods2.default.getBaseProps.bind(_helperMethods2.default),fallbackProps);VictoryArea.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];exports.default=
|
|
168
72
|
|
|
169
73
|
|
|
170
74
|
(0,_victoryCore.addEvents)(VictoryArea);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports,"__esModule",{value:true});var _without2=require("lodash/without");var _without3=_interopRequireDefault(_without2);var _range2=require("lodash/range");var _range3=_interopRequireDefault(_range2);var _isFunction2=require("lodash/isFunction");var _isFunction3=_interopRequireDefault(_isFunction2);var _defaultsDeep2=require("lodash/defaultsDeep");var _defaultsDeep3=_interopRequireDefault(_defaultsDeep2);var _defaults2=require("lodash/defaults");var _defaults3=_interopRequireDefault(_defaults2);var _includes2=require("lodash/includes");var _includes3=_interopRequireDefault(_includes2);
|
|
2
|
+
|
|
2
3
|
var _victoryCore=require("victory-core");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i<arr.length;i++){arr2[i]=arr[i];}return arr2;}else{return Array.from(arr);}}
|
|
3
4
|
|
|
4
5
|
var orientationSign={
|
|
@@ -80,9 +81,9 @@ specificAxisStyle||generalAxisStyle;
|
|
|
80
81
|
getStyles:function getStyles(props,styleObject){
|
|
81
82
|
var style=props.style||{};
|
|
82
83
|
styleObject=styleObject||{};
|
|
83
|
-
var parentStyleProps={height:"
|
|
84
|
+
var parentStyleProps={height:"100%",width:"100%"};
|
|
84
85
|
return{
|
|
85
|
-
parent:(0,_defaults3.default)(
|
|
86
|
+
parent:(0,_defaults3.default)(style.parent,styleObject.parent,parentStyleProps),
|
|
86
87
|
axis:(0,_defaults3.default)({},style.axis,styleObject.axis),
|
|
87
88
|
axisLabel:(0,_defaults3.default)({},style.axisLabel,styleObject.axisLabel),
|
|
88
89
|
grid:(0,_defaults3.default)({},style.grid,styleObject.grid),
|
|
@@ -326,8 +327,10 @@ return labelStyle.padding;
|
|
|
326
327
|
}
|
|
327
328
|
var isVertical=_victoryCore.Helpers.isVertical(props);
|
|
328
329
|
|
|
330
|
+
|
|
329
331
|
var fontSize=labelStyle.fontSize||14;
|
|
330
332
|
return props.label?fontSize*(isVertical?2.3:1.6):0;
|
|
333
|
+
|
|
331
334
|
},
|
|
332
335
|
|
|
333
336
|
getOffset:function getOffset(props,calculatedValues){var _this3=this;var
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:true});var _partialRight2=require("lodash/partialRight");var _partialRight3=_interopRequireDefault(_partialRight2);var _assign2=require("lodash/assign");var _assign3=_interopRequireDefault(_assign2);var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:true});var _partialRight2=require("lodash/partialRight");var _partialRight3=_interopRequireDefault(_partialRight2);var _assign2=require("lodash/assign");var _assign3=_interopRequireDefault(_assign2);var _jsxFileName="src/components/victory-axis/victory-axis.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
|
|
2
|
+
var _react=require("react");var _react2=_interopRequireDefault(_react);
|
|
2
3
|
|
|
3
4
|
var _victoryCore=require("victory-core");
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
var _helperMethods=require("./helper-methods");var _helperMethods2=_interopRequireDefault(_helperMethods);
|
|
8
|
-
var _axis=require("../../helpers/axis");var _axis2=_interopRequireDefault(_axis);
|
|
9
|
+
var _axis=require("../../helpers/axis");var _axis2=_interopRequireDefault(_axis);
|
|
10
|
+
var _commonProps=require("../../helpers/common-props");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i<arr.length;i++){arr2[i]=arr[i];}return arr2;}else{return Array.from(arr);}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}
|
|
11
|
+
|
|
9
12
|
|
|
10
13
|
var fallbackProps={
|
|
11
14
|
width:450,
|
|
@@ -62,44 +65,6 @@ VictoryAxis=function(_React$Component){_inherits(VictoryAxis,_React$Component);f
|
|
|
62
65
|
|
|
63
66
|
|
|
64
67
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
68
|
|
|
104
69
|
|
|
105
70
|
|
|
@@ -184,14 +149,9 @@ getLabelCoord(b)-getLabelCoord(a):
|
|
|
184
149
|
getLabelCoord(a)-getLabelCoord(b);});
|
|
185
150
|
|
|
186
151
|
return sorted.filter(function(gridAndTick,index){return index%divider===0;});
|
|
187
|
-
}},{key:"renderContainer",value:function renderContainer(
|
|
188
|
-
|
|
189
|
-
component,children){
|
|
190
|
-
var isContainer=component.type&&component.type.role==="container";
|
|
191
|
-
var parentProps=isContainer?this.getComponentProps(component,"parent","parent"):{};
|
|
192
|
-
return _react2.default.cloneElement(component,parentProps,children);
|
|
193
152
|
}},{key:"shouldAnimate",value:function shouldAnimate()
|
|
194
153
|
|
|
154
|
+
|
|
195
155
|
{
|
|
196
156
|
return!!this.props.animate;
|
|
197
157
|
}},{key:"render",value:function render()
|
|
@@ -199,11 +159,7 @@ return!!this.props.animate;
|
|
|
199
159
|
{
|
|
200
160
|
var props=_victoryCore.Helpers.modifyProps(this.props,fallbackProps,"axis");
|
|
201
161
|
if(this.shouldAnimate()){
|
|
202
|
-
return(
|
|
203
|
-
_react2.default.createElement(_victoryCore.VictoryTransition,{animate:props.animate,animationWhitelist:animationWhitelist},
|
|
204
|
-
_react2.default.createElement(this.constructor,props)));
|
|
205
|
-
|
|
206
|
-
|
|
162
|
+
return this.animateComponent(props,animationWhitelist);
|
|
207
163
|
}
|
|
208
164
|
|
|
209
165
|
var gridAndTicks=this.renderGridAndTicks(props);
|
|
@@ -215,8 +171,10 @@ modifiedGridAndTicks),[
|
|
|
215
171
|
this.renderLine(props),
|
|
216
172
|
this.renderLabel(props)]);
|
|
217
173
|
|
|
218
|
-
return
|
|
219
|
-
|
|
174
|
+
return props.standalone?
|
|
175
|
+
this.renderContainer(props.containerComponent,children):
|
|
176
|
+
_react2.default.cloneElement(props.groupComponent,{},children);
|
|
177
|
+
}}]);return VictoryAxis;}(_react2.default.Component);VictoryAxis.displayName="VictoryAxis";VictoryAxis.role="axis";VictoryAxis.defaultTransitions={onExit:{duration:500},onEnter:{duration:500}};VictoryAxis.propTypes=_extends({},_commonProps.BaseProps,{axisComponent:_propTypes2.default.element,axisLabelComponent:_propTypes2.default.element,crossAxis:_propTypes2.default.bool,dependentAxis:_propTypes2.default.bool,fixLabelOverlap:_propTypes2.default.bool,gridComponent:_propTypes2.default.element,groupComponent:_propTypes2.default.element,label:_propTypes2.default.any,offsetX:_propTypes2.default.number,offsetY:_propTypes2.default.number,orientation:_propTypes2.default.oneOf(["top","bottom","left","right"]),style:_propTypes2.default.shape({parent:_propTypes2.default.object,axis:_propTypes2.default.object,axisLabel:_propTypes2.default.object,grid:_propTypes2.default.object,ticks:_propTypes2.default.object,tickLabels:_propTypes2.default.object}),tickComponent:_propTypes2.default.element,tickCount:_victoryCore.PropTypes.allOfType([_victoryCore.PropTypes.integer,_victoryCore.PropTypes.greaterThanZero]),tickFormat:_propTypes2.default.oneOfType([_propTypes2.default.func,_victoryCore.PropTypes.homogeneousArray]),tickLabelComponent:_propTypes2.default.element,tickValues:_victoryCore.PropTypes.homogeneousArray});VictoryAxis.defaultProps={axisComponent:_react2.default.createElement(_victoryCore.Line,{type:"axis",__source:{fileName:_jsxFileName,lineNumber:65}}),axisLabelComponent:_react2.default.createElement(_victoryCore.VictoryLabel,{__source:{fileName:_jsxFileName,lineNumber:66}}),tickLabelComponent:_react2.default.createElement(_victoryCore.VictoryLabel,{__source:{fileName:_jsxFileName,lineNumber:67}}),tickComponent:_react2.default.createElement(_victoryCore.Line,{type:"tick",__source:{fileName:_jsxFileName,lineNumber:68}}),gridComponent:_react2.default.createElement(_victoryCore.Line,{type:"grid",__source:{fileName:_jsxFileName,lineNumber:69}}),scale:"linear",standalone:true,theme:_victoryCore.VictoryTheme.grayscale,tickCount:5,containerComponent:_react2.default.createElement(_victoryCore.VictoryContainer,{__source:{fileName:_jsxFileName,lineNumber:74}}),groupComponent:_react2.default.createElement("g",{role:"presentation",__source:{fileName:_jsxFileName,lineNumber:75}}),fixLabelOverlap:false};VictoryAxis.getDomain=_helperMethods2.default.getDomain.bind(_helperMethods2.default);VictoryAxis.getAxis=_axis2.default.getAxis.bind(_axis2.default);VictoryAxis.getScale=_helperMethods2.default.getScale.bind(_helperMethods2.default);VictoryAxis.getStyles=(0,_partialRight3.default)(_helperMethods2.default.getStyles.bind(_helperMethods2.default),fallbackProps.style);VictoryAxis.getBaseProps=(0,_partialRight3.default)(_helperMethods2.default.getBaseProps.bind(_helperMethods2.default),fallbackProps);VictoryAxis.expectedComponents=["axisComponent","axisLabelComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent"];exports.default=
|
|
220
178
|
|
|
221
179
|
|
|
222
180
|
(0,_victoryCore.addEvents)(VictoryAxis);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports,"__esModule",{value:true});var _omit2=require("lodash/omit");var _omit3=_interopRequireDefault(_omit2);var _defaults2=require("lodash/defaults");var _defaults3=_interopRequireDefault(_defaults2);var _assign2=require("lodash/assign");var _assign3=_interopRequireDefault(_assign2);
|
|
2
|
+
|
|
2
3
|
var _victoryCore=require("victory-core");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=
|
|
3
4
|
|
|
4
5
|
{
|
|
@@ -6,6 +7,7 @@ var _victoryCore=require("victory-core");function _interopRequireDefault(obj){re
|
|
|
6
7
|
getBarWidth:function getBarWidth(props){var
|
|
7
8
|
style=props.style,width=props.width,data=props.data;
|
|
8
9
|
var padding=props.padding.left||props.padding;
|
|
10
|
+
|
|
9
11
|
var defaultWidth=data.length===0?8:(width-2*padding)/data.length;
|
|
10
12
|
return style&&style.width?style.width:defaultWidth;
|
|
11
13
|
},
|
|
@@ -74,7 +76,7 @@ y:horizontal?0:sign*defaultPadding};
|
|
|
74
76
|
getCalculatedValues:function getCalculatedValues(props){var
|
|
75
77
|
theme=props.theme,horizontal=props.horizontal;
|
|
76
78
|
var defaultStyles=theme&&theme.bar&&theme.bar.style?theme.bar.style:{};
|
|
77
|
-
var style=_victoryCore.Helpers.getStyles(props.style,defaultStyles
|
|
79
|
+
var style=_victoryCore.Helpers.getStyles(props.style,defaultStyles);
|
|
78
80
|
var data=_victoryCore.Data.getData(props);
|
|
79
81
|
var range={
|
|
80
82
|
x:_victoryCore.Helpers.getRange(props,"x"),
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:true});var _partialRight2=require("lodash/partialRight");var _partialRight3=_interopRequireDefault(_partialRight2);var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:true});var _partialRight2=require("lodash/partialRight");var _partialRight3=_interopRequireDefault(_partialRight2);var _jsxFileName="src/components/victory-bar/victory-bar.js";var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);
|
|
2
|
+
var _react=require("react");var _react2=_interopRequireDefault(_react);
|
|
2
3
|
var _helperMethods=require("./helper-methods");var _helperMethods2=_interopRequireDefault(_helperMethods);
|
|
3
4
|
|
|
4
|
-
var _victoryCore=require("victory-core");
|
|
5
|
-
|
|
5
|
+
var _victoryCore=require("victory-core");
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
var _commonProps=require("../../helpers/common-props");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}
|
|
8
9
|
|
|
9
10
|
var fallbackProps={
|
|
10
11
|
width:450,
|
|
@@ -21,50 +22,7 @@ var defaultData=[
|
|
|
21
22
|
|
|
22
23
|
var animationWhitelist=["data","domain","height","padding","style","width"];var
|
|
23
24
|
|
|
24
|
-
VictoryBar=function(_React$Component){_inherits(VictoryBar,_React$Component);function VictoryBar(){_classCallCheck(this,VictoryBar);return _possibleConstructorReturn(this,(VictoryBar.__proto__||Object.getPrototypeOf(VictoryBar)).apply(this,arguments));}_createClass(VictoryBar,[{key:"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
25
|
+
VictoryBar=function(_React$Component){_inherits(VictoryBar,_React$Component);function VictoryBar(){_classCallCheck(this,VictoryBar);return _possibleConstructorReturn(this,(VictoryBar.__proto__||Object.getPrototypeOf(VictoryBar)).apply(this,arguments));}_createClass(VictoryBar,[{key:"shouldAnimate",value:function shouldAnimate()
|
|
68
26
|
|
|
69
27
|
|
|
70
28
|
|
|
@@ -111,83 +69,19 @@ VictoryBar=function(_React$Component){_inherits(VictoryBar,_React$Component);fun
|
|
|
111
69
|
|
|
112
70
|
|
|
113
71
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
props){var _this2=this;var
|
|
149
|
-
dataComponent=props.dataComponent,labelComponent=props.labelComponent,groupComponent=props.groupComponent;
|
|
150
|
-
|
|
151
|
-
var dataComponents=this.dataKeys.map(function(_dataKey,index){
|
|
152
|
-
var dataProps=_this2.getComponentProps(dataComponent,"data",index);
|
|
153
|
-
return _react2.default.cloneElement(dataComponent,dataProps);
|
|
154
|
-
});
|
|
155
|
-
|
|
156
|
-
var labelComponents=this.dataKeys.map(function(_dataKey,index){
|
|
157
|
-
var labelProps=_this2.getComponentProps(labelComponent,"labels",index);
|
|
158
|
-
if(labelProps.text!==undefined&&labelProps.text!==null){
|
|
159
|
-
return _react2.default.cloneElement(labelComponent,labelProps);
|
|
160
|
-
}
|
|
161
|
-
}).filter(Boolean);
|
|
162
|
-
|
|
163
|
-
var children=[].concat(_toConsumableArray(dataComponents),_toConsumableArray(labelComponents));
|
|
164
|
-
return this.renderContainer(groupComponent,children);
|
|
165
|
-
|
|
166
|
-
}},{key:"shouldAnimate",value:function shouldAnimate()
|
|
167
|
-
|
|
168
72
|
{
|
|
169
73
|
return!!this.props.animate;
|
|
170
|
-
}},{key:"renderContainer",value:function renderContainer(
|
|
171
|
-
|
|
172
|
-
component,children){
|
|
173
|
-
var isContainer=component.type&&component.type.role==="container";
|
|
174
|
-
var parentProps=isContainer?this.getComponentProps(component,"parent","parent"):{};
|
|
175
|
-
return _react2.default.cloneElement(component,parentProps,children);
|
|
176
74
|
}},{key:"render",value:function render()
|
|
177
75
|
|
|
178
76
|
{var
|
|
179
77
|
role=this.constructor.role;
|
|
180
78
|
var props=_victoryCore.Helpers.modifyProps(this.props,fallbackProps,role);
|
|
181
79
|
if(this.shouldAnimate()){
|
|
182
|
-
return(
|
|
183
|
-
_react2.default.createElement(_victoryCore.VictoryTransition,{animate:props.animate,animationWhitelist:animationWhitelist},
|
|
184
|
-
_react2.default.createElement(this.constructor,props)));
|
|
185
|
-
|
|
186
|
-
|
|
80
|
+
return this.animateComponent(props,animationWhitelist);
|
|
187
81
|
}
|
|
188
82
|
var children=this.renderData(props);
|
|
189
|
-
return this.renderContainer(props.containerComponent,children);
|
|
190
|
-
}}]);return VictoryBar;}(_react2.default.Component);VictoryBar.displayName="VictoryBar";VictoryBar.role="bar";VictoryBar.defaultTransitions={onLoad:{duration:2000,before:function before(){return{_y:0,_y1:0,_y0:0};},after:function after(datum){return{_y:datum._y,_y1:datum._y1,_y0:datum._y0};}},onExit:{duration:500,before:function before(){return{_y:0,yOffset:0};}},onEnter:{duration:500,before:function before(){return{_y:0,_y1:0,_y0:0};},after:function after(datum){return{_y:datum._y,_y1:datum._y1,_y0:datum._y0};}}};VictoryBar.propTypes=
|
|
83
|
+
return props.standalone?this.renderContainer(props.containerComponent,children):children;
|
|
84
|
+
}}]);return VictoryBar;}(_react2.default.Component);VictoryBar.displayName="VictoryBar";VictoryBar.role="bar";VictoryBar.defaultTransitions={onLoad:{duration:2000,before:function before(){return{_y:0,_y1:0,_y0:0};},after:function after(datum){return{_y:datum._y,_y1:datum._y1,_y0:datum._y0};}},onExit:{duration:500,before:function before(){return{_y:0,yOffset:0};}},onEnter:{duration:500,before:function before(){return{_y:0,_y1:0,_y0:0};},after:function after(datum){return{_y:datum._y,_y1:datum._y1,_y0:datum._y0};}}};VictoryBar.propTypes=_extends({},_commonProps.BaseProps,_commonProps.DataProps,{horizontal:_propTypes2.default.bool});VictoryBar.defaultProps={data:defaultData,dataComponent:_react2.default.createElement(_victoryCore.Bar,{__source:{fileName:_jsxFileName,lineNumber:55}}),labelComponent:_react2.default.createElement(_victoryCore.VictoryLabel,{__source:{fileName:_jsxFileName,lineNumber:56}}),scale:"linear",standalone:true,containerComponent:_react2.default.createElement(_victoryCore.VictoryContainer,{__source:{fileName:_jsxFileName,lineNumber:59}}),groupComponent:_react2.default.createElement("g",{role:"presentation",__source:{fileName:_jsxFileName,lineNumber:60}}),theme:_victoryCore.VictoryTheme.grayscale};VictoryBar.getDomain=_victoryCore.Domain.getDomainWithZero.bind(_victoryCore.Domain);VictoryBar.getData=_victoryCore.Data.getData.bind(_victoryCore.Data);VictoryBar.getBaseProps=(0,_partialRight3.default)(_helperMethods2.default.getBaseProps.bind(_helperMethods2.default),fallbackProps);VictoryBar.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];exports.default=
|
|
191
85
|
|
|
192
86
|
|
|
193
87
|
(0,_victoryCore.addEvents)(VictoryBar);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports,"__esModule",{value:true});var _defaults2=require("lodash/defaults");var _defaults3=_interopRequireDefault(_defaults2);var _omit2=require("lodash/omit");var _omit3=_interopRequireDefault(_omit2);var _sortBy2=require("lodash/sortBy");var _sortBy3=_interopRequireDefault(_sortBy2);var _pick2=require("lodash/pick");var _pick3=_interopRequireDefault(_pick2);var _assign2=require("lodash/assign");var _assign3=_interopRequireDefault(_assign2);
|
|
2
|
+
|
|
2
3
|
var _victoryCore=require("victory-core");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i<arr.length;i++){arr2[i]=arr[i];}return arr2;}else{return Array.from(arr);}}exports.default=
|
|
3
4
|
|
|
4
5
|
{
|
|
@@ -58,7 +59,7 @@ getCalculatedValues:function getCalculatedValues(props){var
|
|
|
58
59
|
theme=props.theme;
|
|
59
60
|
var defaultStyle=theme&&theme.candlestick&&theme.candlestick.style?
|
|
60
61
|
theme.candlestick.style:{};
|
|
61
|
-
var style=_victoryCore.Helpers.getStyles(props.style,defaultStyle
|
|
62
|
+
var style=_victoryCore.Helpers.getStyles(props.style,defaultStyle);
|
|
62
63
|
var data=_victoryCore.Data.addEventKeys(props,this.getData(props));
|
|
63
64
|
var range={
|
|
64
65
|
x:_victoryCore.Helpers.getRange(props,"x"),
|