Braks 5437d48325 fix: custom node example not fitting view
* 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>
2021-11-06 08:54:35 +01:00
2021-11-06 08:54:35 +01:00
2021-07-01 19:54:02 +02:00
2021-10-20 22:39:54 +02:00
2021-07-11 09:38:46 +02:00

Vue Flow

vue flow top-language dependencies Status devDependencies Status vulnerabilities GitHub code size in bytes GitHub last commit

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
No description provided
Readme 17 MiB
Languages
TypeScript 80.3%
Vue 17%
CSS 1.8%
JavaScript 0.6%
Dockerfile 0.2%
Other 0.1%