victory-tooltip 37.3.1 → 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 CHANGED
@@ -1,5 +1,7 @@
1
1
  # victory-tooltip
2
2
 
3
+ ## 37.3.2
4
+
3
5
  ## 37.3.1
4
6
 
5
7
  ## 37.3.0
@@ -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
 
@@ -296,8 +296,6 @@ export class VictoryTooltip extends React.Component {
296
296
  y: Math.round(y + adjustments.y[0] - adjustments.y[1])
297
297
  };
298
298
  }
299
-
300
- // eslint-disable-next-line complexity
301
299
  getFlyoutCenter(props, dimensions) {
302
300
  const {
303
301
  x,
@@ -303,8 +303,6 @@ class VictoryTooltip extends _react.default.Component {
303
303
  y: Math.round(y + adjustments.y[0] - adjustments.y[1])
304
304
  };
305
305
  }
306
-
307
- // eslint-disable-next-line complexity
308
306
  getFlyoutCenter(props, dimensions) {
309
307
  const {
310
308
  x,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-tooltip",
3
- "version": "37.3.1",
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.1"
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": "nps lint:pkg",
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": "pnpm run lint || nps lint:pkg:fix",
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
- pointerLength ? y : pointerEdge
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
- pointerLength ? y : centerY + pointerWidth / 2
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}
@@ -389,7 +389,6 @@ export class VictoryTooltip extends React.Component<VictoryTooltipProps> {
389
389
  };
390
390
  }
391
391
 
392
- // eslint-disable-next-line complexity
393
392
  getFlyoutCenter(props, dimensions) {
394
393
  const {
395
394
  x,