Socket
Socket
Sign inDemoInstall

@braks/vue-flow-pathfinding-edge

Package Overview
Dependencies
104
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @braks/vue-flow-pathfinding-edge

![alt text](https://64.media.tumblr.com/69de98405fbd0ff131c7e34e71e517f4/tumblr_nv4euoaSRu1ufzu8po1_500.gifv) ![top-language](https://img.shields.io/github/languages/top/bcakmakoglu/vue-flow-pathfinding-edge) [![dependencies Status](https://status.david-d


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Vue Flow Pathfinding Edge 🧲

alt text top-language dependencies Status devDependencies Status vulnerabilities GitHub code size in bytes GitHub last commit

Custom Edge that never crosses other Nodes

Check the documentation for more info on how to use this custom edge.

🛠 Setup

# install
$ yarn add @braks/vue-flow-pathfinding-edge

# or
$ npm i --save @braks/vue-flow-pathfinding-edge

🎮 Quickstart

<script lang="ts" setup>
import {
  VueFlow,
  Elements,
  useVueFlow
} from '@braks/vue-flow'
import PathFindingEdge from '@braks/vue-flow-pathfinding-edge'
import initialElements from './initial-elements'

const elements = ref<Elements>(initialElements)
useVueFlow({
  edgeTypes: {
    pathFinding: PathFindingEdge
  }
})
</script>
<template>
  <div style="height: 300px">
    <VueFlow v-model="elements" />
  </div>
</template>
// initial-elements.ts
export default [
  {
    id: '1',
    data: {
      label: 'Node 1',
    },
    position: {
      x: 430,
      y: 0,
    },
  },
  {
    id: '2',
    data: {
      label: 'Node 2',
    },
    position: {
      x: 230,
      y: 90,
    },
  },
  {
    id: 'e12',
    source: '1',
    target: '2',
    label: 'Smart Edge',
    style: { stroke: 'red' },
    type: 'pathFinding'
  },
]

FAQs

Last updated on 19 Nov 2021

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc