Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
roll version
Browse files Browse the repository at this point in the history
  • Loading branch information
trsh committed Nov 15, 2018
1 parent 0e36f7c commit 7102e0d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
15 changes: 3 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ Stage0 Render
====
#### Rete.js plugin

https://codepen.io/anon/pen/jQBxKe
Rete renderer using https://www.npmjs.com/package/stage0 (~1.6 kb framewok)

Example: https://codepen.io/anon/pen/jQBxKe

```js
import Stage0RenderPlugin from 'rete-stage0-render-plugin';

editor.use(Stage0RenderPlugin);
```
TODO

```js
import CustomNodeComponent from './CustomNodeComponent.js';
import CustomControlComponent from './CustomControlComponent.js';

class MyComponent extends Rete.Component {
constructor(){
Expand All @@ -24,16 +24,7 @@ class MyComponent extends Rete.Component {
}
}

class MyControl extends Rete.Control {
constructor(){
// ...
this.data.render = 'stage0';
this.data.component = CustomControlComponent; // stage0.js component, required
this.data.props = {}; // props for the component above, not required
}
}
```
TODO

```js
const node = editor.nodes[0];
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "rete-stage0-render-plugin",
"version": "1.0.0-alpha1",
"description": "",
"version": "1.0.0-beta1",
"description": "Rete renderer using https://www.npmjs.com/package/stage0 (~1.6 kb framewok)",
"main": "build/stage0-render-plugin.min.js",
"repository": {
"type" : "git",
Expand Down

0 comments on commit 7102e0d

Please sign in to comment.