Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/react-paper/react-paper-bindings

Paper.js bindings for React
https://github.com/react-paper/react-paper-bindings

canvas paperjs react reactfiber reconciler

Last synced: 5 days ago
JSON representation

Paper.js bindings for React

Awesome Lists containing this project

README

        

# Paper.js bindings for React Fiber

## Demo

http://react-paper.github.io/react-paper-bindings/

## Development

Start watching `src` with babel
```
cd react-paper-bindings
npm start
```

Link the library to the demo
```
# npm link the library
cd react-paper-bindings
npm link

cd demo
npm link react-paper-bindings
```

Start demo with `create-react-app`
```
cd demo
npm start
```

If someone knows a better way, please let me know ;)

## Similar projects

- [react-paperjs](https://github.com/psychobolt/react-paperjs)

## Example

```jsx
import React, { Component } from 'react'

import {
View,
Layer,
Group,
Path,
Circle,
Ellipse,
Rectangle,
PointText,
Tool,
} from 'react-paper-bindings'

const ReactLogo = ({ rotation, x, y }) => {
return (






)
}

const Paper = ({ activeTool, circles, rectangles, width, height }) => {
return (


{circles.map(circle => )}


{rectangles.map(rectangle => )}











)
}
```