Socket
Socket
Sign inDemoInstall

victory-brush-line

Package Overview
Dependencies
31
Maintainers
26
Versions
137
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 36.5.0 to 36.5.1

2

es/index.d.ts

@@ -27,3 +27,3 @@ import * as React from "react";

domain: DomainTuple,
props?: VictoryBrushLineProps
props?: VictoryBrushLineProps,
) => void;

@@ -30,0 +30,0 @@ style?: VictoryStyleObject;

@@ -1,1 +0,2 @@

export { default as VictoryBrushLine } from "./victory-brush-line";
export { default as VictoryBrushLine } from "./victory-brush-line";
//# sourceMappingURL=index.js.map

@@ -692,2 +692,3 @@ import _pick from "lodash/pick";

export { VictoryBrushLine as default };
export { VictoryBrushLine as default };
//# sourceMappingURL=victory-brush-line.js.map

@@ -27,3 +27,3 @@ import * as React from "react";

domain: DomainTuple,
props?: VictoryBrushLineProps
props?: VictoryBrushLineProps,
) => void;

@@ -30,0 +30,0 @@ style?: VictoryStyleObject;

@@ -15,2 +15,3 @@ "use strict";

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
//# sourceMappingURL=index.js.map

@@ -710,2 +710,3 @@ "use strict";

}];
};
};
//# sourceMappingURL=victory-brush-line.js.map
{
"name": "victory-brush-line",
"version": "36.5.0",
"version": "36.5.1",
"description": "Interactive Brush Line Component for Victory",

@@ -25,3 +25,3 @@ "keywords": [

"react-fast-compare": "^3.2.0",
"victory-core": "^36.5.0"
"victory-core": "^36.5.1"
},

@@ -35,3 +35,3 @@ "peerDependencies": {

"sideEffects": false,
"gitHead": "7cecba921f751c3decc8215f7e866f51d11203c1"
"gitHead": "fbe60407533cd7a6da4f8155d2ef8e189583c5a2"
}

@@ -27,3 +27,3 @@ import * as React from "react";

domain: DomainTuple,
props?: VictoryBrushLineProps
props?: VictoryBrushLineProps,
) => void;

@@ -30,0 +30,0 @@ style?: VictoryStyleObject;

@@ -10,3 +10,3 @@ import React from "react";

Domain,
Box
Box,
} from "victory-core";

@@ -88,3 +88,3 @@ import { assign, defaults, isFunction, pick } from "lodash";

min: dimension === "x" ? Math.min(...range) : Math.max(...range),
max: dimension === "x" ? Math.max(...range) : Math.min(...range)
max: dimension === "x" ? Math.max(...range) : Math.min(...range),
};

@@ -125,3 +125,3 @@ return [base[type] - width, base[type] + width];

fill: "black",
opacity: ({ active }) => (active ? 0.2 : 0.1) // eslint-disable-line no-magic-numbers
opacity: ({ active }) => (active ? 0.2 : 0.1), // eslint-disable-line no-magic-numbers
},

@@ -132,3 +132,3 @@ brushStyle: {

fill: "black",
opacity: ({ active }) => (active ? 0.4 : 0.3) // eslint-disable-line no-magic-numbers
opacity: ({ active }) => (active ? 0.4 : 0.3), // eslint-disable-line no-magic-numbers
},

@@ -138,4 +138,4 @@ handleStyle: {

stroke: "none",
fill: "none"
}
fill: "none",
},
};

@@ -171,3 +171,3 @@

type: PropTypes.string,
width: PropTypes.number
width: PropTypes.number,
};

@@ -185,3 +185,3 @@

lineComponent: <LineSegment />,
width: 10
width: 10,
};

@@ -204,3 +204,3 @@

evt,
parentSVG
parentSVG,
)[dimension];

@@ -218,3 +218,3 @@ const fullDomain = getFullDomain(targetProps);

minHandle: activeHandle === "min" || activeHandle === "both",
maxHandle: activeHandle === "min" || activeHandle === "both"
maxHandle: activeHandle === "min" || activeHandle === "both",
};

@@ -226,5 +226,5 @@ return [

brushDomain: targetProps.brushDomain,
parentSVG
})
}
parentSVG,
}),
},
];

@@ -239,3 +239,3 @@ },

activeBrushes,
brushDomain
brushDomain,
} = targetProps;

@@ -255,3 +255,3 @@ const dimension = getDimension(targetProps);

evt,
parentSVG
parentSVG,
)[dimension];

@@ -272,6 +272,6 @@ const range = toRange(targetProps, currentDomain);

startPosition: position,
activeBrushes
activeBrushes,
};
}
}
},
},
];

@@ -291,5 +291,5 @@ } else if (

activeBrushes,
parentSVG
})
}
parentSVG,
}),
},
];

@@ -307,5 +307,5 @@ } else {

activeBrushes,
parentSVG
})
}
parentSVG,
}),
},
]

@@ -323,3 +323,3 @@ : [];

onBrushDomainChange,
brushDomain
brushDomain,
} = targetProps;

@@ -336,3 +336,3 @@ const dimension = getDimension(targetProps);

evt,
parentSVG
parentSVG,
)[dimension];

@@ -345,3 +345,3 @@ const fullDomain = getFullDomain(targetProps);

position,
initialRange
initialRange,
);

@@ -354,3 +354,3 @@ const activeBrushes = {

minHandle: activeHandle === "min" || activeHandle === "both",
maxHandle: activeHandle === "max" || activeHandle === "both"
maxHandle: activeHandle === "max" || activeHandle === "both",
};

@@ -363,5 +363,5 @@ if (!targetProps.isPanning && !targetProps.isSelecting) {

brushDomain: targetProps.brushDomain,
parentSVG
})
}
parentSVG,
}),
},
];

@@ -383,3 +383,3 @@ }

activeBrushes: { brush: true },
parentSVG
parentSVG,
};

@@ -390,3 +390,3 @@

currentDomain,
defaults({}, mutatedProps, targetProps)
defaults({}, mutatedProps, targetProps),
);

@@ -396,4 +396,4 @@ }

{
mutation: () => mutatedProps
}
mutation: () => mutatedProps,
},
];

@@ -413,3 +413,3 @@ } else if (allowResize && isSelecting) {

targetProps.startPosition,
position
position,
]);

@@ -438,4 +438,4 @@ } else {

minHandle: activeHandle === "min",
maxHandle: activeHandle === "max"
}
maxHandle: activeHandle === "max",
},
};

@@ -445,3 +445,3 @@ if (isFunction(onBrushDomainChange)) {

currentDomain,
defaults({}, mutatedProps, targetProps)
defaults({}, mutatedProps, targetProps),
);

@@ -451,4 +451,4 @@ }

{
mutation: () => mutatedProps
}
mutation: () => mutatedProps,
},
];

@@ -463,3 +463,3 @@ }

allowResize,
activeBrushes
activeBrushes,
} = targetProps;

@@ -473,3 +473,3 @@ // if the mouse hasn't moved since a mouseDown event, select the whole domain region

brushDomain,
activeBrushes
activeBrushes,
};

@@ -479,3 +479,3 @@ if (allowResize && isFunction(onBrushDomainChange)) {

brushDomain,
defaults({}, mutatedProps, targetProps)
defaults({}, mutatedProps, targetProps),
);

@@ -485,4 +485,4 @@ }

{
mutation: () => mutatedProps
}
mutation: () => mutatedProps,
},
];

@@ -500,9 +500,9 @@ },

brushDomain,
activeBrushes: {}
})
}
activeBrushes: {},
}),
},
];
}
}
}
},
},
},
];

@@ -522,3 +522,3 @@ };

x1: Math.min(...range),
x2: Math.max(...range)
x2: Math.max(...range),
}

@@ -529,3 +529,3 @@ : {

y1: Math.min(...range),
y2: Math.max(...range)
y2: Math.max(...range),
};

@@ -535,3 +535,3 @@ const { x1, x2, y1, y2 } = coordinates;

x: dimension === "x" ? 0 : brushWidth / 2,
y: dimension === "y" ? 0 : brushWidth / 2
y: dimension === "y" ? 0 : brushWidth / 2,
};

@@ -556,7 +556,7 @@

min: dimension === "x" ? Math.min(...range) - handleWidth / 2 : defaultX,
max: dimension === "x" ? Math.max(...range) - handleWidth / 2 : defaultX
max: dimension === "x" ? Math.max(...range) - handleWidth / 2 : defaultX,
};
const y = {
min: dimension === "y" ? Math.max(...range) - handleWidth / 2 : defaultY,
max: dimension === "y" ? Math.min(...range) - handleWidth / 2 : defaultY
max: dimension === "y" ? Math.min(...range) - handleWidth / 2 : defaultY,
};

@@ -568,3 +568,3 @@ const width = dimension === "x" ? handleWidth : brushWidth;

min: { x: x.min, y: y.min, width, height },
max: { x: x.max, y: y.max, width, height }
max: { x: x.max, y: y.max, width, height },
};

@@ -591,3 +591,3 @@ }

datum = {},
activeBrushes = {}
activeBrushes = {},
} = props;

@@ -601,7 +601,7 @@ if (!brushDomain) {

{ handleValue: Collection.getMinValue(brushDomain) },
datum
datum,
);
const maxDatum = assign(
{ handleValue: Collection.getMaxValue(brushDomain) },
datum
datum,
);

@@ -613,6 +613,6 @@ const minHandleProps = assign(

datum: minDatum,
active: activeBrushes.minHandle
})
active: activeBrushes.minHandle,
}),
},
handleDimensions.min
handleDimensions.min,
);

@@ -624,10 +624,10 @@ const maxHandleProps = assign(

datum: maxDatum,
active: activeBrushes.maxHandle
})
active: activeBrushes.maxHandle,
}),
},
handleDimensions.max
handleDimensions.max,
);
return [
React.cloneElement(handleComponent, minHandleProps),
React.cloneElement(handleComponent, maxHandleProps)
React.cloneElement(handleComponent, maxHandleProps),
];

@@ -642,3 +642,3 @@ }

datum = {},
brushDomain
brushDomain,
} = props;

@@ -653,3 +653,3 @@ if (!brushDomain) {

datum,
active: activeBrushes.brush
active: activeBrushes.brush,
});

@@ -665,3 +665,3 @@ const brushProps = assign({ style }, rectDimensions);

activeBrushes = {},
datum = {}
datum = {},
} = props;

@@ -673,3 +673,3 @@ const brushAreaWidth = props.brushAreaWidth || props.width;

brushAreaWidth,
getFullDomain(props)
getFullDomain(props),
);

@@ -679,7 +679,7 @@ const baseStyle = assign(

fallbackProps.brushAreaStyle,
brushAreaStyle
brushAreaStyle,
);
const style = Helpers.evaluateStyle(baseStyle, {
datum,
active: activeBrushes.brushArea
active: activeBrushes.brushArea,
});

@@ -699,3 +699,3 @@ const brushAreaProps = assign({ style }, rectDimensions);

"active",
"style"
"style",
]);

@@ -702,0 +702,0 @@ return React.cloneElement(props.lineComponent, filteredProps);

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc