victory-scatter
Advanced tools
Comparing version 35.8.1 to 35.9.0
@@ -117,3 +117,4 @@ import _isNil from "lodash/isNil"; | ||
labels = _props.labels, | ||
horizontal = _props.horizontal; | ||
horizontal = _props.horizontal, | ||
disableInlineStyles = _props.disableInlineStyles; | ||
var initialChildProps = { | ||
@@ -155,3 +156,4 @@ parent: { | ||
symbol: getSymbol(datum, props), | ||
style: style.data | ||
style: disableInlineStyles ? {} : style.data, | ||
disableInlineStyles: disableInlineStyles | ||
}; | ||
@@ -158,0 +160,0 @@ childProps[eventKey] = { |
@@ -19,3 +19,6 @@ import * as React from "react"; | ||
bubbleProperty?: string; | ||
events?: EventPropTypeInterface<VictoryScatterTTargetType, StringOrNumberOrCallback>[]; | ||
events?: EventPropTypeInterface< | ||
VictoryScatterTTargetType, | ||
StringOrNumberOrCallback | ||
>[]; | ||
eventKey?: StringOrNumberOrCallback; | ||
@@ -22,0 +25,0 @@ maxBubbleSize?: number; |
@@ -139,3 +139,4 @@ "use strict"; | ||
labels = _props.labels, | ||
horizontal = _props.horizontal; | ||
horizontal = _props.horizontal, | ||
disableInlineStyles = _props.disableInlineStyles; | ||
var initialChildProps = { | ||
@@ -177,3 +178,4 @@ parent: { | ||
symbol: getSymbol(datum, props), | ||
style: style.data | ||
style: disableInlineStyles ? {} : style.data, | ||
disableInlineStyles: disableInlineStyles | ||
}; | ||
@@ -180,0 +182,0 @@ childProps[eventKey] = { |
@@ -19,3 +19,6 @@ import * as React from "react"; | ||
bubbleProperty?: string; | ||
events?: EventPropTypeInterface<VictoryScatterTTargetType, StringOrNumberOrCallback>[]; | ||
events?: EventPropTypeInterface< | ||
VictoryScatterTTargetType, | ||
StringOrNumberOrCallback | ||
>[]; | ||
eventKey?: StringOrNumberOrCallback; | ||
@@ -22,0 +25,0 @@ maxBubbleSize?: number; |
{ | ||
"name": "victory-scatter", | ||
"version": "35.8.1", | ||
"version": "35.9.0", | ||
"description": "Scatter Component for Victory", | ||
@@ -24,3 +24,3 @@ "keywords": [ | ||
"prop-types": "^15.5.8", | ||
"victory-core": "^35.8.1" | ||
"victory-core": "^35.9.0" | ||
}, | ||
@@ -27,0 +27,0 @@ "scripts": { |
@@ -36,3 +36,5 @@ import { assign, values, isNil } from "lodash"; | ||
if (datum.size) { | ||
return typeof datum.size === "function" ? datum.size : Math.max(datum.size, 1); | ||
return typeof datum.size === "function" | ||
? datum.size | ||
: Math.max(datum.size, 1); | ||
} else if (typeof props.size === "function") { | ||
@@ -66,3 +68,5 @@ return size; | ||
}; | ||
const origin = props.polar ? props.origin || Helpers.getPolarOrigin(props) : undefined; | ||
const origin = props.polar | ||
? props.origin || Helpers.getPolarOrigin(props) | ||
: undefined; | ||
const z = props.bubbleProperty || "z"; | ||
@@ -95,3 +99,4 @@ | ||
labels, | ||
horizontal | ||
horizontal, | ||
disableInlineStyles | ||
} = props; | ||
@@ -131,3 +136,4 @@ const initialChildProps = { | ||
symbol: getSymbol(datum, props), | ||
style: style.data | ||
style: disableInlineStyles ? {} : style.data, | ||
disableInlineStyles | ||
}; | ||
@@ -137,3 +143,6 @@ | ||
const text = LabelHelpers.getText(props, datum, index); | ||
if ((text !== undefined && text !== null) || (labels && (events || sharedEvents))) { | ||
if ( | ||
(text !== undefined && text !== null) || | ||
(labels && (events || sharedEvents)) | ||
) { | ||
childProps[eventKey].labels = LabelHelpers.getProps(props, index); | ||
@@ -140,0 +149,0 @@ } |
@@ -19,3 +19,6 @@ import * as React from "react"; | ||
bubbleProperty?: string; | ||
events?: EventPropTypeInterface<VictoryScatterTTargetType, StringOrNumberOrCallback>[]; | ||
events?: EventPropTypeInterface< | ||
VictoryScatterTTargetType, | ||
StringOrNumberOrCallback | ||
>[]; | ||
eventKey?: StringOrNumberOrCallback; | ||
@@ -22,0 +25,0 @@ maxBubbleSize?: number; |
@@ -101,3 +101,5 @@ import PropTypes from "prop-types"; | ||
const children = this.renderData(props); | ||
return props.standalone ? this.renderContainer(props.containerComponent, children) : children; | ||
return props.standalone | ||
? this.renderContainer(props.containerComponent, children) | ||
: children; | ||
} | ||
@@ -104,0 +106,0 @@ } |
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
1281479
22075
Updatedvictory-core@^35.9.0