@vibefield/puppeteer-views 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/bar/InstrumentBar.d.ts +81 -0
- package/dist/bar/InstrumentBar.d.ts.map +1 -0
- package/dist/bar/InstrumentBar.js +86 -0
- package/dist/bar/InstrumentBar.js.map +1 -0
- package/dist/bar/ProfileTabs.d.ts +24 -0
- package/dist/bar/ProfileTabs.d.ts.map +1 -0
- package/dist/bar/ProfileTabs.js +141 -0
- package/dist/bar/ProfileTabs.js.map +1 -0
- package/dist/chrome/ChromeBoundary.d.ts +60 -0
- package/dist/chrome/ChromeBoundary.d.ts.map +1 -0
- package/dist/chrome/ChromeBoundary.js +70 -0
- package/dist/chrome/ChromeBoundary.js.map +1 -0
- package/dist/chrome/stage.d.ts +8 -0
- package/dist/chrome/stage.d.ts.map +1 -0
- package/dist/chrome/stage.js +8 -0
- package/dist/chrome/stage.js.map +1 -0
- package/dist/colour/pane-colours.d.ts +21 -0
- package/dist/colour/pane-colours.d.ts.map +1 -0
- package/dist/colour/pane-colours.js +25 -0
- package/dist/colour/pane-colours.js.map +1 -0
- package/dist/colour/project-tint.d.ts +23 -0
- package/dist/colour/project-tint.d.ts.map +1 -0
- package/dist/colour/project-tint.js +100 -0
- package/dist/colour/project-tint.js.map +1 -0
- package/dist/deck/DeckFrames.d.ts +71 -0
- package/dist/deck/DeckFrames.d.ts.map +1 -0
- package/dist/deck/DeckFrames.js +50 -0
- package/dist/deck/DeckFrames.js.map +1 -0
- package/dist/deck/PaneFrame.d.ts +80 -0
- package/dist/deck/PaneFrame.d.ts.map +1 -0
- package/dist/deck/PaneFrame.js +118 -0
- package/dist/deck/PaneFrame.js.map +1 -0
- package/dist/deck/completed-agent-panes.d.ts +24 -0
- package/dist/deck/completed-agent-panes.d.ts.map +1 -0
- package/dist/deck/completed-agent-panes.js +72 -0
- package/dist/deck/completed-agent-panes.js.map +1 -0
- package/dist/deck/deck-zoom.d.ts +40 -0
- package/dist/deck/deck-zoom.d.ts.map +1 -0
- package/dist/deck/deck-zoom.js +200 -0
- package/dist/deck/deck-zoom.js.map +1 -0
- package/dist/deck/index.d.ts +8 -0
- package/dist/deck/index.d.ts.map +1 -0
- package/dist/deck/index.js +13 -0
- package/dist/deck/index.js.map +1 -0
- package/dist/deck/pane-elements.d.ts +24 -0
- package/dist/deck/pane-elements.d.ts.map +1 -0
- package/dist/deck/pane-elements.js +73 -0
- package/dist/deck/pane-elements.js.map +1 -0
- package/dist/deck/pane-frame.d.ts +88 -0
- package/dist/deck/pane-frame.d.ts.map +1 -0
- package/dist/deck/pane-frame.js +51 -0
- package/dist/deck/pane-frame.js.map +1 -0
- package/dist/deck/unused-pane-sessions.d.ts +24 -0
- package/dist/deck/unused-pane-sessions.d.ts.map +1 -0
- package/dist/deck/unused-pane-sessions.js +75 -0
- package/dist/deck/unused-pane-sessions.js.map +1 -0
- package/dist/deck/use-deck-zoom.d.ts +10 -0
- package/dist/deck/use-deck-zoom.d.ts.map +1 -0
- package/dist/deck/use-deck-zoom.js +31 -0
- package/dist/deck/use-deck-zoom.js.map +1 -0
- package/dist/find/FindSheet.d.ts +23 -0
- package/dist/find/FindSheet.d.ts.map +1 -0
- package/dist/find/FindSheet.js +197 -0
- package/dist/find/FindSheet.js.map +1 -0
- package/dist/find/find-agent.d.ts +35 -0
- package/dist/find/find-agent.d.ts.map +1 -0
- package/dist/find/find-agent.js +2 -0
- package/dist/find/find-agent.js.map +1 -0
- package/dist/find/find-model.d.ts +93 -0
- package/dist/find/find-model.d.ts.map +1 -0
- package/dist/find/find-model.js +372 -0
- package/dist/find/find-model.js.map +1 -0
- package/dist/find/history-port.d.ts +78 -0
- package/dist/find/history-port.d.ts.map +1 -0
- package/dist/find/history-port.js +9 -0
- package/dist/find/history-port.js.map +1 -0
- package/dist/icons/ServiceMark.d.ts +32 -0
- package/dist/icons/ServiceMark.d.ts.map +1 -0
- package/dist/icons/ServiceMark.js +57 -0
- package/dist/icons/ServiceMark.js.map +1 -0
- package/dist/icons/profile-glyph-suggest.d.ts +8 -0
- package/dist/icons/profile-glyph-suggest.d.ts.map +1 -0
- package/dist/icons/profile-glyph-suggest.js +42 -0
- package/dist/icons/profile-glyph-suggest.js.map +1 -0
- package/dist/icons/service-marks.d.ts +5 -0
- package/dist/icons/service-marks.d.ts.map +1 -0
- package/dist/icons/service-marks.js +81 -0
- package/dist/icons/service-marks.js.map +1 -0
- package/dist/index.d.ts +60 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +86 -0
- package/dist/index.js.map +1 -0
- package/dist/lab/lab-clock.d.ts +11 -0
- package/dist/lab/lab-clock.d.ts.map +1 -0
- package/dist/lab/lab-clock.js +48 -0
- package/dist/lab/lab-clock.js.map +1 -0
- package/dist/lab/lab-model.d.ts +10 -0
- package/dist/lab/lab-model.d.ts.map +1 -0
- package/dist/lab/lab-model.js +146 -0
- package/dist/lab/lab-model.js.map +1 -0
- package/dist/lab/lab-stage.d.ts +72 -0
- package/dist/lab/lab-stage.d.ts.map +1 -0
- package/dist/lab/lab-stage.js +201 -0
- package/dist/lab/lab-stage.js.map +1 -0
- package/dist/lab/lab-world.d.ts +33 -0
- package/dist/lab/lab-world.d.ts.map +1 -0
- package/dist/lab/lab-world.js +394 -0
- package/dist/lab/lab-world.js.map +1 -0
- package/dist/lab/view-lab.css +98 -0
- package/dist/launcher/DeckLaunchers.d.ts +92 -0
- package/dist/launcher/DeckLaunchers.d.ts.map +1 -0
- package/dist/launcher/DeckLaunchers.js +377 -0
- package/dist/launcher/DeckLaunchers.js.map +1 -0
- package/dist/launcher/PaneLaunch.d.ts +50 -0
- package/dist/launcher/PaneLaunch.d.ts.map +1 -0
- package/dist/launcher/PaneLaunch.js +318 -0
- package/dist/launcher/PaneLaunch.js.map +1 -0
- package/dist/launcher/PaneLaunchChrome.d.ts +49 -0
- package/dist/launcher/PaneLaunchChrome.d.ts.map +1 -0
- package/dist/launcher/PaneLaunchChrome.js +32 -0
- package/dist/launcher/PaneLaunchChrome.js.map +1 -0
- package/dist/launcher/PaneLauncher.d.ts +97 -0
- package/dist/launcher/PaneLauncher.d.ts.map +1 -0
- package/dist/launcher/PaneLauncher.js +349 -0
- package/dist/launcher/PaneLauncher.js.map +1 -0
- package/dist/launcher/PaneLauncherChrome.d.ts +97 -0
- package/dist/launcher/PaneLauncherChrome.d.ts.map +1 -0
- package/dist/launcher/PaneLauncherChrome.js +131 -0
- package/dist/launcher/PaneLauncherChrome.js.map +1 -0
- package/dist/launcher/index.d.ts +9 -0
- package/dist/launcher/index.d.ts.map +1 -0
- package/dist/launcher/index.js +16 -0
- package/dist/launcher/index.js.map +1 -0
- package/dist/launcher/launch-model.d.ts +162 -0
- package/dist/launcher/launch-model.d.ts.map +1 -0
- package/dist/launcher/launch-model.js +169 -0
- package/dist/launcher/launch-model.js.map +1 -0
- package/dist/launcher/launcher-model.d.ts +268 -0
- package/dist/launcher/launcher-model.d.ts.map +1 -0
- package/dist/launcher/launcher-model.js +443 -0
- package/dist/launcher/launcher-model.js.map +1 -0
- package/dist/launcher/launcher-port.d.ts +115 -0
- package/dist/launcher/launcher-port.d.ts.map +1 -0
- package/dist/launcher/launcher-port.js +12 -0
- package/dist/launcher/launcher-port.js.map +1 -0
- package/dist/monitor/agent-status.d.ts +13 -0
- package/dist/monitor/agent-status.d.ts.map +1 -0
- package/dist/monitor/agent-status.js +5 -0
- package/dist/monitor/agent-status.js.map +1 -0
- package/dist/monitor/agents.d.ts +6 -0
- package/dist/monitor/agents.d.ts.map +1 -0
- package/dist/monitor/agents.js +21 -0
- package/dist/monitor/agents.js.map +1 -0
- package/dist/monitor/cost-format.d.ts +3 -0
- package/dist/monitor/cost-format.d.ts.map +1 -0
- package/dist/monitor/cost-format.js +12 -0
- package/dist/monitor/cost-format.js.map +1 -0
- package/dist/monitor/folder-name.d.ts +3 -0
- package/dist/monitor/folder-name.d.ts.map +1 -0
- package/dist/monitor/folder-name.js +6 -0
- package/dist/monitor/folder-name.js.map +1 -0
- package/dist/monitor/palette.d.ts +94 -0
- package/dist/monitor/palette.d.ts.map +1 -0
- package/dist/monitor/palette.js +157 -0
- package/dist/monitor/palette.js.map +1 -0
- package/dist/monitor/parameters.d.ts +33 -0
- package/dist/monitor/parameters.d.ts.map +1 -0
- package/dist/monitor/parameters.js +53 -0
- package/dist/monitor/parameters.js.map +1 -0
- package/dist/monitor/recede.d.ts +14 -0
- package/dist/monitor/recede.d.ts.map +1 -0
- package/dist/monitor/recede.js +35 -0
- package/dist/monitor/recede.js.map +1 -0
- package/dist/monitor/registry.d.ts +14 -0
- package/dist/monitor/registry.d.ts.map +1 -0
- package/dist/monitor/registry.js +36 -0
- package/dist/monitor/registry.js.map +1 -0
- package/dist/monitor/remote-write.d.ts +16 -0
- package/dist/monitor/remote-write.d.ts.map +1 -0
- package/dist/monitor/remote-write.js +21 -0
- package/dist/monitor/remote-write.js.map +1 -0
- package/dist/monitor/types.d.ts +205 -0
- package/dist/monitor/types.d.ts.map +1 -0
- package/dist/monitor/types.js +2 -0
- package/dist/monitor/types.js.map +1 -0
- package/dist/styles/bar.css +396 -0
- package/dist/styles/deck-frame.css +439 -0
- package/dist/styles/deck-zoom.css +70 -0
- package/dist/styles/find-sheet.css +270 -0
- package/dist/styles/pane-launcher.css +955 -0
- package/dist/styles/usage.css +368 -0
- package/dist/styles/views.css +12 -0
- package/dist/usage/UsageColumn.d.ts +8 -0
- package/dist/usage/UsageColumn.d.ts.map +1 -0
- package/dist/usage/UsageColumn.js +133 -0
- package/dist/usage/UsageColumn.js.map +1 -0
- package/dist/usage/account-usage-port.d.ts +12 -0
- package/dist/usage/account-usage-port.d.ts.map +1 -0
- package/dist/usage/account-usage-port.js +2 -0
- package/dist/usage/account-usage-port.js.map +1 -0
- package/dist/usage/account-usage.d.ts +86 -0
- package/dist/usage/account-usage.d.ts.map +1 -0
- package/dist/usage/account-usage.js +262 -0
- package/dist/usage/account-usage.js.map +1 -0
- package/dist/views/list/AgentList.d.ts +4 -0
- package/dist/views/list/AgentList.d.ts.map +1 -0
- package/dist/views/list/AgentList.js +101 -0
- package/dist/views/list/AgentList.js.map +1 -0
- package/dist/views/list/ListSpawnMenu.d.ts +20 -0
- package/dist/views/list/ListSpawnMenu.d.ts.map +1 -0
- package/dist/views/list/ListSpawnMenu.js +143 -0
- package/dist/views/list/ListSpawnMenu.js.map +1 -0
- package/dist/views/list/index.d.ts +8 -0
- package/dist/views/list/index.d.ts.map +1 -0
- package/dist/views/list/index.js +43 -0
- package/dist/views/list/index.js.map +1 -0
- package/dist/views/list/lab/main.d.ts +2 -0
- package/dist/views/list/lab/main.d.ts.map +1 -0
- package/dist/views/list/lab/main.js +25 -0
- package/dist/views/list/lab/main.js.map +1 -0
- package/dist/views/list/list-parameters.d.ts +9 -0
- package/dist/views/list/list-parameters.d.ts.map +1 -0
- package/dist/views/list/list-parameters.js +27 -0
- package/dist/views/list/list-parameters.js.map +1 -0
- package/dist/views/list/list.css +387 -0
- package/dist/views/rain/RainView.d.ts +4 -0
- package/dist/views/rain/RainView.d.ts.map +1 -0
- package/dist/views/rain/RainView.js +282 -0
- package/dist/views/rain/RainView.js.map +1 -0
- package/dist/views/rain/index.d.ts +8 -0
- package/dist/views/rain/index.d.ts.map +1 -0
- package/dist/views/rain/index.js +53 -0
- package/dist/views/rain/index.js.map +1 -0
- package/dist/views/rain/lab/main.d.ts +2 -0
- package/dist/views/rain/lab/main.d.ts.map +1 -0
- package/dist/views/rain/lab/main.js +26 -0
- package/dist/views/rain/lab/main.js.map +1 -0
- package/dist/views/rain/rain-parameters.d.ts +15 -0
- package/dist/views/rain/rain-parameters.d.ts.map +1 -0
- package/dist/views/rain/rain-parameters.js +52 -0
- package/dist/views/rain/rain-parameters.js.map +1 -0
- package/dist/views/rain/rain-streams.d.ts +44 -0
- package/dist/views/rain/rain-streams.d.ts.map +1 -0
- package/dist/views/rain/rain-streams.js +101 -0
- package/dist/views/rain/rain-streams.js.map +1 -0
- package/dist/views/rain/rain.css +200 -0
- package/dist/views/spend/SpendView.d.ts +30 -0
- package/dist/views/spend/SpendView.d.ts.map +1 -0
- package/dist/views/spend/SpendView.js +645 -0
- package/dist/views/spend/SpendView.js.map +1 -0
- package/dist/views/spend/index.d.ts +8 -0
- package/dist/views/spend/index.d.ts.map +1 -0
- package/dist/views/spend/index.js +54 -0
- package/dist/views/spend/index.js.map +1 -0
- package/dist/views/spend/lab/main.d.ts +2 -0
- package/dist/views/spend/lab/main.d.ts.map +1 -0
- package/dist/views/spend/lab/main.js +237 -0
- package/dist/views/spend/lab/main.js.map +1 -0
- package/dist/views/spend/lab/spend-fixtures.d.ts +72 -0
- package/dist/views/spend/lab/spend-fixtures.d.ts.map +1 -0
- package/dist/views/spend/lab/spend-fixtures.js +412 -0
- package/dist/views/spend/lab/spend-fixtures.js.map +1 -0
- package/dist/views/spend/spend-ink.d.ts +18 -0
- package/dist/views/spend/spend-ink.d.ts.map +1 -0
- package/dist/views/spend/spend-ink.js +50 -0
- package/dist/views/spend/spend-ink.js.map +1 -0
- package/dist/views/spend/spend-list.d.ts +48 -0
- package/dist/views/spend/spend-list.d.ts.map +1 -0
- package/dist/views/spend/spend-list.js +93 -0
- package/dist/views/spend/spend-list.js.map +1 -0
- package/dist/views/spend/spend-paint.d.ts +88 -0
- package/dist/views/spend/spend-paint.d.ts.map +1 -0
- package/dist/views/spend/spend-paint.js +225 -0
- package/dist/views/spend/spend-paint.js.map +1 -0
- package/dist/views/spend/spend-parameters.d.ts +11 -0
- package/dist/views/spend/spend-parameters.d.ts.map +1 -0
- package/dist/views/spend/spend-parameters.js +27 -0
- package/dist/views/spend/spend-parameters.js.map +1 -0
- package/dist/views/spend/spend-scale.d.ts +43 -0
- package/dist/views/spend/spend-scale.d.ts.map +1 -0
- package/dist/views/spend/spend-scale.js +71 -0
- package/dist/views/spend/spend-scale.js.map +1 -0
- package/dist/views/spend/spend-series.d.ts +91 -0
- package/dist/views/spend/spend-series.d.ts.map +1 -0
- package/dist/views/spend/spend-series.js +212 -0
- package/dist/views/spend/spend-series.js.map +1 -0
- package/dist/views/spend/spend-words.d.ts +82 -0
- package/dist/views/spend/spend-words.d.ts.map +1 -0
- package/dist/views/spend/spend-words.js +164 -0
- package/dist/views/spend/spend-words.js.map +1 -0
- package/dist/views/spend/spend.css +585 -0
- package/dist/views/swarm/AgentSwarm.d.ts +4 -0
- package/dist/views/swarm/AgentSwarm.d.ts.map +1 -0
- package/dist/views/swarm/AgentSwarm.js +969 -0
- package/dist/views/swarm/AgentSwarm.js.map +1 -0
- package/dist/views/swarm/bloom/SpawnBloom.d.ts +26 -0
- package/dist/views/swarm/bloom/SpawnBloom.d.ts.map +1 -0
- package/dist/views/swarm/bloom/SpawnBloom.js +332 -0
- package/dist/views/swarm/bloom/SpawnBloom.js.map +1 -0
- package/dist/views/swarm/bloom/birth.d.ts +70 -0
- package/dist/views/swarm/bloom/birth.d.ts.map +1 -0
- package/dist/views/swarm/bloom/birth.js +89 -0
- package/dist/views/swarm/bloom/birth.js.map +1 -0
- package/dist/views/swarm/bloom/canvas-measure.d.ts +11 -0
- package/dist/views/swarm/bloom/canvas-measure.d.ts.map +1 -0
- package/dist/views/swarm/bloom/canvas-measure.js +37 -0
- package/dist/views/swarm/bloom/canvas-measure.js.map +1 -0
- package/dist/views/swarm/bloom/constants.d.ts +93 -0
- package/dist/views/swarm/bloom/constants.d.ts.map +1 -0
- package/dist/views/swarm/bloom/constants.js +94 -0
- package/dist/views/swarm/bloom/constants.js.map +1 -0
- package/dist/views/swarm/bloom/field-frame.d.ts +69 -0
- package/dist/views/swarm/bloom/field-frame.d.ts.map +1 -0
- package/dist/views/swarm/bloom/field-frame.js +104 -0
- package/dist/views/swarm/bloom/field-frame.js.map +1 -0
- package/dist/views/swarm/bloom/geometry.d.ts +187 -0
- package/dist/views/swarm/bloom/geometry.d.ts.map +1 -0
- package/dist/views/swarm/bloom/geometry.js +379 -0
- package/dist/views/swarm/bloom/geometry.js.map +1 -0
- package/dist/views/swarm/bloom/index.d.ts +8 -0
- package/dist/views/swarm/bloom/index.d.ts.map +1 -0
- package/dist/views/swarm/bloom/index.js +13 -0
- package/dist/views/swarm/bloom/index.js.map +1 -0
- package/dist/views/swarm/bloom/menu.d.ts +5 -0
- package/dist/views/swarm/bloom/menu.d.ts.map +1 -0
- package/dist/views/swarm/bloom/menu.js +14 -0
- package/dist/views/swarm/bloom/menu.js.map +1 -0
- package/dist/views/swarm/bloom/model.d.ts +255 -0
- package/dist/views/swarm/bloom/model.d.ts.map +1 -0
- package/dist/views/swarm/bloom/model.js +678 -0
- package/dist/views/swarm/bloom/model.js.map +1 -0
- package/dist/views/swarm/bloom/scenarios.d.ts +7 -0
- package/dist/views/swarm/bloom/scenarios.d.ts.map +1 -0
- package/dist/views/swarm/bloom/scenarios.js +57 -0
- package/dist/views/swarm/bloom/scenarios.js.map +1 -0
- package/dist/views/swarm/bloom/spawn-bloom.css +407 -0
- package/dist/views/swarm/bloom/targeting.d.ts +60 -0
- package/dist/views/swarm/bloom/targeting.d.ts.map +1 -0
- package/dist/views/swarm/bloom/targeting.js +74 -0
- package/dist/views/swarm/bloom/targeting.js.map +1 -0
- package/dist/views/swarm/bloom/use-spawn-bloom.d.ts +100 -0
- package/dist/views/swarm/bloom/use-spawn-bloom.d.ts.map +1 -0
- package/dist/views/swarm/bloom/use-spawn-bloom.js +333 -0
- package/dist/views/swarm/bloom/use-spawn-bloom.js.map +1 -0
- package/dist/views/swarm/bloom/words.d.ts +73 -0
- package/dist/views/swarm/bloom/words.d.ts.map +1 -0
- package/dist/views/swarm/bloom/words.js +195 -0
- package/dist/views/swarm/bloom/words.js.map +1 -0
- package/dist/views/swarm/body-id.d.ts +13 -0
- package/dist/views/swarm/body-id.d.ts.map +1 -0
- package/dist/views/swarm/body-id.js +12 -0
- package/dist/views/swarm/body-id.js.map +1 -0
- package/dist/views/swarm/bubble-model.d.ts +128 -0
- package/dist/views/swarm/bubble-model.d.ts.map +1 -0
- package/dist/views/swarm/bubble-model.js +421 -0
- package/dist/views/swarm/bubble-model.js.map +1 -0
- package/dist/views/swarm/gpu/frame-layout.d.ts +52 -0
- package/dist/views/swarm/gpu/frame-layout.d.ts.map +1 -0
- package/dist/views/swarm/gpu/frame-layout.js +122 -0
- package/dist/views/swarm/gpu/frame-layout.js.map +1 -0
- package/dist/views/swarm/gpu/glyph-atlas.d.ts +63 -0
- package/dist/views/swarm/gpu/glyph-atlas.d.ts.map +1 -0
- package/dist/views/swarm/gpu/glyph-atlas.js +207 -0
- package/dist/views/swarm/gpu/glyph-atlas.js.map +1 -0
- package/dist/views/swarm/gpu/profile-icons.d.ts +4 -0
- package/dist/views/swarm/gpu/profile-icons.d.ts.map +1 -0
- package/dist/views/swarm/gpu/profile-icons.js +18 -0
- package/dist/views/swarm/gpu/profile-icons.js.map +1 -0
- package/dist/views/swarm/gpu/shaders/body.wgsl.d.ts +3 -0
- package/dist/views/swarm/gpu/shaders/body.wgsl.d.ts.map +1 -0
- package/dist/views/swarm/gpu/shaders/body.wgsl.js +162 -0
- package/dist/views/swarm/gpu/shaders/body.wgsl.js.map +1 -0
- package/dist/views/swarm/gpu/shaders/common.wgsl.d.ts +3 -0
- package/dist/views/swarm/gpu/shaders/common.wgsl.d.ts.map +1 -0
- package/dist/views/swarm/gpu/shaders/common.wgsl.js +171 -0
- package/dist/views/swarm/gpu/shaders/common.wgsl.js.map +1 -0
- package/dist/views/swarm/gpu/shaders/erase.wgsl.d.ts +3 -0
- package/dist/views/swarm/gpu/shaders/erase.wgsl.d.ts.map +1 -0
- package/dist/views/swarm/gpu/shaders/erase.wgsl.js +61 -0
- package/dist/views/swarm/gpu/shaders/erase.wgsl.js.map +1 -0
- package/dist/views/swarm/gpu/shaders/field.wgsl.d.ts +3 -0
- package/dist/views/swarm/gpu/shaders/field.wgsl.d.ts.map +1 -0
- package/dist/views/swarm/gpu/shaders/field.wgsl.js +47 -0
- package/dist/views/swarm/gpu/shaders/field.wgsl.js.map +1 -0
- package/dist/views/swarm/gpu/shaders/glow.wgsl.d.ts +3 -0
- package/dist/views/swarm/gpu/shaders/glow.wgsl.d.ts.map +1 -0
- package/dist/views/swarm/gpu/shaders/glow.wgsl.js +39 -0
- package/dist/views/swarm/gpu/shaders/glow.wgsl.js.map +1 -0
- package/dist/views/swarm/gpu/shaders/hub.wgsl.d.ts +3 -0
- package/dist/views/swarm/gpu/shaders/hub.wgsl.d.ts.map +1 -0
- package/dist/views/swarm/gpu/shaders/hub.wgsl.js +48 -0
- package/dist/views/swarm/gpu/shaders/hub.wgsl.js.map +1 -0
- package/dist/views/swarm/gpu/shaders/shadow.wgsl.d.ts +3 -0
- package/dist/views/swarm/gpu/shaders/shadow.wgsl.d.ts.map +1 -0
- package/dist/views/swarm/gpu/shaders/shadow.wgsl.js +37 -0
- package/dist/views/swarm/gpu/shaders/shadow.wgsl.js.map +1 -0
- package/dist/views/swarm/gpu/shaders/text.wgsl.d.ts +3 -0
- package/dist/views/swarm/gpu/shaders/text.wgsl.d.ts.map +1 -0
- package/dist/views/swarm/gpu/shaders/text.wgsl.js +51 -0
- package/dist/views/swarm/gpu/shaders/text.wgsl.js.map +1 -0
- package/dist/views/swarm/gpu/swarm-renderer.d.ts +155 -0
- package/dist/views/swarm/gpu/swarm-renderer.d.ts.map +1 -0
- package/dist/views/swarm/gpu/swarm-renderer.js +696 -0
- package/dist/views/swarm/gpu/swarm-renderer.js.map +1 -0
- package/dist/views/swarm/index.d.ts +9 -0
- package/dist/views/swarm/index.d.ts.map +1 -0
- package/dist/views/swarm/index.js +40 -0
- package/dist/views/swarm/index.js.map +1 -0
- package/dist/views/swarm/lab/fixtures.d.ts +148 -0
- package/dist/views/swarm/lab/fixtures.d.ts.map +1 -0
- package/dist/views/swarm/lab/fixtures.js +821 -0
- package/dist/views/swarm/lab/fixtures.js.map +1 -0
- package/dist/views/swarm/lab/lab.css +315 -0
- package/dist/views/swarm/lab/main.d.ts +2 -0
- package/dist/views/swarm/lab/main.d.ts.map +1 -0
- package/dist/views/swarm/lab/main.js +474 -0
- package/dist/views/swarm/lab/main.js.map +1 -0
- package/dist/views/swarm/physics/driver.d.ts +23 -0
- package/dist/views/swarm/physics/driver.d.ts.map +1 -0
- package/dist/views/swarm/physics/driver.js +68 -0
- package/dist/views/swarm/physics/driver.js.map +1 -0
- package/dist/views/swarm/physics/frame.d.ts +28 -0
- package/dist/views/swarm/physics/frame.d.ts.map +1 -0
- package/dist/views/swarm/physics/frame.js +47 -0
- package/dist/views/swarm/physics/frame.js.map +1 -0
- package/dist/views/swarm/physics/host.d.ts +28 -0
- package/dist/views/swarm/physics/host.d.ts.map +1 -0
- package/dist/views/swarm/physics/host.js +168 -0
- package/dist/views/swarm/physics/host.js.map +1 -0
- package/dist/views/swarm/physics/index.d.ts +6 -0
- package/dist/views/swarm/physics/index.d.ts.map +1 -0
- package/dist/views/swarm/physics/index.js +14 -0
- package/dist/views/swarm/physics/index.js.map +1 -0
- package/dist/views/swarm/physics/inline-driver.d.ts +27 -0
- package/dist/views/swarm/physics/inline-driver.d.ts.map +1 -0
- package/dist/views/swarm/physics/inline-driver.js +37 -0
- package/dist/views/swarm/physics/inline-driver.js.map +1 -0
- package/dist/views/swarm/physics/protocol.d.ts +125 -0
- package/dist/views/swarm/physics/protocol.d.ts.map +1 -0
- package/dist/views/swarm/physics/protocol.js +4 -0
- package/dist/views/swarm/physics/protocol.js.map +1 -0
- package/dist/views/swarm/physics/spawn-clamp.d.ts +11 -0
- package/dist/views/swarm/physics/spawn-clamp.d.ts.map +1 -0
- package/dist/views/swarm/physics/spawn-clamp.js +15 -0
- package/dist/views/swarm/physics/spawn-clamp.js.map +1 -0
- package/dist/views/swarm/physics/swarm-physics.worker.d.ts +2 -0
- package/dist/views/swarm/physics/swarm-physics.worker.d.ts.map +1 -0
- package/dist/views/swarm/physics/swarm-physics.worker.js +66 -0
- package/dist/views/swarm/physics/swarm-physics.worker.js.map +1 -0
- package/dist/views/swarm/physics/world.d.ts +174 -0
- package/dist/views/swarm/physics/world.d.ts.map +1 -0
- package/dist/views/swarm/physics/world.js +454 -0
- package/dist/views/swarm/physics/world.js.map +1 -0
- package/dist/views/swarm/swarm-parameters.d.ts +50 -0
- package/dist/views/swarm/swarm-parameters.d.ts.map +1 -0
- package/dist/views/swarm/swarm-parameters.js +103 -0
- package/dist/views/swarm/swarm-parameters.js.map +1 -0
- package/dist/views/swarm/swarm-theme.d.ts +5 -0
- package/dist/views/swarm/swarm-theme.d.ts.map +1 -0
- package/dist/views/swarm/swarm-theme.js +63 -0
- package/dist/views/swarm/swarm-theme.js.map +1 -0
- package/dist/views/swarm/swarm.css +136 -0
- package/dist/views/swarm/text-layout.d.ts +72 -0
- package/dist/views/swarm/text-layout.d.ts.map +1 -0
- package/dist/views/swarm/text-layout.js +76 -0
- package/dist/views/swarm/text-layout.js.map +1 -0
- package/dist/views/swarm/weight.d.ts +44 -0
- package/dist/views/swarm/weight.d.ts.map +1 -0
- package/dist/views/swarm/weight.js +57 -0
- package/dist/views/swarm/weight.js.map +1 -0
- package/dist/views/timeline/TimelineView.d.ts +9 -0
- package/dist/views/timeline/TimelineView.d.ts.map +1 -0
- package/dist/views/timeline/TimelineView.js +889 -0
- package/dist/views/timeline/TimelineView.js.map +1 -0
- package/dist/views/timeline/index.d.ts +11 -0
- package/dist/views/timeline/index.d.ts.map +1 -0
- package/dist/views/timeline/index.js +63 -0
- package/dist/views/timeline/index.js.map +1 -0
- package/dist/views/timeline/lab/main.d.ts +2 -0
- package/dist/views/timeline/lab/main.d.ts.map +1 -0
- package/dist/views/timeline/lab/main.js +114 -0
- package/dist/views/timeline/lab/main.js.map +1 -0
- package/dist/views/timeline/lab/timeline-fixtures.d.ts +31 -0
- package/dist/views/timeline/lab/timeline-fixtures.d.ts.map +1 -0
- package/dist/views/timeline/lab/timeline-fixtures.js +337 -0
- package/dist/views/timeline/lab/timeline-fixtures.js.map +1 -0
- package/dist/views/timeline/pulse-map.d.ts +63 -0
- package/dist/views/timeline/pulse-map.d.ts.map +1 -0
- package/dist/views/timeline/pulse-map.js +162 -0
- package/dist/views/timeline/pulse-map.js.map +1 -0
- package/dist/views/timeline/timeline-inks.d.ts +28 -0
- package/dist/views/timeline/timeline-inks.d.ts.map +1 -0
- package/dist/views/timeline/timeline-inks.js +35 -0
- package/dist/views/timeline/timeline-inks.js.map +1 -0
- package/dist/views/timeline/timeline-lanes.d.ts +139 -0
- package/dist/views/timeline/timeline-lanes.d.ts.map +1 -0
- package/dist/views/timeline/timeline-lanes.js +240 -0
- package/dist/views/timeline/timeline-lanes.js.map +1 -0
- package/dist/views/timeline/timeline-paint.d.ts +39 -0
- package/dist/views/timeline/timeline-paint.d.ts.map +1 -0
- package/dist/views/timeline/timeline-paint.js +242 -0
- package/dist/views/timeline/timeline-paint.js.map +1 -0
- package/dist/views/timeline/timeline-parameters.d.ts +11 -0
- package/dist/views/timeline/timeline-parameters.d.ts.map +1 -0
- package/dist/views/timeline/timeline-parameters.js +27 -0
- package/dist/views/timeline/timeline-parameters.js.map +1 -0
- package/dist/views/timeline/timeline-scale.d.ts +73 -0
- package/dist/views/timeline/timeline-scale.d.ts.map +1 -0
- package/dist/views/timeline/timeline-scale.js +152 -0
- package/dist/views/timeline/timeline-scale.js.map +1 -0
- package/dist/views/timeline/timeline-words.d.ts +46 -0
- package/dist/views/timeline/timeline-words.d.ts.map +1 -0
- package/dist/views/timeline/timeline-words.js +132 -0
- package/dist/views/timeline/timeline-words.js.map +1 -0
- package/dist/views/timeline/timeline.css +875 -0
- package/dist/views/timeline/wake-geometry.d.ts +88 -0
- package/dist/views/timeline/wake-geometry.d.ts.map +1 -0
- package/dist/views/timeline/wake-geometry.js +243 -0
- package/dist/views/timeline/wake-geometry.js.map +1 -0
- package/package.json +78 -3
- package/README.md +0 -3
|
@@ -0,0 +1,678 @@
|
|
|
1
|
+
// The spawn bloom's machine, as data. The prototype's controller
|
|
2
|
+
// (`SB.createBloom`: openLevel1, retarget, openLevel2, closeLevel2, roomFor,
|
|
3
|
+
// reseat, paint, placeWords, setWords, ringClearing, commitTarget, close,
|
|
4
|
+
// onKey, aim, choose, litFor, bloomRects) ported as pure transitions: each
|
|
5
|
+
// takes the environment and a state and returns a new state. Its DOM, CSS
|
|
6
|
+
// classes, timers and events become fields a renderer reads (`bloomView`).
|
|
7
|
+
//
|
|
8
|
+
// The renderer owns time: it passes `now` in and runs the motion (entry
|
|
9
|
+
// delays, the hub's shrink, the words' hold after a commit) from the numbers
|
|
10
|
+
// the state carries. Nothing here reads a clock, a canvas or the DOM.
|
|
11
|
+
import { BLOOM } from './constants.js';
|
|
12
|
+
import { arcFits, labelCost, labelSize, layoutArc, seatLabel, } from './geometry.js';
|
|
13
|
+
import { blooms, budSub, deviceWord, glyphName, initials, menuOf, profileWord, ready, } from './menu.js';
|
|
14
|
+
import { resolveTarget, targetItem, targetOf } from './targeting.js';
|
|
15
|
+
import { placeWords, wordsFor } from './words.js';
|
|
16
|
+
function draft(s) {
|
|
17
|
+
return { ...s, l1: s.l1.map((b) => ({ ...b })), l2: s.l2.map((b) => ({ ...b })) };
|
|
18
|
+
}
|
|
19
|
+
const ms = (env, v) => (env.motionScale ?? 1) * v;
|
|
20
|
+
function hubDisc(s) {
|
|
21
|
+
return { x: s.P.x, y: s.P.y, r: BLOOM.hubR + 2 };
|
|
22
|
+
}
|
|
23
|
+
function labelRect(b) {
|
|
24
|
+
if (b.gone)
|
|
25
|
+
return null;
|
|
26
|
+
return { x: b.box.x, y: b.box.y, width: b.box.w, height: b.box.h };
|
|
27
|
+
}
|
|
28
|
+
/** A bud's words, seated: where they stand, whether they are the name alone, whether they gave way. */
|
|
29
|
+
function applySeat(b, box, short, gone) {
|
|
30
|
+
b.box = { x: Math.round(box.x), y: Math.round(box.y), w: box.w, h: short ? 12 : box.h, align: box.align };
|
|
31
|
+
b.short = !!short;
|
|
32
|
+
b.gone = !!gone;
|
|
33
|
+
}
|
|
34
|
+
function openBud(s) {
|
|
35
|
+
const open = s.open;
|
|
36
|
+
return open ? s.l1.find((b) => b.id === open.budId) : undefined;
|
|
37
|
+
}
|
|
38
|
+
function budFor(env, s, item, level, index, pos, face, delay) {
|
|
39
|
+
s.seq += 1;
|
|
40
|
+
const home = { box: pos.label, short: pos.short };
|
|
41
|
+
const b = {
|
|
42
|
+
id: `bud-${Math.round(s.startedAt)}-${s.seq}`,
|
|
43
|
+
level,
|
|
44
|
+
index,
|
|
45
|
+
kind: item.kind,
|
|
46
|
+
item,
|
|
47
|
+
x: pos.x,
|
|
48
|
+
y: pos.y,
|
|
49
|
+
a: pos.a,
|
|
50
|
+
d: level === 1 ? BLOOM.bud1 : BLOOM.bud2,
|
|
51
|
+
hx: pos.hx,
|
|
52
|
+
hy: pos.hy,
|
|
53
|
+
face,
|
|
54
|
+
dot: item.kind === 'profile' && !!item.profile.blocked,
|
|
55
|
+
off: !ready(item.device),
|
|
56
|
+
delay,
|
|
57
|
+
labelDelay: delay + ms(env, BLOOM.reveal),
|
|
58
|
+
name: pos.name,
|
|
59
|
+
sub: pos.sub,
|
|
60
|
+
aria: pos.aria,
|
|
61
|
+
sizes: [
|
|
62
|
+
labelSize({ name: pos.name, sub: pos.sub }, env.measure),
|
|
63
|
+
pos.sub ? labelSize({ name: pos.name }, env.measure) : null,
|
|
64
|
+
],
|
|
65
|
+
box: pos.label,
|
|
66
|
+
short: false,
|
|
67
|
+
gone: false,
|
|
68
|
+
home,
|
|
69
|
+
};
|
|
70
|
+
applySeat(b, pos.label, pos.short, false);
|
|
71
|
+
b.home = { box: b.box, short: b.short };
|
|
72
|
+
return b;
|
|
73
|
+
}
|
|
74
|
+
function glyphFace(profile) {
|
|
75
|
+
return { kind: 'glyph', glyph: glyphName(profile), filled: !!profile.isDefault };
|
|
76
|
+
}
|
|
77
|
+
/** Indices of `n` items, centre first (ties keep their order). */
|
|
78
|
+
function centreFirst(n) {
|
|
79
|
+
return Array.from({ length: n }, (_, i) => i).sort((a, b) => Math.abs(a - (n - 1) / 2) - Math.abs(b - (n - 1) / 2));
|
|
80
|
+
}
|
|
81
|
+
/** The room a bud's words have: everything the bloom draws except that bud —
|
|
82
|
+
* every other bud at its hot size, the hub, the spokes that are drawn or can
|
|
83
|
+
* be, the chrome, and every other bud's words. */
|
|
84
|
+
function roomFor(env, s, except) {
|
|
85
|
+
const rects = (env.chrome ?? []).slice();
|
|
86
|
+
const discs = [hubDisc(s)];
|
|
87
|
+
const segs = [];
|
|
88
|
+
for (const o of [...s.l1, ...s.l2]) {
|
|
89
|
+
if (o === except)
|
|
90
|
+
continue;
|
|
91
|
+
discs.push({ x: o.x, y: o.y, r: (o.d * BLOOM.hot) / 2 });
|
|
92
|
+
const L = labelRect(o);
|
|
93
|
+
if (L)
|
|
94
|
+
rects.push(L);
|
|
95
|
+
}
|
|
96
|
+
if (s.open) {
|
|
97
|
+
const c = s.open.pos;
|
|
98
|
+
segs.push({ a: s.P, b: c });
|
|
99
|
+
for (const o of s.l2)
|
|
100
|
+
segs.push({ a: c, b: { x: o.x, y: o.y } });
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
for (const o of s.l1)
|
|
104
|
+
segs.push({ a: s.P, b: { x: o.x, y: o.y } });
|
|
105
|
+
}
|
|
106
|
+
return { field: env.field, rects, discs, segs };
|
|
107
|
+
}
|
|
108
|
+
/** Everything the bloom draws, as rectangles: the hub's dead zone, each bud at its hot size, each seated label. */
|
|
109
|
+
export function bloomRects(s) {
|
|
110
|
+
const out = [
|
|
111
|
+
{ x: s.P.x - BLOOM.deadR, y: s.P.y - BLOOM.deadR, width: BLOOM.deadR * 2, height: BLOOM.deadR * 2 },
|
|
112
|
+
];
|
|
113
|
+
for (const b of [...s.l1, ...s.l2]) {
|
|
114
|
+
const d = b.d * BLOOM.hot;
|
|
115
|
+
out.push({ x: b.x - d / 2, y: b.y - d / 2, width: d, height: d });
|
|
116
|
+
const L = labelRect(b);
|
|
117
|
+
if (L)
|
|
118
|
+
out.push(L);
|
|
119
|
+
}
|
|
120
|
+
return out;
|
|
121
|
+
}
|
|
122
|
+
/** Which rows a target lights (SB-D8): a desktop lights its rows — for the
|
|
123
|
+
* desktop you sit at, every row that is not remote; for a peer, the rows whose
|
|
124
|
+
* `remote.deviceId` is it — and a profile (or the hub, under the default)
|
|
125
|
+
* lights the rows under that profile set on that desktop. Open ground: none. */
|
|
126
|
+
function litFor(menu, t) {
|
|
127
|
+
if (!t || t.kind === 'none')
|
|
128
|
+
return () => false;
|
|
129
|
+
const device = t.kind === 'hub' ? menu.hub.device : t.item.device;
|
|
130
|
+
const profile = t.kind === 'hub' ? menu.hub.profile : t.kind === 'profile' ? t.item.profile : null;
|
|
131
|
+
const here = device.id === menu.self.id;
|
|
132
|
+
return (agent) => {
|
|
133
|
+
const on = here ? agent.device.self : !agent.device.self && agent.device.id === device.id;
|
|
134
|
+
if (!on)
|
|
135
|
+
return false;
|
|
136
|
+
if (!profile)
|
|
137
|
+
return true;
|
|
138
|
+
return agent.profileSet === profile.id;
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
function bodyBoxes(env, s) {
|
|
142
|
+
const lit = s.target ? litFor(s.menu, s.target) : null;
|
|
143
|
+
const out = [];
|
|
144
|
+
for (const b of env.bodies ?? []) {
|
|
145
|
+
const r = b.r * Math.max(1, b.scale || 1) + 8;
|
|
146
|
+
const box = { x: b.x - r, y: b.y - r, width: r * 2, height: r * 2 };
|
|
147
|
+
out.push(box);
|
|
148
|
+
if ((b.lit ?? 0) > 0.5 || (lit && b.agent && lit(b.agent)))
|
|
149
|
+
out.push(box);
|
|
150
|
+
}
|
|
151
|
+
return out;
|
|
152
|
+
}
|
|
153
|
+
/** A change of words is a new slate over the old one — only when the words
|
|
154
|
+
* themselves, their place or their size changed. */
|
|
155
|
+
function setWords(env, s, words) {
|
|
156
|
+
s.words = words;
|
|
157
|
+
const text = JSON.stringify(words);
|
|
158
|
+
const place = placeWords({
|
|
159
|
+
words,
|
|
160
|
+
field: env.field,
|
|
161
|
+
chrome: env.chrome ?? [],
|
|
162
|
+
bloom: bloomRects(s),
|
|
163
|
+
bodies: bodyBoxes(env, s),
|
|
164
|
+
current: s.say ? { key: s.say.key, size: s.say.m.size } : null,
|
|
165
|
+
measure: env.measure,
|
|
166
|
+
});
|
|
167
|
+
if (s.say && s.say.text === text && s.say.key === place.key && s.say.m.size === place.m.size)
|
|
168
|
+
return;
|
|
169
|
+
s.slates += 1;
|
|
170
|
+
s.say = { ...place, slate: s.slates, words, text };
|
|
171
|
+
}
|
|
172
|
+
function openLevel1(env, P, mode, menu) {
|
|
173
|
+
const labels = menu.items.map((item) => item.kind === 'device'
|
|
174
|
+
? { name: deviceWord(item.device), sub: budSub(item) }
|
|
175
|
+
: { name: profileWord(item.profile, item.device), sub: '' });
|
|
176
|
+
const chrome = env.chrome ?? [];
|
|
177
|
+
const hub = { x: P.x, y: P.y, r: BLOOM.hubR + 2 };
|
|
178
|
+
const layout = layoutArc({
|
|
179
|
+
cx: P.x,
|
|
180
|
+
cy: P.y,
|
|
181
|
+
r: BLOOM.r1,
|
|
182
|
+
d: BLOOM.bud1,
|
|
183
|
+
step: BLOOM.step1,
|
|
184
|
+
prefer: -90,
|
|
185
|
+
labels,
|
|
186
|
+
field: env.field,
|
|
187
|
+
obstacles: chrome,
|
|
188
|
+
discs: [hub],
|
|
189
|
+
measure: env.measure,
|
|
190
|
+
// a desktop that blooms needs somewhere for its profiles to go
|
|
191
|
+
also: (pts) => {
|
|
192
|
+
let c = 0;
|
|
193
|
+
pts.forEach((pt, j) => {
|
|
194
|
+
const item = menu.items[j];
|
|
195
|
+
if (!item || item.kind !== 'device' || !blooms(item.device))
|
|
196
|
+
return;
|
|
197
|
+
const discs = [hub, ...pts.map((o) => ({ x: o.x, y: o.y, r: (BLOOM.bud1 * BLOOM.hot) / 2 }))];
|
|
198
|
+
const room = {
|
|
199
|
+
cx: pt.x,
|
|
200
|
+
cy: pt.y,
|
|
201
|
+
r: BLOOM.r2,
|
|
202
|
+
d: BLOOM.bud2,
|
|
203
|
+
step: BLOOM.step2,
|
|
204
|
+
prefer: pt.a,
|
|
205
|
+
field: env.field,
|
|
206
|
+
obstacles: chrome,
|
|
207
|
+
discs,
|
|
208
|
+
segs: [{ a: P, b: pt }],
|
|
209
|
+
};
|
|
210
|
+
const n = (item.device.profiles ?? []).length;
|
|
211
|
+
if (!arcFits(room, n, 90))
|
|
212
|
+
c += arcFits(room, n, 180) ? 20 : 40;
|
|
213
|
+
});
|
|
214
|
+
return c;
|
|
215
|
+
},
|
|
216
|
+
});
|
|
217
|
+
const faces = menu.kind === 'devices' ? initials(menu.items.map((i) => i.device)) : [];
|
|
218
|
+
// layout items come back in reading order: the menu's order, left to right
|
|
219
|
+
const order = layout.items;
|
|
220
|
+
const s = {
|
|
221
|
+
P,
|
|
222
|
+
mode,
|
|
223
|
+
menu,
|
|
224
|
+
theta: layout.theta,
|
|
225
|
+
l1: [],
|
|
226
|
+
l2: [],
|
|
227
|
+
l1step: layout.step,
|
|
228
|
+
l2step: BLOOM.step2,
|
|
229
|
+
open: null,
|
|
230
|
+
target: null,
|
|
231
|
+
focus: -1,
|
|
232
|
+
pointer: { x: P.x, y: P.y },
|
|
233
|
+
startedAt: env.now,
|
|
234
|
+
words: null,
|
|
235
|
+
say: null,
|
|
236
|
+
seq: 0,
|
|
237
|
+
slates: 0,
|
|
238
|
+
closed: null,
|
|
239
|
+
};
|
|
240
|
+
const ranks = centreFirst(order.length);
|
|
241
|
+
menu.items.forEach((item, i) => {
|
|
242
|
+
const at = order[i];
|
|
243
|
+
if (!at)
|
|
244
|
+
return;
|
|
245
|
+
const delay = env.reduced ? 0 : ms(env, ranks.indexOf(i) * BLOOM.stagger);
|
|
246
|
+
const aria = item.kind === 'device'
|
|
247
|
+
? item.device.label +
|
|
248
|
+
(item.device.self ? ', this device' : '') +
|
|
249
|
+
(ready(item.device)
|
|
250
|
+
? ', ' + (item.device.profiles ?? []).length + ' profiles'
|
|
251
|
+
: ', ' + (item.device.word || 'unavailable').toLowerCase())
|
|
252
|
+
: item.profile.label + (item.profile.isDefault ? ', default' : '');
|
|
253
|
+
const label = labels[i];
|
|
254
|
+
const face = item.kind === 'profile' ? glyphFace(item.profile) : { kind: 'initial', text: faces[i] ?? '?' };
|
|
255
|
+
s.l1.push(budFor(env, s, item, 1, i, { x: at.x, y: at.y, a: at.a, hx: P.x, hy: P.y, label: at.label, short: at.short, ...label, aria }, face, delay));
|
|
256
|
+
});
|
|
257
|
+
retarget(env, s, P, true);
|
|
258
|
+
return s;
|
|
259
|
+
}
|
|
260
|
+
function openLevel2(env, s, bud) {
|
|
261
|
+
const item = bud.item;
|
|
262
|
+
if (item.kind !== 'device')
|
|
263
|
+
return;
|
|
264
|
+
const device = item.device;
|
|
265
|
+
const profiles = device.profiles ?? [];
|
|
266
|
+
if (!ready(device) || profiles.length < 2)
|
|
267
|
+
return;
|
|
268
|
+
closeLevel2(s);
|
|
269
|
+
// the hub, the open desktop, the dimmed siblings and their words are solid
|
|
270
|
+
// to the second ring, and so is the spoke that led here
|
|
271
|
+
const obs = (env.chrome ?? []).slice();
|
|
272
|
+
const discs = [hubDisc(s), { x: bud.x, y: bud.y, r: (bud.d * BLOOM.hot) / 2 }];
|
|
273
|
+
for (const o of s.l1) {
|
|
274
|
+
if (o === bud)
|
|
275
|
+
continue;
|
|
276
|
+
discs.push({ x: o.x, y: o.y, r: (o.d * BLOOM.hot) / 2 });
|
|
277
|
+
const L = labelRect(o);
|
|
278
|
+
if (L)
|
|
279
|
+
obs.push(L);
|
|
280
|
+
}
|
|
281
|
+
const labels = profiles.map((p) => ({ name: profileWord(p, device), sub: '' }));
|
|
282
|
+
const layout = layoutArc({
|
|
283
|
+
cx: bud.x,
|
|
284
|
+
cy: bud.y,
|
|
285
|
+
r: BLOOM.r2,
|
|
286
|
+
d: BLOOM.bud2,
|
|
287
|
+
step: BLOOM.step2,
|
|
288
|
+
prefer: bud.a,
|
|
289
|
+
labels,
|
|
290
|
+
field: env.field,
|
|
291
|
+
obstacles: obs,
|
|
292
|
+
discs,
|
|
293
|
+
segs: [{ a: s.P, b: { x: bud.x, y: bud.y } }],
|
|
294
|
+
extra: { x: bud.x, y: bud.y, d: bud.d, natural: bud.home.box, short: bud.home.short, sizes: bud.sizes },
|
|
295
|
+
measure: env.measure,
|
|
296
|
+
});
|
|
297
|
+
const order = layout.items;
|
|
298
|
+
s.l2step = layout.step;
|
|
299
|
+
s.open = { budId: bud.id, item, pos: { x: bud.x, y: bud.y }, readyAt: env.now + ms(env, BLOOM.settle) };
|
|
300
|
+
const ranks = centreFirst(order.length);
|
|
301
|
+
profiles.forEach((p, i) => {
|
|
302
|
+
const at = order[i];
|
|
303
|
+
if (!at)
|
|
304
|
+
return;
|
|
305
|
+
const delay = env.reduced ? 0 : ms(env, ranks.indexOf(i) * BLOOM.stagger);
|
|
306
|
+
const name = labels[i].name;
|
|
307
|
+
s.l2.push(budFor(env, s, { kind: 'profile', device, profile: p }, 2, i, {
|
|
308
|
+
x: at.x,
|
|
309
|
+
y: at.y,
|
|
310
|
+
a: at.a,
|
|
311
|
+
hx: bud.x,
|
|
312
|
+
hy: bud.y,
|
|
313
|
+
label: at.label,
|
|
314
|
+
short: at.short,
|
|
315
|
+
name,
|
|
316
|
+
sub: '',
|
|
317
|
+
aria: profileWord(p, device) + (p.isDefault ? ', default' : '') + ', on ' + device.label,
|
|
318
|
+
}, glyphFace(p), delay));
|
|
319
|
+
});
|
|
320
|
+
// The open desktop's words keep their place if its profiles left it clear,
|
|
321
|
+
// and otherwise take the nearest clear place around it — never a sibling,
|
|
322
|
+
// the hub, the spoke or a profile's words. Boxed in, they give way: the
|
|
323
|
+
// words in the field already name the desktop.
|
|
324
|
+
const seat = seatLabel(bud.x, bud.y, bud.d, bud.home.box, bud.sizes, roomFor(env, s, bud), bud.home.short);
|
|
325
|
+
applySeat(bud, seat.box, seat.short, seat.cost > 0);
|
|
326
|
+
// a sibling's words the profiles landed on move aside the same way
|
|
327
|
+
for (const o of s.l1) {
|
|
328
|
+
if (o === bud || o.gone)
|
|
329
|
+
continue;
|
|
330
|
+
const room = roomFor(env, s, o);
|
|
331
|
+
if (labelCost(o.box, room) === 0)
|
|
332
|
+
continue;
|
|
333
|
+
const moved = seatLabel(o.x, o.y, o.d, o.box, o.sizes, room, o.short);
|
|
334
|
+
applySeat(o, moved.box, moved.short, moved.cost > 0);
|
|
335
|
+
}
|
|
336
|
+
if (s.words)
|
|
337
|
+
setWords(env, s, s.words);
|
|
338
|
+
}
|
|
339
|
+
/** Every desktop's words go back to where the first ring put them. */
|
|
340
|
+
function closeLevel2(s) {
|
|
341
|
+
if (!s.open)
|
|
342
|
+
return;
|
|
343
|
+
s.l2 = [];
|
|
344
|
+
for (const o of s.l1) {
|
|
345
|
+
if (o.gone || o.box.x !== o.home.box.x || o.box.y !== o.home.box.y || o.short !== o.home.short) {
|
|
346
|
+
applySeat(o, o.home.box, o.home.short, false);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
s.open = null;
|
|
350
|
+
}
|
|
351
|
+
function retarget(env, s, p, force) {
|
|
352
|
+
s.pointer = p;
|
|
353
|
+
let r = resolveTarget(s, p, env.now);
|
|
354
|
+
if (r.collapse) {
|
|
355
|
+
closeLevel2(s);
|
|
356
|
+
r = resolveTarget(s, p, env.now);
|
|
357
|
+
}
|
|
358
|
+
let t = r.t;
|
|
359
|
+
// reaching a desktop opens it
|
|
360
|
+
if (!s.open && t.kind === 'device' && t.d !== undefined && t.d >= BLOOM.r1 - BLOOM.reach && blooms(t.item.device)) {
|
|
361
|
+
const item = t.item;
|
|
362
|
+
const bud = s.l1.find((b) => b.item === item);
|
|
363
|
+
if (bud) {
|
|
364
|
+
openLevel2(env, s, bud);
|
|
365
|
+
t = resolveTarget(s, p, env.now).t;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
const same = !!s.target && s.target.kind === t.kind && targetItem(s.target) === targetItem(t);
|
|
369
|
+
s.target = t;
|
|
370
|
+
if (!same || force)
|
|
371
|
+
setWords(env, s, wordsFor(s.menu, t, s.mode));
|
|
372
|
+
}
|
|
373
|
+
function close(env, s, reason, chosen, grow) {
|
|
374
|
+
const exitDelay = {};
|
|
375
|
+
[...s.l1, ...s.l2].forEach((b, i) => {
|
|
376
|
+
if (b === chosen)
|
|
377
|
+
return;
|
|
378
|
+
exitDelay[b.id] = env.reduced ? 0 : ms(env, Math.min(i, 4) * 12);
|
|
379
|
+
});
|
|
380
|
+
s.closed = {
|
|
381
|
+
reason,
|
|
382
|
+
chosen: chosen ? chosen.id : null,
|
|
383
|
+
grow,
|
|
384
|
+
sayHold: reason === 'commit' ? ms(env, BLOOM.sayHold) : 0,
|
|
385
|
+
retract: ms(env, BLOOM.retract),
|
|
386
|
+
exitDelay,
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
function findBud(s, item, level) {
|
|
390
|
+
const list = level === 2 ? s.l2 : s.l1;
|
|
391
|
+
return list.find((b) => b.item === item || (!!item.profile && b.item.profile === item.profile && b.item.device === item.device));
|
|
392
|
+
}
|
|
393
|
+
function commitTarget(env, s) {
|
|
394
|
+
const t = s.target;
|
|
395
|
+
const menu = s.menu;
|
|
396
|
+
let choice = null;
|
|
397
|
+
let bud;
|
|
398
|
+
if (t && t.kind === 'hub')
|
|
399
|
+
choice = menu.hub;
|
|
400
|
+
else if (t && t.kind === 'device') {
|
|
401
|
+
choice = { device: t.item.device, profile: t.item.profile };
|
|
402
|
+
bud = findBud(s, t.item, 1) ?? openBud(s);
|
|
403
|
+
}
|
|
404
|
+
else if (t && t.kind === 'profile') {
|
|
405
|
+
choice = { device: t.item.device, profile: t.item.profile };
|
|
406
|
+
bud = findBud(s, t.item, s.open ? 2 : 1);
|
|
407
|
+
}
|
|
408
|
+
if (!t || t.kind === 'none' || !choice || !ready(choice.device)) {
|
|
409
|
+
const item = targetItem(t);
|
|
410
|
+
const unready = item && !ready(item.device) ? item.device : undefined;
|
|
411
|
+
close(env, s, 'cancel', null, null);
|
|
412
|
+
return unready ? { choice: null, unready } : { choice: null };
|
|
413
|
+
}
|
|
414
|
+
const at = bud ? { x: bud.x, y: bud.y } : { x: s.P.x, y: s.P.y };
|
|
415
|
+
const from = bud ? { d: bud.d * BLOOM.hot, fill: 'ink' } : { d: BLOOM.hubR * 2, fill: 'surface' };
|
|
416
|
+
const grow = bud ? ((env.idleRadius ?? 50) * 2) / bud.d : null;
|
|
417
|
+
setWords(env, s, wordsFor(menu, t, s.mode, 'commit'));
|
|
418
|
+
close(env, s, 'commit', bud ?? null, grow);
|
|
419
|
+
return {
|
|
420
|
+
choice: {
|
|
421
|
+
deviceId: choice.device.id,
|
|
422
|
+
profileSet: choice.profile?.id,
|
|
423
|
+
at,
|
|
424
|
+
device: choice.device,
|
|
425
|
+
profile: choice.profile,
|
|
426
|
+
via: t.kind,
|
|
427
|
+
from,
|
|
428
|
+
},
|
|
429
|
+
};
|
|
430
|
+
}
|
|
431
|
+
function aim(env, s, bud) {
|
|
432
|
+
if (!bud)
|
|
433
|
+
return;
|
|
434
|
+
s.target = targetOf(bud.item);
|
|
435
|
+
setWords(env, s, wordsFor(s.menu, s.target, s.mode));
|
|
436
|
+
}
|
|
437
|
+
function choose(env, s, bud) {
|
|
438
|
+
if (!bud)
|
|
439
|
+
return undefined;
|
|
440
|
+
if (bud.level === 1 && bud.item.kind === 'device' && blooms(bud.item.device)) {
|
|
441
|
+
openLevel2(env, s, bud);
|
|
442
|
+
const def = s.l2.findIndex((c) => !!c.item.profile?.isDefault);
|
|
443
|
+
s.focus = def >= 0 ? def : 0;
|
|
444
|
+
aim(env, s, s.l2[s.focus]);
|
|
445
|
+
return undefined;
|
|
446
|
+
}
|
|
447
|
+
aim(env, s, bud);
|
|
448
|
+
return commitTarget(env, s);
|
|
449
|
+
}
|
|
450
|
+
// ── the transitions ────────────────────────────────────────────────────────
|
|
451
|
+
/** Where the keyboard door opens a bloom: the field's middle, a little low. */
|
|
452
|
+
export function keysOrigin(field) {
|
|
453
|
+
return { x: field.w * 0.5, y: field.h * 0.62 };
|
|
454
|
+
}
|
|
455
|
+
/** A hold completed at `P` (or a secondary click held it open: `sticky`; or the
|
|
456
|
+
* keyboard door: `keys`, which focuses the first bud). A menu with nothing to
|
|
457
|
+
* choose returns `{ instant }` — the host creates at once, today's hold. */
|
|
458
|
+
export function openBloom(env, P, mode, spawnMenu) {
|
|
459
|
+
const menu = menuOf(spawnMenu);
|
|
460
|
+
if (menu.kind === 'instant') {
|
|
461
|
+
return {
|
|
462
|
+
instant: {
|
|
463
|
+
deviceId: menu.hub.device?.id,
|
|
464
|
+
profileSet: menu.hub.profile?.id,
|
|
465
|
+
at: { x: P.x, y: P.y },
|
|
466
|
+
device: menu.hub.device,
|
|
467
|
+
profile: menu.hub.profile,
|
|
468
|
+
via: 'instant',
|
|
469
|
+
from: null,
|
|
470
|
+
},
|
|
471
|
+
};
|
|
472
|
+
}
|
|
473
|
+
// the hub is the state's own point: a caller's reused point object cannot move it
|
|
474
|
+
const s = openLevel1(env, { x: P.x, y: P.y }, mode, menu);
|
|
475
|
+
if (mode === 'keys') {
|
|
476
|
+
s.focus = 0;
|
|
477
|
+
aim(env, s, s.l1[0]);
|
|
478
|
+
}
|
|
479
|
+
return s;
|
|
480
|
+
}
|
|
481
|
+
export function isInstant(opened) {
|
|
482
|
+
return 'instant' in opened;
|
|
483
|
+
}
|
|
484
|
+
/** The pointer moved: retarget. Reaching a desktop that blooms opens its
|
|
485
|
+
* profiles; backing out toward the hub, or reaching a sibling, collapses them.
|
|
486
|
+
* The words change only when the target does (a new `say.slate`), or when a
|
|
487
|
+
* second ring opens into them. */
|
|
488
|
+
export function pointBloom(env, state, p) {
|
|
489
|
+
if (state.closed)
|
|
490
|
+
return state;
|
|
491
|
+
const s = draft(state);
|
|
492
|
+
retarget(env, s, { x: p.x, y: p.y }, false);
|
|
493
|
+
return s;
|
|
494
|
+
}
|
|
495
|
+
/** Letting go (a hold's release, a sticky bloom's click): commit what is
|
|
496
|
+
* targeted. The hub → this desktop's default; a desktop → its default; a
|
|
497
|
+
* profile → exactly it; a faint desktop → nothing (`unready` names it); open
|
|
498
|
+
* ground → nothing. The state comes back closed. */
|
|
499
|
+
export function commitBloom(env, state) {
|
|
500
|
+
if (state.closed)
|
|
501
|
+
return { choice: null, state };
|
|
502
|
+
const s = draft(state);
|
|
503
|
+
const out = commitTarget(env, s);
|
|
504
|
+
return { ...out, state: s };
|
|
505
|
+
}
|
|
506
|
+
/** Put the bloom away: Esc in a hold, a secondary click while held open, a cancelled pointer. */
|
|
507
|
+
export function cancelBloom(env, state) {
|
|
508
|
+
if (state.closed)
|
|
509
|
+
return state;
|
|
510
|
+
const s = draft(state);
|
|
511
|
+
close(env, s, 'cancel', null, null);
|
|
512
|
+
return s;
|
|
513
|
+
}
|
|
514
|
+
/** A key while the bloom is open (KeyboardEvent.key). ←/→/↑/↓ cycle within the
|
|
515
|
+
* current ring; ↵ or space on a desktop with ≥ 2 profiles opens it and focuses
|
|
516
|
+
* its default profile, on anything else commits it, and with no focus commits
|
|
517
|
+
* the hub; 1–9 pick; 0 is the hub; Esc backs out of an open desktop (not in a
|
|
518
|
+
* hold), else cancels. A hold takes only Esc. */
|
|
519
|
+
export function keyBloom(env, state, key) {
|
|
520
|
+
if (state.closed)
|
|
521
|
+
return { state, handled: false };
|
|
522
|
+
const s = draft(state);
|
|
523
|
+
const list = s.open ? s.l2 : s.l1;
|
|
524
|
+
if (key === 'Escape') {
|
|
525
|
+
if (s.open && s.mode !== 'hold') {
|
|
526
|
+
const dev = openBud(s);
|
|
527
|
+
closeLevel2(s);
|
|
528
|
+
s.focus = dev ? s.l1.indexOf(dev) : -1;
|
|
529
|
+
aim(env, s, s.l1[s.focus]);
|
|
530
|
+
return { state: s, handled: true };
|
|
531
|
+
}
|
|
532
|
+
close(env, s, 'cancel', null, null);
|
|
533
|
+
return { state: s, handled: true, cancel: true };
|
|
534
|
+
}
|
|
535
|
+
if (s.mode === 'hold')
|
|
536
|
+
return { state, handled: false };
|
|
537
|
+
if (key === 'ArrowRight' || key === 'ArrowDown' || key === 'ArrowLeft' || key === 'ArrowUp') {
|
|
538
|
+
if (!list.length)
|
|
539
|
+
return { state: s, handled: true };
|
|
540
|
+
const dir = key === 'ArrowRight' || key === 'ArrowDown' ? 1 : -1;
|
|
541
|
+
s.focus = s.focus < 0 ? (dir > 0 ? 0 : list.length - 1) : (s.focus + dir + list.length) % list.length;
|
|
542
|
+
aim(env, s, list[s.focus]);
|
|
543
|
+
return { state: s, handled: true };
|
|
544
|
+
}
|
|
545
|
+
if (/^[0-9]$/.test(key)) {
|
|
546
|
+
const n = Number(key);
|
|
547
|
+
if (n === 0) {
|
|
548
|
+
s.target = { kind: 'hub' };
|
|
549
|
+
return { state: s, handled: true, commit: { ...commitTarget(env, s), state: s } };
|
|
550
|
+
}
|
|
551
|
+
if (n - 1 < list.length) {
|
|
552
|
+
s.focus = n - 1;
|
|
553
|
+
const out = choose(env, s, list[s.focus]);
|
|
554
|
+
return out ? { state: s, handled: true, commit: { ...out, state: s } } : { state: s, handled: true };
|
|
555
|
+
}
|
|
556
|
+
return { state: s, handled: true };
|
|
557
|
+
}
|
|
558
|
+
if (key === 'Enter' || key === ' ') {
|
|
559
|
+
if (s.focus < 0) {
|
|
560
|
+
s.target = { kind: 'hub' };
|
|
561
|
+
return { state: s, handled: true, commit: { ...commitTarget(env, s), state: s } };
|
|
562
|
+
}
|
|
563
|
+
const out = choose(env, s, list[s.focus]);
|
|
564
|
+
return out ? { state: s, handled: true, commit: { ...out, state: s } } : { state: s, handled: true };
|
|
565
|
+
}
|
|
566
|
+
return { state, handled: false };
|
|
567
|
+
}
|
|
568
|
+
/** A ring's clearing: solid out past its farthest bud (hot) and label corner, + clearPad, then the feather. */
|
|
569
|
+
function ringClearing(cx, cy, buds, extra) {
|
|
570
|
+
let r = BLOOM.hubR + 6;
|
|
571
|
+
const reach = (px, py) => {
|
|
572
|
+
r = Math.max(r, Math.hypot(px - cx, py - cy));
|
|
573
|
+
};
|
|
574
|
+
const boxes = extra.slice();
|
|
575
|
+
for (const b of buds) {
|
|
576
|
+
r = Math.max(r, Math.hypot(b.x - cx, b.y - cy) + (b.d * BLOOM.hot) / 2);
|
|
577
|
+
const L = labelRect(b);
|
|
578
|
+
if (L)
|
|
579
|
+
boxes.push(L);
|
|
580
|
+
}
|
|
581
|
+
for (const L of boxes) {
|
|
582
|
+
if (!L)
|
|
583
|
+
continue;
|
|
584
|
+
reach(L.x, L.y);
|
|
585
|
+
reach(L.x + L.width, L.y);
|
|
586
|
+
reach(L.x, L.y + L.height);
|
|
587
|
+
reach(L.x + L.width, L.y + L.height);
|
|
588
|
+
}
|
|
589
|
+
return { kind: 'circle', x: cx, y: cy, radius: r + BLOOM.clearPad, feather: BLOOM.feather };
|
|
590
|
+
}
|
|
591
|
+
function sayClearing(say) {
|
|
592
|
+
return { kind: 'rect', x: say.x - 18, y: say.y - 14, width: say.m.w + 36, height: say.m.h + 28, feather: 64 };
|
|
593
|
+
}
|
|
594
|
+
function isHot(t, b) {
|
|
595
|
+
if (!t)
|
|
596
|
+
return false;
|
|
597
|
+
if (t.kind === 'device')
|
|
598
|
+
return b.item === t.item;
|
|
599
|
+
if (t.kind === 'profile')
|
|
600
|
+
return b.level === 2 ? b.item.profile === t.item.profile : b.item === t.item;
|
|
601
|
+
return false;
|
|
602
|
+
}
|
|
603
|
+
/** Everything a renderer draws, derived from a state. */
|
|
604
|
+
export function bloomView(state) {
|
|
605
|
+
const s = state;
|
|
606
|
+
const t = s.target;
|
|
607
|
+
const list = s.open ? s.l2 : s.l1;
|
|
608
|
+
const focused = s.focus >= 0 ? list[s.focus] : undefined;
|
|
609
|
+
const openId = s.open?.budId;
|
|
610
|
+
const closed = s.closed;
|
|
611
|
+
const buds = [...s.l1, ...s.l2].map((b) => {
|
|
612
|
+
const hot = isHot(t, b);
|
|
613
|
+
const dist = Math.hypot(s.pointer.x - b.x, s.pointer.y - b.y);
|
|
614
|
+
const chosen = !!closed && closed.chosen === b.id;
|
|
615
|
+
return {
|
|
616
|
+
...b,
|
|
617
|
+
hot,
|
|
618
|
+
lean: hot ? 0 : Math.max(0, 1 - dist / (BLOOM.r1 * 0.9)),
|
|
619
|
+
path: b.id === openId,
|
|
620
|
+
dim: !!openId && b.level === 1 && b.id !== openId,
|
|
621
|
+
focus: !!focused && b.id === focused.id,
|
|
622
|
+
chosen,
|
|
623
|
+
back: !!closed && !chosen,
|
|
624
|
+
exitDelay: closed?.exitDelay[b.id] ?? 0,
|
|
625
|
+
};
|
|
626
|
+
});
|
|
627
|
+
let tether = null;
|
|
628
|
+
if (!closed) {
|
|
629
|
+
const pts = [s.P];
|
|
630
|
+
if (s.open)
|
|
631
|
+
pts.push(s.open.pos);
|
|
632
|
+
pts.push(s.pointer);
|
|
633
|
+
const start = s.P;
|
|
634
|
+
const next = pts[1];
|
|
635
|
+
const len = Math.hypot(next.x - start.x, next.y - start.y);
|
|
636
|
+
if (len > BLOOM.hubR && s.mode !== 'keys') {
|
|
637
|
+
const rim = {
|
|
638
|
+
x: start.x + ((next.x - start.x) / len) * BLOOM.hubR,
|
|
639
|
+
y: start.y + ((next.y - start.y) / len) * BLOOM.hubR,
|
|
640
|
+
};
|
|
641
|
+
tether = [rim, ...pts.slice(1)];
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
const clearings = [];
|
|
645
|
+
if (!closed) {
|
|
646
|
+
clearings.push(ringClearing(s.P.x, s.P.y, s.l1, []));
|
|
647
|
+
const openBudNow = s.open ? s.l1.find((b) => b.id === openId) : undefined;
|
|
648
|
+
if (s.open)
|
|
649
|
+
clearings.push(ringClearing(s.open.pos.x, s.open.pos.y, s.l2, [openBudNow ? labelRect(openBudNow) : null]));
|
|
650
|
+
if (s.say)
|
|
651
|
+
clearings.push(sayClearing(s.say));
|
|
652
|
+
}
|
|
653
|
+
else if (closed.reason === 'commit' && s.say) {
|
|
654
|
+
clearings.push(sayClearing(s.say));
|
|
655
|
+
}
|
|
656
|
+
return {
|
|
657
|
+
open: !closed,
|
|
658
|
+
level: s.open ? 2 : 1,
|
|
659
|
+
mode: s.mode,
|
|
660
|
+
hub: { x: s.P.x, y: s.P.y },
|
|
661
|
+
buds,
|
|
662
|
+
tether,
|
|
663
|
+
words: s.words,
|
|
664
|
+
say: s.say,
|
|
665
|
+
clearings,
|
|
666
|
+
veil: closed ? 0 : BLOOM.veil,
|
|
667
|
+
activeDescendant: focused ? focused.id : null,
|
|
668
|
+
closed,
|
|
669
|
+
};
|
|
670
|
+
}
|
|
671
|
+
/** Which rows light while the bloom points (SB-D8): the target's desktop, or
|
|
672
|
+
* its profile set on that desktop; nothing for open ground or once closed. */
|
|
673
|
+
export function litOf(state) {
|
|
674
|
+
if (state.closed)
|
|
675
|
+
return () => false;
|
|
676
|
+
return litFor(state.menu, state.target);
|
|
677
|
+
}
|
|
678
|
+
//# sourceMappingURL=model.js.map
|