mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 12:44:11 -10:00
The SDK reference's tables had 1,476 empty cells. Each prop, field and class member the pages table now has a doc
comment in its source, or Bevy's own field doc where the SDK mirrors a Bevy type:
- doc comments on 773 declarations across 84 SDK files (song maps, goo and rigid bodies, matchmove, the clock and
timeline, state machines, materials and their extensions, the 2D shapes, bevy_ui and feathers wrappers, colours)
- inline prop types pulled out as named, documented interfaces (EchoesProps, DaylightProps, UiScaleProps, ...), so
each prop can carry its own doc
- types raea-bevy-sdk generates from raea's crates (/** raea_core_animate::spec::AnimKey */) take their field docs
from the Rust source, shown as raea's ("Rust: ..."), not Bevy's; core/animate's spec.rs gains the missing ///
- a props type (StandardMaterialProps) takes its component's @bevy fields; the colour classes gain their @bevy tags
- tools/manual-ref/sdk.ts check now fails on any prop, field or member without a description, as cli.ts does for
flags; tools/manual-ref.sh links an export's node_modules (RAEA_MODULES) so it can run in L1's lane export
2.3 KiB
2.3 KiB
title, summary, order, sources
| title | summary | order | sources | |
|---|---|---|---|---|
| raea/dev_tools | Checks and lints you can run from code: a motion performance's lint report. | 102 |
|
motionLint checks a performance recorded with trace: true against its motion library and reports what breaks the
rules, such as moves that overlap or land off the beat; lintReport formats the result. Run them from a test or
from raea run.
import { lintReport, motionLint } from "raea/dev_tools"
raea/dev_tools exports 2 functions, 3 types. Bevy's counterpart: bevy_dev_tools, bevy_diagnostic. Source: sdk/raea/src/dev_tools.ts.
Functions
lintReport
A lint as lines: a count by stage and kind, then each finding.
function lintReport(l: Lint, o?: { max?: number; }): string
motionLint
Lint a performance made with trace: true (see the head of the file).
function motionLint(lib: MotionLibrary, perf: Performance, o?: { margin?: number; }): Lint
Types
Finding
| Field | Type | What it is |
|---|---|---|
frame (required) |
number |
first and peak frames |
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 |
what the library allows |
stage (required) |
Stage |
the first stage that shows it |
causes (required) |
string[] |
what happened within three frames of it |
Lint
| Field | Type | What it is |
|---|---|---|
findings (required) |
Finding[] |
what's wrong, each with its frames, joint and cause |
frames (required) |
number |
how many frames were checked |
Stage
type Stage = "clip" | "blend" | "plant" | "elbows" | "gaze"