Group anchors #634
-
I have a question about group anchors: How can I use the (name:...,anchor:...) notation in the anchor parameter of a group? #cetz.canvas({
import cetz.draw: *
group(
anchor: (name: "test", anchor: 20deg),
{
circle(name: "test", (0,0))
})
}) I'm getting an error: #cetz.canvas({
import cetz.draw: *
group(
anchor: "test2",
{
circle(name: "test", (0,0))
circle(name: "test2", (name: "test", anchor: 20deg), radius: .1, fill: red)
})
}) It works as expected. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can use the string syntax |
Beta Was this translation helpful? Give feedback.
You can use the string syntax
"test.20deg"
or create an intermediate anchor insides the group and use thatanchor("o", (name: "test", anchor: 20deg))
.