@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,89 @@
|
|
|
1
|
+
// A birth on its way (SB §2.6): after a bloom commits, the swarm draws a
|
|
2
|
+
// pending terminal where the person let go until the host's row arrives — the
|
|
3
|
+
// row the host spawns at the very point it was asked for (`spawnHint`) — and
|
|
4
|
+
// that row then takes over in place. A refused create, or one answered with no
|
|
5
|
+
// row in time, shrinks away (M4). Pure: AgentSwarm keeps the birth and its
|
|
6
|
+
// clock; this decides what it is and when it is done.
|
|
7
|
+
import { bodyIdOf } from '../body-id.js';
|
|
8
|
+
import { clampSpawnPosition } from '../physics/spawn-clamp.js';
|
|
9
|
+
import { selfDevice } from './menu.js';
|
|
10
|
+
/** Once the host has answered, a birth waits this long for its row, then shrinks away. */
|
|
11
|
+
export const BIRTH_WAIT_MS = 4000;
|
|
12
|
+
/** A host that never answers at all: the birth is given up this long after it was born. */
|
|
13
|
+
export const BIRTH_GIVE_UP_MS = 30_000;
|
|
14
|
+
/** A row's spawn hint is the point asked for within this (the host copies the numbers it was given). */
|
|
15
|
+
const HINT_SLOP = 0.5;
|
|
16
|
+
/** The profile line for a terminal born under `profileSet`, when the desktop you sit at has more than
|
|
17
|
+
* one profile and that is one of them — naming the only profile there is tells nobody anything. */
|
|
18
|
+
export function profileLineFor(menu, profileSet) {
|
|
19
|
+
if (!menu || !profileSet)
|
|
20
|
+
return undefined;
|
|
21
|
+
const profiles = selfDevice(menu)?.profiles ?? [];
|
|
22
|
+
if (profiles.length < 2)
|
|
23
|
+
return undefined;
|
|
24
|
+
const profile = profiles.find((p) => p.id === profileSet);
|
|
25
|
+
if (!profile)
|
|
26
|
+
return undefined;
|
|
27
|
+
return { label: profile.label, glyph: profile.glyph, kind: profile.kind, isDefault: profile.isDefault };
|
|
28
|
+
}
|
|
29
|
+
/** A birth for a bloom's commit. */
|
|
30
|
+
export function birthOf(input) {
|
|
31
|
+
const { choice } = input;
|
|
32
|
+
const peer = choice.device && !choice.device.self ? choice.device : null;
|
|
33
|
+
return {
|
|
34
|
+
id: input.id,
|
|
35
|
+
at: { x: choice.at.x, y: choice.at.y },
|
|
36
|
+
drawAt: input.field.width > 0 && input.field.height > 0
|
|
37
|
+
? clampSpawnPosition(input.field.width, input.field.height, input.idleRadius, choice.at)
|
|
38
|
+
: { x: choice.at.x, y: choice.at.y },
|
|
39
|
+
bornAt: input.now,
|
|
40
|
+
sinceMs: input.nowMs,
|
|
41
|
+
from: choice.from ? choice.from.d / Math.max(1, input.idleRadius * 2) : 0,
|
|
42
|
+
on: peer ? peer.label : undefined,
|
|
43
|
+
// a peer's body keeps its host line; the one you sit at names its profile
|
|
44
|
+
profile: peer ? undefined : profileLineFor(input.menu, choice.profileSet),
|
|
45
|
+
before: new Set(input.rows.map(bodyIdOf)),
|
|
46
|
+
answeredAt: null,
|
|
47
|
+
failedAt: null,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
/** The row that takes a birth over: new since it was asked for, spawned at the point it was born at. */
|
|
51
|
+
export function birthRow(birth, rows) {
|
|
52
|
+
return rows.find((row) => !birth.before.has(bodyIdOf(row)) &&
|
|
53
|
+
!!row.spawnHint &&
|
|
54
|
+
Math.abs(row.spawnHint.x - birth.at.x) <= HINT_SLOP &&
|
|
55
|
+
Math.abs(row.spawnHint.y - birth.at.y) <= HINT_SLOP);
|
|
56
|
+
}
|
|
57
|
+
/** Whether a birth is to be given up now: answered and still rowless after the wait, or never answered at all
|
|
58
|
+
* long after it was born (a host whose create never settles). A refusal gives it up where it is caught. */
|
|
59
|
+
export function birthOverdue(birth, now) {
|
|
60
|
+
if (birth.failedAt !== null)
|
|
61
|
+
return false;
|
|
62
|
+
return birth.answeredAt !== null ? now - birth.answeredAt >= BIRTH_WAIT_MS : now - birth.bornAt >= BIRTH_GIVE_UP_MS;
|
|
63
|
+
}
|
|
64
|
+
/** The desktop a birth is born on: the one you sit at, which no line of its body names. */
|
|
65
|
+
const BIRTH_DEVICE = Object.freeze({ id: '', name: '', self: true });
|
|
66
|
+
/** The pending body's row, for its model: a terminal with no job and no folder yet, wearing the ramp (`neutral`, the
|
|
67
|
+
* palette's: a bare terminal belongs to no project). */
|
|
68
|
+
export function birthAgent(birth, neutral) {
|
|
69
|
+
return {
|
|
70
|
+
id: birth.id,
|
|
71
|
+
kind: 'terminal',
|
|
72
|
+
createdAt: birth.sinceMs,
|
|
73
|
+
status: 'idle',
|
|
74
|
+
statusSince: birth.sinceMs,
|
|
75
|
+
stale: false,
|
|
76
|
+
alive: true,
|
|
77
|
+
observed: true,
|
|
78
|
+
detail: '',
|
|
79
|
+
project: { name: '~' },
|
|
80
|
+
unread: false,
|
|
81
|
+
device: BIRTH_DEVICE,
|
|
82
|
+
attachable: true,
|
|
83
|
+
writable: true,
|
|
84
|
+
colour: neutral,
|
|
85
|
+
active: false,
|
|
86
|
+
receded: false,
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=birth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"birth.js","sourceRoot":"","sources":["../../../../src/views/swarm/bloom/birth.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,8EAA8E;AAC9E,6EAA6E;AAC7E,+EAA+E;AAC/E,2EAA2E;AAC3E,sDAAsD;AAGtD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAGvC,0FAA0F;AAC1F,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC;AAClC,2FAA2F;AAC3F,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC;AACvC,wGAAwG;AACxG,MAAM,SAAS,GAAG,GAAG,CAAC;AAmCtB;mGACmG;AACnG,MAAM,UAAU,cAAc,CAC5B,IAAkC,EAClC,UAA8B;IAE9B,IAAI,CAAC,IAAI,IAAI,CAAC,UAAU;QAAE,OAAO,SAAS,CAAC;IAC3C,MAAM,QAAQ,GAAG,UAAU,CAAC,IAAI,CAAC,EAAE,QAAQ,IAAI,EAAE,CAAC;IAClD,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC;QAAE,OAAO,SAAS,CAA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AI,CAAC,CAAC,CAAC,GAAG,GAAG,KAAK,CAAC,UAAU,IAAI,aAAa,CAAC,CAAC,CAAC,GAAG,GAAG,KAAK,CAAC,MAAM,IAAI,gBAAgB,CAAC;AACtH,CAAC;AAED,2FAA2F;AAC3F,MAAM,YAAY,GAAwB,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;AAE1F;wDACwD;AACxD,MAAM,UAAU,UAAU,CAAC,KAAiB,EAAE,OAAe;IAC3D,OAAO;QACL,EAAE,EAAE,KAAK,CAAC,EAAE;QACZ,IAAI,EAAE,UAAU;QAChB,SAAS,EAAE,KAAK,CAAC,OAAO;QACxB,MAAM,EAAE,MAAM;QACd,WAAW,EAAE,KAAK,CAAC,OAAO;QAC1B,KAAK,EAAE,KAAK;QACZ,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE;QACtB,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,YAAY;QACpB,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,OAAO;QACf,MAAM,EAAE,KAAK;QACb,OAAO,EAAE,KAAK;KACf,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { BloomTextMeasure } from './constants.js';
|
|
2
|
+
/** The bloom's text measure in a document: a 2D canvas's advance widths in the
|
|
3
|
+
* fonts `BLOOM_FONT` names (the fonts the overlay's CSS draws in), cached per
|
|
4
|
+
* font and text — a bloom seats every label on every retarget. The canvas is
|
|
5
|
+
* made detached, from the document of the element the bloom lives in (the view
|
|
6
|
+
* reaches no document of its own, MV-W2). Undefined where there is no canvas
|
|
7
|
+
* that draws (a test without one): the caller falls back. */
|
|
8
|
+
export declare function canvasBloomMeasure(within: Element): BloomTextMeasure | undefined;
|
|
9
|
+
/** Where no canvas can measure: characters × the font's px × 0.6 (the bloom tests' measure). */
|
|
10
|
+
export declare const approximateBloomMeasure: BloomTextMeasure;
|
|
11
|
+
//# sourceMappingURL=canvas-measure.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"canvas-measure.d.ts","sourceRoot":"","sources":["../../../../src/views/swarm/bloom/canvas-measure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD;;;;;6DAK6D;AAC7D,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,OAAO,GAAG,gBAAgB,GAAG,SAAS,CAuBhF;AAED,gGAAgG;AAChG,eAAO,MAAM,uBAAuB,EAAE,gBACyB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/** The bloom's text measure in a document: a 2D canvas's advance widths in the
|
|
2
|
+
* fonts `BLOOM_FONT` names (the fonts the overlay's CSS draws in), cached per
|
|
3
|
+
* font and text — a bloom seats every label on every retarget. The canvas is
|
|
4
|
+
* made detached, from the document of the element the bloom lives in (the view
|
|
5
|
+
* reaches no document of its own, MV-W2). Undefined where there is no canvas
|
|
6
|
+
* that draws (a test without one): the caller falls back. */
|
|
7
|
+
export function canvasBloomMeasure(within) {
|
|
8
|
+
let context = null;
|
|
9
|
+
try {
|
|
10
|
+
context = within.ownerDocument.createElement('canvas').getContext('2d');
|
|
11
|
+
}
|
|
12
|
+
catch {
|
|
13
|
+
// no document, or none that draws
|
|
14
|
+
}
|
|
15
|
+
if (!context)
|
|
16
|
+
return undefined;
|
|
17
|
+
const cache = new Map();
|
|
18
|
+
let font = '';
|
|
19
|
+
return (text, nextFont) => {
|
|
20
|
+
const key = `${nextFont}\u0000${text}`;
|
|
21
|
+
const cached = cache.get(key);
|
|
22
|
+
if (cached !== undefined)
|
|
23
|
+
return cached;
|
|
24
|
+
if (font !== nextFont) {
|
|
25
|
+
context.font = nextFont;
|
|
26
|
+
font = nextFont;
|
|
27
|
+
}
|
|
28
|
+
const width = context.measureText(text).width;
|
|
29
|
+
if (cache.size >= 4096)
|
|
30
|
+
cache.clear();
|
|
31
|
+
cache.set(key, width);
|
|
32
|
+
return width;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
/** Where no canvas can measure: characters × the font's px × 0.6 (the bloom tests' measure). */
|
|
36
|
+
export const approximateBloomMeasure = (text, font) => text.length * Number(/([\d.]+)px/.exec(font)?.[1] ?? 0) * 0.6;
|
|
37
|
+
//# sourceMappingURL=canvas-measure.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"canvas-measure.js","sourceRoot":"","sources":["../../../../src/views/swarm/bloom/canvas-measure.ts"],"names":[],"mappings":"AAEA;;;;;6DAK6D;AAC7D,MAAM,UAAU,kBAAkB,CAAC,MAAe;IAChD,IAAI,OAAO,GAAoC,IAAI,CAAC;IACpD,IAAI,CAAC;QACH,OAAO,GAAG,MAAM,CAAC,aAAa,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAC1E,CAAC;IAAC,MAAM,CAAC;QACP,kCAAkC;IACpC,CAAC;IACD,IAAI,CAAC,OAAO;QAAE,OAAO,SAAS,CAAC;IAC/B,MAAM,KAAK,GAAG,IAAI,GAAG,EAAkB,CAAC;IACxC,IAAI,IAAI,GAAG,EAAE,CAAC;IACd,OAAO,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE;QACxB,MAAM,GAAG,GAAG,GAAG,QAAQ,SAAS,IAAI,EAAE,CAAC;QACvC,MAAM,MAAM,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAC9B,IAAI,MAAM,KAAK,SAAS;YAAE,OAAO,MAAM,CAAC;QACxC,IAAI,IAAI,KAAK,QAAQ,EAAE,CAAC;YACtB,OAAO,CAAC,IAAI,GAAG,QAAQ,CAAC;YACxB,IAAI,GAAG,QAAQ,CAAC;QAClB,CAAC;QACD,MAAM,KAAK,GAAG,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC;QAC9C,IAAI,KAAK,CAAC,IAAI,IAAI,IAAI;YAAE,KAAK,CAAC,KAAK,EAAE,CAAC;QACtC,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACtB,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;AACJ,CAAC;AAED,gGAAgG;AAChG,MAAM,CAAC,MAAM,uBAAuB,GAAqB,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,CACtE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,GAAG,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
export declare const BLOOM: {
|
|
2
|
+
/** The hold, unchanged: AgentSwarm's LONG_PRESS_DURATION_MS. */
|
|
3
|
+
readonly holdMs: 520;
|
|
4
|
+
/** Moving further than this before the hold completes cancels it (LONG_PRESS_MOVE_TOLERANCE). */
|
|
5
|
+
readonly holdSlop: 8;
|
|
6
|
+
/** The hub: the hold ring's own final radius (field.wgsl), kept on screen. */
|
|
7
|
+
readonly hubR: 16;
|
|
8
|
+
/** Letting go inside this commits the hub (this desktop, its default profile). */
|
|
9
|
+
readonly deadR: 22;
|
|
10
|
+
/** Hub centre to a first-ring bud's centre (Pinterest, measured: ~82 pt on a phone). */
|
|
11
|
+
readonly r1: 92;
|
|
12
|
+
/** A first-ring bud's diameter (Pinterest: ~49 pt; an idle body is 100). */
|
|
13
|
+
readonly bud1: 48;
|
|
14
|
+
/** Degrees between first-ring buds (Pinterest: 42–43°), narrowed when there are many (220° at most). */
|
|
15
|
+
readonly step1: 42;
|
|
16
|
+
/** A desktop bud's centre to its profile buds' centres. */
|
|
17
|
+
readonly r2: 80;
|
|
18
|
+
/** A second-ring (profile) bud's diameter. */
|
|
19
|
+
readonly bud2: 42;
|
|
20
|
+
/** Degrees between second-ring buds. */
|
|
21
|
+
readonly step2: 40;
|
|
22
|
+
/** A ring that has just opened ignores the pointer this long: the hand is still moving (Kurtenbach). */
|
|
23
|
+
readonly settle: 90;
|
|
24
|
+
/** A desktop opens once the pointer is this close to its ring (r1 − reach). */
|
|
25
|
+
readonly reach: 12;
|
|
26
|
+
/** …and closes when the pointer comes back inside r1 − this. */
|
|
27
|
+
readonly backOut: 34;
|
|
28
|
+
/** A direction sector is at most ±this many degrees either side of its bud. */
|
|
29
|
+
readonly sectorMax: 26;
|
|
30
|
+
/** Past a ring by more than this is open ground: letting go there cancels. */
|
|
31
|
+
readonly slack: 64;
|
|
32
|
+
/** A bud's words sit this far off its rim… */
|
|
33
|
+
readonly labelGap: 8;
|
|
34
|
+
/** …and keep this far from every other bud (at its hot size) and the hub, */
|
|
35
|
+
readonly clearBud: 8;
|
|
36
|
+
/** …from other words and the chrome, */
|
|
37
|
+
readonly clearWord: 4;
|
|
38
|
+
/** …and from every spoke, where the tether runs. */
|
|
39
|
+
readonly clearSpoke: 6;
|
|
40
|
+
/** Kept clear of the field's edges and of the chrome. */
|
|
41
|
+
readonly inset: 14;
|
|
42
|
+
/** The targeted bud's scale (on --vf-ease-lift). */
|
|
43
|
+
readonly hot: 1.16;
|
|
44
|
+
/** The nearest bud leans in before it is targeted: scale 1 + lean × this (lean 0..1). */
|
|
45
|
+
readonly near: 0.06;
|
|
46
|
+
/** First-ring siblings' scale while a desktop is open. */
|
|
47
|
+
readonly dim: 0.86;
|
|
48
|
+
/** …and their opacity. */
|
|
49
|
+
readonly dimAlpha: 0.42;
|
|
50
|
+
/** A bud's flight out, on --vf-ease-pop. */
|
|
51
|
+
readonly pop: 280;
|
|
52
|
+
/** Between buds leaving the hub, centre first (DESIGN §6's choreography constant). */
|
|
53
|
+
readonly stagger: 26;
|
|
54
|
+
/** A bud growing hot or leaning in, on --vf-ease-lift. */
|
|
55
|
+
readonly lift: 180;
|
|
56
|
+
/** A bud's way back along its spoke (M4). */
|
|
57
|
+
readonly retract: 180;
|
|
58
|
+
/** A label follows its bud this far behind (§6: content 140–200 ms behind its container). */
|
|
59
|
+
readonly reveal: 140;
|
|
60
|
+
/** The field's quiet: its own ground at this alpha over every body while the bloom is open. */
|
|
61
|
+
readonly veil: 0.8;
|
|
62
|
+
/** Solid ground this far past every bud and every word… */
|
|
63
|
+
readonly clearPad: 16;
|
|
64
|
+
/** …then the clearing fades to the veil over this. */
|
|
65
|
+
readonly feather: 44;
|
|
66
|
+
/** The words' largest size, px (6.6% of the field's longer side, at most this). */
|
|
67
|
+
readonly sayMax: 72;
|
|
68
|
+
/** The smallest they shrink to before they take the least-covered place. */
|
|
69
|
+
readonly sayMin: 22;
|
|
70
|
+
/** The words keep this far from every bud, label and the hub. */
|
|
71
|
+
readonly sayGap: 40;
|
|
72
|
+
/** After letting go, the words say "Opening …" this long, then leave with the veil. */
|
|
73
|
+
readonly sayHold: 460;
|
|
74
|
+
};
|
|
75
|
+
export type BloomConstants = typeof BLOOM;
|
|
76
|
+
/** The CSS fonts the bloom measures its words in (the prototype's canvas fonts),
|
|
77
|
+
* handed to the injected {@link BloomTextMeasure} so a renderer's own measure
|
|
78
|
+
* sees the same size and weight its CSS draws. */
|
|
79
|
+
export declare const BLOOM_FONT: {
|
|
80
|
+
/** A bud's name (styles.css `.sb-label`: 9.5 px at 0.06 em). */
|
|
81
|
+
readonly label: "700 9.5px ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, monospace";
|
|
82
|
+
/** A desktop bud's state line (7.5 px at 0.1 em). */
|
|
83
|
+
readonly sub: "800 7.5px ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, monospace";
|
|
84
|
+
/** The words' one small line under the verb and noun. */
|
|
85
|
+
readonly detail: "700 11px ui-monospace, \"SF Mono\", SFMono-Regular, Menlo, monospace";
|
|
86
|
+
/** The words themselves, at `size` px (the swarm's title type: 800, −0.04 em). */
|
|
87
|
+
readonly say: (size: number) => string;
|
|
88
|
+
};
|
|
89
|
+
/** Advance width of `text` in CSS px drawn in `font` (a CSS font shorthand, as
|
|
90
|
+
* a canvas `ctx.font` takes it). Injected: the bloom's logic never touches a
|
|
91
|
+
* canvas. Letter spacing is NOT included — the bloom adds its own per-font share. */
|
|
92
|
+
export type BloomTextMeasure = (text: string, font: string) => number;
|
|
93
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/views/swarm/bloom/constants.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,KAAK;IAChB,gEAAgE;;IAEhE,iGAAiG;;IAEjG,8EAA8E;;IAE9E,kFAAkF;;IAElF,wFAAwF;;IAExF,4EAA4E;;IAE5E,wGAAwG;;IAExG,2DAA2D;;IAE3D,8CAA8C;;IAE9C,wCAAwC;;IAExC,wGAAwG;;IAExG,+EAA+E;;IAE/E,gEAAgE;;IAEhE,+EAA+E;;IAE/E,8EAA8E;;IAE9E,8CAA8C;;IAE9C,6EAA6E;;IAE7E,wCAAwC;;IAExC,oDAAoD;;IAEpD,yDAAyD;;IAEzD,oDAAoD;;IAEpD,yFAAyF;;IAEzF,0DAA0D;;IAE1D,0BAA0B;;IAE1B,4CAA4C;;IAE5C,sFAAsF;;IAEtF,0DAA0D;;IAE1D,6CAA6C;;IAE7C,6FAA6F;;IAE7F,+FAA+F;;IAE/F,2DAA2D;;IAE3D,sDAAsD;;IAEtD,mFAAmF;;IAEnF,4EAA4E;;IAE5E,iEAAiE;;IAEjE,uFAAuF;;CAE/E,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,OAAO,KAAK,CAAC;AAK1C;;kDAEkD;AAClD,eAAO,MAAM,UAAU;IACrB,gEAAgE;;IAEhE,qDAAqD;;IAErD,yDAAyD;;IAEzD,kFAAkF;yBACtE,MAAM,KAAG,MAAM;CACnB,CAAC;AAEX;;qFAEqF;AACrF,MAAM,MAAM,gBAAgB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
// The spawn bloom's one table of numbers (thinking-spawn-bloom §2; the
|
|
2
|
+
// prototype's `SB.BLOOM`, draft/spawn-bloom/bloom.js). Every value was audited
|
|
3
|
+
// with the prototype over ~800 hold points in every scenario; they are ported
|
|
4
|
+
// as they are, never tuned here. Lengths are CSS px, angles degrees, times ms.
|
|
5
|
+
export const BLOOM = {
|
|
6
|
+
/** The hold, unchanged: AgentSwarm's LONG_PRESS_DURATION_MS. */
|
|
7
|
+
holdMs: 520,
|
|
8
|
+
/** Moving further than this before the hold completes cancels it (LONG_PRESS_MOVE_TOLERANCE). */
|
|
9
|
+
holdSlop: 8,
|
|
10
|
+
/** The hub: the hold ring's own final radius (field.wgsl), kept on screen. */
|
|
11
|
+
hubR: 16,
|
|
12
|
+
/** Letting go inside this commits the hub (this desktop, its default profile). */
|
|
13
|
+
deadR: 22,
|
|
14
|
+
/** Hub centre to a first-ring bud's centre (Pinterest, measured: ~82 pt on a phone). */
|
|
15
|
+
r1: 92,
|
|
16
|
+
/** A first-ring bud's diameter (Pinterest: ~49 pt; an idle body is 100). */
|
|
17
|
+
bud1: 48,
|
|
18
|
+
/** Degrees between first-ring buds (Pinterest: 42–43°), narrowed when there are many (220° at most). */
|
|
19
|
+
step1: 42,
|
|
20
|
+
/** A desktop bud's centre to its profile buds' centres. */
|
|
21
|
+
r2: 80,
|
|
22
|
+
/** A second-ring (profile) bud's diameter. */
|
|
23
|
+
bud2: 42,
|
|
24
|
+
/** Degrees between second-ring buds. */
|
|
25
|
+
step2: 40,
|
|
26
|
+
/** A ring that has just opened ignores the pointer this long: the hand is still moving (Kurtenbach). */
|
|
27
|
+
settle: 90,
|
|
28
|
+
/** A desktop opens once the pointer is this close to its ring (r1 − reach). */
|
|
29
|
+
reach: 12,
|
|
30
|
+
/** …and closes when the pointer comes back inside r1 − this. */
|
|
31
|
+
backOut: 34,
|
|
32
|
+
/** A direction sector is at most ±this many degrees either side of its bud. */
|
|
33
|
+
sectorMax: 26,
|
|
34
|
+
/** Past a ring by more than this is open ground: letting go there cancels. */
|
|
35
|
+
slack: 64,
|
|
36
|
+
/** A bud's words sit this far off its rim… */
|
|
37
|
+
labelGap: 8,
|
|
38
|
+
/** …and keep this far from every other bud (at its hot size) and the hub, */
|
|
39
|
+
clearBud: 8,
|
|
40
|
+
/** …from other words and the chrome, */
|
|
41
|
+
clearWord: 4,
|
|
42
|
+
/** …and from every spoke, where the tether runs. */
|
|
43
|
+
clearSpoke: 6,
|
|
44
|
+
/** Kept clear of the field's edges and of the chrome. */
|
|
45
|
+
inset: 14,
|
|
46
|
+
/** The targeted bud's scale (on --vf-ease-lift). */
|
|
47
|
+
hot: 1.16,
|
|
48
|
+
/** The nearest bud leans in before it is targeted: scale 1 + lean × this (lean 0..1). */
|
|
49
|
+
near: 0.06,
|
|
50
|
+
/** First-ring siblings' scale while a desktop is open. */
|
|
51
|
+
dim: 0.86,
|
|
52
|
+
/** …and their opacity. */
|
|
53
|
+
dimAlpha: 0.42,
|
|
54
|
+
/** A bud's flight out, on --vf-ease-pop. */
|
|
55
|
+
pop: 280,
|
|
56
|
+
/** Between buds leaving the hub, centre first (DESIGN §6's choreography constant). */
|
|
57
|
+
stagger: 26,
|
|
58
|
+
/** A bud growing hot or leaning in, on --vf-ease-lift. */
|
|
59
|
+
lift: 180,
|
|
60
|
+
/** A bud's way back along its spoke (M4). */
|
|
61
|
+
retract: 180,
|
|
62
|
+
/** A label follows its bud this far behind (§6: content 140–200 ms behind its container). */
|
|
63
|
+
reveal: 140,
|
|
64
|
+
/** The field's quiet: its own ground at this alpha over every body while the bloom is open. */
|
|
65
|
+
veil: 0.8,
|
|
66
|
+
/** Solid ground this far past every bud and every word… */
|
|
67
|
+
clearPad: 16,
|
|
68
|
+
/** …then the clearing fades to the veil over this. */
|
|
69
|
+
feather: 44,
|
|
70
|
+
/** The words' largest size, px (6.6% of the field's longer side, at most this). */
|
|
71
|
+
sayMax: 72,
|
|
72
|
+
/** The smallest they shrink to before they take the least-covered place. */
|
|
73
|
+
sayMin: 22,
|
|
74
|
+
/** The words keep this far from every bud, label and the hub. */
|
|
75
|
+
sayGap: 40,
|
|
76
|
+
/** After letting go, the words say "Opening …" this long, then leave with the veil. */
|
|
77
|
+
sayHold: 460,
|
|
78
|
+
};
|
|
79
|
+
const MONO = 'ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace';
|
|
80
|
+
const SAY_FAMILY = '-apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif';
|
|
81
|
+
/** The CSS fonts the bloom measures its words in (the prototype's canvas fonts),
|
|
82
|
+
* handed to the injected {@link BloomTextMeasure} so a renderer's own measure
|
|
83
|
+
* sees the same size and weight its CSS draws. */
|
|
84
|
+
export const BLOOM_FONT = {
|
|
85
|
+
/** A bud's name (styles.css `.sb-label`: 9.5 px at 0.06 em). */
|
|
86
|
+
label: `700 9.5px ${MONO}`,
|
|
87
|
+
/** A desktop bud's state line (7.5 px at 0.1 em). */
|
|
88
|
+
sub: `800 7.5px ${MONO}`,
|
|
89
|
+
/** The words' one small line under the verb and noun. */
|
|
90
|
+
detail: `700 11px ${MONO}`,
|
|
91
|
+
/** The words themselves, at `size` px (the swarm's title type: 800, −0.04 em). */
|
|
92
|
+
say: (size) => `800 ${size}px ${SAY_FAMILY}`,
|
|
93
|
+
};
|
|
94
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/views/swarm/bloom/constants.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,+EAA+E;AAC/E,8EAA8E;AAC9E,+EAA+E;AAE/E,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,gEAAgE;IAChE,MAAM,EAAE,GA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4EAA4E;IAC5E,MAAM,EAAE,EAAE;IACV,iEAAiE;IACjE,MAAM,EAAE,EAAE;IACV,uFAAuF;IACvF,OAAO,EAAE,GAAG;CACJ,CAAC;AAIX,MAAM,IAAI,GAAG,2DAA2D,CAAC;AACzE,MAAM,UAAU,GAAG,wFAAwF,CAAC;AAE5G;;kDAEkD;AAClD,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,gEAAgE;IAChE,KAAK,EAAE,aAAa,IAAI,EAAE;IAC1B,qDAAqD;IACrD,GAAG,EAAE,aAAa,IAAI,EAAE;IACxB,yDAAyD;IACzD,MAAM,EAAE,YAAY,IAAI,EAAE;IAC1B,kFAAkF;IAClF,GAAG,EAAE,CAAC,IAAY,EAAU,EAAE,CAAC,OAAO,IAAI,MAAM,UAAU,EAAE;CACpD,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { AgentView } from '@vibefield/puppeteer-view-sdk';
|
|
2
|
+
import type { SwarmClearing } from '../gpu/swarm-renderer.js';
|
|
3
|
+
import { type BloomState } from './model.js';
|
|
4
|
+
/** The veil and the clearings ease with this time constant (the prototype's 60 ms)… */
|
|
5
|
+
export declare const VEIL_TAU_MS = 60;
|
|
6
|
+
/** …and what the bloom points at rises above the veil, or sinks back, with this one (70 ms). */
|
|
7
|
+
export declare const LIT_TAU_MS = 70;
|
|
8
|
+
/** The prototype's ease: `1 − exp(−dt/τ)` of the way to the target each frame, snapping
|
|
9
|
+
* the last 0.004. Reduced motion (or τ ≤ 0) arrives at once. */
|
|
10
|
+
export declare function approach(value: number, target: number, dtMs: number, tauMs: number, reduced?: boolean): number;
|
|
11
|
+
type ClearingKey = 'ring' | 'desktop' | 'words';
|
|
12
|
+
interface KeptClearing {
|
|
13
|
+
clearing: SwarmClearing;
|
|
14
|
+
alpha: number;
|
|
15
|
+
on: boolean;
|
|
16
|
+
}
|
|
17
|
+
/** What the field keeps between frames. */
|
|
18
|
+
export interface BloomFieldMemory {
|
|
19
|
+
veil: number;
|
|
20
|
+
readonly lit: Map<string, number>;
|
|
21
|
+
readonly clearings: Map<ClearingKey, KeptClearing>;
|
|
22
|
+
}
|
|
23
|
+
export declare function bloomFieldMemory(): BloomFieldMemory;
|
|
24
|
+
export interface BloomFieldStep {
|
|
25
|
+
readonly state: BloomState | null;
|
|
26
|
+
/** When the bloom closed, on `now`'s clock: after a commit the words' clearing stays `sayHold`. */
|
|
27
|
+
readonly closedAt: number;
|
|
28
|
+
readonly now: number;
|
|
29
|
+
readonly dtMs: number;
|
|
30
|
+
readonly reduced: boolean;
|
|
31
|
+
/** The view's motion scale (the core's `motionScale`), 1 by default. */
|
|
32
|
+
readonly motionScale?: number | undefined;
|
|
33
|
+
}
|
|
34
|
+
/** A clearing as it is drawn this frame, and how far it has faded in (0..1). */
|
|
35
|
+
export interface BloomFieldClearing {
|
|
36
|
+
readonly clearing: SwarmClearing;
|
|
37
|
+
readonly opacity: number;
|
|
38
|
+
}
|
|
39
|
+
export interface BloomFieldFrame {
|
|
40
|
+
/** The field's quiet: the grid at (1 − veil), a body at (1 − veil × (1 − its lit)). */
|
|
41
|
+
readonly veil: number;
|
|
42
|
+
readonly clearings: readonly BloomFieldClearing[];
|
|
43
|
+
/** Which rows the bloom lights now (SB-D8); none once it has closed. */
|
|
44
|
+
readonly lit: (agent: AgentView) => boolean;
|
|
45
|
+
}
|
|
46
|
+
/** One frame of the field under the bloom: the veil eased toward `BLOOM.veil` while
|
|
47
|
+
* it is open and back to 0 after; each clearing eased in while the view has it and
|
|
48
|
+
* out (in its last place) once it has gone — after a commit the words' own stays
|
|
49
|
+
* `sayHold`, then goes. */
|
|
50
|
+
export declare function stepBloomField(memory: BloomFieldMemory, step: BloomFieldStep): BloomFieldFrame;
|
|
51
|
+
/** A body's lit mix one frame on (0 under the veil, 1 above it); forgotten once it is back at 0. */
|
|
52
|
+
export declare function stepLit(memory: BloomFieldMemory, id: string, lit: boolean, dtMs: number, reduced: boolean, motionScale?: number): number;
|
|
53
|
+
/** A body's opacity under the veil: the rest of the field recedes, what is lit keeps its own. */
|
|
54
|
+
export declare function veiledOpacity(opacity: number, veil: number, lit: number): number;
|
|
55
|
+
/** The swarm's arrival (0 → 1.2 → 0.96 → 1.035 → 1 over `durationMs`), started from the size a
|
|
56
|
+
* bud already had: `from` is its diameter over the body's. From 0 it is AgentSwarm's own curve;
|
|
57
|
+
* from a bud, the body is whole at once and grows on from there (the prototype's `arrival`). */
|
|
58
|
+
export declare function arrivalFrom(elapsedMs: number, from: number, durationMs: number): {
|
|
59
|
+
scale: number;
|
|
60
|
+
opacity: number;
|
|
61
|
+
};
|
|
62
|
+
/** A birth that never came (refused, or no row in time) goes back the way it came: it shrinks
|
|
63
|
+
* away over the retract (M4: depart is not vanish). 1 → 0. */
|
|
64
|
+
export declare function departure(elapsedMs: number, motionScale?: number): {
|
|
65
|
+
scale: number;
|
|
66
|
+
opacity: number;
|
|
67
|
+
};
|
|
68
|
+
export {};
|
|
69
|
+
//# sourceMappingURL=field-frame.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-frame.d.ts","sourceRoot":"","sources":["../../../../src/views/swarm/bloom/field-frame.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,EAAoB,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAE/D,uFAAuF;AACvF,eAAO,MAAM,WAAW,KAAK,CAAC;AAC9B,gGAAgG;AAChG,eAAO,MAAM,UAAU,KAAK,CAAC;AAE7B;gEACgE;AAChE,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,UAAQ,GAAG,MAAM,CAI5G;AAED,KAAK,WAAW,GAAG,MAAM,GAAG,SAAS,G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AED,oGAAoG;AACpG,wBAAgB,OAAO,CACrB,MAAM,EAAE,gBAAgB,EACxB,EAAE,EAAE,MAAM,EACV,GAAG,EAAE,OAAO,EACZ,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,OAAO,EAChB,WAAW,SAAI,GACd,MAAM,CAKR;AAED,iGAAiG;AACjG,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAEhF;AAED;;gGAEgG;AAChG,wBAAgB,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAenH;AAED;8DAC8D;AAC9D,wBAAgB,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,SAAI,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAIhG"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
// The field under a bloom (SB §2.8), pure: the veil over every body, what the
|
|
2
|
+
// bloom points at eased back above it, the clearings faded in and out, and a
|
|
3
|
+
// birth's arrival from the bud it grew from. The render loop owns the clock and
|
|
4
|
+
// keeps the memory; nothing here reads the DOM or a GPU.
|
|
5
|
+
import { BLOOM } from './constants.js';
|
|
6
|
+
import { bloomView, litOf } from './model.js';
|
|
7
|
+
/** The veil and the clearings ease with this time constant (the prototype's 60 ms)… */
|
|
8
|
+
export const VEIL_TAU_MS = 60;
|
|
9
|
+
/** …and what the bloom points at rises above the veil, or sinks back, with this one (70 ms). */
|
|
10
|
+
export const LIT_TAU_MS = 70;
|
|
11
|
+
/** The prototype's ease: `1 − exp(−dt/τ)` of the way to the target each frame, snapping
|
|
12
|
+
* the last 0.004. Reduced motion (or τ ≤ 0) arrives at once. */
|
|
13
|
+
export function approach(value, target, dtMs, tauMs, reduced = false) {
|
|
14
|
+
if (reduced || tauMs <= 0)
|
|
15
|
+
return target;
|
|
16
|
+
const next = value + (target - value) * (1 - Math.exp(-Math.max(0, dtMs) / tauMs));
|
|
17
|
+
return Math.abs(target - next) < 0.004 ? target : next;
|
|
18
|
+
}
|
|
19
|
+
export function bloomFieldMemory() {
|
|
20
|
+
return { veil: 0, lit: new Map(), clearings: new Map() };
|
|
21
|
+
}
|
|
22
|
+
/** Which of the view's clearings this is: ring one's circle stands at the hub, ring two's elsewhere, the words' is a rect. */
|
|
23
|
+
function keyOf(state, clearing) {
|
|
24
|
+
if (clearing.kind === 'rect')
|
|
25
|
+
return 'words';
|
|
26
|
+
return clearing.x === state.P.x && clearing.y === state.P.y ? 'ring' : 'desktop';
|
|
27
|
+
}
|
|
28
|
+
/** One frame of the field under the bloom: the veil eased toward `BLOOM.veil` while
|
|
29
|
+
* it is open and back to 0 after; each clearing eased in while the view has it and
|
|
30
|
+
* out (in its last place) once it has gone — after a commit the words' own stays
|
|
31
|
+
* `sayHold`, then goes. */
|
|
32
|
+
export function stepBloomField(memory, step) {
|
|
33
|
+
const scale = step.motionScale ?? 1;
|
|
34
|
+
const state = step.state;
|
|
35
|
+
const view = state ? bloomView(state) : null;
|
|
36
|
+
memory.veil = approach(memory.veil, view?.veil ?? 0, step.dtMs, VEIL_TAU_MS * scale, step.reduced);
|
|
37
|
+
const shown = new Set();
|
|
38
|
+
if (state && view) {
|
|
39
|
+
const closed = view.closed;
|
|
40
|
+
const holding = !closed || step.now - step.closedAt < closed.sayHold;
|
|
41
|
+
for (const clearing of holding ? view.clearings : []) {
|
|
42
|
+
const key = keyOf(state, clearing);
|
|
43
|
+
shown.add(key);
|
|
44
|
+
const kept = memory.clearings.get(key);
|
|
45
|
+
memory.clearings.set(key, { clearing, alpha: kept?.alpha ?? 0, on: true });
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
const clearings = [];
|
|
49
|
+
for (const [key, kept] of memory.clearings) {
|
|
50
|
+
if (!shown.has(key))
|
|
51
|
+
kept.on = false;
|
|
52
|
+
kept.alpha = approach(kept.alpha, kept.on ? 1 : 0, step.dtMs, VEIL_TAU_MS * scale, step.reduced);
|
|
53
|
+
if (!kept.on && kept.alpha < 0.01) {
|
|
54
|
+
memory.clearings.delete(key);
|
|
55
|
+
continue;
|
|
56
|
+
}
|
|
57
|
+
clearings.push({ clearing: kept.clearing, opacity: kept.alpha });
|
|
58
|
+
}
|
|
59
|
+
return { veil: memory.veil, clearings, lit: state ? litOf(state) : () => false };
|
|
60
|
+
}
|
|
61
|
+
/** A body's lit mix one frame on (0 under the veil, 1 above it); forgotten once it is back at 0. */
|
|
62
|
+
export function stepLit(memory, id, lit, dtMs, reduced, motionScale = 1) {
|
|
63
|
+
const value = approach(memory.lit.get(id) ?? 0, lit ? 1 : 0, dtMs, LIT_TAU_MS * motionScale, reduced);
|
|
64
|
+
if (value === 0)
|
|
65
|
+
memory.lit.delete(id);
|
|
66
|
+
else
|
|
67
|
+
memory.lit.set(id, value);
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
/** A body's opacity under the veil: the rest of the field recedes, what is lit keeps its own. */
|
|
71
|
+
export function veiledOpacity(opacity, veil, lit) {
|
|
72
|
+
return opacity * (1 - veil * (1 - lit));
|
|
73
|
+
}
|
|
74
|
+
/** The swarm's arrival (0 → 1.2 → 0.96 → 1.035 → 1 over `durationMs`), started from the size a
|
|
75
|
+
* bud already had: `from` is its diameter over the body's. From 0 it is AgentSwarm's own curve;
|
|
76
|
+
* from a bud, the body is whole at once and grows on from there (the prototype's `arrival`). */
|
|
77
|
+
export function arrivalFrom(elapsedMs, from, durationMs) {
|
|
78
|
+
const t = elapsedMs / durationMs;
|
|
79
|
+
const s0 = Math.max(0, from);
|
|
80
|
+
if (t >= 1)
|
|
81
|
+
return { scale: 1, opacity: 1 };
|
|
82
|
+
if (t <= 0)
|
|
83
|
+
return { scale: s0, opacity: s0 > 0 ? 1 : 0 };
|
|
84
|
+
const outQuint = (u) => 1 - (1 - u) ** 5;
|
|
85
|
+
const outQuad = (u) => 1 - (1 - u) ** 2;
|
|
86
|
+
const inOut = (u) => (u < 0.5 ? 2 * u * u : 1 - (-2 * u + 2) ** 2 / 2);
|
|
87
|
+
if (t < 0.52) {
|
|
88
|
+
const u = outQuint(t / 0.52);
|
|
89
|
+
return { scale: s0 + (1.2 - s0) * u, opacity: s0 > 0 ? 1 : u };
|
|
90
|
+
}
|
|
91
|
+
if (t < 0.72)
|
|
92
|
+
return { scale: 1.2 + (0.96 - 1.2) * outQuint((t - 0.52) / 0.2), opacity: 1 };
|
|
93
|
+
if (t < 0.88)
|
|
94
|
+
return { scale: 0.96 + (1.035 - 0.96) * outQuad((t - 0.72) / 0.16), opacity: 1 };
|
|
95
|
+
return { scale: 1.035 + (1 - 1.035) * inOut((t - 0.88) / 0.12), opacity: 1 };
|
|
96
|
+
}
|
|
97
|
+
/** A birth that never came (refused, or no row in time) goes back the way it came: it shrinks
|
|
98
|
+
* away over the retract (M4: depart is not vanish). 1 → 0. */
|
|
99
|
+
export function departure(elapsedMs, motionScale = 1) {
|
|
100
|
+
const t = Math.min(1, Math.max(0, elapsedMs / Math.max(1, BLOOM.retract * motionScale)));
|
|
101
|
+
const k = 1 - t * t;
|
|
102
|
+
return { scale: k, opacity: k };
|
|
103
|
+
}
|
|
104
|
+
//# sourceMappingURL=field-frame.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-frame.js","sourceRoot":"","sources":["../../../../src/views/swarm/bloom/field-frame.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,6EAA6E;AAC7E,gFAAgF;AAChF,yDAAyD;AAIzD,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAmB,MAAM,YAAY,CAAC;AAE/D,uFAAuF;AACvF,MAAM,CAAC,MAAM,WAAW,GAAG,EAAE,CAAC;AAC9B,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