react-liquid-gauge
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -198,3 +198,6 @@ 'use strict'; | ||
var style = this.props.style; | ||
var _props = this.props, | ||
_props$id = _props.id, | ||
id = _props$id === undefined ? (0, _hashid.generate)() : _props$id, | ||
style = _props.style; | ||
@@ -252,3 +255,3 @@ var radius = Math.min(this.props.height / 2, this.props.width / 2); | ||
'clipPath', | ||
{ id: 'clipWave-' + this.props.id }, | ||
{ id: 'clipWave-' + id }, | ||
_react2.default.createElement('path', { | ||
@@ -284,3 +287,3 @@ ref: function ref(c) { | ||
'g', | ||
{ clipPath: 'url(#clipWave-' + this.props.id + ')' }, | ||
{ clipPath: 'url(#clipWave-' + id + ')' }, | ||
_react2.default.createElement('circle', _extends({ | ||
@@ -290,3 +293,3 @@ className: 'wave', | ||
}, this.props.waveStyle, { | ||
fill: this.props.gradient ? 'url(#gradient-' + this.props.id + ')' : this.props.waveStyle.fill | ||
fill: this.props.gradient ? 'url(#gradient-' + id + ')' : this.props.waveStyle.fill | ||
})), | ||
@@ -331,3 +334,3 @@ _react2.default.createElement( | ||
_Gradient2.default, | ||
{ id: 'gradient-' + this.props.id }, | ||
{ id: 'gradient-' + id }, | ||
gradientStops.map(function (stop, index) { | ||
@@ -414,3 +417,2 @@ if (!_react2.default.isValidElement(stop)) { | ||
}, _class.defaultProps = { | ||
id: (0, _hashid.generate)(), | ||
width: 400, | ||
@@ -417,0 +419,0 @@ height: 400, |
{ | ||
"name": "react-liquid-gauge", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "React Liquid Gauge component", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
37039
484