Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.
TypeScript 3dagent-skillsai-agentsai-videobevyclaude-codegame-enginegpulinuxmacosmotion-designmotion-graphicsreactrusttypescriptvideo-editingvideo-renderingwgpuwindows
FC0a: ui/widgets/feathers_gallery ports at 0.99561, with the rest of bevy_feathers: panes, sub-panes and groups; menus, selects, list views and tool buttons; checkboxes, radios, toggle switches, disclosure toggles and the slider; the text input, colour swatch, colour slider, colour plane and colour input; and its icons
shinyobjectz9fe4c0c30738
diff --git a/bench/bevy-parity/examples.list b/bench/bevy-parity/examples.listindex 273db698..5b804b90 100644--- a/bench/bevy-parity/examples.list+++ b/bench/bevy-parity/examples.list@@ -102,3 +102,4 @@ ui/widgets/standard_widgets_observersui/widgets/standard_widgetsui/widgets/feathers_counterui/widgets/feathers_number_input+ui/widgets/feathers_gallerydiff --git a/bench/bevy-parity/runs.tsv b/bench/bevy-parity/runs.tsvindex 8cb123f3..44798201 100644--- a/bench/bevy-parity/runs.tsv+++ b/bench/bevy-parity/runs.tsv@@ -101,3 +101,4 @@ ui/widgets/standard_widgets_observers - 10ui/widgets/standard_widgets - 10ui/widgets/feathers_counter - 10ui/widgets/feathers_number_input - 10+ui/widgets/feathers_gallery - 10diff --git a/docs/bevy-parity.md b/docs/bevy-parity.mdindex cc28708a..5a44c9ad 100644--- a/docs/bevy-parity.md+++ b/docs/bevy-parity.md@@ -4,7 +4,7 @@ Bevy v0.20.0's examples against their raea TSX ports (docs/control.feature FC0a)don't edit. An example passes when every probed frame passes pixels (SSIM 0.98 and no 32 px tile off by more than 24 of 255) and cost (batch keys andframe time at most 1.25x the example's). Wall time is one machine's, measured in the same run.-Examples: **438**, ported **102**, passing **98**, excluded **16** (docs/bevy-parity/excluded.tsv), left **324**.+Examples: **438**, ported **103**, passing **99**, excluded **16** (docs/bevy-parity/excluded.tsv), left **323**.raea's frame ms is its update's plus the time React takes to step a frame for its 3D (step), which the exampledoesn't pay.@@ -95,69 +95,70 @@ doesn't pay.| 3d/lightmaps | 5 | 1.000000 | 0 | 6 / 6 | 453 / 506 | 11 / 13 | 6 / 10 | 306.814 / 4.455 = 4.238 + 0.217 | yes | || 2d/mesh2d_vertex_color_texture | 10 | 0.998651 | 6 | 0 / 0 | 442 / 495 | 6 / 9 | 1 / 1 | 37.793 / 2.711 = 1.347 + 1.364 | yes | || 2d/mesh2d_repeated_texture | 10 | 0.991205 | 17 | 0 / 0 | 437 / 496 | 8 / 10 | 1 / 1 | 26.298 / 1.893 = 1.62 + 0.273 | yes | |-| ui/styling/transparency_ui | 10 | 0.999725 | 3 | 0 / 0 | 445 / 493 | 5 / 7 | 1 / 1 | 2.834 / 2.231 = 2.231 + 0 | yes | |-| ui/styling/transparency_ui | 5 | 0.999725 | 3 | 0 / 0 | 445 / 493 | 5 / 7 | 1 / 1 | 77.618 / 2.608 = 2.608 + 0 | yes | |-| ui/layout/fixed_node | 10 | 1.000000 | 0 | 0 / 0 | 444 / 493 | 5 / 7 | 1 / 1 | 2.355 / 2.016 = 2.016 + 0 | yes | |-| ui/layout/fixed_node | 5 | 1.000000 | 0 | 0 / 0 | 444 / 493 | 5 / 7 | 1 / 1 | 70.45 / 2.252 = 2.252 + 0 | yes | |-| ui/layout/flex_layout | 10 | 0.992175 | 8 | 0 / 0 | 602 / 493 | 5 / 7 | 1 / 1 | 42.793 / 2.089 = 2.089 + 0 | yes | |-| ui/images/image_node | 10 | 0.999965 | 0 | 0 / 0 | 442 / 493 | 5 / 7 | 1 / 1 | 2.647 / 1.917 = 1.917 + 0 | yes | |-| ui/images/image_node | 5 | 0.999965 | 0 | 0 / 0 | 442 / 493 | 5 / 7 | 1 / 1 | 72.43 / 3.588 = 3.588 + 0 | yes | |-| ui/text/font_weights | 10 | 0.991888 | 17 | 0 / 0 | 454 / 493 | 5 / 7 | 1 / 1 | 2.189 / 2.169 = 2.169 + 0 | yes | |-| ui/text/font_weights | 5 | 0.991888 | 17 | 0 / 0 | 454 / 493 | 5 / 7 | 1 / 1 | 75.477 / 4.094 = 4.094 + 0 | yes | |-| ui/text/font_variations | 10 | 0.994047 | 20 | 0 / 0 | 452 / 493 | 5 / 7 | 1 / 1 | 2.418 / 2.022 = 2.022 + 0 | yes | |-| ui/text/font_variations | 5 | 0.994047 | 20 | 0 / 0 | 452 / 493 | 5 / 7 | 1 / 1 | 75.184 / 2.708 = 2.708 + 0 | yes | |-| ui/text/text_background_colors | 10 | 0.998935 | 6 | 0 / 0 | 505 / 493 | 5 / 7 | 1 / 1 | 2.633 / 2.383 = 2.383 + 0 | yes | |-| ui/text/text_background_colors | 5 | 0.998935 | 6 | 0 / 0 | 505 / 493 | 5 / 7 | 1 / 1 | 69.545 / 3.366 = 3.366 + 0 | yes | |-| ui/text/strikethrough_and_underline | 10 | 0.990854 | 15 | 0 / 0 | 454 / 493 | 5 / 7 | 1 / 1 | 2.327 / 1.946 = 1.946 + 0 | yes | |-| ui/text/strikethrough_and_underline | 5 | 0.990854 | 15 | 0 / 0 | 454 / 493 | 5 / 7 | 1 / 1 | 73.353 / 2.916 = 2.916 + 0 | yes | |-| ui/scroll_and_overflow/overflow | 10 | 0.998778 | 4 | 0 / 0 | 461 / 493 | 5 / 7 | 1 / 1 | 2.288 / 3.005 = 3.005 + 0 | yes | |-| ui/scroll_and_overflow/overflow | 5 | 0.998778 | 4 | 0 / 0 | 461 / 493 | 5 / 7 | 1 / 1 | 65.188 / 2.319 = 2.319 + 0 | yes | |-| ui/scroll_and_overflow/overflow_clip_margin | 10 | 0.997330 | 7 | 0 / 0 | 465 / 493 | 5 / 7 | 1 / 1 | 36.682 / 1.812 = 1.812 + 0 | yes | |-| ui/images/ui_texture_atlas | 10 | 0.999781 | 5 | 0 / 0 | 445 / 493 | 5 / 7 | 1 / 1 | 2.298 / 2.266 = 2.266 + 0 | yes | |-| ui/images/ui_texture_atlas | 5 | 0.999781 | 5 | 0 / 0 | 445 / 493 | 5 / 7 | 1 / 1 | 64.26 / 2.248 = 2.248 + 0 | yes | |-| ui/images/ui_texture_slice | 10 | 0.998933 | 8 | 0 / 0 | 447 / 493 | 5 / 7 | 1 / 1 | 37.554 / 2.148 = 2.148 + 0 | yes | |-| ui/images/ui_texture_atlas_slice | 10 | 0.990805 | 16 | 0 / 0 | 447 / 493 | 5 / 7 | 1 / 1 | 40.22 / 1.777 = 1.777 + 0 | yes | |-| ui/images/ui_texture_slice_flip_and_tile | 10 | 1.000000 | 0 | 0 / 0 | 461 / 493 | 5 / 7 | 1 / 1 | 38.792 / 2.161 = 2.161 + 0 | yes | |-| ui/widgets/button | 10 | 0.999667 | 8 | 0 / 0 | 444 / 493 | 5 / 7 | 1 / 1 | 38.306 / 2 = 2.0 + 0 | yes | |-| ui/text/letter_spacing | 10 | 0.996228 | 13 | 0 / 0 | 455 / 493 | 5 / 7 | 1 / 1 | 42.621 / 2.613 = 2.613 + 0 | yes | |-| ui/window_fallthrough | 10 | 0.992226 | 16 | 0 / 0 | 441 / 493 | 5 / 7 | 1 / 1 | 40.543 / 2.154 = 2.154 + 0 | yes | |-| ui/text/inline_image | 10 | 0.998400 | 7 | 0 / 0 | 446 / 493 | 5 / 7 | 1 / 1 | 40.3 / 1.803 = 1.803 + 0 | yes | |-| ui/layout/z_index | 10 | 1.000000 | 0 | 0 / 0 | 447 / 493 | 5 / 7 | 1 / 1 | 41.57 / 2.348 = 2.348 + 0 | yes | |-| ui/styling/stacked_gradients | 10 | 0.994550 | 1 | 0 / 0 | 442 / 493 | 5 / 7 | 1 / 1 | 37.884 / 2.055 = 2.055 + 0 | yes | |-| ui/text/generic_font_families | 10 | 0.990143 | 19 | 0 / 0 | 457 / 493 | 5 / 7 | 1 / 1 | 42.309 / 2.093 = 2.093 + 0 | yes | |-| ui/layout/ghost_nodes | 10 | 0.998540 | 9 | 0 / 0 | 455 / 493 | 5 / 7 | 1 / 1 | 39.986 / 2.3 = 2.3 + 0 | yes | |-| ui/relative_cursor_position | 10 | 0.999899 | 2 | 0 / 0 | 443 / 493 | 5 / 7 | 1 / 1 | 38.933 / 1.696 = 1.696 + 0 | yes | |-| ui/ui_target_camera | 10 | 0.998726 | 7 | 0 / 0 | 452 / 493 | 5 / 7 | 1 / 1 | 39.367 / 1.861 = 1.861 + 0 | yes | |-| ui/text/text_wrap_debug | 10 | 0.985334 | 15 | 0 / 0 | 589 / 493 | 5 / 7 | 1 / 1 | 41.608 / 2.778 = 2.778 + 0 | yes | |-| ui/layout/grid | 10 | 0.994691 | 14 | 0 / 0 | 482 / 493 | 5 / 7 | 1 / 1 | 40.094 / 2.305 = 2.305 + 0 | yes | |-| ui/ui_scaling | 10 | 0.999855 | 5 | 0 / 0 | 446 / 493 | 5 / 7 | 1 / 1 | 38.124 / 1.896 = 1.896 + 0 | yes | |-| ui/layout/anchor_layout | 10 | 0.997324 | 9 | 0 / 0 | 468 / 493 | 5 / 7 | 1 / 1 | 39.711 / 1.871 = 1.871 + 0 | yes | |-| ui/layout/size_constraints | 10 | 0.991720 | 19 | 0 / 0 | 608 / 493 | 5 / 7 | 1 / 1 | 41.814 / 2.166 = 2.166 + 0 | yes | |-| ui/scroll_and_overflow/overflow_transform | 10 | 0.995396 | 12 | 0 / 0 | 447 / 493 | 5 / 7 | 1 / 1 | 38.294 / 2.072 = 2.072 + 0 | yes | |-| ui/text/text | 10 | 0.990695 | 8 | 0 / 0 | 459 / 493 | 5 / 7 | 1 / 1 | 40.745 / 2.046 = 2.046 + 0 | yes | |-| ui/text/text_debug | 10 | 0.983961 | 18 | 0 / 0 | 458 / 493 | 5 / 7 | 1 / 1 | 42.062 / 2.345 = 2.345 + 0 | yes | |-| ui/ui_transform | 10 | 0.999110 | 6 | 0 / 0 | 463 / 493 | 5 / 7 | 1 / 1 | 37.97 / 2.578 = 2.578 + 0 | yes | |-| ui/scroll_and_overflow/scroll | 10 | 0.997043 | 14 | 0 / 0 | 1988 / 493 | 5 / 7 | 1 / 1 | 40.802 / 1.915 = 1.915 + 0 | yes | |-| ui/scroll_and_overflow/drag_to_scroll | 10 | 0.999993 | 1 | 0 / 0 | 7644 / 493 | 5 / 7 | 1 / 1 | 40.74 / 1.725 = 1.725 + 0 | yes | |-| ui/scroll_and_overflow/scrollbars | 10 | 0.994530 | 21 | 0 / 0 | 462 / 493 | 5 / 7 | 1 / 1 | 41.84 / 2.349 = 2.349 + 0 | yes | |-| ui/scroll_and_overflow/overflow_debug | 10 | 0.996609 | 9 | 0 / 0 | 463 / 493 | 5 / 7 | 1 / 1 | 37.154 / 1.473 = 1.473 + 0 | yes | |-| ui/text/font_query | 10 | 0.993893 | 19 | 0 / 0 | 467 / 493 | 5 / 7 | 1 / 1 | 38.527 / 1.99 = 1.99 + 0 | yes | |-| ui/images/image_node_resizing | 10 | 0.998153 | 8 | 0 / 0 | 455 / 493 | 5 / 7 | 1 / 1 | 37.977 / 1.68 = 1.68 + 0 | yes | |-| ui/render_ui_to_texture | 10 | 0.999986 | 1 | 1 / 1 | 450 / 496 | 6 / 8 | 2 / 2 | 37.693 / 1.948 = 1.948 + 0 | yes | |-| ui/ui_drag_and_drop | 10 | 0.999036 | 3 | 0 / 0 | 1241 / 493 | 5 / 7 | 1 / 1 | 37.104 / 1.636 = 1.636 + 0 | yes | |-| ui/navigation/directional_navigation | 10 | 0.998119 | 8 | 0 / 0 | 471 / 493 | 5 / 7 | 1 / 1 | 38.946 / 1.937 = 1.937 + 0 | yes | |-| ui/navigation/directional_navigation_overrides | 10 | 0.996079 | 10 | 0 / 0 | 564 / 493 | 5 / 7 | 1 / 1 | 37.066 / 1.282 = 1.282 + 0 | yes | |-| ui/widgets/headless_tabs | 10 | 0.992422 | 11 | 0 / 0 | 478 / 493 | 5 / 7 | 1 / 1 | 37.782 / 1.615 = 1.615 + 0 | yes | |-| ui/widgets/tab_navigation | 10 | 0.997861 | 4 | 0 / 0 | 500 / 493 | 5 / 7 | 1 / 1 | 40.81 / 2.326 = 2.326 + 0 | yes | |-| ui/widgets/viewport_node | 10 | 0.999871 | 0 | 1 / 1 | 446 / 498 | 6 / 8 | 2 / 2 | 38.34 / 2.039 = 2.039 + 0 | yes | |-| ui/widgets/vertical_slider | 10 | 0.999004 | 11 | 0 / 0 | 459 / 493 | 5 / 7 | 1 / 1 | 37.247 / 1.764 = 1.764 + 0 | yes | |-| ui/widgets/virtual_keyboard | 10 | 0.993705 | 13 | 0 / 0 | 646 / 493 | 5 / 7 | 1 / 1 | 40.167 / 1.441 = 1.441 + 0 | yes | |-| ui/widgets/standard_widgets_observers | 10 | 0.998736 | 14 | 0 / 0 | 473 / 493 | 5 / 7 | 1 / 1 | 37.156 / 0.873 = 0.873 + 0 | yes | |-| ui/widgets/feathers_counter | 10 | 0.999941 | 1 | 0 / 0 | 493 / 493 | 5 / 7 | 1 / 1 | 37.899 / 0.893 = 0.893 + 0 | yes | |-| ui/widgets/feathers_number_input | 10 | 0.997483 | 6 | 0 / 0 | 972 / 493 | 5 / 7 | 1 / 1 | 40.117 / 1.426 = 1.426 + 0 | yes | |-| ui/styling/borders | 10 | 0.993389 | 9 | 0 / 0 | 591 / 493 | 5 / 7 | 1 / 1 | 40.239 / 1.538 = 1.538 + 0 | yes | |-| ui/styling/gradients | 10 | 0.990467 | 13 | 0 / 0 | 553 / 493 | 5 / 7 | 1 / 1 | 37.214 / 0.988 = 0.988 + 0 | yes | |-| ui/widgets/standard_widgets | 10 | 0.997647 | 17 | 0 / 0 | 477 / 493 | 5 / 7 | 1 / 1 | 37.124 / 0.901 = 0.901 + 0 | yes | |+| ui/images/image_node | 10 | 0.999965 | 0 | 0 / 0 | 441 / 493 | 5 / 7 | 1 / 1 | 16.692 / 1.854 = 1.854 + 0 | yes | |+| ui/images/image_node | 5 | 0.999965 | 0 | 0 / 0 | 441 / 493 | 5 / 7 | 1 / 1 | 50.621 / 1.752 = 1.752 + 0 | yes | |+| ui/images/ui_texture_atlas | 10 | 0.999781 | 5 | 0 / 0 | 444 / 493 | 5 / 7 | 1 / 1 | 16.755 / 1.754 = 1.754 + 0 | yes | |+| ui/images/ui_texture_atlas | 5 | 0.999781 | 5 | 0 / 0 | 444 / 493 | 5 / 7 | 1 / 1 | 54.768 / 1.996 = 1.996 + 0 | yes | |+| ui/images/ui_texture_atlas_slice | 10 | 0.990805 | 16 | 0 / 0 | 446 / 493 | 5 / 7 | 1 / 1 | 34.96 / 0.944 = 0.944 + 0 | yes | |+| ui/images/ui_texture_slice | 10 | 0.998933 | 8 | 0 / 0 | 446 / 493 | 5 / 7 | 1 / 1 | 39.102 / 1.051 = 1.051 + 0 | yes | |+| ui/images/ui_texture_slice_flip_and_tile | 10 | 1.000000 | 0 | 0 / 0 | 460 / 493 | 5 / 7 | 1 / 1 | 34.976 / 0.848 = 0.848 + 0 | yes | |+| ui/layout/anchor_layout | 10 | 0.997324 | 9 | 0 / 0 | 467 / 493 | 5 / 7 | 1 / 1 | 38.461 / 0.787 = 0.787 + 0 | yes | |+| ui/layout/fixed_node | 10 | 1.000000 | 0 | 0 / 0 | 443 / 493 | 5 / 7 | 1 / 1 | 16.955 / 0.94 = 0.94 + 0 | yes | |+| ui/layout/fixed_node | 5 | 1.000000 | 0 | 0 / 0 | 443 / 493 | 5 / 7 | 1 / 1 | 51.817 / 2.822 = 2.822 + 0 | yes | |+| ui/layout/flex_layout | 10 | 0.992175 | 8 | 0 / 0 | 601 / 493 | 5 / 7 | 1 / 1 | 38.329 / 1.489 = 1.489 + 0 | yes | |+| ui/layout/ghost_nodes | 10 | 0.998540 | 9 | 0 / 0 | 454 / 493 | 5 / 7 | 1 / 1 | 34.969 / 0.875 = 0.875 + 0 | yes | |+| ui/layout/grid | 10 | 0.994691 | 14 | 0 / 0 | 481 / 493 | 5 / 7 | 1 / 1 | 37.78 / 0.933 = 0.933 + 0 | yes | |+| ui/layout/size_constraints | 10 | 0.991720 | 19 | 0 / 0 | 607 / 493 | 5 / 7 | 1 / 1 | 36.275 / 1.188 = 1.188 + 0 | yes | |+| ui/layout/z_index | 10 | 1.000000 | 0 | 0 / 0 | 446 / 493 | 5 / 7 | 1 / 1 | 36.622 / 0.89 = 0.89 + 0 | yes | |+| ui/navigation/directional_navigation | 10 | 0.998119 | 8 | 0 / 0 | 470 / 493 | 5 / 7 | 1 / 1 | 36.456 / 1.45 = 1.45 + 0 | yes | |+| ui/navigation/directional_navigation_overrides | 10 | 0.996079 | 10 | 0 / 0 | 563 / 493 | 5 / 7 | 1 / 1 | 35.954 / 0.959 = 0.959 + 0 | yes | |+| ui/relative_cursor_position | 10 | 0.999899 | 2 | 0 / 0 | 442 / 493 | 5 / 7 | 1 / 1 | 38.461 / 0.89 = 0.89 + 0 | yes | |+| ui/render_ui_to_texture | 10 | 0.999986 | 1 | 1 / 1 | 449 / 496 | 6 / 8 | 2 / 2 | 38.407 / 1.382 = 1.382 + 0 | yes | |+| ui/scroll_and_overflow/drag_to_scroll | 10 | 0.999993 | 1 | 0 / 0 | 7643 / 493 | 5 / 7 | 1 / 1 | 35.753 / 1.776 = 1.776 + 0 | yes | |+| ui/scroll_and_overflow/overflow | 10 | 0.998778 | 4 | 0 / 0 | 460 / 493 | 5 / 7 | 1 / 1 | 16.572 / 1.822 = 1.822 + 0 | yes | |+| ui/scroll_and_overflow/overflow | 5 | 0.998778 | 4 | 0 / 0 | 460 / 493 | 5 / 7 | 1 / 1 | 53.882 / 1.877 = 1.877 + 0 | yes | |+| ui/scroll_and_overflow/overflow_clip_margin | 10 | 0.997330 | 7 | 0 / 0 | 464 / 493 | 5 / 7 | 1 / 1 | 36.326 / 1.302 = 1.302 + 0 | yes | |+| ui/scroll_and_overflow/overflow_debug | 10 | 0.996609 | 9 | 0 / 0 | 462 / 493 | 5 / 7 | 1 / 1 | 37.932 / 0.861 = 0.861 + 0 | yes | |+| ui/scroll_and_overflow/overflow_transform | 10 | 0.995399 | 12 | 0 / 0 | 446 / 493 | 5 / 7 | 1 / 1 | 37.666 / 1.653 = 1.653 + 0 | yes | |+| ui/scroll_and_overflow/scroll | 10 | 0.997043 | 14 | 0 / 0 | 1987 / 493 | 5 / 7 | 1 / 1 | 37.897 / 0.869 = 0.869 + 0 | yes | |+| ui/scroll_and_overflow/scrollbars | 10 | 0.993788 | 21 | 0 / 0 | 461 / 493 | 5 / 7 | 1 / 1 | 43.923 / 1.293 = 1.293 + 0 | yes | |+| ui/styling/borders | 10 | 0.993389 | 9 | 0 / 0 | 590 / 493 | 5 / 7 | 1 / 1 | 48.25 / 2.236 = 2.236 + 0 | yes | |+| ui/styling/gradients | 10 | 0.990467 | 13 | 0 / 0 | 552 / 493 | 5 / 7 | 1 / 1 | 50.292 / 2.257 = 2.257 + 0 | yes | |+| ui/styling/stacked_gradients | 10 | 0.994550 | 1 | 0 / 0 | 441 / 493 | 5 / 7 | 1 / 1 | 48.714 / 1.976 = 1.976 + 0 | yes | |+| ui/styling/transparency_ui | 10 | 0.999725 | 3 | 0 / 0 | 444 / 493 | 5 / 7 | 1 / 1 | 16.656 / 1.353 = 1.353 + 0 | yes | |+| ui/styling/transparency_ui | 5 | 0.999725 | 3 | 0 / 0 | 444 / 493 | 5 / 7 | 1 / 1 | 70.296 / 3.442 = 3.442 + 0 | yes | |+| ui/text/font_query | 10 | 0.993893 | 19 | 0 / 0 | 466 / 493 | 5 / 7 | 1 / 1 | 48.279 / 1.381 = 1.381 + 0 | yes | |+| ui/text/font_variations | 10 | 0.994047 | 20 | 0 / 0 | 451 / 493 | 5 / 7 | 1 / 1 | 16.685 / 2.028 = 2.028 + 0 | yes | |+| ui/text/font_variations | 5 | 0.994047 | 20 | 0 / 0 | 451 / 493 | 5 / 7 | 1 / 1 | 75.702 / 3.385 = 3.385 + 0 | yes | |+| ui/text/font_weights | 10 | 0.991888 | 17 | 0 / 0 | 453 / 493 | 5 / 7 | 1 / 1 | 16.405 / 1.204 = 1.204 + 0 | yes | |+| ui/text/font_weights | 5 | 0.991888 | 17 | 0 / 0 | 453 / 493 | 5 / 7 | 1 / 1 | 71.116 / 2.642 = 2.642 + 0 | yes | |+| ui/text/generic_font_families | 10 | 0.990143 | 19 | 0 / 0 | 456 / 493 | 5 / 7 | 1 / 1 | 48.711 / 1.393 = 1.393 + 0 | yes | |+| ui/text/inline_image | 10 | 0.998400 | 7 | 0 / 0 | 445 / 493 | 5 / 7 | 1 / 1 | 47.405 / 1.572 = 1.572 + 0 | yes | |+| ui/text/letter_spacing | 10 | 0.996228 | 13 | 0 / 0 | 454 / 493 | 5 / 7 | 1 / 1 | 46.386 / 2.04 = 2.04 + 0 | yes | |+| ui/text/strikethrough_and_underline | 10 | 0.990854 | 15 | 0 / 0 | 453 / 493 | 5 / 7 | 1 / 1 | 16.249 / 1.327 = 1.327 + 0 | yes | |+| ui/text/strikethrough_and_underline | 5 | 0.990854 | 15 | 0 / 0 | 453 / 493 | 5 / 7 | 1 / 1 | 72.18 / 3.352 = 3.352 + 0 | yes | |+| ui/text/text | 10 | 0.990695 | 8 | 0 / 0 | 458 / 493 | 5 / 7 | 1 / 1 | 49.672 / 1.285 = 1.285 + 0 | yes | |+| ui/text/text_background_colors | 10 | 0.998935 | 6 | 0 / 0 | 504 / 493 | 5 / 7 | 1 / 1 | 16.172 / 2.093 = 2.093 + 0 | yes | |+| ui/text/text_background_colors | 5 | 0.998935 | 6 | 0 / 0 | 504 / 493 | 5 / 7 | 1 / 1 | 75.836 / 3.368 = 3.368 + 0 | yes | |+| ui/text/text_debug | 10 | 0.983961 | 18 | 0 / 0 | 457 / 493 | 5 / 7 | 1 / 1 | 45.851 / 1.943 = 1.943 + 0 | yes | |+| ui/text/text_wrap_debug | 10 | 0.985334 | 15 | 0 / 0 | 588 / 493 | 5 / 7 | 1 / 1 | 49.745 / 2.852 = 2.852 + 0 | yes | |+| ui/ui_drag_and_drop | 10 | 0.999036 | 3 | 0 / 0 | 1240 / 493 | 5 / 7 | 1 / 1 | 52.623 / 2.14 = 2.14 + 0 | yes | |+| ui/ui_scaling | 10 | 0.999855 | 5 | 0 / 0 | 445 / 493 | 5 / 7 | 1 / 1 | 45.018 / 2.261 = 2.261 + 0 | yes | |+| ui/ui_target_camera | 10 | 0.998726 | 7 | 0 / 0 | 451 / 493 | 5 / 7 | 1 / 1 | 45.333 / 2.055 = 2.055 + 0 | yes | |+| ui/ui_transform | 10 | 0.999110 | 6 | 0 / 0 | 462 / 493 | 5 / 7 | 1 / 1 | 45.415 / 1.73 = 1.73 + 0 | yes | |+| ui/widgets/button | 10 | 0.999667 | 8 | 0 / 0 | 443 / 493 | 5 / 7 | 1 / 1 | 44.586 / 1.638 = 1.638 + 0 | yes | |+| ui/widgets/feathers_counter | 10 | 0.999941 | 1 | 0 / 0 | 492 / 493 | 5 / 7 | 1 / 1 | 45.662 / 1.904 = 1.904 + 0 | yes | |+| ui/widgets/feathers_number_input | 10 | 0.997483 | 6 | 0 / 0 | 971 / 493 | 5 / 7 | 1 / 1 | 46.655 / 1.62 = 1.62 + 0 | yes | |+| ui/widgets/headless_tabs | 10 | 0.992422 | 11 | 0 / 0 | 477 / 493 | 5 / 7 | 1 / 1 | 45.831 / 1.393 = 1.393 + 0 | yes | |+| ui/widgets/standard_widgets | 10 | 0.997647 | 17 | 0 / 0 | 476 / 493 | 5 / 7 | 1 / 1 | 47.327 / 1.219 = 1.219 + 0 | yes | |+| ui/widgets/standard_widgets_observers | 10 | 0.998736 | 14 | 0 / 0 | 472 / 493 | 5 / 7 | 1 / 1 | 44.397 / 2.247 = 2.247 + 0 | yes | |+| ui/widgets/tab_navigation | 10 | 0.997861 | 4 | 0 / 0 | 499 / 493 | 5 / 7 | 1 / 1 | 44.253 / 2.256 = 2.256 + 0 | yes | |+| ui/widgets/vertical_slider | 10 | 0.999004 | 11 | 0 / 0 | 458 / 493 | 5 / 7 | 1 / 1 | 45.916 / 2.095 = 2.095 + 0 | yes | |+| ui/widgets/viewport_node | 10 | 0.999871 | 0 | 1 / 1 | 445 / 498 | 6 / 8 | 2 / 2 | 50.253 / 2.535 = 2.535 + 0 | yes | |+| ui/widgets/virtual_keyboard | 10 | 0.993705 | 13 | 0 / 0 | 645 / 493 | 5 / 7 | 1 / 1 | 48.64 / 1.276 = 1.276 + 0 | yes | |+| ui/window_fallthrough | 10 | 0.992226 | 16 | 0 / 0 | 440 / 493 | 5 / 7 | 1 / 1 | 45.784 / 0.998 = 0.998 + 0 | yes | |+| ui/images/image_node_resizing | 10 | 0.998153 | 8 | 0 / 0 | 454 / 493 | 5 / 7 | 1 / 1 | 165.112 / 7.084 = 7.084 + 0 | yes | |+| ui/widgets/feathers_gallery | 10 | 0.995606 | 9 | 0 / 0 | 1059 / 493 | 5 / 7 | 1 / 1 | 41.002 / 1.666 = 1.666 + 0 | yes | |## Excludeddiff --git a/docs/bevy-parity/results.jsonl b/docs/bevy-parity/results.jsonlindex 62b52fc2..cf2952f2 100644--- a/docs/bevy-parity/results.jsonl+++ b/docs/bevy-parity/results.jsonl@@ -82,66 +82,67 @@{"example":"3d/lightmaps","frame":5,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":6,"entities":453,"extents":["0.0001 274.4000 279.6000","102.6464 82.5000 102.6464","103.2390 165.0000 103.2390","278.0000 274.4000 279.6001","3.2000 274.4000 279.6000","65.0000 0.0000 52.5000"],"frame":5,"frame_ms":306.814,"materials":6,"mesh_entities":6,"meshes":11,"other_material":0,"visible":6},"raea":{"frame":14,"entities":506,"mesh_entities":6,"visible":6,"meshes":13,"materials":10,"batch_keys":6,"other_material":0,"extents":["0.0001 274.4000 279.6000","102.6464 82.5000 102.6464","103.2390 165.0000 103.2390","278.0000 274.4000 279.6001","3.2000 274.4000 279.6000","65.0000 0.0000 52.5000"],"frame_ms":4.238,"step_ms":0.217,"cost_ms":4.455},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}{"example":"2d/mesh2d_vertex_color_texture","frame":10,"ssim":0.998651,"tile":6,"bevy":{"batch_keys":0,"entities":442,"extents":[],"frame":10,"frame_ms":37.793,"materials":1,"mesh_entities":0,"meshes":6,"other_material":0,"visible":0},"raea":{"frame":17,"entities":495,"mesh_entities":0,"visible":0,"meshes":9,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.347,"step_ms":1.364,"cost_ms":2.711},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}{"example":"2d/mesh2d_repeated_texture","frame":10,"ssim":0.991205,"tile":17,"bevy":{"batch_keys":0,"entities":437,"extents":[],"frame":10,"frame_ms":26.298,"materials":1,"mesh_entities":0,"meshes":8,"other_material":0,"visible":0},"raea":{"frame":17,"entities":496,"mesh_entities":0,"visible":0,"meshes":10,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.62,"step_ms":0.273,"cost_ms":1.893},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/styling/transparency_ui","frame":10,"ssim":0.999725,"tile":3,"bevy":{"batch_keys":0,"entities":445,"extents":[],"frame":10,"frame_ms":2.834,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.231,"step_ms":null,"cost_ms":2.231},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/styling/transparency_ui","frame":5,"ssim":0.999725,"tile":3,"bevy":{"batch_keys":0,"entities":445,"extents":[],"frame":5,"frame_ms":77.618,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.608,"step_ms":null,"cost_ms":2.608},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/layout/fixed_node","frame":10,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":0,"entities":444,"extents":[],"frame":10,"frame_ms":2.355,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.016,"step_ms":null,"cost_ms":2.016},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/layout/fixed_node","frame":5,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":0,"entities":444,"extents":[],"frame":5,"frame_ms":70.45,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.252,"step_ms":null,"cost_ms":2.252},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/layout/flex_layout","frame":10,"ssim":0.992175,"tile":8,"bevy":{"batch_keys":0,"entities":602,"extents":[],"frame":10,"frame_ms":42.793,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.089,"step_ms":null,"cost_ms":2.089},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/images/image_node","frame":10,"ssim":0.999965,"tile":0,"bevy":{"batch_keys":0,"entities":442,"extents":[],"frame":10,"frame_ms":2.647,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.917,"step_ms":null,"cost_ms":1.917},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/images/image_node","frame":5,"ssim":0.999965,"tile":0,"bevy":{"batch_keys":0,"entities":442,"extents":[],"frame":5,"frame_ms":72.43,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":3.588,"step_ms":null,"cost_ms":3.588},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/text/font_weights","frame":10,"ssim":0.991888,"tile":17,"bevy":{"batch_keys":0,"entities":454,"extents":[],"frame":10,"frame_ms":2.189,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.169,"step_ms":null,"cost_ms":2.169},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/text/font_weights","frame":5,"ssim":0.991888,"tile":17,"bevy":{"batch_keys":0,"entities":454,"extents":[],"frame":5,"frame_ms":75.477,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":4.094,"step_ms":null,"cost_ms":4.094},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/text/font_variations","frame":10,"ssim":0.994047,"tile":20,"bevy":{"batch_keys":0,"entities":452,"extents":[],"frame":10,"frame_ms":2.418,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.022,"step_ms":null,"cost_ms":2.022},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/text/font_variations","frame":5,"ssim":0.994047,"tile":20,"bevy":{"batch_keys":0,"entities":452,"extents":[],"frame":5,"frame_ms":75.184,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.708,"step_ms":null,"cost_ms":2.708},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/text/text_background_colors","frame":10,"ssim":0.998935,"tile":6,"bevy":{"batch_keys":0,"entities":505,"extents":[],"frame":10,"frame_ms":2.633,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.383,"step_ms":null,"cost_ms":2.383},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/text/text_background_colors","frame":5,"ssim":0.998935,"tile":6,"bevy":{"batch_keys":0,"entities":505,"extents":[],"frame":5,"frame_ms":69.545,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":3.366,"step_ms":null,"cost_ms":3.366},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/text/strikethrough_and_underline","frame":10,"ssim":0.990854,"tile":15,"bevy":{"batch_keys":0,"entities":454,"extents":[],"frame":10,"frame_ms":2.327,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.946,"step_ms":null,"cost_ms":1.946},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/text/strikethrough_and_underline","frame":5,"ssim":0.990854,"tile":15,"bevy":{"batch_keys":0,"entities":454,"extents":[],"frame":5,"frame_ms":73.353,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.916,"step_ms":null,"cost_ms":2.916},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/scroll_and_overflow/overflow","frame":10,"ssim":0.998778,"tile":4,"bevy":{"batch_keys":0,"entities":461,"extents":[],"frame":10,"frame_ms":2.288,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":3.005,"step_ms":null,"cost_ms":3.005},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/scroll_and_overflow/overflow","frame":5,"ssim":0.998778,"tile":4,"bevy":{"batch_keys":0,"entities":461,"extents":[],"frame":5,"frame_ms":65.188,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.319,"step_ms":null,"cost_ms":2.319},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/scroll_and_overflow/overflow_clip_margin","frame":10,"ssim":0.997330,"tile":7,"bevy":{"batch_keys":0,"entities":465,"extents":[],"frame":10,"frame_ms":36.682,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.812,"step_ms":null,"cost_ms":1.812},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/images/ui_texture_atlas","frame":10,"ssim":0.999781,"tile":5,"bevy":{"batch_keys":0,"entities":445,"extents":[],"frame":10,"frame_ms":2.298,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.266,"step_ms":null,"cost_ms":2.266},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/images/ui_texture_atlas","frame":5,"ssim":0.999781,"tile":5,"bevy":{"batch_keys":0,"entities":445,"extents":[],"frame":5,"frame_ms":64.26,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.248,"step_ms":null,"cost_ms":2.248},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/images/ui_texture_slice","frame":10,"ssim":0.998933,"tile":8,"bevy":{"batch_keys":0,"entities":447,"extents":[],"frame":10,"frame_ms":37.554,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.148,"step_ms":null,"cost_ms":2.148},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/images/ui_texture_atlas_slice","frame":10,"ssim":0.990805,"tile":16,"bevy":{"batch_keys":0,"entities":447,"extents":[],"frame":10,"frame_ms":40.22,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.777,"step_ms":null,"cost_ms":1.777},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/images/ui_texture_slice_flip_and_tile","frame":10,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":0,"entities":461,"extents":[],"frame":10,"frame_ms":38.792,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.161,"step_ms":null,"cost_ms":2.161},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/widgets/button","frame":10,"ssim":0.999667,"tile":8,"bevy":{"batch_keys":0,"entities":444,"extents":[],"frame":10,"frame_ms":38.306,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.0,"step_ms":null,"cost_ms":2},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/text/letter_spacing","frame":10,"ssim":0.996228,"tile":13,"bevy":{"batch_keys":0,"entities":455,"extents":[],"frame":10,"frame_ms":42.621,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.613,"step_ms":null,"cost_ms":2.613},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/window_fallthrough","frame":10,"ssim":0.992226,"tile":16,"bevy":{"batch_keys":0,"entities":441,"extents":[],"frame":10,"frame_ms":40.543,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.154,"step_ms":null,"cost_ms":2.154},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/text/inline_image","frame":10,"ssim":0.998400,"tile":7,"bevy":{"batch_keys":0,"entities":446,"extents":[],"frame":10,"frame_ms":40.3,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.803,"step_ms":null,"cost_ms":1.803},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/layout/z_index","frame":10,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":0,"entities":447,"extents":[],"frame":10,"frame_ms":41.57,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.348,"step_ms":null,"cost_ms":2.348},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/styling/stacked_gradients","frame":10,"ssim":0.994550,"tile":1,"bevy":{"batch_keys":0,"entities":442,"extents":[],"frame":10,"frame_ms":37.884,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.055,"step_ms":null,"cost_ms":2.055},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/text/generic_font_families","frame":10,"ssim":0.990143,"tile":19,"bevy":{"batch_keys":0,"entities":457,"extents":[],"frame":10,"frame_ms":42.309,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.093,"step_ms":null,"cost_ms":2.093},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/layout/ghost_nodes","frame":10,"ssim":0.998540,"tile":9,"bevy":{"batch_keys":0,"entities":455,"extents":[],"frame":10,"frame_ms":39.986,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.3,"step_ms":null,"cost_ms":2.3},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/relative_cursor_position","frame":10,"ssim":0.999899,"tile":2,"bevy":{"batch_keys":0,"entities":443,"extents":[],"frame":10,"frame_ms":38.933,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.696,"step_ms":null,"cost_ms":1.696},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/ui_target_camera","frame":10,"ssim":0.998726,"tile":7,"bevy":{"batch_keys":0,"entities":452,"extents":[],"frame":10,"frame_ms":39.367,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.861,"step_ms":null,"cost_ms":1.861},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/text/text_wrap_debug","frame":10,"ssim":0.985334,"tile":15,"bevy":{"batch_keys":0,"entities":589,"extents":[],"frame":10,"frame_ms":41.608,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.778,"step_ms":null,"cost_ms":2.778},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/layout/grid","frame":10,"ssim":0.994691,"tile":14,"bevy":{"batch_keys":0,"entities":482,"extents":[],"frame":10,"frame_ms":40.094,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.305,"step_ms":null,"cost_ms":2.305},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/ui_scaling","frame":10,"ssim":0.999855,"tile":5,"bevy":{"batch_keys":0,"entities":446,"extents":[],"frame":10,"frame_ms":38.124,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.896,"step_ms":null,"cost_ms":1.896},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/layout/anchor_layout","frame":10,"ssim":0.997324,"tile":9,"bevy":{"batch_keys":0,"entities":468,"extents":[],"frame":10,"frame_ms":39.711,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.871,"step_ms":null,"cost_ms":1.871},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/layout/size_constraints","frame":10,"ssim":0.991720,"tile":19,"bevy":{"batch_keys":0,"entities":608,"extents":[],"frame":10,"frame_ms":41.814,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.166,"step_ms":null,"cost_ms":2.166},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/scroll_and_overflow/overflow_transform","frame":10,"ssim":0.995396,"tile":12,"bevy":{"batch_keys":0,"entities":447,"extents":[],"frame":10,"frame_ms":38.294,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.072,"step_ms":null,"cost_ms":2.072},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/text/text","frame":10,"ssim":0.990695,"tile":8,"bevy":{"batch_keys":0,"entities":459,"extents":[],"frame":10,"frame_ms":40.745,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.046,"step_ms":null,"cost_ms":2.046},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/text/text_debug","frame":10,"ssim":0.983961,"tile":18,"bevy":{"batch_keys":0,"entities":458,"extents":[],"frame":10,"frame_ms":42.062,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.345,"step_ms":null,"cost_ms":2.345},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/ui_transform","frame":10,"ssim":0.999110,"tile":6,"bevy":{"batch_keys":0,"entities":463,"extents":[],"frame":10,"frame_ms":37.97,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.578,"step_ms":null,"cost_ms":2.578},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/scroll_and_overflow/scroll","frame":10,"ssim":0.997043,"tile":14,"bevy":{"batch_keys":0,"entities":1988,"extents":[],"frame":10,"frame_ms":40.802,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.915,"step_ms":null,"cost_ms":1.915},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/scroll_and_overflow/drag_to_scroll","frame":10,"ssim":0.999993,"tile":1,"bevy":{"batch_keys":0,"entities":7644,"extents":[],"frame":10,"frame_ms":40.74,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.725,"step_ms":null,"cost_ms":1.725},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/scroll_and_overflow/scrollbars","frame":10,"ssim":0.994530,"tile":21,"bevy":{"batch_keys":0,"entities":462,"extents":[],"frame":10,"frame_ms":41.84,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.349,"step_ms":null,"cost_ms":2.349},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/scroll_and_overflow/overflow_debug","frame":10,"ssim":0.996609,"tile":9,"bevy":{"batch_keys":0,"entities":463,"extents":[],"frame":10,"frame_ms":37.154,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.473,"step_ms":null,"cost_ms":1.473},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/text/font_query","frame":10,"ssim":0.993893,"tile":19,"bevy":{"batch_keys":0,"entities":467,"extents":[],"frame":10,"frame_ms":38.527,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.99,"step_ms":null,"cost_ms":1.99},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/images/image_node_resizing","frame":10,"ssim":0.998153,"tile":8,"bevy":{"batch_keys":0,"entities":455,"extents":[],"frame":10,"frame_ms":37.977,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.68,"step_ms":null,"cost_ms":1.68},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/render_ui_to_texture","frame":10,"ssim":0.999986,"tile":1,"bevy":{"batch_keys":1,"entities":450,"extents":["0.5000 0.5000 0.5000"],"frame":10,"frame_ms":37.693,"materials":2,"mesh_entities":1,"meshes":6,"other_material":0,"visible":1},"raea":{"frame":17,"entities":496,"mesh_entities":1,"visible":1,"meshes":8,"materials":2,"batch_keys":1,"other_material":0,"extents":["0.5000 0.5000 0.5000"],"frame_ms":1.948,"step_ms":null,"cost_ms":1.948},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/ui_drag_and_drop","frame":10,"ssim":0.999036,"tile":3,"bevy":{"batch_keys":0,"entities":1241,"extents":[],"frame":10,"frame_ms":37.104,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.636,"step_ms":null,"cost_ms":1.636},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/navigation/directional_navigation","frame":10,"ssim":0.998119,"tile":8,"bevy":{"batch_keys":0,"entities":471,"extents":[],"frame":10,"frame_ms":38.946,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.937,"step_ms":null,"cost_ms":1.937},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/navigation/directional_navigation_overrides","frame":10,"ssim":0.996079,"tile":10,"bevy":{"batch_keys":0,"entities":564,"extents":[],"frame":10,"frame_ms":37.066,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.282,"step_ms":null,"cost_ms":1.282},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/widgets/headless_tabs","frame":10,"ssim":0.992422,"tile":11,"bevy":{"batch_keys":0,"entities":478,"extents":[],"frame":10,"frame_ms":37.782,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.615,"step_ms":null,"cost_ms":1.615},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/widgets/tab_navigation","frame":10,"ssim":0.997861,"tile":4,"bevy":{"batch_keys":0,"entities":500,"extents":[],"frame":10,"frame_ms":40.81,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.326,"step_ms":null,"cost_ms":2.326},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/widgets/viewport_node","frame":10,"ssim":0.999871,"tile":0,"bevy":{"batch_keys":1,"entities":446,"extents":["2.5000 2.5000 2.5000"],"frame":10,"frame_ms":38.34,"materials":2,"mesh_entities":1,"meshes":6,"other_material":0,"visible":1},"raea":{"frame":17,"entities":498,"mesh_entities":1,"visible":1,"meshes":8,"materials":2,"batch_keys":1,"other_material":0,"extents":["2.5000 2.5000 2.5000"],"frame_ms":2.039,"step_ms":null,"cost_ms":2.039},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/widgets/vertical_slider","frame":10,"ssim":0.999004,"tile":11,"bevy":{"batch_keys":0,"entities":459,"extents":[],"frame":10,"frame_ms":37.247,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.764,"step_ms":null,"cost_ms":1.764},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/widgets/virtual_keyboard","frame":10,"ssim":0.993705,"tile":13,"bevy":{"batch_keys":0,"entities":646,"extents":[],"frame":10,"frame_ms":40.167,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.441,"step_ms":null,"cost_ms":1.441},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/widgets/standard_widgets_observers","frame":10,"ssim":0.998736,"tile":14,"bevy":{"batch_keys":0,"entities":473,"extents":[],"frame":10,"frame_ms":37.156,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.873,"step_ms":null,"cost_ms":0.873},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/widgets/feathers_counter","frame":10,"ssim":0.999941,"tile":1,"bevy":{"batch_keys":0,"entities":493,"extents":[],"frame":10,"frame_ms":37.899,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.893,"step_ms":null,"cost_ms":0.893},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/widgets/feathers_number_input","frame":10,"ssim":0.997483,"tile":6,"bevy":{"batch_keys":0,"entities":972,"extents":[],"frame":10,"frame_ms":40.117,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.426,"step_ms":null,"cost_ms":1.426},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/styling/borders","frame":10,"ssim":0.993389,"tile":9,"bevy":{"batch_keys":0,"entities":591,"extents":[],"frame":10,"frame_ms":40.239,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.538,"step_ms":null,"cost_ms":1.538},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/styling/gradients","frame":10,"ssim":0.990467,"tile":13,"bevy":{"batch_keys":0,"entities":553,"extents":[],"frame":10,"frame_ms":37.214,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.988,"step_ms":null,"cost_ms":0.988},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}-{"example":"ui/widgets/standard_widgets","frame":10,"ssim":0.997647,"tile":17,"bevy":{"batch_keys":0,"entities":477,"extents":[],"frame":10,"frame_ms":37.124,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.901,"step_ms":null,"cost_ms":0.901},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/images/image_node","frame":10,"ssim":0.999965,"tile":0,"bevy":{"batch_keys":0,"entities":441,"extents":[],"frame":10,"frame_ms":16.692,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.854,"step_ms":null,"cost_ms":1.854},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/images/image_node","frame":5,"ssim":0.999965,"tile":0,"bevy":{"batch_keys":0,"entities":441,"extents":[],"frame":5,"frame_ms":50.621,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.752,"step_ms":null,"cost_ms":1.752},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/images/ui_texture_atlas","frame":10,"ssim":0.999781,"tile":5,"bevy":{"batch_keys":0,"entities":444,"extents":[],"frame":10,"frame_ms":16.755,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.754,"step_ms":null,"cost_ms":1.754},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/images/ui_texture_atlas","frame":5,"ssim":0.999781,"tile":5,"bevy":{"batch_keys":0,"entities":444,"extents":[],"frame":5,"frame_ms":54.768,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.996,"step_ms":null,"cost_ms":1.996},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/images/ui_texture_atlas_slice","frame":10,"ssim":0.990805,"tile":16,"bevy":{"batch_keys":0,"entities":446,"extents":[],"frame":10,"frame_ms":34.96,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.944,"step_ms":null,"cost_ms":0.944},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/images/ui_texture_slice","frame":10,"ssim":0.998933,"tile":8,"bevy":{"batch_keys":0,"entities":446,"extents":[],"frame":10,"frame_ms":39.102,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.051,"step_ms":null,"cost_ms":1.051},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/images/ui_texture_slice_flip_and_tile","frame":10,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":0,"entities":460,"extents":[],"frame":10,"frame_ms":34.976,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.848,"step_ms":null,"cost_ms":0.848},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/layout/anchor_layout","frame":10,"ssim":0.997324,"tile":9,"bevy":{"batch_keys":0,"entities":467,"extents":[],"frame":10,"frame_ms":38.461,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.787,"step_ms":null,"cost_ms":0.787},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/layout/fixed_node","frame":10,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":0,"entities":443,"extents":[],"frame":10,"frame_ms":16.955,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.94,"step_ms":null,"cost_ms":0.94},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/layout/fixed_node","frame":5,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":0,"entities":443,"extents":[],"frame":5,"frame_ms":51.817,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.822,"step_ms":null,"cost_ms":2.822},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/layout/flex_layout","frame":10,"ssim":0.992175,"tile":8,"bevy":{"batch_keys":0,"entities":601,"extents":[],"frame":10,"frame_ms":38.329,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.489,"step_ms":null,"cost_ms":1.489},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/layout/ghost_nodes","frame":10,"ssim":0.998540,"tile":9,"bevy":{"batch_keys":0,"entities":454,"extents":[],"frame":10,"frame_ms":34.969,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.875,"step_ms":null,"cost_ms":0.875},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/layout/grid","frame":10,"ssim":0.994691,"tile":14,"bevy":{"batch_keys":0,"entities":481,"extents":[],"frame":10,"frame_ms":37.78,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.933,"step_ms":null,"cost_ms":0.933},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/layout/size_constraints","frame":10,"ssim":0.991720,"tile":19,"bevy":{"batch_keys":0,"entities":607,"extents":[],"frame":10,"frame_ms":36.275,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.188,"step_ms":null,"cost_ms":1.188},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/layout/z_index","frame":10,"ssim":1.000000,"tile":0,"bevy":{"batch_keys":0,"entities":446,"extents":[],"frame":10,"frame_ms":36.622,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.89,"step_ms":null,"cost_ms":0.89},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/navigation/directional_navigation","frame":10,"ssim":0.998119,"tile":8,"bevy":{"batch_keys":0,"entities":470,"extents":[],"frame":10,"frame_ms":36.456,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.45,"step_ms":null,"cost_ms":1.45},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/navigation/directional_navigation_overrides","frame":10,"ssim":0.996079,"tile":10,"bevy":{"batch_keys":0,"entities":563,"extents":[],"frame":10,"frame_ms":35.954,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.959,"step_ms":null,"cost_ms":0.959},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/relative_cursor_position","frame":10,"ssim":0.999899,"tile":2,"bevy":{"batch_keys":0,"entities":442,"extents":[],"frame":10,"frame_ms":38.461,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.89,"step_ms":null,"cost_ms":0.89},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/render_ui_to_texture","frame":10,"ssim":0.999986,"tile":1,"bevy":{"batch_keys":1,"entities":449,"extents":["0.5000 0.5000 0.5000"],"frame":10,"frame_ms":38.407,"materials":2,"mesh_entities":1,"meshes":6,"other_material":0,"visible":1},"raea":{"frame":17,"entities":496,"mesh_entities":1,"visible":1,"meshes":8,"materials":2,"batch_keys":1,"other_material":0,"extents":["0.5000 0.5000 0.5000"],"frame_ms":1.382,"step_ms":null,"cost_ms":1.382},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/scroll_and_overflow/drag_to_scroll","frame":10,"ssim":0.999993,"tile":1,"bevy":{"batch_keys":0,"entities":7643,"extents":[],"frame":10,"frame_ms":35.753,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.776,"step_ms":null,"cost_ms":1.776},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/scroll_and_overflow/overflow","frame":10,"ssim":0.998778,"tile":4,"bevy":{"batch_keys":0,"entities":460,"extents":[],"frame":10,"frame_ms":16.572,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.822,"step_ms":null,"cost_ms":1.822},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/scroll_and_overflow/overflow","frame":5,"ssim":0.998778,"tile":4,"bevy":{"batch_keys":0,"entities":460,"extents":[],"frame":5,"frame_ms":53.882,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.877,"step_ms":null,"cost_ms":1.877},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/scroll_and_overflow/overflow_clip_margin","frame":10,"ssim":0.997330,"tile":7,"bevy":{"batch_keys":0,"entities":464,"extents":[],"frame":10,"frame_ms":36.326,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.302,"step_ms":null,"cost_ms":1.302},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/scroll_and_overflow/overflow_debug","frame":10,"ssim":0.996609,"tile":9,"bevy":{"batch_keys":0,"entities":462,"extents":[],"frame":10,"frame_ms":37.932,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.861,"step_ms":null,"cost_ms":0.861},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/scroll_and_overflow/overflow_transform","frame":10,"ssim":0.995399,"tile":12,"bevy":{"batch_keys":0,"entities":446,"extents":[],"frame":10,"frame_ms":37.666,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.653,"step_ms":null,"cost_ms":1.653},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/scroll_and_overflow/scroll","frame":10,"ssim":0.997043,"tile":14,"bevy":{"batch_keys":0,"entities":1987,"extents":[],"frame":10,"frame_ms":37.897,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.869,"step_ms":null,"cost_ms":0.869},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/scroll_and_overflow/scrollbars","frame":10,"ssim":0.993788,"tile":21,"bevy":{"batch_keys":0,"entities":461,"extents":[],"frame":10,"frame_ms":43.923,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.293,"step_ms":null,"cost_ms":1.293},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/styling/borders","frame":10,"ssim":0.993389,"tile":9,"bevy":{"batch_keys":0,"entities":590,"extents":[],"frame":10,"frame_ms":48.25,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.236,"step_ms":null,"cost_ms":2.236},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/styling/gradients","frame":10,"ssim":0.990467,"tile":13,"bevy":{"batch_keys":0,"entities":552,"extents":[],"frame":10,"frame_ms":50.292,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.257,"step_ms":null,"cost_ms":2.257},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/styling/stacked_gradients","frame":10,"ssim":0.994550,"tile":1,"bevy":{"batch_keys":0,"entities":441,"extents":[],"frame":10,"frame_ms":48.714,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.976,"step_ms":null,"cost_ms":1.976},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/styling/transparency_ui","frame":10,"ssim":0.999725,"tile":3,"bevy":{"batch_keys":0,"entities":444,"extents":[],"frame":10,"frame_ms":16.656,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.353,"step_ms":null,"cost_ms":1.353},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/styling/transparency_ui","frame":5,"ssim":0.999725,"tile":3,"bevy":{"batch_keys":0,"entities":444,"extents":[],"frame":5,"frame_ms":70.296,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":3.442,"step_ms":null,"cost_ms":3.442},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/text/font_query","frame":10,"ssim":0.993893,"tile":19,"bevy":{"batch_keys":0,"entities":466,"extents":[],"frame":10,"frame_ms":48.279,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.381,"step_ms":null,"cost_ms":1.381},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/text/font_variations","frame":10,"ssim":0.994047,"tile":20,"bevy":{"batch_keys":0,"entities":451,"extents":[],"frame":10,"frame_ms":16.685,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.028,"step_ms":null,"cost_ms":2.028},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/text/font_variations","frame":5,"ssim":0.994047,"tile":20,"bevy":{"batch_keys":0,"entities":451,"extents":[],"frame":5,"frame_ms":75.702,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":3.385,"step_ms":null,"cost_ms":3.385},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/text/font_weights","frame":10,"ssim":0.991888,"tile":17,"bevy":{"batch_keys":0,"entities":453,"extents":[],"frame":10,"frame_ms":16.405,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.204,"step_ms":null,"cost_ms":1.204},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/text/font_weights","frame":5,"ssim":0.991888,"tile":17,"bevy":{"batch_keys":0,"entities":453,"extents":[],"frame":5,"frame_ms":71.116,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.642,"step_ms":null,"cost_ms":2.642},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/text/generic_font_families","frame":10,"ssim":0.990143,"tile":19,"bevy":{"batch_keys":0,"entities":456,"extents":[],"frame":10,"frame_ms":48.711,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.393,"step_ms":null,"cost_ms":1.393},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/text/inline_image","frame":10,"ssim":0.998400,"tile":7,"bevy":{"batch_keys":0,"entities":445,"extents":[],"frame":10,"frame_ms":47.405,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.572,"step_ms":null,"cost_ms":1.572},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/text/letter_spacing","frame":10,"ssim":0.996228,"tile":13,"bevy":{"batch_keys":0,"entities":454,"extents":[],"frame":10,"frame_ms":46.386,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.04,"step_ms":null,"cost_ms":2.04},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/text/strikethrough_and_underline","frame":10,"ssim":0.990854,"tile":15,"bevy":{"batch_keys":0,"entities":453,"extents":[],"frame":10,"frame_ms":16.249,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.327,"step_ms":null,"cost_ms":1.327},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/text/strikethrough_and_underline","frame":5,"ssim":0.990854,"tile":15,"bevy":{"batch_keys":0,"entities":453,"extents":[],"frame":5,"frame_ms":72.18,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":3.352,"step_ms":null,"cost_ms":3.352},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/text/text","frame":10,"ssim":0.990695,"tile":8,"bevy":{"batch_keys":0,"entities":458,"extents":[],"frame":10,"frame_ms":49.672,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.285,"step_ms":null,"cost_ms":1.285},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/text/text_background_colors","frame":10,"ssim":0.998935,"tile":6,"bevy":{"batch_keys":0,"entities":504,"extents":[],"frame":10,"frame_ms":16.172,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.093,"step_ms":null,"cost_ms":2.093},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/text/text_background_colors","frame":5,"ssim":0.998935,"tile":6,"bevy":{"batch_keys":0,"entities":504,"extents":[],"frame":5,"frame_ms":75.836,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":12,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":3.368,"step_ms":null,"cost_ms":3.368},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/text/text_debug","frame":10,"ssim":0.983961,"tile":18,"bevy":{"batch_keys":0,"entities":457,"extents":[],"frame":10,"frame_ms":45.851,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.943,"step_ms":null,"cost_ms":1.943},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/text/text_wrap_debug","frame":10,"ssim":0.985334,"tile":15,"bevy":{"batch_keys":0,"entities":588,"extents":[],"frame":10,"frame_ms":49.745,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.852,"step_ms":null,"cost_ms":2.852},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/ui_drag_and_drop","frame":10,"ssim":0.999036,"tile":3,"bevy":{"batch_keys":0,"entities":1240,"extents":[],"frame":10,"frame_ms":52.623,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.14,"step_ms":null,"cost_ms":2.14},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/ui_scaling","frame":10,"ssim":0.999855,"tile":5,"bevy":{"batch_keys":0,"entities":445,"extents":[],"frame":10,"frame_ms":45.018,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.261,"step_ms":null,"cost_ms":2.261},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/ui_target_camera","frame":10,"ssim":0.998726,"tile":7,"bevy":{"batch_keys":0,"entities":451,"extents":[],"frame":10,"frame_ms":45.333,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.055,"step_ms":null,"cost_ms":2.055},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/ui_transform","frame":10,"ssim":0.999110,"tile":6,"bevy":{"batch_keys":0,"entities":462,"extents":[],"frame":10,"frame_ms":45.415,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.73,"step_ms":null,"cost_ms":1.73},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/widgets/button","frame":10,"ssim":0.999667,"tile":8,"bevy":{"batch_keys":0,"entities":443,"extents":[],"frame":10,"frame_ms":44.586,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.638,"step_ms":null,"cost_ms":1.638},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/widgets/feathers_counter","frame":10,"ssim":0.999941,"tile":1,"bevy":{"batch_keys":0,"entities":492,"extents":[],"frame":10,"frame_ms":45.662,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.904,"step_ms":null,"cost_ms":1.904},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/widgets/feathers_number_input","frame":10,"ssim":0.997483,"tile":6,"bevy":{"batch_keys":0,"entities":971,"extents":[],"frame":10,"frame_ms":46.655,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.62,"step_ms":null,"cost_ms":1.62},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/widgets/headless_tabs","frame":10,"ssim":0.992422,"tile":11,"bevy":{"batch_keys":0,"entities":477,"extents":[],"frame":10,"frame_ms":45.831,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.393,"step_ms":null,"cost_ms":1.393},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/widgets/standard_widgets","frame":10,"ssim":0.997647,"tile":17,"bevy":{"batch_keys":0,"entities":476,"extents":[],"frame":10,"frame_ms":47.327,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.219,"step_ms":null,"cost_ms":1.219},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/widgets/standard_widgets_observers","frame":10,"ssim":0.998736,"tile":14,"bevy":{"batch_keys":0,"entities":472,"extents":[],"frame":10,"frame_ms":44.397,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.247,"step_ms":null,"cost_ms":2.247},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/widgets/tab_navigation","frame":10,"ssim":0.997861,"tile":4,"bevy":{"batch_keys":0,"entities":499,"extents":[],"frame":10,"frame_ms":44.253,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.256,"step_ms":null,"cost_ms":2.256},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/widgets/vertical_slider","frame":10,"ssim":0.999004,"tile":11,"bevy":{"batch_keys":0,"entities":458,"extents":[],"frame":10,"frame_ms":45.916,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":2.095,"step_ms":null,"cost_ms":2.095},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/widgets/viewport_node","frame":10,"ssim":0.999871,"tile":0,"bevy":{"batch_keys":1,"entities":445,"extents":["2.5000 2.5000 2.5000"],"frame":10,"frame_ms":50.253,"materials":2,"mesh_entities":1,"meshes":6,"other_material":0,"visible":1},"raea":{"frame":17,"entities":498,"mesh_entities":1,"visible":1,"meshes":8,"materials":2,"batch_keys":1,"other_material":0,"extents":["2.5000 2.5000 2.5000"],"frame_ms":2.535,"step_ms":null,"cost_ms":2.535},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/widgets/virtual_keyboard","frame":10,"ssim":0.993705,"tile":13,"bevy":{"batch_keys":0,"entities":645,"extents":[],"frame":10,"frame_ms":48.64,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.276,"step_ms":null,"cost_ms":1.276},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/window_fallthrough","frame":10,"ssim":0.992226,"tile":16,"bevy":{"batch_keys":0,"entities":440,"extents":[],"frame":10,"frame_ms":45.784,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":0.998,"step_ms":null,"cost_ms":0.998},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/images/image_node_resizing","frame":10,"ssim":0.998153,"tile":8,"bevy":{"batch_keys":0,"entities":454,"extents":[],"frame":10,"frame_ms":165.112,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":7.084,"step_ms":null,"cost_ms":7.084},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}+{"example":"ui/widgets/feathers_gallery","frame":10,"ssim":0.995606,"tile":9,"bevy":{"batch_keys":0,"entities":1059,"extents":[],"frame":10,"frame_ms":41.002,"materials":1,"mesh_entities":0,"meshes":5,"other_material":0,"visible":0},"raea":{"frame":17,"entities":493,"mesh_entities":0,"visible":0,"meshes":7,"materials":1,"batch_keys":0,"other_material":0,"extents":[],"frame_ms":1.666,"step_ms":null,"cost_ms":1.666},"pixels":true,"draws":true,"time":true,"pass":true,"why":""}diff --git a/runtime/page/src/elements.rs b/runtime/page/src/elements.rsindex c3387681..bd08b83c 100644--- a/runtime/page/src/elements.rs+++ b/runtime/page/src/elements.rs@@ -224,8 +224,9 @@ pub(crate) fn page_props(kind: &str, props: Option<&Map<String, Value>>, dir: &P// root's stacking context, vendor/blitz-dom layout/paint_tree.rs; a bevy_ui root's data-raea-blend kept: its page// blends in linear light, systems/page paint; a bevy_ui scroller's data-raea-bevy-scroll and an IgnoreScroll node's// data-raea-bevy-ignore-scroll kept: Blitz floors its offset and keeps the node in place, vendor/blitz-dom resolve.rs;+ // a spreading box shadow's data-raea-bevy-shadow kept: Blitz spreads it as bevy_ui does, vendor/blitz-paint render/box_shadow.rs;// the source stamps data-raea-loc and data-raea-use kept for the render manifest, engine/bundle stamp.rs)- const KEPT: [&str; 12] = ["data-raea-start", "data-raea-bevy-debug", "data-raea-bevy-text", "data-raea-bevy-slice", "data-raea-bevy-global-z", "data-raea-blend", "data-raea-bevy-scroll", "data-raea-bevy-ignore-scroll", "data-raea-bevy-scrollbar", "data-raea-bevy-thumb", "data-raea-loc", "data-raea-use"];+ const KEPT: [&str; 13] = ["data-raea-start", "data-raea-bevy-debug", "data-raea-bevy-shadow", "data-raea-bevy-text", "data-raea-bevy-slice", "data-raea-bevy-global-z", "data-raea-blend", "data-raea-bevy-scroll", "data-raea-bevy-ignore-scroll", "data-raea-bevy-scrollbar", "data-raea-bevy-thumb", "data-raea-loc", "data-raea-use"];if k == "children" || k == "key" || (k.starts_with("data-raea") && !KEPT.contains(&k.as_str())) || k == "data-props" || k == "data-shape" || k == "data-anim" || v.is_null() {continue;}diff --git a/sdk/raea/bench/bevy-parity/ui/images/image_node_resizing.tsx b/sdk/raea/bench/bevy-parity/ui/images/image_node_resizing.tsxindex d8f4b0e7..1701c7ac 100644--- a/sdk/raea/bench/bevy-parity/ui/images/image_node_resizing.tsx+++ b/sdk/raea/bench/bevy-parity/ui/images/image_node_resizing.tsx@@ -3,7 +3,8 @@// padding, spaced around) of two light-blue (tailwind BLUE_100) groups 75% wide and 30% high: four icon.png// ImageNodes in NodeImageMode::Auto, then four in Stretch, 10%, 20%, 30% and 40% wide and the group's height. Bevy's// GlobalUiDebugOptions outlines every node but the text's, each coloured by its entity's index: setup's Commands-// reserve them in spawn order from the camera's, 430 (DefaultPlugins' startup entities before it; the text's+// reserve them in spawn order from the camera's, 429 (DefaultPlugins' startup entities before it in the parity+// host, a count that moves with what the host links: 430 before later examples joined it; the text's// observer comes later, when the commands apply). The arrows resize the groups only while held. Bevy's Camera2d over// the default clear colour is the layered <Canvas3D>. In Bevy's default 1280 x 720 window.import type { ReactNode } from "react";@@ -17,7 +18,7 @@ const ICON = staticFile("branding/icon.png");const BLUE_100 = new Srgba(0xdb / 255, 0xea / 255, 0xfe / 255);const PREFIX = "Compare NodeImageMode(Auto, Stretch) press `Up`/`Down` to resize height, press `Left`/`Right` to resize width\n";// each node's entity index: the camera's, then setup's spawns in order-const CAMERA = 430;+const CAMERA = 429;const at = (k: number) => CAMERA + k;const Group = ({ index, children }: { index: number; children: ReactNode }) => (diff --git a/sdk/raea/bench/bevy-parity/ui/widgets/feathers_gallery.tsx b/sdk/raea/bench/bevy-parity/ui/widgets/feathers_gallery.tsxnew file mode 100644index 00000000..8a0e1663--- /dev/null+++ b/sdk/raea/bench/bevy-parity/ui/widgets/feathers_gallery.tsx@@ -0,0 +1,207 @@+// Bevy v0.20.0 examples/ui/widgets/feathers_gallery.rs in raea's TSX (docs/control.feature FC0a): every bevy_feathers+// widget under the dark UiTheme, in three columns on WINDOW_BG, 8 px apart. The first (30%, at least 200 px) holds the+// buttons, a menu and a lazy menu, two selects, a split button row, the toggles, checkboxes and radios, a slider, and+// the colour controls of three demo colours (EMERALD_800 at 0.7 alpha, AMBER_800 as Hsla and as Okhsla): the hex field,+// swatches, the red-blue and okhsl hue-lightness planes, and a slider per channel, as update_colors sets them on the+// first frame. The second (30%) holds a pane of tool buttons over a sub-pane with a group of number inputs, and a list+// sub-pane; the third (15%) two colour inputs. Popups, hover, focus rings and drags need input. Bevy's Camera2d over the+// default clear colour is the layered <Canvas3D>, in Bevy's default 1280 x 720 window.+import { AbsoluteFill, Composition, registerRoot } from "raea";+import { Canvas3D } from "raea/3d";+import { Hsla, Okhsla, Srgba } from "raea/color";+import { Node, UiRect, percent, px } from "raea/ui";+import {+ FeathersButton, FeathersCheckbox, FeathersColorInput, FeathersColorPlane, FeathersColorSlider, FeathersColorSwatch, FeathersDisclosureToggle, FeathersLazyMenu, FeathersListRow, FeathersListView,+ FeathersMenu, FeathersMenuButton, FeathersMenuDivider, FeathersMenuItem, FeathersMenuPopup, FeathersMenuToolButton, FeathersNumberInput, FeathersRadio, FeathersSelect, FeathersSlider,+ FeathersTextInput, FeathersTextInputContainer, FeathersToggleSwitch, FeathersToolButton, NumberInputRange, NumberInputValue, ThemeBackgroundColor, UiTheme, caption, create_dark_theme, flex_spacer,+ group, group_body, group_header, icon, icons, label, label_dim, label_small, list_rows_from_strings, pane, pane_body, pane_header, pane_header_divider, subpane, subpane_body, subpane_header,+ tokens, type ColorChannel,+} from "raea/feathers";++// DemoWidgetStates+const rgb = Srgba.hex("#065F46").with_alpha(0.7);+const amber800 = Srgba.hex("#92400E");+const hsl = Hsla.from(amber800);+const okhsl = Okhsla.from(amber800);++const row = { display: "Flex", flex_direction: "Row", align_items: "Center", justify_content: "Start" } as const;+const column = { display: "Flex", flex_direction: "Column", align_items: "Stretch", justify_content: "Start", padding: UiRect.all(px(8)), row_gap: px(8) } as const;+const between = { display: "Flex", flex_direction: "Row", align_items: "Center", justify_content: "SpaceBetween" } as const;++/** update_colors: each slider's value its channel of the demo colour, its base that colour */+function slider(channel: ColorChannel) {+ const [base, value]: [Srgba | Hsla | Okhsla, number] =+ channel === "Red" ? [rgb, rgb.red] : channel === "Green" ? [rgb, rgb.green] : channel === "Blue" ? [rgb, rgb.blue] : channel === "Alpha" ? [rgb, rgb.alpha]+ : channel === "HslHue" ? [hsl, hsl.hue] : channel === "HslSaturation" ? [hsl, hsl.saturation] : channel === "HslLightness" ? [hsl, hsl.lightness]+ : channel === "OkhslHue" ? [okhsl, okhsl.hue] : channel === "OkhslSaturation" ? [okhsl, okhsl.saturation] : [okhsl, okhsl.lightness];+ return <FeathersColorSlider key={channel} channel={channel} value={value} base_color={base} />;+}++const MONTHS = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];++function Column1() {+ return (+ <Node {...column} width={percent(30)} min_width={px(200)}>+ <Node {...row} column_gap={px(8)}>+ <FeathersButton flex_grow={1}>{caption("Normal")}</FeathersButton>+ <FeathersButton flex_grow={1} disabled>{caption("Disabled")}</FeathersButton>+ <FeathersButton variant="Primary" flex_grow={1}>{caption("Primary")}</FeathersButton>+ <FeathersMenu>+ <FeathersMenuButton flex_grow={1}>{caption("Menu")}</FeathersMenuButton>+ <FeathersMenuPopup>+ <FeathersMenuItem>{caption("MenuItem 1")}</FeathersMenuItem>+ <FeathersMenuItem>{caption("MenuItem 2")}</FeathersMenuItem>+ <FeathersMenuDivider />+ <FeathersMenuItem>{caption("MenuItem 3")}</FeathersMenuItem>+ </FeathersMenuPopup>+ </FeathersMenu>+ <FeathersLazyMenu>+ <FeathersMenuToolButton flex_grow={1}>{caption("Θ")}</FeathersMenuToolButton>+ </FeathersLazyMenu>+ </Node>+ <FeathersSelect options={list_rows_from_strings(["One", "Two", "Three"], 0)} flex_grow={1} />+ <FeathersSelect options={list_rows_from_strings(MONTHS, 0)} max_visible={6} flex_grow={1} />+ <Node {...row} column_gap={px(1)}>+ <FeathersButton corners="Left" flex_grow={1}>{caption("Left")}</FeathersButton>+ <FeathersButton corners="None" flex_grow={1}>{caption("Center")}</FeathersButton>+ <FeathersButton variant="Primary" corners="Right" flex_grow={1}>{caption("Right")}</FeathersButton>+ </Node>+ <Node {...row} column_gap={px(8)}>+ <FeathersButton flex_grow={1}>{caption("Toggle override")}</FeathersButton>+ <FeathersButton flex_grow={1}>{caption("Quit…")}</FeathersButton>+ </Node>+ <Node {...row} column_gap={px(8)}>+ {label("Dialog:")}+ <FeathersToggleSwitch />+ </Node>+ <FeathersCheckbox checked>{caption("Checkbox")}</FeathersCheckbox>+ <FeathersCheckbox>{caption("Fast Click Checkbox")}</FeathersCheckbox>+ <FeathersCheckbox disabled>{caption("Disabled")}</FeathersCheckbox>+ <FeathersCheckbox disabled checked>{caption("Checked+Disabled")}</FeathersCheckbox>+ <Node {...row} column_gap={px(8)}>+ <Node display="Flex" flex_direction="Column" row_gap={px(4)}>+ <FeathersRadio checked>{caption("One")}</FeathersRadio>+ <FeathersRadio>{caption("Two")}</FeathersRadio>+ <FeathersRadio>{caption("Fast Click")}</FeathersRadio>+ <FeathersRadio disabled>{caption("Disabled")}</FeathersRadio>+ </Node>+ </Node>+ <Node {...row} column_gap={px(8)}>+ <FeathersToggleSwitch />+ <FeathersToggleSwitch />+ <FeathersToggleSwitch disabled />+ <FeathersToggleSwitch disabled checked />+ <FeathersDisclosureToggle />+ </Node>+ <FeathersSlider max={100} value={20} step={10} precision={2} />+ <Node {...between} column_gap={px(4)}>+ {label("Srgba")}+ {flex_spacer()}+ {/* the example's InheritableFont { font: MONO } on the input reaches no text: its PropagateOver<TextFont> keeps the+ propagated font off the input's own text, so Bevy draws it in feathers' REGULAR face, as here */}+ <FeathersTextInputContainer flex_grow={0} padding={UiRect.left(px(4))}>+ <FeathersTextInput visible_width={10} max_characters={9}>{rgb.to_hex()}</FeathersTextInput>+ </FeathersTextInputContainer>+ <FeathersColorSwatch color={rgb} opaque_color_percentage={30} />+ </Node>+ <FeathersColorPlane plane="RedBlue" value={[rgb.red, rgb.blue, rgb.green]} />+ {(["Red", "Green", "Blue", "Alpha"] as const).map(slider)}+ <Node {...between}>+ {label("Hsl")}+ <FeathersColorSwatch color={hsl} />+ </Node>+ {(["HslHue", "HslSaturation", "HslLightness"] as const).map(slider)}+ <Node {...between}>+ {label("Okhsl")}+ <FeathersColorSwatch color={okhsl} />+ </Node>+ <FeathersColorPlane plane="OkhslHueLightness" value={[okhsl.hue / 360, okhsl.lightness, okhsl.saturation]} />+ {(["OkhslHue", "OkhslSaturation", "OkhslLightness"] as const).map(slider)}+ </Node>+ );+}++const axis = (sigil: string, token: (typeof tokens)[keyof typeof tokens], v: number, disabled = false) => (+ <FeathersNumberInput key={sigil} value={NumberInputValue.F32(v)} precision={2} sigil_color={token} label_text={sigil} flex_grow={1} disabled={disabled} hard_limit={disabled ? NumberInputRange.F32(0, 1) : undefined} />+);++function Column2() {+ const tool = (variant: "Primary" | "Plain", c: ReturnType<typeof caption>) => <FeathersToolButton variant={variant}>{c}</FeathersToolButton>;+ return (+ <Node {...column} width={percent(30)} min_width={px(200)}>+ {pane([+ pane_header([+ tool("Primary", caption("Θ")), pane_header_divider(), tool("Plain", caption("¼")), tool("Plain", caption("½")), tool("Plain", caption("¾")), pane_header_divider(),+ tool("Plain", icon(icons.CHEVRON_DOWN)), flex_spacer(), tool("Plain", icon(icons.X)),+ ]),+ pane_body([+ label_dim("A standard editor pane"),+ subpane([+ subpane_header([caption("Left"), caption("Center"), caption("Right")]),+ subpane_body([+ label_dim("A standard sub-pane"),+ group([+ group_header([caption("Group")]),+ group_body([+ label("A standard group"),+ label_small("Scalar property"),+ <FeathersNumberInput value={NumberInputValue.F32(7)} precision={2} hard_limit={NumberInputRange.F32(0, 100)} flex_grow={1} max_width={px(100)} />,+ label_small("Scalar property (copy)"),+ <FeathersNumberInput value={NumberInputValue.F32(7)} precision={4} flex_grow={1} max_width={px(100)} />,+ label_small("Vec3 property"),+ <Node {...between} column_gap={px(6)}>{[axis("X", tokens.TEXT_INPUT_X_AXIS, 10.1), axis("Y", tokens.TEXT_INPUT_Y_AXIS, 7.124), axis("Z", tokens.TEXT_INPUT_Z_AXIS, 100)]}</Node>,+ label_small("Color property"),+ <Node {...between} column_gap={px(6)}>{[axis("R", tokens.TEXT_INPUT_X_AXIS, 0, true), axis("G", tokens.TEXT_INPUT_Y_AXIS, 0, true), axis("B", tokens.TEXT_INPUT_Z_AXIS, 0, true), axis("A", tokens.TEXT_INPUT_W_AXIS, 0, true)]}</Node>,+ ]),+ ]),+ ]),+ ]),+ ]),+ ])}+ {subpane([+ subpane_header([caption("List")]),+ subpane_body([+ <FeathersListView max_height={px(130)}>+ {["First World", "Second Nature", "Third Degree", "Fourth Wall", "Fifth Column", "Sixth Sense", "Seventh Heaven", "Eighth Wonder", "Ninth Inning", "Tenth Amendment", "Eleventh Hour", "Twelfth Night"].map((t, i) => (+ <FeathersListRow key={t} selected={i === 1} disabled={i === 3}>{caption(t)}</FeathersListRow>+ ))}+ </FeathersListView>,+ ]),+ ])}+ </Node>+ );+}++function Column3() {+ return (+ <Node {...column} width={percent(15)} min_width={px(100)}>+ <Node {...between}>+ {label("Armor Tint")}+ <FeathersColorInput value={Srgba.hex("#D97706")} />+ </Node>+ <Node {...between}>+ {label("Skin Color")}+ <FeathersColorInput value={Srgba.hex("#1E40AF")} />+ </Node>+ </Node>+ );+}++function Shot() {+ return (+ <AbsoluteFill>+ <Canvas3D layered clearColor="rgb(43, 44, 47)" />+ <UiTheme theme={create_dark_theme()}>+ <ThemeBackgroundColor token={tokens.WINDOW_BG}>+ <Node width={percent(100)} height={percent(100)} align_items="Start" justify_content="Start" display="Flex" flex_direction="Row" column_gap={px(8)}>+ <Column1 />+ <Column2 />+ <Column3 />+ </Node>+ </ThemeBackgroundColor>+ </UiTheme>+ </AbsoluteFill>+ );+}++registerRoot(() => <Composition id="main" component={Shot} durationInFrames={11} fps={60} width={1280} height={720} />);diff --git a/sdk/raea/conformance/feathers-color.test.tsx b/sdk/raea/conformance/feathers-color.test.tsxnew file mode 100644index 00000000..28e883bf--- /dev/null+++ b/sdk/raea/conformance/feathers-color.test.tsx@@ -0,0 +1,112 @@+// docs/control.feature FC0a: bevy_feathers' colour controls and the parts of feathers_gallery its frame can't show (the+// Okhsl rows are below Bevy's 720 px window): a colour slider's track as update_track_color colours it, its thumb as+// update_slider_pos places it, the swatch over the alpha pattern, the colour plane's bitmap and thumb, the list view as+// Bevy 0.20 draws it, and two bevy_ui rules the gallery brought: a spreading box shadow, and a border blended over what+// lies under its node rather than the node's own background.+import { describe, expect, test } from "bun:test";+import { Hsla, Okhsla, Srgba } from "raea/color";+import { BoxShadow, Node, UiRect, px } from "raea/ui";+import { FeathersColorPlane, FeathersColorSlider, FeathersColorSwatch, FeathersListRow, FeathersListView, FeathersTextInput, UiTheme, caption, channel_range, create_dark_theme, gradient_ends } from "raea/feathers";+import { renderFrame } from "../src/test";++const html = (el: React.ReactElement) => renderFrame(<UiTheme theme={create_dark_theme()}>{el}</UiTheme>, { frame: 0, width: 320, height: 240, fps: 60, durationInFrames: 10 });+const amber800 = Srgba.hex("#92400E");+const byte = (v: number) => Math.round(Math.max(0, Math.min(1, v)) * 255);+const rgba = (c: Srgba) => `rgba(${byte(c.red)}, ${byte(c.green)}, ${byte(c.blue)}, ${c.alpha})`;++describe("ColorChannel", () => {+ test("a hue runs 0 to 360, the rest 0 to 1", () => {+ expect(channel_range("HslHue")).toEqual({ start: 0, end: 360 });+ expect(channel_range("OkhslHue")).toEqual({ start: 0, end: 360 });+ expect(channel_range("Alpha")).toEqual({ start: 0, end: 1 });+ });+ test("gradient_ends: the channel at 0, half and full, the base's other channels kept", () => {+ const [a, , c] = gradient_ends("Green", Srgba.hex("#065F46")) as Srgba[];+ expect([a.red, a.green, c.green, c.blue]).toEqual([6 / 255, 0, 1, 70 / 255]);+ const [, m] = gradient_ends("HslLightness", amber800) as Hsla[];+ expect(m.lightness).toBe(0.5);+ expect(m.hue).toBeCloseTo(Hsla.from(amber800).hue, 4);+ });+});++describe("FeathersColorSlider", () => {+ test("an Hsla track keeps its stops' hues, so the hue track runs red, cyan and back to red the long way", () => {+ const out = html(<FeathersColorSlider channel="HslHue" value={180} />);+ expect(out).toMatch(/in hsl, hsl\(0\.000\d+ 100% 50% \/ 1\) 0px/);+ expect(out).toMatch(/hsl\(359\.99\d+ 100% 50% \/ 1\) 0px/);+ });+ test("an Okhsla track is the okhsl mix sampled into stops: half way from 180 to 360 is okhsl hue 270", () => {+ const out = html(<FeathersColorSlider channel="OkhslHue" value={0} />);+ expect(out).toContain("in oklab");+ expect(out).toContain(rgba(new Okhsla(270, 1, 0.5).to_srgba()));+ expect((out.match(/rgba\(/g) ?? []).length).toBeGreaterThan(48);+ });+ test("an Alpha track runs the base colour from clear to opaque in its own space", () => {+ const out = html(<FeathersColorSlider channel="Alpha" value={0.7} base_color={Srgba.hex("#065F46")} />);+ expect(out).toContain("in srgb, rgba(6, 95, 70, 0) 0px, rgba(6, 95, 70, 0) 7px, rgba(6, 95, 70, 0.5) 50%");+ });+ test("its thumb sits at the value's place along the track inside half a thumb each side", () => {+ expect(html(<FeathersColorSlider channel="HslHue" value={90} />)).toMatch(/left:\s*25%[^"]*transform:\s*translate\(-7px, -50%\)/);+ });+});++describe("FeathersColorSwatch", () => {+ test("its colour over the 16 px checkerboard centred on it, the right part opaque", () => {+ const out = html(<FeathersColorSwatch color={Srgba.hex("#065F46").with_alpha(0.7)} opaque_color_percentage={30} />);+ expect(out).toContain("conic-gradient(rgb(203, 203, 203) 0deg 90deg, rgb(124, 124, 124) 90deg 180deg");+ expect(out).toMatch(/background-size:\s*16px 16px/);+ expect(out).toMatch(/background-position:\s*50% 50%/);+ expect(out).toContain("rgba(6, 95, 70, 0.7)");+ expect(out).toMatch(/left:\s*70%[^"]*background-color:\s*rgba\(6, 95, 70, 1\)/);+ });+});++describe("FeathersColorPlane", () => {+ test("a bitmap of the plane, made again when the fixed channel moves, and its thumb at the value", () => {+ const a = html(<FeathersColorPlane plane="RedBlue" value={[0.25, 0.75, 0.2]} />);+ const b = html(<FeathersColorPlane plane="RedBlue" value={[0.25, 0.75, 0.6]} />);+ const url = (s: string) => s.match(/data:image\/png;base64,[A-Za-z0-9+/=]+/)?.[0];+ expect(url(a)).toBeDefined();+ expect(url(a)).not.toBe(url(b));+ expect(a).toMatch(/left:\s*25%[^"]*top:\s*25%/);+ });+ test("an unknown plane is refused", () => {+ expect(() => html(<FeathersColorPlane plane={"RedYellow" as never} />)).toThrow(/plane is one of/);+ });+});++describe("FeathersListView, as Bevy 0.20 draws it", () => {+ test("a scrollbar track in a 14 px gutter and no thumb, whether its rows overflow or not", () => {+ for (const rows of [2, 12]) {+ const out = html(<FeathersListView max_height={px(130)}>{Array.from({ length: rows }, (_, i) => <FeathersListRow key={i}>{caption(`row ${i}`)}</FeathersListRow>)}</FeathersListView>);+ expect(out).toMatch(/padding:\s*0px 14px 0px 0px/);+ expect(out).not.toContain("data-raea-bevy-thumb");+ }+ });+});++describe("FeathersTextInput", () => {+ test("visible_width sets its width in the font's zeros and stops it growing", () => {+ expect(html(<FeathersTextInput visible_width={10}>#065F46B3</FeathersTextInput>)).toMatch(/width:\s*10ch[^"]*flex:\s*0 0 auto/);+ });+});++describe("bevy_ui rules the gallery brought", () => {+ test("a spreading box shadow is sent with its spread and marked for bevy_ui's rule", () => {+ const out = html(<Node width={px(100)} height={px(40)} box_shadow={BoxShadow.new(new Srgba(0, 0, 0, 0.9), px(0), px(0), px(1), px(4))} />);+ expect(out).toContain("0px 0px 8px 1px rgba(0, 0, 0, 0.9)");+ expect(out).toContain("data-raea-bevy-shadow");+ expect(html(<Node width={px(100)} box_shadow={BoxShadow.new(new Srgba(0, 0, 0, 1), px(2), px(2), px(0), px(4))} />)).not.toContain("data-raea-bevy-shadow");+ });+ test("a translucent border blends over what lies under the node, not the node's own background", () => {+ const half = new Srgba(1, 1, 1, 0.5);+ const out = html(+ <Node width={px(100)} height={px(100)} background_color={new Srgba(0, 0, 0)}>+ <Node width={px(40)} height={px(20)} border={UiRect.all(px(2))} background_color={half} border_color={half} />+ </Node>,+ );+ // white at 0.5 over black in linear light: 0.5 linear, sRGB 188, for the background and the border alike+ expect(out).toMatch(/background-color:\s*rgba\(188, 188, 188, 1\)/);+ expect(out).toMatch(/border-color:\s*rgba\(188, 188, 188, 1\)/);+ });+});diff --git a/sdk/raea/conformance/ui-transform.test.tsx b/sdk/raea/conformance/ui-transform.test.tsxindex a17a0925..25d24c7c 100644--- a/sdk/raea/conformance/ui-transform.test.tsx+++ b/sdk/raea/conformance/ui-transform.test.tsx@@ -40,8 +40,12 @@ describe("BoxShadow: drop shadows under a node", () => {expect(out).toMatch(/box-shadow:-4px 5px 0px 0px rgba\(0, 0, 255, 1\), 1px 2px 6px 0px rgba\(255, 0, 0, 1\)/);expect(html(<Node box_shadow={BoxShadow.new(new Srgba(0, 0, 0), px(30), px(30), px(0), px(4))} />)).toMatch(/box-shadow:30px 30px 8px 0px /);});- test("a spread, a percent or a negative blur is refused, not drawn wrong", () => {- expect(() => html(<Node box_shadow={BoxShadow.new(new Srgba(0, 0, 0), px(1), px(1), px(2), px(4))} />)).toThrow(/spread_radius/);+ test("a spread is sent as it is and its node marked, for raea's Blitz to spread it by bevy_ui's rule", () => {+ const out = html(<Node box_shadow={BoxShadow.new(new Srgba(0, 0, 0), px(1), px(1), px(2), px(4))} />);+ expect(out).toMatch(/box-shadow:1px 1px 8px 2px /);+ expect(out).toContain("data-raea-bevy-shadow");+ });+ test("a percent or a negative blur is refused, not drawn wrong", () => {expect(() => html(<Node box_shadow={BoxShadow.new(new Srgba(0, 0, 0), percent(20), px(1), px(0), px(4))} />)).toThrow(/x_offset/);expect(() => html(<Node box_shadow={BoxShadow.new(new Srgba(0, 0, 0), px(1), px(1), px(0), px(-1))} />)).toThrow(/blur_radius/);});diff --git a/sdk/raea/src/color.ts b/sdk/raea/src/color.tsindex 2c41ac71..d21e5ddc 100644--- a/sdk/raea/src/color.ts+++ b/sdk/raea/src/color.ts@@ -2,5 +2,5 @@// into it at M5; until then the old subpaths and this one export the same values.// raea/color (bevy_color): colours.export { toHex } from "./3d";-export { Srgba, LinearRgba, Hsla, Oklaba, Oklcha, Xyza } from "@raea/render/bevy3d";+export { Srgba, LinearRgba, Hsla, Okhsla, Oklaba, Oklcha, Xyza } from "@raea/render/bevy3d";export { kelvin } from "@raea/render/daylight";diff --git a/sdk/raea/src/feathers.ts b/sdk/raea/src/feathers.tsindex 17624f3a..d64f6d92 100644--- a/sdk/raea/src/feathers.ts+++ b/sdk/raea/src/feathers.ts@@ -1,4 +1,8 @@// raea/feathers (bevy_feathers, docs/control.feature FC0a): Bevy's widget set, its dark theme and its fonts, drawn by// the page.-export { tokens, palette, create_dark_theme, UiTheme, ThemeContext, ThemedText, context_color, useThemeColor, fonts, size, FeathersButton, VirtualKeyboard, to_border_radius, caption, label, label_dim, label_small, ThemeBackgroundColor, ThemeBorderColor, ThemeTextColor, FeathersNumberInput, NumberInputValue, NumberInputRange, StandardUnitKind, Dimensionless, LengthMeters, TimeSeconds, AngleDegrees } from "@raea/render/feathers";-export type { ThemeToken, ThemeProps, SurfaceLevel, ButtonVariant, RoundedCorners, FeathersButtonProps, FeathersNumberInputProps, NumberInputWrap, NumberKind, UnitsFormat, StandardUnitItem } from "@raea/render/feathers";+export { tokens, palette, create_dark_theme, UiTheme, ThemeContext, ThemedText, context_color, useThemeColor, useInheritedColor, fonts, size, FeathersButton, FeathersToolButton, VirtualKeyboard, to_border_radius, caption, label, label_dim, label_small, icon, icon_untinted, icons, ThemeBackgroundColor, ThemeBorderColor, ThemeTextColor, FeathersNumberInput, NumberInputValue, NumberInputRange, StandardUnitKind, Dimensionless, LengthMeters, TimeSeconds, AngleDegrees } from "@raea/render/feathers";+export { pane, pane_header, pane_header_divider, pane_body, subpane, subpane_header, subpane_body, group, group_header, group_body, flex_spacer } from "@raea/render/feathers";+export { FeathersMenu, FeathersLazyMenu, FeathersMenuButton, FeathersMenuToolButton, FeathersMenuPopup, FeathersMenuItem, FeathersMenuDivider, FeathersCheckbox, FeathersRadio, FeathersToggleSwitch, FeathersDisclosureToggle, FeathersSlider, slider_label } from "@raea/render/feathers";+export { FeathersScrollbar, FeathersListView, FeathersListRow, FeathersSelect, list_rows_from_strings, FeathersColorSwatch, FeathersColorSlider, channel_range, gradient_ends, FeathersColorPlane, FeathersColorInput, FeathersTextInputContainer, FeathersTextInput } from "@raea/render/feathers";+export type { ThemeToken, ThemeProps, SurfaceLevel, ButtonVariant, RoundedCorners, FeathersButtonProps, FeathersNumberInputProps, NumberInputWrap, NumberKind, UnitsFormat, StandardUnitItem, FeathersIcon } from "@raea/render/feathers";+export type { FeathersMenuButtonProps, FeathersToggleProps, FeathersSliderProps, FeathersScrollbarProps, FeathersListViewProps, FeathersListRowProps, FeathersSelectProps, FeathersColor, ColorChannel, FeathersColorSwatchProps, FeathersColorSliderProps, FeathersColorPlaneProps, FeathersColorInputProps, FeathersTextInputContainerProps, FeathersTextInputProps } from "@raea/render/feathers";diff --git a/sdk/render/src/bevy3d.tsx b/sdk/render/src/bevy3d.tsxindex 4ff16a7b..222ee458 100644--- a/sdk/render/src/bevy3d.tsx+++ b/sdk/render/src/bevy3d.tsx@@ -20,7 +20,7 @@ export { TextureView } from "./layers";// your own Material (docs/control.feature FC2a)export { Material, type MaterialProps } from "./bevy3d/all";// bevy_color's other spaces (docs/control.feature FC1f)-export { Hsla, Oklaba, Oklcha, Xyza } from "./bevy3d/all";+export { Hsla, Okhsla, Oklaba, Oklcha, Xyza } from "./bevy3d/all";// FogFalloff, Bevy's constructors, for a <Fog> inside the <Camera3d> (docs/control.feature FC0a)export { FogFalloff } from "./bevy3d/fog";// Bevy's Hdr camera marker, inside the <Camera3d> (docs/control.feature FC0a)diff --git a/sdk/render/src/bevy3d/all.ts b/sdk/render/src/bevy3d/all.tsindex 3af736c4..fbf67311 100644--- a/sdk/render/src/bevy3d/all.ts+++ b/sdk/render/src/bevy3d/all.ts@@ -8,3 +8,4 @@ export * from "./material";export * from "./lights";export * from "./mesh2d";export * from "./colorspaces";+export * from "./okhsla";diff --git a/sdk/render/src/bevy3d/feathers/color-input.tsx b/sdk/render/src/bevy3d/feathers/color-input.tsxnew file mode 100644index 00000000..ef177514--- /dev/null+++ b/sdk/render/src/bevy3d/feathers/color-input.tsx@@ -0,0 +1,26 @@+// bevy_feathers' colour input (color_input.rs; docs/control.feature FC0a): a menu tool button whose caption is an 18 px+// swatch of its ColorInputValue, a chevron after it. Its popup (a colour wheel or planes, sliders, a hex field and the+// recent colours) is built lazily on a click, so a render without input shows the button alone.+import { px } from "../ui-val";+import type { NodeProps } from "../ui";+import { FeathersColorSwatch, type FeathersColor } from "./color";+import { FeathersLazyMenu, FeathersMenuToolButton } from "./menu";++export interface FeathersColorInputProps extends NodeProps {+ /** ColorInputValue: the colour it holds */+ value?: FeathersColor;+ /** how much of the swatch's right side shows the colour opaque, in percent */+ opaque_color_percentage?: number;+}++/** A colour input: a button showing its colour, opening a colour picker when clicked.+ * @bevy bevy_feathers::controls::FeathersColorInput */+export function FeathersColorInput({ value, opaque_color_percentage = 0, ...node }: FeathersColorInputProps) {+ return (+ <FeathersLazyMenu {...node}>+ <FeathersMenuToolButton>+ <FeathersColorSwatch color={value} opaque_color_percentage={opaque_color_percentage} corners="None" width={px(18)} min_width={px(18)} height={px(18)} flex_grow={0} align_self="Center" justify_self="Start" />+ </FeathersMenuToolButton>+ </FeathersLazyMenu>+ );+}diff --git a/sdk/render/src/bevy3d/feathers/color-plane.tsx b/sdk/render/src/bevy3d/feathers/color-plane.tsxnew file mode 100644index 00000000..2a17ded9--- /dev/null+++ b/sdk/render/src/bevy3d/feathers/color-plane.tsx@@ -0,0 +1,144 @@+// bevy_feathers' colour plane (color_plane.rs, color_plane.wesl; docs/control.feature FC0a): two channels of a colour+// across and up a box, the third fixed. Bevy draws the plane with a UiMaterial running color_plane.wesl per pixel;+// raea has no UiMaterial yet (FC2), so here the same formulas fill a bitmap (a PNG data URL, stored deflate) that the+// inner node stretches over itself. The thumb is placed as update_plane_thumb_position places it after layout.+import { useContext, useMemo, type ReactNode } from "react";+import { InUi, Node, UiScaleCx, boxOf, nodeCss, type NodeProps } from "../ui";+import { Srgba } from "../colors";+import { Hsla } from "../colorspaces";+import { Okhsla } from "../okhsla";+import { BorderRadius, UiRect, percent, px } from "../ui-val";+import { UiTransform, Val2 } from "../ui-transform";+import { useThemeColor } from "./theme";+import { tokens } from "./tokens";++/** which two channels a plane spans, x then y: FeathersColorPlane's variants */+type ColorPlane = "RedGreen" | "RedBlue" | "GreenBlue" | "HueSaturation" | "HueLightness" | "OkhslHueSaturation" | "OkhslHueLightness";+const PLANES: readonly ColorPlane[] = ["RedGreen", "RedBlue", "GreenBlue", "HueSaturation", "HueLightness", "OkhslHueSaturation", "OkhslHueLightness"];++/** color_plane.wesl: the sRGB colour at (u, v), v down from the top, `z` the fixed channel (a hue in turns) */+function planeColor(plane: ColorPlane, u: number, v: number, z: number): Srgba {+ const up = 1 - v;+ switch (plane) {+ case "RedGreen": return new Srgba(u, up, z);+ case "RedBlue": return new Srgba(u, z, up);+ case "GreenBlue": return new Srgba(z, u, up);+ case "HueSaturation": return new Hsla(u * 360, up, z).to_srgba();+ case "HueLightness": return new Hsla(u * 360, z, up).to_srgba();+ case "OkhslHueSaturation": return okhsl(u, up, z);+ case "OkhslHueLightness": return okhsl(u, z, up);+ }+}++/** okhsl_to_linear_rgb, as an sRGB colour: white at full lightness, black at none, as the shader's early returns */+function okhsl(h: number, s: number, l: number): Srgba {+ if (l >= 1) return new Srgba(1, 1, 1);+ if (l <= 0) return new Srgba(0, 0, 0);+ return new Okhsla(h * 360, s, l).to_srgba();+}++const W = 384;+const H = 96;++const CRC = (() => {+ const t = new Uint32Array(256);+ for (let n = 0; n < 256; n++) {+ let c = n;+ for (let k = 0; k < 8; k++) c = c & 1 ? 0xedb88320 ^ (c >>> 1) : c >>> 1;+ t[n] = c >>> 0;+ }+ return t;+})();+const B64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";++/** w×h RGB rows as a PNG data URL: stored deflate blocks, exact and quick to write */+function pngUrl(w: number, h: number, rgb: Uint8Array): string {+ const row = w * 3 + 1;+ const raw = new Uint8Array(row * h);+ for (let y = 0; y < h; y++) raw.set(rgb.subarray(y * w * 3, (y + 1) * w * 3), y * row + 1);+ const blocks = Math.max(1, Math.ceil(raw.length / 65535));+ const z = new Uint8Array(2 + raw.length + blocks * 5 + 4);+ z[0] = 0x78; z[1] = 0x01;+ let q = 2;+ for (let i = 0; i < blocks; i++) {+ const n = Math.min(65535, raw.length - i * 65535);+ z.set([i === blocks - 1 ? 1 : 0, n & 0xff, n >> 8, ~n & 0xff, (~n >> 8) & 0xff], q);+ z.set(raw.subarray(i * 65535, i * 65535 + n), q + 5);+ q += 5 + n;+ }+ let a = 1, b = 0;+ for (const x of raw) { a = (a + x) % 65521; b = (b + a) % 65521; }+ new DataView(z.buffer).setUint32(q, ((b << 16) | a) >>> 0);+ const parts: Uint8Array[] = [new Uint8Array([137, 80, 78, 71, 13, 10, 26, 10])];+ const chunk = (type: string, body: Uint8Array) => {+ const c = new Uint8Array(12 + body.length);+ const dv = new DataView(c.buffer);+ dv.setUint32(0, body.length);+ for (let i = 0; i < 4; i++) c[4 + i] = type.charCodeAt(i);+ c.set(body, 8);+ let crc = 0xffffffff;+ for (let i = 4; i < 8 + body.length; i++) crc = CRC[(crc ^ c[i]) & 0xff] ^ (crc >>> 8);+ dv.setUint32(8 + body.length, (crc ^ 0xffffffff) >>> 0);+ parts.push(c);+ };+ const head = new Uint8Array(13);+ new DataView(head.buffer).setUint32(0, w);+ new DataView(head.buffer).setUint32(4, h);+ head.set([8, 2, 0, 0, 0], 8);+ chunk("IHDR", head);+ chunk("IDAT", z);+ chunk("IEND", new Uint8Array());+ const all = new Uint8Array(parts.reduce((n, p) => n + p.length, 0));+ let o = 0;+ for (const p of parts) { all.set(p, o); o += p.length; }+ let s = "";+ for (let i = 0; i < all.length; i += 3) {+ const n = (all[i] << 16) | ((all[i + 1] ?? 0) << 8) | (all[i + 2] ?? 0);+ s += B64[(n >> 18) & 63] + B64[(n >> 12) & 63] + (i + 1 < all.length ? B64[(n >> 6) & 63] : "=") + (i + 2 < all.length ? B64[n & 63] : "=");+ }+ return `data:image/png;base64,${s}`;+}++/** the plane's pixels, each sampled at its centre */+function planeUrl(plane: ColorPlane, z: number): string {+ const rgb = new Uint8Array(W * H * 3);+ const byte = (c: number) => Math.round(Math.max(0, Math.min(1, c)) * 255);+ for (let y = 0; y < H; y++) {+ for (let x = 0; x < W; x++) {+ const c = planeColor(plane, (x + 0.5) / W, (y + 0.5) / H, z);+ rgb.set([byte(c.red), byte(c.green), byte(c.blue)], (y * W + x) * 3);+ }+ }+ return pngUrl(W, H, rgb);+}++/** the inner node: the plane's bitmap stretched over it, as the MaterialNode fills it */+function PlaneFill({ url, children, ...p }: NodeProps & { url: string; children?: ReactNode }) {+ const ui = useContext(InUi);+ const n = nodeCss("FeathersColorPlane", p, ui?.back, useContext(UiScaleCx));+ return boxOf({ ...n.css, backgroundImage: `url("${url}")`, backgroundSize: "100% 100%", backgroundRepeat: "no-repeat" }, undefined, children, ui === null, undefined, n.attrs);+}++export interface FeathersColorPlaneProps extends NodeProps {+ /** the two channels it spans, x then y (the FeathersColorPlane variant): RedGreen, RedBlue, GreenBlue, HueSaturation,+ * HueLightness, OkhslHueSaturation or OkhslHueLightness */+ plane?: ColorPlane;+ /** ColorPlaneValue: x and y the channels across and up (0 to 1, a hue in turns), z the fixed one */+ value?: [number, number, number];+}++/** A colour plane: at least 100 px high, 4 px padding, 5 px corners on COLOR_PLANE_BG, the plane filling its inside and+ * a 10 px ringed thumb at the value. @bevy bevy_feathers::controls::FeathersColorPlane */+export function FeathersColorPlane({ plane = "RedGreen", value = [0, 0, 0], ...node }: FeathersColorPlaneProps) {+ if (!PLANES.includes(plane)) throw new TypeError(`FeathersColorPlane: plane is one of ${PLANES.join(", ")}, got ${JSON.stringify(plane)}`);+ if (!Array.isArray(value) || value.length !== 3 || !value.every(Number.isFinite)) throw new TypeError(`FeathersColorPlane: value is [x, y, z], got ${JSON.stringify(value)}`);+ const [x, y, z] = value;+ const url = useMemo(() => planeUrl(plane, z), [plane, z]);+ return (+ <Node display="Flex" min_height={px(100)} align_self="Stretch" padding={UiRect.all(px(4))} border_radius={BorderRadius.all(px(5))} background_color={useThemeColor(tokens.COLOR_PLANE_BG)} {...node}>+ <PlaneFill url={url} align_self="Stretch" flex_grow={1}>+ <Node position_type="Absolute" left={percent(x * 100)} top={percent((1 - y) * 100)} width={px(10)} height={px(10)} border={UiRect.all(px(1))} border_radius={BorderRadius.MAX} border_color={new Srgba(1, 1, 1, 1)} outline={{ width: px(1), offset: px(0), color: new Srgba(0, 0, 0, 1) }} ui_transform={UiTransform.from_translation(Val2.px(-5, -5))} />+ </PlaneFill>+ </Node>+ );+}diff --git a/sdk/render/src/bevy3d/feathers/color.tsx b/sdk/render/src/bevy3d/feathers/color.tsxnew file mode 100644index 00000000..56ad9c4a--- /dev/null+++ b/sdk/render/src/bevy3d/feathers/color.tsx@@ -0,0 +1,153 @@+// bevy_feathers' colour swatch and colour slider (color_swatch.rs, color_slider.rs, alpha_pattern.rs; docs/control.feature+// FC0a). Bevy draws the checkerboard under a translucent colour with a UiMaterial (alpha_pattern.wesl: 8 px squares of+// linear 0.2 and 0.6, a corner of four at the node's centre); raea has no UiMaterial yet, so here it's the node's CSS+// background, a conic gradient tiled every 16 px from the centre, which the node's corners clip as the shader's+// sd_rounded_box does. A slider's thumb is placed as update_slider_pos places it after layout, from its value alone.+import { useContext, type CSSProperties, type ReactNode } from "react";+import { InUi, Node, UiScaleCx, boxOf, nodeCss, type NodeProps } from "../ui";+import { LinearRgba, Srgba } from "../colors";+import { Hsla } from "../colorspaces";+import { Okhsla } from "../okhsla";+import { ColorStop, LinearGradient, type Gradient, type InterpolationColorSpace } from "../ui-gradient";+import { GridPlacement } from "../ui-grid";+import { BorderRadius, UiRect, percent, px } from "../ui-val";+import { UiTransform, Val2 } from "../ui-transform";+import { size } from "./constants";+import { to_border_radius, type RoundedCorners } from "./controls";++/** a colour a colour control takes */+export type FeathersColor = Srgba | LinearRgba | Hsla | Okhsla;++const srgbaOf = (c: FeathersColor): Srgba => (c instanceof Srgba ? c : c.to_srgba());+const hslaOf = (c: FeathersColor): Hsla => (c instanceof Hsla ? c : Hsla.from(srgbaOf(c)));+const okhslaOf = (c: FeathersColor): Okhsla => (c instanceof Okhsla ? c : Okhsla.from(c instanceof Hsla ? c : c instanceof LinearRgba ? c : srgbaOf(c)));+const withAlpha = (c: FeathersColor, a: number): FeathersColor => (c instanceof Srgba ? c.with_alpha(a) : c instanceof LinearRgba ? new LinearRgba(c.red, c.green, c.blue, a) : c instanceof Hsla ? new Hsla(c.hue, c.saturation, c.lightness, a) : c.with_alpha(a));++/** alpha_pattern.wesl's checkerboard: linear 0.2 (sRGB 124) below right of the centre and above left, 0.6 (203) beside */+const CHECKER: CSSProperties = {+ backgroundImage: "conic-gradient(rgb(203, 203, 203) 0deg 90deg, rgb(124, 124, 124) 90deg 180deg, rgb(203, 203, 203) 180deg 270deg, rgb(124, 124, 124) 270deg 360deg)",+ backgroundSize: "16px 16px",+ backgroundPosition: "50% 50%",+ backgroundRepeat: "repeat",+};++/** a Node with feathers' AlphaPattern material under its children */+function AlphaPattern({ children, ...p }: NodeProps & { children?: ReactNode }) {+ if (p.background_color !== undefined || p.background_gradient !== undefined) throw new TypeError("AlphaPattern: the pattern is the node's background; colour a child");+ const ui = useContext(InUi);+ const n = nodeCss("AlphaPattern", p, ui?.back, useContext(UiScaleCx));+ // the pattern is opaque: what's inside blends over its squares, which differ, so it leaves no one backdrop+ return boxOf({ ...n.css, ...CHECKER }, undefined, children, ui === null, undefined, n.attrs);+}++export interface FeathersColorSwatchProps extends Omit<NodeProps, "border_radius"> {+ /** ColorSwatchValue: the colour shown over the checkerboard */+ color?: FeathersColor;+ /** how much of its right side shows the colour opaque, in percent */+ opaque_color_percentage?: number;+ corners?: RoundedCorners;+ /** the corners' radius in px (5 by default), on the corners `corners` names */+ border_radius?: number;+}++/** A colour swatch: ROW_HEIGHT high, at least as wide, its colour over the alpha pattern, the right+ * `opaque_color_percentage` of it the colour made opaque. @bevy bevy_feathers::controls::FeathersColorSwatch */+export function FeathersColorSwatch({ color, opaque_color_percentage = 0, corners = "All", border_radius = 5, ...node }: FeathersColorSwatchProps) {+ // ColorSwatchValue's default is Color::default (white); update_swatch_color paints both parts from it+ const c = srgbaOf(color ?? new Srgba(1, 1, 1, 1));+ const radius = to_border_radius(corners, border_radius);+ return (+ <AlphaPattern height={size.ROW_HEIGHT} min_width={size.ROW_HEIGHT} border_radius={radius} {...node}>+ <Node position_type="Absolute" left={px(0)} top={px(0)} bottom={px(0)} right={px(0)} border_radius={radius} background_color={c} />+ {opaque_color_percentage > 0 && (+ <Node position_type="Absolute" left={percent(100 - Math.max(0, Math.min(100, opaque_color_percentage)))} top={px(0)} bottom={px(0)} right={px(0)} border_radius={to_border_radius("Right", border_radius)} background_color={c.with_alpha(1)} z_index={1} />+ )}+ </AlphaPattern>+ );+}++/** Which channel of a colour a FeathersColorSlider sets. @bevy bevy_feathers::controls::ColorChannel */+export type ColorChannel = "Red" | "Green" | "Blue" | "HslHue" | "HslSaturation" | "HslLightness" | "Alpha" | "OkhslHue" | "OkhslSaturation" | "OkhslLightness";+const CHANNELS: readonly ColorChannel[] = ["Red", "Green", "Blue", "HslHue", "HslSaturation", "HslLightness", "Alpha", "OkhslHue", "OkhslSaturation", "OkhslLightness"];++/** ColorChannel::range: 0 to 360 for a hue, 0 to 1 for the rest. */+export function channel_range(channel: ColorChannel): { start: number; end: number } {+ return channel === "HslHue" || channel === "OkhslHue" ? { start: 0, end: 360 } : { start: 0, end: 1 };+}++/** ColorChannel::gradient_ends: the slider track's colours at its start, middle and end, the channel at 0, half and+ * full with the base colour's other channels. */+export function gradient_ends(channel: ColorChannel, base: FeathersColor): [FeathersColor, FeathersColor, FeathersColor] {+ const rgb = () => srgbaOf(base);+ const three = <T,>(f: (v: number) => T): [T, T, T] => [f(0), f(0.5), f(1)];+ switch (channel) {+ case "Red": return three((v) => new Srgba(v, rgb().green, rgb().blue));+ case "Green": return three((v) => new Srgba(rgb().red, v, rgb().blue));+ case "Blue": return three((v) => new Srgba(rgb().red, rgb().green, v));+ case "HslHue": return [new Hsla(0.0001, 1, 0.5), new Hsla(180, 1, 0.5), new Hsla(360 - 0.0001, 1, 0.5)];+ case "HslSaturation": { const h = hslaOf(base); return three((v) => new Hsla(h.hue, v, h.lightness)); }+ case "HslLightness": { const h = hslaOf(base); return three((v) => new Hsla(h.hue, h.saturation, v)); }+ case "OkhslHue": return [new Okhsla(0.0001, 1, 0.5), new Okhsla(180, 1, 0.5), new Okhsla(360 - 0.0001, 1, 0.5)];+ case "OkhslSaturation": { const o = okhslaOf(base); return three((v) => new Okhsla(o.hue, v, o.lightness)); }+ case "OkhslLightness": { const o = okhslaOf(base); return three((v) => new Okhsla(o.hue, o.saturation, v)); }+ case "Alpha": return three((v) => withAlpha(base, v));+ }+}++/** update_track_color's interpolation space: the channel's own, or for Alpha the base colour's */+function spaceOf(channel: ColorChannel, base: FeathersColor): InterpolationColorSpace {+ if (channel === "Red" || channel === "Green" || channel === "Blue") return "Srgba";+ if (channel.startsWith("Hsl")) return "Hsla";+ if (channel.startsWith("Okhsl")) return "Okhsla";+ return base instanceof LinearRgba ? "LinearRgba" : base instanceof Hsla ? "Hsla" : base instanceof Okhsla ? "Srgba" : "Srgba";+}++/** a stop's colour as the gradient takes it: an Hsla gradient's as CSS hsl(), its hue kept as Bevy keeps it (the stop+ * turned to linear and back to Hsla on the CPU, where 359.9999 stays 359.9999, which CSS's rgb() would round to red) */+function stopColor(c: FeathersColor, space: InterpolationColorSpace): Srgba | string {+ if (space !== "Hsla") return srgbaOf(c);+ const h = Hsla.from(LinearRgba.from(srgbaOf(c)));+ return `hsl(${h.hue} ${h.saturation * 100}% ${h.lightness * 100}% / ${h.alpha})`;+}++/** Color::NONE: transparent black in sRGB */+const NONE = new Srgba(0, 0, 0, 0);+const SLIDER_HEIGHT = 16;+const TRACK_PADDING = 3;+const TRACK_RADIUS = SLIDER_HEIGHT * 0.5 - TRACK_PADDING;+const THUMB_SIZE = SLIDER_HEIGHT - 2;++export interface FeathersColorSliderProps extends NodeProps {+ /** SliderValue: the channel's value, in its range */+ value?: number;+ channel?: ColorChannel;+ /** SliderBaseColor: the colour the track shows the channel of (white by default) */+ base_color?: FeathersColor;+}++/** A colour slider: a 16 px track of the channel's gradient over the alpha pattern, a 14 px ringed thumb at the value.+ * @bevy bevy_feathers::controls::FeathersColorSlider */+export function FeathersColorSlider({ value = 0, channel = "Alpha", base_color = new Srgba(1, 1, 1, 1), ...node }: FeathersColorSliderProps) {+ if (!CHANNELS.includes(channel)) throw new TypeError(`FeathersColorSlider: channel is one of ${CHANNELS.join(", ")}, got ${JSON.stringify(channel)}`);+ if (!Number.isFinite(value)) throw new RangeError(`FeathersColorSlider: value is a number, got ${value}`);+ const [start, middle, end] = gradient_ends(channel, base_color);+ const space = spaceOf(channel, base_color);+ const half = (from: FeathersColor, angle: (stops: ColorStop[]) => Gradient): Gradient => ({+ ...angle([ColorStop.new(stopColor(from, space), px(0)), ColorStop.new(stopColor(from, space), px(THUMB_SIZE * 0.5)), ColorStop.new(stopColor(middle, space), percent(50)), ColorStop.new(stopColor(NONE, space), percent(50)), ColorStop.new(stopColor(NONE, space), percent(100))]),+ color_space: space,+ });+ const range = channel_range(channel);+ const t = range.end > range.start ? (value - range.start) / (range.end - range.start) : 0.5;+ const cell = { grid_row: GridPlacement.start(1), grid_column: GridPlacement.start(1) };+ const track = { ...cell, margin: UiRect.vertical(px(TRACK_PADDING)), border_radius: BorderRadius.all(px(TRACK_RADIUS)) };+ return (+ <Node display="Grid" height={px(SLIDER_HEIGHT)} flex_grow={1} {...node}>+ <AlphaPattern {...track} />+ <Node {...track} background_gradient={[half(start, LinearGradient.to_right), half(end, LinearGradient.to_left)]} />+ <Node {...cell} margin={UiRect.horizontal(px(THUMB_SIZE * 0.5))}>+ {/* update_slider_pos: x = t * the track's width - half the thumb */}+ <Node position_type="Absolute" left={percent(t * 100)} top={percent(50)} width={px(THUMB_SIZE)} height={px(THUMB_SIZE)} border={UiRect.all(px(2))} border_radius={BorderRadius.MAX} border_color={new Srgba(1, 1, 1, 1)} outline={{ width: px(1), offset: px(0), color: new Srgba(0, 0, 0, 1) }} ui_transform={UiTransform.from_translation(Val2.new(px(-THUMB_SIZE * 0.5), percent(-50)))} />+ </Node>+ </Node>+ );+}diff --git a/sdk/render/src/bevy3d/feathers/containers.tsx b/sdk/render/src/bevy3d/feathers/containers.tsxnew file mode 100644index 00000000..901b4240--- /dev/null+++ b/sdk/render/src/bevy3d/feathers/containers.tsx@@ -0,0 +1,128 @@+// bevy_feathers' containers (pane.rs, subpane.rs, group.rs, flex_spacer.rs; docs/control.feature FC0a): the editor's+// panes, sub-panes and groups, each a header over a body, coloured from the UiTheme on the surface level each sets+// (Propagate<ThemeContext>: the node itself and everything inside), and handing feathers' font and a text colour to+// the ThemedText inside. As Bevy's, each is a function taking its children; `node` patches its Node, as a bsn! patch.+import type { ReactElement, ReactNode } from "react";+import { Node, type NodeProps } from "../ui";+import { BorderRadius, UiRect, px } from "../ui-val";+import { fonts, size } from "./constants";+import { to_border_radius } from "./controls";+import type { SurfaceLevel } from "./dark_theme";+import { InheritableText, ThemeContext, useThemeColor } from "./theme";+import { tokens, type ThemeToken } from "./tokens";++const FONT = { font: fonts.REGULAR, font_size: size.MEDIUM_FONT, weight: 400 } as const;++/** a Node coloured from the theme on its own surface level */+function Themed({ level, bg, border, text, font, node, children }: { level?: SurfaceLevel; bg?: ThemeToken; border?: ThemeToken; text?: ThemeToken; font?: boolean; node: NodeProps; children?: ReactNode }) {+ const inner = <Painted bg={bg} border={border} text={text} font={font} node={node}>{children}</Painted>;+ return level ? <ThemeContext level={level}>{inner}</ThemeContext> : inner;+}++function Painted({ bg, border, text, font, node, children }: { bg?: ThemeToken; border?: ThemeToken; text?: ThemeToken; font?: boolean; node: NodeProps; children?: ReactNode }) {+ const background_color = useThemeColor(bg ?? tokens.WINDOW_BG);+ const border_color = useThemeColor(border ?? tokens.WINDOW_BG);+ const color = useThemeColor(text ?? tokens.WINDOW_BG);+ const body = text || font ? <InheritableText {...(font ? FONT : {})} color={text ? color : undefined}>{children}</InheritableText> : children;+ return (+ <Node {...(bg ? { background_color } : {})} {...(border ? { border_color } : {})} {...node}>+ {body}+ </Node>+ );+}++const TOP = (w: number) => UiRect.new(px(w), px(w), px(w), px(0));+const BOTTOM = (w: number) => UiRect.new(px(w), px(w), px(0), px(w));++/** A pane: a column of a pane_header over a pane_body. @bevy bevy_feathers::containers::pane */+export function pane(children?: ReactNode, node: NodeProps = {}): ReactElement {+ return <Node display="Flex" flex_direction="Column" align_items="Stretch" {...node}>{children}</Node>;+}++/** A pane's header: a row of tools, 6 px padding and gaps, at least HEADER_HEIGHT, its top corners 4 px, a 1 px+ * border on three sides, on the Base level. @bevy bevy_feathers::containers::pane_header */+export function pane_header(children?: ReactNode, node: NodeProps = {}): ReactElement {+ return (+ <Themed level="Base" bg={tokens.PANE_HEADER_BG} border={tokens.PANE_HEADER_BORDER} text={tokens.PANE_HEADER_TEXT} font node={{ display: "Flex", flex_direction: "Row", align_items: "Center", justify_content: "SpaceBetween", padding: UiRect.all(px(6)), border: TOP(1), min_height: size.HEADER_HEIGHT, column_gap: px(6), border_radius: to_border_radius("Top", 4), ...node }}>+ {children}+ </Themed>+ );+}++/** A 1 px rule between a pane header's tools, reaching through the header's padding.+ * @bevy bevy_feathers::containers::pane_header_divider */+export function pane_header_divider(): ReactElement {+ return (+ <Node width={px(1)} align_self="Stretch">+ <Themed bg={tokens.PANE_HEADER_DIVIDER} node={{ position_type: "Absolute", left: px(0), right: px(0), top: px(-6), bottom: px(-6) }} />+ </Node>+ );+}++/** A pane's body: a column, 4 px apart, 6 px padding, its bottom corners 4 px, on the Higher level.+ * @bevy bevy_feathers::containers::pane_body */+export function pane_body(children?: ReactNode, node: NodeProps = {}): ReactElement {+ return (+ <Themed level="Higher" bg={tokens.PANE_BODY_BG} node={{ display: "Flex", flex_direction: "Column", row_gap: px(4), padding: UiRect.all(px(6)), border_radius: to_border_radius("Bottom", 4), ...node }}>+ {children}+ </Themed>+ );+}++/** A sub-pane: a column of a subpane_header over a subpane_body. @bevy bevy_feathers::containers::subpane */+export function subpane(children?: ReactNode, node: NodeProps = {}): ReactElement {+ return <Node display="Flex" flex_direction="Column" align_items="Stretch" {...node}>{children}</Node>;+}++/** A sub-pane's header: a row, 10 px each side, at least HEADER_HEIGHT, its top corners 4 px, a 1 px border on three+ * sides, on the Highest level. @bevy bevy_feathers::containers::subpane_header */+export function subpane_header(children?: ReactNode, node: NodeProps = {}): ReactElement {+ return (+ <Themed level="Highest" bg={tokens.SUBPANE_HEADER_BG} border={tokens.SUBPANE_HEADER_BORDER} text={tokens.SUBPANE_HEADER_TEXT} font node={{ display: "Flex", flex_direction: "Row", align_items: "Center", justify_content: "SpaceBetween", border: TOP(1), padding: UiRect.horizontal(px(10)), min_height: size.HEADER_HEIGHT, column_gap: px(4), border_radius: to_border_radius("Top", 4), ...node }}>+ {children}+ </Themed>+ );+}++/** A sub-pane's body: a column, 4 px apart, 6 px padding, a 1 px border on three sides, its bottom corners 4 px, on the+ * Higher level. @bevy bevy_feathers::containers::subpane_body */+export function subpane_body(children?: ReactNode, node: NodeProps = {}): ReactElement {+ return (+ <Themed level="Higher" bg={tokens.SUBPANE_BODY_BG} border={tokens.SUBPANE_BODY_BORDER} font node={{ display: "Flex", flex_direction: "Column", border: BOTTOM(1), row_gap: px(4), padding: UiRect.all(px(6)), border_radius: to_border_radius("Bottom", 4), ...node }}>+ {children}+ </Themed>+ );+}++/** A group: a bordered column (1 px, 4 px corners) of a group_header over a group_body, on the Highest level.+ * @bevy bevy_feathers::containers::group */+export function group(children?: ReactNode, node: NodeProps = {}): ReactElement {+ return (+ <Themed level="Highest" bg={tokens.GROUP_BG} border={tokens.GROUP_BORDER} node={{ display: "Flex", flex_direction: "Column", align_items: "Stretch", border: UiRect.all(px(1)), border_radius: BorderRadius.all(px(4)), ...node }}>+ {children}+ </Themed>+ );+}++/** A group's header: a row, 10 px each side, at least HEADER_HEIGHT. @bevy bevy_feathers::containers::group_header */+export function group_header(children?: ReactNode, node: NodeProps = {}): ReactElement {+ return (+ <Themed text={tokens.GROUP_HEADER_TEXT} font node={{ display: "Flex", flex_direction: "Row", align_items: "Center", justify_content: "SpaceBetween", padding: UiRect.horizontal(px(10)), min_height: size.HEADER_HEIGHT, column_gap: px(4), ...node }}>+ {children}+ </Themed>+ );+}++/** A group's body: a column, 4 px apart, 6 px padding. @bevy bevy_feathers::containers::group_body */+export function group_body(children?: ReactNode, node: NodeProps = {}): ReactElement {+ return (+ <Themed text={tokens.GROUP_HEADER_TEXT} font node={{ display: "Flex", flex_direction: "Column", row_gap: px(4), padding: UiRect.all(px(6)), ...node }}>+ {children}+ </Themed>+ );+}++/** A Node that grows to fill the row's free space. @bevy bevy_feathers::containers::flex_spacer */+export function flex_spacer(): ReactElement {+ return <Node flex_grow={1} />;+}diff --git a/sdk/render/src/bevy3d/feathers/controls.tsx b/sdk/render/src/bevy3d/feathers/controls.tsxindex 7f1c8603..9e00a104 100644--- a/sdk/render/src/bevy3d/feathers/controls.tsx+++ b/sdk/render/src/bevy3d/feathers/controls.tsx@@ -85,3 +85,8 @@ export function VirtualKeyboard({ keys }: { keys: string[][] }) {</Node>);}++/** A FeathersButton for a toolbar: 4 px each side and at least ROW_HEIGHT wide. @bevy bevy_feathers::controls::FeathersToolButton */+export function FeathersToolButton({ children, ...props }: FeathersButtonProps) {+ return <FeathersButton padding={UiRect.horizontal(px(4))} min_width={size.ROW_HEIGHT} {...props}>{children}</FeathersButton>;+}diff --git a/sdk/render/src/bevy3d/feathers/display.tsx b/sdk/render/src/bevy3d/feathers/display.tsxindex b60d5f54..3c65865b 100644--- a/sdk/render/src/bevy3d/feathers/display.tsx+++ b/sdk/render/src/bevy3d/feathers/display.tsx@@ -4,10 +4,13 @@// overrides (PropagateOver<TextFont>, and ThemeTextColor's PropagateOver<TextColor>). ThemeBackgroundColor,// ThemeBorderColor and ThemeTextColor colour the one element inside from the UiTheme, as the components do the entity// they're on.-import { cloneElement, isValidElement, type ReactElement } from "react";-import { Text } from "../ui";+import { cloneElement, isValidElement, useContext, type CSSProperties, type ReactElement } from "react";+import { InUi, Text, nodeCss } from "../ui";+import { LinearRgba, Srgba } from "../colors";+import { over, px } from "../ui-val";import { fonts, size } from "./constants";-import { ThemedText, useThemeColor } from "./theme";+import type { FeathersIcon } from "./icons";+import { ThemedText, useInheritedColor, useThemeColor } from "./theme";import { tokens, type ThemeToken } from "./tokens";/** a ThemedText of `text`. @bevy bevy_feathers::display::caption */@@ -53,3 +56,34 @@ export function ThemeBorderColor({ token, children }: { token: ThemeToken; childexport function ThemeTextColor({ token, children }: { token: ThemeToken; children: ReactElement }) {return cloneElement(only("ThemeTextColor", children), { color: useThemeColor(token) });}++/** an icon 14 px high (its width by its aspect), its white shape multiplied by `tint`: the picture over the tint, its+ * own alpha the mask, as bevy_ui multiplies an ImageNode's pixels by its color */+function Icon({ icon: i, tint }: { icon: FeathersIcon; tint: Srgba }) {+ if (!i || typeof i.image !== "string" || !(i.width > 0 && i.height > 0)) throw new TypeError(`icon: takes one of feathers' icons (icons.CHEVRON_DOWN), got ${JSON.stringify(i)}`);+ const ui = useContext(InUi);+ const n = nodeCss("icon", { width: px((14 * i.width) / i.height), height: px(14) }, ui?.back);+ const url = `url("${i.image}")`;+ const c = over("icon", "color", new Srgba(tint.red, tint.green, tint.blue, 1), undefined).css;+ const look: CSSProperties = { backgroundImage: `${url}, linear-gradient(${c}, ${c})`, backgroundSize: "100% 100%", backgroundBlendMode: "multiply", maskImage: url, maskSize: "100% 100%" };+ if (tint.alpha < 1) look.opacity = Math.max(0, tint.alpha);+ return <div style={{ ...n.css, ...look }} {...n.attrs} />;+}++function ThemedIcon({ icon: i }: { icon: FeathersIcon }) {+ const c = useInheritedColor();+ const tint = c === undefined ? new Srgba(1, 1, 1, 1) : c instanceof Srgba ? c : c instanceof LinearRgba ? c.to_srgba() : undefined;+ if (tint === undefined) throw new TypeError(`icon: the text colour around it is an Srgba or LinearRgba, got ${JSON.stringify(c)}`);+ return <Icon icon={i} tint={tint} />;+}++/** One of feathers' icons, 14 px high, tinted by the text colour the widget around it propagates (white outside one),+ * as a ThemedIcon. @bevy bevy_feathers::display::icon */+export function icon(i: FeathersIcon): ReactElement {+ return <ThemedIcon icon={i} />;+}++/** One of feathers' icons, 14 px high, untinted. @bevy bevy_feathers::display::icon_untinted */+export function icon_untinted(i: FeathersIcon): ReactElement {+ return <Icon icon={i} tint={new Srgba(1, 1, 1, 1)} />;+}diff --git a/sdk/render/src/bevy3d/feathers/icons.ts b/sdk/render/src/bevy3d/feathers/icons.tsnew file mode 100644index 00000000..9d11e0f6--- /dev/null+++ b/sdk/render/src/bevy3d/feathers/icons.ts@@ -0,0 +1,13 @@+// bevy_feathers' icons (constants.rs icons; docs/control.feature FC0a): its own 24 x 24 PNGs (MIT OR Apache-2.0, as+// bevy_feathers 0.20.0 ships them in src/assets/icons), inline as data URLs so a render needs no files. Each is a white+// shape on transparency, which icon() tints with the text colour around it.++/** a feathers icon: its picture and size in px */+export interface FeathersIcon { image: string; width: number; height: number }++/** bevy_feathers' icons. @bevy bevy_feathers::constants::icons */+export const icons = {+ CHEVRON_DOWN: { image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAItJREFUSEvtklEKgCAQRGdOVt2sTladbEMxMBF3CqQf/RFpd168XaLzYed8DIBreCj6psjM1tBJMt7eMbMdwFmrr84gNcwADpJLC5DVbjIgBCoQpaa5Ra0AJTxqFv0+dKnhEqDUlX5Imo8MKCDh6Q7/NuMqyhWm9Z28zcp7XgG8edW+D4BrbSj6X9EFizdAGf6qyhEAAAAASUVORK5CYII=", width: 24, height: 24 } as FeathersIcon,+ CHEVRON_RIGHT: { image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAIhJREFUSEvt1EEOgCAMBMDuy9SXqS/Tn1UheDTdrnKDxHghO7YVYJ0XOufbAMIOhy1y962kAKjv7GKAw8zm+zkBLL8DJdDdZSSs4PliFaEBtZIUoCBpIIt8Bfbo900D2WGngGx4PaDswVHCaUANp4B2F63drooGTMo9RFXAzuhtHz1kFRpA2LkLh4JEGZFKoL4AAAAASUVORK5CYII=", width: 24, height: 24 } as FeathersIcon,+ X: { image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAALlJREFUSEvtVMERg0AIXJpIHfloC/lYrp+0kHxSh03g4GDGOeXgRvl5771dWBYIyY+S+XELuA4fWsTMH/05ENFUY2HmB4BRMETUl9iaQAfgC8AU2ZAv2BaBtSpTpCS3CjFTVCOIki+2Bf39d6J48dy10BUQQFHtTwWe3nzWwkOLpiJvAEIsT4ReXsJCHWy6yBFItegoLZcNOTWmkZxHMOaQ9Ra5OT9zKnKPnXuDGwChRWvg20FvAde9GfckghnaevL3AAAAAElFTkSuQmCC", width: 24, height: 24 } as FeathersIcon,+};diff --git a/sdk/render/src/bevy3d/feathers/index.ts b/sdk/render/src/bevy3d/feathers/index.tsindex 00482f7c..189026ca 100644--- a/sdk/render/src/bevy3d/feathers/index.ts+++ b/sdk/render/src/bevy3d/feathers/index.ts@@ -1,9 +1,20 @@// bevy_feathers (docs/control.feature FC0a): Bevy's widget set, its theme and fonts, drawn by the page.export { tokens, type ThemeToken } from "./tokens";export { palette, create_dark_theme, type ThemeProps, type SurfaceLevel } from "./dark_theme";-export { UiTheme, ThemeContext, ThemedText, context_color, useThemeColor } from "./theme";+export { UiTheme, ThemeContext, ThemedText, context_color, useThemeColor, useInheritedColor } from "./theme";export { fonts, size } from "./constants";-export { FeathersButton, VirtualKeyboard, to_border_radius, type ButtonVariant, type RoundedCorners, type FeathersButtonProps } from "./controls";-export { caption, label, label_dim, label_small, ThemeBackgroundColor, ThemeBorderColor, ThemeTextColor } from "./display";+export { FeathersButton, FeathersToolButton, VirtualKeyboard, to_border_radius, type ButtonVariant, type RoundedCorners, type FeathersButtonProps } from "./controls";+export { caption, label, label_dim, label_small, icon, icon_untinted, ThemeBackgroundColor, ThemeBorderColor, ThemeTextColor } from "./display";export { FeathersNumberInput, type FeathersNumberInputProps, type NumberInputWrap } from "./number-input";export { NumberInputValue, NumberInputRange, StandardUnitKind, Dimensionless, LengthMeters, TimeSeconds, AngleDegrees, type NumberKind, type UnitsFormat, type StandardUnitItem } from "./number-value";+export { icons, type FeathersIcon } from "./icons";+export { pane, pane_header, pane_header_divider, pane_body, subpane, subpane_header, subpane_body, group, group_header, group_body, flex_spacer } from "./containers";+export { FeathersMenu, FeathersLazyMenu, FeathersMenuButton, FeathersMenuToolButton, FeathersMenuPopup, FeathersMenuItem, FeathersMenuDivider, type FeathersMenuButtonProps } from "./menu";+export { FeathersCheckbox, FeathersRadio, FeathersToggleSwitch, FeathersDisclosureToggle, type FeathersToggleProps } from "./toggles";+export { FeathersSlider, slider_label, type FeathersSliderProps } from "./slider";+export { FeathersScrollbar, FeathersListView, FeathersListRow, type FeathersScrollbarProps, type FeathersListViewProps, type FeathersListRowProps } from "./listview";+export { FeathersSelect, list_rows_from_strings, type FeathersSelectProps } from "./select";+export { FeathersColorSwatch, FeathersColorSlider, channel_range, gradient_ends, type FeathersColor, type ColorChannel, type FeathersColorSwatchProps, type FeathersColorSliderProps } from "./color";+export { FeathersColorPlane, type FeathersColorPlaneProps } from "./color-plane";+export { FeathersColorInput, type FeathersColorInputProps } from "./color-input";+export { FeathersTextInputContainer, FeathersTextInput, type FeathersTextInputContainerProps, type FeathersTextInputProps } from "./text-input";diff --git a/sdk/render/src/bevy3d/feathers/listview.tsx b/sdk/render/src/bevy3d/feathers/listview.tsxnew file mode 100644index 00000000..89f97c99--- /dev/null+++ b/sdk/render/src/bevy3d/feathers/listview.tsx@@ -0,0 +1,73 @@+// bevy_feathers' list view (listview.rs, scrollbar.rs; docs/control.feature FC0a): a column of FeathersListRows in a+// vertical scroll area beside a 6 px scrollbar track in a 14 px gutter. In Bevy 0.20 the list view hands the scrollbar+// its scroll area as #inner through FeathersScrollbarProps, which resolves to no entity; so update_scrollbar_thumb never+// sizes the thumb (Bevy draws none) and update_scrollbar_visibility never hides the track or drops the gutter, whether the+// rows overflow or not. raea draws the same: the track, no thumb, the gutter kept. Selection, hover and scrolling need+// input.+import type { ReactNode } from "react";+import { Node, type NodeProps } from "../ui";+import { Scrollbar, ScrollbarThumb, type ControlOrientation } from "../ui-scrollbar";+import { BorderRadius, Overflow, UiRect, px } from "../ui-val";+import { fonts, size } from "./constants";+import { InheritableText, useThemeColor } from "./theme";+import { tokens } from "./tokens";++const GUTTER = 14;++export interface FeathersScrollbarProps extends NodeProps {+ /** the Name of the Node it scrolls */+ target: string;+ orientation?: ControlOrientation;+ /** hidden: the auto_hide decision, made by the list view (Bevy makes it after layout) */+ hidden?: boolean;+}++/** A thin scrollbar: a track on SCROLLBAR_BG with 3 px corners, its thumb on SCROLLBAR_THUMB, at least 8 px long.+ * @bevy bevy_feathers::controls::FeathersScrollbar */+export function FeathersScrollbar({ target, orientation = "Vertical", hidden = false, ...node }: FeathersScrollbarProps) {+ return (+ <Scrollbar target={target} orientation={orientation} min_thumb_length={8} border_radius={BorderRadius.all(px(3))} background_color={useThemeColor(tokens.SCROLLBAR_BG)} visibility={hidden ? "Hidden" : "Inherited"} {...node}>+ <ScrollbarThumb border_radius={BorderRadius.all(px(3))} background_color={useThemeColor(tokens.SCROLLBAR_THUMB)} />+ </Scrollbar>+ );+}++export interface FeathersListViewProps extends NodeProps {+ /** its FeathersListRows */+ children?: ReactNode;+}++/** A list box: its rows in a scroll area, a scrollbar track beside them.+ * @bevy bevy_feathers::controls::FeathersListView */+export function FeathersListView({ children, ...node }: FeathersListViewProps) {+ const track = useThemeColor(tokens.SCROLLBAR_BG);+ return (+ <Node display="Flex" flex_direction="Column" align_items="Stretch" justify_content="Start" padding={UiRect.right(px(GUTTER))} {...node}>+ <Node display="Flex" flex_direction="Column" align_items="Stretch" justify_content="Start" overflow={Overflow.scroll_y()}>+ {children}+ </Node>+ <Node position_type="Absolute" right={px(4)} top={px(0)} bottom={px(0)} width={px(6)} border_radius={BorderRadius.all(px(3))} background_color={track} />+ </Node>+ );+}++export interface FeathersListRowProps extends NodeProps {+ /** Selected */+ selected?: boolean;+ /** InteractionDisabled */+ disabled?: boolean;+ /** its caption */+ children?: ReactNode;+}++/** A list row: at least ROW_HEIGHT, 8 px each side and 2 px above and below, on LISTROW_BG_SELECTED when selected, its+ * caption in Fira Sans 14 px. @bevy bevy_feathers::controls::FeathersListRow */+export function FeathersListRow({ selected = false, disabled = false, children, ...node }: FeathersListRowProps) {+ const bg = useThemeColor(!disabled && selected ? tokens.LISTROW_BG_SELECTED : tokens.LISTROW_BG);+ const text = useThemeColor(disabled ? tokens.LISTROW_TEXT_DISABLED : tokens.LISTROW_TEXT);+ return (+ <Node min_height={size.ROW_HEIGHT} min_width={size.ROW_HEIGHT} display="Flex" flex_direction="Row" justify_content="Start" align_items="Center" padding={UiRect.axes(px(8), px(2))} background_color={bg} {...node}>+ <InheritableText font={fonts.REGULAR} font_size={{ Px: 14 }} weight={400} color={text}>{children}</InheritableText>+ </Node>+ );+}diff --git a/sdk/render/src/bevy3d/feathers/menu.tsx b/sdk/render/src/bevy3d/feathers/menu.tsxnew file mode 100644index 00000000..03606243--- /dev/null+++ b/sdk/render/src/bevy3d/feathers/menu.tsx@@ -0,0 +1,85 @@+// bevy_feathers' menus (menu.rs; docs/control.feature FC0a): a FeathersMenu holds a menu button and its popup. At rest+// the popup is spawned hidden (Visibility::Hidden, absolute, so it takes no room); a FeathersLazyMenu spawns its popup+// only on opening, so it holds the button alone. Opening, placing the popup (Popover) and the items' hover need input.+import type { ReactElement, ReactNode } from "react";+import { Node, type NodeProps } from "../ui";+import { BoxShadow } from "../ui-transform";+import { Srgba } from "../colors";+import { UiRect, px } from "../ui-val";+import { fonts, size } from "./constants";+import { FeathersButton, FeathersToolButton, to_border_radius, type RoundedCorners } from "./controls";+import { icon } from "./display";+import { icons } from "./icons";+import { InheritableText, ThemeContext, useThemeColor } from "./theme";+import { tokens } from "./tokens";++/** A menu: a ROW_HEIGHT node holding its button and popup. @bevy bevy_feathers::controls::FeathersMenu */+export function FeathersMenu({ children, ...node }: NodeProps) {+ return <Node height={size.ROW_HEIGHT} justify_content="Stretch" align_items="Stretch" {...node}>{children}</Node>;+}++/** A menu whose popup is made when it opens (`popup`, here unused at rest): its button alone.+ * @bevy bevy_feathers::controls::FeathersLazyMenu */+export function FeathersLazyMenu({ popup, children, ...node }: NodeProps & { popup?: () => ReactNode }) {+ if (popup !== undefined && typeof popup !== "function") throw new TypeError(`FeathersLazyMenu: popup is a function making the popup, got ${JSON.stringify(popup)}`);+ return <FeathersMenu {...node}>{children}</FeathersMenu>;+}++export interface FeathersMenuButtonProps extends NodeProps {+ corners?: RoundedCorners;+ /** a chevron after the caption (true by default) */+ arrow?: boolean;+ /** the caption */+ children?: ReactNode;+}++/** A menu's button: a Normal FeathersButton, its caption, then a spacer and a down chevron.+ * @bevy bevy_feathers::controls::FeathersMenuButton */+export function FeathersMenuButton({ corners, arrow = true, children, ...node }: FeathersMenuButtonProps) {+ return (+ <FeathersButton variant="Normal" corners={corners} {...node}>+ {children}+ {arrow ? <><Node flex_grow={1} />{icon(icons.CHEVRON_DOWN)}</> : null}+ </FeathersButton>+ );+}++/** A menu's tool button: a FeathersToolButton, its caption, 2 px, then a down chevron.+ * @bevy bevy_feathers::controls::FeathersMenuToolButton */+export function FeathersMenuToolButton({ corners, arrow = true, children, ...node }: FeathersMenuButtonProps) {+ return (+ <FeathersToolButton variant="Normal" corners={corners} {...node}>+ {children}+ {arrow ? <><Node min_width={px(2)} />{icon(icons.CHEVRON_DOWN)}</> : null}+ </FeathersToolButton>+ );+}++function Popup({ children, ...node }: NodeProps) {+ return (+ <Node position_type="Absolute" display="Flex" flex_direction="Column" justify_content="Stretch" align_items="Stretch" border={UiRect.all(px(1))} padding={UiRect.axes(px(0), px(4))} border_radius={to_border_radius("All", 4)} background_color={useThemeColor(tokens.MENU_BG)} border_color={useThemeColor(tokens.MENU_BORDER)} box_shadow={BoxShadow.new(new Srgba(0, 0, 0, 0.9), px(0), px(0), px(1), px(4))} global_z_index={100} visibility="Hidden" {...node}>+ {children}+ </Node>+ );+}++/** A menu's popup: a bordered column of items on the Floating level, hidden until the menu opens.+ * @bevy bevy_feathers::controls::FeathersMenuPopup */+export function FeathersMenuPopup(props: NodeProps) {+ return <ThemeContext level="Floating"><Popup {...props} /></ThemeContext>;+}++/** A menu item: a ROW_HEIGHT row, 8 px each side, its caption in MENUITEM_TEXT. @bevy bevy_feathers::controls::FeathersMenuItem */+export function FeathersMenuItem({ children, ...node }: NodeProps) {+ const color = useThemeColor(tokens.MENUITEM_TEXT);+ return (+ <Node height={size.ROW_HEIGHT} min_width={size.ROW_HEIGHT} justify_content="Start" align_items="Center" padding={UiRect.horizontal(px(8))} background_color={useThemeColor(tokens.MENU_BG)} {...node}>+ <InheritableText font={fonts.REGULAR} font_size={size.MEDIUM_FONT} weight={400} color={color}>{children}</InheritableText>+ </Node>+ );+}++/** A 1 px rule between menu items. @bevy bevy_feathers::controls::FeathersMenuDivider */+export function FeathersMenuDivider(): ReactElement {+ return <Node height={px(1)} justify_content="Start" align_self="Stretch" margin={UiRect.vertical(px(2))} background_color={useThemeColor(tokens.MENU_BORDER)} />;+}diff --git a/sdk/render/src/bevy3d/feathers/select.tsx b/sdk/render/src/bevy3d/feathers/select.tsxnew file mode 100644index 00000000..ae76060e--- /dev/null+++ b/sdk/render/src/bevy3d/feathers/select.tsx@@ -0,0 +1,50 @@+// bevy_feathers' FeathersSelect (select.rs; docs/control.feature FC0a): a menu whose button reads the selected option's+// caption (update_select_caption copies it in; "" when none is selected), its popup a list view of the options at most+// max_visible rows of 28 px high, hidden until it opens. Opening and choosing need input.+import { Children, isValidElement, type ReactElement, type ReactNode } from "react";+import type { NodeProps } from "../ui";+import { px } from "../ui-val";+import { caption } from "./display";+import { FeathersListRow, FeathersListView } from "./listview";+import { FeathersMenu, FeathersMenuButton, FeathersMenuPopup } from "./menu";+import type { RoundedCorners } from "./controls";++/** select.rs's SELECT_ROW_PX: a row's height in the popup's max_height */+const SELECT_ROW_PX = 28;++/** The text inside an element tree, as the caption's Text holds it. */+function textOf(n: ReactNode): string {+ if (typeof n === "string" || typeof n === "number") return String(n);+ if (Array.isArray(n)) return n.map(textOf).join("");+ if (isValidElement(n)) return textOf((n.props as { children?: ReactNode }).children);+ return "";+}++/** FeathersListRows, one per label, captioned, the one at `selected` Selected. @bevy bevy_feathers::controls::list_rows_from_strings */+export function list_rows_from_strings(labels: string[], selected?: number): ReactElement[] {+ if (!Array.isArray(labels) || !labels.every((l) => typeof l === "string")) throw new TypeError(`list_rows_from_strings: labels are strings, got ${JSON.stringify(labels)}`);+ return labels.map((label, i) => <FeathersListRow key={i} selected={i === selected}>{caption(label)}</FeathersListRow>);+}++export interface FeathersSelectProps extends NodeProps {+ /** its options: FeathersListRows, one of them selected (list_rows_from_strings) */+ options: ReactNode;+ corners?: RoundedCorners;+ /** the popup's most rows (8 by default) */+ max_visible?: number;+}++/** A dropdown: a button showing the selected option, its list in a hidden popup. @bevy bevy_feathers::controls::FeathersSelect */+export function FeathersSelect({ options, corners, max_visible = 8, ...node }: FeathersSelectProps) {+ if (!Number.isInteger(max_visible)) throw new TypeError(`FeathersSelect: max_visible is a whole number of rows, got ${max_visible}`);+ const rows = Children.toArray(options);+ const chosen = rows.find((r) => isValidElement(r) && (r.props as { selected?: boolean }).selected);+ return (+ <FeathersMenu {...node}>+ <FeathersMenuButton corners={corners} flex_grow={1}>{caption(chosen ? textOf((chosen as ReactElement<{ children?: ReactNode }>).props.children) : "")}</FeathersMenuButton>+ <FeathersMenuPopup>+ <FeathersListView max_height={px(Math.max(max_visible, 1) * SELECT_ROW_PX)}>{rows}</FeathersListView>+ </FeathersMenuPopup>+ </FeathersMenu>+ );+}diff --git a/sdk/render/src/bevy3d/feathers/slider.tsx b/sdk/render/src/bevy3d/feathers/slider.tsxnew file mode 100644index 00000000..168d8f74--- /dev/null+++ b/sdk/render/src/bevy3d/feathers/slider.tsx@@ -0,0 +1,57 @@+// bevy_feathers' FeathersSlider (slider.rs; docs/control.feature FC0a), as update_slider_pos and set_slider_styles+// leave it: a ROW_HEIGHT bar with 6 px corners, filled with SLIDER_BAR from its left to the value's place in its range+// and SLIDER_BG after (a hard-stop gradient), its value centred in Fira Mono 12 px. The value reads as Rust's {} on the+// f32, or at SliderPrecision's decimal places when it has no more decimals than that. Dragging needs input.+import { Node, type NodeProps } from "../ui";+import { LinearGradient, ColorStop } from "../ui-gradient";+import { UiRect, percent, px } from "../ui-val";+import { fonts, size } from "./constants";+import { to_border_radius } from "./controls";+import { display_f32 } from "./number-value";+import { InheritableText, ThemedText, useThemeColor } from "./theme";+import { tokens } from "./tokens";++export interface FeathersSliderProps extends NodeProps {+ /** SliderValue (min by default) */+ value?: number;+ /** SliderRange's ends (0 to 1 by default) */+ min?: number;+ max?: number;+ /** SliderPrecision: decimal places shown (0 by default) */+ precision?: number;+ /** SliderStep: a drag's or key's step */+ step?: number;+ /** InteractionDisabled */+ disabled?: boolean;+}++/** update_slider_pos's label: Rust's {} on the f32, or {:.precision$} when that has no more decimals than precision */+export function slider_label(value: number, precision: number): string {+ const label = display_f32(Math.fround(value));+ const dot = label.indexOf(".");+ const decimals = dot < 0 ? precision : label.length - dot - 1;+ return precision >= 0 && decimals <= precision ? Math.fround(value).toFixed(precision) : label;+}++/** A slider: a bar filled to its value, the value written on it. @bevy bevy_feathers::controls::FeathersSlider */+export function FeathersSlider({ value, min = 0, max = 1, precision = 0, step, disabled = false, ...node }: FeathersSliderProps) {+ const v = value ?? min;+ for (const [k, x] of [["value", v], ["min", min], ["max", max]] as const) if (!Number.isFinite(x)) throw new TypeError(`FeathersSlider: ${k} is a number, got ${x}`);+ if (!Number.isInteger(precision)) throw new TypeError(`FeathersSlider: precision is a whole number of decimal places, got ${precision}`);+ if (step !== undefined && !(step > 0)) throw new TypeError(`FeathersSlider: step is above 0, got ${step}`);+ // SliderRange::thumb_position: where the value sits (0.5 on an empty range), clamped to 0..100%+ const t = max > min ? (Math.min(Math.max(v, min), max) - min) / (max - min) : 0.5;+ const at = Math.min(Math.max(Math.fround(t) * 100, 0), 100);+ const bar = useThemeColor(disabled ? tokens.SLIDER_BAR_DISABLED : tokens.SLIDER_BAR);+ const bg = useThemeColor(disabled ? tokens.SLIDER_BG_DISABLED : tokens.SLIDER_BG);+ const text = useThemeColor(disabled ? tokens.SLIDER_TEXT_DISABLED : tokens.SLIDER_TEXT);+ return (+ <Node height={size.ROW_HEIGHT} justify_content="Center" align_items="Center" padding={UiRect.horizontal(px(8))} flex_grow={1} border_radius={to_border_radius("All", 6)} background_gradient={[LinearGradient.new(Math.PI * 0.5, [ColorStop.new(bar, percent(0)), ColorStop.new(bar, percent(at)), ColorStop.new(bg, percent(at)), ColorStop.new(bg, percent(100))], "Srgba")]} {...node}>+ <InheritableText color={text}>+ <Node display="Flex" position_type="Absolute" flex_direction="Row" align_items="Center" justify_content="Center">+ <InheritableText font={fonts.MONO} font_size={size.SMALL_FONT} weight={400}><ThemedText linebreak="NoWrap">{slider_label(v, precision)}</ThemedText></InheritableText>+ </Node>+ </InheritableText>+ </Node>+ );+}diff --git a/sdk/render/src/bevy3d/feathers/text-input.tsx b/sdk/render/src/bevy3d/feathers/text-input.tsxnew file mode 100644index 00000000..892aabd4--- /dev/null+++ b/sdk/render/src/bevy3d/feathers/text-input.tsx@@ -0,0 +1,47 @@+// bevy_feathers' text input (text_input.rs; docs/control.feature FC0a): a FeathersTextInputContainer, the rounded field+// on TEXT_INPUT_BG handing feathers' compact font and TEXT_INPUT_TEXT to what's inside, holding a FeathersTextInput, an+// EditableText in that font. Typing, the caret's focus and the focus ring need input.+import type { ReactNode } from "react";+import { Node, type NodeProps } from "../ui";+import { EditableText, type EditableTextProps } from "../ui-edit";+import { BorderRadius, UiRect, px } from "../ui-val";+import { fonts, size } from "./constants";+import { InheritableText, useInheritedColor, useThemeColor } from "./theme";+import { tokens } from "./tokens";++export interface FeathersTextInputContainerProps extends NodeProps {+ /** its FeathersTextInput, and anything beside it */+ children?: ReactNode;+}++/** A text field's frame: ROW_HEIGHT high, 3 px each side, 4 px corners, growing to fill its row.+ * @bevy bevy_feathers::controls::FeathersTextInputContainer */+export function FeathersTextInputContainer({ children, ...node }: FeathersTextInputContainerProps) {+ const bg = useThemeColor(tokens.TEXT_INPUT_BG);+ const text = useThemeColor(tokens.TEXT_INPUT_TEXT);+ return (+ <Node height={size.ROW_HEIGHT} display="Flex" justify_content="Center" align_items="Center" padding={UiRect.new(px(3), px(3), px(0), px(0))} flex_grow={1} border_radius={BorderRadius.all(px(4))} column_gap={px(4)} background_color={bg} {...node}>+ <InheritableText font={fonts.REGULAR} font_size={size.COMPACT_FONT} weight={400} color={text}>{children}</InheritableText>+ </Node>+ );+}++export interface FeathersTextInputProps extends Omit<EditableTextProps, "color"> {+ /** visible_width: its width in "0"s; it grows to fill the field when left out */+ visible_width?: number;+ /** max_characters: how many characters typing may leave in it */+ max_characters?: number;+}++/** A one-line text input in feathers' compact font, its colour the field's. @bevy bevy_feathers::controls::FeathersTextInput */+export function FeathersTextInput({ visible_width, max_characters, children = "", font = fonts.REGULAR, font_size = size.COMPACT_FONT, weight = 400, ...node }: FeathersTextInputProps) {+ if (max_characters !== undefined && !(Number.isInteger(max_characters) && max_characters > 0)) throw new RangeError(`FeathersTextInput: max_characters is a whole number above 0, got ${max_characters}`);+ const inherited = useInheritedColor();+ const own = useThemeColor(tokens.TEXT_INPUT_TEXT);+ const color = inherited ?? own;+ return (+ <EditableText flex_grow={visible_width === undefined ? 1 : 0} visible_width={visible_width ?? null} cursor_width={0.3} linebreak="NoWrap" font={font} font_size={font_size} weight={weight} color={color} {...node}>+ {children}+ </EditableText>+ );+}diff --git a/sdk/render/src/bevy3d/feathers/theme.tsx b/sdk/render/src/bevy3d/feathers/theme.tsxindex c331ef20..53e69745 100644--- a/sdk/render/src/bevy3d/feathers/theme.tsx+++ b/sdk/render/src/bevy3d/feathers/theme.tsx@@ -55,6 +55,11 @@ export function InheritableText({ children, ...style }: Inherited & { children?:return <InheritedCx.Provider value={{ ...outer, ...Object.fromEntries(Object.entries(style).filter(([, v]) => v !== undefined)) }}>{children}</InheritedCx.Provider>;}+/** the text colour the feathers widget around the caller propagates (a ThemedIcon's tint), or none */+export function useInheritedColor(): TextStyleProps["color"] {+ return useContext(InheritedCx).color;+}+/** A Text with ThemedText: it takes the font and colour the feathers widget around it propagates.* @bevy bevy_feathers::theme::ThemedText */export function ThemedText(props: TextProps) {diff --git a/sdk/render/src/bevy3d/feathers/toggles.tsx b/sdk/render/src/bevy3d/feathers/toggles.tsxnew file mode 100644index 00000000..42d0554f--- /dev/null+++ b/sdk/render/src/bevy3d/feathers/toggles.tsx@@ -0,0 +1,89 @@+// bevy_feathers' two-state controls (checkbox.rs, radio.rs, toggle_switch.rs, disclosure_toggle.rs; docs/control.feature+// FC0a), as their style systems leave them on the first frame: coloured by Checked and InteractionDisabled from the+// UiTheme, a checkbox's or radio's mark hidden unless checked, a switch's slide at its left or right half. A render has+// no pointer, so hover and press colours need input.+import type { ReactNode } from "react";+import { Node, type NodeProps } from "../ui";+import { BorderRadius, UiRect, percent, px } from "../ui-val";+import { Rot2, UiTransform } from "../ui-transform";+import { fonts, size } from "./constants";+import { icon } from "./display";+import { icons } from "./icons";+import { InheritableText, useThemeColor } from "./theme";+import { tokens, type ThemeToken } from "./tokens";++export interface FeathersToggleProps extends NodeProps {+ /** Checked */+ checked?: boolean;+ /** InteractionDisabled */+ disabled?: boolean;+ /** the caption beside it (a caption()) */+ children?: ReactNode;+}++/** a token by state: [checked][disabled] */+const pick = (checked: boolean, disabled: boolean, t: { on: ThemeToken; onOff: ThemeToken; off: ThemeToken; offOff: ThemeToken }) => (checked ? (disabled ? t.onOff : t.on) : disabled ? t.offOff : t.off);+const CAPTION = { font: fonts.REGULAR, font_size: size.MEDIUM_FONT, weight: 400 } as const;++/** A checkbox: an 18 px box (2 px border, 4 px corners) holding a check mark when checked, beside its caption.+ * @bevy bevy_feathers::controls::FeathersCheckbox */+export function FeathersCheckbox({ checked = false, disabled = false, children, ...node }: FeathersToggleProps) {+ const border = useThemeColor(pick(checked, disabled, { on: tokens.CHECKBOX_BORDER_CHECKED, onOff: tokens.CHECKBOX_BORDER_CHECKED_DISABLED, off: tokens.CHECKBOX_BORDER, offOff: tokens.CHECKBOX_BORDER_DISABLED }));+ const bg = useThemeColor(pick(checked, disabled, { on: tokens.CHECKBOX_BG_CHECKED, onOff: tokens.CHECKBOX_BG_CHECKED_DISABLED, off: tokens.CHECKBOX_BG, offOff: tokens.CHECKBOX_BG_DISABLED }));+ const mark = useThemeColor(disabled ? tokens.CHECKBOX_MARK_DISABLED : tokens.CHECKBOX_MARK);+ const text = useThemeColor(disabled ? tokens.CHECKBOX_TEXT_DISABLED : tokens.CHECKBOX_TEXT);+ return (+ <Node display="Flex" flex_direction="Row" justify_content="Start" align_items="Center" column_gap={px(4)} {...node}>+ <InheritableText {...CAPTION} color={text}>+ <Node width={size.CHECKBOX_SIZE} height={size.CHECKBOX_SIZE} border={UiRect.all(px(2))} border_radius={BorderRadius.all(px(4))} background_color={bg} border_color={border}>+ <Node position_type="Absolute" left={px(4)} top={px(0)} width={px(6)} height={px(11)} border={UiRect.new(px(0), px(2), px(0), px(2))} ui_transform={UiTransform.from_rotation(Rot2.radians(Math.PI / 4))} border_color={mark} visibility={checked ? "Inherited" : "Hidden"} />+ </Node>+ {children}+ </InheritableText>+ </Node>+ );+}++/** A radio button: an 18 px ring (2 px border) holding a 12 px dot when checked, beside its caption.+ * @bevy bevy_feathers::controls::FeathersRadio */+export function FeathersRadio({ checked = false, disabled = false, children, ...node }: FeathersToggleProps) {+ const bg = useThemeColor(pick(checked, disabled, { on: tokens.RADIO_BG_CHECKED, onOff: tokens.RADIO_BG_CHECKED_DISABLED, off: tokens.RADIO_BG, offOff: tokens.RADIO_BG_DISABLED }));+ const border = useThemeColor(pick(checked, disabled, { on: tokens.RADIO_BORDER_CHECKED, onOff: tokens.RADIO_BORDER_CHECKED_DISABLED, off: tokens.RADIO_BORDER, offOff: tokens.RADIO_BORDER_DISABLED }));+ const mark = useThemeColor(disabled ? tokens.RADIO_MARK_DISABLED : tokens.RADIO_MARK);+ const text = useThemeColor(disabled ? tokens.RADIO_TEXT_DISABLED : tokens.RADIO_TEXT);+ return (+ <Node display="Flex" flex_direction="Row" justify_content="Start" align_items="Center" column_gap={px(4)} {...node}>+ <InheritableText {...CAPTION} color={text}>+ <Node display="Flex" align_items="Center" justify_content="Center" width={size.RADIO_SIZE} height={size.RADIO_SIZE} border={UiRect.all(px(2))} border_radius={BorderRadius.MAX} border_color={border} background_color={bg}>+ <Node width={px(12)} height={px(12)} border={UiRect.all(px(2))} border_radius={BorderRadius.MAX} background_color={mark} visibility={checked ? "Inherited" : "Hidden"} />+ </Node>+ {children}+ </InheritableText>+ </Node>+ );+}++/** A toggle switch: a 32 x 18 track (2 px border, 5 px corners) and a slide filling its left half, or its right half+ * when checked. @bevy bevy_feathers::controls::FeathersToggleSwitch */+export function FeathersToggleSwitch({ checked = false, disabled = false, ...node }: Omit<FeathersToggleProps, "children">) {+ const bg = useThemeColor(pick(checked, disabled, { on: tokens.SWITCH_BG_CHECKED, onOff: tokens.SWITCH_BG_CHECKED_DISABLED, off: tokens.SWITCH_BG, offOff: tokens.SWITCH_BG_DISABLED }));+ const border = useThemeColor(pick(checked, disabled, { on: tokens.SWITCH_BORDER_CHECKED, onOff: tokens.SWITCH_BORDER_CHECKED_DISABLED, off: tokens.SWITCH_BORDER, offOff: tokens.SWITCH_BORDER_DISABLED }));+ const slideBg = useThemeColor(pick(checked, disabled, { on: tokens.SWITCH_SLIDE_BG_CHECKED, onOff: tokens.SWITCH_SLIDE_BG_CHECKED_DISABLED, off: tokens.SWITCH_SLIDE_BG, offOff: tokens.SWITCH_SLIDE_BG_DISABLED }));+ const slideBorder = useThemeColor(pick(checked, disabled, { on: tokens.SWITCH_SLIDE_BORDER_CHECKED, onOff: tokens.SWITCH_SLIDE_BORDER_CHECKED_DISABLED, off: tokens.SWITCH_SLIDE_BORDER, offOff: tokens.SWITCH_SLIDE_BORDER_DISABLED }));+ return (+ <Node width={size.TOGGLE_WIDTH} height={size.TOGGLE_HEIGHT} border={UiRect.all(px(2))} border_radius={BorderRadius.all(px(5))} background_color={bg} border_color={border} {...node}>+ <Node position_type="Absolute" left={percent(checked ? 50 : 0)} top={px(0)} bottom={px(0)} width={percent(50)} border={UiRect.all(px(2))} border_radius={BorderRadius.all(px(3))} background_color={slideBg} border_color={slideBorder} />+ </Node>+ );+}++/** A disclosure toggle: a 12 px box holding a right chevron in BUTTON_TEXT, turned a quarter (pointing down) when+ * checked. @bevy bevy_feathers::controls::FeathersDisclosureToggle */+export function FeathersDisclosureToggle({ checked = false, disabled = false, ...node }: Omit<FeathersToggleProps, "children">) {+ const color = useThemeColor(disabled ? tokens.BUTTON_TEXT_DISABLED : tokens.BUTTON_TEXT);+ return (+ <Node width={px(12)} height={px(12)} display="Flex" align_items="Center" justify_content="Center" ui_transform={UiTransform.from_rotation(Rot2.turn_fraction(checked ? 0.25 : 0))} {...node}>+ <InheritableText color={color}>{icon(icons.CHEVRON_RIGHT)}</InheritableText>+ </Node>+ );+}diff --git a/sdk/render/src/bevy3d/okhsla.ts b/sdk/render/src/bevy3d/okhsla.tsnew file mode 100644index 00000000..0fab02b4--- /dev/null+++ b/sdk/render/src/bevy3d/okhsla.ts@@ -0,0 +1,180 @@+// bevy_color's Okhsla (docs/control.feature FC0a): Björn Ottosson's okhsl, hue (degrees), saturation and lightness+// each 0..1 over Oklab with the sRGB gamut's cusp and a toe on lightness, converted by Bevy's own translation of the C+// reference (bevy_color okcolor_convert.rs: compute_max_saturation, find_cusp, find_gamut_intersection, get_Cs,+// get_ST_mid, toe), in f32 as Bevy runs it: every operation rounded to f32. Bevy's test colours agree to 1e-4 but one:+// navy's hue sits exactly on the boundary between compute_max_saturation's regions (the test is 1.0 > 1 in Bevy's f32),+// so the last bit of the Oklab coming in picks the region, and raea's sRGB -> Oklab (JavaScript's pow and cbrt) is a+// few ulps from Bevy's (the platform's powf and cbrtf): its saturation reads 1.0247, not 1.+import { LinearRgba, Srgba } from "./colors";+import { Hsla, Oklaba } from "./colorspaces";++const f = Math.fround;+// f32 arithmetic: each result rounded, as Rust's f32 operators do+const add = (a: number, b: number) => f(a + b);+const sub = (a: number, b: number) => f(a - b);+const mul = (a: number, b: number) => f(a * b);+const div = (a: number, b: number) => f(a / b);+const sqrt = (a: number) => f(Math.sqrt(a));+/** a sum of products, left to right: dot(c0, x0, c1, x1, ...) = c0*x0 + c1*x1 + ... */+const dot = (...v: number[]) => {+ let s = mul(v[0], v[1]);+ for (let i = 2; i < v.length; i += 2) s = add(s, mul(v[i], v[i + 1]));+ return s;+};+const F32_MAX = 3.4028234663852886e38;++type LC = { L: number; C: number };+type ST = { S: number; T: number };++const toST = ({ L, C }: LC): ST => ({ S: div(C, L), T: div(C, sub(1, L)) });++// the LMS weights for a hue (a, b) and the R, G and B rows of LMS -> linear sRGB, as f32+const K_L = [f(0.39633778), f(0.21580376)], K_M = [f(-0.105561346), f(-0.06385417)], K_S = [f(-0.08948418), f(-1.2914855)];+const ROW_R = [f(4.0767417), f(-3.3077116), f(0.23096994)];+const ROW_G = [f(-1.268438), f(2.6097574), f(-0.34131938)];+const ROW_B = [f(-0.0041960863), f(-0.7034186), f(1.7076147)];+const kOf = (k: number[], a: number, b: number) => dot(k[0], a, k[1], b);++function computeMaxSaturation(a: number, b: number): number {+ let k: number[], w: number[];+ if (sub(mul(f(-1.8817033), a), mul(f(0.8093649), b)) > 1) {+ k = [1.1908628, 1.7657673, 0.5966264, 0.755152, 0.5677124].map(f);+ w = ROW_R;+ } else if (sub(mul(f(1.8144411), a), mul(f(1.1944528), b)) > 1) {+ k = [0.73956515, -0.45954404, 0.08285427, 0.1254107, 0.14503204].map(f);+ w = ROW_G;+ } else {+ k = [1.3573365, -0.00915799, -1.1513021, -0.50559606, 0.00692167].map(f);+ w = ROW_B;+ }+ // k0 + k1 a + k2 b + k3 a a + k4 a b+ let S = add(add(add(add(k[0], mul(k[1], a)), mul(k[2], b)), mul(mul(k[3], a), a)), mul(mul(k[4], a), b));+ const kl = kOf(K_L, a, b), km = kOf(K_M, a, b), ks = kOf(K_S, a, b);+ for (let i = 0; i < 2; i++) {+ const l_ = add(1, mul(S, kl)), m_ = add(1, mul(S, km)), s_ = add(1, mul(S, ks));+ const l = mul(mul(l_, l_), l_), m = mul(mul(m_, m_), m_), s = mul(mul(s_, s_), s_);+ const ldS = mul(mul(mul(3, kl), l_), l_), mdS = mul(mul(mul(3, km), m_), m_), sdS = mul(mul(mul(3, ks), s_), s_);+ const ldS2 = mul(mul(mul(6, kl), kl), l_), mdS2 = mul(mul(mul(6, km), km), m_), sdS2 = mul(mul(mul(6, ks), ks), s_);+ const fv = dot(w[0], l, w[1], m, w[2], s);+ const f1 = dot(w[0], ldS, w[1], mdS, w[2], sdS);+ const f2 = dot(w[0], ldS2, w[1], mdS2, w[2], sdS2);+ S = sub(S, div(mul(fv, f1), sub(mul(f1, f1), mul(mul(0.5, fv), f2))));+ }+ return S;+}++function findCusp(a: number, b: number): LC {+ const S = computeMaxSaturation(a, b);+ const rgb = new Oklaba(1, mul(S, a), mul(S, b)).to_linear();+ const L = f(Math.cbrt(div(1, Math.max(rgb.red, rgb.green, rgb.blue))));+ return { L, C: mul(L, S) };+}++function findGamutIntersection(a: number, b: number, L1: number, C1: number, L0: number, cusp: LC): number {+ if (sub(mul(sub(L1, L0), cusp.C), mul(sub(cusp.L, L0), C1)) <= 0) return div(mul(cusp.C, L0), add(mul(C1, cusp.L), mul(cusp.C, sub(L0, L1))));+ let t = div(mul(cusp.C, sub(L0, 1)), add(mul(C1, sub(cusp.L, 1)), mul(cusp.C, sub(L0, L1))));+ const dL = sub(L1, L0), dC = C1;+ const kl = kOf(K_L, a, b), km = kOf(K_M, a, b), ks = kOf(K_S, a, b);+ const ldt = add(dL, mul(dC, kl)), mdt = add(dL, mul(dC, km)), sdt = add(dL, mul(dC, ks));+ for (let i = 0; i < 2; i++) {+ const L = add(mul(L0, sub(1, t)), mul(t, L1)), C = mul(t, C1);+ const l_ = add(L, mul(C, kl)), m_ = add(L, mul(C, km)), s_ = add(L, mul(C, ks));+ const l = mul(mul(l_, l_), l_), m = mul(mul(m_, m_), m_), s = mul(mul(s_, s_), s_);+ const l1 = mul(mul(mul(3, ldt), l_), l_), m1 = mul(mul(mul(3, mdt), m_), m_), s1 = mul(mul(mul(3, sdt), s_), s_);+ const l2 = mul(mul(mul(6, ldt), ldt), l_), m2 = mul(mul(mul(6, mdt), mdt), m_), s2 = mul(mul(mul(6, sdt), sdt), s_);+ // Halley's method on each of R, G and B reaching 1, the nearest root taken+ const step = (w: number[]) => {+ const v = sub(dot(w[0], l, w[1], m, w[2], s), 1);+ const v1 = dot(w[0], l1, w[1], m1, w[2], s1);+ const v2 = dot(w[0], l2, w[1], m2, w[2], s2);+ const u = div(v1, sub(mul(v1, v1), mul(mul(0.5, v), v2)));+ return u >= 0 ? mul(-v, u) : F32_MAX;+ };+ t = add(t, Math.min(step(ROW_R), step(ROW_G), step(ROW_B)));+ }+ return t;+}++function stMid(a: number, b: number): ST {+ const c = f;+ const S = add(c(0.11516993), div(1, add(add(c(7.4477897), mul(c(4.1590123), b)), mul(a, add(add(c(-2.1955736), mul(c(1.751984), b)), mul(a, add(sub(c(-2.1370494), mul(c(10.02301), b)), mul(a, add(add(c(-4.2489457), mul(c(5.387708), b)), mul(c(4.69891), a))))))))));+ const T = add(c(0.11239642), div(1, add(sub(c(1.6132032), mul(c(0.6812438), b)), mul(a, add(add(c(0.40370612), mul(c(0.9014812), b)), mul(a, add(add(c(-0.27087943), mul(c(0.6122399), b)), mul(a, sub(sub(c(0.00299215), mul(c(0.45399568), b)), mul(c(0.14661872), a))))))))));+ return { S, T };+}++function getCs(L: number, a: number, b: number) {+ const cusp = findCusp(a, b);+ const C_max = findGamutIntersection(a, b, L, 1, L, cusp);+ const stMax = toST(cusp);+ const k = div(C_max, Math.min(mul(L, stMax.S), mul(sub(1, L), stMax.T)));+ const mid = stMid(a, b);+ const Ca = mul(L, mid.S), Cb = mul(sub(1, L), mid.T);+ const p4 = (x: number) => mul(mul(mul(x, x), x), x);+ const C_mid = mul(mul(f(0.9), k), sqrt(sqrt(div(1, add(div(1, p4(Ca)), div(1, p4(Cb)))))));+ const Ca0 = mul(L, f(0.4)), Cb0 = mul(sub(1, L), f(0.8));+ const C_0 = sqrt(div(1, add(div(1, mul(Ca0, Ca0)), div(1, mul(Cb0, Cb0)))));+ return { C_0, C_mid, C_max };+}++const K1 = f(0.206), K2 = f(0.03), K3 = div(add(1, K1), add(1, K2));+const toe = (x: number) => mul(0.5, add(sub(mul(K3, x), K1), sqrt(add(mul(sub(mul(K3, x), K1), sub(mul(K3, x), K1)), mul(mul(mul(4, K2), K3), x)))));+const toeInv = (x: number) => div(add(mul(x, x), mul(K1, x)), mul(K3, add(x, K2)));+const MID = f(0.8), MID_INV = f(1.25), PI = f(Math.PI);++/** Bevy's Okhsla: Oklab's hue (degrees), a saturation relative to the sRGB gamut, and a lightness with a toe, each+ * 0..1. @bevy bevy_color::Okhsla */+export class Okhsla {+ constructor(public hue: number, public saturation: number, public lightness: number, public alpha = 1) {}+ /** From Oklab (bevy_color oklab_to_okhsl). */+ static from_oklaba(lab: Oklaba): Okhsla {+ const L = f(lab.lightness), a = f(lab.a), b = f(lab.b), alpha = lab.alpha;+ if (L >= 1) return new Okhsla(0, 0, 1, alpha);+ if (L <= 0) return new Okhsla(0, 0, 0, alpha);+ const C = sqrt(add(mul(a, a), mul(b, b)));+ if (C === 0) return new Okhsla(0, 0, toe(L), alpha);+ const a_ = div(a, C), b_ = div(b, C);+ const h = add(0.5, div(mul(0.5, f(Math.atan2(-b, -a))), PI));+ const { C_0, C_mid, C_max } = getCs(L, a_, b_);+ let s: number;+ if (C < C_mid) {+ const k1 = mul(MID, C_0), k2 = sub(1, div(k1, C_mid));+ s = mul(div(C, add(k1, mul(k2, C))), MID);+ } else {+ const k0 = C_mid, k1 = div(mul(mul(mul(mul(sub(1, MID), C_mid), C_mid), MID_INV), MID_INV), C_0), k2 = sub(1, div(k1, sub(C_max, C_mid)));+ s = add(MID, mul(sub(1, MID), div(sub(C, k0), add(k1, mul(k2, sub(C, k0))))));+ }+ return new Okhsla(mul(h, 360), s, toe(L), alpha);+ }+ /** From any sRGB colour, through Oklab. */+ static from(c: Srgba | LinearRgba | Hsla): Okhsla {+ return Okhsla.from_oklaba(Oklaba.from(c instanceof Hsla ? c.to_srgba() : c));+ }+ /** To Oklab (bevy_color okhsl_to_oklab). */+ to_oklaba(): Oklaba {+ const s = f(this.saturation), l = f(this.lightness), alpha = this.alpha;+ const h = div(f(this.hue), 360);+ if (l >= 1) return Oklaba.from(new LinearRgba(1, 1, 1, alpha));+ if (l <= 0) return Oklaba.from(new LinearRgba(0, 0, 0, alpha));+ const a_ = f(Math.cos(mul(mul(2, PI), h))), b_ = f(Math.sin(mul(mul(2, PI), h)));+ const L = toeInv(l);+ const { C_0, C_mid, C_max } = getCs(L, a_, b_);+ let C: number;+ if (s < MID) {+ const t = mul(MID_INV, s), k1 = mul(MID, C_0), k2 = sub(1, div(k1, C_mid));+ C = div(mul(t, k1), sub(1, mul(k2, t)));+ } else {+ const t = div(sub(s, MID), sub(1, MID)), k0 = C_mid, k1 = div(mul(mul(mul(mul(sub(1, MID), C_mid), C_mid), MID_INV), MID_INV), C_0), k2 = sub(1, div(k1, sub(C_max, C_mid)));+ C = add(k0, div(mul(t, k1), sub(1, mul(k2, t))));+ }+ return new Oklaba(L, mul(C, a_), mul(C, b_), alpha);+ }+ to_linear(): LinearRgba {+ return this.to_oklaba().to_linear();+ }+ to_srgba(): Srgba {+ return this.to_oklaba().to_srgba();+ }+ with_alpha(alpha: number): Okhsla {+ return new Okhsla(this.hue, this.saturation, this.lightness, alpha);+ }+}diff --git a/sdk/render/src/bevy3d/ui-gradient-okhsl.ts b/sdk/render/src/bevy3d/ui-gradient-okhsl.tsnew file mode 100644index 00000000..19cfb182--- /dev/null+++ b/sdk/render/src/bevy3d/ui-gradient-okhsl.ts@@ -0,0 +1,50 @@+// bevy_ui's Okhsla and OkhslaLong gradient interpolation (docs/control.feature FC0a), which CSS has no space for. Bevy's+// gradient shader turns each stop to okhsl and mixes there (bevy_render color_operations.wesl mix_okhsl: the hue the+// short way round, or the long way for OkhslaLong, a stop with no saturation taking the other's hue). Here each segment+// between two stops is that mix sampled at SAMPLES points, each an sRGB stop, CSS interpolating between them in Oklab.+import { LinearRgba, Srgba } from "./colors";+import { Okhsla } from "./okhsla";+import { colorCss } from "./ui-val";++const SAMPLES = 24;+/** bevy_render's HUE_GUARD: below this saturation a stop's hue is powerless */+const HUE_GUARD = 0.0001;+const fract = (x: number) => x - Math.floor(x);++type Stop = { color: Srgba | LinearRgba | string; hint?: number };++function okhslOf(who: string, c: Stop["color"]): Okhsla {+ if (c instanceof Srgba || c instanceof LinearRgba) return Okhsla.from(c);+ throw new TypeError(`${who}: an Okhsla gradient's stops are Srgba or LinearRgba colours, got ${JSON.stringify(c)}`);+}++/** mix_okhsl (or mix_okhsl_long): hue in turns, saturation, lightness and alpha mixed */+function mix(a: Okhsla, b: Okhsla, t: number, long: boolean): Okhsla {+ let h = a.hue / 360, g = b.hue / 360;+ if (a.saturation < HUE_GUARD) h = g;+ else if (b.saturation < HUE_GUARD) g = h;+ const d = fract(g - h + 0.5) - 0.5;+ const hue = fract(h + (long ? d + (d > 0 ? -1 : 1) : d) * t);+ const lerp = (x: number, y: number) => x + (y - x) * t;+ return new Okhsla(hue * 360, lerp(a.saturation, b.saturation), lerp(a.lightness, b.lightness), lerp(a.alpha, b.alpha));+}++/** The stops of an Okhsla gradient as CSS's, each segment sampled in okhsl. */+export function okhslStopsCss(who: string, stops: Stop[], at: (s: Stop) => string | undefined, long: boolean): string {+ if (!Array.isArray(stops) || stops.length === 0) throw new TypeError(`${who}: a gradient has stops, got ${JSON.stringify(stops)}`);+ const css = (c: Okhsla) => colorCss(who, "stop", c.to_srgba());+ const out: string[] = [];+ stops.forEach((s, i) => {+ const p = at(s);+ if (p === undefined) throw new TypeError(`${who}: an Okhsla gradient's stops each have a point`);+ if ((s.hint ?? 0.5) !== 0.5) throw new TypeError(`${who}: a hint in an Okhsla gradient is to do; leave it at 0.5`);+ const a = okhslOf(who, s.color);+ out.push(`${css(a)} ${p}`);+ const next = stops[i + 1];+ if (!next) return;+ const q = at(next)!;+ const b = okhslOf(who, next.color);+ for (let k = 1; k < SAMPLES; k++) out.push(`${css(mix(a, b, k / SAMPLES, long))} calc(${p} + (${q} - ${p}) * ${k / SAMPLES})`);+ });+ return out.join(", ");+}diff --git a/sdk/render/src/bevy3d/ui-gradient.ts b/sdk/render/src/bevy3d/ui-gradient.tsindex d4166a6c..6713616b 100644--- a/sdk/render/src/bevy3d/ui-gradient.ts+++ b/sdk/render/src/bevy3d/ui-gradient.ts@@ -1,6 +1,7 @@// bevy_ui's gradients (BackgroundGradient: LinearGradient, RadialGradient, ConicGradient with their ColorStops) as the// page's CSS gradients, which raea's Blitz paints in the colour space each names (blitz-paint gradient.rs).import { checkVal, colorCss, type Val } from "./ui-val";+import { okhslStopsCss } from "./ui-gradient-okhsl";import type { LinearRgba, Srgba } from "./colors";type Color = Srgba | LinearRgba | string;@@ -22,9 +23,11 @@ export const AngularColorStop = {};/** bevy_ui's InterpolationColorSpace: Oklaba by default. @bevy bevy_ui::gradients::InterpolationColorSpace */-export type InterpolationColorSpace = "Oklaba" | "Oklcha" | "OklchaLong" | "Srgba" | "LinearRgba" | "Hsla" | "HslaLong";+export type InterpolationColorSpace = "Oklaba" | "Oklcha" | "OklchaLong" | "Srgba" | "LinearRgba" | "Hsla" | "HslaLong" | "Okhsla" | "OkhslaLong";const SPACE: Record<InterpolationColorSpace, string> = {Oklaba: "in oklab", Oklcha: "in oklch", OklchaLong: "in oklch longer hue", Srgba: "in srgb", LinearRgba: "in srgb-linear", Hsla: "in hsl", HslaLong: "in hsl longer hue",+ // (okhsl has no CSS space: its stops are sampled in okhsl, ui-gradient-okhsl.ts, and CSS goes between them in Oklab)+ Okhsla: "in oklab", OkhslaLong: "in oklab",};/** bevy_ui's UiPosition: a point of the node, `anchor` from its centre (each axis -0.5 to 0.5 of its size), moved `x`@@ -123,16 +126,22 @@ function shapeCss(who: string, s: RadialGradientShape): string {throw new TypeError(`${who}: shape is a RadialGradientShape, got ${JSON.stringify(s)}`);}+/** A gradient's stops as CSS's: an Okhsla one sampled in okhsl. */+function stopList(who: string, g: Gradient, at: (s: ColorStop | AngularColorStop) => string | undefined): string {+ const long = g.color_space === "OkhslaLong";+ return long || g.color_space === "Okhsla" ? okhslStopsCss(who, g.stops, at, long) : stopsCss(who, g.stops, at);+}+/** One gradient as CSS's. */function gradientCss(who: string, g: Gradient): string {if (g?.kind === "Linear") {if (!Number.isFinite(g.angle)) throw new TypeError(`${who}: a LinearGradient's angle is radians, got ${g.angle}`);- return `linear-gradient(${g.angle}rad ${space(who, g)}, ${stopsCss(who, g.stops, (s) => (s as ColorStop).point && checkVal(who, "stop.point", (s as ColorStop).point))})`;+ return `linear-gradient(${g.angle}rad ${space(who, g)}, ${stopList(who, g, (s) => (s as ColorStop).point && checkVal(who, "stop.point", (s as ColorStop).point))})`;}- if (g?.kind === "Radial") return `radial-gradient(${shapeCss(who, g.shape)} at ${positionCss(who, g.position)} ${space(who, g)}, ${stopsCss(who, g.stops, (s) => (s as ColorStop).point && checkVal(who, "stop.point", (s as ColorStop).point))})`;+ if (g?.kind === "Radial") return `radial-gradient(${shapeCss(who, g.shape)} at ${positionCss(who, g.position)} ${space(who, g)}, ${stopList(who, g, (s) => (s as ColorStop).point && checkVal(who, "stop.point", (s as ColorStop).point))})`;if (g?.kind === "Conic") {if (!Number.isFinite(g.start)) throw new TypeError(`${who}: a ConicGradient's start is radians, got ${g.start}`);- return `conic-gradient(from ${g.start}rad at ${positionCss(who, g.position)} ${space(who, g)}, ${stopsCss(who, g.stops, (s) => ((s as AngularColorStop).angle === undefined ? undefined : `${(s as AngularColorStop).angle}rad`))})`;+ return `conic-gradient(from ${g.start}rad at ${positionCss(who, g.position)} ${space(who, g)}, ${stopList(who, g, (s) => ((s as AngularColorStop).angle === undefined ? undefined : `${(s as AngularColorStop).angle}rad`))})`;}throw new TypeError(`${who}: a gradient is a LinearGradient, RadialGradient or ConicGradient, got ${JSON.stringify(g)}`);}diff --git a/sdk/render/src/bevy3d/ui-transform.ts b/sdk/render/src/bevy3d/ui-transform.tsindex 390a156e..20917127 100644--- a/sdk/render/src/bevy3d/ui-transform.ts+++ b/sdk/render/src/bevy3d/ui-transform.ts@@ -74,16 +74,21 @@ const pxOf = (who: string, k: string, v: Val) => {};/** A BoxShadow as CSS's box-shadow. Bevy's blur radius is its Gaussian's standard deviation, CSS's twice that. Bevy- * spreads the shadow by spread_radius across its width and scales its height and corners by the same ratio, which- * CSS's spread (even on every side, corners grown by it) matches only at zero; any other spread is to do. */+ * grows the shadow's width by spread_radius (half each side) and scales its height and corners by the same ratio,+ * where CSS's spread grows every side by it; the spread is sent as it is, and a node with one marked+ * data-raea-bevy-shadow (shadowSpread), which raea's Blitz paints by Bevy's rule (vendor/blitz-paint box_shadow.rs). */export function shadowCss(who: string, b: BoxShadow): string {if (!Array.isArray(b)) throw new TypeError(`${who}: box_shadow is a BoxShadow (BoxShadow.new(color, px(30), px(30), px(0), px(4))), got ${JSON.stringify(b)}`);// CSS lists the shadow on top first, Bevy draws its list back to frontreturn [...b].reverse().map((s, i) => {const k = `box_shadow[${b.length - 1 - i}]`;- if (pxOf(who, `${k}.spread_radius`, s.spread_radius) !== 0) throw new TypeError(`${who}: ${k}.spread_radius other than 0 is to do (Bevy scales the shadow's height and corners by the width's spread ratio)`);const blur = pxOf(who, `${k}.blur_radius`, s.blur_radius);if (blur < 0) throw new RangeError(`${who}: ${k}.blur_radius is at least 0, got ${blur}`);- return `${pxOf(who, `${k}.x_offset`, s.x_offset)}px ${pxOf(who, `${k}.y_offset`, s.y_offset)}px ${blur * 2}px 0px ${colorCss(who, `${k}.color`, s.color)}`;+ return `${pxOf(who, `${k}.x_offset`, s.x_offset)}px ${pxOf(who, `${k}.y_offset`, s.y_offset)}px ${blur * 2}px ${pxOf(who, `${k}.spread_radius`, s.spread_radius)}px ${colorCss(who, `${k}.color`, s.color)}`;}).join(", ");}++/** whether a BoxShadow spreads, so its node is marked data-raea-bevy-shadow for Bevy's spread rule */+export function shadowSpread(b: BoxShadow): boolean {+ return Array.isArray(b) && b.some((s) => parseFloat(String(s.spread_radius)) !== 0);+}diff --git a/sdk/render/src/bevy3d/ui.tsx b/sdk/render/src/bevy3d/ui.tsxindex c7202c09..a0a8c56e 100644--- a/sdk/render/src/bevy3d/ui.tsx+++ b/sdk/render/src/bevy3d/ui.tsx@@ -12,7 +12,7 @@ import {import { LinearRgba, type Srgba } from "./colors";import { gradientsCss, gradientsOpaque, type Gradient } from "./ui-gradient";import { gridCss, type GridAutoFlow, type GridPlacement, type GridTrack, type RepeatedGridTrack } from "./ui-grid";-import { shadowCss, transformCss, type BoxShadow, type UiTransform } from "./ui-transform";+import { shadowCss, shadowSpread, transformCss, type BoxShadow, type UiTransform } from "./ui-transform";import { featuresCss } from "./ui-features";import { scrollCss, type IgnoreScroll } from "./ui-scroll";import { useDebugAttr, type UiDebugOptions } from "./ui-debug";@@ -138,6 +138,7 @@ export function nodeCss(who: string, p: NodeProps, back?: Backdrop, scale = 1):// them; a GlobalZIndex ranks it in the root's (raea's Blitz hoists it past every other, layout/paint_tree.rs)s.zIndex = p.global_z_index ?? p.z_index ?? 0;const attrs: Record<string, string | number> = p.global_z_index ? { "data-raea-bevy-global-z": "" } : {};+ if (p.box_shadow !== undefined && shadowSpread(p.box_shadow)) attrs["data-raea-bevy-shadow"] = "";if (p.margin !== undefined) s.margin = rectCss(who, "margin", p.margin);if (p.padding !== undefined) s.padding = rectCss(who, "padding", p.padding);if (p.border !== undefined) {@@ -157,6 +158,8 @@ export function nodeCss(who: string, p: NodeProps, back?: Backdrop, scale = 1):s.outline = `${checkVal(who, "outline.width", p.outline.width)} solid ${over(who, "outline.color", p.outline.color ?? "#ffffff", undefined).css}`;if (p.outline.offset !== undefined) s.outlineOffset = checkVal(who, "outline.offset", p.outline.offset);}+ // (what lies under the node, which its border blends over: Bevy keeps the background inside the border)+ const under = back;if (p.background_color !== undefined) ({ css: s.backgroundColor, back } = over(who, "background_color", p.background_color, back));if (p.background_gradient !== undefined) {s.backgroundImage = gradientsCss(who, p.background_gradient);@@ -176,12 +179,13 @@ export function nodeCss(who: string, p: NodeProps, back?: Backdrop, scale = 1):s.backgroundOrigin = "border-box";s.backgroundClip = [...own.map(() => "padding-box"), ...p.border_gradient.map(() => "border-box")].join(", ");}- // (the border over its own background, as Bevy draws it)+ // (the border over what lies under the node, not its own background, which Bevy draws inside the border only: a+ // translucent border on a translucent background shows one blend, as feathers' disabled switch slide does)const bc = p.border_color;if (bc !== undefined && typeof bc === "object" && "top" in bc) {- const side = (k: "top" | "right" | "bottom" | "left") => over(who, `border_color.${k}`, bc[k], back).css;+ const side = (k: "top" | "right" | "bottom" | "left") => over(who, `border_color.${k}`, bc[k], under).css;s.borderColor = `${side("top")} ${side("right")} ${side("bottom")} ${side("left")}`;- } else if (bc !== undefined) s.borderColor = over(who, "border_color", bc, back).css;+ } else if (bc !== undefined) s.borderColor = over(who, "border_color", bc, under).css;if (p.overflow !== undefined) {const o = p.overflow;for (const a of ["x", "y"] as const) if (!OVERFLOW_AXIS.includes(o?.[a])) throw new TypeError(`${who}: overflow.${a} is one of ${OVERFLOW_AXIS.join(", ")}, got ${JSON.stringify(o?.[a])}`);diff --git a/sdk/skills/raea/reference/sdk.md b/sdk/skills/raea/reference/sdk.mdindex 84bddb15..9dde687c 100644--- a/sdk/skills/raea/reference/sdk.md+++ b/sdk/skills/raea/reference/sdk.md@@ -39,11 +39,11 @@ with a capital, hooks with `use`. A component's props are in its file.## `raea/color` (sdk/raea/src/color.ts)-`Hsla`, `LinearRgba`, `Oklaba`, `Oklcha`, `Srgba`, `Xyza`, `kelvin`, `toHex`+`Hsla`, `LinearRgba`, `Okhsla`, `Oklaba`, `Oklcha`, `Srgba`, `Xyza`, `kelvin`, `toHex`## `raea/feathers` (sdk/raea/src/feathers.ts)-`AngleDegrees`, `Dimensionless`, `FeathersButton`, `FeathersNumberInput`, `LengthMeters`, `NumberInputRange`, `NumberInputValue`, `StandardUnitKind`, `ThemeBackgroundColor`, `ThemeBorderColor`, `ThemeContext`, `ThemeTextColor`, `ThemedText`, `TimeSeconds`, `UiTheme`, `VirtualKeyboard`, `caption`, `context_color`, `create_dark_theme`, `fonts`, `label`, `label_dim`, `label_small`, `palette`, `size`, `to_border_radius`, `tokens`, `useThemeColor`+`AngleDegrees`, `Dimensionless`, `FeathersButton`, `FeathersCheckbox`, `FeathersColorInput`, `FeathersColorPlane`, `FeathersColorSlider`, `FeathersColorSwatch`, `FeathersDisclosureToggle`, `FeathersLazyMenu`, `FeathersListRow`, `FeathersListView`, `FeathersMenu`, `FeathersMenuButton`, `FeathersMenuDivider`, `FeathersMenuItem`, `FeathersMenuPopup`, `FeathersMenuToolButton`, `FeathersNumberInput`, `FeathersRadio`, `FeathersScrollbar`, `FeathersSelect`, `FeathersSlider`, `FeathersTextInput`, `FeathersTextInputContainer`, `FeathersToggleSwitch`, `FeathersToolButton`, `LengthMeters`, `NumberInputRange`, `NumberInputValue`, `StandardUnitKind`, `ThemeBackgroundColor`, `ThemeBorderColor`, `ThemeContext`, `ThemeTextColor`, `ThemedText`, `TimeSeconds`, `UiTheme`, `VirtualKeyboard`, `caption`, `channel_range`, `context_color`, `create_dark_theme`, `flex_spacer`, `fonts`, `gradient_ends`, `group`, `group_body`, `group_header`, `icon`, `icon_untinted`, `icons`, `label`, `label_dim`, `label_small`, `list_rows_from_strings`, `palette`, `pane`, `pane_body`, `pane_header`, `pane_header_divider`, `size`, `slider_label`, `subpane`, `subpane_body`, `subpane_header`, `to_border_radius`, `tokens`, `useInheritedColor`, `useThemeColor`## `raea/gizmos` (sdk/raea/src/gizmos.ts)diff --git a/vendor/blitz-paint/src/render/box_shadow.rs b/vendor/blitz-paint/src/render/box_shadow.rsindex 043e87e0..17b2dd56 100644--- a/vendor/blitz-paint/src/render/box_shadow.rs+++ b/vendor/blitz-paint/src/render/box_shadow.rs@@ -22,6 +22,7 @@ impl ElementCx<'_, '_> {.as_srgb_color();let bg_is_opaque = bg_color.components[3] >= 1.0;let needs_clip = opacity < 1.0 || !bg_is_opaque;+ let bevy = self.node.attr(blitz_dom::LocalName::from("data-raea-bevy-shadow")).is_some();let max_shadow_rect = box_shadow.iter().fold(Rect::ZERO, |prev, shadow| {let x = shadow.base.horizontal.px() as f64 * self.scale;@@ -30,7 +31,11 @@ impl ElementCx<'_, '_> {let spread = shadow.spread.px() as f64 * self.scale;let offset = spread + blur * 2.5;- let rect = self.frame.border_box.inflate(offset, offset) + Vec2::new(x, y);+ // raea: a bevy_ui node's shadow spreads by bevy_ui's rule, its height by the width's ratio+ let rect = match bevy.then(|| bevy_spread(self.frame.border_box, 0.0, spread)).flatten() {+ Some((r, _)) => r.inflate(blur * 2.5, blur * 2.5) + Vec2::new(x, y),+ None => self.frame.border_box.inflate(offset, offset) + Vec2::new(x, y),+ };prev.union(rect)});@@ -78,10 +83,17 @@ impl ElementCx<'_, '_> {}// TODO draw shadows with matching individual radii instead of averaging- // raea: the shadow's corners grow and shrink with its spread, as its box does+ // raea: the shadow's corners grow and shrink with its spread, as its box does; a bevy_ui+ // node's (data-raea-bevy-shadow) by bevy_ui's rule, which may leave no shadow at alllet radius = self.frame.border_radii.average();- let radius = if radius > 0.0 { (radius + spread).max(0.0) } else { 0.0 };- let rect = self.frame.border_box.inflate(spread, spread);+ let (rect, radius) = if bevy {+ match bevy_spread(self.frame.border_box, radius, spread) {+ Some(s) => s,+ None => continue,+ }+ } else {+ (self.frame.border_box.inflate(spread, spread), if radius > 0.0 { (radius + spread).max(0.0) } else { 0.0 })+ };// Fill the colorscene.draw_box_shadow(transform, rect, shadow_color, radius, blur);@@ -162,3 +174,36 @@ impl ElementCx<'_, '_> {}}}++/// bevy_ui's spread (box_shadow.rs extract_shadows): the shadow `spread` wider than the node, half each side, its height+/// and corners scaled by the same ratio, about the node's centre; none when that leaves it no size.+pub(crate) fn bevy_spread(border_box: Rect, radius: f64, spread: f64) -> Option<(Rect, f64)> {+ let (w, h) = (border_box.width(), border_box.height());+ if w <= 0.0 {+ return None;+ }+ let ratio = (spread + w) / w;+ let (sw, sh) = (w + spread, h * ratio);+ if sw <= 0.0 || sh <= 0.0 {+ return None;+ }+ let c = border_box.center();+ Some((Rect::from_center_size(c, (sw, sh)), radius * ratio))+}++#[cfg(test)]+mod tests {+ use super::*;++ #[test]+ fn bevy_spread_grows_width_by_spread_and_height_by_its_ratio() {+ // a 200 x 100 node spread 20: 220 wide, 110 high (ratio 1.1), corners 4 -> 4.4, about the same centre+ let (r, radius) = bevy_spread(Rect::new(10.0, 10.0, 210.0, 110.0), 4.0, 20.0).unwrap();+ for (got, want) in [(r.x0, 0.0), (r.y0, 5.0), (r.x1, 220.0), (r.y1, 115.0)] {+ assert!((got - want).abs() < 1e-9, "{r:?}");+ }+ assert!((radius - 4.4).abs() < 1e-12);+ // a spread that takes the whole width leaves no shadow+ assert!(bevy_spread(Rect::new(0.0, 0.0, 10.0, 10.0), 0.0, -10.0).is_none());+ }+}diff --git a/vendor/vendor.toml b/vendor/vendor.tomlindex 636f43a1..892a4b8c 100644--- a/vendor/vendor.toml+++ b/vendor/vendor.toml@@ -56,7 +56,7 @@ exit = "a bevy_ui_widgets release on parley 0.12"path = "vendor/blitz-paint"upstream = "crates.io:0.3.0-beta.4"kind = "patch"-reason = "angled tile gradients, many-tile gradient layers as one brush, text-shadow, ellipsis, inline-box opacity, box-shadow blur as Chrome's; filters by GPU passes (B4a/B4b); z-index boxes clipped by the overflow between them and their stacking context; a range input's thumb; what an element paints at an offset of its own (background position and tiles, box and text shadows, scroll, inline SVG) placed in its own axes under a rotated ancestor (#18); background-clip: text, its background masked by the text of the element and everything in it (#37); a rounded corner where one side has no width (a left-only border on a rounded box), which drew nothing"+reason = "angled tile gradients, many-tile gradient layers as one brush, text-shadow, ellipsis, inline-box opacity, box-shadow blur as Chrome's; filters by GPU passes (B4a/B4b); z-index boxes clipped by the overflow between them and their stacking context; a range input's thumb; what an element paints at an offset of its own (background position and tiles, box and text shadows, scroll, inline SVG) placed in its own axes under a rotated ancestor (#18); background-clip: text, its background masked by the text of the element and everything in it (#37); a rounded corner where one side has no width (a left-only border on a rounded box), which drew nothing; a bevy_ui node's spreading box shadow (data-raea-bevy-shadow) spread as bevy_ui spreads it, its width by the spread and its height and corners by the same ratio"exit = "a Blitz release that draws these"[blitz-dom]