ITADN

版本发布 3

v0.11.3
? · 2025-07-21

**[Crates.io](https://crates.io/crates/kurbo/0.11.3) | [Docs](https://docs.rs/kurbo/0.11.3/)** This release has an [MSRV][] of 1.65. ### Added - Add `current_position` method to `BezPath`. (#462 by @sagudev) - Add `From` conversions between `euclid` and `kurbo` types behind the `euclid` feature. (#463 by @sagudev) - Add Green's theorem moments. (#452 by @simoncozens) - Make `Vec2::splat` public. (#469 by @xorgy) ### Changed - Let more methods take `Into<Point>` instead of `Point`. (#466 by @sagudev) **Note**: this can impact type inference. - Inline the `Mul<PathEl>` implementation for `Affine`. (#461 by @LaurenzV) - Inline the `next` method of the `ToQuads` iterator. (#460 by @LaurenzV) - Avoid calling `f64::hypot`, as it calls a slow library function. (#448 by @beholdnec, #451 by @raphlinus) ### Fixed - Documentation of `RoundedRect` no longer incorrectly specifies the corner radii are equal. (#447 by @tomcur) - Fixed negative dash offset by normalization. (#454 by @sagudev) - Use exact endpoints for `PathSeg`. (#465 by @jneem) ## New Contributors * @beholdnec made their first contribution in #448 * @sagudev made their first contribution in #454 **Full Changelog**: https://github.com/linebender/kurbo/compare/v0.11.2...v0.11.3 [MSRV]: README.md#minimum-supported-rust-version-msrv

v0.11.2
? · 2025-04-28

## 0.11.2 (2025-04-28) This release has an [MSRV][] of 1.65. ### Added - `Stroke` is now `PartialEq`, `StrokeOpts` is now `Clone`, `Copy`, `Debug`, `Eq`, `PartialEq`. (#379 by @waywardmonkeys) - Implement `Sum` for `Vec2`. (#399 by @Philipp-M) - Add triangle shape. (#350 by @juliapaci, #387 by [@tomcur) - Implement `Div<f64>` and `Mul<f64>` for `Insets`. (#384 by @liferooter) - Add `Vec2::turn_90` and `Vec2::rotate_scale` methods (#409 by @raphlinus) - Add `min` and `max` methods to `Size`. (#412 by @nils-mathieu) - Add an `INFNITY` constant to `Size`. (#413 by @nils-mathieu) - Add `BezPath::with_capacity` method (#418 by @LaurenzV) - Add `Affine::scale_about` and `Affine::then_scale_about`. (#429 by @xorgy) ### Changed - Reduce number of operations in `Triangle::circumscribed_circle`. (#390 by @tomcur) - Numerically approximate ellipse perimeter. (#383, #407 by @tomcur) - Always inline trivial casts, splats, and swizzles. (#428 by @xorgy) ### Fixed - Fix documentation of `Affine::svd`. (#388 by @tomcur) - Fix documentation of cross product. (#409 by @raphlinus) ## New Contributors * @juliapaci made their first contribution in https://github.com/linebender/kurbo/pull/350 * @tomcur made their first contribution in https://github.com/linebender/kurbo/pull/383 * @Philipp-M made their first contribution in https://github.com/linebender/kurbo/pull/399 * @liferooter made their first contribution in https://github.com/linebender/kurbo/pull/384 * @LaurenzV made their first contribution in https://github.com/linebender/kurbo/pull/418 * @xorgy made their first contribution in https://github.com/linebender/kurbo/pull/429 **Full Changelog**: https://github.com/linebender/kurbo/compare/v0.11.1...v0.11.2 [MSRV]: README.md#minimum-supported-rust-version-msrv

v0.11.1
? · 2024-09-13

## 0.11.1 (2024-09-12) This release has an [MSRV][] of 1.65. ### Added - Add `From (f32, f32)` for `Point`. ([#339] by [@rsheeter]) - Add `Rect::overlaps` and `Rect::contains_rect`. ([#347] by [@nils-mathieu]) - Add `CubicBez::tangents` ([#288] by [@raphlinus]) - Add `Arc::reversed`. ([#367] by [@waywardmonkeys]) - Add `CircleSegment::inner_arc` and `CircleSegment::outer_arc` ([#368] by [@waywardmonkeys]) - Add `Rect::is_zero_area` and `Size::is_zero_area` and deprecate their `is_empty` methods. ([#370] by [@waywardmonkeys]) - Add `Line::reversed` and `Line::midpoint`. ([#375] by [@waywardmonkeys]) - Allow construction of `Line` from `(Point, Point)` and `(Point, Vec2)`. ([#376] by [@waywardmonkeys]) ### Changed - Move `Self: Sized` bound from `Shape` to methods. ([#340] by [@waywardmonkeys]) - Enable partial SVG path support in `no_std` builds. ([#356] by [@waywardmonkeys]) - Deprecate `BezPath::flatten`, prefer `flatten`. ([#361] by [@waywardmonkeys]) ### Fixed - An edge case in `mindist` was fixed. ([#334] by [@platlas]) - Allow lines in simplify input. ([#343] by [@raphlinus]) - Don't skip first dash in dash pattern. ([#353] by [@dominikh]) - Documentation for `Arc.perimeter` was corrected. ([#354] by [@simoncozens]) - Parsing scientific notation in an SVG path was fixed. ([#365] by [@GabrielDertoni]) ## New Contributors * @nils-mathieu made their first contribution in https://github.com/linebender/kurbo/pull/347 * @GabrielDertoni made their first contribution in https://github.com/linebender/kurbo/pull/365 * @dominikh made their first contribution in https://github.com/linebender/kurbo/pull/353 **Full Changelog**: https://github.com/linebender/kurbo/compare/v0.11.0...v0.11.1 [MSRV]: README.md#minimum-supported-rust-version-msrv