feat(svelte): add background

This commit is contained in:
moklick
2023-02-19 18:07:50 +01:00
parent 90ac61a6bd
commit 51fd1cc01a
10 changed files with 135 additions and 42 deletions
+2 -1
View File
@@ -1,7 +1,7 @@
<script lang="ts">
import type { Node, Edge } from '@reactflow/system';
import SvelteFlow, { Controls } from '../lib/index';
import SvelteFlow, { Controls, Background, BackgroundVariant } from '../lib/index';
const yNodes = 10;
const xNodes = 10;
@@ -59,6 +59,7 @@
<SvelteFlow {nodes} {edges} fitView >
<Controls />
<Background variant={BackgroundVariant.Dots} />
</SvelteFlow>
<style>