Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-canvas

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-canvas - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

4

lib/Surface.js

@@ -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,

2

package.json
{
"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 @@ ### &lt;ListView&gt;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc