yishn / tikzcd-editor

A simple visual editor for creating commutative diagrams.
https://tikzcd.yichuanshen.de/
MIT License
1.86k stars 100 forks source link

Add loops #35

Closed varkor closed 4 years ago

varkor commented 5 years ago

This adds support for loops, as seen below.

image

Multiple loops are permitted on an object.

image

This is facilitated by a new "add loop" button that appears on hover.

image

There is also the option to rotate the loop through 90°. The loop direction can also be reversed.

image

Resolves https://github.com/yishn/tikzcd-editor/issues/18.


I imagine there are probably some behaviours I've overlooked in the interaction with loops, so let me know if something doesn't seem natural, or doesn't work as expected.

varkor commented 5 years ago

Note that this depends on https://github.com/yishn/jsx-tikzcd/pull/5 to generate correct TikZ, so this will have to be updated before this is merged.

yishn commented 5 years ago

@varkor I've published a new version of jsx-tikzcd with your changes and updated the dependencies. Can you resolve the conflicts, please?

varkor commented 5 years ago

I've rebased and fixed the conflicts.

ScyllaHide commented 5 years ago

Is this now included in the new release, because I downloaded 0.60 and I can not find it?

yishn commented 5 years ago

This is not merged yet, so it‘s not in the official release yet. I‘m super busy atm and I don’t know when I‘ll have the time to look over this...

varkor commented 4 years ago

@yishn: have you had a chance to look at this more recently?

yishn commented 4 years ago

Thanks for the reminder! I've tested it out and it is lovely. ❤

varkor commented 4 years ago

@yishn: thank you very much, and thank you for developing tikzcd-editor — it's a really helpful and time-saving tool!