From 1f1792bd096af123dca45cab56843fc83d37c176 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Tue, 16 Apr 2024 16:17:57 +0200 Subject: [PATCH] chore: update README example --- README.md | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index e2fb83cf..deffc393 100644 --- a/README.md +++ b/README.md @@ -82,29 +82,20 @@ Nodes additionally need an __XY-position__, while edges require a __source__ and import { VueFlow } from '@vue-flow/core' const nodes = ref([ - { - id: '1', - label: 'node 1', - position: {x: 100, y: 100}, - }, - { - id: '2', - label: 'node 2', - position: {x: 100, y: 200}, - }, + { id: '1', type: 'input', label: 'Node 1', position: { x: 250, y: 5 } }, + { id: '2', label: 'Node 2', position: { x: 100, y: 100 } }, + { id: '3', label: 'Node 3', position: { x: 400, y: 100 } }, + { id: '4', label: 'Node 4', position: { x: 400, y: 200 } }, ]) const edges = ref([ - { - id: 'e1-2', - target: '2', - source: '1', - }, + { id: 'e1-2', source: '1', target: '2', animated: true }, + { id: 'e1-3', source: '1', target: '3' }, ]) ```