vue-flow icon indicating copy to clipboard operation
vue-flow copied to clipboard

Missing arrow end/start of an Edge

Open mianlang opened this issue 4 years ago • 4 comments

Expected Behavior

An arrow appears on the end of the edge when makerEnd property given.

Current Behavior

No arrows on edges.

Steps to Reproduce

https://vueflow.dev/examples/edges.html

{
  id: 'e5-7',
  ...someProperties,
  markerEnd: MarkerType.ArrowClosed,
}

But there is no arrow pointing to Output 7 from Node 5 on Preview.

Detailed Description

I noticed slight difference on type definition of markerEnd property when compared with React Flow. I've tried altering markerEnd: MarkerType.Arrow to markerEnd: { type: MarkerType.Arrow } as docs of React Flow suggest. Arrows still missing. I wonder if this has something to do with it.

Similar behavior on makerStart, too.

Or does it need some additional styling file or scripts to apply?

mianlang avatar Jun 07 '22 02:06 mianlang

Thanks for reporting. The issue is fixed an will be released with 0.4.18 - probably sometime today/tomorrow 😄

Just to clarify, you were using the markers correct markerStart: MarkerType.Arrow is correct and should work, just as

markerStart: {
   type: MarkerType.Arrow
}

Same goes for markerEnd of course.

bcakmakoglu avatar Jun 07 '22 05:06 bcakmakoglu

released with 0.4.18

bcakmakoglu avatar Jun 07 '22 16:06 bcakmakoglu

Arrow is not effective

xieanwen avatar May 15 '26 10:05 xieanwen

Works perfectly fine in the examples: https://vueflow.dev/examples/edges/markers.html

You'll have to give more context than "does not work".

bcakmakoglu avatar May 15 '26 11:05 bcakmakoglu