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
Docs: every SDK prop, field and member described on raea.io/docs, and the reference check fails on a missing one
shinyobjectz668ae2eb0828
diff --git a/core/animate/src/spec.rs b/core/animate/src/spec.rsindex fc2660d1..7497dced 100644--- a/core/animate/src/spec.rs+++ b/core/animate/src/spec.rs@@ -33,6 +33,7 @@ pub struct Animation {pub freeze: Option<f64>,/// the frames per second its frames count; springs measure their settle time with it (0: the clock's)pub fps: f64,+ /// the element's keyframed properties, one track eachpub tracks: Vec<AnimTrack>,/// the local frame it's shown from, when it shows only for a window (mount="during"); before it, display nonepub show_from: Option<f64>,@@ -45,7 +46,9 @@ pub struct Animation {#[cfg_attr(feature = "bevy", derive(bevy::prelude::Reflect), reflect(Default))]#[serde(default)]pub struct AnimTrack {+ /// the property it keys: opacity, x, y, z, scale, rotate, width, height, blur, clip, a colour, `text`, or another numberpub prop: String,+ /// its keyframes in frame orderpub keys: Vec<AnimKey>,/// a length's unit: "px" (when empty) or "%"pub unit: String,@@ -55,6 +58,7 @@ pub struct AnimTrack {pub digits: u32,/// written before and after a `text` number (a counter's "$" and " pts")pub prefix: String,+ /// written after a `text` numberpub suffix: String,/// between a `text` number's thousands ("," writes 12,345); empty: nonepub separator: String,@@ -65,7 +69,9 @@ pub struct AnimTrack {#[cfg_attr(feature = "bevy", derive(bevy::prelude::Reflect), reflect(Default))]#[serde(default)]pub struct AnimKey {+ /// the local frame it's atpub at: f64,+ /// a number property's value therepub value: f64,/// a colour property's value (CSS text); empty for numberspub color: String,diff --git a/docs/manual/reference/sdk/3d.md b/docs/manual/reference/sdk/3d.mdindex bebdfc8c..b2b82c09 100644--- a/docs/manual/reference/sdk/3d.md+++ b/docs/manual/reference/sdk/3d.md@@ -90,8 +90,8 @@ A Bevy resource (a plugin's settings: gravity), applied through the TypeRegistry| Prop | Type | What it does || --- | --- | --- |-| `type` (required) | `string` | – |-| `value` (required) | `unknown` | – |+| `type` (required) | `string` | the resource's Rust type path, as the TypeRegistry names it |+| `value` (required) | `unknown` | its value as Bevy reflects it (JSON) |Used in: [shader_advanced/deferred_raymarch](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/shader_advanced/deferred_raymarch.tsx).@@ -111,27 +111,27 @@ A rigid body inside <Physics>: drawn where the simulation has it this frame.| Prop | Type | What it does || --- | --- | --- |-| `name` (required) | `string` | – |+| `name` (required) | `string` | the body's name, unique in its <Physics>: the bake keys its track by it || `src` | `string` | a glTF's nodes as the body (drawn as a <Part>, its collider their hull) |-| `nodes` | `string[]` | – |+| `nodes` | `string[]` | the glTF nodes that make the body || `shape` | `Shape` | "hull" (default for nodes), "box" (their bounds), "mesh" (exact triangles, fixed bodies only), or a shape || `centre` | `Vec3` | where a given shape's centre stands at rest, world (a nodes' body: the middle of their bounds) |-| `fixed` | `boolean` | – |+| `fixed` | `boolean` | it never moves: a floor, a wall, a table || `mass` | `number` | kg (else volume x density) || `density` | `number` | kg/m³ (1000) |-| `friction` | `number` | – |-| `restitution` | `number` | – |-| `velocity` | `Vec3` | – |-| `angularVelocity` | `Vec3` | – |-| `linearDamping` | `number` | – |-| `angularDamping` | `number` | – |+| `friction` | `number` | 0 slides, 1 grips (0.5) |+| `restitution` | `number` | 0 lands dead, 1 bounces back fully (0.2) |+| `velocity` | `Vec3` | m/s at the start, world |+| `angularVelocity` | `Vec3` | radians a second at the start, world |+| `linearDamping` | `number` | how fast its motion bleeds off (0) |+| `angularDamping` | `number` | how fast its spin bleeds off (0.05) || `release` | `number` | seconds: held where it is until then (a cup sits until it's knocked) |-| `impulses` | `Impulse[]` | – |+| `impulses` | `Impulse[]` | kicks at given seconds: an impulse, where it's applied, and a torque || `path` | `(t: number) => { position: Vec3; quaternion: Quat }` | a kinematic mover: its rigid motion from rest at t seconds (see `about`); it pushes the others || `material` | `PartMaterial` | drawn as the body's nodes are, or by its children (inside its motion: draw them where it stands at rest) |-| `glitch` | `Glitch \| ((t: number) => Glitch \| undefined)` | – |-| `castShadow` | `boolean` | – |-| `children` | `ReactNode` | – |+| `glitch` | `Glitch \| ((t: number) => Glitch \| undefined)` | how its part breaks up, or a function of seconds giving that |+| `castShadow` | `boolean` | it casts shadows |+| `children` | `ReactNode` | what draws the body, in place of its nodes |### `BufferMesh`@@ -176,7 +176,7 @@ Also takes the props of [`Capsule3dProps`](#capsule3dprops) (`radius`, `half_lenA compute over the frame, in the 3D beside the camera; several run in the order written, before the cameras draw.-Bevy: `raea_sys_compute::Computes`.+Rust: `raea_sys_compute::Computes`.Takes [`ComputeProps`](#computeprops)'s props.@@ -194,13 +194,7 @@ Also takes the props of [`ConeProps`](#coneprops) (`args`, `radius`, `height`).Bevy's Cuboid: `<Cuboid half_size={[1, 0.5, 1]} />` is a Box of args [2, 1, 2].-Bevy: `bevy_shape::Cuboid`.--| Prop | Type | What it does |-| --- | --- | --- |-| `args` | `[number, number, number]` | – |--Also takes the props of [`CuboidProps`](#cuboidprops) (`half_size`).+Also takes the props of [`CuboidProps`](#cuboidprops) (`half_size`); `BoxProps` (`args`).### `Cylinder`@@ -210,8 +204,6 @@ Bevy: `bevy_shape::Cylinder`.Also takes the props of [`CylinderProps`](#cylinderprops) (`args`, `radius`, `half_height`).-Used in: [manual: turntable](https://github.com/shinyobjectz/raea/blob/main/docs/manual/examples/turntable.tsx).-### `Decal`A picture pressed onto whatever surface it lies across: a label on a jar, a stain on a counter, tiles on a wall, a@@ -228,7 +220,7 @@ Inside a Camera3d: its depth buffer copied each frame, after its prepass and befimage a Material samples (Bevy's shader_advanced/render_depth_to_texture, whose depth-only camera has Bevy'sDepthPrepass, RenderTarget::None and Msaa off).-Bevy: `raea_sys_phase::DepthCopy`.+Rust: `raea_sys_phase::DepthCopy`.| Prop | Type | What it does || --- | --- | --- |@@ -253,9 +245,9 @@ in a flat glowing `material`, so a fork "duplicates" along a line.| Prop | Type | What it does || --- | --- | --- |-| `count` (required) | `number` | – |-| `step` (required) | `Vec3 \| ((k: number) => Vec3)` | – |-| `echo` | `PartMaterial` | – |+| `count` (required) | `number` | how many echoes trail the part |+| `step` (required) | `Vec3 \| ((k: number) => Vec3)` | metres between one echo and the next, or a function of the echo's number (1, 2,...) giving its offset |+| `echo` | `PartMaterial` | the echoes' material (the part's by default): a flat glowing one reads as copies |Also takes the props of [`PartProps`](#partprops).@@ -268,7 +260,7 @@ frame: `<Entities world={game.at(useCurrentFrame())} />`. Needs the engine's tab| Prop | Type | What it does || --- | --- | --- |-| `world` (required) | `{ scene(): unknown[] }` | – |+| `world` (required) | `{ scene(): unknown[] }` | the game's world at this frame: anything with \`scene()\` giving its entities |### `Entity`@@ -282,14 +274,14 @@ hand-written element.| Prop | Type | What it does || --- | --- | --- || `name` | `string` | what an Entity field elsewhere names it by (a ChildOf's parent, an observer's target); unique in the scene |-| `position` | `Vec3` | – |+| `position` | `Vec3` | where it stands, metres (x, y, z) || `rotation` | `Vec3` | Euler XYZ in radians |-| `scale` | `Vec3 \| number` | – |+| `scale` | `Vec3 \| number` | one number, or x, y and z || `transform` | `{ translation?: Vec3; rotation?: [number, number, number, number]; scale?: Vec3 }` | Bevy's Transform (Transform.fromXyz(..).withRotation(..)), in place of position, rotation and scale: the entity is then a parent whose children (meshes, lights, models, other entities) move with it, as Bevy's ChildOf children do (the old Group) || `pass` | `string` | with `transform`: the composition pass of every part inside that doesn't name its own (Mesh's `pass`) || `children` | `ReactNode` | its Bevy components (<BevyComponent>, or the generated wrappers in raea/bevy-own); with `transform`, also the parts it carries |-Used in: [ui/widgets/viewport_node](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/widgets/viewport_node.tsx), [3d/3d_shapes](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/3d_shapes.tsx), [3d/atmospheric_fog](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/atmospheric_fog.tsx), [3d/3d_scene](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/3d_scene.tsx), [3d/parenting](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/parenting.tsx), [stress_tests/many_foxes](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/stress_tests/many_foxes.tsx), [camera/projection_zoom](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/camera/projection_zoom.tsx), [animation/animated_transform](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/animation/animated_transform.tsx), and 5 more.+Used in: [ui/widgets/viewport_node](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/widgets/viewport_node.tsx), [3d/3d_shapes](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/3d_shapes.tsx), [3d/atmospheric_fog](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/atmospheric_fog.tsx), [3d/3d_scene](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/3d_scene.tsx), [3d/parenting](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/parenting.tsx), [stress_tests/many_foxes](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/stress_tests/many_foxes.tsx), [camera/projection_zoom](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/camera/projection_zoom.tsx), [animation/animated_transform](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/animation/animated_transform.tsx), and 4 more.### `Environment`@@ -358,7 +350,7 @@ Takes [`FogVolumeProps`](#fogvolumeprops)'s props.A full-screen pass over the scene camera's frame, beside the camera; several run in the order written. With aframe <Look> they run on its cells, before the look's composite.-Bevy: `raea_sys_framepass::FramePasses`.+Rust: `raea_sys_framepass::FramePasses`.Takes [`FramePassProps`](#framepassprops)'s props.@@ -370,7 +362,7 @@ Inside a Camera3d with Bevy's DepthPrepass and DeferredPrepass: your shader overdeferred G-buffer after the deferred prepass (depth compared GreaterEqual), so Bevy's deferred lighting lights it asany surface, and into the shadow maps of the camera's lights (Bevy's shader_advanced/deferred_raymarch).-Bevy: `raea_sys_phase::GBufferPass`.+Rust: `raea_sys_phase::GBufferPass`.| Prop | Type | What it does || --- | --- | --- |@@ -397,10 +389,10 @@ Objects melting into goo: the bake drawn by the frame (nothing before `from`).| Prop | Type | What it does || --- | --- | --- |-| `name` | `string` | – |+| `name` | `string` | the entity's name, for picking and the inspector || `seconds` (required) | `number` | how long, seconds, from `from` (a frame of the enclosing Sequence) |-| `from` | `number` | – |-| `objects` (required) | `GooObject[]` | – |+| `from` | `number` | the frame of the enclosing Sequence the bake starts at (0) |+| `objects` (required) | `GooObject[]` | what goes in: solids that melt and liquids that pour || `colliders` | `{ box: { min: Vec3; max: Vec3 }; friction?: number }[]` | static boxes the goo lies on and runs off (world) || `cups` | `GooCup[]` | hollow cylinders on a pose track (a mug lifted and tipped) that carry the goo and pour it (tools/goo's cups): radius inside, height foot to rim, base (the inside floor's height), wall, friction, and poses [t,...the cup's frame to world, 16 numbers column-major], t in seconds from the goo's start, its axis +y || `surface` | `{ blur?: number; level?: number; flat?: number; maxTris?: number }` | the surface drawn round the particles: blur (grid nodes, 1), iso level (of the rest density, 0.33) and flat (the blur across over the blur up, 1); a wider, flatter blur and a lower level close a thin spill into one sheet. maxTris (120000): past it the grid coarsens, which drops a film one particle thick; a wide one needs more |@@ -410,12 +402,12 @@ Objects melting into goo: the bake drawn by the frame (nothing before `from`).| `fps` | `number` | the bake's own frame rate (the composition's by default): one bake shared by compositions at different rates || `bounds` | `{ min: Vec3; max: Vec3 }` | the box it lives in: goo leaving it is gone || `dx` | `number` | grid cell, metres (0.005): finer is slower and smoother |-| `seed` | `number` | – |-| `gravity` | `Vec3` | – |+| `seed` | `number` | the random seed the particles are placed with: the same seed bakes the same goo (0) |+| `gravity` | `Vec3` | gravity, m/s² (0, -9.81, 0) || `roughness` | `number` | the surface: glossy, a little light through it |-| `clearcoat` | `number` | – |-| `subsurface` | `number` | – |-| `color` | `string` | – |+| `clearcoat` | `number` | 0..1 clear varnish over the surface |+| `subsurface` | `number` | 0..1 light let through the surface |+| `color` | `string` | the goo's colour where an object gives none |### `Grade`@@ -432,7 +424,7 @@ A field of grass over `area`, made by the engine from the ground's functions (sa| Prop | Type | What it does || --- | --- | --- |-| `name` | `string` | – |+| `name` | `string` | the entity's name, for picking, the inspector and world.* || `area` (required) | `PlanBox` | the ground the field covers: a box on the plan (x, z, metres) || `height` (required) | `(x: number, z: number) => number` | the ground's height at (x, z): the clumps stand on it, tilted to its slope || `density` (required) | `number \| ((x: number, z: number) => number)` | clumps per square metre at (x, z) (0: bare) |@@ -440,14 +432,14 @@ A field of grass over `area`, made by the engine from the ground's functions (sa| `size` | `(x: number, z: number) => number` | a multiple of the clumps' size at (x, z) (1 without it) || `tints` | `[string, string][]` | each patch's root and tip colours: ["#2c4a1a", "#5f8a2c"] || `highlight` | `string` | the tips' highlight colour ("#f2e7a0") and how much of it each tip takes (0.22) |-| `highlightMix` | `number` | – |+| `highlightMix` | `number` | how much of the highlight each tip takes (0.22) || `blades` | `number` | blades in a clump (14), their height in metres (0.3; each 0.55 to 1.3 times it), width range ([0.034, 0.05]) |-| `bladeHeight` | `number` | – |-| `width` | `[number, number]` | – |+| `bladeHeight` | `number` | their height in metres (0.3; each 0.55 to 1.3 times it) |+| `width` | `[number, number]` | a blade's width range, metres ([0.034, 0.05]) || `spread` | `number` | how far from its clump's centre a blade stands (0.06 m), and how far it leans over its height ([0.2, 0.7]) |-| `lean` | `[number, number]` | – |+| `lean` | `[number, number]` | how far a blade leans over its height ([0.2, 0.7]) || `scale` | `[number, number]` | each clump's scale, a random pick between these ([0.85, 1.35]), times `size` |-| `seed` | `number` | – |+| `seed` | `number` | which randomness places the clumps || `resolution` | `number` | grid points a metre the functions are sampled at (2) || `tile` | `number` | a tile's side in metres (4) || `lod` | `GrassLod[]` | the steps of detail, nearest first (the engine's: every clump within 5 m, half of them in 8 blades to 14 m, a fifth in 5 blades beyond) |@@ -503,13 +495,13 @@ The mesh it's inside drawn again by your shader, in a phase of its own after thethe colour target, with no depth test unless `depth`, back faces culled (Bevy's shader_advanced/custom_render_phase). Itreads the mesh's colours at location 1 under VERTEX_COLORS when the mesh has them.-Bevy: `raea_sys_phase::MeshPass`.+Rust: `raea_sys_phase::MeshPass`.| Prop | Type | What it does || --- | --- | --- || `shader` (required) | `string` | the shader file, compiled as written: staticFile("shaders/x.wesl"). Its vertex input is the mesh's position at location 0 (a vec4 `compressed_position` under VERTEX_POSITIONS_COMPRESSED), its bind groups Bevy's mesh view (0) and mesh (2) || `vertex` | `string` | its entry points (Bevy's default names) |-| `fragment` | `string` | – |+| `fragment` | `string` | the fragment entry point's name || `depth` | `boolean` | whether it tests and writes the view's depth (GreaterEqual), as a mesh in Bevy's opaque phase does (Bevy's shader_advanced/specialized_mesh_pipeline); without, it draws over everything |Used in: [shader_advanced/specialized_mesh_pipeline](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/shader_advanced/specialized_mesh_pipeline.tsx), [shader_advanced/custom_render_phase](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/shader_advanced/custom_render_phase.tsx).@@ -527,7 +519,7 @@ the view's colour and depth (compared GreaterEqual) after the main opaque pass (shader_advanced/mesh_shader_intro). It needs a GPU with mesh shaders, as Apple silicon's Metal has; elsewhere itdraws nothing and says so.-Bevy: `raea_sys_phase::MeshShaderPass`.+Rust: `raea_sys_phase::MeshShaderPass`.| Prop | Type | What it does || --- | --- | --- |@@ -550,15 +542,15 @@ Bevy: `bevy_pbr::mesh_material::MeshMaterial3d<raea_render::engine::look::LookMa| Prop | Type | What it does || --- | --- | --- || `src` (required) | `string` | a glTF file in the media folder: staticFile("models/shoe.glb") |-| `name` | `string` | – |+| `name` | `string` | the entity's name, for picking and the inspector || `sampler` | `SamplerSpec` | how its own glTF textures are read: { filter: "nearest" } for hard pixels, whatever the file says; a <MeshStandardMaterial> child's maps take their own `sampler` || `pass` | `string` | the composition pass it draws in ("scene" by default): a frame-wide effect told to skip a pass (<Look skip>, <Outline skip>, <Bloom skip>, <Grade skip>) leaves its pixels as drawn, and <Look passes> gives one its own paint; a piece names at most three passes besides "scene"; keyed per frame || `cloth` | `{ src: string; frame: number }` | a skinned model's own vertices replaced each frame by a baked cloth simulation (docs/cloth.md K2): `src` a.rseq of the model's vertices in its bind pose, in the glTF's order (raea/body tools/cloth.ts --bind), `frame` the one drawn (keyed per frame). The skin poses them, so its materials, alpha, morphs and bones are kept. || `attach` | `{ to: string; bone: string }` | fixed to another model's bone (`to`: that model's name; `bone`: the node's name in its glTF, "Head"): it follows the bone's animated pose, and its position, rotation and scale are in the bone's space (a glTF's armature is often scaled, so a hat may need scale 0.01) || `bones` | `Record<string, string>` | a skinned model's joints placed where other models are, by name: `{ pelvis: "hero-pelvis",... }` puts the joint named pelvis wherever the model named hero-pelvis is each frame (its position and rotation; shrink it to hide it: scale 0.001, not 0, which takes the skin with it), so a ragdoll's bodies move one skin that bends at its joints rather than rigid pieces. The model's own placement stays at the origin. |-| `position` | `Vec3` | – |+| `position` | `Vec3` | where it stands, metres (x, y, z) || `rotation` | `Vec3` | radians |-| `scale` | `number \| Vec3` | – |+| `scale` | `number \| Vec3` | one number, or x, y and z || `allowOverlap` | `boolean` | it may pass through other parts on purpose (a blade into a body, a ghost through a wall): raea's clipping check leaves it out || `posed` | `boolean` | set at an angle on purpose (a bowl knocked over, a mug on its side): `raea scene lint` doesn't call it tilted || `animation` | `string \| number` | a clip to play: its name in the file, or its index |@@ -570,7 +562,7 @@ Bevy: `bevy_pbr::mesh_material::MeshMaterial3d<raea_render::engine::look::LookMa| `graph` | `AnimGraphNode` | an authored animation graph (Bevy's AnimationGraph): a clip node, or a blend (its children's weights normalised) or an additive node (each child times its weight, added on) over children; any node may leave the subtrees of the bones in its `mask` alone (a wave on the arm over a walk: { add: [{ clip: "walk" }, { clip: "wave", mask: ["leg_l", "leg_r"] }] }). Weights and clip times may change every frame. Up to 16 nodes; not with animation or animations || `morphs` | `Record<string, number> \| number[]` | morph target (blend shape) weights, 0 to 1: by target name ({ smile: 0.8 }) or index ([0.8, 0]); up to 64. The names are fixed when the model is made: pass the same set every frame (0 for a target at rest) || `time` | `number` | seconds into the clip (by default the Sequence's time: frame / fps); the clip loops unless loop={false} |-| `loop` | `boolean` | – |+| `loop` | `boolean` | false plays the clip once and holds its last pose || `scene` | `number` | which of the file's scenes (0 by default) || `look` | `"solid" \| "pixel" \| "site"` | how the model itself is drawn (the rest of the scene is unchanged): "solid" (its own surfaces, the default), "pixel" (pixel art: a cell per `pixelSize` frame pixels, outlined in `edgeColor`) or "site" (raea.io's grain: the cells' light ordered-dithered into the site's six greys). It may change from frame to frame. || `flat` | `boolean` | its surfaces without light: shape and colour alone, like a drawing (the site look keeps the light: its grain is made of it) |@@ -580,7 +572,7 @@ Bevy: `bevy_pbr::mesh_material::MeshMaterial3d<raea_render::engine::look::LookMa| `edgeColor` | `string` | the pixel look's one-cell outline, a hex colour ("#000000" by default), or "none" || `theme` | `"dark" \| "light"` | the site look's greys: "dark" (light ink on black, the default) or "light" || `lift` | `number` | the site look's ink: lift + light * gain, before the dither (0.28 and 0.9 by default; on the light greys light is inverted, 0.35 and 0.75) |-| `gain` | `number` | – |+| `gain` | `number` | the site look's ink gain: lift + light * gain (0.9 by default, 0.75 on the light greys) || `children` | `ReactNode` | <MeshToonMaterial> children: toon surfaces over the model's own materials (all of them, or one each by name); <MeshStandardMaterial> children: its materials (all, or one each by `material`) given the colour, texture or finish each gives, the rest kept |Used in: [3d/lightmaps](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/lightmaps.tsx), [3d/split_screen](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/split_screen.tsx), [3d/atmospheric_fog](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/atmospheric_fog.tsx), [stress_tests/many_foxes](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/stress_tests/many_foxes.tsx), [camera/projection_zoom](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/camera/projection_zoom.tsx), [animation/animated_mesh](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/animation/animated_mesh.tsx), [gltf/gltf_skinned_mesh](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/gltf/gltf_skinned_mesh.tsx), [gltf/load_gltf](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/gltf/load_gltf.tsx), and 1 more.@@ -600,8 +592,6 @@ Takes [`MotionBlurProps`](#motionblurprops)'s props.Ink lines where the scene's depth steps or its surfaces turn, drawn before bloom and tone mapping; under a <Look>a cell wide (Return of the Obra Dinn's line). Put it inside the Canvas3D.-Bevy: `bevy_ui::Outline`.-Takes [`OutlineProps`](#outlineprops)'s props.### `Part`@@ -610,30 +600,30 @@ A glTF's nodes drawn on their own, where they stood, moved by a rigid motion, gl| Prop | Type | What it does || --- | --- | --- |-| `name` | `string` | – |+| `name` | `string` | the entity's name (the first node's by default) || `src` (required) | `string` | the glTF (staticFile("x.glb")) and the nodes that make the part |-| `nodes` (required) | `string[]` | – |+| `nodes` (required) | `string[]` | the glTF nodes that make the part || `position` | `Vec3` | a rigid motion from where it stands in the file (see `about`): position, and a quaternion [x, y, z, w] |-| `quaternion` | `Quat` | – |-| `scale` | `number` | – |-| `material` | `PartMaterial` | – |-| `glitch` | `Glitch` | – |-| `castShadow` | `boolean` | – |+| `quaternion` | `Quat` | its turn as a quaternion [x, y, z, w] (see `about`) |+| `scale` | `number` | a uniform scale (1) |+| `material` | `PartMaterial` | a material over the part's own (colour, glow, opacity) |+| `glitch` | `Glitch` | how the part breaks up this frame: explode, scramble, jitter, snap, smear |+| `castShadow` | `boolean` | it casts shadows |### `PhaseItem`Your own pipeline drawing your own buffers in each camera's Opaque3d phase.-Bevy: `raea_sys_phase::PhaseItem`.+Rust: `raea_sys_phase::PhaseItem`.| Prop | Type | What it does || --- | --- | --- || `shader` (required) | `string` | the shader file, compiled as written: staticFile("shaders/x.wesl") || `vertex` | `string` | its entry points (Bevy's default names) |-| `fragment` | `string` | – |+| `fragment` | `string` | the fragment entry point's name || `stride` (required) | `number` | the vertex buffer: each vertex `stride` bytes, its 32-bit words in order (a u32 pad of 0 is a 0) |-| `attributes` (required) | `PhaseAttribute[]` | – |-| `words` (required) | `number[]` | – |+| `attributes` (required) | `PhaseAttribute[]` | the vertex buffer's attributes |+| `words` (required) | `number[]` | the vertex buffer's 32-bit words, every vertex's in order || `indices` (required) | `number[]` | the index buffer (u32), drawn whole || `depth` | `{ write?: boolean; compare?: "Never" \| "Less" \| "Equal" \| "LessEqual" \| "Greater" \| "No…` | its depth state: whether it writes depth, and its compare (Bevy's CompareFunction by name; Bevy's opaque default, Greater, when left out) || `aabb` (required) | `{ center: [number, number, number]; half_extents: [number, number, number] }` | its bounds, so the camera sees it (Bevy's Aabb): a centre and half extents |@@ -649,11 +639,11 @@ fragments). Before `from` and after `seconds` they hold their first and last pos| Prop | Type | What it does || --- | --- | --- || `seconds` (required) | `number` | how long to simulate, seconds |-| `gravity` | `Vec3` | – |+| `gravity` | `Vec3` | m/s² (0, -9.81, 0) || `substeps` | `number` | steps per frame (8) || `colliders` | `{ min: Vec3; max: Vec3; friction?: number; restitution?: number }[]` | static boxes (world, metres): the floor, the table top || `from` | `number` | the frame (of the enclosing Sequence) the simulation starts on (0); before it everything is at rest |-| `children` | `ReactNode` | – |+| `children` | `ReactNode` | the <Body> elements to simulate, and anything else to draw |### `Plane3d`@@ -677,8 +667,8 @@ colour, texture or finish each gives, the rest of it kept (a run of cabinets pai| Prop | Type | What it does || --- | --- | --- |-| `materials` (required) | `MeshStandardMaterialProps[]` | – |-| `children` | `ReactNode` | – |+| `materials` (required) | `MeshStandardMaterialProps[]` | the finishes, each a <MeshStandardMaterial>'s props, over every glTF material or the one its `material` names |+| `children` | `ReactNode` | the models refinished |### `RichText`@@ -717,8 +707,8 @@ Bevy: `bevy_pbr::mesh_material::MeshMaterial3d<raea_render::engine::screen::CrtM| `name` | `string` | what the screen is called; screens on one page need different names ("screen" by default) || `position` | `Vec3` | a free-standing screen's place: a quad of `size` metres ([1.6] wide by default, its height from the resolution) || `rotation` | `Vec3` | radians |-| `scale` | `number \| Vec3` | – |-| `size` | `[number] \| [number, number]` | – |+| `scale` | `number \| Vec3` | its scale: one number, or x, y and z |+| `size` | `[number] \| [number, number]` | [width] or [width, height] in metres ([1.6], its height from the resolution) || `pass` | `string` | the composition pass it draws in (Mesh's `pass`; "scene" by default): `pass="ui"` with <Look skip={["ui"]}> keeps a page crisp under a paint look |Also takes the props of [`ScreenSource`](#screensource).@@ -729,7 +719,7 @@ The mesh it's inside drawn once per instance in one draw, by your shader, in thevertex buffer of your words stepped per instance (Bevy's shader_advanced/custom_shader_instancing). Its instancesaren't in the mesh's bounds: give the mesh Bevy's NoFrustumCulling (<BevyComponent type="bevy_camera::visibility::NoFrustumCulling" value={{}} />).-Bevy: `raea_sys_phase::ShaderInstances`.+Rust: `raea_sys_phase::ShaderInstances`.| Prop | Type | What it does || --- | --- | --- |@@ -790,8 +780,6 @@ Takes [`SpanProps`](#spanprops)'s props.### `Sphere`-*From Bevy's `bevy_shape::Sphere`:* A sphere primitive, representing the set of all points some distance from the origin-Also takes the props of [`SphereProps`](#sphereprops) (`args`, `radius`, `ico`, `uv`).Used in: [3d/bloom_3d](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/bloom_3d.tsx).@@ -883,8 +871,8 @@ for the depth buffer and flicker in stripes (z-fighting), stronger with `amount`| Prop | Type | What it does || --- | --- | --- |-| `amount` (required) | `number` | – |-| `other` | `PartMaterial` | – |+| `amount` (required) | `number` | radians the second copy is turned (~0.002): more is stronger stripes |+| `other` | `PartMaterial` | the second copy's material |Also takes the props of [`PartProps`](#partprops).@@ -1154,13 +1142,12 @@ area and bounds. Offset, combine and move it, then extrude or revolve it into a| Member | What it does || --- | --- |-| `new CrossSection(a: SectionAnswer)` | – || `CrossSection.from(a: SectionAnswer): CrossSection` | From an engine answer (a slice, a projection, an operation). || `CrossSection.of(polygons: Polygons): CrossSection` | Contours, overlaps merged and self-crossings resolved (Manifold's positive fill rule). |-| `.polygons: Polygons` | – |-| `.area: number` | – |-| `.contours: number` | – |-| `.bounds: { min: [number, number]; max: [number, number]; }` | – |+| `.polygons: Polygons` | its contours, each a list of [x, y] points: counter-clockwise solid, clockwise holes |+| `.area: number` | its area, m² |+| `.contours: number` | how many contours it has |+| `.bounds: { min: [number, number]; max: [number, number]; }` | its bounding box's low and high corners || `.union(...others: CrossSection[]): CrossSection` | This and the others together. || `.minus(...others: CrossSection[]): CrossSection` | This with the others cut away. || `.intersect(...others: CrossSection[]): CrossSection` | Only where this and every other overlap. |@@ -1184,11 +1171,11 @@ A signed distance field (negative inside), as the text raea-core-sdf reads. Y is| Member | What it does || --- | --- |-| `new Field(text: string)` | – |-| `.text: string` | – |-| `.move(x: number, y: number, z: number): Field` | – |+| `new Field(text: string)` | A field from its text, as raea-core-sdf reads it. |+| `.text: string` | the field as the text raea-core-sdf reads |+| `.move(x: number, y: number, z: number): Field` | The field moved by (x, y, z) metres. || `.rotate(x: number, y: number, z: number): Field` | Degrees about x, then y, then z (as a Solid's rotate). |-| `.scale(s: number): Field` | – |+| `.scale(s: number): Field` | The field scaled by `s` about its origin. || `.mirrorX(): Field` | Both sides: the field and its mirror across x = 0 (a body's left and right from one). || `.round(r: number): Field` | Grown outward by r, every edge rounded by it. || `.shell(t: number): Field` | Hollow: a skin 2t thick on the surface. |@@ -1201,8 +1188,8 @@ A handle to a native solid. Free it when done with many (or let the run end).| Member | What it does || --- | --- |-| `new Solid(id: number, expr: string)` | – |-| `.id: number` | – |+| `new Solid(id: number, expr: string)` | A handle to native solid `id`, which `expr` rebuilds; the shape functions make these, rarely you. |+| `.id: number` | the native solid's handle || `.expr: string` | the expression that rebuilds this solid (what a mesh row draws) || `.union(...others: Solid[]): Solid` | This and the others together. || `.minus(...others: Solid[]): Solid` | This with the others cut away. |@@ -1341,10 +1328,10 @@ type AnimGraphNode = | { clip: string | number; time?: number; weight?: number;| Field | Type | What it is || --- | --- | --- |-| `fps` (required) | `number` | – |-| `frames` (required) | `number` | – |-| `file` (required) | `string` | – |-| `bodies` (required) | `Record<string, { p: number[]; q: number[]; centre: Vec3 }>` | – |+| `fps` (required) | `number` | the frame rate it was baked at |+| `frames` (required) | `number` | how many frames it holds |+| `file` (required) | `string` | the bake's file in the asset store |+| `bodies` (required) | `Record<string, { p: number[]; q: number[]; centre: Vec3 }>` | each body's track by name: positions and quaternions a frame, flat, and its rest centre |### `BevyComponentProps`@@ -1357,7 +1344,7 @@ as bevy_light's ShadowFilteringMethod or bevy_pbr's ScreenSpaceReflections), app| Field | Type | What it is || --- | --- | --- |-| `children` | `ReactNode` | – |+| `children` | `ReactNode` | Bevy components on it: <BevyComponent>, or a generated wrapper || `layers` | `number[]` | a camera: the render layers it draws ([0] by default); a light: the layers it lights (Bevy's RenderLayers) |### `BloomProps`@@ -1377,8 +1364,8 @@ The props of [`Body`](#body), tabled there.| Field | Type | What it is || --- | --- | --- |-| `min` (required) | `Vec3` | – |-| `max` (required) | `Vec3` | – |+| `min` (required) | `Vec3` | the low corner |+| `max` (required) | `Vec3` | the high corner |### `BufferMeshProps`@@ -1397,7 +1384,7 @@ The props of [`Body`](#body), tabled there.| --- | --- | --- || `layered` | `boolean` | the 3D takes its place in the page's tree order instead of lying under the whole page: page elements before the Canvas3D (and the backgrounds of the elements holding it) are under the 3D, showing wherever it has nothing, and hidden by its parts; positioned elements after it are over it. The 3D's background is transparent. Put the Canvas3D straight in a full-frame AbsoluteFill. || `clearColor` | `string` | only with `layered`: the 3D clears to this CSS colour instead of transparent, so its translucent parts blend over it in linear light, as Bevy's do over its ClearColor (a Bevy 2D scene's rgb(43, 44, 47)), not over the page in sRGB. The 3D then lies under the whole page, as Bevy's camera output lies under all its UI (a GlobalZIndex(-1) too). |-| `children` | `ReactNode` | – |+| `children` | `ReactNode` | the 3D scene: cameras, lights and parts |### `Capsule3dProps`@@ -1405,15 +1392,15 @@ Bevy's Capsule3d: radius and half_length, the straight part's half (0.5 each by| Field | Type | What it is || --- | --- | --- |-| `radius` | `number` | – |-| `half_length` | `number` | – |-| `args` | `[number, number]` | – |+| `radius` | `number` | metres (0.5) |+| `half_length` | `number` | half the straight part's length, metres (0.5) |+| `args` | `[number, number]` | [radius, length of the straight part] |### `CapsuleProps`| Field | Type | What it is || --- | --- | --- |-| `args` | `[number, number]` | – |+| `args` | `[number, number]` | [radius, length of the straight part] ([0.5, 1]) |### `ComputeProps`@@ -1438,9 +1425,9 @@ A compute shader (raea-sys-compute). Its source has one `@compute` entry point a| Field | Type | What it is || --- | --- | --- |-| `args` | `[number, number]` | – |-| `radius` | `number` | – |-| `height` | `number` | – |+| `args` | `[number, number]` | [radius, height] |+| `radius` | `number` | the base's radius, metres (0.5) |+| `height` | `number` | metres (1) |### `CrtSettings`@@ -1470,7 +1457,7 @@ Bevy's Cuboid: half its size along each axis ([0.5, 0.5, 0.5], a 1 m cube, as Be| Field | Type | What it is || --- | --- | --- |-| `half_size` | `[number, number, number]` | – |+| `half_size` | `[number, number, number]` | half its size along x, y and z, metres ([0.5, 0.5, 0.5]) |### `CylinderProps`@@ -1478,27 +1465,27 @@ Bevy's Cuboid: half its size along each axis ([0.5, 0.5, 0.5], a 1 m cube, as Be| Field | Type | What it is || --- | --- | --- |-| `args` | `[number, number, number]` | – |-| `radius` | `number` | – |-| `half_height` | `number` | – |+| `args` | `[number, number, number]` | [radius top, radius bottom, height], as three.js's args |+| `radius` | `number` | metres (0.5) |+| `half_height` | `number` | half its height, metres (0.5) |### `DecalProps`| Field | Type | What it is || --- | --- | --- || `src` (required) | `string` | the picture pressed onto the surface: staticFile("label.png"); its clear parts show the surface through |-| `name` | `string` | – |-| `normalMap` | `string` | – |+| `name` | `string` | the entity's name, for picking, the inspector and world.* |+| `normalMap` | `string` | a normal map pressed with the picture: the label's relief || `size` | `number \| [number, number]` | width by height in metres (a number: a square) |-| `position` | `Vec3` | – |+| `position` | `Vec3` | where it stands, metres (x, y, z) || `normal` | `Vec3` | which way the surface faces at the decal (out of it; [0, 1, 0], a floor or counter, by default): turns the decal so the picture lies on it, upright on a wall, its top toward -z on a floor. Instead of rotation || `spin` | `number` | a turn about the normal (radians) || `rotation` | `Vec3` | radians, the decal's +y out of the surface (rather than normal) || `color` | `string` | a tint times the picture (keyed: a stain darkening) || `opacity` | `number` | 0 to 1 (keyed: a label fading in) |-| `roughness` | `number` | – |-| `metalness` | `number` | – |-| `unlit` | `boolean` | – |+| `roughness` | `number` | 0..1, smooth to matte |+| `metalness` | `number` | 0..1, a dielectric to a metal |+| `unlit` | `boolean` | drawn in its flat colour, without light or shade || `fade` | `number` | how far off its plane (metres) it still lies on a surface, fading to nothing there (0.05 by default). Anything nearer the plane than this takes it, a cabinet's side or a fridge's as well as the wall: keep it small |### `DepthCopyProps`@@ -1513,8 +1500,8 @@ The props of [`DepthCopy`](#depthcopy), tabled there.| `mode` | `"bokeh" \| "gaussian"` | "bokeh" (round, as a real lens; the default) or "gaussian" (soft, cheaper) || `maxBlur` | `number` | the largest blur, in pixels of the frame (64 by default) || `focal_distance` | `number` | Bevy's fields, as Bevy's DepthOfField component on a Camera3d (inside it), Bevy's defaults: the distance in focus (10; the camera's `focus`), the f-number (1), the largest blur in pixels (64), "Bokeh" or "Gaussian" |-| `aperture_f_stops` | `number` | – |-| `max_circle_of_confusion_diameter` | `number` | – |+| `aperture_f_stops` | `number` | the f-number (1): lower is a shallower focus |+| `max_circle_of_confusion_diameter` | `number` | the largest blur, in px (64) |### `EntityProps`@@ -1578,8 +1565,6 @@ type FogColor = string | { red: number; green: number; blue: number; alpha: numbbevy_pbr's FogFalloff as it reflects; FogFalloff's constructors (raea/pbr) make one from a visibility distance-Bevy: `bevy_pbr::FogFalloff`.-```tstype FogFalloff = | { Linear: { start: number; end: number } } | { Exponential: { density: number } } | { ExponentialSquared: { density: number } } | { Atmospheric: { extinction: [number, number, number]; inscattering: [number, number, number] } }```@@ -1590,7 +1575,7 @@ type FogFalloff = | { Linear: { start: number; end: number } } | { Exponential:| --- | --- | --- || `color` | `FogColor` | what far things fade into: match the background || `near` | `number` | linear fog from `near` to `far` (in the Canvas3D 5 and 20 by default; on the camera Bevy's 0 and 100) |-| `far` | `number` | – |+| `far` | `number` | where linear fog is full, from the camera (20 in the Canvas3D, 100 on a camera) || `density` | `number` | or exponential fog of this density (0.05-0.3), instead of near and far || `falloff` | `FogFalloff` | on the camera: Bevy's FogFalloff, in place of near, far and density (Bevy's default Linear 0 to 100) || `directional_light_color` | `FogColor` | on the camera: the sun's colour in the fog looking towards it, its alpha its strength (Bevy's default none) |@@ -1653,10 +1638,10 @@ type GizmoColor = string | [number, number, number, number] | { red: number; gre| `color` | `GizmoColor \| GizmoColor[]` | one colour for every point, or one per point of `lines` (two per segment) then `strip`: "#rrggbb", Bevy's LinearRgba (above 1 for HDR, as bevy_gizmos takes it) or Srgba, or linear [r, g, b, a] || `width` | `number` | line width in pixels (Bevy's default 2) || `depthBias` | `number` | -1 always in front of geometry, 0 depth-tested as it is (Bevy's GizmoLineConfig and depth_bias) |-| `position` | `Vec3` | – |-| `rotation` | `Vec3` | – |-| `scale` | `Vec3 \| number` | – |-| `name` | `string` | – |+| `position` | `Vec3` | where it stands, metres (x, y, z) |+| `rotation` | `Vec3` | its rotation, Euler angles in radians (x, y, z) |+| `scale` | `Vec3 \| number` | its scale: one number, or x, y and z |+| `name` | `string` | the entity's name, for picking, the inspector and world.* |### `Glitch`@@ -1677,11 +1662,11 @@ What a glyph is, for a <RichText>'s `glyph` function.| --- | --- | --- || `index` (required) | `number` | its place among the drawn glyphs (spaces aren't glyphs), from 0 || `count` (required) | `number` | how many glyphs the block has |-| `char` (required) | `string` | – |+| `char` (required) | `string` | the character it draws || `word` (required) | `number` | its word's place among the words, from 0, and how many there are |-| `words` (required) | `number` | – |+| `words` (required) | `number` | how many words the block has || `inWord` (required) | `number` | its place in its word, and the word's glyph count |-| `wordLength` (required) | `number` | – |+| `wordLength` (required) | `number` | how many glyphs its word has || `line` (required) | `number` | its line (by the newlines in the text), from 0 || `span` (required) | `number` | its run: the <Span> it's in (0 for text outside any, counted in order) |@@ -1694,41 +1679,41 @@ multiplied into (scale, opacity) or replacing (color, visible) what the block's| --- | --- | --- || `position` | `Vec3` | metres, from its place in the block || `rotation` | `Vec3` | radians, XYZ |-| `scale` | `number \| Vec3` | – |-| `color` | `string` | – |-| `opacity` | `number` | – |-| `visible` | `boolean` | – |+| `scale` | `number \| Vec3` | multiplies its size: one number, or x, y and z |+| `color` | `string` | replaces its colour |+| `opacity` | `number` | multiplies its opacity, 0..1 |+| `visible` | `boolean` | false hides it this frame |### `GooBake`| Field | Type | What it is || --- | --- | --- |-| `file` (required) | `string` | – |-| `stats` (required) | `{ objects?: { name: string; hideFrame: number }[]; [k: string]: unknown }` | – |+| `file` (required) | `string` | the baked.rseq this goo plays |+| `stats` (required) | `{ objects?: { name: string; hideFrame: number }[]; [k: string]: unknown }` | what the bake measured, with each object's name and the frame its original model should go |### `GooObject`| Field | Type | What it is || --- | --- | --- |-| `name` (required) | `string` | – |+| `name` (required) | `string` | the object's name; the bake's stats list it, with the frame its original model should go || `src` | `string` | a glTF's nodes (world space as they stand in it), moved by `transform` (column-major 4x4) if given; or, with no src, `cup` and `level`: a liquid filling one of the goo's cups to `level` metres above its foot |-| `nodes` | `string[]` | – |-| `cup` | `number` | – |-| `level` | `number` | – |-| `transform` | `number[]` | – |+| `nodes` | `string[]` | the glTF nodes it's made of (all of them when left out) |+| `cup` | `number` | with no src: the index of the cup in `cups` it fills |+| `level` | `number` | with no src: metres above the cup's foot it's filled to |+| `transform` | `number[]` | a column-major 4x4 that moves the glTF's nodes || `liquid` | `"water" \| "coffee" \| "tea" \| "milk" \| "juice" \| "oil" \| "syrup" \| "honey"` | sph: what it is ("water" by default: coffee, tea, milk, juice, oil, syrup, honey set its colour, density and viscosity), and where it comes from if not a cup or a glTF (filled): a box of it, or an emitter pouring a round stream from `at` along `dir` (down) at `speed` m/s, `radius` m (6 mm) across, from `start` to `end` seconds |-| `block` | `{ min: Vec3; max: Vec3 }` | – |-| `emitter` | `{ at: Vec3; dir?: Vec3; radius?: number; speed?: number; start?: number; end?: number }` | – |+| `block` | `{ min: Vec3; max: Vec3 }` | sph: a box of liquid, world min and max corners |+| `emitter` | `{ at: Vec3; dir?: Vec3; radius?: number; speed?: number; start?: number; end?: number }` | sph: a round stream poured from `at` along `dir`, `radius` m across, at `speed` m/s, from `start` to `end` seconds || `start` (required) | `number` | seconds from the goo's start when it begins to soften, and how long until it runs (mpm) |-| `melt` | `number` | – |+| `melt` | `number` | seconds from `start` until it runs (2) || `stiffness` | `number` | of the solid (3e4) and the fluid it becomes (4) |-| `viscosity` | `number` | – |-| `density` | `number` | – |+| `viscosity` | `number` | how thick the fluid it becomes is (4) |+| `density` | `number` | its density, kg/m³ (1000) || `cohesion` | `number` | the share of its pressure it keeps under tension (0.6): goo holds together in strands, a liquid (0.02) barely || `residual` | `number` | the share of its shear stiffness a fluid keeps (0.12) and the strain it must pass to flow (0.005): 0 and 0 for a liquid |-| `yield` | `number` | – |+| `yield` | `number` | the strain a fluid must pass to flow (0.005; 0 for a liquid) || `fill` | `"solid" \| "shell"` | "solid" fills its volume; "shell" a skin `thickness` thick (plates, petals) |-| `thickness` | `number` | – |+| `thickness` | `number` | with `fill: "shell"`: the skin's thickness, metres || `color` | `string` | its goo's colour (else its texture's) |### `GooProps`@@ -1742,9 +1727,9 @@ The props of [`Goo`](#goo), tabled there.| `temperature` | `number` | warmer (+) or cooler (-): a shift of the CIE x chromaticity, about -0.3 to 0.3 || `tint` | `number` | magenta (+) or green (-) || `saturation` | `number` | the whole frame's saturation after tone mapping (1 keeps it) |-| `shadows` | `GradeSection` | – |-| `midtones` | `GradeSection` | – |-| `highlights` | `GradeSection` | – |+| `shadows` | `GradeSection` | the grade on the shadows: saturation, contrast, gamma, gain, lift |+| `midtones` | `GradeSection` | the grade on the midtones |+| `highlights` | `GradeSection` | the grade on the highlights || `vignette` | `number \| { intensity?: number; radius?: number; smoothness?: number; color?: string }` | the corners darkened: 0 none, 1 black; or {intensity, radius (0.75), smoothness (5), color} || `aberration` | `number` | a lens's colour fringes at edges, as a fraction of the frame (0.005 subtle, 0.02 strong) || `skip` | `string[]` | composition passes (a part's `pass`) the grade leaves as drawn: no fringes or vignette on them, and on an untonemapped camera (a paint Look's) no colour grading either |@@ -1767,11 +1752,11 @@ One step of detail: tiles nearer than `to` metres draw `keep` of their clumps (0| Field | Type | What it is || --- | --- | --- |-| `to` (required) | `number` | – |-| `keep` (required) | `number` | – |-| `blades` (required) | `number` | – |-| `segments` (required) | `number` | – |-| `widen` (required) | `number` | – |+| `to` (required) | `number` | tiles nearer than this many metres take this step |+| `keep` (required) | `number` | the share of their clumps they draw, 0 to 1 |+| `blades` (required) | `number` | how many of each clump's blades they draw |+| `segments` (required) | `number` | segments each blade is drawn in |+| `widen` (required) | `number` | how many times as wide each blade is drawn, to fill in for the ones left out |### `GrassProps`@@ -1781,7 +1766,7 @@ The props of [`Grass`](#grass), tabled there.| Field | Type | What it is || --- | --- | --- |-| `name` (required) | `string` | – |+| `name` (required) | `string` | the pickable it hit || `distance` (required) | `number` | metres from the camera (from its near plane's point, for an orthographic one) along the ray || `point` (required) | `Vec3` | where the ray first meets it, in world space |@@ -1790,12 +1775,12 @@ The props of [`Grass`](#grass), tabled there.| Field | Type | What it is || --- | --- | --- || `src` (required) | `string` | a picture in the media folder: staticFile("poster.png") |-| `name` | `string` | – |+| `name` | `string` | the entity's name, for picking and the inspector || `width` | `number` | width in scene units (1 by default); height follows the picture unless given |-| `height` | `number` | – |-| `position` | `Vec3` | – |+| `height` | `number` | in scene units (follows the picture's shape by default) |+| `position` | `Vec3` | where its centre stands, metres (x, y, z) || `rotation` | `Vec3` | radians |-| `scale` | `number \| Vec3` | – |+| `scale` | `number \| Vec3` | one number, or x, y and z || `quaternion` | `[number, number, number, number]` | a turn as a quaternion [x, y, z, w], instead of `rotation` (a card turned to face a point) || `shadow` | `boolean` | false: the card casts no shadow (a cursor or a UI floating in the scene); true by default || `cutout` | `boolean` | the picture cut out at half alpha instead of blended: its clear parts are no surface at all (no fog on them, no sorting) and its shadow is the picture's shape, not the card's. For hard-edged pictures: a baked cloud, a sprite |@@ -1809,7 +1794,7 @@ The props of [`Grass`](#grass), tabled there.| `t` (required) | `number` | seconds from the simulation's start || `impulse` | `Vec3` | N·s, world || `at` | `Vec3` | where it's applied (world, metres): off the centre it spins the body too |-| `torque` | `Vec3` | – |+| `torque` | `Vec3` | an angular impulse, N·m·s, world |### `Instance`@@ -1818,9 +1803,9 @@ copy together). Rotation in radians, XYZ order, as everywhere.| Field | Type | What it is || --- | --- | --- |-| `position` (required) | `Vec3` | – |-| `rotation` | `Vec3` | – |-| `scale` | `number \| Vec3` | – |+| `position` (required) | `Vec3` | where this copy stands, metres, in the Instances' space |+| `rotation` | `Vec3` | its rotation, Euler angles in radians (x, y, z) |+| `scale` | `number \| Vec3` | its scale: one number, or x, y and z |### `InstancesProps`@@ -1828,15 +1813,15 @@ copy together). Rotation in radians, XYZ order, as everywhere.| --- | --- | --- || `src` | `string` | a glTF file drawn at every placement: staticFile("models/house.glb"). Without it, a geometry child (or `shape`) and a material child draw a mesh at every placement || `at` (required) | `Instance[]` | where each copy stands. Fixed for the shot: the first frame's list is drawn on every frame (move, turn, scale, hide or recolour the whole set by the Instances' own props) |-| `name` | `string` | – |-| `position` | `Vec3` | – |+| `name` | `string` | the entity's name, for picking, the inspector and world.* |+| `position` | `Vec3` | where it stands, metres (x, y, z) || `rotation` | `Vec3` | radians |-| `scale` | `number \| Vec3` | – |+| `scale` | `number \| Vec3` | its scale: one number, or x, y and z || `scene` | `number` | of a glTF: which of its scenes (0 by default) || `shape` | `string \| Solid` | a Manifold solid or its expression for the mesh form; wins over the geometry child || `shadow` | `boolean` | false: the copies cast no shadow (true by default). Grass and flowers by the thousand usually want false || `receiveShadow` | `boolean` | false: no shadow falls on the copies |-| `pass` | `string` | – |+| `pass` | `string` | the composition pass it draws in ("scene" by default) || `children` | `ReactNode` | the mesh form: a geometry and a material (MeshStandardMaterial, MeshPhysicalMaterial or MeshBasicMaterial). The glTF form: MeshStandardMaterial children re-covering its materials, as on a Model |### `Layout`@@ -1857,7 +1842,7 @@ type Layout = Record<string, Placed> & { readonly found: PlaceFinding[]; readonl| Field | Type | What it is || --- | --- | --- || `k1` | `number` | Brown-Conrady: r' = r (1 + k1 r^2 + k2 r^4), r a share of the half-diagonal. Above 0 barrel, below 0 pincushion |-| `k2` | `number` | – |+| `k2` | `number` | the r^4 term of the distortion || `zoom` | `number` | by default just enough for a barrel's corners to stay inside the picture (1 for pincushion) || `edges` | `"clamp" \| "black"` | what shows where the lens looks past the picture: its edge pixels ("clamp", the default) or "black" || `animate` | `Animate3d` | declared animation of its numbers (strength, fov, k1, k2, zoom) |@@ -1875,14 +1860,14 @@ shadow edge, strokes, saturation and wash; what it leaves out is the Look's.| Field | Type | What it is || --- | --- | --- |-| `rag` | `number` | – |-| `grain` | `number` | – |+| `rag` | `number` | how far its edges wander, px (the Look's by default) |+| `grain` | `number` | its paper grain, 0 to 1 || `palette` | `boolean` | false: its pixels aren't snapped to the palette |-| `bands` | `number` | – |-| `edge` | `number` | – |-| `stroke` | `number` | – |-| `saturate` | `number` | – |-| `wash` | `number` | – |+| `bands` | `number` | how many flat tones the light makes on its surfaces, 1-8 |+| `edge` | `number` | how far its cast shadows' edges tear, 0 to 0.5 |+| `stroke` | `number` | brush strokes on its surfaces, 0 to 1 |+| `saturate` | `number` | its colour past (above 1) or toward grey (below 1) its own |+| `wash` | `number` | its textures' colour taken as their patch average, 0 to 1 |### `LookProps`@@ -1890,8 +1875,8 @@ shadow edge, strokes, saturation and wash; what it leaves out is the Look's.| Field | Type | What it is || --- | --- | --- |-| `t` (required) | `number` | – |-| `position` (required) | `Vec3` | – |+| `t` (required) | `number` | seconds into the clip |+| `position` (required) | `Vec3` | where the camera is, in the solved world (metres) || `quaternion` (required) | `[number, number, number, number]` | camera to world, [x, y, z, w]; the camera looks down its -Z with +Y up || `solved` (required) | `boolean` | false: COLMAP didn't register this frame and its pose was interpolated |@@ -1901,7 +1886,7 @@ shadow edge, strokes, saturation and wash; what it leaves out is the Look's.| --- | --- | --- || `src` (required) | `string` | the footage: staticFile("clip.mp4") || `from` | `number` | where in the clip the shot starts, and how long it runs (seconds; 0 = to the end) |-| `seconds` | `number` | – |+| `seconds` | `number` | how long the shot runs, seconds (0: to the clip's end) || `subject` | `[number, number, number, number]` | the subject to keep in front of the 3D and out of the solve: a box around it on the first frame, [x, y, w, h] in 0..1 of the frame (EdgeTAM tracks it from there) || `height` | `number` | the camera's height over the ground in metres (1.6 by default: handheld) || `fov` | `number` | the vertical field of view in degrees, for a shot without parallax (a tripod, a pan); a solve with structure finds its own |@@ -1919,24 +1904,24 @@ What `raea track` writes and <Matchmove> draws from.| Field | Type | What it is || --- | --- | --- |-| `mode` (required) | `"sfm" \| "rotation" \| "static"` | – |+| `mode` (required) | `"sfm" \| "rotation" \| "static"` | "sfm": a full solve with structure; "rotation": the camera only turns (too little parallax, or too few frames registered); "static": it doesn't move || `width` (required) | `number` | the footage's size in pixels, and its frame rate |-| `height` (required) | `number` | – |-| `fps` (required) | `number` | – |-| `from` (required) | `number` | – |-| `seconds` (required) | `number` | – |-| `frames` (required) | `number` | – |+| `height` (required) | `number` | the footage's height in pixels |+| `fps` (required) | `number` | the footage's frame rate |+| `from` (required) | `number` | where in the clip the solve starts, seconds |+| `seconds` (required) | `number` | how long it runs, seconds |+| `frames` (required) | `number` | how many frames it solved || `fov` (required) | `number` | vertical field of view, degrees; focal length in pixels; the lens's radial distortion |-| `focal` (required) | `number` | – |-| `k1` (required) | `number` | – |-| `registered` (required) | `number` | – |+| `focal` (required) | `number` | the focal length in pixels, at the footage's full size |+| `k1` (required) | `number` | the lens's radial distortion |+| `registered` (required) | `number` | how many frames COLMAP registered; the rest were interpolated || `error` (required) | `number \| null` | mean reprojection error in pixels (null without structure) |-| `camera_height` (required) | `number` | – |-| `cameras` (required) | `MatchmoveCamera[]` | – |+| `camera_height` (required) | `number` | the camera's height over the ground, metres, that set the world's scale |+| `cameras` (required) | `MatchmoveCamera[]` | the camera a frame || `points` (required) | `Vec3[]` | the sparse points, in the solved world |-| `ground` (required) | `{ y: number; normal: Vec3 }` | – |+| `ground` (required) | `{ y: number; normal: Vec3 }` | the ground plane: its height (0) and normal (+Y) || `cut` (required) | `string \| null` | the subject's cut-outs, a path with %04d for the frame (1-based), or null |-| `notes` (required) | `string[]` | – |+| `notes` (required) | `string[]` | what the solver noticed: fallbacks, an assumed field of view, interpolated frames |### `MatchmoveState`@@ -1944,10 +1929,10 @@ Each frame's state under a <Matchmove>, for the 3D inside it.| Field | Type | What it is || --- | --- | --- |-| `solve` (required) | `MatchmoveSolve` | – |+| `solve` (required) | `MatchmoveSolve` | the solve it draws from || `index` (required) | `number` | the solve's frame shown now (0-based), and the clip's time |-| `time` (required) | `number` | – |-| `camera` (required) | `MatchmoveCamera` | – |+| `time` (required) | `number` | the clip's time at this frame, seconds |+| `camera` (required) | `MatchmoveCamera` | the solve's camera for this frame || `project` (required) | `(p: Vec3) => [number, number, number]` | where a point of the solved world lands in the composition, in pixels ([x, y], and its distance in front of the camera; behind it when that's 0 or less) |### `MeshAttribute`@@ -1966,27 +1951,27 @@ The props of [`MeshPass`](#meshpass), tabled there.| Field | Type | What it is || --- | --- | --- |-| `name` | `string` | – |+| `name` | `string` | the entity's name, for picking and the inspector || `src` (required) | `string` | a.rseq (tools/goo writes them; raea_render::meshseq) || `frame` (required) | `number` | which of its frames (clamped) |-| `position` | `Vec3` | – |-| `rotation` | `Vec3` | – |-| `scale` | `number` | – |+| `position` | `Vec3` | where it stands, metres (x, y, z) |+| `rotation` | `Vec3` | its rotation, Euler angles in radians (x, y, z) |+| `scale` | `number` | a uniform scale || `color` | `string` | multiplies the vertex colours |-| `roughness` | `number` | – |-| `metalness` | `number` | – |-| `clearcoat` | `number` | – |-| `clearcoatRoughness` | `number` | – |+| `roughness` | `number` | 0..1, smooth to matte |+| `metalness` | `number` | 0..1, a dielectric to a metal |+| `clearcoat` | `number` | 0..1 strength of a clear varnish layer over the surface |+| `clearcoatRoughness` | `number` | 0..1 roughness of that clear layer || `reflectance` | `number` | 0..1 specular strength at normal incidence (0.5: 4%, a dielectric's) || `subsurface` | `number` | 0..1 light let through (diffuse transmission): a jelly's glow |-| `thickness` | `number` | – |+| `thickness` | `number` | how thick the mesh is, metres, for the light let through || `transmission` | `number` | 0..1 light let straight through and bent (a clear liquid: water, tea, juice), with its index of refraction (1.33 water) and, for a tinted one, the colour it takes after `attenuationDistance` metres through it. Screen space: it refracts what's on screen behind it, and one clear layer doesn't show another through it |-| `ior` | `number` | – |-| `attenuationColor` | `string` | – |-| `attenuationDistance` | `number` | – |-| `opacity` | `number` | – |+| `ior` | `number` | the index of refraction of what light passes through (1.33 water) |+| `attenuationColor` | `string` | the colour light takes after `attenuationDistance` metres through it |+| `attenuationDistance` | `number` | metres through it until light has taken `attenuationColor` |+| `opacity` | `number` | 0..1, see-through to solid || `map` | `string` | a picture over its texture coordinates |-| `doubleSided` | `boolean` | – |+| `doubleSided` | `boolean` | draw the back faces too (an open shell, a petal) |### `MeshShaderPassProps`@@ -2002,8 +1987,8 @@ Bevy: `bevy_render::mesh::allocator::MeshBufferSlice`.| Field | Type | What it is || --- | --- | --- |-| `mesh` (required) | `string` | – |-| `slab` (required) | `"vertices" \| "indices"` | – |+| `mesh` (required) | `string` | the mesh's name |+| `slab` (required) | `"vertices" \| "indices"` | which of its buffers: vertices or indices |### `ModelProps`@@ -2024,7 +2009,7 @@ type ModelScreens = Record<string, ReactElement>| --- | --- | --- || `shutterAngle` | `number` | the fraction of a frame the shutter is open (0.5 by default, a 180-degree shutter); above 1 smears further || `samples` | `number` | samples each way per pixel (4 by default) |-| `animate` | `Animate3d` | – |+| `animate` | `Animate3d` | declared animation of its numbers |### `OutlineProps`@@ -2041,22 +2026,22 @@ type ModelScreens = Record<string, ReactElement>| Field | Type | What it is || --- | --- | --- |-| `file` (required) | `string` | – |-| `centre` (required) | `Vec3` | – |-| `lo` (required) | `Vec3` | – |-| `hi` (required) | `Vec3` | – |-| `tris` (required) | `number` | – |+| `file` (required) | `string` | the part's own.glb in the asset store |+| `centre` (required) | `Vec3` | the middle of its bounds, metres, where it stands in the source file |+| `lo` (required) | `Vec3` | its bounds' low corner |+| `hi` (required) | `Vec3` | its bounds' high corner |+| `tris` (required) | `number` | how many triangles it has |### `PartMaterial`| Field | Type | What it is || --- | --- | --- || `missing` | `boolean` | the magenta-and-black checker of a texture that didn't load |-| `color` | `string` | – |-| `emissive` | `string` | – |-| `opacity` | `number` | – |-| `roughness` | `number` | – |-| `unlit` | `boolean` | – |+| `color` | `string` | a colour over its own |+| `emissive` | `string` | the colour it glows with |+| `opacity` | `number` | 0..1, see-through to solid |+| `roughness` | `number` | 0..1, smooth to matte |+| `unlit` | `boolean` | drawn in its flat colour, without light or shade |### `PartProps`@@ -2068,9 +2053,9 @@ A vertex attribute: Bevy's VertexFormat by name, its byte offset in a vertex and| Field | Type | What it is || --- | --- | --- |-| `format` (required) | `"Float32" \| "Float32x2" \| "Float32x3" \| "Float32x4" \| "Uint32" \| "Uint32x2" \| "Uint32x3…` | – |-| `offset` (required) | `number` | – |-| `location` (required) | `number` | – |+| `format` (required) | `"Float32" \| "Float32x2" \| "Float32x3" \| "Float32x4" \| "Uint32" \| "Uint32x2" \| "Uint32x3…` | the attribute's VertexFormat, by name |+| `offset` (required) | `number` | its byte offset in a vertex |+| `location` (required) | `number` | its shader |### `PhaseItemProps`@@ -2094,11 +2079,11 @@ The camera as a scene sets it: a PerspectiveCamera's props (fov in degrees, vert| Field | Type | What it is || --- | --- | --- |-| `position` | `Vec3` | – |-| `lookAt` | `Vec3` | – |+| `position` | `Vec3` | where it stands, metres (x, y, z) |+| `lookAt` | `Vec3` | the point it faces || `fov` | `number` | vertical field of view in degrees (50 by default); ignored when `height` is set || `height` | `number` | an orthographic camera's view height in metres |-| `up` | `Vec3` | – |+| `up` | `Vec3` | which way is up for it (+Y) |### `Place2dProps`@@ -2107,57 +2092,57 @@ pointer and drag handlers, called as a 3D part's are (2D parts are picked first,| Field | Type | What it is || --- | --- | --- |-| `name` | `string` | – |-| `x` | `number` | – |-| `y` | `number` | – |+| `name` | `string` | the entity's name, for picking, the inspector and world.* |+| `x` | `number` | px from the frame's left edge to the part's centre |+| `y` | `number` | px from the frame's top edge to the part's centre, down positive || `rotation` | `number` | radians, clockwise (as CSS rotate) || `quat` | `Quat` | Bevy's rotation as it is, a quaternion [x, y, z, w] in Bevy's axes (y up, z toward the viewer), in place of `rotation`: a turn out of the frame's plane too, as a Sprite's Transform takes it (camera/2d_on_ui) || `scale` | `number \| [number, number]` | 1 by default; [x, y] to stretch || `z` | `number` | draw order among the 2D parts: higher draws over lower (0 by default) || `opacity` | `number` | 0 to 1 (1 by default) |-| `onClick` | `(e: Event3d) => void` | – |-| `onPointerDown` | `(e: Event3d) => void` | – |-| `onPointerUp` | `(e: Event3d) => void` | – |-| `onPointerOver` | `(e: Event3d) => void` | – |-| `onPointerOut` | `(e: Event3d) => void` | – |-| `onPointerEnter` | `(e: Event3d) => void` | – |-| `onPointerLeave` | `(e: Event3d) => void` | – |-| `onPointerMove` | `(e: Event3d) => void` | – |-| `onWheel` | `(e: Event3d) => void` | – |-| `onDragStart` | `(e: Event3d) => void` | – |-| `onDrag` | `(e: Event3d) => void` | – |-| `onDragEnd` | `(e: Event3d) => void` | – |-| `onDragEnter` | `(e: Event3d) => void` | – |-| `onDragOver` | `(e: Event3d) => void` | – |-| `onDragLeave` | `(e: Event3d) => void` | – |-| `onDrop` | `(e: Event3d) => void` | – |+| `onClick` | `(e: Event3d) => void` | a press and release over the part |+| `onPointerDown` | `(e: Event3d) => void` | a button pressed over the part |+| `onPointerUp` | `(e: Event3d) => void` | a button released over the part |+| `onPointerOver` | `(e: Event3d) => void` | the pointer came over the part (bubbles, as the DOM's) |+| `onPointerOut` | `(e: Event3d) => void` | the pointer left the part (bubbles) |+| `onPointerEnter` | `(e: Event3d) => void` | the pointer came over the part (doesn't bubble) |+| `onPointerLeave` | `(e: Event3d) => void` | the pointer left the part (doesn't bubble) |+| `onPointerMove` | `(e: Event3d) => void` | the pointer moved over the part |+| `onWheel` | `(e: Event3d) => void` | the wheel turned over the part (`deltaX`, `deltaY`) |+| `onDragStart` | `(e: Event3d) => void` | a drag began on the part pressed |+| `onDrag` | `(e: Event3d) => void` | the part pressed is being dragged, each frame it moves |+| `onDragEnd` | `(e: Event3d) => void` | the drag of the part pressed ended |+| `onDragEnter` | `(e: Event3d) => void` | a dragged part came over this one (`dragged` names it) |+| `onDragOver` | `(e: Event3d) => void` | a dragged part is over this one |+| `onDragLeave` | `(e: Event3d) => void` | a dragged part left this one |+| `onDrop` | `(e: Event3d) => void` | a dragged part was dropped on this one |### `Placed`| Field | Type | What it is || --- | --- | --- |-| `base` (required) | `V3` | – |-| `center` (required) | `V3` | – |-| `yaw` (required) | `number` | – |-| `size` (required) | `V3` | – |+| `base` (required) | `V3` | the centre of its bottom face |+| `center` (required) | `V3` | its middle, where a centred Cuboid goes |+| `yaw` (required) | `number` | its turn about y, radians (its front is +z before the turn) |+| `size` (required) | `V3` | its width, height and depth, metres |### `PlaceFinding`| Field | Type | What it is || --- | --- | --- |-| `part` (required) | `string` | – |-| `check` (required) | `string` | – |-| `level` (required) | `string` | – |-| `says` (required) | `string` | – |+| `part` (required) | `string` | the object it's about |+| `check` (required) | `string` | the rule that couldn't hold |+| `level` (required) | `string` | "ok", or how bad it is ("error" when the rule broke) |+| `says` (required) | `string` | what's wrong, in words |### `PlaceObject`| Field | Type | What it is || --- | --- | --- |-| `size` (required) | `V3` | – |+| `size` (required) | `V3` | its width, height and depth, metres || `at` | `V3` | a start (or, with fixed, the place) for its bottom centre || `yaw` | `number` | degrees |-| `fixed` | `boolean` | – |+| `fixed` | `boolean` | it stays at `at`: the rules move the others round it |### `PlaceRule`@@ -2171,8 +2156,8 @@ A box on the plan (x, z, metres): the room SDK's Footprint, or any { min, max }.| Field | Type | What it is || --- | --- | --- |-| `min` (required) | `[number, number]` | – |-| `max` (required) | `[number, number]` | – |+| `min` (required) | `[number, number]` | the low corner (x, z), metres |+| `max` (required) | `[number, number]` | the high corner (x, z), metres |### `Plane3dProps`@@ -2182,15 +2167,15 @@ its two axes ([0.5, 0.5]), laid out as Bevy's PlaneMeshBuilder does: facing +Z i| Field | Type | What it is || --- | --- | --- |-| `normal` | `Vec3` | – |-| `half_size` | `[number, number]` | – |+| `normal` | `Vec3` | the way it faces, along an axis (+Y by default, a floor) |+| `half_size` | `[number, number]` | half its extent along its two axes, metres ([0.5, 0.5]) |### `PlateProps`| Field | Type | What it is || --- | --- | --- || `src` (required) | `string` | a video in the media folder: staticFile("clip.mp4") |-| `name` | `string` | – |+| `name` | `string` | the entity's name, for picking, the inspector and world.* || `time` | `number` | the clip's time on this frame, in seconds (by default the Sequence's: frame / fps) || `k1` | `number` | the lens's radial distortion (SIMPLE_RADIAL's k1, from a solve): the plate is drawn undistorted, so the footage's straight lines are straight where the 3D's are |@@ -2208,35 +2193,35 @@ type Polygons = [number, number][][]| --- | --- | --- || `name` | `string` | what it's called across frames, and its glyphs' names over world.* (`${name}:${index}`) || `pass` | `string` | the composition pass it draws in ("scene" by default): a frame-wide effect told to skip a pass (<Look skip>, <Outline skip>, <Bloom skip>, <Grade skip>) leaves its pixels as drawn, and <Look passes> gives one its own paint; a piece names at most three passes besides "scene"; keyed per frame |-| `position` | `Vec3` | – |-| `rotation` | `Vec3` | – |-| `scale` | `number \| Vec3` | – |+| `position` | `Vec3` | where the block's origin is, metres (x, y, z) |+| `rotation` | `Vec3` | the block's rotation, radians (x, y, z) |+| `scale` | `number \| Vec3` | the block's scale: one number, or x, y and z || `size` | `number` | the em in metres (0.5 by default) |-| `font` | `string` | – |-| `weight` | `number` | – |-| `italic` | `boolean` | – |+| `font` | `string` | a family (raea's bundled faces: Inter by default, Montserrat, Oswald, Playfair Display...; or one on this machine) |+| `weight` | `number` | 100..900 (700 by default) |+| `italic` | `boolean` | slanted (false by default) || `color` | `string` | each glyph's colour unless its <Span> gives one || `align` | `"left" \| "center" \| "right"` | where the origin is: the left edge, the middle (default) or the right edge of the lines; the block's middle vertically || `lineHeight` | `number` | times the em (1.2 by default) || `maxWidth` | `number` | wrapped at this width in metres (no wrapping by default) |-| `roughness` | `number` | – |-| `metalness` | `number` | – |-| `emissive` | `string` | – |-| `emissiveIntensity` | `number` | – |-| `unlit` | `boolean` | – |+| `roughness` | `number` | 0..1, smooth to matte |+| `metalness` | `number` | 0..1, a dielectric to a metal |+| `emissive` | `string` | the colour it glows with |+| `emissiveIntensity` | `number` | how strongly it glows (1 by default; 2-10 with bloom) |+| `unlit` | `boolean` | drawn in its flat colour, without light or shade || `castShadow` | `boolean` | letter-shaped shadows (true by default) |-| `receiveShadow` | `boolean` | – |-| `layers` | `number[]` | – |+| `receiveShadow` | `boolean` | other things' shadows fall on it |+| `layers` | `number[]` | the render layers it's on ([0] by default): a camera draws only the layers it's given || `enter` | `MoveLike` | each glyph's (or word's) entrance: a move's name, a move or several (rise, pop, slam, slide, fade... the 2D ones, their px read at 100 an em, their degrees as degrees), `each` frames apart from `at` || `each` | `number` | frames between one glyph's (or word's) entrance and the next (2 by default) || `by` | `"letter" \| "word"` | the entrance and exit staggered by letter (default) or by word |-| `at` | `number` | – |-| `exit` | `MoveLike` | – |-| `exitAt` | `number` | – |+| `at` | `number` | the local frame the first entrance starts (0) |+| `exit` | `MoveLike` | each glyph's (or word's) exit: a move or its name, played backwards from `exitAt` |+| `exitAt` | `number` | the local frame the first exit starts; an exit needs it || `exitEach` | `number` | frames between exits (0: together) || `reveal` | `number` | how many glyphs are shown, a typewriter's count: the next one fades in over its fraction || `glyph` | `(g: GlyphInfo) => GlyphStyle` | each glyph's own motion this frame, from anything the frame gives (useCurrentFrame, spring, interpolate) |-| `children` | `ReactNode` | – |+| `children` | `ReactNode` | the text: strings and <Span> runs |### `SamplerSpec`@@ -2301,9 +2286,9 @@ A cross-section of a solid at a height: its area, how many contours, and the con| Field | Type | What it is || --- | --- | --- |-| `area` (required) | `number` | – |-| `contours` (required) | `number` | – |-| `polygons` (required) | `[number, number][][]` | – |+| `area` (required) | `number` | the section's area, m² |+| `contours` (required) | `number` | how many outlines it has |+| `polygons` (required) | `[number, number][][]` | the outlines, each a list of [x, y] points in the section's plane |### `ShaderInstancesProps`@@ -2319,12 +2304,12 @@ The props of [`ShaderInstances`](#shaderinstances), tabled there.| `uniforms` | `Record<string, number \| number[] \| string>` | up to 16: a number (f32), [x, y], [x, y, z], [x, y, z, w] or "#rrggbb" (a linear vec4) || `textures` | `Record<string, string \| Record<string, unknown>>` | up to 4: an asset path, a picture made in code ({ width, height, pixels }) or "render:NAME"; and one array, { layers: [picture,...] } or { src, layers: N }, read as texture_2d_array<f32> tex_NAME by layer || `defs` | `ShaderDefs` | shader defs: each NAME a WESL condition for `@if(NAME)`, and a whole number also `constants::NAME` |-| `alpha` | `"opaque" \| "blend" \| "add" \| "premultiplied"` | – |-| `doubleSided` | `boolean` | – |-| `name` | `string` | – |-| `position` | `Vec3` | – |-| `rotation` | `Vec3` | – |-| `scale` | `Vec3 \| number` | – |+| `alpha` | `"opaque" \| "blend" \| "add" \| "premultiplied"` | how it blends: opaque, blend, add or premultiplied |+| `doubleSided` | `boolean` | draw the back faces too |+| `name` | `string` | the entity's name, for picking, the inspector and world.* |+| `position` | `Vec3` | where it stands, metres (x, y, z) |+| `rotation` | `Vec3` | its rotation, Euler angles in radians (x, y, z) |+| `scale` | `Vec3 \| number` | its scale: one number, or x, y and z |### `ShadowsProps`@@ -2351,7 +2336,7 @@ type Shape = "hull" | "box" | "mesh" | { box: Vec3 } | { sphere: number } | { ca| --- | --- | --- || `shape` | `"rect" \| "circle" \| "ellipse" \| "triangle" \| "polygon"` | a rect by default; a polygon has `sides` (5 by default) || `size` | `[number, number]` | [width, height] in px ([100, 100] by default); a circle's and a polygon's diameter is the width |-| `sides` | `number` | – |+| `sides` | `number` | a polygon's number of sides (5) || `color` | `string` | a CSS colour (white by default); with a texture, it tints it || `srgb` | `[number, number, number]` | the colour as a Bevy Srgba's [r, g, b], unrounded, over `color` (a Mesh2d's ColorMaterial gives it) || `texture` | `string \| { path: string; sampler: SamplerSpec }` | a picture on it, mapped by the mesh's UVs (Bevy's ColorMaterial texture), or one with its own sampler (Bevy's load_with_settings: { path, sampler: { wrap: "repeat" } }) |@@ -2360,30 +2345,30 @@ type Shape = "hull" | "box" | "mesh" | { box: Vec3 } | { sphere: number } | { ca| `vertex_colors` | `[number, number, number, number][]` | one linear [r, g, b, a] per vertex of the shape's mesh (Bevy's Mesh::ATTRIBUTE_COLOR): the material's colour and texture are multiplied by them. A rect has 4 (top right, top left, bottom left, bottom right), a triangle 3. || `shader` | `Record<string, unknown>` | its own Material2d in place of the ColorMaterial: the spec a <Material> in a Mesh2d makes; the shape's colour, texture and alpha_mode are then the material's to draw || `primitive` | `Record<string, unknown>` | one of Bevy's 2D primitives in place of `shape`, its reflected fields over Bevy's default: { primitive: "Capsule2d", radius: 25, half_length: 25 }; a 2D shape given `inner` (the same shape's fields) is Bevy's Ring, or given `ring: thickness` its to_ring (raea-sys-mesh primitive_mesh). A Mesh2d's primitive child makes it. |-| `name` | `string` | – |-| `x` | `number` | – |-| `y` | `number` | – |+| `name` | `string` | the entity's name, for picking, the inspector and world.* |+| `x` | `number` | px from the frame's left edge to the part's centre |+| `y` | `number` | px from the frame's top edge to the part's centre, down positive || `rotation` | `number` | radians, clockwise (as CSS rotate) || `quat` | `Quat` | Bevy's rotation as it is, a quaternion [x, y, z, w] in Bevy's axes (y up, z toward the viewer), in place of `rotation`: a turn out of the frame's plane too, as a Sprite's Transform takes it (camera/2d_on_ui) || `scale` | `number \| [number, number]` | 1 by default; [x, y] to stretch || `z` | `number` | draw order among the 2D parts: higher draws over lower (0 by default) || `opacity` | `number` | 0 to 1 (1 by default) |-| `onClick` | `(e: Event3d) => void` | – |-| `onPointerDown` | `(e: Event3d) => void` | – |-| `onPointerUp` | `(e: Event3d) => void` | – |-| `onPointerOver` | `(e: Event3d) => void` | – |-| `onPointerOut` | `(e: Event3d) => void` | – |-| `onPointerEnter` | `(e: Event3d) => void` | – |-| `onPointerLeave` | `(e: Event3d) => void` | – |-| `onPointerMove` | `(e: Event3d) => void` | – |-| `onWheel` | `(e: Event3d) => void` | – |-| `onDragStart` | `(e: Event3d) => void` | – |-| `onDrag` | `(e: Event3d) => void` | – |-| `onDragEnd` | `(e: Event3d) => void` | – |-| `onDragEnter` | `(e: Event3d) => void` | – |-| `onDragOver` | `(e: Event3d) => void` | – |-| `onDragLeave` | `(e: Event3d) => void` | – |-| `onDrop` | `(e: Event3d) => void` | – |+| `onClick` | `(e: Event3d) => void` | a press and release over the part |+| `onPointerDown` | `(e: Event3d) => void` | a button pressed over the part |+| `onPointerUp` | `(e: Event3d) => void` | a button released over the part |+| `onPointerOver` | `(e: Event3d) => void` | the pointer came over the part (bubbles, as the DOM's) |+| `onPointerOut` | `(e: Event3d) => void` | the pointer left the part (bubbles) |+| `onPointerEnter` | `(e: Event3d) => void` | the pointer came over the part (doesn't bubble) |+| `onPointerLeave` | `(e: Event3d) => void` | the pointer left the part (doesn't bubble) |+| `onPointerMove` | `(e: Event3d) => void` | the pointer moved over the part |+| `onWheel` | `(e: Event3d) => void` | the wheel turned over the part (`deltaX`, `deltaY`) |+| `onDragStart` | `(e: Event3d) => void` | a drag began on the part pressed |+| `onDrag` | `(e: Event3d) => void` | the part pressed is being dragged, each frame it moves |+| `onDragEnd` | `(e: Event3d) => void` | the drag of the part pressed ended |+| `onDragEnter` | `(e: Event3d) => void` | a dragged part came over this one (`dragged` names it) |+| `onDragOver` | `(e: Event3d) => void` | a dragged part is over this one |+| `onDragLeave` | `(e: Event3d) => void` | a dragged part left this one |+| `onDrop` | `(e: Event3d) => void` | a dragged part was dropped on this one |### `SkyboxProps`@@ -2397,12 +2382,12 @@ type Shape = "hull" | "box" | "mesh" | { box: Vec3 } | { sphere: number } | { ca| Field | Type | What it is || --- | --- | --- |-| `children` | `ReactNode` | – |+| `children` | `ReactNode` | the run's text || `font` | `string` | a family (raea's bundled faces: Inter, Montserrat, Oswald, Playfair Display...; or one on this machine) |-| `weight` | `number` | – |-| `italic` | `boolean` | – |+| `weight` | `number` | 100..900 (the block's by default) |+| `italic` | `boolean` | slanted (the block's by default) || `size` | `number` | times the block's size |-| `color` | `string` | – |+| `color` | `string` | the run's colour (the block's by default) |### `SphereProps`@@ -2411,10 +2396,10 @@ subdivisions, or `ico` of them (Bevy's `.ico(n)`, 0 to 80), or a UV sphere of `u| Field | Type | What it is || --- | --- | --- |-| `args` | `[number]` | – |-| `radius` | `number` | – |-| `ico` | `number` | – |-| `uv` | `[number, number]` | – |+| `args` | `[number]` | [radius], as three.js's args |+| `radius` | `number` | metres (0.5) |+| `ico` | `number` | an icosphere of this many subdivisions (5 by default; 0 to 80) |+| `uv` | `[number, number]` | a UV sphere instead: [sectors, stacks] |### `SplatMorph`@@ -2430,18 +2415,18 @@ subdivisions, or `ico` of them (Bevy's `.ico(n)`, 0 to 80), or a UV sphere of `u| --- | --- | --- || `name` | `string` | parts are matched by name across frames: name a splat that comes and goes || `src` (required) | `string` | the splat file (staticFile("x.ply")): a 3DGS.ply (spherical harmonics up to degree 3), a.splat or a.spz. A `x.ply.json` beside it (raea splat train writes one) places it: +Y up, centred, metres |-| `position` | `Vec3` | – |+| `position` | `Vec3` | where it stands, metres (x, y, z) || `rotation` | `Vec3` | radians, Euler XYZ |-| `scale` | `number \| Vec3` | – |+| `scale` | `number \| Vec3` | its scale: one number, or x, y and z || `splatScale` | `number` | every gaussian's size times this (1 by default): below 1 the scene breaks into points |-| `opacity` | `number` | – |+| `opacity` | `number` | 0..1, multiplying every gaussian's || `brightness` | `number` | grade: colour times brightness, saturation and contrast about mid grey, times tint |-| `saturation` | `number` | – |-| `contrast` | `number` | – |-| `tint` | `string` | – |+| `saturation` | `number` | 1 as trained; 0 grey, above 1 richer |+| `contrast` | `number` | 1 as trained; about mid grey |+| `tint` | `string` | a colour every gaussian's is multiplied by || `reveal` | `number` | reveal 0..1: each splat scales in as a front passes it, from `revealFrom` (a point; the centre by default) outward, or along `revealAxis` (a plane sweeping through) when that's given |-| `revealFrom` | `Vec3` | – |-| `revealAxis` | `Vec3` | – |+| `revealFrom` | `Vec3` | the point the reveal grows outward from (the centre by default) |+| `revealAxis` | `Vec3` | a direction: the reveal sweeps a plane along it instead of growing from a point || `revealSoft` | `number` | how wide the front is, as a share of the sweep (0.15) || `revealGlow` | `number` | the front's glow (0 none, 1 bright), in `glowColor` || `glowColor` | `string` | the colour of reveal and pulse glows (warm white) |@@ -2451,12 +2436,12 @@ subdivisions, or `ico` of them (Bevy's `.ico(n)`, 0 to 80), or a UV sphere of `u| `curl` | `number` | how much the wind curls (1) || `spread` | `number` | the dust cloud's radius in metres (the splat's own size, before scale; 1.6 times its size by default) || `explode` | `number` | explode 0..1: thrown out from the centre, falling and fading |-| `wave` | `SplatWave` | – |+| `wave` | `SplatWave` | a ripple running out through the splats: amplitude, wavelength and phase || `twist` | `number` | radians a metre about the vertical through the centre |-| `morph` | `SplatMorph` | – |+| `morph` | `SplatMorph` | becomes another splat file: `to` and `amount` 0..1 || `pulse` | `number` | a value the composition passes (a beat's envelope 0..1): bigger by pulseScale, brighter by pulseGlow |-| `pulseScale` | `number` | – |-| `pulseGlow` | `number` | – |+| `pulseScale` | `number` | how much bigger a full pulse makes it |+| `pulseGlow` | `number` | how much brighter a full pulse makes it || `crop` | `number` | nothing past this many metres from the centre (trims a trained scene's floaters) || `bands` | `number` | the light in this many flat bands (0 none); a paint or cartoon <Look> sets it || `paint` | `number` | 0..1: the splats themselves painted (flat bands, grown into strokes with hard edges), for a painted shot in a timeline whose frame <Look> isn't paint |@@ -2476,43 +2461,43 @@ subdivisions, or `ico` of them (Bevy's `.ico(n)`, 0 to 80), or a UV sphere of `u| --- | --- | --- || `src` (required) | `string` | a picture in the media folder: staticFile("hero.png"), or a "render:NAME" image a camera or a <Compute> draws (a frame may switch it to another by name) || `width` | `number` | size in px (the picture's, or one cell's, by default); one given, the other follows the picture's shape |-| `height` | `number` | – |+| `height` | `number` | in px; given alone, the width follows the picture's shape || `grid` | `[number, number]` | a sprite sheet: the picture is `[columns, rows]` cells of equal size, read left to right, top to bottom || `atlasPick` | `number` | one picture of a built atlas (TextureAtlasBuilder's sources.handle gives it with its src): its index in the atlas's list || `frame` | `number` | with `grid`: which cell shows (0 is the top left); animate it to play the sheet: frame={Math.floor(f / 3)} |-| `flipX` | `boolean` | – |-| `flipY` | `boolean` | – |+| `flipX` | `boolean` | mirrored left to right |+| `flipY` | `boolean` | mirrored top to bottom || `color` | `string` | a tint multiplied over the picture (white by default) || `tileX` | `boolean` | Bevy's SpriteImageMode::Tiled: the picture repeats across the sprite's width (tileX) or height (tileY) instead of stretching to it, a tile every `tileStretch` x the picture's size (1 by default): a floor, a fence, a wall. Animate width and height to show more or fewer tiles |-| `tileY` | `boolean` | – |-| `tileStretch` | `number` | – |+| `tileY` | `boolean` | tile the picture down its height instead of stretching it |+| `tileStretch` | `number` | a tile every this many times the picture's size (1) || `image_mode` | `SpriteImageMode` | Bevy's SpriteImageMode, as its reflected value: "Auto" (stretched to the size), { Scale: "FillCenter" } (and FillStart, FillEnd, FitCenter, FitStart, FitEnd: the picture kept to its shape, cropped or fitted), { Sliced: TextureSlicer } (nine-slice: border a number of px or { min_inset: [x, y], max_inset: [x, y] }; center_scale_mode and sides_scale_mode "Stretch" or { Tile: { stretch_value } }; max_corner_scale) or { Tiled: { tile_x, tile_y, stretch_value } }. Not with tileX or tileY || `sampler` | `SamplerSpec` | the picture's sampler (Bevy's load_with_settings: { filter, mipmap, wrap, anisotropy }), Bevy's default (linear) otherwise; { filter: "nearest" } is pixel art as Bevy's ImagePlugin::default_nearest() draws it || `children` | `ReactNode` | your own <Material> as its child: Bevy's SpriteMaterial, extending the sprite's own material (the shader reads the sprite's picture, tint and alpha with bevy_sprite_render::sprite_mesh::functions), its uniforms per frame |-| `name` | `string` | – |-| `x` | `number` | – |-| `y` | `number` | – |+| `name` | `string` | the entity's name, for picking, the inspector and world.* |+| `x` | `number` | px from the frame's left edge to the part's centre |+| `y` | `number` | px from the frame's top edge to the part's centre, down positive || `rotation` | `number` | radians, clockwise (as CSS rotate) || `quat` | `Quat` | Bevy's rotation as it is, a quaternion [x, y, z, w] in Bevy's axes (y up, z toward the viewer), in place of `rotation`: a turn out of the frame's plane too, as a Sprite's Transform takes it (camera/2d_on_ui) || `scale` | `number \| [number, number]` | 1 by default; [x, y] to stretch || `z` | `number` | draw order among the 2D parts: higher draws over lower (0 by default) || `opacity` | `number` | 0 to 1 (1 by default) |-| `onClick` | `(e: Event3d) => void` | – |-| `onPointerDown` | `(e: Event3d) => void` | – |-| `onPointerUp` | `(e: Event3d) => void` | – |-| `onPointerOver` | `(e: Event3d) => void` | – |-| `onPointerOut` | `(e: Event3d) => void` | – |-| `onPointerEnter` | `(e: Event3d) => void` | – |-| `onPointerLeave` | `(e: Event3d) => void` | – |-| `onPointerMove` | `(e: Event3d) => void` | – |-| `onWheel` | `(e: Event3d) => void` | – |-| `onDragStart` | `(e: Event3d) => void` | – |-| `onDrag` | `(e: Event3d) => void` | – |-| `onDragEnd` | `(e: Event3d) => void` | – |-| `onDragEnter` | `(e: Event3d) => void` | – |-| `onDragOver` | `(e: Event3d) => void` | – |-| `onDragLeave` | `(e: Event3d) => void` | – |-| `onDrop` | `(e: Event3d) => void` | – |+| `onClick` | `(e: Event3d) => void` | a press and release over the part |+| `onPointerDown` | `(e: Event3d) => void` | a button pressed over the part |+| `onPointerUp` | `(e: Event3d) => void` | a button released over the part |+| `onPointerOver` | `(e: Event3d) => void` | the pointer came over the part (bubbles, as the DOM's) |+| `onPointerOut` | `(e: Event3d) => void` | the pointer left the part (bubbles) |+| `onPointerEnter` | `(e: Event3d) => void` | the pointer came over the part (doesn't bubble) |+| `onPointerLeave` | `(e: Event3d) => void` | the pointer left the part (doesn't bubble) |+| `onPointerMove` | `(e: Event3d) => void` | the pointer moved over the part |+| `onWheel` | `(e: Event3d) => void` | the wheel turned over the part (`deltaX`, `deltaY`) |+| `onDragStart` | `(e: Event3d) => void` | a drag began on the part pressed |+| `onDrag` | `(e: Event3d) => void` | the part pressed is being dragged, each frame it moves |+| `onDragEnd` | `(e: Event3d) => void` | the drag of the part pressed ended |+| `onDragEnter` | `(e: Event3d) => void` | a dragged part came over this one (`dragged` names it) |+| `onDragOver` | `(e: Event3d) => void` | a dragged part is over this one |+| `onDragLeave` | `(e: Event3d) => void` | a dragged part left this one |+| `onDrop` | `(e: Event3d) => void` | a dragged part was dropped on this one |### `SurfaceDrawProps`@@ -2536,18 +2521,18 @@ from the first frame.| `textures` | `Record<string, ShaderTexture \| ShaderTexture[]>` | up to 4: an asset path, a picture made in code ({ width, height, pixels }) or "render:NAME"; with a sampler, { src, sampler } (or a picture with its `sampler`). One more may be an array, read as texture_2d_array<f32> by layer: { layers: [picture,...] } (one size and format) or { src, layers: N } (N layers stacked top to bottom). A <Material>'s may also bind one binding_array<texture_2d<f32>>, a list of 1 to 16 pictures (Bevy's texture_binding_array; a GPU without texture binding arrays refuses it) || `defs` | `ShaderDefs` | shader defs: each NAME a WESL condition for `@if(NAME)` (a number is true), and a whole number also `constants::NAME`; each set of defs compiles its own pipeline || `own` | `OwnMaterialFields` | a <Material>'s own: what its Material methods give, and its storage buffers; set by <Material> only |-| `buffers` | `Record<string, StorageValue>` | – |+| `buffers` | `Record<string, StorageValue>` | the material's storage buffers by binding name; set by <Material> only |### `Text3DProps`| Field | Type | What it is || --- | --- | --- || `children` | `string` | the words, extruded |-| `text` | `string` | – |+| `text` | `string` | the words, when they aren't its child (no quotes or backslashes) || `size` | `number` | letter height in scene units (default 0.5) || `depth` | `number` | extrusion depth (default 0.2) |-| `font` | `string` | – |-| `weight` | `number` | – |+| `font` | `string` | a family (Inter by default, or another of raea's bundled faces) |+| `weight` | `number` | 100..900 (800 by default) |### `ThreeShaderMaterialProps`@@ -2558,12 +2543,12 @@ from the first frame.| `uniforms` | `Record<string, ThreeUniform>` | each uniform's value this frame || `textures` | `Record<string, string \| { src: string; colorSpace?: "srgb" \| "linear"; sampler?: Record…` | each sampler's picture: a file, a data URL, "render:NAME" (at most four); `colorSpace: "linear"` for one three samples raw (NoColorSpace: a distance field, a data map), "srgb" (the default) for a colour picture || `output` | `"display" \| "linear"` | "display": its colour is what three's canvas shows (a ShaderMaterial's); "linear": scene light, tone-mapped as the rest of the frame is (a node material's) |-| `transparent` | `boolean` | – |-| `blending` | `"normal" \| "additive" \| "add" \| "multiply" \| "none"` | – |-| `side` | `"front" \| "back" \| "double"` | – |-| `depthWrite` | `boolean` | – |-| `depthTest` | `boolean` | – |-| `alphaTest` | `number` | – |+| `transparent` | `boolean` | blended over what's behind it, as three's \`transparent\` |+| `blending` | `"normal" \| "additive" \| "add" \| "multiply" \| "none"` | how it blends: normal, additive (add), multiply or none |+| `side` | `"front" \| "back" \| "double"` | which faces draw: front, back or double |+| `depthWrite` | `boolean` | it writes the depth buffer |+| `depthTest` | `boolean` | it's hidden behind what's nearer |+| `alphaTest` | `number` | pixels less opaque than this are dropped || `time` | `[number, number, number]` | three's clock this frame: [seconds, delta, frame] || `color` | `string` | the colour it's drawn in where its shader can't run (named in the render's warnings) |@@ -2619,9 +2604,9 @@ type ThreeUniform = number | boolean | number[]| Field | Type | What it is || --- | --- | --- |-| `args` | `[number, number]` | – |-| `major_radius` | `number` | – |-| `minor_radius` | `number` | – |+| `args` | `[number, number]` | [major radius, minor radius] |+| `major_radius` | `number` | from the centre to the middle of the tube, metres (0.75) |+| `minor_radius` | `number` | the tube's radius, metres (0.25) |### `TreeOptions`@@ -2630,7 +2615,7 @@ type ThreeUniform = number | boolean | number[]| `height` | `number` | metres (6) || `trunk` | `number` | the clear trunk below the crown, a share of the height (0.35) || `width` | `number` | the crown's width over its height (0.9) |-| `crown` | `"dome" \| "sphere" \| "cone" \| "column" \| "umbrella" \| "vase"` | – |+| `crown` | `"dome" \| "sphere" \| "cone" \| "column" \| "umbrella" \| "vase"` | the crown's shape: dome (an oak), sphere, cone (a pine), column (a cypress), umbrella or vase || `points` | `number` | attraction points: more is a denser, twiggier crown (1200) || `step` | `number` | a growth step, a share of the height (0.03) || `base` | `number` | the trunk's radius at the ground (a fortieth of the height) |@@ -2638,8 +2623,8 @@ type ThreeUniform = number | boolean | number[]| `tropism` | `number` | branches turn up (+) or droop (-) as they grow (0.15) || `leaves` | `number` | leaves per outer twig node (3; 0 is bare) || `leaf` | `number` | a leaf's length (0.09) |-| `sides` | `number` | – |-| `seed` | `number` | – |+| `sides` | `number` | sides of each branch's tube (7; 3 to 24) |+| `seed` | `number` | which randomness it uses: the same seed gives the same result |### `Vec3`@@ -2666,15 +2651,15 @@ type VertexFormat = "Float32" | "Float32x2" | "Float32x3" | "Float32x4" | "Uint3| `colors` | `[string, string, string]` | its tones under a paint look: [lit, mid, dark] || `threshold` | `number` | the density its painted surface sits at (0.12): lower is fatter, higher thinner || `erode` | `number` | how much noise tears the painted surface's edge (0.08), and the tears' size in metres (0.6) |-| `erodeSize` | `number` | – |+| `erodeSize` | `number` | the tears' size in metres (0.6) || `absorb` | `number` | how much light a unit of it stops (its shadow on itself; 1.2) || `wind` | `Vec3` | the wind, m/s ([0, 0, 0]); how fast the volume takes it up, a second (1.2 smoke, 0.6 otherwise); the height it's full from, metres, weaker below (0: full everywhere) |-| `windPull` | `number` | – |-| `windHeight` | `number` | – |+| `windPull` | `number` | how fast the volume takes up the wind, a second (1.2 smoke, 0.6 otherwise) |+| `windHeight` | `number` | the height the wind is full from, metres; weaker below (0: full everywhere) || `drag` | `number` | velocity the still air takes away a second (0.4) || `vorticity` | `number` | curl kept curling (6); a drifting turbulent force, m/s² (0), and its size in metres (2) |-| `turbulence` | `number` | – |-| `turbulenceSize` | `number` | – |+| `turbulence` | `number` | a drifting turbulent force, m/s² (0) |+| `turbulenceSize` | `number` | the turbulence's size in metres (2) || `steps` | `number` | samples along each ray (96) || `shadow` | `boolean \| number` | its shadow, cast in the scene's light as a mesh's is (on by default): soft moving shadows on the ground, meshes and models under it, and, with a `volumetric` sun and a <FogVolume> under <VolumetricFog>, the sun's shafts breaking through the gaps between clouds. The shadow is where the volume has stopped half the sun; a number scales the density it sees: 1 as drawn, more reaches into its thinner parts (a fatter shadow; up to 4, a thin contrail's made to show), less keeps to the dense cores. false or 0 casts none. Under a paint look the shadow is the painted shape. Soften its edge with the sun's `softShadow` (2-4 for clouds) |@@ -2685,13 +2670,13 @@ type VertexFormat = "Float32" | "Float32x2" | "Float32x3" | "Float32x4" | "Uint3| `position` | `Vec3` | the box's foot (the centre of its floor), metres ([0, 0, 0]) || `size` (required) | `Vec3` | the box it lives in, [width, height, depth] in metres: what leaves it is cut || `sources` | `VolumeSource[]` | where density and heat come in over time, and the puffs of density it starts with ([x, y, z, radius] in metres from the foot) |-| `puffs` | `[number, number, number, number][]` | – |+| `puffs` | `[number, number, number, number][]` | density it starts with: [x, y, z, radius] in metres from the foot || `buoyancy` | `number` | heat's lift (4) and the density's weight (0.4), m/s² a unit; the heat lost a second (0.8) and the density lost a second (0.02), fractions |-| `weight` | `number` | – |-| `cooling` | `number` | – |-| `dissipation` | `number` | – |+| `weight` | `number` | the density's weight, m/s² a unit (0.4) |+| `cooling` | `number` | the heat lost a second, a fraction (0.8) |+| `dissipation` | `number` | the density lost a second, a fraction (0.02) || `fire` | `[string, string, string] \| false` | fire where it's hot: three colours [red, orange, yellow] (paint's by default), or false for none; and the heat (a fraction of the hottest source's) each colour starts at ([0.35, 0.6, 0.85]) |-| `fireAt` | `[number, number, number]` | – |+| `fireAt` | `[number, number, number]` | the heat (a fraction of the hottest source's) each fire colour starts at ([0.35, 0.6, 0.85]) || `name` | `string` | parts are matched by name across frames || `time` | `number` | seconds on the simulation's clock (the Sequence's time, frame / fps, by default) || `resolution` | `number` | cells along the box's longest side (64 by default; 32 is a quarter the cost a step, 96 finer) |@@ -2699,15 +2684,15 @@ type VertexFormat = "Float32" | "Float32x2" | "Float32x3" | "Float32x4" | "Uint3| `colors` | `[string, string, string]` | its tones under a paint look: [lit, mid, dark] || `threshold` | `number` | the density its painted surface sits at (0.12): lower is fatter, higher thinner || `erode` | `number` | how much noise tears the painted surface's edge (0.08), and the tears' size in metres (0.6) |-| `erodeSize` | `number` | – |+| `erodeSize` | `number` | the tears' size in metres (0.6) || `absorb` | `number` | how much light a unit of it stops (its shadow on itself; 1.2) || `wind` | `Vec3` | the wind, m/s ([0, 0, 0]); how fast the volume takes it up, a second (1.2 smoke, 0.6 otherwise); the height it's full from, metres, weaker below (0: full everywhere) |-| `windPull` | `number` | – |-| `windHeight` | `number` | – |+| `windPull` | `number` | how fast the volume takes up the wind, a second (1.2 smoke, 0.6 otherwise) |+| `windHeight` | `number` | the height the wind is full from, metres; weaker below (0: full everywhere) || `drag` | `number` | velocity the still air takes away a second (0.4) || `vorticity` | `number` | curl kept curling (6); a drifting turbulent force, m/s² (0), and its size in metres (2) |-| `turbulence` | `number` | – |-| `turbulenceSize` | `number` | – |+| `turbulence` | `number` | a drifting turbulent force, m/s² (0) |+| `turbulenceSize` | `number` | the turbulence's size in metres (2) || `steps` | `number` | samples along each ray (96) || `shadow` | `boolean \| number` | its shadow, cast in the scene's light as a mesh's is (on by default): soft moving shadows on the ground, meshes and models under it, and, with a `volumetric` sun and a <FogVolume> under <VolumetricFog>, the sun's shafts breaking through the gaps between clouds. The shadow is where the volume has stopped half the sun; a number scales the density it sees: 1 as drawn, more reaches into its thinner parts (a fatter shadow; up to 4, a thin contrail's made to show), less keeps to the dense cores. false or 0 casts none. Under a paint look the shadow is the painted shape. Soften its edge with the sun's `softShadow` (2-4 for clouds) |@@ -2718,13 +2703,13 @@ where density and heat come in: a burner, or an engine moving `at` -> `to` (a co| Field | Type | What it is || --- | --- | --- || `at` (required) | `Vec3` | where (metres from the box's foot), and where it has moved to by `until` if it moves |-| `to` | `Vec3` | – |+| `to` | `Vec3` | where a moving source has got to by `until` || `from` | `number` | when it puts out, seconds ([0, Infinity]) |-| `until` | `number` | – |+| `until` | `number` | when it stops putting out, seconds (Infinity) || `radius` | `number` | its radius (0.5 m); the density and heat it puts out a second at its centre (4 and 4); the velocity it pushes out with, m/s ([0, 0, 0]) |-| `rate` | `number` | – |-| `heat` | `number` | – |-| `speed` | `Vec3` | – |+| `rate` | `number` | the density it puts out a second at its centre (4) |+| `heat` | `number` | the heat it puts out a second at its centre (4) |+| `speed` | `Vec3` | the velocity it pushes out with, m/s ([0, 0, 0]) |### `VolumetricFogProps`diff --git a/docs/manual/reference/sdk/animation.md b/docs/manual/reference/sdk/animation.mdindex 48416ebb..119fc710 100644--- a/docs/manual/reference/sdk/animation.md+++ b/docs/manual/reference/sdk/animation.md@@ -315,12 +315,12 @@ The named moves by name, as `enter="rise"` finds them.| `at` | `number` | local frame the entrance starts (0) || `exitAt` | `number` | local frame the exit starts || `timeline` | `Plan` | a timeline's plan and this element's part in it: the part's move, at its start (plus `at`) |-| `part` | `string` | – |+| `part` | `string` | the part in \`timeline\` whose move this element plays || `mount` | `"during" \| "always"` | "always" (default): in the tree, and its layout, the whole time (invisible before an entrance that fades in); "during": only from the entrance's start until the exit ends (it takes its space when it arrives) || `as` | `string` | the element: "div" by default |-| `style` | `CSSProperties` | – |-| `className` | `string` | – |-| `children` | `ReactNode` | – |+| `style` | `CSSProperties` | inline style |+| `className` | `string` | Tailwind or CSS classes |+| `children` | `ReactNode` | what moves |### `AnimateProps`@@ -330,16 +330,18 @@ type AnimateProps = AnimateOwnProps & { [attr: string]: unknown }### `Animation`-raea_core_animate::spec::Animation+One element's declared animation.++Rust: `raea_core_animate::spec::Animation`.| Field | Type | What it is || --- | --- | --- |-| `origin` (required) | `number` | – |-| `freeze` (required) | `number \| null` | – |-| `fps` (required) | `number` | – |-| `tracks` (required) | `(AnimTrack)[]` | – |-| `show_from` (required) | `number \| null` | – |-| `show_until` (required) | `number \| null` | – |+| `origin` (required) | `number` | the composition frame the element's local frame 0 falls on (where its Sequence starts) |+| `freeze` (required) | `number \| null` | a local frame to hold at whatever the composition's frame (inside a Freeze) |+| `fps` (required) | `number` | the frames per second its frames count; springs measure their settle time with it (0: the clock's) |+| `tracks` (required) | `(AnimTrack)[]` | the element's keyframed properties, one track each |+| `show_from` (required) | `number \| null` | the local frame it's shown from, when it shows only for a window (mount="during"); before it, display none |+| `show_until` (required) | `number \| null` | the local frame it's hidden from again |### `AnimGraphNode`@@ -351,29 +353,33 @@ type AnimGraphNode = | { clip: string | number; time?: number; weight?: number;### `AnimKey`-raea_core_animate::spec::AnimKey+One key: a value at a local frame, and the curve from it to the next key.++Rust: `raea_core_animate::spec::AnimKey`.| Field | Type | What it is || --- | --- | --- |-| `at` (required) | `number` | – |-| `value` (required) | `number` | – |-| `color` (required) | `string` | – |-| `ease` (required) | `string` | – |+| `at` (required) | `number` | the local frame it's at |+| `value` (required) | `number` | a number property's value there |+| `color` (required) | `string` | a colour property's value (CSS text); empty for numbers |+| `ease` (required) | `string` | the curve to the next key (easing::Easing::parse); empty is linear |### `AnimTrack`-raea_core_animate::spec::AnimTrack+Keyframes on one property.++Rust: `raea_core_animate::spec::AnimTrack`.| Field | Type | What it is || --- | --- | --- |-| `prop` (required) | `string` | – |-| `keys` (required) | `(AnimKey)[]` | – |-| `unit` (required) | `string` | – |-| `repeat` (required) | `string` | – |-| `digits` (required) | `number` | – |-| `prefix` (required) | `string` | – |-| `suffix` (required) | `string` | – |-| `separator` (required) | `string` | – |+| `prop` (required) | `string` | the property it keys: opacity, x, y, z, scale, rotate, width, height, blur, clip, a colour, `text`, or another number |+| `keys` (required) | `(AnimKey)[]` | its keyframes in frame order |+| `unit` (required) | `string` | a length's unit: "px" (when empty) or "%" |+| `repeat` (required) | `string` | past the last key: "" or "hold", "loop", "pingpong" (for ever), or "loop:N" / "pingpong:N" |+| `digits` (required) | `number` | decimals a `text` number is written with |+| `prefix` (required) | `string` | written before and after a `text` number (a counter's "$" and " pts") |+| `suffix` (required) | `string` | written after a `text` number |+| `separator` (required) | `string` | between a `text` number's thousands ("," writes 12,345); empty: none |### `Curve`@@ -400,8 +406,8 @@ type GridFrom = "top-left" | "top-right" | "bottom-left" | "bottom-right" | "cen| Field | Type | What it is || --- | --- | --- |-| `kind` (required) | `"sequence" \| "parallel"` | – |-| `steps` (required) | `Step[]` | – |+| `kind` (required) | `"sequence" \| "parallel"` | sequence: one after another; parallel: together |+| `steps` (required) | `Step[]` | its steps, in order || `gap` (required) | `number` | frames between steps of a sequence (negative overlaps) |### `Keys`@@ -419,7 +425,7 @@ Tracks by property, in frames from the move's own start.| Field | Type | What it is || --- | --- | --- |-| `tracks` (required) | `Record<string, TrackSpec \| TrackSpec[]>` | – |+| `tracks` (required) | `Record<string, TrackSpec \| TrackSpec[]>` | keyframes by property, in frames from the move's start || `frames` (required) | `number` | how long it runs (its last key) |### `MoveLike`@@ -440,8 +446,8 @@ A timeline's plan: each part's start frame and move, and the whole length.| Field | Type | What it is || --- | --- | --- |-| `parts` (required) | `Record<string, { at: number; move: Move }>` | – |-| `frames` (required) | `number` | – |+| `parts` (required) | `Record<string, { at: number; move: Move }>` | each part's start frame and move, by its name |+| `frames` (required) | `number` | the whole timeline's length in frames |### `StaggerProps`@@ -450,16 +456,16 @@ A timeline's plan: each part's start frame and move, and the whole length.| `each` (required) | `number` | frames between one child's entrance and the next || `grid` | `{ cols: number; rows?: number; from?: GridFrom }` | spread by grid distance instead of order || `exitEach` | `number` | the exit staggered too, `exitEach` frames apart (0: all together) |-| `style` | `CSSProperties` | – |+| `style` | `CSSProperties` | inline style || `animate` | `Record<string, TrackSpec \| TrackSpec[] \| Keys> \| Move` | free tracks by property, in local frames: `{ backgroundColor: track({ 0: "#fff", 20: "#000" }) }` || `as` | `string` | the element: "div" by default || `exit` | `MoveLike` | the exit, played at `exitAt` (an entrance reversed: `exit="rise"` sinks back out) |-| `children` | `ReactNode` | – |+| `children` | `ReactNode` | what moves || `enter` | `MoveLike` | the entrance: a move's name, a move, or several together || `at` | `number` | local frame the entrance starts (0) || `exitAt` | `number` | local frame the exit starts || `mount` | `"during" \| "always"` | "always" (default): in the tree, and its layout, the whole time (invisible before an entrance that fades in); "during": only from the entrance's start until the exit ends (it takes its space when it arrives) |-| `className` | `string` | – |+| `className` | `string` | Tailwind or CSS classes |### `Step`@@ -475,13 +481,13 @@ One property's keyframes: values by frame, the curve between each pair (one for| Field | Type | What it is || --- | --- | --- |-| `keys` (required) | `[number, V][]` | – |-| `ease` (required) | `Curve \| Curve[]` | – |-| `unit` | `"px" \| "%"` | – |-| `repeat` | `"hold" \| "loop" \| "pingpong" \| `${"loop" \| "pingpong"}:${number}`` | – |-| `digits` | `number` | – |+| `keys` (required) | `[number, V][]` | [frame, value] pairs in frame order, frames from the move's start |+| `ease` (required) | `Curve \| Curve[]` | the curve between keys: one for all, or one a segment |+| `unit` | `"px" \| "%"` | a length's unit: px (the default) or % |+| `repeat` | `"hold" \| "loop" \| "pingpong" \| `${"loop" \| "pingpong"}:${number}`` | past the last key: hold (the default), loop or pingpong, for ever or N times ("loop:3") |+| `digits` | `number` | decimals a `text` counter writes || `prefix` | `string` | a `text` counter's text before and after the number, and between its thousands ("," writes 12,345) |-| `suffix` | `string` | – |-| `separator` | `string` | – |+| `suffix` | `string` | written after a `text` counter's number (" pts") |+| `separator` | `string` | between a `text` counter's thousands ("," writes 12,345) |<!-- generated:end -->diff --git a/docs/manual/reference/sdk/app.md b/docs/manual/reference/sdk/app.mdindex 826d167e..47857c95 100644--- a/docs/manual/reference/sdk/app.md+++ b/docs/manual/reference/sdk/app.md@@ -42,13 +42,13 @@ Declares a composition inside the root. It draws nothing itself; a renderer find| Prop | Type | What it does || --- | --- | --- |-| `id` (required) | `string` | – |-| `component` (required) | `ComponentType<P>` | – |-| `width` (required) | `number` | – |-| `height` (required) | `number` | – |-| `fps` (required) | `number` | – |-| `durationInFrames` (required) | `number` | – |-| `defaultProps` | `P` | – |+| `id` (required) | `string` | the composition's id: letters, digits and dashes (`raea render --composition` picks it) |+| `component` (required) | `ComponentType<P>` | the React component it renders |+| `width` (required) | `number` | in px |+| `height` (required) | `number` | in px |+| `fps` (required) | `number` | frames a second |+| `durationInFrames` (required) | `number` | its length in frames |+| `defaultProps` | `P` | the props it's rendered with (JSON-like values only) || `edit` | `Edit` | a hand edit laid over the composition (docs/craft-system.md, L): written back by the app's timeline |## Functions@@ -94,11 +94,10 @@ insert, query and step it, and add TypeScript systems to its schedules.| Member | What it does || --- | --- |-| `new App(id: number, methods: string[])` | – || `App.open(o: OpenOptions): BevyApp` | A headless App with these plugins; Startup has run, no frame has stepped. TypeScript plugins are built in order once the App is open, then finished and cleaned up; their Startup systems run before the first frame. || `App.stepTogether(apps: BevyApp[], frames?: number): number[]` | Apps stepped together, a frame at a time: a network's peers. Returns each one's frame. || `.methods: string[]` | the methods this App answers (BRP's, raea's and its plugins') |-| `.id: number` | – |+| `.id: number` | the App's handle in the engine || `.isPluginAdded(name: string): boolean` | Whether a plugin of this name is in the App (Bevy's is_plugin_added), Rust or TypeScript. || `.addPlugins(...refs: PluginRef[]): BevyApp` | Adds TypeScript plugins and groups (Bevy's add_plugins): each built in order, then each finished, then each cleaned up. A Rust plugin is compiled in and must be named when the App opens; naming a new one here throws. || `.addSystems(schedule: string, systems: ((app: BevyApp, frame: number) => void) \| ((app: BevyApp, frame: number) => void)[], o?: SystemOptions): BevyApp` | Systems in a schedule (Bevy's add_systems), each as `system` adds one; one of the startup schedules (PreStartup, Startup, PostStartup) runs them once, before the App's next frame. Returns the App, to chain. |@@ -111,11 +110,11 @@ insert, query and step it, and add TypeScript systems to its schedules.| `.frameSchedules(): string[]` | The schedules a frame runs, in order (Bevy's MainScheduleOrder). || `.call<A = unknown>(method: string, params?: unknown): A` | Any method of the App's table, run now: its answer, or a throw with the method's message. || `.spawn(...components: With[]): number` | A new entity with these components. |-| `.insert(entity: number, ...components: With[]): void` | – |+| `.insert(entity: number, ...components: With[]): void` | Adds these components to an entity, replacing any it has of the same type. || `.get<T>(entity: number, c: Component<T>): T \| undefined` | One component of an entity, or undefined when it hasn't got one. || `.query(o: { data?: Component<unknown>[] \| undefined; has?: Component<unknown>[] \| undefined; without?: Component<unknown>[] \| undefined; }): { entity: number…` | Entities with every component in `has` (and none in `without`), with the `data` components' values. |-| `.resource<T>(r: Resource<T>): T` | – |-| `.setResource<T>(r: Resource<T>, value: T): void` | – |+| `.resource<T>(r: Resource<T>): T` | A resource's value. |+| `.setResource<T>(r: Resource<T>, value: T): void` | Sets a resource's value, adding it if the app hasn't got one. || `.trigger<T>(e: Event<T>, value: T): void` | Triggers an event: its observers run now. || `.write<T>(m: Message<T>, value: T): void` | Writes a message, for its readers' next run. || `.observe<T>(e: Event<T>, entity?: number \| undefined): () => T[]` | Starts observing an event (BRP's world.observe+watch). Each call of the returned function gives the events triggered since the last call, in order. `entity` limits it to events aimed at that entity. |@@ -124,7 +123,7 @@ insert, query and step it, and add TypeScript systems to its schedules.| `.state<T>(s: State<T>): T \| null` | A state's value (null before it exists). || `.setState<T>(s: State<T>, value: T): void` | A state's next value: it changes at the next frame's StateTransition. || `.schema(crates?: string[] \| undefined): Record<string, unknown>` | The App's registered types as JSON schema (BRP's registry.schema), filtered by crate. |-| `.close(): void` | – |+| `.close(): void` | Shuts the app down; its methods fail after. |### `BevyApp`@@ -133,11 +132,10 @@ insert, query and step it, and add TypeScript systems to its schedules.| Member | What it does || --- | --- |-| `new BevyApp(id: number, methods: string[])` | – || `BevyApp.open(o: OpenOptions): BevyApp` | A headless App with these plugins; Startup has run, no frame has stepped. TypeScript plugins are built in order once the App is open, then finished and cleaned up; their Startup systems run before the first frame. || `BevyApp.stepTogether(apps: BevyApp[], frames?: number): number[]` | Apps stepped together, a frame at a time: a network's peers. Returns each one's frame. || `.methods: string[]` | the methods this App answers (BRP's, raea's and its plugins') |-| `.id: number` | – |+| `.id: number` | the App's handle in the engine || `.isPluginAdded(name: string): boolean` | Whether a plugin of this name is in the App (Bevy's is_plugin_added), Rust or TypeScript. || `.addPlugins(...refs: PluginRef[]): BevyApp` | Adds TypeScript plugins and groups (Bevy's add_plugins): each built in order, then each finished, then each cleaned up. A Rust plugin is compiled in and must be named when the App opens; naming a new one here throws. || `.addSystems(schedule: string, systems: ((app: BevyApp, frame: number) => void) \| ((app: BevyApp, frame: number) => void)[], o?: SystemOptions): BevyApp` | Systems in a schedule (Bevy's add_systems), each as `system` adds one; one of the startup schedules (PreStartup, Startup, PostStartup) runs them once, before the App's next frame. Returns the App, to chain. |@@ -150,11 +148,11 @@ insert, query and step it, and add TypeScript systems to its schedules.| `.frameSchedules(): string[]` | The schedules a frame runs, in order (Bevy's MainScheduleOrder). || `.call<A = unknown>(method: string, params?: unknown): A` | Any method of the App's table, run now: its answer, or a throw with the method's message. || `.spawn(...components: With[]): number` | A new entity with these components. |-| `.insert(entity: number, ...components: With[]): void` | – |+| `.insert(entity: number, ...components: With[]): void` | Adds these components to an entity, replacing any it has of the same type. || `.get<T>(entity: number, c: Component<T>): T \| undefined` | One component of an entity, or undefined when it hasn't got one. || `.query(o: { data?: Component<unknown>[] \| undefined; has?: Component<unknown>[] \| undefined; without?: Component<unknown>[] \| undefined; }): { entity: number…` | Entities with every component in `has` (and none in `without`), with the `data` components' values. |-| `.resource<T>(r: Resource<T>): T` | – |-| `.setResource<T>(r: Resource<T>, value: T): void` | – |+| `.resource<T>(r: Resource<T>): T` | A resource's value. |+| `.setResource<T>(r: Resource<T>, value: T): void` | Sets a resource's value, adding it if the app hasn't got one. || `.trigger<T>(e: Event<T>, value: T): void` | Triggers an event: its observers run now. || `.write<T>(m: Message<T>, value: T): void` | Writes a message, for its readers' next run. || `.observe<T>(e: Event<T>, entity?: number \| undefined): () => T[]` | Starts observing an event (BRP's world.observe+watch). Each call of the returned function gives the events triggered since the last call, in order. `entity` limits it to events aimed at that entity. |@@ -163,7 +161,7 @@ insert, query and step it, and add TypeScript systems to its schedules.| `.state<T>(s: State<T>): T \| null` | A state's value (null before it exists). || `.setState<T>(s: State<T>, value: T): void` | A state's next value: it changes at the next frame's StateTransition. || `.schema(crates?: string[] \| undefined): Record<string, unknown>` | The App's registered types as JSON schema (BRP's registry.schema), filtered by crate. |-| `.close(): void` | – |+| `.close(): void` | Shuts the app down; its methods fail after. |### `PluginGroup`@@ -172,12 +170,12 @@ leaves one out, and the App adds the rest in order.| Member | What it does || --- | --- |-| `new PluginGroup(name: string, plugins: (string \| Plugin \| { readonly plugin: string; })[])` | – |-| `.name: string` | – |-| `.set(p: Plugin): PluginGroup` | – |-| `.disable(name: string): PluginGroup` | – |-| `.enable(name: string): PluginGroup` | – |-| `.build(): (string \| Plugin)[]` | – |+| `new PluginGroup(name: string, plugins: (string \| Plugin \| { readonly plugin: string; })[])` | A group named `name` of these plugins, in the order the App adds them. |+| `.name: string` | the group's name |+| `.set(p: Plugin): PluginGroup` | Replaces the member of `p`'s name with `p`. |+| `.disable(name: string): PluginGroup` | Leaves the member of this name out. |+| `.enable(name: string): PluginGroup` | Puts a disabled member back. |+| `.build(): (string \| Plugin)[]` | The plugins to add, in order, without the disabled ones. |## Values@@ -248,7 +246,7 @@ a split, a cut word or a moved span is a change to this list; the length becomes| Field | Type | What it is || --- | --- | --- |-| `segments` | `readonly (readonly [number, number])[]` | – |+| `segments` | `readonly (readonly [number, number])[]` | the composition's own frame ranges, [from, to), played one after another |### `OpenOptions`@@ -266,11 +264,11 @@ does. Unique by `name` unless `isUnique` is false (Bevy panics on a unique plugi| Field | Type | What it is || --- | --- | --- |-| `name` (required) | `string` | – |-| `build` (required) | `(app: BevyApp) => void` | – |-| `finish` | `((app: BevyApp) => void) \| undefined` | – |-| `cleanup` | `((app: BevyApp) => void) \| undefined` | – |-| `isUnique` | `boolean` | – |+| `name` (required) | `string` | the plugin's name: two unique plugins of one name can't both be added |+| `build` (required) | `(app: BevyApp) => void` | adds the plugin's systems, resources and other plugins to the app |+| `finish` | `((app: BevyApp) => void) \| undefined` | called once every plugin is built, for setup that needs the others |+| `cleanup` | `((app: BevyApp) => void) \| undefined` | called after every plugin's finish |+| `isUnique` | `boolean` | whether adding it twice is an error (true) |### `PluginRef`@@ -286,13 +284,13 @@ type PluginRef = string | { readonly plugin: string } | Plugin | PluginGroup| Field | Type | What it is || --- | --- | --- |-| `id` (required) | `string` | – |-| `component` (required) | `ComponentType<any>` | – |-| `width` (required) | `number` | – |-| `height` (required) | `number` | – |-| `fps` (required) | `number` | – |-| `durationInFrames` (required) | `number` | – |-| `defaultProps` (required) | `Record<string, unknown>` | – |+| `id` (required) | `string` | the composition's id: letters, digits and dashes (`raea render --composition` picks it) |+| `component` (required) | `ComponentType<any>` | the React component it renders |+| `width` (required) | `number` | in px |+| `height` (required) | `number` | in px |+| `fps` (required) | `number` | frames a second |+| `durationInFrames` (required) | `number` | its length in frames |+| `defaultProps` (required) | `Record<string, unknown>` | the props it's rendered with (JSON-like values only) |### `SystemOptions`diff --git a/docs/manual/reference/sdk/asset.md b/docs/manual/reference/sdk/asset.mdindex cd26455b..8d64183d 100644--- a/docs/manual/reference/sdk/asset.md+++ b/docs/manual/reference/sdk/asset.md@@ -121,9 +121,9 @@ type AssetKind = "lyria" | "sao" | "tokensynth"| Field | Type | What it is || --- | --- | --- |-| `kind` (required) | `AssetKind` | – |-| `prompt` (required) | `string` | – |-| `seconds` (required) | `number` | – |+| `kind` (required) | `AssetKind` | which generator makes it: lyria (music), sao (sound effects) or tokensynth (an instrument's note) |+| `prompt` (required) | `string` | what to make, in words |+| `seconds` (required) | `number` | how long it is || `id` (required) | `string` | a stable hash of kind, prompt and seconds || `src` (required) | `string` | "asset:<kind>/<id>" || `options` | `Record<string, unknown>` | the generator's own settings (a TokenSynth note's midi, velocity, seed and device) |@@ -132,7 +132,7 @@ type AssetKind = "lyria" | "sao" | "tokensynth"| Field | Type | What it is || --- | --- | --- |-| `name` (required) | `string` | – |+| `name` (required) | `string` | the clip's name, as a Model's \`animation\` picks it || `times` (required) | `ArrayLike<number>` | sample times (any unit the Model's `time` uses) || `rotations` (required) | `ArrayLike<number>[]` | per joint, a quaternion x y z w per sample: the joint's rotation in its parent's frame || `translations` | `Record<number, ArrayLike<number>>` | per root joint (by joint index), a translation offset x y z per sample, added to its rest translation |@@ -141,7 +141,7 @@ type AssetKind = "lyria" | "sao" | "tokensynth"| Field | Type | What it is || --- | --- | --- |-| `name` (required) | `string` | – |+| `name` (required) | `string` | the joint's name (a bone's, as a retarget maps it) || `parent` (required) | `number` | index of the parent joint, -1 for a root || `head` (required) | `[number, number, number]` | the joint's head in world space at rest (its node's rest translation is head - parent's head) |@@ -152,31 +152,31 @@ type AssetKind = "lyria" | "sao" | "tokensynth"| `color` | `string \| Rgba` | hex (#rrggbb) or linear rgba 0..1 || `unlit` | `boolean` | drawn without light (KHR_materials_unlit) || `blend` | `boolean` | alpha-blended (the colour's alpha, times the vertex colours' alpha) |-| `doubleSided` | `boolean` | – |-| `roughness` | `number` | – |-| `metalness` | `number` | – |-| `emissive` | `string` | – |+| `doubleSided` | `boolean` | draw the back faces too |+| `roughness` | `number` | 0..1, smooth to matte |+| `metalness` | `number` | 0..1, a dielectric to a metal |+| `emissive` | `string` | the colour it glows with |### `GlbPrimitive`| Field | Type | What it is || --- | --- | --- || `positions` (required) | `ArrayLike<number>` | x y z per vertex |-| `normals` | `ArrayLike<number>` | – |+| `normals` | `ArrayLike<number>` | x y z per vertex, unit length || `colors` | `ArrayLike<number>` | r g b a per vertex, linear 0..1 (multiplies the material's colour) || `indices` | `ArrayLike<number>` | by threes for triangles, by twos for lines; none: every vertex in order |-| `mode` | `"triangles" \| "lines"` | – |+| `mode` | `"triangles" \| "lines"` | what the indices draw: triangles (the default) or lines || `joints` | `ArrayLike<number>` | four joint indices per vertex (a skinned mesh) || `weights` | `ArrayLike<number>` | four weights per vertex, summing to 1 |-| `material` | `GlbMaterial` | – |+| `material` | `GlbMaterial` | its surface: colour, roughness, metalness, glow |### `GlbScene`| Field | Type | What it is || --- | --- | --- |-| `primitives` (required) | `GlbPrimitive[]` | – |+| `primitives` (required) | `GlbPrimitive[]` | the meshes it holds || `joints` | `GlbJoint[]` | a skin: all primitives are skinned by these joints when it's given |-| `clips` | `GlbClip[]` | – |+| `clips` | `GlbClip[]` | animation clips over the joints |### `Rgba`diff --git a/docs/manual/reference/sdk/audio.md b/docs/manual/reference/sdk/audio.mdindex 1d2000c1..6ba11f75 100644--- a/docs/manual/reference/sdk/audio.md+++ b/docs/manual/reference/sdk/audio.md@@ -67,7 +67,7 @@ time: `{hit && <Seedling src={staticFile("hit.wav")} id={`hit-${hits}`} />}`.| `id` | `string` | the player's identity while it plays: a new id starts a new player (default: the src) || `volume` | `number` | linear gain, from the first frame (default 1) || `speed` | `number` | playback speed (default 1); may change frame to frame |-| `loop` | `boolean` | – |+| `loop` | `boolean` | start again from the beginning when it ends || `fx` | `SeedlingFx[]` | a serial chain of effects on this player || `at` | `[number, number, number]` | where it sounds from in the 3D scene (metres, the Canvas3D's frame): heard from the scene's camera, panned, fading and dulling with distance, pitched by its speed toward or away (doppler); may move frame to frame. Unset: a sound with no place || `muffle` | `number` | a lowpass (Hz) for what stands between it and the camera: a wall, a window |@@ -79,10 +79,10 @@ it, hits, the feature lanes, and the pacing (cuts per bar). `raea song FILE --pl| Prop | Type | What it does || --- | --- | --- |-| `map` (required) | `SongMap` | – |-| `width` | `number` | – |-| `height` | `number` | – |-| `title` | `string` | – |+| `map` (required) | `SongMap` | the song's map, from \`raea song\` |+| `width` | `number` | in px |+| `height` | `number` | in px |+| `title` | `string` | the heading (the song's name, tempo, metre and length by default) |### `Sound3D`@@ -214,7 +214,7 @@ The props of [`Audio`](#audio), tabled there.| Field | Type | What it is || --- | --- | --- |-| `text` (required) | `string` | – |+| `text` (required) | `string` | the words to say || `voice` | `string` | a Pocket voice ("alba", "marius",...), a clip in ~/.raea-feed/voices by name ("watts"), or a WAV ("/media/narrator.wav" or staticFile("narrator.wav")); the default is "watts" when that clip's there, else alba || `seed` | `number` | which take: another seed says it another way (0) || `temperature` | `number` | Pocket's sampling temperature: lower is calmer and more even, higher livelier (0.7) |@@ -240,9 +240,9 @@ The props of [`Seedling`](#seedling), tabled there.| Field | Type | What it is || --- | --- | --- |-| `map` (required) | `SongMap` | – |-| `fps` (required) | `number` | – |-| `offset` (required) | `number` | – |+| `map` (required) | `SongMap` | the song's map, from \`raea song\` |+| `fps` (required) | `number` | the composition's frame rate, that frames are counted in |+| `offset` (required) | `number` | seconds into the song frame 0 falls on (0) || `frame` (required) | `(seconds: number) => number` | the frame a song time falls on || `seconds` (required) | `(frame: number) => number` | the song's seconds at a frame || `at` (required) | `(frame: number) => SongMoment` | where the song is at a frame |@@ -255,32 +255,32 @@ The props of [`Seedling`](#seedling), tabled there.| Field | Type | What it is || --- | --- | --- |-| `time` (required) | `number` | – |-| `beat` (required) | `number` | – |-| `beats` (required) | `number` | – |-| `energy` (required) | `number` | – |-| `cuts` (required) | `number` | – |+| `time` (required) | `number` | seconds from the song's start where the bar begins (its downbeat) |+| `beat` (required) | `number` | the index of its first beat |+| `beats` (required) | `number` | how many beats it holds |+| `energy` (required) | `number` | its mean energy, 0..1 |+| `cuts` (required) | `number` | suggested cuts in this bar: 0.25, 0.5, 1, 2 or 4 |### `SongEvent`| Field | Type | What it is || --- | --- | --- |-| `kind` (required) | `SongEventKind` | – |+| `kind` (required) | `SongEventKind` | what the event is: build, drop, stop, hit, dip or break || `time` (required) | `number` | seconds from the song's start: a beat (drop, a downbeat) or the grid's nearest beat or half beat (hit) || `end` | `number` | spans (build, stop, dip, break) end here |-| `beat` (required) | `number` | – |-| `bar` (required) | `number` | – |-| `beats` | `number` | – |+| `beat` (required) | `number` | the index of the beat it starts on, in `SongMap.beats` |+| `bar` (required) | `number` | the index of the bar it starts in |+| `beats` | `number` | a span: how many beats it lasts || `strength` (required) | `number` | 0..1 || `into` | `number \| null` | a build or stop: the drop it leads into, seconds || `hits` | `SongHit[]` | a stop: its sparse hits || `rise` | `number` | a drop: the energy of the bar after minus the bar before (negative when the band cuts after one big hit) || `holds` | `boolean` | a drop: the bar after stays up (false: one hit, then the band cuts out) |-| `afterStop` | `boolean` | – |-| `afterBuild` | `boolean` | – |+| `afterStop` | `boolean` | a drop: it comes straight out of a stop |+| `afterBuild` | `boolean` | a drop: it lands at the end of a build (within two bars of it) || `gapBefore` | `boolean` | a drop: a breath of near-silence just before it || `at` | `number` | a hit: the onset's own time; how far over the groove it stands |-| `over` | `number` | – |+| `over` | `number` | a hit: how far over the groove it stands |### `SongEventKind`@@ -292,12 +292,12 @@ type SongEventKind = "build" | "drop" | "stop" | "hit" | "dip" | "break"| Field | Type | What it is || --- | --- | --- |-| `loudness` (required) | `number[]` | – |-| `onsets` (required) | `number[]` | – |-| `brightness` (required) | `number[]` | – |-| `low` (required) | `number[]` | – |-| `high` (required) | `number[]` | – |-| `energy` (required) | `number[]` | – |+| `loudness` (required) | `number[]` | loudness (RMS) a beat, 0..1 over the song |+| `onsets` (required) | `number[]` | onset strength (spectral flux) a beat, 0..1: how much is struck |+| `brightness` (required) | `number[]` | brightness (spectral centroid) a beat, 0..1 |+| `low` (required) | `number[]` | the low end (kick and bass, under 150 Hz) a beat, 0..1 |+| `high` (required) | `number[]` | the high band (over 3 kHz) a beat, 0..1 |+| `energy` (required) | `number[]` | the combined energy a beat, 0..1: loudness, low end, onsets and highs together |### `SongHit`@@ -305,9 +305,9 @@ A hit inside a stop: `time` on the beat grid (a beat or half beat), `at` where t| Field | Type | What it is || --- | --- | --- |-| `time` (required) | `number` | – |-| `at` (required) | `number` | – |-| `strength` (required) | `number` | – |+| `time` (required) | `number` | seconds from the song's start, snapped to the beat grid (a beat or half beat) |+| `at` (required) | `number` | seconds from the song's start where the onset itself is |+| `strength` (required) | `number` | how hard the hit is, 0..1 |### `SongLevel`@@ -319,19 +319,19 @@ type SongLevel = "intro" | "low" | "mid" | "high" | "outro"| Field | Type | What it is || --- | --- | --- |-| `version` (required) | `number` | – |-| `duration` (required) | `number` | – |-| `tempo` (required) | `number \| null` | – |-| `beatsPerBar` (required) | `number` | – |-| `beats` (required) | `number[]` | – |-| `downbeats` (required) | `number[]` | – |+| `version` (required) | `number` | the map format's version (1) |+| `duration` (required) | `number` | the song's length in seconds |+| `tempo` (required) | `number \| null` | beats per minute, or null when no beat was found |+| `beatsPerBar` (required) | `number` | beats in a bar (4 for 4/4) |+| `beats` (required) | `number[]` | every beat's time in seconds, ascending |+| `downbeats` (required) | `number[]` | every bar's first beat, in seconds || `features` (required) | `SongFeatures` | one value a beat, 0..1 over the song |-| `bars` (required) | `SongBar[]` | – |-| `sections` (required) | `SongSection[]` | – |-| `events` (required) | `SongEvent[]` | – |-| `sectionsFrom` | `"markers" \| "novelty"` | – |-| `boundaries` | `{ time: number; beat: number; bar: number; strength: number }[]` | – |-| `source` | `string \| null` | – |+| `bars` (required) | `SongBar[]` | the bars in order, each with its energy and suggested cut rate |+| `sections` (required) | `SongSection[]` | the song's sections in order (intro, verse, chorus and so on) |+| `events` (required) | `SongEvent[]` | builds, drops, stops, hits, dips and breaks, in time order |+| `sectionsFrom` | `"markers" \| "novelty"` | where the sections came from: the song file's markers, or novelty in the music itself |+| `boundaries` | `{ time: number; beat: number; bar: number; strength: number }[]` | the candidate section boundaries novelty found, each with its strength 0..1 |+| `source` | `string \| null` | the song file's name |### `SongMoment`@@ -339,30 +339,30 @@ Where a moment of the song is. Seconds are the song's; infinities when there's n| Field | Type | What it is || --- | --- | --- |-| `time` (required) | `number` | – |+| `time` (required) | `number` | the moment, seconds from the song's start || `beat` (required) | `number` | the beat at or before `time` (-1 before the first) || `bar` (required) | `number` | the bar at or before `time` (-1 before the first beat) || `beatInBar` (required) | `number` | 0-based position in the bar || `phase` (required) | `number` | 0..1 through the beat, and through the bar |-| `barPhase` (required) | `number` | – |+| `barPhase` (required) | `number` | 0..1 through the bar || `energy` (required) | `number` | the features at `time`, interpolated between beats |-| `loudness` (required) | `number` | – |-| `onsets` (required) | `number` | – |-| `brightness` (required) | `number` | – |-| `low` (required) | `number` | – |-| `section` (required) | `SongSection \| null` | – |-| `sectionIndex` (required) | `number` | – |+| `loudness` (required) | `number` | loudness at `time`, 0..1 |+| `onsets` (required) | `number` | onset strength at `time`, 0..1 |+| `brightness` (required) | `number` | brightness at `time`, 0..1 |+| `low` (required) | `number` | the low end at `time`, 0..1 |+| `section` (required) | `SongSection \| null` | the section `time` is in (null before the first) |+| `sectionIndex` (required) | `number` | that section's index in `SongMap.sections` (-1 for none) || `sectionProgress` (required) | `number` | 0..1 through the section || `cutsPerBar` (required) | `number` | the bar's suggested cut rate (cuts per bar) || `drop` (required) | `SongEvent \| null` | the last drop at or before `time`, the next after it |-| `nextDrop` (required) | `SongEvent \| null` | – |-| `sinceDrop` (required) | `number` | – |-| `untilDrop` (required) | `number` | – |+| `nextDrop` (required) | `SongEvent \| null` | the next drop after `time` |+| `sinceDrop` (required) | `number` | seconds since the last drop (Infinity when there's none) |+| `untilDrop` (required) | `number` | seconds until the next drop (Infinity when there's none) || `build` (required) | `SongEvent \| null` | the build `time` is in, and 0..1 through it |-| `inBuild` (required) | `boolean` | – |-| `buildProgress` (required) | `number` | – |+| `inBuild` (required) | `boolean` | whether `time` is inside a build |+| `buildProgress` (required) | `number` | 0..1 through that build || `stop` (required) | `SongEvent \| null` | the stop `time` is in |-| `inStop` (required) | `boolean` | – |+| `inStop` (required) | `boolean` | whether `time` is inside a stop || `dip` (required) | `SongEvent \| null` | the dip or break `time` is in || `next` (required) | `SongEvent \| null` | the next event of any kind after `time` |@@ -381,13 +381,13 @@ The props of [`SongPlot`](#songplot), tabled there.| Field | Type | What it is || --- | --- | --- |-| `name` (required) | `string` | – |-| `level` (required) | `SongLevel` | – |-| `time` (required) | `number` | – |-| `end` (required) | `number` | – |-| `beat` (required) | `number` | – |-| `bar` (required) | `number` | – |-| `energy` (required) | `number` | – |+| `name` (required) | `string` | the section's marker name when the song file has markers, else its level |+| `level` (required) | `SongLevel` | how high the section sits in the song: intro, low, mid, high or outro |+| `time` (required) | `number` | seconds from the song's start where the section begins |+| `end` (required) | `number` | seconds from the song's start where it ends |+| `beat` (required) | `number` | the index of its first beat |+| `bar` (required) | `number` | the index of its first bar |+| `energy` (required) | `number` | its mean energy, 0..1 || `cuts` (required) | `number` | suggested cuts per bar: 0.25, 0.5, 1, 2 or 4 |### `SpeechProps`diff --git a/docs/manual/reference/sdk/brief.md b/docs/manual/reference/sdk/brief.mdindex ac98e40f..e0a80310 100644--- a/docs/manual/reference/sdk/brief.md+++ b/docs/manual/reference/sdk/brief.md@@ -48,8 +48,6 @@ function brief(b: Brief): Brief### `controller`A workspace's controller (controllers/<id>.ts): settings in groups of typed fields that every agent works to.-A standing decision ("every ad is 9:16"), not one piece of work: that's a feed item, and a note on it. The raea app-shows a new controller in the project's feed, and an agent brings one to the person with `controller_post`.```tsfunction controller(c: ControllerInput): ControllerInputdiff --git a/docs/manual/reference/sdk/camera.md b/docs/manual/reference/sdk/camera.mdindex 70c227eb..b3459fad 100644--- a/docs/manual/reference/sdk/camera.md+++ b/docs/manual/reference/sdk/camera.md@@ -34,15 +34,15 @@ Bevy: `bevy_camera::components::Camera3d`, `bevy_camera::camera::Camera`, `bevy_| Prop | Type | What it does || --- | --- | --- |-| `transform` | `TransformValue` | – |-| `projection` | `Projection` | – |+| `transform` | `TransformValue` | where the camera stands and faces (`Transform.fromXYZ(...).lookingAt(...)`) |+| `projection` | `Projection` | perspective (the default) or orthographic, as Bevy's Projection || `layers` | `number[]` | Bevy's RenderLayers on the camera: it draws only the parts on these layers (a Mesh3d's `layers`; [0] by default) || `order` | `number` | Bevy's Camera order: a camera with a higher one draws after (over) those with lower; 0 by default || `clear_color` | `ClearColorConfig` | Bevy's ClearColorConfig: "Default" (the clear colour), "None" (drawn over what the cameras before it drew, as a second pass), or { Custom: colour } || `viewport` | `CameraViewport` | Bevy's Viewport: the camera draws into this region of the window only, `physical_position` from its top left and `physical_size` big (whole px, at a scale factor of 1) |-| `children` | `ReactNode` | – |+| `children` | `ReactNode` | components on the camera: post effects, tone mapping, a skybox |-Used in: [ui/render_ui_to_texture](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/render_ui_to_texture.tsx), [ui/widgets/viewport_node](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/widgets/viewport_node.tsx), [3d/fog_volumes](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/fog_volumes.tsx), [3d/fog](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/fog.tsx), [3d/vertex_colors](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/vertex_colors.tsx), [3d/rotate_environment_map](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/rotate_environment_map.tsx), [3d/transparency_3d](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/transparency_3d.tsx), [3d/spherical_area_lights](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/spherical_area_lights.tsx), and 61 more.+Used in: [ui/render_ui_to_texture](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/render_ui_to_texture.tsx), [ui/widgets/viewport_node](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/widgets/viewport_node.tsx), [3d/fog_volumes](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/fog_volumes.tsx), [3d/fog](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/fog.tsx), [3d/vertex_colors](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/vertex_colors.tsx), [3d/rotate_environment_map](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/rotate_environment_map.tsx), [3d/transparency_3d](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/transparency_3d.tsx), [3d/spherical_area_lights](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/spherical_area_lights.tsx), and 60 more.### `Canvas3D`@@ -74,17 +74,13 @@ Takes [`MatchmoveProps`](3d.md#matchmoveprops)'s props.### `TextureView`-A Bevy texture in an element: `texture` is the id a system lists an Image under in the App's PageTextures (a-camera's target, a video's frame), drawn at the element's box GPU to GPU. The other props are the <img>'s, its style-placing and sizing it.-- <TextureView texture={7} style={{ position: "absolute", left: 100, top: 50, width: 200, height: 150 }} />+the GPU texture's numberBevy: `bevy_render::TextureView`.| Prop | Type | What it does || --- | --- | --- |-| `texture` (required) | `number` | – |+| `texture` (required) | `number` | the id a system lists the Image under in the App's PageTextures |Also takes the props of `ImgHTMLAttributes` (`height`, `alt`, `crossOrigin`, `decoding`, `fetchPriority`, `loading`, `referrerPolicy`, `sizes`, `srcSet`, `useMap`, `width`); `HTMLAttributes` (`slot`, `style`, `title`, `hidden`, `color`, `content`, `part`, `className`, `id`, `defaultChecked`, `defaultValue`, `suppressContentEditableWarning`, `suppressHydrationWarning`, `accessKey`, `autoCapitalize`, `autoFocus`, `contentEditable`, `contextMenu`, `dir`, `draggable`, `enterKeyHint`, `lang`, `nonce`, `spellCheck`, `tabIndex`, `translate`, `radioGroup`, `role`, `about`, `datatype`, `inlist`, `prefix`, `property`, `rel`, `resource`, `rev`, `typeof`, `vocab`, `autoCorrect`, `autoSave`, `itemProp`, `itemScope`, `itemType`, `itemID`, `itemRef`, `results`, `security`, `unselectable`, `popover`, `popoverTargetAction`, `popoverTarget`, `inert`, `inputMode`, `is`, `exportparts`); `DOMAttributes` (`children`, `dangerouslySetInnerHTML`, `onCopy`, `onCopyCapture`, `onCut`, `onCutCapture`, `onPaste`, `onPasteCapture`, `onCompositionEnd`, `onCompositionEndCapture`, `onCompositionStart`, `onCompositionStartCapture`, `onCompositionUpdate`, `onCompositionUpdateCapture`, `onFocus`, `onFocusCapture`, `onBlur`, `onBlurCapture`, `onChange`, `onChangeCapture`, `onBeforeInput`, `onBeforeInputCapture`, `onInput`, `onInputCapture`, `onReset`, `onResetCapture`, `onSubmit`, `onSubmitCapture`, `onInvalid`, `onInvalidCapture`, `onLoad`, `onLoadCapture`, `onError`, `onErrorCapture`, `onKeyDown`, `onKeyDownCapture`, `onKeyPress`, `onKeyPressCapture`, `onKeyUp`, `onKeyUpCapture`, `onAbort`, `onAbortCapture`, `onCanPlay`, `onCanPlayCapture`, `onCanPlayThrough`, `onCanPlayThroughCapture`, `onDurationChange`, `onDurationChangeCapture`, `onEmptied`, `onEmptiedCapture`, `onEncrypted`, `onEncryptedCapture`, `onEnded`, `onEndedCapture`, `onLoadedData`, `onLoadedDataCapture`, `onLoadedMetadata`, `onLoadedMetadataCapture`, `onLoadStart`, `onLoadStartCapture`, `onPause`, `onPauseCapture`, `onPlay`, `onPlayCapture`, `onPlaying`, `onPlayingCapture`, `onProgress`, `onProgressCapture`, `onRateChange`, `onRateChangeCapture`, `onSeeked`, `onSeekedCapture`, `onSeeking`, `onSeekingCapture`, `onStalled`, `onStalledCapture`, `onSuspend`, `onSuspendCapture`, `onTimeUpdate`, `onTimeUpdateCapture`, `onVolumeChange`, `onVolumeChangeCapture`, `onWaiting`, `onWaitingCapture`, `onAuxClick`, `onAuxClickCapture`, `onClick`, `onClickCapture`, `onContextMenu`, `onContextMenuCapture`, `onDoubleClick`, `onDoubleClickCapture`, `onDrag`, `onDragCapture`, `onDragEnd`, `onDragEndCapture`, `onDragEnter`, `onDragEnterCapture`, `onDragExit`, `onDragExitCapture`, `onDragLeave`, `onDragLeaveCapture`, `onDragOver`, `onDragOverCapture`, `onDragStart`, `onDragStartCapture`, `onDrop`, `onDropCapture`, `onMouseDown`, `onMouseDownCapture`, `onMouseEnter`, `onMouseLeave`, `onMouseMove`, `onMouseMoveCapture`, `onMouseOut`, `onMouseOutCapture`, `onMouseOver`, `onMouseOverCapture`, `onMouseUp`, `onMouseUpCapture`, `onSelect`, `onSelectCapture`, `onTouchCancel`, `onTouchCancelCapture`, `onTouchEnd`, `onTouchEndCapture`, `onTouchMove`, `onTouchMoveCapture`, `onTouchStart`, `onTouchStartCapture`, `onPointerDown`, `onPointerDownCapture`, `onPointerMove`, `onPointerMoveCapture`, `onPointerUp`, `onPointerUpCapture`, `onPointerCancel`, `onPointerCancelCapture`, `onPointerEnter`, `onPointerLeave`, `onPointerOver`, `onPointerOverCapture`, `onPointerOut`, `onPointerOutCapture`, `onGotPointerCapture`, `onGotPointerCaptureCapture`, `onLostPointerCapture`, `onLostPointerCaptureCapture`, `onScroll`, `onScrollCapture`, `onScrollEnd`, `onScrollEndCapture`, `onWheel`, `onWheelCapture`, `onAnimationStart`, `onAnimationStartCapture`, `onAnimationEnd`, `onAnimationEndCapture`, `onAnimationIteration`, `onAnimationIterationCapture`, `onToggle`, `onBeforeToggle`, `onTransitionCancel`, `onTransitionCancelCapture`, `onTransitionEnd`, `onTransitionEndCapture`, `onTransitionRun`, `onTransitionRunCapture`, `onTransitionStart`, `onTransitionStartCapture`); `AriaAttributes` (`aria-activedescendant`, `aria-atomic`, `aria-autocomplete`, `aria-braillelabel`, `aria-brailleroledescription`, `aria-busy`, `aria-checked`, `aria-colcount`, `aria-colindex`, `aria-colindextext`, `aria-colspan`, `aria-controls`, `aria-current`, `aria-describedby`, `aria-description`, `aria-details`, `aria-disabled`, `aria-dropeffect`, `aria-errormessage`, `aria-expanded`, `aria-flowto`, `aria-grabbed`, `aria-haspopup`, `aria-hidden`, `aria-invalid`, `aria-keyshortcuts`, `aria-label`, `aria-labelledby`, `aria-level`, `aria-live`, `aria-modal`, `aria-multiline`, `aria-multiselectable`, `aria-orientation`, `aria-owns`, `aria-placeholder`, `aria-posinset`, `aria-pressed`, `aria-readonly`, `aria-relevant`, `aria-required`, `aria-roledescription`, `aria-rowcount`, `aria-rowindex`, `aria-rowindextext`, `aria-rowspan`, `aria-selected`, `aria-setsize`, `aria-sort`, `aria-valuemax`, `aria-valuemin`, `aria-valuenow`, `aria-valuetext`).@@ -137,8 +133,8 @@ Bevy's Viewport on a Camera, its depth range Bevy's default 0..1.| Field | Type | What it is || --- | --- | --- |-| `physical_position` (required) | `[number, number]` | – |-| `physical_size` (required) | `[number, number]` | – |+| `physical_position` (required) | `[number, number]` | the viewport's top-left corner, in px |+| `physical_size` (required) | `[number, number]` | the viewport's width and height, in px |### `Canvas3DProps`@@ -146,7 +142,7 @@ Bevy's Viewport on a Camera, its depth range Bevy's default 0..1.| --- | --- | --- || `layered` | `boolean` | the 3D takes its place in the page's tree order instead of lying under the whole page: page elements before the Canvas3D (and the backgrounds of the elements holding it) are under the 3D, showing wherever it has nothing, and hidden by its parts; positioned elements after it are over it. The 3D's background is transparent. Put the Canvas3D straight in a full-frame AbsoluteFill. || `clearColor` | `string` | only with `layered`: the 3D clears to this CSS colour instead of transparent, so its translucent parts blend over it in linear light, as Bevy's do over its ClearColor (a Bevy 2D scene's rgb(43, 44, 47)), not over the page in sRGB. The 3D then lies under the whole page, as Bevy's camera output lies under all its UI (a GlobalZIndex(-1) too). |-| `children` | `ReactNode` | – |+| `children` | `ReactNode` | the 3D scene: cameras, lights and parts |### `ClearColorConfig`@@ -162,8 +158,8 @@ type ClearColorConfig = "Default" | "None" | { Custom: Srgba | LinearRgba }| Field | Type | What it is || --- | --- | --- |-| `t` (required) | `number` | – |-| `position` (required) | `Vec3` | – |+| `t` (required) | `number` | seconds into the clip |+| `position` (required) | `Vec3` | where the camera is, in the solved world (metres) || `quaternion` (required) | `[number, number, number, number]` | camera to world, [x, y, z, w]; the camera looks down its -Z with +Y up || `solved` (required) | `boolean` | false: COLMAP didn't register this frame and its pose was interpolated |@@ -173,7 +169,7 @@ type ClearColorConfig = "Default" | "None" | { Custom: Srgba | LinearRgba }| --- | --- | --- || `src` (required) | `string` | the footage: staticFile("clip.mp4") || `from` | `number` | where in the clip the shot starts, and how long it runs (seconds; 0 = to the end) |-| `seconds` | `number` | – |+| `seconds` | `number` | how long the shot runs, seconds (0: to the clip's end) || `subject` | `[number, number, number, number]` | the subject to keep in front of the 3D and out of the solve: a box around it on the first frame, [x, y, w, h] in 0..1 of the frame (EdgeTAM tracks it from there) || `height` | `number` | the camera's height over the ground in metres (1.6 by default: handheld) || `fov` | `number` | the vertical field of view in degrees, for a shot without parallax (a tripod, a pan); a solve with structure finds its own |@@ -191,24 +187,24 @@ What `raea track` writes and <Matchmove> draws from.| Field | Type | What it is || --- | --- | --- |-| `mode` (required) | `"sfm" \| "rotation" \| "static"` | – |+| `mode` (required) | `"sfm" \| "rotation" \| "static"` | "sfm": a full solve with structure; "rotation": the camera only turns (too little parallax, or too few frames registered); "static": it doesn't move || `width` (required) | `number` | the footage's size in pixels, and its frame rate |-| `height` (required) | `number` | – |-| `fps` (required) | `number` | – |-| `from` (required) | `number` | – |-| `seconds` (required) | `number` | – |-| `frames` (required) | `number` | – |+| `height` (required) | `number` | the footage's height in pixels |+| `fps` (required) | `number` | the footage's frame rate |+| `from` (required) | `number` | where in the clip the solve starts, seconds |+| `seconds` (required) | `number` | how long it runs, seconds |+| `frames` (required) | `number` | how many frames it solved || `fov` (required) | `number` | vertical field of view, degrees; focal length in pixels; the lens's radial distortion |-| `focal` (required) | `number` | – |-| `k1` (required) | `number` | – |-| `registered` (required) | `number` | – |+| `focal` (required) | `number` | the focal length in pixels, at the footage's full size |+| `k1` (required) | `number` | the lens's radial distortion |+| `registered` (required) | `number` | how many frames COLMAP registered; the rest were interpolated || `error` (required) | `number \| null` | mean reprojection error in pixels (null without structure) |-| `camera_height` (required) | `number` | – |-| `cameras` (required) | `MatchmoveCamera[]` | – |+| `camera_height` (required) | `number` | the camera's height over the ground, metres, that set the world's scale |+| `cameras` (required) | `MatchmoveCamera[]` | the camera a frame || `points` (required) | `Vec3[]` | the sparse points, in the solved world |-| `ground` (required) | `{ y: number; normal: Vec3 }` | – |+| `ground` (required) | `{ y: number; normal: Vec3 }` | the ground plane: its height (0) and normal (+Y) || `cut` (required) | `string \| null` | the subject's cut-outs, a path with %04d for the frame (1-based), or null |-| `notes` (required) | `string[]` | – |+| `notes` (required) | `string[]` | what the solver noticed: fallbacks, an assumed field of view, interpolated frames |### `MatchmoveState`@@ -216,10 +212,10 @@ Each frame's state under a <Matchmove>, for the 3D inside it.| Field | Type | What it is || --- | --- | --- |-| `solve` (required) | `MatchmoveSolve` | – |+| `solve` (required) | `MatchmoveSolve` | the solve it draws from || `index` (required) | `number` | the solve's frame shown now (0-based), and the clip's time |-| `time` (required) | `number` | – |-| `camera` (required) | `MatchmoveCamera` | – |+| `time` (required) | `number` | the clip's time at this frame, seconds |+| `camera` (required) | `MatchmoveCamera` | the solve's camera for this frame || `project` (required) | `(p: Vec3) => [number, number, number]` | where a point of the solved world lands in the composition, in pixels ([x, y], and its distance in front of the camera; behind it when that's 0 or less) |### `Projection`diff --git a/docs/manual/reference/sdk/color.md b/docs/manual/reference/sdk/color.mdindex 5e08072c..29a4b242 100644--- a/docs/manual/reference/sdk/color.md+++ b/docs/manual/reference/sdk/color.md@@ -49,19 +49,19 @@ function toHex(owner: string, k: string, v: unknown): stringBevy's Hsla: hue (degrees), saturation and lightness, each 0..1; converted through Hsva and Hwba, as Bevy's is.-Bevy: `bevy_color::Hsla`.+Bevy: `bevy_color::hsla::Hsla`.| Member | What it does || --- | --- |-| `new Hsla(hue: number, saturation: number, lightness: number, alpha?: number)` | – |-| `Hsla.from(c: Rgb): Hsla` | – |-| `.hue: number` | – |-| `.saturation: number` | – |-| `.lightness: number` | – |-| `.alpha: number` | – |-| `.to_srgba(): Srgba` | – |-| `.to_linear(): LinearRgba` | – |-| `.mix(o: Hsla, t: number): Hsla` | – |+| `new Hsla(hue: number, saturation: number, lightness: number, alpha?: number)` | Hue in degrees (0 to 360), saturation, lightness and alpha 0 to 1. |+| `Hsla.from(c: Rgb): Hsla` | The same colour from an Srgba or LinearRgba. |+| `.hue: number` | Bevy: The hue channel. [0.0, 360.0] |+| `.saturation: number` | Bevy: The saturation channel. [0.0, 1.0] |+| `.lightness: number` | Bevy: The lightness channel. [0.0, 1.0] |+| `.alpha: number` | Bevy: The alpha channel. [0.0, 1.0] |+| `.to_srgba(): Srgba` | The same colour as an Srgba. |+| `.to_linear(): LinearRgba` | The same colour as a LinearRgba. |+| `.mix(o: Hsla, t: number): Hsla` | The colour `t` (0 to 1) of the way to `o`, mixed in this space. |Used in: [ui/scroll_and_overflow/drag_to_scroll](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/scroll_and_overflow/drag_to_scroll.tsx), [ui/ui_material](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/ui_material.tsx), [ui/widgets/feathers_gallery](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/widgets/feathers_gallery.tsx), [animation/color_animation](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/animation/color_animation.tsx), [2d/2d_shapes](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/2d/2d_shapes.tsx), [shader_advanced/custom_shader_instancing](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/shader_advanced/custom_shader_instancing.tsx).@@ -69,17 +69,17 @@ Used in: [ui/scroll_and_overflow/drag_to_scroll](https://github.com/shinyobjectzBevy's LinearRgba: linear light, which a StandardMaterial's emissive is; a channel past 1 is brighter than white.-Bevy: `bevy_color::LinearRgba`.+Bevy: `bevy_color::linear_rgba::LinearRgba`.| Member | What it does || --- | --- |-| `new LinearRgba(red: number, green: number, blue: number, alpha?: number)` | – |-| `LinearRgba.rgb(red: number, green: number, blue: number): LinearRgba` | – |+| `new LinearRgba(red: number, green: number, blue: number, alpha?: number)` | Linear red, green, blue (above 1 for brighter than white) and alpha. |+| `LinearRgba.rgb(red: number, green: number, blue: number): LinearRgba` | An opaque linear colour. || `LinearRgba.from(c: Srgba): LinearRgba` | Bevy's LinearRgba::from(Srgba) |-| `.red: number` | – |-| `.green: number` | – |-| `.blue: number` | – |-| `.alpha: number` | – |+| `.red: number` | Bevy: The red channel. [0.0, 1.0] for SDR colors. |+| `.green: number` | Bevy: The green channel. [0.0, 1.0] for SDR colors. |+| `.blue: number` | Bevy: The blue channel. [0.0, 1.0] for SDR colors. |+| `.alpha: number` | Bevy: The alpha channel. [0.0, 1.0] || `.to_srgba(): Srgba` | Bevy's Srgba::from(LinearRgba): gamma-encoded (a channel at or below 0 kept as it is) || `.luminance(): number` | Bevy's Luminance::luminance: Rec. 709's weights over the linear channels || `.darker(amount: number): LinearRgba` | Bevy's Luminance::darker: mixed toward black until its luminance is `amount` lower (at least 0) |@@ -98,17 +98,17 @@ Bevy: `bevy_color::Okhsla`.| Member | What it does || --- | --- |-| `new Okhsla(hue: number, saturation: number, lightness: number, alpha?: number)` | – |+| `new Okhsla(hue: number, saturation: number, lightness: number, alpha?: number)` | Hue in degrees, saturation, lightness and alpha 0 to 1, in Okhsl. || `Okhsla.from_oklaba(lab: Oklaba): Okhsla` | From Oklab (bevy_color oklab_to_okhsl). || `Okhsla.from(c: Srgba \| LinearRgba \| Hsla): Okhsla` | From any sRGB colour, through Oklab. |-| `.hue: number` | – |-| `.saturation: number` | – |-| `.lightness: number` | – |-| `.alpha: number` | – |+| `.hue: number` | Bevy: The hue channel. [0.0, 360.0] |+| `.saturation: number` | Bevy: The saturation channel. [0.0, 1.0] |+| `.lightness: number` | Bevy: The lightness channel. [0.0, 1.0] |+| `.alpha: number` | Bevy: The alpha channel. [0.0, 1.0] || `.to_oklaba(): Oklaba` | To Oklab (bevy_color okhsl_to_oklab). |-| `.to_linear(): LinearRgba` | – |-| `.to_srgba(): Srgba` | – |-| `.with_alpha(alpha: number): Okhsla` | – |+| `.to_linear(): LinearRgba` | The same colour as a LinearRgba. |+| `.to_srgba(): Srgba` | The same colour as an Srgba. |+| `.with_alpha(alpha: number): Okhsla` | The same colour with this alpha. |Used in: [ui/widgets/feathers_gallery](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/widgets/feathers_gallery.tsx).@@ -116,19 +116,19 @@ Used in: [ui/widgets/feathers_gallery](https://github.com/shinyobjectz/raea/blobBevy's Oklaba: perceptual lightness and two opponent axes.-Bevy: `bevy_color::Oklaba`.+Bevy: `bevy_color::oklaba::Oklaba`.| Member | What it does || --- | --- |-| `new Oklaba(lightness: number, a: number, b: number, alpha?: number)` | – |-| `Oklaba.from(c: Oklcha \| Rgb): Oklaba` | – |-| `.lightness: number` | – |-| `.a: number` | – |-| `.b: number` | – |-| `.alpha: number` | – |-| `.to_linear(): LinearRgba` | – |-| `.to_srgba(): Srgba` | – |-| `.mix(o: Oklaba, t: number): Oklaba` | – |+| `new Oklaba(lightness: number, a: number, b: number, alpha?: number)` | Perceptual lightness, a (green to red), b (blue to yellow) and alpha. |+| `Oklaba.from(c: Oklcha \| Rgb): Oklaba` | The same colour from an Srgba, LinearRgba or Oklcha. |+| `.lightness: number` | Bevy: The 'lightness' channel. [0.0, 1.0] |+| `.a: number` | Bevy: The 'a' channel. [-1.0, 1.0] |+| `.b: number` | Bevy: The 'b' channel. [-1.0, 1.0] |+| `.alpha: number` | Bevy: The alpha channel. [0.0, 1.0] |+| `.to_linear(): LinearRgba` | The same colour as a LinearRgba. |+| `.to_srgba(): Srgba` | The same colour as an Srgba. |+| `.mix(o: Oklaba, t: number): Oklaba` | The colour `t` (0 to 1) of the way to `o`, mixed in this space. |Used in: [animation/color_animation](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/animation/color_animation.tsx).@@ -136,19 +136,19 @@ Used in: [animation/color_animation](https://github.com/shinyobjectz/raea/blob/mBevy's Oklcha: Oklab's lightness, chroma and hue (degrees).-Bevy: `bevy_color::Oklcha`.+Bevy: `bevy_color::oklcha::Oklcha`.| Member | What it does || --- | --- |-| `new Oklcha(lightness: number, chroma: number, hue: number, alpha?: number)` | – |-| `Oklcha.from(c: Rgb \| Oklaba): Oklcha` | – |-| `.lightness: number` | – |-| `.chroma: number` | – |-| `.hue: number` | – |-| `.alpha: number` | – |-| `.to_linear(): LinearRgba` | – |-| `.to_srgba(): Srgba` | – |-| `.mix(o: Oklcha, t: number): Oklcha` | – |+| `new Oklcha(lightness: number, chroma: number, hue: number, alpha?: number)` | Perceptual lightness, chroma, hue in degrees and alpha. |+| `Oklcha.from(c: Rgb \| Oklaba): Oklcha` | The same colour from an Srgba, LinearRgba or Oklaba. |+| `.lightness: number` | Bevy: The 'lightness' channel. [0.0, 1.0] |+| `.chroma: number` | Bevy: The 'chroma' channel. [0.0, 1.0] |+| `.hue: number` | Bevy: The 'hue' channel. [0.0, 360.0] |+| `.alpha: number` | Bevy: The alpha channel. [0.0, 1.0] |+| `.to_linear(): LinearRgba` | The same colour as a LinearRgba. |+| `.to_srgba(): Srgba` | The same colour as an Srgba. |+| `.mix(o: Oklcha, t: number): Oklcha` | The colour `t` (0 to 1) of the way to `o`, mixed in this space. || `.lighter(amount: number): Oklcha` | Bevy's Luminance::lighter: the lightness raised by `amount`, at most 1 || `.darker(amount: number): Oklcha` | Bevy's Luminance::darker: the lightness lowered by `amount`, at least 0 || `.with_alpha(alpha: number): Oklcha` | Bevy's Alpha::with_alpha |@@ -159,19 +159,19 @@ Used in: [animation/color_animation](https://github.com/shinyobjectz/raea/blob/mBevy's Srgba: gamma-encoded colour, each channel 0..1.-Bevy: `bevy_color::Srgba`.+Bevy: `bevy_color::srgba::Srgba`.| Member | What it does || --- | --- |-| `new Srgba(red: number, green: number, blue: number, alpha?: number)` | – |+| `new Srgba(red: number, green: number, blue: number, alpha?: number)` | sRGB red, green, blue and alpha, each 0 to 1. || `Srgba.hex(hex: string): Srgba` | Bevy's Srgba::hex: rgb, rgba, rrggbb or rrggbbaa (the # optional), and also rgb() or a common name |-| `.red: number` | – |-| `.green: number` | – |-| `.blue: number` | – |-| `.alpha: number` | – |+| `.red: number` | Bevy: The red channel. [0.0, 1.0] for SDR colors. |+| `.green: number` | Bevy: The green channel. [0.0, 1.0] for SDR colors. |+| `.blue: number` | Bevy: The blue channel. [0.0, 1.0] for SDR colors. |+| `.alpha: number` | Bevy: The alpha channel. [0.0, 1.0] || `.darker(amount: number): Srgba` | Bevy's Luminance::darker on an Srgba: its linear colour's, encoded again || `.lighter(amount: number): Srgba` | Bevy's Luminance::lighter on an Srgba: its linear colour's, encoded again |-| `.with_alpha(alpha: number): Srgba` | – |+| `.with_alpha(alpha: number): Srgba` | The same colour with this alpha. || `.to_hex(): string` | Bevy's Srgba::to_hex: #RRGGBB (and AA when not opaque), each channel clamped and rounded || `.mix(o: Srgba, t: number): Srgba` | Bevy's Mix: each channel lerped, in f32 |@@ -181,19 +181,19 @@ Used in: [ui/images/image_node](https://github.com/shinyobjectz/raea/blob/main/sBevy's Xyza: CIE 1931 XYZ (D65, as linear sRGB's).-Bevy: `bevy_color::Xyza`.+Bevy: `bevy_color::xyza::Xyza`.| Member | What it does || --- | --- |-| `new Xyza(x: number, y: number, z: number, alpha?: number)` | – |-| `Xyza.from(c: Rgb): Xyza` | – |-| `.x: number` | – |-| `.y: number` | – |-| `.z: number` | – |-| `.alpha: number` | – |-| `.to_linear(): LinearRgba` | – |-| `.to_srgba(): Srgba` | – |-| `.mix(o: Xyza, t: number): Xyza` | – |+| `new Xyza(x: number, y: number, z: number, alpha?: number)` | CIE XYZ and alpha. |+| `Xyza.from(c: Rgb): Xyza` | The same colour from an Srgba or LinearRgba. |+| `.x: number` | Bevy: The x-axis. [0.0, 0.9505] for SDR colors. |+| `.y: number` | Bevy: The y-axis, intended to represent luminance. [0.0, 1.0] for SDR colors. |+| `.z: number` | Bevy: The z-axis. [0.0, 1.0889] for SDR colors. |+| `.alpha: number` | Bevy: The alpha channel. [0.0, 1.0] |+| `.to_linear(): LinearRgba` | The same colour as a LinearRgba. |+| `.to_srgba(): Srgba` | The same colour as an Srgba. |+| `.mix(o: Xyza, t: number): Xyza` | The colour `t` (0 to 1) of the way to `o`, mixed in this space. |Used in: [animation/color_animation](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/animation/color_animation.tsx).diff --git a/docs/manual/reference/sdk/dev_tools.md b/docs/manual/reference/sdk/dev_tools.mdindex 36d0509c..2ad2807f 100644--- a/docs/manual/reference/sdk/dev_tools.md+++ b/docs/manual/reference/sdk/dev_tools.md@@ -42,12 +42,12 @@ function motionLint(lib: MotionLibrary, perf: Performance, o?: { margin?: number| Field | Type | What it is || --- | --- | --- || `frame` (required) | `number` | first and peak frames |-| `peak` (required) | `number` | – |-| `frames` (required) | `number` | – |-| `joint` (required) | `string` | – |-| `kind` (required) | `"speed" \| "jerk" \| "buckle"` | – |+| `peak` (required) | `number` | the frame it's worst on |+| `frames` (required) | `number` | how many frames it lasts |+| `joint` (required) | `string` | the joint it's on |+| `kind` (required) | `"speed" \| "jerk" \| "buckle"` | what's wrong: too fast (speed), a jolt (jerk) or a joint bent past its limit (buckle) || `value` (required) | `number` | the peak's value (degrees a frame, a frame², or degrees past the clip's knee) and what the library allows |-| `limit` (required) | `number` | – |+| `limit` (required) | `number` | what the library allows || `stage` (required) | `Stage` | the first stage that shows it || `causes` (required) | `string[]` | what happened within three frames of it |@@ -55,8 +55,8 @@ function motionLint(lib: MotionLibrary, perf: Performance, o?: { margin?: number| Field | Type | What it is || --- | --- | --- |-| `findings` (required) | `Finding[]` | – |-| `frames` (required) | `number` | – |+| `findings` (required) | `Finding[]` | what's wrong, each with its frames, joint and cause |+| `frames` (required) | `number` | how many frames were checked |### `Stage`diff --git a/docs/manual/reference/sdk/feathers.md b/docs/manual/reference/sdk/feathers.mdindex 71b33d51..e6fa759c 100644--- a/docs/manual/reference/sdk/feathers.md+++ b/docs/manual/reference/sdk/feathers.md@@ -81,7 +81,7 @@ Bevy: `bevy_feathers::controls::FeathersColorSlider`.| Prop | Type | What it does || --- | --- | --- || `value` | `number` | SliderValue: the channel's value, in its range |-| `channel` | `ColorChannel` | – |+| `channel` | `ColorChannel` | which colour channel it sets: Red, Green, Blue, Alpha, or HSL or Okhsl hue, saturation or lightness || `base_color` | `FeathersColor` | SliderBaseColor: the colour the track shows the channel of (white by default) |Also takes the props of [`NodeProps`](ui.md#nodeprops); `PickProps` (`popover`, `onClick`, `onPointerDown`, `onPointerUp`, `onPointerOver`, `onPointerOut`, `onPointerEnter`, `onPointerLeave`, `onPointerMove`).@@ -99,7 +99,7 @@ Bevy: `bevy_feathers::controls::FeathersColorSwatch`.| --- | --- | --- || `color` | `FeathersColor` | ColorSwatchValue: the colour shown over the checkerboard || `opaque_color_percentage` | `number` | how much of its right side shows the colour opaque, in percent |-| `corners` | `RoundedCorners` | – |+| `corners` | `RoundedCorners` | which corners are rounded || `border_radius` | `number` | the corners' radius in px (5 by default), on the corners `corners` names |Also takes the props of [`NodeProps`](ui.md#nodeprops); `PickProps` (`popover`, `onClick`, `onPointerDown`, `onPointerMove`, `onPointerUp`, `onPointerEnter`, `onPointerLeave`, `onPointerOver`, `onPointerOut`).@@ -263,7 +263,7 @@ Bevy: `bevy_feathers::controls::FeathersScrollbar`.| Prop | Type | What it does || --- | --- | --- || `target` (required) | `string` | the Name of the Node it scrolls |-| `orientation` | `ControlOrientation` | – |+| `orientation` | `ControlOrientation` | which way it scrolls: Vertical or Horizontal || `hidden` | `boolean` | hidden: the auto_hide decision, made by the list view (Bevy makes it after layout) |Also takes the props of [`NodeProps`](ui.md#nodeprops); `PickProps` (`popover`, `onClick`, `onPointerDown`, `onPointerUp`, `onPointerOver`, `onPointerOut`, `onPointerEnter`, `onPointerLeave`, `onPointerMove`).@@ -277,7 +277,7 @@ Bevy: `bevy_feathers::controls::FeathersSelect`.| Prop | Type | What it does || --- | --- | --- || `options` (required) | `ReactNode` | its options: FeathersListRows, one of them selected (list_rows_from_strings) |-| `corners` | `RoundedCorners` | – |+| `corners` | `RoundedCorners` | which corners are rounded || `max_visible` | `number` | the popup's most rows (8 by default) |Also takes the props of [`NodeProps`](ui.md#nodeprops); `PickProps` (`popover`, `onClick`, `onPointerDown`, `onPointerUp`, `onPointerOver`, `onPointerOut`, `onPointerEnter`, `onPointerLeave`, `onPointerMove`).@@ -294,7 +294,7 @@ Bevy: `bevy_feathers::controls::FeathersSlider`.| --- | --- | --- || `value` | `number` | SliderValue (min by default) || `min` | `number` | SliderRange's ends (0 to 1 by default) |-| `max` | `number` | – |+| `max` | `number` | SliderRange's top end (1) || `precision` | `number` | SliderPrecision: decimal places shown (0 by default) || `step` | `number` | SliderStep: a drag's or key's step || `disabled` | `boolean` | InteractionDisabled |@@ -359,7 +359,7 @@ a flat table of units with scale factors, as a UnitsFormat.Bevy: `bevy_feathers::controls::StandardUnitKind`.-Also takes the props of `String` (`toString`, `charAt`, `charCodeAt`, `concat`, `indexOf`, `lastIndexOf`, `localeCompare`, `match`, `replace`, `search`, `slice`, `split`, `substring`, `toLowerCase`, `toLocaleLowerCase`, `toUpperCase`, `toLocaleUpperCase`, `trim`, `length`, `substr`, `valueOf`, `codePointAt`, `includes`, `endsWith`, `normalize`, `repeat`, `startsWith`, `anchor`, `big`, `blink`, `bold`, `fixed`, `fontcolor`, `fontsize`, `italics`, `link`, `small`, `strike`, `sub`, `sup`, `padStart`, `padEnd`, `trimEnd`, `trimStart`, `trimLeft`, `trimRight`, `matchAll`, `replaceAll`, `at`, `isWellFormed`, `toWellFormed`, `__@iterator@151`).+Also takes the props of `String` (`toString`, `charAt`, `charCodeAt`, `concat`, `indexOf`, `lastIndexOf`, `localeCompare`, `match`, `replace`, `search`, `slice`, `split`, `substring`, `toLowerCase`, `toLocaleLowerCase`, `toUpperCase`, `toLocaleUpperCase`, `trim`, `length`, `substr`, `valueOf`, `codePointAt`, `includes`, `endsWith`, `normalize`, `repeat`, `startsWith`, `anchor`, `big`, `blink`, `bold`, `fixed`, `fontcolor`, `fontsize`, `italics`, `link`, `small`, `strike`, `sub`, `sup`, `padStart`, `padEnd`, `trimEnd`, `trimStart`, `trimLeft`, `trimRight`, `matchAll`, `replaceAll`, `at`, `isWellFormed`, `toWellFormed`, `__@iterator@155`).### `ThemeBackgroundColor`@@ -369,8 +369,8 @@ Bevy: `bevy_feathers::theme::ThemeBackgroundColor`.| Prop | Type | What it does || --- | --- | --- |-| `token` (required) | `ThemeToken` | – |-| `children` (required) | `ReactElement` | – |+| `token` (required) | `ThemeToken` | the theme colour's token |+| `children` (required) | `ReactElement` | the one element it colours |Used in: [ui/widgets/feathers_counter](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/widgets/feathers_counter.tsx), [ui/widgets/feathers_number_input](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/widgets/feathers_number_input.tsx), [ui/widgets/feathers_gallery](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/widgets/feathers_gallery.tsx).@@ -382,8 +382,8 @@ Bevy: `bevy_feathers::theme::ThemeBorderColor`.| Prop | Type | What it does || --- | --- | --- |-| `token` (required) | `ThemeToken` | – |-| `children` (required) | `ReactElement` | – |+| `token` (required) | `ThemeToken` | the theme colour's token |+| `children` (required) | `ReactElement` | the one element it borders |### `ThemeContext`@@ -393,8 +393,8 @@ Bevy: `bevy_feathers::theme::ThemeContext`.| Prop | Type | What it does || --- | --- | --- |-| `level` (required) | `SurfaceLevel` | – |-| `children` | `ReactNode` | – |+| `level` (required) | `SurfaceLevel` | the surface level they sit on |+| `children` | `ReactNode` | the widgets on it |### `ThemedText`@@ -414,8 +414,8 @@ Bevy: `bevy_feathers::theme::ThemeTextColor`.| Prop | Type | What it does || --- | --- | --- |-| `token` (required) | `ThemeToken` | – |-| `children` (required) | `ReactElement` | – |+| `token` (required) | `ThemeToken` | the theme colour's token |+| `children` (required) | `ReactElement` | the Text it colours |### `UiTheme`@@ -425,8 +425,8 @@ Bevy: `bevy_feathers::theme::UiTheme`.| Prop | Type | What it does || --- | --- | --- |-| `theme` (required) | `ThemeProps` | – |-| `children` | `ReactNode` | – |+| `theme` (required) | `ThemeProps` | the theme's colours by token |+| `children` | `ReactNode` | the widgets that use it |Used in: [ui/styling/box_shadow](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/styling/box_shadow.tsx), [ui/widgets/virtual_keyboard](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/widgets/virtual_keyboard.tsx), [ui/widgets/feathers_counter](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/widgets/feathers_counter.tsx), [ui/widgets/feathers_number_input](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/widgets/feathers_number_input.tsx), [ui/widgets/feathers_gallery](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/widgets/feathers_gallery.tsx), [3d/split_screen](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/split_screen.tsx), [2d/2d_shapes](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/2d/2d_shapes.tsx).@@ -440,7 +440,7 @@ Bevy: `bevy_feathers::controls::VirtualKeyboard`.| Prop | Type | What it does || --- | --- | --- |-| `keys` (required) | `string[][]` | – |+| `keys` (required) | `string[][]` | the keyboard's rows, each a row of key captions |Used in: [ui/widgets/virtual_keyboard](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/widgets/virtual_keyboard.tsx).@@ -874,9 +874,9 @@ a feathers icon: its picture and size in px| Field | Type | What it is || --- | --- | --- |-| `image` (required) | `string` | – |-| `width` (required) | `number` | – |-| `height` (required) | `number` | – |+| `image` (required) | `string` | the icon's picture |+| `width` (required) | `number` | in px |+| `height` (required) | `number` | in px |### `FeathersListRowProps`@@ -991,7 +991,7 @@ Bevy: `bevy_feathers::controls::UnitsFormat`.| Field | Type | What it is || --- | --- | --- |-| `id` (required) | `string` | – |-| `format` (required) | `(value: NumberInputValue, editing: boolean) => string` | – |+| `id` (required) | `string` | the format's name |+| `format` (required) | `(value: NumberInputValue, editing: boolean) => string` | the value as text: for display, or for editing when \`editing\` is true |<!-- generated:end -->diff --git a/docs/manual/reference/sdk/gizmos.md b/docs/manual/reference/sdk/gizmos.mdindex 748abac7..60160ec4 100644--- a/docs/manual/reference/sdk/gizmos.md+++ b/docs/manual/reference/sdk/gizmos.md@@ -15,7 +15,7 @@ frame you're looking at.import { Gizmo, Overlay, overlays } from "raea/gizmos"```-`raea/gizmos` exports 2 components, 1 function, 2 types. Bevy's counterpart: `bevy_gizmos`. Source: [sdk/raea/src/gizmos.ts](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/src/gizmos.ts).+`raea/gizmos` exports 2 components, 1 function, 3 types. Bevy's counterpart: `bevy_gizmos`. Source: [sdk/raea/src/gizmos.ts](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/src/gizmos.ts).## Components@@ -36,8 +36,8 @@ Its children only in a render asked for the overlay `name`.| Prop | Type | What it does || --- | --- | --- |-| `name` (required) | `string` | – |-| `children` | `ReactNode` | – |+| `name` (required) | `string` | the overlay's name, as the render asks for it |+| `children` | `ReactNode` | what the overlay draws |## Functions@@ -68,9 +68,13 @@ type GizmoColor = string | [number, number, number, number] | { red: number; gre| `color` | `GizmoColor \| GizmoColor[]` | one colour for every point, or one per point of `lines` (two per segment) then `strip`: "#rrggbb", Bevy's LinearRgba (above 1 for HDR, as bevy_gizmos takes it) or Srgba, or linear [r, g, b, a] || `width` | `number` | line width in pixels (Bevy's default 2) || `depthBias` | `number` | -1 always in front of geometry, 0 depth-tested as it is (Bevy's GizmoLineConfig and depth_bias) |-| `position` | `Vec3` | – |-| `rotation` | `Vec3` | – |-| `scale` | `Vec3 \| number` | – |-| `name` | `string` | – |+| `position` | `Vec3` | where it stands, metres (x, y, z) |+| `rotation` | `Vec3` | its rotation, Euler angles in radians (x, y, z) |+| `scale` | `Vec3 \| number` | its scale: one number, or x, y and z |+| `name` | `string` | the entity's name, for picking, the inspector and world.* |++### `OverlayProps`++The props of [`Overlay`](#overlay), tabled there.<!-- generated:end -->diff --git a/docs/manual/reference/sdk/image.md b/docs/manual/reference/sdk/image.mdindex 5f798405..11286281 100644--- a/docs/manual/reference/sdk/image.md+++ b/docs/manual/reference/sdk/image.md@@ -61,9 +61,9 @@ Bevy: `bevy_image::texture_atlas_builder::TextureAtlasBuilder`, `bevy_image::tex| Member | What it does || --- | --- |-| `.padding(p: [number, number]): TextureAtlasBuilder` | – |-| `.addTexture(src: string): TextureAtlasBuilder` | – |-| `.build({ sampler }?: { sampler?: SamplerSpec \| undefined; }): BuiltAtlas` | – |+| `.padding(p: [number, number]): TextureAtlasBuilder` | Whole px of space around each picture, [x, y]. |+| `.addTexture(src: string): TextureAtlasBuilder` | Adds a picture, packed in the order added. |+| `.build({ sampler }?: { sampler?: SamplerSpec \| undefined; }): BuiltAtlas` | Packs the atlas, with its own sampler if given (Bevy's default otherwise). |## Types@@ -73,9 +73,9 @@ What a <Sprite> takes to show a built atlas: the whole of it, or one of its pict| Field | Type | What it is || --- | --- | --- |-| `src` (required) | `string` | – |-| `sampler` | `SamplerSpec` | – |-| `atlasPick` | `number` | – |+| `src` (required) | `string` | the atlas picture |+| `sampler` | `SamplerSpec` | how it's sampled (the atlas's own sampler) |+| `atlasPick` | `number` | which of its pictures shows (the whole atlas when left out) |### `BuiltAtlas`@@ -84,20 +84,20 @@ A built atlas: `image` the whole atlas as a sprite's picture, `sources.handle(te| Field | Type | What it is || --- | --- | --- |-| `image` (required) | `AtlasSprite` | – |-| `sources` (required) | `{ handle(texture: string): AtlasSprite }` | – |+| `image` (required) | `AtlasSprite` | the whole atlas, as a sprite's picture |+| `sources` (required) | `{ handle(texture: string): AtlasSprite }` | \`handle(texture)\`: one of the pictures packed into it, by its file |### `ImagePlaneProps`| Field | Type | What it is || --- | --- | --- || `src` (required) | `string` | a picture in the media folder: staticFile("poster.png") |-| `name` | `string` | – |+| `name` | `string` | the entity's name, for picking and the inspector || `width` | `number` | width in scene units (1 by default); height follows the picture unless given |-| `height` | `number` | – |-| `position` | `Vec3` | – |+| `height` | `number` | in scene units (follows the picture's shape by default) |+| `position` | `Vec3` | where its centre stands, metres (x, y, z) || `rotation` | `Vec3` | radians |-| `scale` | `number \| Vec3` | – |+| `scale` | `number \| Vec3` | one number, or x, y and z || `quaternion` | `[number, number, number, number]` | a turn as a quaternion [x, y, z, w], instead of `rotation` (a card turned to face a point) || `shadow` | `boolean` | false: the card casts no shadow (a cursor or a UI floating in the scene); true by default || `cutout` | `boolean` | the picture cut out at half alpha instead of blended: its clear parts are no surface at all (no fog on them, no sorting) and its shadow is the picture's shape, not the card's. For hard-edged pictures: a baked cloud, a sprite |@@ -113,7 +113,7 @@ The props of [`Img`](#img), tabled there.| Field | Type | What it is || --- | --- | --- || `src` (required) | `string` | a video in the media folder: staticFile("clip.mp4") |-| `name` | `string` | – |+| `name` | `string` | the entity's name, for picking, the inspector and world.* || `time` | `number` | the clip's time on this frame, in seconds (by default the Sequence's: frame / fps) || `k1` | `number` | the lens's radial distortion (SIMPLE_RADIAL's k1, from a solve): the plate is drawn undistorted, so the footage's straight lines are straight where the 3D's are |diff --git a/docs/manual/reference/sdk/index.md b/docs/manual/reference/sdk/index.mdindex caaab01f..e2c31834 100644--- a/docs/manual/reference/sdk/index.md+++ b/docs/manual/reference/sdk/index.md@@ -68,13 +68,13 @@ Bevy's 3D: cameras, lights, materials, meshes and the frame after it's drawn.| --- | --- | --- || [`raea/3d`](3d.md) | raea's scene layer: models, physics, splats, matchmoves, instancing, custom shader passes and 3D text. | 70 components, 4 hooks, 26 functions, 3 classes, 12 values, 126 types || [`raea/camera`](camera.md) | Cameras and the views they make: Camera3d, the Canvas3D a 2D scene draws in, HDR and matchmoved cameras. | 5 components, 1 hook, 3 functions, 9 types |-| [`raea/light`](light.md) | Bevy's lights in Bevy's units, environments, skies and daylight. | 15 components, 9 functions, 2 values, 13 types |+| [`raea/light`](light.md) | Bevy's lights in Bevy's units, environments, skies and daylight. | 15 components, 9 functions, 2 values, 15 types || [`raea/pbr`](pbr.md) | Materials and volumes: StandardMaterial, extended and toon materials, custom shaders, decals, fog and fire. | 22 components, 1 function, 1 value, 35 types || [`raea/mesh`](mesh.md) | Shapes and solids: Mesh3d and Mesh2d, Bevy's primitives, buffer meshes, instancing and exact solids. | 14 components, 1 function, 2 classes, 10 values, 24 types || [`raea/transform`](transform.md) | Where things are: Bevy's Transform and Quat, and nesting. | 2 functions, 2 values, 4 types || [`raea/post_process`](post_process.md) | What's done to the frame after it's drawn: tone mapping, bloom, depth of field, motion blur, grading and outlines. | 12 components, 14 types || [`raea/picking`](picking.md) | What the pointer is over: the nearest part under it, and the ray it casts. | 2 functions, 3 types |-| [`raea/gizmos`](gizmos.md) | Lines drawn for looking: Bevy's gizmos and debug overlays. | 2 components, 1 function, 2 types |+| [`raea/gizmos`](gizmos.md) | Lines drawn for looking: Bevy's gizmos and debug overlays. | 2 components, 1 function, 3 types |## 2D and UIdiff --git a/docs/manual/reference/sdk/light.md b/docs/manual/reference/sdk/light.mdindex d0d58743..1f6005c7 100644--- a/docs/manual/reference/sdk/light.md+++ b/docs/manual/reference/sdk/light.md@@ -31,7 +31,7 @@ function Lights() {import { AmbientLight, Atmosphere, bounce, clearSun } from "raea/light"```-`raea/light` exports 15 components, 9 functions, 2 values, 13 types. Bevy's counterpart: `bevy_light`. Source: [sdk/raea/src/light.ts](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/src/light.ts).+`raea/light` exports 15 components, 9 functions, 2 values, 15 types. Bevy's counterpart: `bevy_light`. Source: [sdk/raea/src/light.ts](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/src/light.ts).## Components@@ -44,7 +44,7 @@ Bevy: `bevy_light::ambient_light::AmbientLight`.Takes [`AmbientLightProps`](#ambientlightprops)'s props.-Used in: [defaults/parts](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/defaults/parts.tsx), [shader_advanced/deferred_raymarch](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/shader_advanced/deferred_raymarch.tsx), [manual: turntable](https://github.com/shinyobjectz/raea/blob/main/docs/manual/examples/turntable.tsx).+Used in: [defaults/parts](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/defaults/parts.tsx), [shader_advanced/deferred_raymarch](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/shader_advanced/deferred_raymarch.tsx).### `Atmosphere`@@ -64,9 +64,9 @@ windows' own light comes from <WindowLight>.| Prop | Type | What it does || --- | --- | --- |-| `day` (required) | `Day` | – |-| `indoor` | `number` | – |-| `softShadow` | `boolean \| number` | – |+| `day` (required) | `Day` | the day outside, from `daylight` |+| `indoor` | `number` | the room's daylight factor, the share of the outside light its bounce gives as an even fill (0.02) |+| `softShadow` | `boolean \| number` | the sun's shadow softness (0.6): true, or a number, as a DirectionalLight's |### `DirectionalLight`@@ -79,11 +79,11 @@ Bevy: `bevy_light::directional_light::DirectionalLight`.| `illuminance` | `number` | lux on a surface facing it (Bevy's default 10,000, light_consts::lux::AMBIENT_DAYLIGHT; full sun is about 100,000) || `shadow_maps_enabled` | `boolean` | Bevy: Whether this light casts shadows. || `soft_shadow_size` | `number \| null` | soft shadows (PCSS): the sun's size as its shadows see it, in metres |-| `children` | `ReactNode` | – |+| `children` | `ReactNode` | Bevy components on the light: shadow settings, cascades |Also takes the props of `LightCommon` (`color`, `name`, `visibility`, `transform`, `shadow_depth_bias`, `shadow_normal_bias`, `volumetric`).-Used in: [ui/render_ui_to_texture](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/render_ui_to_texture.tsx), [3d/fog_volumes](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/fog_volumes.tsx), [3d/shadow_caster_receiver](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/shadow_caster_receiver.tsx), [3d/split_screen](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/split_screen.tsx), [3d/pbr](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/pbr.tsx), [3d/mesh_ray_cast](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/mesh_ray_cast.tsx), [3d/atmospheric_fog](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/atmospheric_fog.tsx), [3d/3d_viewport_to_world](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/3d_viewport_to_world.tsx), and 16 more.+Used in: [ui/render_ui_to_texture](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/render_ui_to_texture.tsx), [3d/fog_volumes](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/fog_volumes.tsx), [3d/shadow_caster_receiver](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/shadow_caster_receiver.tsx), [3d/split_screen](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/split_screen.tsx), [3d/pbr](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/pbr.tsx), [3d/mesh_ray_cast](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/mesh_ray_cast.tsx), [3d/atmospheric_fog](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/atmospheric_fog.tsx), [3d/3d_viewport_to_world](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/3d_viewport_to_world.tsx), and 15 more.### `Environment`@@ -114,8 +114,6 @@ Used in: [3d/rotate_environment_map](https://github.com/shinyobjectz/raea/blob/mThe same light as a resource, as Bevy 0.20 names it. (A function, not a const alias: an alias would keep 3D code ina 2D bundle through the prelude.)-Bevy: `bevy_light::GlobalAmbientLight`.-Takes [`AmbientLightProps`](#ambientlightprops)'s props.Used in: [3d/fog_volumes](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/fog_volumes.tsx), [3d/fog](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/fog.tsx), [3d/spherical_area_lights](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/spherical_area_lights.tsx), [3d/lightmaps](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/lightmaps.tsx), [3d/spotlight](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/spotlight.tsx), [animation/animated_mesh](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/animation/animated_mesh.tsx), [animation/animated_transform](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/animation/animated_transform.tsx), [gltf/gltf_skinned_mesh](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/gltf/gltf_skinned_mesh.tsx).@@ -224,12 +222,12 @@ A window's light as a lamp (windowLight), wide and soft, shadowed.| Prop | Type | What it does || --- | --- | --- |-| `day` (required) | `Day` | – |-| `room` (required) | `Room` | – |-| `opening` (required) | `Opening` | – |-| `transmit` | `number` | – |-| `ground` | `number` | – |-| `name` | `string` | – |+| `day` (required) | `Day` | the day outside |+| `room` (required) | `Room` | the room the window is in |+| `opening` (required) | `Opening` | the window: one of the room's openings |+| `transmit` | `number` | the share of light the glass lets through (0.75) |+| `ground` | `number` | the ground's reflectance outside (0.2) |+| `name` | `string` | the light's name (window-WALL-AT by default) |## Functions@@ -335,8 +333,8 @@ Lights are given in Bevy's own units.| Field | Type | What it is || --- | --- | --- |-| `name` | `string` | – |-| `color` | `string` | – |+| `name` | `string` | the entity's name, for picking, the inspector and world.* |+| `color` | `string` | its colour, as CSS writes one (a name, hex, rgb()) || `brightness` | `number` | cd/m² (Bevy's default 80) |### `AtmosphereProps`@@ -352,18 +350,22 @@ The day outside, in physical units, for one set.| Field | Type | What it is || --- | --- | --- |-| `sky` (required) | `string` | – |+| `sky` (required) | `string` | the sky panorama's file || `rotation` (required) | `number` | the panorama's turn that puts its sun where the day's is (radians, as <Environment rotation>) || `sunDir` (required) | `Vec3` | toward the sun, world || `sunLux` (required) | `number` | the sun's lux on a surface facing it, its colour temperature |-| `sunK` (required) | `number` | – |+| `sunK` (required) | `number` | the sun's colour temperature, kelvin || `sunGround` (required) | `number` | the sun's and the sky's lux on level ground outside |-| `skyGround` (required) | `number` | – |+| `skyGround` (required) | `number` | the sky's lux on level ground outside || `skyNits` (required) | `number` | the sky's mean luminance (cd/m²) and colour temperature |-| `skyK` (required) | `number` | – |+| `skyK` (required) | `number` | the sky's colour temperature, kelvin || `scale` (required) | `number` | cd/m² per unit of the panorama || `elevation` (required) | `number` | the sun's elevation (degrees) the light was made for, and the panorama's own (a different height shows in its shadows' length outside, never in the room's light) |-| `skyElevation` (required) | `number \| null` | – |+| `skyElevation` (required) | `number \| null` | the panorama's own sun elevation, degrees (null for an overcast one) |++### `DaylightProps`++The props of [`Daylight`](#daylight), tabled there.### `DirectionalLightProps`@@ -429,4 +431,8 @@ The props of [`SolariLighting`](#solarilighting), tabled there.The props of [`SpotLight`](#spotlight), tabled there.+### `WindowLightProps`++The props of [`WindowLight`](#windowlight), tabled there.+<!-- generated:end -->diff --git a/docs/manual/reference/sdk/math.md b/docs/manual/reference/sdk/math.mdindex 8639eae2..663a49ad 100644--- a/docs/manual/reference/sdk/math.md+++ b/docs/manual/reference/sdk/math.md@@ -139,31 +139,31 @@ type ExtrapolateMode = "extend" | "clamp" | "identity" | "wrap"| Field | Type | What it is || --- | --- | --- |-| `easing` | `EasingFn \| EasingFn[]` | – |-| `extrapolateLeft` | `ExtrapolateMode` | – |-| `extrapolateRight` | `ExtrapolateMode` | – |+| `easing` | `EasingFn \| EasingFn[]` | the curve between keyframes: one for all, or one a segment |+| `extrapolateLeft` | `ExtrapolateMode` | below the first keyframe: extend the line (default), clamp to it, identity (the input itself) or wrap |+| `extrapolateRight` | `ExtrapolateMode` | past the last keyframe: extend (default), clamp, identity or wrap |### `SpringConfig`| Field | Type | What it is || --- | --- | --- |-| `mass` | `number` | – |-| `damping` | `number` | – |-| `stiffness` | `number` | – |-| `overshootClamping` | `boolean` | – |+| `mass` | `number` | how heavy the spring's weight is (1): heavier is slower and swings further |+| `damping` | `number` | how fast the swing dies (10): lower bounces more |+| `stiffness` | `number` | how hard the spring pulls (100): stiffer is quicker |+| `overshootClamping` | `boolean` | stop at `to` the first time it gets there, with no overshoot (false) |### `SpringOptions`| Field | Type | What it is || --- | --- | --- |-| `frame` (required) | `number` | – |-| `fps` (required) | `number` | – |-| `from` | `number` | – |-| `to` | `number` | – |-| `config` | `SpringConfig` | – |-| `durationInFrames` | `number` | – |-| `durationRestThreshold` | `number` | – |-| `delay` | `number` | – |-| `reverse` | `boolean` | – |+| `frame` (required) | `number` | the frame to sample, usually useCurrentFrame() |+| `fps` (required) | `number` | frames a second, from useVideoConfig() |+| `from` | `number` | the value it starts at (0) |+| `to` | `number` | the value it settles at (1) |+| `config` | `SpringConfig` | the spring: mass, damping, stiffness, overshootClamping |+| `durationInFrames` | `number` | stretch or squeeze the spring to settle in this many frames |+| `durationRestThreshold` | `number` | how close to `to`, as a share of the travel, counts as settled when timing it (0.005) |+| `delay` | `number` | frames before it starts (0) |+| `reverse` | `boolean` | play it backwards: from `to` back to `from` |<!-- generated:end -->diff --git a/docs/manual/reference/sdk/mesh.md b/docs/manual/reference/sdk/mesh.mdindex 359e613e..f315ac90 100644--- a/docs/manual/reference/sdk/mesh.md+++ b/docs/manual/reference/sdk/mesh.md@@ -76,15 +76,9 @@ Also takes the props of [`ConicalFrustumProps`](#conicalfrustumprops) (`radius_tBevy's Cuboid: `<Cuboid half_size={[1, 0.5, 1]} />` is a Box of args [2, 1, 2].-Bevy: `bevy_shape::Cuboid`.+Also takes the props of [`CuboidProps`](3d.md#cuboidprops) (`half_size`); `BoxProps` (`args`).-| Prop | Type | What it does |-| --- | --- | --- |-| `args` | `[number, number, number]` | – |--Also takes the props of [`CuboidProps`](3d.md#cuboidprops) (`half_size`).--Used in: [ui/render_ui_to_texture](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/render_ui_to_texture.tsx), [ui/widgets/viewport_node](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/widgets/viewport_node.tsx), [3d/fog](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/fog.tsx), [3d/transparency_3d](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/transparency_3d.tsx), [3d/animated_material](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/animated_material.tsx), [3d/two_passes](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/two_passes.tsx), [3d/spotlight](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/spotlight.tsx), [3d/orthographic](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/orthographic.tsx), and 34 more.+Used in: [ui/render_ui_to_texture](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/render_ui_to_texture.tsx), [ui/widgets/viewport_node](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/widgets/viewport_node.tsx), [3d/fog](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/fog.tsx), [3d/transparency_3d](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/transparency_3d.tsx), [3d/animated_material](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/animated_material.tsx), [3d/two_passes](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/two_passes.tsx), [3d/spotlight](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/spotlight.tsx), [3d/orthographic](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/orthographic.tsx), and 33 more.### `Cylinder`@@ -124,13 +118,13 @@ shadow="only" draws it with the shadow-only material (engine/render shadow_only.| Prop | Type | What it does || --- | --- | --- |-| `transform` | `TransformValue` | – |+| `transform` | `TransformValue` | where it stands: translation, rotation (a quaternion) and scale, as Bevy's Transform || `visibility` | `"Visible" \| "Hidden" \| "Inherited"` | Bevy's Visibility: "Hidden" draws nothing; "Visible" and "Inherited" draw |-| `children` | `ReactNode` | – |+| `children` | `ReactNode` | its material and child entities |Also takes the props of `MeshProps` (`animate`, `name`, `pass`, `quaternion`, `allowOverlap`, `posed`, `shape`, `driven`, `shadow`, `material`, `castShadow`, `surface`, `receiveShadow`, `attributes`, `compressed`, `layers`); `PointerHandlers3d` (`onClick`, `onDrag`, `onDragEnd`, `onDragEnter`, `onDragLeave`, `onDragOver`, `onDragStart`, `onDrop`, `onPointerDown`, `onPointerMove`, `onPointerUp`, `onPointerEnter`, `onPointerLeave`, `onPointerOver`, `onPointerOut`, `onWheel`).-Used in: [ui/render_ui_to_texture](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/render_ui_to_texture.tsx), [ui/widgets/viewport_node](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/widgets/viewport_node.tsx), [3d/fog](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/fog.tsx), [3d/vertex_colors](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/vertex_colors.tsx), [3d/rotate_environment_map](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/rotate_environment_map.tsx), [3d/transparency_3d](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/transparency_3d.tsx), [3d/spherical_area_lights](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/spherical_area_lights.tsx), [3d/animated_material](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/animated_material.tsx), and 54 more.+Used in: [ui/render_ui_to_texture](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/render_ui_to_texture.tsx), [ui/widgets/viewport_node](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/widgets/viewport_node.tsx), [3d/fog](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/fog.tsx), [3d/vertex_colors](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/vertex_colors.tsx), [3d/rotate_environment_map](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/rotate_environment_map.tsx), [3d/transparency_3d](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/transparency_3d.tsx), [3d/spherical_area_lights](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/spherical_area_lights.tsx), [3d/animated_material](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/animated_material.tsx), and 53 more.### `MeshSequence`@@ -148,8 +142,6 @@ Used in: [3d/vertex_colors](https://github.com/shinyobjectz/raea/blob/main/sdk/r### `Sphere`-*From Bevy's `bevy_shape::Sphere`:* A sphere primitive, representing the set of all points some distance from the origin-Also takes the props of [`SphereProps`](3d.md#sphereprops) (`args`, `radius`, `ico`, `uv`).Used in: [3d/fog](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/fog.tsx), [3d/rotate_environment_map](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/rotate_environment_map.tsx), [3d/transparency_3d](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/transparency_3d.tsx), [3d/spherical_area_lights](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/spherical_area_lights.tsx), [3d/shadow_caster_receiver](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/shadow_caster_receiver.tsx), [3d/pbr](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/pbr.tsx), [3d/spotlight](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/spotlight.tsx), [3d/rect_light](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/rect_light.tsx), and 7 more.@@ -181,13 +173,12 @@ area and bounds. Offset, combine and move it, then extrude or revolve it into a| Member | What it does || --- | --- |-| `new CrossSection(a: SectionAnswer)` | – || `CrossSection.from(a: SectionAnswer): CrossSection` | From an engine answer (a slice, a projection, an operation). || `CrossSection.of(polygons: Polygons): CrossSection` | Contours, overlaps merged and self-crossings resolved (Manifold's positive fill rule). |-| `.polygons: Polygons` | – |-| `.area: number` | – |-| `.contours: number` | – |-| `.bounds: { min: [number, number]; max: [number, number]; }` | – |+| `.polygons: Polygons` | its contours, each a list of [x, y] points: counter-clockwise solid, clockwise holes |+| `.area: number` | its area, m² |+| `.contours: number` | how many contours it has |+| `.bounds: { min: [number, number]; max: [number, number]; }` | its bounding box's low and high corners || `.union(...others: CrossSection[]): CrossSection` | This and the others together. || `.minus(...others: CrossSection[]): CrossSection` | This with the others cut away. || `.intersect(...others: CrossSection[]): CrossSection` | Only where this and every other overlap. |@@ -211,8 +202,8 @@ A handle to a native solid. Free it when done with many (or let the run end).| Member | What it does || --- | --- |-| `new Solid(id: number, expr: string)` | – |-| `.id: number` | – |+| `new Solid(id: number, expr: string)` | A handle to native solid `id`, which `expr` rebuilds; the shape functions make these, rarely you. |+| `.id: number` | the native solid's handle || `.expr: string` | the expression that rebuilds this solid (what a mesh row draws) || `.union(...others: Solid[]): Solid` | This and the others together. || `.minus(...others: Solid[]): Solid` | This with the others cut away. |@@ -312,8 +303,8 @@ type Animate3d = Record<string, TrackSpec | TrackSpec[] | Keys> | Move| Field | Type | What it is || --- | --- | --- |-| `min` (required) | `Vec3` | – |-| `max` (required) | `Vec3` | – |+| `min` (required) | `Vec3` | the low corner |+| `max` (required) | `Vec3` | the high corner |### `BufferMeshProps`@@ -332,23 +323,23 @@ Bevy's Capsule3d: radius and half_length, the straight part's half (0.5 each by| Field | Type | What it is || --- | --- | --- |-| `radius` | `number` | – |-| `half_length` | `number` | – |-| `args` | `[number, number]` | – |+| `radius` | `number` | metres (0.5) |+| `half_length` | `number` | half the straight part's length, metres (0.5) |+| `args` | `[number, number]` | [radius, length of the straight part] |### `CapsuleProps`| Field | Type | What it is || --- | --- | --- |-| `args` | `[number, number]` | – |+| `args` | `[number, number]` | [radius, length of the straight part] ([0.5, 1]) |### `ConeProps`| Field | Type | What it is || --- | --- | --- |-| `args` | `[number, number]` | – |-| `radius` | `number` | – |-| `height` | `number` | – |+| `args` | `[number, number]` | [radius, height] |+| `radius` | `number` | the base's radius, metres (0.5) |+| `height` | `number` | metres (1) |### `ConicalFrustumProps`@@ -357,10 +348,10 @@ height (0.5), standing up: a tapered Cylinder of args [radius_top, radius_bottom| Field | Type | What it is || --- | --- | --- |-| `radius_top` | `number` | – |-| `radius_bottom` | `number` | – |-| `height` | `number` | – |-| `args` | `[number, number, number]` | – |+| `radius_top` | `number` | the top end's radius, metres (0.25) |+| `radius_bottom` | `number` | the bottom end's radius, metres (0.5) |+| `height` | `number` | metres (0.5) |+| `args` | `[number, number, number]` | [radius_top, radius_bottom, height] |### `CuboidProps`@@ -368,7 +359,7 @@ Bevy's Cuboid: half its size along each axis ([0.5, 0.5, 0.5], a 1 m cube, as Be| Field | Type | What it is || --- | --- | --- |-| `half_size` | `[number, number, number]` | – |+| `half_size` | `[number, number, number]` | half its size along x, y and z, metres ([0.5, 0.5, 0.5]) |### `CylinderProps`@@ -376,9 +367,9 @@ Bevy's Cuboid: half its size along each axis ([0.5, 0.5, 0.5], a 1 m cube, as Be| Field | Type | What it is || --- | --- | --- |-| `args` | `[number, number, number]` | – |-| `radius` | `number` | – |-| `half_height` | `number` | – |+| `args` | `[number, number, number]` | [radius top, radius bottom, height], as three.js's args |+| `radius` | `number` | metres (0.5) |+| `half_height` | `number` | half its height, metres (0.5) |### `Instance`@@ -387,9 +378,9 @@ copy together). Rotation in radians, XYZ order, as everywhere.| Field | Type | What it is || --- | --- | --- |-| `position` (required) | `Vec3` | – |-| `rotation` | `Vec3` | – |-| `scale` | `number \| Vec3` | – |+| `position` (required) | `Vec3` | where this copy stands, metres, in the Instances' space |+| `rotation` | `Vec3` | its rotation, Euler angles in radians (x, y, z) |+| `scale` | `number \| Vec3` | its scale: one number, or x, y and z |### `InstancesProps`@@ -397,41 +388,41 @@ copy together). Rotation in radians, XYZ order, as everywhere.| --- | --- | --- || `src` | `string` | a glTF file drawn at every placement: staticFile("models/house.glb"). Without it, a geometry child (or `shape`) and a material child draw a mesh at every placement || `at` (required) | `Instance[]` | where each copy stands. Fixed for the shot: the first frame's list is drawn on every frame (move, turn, scale, hide or recolour the whole set by the Instances' own props) |-| `name` | `string` | – |-| `position` | `Vec3` | – |+| `name` | `string` | the entity's name, for picking, the inspector and world.* |+| `position` | `Vec3` | where it stands, metres (x, y, z) || `rotation` | `Vec3` | radians |-| `scale` | `number \| Vec3` | – |+| `scale` | `number \| Vec3` | its scale: one number, or x, y and z || `scene` | `number` | of a glTF: which of its scenes (0 by default) || `shape` | `string \| Solid` | a Manifold solid or its expression for the mesh form; wins over the geometry child || `shadow` | `boolean` | false: the copies cast no shadow (true by default). Grass and flowers by the thousand usually want false || `receiveShadow` | `boolean` | false: no shadow falls on the copies |-| `pass` | `string` | – |+| `pass` | `string` | the composition pass it draws in ("scene" by default) || `children` | `ReactNode` | the mesh form: a geometry and a material (MeshStandardMaterial, MeshPhysicalMaterial or MeshBasicMaterial). The glTF form: MeshStandardMaterial children re-covering its materials, as on a Model |### `Mesh2dProps`| Field | Type | What it is || --- | --- | --- |-| `transform` | `TransformValue` | – |-| `visibility` | `"Inherited" \| "Visible" \| "Hidden"` | – |+| `transform` | `TransformValue` | where it stands: translation, rotation (a quaternion) and scale |+| `visibility` | `"Inherited" \| "Visible" \| "Hidden"` | "Hidden" draws nothing; "Visible" and "Inherited" draw || `children` | `ReactNode` | one of bevy_math's 2D primitives (<Circle>, <Capsule2d>,...) and a <ColorMaterial>, or your own <Material> |-| `name` | `string` | – |-| `onClick` | `(e: Event3d) => void` | – |-| `onDrag` | `(e: Event3d) => void` | – |-| `onDragEnd` | `(e: Event3d) => void` | – |-| `onDragEnter` | `(e: Event3d) => void` | – |-| `onDragLeave` | `(e: Event3d) => void` | – |-| `onDragOver` | `(e: Event3d) => void` | – |-| `onDragStart` | `(e: Event3d) => void` | – |-| `onDrop` | `(e: Event3d) => void` | – |-| `onPointerDown` | `(e: Event3d) => void` | – |-| `onPointerMove` | `(e: Event3d) => void` | – |-| `onPointerUp` | `(e: Event3d) => void` | – |-| `onPointerEnter` | `(e: Event3d) => void` | – |-| `onPointerLeave` | `(e: Event3d) => void` | – |-| `onPointerOver` | `(e: Event3d) => void` | – |-| `onPointerOut` | `(e: Event3d) => void` | – |-| `onWheel` | `(e: Event3d) => void` | – |+| `name` | `string` | the entity's name, for picking, the inspector and world.* |+| `onClick` | `(e: Event3d) => void` | a press and release over the part |+| `onDrag` | `(e: Event3d) => void` | the part pressed is being dragged, each frame it moves |+| `onDragEnd` | `(e: Event3d) => void` | the drag of the part pressed ended |+| `onDragEnter` | `(e: Event3d) => void` | a dragged part came over this one (`dragged` names it) |+| `onDragLeave` | `(e: Event3d) => void` | a dragged part left this one |+| `onDragOver` | `(e: Event3d) => void` | a dragged part is over this one |+| `onDragStart` | `(e: Event3d) => void` | a drag began on the part pressed |+| `onDrop` | `(e: Event3d) => void` | a dragged part was dropped on this one |+| `onPointerDown` | `(e: Event3d) => void` | a button pressed over the part |+| `onPointerMove` | `(e: Event3d) => void` | the pointer moved over the part |+| `onPointerUp` | `(e: Event3d) => void` | a button released over the part |+| `onPointerEnter` | `(e: Event3d) => void` | the pointer came over the part (doesn't bubble) |+| `onPointerLeave` | `(e: Event3d) => void` | the pointer left the part (doesn't bubble) |+| `onPointerOver` | `(e: Event3d) => void` | the pointer came over the part (bubbles, as the DOM's) |+| `onPointerOut` | `(e: Event3d) => void` | the pointer left the part (bubbles) |+| `onWheel` | `(e: Event3d) => void` | the wheel turned over the part (`deltaX`, `deltaY`) || `quat` | `Quat` | Bevy's rotation as it is, a quaternion [x, y, z, w] in Bevy's axes (y up, z toward the viewer), in place of `rotation`: a turn out of the frame's plane too, as a Sprite's Transform takes it (camera/2d_on_ui) || `opacity` | `number` | 0 to 1 (1 by default) |@@ -451,27 +442,27 @@ type MeshAttribute = [MeshVertexAttribute, (number | number[])[]]| Field | Type | What it is || --- | --- | --- |-| `name` | `string` | – |+| `name` | `string` | the entity's name, for picking and the inspector || `src` (required) | `string` | a.rseq (tools/goo writes them; raea_render::meshseq) || `frame` (required) | `number` | which of its frames (clamped) |-| `position` | `Vec3` | – |-| `rotation` | `Vec3` | – |-| `scale` | `number` | – |+| `position` | `Vec3` | where it stands, metres (x, y, z) |+| `rotation` | `Vec3` | its rotation, Euler angles in radians (x, y, z) |+| `scale` | `number` | a uniform scale || `color` | `string` | multiplies the vertex colours |-| `roughness` | `number` | – |-| `metalness` | `number` | – |-| `clearcoat` | `number` | – |-| `clearcoatRoughness` | `number` | – |+| `roughness` | `number` | 0..1, smooth to matte |+| `metalness` | `number` | 0..1, a dielectric to a metal |+| `clearcoat` | `number` | 0..1 strength of a clear varnish layer over the surface |+| `clearcoatRoughness` | `number` | 0..1 roughness of that clear layer || `reflectance` | `number` | 0..1 specular strength at normal incidence (0.5: 4%, a dielectric's) || `subsurface` | `number` | 0..1 light let through (diffuse transmission): a jelly's glow |-| `thickness` | `number` | – |+| `thickness` | `number` | how thick the mesh is, metres, for the light let through || `transmission` | `number` | 0..1 light let straight through and bent (a clear liquid: water, tea, juice), with its index of refraction (1.33 water) and, for a tinted one, the colour it takes after `attenuationDistance` metres through it. Screen space: it refracts what's on screen behind it, and one clear layer doesn't show another through it |-| `ior` | `number` | – |-| `attenuationColor` | `string` | – |-| `attenuationDistance` | `number` | – |-| `opacity` | `number` | – |+| `ior` | `number` | the index of refraction of what light passes through (1.33 water) |+| `attenuationColor` | `string` | the colour light takes after `attenuationDistance` metres through it |+| `attenuationDistance` | `number` | metres through it until light has taken `attenuationColor` |+| `opacity` | `number` | 0..1, see-through to solid || `map` | `string` | a picture over its texture coordinates |-| `doubleSided` | `boolean` | – |+| `doubleSided` | `boolean` | draw the back faces too (an open shell, a petal) |### `PlanBox`@@ -479,8 +470,8 @@ A box on the plan (x, z, metres): the room SDK's Footprint, or any { min, max }.| Field | Type | What it is || --- | --- | --- |-| `min` (required) | `[number, number]` | – |-| `max` (required) | `[number, number]` | – |+| `min` (required) | `[number, number]` | the low corner (x, z), metres |+| `max` (required) | `[number, number]` | the high corner (x, z), metres |### `Plane3dProps`@@ -490,8 +481,8 @@ its two axes ([0.5, 0.5]), laid out as Bevy's PlaneMeshBuilder does: facing +Z i| Field | Type | What it is || --- | --- | --- |-| `normal` | `Vec3` | – |-| `half_size` | `[number, number]` | – |+| `normal` | `Vec3` | the way it faces, along an axis (+Y by default, a floor) |+| `half_size` | `[number, number]` | half its extent along its two axes, metres ([0.5, 0.5]) |### `Polygons`@@ -524,9 +515,9 @@ A cross-section of a solid at a height: its area, how many contours, and the con| Field | Type | What it is || --- | --- | --- |-| `area` (required) | `number` | – |-| `contours` (required) | `number` | – |-| `polygons` (required) | `[number, number][][]` | – |+| `area` (required) | `number` | the section's area, m² |+| `contours` (required) | `number` | how many outlines it has |+| `polygons` (required) | `[number, number][][]` | the outlines, each a list of [x, y] points in the section's plane |### `SphereProps`@@ -535,10 +526,10 @@ subdivisions, or `ico` of them (Bevy's `.ico(n)`, 0 to 80), or a UV sphere of `u| Field | Type | What it is || --- | --- | --- |-| `args` | `[number]` | – |-| `radius` | `number` | – |-| `ico` | `number` | – |-| `uv` | `[number, number]` | – |+| `args` | `[number]` | [radius], as three.js's args |+| `radius` | `number` | metres (0.5) |+| `ico` | `number` | an icosphere of this many subdivisions (5 by default; 0 to 80) |+| `uv` | `[number, number]` | a UV sphere instead: [sectors, stacks] |### `TorusProps`@@ -546,9 +537,9 @@ subdivisions, or `ico` of them (Bevy's `.ico(n)`, 0 to 80), or a UV sphere of `u| Field | Type | What it is || --- | --- | --- |-| `args` | `[number, number]` | – |-| `major_radius` | `number` | – |-| `minor_radius` | `number` | – |+| `args` | `[number, number]` | [major radius, minor radius] |+| `major_radius` | `number` | from the centre to the middle of the tube, metres (0.75) |+| `minor_radius` | `number` | the tube's radius, metres (0.25) |### `Vec3`diff --git a/docs/manual/reference/sdk/pbr.md b/docs/manual/reference/sdk/pbr.mdindex f20eadf4..a851bac1 100644--- a/docs/manual/reference/sdk/pbr.md+++ b/docs/manual/reference/sdk/pbr.md@@ -60,6 +60,8 @@ Bevy's ExtendedMaterial: a StandardMaterial with one of raea's extensions (GridE<ExtendedMaterial base={<StandardMaterial base_color="#cfc8bb" />} extension={<GridExtension cell={0.5} major={2} />} />+Bevy: `bevy_pbr::ExtendedMaterial`.+| Prop | Type | What it does || --- | --- | --- || `base` (required) | `ReactElement` | a <StandardMaterial>, or another <ExtendedMaterial> to put a second extension on (grid and paint both) |@@ -108,10 +110,10 @@ Bevy: `bevy_pbr::mesh_material::MeshMaterial3d<bevy_pbr::extended_material::Exte| Prop | Type | What it does || --- | --- | --- |-| `cell` (required) | `number` | – |-| `major` | `number` | – |-| `color` | `string` | – |-| `edge` | `string` | – |+| `cell` (required) | `number` | world units between grid lines |+| `major` | `number` | cells between heavier lines (4) |+| `color` | `string` | the lines' colour |+| `edge` | `string` | the colour each Box face is outlined in ("" for none) |### `Lightmap`@@ -134,10 +136,10 @@ Used in: [3d/lightmaps](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/| Prop | Type | What it does || --- | --- | --- |-| `breakup` | `number` | – |-| `scale` | `number` | – |-| `color` | `string` | – |-| `amount` | `number` | – |+| `breakup` | `number` | how far tone boundaries wander (0.5) |+| `scale` | `number` | the noise's size in metres (1) |+| `color` | `string` | the colour patches take |+| `amount` | `number` | how far toward `color` the patches go (0.6) |### `ProceduralExtension`@@ -149,21 +151,21 @@ Bevy: `bevy_pbr::mesh_material::MeshMaterial3d<bevy_pbr::extended_material::Exte| Prop | Type | What it does || --- | --- | --- |-| `pattern` (required) | `ProceduralSurface["pattern"]` | – |-| `colors` | `[string, string]` | – |-| `scale` | `number` | – |-| `rough_a` | `number` | – |-| `rough_b` | `number` | – |-| `bump` | `number` | – |-| `tile` | `[number, number]` | – |-| `gap` | `number` | – |-| `gap_color` | `string` | – |-| `dust` | `number` | – |-| `dirt` | `number` | – |-| `edges` | `number` | – |-| `dust_color` | `string` | – |-| `dirt_color` | `string` | – |-| `seed` | `number` | – |+| `pattern` (required) | `ProceduralSurface["pattern"]` | what it draws: noise, wood, marble, stone, brick, tiles, fabric, brushed or plaster |+| `colors` | `[string, string]` | the pattern's two colours |+| `scale` | `number` | how many metres across its features are |+| `rough_a` | `number` | the first colour's roughness, 0..1 |+| `rough_b` | `number` | the second colour's roughness, 0..1 |+| `bump` | `number` | how deep the pattern's relief looks (0 or more) |+| `tile` | `[number, number]` | brick and tiles: a cell's [width, height] in metres |+| `gap` | `number` | brick and tiles: the joints' width in metres |+| `gap_color` | `string` | the joints' colour |+| `dust` | `number` | 0..1 dust on what faces up |+| `dirt` | `number` | 0..1 dirt in joints, hollows, undersides and along the floor line |+| `edges` | `number` | 0..1 wear on the edges, lighter |+| `dust_color` | `string` | the dust's colour |+| `dirt_color` | `string` | the dirt's colour |+| `seed` | `number` | which randomness the pattern uses |### `Refinish`@@ -173,8 +175,8 @@ colour, texture or finish each gives, the rest of it kept (a run of cabinets pai| Prop | Type | What it does || --- | --- | --- |-| `materials` (required) | `MeshStandardMaterialProps[]` | – |-| `children` | `ReactNode` | – |+| `materials` (required) | `MeshStandardMaterialProps[]` | the finishes, each a <MeshStandardMaterial>'s props, over every glTF material or the one its `material` names |+| `children` | `ReactNode` | the models refinished |### `ShaderExtension`@@ -212,7 +214,7 @@ Bevy: `bevy_pbr::pbr_material::StandardMaterial`.Also takes the props of [`StandardMaterialProps`](#standardmaterialprops).-Used in: [ui/render_ui_to_texture](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/render_ui_to_texture.tsx), [ui/widgets/viewport_node](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/widgets/viewport_node.tsx), [3d/fog](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/fog.tsx), [3d/vertex_colors](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/vertex_colors.tsx), [3d/rotate_environment_map](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/rotate_environment_map.tsx), [3d/transparency_3d](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/transparency_3d.tsx), [3d/spherical_area_lights](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/spherical_area_lights.tsx), [3d/lightmaps](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/lightmaps.tsx), and 42 more.+Used in: [ui/render_ui_to_texture](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/render_ui_to_texture.tsx), [ui/widgets/viewport_node](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/widgets/viewport_node.tsx), [3d/fog](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/fog.tsx), [3d/vertex_colors](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/vertex_colors.tsx), [3d/rotate_environment_map](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/rotate_environment_map.tsx), [3d/transparency_3d](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/transparency_3d.tsx), [3d/spherical_area_lights](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/spherical_area_lights.tsx), [3d/lightmaps](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/lightmaps.tsx), and 41 more.### `SurfaceShader`@@ -274,15 +276,15 @@ Bevy: `bevy_pbr::mesh_material::MeshMaterial3d<bevy_pbr::extended_material::Exte| Prop | Type | What it does || --- | --- | --- |-| `amount` (required) | `number` | – |-| `scale` | `number` | – |-| `chips` | `number` | – |-| `grime` | `number` | – |-| `rust` | `number` | – |-| `seed` | `number` | – |-| `chip_color` | `string` | – |-| `grime_color` | `string` | – |-| `rust_color` | `string` | – |+| `amount` (required) | `number` | how worn it is, 0-1 |+| `scale` | `number` | a blotch's size in metres (0.08) |+| `chips` | `number` | chips on edges and a few spots, 0-1 of the wear (0.6) |+| `grime` | `number` | grime low and underneath, 0-1 of the wear (0.5) |+| `rust` | `number` | rust run down in streaks, 0-1 of the wear (0.25) |+| `seed` | `number` | moves the pattern |+| `chip_color` | `string` | what chips show beneath the paint |+| `grime_color` | `string` | the grime's colour |+| `rust_color` | `string` | the rust's colour |## Functions@@ -300,8 +302,6 @@ function volumeShadow(owner: string, v: unknown): numberFogFalloff's constructors: the visibility distance (5% contrast left at it by default) to a density-Bevy: `bevy_pbr::FogFalloff`.-Used in: [3d/atmospheric_fog](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/atmospheric_fog.tsx).## Types@@ -326,18 +326,18 @@ type AlphaMode = "Opaque" | "Blend" | "Premultiplied" | "Add" | "Multiply" | "Al| Field | Type | What it is || --- | --- | --- || `src` (required) | `string` | the picture pressed onto the surface: staticFile("label.png"); its clear parts show the surface through |-| `name` | `string` | – |-| `normalMap` | `string` | – |+| `name` | `string` | the entity's name, for picking, the inspector and world.* |+| `normalMap` | `string` | a normal map pressed with the picture: the label's relief || `size` | `number \| [number, number]` | width by height in metres (a number: a square) |-| `position` | `Vec3` | – |+| `position` | `Vec3` | where it stands, metres (x, y, z) || `normal` | `Vec3` | which way the surface faces at the decal (out of it; [0, 1, 0], a floor or counter, by default): turns the decal so the picture lies on it, upright on a wall, its top toward -z on a floor. Instead of rotation || `spin` | `number` | a turn about the normal (radians) || `rotation` | `Vec3` | radians, the decal's +y out of the surface (rather than normal) || `color` | `string` | a tint times the picture (keyed: a stain darkening) || `opacity` | `number` | 0 to 1 (keyed: a label fading in) |-| `roughness` | `number` | – |-| `metalness` | `number` | – |-| `unlit` | `boolean` | – |+| `roughness` | `number` | 0..1, smooth to matte |+| `metalness` | `number` | 0..1, a dielectric to a metal |+| `unlit` | `boolean` | drawn in its flat colour, without light or shade || `fade` | `number` | how far off its plane (metres) it still lies on a surface, fading to nothing there (0.05 by default). Anything nearer the plane than this takes it, a cabinet's side or a fridge's as well as the wall: keep it small |### `ExtendedMaterialProps`@@ -366,7 +366,7 @@ The props of [`ExtendedMaterial`](#extendedmaterial), tabled there.| --- | --- | --- || `color` | `FogColor` | what far things fade into: match the background || `near` | `number` | linear fog from `near` to `far` (in the Canvas3D 5 and 20 by default; on the camera Bevy's 0 and 100) |-| `far` | `number` | – |+| `far` | `number` | where linear fog is full, from the camera (20 in the Canvas3D, 100 on a camera) || `density` | `number` | or exponential fog of this density (0.05-0.3), instead of near and far || `falloff` | `FogFalloff` | on the camera: Bevy's FogFalloff, in place of near, far and density (Bevy's default Linear 0 to 100) || `directional_light_color` | `FogColor` | on the camera: the sun's colour in the fog looking towards it, its alpha its strength (Bevy's default none) |@@ -409,8 +409,8 @@ its green, the metalness map's as its blue (white without one, so metallic is it| Field | Type | What it is || --- | --- | --- |-| `roughness` | `string` | – |-| `metalness` | `string` | – |+| `roughness` | `string` | a greyscale roughness map (white rough) |+| `metalness` | `string` | a greyscale metalness map (white metal) |### `PaintExtensionProps`@@ -439,8 +439,8 @@ ImageSamplerDescriptor ({ path: "checker.png", sampler: { filter: "nearest" } }| Field | Type | What it is || --- | --- | --- |-| `path` (required) | `string` | – |-| `sampler` (required) | `SamplerSpec` | – |+| `path` (required) | `string` | the picture, in the media folder |+| `sampler` (required) | `SamplerSpec` | how it's sampled: filter, address modes |### `ShaderExtensionProps`@@ -463,12 +463,12 @@ The props of [`ShaderExtension`](#shaderextension), tabled there.| `uniforms` | `Record<string, number \| number[] \| string>` | up to 16: a number (f32), [x, y], [x, y, z], [x, y, z, w] or "#rrggbb" (a linear vec4) || `textures` | `Record<string, string \| Record<string, unknown>>` | up to 4: an asset path, a picture made in code ({ width, height, pixels }) or "render:NAME"; and one array, { layers: [picture,...] } or { src, layers: N }, read as texture_2d_array<f32> tex_NAME by layer || `defs` | `ShaderDefs` | shader defs: each NAME a WESL condition for `@if(NAME)`, and a whole number also `constants::NAME` |-| `alpha` | `"opaque" \| "blend" \| "add" \| "premultiplied"` | – |-| `doubleSided` | `boolean` | – |-| `name` | `string` | – |-| `position` | `Vec3` | – |-| `rotation` | `Vec3` | – |-| `scale` | `Vec3 \| number` | – |+| `alpha` | `"opaque" \| "blend" \| "add" \| "premultiplied"` | how it blends: opaque, blend, add or premultiplied |+| `doubleSided` | `boolean` | draw the back faces too |+| `name` | `string` | the entity's name, for picking, the inspector and world.* |+| `position` | `Vec3` | where it stands, metres (x, y, z) |+| `rotation` | `Vec3` | its rotation, Euler angles in radians (x, y, z) |+| `scale` | `Vec3 \| number` | its scale: one number, or x, y and z |### `SplatMorph`@@ -484,18 +484,18 @@ The props of [`ShaderExtension`](#shaderextension), tabled there.| --- | --- | --- || `name` | `string` | parts are matched by name across frames: name a splat that comes and goes || `src` (required) | `string` | the splat file (staticFile("x.ply")): a 3DGS.ply (spherical harmonics up to degree 3), a.splat or a.spz. A `x.ply.json` beside it (raea splat train writes one) places it: +Y up, centred, metres |-| `position` | `Vec3` | – |+| `position` | `Vec3` | where it stands, metres (x, y, z) || `rotation` | `Vec3` | radians, Euler XYZ |-| `scale` | `number \| Vec3` | – |+| `scale` | `number \| Vec3` | its scale: one number, or x, y and z || `splatScale` | `number` | every gaussian's size times this (1 by default): below 1 the scene breaks into points |-| `opacity` | `number` | – |+| `opacity` | `number` | 0..1, multiplying every gaussian's || `brightness` | `number` | grade: colour times brightness, saturation and contrast about mid grey, times tint |-| `saturation` | `number` | – |-| `contrast` | `number` | – |-| `tint` | `string` | – |+| `saturation` | `number` | 1 as trained; 0 grey, above 1 richer |+| `contrast` | `number` | 1 as trained; about mid grey |+| `tint` | `string` | a colour every gaussian's is multiplied by || `reveal` | `number` | reveal 0..1: each splat scales in as a front passes it, from `revealFrom` (a point; the centre by default) outward, or along `revealAxis` (a plane sweeping through) when that's given |-| `revealFrom` | `Vec3` | – |-| `revealAxis` | `Vec3` | – |+| `revealFrom` | `Vec3` | the point the reveal grows outward from (the centre by default) |+| `revealAxis` | `Vec3` | a direction: the reveal sweeps a plane along it instead of growing from a point || `revealSoft` | `number` | how wide the front is, as a share of the sweep (0.15) || `revealGlow` | `number` | the front's glow (0 none, 1 bright), in `glowColor` || `glowColor` | `string` | the colour of reveal and pulse glows (warm white) |@@ -505,12 +505,12 @@ The props of [`ShaderExtension`](#shaderextension), tabled there.| `curl` | `number` | how much the wind curls (1) || `spread` | `number` | the dust cloud's radius in metres (the splat's own size, before scale; 1.6 times its size by default) || `explode` | `number` | explode 0..1: thrown out from the centre, falling and fading |-| `wave` | `SplatWave` | – |+| `wave` | `SplatWave` | a ripple running out through the splats: amplitude, wavelength and phase || `twist` | `number` | radians a metre about the vertical through the centre |-| `morph` | `SplatMorph` | – |+| `morph` | `SplatMorph` | becomes another splat file: `to` and `amount` 0..1 || `pulse` | `number` | a value the composition passes (a beat's envelope 0..1): bigger by pulseScale, brighter by pulseGlow |-| `pulseScale` | `number` | – |-| `pulseGlow` | `number` | – |+| `pulseScale` | `number` | how much bigger a full pulse makes it |+| `pulseGlow` | `number` | how much brighter a full pulse makes it || `crop` | `number` | nothing past this many metres from the centre (trims a trained scene's floaters) || `bands` | `number` | the light in this many flat bands (0 none); a paint or cartoon <Look> sets it || `paint` | `number` | 0..1: the splats themselves painted (flat bands, grown into strokes with hard edges), for a painted shot in a timeline whose frame <Look> isn't paint |@@ -531,27 +531,27 @@ is LinearRgba keys of one colour: track({ 0: E.mul(0), 30: E.mul(2.5) }) with E| Field | Type | What it is || --- | --- | --- |-| `base_color` | `TrackSpec<string>` | – |-| `emissive` | `TrackSpec<string> \| TrackSpec<LinearRgba>` | – |-| `perceptual_roughness` | `TrackSpec<number>` | – |-| `metallic` | `TrackSpec<number>` | – |-| `emissive_exposure_weight` | `TrackSpec<number>` | – |-| `reflectance` | `TrackSpec<number>` | – |-| `specular_tint` | `TrackSpec<string>` | – |-| `diffuse_transmission` | `TrackSpec<number>` | – |-| `specular_transmission` | `TrackSpec<number>` | – |-| `thickness` | `TrackSpec<number>` | – |-| `ior` | `TrackSpec<number>` | – |-| `attenuation_distance` | `TrackSpec<number>` | – |-| `attenuation_color` | `TrackSpec<string>` | – |-| `clearcoat` | `TrackSpec<number>` | – |-| `clearcoat_perceptual_roughness` | `TrackSpec<number>` | – |-| `anisotropy_strength` | `TrackSpec<number>` | – |-| `anisotropy_rotation` | `TrackSpec<number>` | – |-| `depth_bias` | `TrackSpec<number>` | – |-| `parallax_depth_scale` | `TrackSpec<number>` | – |-| `max_parallax_layer_count` | `TrackSpec<number>` | – |-| `lightmap_exposure` | `TrackSpec<number>` | – |+| `base_color` | `TrackSpec<string>` | a track of `base_color`, sampled each frame |+| `emissive` | `TrackSpec<string> \| TrackSpec<LinearRgba>` | a track of `emissive`, sampled each frame |+| `perceptual_roughness` | `TrackSpec<number>` | a track of `perceptual_roughness`, sampled each frame |+| `metallic` | `TrackSpec<number>` | a track of `metallic`, sampled each frame |+| `emissive_exposure_weight` | `TrackSpec<number>` | a track of `emissive_exposure_weight`, sampled each frame |+| `reflectance` | `TrackSpec<number>` | a track of `reflectance`, sampled each frame |+| `specular_tint` | `TrackSpec<string>` | a track of `specular_tint`, sampled each frame |+| `diffuse_transmission` | `TrackSpec<number>` | a track of `diffuse_transmission`, sampled each frame |+| `specular_transmission` | `TrackSpec<number>` | a track of `specular_transmission`, sampled each frame |+| `thickness` | `TrackSpec<number>` | a track of `thickness`, sampled each frame |+| `ior` | `TrackSpec<number>` | a track of `ior`, sampled each frame |+| `attenuation_distance` | `TrackSpec<number>` | a track of `attenuation_distance`, sampled each frame |+| `attenuation_color` | `TrackSpec<string>` | a track of `attenuation_color`, sampled each frame |+| `clearcoat` | `TrackSpec<number>` | a track of `clearcoat`, sampled each frame |+| `clearcoat_perceptual_roughness` | `TrackSpec<number>` | a track of `clearcoat_perceptual_roughness`, sampled each frame |+| `anisotropy_strength` | `TrackSpec<number>` | a track of `anisotropy_strength`, sampled each frame |+| `anisotropy_rotation` | `TrackSpec<number>` | a track of `anisotropy_rotation`, sampled each frame |+| `depth_bias` | `TrackSpec<number>` | a track of `depth_bias`, sampled each frame |+| `parallax_depth_scale` | `TrackSpec<number>` | a track of `parallax_depth_scale`, sampled each frame |+| `max_parallax_layer_count` | `TrackSpec<number>` | a track of `max_parallax_layer_count`, sampled each frame |+| `lightmap_exposure` | `TrackSpec<number>` | a track of `lightmap_exposure`, sampled each frame |### `StandardMaterialProps`@@ -562,31 +562,31 @@ Bevy's StandardMaterial fields (colours as CSS colours, textures as file paths),| `base_color` | `string \| Srgba` | a colour, or Bevy's Srgba (its alpha shows with alpha_mode "Blend": Srgba.hex("#88ccff").with_alpha(0.5)) || `base_color_texture` | `Tex \| null` | a picture in the media folder; null (Bevy's None) inside a Model drops the model's own base map || `emissive` | `string \| LinearRgba` | a colour, or Bevy's LinearRgba for one brighter than white (LinearRgba.from(Srgba.hex("#ff8800")).mul(3)) |-| `emissive_texture` | `Tex` | – |+| `emissive_texture` | `Tex` | Bevy: The emissive map, multiplies pixels with `emissive` to get the final "emitting" color of a surface. || `perceptual_roughness` | `number` | 0.5 by Bevy's default |-| `metallic` | `number` | – |-| `metallic_roughness_texture` | `Tex \| MetallicRoughnessMaps` | – |-| `normal_map_texture` | `Tex` | – |-| `occlusion_texture` | `Tex` | – |+| `metallic` | `number` | Bevy: How "metallic" the material appears, within `[0.0, 1.0]`. |+| `metallic_roughness_texture` | `Tex \| MetallicRoughnessMaps` | Bevy: Metallic and roughness maps, stored as a single texture. |+| `normal_map_texture` | `Tex` | Bevy: Used to fake the lighting of bumps and dents on a material. |+| `occlusion_texture` | `Tex` | Bevy: Specifies the level of exposure to ambient light. || `uv_transform` | `Affine2` | every texture's UVs scaled, turned and moved (Affine2.fromScale([5, 5]) tiles a map five times across each face; a scaled texture repeats) || `reflectance` | `number` | 0.5 by Bevy's default |-| `clearcoat` | `number` | – |-| `clearcoat_perceptual_roughness` | `number` | – |+| `clearcoat` | `number` | Bevy: An extra thin translucent layer on top of the main PBR layer. This is typically used for painted surfaces. |+| `clearcoat_perceptual_roughness` | `number` | Bevy: The roughness of the clearcoat material. This is specified in exactly the same way as the `StandardMaterial::perceptual_roughness`. || `clearcoat_normal_texture` | `Tex` | the clearcoat layer's own normal map, read as data (not sRGB), as Bevy's examples load it with is_srgb false |-| `specular_transmission` | `number` | – |-| `ior` | `number` | – |-| `thickness` | `number` | – |-| `unlit` | `boolean` | – |-| `alpha_mode` | `AlphaMode` | – |-| `double_sided` | `boolean` | – |+| `specular_transmission` | `number` | Bevy: The amount of light transmitted _specularly_ through the material (i.e. via refraction). |+| `ior` | `number` | Bevy: The index of refraction of the material. |+| `thickness` | `number` | Bevy: Thickness of the volume beneath the material surface. |+| `unlit` | `boolean` | Bevy: Whether to apply only the base color to this material. |+| `alpha_mode` | `AlphaMode` | Bevy: How to apply the alpha channel of the `base_color_texture`. |+| `double_sided` | `boolean` | Bevy: Support two-sided lighting by automatically flipping the normals for "back" faces within the PBR lighting shader. || `cull_mode` | `"Back" \| "Front" \| null` | the faces not drawn: "Back" (Bevy's default), "Front", or null for neither || `material` | `string` | in a <Model>: the glTF material it re-covers, as MeshStandardMaterial's || `fog_enabled` | `boolean` | false: left out of the scene's <Fog> || `specular_tint` | `string` | the highlight's colour, over `reflectance` || `anisotropy_strength` | `number` | stretched highlights (brushed metal, hair), 0..1, turned anisotropy_rotation radians along the tangent |-| `anisotropy_rotation` | `number` | – |+| `anisotropy_rotation` | `number` | Bevy: The direction of increased roughness, in radians relative to the mesh tangent. || `attenuation_distance` | `number` | light absorbed through a transmissive volume (with specular_transmission and thickness) |-| `attenuation_color` | `string` | – |+| `attenuation_color` | `string` | Bevy: The resulting (non-absorbed) color after white light travels through the attenuation distance. || `depth_map` | `Tex` | a greyscale height map (white deep) the parallax fields carve a flat face with || `parallax_depth_scale` | `number` | 0.1 by Bevy's default || `parallax_mapping_method` | `"Occlusion" \| { Relief: { max_steps: number } }` | "Occlusion" (Bevy's default) or { Relief: { max_steps } } |@@ -594,7 +594,7 @@ Bevy's StandardMaterial fields (colours as CSS colours, textures as file paths),| `depth_bias` | `number` | drawn this much nearer in depth (a decal-like layer over a coplanar face) || `opaque_render_method` | `"Forward" \| "Deferred"` | "Forward" or "Deferred" (in the deferred pass, with a camera that has one) || `diffuse_transmission` | `number` | light passed through and scattered (leaves, paper, wax), 0..1; lightmap_exposure: a <Lightmap>'s bake times this |-| `lightmap_exposure` | `number` | – |+| `lightmap_exposure` | `number` | Bevy: The exposure (brightness) level of the lightmap, if present. || `animate` | `StandardMaterialAnimate` | its fields' tracks, sampled by the engine from the frame clock: { base_color: track({ 0: "#3060ff", 30: "#ff4070" }) } |### `SurfaceDrawProps`@@ -619,7 +619,7 @@ from the first frame.| `textures` | `Record<string, ShaderTexture \| ShaderTexture[]>` | up to 4: an asset path, a picture made in code ({ width, height, pixels }) or "render:NAME"; with a sampler, { src, sampler } (or a picture with its `sampler`). One more may be an array, read as texture_2d_array<f32> by layer: { layers: [picture,...] } (one size and format) or { src, layers: N } (N layers stacked top to bottom). A <Material>'s may also bind one binding_array<texture_2d<f32>>, a list of 1 to 16 pictures (Bevy's texture_binding_array; a GPU without texture binding arrays refuses it) || `defs` | `ShaderDefs` | shader defs: each NAME a WESL condition for `@if(NAME)` (a number is true), and a whole number also `constants::NAME`; each set of defs compiles its own pipeline || `own` | `OwnMaterialFields` | a <Material>'s own: what its Material methods give, and its storage buffers; set by <Material> only |-| `buffers` | `Record<string, StorageValue>` | – |+| `buffers` | `Record<string, StorageValue>` | the material's storage buffers by binding name; set by <Material> only |### `ThreeShaderMaterialProps`@@ -630,12 +630,12 @@ from the first frame.| `uniforms` | `Record<string, ThreeUniform>` | each uniform's value this frame || `textures` | `Record<string, string \| { src: string; colorSpace?: "srgb" \| "linear"; sampler?: Record…` | each sampler's picture: a file, a data URL, "render:NAME" (at most four); `colorSpace: "linear"` for one three samples raw (NoColorSpace: a distance field, a data map), "srgb" (the default) for a colour picture || `output` | `"display" \| "linear"` | "display": its colour is what three's canvas shows (a ShaderMaterial's); "linear": scene light, tone-mapped as the rest of the frame is (a node material's) |-| `transparent` | `boolean` | – |-| `blending` | `"normal" \| "additive" \| "add" \| "multiply" \| "none"` | – |-| `side` | `"front" \| "back" \| "double"` | – |-| `depthWrite` | `boolean` | – |-| `depthTest` | `boolean` | – |-| `alphaTest` | `number` | – |+| `transparent` | `boolean` | blended over what's behind it, as three's \`transparent\` |+| `blending` | `"normal" \| "additive" \| "add" \| "multiply" \| "none"` | how it blends: normal, additive (add), multiply or none |+| `side` | `"front" \| "back" \| "double"` | which faces draw: front, back or double |+| `depthWrite` | `boolean` | it writes the depth buffer |+| `depthTest` | `boolean` | it's hidden behind what's nearer |+| `alphaTest` | `number` | pixels less opaque than this are dropped || `time` | `[number, number, number]` | three's clock this frame: [seconds, delta, frame] || `color` | `string` | the colour it's drawn in where its shader can't run (named in the render's warnings) |@@ -650,10 +650,10 @@ from the first frame.| Field | Type | What it is || --- | --- | --- |-| `shadow_color` | `TrackSpec<string>` | – |-| `rim_intensity` | `TrackSpec<number>` | – |-| `highlight_intensity` | `TrackSpec<number>` | – |-| `outline_width` | `TrackSpec<number>` | – |+| `shadow_color` | `TrackSpec<string>` | a track of `shadow_color`, sampled each frame |+| `rim_intensity` | `TrackSpec<number>` | a track of `rim_intensity`, sampled each frame |+| `highlight_intensity` | `TrackSpec<number>` | a track of `highlight_intensity`, sampled each frame |+| `outline_width` | `TrackSpec<number>` | a track of `outline_width`, sampled each frame |### `ToonExtensionProps`@@ -665,15 +665,15 @@ toon surface has no roughness or metal. It goes in an ExtendedMaterial's `extens| Field | Type | What it is || --- | --- | --- |-| `steps` | `number` | – |-| `bands` | `ToonBand[]` | – |-| `shadow_color` | `string` | – |-| `rim` | `boolean \| ToonRim` | – |-| `highlight` | `boolean \| ToonHighlight` | – |-| `outline` | `boolean \| ToonOutline` | – |-| `rim_intensity` | `number` | – |-| `highlight_intensity` | `number` | – |-| `outline_width` | `number` | – |+| `steps` | `number` | how many hard bands the light falls into (2) |+| `bands` | `ToonBand[]` | an explicit ramp of bands, darkest first, in place of `steps` |+| `shadow_color` | `string` | the bottom band's colour (the base colour darker, nudged towards violet) |+| `rim` | `boolean \| ToonRim` | a rim light on the silhouette: true for its default, or its settings |+| `highlight` | `boolean \| ToonHighlight` | a hard specular highlight: true for its default, or its settings |+| `outline` | `boolean \| ToonOutline` | an ink outline: true for its default, or its settings |+| `rim_intensity` | `number` | how bright the rim is |+| `highlight_intensity` | `number` | how bright the highlight is |+| `outline_width` | `number` | the outline's width || `animate` | `ToonExtensionAnimate` | its fields' tracks, as a StandardMaterial's `animate` (its base animates base_color and emissive) |### `ToonHighlight`@@ -714,15 +714,15 @@ The props of [`ToonMaterial`](#toonmaterial), tabled there.| `colors` | `[string, string, string]` | its tones under a paint look: [lit, mid, dark] || `threshold` | `number` | the density its painted surface sits at (0.12): lower is fatter, higher thinner || `erode` | `number` | how much noise tears the painted surface's edge (0.08), and the tears' size in metres (0.6) |-| `erodeSize` | `number` | – |+| `erodeSize` | `number` | the tears' size in metres (0.6) || `absorb` | `number` | how much light a unit of it stops (its shadow on itself; 1.2) || `wind` | `Vec3` | the wind, m/s ([0, 0, 0]); how fast the volume takes it up, a second (1.2 smoke, 0.6 otherwise); the height it's full from, metres, weaker below (0: full everywhere) |-| `windPull` | `number` | – |-| `windHeight` | `number` | – |+| `windPull` | `number` | how fast the volume takes up the wind, a second (1.2 smoke, 0.6 otherwise) |+| `windHeight` | `number` | the height the wind is full from, metres; weaker below (0: full everywhere) || `drag` | `number` | velocity the still air takes away a second (0.4) || `vorticity` | `number` | curl kept curling (6); a drifting turbulent force, m/s² (0), and its size in metres (2) |-| `turbulence` | `number` | – |-| `turbulenceSize` | `number` | – |+| `turbulence` | `number` | a drifting turbulent force, m/s² (0) |+| `turbulenceSize` | `number` | the turbulence's size in metres (2) || `steps` | `number` | samples along each ray (96) || `shadow` | `boolean \| number` | its shadow, cast in the scene's light as a mesh's is (on by default): soft moving shadows on the ground, meshes and models under it, and, with a `volumetric` sun and a <FogVolume> under <VolumetricFog>, the sun's shafts breaking through the gaps between clouds. The shadow is where the volume has stopped half the sun; a number scales the density it sees: 1 as drawn, more reaches into its thinner parts (a fatter shadow; up to 4, a thin contrail's made to show), less keeps to the dense cores. false or 0 casts none. Under a paint look the shadow is the painted shape. Soften its edge with the sun's `softShadow` (2-4 for clouds) |@@ -733,13 +733,13 @@ The props of [`ToonMaterial`](#toonmaterial), tabled there.| `position` | `Vec3` | the box's foot (the centre of its floor), metres ([0, 0, 0]) || `size` (required) | `Vec3` | the box it lives in, [width, height, depth] in metres: what leaves it is cut || `sources` | `VolumeSource[]` | where density and heat come in over time, and the puffs of density it starts with ([x, y, z, radius] in metres from the foot) |-| `puffs` | `[number, number, number, number][]` | – |+| `puffs` | `[number, number, number, number][]` | density it starts with: [x, y, z, radius] in metres from the foot || `buoyancy` | `number` | heat's lift (4) and the density's weight (0.4), m/s² a unit; the heat lost a second (0.8) and the density lost a second (0.02), fractions |-| `weight` | `number` | – |-| `cooling` | `number` | – |-| `dissipation` | `number` | – |+| `weight` | `number` | the density's weight, m/s² a unit (0.4) |+| `cooling` | `number` | the heat lost a second, a fraction (0.8) |+| `dissipation` | `number` | the density lost a second, a fraction (0.02) || `fire` | `[string, string, string] \| false` | fire where it's hot: three colours [red, orange, yellow] (paint's by default), or false for none; and the heat (a fraction of the hottest source's) each colour starts at ([0.35, 0.6, 0.85]) |-| `fireAt` | `[number, number, number]` | – |+| `fireAt` | `[number, number, number]` | the heat (a fraction of the hottest source's) each fire colour starts at ([0.35, 0.6, 0.85]) || `name` | `string` | parts are matched by name across frames || `time` | `number` | seconds on the simulation's clock (the Sequence's time, frame / fps, by default) || `resolution` | `number` | cells along the box's longest side (64 by default; 32 is a quarter the cost a step, 96 finer) |@@ -747,15 +747,15 @@ The props of [`ToonMaterial`](#toonmaterial), tabled there.| `colors` | `[string, string, string]` | its tones under a paint look: [lit, mid, dark] || `threshold` | `number` | the density its painted surface sits at (0.12): lower is fatter, higher thinner || `erode` | `number` | how much noise tears the painted surface's edge (0.08), and the tears' size in metres (0.6) |-| `erodeSize` | `number` | – |+| `erodeSize` | `number` | the tears' size in metres (0.6) || `absorb` | `number` | how much light a unit of it stops (its shadow on itself; 1.2) || `wind` | `Vec3` | the wind, m/s ([0, 0, 0]); how fast the volume takes it up, a second (1.2 smoke, 0.6 otherwise); the height it's full from, metres, weaker below (0: full everywhere) |-| `windPull` | `number` | – |-| `windHeight` | `number` | – |+| `windPull` | `number` | how fast the volume takes up the wind, a second (1.2 smoke, 0.6 otherwise) |+| `windHeight` | `number` | the height the wind is full from, metres; weaker below (0: full everywhere) || `drag` | `number` | velocity the still air takes away a second (0.4) || `vorticity` | `number` | curl kept curling (6); a drifting turbulent force, m/s² (0), and its size in metres (2) |-| `turbulence` | `number` | – |-| `turbulenceSize` | `number` | – |+| `turbulence` | `number` | a drifting turbulent force, m/s² (0) |+| `turbulenceSize` | `number` | the turbulence's size in metres (2) || `steps` | `number` | samples along each ray (96) || `shadow` | `boolean \| number` | its shadow, cast in the scene's light as a mesh's is (on by default): soft moving shadows on the ground, meshes and models under it, and, with a `volumetric` sun and a <FogVolume> under <VolumetricFog>, the sun's shafts breaking through the gaps between clouds. The shadow is where the volume has stopped half the sun; a number scales the density it sees: 1 as drawn, more reaches into its thinner parts (a fatter shadow; up to 4, a thin contrail's made to show), less keeps to the dense cores. false or 0 casts none. Under a paint look the shadow is the painted shape. Soften its edge with the sun's `softShadow` (2-4 for clouds) |@@ -766,13 +766,13 @@ where density and heat come in: a burner, or an engine moving `at` -> `to` (a co| Field | Type | What it is || --- | --- | --- || `at` (required) | `Vec3` | where (metres from the box's foot), and where it has moved to by `until` if it moves |-| `to` | `Vec3` | – |+| `to` | `Vec3` | where a moving source has got to by `until` || `from` | `number` | when it puts out, seconds ([0, Infinity]) |-| `until` | `number` | – |+| `until` | `number` | when it stops putting out, seconds (Infinity) || `radius` | `number` | its radius (0.5 m); the density and heat it puts out a second at its centre (4 and 4); the velocity it pushes out with, m/s ([0, 0, 0]) |-| `rate` | `number` | – |-| `heat` | `number` | – |-| `speed` | `Vec3` | – |+| `rate` | `number` | the density it puts out a second at its centre (4) |+| `heat` | `number` | the heat it puts out a second at its centre (4) |+| `speed` | `Vec3` | the velocity it pushes out with, m/s ([0, 0, 0]) |### `VolumetricFogProps`diff --git a/docs/manual/reference/sdk/picking.md b/docs/manual/reference/sdk/picking.mdindex 825cf247..2e68ddaa 100644--- a/docs/manual/reference/sdk/picking.md+++ b/docs/manual/reference/sdk/picking.md@@ -43,7 +43,7 @@ function pointerRay(pointer: { x: number; y: number; }, camera: PickCamera, size| Field | Type | What it is || --- | --- | --- |-| `name` (required) | `string` | – |+| `name` (required) | `string` | the pickable it hit || `distance` (required) | `number` | metres from the camera (from its near plane's point, for an orthographic one) along the ray || `point` (required) | `Vec3` | where the ray first meets it, in world space |@@ -61,10 +61,10 @@ The camera as a scene sets it: a PerspectiveCamera's props (fov in degrees, vert| Field | Type | What it is || --- | --- | --- |-| `position` | `Vec3` | – |-| `lookAt` | `Vec3` | – |+| `position` | `Vec3` | where it stands, metres (x, y, z) |+| `lookAt` | `Vec3` | the point it faces || `fov` | `number` | vertical field of view in degrees (50 by default); ignored when `height` is set || `height` | `number` | an orthographic camera's view height in metres |-| `up` | `Vec3` | – |+| `up` | `Vec3` | which way is up for it (+Y) |<!-- generated:end -->diff --git a/docs/manual/reference/sdk/post_process.md b/docs/manual/reference/sdk/post_process.mdindex a277fbb4..0a16d536 100644--- a/docs/manual/reference/sdk/post_process.md+++ b/docs/manual/reference/sdk/post_process.md@@ -53,7 +53,7 @@ Takes [`BloomProps`](3d.md#bloomprops)'s props.A compute over the frame, in the 3D beside the camera; several run in the order written, before the cameras draw.-Bevy: `raea_sys_compute::Computes`.+Rust: `raea_sys_compute::Computes`.Takes [`ComputeProps`](3d.md#computeprops)'s props.@@ -79,7 +79,7 @@ Takes [`FisheyeProps`](3d.md#fisheyeprops)'s props.A full-screen pass over the scene camera's frame, beside the camera; several run in the order written. With aframe <Look> they run on its cells, before the look's composite.-Bevy: `raea_sys_framepass::FramePasses`.+Rust: `raea_sys_framepass::FramePasses`.Takes [`FramePassProps`](3d.md#framepassprops)'s props.@@ -126,8 +126,6 @@ Takes [`MotionBlurProps`](3d.md#motionblurprops)'s props.Ink lines where the scene's depth steps or its surfaces turn, drawn before bloom and tone mapping; under a <Look>a cell wide (Return of the Obra Dinn's line). Put it inside the Canvas3D.-Bevy: `bevy_ui::Outline`.-Takes [`OutlineProps`](3d.md#outlineprops)'s props.### `ToneMapping`@@ -182,8 +180,8 @@ A compute shader (raea-sys-compute). Its source has one `@compute` entry point a| `mode` | `"bokeh" \| "gaussian"` | "bokeh" (round, as a real lens; the default) or "gaussian" (soft, cheaper) || `maxBlur` | `number` | the largest blur, in pixels of the frame (64 by default) || `focal_distance` | `number` | Bevy's fields, as Bevy's DepthOfField component on a Camera3d (inside it), Bevy's defaults: the distance in focus (10; the camera's `focus`), the f-number (1), the largest blur in pixels (64), "Bokeh" or "Gaussian" |-| `aperture_f_stops` | `number` | – |-| `max_circle_of_confusion_diameter` | `number` | – |+| `aperture_f_stops` | `number` | the f-number (1): lower is a shallower focus |+| `max_circle_of_confusion_diameter` | `number` | the largest blur, in px (64) |### `FisheyeProps`@@ -223,9 +221,9 @@ A shader over the whole frame. Its source defines| `temperature` | `number` | warmer (+) or cooler (-): a shift of the CIE x chromaticity, about -0.3 to 0.3 || `tint` | `number` | magenta (+) or green (-) || `saturation` | `number` | the whole frame's saturation after tone mapping (1 keeps it) |-| `shadows` | `GradeSection` | – |-| `midtones` | `GradeSection` | – |-| `highlights` | `GradeSection` | – |+| `shadows` | `GradeSection` | the grade on the shadows: saturation, contrast, gamma, gain, lift |+| `midtones` | `GradeSection` | the grade on the midtones |+| `highlights` | `GradeSection` | the grade on the highlights || `vignette` | `number \| { intensity?: number; radius?: number; smoothness?: number; color?: string }` | the corners darkened: 0 none, 1 black; or {intensity, radius (0.75), smoothness (5), color} || `aberration` | `number` | a lens's colour fringes at edges, as a fraction of the frame (0.005 subtle, 0.02 strong) || `skip` | `string[]` | composition passes (a part's `pass`) the grade leaves as drawn: no fringes or vignette on them, and on an untonemapped camera (a paint Look's) no colour grading either |@@ -253,7 +251,7 @@ A shader over the whole frame. Its source defines| Field | Type | What it is || --- | --- | --- || `k1` | `number` | Brown-Conrady: r' = r (1 + k1 r^2 + k2 r^4), r a share of the half-diagonal. Above 0 barrel, below 0 pincushion |-| `k2` | `number` | – |+| `k2` | `number` | the r^4 term of the distortion || `zoom` | `number` | by default just enough for a barrel's corners to stay inside the picture (1 for pincushion) || `edges` | `"clamp" \| "black"` | what shows where the lens looks past the picture: its edge pixels ("clamp", the default) or "black" || `animate` | `Animate3d` | declared animation of its numbers (strength, fov, k1, k2, zoom) |@@ -266,7 +264,7 @@ A shader over the whole frame. Its source defines| --- | --- | --- || `shutterAngle` | `number` | the fraction of a frame the shutter is open (0.5 by default, a 180-degree shutter); above 1 smears further || `samples` | `number` | samples each way per pixel (4 by default) |-| `animate` | `Animate3d` | – |+| `animate` | `Animate3d` | declared animation of its numbers |### `OutlineProps`diff --git a/docs/manual/reference/sdk/raea.md b/docs/manual/reference/sdk/raea.mdindex 40d049e6..5f470b0a 100644--- a/docs/manual/reference/sdk/raea.md+++ b/docs/manual/reference/sdk/raea.md@@ -48,11 +48,11 @@ A box over the whole of its parent, laid out as a flex column; `style` is merged| Prop | Type | What it does || --- | --- | --- |-| `style` | `CSSProperties` | – |-| `className` | `string` | – |-| `children` | `ReactNode` | – |+| `style` | `CSSProperties` | merged over the fill's own style (absolute, inset 0, a flex column) |+| `className` | `string` | Tailwind or CSS classes |+| `children` | `ReactNode` | what fills it |-Used in: [ui/images/image_node](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/image_node.tsx), [ui/images/ui_texture_slice_flip_and_tile](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/ui_texture_slice_flip_and_tile.tsx), [ui/images/image_node_resizing](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/image_node_resizing.tsx), [ui/images/ui_texture_atlas_slice](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/ui_texture_atlas_slice.tsx), [ui/images/ui_texture_slice](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/ui_texture_slice.tsx), [ui/images/ui_texture_atlas](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/ui_texture_atlas.tsx), [ui/layout/grid](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/layout/grid.tsx), [ui/layout/ghost_nodes](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/layout/ghost_nodes.tsx), and 98 more.+Used in: [ui/images/image_node](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/image_node.tsx), [ui/images/ui_texture_slice_flip_and_tile](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/ui_texture_slice_flip_and_tile.tsx), [ui/images/image_node_resizing](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/image_node_resizing.tsx), [ui/images/ui_texture_atlas_slice](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/ui_texture_atlas_slice.tsx), [ui/images/ui_texture_slice](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/ui_texture_slice.tsx), [ui/images/ui_texture_atlas](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/ui_texture_atlas.tsx), [ui/layout/grid](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/layout/grid.tsx), [ui/layout/ghost_nodes](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/layout/ghost_nodes.tsx), and 95 more.### `Animate`@@ -81,17 +81,17 @@ own.| Prop | Type | What it does || --- | --- | --- |-| `frame` (required) | `number` | – |-| `fps` (required) | `number` | – |-| `width` (required) | `number` | – |-| `height` (required) | `number` | – |-| `durationInFrames` (required) | `number` | – |-| `id` | `string` | – |-| `defaultProps` | `Record<string, unknown>` | – |-| `words` | `readonly TimelineWord[]` | – |-| `perception` | `Perception` | – |-| `input` | `InputTimeline` | – |-| `children` | `ReactNode` | – |+| `frame` (required) | `number` | the composition frame to draw |+| `fps` (required) | `number` | frames a second |+| `width` (required) | `number` | in px |+| `height` (required) | `number` | in px |+| `durationInFrames` (required) | `number` | the composition's length in frames |+| `id` | `string` | the composition's id ("main" by default) |+| `defaultProps` | `Record<string, unknown>` | the props the composition is rendered with |+| `words` | `readonly TimelineWord[]` | the transcript, in composition frames, that captions and word cuts read |+| `perception` | `Perception` | what perception saw at this frame (faces, the safe area) |+| `input` | `InputTimeline` | a game's recorded input by frame |+| `children` | `ReactNode` | the composition |### `Composition`@@ -99,16 +99,16 @@ Declares a composition inside the root. It draws nothing itself; a renderer find| Prop | Type | What it does || --- | --- | --- |-| `id` (required) | `string` | – |-| `component` (required) | `ComponentType<P>` | – |-| `width` (required) | `number` | – |-| `height` (required) | `number` | – |-| `fps` (required) | `number` | – |-| `durationInFrames` (required) | `number` | – |-| `defaultProps` | `P` | – |+| `id` (required) | `string` | the composition's id: letters, digits and dashes (`raea render --composition` picks it) |+| `component` (required) | `ComponentType<P>` | the React component it renders |+| `width` (required) | `number` | in px |+| `height` (required) | `number` | in px |+| `fps` (required) | `number` | frames a second |+| `durationInFrames` (required) | `number` | its length in frames |+| `defaultProps` | `P` | the props it's rendered with (JSON-like values only) || `edit` | `Edit` | a hand edit laid over the composition (docs/craft-system.md, L): written back by the app's timeline |-Used in: [ui/images/image_node](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/image_node.tsx), [ui/images/ui_texture_slice_flip_and_tile](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/ui_texture_slice_flip_and_tile.tsx), [ui/images/image_node_resizing](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/image_node_resizing.tsx), [ui/images/ui_texture_atlas_slice](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/ui_texture_atlas_slice.tsx), [ui/images/ui_texture_slice](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/ui_texture_slice.tsx), [ui/images/ui_texture_atlas](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/ui_texture_atlas.tsx), [ui/layout/grid](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/layout/grid.tsx), [ui/layout/ghost_nodes](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/layout/ghost_nodes.tsx), and 152 more.+Used in: [ui/images/image_node](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/image_node.tsx), [ui/images/ui_texture_slice_flip_and_tile](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/ui_texture_slice_flip_and_tile.tsx), [ui/images/image_node_resizing](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/image_node_resizing.tsx), [ui/images/ui_texture_atlas_slice](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/ui_texture_atlas_slice.tsx), [ui/images/ui_texture_slice](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/ui_texture_slice.tsx), [ui/images/ui_texture_atlas](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/ui_texture_atlas.tsx), [ui/layout/grid](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/layout/grid.tsx), [ui/layout/ghost_nodes](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/layout/ghost_nodes.tsx), and 148 more.### `Freeze`@@ -116,8 +116,8 @@ Shows its children as they are at `frame`, whatever the parent's frame.| Prop | Type | What it does || --- | --- | --- |-| `frame` (required) | `number` | – |-| `children` | `ReactNode` | – |+| `frame` (required) | `number` | the frame its children see, whatever the parent's frame |+| `children` | `ReactNode` | what's held |### `Img`@@ -133,12 +133,12 @@ and while another box holds a press, they see no pointer; keys reach every box.| Prop | Type | What it does || --- | --- | --- |-| `x` (required) | `number` | – |-| `y` (required) | `number` | – |-| `w` (required) | `number` | – |-| `h` (required) | `number` | – |-| `scale` | `number` | – |-| `children` | `ReactNode` | – |+| `x` (required) | `number` | the box's left edge, composition px |+| `y` (required) | `number` | its top edge, composition px |+| `w` (required) | `number` | its width, px |+| `h` (required) | `number` | its height, px |+| `scale` | `number` | page px over the box's own points (1): the pointer is divided by it |+| `children` | `ReactNode` | the game or panel that sees the pointer as its own |### `Loop`@@ -146,13 +146,13 @@ Repeats its children every `durationInFrames` frames, `times` times (forever by| Prop | Type | What it does || --- | --- | --- |-| `durationInFrames` (required) | `number` | – |-| `times` | `number` | – |-| `name` | `string` | – |-| `layout` | `SequenceLayout` | – |-| `style` | `CSSProperties` | – |-| `className` | `string` | – |-| `children` | `ReactNode` | – |+| `durationInFrames` (required) | `number` | the length of one loop, in frames |+| `times` | `number` | how many times it plays (forever by default) |+| `name` | `string` | its label in the timeline and the render manifest |+| `layout` | `SequenceLayout` | "absolute-fill" (default) or "none", as a Sequence's |+| `style` | `CSSProperties` | the wrapping box's style |+| `className` | `string` | the wrapping box's classes |+| `children` | `ReactNode` | what loops |### `Mix`@@ -167,17 +167,14 @@ The master: every sound in the composition brought to `lufs` integrated loudness### `Nudge`-Places its child: an element gets the move in front of its own transform and the fade times its own opacity; a-component, whose box it can't reach, is placed inside a full-frame layer.+Moves its child by (x, y): an element gets the move in front of its own transform; a component, whose box it+can't reach, moves inside a full-frame layer.| Prop | Type | What it does || --- | --- | --- || `x` | `number` | how far to move it, in the composition's pixels |-| `y` | `number` | – |-| `scale` | `number` | how much bigger (2) or smaller (0.5), about its centre |-| `rotate` | `number` | a turn, in degrees, about its centre |-| `opacity` | `number` | 0 (gone) to 1 (as it was), times its own opacity |-| `children` | `ReactNode` | – |+| `y` | `number` | how far to move it down, in the composition's pixels |+| `children` | `ReactNode` | the part it places: an element, or a component, which moves inside a full-frame layer |### `Overlay`@@ -185,8 +182,8 @@ Its children only in a render asked for the overlay `name`.| Prop | Type | What it does || --- | --- | --- |-| `name` (required) | `string` | – |-| `children` | `ReactNode` | – |+| `name` (required) | `string` | the overlay's name, as the render asks for it |+| `children` | `ReactNode` | what the overlay draws |### `Region`@@ -194,11 +191,11 @@ A box at the band its name stands for, clear of the face perception found at thi| Prop | Type | What it does || --- | --- | --- |-| `name` | `RegionName` | – |-| `margin` | `number` | – |-| `style` | `CSSProperties` | – |-| `className` | `string` | – |-| `children` | `ReactNode` | – |+| `name` | `RegionName` | the band: "auto" (default) takes the larger of top and bottom; top and bottom stay clear of the face; center is the middle third; full is the safe area |+| `margin` | `number` | the gap kept from the face and the sides, as a share of the width (0.06) |+| `style` | `CSSProperties` | merged under the box's own placement |+| `className` | `string` | Tailwind or CSS classes |+| `children` | `ReactNode` | what goes in the band; `useRegion()` reads its box |### `Sequence`@@ -206,17 +203,15 @@ Shifts time by `from` and shows its children only for `durationInFrames` frames.| Prop | Type | What it does || --- | --- | --- |-| `from` | `number` | – |-| `durationInFrames` | `number` | – |-| `name` | `string` | – |-| `layout` | `SequenceLayout` | – |-| `width` | `number` | – |-| `height` | `number` | – |-| `style` | `CSSProperties` | – |-| `className` | `string` | – |-| `children` | `ReactNode` | – |--Used in: [manual: hello](https://github.com/shinyobjectz/raea/blob/main/docs/manual/examples/hello.tsx).+| `from` | `number` | the parent frame its frame 0 falls on (0) |+| `durationInFrames` | `number` | how many frames it shows its children (forever by default) |+| `name` | `string` | its label in the timeline and the render manifest (`data-sequence`) |+| `layout` | `SequenceLayout` | "absolute-fill" (default) wraps the children in a full-size box; "none" adds no box |+| `width` | `number` | the width its children see, px (the parent's by default) |+| `height` | `number` | the height its children see, px (the parent's by default) |+| `style` | `CSSProperties` | the wrapping box's style |+| `className` | `string` | the wrapping box's classes |+| `children` | `ReactNode` | what plays in it, at its own local time |### `Series`@@ -224,7 +219,7 @@ Plays its Series.Sequence children back to back, each shifted by its own offset.| Prop | Type | What it does || --- | --- | --- |-| `children` | `ReactNode` | – |+| `children` | `ReactNode` | the Series.Sequence slots, played back to back |### `SongPlot`@@ -233,10 +228,10 @@ it, hits, the feature lanes, and the pacing (cuts per bar). `raea song FILE --pl| Prop | Type | What it does || --- | --- | --- |-| `map` (required) | `SongMap` | – |-| `width` | `number` | – |-| `height` | `number` | – |-| `title` | `string` | – |+| `map` (required) | `SongMap` | the song's map, from \`raea song\` |+| `width` | `number` | in px |+| `height` | `number` | in px |+| `title` | `string` | the heading (the song's name, tempo, metre and length by default) |### `Stagger`@@ -266,7 +261,7 @@ The frame being rendered, counted from the start of the nearest enclosing Sequenfunction useCurrentFrame(): number```-Used in: [ui/scroll_and_overflow/overflow_transform](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/scroll_and_overflow/overflow_transform.tsx), [ui/render_ui_to_texture](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/render_ui_to_texture.tsx), [ui/ui_material](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/ui_material.tsx), [ui/styling/gradients](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/styling/gradients.tsx), [ui/text/text_debug](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/text/text_debug.tsx), [ui/text/text](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/text/text.tsx), [ui/text/font_atlas_debug](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/text/font_atlas_debug.tsx), [3d/fog_volumes](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/fog_volumes.tsx), and 46 more.+Used in: [ui/scroll_and_overflow/overflow_transform](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/scroll_and_overflow/overflow_transform.tsx), [ui/render_ui_to_texture](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/render_ui_to_texture.tsx), [ui/ui_material](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/ui_material.tsx), [ui/styling/gradients](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/styling/gradients.tsx), [ui/text/text_debug](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/text/text_debug.tsx), [ui/text/text](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/text/text.tsx), [ui/text/font_atlas_debug](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/text/font_atlas_debug.tsx), [3d/fog_volumes](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/fog_volumes.tsx), and 43 more.### `useGameEvents`@@ -289,7 +284,7 @@ in order. Frames count from the nearest enclosing Sequence, so a game starts whefunction useGameState<S>(initial: S, step: Step<S>): S```-Used in: [shader/shader_prepass](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/shader/shader_prepass.tsx), [shader/sprite_material](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/shader/sprite_material.tsx), [manual: squash](https://github.com/shinyobjectz/raea/blob/main/docs/manual/examples/squash.tsx).+Used in: [shader/shader_prepass](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/shader/shader_prepass.tsx), [shader/sprite_material](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/shader/sprite_material.tsx).### `useInput`@@ -329,8 +324,6 @@ The settings of the composition being rendered (a Sequence's width and height wifunction useVideoConfig(): VideoConfig```-Used in: [manual: title](https://github.com/shinyobjectz/raea/blob/main/docs/manual/examples/title.tsx), [manual: turntable](https://github.com/shinyobjectz/raea/blob/main/docs/manual/examples/turntable.tsx).-### `useWords`Every word heard on the timeline, in the frames of the nearest enclosing Sequence.@@ -449,8 +442,6 @@ range (`extend`, the default, carries on; `clamp` holds the end value; `identityfunction interpolate(x: number, input: readonly number[], output: readonly number[], options?: InterpolateOptions): number```-Used in: [manual: turntable](https://github.com/shinyobjectz/raea/blob/main/docs/manual/examples/turntable.tsx), [manual: hello](https://github.com/shinyobjectz/raea/blob/main/docs/manual/examples/hello.tsx).-### `isGeneratedAsset`Whether a value is a generated asset (what sao, tokensynthNote and lyria return), not a file path.@@ -570,7 +561,7 @@ Names the root component the renderer starts from, and records its compositions.function registerRoot(given: ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentType): void```-Used in: [ui/images/image_node](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/image_node.tsx), [ui/images/ui_texture_slice_flip_and_tile](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/ui_texture_slice_flip_and_tile.tsx), [ui/images/image_node_resizing](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/image_node_resizing.tsx), [ui/images/ui_texture_atlas_slice](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/ui_texture_atlas_slice.tsx), [ui/images/ui_texture_slice](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/ui_texture_slice.tsx), [ui/images/ui_texture_atlas](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/ui_texture_atlas.tsx), [ui/layout/grid](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/layout/grid.tsx), [ui/layout/ghost_nodes](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/layout/ghost_nodes.tsx), and 152 more.+Used in: [ui/images/image_node](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/image_node.tsx), [ui/images/ui_texture_slice_flip_and_tile](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/ui_texture_slice_flip_and_tile.tsx), [ui/images/image_node_resizing](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/image_node_resizing.tsx), [ui/images/ui_texture_atlas_slice](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/ui_texture_atlas_slice.tsx), [ui/images/ui_texture_slice](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/ui_texture_slice.tsx), [ui/images/ui_texture_atlas](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/ui_texture_atlas.tsx), [ui/layout/grid](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/layout/grid.tsx), [ui/layout/ghost_nodes](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/layout/ghost_nodes.tsx), and 148 more.### `replayDecider`@@ -673,8 +664,6 @@ stretches it to end at that frame. `measureSpring` says how long one takes to sefunction spring(opts: SpringOptions): number```-Used in: [manual: title](https://github.com/shinyobjectz/raea/blob/main/docs/manual/examples/title.tsx).-### `stagger`The parts `each` frames apart, each with `m`. With `grid`, delays spread by grid distance from an origin.@@ -803,8 +792,6 @@ The easing curves, each a function of progress 0..1: `linear`, `quad`, `cubic`,`back`, `elastic`, `bounce` and `bezier(x1, y1, x2, y2)`, eased in as they are; `Easing.out(f)` and `Easing.inOut(f)`turn one round. Pass one as `interpolate`'s `easing`.-Used in: [manual: turntable](https://github.com/shinyobjectz/raea/blob/main/docs/manual/examples/turntable.tsx).-### `FEED_KEY`The prefix of the keys the app hands every panel for what it knows: `feed:transcript` (the conversation's last lines,@@ -857,11 +844,11 @@ type Actions = Action<C, E> | readonly Action<C, E>[]| Field | Type | What it is || --- | --- | --- |-| `id` (required) | `string` | – |-| `states` (required) | `{ name: N; parent: N \| null; depth: number; kind: "leaf" \| "compound" \| "final"; initia…` | – |-| `edges` (required) | `Edge<N>[]` | – |+| `id` (required) | `string` | the machine's id |+| `states` (required) | `{ name: N; parent: N \| null; depth: number; kind: "leaf" \| "compound" \| "final"; initia…` | every state with its parent, depth, kind and whether it's an initial state |+| `edges` (required) | `Edge<N>[]` | every transition || `reachable` (required) | `N[]` | states some sequence of transitions reaches from the initial state (guards assumed satisfiable) |-| `unreachable` (required) | `N[]` | – |+| `unreachable` (required) | `N[]` | states no sequence of transitions reaches || `deadEnds` (required) | `N[]` | non-final leaves with no transition out (their own or an enclosing state's): once entered, never left |### `AnimateOwnProps`@@ -874,12 +861,12 @@ type Actions = Action<C, E> | readonly Action<C, E>[]| `at` | `number` | local frame the entrance starts (0) || `exitAt` | `number` | local frame the exit starts || `timeline` | `Plan` | a timeline's plan and this element's part in it: the part's move, at its start (plus `at`) |-| `part` | `string` | – |+| `part` | `string` | the part in \`timeline\` whose move this element plays || `mount` | `"during" \| "always"` | "always" (default): in the tree, and its layout, the whole time (invisible before an entrance that fades in); "during": only from the entrance's start until the exit ends (it takes its space when it arrives) || `as` | `string` | the element: "div" by default |-| `style` | `CSSProperties` | – |-| `className` | `string` | – |-| `children` | `ReactNode` | – |+| `style` | `CSSProperties` | inline style |+| `className` | `string` | Tailwind or CSS classes |+| `children` | `ReactNode` | what moves |### `AnimateProps`@@ -889,42 +876,48 @@ type AnimateProps = AnimateOwnProps & { [attr: string]: unknown }### `Animation`-raea_core_animate::spec::Animation+One element's declared animation.++Rust: `raea_core_animate::spec::Animation`.| Field | Type | What it is || --- | --- | --- |-| `origin` (required) | `number` | – |-| `freeze` (required) | `number \| null` | – |-| `fps` (required) | `number` | – |-| `tracks` (required) | `(AnimTrack)[]` | – |-| `show_from` (required) | `number \| null` | – |-| `show_until` (required) | `number \| null` | – |+| `origin` (required) | `number` | the composition frame the element's local frame 0 falls on (where its Sequence starts) |+| `freeze` (required) | `number \| null` | a local frame to hold at whatever the composition's frame (inside a Freeze) |+| `fps` (required) | `number` | the frames per second its frames count; springs measure their settle time with it (0: the clock's) |+| `tracks` (required) | `(AnimTrack)[]` | the element's keyframed properties, one track each |+| `show_from` (required) | `number \| null` | the local frame it's shown from, when it shows only for a window (mount="during"); before it, display none |+| `show_until` (required) | `number \| null` | the local frame it's hidden from again |### `AnimKey`-raea_core_animate::spec::AnimKey+One key: a value at a local frame, and the curve from it to the next key.++Rust: `raea_core_animate::spec::AnimKey`.| Field | Type | What it is || --- | --- | --- |-| `at` (required) | `number` | – |-| `value` (required) | `number` | – |-| `color` (required) | `string` | – |-| `ease` (required) | `string` | – |+| `at` (required) | `number` | the local frame it's at |+| `value` (required) | `number` | a number property's value there |+| `color` (required) | `string` | a colour property's value (CSS text); empty for numbers |+| `ease` (required) | `string` | the curve to the next key (easing::Easing::parse); empty is linear |### `AnimTrack`-raea_core_animate::spec::AnimTrack+Keyframes on one property.++Rust: `raea_core_animate::spec::AnimTrack`.| Field | Type | What it is || --- | --- | --- |-| `prop` (required) | `string` | – |-| `keys` (required) | `(AnimKey)[]` | – |-| `unit` (required) | `string` | – |-| `repeat` (required) | `string` | – |-| `digits` (required) | `number` | – |-| `prefix` (required) | `string` | – |-| `suffix` (required) | `string` | – |-| `separator` (required) | `string` | – |+| `prop` (required) | `string` | the property it keys: opacity, x, y, z, scale, rotate, width, height, blur, clip, a colour, `text`, or another number |+| `keys` (required) | `(AnimKey)[]` | its keyframes in frame order |+| `unit` (required) | `string` | a length's unit: "px" (when empty) or "%" |+| `repeat` (required) | `string` | past the last key: "" or "hold", "loop", "pingpong" (for ever), or "loop:N" / "pingpong:N" |+| `digits` (required) | `number` | decimals a `text` number is written with |+| `prefix` (required) | `string` | written before and after a `text` number (a counter's "$" and " pts") |+| `suffix` (required) | `string` | written after a `text` number |+| `separator` (required) | `string` | between a `text` number's thousands ("," writes 12,345); empty: none |### `AnyMachine`@@ -948,13 +941,13 @@ A choice point as a decider sees it: which machine, where, and the candidates wh| Field | Type | What it is || --- | --- | --- |-| `machine` (required) | `string` | – |+| `machine` (required) | `string` | the machine's id || `state` (required) | `string` | the state whose `choose` list this is, and the active leaf |-| `leaf` (required) | `string` | – |+| `leaf` (required) | `string` | the active leaf state || `n` (required) | `number` | the machine's step || `candidates` (required) | `{ edge: number; to: string; description?: string }[]` | the candidates whose guards hold, in their order (each an edge of machine.edges) |-| `ctx` (required) | `C` | – |-| `env` (required) | `E` | – |+| `ctx` (required) | `C` | the context the machine drives |+| `env` (required) | `E` | whatever the step was given as env |### `ClockProps`@@ -999,8 +992,8 @@ is asked outside the step and their answer replayed (`replayDecider`). Determini| Field | Type | What it is || --- | --- | --- |-| `name` (required) | `string` | – |-| `decide` (required) | `(point: ChoicePoint<unknown, unknown>) => Decision` | – |+| `name` (required) | `string` | its name in the trace's `by` column |+| `decide` (required) | `(point: ChoicePoint<unknown, unknown>) => Decision` | picks a candidate at a choice point, synchronously |### `Decision`@@ -1009,8 +1002,8 @@ whatever supports the choice (a bot's score, a model's probabilities), recorded| Field | Type | What it is || --- | --- | --- |-| `edge` (required) | `number \| null` | – |-| `evidence` | `unknown` | – |+| `edge` (required) | `number \| null` | the edge picked, one of the candidates' `edge`; null waits this step |+| `evidence` | `unknown` | what supports the choice (a bot's score, a model's probabilities), recorded with the transition |### `EasingFn`@@ -1022,14 +1015,14 @@ type EasingFn = (p: number) => number| Field | Type | What it is || --- | --- | --- |-| `index` (required) | `number` | – |-| `from` (required) | `N` | – |-| `to` (required) | `N` | – |-| `kind` (required) | `"always" \| "after" \| "on" \| "done" \| "choose"` | – |+| `index` (required) | `number` | its place in `machine.edges` |+| `from` (required) | `N` | the state it leaves |+| `to` (required) | `N` | the state it enters |+| `kind` (required) | `"always" \| "after" \| "on" \| "done" \| "choose"` | what fires it: a guard polled each step (always), a delay (after), an event (on), the substate finishing (done) or a decider (choose) || `event` | `string` | the event an `on` edge waits for || `after` (required) | `number` | steps in `from` before it may fire |-| `guarded` (required) | `boolean` | – |-| `description` | `string` | – |+| `guarded` (required) | `boolean` | whether it has a guard (`when`) |+| `description` | `string` | what the transition means, from its config |### `Edit`@@ -1038,7 +1031,7 @@ a split, a cut word or a moved span is a change to this list; the length becomes| Field | Type | What it is || --- | --- | --- |-| `segments` | `readonly (readonly [number, number])[]` | – |+| `segments` | `readonly (readonly [number, number])[]` | the composition's own frame ranges, [from, to), played one after another |### `ExtrapolateMode`@@ -1074,9 +1067,9 @@ The props of [`Freeze`](#freeze), tabled there.| Field | Type | What it is || --- | --- | --- |-| `kind` (required) | `AssetKind` | – |-| `prompt` (required) | `string` | – |-| `seconds` (required) | `number` | – |+| `kind` (required) | `AssetKind` | which generator makes it: lyria (music), sao (sound effects) or tokensynth (an instrument's note) |+| `prompt` (required) | `string` | what to make, in words |+| `seconds` (required) | `number` | how long it is || `id` (required) | `string` | a stable hash of kind, prompt and seconds || `src` (required) | `string` | "asset:<kind>/<id>" || `options` | `Record<string, unknown>` | the generator's own settings (a TokenSynth note's midi, velocity, seed and device) |@@ -1091,8 +1084,8 @@ type GridFrom = "top-left" | "top-right" | "bottom-left" | "bottom-right" | "cen| Field | Type | What it is || --- | --- | --- |-| `kind` (required) | `"sequence" \| "parallel"` | – |-| `steps` (required) | `Step[]` | – |+| `kind` (required) | `"sequence" \| "parallel"` | sequence: one after another; parallel: together |+| `steps` (required) | `Step[]` | its steps, in order || `gap` (required) | `number` | frames between steps of a sequence (negative overlaps) |### `Guard`@@ -1119,9 +1112,9 @@ type InputTimeline = Record<number, Partial<FrameInput> | undefined>| Field | Type | What it is || --- | --- | --- |-| `easing` | `EasingFn \| EasingFn[]` | – |-| `extrapolateLeft` | `ExtrapolateMode` | – |-| `extrapolateRight` | `ExtrapolateMode` | – |+| `easing` | `EasingFn \| EasingFn[]` | the curve between keyframes: one for all, or one a segment |+| `extrapolateLeft` | `ExtrapolateMode` | below the first keyframe: extend the line (default), clamp to it, identity (the input itself) or wrap |+| `extrapolateRight` | `ExtrapolateMode` | past the last keyframe: extend (default), clamp, identity or wrap |### `Keys`@@ -1140,8 +1133,8 @@ The props of [`Loop`](#loop), tabled there.| Field | Type | What it is || --- | --- | --- |-| `id` (required) | `string` | – |-| `key` (required) | `K` | – |+| `id` (required) | `string` | the machine's name in traces and reports |+| `key` (required) | `K` | the context's field holding its snapshot ("sm") || `states` (required) | `readonly N[]` | every state, in definition order (outer before inner) || `edges` (required) | `readonly Edge<N>[]` | every transition, in the order they're checked within a state || `start` (required) | `() => Snapshot<N>` | a snapshot before the first step: the first step enters the initial states (running their entry actions) |@@ -1159,8 +1152,8 @@ The props of [`Loop`](#loop), tabled there.| Field | Type | What it is || --- | --- | --- || `id` (required) | `string` | the machine's name in traces and reports |-| `initial` (required) | `NoInfer<N>` | – |-| `states` (required) | `{ [S in N]?: StateConfig<C, E, N> }` | – |+| `initial` (required) | `NoInfer<N>` | the state it starts in |+| `states` (required) | `{ [S in N]?: StateConfig<C, E, N> }` | its states by name, each a StateConfig (substates nest inside) || `key` | `K` | the context's field holding the snapshot ("sm") || `strict` | `boolean` | refuse unreachable states and non-final dead ends when the machine is built (true) |@@ -1168,22 +1161,22 @@ The props of [`Loop`](#loop), tabled there.| Field | Type | What it is || --- | --- | --- |-| `src` (required) | `string` | – |-| `startFrom` | `number` | – |-| `endAt` | `number` | – |-| `trimBefore` | `number` | – |-| `trimAfter` | `number` | – |+| `src` (required) | `string` | the file: staticFile("clip.mp4"), or a generated asset |+| `startFrom` | `number` | the media's own frame it starts playing from (0); the same as trimBefore |+| `endAt` | `number` | the media's frame it stops before (exclusive): it holds the last frame, or loops; the same as trimAfter |+| `trimBefore` | `number` | frames of the media cut off its start (the newer name for startFrom) |+| `trimAfter` | `number` | the media's frame it's cut at (the newer name for endAt) || `volume` | `VolumeProp` | linear gain, 1 being unity (0.5 is about -6 dB, 1.78 about +5 dB), or a function of the media's own frame || `gainDb` | `VolumeProp` | ours: the gain in decibels (or a function of the media's own frame returning it); wins over volume || `fadeIn` | `number` | ours: seconds to ramp the sound in from silence at its start (applied by the renderer at the audio's rate) || `fadeOut` | `number` | ours: seconds to ramp the sound out to silence at its end |-| `playbackRate` | `number` | – |-| `muted` | `boolean` | – |-| `loop` | `boolean` | – |+| `playbackRate` | `number` | how fast it plays (1): 2 is double speed |+| `muted` | `boolean` | play no sound |+| `loop` | `boolean` | start again from `startFrom` when it reaches `endAt` || `bus` | `string` | the bus it plays into: a named channel of the edit's Tone graph (music, sfx, voice, ambience, ui), so it takes that bus's volume, effects and ducking (raea/tone `buses`) |-| `name` | `string` | – |-| `className` | `string` | – |-| `style` | `CSSProperties` | – |+| `name` | `string` | the entity's name, for picking, the inspector and world.* |+| `className` | `string` | Tailwind or CSS classes |+| `style` | `CSSProperties` | inline style |### `MixProps`@@ -1195,7 +1188,7 @@ Tracks by property, in frames from the move's own start.| Field | Type | What it is || --- | --- | --- |-| `tracks` (required) | `Record<string, TrackSpec \| TrackSpec[]>` | – |+| `tracks` (required) | `Record<string, TrackSpec \| TrackSpec[]>` | keyframes by property, in frames from the move's start || `frames` (required) | `number` | how long it runs (its last key) |### `MoveLike`@@ -1221,9 +1214,9 @@ panel's state.| Field | Type | What it is || --- | --- | --- |-| `about` (required) | `string` | – |-| `args` | `Record<string, string>` | – |-| `run` (required) | `(state: S, args: A) => S` | – |+| `about` (required) | `string` | what the action does, for the agent |+| `args` | `Record<string, string>` | its arguments by name, a few words each |+| `run` (required) | `(state: S, args: A) => S` | the panel's state after it |### `PanelActions`@@ -1237,8 +1230,8 @@ What perception saw at this frame: the largest face, and the platform's safe are| Field | Type | What it is || --- | --- | --- |-| `face` | `Rect` | – |-| `safe` | `{ top?: number; bottom?: number }` | – |+| `face` | `Rect` | the largest face's box, when there's one |+| `safe` | `{ top?: number; bottom?: number }` | px the platform's UI covers at the top and bottom |### `Plan`@@ -1246,8 +1239,8 @@ A timeline's plan: each part's start frame and move, and the whole length.| Field | Type | What it is || --- | --- | --- |-| `parts` (required) | `Record<string, { at: number; move: Move }>` | – |-| `frames` (required) | `number` | – |+| `parts` (required) | `Record<string, { at: number; move: Move }>` | each part's start frame and move, by its name |+| `frames` (required) | `number` | the whole timeline's length in frames |### `Playtest`@@ -1271,21 +1264,21 @@ whatever it plays is an input timeline `raea render --input` turns back into the| Field | Type | What it is || --- | --- | --- |-| `width` (required) | `number` | – |-| `height` (required) | `number` | – |-| `face` | `Rect` | – |-| `parts` (required) | `ProofPart[]` | – |+| `width` (required) | `number` | the composition's width, px |+| `height` (required) | `number` | the composition's height, px |+| `face` | `Rect` | the face's box, when perception found one |+| `parts` (required) | `ProofPart[]` | the measured boxes of the parts to check |### `ProofPart`| Field | Type | What it is || --- | --- | --- |-| `name` (required) | `string` | – |+| `name` (required) | `string` | the part's name, in the faults || `band` | `[number, number]` | the band the part must fit in, [top, bottom] in px |-| `x` (required) | `number` | – |-| `y` (required) | `number` | – |-| `w` (required) | `number` | – |-| `h` (required) | `number` | – |+| `x` (required) | `number` | the left edge, px |+| `y` (required) | `number` | the top edge, px |+| `w` (required) | `number` | width, px |+| `h` (required) | `number` | height, px |### `RaeaCSSProperties`@@ -1303,10 +1296,10 @@ A box in composition px.| Field | Type | What it is || --- | --- | --- |-| `x` (required) | `number` | – |-| `y` (required) | `number` | – |-| `w` (required) | `number` | – |-| `h` (required) | `number` | – |+| `x` (required) | `number` | the left edge, px |+| `y` (required) | `number` | the top edge, px |+| `w` (required) | `number` | width, px |+| `h` (required) | `number` | height, px |### `RegionBox`@@ -1314,11 +1307,11 @@ The band a Region occupies, in composition px.| Field | Type | What it is || --- | --- | --- |-| `name` (required) | `RegionName` | – |-| `x` (required) | `number` | – |-| `y` (required) | `number` | – |-| `w` (required) | `number` | – |-| `h` (required) | `number` | – |+| `name` (required) | `RegionName` | the band it took: top, bottom, center or full ("auto" resolves to top or bottom) |+| `x` (required) | `number` | the left edge, px |+| `y` (required) | `number` | the top edge, px |+| `w` (required) | `number` | width, px |+| `h` (required) | `number` | height, px |### `RegionName`@@ -1334,13 +1327,13 @@ The props of [`Region`](#region), tabled there.| Field | Type | What it is || --- | --- | --- |-| `id` (required) | `string` | – |-| `component` (required) | `ComponentType<any>` | – |-| `width` (required) | `number` | – |-| `height` (required) | `number` | – |-| `fps` (required) | `number` | – |-| `durationInFrames` (required) | `number` | – |-| `defaultProps` (required) | `Record<string, unknown>` | – |+| `id` (required) | `string` | the composition's id: letters, digits and dashes (`raea render --composition` picks it) |+| `component` (required) | `ComponentType<any>` | the React component it renders |+| `width` (required) | `number` | in px |+| `height` (required) | `number` | in px |+| `fps` (required) | `number` | frames a second |+| `durationInFrames` (required) | `number` | its length in frames |+| `defaultProps` (required) | `Record<string, unknown>` | the props it's rendered with (JSON-like values only) |### `SequenceLayout`@@ -1356,14 +1349,14 @@ The props of [`Sequence`](#sequence), tabled there.| Field | Type | What it is || --- | --- | --- |-| `offset` | `number` | – |-| `height` | `number` | – |-| `style` | `CSSProperties` | – |-| `children` | `ReactNode` | – |-| `className` | `string` | – |-| `name` | `string` | – |-| `width` | `number` | – |-| `durationInFrames` | `number` | – |+| `offset` | `number` | frames from the previous slot's end to this one's start (0); negative overlaps |+| `height` | `number` | the height its children see, px (the parent's by default) |+| `style` | `CSSProperties` | the wrapping box's style |+| `children` | `ReactNode` | what plays in it, at its own local time |+| `className` | `string` | the wrapping box's classes |+| `name` | `string` | its label in the timeline and the render manifest (`data-sequence`) |+| `width` | `number` | the width its children see, px (the parent's by default) |+| `durationInFrames` | `number` | how many frames it shows its children (forever by default) |### `Snapshot`@@ -1374,20 +1367,20 @@ guard); `hist` is each history state's last substate.| Field | Type | What it is || --- | --- | --- |-| `path` (required) | `N[]` | – |-| `at` (required) | `number[]` | – |-| `n` (required) | `number` | – |-| `e` (required) | `number` | – |-| `by` | `string` | – |-| `hist` | `{ [S in N]?: N }` | – |+| `path` (required) | `N[]` | the active states, outermost first ([] before the first step) |+| `at` (required) | `number[]` | the step each state in `path` was entered on |+| `n` (required) | `number` | the machine's steps so far, from 0 |+| `e` (required) | `number` | the edge the last transition took, an index into `machine.edges` |+| `by` | `string` | the decider that chose the last transition (absent: a guard did) |+| `hist` | `{ [S in N]?: N }` | each history state's last substate |### `Song`| Field | Type | What it is || --- | --- | --- |-| `map` (required) | `SongMap` | – |-| `fps` (required) | `number` | – |-| `offset` (required) | `number` | – |+| `map` (required) | `SongMap` | the song's map, from \`raea song\` |+| `fps` (required) | `number` | the composition's frame rate, that frames are counted in |+| `offset` (required) | `number` | seconds into the song frame 0 falls on (0) || `frame` (required) | `(seconds: number) => number` | the frame a song time falls on || `seconds` (required) | `(frame: number) => number` | the song's seconds at a frame || `at` (required) | `(frame: number) => SongMoment` | where the song is at a frame |@@ -1400,32 +1393,32 @@ guard); `hist` is each history state's last substate.| Field | Type | What it is || --- | --- | --- |-| `time` (required) | `number` | – |-| `beat` (required) | `number` | – |-| `beats` (required) | `number` | – |-| `energy` (required) | `number` | – |-| `cuts` (required) | `number` | – |+| `time` (required) | `number` | seconds from the song's start where the bar begins (its downbeat) |+| `beat` (required) | `number` | the index of its first beat |+| `beats` (required) | `number` | how many beats it holds |+| `energy` (required) | `number` | its mean energy, 0..1 |+| `cuts` (required) | `number` | suggested cuts in this bar: 0.25, 0.5, 1, 2 or 4 |### `SongEvent`| Field | Type | What it is || --- | --- | --- |-| `kind` (required) | `SongEventKind` | – |+| `kind` (required) | `SongEventKind` | what the event is: build, drop, stop, hit, dip or break || `time` (required) | `number` | seconds from the song's start: a beat (drop, a downbeat) or the grid's nearest beat or half beat (hit) || `end` | `number` | spans (build, stop, dip, break) end here |-| `beat` (required) | `number` | – |-| `bar` (required) | `number` | – |-| `beats` | `number` | – |+| `beat` (required) | `number` | the index of the beat it starts on, in `SongMap.beats` |+| `bar` (required) | `number` | the index of the bar it starts in |+| `beats` | `number` | a span: how many beats it lasts || `strength` (required) | `number` | 0..1 || `into` | `number \| null` | a build or stop: the drop it leads into, seconds || `hits` | `SongHit[]` | a stop: its sparse hits || `rise` | `number` | a drop: the energy of the bar after minus the bar before (negative when the band cuts after one big hit) || `holds` | `boolean` | a drop: the bar after stays up (false: one hit, then the band cuts out) |-| `afterStop` | `boolean` | – |-| `afterBuild` | `boolean` | – |+| `afterStop` | `boolean` | a drop: it comes straight out of a stop |+| `afterBuild` | `boolean` | a drop: it lands at the end of a build (within two bars of it) || `gapBefore` | `boolean` | a drop: a breath of near-silence just before it || `at` | `number` | a hit: the onset's own time; how far over the groove it stands |-| `over` | `number` | – |+| `over` | `number` | a hit: how far over the groove it stands |### `SongEventKind`@@ -1437,12 +1430,12 @@ type SongEventKind = "build" | "drop" | "stop" | "hit" | "dip" | "break"| Field | Type | What it is || --- | --- | --- |-| `loudness` (required) | `number[]` | – |-| `onsets` (required) | `number[]` | – |-| `brightness` (required) | `number[]` | – |-| `low` (required) | `number[]` | – |-| `high` (required) | `number[]` | – |-| `energy` (required) | `number[]` | – |+| `loudness` (required) | `number[]` | loudness (RMS) a beat, 0..1 over the song |+| `onsets` (required) | `number[]` | onset strength (spectral flux) a beat, 0..1: how much is struck |+| `brightness` (required) | `number[]` | brightness (spectral centroid) a beat, 0..1 |+| `low` (required) | `number[]` | the low end (kick and bass, under 150 Hz) a beat, 0..1 |+| `high` (required) | `number[]` | the high band (over 3 kHz) a beat, 0..1 |+| `energy` (required) | `number[]` | the combined energy a beat, 0..1: loudness, low end, onsets and highs together |### `SongHit`@@ -1450,9 +1443,9 @@ A hit inside a stop: `time` on the beat grid (a beat or half beat), `at` where t| Field | Type | What it is || --- | --- | --- |-| `time` (required) | `number` | – |-| `at` (required) | `number` | – |-| `strength` (required) | `number` | – |+| `time` (required) | `number` | seconds from the song's start, snapped to the beat grid (a beat or half beat) |+| `at` (required) | `number` | seconds from the song's start where the onset itself is |+| `strength` (required) | `number` | how hard the hit is, 0..1 |### `SongLevel`@@ -1464,19 +1457,19 @@ type SongLevel = "intro" | "low" | "mid" | "high" | "outro"| Field | Type | What it is || --- | --- | --- |-| `version` (required) | `number` | – |-| `duration` (required) | `number` | – |-| `tempo` (required) | `number \| null` | – |-| `beatsPerBar` (required) | `number` | – |-| `beats` (required) | `number[]` | – |-| `downbeats` (required) | `number[]` | – |+| `version` (required) | `number` | the map format's version (1) |+| `duration` (required) | `number` | the song's length in seconds |+| `tempo` (required) | `number \| null` | beats per minute, or null when no beat was found |+| `beatsPerBar` (required) | `number` | beats in a bar (4 for 4/4) |+| `beats` (required) | `number[]` | every beat's time in seconds, ascending |+| `downbeats` (required) | `number[]` | every bar's first beat, in seconds || `features` (required) | `SongFeatures` | one value a beat, 0..1 over the song |-| `bars` (required) | `SongBar[]` | – |-| `sections` (required) | `SongSection[]` | – |-| `events` (required) | `SongEvent[]` | – |-| `sectionsFrom` | `"markers" \| "novelty"` | – |-| `boundaries` | `{ time: number; beat: number; bar: number; strength: number }[]` | – |-| `source` | `string \| null` | – |+| `bars` (required) | `SongBar[]` | the bars in order, each with its energy and suggested cut rate |+| `sections` (required) | `SongSection[]` | the song's sections in order (intro, verse, chorus and so on) |+| `events` (required) | `SongEvent[]` | builds, drops, stops, hits, dips and breaks, in time order |+| `sectionsFrom` | `"markers" \| "novelty"` | where the sections came from: the song file's markers, or novelty in the music itself |+| `boundaries` | `{ time: number; beat: number; bar: number; strength: number }[]` | the candidate section boundaries novelty found, each with its strength 0..1 |+| `source` | `string \| null` | the song file's name |### `SongMoment`@@ -1484,30 +1477,30 @@ Where a moment of the song is. Seconds are the song's; infinities when there's n| Field | Type | What it is || --- | --- | --- |-| `time` (required) | `number` | – |+| `time` (required) | `number` | the moment, seconds from the song's start || `beat` (required) | `number` | the beat at or before `time` (-1 before the first) || `bar` (required) | `number` | the bar at or before `time` (-1 before the first beat) || `beatInBar` (required) | `number` | 0-based position in the bar || `phase` (required) | `number` | 0..1 through the beat, and through the bar |-| `barPhase` (required) | `number` | – |+| `barPhase` (required) | `number` | 0..1 through the bar || `energy` (required) | `number` | the features at `time`, interpolated between beats |-| `loudness` (required) | `number` | – |-| `onsets` (required) | `number` | – |-| `brightness` (required) | `number` | – |-| `low` (required) | `number` | – |-| `section` (required) | `SongSection \| null` | – |-| `sectionIndex` (required) | `number` | – |+| `loudness` (required) | `number` | loudness at `time`, 0..1 |+| `onsets` (required) | `number` | onset strength at `time`, 0..1 |+| `brightness` (required) | `number` | brightness at `time`, 0..1 |+| `low` (required) | `number` | the low end at `time`, 0..1 |+| `section` (required) | `SongSection \| null` | the section `time` is in (null before the first) |+| `sectionIndex` (required) | `number` | that section's index in `SongMap.sections` (-1 for none) || `sectionProgress` (required) | `number` | 0..1 through the section || `cutsPerBar` (required) | `number` | the bar's suggested cut rate (cuts per bar) || `drop` (required) | `SongEvent \| null` | the last drop at or before `time`, the next after it |-| `nextDrop` (required) | `SongEvent \| null` | – |-| `sinceDrop` (required) | `number` | – |-| `untilDrop` (required) | `number` | – |+| `nextDrop` (required) | `SongEvent \| null` | the next drop after `time` |+| `sinceDrop` (required) | `number` | seconds since the last drop (Infinity when there's none) |+| `untilDrop` (required) | `number` | seconds until the next drop (Infinity when there's none) || `build` (required) | `SongEvent \| null` | the build `time` is in, and 0..1 through it |-| `inBuild` (required) | `boolean` | – |-| `buildProgress` (required) | `number` | – |+| `inBuild` (required) | `boolean` | whether `time` is inside a build |+| `buildProgress` (required) | `number` | 0..1 through that build || `stop` (required) | `SongEvent \| null` | the stop `time` is in |-| `inStop` (required) | `boolean` | – |+| `inStop` (required) | `boolean` | whether `time` is inside a stop || `dip` (required) | `SongEvent \| null` | the dip or break `time` is in || `next` (required) | `SongEvent \| null` | the next event of any kind after `time` |@@ -1526,37 +1519,37 @@ The props of [`SongPlot`](#songplot), tabled there.| Field | Type | What it is || --- | --- | --- |-| `name` (required) | `string` | – |-| `level` (required) | `SongLevel` | – |-| `time` (required) | `number` | – |-| `end` (required) | `number` | – |-| `beat` (required) | `number` | – |-| `bar` (required) | `number` | – |-| `energy` (required) | `number` | – |+| `name` (required) | `string` | the section's marker name when the song file has markers, else its level |+| `level` (required) | `SongLevel` | how high the section sits in the song: intro, low, mid, high or outro |+| `time` (required) | `number` | seconds from the song's start where the section begins |+| `end` (required) | `number` | seconds from the song's start where it ends |+| `beat` (required) | `number` | the index of its first beat |+| `bar` (required) | `number` | the index of its first bar |+| `energy` (required) | `number` | its mean energy, 0..1 || `cuts` (required) | `number` | suggested cuts per bar: 0.25, 0.5, 1, 2 or 4 |### `SpringConfig`| Field | Type | What it is || --- | --- | --- |-| `mass` | `number` | – |-| `damping` | `number` | – |-| `stiffness` | `number` | – |-| `overshootClamping` | `boolean` | – |+| `mass` | `number` | how heavy the spring's weight is (1): heavier is slower and swings further |+| `damping` | `number` | how fast the swing dies (10): lower bounces more |+| `stiffness` | `number` | how hard the spring pulls (100): stiffer is quicker |+| `overshootClamping` | `boolean` | stop at `to` the first time it gets there, with no overshoot (false) |### `SpringOptions`| Field | Type | What it is || --- | --- | --- |-| `frame` (required) | `number` | – |-| `fps` (required) | `number` | – |-| `from` | `number` | – |-| `to` | `number` | – |-| `config` | `SpringConfig` | – |-| `durationInFrames` | `number` | – |-| `durationRestThreshold` | `number` | – |-| `delay` | `number` | – |-| `reverse` | `boolean` | – |+| `frame` (required) | `number` | the frame to sample, usually useCurrentFrame() |+| `fps` (required) | `number` | frames a second, from useVideoConfig() |+| `from` | `number` | the value it starts at (0) |+| `to` | `number` | the value it settles at (1) |+| `config` | `SpringConfig` | the spring: mass, damping, stiffness, overshootClamping |+| `durationInFrames` | `number` | stretch or squeeze the spring to settle in this many frames |+| `durationRestThreshold` | `number` | how close to `to`, as a share of the travel, counts as settled when timing it (0.005) |+| `delay` | `number` | frames before it starts (0) |+| `reverse` | `boolean` | play it backwards: from `to` back to `from` |### `StaggerProps`@@ -1565,16 +1558,16 @@ The props of [`SongPlot`](#songplot), tabled there.| `each` (required) | `number` | frames between one child's entrance and the next || `grid` | `{ cols: number; rows?: number; from?: GridFrom }` | spread by grid distance instead of order || `exitEach` | `number` | the exit staggered too, `exitEach` frames apart (0: all together) |-| `style` | `CSSProperties` | – |+| `style` | `CSSProperties` | inline style || `animate` | `Record<string, TrackSpec \| TrackSpec[] \| Keys> \| Move` | free tracks by property, in local frames: `{ backgroundColor: track({ 0: "#fff", 20: "#000" }) }` || `as` | `string` | the element: "div" by default || `exit` | `MoveLike` | the exit, played at `exitAt` (an entrance reversed: `exit="rise"` sinks back out) |-| `children` | `ReactNode` | – |+| `children` | `ReactNode` | what moves || `enter` | `MoveLike` | the entrance: a move's name, a move, or several together || `at` | `number` | local frame the entrance starts (0) || `exitAt` | `number` | local frame the exit starts || `mount` | `"during" \| "always"` | "always" (default): in the tree, and its layout, the whole time (invisible before an entrance that fades in); "during": only from the entrance's start until the exit ends (it takes its space when it arrives) |-| `className` | `string` | – |+| `className` | `string` | Tailwind or CSS classes |### `StateConfig`@@ -1592,7 +1585,7 @@ The props of [`SongPlot`](#songplot), tabled there.| `history` | `"shallow" \| "deep"` | re-entering this compound state resumes the substate it left ("shallow"), or that substate's own (deep) || `onDone` | `Transitions<C, E, N>` | a compound state's transition taken when its active substate is final || `type` | `"final"` | a final state: no transitions out (a dead enemy, the game won, the work shipped) |-| `description` | `string` | – |+| `description` | `string` | what the state means, for reports and a decider |### `StateName`@@ -1624,7 +1617,7 @@ What a step may be given besides the context and env.| Field | Type | What it is || --- | --- | --- |-| `text` (required) | `string` | – |+| `text` (required) | `string` | the word as spoken || `from` (required) | `number` | first frame of the word || `to` (required) | `number` | frame after the word ends (exclusive) |@@ -1634,14 +1627,14 @@ One property's keyframes: values by frame, the curve between each pair (one for| Field | Type | What it is || --- | --- | --- |-| `keys` (required) | `[number, V][]` | – |-| `ease` (required) | `Curve \| Curve[]` | – |-| `unit` | `"px" \| "%"` | – |-| `repeat` | `"hold" \| "loop" \| "pingpong" \| `${"loop" \| "pingpong"}:${number}`` | – |-| `digits` | `number` | – |+| `keys` (required) | `[number, V][]` | [frame, value] pairs in frame order, frames from the move's start |+| `ease` (required) | `Curve \| Curve[]` | the curve between keys: one for all, or one a segment |+| `unit` | `"px" \| "%"` | a length's unit: px (the default) or % |+| `repeat` | `"hold" \| "loop" \| "pingpong" \| `${"loop" \| "pingpong"}:${number}`` | past the last key: hold (the default), loop or pingpong, for ever or N times ("loop:3") |+| `digits` | `number` | decimals a `text` counter writes || `prefix` | `string` | a `text` counter's text before and after the number, and between its thousands ("," writes 12,345) |-| `suffix` | `string` | – |-| `separator` | `string` | – |+| `suffix` | `string` | written after a `text` counter's number (" pts") |+| `separator` | `string` | between a `text` counter's thousands ("," writes 12,345) |### `TransitionConfig`@@ -1659,14 +1652,14 @@ null for the first step's entry into the initial states.| Field | Type | What it is || --- | --- | --- |-| `machine` (required) | `string` | – |-| `step` (required) | `number` | – |-| `from` (required) | `string \| null` | – |-| `to` (required) | `string` | – |-| `edge` (required) | `number` | – |-| `kind` (required) | `Edge["kind"] \| "start"` | – |+| `machine` (required) | `string` | the machine's id |+| `step` (required) | `number` | the machine's step it happened on |+| `from` (required) | `string \| null` | the leaf it left (null for the first entry) |+| `to` (required) | `string` | the leaf it entered |+| `edge` (required) | `number` | the edge it took, an index into `machine.edges` |+| `kind` (required) | `Edge["kind"] \| "start"` | what kind of edge: always, after, on, choose, done (an onDone), or start for the first entry || `by` (required) | `string` | "guard" for a trigger, "start" for the first entry, else the decider's name |-| `evidence` | `unknown` | – |+| `evidence` | `unknown` | the decider's evidence for the choice |### `Transitions`@@ -1686,12 +1679,12 @@ type Transitions = | NoInfer<N> | TransitionConfig<C, E, N> | readonly (NoInfer<| Field | Type | What it is || --- | --- | --- |-| `id` (required) | `string` | – |-| `width` (required) | `number` | – |-| `height` (required) | `number` | – |-| `fps` (required) | `number` | – |-| `durationInFrames` (required) | `number` | – |-| `defaultProps` (required) | `Record<string, unknown>` | – |+| `id` (required) | `string` | the composition's id ("main" by default) |+| `width` (required) | `number` | in px |+| `height` (required) | `number` | in px |+| `fps` (required) | `number` | frames a second |+| `durationInFrames` (required) | `number` | its length in frames |+| `defaultProps` (required) | `Record<string, unknown>` | the props the composition is rendered with |### `VideoProps`@@ -1709,8 +1702,8 @@ A machine's state in some context, for a trace (`Playtest.machines`).| Field | Type | What it is || --- | --- | --- |-| `machine` (required) | `AnyMachine` | – |-| `snapshot` (required) | `Snapshot` | – |+| `machine` (required) | `AnyMachine` | the machine |+| `snapshot` (required) | `Snapshot` | its runtime state in that context |### `WordOptions`diff --git a/docs/manual/reference/sdk/remote.md b/docs/manual/reference/sdk/remote.mdindex 2759c0fa..9f0e55fc 100644--- a/docs/manual/reference/sdk/remote.md+++ b/docs/manual/reference/sdk/remote.md@@ -36,11 +36,10 @@ insert, query and step it, and add TypeScript systems to its schedules.| Member | What it does || --- | --- |-| `new BevyApp(id: number, methods: string[])` | – || `BevyApp.open(o: OpenOptions): BevyApp` | A headless App with these plugins; Startup has run, no frame has stepped. TypeScript plugins are built in order once the App is open, then finished and cleaned up; their Startup systems run before the first frame. || `BevyApp.stepTogether(apps: BevyApp[], frames?: number): number[]` | Apps stepped together, a frame at a time: a network's peers. Returns each one's frame. || `.methods: string[]` | the methods this App answers (BRP's, raea's and its plugins') |-| `.id: number` | – |+| `.id: number` | the App's handle in the engine || `.isPluginAdded(name: string): boolean` | Whether a plugin of this name is in the App (Bevy's is_plugin_added), Rust or TypeScript. || `.addPlugins(...refs: PluginRef[]): BevyApp` | Adds TypeScript plugins and groups (Bevy's add_plugins): each built in order, then each finished, then each cleaned up. A Rust plugin is compiled in and must be named when the App opens; naming a new one here throws. || `.addSystems(schedule: string, systems: ((app: BevyApp, frame: number) => void) \| ((app: BevyApp, frame: number) => void)[], o?: SystemOptions): BevyApp` | Systems in a schedule (Bevy's add_systems), each as `system` adds one; one of the startup schedules (PreStartup, Startup, PostStartup) runs them once, before the App's next frame. Returns the App, to chain. |@@ -53,11 +52,11 @@ insert, query and step it, and add TypeScript systems to its schedules.| `.frameSchedules(): string[]` | The schedules a frame runs, in order (Bevy's MainScheduleOrder). || `.call<A = unknown>(method: string, params?: unknown): A` | Any method of the App's table, run now: its answer, or a throw with the method's message. || `.spawn(...components: With[]): number` | A new entity with these components. |-| `.insert(entity: number, ...components: With[]): void` | – |+| `.insert(entity: number, ...components: With[]): void` | Adds these components to an entity, replacing any it has of the same type. || `.get<T>(entity: number, c: Component<T>): T \| undefined` | One component of an entity, or undefined when it hasn't got one. || `.query(o: { data?: Component<unknown>[] \| undefined; has?: Component<unknown>[] \| undefined; without?: Component<unknown>[] \| undefined; }): { entity: number…` | Entities with every component in `has` (and none in `without`), with the `data` components' values. |-| `.resource<T>(r: Resource<T>): T` | – |-| `.setResource<T>(r: Resource<T>, value: T): void` | – |+| `.resource<T>(r: Resource<T>): T` | A resource's value. |+| `.setResource<T>(r: Resource<T>, value: T): void` | Sets a resource's value, adding it if the app hasn't got one. || `.trigger<T>(e: Event<T>, value: T): void` | Triggers an event: its observers run now. || `.write<T>(m: Message<T>, value: T): void` | Writes a message, for its readers' next run. || `.observe<T>(e: Event<T>, entity?: number \| undefined): () => T[]` | Starts observing an event (BRP's world.observe+watch). Each call of the returned function gives the events triggered since the last call, in order. `entity` limits it to events aimed at that entity. |@@ -66,7 +65,7 @@ insert, query and step it, and add TypeScript systems to its schedules.| `.state<T>(s: State<T>): T \| null` | A state's value (null before it exists). || `.setState<T>(s: State<T>, value: T): void` | A state's next value: it changes at the next frame's StateTransition. || `.schema(crates?: string[] \| undefined): Record<string, unknown>` | The App's registered types as JSON schema (BRP's registry.schema), filtered by crate. |-| `.close(): void` | – |+| `.close(): void` | Shuts the app down; its methods fail after. |## Typesdiff --git a/docs/manual/reference/sdk/sprite.md b/docs/manual/reference/sdk/sprite.mdindex 87ed1698..71ef41c7 100644--- a/docs/manual/reference/sdk/sprite.md+++ b/docs/manual/reference/sdk/sprite.md@@ -147,11 +147,9 @@ Used in: [2d/2d_shapes](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bevy_math's Rectangle (half_size [0.5, 0.5] by default)-Bevy: `bevy_shape::Rectangle`.-| Prop | Type | What it does || --- | --- | --- |-| `half_size` | `Vec2` | Bevy: Half of the width and height of the rectangle |+| `half_size` | `Vec2` | half its width and height |Also takes the props of [`MeshAttributes`](#meshattributes) (`vertex_colors`); [`RingProps`](#ringprops) (`ring`, `inner`).@@ -231,9 +229,9 @@ Bevy: `bevy_image::texture_atlas_builder::TextureAtlasBuilder`, `bevy_image::tex| Member | What it does || --- | --- |-| `.padding(p: [number, number]): TextureAtlasBuilder` | – |-| `.addTexture(src: string): TextureAtlasBuilder` | – |-| `.build({ sampler }?: { sampler?: SamplerSpec \| undefined; }): BuiltAtlas` | – |+| `.padding(p: [number, number]): TextureAtlasBuilder` | Whole px of space around each picture, [x, y]. |+| `.addTexture(src: string): TextureAtlasBuilder` | Adds a picture, packed in the order added. |+| `.build({ sampler }?: { sampler?: SamplerSpec \| undefined; }): BuiltAtlas` | Packs the atlas, with its own sampler if given (Bevy's default otherwise). |Used in: [2d/texture_atlas](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/2d/texture_atlas.tsx).@@ -257,10 +255,10 @@ an arc: its radius and half its angle in radians (Bevy's CircularSector::new(r,| Field | Type | What it is || --- | --- | --- |-| `arc` | `{ radius: number; half_angle: number }` | – |-| `vertex_colors` | `(LinearRgba \| [number, number, number, number])[]` | – |-| `ring` | `number` | – |-| `inner` | `Record<string, unknown>` | – |+| `arc` | `{ radius: number; half_angle: number }` | its radius and half its angle in radians |+| `vertex_colors` | `(LinearRgba \| [number, number, number, number])[]` | one linear colour a vertex, in the mesh's vertex order (ATTRIBUTE_COLOR) |+| `ring` | `number` | a thickness: the shape made a ring that thick (to_ring) |+| `inner` | `Record<string, unknown>` | the ring's inner shape, as the same shape's fields |### `AtlasSprite`@@ -268,9 +266,9 @@ What a <Sprite> takes to show a built atlas: the whole of it, or one of its pict| Field | Type | What it is || --- | --- | --- |-| `src` (required) | `string` | – |-| `sampler` | `SamplerSpec` | – |-| `atlasPick` | `number` | – |+| `src` (required) | `string` | the atlas picture |+| `sampler` | `SamplerSpec` | how it's sampled (the atlas's own sampler) |+| `atlasPick` | `number` | which of its pictures shows (the whole atlas when left out) |### `BuiltAtlas`@@ -279,8 +277,8 @@ A built atlas: `image` the whole atlas as a sprite's picture, `sources.handle(te| Field | Type | What it is || --- | --- | --- |-| `image` (required) | `AtlasSprite` | – |-| `sources` (required) | `{ handle(texture: string): AtlasSprite }` | – |+| `image` (required) | `AtlasSprite` | the whole atlas, as a sprite's picture |+| `sources` (required) | `{ handle(texture: string): AtlasSprite }` | \`handle(texture)\`: one of the pictures packed into it, by its file |### `Capsule2dProps`@@ -302,26 +300,26 @@ The props of [`Ellipse`](#ellipse), tabled there.| Field | Type | What it is || --- | --- | --- |-| `transform` | `TransformValue` | – |-| `visibility` | `"Inherited" \| "Visible" \| "Hidden"` | – |+| `transform` | `TransformValue` | where it stands: translation, rotation (a quaternion) and scale |+| `visibility` | `"Inherited" \| "Visible" \| "Hidden"` | "Hidden" draws nothing; "Visible" and "Inherited" draw || `children` | `ReactNode` | one of bevy_math's 2D primitives (<Circle>, <Capsule2d>,...) and a <ColorMaterial>, or your own <Material> |-| `name` | `string` | – |-| `onClick` | `(e: Event3d) => void` | – |-| `onDrag` | `(e: Event3d) => void` | – |-| `onDragEnd` | `(e: Event3d) => void` | – |-| `onDragEnter` | `(e: Event3d) => void` | – |-| `onDragLeave` | `(e: Event3d) => void` | – |-| `onDragOver` | `(e: Event3d) => void` | – |-| `onDragStart` | `(e: Event3d) => void` | – |-| `onDrop` | `(e: Event3d) => void` | – |-| `onPointerDown` | `(e: Event3d) => void` | – |-| `onPointerMove` | `(e: Event3d) => void` | – |-| `onPointerUp` | `(e: Event3d) => void` | – |-| `onPointerEnter` | `(e: Event3d) => void` | – |-| `onPointerLeave` | `(e: Event3d) => void` | – |-| `onPointerOver` | `(e: Event3d) => void` | – |-| `onPointerOut` | `(e: Event3d) => void` | – |-| `onWheel` | `(e: Event3d) => void` | – |+| `name` | `string` | the entity's name, for picking, the inspector and world.* |+| `onClick` | `(e: Event3d) => void` | a press and release over the part |+| `onDrag` | `(e: Event3d) => void` | the part pressed is being dragged, each frame it moves |+| `onDragEnd` | `(e: Event3d) => void` | the drag of the part pressed ended |+| `onDragEnter` | `(e: Event3d) => void` | a dragged part came over this one (`dragged` names it) |+| `onDragLeave` | `(e: Event3d) => void` | a dragged part left this one |+| `onDragOver` | `(e: Event3d) => void` | a dragged part is over this one |+| `onDragStart` | `(e: Event3d) => void` | a drag began on the part pressed |+| `onDrop` | `(e: Event3d) => void` | a dragged part was dropped on this one |+| `onPointerDown` | `(e: Event3d) => void` | a button pressed over the part |+| `onPointerMove` | `(e: Event3d) => void` | the pointer moved over the part |+| `onPointerUp` | `(e: Event3d) => void` | a button released over the part |+| `onPointerEnter` | `(e: Event3d) => void` | the pointer came over the part (doesn't bubble) |+| `onPointerLeave` | `(e: Event3d) => void` | the pointer left the part (doesn't bubble) |+| `onPointerOver` | `(e: Event3d) => void` | the pointer came over the part (bubbles, as the DOM's) |+| `onPointerOut` | `(e: Event3d) => void` | the pointer left the part (bubbles) |+| `onWheel` | `(e: Event3d) => void` | the wheel turned over the part (`deltaX`, `deltaY`) || `quat` | `Quat` | Bevy's rotation as it is, a quaternion [x, y, z, w] in Bevy's axes (y up, z toward the viewer), in place of `rotation`: a turn out of the frame's plane too, as a Sprite's Transform takes it (camera/2d_on_ui) || `opacity` | `number` | 0 to 1 (1 by default) |@@ -331,7 +329,7 @@ a primitive's mesh attributes: its Mesh::ATTRIBUTE_COLOR, one linear colour per| Field | Type | What it is || --- | --- | --- |-| `vertex_colors` | `(LinearRgba \| [number, number, number, number])[]` | – |+| `vertex_colors` | `(LinearRgba \| [number, number, number, number])[]` | one linear colour a vertex, in the mesh's vertex order (ATTRIBUTE_COLOR) |### `Place2dProps`@@ -340,30 +338,30 @@ pointer and drag handlers, called as a 3D part's are (2D parts are picked first,| Field | Type | What it is || --- | --- | --- |-| `name` | `string` | – |-| `x` | `number` | – |-| `y` | `number` | – |+| `name` | `string` | the entity's name, for picking, the inspector and world.* |+| `x` | `number` | px from the frame's left edge to the part's centre |+| `y` | `number` | px from the frame's top edge to the part's centre, down positive || `rotation` | `number` | radians, clockwise (as CSS rotate) || `quat` | `Quat` | Bevy's rotation as it is, a quaternion [x, y, z, w] in Bevy's axes (y up, z toward the viewer), in place of `rotation`: a turn out of the frame's plane too, as a Sprite's Transform takes it (camera/2d_on_ui) || `scale` | `number \| [number, number]` | 1 by default; [x, y] to stretch || `z` | `number` | draw order among the 2D parts: higher draws over lower (0 by default) || `opacity` | `number` | 0 to 1 (1 by default) |-| `onClick` | `(e: Event3d) => void` | – |-| `onPointerDown` | `(e: Event3d) => void` | – |-| `onPointerUp` | `(e: Event3d) => void` | – |-| `onPointerOver` | `(e: Event3d) => void` | – |-| `onPointerOut` | `(e: Event3d) => void` | – |-| `onPointerEnter` | `(e: Event3d) => void` | – |-| `onPointerLeave` | `(e: Event3d) => void` | – |-| `onPointerMove` | `(e: Event3d) => void` | – |-| `onWheel` | `(e: Event3d) => void` | – |-| `onDragStart` | `(e: Event3d) => void` | – |-| `onDrag` | `(e: Event3d) => void` | – |-| `onDragEnd` | `(e: Event3d) => void` | – |-| `onDragEnter` | `(e: Event3d) => void` | – |-| `onDragOver` | `(e: Event3d) => void` | – |-| `onDragLeave` | `(e: Event3d) => void` | – |-| `onDrop` | `(e: Event3d) => void` | – |+| `onClick` | `(e: Event3d) => void` | a press and release over the part |+| `onPointerDown` | `(e: Event3d) => void` | a button pressed over the part |+| `onPointerUp` | `(e: Event3d) => void` | a button released over the part |+| `onPointerOver` | `(e: Event3d) => void` | the pointer came over the part (bubbles, as the DOM's) |+| `onPointerOut` | `(e: Event3d) => void` | the pointer left the part (bubbles) |+| `onPointerEnter` | `(e: Event3d) => void` | the pointer came over the part (doesn't bubble) |+| `onPointerLeave` | `(e: Event3d) => void` | the pointer left the part (doesn't bubble) |+| `onPointerMove` | `(e: Event3d) => void` | the pointer moved over the part |+| `onWheel` | `(e: Event3d) => void` | the wheel turned over the part (`deltaX`, `deltaY`) |+| `onDragStart` | `(e: Event3d) => void` | a drag began on the part pressed |+| `onDrag` | `(e: Event3d) => void` | the part pressed is being dragged, each frame it moves |+| `onDragEnd` | `(e: Event3d) => void` | the drag of the part pressed ended |+| `onDragEnter` | `(e: Event3d) => void` | a dragged part came over this one (`dragged` names it) |+| `onDragOver` | `(e: Event3d) => void` | a dragged part is over this one |+| `onDragLeave` | `(e: Event3d) => void` | a dragged part left this one |+| `onDrop` | `(e: Event3d) => void` | a dragged part was dropped on this one |### `RectangleProps`@@ -383,8 +381,8 @@ a 2D shape as Bevy's Ring: of it and `inner` (the same shape's fields), or its t| Field | Type | What it is || --- | --- | --- |-| `ring` | `number` | – |-| `inner` | `Record<string, unknown>` | – |+| `ring` | `number` | a thickness: the shape made a ring that thick (to_ring) |+| `inner` | `Record<string, unknown>` | the ring's inner shape, as the same shape's fields |### `Shape2DProps`@@ -392,7 +390,7 @@ a 2D shape as Bevy's Ring: of it and `inner` (the same shape's fields), or its t| --- | --- | --- || `shape` | `"rect" \| "circle" \| "ellipse" \| "triangle" \| "polygon"` | a rect by default; a polygon has `sides` (5 by default) || `size` | `[number, number]` | [width, height] in px ([100, 100] by default); a circle's and a polygon's diameter is the width |-| `sides` | `number` | – |+| `sides` | `number` | a polygon's number of sides (5) || `color` | `string` | a CSS colour (white by default); with a texture, it tints it || `srgb` | `[number, number, number]` | the colour as a Bevy Srgba's [r, g, b], unrounded, over `color` (a Mesh2d's ColorMaterial gives it) || `texture` | `string \| { path: string; sampler: SamplerSpec }` | a picture on it, mapped by the mesh's UVs (Bevy's ColorMaterial texture), or one with its own sampler (Bevy's load_with_settings: { path, sampler: { wrap: "repeat" } }) |@@ -401,30 +399,30 @@ a 2D shape as Bevy's Ring: of it and `inner` (the same shape's fields), or its t| `vertex_colors` | `[number, number, number, number][]` | one linear [r, g, b, a] per vertex of the shape's mesh (Bevy's Mesh::ATTRIBUTE_COLOR): the material's colour and texture are multiplied by them. A rect has 4 (top right, top left, bottom left, bottom right), a triangle 3. || `shader` | `Record<string, unknown>` | its own Material2d in place of the ColorMaterial: the spec a <Material> in a Mesh2d makes; the shape's colour, texture and alpha_mode are then the material's to draw || `primitive` | `Record<string, unknown>` | one of Bevy's 2D primitives in place of `shape`, its reflected fields over Bevy's default: { primitive: "Capsule2d", radius: 25, half_length: 25 }; a 2D shape given `inner` (the same shape's fields) is Bevy's Ring, or given `ring: thickness` its to_ring (raea-sys-mesh primitive_mesh). A Mesh2d's primitive child makes it. |-| `name` | `string` | – |-| `x` | `number` | – |-| `y` | `number` | – |+| `name` | `string` | the entity's name, for picking, the inspector and world.* |+| `x` | `number` | px from the frame's left edge to the part's centre |+| `y` | `number` | px from the frame's top edge to the part's centre, down positive || `rotation` | `number` | radians, clockwise (as CSS rotate) || `quat` | `Quat` | Bevy's rotation as it is, a quaternion [x, y, z, w] in Bevy's axes (y up, z toward the viewer), in place of `rotation`: a turn out of the frame's plane too, as a Sprite's Transform takes it (camera/2d_on_ui) || `scale` | `number \| [number, number]` | 1 by default; [x, y] to stretch || `z` | `number` | draw order among the 2D parts: higher draws over lower (0 by default) || `opacity` | `number` | 0 to 1 (1 by default) |-| `onClick` | `(e: Event3d) => void` | – |-| `onPointerDown` | `(e: Event3d) => void` | – |-| `onPointerUp` | `(e: Event3d) => void` | – |-| `onPointerOver` | `(e: Event3d) => void` | – |-| `onPointerOut` | `(e: Event3d) => void` | – |-| `onPointerEnter` | `(e: Event3d) => void` | – |-| `onPointerLeave` | `(e: Event3d) => void` | – |-| `onPointerMove` | `(e: Event3d) => void` | – |-| `onWheel` | `(e: Event3d) => void` | – |-| `onDragStart` | `(e: Event3d) => void` | – |-| `onDrag` | `(e: Event3d) => void` | – |-| `onDragEnd` | `(e: Event3d) => void` | – |-| `onDragEnter` | `(e: Event3d) => void` | – |-| `onDragOver` | `(e: Event3d) => void` | – |-| `onDragLeave` | `(e: Event3d) => void` | – |-| `onDrop` | `(e: Event3d) => void` | – |+| `onClick` | `(e: Event3d) => void` | a press and release over the part |+| `onPointerDown` | `(e: Event3d) => void` | a button pressed over the part |+| `onPointerUp` | `(e: Event3d) => void` | a button released over the part |+| `onPointerOver` | `(e: Event3d) => void` | the pointer came over the part (bubbles, as the DOM's) |+| `onPointerOut` | `(e: Event3d) => void` | the pointer left the part (bubbles) |+| `onPointerEnter` | `(e: Event3d) => void` | the pointer came over the part (doesn't bubble) |+| `onPointerLeave` | `(e: Event3d) => void` | the pointer left the part (doesn't bubble) |+| `onPointerMove` | `(e: Event3d) => void` | the pointer moved over the part |+| `onWheel` | `(e: Event3d) => void` | the wheel turned over the part (`deltaX`, `deltaY`) |+| `onDragStart` | `(e: Event3d) => void` | a drag began on the part pressed |+| `onDrag` | `(e: Event3d) => void` | the part pressed is being dragged, each frame it moves |+| `onDragEnd` | `(e: Event3d) => void` | the drag of the part pressed ended |+| `onDragEnter` | `(e: Event3d) => void` | a dragged part came over this one (`dragged` names it) |+| `onDragOver` | `(e: Event3d) => void` | a dragged part is over this one |+| `onDragLeave` | `(e: Event3d) => void` | a dragged part left this one |+| `onDrop` | `(e: Event3d) => void` | a dragged part was dropped on this one |### `SpriteImageMode`@@ -442,51 +440,51 @@ type SpriteImageMode = | "Auto" | { Scale: "FillCenter" | "FillStart" | "FillEnd| --- | --- | --- || `src` (required) | `string` | a picture in the media folder: staticFile("hero.png"), or a "render:NAME" image a camera or a <Compute> draws (a frame may switch it to another by name) || `width` | `number` | size in px (the picture's, or one cell's, by default); one given, the other follows the picture's shape |-| `height` | `number` | – |+| `height` | `number` | in px; given alone, the width follows the picture's shape || `grid` | `[number, number]` | a sprite sheet: the picture is `[columns, rows]` cells of equal size, read left to right, top to bottom || `atlasPick` | `number` | one picture of a built atlas (TextureAtlasBuilder's sources.handle gives it with its src): its index in the atlas's list || `frame` | `number` | with `grid`: which cell shows (0 is the top left); animate it to play the sheet: frame={Math.floor(f / 3)} |-| `flipX` | `boolean` | – |-| `flipY` | `boolean` | – |+| `flipX` | `boolean` | mirrored left to right |+| `flipY` | `boolean` | mirrored top to bottom || `color` | `string` | a tint multiplied over the picture (white by default) || `tileX` | `boolean` | Bevy's SpriteImageMode::Tiled: the picture repeats across the sprite's width (tileX) or height (tileY) instead of stretching to it, a tile every `tileStretch` x the picture's size (1 by default): a floor, a fence, a wall. Animate width and height to show more or fewer tiles |-| `tileY` | `boolean` | – |-| `tileStretch` | `number` | – |+| `tileY` | `boolean` | tile the picture down its height instead of stretching it |+| `tileStretch` | `number` | a tile every this many times the picture's size (1) || `image_mode` | `SpriteImageMode` | Bevy's SpriteImageMode, as its reflected value: "Auto" (stretched to the size), { Scale: "FillCenter" } (and FillStart, FillEnd, FitCenter, FitStart, FitEnd: the picture kept to its shape, cropped or fitted), { Sliced: TextureSlicer } (nine-slice: border a number of px or { min_inset: [x, y], max_inset: [x, y] }; center_scale_mode and sides_scale_mode "Stretch" or { Tile: { stretch_value } }; max_corner_scale) or { Tiled: { tile_x, tile_y, stretch_value } }. Not with tileX or tileY || `sampler` | `SamplerSpec` | the picture's sampler (Bevy's load_with_settings: { filter, mipmap, wrap, anisotropy }), Bevy's default (linear) otherwise; { filter: "nearest" } is pixel art as Bevy's ImagePlugin::default_nearest() draws it || `children` | `ReactNode` | your own <Material> as its child: Bevy's SpriteMaterial, extending the sprite's own material (the shader reads the sprite's picture, tint and alpha with bevy_sprite_render::sprite_mesh::functions), its uniforms per frame |-| `name` | `string` | – |-| `x` | `number` | – |-| `y` | `number` | – |+| `name` | `string` | the entity's name, for picking, the inspector and world.* |+| `x` | `number` | px from the frame's left edge to the part's centre |+| `y` | `number` | px from the frame's top edge to the part's centre, down positive || `rotation` | `number` | radians, clockwise (as CSS rotate) || `quat` | `Quat` | Bevy's rotation as it is, a quaternion [x, y, z, w] in Bevy's axes (y up, z toward the viewer), in place of `rotation`: a turn out of the frame's plane too, as a Sprite's Transform takes it (camera/2d_on_ui) || `scale` | `number \| [number, number]` | 1 by default; [x, y] to stretch || `z` | `number` | draw order among the 2D parts: higher draws over lower (0 by default) || `opacity` | `number` | 0 to 1 (1 by default) |-| `onClick` | `(e: Event3d) => void` | – |-| `onPointerDown` | `(e: Event3d) => void` | – |-| `onPointerUp` | `(e: Event3d) => void` | – |-| `onPointerOver` | `(e: Event3d) => void` | – |-| `onPointerOut` | `(e: Event3d) => void` | – |-| `onPointerEnter` | `(e: Event3d) => void` | – |-| `onPointerLeave` | `(e: Event3d) => void` | – |-| `onPointerMove` | `(e: Event3d) => void` | – |-| `onWheel` | `(e: Event3d) => void` | – |-| `onDragStart` | `(e: Event3d) => void` | – |-| `onDrag` | `(e: Event3d) => void` | – |-| `onDragEnd` | `(e: Event3d) => void` | – |-| `onDragEnter` | `(e: Event3d) => void` | – |-| `onDragOver` | `(e: Event3d) => void` | – |-| `onDragLeave` | `(e: Event3d) => void` | – |-| `onDrop` | `(e: Event3d) => void` | – |+| `onClick` | `(e: Event3d) => void` | a press and release over the part |+| `onPointerDown` | `(e: Event3d) => void` | a button pressed over the part |+| `onPointerUp` | `(e: Event3d) => void` | a button released over the part |+| `onPointerOver` | `(e: Event3d) => void` | the pointer came over the part (bubbles, as the DOM's) |+| `onPointerOut` | `(e: Event3d) => void` | the pointer left the part (bubbles) |+| `onPointerEnter` | `(e: Event3d) => void` | the pointer came over the part (doesn't bubble) |+| `onPointerLeave` | `(e: Event3d) => void` | the pointer left the part (doesn't bubble) |+| `onPointerMove` | `(e: Event3d) => void` | the pointer moved over the part |+| `onWheel` | `(e: Event3d) => void` | the wheel turned over the part (`deltaX`, `deltaY`) |+| `onDragStart` | `(e: Event3d) => void` | a drag began on the part pressed |+| `onDrag` | `(e: Event3d) => void` | the part pressed is being dragged, each frame it moves |+| `onDragEnd` | `(e: Event3d) => void` | the drag of the part pressed ended |+| `onDragEnter` | `(e: Event3d) => void` | a dragged part came over this one (`dragged` names it) |+| `onDragOver` | `(e: Event3d) => void` | a dragged part is over this one |+| `onDragLeave` | `(e: Event3d) => void` | a dragged part left this one |+| `onDrop` | `(e: Event3d) => void` | a dragged part was dropped on this one |### `VerticesProps`| Field | Type | What it is || --- | --- | --- |-| `vertices` | `Vec2[]` | – |-| `vertex_colors` | `(LinearRgba \| [number, number, number, number])[]` | – |-| `ring` | `number` | – |-| `inner` | `Record<string, unknown>` | – |+| `vertices` | `Vec2[]` | the outline's points, in order |+| `vertex_colors` | `(LinearRgba \| [number, number, number, number])[]` | one linear colour a vertex, in the mesh's vertex order (ATTRIBUTE_COLOR) |+| `ring` | `number` | a thickness: the shape made a ring that thick (to_ring) |+| `inner` | `Record<string, unknown>` | the ring's inner shape, as the same shape's fields |<!-- generated:end -->diff --git a/docs/manual/reference/sdk/state.md b/docs/manual/reference/sdk/state.mdindex 7c30d02b..43cbd6d5 100644--- a/docs/manual/reference/sdk/state.md+++ b/docs/manual/reference/sdk/state.md@@ -141,11 +141,11 @@ type Actions = Action<C, E> | readonly Action<C, E>[]| Field | Type | What it is || --- | --- | --- |-| `id` (required) | `string` | – |-| `states` (required) | `{ name: N; parent: N \| null; depth: number; kind: "leaf" \| "compound" \| "final"; initia…` | – |-| `edges` (required) | `Edge<N>[]` | – |+| `id` (required) | `string` | the machine's id |+| `states` (required) | `{ name: N; parent: N \| null; depth: number; kind: "leaf" \| "compound" \| "final"; initia…` | every state with its parent, depth, kind and whether it's an initial state |+| `edges` (required) | `Edge<N>[]` | every transition || `reachable` (required) | `N[]` | states some sequence of transitions reaches from the initial state (guards assumed satisfiable) |-| `unreachable` (required) | `N[]` | – |+| `unreachable` (required) | `N[]` | states no sequence of transitions reaches || `deadEnds` (required) | `N[]` | non-final leaves with no transition out (their own or an enclosing state's): once entered, never left |### `AnyMachine`@@ -160,13 +160,13 @@ A choice point as a decider sees it: which machine, where, and the candidates wh| Field | Type | What it is || --- | --- | --- |-| `machine` (required) | `string` | – |+| `machine` (required) | `string` | the machine's id || `state` (required) | `string` | the state whose `choose` list this is, and the active leaf |-| `leaf` (required) | `string` | – |+| `leaf` (required) | `string` | the active leaf state || `n` (required) | `number` | the machine's step || `candidates` (required) | `{ edge: number; to: string; description?: string }[]` | the candidates whose guards hold, in their order (each an edge of machine.edges) |-| `ctx` (required) | `C` | – |-| `env` (required) | `E` | – |+| `ctx` (required) | `C` | the context the machine drives |+| `env` (required) | `E` | whatever the step was given as env |### `Decider`@@ -175,8 +175,8 @@ is asked outside the step and their answer replayed (`replayDecider`). Determini| Field | Type | What it is || --- | --- | --- |-| `name` (required) | `string` | – |-| `decide` (required) | `(point: ChoicePoint<unknown, unknown>) => Decision` | – |+| `name` (required) | `string` | its name in the trace's `by` column |+| `decide` (required) | `(point: ChoicePoint<unknown, unknown>) => Decision` | picks a candidate at a choice point, synchronously |### `Decision`@@ -185,21 +185,21 @@ whatever supports the choice (a bot's score, a model's probabilities), recorded| Field | Type | What it is || --- | --- | --- |-| `edge` (required) | `number \| null` | – |-| `evidence` | `unknown` | – |+| `edge` (required) | `number \| null` | the edge picked, one of the candidates' `edge`; null waits this step |+| `evidence` | `unknown` | what supports the choice (a bot's score, a model's probabilities), recorded with the transition |### `Edge`| Field | Type | What it is || --- | --- | --- |-| `index` (required) | `number` | – |-| `from` (required) | `N` | – |-| `to` (required) | `N` | – |-| `kind` (required) | `"always" \| "after" \| "on" \| "done" \| "choose"` | – |+| `index` (required) | `number` | its place in `machine.edges` |+| `from` (required) | `N` | the state it leaves |+| `to` (required) | `N` | the state it enters |+| `kind` (required) | `"always" \| "after" \| "on" \| "done" \| "choose"` | what fires it: a guard polled each step (always), a delay (after), an event (on), the substate finishing (done) or a decider (choose) || `event` | `string` | the event an `on` edge waits for || `after` (required) | `number` | steps in `from` before it may fire |-| `guarded` (required) | `boolean` | – |-| `description` | `string` | – |+| `guarded` (required) | `boolean` | whether it has a guard (`when`) |+| `description` | `string` | what the transition means, from its config |### `Guard`@@ -213,8 +213,8 @@ type Guard = (ctx: C, env: E) => boolean| Field | Type | What it is || --- | --- | --- |-| `id` (required) | `string` | – |-| `key` (required) | `K` | – |+| `id` (required) | `string` | the machine's name in traces and reports |+| `key` (required) | `K` | the context's field holding its snapshot ("sm") || `states` (required) | `readonly N[]` | every state, in definition order (outer before inner) || `edges` (required) | `readonly Edge<N>[]` | every transition, in the order they're checked within a state || `start` (required) | `() => Snapshot<N>` | a snapshot before the first step: the first step enters the initial states (running their entry actions) |@@ -232,8 +232,8 @@ type Guard = (ctx: C, env: E) => boolean| Field | Type | What it is || --- | --- | --- || `id` (required) | `string` | the machine's name in traces and reports |-| `initial` (required) | `NoInfer<N>` | – |-| `states` (required) | `{ [S in N]?: StateConfig<C, E, N> }` | – |+| `initial` (required) | `NoInfer<N>` | the state it starts in |+| `states` (required) | `{ [S in N]?: StateConfig<C, E, N> }` | its states by name, each a StateConfig (substates nest inside) || `key` | `K` | the context's field holding the snapshot ("sm") || `strict` | `boolean` | refuse unreachable states and non-final dead ends when the machine is built (true) |@@ -264,12 +264,12 @@ guard); `hist` is each history state's last substate.| Field | Type | What it is || --- | --- | --- |-| `path` (required) | `N[]` | – |-| `at` (required) | `number[]` | – |-| `n` (required) | `number` | – |-| `e` (required) | `number` | – |-| `by` | `string` | – |-| `hist` | `{ [S in N]?: N }` | – |+| `path` (required) | `N[]` | the active states, outermost first ([] before the first step) |+| `at` (required) | `number[]` | the step each state in `path` was entered on |+| `n` (required) | `number` | the machine's steps so far, from 0 |+| `e` (required) | `number` | the edge the last transition took, an index into `machine.edges` |+| `by` | `string` | the decider that chose the last transition (absent: a guard did) |+| `hist` | `{ [S in N]?: N }` | each history state's last substate |### `StateConfig`@@ -287,7 +287,7 @@ guard); `hist` is each history state's last substate.| `history` | `"shallow" \| "deep"` | re-entering this compound state resumes the substate it left ("shallow"), or that substate's own (deep) || `onDone` | `Transitions<C, E, N>` | a compound state's transition taken when its active substate is final || `type` | `"final"` | a final state: no transitions out (a dead enemy, the game won, the work shipped) |-| `description` | `string` | – |+| `description` | `string` | what the state means, for reports and a decider |### `StateName`@@ -323,14 +323,14 @@ null for the first step's entry into the initial states.| Field | Type | What it is || --- | --- | --- |-| `machine` (required) | `string` | – |-| `step` (required) | `number` | – |-| `from` (required) | `string \| null` | – |-| `to` (required) | `string` | – |-| `edge` (required) | `number` | – |-| `kind` (required) | `Edge["kind"] \| "start"` | – |+| `machine` (required) | `string` | the machine's id |+| `step` (required) | `number` | the machine's step it happened on |+| `from` (required) | `string \| null` | the leaf it left (null for the first entry) |+| `to` (required) | `string` | the leaf it entered |+| `edge` (required) | `number` | the edge it took, an index into `machine.edges` |+| `kind` (required) | `Edge["kind"] \| "start"` | what kind of edge: always, after, on, choose, done (an onDone), or start for the first entry || `by` (required) | `string` | "guard" for a trigger, "start" for the first entry, else the decider's name |-| `evidence` | `unknown` | – |+| `evidence` | `unknown` | the decider's evidence for the choice |### `Transitions`@@ -346,7 +346,7 @@ A machine's state in some context, for a trace (`Playtest.machines`).| Field | Type | What it is || --- | --- | --- |-| `machine` (required) | `AnyMachine` | – |-| `snapshot` (required) | `Snapshot` | – |+| `machine` (required) | `AnyMachine` | the machine |+| `snapshot` (required) | `Snapshot` | its runtime state in that context |<!-- generated:end -->diff --git a/docs/manual/reference/sdk/text.md b/docs/manual/reference/sdk/text.mdindex bdc7331b..4312cd4c 100644--- a/docs/manual/reference/sdk/text.md+++ b/docs/manual/reference/sdk/text.md@@ -105,11 +105,11 @@ What a glyph is, for a <RichText>'s `glyph` function.| --- | --- | --- || `index` (required) | `number` | its place among the drawn glyphs (spaces aren't glyphs), from 0 || `count` (required) | `number` | how many glyphs the block has |-| `char` (required) | `string` | – |+| `char` (required) | `string` | the character it draws || `word` (required) | `number` | its word's place among the words, from 0, and how many there are |-| `words` (required) | `number` | – |+| `words` (required) | `number` | how many words the block has || `inWord` (required) | `number` | its place in its word, and the word's glyph count |-| `wordLength` (required) | `number` | – |+| `wordLength` (required) | `number` | how many glyphs its word has || `line` (required) | `number` | its line (by the newlines in the text), from 0 || `span` (required) | `number` | its run: the <Span> it's in (0 for text outside any, counted in order) |@@ -122,10 +122,10 @@ multiplied into (scale, opacity) or replacing (color, visible) what the block's| --- | --- | --- || `position` | `Vec3` | metres, from its place in the block || `rotation` | `Vec3` | radians, XYZ |-| `scale` | `number \| Vec3` | – |-| `color` | `string` | – |-| `opacity` | `number` | – |-| `visible` | `boolean` | – |+| `scale` | `number \| Vec3` | multiplies its size: one number, or x, y and z |+| `color` | `string` | replaces its colour |+| `opacity` | `number` | multiplies its opacity, 0..1 |+| `visible` | `boolean` | false hides it this frame |### `RichTextProps`@@ -133,57 +133,57 @@ multiplied into (scale, opacity) or replacing (color, visible) what the block's| --- | --- | --- || `name` | `string` | what it's called across frames, and its glyphs' names over world.* (`${name}:${index}`) || `pass` | `string` | the composition pass it draws in ("scene" by default): a frame-wide effect told to skip a pass (<Look skip>, <Outline skip>, <Bloom skip>, <Grade skip>) leaves its pixels as drawn, and <Look passes> gives one its own paint; a piece names at most three passes besides "scene"; keyed per frame |-| `position` | `Vec3` | – |-| `rotation` | `Vec3` | – |-| `scale` | `number \| Vec3` | – |+| `position` | `Vec3` | where the block's origin is, metres (x, y, z) |+| `rotation` | `Vec3` | the block's rotation, radians (x, y, z) |+| `scale` | `number \| Vec3` | the block's scale: one number, or x, y and z || `size` | `number` | the em in metres (0.5 by default) |-| `font` | `string` | – |-| `weight` | `number` | – |-| `italic` | `boolean` | – |+| `font` | `string` | a family (raea's bundled faces: Inter by default, Montserrat, Oswald, Playfair Display...; or one on this machine) |+| `weight` | `number` | 100..900 (700 by default) |+| `italic` | `boolean` | slanted (false by default) || `color` | `string` | each glyph's colour unless its <Span> gives one || `align` | `"left" \| "center" \| "right"` | where the origin is: the left edge, the middle (default) or the right edge of the lines; the block's middle vertically || `lineHeight` | `number` | times the em (1.2 by default) || `maxWidth` | `number` | wrapped at this width in metres (no wrapping by default) |-| `roughness` | `number` | – |-| `metalness` | `number` | – |-| `emissive` | `string` | – |-| `emissiveIntensity` | `number` | – |-| `unlit` | `boolean` | – |+| `roughness` | `number` | 0..1, smooth to matte |+| `metalness` | `number` | 0..1, a dielectric to a metal |+| `emissive` | `string` | the colour it glows with |+| `emissiveIntensity` | `number` | how strongly it glows (1 by default; 2-10 with bloom) |+| `unlit` | `boolean` | drawn in its flat colour, without light or shade || `castShadow` | `boolean` | letter-shaped shadows (true by default) |-| `receiveShadow` | `boolean` | – |-| `layers` | `number[]` | – |+| `receiveShadow` | `boolean` | other things' shadows fall on it |+| `layers` | `number[]` | the render layers it's on ([0] by default): a camera draws only the layers it's given || `enter` | `MoveLike` | each glyph's (or word's) entrance: a move's name, a move or several (rise, pop, slam, slide, fade... the 2D ones, their px read at 100 an em, their degrees as degrees), `each` frames apart from `at` || `each` | `number` | frames between one glyph's (or word's) entrance and the next (2 by default) || `by` | `"letter" \| "word"` | the entrance and exit staggered by letter (default) or by word |-| `at` | `number` | – |-| `exit` | `MoveLike` | – |-| `exitAt` | `number` | – |+| `at` | `number` | the local frame the first entrance starts (0) |+| `exit` | `MoveLike` | each glyph's (or word's) exit: a move or its name, played backwards from `exitAt` |+| `exitAt` | `number` | the local frame the first exit starts; an exit needs it || `exitEach` | `number` | frames between exits (0: together) || `reveal` | `number` | how many glyphs are shown, a typewriter's count: the next one fades in over its fraction || `glyph` | `(g: GlyphInfo) => GlyphStyle` | each glyph's own motion this frame, from anything the frame gives (useCurrentFrame, spring, interpolate) |-| `children` | `ReactNode` | – |+| `children` | `ReactNode` | the text: strings and <Span> runs |### `SpanProps`| Field | Type | What it is || --- | --- | --- |-| `children` | `ReactNode` | – |+| `children` | `ReactNode` | the run's text || `font` | `string` | a family (raea's bundled faces: Inter, Montserrat, Oswald, Playfair Display...; or one on this machine) |-| `weight` | `number` | – |-| `italic` | `boolean` | – |+| `weight` | `number` | 100..900 (the block's by default) |+| `italic` | `boolean` | slanted (the block's by default) || `size` | `number` | times the block's size |-| `color` | `string` | – |+| `color` | `string` | the run's colour (the block's by default) |### `Text3DProps`| Field | Type | What it is || --- | --- | --- || `children` | `string` | the words, extruded |-| `text` | `string` | – |+| `text` | `string` | the words, when they aren't its child (no quotes or backslashes) || `size` | `number` | letter height in scene units (default 0.5) || `depth` | `number` | extrusion depth (default 0.2) |-| `font` | `string` | – |-| `weight` | `number` | – |+| `font` | `string` | a family (Inter by default, or another of raea's bundled faces) |+| `weight` | `number` | 100..900 (800 by default) |### `WordOptions`diff --git a/docs/manual/reference/sdk/time.md b/docs/manual/reference/sdk/time.mdindex 2b525cfc..4a8d79f5 100644--- a/docs/manual/reference/sdk/time.md+++ b/docs/manual/reference/sdk/time.md@@ -38,17 +38,17 @@ own.| Prop | Type | What it does || --- | --- | --- |-| `frame` (required) | `number` | – |-| `fps` (required) | `number` | – |-| `width` (required) | `number` | – |-| `height` (required) | `number` | – |-| `durationInFrames` (required) | `number` | – |-| `id` | `string` | – |-| `defaultProps` | `Record<string, unknown>` | – |-| `words` | `readonly TimelineWord[]` | – |-| `perception` | `Perception` | – |-| `input` | `InputTimeline` | – |-| `children` | `ReactNode` | – |+| `frame` (required) | `number` | the composition frame to draw |+| `fps` (required) | `number` | frames a second |+| `width` (required) | `number` | in px |+| `height` (required) | `number` | in px |+| `durationInFrames` (required) | `number` | the composition's length in frames |+| `id` | `string` | the composition's id ("main" by default) |+| `defaultProps` | `Record<string, unknown>` | the props the composition is rendered with |+| `words` | `readonly TimelineWord[]` | the transcript, in composition frames, that captions and word cuts read |+| `perception` | `Perception` | what perception saw at this frame (faces, the safe area) |+| `input` | `InputTimeline` | a game's recorded input by frame |+| `children` | `ReactNode` | the composition |## Hooks@@ -111,10 +111,10 @@ The local time a subtree sees: its own frame, and the composition frame its fram| Field | Type | What it is || --- | --- | --- |-| `frame` (required) | `number` | – |-| `origin` (required) | `number` | – |+| `frame` (required) | `number` | the subtree's own frame: the composition's frame minus `origin` |+| `origin` (required) | `number` | the composition frame the subtree's frame 0 falls on || `width` (required) | `number` | width and height a Sequence overrides for its children |-| `height` (required) | `number` | – |+| `height` (required) | `number` | in px, what the Sequence gives its children |### `Perception`@@ -122,14 +122,14 @@ What perception saw at this frame: the largest face, and the platform's safe are| Field | Type | What it is || --- | --- | --- |-| `face` | `Rect` | – |-| `safe` | `{ top?: number; bottom?: number }` | – |+| `face` | `Rect` | the largest face's box, when there's one |+| `safe` | `{ top?: number; bottom?: number }` | px the platform's UI covers at the top and bottom |### `TimelineWord`| Field | Type | What it is || --- | --- | --- |-| `text` (required) | `string` | – |+| `text` (required) | `string` | the word as spoken || `from` (required) | `number` | first frame of the word || `to` (required) | `number` | frame after the word ends (exclusive) |@@ -137,11 +137,11 @@ What perception saw at this frame: the largest face, and the platform's safe are| Field | Type | What it is || --- | --- | --- |-| `id` (required) | `string` | – |-| `width` (required) | `number` | – |-| `height` (required) | `number` | – |-| `fps` (required) | `number` | – |-| `durationInFrames` (required) | `number` | – |-| `defaultProps` (required) | `Record<string, unknown>` | – |+| `id` (required) | `string` | the composition's id ("main" by default) |+| `width` (required) | `number` | in px |+| `height` (required) | `number` | in px |+| `fps` (required) | `number` | frames a second |+| `durationInFrames` (required) | `number` | its length in frames |+| `defaultProps` (required) | `Record<string, unknown>` | the props the composition is rendered with |<!-- generated:end -->diff --git a/docs/manual/reference/sdk/transform.md b/docs/manual/reference/sdk/transform.mdindex 87dca296..44e78ab7 100644--- a/docs/manual/reference/sdk/transform.md+++ b/docs/manual/reference/sdk/transform.md@@ -54,14 +54,14 @@ function surfaceTurn(normal: Vec3, spin?: number): [number, number, number, numbA rotation as glam's Quat: [x, y, z, w].glam's Quat constructors, by their Rust names in camelCase.-Used in: [ui/render_ui_to_texture](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/render_ui_to_texture.tsx), [3d/3d_shapes](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/3d_shapes.tsx), [3d/texture](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/texture.tsx), [3d/shadow_caster_receiver](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/shadow_caster_receiver.tsx), [3d/split_screen](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/split_screen.tsx), [3d/spotlight](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/spotlight.tsx), [3d/mesh_ray_cast](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/mesh_ray_cast.tsx), [3d/3d_scene](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/3d_scene.tsx), and 24 more.+Used in: [ui/render_ui_to_texture](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/render_ui_to_texture.tsx), [3d/3d_shapes](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/3d_shapes.tsx), [3d/texture](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/texture.tsx), [3d/shadow_caster_receiver](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/shadow_caster_receiver.tsx), [3d/split_screen](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/split_screen.tsx), [3d/spotlight](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/spotlight.tsx), [3d/mesh_ray_cast](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/mesh_ray_cast.tsx), [3d/3d_scene](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/3d_scene.tsx), and 23 more.### `Transform`Bevy's Transform: the component's handle for a program (`with(Transform, Transform.fromXyz(1, 0, 0))`) and itsbuilders for a scene (`<Mesh3d transform={Transform.fromXyz(0, 1, 0)}>`).-Used in: [ui/render_ui_to_texture](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/render_ui_to_texture.tsx), [ui/widgets/viewport_node](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/widgets/viewport_node.tsx), [3d/fog_volumes](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/fog_volumes.tsx), [3d/fog](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/fog.tsx), [3d/vertex_colors](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/vertex_colors.tsx), [3d/rotate_environment_map](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/rotate_environment_map.tsx), [3d/transparency_3d](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/transparency_3d.tsx), [3d/spherical_area_lights](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/spherical_area_lights.tsx), and 72 more.+Used in: [ui/render_ui_to_texture](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/render_ui_to_texture.tsx), [ui/widgets/viewport_node](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/widgets/viewport_node.tsx), [3d/fog_volumes](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/fog_volumes.tsx), [3d/fog](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/fog.tsx), [3d/vertex_colors](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/vertex_colors.tsx), [3d/rotate_environment_map](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/rotate_environment_map.tsx), [3d/transparency_3d](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/transparency_3d.tsx), [3d/spherical_area_lights](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/spherical_area_lights.tsx), and 71 more.## Types@@ -79,13 +79,13 @@ A Transform built with Bevy's builders: each returns a new one.| Field | Type | What it is || --- | --- | --- |-| `withTranslation` (required) | `(v: Vec3) => TransformBuilt` | – |-| `withRotation` (required) | `(q: Quat) => TransformBuilt` | – |-| `withScale` (required) | `(s: number \| Vec3) => TransformBuilt` | – |-| `lookingAt` (required) | `(target: Vec3, up?: Vec3 \| undefined) => TransformBuilt` | – |-| `translation` (required) | `Vec3` | – |-| `rotation` (required) | `Quat` | – |-| `scale` (required) | `Vec3` | – |+| `withTranslation` (required) | `(v: Vec3) => TransformBuilt` | the same transform, moved to `v` |+| `withRotation` (required) | `(q: Quat) => TransformBuilt` | the same transform, turned to `q` |+| `withScale` (required) | `(s: number \| Vec3) => TransformBuilt` | the same transform, scaled to `s` (one number for all three axes) |+| `lookingAt` (required) | `(target: Vec3, up?: Vec3 \| undefined) => TransformBuilt` | the same transform, turned so its -Z faces `target` with `up` (+Y) up, as Bevy's looking_at |+| `translation` (required) | `Vec3` | where it is, metres (x, y, z) |+| `rotation` (required) | `Quat` | its rotation as a quaternion [x, y, z, w] |+| `scale` (required) | `Vec3` | its scale along x, y and z |### `TransformValue`@@ -93,9 +93,9 @@ A Transform's value, as Bevy reflects it.| Field | Type | What it is || --- | --- | --- |-| `translation` | `Vec3` | – |-| `rotation` | `Quat` | – |-| `scale` | `Vec3` | – |+| `translation` | `Vec3` | where it is, metres (x, y, z) |+| `rotation` | `Quat` | its rotation as a quaternion [x, y, z, w] |+| `scale` | `Vec3` | its scale along x, y and z |### `Vec3`diff --git a/docs/manual/reference/sdk/ui.md b/docs/manual/reference/sdk/ui.mdindex a5d552f0..18439f63 100644--- a/docs/manual/reference/sdk/ui.md+++ b/docs/manual/reference/sdk/ui.md@@ -39,9 +39,9 @@ A box over the whole of its parent, laid out as a flex column; `style` is merged| Prop | Type | What it does || --- | --- | --- |-| `style` | `CSSProperties` | – |-| `className` | `string` | – |-| `children` | `ReactNode` | – |+| `style` | `CSSProperties` | merged over the fill's own style (absolute, inset 0, a flex column) |+| `className` | `string` | Tailwind or CSS classes |+| `children` | `ReactNode` | what fills it |### `BoxShadowSamples`@@ -52,8 +52,8 @@ Bevy: `bevy_ui_render::BoxShadowSamples`.| Prop | Type | What it does || --- | --- | --- |-| `samples` (required) | `number` | – |-| `children` | `ReactNode` | – |+| `samples` (required) | `number` | steps each shadow's blur is summed in (4) |+| `children` | `ReactNode` | the UI it applies to |Used in: [ui/styling/box_shadow](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/styling/box_shadow.tsx).@@ -77,7 +77,7 @@ Bevy: `bevy_text::EditableText`.| `cursor_style` | `TextCursorStyle` | TextCursorStyle || `auto_focus` | `boolean` | AutoFocus: it has the input focus, so its caret is drawn || `justify` | `TextProps["justify"]` | TextLayout's justify and linebreak |-| `linebreak` | `TextProps["linebreak"]` | – |+| `linebreak` | `TextProps["linebreak"]` | where lines break: WordBoundary, AnyCharacter, WordOrCharacter or NoWrap |Also takes the props of [`NodeProps`](#nodeprops); `PickProps` (`popover`, `onClick`, `onPointerDown`, `onPointerUp`, `onPointerOver`, `onPointerOut`, `onPointerEnter`, `onPointerLeave`, `onPointerMove`); [`TextStyleProps`](#textstyleprops).@@ -92,7 +92,7 @@ Bevy: `bevy_ui::experimental::GhostNode`.| Prop | Type | What it does || --- | --- | --- |-| `children` | `ReactNode` | – |+| `children` | `ReactNode` | what's laid out as the parent's children |Used in: [ui/layout/ghost_nodes](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/layout/ghost_nodes.tsx).@@ -105,7 +105,7 @@ Bevy: `bevy_ui_render::GlobalUiDebugOptions`.| Prop | Type | What it does || --- | --- | --- |-| `children` | `ReactNode` | – |+| `children` | `ReactNode` | the UI the overlay draws over |Also takes the props of [`UiDebugOptions`](#uidebugoptions).@@ -141,8 +141,8 @@ Bevy: `bevy_image::ImagePlugin`.| Prop | Type | What it does || --- | --- | --- |-| `default_sampler` | `"Linear" \| "Nearest"` | Bevy: The default image sampler to use when `ImageSampler` is set to `Default`. |-| `children` | `ReactNode` | – |+| `default_sampler` | `"Linear" \| "Nearest"` | "Linear" (the default) or "Nearest" (pixel art) |+| `children` | `ReactNode` | the UI and sprites whose pictures it samples |Used in: [ui/images/ui_texture_atlas](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/ui_texture_atlas.tsx).@@ -175,7 +175,7 @@ Bevy: `bevy_ui_render::ui_material::MaterialNode`.| `uniforms` | `Record<string, Uniform \| Record<string, Uniform>>` | each `var<uniform>` the shader declares, by name: a number, [x, y], [x, y, z], [x, y, z, w] (a LinearRgba's to_f32_array()) or "#rrggbb"; a struct's as {field: value} || `textures` | `Record<string, string>` | each `texture_2d<f32>` it declares, by name: a picture file (staticFile), sampled with Bevy's default sampler || `defs` | `Record<string, boolean \| number>` | shader defs, as a Material's |-| `children` | `ReactNode` | – |+| `children` | `ReactNode` | the nodes inside it |Also takes the props of [`NodeProps`](#nodeprops); `PickProps` (`popover`, `onClick`, `onPointerDown`, `onPointerUp`, `onPointerOver`, `onPointerOut`, `onPointerEnter`, `onPointerLeave`, `onPointerMove`).@@ -198,11 +198,11 @@ A box at the band its name stands for, clear of the face perception found at thi| Prop | Type | What it does || --- | --- | --- |-| `name` | `RegionName` | – |-| `margin` | `number` | – |-| `style` | `CSSProperties` | – |-| `className` | `string` | – |-| `children` | `ReactNode` | – |+| `name` | `RegionName` | the band: "auto" (default) takes the larger of top and bottom; top and bottom stay clear of the face; center is the middle third; full is the safe area |+| `margin` | `number` | the gap kept from the face and the sides, as a share of the width (0.06) |+| `style` | `CSSProperties` | merged under the box's own placement |+| `className` | `string` | Tailwind or CSS classes |+| `children` | `ReactNode` | what goes in the band; `useRegion()` reads its box |### `Scrollbar`@@ -263,7 +263,7 @@ Bevy: `bevy_sprite::text2d::Text2d`.| `anchor` | `[number, number]` | Bevy's Anchor, as its Vec2: which point of the block sits at its Transform, [-0.5, -0.5] its bottom left to [0.5, 0.5] its top right ([0, 0], the centre, by default; Anchor::TOP_CENTER is [0, 0.5]) || `bounds` | `[number \| null, number \| null]` | TextBounds: the box its lines wrap in, [width, height] px (either null, unbounded), the anchor then the box's point; inside a Canvas3D || `shadow` | `Text2dShadow \| true` | Text2dShadow (true for its default); inside a Canvas3D |-| `children` | `ReactNode` | – |+| `children` | `ReactNode` | the text, and TextSpan runs |Also takes the props of [`TextStyleProps`](#textstyleprops); [`TextRunProps`](#textrunprops) (`underline`, `strikethrough`, `underline_color`, `strikethrough_color`, `text_background_color`).@@ -277,7 +277,7 @@ Bevy: `bevy_text::text::TextSpan`.| Prop | Type | What it does || --- | --- | --- |-| `children` | `ReactNode` | – |+| `children` | `ReactNode` | the run's text |Also takes the props of [`TextStyleProps`](#textstyleprops); [`TextRunProps`](#textrunprops) (`underline`, `strikethrough`, `underline_color`, `strikethrough_color`, `text_background_color`).@@ -293,8 +293,8 @@ Bevy: `bevy_ui::UiScale`.| Prop | Type | What it does || --- | --- | --- |-| `value` (required) | `number` | – |-| `children` | `ReactNode` | – |+| `value` (required) | `number` | how many times as big the UI is drawn (UiScale) |+| `children` | `ReactNode` | the UI it scales |Used in: [ui/images/ui_texture_slice_flip_and_tile](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/ui_texture_slice_flip_and_tile.tsx), [ui/scroll_and_overflow/scrollbars](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/scroll_and_overflow/scrollbars.tsx), [ui/scroll_and_overflow/drag_to_scroll](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/scroll_and_overflow/drag_to_scroll.tsx).@@ -310,8 +310,8 @@ Bevy: `bevy_ui::UiTargetCamera`.| Prop | Type | What it does || --- | --- | --- |-| `order` | `number` | – |-| `children` | `ReactNode` | – |+| `order` | `number` | the camera, by its order, these roots draw with (0) |+| `children` | `ReactNode` | the UI roots that camera draws |Used in: [ui/ui_target_camera](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/ui_target_camera.tsx), [3d/split_screen](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/split_screen.tsx).@@ -325,8 +325,8 @@ Bevy: `bevy_camera::RenderTarget::Image`.| Prop | Type | What it does || --- | --- | --- |-| `target` (required) | `string` | – |-| `children` | `ReactNode` | – |+| `target` (required) | `string` | the image's name, as a material or ImageNode uses it |+| `children` | `ReactNode` | the UI roots drawn into it |Used in: [ui/render_ui_to_texture](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/render_ui_to_texture.tsx).@@ -340,9 +340,9 @@ Bevy: `bevy_camera::Viewport`.| Prop | Type | What it does || --- | --- | --- |-| `physical_position` (required) | `[number, number]` | Bevy: The physical position to render this viewport to within the `RenderTarget` of this `Camera`. (0,0) corresponds to the top-left corner |-| `physical_size` (required) | `[number, number]` | Bevy: The physical size of the viewport rectangle to render to within the `RenderTarget` of this `Camera`. The origin of the rectangle is in the top-left corner. |-| `children` | `ReactNode` | – |+| `physical_position` (required) | `[number, number]` | the region's top-left corner, px from the window's |+| `physical_size` (required) | `[number, number]` | the region's width and height, px |+| `children` | `ReactNode` | the cameras and UI drawn into the region |Used in: [ui/relative_cursor_position](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/relative_cursor_position.tsx), [3d/split_screen](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/3d/split_screen.tsx).@@ -492,8 +492,6 @@ Used in: [ui/text/text_input](https://github.com/shinyobjectz/raea/blob/main/sdkBevy's BorderRadius: a Val (circular) or a CornerRadius (elliptical) for each corner (0 by default).-Bevy: `bevy_ui::BorderRadius`.-Used in: [ui/layout/ghost_nodes](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/layout/ghost_nodes.tsx), [ui/navigation/directional_navigation_overrides](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/navigation/directional_navigation_overrides.tsx), [ui/navigation/directional_navigation](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/navigation/directional_navigation.tsx), [ui/scroll_and_overflow/scrollbars](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/scroll_and_overflow/scrollbars.tsx), [ui/scroll_and_overflow/overflow_transform](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/scroll_and_overflow/overflow_transform.tsx), [ui/render_ui_to_texture](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/render_ui_to_texture.tsx), [ui/ui_material](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/ui_material.tsx), [ui/styling/gradients](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/styling/gradients.tsx), and 7 more.### `BoxShadow`@@ -525,8 +523,6 @@ Used in: [ui/styling/stacked_gradients](https://github.com/shinyobjectz/raea/bloBevy's CornerRadius: a corner's x and y radii, an elliptical corner (a Val alone is a circular one).-Bevy: `bevy_ui::CornerRadius`.-Used in: [ui/styling/borders](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/styling/borders.tsx).### `FEED_KEY`@@ -620,16 +616,12 @@ Used in: [ui/styling/stacked_gradients](https://github.com/shinyobjectz/raea/bloBevy's Overflow: each axis Visible, Clip, Hidden or Scroll.-Bevy: `bevy_ui::Overflow`.-Used in: [ui/scroll_and_overflow/overflow](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/scroll_and_overflow/overflow.tsx), [ui/scroll_and_overflow/scrollbars](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/scroll_and_overflow/scrollbars.tsx), [ui/scroll_and_overflow/drag_to_scroll](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/scroll_and_overflow/drag_to_scroll.tsx), [ui/scroll_and_overflow/scroll](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/scroll_and_overflow/scroll.tsx), [ui/scroll_and_overflow/overflow_clip_margin](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/scroll_and_overflow/overflow_clip_margin.tsx), [ui/text/multiple_text_inputs](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/text/multiple_text_inputs.tsx), [ui/text/text_wrap_debug](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/text/text_wrap_debug.tsx), [ui/widgets/headless_tabs](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/widgets/headless_tabs.tsx).### `OverflowClipMargin`Bevy's OverflowClipMargin: the box an overflow clip clips to, grown by a margin in px (the padding box by default).-Bevy: `bevy_ui::OverflowClipMargin`.-Used in: [ui/scroll_and_overflow/overflow_clip_margin](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/scroll_and_overflow/overflow_clip_margin.tsx), [ui/text/multiple_text_inputs](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/text/multiple_text_inputs.tsx).### `RadialGradient`@@ -691,8 +683,6 @@ Used in: [ui/styling/stacked_gradients](https://github.com/shinyobjectz/raea/bloBevy's UiRect: a Val for each side (0 by default).-Bevy: `bevy_ui::UiRect`.-Used in: [ui/images/image_node](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/image_node.tsx), [ui/images/image_node_resizing](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/image_node_resizing.tsx), [ui/images/ui_texture_atlas_slice](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/ui_texture_atlas_slice.tsx), [ui/images/ui_texture_slice](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/images/ui_texture_slice.tsx), [ui/layout/grid](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/layout/grid.tsx), [ui/layout/ghost_nodes](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/layout/ghost_nodes.tsx), [ui/layout/flex_layout](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/layout/flex_layout.tsx), [ui/layout/size_constraints](https://github.com/shinyobjectz/raea/blob/main/sdk/raea/bench/bevy-parity/ui/layout/size_constraints.tsx), and 43 more.### `UiTransform`@@ -740,8 +730,8 @@ Bevy: `bevy_text::FontAtlas`.| Field | Type | What it is || --- | --- | --- || `texture` (required) | `string` | Bevy: The texture where this font atlas is located |-| `width` (required) | `number` | – |-| `height` (required) | `number` | – |+| `width` (required) | `number` | the texture's width in px |+| `height` (required) | `number` | the texture's height in px |### `GenericFontFamily`@@ -791,8 +781,8 @@ Bevy: `bevy_ui::IgnoreScroll`.| Field | Type | What it is || --- | --- | --- |-| `x` (required) | `boolean` | – |-| `y` (required) | `boolean` | – |+| `x` (required) | `boolean` | it keeps its place while the parent scrolls across |+| `y` (required) | `boolean` | it keeps its place while the parent scrolls down |### `ImageNodeProps`@@ -846,9 +836,9 @@ panel's state.| Field | Type | What it is || --- | --- | --- |-| `about` (required) | `string` | – |-| `args` | `Record<string, string>` | – |-| `run` (required) | `(state: S, args: A) => S` | – |+| `about` (required) | `string` | what the action does, for the agent |+| `args` | `Record<string, string>` | its arguments by name, a few words each |+| `run` (required) | `(state: S, args: A) => S` | the panel's state after it |### `PanelActions`@@ -884,21 +874,21 @@ Bevy: `bevy_ui_widgets::popover::PopoverPlacement`.| Field | Type | What it is || --- | --- | --- |-| `width` (required) | `number` | – |-| `height` (required) | `number` | – |-| `face` | `Rect` | – |-| `parts` (required) | `ProofPart[]` | – |+| `width` (required) | `number` | the composition's width, px |+| `height` (required) | `number` | the composition's height, px |+| `face` | `Rect` | the face's box, when perception found one |+| `parts` (required) | `ProofPart[]` | the measured boxes of the parts to check |### `ProofPart`| Field | Type | What it is || --- | --- | --- |-| `name` (required) | `string` | – |+| `name` (required) | `string` | the part's name, in the faults || `band` | `[number, number]` | the band the part must fit in, [top, bottom] in px |-| `x` (required) | `number` | – |-| `y` (required) | `number` | – |-| `w` (required) | `number` | – |-| `h` (required) | `number` | – |+| `x` (required) | `number` | the left edge, px |+| `y` (required) | `number` | the top edge, px |+| `w` (required) | `number` | width, px |+| `h` (required) | `number` | height, px |### `RadialGradientShape`@@ -918,11 +908,11 @@ The band a Region occupies, in composition px.| Field | Type | What it is || --- | --- | --- |-| `name` (required) | `RegionName` | – |-| `x` (required) | `number` | – |-| `y` (required) | `number` | – |-| `w` (required) | `number` | – |-| `h` (required) | `number` | – |+| `name` (required) | `RegionName` | the band it took: top, bottom, center or full ("auto" resolves to top or bottom) |+| `x` (required) | `number` | the left edge, px |+| `y` (required) | `number` | the top edge, px |+| `w` (required) | `number` | width, px |+| `h` (required) | `number` | height, px |### `RegionName`@@ -991,9 +981,9 @@ What bevy_text draws with a section's own glyphs (a Text's string, not its spans| Field | Type | What it is || --- | --- | --- || `underline` | `boolean` | Underline and Strikethrough: a line under or through the run, as thick as the font says |-| `strikethrough` | `boolean` | – |+| `strikethrough` | `boolean` | a line through the run || `underline_color` | `Color` | UnderlineColor and StrikethroughColor: the lines' colours (the text's colour by default) |-| `strikethrough_color` | `Color` | – |+| `strikethrough_color` | `Color` | the strikethrough's colour (the text's by default) || `text_background_color` | `Color` | TextBackgroundColor: a box behind the run, line by line |### `TextStyleProps`@@ -1023,10 +1013,10 @@ default), and the corners' most scale (1 by default)| Field | Type | What it is || --- | --- | --- |-| `border` (required) | `{ left: number; right: number; top: number; bottom: number }` | – |-| `center_scale_mode` | `SliceScaleMode` | – |-| `sides_scale_mode` | `SliceScaleMode` | – |-| `max_corner_scale` | `number` | – |+| `border` (required) | `{ left: number; right: number; top: number; bottom: number }` | the slices' insets, in the picture's px |+| `center_scale_mode` | `SliceScaleMode` | how the centre scales (Stretch) |+| `sides_scale_mode` | `SliceScaleMode` | how the sides scale (Stretch) |+| `max_corner_scale` | `number` | how much the corners may scale at most (1) |### `UiDebugOptions`diff --git a/docs/manual/reference/sdk/video.md b/docs/manual/reference/sdk/video.mdindex 647fb177..e432707b 100644--- a/docs/manual/reference/sdk/video.md+++ b/docs/manual/reference/sdk/video.md@@ -44,8 +44,8 @@ Shows its children as they are at `frame`, whatever the parent's frame.| Prop | Type | What it does || --- | --- | --- |-| `frame` (required) | `number` | – |-| `children` | `ReactNode` | – |+| `frame` (required) | `number` | the frame its children see, whatever the parent's frame |+| `children` | `ReactNode` | what's held |### `Loop`@@ -53,13 +53,13 @@ Repeats its children every `durationInFrames` frames, `times` times (forever by| Prop | Type | What it does || --- | --- | --- |-| `durationInFrames` (required) | `number` | – |-| `times` | `number` | – |-| `name` | `string` | – |-| `layout` | `SequenceLayout` | – |-| `style` | `CSSProperties` | – |-| `className` | `string` | – |-| `children` | `ReactNode` | – |+| `durationInFrames` (required) | `number` | the length of one loop, in frames |+| `times` | `number` | how many times it plays (forever by default) |+| `name` | `string` | its label in the timeline and the render manifest |+| `layout` | `SequenceLayout` | "absolute-fill" (default) or "none", as a Sequence's |+| `style` | `CSSProperties` | the wrapping box's style |+| `className` | `string` | the wrapping box's classes |+| `children` | `ReactNode` | what loops |### `Sequence`@@ -67,15 +67,15 @@ Shifts time by `from` and shows its children only for `durationInFrames` frames.| Prop | Type | What it does || --- | --- | --- |-| `from` | `number` | – |-| `durationInFrames` | `number` | – |-| `name` | `string` | – |-| `layout` | `SequenceLayout` | – |-| `width` | `number` | – |-| `height` | `number` | – |-| `style` | `CSSProperties` | – |-| `className` | `string` | – |-| `children` | `ReactNode` | – |+| `from` | `number` | the parent frame its frame 0 falls on (0) |+| `durationInFrames` | `number` | how many frames it shows its children (forever by default) |+| `name` | `string` | its label in the timeline and the render manifest (`data-sequence`) |+| `layout` | `SequenceLayout` | "absolute-fill" (default) wraps the children in a full-size box; "none" adds no box |+| `width` | `number` | the width its children see, px (the parent's by default) |+| `height` | `number` | the height its children see, px (the parent's by default) |+| `style` | `CSSProperties` | the wrapping box's style |+| `className` | `string` | the wrapping box's classes |+| `children` | `ReactNode` | what plays in it, at its own local time |### `Series`@@ -83,7 +83,7 @@ Plays its Series.Sequence children back to back, each shifted by its own offset.| Prop | Type | What it does || --- | --- | --- |-| `children` | `ReactNode` | – |+| `children` | `ReactNode` | the Series.Sequence slots, played back to back |### `Video`@@ -110,22 +110,22 @@ The props of [`Loop`](#loop), tabled there.| Field | Type | What it is || --- | --- | --- |-| `src` (required) | `string` | – |-| `startFrom` | `number` | – |-| `endAt` | `number` | – |-| `trimBefore` | `number` | – |-| `trimAfter` | `number` | – |+| `src` (required) | `string` | the file: staticFile("clip.mp4"), or a generated asset |+| `startFrom` | `number` | the media's own frame it starts playing from (0); the same as trimBefore |+| `endAt` | `number` | the media's frame it stops before (exclusive): it holds the last frame, or loops; the same as trimAfter |+| `trimBefore` | `number` | frames of the media cut off its start (the newer name for startFrom) |+| `trimAfter` | `number` | the media's frame it's cut at (the newer name for endAt) || `volume` | `VolumeProp` | linear gain, 1 being unity (0.5 is about -6 dB, 1.78 about +5 dB), or a function of the media's own frame || `gainDb` | `VolumeProp` | ours: the gain in decibels (or a function of the media's own frame returning it); wins over volume || `fadeIn` | `number` | ours: seconds to ramp the sound in from silence at its start (applied by the renderer at the audio's rate) || `fadeOut` | `number` | ours: seconds to ramp the sound out to silence at its end |-| `playbackRate` | `number` | – |-| `muted` | `boolean` | – |-| `loop` | `boolean` | – |+| `playbackRate` | `number` | how fast it plays (1): 2 is double speed |+| `muted` | `boolean` | play no sound |+| `loop` | `boolean` | start again from `startFrom` when it reaches `endAt` || `bus` | `string` | the bus it plays into: a named channel of the edit's Tone graph (music, sfx, voice, ambience, ui), so it takes that bus's volume, effects and ducking (raea/tone `buses`) |-| `name` | `string` | – |-| `className` | `string` | – |-| `style` | `CSSProperties` | – |+| `name` | `string` | the entity's name, for picking, the inspector and world.* |+| `className` | `string` | Tailwind or CSS classes |+| `style` | `CSSProperties` | inline style |### `SequenceLayout`@@ -141,14 +141,14 @@ The props of [`Sequence`](#sequence), tabled there.| Field | Type | What it is || --- | --- | --- |-| `offset` | `number` | – |-| `height` | `number` | – |-| `style` | `CSSProperties` | – |-| `children` | `ReactNode` | – |-| `className` | `string` | – |-| `name` | `string` | – |-| `width` | `number` | – |-| `durationInFrames` | `number` | – |+| `offset` | `number` | frames from the previous slot's end to this one's start (0); negative overlaps |+| `height` | `number` | the height its children see, px (the parent's by default) |+| `style` | `CSSProperties` | the wrapping box's style |+| `children` | `ReactNode` | what plays in it, at its own local time |+| `className` | `string` | the wrapping box's classes |+| `name` | `string` | its label in the timeline and the render manifest (`data-sequence`) |+| `width` | `number` | the width its children see, px (the parent's by default) |+| `durationInFrames` | `number` | how many frames it shows its children (forever by default) |### `VideoProps`diff --git a/sdk/app/src/bevy/app.ts b/sdk/app/src/bevy/app.tsindex 5d1ae229..26ee253e 100644--- a/sdk/app/src/bevy/app.ts+++ b/sdk/app/src/bevy/app.ts@@ -11,7 +11,7 @@ const call: Call = (name, args) => (native as unknown as (n: string, a: unknown)export class BevyApp {/** the methods this App answers (BRP's, raea's and its plugins') */readonly methods: string[];- private constructor(readonly id: number, methods: string[]) {+ private constructor(/** the App's handle in the engine */ readonly id: number, methods: string[]) {this.methods = methods;}@@ -251,6 +251,7 @@ export class BevyApp {return r.entity;}+ /** Adds these components to an entity, replacing any it has of the same type. */insert(entity: Entity, ...components: With[]): void {this.call("world.insert_components", { entity, components: Object.fromEntries(components.map((c) => [c.path, c.value])) });}@@ -270,10 +271,12 @@ export class BevyApp {});}+ /** A resource's value. */resource<T>(r: Resource<T>): T {return this.call<{ value: T }>("world.get_resources", { resource: r.path }).value;}+ /** Sets a resource's value, adding it if the app hasn't got one. */setResource<T>(r: Resource<T>, value: T): void {this.call("world.insert_resources", { resource: r.path, value });}@@ -335,6 +338,7 @@ export class BevyApp {return this.call("registry.schema", crates ? { with_crates: crates } : undefined);}+ /** Shuts the app down; its methods fail after. */close(): void {call("bevy.app.close", { app: this.id });}diff --git a/sdk/app/src/bevy/core.ts b/sdk/app/src/bevy/core.tsindex df01d5e5..ab6ab3fc 100644--- a/sdk/app/src/bevy/core.ts+++ b/sdk/app/src/bevy/core.ts@@ -63,10 +63,15 @@ export { with_ as with };* states to the App; once every plugin is built, each one's `finish` runs, then each one's `cleanup`, as App::run* does. Unique by `name` unless `isUnique` is false (Bevy panics on a unique plugin added twice; this throws). */export interface Plugin {+ /** the plugin's name: two unique plugins of one name can't both be added */name: string;+ /** adds the plugin's systems, resources and other plugins to the app */build(app: BevyApp): void;+ /** called once every plugin is built, for setup that needs the others */finish?(app: BevyApp): void;+ /** called after every plugin's finish */cleanup?(app: BevyApp): void;+ /** whether adding it twice is an error (true) */isUnique?: boolean;}@@ -82,25 +87,30 @@ export type PluginRef = string | { readonly plugin: string } | Plugin | PluginGr* leaves one out, and the App adds the rest in order. */export class PluginGroup {private readonly members: { key: string; plugin: string | Plugin; on: boolean }[];- constructor(readonly name: string, plugins: (string | { readonly plugin: string } | Plugin)[]) {+ /** A group named `name` of these plugins, in the order the App adds them. */+ constructor(/** the group's name */ readonly name: string, plugins: (string | { readonly plugin: string } | Plugin)[]) {this.members = plugins.map((p) => {const plugin = rustName(p) ?? (p as Plugin);return { key: typeof plugin === "string" ? plugin : plugin.name, plugin, on: true };});}+ /** Replaces the member of `p`'s name with `p`. */set(p: Plugin): PluginGroup {const m = this.member(p.name);m.plugin = p;return this;}+ /** Leaves the member of this name out. */disable(name: string): PluginGroup {this.member(name).on = false;return this;}+ /** Puts a disabled member back. */enable(name: string): PluginGroup {this.member(name).on = true;return this;}+ /** The plugins to add, in order, without the disabled ones. */build(): (string | Plugin)[] {return this.members.filter((m) => m.on).map((m) => m.plugin);}diff --git a/sdk/app/src/clock.tsx b/sdk/app/src/clock.tsxindex 6df6a3ef..c4c19caf 100644--- a/sdk/app/src/clock.tsx+++ b/sdk/app/src/clock.tsx@@ -3,6 +3,7 @@import { createContext, useContext, useLayoutEffect, useReducer, useRef, version, type ReactNode } from "react";export interface TimelineWord {+ /** the word as spoken */text: string;/** first frame of the word */from: number;@@ -11,25 +12,37 @@ export interface TimelineWord {}export interface VideoConfig {+ /** the composition's id ("main" by default) */id: string;+ /** in px */width: number;+ /** in px */height: number;+ /** frames a second */fps: number;+ /** its length in frames */durationInFrames: number;+ /** the props the composition is rendered with */defaultProps: Record<string, unknown>;}/** A box in composition px. */export interface Rect {+ /** the left edge, px */x: number;+ /** the top edge, px */y: number;+ /** width, px */w: number;+ /** height, px */h: number;}/** What perception saw at this frame: the largest face, and the platform's safe area (composition px). */export interface Perception {+ /** the largest face's box, when there's one */face?: Rect;+ /** px the platform's UI covers at the top and bottom */safe?: { top?: number; bottom?: number };}@@ -66,10 +79,13 @@ export interface ClockState {/** The local time a subtree sees: its own frame, and the composition frame its frame 0 falls on. */export interface LocalTime {+ /** the subtree's own frame: the composition's frame minus `origin` */frame: number;+ /** the composition frame the subtree's frame 0 falls on */origin: number;/** width and height a Sequence overrides for its children */width: number;+ /** in px, what the Sequence gives its children */height: number;}@@ -203,16 +219,27 @@ export function useVideoConfig(): VideoConfig {}export interface ClockProps {+ /** the composition frame to draw */frame: number;+ /** frames a second */fps: number;+ /** in px */width: number;+ /** in px */height: number;+ /** the composition's length in frames */durationInFrames: number;+ /** the composition's id ("main" by default) */id?: string;+ /** the props the composition is rendered with */defaultProps?: Record<string, unknown>;+ /** the transcript, in composition frames, that captions and word cuts read */words?: readonly TimelineWord[];+ /** what perception saw at this frame (faces, the safe area) */perception?: Perception;+ /** a game's recorded input by frame */input?: InputTimeline;+ /** the composition */children?: ReactNode;}diff --git a/sdk/app/src/machine/compiled.ts b/sdk/app/src/machine/compiled.tsindex ce620d84..07e4268b 100644--- a/sdk/app/src/machine/compiled.ts+++ b/sdk/app/src/machine/compiled.ts@@ -4,15 +4,21 @@ import { Action, Actions, Guard, MachineConfig, Snapshot, StateConfig, StepOptio// ---- the compiled machine ------------------------------------------------------------------------------------------export interface Edge<N extends string = string> {+ /** its place in `machine.edges` */index: number;+ /** the state it leaves */from: N;+ /** the state it enters */to: N;+ /** what fires it: a guard polled each step (always), a delay (after), an event (on), the substate finishing (done) or a decider (choose) */kind: "always" | "after" | "on" | "done" | "choose";/** the event an `on` edge waits for */event?: string;/** steps in `from` before it may fire */after: number;+ /** whether it has a guard (`when`) */guarded: boolean;+ /** what the transition means, from its config */description?: string;}@@ -41,18 +47,24 @@ interface Node<C, E> {}export interface Analysis<N extends string = string> {+ /** the machine's id */id: string;+ /** every state with its parent, depth, kind and whether it's an initial state */states: { name: N; parent: N | null; depth: number; kind: "leaf" | "compound" | "final"; initial: boolean }[];+ /** every transition */edges: Edge<N>[];/** states some sequence of transitions reaches from the initial state (guards assumed satisfiable) */reachable: N[];+ /** states no sequence of transitions reaches */unreachable: N[];/** non-final leaves with no transition out (their own or an enclosing state's): once entered, never left */deadEnds: N[];}export interface Machine<C, E, N extends string, K extends string = "sm"> {+ /** the machine's name in traces and reports */readonly id: string;+ /** the context's field holding its snapshot ("sm") */readonly key: K;/** every state, in definition order (outer before inner) */readonly states: readonly N[];diff --git a/sdk/app/src/machine/core.ts b/sdk/app/src/machine/core.tsindex 35cd7c96..acd5b2a6 100644--- a/sdk/app/src/machine/core.ts+++ b/sdk/app/src/machine/core.ts@@ -75,13 +75,16 @@ export interface StateConfig<C, E, N extends string> {onDone?: Transitions<C, E, N>;/** a final state: no transitions out (a dead enemy, the game won, the work shipped) */type?: "final";+ /** what the state means, for reports and a decider */description?: string;}export interface MachineConfig<C, E, N extends string, K extends string> {/** the machine's name in traces and reports */id: string;+ /** the state it starts in */initial: NoInfer<N>;+ /** its states by name, each a StateConfig (substates nest inside) */states: { [S in N]?: StateConfig<C, E, N> };/** the context's field holding the snapshot ("sm") */key?: K;@@ -96,17 +99,25 @@ export interface MachineConfig<C, E, N extends string, K extends string> {* edge the last transition took (an index into machine.edges); `by` names the decider that chose it (absent: a* guard); `hist` is each history state's last substate. */export interface Snapshot<N extends string = string> {+ /** the active states, outermost first ([] before the first step) */path: N[];+ /** the step each state in `path` was entered on */at: number[];+ /** the machine's steps so far, from 0 */n: number;+ /** the edge the last transition took, an index into `machine.edges` */e: number;+ /** the decider that chose the last transition (absent: a guard did) */by?: string;+ /** each history state's last substate */hist?: { [S in N]?: N };}/** A machine's state in some context, for a trace (`Playtest.machines`). */export interface Watched {+ /** the machine */machine: AnyMachine;+ /** its runtime state in that context */snapshot: Snapshot;}@@ -124,29 +135,37 @@ export function inState<N extends string>(snap: Snapshot<N>, name: N): boolean {/** A choice point as a decider sees it: which machine, where, and the candidates whose guards hold. */export interface ChoicePoint<C = unknown, E = unknown> {+ /** the machine's id */machine: string;/** the state whose `choose` list this is, and the active leaf */state: string;+ /** the active leaf state */leaf: string;/** the machine's step */n: number;/** the candidates whose guards hold, in their order (each an edge of machine.edges) */candidates: { edge: number; to: string; description?: string }[];+ /** the context the machine drives */ctx: C;+ /** whatever the step was given as env */env: E;}/** What a decider answers: the edge it picks (one of the candidates' `edge`), or null to wait this step; `evidence` is* whatever supports the choice (a bot's score, a model's probabilities), recorded beside the transition. */export interface Decision {+ /** the edge picked, one of the candidates' `edge`; null waits this step */edge: number | null;+ /** what supports the choice (a bot's score, a model's probabilities), recorded with the transition */evidence?: unknown;}/** Picks a transition at a choice point. Called inside the step, so it must answer synchronously: a model or a person* is asked outside the step and their answer replayed (`replayDecider`). Deterministic deciders keep a fold pure. */export interface Decider {+ /** its name in the trace's `by` column */name: string;+ /** picks a candidate at a choice point, synchronously */decide(point: ChoicePoint): Decision;}@@ -169,14 +188,21 @@ export function replayDecider(log: Record<string, Record<number, number | { edge/** One transition as a row: what a trace keeps and rdb loads (step, machine, from, to, edge, decider, evidence). `from` is* null for the first step's entry into the initial states. */export interface TransitionRecord {+ /** the machine's id */machine: string;+ /** the machine's step it happened on */step: number;+ /** the leaf it left (null for the first entry) */from: string | null;+ /** the leaf it entered */to: string;+ /** the edge it took, an index into `machine.edges` */edge: number;+ /** what kind of edge: always, after, on, choose, done (an onDone), or start for the first entry */kind: Edge["kind"] | "start";/** "guard" for a trigger, "start" for the first entry, else the decider's name */by: string;+ /** the decider's evidence for the choice */evidence?: unknown;}diff --git a/sdk/asset/src/assets.ts b/sdk/asset/src/assets.tsindex 9e7f8467..6a443248 100644--- a/sdk/asset/src/assets.ts+++ b/sdk/asset/src/assets.ts@@ -4,8 +4,11 @@export type AssetKind = "lyria" | "sao" | "tokensynth";export interface GeneratedAsset {+ /** which generator makes it: lyria (music), sao (sound effects) or tokensynth (an instrument's note) */kind: AssetKind;+ /** what to make, in words */prompt: string;+ /** how long it is */seconds: number;/** a stable hash of kind, prompt and seconds */id: string;diff --git a/sdk/asset/src/glb.ts b/sdk/asset/src/glb.tsindex 4176462f..0855bfdd 100644--- a/sdk/asset/src/glb.ts+++ b/sdk/asset/src/glb.ts@@ -17,29 +17,37 @@ export interface GlbMaterial {unlit?: boolean;/** alpha-blended (the colour's alpha, times the vertex colours' alpha) */blend?: boolean;+ /** draw the back faces too */doubleSided?: boolean;+ /** 0..1, smooth to matte */roughness?: number;+ /** 0..1, a dielectric to a metal */metalness?: number;+ /** the colour it glows with */emissive?: string;}export interface GlbPrimitive {/** x y z per vertex */positions: ArrayLike<number>;+ /** x y z per vertex, unit length */normals?: ArrayLike<number>;/** r g b a per vertex, linear 0..1 (multiplies the material's colour) */colors?: ArrayLike<number>;/** by threes for triangles, by twos for lines; none: every vertex in order */indices?: ArrayLike<number>;+ /** what the indices draw: triangles (the default) or lines */mode?: "triangles" | "lines";/** four joint indices per vertex (a skinned mesh) */joints?: ArrayLike<number>;/** four weights per vertex, summing to 1 */weights?: ArrayLike<number>;+ /** its surface: colour, roughness, metalness, glow */material?: GlbMaterial;}export interface GlbJoint {+ /** the joint's name (a bone's, as a retarget maps it) */name: string;/** index of the parent joint, -1 for a root */parent: number;@@ -48,6 +56,7 @@ export interface GlbJoint {}export interface GlbClip {+ /** the clip's name, as a Model's \`animation\` picks it */name: string;/** sample times (any unit the Model's `time` uses) */times: ArrayLike<number>;@@ -58,9 +67,11 @@ export interface GlbClip {}export interface GlbScene {+ /** the meshes it holds */primitives: GlbPrimitive[];/** a skin: all primitives are skinned by these joints when it's given */joints?: GlbJoint[];+ /** animation clips over the joints */clips?: GlbClip[];}diff --git a/sdk/audio/src/seedling.tsx b/sdk/audio/src/seedling.tsxindex 8b5e7843..bd4b451e 100644--- a/sdk/audio/src/seedling.tsx+++ b/sdk/audio/src/seedling.tsx@@ -25,6 +25,7 @@ export interface SeedlingProps {volume?: number;/** playback speed (default 1); may change frame to frame */speed?: number;+ /** start again from the beginning when it ends */loop?: boolean;/** a serial chain of effects on this player */fx?: SeedlingFx[];diff --git a/sdk/audio/src/song/core.ts b/sdk/audio/src/song/core.tsindex 61dc4e4b..7829b63e 100644--- a/sdk/audio/src/song/core.ts+++ b/sdk/audio/src/song/core.ts@@ -6,19 +6,26 @@ export type SongLevel = "intro" | "low" | "mid" | "high" | "outro";/** A hit inside a stop: `time` on the beat grid (a beat or half beat), `at` where the onset is. */export interface SongHit {+ /** seconds from the song's start, snapped to the beat grid (a beat or half beat) */time: number;+ /** seconds from the song's start where the onset itself is */at: number;+ /** how hard the hit is, 0..1 */strength: number;}export interface SongEvent {+ /** what the event is: build, drop, stop, hit, dip or break */kind: SongEventKind;/** seconds from the song's start: a beat (drop, a downbeat) or the grid's nearest beat or half beat (hit) */time: number;/** spans (build, stop, dip, break) end here */end?: number;+ /** the index of the beat it starts on, in `SongMap.beats` */beat: number;+ /** the index of the bar it starts in */bar: number;+ /** a span: how many beats it lasts */beats?: number;/** 0..1 */strength: number;@@ -30,63 +37,97 @@ export interface SongEvent {rise?: number;/** a drop: the bar after stays up (false: one hit, then the band cuts out) */holds?: boolean;+ /** a drop: it comes straight out of a stop */afterStop?: boolean;+ /** a drop: it lands at the end of a build (within two bars of it) */afterBuild?: boolean;/** a drop: a breath of near-silence just before it */gapBefore?: boolean;/** a hit: the onset's own time; how far over the groove it stands */at?: number;+ /** a hit: how far over the groove it stands */over?: number;}export interface SongSection {+ /** the section's marker name when the song file has markers, else its level */name: string;+ /** how high the section sits in the song: intro, low, mid, high or outro */level: SongLevel;+ /** seconds from the song's start where the section begins */time: number;+ /** seconds from the song's start where it ends */end: number;+ /** the index of its first beat */beat: number;+ /** the index of its first bar */bar: number;+ /** its mean energy, 0..1 */energy: number;/** suggested cuts per bar: 0.25, 0.5, 1, 2 or 4 */cuts: number;}export interface SongBar {+ /** seconds from the song's start where the bar begins (its downbeat) */time: number;+ /** the index of its first beat */beat: number;+ /** how many beats it holds */beats: number;+ /** its mean energy, 0..1 */energy: number;+ /** suggested cuts in this bar: 0.25, 0.5, 1, 2 or 4 */cuts: number;}export interface SongFeatures {+ /** loudness (RMS) a beat, 0..1 over the song */loudness: number[];+ /** onset strength (spectral flux) a beat, 0..1: how much is struck */onsets: number[];+ /** brightness (spectral centroid) a beat, 0..1 */brightness: number[];+ /** the low end (kick and bass, under 150 Hz) a beat, 0..1 */low: number[];+ /** the high band (over 3 kHz) a beat, 0..1 */high: number[];+ /** the combined energy a beat, 0..1: loudness, low end, onsets and highs together */energy: number[];}export interface SongMap {+ /** the map format's version (1) */version: number;+ /** the song's length in seconds */duration: number;+ /** beats per minute, or null when no beat was found */tempo: number | null;+ /** beats in a bar (4 for 4/4) */beatsPerBar: number;+ /** every beat's time in seconds, ascending */beats: number[];+ /** every bar's first beat, in seconds */downbeats: number[];/** one value a beat, 0..1 over the song */features: SongFeatures;+ /** the bars in order, each with its energy and suggested cut rate */bars: SongBar[];+ /** the song's sections in order (intro, verse, chorus and so on) */sections: SongSection[];+ /** builds, drops, stops, hits, dips and breaks, in time order */events: SongEvent[];+ /** where the sections came from: the song file's markers, or novelty in the music itself */sectionsFrom?: "markers" | "novelty";+ /** the candidate section boundaries novelty found, each with its strength 0..1 */boundaries?: { time: number; beat: number; bar: number; strength: number }[];+ /** the song file's name */source?: string | null;}/** Where a moment of the song is. Seconds are the song's; infinities when there's no such event. */export interface SongMoment {+ /** the moment, seconds from the song's start */time: number;/** the beat at or before `time` (-1 before the first) */beat: number;@@ -96,14 +137,21 @@ export interface SongMoment {beatInBar: number;/** 0..1 through the beat, and through the bar */phase: number;+ /** 0..1 through the bar */barPhase: number;/** the features at `time`, interpolated between beats */energy: number;+ /** loudness at `time`, 0..1 */loudness: number;+ /** onset strength at `time`, 0..1 */onsets: number;+ /** brightness at `time`, 0..1 */brightness: number;+ /** the low end at `time`, 0..1 */low: number;+ /** the section `time` is in (null before the first) */section: SongSection | null;+ /** that section's index in `SongMap.sections` (-1 for none) */sectionIndex: number;/** 0..1 through the section */sectionProgress: number;@@ -111,15 +159,21 @@ export interface SongMoment {cutsPerBar: number;/** the last drop at or before `time`, the next after it */drop: SongEvent | null;+ /** the next drop after `time` */nextDrop: SongEvent | null;+ /** seconds since the last drop (Infinity when there's none) */sinceDrop: number;+ /** seconds until the next drop (Infinity when there's none) */untilDrop: number;/** the build `time` is in, and 0..1 through it */build: SongEvent | null;+ /** whether `time` is inside a build */inBuild: boolean;+ /** 0..1 through that build */buildProgress: number;/** the stop `time` is in */stop: SongEvent | null;+ /** whether `time` is inside a stop */inStop: boolean;/** the dip or break `time` is in */dip: SongEvent | null;diff --git a/sdk/audio/src/song/plot.tsx b/sdk/audio/src/song/plot.tsxindex 4855f4c4..4c38a5f3 100644--- a/sdk/audio/src/song/plot.tsx+++ b/sdk/audio/src/song/plot.tsx@@ -10,9 +10,13 @@ const EVENT_COLOUR: Record<SongEventKind, string> = {};export interface SongPlotProps {+ /** the song's map, from \`raea song\` */map: SongMap;+ /** in px */width?: number;+ /** in px */height?: number;+ /** the heading (the song's name, tempo, metre and length by default) */title?: string;}diff --git a/sdk/audio/src/song/song.ts b/sdk/audio/src/song/song.tsindex cf0af0d8..8e0384c8 100644--- a/sdk/audio/src/song/song.ts+++ b/sdk/audio/src/song/song.ts@@ -32,8 +32,11 @@ export interface CutOptions extends FrameRange {}export interface Song {+ /** the song's map, from \`raea song\` */map: SongMap;+ /** the composition's frame rate, that frames are counted in */fps: number;+ /** seconds into the song frame 0 falls on (0) */offset: number;/** the frame a song time falls on */frame(seconds: number): number;diff --git a/sdk/audio/src/speech.tsx b/sdk/audio/src/speech.tsxindex 431330a1..20fd35e0 100644--- a/sdk/audio/src/speech.tsx+++ b/sdk/audio/src/speech.tsx@@ -24,6 +24,7 @@import { native } from "raea/native";export interface Line {+ /** the words to say */text: string;/** a Pocket voice ("alba", "marius", ...), a clip in ~/.raea-feed/voices by name ("watts"), or a WAV* ("/media/narrator.wav" or staticFile("narrator.wav")); the default is "watts" when that clip's there, else alba */diff --git a/sdk/character/src/lint.ts b/sdk/character/src/lint.tsindex 8164601a..5db65b34 100644--- a/sdk/character/src/lint.ts+++ b/sdk/character/src/lint.ts@@ -23,12 +23,17 @@ const STAGES: Stage[] = ["clip", "blend", "plant", "elbows", "gaze"];export interface Finding {/** first and peak frames */frame: number;+ /** the frame it's worst on */peak: number;+ /** how many frames it lasts */frames: number;+ /** the joint it's on */joint: string;+ /** what's wrong: too fast (speed), a jolt (jerk) or a joint bent past its limit (buckle) */kind: "speed" | "jerk" | "buckle";/** the peak's value (degrees a frame, a frame², or degrees past the clip's knee) and what the library allows */value: number;+ /** what the library allows */limit: number;/** the first stage that shows it */stage: Stage;@@ -37,7 +42,9 @@ export interface Finding {}export interface Lint {+ /** what's wrong, each with its frames, joint and cause */findings: Finding[];+ /** how many frames were checked */frames: number;}diff --git a/sdk/math/src/animate/components.tsx b/sdk/math/src/animate/components.tsxindex 6d18f2f7..b353eb5b 100644--- a/sdk/math/src/animate/components.tsx+++ b/sdk/math/src/animate/components.tsx@@ -18,14 +18,18 @@ export interface AnimateOwnProps {exitAt?: number;/** a timeline's plan and this element's part in it: the part's move, at its start (plus `at`) */timeline?: Plan;+ /** the part in \`timeline\` whose move this element plays */part?: string;/** "always" (default): in the tree, and its layout, the whole time (invisible before an entrance that fades in);* "during": only from the entrance's start until the exit ends (it takes its space when it arrives) */mount?: "during" | "always";/** the element: "div" by default */as?: string;+ /** inline style */style?: CSSProperties;+ /** Tailwind or CSS classes */className?: string;+ /** what moves */children?: ReactNode;}diff --git a/sdk/math/src/animate/core.ts b/sdk/math/src/animate/core.tsindex f3ff1976..52b5fd71 100644--- a/sdk/math/src/animate/core.ts+++ b/sdk/math/src/animate/core.ts@@ -28,14 +28,21 @@ export type Keys<V = number | string> = Record<number, V>;/** One property's keyframes: values by frame, the curve between each pair (one for all, or one per segment). */export interface TrackSpec<V = number | string> {+ /** [frame, value] pairs in frame order, frames from the move's start */keys: [number, V][];+ /** the curve between keys: one for all, or one a segment */ease: Curve | Curve[];+ /** a length's unit: px (the default) or % */unit?: "px" | "%";+ /** past the last key: hold (the default), loop or pingpong, for ever or N times ("loop:3") */repeat?: "hold" | "loop" | "pingpong" | `${"loop" | "pingpong"}:${number}`;+ /** decimals a `text` counter writes */digits?: number;/** a `text` counter's text before and after the number, and between its thousands ("," writes 12,345) */prefix?: string;+ /** written after a `text` counter's number (" pts") */suffix?: string;+ /** between a `text` counter's thousands ("," writes 12,345) */separator?: string;}@@ -94,6 +101,7 @@ function makeTrack<V>(keys: Keys<V>, ease: Curve | Curve[], opts: Omit<TrackSpec/** Tracks by property, in frames from the move's own start. */export interface Move {+ /** keyframes by property, in frames from the move's start */tracks: Record<string, TrackSpec | TrackSpec[]>;/** how long it runs (its last key) */frames: number;diff --git a/sdk/math/src/animate/timelines.ts b/sdk/math/src/animate/timelines.tsindex 40b5065b..7326eb27 100644--- a/sdk/math/src/animate/timelines.ts+++ b/sdk/math/src/animate/timelines.ts@@ -10,7 +10,9 @@ import { Move, MoveLike, move, toMove } from "./all";export type Step = [part: string, move: MoveLike] | { part: string; move: MoveLike; offset?: number } | Group | number;export interface Group {+ /** sequence: one after another; parallel: together */kind: "sequence" | "parallel";+ /** its steps, in order */steps: Step[];/** frames between steps of a sequence (negative overlaps) */gap: number;@@ -63,7 +65,9 @@ export function gridDelay(cols: number, rows: number, from: GridFrom, index: num/** A timeline's plan: each part's start frame and move, and the whole length. */export interface Plan {+ /** each part's start frame and move, by its name */parts: Record<string, { at: number; move: Move }>;+ /** the whole timeline's length in frames */frames: number;}diff --git a/sdk/math/src/interpolate.ts b/sdk/math/src/interpolate.tsindex 2379af1e..626770c9 100644--- a/sdk/math/src/interpolate.ts+++ b/sdk/math/src/interpolate.ts@@ -4,8 +4,11 @@ import type { EasingFn } from "./easing";export type ExtrapolateMode = "extend" | "clamp" | "identity" | "wrap";export interface InterpolateOptions {+ /** the curve between keyframes: one for all, or one a segment */easing?: EasingFn | EasingFn[];+ /** below the first keyframe: extend the line (default), clamp to it, identity (the input itself) or wrap */extrapolateLeft?: ExtrapolateMode;+ /** past the last keyframe: extend (default), clamp, identity or wrap */extrapolateRight?: ExtrapolateMode;}diff --git a/sdk/math/src/spring.ts b/sdk/math/src/spring.tsindex 039d1cf8..9e707b76 100644--- a/sdk/math/src/spring.ts+++ b/sdk/math/src/spring.ts@@ -2,21 +2,34 @@// m x'' + c x' + k (x - to) = 0, x(0) = from, x'(0) = 0, solved in closed form for each damping regime.export interface SpringConfig {+ /** how heavy the spring's weight is (1): heavier is slower and swings further */mass?: number;+ /** how fast the swing dies (10): lower bounces more */damping?: number;+ /** how hard the spring pulls (100): stiffer is quicker */stiffness?: number;+ /** stop at `to` the first time it gets there, with no overshoot (false) */overshootClamping?: boolean;}export interface SpringOptions {+ /** the frame to sample, usually useCurrentFrame() */frame: number;+ /** frames a second, from useVideoConfig() */fps: number;+ /** the value it starts at (0) */from?: number;+ /** the value it settles at (1) */to?: number;+ /** the spring: mass, damping, stiffness, overshootClamping */config?: SpringConfig;+ /** stretch or squeeze the spring to settle in this many frames */durationInFrames?: number;+ /** how close to `to`, as a share of the travel, counts as settled when timing it (0.005) */durationRestThreshold?: number;+ /** frames before it starts (0) */delay?: number;+ /** play it backwards: from `to` back to `from` */reverse?: boolean;}diff --git a/sdk/physics/src/physics/bodies.tsx b/sdk/physics/src/physics/bodies.tsxindex af1e4491..bd765ca2 100644--- a/sdk/physics/src/physics/bodies.tsx+++ b/sdk/physics/src/physics/bodies.tsx@@ -16,44 +16,59 @@ export interface Impulse {impulse?: Vec3;/** where it's applied (world, metres): off the centre it spins the body too */at?: Vec3;+ /** an angular impulse, N·m·s, world */torque?: Vec3;}export interface BodyProps {+ /** the body's name, unique in its <Physics>: the bake keys its track by it */name: string;/** a glTF's nodes as the body (drawn as a <Part>, its collider their hull) */src?: string;+ /** the glTF nodes that make the body */nodes?: string[];/** "hull" (default for nodes), "box" (their bounds), "mesh" (exact triangles, fixed bodies only), or a shape */shape?: Shape;/** where a given shape's centre stands at rest, world (a nodes' body: the middle of their bounds) */centre?: Vec3;+ /** it never moves: a floor, a wall, a table */fixed?: boolean;/** kg (else volume x density) */mass?: number;/** kg/m³ (1000) */density?: number;+ /** 0 slides, 1 grips (0.5) */friction?: number;+ /** 0 lands dead, 1 bounces back fully (0.2) */restitution?: number;+ /** m/s at the start, world */velocity?: Vec3;+ /** radians a second at the start, world */angularVelocity?: Vec3;+ /** how fast its motion bleeds off (0) */linearDamping?: number;+ /** how fast its spin bleeds off (0.05) */angularDamping?: number;/** seconds: held where it is until then (a cup sits until it's knocked) */release?: number;+ /** kicks at given seconds: an impulse, where it's applied, and a torque */impulses?: Impulse[];/** a kinematic mover: its rigid motion from rest at t seconds (see `about`); it pushes the others */path?: (t: number) => { position: Vec3; quaternion: Quat };/** drawn as the body's nodes are, or by its children (inside its motion: draw them where it stands at rest) */material?: PartMaterial;+ /** how its part breaks up, or a function of seconds giving that */glitch?: Glitch | ((t: number) => Glitch | undefined);+ /** it casts shadows */castShadow?: boolean;+ /** what draws the body, in place of its nodes */children?: ReactNode;}export interface PhysicsProps {/** how long to simulate, seconds */seconds: number;+ /** m/s² (0, -9.81, 0) */gravity?: Vec3;/** steps per frame (8) */substeps?: number;@@ -61,13 +76,18 @@ export interface PhysicsProps {colliders?: { min: Vec3; max: Vec3; friction?: number; restitution?: number }[];/** the frame (of the enclosing Sequence) the simulation starts on (0); before it everything is at rest */from?: number;+ /** the <Body> elements to simulate, and anything else to draw */children?: ReactNode;}export interface Baked {+ /** the frame rate it was baked at */fps: number;+ /** how many frames it holds */frames: number;+ /** the bake's file in the asset store */file: string;+ /** each body's track by name: positions and quaternions a frame, flat, and its rest centre */bodies: Record<string, { p: number[]; q: number[]; centre: Vec3 }>;}diff --git a/sdk/physics/src/physics/core.tsx b/sdk/physics/src/physics/core.tsxindex bb492c64..3b43e670 100644--- a/sdk/physics/src/physics/core.tsx+++ b/sdk/physics/src/physics/core.tsx@@ -87,20 +87,30 @@ export function about(about: Vec3, q: Quat, move: Vec3 = [0, 0, 0]): { position:// ---- parts ----------------------------------------------------------------------------------------------------export interface PartInfo {+ /** the part's own .glb in the asset store */file: string;+ /** the middle of its bounds, metres, where it stands in the source file */centre: Vec3;+ /** its bounds' low corner */lo: Vec3;+ /** its bounds' high corner */hi: Vec3;+ /** how many triangles it has */tris: number;}export interface PartMaterial {/** the magenta-and-black checker of a texture that didn't load */missing?: boolean;+ /** a colour over its own */color?: string;+ /** the colour it glows with */emissive?: string;+ /** 0..1, see-through to solid */opacity?: number;+ /** 0..1, smooth to matte */roughness?: number;+ /** drawn in its flat colour, without light or shade */unlit?: boolean;}@@ -134,16 +144,23 @@ export interface Glitch {}export interface PartProps {+ /** the entity's name (the first node's by default) */name?: string;/** the glTF (staticFile("x.glb")) and the nodes that make the part */src: string;+ /** the glTF nodes that make the part */nodes: string[];/** a rigid motion from where it stands in the file (see `about`): position, and a quaternion [x, y, z, w] */position?: Vec3;+ /** its turn as a quaternion [x, y, z, w] (see `about`) */quaternion?: Quat;+ /** a uniform scale (1) */scale?: number;+ /** a material over the part's own (colour, glow, opacity) */material?: PartMaterial;+ /** how the part breaks up this frame: explode, scramble, jitter, snap, smear */glitch?: Glitch;+ /** it casts shadows */castShadow?: boolean;}@@ -156,9 +173,18 @@ export function Part(p: PartProps) {node("Model", { src: info.file, name: p.name, time: 0, castShadow: p.castShadow, allowOverlap: true, ...(glitch ? { glitch } : {}) }));}+export interface EchoesProps extends PartProps {+ /** how many echoes trail the part */+ count: number;+ /** metres between one echo and the next, or a function of the echo's number (1, 2, ...) giving its offset */+ step: Vec3 | ((k: number) => Vec3);+ /** the echoes' material (the part's by default): a flat glowing one reads as copies */+ echo?: PartMaterial;+}+/** Copies of a part trailing it: `count` echoes at offsets `step` apart (metres; or a function of the echo's number),* in a flat glowing `material`, so a fork "duplicates" along a line. */-export function Echoes(p: PartProps & { count: number; step: Vec3 | ((k: number) => Vec3); echo?: PartMaterial }) {+export function Echoes(p: EchoesProps) {const out: ReactNode[] = [];for (let k = 1; k <= p.count; k++) {const o = typeof p.step === "function" ? p.step(k) : (p.step.map((x) => x * k) as Vec3);@@ -168,9 +194,16 @@ export function Echoes(p: PartProps & { count: number; step: Vec3 | ((k: number)return <>{out}</>;}+export interface ZFightProps extends PartProps {+ /** radians the second copy is turned (~0.002): more is stronger stripes */+ amount: number;+ /** the second copy's material */+ other?: PartMaterial;+}+/** The part drawn twice in the same place, the second a hair turned, in another material: the two surfaces fight* for the depth buffer and flicker in stripes (z-fighting), stronger with `amount` (radians, ~0.002). */-export function ZFight(p: PartProps & { amount: number; other?: PartMaterial }) {+export function ZFight(p: ZFightProps) {const info = part(p.src, p.nodes);const q = quatMul(p.quaternion ?? [0, 0, 0, 1], quatAxis([0.3, 1, 0.2], p.amount));const m = about(info.centre, quatAxis([0.3, 1, 0.2], p.amount));diff --git a/sdk/physics/src/physics/goo.tsx b/sdk/physics/src/physics/goo.tsxindex 77eeb07f..8d258842 100644--- a/sdk/physics/src/physics/goo.tsx+++ b/sdk/physics/src/physics/goo.tsx@@ -7,35 +7,49 @@ import { node } from "./all";// ---- mesh sequences and goo -----------------------------------------------------------------------------------export interface MeshSequenceProps {+ /** the entity's name, for picking and the inspector */name?: string;/** a .rseq (tools/goo writes them; raea_render::meshseq) */src: string;/** which of its frames (clamped) */frame: number;+ /** where it stands, metres (x, y, z) */position?: Vec3;+ /** its rotation, Euler angles in radians (x, y, z) */rotation?: Vec3;+ /** a uniform scale */scale?: number;/** multiplies the vertex colours */color?: string;+ /** 0..1, smooth to matte */roughness?: number;+ /** 0..1, a dielectric to a metal */metalness?: number;+ /** 0..1 strength of a clear varnish layer over the surface */clearcoat?: number;+ /** 0..1 roughness of that clear layer */clearcoatRoughness?: number;/** 0..1 specular strength at normal incidence (0.5: 4%, a dielectric's) */reflectance?: number;/** 0..1 light let through (diffuse transmission): a jelly's glow */subsurface?: number;+ /** how thick the mesh is, metres, for the light let through */thickness?: number;/** 0..1 light let straight through and bent (a clear liquid: water, tea, juice), with its index of refraction (1.33* water) and, for a tinted one, the colour it takes after `attenuationDistance` metres through it. Screen space: it* refracts what's on screen behind it, and one clear layer doesn't show another through it */transmission?: number;+ /** the index of refraction of what light passes through (1.33 water) */ior?: number;+ /** the colour light takes after `attenuationDistance` metres through it */attenuationColor?: string;+ /** metres through it until light has taken `attenuationColor` */attenuationDistance?: number;+ /** 0..1, see-through to solid */opacity?: number;/** a picture over its texture coordinates */map?: string;+ /** draw the back faces too (an open shell, a petal) */doubleSided?: boolean;}@@ -48,35 +62,47 @@ export function MeshSequence(p: MeshSequenceProps) {}export interface GooObject {+ /** the object's name; the bake's stats list it, with the frame its original model should go */name: string;/** a glTF's nodes (world space as they stand in it), moved by `transform` (column-major 4x4) if given; or, with no* src, `cup` and `level`: a liquid filling one of the goo's cups to `level` metres above its foot */src?: string;+ /** the glTF nodes it's made of (all of them when left out) */nodes?: string[];+ /** with no src: the index of the cup in `cups` it fills */cup?: number;+ /** with no src: metres above the cup's foot it's filled to */level?: number;+ /** a column-major 4x4 that moves the glTF's nodes */transform?: number[];/** sph: what it is ("water" by default: coffee, tea, milk, juice, oil, syrup, honey set its colour, density and* viscosity), and where it comes from if not a cup or a glTF (filled): a box of it, or an emitter pouring a round* stream from `at` along `dir` (down) at `speed` m/s, `radius` m (6 mm) across, from `start` to `end` seconds */liquid?: "water" | "coffee" | "tea" | "milk" | "juice" | "oil" | "syrup" | "honey";+ /** sph: a box of liquid, world min and max corners */block?: { min: Vec3; max: Vec3 };+ /** sph: a round stream poured from `at` along `dir`, `radius` m across, at `speed` m/s, from `start` to `end` seconds */emitter?: { at: Vec3; dir?: Vec3; radius?: number; speed?: number; start?: number; end?: number };/** seconds from the goo's start when it begins to soften, and how long until it runs (mpm) */start: number;+ /** seconds from `start` until it runs (2) */melt?: number;/** of the solid (3e4) and the fluid it becomes (4) */stiffness?: number;+ /** how thick the fluid it becomes is (4) */viscosity?: number;+ /** its density, kg/m³ (1000) */density?: number;/** the share of its pressure it keeps under tension (0.6): goo holds together in strands, a liquid (0.02) barely */cohesion?: number;/** the share of its shear stiffness a fluid keeps (0.12) and the strain it must pass to flow (0.005): 0 and 0 for a* liquid */residual?: number;+ /** the strain a fluid must pass to flow (0.005; 0 for a liquid) */yield?: number;/** "solid" fills its volume; "shell" a skin `thickness` thick (plates, petals) */fill?: "solid" | "shell";+ /** with `fill: "shell"`: the skin's thickness, metres */thickness?: number;/** its goo's colour (else its texture's) */color?: string;@@ -92,10 +118,13 @@ export interface GooCup {}export interface GooProps {+ /** the entity's name, for picking and the inspector */name?: string;/** how long, seconds, from `from` (a frame of the enclosing Sequence) */seconds: number;+ /** the frame of the enclosing Sequence the bake starts at (0) */from?: number;+ /** what goes in: solids that melt and liquids that pour */objects: GooObject[];/** static boxes the goo lies on and runs off (world) */colliders?: { box: { min: Vec3; max: Vec3 }; friction?: number }[];@@ -127,17 +156,24 @@ export interface GooProps {bounds?: { min: Vec3; max: Vec3 };/** grid cell, metres (0.005): finer is slower and smoother */dx?: number;+ /** the random seed the particles are placed with: the same seed bakes the same goo (0) */seed?: number;+ /** gravity, m/s² (0, -9.81, 0) */gravity?: Vec3;/** the surface: glossy, a little light through it */roughness?: number;+ /** 0..1 clear varnish over the surface */clearcoat?: number;+ /** 0..1 light let through the surface */subsurface?: number;+ /** the goo's colour where an object gives none */color?: string;}export interface GooBake {+ /** the baked .rseq this goo plays */file: string;+ /** what the bake measured, with each object's name and the frame its original model should go */stats: { objects?: { name: string; hideFrame: number }[]; [k: string]: unknown };}diff --git a/sdk/render/src/3d/all.ts b/sdk/render/src/3d/all.tsindex b70d3e7e..0aa788d5 100644--- a/sdk/render/src/3d/all.ts+++ b/sdk/render/src/3d/all.ts@@ -5,6 +5,7 @@ export * from "./materials";export * from "./lights";export * from "./model";export * from "./effects";+export * from "./volumetric";export * from "./post";export * from "./look";export * from "./bevy";diff --git a/sdk/render/src/3d/atlas.ts b/sdk/render/src/3d/atlas.tsindex c336df66..f184a86b 100644--- a/sdk/render/src/3d/atlas.ts+++ b/sdk/render/src/3d/atlas.ts@@ -4,15 +4,20 @@ import { samplerSpec, type SamplerSpec } from "./materials";/** What a <Sprite> takes to show a built atlas: the whole of it, or one of its pictures (`atlasPick`). */export interface AtlasSprite {+ /** the atlas picture */src: string;+ /** how it's sampled (the atlas's own sampler) */sampler?: SamplerSpec;+ /** which of its pictures shows (the whole atlas when left out) */atlasPick?: number;}/** A built atlas: `image` the whole atlas as a sprite's picture, `sources.handle(texture)` one picture of it* (TextureAtlasSources::handle). */export interface BuiltAtlas {+ /** the whole atlas, as a sprite's picture */image: AtlasSprite;+ /** \`handle(texture)\`: one of the pictures packed into it, by its file */sources: { handle(texture: string): AtlasSprite };}@@ -24,18 +29,21 @@ export class TextureAtlasBuilder {private pad: [number, number] = [0, 0];private textures: string[] = [];+ /** Whole px of space around each picture, [x, y]. */padding(p: [number, number]): this {if (!(Array.isArray(p) && p.length === 2 && p.every((n) => Number.isInteger(n) && n >= 0))) throw new TypeError(`TextureAtlasBuilder: padding is [x, y], whole px of 0 or more, got ${JSON.stringify(p)}`);this.pad = p;return this;}+ /** Adds a picture, packed in the order added. */addTexture(src: string): this {if (typeof src !== "string" || src === "" || src.startsWith("render:") || src.startsWith("atlas:")) throw new TypeError(`TextureAtlasBuilder: a texture is a picture (staticFile("x.png")), got ${JSON.stringify(src)}`);this.textures.push(src);return this;}+ /** Packs the atlas, with its own sampler if given (Bevy's default otherwise). */build({ sampler }: { sampler?: SamplerSpec } = {}): BuiltAtlas {if (this.textures.length === 0) throw new TypeError("TextureAtlasBuilder: add a texture before build()");if (sampler !== undefined) samplerSpec("TextureAtlasBuilder: sampler", sampler);diff --git a/sdk/render/src/3d/bevy.tsx b/sdk/render/src/3d/bevy.tsxindex 68f34e4e..ad741777 100644--- a/sdk/render/src/3d/bevy.tsx+++ b/sdk/render/src/3d/bevy.tsx@@ -56,9 +56,13 @@ export interface GizmoProps {width?: number;/** -1 always in front of geometry, 0 depth-tested as it is (Bevy's GizmoLineConfig and depth_bias) */depthBias?: number;+ /** where it stands, metres (x, y, z) */position?: Vec3;+ /** its rotation, Euler angles in radians (x, y, z) */rotation?: Vec3;+ /** its scale: one number, or x, y and z */scale?: Vec3 | number;+ /** the entity's name, for picking, the inspector and world.* */name?: string;}@@ -110,11 +114,17 @@ export interface ShaderMeshProps {textures?: Record<string, string | Record<string, unknown>>;/** shader defs: each NAME a WESL condition for `@if(NAME)`, and a whole number also `constants::NAME` */defs?: ShaderDefs;+ /** how it blends: opaque, blend, add or premultiplied */alpha?: "opaque" | "blend" | "add" | "premultiplied";+ /** draw the back faces too */doubleSided?: boolean;+ /** the entity's name, for picking, the inspector and world.* */name?: string;+ /** where it stands, metres (x, y, z) */position?: Vec3;+ /** its rotation, Euler angles in radians (x, y, z) */rotation?: Vec3;+ /** its scale: one number, or x, y and z */scale?: Vec3 | number;}@@ -146,8 +156,15 @@ export function ShaderMesh({ shape, wesl, wgsl, uniforms = {}, textures = {}, de);}+export interface BevyResourceProps {+ /** the resource's Rust type path, as the TypeRegistry names it */+ type: string;+ /** its value as Bevy reflects it (JSON) */+ value: unknown;+}+/** A Bevy resource (a plugin's settings: gravity), applied through the TypeRegistry. Inside the Canvas3D. */-export function BevyResource(props: { type: string; value: unknown }) {+export function BevyResource(props: BevyResourceProps) {if (typeof props.type !== "string" || !props.type.includes("::")) throw new TypeError(`BevyResource: type is a full type path, got ${JSON.stringify(props.type)}`);return node3d("BevyResource", { type: props.type, value: props.value ?? null });}diff --git a/sdk/render/src/3d/compute.tsx b/sdk/render/src/3d/compute.tsxindex 18978031..d551f1fc 100644--- a/sdk/render/src/3d/compute.tsx+++ b/sdk/render/src/3d/compute.tsx@@ -37,7 +37,12 @@ export interface ComputeProps {* for its compute to write (shader_advanced/compute_mesh): the mesh the part named `mesh` holds, a <BufferMesh> with* indices and normals (position, normal and uv interleaved, 8 floats a vertex).* @bevy bevy_render::mesh::allocator::MeshBufferSlice */-export interface MeshSlab { mesh: string; slab: "vertices" | "indices" }+export interface MeshSlab {+ /** the mesh's name */+ mesh: string;+ /** which of its buffers: vertices or indices */+ slab: "vertices" | "indices";+}type SlabRange = { start: string } | { end: string };const storageValue = (x: unknown): boolean => Number.isFinite(x) || (Array.isArray(x) && x.every(storageValue)) || (typeof x === "object" && x !== null && Object.values(x).every(storageValue));diff --git a/sdk/render/src/3d/core.tsx b/sdk/render/src/3d/core.tsxindex 8d5c9c5e..c1596618 100644--- a/sdk/render/src/3d/core.tsx+++ b/sdk/render/src/3d/core.tsx@@ -46,6 +46,7 @@ export interface Canvas3DProps {* it in linear light, as Bevy's do over its ClearColor (a Bevy 2D scene's rgb(43, 44, 47)), not over the page in sRGB.* The 3D then lies under the whole page, as Bevy's camera output lies under all its UI (a GlobalZIndex(-1) too). */clearColor?: string;+ /** the 3D scene: cameras, lights and parts */children?: ReactNode;[prop: string]: unknown;}diff --git a/sdk/render/src/3d/effects.tsx b/sdk/render/src/3d/effects.tsxindex 1b30ea08..9376eb5f 100644--- a/sdk/render/src/3d/effects.tsx+++ b/sdk/render/src/3d/effects.tsx@@ -1,4 +1,4 @@-// Image planes, decals, bloom, fog, grading, environment, ambient occlusion, shadows and volumetric fog.+// Image planes, decals, bloom, fog, grading, environment, ambient occlusion and shadows (volumetric fog in volumetric.tsx).import { useCurrentFrame, useVideoConfig } from "@raea/app/clock";import { ImagePlaneProps, Vec3, assetPath, checkShares, checkVec, colours, node3d } from "./all";@@ -16,10 +16,13 @@ export function ImagePlane(props: ImagePlaneProps) {export interface DecalProps {/** the picture pressed onto the surface: staticFile("label.png"); its clear parts show the surface through */src: string;+ /** the entity's name, for picking, the inspector and world.* */name?: string;+ /** a normal map pressed with the picture: the label's relief */normalMap?: string;/** width by height in metres (a number: a square) */size?: number | [number, number];+ /** where it stands, metres (x, y, z) */position?: Vec3;/** which way the surface faces at the decal (out of it; [0, 1, 0], a floor or counter, by default): turns the decal* so the picture lies on it, upright on a wall, its top toward -z on a floor. Instead of rotation */@@ -32,8 +35,11 @@ export interface DecalProps {color?: string;/** 0 to 1 (keyed: a label fading in) */opacity?: number;+ /** 0..1, smooth to matte */roughness?: number;+ /** 0..1, a dielectric to a metal */metalness?: number;+ /** drawn in its flat colour, without light or shade */unlit?: boolean;/** how far off its plane (metres) it still lies on a surface, fading to nothing there (0.05 by default). Anything* nearer the plane than this takes it, a cabinet's side or a fridge's as well as the wall: keep it small */@@ -90,6 +96,7 @@ export function Decal(props: DecalProps) {export interface PlateProps {/** a video in the media folder: staticFile("clip.mp4") */src: string;+ /** the entity's name, for picking, the inspector and world.* */name?: string;/** the clip's time on this frame, in seconds (by default the Sequence's: frame / fps) */time?: number;@@ -145,6 +152,7 @@ export interface FogProps {color?: FogColor;/** linear fog from `near` to `far` (in the Canvas3D 5 and 20 by default; on the camera Bevy's 0 and 100) */near?: number;+ /** where linear fog is full, from the camera (20 in the Canvas3D, 100 on a camera) */far?: number;/** or exponential fog of this density (0.05-0.3), instead of near and far */density?: number;@@ -204,8 +212,11 @@ export interface GradeProps {tint?: number;/** the whole frame's saturation after tone mapping (1 keeps it) */saturation?: number;+ /** the grade on the shadows: saturation, contrast, gamma, gain, lift */shadows?: GradeSection;+ /** the grade on the midtones */midtones?: GradeSection;+ /** the grade on the highlights */highlights?: GradeSection;/** the corners darkened: 0 none, 1 black; or {intensity, radius (0.75), smoothness (5), color} */vignette?: number | { intensity?: number; radius?: number; smoothness?: number; color?: string };@@ -389,103 +400,3 @@ export function Shadows(props: ShadowsProps) {if (props.filter !== undefined && !["gaussian", "hardware"].includes(props.filter)) throw new RangeError(`Shadows: filter must be "gaussian" or "hardware", got ${JSON.stringify(props.filter)}`);return node3d("Shadows", props as unknown as Record<string, unknown>);}--export interface VolumetricFogProps {- /** mode="march": samples along each ray through a fog volume (64 by default): too few stair-step a shaft's edges, so 128 for a- * render with hard-edged shafts, or 32 with `dither`; about 0.1 ms a step at 1920x1080 on an M5 Pro */- steps?: number;- /** mode="march": start each pixel's march a fraction of a step in, by a fixed noise seeded from the pixel and the frame number- * (false by default): the shafts' steps become fine grain instead of bands, so fewer steps look smooth. The noise- * is a function of the frame, so a render still equals its play */- dither?: boolean;- /** mode="march": the fraction of the frame's resolution the fog is marched at (1 by default): 0.5 marches a quarter of the- * pixels and puts the result over the frame guided by depth, so an edge in front of a shaft keeps no fog from- * what's behind it. 0.5, 1/3 or 0.25; each frame on its own, so a render still equals its play */- resolution?: number;- /** light the fog has everywhere, lit or not (0 by default). Bevy lights a volume's whole box with it whatever its- * density, so the box's edges show: keep it 0, or small with the camera inside the volume */- ambient?: number;- /** that light's colour (white by default) */- ambientColor?: string;- /** how the fog is drawn: "froxel" (the default: every volume written into one grid of cells along the view, lit- * once a cell and integrated front to back once, with the `hero` lights' shafts integrated exactly along epipolar lines: no- * steps, no dither, its cost the grid's whatever the resolution or the number of volumes, overlapping volumes mixed- * as one medium, see-through surfaces fogged at their own depth) or "march" (Bevy's ray march through each- * volume, as before). `steps`, `dither` and `resolution` are the march's; `slices`, `tile`, `samples` and `hero`- * the grid's */- mode?: "march" | "froxel";- /** the grid's cells along the view, spaced evenly in log depth from the camera to the farthest volume (64 by- * default; 32 to 256) */- slices?: number;- /** the grid's cells across the frame, in pixels a side (16 by default; 4, 8 or 16) */- tile?: number;- /** points lit in each cell, spread along its depth (1 by default; 1 to 8): more keeps thin shadows in the- * grid's soft light (a hero light's shafts don't need them) */- samples?: number;- /** the grid's shafts: true (the default) integrates the first two volumetric spot lights and the first two- * volumetric directional lights exactly, over their shadow maps texel by texel, so a blind's bars or a doorway's- * edge are as crisp as the shadow map: integrated at samples along lines from the light across the frame (Chen et- * al.'s epipolar sampling), more of them where the depth or the light changes, and each pixel read from the- * samples either side of it at its depth; false lights them in the grid's cells with the rest */- hero?: boolean;-}--/** Volumetric fog on the camera: light in the air, drawn inside every <FogVolume>, with shafts from the lights marked- * `volumetric`. Put it inside the Canvas3D, once; without it fog volumes draw nothing.- * @bevy bevy_light::volumetric::VolumetricFog- * @bevy bevy_light::volumetric::VolumetricLight */-export function VolumetricFog(props: VolumetricFogProps) {- if (props.steps !== undefined && !(Number.isInteger(props.steps) && props.steps >= 1 && props.steps <= 256)) throw new RangeError(`VolumetricFog: steps must be a whole number from 1 to 256, got ${props.steps}`);- if (props.dither !== undefined && typeof props.dither !== "boolean") throw new TypeError(`VolumetricFog: dither must be true or false, got ${JSON.stringify(props.dither)}`);- if (props.resolution !== undefined && !(props.resolution > 0 && props.resolution <= 1 && [1, 2, 3, 4].some((k) => Math.abs(props.resolution! * k - 1) < 1e-6))) throw new RangeError(`VolumetricFog: resolution must be 1, 0.5, 1/3 or 0.25, got ${props.resolution}`);- if (props.ambient !== undefined && !(props.ambient >= 0)) throw new RangeError(`VolumetricFog: ambient must be 0 or more, got ${props.ambient}`);- if (props.mode !== undefined && !["march", "froxel"].includes(props.mode)) throw new RangeError(`VolumetricFog: mode must be "march" or "froxel", got ${JSON.stringify(props.mode)}`);- if (props.slices !== undefined && !(Number.isInteger(props.slices) && props.slices >= 32 && props.slices <= 256)) throw new RangeError(`VolumetricFog: slices must be a whole number from 32 to 256, got ${props.slices}`);- if (props.tile !== undefined && ![4, 8, 16].includes(props.tile)) throw new RangeError(`VolumetricFog: tile must be 4, 8 or 16, got ${props.tile}`);- if (props.samples !== undefined && !(Number.isInteger(props.samples) && props.samples >= 1 && props.samples <= 8)) throw new RangeError(`VolumetricFog: samples must be a whole number from 1 to 8, got ${props.samples}`);- return node3d("VolumetricFog", colours("VolumetricFog", props as Record<string, unknown>, ["ambientColor"]));-}--export interface FogVolumeProps {- /** parts are matched by name across frames: name a volume that comes and goes */- name?: string;- /** the box's centre */- position?: Vec3;- /** radians */- rotation?: Vec3;- /** the box's size in metres: one number for a cube, or [x, y, z] (1 by default) */- scale?: number | Vec3;- /** how thick the air is (0.1 by default: dusty; 0.02 a faint haze; 0.5 smoke). Animate it to let dust settle,- * smoke roll in or a volume vanish (0) */- density?: number;- /** the fog's own colour, what light scattering out of it takes on (white by default; a dark red for blood in the- * air) */- color?: string;- /** how much light it swallows (0.3 by default): higher reads as soot or smoke */- absorption?: number;- /** how much light it throws back toward the eye (0.3 by default): higher reads as bright dust or mist */- scattering?: number;- /** how far forward it scatters, -1 to 1 (0.5 by default): near 1 the shafts glow when you look toward the light */- anisotropy?: number;- /** how fast it thins going up, per metre from the box's floor (0 by default: even throughout): 0.5 is a ground- * fog that's a third as thick two metres up. A box wide and tall with a falloff is height fog. Only- * <VolumetricFog mode="froxel"> draws it; the march draws the box evenly */- falloff?: number;- /** Bevy's density_texture: a 3D .ktx2 image in the media folder whose values scale the density through the box (a- * cloud, a bunny of smoke); the box draws evenly without one. Only the march draws it */- density_texture?: string;-}--/** A box of air that light shows in: dust in a sunbeam, smoke, a haze of blood. Needs a <VolumetricFog> in the- * Canvas3D; lights marked `volumetric` throw shafts through it, and every light's glow fills it softly. A part, so it- * keeps its name across frames: animate its density, colour and placement.- * @bevy bevy_light::volumetric::FogVolume */-export function FogVolume(props: FogVolumeProps) {- for (const k of ["position", "rotation"] as const) if (props[k] !== undefined) checkVec("FogVolume", k, props[k]);- if (props.density !== undefined && !(props.density >= 0 && Number.isFinite(props.density))) throw new RangeError(`FogVolume: density must be 0 or more, got ${props.density}`);- if (props.anisotropy !== undefined && !(props.anisotropy > -1 && props.anisotropy < 1)) throw new RangeError(`FogVolume: anisotropy must be between -1 and 1, got ${props.anisotropy}`);- const tex = props.density_texture;- if (tex !== undefined && !(typeof tex === "string" && /\.ktx2$/i.test(tex))) throw new TypeError(`FogVolume: density_texture is a 3D .ktx2 image, got ${JSON.stringify(tex)}`);- if (props.falloff !== undefined && !(props.falloff >= 0 && Number.isFinite(props.falloff))) throw new RangeError(`FogVolume: falloff must be 0 or more, got ${props.falloff}`);- return node3d("FogVolume", colours("FogVolume", (tex === undefined ? props : { ...props, density_texture: assetPath(tex) }) as Record<string, unknown>, ["color"]));-}diff --git a/sdk/render/src/3d/grass.tsx b/sdk/render/src/3d/grass.tsxindex d9dad808..55c9595a 100644--- a/sdk/render/src/3d/grass.tsx+++ b/sdk/render/src/3d/grass.tsx@@ -8,14 +8,20 @@ import { type PlanBox } from "./all";/** One step of detail: tiles nearer than `to` metres draw `keep` of their clumps (0 to 1), each with its first* `blades` blades in `segments` segments, `widen` times as wide. */export interface GrassLod {+ /** tiles nearer than this many metres take this step */to: number;+ /** the share of their clumps they draw, 0 to 1 */keep: number;+ /** how many of each clump's blades they draw */blades: number;+ /** segments each blade is drawn in */segments: number;+ /** how many times as wide each blade is drawn, to fill in for the ones left out */widen: number;}export interface GrassProps {+ /** the entity's name, for picking, the inspector and world.* */name?: string;/** the ground the field covers: a box on the plan (x, z, metres) */area: PlanBox;@@ -31,16 +37,21 @@ export interface GrassProps {tints?: [string, string][];/** the tips' highlight colour ("#f2e7a0") and how much of it each tip takes (0.22) */highlight?: string;+ /** how much of the highlight each tip takes (0.22) */highlightMix?: number;/** blades in a clump (14), their height in metres (0.3; each 0.55 to 1.3 times it), width range ([0.034, 0.05]) */blades?: number;+ /** their height in metres (0.3; each 0.55 to 1.3 times it) */bladeHeight?: number;+ /** a blade's width range, metres ([0.034, 0.05]) */width?: [number, number];/** how far from its clump's centre a blade stands (0.06 m), and how far it leans over its height ([0.2, 0.7]) */spread?: number;+ /** how far a blade leans over its height ([0.2, 0.7]) */lean?: [number, number];/** each clump's scale, a random pick between these ([0.85, 1.35]), times `size` */scale?: [number, number];+ /** which randomness places the clumps */seed?: number;/** grid points a metre the functions are sampled at (2) */resolution?: number;diff --git a/sdk/render/src/3d/instances.tsx b/sdk/render/src/3d/instances.tsxindex 7f150719..1681ceb2 100644--- a/sdk/render/src/3d/instances.tsx+++ b/sdk/render/src/3d/instances.tsx@@ -7,8 +7,11 @@ import { MeshToonMaterial, Vec3, checkPass, checkVec, node3d, shapeFromChildren/** One copy's placement in an <Instances>, in the Instances' own space (its position, rotation and scale move every* copy together). Rotation in radians, XYZ order, as everywhere. */export interface Instance {+ /** where this copy stands, metres, in the Instances' space */position: Vec3;+ /** its rotation, Euler angles in radians (x, y, z) */rotation?: Vec3;+ /** its scale: one number, or x, y and z */scale?: number | Vec3;}@@ -19,10 +22,13 @@ export interface InstancesProps {/** where each copy stands. Fixed for the shot: the first frame's list is drawn on every frame (move, turn, scale,* hide or recolour the whole set by the Instances' own props) */at: Instance[];+ /** the entity's name, for picking, the inspector and world.* */name?: string;+ /** where it stands, metres (x, y, z) */position?: Vec3;/** radians */rotation?: Vec3;+ /** its scale: one number, or x, y and z */scale?: number | Vec3;/** of a glTF: which of its scenes (0 by default) */scene?: number;@@ -32,6 +38,7 @@ export interface InstancesProps {shadow?: boolean;/** false: no shadow falls on the copies */receiveShadow?: boolean;+ /** the composition pass it draws in ("scene" by default) */pass?: string;/** the mesh form: a geometry and a material (MeshStandardMaterial, MeshPhysicalMaterial or MeshBasicMaterial).* The glTF form: MeshStandardMaterial children re-covering its materials, as on a Model */@@ -90,7 +97,9 @@ export function Instances(props: InstancesProps) {/** A box on the plan (x, z, metres): the room SDK's Footprint, or any { min, max }. */export interface PlanBox {+ /** the low corner (x, z), metres */min: [number, number];+ /** the high corner (x, z), metres */max: [number, number];}diff --git a/sdk/render/src/3d/look.tsx b/sdk/render/src/3d/look.tsxindex 18ae4879..3119735d 100644--- a/sdk/render/src/3d/look.tsx+++ b/sdk/render/src/3d/look.tsx@@ -135,14 +135,21 @@ export interface LookProps {/** One composition pass's own paint (<Look passes>): the frame's rag, grain and palette, and its surfaces' bands, torn* shadow edge, strokes, saturation and wash; what it leaves out is the Look's. */export interface LookPass {+ /** how far its edges wander, px (the Look's by default) */rag?: number;+ /** its paper grain, 0 to 1 */grain?: number;/** false: its pixels aren't snapped to the palette */palette?: boolean;+ /** how many flat tones the light makes on its surfaces, 1-8 */bands?: number;+ /** how far its cast shadows' edges tear, 0 to 0.5 */edge?: number;+ /** brush strokes on its surfaces, 0 to 1 */stroke?: number;+ /** its colour past (above 1) or toward grey (below 1) its own */saturate?: number;+ /** its textures' colour taken as their patch average, 0 to 1 */wash?: number;}@@ -281,10 +288,15 @@ export function Scene({ world }: SceneProps) {);}+export interface EntitiesProps {+ /** the game's world at this frame: anything with \`scene()\` giving its entities */+ world: { scene(): unknown[] };+}+/** A world's entities drawn by the engine (no React element per entity): every entity with a Mesh component ({shape:* a Manifold expression or a Solid's expr, color, roughness, metalness}) and a Transform ({x, y, z, rx, ry, rz in* radians, scale}) is a mesh, placed in world space (a child's Transform is in its parent's). Give it the world at the* frame: `<Entities world={game.at(useCurrentFrame())} />`. Needs the engine's tables. */-export function Entities({ world }: { world: { scene(): unknown[] } }) {+export function Entities({ world }: EntitiesProps) {return node3d("Entities", { scene: world.scene() });}diff --git a/sdk/render/src/3d/materials.tsx b/sdk/render/src/3d/materials.tsxindex c994f7fb..0a7c8d96 100644--- a/sdk/render/src/3d/materials.tsx+++ b/sdk/render/src/3d/materials.tsx@@ -131,6 +131,7 @@ export interface SurfaceShaderSpec {defs?: ShaderDefs;/** a <Material>'s own (FC2a): what its Material methods give, and its storage buffers; set by <Material> only */own?: OwnMaterialFields;+ /** the material's storage buffers by binding name; set by <Material> only */buffers?: Record<string, StorageValue>;}diff --git a/sdk/render/src/3d/model.tsx b/sdk/render/src/3d/model.tsxindex e5ab8f83..d12d94a3 100644--- a/sdk/render/src/3d/model.tsx+++ b/sdk/render/src/3d/model.tsx@@ -10,6 +10,7 @@ import { MeshStandardMaterialProps, PerspectiveCameraProps, Vec3, checkMaterial,/** What a light or camera holds: Bevy's own reflected components on it (<BevyComponent>, or a generated wrapper such* as bevy_light's ShadowFilteringMethod or bevy_pbr's ScreenSpaceReflections), applied through Bevy's TypeRegistry. */export interface BevyParts {+ /** Bevy components on it: <BevyComponent>, or a generated wrapper */children?: ReactNode;/** a camera: the render layers it draws ([0] by default); a light: the layers it lights (Bevy's RenderLayers) */layers?: number[];@@ -51,9 +52,11 @@ export function eulerOf(q: [number, number, number, number]): Vec3 {export interface EntityProps {/** what an Entity field elsewhere names it by (a ChildOf's parent, an observer's target); unique in the scene */name?: string;+ /** where it stands, metres (x, y, z) */position?: Vec3;/** Euler XYZ in radians */rotation?: Vec3;+ /** one number, or x, y and z */scale?: Vec3 | number;/** Bevy's Transform (Transform.fromXyz(..).withRotation(..)), in place of position, rotation and scale: the entity* is then a parent whose children (meshes, lights, models, other entities) move with it, as Bevy's ChildOf@@ -105,10 +108,17 @@ export interface GroupProps {}/** Moves, turns and scales everything inside it together (a product and its stand, a car and its wheels). */+export interface RefinishProps {+ /** the finishes, each a <MeshStandardMaterial>'s props, over every glTF material or the one its `material` names */+ materials: MeshStandardMaterialProps[];+ /** the models refinished */+ children?: ReactNode;+}+/** Every <Model> inside re-covered: each of its glTF materials (all, or the one each names by `material`) given the* colour, texture or finish each gives, the rest of it kept (a run of cabinets painted, the doors and drawers with them;* `map: null` takes the wood's picture off). A model's own <MeshStandardMaterial> children go first. */-export function Refinish({ materials, children }: { materials: MeshStandardMaterialProps[]; children?: ReactNode }) {+export function Refinish({ materials, children }: RefinishProps) {if (!Array.isArray(materials) || materials.length === 0) throw new TypeError("Refinish: materials is a list of MeshStandardMaterial props ([{ color: \"#8a9a7b\", map: null }])");const specs = materials.map((m) => {checkMaterial("Refinish", m as Record<string, unknown>);@@ -133,6 +143,7 @@ export function Group(props: GroupProps) {export interface ModelProps {/** a glTF file in the media folder: staticFile("models/shoe.glb") */src: string;+ /** the entity's name, for picking and the inspector */name?: string;/** how its own glTF textures are read (docs/shaders.feature SH5): { filter: "nearest" } for hard pixels, whatever* the file says; a <MeshStandardMaterial> child's maps take their own `sampler` */@@ -155,9 +166,11 @@ export interface ModelProps {* a ragdoll's bodies move one skin that bends at its joints rather than rigid pieces. The model's own placement* stays at the origin. */bones?: Record<string, string>;+ /** where it stands, metres (x, y, z) */position?: Vec3;/** radians */rotation?: Vec3;+ /** one number, or x, y and z */scale?: number | Vec3;/** it may pass through other parts on purpose (a blade into a body, a ghost through a wall): raea's clipping* check leaves it out */@@ -195,6 +208,7 @@ export interface ModelProps {morphs?: Record<string, number> | number[];/** seconds into the clip (by default the Sequence's time: frame / fps); the clip loops unless loop={false} */time?: number;+ /** false plays the clip once and holds its last pose */loop?: boolean;/** which of the file's scenes (0 by default) */scene?: number;@@ -218,6 +232,7 @@ export interface ModelProps {theme?: "dark" | "light";/** the site look's ink: lift + light * gain, before the dither (0.28 and 0.9 by default; on the light greys light is inverted, 0.35 and 0.75) */lift?: number;+ /** the site look's ink gain: lift + light * gain (0.9 by default, 0.75 on the light greys) */gain?: number;/** <MeshToonMaterial> children: toon surfaces over the model's own materials (all of them, or one each by name);* <MeshStandardMaterial> children: its materials (all, or one each by `material`) given the colour, texture or@@ -347,13 +362,17 @@ export function Model(props: ModelProps) {export interface ImagePlaneProps {/** a picture in the media folder: staticFile("poster.png") */src: string;+ /** the entity's name, for picking and the inspector */name?: string;/** width in scene units (1 by default); height follows the picture unless given */width?: number;+ /** in scene units (follows the picture's shape by default) */height?: number;+ /** where its centre stands, metres (x, y, z) */position?: Vec3;/** radians */rotation?: Vec3;+ /** one number, or x, y and z */scale?: number | Vec3;/** a turn as a quaternion [x, y, z, w], instead of `rotation` (a card turned to face a point) */quaternion?: [number, number, number, number];diff --git a/sdk/render/src/3d/phase.tsx b/sdk/render/src/3d/phase.tsxindex b725375d..54ff70e7 100644--- a/sdk/render/src/3d/phase.tsx+++ b/sdk/render/src/3d/phase.tsx@@ -4,17 +4,27 @@ import { BevyComponent, Entity } from "./all";import { assetPath } from "./materials";/** A vertex attribute: Bevy's VertexFormat by name, its byte offset in a vertex and its shader @location. */-export interface PhaseAttribute { format: "Float32" | "Float32x2" | "Float32x3" | "Float32x4" | "Uint32" | "Uint32x2" | "Uint32x3" | "Uint32x4" | "Sint32" | "Sint32x2" | "Sint32x3" | "Sint32x4" | "Unorm8x4"; offset: number; location: number }+export interface PhaseAttribute {+ /** the attribute's VertexFormat, by name */+ format: "Float32" | "Float32x2" | "Float32x3" | "Float32x4" | "Uint32" | "Uint32x2" | "Uint32x3" | "Uint32x4" | "Sint32" | "Sint32x2" | "Sint32x3" | "Sint32x4" | "Unorm8x4";+ /** its byte offset in a vertex */+ offset: number;+ /** its shader @location */+ location: number;+}export interface PhaseItemProps {/** the shader file, compiled as written: staticFile("shaders/x.wesl") */shader: string;/** its entry points (Bevy's default names) */vertex?: string;+ /** the fragment entry point's name */fragment?: string;/** the vertex buffer: each vertex `stride` bytes, its 32-bit words in order (a u32 pad of 0 is a 0) */stride: number;+ /** the vertex buffer's attributes */attributes: PhaseAttribute[];+ /** the vertex buffer's 32-bit words, every vertex's in order */words: number[];/** the index buffer (u32), drawn whole */indices: number[];@@ -53,6 +63,7 @@ export interface MeshPassProps {shader: string;/** its entry points (Bevy's default names) */vertex?: string;+ /** the fragment entry point's name */fragment?: string;/** whether it tests and writes the view's depth (GreaterEqual), as a mesh in Bevy's opaque phase does (Bevy's* shader_advanced/specialized_mesh_pipeline); without, it draws over everything */diff --git a/sdk/render/src/3d/post.tsx b/sdk/render/src/3d/post.tsxindex b1c59b42..7b295b0f 100644--- a/sdk/render/src/3d/post.tsx+++ b/sdk/render/src/3d/post.tsx@@ -84,7 +84,9 @@ export interface DepthOfFieldProps {/** Bevy's fields, as Bevy's DepthOfField component on a Camera3d (inside it), Bevy's defaults: the distance in focus* (10; the camera's `focus`), the f-number (1), the largest blur in pixels (64), "Bokeh" or "Gaussian" */focal_distance?: number;+ /** the f-number (1): lower is a shallower focus */aperture_f_stops?: number;+ /** the largest blur, in px (64) */max_circle_of_confusion_diameter?: number;}@@ -160,6 +162,7 @@ export interface FisheyeProps extends LensCommon {export interface LensDistortionProps extends LensCommon {/** Brown-Conrady: r' = r (1 + k1 r^2 + k2 r^4), r a share of the half-diagonal. Above 0 barrel, below 0 pincushion */k1?: number;+ /** the r^4 term of the distortion */k2?: number;/** by default just enough for a barrel's corners to stay inside the picture (1 for pincushion) */zoom?: number;@@ -198,6 +201,7 @@ export interface MotionBlurProps {shutterAngle?: number;/** samples each way per pixel (4 by default) */samples?: number;+ /** declared animation of its numbers */animate?: Animate3d;}diff --git a/sdk/render/src/3d/shapes.tsx b/sdk/render/src/3d/shapes.tsxindex 4f9ab79e..d4f4aab0 100644--- a/sdk/render/src/3d/shapes.tsx+++ b/sdk/render/src/3d/shapes.tsx@@ -31,22 +31,54 @@ export function Canvas3D(props: Canvas3DProps) {}// Geometries. Each knows its Manifold expression; the defaults are unit sizes.-export interface BoxProps { args?: [number, number, number] }+export interface BoxProps {+ /** width, height and depth in metres ([1, 1, 1]) */+ args?: [number, number, number];+}/** Bevy's Cuboid: half its size along each axis ([0.5, 0.5, 0.5], a 1 m cube, as Bevy's default). */-export interface CuboidProps { half_size?: [number, number, number] }+export interface CuboidProps {+ /** half its size along x, y and z, metres ([0.5, 0.5, 0.5]) */+ half_size?: [number, number, number];+}/** `args`, or Bevy's Sphere field: radius (0.5 by Bevy's default). Its mesh is Bevy's Sphere::mesh(): an icosphere of 5* subdivisions, or `ico` of them (Bevy's `.ico(n)`, 0 to 80), or a UV sphere of `uv` = [sectors, stacks] (`.uv(s, t)`). */-export interface SphereProps { args?: [number]; radius?: number; ico?: number; uv?: [number, number] }+export interface SphereProps {+ /** [radius], as three.js's args */+ args?: [number];+ /** metres (0.5) */+ radius?: number;+ /** an icosphere of this many subdivisions (5 by default; 0 to 80) */+ ico?: number;+ /** a UV sphere instead: [sectors, stacks] */+ uv?: [number, number];+}-export interface PlaneProps { args?: [number, number] }+export interface PlaneProps {+ /** width and height in metres ([1, 1]) */+ args?: [number, number];+}/** `args`, or Bevy's Cylinder fields: radius and half_height (0.5 each by Bevy's default). */-export interface CylinderProps { args?: [number, number, number]; radius?: number; half_height?: number }+export interface CylinderProps {+ /** [radius top, radius bottom, height], as three.js's args */+ args?: [number, number, number];+ /** metres (0.5) */+ radius?: number;+ /** half its height, metres (0.5) */+ half_height?: number;+}/** `args`, or Bevy's Torus fields: major_radius (0.75) and minor_radius (0.25), the tube's. */-export interface TorusProps { args?: [number, number]; major_radius?: number; minor_radius?: number }+export interface TorusProps {+ /** [major radius, minor radius] */+ args?: [number, number];+ /** from the centre to the middle of the tube, metres (0.75) */+ major_radius?: number;+ /** the tube's radius, metres (0.25) */+ minor_radius?: number;+}const list = (ns: number[]) => ns.map((n) => String(n)).join(", ");@@ -102,7 +134,7 @@ function geometry<P extends { args?: number[] }>(name: string, defaults: number[export const Box = /* @__PURE__ */ geometry<BoxProps>("Box", [1, 1, 1], (a) => `box(${list(a)})`);/** Bevy's Cuboid: `<Cuboid half_size={[1, 0.5, 1]} />` is a Box of args [2, 1, 2]. */-const CuboidShape = /* @__PURE__ */ geometry<CuboidProps & { args?: [number, number, number] }>("Box", [1, 1, 1], (a) => `box(${list(a)})`, { keys: ["half_size"], args: (p) => (p.half_size ?? [0.5, 0.5, 0.5]).map((h) => 2 * h) }, "Cuboid");+const CuboidShape = /* @__PURE__ */ geometry<CuboidProps & Pick<BoxProps, "args">>("Box", [1, 1, 1], (a) => `box(${list(a)})`, { keys: ["half_size"], args: (p) => (p.half_size ?? [0.5, 0.5, 0.5]).map((h) => 2 * h) }, "Cuboid");/** Bevy's Cuboid::from_size: the fields for a cuboid of that whole size, `<Cuboid {...Cuboid.fromSize(size)} />`. */function fromSize(size: [number, number, number]): Required<CuboidProps> {@@ -135,7 +167,12 @@ export const Plane = /* @__PURE__ */ geometry<PlaneProps>("Plane", [1, 1], (a) =/** Bevy's Plane3d: a flat rectangle facing `normal` (Bevy's default +Y, a floor), `half_size` its half extent along* its two axes ([0.5, 0.5]), laid out as Bevy's PlaneMeshBuilder does: facing +Z it is a Plane of args* [2 x half_size]. The normal is along an axis; a tilted plane is a rotated Mesh3d. */-export interface Plane3dProps { normal?: Vec3; half_size?: [number, number] }+export interface Plane3dProps {+ /** the way it faces, along an axis (+Y by default, a floor) */+ normal?: Vec3;+ /** half its extent along its two axes, metres ([0.5, 0.5]) */+ half_size?: [number, number];+}// Bevy turns the +Y plane (half_size x along x, y along -z) to its normal by the shortest arc; along an axis that// leaves its two sizes on these axes. Facing z it is the old Plane exactly; facing x or y a Box with no depth.@@ -178,18 +215,37 @@ export const Cylinder = /* @__PURE__ */ geometry<CylinderProps>("Cylinder", [1,/** Bevy's ConicalFrustum: a cylinder whose ends differ, radius_top and radius_bottom (Bevy's 0.25 and 0.5) and its* height (0.5), standing up: a tapered Cylinder of args [radius_top, radius_bottom, height]. */-export interface ConicalFrustumProps { radius_top?: number; radius_bottom?: number; height?: number; args?: [number, number, number] }+export interface ConicalFrustumProps {+ /** the top end's radius, metres (0.25) */+ radius_top?: number;+ /** the bottom end's radius, metres (0.5) */+ radius_bottom?: number;+ /** metres (0.5) */+ height?: number;+ /** [radius_top, radius_bottom, height] */+ args?: [number, number, number];+}export const ConicalFrustum = /* @__PURE__ */ geometry<ConicalFrustumProps>("Cylinder", [0.25, 0.5, 0.5], (a) => `rotate(cone(${list([a[1], a[0], a[2]])}), -90, 0, 0)`, { keys: ["radius_top", "radius_bottom", "height"], args: (p) => [p.radius_top ?? 0.25, p.radius_bottom ?? 0.5, p.height ?? 0.5] }, "ConicalFrustum");export const Torus = /* @__PURE__ */ geometry<TorusProps>("Torus", [1, 0.4], (a) => `torus(${list(a)})`, { keys: ["major_radius", "minor_radius"], args: (p) => [p.major_radius ?? 0.75, p.minor_radius ?? 0.25] });-export interface ConeProps { args?: [number, number]; radius?: number; height?: number }+export interface ConeProps {+ /** [radius, height] */+ args?: [number, number];+ /** the base's radius, metres (0.5) */+ radius?: number;+ /** metres (1) */+ height?: number;+}/** A cone: [radius, height], its point up (along y). */export const Cone = /* @__PURE__ */ geometry<ConeProps>("Cone", [0.5, 1], (a) => `rotate(cone(${list([a[0], 0, a[1]])}), -90, 0, 0)`, { keys: ["radius", "height"], args: (p) => [p.radius ?? 0.5, p.height ?? 1] });-export interface CapsuleProps { args?: [number, number] }+export interface CapsuleProps {+ /** [radius, length of the straight part] ([0.5, 1]) */+ args?: [number, number];+}/** A capsule (Bevy's Capsule3d, three.js's CapsuleGeometry): [radius, length of the straight part], standing up* (along y); its whole height is length + 2 x radius. A character's stand-in, a pill, a collider's look.@@ -197,7 +253,14 @@ export interface CapsuleProps { args?: [number, number] }export const Capsule = /* @__PURE__ */ geometry<CapsuleProps>("Capsule", [0.5, 1], (a) => `hull(move(sphere(${a[0]}), 0, ${a[1] / 2}, 0), move(sphere(${a[0]}), 0, ${-a[1] / 2}, 0))`);/** Bevy's Capsule3d: radius and half_length, the straight part's half (0.5 each by Bevy's default), standing up. */-export interface Capsule3dProps { radius?: number; half_length?: number; args?: [number, number] }+export interface Capsule3dProps {+ /** metres (0.5) */+ radius?: number;+ /** half the straight part's length, metres (0.5) */+ half_length?: number;+ /** [radius, length of the straight part] */+ args?: [number, number];+}export const Capsule3d = /* @__PURE__ */ geometry<Capsule3dProps>("Capsule", [0.5, 1], (a) => `hull(move(sphere(${a[0]}), 0, ${a[1] / 2}, 0), move(sphere(${a[0]}), 0, ${-a[1] / 2}, 0))`, { keys: ["radius", "half_length"], args: (p) => [p.radius ?? 0.5, 2 * (p.half_length ?? 0.5)] }, "Capsule3d");@@ -270,12 +333,15 @@ export function BufferMesh(props: BufferMeshProps) {export interface Text3DProps {/** the words, extruded */children?: string;+ /** the words, when they aren't its child (no quotes or backslashes) */text?: string;/** letter height in scene units (default 0.5) */size?: number;/** extrusion depth (default 0.2) */depth?: number;+ /** a family (Inter by default, or another of raea's bundled faces) */font?: string;+ /** 100..900 (800 by default) */weight?: number;}diff --git a/sdk/render/src/3d/sprite.tsx b/sdk/render/src/3d/sprite.tsxindex 341332c7..ff9d2a43 100644--- a/sdk/render/src/3d/sprite.tsx+++ b/sdk/render/src/3d/sprite.tsx@@ -8,8 +8,11 @@ import { usePointer2d, type Flat, type PointerHandlers3d } from "../events3d";/** Where a 2D part is: composition px from the frame's top left, y down (as the page's), its centre there; and its* pointer and drag handlers, called as a 3D part's are (2D parts are picked first, the top one by z). */export interface Place2dProps extends PointerHandlers3d {+ /** the entity's name, for picking, the inspector and world.* */name?: string;+ /** px from the frame's left edge to the part's centre */x?: number;+ /** px from the frame's top edge to the part's centre, down positive */y?: number;/** radians, clockwise (as CSS rotate) */rotation?: number;@@ -30,6 +33,7 @@ export interface SpriteProps extends Place2dProps {src: string;/** size in px (the picture's, or one cell's, by default); one given, the other follows the picture's shape */width?: number;+ /** in px; given alone, the width follows the picture's shape */height?: number;/** a sprite sheet: the picture is `[columns, rows]` cells of equal size, read left to right, top to bottom */grid?: [number, number];@@ -38,7 +42,9 @@ export interface SpriteProps extends Place2dProps {atlasPick?: number;/** with `grid`: which cell shows (0 is the top left); animate it to play the sheet: frame={Math.floor(f / 3)} */frame?: number;+ /** mirrored left to right */flipX?: boolean;+ /** mirrored top to bottom */flipY?: boolean;/** a tint multiplied over the picture (white by default) */color?: string;@@ -46,7 +52,9 @@ export interface SpriteProps extends Place2dProps {* stretching to it, a tile every `tileStretch` x the picture's size (1 by default): a floor, a fence, a wall. Animate* width and height to show more or fewer tiles */tileX?: boolean;+ /** tile the picture down its height instead of stretching it */tileY?: boolean;+ /** a tile every this many times the picture's size (1) */tileStretch?: number;/** Bevy's SpriteImageMode, as its reflected value: "Auto" (stretched to the size), { Scale: "FillCenter" } (and* FillStart, FillEnd, FitCenter, FitStart, FitEnd: the picture kept to its shape, cropped or fitted), { Sliced:@@ -127,6 +135,7 @@ export interface Shape2DProps extends Place2dProps {shape?: "rect" | "circle" | "ellipse" | "triangle" | "polygon";/** [width, height] in px ([100, 100] by default); a circle's and a polygon's diameter is the width */size?: [number, number];+ /** a polygon's number of sides (5) */sides?: number;/** a CSS colour (white by default); with a texture, it tints it */color?: string;diff --git a/sdk/render/src/3d/text.tsx b/sdk/render/src/3d/text.tsxindex c8559f61..0a0a780c 100644--- a/sdk/render/src/3d/text.tsx+++ b/sdk/render/src/3d/text.tsx@@ -8,13 +8,17 @@ import { Vec3, checkVec, node3d } from "./all";// ---- text in the 3D world (docs/ts-native.feature P19) ----export interface SpanProps {+ /** the run's text */children?: ReactNode;/** a family (raea's bundled faces: Inter, Montserrat, Oswald, Playfair Display...; or one on this machine) */font?: string;+ /** 100..900 (the block's by default) */weight?: number;+ /** slanted (the block's by default) */italic?: boolean;/** times the block's size */size?: number;+ /** the run's colour (the block's by default) */color?: string;}@@ -29,12 +33,15 @@ export interface GlyphInfo {index: number;/** how many glyphs the block has */count: number;+ /** the character it draws */char: string;/** its word's place among the words, from 0, and how many there are */word: number;+ /** how many words the block has */words: number;/** its place in its word, and the word's glyph count */inWord: number;+ /** how many glyphs its word has */wordLength: number;/** its line (by the newlines in the text), from 0 */line: number;@@ -49,9 +56,13 @@ export interface GlyphStyle {position?: Vec3;/** radians, XYZ */rotation?: Vec3;+ /** multiplies its size: one number, or x, y and z */scale?: number | Vec3;+ /** replaces its colour */color?: string;+ /** multiplies its opacity, 0..1 */opacity?: number;+ /** false hides it this frame */visible?: boolean;}@@ -62,13 +73,19 @@ export interface RichTextProps {* <Outline skip>, <Bloom skip>, <Grade skip>) leaves its pixels as drawn, and <Look passes> gives one its own paint;* a piece names at most three passes besides "scene"; keyed per frame */pass?: string;+ /** where the block's origin is, metres (x, y, z) */position?: Vec3;+ /** the block's rotation, radians (x, y, z) */rotation?: Vec3;+ /** the block's scale: one number, or x, y and z */scale?: number | Vec3;/** the em in metres (0.5 by default) */size?: number;+ /** a family (raea's bundled faces: Inter by default, Montserrat, Oswald, Playfair Display...; or one on this machine) */font?: string;+ /** 100..900 (700 by default) */weight?: number;+ /** slanted (false by default) */italic?: boolean;/** each glyph's colour unless its <Span> gives one */color?: string;@@ -79,14 +96,21 @@ export interface RichTextProps {lineHeight?: number;/** wrapped at this width in metres (no wrapping by default) */maxWidth?: number;+ /** 0..1, smooth to matte */roughness?: number;+ /** 0..1, a dielectric to a metal */metalness?: number;+ /** the colour it glows with */emissive?: string;+ /** how strongly it glows (1 by default; 2-10 with bloom) */emissiveIntensity?: number;+ /** drawn in its flat colour, without light or shade */unlit?: boolean;/** letter-shaped shadows (true by default) */castShadow?: boolean;+ /** other things' shadows fall on it */receiveShadow?: boolean;+ /** the render layers it's on ([0] by default): a camera draws only the layers it's given */layers?: number[];/** each glyph's (or word's) entrance: a move's name, a move or several (rise, pop, slam, slide, fade... the 2D ones,* their px read at 100 an em, their degrees as degrees), `each` frames apart from `at` */@@ -95,8 +119,11 @@ export interface RichTextProps {each?: number;/** the entrance and exit staggered by letter (default) or by word */by?: "letter" | "word";+ /** the local frame the first entrance starts (0) */at?: number;+ /** each glyph's (or word's) exit: a move or its name, played backwards from `exitAt` */exit?: MoveLike;+ /** the local frame the first exit starts; an exit needs it */exitAt?: number;/** frames between exits (0: together) */exitEach?: number;@@ -104,6 +131,7 @@ export interface RichTextProps {reveal?: number;/** each glyph's own motion this frame, from anything the frame gives (useCurrentFrame, spring, interpolate) */glyph?: (g: GlyphInfo) => GlyphStyle;+ /** the text: strings and <Span> runs */children?: ReactNode;}diff --git a/sdk/render/src/3d/three-shader.tsx b/sdk/render/src/3d/three-shader.tsxindex b19801c9..d44019a1 100644--- a/sdk/render/src/3d/three-shader.tsx+++ b/sdk/render/src/3d/three-shader.tsx@@ -23,11 +23,17 @@ export interface ThreeShaderMaterialProps {/** "display": its colour is what three's canvas shows (a ShaderMaterial's); "linear": scene light, tone-mapped as* the rest of the frame is (a node material's) */output?: "display" | "linear";+ /** blended over what's behind it, as three's \`transparent\` */transparent?: boolean;+ /** how it blends: normal, additive (add), multiply or none */blending?: "normal" | "additive" | "add" | "multiply" | "none";+ /** which faces draw: front, back or double */side?: "front" | "back" | "double";+ /** it writes the depth buffer */depthWrite?: boolean;+ /** it's hidden behind what's nearer */depthTest?: boolean;+ /** pixels less opaque than this are dropped */alphaTest?: number;/** three's clock this frame: [seconds, delta, frame] */time?: [number, number, number];diff --git a/sdk/render/src/3d/volumetric.tsx b/sdk/render/src/3d/volumetric.tsxnew file mode 100644index 00000000..9a076daa--- /dev/null+++ b/sdk/render/src/3d/volumetric.tsx@@ -0,0 +1,102 @@+// Volumetric fog: light in the air, drawn inside every <FogVolume>.+import { Vec3, assetPath, checkVec, colours, node3d } from "./all";++export interface VolumetricFogProps {+ /** mode="march": samples along each ray through a fog volume (64 by default): too few stair-step a shaft's edges, so 128 for a+ * render with hard-edged shafts, or 32 with `dither`; about 0.1 ms a step at 1920x1080 on an M5 Pro */+ steps?: number;+ /** mode="march": start each pixel's march a fraction of a step in, by a fixed noise seeded from the pixel and the frame number+ * (false by default): the shafts' steps become fine grain instead of bands, so fewer steps look smooth. The noise+ * is a function of the frame, so a render still equals its play */+ dither?: boolean;+ /** mode="march": the fraction of the frame's resolution the fog is marched at (1 by default): 0.5 marches a quarter of the+ * pixels and puts the result over the frame guided by depth, so an edge in front of a shaft keeps no fog from+ * what's behind it. 0.5, 1/3 or 0.25; each frame on its own, so a render still equals its play */+ resolution?: number;+ /** light the fog has everywhere, lit or not (0 by default). Bevy lights a volume's whole box with it whatever its+ * density, so the box's edges show: keep it 0, or small with the camera inside the volume */+ ambient?: number;+ /** that light's colour (white by default) */+ ambientColor?: string;+ /** how the fog is drawn: "froxel" (the default: every volume written into one grid of cells along the view, lit+ * once a cell and integrated front to back once, with the `hero` lights' shafts integrated exactly along epipolar lines: no+ * steps, no dither, its cost the grid's whatever the resolution or the number of volumes, overlapping volumes mixed+ * as one medium, see-through surfaces fogged at their own depth) or "march" (Bevy's ray march through each+ * volume, as before). `steps`, `dither` and `resolution` are the march's; `slices`, `tile`, `samples` and `hero`+ * the grid's */+ mode?: "march" | "froxel";+ /** the grid's cells along the view, spaced evenly in log depth from the camera to the farthest volume (64 by+ * default; 32 to 256) */+ slices?: number;+ /** the grid's cells across the frame, in pixels a side (16 by default; 4, 8 or 16) */+ tile?: number;+ /** points lit in each cell, spread along its depth (1 by default; 1 to 8): more keeps thin shadows in the+ * grid's soft light (a hero light's shafts don't need them) */+ samples?: number;+ /** the grid's shafts: true (the default) integrates the first two volumetric spot lights and the first two+ * volumetric directional lights exactly, over their shadow maps texel by texel, so a blind's bars or a doorway's+ * edge are as crisp as the shadow map: integrated at samples along lines from the light across the frame (Chen et+ * al.'s epipolar sampling), more of them where the depth or the light changes, and each pixel read from the+ * samples either side of it at its depth; false lights them in the grid's cells with the rest */+ hero?: boolean;+}++/** Volumetric fog on the camera: light in the air, drawn inside every <FogVolume>, with shafts from the lights marked+ * `volumetric`. Put it inside the Canvas3D, once; without it fog volumes draw nothing.+ * @bevy bevy_light::volumetric::VolumetricFog+ * @bevy bevy_light::volumetric::VolumetricLight */+export function VolumetricFog(props: VolumetricFogProps) {+ if (props.steps !== undefined && !(Number.isInteger(props.steps) && props.steps >= 1 && props.steps <= 256)) throw new RangeError(`VolumetricFog: steps must be a whole number from 1 to 256, got ${props.steps}`);+ if (props.dither !== undefined && typeof props.dither !== "boolean") throw new TypeError(`VolumetricFog: dither must be true or false, got ${JSON.stringify(props.dither)}`);+ if (props.resolution !== undefined && !(props.resolution > 0 && props.resolution <= 1 && [1, 2, 3, 4].some((k) => Math.abs(props.resolution! * k - 1) < 1e-6))) throw new RangeError(`VolumetricFog: resolution must be 1, 0.5, 1/3 or 0.25, got ${props.resolution}`);+ if (props.ambient !== undefined && !(props.ambient >= 0)) throw new RangeError(`VolumetricFog: ambient must be 0 or more, got ${props.ambient}`);+ if (props.mode !== undefined && !["march", "froxel"].includes(props.mode)) throw new RangeError(`VolumetricFog: mode must be "march" or "froxel", got ${JSON.stringify(props.mode)}`);+ if (props.slices !== undefined && !(Number.isInteger(props.slices) && props.slices >= 32 && props.slices <= 256)) throw new RangeError(`VolumetricFog: slices must be a whole number from 32 to 256, got ${props.slices}`);+ if (props.tile !== undefined && ![4, 8, 16].includes(props.tile)) throw new RangeError(`VolumetricFog: tile must be 4, 8 or 16, got ${props.tile}`);+ if (props.samples !== undefined && !(Number.isInteger(props.samples) && props.samples >= 1 && props.samples <= 8)) throw new RangeError(`VolumetricFog: samples must be a whole number from 1 to 8, got ${props.samples}`);+ return node3d("VolumetricFog", colours("VolumetricFog", props as Record<string, unknown>, ["ambientColor"]));+}++export interface FogVolumeProps {+ /** parts are matched by name across frames: name a volume that comes and goes */+ name?: string;+ /** the box's centre */+ position?: Vec3;+ /** radians */+ rotation?: Vec3;+ /** the box's size in metres: one number for a cube, or [x, y, z] (1 by default) */+ scale?: number | Vec3;+ /** how thick the air is (0.1 by default: dusty; 0.02 a faint haze; 0.5 smoke). Animate it to let dust settle,+ * smoke roll in or a volume vanish (0) */+ density?: number;+ /** the fog's own colour, what light scattering out of it takes on (white by default; a dark red for blood in the+ * air) */+ color?: string;+ /** how much light it swallows (0.3 by default): higher reads as soot or smoke */+ absorption?: number;+ /** how much light it throws back toward the eye (0.3 by default): higher reads as bright dust or mist */+ scattering?: number;+ /** how far forward it scatters, -1 to 1 (0.5 by default): near 1 the shafts glow when you look toward the light */+ anisotropy?: number;+ /** how fast it thins going up, per metre from the box's floor (0 by default: even throughout): 0.5 is a ground+ * fog that's a third as thick two metres up. A box wide and tall with a falloff is height fog. Only+ * <VolumetricFog mode="froxel"> draws it; the march draws the box evenly */+ falloff?: number;+ /** Bevy's density_texture: a 3D .ktx2 image in the media folder whose values scale the density through the box (a+ * cloud, a bunny of smoke); the box draws evenly without one. Only the march draws it */+ density_texture?: string;+}++/** A box of air that light shows in: dust in a sunbeam, smoke, a haze of blood. Needs a <VolumetricFog> in the+ * Canvas3D; lights marked `volumetric` throw shafts through it, and every light's glow fills it softly. A part, so it+ * keeps its name across frames: animate its density, colour and placement.+ * @bevy bevy_light::volumetric::FogVolume */+export function FogVolume(props: FogVolumeProps) {+ for (const k of ["position", "rotation"] as const) if (props[k] !== undefined) checkVec("FogVolume", k, props[k]);+ if (props.density !== undefined && !(props.density >= 0 && Number.isFinite(props.density))) throw new RangeError(`FogVolume: density must be 0 or more, got ${props.density}`);+ if (props.anisotropy !== undefined && !(props.anisotropy > -1 && props.anisotropy < 1)) throw new RangeError(`FogVolume: anisotropy must be between -1 and 1, got ${props.anisotropy}`);+ const tex = props.density_texture;+ if (tex !== undefined && !(typeof tex === "string" && /\.ktx2$/i.test(tex))) throw new TypeError(`FogVolume: density_texture is a 3D .ktx2 image, got ${JSON.stringify(tex)}`);+ if (props.falloff !== undefined && !(props.falloff >= 0 && Number.isFinite(props.falloff))) throw new RangeError(`FogVolume: falloff must be 0 or more, got ${props.falloff}`);+ return node3d("FogVolume", colours("FogVolume", (tex === undefined ? props : { ...props, density_texture: assetPath(tex) }) as Record<string, unknown>, ["color"]));+}diff --git a/sdk/render/src/bevy3d.tsx b/sdk/render/src/bevy3d.tsxindex dc1a9aab..1aed2bac 100644--- a/sdk/render/src/bevy3d.tsx+++ b/sdk/render/src/bevy3d.tsx@@ -28,7 +28,8 @@ export { Hdr } from "./bevy3d/core";// Lightmap (bevy_pbr::lightmap): a bake on a <Model>'s glTF meshes by name (docs/control.feature FC0a)export { Lightmap, type LightmapProps } from "./bevy3d/lightmap";// bevy_ui's Node, Text and TextSpan, and their values, drawn by the page-export { Node, GhostNode, Text, TextSpan, TextShadow, Text2d, UiScale, Viewport, UiTargetCamera, FontVariationTag, type NodeProps, type TextProps, type TextStyleProps, type TextRunProps, type Text2dProps } from "./bevy3d/ui";+export { Node, GhostNode, Text, TextSpan, TextShadow, Text2d, FontVariationTag, type NodeProps, type TextProps, type TextStyleProps, type TextRunProps, type Text2dProps } from "./bevy3d/ui";+export { UiScale, Viewport, UiTargetCamera, type UiScaleProps, type ViewportProps, type UiTargetCameraProps } from "./bevy3d/ui-roots";export { UiTexture, targetImage } from "./bevy3d/ui-texture";export { EditableText, type EditableTextProps, type TextCursorStyle } from "./bevy3d/ui-edit";export { ImageNode, InlineImage, ImagePlugin, TextureAtlasLayout, type TextureSlicer, type SliceScaleMode, type ImageNodeProps } from "./bevy3d/ui-image";diff --git a/sdk/render/src/bevy3d/all.ts b/sdk/render/src/bevy3d/all.tsindex fbf67311..68863ed4 100644--- a/sdk/render/src/bevy3d/all.ts+++ b/sdk/render/src/bevy3d/all.ts@@ -3,6 +3,7 @@export * from "./core";export * from "./colors";export * from "./procedural";+export * from "./extensions";export * from "./materials";export * from "./material";export * from "./lights";diff --git a/sdk/render/src/bevy3d/colors.ts b/sdk/render/src/bevy3d/colors.tsindex 56af461c..99146028 100644--- a/sdk/render/src/bevy3d/colors.ts+++ b/sdk/render/src/bevy3d/colors.ts@@ -11,9 +11,10 @@ const srgbToLinear = (c: number) => (c <= 0.04045 ? c / 12.92 : Math.pow((c + 0.const linearToSrgb = (c: number) => (c <= 0.0031308 ? c * 12.92 : 1.055 * Math.pow(c, 1 / 2.4) - 0.055);-/** Bevy's Srgba: gamma-encoded colour, each channel 0..1. */+/** Bevy's Srgba: gamma-encoded colour, each channel 0..1. @bevy bevy_color::srgba::Srgba */export class Srgba {[MADE_FROM]?: MadeFrom;+ /** sRGB red, green, blue and alpha, each 0 to 1. */constructor(public red: number, public green: number, public blue: number, public alpha = 1) {}/** Bevy's Srgba::hex: rgb, rgba, rrggbb or rrggbbaa (the # optional), and also rgb() or a common name */static hex(hex: string): Srgba {@@ -41,6 +42,7 @@ export class Srgba {lighter(amount: number): Srgba {return LinearRgba.from(this).lighter(amount).to_srgba();}+ /** The same colour with this alpha. */with_alpha(alpha: number): Srgba {const s = new Srgba(this.red, this.green, this.blue, alpha);s[MADE_FROM] = this[MADE_FROM];@@ -68,10 +70,12 @@ export function baseOf(c: string | Srgba | undefined): { color: string; alpha: nreturn { color: "#" + byte(c.red) + byte(c.green) + byte(c.blue), alpha: c.alpha };}-/** Bevy's LinearRgba: linear light, which a StandardMaterial's emissive is; a channel past 1 is brighter than white. */+/** Bevy's LinearRgba: linear light, which a StandardMaterial's emissive is; a channel past 1 is brighter than white. @bevy bevy_color::linear_rgba::LinearRgba */export class LinearRgba {[MADE_FROM]?: MadeFrom;+ /** Linear red, green, blue (above 1 for brighter than white) and alpha. */constructor(public red: number, public green: number, public blue: number, public alpha = 1) {}+ /** An opaque linear colour. */static rgb(red: number, green: number, blue: number): LinearRgba {return new LinearRgba(red, green, blue);}diff --git a/sdk/render/src/bevy3d/colorspaces.ts b/sdk/render/src/bevy3d/colorspaces.tsindex 8c1eb295..8d59fef1 100644--- a/sdk/render/src/bevy3d/colorspaces.ts+++ b/sdk/render/src/bevy3d/colorspaces.ts@@ -12,9 +12,11 @@ type Rgb = LinearRgba | Srgba;const linearOf = (c: Rgb): LinearRgba => (c instanceof LinearRgba ? c : LinearRgba.from(c));const srgbaOf = (c: Rgb): Srgba => (c instanceof Srgba ? c : c.to_srgba());-/** Bevy's Oklaba: perceptual lightness and two opponent axes. */+/** Bevy's Oklaba: perceptual lightness and two opponent axes. @bevy bevy_color::oklaba::Oklaba */export class Oklaba {+ /** Perceptual lightness, a (green to red), b (blue to yellow) and alpha. */constructor(public lightness: number, public a: number, public b: number, public alpha = 1) {}+ /** The same colour from an Srgba, LinearRgba or Oklcha. */static from(c: Rgb | Oklcha): Oklaba {if (c instanceof Oklcha) {const h = f((c.hue * Math.PI) / 180);@@ -26,6 +28,7 @@ export class Oklaba {const s = f(Math.cbrt(f(f(f(0.08830246 * r) + f(0.28171885 * g)) + f(0.6299787 * b))));return new Oklaba(f(f(f(0.21045426 * l) + f(0.7936178 * m)) - f(0.004072047 * s)), f(f(f(1.9779985 * l) - f(2.4285922 * m)) + f(0.4505937 * s)), f(f(f(0.025904037 * l) + f(0.78277177 * m)) - f(0.80867577 * s)), alpha);}+ /** The same colour as a LinearRgba. */to_linear(): LinearRgba {const { lightness: L, a, b } = this;const l = f(f(L + f(0.39633778 * a)) + f(0.21580376 * b)) ** 3;@@ -33,28 +36,35 @@ export class Oklaba {const s = f(f(L - f(0.08948418 * a)) - f(1.2914855 * b)) ** 3;return new LinearRgba(f(4.0767417 * l - 3.3077116 * m + 0.23096994 * s), f(-1.268438 * l + 2.6097574 * m - 0.34131938 * s), f(-0.0041960863 * l - 0.7034186 * m + 1.7076147 * s), this.alpha);}+ /** The same colour as an Srgba. */to_srgba(): Srgba {return this.to_linear().to_srgba();}+ /** The colour `t` (0 to 1) of the way to `o`, mixed in this space. */mix(o: Oklaba, t: number): Oklaba {return new Oklaba(lerp(this.lightness, o.lightness, t), lerp(this.a, o.a, t), lerp(this.b, o.b, t), lerp(this.alpha, o.alpha, t));}}-/** Bevy's Oklcha: Oklab's lightness, chroma and hue (degrees). */+/** Bevy's Oklcha: Oklab's lightness, chroma and hue (degrees). @bevy bevy_color::oklcha::Oklcha */export class Oklcha {+ /** Perceptual lightness, chroma, hue in degrees and alpha. */constructor(public lightness: number, public chroma: number, public hue: number, public alpha = 1) {}+ /** The same colour from an Srgba, LinearRgba or Oklaba. */static from(c: Rgb | Oklaba): Oklcha {const o = c instanceof Oklaba ? c : Oklaba.from(c);const hue = f((Math.atan2(o.b, o.a) * 180) / Math.PI);return new Oklcha(o.lightness, f(Math.hypot(o.a, o.b)), hue < 0 ? f(hue + 360) : hue, o.alpha);}+ /** The same colour as a LinearRgba. */to_linear(): LinearRgba {return Oklaba.from(this).to_linear();}+ /** The same colour as an Srgba. */to_srgba(): Srgba {return this.to_linear().to_srgba();}+ /** The colour `t` (0 to 1) of the way to `o`, mixed in this space. */mix(o: Oklcha, t: number): Oklcha {return new Oklcha(lerp(this.lightness, o.lightness, t), lerp(this.chroma, o.chroma, t), lerpHue(this.hue, o.hue, t), lerp(this.alpha, o.alpha, t));}@@ -72,28 +82,35 @@ export class Oklcha {}}-/** Bevy's Xyza: CIE 1931 XYZ (D65, as linear sRGB's). */+/** Bevy's Xyza: CIE 1931 XYZ (D65, as linear sRGB's). @bevy bevy_color::xyza::Xyza */export class Xyza {+ /** CIE XYZ (D65) and alpha. */constructor(public x: number, public y: number, public z: number, public alpha = 1) {}+ /** The same colour from an Srgba or LinearRgba. */static from(c: Rgb): Xyza {const { red: r, green: g, blue: b, alpha } = linearOf(c);return new Xyza(f(r * 0.4124564 + g * 0.3575761 + b * 0.1804375), f(r * 0.2126729 + g * 0.7151522 + b * 0.072175), f(r * 0.0193339 + g * 0.119192 + b * 0.9503041), alpha);}+ /** The same colour as a LinearRgba. */to_linear(): LinearRgba {const { x, y, z } = this;return new LinearRgba(f(x * 3.2404542 + y * -1.5371385 + z * -0.4985314), f(x * -0.969266 + y * 1.8760108 + z * 0.041556), f(x * 0.0556434 + y * -0.2040259 + z * 1.0572252), this.alpha);}+ /** The same colour as an Srgba. */to_srgba(): Srgba {return this.to_linear().to_srgba();}+ /** The colour `t` (0 to 1) of the way to `o`, mixed in this space. */mix(o: Xyza, t: number): Xyza {return new Xyza(lerp(this.x, o.x, t), lerp(this.y, o.y, t), lerp(this.z, o.z, t), lerp(this.alpha, o.alpha, t));}}-/** Bevy's Hsla: hue (degrees), saturation and lightness, each 0..1; converted through Hsva and Hwba, as Bevy's is. */+/** Bevy's Hsla: hue (degrees), saturation and lightness, each 0..1; converted through Hsva and Hwba, as Bevy's is. @bevy bevy_color::hsla::Hsla */export class Hsla {+ /** Hue in degrees (0 to 360), saturation, lightness and alpha 0 to 1. */constructor(public hue: number, public saturation: number, public lightness: number, public alpha = 1) {}+ /** The same colour from an Srgba or LinearRgba. */static from(c: Rgb): Hsla {const { red, green, blue, alpha } = srgbaOf(c);// Srgba -> Hwba@@ -109,6 +126,7 @@ export class Hsla {const l = f(v * f(1 - f(s / 2)));return new Hsla(hue, l === 0 || l === 1 ? 0 : f(f(v - l) / Math.min(l, f(1 - l))), l, alpha);}+ /** The same colour as an Srgba. */to_srgba(): Srgba {const { hue, saturation: s0, lightness: l } = this;// Hsla -> Hsva -> Hwba@@ -123,9 +141,11 @@ export class Hsla {const rgb: [number, number, number] = [[v, n, w], [n, v, w], [w, v, n], [w, n, v], [n, w, v], [v, w, n]][i] as [number, number, number];return new Srgba(rgb[0], rgb[1], rgb[2], this.alpha);}+ /** The same colour as a LinearRgba. */to_linear(): LinearRgba {return LinearRgba.from(this.to_srgba());}+ /** The colour `t` (0 to 1) of the way to `o`, mixed in this space. */mix(o: Hsla, t: number): Hsla {return new Hsla(lerpHue(this.hue, o.hue, t), lerp(this.saturation, o.saturation, t), lerp(this.lightness, o.lightness, t), lerp(this.alpha, o.alpha, t));}diff --git a/sdk/render/src/bevy3d/core.tsx b/sdk/render/src/bevy3d/core.tsxindex 189fa9f9..1a9a0062 100644--- a/sdk/render/src/bevy3d/core.tsx+++ b/sdk/render/src/bevy3d/core.tsx@@ -123,16 +123,23 @@ function lookingAt(eye: Vec3, target: Vec3, up: Vec3): Quat {/** A Transform's value, as Bevy reflects it. */export interface TransformValue {+ /** where it is, metres (x, y, z) */translation?: Vec3;+ /** its rotation as a quaternion [x, y, z, w] */rotation?: Quat;+ /** its scale along x, y and z */scale?: Vec3;}/** A Transform built with Bevy's builders: each returns a new one. */export interface TransformBuilt extends Required<TransformValue> {+ /** the same transform, moved to `v` */withTranslation(v: Vec3): TransformBuilt;+ /** the same transform, turned to `q` */withRotation(q: Quat): TransformBuilt;+ /** the same transform, scaled to `s` (one number for all three axes) */withScale(s: Vec3 | number): TransformBuilt;+ /** the same transform, turned so its -Z faces `target` with `up` (+Y) up, as Bevy's looking_at */lookingAt(target: Vec3, up?: Vec3): TransformBuilt;}@@ -170,9 +177,11 @@ function place(t: TransformValue | undefined, animated = false): Pick<MeshProps,}export interface Mesh3dProps extends Omit<MeshProps, "position" | "rotation" | "scale"> {+ /** where it stands: translation, rotation (a quaternion) and scale, as Bevy's Transform */transform?: TransformValue;/** Bevy's Visibility: "Hidden" draws nothing; "Visible" and "Inherited" draw */visibility?: "Visible" | "Hidden" | "Inherited";+ /** its material and child entities */children?: ReactNode;}@@ -205,7 +214,9 @@ export type Projection =| { Orthographic: { near?: number; far?: number; scaling_mode?: { FixedVertical: { viewport_height: number } } } };export interface Camera3dProps {+ /** where the camera stands and faces (`Transform.fromXYZ(...).lookingAt(...)`) */transform?: TransformValue;+ /** perspective (the default) or orthographic, as Bevy's Projection */projection?: Projection;/** Bevy's RenderLayers on the camera: it draws only the parts on these layers (a Mesh3d's `layers`; [0] by default) */layers?: number[];@@ -217,12 +228,15 @@ export interface Camera3dProps {/** Bevy's Viewport: the camera draws into this region of the window only, `physical_position` from its top left and* `physical_size` big (whole px, at a scale factor of 1) */viewport?: CameraViewport;+ /** components on the camera: post effects, tone mapping, a skybox */children?: ReactNode;}/** Bevy's Viewport on a Camera, its depth range Bevy's default 0..1. */export interface CameraViewport {+ /** the viewport's top-left corner, in px */physical_position: [number, number];+ /** the viewport's width and height, in px */physical_size: [number, number];}diff --git a/sdk/render/src/bevy3d/extensions.tsx b/sdk/render/src/bevy3d/extensions.tsxnew file mode 100644index 00000000..a92a0ce4--- /dev/null+++ b/sdk/render/src/bevy3d/extensions.tsx@@ -0,0 +1,142 @@+// raea's MaterialExtensions over a StandardMaterial: grid, paint, wear, shader and toon, each an ExtendedMaterial's+// `extension` (materials.tsx turns them into the old material's props).+import type { ReactNode } from "react";+import type { TrackSpec } from "@raea/math/animate";+import type { SurfaceShaderSpec, ToonBand, ToonHighlight, ToonOutline, ToonRim } from "../3d";+import type { MeshStandardMaterialProps } from "../three";++// A fixes an `animate` to the fields T names: any other key is never, so a typo fails in tsc, not at render+export type Only<A, T> = { [K in keyof A]: K extends keyof T ? T[K] : never };++/** raea's extension of StandardMaterial (a Bevy MaterialExtension of raea's): graph paper over the surface for+ * greybox levels, lines every `cell` world units (fixed in the world, so they run on across shapes), a heavier one+ * every `major` cells (4), in `color`, and each face of a Box outlined in `edge` ("" for no outlines). Its colours are+ * the first frame's. It goes in an ExtendedMaterial's `extension`. */+export interface GridExtensionProps {+ /** world units between grid lines */+ cell: number;+ /** cells between heavier lines (4) */+ major?: number;+ /** the lines' colour */+ color?: string;+ /** the colour each Box face is outlined in ("" for none) */+ edge?: string;+}++/** raea's grid over a StandardMaterial, as an ExtendedMaterial's extension (engine/render grid.rs):+ * @bevy bevy_pbr::mesh_material::MeshMaterial3d<bevy_pbr::extended_material::ExtendedMaterial<bevy_pbr::pbr_material::StandardMaterial, raea_render::engine::grid::Grid>> */+export function GridExtension(_: GridExtensionProps): ReactNode {+ throw new TypeError("GridExtension goes in an ExtendedMaterial: <ExtendedMaterial base={<StandardMaterial />} extension={<GridExtension cell={0.5} />} />");+}++/** raea's extension of StandardMaterial for a paint look (<Look mode="paint">): the surface broken up by world-space+ * noise of `scale` metres (1), its tone boundaries wandering by `breakup` (0.5) and patches of it taking `color`+ * (`amount`, 0.6, of the way): a mottled field, rust, a wall's uneven paint. It goes in an ExtendedMaterial's+ * `extension`. */+export interface PaintExtensionProps {+ /** how far tone boundaries wander (0.5) */+ breakup?: number;+ /** the noise's size in metres (1) */+ scale?: number;+ /** the colour patches take */+ color?: string;+ /** how far toward `color` the patches go (0.6) */+ amount?: number;+}++export function PaintExtension(_: PaintExtensionProps): ReactNode {+ throw new TypeError("PaintExtension goes in an ExtendedMaterial: <ExtendedMaterial base={<StandardMaterial />} extension={<PaintExtension scale={0.5} />} />");+}++/** raea's extension of StandardMaterial that wears it (the engine's Wear MaterialExtension, systems/wear): its paint+ * mottled, chipped back to `chip_color` on edges and a few spots, `grime` gathered low and underneath and `rust` run+ * down in streaks, fixed in the part's own space as it moves. `amount` 0-1; `chips`, `grime` and `rust` each 0-1 of it+ * (0.6, 0.5, 0.25); `scale` a blotch's size in metres (0.08); `seed` moves the pattern. It goes in an+ * ExtendedMaterial's `extension`. */+export interface WearExtensionProps {+ /** how worn it is, 0-1 */+ amount: number;+ /** a blotch's size in metres (0.08) */+ scale?: number;+ /** chips on edges and a few spots, 0-1 of the wear (0.6) */+ chips?: number;+ /** grime low and underneath, 0-1 of the wear (0.5) */+ grime?: number;+ /** rust run down in streaks, 0-1 of the wear (0.25) */+ rust?: number;+ /** moves the pattern */+ seed?: number;+ /** what chips show beneath the paint */+ chip_color?: string;+ /** the grime's colour */+ grime_color?: string;+ /** the rust's colour */+ rust_color?: string;+}++/** raea's chips, grime and rust over a StandardMaterial, as an ExtendedMaterial's extension (systems/wear):+ * @bevy bevy_pbr::mesh_material::MeshMaterial3d<bevy_pbr::extended_material::ExtendedMaterial<bevy_pbr::pbr_material::StandardMaterial, raea_sys_wear::Wear>> */+export function WearExtension(_: WearExtensionProps): ReactNode {+ throw new TypeError("WearExtension goes in an ExtendedMaterial: <ExtendedMaterial base={<StandardMaterial />} extension={<WearExtension amount={0.6} />} />");+}++// the old material's `wear` from WearExtension's fields (its colours camelCase there)+export function wearOf(w: WearExtensionProps): MeshStandardMaterialProps["wear"] {+ const { chip_color, grime_color, rust_color, ...rest } = w;+ return { ...rest, ...(chip_color !== undefined ? { chipColor: chip_color } : {}), ...(grime_color !== undefined ? { grimeColor: grime_color } : {}), ...(rust_color !== undefined ? { rustColor: rust_color } : {}) };+}++/** raea's extension of StandardMaterial written in WESL (the engine's ShaderExt, docs/shaders.feature SH1): its+ * `fn surface` runs before Bevy's lighting and its `fn lit` after it, on the base's inputs, so the surface stays lit+ * and shadowed. raea/3d's <MeshStandardMaterial shader> is the same thing; the spec is SurfaceShaderSpec. It goes in an+ * ExtendedMaterial's `extension`, alone.+ * @bevy bevy_pbr::extended_material::ExtendedMaterial<bevy_pbr::pbr_material::StandardMaterial, raea_sys_shader::ShaderExt> */+export type ShaderExtensionProps = SurfaceShaderSpec;++export function ShaderExtension(_: ShaderExtensionProps): ReactNode {+ throw new TypeError("ShaderExtension goes in an ExtendedMaterial: <ExtendedMaterial base={<StandardMaterial />} extension={<ShaderExtension wesl={src} />} />");+}+++/** raea's extension of StandardMaterial that cel-shades it (the engine's ToonExt; three.js's MeshToonMaterial): the+ * scene's lights in `steps` hard bands (2; `bands` for an explicit ramp, darkest first), the bottom one+ * `shadow_color` (the base colour darker, nudged towards violet), with an optional rim, highlight and ink outline+ * (true for their defaults). Its base gives base_color, base_color_texture, emissive, alpha_mode and material; a+ * toon surface has no roughness or metal. It goes in an ExtendedMaterial's `extension`, alone. */+export interface ToonExtensionProps {+ /** how many hard bands the light falls into (2) */+ steps?: number;+ /** an explicit ramp of bands, darkest first, in place of `steps` */+ bands?: ToonBand[];+ /** the bottom band's colour (the base colour darker, nudged towards violet) */+ shadow_color?: string;+ /** a rim light on the silhouette: true for its default, or its settings */+ rim?: boolean | ToonRim;+ /** a hard specular highlight: true for its default, or its settings */+ highlight?: boolean | ToonHighlight;+ /** an ink outline: true for its default, or its settings */+ outline?: boolean | ToonOutline;+ /** how bright the rim is */+ rim_intensity?: number;+ /** how bright the highlight is */+ highlight_intensity?: number;+ /** the outline's width */+ outline_width?: number;+ /** its fields' tracks, as a StandardMaterial's `animate` (its base animates base_color and emissive) */+ animate?: ToonExtensionAnimate;+}++export interface ToonExtensionAnimate {+ /** a track of `shadow_color`, sampled each frame */+ shadow_color?: TrackSpec<string>;+ /** a track of `rim_intensity`, sampled each frame */+ rim_intensity?: TrackSpec<number>;+ /** a track of `highlight_intensity`, sampled each frame */+ highlight_intensity?: TrackSpec<number>;+ /** a track of `outline_width`, sampled each frame */+ outline_width?: TrackSpec<number>;+}++export function ToonExtension<A>(_: ToonExtensionProps & { animate?: Only<A, ToonExtensionAnimate> }): ReactNode {+ throw new TypeError("ToonExtension goes in an ExtendedMaterial: <ExtendedMaterial base={<StandardMaterial />} extension={<ToonExtension steps={3} />} />");+}diff --git a/sdk/render/src/bevy3d/feathers/color.tsx b/sdk/render/src/bevy3d/feathers/color.tsxindex 56ad9c4a..8118d795 100644--- a/sdk/render/src/bevy3d/feathers/color.tsx+++ b/sdk/render/src/bevy3d/feathers/color.tsx@@ -45,6 +45,7 @@ export interface FeathersColorSwatchProps extends Omit<NodeProps, "border_radiuscolor?: FeathersColor;/** how much of its right side shows the colour opaque, in percent */opaque_color_percentage?: number;+ /** which corners are rounded */corners?: RoundedCorners;/** the corners' radius in px (5 by default), on the corners `corners` names */border_radius?: number;@@ -120,6 +121,7 @@ const THUMB_SIZE = SLIDER_HEIGHT - 2;export interface FeathersColorSliderProps extends NodeProps {/** SliderValue: the channel's value, in its range */value?: number;+ /** which colour channel it sets: Red, Green, Blue, Alpha, or HSL or Okhsl hue, saturation or lightness */channel?: ColorChannel;/** SliderBaseColor: the colour the track shows the channel of (white by default) */base_color?: FeathersColor;diff --git a/sdk/render/src/bevy3d/feathers/controls.tsx b/sdk/render/src/bevy3d/feathers/controls.tsxindex 9e00a104..e335d33d 100644--- a/sdk/render/src/bevy3d/feathers/controls.tsx+++ b/sdk/render/src/bevy3d/feathers/controls.tsx@@ -66,10 +66,15 @@ export function FeathersButton({ variant = "Normal", corners = "All", disabled =);}+export interface VirtualKeyboardProps {+ /** the keyboard's rows, each a row of key captions */+ keys: string[][];+}+/** A grid of FeathersButtons, one row of keys a row (4 px apart both ways), each key's caption a plain Text (Bevy's* default font, 20 px white: feathers' font reaches only a ThemedText), each key growing to share its row.* VirtualKeyPressed fires on a key under input. @bevy bevy_feathers::controls::VirtualKeyboard */-export function VirtualKeyboard({ keys }: { keys: string[][] }) {+export function VirtualKeyboard({ keys }: VirtualKeyboardProps) {if (!Array.isArray(keys) || !keys.every((r) => Array.isArray(r) && r.every((k) => typeof k === "string"))) throw new TypeError(`VirtualKeyboard: keys is rows of strings ([["Q", "W"], ["space"]]), got ${JSON.stringify(keys)}`);return (<Node flex_direction="Column" row_gap={px(4)}>diff --git a/sdk/render/src/bevy3d/feathers/display.tsx b/sdk/render/src/bevy3d/feathers/display.tsxindex 3c65865b..a9f722e3 100644--- a/sdk/render/src/bevy3d/feathers/display.tsx+++ b/sdk/render/src/bevy3d/feathers/display.tsx@@ -42,18 +42,39 @@ function only(who: string, children: unknown): ReactElement<Record<string, unknoreturn children as ReactElement<Record<string, unknown>>;}+export interface ThemeBackgroundColorProps {+ /** the theme colour's token */+ token: ThemeToken;+ /** the one element it colours */+ children: ReactElement;+}+/** The element inside on the theme's colour for `token`. @bevy bevy_feathers::theme::ThemeBackgroundColor */-export function ThemeBackgroundColor({ token, children }: { token: ThemeToken; children: ReactElement }) {+export function ThemeBackgroundColor({ token, children }: ThemeBackgroundColorProps) {return cloneElement(only("ThemeBackgroundColor", children), { background_color: useThemeColor(token) });}+export interface ThemeBorderColorProps {+ /** the theme colour's token */+ token: ThemeToken;+ /** the one element it borders */+ children: ReactElement;+}+/** The element inside bordered in the theme's colour for `token`. @bevy bevy_feathers::theme::ThemeBorderColor */-export function ThemeBorderColor({ token, children }: { token: ThemeToken; children: ReactElement }) {+export function ThemeBorderColor({ token, children }: ThemeBorderColorProps) {return cloneElement(only("ThemeBorderColor", children), { border_color: useThemeColor(token) });}+export interface ThemeTextColorProps {+ /** the theme colour's token */+ token: ThemeToken;+ /** the Text it colours */+ children: ReactElement;+}+/** The Text inside in the theme's colour for `token`. @bevy bevy_feathers::theme::ThemeTextColor */-export function ThemeTextColor({ token, children }: { token: ThemeToken; children: ReactElement }) {+export function ThemeTextColor({ token, children }: ThemeTextColorProps) {return cloneElement(only("ThemeTextColor", children), { color: useThemeColor(token) });}diff --git a/sdk/render/src/bevy3d/feathers/icons.ts b/sdk/render/src/bevy3d/feathers/icons.tsindex 9d11e0f6..ecba0f2d 100644--- a/sdk/render/src/bevy3d/feathers/icons.ts+++ b/sdk/render/src/bevy3d/feathers/icons.ts@@ -3,7 +3,14 @@// 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 }+export interface FeathersIcon {+ /** the icon's picture */+ image: string;+ /** in px */+ width: number;+ /** in px */+ height: number;+}/** bevy_feathers' icons. @bevy bevy_feathers::constants::icons */export const icons = {diff --git a/sdk/render/src/bevy3d/feathers/listview.tsx b/sdk/render/src/bevy3d/feathers/listview.tsxindex 89f97c99..33e66593 100644--- a/sdk/render/src/bevy3d/feathers/listview.tsx+++ b/sdk/render/src/bevy3d/feathers/listview.tsx@@ -17,6 +17,7 @@ const GUTTER = 14;export interface FeathersScrollbarProps extends NodeProps {/** the Name of the Node it scrolls */target: string;+ /** which way it scrolls: Vertical or Horizontal */orientation?: ControlOrientation;/** hidden: the auto_hide decision, made by the list view (Bevy makes it after layout) */hidden?: boolean;diff --git a/sdk/render/src/bevy3d/feathers/number-value.ts b/sdk/render/src/bevy3d/feathers/number-value.tsindex 55d1d147..217c1c9c 100644--- a/sdk/render/src/bevy3d/feathers/number-value.ts+++ b/sdk/render/src/bevy3d/feathers/number-value.ts@@ -122,7 +122,9 @@ export function display_value(kind: NumberKind, v: number): string {/** formats a number input's value for display (or for editing). @bevy bevy_feathers::controls::UnitsFormat */export interface UnitsFormat {+ /** the format's name */id: string;+ /** the value as text: for display, or for editing when \`editing\` is true */format(value: NumberInputValue, editing: boolean): string;}diff --git a/sdk/render/src/bevy3d/feathers/select.tsx b/sdk/render/src/bevy3d/feathers/select.tsxindex ae76060e..c728a9f8 100644--- a/sdk/render/src/bevy3d/feathers/select.tsx+++ b/sdk/render/src/bevy3d/feathers/select.tsx@@ -29,6 +29,7 @@ export function list_rows_from_strings(labels: string[], selected?: number): Reaexport interface FeathersSelectProps extends NodeProps {/** its options: FeathersListRows, one of them selected (list_rows_from_strings) */options: ReactNode;+ /** which corners are rounded */corners?: RoundedCorners;/** the popup's most rows (8 by default) */max_visible?: number;diff --git a/sdk/render/src/bevy3d/feathers/slider.tsx b/sdk/render/src/bevy3d/feathers/slider.tsxindex 168d8f74..41b82be8 100644--- a/sdk/render/src/bevy3d/feathers/slider.tsx+++ b/sdk/render/src/bevy3d/feathers/slider.tsx@@ -16,6 +16,7 @@ export interface FeathersSliderProps extends NodeProps {value?: number;/** SliderRange's ends (0 to 1 by default) */min?: number;+ /** SliderRange's top end (1) */max?: number;/** SliderPrecision: decimal places shown (0 by default) */precision?: number;diff --git a/sdk/render/src/bevy3d/feathers/theme.tsx b/sdk/render/src/bevy3d/feathers/theme.tsxindex 53e69745..9f6097c1 100644--- a/sdk/render/src/bevy3d/feathers/theme.tsx+++ b/sdk/render/src/bevy3d/feathers/theme.tsx@@ -18,15 +18,29 @@ const EMPTY: ThemeProps = { semantic_base: {}, semantic_overrides: {}, token_assconst ThemeCx = createContext<ThemeProps>(EMPTY);const LevelCx = createContext<SurfaceLevel>("Base");+export interface UiThemeProps {+ /** the theme's colours by token */+ theme: ThemeProps;+ /** the widgets that use it */+ children?: ReactNode;+}+/** Bevy's UiTheme resource: the theme every feathers widget inside looks its colours up in (create_dark_theme()).* @bevy bevy_feathers::theme::UiTheme */-export function UiTheme({ theme, children }: { theme: ThemeProps; children?: ReactNode }) {+export function UiTheme({ theme, children }: UiThemeProps) {return <ThemeCx.Provider value={theme}>{children}</ThemeCx.Provider>;}+export interface ThemeContextProps {+ /** the surface level they sit on */+ level: SurfaceLevel;+ /** the widgets on it */+ children?: ReactNode;+}+/** the surface level the widgets inside sit on, which picks the theme's overrides for it.* @bevy bevy_feathers::theme::ThemeContext */-export function ThemeContext({ level, children }: { level: SurfaceLevel; children?: ReactNode }) {+export function ThemeContext({ level, children }: ThemeContextProps) {return <LevelCx.Provider value={level}>{children}</LevelCx.Provider>;}diff --git a/sdk/render/src/bevy3d/lights.tsx b/sdk/render/src/bevy3d/lights.tsxindex ce54f067..fda27e92 100644--- a/sdk/render/src/bevy3d/lights.tsx+++ b/sdk/render/src/bevy3d/lights.tsx@@ -87,6 +87,7 @@ export interface DirectionalLightProps extends Omit<LightCommon, "children"> {shadow_maps_enabled?: boolean;/** soft shadows (PCSS): the sun's size as its shadows see it, in metres */soft_shadow_size?: number | null;+ /** Bevy components on the light: shadow settings, cascades */children?: ReactNode;}@@ -101,7 +102,9 @@ export function DirectionalLight(p: DirectionalLightProps) {}export interface AmbientLightProps {+ /** the entity's name, for picking, the inspector and world.* */name?: string;+ /** its colour, as CSS writes one (a name, hex, rgb()) */color?: string;/** cd/m² (Bevy's default 80) */brightness?: number;diff --git a/sdk/render/src/bevy3d/material.tsx b/sdk/render/src/bevy3d/material.tsxindex f0523c4c..6f104983 100644--- a/sdk/render/src/bevy3d/material.tsx+++ b/sdk/render/src/bevy3d/material.tsx@@ -1,5 +1,6 @@// Your own Material (docs/control.feature FC2a): Bevy's Material, its shaders the author's files compiled as written.-import { ExtendedMaterial, ShaderExtension, StandardMaterial, type AlphaMode } from "./materials";+import { ShaderExtension } from "./extensions";+import { ExtendedMaterial, StandardMaterial, type AlphaMode } from "./materials";import { surfaceShader, type SurfaceShaderSpec } from "../3d";import type { StorageValue } from "../3d/materials";import type { MeshVertexAttribute } from "../3d/attribute";diff --git a/sdk/render/src/bevy3d/materials.tsx b/sdk/render/src/bevy3d/materials.tsxindex 13aebd0c..91413b00 100644--- a/sdk/render/src/bevy3d/materials.tsx+++ b/sdk/render/src/bevy3d/materials.tsx@@ -1,16 +1,18 @@-// Materials: standard, grid, paint, toon, extended (their colours in colors.ts).-import { isValidElement, memo, useContext, type ReactElement, type ReactNode } from "react";+// Materials: standard, toon and extended (their colours in colors.ts, the extensions in extensions.tsx).+import { isValidElement, memo, useContext, type ReactElement } from "react";import type { TrackSpec } from "@raea/math/animate";import { InModel } from "../3d/all";-import { LinearRgba, MADE_FROM, baseOf, emissiveOf, type Affine2, type Srgba } from "./all";-import { samplerSpec, surfaceShader, type SamplerSpec, type SurfaceShaderSpec, type SurfaceDrawProps, type ToonBand, type ToonHighlight, type ToonOutline, type ToonRim } from "../3d";+import { LinearRgba, MADE_FROM, baseOf, emissiveOf, GridExtension, PaintExtension, WearExtension, ShaderExtension, ToonExtension, wearOf, type Affine2, type Srgba, type Only, type GridExtensionProps, type PaintExtensionProps, type WearExtensionProps, type ShaderExtensionProps, type ToonExtensionProps } from "./all";+import { samplerSpec, surfaceShader, type SamplerSpec, type SurfaceDrawProps } from "../3d";import { MeshBasicMaterial, MeshPhysicalMaterial, MeshStandardMaterial, MeshToonMaterial, type MeshStandardMaterialProps } from "../three";import { ProceduralExtension, proceduralOf, type ProceduralExtensionProps } from "./procedural";/** A picture read with its own sampler: Bevy's load_with_settings, whose ImageLoaderSettings give the Image its* ImageSamplerDescriptor ({ path: "checker.png", sampler: { filter: "nearest" } } for hard pixels). */export interface SampledImage {+ /** the picture, in the media folder */path: string;+ /** how it's sampled: filter, address modes */sampler: SamplerSpec;}@@ -21,7 +23,9 @@ type Tex = string | SampledImage;* its green, the metalness map's as its blue (white without one, so metallic is its factor exactly). Poly Haven's* "_rough" sets come this way; a packed "_arm" map is a plain path. */export interface MetallicRoughnessMaps {+ /** a greyscale roughness map (white rough) */roughness?: string;+ /** a greyscale metalness map (white metal) */metalness?: string;}@@ -91,27 +95,48 @@ export interface StandardMaterialProps {/** The StandardMaterial fields `animate` takes, each a track of its own kind of value. An emissive brighter than white* is LinearRgba keys of one colour: track({ 0: E.mul(0), 30: E.mul(2.5) }) with E = LinearRgba.from(Srgba.hex(c)). */export interface StandardMaterialAnimate {+ /** a track of `base_color`, sampled each frame */base_color?: TrackSpec<string>;+ /** a track of `emissive`, sampled each frame */emissive?: TrackSpec<string> | TrackSpec<LinearRgba>;+ /** a track of `perceptual_roughness`, sampled each frame */perceptual_roughness?: TrackSpec<number>;+ /** a track of `metallic`, sampled each frame */metallic?: TrackSpec<number>;// the rest of the fields that interpolate, each set on the part's own material frame by frame (docs/control.feature FC1c)+ /** a track of `emissive_exposure_weight`, sampled each frame */emissive_exposure_weight?: TrackSpec<number>;+ /** a track of `reflectance`, sampled each frame */reflectance?: TrackSpec<number>;+ /** a track of `specular_tint`, sampled each frame */specular_tint?: TrackSpec<string>;+ /** a track of `diffuse_transmission`, sampled each frame */diffuse_transmission?: TrackSpec<number>;+ /** a track of `specular_transmission`, sampled each frame */specular_transmission?: TrackSpec<number>;+ /** a track of `thickness`, sampled each frame */thickness?: TrackSpec<number>;+ /** a track of `ior`, sampled each frame */ior?: TrackSpec<number>;+ /** a track of `attenuation_distance`, sampled each frame */attenuation_distance?: TrackSpec<number>;+ /** a track of `attenuation_color`, sampled each frame */attenuation_color?: TrackSpec<string>;+ /** a track of `clearcoat`, sampled each frame */clearcoat?: TrackSpec<number>;+ /** a track of `clearcoat_perceptual_roughness`, sampled each frame */clearcoat_perceptual_roughness?: TrackSpec<number>;+ /** a track of `anisotropy_strength`, sampled each frame */anisotropy_strength?: TrackSpec<number>;+ /** a track of `anisotropy_rotation`, sampled each frame */anisotropy_rotation?: TrackSpec<number>;+ /** a track of `depth_bias`, sampled each frame */depth_bias?: TrackSpec<number>;+ /** a track of `parallax_depth_scale`, sampled each frame */parallax_depth_scale?: TrackSpec<number>;+ /** a track of `max_parallax_layer_count`, sampled each frame */max_parallax_layer_count?: TrackSpec<number>;+ /** a track of `lightmap_exposure`, sampled each frame */lightmap_exposure?: TrackSpec<number>;}@@ -123,8 +148,6 @@ const STANDARD_FIELDS: Record<string, "number" | "string"> = {parallax_depth_scale: "number", max_parallax_layer_count: "number", lightmap_exposure: "number",};-// A fixes an `animate` to the fields T names: any other key is never, so a typo fails in tsc, not at render-type Only<A, T> = { [K in keyof A]: K extends keyof T ? T[K] : never };// each animatable field's name in the old material's animateconst STANDARD_ANIMATE: Record<string, string> = { base_color: "color", emissive: "emissive", perceptual_roughness: "roughness", metallic: "metalness" };@@ -292,108 +315,6 @@ function standard(p: StandardMaterialProps, ext: Extended) {);}-/** raea's extension of StandardMaterial (a Bevy MaterialExtension of raea's): graph paper over the surface for- * greybox levels, lines every `cell` world units (fixed in the world, so they run on across shapes), a heavier one- * every `major` cells (4), in `color`, and each face of a Box outlined in `edge` ("" for no outlines). Its colours are- * the first frame's. It goes in an ExtendedMaterial's `extension`. */-export interface GridExtensionProps {- cell: number;- major?: number;- color?: string;- edge?: string;-}--/** raea's grid over a StandardMaterial, as an ExtendedMaterial's extension (engine/render grid.rs):- * @bevy bevy_pbr::mesh_material::MeshMaterial3d<bevy_pbr::extended_material::ExtendedMaterial<bevy_pbr::pbr_material::StandardMaterial, raea_render::engine::grid::Grid>> */-export function GridExtension(_: GridExtensionProps): ReactNode {- throw new TypeError("GridExtension goes in an ExtendedMaterial: <ExtendedMaterial base={<StandardMaterial />} extension={<GridExtension cell={0.5} />} />");-}--/** raea's extension of StandardMaterial for a paint look (<Look mode="paint">): the surface broken up by world-space- * noise of `scale` metres (1), its tone boundaries wandering by `breakup` (0.5) and patches of it taking `color`- * (`amount`, 0.6, of the way): a mottled field, rust, a wall's uneven paint. It goes in an ExtendedMaterial's- * `extension`. */-export interface PaintExtensionProps {- breakup?: number;- scale?: number;- color?: string;- amount?: number;-}--export function PaintExtension(_: PaintExtensionProps): ReactNode {- throw new TypeError("PaintExtension goes in an ExtendedMaterial: <ExtendedMaterial base={<StandardMaterial />} extension={<PaintExtension scale={0.5} />} />");-}--/** raea's extension of StandardMaterial that wears it (the engine's Wear MaterialExtension, systems/wear): its paint- * mottled, chipped back to `chip_color` on edges and a few spots, `grime` gathered low and underneath and `rust` run- * down in streaks, fixed in the part's own space as it moves. `amount` 0-1; `chips`, `grime` and `rust` each 0-1 of it- * (0.6, 0.5, 0.25); `scale` a blotch's size in metres (0.08); `seed` moves the pattern. It goes in an- * ExtendedMaterial's `extension`. */-export interface WearExtensionProps {- amount: number;- scale?: number;- chips?: number;- grime?: number;- rust?: number;- seed?: number;- chip_color?: string;- grime_color?: string;- rust_color?: string;-}--/** raea's chips, grime and rust over a StandardMaterial, as an ExtendedMaterial's extension (systems/wear):- * @bevy bevy_pbr::mesh_material::MeshMaterial3d<bevy_pbr::extended_material::ExtendedMaterial<bevy_pbr::pbr_material::StandardMaterial, raea_sys_wear::Wear>> */-export function WearExtension(_: WearExtensionProps): ReactNode {- throw new TypeError("WearExtension goes in an ExtendedMaterial: <ExtendedMaterial base={<StandardMaterial />} extension={<WearExtension amount={0.6} />} />");-}--// the old material's `wear` from WearExtension's fields (its colours camelCase there)-function wearOf(w: WearExtensionProps): MeshStandardMaterialProps["wear"] {- const { chip_color, grime_color, rust_color, ...rest } = w;- return { ...rest, ...(chip_color !== undefined ? { chipColor: chip_color } : {}), ...(grime_color !== undefined ? { grimeColor: grime_color } : {}), ...(rust_color !== undefined ? { rustColor: rust_color } : {}) };-}--/** raea's extension of StandardMaterial written in WESL (the engine's ShaderExt, docs/shaders.feature SH1): its- * `fn surface` runs before Bevy's lighting and its `fn lit` after it, on the base's inputs, so the surface stays lit- * and shadowed. raea/3d's <MeshStandardMaterial shader> is the same thing; the spec is SurfaceShaderSpec. It goes in an- * ExtendedMaterial's `extension`, alone.- * @bevy bevy_pbr::extended_material::ExtendedMaterial<bevy_pbr::pbr_material::StandardMaterial, raea_sys_shader::ShaderExt> */-export type ShaderExtensionProps = SurfaceShaderSpec;--export function ShaderExtension(_: ShaderExtensionProps): ReactNode {- throw new TypeError("ShaderExtension goes in an ExtendedMaterial: <ExtendedMaterial base={<StandardMaterial />} extension={<ShaderExtension wesl={src} />} />");-}---/** raea's extension of StandardMaterial that cel-shades it (the engine's ToonExt; three.js's MeshToonMaterial): the- * scene's lights in `steps` hard bands (2; `bands` for an explicit ramp, darkest first), the bottom one- * `shadow_color` (the base colour darker, nudged towards violet), with an optional rim, highlight and ink outline- * (true for their defaults). Its base gives base_color, base_color_texture, emissive, alpha_mode and material; a- * toon surface has no roughness or metal. It goes in an ExtendedMaterial's `extension`, alone. */-export interface ToonExtensionProps {- steps?: number;- bands?: ToonBand[];- shadow_color?: string;- rim?: boolean | ToonRim;- highlight?: boolean | ToonHighlight;- outline?: boolean | ToonOutline;- rim_intensity?: number;- highlight_intensity?: number;- outline_width?: number;- /** its fields' tracks, as a StandardMaterial's `animate` (its base animates base_color and emissive) */- animate?: ToonExtensionAnimate;-}--export interface ToonExtensionAnimate {- shadow_color?: TrackSpec<string>;- rim_intensity?: TrackSpec<number>;- highlight_intensity?: TrackSpec<number>;- outline_width?: TrackSpec<number>;-}--export function ToonExtension<A>(_: ToonExtensionProps & { animate?: Only<A, ToonExtensionAnimate> }): ReactNode {- throw new TypeError("ToonExtension goes in an ExtendedMaterial: <ExtendedMaterial base={<StandardMaterial />} extension={<ToonExtension steps={3} />} />");-}// the base's fields a toon surface takes; the rest (roughness, metal, maps) it has no use forconst TOON_BASE = new Set(["base_color", "base_color_texture", "emissive", "alpha_mode", "material", "animate"]);diff --git a/sdk/render/src/bevy3d/mesh2d.tsx b/sdk/render/src/bevy3d/mesh2d.tsxindex 0faa1817..f17730e6 100644--- a/sdk/render/src/bevy3d/mesh2d.tsx+++ b/sdk/render/src/bevy3d/mesh2d.tsx@@ -9,20 +9,37 @@ import { LinearRgba, Srgba, type Affine2, type SampledImage, type TransformValueimport { Material, materialShader, type MaterialProps } from "./material";/** a primitive's mesh attributes: its Mesh::ATTRIBUTE_COLOR, one linear colour per vertex (as mesh.insert_attribute) */-export interface MeshAttributes { vertex_colors?: (LinearRgba | [number, number, number, number])[] }+export interface MeshAttributes {+ /** one linear colour a vertex, in the mesh's vertex order (ATTRIBUTE_COLOR) */+ vertex_colors?: (LinearRgba | [number, number, number, number])[];+}/** a 2D shape as Bevy's Ring: of it and `inner` (the same shape's fields), or its to_ring(`ring`, a thickness) */-export interface RingProps { ring?: number; inner?: Record<string, unknown> }+export interface RingProps {+ /** a thickness: the shape made a ring that thick (to_ring) */+ ring?: number;+ /** the ring's inner shape, as the same shape's fields */+ inner?: Record<string, unknown>;+}type Vec2 = [number, number];export interface CircleProps extends MeshAttributes, RingProps { radius?: number }-export interface RectangleProps extends MeshAttributes, RingProps { half_size?: Vec2 }+export interface RectangleProps extends MeshAttributes, RingProps {+ /** half its width and height */+ half_size?: Vec2;+}export interface EllipseProps extends MeshAttributes, RingProps { half_size?: Vec2 }export interface RegularPolygonProps extends MeshAttributes, RingProps { circumcircle?: { radius: number }; sides?: number }/** an arc: its radius and half its angle in radians (Bevy's CircularSector::new(r, a) gives half_angle a) */-export interface ArcProps extends MeshAttributes, RingProps { arc?: { radius: number; half_angle: number } }+export interface ArcProps extends MeshAttributes, RingProps {+ /** its radius and half its angle in radians */+ arc?: { radius: number; half_angle: number };+}export interface AnnulusProps extends MeshAttributes, RingProps { inner_circle?: { radius: number }; outer_circle?: { radius: number } }export interface Capsule2dProps extends MeshAttributes, RingProps { radius?: number; half_length?: number }export interface RhombusProps extends MeshAttributes, RingProps { half_diagonals?: Vec2 }-export interface VerticesProps extends MeshAttributes, RingProps { vertices?: Vec2[] }+export interface VerticesProps extends MeshAttributes, RingProps {+ /** the outline's points, in order */+ vertices?: Vec2[];+}export interface ColorMaterialProps {/** white by default; it tints the texture, and its alpha is the material's (Bevy's Srgba or LinearRgba, or a hex) */color?: string | Srgba | LinearRgba;@@ -61,7 +78,9 @@ const PRIMITIVES = new Map<unknown, string>([[Circle, "Circle"], [Rectangle, "Reexport const ColorMaterial = inMesh2d("ColorMaterial") as (p: ColorMaterialProps) => ReactNode;export interface Mesh2dProps extends Omit<Place2dProps, "x" | "y" | "rotation" | "scale" | "z"> {+ /** where it stands: translation, rotation (a quaternion) and scale */transform?: TransformValue;+ /** "Hidden" draws nothing; "Visible" and "Inherited" draw */visibility?: "Inherited" | "Visible" | "Hidden";/** one of bevy_math's 2D primitives (<Circle>, <Capsule2d>, ...) and a <ColorMaterial>, or your own <Material>* (Bevy's Material2d, docs/control.feature FC2a) */diff --git a/sdk/render/src/bevy3d/okhsla.ts b/sdk/render/src/bevy3d/okhsla.tsindex 0fab02b4..0dadb454 100644--- a/sdk/render/src/bevy3d/okhsla.ts+++ b/sdk/render/src/bevy3d/okhsla.ts@@ -124,6 +124,7 @@ 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 {+ /** Hue in degrees, saturation, lightness and alpha 0 to 1, in Okhsl. */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 {@@ -168,12 +169,15 @@ export class Okhsla {}return new Oklaba(L, mul(C, a_), mul(C, b_), alpha);}+ /** The same colour as a LinearRgba. */to_linear(): LinearRgba {return this.to_oklaba().to_linear();}+ /** The same colour as an Srgba. */to_srgba(): Srgba {return this.to_oklaba().to_srgba();}+ /** The same colour with this alpha. */with_alpha(alpha: number): Okhsla {return new Okhsla(this.hue, this.saturation, this.lightness, alpha);}diff --git a/sdk/render/src/bevy3d/procedural.tsx b/sdk/render/src/bevy3d/procedural.tsxindex c71c120c..80aef9d7 100644--- a/sdk/render/src/bevy3d/procedural.tsx+++ b/sdk/render/src/bevy3d/procedural.tsx@@ -10,20 +10,35 @@ import type { ProceduralSurface } from "../overlays";* faces up, `dirt` in joints, hollows, undersides and the floor line, `edges` worn lighter. The pattern overrides the* base's colour and roughness; its lighting stays. It goes in an ExtendedMaterial's `extension`, alone. */export interface ProceduralExtensionProps {+ /** what it draws: noise, wood, marble, stone, brick, tiles, fabric, brushed or plaster */pattern: ProceduralSurface["pattern"];+ /** the pattern's two colours */colors?: [string, string];+ /** how many metres across its features are */scale?: number;+ /** the first colour's roughness, 0..1 */rough_a?: number;+ /** the second colour's roughness, 0..1 */rough_b?: number;+ /** how deep the pattern's relief looks (0 or more) */bump?: number;+ /** brick and tiles: a cell's [width, height] in metres */tile?: [number, number];+ /** brick and tiles: the joints' width in metres */gap?: number;+ /** the joints' colour */gap_color?: string;+ /** 0..1 dust on what faces up */dust?: number;+ /** 0..1 dirt in joints, hollows, undersides and along the floor line */dirt?: number;+ /** 0..1 wear on the edges, lighter */edges?: number;+ /** the dust's colour */dust_color?: string;+ /** the dirt's colour */dirt_color?: string;+ /** which randomness the pattern uses */seed?: number;}diff --git a/sdk/render/src/bevy3d/text2d.tsx b/sdk/render/src/bevy3d/text2d.tsxindex 5a422666..a647a135 100644--- a/sdk/render/src/bevy3d/text2d.tsx+++ b/sdk/render/src/bevy3d/text2d.tsx@@ -30,6 +30,7 @@ export interface Text2dProps extends TextStyleProps, TextRunProps {bounds?: [number | null, number | null];/** Text2dShadow (true for its default); inside a Canvas3D */shadow?: Text2dShadow | true;+ /** the text, and TextSpan runs */children?: ReactNode;}diff --git a/sdk/render/src/bevy3d/ui-debug.tsx b/sdk/render/src/bevy3d/ui-debug.tsxindex c0256a7c..91462bd8 100644--- a/sdk/render/src/bevy3d/ui-debug.tsx+++ b/sdk/render/src/bevy3d/ui-debug.tsx@@ -20,9 +20,14 @@ export interface UiDebugOptions {const Global = createContext<UiDebugOptions | null>(null);+export interface GlobalUiDebugOptionsProps extends UiDebugOptions {+ /** the UI the overlay draws over */+ children?: ReactNode;+}+/** bevy_ui's GlobalUiDebugOptions: the debug overlay for every node inside that has no UiDebugOptions of its own* (a node's `ui_debug`). @bevy bevy_ui_render::GlobalUiDebugOptions */-export function GlobalUiDebugOptions({ children, ...options }: UiDebugOptions & { children?: ReactNode }) {+export function GlobalUiDebugOptions({ children, ...options }: GlobalUiDebugOptionsProps) {return <Global.Provider value={options}>{children}</Global.Provider>;}diff --git a/sdk/render/src/bevy3d/ui-edit.tsx b/sdk/render/src/bevy3d/ui-edit.tsxindex 68e24fd2..4ae75bbc 100644--- a/sdk/render/src/bevy3d/ui-edit.tsx+++ b/sdk/render/src/bevy3d/ui-edit.tsx@@ -50,6 +50,7 @@ export interface EditableTextProps extends NodeProps, TextStyleProps {auto_focus?: boolean;/** TextLayout's justify and linebreak */justify?: TextProps["justify"];+ /** where lines break: WordBoundary, AnyCharacter, WordOrCharacter or NoWrap */linebreak?: TextProps["linebreak"];}diff --git a/sdk/render/src/bevy3d/ui-font.ts b/sdk/render/src/bevy3d/ui-font.tsindex dbac1eb9..10d5f5be 100644--- a/sdk/render/src/bevy3d/ui-font.ts+++ b/sdk/render/src/bevy3d/ui-font.ts@@ -52,7 +52,9 @@ export const FontCx = {* @bevy bevy_text::FontAtlas */export interface FontAtlas {texture: string;+ /** the texture's width in px */width: number;+ /** the texture's height in px */height: number;}diff --git a/sdk/render/src/bevy3d/ui-image.tsx b/sdk/render/src/bevy3d/ui-image.tsxindex 80770e34..417342ab 100644--- a/sdk/render/src/bevy3d/ui-image.tsx+++ b/sdk/render/src/bevy3d/ui-image.tsx@@ -29,7 +29,16 @@ export type SliceScaleMode = "Stretch" | { Tile: { stretch_value: number } };/** bevy_sprite's TextureSlicer: the slices' insets in the picture's px, how the sides and centre scale (Stretch by* default), and the corners' most scale (1 by default) */-export interface TextureSlicer { border: { left: number; right: number; top: number; bottom: number }; center_scale_mode?: SliceScaleMode; sides_scale_mode?: SliceScaleMode; max_corner_scale?: number }+export interface TextureSlicer {+ /** the slices' insets, in the picture's px */+ border: { left: number; right: number; top: number; bottom: number };+ /** how the centre scales (Stretch) */+ center_scale_mode?: SliceScaleMode;+ /** how the sides scale (Stretch) */+ sides_scale_mode?: SliceScaleMode;+ /** how much the corners may scale at most (1) */+ max_corner_scale?: number;+}/** bevy_image's TextureAtlasLayout: a sheet's size and its cells' rects in px. @bevy bevy_image::TextureAtlasLayout */export interface TextureAtlasLayout { size: [number, number]; textures: { x: number; y: number; w: number; h: number }[] }@@ -108,9 +117,16 @@ function AtlasNode({ image, color, flip_x, flip_y, children, fixed, texture_atlaconst Sampler = createContext<"Linear" | "Nearest">("Linear");const RENDERING = { Linear: undefined, Nearest: "pixelated" } as const;+export interface ImagePluginProps {+ /** "Linear" (the default) or "Nearest" (pixel art) */+ default_sampler?: "Linear" | "Nearest";+ /** the UI and sprites whose pictures it samples */+ children?: ReactNode;+}+/** bevy_image's ImagePlugin: its default_sampler for every picture drawn inside it (Linear by default;* ImagePlugin::default_nearest() is default_sampler="Nearest", for pixel art). @bevy bevy_image::ImagePlugin */-export function ImagePlugin({ default_sampler, children }: { default_sampler?: "Linear" | "Nearest"; children?: ReactNode }) {+export function ImagePlugin({ default_sampler, children }: ImagePluginProps) {if (default_sampler !== undefined && !(default_sampler in RENDERING)) throw new TypeError(`ImagePlugin: default_sampler is Linear or Nearest, got ${JSON.stringify(default_sampler)}`);return <Sampler.Provider value={default_sampler ?? "Linear"}>{children}</Sampler.Provider>;}diff --git a/sdk/render/src/bevy3d/ui-material.tsx b/sdk/render/src/bevy3d/ui-material.tsxindex f85480b9..9f330eb1 100644--- a/sdk/render/src/bevy3d/ui-material.tsx+++ b/sdk/render/src/bevy3d/ui-material.tsx@@ -20,6 +20,7 @@ export interface MaterialNodeProps extends NodeProps {textures?: Record<string, string>;/** shader defs, as a Material's */defs?: Record<string, boolean | number>;+ /** the nodes inside it */children?: ReactNode;}diff --git a/sdk/render/src/bevy3d/ui-roots.tsx b/sdk/render/src/bevy3d/ui-roots.tsxnew file mode 100644index 00000000..d86f03a6--- /dev/null+++ b/sdk/render/src/bevy3d/ui-roots.tsx@@ -0,0 +1,59 @@+// What the UI's roots are drawn through: bevy_ui's UiScale, the UI camera's Viewport and UiTargetCamera.+import type { ReactNode } from "react";+import { UiScaleCx } from "./ui";++export interface UiScaleProps {+ /** how many times as big the UI is drawn (UiScale) */+ value: number;+ /** the UI it scales */+ children?: ReactNode;+}++/** bevy_ui's UiScale: every UI length inside times `value` (2 draws a 16 px node 32 px), as CSS's zoom: laid out+ * and its text shaped at that size, in physical px, as Bevy lays out (a 3 px padding at 1.25 is 4 px, not 3 drawn 1.25+ * times as big). Text2d and the 2D and 3D parts aren't UI, so they stay as they are.+ * @bevy bevy_ui::UiScale */+export function UiScale({ value, children }: UiScaleProps) {+ if (!(Number.isFinite(value) && value > 0)) throw new RangeError(`UiScale: value is above 0, got ${value}`);+ return (+ <div style={{ position: "absolute", left: 0, top: 0, width: "100%", height: "100%", zoom: value }}>+ <UiScaleCx.Provider value={value}>{children}</UiScaleCx.Provider>+ </div>+ );+}++export interface ViewportProps {+ /** the region's top-left corner, px from the window's */+ physical_position: [number, number];+ /** the region's width and height, px */+ physical_size: [number, number];+ /** the cameras and UI drawn into the region */+ children?: ReactNode;+}++/** The UI camera's viewport (bevy_camera's Viewport on the Camera2d the UI draws through): its roots lay out in this+ * region of the window, `physical_position` from its top left and `physical_size` big (px, at a scale factor of 1),+ * and are clipped to it. @bevy bevy_camera::Viewport */+export function Viewport({ physical_position, physical_size, children }: ViewportProps) {+ const ok = (v: unknown, min: number) => Array.isArray(v) && v.length === 2 && v.every((n) => Number.isInteger(n) && n >= min);+ if (!ok(physical_position, 0) || !ok(physical_size, 1)) throw new RangeError(`Viewport: physical_position is [x, y] >= 0 and physical_size [w, h] >= 1 in whole px, got ${JSON.stringify({ physical_position, physical_size })}`);+ const [[left, top], [width, height]] = [physical_position, physical_size];+ return <div style={{ position: "absolute", left, top, width, height, overflow: "hidden" }}>{children}</div>;+}++export interface UiTargetCameraProps {+ /** the camera, by its order, these roots draw with (0) */+ order?: number;+ /** the UI roots that camera draws */+ children?: ReactNode;+}++/** The roots inside drawn by their own Camera2d (bevy_ui's UiTargetCamera): a layer over the whole window, stacked by+ * the camera's `order` as Bevy draws its cameras, lowest first. Cameras on one window share its main texture, which+ * only the first of them clears (bevy_render's ViewTarget, its first call), so the window's clear is the layered+ * <Canvas3D clearColor>'s and a later camera's own clear colour shows nowhere. Roots outside any are the default+ * camera's (the highest order). @bevy bevy_ui::UiTargetCamera */+export function UiTargetCamera({ order = 0, children }: UiTargetCameraProps) {+ if (!Number.isInteger(order)) throw new RangeError(`UiTargetCamera: order is a whole number, got ${order}`);+ return <div style={{ position: "absolute", left: 0, top: 0, width: "100%", height: "100%", zIndex: order, isolation: "isolate" }}>{children}</div>;+}diff --git a/sdk/render/src/bevy3d/ui-scroll.ts b/sdk/render/src/bevy3d/ui-scroll.tsindex c4a09930..3fea1133 100644--- a/sdk/render/src/bevy3d/ui-scroll.ts+++ b/sdk/render/src/bevy3d/ui-scroll.ts@@ -5,7 +5,12 @@ import { checkVal, type Overflow, type UiRect, type Val } from "./ui-val";/** bevy_ui's IgnoreScroll: the axes on which a node keeps its place while its parent scrolls (BVec2).* @bevy bevy_ui::IgnoreScroll */-export interface IgnoreScroll { x: boolean; y: boolean }+export interface IgnoreScroll {+ /** it keeps its place while the parent scrolls across */+ x: boolean;+ /** it keeps its place while the parent scrolls down */+ y: boolean;+}export interface ScrollProps { overflow?: Overflow; padding?: UiRect; scrollbar_width?: number; scroll_position?: [number, number]; ignore_scroll?: IgnoreScroll }diff --git a/sdk/render/src/bevy3d/ui-texture.tsx b/sdk/render/src/bevy3d/ui-texture.tsxindex aca48295..a364a8c4 100644--- a/sdk/render/src/bevy3d/ui-texture.tsx+++ b/sdk/render/src/bevy3d/ui-texture.tsx@@ -15,10 +15,17 @@ export function targetImage(name: string, width: number, height: number): stringreturn `raea-screen:${name}@${width}x${height}`;}+export interface UiTextureProps {+ /** the image's name, as a material or ImageNode uses it */+ target: string;+ /** the UI roots drawn into it */+ children?: ReactNode;+}+/** The UI roots inside drawn into `target` instead of the window (a Camera2d with RenderTarget::Image, the roots'* UiTargetCamera): laid out in a box the image's size, see-through where they draw nothing, and nowhere in the frame* itself. A root's 100% is the image's size. @bevy bevy_camera::RenderTarget::Image */-export function UiTexture({ target, children }: { target: string; children?: ReactNode }) {+export function UiTexture({ target, children }: UiTextureProps) {const m = /^raea-screen:([A-Za-z0-9_-]+)@(\d+)x(\d+)$/.exec(target);if (!m) throw new TypeError(`UiTexture: target is a targetImage(name, width, height), got ${JSON.stringify(target)}`);return screenContent(m[1], { resolution: [Number(m[2]), Number(m[3])], crt: false, background: "transparent", children });diff --git a/sdk/render/src/bevy3d/ui-transform.ts b/sdk/render/src/bevy3d/ui-transform.tsindex 49879132..ec81ec41 100644--- a/sdk/render/src/bevy3d/ui-transform.ts+++ b/sdk/render/src/bevy3d/ui-transform.ts@@ -93,9 +93,16 @@ export function shadowCss(who: string, b: BoxShadow): string {/** the BoxShadowSamples around a node: 4, bevy_ui_render's default, outside one */export const ShadowSamplesCx = createContext(4);+export interface BoxShadowSamplesProps {+ /** steps each shadow's blur is summed in (4) */+ samples: number;+ /** the UI it applies to */+ children?: ReactNode;+}+/** bevy_ui_render's BoxShadowSamples: the steps each shadow's blur is summed in down its height (4 by default). Bevy sets* it on a UI camera; here it wraps the UI that camera draws. @bevy bevy_ui_render::BoxShadowSamples */-export function BoxShadowSamples({ samples, children }: { samples: number; children?: ReactNode }) {+export function BoxShadowSamples({ samples, children }: BoxShadowSamplesProps) {if (!(Number.isInteger(samples) && samples >= 0)) throw new RangeError(`BoxShadowSamples: samples is a whole number, 0 or more, got ${samples}`);return createElement(ShadowSamplesCx.Provider, { value: samples }, children);}diff --git a/sdk/render/src/bevy3d/ui.tsx b/sdk/render/src/bevy3d/ui.tsxindex c057e7c9..5e76f03b 100644--- a/sdk/render/src/bevy3d/ui.tsx+++ b/sdk/render/src/bevy3d/ui.tsx@@ -232,9 +232,14 @@ export function Node({ children, fixed, ...p }: NodeProps) {return boxOf(n.css, n.back, children, fixed ? "fixed" : ui === null, undefined, { ...n.attrs, ...handlersOf("Node", p) });}+export interface GhostNodeProps {+ /** what's laid out as the parent's children */+ children?: ReactNode;+}+/** bevy_ui's GhostNode: no box of its own, its children laid out as its parent's (CSS display: contents), each one a* root when it is at the top. @bevy bevy_ui::experimental::GhostNode */-export function GhostNode({ children }: { children?: ReactNode }) {+export function GhostNode({ children }: GhostNodeProps) {return useContext(InUi) === null ? <>{children}</> : <div style={{ display: "contents" }}>{children}</div>;}@@ -282,9 +287,11 @@ function variationsCss(who: string, v: Record<string, number> | undefined): striexport interface TextRunProps {/** Underline and Strikethrough: a line under or through the run, as thick as the font says */underline?: boolean;+ /** a line through the run */strikethrough?: boolean;/** UnderlineColor and StrikethroughColor: the lines' colours (the text's colour by default) */underline_color?: Color;+ /** the strikethrough's colour (the text's by default) */strikethrough_color?: Color;/** TextBackgroundColor: a box behind the run, line by line */text_background_color?: Color;@@ -411,8 +418,13 @@ export function Text({ children, font, font_size, weight, style, font_width, colreturn boxOf({ ...css, ...BREAK[linebreak ?? "WordBoundary"] }, n.back, own, ui === null, <style>{t.face}</style>, { ...n.attrs, "data-raea-bevy-text": "" });}+export interface TextSpanProps extends TextStyleProps, TextRunProps {+ /** the run's text */+ children?: ReactNode;+}+/** A run of a <Text> in a style of its own (Bevy's defaults, not its Text's, where left out). @bevy bevy_text::text::TextSpan */-export function TextSpan({ children, underline, strikethrough, underline_color, strikethrough_color, text_background_color, ...p }: TextStyleProps & TextRunProps & { children?: ReactNode }) {+export function TextSpan({ children, underline, strikethrough, underline_color, strikethrough_color, text_background_color, ...p }: TextSpanProps) {const back = useContext(InUi)?.back;// bevy_text leaves out a span whose size is 0 or less (TextPipeline: "Nothing will be displayed"), its Text's other// runs laid out without it@@ -454,37 +466,3 @@ export function Text2d({ transform, justify, anchor = [0, 0], children, bounds,</div>);}---/** bevy_ui's UiScale: every UI length inside times `value` (2 draws a 16 px node 32 px), as CSS's zoom: laid out- * and its text shaped at that size, in physical px, as Bevy lays out (a 3 px padding at 1.25 is 4 px, not 3 drawn 1.25- * times as big). Text2d and the 2D and 3D parts aren't UI, so they stay as they are.- * @bevy bevy_ui::UiScale */-export function UiScale({ value, children }: { value: number; children?: ReactNode }) {- if (!(Number.isFinite(value) && value > 0)) throw new RangeError(`UiScale: value is above 0, got ${value}`);- return (- <div style={{ position: "absolute", left: 0, top: 0, width: "100%", height: "100%", zoom: value }}>- <UiScaleCx.Provider value={value}>{children}</UiScaleCx.Provider>- </div>- );-}--/** The UI camera's viewport (bevy_camera's Viewport on the Camera2d the UI draws through): its roots lay out in this- * region of the window, `physical_position` from its top left and `physical_size` big (px, at a scale factor of 1),- * and are clipped to it. @bevy bevy_camera::Viewport */-export function Viewport({ physical_position, physical_size, children }: { physical_position: [number, number]; physical_size: [number, number]; children?: ReactNode }) {- const ok = (v: unknown, min: number) => Array.isArray(v) && v.length === 2 && v.every((n) => Number.isInteger(n) && n >= min);- if (!ok(physical_position, 0) || !ok(physical_size, 1)) throw new RangeError(`Viewport: physical_position is [x, y] >= 0 and physical_size [w, h] >= 1 in whole px, got ${JSON.stringify({ physical_position, physical_size })}`);- const [[left, top], [width, height]] = [physical_position, physical_size];- return <div style={{ position: "absolute", left, top, width, height, overflow: "hidden" }}>{children}</div>;-}--/** The roots inside drawn by their own Camera2d (bevy_ui's UiTargetCamera): a layer over the whole window, stacked by- * the camera's `order` as Bevy draws its cameras, lowest first. Cameras on one window share its main texture, which- * only the first of them clears (bevy_render's ViewTarget, its first call), so the window's clear is the layered- * <Canvas3D clearColor>'s and a later camera's own clear colour shows nowhere. Roots outside any are the default- * camera's (the highest order). @bevy bevy_ui::UiTargetCamera */-export function UiTargetCamera({ order = 0, children }: { order?: number; children?: ReactNode }) {- if (!Number.isInteger(order)) throw new RangeError(`UiTargetCamera: order is a whole number, got ${order}`);- return <div style={{ position: "absolute", left: 0, top: 0, width: "100%", height: "100%", zIndex: order, isolation: "isolate" }}>{children}</div>;-}diff --git a/sdk/render/src/daylight.tsx b/sdk/render/src/daylight.tsxindex 5d43614b..6be0b4ed 100644--- a/sdk/render/src/daylight.tsx+++ b/sdk/render/src/daylight.tsx@@ -74,6 +74,7 @@ export function readSky(src: string, rotation = 0): SkyRead {/** The day outside, in physical units, for one set. */export interface Day {+ /** the sky panorama's file */sky: string;/** the panorama's turn that puts its sun where the day's is (radians, as <Environment rotation>) */rotation: number;@@ -81,18 +82,22 @@ export interface Day {sunDir: Vec3;/** the sun's lux on a surface facing it, its colour temperature */sunLux: number;+ /** the sun's colour temperature, kelvin */sunK: number;/** the sun's and the sky's lux on level ground outside */sunGround: number;+ /** the sky's lux on level ground outside */skyGround: number;/** the sky's mean luminance (cd/m²) and colour temperature */skyNits: number;+ /** the sky's colour temperature, kelvin */skyK: number;/** cd/m² per unit of the panorama */scale: number;/** the sun's elevation (degrees) the light was made for, and the panorama's own (a different height shows in its* shadows' length outside, never in the room's light) */elevation: number;+ /** the panorama's own sun elevation, degrees (null for an overcast one) */skyElevation: number | null;}@@ -131,11 +136,20 @@ export function bounce(day: Day, indoor = 0.02): { nits: number; kelvin: numberreturn { nits: (indoor * all) / Math.PI, kelvin: 1e6 / mired };}+export interface DaylightProps {+ /** the day outside, from `daylight` */+ day: Day;+ /** the room's daylight factor, the share of the outside light its bounce gives as an even fill (0.02) */+ indoor?: number;+ /** the sun's shadow softness (0.6): true, or a number, as a DirectionalLight's */+ softShadow?: boolean | number;+}+/** The day's sun and sky: the sun as a shadowed directional light at its lux and colour, the panorama as the sky seen* through the windows at its true brightness (it lights nothing: an Environment is not shadowed, and would light the* room as if it had no walls), the room's bounce (`indoor`, its daylight factor, 2% by default) as an even fill; the* windows' own light comes from <WindowLight>. */-export function Daylight({ day, indoor = 0.02, softShadow = 0.6 }: { day: Day; indoor?: number; softShadow?: boolean | number }) {+export function Daylight({ day, indoor = 0.02, softShadow = 0.6 }: DaylightProps) {const at: Vec3 = [day.sunDir[0] * 30, day.sunDir[1] * 30, day.sunDir[2] * 30];const b = bounce(day, indoor);return (@@ -166,8 +180,23 @@ export function windowLight(day: Day, room: Room, o: Opening, { transmit = 0.75,};}+export interface WindowLightProps {+ /** the day outside */+ day: Day;+ /** the room the window is in */+ room: Room;+ /** the window: one of the room's openings */+ opening: Opening;+ /** the share of light the glass lets through (0.75) */+ transmit?: number;+ /** the ground's reflectance outside (0.2) */+ ground?: number;+ /** the light's name (window-WALL-AT by default) */+ name?: string;+}+/** A window's light as a lamp (windowLight), wide and soft, shadowed. */-export function WindowLight({ day, room, opening, transmit, ground, name }: { day: Day; room: Room; opening: Opening; transmit?: number; ground?: number; name?: string }) {+export function WindowLight({ day, room, opening, transmit, ground, name }: WindowLightProps) {const w = windowLight(day, room, opening, { transmit, ground });return <SpotLight name={name ?? `window-${opening.wall}-${opening.at.toFixed(2)}`} position={w.position} target={w.target} lumens={w.lumens} color={w.color} angle={Math.PI / 2} penumbra={1} castShadow />;}diff --git a/sdk/render/src/events3d.tsx b/sdk/render/src/events3d.tsxindex cf1ffd46..e6bab951 100644--- a/sdk/render/src/events3d.tsx+++ b/sdk/render/src/events3d.tsx@@ -346,20 +346,36 @@ export function usePlace3d(position: Vec3, rotation: Vec3, scale: number | Vec3,/** A part's pointer handlers, as a page element's. */export interface PointerHandlers3d {+ /** a press and release over the part */onClick?: (e: Event3d) => void;+ /** a button pressed over the part */onPointerDown?: (e: Event3d) => void;+ /** a button released over the part */onPointerUp?: (e: Event3d) => void;+ /** the pointer came over the part (bubbles, as the DOM's) */onPointerOver?: (e: Event3d) => void;+ /** the pointer left the part (bubbles) */onPointerOut?: (e: Event3d) => void;+ /** the pointer came over the part (doesn't bubble) */onPointerEnter?: (e: Event3d) => void;+ /** the pointer left the part (doesn't bubble) */onPointerLeave?: (e: Event3d) => void;+ /** the pointer moved over the part */onPointerMove?: (e: Event3d) => void;+ /** the wheel turned over the part (`deltaX`, `deltaY`) */onWheel?: (e: Event3d) => void;+ /** a drag began on the part pressed */onDragStart?: (e: Event3d) => void;+ /** the part pressed is being dragged, each frame it moves */onDrag?: (e: Event3d) => void;+ /** the drag of the part pressed ended */onDragEnd?: (e: Event3d) => void;+ /** a dragged part came over this one (`dragged` names it) */onDragEnter?: (e: Event3d) => void;+ /** a dragged part is over this one */onDragOver?: (e: Event3d) => void;+ /** a dragged part left this one */onDragLeave?: (e: Event3d) => void;+ /** a dragged part was dropped on this one */onDrop?: (e: Event3d) => void;}diff --git a/sdk/render/src/grow.ts b/sdk/render/src/grow.tsindex d3f9059d..d03cb110 100644--- a/sdk/render/src/grow.ts+++ b/sdk/render/src/grow.ts@@ -28,10 +28,13 @@ function made(expr: string): Solid {/** A signed distance field (negative inside), as the text raea-core-sdf reads. Y is up; sizes are metres. */export class Field {+ /** the field as the text raea-core-sdf reads */readonly text: string;+ /** A field from its text, as raea-core-sdf reads it. */constructor(text: string) {this.text = text;}+ /** The field moved by (x, y, z) metres. */move(x: number, y: number, z: number): Field {return new Field(`move(${this.text}, ${nums("move", [x, y, z])})`);}@@ -39,6 +42,7 @@ export class Field {rotate(x: number, y: number, z: number): Field {return new Field(`rotate(${this.text}, ${nums("rotate", [x, y, z])})`);}+ /** The field scaled by `s` about its origin. */scale(s: number): Field {return new Field(`scale(${this.text}, ${num("scale", s)})`);}@@ -118,6 +122,7 @@ export interface TreeOptions {trunk?: number;/** the crown's width over its height (0.9) */width?: number;+ /** the crown's shape: dome (an oak), sphere, cone (a pine), column (a cypress), umbrella or vase */crown?: "dome" | "sphere" | "cone" | "column" | "umbrella" | "vase";/** attraction points: more is a denser, twiggier crown (1200) */points?: number;@@ -133,7 +138,9 @@ export interface TreeOptions {leaves?: number;/** a leaf's length (0.09) */leaf?: number;+ /** sides of each branch's tube (7; 3 to 24) */sides?: number;+ /** which randomness it uses: the same seed gives the same result */seed?: number;}diff --git a/sdk/render/src/layers.tsx b/sdk/render/src/layers.tsxindex 819fef50..00d04ecf 100644--- a/sdk/render/src/layers.tsx+++ b/sdk/render/src/layers.tsx@@ -53,12 +53,18 @@ export function meshLayers(owner: string, id: string, children: ReactNode, mesh:return { children: out, surface, part };}+export interface TextureViewProps extends Omit<ImgHTMLAttributes<HTMLImageElement>, "src"> {+ /** the id a system lists the Image under in the App's PageTextures */+ texture: number;+}+/** A Bevy texture in an element (B3 H7): `texture` is the id a system lists an Image under in the App's PageTextures (a* camera's target, a video's frame), drawn at the element's box GPU to GPU. The other props are the <img>'s, its style* placing and sizing it.** <TextureView texture={7} style={{ position: "absolute", left: 100, top: 50, width: 200, height: 150 }} />*/-export function TextureView({ texture, ...img }: { texture: number } & Omit<ImgHTMLAttributes<HTMLImageElement>, "src">) {+/** the GPU texture's number */+export function TextureView({ texture, ...img }: TextureViewProps) {return <img data-raea-texture={texture} alt="" {...img} />;}diff --git a/sdk/render/src/matchmove.tsx b/sdk/render/src/matchmove.tsxindex 9d5c3e10..4a56e5a2 100644--- a/sdk/render/src/matchmove.tsx+++ b/sdk/render/src/matchmove.tsx@@ -12,7 +12,9 @@ import { PerspectiveCamera } from "./three";import { hasNative, native } from "@raea/app/native";export interface MatchmoveCamera {+ /** seconds into the clip */t: number;+ /** where the camera is, in the solved world (metres) */position: Vec3;/** camera to world, [x, y, z, w]; the camera looks down its -Z with +Y up */quaternion: [number, number, number, number];@@ -22,28 +24,41 @@ export interface MatchmoveCamera {/** What `raea track` writes and <Matchmove> draws from. */export interface MatchmoveSolve {+ /** "sfm": a full solve with structure; "rotation": the camera only turns (too little parallax, or too few frames registered); "static": it doesn't move */mode: "sfm" | "rotation" | "static";/** the footage's size in pixels, and its frame rate */width: number;+ /** the footage's height in pixels */height: number;+ /** the footage's frame rate */fps: number;+ /** where in the clip the solve starts, seconds */from: number;+ /** how long it runs, seconds */seconds: number;+ /** how many frames it solved */frames: number;/** vertical field of view, degrees; focal length in pixels; the lens's radial distortion */fov: number;+ /** the focal length in pixels, at the footage's full size */focal: number;+ /** the lens's radial distortion */k1: number;+ /** how many frames COLMAP registered; the rest were interpolated */registered: number;/** mean reprojection error in pixels (null without structure) */error: number | null;+ /** the camera's height over the ground, metres, that set the world's scale */camera_height: number;+ /** the camera a frame */cameras: MatchmoveCamera[];/** the sparse points, in the solved world */points: Vec3[];+ /** the ground plane: its height (0) and normal (+Y) */ground: { y: number; normal: Vec3 };/** the subject's cut-outs, a path with %04d for the frame (1-based), or null */cut: string | null;+ /** what the solver noticed: fallbacks, an assumed field of view, interpolated frames */notes: string[];}@@ -52,6 +67,7 @@ export interface MatchmoveProps {src: string;/** where in the clip the shot starts, and how long it runs (seconds; 0 = to the end) */from?: number;+ /** how long the shot runs, seconds (0: to the clip's end) */seconds?: number;/** the subject to keep in front of the 3D and out of the solve: a box around it on the first frame, [x, y, w, h] in* 0..1 of the frame (EdgeTAM tracks it from there) */@@ -80,10 +96,13 @@ export interface MatchmoveProps {/** Each frame's state under a <Matchmove>, for the 3D inside it. */export interface MatchmoveState {+ /** the solve it draws from */solve: MatchmoveSolve;/** the solve's frame shown now (0-based), and the clip's time */index: number;+ /** the clip's time at this frame, seconds */time: number;+ /** the solve's camera for this frame */camera: MatchmoveCamera;/** where a point of the solved world lands in the composition, in pixels ([x, y], and its distance in front of the* camera; behind it when that's 0 or less) */diff --git a/sdk/render/src/paint.tsx b/sdk/render/src/paint.tsxindex d94bfffc..fe89726b 100644--- a/sdk/render/src/paint.tsx+++ b/sdk/render/src/paint.tsx@@ -41,19 +41,24 @@ export interface VolumeCommon {threshold?: number;/** how much noise tears the painted surface's edge (0.08), and the tears' size in metres (0.6) */erode?: number;+ /** the tears' size in metres (0.6) */erodeSize?: number;/** how much light a unit of it stops (its shadow on itself; 1.2) */absorb?: number;/** the wind, m/s ([0, 0, 0]); how fast the volume takes it up, a second (1.2 smoke, 0.6 otherwise); the height* it's full from, metres, weaker below (0: full everywhere) */wind?: Vec3;+ /** how fast the volume takes up the wind, a second (1.2 smoke, 0.6 otherwise) */windPull?: number;+ /** the height the wind is full from, metres; weaker below (0: full everywhere) */windHeight?: number;/** velocity the still air takes away a second (0.4) */drag?: number;/** curl kept curling (6); a drifting turbulent force, m/s² (0), and its size in metres (2) */vorticity?: number;+ /** a drifting turbulent force, m/s² (0) */turbulence?: number;+ /** the turbulence's size in metres (2) */turbulenceSize?: number;/** samples along each ray (96) */steps?: number;@@ -100,15 +105,20 @@ function volumeNode(owner: string, p: VolumeCommon, position: Vec3, size: Vec3,export interface VolumeSource {/** where (metres from the box's foot), and where it has moved to by `until` if it moves */at: Vec3;+ /** where a moving source has got to by `until` */to?: Vec3;/** when it puts out, seconds ([0, Infinity]) */from?: number;+ /** when it stops putting out, seconds (Infinity) */until?: number;/** its radius (0.5 m); the density and heat it puts out a second at its centre (4 and 4); the velocity it pushes out* with, m/s ([0, 0, 0]) */radius?: number;+ /** the density it puts out a second at its centre (4) */rate?: number;+ /** the heat it puts out a second at its centre (4) */heat?: number;+ /** the velocity it pushes out with, m/s ([0, 0, 0]) */speed?: Vec3;}@@ -120,16 +130,21 @@ export interface VolumeProps extends VolumeCommon {/** where density and heat come in over time, and the puffs of density it starts with ([x, y, z, radius] in metres* from the foot) */sources?: VolumeSource[];+ /** density it starts with: [x, y, z, radius] in metres from the foot */puffs?: [number, number, number, number][];/** heat's lift (4) and the density's weight (0.4), m/s² a unit; the heat lost a second (0.8) and the density lost a* second (0.02), fractions */buoyancy?: number;+ /** the density's weight, m/s² a unit (0.4) */weight?: number;+ /** the heat lost a second, a fraction (0.8) */cooling?: number;+ /** the density lost a second, a fraction (0.02) */dissipation?: number;/** fire where it's hot: three colours [red, orange, yellow] (paint's by default), or false for none; and the heat* (a fraction of the hottest source's) each colour starts at ([0.35, 0.6, 0.85]) */fire?: [string, string, string] | false;+ /** the heat (a fraction of the hottest source's) each fire colour starts at ([0.35, 0.6, 0.85]) */fireAt?: [number, number, number];}diff --git a/sdk/render/src/pick.ts b/sdk/render/src/pick.tsindex 1c0c08dc..9feaf205 100644--- a/sdk/render/src/pick.ts+++ b/sdk/render/src/pick.ts@@ -9,12 +9,15 @@ import type { Vec3 } from "./3d";/** The camera as a scene sets it: a PerspectiveCamera's props (fov in degrees, vertical) or an OrthographicCamera's. */export interface PickCamera {+ /** where it stands, metres (x, y, z) */position?: Vec3;+ /** the point it faces */lookAt?: Vec3;/** vertical field of view in degrees (50 by default); ignored when `height` is set */fov?: number;/** an orthographic camera's view height in metres */height?: number;+ /** which way is up for it (+Y) */up?: Vec3;}@@ -22,6 +25,7 @@ export interface PickCamera {export type Pickable = { name: string; box: { min: Vec3; max: Vec3 } } | { name: string; sphere: { center: Vec3; radius: number } };export interface Hit {+ /** the pickable it hit */name: string;/** metres from the camera (from its near plane's point, for an orthographic one) along the ray */distance: number;diff --git a/sdk/render/src/place.ts b/sdk/render/src/place.tsindex 2c9b0c40..64d1dc60 100644--- a/sdk/render/src/place.ts+++ b/sdk/render/src/place.ts@@ -28,25 +28,35 @@ export type PlaceRule =| { clear: string; depth?: number };export interface PlaceObject {+ /** its width, height and depth, metres */size: V3;/** a start (or, with fixed, the place) for its bottom centre */at?: V3;/** degrees */yaw?: number;+ /** it stays at `at`: the rules move the others round it */fixed?: boolean;}export interface Placed {+ /** the centre of its bottom face */base: V3;+ /** its middle, where a centred Cuboid goes */center: V3;+ /** its turn about y, radians (its front is +z before the turn) */yaw: number;+ /** its width, height and depth, metres */size: V3;}export interface PlaceFinding {+ /** the object it's about */part: string;+ /** the rule that couldn't hold */check: string;+ /** "ok", or how bad it is ("error" when the rule broke) */level: string;+ /** what's wrong, in words */says: string;}diff --git a/sdk/render/src/screen.tsx b/sdk/render/src/screen.tsxindex ae2cbc0e..e93cb5bc 100644--- a/sdk/render/src/screen.tsx+++ b/sdk/render/src/screen.tsx@@ -86,7 +86,9 @@ export interface ScreenProps extends ScreenSource {position?: Vec3;/** radians */rotation?: Vec3;+ /** its scale: one number, or x, y and z */scale?: number | Vec3;+ /** [width] or [width, height] in metres ([1.6], its height from the resolution) */size?: [number] | [number, number];/** the composition pass it draws in (Mesh's `pass`; "scene" by default): `pass="ui"` with <Look skip={["ui"]}> keeps* a page crisp under a paint look */diff --git a/sdk/render/src/solid.ts b/sdk/render/src/solid.tsindex 1cb9e0c5..5a5fda22 100644--- a/sdk/render/src/solid.ts+++ b/sdk/render/src/solid.ts@@ -7,14 +7,19 @@ import { native } from "@raea/app/native";export type Vec3 = [number, number, number];export interface Bounds {+ /** the low corner */min: Vec3;+ /** the high corner */max: Vec3;}/** A cross-section of a solid at a height: its area, how many contours, and the contours themselves. */export interface Section {+ /** the section's area, m² */area: number;+ /** how many outlines it has */contours: number;+ /** the outlines, each a list of [x, y] points in the section's plane */polygons: [number, number][][];}@@ -27,10 +32,12 @@ function finite(owner: string, ns: unknown[]): number[] {/** A handle to a native solid. Free it when done with many (or let the run end). */export class Solid {+ /** the native solid's handle */readonly id: number;/** the expression that rebuilds this solid (what a mesh row draws) */readonly expr: string;+ /** A handle to native solid `id`, which `expr` rebuilds; the shape functions make these, rarely you. */constructor(id: number, expr: string) {this.id = id;this.expr = expr;@@ -226,9 +233,13 @@ function section(fn: string, polygons: Polygons | undefined, args: number[] = []/** A 2D shape (Manifold's CrossSection), held by value: its contours (counter-clockwise solid, clockwise holes),* area and bounds. Offset, combine and move it, then extrude or revolve it into a Solid. */export class CrossSection {+ /** its contours, each a list of [x, y] points: counter-clockwise solid, clockwise holes */readonly polygons: Polygons;+ /** its area, m² */readonly area: number;+ /** how many contours it has */readonly contours: number;+ /** its bounding box's low and high corners */readonly bounds: { min: [number, number]; max: [number, number] };private constructor(a: SectionAnswer) {diff --git a/sdk/render/src/splat.tsx b/sdk/render/src/splat.tsxindex 4e319750..7b0652d2 100644--- a/sdk/render/src/splat.tsx+++ b/sdk/render/src/splat.tsx@@ -28,22 +28,30 @@ export interface SplatProps {/** the splat file (staticFile("x.ply")): a 3DGS .ply (spherical harmonics up to degree 3), a .splat or a .spz. A* `x.ply.json` beside it (raea splat train writes one) places it: +Y up, centred, metres */src: string;+ /** where it stands, metres (x, y, z) */position?: Vec3;/** radians, Euler XYZ */rotation?: Vec3;+ /** its scale: one number, or x, y and z */scale?: number | Vec3;/** every gaussian's size times this (1 by default): below 1 the scene breaks into points */splatScale?: number;+ /** 0..1, multiplying every gaussian's */opacity?: number;/** grade: colour times brightness, saturation and contrast about mid grey, times tint */brightness?: number;+ /** 1 as trained; 0 grey, above 1 richer */saturation?: number;+ /** 1 as trained; about mid grey */contrast?: number;+ /** a colour every gaussian's is multiplied by */tint?: string;/** reveal 0..1: each splat scales in as a front passes it, from `revealFrom` (a point; the centre by default)* outward, or along `revealAxis` (a plane sweeping through) when that's given */reveal?: number;+ /** the point the reveal grows outward from (the centre by default) */revealFrom?: Vec3;+ /** a direction: the reveal sweeps a plane along it instead of growing from a point */revealAxis?: Vec3;/** how wide the front is, as a share of the sweep (0.15) */revealSoft?: number;@@ -63,13 +71,17 @@ export interface SplatProps {spread?: number;/** explode 0..1: thrown out from the centre, falling and fading */explode?: number;+ /** a ripple running out through the splats: amplitude, wavelength and phase */wave?: SplatWave;/** radians a metre about the vertical through the centre */twist?: number;+ /** becomes another splat file: `to` and `amount` 0..1 */morph?: SplatMorph;/** a value the composition passes (a beat's envelope 0..1): bigger by pulseScale, brighter by pulseGlow */pulse?: number;+ /** how much bigger a full pulse makes it */pulseScale?: number;+ /** how much brighter a full pulse makes it */pulseGlow?: number;/** nothing past this many metres from the centre (trims a trained scene's floaters) */crop?: number;diff --git a/sdk/video/src/input-region.tsx b/sdk/video/src/input-region.tsxindex 4c68e59d..87b350dd 100644--- a/sdk/video/src/input-region.tsx+++ b/sdk/video/src/input-region.tsx@@ -48,12 +48,27 @@ function boxed(timeline: InputTimeline, b: Box): InputTimeline {});}+export interface InputRegionProps {+ /** the box's left edge, composition px */+ x: number;+ /** its top edge, composition px */+ y: number;+ /** its width, px */+ w: number;+ /** its height, px */+ h: number;+ /** page px over the box's own points (1): the pointer is divided by it */+ scale?: number;+ /** the game or panel that sees the pointer as its own */+ children?: ReactNode;+}+/*** Its children hear the pointer in their own box (x, y, w, h in points; the page's pixels are `scale` points each), as* a panel does when it's a page of its own: a press inside the box is the box's until it's let go. Outside the box,* and while another box holds a press, they see no pointer; keys reach every box.*/-export function InputRegion({ x, y, w, h, scale = 1, children }: { x: number; y: number; w: number; h: number; scale?: number; children?: ReactNode }) {+export function InputRegion({ x, y, w, h, scale = 1, children }: InputRegionProps) {const clock = useContext(ClockContext);// its copy is a new object each frame, so its children hear the frame through it: it hears it from the ClockuseClockTick(clock);diff --git a/sdk/video/src/media.tsx b/sdk/video/src/media.tsxindex dde04e1e..7bb401b4 100644--- a/sdk/video/src/media.tsx+++ b/sdk/video/src/media.tsx@@ -9,10 +9,15 @@ import { jsx } from "react/jsx-runtime";export type VolumeProp = number | ((mediaFrame: number) => number);export interface MediaProps {+ /** the file: staticFile("clip.mp4"), or a generated asset */src: string;+ /** the media's own frame it starts playing from (0); the same as trimBefore */startFrom?: number;+ /** the media's frame it stops before (exclusive): it holds the last frame, or loops; the same as trimAfter */endAt?: number;+ /** frames of the media cut off its start (the newer name for startFrom) */trimBefore?: number;+ /** the media's frame it's cut at (the newer name for endAt) */trimAfter?: number;/** linear gain, 1 being unity (0.5 is about -6 dB, 1.78 about +5 dB), or a function of the media's own frame */volume?: VolumeProp;@@ -22,14 +27,20 @@ export interface MediaProps {fadeIn?: number;/** ours: seconds to ramp the sound out to silence at its end */fadeOut?: number;+ /** how fast it plays (1): 2 is double speed */playbackRate?: number;+ /** play no sound */muted?: boolean;+ /** start again from `startFrom` when it reaches `endAt` */loop?: boolean;/** the bus it plays into: a named channel of the edit's Tone graph (music, sfx, voice, ambience, ui), so it takes* that bus's volume, effects and ducking (raea/tone `buses`) */bus?: string;+ /** the entity's name, for picking, the inspector and world.* */name?: string;+ /** Tailwind or CSS classes */className?: string;+ /** inline style */style?: CSSProperties;}diff --git a/sdk/video/src/nudge.tsx b/sdk/video/src/nudge.tsxindex 9c72417c..03f9affc 100644--- a/sdk/video/src/nudge.tsx+++ b/sdk/video/src/nudge.tsx@@ -6,7 +6,9 @@ import { AbsoluteFill } from "./timeline";export interface NudgeProps {/** how far to move it, in the composition's pixels */x?: number;+ /** how far to move it down, in the composition's pixels */y?: number;+ /** the part it places: an element, or a component, which moves inside a full-frame layer */children?: ReactNode;}diff --git a/sdk/video/src/overlay.tsx b/sdk/video/src/overlay.tsxindex 52aa70cc..037f3fcb 100644--- a/sdk/video/src/overlay.tsx+++ b/sdk/video/src/overlay.tsx@@ -10,8 +10,15 @@ export function overlays(): string[] {return Array.isArray(o) ? o.filter((x): x is string => typeof x === "string") : [];}+export interface OverlayProps {+ /** the overlay's name, as the render asks for it */+ name: string;+ /** what the overlay draws */+ children?: ReactNode;+}+/** Its children only in a render asked for the overlay `name`. */-export function Overlay({ name, children }: { name: string; children?: ReactNode }) {+export function Overlay({ name, children }: OverlayProps) {const on = overlays();return on.includes(name) || on.includes("*") ? (children ?? null) : null;}diff --git a/sdk/video/src/panel.ts b/sdk/video/src/panel.tsindex c2f7b069..8e7856d2 100644--- a/sdk/video/src/panel.ts+++ b/sdk/video/src/panel.ts@@ -11,8 +11,11 @@ import type { FrameInput } from "@raea/app/clock";/** One action: what it does (for the agent), its arguments by name with a few words each, and what it does to the* panel's state. */export interface PanelAction<S, A = any> {+ /** what the action does, for the agent */about: string;+ /** its arguments by name, a few words each */args?: Record<string, string>;+ /** the panel's state after it */run: (state: S, args: A) => S;}export type PanelActions<S> = Record<string, PanelAction<S>>;diff --git a/sdk/video/src/region.tsx b/sdk/video/src/region.tsxindex f8998bc6..23734696 100644--- a/sdk/video/src/region.tsx+++ b/sdk/video/src/region.tsx@@ -7,10 +7,15 @@ const NAMES: readonly RegionName[] = ["auto", "top", "bottom", "center", "full"]/** The band a Region occupies, in composition px. */export interface RegionBox {+ /** the band it took: top, bottom, center or full ("auto" resolves to top or bottom) */name: RegionName;+ /** the left edge, px */x: number;+ /** the top edge, px */y: number;+ /** width, px */w: number;+ /** height, px */h: number;}@@ -55,10 +60,15 @@ export function useRegion(): RegionBox {}export interface RegionProps {+ /** the band: "auto" (default) takes the larger of top and bottom; top and bottom stay clear of the face; center is the middle third; full is the safe area */name?: RegionName;+ /** the gap kept from the face and the sides, as a share of the width (0.06) */margin?: number;+ /** merged under the box's own placement */style?: CSSProperties;+ /** Tailwind or CSS classes */className?: string;+ /** what goes in the band; `useRegion()` reads its box */children?: ReactNode;}@@ -115,15 +125,20 @@ export function Region({ name = "auto", margin = 0.06, style, className, childre}export interface ProofPart extends Rect {+ /** the part's name, in the faults */name: string;/** the band the part must fit in, [top, bottom] in px */band?: [number, number];}export interface ProofInput {+ /** the composition's width, px */width: number;+ /** the composition's height, px */height: number;+ /** the face's box, when perception found one */face?: Rect;+ /** the measured boxes of the parts to check */parts: ProofPart[];}diff --git a/sdk/video/src/registry.tsx b/sdk/video/src/registry.tsxindex cf9c624f..2eb29b45 100644--- a/sdk/video/src/registry.tsx+++ b/sdk/video/src/registry.tsx@@ -6,12 +6,19 @@ import { Region } from "./region";import { Freeze, Loop, Sequence, Series } from "./timeline";export interface CompositionProps<P extends Record<string, unknown> = Record<string, unknown>> {+ /** the composition's id: letters, digits and dashes (`raea render --composition` picks it) */id: string;+ /** the React component it renders */component: ComponentType<P>;+ /** in px */width: number;+ /** in px */height: number;+ /** frames a second */fps: number;+ /** its length in frames */durationInFrames: number;+ /** the props it's rendered with (JSON-like values only) */defaultProps?: P;/** a hand edit laid over the composition (docs/craft-system.md, L): written back by the app's timeline */edit?: Edit;@@ -20,16 +27,24 @@ export interface CompositionProps<P extends Record<string, unknown> = Record<str/** A hand edit: `segments` are the composition's own frame ranges, [from, to), played one after another, so a trim,* a split, a cut word or a moved span is a change to this list; the length becomes their sum. */export interface Edit {+ /** the composition's own frame ranges, [from, to), played one after another */segments?: readonly (readonly [number, number])[];}export interface RegisteredComposition {+ /** the composition's id: letters, digits and dashes (`raea render --composition` picks it) */id: string;+ /** the React component it renders */component: ComponentType<any>;+ /** in px */width: number;+ /** in px */height: number;+ /** frames a second */fps: number;+ /** its length in frames */durationInFrames: number;+ /** the props it's rendered with (JSON-like values only) */defaultProps: Record<string, unknown>;}diff --git a/sdk/video/src/timeline.tsx b/sdk/video/src/timeline.tsxindex 1cffb7b5..1f76c7dd 100644--- a/sdk/video/src/timeline.tsx+++ b/sdk/video/src/timeline.tsx@@ -6,8 +6,11 @@ import { isGeneratedAsset } from "@raea/asset/assets";import { Audio } from "./media";export interface AbsoluteFillProps {+ /** merged over the fill's own style (absolute, inset 0, a flex column) */style?: CSSProperties;+ /** Tailwind or CSS classes */className?: string;+ /** what fills it */children?: ReactNode;[attr: string]: unknown;}@@ -34,14 +37,23 @@ export function AbsoluteFill({ style, children, ...rest }: AbsoluteFillProps) {export type SequenceLayout = "absolute-fill" | "none";export interface SequenceProps {+ /** the parent frame its frame 0 falls on (0) */from?: number;+ /** how many frames it shows its children (forever by default) */durationInFrames?: number;+ /** its label in the timeline and the render manifest (`data-sequence`) */name?: string;+ /** "absolute-fill" (default) wraps the children in a full-size box; "none" adds no box */layout?: SequenceLayout;+ /** the width its children see, px (the parent's by default) */width?: number;+ /** the height its children see, px (the parent's by default) */height?: number;+ /** the wrapping box's style */style?: CSSProperties;+ /** the wrapping box's classes */className?: string;+ /** what plays in it, at its own local time */children?: ReactNode;}@@ -145,6 +157,7 @@ export function Sequence(props: SequenceProps) {}export interface SeriesSequenceProps extends Omit<SequenceProps, "from" | "layout"> {+ /** frames from the previous slot's end to this one's start (0); negative overlaps */offset?: number;}@@ -165,8 +178,13 @@ function flatten(children: ReactNode): ReactNode[] {return out;}+export interface SeriesProps {+ /** the Series.Sequence slots, played back to back */+ children?: ReactNode;+}+/** Plays its Series.Sequence children back to back, each shifted by its own offset. */-function SeriesImpl({ children }: { children?: ReactNode }) {+function SeriesImpl({ children }: SeriesProps) {const slots = flatten(children);let start = 0;const placed: ReactNode[] = [];@@ -197,12 +215,19 @@ function SeriesImpl({ children }: { children?: ReactNode }) {export const Series = Object.assign(SeriesImpl, { Sequence: SeriesSequence });export interface LoopProps {+ /** the length of one loop, in frames */durationInFrames: number;+ /** how many times it plays (forever by default) */times?: number;+ /** its label in the timeline and the render manifest */name?: string;+ /** "absolute-fill" (default) or "none", as a Sequence's */layout?: SequenceLayout;+ /** the wrapping box's style */style?: CSSProperties;+ /** the wrapping box's classes */className?: string;+ /** what loops */children?: ReactNode;}@@ -234,7 +259,9 @@ export function Loop(props: LoopProps) {}export interface FreezeProps {+ /** the frame its children see, whatever the parent's frame */frame: number;+ /** what's held */children?: ReactNode;}diff --git a/tools/manual-ref.sh b/tools/manual-ref.shindex 93ce9c5b..3e4cb22e 100755--- a/tools/manual-ref.sh+++ b/tools/manual-ref.sh@@ -1,9 +1,22 @@#!/usr/bin/env bash# The manual's generated references (raea.io/docs/reference/cli/ and /sdk/): `gen` rewrites their generated blocks,-# `check` fails when one is out of date, a flag has no description, or a verb or import path is in no group.-# tools/manual-ref.sh gen|check (RAEA_BIN names the raea whose `help --json` the CLI pages come from)+# `check` fails when one is out of date, a flag, prop, field or member has no description, or a verb or import path is+# in no group.+# tools/manual-ref.sh gen|check (RAEA_BIN names the raea whose `help --json` the CLI pages come from;+# RAEA_MODULES the checkout whose node_modules an export without them uses)set -euo pipefailcd "$(dirname "$0")/.."+root=$PWDmode="${1:-check}"+mods=${RAEA_MODULES:-$root}+if [ "$mods" != "$root" ]; then+ # an export (tools/agents/check --lane): the SDK's imports resolve through the checkout's node_modules, linked in+ # where missing, as tools/context-examples.sh links them+ for m in "$mods"/sdk/*/node_modules; do+ d=$root/${m#"$mods"/}+ [ -d "$(dirname "$d")" ] || continue # a package the export hasn't got (a private one)+ [ -e "$d" ] || { rm -f "$d"; ln -s "$m" "$d"; }+ done+fibun tools/manual-ref/cli.ts "$mode"bun tools/manual-ref/sdk.ts "$mode"diff --git a/tools/manual-ref/bevy-docs.json b/tools/manual-ref/bevy-docs.jsonindex 4a6df20b..58f51ecc 100644--- a/tools/manual-ref/bevy-docs.json+++ b/tools/manual-ref/bevy-docs.json@@ -1,14 +1,54 @@{- "bevy_animation::AnimationClip": {- "doc": "A list of `VariableCurve`s and the `AnimationTargetId`s to which they apply.",+ "bevy_a11y::AccessibilityRequested": {+ "doc": "Tracks whether an assistive technology has requested accessibility information.","fields": {}},- "bevy_animation::graph::AnimationGraph": {- "doc": "A graph structure that describes how animation clips are to be blended together.",+ "bevy_a11y::ManageAccessibilityUpdates": {+ "doc": "Determines whether Bevy's ECS updates the accessibility tree.",+ "fields": {}+ },+ "bevy_animation::ActiveAnimation": {+ "doc": "An animation that an `AnimationPlayer` is currently either playing or was playing, but is presently paused.",+ "fields": {}+ },+ "bevy_animation::AnimatedBy": {+ "doc": "A component that links an animated entity to an entity containing an `AnimationPlayer`. Typically used alongside the `AnimationTargetId` component - the linked `AnimationPlayer` plays `AnimationClip` assets, and the `AnimationTargetId` identifies which curves in the `AnimationClip` will affect the target entity.",+ "fields": {}+ },+ "bevy_animation::AnimationPlayer": {+ "doc": "Animation controls.",+ "fields": {}+ },+ "bevy_animation::AnimationTargetId": {+ "doc": "A component that identifies which parts of an `AnimationClip` asset can be applied to an entity. Typically used alongside the `AnimatedBy` component.",+ "fields": {}+ },+ "bevy_animation::RepeatAnimation": {+ "doc": "Repetition behavior of an animation.",+ "fields": {+ "Never": "The animation will finish after running once.",+ "Count": "The animation will finish after running \"n\" times.",+ "Forever": "The animation will never finish."+ }+ },+ "bevy_animation::graph::AnimationGraphHandle": {+ "doc": "A `Handle` to the `AnimationGraph` to be used by the `AnimationPlayer` on the same entity.",+ "fields": {}+ },+ "bevy_animation::transition::AnimationTransition": {+ "doc": "An animation that is being faded out as part of a transition",+ "fields": {}+ },+ "bevy_animation::transition::AnimationTransitions": {+ "doc": "Manages fade-out of animation blend factors, allowing for smooth transitions between animations.",+ "fields": {}+ },+ "bevy_anti_alias::contrast_adaptive_sharpening::ContrastAdaptiveSharpening": {+ "doc": "Applies a contrast adaptive sharpening (CAS) filter to the camera.","fields": {- "graph": "The `petgraph` data structure that defines the animation graph.",- "root": "The index of the root node in the animation graph.",- "mask_groups": "The mask groups that each animation target (bone) belongs to."+ "enabled": "Enable or disable sharpening.",+ "sharpening_strength": "Adjusts sharpening strength. Higher values increase the amount of sharpening.",+ "denoise": "Whether to try and avoid sharpening areas that are already noisy."}},"bevy_anti_alias::fxaa::Fxaa": {@@ -25,6 +65,83 @@"preset": "A predefined set of SMAA parameters: i.e. a quality level."}},+ "bevy_anti_alias::smaa::SmaaPreset": {+ "doc": "A preset quality level for SMAA.",+ "fields": {+ "Low": "Four search steps; no diagonal or corner detection.",+ "Medium": "Eight search steps; no diagonal or corner detection.",+ "High": "Sixteen search steps, 8 diagonal search steps, and corner detection.",+ "Ultra": "Thirty-two search steps, 8 diagonal search steps, and corner detection."+ }+ },+ "bevy_anti_alias::taa::TemporalAntiAliasing": {+ "doc": "Component to apply temporal anti-aliasing to a 3D camera.",+ "fields": {+ "reset": "Set to true to delete the saved temporal history (past frames)."+ }+ },+ "bevy_app::app::AppExit": {+ "doc": "A `Message` that indicates the `App` should exit. If one or more of these are present at the end of an update, the runner will end and (maybe) return control to the caller.",+ "fields": {+ "Success": "`App` exited without any problems.",+ "Error": "The `App` experienced an unhandleable error. Holds the exit code we expect our app to return."+ }+ },+ "bevy_asset::assets::AssetIndex": {+ "doc": "A generational runtime-only identifier for a specific `Asset` stored in `Assets`. This is optimized for efficient runtime usage and is not suitable for identifying assets across app runs.",+ "fields": {}+ },+ "bevy_audio::audio::DefaultSpatialScale": {+ "doc": "The default scale factor applied to the positions of audio sources and listeners for spatial audio. Can be overridden for individual sounds in `PlaybackSettings`.",+ "fields": {}+ },+ "bevy_audio::audio::PlaybackMode": {+ "doc": "The way Bevy manages the sound playback.",+ "fields": {+ "Once": "Play the sound once. Do nothing when it ends.",+ "Loop": "Repeat the sound forever.",+ "Despawn": "Despawn the entity and its children when the sound finishes playing.",+ "Remove": "Remove the audio components from the entity, when the sound finishes playing."+ }+ },+ "bevy_audio::audio::PlaybackSettings": {+ "doc": "Initial settings to be used when audio starts playing.",+ "fields": {+ "mode": "The desired playback behavior.",+ "volume": "Volume to play at.",+ "speed": "Speed to play at.",+ "paused": "Create the sink in paused state. Useful for \"deferred playback\", if you want to prepare the entity, but hear the sound later.",+ "muted": "Whether to create the sink in muted state or not.",+ "spatial": "Enables spatial audio for this source.",+ "spatial_scale": "Optional scale factor applied to the positions of this audio source and the listener, overriding the default value configured on `AudioPlugin::default_spatial_scale`.",+ "start_position": "The point in time in the audio clip where playback should start. If set to `None`, it will play from the beginning of the clip.",+ "duration": "How long the audio should play before stopping. If set, the clip will play for at most the specified duration. If set to `None`, it will play for as long as it can."+ }+ },+ "bevy_audio::audio::SpatialListener": {+ "doc": "Settings for the listener for spatial audio sources.",+ "fields": {+ "left_ear_offset": "Left ear position relative to the `GlobalTransform`.",+ "right_ear_offset": "Right ear position relative to the `GlobalTransform`."+ }+ },+ "bevy_audio::audio::SpatialScale": {+ "doc": "A scale factor applied to the positions of audio sources and listeners for spatial audio.",+ "fields": {}+ },+ "bevy_audio::volume::GlobalVolume": {+ "doc": "Use this `Resource` to control the global volume of all audio.",+ "fields": {+ "volume": "The global volume of all audio."+ }+ },+ "bevy_audio::volume::Volume": {+ "doc": "A `Volume` represents an audio source's volume level.",+ "fields": {+ "Linear": "Create a new `Volume` from the given volume in the linear scale.",+ "Decibels": "Create a new `Volume` from the given volume in decibels."+ }+ },"bevy_camera::Viewport": {"doc": "Render viewport configuration for the `Camera` component.","fields": {@@ -47,1260 +164,5624 @@"sub_camera_view": "If set, this camera will be a sub camera of a large view, defined by a `SubCameraView`."}},- "bevy_camera::camera::Exposure": {- "doc": "How much energy a `Camera3d` absorbs from incoming light.",+ "bevy_camera::camera::CameraMainTextureUsages": {+ "doc": "This component lets you control the `TextureUsages` field of the main texture generated for the camera",+ "fields": {}+ },+ "bevy_camera::camera::CameraOutputMode": {+ "doc": "Control how this `Camera` outputs once rendering is completed.","fields": {- "ev100": "<https://en.wikipedia.org/wiki/Exposure_value#Tabulated_exposure_values>"+ "Write": "Writes the camera output to configured render target.",+ "Skip": "Skips writing the camera output to the configured render target. The output will remain in the Render Target's \"intermediate\" textures, which a camera with a higher order should write to the render target using `CameraOutputMode::Write`. The \"skip\" mode can easily prevent render results from being displayed, or cause them to be lost. Only use this if you know what you are doing! In camera setups with multiple active cameras rendering to the same `RenderTarget`, the Skip mode can be used to remove unnecessary / redundant writes to the final output texture, removing unnecessary render passes."}},- "bevy_camera::clear_color::ClearColorConfig": {- "doc": "For a camera, specifies the color used to clear the viewport before rendering or when writing to the final render target texture.",+ "bevy_camera::camera::ComputedCameraValues": {+ "doc": "Holds internally computed `Camera` values.",+ "fields": {}+ },+ "bevy_camera::camera::Exposure": {+ "doc": "How much energy a `Camera3d` absorbs from incoming light.","fields": {- "Default": "The clear color is taken from the world's `ClearColor` resource.",- "Custom": "The given clear color is used, overriding the `ClearColor` resource defined in the world.",- "None": "No clear color is used: the camera will simply draw on top of anything already in the viewport."+ "ev100": "<https://en.wikipedia.org/wiki/Exposure_value#Tabulated_exposure_values>"}},- "bevy_camera::components::Camera3d": {- "doc": "A 3D camera component. Enables the main 3D render graph for a `Camera`.",+ "bevy_camera::camera::ImageRenderTarget": {+ "doc": "A render target that renders to an `Image`.","fields": {- "depth_load_op": "The depth clear operation to perform for the main 3d pass.",- "depth_texture_usages": "The texture usages for the depth texture created for the main 3d pass."+ "handle": "The image to render to.",+ "scale_factor": "The scale factor of the render target image, corresponding to the scale factor for a window target. This should almost always be 1.0."}},- "bevy_camera::components::Hdr": {- "doc": "If this component is added to a camera, the camera will use an intermediate \"high dynamic range\" render texture. This allows rendering with a wider range of lighting values. However, this does *not* affect whether the camera will render with hdr display output (which bevy does not support currently) and only affects the intermediate render texture.",- "fields": {}- },- "bevy_camera::projection::Projection": {- "doc": "Component that defines how to compute a `Camera`'s projection matrix.",+ "bevy_camera::camera::MainPassResolutionOverride": {+ "doc": "Override the resolution a 3d camera's main pass is rendered at.","fields": {}},- "bevy_camera::visibility::render_layers::RenderLayers": {- "doc": "Defines which rendering layers an entity belongs to.",+ "bevy_camera::camera::ManualTextureViewHandle": {+ "doc": "A unique id that corresponds to a specific `ManualTextureView` in the `ManualTextureViews` collection.","fields": {}},- "bevy_color::Okhsla": {- "doc": "</div>",+ "bevy_camera::camera::NormalizedRenderTarget": {+ "doc": "Normalized version of the render target.","fields": {- "hue": "The hue channel. [0.0, 360.0]",- "saturation": "The saturation channel. [0.0, 1.0]",- "lightness": "The lightness channel. [0.0, 1.0]",- "alpha": "The alpha channel. [0.0, 1.0]"+ "Window": "Window to which the camera's view is rendered.",+ "Image": "Image to which the camera's view is rendered.",+ "TextureView": "Texture View to which the camera's view is rendered. Useful when the texture view needs to be created outside of Bevy, for example OpenXR.",+ "None": "The camera won't render to any color target."}},- "bevy_feathers::controls::AngleDegrees": {- "doc": "Unit representing an angle. Internally this is represented as radians, but the preferred display format is degrees. This will display the degree symbol (°) except when in editing mode, in which case it will use the suffix \"d\" which is easier to type.",- "fields": {}- },- "bevy_feathers::controls::ButtonVariant": {- "doc": "Color variants for buttons. This also functions as a component used by the dynamic styling system to identify which entities are buttons.",+ "bevy_camera::camera::RenderTarget": {+ "doc": "The \"target\" that a `Camera` will render to. For example, this could be a `Window` swapchain or an `Image`.","fields": {- "Normal": "The standard button appearance",- "Primary": "A button with a more prominent color, this is used for \"call to action\" buttons, default buttons for dialog boxes, and so on.",- "Plain": "Don't display the button background unless hovering or pressed."+ "Window": "Window to which the camera's view is rendered.",+ "Image": "Image to which the camera's view is rendered.",+ "TextureView": "Texture View to which the camera's view is rendered. Useful when the texture view needs to be created outside of Bevy, for example OpenXR.",+ "None": "The camera won't render to any color target."}},- "bevy_feathers::controls::ColorChannel": {- "doc": "Indicates which color channel we want to edit.",+ "bevy_camera::camera::RenderTargetInfo": {+ "doc": "Information about the current `RenderTarget`.","fields": {- "Red": "Editing the RGB red channel (0..=1)",- "Green": "Editing the RGB green channel (0..=1)",- "Blue": "Editing the RGB blue channel (0..=1)",- "HslHue": "Editing the hue channel (0..=360)",- "HslSaturation": "Editing the chroma / saturation channel (0..=1)",- "HslLightness": "Editing the luminance channel (0..=1)",- "Alpha": "Editing the alpha channel (0..=1)",- "OkhslHue": "Editing the Okhsl Hue channel (0..=360)",- "OkhslSaturation": "Editing the Okhsl Saturation channel (0..=1)",- "OkhslLightness": "Editing the Okhsl Lightness channel (0..=1)"+ "physical_size": "The physical size of this render target (in physical pixels, ignoring scale factor).",+ "scale_factor": "The scale factor of this render target."}},- "bevy_feathers::controls::Dimensionless": {- "doc": "A `UnitsFormat` meaning \"no units\", which is the default units. This just does straight-up number parsing and formatting with no suffix.",+ "bevy_camera::camera::ShadowLodOrigin": {+ "doc": "The entity that Bevy uses to resolve visibility ranges when no specific camera is applicable.","fields": {}},- "bevy_feathers::controls::FeathersButton": {- "doc": "A button widget.",- "fields": {}+ "bevy_camera::camera::SubCameraView": {+ "doc": "Settings to define a camera sub view.",+ "fields": {+ "full_size": "Size of the entire camera view",+ "offset": "Offset of the sub camera",+ "size": "Size of the sub camera"+ }},- "bevy_feathers::controls::FeathersCheckbox": {- "doc": "A checkbox widget.",- "fields": {}+ "bevy_camera::camera::Viewport": {+ "doc": "Render viewport configuration for the `Camera` component.",+ "fields": {+ "physical_position": "The physical position to render this viewport to within the `RenderTarget` of this `Camera`. (0,0) corresponds to the top-left corner",+ "physical_size": "The physical size of the viewport rectangle to render to within the `RenderTarget` of this `Camera`. The origin of the rectangle is in the top-left corner.",+ "depth": "The minimum and maximum depth to render (on a scale from 0.0 to 1.0)."+ }},- "bevy_feathers::controls::FeathersColorInput": {- "doc": "A button which displays a color swatch; when clicked, it displays a popup containing a color picker.",+ "bevy_camera::clear_color::ClearColor": {+ "doc": "A `Resource` that stores the default color that cameras use to clear the screen between frames.","fields": {}},- "bevy_feathers::controls::FeathersColorPlane": {- "doc": "A \"color plane\" widget, which is a 2d picker that allows selecting two components of a color space.",+ "bevy_camera::clear_color::ClearColorConfig": {+ "doc": "For a camera, specifies the color used to clear the viewport before rendering or when writing to the final render target texture.","fields": {- "RedGreen": "Show red on the horizontal axis and green on the vertical.",- "RedBlue": "Show red on the horizontal axis and blue on the vertical.",- "GreenBlue": "Show green on the horizontal axis and blue on the vertical.",- "HueSaturation": "Show hue on the horizontal axis and saturation on the vertical.",- "HueLightness": "Show hue on the horizontal axis and lightness on the vertical.",- "OkhslHueSaturation": "Show OKHSL hue on horizontal axis and saturation on vertical.",- "OkhslHueLightness": "Show OKHSL hue on horizontal axis and lightness on vertical."+ "Default": "The clear color is taken from the world's `ClearColor` resource.",+ "Custom": "The given clear color is used, overriding the `ClearColor` resource defined in the world.",+ "None": "No clear color is used: the camera will simply draw on top of anything already in the viewport."}},- "bevy_feathers::controls::FeathersColorSlider": {- "doc": "A color slider widget.",- "fields": {}+ "bevy_camera::clear_color::MsaaWriteback": {+ "doc": "Controls when MSAA writeback occurs for a camera.",+ "fields": {+ "Off": "Never perform MSAA writeback for this camera.",+ "Auto": "Perform MSAA writeback only when the main pass must load existing content: a fullscreen camera whose main texture a lower camera wrote this frame, or a camera that preserves content across frames with `ClearColorConfig::None`.",+ "Always": "Always perform MSAA writeback, even if this is the first camera rendering to the target. This is useful when content has been written directly to the main texture (e.g., via `write_texture`) and needs to be preserved through the MSAA render pass."+ }},- "bevy_feathers::controls::FeathersColorSwatch": {- "doc": "A color swatch widget.",+ "bevy_camera::components::Camera2d": {+ "doc": "A 2D camera component. Enables the 2D render graph for a `Camera`.","fields": {}},- "bevy_feathers::controls::FeathersDisclosureToggle": {- "doc": "A toggle button which shows a chevron that points either right or down, used to expand or collapse a panel. Functionally, this is equivalent to a checkbox, and has a `Checked` state.",- "fields": {}+ "bevy_camera::components::Camera3d": {+ "doc": "A 3D camera component. Enables the main 3D render graph for a `Camera`.",+ "fields": {+ "depth_load_op": "The depth clear operation to perform for the main 3d pass.",+ "depth_texture_usages": "The texture usages for the depth texture created for the main 3d pass."+ }},- "bevy_feathers::controls::FeathersLazyMenu": {- "doc": "Top-level menu container. This wraps the menu button and provides an anchor for the popover. This is slightly different from the normal `FeathersMenu` in that it dynamically spawns the menu popup when the menu is shown and despawns it when it is closed, instead of simply hiding the popup. This is the recommended approach for popups which are large, expensive to keep around, or whose items are dynamically generated.",+ "bevy_camera::components::Camera3dDepthLoadOp": {+ "doc": "The depth clear operation to perform for the main 3d pass.","fields": {- "popup": "Callback which constructs the popup"+ "Clear": "Clear with a specified value. Note that 0.0 is the far plane due to bevy's use of reverse-z projections.",+ "Load": "Load from memory."}},- "bevy_feathers::controls::FeathersListRow": {- "doc": "A selectable row in a list of items",- "fields": {}+ "bevy_camera::components::CompositingSpace": {+ "doc": "Color space for alpha compositing. Affects how overlapping semi-transparent layers blend.",+ "fields": {+ "Srgb": "Gamma-encoded blending. Matches most image editors. Uses default sRGB target.",+ "Linear": "Linear light blending. Physically correct.",+ "Oklab": "Perceptually uniform blending. Often smoother gradients. Requires `Hdr` because its value can be outside [0, 1]."+ }},- "bevy_feathers::controls::FeathersListView": {- "doc": "A container that displays a scrolling list of items.",+ "bevy_camera::components::Hdr": {+ "doc": "If this component is added to a camera, the camera will use an intermediate \"high dynamic range\" render texture. This allows rendering with a wider range of lighting values. However, this does *not* affect whether the camera will render with hdr display output (which bevy does not support currently) and only affects the intermediate render texture.","fields": {}},- "bevy_feathers::controls::FeathersMenu": {- "doc": "Top-level menu container. This wraps the menu button and provides an anchor for the popover.",+ "bevy_camera::primitives::Aabb": {+ "doc": "An axis-aligned bounding box, defined by: - a center, - the distances from the center to each faces along the axis, the faces are orthogonal to the axis.","fields": {}},- "bevy_feathers::controls::FeathersMenuButton": {- "doc": "A menu button widget. This produces a button that has a dropdown arrow.",- "fields": {}+ "bevy_camera::primitives::CubemapLayout": {+ "doc": "Cubemap layout defines the order of images in a packed cubemap image.",+ "fields": {+ "CrossVertical": "layout in a vertical cross format ```text +y -x -z +x -y +z ```",+ "CrossHorizontal": "layout in a horizontal cross format ```text +y -x -z +x +z -y ```",+ "SequenceVertical": "layout in a vertical sequence ```text +x -x +y -y -z +z ```",+ "SequenceHorizontal": "layout in a horizontal sequence ```text +x -x +y -y -z +z ```"+ }},- "bevy_feathers::controls::FeathersMenuDivider": {- "doc": "A decorative divider between menu items",+ "bevy_camera::primitives::Frustum": {+ "doc": "A frustum component is used on an entity with a `Camera` component to determine which entities will be considered for rendering by this camera. All entities with an `Aabb` component that are not contained by (or crossing the boundary of) the frustum will not be rendered, and not be used in rendering computations.","fields": {}},- "bevy_feathers::controls::FeathersMenuItem": {- "doc": "A menu item widget.",- "fields": {}+ "bevy_camera::primitives::Sphere": {+ "doc": "A sphere, defined by a center and a radius.",+ "fields": {+ "center": "The center of the sphere.",+ "radius": "The radius of the sphere."+ }},- "bevy_feathers::controls::FeathersMenuPopup": {- "doc": "A menu popup widget.",+ "bevy_camera::projection::CustomProjection": {+ "doc": "Holds a dynamic `CameraProjection` trait object. Use `Projection::custom()` to construct a custom projection.","fields": {}},- "bevy_feathers::controls::FeathersMenuToolButton": {- "doc": "A menu button widget with the tool button form factor. This produces a button that has a dropdown arrow.",- "fields": {}+ "bevy_camera::projection::OrthographicProjection": {+ "doc": "Project a 3D space onto a 2D surface using parallel lines, i.e., unlike `PerspectiveProjection`, the size of objects remains the same regardless of their distance to the camera.",+ "fields": {+ "near": "The distance of the near clipping plane in world units.",+ "far": "The distance of the far clipping plane in world units.",+ "viewport_origin": "Specifies the origin of the viewport as a normalized position from 0 to 1, where (0, 0) is the bottom left and (1, 1) is the top right. This determines where the camera's position sits inside the viewport.",+ "scaling_mode": "How the projection will scale to the viewport.",+ "scale": "Scales the projection.",+ "area": "The area that the projection covers relative to `viewport_origin`."+ }},- "bevy_feathers::controls::FeathersNumberInput": {- "doc": "Widget that permits text entry of floating-point numbers. This widget implements two-way synchronization: * it emits values (via a `ValueChange<T>`) event as the user types or drags. The type of ``T`` will be ``f32``, ``f64``, ``i32``, or ``i64`` depending on the `NumberInputValue` component variant. * it listens for the insertion of the `NumberInputValue` component, and replaces the contents of the text buffer based on the value in that event.",- "fields": {}+ "bevy_camera::projection::PerspectiveProjection": {+ "doc": "A 3D camera projection in which distant objects appear smaller than close objects.",+ "fields": {+ "fov": "The vertical field of view (FOV) in radians.",+ "aspect_ratio": "The aspect ratio (width divided by height) of the viewing frustum.",+ "near": "The distance from the camera in world units of the viewing frustum's near plane.",+ "far": "The distance from the camera in world units of the viewing frustum's far plane.",+ "near_clip_plane": "The orientation of a custom clipping plane, as well as its distance from the camera."+ }},- "bevy_feathers::controls::FeathersRadio": {- "doc": "A radio widget.",+ "bevy_camera::projection::Projection": {+ "doc": "Component that defines how to compute a `Camera`'s projection matrix.","fields": {}},- "bevy_feathers::controls::FeathersScrollbar": {- "doc": "A scrollbar. The `target` property should point to an entity whose `ScrollPosition` will be synchronized with the scrollbar.",- "fields": {}+ "bevy_camera::projection::ScalingMode": {+ "doc": "Scaling mode for `OrthographicProjection`.",+ "fields": {+ "WindowSize": "Match the viewport size.",+ "Fixed": "Manually specify the projection's size, ignoring window resizing. The image will stretch.",+ "AutoMin": "Keeping the aspect ratio while the axes can't be smaller than given minimum.",+ "AutoMax": "Keeping the aspect ratio while the axes can't be bigger than given maximum.",+ "FixedVertical": "Keep the projection's height constant; width will be adjusted to match aspect ratio.",+ "FixedHorizontal": "Keep the projection's width constant; height will be adjusted to match aspect ratio."+ }},- "bevy_feathers::controls::FeathersSelect": {- "doc": "Select control which spawns a menu popup with a list of string options # Emitted events * `ValueChange<Entity>` when the selected option is changed.",- "fields": {}+ "bevy_camera::visibility::CascadesVisibleEntities": {+ "doc": "",+ "fields": {+ "entities": "Map of view entity to the visible entities for each cascade frustum."+ }},- "bevy_feathers::controls::FeathersSlider": {- "doc": "A slider widget.",+ "bevy_camera::visibility::DynamicSkinnedMeshBounds": {+ "doc": "Use this component to enable dynamic skinned mesh bounds. The `Aabb` component of the skinned mesh will be automatically updated each frame based on the current joint transforms.","fields": {}},- "bevy_feathers::controls::FeathersTextInput": {- "doc": "Scene function to spawn a text input. For proper styling, this should be enclosed by a `FeathersTextInputContainer`.",+ "bevy_camera::visibility::InheritedVisibility": {+ "doc": "Whether or not an entity is visible in the hierarchy.","fields": {}},- "bevy_feathers::controls::FeathersTextInputContainer": {- "doc": "Decorative frame around a text input widget. This is a separate entity to allow icons (such as \"search\" or \"clear\") to be inserted adjacent to the input.",+ "bevy_camera::visibility::NoFrustumCulling": {+ "doc": "Use this component to opt-out of built-in frustum culling for entities, see `Frustum`.","fields": {}},- "bevy_feathers::controls::FeathersToggleSwitch": {- "doc": "A toggle switch widget.",+ "bevy_camera::visibility::ViewVisibility": {+ "doc": "Algorithmically computed indication of whether an entity is visible and should be extracted for rendering.","fields": {}},- "bevy_feathers::controls::FeathersToolButton": {- "doc": "Tool button scene function: a smaller button for embedding in panel headers.",+ "bevy_camera::visibility::Visibility": {+ "doc": "User indication of whether an entity is visible. Propagates down the entity hierarchy.",+ "fields": {+ "Inherited": "An entity with `Visibility::Inherited` will inherit the Visibility of its `ChildOf` target.",+ "Hidden": "An entity with `Visibility::Hidden` will be unconditionally hidden.",+ "Visible": "An entity with `Visibility::Visible` will be unconditionally visible."+ }+ },+ "bevy_camera::visibility::VisibleEntities": {+ "doc": "Collection of entities visible from the current view.","fields": {}},- "bevy_feathers::controls::LengthMeters": {- "doc": "Unit representing length, where the preferred unit is meters.",+ "bevy_camera::visibility::VisibleMeshEntities": {+ "doc": "Collection of mesh entities visible for 3D lighting.","fields": {}},- "bevy_feathers::controls::NumberInputRange": {- "doc": "Represents numeric limits in different number formats.",+ "bevy_camera::visibility::range::VisibilityRange": {+ "doc": "Specifies the range of distances that this entity must be from the camera in order to be rendered.","fields": {- "F32": "An 'f32' range.",- "F64": "An 'f64' range.",- "I32": "An 'i32' range.",- "I64": "An 'i64' range."+ "start_margin": "The range of distances, in world units, between which this entity will smoothly fade into view as the camera zooms out.",+ "end_margin": "The range of distances, in world units, between which this entity will smoothly fade out of view as the camera zooms out.",+ "use_aabb": "If set to true, Bevy will use the center of the axis-aligned bounding box (`Aabb`) as the position of the mesh for the purposes of visibility range computation."}},- "bevy_feathers::controls::NumberInputValue": {- "doc": "Represents numbers in different formats.",+ "bevy_camera::visibility::render_layers::RenderLayers": {+ "doc": "Defines which rendering layers an entity belongs to.",+ "fields": {}+ },+ "bevy_color::Okhsla": {+ "doc": "</div>","fields": {- "F32": "An `f32` value",- "F64": "An `f64` value",- "I32": "An `i32` value",- "I64": "An `i64` value"+ "hue": "The hue channel. [0.0, 360.0]",+ "saturation": "The saturation channel. [0.0, 1.0]",+ "lightness": "The lightness channel. [0.0, 1.0]",+ "alpha": "The alpha channel. [0.0, 1.0]"}},- "bevy_feathers::controls::NumberInputWrap": {- "doc": "Indicates whether the number input should wrap around the min/max value. This component only applies to `HardLimit`.",+ "bevy_color::color::Color": {+ "doc": "</div>","fields": {- "NoWrap": "The number input will not wrap around the min/max value.",- "Wrap": "The number input will wrap around the min/max value."+ "Srgba": "A color in the sRGB color space with alpha.",+ "LinearRgba": "A color in the linear sRGB color space with alpha.",+ "Hsla": "A color in the HSL color space with alpha.",+ "Hsva": "A color in the HSV color space with alpha.",+ "Hwba": "A color in the HWB color space with alpha.",+ "Laba": "A color in the LAB color space with alpha.",+ "Lcha": "A color in the LCH color space with alpha.",+ "Oklaba": "A color in the Oklab color space with alpha.",+ "Oklcha": "A color in the Oklch color space with alpha.",+ "Xyza": "A color in the XYZ color space with alpha.",+ "Okhsla": "A color in the Okhsl color space with alpha.",+ "Okhsva": "A color in the Okhsv color space with alpha.",+ "Okhwba": "A color in the Okhwb color space with alpha."}},- "bevy_feathers::controls::StandardUnitItem": {- "doc": "Contains the definition of a \"standard metrical unit\". The `StandardUnitKind` struct maintains a table of these items.",+ "bevy_color::hsla::Hsla": {+ "doc": "</div>","fields": {- "suffixes": "e.g. [\"km\"], or [\"cm\"], first entry is canonical",- "scale": "multiply a value in this unit to get the base unit (meters, radians, kg...)"+ "hue": "The hue channel. [0.0, 360.0]",+ "saturation": "The saturation channel. [0.0, 1.0]",+ "lightness": "The lightness channel. [0.0, 1.0]",+ "alpha": "The alpha channel. [0.0, 1.0]"}},- "bevy_feathers::controls::TimeSeconds": {- "doc": "Unit representing time, where the preferred unit is seconds.",- "fields": {}- },- "bevy_feathers::controls::VirtualKeyboard": {- "doc": "A virtual keyboard widget.",- "fields": {}- },- "bevy_feathers::rounded_corners::RoundedCorners": {- "doc": "Allows specifying which corners are rounded and which are sharp. All rounded corners have the same radius. Not all combinations are supported, only the ones that make sense for a segmented buttons.",+ "bevy_color::hsva::Hsva": {+ "doc": "</div>","fields": {- "None": "No corners are rounded.",- "All": "All corners are rounded.",- "TopLeft": "Top-left corner is rounded.",- "TopRight": "Top-right corner is rounded.",- "BottomRight": "Bottom-right corner is rounded.",- "BottomLeft": "Bottom-left corner is rounded.",- "Top": "Top corners are rounded.",- "Right": "Right corners are rounded.",- "Bottom": "Bottom corners are rounded.",- "Left": "Left corners are rounded."+ "hue": "The hue channel. [0.0, 360.0]",+ "saturation": "The saturation channel. [0.0, 1.0]",+ "value": "The value channel. [0.0, 1.0]",+ "alpha": "The alpha channel. [0.0, 1.0]"}},- "bevy_feathers::theme::SurfaceLevel": {- "doc": "Indicates the type of surface context for computing color assignments",+ "bevy_color::hwba::Hwba": {+ "doc": "</div>","fields": {- "Base": "The base layer - window and pane header",- "Higher": "A raised layer - pane and subpane bodies",- "Highest": "The highest level - groups and subpane headers",- "Floating": "An overlay such as a dialog or menu"+ "hue": "The hue channel. [0.0, 360.0]",+ "whiteness": "The whiteness channel. [0.0, 1.0]",+ "blackness": "The blackness channel. [0.0, 1.0]",+ "alpha": "The alpha channel. [0.0, 1.0]"}},- "bevy_feathers::theme::ThemeBackgroundColor": {- "doc": "Component which causes the background color of an entity to be set based on a theme color.",- "fields": {}- },- "bevy_feathers::theme::ThemeBorderColor": {- "doc": "Component which causes the border color of an entity to be set based on a theme color. Only supports setting all borders to the same color.",- "fields": {}- },- "bevy_feathers::theme::ThemeContext": {- "doc": "Component which is placed on a container and which propagates to children. This is used to modify the color assignments based on the background container.",- "fields": {}+ "bevy_color::laba::Laba": {+ "doc": "</div>",+ "fields": {+ "lightness": "The lightness channel. [0.0, 1.5]",+ "a": "The a axis. [-1.5, 1.5]",+ "b": "The b axis. [-1.5, 1.5]",+ "alpha": "The alpha channel. [0.0, 1.0]"+ }},- "bevy_feathers::theme::ThemeProps": {- "doc": "A collection of properties that make up a theme.",+ "bevy_color::lcha::Lcha": {+ "doc": "</div>","fields": {- "token_assignments": "Map of design tokens to semantic tokens.",- "semantic_base": "Map of semantic tokens to colors.",- "semantic_overrides": "Map of semantic tokens + context to colors."+ "lightness": "The lightness channel. [0.0, 1.5]",+ "chroma": "The chroma channel. Typically [0.0, 1.5]",+ "hue": "The hue channel. [0.0, 360.0]",+ "alpha": "The alpha channel. [0.0, 1.0]"}},- "bevy_feathers::theme::ThemedText": {- "doc": "A marker component that is used to indicate that the text entity wants to opt-in to using inherited text styles.",- "fields": {}+ "bevy_color::linear_rgba::LinearRgba": {+ "doc": "</div>",+ "fields": {+ "red": "The red channel. [0.0, 1.0] for SDR colors.",+ "green": "The green channel. [0.0, 1.0] for SDR colors.",+ "blue": "The blue channel. [0.0, 1.0] for SDR colors.",+ "alpha": "The alpha channel. [0.0, 1.0]"+ }},- "bevy_feathers::theme::UiTheme": {- "doc": "The currently selected user interface theme. Overwriting this resource changes the theme.",- "fields": {}+ "bevy_color::okhsla::Okhsla": {+ "doc": "</div>",+ "fields": {+ "hue": "The hue channel. [0.0, 360.0]",+ "saturation": "The saturation channel. [0.0, 1.0]",+ "lightness": "The lightness channel. [0.0, 1.0]",+ "alpha": "The alpha channel. [0.0, 1.0]"+ }},- "bevy_gizmos::retained::Gizmo": {- "doc": "A component that draws the gizmos of a `GizmoAsset`.",+ "bevy_color::okhsva::Okhsva": {+ "doc": "</div>","fields": {- "handle": "The handle to the gizmo to draw.",- "line_config": "The line specific configuration for this gizmo.",- "depth_bias": "How closer to the camera than real geometry the gizmo should be."+ "hue": "The hue channel. [0.0, 360.0]",+ "saturation": "The saturation channel. [0.0, 1.0]",+ "value": "The value channel. [0.0, 1.0]",+ "alpha": "The alpha channel. [0.0, 1.0]"}},- "bevy_image::ImagePlugin": {- "doc": "Adds the `Image` as an asset and makes sure that they are extracted and prepared for the GPU.",+ "bevy_color::okhwba::Okhwba": {+ "doc": "</div>","fields": {- "default_sampler": "The default image sampler to use when `ImageSampler` is set to `Default`.",- "default_compressed_image_processor_extensions": "The file extensions that will be assigned a default compressed image processor. This means they will be automatically compressed unless overridden with a `.meta` file."+ "hue": "The hue channel. [0.0, 360.0]",+ "whiteness": "The whiteness channel. [0.0, 1.0]",+ "blackness": "The blackness channel. [0.0, 1.0]",+ "alpha": "The alpha channel. [0.0, 1.0]"}},- "bevy_image::TextureAtlasLayout": {- "doc": "Stores a map used to lookup the position of a texture in a `TextureAtlas`. This can be used to either use and look up a specific section of a texture, or animate frame-by-frame as a sprite sheet.",+ "bevy_color::oklaba::Oklaba": {+ "doc": "</div>","fields": {- "size": "Total size of texture atlas.",- "textures": "The specific areas of the atlas where each texture can be found"+ "lightness": "The 'lightness' channel. [0.0, 1.0]",+ "a": "The 'a' channel. [-1.0, 1.0]",+ "b": "The 'b' channel. [-1.0, 1.0]",+ "alpha": "The alpha channel. [0.0, 1.0]"}},- "bevy_image::image::Image": {- "doc": "This type is only meant for short-term transmission between same versions and should not be stored anywhere.",+ "bevy_color::oklcha::Oklcha": {+ "doc": "</div>","fields": {- "data": "Raw pixel data. If the image is being used as a storage texture which doesn't need to be initialized by the CPU, then this should be `None`. Otherwise, it should always be `Some`.",- "data_order": "For texture data with layers and mips, this field controls how wgpu interprets the buffer layout.",- "texture_descriptor": "Describes the data layout of the GPU texture.\\ For example, whether a texture contains 1D/2D/3D data, and what the format of the texture data is.",- "sampler": "The `ImageSampler` to use during rendering.",- "texture_view_descriptor": "Describes how the GPU texture should be interpreted.\\ For example, 2D image data could be read as plain 2D, an array texture of layers of 2D with the same dimensions (and the number of layers in that case), a cube map, an array of cube maps, etc.",- "asset_usage": "Where this image asset will be used. See `RenderAssetUsages` for more.",- "copy_on_resize": "Whether this image should be copied on the GPU when resized."+ "lightness": "The 'lightness' channel. [0.0, 1.0]",+ "chroma": "The 'chroma' channel. [0.0, 1.0]",+ "hue": "The 'hue' channel. [0.0, 360.0]",+ "alpha": "The alpha channel. [0.0, 1.0]"}},- "bevy_image::texture_atlas::TextureAtlasLayout": {- "doc": "Stores a map used to lookup the position of a texture in a `TextureAtlas`. This can be used to either use and look up a specific section of a texture, or animate frame-by-frame as a sprite sheet.",+ "bevy_color::srgba::Srgba": {+ "doc": "</div>","fields": {- "size": "Total size of texture atlas.",- "textures": "The specific areas of the atlas where each texture can be found"+ "red": "The red channel. [0.0, 1.0] for SDR colors.",+ "green": "The green channel. [0.0, 1.0] for SDR colors.",+ "blue": "The blue channel. [0.0, 1.0] for SDR colors.",+ "alpha": "The alpha channel. [0.0, 1.0]"}},- "bevy_image::texture_atlas::TextureAtlasSources": {- "doc": "Stores a mapping from sub texture handles to the related area index.",+ "bevy_color::xyza::Xyza": {+ "doc": "</div>","fields": {- "texture_ids": "Maps from a specific image handle to the index in `textures` where they can be found."+ "x": "The x-axis. [0.0, 0.9505] for SDR colors.",+ "y": "The y-axis, intended to represent luminance. [0.0, 1.0] for SDR colors.",+ "z": "The z-axis. [0.0, 1.0889] for SDR colors.",+ "alpha": "The alpha channel. [0.0, 1.0]"}},- "bevy_image::texture_atlas_builder::TextureAtlasBuilder": {- "doc": "A builder which is used to create a texture atlas from many individual sprites.",+ "bevy_core_pipeline::prepass::DeferredPrepass": {+ "doc": "If added to a `bevy_camera::Camera3d` then deferred materials will be rendered to the deferred gbuffer texture and will be available to subsequent passes. Note the default deferred lighting plugin also requires `DepthPrepass` to work correctly.","fields": {}},- "bevy_input::gamepad::Gamepad": {- "doc": "Stores a connected gamepad's metadata such as the name and its `GamepadButton` and `GamepadAxis`.",+ "bevy_core_pipeline::prepass::DeferredPrepassDoubleBuffer": {+ "doc": "Allows querying the previous frame's `DeferredPrepass`.","fields": {}},- "bevy_light::NotShadowCaster": {- "doc": "Add this component to make a `Mesh3d` not cast shadows.",+ "bevy_core_pipeline::prepass::DepthPrepass": {+ "doc": "If added to a `bevy_camera::Camera3d` then depth values will be copied to a separate texture available to the main pass.","fields": {}},- "bevy_light::NotShadowReceiver": {- "doc": "Add this component to make a `Mesh3d` not receive shadows.",+ "bevy_core_pipeline::prepass::DepthPrepassDoubleBuffer": {+ "doc": "Allows querying the previous frame's `DepthPrepass`.","fields": {}},- "bevy_light::ShadowFilteringMethod": {- "doc": "Add this component to a `Camera3d` to control how to anti-alias shadow edges.",+ "bevy_core_pipeline::prepass::MotionVectorPrepass": {+ "doc": "If added to a `bevy_camera::Camera3d` then screen space motion vectors will be copied to a separate texture available to the main pass.",+ "fields": {}+ },+ "bevy_core_pipeline::prepass::NormalPrepass": {+ "doc": "If added to a `bevy_camera::Camera3d` then vertex world normals will be copied to a separate texture available to the main pass. Normals will have normal map textures already applied.",+ "fields": {}+ },+ "bevy_core_pipeline::prepass::background_motion_vectors::NoBackgroundMotionVectors": {+ "doc": "When added to a camera with `MotionVectorPrepass`, disables the automatic background motion vector prepass.",+ "fields": {}+ },+ "bevy_core_pipeline::schedule::RootNonCameraView": {+ "doc": "A render-world marker component for a view that corresponds to neither a camera nor a camera-associated shadow map.",+ "fields": {}+ },+ "bevy_curve::easing::EaseFunction": {+ "doc": "","fields": {- "Hardware2x2": "Hardware 2x2.",- "Gaussian": "Approximates a fixed Gaussian blur, good when TAA isn't in use.",- "Temporal": "A randomized filter that varies over time, good when TAA is in use."+ "Linear": "`f(t) = t`",+ "QuadraticIn": "`f(t) = t²`",+ "QuadraticOut": "`f(t) = -(t * (t - 2.0))`",+ "QuadraticInOut": "Behaves as `EaseFunction::QuadraticIn` for t < 0.5 and as `EaseFunction::QuadraticOut` for t >= 0.5",+ "CubicIn": "`f(t) = t³`",+ "CubicOut": "`f(t) = (t - 1.0)³ + 1.0`",+ "CubicInOut": "Behaves as `EaseFunction::CubicIn` for t < 0.5 and as `EaseFunction::CubicOut` for t >= 0.5",+ "QuarticIn": "`f(t) = t⁴`",+ "QuarticOut": "`f(t) = 1.0 - (1.0 - t)⁴`",+ "QuarticInOut": "Behaves as `EaseFunction::QuarticIn` for t < 0.5 and as `EaseFunction::QuarticOut` for t >= 0.5",+ "QuinticIn": "`f(t) = t⁵`",+ "QuinticOut": "`f(t) = (t - 1.0)⁵ + 1.0`",+ "QuinticInOut": "Behaves as `EaseFunction::QuinticIn` for t < 0.5 and as `EaseFunction::QuinticOut` for t >= 0.5",+ "SmoothStepIn": "Behaves as the first half of `EaseFunction::SmoothStep`.",+ "SmoothStepOut": "Behaves as the second half of `EaseFunction::SmoothStep`.",+ "SmoothStep": "`f(t) = 3t² - 2t³`",+ "SmootherStepIn": "Behaves as the first half of `EaseFunction::SmootherStep`.",+ "SmootherStepOut": "Behaves as the second half of `EaseFunction::SmootherStep`.",+ "SmootherStep": "`f(t) = 6t⁵ - 15t⁴ + 10t³`",+ "SineIn": "`f(t) = 1.0 - cos(t * π / 2.0)`",+ "SineOut": "`f(t) = sin(t * π / 2.0)`",+ "SineInOut": "Behaves as `EaseFunction::SineIn` for t < 0.5 and as `EaseFunction::SineOut` for t >= 0.5",+ "CircularIn": "`f(t) = 1.0 - sqrt(1.0 - t²)`",+ "CircularOut": "`f(t) = sqrt((2.0 - t) * t)`",+ "CircularInOut": "Behaves as `EaseFunction::CircularIn` for t < 0.5 and as `EaseFunction::CircularOut` for t >= 0.5",+ "ExponentialIn": "`f(t) ≈ 2.0^(10.0 * (t - 1.0))`",+ "ExponentialOut": "`f(t) ≈ 1.0 - 2.0^(-10.0 * t)`",+ "ExponentialInOut": "Behaves as `EaseFunction::ExponentialIn` for t < 0.5 and as `EaseFunction::ExponentialOut` for t >= 0.5",+ "ElasticIn": "`f(t) = -2.0^(10.0 * t - 10.0) * sin((t * 10.0 - 10.75) * 2.0 * π / 3.0)`",+ "ElasticOut": "`f(t) = 2.0^(-10.0 * t) * sin((t * 10.0 - 0.75) * 2.0 * π / 3.0) + 1.0`",+ "ElasticInOut": "Behaves as `EaseFunction::ElasticIn` for t < 0.5 and as `EaseFunction::ElasticOut` for t >= 0.5",+ "BackIn": "`f(t) = 2.70158 * t³ - 1.70158 * t²`",+ "BackOut": "`f(t) = 1.0 + 2.70158 * (t - 1.0)³ + 1.70158 * (t - 1.0)²`",+ "BackInOut": "Behaves as `EaseFunction::BackIn` for t < 0.5 and as `EaseFunction::BackOut` for t >= 0.5",+ "BounceIn": "bouncy at the start!",+ "BounceOut": "bouncy at the end!",+ "BounceInOut": "Behaves as `EaseFunction::BounceIn` for t < 0.5 and as `EaseFunction::BounceOut` for t >= 0.5",+ "Steps": "`n` steps connecting the start and the end. Jumping behavior is customizable via `JumpAt`. See `JumpAt` for all the options and visual examples.",+ "Elastic": "`f(omega,t) = 1 - (1 - t)²(2sin(omega * t) / omega + cos(omega * t))`, parametrized by `omega`"}},- "bevy_light::ambient_light::AmbientLight": {- "doc": "An ambient light, which lights the entire scene equally.",+ "bevy_curve::easing::JumpAt": {+ "doc": "Configuration options for the `EaseFunction::Steps` curves. This closely replicates the [CSS step function specification].","fields": {- "color": "The color of the ambient light.",- "brightness": "A direct scale factor multiplied with `color` before being passed to the shader.",- "affects_lightmapped_meshes": "Whether this ambient light has an effect on meshes with lightmaps."+ "Start": "Indicates that the first step happens when the animation begins.",+ "End": "Indicates that the last step happens when the animation ends.",+ "None": "Indicates neither early nor late jumps happen.",+ "Both": "Indicates both early and late jumps happen."}},- "bevy_light::cascade::CascadeShadowConfig": {- "doc": "Controls how cascaded shadow mapping works. Prefer using `CascadeShadowConfigBuilder` to construct an instance.",+ "bevy_dev_tools::fps_overlay::FpsOverlayConfig": {+ "doc": "Configuration options for the FPS overlay.","fields": {- "bounds": "The (positive) distance to the far boundary of each cascade.",- "overlap_proportion": "The proportion of overlap each cascade has with the previous cascade.",- "minimum_distance": "The (positive) distance to the near boundary of the first cascade."+ "text_config": "Configuration of text in the overlay.",+ "text_color": "Color of text in the overlay.",+ "enabled": "Displays the FPS overlay if true.",+ "refresh_interval": "The period after which the FPS overlay re-renders.",+ "frame_time_graph_config": "Configuration of the frame time graph"}},- "bevy_light::directional_light::DirectionalLight": {- "doc": "A Directional light.",+ "bevy_dev_tools::fps_overlay::FrameTimeGraphConfig": {+ "doc": "Configuration of the frame time graph","fields": {- "color": "The color of the light.",- "illuminance": "Illuminance in lux (lumens per square meter), representing the amount of light projected onto surfaces by this light source. Lux is used here instead of lumens because a directional light illuminates all surfaces more-or-less the same way (depending on the angle of incidence). Lumens can only be specified for light sources which emit light from a specific area. The default is `light_consts::lux::AMBIENT_DAYLIGHT` = 10,000.",- "shadow_maps_enabled": "Whether this light casts shadows.",- "contact_shadows_enabled": "Whether this light casts contact shadows.",- "soft_shadow_size": "Whether soft shadows are enabled, and if so, the size of the light.",- "affects_lightmapped_mesh_diffuse": "Whether this directional light contributes diffuse lighting to meshes with lightmaps.",- "shadow_depth_bias": "A value that adjusts the tradeoff between self-shadowing artifacts and proximity of shadows to their casters.",- "shadow_normal_bias": "A bias applied along the direction of the fragment's surface normal. It is scaled to the shadow map's texel size so that it is automatically adjusted to the orthographic projection."+ "enabled": "Is the graph visible",+ "min_fps": "The minimum acceptable FPS",+ "target_fps": "The target FPS"}},- "bevy_light::directional_light::DirectionalLightShadowMap": {- "doc": "Controls the resolution of `DirectionalLight` and `SpotLight` shadow maps.",+ "bevy_dev_tools::infinite_grid::InfiniteGrid": {+ "doc": "The component used to represent an infinite grid.",+ "fields": {}+ },+ "bevy_dev_tools::infinite_grid::InfiniteGridSettings": {+ "doc": "Component to configure the infinite grid",+ "fields": {+ "x_axis_color": "The color of the X axis",+ "z_axis_color": "The color of the Z axis",+ "minor_line_color": "The color of the minor lines of the grid",+ "major_line_color": "The color of the major lines of the grid",+ "fadeout_distance": "How far the grid will be visible relative to the camera",+ "dot_fadeout_strength": "How quickly the grid will fadeout",+ "scale": "The scale of the distance between the lines. A smaller value increases the distance between the lines",+ "major_line_interval": "The interval at which major lines are drawn"+ }+ },+ "bevy_dev_tools::picking_debug::PointerDebugOverlay": {+ "doc": "Stores the debug overlay entity associated with a pointer.",+ "fields": {}+ },+ "bevy_dev_tools::picking_debug::PointerDebugOverlayOf": {+ "doc": "Relates a debug overlay entity to the pointer it visualizes.","fields": {- "size": "Must be a power of two to avoid unstable cascade positioning."+ "pointer": "The pointer visualized by this debug overlay."}},- "bevy_light::point_light::PointLight": {- "doc": "A light that emits light in all directions from a central point.",+ "bevy_dev_tools::render_debug::GlobalRenderDebugOverlay": {+ "doc": "Configure the render debug overlay globally. Can be overwritten by using a `RenderDebugOverlay` component.","fields": {- "color": "The color of this light source.",- "intensity": "Luminous power in lumens, representing the amount of light emitted by this source in all directions.",- "range": "Cut-off for the light's area-of-effect. Fragments outside this range will not be affected by this light at all, so it's important to tune this together with `intensity` to prevent hard lighting cut-offs.",- "radius": "Simulates a light source coming from a spherical volume with the given radius.",- "shadow_maps_enabled": "Whether this light casts shadows.",- "contact_shadows_enabled": "Whether this light casts contact shadows.",- "soft_shadows_enabled": "Whether soft shadows are enabled.",- "affects_lightmapped_mesh_diffuse": "Whether this point light contributes diffuse lighting to meshes with lightmaps.",- "shadow_depth_bias": "A bias used when sampling shadow maps to avoid \"shadow-acne\", or false shadow occlusions that happen as a result of shadow-map fragments not mapping 1:1 to screen-space fragments. Too high of a depth bias can lead to shadows detaching from their casters, or \"peter-panning\". This bias can be tuned together with `shadow_normal_bias` to correct shadow artifacts for a given scene.",- "shadow_normal_bias": "A bias applied along the direction of the fragment's surface normal. It is scaled to the shadow map's texel size so that it can be small close to the camera and gets larger further away.",- "shadow_map_near_z": "The distance from the light to near Z plane in the shadow map."+ "enabled": "Enables or disables drawing the overlay.",+ "mode": "The kind of data to write to the overlay.",+ "opacity": "The opacity of the overlay, to allow seeing the rendered image underneath."}},- "bevy_light::point_light::PointLightShadowMap": {- "doc": "Controls the resolution of `PointLight` shadow maps.",+ "bevy_dev_tools::render_debug::RenderDebugMode": {+ "doc": "The kind of renderer data to visualize.",+ "fields": {}+ },+ "bevy_dev_tools::render_debug::RenderDebugOverlay": {+ "doc": "Configure the render debug overlay. Overwrites the default `GlobalRenderDebugOverlay` resource.","fields": {- "size": "The width and height of each of the 6 faces of the cubemap."+ "enabled": "Enables or disables drawing the overlay.",+ "mode": "The kind of data to write to the overlay.",+ "opacity": "The opacity of the overlay, to allow seeing the rendered image underneath."}},- "bevy_light::probe::EnvironmentMapLight": {- "doc": "A pair of cubemap textures that represent the surroundings of a specific area in space.",+ "bevy_ecs::change_detection::tick::Tick": {+ "doc": "A value that tracks when a system ran relative to other systems. This is used to power change detection.",+ "fields": {}+ },+ "bevy_ecs::component::info::ComponentId": {+ "doc": "A value which uniquely identifies the type of a `Component` or `Resource` within a `World`.",+ "fields": {}+ },+ "bevy_ecs::entity_disabling::DefaultQueryFilters": {+ "doc": "Default query filters work by excluding entities with certain components from most queries.",+ "fields": {}+ },+ "bevy_ecs::hierarchy::ChildOf": {+ "doc": "Stores the parent entity of this child entity with this component.",+ "fields": {}+ },+ "bevy_ecs::hierarchy::Children": {+ "doc": "Tracks which entities are children of this parent entity.",+ "fields": {}+ },+ "bevy_ecs::name::HashedStr": {+ "doc": "A wrapper over Hashed. This exists to make Name(\"value\".into()) possible, which plays nicely with contexts like the `bsn!` macro.",+ "fields": {}+ },+ "bevy_ecs::name::Name": {+ "doc": "Component used to identify an entity. Stores a hash for faster comparisons.",+ "fields": {}+ },+ "bevy_ecs::observer::distributed_storage::ObservedBy": {+ "doc": "Tracks a list of entity observers for the `Entity` `ObservedBy` is added to.",+ "fields": {}+ },+ "bevy_ecs::resource::IsResource": {+ "doc": "A marker component for entities that have a Resource component.",+ "fields": {}+ },+ "bevy_ecs_tilemap::anchor::TilemapAnchor": {+ "doc": "How a tilemap is positioned relative to its `Transform`. It defaults to `TilemapAnchor::None` which is the center of the bottom-left tile. Note that `BottomLeft` refers to the bottom-left of the tilemap--not that tile's center.",+ "fields": {+ "None": "The center of the bottom-left tile",+ "Center": "The center of the bottom-left tile",+ "BottomLeft": "The bottom-left of the tilemap",+ "BottomCenter": "The bottom-left of the tilemap",+ "BottomRight": "The bottom-left of the tilemap",+ "CenterLeft": "The bottom-left of the tilemap",+ "CenterRight": "The bottom-left of the tilemap",+ "TopLeft": "The bottom-left of the tilemap",+ "TopCenter": "The bottom-left of the tilemap",+ "TopRight": "The bottom-left of the tilemap",+ "Custom": "Custom anchor point"+ }+ },+ "bevy_ecs_tilemap::map::HexCoordSystem": {+ "doc": "Different hex grid coordinate systems. You can find out more at this link: <https://www.redblobgames.com/grids/hexagons/>",+ "fields": {}+ },+ "bevy_ecs_tilemap::map::IsoCoordSystem": {+ "doc": "Different isometric coordinate systems.",+ "fields": {}+ },+ "bevy_ecs_tilemap::map::TilemapGridSize": {+ "doc": "Size of the tiles on the grid in pixels. This can be used to overlay tiles on top of each other. Ex. A 16x16 pixel tile can be overlapped by 8 pixels by using a grid size of 16x8.",+ "fields": {}+ },+ "bevy_ecs_tilemap::map::TilemapId": {+ "doc": "A component which stores a reference to the tilemap entity.",+ "fields": {}+ },+ "bevy_ecs_tilemap::map::TilemapSize": {+ "doc": "Size of the tilemap in tiles.",+ "fields": {}+ },+ "bevy_ecs_tilemap::map::TilemapSpacing": {+ "doc": "Spacing between tiles in pixels inside of the texture atlas. Defaults to 0.0",+ "fields": {}+ },+ "bevy_ecs_tilemap::map::TilemapTexture": {+ "doc": "","fields": {- "diffuse_map": "The blurry image that represents diffuse radiance surrounding a region.",- "specular_map": "The typically-sharper, mipmapped image that represents specular radiance surrounding a region.",- "intensity": "Scale factor applied to the diffuse and specular light generated by this component.",- "rotation": "World space rotation applied to the environment light cubemaps. This is useful for users who require a different axis, such as the Z-axis, to serve as the vertical axis.",- "affects_lightmapped_mesh_diffuse": "Whether the light from this environment map contributes diffuse lighting to meshes with lightmaps."+ "Single": "All textures for tiles are inside a single image asset.",+ "Vector": "Each tile's texture has its own image asset (each asset must have the same size), so there is a vector of image assets.",+ "TextureContainer": "The tiles are provided as array layers inside a KTX2 or DDS container."}},- "bevy_light::probe::GeneratedEnvironmentMapLight": {- "doc": "A generated environment map that is filtered at runtime.",+ "bevy_ecs_tilemap::map::TilemapTextureSize": {+ "doc": "Size of the atlas texture in pixels.",+ "fields": {}+ },+ "bevy_ecs_tilemap::map::TilemapTileSize": {+ "doc": "Size of the tiles in pixels",+ "fields": {}+ },+ "bevy_ecs_tilemap::map::TilemapType": {+ "doc": "The type of tile to be rendered, currently we support: Square, Hex, and Isometric.","fields": {- "environment_map": "Source cubemap to be filtered on the GPU, size must be a power of two.",- "intensity": "Scale factor applied to the diffuse and specular light generated by this component. Expressed in cd/m² (candela per square meter).",- "rotation": "World-space rotation applied to the cubemap.",- "affects_lightmapped_mesh_diffuse": "Whether this light contributes diffuse lighting to meshes that already have baked lightmaps."+ "Square": "A tilemap with rectangular tiles.",+ "Hexagon": "Used to specify rendering of tilemaps on hexagons.",+ "Isometric": "Used to change the rendering mode to Isometric."}},- "bevy_light::probe::Skybox": {- "doc": "Adds a skybox to a 3D camera, based on a cubemap texture.",+ "bevy_ecs_tilemap::tiles::TileColor": {+ "doc": "A custom color for the tile.",+ "fields": {}+ },+ "bevy_ecs_tilemap::tiles::TileFlip": {+ "doc": "Flips the tiles texture along the X, Y or diagonal axes","fields": {- "image": "The cubemap to use.",- "brightness": "Scale factor applied to the skybox image. After applying this multiplier to the image samples, the resulting values should be in units of cd/m^2.",- "rotation": "View space rotation applied to the skybox cubemap. This is useful for users who require a different axis, such as the Z-axis, to serve as the vertical axis."+ "x": "Flip tile along the x axis.",+ "y": "Flip tile along the Y axis.",+ "d": "Flip tile along the Y axis."+ }+ },+ "bevy_ecs_tilemap::tiles::TilePos": {+ "doc": "A tile position in the tilemap grid.",+ "fields": {}+ },+ "bevy_ecs_tilemap::tiles::TileTextureIndex": {+ "doc": "A texture index into the atlas or texture array for a single tile. Indices in an atlas are horizontal based.",+ "fields": {}+ },+ "bevy_ecs_tilemap::tiles::TileVisible": {+ "doc": "Hides or shows a tile based on the boolean. Default: True",+ "fields": {}+ },+ "bevy_ecs_tilemap::tiles::storage::TileStorage": {+ "doc": "Used to store tile entities for fast look up. Tile entities are stored in a grid. The grid is always filled with None.",+ "fields": {}+ },+ "bevy_extract::sync_world::MainEntity": {+ "doc": "Component added on the sub world entities to keep track of the corresponding main world entity.",+ "fields": {}+ },+ "bevy_feathers::controls::AngleDegrees": {+ "doc": "Unit representing an angle. Internally this is represented as radians, but the preferred display format is degrees. This will display the degree symbol (°) except when in editing mode, in which case it will use the suffix \"d\" which is easier to type.",+ "fields": {}+ },+ "bevy_feathers::controls::ButtonVariant": {+ "doc": "Color variants for buttons. This also functions as a component used by the dynamic styling system to identify which entities are buttons.",+ "fields": {+ "Normal": "The standard button appearance",+ "Primary": "A button with a more prominent color, this is used for \"call to action\" buttons, default buttons for dialog boxes, and so on.",+ "Plain": "Don't display the button background unless hovering or pressed."+ }+ },+ "bevy_feathers::controls::ColorChannel": {+ "doc": "Indicates which color channel we want to edit.",+ "fields": {+ "Red": "Editing the RGB red channel (0..=1)",+ "Green": "Editing the RGB green channel (0..=1)",+ "Blue": "Editing the RGB blue channel (0..=1)",+ "HslHue": "Editing the hue channel (0..=360)",+ "HslSaturation": "Editing the chroma / saturation channel (0..=1)",+ "HslLightness": "Editing the luminance channel (0..=1)",+ "Alpha": "Editing the alpha channel (0..=1)",+ "OkhslHue": "Editing the Okhsl Hue channel (0..=360)",+ "OkhslSaturation": "Editing the Okhsl Saturation channel (0..=1)",+ "OkhslLightness": "Editing the Okhsl Lightness channel (0..=1)"+ }+ },+ "bevy_feathers::controls::Dimensionless": {+ "doc": "A `UnitsFormat` meaning \"no units\", which is the default units. This just does straight-up number parsing and formatting with no suffix.",+ "fields": {}+ },+ "bevy_feathers::controls::FeathersButton": {+ "doc": "A button widget.",+ "fields": {}+ },+ "bevy_feathers::controls::FeathersCheckbox": {+ "doc": "A checkbox widget.",+ "fields": {}+ },+ "bevy_feathers::controls::FeathersColorInput": {+ "doc": "A button which displays a color swatch; when clicked, it displays a popup containing a color picker.",+ "fields": {}+ },+ "bevy_feathers::controls::FeathersColorPlane": {+ "doc": "A \"color plane\" widget, which is a 2d picker that allows selecting two components of a color space.",+ "fields": {+ "RedGreen": "Show red on the horizontal axis and green on the vertical.",+ "RedBlue": "Show red on the horizontal axis and blue on the vertical.",+ "GreenBlue": "Show green on the horizontal axis and blue on the vertical.",+ "HueSaturation": "Show hue on the horizontal axis and saturation on the vertical.",+ "HueLightness": "Show hue on the horizontal axis and lightness on the vertical.",+ "OkhslHueSaturation": "Show OKHSL hue on horizontal axis and saturation on vertical.",+ "OkhslHueLightness": "Show OKHSL hue on horizontal axis and lightness on vertical."+ }+ },+ "bevy_feathers::controls::FeathersColorSlider": {+ "doc": "A color slider widget.",+ "fields": {}+ },+ "bevy_feathers::controls::FeathersColorSwatch": {+ "doc": "A color swatch widget.",+ "fields": {}+ },+ "bevy_feathers::controls::FeathersDisclosureToggle": {+ "doc": "A toggle button which shows a chevron that points either right or down, used to expand or collapse a panel. Functionally, this is equivalent to a checkbox, and has a `Checked` state.",+ "fields": {}+ },+ "bevy_feathers::controls::FeathersLazyMenu": {+ "doc": "Top-level menu container. This wraps the menu button and provides an anchor for the popover. This is slightly different from the normal `FeathersMenu` in that it dynamically spawns the menu popup when the menu is shown and despawns it when it is closed, instead of simply hiding the popup. This is the recommended approach for popups which are large, expensive to keep around, or whose items are dynamically generated.",+ "fields": {+ "popup": "Callback which constructs the popup"+ }+ },+ "bevy_feathers::controls::FeathersListRow": {+ "doc": "A selectable row in a list of items",+ "fields": {}+ },+ "bevy_feathers::controls::FeathersListView": {+ "doc": "A container that displays a scrolling list of items.",+ "fields": {}+ },+ "bevy_feathers::controls::FeathersMenu": {+ "doc": "Top-level menu container. This wraps the menu button and provides an anchor for the popover.",+ "fields": {}+ },+ "bevy_feathers::controls::FeathersMenuButton": {+ "doc": "A menu button widget. This produces a button that has a dropdown arrow.",+ "fields": {}+ },+ "bevy_feathers::controls::FeathersMenuDivider": {+ "doc": "A decorative divider between menu items",+ "fields": {}+ },+ "bevy_feathers::controls::FeathersMenuItem": {+ "doc": "A menu item widget.",+ "fields": {}+ },+ "bevy_feathers::controls::FeathersMenuPopup": {+ "doc": "A menu popup widget.",+ "fields": {}+ },+ "bevy_feathers::controls::FeathersMenuToolButton": {+ "doc": "A menu button widget with the tool button form factor. This produces a button that has a dropdown arrow.",+ "fields": {}+ },+ "bevy_feathers::controls::FeathersNumberInput": {+ "doc": "Widget that permits text entry of floating-point numbers. This widget implements two-way synchronization: * it emits values (via a `ValueChange<T>`) event as the user types or drags. The type of ``T`` will be ``f32``, ``f64``, ``i32``, or ``i64`` depending on the `NumberInputValue` component variant. * it listens for the insertion of the `NumberInputValue` component, and replaces the contents of the text buffer based on the value in that event.",+ "fields": {}+ },+ "bevy_feathers::controls::FeathersRadio": {+ "doc": "A radio widget.",+ "fields": {}+ },+ "bevy_feathers::controls::FeathersScrollbar": {+ "doc": "A scrollbar. The `target` property should point to an entity whose `ScrollPosition` will be synchronized with the scrollbar.",+ "fields": {}+ },+ "bevy_feathers::controls::FeathersSelect": {+ "doc": "Select control which spawns a menu popup with a list of string options # Emitted events * `ValueChange<Entity>` when the selected option is changed.",+ "fields": {}+ },+ "bevy_feathers::controls::FeathersSlider": {+ "doc": "A slider widget.",+ "fields": {}+ },+ "bevy_feathers::controls::FeathersTextInput": {+ "doc": "Scene function to spawn a text input. For proper styling, this should be enclosed by a `FeathersTextInputContainer`.",+ "fields": {}+ },+ "bevy_feathers::controls::FeathersTextInputContainer": {+ "doc": "Decorative frame around a text input widget. This is a separate entity to allow icons (such as \"search\" or \"clear\") to be inserted adjacent to the input.",+ "fields": {}+ },+ "bevy_feathers::controls::FeathersToggleSwitch": {+ "doc": "A toggle switch widget.",+ "fields": {}+ },+ "bevy_feathers::controls::FeathersToolButton": {+ "doc": "Tool button scene function: a smaller button for embedding in panel headers.",+ "fields": {}+ },+ "bevy_feathers::controls::LengthMeters": {+ "doc": "Unit representing length, where the preferred unit is meters.",+ "fields": {}+ },+ "bevy_feathers::controls::NumberInputRange": {+ "doc": "Represents numeric limits in different number formats.",+ "fields": {+ "F32": "An 'f32' range.",+ "F64": "An 'f64' range.",+ "I32": "An 'i32' range.",+ "I64": "An 'i64' range."+ }+ },+ "bevy_feathers::controls::NumberInputValue": {+ "doc": "Represents numbers in different formats.",+ "fields": {+ "F32": "An `f32` value",+ "F64": "An `f64` value",+ "I32": "An `i32` value",+ "I64": "An `i64` value"+ }+ },+ "bevy_feathers::controls::NumberInputWrap": {+ "doc": "Indicates whether the number input should wrap around the min/max value. This component only applies to `HardLimit`.",+ "fields": {+ "NoWrap": "The number input will not wrap around the min/max value.",+ "Wrap": "The number input will wrap around the min/max value."+ }+ },+ "bevy_feathers::controls::StandardUnitItem": {+ "doc": "Contains the definition of a \"standard metrical unit\". The `StandardUnitKind` struct maintains a table of these items.",+ "fields": {+ "suffixes": "e.g. [\"km\"], or [\"cm\"], first entry is canonical",+ "scale": "multiply a value in this unit to get the base unit (meters, radians, kg...)"+ }+ },+ "bevy_feathers::controls::TimeSeconds": {+ "doc": "Unit representing time, where the preferred unit is seconds.",+ "fields": {}+ },+ "bevy_feathers::controls::VirtualKeyboard": {+ "doc": "A virtual keyboard widget.",+ "fields": {}+ },+ "bevy_feathers::controls::button::ButtonVariant": {+ "doc": "Color variants for buttons. This also functions as a component used by the dynamic styling system to identify which entities are buttons.",+ "fields": {+ "Normal": "The standard button appearance",+ "Primary": "A button with a more prominent color, this is used for \"call to action\" buttons, default buttons for dialog boxes, and so on.",+ "Plain": "Don't display the button background unless hovering or pressed."+ }+ },+ "bevy_feathers::controls::button::FeathersButton": {+ "doc": "A button widget.",+ "fields": {}+ },+ "bevy_feathers::controls::button::FeathersToolButton": {+ "doc": "Tool button scene function: a smaller button for embedding in panel headers.",+ "fields": {}+ },+ "bevy_feathers::controls::checkbox::FeathersCheckbox": {+ "doc": "A checkbox widget.",+ "fields": {}+ },+ "bevy_feathers::controls::color_input::ColorInputValue": {+ "doc": "Component that contains the value of the color input.",+ "fields": {}+ },+ "bevy_feathers::controls::color_input::FeathersColorInput": {+ "doc": "A button which displays a color swatch; when clicked, it displays a popup containing a color picker.",+ "fields": {}+ },+ "bevy_feathers::controls::color_plane::ColorPlaneValue": {+ "doc": "Component that contains the two components of the selected color, as well as the \"z\" value. The x and y values determine the placement of the thumb element, while the z value controls the background gradient.",+ "fields": {}+ },+ "bevy_feathers::controls::color_plane::FeathersColorPlane": {+ "doc": "A \"color plane\" widget, which is a 2d picker that allows selecting two components of a color space.",+ "fields": {+ "RedGreen": "Show red on the horizontal axis and green on the vertical.",+ "RedBlue": "Show red on the horizontal axis and blue on the vertical.",+ "GreenBlue": "Show green on the horizontal axis and blue on the vertical.",+ "HueSaturation": "Show hue on the horizontal axis and saturation on the vertical.",+ "HueLightness": "Show hue on the horizontal axis and lightness on the vertical.",+ "OkhslHueSaturation": "Show OKHSL hue on horizontal axis and saturation on vertical.",+ "OkhslHueLightness": "Show OKHSL hue on horizontal axis and lightness on vertical."+ }+ },+ "bevy_feathers::controls::color_slider::ColorChannel": {+ "doc": "Indicates which color channel we want to edit.",+ "fields": {+ "Red": "Editing the RGB red channel (0..=1)",+ "Green": "Editing the RGB green channel (0..=1)",+ "Blue": "Editing the RGB blue channel (0..=1)",+ "HslHue": "Editing the hue channel (0..=360)",+ "HslSaturation": "Editing the chroma / saturation channel (0..=1)",+ "HslLightness": "Editing the luminance channel (0..=1)",+ "Alpha": "Editing the alpha channel (0..=1)",+ "OkhslHue": "Editing the Okhsl Hue channel (0..=360)",+ "OkhslSaturation": "Editing the Okhsl Saturation channel (0..=1)",+ "OkhslLightness": "Editing the Okhsl Lightness channel (0..=1)"+ }+ },+ "bevy_feathers::controls::color_slider::ColorSlider": {+ "doc": "A color slider widget.",+ "fields": {+ "channel": "Which channel is being edited by this slider."+ }+ },+ "bevy_feathers::controls::color_slider::FeathersColorSlider": {+ "doc": "A color slider widget.",+ "fields": {}+ },+ "bevy_feathers::controls::color_slider::SliderBaseColor": {+ "doc": "Used to store the color channels that we are not editing: the components of the color that are constant for this slider.",+ "fields": {}+ },+ "bevy_feathers::controls::color_swatch::ColorSwatchFg": {+ "doc": "Marker identifying the color swatch foreground, the piece that actually displays the color in front of the alpha pattern. This exists so that users can reach in and change the color dynamically.",+ "fields": {}+ },+ "bevy_feathers::controls::color_swatch::ColorSwatchValue": {+ "doc": "Component that contains the value of the color swatch. This is copied to the child element background.",+ "fields": {}+ },+ "bevy_feathers::controls::color_swatch::FeathersColorSwatch": {+ "doc": "A color swatch widget.",+ "fields": {}+ },+ "bevy_feathers::controls::color_swatch_grid::ColorSwatchGridCellRing": {+ "doc": "Draws the selection ring for a `FeathersColorSwatchGridCell`.",+ "fields": {}+ },+ "bevy_feathers::controls::color_swatch_grid::FeathersColorSwatchEmptyCell": {+ "doc": "A placeholder for an unoccupied grid cell.",+ "fields": {}+ },+ "bevy_feathers::controls::color_swatch_grid::FeathersColorSwatchGrid": {+ "doc": "A rectangular grid of color swatches, which allows one swatch to be selected.",+ "fields": {+ "opaque_color_percentage": "Set a percentage of the swatch to display the opaque version of the current color.",+ "size": "Size of the grid in cells."+ }+ },+ "bevy_feathers::controls::color_swatch_grid::FeathersColorSwatchGridCell": {+ "doc": "A single cell within a `FeathersColorSwatchGrid`.",+ "fields": {}+ },+ "bevy_feathers::controls::color_wheel::ColorWheelValue": {+ "doc": "Component that contains the selected `hue` on the ring, and the `whiteness` and `blackness` selected within the triangle.",+ "fields": {+ "hue": "Hue in degrees, in the range [0, 360).",+ "whiteness": "Whiteness in the range [0, 1].",+ "blackness": "Blackness in the range [0, 1]."+ }+ },+ "bevy_feathers::controls::color_wheel::FeathersColorWheel": {+ "doc": "A \"triangle-in-ring\" color wheel widget, which is a 2d picker that allows selecting all three components of a HWB color space. It consists of a hue ring surrounding a triangle where the corners are max whiteness, max blackness, and zero whiteness/blackness.",+ "fields": {}+ },+ "bevy_feathers::controls::dialog::FeathersDialog": {+ "doc": "A modal dialog box",+ "fields": {}+ },+ "bevy_feathers::controls::dialog::FeathersDialogBody": {+ "doc": "Central body section for a modal dialog",+ "fields": {}+ },+ "bevy_feathers::controls::dialog::FeathersDialogClose": {+ "doc": "Close button for dialog header",+ "fields": {}+ },+ "bevy_feathers::controls::dialog::FeathersDialogFooter": {+ "doc": "Footer section for a modal dialog",+ "fields": {}+ },+ "bevy_feathers::controls::dialog::FeathersDialogHeader": {+ "doc": "Header section for a modal dialog",+ "fields": {}+ },+ "bevy_feathers::controls::dialog::FeathersFloatingDialog": {+ "doc": "A non-modal, movable floating dialog with a draggable title bar and a close button.",+ "fields": {}+ },+ "bevy_feathers::controls::disclosure_toggle::FeathersDisclosureToggle": {+ "doc": "A toggle button which shows a chevron that points either right or down, used to expand or collapse a panel. Functionally, this is equivalent to a checkbox, and has a `Checked` state.",+ "fields": {}+ },+ "bevy_feathers::controls::listview::FeathersListRow": {+ "doc": "A selectable row in a list of items",+ "fields": {}+ },+ "bevy_feathers::controls::listview::FeathersListView": {+ "doc": "A container that displays a scrolling list of items.",+ "fields": {}+ },+ "bevy_feathers::controls::menu::FeathersMenu": {+ "doc": "Top-level menu container. This wraps the menu button and provides an anchor for the popover.",+ "fields": {}+ },+ "bevy_feathers::controls::menu::FeathersMenuButton": {+ "doc": "A menu button widget. This produces a button that has a dropdown arrow.",+ "fields": {}+ },+ "bevy_feathers::controls::menu::FeathersMenuDivider": {+ "doc": "A decorative divider between menu items",+ "fields": {}+ },+ "bevy_feathers::controls::menu::FeathersMenuItem": {+ "doc": "A menu item widget.",+ "fields": {}+ },+ "bevy_feathers::controls::menu::FeathersMenuPopup": {+ "doc": "A menu popup widget.",+ "fields": {}+ },+ "bevy_feathers::controls::menu::FeathersMenuToolButton": {+ "doc": "A menu button widget with the tool button form factor. This produces a button that has a dropdown arrow.",+ "fields": {}+ },+ "bevy_feathers::controls::number_input::FeathersNumberInput": {+ "doc": "Widget that permits text entry of floating-point numbers. This widget implements two-way synchronization: * it emits values (via a `ValueChange<T>`) event as the user types or drags. The type of ``T`` will be ``f32``, ``f64``, ``i32``, or ``i64`` depending on the `NumberInputValue` component variant. * it listens for the insertion of the `NumberInputValue` component, and replaces the contents of the text buffer based on the value in that event.",+ "fields": {}+ },+ "bevy_feathers::controls::number_input::NumberInputPrecision": {+ "doc": "A component which controls the rounding of the number value during dragging. This is also used as a heuristic to determine drag speed when there is no soft limit or step size specified.",+ "fields": {}+ },+ "bevy_feathers::controls::number_input::NumberInputStep": {+ "doc": "A component which controls the step size when incrementing or decrementing the value. This also is used as a heuristic to determine drag speed when there is no soft limit present.",+ "fields": {}+ },+ "bevy_feathers::controls::number_input::NumberInputUnits": {+ "doc": "Indicates the type of quantity (length, angle, time, etc.) being edited, as well as the preferred unit (meters, degrees, seconds, etc.).",+ "fields": {}+ },+ "bevy_feathers::controls::number_input::NumberInputValue": {+ "doc": "Represents numbers in different formats.",+ "fields": {+ "F32": "An `f32` value",+ "F64": "An `f64` value",+ "I32": "An `i32` value",+ "I64": "An `i64` value"+ }+ },+ "bevy_feathers::controls::number_input::NumberInputWrap": {+ "doc": "Indicates whether the number input should wrap around the min/max value. This component only applies to `HardLimit`.",+ "fields": {+ "NoWrap": "The number input will not wrap around the min/max value.",+ "Wrap": "The number input will wrap around the min/max value."+ }+ },+ "bevy_feathers::controls::radio::FeathersRadio": {+ "doc": "A radio widget.",+ "fields": {}+ },+ "bevy_feathers::controls::scrollbar::FeathersScrollbar": {+ "doc": "A scrollbar. The `target` property should point to an entity whose `ScrollPosition` will be synchronized with the scrollbar.",+ "fields": {}+ },+ "bevy_feathers::controls::scrollbar::ScrollbarGutter": {+ "doc": "Padding at right (vertical) and bottom (horizontal) reserved on a scrollbar's parent while the scrollbar is visible. reclaimed when the content fits. Do not use if scrollbars are not embedded in their parents padding on right & bottom",+ "fields": {}+ },+ "bevy_feathers::controls::select::FeathersSelect": {+ "doc": "Select control which spawns a menu popup with a list of string options # Emitted events * `ValueChange<Entity>` when the selected option is changed.",+ "fields": {}+ },+ "bevy_feathers::controls::select::OptionIndex": {+ "doc": "Entirely optional component to store a usize on a `FeathersListRow` Added by `list_rows_from_strings` so there's a value on a string based select you can use to work out which of the array of strings was selected",+ "fields": {}+ },+ "bevy_feathers::controls::slider::FeathersSlider": {+ "doc": "A slider widget.",+ "fields": {}+ },+ "bevy_feathers::controls::text_input::FeathersTextInput": {+ "doc": "Scene function to spawn a text input. For proper styling, this should be enclosed by a `FeathersTextInputContainer`.",+ "fields": {}+ },+ "bevy_feathers::controls::text_input::FeathersTextInputContainer": {+ "doc": "Decorative frame around a text input widget. This is a separate entity to allow icons (such as \"search\" or \"clear\") to be inserted adjacent to the input.",+ "fields": {}+ },+ "bevy_feathers::controls::toggle_switch::FeathersToggleSwitch": {+ "doc": "A toggle switch widget.",+ "fields": {}+ },+ "bevy_feathers::display::icon::ThemedIcon": {+ "doc": "Marker to tint an icon's `ImageNode` by the text color.",+ "fields": {}+ },+ "bevy_feathers::focus::FocusIndicator": {+ "doc": "A marker component which indicates that this entity should display a visible focus outline when either it, or its ancestor, are focused. Insert this into a widget on the entity that you wish to display a focus outline.",+ "fields": {}+ },+ "bevy_feathers::focus::FocusWithinIndicator": {+ "doc": "A marker component which indicates that this entity should display a visible focus outline when either it, or any descendant, are focused. Insert this into a widget on the entity that you wish to display a focus outline.",+ "fields": {}+ },+ "bevy_feathers::font_styles::InheritableFont": {+ "doc": "A component which, when inserted on an entity, will load the given font and propagate it downward to any child text entity that has the `ThemedText` marker.",+ "fields": {+ "font": "The font handle.",+ "font_size": "The desired font size.",+ "weight": "The desired font weight."+ }+ },+ "bevy_feathers::rounded_corners::RoundedCorners": {+ "doc": "Allows specifying which corners are rounded and which are sharp. All rounded corners have the same radius. Not all combinations are supported, only the ones that make sense for a segmented buttons.",+ "fields": {+ "None": "No corners are rounded.",+ "All": "All corners are rounded.",+ "TopLeft": "Top-left corner is rounded.",+ "TopRight": "Top-right corner is rounded.",+ "BottomRight": "Bottom-right corner is rounded.",+ "BottomLeft": "Bottom-left corner is rounded.",+ "Top": "Top corners are rounded.",+ "Right": "Right corners are rounded.",+ "Bottom": "Bottom corners are rounded.",+ "Left": "Left corners are rounded."+ }+ },+ "bevy_feathers::theme::InheritableThemeTextColor": {+ "doc": "Component which causes the inherited text color of an entity to be set based on a theme color.",+ "fields": {}+ },+ "bevy_feathers::theme::SemanticToken": {+ "doc": "A semantic-level token for the theme. Semantic tokens represent general classes of colors, such as \"surface.window\" or \"border.selected.accent\", rather than specific color assignments. Contextual theming happens at the semantic level, so (for example) lightening the token for \"fill.solid.default\" affects all color assignments that map to that token.",+ "fields": {}+ },+ "bevy_feathers::theme::SurfaceLevel": {+ "doc": "Indicates the type of surface context for computing color assignments",+ "fields": {+ "Base": "The base layer - window and pane header",+ "Higher": "A raised layer - pane and subpane bodies",+ "Highest": "The highest level - groups and subpane headers",+ "Floating": "An overlay such as a dialog or menu"+ }+ },+ "bevy_feathers::theme::ThemeBackgroundColor": {+ "doc": "Component which causes the background color of an entity to be set based on a theme color.",+ "fields": {}+ },+ "bevy_feathers::theme::ThemeBorderColor": {+ "doc": "Component which causes the border color of an entity to be set based on a theme color. Only supports setting all borders to the same color.",+ "fields": {}+ },+ "bevy_feathers::theme::ThemeContext": {+ "doc": "Component which is placed on a container and which propagates to children. This is used to modify the color assignments based on the background container.",+ "fields": {}+ },+ "bevy_feathers::theme::ThemeProps": {+ "doc": "A collection of properties that make up a theme.",+ "fields": {+ "token_assignments": "Map of design tokens to semantic tokens.",+ "semantic_base": "Map of semantic tokens to colors.",+ "semantic_overrides": "Map of semantic tokens + context to colors."+ }+ },+ "bevy_feathers::theme::ThemeToken": {+ "doc": "A design token for the theme. This serves as the lookup key for the theme properties.",+ "fields": {}+ },+ "bevy_feathers::theme::ThemedText": {+ "doc": "A marker component that is used to indicate that the text entity wants to opt-in to using inherited text styles.",+ "fields": {}+ },+ "bevy_feathers::theme::UiTheme": {+ "doc": "The currently selected user interface theme. Overwriting this resource changes the theme.",+ "fields": {}+ },+ "bevy_gizmos::aabb::ShowAabbGizmo": {+ "doc": "Add this `Component` to an entity to draw its `Aabb` component.",+ "fields": {+ "color": "The color of the box."+ }+ },+ "bevy_gizmos::config::GizmoConfigStore": {+ "doc": "A `Resource` storing `GizmoConfig` and `GizmoConfigGroup` structs",+ "fields": {}+ },+ "bevy_gizmos::config::GizmoLineConfig": {+ "doc": "A struct that stores configuration for gizmos.",+ "fields": {+ "width": "Line width specified in pixels.",+ "perspective": "Apply perspective to gizmo lines.",+ "style": "Determine the style of gizmo lines.",+ "joints": "Describe how lines should join.",+ "animation_offset": "This only applies to `GizmoLineStyle::Dotted` and `GizmoLineStyle::Dashed` and determines how far the dots/dashes are offset from their original position. This can be used to create animations."+ }+ },+ "bevy_gizmos::config::GizmoLineJoint": {+ "doc": "An enum configuring how line joints will be drawn.",+ "fields": {+ "None": "Does not draw any line joints.",+ "Miter": "Extends both lines at the joining point until they meet in a sharp point.",+ "Round": "Draws a round corner with the specified resolution between the two lines.",+ "Bevel": "Draws a bevel, a straight line in this case, to connect the ends of both lines."+ }+ },+ "bevy_gizmos::config::GizmoLineStyle": {+ "doc": "An enum used to configure the style of gizmo lines, similar to CSS line-style",+ "fields": {+ "Solid": "A solid line without any decorators",+ "Dotted": "A dotted line",+ "Dashed": "A dashed line with configurable gap and line sizes"+ }+ },+ "bevy_gizmos::frustum::ShowFrustumGizmo": {+ "doc": "Add this `Component` to an entity to draw its `Frustum` component.",+ "fields": {+ "color": "The color of the frustum."+ }+ },+ "bevy_gizmos::retained::Gizmo": {+ "doc": "A component that draws the gizmos of a `GizmoAsset`.",+ "fields": {+ "handle": "The handle to the gizmo to draw.",+ "line_config": "The line specific configuration for this gizmo.",+ "depth_bias": "How closer to the camera than real geometry the gizmo should be."+ }+ },+ "bevy_gizmos::skinned_mesh_bounds::ShowSkinnedMeshBoundsGizmo": {+ "doc": "Add this `Component` to an entity to draw its `DynamicSkinnedMeshBounds` component.",+ "fields": {+ "color": "The color of the bounds."+ }+ },+ "bevy_gizmos::transform_gizmo::TransformGizmoAxis": {+ "doc": "Which axis the user is interacting with.",+ "fields": {+ "X": "The X axis (red).",+ "Y": "The Y axis (green).",+ "Z": "The Z axis (blue).",+ "View": "The view-plane / view-axis (white)."+ }+ },+ "bevy_gizmos::transform_gizmo::TransformGizmoCamera": {+ "doc": "Marker component for the camera the transform gizmo should use.",+ "fields": {}+ },+ "bevy_gizmos::transform_gizmo::TransformGizmoFocus": {+ "doc": "Component that marks the entity the transform gizmo operates on.",+ "fields": {}+ },+ "bevy_gizmos::transform_gizmo::TransformGizmoMode": {+ "doc": "Which manipulation mode the gizmo is in.",+ "fields": {+ "Translate": "Move the entity along an axis.",+ "Rotate": "Rotate the entity around an axis.",+ "Scale": "Scale the entity along an axis."+ }+ },+ "bevy_gizmos::transform_gizmo::TransformGizmoSettings": {+ "doc": "Configuration and preferences for the transform gizmo.",+ "fields": {+ "mode": "Which manipulation mode the gizmo is in.",+ "space": "Whether the gizmo transforms the object using world or local space axes.",+ "axis_length": "Length of the axis handles.",+ "rotate_ring_radius": "Radius of the rotation rings.",+ "axis_hit_distance": "Screen-space pixel distance for hover detection.",+ "snap_translate": "If set, translation snaps to this increment.",+ "snap_rotate": "If set, rotation snaps to this increment (radians).",+ "snap_scale": "If set, scale snaps to this increment.",+ "confine_cursor": "Whether to confine the cursor during drag.",+ "screen_scale_factor": "Screen-space scale factor. Set to 0.0 to disable constant-size behavior.",+ "scale_sensitivity": "Controls how fast objects change scale when the scale handle is used."+ }+ },+ "bevy_gizmos::transform_gizmo::TransformGizmoSpace": {+ "doc": "Whether the gizmo transforms the object using world or local space axes.",+ "fields": {+ "World": "Axes are aligned to the world.",+ "Local": "Axes follow the entity's local rotation."+ }+ },+ "bevy_gizmos::transform_gizmo::TransformGizmoState": {+ "doc": "Runtime state of the transform gizmo (drag and hover).",+ "fields": {+ "hovered_axis": "The axis under the cursor, if any.",+ "active": "`true` while the user is actively dragging.",+ "axis": "The axis being dragged, if any.",+ "start_transform": "The transform snapshot taken when the drag started.",+ "entity": "The entity being dragged, if any.",+ "drag_start_world": "World-space point (or normalized direction for rotation) where the drag started.",+ "gizmo_origin": "World-space gizmo origin at drag start."+ }+ },+ "bevy_gizmos_render::LineGizmoEntities": {+ "doc": "Holds entities that the gizmo render phase items are associated with.",+ "fields": {+ "line_gizmo_renderer": "An entity that regular line phase items are associated with.",+ "line_strip_gizmo_renderer": "An entity that line strip phase items are associated with.",+ "line_joint_gizmo_renderer": "An entity that line joint phase items are associated with."+ }+ },+ "bevy_gltf::assets::GltfExtras": {+ "doc": "Additional untyped data that can be present on most glTF types at the primitive level.",+ "fields": {+ "value": "Content of the extra data."+ }+ },+ "bevy_gltf::assets::GltfMaterialExtras": {+ "doc": "Additional untyped data that can be present on most glTF types at the material level.",+ "fields": {+ "value": "Content of the extra data."+ }+ },+ "bevy_gltf::assets::GltfMaterialName": {+ "doc": "The material name of a glTF primitive.",+ "fields": {}+ },+ "bevy_gltf::assets::GltfMeshExtras": {+ "doc": "Additional untyped data that can be present on most glTF types at the mesh level.",+ "fields": {+ "value": "Content of the extra data."+ }+ },+ "bevy_gltf::assets::GltfMeshName": {+ "doc": "The mesh name of a glTF primitive.",+ "fields": {}+ },+ "bevy_gltf::assets::GltfSceneExtras": {+ "doc": "Additional untyped data that can be present on most glTF types at the scene level.",+ "fields": {+ "value": "Content of the extra data."+ }+ },+ "bevy_gltf::assets::GltfSceneName": {+ "doc": "The name of a glTF scene.",+ "fields": {}+ },+ "bevy_image::ImagePlugin": {+ "doc": "Adds the `Image` as an asset and makes sure that they are extracted and prepared for the GPU.",+ "fields": {+ "default_sampler": "The default image sampler to use when `ImageSampler` is set to `Default`.",+ "default_compressed_image_processor_extensions": "The file extensions that will be assigned a default compressed image processor. This means they will be automatically compressed unless overridden with a `.meta` file."+ }+ },+ "bevy_image::TextureAtlasLayout": {+ "doc": "Stores a map used to lookup the position of a texture in a `TextureAtlas`. This can be used to either use and look up a specific section of a texture, or animate frame-by-frame as a sprite sheet.",+ "fields": {+ "size": "Total size of texture atlas.",+ "textures": "The specific areas of the atlas where each texture can be found"+ }+ },+ "bevy_image::image::Image": {+ "doc": "This type is only meant for short-term transmission between same versions and should not be stored anywhere.",+ "fields": {+ "data": "Raw pixel data. If the image is being used as a storage texture which doesn't need to be initialized by the CPU, then this should be `None`. Otherwise, it should always be `Some`.",+ "data_order": "For texture data with layers and mips, this field controls how wgpu interprets the buffer layout.",+ "texture_descriptor": "Describes the data layout of the GPU texture.\\ For example, whether a texture contains 1D/2D/3D data, and what the format of the texture data is.",+ "sampler": "The `ImageSampler` to use during rendering.",+ "texture_view_descriptor": "Describes how the GPU texture should be interpreted.\\ For example, 2D image data could be read as plain 2D, an array texture of layers of 2D with the same dimensions (and the number of layers in that case), a cube map, an array of cube maps, etc.",+ "asset_usage": "Where this image asset will be used. See `RenderAssetUsages` for more.",+ "copy_on_resize": "Whether this image should be copied on the GPU when resized."+ }+ },+ "bevy_image::texture_atlas::TextureAtlas": {+ "doc": "An index into a `TextureAtlasLayout`, which corresponds to a specific section of a texture.",+ "fields": {+ "layout": "Texture atlas layout handle",+ "index": "Texture atlas section index"+ }+ },+ "bevy_image::texture_atlas::TextureAtlasLayout": {+ "doc": "Stores a map used to lookup the position of a texture in a `TextureAtlas`. This can be used to either use and look up a specific section of a texture, or animate frame-by-frame as a sprite sheet.",+ "fields": {+ "size": "Total size of texture atlas.",+ "textures": "The specific areas of the atlas where each texture can be found"+ }+ },+ "bevy_image::texture_atlas::TextureAtlasSources": {+ "doc": "Stores a mapping from sub texture handles to the related area index.",+ "fields": {+ "texture_ids": "Maps from a specific image handle to the index in `textures` where they can be found."+ }+ },+ "bevy_image::texture_atlas_builder::TextureAtlasBuilder": {+ "doc": "A builder which is used to create a texture atlas from many individual sprites.",+ "fields": {}+ },+ "bevy_input::ButtonState": {+ "doc": "The current \"press\" state of an element",+ "fields": {+ "Pressed": "The button is pressed.",+ "Released": "The button is not pressed."+ }+ },+ "bevy_input::gamepad::AxisSettings": {+ "doc": "Settings for a `GamepadAxis`.",+ "fields": {}+ },+ "bevy_input::gamepad::ButtonAxisSettings": {+ "doc": "Settings for a `GamepadButton`.",+ "fields": {+ "high": "The high value at which to apply rounding.",+ "low": "The low value at which to apply rounding.",+ "threshold": "The threshold to apply rounding."+ }+ },+ "bevy_input::gamepad::ButtonSettings": {+ "doc": "Manages settings for gamepad buttons.",+ "fields": {}+ },+ "bevy_input::gamepad::Gamepad": {+ "doc": "Stores a connected gamepad's metadata such as the name and its `GamepadButton` and `GamepadAxis`.",+ "fields": {}+ },+ "bevy_input::gamepad::GamepadAxis": {+ "doc": "Represents gamepad input types that are mapped in the range [-1.0, 1.0].",+ "fields": {+ "LeftStickX": "The horizontal value of the left stick.",+ "LeftStickY": "The vertical value of the left stick.",+ "LeftZ": "Generally the throttle axis of a HOTAS setup. Refer to `GamepadButton::LeftTrigger2` for the analog trigger on a gamepad controller.",+ "RightStickX": "The horizontal value of the right stick.",+ "RightStickY": "The vertical value of the right stick.",+ "RightZ": "The yaw of the main joystick, not supported on common gamepads. Refer to `GamepadButton::RightTrigger2` for the analog trigger on a gamepad controller.",+ "Other": "Non-standard support for other axis types (i.e. HOTAS sliders, potentiometers, etc)."+ }+ },+ "bevy_input::gamepad::GamepadAxisChangedEvent": {+ "doc": "`GamepadAxis` event triggered by an analog state change.",+ "fields": {+ "entity": "The entity that represents this gamepad.",+ "axis": "The gamepad axis assigned to the event.",+ "value": "The value of this axis (rescaled to account for axis settings)."+ }+ },+ "bevy_input::gamepad::GamepadButton": {+ "doc": "Represents gamepad input types that are mapped in the range [0.0, 1.0].",+ "fields": {+ "South": "The bottom action button of the action pad (i.e. PS: Cross, Xbox: A).",+ "East": "The right action button of the action pad (i.e. PS: Circle, Xbox: B).",+ "North": "The upper action button of the action pad (i.e. PS: Triangle, Xbox: Y).",+ "West": "The left action button of the action pad (i.e. PS: Square, Xbox: X).",+ "C": "The C button.",+ "Z": "The Z button.",+ "LeftTrigger": "The first left trigger.",+ "LeftTrigger2": "The second left trigger.",+ "RightTrigger": "The first right trigger.",+ "RightTrigger2": "The second right trigger.",+ "Select": "The select button.",+ "Start": "The start button.",+ "Mode": "The mode button.",+ "LeftThumb": "The left thumb stick button.",+ "RightThumb": "The right thumb stick button.",+ "DPadUp": "The up button of the D-Pad.",+ "DPadDown": "The down button of the D-Pad.",+ "DPadLeft": "The left button of the D-Pad.",+ "DPadRight": "The right button of the D-Pad.",+ "Other": "Miscellaneous buttons, considered non-standard (i.e. Extra buttons on a flight stick that do not have a gamepad equivalent)."+ }+ },+ "bevy_input::gamepad::GamepadButtonChangedEvent": {+ "doc": "`GamepadButton` event triggered by an analog state change.",+ "fields": {+ "entity": "The entity that represents this gamepad.",+ "button": "The gamepad button assigned to the event.",+ "state": "The pressed state of the button.",+ "value": "The analog value of the button (rescaled to be in the 0.0..=1.0 range)."+ }+ },+ "bevy_input::gamepad::GamepadButtonStateChangedEvent": {+ "doc": "`GamepadButton` event triggered by a digital state change.",+ "fields": {+ "entity": "The entity that represents this gamepad.",+ "button": "The gamepad button assigned to the event.",+ "state": "The pressed state of the button."+ }+ },+ "bevy_input::gamepad::GamepadConnection": {+ "doc": "The connection status of a gamepad.",+ "fields": {+ "Connected": "The gamepad is connected.",+ "Disconnected": "The gamepad is disconnected."+ }+ },+ "bevy_input::gamepad::GamepadConnectionEvent": {+ "doc": "A `Gamepad` connection event. Created when a connection to a gamepad is established and when a gamepad is disconnected.",+ "fields": {+ "gamepad": "The gamepad whose connection status changed.",+ "connection": "The change in the gamepads connection."+ }+ },+ "bevy_input::gamepad::GamepadEvent": {+ "doc": "A gamepad event.",+ "fields": {+ "Connection": "A gamepad has been connected or disconnected.",+ "Button": "A button of the gamepad has been triggered.",+ "Axis": "An axis of the gamepad has been triggered."+ }+ },+ "bevy_input::gamepad::GamepadRumbleIntensity": {+ "doc": "The intensity at which a gamepad's force-feedback motors may rumble.",+ "fields": {+ "strong_motor": "The rumble intensity of the strong gamepad motor.",+ "weak_motor": "The rumble intensity of the weak gamepad motor."+ }+ },+ "bevy_input::gamepad::GamepadRumbleRequest": {+ "doc": "An event that controls force-feedback rumbling of a `Gamepad` `entity`.",+ "fields": {+ "Add": "Add a rumble to the given gamepad.",+ "Stop": "Stop all running rumbles on the given `Entity`."+ }+ },+ "bevy_input::gamepad::GamepadSettings": {+ "doc": "Gamepad settings component.",+ "fields": {+ "default_button_settings": "The default button settings.",+ "default_axis_settings": "The default axis settings.",+ "default_button_axis_settings": "The default button axis settings.",+ "button_settings": "The user defined button settings.",+ "axis_settings": "The user defined axis settings.",+ "button_axis_settings": "The user defined button axis settings."+ }+ },+ "bevy_input::gamepad::RawGamepadAxisChangedEvent": {+ "doc": "`GamepadAxis` changed event unfiltered by `GamepadSettings`.",+ "fields": {+ "gamepad": "The gamepad on which the axis is triggered.",+ "axis": "The type of the triggered axis.",+ "value": "The value of the axis."+ }+ },+ "bevy_input::gamepad::RawGamepadButtonChangedEvent": {+ "doc": "`GamepadButton` changed event unfiltered by `GamepadSettings`.",+ "fields": {+ "gamepad": "The gamepad on which the button is triggered.",+ "button": "The type of the triggered button.",+ "value": "The value of the button."+ }+ },+ "bevy_input::gamepad::RawGamepadEvent": {+ "doc": "A raw gamepad event.",+ "fields": {+ "Connection": "A gamepad has been connected or disconnected.",+ "Button": "A button of the gamepad has been triggered.",+ "Axis": "An axis of the gamepad has been triggered."+ }+ },+ "bevy_input::gestures::DoubleTapGesture": {+ "doc": "Double tap gesture.",+ "fields": {}+ },+ "bevy_input::gestures::PanGesture": {+ "doc": "Pan gesture.",+ "fields": {}+ },+ "bevy_input::gestures::PinchGesture": {+ "doc": "Two-finger pinch gesture, often used for magnifications.",+ "fields": {}+ },+ "bevy_input::gestures::RotationGesture": {+ "doc": "Two-finger rotation gesture.",+ "fields": {}+ },+ "bevy_input::keyboard::Key": {+ "doc": "The logical key code of a `KeyboardInput`.",+ "fields": {+ "Character": "A key string that corresponds to the character typed by the user, taking into account the user’s current locale setting, and any system-level keyboard mapping overrides that are in effect.",+ "Unidentified": "This variant is used when the key cannot be translated to any other variant.",+ "Dead": "Contains the text representation of the dead-key when available.",+ "Alt": "The `Alt` (Alternative) key.",+ "AltGraph": "The Alternate Graphics (<kbd>AltGr</kbd> or <kbd>AltGraph</kbd>) key.",+ "CapsLock": "The `Caps Lock` (Capital) key.",+ "Control": "The `Control` or `Ctrl` key.",+ "Fn": "The Function switch `Fn` key. Activating this key simultaneously with another key changes that key’s value to an alternate character or function. This key is often handled directly in the keyboard hardware and does not usually generate key events.",+ "FnLock": "The Function-Lock (`FnLock` or `F-Lock`) key. Activating this key switches the mode of the keyboard to changes some keys' values to an alternate character or function. This key is often handled directly in the keyboard hardware and does not usually generate key events.",+ "NumLock": "The `NumLock` or Number Lock key. Used to toggle numpad mode function for interpreting subsequent keyboard input.",+ "ScrollLock": "Toggle between scrolling and cursor movement modes.",+ "Shift": "Used to enable shift modifier function for interpreting concurrent or subsequent keyboard input.",+ "Symbol": "The Symbol modifier key (used on some virtual keyboards).",+ "SymbolLock": "The SymbolLock key, only on web.",+ "Meta": "Legacy modifier key. Also called \"Super\" in certain places.",+ "Hyper": "Legacy modifier key.",+ "Super": "Used to enable \"super\" modifier function for interpreting concurrent or subsequent keyboard input. This key value is used for the \"Windows Logo\" key and the Apple `Command` or `⌘` key.",+ "Enter": "The `Enter` or `↵` key. Used to activate current selection or accept current input. This key value is also used for the `Return` (Macintosh numpad) key. This key value is also used for the Android `KEYCODE_DPAD_CENTER`.",+ "Tab": "The Horizontal Tabulation `Tab` key.",+ "Space": "Used in text to insert a space between words. Usually located below the character keys.",+ "ArrowDown": "Navigate or traverse downward. (`KEYCODE_DPAD_DOWN`)",+ "ArrowLeft": "Navigate or traverse leftward. (`KEYCODE_DPAD_LEFT`)",+ "ArrowRight": "Navigate or traverse rightward. (`KEYCODE_DPAD_RIGHT`)",+ "ArrowUp": "Navigate or traverse upward. (`KEYCODE_DPAD_UP`)",+ "End": "The End key, used with keyboard entry to go to the end of content (`KEYCODE_MOVE_END`).",+ "Home": "The Home key, used with keyboard entry, to go to start of content (`KEYCODE_MOVE_HOME`). For the mobile phone `Home` key (which goes to the phone’s main screen), use `GoHome`.",+ "PageDown": "Scroll down or display next page of content.",+ "PageUp": "Scroll up or display previous page of content.",+ "Backspace": "Used to remove the character to the left of the cursor. This key value is also used for the key labeled `Delete` on macOS keyboards.",+ "Clear": "Remove the currently selected input.",+ "Copy": "Copy the current selection. (`APPCOMMAND_COPY`)",+ "CrSel": "The Cursor Select key.",+ "Cut": "Cut the current selection. (`APPCOMMAND_CUT`)",+ "Delete": "Used to delete the character to the right of the cursor. This key value is also used for the key labeled `Delete` on macOS keyboards when `Fn` is active.",+ "EraseEof": "The Erase to End of Field key. This key deletes all characters from the current cursor position to the end of the current field.",+ "ExSel": "The Extend Selection (Exsel) key.",+ "Insert": "Toggle between text modes for insertion or overtyping. (`KEYCODE_INSERT`)",+ "Paste": "The Paste key. (`APPCOMMAND_PASTE`)",+ "Redo": "Redo the last action. (`APPCOMMAND_REDO`)",+ "Undo": "Undo the last action. (`APPCOMMAND_UNDO`)",+ "Accept": "The Accept (Commit, OK) key. Accept current option or input method sequence conversion.",+ "Again": "Redo or repeat an action.",+ "Attn": "The Attention (Attn) key.",+ "Cancel": "The Cancel key. (on linux and web)",+ "ContextMenu": "Show the application’s context menu. This key is commonly found between the right `Super` key and the right `Control` key.",+ "Escape": "The `Esc` key. This key was originally used to initiate an escape sequence, but is now more generally used to exit or \"escape\" the current context, such as closing a dialog or exiting full screen mode.",+ "Execute": "The Execute key.",+ "Find": "Open the Find dialog. (`APPCOMMAND_FIND`)",+ "Help": "Open a help dialog or toggle display of help information. (`APPCOMMAND_HELP`, `KEYCODE_HELP`)",+ "Pause": "Pause the current state or application (as appropriate).",+ "Play": "Play or resume the current state or application (as appropriate).",+ "Props": "The properties (Props) key.",+ "Select": "The Select key.",+ "ZoomIn": "The ZoomIn key. (`KEYCODE_ZOOM_IN`)",+ "ZoomOut": "The ZoomOut key. (`KEYCODE_ZOOM_OUT`)",+ "BrightnessDown": "The Brightness Down key. Typically controls the display brightness. (`KEYCODE_BRIGHTNESS_DOWN`)",+ "BrightnessUp": "The Brightness Up key. Typically controls the display brightness. (`KEYCODE_BRIGHTNESS_UP`)",+ "Eject": "Toggle removable media to eject (open) and insert (close) state. (`KEYCODE_MEDIA_EJECT`)",+ "LogOff": "LogOff",+ "Power": "Toggle power state. (`KEYCODE_POWER`) Note: Some devices might not expose this key to the operating environment.",+ "PowerOff": "The `PowerOff` key. Sometime called `PowerDown`.",+ "PrintScreen": "Initiate print-screen function.",+ "Hibernate": "The Hibernate key. This key saves the current state of the computer to disk so that it can be restored. The computer will then shutdown.",+ "Standby": "The Standby key. This key turns off the display and places the computer into a low-power mode without completely shutting down. It is sometimes labeled `Suspend` or `Sleep` key. (`KEYCODE_SLEEP`)",+ "WakeUp": "The WakeUp key. (`KEYCODE_WAKEUP`)",+ "AllCandidates": "Initiate the multi-candidate mode.",+ "Alphanumeric": "The Alphanumeric key (on linux/web)",+ "CodeInput": "Initiate the Code Input mode to allow characters to be entered by their code points.",+ "Compose": "The Compose key, also known as \"Multi_key\" on the X Window System. This key acts in a manner similar to a dead key, triggering a mode where subsequent key presses are combined to produce a different character.",+ "Convert": "Convert the current input method sequence.",+ "FinalMode": "The Final Mode `Final` key used on some Asian keyboards, to enable the final mode for IMEs.",+ "GroupFirst": "Switch to the first character group. (ISO/IEC 9995)",+ "GroupLast": "Switch to the last character group. (ISO/IEC 9995)",+ "GroupNext": "Switch to the next character group. (ISO/IEC 9995)",+ "GroupPrevious": "Switch to the previous character group. (ISO/IEC 9995)",+ "ModeChange": "Toggle between or cycle through input modes of IMEs.",+ "NextCandidate": "NextCandidate, web only.",+ "NonConvert": "Accept current input method sequence without conversion in IMEs.",+ "PreviousCandidate": "PreviousCandidate, web only.",+ "Process": "IME PROCESS key",+ "SingleCandidate": "SingleCandidate",+ "HangulMode": "Toggle between Hangul and English modes.",+ "HanjaMode": "HanjaMode",+ "JunjaMode": "JunjaMode",+ "Eisu": "The Eisu key. This key may close the IME, but its purpose is defined by the current IME. (`KEYCODE_EISU`)",+ "Hankaku": "The (Half-Width) Characters key.",+ "Hiragana": "The Hiragana (Japanese Kana characters) key.",+ "HiraganaKatakana": "The Hiragana/Katakana toggle key. (`KEYCODE_KATAKANA_HIRAGANA`)",+ "KanaMode": "The Kana Mode (Kana Lock) key. This key is used to enter hiragana mode (typically from romaji mode).",+ "KanjiMode": "The Kanji (Japanese name for ideographic characters of Chinese origin) Mode key. This key is typically used to switch to a hiragana keyboard for the purpose of converting input into kanji. (`KEYCODE_KANA`)",+ "Katakana": "The Katakana (Japanese Kana characters) key.",+ "Romaji": "The Roman characters function key.",+ "Zenkaku": "The Zenkaku (Full-Width) Characters key.",+ "ZenkakuHankaku": "The Zenkaku/Hankaku (full-width/half-width) toggle key. (`KEYCODE_ZENKAKU_HANKAKU`)",+ "Soft1": "General purpose virtual function key, as index 1.",+ "Soft2": "General purpose virtual function key, as index 2.",+ "Soft3": "General purpose virtual function key, as index 3.",+ "Soft4": "General purpose virtual function key, as index 4.",+ "ChannelDown": "Select next (numerically or logically) lower channel. (`APPCOMMAND_MEDIA_CHANNEL_DOWN`, `KEYCODE_CHANNEL_DOWN`)",+ "ChannelUp": "Select next (numerically or logically) higher channel. (`APPCOMMAND_MEDIA_CHANNEL_UP`, `KEYCODE_CHANNEL_UP`)",+ "Close": "Close the current document or message (Note: This doesn’t close the application). (`APPCOMMAND_CLOSE`)",+ "MailForward": "Open an editor to forward the current message. (`APPCOMMAND_FORWARD_MAIL`)",+ "MailReply": "Open an editor to reply to the current message. (`APPCOMMAND_REPLY_TO_MAIL`)",+ "MailSend": "Send the current message. (`APPCOMMAND_SEND_MAIL`)",+ "MediaClose": "Close the current media, for example to close a CD or DVD tray. (`KEYCODE_MEDIA_CLOSE`)",+ "MediaFastForward": "Initiate or continue forward playback at faster than normal speed, or increase speed if already fast forwarding. (`APPCOMMAND_MEDIA_FAST_FORWARD`, `KEYCODE_MEDIA_FAST_FORWARD`)",+ "MediaPause": "Pause the currently playing media. (`APPCOMMAND_MEDIA_PAUSE`, `KEYCODE_MEDIA_PAUSE`)",+ "MediaPlay": "Initiate or continue media playback at normal speed, if not currently playing at normal speed. (`APPCOMMAND_MEDIA_PLAY`, `KEYCODE_MEDIA_PLAY`)",+ "MediaPlayPause": "Toggle media between play and pause states. (`APPCOMMAND_MEDIA_PLAY_PAUSE`, `KEYCODE_MEDIA_PLAY_PAUSE`)",+ "MediaRecord": "Initiate or resume recording of currently selected media. (`APPCOMMAND_MEDIA_RECORD`, `KEYCODE_MEDIA_RECORD`)",+ "MediaRewind": "Initiate or continue reverse playback at faster than normal speed, or increase speed if already rewinding. (`APPCOMMAND_MEDIA_REWIND`, `KEYCODE_MEDIA_REWIND`)",+ "MediaStop": "Stop media playing, pausing, forwarding, rewinding, or recording, if not already stopped. (`APPCOMMAND_MEDIA_STOP`, `KEYCODE_MEDIA_STOP`)",+ "MediaTrackNext": "Seek to next media or program track. (`APPCOMMAND_MEDIA_NEXTTRACK`, `KEYCODE_MEDIA_NEXT`)",+ "MediaTrackPrevious": "Seek to previous media or program track. (`APPCOMMAND_MEDIA_PREVIOUSTRACK`, `KEYCODE_MEDIA_PREVIOUS`)",+ "New": "Open a new document or message. (`APPCOMMAND_NEW`)",+ "Open": "Open an existing document or message. (`APPCOMMAND_OPEN`)",+ "Print": "Print the current document or message. (`APPCOMMAND_PRINT`)",+ "Save": "Save the current document or message. (`APPCOMMAND_SAVE`)",+ "SpellCheck": "Spellcheck the current document or selection. (`APPCOMMAND_SPELL_CHECK`)",+ "Key11": "The `11` key found on media numpads that have buttons from `1` ... `12`.",+ "Key12": "The `12` key found on media numpads that have buttons from `1` ... `12`.",+ "AudioBalanceLeft": "Adjust audio balance leftward. (`VK_AUDIO_BALANCE_LEFT`)",+ "AudioBalanceRight": "Adjust audio balance rightward. (`VK_AUDIO_BALANCE_RIGHT`)",+ "AudioBassBoostDown": "Decrease audio bass boost or cycle down through bass boost states. (`APPCOMMAND_BASS_DOWN`, `VK_BASS_BOOST_DOWN`)",+ "AudioBassBoostToggle": "Toggle bass boost on/off. (`APPCOMMAND_BASS_BOOST`)",+ "AudioBassBoostUp": "Increase audio bass boost or cycle up through bass boost states. (`APPCOMMAND_BASS_UP`, `VK_BASS_BOOST_UP`)",+ "AudioFaderFront": "Adjust audio fader towards front. (`VK_FADER_FRONT`)",+ "AudioFaderRear": "Adjust audio fader towards rear. (`VK_FADER_REAR`)",+ "AudioSurroundModeNext": "Advance surround audio mode to next available mode. (`VK_SURROUND_MODE_NEXT`)",+ "AudioTrebleDown": "Decrease treble. (`APPCOMMAND_TREBLE_DOWN`)",+ "AudioTrebleUp": "Increase treble. (`APPCOMMAND_TREBLE_UP`)",+ "AudioVolumeDown": "Decrease audio volume. (`APPCOMMAND_VOLUME_DOWN`, `KEYCODE_VOLUME_DOWN`)",+ "AudioVolumeUp": "Increase audio volume. (`APPCOMMAND_VOLUME_UP`, `KEYCODE_VOLUME_UP`)",+ "AudioVolumeMute": "Toggle between muted state and prior volume level. (`APPCOMMAND_VOLUME_MUTE`, `KEYCODE_VOLUME_MUTE`)",+ "MicrophoneToggle": "Toggle the microphone on/off. (`APPCOMMAND_MIC_ON_OFF_TOGGLE`)",+ "MicrophoneVolumeDown": "Decrease microphone volume. (`APPCOMMAND_MICROPHONE_VOLUME_DOWN`)",+ "MicrophoneVolumeUp": "Increase microphone volume. (`APPCOMMAND_MICROPHONE_VOLUME_UP`)",+ "MicrophoneVolumeMute": "Mute the microphone. (`APPCOMMAND_MICROPHONE_VOLUME_MUTE`, `KEYCODE_MUTE`)",+ "SpeechCorrectionList": "Show correction list when a word is incorrectly identified. (`APPCOMMAND_CORRECTION_LIST`)",+ "SpeechInputToggle": "Toggle between dictation mode and command/control mode. (`APPCOMMAND_DICTATE_OR_COMMAND_CONTROL_TOGGLE`)",+ "LaunchApplication1": "The first generic \"LaunchApplication\" key. This is commonly associated with launching \"My Computer\", and may have a computer symbol on the key. (`APPCOMMAND_LAUNCH_APP1`)",+ "LaunchApplication2": "The second generic \"LaunchApplication\" key. This is commonly associated with launching \"Calculator\", and may have a calculator symbol on the key. (`APPCOMMAND_LAUNCH_APP2`, `KEYCODE_CALCULATOR`)",+ "LaunchCalendar": "The \"Calendar\" key. (`KEYCODE_CALENDAR`)",+ "LaunchContacts": "The \"Contacts\" key. (`KEYCODE_CONTACTS`)",+ "LaunchMail": "The \"Mail\" key. (`APPCOMMAND_LAUNCH_MAIL`)",+ "LaunchMediaPlayer": "The \"Media Player\" key. (`APPCOMMAND_LAUNCH_MEDIA_SELECT`)",+ "LaunchMusicPlayer": "LaunchMusicPlayer",+ "LaunchPhone": "LaunchPhone",+ "LaunchScreenSaver": "LaunchScreenSaver",+ "LaunchSpreadsheet": "LaunchSpreadsheet",+ "LaunchWebBrowser": "LaunchWebBrowser",+ "LaunchWebCam": "LaunchWebCam",+ "LaunchWordProcessor": "LaunchWordProcessor",+ "BrowserBack": "Navigate to previous content or page in current history. (`APPCOMMAND_BROWSER_BACKWARD`)",+ "BrowserFavorites": "Open the list of browser favorites. (`APPCOMMAND_BROWSER_FAVORITES`)",+ "BrowserForward": "Navigate to next content or page in current history. (`APPCOMMAND_BROWSER_FORWARD`)",+ "BrowserHome": "Go to the user’s preferred home page. (`APPCOMMAND_BROWSER_HOME`)",+ "BrowserRefresh": "Refresh the current page or content. (`APPCOMMAND_BROWSER_REFRESH`)",+ "BrowserSearch": "Call up the user’s preferred search page. (`APPCOMMAND_BROWSER_SEARCH`)",+ "BrowserStop": "Stop loading the current page or content. (`APPCOMMAND_BROWSER_STOP`)",+ "AppSwitch": "The Application switch key, which provides a list of recent apps to switch between. (`KEYCODE_APP_SWITCH`)",+ "Call": "The Call key. (`KEYCODE_CALL`)",+ "Camera": "The Camera key. (`KEYCODE_CAMERA`)",+ "CameraFocus": "The Camera focus key. (`KEYCODE_FOCUS`)",+ "EndCall": "The End Call key. (`KEYCODE_ENDCALL`)",+ "GoBack": "The Back key. (`KEYCODE_BACK`)",+ "GoHome": "The Home key, which goes to the phone’s main screen. (`KEYCODE_HOME`)",+ "HeadsetHook": "The Headset Hook key. (`KEYCODE_HEADSETHOOK`)",+ "LastNumberRedial": "LastNumberRedial",+ "Notification": "The Notification key. (`KEYCODE_NOTIFICATION`)",+ "MannerMode": "Toggle between manner mode state: silent, vibrate, ring, ... (`KEYCODE_MANNER_MODE`)",+ "VoiceDial": "VoiceDial",+ "TV": "Switch to viewing TV. (`KEYCODE_TV`)",+ "TV3DMode": "TV 3D Mode. (`KEYCODE_3D_MODE`)",+ "TVAntennaCable": "Toggle between antenna and cable input. (`KEYCODE_TV_ANTENNA_CABLE`)",+ "TVAudioDescription": "Audio description. (`KEYCODE_TV_AUDIO_DESCRIPTION`)",+ "TVAudioDescriptionMixDown": "Audio description mixing volume down. (`KEYCODE_TV_AUDIO_DESCRIPTION_MIX_DOWN`)",+ "TVAudioDescriptionMixUp": "Audio description mixing volume up. (`KEYCODE_TV_AUDIO_DESCRIPTION_MIX_UP`)",+ "TVContentsMenu": "Contents menu. (`KEYCODE_TV_CONTENTS_MENU`)",+ "TVDataService": "Contents menu. (`KEYCODE_TV_DATA_SERVICE`)",+ "TVInput": "Switch the input mode on an external TV. (`KEYCODE_TV_INPUT`)",+ "TVInputComponent1": "Switch to component input #1. (`KEYCODE_TV_INPUT_COMPONENT_1`)",+ "TVInputComponent2": "Switch to component input #2. (`KEYCODE_TV_INPUT_COMPONENT_2`)",+ "TVInputComposite1": "Switch to composite input #1. (`KEYCODE_TV_INPUT_COMPOSITE_1`)",+ "TVInputComposite2": "Switch to composite input #2. (`KEYCODE_TV_INPUT_COMPOSITE_2`)",+ "TVInputHDMI1": "Switch to HDMI input #1. (`KEYCODE_TV_INPUT_HDMI_1`)",+ "TVInputHDMI2": "Switch to HDMI input #2. (`KEYCODE_TV_INPUT_HDMI_2`)",+ "TVInputHDMI3": "Switch to HDMI input #3. (`KEYCODE_TV_INPUT_HDMI_3`)",+ "TVInputHDMI4": "Switch to HDMI input #4. (`KEYCODE_TV_INPUT_HDMI_4`)",+ "TVInputVGA1": "Switch to VGA input #1. (`KEYCODE_TV_INPUT_VGA_1`)",+ "TVMediaContext": "Media context menu. (`KEYCODE_TV_MEDIA_CONTEXT_MENU`)",+ "TVNetwork": "Toggle network. (`KEYCODE_TV_NETWORK`)",+ "TVNumberEntry": "Number entry. (`KEYCODE_TV_NUMBER_ENTRY`)",+ "TVPower": "Toggle the power on an external TV. (`KEYCODE_TV_POWER`)",+ "TVRadioService": "Radio. (`KEYCODE_TV_RADIO_SERVICE`)",+ "TVSatellite": "Satellite. (`KEYCODE_TV_SATELLITE`)",+ "TVSatelliteBS": "Broadcast Satellite. (`KEYCODE_TV_SATELLITE_BS`)",+ "TVSatelliteCS": "Communication Satellite. (`KEYCODE_TV_SATELLITE_CS`)",+ "TVSatelliteToggle": "Toggle between available satellites. (`KEYCODE_TV_SATELLITE_SERVICE`)",+ "TVTerrestrialAnalog": "Analog Terrestrial. (`KEYCODE_TV_TERRESTRIAL_ANALOG`)",+ "TVTerrestrialDigital": "Digital Terrestrial. (`KEYCODE_TV_TERRESTRIAL_DIGITAL`)",+ "TVTimer": "Timer programming. (`KEYCODE_TV_TIMER_PROGRAMMING`)",+ "AVRInput": "Switch the input mode on an external AVR (audio/video receiver). (`KEYCODE_AVR_INPUT`)",+ "AVRPower": "Toggle the power on an external AVR (audio/video receiver). (`KEYCODE_AVR_POWER`)",+ "ColorF0Red": "General purpose color-coded media function key, as index 0 (red). (`VK_COLORED_KEY_0`, `KEYCODE_PROG_RED`)",+ "ColorF1Green": "General purpose color-coded media function key, as index 1 (green). (`VK_COLORED_KEY_1`, `KEYCODE_PROG_GREEN`)",+ "ColorF2Yellow": "General purpose color-coded media function key, as index 2 (yellow). (`VK_COLORED_KEY_2`, `KEYCODE_PROG_YELLOW`)",+ "ColorF3Blue": "General purpose color-coded media function key, as index 3 (blue). (`VK_COLORED_KEY_3`, `KEYCODE_PROG_BLUE`)",+ "ColorF4Grey": "General purpose color-coded media function key, as index 4 (grey). (`VK_COLORED_KEY_4`)",+ "ColorF5Brown": "General purpose color-coded media function key, as index 5 (brown). (`VK_COLORED_KEY_5`)",+ "ClosedCaptionToggle": "Toggle the display of Closed Captions. (`VK_CC`, `KEYCODE_CAPTIONS`)",+ "Dimmer": "Adjust brightness of device, by toggling between or cycling through states. (`VK_DIMMER`)",+ "DisplaySwap": "Swap video sources. (`VK_DISPLAY_SWAP`)",+ "DVR": "Select Digital Video Recorder. (`KEYCODE_DVR`)",+ "Exit": "Exit the current application. (`VK_EXIT`)",+ "FavoriteClear0": "Clear program or content stored as favorite 0. (`VK_CLEAR_FAVORITE_0`)",+ "FavoriteClear1": "Clear program or content stored as favorite 1. (`VK_CLEAR_FAVORITE_1`)",+ "FavoriteClear2": "Clear program or content stored as favorite 2. (`VK_CLEAR_FAVORITE_2`)",+ "FavoriteClear3": "Clear program or content stored as favorite 3. (`VK_CLEAR_FAVORITE_3`)",+ "FavoriteRecall0": "Select (recall) program or content stored as favorite 0. (`VK_RECALL_FAVORITE_0`)",+ "FavoriteRecall1": "Select (recall) program or content stored as favorite 1. (`VK_RECALL_FAVORITE_1`)",+ "FavoriteRecall2": "Select (recall) program or content stored as favorite 2. (`VK_RECALL_FAVORITE_2`)",+ "FavoriteRecall3": "Select (recall) program or content stored as favorite 3. (`VK_RECALL_FAVORITE_3`)",+ "FavoriteStore0": "Store current program or content as favorite 0. (`VK_STORE_FAVORITE_0`)",+ "FavoriteStore1": "Store current program or content as favorite 1. (`VK_STORE_FAVORITE_1`)",+ "FavoriteStore2": "Store current program or content as favorite 2. (`VK_STORE_FAVORITE_2`)",+ "FavoriteStore3": "Store current program or content as favorite 3. (`VK_STORE_FAVORITE_3`)",+ "Guide": "Toggle display of program or content guide. (`VK_GUIDE`, `KEYCODE_GUIDE`)",+ "GuideNextDay": "If guide is active and displayed, then display next day’s content. (`VK_NEXT_DAY`)",+ "GuidePreviousDay": "If guide is active and displayed, then display previous day’s content. (`VK_PREV_DAY`)",+ "Info": "Toggle display of information about currently selected context or media. (`VK_INFO`, `KEYCODE_INFO`)",+ "InstantReplay": "Toggle instant replay. (`VK_INSTANT_REPLAY`)",+ "Link": "Launch linked content, if available and appropriate. (`VK_LINK`)",+ "ListProgram": "List the current program. (`VK_LIST`)",+ "LiveContent": "Toggle display listing of currently available live content or programs. (`VK_LIVE`)",+ "Lock": "Lock or unlock current content or program. (`VK_LOCK`)",+ "MediaApps": "Show a list of media applications: audio/video players and image viewers. (`VK_APPS`)",+ "MediaAudioTrack": "Audio track key. (`KEYCODE_MEDIA_AUDIO_TRACK`)",+ "MediaLast": "Select previously selected channel or media. (`VK_LAST`, `KEYCODE_LAST_CHANNEL`)",+ "MediaSkipBackward": "Skip backward to next content or program. (`KEYCODE_MEDIA_SKIP_BACKWARD`)",+ "MediaSkipForward": "Skip forward to next content or program. (`VK_SKIP`, `KEYCODE_MEDIA_SKIP_FORWARD`)",+ "MediaStepBackward": "Step backward to next content or program. (`KEYCODE_MEDIA_STEP_BACKWARD`)",+ "MediaStepForward": "Step forward to next content or program. (`KEYCODE_MEDIA_STEP_FORWARD`)",+ "MediaTopMenu": "Media top menu. (`KEYCODE_MEDIA_TOP_MENU`)",+ "NavigateIn": "Navigate in. (`KEYCODE_NAVIGATE_IN`)",+ "NavigateNext": "Navigate to next key. (`KEYCODE_NAVIGATE_NEXT`)",+ "NavigateOut": "Navigate out. (`KEYCODE_NAVIGATE_OUT`)",+ "NavigatePrevious": "Navigate to previous key. (`KEYCODE_NAVIGATE_PREVIOUS`)",+ "NextFavoriteChannel": "Cycle to next favorite channel (in favorites list). (`VK_NEXT_FAVORITE_CHANNEL`)",+ "NextUserProfile": "Cycle to next user profile (if there are multiple user profiles). (`VK_USER`)",+ "OnDemand": "Access on-demand content or programs. (`VK_ON_DEMAND`)",+ "Pairing": "Pairing key to pair devices. (`KEYCODE_PAIRING`)",+ "PinPDown": "Move picture-in-picture window down. (`VK_PINP_DOWN`)",+ "PinPMove": "Move picture-in-picture window. (`VK_PINP_MOVE`)",+ "PinPToggle": "Toggle display of picture-in-picture window. (`VK_PINP_TOGGLE`)",+ "PinPUp": "Move picture-in-picture window up. (`VK_PINP_UP`)",+ "PlaySpeedDown": "Decrease media playback speed. (`VK_PLAY_SPEED_DOWN`)",+ "PlaySpeedReset": "Reset playback to normal speed. (`VK_PLAY_SPEED_RESET`)",+ "PlaySpeedUp": "Increase media playback speed. (`VK_PLAY_SPEED_UP`)",+ "RandomToggle": "Toggle random media or content shuffle mode. (`VK_RANDOM_TOGGLE`)",+ "RcLowBattery": "Not a physical key, but this key code is sent when the remote control battery is low. (`VK_RC_LOW_BATTERY`)",+ "RecordSpeedNext": "Toggle or cycle between media recording speeds. (`VK_RECORD_SPEED_NEXT`)",+ "RfBypass": "Toggle RF (radio frequency) input bypass mode (pass RF input directly to the RF output). (`VK_RF_BYPASS`)",+ "ScanChannelsToggle": "Toggle scan channels mode. (`VK_SCAN_CHANNELS_TOGGLE`)",+ "ScreenModeNext": "Advance display screen mode to next available mode. (`VK_SCREEN_MODE_NEXT`)",+ "Settings": "Toggle display of device settings screen. (`VK_SETTINGS`, `KEYCODE_SETTINGS`)",+ "SplitScreenToggle": "Toggle split screen mode. (`VK_SPLIT_SCREEN_TOGGLE`)",+ "STBInput": "Switch the input mode on an external STB (set top box). (`KEYCODE_STB_INPUT`)",+ "STBPower": "Toggle the power on an external STB (set top box). (`KEYCODE_STB_POWER`)",+ "Subtitle": "Toggle display of subtitles, if available. (`VK_SUBTITLE`)",+ "Teletext": "Toggle display of teletext, if available (`VK_TELETEXT`, `KEYCODE_TV_TELETEXT`).",+ "VideoModeNext": "Advance video mode to next available mode. (`VK_VIDEO_MODE_NEXT`)",+ "Wink": "Cause device to identify itself in some manner, e.g., audibly or visibly. (`VK_WINK`)",+ "ZoomToggle": "Toggle between full-screen and scaled content, or alter magnification level. (`VK_ZOOM`, `KEYCODE_TV_ZOOM_MODE`)",+ "F1": "General-purpose function key. Usually found at the top of the keyboard.",+ "F2": "General-purpose function key. Usually found at the top of the keyboard.",+ "F3": "General-purpose function key. Usually found at the top of the keyboard.",+ "F4": "General-purpose function key. Usually found at the top of the keyboard.",+ "F5": "General-purpose function key. Usually found at the top of the keyboard.",+ "F6": "General-purpose function key. Usually found at the top of the keyboard.",+ "F7": "General-purpose function key. Usually found at the top of the keyboard.",+ "F8": "General-purpose function key. Usually found at the top of the keyboard.",+ "F9": "General-purpose function key. Usually found at the top of the keyboard.",+ "F10": "General-purpose function key. Usually found at the top of the keyboard.",+ "F11": "General-purpose function key. Usually found at the top of the keyboard.",+ "F12": "General-purpose function key. Usually found at the top of the keyboard.",+ "F13": "General-purpose function key. Usually found at the top of the keyboard.",+ "F14": "General-purpose function key. Usually found at the top of the keyboard.",+ "F15": "General-purpose function key. Usually found at the top of the keyboard.",+ "F16": "General-purpose function key. Usually found at the top of the keyboard.",+ "F17": "General-purpose function key. Usually found at the top of the keyboard.",+ "F18": "General-purpose function key. Usually found at the top of the keyboard.",+ "F19": "General-purpose function key. Usually found at the top of the keyboard.",+ "F20": "General-purpose function key. Usually found at the top of the keyboard.",+ "F21": "General-purpose function key. Usually found at the top of the keyboard.",+ "F22": "General-purpose function key. Usually found at the top of the keyboard.",+ "F23": "General-purpose function key. Usually found at the top of the keyboard.",+ "F24": "General-purpose function key. Usually found at the top of the keyboard.",+ "F25": "General-purpose function key.",+ "F26": "General-purpose function key.",+ "F27": "General-purpose function key.",+ "F28": "General-purpose function key.",+ "F29": "General-purpose function key.",+ "F30": "General-purpose function key.",+ "F31": "General-purpose function key.",+ "F32": "General-purpose function key.",+ "F33": "General-purpose function key.",+ "F34": "General-purpose function key.",+ "F35": "General-purpose function key."+ }+ },+ "bevy_input::keyboard::KeyCode": {+ "doc": "The key code of a `KeyboardInput`.",+ "fields": {+ "Unidentified": "This variant is used when the key cannot be translated to any other variant.",+ "Backquote": "<kbd>\\`</kbd> on a US keyboard. This is also called a backtick or grave. This is the <kbd>半角</kbd>/<kbd>全角</kbd>/<kbd>漢字</kbd> (hankaku/zenkaku/kanji) key on Japanese keyboards",+ "Backslash": "Used for both the US <kbd>\\\\</kbd> (on the 101-key layout) and also for the key located between the <kbd>\"</kbd> and <kbd>Enter</kbd> keys on row C of the 102-, 104- and 106-key layouts. Labeled <kbd>#</kbd> on a UK (102) keyboard.",+ "BracketLeft": "<kbd>[</kbd> on a US keyboard.",+ "BracketRight": "<kbd>]</kbd> on a US keyboard.",+ "Comma": "<kbd>,</kbd> on a US keyboard.",+ "Digit0": "<kbd>0</kbd> on a US keyboard.",+ "Digit1": "<kbd>1</kbd> on a US keyboard.",+ "Digit2": "<kbd>2</kbd> on a US keyboard.",+ "Digit3": "<kbd>3</kbd> on a US keyboard.",+ "Digit4": "<kbd>4</kbd> on a US keyboard.",+ "Digit5": "<kbd>5</kbd> on a US keyboard.",+ "Digit6": "<kbd>6</kbd> on a US keyboard.",+ "Digit7": "<kbd>7</kbd> on a US keyboard.",+ "Digit8": "<kbd>8</kbd> on a US keyboard.",+ "Digit9": "<kbd>9</kbd> on a US keyboard.",+ "Equal": "<kbd>=</kbd> on a US keyboard.",+ "IntlBackslash": "Located between the left <kbd>Shift</kbd> and <kbd>Z</kbd> keys. Labeled <kbd>\\\\</kbd> on a UK keyboard.",+ "IntlRo": "Located between the <kbd>/</kbd> and right <kbd>Shift</kbd> keys. Labeled <kbd>\\\\</kbd> (ro) on a Japanese keyboard.",+ "IntlYen": "Located between the <kbd>=</kbd> and <kbd>Backspace</kbd> keys. Labeled <kbd>¥</kbd> (yen) on a Japanese keyboard. <kbd>\\\\</kbd> on a Russian keyboard.",+ "KeyA": "<kbd>a</kbd> on a US keyboard. Labeled <kbd>q</kbd> on an AZERTY (e.g., French) keyboard.",+ "KeyB": "<kbd>b</kbd> on a US keyboard.",+ "KeyC": "<kbd>c</kbd> on a US keyboard.",+ "KeyD": "<kbd>d</kbd> on a US keyboard.",+ "KeyE": "<kbd>e</kbd> on a US keyboard.",+ "KeyF": "<kbd>f</kbd> on a US keyboard.",+ "KeyG": "<kbd>g</kbd> on a US keyboard.",+ "KeyH": "<kbd>h</kbd> on a US keyboard.",+ "KeyI": "<kbd>i</kbd> on a US keyboard.",+ "KeyJ": "<kbd>j</kbd> on a US keyboard.",+ "KeyK": "<kbd>k</kbd> on a US keyboard.",+ "KeyL": "<kbd>l</kbd> on a US keyboard.",+ "KeyM": "<kbd>m</kbd> on a US keyboard.",+ "KeyN": "<kbd>n</kbd> on a US keyboard.",+ "KeyO": "<kbd>o</kbd> on a US keyboard.",+ "KeyP": "<kbd>p</kbd> on a US keyboard.",+ "KeyQ": "<kbd>q</kbd> on a US keyboard. Labeled <kbd>a</kbd> on an AZERTY (e.g., French) keyboard.",+ "KeyR": "<kbd>r</kbd> on a US keyboard.",+ "KeyS": "<kbd>s</kbd> on a US keyboard.",+ "KeyT": "<kbd>t</kbd> on a US keyboard.",+ "KeyU": "<kbd>u</kbd> on a US keyboard.",+ "KeyV": "<kbd>v</kbd> on a US keyboard.",+ "KeyW": "<kbd>w</kbd> on a US keyboard. Labeled <kbd>z</kbd> on an AZERTY (e.g., French) keyboard.",+ "KeyX": "<kbd>x</kbd> on a US keyboard.",+ "KeyY": "<kbd>y</kbd> on a US keyboard. Labeled <kbd>z</kbd> on a QWERTZ (e.g., German) keyboard.",+ "KeyZ": "<kbd>z</kbd> on a US keyboard. Labeled <kbd>w</kbd> on an AZERTY (e.g., French) keyboard, and <kbd>y</kbd> on a QWERTZ (e.g., German) keyboard.",+ "Minus": "<kbd>-</kbd> on a US keyboard.",+ "Period": "<kbd>.</kbd> on a US keyboard.",+ "Quote": "<kbd>'</kbd> on a US keyboard.",+ "Semicolon": "<kbd>;</kbd> on a US keyboard.",+ "Slash": "<kbd>/</kbd> on a US keyboard.",+ "AltLeft": "<kbd>Alt</kbd>, <kbd>Option</kbd>, or <kbd>⌥</kbd>.",+ "AltRight": "<kbd>Alt</kbd>, <kbd>Option</kbd>, or <kbd>⌥</kbd>. This is labeled <kbd>AltGr</kbd> on many keyboard layouts.",+ "Backspace": "<kbd>Backspace</kbd> or <kbd>⌫</kbd>. Labeled <kbd>Delete</kbd> on Apple keyboards.",+ "CapsLock": "<kbd>CapsLock</kbd> or <kbd>⇪</kbd>",+ "ContextMenu": "The application context menu key, which is typically found between the right <kbd>Super</kbd> key and the right <kbd>Control</kbd> key.",+ "ControlLeft": "<kbd>Control</kbd> or <kbd>⌃</kbd>",+ "ControlRight": "<kbd>Control</kbd> or <kbd>⌃</kbd>",+ "Enter": "<kbd>Enter</kbd> or <kbd>↵</kbd>. Labeled <kbd>Return</kbd> on Apple keyboards.",+ "SuperLeft": "The Windows, <kbd>⌘</kbd>, <kbd>Command</kbd>, or other OS symbol key.",+ "SuperRight": "The Windows, <kbd>⌘</kbd>, <kbd>Command</kbd>, or other OS symbol key.",+ "ShiftLeft": "<kbd>Shift</kbd> or <kbd>⇧</kbd>",+ "ShiftRight": "<kbd>Shift</kbd> or <kbd>⇧</kbd>",+ "Space": "<kbd> </kbd> (space)",+ "Tab": "<kbd>Tab</kbd> or <kbd>⇥</kbd>",+ "Convert": "Japanese: <kbd>変</kbd> (henkan)",+ "KanaMode": "Japanese: <kbd>カタカナ</kbd>/<kbd>ひらがな</kbd>/<kbd>ローマ字</kbd> (katakana/hiragana/romaji)",+ "Lang1": "Korean: HangulMode <kbd>한/영</kbd> (han/yeong)",+ "Lang2": "Korean: Hanja <kbd>한</kbd> (hanja)",+ "Lang3": "Japanese (word-processing keyboard): Katakana",+ "Lang4": "Japanese (word-processing keyboard): Hiragana",+ "Lang5": "Japanese (word-processing keyboard): Zenkaku/Hankaku",+ "NonConvert": "Japanese: <kbd>無変換</kbd> (muhenkan)",+ "Delete": "<kbd>⌦</kbd>. The forward delete key. Note that on Apple keyboards, the key labeled <kbd>Delete</kbd> on the main part of the keyboard is encoded as `Backspace`.",+ "End": "<kbd>Page Down</kbd>, <kbd>End</kbd>, or <kbd>↘</kbd>",+ "Help": "<kbd>Help</kbd>. Not present on standard PC keyboards.",+ "Home": "<kbd>Home</kbd> or <kbd>↖</kbd>",+ "Insert": "<kbd>Insert</kbd> or <kbd>Ins</kbd>. Not present on Apple keyboards.",+ "PageDown": "<kbd>Page Down</kbd>, <kbd>PgDn</kbd>, or <kbd>⇟</kbd>",+ "PageUp": "<kbd>Page Up</kbd>, <kbd>PgUp</kbd>, or <kbd>⇞</kbd>",+ "ArrowDown": "<kbd>↓</kbd>",+ "ArrowLeft": "<kbd>←</kbd>",+ "ArrowRight": "<kbd>→</kbd>",+ "ArrowUp": "<kbd>↑</kbd>",+ "NumLock": "On the Mac, this is used for the numpad <kbd>Clear</kbd> key.",+ "Numpad0": "<kbd>0 Ins</kbd> on a keyboard. <kbd>0</kbd> on a phone or remote control",+ "Numpad1": "<kbd>1 End</kbd> on a keyboard. <kbd>1</kbd> or <kbd>1 QZ</kbd> on a phone or remote control",+ "Numpad2": "<kbd>2 ↓</kbd> on a keyboard. <kbd>2 ABC</kbd> on a phone or remote control",+ "Numpad3": "<kbd>3 PgDn</kbd> on a keyboard. <kbd>3 DEF</kbd> on a phone or remote control",+ "Numpad4": "<kbd>4 ←</kbd> on a keyboard. <kbd>4 GHI</kbd> on a phone or remote control",+ "Numpad5": "<kbd>5</kbd> on a keyboard. <kbd>5 JKL</kbd> on a phone or remote control",+ "Numpad6": "<kbd>6 →</kbd> on a keyboard. <kbd>6 MNO</kbd> on a phone or remote control",+ "Numpad7": "<kbd>7 Home</kbd> on a keyboard. <kbd>7 PQRS</kbd> or <kbd>7 PRS</kbd> on a phone or remote control",+ "Numpad8": "<kbd>8 ↑</kbd> on a keyboard. <kbd>8 TUV</kbd> on a phone or remote control",+ "Numpad9": "<kbd>9 PgUp</kbd> on a keyboard. <kbd>9 WXYZ</kbd> or <kbd>9 WXY</kbd> on a phone or remote control",+ "NumpadAdd": "<kbd>+</kbd>",+ "NumpadBackspace": "Found on the Microsoft Natural Keyboard.",+ "NumpadClear": "<kbd>C</kbd> or <kbd>A</kbd> (All Clear). Also for use with numpads that have a <kbd>Clear</kbd> key that is separate from the <kbd>NumLock</kbd> key. On the Mac, the numpad <kbd>Clear</kbd> key is encoded as `NumLock`.",+ "NumpadClearEntry": "<kbd>C</kbd> (Clear Entry)",+ "NumpadComma": "<kbd>,</kbd> (thousands separator). For locales where the thousands separator is a \".\" (e.g., Brazil), this key may generate a <kbd>.</kbd>.",+ "NumpadDecimal": "<kbd>. Del</kbd>. For locales where the decimal separator is \",\" (e.g., Brazil), this key may generate a <kbd>,</kbd>.",+ "NumpadDivide": "<kbd>/</kbd>",+ "NumpadEnter": "The Enter key on the numpad.",+ "NumpadEqual": "<kbd>=</kbd>",+ "NumpadHash": "<kbd>#</kbd> on a phone or remote control device. This key is typically found below the <kbd>9</kbd> key and to the right of the <kbd>0</kbd> key.",+ "NumpadMemoryAdd": "<kbd>M</kbd> Add current entry to the value stored in memory.",+ "NumpadMemoryClear": "<kbd>M</kbd> Clear the value stored in memory.",+ "NumpadMemoryRecall": "<kbd>M</kbd> Replace the current entry with the value stored in memory.",+ "NumpadMemoryStore": "<kbd>M</kbd> Replace the value stored in memory with the current entry.",+ "NumpadMemorySubtract": "<kbd>M</kbd> Subtract current entry from the value stored in memory.",+ "NumpadMultiply": "<kbd>*</kbd> on a keyboard. For use with numpads that provide mathematical operations (<kbd>+</kbd>, <kbd>-</kbd> <kbd>*</kbd> and <kbd>/</kbd>).",+ "NumpadParenLeft": "<kbd>(</kbd> Found on the Microsoft Natural Keyboard.",+ "NumpadParenRight": "<kbd>)</kbd> Found on the Microsoft Natural Keyboard.",+ "NumpadStar": "<kbd>*</kbd> on a phone or remote control device.",+ "NumpadSubtract": "<kbd>-</kbd>",+ "Escape": "<kbd>Esc</kbd> or <kbd>⎋</kbd>",+ "Fn": "<kbd>Fn</kbd> This is typically a hardware key that does not generate a separate code.",+ "FnLock": "<kbd>FLock</kbd> or <kbd>FnLock</kbd>. Function Lock key. Found on the Microsoft Natural Keyboard.",+ "PrintScreen": "<kbd>PrtScr SysRq</kbd> or <kbd>Print Screen</kbd>",+ "ScrollLock": "<kbd>Scroll Lock</kbd>",+ "Pause": "<kbd>Pause Break</kbd>",+ "BrowserBack": "Some laptops place this key to the left of the <kbd>↑</kbd> key.",+ "BrowserFavorites": "BrowserFavorites",+ "BrowserForward": "Some laptops place this key to the right of the <kbd>↑</kbd> key.",+ "BrowserHome": "The \"home\" button on Android.",+ "BrowserRefresh": "BrowserRefresh",+ "BrowserSearch": "BrowserSearch",+ "BrowserStop": "BrowserStop",+ "Eject": "<kbd>Eject</kbd> or <kbd>⏏</kbd>. This key is placed in the function section on some Apple keyboards.",+ "LaunchApp1": "Sometimes labeled <kbd>My Computer</kbd> on the keyboard",+ "LaunchApp2": "Sometimes labeled <kbd>Calculator</kbd> on the keyboard",+ "LaunchMail": "LaunchMail",+ "MediaPlayPause": "MediaPlayPause",+ "MediaSelect": "MediaSelect",+ "MediaStop": "MediaStop",+ "MediaTrackNext": "MediaTrackNext",+ "MediaTrackPrevious": "MediaTrackPrevious",+ "Power": "This key is placed in the function section on some Apple keyboards, replacing the <kbd>Eject</kbd> key.",+ "Sleep": "Sleep",+ "AudioVolumeDown": "AudioVolumeDown",+ "AudioVolumeMute": "AudioVolumeMute",+ "AudioVolumeUp": "AudioVolumeUp",+ "WakeUp": "WakeUp",+ "Meta": "Legacy modifier key. Also called \"Super\" in certain places.",+ "Hyper": "Legacy modifier key.",+ "Turbo": "Turbo",+ "Abort": "Abort",+ "Resume": "Resume",+ "Suspend": "Suspend",+ "Again": "Found on Sun’s USB keyboard.",+ "Copy": "Found on Sun’s USB keyboard.",+ "Cut": "Found on Sun’s USB keyboard.",+ "Find": "Found on Sun’s USB keyboard.",+ "Open": "Found on Sun’s USB keyboard.",+ "Paste": "Found on Sun’s USB keyboard.",+ "Props": "Found on Sun’s USB keyboard.",+ "Select": "Found on Sun’s USB keyboard.",+ "Undo": "Found on Sun’s USB keyboard.",+ "Hiragana": "Use for dedicated <kbd>ひらがな</kbd> key found on some Japanese word processing keyboards.",+ "Katakana": "Use for dedicated <kbd>カタカナ</kbd> key found on some Japanese word processing keyboards.",+ "F1": "General-purpose function key. Usually found at the top of the keyboard.",+ "F2": "General-purpose function key. Usually found at the top of the keyboard.",+ "F3": "General-purpose function key. Usually found at the top of the keyboard.",+ "F4": "General-purpose function key. Usually found at the top of the keyboard.",+ "F5": "General-purpose function key. Usually found at the top of the keyboard.",+ "F6": "General-purpose function key. Usually found at the top of the keyboard.",+ "F7": "General-purpose function key. Usually found at the top of the keyboard.",+ "F8": "General-purpose function key. Usually found at the top of the keyboard.",+ "F9": "General-purpose function key. Usually found at the top of the keyboard.",+ "F10": "General-purpose function key. Usually found at the top of the keyboard.",+ "F11": "General-purpose function key. Usually found at the top of the keyboard.",+ "F12": "General-purpose function key. Usually found at the top of the keyboard.",+ "F13": "General-purpose function key. Usually found at the top of the keyboard.",+ "F14": "General-purpose function key. Usually found at the top of the keyboard.",+ "F15": "General-purpose function key. Usually found at the top of the keyboard.",+ "F16": "General-purpose function key. Usually found at the top of the keyboard.",+ "F17": "General-purpose function key. Usually found at the top of the keyboard.",+ "F18": "General-purpose function key. Usually found at the top of the keyboard.",+ "F19": "General-purpose function key. Usually found at the top of the keyboard.",+ "F20": "General-purpose function key. Usually found at the top of the keyboard.",+ "F21": "General-purpose function key. Usually found at the top of the keyboard.",+ "F22": "General-purpose function key. Usually found at the top of the keyboard.",+ "F23": "General-purpose function key. Usually found at the top of the keyboard.",+ "F24": "General-purpose function key. Usually found at the top of the keyboard.",+ "F25": "General-purpose function key.",+ "F26": "General-purpose function key.",+ "F27": "General-purpose function key.",+ "F28": "General-purpose function key.",+ "F29": "General-purpose function key.",+ "F30": "General-purpose function key.",+ "F31": "General-purpose function key.",+ "F32": "General-purpose function key.",+ "F33": "General-purpose function key.",+ "F34": "General-purpose function key.",+ "F35": "General-purpose function key."+ }+ },+ "bevy_input::keyboard::KeyboardFocusLost": {+ "doc": "Gets generated from `bevy_winit::winit_runner`",+ "fields": {}+ },+ "bevy_input::keyboard::KeyboardInput": {+ "doc": "A keyboard input event.",+ "fields": {+ "key_code": "The physical key code of the key.",+ "logical_key": "The logical key of the input.",+ "state": "The press state of the key.",+ "text": "Contains the text produced by this keypress.",+ "repeat": "On some systems, holding down a key for some period of time causes that key to be repeated as though it were being pressed and released repeatedly. This field is `true` if this event is the result of one of those repeats.",+ "window": "Window that received the input."+ }+ },+ "bevy_input::keyboard::NativeKey": {+ "doc": "Contains the platform-native logical key identifier, known as keysym.",+ "fields": {+ "Unidentified": "Unidentified",+ "Android": "An Android \"keycode\", which is similar to a \"virtual-key code\" on Windows.",+ "MacOS": "A macOS \"scancode\". There does not appear to be any direct analogue to either keysyms or \"virtual-key\" codes in macOS, so we report the scancode instead.",+ "Windows": "A Windows \"virtual-key code\".",+ "Xkb": "An XKB \"keysym\".",+ "Web": "A \"key value string\"."+ }+ },+ "bevy_input::keyboard::NativeKeyCode": {+ "doc": "Contains the platform-native physical key identifier",+ "fields": {+ "Unidentified": "Unidentified",+ "Android": "An Android \"scancode\".",+ "MacOS": "A macOS \"scancode\".",+ "Windows": "A Windows \"scancode\".",+ "Xkb": "An XKB \"keycode\"."+ }+ },+ "bevy_input::mouse::AccumulatedMouseMotion": {+ "doc": "Tracks how much the mouse has moved every frame.",+ "fields": {+ "delta": "The change in mouse position."+ }+ },+ "bevy_input::mouse::AccumulatedMouseScroll": {+ "doc": "Tracks how much the mouse has scrolled every frame.",+ "fields": {+ "unit": "The mouse scroll unit. If this value changes while scrolling, then the result of the accumulation could be incorrect",+ "delta": "The change in scroll position."+ }+ },+ "bevy_input::mouse::MouseButton": {+ "doc": "A button on a mouse device.",+ "fields": {+ "Left": "The left mouse button.",+ "Right": "The right mouse button.",+ "Middle": "The middle mouse button.",+ "Back": "The back mouse button.",+ "Forward": "The forward mouse button.",+ "Other": "Another mouse button with the associated number."+ }+ },+ "bevy_input::mouse::MouseButtonInput": {+ "doc": "A mouse button input event.",+ "fields": {+ "button": "The mouse button assigned to the event.",+ "state": "The pressed state of the button.",+ "window": "Window that received the input."+ }+ },+ "bevy_input::mouse::MouseMotion": {+ "doc": "An event reporting the change in physical position of a pointing device.",+ "fields": {+ "delta": "The change in the position of the pointing device since the last event was sent."+ }+ },+ "bevy_input::mouse::MouseScrollUnit": {+ "doc": "The scroll unit.",+ "fields": {+ "Line": "The line scroll unit.",+ "Pixel": "The pixel scroll unit."+ }+ },+ "bevy_input::mouse::MouseWheel": {+ "doc": "A mouse wheel event.",+ "fields": {+ "unit": "The mouse scroll unit.",+ "x": "The horizontal scroll value.",+ "y": "The vertical scroll value.",+ "window": "Window that received the input.",+ "phase": "Touch phase of the input."+ }+ },+ "bevy_input::touch::ForceTouch": {+ "doc": "A force description of a `Touch` input.",+ "fields": {+ "Calibrated": "On iOS, the force is calibrated so that the same number corresponds to roughly the same amount of pressure on the screen regardless of the device.",+ "Normalized": "If the platform reports the force as normalized, we have no way of knowing how much pressure 1.0 corresponds to – we know it's the maximum amount of force, but as to how much force, you might either have to press really hard, or not hard at all, depending on the device."+ }+ },+ "bevy_input::touch::TouchInput": {+ "doc": "A touch input event.",+ "fields": {+ "phase": "The phase of the touch input.",+ "position": "The position of the finger on the touchscreen.",+ "window": "The window entity registering the touch.",+ "force": "Describes how hard the screen was pressed.",+ "id": "The unique identifier of the finger."+ }+ },+ "bevy_input::touch::TouchPhase": {+ "doc": "A phase of a `TouchInput`.",+ "fields": {+ "Started": "A finger started to touch the touchscreen.",+ "Moved": "A finger moved over the touchscreen.",+ "Ended": "A finger stopped touching the touchscreen.",+ "Canceled": "The system canceled the tracking of the finger."+ }+ },+ "bevy_input_focus::AcquireFocus": {+ "doc": "An event which is used to set input focus. Trigger this on an entity, and it will bubble until it finds a focusable entity, and then set focus to it.",+ "fields": {+ "focused_entity": "The entity that has acquired focus.",+ "window": "The primary window entity."+ }+ },+ "bevy_input_focus::InputFocus": {+ "doc": "Resource representing which entity has input focus, if any. Input events (other than pointer-like inputs) will be dispatched to the current focus entity, or to the primary window if no entity has focus.",+ "fields": {}+ },+ "bevy_input_focus::InputFocusVisible": {+ "doc": "Resource representing whether the input focus indicator should be visible on UI elements.",+ "fields": {}+ },+ "bevy_input_focus::autofocus::AutoFocus": {+ "doc": "Indicates that this widget should automatically receive `InputFocus`.",+ "fields": {}+ },+ "bevy_input_focus::directional_navigation::AutoNavigationConfig": {+ "doc": "Configuration resource for automatic directional navigation and for generating manual navigation edges via `auto_generate_navigation_edges`",+ "fields": {+ "min_alignment_factor": "Minimum overlap ratio (0.0-1.0) required along the perpendicular axis for cardinal directions.",+ "max_search_distance": "Maximum search distance in logical pixels.",+ "prefer_aligned": "Whether to prefer nodes that are more aligned with the exact direction."+ }+ },+ "bevy_input_focus::directional_navigation::DirectionalNavigationMap": {+ "doc": "A resource that stores the manually specified traversable graph of focusable entities.",+ "fields": {+ "neighbors": "A directed graph of focusable entities."+ }+ },+ "bevy_input_focus::directional_navigation::NavNeighbor": {+ "doc": "Represents what's near a focusable entity.",+ "fields": {+ "Auto": "No neighbor explicitly set.",+ "Blocked": "Do not find a neighbor.",+ "Set": "The neighbor is known and set."+ }+ },+ "bevy_input_focus::directional_navigation::NavNeighbors": {+ "doc": "The up-to-eight neighbors of a focusable entity, one for each `CompassOctant`.",+ "fields": {+ "neighbors": "The array of neighbors, one for each `CompassOctant`. The mapping between array elements and directions is determined by `CompassOctant::to_index`."+ }+ },+ "bevy_input_focus::gained_and_lost::FocusCause": {+ "doc": "The cause for a `FocusGained`",+ "fields": {+ "Navigated": "The input was navigated into by the keyboard, gamepad, or default behavior when unknown.",+ "Pressed": "The input was pressed into with the mouse or touchpad",+ "Auto": "Focus was assigned automatically when an `AutoFocus` component was added."+ }+ },+ "bevy_input_focus::gained_and_lost::FocusGained": {+ "doc": "An `EntityEvent` that is sent when an entity gains `InputFocus`.",+ "fields": {+ "entity": "The entity that gained focus",+ "cause": "What caused this focus"+ }+ },+ "bevy_input_focus::gained_and_lost::FocusLost": {+ "doc": "An `EntityEvent` that is sent when an entity loses `InputFocus`.",+ "fields": {+ "entity": "The entity that lost focus."+ }+ },+ "bevy_input_focus::tab_navigation::NavAction": {+ "doc": "A navigation action that users might take to navigate your user interface in a cyclic fashion.",+ "fields": {+ "Next": "Navigate to the next focusable entity, wrapping around to the beginning if at the end.",+ "Previous": "Navigate to the previous focusable entity, wrapping around to the end if at the beginning.",+ "First": "Navigate to the first focusable entity.",+ "Last": "Navigate to the last focusable entity."+ }+ },+ "bevy_input_focus::tab_navigation::TabGroup": {+ "doc": "A component used to mark a tree of entities as containing tabbable elements.",+ "fields": {+ "order": "The order of the tab group relative to other tab groups.",+ "modal": "Whether this is a 'modal' group. If true, then tabbing within the group (that is, if the current focus entity is a child of this group) will cycle through the children of this group. If false, then tabbing within the group will cycle through all non-modal tab groups."+ }+ },+ "bevy_input_focus::tab_navigation::TabIndex": {+ "doc": "A component which indicates that an entity wants to participate in tab navigation.",+ "fields": {}+ },+ "bevy_light::NotShadowCaster": {+ "doc": "Add this component to make a `Mesh3d` not cast shadows.",+ "fields": {}+ },+ "bevy_light::NotShadowReceiver": {+ "doc": "Add this component to make a `Mesh3d` not receive shadows.",+ "fields": {}+ },+ "bevy_light::ShadowFilteringMethod": {+ "doc": "Add this component to a `Camera3d` to control how to anti-alias shadow edges.",+ "fields": {+ "Hardware2x2": "Hardware 2x2.",+ "Gaussian": "Approximates a fixed Gaussian blur, good when TAA isn't in use.",+ "Temporal": "A randomized filter that varies over time, good when TAA is in use."+ }+ },+ "bevy_light::TransmittedShadowReceiver": {+ "doc": "Add this component to make a `Mesh3d` using a PBR material with `StandardMaterial::diffuse_transmission > 0.0` receive shadows on its diffuse transmission lobe. (i.e. its “backside”)",+ "fields": {}+ },+ "bevy_light::ambient_light::AmbientLight": {+ "doc": "An ambient light, which lights the entire scene equally.",+ "fields": {+ "color": "The color of the ambient light.",+ "brightness": "A direct scale factor multiplied with `color` before being passed to the shader.",+ "affects_lightmapped_meshes": "Whether this ambient light has an effect on meshes with lightmaps."+ }+ },+ "bevy_light::ambient_light::GlobalAmbientLight": {+ "doc": "The global ambient light, which lights the entire scene equally.",+ "fields": {+ "color": "The color of the ambient light.",+ "brightness": "A direct scale factor multiplied with `color` before being passed to the shader.",+ "affects_lightmapped_meshes": "Whether this ambient light has an effect on meshes with lightmaps."+ }+ },+ "bevy_light::cascade::Cascade": {+ "doc": "A single cascade of a view's shadow map cascade. Several of these are used to cover most of the view to ensure most geometry gets shadows, with some overlap for blending at cascade transitions. Farther away cascades are larger and have a lower effective shadowmap texel per world unit resolution. All cascades have the same pixel dimensions however.",+ "fields": {+ "world_from_cascade": "The transform of the light, i.e. the view to world matrix.",+ "clip_from_cascade": "The orthographic projection for this cascade.",+ "clip_from_world": "The view-projection matrix for this cascade, converting world space into light clip space. Importantly, this is derived and stored separately from `view_transform` and `projection` to ensure shadow stability.",+ "texel_size": "Size of each shadow map texel in world units."+ }+ },+ "bevy_light::cascade::CascadeShadowConfig": {+ "doc": "Controls how cascaded shadow mapping works. Prefer using `CascadeShadowConfigBuilder` to construct an instance.",+ "fields": {+ "bounds": "The (positive) distance to the far boundary of each cascade.",+ "overlap_proportion": "The proportion of overlap each cascade has with the previous cascade.",+ "minimum_distance": "The (positive) distance to the near boundary of the first cascade."+ }+ },+ "bevy_light::cascade::Cascades": {+ "doc": "A `DirectionalLight`'s per-view list of `Cascade`s.",+ "fields": {+ "cascades": "Map from a view to the configuration of each of its `Cascade`s."+ }+ },+ "bevy_light::cluster::ClusterConfig": {+ "doc": "Configuration of the clustering strategy for clustered forward rendering",+ "fields": {+ "None": "Disable cluster calculations for this view",+ "Single": "One single cluster. Optimal for low-light complexity scenes or scenes where most lights affect the entire scene.",+ "XYZ": "Explicit `X`, `Y` and `Z` counts (may yield non-square `X/Y` clusters depending on the aspect ratio)",+ "FixedZ": "Fixed number of `Z` slices, `X` and `Y` calculated to give square clusters with at most total clusters. For top-down games where lights will generally always be within a short depth range, it may be useful to use this configuration with 1 or few `Z` slices. This would reduce the number of lights per cluster by distributing more clusters in screen space `X/Y` which matches how lights are distributed in the scene."+ }+ },+ "bevy_light::cluster::ClusterFarZMode": {+ "doc": "Configure the far z-plane mode used for the furthest depth slice for clustered forward rendering",+ "fields": {+ "MaxClusterableObjectRange": "Calculate the required maximum z-depth based on the clusterable objects that were visible on the previous frame. Makes better use of available clusters, speeding up GPU lighting operations at the expense of using more indices in the clusterable object index lists.",+ "Constant": "Constant max z-depth"+ }+ },+ "bevy_light::cluster::ClusterZConfig": {+ "doc": "Configure the depth-slicing strategy for clustered forward rendering",+ "fields": {+ "first_slice_depth": "Far `Z` plane of the first depth slice",+ "far_z_mode": "Strategy for how to evaluate the far `Z` plane of the furthest depth slice"+ }+ },+ "bevy_light::cluster::ClusteredDecal": {+ "doc": "An object that projects a decal onto surfaces within its bounds.",+ "fields": {+ "base_color_texture": "The image that the clustered decal projects onto the base color of the surface material.",+ "normal_map_texture": "The normal map that the clustered decal projects onto surfaces.",+ "metallic_roughness_texture": "The metallic-roughness map that the clustered decal projects onto surfaces.",+ "emissive_texture": "The emissive map that the clustered decal projects onto surfaces.",+ "tag": "An application-specific tag you can use for any purpose you want, in conjunction with a custom shader."+ }+ },+ "bevy_light::directional_light::DirectionalLight": {+ "doc": "A Directional light.",+ "fields": {+ "color": "The color of the light.",+ "illuminance": "Illuminance in lux (lumens per square meter), representing the amount of light projected onto surfaces by this light source. Lux is used here instead of lumens because a directional light illuminates all surfaces more-or-less the same way (depending on the angle of incidence). Lumens can only be specified for light sources which emit light from a specific area. The default is `light_consts::lux::AMBIENT_DAYLIGHT` = 10,000.",+ "shadow_maps_enabled": "Whether this light casts shadows.",+ "contact_shadows_enabled": "Whether this light casts contact shadows.",+ "soft_shadow_size": "Whether soft shadows are enabled, and if so, the size of the light.",+ "affects_lightmapped_mesh_diffuse": "Whether this directional light contributes diffuse lighting to meshes with lightmaps.",+ "shadow_depth_bias": "A value that adjusts the tradeoff between self-shadowing artifacts and proximity of shadows to their casters.",+ "shadow_normal_bias": "A bias applied along the direction of the fragment's surface normal. It is scaled to the shadow map's texel size so that it is automatically adjusted to the orthographic projection."+ }+ },+ "bevy_light::directional_light::DirectionalLightShadowMap": {+ "doc": "Controls the resolution of `DirectionalLight` and `SpotLight` shadow maps.",+ "fields": {+ "size": "Must be a power of two to avoid unstable cascade positioning."+ }+ },+ "bevy_light::directional_light::DirectionalLightTexture": {+ "doc": "Add to a `DirectionalLight` to add a light texture effect. A texture mask is applied to the light source to modulate its intensity, simulating patterns like window shadows, gobo/cookie effects, or soft falloffs.",+ "fields": {+ "image": "The texture image. Only the R channel is read.",+ "tiled": "Whether to tile the image infinitely, or use only a single tile centered at the light's translation"+ }+ },+ "bevy_light::gizmos::LightGizmoColor": {+ "doc": "Configures how a color is attributed to a light gizmo.",+ "fields": {+ "Manual": "User-specified color.",+ "Varied": "Random color derived from the light's `Entity`.",+ "MatchLightColor": "Take the color of the represented light.",+ "ByLightType": "Take the color provided by `LightGizmoConfigGroup` depending on the light kind."+ }+ },+ "bevy_light::gizmos::ShowLightGizmo": {+ "doc": "Add this `Component` to an entity to draw any of its lights components (`PointLight`, `SpotLight`, `DirectionalLight` and `RectLight`).",+ "fields": {+ "color": "Default color strategy for this light gizmo. If `None`, use the one provided by `LightGizmoConfigGroup`."+ }+ },+ "bevy_light::point_light::PointLight": {+ "doc": "A light that emits light in all directions from a central point.",+ "fields": {+ "color": "The color of this light source.",+ "intensity": "Luminous power in lumens, representing the amount of light emitted by this source in all directions.",+ "range": "Cut-off for the light's area-of-effect. Fragments outside this range will not be affected by this light at all, so it's important to tune this together with `intensity` to prevent hard lighting cut-offs.",+ "radius": "Simulates a light source coming from a spherical volume with the given radius.",+ "shadow_maps_enabled": "Whether this light casts shadows.",+ "contact_shadows_enabled": "Whether this light casts contact shadows.",+ "soft_shadows_enabled": "Whether soft shadows are enabled.",+ "affects_lightmapped_mesh_diffuse": "Whether this point light contributes diffuse lighting to meshes with lightmaps.",+ "shadow_depth_bias": "A bias used when sampling shadow maps to avoid \"shadow-acne\", or false shadow occlusions that happen as a result of shadow-map fragments not mapping 1:1 to screen-space fragments. Too high of a depth bias can lead to shadows detaching from their casters, or \"peter-panning\". This bias can be tuned together with `shadow_normal_bias` to correct shadow artifacts for a given scene.",+ "shadow_normal_bias": "A bias applied along the direction of the fragment's surface normal. It is scaled to the shadow map's texel size so that it can be small close to the camera and gets larger further away.",+ "shadow_map_near_z": "The distance from the light to near Z plane in the shadow map."+ }+ },+ "bevy_light::point_light::PointLightShadowMap": {+ "doc": "Controls the resolution of `PointLight` shadow maps.",+ "fields": {+ "size": "The width and height of each of the 6 faces of the cubemap."+ }+ },+ "bevy_light::point_light::PointLightTexture": {+ "doc": "Add to a `PointLight` to add a light texture effect. A texture mask is applied to the light source to modulate its intensity, simulating patterns like window shadows, gobo/cookie effects, or soft falloffs.",+ "fields": {+ "image": "The texture image. Only the R channel is read.",+ "cubemap_layout": "The cubemap layout. The image should be a packed cubemap in one of the formats described by the `CubemapLayout` enum."+ }+ },+ "bevy_light::probe::EnvironmentMapLight": {+ "doc": "A pair of cubemap textures that represent the surroundings of a specific area in space.",+ "fields": {+ "diffuse_map": "The blurry image that represents diffuse radiance surrounding a region.",+ "specular_map": "The typically-sharper, mipmapped image that represents specular radiance surrounding a region.",+ "intensity": "Scale factor applied to the diffuse and specular light generated by this component.",+ "rotation": "World space rotation applied to the environment light cubemaps. This is useful for users who require a different axis, such as the Z-axis, to serve as the vertical axis.",+ "affects_lightmapped_mesh_diffuse": "Whether the light from this environment map contributes diffuse lighting to meshes with lightmaps."+ }+ },+ "bevy_light::probe::GeneratedEnvironmentMapLight": {+ "doc": "A generated environment map that is filtered at runtime.",+ "fields": {+ "environment_map": "Source cubemap to be filtered on the GPU, size must be a power of two.",+ "intensity": "Scale factor applied to the diffuse and specular light generated by this component. Expressed in cd/m² (candela per square meter).",+ "rotation": "World-space rotation applied to the cubemap.",+ "affects_lightmapped_mesh_diffuse": "Whether this light contributes diffuse lighting to meshes that already have baked lightmaps."+ }+ },+ "bevy_light::probe::IrradianceVolume": {+ "doc": "The component that defines an irradiance volume.",+ "fields": {+ "voxels": "The 3D texture that represents the ambient cubes, encoded in the format described in `bevy_pbr::light_probe::irradiance_volume`.",+ "intensity": "Scale factor applied to the diffuse and specular light generated by this component.",+ "affects_lightmapped_meshes": "Whether the light from this irradiance volume has an effect on meshes with lightmaps."+ }+ },+ "bevy_light::probe::LightProbe": {+ "doc": "A marker component for a light probe, which is a cuboid region that provides global illumination to all fragments inside it.",+ "fields": {+ "falloff": "The distance over which the effect of the light probe becomes weaker, on each axis."+ }+ },+ "bevy_light::probe::ParallaxCorrection": {+ "doc": "Add this component to a reflection probe to customize *parallax correction*.",+ "fields": {+ "None": "No parallax correction is used.",+ "Auto": "The parallax correction boundaries correspond with the boundaries of the light probe.",+ "Custom": "The parallax correction boundaries are specified manually."+ }+ },+ "bevy_light::probe::Skybox": {+ "doc": "Adds a skybox to a 3D camera, based on a cubemap texture.",+ "fields": {+ "image": "The cubemap to use.",+ "brightness": "Scale factor applied to the skybox image. After applying this multiplier to the image samples, the resulting values should be in units of cd/m^2.",+ "rotation": "View space rotation applied to the skybox cubemap. This is useful for users who require a different axis, such as the Z-axis, to serve as the vertical axis."}},"bevy_light::rect_light::RectLight": {"doc": "A rectangular area light.","fields": {- "color": "The color of the light.",- "intensity": "Luminous power in lumens, representing the amount of light emitted by this source in all directions.",- "range": "Cut-off for the light's area-of-effect. Fragments outside this range will not be affected by this light at all, so it's important to tune this together with `intensity` to prevent hard lighting cut-offs.",- "width": "Width of the light rectangle (along local X).",- "height": "Height of the light rectangle (along local Y)."+ "color": "The color of the light.",+ "intensity": "Luminous power in lumens, representing the amount of light emitted by this source in all directions.",+ "range": "Cut-off for the light's area-of-effect. Fragments outside this range will not be affected by this light at all, so it's important to tune this together with `intensity` to prevent hard lighting cut-offs.",+ "width": "Width of the light rectangle (along local X).",+ "height": "Height of the light rectangle (along local Y)."+ }+ },+ "bevy_light::spot_light::SpotLight": {+ "doc": "A light that emits light in a given direction from a central point.",+ "fields": {+ "color": "The color of the light.",+ "intensity": "Luminous power in lumens, representing the amount of light emitted by this source in all directions.",+ "range": "Range in meters that this light illuminates.",+ "radius": "Simulates a light source coming from a spherical volume with the given radius.",+ "shadow_maps_enabled": "Whether this light casts shadows.",+ "contact_shadows_enabled": "Whether this light casts contact shadows. Cameras must also have the `ContactShadows` component.",+ "soft_shadows_enabled": "Whether soft shadows are enabled.",+ "affects_lightmapped_mesh_diffuse": "Whether this spot light contributes diffuse lighting to meshes with lightmaps.",+ "shadow_depth_bias": "A value that adjusts the tradeoff between self-shadowing artifacts and proximity of shadows to their casters.",+ "shadow_normal_bias": "A bias applied along the direction of the fragment's surface normal. It is scaled to the shadow map's texel size so that it can be small close to the camera and gets larger further away.",+ "shadow_map_near_z": "The distance from the light to the near Z plane in the shadow map.",+ "outer_angle": "Angle defining the distance from the spot light direction to the outer limit of the light's cone of effect. `outer_angle` must be < `PI / 2.0`.",+ "inner_angle": "Angle defining the distance from the spot light direction to the inner limit of the light's cone of effect. Light is attenuated from `inner_angle` to `outer_angle` to give a smooth falloff. `inner_angle` should be <= `outer_angle`"+ }+ },+ "bevy_light::spot_light::SpotLightTexture": {+ "doc": "Add to a `SpotLight` to add a light texture effect. A texture mask is applied to the light source to modulate its intensity, simulating patterns like window shadows, gobo/cookie effects, or soft falloffs.",+ "fields": {+ "image": "The texture image. Only the R channel is read. Note the border of the image should be entirely black to avoid leaking light."+ }+ },+ "bevy_light::volumetric::FogVolume": {+ "doc": "A unit cube of fog at the origin. Can be positioned and scaled with a `Transform`. Only visible by cameras with a `VolumetricFog` component when lit by a directional light with `VolumetricLight`.",+ "fields": {+ "fog_color": "The color of the fog.",+ "density_factor": "The density of fog, which measures how dark the fog is.",+ "density_texture": "Optional 3D voxel density texture for the fog.",+ "density_texture_offset": "Configurable offset of the density texture in UVW coordinates.",+ "absorption": "The absorption coefficient, which measures what fraction of light is absorbed by the fog at each step.",+ "scattering": "The scattering coefficient, which measures the fraction of light that's scattered toward, and away from, the viewer.",+ "scattering_asymmetry": "Measures the fraction of light that's scattered *toward* the camera, as opposed to *away* from the camera.",+ "light_tint": "Applies a nonphysical color to the light.",+ "light_intensity": "Scales the light by a fixed fraction."+ }+ },+ "bevy_light::volumetric::VolumetricFog": {+ "doc": "When placed on a `bevy_camera::Camera3d`, enables volumetric fog and volumetric lighting, also known as light shafts or god rays.",+ "fields": {+ "ambient_color": "Color of the ambient light.",+ "ambient_intensity": "The brightness of the ambient light.",+ "jitter": "The maximum distance to offset the ray origin randomly by, in meters.",+ "step_count": "The number of raymarching steps to perform."+ }+ },+ "bevy_light::volumetric::VolumetricLight": {+ "doc": "Add this component to a `DirectionalLight` with a shadow map (`shadow_maps_enabled: true`) to make volumetric fog interact with it.",+ "fields": {}+ },+ "bevy_material::alpha::AlphaMode": {+ "doc": "Sets how a material's base color alpha channel is used for transparency.",+ "fields": {+ "Opaque": "Base color alpha values are overridden to be fully opaque (1.0).",+ "Mask": "Reduce transparency to fully opaque or fully transparent based on a threshold.",+ "Blend": "The base color alpha value defines the opacity of the color. Standard alpha-blending is used to blend the fragment's color with the color behind it.",+ "Premultiplied": "Similar to `AlphaMode::Blend`, however assumes RGB channel values are premultiplied.",+ "AlphaToCoverage": "Spreads the fragment out over a hardware-dependent number of sample locations proportional to the alpha value. This requires multisample antialiasing; if MSAA isn't on, this is identical to `AlphaMode::Mask` with a value of 0.5.",+ "Add": "Combines the color of the fragments with the colors behind them in an additive process, (i.e. like light) producing lighter results.",+ "Multiply": "Combines the color of the fragments with the colors behind them in a multiplicative process, (i.e. like pigments) producing darker results."+ }+ },+ "bevy_material::opaque::OpaqueRendererMethod": {+ "doc": "Render method used for opaque materials.",+ "fields": {}+ },+ "bevy_math::Rot2": {+ "doc": "A 2D rotation.",+ "fields": {+ "cos": "The cosine of the rotation angle.",+ "sin": "The sine of the rotation angle."+ }+ },+ "bevy_math::compass::CompassOctant": {+ "doc": "A compass enum with 8 directions. ```text N (North) ▲ NW │ NE ╲ │ ╱ W (West) ┼─────► E (East) ╱ │ ╲ SW │ SE ▼ S (South) ```",+ "fields": {+ "North": "Corresponds to `Dir2::Y` and `Dir2::NORTH`",+ "NorthEast": "Corresponds to `Dir2::NORTH_EAST`",+ "East": "Corresponds to `Dir2::X` and `Dir2::EAST`",+ "SouthEast": "Corresponds to `Dir2::SOUTH_EAST`",+ "South": "Corresponds to `Dir2::NEG_Y` and `Dir2::SOUTH`",+ "SouthWest": "Corresponds to `Dir2::SOUTH_WEST`",+ "West": "Corresponds to `Dir2::NEG_X` and `Dir2::WEST`",+ "NorthWest": "Corresponds to `Dir2::NORTH_WEST`"+ }+ },+ "bevy_math::direction::Dir2": {+ "doc": "A normalized vector pointing in a direction in 2D space",+ "fields": {}+ },+ "bevy_math::direction::Dir3": {+ "doc": "A normalized vector pointing in a direction in 3D space",+ "fields": {}+ },+ "bevy_math::rects::rect::Rect": {+ "doc": "A rectangle defined by two opposite corners.",+ "fields": {+ "min": "The minimum corner point of the rect.",+ "max": "The maximum corner point of the rect."+ }+ },+ "bevy_math::rects::urect::URect": {+ "doc": "A rectangle defined by two opposite corners.",+ "fields": {+ "min": "The minimum corner point of the rect.",+ "max": "The maximum corner point of the rect."+ }+ },+ "bevy_math::rotation2d::Rot2": {+ "doc": "A 2D rotation.",+ "fields": {+ "cos": "The cosine of the rotation angle.",+ "sin": "The sine of the rotation angle."+ }+ },+ "bevy_mesh::MeshVertexAttribute": {+ "doc": "",+ "fields": {+ "name": "The friendly name of the vertex attribute",+ "id": "The _unique_ id of the vertex attribute. This will also determine sort ordering when generating vertex buffers. Built-in / standard attributes will use \"close to zero\" indices. When in doubt, use a random / very large u64 to avoid conflicts.",+ "format": "The format of the vertex attribute."+ }+ },+ "bevy_mesh::components::Mesh2d": {+ "doc": "A component for 2D meshes. Requires a `MeshMaterial2d` to be rendered, commonly using a `ColorMaterial`.",+ "fields": {}+ },+ "bevy_mesh::components::Mesh3d": {+ "doc": "A component for 3D meshes. Requires a `MeshMaterial3d` to be rendered, commonly using a `StandardMaterial`.",+ "fields": {}+ },+ "bevy_mesh::components::MeshTag": {+ "doc": "A component that stores an arbitrary index used to identify the mesh instance when rendering.",+ "fields": {+ "value": "The value made available to the shader."+ }+ },+ "bevy_mesh::mesh::Mesh": {+ "doc": "A 3D object made out of vertices representing triangles, lines, or points, with \"attribute\" values for each vertex.",+ "fields": {+ "asset_usage": "`std::collections::BTreeMap` with all defined vertex attributes (Positions, Normals, ...) for this mesh. Attribute ids to attribute values. Uses a `BTreeMap` because, unlike `HashMap`, it has a defined iteration order, which allows easy stable `VertexBuffers` (i.e. same buffer order)",+ "enable_raytracing": "Whether or not to build a BLAS for use with `bevy_solari` raytracing.",+ "final_aabb": "Precomputed min and max extents of the mesh position data. Used mainly for constructing `Aabb`s for frustum culling and decompressing vertex positions. This data will be set if/when a mesh is extracted to the GPU or when compressing positions.",+ "final_uv_ranges": "Precomputed min and max extents of the mesh UV channels data. Used mainly for decompressing vertex UVs. This will be set when compressing UVs."+ }+ },+ "bevy_mesh::morph::MeshMorphWeights": {+ "doc": "A component that controls the [morph targets] of a mesh. Must be assigned to an entity with a `Mesh3d` component.",+ "fields": {+ "Reference": "A reference to an entity containing a `MorphWeights` component. This allows a single `MorphWeights` component to control the morph targets of multiple meshes."+ }+ },+ "bevy_mesh::morph::MorphWeights": {+ "doc": "Controls the [morph targets] for all child `Mesh3d` entities. In most cases, `MorphWeights` should be considered the \"source of truth\" when writing [morph targets] for meshes. However you can choose to write child `MeshMorphWeights` if your situation requires more granularity. Just note that if you set `MorphWeights`, it will overwrite child `MeshMorphWeights` values.",+ "fields": {}+ },+ "bevy_pbr::contact_shadows::ContactShadows": {+ "doc": "Add this component to a camera to enable contact shadows.",+ "fields": {+ "linear_steps": "The number of steps to be taken at regular intervals to find an initial intersection.",+ "thickness": "When marching the depth buffer, we only have 2.5D information and don't know how thick surfaces are. We shall assume that the depth buffer fragments are cuboids with a constant thickness defined by this parameter.",+ "length": "The length of the contact shadow ray in world space."+ }+ },+ "bevy_pbr::fog::DistanceFog": {+ "doc": "Configures the “classic” computer graphics distance fog effect, in which objects appear progressively more covered in atmospheric haze the further away they are from the camera. Affects meshes rendered via the PBR `StandardMaterial`.",+ "fields": {+ "color": "The color of the fog effect.",+ "directional_light_color": "Color used to modulate the influence of directional light colors on the fog, where the view direction aligns with each directional light direction, producing a “glow” or light dispersion effect. (e.g. around the sun)",+ "directional_light_exponent": "The exponent applied to the directional light alignment calculation. A higher value means a more concentrated “glow”.",+ "falloff": "Determines which falloff mode to use, and its parameters."+ }+ },+ "bevy_pbr::fog::FogFalloff": {+ "doc": "Allows switching between different fog falloff modes, and configuring their parameters.",+ "fields": {+ "Linear": "A linear fog falloff that grows in intensity between `start` and `end` distances.",+ "Exponential": "An exponential fog falloff with a given `density`.",+ "ExponentialSquared": "A squared exponential fog falloff with a given `density`.",+ "Atmospheric": "A more general form of the `FogFalloff::Exponential` mode. The falloff formula is separated into two terms, `extinction` and `inscattering`, for a somewhat simplified atmospheric scattering model. Additionally, individual color channels can have their own density values, resulting in a total of six different configuration parameters."+ }+ },+ "bevy_pbr::lightmap::Lightmap": {+ "doc": "A component that applies baked indirect diffuse global illumination from a lightmap.",+ "fields": {+ "image": "The lightmap texture.",+ "uv_rect": "The rectangle within the lightmap texture that the UVs are relative to.",+ "bicubic_sampling": "Whether bicubic sampling should be used for sampling this lightmap."+ }+ },+ "bevy_pbr::material::DefaultOpaqueRendererMethod": {+ "doc": "Default render method used for opaque materials.",+ "fields": {}+ },+ "bevy_pbr::meshlet::MeshletMesh3d": {+ "doc": "The meshlet mesh equivalent of `bevy_mesh::Mesh3d`.",+ "fields": {}+ },+ "bevy_pbr::pbr_material::StandardMaterial": {+ "doc": "A material with \"standard\" properties used in PBR lighting. Standard property values with pictures here: <https://google.github.io/filament/notes/material_properties.html>.",+ "fields": {+ "base_color": "The color of the surface of the material before lighting.",+ "base_color_channel": "The UV channel to use for the `StandardMaterial::base_color_texture`.",+ "base_color_texture": "The texture component of the material's color before lighting. The actual pre-lighting color is `base_color * this_texture`.",+ "emissive": "Color the material \"emits\" to the camera.",+ "emissive_exposure_weight": "The weight in which the camera exposure influences the emissive color. A value of `0.0` means the emissive color is not affected by the camera exposure. In opposition, a value of `1.0` means the emissive color is multiplied by the camera exposure.",+ "emissive_channel": "The UV channel to use for the `StandardMaterial::emissive_texture`.",+ "emissive_texture": "The emissive map, multiplies pixels with `emissive` to get the final \"emitting\" color of a surface.",+ "metallic": "How \"metallic\" the material appears, within `[0.0, 1.0]`.",+ "metallic_roughness_channel": "The UV channel to use for the `StandardMaterial::metallic_roughness_texture`.",+ "metallic_roughness_texture": "Metallic and roughness maps, stored as a single texture.",+ "reflectance": "Specular intensity for non-metals on a linear scale of `[0.0, 1.0]`.",+ "specular_tint": "A color with which to modulate the `StandardMaterial::reflectance` for non-metals.",+ "diffuse_transmission": "The amount of light transmitted _diffusely_ through the material (i.e. “translucency”).",+ "diffuse_transmission_channel": "The UV channel to use for the `StandardMaterial::diffuse_transmission_texture`.",+ "diffuse_transmission_texture": "A map that modulates diffuse transmission via its alpha channel. Multiplied by `StandardMaterial::diffuse_transmission` to obtain the final result.",+ "specular_transmission": "The amount of light transmitted _specularly_ through the material (i.e. via refraction).",+ "specular_transmission_channel": "The UV channel to use for the `StandardMaterial::specular_transmission_texture`.",+ "specular_transmission_texture": "A map that modulates specular transmission via its red channel. Multiplied by `StandardMaterial::specular_transmission` to obtain the final result.",+ "thickness": "Thickness of the volume beneath the material surface.",+ "thickness_channel": "The UV channel to use for the `StandardMaterial::thickness_texture`.",+ "thickness_texture": "A map that modulates thickness via its green channel. Multiplied by `StandardMaterial::thickness` to obtain the final result.",+ "ior": "The index of refraction of the material.",+ "attenuation_distance": "How far, on average, light travels through the volume beneath the material's surface before being absorbed.",+ "attenuation_color": "The resulting (non-absorbed) color after white light travels through the attenuation distance.",+ "normal_map_channel": "The UV channel to use for the `StandardMaterial::normal_map_texture`.",+ "normal_map_texture": "Used to fake the lighting of bumps and dents on a material.",+ "flip_normal_map_y": "Normal map textures authored for DirectX have their y-component flipped. Set this to flip it to right-handed conventions.",+ "occlusion_channel": "The UV channel to use for the `StandardMaterial::occlusion_texture`.",+ "occlusion_texture": "Specifies the level of exposure to ambient light.",+ "specular_channel": "The UV channel to use for the `StandardMaterial::specular_texture`.",+ "specular_texture": "A map that specifies reflectance for non-metallic materials.",+ "specular_tint_channel": "The UV channel to use for the `StandardMaterial::specular_tint_texture`.",+ "specular_tint_texture": "A map that specifies color adjustment to be applied to the specular reflection for non-metallic materials.",+ "clearcoat": "An extra thin translucent layer on top of the main PBR layer. This is typically used for painted surfaces.",+ "clearcoat_channel": "The UV channel to use for the `StandardMaterial::clearcoat_texture`.",+ "clearcoat_texture": "An image texture that specifies the strength of the clearcoat layer in the red channel. Values sampled from this texture are multiplied by the main `StandardMaterial::clearcoat` factor.",+ "clearcoat_perceptual_roughness": "The roughness of the clearcoat material. This is specified in exactly the same way as the `StandardMaterial::perceptual_roughness`.",+ "clearcoat_roughness_channel": "The UV channel to use for the `StandardMaterial::clearcoat_roughness_texture`.",+ "clearcoat_roughness_texture": "An image texture that specifies the roughness of the clearcoat level in the green channel. Values from this texture are multiplied by the main `StandardMaterial::clearcoat_perceptual_roughness` factor.",+ "clearcoat_normal_channel": "The UV channel to use for the `StandardMaterial::clearcoat_normal_texture`.",+ "clearcoat_normal_texture": "An image texture that specifies a normal map that is to be applied to the clearcoat layer. This can be used to simulate, for example, scratches on an outer layer of varnish. Normal maps are in the same format as `StandardMaterial::normal_map_texture`.",+ "anisotropy_strength": "Increases the roughness along a specific direction, so that the specular highlight will be stretched instead of being a circular lobe.",+ "anisotropy_rotation": "The direction of increased roughness, in radians relative to the mesh tangent.",+ "anisotropy_channel": "The UV channel to use for the `StandardMaterial::anisotropy_texture`.",+ "anisotropy_texture": "An image texture that allows the `StandardMaterial::anisotropy_strength` and `StandardMaterial::anisotropy_rotation` to vary across the mesh.",+ "double_sided": "Support two-sided lighting by automatically flipping the normals for \"back\" faces within the PBR lighting shader.",+ "unlit": "Whether to apply only the base color to this material.",+ "fog_enabled": "Whether to enable fog for this material.",+ "alpha_mode": "How to apply the alpha channel of the `base_color_texture`.",+ "depth_bias": "Adjust rendered depth.",+ "depth_map": "The depth map used for [parallax mapping].",+ "parallax_depth_scale": "How deep the offset introduced by the depth map should be.",+ "parallax_mapping_method": "Which parallax mapping method to use.",+ "max_parallax_layer_count": "In how many layers to split the depth maps for parallax mapping.",+ "lightmap_exposure": "The exposure (brightness) level of the lightmap, if present.",+ "opaque_render_method": "Render method used for opaque materials. (Where `alpha_mode` is `AlphaMode::Opaque` or `AlphaMode::Mask`)",+ "deferred_lighting_pass_id": "Used for selecting the deferred lighting pass for deferred materials. Default is `DEFAULT_PBR_DEFERRED_LIGHTING_PASS_ID` for default PBR deferred lighting pass. Ignored in the case of forward materials.",+ "uv_transform": "The transform applied to the UVs corresponding to `ATTRIBUTE_UV_0` on the mesh before sampling. Default is identity."+ }+ },+ "bevy_pbr::render::mesh::MeshPipeline": {+ "doc": "All data needed to construct a pipeline for rendering 3D meshes.",+ "fields": {+ "view_layouts": "A reference to all the mesh pipeline view layouts.",+ "clustered_forward_buffer_binding_type": "A reference to all the mesh pipeline view layouts.",+ "mesh_layouts": "A reference to all the mesh pipeline view layouts.",+ "shader": "The shader asset handle.",+ "per_object_buffer_batch_size": "`MeshUniform`s are stored in arrays in buffers. If storage buffers are available, they are used and this will be `None`, otherwise uniform buffers will be used with batches of this many `MeshUniform`s, stored at dynamic offsets within the uniform buffer. Use code like this in custom shaders: ```wesl @if(PER_OBJECT_BUFFER_BATCH_SIZE) @group(1) @binding(0) var<uniform> mesh: array<Mesh, u32(constants::PER_OBJECT_BUFFER_BATCH_SIZE)>; @else @group(1) @binding(0) var<storage> mesh: array<Mesh>; ```",+ "binding_arrays_are_usable": "Whether binding arrays (a.k.a. bindless textures) are usable on the current render device.",+ "clustered_decals_are_usable": "Whether clustered decals are usable on the current render device.",+ "skins_use_uniform_buffers": "Whether skins will use uniform buffers on account of storage buffers being unavailable on this platform.",+ "metadata_use_uniform_buffers": "Whether mesh metadata will use uniform buffers on account of storage buffers being unavailable on this platform."+ }+ },+ "bevy_pbr::ssao::ScreenSpaceAmbientOcclusion": {+ "doc": "Component to apply screen space ambient occlusion to a 3d camera.",+ "fields": {+ "quality_level": "Quality of the SSAO effect.",+ "radius": "Maximum sample distance, in view-space units.",+ "constant_object_thickness": "A constant estimated thickness of objects."+ }+ },+ "bevy_pbr::ssr::ScreenSpaceReflections": {+ "doc": "Add this component to a camera to enable *screen-space reflections* (SSR).",+ "fields": {+ "min_perceptual_roughness": "The perceptual roughness range over which SSR begins to fade in.",+ "max_perceptual_roughness": "The perceptual roughness range over which SSR begins to fade out.",+ "thickness": "When marching the depth buffer, we only have 2.5D information and don't know how thick surfaces are. We shall assume that the depth buffer fragments are cuboids with a constant thickness defined by this parameter.",+ "linear_steps": "The number of steps to be taken at regular intervals to find an initial intersection. Must not be zero.",+ "linear_march_exponent": "Exponent to be applied in the linear part of the march.",+ "edge_fadeout": "The range over which SSR begins to fade out at the edges of the screen, in terms of a percentage of the screen dimensions.",+ "bisection_steps": "Number of steps in a bisection (binary search) to perform once the linear search has found an intersection. Helps narrow down the hit, increasing the chance of the secant method finding an accurate hit point.",+ "use_secant": "Approximate the root position using the secant method—by solving for line-line intersection between the ray approach rate and the surface gradient."+ }+ },+ "bevy_pbr::transmission::ScreenSpaceTransmission": {+ "doc": "Configures transmission behavior, offering a trade-off between performance and visual fidelity.",+ "fields": {+ "steps": "How many individual steps should be performed in the `Transmissive3d` pass.",+ "quality": "The quality of the screen space specular transmission blur effect, applied to whatever's behind transmissive objects when their `roughness` is greater than `0.0`."+ }+ },+ "bevy_pbr::transmission::ScreenSpaceTransmissionQuality": {+ "doc": "The quality of the screen space transmission blur effect, applied to whatever's behind transmissive objects when their `roughness` is greater than `0.0`.",+ "fields": {+ "Low": "Best performance at the cost of quality. Suitable for lower end GPUs. (e.g. Mobile)",+ "Medium": "A balanced option between quality and performance.",+ "High": "Better quality. Suitable for high end GPUs. (e.g. Desktop)",+ "Ultra": "The highest quality, suitable for non-realtime rendering. (e.g. Pre-rendered cinematics and photo mode)"+ }+ },+ "bevy_pbr::wireframe::NoWireframe": {+ "doc": "Disables wireframe rendering for any entity it is attached to. It will ignore the `WireframeConfig` global setting.",+ "fields": {}+ },+ "bevy_pbr::wireframe::Wireframe": {+ "doc": "Enables wireframe rendering for any entity it is attached to. It will ignore the `WireframeConfig` global setting.",+ "fields": {}+ },+ "bevy_pbr::wireframe::WireframeColor": {+ "doc": "Sets the color of the `Wireframe` of the entity it is attached to.",+ "fields": {}+ },+ "bevy_pbr::wireframe::WireframeConfig": {+ "doc": "",+ "fields": {+ "global": "Whether to show wireframes for all meshes. Can be overridden for individual meshes by adding a `Wireframe` or `NoWireframe` component.",+ "default_color": "If `Self::global` is set, any `Entity` that does not have a `Wireframe` component attached to it will have wireframes using this color. Otherwise, this will be the fallback color for any entity that has a `Wireframe`, but no `WireframeColor`.",+ "default_line_width": "Default line width in screen-space pixels.",+ "default_topology": "Default edge topology.",+ "xray_mode": "Whether all wireframe pipelines render as x-ray overlays. When enabled, both sides are rendered without depth testing."+ }+ },+ "bevy_pbr::wireframe::WireframeLineWidth": {+ "doc": "Sets the line width (in screen-space pixels) of the wireframe.",+ "fields": {}+ },+ "bevy_pbr::wireframe::WireframeTopology": {+ "doc": "Controls whether wireframe edges follow triangle or quad topology.",+ "fields": {+ "Quads": "Does a best-effort attempt to detect quads from a triangle mesh. No guarantee of accuracy is made, that is, there may be both false positives and false negatives in the rendered output."+ }+ },+ "bevy_pbr::wireframe::WireframeXray": {+ "doc": "Controls whether wireframe edges render as an x-ray overlay.",+ "fields": {}+ },+ "bevy_picking::Pickable": {+ "doc": "An optional component that marks an entity as usable by a backend, and overrides default picking behavior for an entity.",+ "fields": {+ "should_block_lower": "Should this entity block entities below it from being picked?",+ "is_hoverable": "If this is set to `false` and `should_block_lower` is set to true, this entity will block lower entities from being interacted and at the same time will itself not emit any events."+ }+ },+ "bevy_picking::PickingSettings": {+ "doc": "Controls the behavior of picking",+ "fields": {+ "is_enabled": "Enables and disables all picking features.",+ "is_input_enabled": "Enables and disables input collection.",+ "is_hover_enabled": "Enables and disables updating interaction states of entities.",+ "is_window_picking_enabled": "Enables or disables picking for window entities.",+ "multi_click_interval": "Maximum time between presses or clicks for them to count as consecutive."+ }+ },+ "bevy_picking::backend::HitData": {+ "doc": "Holds data from a successful pointer hit test. See `HitData::depth` for important details.",+ "fields": {+ "camera": "The camera entity used to detect this hit. Useful when you need to find the ray that was cast for this hit when using a raycasting backend.",+ "depth": "`depth` only needs to be self-consistent with other `PointerHits`s using the same `RenderTarget`. However, it is recommended to use the distance from the pointer to the hit, measured from the near plane of the camera, to the point, in world space.",+ "position": "The position reported by the backend, if the data is available. Position data may be in any space (e.g. World space, Screen space, Local space), specified by the backend providing it.",+ "normal": "The normal vector of the hit test, if the data is available from the backend.",+ "extra": "Optional backend-specific extra data attached to this hit. Read it with `HitData::extra_as`."+ }+ },+ "bevy_picking::backend::ray::RayMap": {+ "doc": "A map from `RayId` to `Ray3d`.",+ "fields": {+ "map": "Cartesian product of all pointers and all cameras Add your rays here to support picking through indirections, e.g. rendered-to-texture cameras"+ }+ },+ "bevy_picking::cursor::DefaultCursor": {+ "doc": "A resource that specifies the cursor icon to be used when the mouse is not hovering over any other entity. This is used to set the default cursor icon for the window.",+ "fields": {}+ },+ "bevy_picking::cursor::EntityCursor": {+ "doc": "A component that specifies the cursor shape to be used when the pointer hovers over an entity. This is copied to the windows's `CursorIcon` component.",+ "fields": {+ "Custom": "Custom cursor image.",+ "System": "System provided cursor icon."+ }+ },+ "bevy_picking::cursor::OverrideCursor": {+ "doc": "A resource used to override any `EntityCursor` cursor changes.",+ "fields": {}+ },+ "bevy_picking::events::DragEntry": {+ "doc": "Dragging state.",+ "fields": {+ "start_pos": "The position of the pointer at drag start.",+ "latest_pos": "The latest position of the pointer during this drag, used to compute deltas."+ }+ },+ "bevy_picking::events::HoveredEntityAncestors": {+ "doc": "A cache map containing the ancestry of hovered entities",+ "fields": {}+ },+ "bevy_picking::events::PointerButtonState": {+ "doc": "An entry in the cache that drives the `pointer_events` system, storing additional data about pointer button presses.",+ "fields": {+ "pressing": "Stores the press location and start time for each button currently being pressed by the pointer.",+ "clicking": "Stores the latest click time and count for each clicked entity.",+ "dragging": "Stores the starting and current locations for each entity currently being dragged by the pointer.",+ "dragging_over": "Stores the hit data for each entity currently being dragged over by the pointer."+ }+ },+ "bevy_picking::events::PointerState": {+ "doc": "State for all pointers.",+ "fields": {+ "pointer_buttons": "Pressing and dragging state, organized by pointer and button.",+ "hovered_entity_ancestors": "A cache map providing the set of an entity's ancestors for a given hovered entity."+ }+ },+ "bevy_picking::hover::DirectlyHovered": {+ "doc": "A component that allows users to use regular Bevy change detection to determine when the pointer is directly hovering over an entity. Users should insert this component on an entity to indicate interest in knowing about hover state changes.",+ "fields": {}+ },+ "bevy_picking::hover::HoverMap": {+ "doc": "The source of truth for all hover state. This is used to determine what events to send, and what state components should be in.",+ "fields": {}+ },+ "bevy_picking::hover::Hovered": {+ "doc": "A component that allows users to use regular Bevy change detection to determine when the pointer enters or leaves an entity. Users should insert this component on an entity to indicate interest in knowing about hover state changes.",+ "fields": {}+ },+ "bevy_picking::hover::PickingInteraction": {+ "doc": "A component that aggregates picking interaction state of this entity across all pointers.",+ "fields": {+ "Pressed": "The entity is being pressed down by a pointer.",+ "Hovered": "The entity is being hovered by a pointer.",+ "None": "No pointers are interacting with this entity."+ }+ },+ "bevy_picking::hover::PreviousHoverMap": {+ "doc": "The previous state of the hover map, used to track changes to hover state.",+ "fields": {}+ },+ "bevy_picking::input::PointerInputSettings": {+ "doc": "Settings for enabling and disabling updating mouse and touch inputs for picking",+ "fields": {+ "is_touch_enabled": "Should touch inputs be updated?",+ "is_mouse_enabled": "Should mouse inputs be updated?"+ }+ },+ "bevy_picking::mesh_picking::MeshPickingCamera": {+ "doc": "An optional component that marks cameras that should be used in the `MeshPickingPlugin`.",+ "fields": {}+ },+ "bevy_picking::mesh_picking::MeshPickingSettings": {+ "doc": "Runtime settings for the `MeshPickingPlugin`.",+ "fields": {+ "require_markers": "When set to `true` ray casting will only consider cameras marked with `MeshPickingCamera` and entities marked with `Pickable`. `false` by default.",+ "ray_cast_visibility": "Determines how mesh picking should consider `Visibility`. When set to `RayCastVisibility::Any`, ray casts can be performed against both visible and hidden entities."+ }+ },+ "bevy_picking::mesh_picking::ray_cast::RayCastBackfaces": {+ "doc": "Disables backface culling for ray casts on this entity.",+ "fields": {}+ },+ "bevy_picking::mesh_picking::ray_cast::RayCastVisibility": {+ "doc": "How a ray cast should handle `Visibility`.",+ "fields": {+ "Any": "Completely ignore visibility checks. Hidden items can still be ray cast against.",+ "Visible": "Only cast rays against entities that are visible in the hierarchy. See `Visibility`.",+ "VisibleInView": "Only cast rays against entities that are visible in the hierarchy and visible to a camera or light. See `Visibility`."+ }+ },+ "bevy_picking::mesh_picking::ray_cast::SimplifiedMesh": {+ "doc": "A simplified mesh component that can be used for ray casting.",+ "fields": {}+ },+ "bevy_picking::pointer::Location": {+ "doc": "The location of a pointer, including the current `NormalizedRenderTarget`, and the x/y position of the pointer on this render target.",+ "fields": {+ "target": "The `NormalizedRenderTarget` associated with the pointer, usually a window.",+ "position": "The position of the pointer in the `target`."+ }+ },+ "bevy_picking::pointer::PointerId": {+ "doc": "Identifies a unique pointer entity. `Mouse` and `Touch` pointers are automatically spawned.",+ "fields": {+ "Mouse": "The mouse pointer.",+ "Touch": "A touch input, usually numbered by window touch events from `winit`.",+ "Custom": "A custom, uniquely identified pointer. Useful for mocking inputs or implementing a software controlled cursor."+ }+ },+ "bevy_picking::pointer::PointerInteraction": {+ "doc": "Holds a list of entities this pointer is currently interacting with, sorted from nearest to farthest.",+ "fields": {}+ },+ "bevy_picking::pointer::PointerLocation": {+ "doc": "Component that tracks a pointer's current `Location`.",+ "fields": {+ "location": "The `Location` of the pointer. Note that a location is both the target, and the position on the target."+ }+ },+ "bevy_picking::pointer::PointerMap": {+ "doc": "A resource that maps each `PointerId` to their `Entity` for easy lookups.",+ "fields": {}+ },+ "bevy_picking::pointer::PointerPressState": {+ "doc": "Tracks the state of the pointer's buttons in response to `PointerInput` events.",+ "fields": {}+ },+ "bevy_post_process::auto_exposure::settings::AutoExposure": {+ "doc": "Component that enables auto exposure for an HDR-enabled 2d or 3d camera.",+ "fields": {+ "range": "The range of exposure values for the histogram.",+ "filter": "The portion of the histogram to consider when metering.",+ "speed_brighten": "The speed at which the exposure adapts from dark to bright scenes, in F-stops per second.",+ "speed_darken": "The speed at which the exposure adapts from bright to dark scenes, in F-stops per second.",+ "exponential_transition_distance": "The distance in F-stops from the target exposure from where to transition from animating in linear fashion to animating exponentially. This helps against jittering when the target exposure keeps on changing slightly from frame to frame, while still maintaining a relatively slow animation for big changes in scene brightness.",+ "metering_mask": "The mask to apply when metering. The mask will cover the entire screen, where: * `(0.0, 0.0)` is the top-left corner, * `(1.0, 1.0)` is the bottom-right corner.",+ "compensation_curve": "Exposure compensation curve to apply after metering. The default value is a flat line at 0.0. For more information, see `AutoExposureCompensationCurve`."+ }+ },+ "bevy_post_process::bloom::settings::Bloom": {+ "doc": "Applies a bloom effect to an HDR-enabled 2d or 3d camera.",+ "fields": {+ "intensity": "Controls the baseline of how much the image is scattered (default: 0.15).",+ "low_frequency_boost": "Low frequency contribution boost. Controls how much more likely the light is to scatter completely sideways (low frequency image).",+ "low_frequency_boost_curvature": "Low frequency contribution boost curve. Controls the curvature of the blend factor function making frequencies next to the lowest ones contribute more.",+ "high_pass_frequency": "Tightens how much the light scatters (default: 1.0).",+ "prefilter": "Controls the threshold filter used for extracting the brightest regions from the input image before blurring them and compositing back onto the original image.",+ "composite_mode": "Controls whether bloom textures are blended between or added to each other. Useful if image brightening is desired and a must-change if `prefilter` is used.",+ "max_mip_dimension": "Maximum size of each dimension for the largest mipchain texture used in downscaling/upscaling. Only tweak if you are seeing visual artifacts.",+ "scale": "Amount to stretch the bloom on each axis. Artistic control, can be used to emulate anamorphic blur by using a large x-value. For large values, you may need to increase `Bloom::max_mip_dimension` to reduce sampling artifacts."+ }+ },+ "bevy_post_process::bloom::settings::BloomPrefilter": {+ "doc": "Applies a threshold filter to the input image to extract the brightest regions before blurring them and compositing back onto the original image. These settings are useful when emulating the 1990s-2000s game look.",+ "fields": {+ "threshold": "Baseline of the quadratic threshold curve (default: 0.0).",+ "threshold_softness": "Controls how much to blend between the thresholded and non-thresholded colors (default: 0.0)."+ }+ },+ "bevy_post_process::dof::DepthOfField": {+ "doc": "A component that enables a [depth of field] postprocessing effect when attached to a `Camera3d`, simulating the focus of a camera lens.",+ "fields": {+ "mode": "The appearance of the effect.",+ "focal_distance": "The distance in meters to the location in focus.",+ "sensor_height": "The height of the [image sensor format] in meters.",+ "aperture_f_stops": "Along with the focal length, controls how much objects not in focus are blurred.",+ "max_circle_of_confusion_diameter": "The maximum diameter, in pixels, that we allow a circle of confusion to be.",+ "max_depth": "Objects are never considered to be farther away than this distance as far as depth of field is concerned, even if they actually are."+ }+ },+ "bevy_post_process::dof::DepthOfFieldMode": {+ "doc": "Controls the appearance of the effect.",+ "fields": {+ "Bokeh": "A more accurate simulation, in which circles of confusion generate \"spots\" of light.",+ "Gaussian": "A faster simulation, in which out-of-focus areas are simply blurred."+ }+ },+ "bevy_post_process::effect_stack::chromatic_aberration::ChromaticAberration": {+ "doc": "Adds colored fringes to the edges of objects in the scene.",+ "fields": {+ "color_lut": "The lookup texture that determines the color gradient.",+ "intensity": "The size of the streaks around the edges of objects, as a fraction of the window size.",+ "max_samples": "A cap on the number of texture samples that will be performed."+ }+ },+ "bevy_post_process::effect_stack::vignette::Vignette": {+ "doc": "Adds a gradual shading effect to the edges of the screen, drawing focus towards the center.",+ "fields": {+ "intensity": "Controls the strength of the darkening effect.",+ "radius": "The size of the unvignetted center area.",+ "smoothness": "The softness of the edge between the clear and dark areas.",+ "roundness": "The shape of the vignette.",+ "center": "The center of the vignette in UV coordinates (0.0 to 1.0).",+ "edge_compensation": "Used to make the vignette effect fit the screen better.",+ "color": "The color of the vignette."+ }+ },+ "bevy_post_process::motion_blur::MotionBlur": {+ "doc": "A component that enables and configures motion blur when added to a camera.",+ "fields": {+ "shutter_angle": "The strength of motion blur from `0.0` to `1.0`.",+ "samples": "The quality of motion blur, corresponding to the number of per-pixel samples taken in each direction during blur."+ }+ },+ "bevy_render::camera::CameraRenderGraph": {+ "doc": "Configures the render schedule to be run for a given `Camera` entity.",+ "fields": {}+ },+ "bevy_render::camera::MipBias": {+ "doc": "Camera component specifying a mip bias to apply when sampling from material textures.",+ "fields": {}+ },+ "bevy_render::camera::TemporalJitter": {+ "doc": "A subpixel offset to jitter a perspective camera's frustum by.",+ "fields": {+ "offset": "Offset is in range [-0.5, 0.5]."+ }+ },+ "bevy_render::globals::GlobalsUniform": {+ "doc": "Contains global values useful when writing shaders. Currently only contains values related to time.",+ "fields": {}+ },+ "bevy_render::occlusion_culling::OcclusionCulling": {+ "doc": "Add this component to a view in order to enable GPU occlusion culling.",+ "fields": {}+ },+ "bevy_render::storage::ShaderBuffer": {+ "doc": "A storage buffer that is prepared as a `RenderAsset` and uploaded to the GPU.",+ "fields": {+ "data": "Optional data used to initialize the buffer, as well as the buffer's size.",+ "label": "A label that can be used to identify this buffer in a debugger.",+ "buffer_usage": "How this buffer can legally be used.",+ "asset_usage": "The asset usage of the storage buffer.",+ "copy_on_resize": "Whether this buffer should be copied on the GPU when resized. The buffer should have `BufferUsages::COPY_SRC | BufferUsages::COPY_DST` usages to be copyable."+ }+ },+ "bevy_render::view::ColorGrading": {+ "doc": "Configures filmic color grading parameters to adjust the image appearance.",+ "fields": {+ "global": "Filmic color grading values applied to the image as a whole (as opposed to individual sections, like shadows and highlights).",+ "shadows": "Color grading values that are applied to the darker parts of the image.",+ "midtones": "Color grading values that are applied to the parts of the image with intermediate brightness.",+ "highlights": "Color grading values that are applied to the lighter parts of the image."+ }+ },+ "bevy_render::view::ColorGradingGlobal": {+ "doc": "Filmic color grading values applied to the image as a whole (as opposed to individual sections, like shadows and highlights).",+ "fields": {+ "exposure": "Exposure value (EV) offset, measured in stops.",+ "temperature": "An adjustment made to the [CIE 1931] chromaticity *x* value.",+ "tint": "An adjustment made to the [CIE 1931] chromaticity *y* value.",+ "hue": "An adjustment to the [hue], in radians.",+ "post_saturation": "Saturation adjustment applied after tonemapping. Values below 1.0 desaturate, with a value of 0.0 resulting in a grayscale image with luminance defined by ITU-R BT.709 Values above 1.0 increase saturation.",+ "midtones_range": "The luminance (brightness) ranges that are considered part of the \"midtones\" of the image."+ }+ },+ "bevy_render::view::ColorGradingSection": {+ "doc": "A section of color grading values that can be selectively applied to shadows, midtones, and highlights.",+ "fields": {+ "saturation": "Values below 1.0 desaturate, with a value of 0.0 resulting in a grayscale image with luminance defined by ITU-R BT.709. Values above 1.0 increase saturation.",+ "contrast": "Adjusts the range of colors.",+ "gamma": "A nonlinear luminance adjustment, mainly affecting the high end of the range.",+ "gain": "A linear luminance adjustment, mainly affecting the middle part of the range.",+ "lift": "A fixed luminance adjustment, mainly affecting the lower part of the range."+ }+ },+ "bevy_render::view::DebandDither": {+ "doc": "Enables a debanding shader that applies dithering to mitigate color banding in the final image for a given `Camera` entity.",+ "fields": {}+ },+ "bevy_render::view::Msaa": {+ "doc": "Component for configuring the number of samples for Multi-Sample Anti-Aliasing for a `Camera`.",+ "fields": {}+ },+ "bevy_render::view::Tonemapping": {+ "doc": "Optionally enables a tonemapping shader that attempts to map linear input stimulus into a perceptually uniform image for a given `Camera` entity.",+ "fields": {+ "None": "Bypass tonemapping. No color grading, exposure, or dither applies.",+ "Linear": "Identity tone curve. `ColorGrading`, exposure, and `DebandDither` still apply. The output is unbounded display-linear.",+ "Reinhard": "Suffers from lots hue shifting, brights don't desaturate naturally. Bright primaries and secondaries don't desaturate at all.",+ "ReinhardLuminance": "Suffers from hue shifting. Brights don't desaturate much at all across the spectrum.",+ "AcesFitted": "Same base implementation that Godot 4.0 uses for Tonemap ACES. <https://github.com/TheRealMJP/BakingLab/blob/master/BakingLab/ACES.hlsl> Not neutral, has a very specific aesthetic, intentional and dramatic hue shifting. Bright greens and reds turn orange. Bright blues turn magenta. Significantly increased contrast. Brights desaturate across the spectrum.",+ "AgX": "By Troy Sobotka <https://github.com/sobotka/AgX> Very neutral. Image is somewhat desaturated when compared to other tonemappers. Little to no hue shifting. Subtle Abney shifting. NOTE: Requires the `tonemapping_luts` cargo feature.",+ "SomewhatBoringDisplayTransform": "By Tomasz Stachowiak Has little hue shifting in the darks and mids, but lots in the brights. Brights desaturate across the spectrum. Is sort of between Reinhard and `ReinhardLuminance`. Conceptually similar to reinhard-jodie. Designed as a compromise if you want e.g. decent skin tones in low light, but can't afford to re-do your VFX to look good without hue shifting.",+ "TonyMcMapface": "Current Bevy default. By Tomasz Stachowiak <https://github.com/h3r2tic/tony-mc-mapface> Very neutral. Subtle but intentional hue shifting. Brights desaturate across the spectrum. Comment from author: Tony is a display transform intended for real-time applications such as games. It is intentionally boring, does not increase contrast or saturation, and stays close to the input stimulus where compression isn't necessary. Brightness-equivalent luminance of the input stimulus is compressed. The non-linearity resembles Reinhard. Color hues are preserved during compression, except for a deliberate Bezold–Brücke shift. To avoid posterization, selective desaturation is employed, with care to avoid the Abney effect. NOTE: Requires the `tonemapping_luts` cargo feature.",+ "BlenderFilmic": "Default Filmic Display Transform from blender. Somewhat neutral. Suffers from hue shifting. Brights desaturate across the spectrum. NOTE: Requires the `tonemapping_luts` cargo feature.",+ "KhronosPbrNeutral": "Despite its name, it is not considered to be neutral. Highly saturated colors and tends to produce a very high contrast image. Suffers from significant Abney shifting, and tends to crush grays and desaturated colors. Designed for e-commerce to faithfully reproduce the colors of brand's logos when used with low brightness grayscale lighting. See the KhronosGroup spec for more information."+ }+ },+ "bevy_render::view::visibility::RenderShadowMapVisibleEntities": {+ "doc": "Collection of entities visible from a single light.",+ "fields": {+ "subviews": "A mapping from each subview (cascade or cubemap face) to the entities visible from it."+ }+ },+ "bevy_render::view::window::screenshot::Screenshot": {+ "doc": "A component that signals to the renderer to capture a screenshot this frame.",+ "fields": {}+ },+ "bevy_scene::scene_component::SceneComponentInfo": {+ "doc": "Indicates that this entity includes a `Component` that must always be spawned with a `Scene`.",+ "fields": {}+ },+ "bevy_shape::dim2::Rectangle": {+ "doc": "A rectangle primitive, which is like a square, except that the width and height can be different",+ "fields": {+ "half_size": "Half of the width and height of the rectangle"+ }+ },+ "bevy_shape::dim3::Cuboid": {+ "doc": "A cuboid primitive, which is like a cube, except that the x, y, and z dimensions are not required to be the same.",+ "fields": {+ "half_size": "Half of the width, height and depth of the cuboid"+ }+ },+ "bevy_shape::dim3::InfinitePlane3d": {+ "doc": "An unbounded plane in 3D space. It forms a separating surface through the origin, stretching infinitely far",+ "fields": {+ "normal": "The normal of the plane. The plane will be placed perpendicular to this direction"+ }+ },+ "bevy_shape::dim3::Sphere": {+ "doc": "A sphere primitive, representing the set of all points some distance from the origin",+ "fields": {+ "radius": "The radius of the sphere"+ }+ },+ "bevy_shape::half_space::HalfSpace": {+ "doc": "A region of 3D space, specifically an open set whose border is a bisecting 2D plane.",+ "fields": {}+ },+ "bevy_shape::ray::Ray3d": {+ "doc": "An infinite half-line starting at `origin` and going in `direction` in 3D space.",+ "fields": {+ "origin": "The origin of the ray.",+ "direction": "The direction of the ray."+ }+ },+ "bevy_shape::view_frustum::ViewFrustum": {+ "doc": "A region of 3D space defined by the intersection of 6 `HalfSpace`s.",+ "fields": {+ "half_spaces": "The six half-spaces making up the frustum"+ }+ },+ "bevy_solari::realtime::SolariLighting": {+ "doc": "A component for a 3d camera entity to enable the Solari raytraced lighting system.",+ "fields": {+ "restir": "ReSTIR is a technique to reuse path samples between pixels and frames. This dramatically reduces noise, at the cost of a few extra rays per pixel.",+ "confidence_weight_cap": "Maximum confidence weight (effective temporal history length) a pixel can accumulate during temporal resampling.",+ "primary_di_samples": "Number of direct light samples taken for the camera's primary hit during initial sampling.",+ "secondary_di_samples": "Number of direct light samples taken at each indirect bounce during initial sampling.",+ "max_bounces": "Maximum number of bounces traced when generating an initial path.",+ "world_cache_max_temporal_samples": "How responsive the world cache is to changes in lighting.",+ "world_cache_direct_light_sample_count": "How many direct light samples each world cache cell takes when updating each frame.",+ "world_cache_max_gi_ray_distance": "Maximum distance to trace GI rays between two world cache cells.",+ "world_cache_cell_updates_soft_target": "Soft upper limit on the number of world cache cells to update each frame.",+ "world_cache_position_base_cell_size": "Size of a world cache cell at the lowest LOD, in meters.",+ "world_cache_position_lod_scale": "How fast the world cache transitions between LODs as a function of distance to the camera.",+ "reset": "Set to true to delete the saved temporal history (past frames)."+ }+ },+ "bevy_solari::scene::types::RaytracingMesh3d": {+ "doc": "A mesh component used for raytracing.",+ "fields": {}+ },+ "bevy_sprite::picking_backend::SpritePickingCamera": {+ "doc": "An optional component that marks cameras that should be used in the `SpritePickingPlugin`.",+ "fields": {}+ },+ "bevy_sprite::picking_backend::SpritePickingMode": {+ "doc": "How should the `SpritePickingPlugin` handle picking and how should it handle transparent pixels",+ "fields": {+ "BoundingBox": "Even if a sprite is picked on a transparent pixel, it should still count within the backend. Only consider the rect of a given sprite.",+ "AlphaThreshold": "Ignore any part of a sprite which has a lower alpha value than the threshold (inclusive) Threshold is given as an `f32` representing the alpha value in a Bevy Color Value"+ }+ },+ "bevy_sprite::picking_backend::SpritePickingSettings": {+ "doc": "Runtime settings for the `SpritePickingPlugin`.",+ "fields": {+ "require_markers": "When set to `true` sprite picking will only consider cameras marked with `SpritePickingCamera`. Defaults to `false`. Regardless of this setting, only sprites marked with `Pickable` will be considered.",+ "picking_mode": "Should the backend count transparent pixels as part of the sprite for picking purposes or should it use the bounding box of the sprite alone."+ }+ },+ "bevy_sprite::sprite::Anchor": {+ "doc": "Normalized (relative to its size) offset of a 2d renderable entity from its `Transform`.",+ "fields": {}+ },+ "bevy_sprite::sprite::Sprite": {+ "doc": "Describes a sprite to be rendered to a 2D camera",+ "fields": {+ "image": "The image used to render the sprite",+ "texture_atlas": "The (optional) texture atlas used to render the sprite",+ "color": "The sprite's color tint",+ "flip_x": "Flip the sprite along the `X` axis",+ "flip_y": "Flip the sprite along the `Y` axis",+ "custom_size": "An optional custom size for the sprite that will be used when rendering, instead of the size of the sprite's image",+ "rect": "An optional rectangle representing the region of the sprite's image to render, instead of rendering the full image. This is an easy one-off alternative to using a `TextureAtlas`.",+ "image_mode": "How the sprite's image will be scaled.",+ "alpha_mode": "The sprite's alpha mode, defaulting to `Blend`."+ }+ },+ "bevy_sprite::sprite::SpriteAlphaMode": {+ "doc": "An enum describing how a sprite's alpha channel will be handled. The base color being modified is that of the texture after tinting. The default is `Blend`.",+ "fields": {+ "Opaque": "Base color alpha values are overridden to be fully opaque (1.0).",+ "Mask": "Reduce transparency to fully opaque or fully transparent based on a threshold.",+ "Blend": "The base color alpha value defines the opacity of the color. Standard alpha-blending is used to blend the fragment's color with the color behind it."+ }+ },+ "bevy_sprite::sprite::SpriteImageMode": {+ "doc": "Controls how the image is altered when scaled.",+ "fields": {+ "Auto": "The sprite will take on the size of the image by default, and will be stretched or shrunk if `Sprite::custom_size` is set.",+ "Scale": "The texture will be scaled to fit the rect bounds defined in `Sprite::custom_size`. Otherwise no scaling will be applied.",+ "Sliced": "The texture will be cut in 9 slices, keeping the texture in proportions on resize",+ "Tiled": "The texture will be repeated if stretched beyond `stretched_value`"+ }+ },+ "bevy_sprite::sprite::SpriteScalingMode": {+ "doc": "Represents various modes for proportional scaling of a texture.",+ "fields": {+ "FillCenter": "Scale the texture uniformly (maintain the texture's aspect ratio) so that both dimensions (width and height) of the texture will be equal to or larger than the corresponding dimension of the target rectangle. Fill sprite with a centered texture.",+ "FillStart": "Scales the texture to fill the target rectangle while maintaining its aspect ratio. One dimension of the texture will match the rectangle's size, while the other dimension may exceed it. The exceeding portion is aligned to the start: * Horizontal overflow is left-aligned if the width exceeds the rectangle. * Vertical overflow is top-aligned if the height exceeds the rectangle.",+ "FillEnd": "Scales the texture to fill the target rectangle while maintaining its aspect ratio. One dimension of the texture will match the rectangle's size, while the other dimension may exceed it. The exceeding portion is aligned to the end: * Horizontal overflow is right-aligned if the width exceeds the rectangle. * Vertical overflow is bottom-aligned if the height exceeds the rectangle.",+ "FitCenter": "Scaling the texture will maintain the original aspect ratio and ensure that the original texture fits entirely inside the rect. At least one axis (x or y) will fit exactly. The result is centered inside the rect.",+ "FitStart": "Scaling the texture will maintain the original aspect ratio and ensure that the original texture fits entirely inside rect. At least one axis (x or y) will fit exactly. Aligns the result to the left and top edges of rect.",+ "FitEnd": "Scaling the texture will maintain the original aspect ratio and ensure that the original texture fits entirely inside rect. At least one axis (x or y) will fit exactly. Aligns the result to the right and bottom edges of rect."+ }+ },+ "bevy_sprite::text2d::Text2dShadow": {+ "doc": "Adds a shadow behind `Text2d` text",+ "fields": {+ "offset": "Shadow displacement With a value of zero the shadow will be hidden directly behind the text",+ "color": "Color of the shadow"+ }+ },+ "bevy_sprite::texture_slice::border_rect::BorderRect": {+ "doc": "Defines border insets that shrink a rectangle from its minimum and maximum corners.",+ "fields": {+ "min_inset": "Inset applied to the rectangle’s minimum corner",+ "max_inset": "Inset applied to the rectangle’s maximum corner"+ }+ },+ "bevy_sprite::texture_slice::slicer::SliceScaleMode": {+ "doc": "Defines how a texture slice scales when resized",+ "fields": {+ "Stretch": "The slice will be stretched to fit the area",+ "Tile": "The slice will be tiled to fit the area"+ }+ },+ "bevy_sprite::texture_slice::slicer::TextureSlicer": {+ "doc": "Slices a texture using the **9-slicing** technique. This allows to reuse an image at various sizes without needing to prepare multiple assets. The associated texture will be split into nine portions, so that on resize the different portions scale or tile in different ways to keep the texture in proportion.",+ "fields": {+ "border": "Inset values in pixels that define the four slicing lines dividing the texture into nine sections.",+ "center_scale_mode": "Defines how the center part of the 9 slices will scale",+ "sides_scale_mode": "Defines how the 4 side parts of the 9 slices will scale",+ "max_corner_scale": "Defines the maximum scale of the 4 corner slices (default to `1.0`)"+ }+ },+ "bevy_sprite_render::mesh2d::color_material::ColorMaterial": {+ "doc": "A 2d material that renders 2d meshes with a texture tinted by a uniform color",+ "fields": {}+ },+ "bevy_sprite_render::mesh2d::material::AlphaMode2d": {+ "doc": "Sets how a 2d material's base color alpha channel is used for transparency. Currently, this only works with `Mesh2d`. Sprites are always transparent.",+ "fields": {+ "Opaque": "Base color alpha values are overridden to be fully opaque (1.0).",+ "Mask": "Reduce transparency to fully opaque or fully transparent based on a threshold.",+ "Blend": "The base color alpha value defines the opacity of the color. Standard alpha-blending is used to blend the fragment's color with the color behind it."+ }+ },+ "bevy_sprite_render::mesh2d::wireframe2d::NoWireframe2d": {+ "doc": "Disables wireframe rendering for any entity it is attached to. It will ignore the `Wireframe2dConfig` global setting.",+ "fields": {}+ },+ "bevy_sprite_render::mesh2d::wireframe2d::Wireframe2d": {+ "doc": "Enables wireframe rendering for any entity it is attached to. It will ignore the `Wireframe2dConfig` global setting.",+ "fields": {}+ },+ "bevy_sprite_render::mesh2d::wireframe2d::Wireframe2dColor": {+ "doc": "Sets the color of the `Wireframe2d` of the entity it is attached to.",+ "fields": {}+ },+ "bevy_sprite_render::mesh2d::wireframe2d::Wireframe2dConfig": {+ "doc": "",+ "fields": {+ "global": "Whether to show wireframes for all meshes. Can be overridden for individual meshes by adding a `Wireframe2d` or `NoWireframe2d` component.",+ "default_color": "If `Self::global` is set, any `Entity` that does not have a `Wireframe2d` component attached to it will have wireframes using this color. Otherwise, this will be the fallback color for any entity that has a `Wireframe2d`, but no `Wireframe2dColor`."+ }+ },+ "bevy_sprite_render::sprite_mesh::sprite_extended_material::SpriteMaterial": {+ "doc": "Allows extending the material of a `Sprite` using a `MaterialExtension2d`.",+ "fields": {}+ },+ "bevy_sprite_render::tilemap_chunk::TileData": {+ "doc": "Data for a single tile in the tilemap chunk.",+ "fields": {+ "tileset_index": "The index of the tile in the corresponding tileset array texture.",+ "color": "The color tint of the tile. White leaves the sampled texture color unchanged.",+ "visible": "The visibility of the tile.",+ "orientation": "The orientation of the tile."+ }+ },+ "bevy_sprite_render::tilemap_chunk::TilemapChunk": {+ "doc": "A component representing a chunk of a tilemap. Each chunk is a rectangular section of tiles that is rendered as a single mesh.",+ "fields": {+ "chunk_size": "The size of the chunk in tiles.",+ "tile_display_size": "The size to use for each tile, not to be confused with the size of a tile in the tileset image. The size of the tile in the tileset image is determined by the tileset image's dimensions.",+ "tileset": "Handle to the tileset image containing all tile textures.",+ "alpha_mode": "The alpha mode to use for the tilemap chunk."+ }+ },+ "bevy_sprite_render::tilemap_chunk::TilemapChunkMeshCache": {+ "doc": "A resource storing the meshes for each tilemap chunk size.",+ "fields": {}+ },+ "bevy_sprite_render::tilemap_chunk::TilemapChunkTileData": {+ "doc": "Component storing the data of tiles within a chunk. Each index corresponds to a specific tile in the tileset. `None` indicates an empty tile.",+ "fields": {}+ },+ "bevy_sprite_render::tilemap_chunk::tile_orientation::TileOrientation": {+ "doc": "The set of possible tile orientations. These represent all possible results of mirroring the tile horizontally and/or vertically, and/or rotation by 90 degree increments.",+ "fields": {}+ },+ "bevy_text::EditableText": {+ "doc": "A plain-text text input field.",+ "fields": {+ "viewport": "The bounds of the visible portion of the text layout.",+ "pending_edits": "Text edit actions that have been requested but not yet applied.",+ "cursor_margin": "Cursor reveal margins as fractions of the viewport size.",+ "cursor_width": "Cursor width, relative to font size",+ "cursor_blink_period": "Cursor blink period in seconds.",+ "max_characters": "Maximum number of characters the text input can contain.",+ "visible_lines": "Sets the input’s height in number of visible lines.",+ "visible_width": "Sets the input's width in number of visible glyphs. For proportional fonts the final size is the given value times the \"0\" advance width.",+ "allow_newlines": "Allow new lines"+ }+ },+ "bevy_text::FontAtlas": {+ "doc": "Rasterized glyphs are cached, stored in, and retrieved from, a `FontAtlas`.",+ "fields": {+ "dynamic_texture_atlas_builder": "Used to update the `TextureAtlasLayout`.",+ "glyph_to_atlas_index": "A mapping between subpixel-offset glyphs and their `GlyphAtlasLocation`.",+ "texture_atlas": "The layout for the font atlas.",+ "texture": "The texture where this font atlas is located"+ }+ },+ "bevy_text::FontAtlasSet": {+ "doc": "Set of rasterized fonts stored in `FontAtlas`es.",+ "fields": {}+ },+ "bevy_text::FontCx": {+ "doc": "A font database and cache, used for font family resolution and text layout.",+ "fields": {+ "context": "A font database/cache (wrapper around a Fontique `Collection` and `SourceCache`)."+ }+ },+ "bevy_text::FontFeatureTag": {+ "doc": "An OpenType font feature tag.",+ "fields": {}+ },+ "bevy_text::FontSource": {+ "doc": "Determines how the font face for a text sections is selected.",+ "fields": {+ "Handle": "Use a specific font face referenced by a `Font` asset handle.",+ "Family": "Resolve the font by family name using the font database.",+ "Families": "Font family list in CSS format.",+ "List": "Ordered list of font sources.",+ "Generic": "Resolve the font using a generic font family."+ }+ },+ "bevy_text::FontVariationTag": {+ "doc": "An OpenType font variation tag.",+ "fields": {}+ },+ "bevy_text::FontWidth": {+ "doc": "The visual width of a font as a ratio of its normal width, typically 0.5 to 2.0. `<https://docs.microsoft.com/en-us/typography/opentype/spec/os2#uswidthclass>`",+ "fields": {}+ },+ "bevy_text::GenericFontFamily": {+ "doc": "Generic font families that are resolved through Parley's font database.",+ "fields": {+ "Serif": "Fonts with serifs — small decorative strokes at the ends of letterforms.",+ "SansSerif": "Fonts without serifs.",+ "Cursive": "Fonts that use a cursive or handwritten style.",+ "Fantasy": "Decorative or expressive fonts.",+ "Monospace": "Fonts in which all glyphs have the same fixed advance width.",+ "SystemUi": "The default user interface system font.",+ "UiSerif": "Alternative serif font for user interfaces.",+ "UiSansSerif": "Alternative sans-serif font for user interfaces.",+ "UiMonospace": "Alternative monospace font for user interfaces.",+ "UiRounded": "Fonts that have rounded features.",+ "Emoji": "Fonts that are specifically designed to render emoji.",+ "Math": "This is for the particular stylistic concerns of representing mathematics: superscript and subscript, brackets that cross several lines, nesting expressions, and double struck glyphs with distinct meanings.",+ "FangSong": "A particular style of Chinese characters that are between serif-style Song and cursive-style Kai forms. This style is often used for government documents."+ }+ },+ "bevy_text::TextCursorStyle": {+ "doc": "Controls text cursor appearance.",+ "fields": {+ "color": "Color of the cursor",+ "selection_color": "Background color of selected text",+ "unfocused_selection_color": "Background color of unfocused selected text",+ "selected_text_color": "If some, overrides the color of selected text",+ "selection_radius": "Corner radius of selection highlight rectangles, normalized relative to the selection height."+ }+ },+ "bevy_text::TextFont": {+ "doc": "`TextFont` determines the style of a text span within a `ComputedTextBlock`, specifically the font face, the font size, the line height, and the antialiasing method.",+ "fields": {+ "font": "Specifies the font face used for this text section.",+ "font_size": "The vertical height of rasterized glyphs in the font atlas in pixels.",+ "weight": "How thick or bold the strokes of a font appear.",+ "width": "How condensed or expanded the glyphs appear horizontally.",+ "style": "The slant style of a font face: normal, italic, or oblique.",+ "font_smoothing": "The antialiasing method to use when rendering text.",+ "font_features": "OpenType features for .otf fonts that support them.",+ "font_variations": "OpenType variations for variable fonts that support them."+ }+ },+ "bevy_text::bounds::TextBounds": {+ "doc": "The maximum width and height of text. The text will wrap according to the specified size.",+ "fields": {+ "width": "The maximum width of text in logical pixels. If `None`, the width is unbounded.",+ "height": "The maximum height of text in logical pixels. If `None`, the height is unbounded."+ }+ },+ "bevy_text::glyph::GlyphAtlasInfo": {+ "doc": "Information about a glyph in an atlas.",+ "fields": {+ "texture": "An asset ID to the `Image` data for the texture atlas this glyph was placed in.",+ "rect": "Bounds of the glyph in the atlas texture",+ "offset": "The required offset (relative positioning) when placed",+ "is_alpha_mask": "True if this glyph is stored as a tintable alpha mask"+ }+ },+ "bevy_text::glyph::PositionedGlyph": {+ "doc": "A glyph of a font, typically representing a single character, positioned in screen space.",+ "fields": {+ "position": "The position of the glyph in the text block's bounding box.",+ "atlas_info": "Information about the glyph's atlas.",+ "section_index": "The index of the glyph in the `ComputedTextBlock`'s tracked sections.",+ "line_index": "The index of the glyph's line."+ }+ },+ "bevy_text::inline_box::InlineBoxKind": {+ "doc": "Whether a box is in-flow (takes up space in the layout) or out-of-flow (e.g. absolutely positioned)",+ "fields": {+ "InFlow": "`InFlow` boxes take up space in the layout and flow in line with text",+ "OutOfFlow": "`OutOfFlow` boxes are assigned a position as if they were a zero-sized inline box, but do not take up space in the layout."+ }+ },+ "bevy_text::pipeline::RunGeometry": {+ "doc": "Geometry of a text run used to render text decorations like background colors, strikethrough, and underline. A run in `bevy_text` is a contiguous sequence of glyphs on a line that share the same text attributes like font, font size, and line height.",+ "fields": {+ "section_index": "The index of the text entity in `ComputedTextBlock` that this run belongs to.",+ "bounds": "Bounding box around the text run.",+ "strikethrough_y": "Y position of the strikethrough in the text layout.",+ "strikethrough_thickness": "Strikethrough stroke thickness.",+ "underline_y": "Y position of the underline in the text layout.",+ "underline_thickness": "Underline stroke thickness."+ }+ },+ "bevy_text::pipeline::TextLayoutInfo": {+ "doc": "Render information for a corresponding text block.",+ "fields": {+ "scale_factor": "The target scale factor for this text layout",+ "glyphs": "Scaled and positioned glyphs in screenspace",+ "run_geometry": "Geometry of each text run used to render text decorations like background colors, strikethrough, and underline. A run in `bevy_text` is a contiguous sequence of glyphs on a line that share the same text attributes like font, font size, and line height. A text entity that extends over multiple lines will have multiple corresponding runs.",+ "size": "The size of the text layout in physical pixels",+ "cursor": "Cursor visibility, size and position for editing",+ "selection_rects": "Selection rects",+ "preedit_underline_rects": "Underline rects for the active IME preedit/compose region. Should only have values when composition is in progress.",+ "inline_boxes": "inline boxes"+ }+ },+ "bevy_text::text::ComputedTextBlock": {+ "doc": "Computed information for a text block.",+ "fields": {}+ },+ "bevy_text::text::EmSize": {+ "doc": "The font size, in logical pixels, used to resolve `Val::Em` values in a UI node.",+ "fields": {}+ },+ "bevy_text::text::FontFeatureTag": {+ "doc": "An OpenType font feature tag.",+ "fields": {}+ },+ "bevy_text::text::FontFeatures": {+ "doc": "OpenType features for .otf fonts that support them.",+ "fields": {}+ },+ "bevy_text::text::FontHinting": {+ "doc": "Font hinting strategy, which controls the rasterization for fonts.",+ "fields": {+ "Disabled": "Glyphs are rasterized without hinting.",+ "Enabled": "Glyphs are rasterized with hinting."+ }+ },+ "bevy_text::text::FontSize": {+ "doc": "The vertical height of rasterized glyphs in the font atlas in pixels.",+ "fields": {+ "Px": "Font Size in logical pixels.",+ "Vw": "Font size as a percentage of the viewport width.",+ "Vh": "Font size as a percentage of the viewport height.",+ "VMin": "Font size as a percentage of the smaller of the viewport width and height.",+ "VMax": "Font size as a percentage of the larger of the viewport width and height.",+ "Rem": "Font Size relative to the value of the `RemSize` resource."+ }+ },+ "bevy_text::text::FontSmoothing": {+ "doc": "Determines which antialiasing method to use when rendering text. By default, text is rendered with grayscale antialiasing, but this can be changed to achieve a pixelated look.",+ "fields": {+ "None": "No antialiasing. Useful for when you want to render text with a pixel art aesthetic.",+ "AntiAliased": "The default grayscale antialiasing. Produces text that looks smooth, even at small font sizes and low resolutions with modern vector fonts."+ }+ },+ "bevy_text::text::FontSource": {+ "doc": "Determines how the font face for a text sections is selected.",+ "fields": {+ "Handle": "Use a specific font face referenced by a `Font` asset handle.",+ "Family": "Resolve the font by family name using the font database.",+ "Families": "Font family list in CSS format.",+ "List": "Ordered list of font sources.",+ "Generic": "Resolve the font using a generic font family."+ }+ },+ "bevy_text::text::FontStyle": {+ "doc": "The slant style of a font face: normal, italic, or oblique.",+ "fields": {+ "Normal": "A face that is neither italic nor obliqued.",+ "Italic": "A form that is generally cursive in nature.",+ "Oblique": "A typically sloped version of the regular face."+ }+ },+ "bevy_text::text::FontVariationTag": {+ "doc": "An OpenType font variation tag.",+ "fields": {}+ },+ "bevy_text::text::FontVariations": {+ "doc": "OpenType font variations for variable fonts that support them.",+ "fields": {}+ },+ "bevy_text::text::FontWeight": {+ "doc": "How thick or bold the strokes of a font appear.",+ "fields": {}+ },+ "bevy_text::text::FontWidth": {+ "doc": "The visual width of a font as a ratio of its normal width, typically 0.5 to 2.0. `<https://docs.microsoft.com/en-us/typography/opentype/spec/os2#uswidthclass>`",+ "fields": {}+ },+ "bevy_text::text::GenericFontFamily": {+ "doc": "Generic font families that are resolved through Parley's font database.",+ "fields": {+ "Serif": "Fonts with serifs — small decorative strokes at the ends of letterforms.",+ "SansSerif": "Fonts without serifs.",+ "Cursive": "Fonts that use a cursive or handwritten style.",+ "Fantasy": "Decorative or expressive fonts.",+ "Monospace": "Fonts in which all glyphs have the same fixed advance width.",+ "SystemUi": "The default user interface system font.",+ "UiSerif": "Alternative serif font for user interfaces.",+ "UiSansSerif": "Alternative sans-serif font for user interfaces.",+ "UiMonospace": "Alternative monospace font for user interfaces.",+ "UiRounded": "Fonts that have rounded features.",+ "Emoji": "Fonts that are specifically designed to render emoji.",+ "Math": "This is for the particular stylistic concerns of representing mathematics: superscript and subscript, brackets that cross several lines, nesting expressions, and double struck glyphs with distinct meanings.",+ "FangSong": "A particular style of Chinese characters that are between serif-style Song and cursive-style Kai forms. This style is often used for government documents."+ }+ },+ "bevy_text::text::Justify": {+ "doc": "Describes the horizontal alignment of multiple lines of text relative to each other.",+ "fields": {+ "Left": "Leftmost character is immediately to the right of the render position. Bounds start from the render position and advance rightwards.",+ "Center": "Leftmost & rightmost characters are equidistant to the render position. Bounds start from the render position and advance equally left & right.",+ "Right": "Rightmost character is immediately to the left of the render position. Bounds start from the render position and advance leftwards.",+ "Justified": "Words are spaced so that leftmost & rightmost characters align with their margins. Bounds start from the render position and advance equally left & right.",+ "Start": "`TextAlignment::Left` for LTR text and `TextAlignment::Right` for RTL text.",+ "End": "`TextAlignment::Left` for RTL text and `TextAlignment::Right` for LTR text."+ }+ },+ "bevy_text::text::LetterSpacing": {+ "doc": "Specifies the space between each letter of text for `Text` and `Text2d`",+ "fields": {+ "Px": "Set letter spacing to a specific number of logical pixels",+ "Rem": "Set letter spacing to a multiple of the root font size (`RemSize`)"+ }+ },+ "bevy_text::text::LineBreak": {+ "doc": "Determines how lines will be broken when preventing text from running out of bounds.",+ "fields": {+ "WordBoundary": "Uses the Unicode Line Breaking Algorithm. Lines will be broken up at the nearest suitable word boundary, usually a space. This behavior suits most cases, as it keeps words intact across linebreaks.",+ "AnyCharacter": "Lines will be broken without discrimination on any character that would leave bounds. This is closer to the behavior one might expect from text in a terminal. However it may lead to words being broken up across linebreaks.",+ "WordOrCharacter": "Wraps at the word level, or fallback to character level if a word can’t fit on a line by itself",+ "NoWrap": "No soft wrapping, where text is automatically broken up into separate lines when it overflows a boundary, will ever occur. Hard wrapping, where text contains an explicit linebreak such as the escape sequence `\\n`, is still enabled."+ }+ },+ "bevy_text::text::LineHeight": {+ "doc": "Specifies the height of each line of text for `Text` and `Text2d`",+ "fields": {+ "Px": "Set line height to a specific number of pixels",+ "RelativeToFont": "Set line height to a multiple of the font size"+ }+ },+ "bevy_text::text::RemSize": {+ "doc": "The root font size, in logical pixels.",+ "fields": {}+ },+ "bevy_text::text::StrikethroughColor": {+ "doc": "Color for the text's strikethrough. If this component is not present, its `TextColor` will be used.",+ "fields": {}+ },+ "bevy_text::text::TextBackgroundColor": {+ "doc": "The background color of the text for this section.",+ "fields": {}+ },+ "bevy_text::text::TextColor": {+ "doc": "The color of the text for this section.",+ "fields": {}+ },+ "bevy_text::text::TextFont": {+ "doc": "`TextFont` determines the style of a text span within a `ComputedTextBlock`, specifically the font face, the font size, the line height, and the antialiasing method.",+ "fields": {+ "font": "Specifies the font face used for this text section.",+ "font_size": "The vertical height of rasterized glyphs in the font atlas in pixels.",+ "weight": "How thick or bold the strokes of a font appear.",+ "width": "How condensed or expanded the glyphs appear horizontally.",+ "style": "The slant style of a font face: normal, italic, or oblique.",+ "font_smoothing": "The antialiasing method to use when rendering text.",+ "font_features": "OpenType features for .otf fonts that support them.",+ "font_variations": "OpenType variations for variable fonts that support them."+ }+ },+ "bevy_text::text::TextLayout": {+ "doc": "Component with text format settings for a block of text.",+ "fields": {+ "justify": "The text's internal alignment. Should not affect its position within a container.",+ "linebreak": "How the text should linebreak when running out of the bounds determined by `max_size`."+ }+ },+ "bevy_text::text::TextSpan": {+ "doc": "A span of text in a tree of spans.",+ "fields": {}+ },+ "bevy_text::text::UnderlineColor": {+ "doc": "Color for the text's underline. If this component is not present, its `TextColor` will be used.",+ "fields": {}+ },+ "bevy_time::delayed_commands::DelayedCommandQueue": {+ "doc": "A component with a `CommandQueue` to be submitted later.",+ "fields": {+ "submit_at": "The elapsed time from startup when `queue` should be submitted.",+ "queue": "The queue to be submitted when time is up."+ }+ },+ "bevy_time::fixed::Fixed": {+ "doc": "The fixed timestep game clock following virtual time.",+ "fields": {}+ },+ "bevy_time::real::Real": {+ "doc": "Real time clock representing elapsed wall clock time.",+ "fields": {}+ },+ "bevy_time::stopwatch::Stopwatch": {+ "doc": "A Stopwatch is a struct that tracks elapsed time when started.",+ "fields": {}+ },+ "bevy_time::timer::Timer": {+ "doc": "Tracks elapsed time. Enters the finished state once `duration` is reached.",+ "fields": {}+ },+ "bevy_time::timer::TimerMode": {+ "doc": "Specifies `Timer` behavior.",+ "fields": {+ "Once": "Run once and stop.",+ "Repeating": "Reset when finished."+ }+ },+ "bevy_time::virt::Virtual": {+ "doc": "The virtual game clock representing game time.",+ "fields": {}+ },+ "bevy_transform::components::global_transform::GlobalTransform": {+ "doc": "`GlobalTransform` is an affine transformation from entity-local coordinates to worldspace coordinates.",+ "fields": {}+ },+ "bevy_transform::components::transform::Transform": {+ "doc": "Describe the position of an entity. If the entity has a parent, the position is relative to its parent position.",+ "fields": {+ "translation": "Position of the entity. In 2d, the last value of the `Vec3` is used for z-ordering.",+ "rotation": "Rotation of the entity.",+ "scale": "Scale of the entity."+ }+ },+ "bevy_transform::components::transform::TransformTreeChanged": {+ "doc": "An optimization for transform propagation. This ZST marker component uses change detection to mark all entities of the hierarchy as \"dirty\" if any of their descendants have a changed `Transform`. If this component is *not* marked `is_changed()`, propagation will halt.",+ "fields": {}+ },+ "bevy_ui::BoxShadow": {+ "doc": "List of shadows to draw for a `Node`.",+ "fields": {}+ },+ "bevy_ui::GridAutoFlow": {+ "doc": "Controls whether grid items are placed row-wise or column-wise as well as whether the sparse or dense packing algorithm is used.",+ "fields": {+ "Row": "Items are placed by filling each row in turn, adding new rows as necessary.",+ "Column": "Items are placed by filling each column in turn, adding new columns as necessary.",+ "RowDense": "Combines `Row` with the dense packing algorithm.",+ "ColumnDense": "Combines `Column` with the dense packing algorithm."+ }+ },+ "bevy_ui::GridPlacement": {+ "doc": "Represents the position of a grid item in a single axis.",+ "fields": {}+ },+ "bevy_ui::GridTrack": {+ "doc": "A `GridTrack` is a Row or Column of a CSS Grid. This struct specifies what size the track should be. See below for the different \"track sizing functions\" you can specify.",+ "fields": {}+ },+ "bevy_ui::GridTrackRepetition": {+ "doc": "How many times to repeat a repeated grid track",+ "fields": {+ "Count": "Repeat the track fixed number of times",+ "AutoFill": "Repeat the track to fill available space",+ "AutoFit": "Repeat the track to fill available space but collapse any tracks that do not end up with an item placed in them."+ }+ },+ "bevy_ui::IgnoreScroll": {+ "doc": "Controls whether a UI element ignores its parent's `ScrollPosition` along specific axes.",+ "fields": {}+ },+ "bevy_ui::MaxTrackSizingFunction": {+ "doc": "",+ "fields": {+ "Px": "Track maximum size should be a fixed pixel value",+ "Percent": "Track maximum size should be a percentage value",+ "Em": "Track maximum size should be a multiple of the grid container's font size.",+ "Rem": "Track maximum size should be a multiple of the root font size.",+ "MinContent": "Track maximum size should be content sized under a min-content constraint",+ "MaxContent": "Track maximum size should be content sized under a max-content constraint",+ "FitContentPx": "Track maximum size should be sized according to the fit-content formula with a fixed pixel limit",+ "FitContentPercent": "Track maximum size should be sized according to the fit-content formula with a percentage limit",+ "Auto": "Track maximum size should be automatically sized",+ "Fraction": "The dimension as a fraction of the total available grid space (`fr` units in CSS) Specified value is the numerator of the fraction. Denominator is the sum of all fractions specified in that grid dimension.",+ "VMin": "Track maximum size should be a percent of the viewport's smaller dimension.",+ "VMax": "Track maximum size should be a percent of the viewport's smaller dimension.",+ "Vh": "Track maximum size should be a percent of the viewport's height dimension.",+ "Vw": "Track maximum size should be a percent of the viewport's width dimension."+ }+ },+ "bevy_ui::MinTrackSizingFunction": {+ "doc": "",+ "fields": {+ "Px": "Track minimum size should be a fixed pixel value",+ "Percent": "Track minimum size should be a percentage value",+ "Em": "Track minimum size should be a multiple of the grid container's font size.",+ "Rem": "Track minimum size should be a multiple of the root font size.",+ "MinContent": "Track minimum size should be content sized under a min-content constraint",+ "MaxContent": "Track minimum size should be content sized under a max-content constraint",+ "Auto": "Track minimum size should be automatically sized",+ "VMin": "Track minimum size should be a percent of the viewport's smaller dimension.",+ "VMax": "Track minimum size should be a percent of the viewport's larger dimension.",+ "Vh": "Track minimum size should be a percent of the viewport's height dimension.",+ "Vw": "Track minimum size should be a percent of the viewport's width dimension."+ }+ },+ "bevy_ui::Node": {+ "doc": "The base component for UI entities. It describes UI layout and style properties.",+ "fields": {+ "display": "Which layout algorithm to use when laying out this node's contents: - `Display::Flex`: Use the Flexbox layout algorithm - `Display::Grid`: Use the CSS Grid layout algorithm - `Display::None`: Hide this node and perform layout as if it does not exist.",+ "box_sizing": "Which part of a Node's box length styles like width and height control - `BoxSizing::BorderBox`: They refer to the \"border box\" size (size including padding and border) - `BoxSizing::ContentBox`: They refer to the \"content box\" size (size excluding padding and border)",+ "position_type": "Whether a node should be laid out in-flow with, or independently of its siblings: - `PositionType::Relative`: Layout this node in-flow with other nodes using the usual (flexbox/grid) layout algorithm. - `PositionType::Absolute`: Layout this node on top and independently of other nodes.",+ "overflow": "Whether overflowing content should be displayed or clipped.",+ "scrollbar_width": "How much space in logical pixels should be reserved for scrollbars when overflow is set to scroll or auto on an axis.",+ "overflow_clip_margin": "How the bounds of clipped content should be determined",+ "left": "The horizontal position of the left edge of the node. - For relatively positioned nodes, this is relative to the node's position as computed during regular layout. - For absolutely positioned nodes, this is relative to the *parent* node's bounding box.",+ "right": "The horizontal position of the right edge of the node. - For relatively positioned nodes, this is relative to the node's position as computed during regular layout. - For absolutely positioned nodes, this is relative to the *parent* node's bounding box.",+ "top": "The vertical position of the top edge of the node. - For relatively positioned nodes, this is relative to the node's position as computed during regular layout. - For absolutely positioned nodes, this is relative to the *parent* node's bounding box.",+ "bottom": "The vertical position of the bottom edge of the node. - For relatively positioned nodes, this is relative to the node's position as computed during regular layout. - For absolutely positioned nodes, this is relative to the *parent* node's bounding box.",+ "width": "The ideal width of the node. `width` is used when it is within the bounds defined by `min_width` and `max_width`.",+ "height": "The ideal height of the node. `height` is used when it is within the bounds defined by `min_height` and `max_height`.",+ "min_width": "The minimum width of the node. `min_width` is used if it is greater than `width` and/or `max_width`.",+ "min_height": "The minimum height of the node. `min_height` is used if it is greater than `height` and/or `max_height`.",+ "max_width": "The maximum width of the node. `max_width` is used if it is within the bounds defined by `min_width` and `width`.",+ "max_height": "The maximum height of the node. `max_height` is used if it is within the bounds defined by `min_height` and `height`.",+ "aspect_ratio": "The aspect ratio of the node (defined as `width / height`)",+ "align_items": "Used to control how each individual item is aligned by default within the space they're given. - For Flexbox containers, sets default cross axis alignment of the child items. - For CSS Grid containers, controls block (vertical) axis alignment of children of this grid container within their grid areas.",+ "justify_items": "Used to control how each individual item is aligned by default within the space they're given. - For Flexbox containers, this property has no effect. See `justify_content` for main axis alignment of flex items. - For CSS Grid containers, sets default inline (horizontal) axis alignment of child items within their grid areas.",+ "align_self": "Used to control how the specified item is aligned within the space it's given. - For Flexbox items, controls cross axis alignment of the item. - For CSS Grid items, controls block (vertical) axis alignment of a grid item within its grid area.",+ "justify_self": "Used to control how the specified item is aligned within the space it's given. - For Flexbox items, this property has no effect. See `justify_content` for main axis alignment of flex items. - For CSS Grid items, controls inline (horizontal) axis alignment of a grid item within its grid area.",+ "align_content": "Used to control how items are distributed. - For Flexbox containers, controls alignment of lines if `flex_wrap` is set to `FlexWrap::Wrap` and there are multiple lines of items. - For CSS Grid containers, controls alignment of grid rows.",+ "justify_content": "Used to control how items are distributed. - For Flexbox containers, controls alignment of items in the main axis. - For CSS Grid containers, controls alignment of grid columns.",+ "direction": "Sets the inline axis direction (LTR or RTL) used for layout.",+ "margin": "The amount of space around a node outside its border.",+ "padding": "The amount of space between the edges of a node and its contents.",+ "border": "The amount of space between the margins of a node and its padding.",+ "border_radius": "Used to add rounded corners to a UI node. You can set a UI node to have uniformly rounded corners or specify different radii for each corner. If a given radius exceeds half the length of the smallest dimension between the node's height or width, the radius will calculated as half the smallest dimension.",+ "flex_direction": "Whether a Flexbox container should be a row or a column. This property has no effect on Grid nodes.",+ "flex_wrap": "Whether a Flexbox container should wrap its contents onto multiple lines if they overflow. This property has no effect on Grid nodes.",+ "flex_grow": "Defines how much a flexbox item should grow if there's space available. Defaults to 0 (don't grow at all).",+ "flex_shrink": "Defines how much a flexbox item should shrink if there's not enough space available. Defaults to 1.",+ "flex_basis": "The initial length of a flexbox in the main axis, before flex growing/shrinking properties are applied.",+ "row_gap": "The size of the gutters between items in a vertical flexbox layout or between rows in a grid layout.",+ "column_gap": "The size of the gutters between items in a horizontal flexbox layout or between column in a grid layout.",+ "grid_auto_flow": "Controls whether automatically placed grid items are placed row-wise or column-wise as well as whether the sparse or dense packing algorithm is used. Only affects Grid layouts.",+ "grid_template_rows": "Defines the number of rows a grid has and the sizes of those rows. If grid items are given explicit placements then more rows may be implicitly generated by items that are placed out of bounds. The sizes of those rows are controlled by `grid_auto_rows` property.",+ "grid_template_columns": "Defines the number of columns a grid has and the sizes of those columns. If grid items are given explicit placements then more columns may be implicitly generated by items that are placed out of bounds. The sizes of those columns are controlled by `grid_auto_columns` property.",+ "grid_auto_rows": "Defines the size of implicitly created rows. Rows are created implicitly when grid items are given explicit placements that are out of bounds of the rows explicitly created using `grid_template_rows`.",+ "grid_auto_columns": "Defines the size of implicitly created columns. Columns are created implicitly when grid items are given explicit placements that are out of bounds of the columns explicitly created using `grid_template_columns`.",+ "grid_row": "The row in which a grid item starts and how many rows it spans.",+ "grid_column": "The column in which a grid item starts and how many columns it spans."+ }+ },+ "bevy_ui::RepeatedGridTrack": {+ "doc": "Represents a *possibly* repeated `GridTrack`.",+ "fields": {}+ },+ "bevy_ui::ShadowStyle": {+ "doc": "",+ "fields": {+ "color": "The shadow's color",+ "x_offset": "Horizontal offset",+ "y_offset": "Vertical offset",+ "spread_radius": "How much the shadow should spread outward.",+ "blur_radius": "Blurriness of the shadow"+ }+ },+ "bevy_ui::UiPosition": {+ "doc": "Responsive position relative to a UI node.",+ "fields": {+ "anchor": "Normalized anchor point",+ "x": "Responsive horizontal position relative to the anchor point",+ "y": "Responsive vertical position relative to the anchor point"+ }+ },+ "bevy_ui::UiScale": {+ "doc": "The current scale of the UI.",+ "fields": {}+ },+ "bevy_ui::UiTargetCamera": {+ "doc": "Indicates that this root `Node` entity should be rendered to a specific camera.",+ "fields": {}+ },+ "bevy_ui::accessibility::AccessibleLabel": {+ "doc": "A component which permits the a11y label to be specified independently from other a11y attributes.",+ "fields": {}+ },+ "bevy_ui::auto_directional_navigation::AutoDirectionalNavigation": {+ "doc": "Marker component to enable automatic directional navigation to and from the entity.",+ "fields": {+ "respect_tab_order": "Whether to also consider `TabIndex` for navigation order hints. Currently unused but reserved for future functionality."+ }+ },+ "bevy_ui::experimental::GhostNode": {+ "doc": "Marker component for entities that should be ignored within UI hierarchies.",+ "fields": {}+ },+ "bevy_ui::experimental::ghost_hierarchy::GhostNode": {+ "doc": "Marker component for entities that should be ignored within UI hierarchies.",+ "fields": {}+ },+ "bevy_ui::focus::DeprecatedInteraction": {+ "doc": "",+ "fields": {+ "Pressed": "The node has been pressed.",+ "Hovered": "The node has been hovered over",+ "None": "Nothing has happened"+ }+ },+ "bevy_ui::focus::FocusPolicy": {+ "doc": "Describes whether the node should block interactions with lower nodes",+ "fields": {+ "Block": "Blocks interaction",+ "Pass": "Lets interaction pass through"+ }+ },+ "bevy_ui::focus::RelativeCursorPosition": {+ "doc": "A component storing the position of the mouse relative to the node, (0., 0.) being the center and (0.5, 0.5) being the bottom-right If the mouse is not over the node, the value will go beyond the range of (-0.5, -0.5) to (0.5, 0.5)",+ "fields": {+ "cursor_over": "True if the cursor position is over an unclipped area of the Node.",+ "normalized": "Cursor position relative to the size and position of the Node. A None value indicates that the cursor position is unknown."+ }+ },+ "bevy_ui::geometry::CornerRadius": {+ "doc": "The horizontal and vertical radii of a rounded corner's elliptical arc. If one field is auto, the resolved radius will be circular and clamped to half the length of the node's shortest side. If either field is zero, or both are auto, the node will have square corners.",+ "fields": {+ "x": "Responsive horizontal radius.",+ "y": "Responsive vertical radius."+ }+ },+ "bevy_ui::geometry::UiPosition": {+ "doc": "Responsive position relative to a UI node.",+ "fields": {+ "anchor": "Normalized anchor point",+ "x": "Responsive horizontal position relative to the anchor point",+ "y": "Responsive vertical position relative to the anchor point"+ }+ },+ "bevy_ui::geometry::UiRect": {+ "doc": "A type which is commonly used to define margins, paddings and borders.",+ "fields": {+ "left": "The value corresponding to the left side of the UI rect.",+ "right": "The value corresponding to the right side of the UI rect.",+ "top": "The value corresponding to the top side of the UI rect.",+ "bottom": "The value corresponding to the bottom side of the UI rect."+ }+ },+ "bevy_ui::geometry::Val": {+ "doc": "Represents the possible value types for layout properties.",+ "fields": {+ "Auto": "Automatically determine the value based on the context and other `Node` properties.",+ "Px": "Set this value in logical pixels.",+ "Percent": "Set the value as a percentage of its parent node's length along a specific axis.",+ "Vw": "Set this value in percent of the viewport width",+ "Vh": "Set this value in percent of the viewport height",+ "VMin": "Set this value in percent of the viewport's smaller dimension.",+ "VMax": "Set this value in percent of the viewport's larger dimension.",+ "Em": "Set this value as a multiple of the node's own font size.",+ "Rem": "Set this value as a multiple of the root font size."+ }+ },+ "bevy_ui::gradients::AngularColorStop": {+ "doc": "An angular color stop for a conic gradient",+ "fields": {+ "color": "Color of the stop",+ "angle": "The angle of the stop. Angles are relative to the start of the gradient and not other stops. If set to `None` the angle of the stop will be interpolated between the explicit stops or 0 and 2 PI degrees if there no explicit stops. Given angles are clamped to between `0.`, and `TAU`. This means that a list of stops: ``` # use std::f32::consts::TAU; # use bevy_ui::AngularColorStop; # use bevy_color::{Color, palettes::css::{RED, BLUE}}; let stops = [ AngularColorStop::new(Color::WHITE, 0.), AngularColorStop::new(Color::BLACK, -1.), AngularColorStop::new(RED, 2. * TAU), AngularColorStop::new(BLUE, TAU), ]; ``` is equivalent to: ``` # use std::f32::consts::TAU; # use bevy_ui::AngularColorStop; # use bevy_color::{Color, palettes::css::{RED, BLUE}}; let stops = [ AngularColorStop::new(Color::WHITE, 0.), AngularColorStop::new(Color::BLACK, 0.), AngularColorStop::new(RED, TAU), AngularColorStop::new(BLUE, TAU), ]; ``` Resulting in a black to red gradient, not white to blue.",+ "hint": "Normalized angle between this and the following stop of the interpolation midpoint."+ }+ },+ "bevy_ui::gradients::BackgroundGradient": {+ "doc": "A UI node that displays a gradient",+ "fields": {}+ },+ "bevy_ui::gradients::BorderGradient": {+ "doc": "A UI node border that displays a gradient",+ "fields": {}+ },+ "bevy_ui::gradients::ColorStop": {+ "doc": "A color stop for a gradient",+ "fields": {+ "color": "Color",+ "point": "Logical position along the gradient line. Stop positions are relative to the start of the gradient and not other stops.",+ "hint": "Normalized position between this and the following stop of the interpolation midpoint."+ }+ },+ "bevy_ui::gradients::ConicGradient": {+ "doc": "A conic gradient",+ "fields": {+ "color_space": "The color space used for interpolation.",+ "start": "The starting angle of the gradient in radians",+ "position": "The center of the conic gradient",+ "stops": "The list of color stops"+ }+ },+ "bevy_ui::gradients::Gradient": {+ "doc": "",+ "fields": {+ "Linear": "A linear gradient",+ "Radial": "A radial gradient",+ "Conic": "A conic gradient"+ }+ },+ "bevy_ui::gradients::InterpolationColorSpace": {+ "doc": "The color space used for interpolation.",+ "fields": {+ "Oklaba": "Interpolates in OKLABA space.",+ "Oklcha": "Interpolates in OKLCHA space, taking the shortest hue path.",+ "OklchaLong": "Interpolates in OKLCHA space, taking the longest hue path.",+ "Srgba": "Interpolates in sRGBA space.",+ "LinearRgba": "Interpolates in linear sRGBA space.",+ "Hsla": "Interpolates in HSLA space, taking the shortest hue path.",+ "HslaLong": "Interpolates in HSLA space, taking the longest hue path.",+ "Hsva": "Interpolates in HSVA space, taking the shortest hue path.",+ "HsvaLong": "Interpolates in HSVA space, taking the longest hue path.",+ "Okhsla": "Interpolates in OKHSLA space, taking the shortest hue path.",+ "OkhslaLong": "Interpolates in OKHSLA space, taking the longest hue path."+ }+ },+ "bevy_ui::gradients::LinearGradient": {+ "doc": "A linear gradient",+ "fields": {+ "color_space": "The color space used for interpolation.",+ "angle": "The direction of the gradient in radians. An angle of `0.` points upward, with the value increasing in the clockwise direction.",+ "stops": "The list of color stops"+ }+ },+ "bevy_ui::gradients::RadialGradient": {+ "doc": "A radial gradient",+ "fields": {+ "color_space": "The color space used for interpolation.",+ "position": "The center of the radial gradient",+ "shape": "Defines the end shape of the radial gradient",+ "stops": "The list of color stops"+ }+ },+ "bevy_ui::gradients::RadialGradientShape": {+ "doc": "",+ "fields": {+ "ClosestSide": "A circle with radius equal to the distance from its center to the closest side",+ "FarthestSide": "A circle with radius equal to the distance from its center to the farthest side",+ "ClosestCorner": "An ellipse with extents equal to the distance from its center to the nearest corner",+ "FarthestCorner": "An ellipse with extents equal to the distance from its center to the farthest corner",+ "Circle": "A circle",+ "Ellipse": "An ellipse"+ }+ },+ "bevy_ui::interaction_states::Checkable": {+ "doc": "Component that indicates that a widget can be checked.",+ "fields": {}+ },+ "bevy_ui::interaction_states::Checked": {+ "doc": "Component that indicates whether a checkbox or radio button is in a checked state.",+ "fields": {}+ },+ "bevy_ui::interaction_states::InteractionDisabled": {+ "doc": "A component indicating that a widget is disabled and should be \"grayed out\". This is used to prevent user interaction with the widget. It should not, however, prevent the widget from being updated or rendered, or from acquiring keyboard focus.",+ "fields": {}+ },+ "bevy_ui::interaction_states::Pressed": {+ "doc": "Component that indicates whether a button or widget is currently in a pressed or \"held down\" state.",+ "fields": {}+ },+ "bevy_ui::measurement::ContentSize": {+ "doc": "A node with a `ContentSize` component is a node where its size is based on its content.",+ "fields": {}+ },+ "bevy_ui::picking_backend::UiPickingCamera": {+ "doc": "An optional component that marks cameras that should be used in the `UiPickingPlugin`.",+ "fields": {}+ },+ "bevy_ui::picking_backend::UiPickingSettings": {+ "doc": "Runtime settings for the `UiPickingPlugin`.",+ "fields": {+ "require_markers": "When set to `true` UI picking will only consider cameras marked with `UiPickingCamera` and entities marked with `Pickable`. `false` by default."+ }+ },+ "bevy_ui::stack::ComputedStackIndex": {+ "doc": "The order of the node in the UI layout. Nodes with a higher stack index are drawn on top of and receive interactions before nodes with lower stack indices.",+ "fields": {}+ },+ "bevy_ui::stack::UiStack": {+ "doc": "The current UI stack, which contains all UI nodes ordered by their depth (back-to-front).",+ "fields": {+ "partition": "Partition of the `uinodes` list into disjoint slices of nodes that all share the same camera target.",+ "uinodes": "List of UI nodes ordered from back-to-front"+ }+ },+ "bevy_ui::ui_node::AlignContent": {+ "doc": "Used to control how items are distributed. - For Flexbox containers, controls alignment of lines if `flex_wrap` is set to `FlexWrap::Wrap` and there are multiple lines of items. - For CSS Grid containers, controls alignment of grid rows.",+ "fields": {+ "Default": "The items are packed in their default position as if no alignment was applied.",+ "Start": "The items are packed towards the start of the axis.",+ "StartSafe": "Like `Start` but safe `safe`",+ "End": "The items are packed towards the end of the axis.",+ "EndSafe": "Like `End` but safe `safe`",+ "FlexStart": "The items are packed towards the start of the axis, unless the flex direction is reversed; then the items are packed towards the end of the axis.",+ "FlexStartSafe": "Like `FlexStart` but safe `safe`",+ "FlexEnd": "The items are packed towards the end of the axis, unless the flex direction is reversed; then the items are packed towards the start of the axis.",+ "FlexEndSafe": "Like `FlexEnd` but safe `safe`",+ "Center": "The items are packed along the center of the axis.",+ "CenterSafe": "Like `Center` but safe `safe`",+ "Stretch": "The items are stretched to fill the container along the axis.",+ "SpaceBetween": "The items are distributed such that the gap between any two items is equal.",+ "SpaceEvenly": "The items are distributed such that the gap between and around any two items is equal.",+ "SpaceAround": "The items are distributed such that the gap between and around any two items is equal, with half-size gaps on either end."+ }+ },+ "bevy_ui::ui_node::AlignItems": {+ "doc": "Used to control how each individual item is aligned by default within the space they're given. - For Flexbox containers, sets default cross axis alignment of the child items. - For CSS Grid containers, controls block (vertical) axis alignment of children of this grid container within their grid areas.",+ "fields": {+ "Default": "The items are packed in their default position as if no alignment was applied.",+ "Start": "The items are packed towards the start of the axis.",+ "StartSafe": "Like `Start` but safe `safe`",+ "End": "The items are packed towards the end of the axis.",+ "EndSafe": "Like `End` but safe `safe`",+ "FlexStart": "The items are packed towards the start of the axis, unless the flex direction is reversed; then they are packed towards the end of the axis.",+ "FlexStartSafe": "Like `FlexStart` but safe `safe`",+ "FlexEnd": "The items are packed towards the end of the axis, unless the flex direction is reversed; then they are packed towards the start of the axis.",+ "FlexEndSafe": "Like `FlexEnd` but safe `safe`",+ "Center": "The items are packed along the center of the axis.",+ "CenterSafe": "Like `Center` but safe `safe`",+ "Baseline": "The items are packed such that their baselines align.",+ "Stretch": "The items are stretched to fill the space they're given."+ }+ },+ "bevy_ui::ui_node::AlignSelf": {+ "doc": "Used to control how the specified item is aligned within the space it's given. - For Flexbox items, controls cross axis alignment of the item. - For CSS Grid items, controls block (vertical) axis alignment of a grid item within its grid area.",+ "fields": {+ "Auto": "Use the parent node's `AlignItems` value to determine how this item should be aligned.",+ "Start": "This item will be aligned with the start of the axis.",+ "StartSafe": "Like `Start` but safe `safe`",+ "End": "This item will be aligned with the end of the axis.",+ "EndSafe": "Like `End` but safe `safe`",+ "FlexStart": "This item will be aligned with the start of the axis, unless the flex direction is reversed; then it will be aligned with the end of the axis.",+ "FlexStartSafe": "Like `FlexStart` but safe `safe`",+ "FlexEnd": "This item will be aligned with the end of the axis, unless the flex direction is reversed; then it will be aligned with the start of the axis.",+ "FlexEndSafe": "Like `FlexEnd` but safe `safe`",+ "Center": "This item will be aligned along the center of the axis.",+ "CenterSafe": "Like `Center` but safe `safe`",+ "Baseline": "This item will be aligned at the baseline.",+ "Stretch": "This item will be stretched to fill the container."+ }+ },+ "bevy_ui::ui_node::BackgroundColor": {+ "doc": "The background color of the node",+ "fields": {}+ },+ "bevy_ui::ui_node::BorderColor": {+ "doc": "The border color of the UI node.",+ "fields": {}+ },+ "bevy_ui::ui_node::BorderRadius": {+ "doc": "Used to add rounded corners to a UI node. You can set a UI node to have uniformly rounded corners, elliptical corners, or specify a different radius for each corner. If a given radius exceeds half the length of the node's height or width, the radius will be calculated as half the height or width.",+ "fields": {+ "top_left": "Border radius of the top left corner",+ "top_right": "Border radius of the top right corner",+ "bottom_right": "Border radius of the bottom right corner",+ "bottom_left": "Border radius of the bottom left corner"+ }+ },+ "bevy_ui::ui_node::BoxShadow": {+ "doc": "List of shadows to draw for a `Node`.",+ "fields": {}+ },+ "bevy_ui::ui_node::BoxSizing": {+ "doc": "Which part of a Node's box length styles like width and height control",+ "fields": {+ "BorderBox": "Length styles like width and height refer to the \"border box\" size (size including padding and border)",+ "ContentBox": "Length styles like width and height refer to the \"content box\" size (size excluding padding and border)"+ }+ },+ "bevy_ui::ui_node::CalculatedClip": {+ "doc": "The calculated clipping inherited by the node.",+ "fields": {+ "Rects": "Clip rects inherited from ancestors.",+ "FullyClipped": "The node and descendants are fully clipped."+ }+ },+ "bevy_ui::ui_node::ComputedNode": {+ "doc": "Provides the computed size and layout properties of a UI `Node`.",+ "fields": {+ "size": "The size of the node as width and height in physical pixels.",+ "content_size": "Size of this node's content in physical pixels.",+ "scrollbar_size": "Space allocated for scrollbars.",+ "scroll_position": "Resolved offset of scrolled content",+ "outline_width": "The width of this node's outline in physical pixels. If this value is negative or zero then no outline will be rendered.",+ "outline_offset": "The amount of space between the outline and the edge of the node.",+ "unrounded_size": "The unrounded size of the node as width and height in physical pixels.",+ "border": "Resolved border values in physical pixels.",+ "border_radius": "Resolved border radius values in physical pixels.",+ "padding": "Resolved padding values in physical pixels.",+ "inverse_scale_factor": "Inverse scale factor for this Node. Multiply physical coordinates by the inverse scale factor to give logical coordinates.",+ "em_size": "The font size used to resolve this node's `Val::Em` lengths, in logical pixels."+ }+ },+ "bevy_ui::ui_node::ComputedUiRenderTargetInfo": {+ "doc": "Derived information about the render target for this UI node.",+ "fields": {}+ },+ "bevy_ui::ui_node::ComputedUiTargetCamera": {+ "doc": "Derived information about the camera target for this UI node.",+ "fields": {}+ },+ "bevy_ui::ui_node::Display": {+ "doc": "Defines the layout model used by this node.",+ "fields": {+ "Flex": "Use Flexbox layout model to determine the position of this `Node`'s children.",+ "Grid": "Use CSS Grid layout model to determine the position of this `Node`'s children.",+ "Block": "Use CSS Block layout model to determine the position of this `Node`'s children.",+ "None": "Use no layout, don't render this node and its children."+ }+ },+ "bevy_ui::ui_node::FixedNode": {+ "doc": "A UI entity with a `FixedNode` component is treated as a root node, even when it has a UI node parent. A `FixedNode` UI entity is positioned relative to the target camera's viewport rather that its parent element.",+ "fields": {}+ },+ "bevy_ui::ui_node::FlexDirection": {+ "doc": "Defines how flexbox items are ordered within a flexbox",+ "fields": {+ "Row": "Same way as text direction along the main axis.",+ "Column": "Flex from top to bottom.",+ "RowReverse": "Opposite way as text direction along the main axis.",+ "ColumnReverse": "Flex from bottom to top."+ }+ },+ "bevy_ui::ui_node::FlexWrap": {+ "doc": "Defines if flexbox items appear on a single line or on multiple lines",+ "fields": {+ "NoWrap": "Single line, will overflow if needed.",+ "Wrap": "Multiple lines, if needed.",+ "WrapReverse": "Same as `FlexWrap::Wrap` but new lines will appear before the previous one."+ }+ },+ "bevy_ui::ui_node::GlobalZIndex": {+ "doc": "`GlobalZIndex` allows a `Node` entity anywhere in the UI hierarchy to escape the implicit draw ordering of the UI's layout tree and be rendered above or below other UI nodes. Root UI nodes without a `GlobalZIndex` component receive an implicit global z-index of `0`. Nodes with a `GlobalZIndex` of greater than 0 will be drawn on top of nodes without a `GlobalZIndex` or nodes with a lower `GlobalZIndex`. Nodes with a `GlobalZIndex` of less than 0 will be drawn below nodes without a `GlobalZIndex` or nodes with a greater `GlobalZIndex`. The order of nodes with the same `GlobalZIndex` is stable between frames.",+ "fields": {}+ },+ "bevy_ui::ui_node::GridAutoFlow": {+ "doc": "Controls whether grid items are placed row-wise or column-wise as well as whether the sparse or dense packing algorithm is used.",+ "fields": {+ "Row": "Items are placed by filling each row in turn, adding new rows as necessary.",+ "Column": "Items are placed by filling each column in turn, adding new columns as necessary.",+ "RowDense": "Combines `Row` with the dense packing algorithm.",+ "ColumnDense": "Combines `Column` with the dense packing algorithm."+ }+ },+ "bevy_ui::ui_node::GridPlacement": {+ "doc": "Represents the position of a grid item in a single axis.",+ "fields": {}+ },+ "bevy_ui::ui_node::GridTrack": {+ "doc": "A `GridTrack` is a Row or Column of a CSS Grid. This struct specifies what size the track should be. See below for the different \"track sizing functions\" you can specify.",+ "fields": {}+ },+ "bevy_ui::ui_node::GridTrackRepetition": {+ "doc": "How many times to repeat a repeated grid track",+ "fields": {+ "Count": "Repeat the track fixed number of times",+ "AutoFill": "Repeat the track to fill available space",+ "AutoFit": "Repeat the track to fill available space but collapse any tracks that do not end up with an item placed in them."+ }+ },+ "bevy_ui::ui_node::IgnoreScroll": {+ "doc": "Controls whether a UI element ignores its parent's `ScrollPosition` along specific axes.",+ "fields": {}+ },+ "bevy_ui::ui_node::InlineDirection": {+ "doc": "Sets the inline axis direction (LTR or RTL) used for layout.",+ "fields": {+ "Ltr": "Left-to-right",+ "Rtl": "Right-to-left"+ }+ },+ "bevy_ui::ui_node::IsDefaultUiCamera": {+ "doc": "Marker used to identify default cameras, they will have priority over the `PrimaryWindow` camera.",+ "fields": {}+ },+ "bevy_ui::ui_node::JustifyContent": {+ "doc": "Used to control how items are distributed. - For Flexbox containers, controls alignment of items in the main axis. - For CSS Grid containers, controls alignment of grid columns.",+ "fields": {+ "Default": "The items are packed in their default position as if no alignment was applied.",+ "Start": "The items are packed towards the start of the axis.",+ "StartSafe": "Like `Start` but safe `safe`",+ "End": "The items are packed towards the end of the axis.",+ "EndSafe": "Like `End` but safe `safe`",+ "FlexStart": "The items are packed towards the start of the axis, unless the flex direction is reversed; then the items are packed towards the end of the axis.",+ "FlexStartSafe": "Like `FlexStart` but safe `safe`",+ "FlexEnd": "The items are packed towards the end of the axis, unless the flex direction is reversed; then the items are packed towards the start of the axis.",+ "FlexEndSafe": "Like `FlexEnd` but safe `safe`",+ "Center": "The items are packed along the center of the axis.",+ "CenterSafe": "Like `Center` but safe `safe`",+ "Stretch": "The items are stretched to fill the container along the axis.",+ "SpaceBetween": "The items are distributed such that the gap between any two items is equal.",+ "SpaceEvenly": "The items are distributed such that the gap between and around any two items is equal.",+ "SpaceAround": "The items are distributed such that the gap between and around any two items is equal, with half-size gaps on either end."+ }+ },+ "bevy_ui::ui_node::JustifyItems": {+ "doc": "Used to control how each individual item is aligned by default within the space they're given. - For Flexbox containers, this property has no effect. See `justify_content` for main axis alignment of flex items. - For CSS Grid containers, sets default inline (horizontal) axis alignment of child items within their grid areas.",+ "fields": {+ "Default": "The items are packed in their default position as if no alignment was applied.",+ "Start": "The items are packed towards the start of the axis.",+ "StartSafe": "Like `Start` but safe `safe`",+ "End": "The items are packed towards the end of the axis.",+ "EndSafe": "Like `End` but safe `safe`",+ "Center": "The items are packed along the center of the axis",+ "CenterSafe": "Like `Center` but safe `safe`",+ "Baseline": "The items are packed such that their baselines align.",+ "Stretch": "The items are stretched to fill the space they're given."+ }+ },+ "bevy_ui::ui_node::JustifySelf": {+ "doc": "Used to control how the specified item is aligned within the space it's given. - For children of flex nodes, this property has no effect. See `justify_content` for main axis alignment of flex items. - For CSS Grid items, controls inline (horizontal) axis alignment of a grid item within its grid area.",+ "fields": {+ "Auto": "Use the parent node's `JustifyItems` value to determine how this item should be aligned.",+ "Start": "This item will be aligned with the start of the axis.",+ "StartSafe": "Like `Start` but safe `safe`",+ "End": "This item will be aligned with the end of the axis.",+ "EndSafe": "Like `End` but safe `safe`",+ "Center": "This item will be aligned along the center of the axis.",+ "CenterSafe": "Like `Center` but safe `safe`",+ "Baseline": "This item will be aligned at the baseline.",+ "Stretch": "This item will be stretched to fill the space it's given."+ }+ },+ "bevy_ui::ui_node::LayoutConfig": {+ "doc": "This component can be added to any UI node to modify its layout behavior.",+ "fields": {+ "use_rounding": "If set to true the coordinates for this node and its descendents will be rounded to the nearest physical pixel. This can help prevent visual artifacts like blurry images or semi-transparent edges that can occur with sub-pixel positioning."+ }+ },+ "bevy_ui::ui_node::MaxTrackSizingFunction": {+ "doc": "",+ "fields": {+ "Px": "Track maximum size should be a fixed pixel value",+ "Percent": "Track maximum size should be a percentage value",+ "Em": "Track maximum size should be a multiple of the grid container's font size.",+ "Rem": "Track maximum size should be a multiple of the root font size.",+ "MinContent": "Track maximum size should be content sized under a min-content constraint",+ "MaxContent": "Track maximum size should be content sized under a max-content constraint",+ "FitContentPx": "Track maximum size should be sized according to the fit-content formula with a fixed pixel limit",+ "FitContentPercent": "Track maximum size should be sized according to the fit-content formula with a percentage limit",+ "Auto": "Track maximum size should be automatically sized",+ "Fraction": "The dimension as a fraction of the total available grid space (`fr` units in CSS) Specified value is the numerator of the fraction. Denominator is the sum of all fractions specified in that grid dimension.",+ "VMin": "Track maximum size should be a percent of the viewport's smaller dimension.",+ "VMax": "Track maximum size should be a percent of the viewport's smaller dimension.",+ "Vh": "Track maximum size should be a percent of the viewport's height dimension.",+ "Vw": "Track maximum size should be a percent of the viewport's width dimension."+ }+ },+ "bevy_ui::ui_node::MinTrackSizingFunction": {+ "doc": "",+ "fields": {+ "Px": "Track minimum size should be a fixed pixel value",+ "Percent": "Track minimum size should be a percentage value",+ "Em": "Track minimum size should be a multiple of the grid container's font size.",+ "Rem": "Track minimum size should be a multiple of the root font size.",+ "MinContent": "Track minimum size should be content sized under a min-content constraint",+ "MaxContent": "Track minimum size should be content sized under a max-content constraint",+ "Auto": "Track minimum size should be automatically sized",+ "VMin": "Track minimum size should be a percent of the viewport's smaller dimension.",+ "VMax": "Track minimum size should be a percent of the viewport's larger dimension.",+ "Vh": "Track minimum size should be a percent of the viewport's height dimension.",+ "Vw": "Track minimum size should be a percent of the viewport's width dimension."+ }+ },+ "bevy_ui::ui_node::Node": {+ "doc": "The base component for UI entities. It describes UI layout and style properties.",+ "fields": {+ "display": "Which layout algorithm to use when laying out this node's contents: - `Display::Flex`: Use the Flexbox layout algorithm - `Display::Grid`: Use the CSS Grid layout algorithm - `Display::None`: Hide this node and perform layout as if it does not exist.",+ "box_sizing": "Which part of a Node's box length styles like width and height control - `BoxSizing::BorderBox`: They refer to the \"border box\" size (size including padding and border) - `BoxSizing::ContentBox`: They refer to the \"content box\" size (size excluding padding and border)",+ "position_type": "Whether a node should be laid out in-flow with, or independently of its siblings: - `PositionType::Relative`: Layout this node in-flow with other nodes using the usual (flexbox/grid) layout algorithm. - `PositionType::Absolute`: Layout this node on top and independently of other nodes.",+ "overflow": "Whether overflowing content should be displayed or clipped.",+ "scrollbar_width": "How much space in logical pixels should be reserved for scrollbars when overflow is set to scroll or auto on an axis.",+ "overflow_clip_margin": "How the bounds of clipped content should be determined",+ "left": "The horizontal position of the left edge of the node. - For relatively positioned nodes, this is relative to the node's position as computed during regular layout. - For absolutely positioned nodes, this is relative to the *parent* node's bounding box.",+ "right": "The horizontal position of the right edge of the node. - For relatively positioned nodes, this is relative to the node's position as computed during regular layout. - For absolutely positioned nodes, this is relative to the *parent* node's bounding box.",+ "top": "The vertical position of the top edge of the node. - For relatively positioned nodes, this is relative to the node's position as computed during regular layout. - For absolutely positioned nodes, this is relative to the *parent* node's bounding box.",+ "bottom": "The vertical position of the bottom edge of the node. - For relatively positioned nodes, this is relative to the node's position as computed during regular layout. - For absolutely positioned nodes, this is relative to the *parent* node's bounding box.",+ "width": "The ideal width of the node. `width` is used when it is within the bounds defined by `min_width` and `max_width`.",+ "height": "The ideal height of the node. `height` is used when it is within the bounds defined by `min_height` and `max_height`.",+ "min_width": "The minimum width of the node. `min_width` is used if it is greater than `width` and/or `max_width`.",+ "min_height": "The minimum height of the node. `min_height` is used if it is greater than `height` and/or `max_height`.",+ "max_width": "The maximum width of the node. `max_width` is used if it is within the bounds defined by `min_width` and `width`.",+ "max_height": "The maximum height of the node. `max_height` is used if it is within the bounds defined by `min_height` and `height`.",+ "aspect_ratio": "The aspect ratio of the node (defined as `width / height`)",+ "align_items": "Used to control how each individual item is aligned by default within the space they're given. - For Flexbox containers, sets default cross axis alignment of the child items. - For CSS Grid containers, controls block (vertical) axis alignment of children of this grid container within their grid areas.",+ "justify_items": "Used to control how each individual item is aligned by default within the space they're given. - For Flexbox containers, this property has no effect. See `justify_content` for main axis alignment of flex items. - For CSS Grid containers, sets default inline (horizontal) axis alignment of child items within their grid areas.",+ "align_self": "Used to control how the specified item is aligned within the space it's given. - For Flexbox items, controls cross axis alignment of the item. - For CSS Grid items, controls block (vertical) axis alignment of a grid item within its grid area.",+ "justify_self": "Used to control how the specified item is aligned within the space it's given. - For Flexbox items, this property has no effect. See `justify_content` for main axis alignment of flex items. - For CSS Grid items, controls inline (horizontal) axis alignment of a grid item within its grid area.",+ "align_content": "Used to control how items are distributed. - For Flexbox containers, controls alignment of lines if `flex_wrap` is set to `FlexWrap::Wrap` and there are multiple lines of items. - For CSS Grid containers, controls alignment of grid rows.",+ "justify_content": "Used to control how items are distributed. - For Flexbox containers, controls alignment of items in the main axis. - For CSS Grid containers, controls alignment of grid columns.",+ "direction": "Sets the inline axis direction (LTR or RTL) used for layout.",+ "margin": "The amount of space around a node outside its border.",+ "padding": "The amount of space between the edges of a node and its contents.",+ "border": "The amount of space between the margins of a node and its padding.",+ "border_radius": "Used to add rounded corners to a UI node. You can set a UI node to have uniformly rounded corners or specify different radii for each corner. If a given radius exceeds half the length of the smallest dimension between the node's height or width, the radius will calculated as half the smallest dimension.",+ "flex_direction": "Whether a Flexbox container should be a row or a column. This property has no effect on Grid nodes.",+ "flex_wrap": "Whether a Flexbox container should wrap its contents onto multiple lines if they overflow. This property has no effect on Grid nodes.",+ "flex_grow": "Defines how much a flexbox item should grow if there's space available. Defaults to 0 (don't grow at all).",+ "flex_shrink": "Defines how much a flexbox item should shrink if there's not enough space available. Defaults to 1.",+ "flex_basis": "The initial length of a flexbox in the main axis, before flex growing/shrinking properties are applied.",+ "row_gap": "The size of the gutters between items in a vertical flexbox layout or between rows in a grid layout.",+ "column_gap": "The size of the gutters between items in a horizontal flexbox layout or between column in a grid layout.",+ "grid_auto_flow": "Controls whether automatically placed grid items are placed row-wise or column-wise as well as whether the sparse or dense packing algorithm is used. Only affects Grid layouts.",+ "grid_template_rows": "Defines the number of rows a grid has and the sizes of those rows. If grid items are given explicit placements then more rows may be implicitly generated by items that are placed out of bounds. The sizes of those rows are controlled by `grid_auto_rows` property.",+ "grid_template_columns": "Defines the number of columns a grid has and the sizes of those columns. If grid items are given explicit placements then more columns may be implicitly generated by items that are placed out of bounds. The sizes of those columns are controlled by `grid_auto_columns` property.",+ "grid_auto_rows": "Defines the size of implicitly created rows. Rows are created implicitly when grid items are given explicit placements that are out of bounds of the rows explicitly created using `grid_template_rows`.",+ "grid_auto_columns": "Defines the size of implicitly created columns. Columns are created implicitly when grid items are given explicit placements that are out of bounds of the columns explicitly created using `grid_template_columns`.",+ "grid_row": "The row in which a grid item starts and how many rows it spans.",+ "grid_column": "The column in which a grid item starts and how many columns it spans."+ }+ },+ "bevy_ui::ui_node::OuterColor": {+ "doc": "Sets a color to fill the regions outside the Node's border created when a border radius is set.",+ "fields": {}+ },+ "bevy_ui::ui_node::Outline": {+ "doc": "The `Outline` component adds an outline outside the edge of a UI node. Outlines do not take up space in the layout.",+ "fields": {+ "width": "The width of the outline.",+ "offset": "The amount of space between a node's outline the edge of the node.",+ "color": "The color of the outline."+ }+ },+ "bevy_ui::ui_node::Overflow": {+ "doc": "Whether to show or hide overflowing items",+ "fields": {+ "x": "Whether to show or clip overflowing items on the x axis",+ "y": "Whether to show or clip overflowing items on the y axis"+ }+ },+ "bevy_ui::ui_node::OverflowAxis": {+ "doc": "Whether to show or hide overflowing items",+ "fields": {+ "Visible": "Show overflowing items.",+ "Clip": "Hide overflowing items by clipping.",+ "Hidden": "Hide overflowing items by influencing layout and then clipping.",+ "Scroll": "Scroll overflowing items."+ }+ },+ "bevy_ui::ui_node::OverflowClipMargin": {+ "doc": "The bounds of the visible area when a UI node is clipped.",+ "fields": {+ "visual_box": "Visible unclipped area",+ "margin": "Width of the margin on each edge of the visual box in logical pixels. The width of the margin will be zero if a negative value is set."+ }+ },+ "bevy_ui::ui_node::OverrideClip": {+ "doc": "UI node entities with this component will ignore any clipping rect they inherit, the node will not be clipped regardless of its ancestors' `Overflow` setting.",+ "fields": {}+ },+ "bevy_ui::ui_node::PositionType": {+ "doc": "The strategy used to position this node",+ "fields": {+ "Relative": "Relative to all other nodes with the `PositionType::Relative` value.",+ "Absolute": "Independent of all other nodes, but relative to its parent node."+ }+ },+ "bevy_ui::ui_node::RepeatedGridTrack": {+ "doc": "Represents a *possibly* repeated `GridTrack`.",+ "fields": {}+ },+ "bevy_ui::ui_node::ResolvedBorderRadius": {+ "doc": "Represents the resolved border radii values for a UI node.",+ "fields": {}+ },+ "bevy_ui::ui_node::ScrollPosition": {+ "doc": "The scroll position of the node. Values are in logical pixels, increasing from top-left to bottom-right.",+ "fields": {}+ },+ "bevy_ui::ui_node::ShadowStyle": {+ "doc": "",+ "fields": {+ "color": "The shadow's color",+ "x_offset": "Horizontal offset",+ "y_offset": "Vertical offset",+ "spread_radius": "How much the shadow should spread outward.",+ "blur_radius": "Blurriness of the shadow"+ }+ },+ "bevy_ui::ui_node::UiTargetCamera": {+ "doc": "Indicates that this root `Node` entity should be rendered to a specific camera.",+ "fields": {}+ },+ "bevy_ui::ui_node::VisualBox": {+ "doc": "Used to determine which region of a UI node is used for visual bounds.",+ "fields": {+ "ContentBox": "Use the content box.",+ "PaddingBox": "Use the padding box.",+ "BorderBox": "Use the border box."}},- "bevy_light::spot_light::SpotLight": {- "doc": "A light that emits light in a given direction from a central point.",+ "bevy_ui::ui_node::ZIndex": {+ "doc": "Indicates that this `Node` entity's front-to-back ordering is not controlled solely by its location in the UI hierarchy. A node with a higher z-index will appear on top of sibling nodes with a lower z-index.",+ "fields": {}+ },+ "bevy_ui::ui_transform::UiGlobalTransform": {+ "doc": "Absolute 2D transform for UI nodes",+ "fields": {}+ },+ "bevy_ui::ui_transform::UiTransform": {+ "doc": "Relative 2D transform for UI nodes","fields": {- "color": "The color of the light.",- "intensity": "Luminous power in lumens, representing the amount of light emitted by this source in all directions.",- "range": "Range in meters that this light illuminates.",- "radius": "Simulates a light source coming from a spherical volume with the given radius.",- "shadow_maps_enabled": "Whether this light casts shadows.",- "contact_shadows_enabled": "Whether this light casts contact shadows. Cameras must also have the `ContactShadows` component.",- "soft_shadows_enabled": "Whether soft shadows are enabled.",- "affects_lightmapped_mesh_diffuse": "Whether this spot light contributes diffuse lighting to meshes with lightmaps.",- "shadow_depth_bias": "A value that adjusts the tradeoff between self-shadowing artifacts and proximity of shadows to their casters.",- "shadow_normal_bias": "A bias applied along the direction of the fragment's surface normal. It is scaled to the shadow map's texel size so that it can be small close to the camera and gets larger further away.",- "shadow_map_near_z": "The distance from the light to the near Z plane in the shadow map.",- "outer_angle": "Angle defining the distance from the spot light direction to the outer limit of the light's cone of effect. `outer_angle` must be < `PI / 2.0`.",- "inner_angle": "Angle defining the distance from the spot light direction to the inner limit of the light's cone of effect. Light is attenuated from `inner_angle` to `outer_angle` to give a smooth falloff. `inner_angle` should be <= `outer_angle`"+ "translation": "Translate the node.",+ "scale": "Scale the node. A negative value reflects the node in that axis.",+ "rotation": "Rotate the node clockwise."}},- "bevy_light::volumetric::FogVolume": {- "doc": "A unit cube of fog at the origin. Can be positioned and scaled with a `Transform`. Only visible by cameras with a `VolumetricFog` component when lit by a directional light with `VolumetricLight`.",+ "bevy_ui::ui_transform::Val2": {+ "doc": "A pair of `Val`s used to represent a 2-dimensional size or offset.","fields": {- "fog_color": "The color of the fog.",- "density_factor": "The density of fog, which measures how dark the fog is.",- "density_texture": "Optional 3D voxel density texture for the fog.",- "density_texture_offset": "Configurable offset of the density texture in UVW coordinates.",- "absorption": "The absorption coefficient, which measures what fraction of light is absorbed by the fog at each step.",- "scattering": "The scattering coefficient, which measures the fraction of light that's scattered toward, and away from, the viewer.",- "scattering_asymmetry": "Measures the fraction of light that's scattered *toward* the camera, as opposed to *away* from the camera.",- "light_tint": "Applies a nonphysical color to the light.",- "light_intensity": "Scales the light by a fixed fraction."+ "x": "Translate the node along the x-axis. `Val::Percent` values are resolved based on the computed width of the Ui Node. `Val::Auto` is resolved to `0.`.",+ "y": "Translate the node along the y-axis. `Val::Percent` values are resolved based on the computed height of the UI Node. `Val::Auto` is resolved to `0.`."}},- "bevy_light::volumetric::VolumetricFog": {- "doc": "When placed on a `bevy_camera::Camera3d`, enables volumetric fog and volumetric lighting, also known as light shafts or god rays.",+ "bevy_ui::widget::InlineImage": {+ "doc": "An inline image","fields": {- "ambient_color": "Color of the ambient light.",- "ambient_intensity": "The brightness of the ambient light.",- "jitter": "The maximum distance to offset the ray origin randomly by, in meters.",- "step_count": "The number of raymarching steps to perform."+ "color": "The tint color used to draw the image.",+ "image": "Handle to the texture.",+ "width": "Set a fixed width in logical pixels for the image's inline box target.",+ "height": "Set a fixed height in logical pixels for the image's inline box target.",+ "flip_x": "Flip the image on the x-axis.",+ "flip_y": "Flip the image on the y-axis."}},- "bevy_light::volumetric::VolumetricLight": {- "doc": "Add this component to a `DirectionalLight` with a shadow map (`shadow_maps_enabled: true`) to make volumetric fog interact with it.",+ "bevy_ui::widget::image::ImageNode": {+ "doc": "A UI Node that renders an image.",+ "fields": {+ "color": "The tint color used to draw the image.",+ "image": "Handle to the texture.",+ "texture_atlas": "The (optional) texture atlas used to render the image.",+ "flip_x": "Whether the image should be flipped along its x-axis.",+ "flip_y": "Whether the image should be flipped along its y-axis.",+ "rect": "An optional rectangle representing the region of the image to render, instead of rendering the full image. This is an easy one-off alternative to using a `TextureAtlas`.",+ "image_mode": "Controls how the image is altered to fit within the layout and how the layout algorithm determines the space to allocate for the image.",+ "visual_box": "Which region of the UI node the image should be drawn within."+ }+ },+ "bevy_ui::widget::image::ImageNodeSize": {+ "doc": "The size of the image's texture","fields": {}},- "bevy_math::Rot2": {- "doc": "A 2D rotation.",+ "bevy_ui::widget::image::NodeImageMode": {+ "doc": "Controls how the image is altered to fit within the layout and how the layout algorithm determines the space in the layout for the image","fields": {- "cos": "The cosine of the rotation angle.",- "sin": "The sine of the rotation angle."+ "Auto": "The image will be sized automatically by taking the size of the source image and applying any layout constraints.",+ "Stretch": "The image will be resized to match the size of the node. The image's original size and aspect ratio will be ignored.",+ "Sliced": "The texture will be cut in 9 slices, keeping the texture in proportions on resize",+ "Tiled": "The texture will be repeated if stretched beyond `stretched_value`"}},- "bevy_mesh::MeshVertexAttribute": {- "doc": "",+ "bevy_ui::widget::inline_image::InlineImage": {+ "doc": "An inline image","fields": {- "name": "The friendly name of the vertex attribute",- "id": "The _unique_ id of the vertex attribute. This will also determine sort ordering when generating vertex buffers. Built-in / standard attributes will use \"close to zero\" indices. When in doubt, use a random / very large u64 to avoid conflicts.",- "format": "The format of the vertex attribute."+ "color": "The tint color used to draw the image.",+ "image": "Handle to the texture.",+ "width": "Set a fixed width in logical pixels for the image's inline box target.",+ "height": "Set a fixed height in logical pixels for the image's inline box target.",+ "flip_x": "Flip the image on the x-axis.",+ "flip_y": "Flip the image on the y-axis."}},- "bevy_mesh::components::Mesh2d": {- "doc": "A component for 2D meshes. Requires a `MeshMaterial2d` to be rendered, commonly using a `ColorMaterial`.",+ "bevy_ui::widget::label::Label": {+ "doc": "Marker struct for labels","fields": {}},- "bevy_mesh::components::Mesh3d": {- "doc": "A component for 3D meshes. Requires a `MeshMaterial3d` to be rendered, commonly using a `StandardMaterial`.",+ "bevy_ui::widget::text::TextNodeFlags": {+ "doc": "UI text system flags.","fields": {}},- "bevy_mesh::mesh::Mesh": {- "doc": "A 3D object made out of vertices representing triangles, lines, or points, with \"attribute\" values for each vertex.",+ "bevy_ui::widget::text::TextShadow": {+ "doc": "Adds a shadow behind text","fields": {- "asset_usage": "`std::collections::BTreeMap` with all defined vertex attributes (Positions, Normals, ...) for this mesh. Attribute ids to attribute values. Uses a `BTreeMap` because, unlike `HashMap`, it has a defined iteration order, which allows easy stable `VertexBuffers` (i.e. same buffer order)",- "enable_raytracing": "Whether or not to build a BLAS for use with `bevy_solari` raytracing.",- "final_aabb": "Precomputed min and max extents of the mesh position data. Used mainly for constructing `Aabb`s for frustum culling and decompressing vertex positions. This data will be set if/when a mesh is extracted to the GPU or when compressing positions.",- "final_uv_ranges": "Precomputed min and max extents of the mesh UV channels data. Used mainly for decompressing vertex UVs. This will be set when compressing UVs."+ "offset": "Shadow displacement in logical pixels With a value of zero the shadow will be hidden directly behind the text",+ "color": "Color of the shadow"}},- "bevy_pbr::extended_material::ExtendedMaterial": {- "doc": "A material that extends a base `Material` with additional shaders and data.",+ "bevy_ui::widget::viewport::ViewportNode": {+ "doc": "Component used to render a `RenderTarget` to a node.",+ "fields": {+ "camera": "The entity representing the `Camera` associated with this viewport."+ }+ },+ "bevy_ui_render::BoxShadowSamples": {+ "doc": "Number of shadow samples. A larger value will result in higher quality shadows. Default is 4, values higher than ~10 offer diminishing returns.","fields": {}},- "bevy_pbr::fog::DistanceFog": {- "doc": "Configures the “classic” computer graphics distance fog effect, in which objects appear progressively more covered in atmospheric haze the further away they are from the camera. Affects meshes rendered via the PBR `StandardMaterial`.",+ "bevy_ui_render::GlobalUiDebugOptions": {+ "doc": "Configuration for the UI debug overlay","fields": {- "color": "The color of the fog effect.",- "directional_light_color": "Color used to modulate the influence of directional light colors on the fog, where the view direction aligns with each directional light direction, producing a “glow” or light dispersion effect. (e.g. around the sun)",- "directional_light_exponent": "The exponent applied to the directional light alignment calculation. A higher value means a more concentrated “glow”.",- "falloff": "Determines which falloff mode to use, and its parameters."+ "enabled": "Set to true to enable the UI debug overlay",+ "outline_border_box": "Show outlines for the border boxes of UI nodes",+ "outline_padding_box": "Show outlines for the padding boxes of UI nodes",+ "outline_content_box": "Show outlines for the content boxes of UI nodes",+ "outline_scrollbars": "Show outlines for the scrollbar regions of UI nodes",+ "line_width": "Width of the overlay's lines in logical pixels",+ "line_color_override": "Override Color for the overlay's lines",+ "show_hidden": "Show outlines for non-visible UI nodes",+ "show_clipped": "Show outlines for clipped sections of UI nodes",+ "ignore_border_radius": "Draw outlines with sharp corners even if the UI nodes have border radii"}},- "bevy_pbr::lightmap::Lightmap": {- "doc": "A component that applies baked indirect diffuse global illumination from a lightmap.",+ "bevy_ui_render::UiAntiAlias": {+ "doc": "Marker for controlling whether UI is rendered with or without anti-aliasing in a camera. By default, UI is always anti-aliased.","fields": {- "image": "The lightmap texture.",- "uv_rect": "The rectangle within the lightmap texture that the UVs are relative to.",- "bicubic_sampling": "Whether bicubic sampling should be used for sampling this lightmap."+ "On": "UI will render with anti-aliasing",+ "Off": "UI will render without anti-aliasing"}},- "bevy_pbr::mesh_material::MeshMaterial3d": {- "doc": "A material used for rendering a `Mesh3d`.",- "fields": {}+ "bevy_ui_render::UiDebugOptions": {+ "doc": "Configuration for the UI debug overlay",+ "fields": {+ "enabled": "Set to true to enable the UI debug overlay",+ "outline_border_box": "Show outlines for the border boxes of UI nodes",+ "outline_padding_box": "Show outlines for the padding boxes of UI nodes",+ "outline_content_box": "Show outlines for the content boxes of UI nodes",+ "outline_scrollbars": "Show outlines for the scrollbar regions of UI nodes",+ "line_width": "Width of the overlay's lines in logical pixels",+ "line_color_override": "Override Color for the overlay's lines",+ "show_hidden": "Show outlines for non-visible UI nodes",+ "show_clipped": "Show outlines for clipped sections of UI nodes",+ "ignore_border_radius": "Draw outlines with sharp corners even if the UI nodes have border radii"+ }},- "bevy_pbr::pbr_material::StandardMaterial": {- "doc": "A material with \"standard\" properties used in PBR lighting. Standard property values with pictures here: <https://google.github.io/filament/notes/material_properties.html>.",+ "bevy_ui_render::debug_overlay::GlobalUiDebugOptions": {+ "doc": "Configuration for the UI debug overlay","fields": {- "base_color": "The color of the surface of the material before lighting.",- "base_color_channel": "The UV channel to use for the `StandardMaterial::base_color_texture`.",- "base_color_texture": "The texture component of the material's color before lighting. The actual pre-lighting color is `base_color * this_texture`.",- "emissive": "Color the material \"emits\" to the camera.",- "emissive_exposure_weight": "The weight in which the camera exposure influences the emissive color. A value of `0.0` means the emissive color is not affected by the camera exposure. In opposition, a value of `1.0` means the emissive color is multiplied by the camera exposure.",- "emissive_channel": "The UV channel to use for the `StandardMaterial::emissive_texture`.",- "emissive_texture": "The emissive map, multiplies pixels with `emissive` to get the final \"emitting\" color of a surface.",- "metallic": "How \"metallic\" the material appears, within `[0.0, 1.0]`.",- "metallic_roughness_channel": "The UV channel to use for the `StandardMaterial::metallic_roughness_texture`.",- "metallic_roughness_texture": "Metallic and roughness maps, stored as a single texture.",- "reflectance": "Specular intensity for non-metals on a linear scale of `[0.0, 1.0]`.",- "specular_tint": "A color with which to modulate the `StandardMaterial::reflectance` for non-metals.",- "diffuse_transmission": "The amount of light transmitted _diffusely_ through the material (i.e. “translucency”).",- "diffuse_transmission_channel": "The UV channel to use for the `StandardMaterial::diffuse_transmission_texture`.",- "diffuse_transmission_texture": "A map that modulates diffuse transmission via its alpha channel. Multiplied by `StandardMaterial::diffuse_transmission` to obtain the final result.",- "specular_transmission": "The amount of light transmitted _specularly_ through the material (i.e. via refraction).",- "specular_transmission_channel": "The UV channel to use for the `StandardMaterial::specular_transmission_texture`.",- "specular_transmission_texture": "A map that modulates specular transmission via its red channel. Multiplied by `StandardMaterial::specular_transmission` to obtain the final result.",- "thickness": "Thickness of the volume beneath the material surface.",- "thickness_channel": "The UV channel to use for the `StandardMaterial::thickness_texture`.",- "thickness_texture": "A map that modulates thickness via its green channel. Multiplied by `StandardMaterial::thickness` to obtain the final result.",- "ior": "The index of refraction of the material.",- "attenuation_distance": "How far, on average, light travels through the volume beneath the material's surface before being absorbed.",- "attenuation_color": "The resulting (non-absorbed) color after white light travels through the attenuation distance.",- "normal_map_channel": "The UV channel to use for the `StandardMaterial::normal_map_texture`.",- "normal_map_texture": "Used to fake the lighting of bumps and dents on a material.",- "flip_normal_map_y": "Normal map textures authored for DirectX have their y-component flipped. Set this to flip it to right-handed conventions.",- "occlusion_channel": "The UV channel to use for the `StandardMaterial::occlusion_texture`.",- "occlusion_texture": "Specifies the level of exposure to ambient light.",- "specular_channel": "The UV channel to use for the `StandardMaterial::specular_texture`.",- "specular_texture": "A map that specifies reflectance for non-metallic materials.",- "specular_tint_channel": "The UV channel to use for the `StandardMaterial::specular_tint_texture`.",- "specular_tint_texture": "A map that specifies color adjustment to be applied to the specular reflection for non-metallic materials.",- "clearcoat": "An extra thin translucent layer on top of the main PBR layer. This is typically used for painted surfaces.",- "clearcoat_channel": "The UV channel to use for the `StandardMaterial::clearcoat_texture`.",- "clearcoat_texture": "An image texture that specifies the strength of the clearcoat layer in the red channel. Values sampled from this texture are multiplied by the main `StandardMaterial::clearcoat` factor.",- "clearcoat_perceptual_roughness": "The roughness of the clearcoat material. This is specified in exactly the same way as the `StandardMaterial::perceptual_roughness`.",- "clearcoat_roughness_channel": "The UV channel to use for the `StandardMaterial::clearcoat_roughness_texture`.",- "clearcoat_roughness_texture": "An image texture that specifies the roughness of the clearcoat level in the green channel. Values from this texture are multiplied by the main `StandardMaterial::clearcoat_perceptual_roughness` factor.",- "clearcoat_normal_channel": "The UV channel to use for the `StandardMaterial::clearcoat_normal_texture`.",- "clearcoat_normal_texture": "An image texture that specifies a normal map that is to be applied to the clearcoat layer. This can be used to simulate, for example, scratches on an outer layer of varnish. Normal maps are in the same format as `StandardMaterial::normal_map_texture`.",- "anisotropy_strength": "Increases the roughness along a specific direction, so that the specular highlight will be stretched instead of being a circular lobe.",- "anisotropy_rotation": "The direction of increased roughness, in radians relative to the mesh tangent.",- "anisotropy_channel": "The UV channel to use for the `StandardMaterial::anisotropy_texture`.",- "anisotropy_texture": "An image texture that allows the `StandardMaterial::anisotropy_strength` and `StandardMaterial::anisotropy_rotation` to vary across the mesh.",- "double_sided": "Support two-sided lighting by automatically flipping the normals for \"back\" faces within the PBR lighting shader.",- "unlit": "Whether to apply only the base color to this material.",- "fog_enabled": "Whether to enable fog for this material.",- "alpha_mode": "How to apply the alpha channel of the `base_color_texture`.",- "depth_bias": "Adjust rendered depth.",- "depth_map": "The depth map used for [parallax mapping].",- "parallax_depth_scale": "How deep the offset introduced by the depth map should be.",- "parallax_mapping_method": "Which parallax mapping method to use.",- "max_parallax_layer_count": "In how many layers to split the depth maps for parallax mapping.",- "lightmap_exposure": "The exposure (brightness) level of the lightmap, if present.",- "opaque_render_method": "Render method used for opaque materials. (Where `alpha_mode` is `AlphaMode::Opaque` or `AlphaMode::Mask`)",- "deferred_lighting_pass_id": "Used for selecting the deferred lighting pass for deferred materials. Default is `DEFAULT_PBR_DEFERRED_LIGHTING_PASS_ID` for default PBR deferred lighting pass. Ignored in the case of forward materials.",- "uv_transform": "The transform applied to the UVs corresponding to `ATTRIBUTE_UV_0` on the mesh before sampling. Default is identity."+ "enabled": "Set to true to enable the UI debug overlay",+ "outline_border_box": "Show outlines for the border boxes of UI nodes",+ "outline_padding_box": "Show outlines for the padding boxes of UI nodes",+ "outline_content_box": "Show outlines for the content boxes of UI nodes",+ "outline_scrollbars": "Show outlines for the scrollbar regions of UI nodes",+ "line_width": "Width of the overlay's lines in logical pixels",+ "line_color_override": "Override Color for the overlay's lines",+ "show_hidden": "Show outlines for non-visible UI nodes",+ "show_clipped": "Show outlines for clipped sections of UI nodes",+ "ignore_border_radius": "Draw outlines with sharp corners even if the UI nodes have border radii"+ }+ },+ "bevy_ui_render::debug_overlay::UiDebugOptions": {+ "doc": "Configuration for the UI debug overlay",+ "fields": {+ "enabled": "Set to true to enable the UI debug overlay",+ "outline_border_box": "Show outlines for the border boxes of UI nodes",+ "outline_padding_box": "Show outlines for the padding boxes of UI nodes",+ "outline_content_box": "Show outlines for the content boxes of UI nodes",+ "outline_scrollbars": "Show outlines for the scrollbar regions of UI nodes",+ "line_width": "Width of the overlay's lines in logical pixels",+ "line_color_override": "Override Color for the overlay's lines",+ "show_hidden": "Show outlines for non-visible UI nodes",+ "show_clipped": "Show outlines for clipped sections of UI nodes",+ "ignore_border_radius": "Draw outlines with sharp corners even if the UI nodes have border radii"+ }+ },+ "bevy_ui_widgets::Activate": {+ "doc": "Notification sent by a button or menu item.",+ "fields": {+ "entity": "The activated entity."+ }+ },+ "bevy_ui_widgets::ControlOrientation": {+ "doc": "",+ "fields": {+ "Horizontal": "Horizontal orientation (stretching from left to right)",+ "Vertical": "Vertical orientation (stretching from top to bottom)"+ }+ },+ "bevy_ui_widgets::Scrollbar": {+ "doc": "A headless scrollbar widget, which can be used to build custom scrollbars.",+ "fields": {+ "target": "Entity being scrolled.",+ "orientation": "Whether the scrollbar is vertical or horizontal.",+ "min_thumb_length": "Minimum length of the scrollbar thumb, in pixel units, in the direction parallel to the main scrollbar axis. The scrollbar will resize the thumb entity based on the proportion of visible size to content size, but no smaller than this. This prevents the thumb from disappearing in cases where the ratio of content size to visible size is large."}},- "bevy_pbr::render::mesh::MeshPipeline": {- "doc": "All data needed to construct a pipeline for rendering 3D meshes.",+ "bevy_ui_widgets::ScrollbarThumb": {+ "doc": "This component indicates that the entity is a scrollbar thumb (the moving, draggable part of the scrollbar). This should be a child of the scrollbar entity.","fields": {- "view_layouts": "A reference to all the mesh pipeline view layouts.",- "clustered_forward_buffer_binding_type": "A reference to all the mesh pipeline view layouts.",- "mesh_layouts": "A reference to all the mesh pipeline view layouts.",- "shader": "The shader asset handle.",- "per_object_buffer_batch_size": "`MeshUniform`s are stored in arrays in buffers. If storage buffers are available, they are used and this will be `None`, otherwise uniform buffers will be used with batches of this many `MeshUniform`s, stored at dynamic offsets within the uniform buffer. Use code like this in custom shaders: ```wesl @if(PER_OBJECT_BUFFER_BATCH_SIZE) @group(1) @binding(0) var<uniform> mesh: array<Mesh, u32(constants::PER_OBJECT_BUFFER_BATCH_SIZE)>; @else @group(1) @binding(0) var<storage> mesh: array<Mesh>; ```",- "binding_arrays_are_usable": "Whether binding arrays (a.k.a. bindless textures) are usable on the current render device.",- "clustered_decals_are_usable": "Whether clustered decals are usable on the current render device.",- "skins_use_uniform_buffers": "Whether skins will use uniform buffers on account of storage buffers being unavailable on this platform.",- "metadata_use_uniform_buffers": "Whether mesh metadata will use uniform buffers on account of storage buffers being unavailable on this platform."+ "border_radius": "Border radius of the scrollbar thumb, used to update `ComputedNode::border_radius` in `UiSystems::Layout`.",+ "border": "Thickness of the thumb node's border."}},- "bevy_pbr::ssao::ScreenSpaceAmbientOcclusion": {- "doc": "Component to apply screen space ambient occlusion to a 3d camera.",+ "bevy_ui_widgets::button::ActivateOnPress": {+ "doc": "Optional marker component that indicates we want the button to activate on the pointer down event, this is used for menu buttons.",+ "fields": {}+ },+ "bevy_ui_widgets::button::Button": {+ "doc": "Headless button widget. This widget maintains a \"pressed\" state, which is used to indicate whether the button is currently being pressed by the user. It emits an `Activate` event when the button is un-pressed.",+ "fields": {}+ },+ "bevy_ui_widgets::checkbox::Checkbox": {+ "doc": "Headless widget implementation for checkboxes. The `Checked` component represents the current state of the checkbox. The widget will emit a `ValueChange<bool>` event when clicked, or when the `Enter` or `Space` key is pressed while the checkbox is focused.",+ "fields": {}+ },+ "bevy_ui_widgets::checkbox::SetChecked": {+ "doc": "Event which can be triggered on a checkbox to set the checked state. This can be used to control the checkbox via gamepad buttons or other inputs.","fields": {- "quality_level": "Quality of the SSAO effect.",- "radius": "Maximum sample distance, in view-space units.",- "constant_object_thickness": "A constant estimated thickness of objects."+ "entity": "The `Checkbox` entity to set the \"checked\" state on.",+ "checked": "Sets the `checked` state to `true` or `false`."}},- "bevy_post_process::bloom::settings::Bloom": {- "doc": "Applies a bloom effect to an HDR-enabled 2d or 3d camera.",+ "bevy_ui_widgets::checkbox::ToggleChecked": {+ "doc": "Event which can be triggered on a checkbox to toggle the checked state. This can be used to control the checkbox via gamepad buttons or other inputs.","fields": {- "intensity": "Controls the baseline of how much the image is scattered (default: 0.15).",- "low_frequency_boost": "Low frequency contribution boost. Controls how much more likely the light is to scatter completely sideways (low frequency image).",- "low_frequency_boost_curvature": "Low frequency contribution boost curve. Controls the curvature of the blend factor function making frequencies next to the lowest ones contribute more.",- "high_pass_frequency": "Tightens how much the light scatters (default: 1.0).",- "prefilter": "Controls the threshold filter used for extracting the brightest regions from the input image before blurring them and compositing back onto the original image.",- "composite_mode": "Controls whether bloom textures are blended between or added to each other. Useful if image brightening is desired and a must-change if `prefilter` is used.",- "max_mip_dimension": "Maximum size of each dimension for the largest mipchain texture used in downscaling/upscaling. Only tweak if you are seeing visual artifacts.",- "scale": "Amount to stretch the bloom on each axis. Artistic control, can be used to emulate anamorphic blur by using a large x-value. For large values, you may need to increase `Bloom::max_mip_dimension` to reduce sampling artifacts."+ "entity": "The `Entity` of the toggled `Checkbox`"}},- "bevy_post_process::dof::DepthOfField": {- "doc": "A component that enables a [depth of field] postprocessing effect when attached to a `Camera3d`, simulating the focus of a camera lens.",+ "bevy_ui_widgets::dialog::Dialog": {+ "doc": "A dialog box. When `ModalDialog` is also present it traps focus and is backed by a `crate::ModalDialogBarrier`; when absent it is a movable, non-blocking floating window.",+ "fields": {}+ },+ "bevy_ui_widgets::dialog::DialogDragHandle": {+ "doc": "Marks a region (e.g. a title bar) that drags its owning `Dialog`.",+ "fields": {}+ },+ "bevy_ui_widgets::dialog::DialogDragState": {+ "doc": "Records the owning dialog's translation when a drag begins, so each drag event can set an absolute position from the drag's cumulative distance.",+ "fields": {}+ },+ "bevy_ui_widgets::dialog::RequestClose": {+ "doc": "Event used to indicate that the dialog wants to be closed. This can happen because the user clicked on the barrier, hit the escape key, or clicked the close box in the dialog title. This event propagates so that the owner of the dialog can despawn it.","fields": {- "mode": "The appearance of the effect.",- "focal_distance": "The distance in meters to the location in focus.",- "sensor_height": "The height of the [image sensor format] in meters.",- "aperture_f_stops": "Along with the focal length, controls how much objects not in focus are blurred.",- "max_circle_of_confusion_diameter": "The maximum diameter, in pixels, that we allow a circle of confusion to be.",- "max_depth": "Objects are never considered to be farther away than this distance as far as depth of field is concerned, even if they actually are."+ "source": "The `Dialog` that triggered this event."}},- "bevy_post_process::effect_stack::chromatic_aberration::ChromaticAberration": {- "doc": "Adds colored fringes to the edges of objects in the scene.",+ "bevy_ui_widgets::list::ActiveDescendant": {+ "doc": "Component used for keyboard navigation. Individual rows should not be focusable in the normal way, as this would make tabbing through a long list tedious. Instead, we track the current \"active\" row separately using a component on the list box. The active row will be displayed with an outline.",+ "fields": {}+ },+ "bevy_ui_widgets::list::ListItem": {+ "doc": "Headless widget implementation for listbox items. These should be enclosed within a `ListBox` widget, which is responsible for the mutual exclusion logic.",+ "fields": {}+ },+ "bevy_ui_widgets::list::ReselectListRow": {+ "doc": "Notification sent by a `ListBox` when the user commits the already-selected item, either by clicking it or by pressing Space/Enter while it is the active row. No `ValueChange` is emitted in this case, since the selection did not change. Used in for example a popup select control to close the popup when reselecting","fields": {- "color_lut": "The lookup texture that determines the color gradient.",- "intensity": "The size of the streaks around the edges of objects, as a fraction of the window size.",- "max_samples": "A cap on the number of texture samples that will be performed."+ "source": "The listbox that produced this event.",+ "row": "The row that was reselected"}},- "bevy_post_process::effect_stack::vignette::Vignette": {- "doc": "Adds a gradual shading effect to the edges of the screen, drawing focus towards the center.",+ "bevy_ui_widgets::list::SetSelected": {+ "doc": "Programmatically set which entity is selected (a single row of the list) Wraps a call to send `ValueChange`. No-op if already selected or disabled","fields": {- "intensity": "Controls the strength of the darkening effect.",- "radius": "The size of the unvignetted center area.",- "smoothness": "The softness of the edge between the clear and dark areas.",- "roundness": "The shape of the vignette.",- "center": "The center of the vignette in UV coordinates (0.0 to 1.0).",- "edge_compensation": "Used to make the vignette effect fit the screen better.",- "color": "The color of the vignette."+ "entity": "The list entity",+ "row": "The child to set value to"}},- "bevy_post_process::motion_blur::MotionBlur": {- "doc": "A component that enables and configures motion blur when added to a camera.",+ "bevy_ui_widgets::menu::MenuAction": {+ "doc": "Action type for `MenuEvent`.","fields": {- "shutter_angle": "The strength of motion blur from `0.0` to `1.0`.",- "samples": "The quality of motion blur, corresponding to the number of per-pixel samples taken in each direction during blur."+ "Open": "Indicates we want to open the menu, if it is not already open, and focus the first or last item depending on the `NavAction`.",+ "Toggle": "Open the menu if it's closed, close it if it's open. Generally sent from a menu button.",+ "CloseAll": "Close the entire menu stack.",+ "FocusRoot": "Set focus to the menu button or other owner of the popup stack. This happens when the menu is closed by pressing the escape key."}},- "bevy_render::storage::ShaderBuffer": {- "doc": "A storage buffer that is prepared as a `RenderAsset` and uploaded to the GPU.",+ "bevy_ui_widgets::menu::MenuButton": {+ "doc": "Headless menu button widget. This is meant to be combined with the `Button` component, and adds a few more key codes - arrow keys to open the popup.",+ "fields": {}+ },+ "bevy_ui_widgets::menu::MenuEvent": {+ "doc": "Event used to control the state of the open menu. This bubbles upwards from the menu items and the menu container, through the portal relation, and to the menu owner entity.","fields": {- "data": "Optional data used to initialize the buffer, as well as the buffer's size.",- "label": "A label that can be used to identify this buffer in a debugger.",- "buffer_usage": "How this buffer can legally be used.",- "asset_usage": "The asset usage of the storage buffer.",- "copy_on_resize": "Whether this buffer should be copied on the GPU when resized. The buffer should have `BufferUsages::COPY_SRC | BufferUsages::COPY_DST` usages to be copyable."+ "source": "The `MenuItem` or `MenuPopup` that triggered this event.",+ "action": "The desired action in response to this event."}},- "bevy_render::view::ColorGrading": {- "doc": "Configures filmic color grading parameters to adjust the image appearance.",+ "bevy_ui_widgets::menu::MenuFocusState": {+ "doc": "Component used to manage focus on the popup. Menu popups remain open only so long as they contain focus.","fields": {- "global": "Filmic color grading values applied to the image as a whole (as opposed to individual sections, like shadows and highlights).",- "shadows": "Color grading values that are applied to the darker parts of the image.",- "midtones": "Color grading values that are applied to the parts of the image with intermediate brightness.",- "highlights": "Color grading values that are applied to the lighter parts of the image."+ "Opening": "A newly opened menu, which needs to have focus set to the first or last item depending on `NavAction`.",+ "Open": "Menu is open, and focus is set to an item within the menu",+ "Closed": "Menu is no longer visible, and can be cleaned up."}},- "bevy_render::view::Tonemapping": {- "doc": "Optionally enables a tonemapping shader that attempts to map linear input stimulus into a perceptually uniform image for a given `Camera` entity.",+ "bevy_ui_widgets::menu::MenuItem": {+ "doc": "Component that defines a menu item.",+ "fields": {}+ },+ "bevy_ui_widgets::menu::MenuLayout": {+ "doc": "Specifies the layout direction of the menu, for keyboard navigation","fields": {- "None": "Bypass tonemapping. No color grading, exposure, or dither applies.",- "Linear": "Identity tone curve. `ColorGrading`, exposure, and `DebandDither` still apply. The output is unbounded display-linear.",- "Reinhard": "Suffers from lots hue shifting, brights don't desaturate naturally. Bright primaries and secondaries don't desaturate at all.",- "ReinhardLuminance": "Suffers from hue shifting. Brights don't desaturate much at all across the spectrum.",- "AcesFitted": "Same base implementation that Godot 4.0 uses for Tonemap ACES. <https://github.com/TheRealMJP/BakingLab/blob/master/BakingLab/ACES.hlsl> Not neutral, has a very specific aesthetic, intentional and dramatic hue shifting. Bright greens and reds turn orange. Bright blues turn magenta. Significantly increased contrast. Brights desaturate across the spectrum.",- "AgX": "By Troy Sobotka <https://github.com/sobotka/AgX> Very neutral. Image is somewhat desaturated when compared to other tonemappers. Little to no hue shifting. Subtle Abney shifting. NOTE: Requires the `tonemapping_luts` cargo feature.",- "SomewhatBoringDisplayTransform": "By Tomasz Stachowiak Has little hue shifting in the darks and mids, but lots in the brights. Brights desaturate across the spectrum. Is sort of between Reinhard and `ReinhardLuminance`. Conceptually similar to reinhard-jodie. Designed as a compromise if you want e.g. decent skin tones in low light, but can't afford to re-do your VFX to look good without hue shifting.",- "TonyMcMapface": "Current Bevy default. By Tomasz Stachowiak <https://github.com/h3r2tic/tony-mc-mapface> Very neutral. Subtle but intentional hue shifting. Brights desaturate across the spectrum. Comment from author: Tony is a display transform intended for real-time applications such as games. It is intentionally boring, does not increase contrast or saturation, and stays close to the input stimulus where compression isn't necessary. Brightness-equivalent luminance of the input stimulus is compressed. The non-linearity resembles Reinhard. Color hues are preserved during compression, except for a deliberate Bezold–Brücke shift. To avoid posterization, selective desaturation is employed, with care to avoid the Abney effect. NOTE: Requires the `tonemapping_luts` cargo feature.",- "BlenderFilmic": "Default Filmic Display Transform from blender. Somewhat neutral. Suffers from hue shifting. Brights desaturate across the spectrum. NOTE: Requires the `tonemapping_luts` cargo feature.",- "KhronosPbrNeutral": "Despite its name, it is not considered to be neutral. Highly saturated colors and tends to produce a very high contrast image. Suffers from significant Abney shifting, and tends to crush grays and desaturated colors. Designed for e-commerce to faithfully reproduce the colors of brand's logos when used with low brightness grayscale lighting. See the KhronosGroup spec for more information."+ "Column": "A vertical stack. Up and down arrows to move between items.",+ "Row": "A horizontal row. Left and right arrows to move between items.",+ "Grid": "A 2D grid. Arrow keys are not mapped, you'll need to write your own observer."}},- "bevy_sprite::sprite::Sprite": {- "doc": "Describes a sprite to be rendered to a 2D camera",+ "bevy_ui_widgets::menu::MenuPopup": {+ "doc": "Component that defines a popup menu container.","fields": {- "image": "The image used to render the sprite",- "texture_atlas": "The (optional) texture atlas used to render the sprite",- "color": "The sprite's color tint",- "flip_x": "Flip the sprite along the `X` axis",- "flip_y": "Flip the sprite along the `Y` axis",- "custom_size": "An optional custom size for the sprite that will be used when rendering, instead of the size of the sprite's image",- "rect": "An optional rectangle representing the region of the sprite's image to render, instead of rendering the full image. This is an easy one-off alternative to using a `TextureAtlas`.",- "image_mode": "How the sprite's image will be scaled.",- "alpha_mode": "The sprite's alpha mode, defaulting to `Blend`."+ "layout": "The layout orientation of the menu"}},- "bevy_sprite::sprite::SpriteImageMode": {- "doc": "Controls how the image is altered when scaled.",+ "bevy_ui_widgets::modal::ModalDialog": {+ "doc": "Component that defines a modal dialog box.",+ "fields": {}+ },+ "bevy_ui_widgets::modal::ModalDialogBarrier": {+ "doc": "Component that defines the barrier element that covers the screen behind the dialog box.",+ "fields": {}+ },+ "bevy_ui_widgets::popover::Popover": {+ "doc": "Component which is inserted into a popover element to make it dynamically position relative to an parent element.","fields": {- "Auto": "The sprite will take on the size of the image by default, and will be stretched or shrunk if `Sprite::custom_size` is set.",- "Scale": "The texture will be scaled to fit the rect bounds defined in `Sprite::custom_size`. Otherwise no scaling will be applied.",- "Sliced": "The texture will be cut in 9 slices, keeping the texture in proportions on resize",- "Tiled": "The texture will be repeated if stretched beyond `stretched_value`"+ "positions": "List of potential positions for the popover element relative to the parent.",+ "window_margin": "Indicates how close to the window edge the popup is allowed to go."}},- "bevy_sprite::text2d::Text2dShadow": {- "doc": "Adds a shadow behind `Text2d` text",+ "bevy_ui_widgets::popover::PopoverAlign": {+ "doc": "How the popover element should be aligned to the parent element. The alignment will be along an axis that is perpendicular to the direction of the popover side. So for example, if the popup is positioned below the parent, then the `PopoverAlign` variant controls the horizontal alignment of the popup.","fields": {- "offset": "Shadow displacement With a value of zero the shadow will be hidden directly behind the text",- "color": "Color of the shadow"+ "Start": "The starting edge of the popover element should be aligned to the starting edge of the parent.",+ "Center": "The center of the popover element should be aligned to the center of the parent.",+ "End": "The ending edge of the popover element should be aligned to the ending edge of the parent."}},- "bevy_sprite_render::mesh2d::color_material::ColorMaterial": {- "doc": "A 2d material that renders 2d meshes with a texture tinted by a uniform color",+ "bevy_ui_widgets::popover::PopoverPlacement": {+ "doc": "Indicates a possible position of a popover element relative to it's parent. You can specify multiple possible positions; the positioning code will check to see if there is sufficient space to display the popup without being clipped by the window edge. If any position has sufficient room, it will pick the first one; if there are none, then it will pick the least bad one.",+ "fields": {+ "side": "The side of the parent entity where the popover element should be placed.",+ "align": "How the popover element should be aligned to the parent entity.",+ "gap": "The size of the gap between the parent and the popover element, in logical pixels. This will offset the popover along the direction of `side`."+ }+ },+ "bevy_ui_widgets::popover::PopoverSide": {+ "doc": "Which side of the parent element the popover element should be placed.",+ "fields": {+ "Top": "The popover element should be placed above the parent.",+ "Bottom": "The popover element should be placed below the parent.",+ "Left": "The popover element should be placed to the left of the parent.",+ "Right": "The popover element should be placed to the right of the parent."+ }+ },+ "bevy_ui_widgets::radio::RadioButton": {+ "doc": "Headless widget implementation for radio buttons. They can be used independently, but enclosing them in a `RadioGroup` widget allows them to behave as a single, mutually exclusive unit.","fields": {}},- "bevy_sprite_render::mesh2d::material::MeshMaterial2d": {- "doc": "A material used for rendering a `Mesh2d`.",+ "bevy_ui_widgets::radio::RadioGroup": {+ "doc": "Headless widget implementation for a \"radio button group\". This component is used to group multiple `RadioButton` components together, allowing them to behave as a single unit. It implements the tab navigation logic and keyboard shortcuts for radio buttons.","fields": {}},- "bevy_sprite_render::sprite_mesh::sprite_extended_material::SpriteMaterial": {- "doc": "Allows extending the material of a `Sprite` using a `MaterialExtension2d`.",+ "bevy_ui_widgets::scrollarea::ScrollArea": {+ "doc": "Marker component to enable trackpad / mouse wheel scrolling. This should be placed on an entity that has overflow: scroll.","fields": {}},- "bevy_text::EditableText": {- "doc": "A plain-text text input field.",+ "bevy_ui_widgets::scrollbar::ControlOrientation": {+ "doc": "","fields": {- "viewport": "The bounds of the visible portion of the text layout.",- "pending_edits": "Text edit actions that have been requested but not yet applied.",- "cursor_margin": "Cursor reveal margins as fractions of the viewport size.",- "cursor_width": "Cursor width, relative to font size",- "cursor_blink_period": "Cursor blink period in seconds.",- "max_characters": "Maximum number of characters the text input can contain.",- "visible_lines": "Sets the input’s height in number of visible lines.",- "visible_width": "Sets the input's width in number of visible glyphs. For proportional fonts the final size is the given value times the \"0\" advance width.",- "allow_newlines": "Allow new lines"+ "Horizontal": "Horizontal orientation (stretching from left to right)",+ "Vertical": "Vertical orientation (stretching from top to bottom)"}},- "bevy_text::FontAtlas": {- "doc": "Rasterized glyphs are cached, stored in, and retrieved from, a `FontAtlas`.",+ "bevy_ui_widgets::scrollbar::Scrollbar": {+ "doc": "A headless scrollbar widget, which can be used to build custom scrollbars.","fields": {- "dynamic_texture_atlas_builder": "Used to update the `TextureAtlasLayout`.",- "glyph_to_atlas_index": "A mapping between subpixel-offset glyphs and their `GlyphAtlasLocation`.",- "texture_atlas": "The layout for the font atlas.",- "texture": "The texture where this font atlas is located"+ "target": "Entity being scrolled.",+ "orientation": "Whether the scrollbar is vertical or horizontal.",+ "min_thumb_length": "Minimum length of the scrollbar thumb, in pixel units, in the direction parallel to the main scrollbar axis. The scrollbar will resize the thumb entity based on the proportion of visible size to content size, but no smaller than this. This prevents the thumb from disappearing in cases where the ratio of content size to visible size is large."}},- "bevy_text::FontAtlasSet": {- "doc": "Set of rasterized fonts stored in `FontAtlas`es.",+ "bevy_ui_widgets::scrollbar::ScrollbarDragState": {+ "doc": "Component used to manage the state of a scrollbar during dragging. This component is inserted on the thumb entity.",+ "fields": {+ "dragging": "Whether the scrollbar is currently being dragged."+ }+ },+ "bevy_ui_widgets::scrollbar::ScrollbarThumb": {+ "doc": "This component indicates that the entity is a scrollbar thumb (the moving, draggable part of the scrollbar). This should be a child of the scrollbar entity.",+ "fields": {+ "border_radius": "Border radius of the scrollbar thumb, used to update `ComputedNode::border_radius` in `UiSystems::Layout`.",+ "border": "Thickness of the thumb node's border."+ }+ },+ "bevy_ui_widgets::slider::SetSliderValue": {+ "doc": "An `EntityEvent` that can be triggered on a slider to modify its value (it will actually trigger a `ValueChange` event, hooking up a corresponding change to `SliderValue` is still the app's responsibility, see `slider_self_update`). This can be used to control the slider via gamepad buttons or other inputs. The value will be clamped when the event is processed.",+ "fields": {+ "entity": "The slider entity to change.",+ "change": "The change to apply to the slider entity."+ }+ },+ "bevy_ui_widgets::slider::Slider": {+ "doc": "A headless slider widget, which can be used to build custom sliders. Sliders have a value (represented by the `SliderValue` component) and a range (represented by `SliderRange`). An optional step size can be specified via `SliderStep`, and you can control the rounding during dragging with `SliderPrecision`.",+ "fields": {+ "track_click": "Set the track-clicking behavior for this slider.",+ "orientation": "Set the slider orientation. Defaults to auto-detection based on dimensions."+ }+ },+ "bevy_ui_widgets::slider::SliderDragState": {+ "doc": "Component used to manage the state of a slider during dragging.",+ "fields": {+ "dragging": "Whether the slider is currently being dragged."+ }+ },+ "bevy_ui_widgets::slider::SliderOrientation": {+ "doc": "Controls the orientation of the slider.",+ "fields": {+ "Auto": "Automatically detect orientation based on the slider's dimensions. If height > width, the slider is vertical; otherwise, horizontal.",+ "Horizontal": "Force horizontal orientation regardless of dimensions.",+ "Vertical": "Force vertical orientation regardless of dimensions."+ }+ },+ "bevy_ui_widgets::slider::SliderPrecision": {+ "doc": "A component which controls the rounding of the slider value during dragging.","fields": {}},- "bevy_text::FontCx": {- "doc": "A font database and cache, used for font family resolution and text layout.",+ "bevy_ui_widgets::slider::SliderRange": {+ "doc": "A component which represents the allowed range of the slider value. Defaults to 0.0..=1.0.",+ "fields": {}+ },+ "bevy_ui_widgets::slider::SliderStep": {+ "doc": "Defines the amount by which to increment or decrement the slider value when using keyboard shortcuts. Defaults to 1.0.",+ "fields": {}+ },+ "bevy_ui_widgets::slider::SliderThumb": {+ "doc": "Marker component that identifies which descendant element is the slider thumb.",+ "fields": {}+ },+ "bevy_ui_widgets::slider::SliderValue": {+ "doc": "A component which stores the current value of the slider.",+ "fields": {}+ },+ "bevy_ui_widgets::slider::SliderValueChange": {+ "doc": "The type of slider value change to apply in `SetSliderValue`.","fields": {- "context": "A font database/cache (wrapper around a Fontique `Collection` and `SourceCache`)."+ "Absolute": "Set the slider value to a specific value.",+ "Relative": "Add a delta to the slider value.",+ "RelativeStep": "Add a delta to the slider value, multiplied by the step size."}},- "bevy_text::FontFeatureTag": {- "doc": "An OpenType font feature tag.",+ "bevy_ui_widgets::slider::TrackClick": {+ "doc": "Defines how the slider should behave when you click on the track (not the thumb).",+ "fields": {+ "Drag": "Clicking on the track lets you drag to edit the value, just like clicking on the thumb.",+ "Step": "Clicking on the track increments or decrements the slider by `SliderStep`.",+ "Snap": "Clicking on the track snaps the value to the clicked position."+ }+ },+ "bevy_ui_widgets::tabs::SelectedTab": {+ "doc": "The selected `Tab` within a `TabList`.","fields": {}},- "bevy_text::FontSource": {- "doc": "Determines how the font face for a text sections is selected.",+ "bevy_ui_widgets::tabs::Tab": {+ "doc": "A headless tab header.",+ "fields": {}+ },+ "bevy_ui_widgets::tabs::TabActivation": {+ "doc": "Determines whether moving keyboard focus also requests tab selection.","fields": {- "Handle": "Use a specific font face referenced by a `Font` asset handle.",- "Family": "Resolve the font by family name using the font database.",- "Families": "Font family list in CSS format.",- "List": "Ordered list of font sources.",- "Generic": "Resolve the font using a generic font family."+ "Manual": "Enter or Space requests selection of the focused tab.",+ "Automatic": "Moving focus with a navigation key requests selection of the focused tab."}},- "bevy_text::FontVariationTag": {- "doc": "An OpenType font variation tag.",+ "bevy_ui_widgets::tabs::TabList": {+ "doc": "Headless tab-strip behavior and policy.",+ "fields": {+ "orientation": "The axis used by arrow-key navigation.",+ "activation": "Whether keyboard navigation requests selection immediately."+ }+ },+ "bevy_ui_widgets::text_input::SelectAllOnFocus": {+ "doc": "Marker component for `EditableText` widgets that should select all text on focus.","fields": {}},- "bevy_text::FontWidth": {- "doc": "The visual width of a font as a ratio of its normal width, typically 0.5 to 2.0. `<https://docs.microsoft.com/en-us/typography/opentype/spec/os2#uswidthclass>`",+ "bevy_ui_widgets::text_input::TextInput": {+ "doc": "Editable text widget.","fields": {}},- "bevy_text::GenericFontFamily": {- "doc": "Generic font families that are resolved through Parley's font database.",+ "bevy_window::cursor::CursorIcon": {+ "doc": "Insert into a window entity to set the cursor for that window.","fields": {- "Serif": "Fonts with serifs — small decorative strokes at the ends of letterforms.",- "SansSerif": "Fonts without serifs.",- "Cursive": "Fonts that use a cursive or handwritten style.",- "Fantasy": "Decorative or expressive fonts.",- "Monospace": "Fonts in which all glyphs have the same fixed advance width.",- "SystemUi": "The default user interface system font.",- "UiSerif": "Alternative serif font for user interfaces.",- "UiSansSerif": "Alternative sans-serif font for user interfaces.",- "UiMonospace": "Alternative monospace font for user interfaces.",- "UiRounded": "Fonts that have rounded features.",- "Emoji": "Fonts that are specifically designed to render emoji.",- "Math": "This is for the particular stylistic concerns of representing mathematics: superscript and subscript, brackets that cross several lines, nesting expressions, and double struck glyphs with distinct meanings.",- "FangSong": "A particular style of Chinese characters that are between serif-style Song and cursive-style Kai forms. This style is often used for government documents."+ "Custom": "Custom cursor image.",+ "System": "System provided cursor icon."+ }+ },+ "bevy_window::cursor::custom_cursor::CustomCursor": {+ "doc": "Custom cursor image data.",+ "fields": {+ "Image": "Use an image as the cursor.",+ "Url": "Use a URL to an image as the cursor. Note that this currently only works on the web."+ }+ },+ "bevy_window::cursor::custom_cursor::CustomCursorImage": {+ "doc": "A custom cursor created from an image.",+ "fields": {+ "handle": "Handle to the image to use as the cursor. The image must be in 8 bit int or 32 bit float rgba. PNG images work well for this.",+ "texture_atlas": "An optional texture atlas used to render the image.",+ "flip_x": "Whether the image should be flipped along its x-axis.",+ "flip_y": "Whether the image should be flipped along its y-axis.",+ "rect": "An optional rectangle representing the region of the image to render, instead of rendering the full image. This is an easy one-off alternative to using a `TextureAtlas`.",+ "hotspot": "X and Y coordinates of the hotspot in pixels. The hotspot must be within the image bounds."+ }+ },+ "bevy_window::cursor::custom_cursor::CustomCursorUrl": {+ "doc": "A custom cursor created from a URL. Note that this currently only works on the web.",+ "fields": {+ "url": "Web URL to an image to use as the cursor. PNGs are preferred. Cursor creation can fail if the image is invalid or not reachable.",+ "hotspot": "X and Y coordinates of the hotspot in pixels. The hotspot must be within the image bounds."+ }+ },+ "bevy_window::cursor::system_cursor::SystemCursorIcon": {+ "doc": "The icon to display for a window.",+ "fields": {+ "Default": "The platform-dependent default cursor. Often rendered as arrow.",+ "ContextMenu": "A context menu is available for the object under the cursor. Often rendered as an arrow with a small menu-like graphic next to it.",+ "Help": "Help is available for the object under the cursor. Often rendered as a question mark or a balloon.",+ "Pointer": "The cursor is a pointer that indicates a link. Often rendered as the backside of a hand with the index finger extended.",+ "Progress": "A progress indicator. The program is performing some processing, but is different from `SystemCursorIcon::Wait` in that the user may still interact with the program.",+ "Wait": "Indicates that the program is busy and the user should wait. Often rendered as a watch or hourglass.",+ "Cell": "Indicates that a cell or set of cells may be selected. Often rendered as a thick plus-sign with a dot in the middle.",+ "Crosshair": "A simple crosshair (e.g., short line segments resembling a \"+\" sign). Often used to indicate a two dimensional bitmap selection mode.",+ "Text": "Indicates text that may be selected. Often rendered as an I-beam.",+ "VerticalText": "Indicates vertical-text that may be selected. Often rendered as a horizontal I-beam.",+ "Alias": "Indicates an alias of/shortcut to something is to be created. Often rendered as an arrow with a small curved arrow next to it.",+ "Copy": "Indicates something is to be copied. Often rendered as an arrow with a small plus sign next to it.",+ "Move": "Indicates something is to be moved.",+ "NoDrop": "Indicates that the dragged item cannot be dropped at the current cursor location. Often rendered as a hand or pointer with a small circle with a line through it.",+ "NotAllowed": "Indicates that the requested action will not be carried out. Often rendered as a circle with a line through it.",+ "Grab": "Indicates that something can be grabbed (dragged to be moved). Often rendered as the backside of an open hand.",+ "Grabbing": "Indicates that something is being grabbed (dragged to be moved). Often rendered as the backside of a hand with fingers closed mostly out of view.",+ "EResize": "The east border to be moved.",+ "NResize": "The north border to be moved.",+ "NeResize": "The north-east corner to be moved.",+ "NwResize": "The north-west corner to be moved.",+ "SResize": "The south border to be moved.",+ "SeResize": "The south-east corner to be moved.",+ "SwResize": "The south-west corner to be moved.",+ "WResize": "The west border to be moved.",+ "EwResize": "The east and west borders to be moved.",+ "NsResize": "The south and north borders to be moved.",+ "NeswResize": "The north-east and south-west corners to be moved.",+ "NwseResize": "The north-west and south-east corners to be moved.",+ "ColResize": "Indicates that the item/column can be resized horizontally. Often rendered as arrows pointing left and right with a vertical bar separating them.",+ "RowResize": "Indicates that the item/row can be resized vertically. Often rendered as arrows pointing up and down with a horizontal bar separating them.",+ "AllScroll": "Indicates that the something can be scrolled in any direction. Often rendered as arrows pointing up, down, left, and right with a dot in the middle.",+ "ZoomIn": "Indicates that something can be zoomed in. Often rendered as a magnifying glass with a \"+\" in the center of the glass.",+ "ZoomOut": "Indicates that something can be zoomed in. Often rendered as a magnifying glass with a \"-\" in the center of the glass."}},- "bevy_text::TextCursorStyle": {- "doc": "Controls text cursor appearance.",+ "bevy_window::event::AppLifecycle": {+ "doc": "Application lifetime events","fields": {- "color": "Color of the cursor",- "selection_color": "Background color of selected text",- "unfocused_selection_color": "Background color of unfocused selected text",- "selected_text_color": "If some, overrides the color of selected text",- "selection_radius": "Corner radius of selection highlight rectangles, normalized relative to the selection height."+ "Idle": "The application is not started yet.",+ "Running": "The application is running.",+ "WillSuspend": "The application is going to be suspended. Applications have one frame to react to this event before being paused in the background.",+ "Suspended": "The application was suspended.",+ "WillResume": "The application is going to be resumed. Applications have one extra frame to react to this event before being fully resumed."}},- "bevy_text::TextFont": {- "doc": "`TextFont` determines the style of a text span within a `ComputedTextBlock`, specifically the font face, the font size, the line height, and the antialiasing method.",+ "bevy_window::event::CursorEntered": {+ "doc": "An event that is sent whenever the user's cursor enters a window.","fields": {- "font": "Specifies the font face used for this text section.",- "font_size": "The vertical height of rasterized glyphs in the font atlas in pixels.",- "weight": "How thick or bold the strokes of a font appear.",- "width": "How condensed or expanded the glyphs appear horizontally.",- "style": "The slant style of a font face: normal, italic, or oblique.",- "font_smoothing": "The antialiasing method to use when rendering text.",- "font_features": "OpenType features for .otf fonts that support them.",- "font_variations": "OpenType variations for variable fonts that support them."+ "window": "Window that the cursor entered."}},- "bevy_text::text::TextSpan": {- "doc": "A span of text in a tree of spans.",- "fields": {}- },- "bevy_transform::components::transform::Transform": {- "doc": "Describe the position of an entity. If the entity has a parent, the position is relative to its parent position.",+ "bevy_window::event::CursorLeft": {+ "doc": "An event that is sent whenever the user's cursor leaves a window.","fields": {- "translation": "Position of the entity. In 2d, the last value of the `Vec3` is used for z-ordering.",- "rotation": "Rotation of the entity.",- "scale": "Scale of the entity."+ "window": "Window that the cursor left."}},- "bevy_ui::BoxShadow": {- "doc": "List of shadows to draw for a `Node`.",- "fields": {}+ "bevy_window::event::CursorMoved": {+ "doc": "An event reporting that the mouse cursor has moved inside a window.",+ "fields": {+ "window": "Window that the cursor moved inside.",+ "position": "The cursor position in logical pixels."+ }},- "bevy_ui::GridAutoFlow": {- "doc": "Controls whether grid items are placed row-wise or column-wise as well as whether the sparse or dense packing algorithm is used.",+ "bevy_window::event::FileDragAndDrop": {+ "doc": "Events related to files being dragged and dropped on a window.","fields": {- "Row": "Items are placed by filling each row in turn, adding new rows as necessary.",- "Column": "Items are placed by filling each column in turn, adding new columns as necessary.",- "RowDense": "Combines `Row` with the dense packing algorithm.",- "ColumnDense": "Combines `Column` with the dense packing algorithm."+ "DroppedFile": "File is being dropped into a window.",+ "HoveredFile": "File is currently being hovered over a window.",+ "HoveredFileCanceled": "File hovering was canceled."}},- "bevy_ui::GridPlacement": {- "doc": "Represents the position of a grid item in a single axis.",- "fields": {}+ "bevy_window::event::Ime": {+ "doc": "An Input Method Editor event.",+ "fields": {+ "Preedit": "Notifies when a new composing text should be set at the cursor position.",+ "Commit": "Notifies when text should be inserted into the editor widget.",+ "Enabled": "Notifies when the IME was enabled.",+ "Disabled": "Notifies when the IME was disabled."+ }},- "bevy_ui::GridTrack": {- "doc": "A `GridTrack` is a Row or Column of a CSS Grid. This struct specifies what size the track should be. See below for the different \"track sizing functions\" you can specify.",+ "bevy_window::event::RequestRedraw": {+ "doc": "An event that indicates all of the application's windows should be redrawn, even if their control flow is set to `Wait` and there have been no window events.","fields": {}},- "bevy_ui::GridTrackRepetition": {- "doc": "How many times to repeat a repeated grid track",+ "bevy_window::event::WindowBackendScaleFactorChanged": {+ "doc": "An event that indicates a window's OS-reported scale factor has changed.","fields": {- "Count": "Repeat the track fixed number of times",- "AutoFill": "Repeat the track to fill available space",- "AutoFit": "Repeat the track to fill available space but collapse any tracks that do not end up with an item placed in them."+ "window": "Window that had its scale factor changed by the backend.",+ "scale_factor": "The new scale factor."}},- "bevy_ui::IgnoreScroll": {- "doc": "Controls whether a UI element ignores its parent's `ScrollPosition` along specific axes.",- "fields": {}- },- "bevy_ui::MaxTrackSizingFunction": {- "doc": "",+ "bevy_window::event::WindowCloseRequested": {+ "doc": "An event that is sent whenever the operating systems requests that a window be closed. This will be sent when the close button of the window is pressed.","fields": {- "Px": "Track maximum size should be a fixed pixel value",- "Percent": "Track maximum size should be a percentage value",- "Em": "Track maximum size should be a multiple of the grid container's font size.",- "Rem": "Track maximum size should be a multiple of the root font size.",- "MinContent": "Track maximum size should be content sized under a min-content constraint",- "MaxContent": "Track maximum size should be content sized under a max-content constraint",- "FitContentPx": "Track maximum size should be sized according to the fit-content formula with a fixed pixel limit",- "FitContentPercent": "Track maximum size should be sized according to the fit-content formula with a percentage limit",- "Auto": "Track maximum size should be automatically sized",- "Fraction": "The dimension as a fraction of the total available grid space (`fr` units in CSS) Specified value is the numerator of the fraction. Denominator is the sum of all fractions specified in that grid dimension.",- "VMin": "Track maximum size should be a percent of the viewport's smaller dimension.",- "VMax": "Track maximum size should be a percent of the viewport's smaller dimension.",- "Vh": "Track maximum size should be a percent of the viewport's height dimension.",- "Vw": "Track maximum size should be a percent of the viewport's width dimension."+ "window": "Window to close."}},- "bevy_ui::MinTrackSizingFunction": {- "doc": "",+ "bevy_window::event::WindowCreated": {+ "doc": "An event that is sent whenever a new window is created.","fields": {- "Px": "Track minimum size should be a fixed pixel value",- "Percent": "Track minimum size should be a percentage value",- "Em": "Track minimum size should be a multiple of the grid container's font size.",- "Rem": "Track minimum size should be a multiple of the root font size.",- "MinContent": "Track minimum size should be content sized under a min-content constraint",- "MaxContent": "Track minimum size should be content sized under a max-content constraint",- "Auto": "Track minimum size should be automatically sized",- "VMin": "Track minimum size should be a percent of the viewport's smaller dimension.",- "VMax": "Track minimum size should be a percent of the viewport's larger dimension.",- "Vh": "Track minimum size should be a percent of the viewport's height dimension.",- "Vw": "Track minimum size should be a percent of the viewport's width dimension."+ "window": "Window that has been created."}},- "bevy_ui::Node": {- "doc": "The base component for UI entities. It describes UI layout and style properties.",+ "bevy_window::event::WindowDestroyed": {+ "doc": "An event that is sent whenever a window is destroyed by the underlying window system.","fields": {- "display": "Which layout algorithm to use when laying out this node's contents: - `Display::Flex`: Use the Flexbox layout algorithm - `Display::Grid`: Use the CSS Grid layout algorithm - `Display::None`: Hide this node and perform layout as if it does not exist.",- "box_sizing": "Which part of a Node's box length styles like width and height control - `BoxSizing::BorderBox`: They refer to the \"border box\" size (size including padding and border) - `BoxSizing::ContentBox`: They refer to the \"content box\" size (size excluding padding and border)",- "position_type": "Whether a node should be laid out in-flow with, or independently of its siblings: - `PositionType::Relative`: Layout this node in-flow with other nodes using the usual (flexbox/grid) layout algorithm. - `PositionType::Absolute`: Layout this node on top and independently of other nodes.",- "overflow": "Whether overflowing content should be displayed or clipped.",- "scrollbar_width": "How much space in logical pixels should be reserved for scrollbars when overflow is set to scroll or auto on an axis.",- "overflow_clip_margin": "How the bounds of clipped content should be determined",- "left": "The horizontal position of the left edge of the node. - For relatively positioned nodes, this is relative to the node's position as computed during regular layout. - For absolutely positioned nodes, this is relative to the *parent* node's bounding box.",- "right": "The horizontal position of the right edge of the node. - For relatively positioned nodes, this is relative to the node's position as computed during regular layout. - For absolutely positioned nodes, this is relative to the *parent* node's bounding box.",- "top": "The vertical position of the top edge of the node. - For relatively positioned nodes, this is relative to the node's position as computed during regular layout. - For absolutely positioned nodes, this is relative to the *parent* node's bounding box.",- "bottom": "The vertical position of the bottom edge of the node. - For relatively positioned nodes, this is relative to the node's position as computed during regular layout. - For absolutely positioned nodes, this is relative to the *parent* node's bounding box.",- "width": "The ideal width of the node. `width` is used when it is within the bounds defined by `min_width` and `max_width`.",- "height": "The ideal height of the node. `height` is used when it is within the bounds defined by `min_height` and `max_height`.",- "min_width": "The minimum width of the node. `min_width` is used if it is greater than `width` and/or `max_width`.",- "min_height": "The minimum height of the node. `min_height` is used if it is greater than `height` and/or `max_height`.",- "max_width": "The maximum width of the node. `max_width` is used if it is within the bounds defined by `min_width` and `width`.",- "max_height": "The maximum height of the node. `max_height` is used if it is within the bounds defined by `min_height` and `height`.",- "aspect_ratio": "The aspect ratio of the node (defined as `width / height`)",- "align_items": "Used to control how each individual item is aligned by default within the space they're given. - For Flexbox containers, sets default cross axis alignment of the child items. - For CSS Grid containers, controls block (vertical) axis alignment of children of this grid container within their grid areas.",- "justify_items": "Used to control how each individual item is aligned by default within the space they're given. - For Flexbox containers, this property has no effect. See `justify_content` for main axis alignment of flex items. - For CSS Grid containers, sets default inline (horizontal) axis alignment of child items within their grid areas.",- "align_self": "Used to control how the specified item is aligned within the space it's given. - For Flexbox items, controls cross axis alignment of the item. - For CSS Grid items, controls block (vertical) axis alignment of a grid item within its grid area.",- "justify_self": "Used to control how the specified item is aligned within the space it's given. - For Flexbox items, this property has no effect. See `justify_content` for main axis alignment of flex items. - For CSS Grid items, controls inline (horizontal) axis alignment of a grid item within its grid area.",- "align_content": "Used to control how items are distributed. - For Flexbox containers, controls alignment of lines if `flex_wrap` is set to `FlexWrap::Wrap` and there are multiple lines of items. - For CSS Grid containers, controls alignment of grid rows.",- "justify_content": "Used to control how items are distributed. - For Flexbox containers, controls alignment of items in the main axis. - For CSS Grid containers, controls alignment of grid columns.",- "direction": "Sets the inline axis direction (LTR or RTL) used for layout.",- "margin": "The amount of space around a node outside its border.",- "padding": "The amount of space between the edges of a node and its contents.",- "border": "The amount of space between the margins of a node and its padding.",- "border_radius": "Used to add rounded corners to a UI node. You can set a UI node to have uniformly rounded corners or specify different radii for each corner. If a given radius exceeds half the length of the smallest dimension between the node's height or width, the radius will calculated as half the smallest dimension.",- "flex_direction": "Whether a Flexbox container should be a row or a column. This property has no effect on Grid nodes.",- "flex_wrap": "Whether a Flexbox container should wrap its contents onto multiple lines if they overflow. This property has no effect on Grid nodes.",- "flex_grow": "Defines how much a flexbox item should grow if there's space available. Defaults to 0 (don't grow at all).",- "flex_shrink": "Defines how much a flexbox item should shrink if there's not enough space available. Defaults to 1.",- "flex_basis": "The initial length of a flexbox in the main axis, before flex growing/shrinking properties are applied.",- "row_gap": "The size of the gutters between items in a vertical flexbox layout or between rows in a grid layout.",- "column_gap": "The size of the gutters between items in a horizontal flexbox layout or between column in a grid layout.",- "grid_auto_flow": "Controls whether automatically placed grid items are placed row-wise or column-wise as well as whether the sparse or dense packing algorithm is used. Only affects Grid layouts.",- "grid_template_rows": "Defines the number of rows a grid has and the sizes of those rows. If grid items are given explicit placements then more rows may be implicitly generated by items that are placed out of bounds. The sizes of those rows are controlled by `grid_auto_rows` property.",- "grid_template_columns": "Defines the number of columns a grid has and the sizes of those columns. If grid items are given explicit placements then more columns may be implicitly generated by items that are placed out of bounds. The sizes of those columns are controlled by `grid_auto_columns` property.",- "grid_auto_rows": "Defines the size of implicitly created rows. Rows are created implicitly when grid items are given explicit placements that are out of bounds of the rows explicitly created using `grid_template_rows`.",- "grid_auto_columns": "Defines the size of implicitly created columns. Columns are created implicitly when grid items are given explicit placements that are out of bounds of the columns explicitly created using `grid_template_columns`.",- "grid_row": "The row in which a grid item starts and how many rows it spans.",- "grid_column": "The column in which a grid item starts and how many columns it spans."+ "window": "Window that has been destroyed."}},- "bevy_ui::RepeatedGridTrack": {- "doc": "Represents a *possibly* repeated `GridTrack`.",- "fields": {}+ "bevy_window::event::WindowEvent": {+ "doc": "Wraps all `bevy_window` and `bevy_input` events in a common enum.",+ "fields": {+ "AppLifecycle": "An application lifecycle event.",+ "CursorEntered": "The user's cursor has entered a window.",+ "CursorLeft": "The user's cursor has left a window.",+ "CursorMoved": "The user's cursor has moved inside a window.",+ "FileDragAndDrop": "A file drag and drop event.",+ "Ime": "An Input Method Editor event.",+ "RequestRedraw": "A redraw of all of the application's windows has been requested.",+ "WindowBackendScaleFactorChanged": "The window's OS-reported scale factor has changed.",+ "WindowCloseRequested": "The OS has requested that a window be closed.",+ "WindowCreated": "A new window has been created.",+ "WindowDestroyed": "A window has been destroyed by the underlying windowing system.",+ "WindowFocused": "A window has received or lost focus.",+ "WindowMoved": "A window has been moved.",+ "WindowOccluded": "A window has started or stopped being occluded.",+ "WindowResized": "A window's logical size has changed.",+ "WindowScaleFactorChanged": "A window's scale factor has changed.",+ "WindowThemeChanged": "Sent for windows that are using the system theme when the system theme changes.",+ "MouseButtonInput": "The state of a mouse button has changed.",+ "MouseMotion": "The physical position of a pointing device has changed.",+ "MouseWheel": "The mouse wheel has moved.",+ "PinchGesture": "A two finger pinch gesture.",+ "RotationGesture": "A two finger rotation gesture.",+ "DoubleTapGesture": "A double tap gesture.",+ "PanGesture": "A pan gesture.",+ "TouchInput": "A touch input state change.",+ "KeyboardInput": "A keyboard input.",+ "KeyboardFocusLost": "Sent when focus has been lost for all Bevy windows."+ }},- "bevy_ui::ShadowStyle": {- "doc": "",+ "bevy_window::event::WindowFocused": {+ "doc": "An event that indicates a window has received or lost focus.","fields": {- "color": "The shadow's color",- "x_offset": "Horizontal offset",- "y_offset": "Vertical offset",- "spread_radius": "How much the shadow should spread outward.",- "blur_radius": "Blurriness of the shadow"+ "window": "Window that changed focus.",+ "focused": "Whether it was focused (true) or lost focused (false)."}},- "bevy_ui::UiPosition": {- "doc": "Responsive position relative to a UI node.",+ "bevy_window::event::WindowMoved": {+ "doc": "An event that is sent when a window is repositioned in physical pixels.","fields": {- "anchor": "Normalized anchor point",- "x": "Responsive horizontal position relative to the anchor point",- "y": "Responsive vertical position relative to the anchor point"+ "window": "Window that moved.",+ "position": "Where the window moved to in physical pixels."}},- "bevy_ui::UiScale": {- "doc": "The current scale of the UI.",- "fields": {}- },- "bevy_ui::UiTargetCamera": {- "doc": "Indicates that this root `Node` entity should be rendered to a specific camera.",- "fields": {}- },- "bevy_ui::experimental::GhostNode": {- "doc": "Marker component for entities that should be ignored within UI hierarchies.",- "fields": {}+ "bevy_window::event::WindowOccluded": {+ "doc": "The window has been occluded (completely hidden from view).",+ "fields": {+ "window": "Window that changed occluded state.",+ "occluded": "Whether it was occluded (true) or not occluded (false)."+ }},- "bevy_ui::gradients::AngularColorStop": {- "doc": "An angular color stop for a conic gradient",+ "bevy_window::event::WindowResized": {+ "doc": "A window event that is sent whenever a window's logical size has changed.","fields": {- "color": "Color of the stop",- "angle": "The angle of the stop. Angles are relative to the start of the gradient and not other stops. If set to `None` the angle of the stop will be interpolated between the explicit stops or 0 and 2 PI degrees if there no explicit stops. Given angles are clamped to between `0.`, and `TAU`. This means that a list of stops: ``` # use std::f32::consts::TAU; # use bevy_ui::AngularColorStop; # use bevy_color::{Color, palettes::css::{RED, BLUE}}; let stops = [ AngularColorStop::new(Color::WHITE, 0.), AngularColorStop::new(Color::BLACK, -1.), AngularColorStop::new(RED, 2. * TAU), AngularColorStop::new(BLUE, TAU), ]; ``` is equivalent to: ``` # use std::f32::consts::TAU; # use bevy_ui::AngularColorStop; # use bevy_color::{Color, palettes::css::{RED, BLUE}}; let stops = [ AngularColorStop::new(Color::WHITE, 0.), AngularColorStop::new(Color::BLACK, 0.), AngularColorStop::new(RED, TAU), AngularColorStop::new(BLUE, TAU), ]; ``` Resulting in a black to red gradient, not white to blue.",- "hint": "Normalized angle between this and the following stop of the interpolation midpoint."+ "window": "Window that has changed.",+ "width": "The new logical width of the window.",+ "height": "The new logical height of the window."}},- "bevy_ui::gradients::ColorStop": {- "doc": "A color stop for a gradient",+ "bevy_window::event::WindowScaleFactorChanged": {+ "doc": "An event that indicates a window's scale factor has changed.","fields": {- "color": "Color",- "point": "Logical position along the gradient line. Stop positions are relative to the start of the gradient and not other stops.",- "hint": "Normalized position between this and the following stop of the interpolation midpoint."+ "window": "Window that had its scale factor changed.",+ "scale_factor": "The new scale factor."}},- "bevy_ui::gradients::ConicGradient": {- "doc": "A conic gradient",+ "bevy_window::event::WindowThemeChanged": {+ "doc": "An event sent when the system theme changes for a window.","fields": {- "color_space": "The color space used for interpolation.",- "start": "The starting angle of the gradient in radians",- "position": "The center of the conic gradient",- "stops": "The list of color stops"+ "window": "Window for which the system theme has changed.",+ "theme": "The new system theme."}},- "bevy_ui::gradients::Gradient": {- "doc": "",+ "bevy_window::monitor::Monitor": {+ "doc": "Represents an available monitor as reported by the user's operating system, which can be used to query information about the display, such as its size, position, and video modes.","fields": {- "Linear": "A linear gradient",- "Radial": "A radial gradient",- "Conic": "A conic gradient"+ "name": "The name of the monitor",+ "physical_height": "The height of the monitor in physical pixels",+ "physical_width": "The width of the monitor in physical pixels",+ "physical_position": "The position of the monitor in physical pixels",+ "refresh_rate_millihertz": "The refresh rate of the monitor in millihertz",+ "scale_factor": "The scale factor of the monitor",+ "video_modes": "The video modes that the monitor supports"}},- "bevy_ui::gradients::InterpolationColorSpace": {- "doc": "The color space used for interpolation.",+ "bevy_window::monitor::PrimaryMonitor": {+ "doc": "A marker component for the primary monitor",+ "fields": {}+ },+ "bevy_window::monitor::VideoMode": {+ "doc": "Represents a video mode that a monitor supports","fields": {- "Oklaba": "Interpolates in OKLABA space.",- "Oklcha": "Interpolates in OKLCHA space, taking the shortest hue path.",- "OklchaLong": "Interpolates in OKLCHA space, taking the longest hue path.",- "Srgba": "Interpolates in sRGBA space.",- "LinearRgba": "Interpolates in linear sRGBA space.",- "Hsla": "Interpolates in HSLA space, taking the shortest hue path.",- "HslaLong": "Interpolates in HSLA space, taking the longest hue path.",- "Hsva": "Interpolates in HSVA space, taking the shortest hue path.",- "HsvaLong": "Interpolates in HSVA space, taking the longest hue path.",- "Okhsla": "Interpolates in OKHSLA space, taking the shortest hue path.",- "OkhslaLong": "Interpolates in OKHSLA space, taking the longest hue path."+ "physical_size": "The resolution of the video mode",+ "bit_depth": "The bit depth of the video mode",+ "refresh_rate_millihertz": "The refresh rate in millihertz"}},- "bevy_ui::gradients::LinearGradient": {- "doc": "A linear gradient",+ "bevy_window::window::CompositeAlphaMode": {+ "doc": "Specifies how the alpha channel of the textures should be handled during compositing, for a `Window`.","fields": {- "color_space": "The color space used for interpolation.",- "angle": "The direction of the gradient in radians. An angle of `0.` points upward, with the value increasing in the clockwise direction.",- "stops": "The list of color stops"+ "Auto": "Chooses either `Opaque` or `Inherit` automatically, depending on the `alpha_mode` that the current surface can support.",+ "Opaque": "The alpha channel, if it exists, of the textures is ignored in the compositing process. Instead, the textures is treated as if it has a constant alpha of 1.0.",+ "PreMultiplied": "The alpha channel, if it exists, of the textures is respected in the compositing process. The non-alpha channels of the textures are expected to already be multiplied by the alpha channel by the application.",+ "PostMultiplied": "The alpha channel, if it exists, of the textures is respected in the compositing process. The non-alpha channels of the textures are not expected to already be multiplied by the alpha channel by the application; instead, the compositor will multiply the non-alpha channels of the texture by the alpha channel during compositing.",+ "Inherit": "The alpha channel, if it exists, of the textures is unknown for processing during compositing. Instead, the application is responsible for setting the composite alpha blending mode using native WSI command. If not set, then a platform-specific default will be used."}},- "bevy_ui::gradients::RadialGradient": {- "doc": "A radial gradient",+ "bevy_window::window::CursorGrabMode": {+ "doc": "Defines if and how the cursor is grabbed by a `Window`.","fields": {- "color_space": "The color space used for interpolation.",- "position": "The center of the radial gradient",- "shape": "Defines the end shape of the radial gradient",- "stops": "The list of color stops"+ "None": "The cursor can freely leave the window.",+ "Confined": "The cursor is confined to the window area.",+ "Locked": "The cursor is locked inside the window area to a certain position."}},- "bevy_ui::gradients::RadialGradientShape": {- "doc": "",+ "bevy_window::window::CursorOptions": {+ "doc": "Cursor data for a `Window`.","fields": {- "ClosestSide": "A circle with radius equal to the distance from its center to the closest side",- "FarthestSide": "A circle with radius equal to the distance from its center to the farthest side",- "ClosestCorner": "An ellipse with extents equal to the distance from its center to the nearest corner",- "FarthestCorner": "An ellipse with extents equal to the distance from its center to the farthest corner",- "Circle": "A circle",- "Ellipse": "An ellipse"+ "visible": "Whether the cursor is visible or not.",+ "grab_mode": "Whether or not the cursor is locked by or confined within the window.",+ "hit_test": "Set whether or not mouse events within *this* window are captured or fall through to the Window below."}},- "bevy_ui::ui_node::Node": {- "doc": "The base component for UI entities. It describes UI layout and style properties.",+ "bevy_window::window::EnabledButtons": {+ "doc": "Specifies which `Window` control buttons should be enabled.","fields": {- "display": "Which layout algorithm to use when laying out this node's contents: - `Display::Flex`: Use the Flexbox layout algorithm - `Display::Grid`: Use the CSS Grid layout algorithm - `Display::None`: Hide this node and perform layout as if it does not exist.",- "box_sizing": "Which part of a Node's box length styles like width and height control - `BoxSizing::BorderBox`: They refer to the \"border box\" size (size including padding and border) - `BoxSizing::ContentBox`: They refer to the \"content box\" size (size excluding padding and border)",- "position_type": "Whether a node should be laid out in-flow with, or independently of its siblings: - `PositionType::Relative`: Layout this node in-flow with other nodes using the usual (flexbox/grid) layout algorithm. - `PositionType::Absolute`: Layout this node on top and independently of other nodes.",- "overflow": "Whether overflowing content should be displayed or clipped.",- "scrollbar_width": "How much space in logical pixels should be reserved for scrollbars when overflow is set to scroll or auto on an axis.",- "overflow_clip_margin": "How the bounds of clipped content should be determined",- "left": "The horizontal position of the left edge of the node. - For relatively positioned nodes, this is relative to the node's position as computed during regular layout. - For absolutely positioned nodes, this is relative to the *parent* node's bounding box.",- "right": "The horizontal position of the right edge of the node. - For relatively positioned nodes, this is relative to the node's position as computed during regular layout. - For absolutely positioned nodes, this is relative to the *parent* node's bounding box.",- "top": "The vertical position of the top edge of the node. - For relatively positioned nodes, this is relative to the node's position as computed during regular layout. - For absolutely positioned nodes, this is relative to the *parent* node's bounding box.",- "bottom": "The vertical position of the bottom edge of the node. - For relatively positioned nodes, this is relative to the node's position as computed during regular layout. - For absolutely positioned nodes, this is relative to the *parent* node's bounding box.",- "width": "The ideal width of the node. `width` is used when it is within the bounds defined by `min_width` and `max_width`.",- "height": "The ideal height of the node. `height` is used when it is within the bounds defined by `min_height` and `max_height`.",- "min_width": "The minimum width of the node. `min_width` is used if it is greater than `width` and/or `max_width`.",- "min_height": "The minimum height of the node. `min_height` is used if it is greater than `height` and/or `max_height`.",- "max_width": "The maximum width of the node. `max_width` is used if it is within the bounds defined by `min_width` and `width`.",- "max_height": "The maximum height of the node. `max_height` is used if it is within the bounds defined by `min_height` and `height`.",- "aspect_ratio": "The aspect ratio of the node (defined as `width / height`)",- "align_items": "Used to control how each individual item is aligned by default within the space they're given. - For Flexbox containers, sets default cross axis alignment of the child items. - For CSS Grid containers, controls block (vertical) axis alignment of children of this grid container within their grid areas.",- "justify_items": "Used to control how each individual item is aligned by default within the space they're given. - For Flexbox containers, this property has no effect. See `justify_content` for main axis alignment of flex items. - For CSS Grid containers, sets default inline (horizontal) axis alignment of child items within their grid areas.",- "align_self": "Used to control how the specified item is aligned within the space it's given. - For Flexbox items, controls cross axis alignment of the item. - For CSS Grid items, controls block (vertical) axis alignment of a grid item within its grid area.",- "justify_self": "Used to control how the specified item is aligned within the space it's given. - For Flexbox items, this property has no effect. See `justify_content` for main axis alignment of flex items. - For CSS Grid items, controls inline (horizontal) axis alignment of a grid item within its grid area.",- "align_content": "Used to control how items are distributed. - For Flexbox containers, controls alignment of lines if `flex_wrap` is set to `FlexWrap::Wrap` and there are multiple lines of items. - For CSS Grid containers, controls alignment of grid rows.",- "justify_content": "Used to control how items are distributed. - For Flexbox containers, controls alignment of items in the main axis. - For CSS Grid containers, controls alignment of grid columns.",- "direction": "Sets the inline axis direction (LTR or RTL) used for layout.",- "margin": "The amount of space around a node outside its border.",- "padding": "The amount of space between the edges of a node and its contents.",- "border": "The amount of space between the margins of a node and its padding.",- "border_radius": "Used to add rounded corners to a UI node. You can set a UI node to have uniformly rounded corners or specify different radii for each corner. If a given radius exceeds half the length of the smallest dimension between the node's height or width, the radius will calculated as half the smallest dimension.",- "flex_direction": "Whether a Flexbox container should be a row or a column. This property has no effect on Grid nodes.",- "flex_wrap": "Whether a Flexbox container should wrap its contents onto multiple lines if they overflow. This property has no effect on Grid nodes.",- "flex_grow": "Defines how much a flexbox item should grow if there's space available. Defaults to 0 (don't grow at all).",- "flex_shrink": "Defines how much a flexbox item should shrink if there's not enough space available. Defaults to 1.",- "flex_basis": "The initial length of a flexbox in the main axis, before flex growing/shrinking properties are applied.",- "row_gap": "The size of the gutters between items in a vertical flexbox layout or between rows in a grid layout.",- "column_gap": "The size of the gutters between items in a horizontal flexbox layout or between column in a grid layout.",- "grid_auto_flow": "Controls whether automatically placed grid items are placed row-wise or column-wise as well as whether the sparse or dense packing algorithm is used. Only affects Grid layouts.",- "grid_template_rows": "Defines the number of rows a grid has and the sizes of those rows. If grid items are given explicit placements then more rows may be implicitly generated by items that are placed out of bounds. The sizes of those rows are controlled by `grid_auto_rows` property.",- "grid_template_columns": "Defines the number of columns a grid has and the sizes of those columns. If grid items are given explicit placements then more columns may be implicitly generated by items that are placed out of bounds. The sizes of those columns are controlled by `grid_auto_columns` property.",- "grid_auto_rows": "Defines the size of implicitly created rows. Rows are created implicitly when grid items are given explicit placements that are out of bounds of the rows explicitly created using `grid_template_rows`.",- "grid_auto_columns": "Defines the size of implicitly created columns. Columns are created implicitly when grid items are given explicit placements that are out of bounds of the columns explicitly created using `grid_template_columns`.",- "grid_row": "The row in which a grid item starts and how many rows it spans.",- "grid_column": "The column in which a grid item starts and how many columns it spans."+ "minimize": "Enables the functionality of the minimize button.",+ "maximize": "Enables the functionality of the maximize button.",+ "close": "Enables the functionality of the close button."+ }+ },+ "bevy_window::window::InternalWindowState": {+ "doc": "Stores internal `Window` state that isn't directly accessible.",+ "fields": {}+ },+ "bevy_window::window::MonitorSelection": {+ "doc": "References a screen monitor.",+ "fields": {+ "Current": "Uses the current monitor of the window.",+ "Primary": "Uses the primary monitor of the system.",+ "Index": "Uses the monitor with the specified index.",+ "Entity": "Uses a given `Monitor` entity."}},- "bevy_ui::ui_transform::UiTransform": {- "doc": "Relative 2D transform for UI nodes",+ "bevy_window::window::NormalizedWindowRef": {+ "doc": "A flattened representation of a window reference for equality/hashing purposes.",+ "fields": {}+ },+ "bevy_window::window::PresentMode": {+ "doc": "Presentation mode for a `Window`.","fields": {- "translation": "Translate the node.",- "scale": "Scale the node. A negative value reflects the node in that axis.",- "rotation": "Rotate the node clockwise."+ "AutoVsync": "Chooses `FifoRelaxed` -> `Fifo` based on availability.",+ "AutoNoVsync": "Chooses `Immediate` -> `Mailbox` -> `Fifo` (on web) based on availability.",+ "Fifo": "Presentation frames are kept in a First-In-First-Out queue approximately 3 frames long. Every vertical blanking period, the presentation engine will pop a frame off the queue to display. If there is no frame to display, it will present the same frame again until the next vblank.",+ "FifoRelaxed": "Presentation frames are kept in a First-In-First-Out queue approximately 3 frames long. Every vertical blanking period, the presentation engine will pop a frame off the queue to display. If there is no frame to display, it will present the same frame until there is a frame in the queue. The moment there is a frame in the queue, it will immediately pop the frame off the queue.",+ "Immediate": "Presentation frames are not queued at all. The moment a present command is executed on the GPU, the presented image is swapped onto the front buffer immediately.",+ "Mailbox": "Presentation frames are kept in a single-frame queue. Every vertical blanking period, the presentation engine will pop a frame from the queue. If there is no frame to display, it will present the same frame again until the next vblank."}},- "bevy_ui::ui_transform::Val2": {- "doc": "A pair of `Val`s used to represent a 2-dimensional size or offset.",+ "bevy_window::window::PrimaryWindow": {+ "doc": "Marker `Component` for the window considered the primary window.",+ "fields": {}+ },+ "bevy_window::window::ScreenEdge": {+ "doc": "The edges of a screen. Corresponds to `winit::platform::ios::ScreenEdge`.","fields": {- "x": "Translate the node along the x-axis. `Val::Percent` values are resolved based on the computed width of the Ui Node. `Val::Auto` is resolved to `0.`.",- "y": "Translate the node along the y-axis. `Val::Percent` values are resolved based on the computed height of the UI Node. `Val::Auto` is resolved to `0.`."+ "None": "No edge.",+ "Top": "The top edge of the screen.",+ "Left": "The left edge of the screen.",+ "Bottom": "The bottom edge of the screen.",+ "Right": "The right edge of the screen.",+ "All": "All edges of the screen."}},- "bevy_ui::widget::InlineImage": {- "doc": "An inline image",+ "bevy_window::window::VideoModeSelection": {+ "doc": "References an exclusive fullscreen video mode.","fields": {- "color": "The tint color used to draw the image.",- "image": "Handle to the texture.",- "width": "Set a fixed width in logical pixels for the image's inline box target.",- "height": "Set a fixed height in logical pixels for the image's inline box target.",- "flip_x": "Flip the image on the x-axis.",- "flip_y": "Flip the image on the y-axis."+ "Current": "Uses the video mode that the monitor is already in.",+ "Specific": "Uses a given `VideoMode`. A list of video modes supported by the monitor is supplied by `Monitor::video_modes`."}},- "bevy_ui::widget::image::ImageNode": {- "doc": "A UI Node that renders an image.",+ "bevy_window::window::Window": {+ "doc": "The defining `Component` for window entities, storing information about how it should appear and behave.",+ "fields": {+ "present_mode": "What presentation mode to give the window.",+ "mode": "Which fullscreen or windowing mode should be used.",+ "position": "Where the window should be placed.",+ "resolution": "What resolution the window should have.",+ "title": "Stores the title of the window.",+ "name": "Stores the application ID (on **`Wayland`**), `WM_CLASS` (on **`X11`**) or window class name (on **`Windows`**) of the window.",+ "composite_alpha_mode": "How the alpha channel of textures should be handled while compositing.",+ "resize_constraints": "The limits of the window's logical size (found in its `resolution`) when resizing.",+ "resizable": "Should the window be resizable?",+ "enabled_buttons": "Specifies which window control buttons should be enabled.",+ "decorations": "Should the window have decorations enabled?",+ "transparent": "Should the window be transparent?",+ "focused": "Get/set whether the window is focused.",+ "window_level": "Where should the window appear relative to other overlapping window.",+ "canvas": "The \"html canvas\" element selector.",+ "fit_canvas_to_parent": "Whether or not to fit the canvas element's size to its parent element's size.",+ "prevent_default_event_handling": "Whether or not to stop events from propagating out of the canvas element",+ "internal": "Stores internal state that isn't directly accessible.",+ "ime_enabled": "Should the window use Input Method Editor?",+ "ime_position": "Sets location of IME candidate box in client area coordinates relative to the top left.",+ "window_theme": "Sets a specific theme for the window.",+ "visible": "Sets the window's visibility.",+ "skip_taskbar": "Sets whether the window should be shown in the taskbar.",+ "clip_children": "Sets whether the window should draw over its child windows.",+ "desired_maximum_frame_latency": "Optional hint given to the rendering API regarding the maximum number of queued frames admissible on the GPU.",+ "recognize_pinch_gesture": "Sets whether this window recognizes `PinchGesture`",+ "recognize_rotation_gesture": "Sets whether this window recognizes `RotationGesture`",+ "recognize_doubletap_gesture": "Sets whether this window recognizes `DoubleTapGesture`",+ "recognize_pan_gesture": "Sets whether this window recognizes `PanGesture`, with a number of fingers between the first value and the last.",+ "movable_by_window_background": "Enables click-and-drag behavior for the entire window, not just the titlebar.",+ "fullsize_content_view": "Makes the window content appear behind the titlebar.",+ "has_shadow": "Toggles drawing the drop shadow behind the window.",+ "titlebar_shown": "Toggles drawing the titlebar.",+ "titlebar_transparent": "Makes the titlebar transparent, allowing the app content to appear behind it.",+ "titlebar_show_title": "Toggles showing the window title.",+ "titlebar_show_buttons": "Toggles showing the traffic light window buttons.",+ "borderless_game": "Hides the dock and menu bar when a borderless fullscreen window is active.",+ "prefers_home_indicator_hidden": "Sets whether the Window prefers the home indicator hidden.",+ "prefers_status_bar_hidden": "Sets whether the Window prefers the status bar hidden.",+ "preferred_screen_edges_deferring_system_gestures": "Sets screen edges for which you want your gestures to take precedence over the system gestures."+ }+ },+ "bevy_window::window::WindowLevel": {+ "doc": "Specifies where a `Window` should appear relative to other overlapping windows (on top or under) .","fields": {- "color": "The tint color used to draw the image.",- "image": "Handle to the texture.",- "texture_atlas": "The (optional) texture atlas used to render the image.",- "flip_x": "Whether the image should be flipped along its x-axis.",- "flip_y": "Whether the image should be flipped along its y-axis.",- "rect": "An optional rectangle representing the region of the image to render, instead of rendering the full image. This is an easy one-off alternative to using a `TextureAtlas`.",- "image_mode": "Controls how the image is altered to fit within the layout and how the layout algorithm determines the space to allocate for the image.",- "visual_box": "Which region of the UI node the image should be drawn within."+ "AlwaysOnBottom": "The window will always be below `WindowLevel::Normal` and `WindowLevel::AlwaysOnTop` windows.",+ "Normal": "The default group.",+ "AlwaysOnTop": "The window will always be on top of `WindowLevel::Normal` and `WindowLevel::AlwaysOnBottom` windows."}},- "bevy_ui::widget::text::TextShadow": {- "doc": "Adds a shadow behind text",+ "bevy_window::window::WindowMode": {+ "doc": "Defines the way a `Window` is displayed.","fields": {- "offset": "Shadow displacement in logical pixels With a value of zero the shadow will be hidden directly behind the text",- "color": "Color of the shadow"+ "Windowed": "The window should take a portion of the screen, using the window resolution size.",+ "BorderlessFullscreen": "The window should appear fullscreen by being borderless and using the full size of the screen on the given `MonitorSelection`.",+ "Fullscreen": "The window should be in \"true\"/\"legacy\"/\"exclusive\" Fullscreen mode on the given `MonitorSelection`."}},- "bevy_ui_render::BoxShadowSamples": {- "doc": "Number of shadow samples. A larger value will result in higher quality shadows. Default is 4, values higher than ~10 offer diminishing returns.",+ "bevy_window::window::WindowPosition": {+ "doc": "Defines where a `Window` should be placed on the screen.",+ "fields": {+ "Automatic": "Position will be set by the window manager. Bevy will delegate this decision to the window manager and no guarantees can be made about where the window will be placed.",+ "Centered": "Window will be centered on the selected monitor.",+ "At": "The window's top-left corner should be placed at the specified position (in physical pixels)."+ }+ },+ "bevy_window::window::WindowRef": {+ "doc": "Reference to a `Window`, whether it be a direct link to a specific entity or a more vague defaulting choice.",+ "fields": {+ "Primary": "This will be linked to the primary window that is created by default in the `WindowPlugin`.",+ "Entity": "A more direct link to a window entity."+ }+ },+ "bevy_window::window::WindowResizeConstraints": {+ "doc": "The size limits on a `Window`.",+ "fields": {+ "min_width": "The minimum width the window can have.",+ "min_height": "The minimum height the window can have.",+ "max_width": "The maximum width the window can have.",+ "max_height": "The maximum height the window can have."+ }+ },+ "bevy_window::window::WindowResolution": {+ "doc": "Controls the size of a `Window`","fields": {}},- "bevy_ui_render::GlobalUiDebugOptions": {- "doc": "Configuration for the UI debug overlay",+ "bevy_window::window::WindowTheme": {+ "doc": "The `Window` theme variant to use.","fields": {- "enabled": "Set to true to enable the UI debug overlay",- "outline_border_box": "Show outlines for the border boxes of UI nodes",- "outline_padding_box": "Show outlines for the padding boxes of UI nodes",- "outline_content_box": "Show outlines for the content boxes of UI nodes",- "outline_scrollbars": "Show outlines for the scrollbar regions of UI nodes",- "line_width": "Width of the overlay's lines in logical pixels",- "line_color_override": "Override Color for the overlay's lines",- "show_hidden": "Show outlines for non-visible UI nodes",- "show_clipped": "Show outlines for clipped sections of UI nodes",- "ignore_border_radius": "Draw outlines with sharp corners even if the UI nodes have border radii"+ "Light": "Use the light variant.",+ "Dark": "Use the dark variant."}},- "bevy_ui_render::UiDebugOptions": {- "doc": "Configuration for the UI debug overlay",+ "bevy_world_serialization::components::DynamicWorldRoot": {+ "doc": "Adding this component will spawn the world as a child of that entity. Once it's spawned, the entity will have a `WorldInstance` component.",+ "fields": {}+ },+ "bevy_world_serialization::components::WorldAssetRoot": {+ "doc": "Adding this component will spawn the world as a child of that entity. Once it's spawned, the entity will have a `WorldInstance` component.",+ "fields": {}+ },+ "raea_bevy_adapters::easings::EaseRepeat": {+ "doc": "How an easing repeats.","fields": {- "enabled": "Set to true to enable the UI debug overlay",- "outline_border_box": "Show outlines for the border boxes of UI nodes",- "outline_padding_box": "Show outlines for the padding boxes of UI nodes",- "outline_content_box": "Show outlines for the content boxes of UI nodes",- "outline_scrollbars": "Show outlines for the scrollbar regions of UI nodes",- "line_width": "Width of the overlay's lines in logical pixels",- "line_color_override": "Override Color for the overlay's lines",- "show_hidden": "Show outlines for non-visible UI nodes",- "show_clipped": "Show outlines for clipped sections of UI nodes",- "ignore_border_radius": "Draw outlines with sharp corners even if the UI nodes have border radii"+ "Once": "once, and it stays at the end",+ "Loop": "from the start again each time",+ "PingPong": "there and back"}},- "bevy_ui_widgets::ControlOrientation": {- "doc": "",+ "raea_bevy_adapters::easings::EaseSpriteColor": {+ "doc": "Eases the entity's Sprite colour to `to` over `seconds`, from its colour when this is added or changed.",+ "fields": {}+ },+ "raea_bevy_adapters::easings::EaseTransform": {+ "doc": "Eases the entity's Transform to `to` over `seconds`, from where it is when this is added or changed.","fields": {- "Horizontal": "Horizontal orientation (stretching from left to right)",- "Vertical": "Vertical orientation (stretching from top to bottom)"+ "function": "Bevy's easing curves: \"Linear\" and the ones bevy_easings has too (\"QuadraticInOut\", \"BounceOut\", ...; see method)",+ "repeat": "Bevy's easing curves: \"Linear\" and the ones bevy_easings has too (\"QuadraticInOut\", \"BounceOut\", ...; see method)"}},- "bevy_ui_widgets::Scrollbar": {- "doc": "A headless scrollbar widget, which can be used to build custom scrollbars.",+ "raea_bevy_adapters::enoki::Sparks": {+ "doc": "A stream of particles from the entity it's on, built into an enoki spawner and effect when added.",+ "fields": {+ "every": "seconds between bursts",+ "amount": "particles a burst",+ "lifetime": "seconds each lives",+ "speed": "pixels a second",+ "direction": "the way they leave (+y up the frame)",+ "spread": "how far from `direction` they spread (0 none, 1 all the way round; above 0 differs from run to run)",+ "size": "size in pixels",+ "color": "linear RGBA",+ "gravity": "downward pull, pixels a second each second"+ }+ },+ "raea_bevy_adapters::ldtk::CurrentLevel": {+ "doc": "The level to show, by its index in the project (0 the first); put it on the LdtkProjectHandle's entity.",+ "fields": {}+ },+ "raea_bevy_adapters::light_2d::Lighting2d": {+ "doc": "The 2D overlay's ambient light, from any entity it's on.","fields": {- "target": "Entity being scrolled.",- "orientation": "Whether the scrollbar is vertical or horizontal.",- "min_thumb_length": "Minimum length of the scrollbar thumb, in pixel units, in the direction parallel to the main scrollbar axis. The scrollbar will resize the thumb entity based on the proportion of visible size to content size, but no smaller than this. This prevents the thumb from disappearing in cases where the ratio of content size to visible size is large."+ "color": "linear RGB",+ "brightness": "linear RGB"}},- "bevy_ui_widgets::ScrollbarThumb": {- "doc": "This component indicates that the entity is a scrollbar thumb (the moving, draggable part of the scrollbar). This should be a child of the scrollbar entity.",+ "raea_bevy_adapters::rapier2d::ColliderShape": {+ "doc": "A 2D collider's shape, built into rapier's Collider on the entity it's on (metres, +y up).","fields": {- "border_radius": "Border radius of the scrollbar thumb, used to update `ComputedNode::border_radius` in `UiSystems::Layout`.",- "border": "Thickness of the thumb node's border."+ "Cuboid": "half of its size on each axis",+ "Capsule": "along y: half the straight part's height, and the radius of its ends"}},- "bevy_ui_widgets::popover::Popover": {- "doc": "Component which is inserted into a popover element to make it dynamically position relative to an parent element.",+ "raea_bevy_adapters::rapier3d::ColliderShape": {+ "doc": "A 2D collider's shape, built into rapier's Collider on the entity it's on (metres, +y up).","fields": {- "positions": "List of potential positions for the popover element relative to the parent.",- "window_margin": "Indicates how close to the window edge the popup is allowed to go."+ "Cuboid": "half of its size on each axis",+ "Capsule": "along y: half the straight part's height, and the radius of its ends"}},- "bevy_ui_widgets::popover::PopoverPlacement": {- "doc": "Indicates a possible position of a popover element relative to it's parent. You can specify multiple possible positions; the positioning code will check to see if there is sufficient space to display the popup without being clipped by the window edge. If any position has sufficient room, it will pick the first one; if there are none, then it will pick the least bad one.",+ "raea_bevy_adapters::spritesheet::SheetAnimation": {+ "doc": "A sprite playing cells of a sheet in a loop, built into a Sprite and a SpritesheetAnimation when added.","fields": {- "side": "The side of the parent entity where the popover element should be placed.",- "align": "How the popover element should be aligned to the parent entity.",- "gap": "The size of the gap between the parent and the popover element, in logical pixels. This will offset the popover along the direction of `side`."+ "image_size": "the image's size in pixels (the atlas is laid out before the image loads)",+ "columns": "the image's size in pixels (the atlas is laid out before the image loads)",+ "rows": "the image's size in pixels (the atlas is laid out before the image loads)",+ "frames": "the cells played, numbered row by row from the top left",+ "frame_ms": "milliseconds each cell shows",+ "size": "its size on the frame in pixels"+ }+ },+ "raea_bevy_adapters::text3d::Label3d": {+ "doc": "One line of text drawn as a mesh in the 3D scene, built into bevy_rich_text3d's parts when added.",+ "fields": {+ "size": "glyph size in atlas pixels",+ "world_scale": "the em's height in metres (bevy_rich_text3d's world_scale, as raea's own text sets it)",+ "color": "sRGB",+ "font": "a loaded font's family (\"Fira Mono\", the one always loaded)"+ }+ },+ "raea_bevy_calls::sprite3d::SpriteQuad": {+ "doc": "A sprite on a quad: Bevy's Sprite and bevy_sprite3d's Sprite3d from one reflected component",+ "fields": {+ "image": "the image, as the bridge reads any Handle<Image>: a path (beside the composition, or in media), an inline {width, height, pixels} picture, or \"render:NAME\"",+ "pixels_per_metre": "the image, as the bridge reads any Handle<Image>: a path (beside the composition, or in media), an inline {width, height, pixels} picture, or \"render:NAME\"",+ "pivot": "None centres it; (0, 0) to (1, 1) across the sprite",+ "unlit": "None centres it; (0, 0) to (1, 1) across the sprite",+ "double_sided": "None centres it; (0, 0) to (1, 1) across the sprite",+ "blend": "alpha blended, where the default cuts out at 0.5",+ "emissive": "alpha blended, where the default cuts out at 0.5",+ "atlas": "a cell of a sprite sheet, when the image is one"+ }+ },+ "raea_bevy_calls::sprite3d::SpriteSheet": {+ "doc": "A grid of equal cells, numbered row by row from the top left",+ "fields": {}+ },+ "raea_bevy_plugins::enhanced_input::OnFoot": {+ "doc": "The on-foot input context: a game's player carries it.",+ "fields": {}+ },+ "raea_bevy_plugins::hanabi::Particles": {+ "doc": "A fountain of particles from the entity it's on (a Mesh), built into a hanabi effect (on a child of it) when added.",+ "fields": {+ "rate": "particles a second",+ "lifetime": "seconds each lives",+ "speed": "upward speed, units a second",+ "spread": "how far from straight up they spread (0 straight, 1 a hemisphere)",+ "size": "size in scene units",+ "color": "linear RGBA (above 1 glows with Bloom)",+ "gravity": "downward acceleration",+ "capacity": "the most alive at once",+ "seed": "the GPU random seed",+ "opaque": "alpha-blended (soft, drawn in an order the GPU chooses) or opaque"+ }+ },+ "raea_bevy_plugins::lightyear::Announce": {+ "doc": "A line for the peer's log, read by a system the next frame (a reflected message: world.write_message).",+ "fields": {}+ },+ "raea_bevy_plugins::lightyear::Announced": {+ "doc": "The lines Announce has written, in order (a reflected resource: world.get_resources).",+ "fields": {}+ },+ "raea_bevy_plugins::lightyear::Position": {+ "doc": "Where a networked thing is: replicated from the server, predicted on its controlling client.",+ "fields": {}+ },+ "raea_bevy_plugins::lightyear::Session": {+ "doc": "Where the session is: input moves the player only while Playing (a reflected, freely mutable state, so TypeScript reads and sets it through raea/state.get and raea/state.set).",+ "fields": {}+ },+ "raea_bevy_plugins::lightyear::Teleport": {+ "doc": "Moves every networked thing on the peer it's triggered on to `to` (a reflected event: world.trigger_event, and world.observe+watch sees it).",+ "fields": {}+ },+ "raea_bevy_plugins::tnua::TnuaInput": {+ "doc": "What the character is asked to do this step, set from TypeScript.",+ "fields": {}+ },+ "raea_core_animate::spec::AnimKey": {+ "doc": "One key: a value at a local frame, and the curve from it to the next key.",+ "fields": {+ "at": "the local frame it's at",+ "value": "a number property's value there",+ "color": "a colour property's value (CSS text); empty for numbers",+ "ease": "the curve to the next key (easing::Easing::parse); empty is linear"+ }+ },+ "raea_core_animate::spec::AnimTrack": {+ "doc": "Keyframes on one property.",+ "fields": {+ "prop": "the property it keys: opacity, x, y, z, scale, rotate, width, height, blur, clip, a colour, `text`, or another number",+ "keys": "its keyframes in frame order",+ "unit": "a length's unit: \"px\" (when empty) or \"%\"",+ "repeat": "past the last key: \"\" or \"hold\", \"loop\", \"pingpong\" (for ever), or \"loop:N\" / \"pingpong:N\"",+ "digits": "decimals a `text` number is written with",+ "prefix": "written before and after a `text` number (a counter's \"$\" and \" pts\")",+ "suffix": "written after a `text` number",+ "separator": "between a `text` number's thousands (\",\" writes 12,345); empty: none"}},"raea_core_animate::spec::Animation": {@@ -1309,7 +5790,7 @@"origin": "the composition frame the element's local frame 0 falls on (where its Sequence starts)","freeze": "a local frame to hold at whatever the composition's frame (inside a Freeze)","fps": "the frames per second its frames count; springs measure their settle time with it (0: the clock's)",- "tracks": "the frames per second its frames count; springs measure their settle time with it (0: the clock's)",+ "tracks": "the element's keyframed properties, one track each","show_from": "the local frame it's shown from, when it shows only for a window (mount=\"during\"); before it, display none","show_until": "the local frame it's hidden from again"}@@ -1375,16 +5856,6 @@},"from": "bevy_light::Atmosphere"},- "name:BorderRadius": {- "doc": "Used to add rounded corners to a UI node. You can set a UI node to have uniformly rounded corners, elliptical corners, or specify a different radius for each corner. If a given radius exceeds half the length of the node's height or width, the radius will be calculated as half the height or width.",- "fields": {- "top_left": "Border radius of the top left corner",- "top_right": "Border radius of the top right corner",- "bottom_right": "Border radius of the bottom right corner",- "bottom_left": "Border radius of the bottom left corner"- },- "from": "bevy_ui::BorderRadius"- },"name:Capsule2d": {"doc": "A 2D capsule primitive, also known as a stadium or pill shape.","fields": {@@ -1444,21 +5915,6 @@"fields": {},"from": "bevy_shape::ConvexPolygon"},- "name:CornerRadius": {- "doc": "The horizontal and vertical radii of a rounded corner's elliptical arc. If one field is auto, the resolved radius will be circular and clamped to half the length of the node's shortest side. If either field is zero, or both are auto, the node will have square corners.",- "fields": {- "x": "Responsive horizontal radius.",- "y": "Responsive vertical radius."- },- "from": "bevy_ui::CornerRadius"- },- "name:Cuboid": {- "doc": "A cuboid primitive, which is like a cube, except that the x, y, and z dimensions are not required to be the same.",- "fields": {- "half_size": "Half of the width, height and depth of the cuboid"- },- "from": "bevy_shape::Cuboid"- },"name:Cylinder": {"doc": "A cylinder primitive centered on the origin","fields": {@@ -1474,34 +5930,10 @@},"from": "bevy_shape::Ellipse"},- "name:FogFalloff": {- "doc": "Allows switching between different fog falloff modes, and configuring their parameters.",- "fields": {- "Linear": "A linear fog falloff that grows in intensity between `start` and `end` distances.",- "Exponential": "An exponential fog falloff with a given `density`.",- "ExponentialSquared": "A squared exponential fog falloff with a given `density`.",- "Atmospheric": "A more general form of the `FogFalloff::Exponential` mode. The falloff formula is separated into two terms, `extinction` and `inscattering`, for a somewhat simplified atmospheric scattering model. Additionally, individual color channels can have their own density values, resulting in a total of six different configuration parameters."- },- "from": "bevy_pbr::FogFalloff"- },- "name:GlobalAmbientLight": {- "doc": "The global ambient light, which lights the entire scene equally.",- "fields": {- "color": "The color of the ambient light.",- "brightness": "A direct scale factor multiplied with `color` before being passed to the shader.",- "affects_lightmapped_meshes": "Whether this ambient light has an effect on meshes with lightmaps."- },- "from": "bevy_light::GlobalAmbientLight"- },- "name:Hsla": {- "doc": "</div>",- "fields": {- "hue": "The hue channel. [0.0, 360.0]",- "saturation": "The saturation channel. [0.0, 1.0]",- "lightness": "The lightness channel. [0.0, 1.0]",- "alpha": "The alpha channel. [0.0, 1.0]"- },- "from": "bevy_color::Hsla"+ "name:ExtendedMaterial": {+ "doc": "A material that extends a base `Material` with additional shaders and data.",+ "fields": {},+ "from": "bevy_pbr::ExtendedMaterial"},"name:LensDistortion": {"doc": "Simulates the warping of the image caused by real-world camera lenses.",@@ -1514,61 +5946,6 @@},"from": "bevy_post_process::LensDistortion"},- "name:LinearRgba": {- "doc": "</div>",- "fields": {- "red": "The red channel. [0.0, 1.0] for SDR colors.",- "green": "The green channel. [0.0, 1.0] for SDR colors.",- "blue": "The blue channel. [0.0, 1.0] for SDR colors.",- "alpha": "The alpha channel. [0.0, 1.0]"- },- "from": "bevy_color::LinearRgba"- },- "name:Oklaba": {- "doc": "</div>",- "fields": {- "lightness": "The 'lightness' channel. [0.0, 1.0]",- "a": "The 'a' channel. [-1.0, 1.0]",- "b": "The 'b' channel. [-1.0, 1.0]",- "alpha": "The alpha channel. [0.0, 1.0]"- },- "from": "bevy_color::Oklaba"- },- "name:Oklcha": {- "doc": "</div>",- "fields": {- "lightness": "The 'lightness' channel. [0.0, 1.0]",- "chroma": "The 'chroma' channel. [0.0, 1.0]",- "hue": "The 'hue' channel. [0.0, 360.0]",- "alpha": "The alpha channel. [0.0, 1.0]"- },- "from": "bevy_color::Oklcha"- },- "name:Outline": {- "doc": "The `Outline` component adds an outline outside the edge of a UI node. Outlines do not take up space in the layout.",- "fields": {- "width": "The width of the outline.",- "offset": "The amount of space between a node's outline the edge of the node.",- "color": "The color of the outline."- },- "from": "bevy_ui::Outline"- },- "name:Overflow": {- "doc": "Whether to show or hide overflowing items",- "fields": {- "x": "Whether to show or clip overflowing items on the x axis",- "y": "Whether to show or clip overflowing items on the y axis"- },- "from": "bevy_ui::Overflow"- },- "name:OverflowClipMargin": {- "doc": "The bounds of the visible area when a UI node is clipped.",- "fields": {- "visual_box": "Visible unclipped area",- "margin": "Width of the margin on each edge of the visual box in logical pixels. The width of the margin will be zero if a negative value is set."- },- "from": "bevy_ui::OverflowClipMargin"- },"name:Plane3d": {"doc": "A bounded plane in 3D space. It forms a surface starting from the origin with a defined height and width.","fields": {@@ -1584,13 +5961,6 @@},"from": "bevy_shape::Polyline2d"},- "name:Rectangle": {- "doc": "A rectangle primitive, which is like a square, except that the width and height can be different",- "fields": {- "half_size": "Half of the width and height of the rectangle"- },- "from": "bevy_shape::Rectangle"- },"name:RegularPolygon": {"doc": "A polygon centered on the origin where all vertices lie on a circle, equally far apart.","fields": {@@ -1613,23 +5983,6 @@},"from": "bevy_shape::Segment2d"},- "name:Sphere": {- "doc": "A sphere primitive, representing the set of all points some distance from the origin",- "fields": {- "radius": "The radius of the sphere"- },- "from": "bevy_shape::Sphere"- },- "name:Srgba": {- "doc": "</div>",- "fields": {- "red": "The red channel. [0.0, 1.0] for SDR colors.",- "green": "The green channel. [0.0, 1.0] for SDR colors.",- "blue": "The blue channel. [0.0, 1.0] for SDR colors.",- "alpha": "The alpha channel. [0.0, 1.0]"- },- "from": "bevy_color::Srgba"- },"name:TextureView": {"doc": "Describes a `Texture` with its associated metadata required by a pipeline or `BindGroup`.","fields": {},@@ -1649,25 +6002,5 @@"vertices": "The vertices of the triangle"},"from": "bevy_shape::Triangle2d"- },- "name:UiRect": {- "doc": "A type which is commonly used to define margins, paddings and borders.",- "fields": {- "left": "The value corresponding to the left side of the UI rect.",- "right": "The value corresponding to the right side of the UI rect.",- "top": "The value corresponding to the top side of the UI rect.",- "bottom": "The value corresponding to the bottom side of the UI rect."- },- "from": "bevy_ui::UiRect"- },- "name:Xyza": {- "doc": "</div>",- "fields": {- "x": "The x-axis. [0.0, 0.9505] for SDR colors.",- "y": "The y-axis, intended to represent luminance. [0.0, 1.0] for SDR colors.",- "z": "The z-axis. [0.0, 1.0889] for SDR colors.",- "alpha": "The alpha channel. [0.0, 1.0]"- },- "from": "bevy_color::Xyza"}}diff --git a/tools/manual-ref/bevy-docs.ts b/tools/manual-ref/bevy-docs.tsindex 185b6cf7..bef79738 100644--- a/tools/manual-ref/bevy-docs.ts+++ b/tools/manual-ref/bevy-docs.ts@@ -1,4 +1,5 @@-// Bevy's own doc comments for the types the SDK names with @bevy (docs/manual.feature DM3): each type's doc and its+// Bevy's own doc comments for the types the SDK names with @bevy, or whose whole doc is a Rust path (the types+// raea-bevy-sdk generates from raea's crates: `/** raea_core_animate::spec::AnimKey */`) (docs/manual.feature DM3): each type's doc and its// fields' and variants' docs, read from the Rust source of Bevy 0.20 (the cargo registry) and of raea's own crates,// kept in tools/manual-ref/bevy-docs.json so the SDK reference can be generated without the registry. sdk.ts gives a// prop Bevy's field doc, marked as Bevy's, where the SDK's own comment is missing.@@ -91,7 +92,7 @@ const walk = (d: string): void => {for (const n of readdirSync(d, { withFileTypes: true })) {const p = path.join(d, n.name)if (n.isDirectory()) { if (n.name !== "node_modules") walk(p) }- else if (/\.tsx?$/.test(n.name)) for (const m of readFileSync(p, "utf8").matchAll(/@bevy ([a-z_0-9]+(?:::[A-Za-z_0-9]+)+)/g)) tags.add(m[1])+ else if (/\.tsx?$/.test(n.name)) for (const m of readFileSync(p, "utf8").matchAll(/(?:@bevy |\/\*\* )([a-z_0-9]+(?:::[A-Za-z_0-9]+)+)(?= |\*\/|$)/gm)) tags.add(m[1])}}for (const pkg of readdirSync(path.join(ROOT, "sdk"))) if (existsSync(path.join(ROOT, "sdk", pkg, "src"))) walk(path.join(ROOT, "sdk", pkg, "src"))diff --git a/tools/manual-ref/sdk.ts b/tools/manual-ref/sdk.tsindex ab57c715..75be1dce 100644--- a/tools/manual-ref/sdk.ts+++ b/tools/manual-ref/sdk.ts@@ -4,7 +4,8 @@// that use it, which are checked against Bevy and rendered in CI, so they work as examples.// A page's prose above and below its generated block is its own, kept by a rewrite as the CLI pages' is (cli.ts).// bun tools/manual-ref/sdk.ts gen [DIR] rewrite the pages in DIR (docs/manual/reference/sdk)-// bun tools/manual-ref/sdk.ts check [DIR] the pages as gen would write them, every import path in GROUPS+// bun tools/manual-ref/sdk.ts check [DIR] the pages as gen would write them, every import path in GROUPS, every+// prop and field they table describedimport { readdirSync, readFileSync, writeFileSync, mkdirSync, existsSync } from "node:fs"import path from "node:path"import { createRequire } from "node:module"@@ -78,17 +79,22 @@ function propDoc(s: import("typescript").Symbol, bevy: BevyDoc | undefined) {if (p && (ts.isInterfaceDeclaration(p) || ts.isTypeAliasDeclaration(p)) && p.name) {const sym = checker.getSymbolAtLocation(p.name)const tags = sym ? docOf(sym).bevy : []- for (const t of tags) if (BEVY[t]?.fields[s.name]) return `Bevy: ${BEVY[t].fields[s.name]}`+ for (const t of tags) if (BEVY[t]?.fields[s.name]) return `${ownRust(t) ? "" : "Bevy: "}${BEVY[t].fields[s.name]}`const n = BEVY[`name:${p.name.text}`]if (n?.fields[s.name]) return `Bevy: ${n.fields[s.name]}`}return bevy?.fields[s.name] ? `Bevy: ${bevy.fields[s.name]}` : ""}-/** the doc comment and @bevy tags of a symbol */+/** a type of raea's own Rust (a raea_* crate), as a type raea-bevy-sdk generates names it: its docs are raea's, not Bevy's */+const ownRust = (path: string) => path.startsWith("raea_")+const RUST_PATH = /^[a-z_0-9]+(?:::[A-Za-z_0-9]+)+$/+/** the doc comment and @bevy tags of a symbol; a generated type's doc, its Rust path alone, is a tag, and the Rust+ * type's own doc stands for it */function docOf(sym: import("typescript").Symbol) {- const text = ts.displayPartsToString(sym.getDocumentationComment(checker)).trim()+ let text = ts.displayPartsToString(sym.getDocumentationComment(checker)).trim()const bevy = sym.getJsDocTags(checker).filter((t) => t.name === "bevy").map((t) => ts.displayPartsToString(t.text).trim())+ if (RUST_PATH.test(text)) { bevy.push(text); text = BEVY[text]?.doc ?? "" }return { text, bevy }}@@ -218,6 +224,30 @@ for (const file of [...entries].sort((a, b) => Number(a.startsWith("index.")) -}const typeLink = (name: string, from: string) => (home.has(name) ? `[\`${name}\`](${home.get(name) === from ? "" : home.get(name) + ".md"}#${name.toLowerCase()})` : "`" + name + "`")const shared = (name: string) => (uses.get(name) ?? 0) > 1 && home.has(name)+// every prop and field the reference tables has a description (its own, or Bevy's): one problem a declaration, however many+// pages table it+const undescribed = new Set<string>()+function described(s: import("typescript").Symbol, bevy: BevyDoc | undefined): string {+ const d = plain(propDoc(s, bevy))+ const decl = s.declarations?.[0]+ if (!d && decl) {+ const sf = decl.getSourceFile()+ const at = `${path.relative(ROOT, sf.fileName)}:${sf.getLineAndCharacterOfPosition(decl.getStart()).line + 1}`+ if (!undescribed.has(at + s.name)) { undescribed.add(at + s.name); problems.push(`${at}: ${s.name} has no doc comment`) }+ }+ return d+}+/** a constructor's doc comment, a problem without one */+function ctorDoc(c: import("typescript").Signature, cls: string): string {+ const decl = c.getDeclaration()+ const d = decl ? plain(ts.displayPartsToString(c.getDocumentationComment(checker)).trim()) : ""+ if (!d && decl) {+ const sf = decl.getSourceFile()+ const at = `${path.relative(ROOT, sf.fileName)}:${sf.getLineAndCharacterOfPosition(decl.getStart()).line + 1}`+ if (!undescribed.has(at)) { undescribed.add(at); problems.push(`${at}: new ${cls} has no doc comment`) }+ }+ return d+}entries.forEach((file, i) => {const entry = entryName(file)@@ -237,11 +267,16 @@ entries.forEach((file, i) => {const doc0 = docOf(sym)const { text, bevy: tags } = doc0.text ? doc0 : wrappedDoc(sym).text ? { text: wrappedDoc(sym).text, bevy: [...doc0.bevy, ...wrappedDoc(sym).bevy] } : doc0const bv = bevyOf(ex.name, tags)+ // a props type (StandardMaterialProps) is its component's Bevy type's fields: the component's tags stand for it+ const of = /Props$/.test(ex.name) ? exps.find((e) => e.name === ex.name.slice(0, -5)) : undefined+ const bvFields = bv ?? (of ? bevyOf(of.name, [...docOf(real(of)).bevy, ...wrappedDoc(real(of)).bevy]) : null)const md: string[] = [`### \`${ex.name}\``, ""]if (text) md.push(plain(text), "")- else if (bv?.doc.doc) md.push(`*From Bevy's \`${bv.path}\`:* ${bv.doc.doc}`, "")- if (tags.length) md.push(`Bevy: ${tags.map((t) => "`" + t + "`").join(", ")}.`, "")- else if (bv && text) md.push(`Bevy: \`${bv.path}\`.`, "")+ else if (bv?.doc.doc) md.push(`*From ${ownRust(bv.path) ? "raea's Rust" : "Bevy's"} \`${bv.path}\`:* ${bv.doc.doc}`, "")+ const bevyTags = tags.filter((t) => !ownRust(t)), rustTags = tags.filter(ownRust)+ if (bevyTags.length) md.push(`Bevy: ${bevyTags.map((t) => "`" + t + "`").join(", ")}.`, "")+ else if (bv && text && !rustTags.length) md.push(`Bevy: \`${bv.path}\`.`, "")+ if (rustTags.length) md.push(`Rust: ${rustTags.map((t) => "`" + t + "`").join(", ")}.`, "")// a function's or hook's signatures, as the checker prints them (the first three overloads)if ((kind === "function" || kind === "hook") && sym.valueDeclaration) {const sigs = checker.getTypeOfSymbolAtLocation(sym, sym.valueDeclaration).getCallSignatures().slice(0, 3)@@ -260,10 +295,10 @@ entries.forEach((file, i) => {const t = checker.getTypeOfSymbolAtLocation(m, d)const sig = t.getCallSignatures()[0]const shown = sig ? `${on}${m.name}${oneLine(checker.signatureToString(sig, undefined, fmt))}` : `${on}${m.name}: ${oneLine(checker.typeToString(t, undefined, fmt))}`- rows.push(`| \`${cell(shown.length > 160 ? shown.slice(0, 157) + "…" : shown)}\` | ${cell(plain(docOf(m).text)) || "–"} |`)+ rows.push(`| \`${cell(shown.length > 160 ? shown.slice(0, 157) + "…" : shown)}\` | ${cell(described(m, bv?.doc)) || "–"} |`)}const statics = checker.getTypeOfSymbolAtLocation(sym, sym.valueDeclaration)- for (const c of statics.getConstructSignatures().slice(0, 2)) if (c.getParameters().length) rows.push(`| \`${cell(`new ${ex.name}${oneLine(checker.signatureToString(c, undefined, fmt)).replace(/:\s*[^:)]*$/, "")}`)}\` | ${cell(plain(docOf(c.getDeclaration()?.symbol ?? sym).text)) || "–"} |`)+ for (const c of statics.getConstructSignatures().slice(0, 2)) if (c.getParameters().length && !(c.getDeclaration() && ts.getCombinedModifierFlags(c.getDeclaration() as import("typescript").Declaration) & ts.ModifierFlags.Private)) rows.push(`| \`${cell(`new ${ex.name}${oneLine(checker.signatureToString(c, undefined, fmt)).replace(/:\s*[^:)]*$/, "")}`)}\` | ${cell(ctorDoc(c, ex.name)) || "–"} |`)for (const m of checker.getPropertiesOfType(statics)) member(m, `${ex.name}.`)for (const m of checker.getPropertiesOfType(checker.getDeclaredTypeOfSymbol(sym))) member(m, ".")if (rows.length) md.push("| Member | What it does |", "| --- | --- |", ...rows.slice(0, 60), "")@@ -281,7 +316,7 @@ entries.forEach((file, i) => {md.push("| Prop | Type | What it does |", "| --- | --- | --- |")for (const s of own) {const opt = s.flags & ts.SymbolFlags.Optional ? "" : " (required)"- md.push(`| \`${s.name}\`${opt} | \`${cell(typeText(s))}\` | ${cell(plain(propDoc(s, bv?.doc))) || "–"} |`)+ md.push(`| \`${s.name}\`${opt} | \`${cell(typeText(s))}\` | ${cell(described(s, bv?.doc)) || "–"} |`)}md.push("")}@@ -297,7 +332,7 @@ entries.forEach((file, i) => {const fields = ts.isInterfaceDeclaration(d) ? checker.getPropertiesOfType(checker.getDeclaredTypeOfSymbol(sym)) : []if (fields.length && fields.length <= 40) {md.push("| Field | Type | What it is |", "| --- | --- | --- |")- for (const s of fields) md.push(`| \`${s.name}\`${s.flags & ts.SymbolFlags.Optional ? "" : " (required)"} | \`${cell(typeText(s))}\` | ${cell(plain(propDoc(s, bv?.doc))) || "–"} |`)+ for (const s of fields) md.push(`| \`${s.name}\`${s.flags & ts.SymbolFlags.Optional ? "" : " (required)"} | \`${cell(typeText(s))}\` | ${cell(described(s, bvFields?.doc)) || "–"} |`)md.push("")} else if (ts.isTypeAliasDeclaration(d)) {const t = oneLine(d.type.getText())