victory-cursor-container
Advanced tools
Comparing version 34.3.12 to 35.0.0
@@ -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) |
{ | ||
"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
1235820
7496
+ Addedreact@17.0.2(transitive)
+ Addedvictory-core@35.11.4(transitive)
- Removedvictory-core@34.3.12(transitive)
Updatedvictory-core@^35.0.0