From a0921e7a9b95bbc12d6e8a22a923c698fb53d2f6 Mon Sep 17 00:00:00 2001 From: Moritz Klack Date: Tue, 22 Aug 2023 10:56:23 +0200 Subject: [PATCH] chore(svelte-readme): update example --- packages/svelte/README.md | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/packages/svelte/README.md b/packages/svelte/README.md index fc7477c3..e9376ab3 100644 --- a/packages/svelte/README.md +++ b/packages/svelte/README.md @@ -24,13 +24,11 @@ A basic flow looks like this: import { writable } from 'svelte/store'; import { SvelteFlow, - SvelteFlowProvider, Controls, Background, BackgroundVariant, MiniMap, - Panel, - type NodeTypes + type SnapGrid } from '@xyflow/svelte'; // We are using writables for the nodes and edges to sync them easily. When a user drags a node for example, Svelte Flow updates its position. @@ -60,16 +58,12 @@ A basic flow looks like this: label: 'Edge Text' } ]); - - const snapGrid = [25, 25]; console.log('on node click', event)} > @@ -104,4 +98,4 @@ You can now access the examples under http://127.0.0.1:5173 # License -Svelte Flow is MIT Licensed. \ No newline at end of file +Svelte Flow is MIT Licensed.