Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

victory-brush-container

Package Overview
Dependencies
Maintainers
1
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

victory-brush-container - npm Package Compare versions

Comparing version 30.2.0 to 30.3.0

6

es/brush-helpers.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc