TypeScript Views¶
Views written in TypeScript draw every live view kind in the browser, with Canvas 2D where needed, when WebGPU gives no adapter.
| Field | Value |
|---|---|
| ID | EMB-03 |
| Status | Shipped |
| Scope | Core |
| Pillar | Web and Embedding |
| Sprint | None |
| Depends On | Browser Elements (EMB-05) |
| Unblocks | Scene Fallback Without WebGPU (EMB-17) |
| Docs | Browser Elements, <caliper-view> |
| Branches | None |
| Design | None |
Coverage Ledger¶
- Branch
sprint2-webci, 0 commits that main lacks (3 ahead of the merge base). Work on browser tests that tolerate a transient drawn state, which reached main through a pull request (patch ids and subjects match). - Branch
sprint4-integ3, 8343711b, d6546edd, 3b1b0cb6, e33eadb3. Step 9, the TypeScript WebGPU views removed, so that the WebAssembly views are the browser's one WebGPU path. design/renderer-core.mdon the branchsprint4, under The TypeScript views in the browser. Step 9 removes the TypeScript WebGPU views and keeps Canvas 2D views as the fallback.- design/roadmap.md, under Streaming and embedding. Built so far: embedding package, network streaming over protocol v3 with data views, caliper.serve(), notebook widgets, 3.1 controls, app and viewer attach by link, hub, browser views.
- design/spec-format.md, under What is built of the browser viewer. The page is the entry web/src/spec/ built into one spec.html embedded in the executable, with a layout port to TypeScript and the native look drawn on a canvas.
- design/streaming-and-embedding.md, under The web viewer. Order 1, done: Caliper's real views in notebooks and browsers for every live view kind.
design/web-geometry.mdon the branchsprint4, under What is built and what is planned. The TypeScript package web/src has a WebGPU points renderer and Canvas 2D views that the migration trims.- Browser Elements, <caliper-view>. The caliper-view element draws one live view of a stream, with a renderer attribute of auto, wasm or ts.
- Pull request #14. Pull request 14 (merged) delivers sprint 2: wire protocol v3 and 3.1, Caliper LIB serving, data views, browser views, the hub, the app attaching to a stream, interactive controls, Caliper API v0, macOS 14 target and CI for the browser views.
- Orchestrators' notes,
sprint2/PR.md. Browser views: caliper-view and caliper-controls elements with WebAssembly views on WebGPU and TypeScript views on Canvas 2D.