From e847e2cb3fdc35dbe994622694fb043804e74149 Mon Sep 17 00:00:00 2001
From: Braks <78412429+bcakmakoglu@users.noreply.github.com>
Date: Fri, 20 May 2022 21:47:53 +0200
Subject: [PATCH] chore(pathfinding-edge): update README.md
---
packages/pathfinding-edge/README.md | 36 +++++++++--------------------
1 file changed, 11 insertions(+), 25 deletions(-)
diff --git a/packages/pathfinding-edge/README.md b/packages/pathfinding-edge/README.md
index abfe18cc..bee8fa7a 100644
--- a/packages/pathfinding-edge/README.md
+++ b/packages/pathfinding-edge/README.md
@@ -1,15 +1,6 @@
# Vue Flow Pathfinding Edge 🧲
-
-[](https://david-dm.org/bcakmakoglu/vue-flow-pathfinding-edge)
-[](https://david-dm.org/bcakmakoglu/vue-flow-pathfinding-edge?type=dev)
-
-
-
-
-### **Custom Edge that avoids crossing other Nodes**
-
-Check the [documentation](https://vueflow.dev/docs/addons/pathfinding) for more info on how to use this custom edge.
+### Custom Edge that avoids crossing other Nodes
## 🛠Setup
@@ -24,26 +15,20 @@ $ npm i --save @braks/vue-flow-pathfinding-edge
## 🎮 Quickstart
```vue
-
-
-
+
+
@@ -51,8 +36,8 @@ const { getNodes } = useVueFlow({
```
-```typescript
-// initial-elements.ts
+```js
+// initial-elements.js
export default [
{
id: '1',
@@ -76,7 +61,8 @@ export default [
target: '2',
label: 'Smart Edge',
style: { stroke: 'red' },
- type: 'pathFinding'
+ // assign pathfinding edge type
+ type: 'pathfinding'
},
]
```