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
731 stars 34 forks source link

Mark Improvements List #331

Open fenjalien opened 7 months ago

fenjalien commented 7 months ago

Here are my suggestions of features/improvements to make for parity with tikz (from #314). Some of them we already have (not sure exactly which), some are implemented natively by typst.

Styling:

Configuration options

tip specifications

implemenation

johannes-wolf commented 7 months ago

I would also like to allow passing functions (of a specified format) instead of arrow-names that then get used for drawing.

johannes-wolf commented 7 months ago

I suggest moving parts of this post 0.2.0. We already got lots of improvements on marks and I would rather try to get out a release soon, so we get a little testing and feedback for 0.2.0.

I also think TikZ does a little too much here…, e.g. allowing to specify an angle when you already can specify width/length for marks is just a shortcut for the width/length calculation + all the different mark styles.

johannes-wolf commented 5 months ago

I guess we can mark some more of these features as implemented. Rays got implemented, but one can not specify the number of lines. Instead, three preconfigured styles "+", "*" and "x" are available for 4 and 5 corner rays.