react-vis
Advanced tools
Comparing version 0.8.0 to 0.8.1
@@ -111,3 +111,4 @@ 'use strict'; | ||
var fill = this._getAttributeValue('fill') || this._getAttributeValue('color'); | ||
var opacity = this._getAttributeValue('opacity') || _theme.DEFAULT_OPACITY; | ||
var newOpacity = this._getAttributeValue('opacity'); | ||
var opacity = Number.isFinite(newOpacity) ? newOpacity : _theme.DEFAULT_OPACITY; | ||
var d = this._renderArea(data, x, y0, y, curve); | ||
@@ -114,0 +115,0 @@ return _react2.default.createElement('path', { |
@@ -130,3 +130,4 @@ 'use strict'; | ||
var stroke = this._getAttributeValue('stroke') || this._getAttributeValue('color'); | ||
var opacity = this._getAttributeValue('opacity') || _theme.DEFAULT_OPACITY; | ||
var newOpacity = this._getAttributeValue('opacity'); | ||
var opacity = Number.isFinite(newOpacity) ? newOpacity : _theme.DEFAULT_OPACITY; | ||
var d = this._renderLine(data, x, y, curve); | ||
@@ -133,0 +134,0 @@ |
{ | ||
"name": "react-vis", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "author": "Anton Bulyenov <antonb@uber.com>", |
@@ -23,3 +23,3 @@ # react-vis ![Build Status](https://travis-ci.org/uber/react-vis.svg?branch=master) | ||
```shell | ||
npm install react-vis | ||
npm install react-vis --save | ||
``` | ||
@@ -87,2 +87,14 @@ | ||
### v0.8.0 | ||
This release adds two new props (and set of illustrative examples) to Hint component: ```align``` and ```getAlignStyle```. ```align``` (replacing ```orientation``` prop) is an object with two props — ```horizontal``` and ```vertical``` — and set of values that support existing and new hint placement: | ||
a) around a data point in one of four quadrants (imagine the point bisected by two axes — vertical, horizontal — creating 4 quadrants around a data point). | ||
b) **New**: pin to an edge of chart/plot area and position along that edge using data point's other dimension value. | ||
Developers wanting total control can use the ```getAlignStyle(align, x, y)``` function that returns an inline style object with one or more of the following props (```left, right, top, bottom```). | ||
The ```orientation``` prop is supported for backwards compatibility but will be deprecated in future release. | ||
See the following figure explaining the two props (```horizontal, vertical```) for the ```align``` prop object. | ||
![react-vis-hint](https://cloud.githubusercontent.com/assets/2983206/21572148/f1529198-ce8a-11e6-8dc3-ef5f320ab9a1.png) | ||
### v0.7.0 | ||
@@ -89,0 +101,0 @@ This release adds a new series: rectSeries. Rect series operates similarly to barSeries: they consist of a series of rectangles of various size that be stacked, but with one key difference. Where the bar series operates on the assumption of an ordinal axis, rect series operates on an assumption of a continuous one. This allows users to specify the positions of the edges of their rectangles! |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
181
494683
65
6303