build(deps): bump taffy from 0.3.18 to 0.4.3
Bumps taffy from 0.3.18 to 0.4.3.
Release notes
Sourced from taffy's releases.
v0.4.3
Fixes
- Fix compilation error in
evenly_sized_tracksstyle helper in recent versions of rustc caused by a change/regression in type inference (#643). Note that 3rd-party code that call style helpers that take anInto<f32>parameter may still be affected by this issue, but they should be able to fix on their side by clarifying the type passed inv0.4.2
- Fixed: single-line flex-container should clamp the line's cross-size (#638)
- Reduced binary footprint of Taffy from around 300kb to around 150kb (#636)
v0.4.1
- Fixed: CSS Grid track sizing not respecting growth limits in some circumstances (#624)
v0.4.0
Highlights
- Support for CSS Block layout (
display: block)- Support for the
overflowproperty (+scrollbar_widthforoverflow: scroll)- Improved measure function API
- Completely refactored low-level API
- Simplified module hierarchy (+ most types/functions are now exported from the crate root)
- Expanded set of examples which better document integration with other layout systems (e.g. text layout)
- Computed values for
paddingandborderare now output into theLayoutstructBlock layout
Support for CSS Block layout has been added. This can be used via the new
Display::Blockvariant of theDisplayenum. Note that full flow layout: inline, inline-block and float layout have not been implemented. The use case supported is block container nodes which contain block-level children.Overflow property
Support has been added for a new
overflowstyle property withVisible,Clip,Hidden, andScrollvalues (Autois not currently implemented). Additionally ascrollbar_widthproperty has been added to control the size of scrollbars for nodes withOverflow::Scrollset.
- Overflow is settable indpendently in each axis.
VisibleandClipwill produce layouts equivalent to the Taffy 0.3.Clipwill affect the newcontent_sizeoutput by restricting it to the available space.HiddenandScrollaffect layout by changing the automatic minimum size of Flexbox and Grid childrenScrolladditionally reservesscrollbar_widthpixels for a scrollbar in the opposite axis to which scrolling is enabled.Scrollwithscrollbar_widthset to zero is equivalent toHidden.Measure function changes
The "measure function" API for integrating Taffy with other measurement systems (such as text layout) has been changed to be more flexible and to interact better with borrow checking (you can now borrow external data in your measure function!).
- There are no longer per-node measure functions.
- There is now a single "global" measure function, and a per-node "context" of a user-defined type
- The
Taffytree is now a genericTaffyTree<T>whereTis the "context" type.- The measure function is now called for all leaf nodes (nodes without children). If you wish to maintain compatibility with the previous behaviour then your measure function should return
Size::ZEROfor leaf nodes whose context isNone.If you are not using measure functions, then the only change you will need to make is from:
</tr></table>
... (truncated)
Changelog
Sourced from taffy's changelog.
0.4.3
Fixes
- Fix compilation error in
evenly_sized_tracksstyle helper in recent versions of rustc caused by a change/regression in type inference (#643). Note that 3rd-party code that call style helpers that take anInto<f32>parameter may still be affected by this issue, but they should be able to fix on their side by clarifying the type passed in0.4.2
- Fixed: single-line flex-container should clamp the line's cross-size (#638)
- Reduced binary footprint of Taffy from around 300kb to around 150kb (#636)
0.4.1
- Fixed: CSS Grid track sizing not respecting growth limits in some circumstances (#624)
0.4.0
Highlights
- Support for CSS Block layout (
display: block)- Support for the
overflowproperty (+scrollbar_widthforoverflow: scroll)- Improved measure function API
- Completely refactored low-level API
- Simplified module hierarchy (+ most types/functions are now exported from the crate root)
- Expanded set of examples which better document integration with other layout systems (e.g. text layout)
- Computed values for
paddingandborderare now output into theLayoutstructBlock layout
Support for CSS Block layout has been added. This can be used via the new
Display::Blockvariant of theDisplayenum. Note that full flow layout: inline, inline-block and float layout have not been implemented. The use case supported is block container nodes which contain block-level children.Overflow property
Support has been added for a new
overflowstyle property withVisible,Clip,Hidden, andScrollvalues (Autois not currently implemented). Additionally ascrollbar_widthproperty has been added to control the size of scrollbars for nodes withOverflow::Scrollset.
- Overflow is settable indpendently in each axis.
VisibleandClipwill produce layouts equivalent to the Taffy 0.3.Clipwill affect the newcontent_sizeoutput by restricting it to the available space.HiddenandScrollaffect layout by changing the automatic minimum size of Flexbox and Grid childrenScrolladditionally reservesscrollbar_widthpixels for a scrollbar in the opposite axis to which scrolling is enabled.Scrollwithscrollbar_widthset to zero is equivalent toHidden.Measure function changes
The "measure function" API for integrating Taffy with other measurement systems (such as text layout) has been changed to be more flexible and to interact better with borrow checking (you can now borrow external data in your measure function!).
- There are no longer per-node measure functions.
- There is now a single "global" measure function, and a per-node "context" of a user-defined type
- The
Taffytree is now a genericTaffyTree<T>whereTis the "context" type.
... (truncated)
Commits
066949dPrepare for v0.4.3 release (#646)9f27870evenly_sized_tracks - fix simple compile error (#643)e8aef0cPrepare for v0.4.2 release (#641)8555ecdBump DavidAnson/markdownlint-cli2-action from 15 to 16 (#640)aad4f02fix: single-line flex-container should clamp the line's cross-size (#638)d43dd24Deduplicate track_sizing_algorithm function (save ~150kb binary size) (#636)b7a5a06Prepare for v0.4.1 release (#633)1c11925Grid: Respect growth limits when distributing space to base sizes (#632)d920d5fFix debug mode (#631)b3ee315fix: wordwrap calculation in measure example (#629)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)