diff --git a/README.md b/README.md index c9f557c..c902ff0 100644 --- a/README.md +++ b/README.md @@ -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(){ @@ -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]; diff --git a/package.json b/package.json index a919970..42ac935 100644 --- a/package.json +++ b/package.json @@ -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",