feat(svelte): add controls

This commit is contained in:
moklick
2023-02-19 17:29:29 +01:00
parent ba592ceea6
commit 90ac61a6bd
12 changed files with 239 additions and 6 deletions
+4 -2
View File
@@ -1,7 +1,7 @@
<script lang="ts">
import type { Node, Edge } from '@reactflow/system';
import SvelteFlow from '../lib/index';
import SvelteFlow, { Controls } from '../lib/index';
const yNodes = 10;
const xNodes = 10;
@@ -57,7 +57,9 @@
// }]
</script>
<SvelteFlow {nodes} {edges} fitView />
<SvelteFlow {nodes} {edges} fitView >
<Controls />
</SvelteFlow>
<style>
:root {