Feature request: reverse arrow style
See original GitHub issueThanks 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:
- Created 4 years ago
- Reactions:4
- Comments:5 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Should be solved by https://github.com/pierpo/react-archer/pull/139 😉
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!)