@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.
Files changed (522) hide show
  1. package/LICENSE +21 -0
  2. package/dist/bar/InstrumentBar.d.ts +81 -0
  3. package/dist/bar/InstrumentBar.d.ts.map +1 -0
  4. package/dist/bar/InstrumentBar.js +86 -0
  5. package/dist/bar/InstrumentBar.js.map +1 -0
  6. package/dist/bar/ProfileTabs.d.ts +24 -0
  7. package/dist/bar/ProfileTabs.d.ts.map +1 -0
  8. package/dist/bar/ProfileTabs.js +141 -0
  9. package/dist/bar/ProfileTabs.js.map +1 -0
  10. package/dist/chrome/ChromeBoundary.d.ts +60 -0
  11. package/dist/chrome/ChromeBoundary.d.ts.map +1 -0
  12. package/dist/chrome/ChromeBoundary.js +70 -0
  13. package/dist/chrome/ChromeBoundary.js.map +1 -0
  14. package/dist/chrome/stage.d.ts +8 -0
  15. package/dist/chrome/stage.d.ts.map +1 -0
  16. package/dist/chrome/stage.js +8 -0
  17. package/dist/chrome/stage.js.map +1 -0
  18. package/dist/colour/pane-colours.d.ts +21 -0
  19. package/dist/colour/pane-colours.d.ts.map +1 -0
  20. package/dist/colour/pane-colours.js +25 -0
  21. package/dist/colour/pane-colours.js.map +1 -0
  22. package/dist/colour/project-tint.d.ts +23 -0
  23. package/dist/colour/project-tint.d.ts.map +1 -0
  24. package/dist/colour/project-tint.js +100 -0
  25. package/dist/colour/project-tint.js.map +1 -0
  26. package/dist/deck/DeckFrames.d.ts +71 -0
  27. package/dist/deck/DeckFrames.d.ts.map +1 -0
  28. package/dist/deck/DeckFrames.js +50 -0
  29. package/dist/deck/DeckFrames.js.map +1 -0
  30. package/dist/deck/PaneFrame.d.ts +80 -0
  31. package/dist/deck/PaneFrame.d.ts.map +1 -0
  32. package/dist/deck/PaneFrame.js +118 -0
  33. package/dist/deck/PaneFrame.js.map +1 -0
  34. package/dist/deck/completed-agent-panes.d.ts +24 -0
  35. package/dist/deck/completed-agent-panes.d.ts.map +1 -0
  36. package/dist/deck/completed-agent-panes.js +72 -0
  37. package/dist/deck/completed-agent-panes.js.map +1 -0
  38. package/dist/deck/deck-zoom.d.ts +40 -0
  39. package/dist/deck/deck-zoom.d.ts.map +1 -0
  40. package/dist/deck/deck-zoom.js +200 -0
  41. package/dist/deck/deck-zoom.js.map +1 -0
  42. package/dist/deck/index.d.ts +8 -0
  43. package/dist/deck/index.d.ts.map +1 -0
  44. package/dist/deck/index.js +13 -0
  45. package/dist/deck/index.js.map +1 -0
  46. package/dist/deck/pane-elements.d.ts +24 -0
  47. package/dist/deck/pane-elements.d.ts.map +1 -0
  48. package/dist/deck/pane-elements.js +73 -0
  49. package/dist/deck/pane-elements.js.map +1 -0
  50. package/dist/deck/pane-frame.d.ts +88 -0
  51. package/dist/deck/pane-frame.d.ts.map +1 -0
  52. package/dist/deck/pane-frame.js +51 -0
  53. package/dist/deck/pane-frame.js.map +1 -0
  54. package/dist/deck/unused-pane-sessions.d.ts +24 -0
  55. package/dist/deck/unused-pane-sessions.d.ts.map +1 -0
  56. package/dist/deck/unused-pane-sessions.js +75 -0
  57. package/dist/deck/unused-pane-sessions.js.map +1 -0
  58. package/dist/deck/use-deck-zoom.d.ts +10 -0
  59. package/dist/deck/use-deck-zoom.d.ts.map +1 -0
  60. package/dist/deck/use-deck-zoom.js +31 -0
  61. package/dist/deck/use-deck-zoom.js.map +1 -0
  62. package/dist/find/FindSheet.d.ts +23 -0
  63. package/dist/find/FindSheet.d.ts.map +1 -0
  64. package/dist/find/FindSheet.js +197 -0
  65. package/dist/find/FindSheet.js.map +1 -0
  66. package/dist/find/find-agent.d.ts +35 -0
  67. package/dist/find/find-agent.d.ts.map +1 -0
  68. package/dist/find/find-agent.js +2 -0
  69. package/dist/find/find-agent.js.map +1 -0
  70. package/dist/find/find-model.d.ts +93 -0
  71. package/dist/find/find-model.d.ts.map +1 -0
  72. package/dist/find/find-model.js +372 -0
  73. package/dist/find/find-model.js.map +1 -0
  74. package/dist/find/history-port.d.ts +78 -0
  75. package/dist/find/history-port.d.ts.map +1 -0
  76. package/dist/find/history-port.js +9 -0
  77. package/dist/find/history-port.js.map +1 -0
  78. package/dist/icons/ServiceMark.d.ts +32 -0
  79. package/dist/icons/ServiceMark.d.ts.map +1 -0
  80. package/dist/icons/ServiceMark.js +57 -0
  81. package/dist/icons/ServiceMark.js.map +1 -0
  82. package/dist/icons/profile-glyph-suggest.d.ts +8 -0
  83. package/dist/icons/profile-glyph-suggest.d.ts.map +1 -0
  84. package/dist/icons/profile-glyph-suggest.js +42 -0
  85. package/dist/icons/profile-glyph-suggest.js.map +1 -0
  86. package/dist/icons/service-marks.d.ts +5 -0
  87. package/dist/icons/service-marks.d.ts.map +1 -0
  88. package/dist/icons/service-marks.js +81 -0
  89. package/dist/icons/service-marks.js.map +1 -0
  90. package/dist/index.d.ts +60 -0
  91. package/dist/index.d.ts.map +1 -0
  92. package/dist/index.js +86 -0
  93. package/dist/index.js.map +1 -0
  94. package/dist/lab/lab-clock.d.ts +11 -0
  95. package/dist/lab/lab-clock.d.ts.map +1 -0
  96. package/dist/lab/lab-clock.js +48 -0
  97. package/dist/lab/lab-clock.js.map +1 -0
  98. package/dist/lab/lab-model.d.ts +10 -0
  99. package/dist/lab/lab-model.d.ts.map +1 -0
  100. package/dist/lab/lab-model.js +146 -0
  101. package/dist/lab/lab-model.js.map +1 -0
  102. package/dist/lab/lab-stage.d.ts +72 -0
  103. package/dist/lab/lab-stage.d.ts.map +1 -0
  104. package/dist/lab/lab-stage.js +201 -0
  105. package/dist/lab/lab-stage.js.map +1 -0
  106. package/dist/lab/lab-world.d.ts +33 -0
  107. package/dist/lab/lab-world.d.ts.map +1 -0
  108. package/dist/lab/lab-world.js +394 -0
  109. package/dist/lab/lab-world.js.map +1 -0
  110. package/dist/lab/view-lab.css +98 -0
  111. package/dist/launcher/DeckLaunchers.d.ts +92 -0
  112. package/dist/launcher/DeckLaunchers.d.ts.map +1 -0
  113. package/dist/launcher/DeckLaunchers.js +377 -0
  114. package/dist/launcher/DeckLaunchers.js.map +1 -0
  115. package/dist/launcher/PaneLaunch.d.ts +50 -0
  116. package/dist/launcher/PaneLaunch.d.ts.map +1 -0
  117. package/dist/launcher/PaneLaunch.js +318 -0
  118. package/dist/launcher/PaneLaunch.js.map +1 -0
  119. package/dist/launcher/PaneLaunchChrome.d.ts +49 -0
  120. package/dist/launcher/PaneLaunchChrome.d.ts.map +1 -0
  121. package/dist/launcher/PaneLaunchChrome.js +32 -0
  122. package/dist/launcher/PaneLaunchChrome.js.map +1 -0
  123. package/dist/launcher/PaneLauncher.d.ts +97 -0
  124. package/dist/launcher/PaneLauncher.d.ts.map +1 -0
  125. package/dist/launcher/PaneLauncher.js +349 -0
  126. package/dist/launcher/PaneLauncher.js.map +1 -0
  127. package/dist/launcher/PaneLauncherChrome.d.ts +97 -0
  128. package/dist/launcher/PaneLauncherChrome.d.ts.map +1 -0
  129. package/dist/launcher/PaneLauncherChrome.js +131 -0
  130. package/dist/launcher/PaneLauncherChrome.js.map +1 -0
  131. package/dist/launcher/index.d.ts +9 -0
  132. package/dist/launcher/index.d.ts.map +1 -0
  133. package/dist/launcher/index.js +16 -0
  134. package/dist/launcher/index.js.map +1 -0
  135. package/dist/launcher/launch-model.d.ts +162 -0
  136. package/dist/launcher/launch-model.d.ts.map +1 -0
  137. package/dist/launcher/launch-model.js +169 -0
  138. package/dist/launcher/launch-model.js.map +1 -0
  139. package/dist/launcher/launcher-model.d.ts +268 -0
  140. package/dist/launcher/launcher-model.d.ts.map +1 -0
  141. package/dist/launcher/launcher-model.js +443 -0
  142. package/dist/launcher/launcher-model.js.map +1 -0
  143. package/dist/launcher/launcher-port.d.ts +115 -0
  144. package/dist/launcher/launcher-port.d.ts.map +1 -0
  145. package/dist/launcher/launcher-port.js +12 -0
  146. package/dist/launcher/launcher-port.js.map +1 -0
  147. package/dist/monitor/agent-status.d.ts +13 -0
  148. package/dist/monitor/agent-status.d.ts.map +1 -0
  149. package/dist/monitor/agent-status.js +5 -0
  150. package/dist/monitor/agent-status.js.map +1 -0
  151. package/dist/monitor/agents.d.ts +6 -0
  152. package/dist/monitor/agents.d.ts.map +1 -0
  153. package/dist/monitor/agents.js +21 -0
  154. package/dist/monitor/agents.js.map +1 -0
  155. package/dist/monitor/cost-format.d.ts +3 -0
  156. package/dist/monitor/cost-format.d.ts.map +1 -0
  157. package/dist/monitor/cost-format.js +12 -0
  158. package/dist/monitor/cost-format.js.map +1 -0
  159. package/dist/monitor/folder-name.d.ts +3 -0
  160. package/dist/monitor/folder-name.d.ts.map +1 -0
  161. package/dist/monitor/folder-name.js +6 -0
  162. package/dist/monitor/folder-name.js.map +1 -0
  163. package/dist/monitor/palette.d.ts +94 -0
  164. package/dist/monitor/palette.d.ts.map +1 -0
  165. package/dist/monitor/palette.js +157 -0
  166. package/dist/monitor/palette.js.map +1 -0
  167. package/dist/monitor/parameters.d.ts +33 -0
  168. package/dist/monitor/parameters.d.ts.map +1 -0
  169. package/dist/monitor/parameters.js +53 -0
  170. package/dist/monitor/parameters.js.map +1 -0
  171. package/dist/monitor/recede.d.ts +14 -0
  172. package/dist/monitor/recede.d.ts.map +1 -0
  173. package/dist/monitor/recede.js +35 -0
  174. package/dist/monitor/recede.js.map +1 -0
  175. package/dist/monitor/registry.d.ts +14 -0
  176. package/dist/monitor/registry.d.ts.map +1 -0
  177. package/dist/monitor/registry.js +36 -0
  178. package/dist/monitor/registry.js.map +1 -0
  179. package/dist/monitor/remote-write.d.ts +16 -0
  180. package/dist/monitor/remote-write.d.ts.map +1 -0
  181. package/dist/monitor/remote-write.js +21 -0
  182. package/dist/monitor/remote-write.js.map +1 -0
  183. package/dist/monitor/types.d.ts +205 -0
  184. package/dist/monitor/types.d.ts.map +1 -0
  185. package/dist/monitor/types.js +2 -0
  186. package/dist/monitor/types.js.map +1 -0
  187. package/dist/styles/bar.css +396 -0
  188. package/dist/styles/deck-frame.css +439 -0
  189. package/dist/styles/deck-zoom.css +70 -0
  190. package/dist/styles/find-sheet.css +270 -0
  191. package/dist/styles/pane-launcher.css +955 -0
  192. package/dist/styles/usage.css +368 -0
  193. package/dist/styles/views.css +12 -0
  194. package/dist/usage/UsageColumn.d.ts +8 -0
  195. package/dist/usage/UsageColumn.d.ts.map +1 -0
  196. package/dist/usage/UsageColumn.js +133 -0
  197. package/dist/usage/UsageColumn.js.map +1 -0
  198. package/dist/usage/account-usage-port.d.ts +12 -0
  199. package/dist/usage/account-usage-port.d.ts.map +1 -0
  200. package/dist/usage/account-usage-port.js +2 -0
  201. package/dist/usage/account-usage-port.js.map +1 -0
  202. package/dist/usage/account-usage.d.ts +86 -0
  203. package/dist/usage/account-usage.d.ts.map +1 -0
  204. package/dist/usage/account-usage.js +262 -0
  205. package/dist/usage/account-usage.js.map +1 -0
  206. package/dist/views/list/AgentList.d.ts +4 -0
  207. package/dist/views/list/AgentList.d.ts.map +1 -0
  208. package/dist/views/list/AgentList.js +101 -0
  209. package/dist/views/list/AgentList.js.map +1 -0
  210. package/dist/views/list/ListSpawnMenu.d.ts +20 -0
  211. package/dist/views/list/ListSpawnMenu.d.ts.map +1 -0
  212. package/dist/views/list/ListSpawnMenu.js +143 -0
  213. package/dist/views/list/ListSpawnMenu.js.map +1 -0
  214. package/dist/views/list/index.d.ts +8 -0
  215. package/dist/views/list/index.d.ts.map +1 -0
  216. package/dist/views/list/index.js +43 -0
  217. package/dist/views/list/index.js.map +1 -0
  218. package/dist/views/list/lab/main.d.ts +2 -0
  219. package/dist/views/list/lab/main.d.ts.map +1 -0
  220. package/dist/views/list/lab/main.js +25 -0
  221. package/dist/views/list/lab/main.js.map +1 -0
  222. package/dist/views/list/list-parameters.d.ts +9 -0
  223. package/dist/views/list/list-parameters.d.ts.map +1 -0
  224. package/dist/views/list/list-parameters.js +27 -0
  225. package/dist/views/list/list-parameters.js.map +1 -0
  226. package/dist/views/list/list.css +387 -0
  227. package/dist/views/rain/RainView.d.ts +4 -0
  228. package/dist/views/rain/RainView.d.ts.map +1 -0
  229. package/dist/views/rain/RainView.js +282 -0
  230. package/dist/views/rain/RainView.js.map +1 -0
  231. package/dist/views/rain/index.d.ts +8 -0
  232. package/dist/views/rain/index.d.ts.map +1 -0
  233. package/dist/views/rain/index.js +53 -0
  234. package/dist/views/rain/index.js.map +1 -0
  235. package/dist/views/rain/lab/main.d.ts +2 -0
  236. package/dist/views/rain/lab/main.d.ts.map +1 -0
  237. package/dist/views/rain/lab/main.js +26 -0
  238. package/dist/views/rain/lab/main.js.map +1 -0
  239. package/dist/views/rain/rain-parameters.d.ts +15 -0
  240. package/dist/views/rain/rain-parameters.d.ts.map +1 -0
  241. package/dist/views/rain/rain-parameters.js +52 -0
  242. package/dist/views/rain/rain-parameters.js.map +1 -0
  243. package/dist/views/rain/rain-streams.d.ts +44 -0
  244. package/dist/views/rain/rain-streams.d.ts.map +1 -0
  245. package/dist/views/rain/rain-streams.js +101 -0
  246. package/dist/views/rain/rain-streams.js.map +1 -0
  247. package/dist/views/rain/rain.css +200 -0
  248. package/dist/views/spend/SpendView.d.ts +30 -0
  249. package/dist/views/spend/SpendView.d.ts.map +1 -0
  250. package/dist/views/spend/SpendView.js +645 -0
  251. package/dist/views/spend/SpendView.js.map +1 -0
  252. package/dist/views/spend/index.d.ts +8 -0
  253. package/dist/views/spend/index.d.ts.map +1 -0
  254. package/dist/views/spend/index.js +54 -0
  255. package/dist/views/spend/index.js.map +1 -0
  256. package/dist/views/spend/lab/main.d.ts +2 -0
  257. package/dist/views/spend/lab/main.d.ts.map +1 -0
  258. package/dist/views/spend/lab/main.js +237 -0
  259. package/dist/views/spend/lab/main.js.map +1 -0
  260. package/dist/views/spend/lab/spend-fixtures.d.ts +72 -0
  261. package/dist/views/spend/lab/spend-fixtures.d.ts.map +1 -0
  262. package/dist/views/spend/lab/spend-fixtures.js +412 -0
  263. package/dist/views/spend/lab/spend-fixtures.js.map +1 -0
  264. package/dist/views/spend/spend-ink.d.ts +18 -0
  265. package/dist/views/spend/spend-ink.d.ts.map +1 -0
  266. package/dist/views/spend/spend-ink.js +50 -0
  267. package/dist/views/spend/spend-ink.js.map +1 -0
  268. package/dist/views/spend/spend-list.d.ts +48 -0
  269. package/dist/views/spend/spend-list.d.ts.map +1 -0
  270. package/dist/views/spend/spend-list.js +93 -0
  271. package/dist/views/spend/spend-list.js.map +1 -0
  272. package/dist/views/spend/spend-paint.d.ts +88 -0
  273. package/dist/views/spend/spend-paint.d.ts.map +1 -0
  274. package/dist/views/spend/spend-paint.js +225 -0
  275. package/dist/views/spend/spend-paint.js.map +1 -0
  276. package/dist/views/spend/spend-parameters.d.ts +11 -0
  277. package/dist/views/spend/spend-parameters.d.ts.map +1 -0
  278. package/dist/views/spend/spend-parameters.js +27 -0
  279. package/dist/views/spend/spend-parameters.js.map +1 -0
  280. package/dist/views/spend/spend-scale.d.ts +43 -0
  281. package/dist/views/spend/spend-scale.d.ts.map +1 -0
  282. package/dist/views/spend/spend-scale.js +71 -0
  283. package/dist/views/spend/spend-scale.js.map +1 -0
  284. package/dist/views/spend/spend-series.d.ts +91 -0
  285. package/dist/views/spend/spend-series.d.ts.map +1 -0
  286. package/dist/views/spend/spend-series.js +212 -0
  287. package/dist/views/spend/spend-series.js.map +1 -0
  288. package/dist/views/spend/spend-words.d.ts +82 -0
  289. package/dist/views/spend/spend-words.d.ts.map +1 -0
  290. package/dist/views/spend/spend-words.js +164 -0
  291. package/dist/views/spend/spend-words.js.map +1 -0
  292. package/dist/views/spend/spend.css +585 -0
  293. package/dist/views/swarm/AgentSwarm.d.ts +4 -0
  294. package/dist/views/swarm/AgentSwarm.d.ts.map +1 -0
  295. package/dist/views/swarm/AgentSwarm.js +969 -0
  296. package/dist/views/swarm/AgentSwarm.js.map +1 -0
  297. package/dist/views/swarm/bloom/SpawnBloom.d.ts +26 -0
  298. package/dist/views/swarm/bloom/SpawnBloom.d.ts.map +1 -0
  299. package/dist/views/swarm/bloom/SpawnBloom.js +332 -0
  300. package/dist/views/swarm/bloom/SpawnBloom.js.map +1 -0
  301. package/dist/views/swarm/bloom/birth.d.ts +70 -0
  302. package/dist/views/swarm/bloom/birth.d.ts.map +1 -0
  303. package/dist/views/swarm/bloom/birth.js +89 -0
  304. package/dist/views/swarm/bloom/birth.js.map +1 -0
  305. package/dist/views/swarm/bloom/canvas-measure.d.ts +11 -0
  306. package/dist/views/swarm/bloom/canvas-measure.d.ts.map +1 -0
  307. package/dist/views/swarm/bloom/canvas-measure.js +37 -0
  308. package/dist/views/swarm/bloom/canvas-measure.js.map +1 -0
  309. package/dist/views/swarm/bloom/constants.d.ts +93 -0
  310. package/dist/views/swarm/bloom/constants.d.ts.map +1 -0
  311. package/dist/views/swarm/bloom/constants.js +94 -0
  312. package/dist/views/swarm/bloom/constants.js.map +1 -0
  313. package/dist/views/swarm/bloom/field-frame.d.ts +69 -0
  314. package/dist/views/swarm/bloom/field-frame.d.ts.map +1 -0
  315. package/dist/views/swarm/bloom/field-frame.js +104 -0
  316. package/dist/views/swarm/bloom/field-frame.js.map +1 -0
  317. package/dist/views/swarm/bloom/geometry.d.ts +187 -0
  318. package/dist/views/swarm/bloom/geometry.d.ts.map +1 -0
  319. package/dist/views/swarm/bloom/geometry.js +379 -0
  320. package/dist/views/swarm/bloom/geometry.js.map +1 -0
  321. package/dist/views/swarm/bloom/index.d.ts +8 -0
  322. package/dist/views/swarm/bloom/index.d.ts.map +1 -0
  323. package/dist/views/swarm/bloom/index.js +13 -0
  324. package/dist/views/swarm/bloom/index.js.map +1 -0
  325. package/dist/views/swarm/bloom/menu.d.ts +5 -0
  326. package/dist/views/swarm/bloom/menu.d.ts.map +1 -0
  327. package/dist/views/swarm/bloom/menu.js +14 -0
  328. package/dist/views/swarm/bloom/menu.js.map +1 -0
  329. package/dist/views/swarm/bloom/model.d.ts +255 -0
  330. package/dist/views/swarm/bloom/model.d.ts.map +1 -0
  331. package/dist/views/swarm/bloom/model.js +678 -0
  332. package/dist/views/swarm/bloom/model.js.map +1 -0
  333. package/dist/views/swarm/bloom/scenarios.d.ts +7 -0
  334. package/dist/views/swarm/bloom/scenarios.d.ts.map +1 -0
  335. package/dist/views/swarm/bloom/scenarios.js +57 -0
  336. package/dist/views/swarm/bloom/scenarios.js.map +1 -0
  337. package/dist/views/swarm/bloom/spawn-bloom.css +407 -0
  338. package/dist/views/swarm/bloom/targeting.d.ts +60 -0
  339. package/dist/views/swarm/bloom/targeting.d.ts.map +1 -0
  340. package/dist/views/swarm/bloom/targeting.js +74 -0
  341. package/dist/views/swarm/bloom/targeting.js.map +1 -0
  342. package/dist/views/swarm/bloom/use-spawn-bloom.d.ts +100 -0
  343. package/dist/views/swarm/bloom/use-spawn-bloom.d.ts.map +1 -0
  344. package/dist/views/swarm/bloom/use-spawn-bloom.js +333 -0
  345. package/dist/views/swarm/bloom/use-spawn-bloom.js.map +1 -0
  346. package/dist/views/swarm/bloom/words.d.ts +73 -0
  347. package/dist/views/swarm/bloom/words.d.ts.map +1 -0
  348. package/dist/views/swarm/bloom/words.js +195 -0
  349. package/dist/views/swarm/bloom/words.js.map +1 -0
  350. package/dist/views/swarm/body-id.d.ts +13 -0
  351. package/dist/views/swarm/body-id.d.ts.map +1 -0
  352. package/dist/views/swarm/body-id.js +12 -0
  353. package/dist/views/swarm/body-id.js.map +1 -0
  354. package/dist/views/swarm/bubble-model.d.ts +128 -0
  355. package/dist/views/swarm/bubble-model.d.ts.map +1 -0
  356. package/dist/views/swarm/bubble-model.js +421 -0
  357. package/dist/views/swarm/bubble-model.js.map +1 -0
  358. package/dist/views/swarm/gpu/frame-layout.d.ts +52 -0
  359. package/dist/views/swarm/gpu/frame-layout.d.ts.map +1 -0
  360. package/dist/views/swarm/gpu/frame-layout.js +122 -0
  361. package/dist/views/swarm/gpu/frame-layout.js.map +1 -0
  362. package/dist/views/swarm/gpu/glyph-atlas.d.ts +63 -0
  363. package/dist/views/swarm/gpu/glyph-atlas.d.ts.map +1 -0
  364. package/dist/views/swarm/gpu/glyph-atlas.js +207 -0
  365. package/dist/views/swarm/gpu/glyph-atlas.js.map +1 -0
  366. package/dist/views/swarm/gpu/profile-icons.d.ts +4 -0
  367. package/dist/views/swarm/gpu/profile-icons.d.ts.map +1 -0
  368. package/dist/views/swarm/gpu/profile-icons.js +18 -0
  369. package/dist/views/swarm/gpu/profile-icons.js.map +1 -0
  370. package/dist/views/swarm/gpu/shaders/body.wgsl.d.ts +3 -0
  371. package/dist/views/swarm/gpu/shaders/body.wgsl.d.ts.map +1 -0
  372. package/dist/views/swarm/gpu/shaders/body.wgsl.js +162 -0
  373. package/dist/views/swarm/gpu/shaders/body.wgsl.js.map +1 -0
  374. package/dist/views/swarm/gpu/shaders/common.wgsl.d.ts +3 -0
  375. package/dist/views/swarm/gpu/shaders/common.wgsl.d.ts.map +1 -0
  376. package/dist/views/swarm/gpu/shaders/common.wgsl.js +171 -0
  377. package/dist/views/swarm/gpu/shaders/common.wgsl.js.map +1 -0
  378. package/dist/views/swarm/gpu/shaders/erase.wgsl.d.ts +3 -0
  379. package/dist/views/swarm/gpu/shaders/erase.wgsl.d.ts.map +1 -0
  380. package/dist/views/swarm/gpu/shaders/erase.wgsl.js +61 -0
  381. package/dist/views/swarm/gpu/shaders/erase.wgsl.js.map +1 -0
  382. package/dist/views/swarm/gpu/shaders/field.wgsl.d.ts +3 -0
  383. package/dist/views/swarm/gpu/shaders/field.wgsl.d.ts.map +1 -0
  384. package/dist/views/swarm/gpu/shaders/field.wgsl.js +47 -0
  385. package/dist/views/swarm/gpu/shaders/field.wgsl.js.map +1 -0
  386. package/dist/views/swarm/gpu/shaders/glow.wgsl.d.ts +3 -0
  387. package/dist/views/swarm/gpu/shaders/glow.wgsl.d.ts.map +1 -0
  388. package/dist/views/swarm/gpu/shaders/glow.wgsl.js +39 -0
  389. package/dist/views/swarm/gpu/shaders/glow.wgsl.js.map +1 -0
  390. package/dist/views/swarm/gpu/shaders/hub.wgsl.d.ts +3 -0
  391. package/dist/views/swarm/gpu/shaders/hub.wgsl.d.ts.map +1 -0
  392. package/dist/views/swarm/gpu/shaders/hub.wgsl.js +48 -0
  393. package/dist/views/swarm/gpu/shaders/hub.wgsl.js.map +1 -0
  394. package/dist/views/swarm/gpu/shaders/shadow.wgsl.d.ts +3 -0
  395. package/dist/views/swarm/gpu/shaders/shadow.wgsl.d.ts.map +1 -0
  396. package/dist/views/swarm/gpu/shaders/shadow.wgsl.js +37 -0
  397. package/dist/views/swarm/gpu/shaders/shadow.wgsl.js.map +1 -0
  398. package/dist/views/swarm/gpu/shaders/text.wgsl.d.ts +3 -0
  399. package/dist/views/swarm/gpu/shaders/text.wgsl.d.ts.map +1 -0
  400. package/dist/views/swarm/gpu/shaders/text.wgsl.js +51 -0
  401. package/dist/views/swarm/gpu/shaders/text.wgsl.js.map +1 -0
  402. package/dist/views/swarm/gpu/swarm-renderer.d.ts +155 -0
  403. package/dist/views/swarm/gpu/swarm-renderer.d.ts.map +1 -0
  404. package/dist/views/swarm/gpu/swarm-renderer.js +696 -0
  405. package/dist/views/swarm/gpu/swarm-renderer.js.map +1 -0
  406. package/dist/views/swarm/index.d.ts +9 -0
  407. package/dist/views/swarm/index.d.ts.map +1 -0
  408. package/dist/views/swarm/index.js +40 -0
  409. package/dist/views/swarm/index.js.map +1 -0
  410. package/dist/views/swarm/lab/fixtures.d.ts +148 -0
  411. package/dist/views/swarm/lab/fixtures.d.ts.map +1 -0
  412. package/dist/views/swarm/lab/fixtures.js +821 -0
  413. package/dist/views/swarm/lab/fixtures.js.map +1 -0
  414. package/dist/views/swarm/lab/lab.css +315 -0
  415. package/dist/views/swarm/lab/main.d.ts +2 -0
  416. package/dist/views/swarm/lab/main.d.ts.map +1 -0
  417. package/dist/views/swarm/lab/main.js +474 -0
  418. package/dist/views/swarm/lab/main.js.map +1 -0
  419. package/dist/views/swarm/physics/driver.d.ts +23 -0
  420. package/dist/views/swarm/physics/driver.d.ts.map +1 -0
  421. package/dist/views/swarm/physics/driver.js +68 -0
  422. package/dist/views/swarm/physics/driver.js.map +1 -0
  423. package/dist/views/swarm/physics/frame.d.ts +28 -0
  424. package/dist/views/swarm/physics/frame.d.ts.map +1 -0
  425. package/dist/views/swarm/physics/frame.js +47 -0
  426. package/dist/views/swarm/physics/frame.js.map +1 -0
  427. package/dist/views/swarm/physics/host.d.ts +28 -0
  428. package/dist/views/swarm/physics/host.d.ts.map +1 -0
  429. package/dist/views/swarm/physics/host.js +168 -0
  430. package/dist/views/swarm/physics/host.js.map +1 -0
  431. package/dist/views/swarm/physics/index.d.ts +6 -0
  432. package/dist/views/swarm/physics/index.d.ts.map +1 -0
  433. package/dist/views/swarm/physics/index.js +14 -0
  434. package/dist/views/swarm/physics/index.js.map +1 -0
  435. package/dist/views/swarm/physics/inline-driver.d.ts +27 -0
  436. package/dist/views/swarm/physics/inline-driver.d.ts.map +1 -0
  437. package/dist/views/swarm/physics/inline-driver.js +37 -0
  438. package/dist/views/swarm/physics/inline-driver.js.map +1 -0
  439. package/dist/views/swarm/physics/protocol.d.ts +125 -0
  440. package/dist/views/swarm/physics/protocol.d.ts.map +1 -0
  441. package/dist/views/swarm/physics/protocol.js +4 -0
  442. package/dist/views/swarm/physics/protocol.js.map +1 -0
  443. package/dist/views/swarm/physics/spawn-clamp.d.ts +11 -0
  444. package/dist/views/swarm/physics/spawn-clamp.d.ts.map +1 -0
  445. package/dist/views/swarm/physics/spawn-clamp.js +15 -0
  446. package/dist/views/swarm/physics/spawn-clamp.js.map +1 -0
  447. package/dist/views/swarm/physics/swarm-physics.worker.d.ts +2 -0
  448. package/dist/views/swarm/physics/swarm-physics.worker.d.ts.map +1 -0
  449. package/dist/views/swarm/physics/swarm-physics.worker.js +66 -0
  450. package/dist/views/swarm/physics/swarm-physics.worker.js.map +1 -0
  451. package/dist/views/swarm/physics/world.d.ts +174 -0
  452. package/dist/views/swarm/physics/world.d.ts.map +1 -0
  453. package/dist/views/swarm/physics/world.js +454 -0
  454. package/dist/views/swarm/physics/world.js.map +1 -0
  455. package/dist/views/swarm/swarm-parameters.d.ts +50 -0
  456. package/dist/views/swarm/swarm-parameters.d.ts.map +1 -0
  457. package/dist/views/swarm/swarm-parameters.js +103 -0
  458. package/dist/views/swarm/swarm-parameters.js.map +1 -0
  459. package/dist/views/swarm/swarm-theme.d.ts +5 -0
  460. package/dist/views/swarm/swarm-theme.d.ts.map +1 -0
  461. package/dist/views/swarm/swarm-theme.js +63 -0
  462. package/dist/views/swarm/swarm-theme.js.map +1 -0
  463. package/dist/views/swarm/swarm.css +136 -0
  464. package/dist/views/swarm/text-layout.d.ts +72 -0
  465. package/dist/views/swarm/text-layout.d.ts.map +1 -0
  466. package/dist/views/swarm/text-layout.js +76 -0
  467. package/dist/views/swarm/text-layout.js.map +1 -0
  468. package/dist/views/swarm/weight.d.ts +44 -0
  469. package/dist/views/swarm/weight.d.ts.map +1 -0
  470. package/dist/views/swarm/weight.js +57 -0
  471. package/dist/views/swarm/weight.js.map +1 -0
  472. package/dist/views/timeline/TimelineView.d.ts +9 -0
  473. package/dist/views/timeline/TimelineView.d.ts.map +1 -0
  474. package/dist/views/timeline/TimelineView.js +889 -0
  475. package/dist/views/timeline/TimelineView.js.map +1 -0
  476. package/dist/views/timeline/index.d.ts +11 -0
  477. package/dist/views/timeline/index.d.ts.map +1 -0
  478. package/dist/views/timeline/index.js +63 -0
  479. package/dist/views/timeline/index.js.map +1 -0
  480. package/dist/views/timeline/lab/main.d.ts +2 -0
  481. package/dist/views/timeline/lab/main.d.ts.map +1 -0
  482. package/dist/views/timeline/lab/main.js +114 -0
  483. package/dist/views/timeline/lab/main.js.map +1 -0
  484. package/dist/views/timeline/lab/timeline-fixtures.d.ts +31 -0
  485. package/dist/views/timeline/lab/timeline-fixtures.d.ts.map +1 -0
  486. package/dist/views/timeline/lab/timeline-fixtures.js +337 -0
  487. package/dist/views/timeline/lab/timeline-fixtures.js.map +1 -0
  488. package/dist/views/timeline/pulse-map.d.ts +63 -0
  489. package/dist/views/timeline/pulse-map.d.ts.map +1 -0
  490. package/dist/views/timeline/pulse-map.js +162 -0
  491. package/dist/views/timeline/pulse-map.js.map +1 -0
  492. package/dist/views/timeline/timeline-inks.d.ts +28 -0
  493. package/dist/views/timeline/timeline-inks.d.ts.map +1 -0
  494. package/dist/views/timeline/timeline-inks.js +35 -0
  495. package/dist/views/timeline/timeline-inks.js.map +1 -0
  496. package/dist/views/timeline/timeline-lanes.d.ts +139 -0
  497. package/dist/views/timeline/timeline-lanes.d.ts.map +1 -0
  498. package/dist/views/timeline/timeline-lanes.js +240 -0
  499. package/dist/views/timeline/timeline-lanes.js.map +1 -0
  500. package/dist/views/timeline/timeline-paint.d.ts +39 -0
  501. package/dist/views/timeline/timeline-paint.d.ts.map +1 -0
  502. package/dist/views/timeline/timeline-paint.js +242 -0
  503. package/dist/views/timeline/timeline-paint.js.map +1 -0
  504. package/dist/views/timeline/timeline-parameters.d.ts +11 -0
  505. package/dist/views/timeline/timeline-parameters.d.ts.map +1 -0
  506. package/dist/views/timeline/timeline-parameters.js +27 -0
  507. package/dist/views/timeline/timeline-parameters.js.map +1 -0
  508. package/dist/views/timeline/timeline-scale.d.ts +73 -0
  509. package/dist/views/timeline/timeline-scale.d.ts.map +1 -0
  510. package/dist/views/timeline/timeline-scale.js +152 -0
  511. package/dist/views/timeline/timeline-scale.js.map +1 -0
  512. package/dist/views/timeline/timeline-words.d.ts +46 -0
  513. package/dist/views/timeline/timeline-words.d.ts.map +1 -0
  514. package/dist/views/timeline/timeline-words.js +132 -0
  515. package/dist/views/timeline/timeline-words.js.map +1 -0
  516. package/dist/views/timeline/timeline.css +875 -0
  517. package/dist/views/timeline/wake-geometry.d.ts +88 -0
  518. package/dist/views/timeline/wake-geometry.d.ts.map +1 -0
  519. package/dist/views/timeline/wake-geometry.js +243 -0
  520. package/dist/views/timeline/wake-geometry.js.map +1 -0
  521. package/package.json +78 -3
  522. package/README.md +0 -3
@@ -0,0 +1,174 @@
1
+ /**
2
+ * The lowest physics rate that stays stable, and the reason it is a floor rather
3
+ * than a preference (GT-D15.2).
4
+ *
5
+ * Matter 0.19 scales air friction by the step against a 60Hz base
6
+ * (`1 - frictionAir * (deltaTime / _baseDelta)`, Body.js:744), which turns
7
+ * NEGATIVE — friction that accelerates — once the step passes
8
+ * `_baseDelta / frictionAir`. At the swarm panel's maximum air friction of 0.2
9
+ * that is 83ms, about 12Hz, so 15 is the lowest rate that stays stable across
10
+ * the rest of the panel's own range.
11
+ *
12
+ * The lab clamps to this and so does the physics, on purpose: the knob is one
13
+ * caller, and a law that only one side enforces is a law that a second caller
14
+ * breaks. Nothing clamps the CEILING here — a high rate costs, it does not
15
+ * destabilise.
16
+ */
17
+ export declare const PHYSICS_HZ_FLOOR = 15;
18
+ /**
19
+ * The other half of that same inequality (GT-5c).
20
+ *
21
+ * The floor above is only stable against a BOUNDED friction: `1 - frictionAir *
22
+ * (stepMs / _baseDelta) > 0` has two variables, and the 15Hz floor was chosen
23
+ * against a maximum air friction of 0.2. Until now that maximum was enforced
24
+ * only by the view's normalizer, against the lab slider's `max` — so a raised
25
+ * slider ceiling, or any second caller of `setParameters`, walked straight past
26
+ * it into negative friction, which is friction that ACCELERATES.
27
+ *
28
+ * Stated here, beside the floor it belongs to, and clamped at construction and
29
+ * at every update — exactly as the rate is, and for exactly the same reason: a
30
+ * law only one side enforces is a law the next caller breaks. The lab's control
31
+ * declares this same number as its `max`, and the test derives the worst case
32
+ * FROM that control rather than restating it.
33
+ */
34
+ export declare const FRICTION_AIR_CEILING = 0.2;
35
+ export interface SwarmPhysicsParameters {
36
+ gravityPull: number;
37
+ restitution: number;
38
+ frictionAir: number;
39
+ physicsHz: number;
40
+ }
41
+ /** An agent as the physics knows it: an identity, a size to grow toward, and
42
+ * optionally where the gesture that created it happened. */
43
+ export interface SwarmAgentSpec {
44
+ id: string;
45
+ radius: number;
46
+ spawnHint?: {
47
+ x: number;
48
+ y: number;
49
+ };
50
+ }
51
+ export interface SwarmBounds {
52
+ width: number;
53
+ height: number;
54
+ }
55
+ /**
56
+ * A piece of shell chrome, in container coordinates, UNPADDED.
57
+ *
58
+ * The main thread measures elements because only it can; it sends the raw
59
+ * rectangle and the physics adds its own padding, because how far a bubble
60
+ * should stand off the mock label is a physics constant and not a layout fact.
61
+ */
62
+ export interface SwarmObstacleRect {
63
+ x: number;
64
+ y: number;
65
+ width: number;
66
+ height: number;
67
+ }
68
+ export interface SwarmPoint {
69
+ x: number;
70
+ y: number;
71
+ }
72
+ /** Frame buffer layout: two header floats, then `x, y, radius` per body in
73
+ * id-table order. Flat and fixed so the receiver reads it with arithmetic
74
+ * instead of a parse. */
75
+ export declare const FRAME_HEADER_FLOATS = 2;
76
+ export declare const FRAME_STRIDE = 3;
77
+ export declare const FRAME_GENERATION_INDEX = 0;
78
+ export declare const FRAME_COUNT_INDEX = 1;
79
+ export declare function frameFloatsFor(bodies: number): number;
80
+ export interface SwarmPhysicsInit {
81
+ parameters: SwarmPhysicsParameters;
82
+ bounds: SwarmBounds;
83
+ obstacles?: readonly SwarmObstacleRect[];
84
+ agents?: readonly SwarmAgentSpec[];
85
+ /** Injected so a fixture can place spawns and nudges deterministically. */
86
+ random?: () => number;
87
+ }
88
+ export declare class SwarmPhysics {
89
+ private readonly engine;
90
+ private readonly walls;
91
+ private obstacles;
92
+ private readonly bodies;
93
+ /** Index → id, the order every frame buffer is written in. */
94
+ private order;
95
+ private tableGeneration;
96
+ private parameters;
97
+ private width;
98
+ private height;
99
+ private accumulator;
100
+ private previousTime;
101
+ private readonly random;
102
+ constructor(init: SwarmPhysicsInit);
103
+ /** The id-table the next frame's indices are addressed by. */
104
+ get generation(): number;
105
+ ids(): readonly string[];
106
+ get stepMs(): number;
107
+ /**
108
+ * Seed the clock without solving anything.
109
+ *
110
+ * The first pump has no previous timestamp to subtract from, and inventing one
111
+ * would either drop that interval or bank a huge one. The host seeds this the
112
+ * moment it builds the physics, so the first real pump measures from birth.
113
+ */
114
+ seed(now: number): void;
115
+ setParameters(next: SwarmPhysicsParameters): void;
116
+ setBounds(bounds: SwarmBounds): void;
117
+ private placeWalls;
118
+ /**
119
+ * Chrome is solid: bubbles settle around the mock label rather than drifting
120
+ * under it. The count is stable for a mounted stage — the same elements are
121
+ * re-measured on every resize — so a changed count rebuilds rather than
122
+ * pretending the old bodies still stand for something.
123
+ */
124
+ setObstacles(rects: readonly SwarmObstacleRect[]): void;
125
+ /**
126
+ * Bring the body set in line with the agents the stage is showing.
127
+ *
128
+ * Returns whether MEMBERSHIP changed — which is the receiver's cue that the
129
+ * index→id table it has been reading frames with is stale. A radius change is
130
+ * not membership: the frame carries the radius, so nothing above needs telling.
131
+ */
132
+ syncAgents(specs: readonly SwarmAgentSpec[]): boolean;
133
+ private findSpawnPosition;
134
+ /**
135
+ * Advance real time and solve whatever whole steps it bought. Returns the
136
+ * number solved, which is the caller's cue that there is a new state worth
137
+ * publishing — a pump that solved nothing has nothing new to say.
138
+ */
139
+ advance(now: number): number;
140
+ private step;
141
+ /** Write the current state into `target` in id-table order.
142
+ *
143
+ * The offset advances UNCONDITIONALLY. `order` and `bodies` are written
144
+ * together and a missing body is unreachable today, but skipping a slot
145
+ * without skipping its offset would shift every remaining body one position
146
+ * up the id table — one agent's coordinates drawn on the next agent's bubble
147
+ * for the whole frame, which is a far worse answer than a stale slot. */
148
+ writeFrame(target: Float32Array): void;
149
+ /**
150
+ * Grab a bubble. `pointB` is the vector from the body's centre to the grab
151
+ * point, so the bubble keeps the offset it was grabbed at instead of snapping
152
+ * its centre to the cursor.
153
+ */
154
+ dragStart(id: string, point: SwarmPoint): void;
155
+ dragMove(id: string, point: SwarmPoint): void;
156
+ dragEnd(id: string): void;
157
+ /** Whether this body is currently on a spring. Fixtures assert on it; the
158
+ * simulation reads it to know which bodies gravity may not touch. */
159
+ isDragging(id: string): boolean;
160
+ private releaseDrag;
161
+ /** The small shove a selected bubble gets, so a click is visible in the field. */
162
+ nudge(id: string): void;
163
+ /**
164
+ * Which bubble is under a point, or null.
165
+ *
166
+ * The DOM view never calls this — its bubbles are real elements and the
167
+ * browser does its own hit-testing. It is here for the renderer that replaces
168
+ * them (GT-D16), where a canvas has nothing to hit. The LAST match in table
169
+ * order wins, because that is the one drawn on top.
170
+ */
171
+ queryPoint(point: SwarmPoint): string | null;
172
+ dispose(): void;
173
+ }
174
+ //# sourceMappingURL=world.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"world.d.ts","sourceRoot":"","sources":["../../../../src/views/swarm/physics/world.ts"],"names":[],"mappings":"AAqBA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAEnC;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,oBAAoB,MAAM,CAAC;AAsBxC,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;4DAC4D;AAC5D,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACtC;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,iBAAiB;IAChC,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,UAAU;IACzB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED;;yBAEyB;AACzB,eAAO,MAAM,mBAAmB,IAAI,CAAC;AACrC,eAAO,MAAM,YAAY,IAAI,CAAC;AAC9B,eAAO,MAAM,sBAAsB,IAAI,CAAC;AACxC,eAAO,MAAM,iB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;;;;;OAMG;IACH,UAAU,CAAC,KAAK,EAAE,SAAS,cAAc,EAAE,GAAG,OAAO;IA+CrD,OAAO,CAAC,iBAAiB;IAqCzB;;;;OAIG;IACH,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAuB5B,OAAO,CAAC,IAAI;IAsBZ;;;;;;6EAMyE;IACzE,UAAU,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI;IAetC;;;;OAIG;IACH,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,GAAG,IAAI;IAc9C,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,GAAG,IAAI;IAO7C,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAKzB;yEACqE;IACrE,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAI/B,OAAO,CAAC,WAAW;IAMnB,kFAAkF;IAClF,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IASvB;;;;;;;OAOG;IACH,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI;IAW5C,OAAO,IAAI,IAAI;CAQhB"}
@@ -0,0 +1,454 @@
1
+ import Matter from 'matter-js';
2
+ import { clampSpawnPosition, PHYSICAL_GAP } from './spawn-clamp.js';
3
+ // THE SWARM'S PHYSICS, with no view attached (GT-3c, GT-D16).
4
+ //
5
+ // Everything here used to live inside AgentSwarm.tsx's mount effect. It is the
6
+ // same engine, the same forces, the same geometry and the same fixed-timestep
7
+ // schedule — what changed is that none of it can see a document any more. There
8
+ // is no element, no ResizeObserver, no rAF and no style write in this file, and
9
+ // that absence is the whole point: a module that cannot touch the DOM is a
10
+ // module that can be hosted in a worker (GT-3m finding 1 established that matter
11
+ // itself is pure JS; this establishes that our USE of it is too).
12
+ //
13
+ // The main thread keeps what it must keep — observing chrome elements, mapping
14
+ // pointers to world coordinates, and writing the bubbles — and hands this class
15
+ // rectangles and points instead of nodes.
16
+ //
17
+ // It is deliberately a plain class rather than a message handler: the protocol
18
+ // lives one file over, so a test can drive the physics directly with no worker,
19
+ // no ports and no ping-pong in the way.
20
+ /**
21
+ * The lowest physics rate that stays stable, and the reason it is a floor rather
22
+ * than a preference (GT-D15.2).
23
+ *
24
+ * Matter 0.19 scales air friction by the step against a 60Hz base
25
+ * (`1 - frictionAir * (deltaTime / _baseDelta)`, Body.js:744), which turns
26
+ * NEGATIVE — friction that accelerates — once the step passes
27
+ * `_baseDelta / frictionAir`. At the swarm panel's maximum air friction of 0.2
28
+ * that is 83ms, about 12Hz, so 15 is the lowest rate that stays stable across
29
+ * the rest of the panel's own range.
30
+ *
31
+ * The lab clamps to this and so does the physics, on purpose: the knob is one
32
+ * caller, and a law that only one side enforces is a law that a second caller
33
+ * breaks. Nothing clamps the CEILING here — a high rate costs, it does not
34
+ * destabilise.
35
+ */
36
+ export const PHYSICS_HZ_FLOOR = 15;
37
+ /**
38
+ * The other half of that same inequality (GT-5c).
39
+ *
40
+ * The floor above is only stable against a BOUNDED friction: `1 - frictionAir *
41
+ * (stepMs / _baseDelta) > 0` has two variables, and the 15Hz floor was chosen
42
+ * against a maximum air friction of 0.2. Until now that maximum was enforced
43
+ * only by the view's normalizer, against the lab slider's `max` — so a raised
44
+ * slider ceiling, or any second caller of `setParameters`, walked straight past
45
+ * it into negative friction, which is friction that ACCELERATES.
46
+ *
47
+ * Stated here, beside the floor it belongs to, and clamped at construction and
48
+ * at every update — exactly as the rate is, and for exactly the same reason: a
49
+ * law only one side enforces is a law the next caller breaks. The lab's control
50
+ * declares this same number as its `max`, and the test derives the worst case
51
+ * FROM that control rather than restating it.
52
+ */
53
+ export const FRICTION_AIR_CEILING = 0.2;
54
+ /** How far a chrome obstacle's body overhangs the element it stands for. */
55
+ const CHROME_OBSTACLE_PADDING = 7;
56
+ const DRAG_STIFFNESS = 0.2;
57
+ const WALL_THICKNESS = 5000;
58
+ const SPAWN_CLEARANCE = 12;
59
+ const SPAWN_CANDIDATES = 40;
60
+ const GOLDEN_ANGLE = Math.PI * (3 - Math.sqrt(5));
61
+ /** The nudge a click gives a bubble, so selecting one is visible in the field. */
62
+ const CLICK_NUDGE = 0.003;
63
+ /** The most real time one frame may hand the accumulator. A tab that was hidden
64
+ * or a machine that stalled comes back with a huge delta, and feeding it in
65
+ * would make the swarm teleport — or, worse, spend the next frames catching up
66
+ * through hundreds of steps. The backlog past this is DROPPED, not banked. */
67
+ const MAX_FRAME_MS = 100;
68
+ /** The most steps one pump may solve. The second half of the same guard: if a
69
+ * pump is somehow still behind after this many steps, the remainder is discarded
70
+ * rather than allowed to spiral. */
71
+ const MAX_STEPS_PER_FRAME = 5;
72
+ /** Frame buffer layout: two header floats, then `x, y, radius` per body in
73
+ * id-table order. Flat and fixed so the receiver reads it with arithmetic
74
+ * instead of a parse. */
75
+ export const FRAME_HEADER_FLOATS = 2;
76
+ export const FRAME_STRIDE = 3;
77
+ export const FRAME_GENERATION_INDEX = 0;
78
+ export const FRAME_COUNT_INDEX = 1;
79
+ export function frameFloatsFor(bodies) {
80
+ return FRAME_HEADER_FLOATS + bodies * FRAME_STRIDE;
81
+ }
82
+ function clampHz(hz) {
83
+ return Number.isFinite(hz) ? Math.max(PHYSICS_HZ_FLOOR, hz) : PHYSICS_HZ_FLOOR;
84
+ }
85
+ function clampFriction(frictionAir) {
86
+ if (!Number.isFinite(frictionAir))
87
+ return FRICTION_AIR_CEILING;
88
+ return Math.min(FRICTION_AIR_CEILING, Math.max(0, frictionAir));
89
+ }
90
+ /** The two stability clamps, applied wherever parameters enter. */
91
+ function guardParameters(next) {
92
+ return {
93
+ ...next,
94
+ physicsHz: clampHz(next.physicsHz),
95
+ frictionAir: clampFriction(next.frictionAir),
96
+ };
97
+ }
98
+ export class SwarmPhysics {
99
+ engine;
100
+ walls;
101
+ obstacles = [];
102
+ bodies = new Map();
103
+ /** Index → id, the order every frame buffer is written in. */
104
+ order = [];
105
+ tableGeneration = 0;
106
+ parameters;
107
+ width;
108
+ height;
109
+ accumulator = 0;
110
+ previousTime = null;
111
+ random;
112
+ constructor(init) {
113
+ this.parameters = guardParameters(init.parameters);
114
+ this.width = init.bounds.width;
115
+ this.height = init.bounds.height;
116
+ this.random = init.random ?? Math.random;
117
+ this.engine = Matter.Engine.create();
118
+ this.engine.gravity.x = 0;
119
+ this.engine.gravity.y = 0;
120
+ const wallOptions = { isStatic: true, restitution: this.parameters.restitution };
121
+ this.walls = [
122
+ Matter.Bodies.rectangle(0, 0, 10000, WALL_THICKNESS, wallOptions),
123
+ Matter.Bodies.rectangle(0, 0, 10000, WALL_THICKNESS, wallOptions),
124
+ Matter.Bodies.rectangle(0, 0, WALL_THICKNESS, 10000, wallOptions),
125
+ Matter.Bodies.rectangle(0, 0, WALL_THICKNESS, 10000, wallOptions),
126
+ ];
127
+ Matter.Composite.add(this.engine.world, [...this.walls]);
128
+ this.placeWalls();
129
+ if (init.obstacles)
130
+ this.setObstacles(init.obstacles);
131
+ if (init.agents)
132
+ this.syncAgents(init.agents);
133
+ }
134
+ /** The id-table the next frame's indices are addressed by. */
135
+ get generation() {
136
+ return this.tableGeneration;
137
+ }
138
+ ids() {
139
+ return this.order;
140
+ }
141
+ get stepMs() {
142
+ return 1000 / this.parameters.physicsHz;
143
+ }
144
+ /**
145
+ * Seed the clock without solving anything.
146
+ *
147
+ * The first pump has no previous timestamp to subtract from, and inventing one
148
+ * would either drop that interval or bank a huge one. The host seeds this the
149
+ * moment it builds the physics, so the first real pump measures from birth.
150
+ */
151
+ seed(now) {
152
+ this.previousTime = now;
153
+ }
154
+ setParameters(next) {
155
+ this.parameters = guardParameters(next);
156
+ for (const wrapper of this.bodies.values()) {
157
+ wrapper.body.restitution = this.parameters.restitution;
158
+ wrapper.body.frictionAir = this.parameters.frictionAir;
159
+ }
160
+ for (const wall of this.walls)
161
+ wall.restitution = this.parameters.restitution;
162
+ for (const obstacle of this.obstacles)
163
+ obstacle.body.restitution = this.parameters.restitution;
164
+ }
165
+ setBounds(bounds) {
166
+ this.width = bounds.width;
167
+ this.height = bounds.height;
168
+ this.placeWalls();
169
+ }
170
+ placeWalls() {
171
+ const [bottom, top, left, right] = this.walls;
172
+ Matter.Body.setPosition(bottom, {
173
+ x: this.width / 2,
174
+ y: this.height + WALL_THICKNESS / 2,
175
+ });
176
+ Matter.Body.setPosition(top, { x: this.width / 2, y: -WALL_THICKNESS / 2 });
177
+ Matter.Body.setPosition(left, { x: -WALL_THICKNESS / 2, y: this.height / 2 });
178
+ Matter.Body.setPosition(right, {
179
+ x: this.width + WALL_THICKNESS / 2,
180
+ y: this.height / 2,
181
+ });
182
+ }
183
+ /**
184
+ * Chrome is solid: bubbles settle around the mock label rather than drifting
185
+ * under it. The count is stable for a mounted stage — the same elements are
186
+ * re-measured on every resize — so a changed count rebuilds rather than
187
+ * pretending the old bodies still stand for something.
188
+ */
189
+ setObstacles(rects) {
190
+ if (rects.length !== this.obstacles.length) {
191
+ for (const obstacle of this.obstacles) {
192
+ Matter.Composite.remove(this.engine.world, obstacle.body);
193
+ }
194
+ this.obstacles = rects.map((rect) => {
195
+ const width = Math.max(1, rect.width + CHROME_OBSTACLE_PADDING * 2);
196
+ const height = Math.max(1, rect.height + CHROME_OBSTACLE_PADDING * 2);
197
+ const body = Matter.Bodies.rectangle(0, 0, width, height, {
198
+ isStatic: true,
199
+ restitution: this.parameters.restitution,
200
+ });
201
+ Matter.Composite.add(this.engine.world, body);
202
+ return { body, width, height };
203
+ });
204
+ }
205
+ rects.forEach((rect, index) => {
206
+ const obstacle = this.obstacles[index];
207
+ if (!obstacle)
208
+ return;
209
+ const width = Math.max(1, rect.width + CHROME_OBSTACLE_PADDING * 2);
210
+ const height = Math.max(1, rect.height + CHROME_OBSTACLE_PADDING * 2);
211
+ Matter.Body.scale(obstacle.body, width / obstacle.width, height / obstacle.height);
212
+ obstacle.width = width;
213
+ obstacle.height = height;
214
+ Matter.Body.setPosition(obstacle.body, {
215
+ x: rect.x + rect.width / 2,
216
+ y: rect.y + rect.height / 2,
217
+ });
218
+ });
219
+ }
220
+ /**
221
+ * Bring the body set in line with the agents the stage is showing.
222
+ *
223
+ * Returns whether MEMBERSHIP changed — which is the receiver's cue that the
224
+ * index→id table it has been reading frames with is stale. A radius change is
225
+ * not membership: the frame carries the radius, so nothing above needs telling.
226
+ */
227
+ syncAgents(specs) {
228
+ const wanted = new Set(specs.map((spec) => spec.id));
229
+ let changed = false;
230
+ for (const [id, wrapper] of this.bodies) {
231
+ if (wanted.has(id))
232
+ continue;
233
+ this.releaseDrag(wrapper);
234
+ Matter.Composite.remove(this.engine.world, wrapper.body);
235
+ this.bodies.delete(id);
236
+ changed = true;
237
+ }
238
+ for (const spec of specs) {
239
+ const existing = this.bodies.get(spec.id);
240
+ if (existing) {
241
+ existing.targetRadius = spec.radius;
242
+ continue;
243
+ }
244
+ // The arena a spawn is placed in has a floor, because a stage measured
245
+ // mid-layout can report nothing and a spawn search in a zero-sized box
246
+ // returns the same point for every bubble.
247
+ const width = Math.max(this.width, 320);
248
+ const height = Math.max(this.height, 180);
249
+ const position = spec.spawnHint
250
+ ? clampSpawnPosition(width, height, spec.radius, spec.spawnHint)
251
+ : this.findSpawnPosition(width, height, spec.radius);
252
+ const body = Matter.Bodies.circle(position.x, position.y, spec.radius + PHYSICAL_GAP, {
253
+ restitution: this.parameters.restitution,
254
+ frictionAir: this.parameters.frictionAir,
255
+ friction: 0.1,
256
+ });
257
+ this.bodies.set(spec.id, {
258
+ body,
259
+ currentRadius: spec.radius,
260
+ targetRadius: spec.radius,
261
+ });
262
+ Matter.Composite.add(this.engine.world, body);
263
+ changed = true;
264
+ }
265
+ if (changed) {
266
+ this.order = [...this.bodies.keys()];
267
+ this.tableGeneration += 1;
268
+ }
269
+ return changed;
270
+ }
271
+ findSpawnPosition(width, height, radius) {
272
+ const wrappers = [...this.bodies.values()];
273
+ const center = { x: width / 2, y: height / 2 };
274
+ if (wrappers.length === 0)
275
+ return center;
276
+ const collisionRadius = radius + PHYSICAL_GAP;
277
+ const horizontalReach = Math.max(0, Math.min(width * 0.28, width / 2 - collisionRadius - SPAWN_CLEARANCE));
278
+ const verticalReach = Math.max(0, Math.min(height * 0.28, height / 2 - collisionRadius - SPAWN_CLEARANCE));
279
+ const phase = this.random() * Math.PI * 2;
280
+ let bestPosition = center;
281
+ let bestClearance = Number.NEGATIVE_INFINITY;
282
+ for (let index = 0; index < SPAWN_CANDIDATES; index += 1) {
283
+ const progress = index === 0 ? 0 : Math.sqrt(index / (SPAWN_CANDIDATES - 1));
284
+ const angle = phase + index * GOLDEN_ANGLE;
285
+ const candidate = {
286
+ x: center.x + Math.cos(angle) * horizontalReach * progress,
287
+ y: center.y + Math.sin(angle) * verticalReach * progress,
288
+ };
289
+ let clearance = Number.POSITIVE_INFINITY;
290
+ for (const wrapper of wrappers) {
291
+ const distance = Math.hypot(candidate.x - wrapper.body.position.x, candidate.y - wrapper.body.position.y);
292
+ clearance = Math.min(clearance, distance - (collisionRadius + wrapper.currentRadius + PHYSICAL_GAP + SPAWN_CLEARANCE));
293
+ }
294
+ if (clearance > bestClearance) {
295
+ bestPosition = candidate;
296
+ bestClearance = clearance;
297
+ }
298
+ if (clearance >= 0)
299
+ return candidate;
300
+ }
301
+ return bestPosition;
302
+ }
303
+ /**
304
+ * Advance real time and solve whatever whole steps it bought. Returns the
305
+ * number solved, which is the caller's cue that there is a new state worth
306
+ * publishing — a pump that solved nothing has nothing new to say.
307
+ */
308
+ advance(now) {
309
+ if (this.previousTime === null) {
310
+ this.previousTime = now;
311
+ return 0;
312
+ }
313
+ const stepMs = this.stepMs;
314
+ // Real elapsed time, clamped. The clamp is a guard against stalls, not a
315
+ // smoothing pass: within a normal pump the full delta goes in.
316
+ this.accumulator += Math.min(MAX_FRAME_MS, Math.max(0, now - this.previousTime));
317
+ this.previousTime = now;
318
+ let steps = 0;
319
+ while (this.accumulator >= stepMs && steps < MAX_STEPS_PER_FRAME) {
320
+ this.step(stepMs);
321
+ this.accumulator -= stepMs;
322
+ steps += 1;
323
+ }
324
+ // Behind after the step cap: drop the debt. Banking it guarantees the next
325
+ // pump is late too.
326
+ if (steps === MAX_STEPS_PER_FRAME && this.accumulator > stepMs)
327
+ this.accumulator = 0;
328
+ return steps;
329
+ }
330
+ step(stepMs) {
331
+ const { gravityPull } = this.parameters;
332
+ for (const wrapper of this.bodies.values()) {
333
+ const { body } = wrapper;
334
+ if (!wrapper.dragConstraint) {
335
+ Matter.Body.applyForce(body, body.position, {
336
+ x: (this.width / 2 - body.position.x) * gravityPull,
337
+ y: (this.height / 2 - body.position.y) * gravityPull,
338
+ });
339
+ }
340
+ if (Math.abs(wrapper.targetRadius - wrapper.currentRadius) > 0.5) {
341
+ const scale = (wrapper.targetRadius + PHYSICAL_GAP) / (wrapper.currentRadius + PHYSICAL_GAP);
342
+ Matter.Body.scale(body, scale, scale);
343
+ wrapper.currentRadius = wrapper.targetRadius;
344
+ }
345
+ }
346
+ // Forces are per-step by Matter's own contract — it clears them at the end
347
+ // of every update — so applying them inside this loop rather than once per
348
+ // pump is what keeps the drift the same strength at any Hz.
349
+ Matter.Engine.update(this.engine, stepMs);
350
+ }
351
+ /** Write the current state into `target` in id-table order.
352
+ *
353
+ * The offset advances UNCONDITIONALLY. `order` and `bodies` are written
354
+ * together and a missing body is unreachable today, but skipping a slot
355
+ * without skipping its offset would shift every remaining body one position
356
+ * up the id table — one agent's coordinates drawn on the next agent's bubble
357
+ * for the whole frame, which is a far worse answer than a stale slot. */
358
+ writeFrame(target) {
359
+ target[FRAME_GENERATION_INDEX] = this.tableGeneration;
360
+ target[FRAME_COUNT_INDEX] = this.order.length;
361
+ let offset = FRAME_HEADER_FLOATS;
362
+ for (const id of this.order) {
363
+ const wrapper = this.bodies.get(id);
364
+ if (wrapper) {
365
+ target[offset] = wrapper.body.position.x;
366
+ target[offset + 1] = wrapper.body.position.y;
367
+ target[offset + 2] = wrapper.currentRadius;
368
+ }
369
+ offset += FRAME_STRIDE;
370
+ }
371
+ }
372
+ /**
373
+ * Grab a bubble. `pointB` is the vector from the body's centre to the grab
374
+ * point, so the bubble keeps the offset it was grabbed at instead of snapping
375
+ * its centre to the cursor.
376
+ */
377
+ dragStart(id, point) {
378
+ const wrapper = this.bodies.get(id);
379
+ if (!wrapper)
380
+ return;
381
+ this.releaseDrag(wrapper);
382
+ wrapper.dragConstraint = Matter.Constraint.create({
383
+ pointA: { x: point.x, y: point.y },
384
+ bodyB: wrapper.body,
385
+ pointB: { x: point.x - wrapper.body.position.x, y: point.y - wrapper.body.position.y },
386
+ stiffness: DRAG_STIFFNESS,
387
+ render: { visible: false },
388
+ });
389
+ Matter.Composite.add(this.engine.world, wrapper.dragConstraint);
390
+ }
391
+ dragMove(id, point) {
392
+ const constraint = this.bodies.get(id)?.dragConstraint;
393
+ if (!constraint)
394
+ return;
395
+ constraint.pointA.x = point.x;
396
+ constraint.pointA.y = point.y;
397
+ }
398
+ dragEnd(id) {
399
+ const wrapper = this.bodies.get(id);
400
+ if (wrapper)
401
+ this.releaseDrag(wrapper);
402
+ }
403
+ /** Whether this body is currently on a spring. Fixtures assert on it; the
404
+ * simulation reads it to know which bodies gravity may not touch. */
405
+ isDragging(id) {
406
+ return this.bodies.get(id)?.dragConstraint !== undefined;
407
+ }
408
+ releaseDrag(wrapper) {
409
+ if (!wrapper.dragConstraint)
410
+ return;
411
+ Matter.Composite.remove(this.engine.world, wrapper.dragConstraint);
412
+ delete wrapper.dragConstraint;
413
+ }
414
+ /** The small shove a selected bubble gets, so a click is visible in the field. */
415
+ nudge(id) {
416
+ const wrapper = this.bodies.get(id);
417
+ if (!wrapper)
418
+ return;
419
+ Matter.Body.applyForce(wrapper.body, wrapper.body.position, {
420
+ x: (this.random() - 0.5) * CLICK_NUDGE,
421
+ y: (this.random() - 0.5) * CLICK_NUDGE,
422
+ });
423
+ }
424
+ /**
425
+ * Which bubble is under a point, or null.
426
+ *
427
+ * The DOM view never calls this — its bubbles are real elements and the
428
+ * browser does its own hit-testing. It is here for the renderer that replaces
429
+ * them (GT-D16), where a canvas has nothing to hit. The LAST match in table
430
+ * order wins, because that is the one drawn on top.
431
+ */
432
+ queryPoint(point) {
433
+ let hit = null;
434
+ for (const id of this.order) {
435
+ const wrapper = this.bodies.get(id);
436
+ if (!wrapper)
437
+ continue;
438
+ const distance = Math.hypot(point.x - wrapper.body.position.x, point.y - wrapper.body.position.y);
439
+ if (distance <= wrapper.currentRadius + PHYSICAL_GAP)
440
+ hit = id;
441
+ }
442
+ return hit;
443
+ }
444
+ dispose() {
445
+ for (const wrapper of this.bodies.values())
446
+ this.releaseDrag(wrapper);
447
+ this.bodies.clear();
448
+ this.obstacles = [];
449
+ this.order = [];
450
+ Matter.Engine.clear(this.engine);
451
+ Matter.Composite.clear(this.engine.world, false, true);
452
+ }
453
+ }
454
+ //# sourceMappingURL=world.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"world.js","sourceRoot":"","sources":["../../../../src/views/swarm/physics/world.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEpE,8DAA8D;AAC9D,EAAE;AACF,+EAA+E;AAC/E,8EAA8E;AAC9E,gFAAgF;AAChF,gFAAgF;AAChF,2EAA2E;AAC3E,iFAAiF;AACjF,kEAAkE;AAClE,EAAE;AACF,+EAA+E;AAC/E,gFAAgF;AAChF,0CAA0C;AAC1C,EAAE;AACF,+EAA+E;AAC/E,gFAAgF;AAChF,wCAAwC;AAExC;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAEnC;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CAAC;AAExC,4EAA4E;AAC5E,MAAM,uBAAuB,GAAG,CAAC,CAAC;AAClC,MAAM,cAAc,GAAG,GAAG,CAAC;AAC3B,MAAM,cAAc,GAAG,IAAI,CAAC;AAC5B,MAAM,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