Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@vue-flow/core
Advanced tools
Changelog
Readme
Vue Flow: A highly customizable Vue 3 Flowchart component.
Vue Flow is a bridge to the world of interactive flowcharts and graphs, empowering you to bring interactivity to your graphic representations. Whether it's crafting personal diagrams, generating dynamic editors, or anything else your imagination conjures up, Vue Flow has you covered.
You can find a detailed explanation on how to get started here or jump right into the examples.
👶 Easy setup: Get started hassle-free - Built-in zoom- & pan features, element dragging, selection and much more
🎨 Customizable: Use your custom nodes, edges and connection lines and expand on 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
🤖 And (many) more to come...
🦾 Reliable: Fully written in TypeScript
$ npm i @vue-flow/core
# or
$ pnpm i @vue-flow/core
# or
$ yarn add @vue-flow/core
In Vue Flow, an application structure consists of nodes and edges, all of which are categorised as elements.
Each element requires a unique id.
Nodes additionally need an XY-position, while edges require a source and a target, both represented by node ids.
<!-- Flowchart.vue -->
<script setup>
import { VueFlow } from '@vue-flow/core'
const nodes = ref([
{
id: '1',
label: 'node 1',
position: {x: 100, y: 100},
},
{
id: '2',
label: 'node 2',
position: {x: 100, y: 200},
},
])
const edges = ref([
{
id: 'e1-2',
target: '2',
source: '1',
},
])
</script>
<template>
<VueFlow :nodes="nodes" :edges="edges"></VueFlow>
</template>
⚠️ Make sure to import the necessary styles:
/* import the required styles */
@import "@vue-flow/core/dist/style.css";
/* import the default theme (optional) */
@import "@vue-flow/core/dist/theme-default.css";
Do not scope these styles with scoped
in your component.
This library doesn't work with Vue 2.
Vue Flow uses features that are exclusive to Vue 3, therefore there is no support for Vue 2, nor will there be any support in the future, sorry.
# install pnpm if you haven't already
$ npm i -g pnpm
# start examples
$ pnpm dev
# build all packages
$ pnpm build
To start using development containers, install the Docker
extension
for VSCode.
After installing the extension, open the connection menu either
on the bottom left or open it via the commands tab.
Select the Open Folder in Container
option to mount the project.
The development container will spin up all packages example apps and forward the ports to your machine.
Join the Vue Flow Discord server!
Here you can ask questions to the community, propose ideas for new features or share your work that you have built with Vue Flow.
This project is built with
Many thanks to the kind individuals who leave a star. Your support is much appreciated!
FAQs
[![Vue flow](vue-flow.gif)](https://vueflow.dev/) ![top-language](https://img.shields.io/github/languages/top/bcakmakoglu/vue-flow) ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/bcakmakoglu/vue-flow) ![GitHub last commit](
The npm package @vue-flow/core receives a total of 19,728 weekly downloads. As such, @vue-flow/core popularity was classified as popular.
We found that @vue-flow/core demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.