retejs / rete

JavaScript framework for visual programming
https://retejs.org
MIT License
9.8k stars 643 forks source link

Documentation on modules #105

Closed CheweyZ closed 6 years ago

CheweyZ commented 6 years ago

Is it possible to get any documentation on this https://d3-node-editor.readthedocs.io/en/latest/Extras/#modules

Also with modules is it possible to make one module say I named it test then in another block say use the module test rather than need to recreate all the blocks each time

Ni55aN commented 6 years ago

I dont have enought time for this. Bsides it will be better to update the documentation after the implemention of the new plugin-based architecture. (Modules will also be a plugin)

Also with modules is it possible to make one module say I named it test then in another block say use the module test rather than need to recreate all the blocks each time

You can just copy Module data and pass them to new Module node

Ni55aN commented 6 years ago

For now there are no examples for the new architecture for the modules, but I prepared an example where the main things are done inside the plug-in and you do not need to worry about the details of their work.

https://github.com/retejs/examples/tree/master/Module

The main difference is that now the data of the modules are stored in a list, rather than nested in the node data, as it was before

Ni55aN commented 6 years ago

https://rete.readthedocs.io/en/latest/Plugins/#module