rete icon indicating copy to clipboard operation
rete copied to clipboard

Adding an EmberJS visualisation, where to start?

Open BryanCrotaz opened this issue 10 months ago • 3 comments

I want to create EmberJS components that hook into the engine of Rete.

I've read through the docs and everything appears to be based on signals and messaging. How do I hook into that?

For example, as the most basic example, how would a NodeGraph component hook in to receive a list of nodes and their size and location to draw the node rectangles as divs?

I can't find the css files in any of the core code - does each visualisation have to create new css from scratch?

BryanCrotaz avatar Apr 06 '24 11:04 BryanCrotaz

At the moment there is no documentation on implementing integration plugin for UI frameworks (although it's planned).

I would suggest following the existing one, e.g. Vue plugin

btw, you can put your updates here https://github.com/retejs/rete/discussions/635

Ni55aN avatar Apr 14 '24 10:04 Ni55aN

At the moment I’ve put a React renderer inside an Ember component but that’s a lot of bloat.

Ember works with tracked values and internal signals so it should fit well. I really couldn’t work out how to hook into the engine. Could you write a one pager about how to hook into the required signals for displaying the node tree? I can probably work it out from there.

You are receiving this because you authored the thread.Message ID: @.***>

BryanCrotaz avatar Apr 14 '24 12:04 BryanCrotaz

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.

rete-js[bot] avatar Jun 16 '24 01:06 rete-js[bot]

This issue was closed because it has been stalled for 10 days with no activity.

rete-js[bot] avatar Jul 07 '24 01:07 rete-js[bot]