@vibefield/puppeteer-views 0.0.0-stage → 0.2.1

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,187 @@
1
+ import { type BloomTextMeasure } from './constants.js';
2
+ export interface BloomPoint {
3
+ readonly x: number;
4
+ readonly y: number;
5
+ }
6
+ /** A width and height: the field's, or a label's. */
7
+ export interface BloomSize {
8
+ readonly w: number;
9
+ readonly h: number;
10
+ }
11
+ /** A rectangle in the chrome's terms (DOMRect-like): the field's chrome, a seated label as an obstacle. */
12
+ export interface BloomRect {
13
+ readonly x: number;
14
+ readonly y: number;
15
+ readonly width: number;
16
+ readonly height: number;
17
+ }
18
+ /** The least a box is, for the distance helpers. */
19
+ export interface BloomXYWH {
20
+ readonly x: number;
21
+ readonly y: number;
22
+ readonly w: number;
23
+ readonly h: number;
24
+ }
25
+ /** How a label's text runs inside its box: away from its bud. */
26
+ export type BloomAlign = 'left' | 'center' | 'right';
27
+ /** A bud's label, placed. */
28
+ export interface BloomBox extends BloomXYWH {
29
+ readonly align: BloomAlign;
30
+ }
31
+ export interface BloomDisc {
32
+ readonly x: number;
33
+ readonly y: number;
34
+ readonly r: number;
35
+ }
36
+ export interface BloomSeg {
37
+ readonly a: BloomPoint;
38
+ readonly b: BloomPoint;
39
+ }
40
+ /** What a label must keep clear of: the field's edges (less the inset), the
41
+ * chrome and seated labels (`rects`), buds and the hub (`discs`), spokes (`segs`). */
42
+ export interface BloomRoom {
43
+ readonly field: BloomSize;
44
+ readonly rects?: readonly BloomRect[] | undefined;
45
+ readonly discs?: readonly BloomDisc[] | undefined;
46
+ readonly segs?: readonly BloomSeg[] | undefined;
47
+ }
48
+ /** A bud's words: its name, and (a desktop's) state line under it. */
49
+ export interface BloomLabelText {
50
+ readonly name: string;
51
+ readonly sub?: string | undefined;
52
+ }
53
+ /** Where a label sits, what that place costs (0: clear), and whether it is the name alone. */
54
+ export interface BloomSeat {
55
+ readonly box: BloomBox;
56
+ readonly cost: number;
57
+ readonly short: boolean;
58
+ }
59
+ export declare function polar(cx: number, cy: number, r: number, deg: number): BloomPoint;
60
+ /** The direction of (dx, dy), in degrees (−180..180]. */
61
+ export declare function angleOf(dx: number, dy: number): number;
62
+ /** The unsigned difference of two directions, 0..180. */
63
+ export declare function angDiff(a: number, b: number): number;
64
+ /** A label's size in its own type (`BLOOM_FONT.label`, and `.sub` for the
65
+ * state line), letter spacing added per character as the prototype does. */
66
+ export declare function labelSize(label: BloomLabelText, measure: BloomTextMeasure): BloomSize;
67
+ /** Where a bud's words go: beside it when the spoke runs sideways, over or
68
+ * under it when it runs up or down — never along the spoke's own line, where
69
+ * the next bud would be. `force` puts them on one side. */
70
+ export declare function labelBox(x: number, y: number, deg: number, d: number, size: BloomSize, force?: 'left' | 'right' | null): BloomBox;
71
+ /** How near a box comes to a point (0 inside it). */
72
+ export declare function rectGap(box: BloomXYWH, x: number, y: number): number;
73
+ /** How near a point comes to the segment a–b. */
74
+ export declare function pointSeg(px: number, py: number, a: BloomPoint, b: BloomPoint): number;
75
+ /** How near a box comes to the segment a–b: 0 when the segment passes
76
+ * through it at all (Liang–Barsky), else the nearest of the ends to the box
77
+ * and the box's corners to the segment. */
78
+ export declare function segGap(box: BloomXYWH, a: BloomPoint, b: BloomPoint): number;
79
+ /** A bud's words toward any direction: leaning the way it points (beside the
80
+ * bud when it points sideways, centred over or under it when it points up or
81
+ * down, a corner toward it between), then out until none of the words is
82
+ * nearer the bud than the gap. Whole px. */
83
+ export declare function labelToward(x: number, y: number, deg: number, d: number, size: BloomSize): BloomBox;
84
+ /** What a place costs a bud's words: nothing when it is inside the field and
85
+ * clear of the chrome, of every other bud at its hot size, of every other
86
+ * bud's words, of the hub, and of every spoke (the tether runs down a spoke
87
+ * when you point along it). */
88
+ export declare function labelCost(box: BloomXYWH, room: BloomRoom): number;
89
+ /** Where a bud's words sit: their natural place if it is clear; otherwise the
90
+ * nearest clear place around their own bud, turned 15° at a time either way;
91
+ * otherwise the name alone (`sizes[1]`), the same way round; otherwise the
92
+ * least crowded place, with what it costs, so the caller can turn the arc or
93
+ * let the words give way. */
94
+ export declare function seatLabel(x: number, y: number, d: number, natural: BloomBox, sizes: readonly (BloomSize | null | undefined)[], room: BloomRoom, naturalShort?: boolean): BloomSeat;
95
+ /** How far a box runs past the field (less the inset) and onto the chrome (6 px round it). */
96
+ export declare function overflow(box: BloomXYWH, field: BloomSize, obstacles: readonly BloomRect[]): number;
97
+ /** A ring round (cx, cy): `r` out, buds `d` across, `step`° apart, facing `prefer`°. */
98
+ export interface BloomArcSpec {
99
+ readonly cx: number;
100
+ readonly cy: number;
101
+ readonly r: number;
102
+ readonly d: number;
103
+ readonly step: number;
104
+ readonly prefer: number;
105
+ readonly field: BloomSize;
106
+ /** The chrome (and, for ring two, the first ring's seated labels). */
107
+ readonly obstacles?: readonly BloomRect[] | undefined;
108
+ /** What was already there: the hub, a first ring, the open desktop. */
109
+ readonly discs?: readonly BloomDisc[] | undefined;
110
+ /** The spoke that led here. */
111
+ readonly segs?: readonly BloomSeg[] | undefined;
112
+ }
113
+ /** A bud's place on an arc and the direction of its spoke. */
114
+ export interface BloomArcPoint {
115
+ readonly x: number;
116
+ readonly y: number;
117
+ readonly a: number;
118
+ }
119
+ /** What a ring's buds cost where they stand: past the field's edge, on the
120
+ * chrome, on whatever discs were already there, on the spoke that led here. */
121
+ export declare function budsCost(pts: readonly BloomArcPoint[], spec: BloomArcSpec, hotR: number): number;
122
+ /** n buds centred on `theta`, `step`° apart, in arc order. */
123
+ export declare function arcPoints(spec: BloomArcSpec, theta: number, step: number, n: number): BloomArcPoint[];
124
+ /** The spacing for n buds: the spec's, narrowed so the arc spans at most 220°. */
125
+ export declare function arcStep(spec: BloomArcSpec, n: number): number;
126
+ /** The k-th turn tried: 0, +15, −15, +30, −30, … */
127
+ export declare function turnAt(k: number): number;
128
+ /** Whether n buds can bloom round (cx, cy) turned no more than `maxTurn` from
129
+ * the way they face. The first ring asks it of every desktop it offers: a
130
+ * desktop's profiles bloom onward (at most square to the spoke), never back
131
+ * toward the hub, and never onto its siblings. */
132
+ export declare function arcFits(spec: BloomArcSpec, n: number, maxTurn: number): boolean;
133
+ /** One more bud's words a ring should leave room for: the open desktop's, round its own bud. */
134
+ export interface BloomArcExtra {
135
+ readonly x: number;
136
+ readonly y: number;
137
+ readonly d: number;
138
+ /** Where its words stand now (their home seat). */
139
+ readonly natural: BloomBox;
140
+ readonly short?: boolean | undefined;
141
+ /** Its full size, and its name alone (null when it has no state line). */
142
+ readonly sizes: readonly (BloomSize | null | undefined)[];
143
+ }
144
+ export interface BloomLayoutArcSpec extends BloomArcSpec {
145
+ /** One per bud, in the menu's order. */
146
+ readonly labels: readonly BloomLabelText[];
147
+ readonly measure: BloomTextMeasure;
148
+ /** The caller's own cost for a turn (the first ring's lookahead), given the points in reading order. */
149
+ readonly also?: ((pts: readonly BloomArcPoint[]) => number) | undefined;
150
+ readonly extra?: BloomArcExtra | undefined;
151
+ }
152
+ /** A bud as the arc placed it, its words seated. */
153
+ export interface BloomArcItem {
154
+ readonly x: number;
155
+ readonly y: number;
156
+ readonly a: number;
157
+ readonly label: BloomBox;
158
+ readonly short: boolean;
159
+ }
160
+ /** The turn chosen, its buds in reading order, and what each rule cost there. */
161
+ export interface BloomArcLayout {
162
+ readonly theta: number;
163
+ readonly items: readonly BloomArcItem[];
164
+ readonly step: number;
165
+ readonly turn: number;
166
+ /** The extra words stayed clear (true when there were none). */
167
+ readonly kept: boolean;
168
+ readonly bud: number;
169
+ readonly word: number;
170
+ readonly also: number;
171
+ readonly cost: number;
172
+ }
173
+ /** n buds around (cx, cy): the preferred direction first, then turned in 15°
174
+ * steps either way until everything fits — the buds inside the field, off the
175
+ * chrome and clear of whatever was already there (`discs`: the hub, a first
176
+ * ring; `segs`: the spoke that led here), and every bud's words seated clear
177
+ * of all of it (a word moves round its own bud before the arc turns). `extra`
178
+ * is one more bud's words the ring should leave room for — the open desktop's,
179
+ * round its own bud — and the ring turns up to 45° past its first clear turn
180
+ * to keep them; past that they give way instead. `also(pts)` is a caller's own
181
+ * cost for a turn (the first ring's lookahead). The turn is chosen in STRICT
182
+ * order — the buds fit, then the words, then `also`, then `extra` — each only
183
+ * breaking the ties of the one before, so nothing lower down can push a bud
184
+ * off the field. Items come back in reading order (left to right, or top to
185
+ * bottom when the arc faces sideways): item i carries `labels[i]`. */
186
+ export declare function layoutArc(spec: BloomLayoutArcSpec): BloomArcLayout;
187
+ //# sourceMappingURL=geometry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geometry.d.ts","sourceRoot":"","sources":["../../../../src/views/swarm/bloom/geometry.ts"],"names":[],"mappings":"AAMA,OAAO,EAAqB,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAE1E,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qDAAqD;AACrD,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,2GAA2G;AAC3G,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,oDAAoD;AACpD,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,iEAAiE;AACjE,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AAErD,6BAA6B;AAC7B,MAAM,WAAW,QAAS,SAAQ,SAAS;IACzC,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;CAC5B;AAED,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MA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EAAE,QAAQ,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;CACzB;AAED,iFAAiF;AACjF,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,SAAS,YAAY,EAAE,CAAC;IACxC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,gEAAgE;IAChE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;;sEAYsE;AACtE,wBAAgB,SAAS,CAAC,IAAI,EAAE,kBAAkB,GAAG,cAAc,CA2GlE"}
@@ -0,0 +1,379 @@
1
+ // The spawn bloom's geometry, pure: where buds stand, where their words sit,
2
+ // and which way a ring turns to fit. A 1:1 port of the prototype's audited
3
+ // geometry (draft/spawn-bloom/bloom.js, "geometry" and "the buds' words"):
4
+ // the same arithmetic in the same order, so the audit's numbers carry over.
5
+ // CSS px, y down; angles in degrees, 0 = right, 90 = down.
6
+ import { BLOOM, BLOOM_FONT } from './constants.js';
7
+ function rad(deg) {
8
+ return (deg * Math.PI) / 180;
9
+ }
10
+ export function polar(cx, cy, r, deg) {
11
+ return { x: cx + r * Math.cos(rad(deg)), y: cy + r * Math.sin(rad(deg)) };
12
+ }
13
+ /** The direction of (dx, dy), in degrees (−180..180]. */
14
+ export function angleOf(dx, dy) {
15
+ return (Math.atan2(dy, dx) * 180) / Math.PI;
16
+ }
17
+ /** The unsigned difference of two directions, 0..180. */
18
+ export function angDiff(a, b) {
19
+ return Math.abs(((((a - b) % 360) + 540) % 360) - 180);
20
+ }
21
+ /** A label's size in its own type (`BLOOM_FONT.label`, and `.sub` for the
22
+ * state line), letter spacing added per character as the prototype does. */
23
+ export function labelSize(label, measure) {
24
+ const w1 = measure(label.name, BLOOM_FONT.label) + label.name.length * 0.57;
25
+ let w2 = 0;
26
+ if (label.sub)
27
+ w2 = measure(label.sub, BLOOM_FONT.sub) + label.sub.length * 0.75;
28
+ return { w: Math.ceil(Math.max(w1, w2)) + 4, h: label.sub ? 23 : 12 };
29
+ }
30
+ /** Where a bud's words go: beside it when the spoke runs sideways, over or
31
+ * under it when it runs up or down — never along the spoke's own line, where
32
+ * the next bud would be. `force` puts them on one side. */
33
+ export function labelBox(x, y, deg, d, size, force) {
34
+ const ux = Math.cos(rad(deg));
35
+ const uy = Math.sin(rad(deg));
36
+ const gap = BLOOM.labelGap;
37
+ if (force === 'left')
38
+ return { x: x - d / 2 - gap - size.w, y: y - size.h / 2, w: size.w, h: size.h, align: 'right' };
39
+ if (force === 'right')
40
+ return { x: x + d / 2 + gap, y: y - size.h / 2, w: size.w, h: size.h, align: 'left' };
41
+ if (Math.abs(ux) < 0.42) {
42
+ return {
43
+ x: x - size.w / 2,
44
+ y: uy < 0 ? y - d / 2 - gap - size.h : y + d / 2 + gap,
45
+ w: size.w,
46
+ h: size.h,
47
+ align: 'center',
48
+ };
49
+ }
50
+ if (ux > 0)
51
+ return { x: x + d / 2 + gap, y: y - size.h / 2, w: size.w, h: size.h, align: 'left' };
52
+ return { x: x - d / 2 - gap - size.w, y: y - size.h / 2, w: size.w, h: size.h, align: 'right' };
53
+ }
54
+ /** How near a box comes to a point (0 inside it). */
55
+ export function rectGap(box, x, y) {
56
+ const dx = Math.max(box.x - x, 0, x - (box.x + box.w));
57
+ const dy = Math.max(box.y - y, 0, y - (box.y + box.h));
58
+ return Math.hypot(dx, dy);
59
+ }
60
+ /** How near a point comes to the segment a–b. */
61
+ export function pointSeg(px, py, a, b) {
62
+ const dx = b.x - a.x;
63
+ const dy = b.y - a.y;
64
+ const len = dx * dx + dy * dy;
65
+ const t = len ? Math.max(0, Math.min(1, ((px - a.x) * dx + (py - a.y) * dy) / len)) : 0;
66
+ return Math.hypot(px - (a.x + t * dx), py - (a.y + t * dy));
67
+ }
68
+ /** How near a box comes to the segment a–b: 0 when the segment passes
69
+ * through it at all (Liang–Barsky), else the nearest of the ends to the box
70
+ * and the box's corners to the segment. */
71
+ export function segGap(box, a, b) {
72
+ let t0 = 0;
73
+ let t1 = 1;
74
+ const dx = b.x - a.x;
75
+ const dy = b.y - a.y;
76
+ const p = [-dx, dx, -dy, dy];
77
+ const q = [a.x - box.x, box.x + box.w - a.x, a.y - box.y, box.y + box.h - a.y];
78
+ let hit = true;
79
+ for (let k = 0; k < 4 && hit; k += 1) {
80
+ const pk = p[k];
81
+ const qk = q[k];
82
+ if (pk === 0) {
83
+ if (qk < 0)
84
+ hit = false;
85
+ }
86
+ else {
87
+ const r = qk / pk;
88
+ if (pk < 0) {
89
+ if (r > t1)
90
+ hit = false;
91
+ else if (r > t0)
92
+ t0 = r;
93
+ }
94
+ else if (r < t0)
95
+ hit = false;
96
+ else if (r < t1)
97
+ t1 = r;
98
+ }
99
+ }
100
+ if (hit)
101
+ return 0;
102
+ let near = Math.min(rectGap(box, a.x, a.y), rectGap(box, b.x, b.y));
103
+ const corners = [
104
+ [box.x, box.y],
105
+ [box.x + box.w, box.y],
106
+ [box.x, box.y + box.h],
107
+ [box.x + box.w, box.y + box.h],
108
+ ];
109
+ for (const c of corners)
110
+ near = Math.min(near, pointSeg(c[0], c[1], a, b));
111
+ return near;
112
+ }
113
+ /** A bud's words toward any direction: leaning the way it points (beside the
114
+ * bud when it points sideways, centred over or under it when it points up or
115
+ * down, a corner toward it between), then out until none of the words is
116
+ * nearer the bud than the gap. Whole px. */
117
+ export function labelToward(x, y, deg, d, size) {
118
+ const ux = Math.cos(rad(deg));
119
+ const uy = Math.sin(rad(deg));
120
+ const need = d / 2 + BLOOM.labelGap;
121
+ const box = {
122
+ x: x + ux * need - (size.w * (1 - ux)) / 2,
123
+ y: y + uy * need - (size.h * (1 - uy)) / 2,
124
+ w: size.w,
125
+ h: size.h,
126
+ };
127
+ for (let i = 0; i < 40 && rectGap(box, x, y) < need - 0.25; i += 1) {
128
+ box.x += ux;
129
+ box.y += uy;
130
+ }
131
+ return {
132
+ x: Math.round(box.x),
133
+ y: Math.round(box.y),
134
+ w: box.w,
135
+ h: box.h,
136
+ align: Math.abs(ux) < 0.42 ? 'center' : ux > 0 ? 'left' : 'right',
137
+ };
138
+ }
139
+ /** What a place costs a bud's words: nothing when it is inside the field and
140
+ * clear of the chrome, of every other bud at its hot size, of every other
141
+ * bud's words, of the hub, and of every spoke (the tether runs down a spoke
142
+ * when you point along it). */
143
+ export function labelCost(box, room) {
144
+ const inset = BLOOM.inset;
145
+ const f = room.field;
146
+ let c = 0;
147
+ const out = Math.max(0, inset - box.x) +
148
+ Math.max(0, inset - box.y) +
149
+ Math.max(0, box.x + box.w - (f.w - inset)) +
150
+ Math.max(0, box.y + box.h - (f.h - inset));
151
+ if (out > 0)
152
+ c += out + 8;
153
+ for (const r of room.rects ?? []) {
154
+ const ix = Math.min(box.x + box.w, r.x + r.width + BLOOM.clearWord) - Math.max(box.x, r.x - BLOOM.clearWord);
155
+ const iy = Math.min(box.y + box.h, r.y + r.height + BLOOM.clearWord) - Math.max(box.y, r.y - BLOOM.clearWord);
156
+ if (ix > 0 && iy > 0)
157
+ c += Math.min(ix, iy) + 8;
158
+ }
159
+ for (const o of room.discs ?? []) {
160
+ const g = rectGap(box, o.x, o.y) - o.r;
161
+ if (g < BLOOM.clearBud)
162
+ c += BLOOM.clearBud - g + 8;
163
+ }
164
+ for (const sg of room.segs ?? []) {
165
+ const g = segGap(box, sg.a, sg.b);
166
+ if (g < BLOOM.clearSpoke)
167
+ c += BLOOM.clearSpoke - g + 8;
168
+ }
169
+ return c;
170
+ }
171
+ /** Where a bud's words sit: their natural place if it is clear; otherwise the
172
+ * nearest clear place around their own bud, turned 15° at a time either way;
173
+ * otherwise the name alone (`sizes[1]`), the same way round; otherwise the
174
+ * least crowded place, with what it costs, so the caller can turn the arc or
175
+ * let the words give way. */
176
+ export function seatLabel(x, y, d, natural, sizes, room, naturalShort) {
177
+ const c0 = labelCost(natural, room);
178
+ if (c0 === 0)
179
+ return { box: natural, cost: 0, short: !!naturalShort };
180
+ let best = { box: natural, cost: c0, short: !!naturalShort };
181
+ const deg0 = angleOf(natural.x + natural.w / 2 - x, natural.y + natural.h / 2 - y);
182
+ for (let si = 0; si < sizes.length; si += 1) {
183
+ const size = sizes[si];
184
+ if (!size)
185
+ continue;
186
+ for (let k = 0; k <= 23; k += 1) {
187
+ const box = labelToward(x, y, deg0 + turnAt(k), d, size);
188
+ const c = labelCost(box, room);
189
+ if (c === 0)
190
+ return { box, cost: 0, short: si > 0 };
191
+ if (c < best.cost)
192
+ best = { box, cost: c, short: si > 0 };
193
+ }
194
+ }
195
+ return best;
196
+ }
197
+ /** How far a box runs past the field (less the inset) and onto the chrome (6 px round it). */
198
+ export function overflow(box, field, obstacles) {
199
+ const inset = BLOOM.inset;
200
+ let o = 0;
201
+ o += Math.max(0, inset - box.x);
202
+ o += Math.max(0, inset - box.y);
203
+ o += Math.max(0, box.x + box.w - (field.w - inset));
204
+ o += Math.max(0, box.y + box.h - (field.h - inset));
205
+ for (const r of obstacles) {
206
+ const ix = Math.min(box.x + box.w, r.x + r.width + 6) - Math.max(box.x, r.x - 6);
207
+ const iy = Math.min(box.y + box.h, r.y + r.height + 6) - Math.max(box.y, r.y - 6);
208
+ if (ix > 0 && iy > 0)
209
+ o += Math.min(ix, iy) + 8;
210
+ }
211
+ return o;
212
+ }
213
+ /** What a ring's buds cost where they stand: past the field's edge, on the
214
+ * chrome, on whatever discs were already there, on the spoke that led here. */
215
+ export function budsCost(pts, spec, hotR) {
216
+ let cost = 0;
217
+ for (const pt of pts) {
218
+ cost += overflow({ x: pt.x - spec.d / 2, y: pt.y - spec.d / 2, w: spec.d, h: spec.d }, spec.field, spec.obstacles ?? []);
219
+ for (const o of spec.discs ?? []) {
220
+ const g = Math.hypot(pt.x - o.x, pt.y - o.y) - o.r - hotR;
221
+ if (g < 6)
222
+ cost += 14 - g;
223
+ }
224
+ for (const sg of spec.segs ?? []) {
225
+ const g = pointSeg(pt.x, pt.y, sg.a, sg.b) - hotR;
226
+ if (g < 6)
227
+ cost += 14 - g;
228
+ }
229
+ }
230
+ return cost;
231
+ }
232
+ /** n buds centred on `theta`, `step`° apart, in arc order. */
233
+ export function arcPoints(spec, theta, step, n) {
234
+ const pts = [];
235
+ for (let i = 0; i < n; i += 1) {
236
+ const a = theta + (i - (n - 1) / 2) * step;
237
+ const p = polar(spec.cx, spec.cy, spec.r, a);
238
+ pts.push({ x: p.x, y: p.y, a });
239
+ }
240
+ return pts;
241
+ }
242
+ /** The spacing for n buds: the spec's, narrowed so the arc spans at most 220°. */
243
+ export function arcStep(spec, n) {
244
+ return n > 1 ? Math.min(spec.step, 220 / (n - 1)) : spec.step;
245
+ }
246
+ /** The k-th turn tried: 0, +15, −15, +30, −30, … */
247
+ export function turnAt(k) {
248
+ return k === 0 ? 0 : (k % 2 ? 1 : -1) * Math.ceil(k / 2) * 15;
249
+ }
250
+ /** Whether n buds can bloom round (cx, cy) turned no more than `maxTurn` from
251
+ * the way they face. The first ring asks it of every desktop it offers: a
252
+ * desktop's profiles bloom onward (at most square to the spoke), never back
253
+ * toward the hub, and never onto its siblings. */
254
+ export function arcFits(spec, n, maxTurn) {
255
+ const step = arcStep(spec, n);
256
+ const hotR = (spec.d * BLOOM.hot) / 2;
257
+ for (let k = 0; k <= 24; k += 1) {
258
+ if (Math.abs(turnAt(k)) > maxTurn)
259
+ break;
260
+ if (budsCost(arcPoints(spec, spec.prefer + turnAt(k), step, n), spec, hotR) === 0)
261
+ return true;
262
+ }
263
+ return false;
264
+ }
265
+ /** n buds around (cx, cy): the preferred direction first, then turned in 15°
266
+ * steps either way until everything fits — the buds inside the field, off the
267
+ * chrome and clear of whatever was already there (`discs`: the hub, a first
268
+ * ring; `segs`: the spoke that led here), and every bud's words seated clear
269
+ * of all of it (a word moves round its own bud before the arc turns). `extra`
270
+ * is one more bud's words the ring should leave room for — the open desktop's,
271
+ * round its own bud — and the ring turns up to 45° past its first clear turn
272
+ * to keep them; past that they give way instead. `also(pts)` is a caller's own
273
+ * cost for a turn (the first ring's lookahead). The turn is chosen in STRICT
274
+ * order — the buds fit, then the words, then `also`, then `extra` — each only
275
+ * breaking the ties of the one before, so nothing lower down can push a bud
276
+ * off the field. Items come back in reading order (left to right, or top to
277
+ * bottom when the arc faces sideways): item i carries `labels[i]`. */
278
+ export function layoutArc(spec) {
279
+ const n = spec.labels.length;
280
+ const step = arcStep(spec, n);
281
+ const sizes = spec.labels.map((l) => labelSize(l, spec.measure));
282
+ const shorts = spec.labels.map((l) => (l.sub ? labelSize({ name: l.name }, spec.measure) : null));
283
+ const hotR = (spec.d * BLOOM.hot) / 2;
284
+ const rects0 = spec.obstacles ?? [];
285
+ const discs0 = spec.discs ?? [];
286
+ const segs0 = spec.segs ?? [];
287
+ const tried = [];
288
+ for (let k = 0; k <= 24; k += 1) {
289
+ const turn = turnAt(k);
290
+ const theta = spec.prefer + turn;
291
+ const pts = arcPoints(spec, theta, step, n);
292
+ // reading order: along the arc's tangent, turned to run left to right
293
+ // (or top to bottom when the arc faces sideways)
294
+ let tx = -Math.sin(rad(theta));
295
+ let ty = Math.cos(rad(theta));
296
+ if (tx < -0.01 || (Math.abs(tx) <= 0.01 && ty < 0)) {
297
+ tx = -tx;
298
+ ty = -ty;
299
+ }
300
+ pts.sort((u, v) => u.x * tx + u.y * ty - (v.x * tx + v.y * ty));
301
+ const budCost = budsCost(pts, spec, hotR);
302
+ const alsoCost = spec.also ? spec.also(pts) : 0;
303
+ let wordCost = 0;
304
+ // this ring's own buds and spokes join what was already there
305
+ const ringDiscs = pts.map((pt) => ({ x: pt.x, y: pt.y, r: hotR }));
306
+ const segs = segs0.concat(pts.map((pt) => ({ a: { x: spec.cx, y: spec.cy }, b: { x: pt.x, y: pt.y } })));
307
+ // Words start where they read best: on an arc that faces up or down the
308
+ // two outer buds carry theirs beside them, and a word over a middle bud
309
+ // is held to the chord between neighbours. Then each is seated.
310
+ const vertical = Math.abs(Math.sin(rad(theta))) > 0.7;
311
+ const chord = 2 * spec.r * Math.sin(rad(step / 2)) - 6;
312
+ const seated = [];
313
+ const items = pts.map((pt, j) => {
314
+ const centred = Math.abs(Math.cos(rad(pt.a))) < 0.42;
315
+ const force = vertical && n >= 2 && centred ? (j === 0 ? 'left' : j === n - 1 ? 'right' : null) : null;
316
+ const full = sizes[j];
317
+ let size = full;
318
+ if (centred && !force && n >= 2)
319
+ size = { w: Math.min(size.w, chord), h: size.h };
320
+ const natural = labelBox(pt.x, pt.y, pt.a, spec.d, size, force);
321
+ const seat = seatLabel(pt.x, pt.y, spec.d, natural, [full, shorts[j]], {
322
+ field: spec.field,
323
+ rects: rects0.concat(seated),
324
+ discs: discs0.concat(ringDiscs.filter((_, m) => m !== j)),
325
+ segs,
326
+ });
327
+ wordCost += seat.cost;
328
+ seated.push({ x: seat.box.x, y: seat.box.y, width: seat.box.w, height: seat.box.h });
329
+ return { x: pt.x, y: pt.y, a: pt.a, label: seat.box, short: seat.short };
330
+ });
331
+ let kept = true;
332
+ const ex = spec.extra;
333
+ if (ex) {
334
+ const exSeat = seatLabel(ex.x, ex.y, ex.d, ex.natural, ex.sizes, {
335
+ field: spec.field,
336
+ rects: rects0.concat(seated),
337
+ discs: discs0.filter((o) => o.x !== ex.x || o.y !== ex.y).concat(ringDiscs),
338
+ segs,
339
+ }, ex.short);
340
+ kept = exSeat.cost === 0;
341
+ }
342
+ const here = {
343
+ theta,
344
+ items,
345
+ step,
346
+ turn,
347
+ kept,
348
+ bud: budCost,
349
+ word: wordCost,
350
+ also: alsoCost,
351
+ cost: budCost + wordCost + alsoCost,
352
+ };
353
+ // the first turn where everything fits, keeping the extra words, is the one
354
+ const clearBefore = tried.some((t) => t.cost === 0);
355
+ if (here.cost === 0 && kept && !clearBefore)
356
+ return here;
357
+ tried.push(here);
358
+ }
359
+ // otherwise relax from the bottom up: the extra words, then `also`, then
360
+ // the words — never the buds
361
+ const keepExtra = (list) => {
362
+ const first = list[0];
363
+ return list.find((t) => t.kept && angDiff(t.turn, first.turn) <= 45) ?? first;
364
+ };
365
+ const least = (list, key) => list.reduce((a, b) => (key(b) < key(a) - 0.5 ? b : a));
366
+ const clear = tried.filter((t) => t.cost === 0);
367
+ if (clear.length)
368
+ return keepExtra(clear);
369
+ const fits = tried.filter((t) => t.bud === 0 && t.word === 0);
370
+ if (fits.length) {
371
+ const lo = least(fits, (t) => t.also).also;
372
+ return keepExtra(fits.filter((t) => t.also <= lo + 0.5));
373
+ }
374
+ const budsFit = tried.filter((t) => t.bud === 0);
375
+ if (budsFit.length)
376
+ return least(budsFit, (t) => t.word + t.also);
377
+ return least(tried, (t) => t.bud * 1000 + t.word + t.also);
378
+ }
379
+ //# sourceMappingURL=geometry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geometry.js","sourceRoot":"","sources":["../../../../src/views/swarm/bloom/geometry.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,2EAA2E;AAC3E,2EAA2E;AAC3E,4EAA4E;AAC5E,2DAA2D;AAE3D,OAAO,EAAE,KAAK,EAAE,UAAU,EAAyB,MAAM,gBAAgB,CAAC;AAsE1E,SAAS,GAAG,CAAC,GAAW;IACtB,OAAO,CAAC,GAAG,GAAG,IAAI,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC;AAC/B,CAAC;AAED,MAAM,UAAU,KAAK,CAAC,EAAU,EAAE,EAAU,EAAE,CAAS,EAAE,GAAW;IAClE,OAAO,EAAE,CAAC,EAAE,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,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,GAAG,CAAC,CAAC,CAAC;IAC3D,CAAC;IACD,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC;IACjD,IAAI,OAAO,CAAC,MAAM;QAAE,OAAO,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC;IAClE,OAAO,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,GAAG,IAAI,GAAG,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC;AAC7D,CAAC"}
@@ -0,0 +1,8 @@
1
+ export * from './constants.js';
2
+ export * from './geometry.js';
3
+ export { deviceWord } from './menu.js';
4
+ export * from './targeting.js';
5
+ export * from './words.js';
6
+ export * from './model.js';
7
+ export * from './scenarios.js';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/views/swarm/bloom/index.ts"],"names":[],"mappings":"AAGA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAG9B,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,13 @@
1
+ // The spawn bloom (SB): hold empty ground, reach a desktop, let go on a
2
+ // profile. Pure logic — the numbers, the geometry, the menu, targeting, the
3
+ // words and the machine — for AgentSwarm and the list view to render.
4
+ export * from './constants.js';
5
+ export * from './geometry.js';
6
+ // The menu's own word only: its reading of the tree is the SDK toolkit's (`menuOf`, `blooms`, …), which a host imports
7
+ // from `@vibefield/puppeteer-view-sdk/toolkit` (M54: the views index forwards no SDK name).
8
+ export { deviceWord } from './menu.js';
9
+ export * from './targeting.js';
10
+ export * from './words.js';
11
+ export * from './model.js';
12
+ export * from './scenarios.js';
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/views/swarm/bloom/index.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,4EAA4E;AAC5E,sEAAsE;AACtE,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,uHAAuH;AACvH,4FAA4F;AAC5F,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { MonitorSpawnDevice } from '@vibefield/puppeteer-view-sdk';
2
+ export { blooms, budSub, defaultProfile, glyphName, hereWord, initials, menuOf, profileWord, ready, selfDevice, type BloomDeviceItem, type BloomGlyphName, type BloomHub, type BloomInstantMenu, type BloomMenu, type BloomMenuItem, type BloomOpenMenu, type BloomProfileItem, } from '@vibefield/puppeteer-view-sdk/toolkit';
3
+ /** A desktop's name, as its bud and the words say it. */
4
+ export declare function deviceWord(device: MonitorSpawnDevice): string;
5
+ //# sourceMappingURL=menu.d.ts.map