-
-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature request] anchors for line
's coordinates
#640
Comments
Since |
I see...
Are you proposing to add such prefix for absolute length anchors and leave the syntax
Moreover, I think this "new" (AFAIU) anchor type deserves a subsection in sec 2.2 of CeTZ. It is distinct enough from named, border, and path anchor type. What do you think? I think so because the way we access it not based on a path, compass or angle, or a mere name. Rather, it is the |
No, when using shorthand anchors, anchors that start with a digit are reserved for path anchors if the element supports them. What @johannes-wolf has proposed is that for each coordinate given to the line function a |
Ah :( Well, it is up to you. I think |
Something like |
Yes. Four characters when only one is actually useful. This is obviously a matter of opinion, though. Fell free to disregard my point of view. Although it is verbose, |
In
it would be interesting to have anchors to the coordinates that makes the line up. AFAIK CeTZ doesn't provide such anchor.
I propose the syntax
"line.i"
to access thei
th coordinate. For instance, in"line"
,"line.1"
would access(0,1)
,"line.2"
would access(0,2)
, and so on.PS: Path anchor (e.g.,
"line.30%"
) is not convenient when the line is very complex, so it is not a reasonable alternative.The text was updated successfully, but these errors were encountered: