This release has an MSRV of 1.85.
Added
Stroke::is_finiteandStroke::is_nan. (#545 by @waywardmonkeys)- Component-wise
Insets::min/maxmethods. (#548 by @xStrom) - Ability to add and subtract
Insetsfrom otherInsets. (#549 by @xStrom) Arcnow implementsParamCurve. (#378 by @waywardmonkeys)Affine::{pre,then}_skewandAffine::{pre,then}_reflectfluent composition helpers. (#563 by @waywardmonkeys)- Three transform matrix norms:
Affine::{nuclear_norm_squared,frobenius_norm_squared,spectral_norm}. (#569 by @tomcur) StrokeOpts::stable_dash_orderto keep dashes at fixed path-relative positions instead of merging the first/last dash across. (#550 by @RobertBrewitz)expand_pathanisotropic path expansion. (#575 by @raphlinus)
Changed
- Improved performance of
RoundedRect::windingandRoundedRect::contains. (#534 by @tomcur) Axis,Ellipse::from_affine,Insets,Line::reversed,Rect::min_x/max_x/min_y/max_y,RoundedRectRadii::abs/clamp/as_single_radius,RoundedRect::width/height/radii/rect/origin/center,Size::aspect_ratio,Stroke::new/with_join/with_miter_limit/with_start_cap/with_end_cap/with_capsare all nowconst. (#536 by @xStrom, #539 and #561 by @tomcur)- Improved performance of
Ellipse::area. Note: for non-finite ellipses, this method may now returnf64::INFINITYwhere it returnedf64::NANbefore. (#559 by @tomcur) - Improved numerical robustness of winding numbers for paths. (#537 by @jneem)
Fixed
Affine::pre_rotate_aboutcalculation. (#567 by @dannymcgee)- Now closing subpaths when computing area for expansion. (#580 by @raphlinus)
- Odd-length dash patterns no longer swap dashes and gaps when
dash_offsetincreases. (#585 by @Keavon)
New Contributors
- @ztaaha made their first contribution in #554
- @dannymcgee made their first contribution in #567
- @RobertBrewitz made their first contribution in #550
- @Keavon made their first contribution in #585
Full Changelog: v0.13.0...v0.13.1