Replies: 3 comments 13 replies
-
Hi @csamarchi, The error you are seeing about the Your Unfortunately, I can't tell what's exactly wrong. It looks like you are reading positions from your source model and apply them to the GModel nodes in your
So I'd debug into that line and see what it actually writes into the position of the GModel nodes. Your Since your module nodes seem to pop back to their original positions after a drag and drop, it looks like there is something missing in the process of reading the positions from the source model, writing them into the GModel and updating the source model after a The purpose of |
Beta Was this translation helpful? Give feedback.
-
Thank you, could you explain what the purpose of the index file is? |
Beta Was this translation helpful? Give feedback.
-
Thanks for the explanation. I noticed in the
Which is where the initial positioning is coming. Since we are not using the example file, we are using our own, how are we suppose to apply each position to each child? I don't expect us to hard code the initial x,y coordinates for each node, but I don't know how else? |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm working with Node server and VS Code extension. I got part of my source model to render in the client, however, everything is stacked on top of each other in the left corner. I am able to click and drag, except when I let go of the click to drop, the module resumes back to its original spot stacked on top of the others.
I see this error in the server:
What is the purpose of the
saveSourceModel()
function in the storage.ts file? Does this have anything to do with dragging and dropping and saving the position of where it's dropped?I'm surprised my modules are not laid out in the same format as the out of the box example, any ideas as to why? Is this something within the server or the client?
Maybe because edges are not defined properly? Here is my gmodel-factory:
Beta Was this translation helpful? Give feedback.
All reactions