tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 1068HTML 999Markdown 12TOML 83186 Definiciones

⎇ b1ea6794519524c818057af327f78c09ff379453 RELEASES.md Markdown · 69 líneas · 3.3 KB Historia crudo

Replace Number type with a simpler Option<f32> (#144) b1ea67945 · Alice Cecile ·

1# Release Notes
2
3## 0.2.0
4
5### 0.2.0 Added
6
7- Added `taffy::error::InvalidChild` Error type
8
9### 0.2.0 Changed
10
11- removed the public `Number` type; a more idiomatic `Option<f32>` is used instead
12  - the associated public `MinMax` and `OrElse` traits have also been removed; these should never have been public
13- `Sprawl::remove` now returns a `Result<usize, Error>`, to indicate if the operation was sucessful, and if it was, which ID was invalidated.
14- renamed `taffy::forest::Forest.new-node(..)` `taffy::forest::Forest.new_with_children(..)`
15- renamed `taffy::node::Taffy.new-node(..)` -> `taffy::node::Taffy.new_with_children(..)`
16- renamed `taffy::style::Style` -> `taffy::style::FlexboxLayout` to more precicely indicate its purpose
17- renamed `taffy::Error` -> `taffy::error::InvalidNode`
18- `taffy::Taffy::remove_child_at_index`, `taffy::Taffy::replace_child_at_index`, and `taffy::Taffy::child_at_index` now return `taffy::InvalidChild::ChildIndexOutOfBounds` instead of panicing
19
20### 0.2.0 Fixed
21
22- fixed rounding of fractional values to follow latest Chrome - values are now rounded the same regardless of their position
23- fixed computing free space when using both `flex-grow` and a minimum size
24- padding is now only subtracted when determining the available space if the node size is unspecified, following [section 9.2.2 of the flexbox spec](https://www.w3.org/TR/css-flexbox-1/#line-sizing)
25
26### 0.2.0 Removed
27
28- various internal types are no longer public
29  - if you needed one of these, please file an issue!
30
31## 0.1.0
32
33### 0.1.0 Changed
34
35- the `order` field of `Layout` is now public, and describes the relative z-ordering of nodes
36- renamed crate from `stretch2` to `taffy`
37- updated to the latest version of all dependencies to reduce upstream pain caused by duplicate dependencies
38- renamed `stretch::node::Strech` -> `taffy::node::Taffy`
39
40### 0.1.0 Fixed
41
42- fixed feature strategy for `alloc` and `std`: these can now be compiled together, with `std`'s types taking priority
43
44### 0.1.0 Removed
45
46- removed Javascript / Kotlin / Swift bindings
47  - the maintainer team lacks expertise to keep these working
48  - more serious refactors are planned, and this will be challenging to keep working through that process
49  - if you are interested in helping us maintain bindings to other languages, [get in touch](https://github.com/DioxusLabs/taffy/discussions)!
50- the `serde_camel_case` and `serde_kebab_case` features have been removed: they were poorly motivated and were not correctly additive (if both were enabled compilation would fail)
51- removed the `Direction` and `Overflow` structs, and the corresponding `direction` and `overflow` fields from `Style`
52  - these had no effect in the current code base and were actively misleading
53
54## stretch2 0.4.3
55
56This is the final release of `stretch`: migrate to the crate named `taffy` for future fixes and features!
57
58These notes describe the differences between this release and `stretch` 0.3.2, the abandoned crate from which this library was forked.
59
60### Changed
61
62- updated [assorted dependencies](https://github.com/vislyhq/stretch/commit/a6491117379cea52dedc9584d892594a143e8cb0)
63
64### Fixed
65
66- fixed an exponential performance blow-up with deep nesting
67- fixed percent height values, which were using parent width
68- recomputing layout no longer moves children of non-zero-positioned parent
69- fixed broken Swift bindings

RELEASES.md

Release Notes

0.2.0

0.2.0 Added

0.2.0 Changed

0.2.0 Fixed

0.2.0 Removed

0.1.0

0.1.0 Changed

0.1.0 Fixed

0.1.0 Removed

stretch2 0.4.3

This is the final release of stretch: migrate to the crate named taffy for future fixes and features!

These notes describe the differences between this release and stretch 0.3.2, the abandoned crate from which this library was forked.

Changed

Fixed