Skip to content

Hidden arc gets drawn in CeTZ 0.4.2 #146

@LordBaryhobal

Description

@LordBaryhobal

For some reason, the hidden arcs drawn in smartart/cycle.typ are rendered, even though they are wrapped inside a draw.hide:

draw.hide(draw.arc-through(
..pts,
name: "arc-" + str(i)
))

I suspect this is because cetz-plot uses CeTZ v0.4.0 while the canvas is from v0.4.2, as demonstrated below

#import "@preview/cetz:0.4.1" as cetz4-1
#import "@preview/cetz:0.4.2" as cetz4-2

#cetz4-2.canvas({
  cetz4-1.draw.hide({
    cetz4-1.draw.arc-through(
      (0, 0),
      (1, 0.5),
      (2, 0)
    )
  })
})
Image

The version of CeTZ used my CeTZ-Plot should thus be updated, but it seems like a breaking change was introduced between 0.4.1 and 0.4.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions