No description provided yet.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2module edui.widgets.livePreview The ONE live preview session, following the asset selection. Every surface that shows the selected asset live — the Preview panel, the Inspector's Preview section — reads this module instead of holding its own rig, so one camera and one subject serve them all. The session starts when the asset selection lands, swaps with it, and tears down when it clears. `subscribe` tells a consumer the session's state moved (started, came live, failed) so it can rebuild; `epoch` folds that state into a build signature.
notify( ) → void
subscribe(fn: () → void
Register a consumer's rebuild closure, called whenever the session's state moves. Registration is for the VM lifetime.
| arg | type | description |
|---|---|---|
| fn | ( |
examples
livePreview.subscribe(function() edui.shell.refreshPanel("preview") end)epoch( ) → number return epoch end
The monotonic state counter — fold into a build signature so the session coming live is a change the panel's no-change gate can see.
session( ) → any return session end
The live session for the selected asset, or nil while there is none (nothing selected, still starting, or the type has no live path).
name( ) → string return sessionName end
The selected asset's display name once known, else "".
assetId( ) → string
The guid the session (or attempt) is for, or nil.
isStarting( ) → boolean return starting end
True while a session is assembling.
reason( ) → string
Why the last attempt produced no live session, or nil.
disposeSession( ) → void
ensure( ) → void
Bring the session in line with the asset selection: a new primary disposes the old rig and assembles one for it, a cleared selection tears down. Idempotent — consumers call it from their builds; the selection subscription below calls it on every change.
orbitSession(s: any, d: any) → void
Apply a pointer-drag delta as an orbit of `s`, a live preview session.
| arg | type | description |
|---|---|---|
| s | any | |
| d | any |
zoomSession(s: any, d: any) → void
Apply a wheel delta as a zoom of `s`, a live preview session. Wheel-up moves in.
| arg | type | description |
|---|---|---|
| s | any | |
| d | any |
dragOrbit(d: any) → void
Apply a pointer-drag delta as an orbit — the shared handler every live-preview surface hands its `onDrag`.
| arg | type | description |
|---|---|---|
| d | any |
scrollZoom(d: any) → void
Apply a wheel delta as a zoom — the shared handler every live-preview surface hands its `onScroll`. Wheel-up moves in.
| arg | type | description |
|---|---|---|
| d | any |
zoomBy(factor: number) → void
Zoom by a plain factor (toolbar buttons).
| arg | type | description |
|---|---|---|
| factor | number |
resetView( ) → void
Back to the framed opening view.
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ quality × 0.35
+ performance × 0.25
± compat factor
Usability ratings
Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".
Scoped to this part · feeds back into the world's score.