mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 12:44:11 -10:00
A composition's Image (sdk/raea frame-globals.ts, installed where the runtime has none) fired load but kept width, height, naturalWidth and naturalHeight at 0, so code sizing a canvas from it made a 0-high canvas, and a CanvasTexture made from that was refused as an undetermined image format. Now, when its load fires, naturalWidth and naturalHeight are the picture's size: a data: URL's from its header (@raea/ui's sniffSize), any other src's from the host's asset.load, which finds staticFile's /media/ paths as <Img> does (media/, assets/, public/) and fetches http URLs through raea's cache. width and height are the ones given (the constructor's, or set) else the natural size, as in a browser. A file the host can't find fires error and onerror instead of load, and only the last src set fires. The manual's web-components guide says so. Co-authored-by: shinyobjectz <[email protected]>
docs
Documentation that spans more than one folder.
- settings.md: every setting raea reads (the agent's model provider, the optional API for generated music and speech, checks), and where they go.
Each folder's own README describes that part of the code. Behaviour specs written in Gherkin sit beside the code they
specify, for example sdk/shell/shell.feature and
sdk/raea/spec/motion.feature.