oura-node-editor
v0.2.1
Published
[![NPM](https://img.shields.io/npm/v/oura-node-editor.svg)](https://www.npmjs.com/package/oura-node-editor)
Downloads
48
Readme
oura-node-editor
A react component library that lets you create node based editors ! inspired by blender node editor.
Warning: Project in an experimental state, API may change a lot and npm repository is not up to date (so pull the lib and link it to your project if you wish test it!)
Example project that use the lib: https://github.com/ouranos588/oura-canvas-creator
current features:
- Nodes can be created easelly. A node consists of a name, x/y position, a width, a selected state and 0 one or many connectors
- A connector is a composed of two elements: pin layout (no-pins, left, rigth, left and right) and connector-content
- Library provides generic connector-content: none, string, number, button, select, check-box
- Nodes can be linked between each others using links
- User can create they own connector-content (like the canvas in the oura-canvas-creator example project)
- Node can be moved and their width can be resized
- The working sheet where nodes are displayed can be zoomed in and out and dragged
- One or many nodes and links can be selected
- It is possible to extend the existing theme or create your own
- Node rendering is virtualized (eg. node are not rendered if not displayed on screen), which improves general performances
Todo list:
- high: write a documentation of the lib
- high: add a storybook
- medium: update, extract or replace of react-zoom-pan-pinch library to get rid of warnings
- medium: check tests and add some
- low: enhance theme
Install
npm install oura-node-editor
License MIT © Mathieu Guyot