0.2.14 • Published 5 years ago
rete-stage0-render-plugin v0.2.14
Stage0 Render
Rete.js plugin
Rete renderer using https://www.npmjs.com/package/stage0 (~1.6 kb framewok)
Example: https://codepen.io/anon/pen/jQBxKe
Package features a separate CSS stylesheet
import Stage0RenderPlugin from 'rete-stage0-render-plugin';
editor.use(Stage0RenderPlugin);
import CustomNodeComponent from './CustomNodeComponent.js';
class MyComponent extends Rete.Component {
constructor(){
// ...
this.data.render = 'stage0';
this.data.component = CustomNodeComponent; // stage0.js component, not required
this.data.props = {}; // props for the component above, not required
}
}
const node = editor.nodes[0];
const control = node.controls.get('ctrl');
node.update(); // force update
control.update(); // of view
// in some cases you can gt stage0.js context
node.stage0Context
control.stage0Context
0.2.14
5 years ago
0.2.13
5 years ago
0.2.11
5 years ago
0.2.10
5 years ago
0.2.9
5 years ago
0.2.8
5 years ago
0.2.7
5 years ago
0.2.6
5 years ago
0.2.5
5 years ago
1.0.0-beta3
5 years ago
1.0.0-beta2
5 years ago
1.0.0-beta1
5 years ago
1.0.0-alpha1
5 years ago
0.0.7
5 years ago
0.0.6
5 years ago
0.0.5
5 years ago
0.0.4
5 years ago
0.0.3
5 years ago
0.0.2
5 years ago
0.0.1
5 years ago