react-vis
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -236,2 +236,3 @@ 'use strict'; | ||
opacityRange: _theme.OPACITY_RANGE, | ||
_opacityValue: 1, | ||
colorRange: _theme.DISCRETE_COLOR_RANGE, | ||
@@ -298,16 +299,2 @@ colorType: 'category' | ||
/** | ||
* Get the attribute value if it is available. | ||
* @param {string} attr Attribute name. | ||
* @returns {*} Attribute value if available, fallback value or undefined | ||
* otherwise. | ||
* @protected | ||
*/ | ||
}, { | ||
key: '_getAttributeValue', | ||
value: function _getAttributeValue(attr) { | ||
return (0, _scalesUtils.getAttributeValue)(this.state.scaleProps, attr); | ||
} | ||
/** | ||
* Update the radial chart. Assign new styles and positions to the sections. | ||
@@ -336,3 +323,3 @@ * @private | ||
var sections = _d3.default.select(container).selectAll('path').data(pie(data)).on('click', this._sectionClick).on('mouseover', this._sectionMouseOver).on('mouseout', this._sectionMouseOut); | ||
this._applyTransition(sections).attr('d', arc).style('opacity', this._getAttributeValue('opacity')).style('fill', this._getAttributeFunctor('fill') || this._getAttributeFunctor('color')).style('stroke', this._getAttributeFunctor('stroke')); | ||
this._applyTransition(sections).attr('d', arc).style('opacity', this._getAttributeFunctor('opacity')).style('fill', this._getAttributeFunctor('fill') || this._getAttributeFunctor('color')).style('stroke', this._getAttributeFunctor('stroke')); | ||
} | ||
@@ -339,0 +326,0 @@ }, { |
{ | ||
"name": "react-vis", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "author": "Anton Bulyenov <antonb@uber.com>", |
@@ -1,6 +0,6 @@ | ||
# react-vis ![Build Status](https://travis-ci.org/uber-common/react-vis.svg?branch=master) | ||
# react-vis ![Build Status](https://travis-ci.org/uber/react-vis.svg?branch=master) | ||
![Demo of XYPlot](docs/assets/react-vis.gif?raw=true) | ||
See the live demo at http://uber-common.github.io/react-vis/ | ||
See the live demo at http://uber.github.io/react-vis | ||
@@ -85,2 +85,8 @@ ## Overview | ||
### 0.3.2 | ||
* `colorRange`, `colorDomain`, `colorType`, `opacityRange`, `opacityDomain` and `opacityType` properties are now supported for the Treemap scales (more info about scales is [here](docs/scales-and-data.md)). | ||
* Basic mouse interactions for arcs were added to `RadialChart`: now `onSectionClick`, `onSectionMouseOver` and `onSectionMouseOut` are supported. | ||
* Several children-related bugs are fixed (see [#54](https://github.com/uber-common/react-vis/issues/54) and [#47](https://github.com/uber-common/react-vis/issues/47)). | ||
### 0.3.1 | ||
@@ -87,0 +93,0 @@ |
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
379291
114
4626