Skip to content

Custom "smoothstep" Edge connection with close button? #320

Answered by bcakmakoglu
flashvnn asked this question in Q&A
Discussion options

You must be logged in to vote

You can use getSmoothStepPath for that.

CustomEdge:

<script setup>
import { getSmoothStepPath, useVueFlow } from '@vue-flow/core'
import { computed } from 'vue'

const props = defineProps({
  id: {
    type: String,
    required: true,
  },
  sourceX: {
    type: Number,
    required: true,
  },
  sourceY: {
    type: Number,
    required: true,
  },
  targetX: {
    type: Number,
    required: true,
  },
  targetY: {
    type: Number,
    required: true,
  },
  sourcePosition: {
    type: String,
    required: true,
  },
  targetPosition: {
    type: String,
    required: true,
  },
  data: {
    type: Object,
    required: false,
  },
  markerEnd: {
    type: String,
    required: false,

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by flashvnn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants