You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've just started working with Svelvet / Svelte, and I have a few small questions that I don't quite understand. I would really appreciate any help you can provide.
I don't know how to listen to anchor events. I've gone through some of the documentation, but I couldn't find any information on this. For example, there's already a "nodeClicked" event defined for nodes, and I can track when a node is clicked and get the corresponding node's ID. But how can I track when an anchor element is clicked? How can I get its ID?
I've made some changes to a model I've created on a localhost via Svelvet, such as adding new nodes and creating edge connections. However, when I refresh the page, all these changes are lost, and I have to start from scratch. How can I save the changes I've made with Svelvet? I want the most recent changes to always be up-to-date, for example, when I press the "save" button, it should store everything. I thought about using LocalStorage, but unfortunately, I noticed some errors occur when saving arrays.
I'm open to any support you can provide on these issues, and I thank you in advance for your help.
The text was updated successfully, but these errors were encountered:
Hello everyone,
I've just started working with Svelvet / Svelte, and I have a few small questions that I don't quite understand. I would really appreciate any help you can provide.
I don't know how to listen to anchor events. I've gone through some of the documentation, but I couldn't find any information on this. For example, there's already a "nodeClicked" event defined for nodes, and I can track when a node is clicked and get the corresponding node's ID. But how can I track when an anchor element is clicked? How can I get its ID?
I've made some changes to a model I've created on a localhost via Svelvet, such as adding new nodes and creating edge connections. However, when I refresh the page, all these changes are lost, and I have to start from scratch. How can I save the changes I've made with Svelvet? I want the most recent changes to always be up-to-date, for example, when I press the "save" button, it should store everything. I thought about using LocalStorage, but unfortunately, I noticed some errors occur when saving arrays.
I'm open to any support you can provide on these issues, and I thank you in advance for your help.
The text was updated successfully, but these errors were encountered: