react-canvas
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -23,2 +23,4 @@ 'use strict'; | ||
propTypes: { | ||
className: React.PropTypes.string, | ||
id: React.PropTypes.string, | ||
top: React.PropTypes.number.isRequired, | ||
@@ -103,2 +105,4 @@ left: React.PropTypes.number.isRequired, | ||
ref: 'canvas', | ||
className: this.props.className, | ||
id: this.props.id, | ||
width: width, | ||
@@ -105,0 +109,0 @@ height: height, |
{ | ||
"name": "react-canvas", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "High performance <canvas> rendering for React components", | ||
@@ -5,0 +5,0 @@ "main": "lib/ReactCanvas.js", |
@@ -17,2 +17,8 @@ # react-canvas | ||
## Installation | ||
React Canvas is available through npm: | ||
```npm install react-canvas``` | ||
## React Canvas Components | ||
@@ -44,3 +50,3 @@ | ||
**Gradient** can be used to set the background of a group or surface. | ||
**Gradient** can be used to set the background of a group or surface. | ||
```javascript | ||
@@ -51,3 +57,3 @@ render() { | ||
<Group style={this.getStyle()}> | ||
<Gradient style={this.getGradientStyle()} | ||
<Gradient style={this.getGradientStyle()} | ||
colorStops={this.getGradientColors()} /> | ||
@@ -63,3 +69,3 @@ </Group> | ||
} | ||
``` | ||
``` | ||
@@ -66,0 +72,0 @@ ### <ListView> |
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
140682
3713
232