Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@braks/vue-flow
Advanced tools
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!
👶 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
$ npm i @braks/vue-flow
# or
$ yarn add @braks/vue-flow
A flow consists of nodes and edges (or just nodes). Together we call them elements. You can pass a set of elements as a prop to the Flow component. Each element needs a unique id. A node needs a position and a label and an edge needs a source (node id) and a target (node id). These are the most basic parameters for a flow. A simple setup could look like this:
<!-- Flowchart.vue -->
<template>
<VueFlow :elements="elements"></VueFlow>
</template>
<script lang="ts" setup>
import { VueFlow, Elements } from '@braks/vue-flow'
const elements = ref<Elements>([
{
id: '1',
label: 'node 1',
position: { x: 100, y: 100 },
},
{
id: '2',
label: 'node 2',
position: { x: 100, y: 200 },
},
{
id: 'e1-2',
label: 'default edge',
target: '2',
source: '1',
},
])
</script>
Make sure to import the necessary styles:
/* main.css */
/* import the required styles */
@import "node_modules/@braks/vue-flow/dist/style.css";
/* import the default theme (optional) */
@import "node_modules/@braks/vue-flow/dist/theme-default.css";
This library doesn't work with Vue2.
# start (dev)
$ yarn dev
# build dist
$ yarn build
Thanks for your star!
This project is based on webkid's react flow. I wholeheartedly thank them for their amazing work! Without them this project would've been impossible for me.
FAQs
[![Vue flow](vue-flow.gif)](https://vueflow.dev/) ![top-language](https://img.shields.io/github/languages/top/bcakmakoglu/vue-flow) ![vulnerabilities](https://img.shields.io/snyk/vulnerabilities/github/bcakmakoglu/vue-flow) ![GitHub code size in bytes](ht
The npm package @braks/vue-flow receives a total of 808 weekly downloads. As such, @braks/vue-flow popularity was classified as not popular.
We found that @braks/vue-flow demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.