Skip to content

Fix undef var in n-star() anchor calculation - #1156

Open
Jollywatt wants to merge 1 commit into
cetz-package:masterfrom
Jollywatt:fix-n-star
Open

Jollywatt wants to merge 1 commit into
cetz-package:masterfrom
Jollywatt:fix-n-star

Conversation

@Jollywatt

Copy link
Copy Markdown
Contributor

Must have slipped past a refactor…

Before,

#cetz.canvas({
    import cetz.draw: *
    n-star((), 3, name: "s", inner-radius: 10pt)
    circle("s.edge-4", radius: 5pt, stroke: none, fill: red)
})

gave

error: unknown variable: points
       ┌─ "/src/draw/shapes.typ":851:12
       │
   851 │             points.at(idx),
       │             ^^^^^^

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

Successfully merging this pull request may close these issues.

1 participant