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
819 stars 35 forks source link

Some examples don't seem to work. #7

Closed taylorh140 closed 1 year ago

taylorh140 commented 1 year ago

I have a local install of typst 0.2.0 (23/04/11). when in try to compile the \demo\3d-diagram.typ i get the following error:

error: expected length, color, stroke, none, or auto, found dictionary
    ┌─ C:\Work\devEnv\typst\libs\canvas\canvas.typ:240:25
    │
240 │       place(path(stroke: self.stroke, fill: self.fill,
    │                          ^^^^^^^^^^^

help: error occurred in this function call
    ┌─ C:\Work\devEnv\typst\libs\canvas\canvas.typ:256:6
    │  
256 │ ╭       draw.at(d.cmd)(d, ..d.pos.map(v =>
257 │ │         apply-transform((translate: translate), v).slice(0, 2)
258 │ │           .map(x => length * x)))
    │ ╰─────────────────────────────────^

[Finished in 182ms]
johannes-wolf commented 1 year ago

This example uses features from typst/main (stroke styles). Commenting out line 7 and 12 allows compilation with the latest released version.

taylorh140 commented 1 year ago

Ahh very cool. I had a feeling it was something like that.