feat: save graph to localstore
This commit is contained in:
@@ -524,7 +524,7 @@
|
||||
|
||||
$edges = $edges;
|
||||
});
|
||||
graph.history.save();
|
||||
graph.save();
|
||||
} else if ($hoveredSocket && $activeSocket) {
|
||||
if (
|
||||
typeof $hoveredSocket.index === "number" &&
|
||||
@@ -547,7 +547,7 @@
|
||||
$hoveredSocket.index,
|
||||
);
|
||||
}
|
||||
graph.history.save();
|
||||
graph.save();
|
||||
}
|
||||
|
||||
mouseDown = null;
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
import Node from "../Node.svelte";
|
||||
import { getContext, onMount } from "svelte";
|
||||
import type { Writable } from "svelte/store";
|
||||
import { activeSocket, colors } from "./stores";
|
||||
import { activeSocket } from "./stores";
|
||||
|
||||
export let nodes: Writable<Map<number, NodeType>>;
|
||||
export let edges: Writable<EdgeType[]>;
|
||||
|
||||
Reference in New Issue
Block a user