yishn / tikzcd-editor

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

Changing arrow size after placement #15

Closed maxsnew closed 6 years ago

maxsnew commented 6 years ago

Is there a way to stretch/shrink arrows after you've placed them?

yishn commented 6 years ago

No, is there any way to do that in tikzcd?

maxsnew commented 6 years ago

I'm not sure what you mean, in latex it would usually require adding newlines or &s. In your jsx-tikzcd README example, this would correspond to changing the from or to properties of an Edge.

I naturally just tried to grab the end of an arrow and drag it to make it longer/shorter so that's what I'm imagining as a feature. This would be very useful if you need to make an existing diagram larger/smaller without remaking the arrow altogether.

heades commented 6 years ago

I completely agree. I do this so often while writing papers with diagrams to things to fit.

On Nov 9, 2017, at 12:08 PM, Max S. New notifications@github.com wrote:

I'm not sure what you mean, in latex it would usually require adding newlines or &s. In your jsx-tikzcd README example, this would correspond to changing the from or to properties of an Edge.

I naturally just tried to grab the end of an arrow and drag it to make it longer/shorter so that's what I'm imagining as a feature. This would be very useful if you need to make an existing diagram larger/smaller without remaking the arrow altogether.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

yishn commented 6 years ago

@maxsnew You can drag the grid cells of the corresponding arrow around to make arrows longer/shorter.

maxsnew commented 6 years ago

@yishn ah great that does most of what I want. The only case it doesn't cover is when I want to shrink/stretch one arrow whose head is the same as another without affecting the other arrow.

You could work around this if you also had cut/paste, which is a feature I'd like even more.

yishn commented 6 years ago

The only case it doesn't cover is when I want to shrink/stretch one arrow whose head is the same as another without affecting the other arrow.

Why would you want to do that? Don't you want the arrows to preserve source and target?

maxsnew commented 6 years ago

I can see wanting to do it if it was a mistake, or if you wanted to separate one diagram into two. But probably not a common thing to need.

yishn commented 6 years ago

Alright, I'm closing this as this has been resolved.