You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am currently exploring how to better customize path decorations for edges in Fletcher.
In fletcher, it's easy to add wave decorations, but finer customization seems a bit harder. Here's a comparison of the current default and what I'm aiming for.
Right now, my code involves a hack with hardcoded lengths that doesn't work well in all cases. Here's a snippet of what I have:
As a starting point, I'd like to adjust the length of the segment from the end of the wave to the end of the entire arrow. The default is a bit too long for what I need. To be precise, I'd like to adjust the length of the red segment in the following diagram.
Futher Customization
Ideally, I also want to recreate the following tikzcd plot.
I am not sure how exactly wave decoration works in Fletcher. Please correct me if I get it wrong. I guess if the total width of a wave path is fixed, the wave decoration attempts to adjust the wave length or period of the wave to match the segment-length parameter as closely as possible. So we always get sine waves spanning $n$ full periods, where $n$ is an integer.
I am aiming to adjust this so that half a wave length can match segment-length * 0.5 as closely as possible, allowing for sine waves spanning $n/2$ period. As illustrated in the above tikzcd plot, the spanning periods of two waves are 5.5 and 5 respectively.
Could you guide me on how to customize the wave decorations in Fletcher to achieve this effect? Thanks for any guidance!
The text was updated successfully, but these errors were encountered:
Hi, I am currently exploring how to better customize path decorations for edges in Fletcher.
In fletcher, it's easy to add wave decorations, but finer customization seems a bit harder. Here's a comparison of the current default and what I'm aiming for.
Right now, my code involves a hack with hardcoded lengths that doesn't work well in all cases. Here's a snippet of what I have:
Basic Customization
As a starting point, I'd like to adjust the length of the segment from the end of the wave to the end of the entire arrow. The default is a bit too long for what I need. To be precise, I'd like to adjust the length of the red segment in the following diagram.
Futher Customization
Ideally, I also want to recreate the following tikzcd plot.
Here's the snippet of the LaTeX code
I am not sure how exactly wave decoration works in Fletcher. Please correct me if I get it wrong. I guess if the total width of a wave path is fixed, the wave decoration attempts to adjust the wave length or period of the wave to match the$n$ full periods, where $n$ is an integer.
segment-length
parameter as closely as possible. So we always get sine waves spanningI am aiming to adjust this so that half a wave length can match$n/2$ period. As illustrated in the above tikzcd plot, the spanning periods of two waves are 5.5 and 5 respectively.
segment-length * 0.5
as closely as possible, allowing for sine waves spanningCould you guide me on how to customize the wave decorations in Fletcher to achieve this effect? Thanks for any guidance!
The text was updated successfully, but these errors were encountered: