victory-errorbar 35.11.2 → 36.1.0
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-errorbar.js +311 -328
- package/es/victory-errorbar.js +1 -3
- package/lib/victory-errorbar.js +1 -3
- package/package.json +5 -4
package/LICENSE.txt
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2015-2020 Formidable Labs.
|
|
4
|
+
|
|
5
|
+
Copyright (c) 2016-2020 Alexey Svetliakov <https://github.com/asvetliakov>,
|
|
6
|
+
snerks <https://github.com/snerks>, Krzysztof Cebula <https://github.com
|
|
7
|
+
Havret>, Vitaliy Polyanskiy <https://github.com/alreadyExisted>, James Lismore
|
|
8
|
+
<https://github.com/jlismore>, Stack Builders <https://github.com
|
|
9
|
+
stackbuilders>, Esteban Ibarra <https://github.com/ibarrae>, Dominic Lee
|
|
10
|
+
<https://github.com/dominictwlee>, Dave Vedder <https://github.com
|
|
11
|
+
veddermatic>, Alec Flett <https://github.com/alecf> and potentially other
|
|
12
|
+
DefinitelyTyped contributors.
|
|
13
|
+
|
|
14
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
15
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
16
|
+
in the Software without restriction, including without limitation the rights
|
|
17
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
18
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
19
|
+
furnished to do so, subject to the following conditions:
|
|
20
|
+
|
|
21
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
26
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
27
|
+
SOFTWARE.
|
|
28
|
+
|
|
29
|
+
The above copyright notice and this permission notice shall be included in all
|
|
30
|
+
copies or substantial portions of the Software.
|
package/dist/victory-errorbar.js
CHANGED
|
@@ -503,9 +503,7 @@ var defaultData = [{
|
|
|
503
503
|
errorY: 0.4
|
|
504
504
|
}];
|
|
505
505
|
|
|
506
|
-
var VictoryErrorBar =
|
|
507
|
-
/*#__PURE__*/
|
|
508
|
-
function (_React$Component) {
|
|
506
|
+
var VictoryErrorBar = /*#__PURE__*/function (_React$Component) {
|
|
509
507
|
_inherits(VictoryErrorBar, _React$Component);
|
|
510
508
|
|
|
511
509
|
function VictoryErrorBar() {
|
|
@@ -13927,9 +13925,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
13927
13925
|
|
|
13928
13926
|
|
|
13929
13927
|
|
|
13930
|
-
var VictoryAnimation =
|
|
13931
|
-
/*#__PURE__*/
|
|
13932
|
-
function (_React$Component) {
|
|
13928
|
+
var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
13933
13929
|
_inherits(VictoryAnimation, _React$Component);
|
|
13934
13930
|
|
|
13935
13931
|
function VictoryAnimation(props, context) {
|
|
@@ -14213,9 +14209,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
|
|
14213
14209
|
|
|
14214
14210
|
|
|
14215
14211
|
|
|
14216
|
-
var VictoryContainer =
|
|
14217
|
-
/*#__PURE__*/
|
|
14218
|
-
function (_React$Component) {
|
|
14212
|
+
var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
14219
14213
|
_inherits(VictoryContainer, _React$Component);
|
|
14220
14214
|
|
|
14221
14215
|
function VictoryContainer(props) {
|
|
@@ -14573,7 +14567,7 @@ var getSingleValue = function (prop) {
|
|
|
14573
14567
|
return Array.isArray(prop) ? prop[index] || prop[0] : prop;
|
|
14574
14568
|
};
|
|
14575
14569
|
|
|
14576
|
-
var
|
|
14570
|
+
var shouldUseMultilineBackgrounds = function (props) {
|
|
14577
14571
|
var backgroundStyle = props.backgroundStyle,
|
|
14578
14572
|
backgroundPadding = props.backgroundPadding;
|
|
14579
14573
|
return Array.isArray(backgroundStyle) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(backgroundStyle) || Array.isArray(backgroundPadding) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(backgroundPadding);
|
|
@@ -14865,7 +14859,7 @@ var getChildBackgrounds = function (calculatedProps, tspanValues) {
|
|
|
14865
14859
|
};
|
|
14866
14860
|
|
|
14867
14861
|
var getBackgroundElement = function (calculatedProps, tspanValues) {
|
|
14868
|
-
return
|
|
14862
|
+
return shouldUseMultilineBackgrounds(calculatedProps) ? getChildBackgrounds(calculatedProps, tspanValues) : getFullBackground(calculatedProps, tspanValues);
|
|
14869
14863
|
};
|
|
14870
14864
|
|
|
14871
14865
|
var calculateSpanDy = function (tspanValues, i, calculatedProps) {
|
|
@@ -14876,7 +14870,7 @@ var calculateSpanDy = function (tspanValues, i, calculatedProps) {
|
|
|
14876
14870
|
var previousCaps = previous.fontSize - previous.capHeight;
|
|
14877
14871
|
var currentCaps = current.fontSize - current.capHeight;
|
|
14878
14872
|
var textHeight = previousHeight - previous.fontSize / 2 + current.fontSize / 2 - previousHeight / 2 + currentHeight / 2 - currentCaps / 2 + previousCaps / 2;
|
|
14879
|
-
return
|
|
14873
|
+
return shouldUseMultilineBackgrounds(calculatedProps) ? textHeight + current.backgroundPadding.top + previous.backgroundPadding.bottom : textHeight;
|
|
14880
14874
|
};
|
|
14881
14875
|
|
|
14882
14876
|
var getTSpanDy = function (tspanValues, calculatedProps, i) {
|
|
@@ -15161,9 +15155,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
15161
15155
|
|
|
15162
15156
|
|
|
15163
15157
|
|
|
15164
|
-
var Portal =
|
|
15165
|
-
/*#__PURE__*/
|
|
15166
|
-
function (_React$Component) {
|
|
15158
|
+
var Portal = /*#__PURE__*/function (_React$Component) {
|
|
15167
15159
|
_inherits(Portal, _React$Component);
|
|
15168
15160
|
|
|
15169
15161
|
function Portal(props) {
|
|
@@ -15282,9 +15274,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
|
|
15282
15274
|
|
|
15283
15275
|
|
|
15284
15276
|
|
|
15285
|
-
var VictoryPortal =
|
|
15286
|
-
/*#__PURE__*/
|
|
15287
|
-
function (_React$Component) {
|
|
15277
|
+
var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
15288
15278
|
_inherits(VictoryPortal, _React$Component);
|
|
15289
15279
|
|
|
15290
15280
|
function VictoryPortal() {
|
|
@@ -16182,9 +16172,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
16182
16172
|
|
|
16183
16173
|
|
|
16184
16174
|
|
|
16185
|
-
var VictoryTransition =
|
|
16186
|
-
/*#__PURE__*/
|
|
16187
|
-
function (_React$Component) {
|
|
16175
|
+
var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
16188
16176
|
_inherits(VictoryTransition, _React$Component);
|
|
16189
16177
|
|
|
16190
16178
|
function VictoryTransition(props, context) {
|
|
@@ -16485,365 +16473,362 @@ var defaultComponents = [{
|
|
|
16485
16473
|
name: "labels"
|
|
16486
16474
|
}];
|
|
16487
16475
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (function (WrappedComponent, options) {
|
|
16488
|
-
return (
|
|
16489
|
-
|
|
16490
|
-
function (_WrappedComponent) {
|
|
16491
|
-
_inherits(addEvents, _WrappedComponent);
|
|
16476
|
+
return /*#__PURE__*/function (_WrappedComponent) {
|
|
16477
|
+
_inherits(addEvents, _WrappedComponent);
|
|
16492
16478
|
|
|
16493
|
-
|
|
16494
|
-
|
|
16479
|
+
function addEvents(props) {
|
|
16480
|
+
var _this;
|
|
16495
16481
|
|
|
16496
|
-
|
|
16482
|
+
_classCallCheck(this, addEvents);
|
|
16497
16483
|
|
|
16498
|
-
|
|
16499
|
-
|
|
16500
|
-
|
|
16501
|
-
|
|
16484
|
+
_this = _possibleConstructorReturn(this, (addEvents.__proto__ || Object.getPrototypeOf(addEvents)).call(this, props));
|
|
16485
|
+
var getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
|
|
16486
|
+
var boundGetEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.bind(_assertThisInitialized(_this));
|
|
16487
|
+
_this.state = {};
|
|
16502
16488
|
|
|
16503
|
-
|
|
16504
|
-
|
|
16505
|
-
|
|
16506
|
-
|
|
16507
|
-
_this.getEventState = _events__WEBPACK_IMPORTED_MODULE_11__.getEventState.bind(_assertThisInitialized(_this));
|
|
16489
|
+
_this.getEvents = function (p, target, eventKey) {
|
|
16490
|
+
return boundGetEvents(p, target, eventKey, getScopedEvents);
|
|
16491
|
+
};
|
|
16508
16492
|
|
|
16509
|
-
|
|
16493
|
+
_this.getEventState = _events__WEBPACK_IMPORTED_MODULE_11__.getEventState.bind(_assertThisInitialized(_this));
|
|
16510
16494
|
|
|
16511
|
-
|
|
16495
|
+
var calculatedValues = _this.getCalculatedValues(props);
|
|
16512
16496
|
|
|
16513
|
-
|
|
16514
|
-
_this.calculatedState = _this.getStateChanges(props);
|
|
16515
|
-
_this.globalEvents = {};
|
|
16516
|
-
_this.prevGlobalEventKeys = [];
|
|
16517
|
-
_this.boundGlobalEvents = {};
|
|
16518
|
-
return _this;
|
|
16519
|
-
}
|
|
16497
|
+
_this.cacheValues(calculatedValues);
|
|
16520
16498
|
|
|
16521
|
-
|
|
16522
|
-
|
|
16523
|
-
|
|
16524
|
-
|
|
16525
|
-
|
|
16526
|
-
|
|
16527
|
-
|
|
16528
|
-
if (animating || newMutation) {
|
|
16529
|
-
this.cacheValues(this.getCalculatedValues(nextProps));
|
|
16530
|
-
this.externalMutations = externalMutations;
|
|
16531
|
-
this.applyExternalMutations(nextProps, externalMutations);
|
|
16532
|
-
return true;
|
|
16533
|
-
}
|
|
16534
|
-
|
|
16535
|
-
var calculatedState = this.getStateChanges(nextProps);
|
|
16499
|
+
_this.externalMutations = _this.getExternalMutations(props);
|
|
16500
|
+
_this.calculatedState = _this.getStateChanges(props);
|
|
16501
|
+
_this.globalEvents = {};
|
|
16502
|
+
_this.prevGlobalEventKeys = [];
|
|
16503
|
+
_this.boundGlobalEvents = {};
|
|
16504
|
+
return _this;
|
|
16505
|
+
}
|
|
16536
16506
|
|
|
16537
|
-
|
|
16538
|
-
|
|
16539
|
-
|
|
16540
|
-
|
|
16507
|
+
_createClass(addEvents, [{
|
|
16508
|
+
key: "shouldComponentUpdate",
|
|
16509
|
+
value: function shouldComponentUpdate(nextProps) {
|
|
16510
|
+
var externalMutations = this.getExternalMutations(nextProps);
|
|
16511
|
+
var animating = this.props.animating || this.props.animate;
|
|
16512
|
+
var newMutation = !react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(externalMutations, this.externalMutations);
|
|
16513
|
+
|
|
16514
|
+
if (animating || newMutation) {
|
|
16515
|
+
this.cacheValues(this.getCalculatedValues(nextProps));
|
|
16516
|
+
this.externalMutations = externalMutations;
|
|
16517
|
+
this.applyExternalMutations(nextProps, externalMutations);
|
|
16518
|
+
return true;
|
|
16519
|
+
}
|
|
16541
16520
|
|
|
16542
|
-
|
|
16543
|
-
this.cacheValues(this.getCalculatedValues(nextProps));
|
|
16544
|
-
return true;
|
|
16545
|
-
}
|
|
16521
|
+
var calculatedState = this.getStateChanges(nextProps);
|
|
16546
16522
|
|
|
16547
|
-
|
|
16523
|
+
if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(this.calculatedState, calculatedState)) {
|
|
16524
|
+
this.cacheValues(this.getCalculatedValues(nextProps));
|
|
16525
|
+
return true;
|
|
16548
16526
|
}
|
|
16549
|
-
}, {
|
|
16550
|
-
key: "componentDidMount",
|
|
16551
|
-
value: function componentDidMount() {
|
|
16552
|
-
var _this2 = this;
|
|
16553
16527
|
|
|
16554
|
-
|
|
16555
|
-
|
|
16556
|
-
|
|
16557
|
-
return _this2.addGlobalListener(key);
|
|
16558
|
-
});
|
|
16559
|
-
this.prevGlobalEventKeys = globalEventKeys;
|
|
16528
|
+
if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(this.props, nextProps)) {
|
|
16529
|
+
this.cacheValues(this.getCalculatedValues(nextProps));
|
|
16530
|
+
return true;
|
|
16560
16531
|
}
|
|
16561
|
-
}, {
|
|
16562
|
-
key: "componentDidUpdate",
|
|
16563
|
-
value: function componentDidUpdate(prevProps) {
|
|
16564
|
-
var _this3 = this;
|
|
16565
16532
|
|
|
16566
|
-
|
|
16567
|
-
|
|
16533
|
+
return false;
|
|
16534
|
+
}
|
|
16535
|
+
}, {
|
|
16536
|
+
key: "componentDidMount",
|
|
16537
|
+
value: function componentDidMount() {
|
|
16538
|
+
var _this2 = this;
|
|
16568
16539
|
|
|
16569
|
-
|
|
16540
|
+
var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(this.globalEvents);
|
|
16570
16541
|
|
|
16571
|
-
|
|
16542
|
+
globalEventKeys.forEach(function (key) {
|
|
16543
|
+
return _this2.addGlobalListener(key);
|
|
16544
|
+
});
|
|
16545
|
+
this.prevGlobalEventKeys = globalEventKeys;
|
|
16546
|
+
}
|
|
16547
|
+
}, {
|
|
16548
|
+
key: "componentDidUpdate",
|
|
16549
|
+
value: function componentDidUpdate(prevProps) {
|
|
16550
|
+
var _this3 = this;
|
|
16572
16551
|
|
|
16573
|
-
|
|
16574
|
-
|
|
16575
|
-
});
|
|
16552
|
+
var calculatedState = this.getStateChanges(prevProps);
|
|
16553
|
+
this.calculatedState = calculatedState;
|
|
16576
16554
|
|
|
16577
|
-
|
|
16555
|
+
var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(this.globalEvents);
|
|
16578
16556
|
|
|
16579
|
-
|
|
16580
|
-
return _this3.addGlobalListener(key);
|
|
16581
|
-
});
|
|
16582
|
-
this.prevGlobalEventKeys = globalEventKeys;
|
|
16583
|
-
}
|
|
16584
|
-
}, {
|
|
16585
|
-
key: "componentWillUnmount",
|
|
16586
|
-
value: function componentWillUnmount() {
|
|
16587
|
-
var _this4 = this;
|
|
16557
|
+
var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(this.prevGlobalEventKeys, globalEventKeys);
|
|
16588
16558
|
|
|
16589
|
-
|
|
16590
|
-
|
|
16591
|
-
|
|
16592
|
-
}
|
|
16593
|
-
}, {
|
|
16594
|
-
key: "addGlobalListener",
|
|
16595
|
-
value: function addGlobalListener(key) {
|
|
16596
|
-
var _this5 = this;
|
|
16597
|
-
|
|
16598
|
-
var boundListener = function (event) {
|
|
16599
|
-
var listener = _this5.globalEvents[key];
|
|
16600
|
-
return listener && listener(_events__WEBPACK_IMPORTED_MODULE_11__.emulateReactEvent(event));
|
|
16601
|
-
};
|
|
16559
|
+
removedGlobalEventKeys.forEach(function (key) {
|
|
16560
|
+
return _this3.removeGlobalListener(key);
|
|
16561
|
+
});
|
|
16602
16562
|
|
|
16603
|
-
|
|
16604
|
-
window.addEventListener(_events__WEBPACK_IMPORTED_MODULE_11__.getGlobalEventNameFromKey(key), boundListener);
|
|
16605
|
-
}
|
|
16606
|
-
}, {
|
|
16607
|
-
key: "removeGlobalListener",
|
|
16608
|
-
value: function removeGlobalListener(key) {
|
|
16609
|
-
window.removeEventListener(_events__WEBPACK_IMPORTED_MODULE_11__.getGlobalEventNameFromKey(key), this.boundGlobalEvents[key]);
|
|
16610
|
-
} // compile all state changes from own and parent state. Order doesn't matter, as any state
|
|
16611
|
-
// state change should trigger a re-render
|
|
16612
|
-
|
|
16613
|
-
}, {
|
|
16614
|
-
key: "getStateChanges",
|
|
16615
|
-
value: function getStateChanges(props) {
|
|
16616
|
-
var _this6 = this;
|
|
16617
|
-
|
|
16618
|
-
if (!this.hasEvents) {
|
|
16619
|
-
return {};
|
|
16620
|
-
}
|
|
16563
|
+
var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(globalEventKeys, this.prevGlobalEventKeys);
|
|
16621
16564
|
|
|
16622
|
-
|
|
16623
|
-
|
|
16565
|
+
addedGlobalEventKeys.forEach(function (key) {
|
|
16566
|
+
return _this3.addGlobalListener(key);
|
|
16567
|
+
});
|
|
16568
|
+
this.prevGlobalEventKeys = globalEventKeys;
|
|
16569
|
+
}
|
|
16570
|
+
}, {
|
|
16571
|
+
key: "componentWillUnmount",
|
|
16572
|
+
value: function componentWillUnmount() {
|
|
16573
|
+
var _this4 = this;
|
|
16624
16574
|
|
|
16625
|
-
|
|
16626
|
-
|
|
16575
|
+
this.prevGlobalEventKeys.forEach(function (key) {
|
|
16576
|
+
return _this4.removeGlobalListener(key);
|
|
16577
|
+
});
|
|
16578
|
+
}
|
|
16579
|
+
}, {
|
|
16580
|
+
key: "addGlobalListener",
|
|
16581
|
+
value: function addGlobalListener(key) {
|
|
16582
|
+
var _this5 = this;
|
|
16583
|
+
|
|
16584
|
+
var boundListener = function (event) {
|
|
16585
|
+
var listener = _this5.globalEvents[key];
|
|
16586
|
+
return listener && listener(_events__WEBPACK_IMPORTED_MODULE_11__.emulateReactEvent(event));
|
|
16587
|
+
};
|
|
16627
16588
|
|
|
16628
|
-
|
|
16629
|
-
|
|
16630
|
-
|
|
16631
|
-
|
|
16632
|
-
|
|
16633
|
-
|
|
16634
|
-
|
|
16635
|
-
|
|
16636
|
-
|
|
16637
|
-
|
|
16638
|
-
|
|
16639
|
-
|
|
16640
|
-
|
|
16641
|
-
|
|
16642
|
-
|
|
16643
|
-
|
|
16644
|
-
|
|
16645
|
-
if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalMutations)) {
|
|
16646
|
-
var callbacks = props.externalEventMutations.reduce(function (memo, mutation) {
|
|
16647
|
-
memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(mutation.callback) ? memo.concat(mutation.callback) : memo;
|
|
16648
|
-
return memo;
|
|
16649
|
-
}, []);
|
|
16650
|
-
var compiledCallbacks = callbacks.length ? function () {
|
|
16651
|
-
callbacks.forEach(function (c) {
|
|
16652
|
-
return c();
|
|
16653
|
-
});
|
|
16654
|
-
} : undefined;
|
|
16655
|
-
this.setState(externalMutations, compiledCallbacks);
|
|
16656
|
-
}
|
|
16589
|
+
this.boundGlobalEvents[key] = boundListener;
|
|
16590
|
+
window.addEventListener(_events__WEBPACK_IMPORTED_MODULE_11__.getGlobalEventNameFromKey(key), boundListener);
|
|
16591
|
+
}
|
|
16592
|
+
}, {
|
|
16593
|
+
key: "removeGlobalListener",
|
|
16594
|
+
value: function removeGlobalListener(key) {
|
|
16595
|
+
window.removeEventListener(_events__WEBPACK_IMPORTED_MODULE_11__.getGlobalEventNameFromKey(key), this.boundGlobalEvents[key]);
|
|
16596
|
+
} // compile all state changes from own and parent state. Order doesn't matter, as any state
|
|
16597
|
+
// state change should trigger a re-render
|
|
16598
|
+
|
|
16599
|
+
}, {
|
|
16600
|
+
key: "getStateChanges",
|
|
16601
|
+
value: function getStateChanges(props) {
|
|
16602
|
+
var _this6 = this;
|
|
16603
|
+
|
|
16604
|
+
if (!this.hasEvents) {
|
|
16605
|
+
return {};
|
|
16657
16606
|
}
|
|
16658
|
-
}, {
|
|
16659
|
-
key: "getCalculatedValues",
|
|
16660
|
-
value: function getCalculatedValues(props) {
|
|
16661
|
-
var sharedEvents = props.sharedEvents;
|
|
16662
|
-
var components = WrappedComponent.expectedComponents;
|
|
16663
|
-
var componentEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getComponentEvents(props, components);
|
|
16664
|
-
var getSharedEventState = sharedEvents && lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
|
|
16665
|
-
return undefined;
|
|
16666
|
-
};
|
|
16667
|
-
var baseProps = this.getBaseProps(props, getSharedEventState);
|
|
16668
16607
|
|
|
16669
|
-
|
|
16670
|
-
|
|
16671
|
-
});
|
|
16608
|
+
var getState = function (key, type) {
|
|
16609
|
+
var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));
|
|
16672
16610
|
|
|
16673
|
-
|
|
16674
|
-
|
|
16675
|
-
return {
|
|
16676
|
-
componentEvents: componentEvents,
|
|
16677
|
-
getSharedEventState: getSharedEventState,
|
|
16678
|
-
baseProps: baseProps,
|
|
16679
|
-
dataKeys: dataKeys,
|
|
16680
|
-
hasEvents: hasEvents,
|
|
16681
|
-
events: events
|
|
16682
|
-
};
|
|
16683
|
-
}
|
|
16684
|
-
}, {
|
|
16685
|
-
key: "getExternalMutations",
|
|
16686
|
-
value: function getExternalMutations(props) {
|
|
16687
|
-
var sharedEvents = props.sharedEvents,
|
|
16688
|
-
externalEventMutations = props.externalEventMutations;
|
|
16689
|
-
return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_11__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
|
|
16690
|
-
}
|
|
16691
|
-
}, {
|
|
16692
|
-
key: "cacheValues",
|
|
16693
|
-
value: function cacheValues(obj) {
|
|
16694
|
-
var _this7 = this;
|
|
16611
|
+
return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(result) ? undefined : result;
|
|
16612
|
+
};
|
|
16695
16613
|
|
|
16696
|
-
|
|
16697
|
-
|
|
16698
|
-
|
|
16614
|
+
options = options || {};
|
|
16615
|
+
var components = options.components || defaultComponents;
|
|
16616
|
+
var stateChanges = components.map(function (component) {
|
|
16617
|
+
if (!props.standalone && component.name === "parent") {
|
|
16618
|
+
// don't check for changes on parent props for non-standalone components
|
|
16619
|
+
return undefined;
|
|
16620
|
+
} else {
|
|
16621
|
+
return component.index !== undefined ? getState(component.index, component.name) : _this6.dataKeys.map(function (key) {
|
|
16622
|
+
return getState(key, component.name);
|
|
16623
|
+
}).filter(Boolean);
|
|
16624
|
+
}
|
|
16625
|
+
}).filter(Boolean);
|
|
16626
|
+
return stateChanges;
|
|
16627
|
+
}
|
|
16628
|
+
}, {
|
|
16629
|
+
key: "applyExternalMutations",
|
|
16630
|
+
value: function applyExternalMutations(props, externalMutations) {
|
|
16631
|
+
if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalMutations)) {
|
|
16632
|
+
var callbacks = props.externalEventMutations.reduce(function (memo, mutation) {
|
|
16633
|
+
memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(mutation.callback) ? memo.concat(mutation.callback) : memo;
|
|
16634
|
+
return memo;
|
|
16635
|
+
}, []);
|
|
16636
|
+
var compiledCallbacks = callbacks.length ? function () {
|
|
16637
|
+
callbacks.forEach(function (c) {
|
|
16638
|
+
return c();
|
|
16639
|
+
});
|
|
16640
|
+
} : undefined;
|
|
16641
|
+
this.setState(externalMutations, compiledCallbacks);
|
|
16699
16642
|
}
|
|
16700
|
-
}
|
|
16701
|
-
|
|
16702
|
-
|
|
16703
|
-
|
|
16704
|
-
|
|
16705
|
-
|
|
16643
|
+
}
|
|
16644
|
+
}, {
|
|
16645
|
+
key: "getCalculatedValues",
|
|
16646
|
+
value: function getCalculatedValues(props) {
|
|
16647
|
+
var sharedEvents = props.sharedEvents;
|
|
16648
|
+
var components = WrappedComponent.expectedComponents;
|
|
16649
|
+
var componentEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getComponentEvents(props, components);
|
|
16650
|
+
var getSharedEventState = sharedEvents && lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
|
|
16651
|
+
return undefined;
|
|
16652
|
+
};
|
|
16653
|
+
var baseProps = this.getBaseProps(props, getSharedEventState);
|
|
16706
16654
|
|
|
16707
|
-
|
|
16655
|
+
var dataKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(baseProps).filter(function (key) {
|
|
16656
|
+
return key !== "parent";
|
|
16657
|
+
});
|
|
16708
16658
|
|
|
16709
|
-
|
|
16710
|
-
|
|
16659
|
+
var hasEvents = props.events || props.sharedEvents || componentEvents;
|
|
16660
|
+
var events = this.getAllEvents(props);
|
|
16661
|
+
return {
|
|
16662
|
+
componentEvents: componentEvents,
|
|
16663
|
+
getSharedEventState: getSharedEventState,
|
|
16664
|
+
baseProps: baseProps,
|
|
16665
|
+
dataKeys: dataKeys,
|
|
16666
|
+
hasEvents: hasEvents,
|
|
16667
|
+
events: events
|
|
16668
|
+
};
|
|
16669
|
+
}
|
|
16670
|
+
}, {
|
|
16671
|
+
key: "getExternalMutations",
|
|
16672
|
+
value: function getExternalMutations(props) {
|
|
16673
|
+
var sharedEvents = props.sharedEvents,
|
|
16674
|
+
externalEventMutations = props.externalEventMutations;
|
|
16675
|
+
return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_11__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
|
|
16676
|
+
}
|
|
16677
|
+
}, {
|
|
16678
|
+
key: "cacheValues",
|
|
16679
|
+
value: function cacheValues(obj) {
|
|
16680
|
+
var _this7 = this;
|
|
16711
16681
|
|
|
16712
|
-
|
|
16682
|
+
lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(obj).forEach(function (key) {
|
|
16683
|
+
_this7[key] = obj[key];
|
|
16684
|
+
});
|
|
16685
|
+
}
|
|
16686
|
+
}, {
|
|
16687
|
+
key: "getBaseProps",
|
|
16688
|
+
value: function getBaseProps(props, getSharedEventState) {
|
|
16689
|
+
getSharedEventState = getSharedEventState || this.getSharedEventState;
|
|
16690
|
+
var sharedParentState = getSharedEventState("parent", "parent");
|
|
16691
|
+
var parentState = this.getEventState("parent", "parent");
|
|
16713
16692
|
|
|
16714
|
-
|
|
16715
|
-
}
|
|
16716
|
-
}, {
|
|
16717
|
-
key: "getAllEvents",
|
|
16718
|
-
value: function getAllEvents(props) {
|
|
16719
|
-
if (Array.isArray(this.componentEvents)) {
|
|
16720
|
-
var _componentEvents;
|
|
16693
|
+
var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, parentState, sharedParentState);
|
|
16721
16694
|
|
|
16722
|
-
|
|
16723
|
-
|
|
16695
|
+
var parentPropsList = baseParentProps.parentControlledProps;
|
|
16696
|
+
var parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_4___default()(baseParentProps, parentPropsList) : {};
|
|
16724
16697
|
|
|
16725
|
-
|
|
16726
|
-
}
|
|
16727
|
-
}, {
|
|
16728
|
-
key: "getComponentProps",
|
|
16729
|
-
value: function getComponentProps(component, type, index) {
|
|
16730
|
-
var name = this.props.name || WrappedComponent.role;
|
|
16731
|
-
var key = this.dataKeys && this.dataKeys[index] || index;
|
|
16732
|
-
var id = "".concat(name, "-").concat(type, "-").concat(key);
|
|
16733
|
-
var baseProps = this.baseProps[key] && this.baseProps[key][type] || this.baseProps[key];
|
|
16734
|
-
|
|
16735
|
-
if (!baseProps && !this.hasEvents) {
|
|
16736
|
-
return undefined;
|
|
16737
|
-
}
|
|
16698
|
+
var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, parentProps, props);
|
|
16738
16699
|
|
|
16739
|
-
|
|
16740
|
-
|
|
16700
|
+
return lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(WrappedComponent.getBaseProps) ? WrappedComponent.getBaseProps(modifiedProps) : {};
|
|
16701
|
+
}
|
|
16702
|
+
}, {
|
|
16703
|
+
key: "getAllEvents",
|
|
16704
|
+
value: function getAllEvents(props) {
|
|
16705
|
+
if (Array.isArray(this.componentEvents)) {
|
|
16706
|
+
var _componentEvents;
|
|
16741
16707
|
|
|
16742
|
-
|
|
16743
|
-
|
|
16744
|
-
key: id
|
|
16745
|
-
}, this.getEventState(key, type), this.getSharedEventState(key, type), component.props, baseProps, {
|
|
16746
|
-
id: id
|
|
16747
|
-
});
|
|
16708
|
+
return Array.isArray(props.events) ? (_componentEvents = this.componentEvents).concat.apply(_componentEvents, _toConsumableArray(props.events)) : this.componentEvents;
|
|
16709
|
+
}
|
|
16748
16710
|
|
|
16749
|
-
|
|
16711
|
+
return props.events;
|
|
16712
|
+
}
|
|
16713
|
+
}, {
|
|
16714
|
+
key: "getComponentProps",
|
|
16715
|
+
value: function getComponentProps(component, type, index) {
|
|
16716
|
+
var name = this.props.name || WrappedComponent.role;
|
|
16717
|
+
var key = this.dataKeys && this.dataKeys[index] || index;
|
|
16718
|
+
var id = "".concat(name, "-").concat(type, "-").concat(key);
|
|
16719
|
+
var baseProps = this.baseProps[key] && this.baseProps[key][type] || this.baseProps[key];
|
|
16720
|
+
|
|
16721
|
+
if (!baseProps && !this.hasEvents) {
|
|
16722
|
+
return undefined;
|
|
16723
|
+
}
|
|
16750
16724
|
|
|
16751
|
-
|
|
16752
|
-
|
|
16753
|
-
});
|
|
16754
|
-
}
|
|
16725
|
+
if (this.hasEvents) {
|
|
16726
|
+
var baseEvents = this.getEvents(this.props, type, key);
|
|
16755
16727
|
|
|
16756
|
-
|
|
16728
|
+
var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({
|
|
16757
16729
|
index: index,
|
|
16758
16730
|
key: id
|
|
16759
|
-
}, component.props, baseProps, {
|
|
16731
|
+
}, this.getEventState(key, type), this.getSharedEventState(key, type), component.props, baseProps, {
|
|
16760
16732
|
id: id
|
|
16761
16733
|
});
|
|
16762
|
-
}
|
|
16763
|
-
}, {
|
|
16764
|
-
key: "renderContainer",
|
|
16765
|
-
value: function renderContainer(component, children) {
|
|
16766
|
-
var isContainer = component.type && component.type.role === "container";
|
|
16767
|
-
var parentProps = isContainer ? this.getComponentProps(component, "parent", "parent") : {};
|
|
16768
|
-
|
|
16769
|
-
if (parentProps.events) {
|
|
16770
|
-
this.globalEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getGlobalEvents(parentProps.events);
|
|
16771
|
-
parentProps.events = _events__WEBPACK_IMPORTED_MODULE_11__.omitGlobalEvents(parentProps.events);
|
|
16772
|
-
}
|
|
16773
16734
|
|
|
16774
|
-
|
|
16735
|
+
var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, _events__WEBPACK_IMPORTED_MODULE_11__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
|
|
16736
|
+
|
|
16737
|
+
return lodash_assign__WEBPACK_IMPORTED_MODULE_7___default()({}, componentProps, {
|
|
16738
|
+
events: events
|
|
16739
|
+
});
|
|
16775
16740
|
}
|
|
16776
|
-
}, {
|
|
16777
|
-
key: "animateComponent",
|
|
16778
|
-
value: function animateComponent(props, defaultAnimationWhitelist) {
|
|
16779
|
-
var animationWhitelist = props.animate && props.animate.animationWhitelist ? props.animate.animationWhitelist : defaultAnimationWhitelist;
|
|
16780
|
-
return react__WEBPACK_IMPORTED_MODULE_9___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_12__.default, {
|
|
16781
|
-
animate: props.animate,
|
|
16782
|
-
animationWhitelist: animationWhitelist
|
|
16783
|
-
}, react__WEBPACK_IMPORTED_MODULE_9___default().createElement(this.constructor, props));
|
|
16784
|
-
} // Used by `VictoryLine` and `VictoryArea`
|
|
16785
|
-
|
|
16786
|
-
}, {
|
|
16787
|
-
key: "renderContinuousData",
|
|
16788
|
-
value: function renderContinuousData(props) {
|
|
16789
|
-
var _this8 = this;
|
|
16790
|
-
|
|
16791
|
-
var dataComponent = props.dataComponent,
|
|
16792
|
-
labelComponent = props.labelComponent,
|
|
16793
|
-
groupComponent = props.groupComponent;
|
|
16794
|
-
|
|
16795
|
-
var dataKeys = lodash_without__WEBPACK_IMPORTED_MODULE_3___default()(this.dataKeys, "all");
|
|
16796
|
-
|
|
16797
|
-
var labelComponents = dataKeys.reduce(function (memo, key) {
|
|
16798
|
-
var labelProps = _this8.getComponentProps(labelComponent, "labels", key);
|
|
16799
|
-
|
|
16800
|
-
if (labelProps && labelProps.text !== undefined && labelProps.text !== null) {
|
|
16801
|
-
memo = memo.concat(react__WEBPACK_IMPORTED_MODULE_9___default().cloneElement(labelComponent, labelProps));
|
|
16802
|
-
}
|
|
16803
16741
|
|
|
16804
|
-
|
|
16805
|
-
|
|
16806
|
-
|
|
16807
|
-
|
|
16808
|
-
|
|
16742
|
+
return lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({
|
|
16743
|
+
index: index,
|
|
16744
|
+
key: id
|
|
16745
|
+
}, component.props, baseProps, {
|
|
16746
|
+
id: id
|
|
16747
|
+
});
|
|
16748
|
+
}
|
|
16749
|
+
}, {
|
|
16750
|
+
key: "renderContainer",
|
|
16751
|
+
value: function renderContainer(component, children) {
|
|
16752
|
+
var isContainer = component.type && component.type.role === "container";
|
|
16753
|
+
var parentProps = isContainer ? this.getComponentProps(component, "parent", "parent") : {};
|
|
16754
|
+
|
|
16755
|
+
if (parentProps.events) {
|
|
16756
|
+
this.globalEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getGlobalEvents(parentProps.events);
|
|
16757
|
+
parentProps.events = _events__WEBPACK_IMPORTED_MODULE_11__.omitGlobalEvents(parentProps.events);
|
|
16809
16758
|
}
|
|
16810
|
-
}, {
|
|
16811
|
-
key: "renderData",
|
|
16812
|
-
value: function renderData(props) {
|
|
16813
|
-
var _this9 = this;
|
|
16814
|
-
|
|
16815
|
-
var shouldRenderDatum = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : datumHasXandY;
|
|
16816
|
-
var dataComponent = props.dataComponent,
|
|
16817
|
-
labelComponent = props.labelComponent,
|
|
16818
|
-
groupComponent = props.groupComponent;
|
|
16819
|
-
var dataComponents = this.dataKeys.reduce(function (validDataComponents, _dataKey, index) {
|
|
16820
|
-
var dataProps = _this9.getComponentProps(dataComponent, "data", index);
|
|
16821
|
-
|
|
16822
|
-
if (shouldRenderDatum(dataProps.datum)) {
|
|
16823
|
-
validDataComponents.push(react__WEBPACK_IMPORTED_MODULE_9___default().cloneElement(dataComponent, dataProps));
|
|
16824
|
-
}
|
|
16825
16759
|
|
|
16826
|
-
|
|
16827
|
-
|
|
16828
|
-
|
|
16829
|
-
|
|
16760
|
+
return react__WEBPACK_IMPORTED_MODULE_9___default().cloneElement(component, parentProps, children);
|
|
16761
|
+
}
|
|
16762
|
+
}, {
|
|
16763
|
+
key: "animateComponent",
|
|
16764
|
+
value: function animateComponent(props, defaultAnimationWhitelist) {
|
|
16765
|
+
var animationWhitelist = props.animate && props.animate.animationWhitelist ? props.animate.animationWhitelist : defaultAnimationWhitelist;
|
|
16766
|
+
return react__WEBPACK_IMPORTED_MODULE_9___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_12__.default, {
|
|
16767
|
+
animate: props.animate,
|
|
16768
|
+
animationWhitelist: animationWhitelist
|
|
16769
|
+
}, react__WEBPACK_IMPORTED_MODULE_9___default().createElement(this.constructor, props));
|
|
16770
|
+
} // Used by `VictoryLine` and `VictoryArea`
|
|
16771
|
+
|
|
16772
|
+
}, {
|
|
16773
|
+
key: "renderContinuousData",
|
|
16774
|
+
value: function renderContinuousData(props) {
|
|
16775
|
+
var _this8 = this;
|
|
16776
|
+
|
|
16777
|
+
var dataComponent = props.dataComponent,
|
|
16778
|
+
labelComponent = props.labelComponent,
|
|
16779
|
+
groupComponent = props.groupComponent;
|
|
16780
|
+
|
|
16781
|
+
var dataKeys = lodash_without__WEBPACK_IMPORTED_MODULE_3___default()(this.dataKeys, "all");
|
|
16782
|
+
|
|
16783
|
+
var labelComponents = dataKeys.reduce(function (memo, key) {
|
|
16784
|
+
var labelProps = _this8.getComponentProps(labelComponent, "labels", key);
|
|
16785
|
+
|
|
16786
|
+
if (labelProps && labelProps.text !== undefined && labelProps.text !== null) {
|
|
16787
|
+
memo = memo.concat(react__WEBPACK_IMPORTED_MODULE_9___default().cloneElement(labelComponent, labelProps));
|
|
16788
|
+
}
|
|
16830
16789
|
|
|
16831
|
-
|
|
16832
|
-
|
|
16833
|
-
|
|
16790
|
+
return memo;
|
|
16791
|
+
}, []);
|
|
16792
|
+
var dataProps = this.getComponentProps(dataComponent, "data", "all");
|
|
16793
|
+
var children = [react__WEBPACK_IMPORTED_MODULE_9___default().cloneElement(dataComponent, dataProps)].concat(_toConsumableArray(labelComponents));
|
|
16794
|
+
return this.renderContainer(groupComponent, children);
|
|
16795
|
+
}
|
|
16796
|
+
}, {
|
|
16797
|
+
key: "renderData",
|
|
16798
|
+
value: function renderData(props) {
|
|
16799
|
+
var _this9 = this;
|
|
16800
|
+
|
|
16801
|
+
var shouldRenderDatum = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : datumHasXandY;
|
|
16802
|
+
var dataComponent = props.dataComponent,
|
|
16803
|
+
labelComponent = props.labelComponent,
|
|
16804
|
+
groupComponent = props.groupComponent;
|
|
16805
|
+
var dataComponents = this.dataKeys.reduce(function (validDataComponents, _dataKey, index) {
|
|
16806
|
+
var dataProps = _this9.getComponentProps(dataComponent, "data", index);
|
|
16807
|
+
|
|
16808
|
+
if (shouldRenderDatum(dataProps.datum)) {
|
|
16809
|
+
validDataComponents.push(react__WEBPACK_IMPORTED_MODULE_9___default().cloneElement(dataComponent, dataProps));
|
|
16810
|
+
}
|
|
16834
16811
|
|
|
16835
|
-
|
|
16836
|
-
|
|
16812
|
+
return validDataComponents;
|
|
16813
|
+
}, []);
|
|
16814
|
+
var labelComponents = this.dataKeys.map(function (_dataKey, index) {
|
|
16815
|
+
var labelProps = _this9.getComponentProps(labelComponent, "labels", index);
|
|
16837
16816
|
|
|
16838
|
-
|
|
16817
|
+
if (labelProps.text !== undefined && labelProps.text !== null) {
|
|
16818
|
+
return react__WEBPACK_IMPORTED_MODULE_9___default().cloneElement(labelComponent, labelProps);
|
|
16819
|
+
}
|
|
16839
16820
|
|
|
16840
|
-
return
|
|
16841
|
-
}
|
|
16842
|
-
|
|
16821
|
+
return undefined;
|
|
16822
|
+
}).filter(Boolean);
|
|
16823
|
+
|
|
16824
|
+
var children = _toConsumableArray(dataComponents).concat(_toConsumableArray(labelComponents));
|
|
16825
|
+
|
|
16826
|
+
return this.renderContainer(groupComponent, children);
|
|
16827
|
+
}
|
|
16828
|
+
}]);
|
|
16843
16829
|
|
|
16844
|
-
|
|
16845
|
-
|
|
16846
|
-
);
|
|
16830
|
+
return addEvents;
|
|
16831
|
+
}(WrappedComponent);
|
|
16847
16832
|
});
|
|
16848
16833
|
|
|
16849
16834
|
/***/ }),
|
|
@@ -20247,9 +20232,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
20247
20232
|
|
|
20248
20233
|
|
|
20249
20234
|
|
|
20250
|
-
var Timer =
|
|
20251
|
-
/*#__PURE__*/
|
|
20252
|
-
function () {
|
|
20235
|
+
var Timer = /*#__PURE__*/function () {
|
|
20253
20236
|
function Timer() {
|
|
20254
20237
|
_classCallCheck(this, Timer);
|
|
20255
20238
|
|
package/es/victory-errorbar.js
CHANGED
|
@@ -46,9 +46,7 @@ var defaultData = [{
|
|
|
46
46
|
errorY: 0.4
|
|
47
47
|
}];
|
|
48
48
|
|
|
49
|
-
var VictoryErrorBar =
|
|
50
|
-
/*#__PURE__*/
|
|
51
|
-
function (_React$Component) {
|
|
49
|
+
var VictoryErrorBar = /*#__PURE__*/function (_React$Component) {
|
|
52
50
|
_inherits(VictoryErrorBar, _React$Component);
|
|
53
51
|
|
|
54
52
|
function VictoryErrorBar() {
|
package/lib/victory-errorbar.js
CHANGED
|
@@ -60,9 +60,7 @@ var defaultData = [{
|
|
|
60
60
|
errorY: 0.4
|
|
61
61
|
}];
|
|
62
62
|
|
|
63
|
-
var VictoryErrorBar =
|
|
64
|
-
/*#__PURE__*/
|
|
65
|
-
function (_React$Component) {
|
|
63
|
+
var VictoryErrorBar = /*#__PURE__*/function (_React$Component) {
|
|
66
64
|
_inherits(VictoryErrorBar, _React$Component);
|
|
67
65
|
|
|
68
66
|
function VictoryErrorBar() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "victory-errorbar",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "36.1.0",
|
|
4
4
|
"description": "Error Bar Component for Victory",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data visualization",
|
|
@@ -21,13 +21,14 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"lodash": "^4.17.19",
|
|
23
23
|
"prop-types": "^15.5.8",
|
|
24
|
-
"victory-core": "^
|
|
24
|
+
"victory-core": "^36.1.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": "^16.6.0 || ^17.0.0"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
|
-
"version": "nps build-libs && nps build-dists"
|
|
30
|
+
"version": "yarn run nps build-libs && nps build-dists"
|
|
31
31
|
},
|
|
32
|
-
"sideEffects": false
|
|
32
|
+
"sideEffects": false,
|
|
33
|
+
"gitHead": "038cd9b70d9ce54ac6b861014165583760734c99"
|
|
33
34
|
}
|