@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,88 @@
|
|
|
1
|
+
import { type LaneStatus, type TimelineLane, type TimelineLaneKind } from './timeline-lanes.js';
|
|
2
|
+
/** What a stretch of wake shows: a lane's state, or `bounds`, the record's bounds alone (the floor), flat and faint. */
|
|
3
|
+
export type WakeStatus = LaneStatus | 'bounds';
|
|
4
|
+
/** Half the wake's thickness: work is wide, a wait you owe is a thread, the record's bounds a flat band, rest a hair. */
|
|
5
|
+
export declare function wakeRadius(kind: TimelineLaneKind, status: WakeStatus, laneHeight: number): number;
|
|
6
|
+
export interface WakeSegment {
|
|
7
|
+
/** The span's visible start and end, in ms. */
|
|
8
|
+
readonly a: number;
|
|
9
|
+
readonly b: number;
|
|
10
|
+
/** The same in the canvas's x, the window's left edge at 0. */
|
|
11
|
+
readonly x0: number;
|
|
12
|
+
readonly x1: number;
|
|
13
|
+
readonly status: WakeStatus;
|
|
14
|
+
readonly r: number;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The lane between `t0` and `t1` (the head), in px from `t0`: its recorded stretches, then its current state (an
|
|
18
|
+
* ended run's record stops at its last activity). Each starts no earlier than it does and a little before the window,
|
|
19
|
+
* so the wake enters from off-canvas rather than starting at the edge.
|
|
20
|
+
*/
|
|
21
|
+
export declare function wakeSegments(lane: TimelineLane, t0: number, t1: number, pxPerMs: number, laneHeight: number, nowMs: number): WakeSegment[];
|
|
22
|
+
/** The wake as the record breaks it: one run per stretch of segments with no gap between them. */
|
|
23
|
+
export declare function wakeRuns(segments: readonly WakeSegment[]): WakeSegment[][];
|
|
24
|
+
/**
|
|
25
|
+
* The time in the lane's life between `t0` and `t1` that no recorded stretch covers (an unrecorded one included):
|
|
26
|
+
* drawn as the dotted thread, the same as before a runtime lane's current state (T3). A row's life runs to its
|
|
27
|
+
* current status; an ended run's to its last activity.
|
|
28
|
+
*/
|
|
29
|
+
export declare function unrecordedStretches(lane: TimelineLane, t0: number, t1: number): {
|
|
30
|
+
a: number;
|
|
31
|
+
b: number;
|
|
32
|
+
}[];
|
|
33
|
+
/**
|
|
34
|
+
* Where the runtime takes over a row's recorded past: its current state's start, when the record runs up to it
|
|
35
|
+
* unbroken (a gap there is already the dotted thread). The x and the wake's half-thickness either side of it.
|
|
36
|
+
*/
|
|
37
|
+
export declare function wakeSeam(lane: TimelineLane, segments: readonly WakeSegment[]): {
|
|
38
|
+
x: number;
|
|
39
|
+
r: number;
|
|
40
|
+
} | undefined;
|
|
41
|
+
/** How far either side of a change the S-curve runs: never more than 5 px, never more than 40% of either span. */
|
|
42
|
+
export declare function neck(segments: readonly WakeSegment[], index: number): number;
|
|
43
|
+
export type PathCommand = {
|
|
44
|
+
readonly op: 'M' | 'L';
|
|
45
|
+
readonly x: number;
|
|
46
|
+
readonly y: number;
|
|
47
|
+
} | {
|
|
48
|
+
readonly op: 'C';
|
|
49
|
+
readonly x1: number;
|
|
50
|
+
readonly y1: number;
|
|
51
|
+
readonly x2: number;
|
|
52
|
+
readonly y2: number;
|
|
53
|
+
readonly x: number;
|
|
54
|
+
readonly y: number;
|
|
55
|
+
} | {
|
|
56
|
+
readonly op: 'A';
|
|
57
|
+
readonly cx: number;
|
|
58
|
+
readonly cy: number;
|
|
59
|
+
readonly r: number;
|
|
60
|
+
readonly start: number;
|
|
61
|
+
readonly end: number;
|
|
62
|
+
} | {
|
|
63
|
+
readonly op: 'Z';
|
|
64
|
+
};
|
|
65
|
+
/** Whether the wake begins with a round cap: it starts where the lane's current state does, inside the window. */
|
|
66
|
+
export declare function capsStart(lane: TimelineLane, first: WakeSegment): boolean;
|
|
67
|
+
/** Whether a run of a recorded wake begins with a round cap: where its first stretch begins, inside the window. */
|
|
68
|
+
export declare function capsRun(first: WakeSegment): boolean;
|
|
69
|
+
/** The outline: the top edge left to right, the bottom edge back, each change of thickness a short S-curve. */
|
|
70
|
+
export declare function wakeOutline(segments: readonly WakeSegment[], cy: number, capStart: boolean): PathCommand[];
|
|
71
|
+
export interface GradientStop {
|
|
72
|
+
readonly offset: number;
|
|
73
|
+
readonly color: string;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* The colours along the wake as a horizontal gradient: each change of colour
|
|
77
|
+
* blends across its neck, so the hue turns where the shape does.
|
|
78
|
+
*/
|
|
79
|
+
export declare function wakeGradient(segments: readonly WakeSegment[], colorOf: (segment: WakeSegment) => string): GradientStop[];
|
|
80
|
+
/** The sheen along each stretch of work long enough to carry one: a 1 px line in the tube's upper half. */
|
|
81
|
+
export declare function wakeSheens(segments: readonly WakeSegment[], cy: number): {
|
|
82
|
+
x0: number;
|
|
83
|
+
x1: number;
|
|
84
|
+
y: number;
|
|
85
|
+
}[];
|
|
86
|
+
/** Replay commands into a canvas path. */
|
|
87
|
+
export declare function toPath2D(commands: readonly PathCommand[]): Path2D;
|
|
88
|
+
//# sourceMappingURL=wake-geometry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wake-geometry.d.ts","sourceRoot":"","sources":["../../../src/views/timeline/wake-geometry.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,KAAK,UAAU,EAAE,KAAK,YAAY,EAAE,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAa7G,wHAAwH;AACxH,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,QAAQ,CAAC;AAE/C,yHAAyH;AACzH,wBAAgB,UAAU,CAAC,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAOjG;AAED,MAAM,WAAW,WAAW;IAC1B,+CAA+C;IAC/C,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;CACpB;AAkCD;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,YAAY,EAClB,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,OA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timeline-lanes.js';
|
|
2
|
+
/** Half the wake's thickness: work is wide, a wait you owe is a thread, the record's bounds a flat band, rest a hair. */
|
|
3
|
+
export function wakeRadius(kind, status, laneHeight) {
|
|
4
|
+
if (kind === 'terminal')
|
|
5
|
+
return status === 'working' ? 1.8 : 0.6;
|
|
6
|
+
if (status === 'working')
|
|
7
|
+
return Math.min(7.5, Math.max(4, laneHeight * 0.22));
|
|
8
|
+
if (status === 'blocked' || status === 'unseen' || status === 'bounds') {
|
|
9
|
+
return Math.min(3.8, Math.max(2.2, laneHeight * 0.115));
|
|
10
|
+
}
|
|
11
|
+
return 0.85;
|
|
12
|
+
}
|
|
13
|
+
/** How each recorded stretch is drawn: work as work, a quiet stretch as rest's hair, the bounds flat (never the swell). */
|
|
14
|
+
const RECORDED = {
|
|
15
|
+
worked: 'working',
|
|
16
|
+
quiet: 'idle',
|
|
17
|
+
bounds: 'bounds',
|
|
18
|
+
};
|
|
19
|
+
/** The recorded stretches that reach `[lo, end)`, in px from `t0`, onto `out`. An unrecorded one is no wake. */
|
|
20
|
+
function recordedSegments(out, past, kind, lo, end, t0, pxPerMs, laneHeight) {
|
|
21
|
+
// Only the spans that reach the window: a lane may carry a day of them.
|
|
22
|
+
for (let index = Math.max(0, spanIndexAt(past, lo)); index < past.length; index += 1) {
|
|
23
|
+
const span = past[index];
|
|
24
|
+
if (span.from >= end)
|
|
25
|
+
break;
|
|
26
|
+
if (span.kind === 'unrecorded')
|
|
27
|
+
continue;
|
|
28
|
+
const a = Math.max(span.from, lo);
|
|
29
|
+
const b = Math.min(span.to, end);
|
|
30
|
+
if (b <= a)
|
|
31
|
+
continue;
|
|
32
|
+
const status = RECORDED[span.kind];
|
|
33
|
+
out.push({ a, b, x0: (a - t0) * pxPerMs, x1: (b - t0) * pxPerMs, status, r: wakeRadius(kind, status, laneHeight) });
|
|
34
|
+
}
|
|
35
|
+
return out;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The lane between `t0` and `t1` (the head), in px from `t0`: its recorded stretches, then its current state (an
|
|
39
|
+
* ended run's record stops at its last activity). Each starts no earlier than it does and a little before the window,
|
|
40
|
+
* so the wake enters from off-canvas rather than starting at the edge.
|
|
41
|
+
*/
|
|
42
|
+
export function wakeSegments(lane, t0, t1, pxPerMs, laneHeight, nowMs) {
|
|
43
|
+
const lo = t0 - 30 / pxPerMs;
|
|
44
|
+
if (lane.ended !== undefined) {
|
|
45
|
+
const end = Math.min(lane.ended.endedAt, t1);
|
|
46
|
+
return lane.past === undefined ? [] : recordedSegments([], lane.past, lane.kind, lo, end, t0, pxPerMs, laneHeight);
|
|
47
|
+
}
|
|
48
|
+
const out = lane.past === undefined
|
|
49
|
+
? []
|
|
50
|
+
: recordedSegments([], lane.past, lane.kind, lo, Math.min(lane.sinceMs, t1, nowMs), t0, pxPerMs, laneHeight);
|
|
51
|
+
const end = Math.min(nowMs, t1);
|
|
52
|
+
const span = lane.current;
|
|
53
|
+
if (span.fromMs >= end)
|
|
54
|
+
return out;
|
|
55
|
+
const a = Math.max(span.fromMs, lane.sinceMs, t0 - 30 / pxPerMs);
|
|
56
|
+
if (end <= a)
|
|
57
|
+
return out;
|
|
58
|
+
out.push({
|
|
59
|
+
a,
|
|
60
|
+
b: end,
|
|
61
|
+
x0: (a - t0) * pxPerMs,
|
|
62
|
+
x1: (end - t0) * pxPerMs,
|
|
63
|
+
status: span.status,
|
|
64
|
+
r: wakeRadius(lane.kind, span.status, laneHeight),
|
|
65
|
+
});
|
|
66
|
+
return out;
|
|
67
|
+
}
|
|
68
|
+
/** The wake as the record breaks it: one run per stretch of segments with no gap between them. */
|
|
69
|
+
export function wakeRuns(segments) {
|
|
70
|
+
const runs = [];
|
|
71
|
+
let run = [];
|
|
72
|
+
for (const segment of segments) {
|
|
73
|
+
const last = run[run.length - 1];
|
|
74
|
+
if (last !== undefined && segment.a > last.b) {
|
|
75
|
+
runs.push(run);
|
|
76
|
+
run = [];
|
|
77
|
+
}
|
|
78
|
+
run.push(segment);
|
|
79
|
+
}
|
|
80
|
+
if (run.length > 0)
|
|
81
|
+
runs.push(run);
|
|
82
|
+
return runs;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* The time in the lane's life between `t0` and `t1` that no recorded stretch covers (an unrecorded one included):
|
|
86
|
+
* drawn as the dotted thread, the same as before a runtime lane's current state (T3). A row's life runs to its
|
|
87
|
+
* current status; an ended run's to its last activity.
|
|
88
|
+
*/
|
|
89
|
+
export function unrecordedStretches(lane, t0, t1) {
|
|
90
|
+
const from = Math.max(lane.bornMs, t0);
|
|
91
|
+
const to = Math.min(lane.ended === undefined ? lane.sinceMs : lane.ended.endedAt, t1);
|
|
92
|
+
const out = [];
|
|
93
|
+
if (to <= from)
|
|
94
|
+
return out;
|
|
95
|
+
const past = lane.past ?? [];
|
|
96
|
+
let cursor = from;
|
|
97
|
+
for (let index = Math.max(0, spanIndexAt(past, from)); index < past.length && cursor < to; index += 1) {
|
|
98
|
+
const span = past[index];
|
|
99
|
+
if (span.from >= to)
|
|
100
|
+
break;
|
|
101
|
+
if (span.kind === 'unrecorded' || span.to <= cursor)
|
|
102
|
+
continue;
|
|
103
|
+
if (span.from > cursor)
|
|
104
|
+
out.push({ a: cursor, b: span.from });
|
|
105
|
+
cursor = span.to;
|
|
106
|
+
}
|
|
107
|
+
if (cursor < to)
|
|
108
|
+
out.push({ a: cursor, b: to });
|
|
109
|
+
return out;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Where the runtime takes over a row's recorded past: its current state's start, when the record runs up to it
|
|
113
|
+
* unbroken (a gap there is already the dotted thread). The x and the wake's half-thickness either side of it.
|
|
114
|
+
*/
|
|
115
|
+
export function wakeSeam(lane, segments) {
|
|
116
|
+
if (lane.ended !== undefined || lane.past === undefined || segments.length < 2)
|
|
117
|
+
return undefined;
|
|
118
|
+
const current = segments[segments.length - 1];
|
|
119
|
+
const before = segments[segments.length - 2];
|
|
120
|
+
if (current.a !== lane.sinceMs || before.b !== current.a)
|
|
121
|
+
return undefined;
|
|
122
|
+
return { x: current.x0, r: Math.max(before.r, current.r) };
|
|
123
|
+
}
|
|
124
|
+
/** How far either side of a change the S-curve runs: never more than 5 px, never more than 40% of either span. */
|
|
125
|
+
export function neck(segments, index) {
|
|
126
|
+
const a = segments[index];
|
|
127
|
+
const b = segments[index + 1];
|
|
128
|
+
return Math.max(0.5, Math.min(5, (a.x1 - a.x0) * 0.4, (b.x1 - b.x0) * 0.4));
|
|
129
|
+
}
|
|
130
|
+
/** Whether the wake begins with a round cap: it starts where the lane's current state does, inside the window. */
|
|
131
|
+
export function capsStart(lane, first) {
|
|
132
|
+
const start = lane.ended === undefined ? Math.max(lane.bornMs, lane.sinceMs) : lane.bornMs;
|
|
133
|
+
return first.a <= start + 1000 && first.x0 > -20;
|
|
134
|
+
}
|
|
135
|
+
/** Whether a run of a recorded wake begins with a round cap: where its first stretch begins, inside the window. */
|
|
136
|
+
export function capsRun(first) {
|
|
137
|
+
return first.x0 > -20;
|
|
138
|
+
}
|
|
139
|
+
/** The outline: the top edge left to right, the bottom edge back, each change of thickness a short S-curve. */
|
|
140
|
+
export function wakeOutline(segments, cy, capStart) {
|
|
141
|
+
const count = segments.length;
|
|
142
|
+
if (count === 0)
|
|
143
|
+
return [];
|
|
144
|
+
const first = segments[0];
|
|
145
|
+
const last = segments[count - 1];
|
|
146
|
+
const out = [];
|
|
147
|
+
if (capStart) {
|
|
148
|
+
out.push({ op: 'M', x: first.x0 + first.r, y: cy + first.r });
|
|
149
|
+
out.push({ op: 'A', cx: first.x0 + first.r, cy, r: first.r, start: Math.PI / 2, end: Math.PI * 1.5 });
|
|
150
|
+
}
|
|
151
|
+
else {
|
|
152
|
+
out.push({ op: 'M', x: first.x0, y: cy + first.r });
|
|
153
|
+
out.push({ op: 'L', x: first.x0, y: cy - first.r });
|
|
154
|
+
}
|
|
155
|
+
for (let index = 0; index < count - 1; index += 1) {
|
|
156
|
+
const a = segments[index];
|
|
157
|
+
const b = segments[index + 1];
|
|
158
|
+
const n = neck(segments, index);
|
|
159
|
+
const x = a.x1;
|
|
160
|
+
out.push({ op: 'L', x: x - n, y: cy - a.r });
|
|
161
|
+
if (a.r !== b.r)
|
|
162
|
+
out.push({ op: 'C', x1: x, y1: cy - a.r, x2: x, y2: cy - b.r, x: x + n, y: cy - b.r });
|
|
163
|
+
else
|
|
164
|
+
out.push({ op: 'L', x: x + n, y: cy - b.r });
|
|
165
|
+
}
|
|
166
|
+
out.push({ op: 'L', x: last.x1, y: cy - last.r });
|
|
167
|
+
out.push({ op: 'L', x: last.x1, y: cy + last.r });
|
|
168
|
+
for (let index = count - 2; index >= 0; index -= 1) {
|
|
169
|
+
const a = segments[index];
|
|
170
|
+
const b = segments[index + 1];
|
|
171
|
+
const n = neck(segments, index);
|
|
172
|
+
const x = a.x1;
|
|
173
|
+
out.push({ op: 'L', x: x + n, y: cy + b.r });
|
|
174
|
+
if (a.r !== b.r)
|
|
175
|
+
out.push({ op: 'C', x1: x, y1: cy + b.r, x2: x, y2: cy + a.r, x: x - n, y: cy + a.r });
|
|
176
|
+
else
|
|
177
|
+
out.push({ op: 'L', x: x - n, y: cy + a.r });
|
|
178
|
+
}
|
|
179
|
+
out.push({ op: 'Z' });
|
|
180
|
+
return out;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* The colours along the wake as a horizontal gradient: each change of colour
|
|
184
|
+
* blends across its neck, so the hue turns where the shape does.
|
|
185
|
+
*/
|
|
186
|
+
export function wakeGradient(segments, colorOf) {
|
|
187
|
+
const first = segments[0];
|
|
188
|
+
const last = segments[segments.length - 1];
|
|
189
|
+
if (!first || !last)
|
|
190
|
+
return [];
|
|
191
|
+
const width = Math.max(1, last.x1 - first.x0);
|
|
192
|
+
const at = (x) => Math.min(1, Math.max(0, (x - first.x0) / width));
|
|
193
|
+
const stops = [{ offset: 0, color: colorOf(first) }];
|
|
194
|
+
let previous = 0;
|
|
195
|
+
for (let index = 0; index < segments.length - 1; index += 1) {
|
|
196
|
+
const a = segments[index];
|
|
197
|
+
const b = segments[index + 1];
|
|
198
|
+
const from = colorOf(a);
|
|
199
|
+
const to = colorOf(b);
|
|
200
|
+
if (from === to)
|
|
201
|
+
continue;
|
|
202
|
+
const n = neck(segments, index);
|
|
203
|
+
const o1 = Math.max(previous, at(a.x1 - n));
|
|
204
|
+
const o2 = Math.max(o1, at(a.x1 + n));
|
|
205
|
+
stops.push({ offset: o1, color: from }, { offset: o2, color: to });
|
|
206
|
+
previous = o2;
|
|
207
|
+
}
|
|
208
|
+
stops.push({ offset: 1, color: colorOf(last) });
|
|
209
|
+
return stops;
|
|
210
|
+
}
|
|
211
|
+
/** The sheen along each stretch of work long enough to carry one: a 1 px line in the tube's upper half. */
|
|
212
|
+
export function wakeSheens(segments, cy) {
|
|
213
|
+
const out = [];
|
|
214
|
+
segments.forEach((segment, index) => {
|
|
215
|
+
if (segment.status !== 'working' || segment.x1 - segment.x0 < 12 || segment.r < 3)
|
|
216
|
+
return;
|
|
217
|
+
const left = index > 0 ? neck(segments, index - 1) : segment.r;
|
|
218
|
+
const right = index < segments.length - 1 ? neck(segments, index) : 0;
|
|
219
|
+
const x0 = Math.max(segment.x0 + left + 2, -4);
|
|
220
|
+
const x1 = segment.x1 - right - 2;
|
|
221
|
+
if (x1 > x0)
|
|
222
|
+
out.push({ x0, x1, y: cy - segment.r * 0.45 });
|
|
223
|
+
});
|
|
224
|
+
return out;
|
|
225
|
+
}
|
|
226
|
+
/** Replay commands into a canvas path. */
|
|
227
|
+
export function toPath2D(commands) {
|
|
228
|
+
const path = new Path2D();
|
|
229
|
+
for (const command of commands) {
|
|
230
|
+
if (command.op === 'M')
|
|
231
|
+
path.moveTo(command.x, command.y);
|
|
232
|
+
else if (command.op === 'L')
|
|
233
|
+
path.lineTo(command.x, command.y);
|
|
234
|
+
else if (command.op === 'C')
|
|
235
|
+
path.bezierCurveTo(command.x1, command.y1, command.x2, command.y2, command.x, command.y);
|
|
236
|
+
else if (command.op === 'A')
|
|
237
|
+
path.arc(command.cx, command.cy, command.r, command.start, command.end);
|
|
238
|
+
else
|
|
239
|
+
path.closePath();
|
|
240
|
+
}
|
|
241
|
+
return path;
|
|
242
|
+
}
|
|
243
|
+
//# sourceMappingURL=wake-geometry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wake-geometry.js","sourceRoot":"","sources":["../../../src/views/timeline/wake-geometry.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAA6D,MAAM,qBAAqB,CAAC;AAgB7G,yHAAyH;AACzH,MAAM,UAAU,UAAU,CAAC,IAAsB,EAAE,MAAkB,EAAE,UAAkB;IACvF,IAAI,IAAI,KAAK,UAAU;QAAE,OAAO,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;IACjE,IAAI,MAAM,KAAK,SAAS;QAAE,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC,CAAC,CAAC;IAC/E,IAAI,MAAM,KAAK,SAAS,IAAI,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,QAAQ,EAAE,CAAC;QACvE,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,UAAU,GAAG,KAAK,CAAC,CAAC,CAAC;IAC1D,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAaD,2HAA2H;AAC3H,MAAM,QAAQ,GAA6E;IACzF,MAAM,EAAE,SAAS;IACjB,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,QAAQ;CACjB,CAAC;AAEF,gHAAgH;AAChH,SAAS,gBAAgB,CACvB,GAAkB,EAClB,IAAgC,EAChC,IAAsB,EACtB,EAAU,EACV,GAAW,EACX,EAAU,EACV,OAAe,EACf,UAAkB;IAElB,wEAAwE;IACxE,KAAK,IAAI,KAAK,GAAG,IA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views",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Godview's monitor views for Puppeteer agents: the swarm on WebGPU, the list, the rain, the timeline, the instrument bar, the usage column and the find sheet, host-agnostic behind injected ports.",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "James Yong",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/vibefield/puppeteer.git",
|
|
11
|
+
"directory": "packages/views"
|
|
12
|
+
},
|
|
13
|
+
"main": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"import": "./dist/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./physics": {
|
|
21
|
+
"types": "./dist/views/swarm/physics/index.d.ts",
|
|
22
|
+
"import": "./dist/views/swarm/physics/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./deck": {
|
|
25
|
+
"types": "./dist/deck/index.d.ts",
|
|
26
|
+
"import": "./dist/deck/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./launcher": {
|
|
29
|
+
"types": "./dist/launcher/index.d.ts",
|
|
30
|
+
"import": "./dist/launcher/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./lab": {
|
|
33
|
+
"types": "./dist/views/swarm/lab/main.d.ts",
|
|
34
|
+
"import": "./dist/views/swarm/lab/main.js"
|
|
35
|
+
},
|
|
36
|
+
"./styles/views.css": "./dist/styles/views.css",
|
|
37
|
+
"./styles/lab.css": "./dist/views/swarm/lab/lab.css",
|
|
38
|
+
"./styles/deck-frame.css": "./dist/styles/deck-frame.css",
|
|
39
|
+
"./styles/pane-launcher.css": "./dist/styles/pane-launcher.css"
|
|
40
|
+
},
|
|
41
|
+
"sideEffects": [
|
|
42
|
+
"*.css",
|
|
43
|
+
"./src/views/swarm/lab/main.ts",
|
|
44
|
+
"./dist/views/swarm/lab/main.js"
|
|
45
|
+
],
|
|
46
|
+
"publishConfig": {
|
|
47
|
+
"access": "public"
|
|
48
|
+
},
|
|
49
|
+
"files": [
|
|
50
|
+
"dist"
|
|
51
|
+
],
|
|
52
|
+
"engines": {
|
|
53
|
+
"node": ">=22.18.0"
|
|
54
|
+
},
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"@webgpu/types": "0.1.72",
|
|
57
|
+
"matter-js": "0.19.0",
|
|
58
|
+
"@vibefield/puppeteer-react": "0.2.0",
|
|
59
|
+
"@vibefield/puppeteer-core": "0.2.0",
|
|
60
|
+
"@vibefield/puppeteer-view-sdk": "0.2.0"
|
|
61
|
+
},
|
|
62
|
+
"peerDependencies": {
|
|
63
|
+
"react": ">=18 <20",
|
|
64
|
+
"react-dom": ">=18 <20"
|
|
65
|
+
},
|
|
66
|
+
"devDependencies": {
|
|
67
|
+
"@types/matter-js": "^0.20.2",
|
|
68
|
+
"@types/react": "^19.2.17",
|
|
69
|
+
"@types/react-dom": "^19.2.3",
|
|
70
|
+
"happy-dom": "20.11.0",
|
|
71
|
+
"react": "^19.2.7",
|
|
72
|
+
"react-dom": "^19.2.7",
|
|
73
|
+
"vitest": "^4.1.11"
|
|
74
|
+
},
|
|
75
|
+
"scripts": {
|
|
76
|
+
"clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
77
|
+
"build": "pnpm clean && tsc -p tsconfig.build.json && node scripts/copy-styles.mjs",
|
|
78
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
79
|
+
"test": "vitest run --passWithNoTests"
|
|
80
|
+
}
|
|
6
81
|
}
|
package/README.md
DELETED