From d7b956dd2ac9d36907fd38ff2209a824d4ca63b0 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Sun, 9 Oct 2022 00:00:47 +0200 Subject: [PATCH] chore: update README --- packages/additional-components/README.md | 85 +----------------------- 1 file changed, 2 insertions(+), 83 deletions(-) diff --git a/packages/additional-components/README.md b/packages/additional-components/README.md index bad9049a..b32894d8 100644 --- a/packages/additional-components/README.md +++ b/packages/additional-components/README.md @@ -1,84 +1,3 @@ -# Vue Flow Resizable Rotatable Node +# Vue Flow Additional Components -### Custom Node that can be resized and rotated - -## 🛠 Setup - -```bash -# install -$ yarn add @vue-flow/core-resize-rotate-node - -# or -$ npm i --save @vue-flow/core-resize-rotate-node -``` - -## 🎮 Quickstart - -```vue - - - -``` - -```js -// initial-elements.js -export default [ - { - id: '1', - label: 'Node 1', - type: 'resize-rotate', - targetPosition: 'left', - sourcePosition: 'right', - position: { - 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: 330, - y: 50, - }, - data: { - style: { - background: 'rgb(50, 188, 188) none repeat scroll 0% 0%', - padding: '20px', - borderRadius: '20px', - }, - }, - }, - { - id: 'e1-2', - source: '1', - target: '2', - type: 'smoothstep', - }, -] -``` +This package contains additional components like `Background`, `Controls` & `MiniMap`.