diff --git a/packages/resize-rotate-node/README.md b/packages/resize-rotate-node/README.md
index abfe18cc..e93e4806 100644
--- a/packages/resize-rotate-node/README.md
+++ b/packages/resize-rotate-node/README.md
@@ -1,82 +1,84 @@
-# Vue Flow Pathfinding Edge 🧲
+# Vue Flow Resizable Rotatable Node
-
-[](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 Node that can be resized and rotated
## 🛠Setup
```bash
# install
-$ yarn add @braks/vue-flow-pathfinding-edge
+$ yarn add @braks/vue-flow-resize-rotate-node
# or
-$ npm i --save @braks/vue-flow-pathfinding-edge
+$ npm i --save @braks/vue-flow-resize-rotate-node
```
## 🎮 Quickstart
```vue
-
```
-```typescript
-// initial-elements.ts
+```js
+// initial-elements.js
export default [
{
id: '1',
label: 'Node 1',
+ type: 'resize-rotate',
+ targetPosition: 'left',
+ sourcePosition: 'right',
position: {
- x: 430,
+ x: 0,
y: 0,
},
+ data: {
+ // additional styles for the node
+ // cannot use the regular style tag as those apply to the node wrapper
+ style: {
+ background: 'rgb(255, 0, 114) none repeat scroll 0% 0%',
+ padding: '20px',
+ borderRadius: '20px',
+ },
+ },
},
{
id: '2',
label: 'Node 2',
+ type: 'resize-rotate',
+ targetPosition: 'left',
position: {
- x: 230,
- y: 90,
+ x: 330,
+ y: 50,
+ },
+ data: {
+ style: {
+ background: 'rgb(50, 188, 188) none repeat scroll 0% 0%',
+ padding: '20px',
+ borderRadius: '20px',
+ },
},
},
{
- id: 'e12',
+ id: 'e1-2',
source: '1',
target: '2',
- label: 'Smart Edge',
- style: { stroke: 'red' },
- type: 'pathFinding'
+ type: 'smoothstep',
},
]
```