New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

victory-cursor-container

Package Overview
Dependencies
Maintainers
3
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

victory-cursor-container - npm Package Compare versions

Comparing version 34.3.12 to 35.0.0

8

es/victory-cursor-container.js

@@ -105,3 +105,4 @@ import _isObject from "lodash/isObject";

name = props.name,
horizontal = props.horizontal;
horizontal = props.horizontal,
theme = props.theme;
var cursorDimension = CursorHelpers.getDimension(props);

@@ -133,2 +134,7 @@ var cursorValue = this.getCursorPosition(props);

if (Helpers.isTooltip(cursorLabelComponent)) {
var tooltipTheme = theme && theme.tooltip || {};
labelProps = _defaults({}, labelProps, tooltipTheme);
}
newElements.push(React.cloneElement(cursorLabelComponent, _defaults({}, labelProps, {

@@ -135,0 +141,0 @@ text: Helpers.evaluateProp(cursorLabel, labelProps)

@@ -120,3 +120,4 @@ "use strict";

name = props.name,
horizontal = props.horizontal;
horizontal = props.horizontal,
theme = props.theme;

@@ -149,2 +150,8 @@ var cursorDimension = _cursorHelpers.default.getDimension(props);

});
if (_victoryCore.Helpers.isTooltip(cursorLabelComponent)) {
var tooltipTheme = theme && theme.tooltip || {};
labelProps = (0, _defaults2.default)({}, labelProps, tooltipTheme);
}
newElements.push(_react.default.cloneElement(cursorLabelComponent, (0, _defaults2.default)({}, labelProps, {

@@ -151,0 +158,0 @@ text: _victoryCore.Helpers.evaluateProp(cursorLabel, labelProps)

4

package.json
{
"name": "victory-cursor-container",
"version": "34.3.12",
"version": "35.0.0",
"description": "Interactive Cursor Component for Victory",

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

"prop-types": "^15.5.8",
"victory-core": "^34.3.12"
"victory-core": "^35.0.0"
},

@@ -27,0 +27,0 @@ "scripts": {

@@ -115,3 +115,4 @@ import PropTypes from "prop-types";

name,
horizontal
horizontal,
theme
} = props;

@@ -133,3 +134,3 @@ const cursorDimension = CursorHelpers.getDimension(props);

if (cursorLabel) {
const labelProps = defaults({ active: true }, cursorLabelComponent.props, {
let labelProps = defaults({ active: true }, cursorLabelComponent.props, {
x: cursorCoordinates.x + cursorLabelOffset.x,

@@ -141,2 +142,6 @@ y: cursorCoordinates.y + cursorLabelOffset.y,

});
if (Helpers.isTooltip(cursorLabelComponent)) {
const tooltipTheme = (theme && theme.tooltip) || {};
labelProps = defaults({}, labelProps, tooltipTheme);
}
newElements.push(

@@ -143,0 +148,0 @@ React.cloneElement(

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