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.

Feature request: reverse arrow style

See original GitHub issue

Thanks for this library @pierpo , it’s very nice.

The way element relations work, all relations to a source element must be known at the time the source element is rendered. Sometimes it would be programmatically convenient to express all relations to a target element instead of a source element. We could accomplish this by adding a single flag to the arrow style that indicates that instead of being drawn forward, with the arrowhead pointing at the target, the arrow should be draw backward, with the arrowhead pointing at the source.

Style
{
  strokeColor: string,
  strokeWidth: number,
  strokeDasharray: number,
  arrowLength: number,
  arrowThickness: number,
  noCurves: boolean,
  arrowForward?: boolean    // New property. Defaults to True.
}

Then in generateAllArrowMarkers draw the arrowhead pointing at the source if the arrowForward property is False.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
pierpocommented, May 13, 2021
1reaction
pierpocommented, Mar 12, 2020

It makes sense indeed. I’ll have a look when I find some time! Thank you for the suggestion 🤗

(sorry I took so long to answer, I guess I missed the notification!)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Feature request: Customize the start of the arrow · Issue #79 · pierpo ...
It would be great if it where possible to customize the beginning/start/origin of the arrow. E.g. it could be added a circle at...
Read more >
[kstyle] Reverse default sort order indicator arrow direction
An error occurred while retrieving approval data for this merge request. [kstyle] Reverse default sort order indicator arrow direction.
Read more >
[Feature Request] Arrow Enhancements
I just learned today (after being a user since around 2013) that you can double-click on an arrow to force it to a...
Read more >
Arrow function expressions - JavaScript - MDN Web Docs
An arrow function expression is a compact alternative to a traditional function expression, with some semantic differences and deliberate ...
Read more >
Is it possible to change the size of an arrowhead in TikZ/PGF ...
This feature request has been changed to “open-accepted” by Till Tantau: “ I have been thinking about how to integrate this. It seems...
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