A Node friendly re-implementation of Riven.
Install it by running
$ yarn add neo-riven
# or
$ npm i -s neo-riven
The selector must be bound to the Riven instance.
import Riven from 'neo-riven'
const rvn = new Riven()
const { Ø } = rvn.bind() // Now the selector is bound to the Riven instance.
Nodes are defined as classes:
class ConsoleNode extends Riven.Node {
constructor(ctx, id, rect) {
super(ctx, id, rect)
this.glyph = Riven.NODE_GLYPHS.render
}
receive(q) {
console.log(q)
}
}