- Added
plot.add-contour(..)
for plotting contour plots - Added
plot.add-hline(..)
andplot.add-vline(..)
for plotting h/v lines - Added
fill-type
option toplot.add(..)
for specifying a fill type (axis or shape) - Changed default samples from 100 to 50!
- Fixed plot filling in some cases
CeTZ requires Typst 0.8.0.
- New
on-layer(layer, body)
function for drawing with a given layer/z-index - New
catmull(..)
function for drawing catmull-rom curves - Changed default anchors of circles and arcs to anchors on the elliptical path
- Added style option to specify triangle mark angle
- Fixed rect anchors if coordinates were swapped
- Fixed bezier extrema/aabb calculation
- Fixed bug with
content
andintersections
- Fixed automatic mark offset for lines
- Fixed problems with style inheritance
- Added
sample-at: (..)
option toplot.add(..)
for specifying extra sample points - Added
line: <linear|spline|vh|hv|vhv>
support - The plot lib tries to linearize data to reduce draw calls
- Fixed custom tick plot formatting
- Allow plots without data
- New decoration library by @RubixDev for drawing braces
- New
angle
library for drawing angles
- Support tick label rotation
- Support negative tick mark direction
- Fixed
arc
with negative delta - Fixed division by 0 error when calculating bezier extremas
- Added
mark: (..)
support forbezier
andbezier-through
- Changed
content
to allow for a second coordinate to span content between - Added
content: (frame: "rect"|"circle")
style for drawing a frame around content - Default triangle mark angle changed. It can now be set via the style attribute
angle
. - Arrowheads on lines are now offset so the tip of the triangle points exactly on the target position
- Added arguments
plot-style
andmark-style
to theplot(..)
base function that allow providing a base style that gets inherited by all graphs. Plots now default to the color pattern (blue, red, green, yellow, black) for stroking & filling graphs.
- Fixed axis label alignment.
- Fixed issue #24, assert if line has fewer than two points.
- Fixed an issue with calculating bounding boxes for some transformed paths
- Fixed barchart bars getting labeled in reversed order
- The
content
function now supports a second coordinate asangle
, to compute the rotation angle between the origin. - Anchors of the
content
function are now properly rotated.
- Added the
tree
module for laying out trees.
- Changed transformation matrix multiplication order from
Local * World to
World * Local. - Added
set-viewport
function for setting up scaling and translation to draw insides a rectangular region. - The function
rect
now emits rotated anchors, before it did not set anchors but used the bounding box. - New function
copy-anchors
to copy anchors of an element into a group. - Arcs are now approximated using up to 4 bezier curves instead of using sampling with straight lines.
- New function
intersections
that emits anchors at all child element intersection points.
- Added new library
chart
for drawing charts, currently only bar- and columncharts are supported.
- Added new library
plot
for drawing line charts (of functions), replacingtypst-plot
.