quiver icon indicating copy to clipboard operation
quiver copied to clipboard

Crossing over arrows

Open vikraman opened this issue 4 years ago • 4 comments

For 3d diagrams, could a button be added for using "crossing over" in tikzcd? This is something I often have to add manually after exporting.

vikraman avatar Mar 05 '20 20:03 vikraman

This is definitely something I plan to add. However, it's more subtle than you might think. To make this work properly, the arrows need to be ordered (so that only arrows "below" the current one are cut out). Most likely, we'd actually want a layer system to make it intuitive and flexible. This adds quite a lot of complexity for a minor feature. It's definitely on the roadmap, but is probably blocked on https://github.com/varkor/quiver/issues/20.

varkor avatar Mar 06 '20 00:03 varkor

As far as I can tell, the arrows are always sorted in the order they were created, right? So in that sense, there is already a simple "layer system".

If users want to move arrows to the front, they can always delete the arrows and recreate them. There could be buttons to move arrows to the back or front, but they are not necessary for a first implementation, I think.

AlexanderZeilmann avatar Nov 15 '21 23:11 AlexanderZeilmann

If users want to move arrows to the front, they can always delete the arrows and recreate them.

This would be quite an awkward way to manipulate layers. In any case, the complexity is really in the rendering and the exporting to tikz-cd (which has a rather ad hoc method of rendering crossing over arrows). I do plan to get to this when I have some more time (hopefully in the new year), but it's going to require some thought.

varkor avatar Nov 16 '21 00:11 varkor

You are absolutely right that this is a little awkward. I was just thinking about an implementation that does not require a complete rewrite of quiver.

AlexanderZeilmann avatar Nov 16 '21 09:11 AlexanderZeilmann