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

Allow dot notation in intersections #738

Open
rmburg opened this issue Oct 30, 2024 · 1 comment
Open

Allow dot notation in intersections #738

rmburg opened this issue Oct 30, 2024 · 1 comment
Labels
bug 🐛 Something isn't working enhancement ⬆️ New feature or request
Milestone

Comments

@rmburg
Copy link

rmburg commented Oct 30, 2024

Elements in groups can currently not be addressed by intersections.

The following code does not work:

#cetz.canvas({
  group(
    name: "foo",
    {
      rotate(45deg)
      rect(name: "bar", (-1, -1), (1, 1))
    },
  )

  line(name: "baz", (-2, -2), (2, 2))

  intersections("i", "foo.bar", "baz")
})
@johannes-wolf johannes-wolf added the bug 🐛 Something isn't working label Oct 31, 2024
@johannes-wolf johannes-wolf added this to the 0.3.2 milestone Oct 31, 2024
@johannes-wolf johannes-wolf added enhancement ⬆️ New feature or request bug 🐛 Something isn't working and removed bug 🐛 Something isn't working labels Oct 31, 2024
@johannes-wolf
Copy link
Member

This could have a big impact on performance, because we would have to store all named objects in the context.

@johannes-wolf johannes-wolf removed this from the 0.3.2 milestone Nov 24, 2024
@johannes-wolf johannes-wolf added this to the 0.4.0 milestone Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working enhancement ⬆️ New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants