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

line: Add center anchor #602

Open johannes-wolf opened 1 month ago

johannes-wolf commented 1 month ago

WIP This adds a center anchor to closed lines (polygons).

TODO Add calculation to merge-path for closed paths, sample curves first.

@Enivex @fenjalien Should this anchor be called "centroid"? We could also add that as a default anchor that gets calculated on demand (if possible) or fails if impossible.