question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve the getSmoothStepPath for the markers orient

See original GitHub issue

I have custom markers with orient=“auto” but the the getSmoothStepPath don’t give the best path for the markers.

Capture d’écran 2021-04-01 à 17 41 57 Capture d’écran 2021-04-01 à 18 41 31

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mrkacancommented, Jul 1, 2022

Hello everyone i start learning react-flow and how to create a custom nodes, a custom floating edges, and i found 2 problems : case one: When we have a custom node circle with a floating edge and has a marker end (arrow) , we notice that we have spacing on the corners of the circle node not floating in the edges of the node?

2nd - with a custom edge we want resistance or a button in the center to follow rotation line depending to the direction of the line?

you can see the problems in the photo or in the send box, please help me !

ice_screenshot_20220701-101339

https://codesandbox.io/s/sandpack-project-forked-ocw82p?file=/customNode.js

+1

1reaction
Mahdi-Soultanacommented, Jul 1, 2022

Hello everyone i start learning react-flow and how to create a custom nodes, a custom floating edges, and i found 2 problems : case one: When we have a custom node circle with a floating edge and has a marker end (arrow) , we notice that we have spacing on the corners of the circle node not floating in the edges of the node?

2nd - with a custom edge we want resistance or a button in the center to follow rotation line depending to the direction of the line?

you can see the problems in the photo or in the send box, please help me !

ice_screenshot_20220701-101339

https://codesandbox.io/s/sandpack-project-forked-ocw82p?file=/customNode.js

Read more comments on GitHub >

github_iconTop Results From Across the Web

orient - SVG: Scalable Vector Graphics - MDN Web Docs
The orient attribute indicates how a marker is rotated when it is placed at its position on the shape.
Read more >
wbkd - Bountysource
Is there a way to increase select-ability size of edges? ... I have custom markers with orient="auto" but the the getSmoothStepPath don't give...
Read more >
Using genetic markers to orient the edges in quantitative trait ...
We develop and implement Network Edge Orienting (NEO) methods and software that address the challenges of inferring unconfounded and directed ...
Read more >
How to fix SVG marker orientation in MS Edge? - Stack Overflow
Apparently orient="auto-start-reverse" doesn't work in edge so you will need to use orient="auto" . For this instead of a polyline I'm using ...
Read more >
Edge Markers Example - React Flow
React Flow has built-in support for different marker types for your edges. It's possible to add your own SVG markers, too.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found