-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
text_system
split
#7779
text_system
split
#7779
Commits on Feb 17, 2023
-
* Added a new trait `MeasureNode`. * Added new structs `ImageMeasure` and `BasicMeasure` that implement `MeasureNode`. * Add a field to `CalculatedSize` called `measure` that takes a boxed `MeasureNode`. * `upsert_leaf` uses the `measure` of `CalculatedSize` to create a `MeasureFunc` for the node.
Configuration menu - View commit details
-
Copy full SHA for 3a09af9 - Browse repository at this point
Copy the full SHA 3a09af9View commit details -
Configuration menu - View commit details
-
Copy full SHA for b1712b8 - Browse repository at this point
Copy the full SHA b1712b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 080aae7 - Browse repository at this point
Copy the full SHA 080aae7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c4c01d - Browse repository at this point
Copy the full SHA 9c4c01dView commit details
Commits on Feb 18, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 8934a6f - Browse repository at this point
Copy the full SHA 8934a6fView commit details
Commits on Feb 19, 2023
-
* Added the `TextLayoutInfo` component to `TextBundle`. * Added the `TextLayoutInfo` component to `Text2dBundle`. * Changed `TextLayoutInfo` queries to be non-optional.
Configuration menu - View commit details
-
Copy full SHA for fc9b2d9 - Browse repository at this point
Copy the full SHA fc9b2d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for f7d20ea - Browse repository at this point
Copy the full SHA f7d20eaView commit details
Commits on Feb 21, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 13091a3 - Browse repository at this point
Copy the full SHA 13091a3View commit details -
Merge branch 'split-text-system' of https://github.com/ickshonpe/bevy …
…into split-text-system
Configuration menu - View commit details
-
Copy full SHA for cfdb649 - Browse repository at this point
Copy the full SHA cfdb649View commit details -
Configuration menu - View commit details
-
Copy full SHA for 621a117 - Browse repository at this point
Copy the full SHA 621a117View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3981c7f - Browse repository at this point
Copy the full SHA 3981c7fView commit details -
* Renamed `CalculatedSize` to `IntrinsicSize`. It is now non-copy. Added a field `measure` and removed `preserve_aspect_ratio`. * Added `measurement` module to `bevy_ui` * Added `Measure` trait. A `Measure` is used to compute the size of an intrisically sized node. * Added `ImageMeasure` and `FixedMeasure` `Measure` implementations. * Changed `update_image_calculated_size_system` to use `ImageMeasure`. * Changed `upsert_leaf` to use the `Measure` of `CalculatedSize` for the `MeasureFunc` of intrinsically sized nodes.
Configuration menu - View commit details
-
Copy full SHA for b004072 - Browse repository at this point
Copy the full SHA b004072View commit details -
* Added the system (dummy atm) `measure_text_system` * Changed the system execution order so that `measure_text_system` replaces `text_system` in the order. `text_system` now runs after `UiSystem::Flex`. Previously the `text_system` ran before the layout was calculated and the size of the text node was determined, so it couldn't shape the text correctly to fit the layout, and had no way of determining if the text needed to be wrapped. There was a hack, the system `text_constraint` that tried to determine the size of the node from the local size constraints of the node in its `Style` component. This could not work correctly, `Val::Percent` constraints just had to be ignored as they are calcualted from size of the parent node and the `Val::Px` constraints are just a guess, without computing the rest of the layout. Also because the `text_system` queried for changes to the `Style` component, and not the `Node` component, it couldn't react to changes in the layout correctly. The layout system then wouldn't recieve all the information it would need to fit the text node correctly, such as the `max-content` and `min-content` sizes.
Configuration menu - View commit details
-
Copy full SHA for af7b6f2 - Browse repository at this point
Copy the full SHA af7b6f2View commit details -
* implemented the `measure_text_system` function. * Added the `TextMeasure` type that implements measure. * Added the `TextQueue` resource struct. * Added methods to the `TextPipeline` to get min and max content sizes for the text.
Configuration menu - View commit details
-
Copy full SHA for 2280bb0 - Browse repository at this point
Copy the full SHA 2280bb0View commit details -
changes: * Removed `TextQueue` * Added `min_content`, `max_content` and `ideal` fields to IntrinsicSize. * Added `ideal_height` field to `TextMeasure`. * Fixed text system queueing and change detection issues. `measure_text_system` only queries for modified `Text`, `text_system` queuries for `Text` or `Node` changes.
Configuration menu - View commit details
-
Copy full SHA for f510899 - Browse repository at this point
Copy the full SHA f510899View commit details -
Configuration menu - View commit details
-
Copy full SHA for 95d7c96 - Browse repository at this point
Copy the full SHA 95d7c96View commit details -
Configuration menu - View commit details
-
Copy full SHA for 91a05d2 - Browse repository at this point
Copy the full SHA 91a05d2View commit details
Commits on Feb 27, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 1ee6233 - Browse repository at this point
Copy the full SHA 1ee6233View commit details
Commits on Mar 14, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 5944e4b - Browse repository at this point
Copy the full SHA 5944e4bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 540f51e - Browse repository at this point
Copy the full SHA 540f51eView commit details -
Renamed
IntrinsicSize
back toCalculatedSize
, too many changes in…… this PR already.
Configuration menu - View commit details
-
Copy full SHA for ac267a9 - Browse repository at this point
Copy the full SHA ac267a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 70f5422 - Browse repository at this point
Copy the full SHA 70f5422View commit details
Commits on Mar 16, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 1fe7ac7 - Browse repository at this point
Copy the full SHA 1fe7ac7View commit details
Commits on Mar 21, 2023
-
Configuration menu - View commit details
-
Copy full SHA for d919ac7 - Browse repository at this point
Copy the full SHA d919ac7View commit details -
Cleaned up unused code and fields.
Renamed `size` field of `CalculatedSize` to `previous_size`.
Configuration menu - View commit details
-
Copy full SHA for 8a4c73d - Browse repository at this point
Copy the full SHA 8a4c73dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ae0d4d - Browse repository at this point
Copy the full SHA 5ae0d4dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 711036b - Browse repository at this point
Copy the full SHA 711036bView commit details
Commits on Mar 31, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 74afca0 - Browse repository at this point
Copy the full SHA 74afca0View commit details -
* rewrote text measurefunc * text bounds for min and max content widths are precomputed
Configuration menu - View commit details
-
Copy full SHA for 941c018 - Browse repository at this point
Copy the full SHA 941c018View commit details -
Configuration menu - View commit details
-
Copy full SHA for 89eb505 - Browse repository at this point
Copy the full SHA 89eb505View commit details -
Configuration menu - View commit details
-
Copy full SHA for ffb59a8 - Browse repository at this point
Copy the full SHA ffb59a8View commit details -
Configuration menu - View commit details
-
Copy full SHA for cbb1d17 - Browse repository at this point
Copy the full SHA cbb1d17View commit details
Commits on Apr 14, 2023
-
* Removed the `previous_size` field from `CalculatedSize` and replaced it with the component `UiImageSize`. The only purpose of the `previous_size` component of `CalculatedSize` was for image size change detection. It makes much more sense to store the image size directly in its own component and it enables users to query the size of a node's image if they need to. * Added the `UiImageSize` component to `ImageBundle`.
Configuration menu - View commit details
-
Copy full SHA for 8547ce2 - Browse repository at this point
Copy the full SHA 8547ce2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 76ea8a0 - Browse repository at this point
Copy the full SHA 76ea8a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c15af9 - Browse repository at this point
Copy the full SHA 6c15af9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 08aa11c - Browse repository at this point
Copy the full SHA 08aa11cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 410a4ec - Browse repository at this point
Copy the full SHA 410a4ecView commit details -
Configuration menu - View commit details
-
Copy full SHA for a04e100 - Browse repository at this point
Copy the full SHA a04e100View commit details -
Configuration menu - View commit details
-
Copy full SHA for af1f990 - Browse repository at this point
Copy the full SHA af1f990View commit details -
Merge branch 'split-text-system' of https://github.com/ickshonpe/bevy …
…into split-text-system
Configuration menu - View commit details
-
Copy full SHA for 10e2ddc - Browse repository at this point
Copy the full SHA 10e2ddcView commit details -
Configuration menu - View commit details
-
Copy full SHA for ee1d1f3 - Browse repository at this point
Copy the full SHA ee1d1f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f1eb15 - Browse repository at this point
Copy the full SHA 8f1eb15View commit details
Commits on Apr 15, 2023
-
Update crates/bevy_ui/src/widget/image.rs
Co-authored-by: François <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2ec10d8 - Browse repository at this point
Copy the full SHA 2ec10d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for be4053c - Browse repository at this point
Copy the full SHA be4053cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7526fc6 - Browse repository at this point
Copy the full SHA 7526fc6View commit details -
Update crates/bevy_text/src/pipeline.rs
Co-authored-by: François <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e33bc19 - Browse repository at this point
Copy the full SHA e33bc19View commit details -
Configuration menu - View commit details
-
Copy full SHA for 68c6e98 - Browse repository at this point
Copy the full SHA 68c6e98View commit details -
Merge branch 'split-text-system' of https://github.com/ickshonpe/bevy …
…into split-text-system
Configuration menu - View commit details
-
Copy full SHA for 2779750 - Browse repository at this point
Copy the full SHA 2779750View commit details