cetz-package / cetz

CeTZ: ein Typst Zeichenpaket - A library for drawing stuff with Typst.
https://cetz-package.github.io
GNU Lesser General Public License v3.0
893 stars 36 forks source link

set-style(mark: (end: ">")) fails with bezier curve #185

Closed raphCode closed 1 year ago

raphCode commented 1 year ago
#import"@preview/cetz:0.1.1"

#cetz.canvas(length:1cm, {
  import cetz.draw: *
  set-style(mark: (end: ">"))
  bezier((0,0), (2, 2), (1, 0))
})

error: expected color or none, found auto

Expected result: image

johannes-wolf commented 1 year ago

I have opened a PR to change the styling system. This would resolve this bug, too. Please have a look here: #189

johannes-wolf commented 1 year ago

Fixed with #200