-
-
Notifications
You must be signed in to change notification settings - Fork 132
Open
Description
I'm trying to make graph to be saved in any time to localstorage to not loose changes after page reload.
For this I need to watch all changes and sync.
Currently this tracks most of the changes AFAIK:
const updaterToken = Symbol();
for (const prop of ['addNode', 'removeNode', 'addConnection', 'removeConnection']) {
baklava.editor.graphEvents[prop].subscribe(updaterToken, () => graph.value = baklava.editor.save());
}
for (const prop of ['update', 'addInput', 'loaded', 'addOutput', 'removeInput', 'removeOutput', 'titleChanged']) {
baklava.editor.nodeEvents[prop].subscribe(updaterToken, () => graph.value = baklava.editor.save());
}
But as far as I can see there is no way to catch node movement.
Am I missing something? If not, can this be added?
Metadata
Metadata
Assignees
Labels
No labels