Skip to content

Allow dot notation in intersections #738

Description

@rmburg

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")
})

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions