gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 979HTML 924Markdown 12TOML 82994 Definiciones

⎇ a753f291028c63f3bd68cff994ba254a17c891cc RELEASES.md Markdown · 70 líneas · 3.5 KB Historia crudo

Make `MeasureFunc` Send and Sync (#157) e35eef766 · 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- `MeasureFunc` (and hence `NodeData` and hence `Forest` and hence the public `Taffy` type) are now `Send` and `Sync`, enabling their use in async and parallel applications
26
27### 0.2.0 Removed
28
29- various internal types are no longer public
30  - if you needed one of these, please file an issue!
31
32## 0.1.0
33
34### 0.1.0 Changed
35
36- the `order` field of `Layout` is now public, and describes the relative z-ordering of nodes
37- renamed crate from `stretch2` to `taffy`
38- updated to the latest version of all dependencies to reduce upstream pain caused by duplicate dependencies
39- renamed `stretch::node::Strech` -> `taffy::node::Taffy`
40
41### 0.1.0 Fixed
42
43- fixed feature strategy for `alloc` and `std`: these can now be compiled together, with `std`'s types taking priority
44
45### 0.1.0 Removed
46
47- removed Javascript / Kotlin / Swift bindings
48  - the maintainer team lacks expertise to keep these working
49  - more serious refactors are planned, and this will be challenging to keep working through that process
50  - if you are interested in helping us maintain bindings to other languages, [get in touch](https://github.com/DioxusLabs/taffy/discussions)!
51- 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)
52- removed the `Direction` and `Overflow` structs, and the corresponding `direction` and `overflow` fields from `Style`
53  - these had no effect in the current code base and were actively misleading
54
55## stretch2 0.4.3
56
57This is the final release of `stretch`: migrate to the crate named `taffy` for future fixes and features!
58
59These notes describe the differences between this release and `stretch` 0.3.2, the abandoned crate from which this library was forked.
60
61### Changed
62
63- updated [assorted dependencies](https://github.com/vislyhq/stretch/commit/a6491117379cea52dedc9584d892594a143e8cb0)
64
65### Fixed
66
67- fixed an exponential performance blow-up with deep nesting
68- fixed percent height values, which were using parent width
69- recomputing layout no longer moves children of non-zero-positioned parent
70- 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