yishn / tikzcd-editor

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

create reverse arrow button #3

Closed rubenpieters closed 6 years ago

rubenpieters commented 6 years ago

creates a new button which reverses the direction of the arrow, it doesn't have an icon yet

yishn commented 6 years ago

Thank you for the PR! I've added an icon. Do you think we should invert the label placement as well? Should the bend attribute be inverted?

rubenpieters commented 6 years ago

No problem. I guess inverting the bend attribute might be a good idea since that is more in line with what people would expect to happen.

rubenpieters commented 6 years ago

I added inversion of labelPosition and bend. I also added a default labelPosition of 'left' since if not set it would give problems with the inversion.

yishn commented 6 years ago

Thank you very much!