Skip to content
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

Shorthands for the new anchors #466

Closed
fenjalien opened this issue Jan 17, 2024 · 1 comment
Closed

Shorthands for the new anchors #466

fenjalien opened this issue Jan 17, 2024 · 1 comment

Comments

@fenjalien
Copy link
Member

The new path and border anchors don't have shorthands, you have to use them in dictionary form. It would be better if they hand shorthands like the named anchors.

We could use the exact same shortcut as named anchors, allow them as dot separated strings. However this may get tricky if a float is used for a path anchor, or an integer is used with intersections. Another option might be allowing them as a tuple in the form (name, anchor) although this may conflict with some already existing coordinates.

@johannes-wolf
Copy link
Member

johannes-wolf commented Jan 17, 2024

Maybe separate element name and anchor value by @? So it would be "element@10%" (element at 10%).

johannes-wolf added a commit that referenced this issue Mar 16, 2024
Supersedes #389. Closes #382 and #466 

Co-authored-by: Johannes Wolf <519002+johannes-wolf@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants