Hi,
This is really cool, i've managed to get something together, however I have had to sort of 'hack' the stories to get something, as the examples directly reference the files in the project, rather than as a seperate project. I realise this is probably my misunderstanding of react but it would be great to have some examples of using this from a seperate projects perspective.
Thanks again!
EDIT (more detail):
As an example, I am trying to combine some of the examples in the stories. I've got this far (and this does work), however I've had to copy a lot of the code out of your library to get it working. Note I'm not using typescript (tsx) I guess if I use your library correctly, It doesn't matter and will all be handled for me, but when I copy some code out and I'm not using typescript it doesn't work. The below is supposed to have a sidebar that I can drag and drop from, and another sidebar (desired to be along the bottom but thats fine for now) showing details of a selected node. However it doesn't show the selected node's details, and I'm not sure why exactly.
My goal is to have the types of components to be loaded from a json object into the list of available nodes, and then be able to drag them onto the diagram. I'd then like to know how to export the underlying chart as json for a sort of "save" feature but thats easier once I have the state successfully holding the state of the chart and once the node types come from a common source (json file)
Any help to this goal would be appreciated - its a super cool library, I've been looking for something nice like this and this is the best I found yet.
Hi, This is really cool, i've managed to get something together, however I have had to sort of 'hack' the stories to get something, as the examples directly reference the files in the project, rather than as a seperate project. I realise this is probably my misunderstanding of react but it would be great to have some examples of using this from a seperate projects perspective. Thanks again!
EDIT (more detail):
As an example, I am trying to combine some of the examples in the stories. I've got this far (and this does work), however I've had to copy a lot of the code out of your library to get it working. Note I'm not using typescript (tsx) I guess if I use your library correctly, It doesn't matter and will all be handled for me, but when I copy some code out and I'm not using typescript it doesn't work. The below is supposed to have a sidebar that I can drag and drop from, and another sidebar (desired to be along the bottom but thats fine for now) showing details of a selected node. However it doesn't show the selected node's details, and I'm not sure why exactly. My goal is to have the types of components to be loaded from a json object into the list of available nodes, and then be able to drag them onto the diagram. I'd then like to know how to export the underlying chart as json for a sort of "save" feature but thats easier once I have the state successfully holding the state of the chart and once the node types come from a common source (json file)
Any help to this goal would be appreciated - its a super cool library, I've been looking for something nice like this and this is the best I found yet.