victory-brush-container
Advanced tools
Comparing version 30.2.0 to 30.3.0
@@ -401,5 +401,7 @@ import _mapValues from "lodash/mapValues"; | ||
allowResize = targetProps.allowResize, | ||
defaultBrushArea = targetProps.defaultBrushArea; // if the mouse hasn't moved since a mouseDown event, select the whole domain region | ||
defaultBrushArea = targetProps.defaultBrushArea; // if the mouse hasn't moved since a mouseDown event, select the default brush area | ||
if (allowResize && x1 === x2 || y1 === y2) { | ||
var defaultBrushHasArea = defaultBrushArea !== undefined && defaultBrushArea !== "none"; | ||
if ((allowResize || defaultBrushHasArea) && (x1 === x2 || y1 === y2)) { | ||
var cachedDomain = targetProps.cachedCurrentDomain || targetProps.currentDomain; | ||
@@ -406,0 +408,0 @@ var currentDomain = this.getDefaultBrushArea(defaultBrushArea, domain, cachedDomain); |
@@ -419,5 +419,7 @@ "use strict"; | ||
allowResize = targetProps.allowResize, | ||
defaultBrushArea = targetProps.defaultBrushArea; // if the mouse hasn't moved since a mouseDown event, select the whole domain region | ||
defaultBrushArea = targetProps.defaultBrushArea; // if the mouse hasn't moved since a mouseDown event, select the default brush area | ||
if (allowResize && x1 === x2 || y1 === y2) { | ||
var defaultBrushHasArea = defaultBrushArea !== undefined && defaultBrushArea !== "none"; | ||
if ((allowResize || defaultBrushHasArea) && (x1 === x2 || y1 === y2)) { | ||
var cachedDomain = targetProps.cachedCurrentDomain || targetProps.currentDomain; | ||
@@ -424,0 +426,0 @@ var currentDomain = this.getDefaultBrushArea(defaultBrushArea, domain, cachedDomain); |
{ | ||
"name": "victory-brush-container", | ||
"version": "30.2.0", | ||
"version": "30.3.0", | ||
"description": "Interactive Brush Component for Victory", | ||
@@ -24,3 +24,3 @@ "keywords": [ | ||
"prop-types": "^15.5.8", | ||
"victory-core": "^30.2.0" | ||
"victory-core": "^30.3.0" | ||
}, | ||
@@ -27,0 +27,0 @@ "scripts": { |
@@ -249,4 +249,5 @@ import { Selection } from "victory-core"; | ||
} = targetProps; | ||
// if the mouse hasn't moved since a mouseDown event, select the whole domain region | ||
if (allowResize && x1 === x2 || y1 === y2) { | ||
// if the mouse hasn't moved since a mouseDown event, select the default brush area | ||
const defaultBrushHasArea = defaultBrushArea !== undefined && defaultBrushArea !== "none"; | ||
if ((allowResize || defaultBrushHasArea) && (x1 === x2 || y1 === y2)) { | ||
const cachedDomain = targetProps.cachedCurrentDomain || targetProps.currentDomain; | ||
@@ -253,0 +254,0 @@ const currentDomain = this.getDefaultBrushArea(defaultBrushArea, domain, cachedDomain); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1213823
22388
104087
2
Updatedvictory-core@^30.3.0