Braks 808c6b17e0 fix: remove force-update from node
* update dimensions directly, not on next tick

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-16 20:00:09 +01:00
2021-11-16 20:00:09 +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
2021-11-16 19:04:47 +01:00
2021-11-16 15:44:24 +01:00
2021-11-15 21:04:12 +01:00

Vue Flow 🌊

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

Vue Flow: A highly customizable Vue3 Flowchart component.

With Vue Flow you can build your own, customized node-based applications like static diagrams or even more complex and interactive editors!

You can find a detailed explanation on how to get started in the documentation or check the examples.

If you want to see how it's used with Nuxt3, check out the docs repo!

Features

  • 👶 Easy to use: Seamless zooming & panning behaviour and single and multi-selections of elements

  • 🎨 Customizable: Different and edge types and support for custom nodes with multiple handles and custom edges

  • 🚀 Fast rendering: Only nodes that have changed are re-rendered and only those that are in the viewport are displayed (optionally)

  • 🧲 Utils: Snap-to-grid and graph helper functions

  • 📦 Additional Components:

    • 🖼 Background

    • 🧭 Minimap

    • 🕹 Controls

  • 🦾 Fully written in TypeScript

🛠 Setup

$ npm i @braks/vue-flow
# or
$ yarn add @braks/vue-flow

🎮 Quickstart

<template>
  <Flow :elements="elements"></Flow>
</template>
<script lang="ts" setup>
import { Flow, Elements } from '@braks/vue-flow'

const elements = ref<Elements>([
  {
    id: '1',
    data: {
      label: 'This is a <strong>default node</strong>',
    },
    position: { x: 100, y: 100 },
  },
])
</script>

▸ Vue 2

This library doesn't work with Vue2.

🧪 Development

# start (dev)
$ yarn dev

# build dist
$ yarn build

💝 Credit

Thanks to webkid for creating React Flow! Without their work this would've been impossible for me.

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%