Jollywatt/typst-fletcher

Compile error on the example in README

Myriad-Dreamin opened this issue · 1 comments

Thank you for providing this awesome package. I copy the example for testing but typst complains a compile error.

The c variable in the example is undefined:

#fletcher.diagram(
	node-fill: rgb("aaca"),
	node-outset: 2pt,
	axes: (ltr, btt),

	node((0,0), `typst`),
	node((1,0), "A"),
	node((2.5,0), "B", stroke: c + 2pt), // Here!!!!!!
	node((2,1), "C", extrude: (+1, -1)),

	for i in range(3) {
		edge((0,0), (1,0), bend: (i - 1)*25deg)
	},
	edge((1,0), (2,1), "..}>", corner: right),
	edge((1,0), (2.5,0), "-||-|>", bend: -0deg),
)

Whoops, nice catch.
Fixed in 7a90540
Thanks:)