|
1 |
| -import { Selection } from "victory-core"; |
2 |
| -import { throttle, isFunction, defaults, mapValues } from "lodash"; |
| 1 | +import { Helpers as CoreHelpers, Selection } from "victory-core"; |
| 2 | +import { throttle, defaults, mapValues } from "lodash"; |
3 | 3 | import isEqual from "react-fast-compare";
|
4 | 4 |
|
5 | 5 | const Helpers = {
|
@@ -370,7 +370,7 @@ const Helpers = {
|
370 | 370 | ...constrainedBox,
|
371 | 371 | };
|
372 | 372 |
|
373 |
| - if (isFunction(onBrushDomainChange)) { |
| 373 | + if (CoreHelpers.isFunction(onBrushDomainChange)) { |
374 | 374 | onBrushDomainChange(
|
375 | 375 | currentDomain,
|
376 | 376 | defaults({}, mutatedProps, targetProps),
|
@@ -400,7 +400,7 @@ const Helpers = {
|
400 | 400 | });
|
401 | 401 |
|
402 | 402 | const mutatedProps = { x2, y2, currentDomain, parentSVG };
|
403 |
| - if (isFunction(onBrushDomainChange)) { |
| 403 | + if (CoreHelpers.isFunction(onBrushDomainChange)) { |
404 | 404 | onBrushDomainChange(
|
405 | 405 | currentDomain,
|
406 | 406 | defaults({}, mutatedProps, targetProps),
|
@@ -458,23 +458,23 @@ const Helpers = {
|
458 | 458 | evt,
|
459 | 459 | );
|
460 | 460 | mutatedProps.currentDomain = defaultDomain;
|
461 |
| - if (isFunction(onBrushDomainChange)) { |
| 461 | + if (CoreHelpers.isFunction(onBrushDomainChange)) { |
462 | 462 | onBrushDomainChange(
|
463 | 463 | defaultDomain,
|
464 | 464 | defaults({}, mutatedProps, targetProps),
|
465 | 465 | );
|
466 | 466 | }
|
467 |
| - if (isFunction(onBrushDomainChangeEnd)) { |
| 467 | + if (CoreHelpers.isFunction(onBrushDomainChangeEnd)) { |
468 | 468 | onBrushDomainChangeEnd(
|
469 | 469 | defaultDomain,
|
470 | 470 | defaults({}, mutatedProps, targetProps),
|
471 | 471 | );
|
472 | 472 | }
|
473 |
| - if (isFunction(onBrushCleared)) { |
| 473 | + if (CoreHelpers.isFunction(onBrushCleared)) { |
474 | 474 | onBrushCleared(defaultDomain, defaults({}, mutatedProps, targetProps));
|
475 | 475 | }
|
476 | 476 | } else if ((allowDrag && isPanning) || (allowResize && isSelecting)) {
|
477 |
| - if (isFunction(onBrushDomainChangeEnd)) { |
| 477 | + if (CoreHelpers.isFunction(onBrushDomainChangeEnd)) { |
478 | 478 | onBrushDomainChangeEnd(
|
479 | 479 | currentDomain,
|
480 | 480 | defaults({}, mutatedProps, targetProps),
|
|
0 commit comments