5437d48325979f359f3bb52cc8bb35618a72c237
* fit view can't work (for the onLoad event) for elements assigned after the host has mounted (onMounted hook) as we can't calculate a rect of elements that don't exist at flow creation * in this case just trigger fit view __after__ elements have been created/passed to the flow Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
Vue Flow
This repo is still a big construction site with nothing really finished. You can check the examples to see what's working and what's not. Please visit React Flow and support them if you like the idea. They did most of the heavy lifting by writing the library in the first place. All I did is bring it to Vue.
Motivation
Seeing as many libraries exist in the React ecosystem and Vue sadly does not get the same love and attention, I decided to port the React Flow library to Vue.js.
Usage
Check the React Flow docs for usage. It's really the same.
Vue 3
# install vue flow
$ pnpm add @braks/vue-flow
# or
$ npm i --save @braks/vue-flow
Vue 2
Vue Flow doesn't work with Vue 2, sorry.
🧪 Development
# start (dev)
$ pnpm dev
# build app
$ pnpm build
# serve app from build
$ pnpm serve
# build dist
$ pnpm build:dist
Description
Languages
TypeScript
80.3%
Vue
17%
CSS
1.8%
JavaScript
0.6%
Dockerfile
0.2%
Other
0.1%
