8000 GitHub - Sunil-Kudupudi-Albanero/vue-flow: A highly customizable Flowchart for Vue 3. Features seamless zoom & pan ๐Ÿ”Ž, additional components like a Minimap ๐Ÿ—บ and a ton of utilities to help you create beautiful Flowcharts.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

A highly customizable Flowchart for Vue 3. Features seamless zoom & pan ๐Ÿ”Ž, additional components like a Minimap ๐Ÿ—บ and a ton of utilities to help you create beautiful Flowcharts.

License

Notifications You must be signed in to change notification settings

Sunil-Kudupudi-Albanero/vue-flow

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
< 8000 div class="react-directory-truncate">docs
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Vue Flow ๐ŸŒŠ

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

Vue Flow: A highly customizable Vue 3 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.

โญ๏ธ Features

  • ๐Ÿ‘ถ Easy setup: Get started hassle-free - Built-in zoom- & pan features, element dragging, selection and much more

  • ๐ŸŽจ Customizable: Use your own custom nodes, edges, connection lines and expand on the Vue Flows functionality

  • ๐Ÿš€ Fast: Tracks changes reactively and only re-renders the appropriate elements

  • ๐Ÿงฒ Utils & Composition: Comes with graph helper and state composable functions for advanced uses

  • ๐Ÿ“ฆ Additional Components:

    • ๐Ÿ–ผ Background: With two built-in patterns and some configuration options like height, width or color.

    • ๐Ÿงญ Minimap: Shows current nodes in a small map shape in the bottom right corner

    • ๐Ÿ•น Controls: Control zoom behavior from a panel on the bottom left

  • ๐Ÿฆพ Reliable: Fully written in TypeScript

๐Ÿ›  Setup

$ npm i @braks/vue-flow

# or
$ yarn add @braks/vue-flow

๐ŸŽฎ Quickstart

A flow consists of nodes and edges (or just nodes). Together we call them elements.

Each element needs a unique id.

A node also needs a xy-position. An edge needs a source (node id) and a target (node id).

A simple setup could look like this:

<!-- Flowchart.vue -->
<template>
  <VueFlow v-model="elements"></VueFlow>
</template>
<script setup>
import { VueFlow } from '@braks/vue-flow'

const elements = ref([
  {
    id: '1',
    label: 'node 1',
    position: { x: 100, y: 100 },
  },
  {
    id: '2',
    label: 'node 2',
    position: { x: 100, y: 200 },
  },
  {
    id: 'e1-2',
    target: '2',
    source: '1',
  },
])
</script>

Make sure to import the necessary styles:

/* main.css */

/* import the required styles */
@import "@braks/vue-flow/dist/style.css";

/* import the default theme (optional) */
@import "@braks/vue-flow/dist/theme-default.css";

โ–ธ Vue 2

This library doesn't work with Vue2.

๐Ÿงช Development

# start (dev)
$ yarn dev

# build dist
$ yarn build

โญ Stargazers

Thanks for your star!

Stargazers repo roster for @braks/vue-flow

๐Ÿ’ Special Thanks

This project is built with

  • React Flow

    • Vue flow is heavily based on webkid's react flow. I wholeheartedly thank them for their amazing work! Without them this vue flow would not exist. Please consider donating to them!
  • D3.js

    • D3 makes all the zoom and pan actions in the graph possible. Check it out to see if you can find other uses for it too!
  • VueUse

    • VueUse is a collection of helpful utilities/composables that have been battle tested.

About

A highly customizable Flowchart for Vue 3. Features seamless zoom & pan ๐Ÿ”Ž, additional components like a Minimap ๐Ÿ—บ and a ton of utilities to help you create beautiful Flowcharts.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 68.2%
  • Vue 28.3%
  • CSS 2.5%
  • JavaScript 1.0%
0