victory-tooltip 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 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.
@@ -217,9 +217,7 @@ var fallbackProps = {
217
217
  pointerWidth: 10
218
218
  };
219
219
 
220
- var VictoryTooltip =
221
- /*#__PURE__*/
222
- function (_React$Component) {
220
+ var VictoryTooltip = /*#__PURE__*/function (_React$Component) {
223
221
  _inherits(VictoryTooltip, _React$Component);
224
222
 
225
223
  function VictoryTooltip(props) {
@@ -6227,7 +6225,7 @@ var getSingleValue = function (prop) {
6227
6225
  return Array.isArray(prop) ? prop[index] || prop[0] : prop;
6228
6226
  };
6229
6227
 
6230
- var useMultiLineBackgrounds = function (props) {
6228
+ var shouldUseMultilineBackgrounds = function (props) {
6231
6229
  var backgroundStyle = props.backgroundStyle,
6232
6230
  backgroundPadding = props.backgroundPadding;
6233
6231
  return Array.isArray(backgroundStyle) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(backgroundStyle) || Array.isArray(backgroundPadding) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(backgroundPadding);
@@ -6519,7 +6517,7 @@ var getChildBackgrounds = function (calculatedProps, tspanValues) {
6519
6517
  };
6520
6518
 
6521
6519
  var getBackgroundElement = function (calculatedProps, tspanValues) {
6522
- return useMultiLineBackgrounds(calculatedProps) ? getChildBackgrounds(calculatedProps, tspanValues) : getFullBackground(calculatedProps, tspanValues);
6520
+ return shouldUseMultilineBackgrounds(calculatedProps) ? getChildBackgrounds(calculatedProps, tspanValues) : getFullBackground(calculatedProps, tspanValues);
6523
6521
  };
6524
6522
 
6525
6523
  var calculateSpanDy = function (tspanValues, i, calculatedProps) {
@@ -6530,7 +6528,7 @@ var calculateSpanDy = function (tspanValues, i, calculatedProps) {
6530
6528
  var previousCaps = previous.fontSize - previous.capHeight;
6531
6529
  var currentCaps = current.fontSize - current.capHeight;
6532
6530
  var textHeight = previousHeight - previous.fontSize / 2 + current.fontSize / 2 - previousHeight / 2 + currentHeight / 2 - currentCaps / 2 + previousCaps / 2;
6533
- return useMultiLineBackgrounds(calculatedProps) ? textHeight + current.backgroundPadding.top + previous.backgroundPadding.bottom : textHeight;
6531
+ return shouldUseMultilineBackgrounds(calculatedProps) ? textHeight + current.backgroundPadding.top + previous.backgroundPadding.bottom : textHeight;
6534
6532
  };
6535
6533
 
6536
6534
  var getTSpanDy = function (tspanValues, calculatedProps, i) {
@@ -6819,9 +6817,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
6819
6817
 
6820
6818
 
6821
6819
 
6822
- var VictoryPortal =
6823
- /*#__PURE__*/
6824
- function (_React$Component) {
6820
+ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
6825
6821
  _inherits(VictoryPortal, _React$Component);
6826
6822
 
6827
6823
  function VictoryPortal() {
@@ -34,9 +34,7 @@ var fallbackProps = {
34
34
  pointerWidth: 10
35
35
  };
36
36
 
37
- var VictoryTooltip =
38
- /*#__PURE__*/
39
- function (_React$Component) {
37
+ var VictoryTooltip = /*#__PURE__*/function (_React$Component) {
40
38
  _inherits(VictoryTooltip, _React$Component);
41
39
 
42
40
  function VictoryTooltip(props) {
@@ -51,9 +51,7 @@ var fallbackProps = {
51
51
  pointerWidth: 10
52
52
  };
53
53
 
54
- var VictoryTooltip =
55
- /*#__PURE__*/
56
- function (_React$Component) {
54
+ var VictoryTooltip = /*#__PURE__*/function (_React$Component) {
57
55
  _inherits(VictoryTooltip, _React$Component);
58
56
 
59
57
  function VictoryTooltip(props) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-tooltip",
3
- "version": "35.11.2",
3
+ "version": "36.1.0",
4
4
  "description": "Tooltip 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": "^35.11.2"
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
  }