feat: some moving around

This commit is contained in:
2024-04-15 22:13:43 +02:00
parent 0254bc1ae5
commit dec205b234
86 changed files with 505 additions and 409 deletions

View File

@@ -0,0 +1,25 @@
<script lang="ts">
import type { Graph, NodeRegistry } from '@nodes/types';
import GraphEl from './Graph.svelte';
import { GraphManager } from '../graph-manager.js';
import { createEventDispatcher } from 'svelte';
export let registry: NodeRegistry;
export let graph: Graph;
const manager = new GraphManager(registry);
manager.on('result', (result) => {
dispatch('result', result);
});
manager.on('save', (save) => {
dispatch('save', save);
});
manager.load(graph);
const dispatch = createEventDispatcher();
</script>
<GraphEl graph={manager} />