feat(svelte): add minimap component

This commit is contained in:
moklick
2023-02-20 12:25:04 +01:00
parent 51fd1cc01a
commit 5452ad99ed
8 changed files with 153 additions and 3 deletions
+2 -1
View File
@@ -1,7 +1,7 @@
<script lang="ts">
import type { Node, Edge } from '@reactflow/system';
import SvelteFlow, { Controls, Background, BackgroundVariant } from '../lib/index';
import SvelteFlow, { Controls, Background, BackgroundVariant, Minimap } from '../lib/index';
const yNodes = 10;
const xNodes = 10;
@@ -60,6 +60,7 @@
<SvelteFlow {nodes} {edges} fitView >
<Controls />
<Background variant={BackgroundVariant.Dots} />
<Minimap />
</SvelteFlow>
<style>