You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f2632e9
Browse filesBrowse the repository at this point in the historyBrowse files
Host core: a headless view model every UI shares (#112)
* Host core: a headless view model every UI shares
Which views a host offers and which controls show were worked out separately in the default UI, the VS Code UI and
the Playground's Primer UI, and the copies had drifted. They are now the core's (`view-model.ts`), with one default
each and typed options to change it:
- `offeredViews`, `shownView`, `recoveryView`, `viewLabel` and the `useViewChoice` hook;
- `viewControls(projection, {features, view, playbackInViews?})`: the modes and mode switch, scope, playback, zoom and
the varied toggle;
- `scopeChoice`: the scope switch's options, titles and "nothing hidden" note;
- `summaryToggle`, `summaryToggleTitle` and `summaryFactTitle`;
- `ProjectionFeatures`, `featureOn`, `offeredModes` and `rendererLabel`, moved from the default UI.
Playback now shows only in the Animated mode, in every view, as the VS Code UI and Primer already did; the default UI
showed it beside the table and text views in every mode. `playbackInViews: 'always'` keeps that. The default UI's zoom
group, like the VS Code UI's, now also needs `rendererControls`.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
* VS Code UI: playback honours playbackInViews: 'always' beside the table and text views
`viewControls` could ask for playback beside the table and text views in every mode, but the VS Code UI's `Playback`
and its Space shortcut still required the Animated mode. Both now take `always` from the toolbar, as the default UI's
`Playback` does.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
0 commit comments