victory-tooltip 37.3.0 → 37.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/CHANGELOG.md +4 -0
- package/dist/victory-tooltip.js +0 -4
- package/es/victory-tooltip.js +0 -2
- package/lib/victory-tooltip.js +0 -2
- package/package.json +6 -10
- package/src/flyout.tsx +4 -4
- package/src/victory-tooltip.tsx +0 -1
package/CHANGELOG.md
CHANGED
package/dist/victory-tooltip.js
CHANGED
|
@@ -490,8 +490,6 @@ class VictoryTooltip extends (react__WEBPACK_IMPORTED_MODULE_4___default().Compo
|
|
|
490
490
|
y: Math.round(y + adjustments.y[0] - adjustments.y[1])
|
|
491
491
|
};
|
|
492
492
|
}
|
|
493
|
-
|
|
494
|
-
// eslint-disable-next-line complexity
|
|
495
493
|
getFlyoutCenter(props, dimensions) {
|
|
496
494
|
const {
|
|
497
495
|
x,
|
|
@@ -6288,7 +6286,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6288
6286
|
|
|
6289
6287
|
|
|
6290
6288
|
|
|
6291
|
-
/* eslint-disable no-use-before-define */
|
|
6292
6289
|
|
|
6293
6290
|
// Private Functions
|
|
6294
6291
|
|
|
@@ -6705,7 +6702,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6705
6702
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
6706
6703
|
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
6707
6704
|
|
|
6708
|
-
/* eslint-disable no-use-before-define */
|
|
6709
6705
|
|
|
6710
6706
|
// Private Functions
|
|
6711
6707
|
|
package/es/victory-tooltip.js
CHANGED
package/lib/victory-tooltip.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "victory-tooltip",
|
|
3
|
-
"version": "37.3.
|
|
3
|
+
"version": "37.3.2",
|
|
4
4
|
"description": "Tooltip Component for Victory",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data visualization",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"lodash": "^4.17.19",
|
|
24
|
-
"victory-core": "37.3.
|
|
24
|
+
"victory-core": "37.3.2"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": ">=16.6.0"
|
|
@@ -207,11 +207,9 @@
|
|
|
207
207
|
]
|
|
208
208
|
},
|
|
209
209
|
"lint": {
|
|
210
|
-
"command": "
|
|
210
|
+
"command": "eslint src",
|
|
211
211
|
"files": [
|
|
212
|
-
"src/**"
|
|
213
|
-
"../../.eslintignore",
|
|
214
|
-
"../../.eslintrc.js"
|
|
212
|
+
"src/**"
|
|
215
213
|
],
|
|
216
214
|
"output": [],
|
|
217
215
|
"dependencies": [
|
|
@@ -224,11 +222,9 @@
|
|
|
224
222
|
]
|
|
225
223
|
},
|
|
226
224
|
"lint:fix": {
|
|
227
|
-
"command": "
|
|
225
|
+
"command": "eslint --fix src",
|
|
228
226
|
"files": [
|
|
229
|
-
"src/**"
|
|
230
|
-
"../../.eslintignore",
|
|
231
|
-
"../../.eslintrc.js"
|
|
227
|
+
"src/**"
|
|
232
228
|
],
|
|
233
229
|
"output": [],
|
|
234
230
|
"dependencies": [
|
package/src/flyout.tsx
CHANGED
|
@@ -73,8 +73,8 @@ const getVerticalPath = (props: FlyoutPathProps) => {
|
|
|
73
73
|
const arc = `${cornerRadius} ${cornerRadius} ${direction}`;
|
|
74
74
|
return `M ${centerX - pointerWidth / 2}, ${pointerEdge}
|
|
75
75
|
L ${pointerLength ? x : centerX + pointerWidth / 2}, ${
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
pointerLength ? y : pointerEdge
|
|
77
|
+
}
|
|
78
78
|
L ${centerX + pointerWidth / 2}, ${pointerEdge}
|
|
79
79
|
L ${rightEdge - cornerRadius}, ${pointerEdge}
|
|
80
80
|
A ${arc} ${rightEdge}, ${pointerEdge - sign * cornerRadius}
|
|
@@ -104,8 +104,8 @@ const getHorizontalPath = (props: FlyoutPathProps) => {
|
|
|
104
104
|
const arc = `${cornerRadius} ${cornerRadius} ${direction}`;
|
|
105
105
|
return `M ${pointerEdge}, ${centerY - pointerWidth / 2}
|
|
106
106
|
L ${pointerLength ? x : pointerEdge}, ${
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
pointerLength ? y : centerY + pointerWidth / 2
|
|
108
|
+
}
|
|
109
109
|
L ${pointerEdge}, ${centerY + pointerWidth / 2}
|
|
110
110
|
L ${pointerEdge}, ${bottomEdge - cornerRadius}
|
|
111
111
|
A ${arc} ${pointerEdge + sign * cornerRadius}, ${bottomEdge}
|