@verticopolis/components 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 (791) hide show
  1. package/ASSETS-LICENSE.md +49 -0
  2. package/LICENSE +21 -0
  3. package/README.md +121 -2
  4. package/lib/audio/Audio.d.ts +110 -0
  5. package/lib/audio/Audio.js +199 -0
  6. package/lib/audio/Audio.js.map +1 -0
  7. package/lib/audio/ToneAudioEngine.d.ts +125 -0
  8. package/lib/audio/ToneAudioEngine.js +452 -0
  9. package/lib/audio/ToneAudioEngine.js.map +1 -0
  10. package/lib/audio/audioAssets.d.ts +25 -0
  11. package/lib/audio/audioAssets.js +28 -0
  12. package/lib/audio/audioAssets.js.map +1 -0
  13. package/lib/audio/awayWatch.d.ts +17 -0
  14. package/lib/audio/awayWatch.js +33 -0
  15. package/lib/audio/awayWatch.js.map +1 -0
  16. package/lib/audio/firstCueLatch.d.ts +18 -0
  17. package/lib/audio/firstCueLatch.js +34 -0
  18. package/lib/audio/firstCueLatch.js.map +1 -0
  19. package/lib/audio/lightEnvelope.d.ts +64 -0
  20. package/lib/audio/lightEnvelope.js +124 -0
  21. package/lib/audio/lightEnvelope.js.map +1 -0
  22. package/lib/audio/lightSynth.d.ts +125 -0
  23. package/lib/audio/lightSynth.js +203 -0
  24. package/lib/audio/lightSynth.js.map +1 -0
  25. package/lib/audio/toneContext.d.ts +30 -0
  26. package/lib/audio/toneContext.js +79 -0
  27. package/lib/audio/toneContext.js.map +1 -0
  28. package/lib/audio/toneCrowd.d.ts +62 -0
  29. package/lib/audio/toneCrowd.js +429 -0
  30. package/lib/audio/toneCrowd.js.map +1 -0
  31. package/lib/audio/toneCrowdData.d.ts +144 -0
  32. package/lib/audio/toneCrowdData.js +317 -0
  33. package/lib/audio/toneCrowdData.js.map +1 -0
  34. package/lib/audio/toneCrowdPrograms.d.ts +71 -0
  35. package/lib/audio/toneCrowdPrograms.js +273 -0
  36. package/lib/audio/toneCrowdPrograms.js.map +1 -0
  37. package/lib/audio/toneCrowdVoices.d.ts +49 -0
  38. package/lib/audio/toneCrowdVoices.js +212 -0
  39. package/lib/audio/toneCrowdVoices.js.map +1 -0
  40. package/lib/audio/toneMusicVoices.d.ts +11 -0
  41. package/lib/audio/toneMusicVoices.js +31 -0
  42. package/lib/audio/toneMusicVoices.js.map +1 -0
  43. package/lib/audio/tonePercussion.d.ts +45 -0
  44. package/lib/audio/tonePercussion.js +97 -0
  45. package/lib/audio/tonePercussion.js.map +1 -0
  46. package/lib/audio/toneRain.d.ts +23 -0
  47. package/lib/audio/toneRain.js +39 -0
  48. package/lib/audio/toneRain.js.map +1 -0
  49. package/lib/audio/toneRecordingMock.d.ts +89 -0
  50. package/lib/audio/toneRecordingMock.js +145 -0
  51. package/lib/audio/toneRecordingMock.js.map +1 -0
  52. package/lib/audio/toneRoomTone.d.ts +11 -0
  53. package/lib/audio/toneRoomTone.js +27 -0
  54. package/lib/audio/toneRoomTone.js.map +1 -0
  55. package/lib/audio/toneScenes.d.ts +57 -0
  56. package/lib/audio/toneScenes.js +208 -0
  57. package/lib/audio/toneScenes.js.map +1 -0
  58. package/lib/audio/toneTracks.d.ts +50 -0
  59. package/lib/audio/toneTracks.js +356 -0
  60. package/lib/audio/toneTracks.js.map +1 -0
  61. package/lib/audio/toneVoices.d.ts +57 -0
  62. package/lib/audio/toneVoices.js +208 -0
  63. package/lib/audio/toneVoices.js.map +1 -0
  64. package/lib/catalog/catalogTypes.d.ts +428 -0
  65. package/lib/catalog/catalogTypes.js +102 -0
  66. package/lib/catalog/catalogTypes.js.map +1 -0
  67. package/lib/catalog/skyBridgeTypes.d.ts +25 -0
  68. package/lib/catalog/skyBridgeTypes.js +7 -0
  69. package/lib/catalog/skyBridgeTypes.js.map +1 -0
  70. package/lib/catalog/starDutyTypes.d.ts +22 -0
  71. package/lib/catalog/starDutyTypes.js +7 -0
  72. package/lib/catalog/starDutyTypes.js.map +1 -0
  73. package/lib/catalog/towerCatalog.d.ts +32 -0
  74. package/lib/catalog/towerCatalog.js +44 -0
  75. package/lib/catalog/towerCatalog.js.map +1 -0
  76. package/lib/engineBinding/binding.d.ts +36 -0
  77. package/lib/engineBinding/binding.js +90 -0
  78. package/lib/engineBinding/binding.js.map +1 -0
  79. package/lib/engineBinding/catalog.d.ts +24 -0
  80. package/lib/engineBinding/catalog.js +267 -0
  81. package/lib/engineBinding/catalog.js.map +1 -0
  82. package/lib/engineBinding/engine.d.ts +866 -0
  83. package/lib/engineBinding/exportTiers.d.ts +289 -0
  84. package/lib/engineBinding/exportTiers.js +283 -0
  85. package/lib/engineBinding/exportTiers.js.map +1 -0
  86. package/lib/engineBinding/toolingMethods.d.ts +12 -0
  87. package/lib/engineBinding/toolingMethods.js +20 -0
  88. package/lib/engineBinding/toolingMethods.js.map +1 -0
  89. package/lib/events/gameplayCatalog.d.ts +57 -0
  90. package/lib/events/gameplayCatalog.js +214 -0
  91. package/lib/events/gameplayCatalog.js.map +1 -0
  92. package/lib/events/gameplayEventRules.d.ts +4 -0
  93. package/lib/events/gameplayEventRules.js +32 -0
  94. package/lib/events/gameplayEventRules.js.map +1 -0
  95. package/lib/events/gameplayEvents.d.ts +284 -0
  96. package/lib/presentation/clockText.d.ts +28 -0
  97. package/lib/presentation/clockText.js +38 -0
  98. package/lib/presentation/clockText.js.map +1 -0
  99. package/lib/presentation/facilityPresentation.d.ts +20 -0
  100. package/lib/presentation/facilityPresentation.js +164 -0
  101. package/lib/presentation/facilityPresentation.js.map +1 -0
  102. package/lib/presentation/statsCopy.d.ts +20 -0
  103. package/lib/presentation/statsCopy.js +37 -0
  104. package/lib/presentation/statsCopy.js.map +1 -0
  105. package/lib/presentation/traffic.d.ts +75 -0
  106. package/lib/presentation/traffic.js +79 -0
  107. package/lib/presentation/traffic.js.map +1 -0
  108. package/lib/presentation/viewKinds.d.ts +33 -0
  109. package/lib/presentation/viewKinds.js +88 -0
  110. package/lib/presentation/viewKinds.js.map +1 -0
  111. package/lib/presentation/viewWorld.d.ts +29 -0
  112. package/lib/presentation/viewWorld.js +31 -0
  113. package/lib/presentation/viewWorld.js.map +1 -0
  114. package/lib/render/atlas/archive.d.ts +78 -0
  115. package/lib/render/atlas/archive.js +427 -0
  116. package/lib/render/atlas/archive.js.map +1 -0
  117. package/lib/render/atlas/bake.d.ts +132 -0
  118. package/lib/render/atlas/bake.js +331 -0
  119. package/lib/render/atlas/bake.js.map +1 -0
  120. package/lib/render/atlas/bakeAdditions.d.ts +24 -0
  121. package/lib/render/atlas/bakeAdditions.js +46 -0
  122. package/lib/render/atlas/bakeAdditions.js.map +1 -0
  123. package/lib/render/atlas/browserEntry.d.ts +12 -0
  124. package/lib/render/atlas/browserEntry.js +222 -0
  125. package/lib/render/atlas/browserEntry.js.map +1 -0
  126. package/lib/render/atlas/catalog.d.ts +118 -0
  127. package/lib/render/atlas/catalog.js +253 -0
  128. package/lib/render/atlas/catalog.js.map +1 -0
  129. package/lib/render/atlas/catalogExtras.d.ts +45 -0
  130. package/lib/render/atlas/catalogExtras.js +217 -0
  131. package/lib/render/atlas/catalogExtras.js.map +1 -0
  132. package/lib/render/atlas/compose.d.ts +30 -0
  133. package/lib/render/atlas/compose.js +125 -0
  134. package/lib/render/atlas/compose.js.map +1 -0
  135. package/lib/render/atlas/cycles.d.ts +25 -0
  136. package/lib/render/atlas/cycles.js +41 -0
  137. package/lib/render/atlas/cycles.js.map +1 -0
  138. package/lib/render/atlas/lookup.d.ts +65 -0
  139. package/lib/render/atlas/lookup.js +83 -0
  140. package/lib/render/atlas/lookup.js.map +1 -0
  141. package/lib/render/atlas/pack.d.ts +23 -0
  142. package/lib/render/atlas/pack.js +50 -0
  143. package/lib/render/atlas/pack.js.map +1 -0
  144. package/lib/render/atlas/paint.d.ts +120 -0
  145. package/lib/render/atlas/paint.js +154 -0
  146. package/lib/render/atlas/paint.js.map +1 -0
  147. package/lib/render/atlas/pixels.d.ts +46 -0
  148. package/lib/render/atlas/pixels.js +158 -0
  149. package/lib/render/atlas/pixels.js.map +1 -0
  150. package/lib/render/atlas/png.d.ts +3 -0
  151. package/lib/render/atlas/png.js +102 -0
  152. package/lib/render/atlas/png.js.map +1 -0
  153. package/lib/render/atlas/raster.d.ts +34 -0
  154. package/lib/render/atlas/raster.js +114 -0
  155. package/lib/render/atlas/raster.js.map +1 -0
  156. package/lib/render/atlas/recyclingFill.d.ts +5 -0
  157. package/lib/render/atlas/recyclingFill.js +65 -0
  158. package/lib/render/atlas/recyclingFill.js.map +1 -0
  159. package/lib/render/atlas/samples.d.ts +24 -0
  160. package/lib/render/atlas/samples.js +75 -0
  161. package/lib/render/atlas/samples.js.map +1 -0
  162. package/lib/render/atlas/scenery.d.ts +230 -0
  163. package/lib/render/atlas/scenery.js +242 -0
  164. package/lib/render/atlas/scenery.js.map +1 -0
  165. package/lib/render/atlas/schema.d.ts +189 -0
  166. package/lib/render/atlas/schema.js +31 -0
  167. package/lib/render/atlas/schema.js.map +1 -0
  168. package/lib/render/atlas/shellMarks.d.ts +16 -0
  169. package/lib/render/atlas/shellMarks.js +72 -0
  170. package/lib/render/atlas/shellMarks.js.map +1 -0
  171. package/lib/render/atlas/store.d.ts +75 -0
  172. package/lib/render/atlas/store.js +127 -0
  173. package/lib/render/atlas/store.js.map +1 -0
  174. package/lib/render/atlas/verify.d.ts +43 -0
  175. package/lib/render/atlas/verify.js +87 -0
  176. package/lib/render/atlas/verify.js.map +1 -0
  177. package/lib/render/atlas/verifyExtras.d.ts +19 -0
  178. package/lib/render/atlas/verifyExtras.js +310 -0
  179. package/lib/render/atlas/verifyExtras.js.map +1 -0
  180. package/lib/render/cameraBounds.d.ts +71 -0
  181. package/lib/render/cameraBounds.js +107 -0
  182. package/lib/render/cameraBounds.js.map +1 -0
  183. package/lib/render/carIndicator.d.ts +41 -0
  184. package/lib/render/carIndicator.js +45 -0
  185. package/lib/render/carIndicator.js.map +1 -0
  186. package/lib/render/carMotion.d.ts +33 -0
  187. package/lib/render/carMotion.js +42 -0
  188. package/lib/render/carMotion.js.map +1 -0
  189. package/lib/render/catalogScale.d.ts +40 -0
  190. package/lib/render/catalogScale.js +33 -0
  191. package/lib/render/catalogScale.js.map +1 -0
  192. package/lib/render/climbPath.d.ts +59 -0
  193. package/lib/render/climbPath.js +115 -0
  194. package/lib/render/climbPath.js.map +1 -0
  195. package/lib/render/depthPlanes.d.ts +55 -0
  196. package/lib/render/depthPlanes.js +58 -0
  197. package/lib/render/depthPlanes.js.map +1 -0
  198. package/lib/render/excalibur/TowerEngine.d.ts +348 -0
  199. package/lib/render/excalibur/TowerEngine.js +415 -0
  200. package/lib/render/excalibur/TowerEngine.js.map +1 -0
  201. package/lib/render/excalibur/cabGraphics.d.ts +75 -0
  202. package/lib/render/excalibur/cabGraphics.js +108 -0
  203. package/lib/render/excalibur/cabGraphics.js.map +1 -0
  204. package/lib/render/excalibur/cabParts.d.ts +32 -0
  205. package/lib/render/excalibur/cabParts.js +79 -0
  206. package/lib/render/excalibur/cabParts.js.map +1 -0
  207. package/lib/render/excalibur/cabRiders.d.ts +72 -0
  208. package/lib/render/excalibur/cabRiders.js +176 -0
  209. package/lib/render/excalibur/cabRiders.js.map +1 -0
  210. package/lib/render/excalibur/crowdCull.d.ts +34 -0
  211. package/lib/render/excalibur/crowdCull.js +72 -0
  212. package/lib/render/excalibur/crowdCull.js.map +1 -0
  213. package/lib/render/excalibur/crowdFigure.d.ts +42 -0
  214. package/lib/render/excalibur/crowdFigure.js +99 -0
  215. package/lib/render/excalibur/crowdFigure.js.map +1 -0
  216. package/lib/render/excalibur/crowdLook.d.ts +137 -0
  217. package/lib/render/excalibur/crowdLook.js +186 -0
  218. package/lib/render/excalibur/crowdLook.js.map +1 -0
  219. package/lib/render/excalibur/frameHold.d.ts +23 -0
  220. package/lib/render/excalibur/frameHold.js +30 -0
  221. package/lib/render/excalibur/frameHold.js.map +1 -0
  222. package/lib/render/excalibur/guardPosition.d.ts +17 -0
  223. package/lib/render/excalibur/guardPosition.js +37 -0
  224. package/lib/render/excalibur/guardPosition.js.map +1 -0
  225. package/lib/render/excalibur/keyboardHost.d.ts +15 -0
  226. package/lib/render/excalibur/keyboardHost.js +22 -0
  227. package/lib/render/excalibur/keyboardHost.js.map +1 -0
  228. package/lib/render/excalibur/longPress.d.ts +16 -0
  229. package/lib/render/excalibur/longPress.js +71 -0
  230. package/lib/render/excalibur/longPress.js.map +1 -0
  231. package/lib/render/excalibur/peopleGfx.d.ts +16 -0
  232. package/lib/render/excalibur/peopleGfx.js +46 -0
  233. package/lib/render/excalibur/peopleGfx.js.map +1 -0
  234. package/lib/render/excalibur/peopleWindow.d.ts +35 -0
  235. package/lib/render/excalibur/peopleWindow.js +38 -0
  236. package/lib/render/excalibur/peopleWindow.js.map +1 -0
  237. package/lib/render/excalibur/personFocus.d.ts +36 -0
  238. package/lib/render/excalibur/personFocus.js +169 -0
  239. package/lib/render/excalibur/personFocus.js.map +1 -0
  240. package/lib/render/excalibur/pointerButtonGuard.d.ts +35 -0
  241. package/lib/render/excalibur/pointerButtonGuard.js +86 -0
  242. package/lib/render/excalibur/pointerButtonGuard.js.map +1 -0
  243. package/lib/render/excalibur/pressLifecycle.d.ts +26 -0
  244. package/lib/render/excalibur/pressLifecycle.js +66 -0
  245. package/lib/render/excalibur/pressLifecycle.js.map +1 -0
  246. package/lib/render/excalibur/rainShelter.d.ts +16 -0
  247. package/lib/render/excalibur/rainShelter.js +94 -0
  248. package/lib/render/excalibur/rainShelter.js.map +1 -0
  249. package/lib/render/excalibur/roomSignature.d.ts +30 -0
  250. package/lib/render/excalibur/roomSignature.js +49 -0
  251. package/lib/render/excalibur/roomSignature.js.map +1 -0
  252. package/lib/render/excalibur/sceneBake.d.ts +9 -0
  253. package/lib/render/excalibur/sceneBake.js +12 -0
  254. package/lib/render/excalibur/sceneBake.js.map +1 -0
  255. package/lib/render/excalibur/thiefSpan.d.ts +18 -0
  256. package/lib/render/excalibur/thiefSpan.js +51 -0
  257. package/lib/render/excalibur/thiefSpan.js.map +1 -0
  258. package/lib/render/excalibur/towerBridgeTiles.d.ts +30 -0
  259. package/lib/render/excalibur/towerBridgeTiles.js +43 -0
  260. package/lib/render/excalibur/towerBridgeTiles.js.map +1 -0
  261. package/lib/render/excalibur/towerCrowd.d.ts +73 -0
  262. package/lib/render/excalibur/towerCrowd.js +464 -0
  263. package/lib/render/excalibur/towerCrowd.js.map +1 -0
  264. package/lib/render/excalibur/towerCrowdLayout.d.ts +40 -0
  265. package/lib/render/excalibur/towerCrowdLayout.js +77 -0
  266. package/lib/render/excalibur/towerCrowdLayout.js.map +1 -0
  267. package/lib/render/excalibur/towerFireResponse.d.ts +25 -0
  268. package/lib/render/excalibur/towerFireResponse.js +89 -0
  269. package/lib/render/excalibur/towerFireResponse.js.map +1 -0
  270. package/lib/render/excalibur/towerFrame.d.ts +8 -0
  271. package/lib/render/excalibur/towerFrame.js +57 -0
  272. package/lib/render/excalibur/towerFrame.js.map +1 -0
  273. package/lib/render/excalibur/towerGhostLabel.d.ts +9 -0
  274. package/lib/render/excalibur/towerGhostLabel.js +37 -0
  275. package/lib/render/excalibur/towerGhostLabel.js.map +1 -0
  276. package/lib/render/excalibur/towerHallDoors.d.ts +42 -0
  277. package/lib/render/excalibur/towerHallDoors.js +129 -0
  278. package/lib/render/excalibur/towerHallDoors.js.map +1 -0
  279. package/lib/render/excalibur/towerHaloRings.d.ts +34 -0
  280. package/lib/render/excalibur/towerHaloRings.js +45 -0
  281. package/lib/render/excalibur/towerHaloRings.js.map +1 -0
  282. package/lib/render/excalibur/towerInputCamera.d.ts +90 -0
  283. package/lib/render/excalibur/towerInputCamera.js +480 -0
  284. package/lib/render/excalibur/towerInputCamera.js.map +1 -0
  285. package/lib/render/excalibur/towerMetro.d.ts +31 -0
  286. package/lib/render/excalibur/towerMetro.js +115 -0
  287. package/lib/render/excalibur/towerMetro.js.map +1 -0
  288. package/lib/render/excalibur/towerNoiseReach.d.ts +32 -0
  289. package/lib/render/excalibur/towerNoiseReach.js +75 -0
  290. package/lib/render/excalibur/towerNoiseReach.js.map +1 -0
  291. package/lib/render/excalibur/towerOverlay.d.ts +59 -0
  292. package/lib/render/excalibur/towerOverlay.js +453 -0
  293. package/lib/render/excalibur/towerOverlay.js.map +1 -0
  294. package/lib/render/excalibur/towerReconcile.d.ts +17 -0
  295. package/lib/render/excalibur/towerReconcile.js +404 -0
  296. package/lib/render/excalibur/towerReconcile.js.map +1 -0
  297. package/lib/render/excalibur/towerRegions.d.ts +61 -0
  298. package/lib/render/excalibur/towerRegions.js +193 -0
  299. package/lib/render/excalibur/towerRegions.js.map +1 -0
  300. package/lib/render/excalibur/towerScene.d.ts +66 -0
  301. package/lib/render/excalibur/towerScene.js +443 -0
  302. package/lib/render/excalibur/towerScene.js.map +1 -0
  303. package/lib/render/excalibur/towerScenery.d.ts +12 -0
  304. package/lib/render/excalibur/towerScenery.js +299 -0
  305. package/lib/render/excalibur/towerScenery.js.map +1 -0
  306. package/lib/render/excalibur/towerSceneryDraw.d.ts +86 -0
  307. package/lib/render/excalibur/towerSceneryDraw.js +288 -0
  308. package/lib/render/excalibur/towerSceneryDraw.js.map +1 -0
  309. package/lib/render/excalibur/towerShaftNumbers.d.ts +23 -0
  310. package/lib/render/excalibur/towerShaftNumbers.js +90 -0
  311. package/lib/render/excalibur/towerShaftNumbers.js.map +1 -0
  312. package/lib/render/excalibur/towerStructTiles.d.ts +56 -0
  313. package/lib/render/excalibur/towerStructTiles.js +238 -0
  314. package/lib/render/excalibur/towerStructTiles.js.map +1 -0
  315. package/lib/render/excalibur/towerSyncSchedule.d.ts +84 -0
  316. package/lib/render/excalibur/towerSyncSchedule.js +137 -0
  317. package/lib/render/excalibur/towerSyncSchedule.js.map +1 -0
  318. package/lib/render/excalibur/towerWalkerBuild.d.ts +30 -0
  319. package/lib/render/excalibur/towerWalkerBuild.js +126 -0
  320. package/lib/render/excalibur/towerWalkerBuild.js.map +1 -0
  321. package/lib/render/excalibur/trafficSpotlight.d.ts +29 -0
  322. package/lib/render/excalibur/trafficSpotlight.js +64 -0
  323. package/lib/render/excalibur/trafficSpotlight.js.map +1 -0
  324. package/lib/render/facadeGeometry.d.ts +50 -0
  325. package/lib/render/facadeGeometry.js +79 -0
  326. package/lib/render/facadeGeometry.js.map +1 -0
  327. package/lib/render/groundEntrances.d.ts +44 -0
  328. package/lib/render/groundEntrances.js +118 -0
  329. package/lib/render/groundEntrances.js.map +1 -0
  330. package/lib/render/lateNight.d.ts +14 -0
  331. package/lib/render/lateNight.js +18 -0
  332. package/lib/render/lateNight.js.map +1 -0
  333. package/lib/render/lobbyHalls.d.ts +44 -0
  334. package/lib/render/lobbyHalls.js +63 -0
  335. package/lib/render/lobbyHalls.js.map +1 -0
  336. package/lib/render/metroTrainSchedule.d.ts +20 -0
  337. package/lib/render/metroTrainSchedule.js +65 -0
  338. package/lib/render/metroTrainSchedule.js.map +1 -0
  339. package/lib/render/overviewMap/drawList.d.ts +67 -0
  340. package/lib/render/overviewMap/drawList.js +103 -0
  341. package/lib/render/overviewMap/drawList.js.map +1 -0
  342. package/lib/render/overviewMap/extent.d.ts +70 -0
  343. package/lib/render/overviewMap/extent.js +155 -0
  344. package/lib/render/overviewMap/extent.js.map +1 -0
  345. package/lib/render/overviewMap/floorSpans.d.ts +27 -0
  346. package/lib/render/overviewMap/floorSpans.js +32 -0
  347. package/lib/render/overviewMap/floorSpans.js.map +1 -0
  348. package/lib/render/overviewMap/gaps.d.ts +48 -0
  349. package/lib/render/overviewMap/gaps.js +148 -0
  350. package/lib/render/overviewMap/gaps.js.map +1 -0
  351. package/lib/render/overviewMap/geometry.d.ts +139 -0
  352. package/lib/render/overviewMap/geometry.js +245 -0
  353. package/lib/render/overviewMap/geometry.js.map +1 -0
  354. package/lib/render/overviewMap/heatView.d.ts +91 -0
  355. package/lib/render/overviewMap/heatView.js +143 -0
  356. package/lib/render/overviewMap/heatView.js.map +1 -0
  357. package/lib/render/overviewMap/hotelView.d.ts +82 -0
  358. package/lib/render/overviewMap/hotelView.js +136 -0
  359. package/lib/render/overviewMap/hotelView.js.map +1 -0
  360. package/lib/render/overviewMap/model.d.ts +97 -0
  361. package/lib/render/overviewMap/model.js +116 -0
  362. package/lib/render/overviewMap/model.js.map +1 -0
  363. package/lib/render/overviewMap/paint.d.ts +63 -0
  364. package/lib/render/overviewMap/paint.js +168 -0
  365. package/lib/render/overviewMap/paint.js.map +1 -0
  366. package/lib/render/overviewMap/style.d.ts +46 -0
  367. package/lib/render/overviewMap/style.js +117 -0
  368. package/lib/render/overviewMap/style.js.map +1 -0
  369. package/lib/render/overviewMap/tierView.d.ts +103 -0
  370. package/lib/render/overviewMap/tierView.js +209 -0
  371. package/lib/render/overviewMap/tierView.js.map +1 -0
  372. package/lib/render/overviewMap/viewMark.d.ts +69 -0
  373. package/lib/render/overviewMap/viewMark.js +103 -0
  374. package/lib/render/overviewMap/viewMark.js.map +1 -0
  375. package/lib/render/overviewMap/views.d.ts +24 -0
  376. package/lib/render/overviewMap/views.js +29 -0
  377. package/lib/render/overviewMap/views.js.map +1 -0
  378. package/lib/render/pinchTracker.d.ts +91 -0
  379. package/lib/render/pinchTracker.js +145 -0
  380. package/lib/render/pinchTracker.js.map +1 -0
  381. package/lib/render/pixelSprites/amusements.d.ts +32 -0
  382. package/lib/render/pixelSprites/amusements.js +243 -0
  383. package/lib/render/pixelSprites/amusements.js.map +1 -0
  384. package/lib/render/pixelSprites/artScale.d.ts +97 -0
  385. package/lib/render/pixelSprites/artScale.js +151 -0
  386. package/lib/render/pixelSprites/artScale.js.map +1 -0
  387. package/lib/render/pixelSprites/boutique.d.ts +30 -0
  388. package/lib/render/pixelSprites/boutique.js +244 -0
  389. package/lib/render/pixelSprites/boutique.js.map +1 -0
  390. package/lib/render/pixelSprites/clinic.d.ts +30 -0
  391. package/lib/render/pixelSprites/clinic.js +184 -0
  392. package/lib/render/pixelSprites/clinic.js.map +1 -0
  393. package/lib/render/pixelSprites/common.d.ts +185 -0
  394. package/lib/render/pixelSprites/common.js +449 -0
  395. package/lib/render/pixelSprites/common.js.map +1 -0
  396. package/lib/render/pixelSprites/daycare.d.ts +3 -0
  397. package/lib/render/pixelSprites/daycare.js +99 -0
  398. package/lib/render/pixelSprites/daycare.js.map +1 -0
  399. package/lib/render/pixelSprites/dollhouse.d.ts +45 -0
  400. package/lib/render/pixelSprites/dollhouse.js +110 -0
  401. package/lib/render/pixelSprites/dollhouse.js.map +1 -0
  402. package/lib/render/pixelSprites/fitness.d.ts +30 -0
  403. package/lib/render/pixelSprites/fitness.js +176 -0
  404. package/lib/render/pixelSprites/fitness.js.map +1 -0
  405. package/lib/render/pixelSprites/food.d.ts +27 -0
  406. package/lib/render/pixelSprites/food.interiors.d.ts +38 -0
  407. package/lib/render/pixelSprites/food.interiors.js +516 -0
  408. package/lib/render/pixelSprites/food.interiors.js.map +1 -0
  409. package/lib/render/pixelSprites/food.js +36 -0
  410. package/lib/render/pixelSprites/food.js.map +1 -0
  411. package/lib/render/pixelSprites/food.kit.d.ts +50 -0
  412. package/lib/render/pixelSprites/food.kit.js +140 -0
  413. package/lib/render/pixelSprites/food.kit.js.map +1 -0
  414. package/lib/render/pixelSprites/food.looks.d.ts +45 -0
  415. package/lib/render/pixelSprites/food.looks.js +56 -0
  416. package/lib/render/pixelSprites/food.looks.js.map +1 -0
  417. package/lib/render/pixelSprites/layers.d.ts +49 -0
  418. package/lib/render/pixelSprites/layers.js +61 -0
  419. package/lib/render/pixelSprites/layers.js.map +1 -0
  420. package/lib/render/pixelSprites/nightclub.d.ts +3 -0
  421. package/lib/render/pixelSprites/nightclub.js +108 -0
  422. package/lib/render/pixelSprites/nightclub.js.map +1 -0
  423. package/lib/render/pixelSprites/people.d.ts +168 -0
  424. package/lib/render/pixelSprites/people.js +431 -0
  425. package/lib/render/pixelSprites/people.js.map +1 -0
  426. package/lib/render/pixelSprites/residential.d.ts +5 -0
  427. package/lib/render/pixelSprites/residential.js +506 -0
  428. package/lib/render/pixelSprites/residential.js.map +1 -0
  429. package/lib/render/pixelSprites/residential.looks.d.ts +40 -0
  430. package/lib/render/pixelSprites/residential.looks.js +43 -0
  431. package/lib/render/pixelSprites/residential.looks.js.map +1 -0
  432. package/lib/render/pixelSprites/residential.roaches.d.ts +38 -0
  433. package/lib/render/pixelSprites/residential.roaches.js +88 -0
  434. package/lib/render/pixelSprites/residential.roaches.js.map +1 -0
  435. package/lib/render/pixelSprites/residentialRentalSprites.d.ts +11 -0
  436. package/lib/render/pixelSprites/residentialRentalSprites.js +19 -0
  437. package/lib/render/pixelSprites/residentialRentalSprites.js.map +1 -0
  438. package/lib/render/pixelSprites/shop.d.ts +14 -0
  439. package/lib/render/pixelSprites/shop.interiors.d.ts +50 -0
  440. package/lib/render/pixelSprites/shop.interiors.js +382 -0
  441. package/lib/render/pixelSprites/shop.interiors.js.map +1 -0
  442. package/lib/render/pixelSprites/shop.js +72 -0
  443. package/lib/render/pixelSprites/shop.js.map +1 -0
  444. package/lib/render/pixelSprites/shop.looks.d.ts +17 -0
  445. package/lib/render/pixelSprites/shop.looks.js +24 -0
  446. package/lib/render/pixelSprites/shop.looks.js.map +1 -0
  447. package/lib/render/pixelSprites/skyBar.d.ts +11 -0
  448. package/lib/render/pixelSprites/skyBar.js +125 -0
  449. package/lib/render/pixelSprites/skyBar.js.map +1 -0
  450. package/lib/render/pixelSprites/spa.d.ts +3 -0
  451. package/lib/render/pixelSprites/spa.js +88 -0
  452. package/lib/render/pixelSprites/spa.js.map +1 -0
  453. package/lib/render/pixelSprites.d.ts +33 -0
  454. package/lib/render/pixelSprites.js +167 -0
  455. package/lib/render/pixelSprites.js.map +1 -0
  456. package/lib/render/regionGrid.d.ts +49 -0
  457. package/lib/render/regionGrid.js +82 -0
  458. package/lib/render/regionGrid.js.map +1 -0
  459. package/lib/render/regionPaint.d.ts +15 -0
  460. package/lib/render/regionPaint.js +33 -0
  461. package/lib/render/regionPaint.js.map +1 -0
  462. package/lib/render/renderSim.d.ts +104 -0
  463. package/lib/render/renderSim.js +2 -0
  464. package/lib/render/renderSim.js.map +1 -0
  465. package/lib/render/roomPortrait.d.ts +35 -0
  466. package/lib/render/roomPortrait.js +142 -0
  467. package/lib/render/roomPortrait.js.map +1 -0
  468. package/lib/render/roomShading.d.ts +29 -0
  469. package/lib/render/roomShading.js +43 -0
  470. package/lib/render/roomShading.js.map +1 -0
  471. package/lib/render/scale.d.ts +31 -0
  472. package/lib/render/scale.js +34 -0
  473. package/lib/render/scale.js.map +1 -0
  474. package/lib/render/sceneryLayout.d.ts +234 -0
  475. package/lib/render/sceneryLayout.js +199 -0
  476. package/lib/render/sceneryLayout.js.map +1 -0
  477. package/lib/render/sprites/common.d.ts +41 -0
  478. package/lib/render/sprites/common.js +46 -0
  479. package/lib/render/sprites/common.js.map +1 -0
  480. package/lib/render/sprites/escalator.d.ts +27 -0
  481. package/lib/render/sprites/escalator.js +156 -0
  482. package/lib/render/sprites/escalator.js.map +1 -0
  483. package/lib/render/sprites/events.d.ts +56 -0
  484. package/lib/render/sprites/events.js +280 -0
  485. package/lib/render/sprites/events.js.map +1 -0
  486. package/lib/render/sprites/facilities/garage.d.ts +23 -0
  487. package/lib/render/sprites/facilities/garage.js +230 -0
  488. package/lib/render/sprites/facilities/garage.js.map +1 -0
  489. package/lib/render/sprites/facilities/recycling.d.ts +3 -0
  490. package/lib/render/sprites/facilities/recycling.js +210 -0
  491. package/lib/render/sprites/facilities/recycling.js.map +1 -0
  492. package/lib/render/sprites/facilities/recyclingLook.d.ts +49 -0
  493. package/lib/render/sprites/facilities/recyclingLook.js +52 -0
  494. package/lib/render/sprites/facilities/recyclingLook.js.map +1 -0
  495. package/lib/render/sprites/facilities/service.d.ts +14 -0
  496. package/lib/render/sprites/facilities/service.js +437 -0
  497. package/lib/render/sprites/facilities/service.js.map +1 -0
  498. package/lib/render/sprites/facilities/serviceKit.d.ts +61 -0
  499. package/lib/render/sprites/facilities/serviceKit.js +113 -0
  500. package/lib/render/sprites/facilities/serviceKit.js.map +1 -0
  501. package/lib/render/sprites/facilities/vehicles.d.ts +38 -0
  502. package/lib/render/sprites/facilities/vehicles.js +276 -0
  503. package/lib/render/sprites/facilities/vehicles.js.map +1 -0
  504. package/lib/render/sprites/facilities/venue.d.ts +28 -0
  505. package/lib/render/sprites/facilities/venue.js +211 -0
  506. package/lib/render/sprites/facilities/venue.js.map +1 -0
  507. package/lib/render/sprites/facilities/weddingHall.d.ts +9 -0
  508. package/lib/render/sprites/facilities/weddingHall.js +410 -0
  509. package/lib/render/sprites/facilities/weddingHall.js.map +1 -0
  510. package/lib/render/sprites/facilities.d.ts +22 -0
  511. package/lib/render/sprites/facilities.js +24 -0
  512. package/lib/render/sprites/facilities.js.map +1 -0
  513. package/lib/render/sprites/helicopter.d.ts +11 -0
  514. package/lib/render/sprites/helicopter.js +60 -0
  515. package/lib/render/sprites/helicopter.js.map +1 -0
  516. package/lib/render/sprites/sky.d.ts +67 -0
  517. package/lib/render/sprites/sky.js +85 -0
  518. package/lib/render/sprites/sky.js.map +1 -0
  519. package/lib/render/sprites/spiralStair.d.ts +19 -0
  520. package/lib/render/sprites/spiralStair.js +111 -0
  521. package/lib/render/sprites/spiralStair.js.map +1 -0
  522. package/lib/render/sprites/structure/entrance.d.ts +35 -0
  523. package/lib/render/sprites/structure/entrance.js +347 -0
  524. package/lib/render/sprites/structure/entrance.js.map +1 -0
  525. package/lib/render/sprites/structure/lobby.d.ts +88 -0
  526. package/lib/render/sprites/structure/lobby.js +350 -0
  527. package/lib/render/sprites/structure/lobby.js.map +1 -0
  528. package/lib/render/sprites/structure/revolvingDoor.d.ts +53 -0
  529. package/lib/render/sprites/structure/revolvingDoor.js +184 -0
  530. package/lib/render/sprites/structure/revolvingDoor.js.map +1 -0
  531. package/lib/render/sprites/structure/rooftop.d.ts +93 -0
  532. package/lib/render/sprites/structure/rooftop.js +302 -0
  533. package/lib/render/sprites/structure/rooftop.js.map +1 -0
  534. package/lib/render/sprites/structure/shell.d.ts +19 -0
  535. package/lib/render/sprites/structure/shell.js +142 -0
  536. package/lib/render/sprites/structure/shell.js.map +1 -0
  537. package/lib/render/sprites/structure/skyBridge.d.ts +28 -0
  538. package/lib/render/sprites/structure/skyBridge.js +259 -0
  539. package/lib/render/sprites/structure/skyBridge.js.map +1 -0
  540. package/lib/render/sprites/structure/tallLobby.d.ts +8 -0
  541. package/lib/render/sprites/structure/tallLobby.js +166 -0
  542. package/lib/render/sprites/structure/tallLobby.js.map +1 -0
  543. package/lib/render/sprites/structure/tallLobbyPieces.d.ts +18 -0
  544. package/lib/render/sprites/structure/tallLobbyPieces.js +82 -0
  545. package/lib/render/sprites/structure/tallLobbyPieces.js.map +1 -0
  546. package/lib/render/sprites/structure.d.ts +15 -0
  547. package/lib/render/sprites/structure.js +16 -0
  548. package/lib/render/sprites/structure.js.map +1 -0
  549. package/lib/render/sprites/transport.d.ts +30 -0
  550. package/lib/render/sprites/transport.js +376 -0
  551. package/lib/render/sprites/transport.js.map +1 -0
  552. package/lib/render/sprites.d.ts +16 -0
  553. package/lib/render/sprites.js +108 -0
  554. package/lib/render/sprites.js.map +1 -0
  555. package/lib/render/venueFlights.d.ts +61 -0
  556. package/lib/render/venueFlights.js +50 -0
  557. package/lib/render/venueFlights.js.map +1 -0
  558. package/lib/shared/engineTypes.d.ts +256 -0
  559. package/lib/shared/engineTypes.js +8 -0
  560. package/lib/shared/engineTypes.js.map +1 -0
  561. package/lib/shared/floorRuns.d.ts +22 -0
  562. package/lib/shared/floorRuns.js +39 -0
  563. package/lib/shared/floorRuns.js.map +1 -0
  564. package/lib/shared/inputEvents.d.ts +18 -0
  565. package/lib/shared/inputEvents.js +23 -0
  566. package/lib/shared/inputEvents.js.map +1 -0
  567. package/lib/shared/serializedGame.d.ts +142 -0
  568. package/lib/shared/serializedGame.js +2 -0
  569. package/lib/shared/serializedGame.js.map +1 -0
  570. package/lib/shared/types.d.ts +298 -0
  571. package/lib/shared/types.js +47 -0
  572. package/lib/shared/types.js.map +1 -0
  573. package/lib/shared/unitState.d.ts +36 -0
  574. package/lib/shared/unitState.js +42 -0
  575. package/lib/shared/unitState.js.map +1 -0
  576. package/lib/shared/vacateReasonText.d.ts +20 -0
  577. package/lib/shared/vacateReasonText.js +23 -0
  578. package/lib/shared/vacateReasonText.js.map +1 -0
  579. package/lib/shared/viewZoom.d.ts +14 -0
  580. package/lib/shared/viewZoom.js +17 -0
  581. package/lib/shared/viewZoom.js.map +1 -0
  582. package/lib/shared/wellFormed.d.ts +14 -0
  583. package/lib/shared/wellFormed.js +19 -0
  584. package/lib/shared/wellFormed.js.map +1 -0
  585. package/lib/simport/cards.d.ts +26 -0
  586. package/lib/simport/cards.js +138 -0
  587. package/lib/simport/cards.js.map +1 -0
  588. package/lib/simport/clockView.d.ts +24 -0
  589. package/lib/simport/clockView.js +43 -0
  590. package/lib/simport/clockView.js.map +1 -0
  591. package/lib/simport/commands.d.ts +215 -0
  592. package/lib/simport/commands.js +2 -0
  593. package/lib/simport/commands.js.map +1 -0
  594. package/lib/simport/emergencyReads.d.ts +19 -0
  595. package/lib/simport/emergencyReads.js +47 -0
  596. package/lib/simport/emergencyReads.js.map +1 -0
  597. package/lib/simport/enginePort.d.ts +433 -0
  598. package/lib/simport/enginePort.js +11 -0
  599. package/lib/simport/enginePort.js.map +1 -0
  600. package/lib/simport/fixtures/catalog.classic.json +2137 -0
  601. package/lib/simport/fixtures/catalog.modern.json +2515 -0
  602. package/lib/simport/fixtures/viewLayout.json +927 -0
  603. package/lib/simport/headerClock.d.ts +31 -0
  604. package/lib/simport/headerClock.js +29 -0
  605. package/lib/simport/headerClock.js.map +1 -0
  606. package/lib/simport/panels.d.ts +243 -0
  607. package/lib/simport/panels.js +2 -0
  608. package/lib/simport/panels.js.map +1 -0
  609. package/lib/simport/personCards.d.ts +63 -0
  610. package/lib/simport/personCards.js +55 -0
  611. package/lib/simport/personCards.js.map +1 -0
  612. package/lib/simport/portCodes.d.ts +41 -0
  613. package/lib/simport/portCodes.js +49 -0
  614. package/lib/simport/portCodes.js.map +1 -0
  615. package/lib/simport/portEvents.d.ts +39 -0
  616. package/lib/simport/portEvents.js +43 -0
  617. package/lib/simport/portEvents.js.map +1 -0
  618. package/lib/simport/portRenderSim.d.ts +70 -0
  619. package/lib/simport/portRenderSim.js +129 -0
  620. package/lib/simport/portRenderSim.js.map +1 -0
  621. package/lib/simport/queries.d.ts +64 -0
  622. package/lib/simport/queries.js +30 -0
  623. package/lib/simport/queries.js.map +1 -0
  624. package/lib/simport/recyclingPort.d.ts +13 -0
  625. package/lib/simport/recyclingPort.js +2 -0
  626. package/lib/simport/recyclingPort.js.map +1 -0
  627. package/lib/simport/request.d.ts +44 -0
  628. package/lib/simport/request.js +214 -0
  629. package/lib/simport/request.js.map +1 -0
  630. package/lib/simport/roomTiers.d.ts +102 -0
  631. package/lib/simport/roomTiers.js +122 -0
  632. package/lib/simport/roomTiers.js.map +1 -0
  633. package/lib/simport/scheduleSlots.d.ts +19 -0
  634. package/lib/simport/scheduleSlots.js +87 -0
  635. package/lib/simport/scheduleSlots.js.map +1 -0
  636. package/lib/simport/skyBridgePort.d.ts +20 -0
  637. package/lib/simport/skyBridgePort.js +2 -0
  638. package/lib/simport/skyBridgePort.js.map +1 -0
  639. package/lib/simport/skyBridgeView.d.ts +15 -0
  640. package/lib/simport/skyBridgeView.js +42 -0
  641. package/lib/simport/skyBridgeView.js.map +1 -0
  642. package/lib/simport/statsSheet.d.ts +15 -0
  643. package/lib/simport/statsSheet.js +101 -0
  644. package/lib/simport/statsSheet.js.map +1 -0
  645. package/lib/simport/tdtRecords.d.ts +9 -0
  646. package/lib/simport/tdtRecords.js +112 -0
  647. package/lib/simport/tdtRecords.js.map +1 -0
  648. package/lib/simport/tdtReportFacts.d.ts +110 -0
  649. package/lib/simport/tdtReportFacts.js +8 -0
  650. package/lib/simport/tdtReportFacts.js.map +1 -0
  651. package/lib/simport/trafficPort.d.ts +22 -0
  652. package/lib/simport/trafficPort.js +2 -0
  653. package/lib/simport/trafficPort.js.map +1 -0
  654. package/lib/simport/view.d.ts +275 -0
  655. package/lib/simport/view.js +2 -0
  656. package/lib/simport/view.js.map +1 -0
  657. package/lib/simport/viewReader.d.ts +89 -0
  658. package/lib/simport/viewReader.js +426 -0
  659. package/lib/simport/viewReader.js.map +1 -0
  660. package/lib/styles/game/appearance.css +108 -0
  661. package/lib/styles/game/base.css +68 -0
  662. package/lib/styles/game/components.css +69 -0
  663. package/lib/styles/game/desk-title.css +183 -0
  664. package/lib/styles/game/desk.css +487 -0
  665. package/lib/styles/game/dialogs.css +360 -0
  666. package/lib/styles/game/editor-sidebar.css +116 -0
  667. package/lib/styles/game/elevator-schedule.css +217 -0
  668. package/lib/styles/game/file-dialog.css +470 -0
  669. package/lib/styles/game/help.css +141 -0
  670. package/lib/styles/game/launch-fireworks.css +17 -0
  671. package/lib/styles/game/media-landscape.css +333 -0
  672. package/lib/styles/game/media-phone.css +303 -0
  673. package/lib/styles/game/media-tablet-touch.css +177 -0
  674. package/lib/styles/game/menubar.css +158 -0
  675. package/lib/styles/game/new-tower.css +219 -0
  676. package/lib/styles/game/onboarding.css +32 -0
  677. package/lib/styles/game/screen-saver.css +85 -0
  678. package/lib/styles/game/splash.css +413 -0
  679. package/lib/styles/game/stats-saves.css +106 -0
  680. package/lib/styles/game/tools-stage.css +340 -0
  681. package/lib/styles/game/topbar.css +191 -0
  682. package/lib/styles/menu-bar.css +108 -0
  683. package/lib/styles/not-found.css +335 -0
  684. package/lib/styles/overview-map-views.css +88 -0
  685. package/lib/styles/overview-map.css +195 -0
  686. package/lib/styles/retro-components.css +179 -0
  687. package/lib/styles/retro-page.css +254 -0
  688. package/lib/styles/retro-tokens.css +122 -0
  689. package/lib/styles/schemes/high-contrast.css +173 -0
  690. package/lib/styles/schemes/skyline.css +134 -0
  691. package/lib/styles.css +66 -0
  692. package/lib/ui/desk/deskGeometry.d.ts +59 -0
  693. package/lib/ui/desk/deskGeometry.js +106 -0
  694. package/lib/ui/desk/deskGeometry.js.map +1 -0
  695. package/lib/ui/desk/deskWindow.d.ts +90 -0
  696. package/lib/ui/desk/deskWindow.js +253 -0
  697. package/lib/ui/desk/deskWindow.js.map +1 -0
  698. package/lib/ui/desk/deskWindowMenu.d.ts +55 -0
  699. package/lib/ui/desk/deskWindowMenu.js +143 -0
  700. package/lib/ui/desk/deskWindowMenu.js.map +1 -0
  701. package/lib/ui/escape.d.ts +1 -0
  702. package/lib/ui/escape.js +14 -0
  703. package/lib/ui/escape.js.map +1 -0
  704. package/lib/ui/format.d.ts +14 -0
  705. package/lib/ui/format.js +36 -0
  706. package/lib/ui/format.js.map +1 -0
  707. package/lib/ui/iconPaths.generated.d.ts +4 -0
  708. package/lib/ui/iconPaths.generated.js +68 -0
  709. package/lib/ui/iconPaths.generated.js.map +1 -0
  710. package/lib/ui/icons.d.ts +83 -0
  711. package/lib/ui/icons.js +156 -0
  712. package/lib/ui/icons.js.map +1 -0
  713. package/lib/ui/menuBar.d.ts +94 -0
  714. package/lib/ui/menuBar.js +361 -0
  715. package/lib/ui/menuBar.js.map +1 -0
  716. package/lib/ui/modalPrecedence.d.ts +108 -0
  717. package/lib/ui/modalPrecedence.js +165 -0
  718. package/lib/ui/modalPrecedence.js.map +1 -0
  719. package/lib/ui/movableWindow.d.ts +124 -0
  720. package/lib/ui/movableWindow.js +247 -0
  721. package/lib/ui/movableWindow.js.map +1 -0
  722. package/lib/ui/overviewMapInput.d.ts +109 -0
  723. package/lib/ui/overviewMapInput.js +135 -0
  724. package/lib/ui/overviewMapInput.js.map +1 -0
  725. package/lib/ui/uiModal.d.ts +38 -0
  726. package/lib/ui/uiModal.js +70 -0
  727. package/lib/ui/uiModal.js.map +1 -0
  728. package/lib/wasmhost/buildSection.d.ts +54 -0
  729. package/lib/wasmhost/buildSection.js +143 -0
  730. package/lib/wasmhost/buildSection.js.map +1 -0
  731. package/lib/wasmhost/catalogCheck.d.ts +11 -0
  732. package/lib/wasmhost/catalogCheck.js +43 -0
  733. package/lib/wasmhost/catalogCheck.js.map +1 -0
  734. package/lib/wasmhost/engineAssets.d.ts +57 -0
  735. package/lib/wasmhost/engineAssets.js +63 -0
  736. package/lib/wasmhost/engineAssets.js.map +1 -0
  737. package/lib/wasmhost/engineBoot.d.ts +165 -0
  738. package/lib/wasmhost/engineBoot.js +254 -0
  739. package/lib/wasmhost/engineBoot.js.map +1 -0
  740. package/lib/wasmhost/engineChoice.d.ts +6 -0
  741. package/lib/wasmhost/engineChoice.js +2 -0
  742. package/lib/wasmhost/engineChoice.js.map +1 -0
  743. package/lib/wasmhost/engineDiagnostics.d.ts +66 -0
  744. package/lib/wasmhost/engineDiagnostics.js +189 -0
  745. package/lib/wasmhost/engineDiagnostics.js.map +1 -0
  746. package/lib/wasmhost/engineDiagnosticsLive.d.ts +15 -0
  747. package/lib/wasmhost/engineDiagnosticsLive.js +31 -0
  748. package/lib/wasmhost/engineDiagnosticsLive.js.map +1 -0
  749. package/lib/wasmhost/engineIdentity.d.ts +30 -0
  750. package/lib/wasmhost/engineIdentity.js +59 -0
  751. package/lib/wasmhost/engineIdentity.js.map +1 -0
  752. package/lib/wasmhost/engineLabel.d.ts +40 -0
  753. package/lib/wasmhost/engineLabel.js +50 -0
  754. package/lib/wasmhost/engineLabel.js.map +1 -0
  755. package/lib/wasmhost/engineLoad.d.ts +48 -0
  756. package/lib/wasmhost/engineLoad.js +53 -0
  757. package/lib/wasmhost/engineLoad.js.map +1 -0
  758. package/lib/wasmhost/enginePackageCheck.d.ts +77 -0
  759. package/lib/wasmhost/enginePackageCheck.js +274 -0
  760. package/lib/wasmhost/enginePackageCheck.js.map +1 -0
  761. package/lib/wasmhost/enginePackageNames.d.ts +25 -0
  762. package/lib/wasmhost/enginePackageNames.js +28 -0
  763. package/lib/wasmhost/enginePackageNames.js.map +1 -0
  764. package/lib/wasmhost/enginePackageRecord.d.ts +78 -0
  765. package/lib/wasmhost/enginePackageRecord.js +108 -0
  766. package/lib/wasmhost/enginePackageRecord.js.map +1 -0
  767. package/lib/wasmhost/engineRepair.d.ts +55 -0
  768. package/lib/wasmhost/engineRepair.js +183 -0
  769. package/lib/wasmhost/engineRepair.js.map +1 -0
  770. package/lib/wasmhost/frameView.d.ts +87 -0
  771. package/lib/wasmhost/frameView.js +133 -0
  772. package/lib/wasmhost/frameView.js.map +1 -0
  773. package/lib/wasmhost/hostFault.d.ts +40 -0
  774. package/lib/wasmhost/hostFault.js +94 -0
  775. package/lib/wasmhost/hostFault.js.map +1 -0
  776. package/lib/wasmhost/loadEngineModule.d.ts +79 -0
  777. package/lib/wasmhost/loadEngineModule.js +66 -0
  778. package/lib/wasmhost/loadEngineModule.js.map +1 -0
  779. package/lib/wasmhost/packageHash.d.ts +48 -0
  780. package/lib/wasmhost/packageHash.js +436 -0
  781. package/lib/wasmhost/packageHash.js.map +1 -0
  782. package/lib/wasmhost/rustEngine.d.ts +49 -0
  783. package/lib/wasmhost/rustEngine.js +63 -0
  784. package/lib/wasmhost/rustEngine.js.map +1 -0
  785. package/lib/wasmhost/slotPopulation.d.ts +19 -0
  786. package/lib/wasmhost/slotPopulation.js +69 -0
  787. package/lib/wasmhost/slotPopulation.js.map +1 -0
  788. package/lib/wasmhost/telemetry.d.ts +31 -0
  789. package/lib/wasmhost/telemetry.js +13 -0
  790. package/lib/wasmhost/telemetry.js.map +1 -0
  791. package/package.json +80 -4
@@ -0,0 +1,165 @@
1
+ /**
2
+ * Who gets the shared `<dialog>`, and what happens to whoever is waiting.
3
+ *
4
+ * One dialog element serves the whole app, so a surface that opens
5
+ * asynchronously (a fidelity report, which lands whenever `FileReader`
6
+ * finishes) can arrive to find the dialog already taken. The old rule was "is a
7
+ * modal open", which conflated two different questions and refused perfectly
8
+ * safe openings, then reported the refusal with a toast: a `<dialog>` renders in
9
+ * the browser's top layer and paints over the toast rail at any z-index, so that
10
+ * message could only ever fire when something was guaranteed to be covering it
11
+ * (GH #658). Its whole content was what-to-do-next, delivered where nobody
12
+ * could read it, and the cost was a discarded tower.
13
+ *
14
+ * The split this module owns:
15
+ *
16
+ * - **Displaceable.** The dialog owns no pending decision and no unsaved
17
+ * work, so an arriving report may simply take the dialog.
18
+ * - **Protected.** Everything else. Classification FAILS SAFE: protected
19
+ * unless an opener says otherwise, so a dialog added later defaults to
20
+ * protected and the cost of forgetting is an unnecessary wait rather than
21
+ * lost player work.
22
+ *
23
+ * A report that finds a protected dialog waits on a leash tied to THAT dialog
24
+ * resolving, never open ended: it closes over a fully parsed tower, and a wait
25
+ * held across a tower swap or a second import would eventually adopt the wrong
26
+ * tower or ambush a player who has moved on. When the leash breaks, the parsed
27
+ * tower is dropped and the player is told so somewhere they can actually see.
28
+ */
29
+ class ModalPrecedence {
30
+ constructor() {
31
+ /** Whether the dialog on screen declared itself displaceable. Reset on every
32
+ * open and every close, so it can never outlive the dialog that set it. */
33
+ this.displaceable = false;
34
+ /** The single pending wait. One at a time: a second waiter breaks the first
35
+ * rather than queueing, since two parsed towers racing for one dialog is the
36
+ * ambush this design exists to prevent. */
37
+ this.leash = null;
38
+ /** A line to mount into the next dialog, set when something must be said
39
+ * while the shared dialog is mid-replace and has no body to write into. */
40
+ this.pendingNotice = null;
41
+ /** The incumbent dialog's goodbye, if it registered one. */
42
+ this.onDisplaced = null;
43
+ }
44
+ /** A dialog is mounting. `displacing` is whether one was already on screen. */
45
+ opening(displacing, opts) {
46
+ if (displacing) {
47
+ this.breakLeash("displaced");
48
+ // The incumbent is being replaced, not closed, so anything it owed the
49
+ // player has to be said now. Cleared first: a goodbye that itself opens
50
+ // a dialog must not re-enter this method through its own hook.
51
+ const goodbye = this.onDisplaced;
52
+ this.onDisplaced = null;
53
+ goodbye?.();
54
+ }
55
+ this.displaceable = opts.displaceable === true;
56
+ this.onDisplaced = opts.onDisplaced ?? null;
57
+ }
58
+ /** A dialog closed. `wasOpen` is whether one actually was: `closeModal()` is
59
+ * idempotent and several handlers call it defensively, and a stray call with
60
+ * nothing on screen must not fire a waiting report at an arbitrary moment.
61
+ *
62
+ * The leash is taken BEFORE its callback runs, because that callback
63
+ * typically opens the report, and a leash still in place would then read as
64
+ * broken by its own waiter. A held notice is dropped here too: it was meant
65
+ * for a dialog that no longer exists, and carrying it forward would stamp it
66
+ * into an unrelated window opened later. */
67
+ closed(wasOpen) {
68
+ this.displaceable = false;
69
+ this.onDisplaced = null;
70
+ this.pendingNotice = null;
71
+ if (!wasOpen)
72
+ return;
73
+ const leash = this.leash;
74
+ this.leash = null;
75
+ leash?.onResolve();
76
+ }
77
+ /** True when the dialog on screen owns something worth protecting. */
78
+ ownsPendingWork(isOpen) {
79
+ return isOpen && !this.displaceable;
80
+ }
81
+ /** Wait for the current dialog to resolve; `onBroken` runs if it never does,
82
+ * and is told WHY so the player is not given a reason that did not happen. */
83
+ wait(onResolve, onBroken) {
84
+ this.breakLeash("superseded");
85
+ this.leash = { onResolve, onBroken };
86
+ }
87
+ /** The tower was swapped out from under whatever is waiting.
88
+ *
89
+ * A report closes over a fully parsed Simulation, so a wait that survives a
90
+ * swap would open over a tower it was never parsed against and "Open tower"
91
+ * would adopt a state that no longer exists. The spec names this as one of
92
+ * the three things that must BREAK a leash, not resolve it, and it cannot be
93
+ * inferred from dialog lifecycle alone: the New Tower dialog closes normally
94
+ * and swaps the tower afterwards, which reads as a clean resolution. */
95
+ towerSwapped() {
96
+ this.breakLeash("tower-swapped");
97
+ }
98
+ /** Hold a line for the next dialog to mount. */
99
+ deferNotice(text, kind = "bad") {
100
+ this.pendingNotice = { text, kind };
101
+ }
102
+ /** Mount any held line into a dialog body that has just been built. */
103
+ drainNotice(box) {
104
+ const notice = this.pendingNotice;
105
+ this.pendingNotice = null;
106
+ if (notice)
107
+ mountNotice(box, notice.text, notice.kind);
108
+ }
109
+ breakLeash(reason) {
110
+ const leash = this.leash;
111
+ this.leash = null;
112
+ leash?.onBroken(reason);
113
+ }
114
+ }
115
+ /** Route a line to wherever the player can actually read it right now.
116
+ *
117
+ * A toast cannot carry a message raised while a dialog is up: the `<dialog>`
118
+ * top layer paints over the rail at any z-index, which is the defect itself.
119
+ * So it goes into the live dialog body, or is held for the next one to mount
120
+ * when the shared dialog is mid-replace and has no body, and only falls back
121
+ * to the caller's toast when nothing is on screen and a toast is visible. */
122
+ function routeNotice(dialog, precedence, text, toast, again = true, kind = "bad") {
123
+ if (!dialog.open) {
124
+ toast(text);
125
+ return;
126
+ }
127
+ // A caller that asks every frame (an emergency waiting behind the dialog)
128
+ // passes `again` false. It never rebuilds a line already on screen, which
129
+ // would announce it anew each time, and never replaces another one: that
130
+ // could be a failure the player has yet to read, gone a frame after it
131
+ // landed. It is not held for a later body either, since that body could be
132
+ // the very dialog the caller was waiting for; the next ask finds the new one.
133
+ const box = dialog.querySelector(".modal-box");
134
+ if (!box) {
135
+ if (again)
136
+ precedence.deferNotice(text, kind);
137
+ return;
138
+ }
139
+ if (!again && box.querySelector(":scope > .modal-notice"))
140
+ return;
141
+ mountNotice(box, text, kind);
142
+ }
143
+ /** Put a notice at the top of a dialog body, under the title bar where the eye
144
+ * lands first. A failure is drawn in danger ink with `role="alert"`, so it
145
+ * interrupts; plain and good news use ordinary ink and `role="status"`, so a
146
+ * late "it finished after all" is neither shown nor announced as an error
147
+ * (#785). */
148
+ function mountNotice(box, text, kind = "bad") {
149
+ // One notice per body: a second would stack under the first and the two can
150
+ // disagree, which is worse than either alone.
151
+ box.querySelector(":scope > .modal-notice")?.remove();
152
+ const p = document.createElement("p");
153
+ const bad = kind === "bad";
154
+ p.className = bad ? "modal-notice" : "modal-notice modal-notice-calm";
155
+ p.setAttribute("role", bad ? "alert" : "status");
156
+ p.textContent = text;
157
+ const title = box.querySelector(":scope > h2");
158
+ if (title)
159
+ title.after(p);
160
+ else
161
+ box.prepend(p);
162
+ }
163
+
164
+ export { ModalPrecedence, mountNotice, routeNotice };
165
+ //# sourceMappingURL=modalPrecedence.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modalPrecedence.js","sources":["../../src/ui/modalPrecedence.ts"],"sourcesContent":["/**\n * Who gets the shared `<dialog>`, and what happens to whoever is waiting.\n *\n * One dialog element serves the whole app, so a surface that opens\n * asynchronously (a fidelity report, which lands whenever `FileReader`\n * finishes) can arrive to find the dialog already taken. The old rule was \"is a\n * modal open\", which conflated two different questions and refused perfectly\n * safe openings, then reported the refusal with a toast: a `<dialog>` renders in\n * the browser's top layer and paints over the toast rail at any z-index, so that\n * message could only ever fire when something was guaranteed to be covering it\n * (GH #658). Its whole content was what-to-do-next, delivered where nobody\n * could read it, and the cost was a discarded tower.\n *\n * The split this module owns:\n *\n * - **Displaceable.** The dialog owns no pending decision and no unsaved\n * work, so an arriving report may simply take the dialog.\n * - **Protected.** Everything else. Classification FAILS SAFE: protected\n * unless an opener says otherwise, so a dialog added later defaults to\n * protected and the cost of forgetting is an unnecessary wait rather than\n * lost player work.\n *\n * A report that finds a protected dialog waits on a leash tied to THAT dialog\n * resolving, never open ended: it closes over a fully parsed tower, and a wait\n * held across a tower swap or a second import would eventually adopt the wrong\n * tower or ambush a player who has moved on. When the leash breaks, the parsed\n * tower is dropped and the player is told so somewhere they can actually see.\n */\n\n/** Per-open modal declarations. `displaceable` is the only one, and only as an\n * opt-in, so omitting it is the protective choice. */\nexport interface ModalOpts {\n /** This dialog owns no pending decision and no unsaved work, so a report\n * arriving behind it may replace it outright. Informational dialogs only. */\n displaceable?: boolean;\n /** Run if this dialog is replaced rather than closed on its own terms.\n *\n * A dialog that holds something the player would miss uses this to say so\n * before it goes. It is NOT a veto and NOT a stacking rule: the replacement\n * happens either way, which keeps this short of the general precedence\n * system the spec rules out. It exists because a fidelity report that is\n * already on screen holds a fully parsed tower, and losing that in silence\n * is the same defect as losing it while it waits. */\n onDisplaced?: () => void;\n}\n\n/** A wait for one specific dialog to resolve. */\n/** Why a wait ended without the dialog it was tied to resolving. */\nexport type BrokenReason = \"displaced\" | \"superseded\" | \"tower-swapped\";\n\ninterface Leash {\n onResolve: () => void;\n onBroken: (reason: BrokenReason) => void;\n}\n\nexport class ModalPrecedence {\n /** Whether the dialog on screen declared itself displaceable. Reset on every\n * open and every close, so it can never outlive the dialog that set it. */\n private displaceable = false;\n /** The single pending wait. One at a time: a second waiter breaks the first\n * rather than queueing, since two parsed towers racing for one dialog is the\n * ambush this design exists to prevent. */\n private leash: Leash | null = null;\n /** A line to mount into the next dialog, set when something must be said\n * while the shared dialog is mid-replace and has no body to write into. */\n private pendingNotice: { readonly text: string; readonly kind: NoticeKind } | null = null;\n /** The incumbent dialog's goodbye, if it registered one. */\n private onDisplaced: (() => void) | null = null;\n\n /** A dialog is mounting. `displacing` is whether one was already on screen. */\n opening(displacing: boolean, opts: ModalOpts): void {\n if (displacing) {\n this.breakLeash(\"displaced\");\n // The incumbent is being replaced, not closed, so anything it owed the\n // player has to be said now. Cleared first: a goodbye that itself opens\n // a dialog must not re-enter this method through its own hook.\n const goodbye = this.onDisplaced;\n this.onDisplaced = null;\n goodbye?.();\n }\n this.displaceable = opts.displaceable === true;\n this.onDisplaced = opts.onDisplaced ?? null;\n }\n\n /** A dialog closed. `wasOpen` is whether one actually was: `closeModal()` is\n * idempotent and several handlers call it defensively, and a stray call with\n * nothing on screen must not fire a waiting report at an arbitrary moment.\n *\n * The leash is taken BEFORE its callback runs, because that callback\n * typically opens the report, and a leash still in place would then read as\n * broken by its own waiter. A held notice is dropped here too: it was meant\n * for a dialog that no longer exists, and carrying it forward would stamp it\n * into an unrelated window opened later. */\n closed(wasOpen: boolean): void {\n this.displaceable = false;\n this.onDisplaced = null;\n this.pendingNotice = null;\n if (!wasOpen) return;\n const leash = this.leash;\n this.leash = null;\n leash?.onResolve();\n }\n\n /** True when the dialog on screen owns something worth protecting. */\n ownsPendingWork(isOpen: boolean): boolean {\n return isOpen && !this.displaceable;\n }\n\n /** Wait for the current dialog to resolve; `onBroken` runs if it never does,\n * and is told WHY so the player is not given a reason that did not happen. */\n wait(onResolve: () => void, onBroken: (reason: BrokenReason) => void): void {\n this.breakLeash(\"superseded\");\n this.leash = { onResolve, onBroken };\n }\n\n /** The tower was swapped out from under whatever is waiting.\n *\n * A report closes over a fully parsed Simulation, so a wait that survives a\n * swap would open over a tower it was never parsed against and \"Open tower\"\n * would adopt a state that no longer exists. The spec names this as one of\n * the three things that must BREAK a leash, not resolve it, and it cannot be\n * inferred from dialog lifecycle alone: the New Tower dialog closes normally\n * and swaps the tower afterwards, which reads as a clean resolution. */\n towerSwapped(): void {\n this.breakLeash(\"tower-swapped\");\n }\n\n /** Hold a line for the next dialog to mount. */\n deferNotice(text: string, kind: NoticeKind = \"bad\"): void {\n this.pendingNotice = { text, kind };\n }\n\n /** Mount any held line into a dialog body that has just been built. */\n drainNotice(box: HTMLElement): void {\n const notice = this.pendingNotice;\n this.pendingNotice = null;\n if (notice) mountNotice(box, notice.text, notice.kind);\n }\n\n private breakLeash(reason: BrokenReason): void {\n const leash = this.leash;\n this.leash = null;\n leash?.onBroken(reason);\n }\n}\n\n/** Route a line to wherever the player can actually read it right now.\n *\n * A toast cannot carry a message raised while a dialog is up: the `<dialog>`\n * top layer paints over the rail at any z-index, which is the defect itself.\n * So it goes into the live dialog body, or is held for the next one to mount\n * when the shared dialog is mid-replace and has no body, and only falls back\n * to the caller's toast when nothing is on screen and a toast is visible. */\nexport function routeNotice(\n dialog: HTMLDialogElement,\n precedence: ModalPrecedence,\n text: string,\n toast: (text: string) => void,\n again = true,\n kind: NoticeKind = \"bad\",\n): void {\n if (!dialog.open) {\n toast(text);\n return;\n }\n // A caller that asks every frame (an emergency waiting behind the dialog)\n // passes `again` false. It never rebuilds a line already on screen, which\n // would announce it anew each time, and never replaces another one: that\n // could be a failure the player has yet to read, gone a frame after it\n // landed. It is not held for a later body either, since that body could be\n // the very dialog the caller was waiting for; the next ask finds the new one.\n const box = dialog.querySelector<HTMLElement>(\".modal-box\");\n if (!box) {\n if (again) precedence.deferNotice(text, kind);\n return;\n }\n if (!again && box.querySelector(\":scope > .modal-notice\")) return;\n mountNotice(box, text, kind);\n}\n\n/** What a notice says about the game: a failure, or plain or good news. */\nexport type NoticeKind = \"bad\" | \"info\" | \"good\";\n\n/** Put a notice at the top of a dialog body, under the title bar where the eye\n * lands first. A failure is drawn in danger ink with `role=\"alert\"`, so it\n * interrupts; plain and good news use ordinary ink and `role=\"status\"`, so a\n * late \"it finished after all\" is neither shown nor announced as an error\n * (#785). */\nexport function mountNotice(box: HTMLElement, text: string, kind: NoticeKind = \"bad\"): void {\n // One notice per body: a second would stack under the first and the two can\n // disagree, which is worse than either alone.\n box.querySelector(\":scope > .modal-notice\")?.remove();\n const p = document.createElement(\"p\");\n const bad = kind === \"bad\";\n p.className = bad ? \"modal-notice\" : \"modal-notice modal-notice-calm\";\n p.setAttribute(\"role\", bad ? \"alert\" : \"status\");\n p.textContent = text;\n const title = box.querySelector(\":scope > h2\");\n if (title) title.after(p);\n else box.prepend(p);\n}\n"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BG;MA4BU,eAAe,CAAA;AAA5B,IAAA,WAAA,GAAA;AACE;AAC4E;QACpE,IAAA,CAAA,YAAY,GAAG,KAAK;AAC5B;;AAE4C;QACpC,IAAA,CAAA,KAAK,GAAiB,IAAI;AAClC;AAC4E;QACpE,IAAA,CAAA,aAAa,GAAgE,IAAI;;QAEjF,IAAA,CAAA,WAAW,GAAwB,IAAI;IA6EjD;;IA1EE,OAAO,CAAC,UAAmB,EAAE,IAAe,EAAA;QAC1C,IAAI,UAAU,EAAE;AACd,YAAA,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC;;;;AAI5B,YAAA,MAAM,OAAO,GAAG,IAAI,CAAC,WAAW;AAChC,YAAA,IAAI,CAAC,WAAW,GAAG,IAAI;YACvB,OAAO,IAAI;QACb;QACA,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,KAAK,IAAI;QAC9C,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,IAAI,IAAI;IAC7C;AAEA;;;;;;;;AAQ6C;AAC7C,IAAA,MAAM,CAAC,OAAgB,EAAA;AACrB,QAAA,IAAI,CAAC,YAAY,GAAG,KAAK;AACzB,QAAA,IAAI,CAAC,WAAW,GAAG,IAAI;AACvB,QAAA,I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B,KAAK,EAAA;AAExB,IAAA,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE;QAChB,KAAK,CAAC,IAAI,CAAC;QACX;IACF;;;;;;;IAOA,MAAM,GAAG,GAAG,MAAM,CAAC,aAAa,CAAc,YAAY,CAAC;IAC3D,IAAI,CAAC,GAAG,EAAE;AACR,QAAA,IAAI,KAAK;AAAE,YAAA,UAAU,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC;QAC7C;IACF;IACA,IAAI,CAAC,KAAK,IAAI,GAAG,CAAC,aAAa,CAAC,wBAAwB,CAAC;QAAE;AAC3D,IAAA,WAAW,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC;AAC9B;AAKA;;;;AAIc;AACR,SAAU,WAAW,CAAC,GAAgB,EAAE,IAAY,EAAE,OAAmB,KAAK,EAAA;;;IAGlF,GAAG,CAAC,aAAa,CAAC,wBAAwB,CAAC,EAAE,MAAM,EAAE;IACrD,MAAM,CAAC,GAAG,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC;AACrC,IAAA,MAAM,GAAG,GAAG,IAAI,KAAK,KAAK;AAC1B,IAAA,CAAC,CAAC,SAAS,GAAG,GAAG,GAAG,cAAc,GAAG,gCAAgC;AACrE,IAAA,CAAC,CAAC,YAAY,CAAC,MAAM,EAAE,GAAG,GAAG,OAAO,GAAG,QAAQ,CAAC;AAChD,IAAA,CAAC,CAAC,WAAW,GAAG,IAAI;IACpB,MAAM,KAAK,GAAG,GAAG,CAAC,aAAa,CAAC,aAAa,CAAC;AAC9C,IAAA,IAAI,KAAK;AAAE,QAAA,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;;AACpB,QAAA,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC;AACrB;;"}
@@ -0,0 +1,124 @@
1
+ /**
2
+ * Movable windows: the player drags a closable window (the Map, the facility
3
+ * card, a dialog) by its navy title bar, the way a 1990s desktop window
4
+ * moves, and a double-click on the title bar puts it back where the game
5
+ * keeps it. The window always stays whole inside its bounds (the tower view,
6
+ * or the browser window for a dialog), and when the bounds or the window
7
+ * change size it is pulled back inside.
8
+ *
9
+ * The listeners sit on the window and look for the title bar with `closest`,
10
+ * so a title bar that lit renders again (the facility card's does) keeps
11
+ * working with no rewiring. A press on a control inside the title bar (the
12
+ * close button) never starts a move, and neither does a press below the bar
13
+ * (the Map's View dropdown sits there).
14
+ *
15
+ * Cost: a press measures the window and its bounds once; each move writes two
16
+ * styles and reads nothing; a resize measures once. Nothing runs per frame.
17
+ */
18
+ /** A window's top-left corner, in its bounds' coordinates (CSS px). */
19
+ export interface Spot {
20
+ readonly x: number;
21
+ readonly y: number;
22
+ }
23
+ /** A width and a height (CSS px). */
24
+ export interface Extent {
25
+ readonly w: number;
26
+ readonly h: number;
27
+ }
28
+ /** The box a window moves inside, in client coordinates. */
29
+ export interface Bounds extends Extent {
30
+ readonly left: number;
31
+ readonly top: number;
32
+ }
33
+ /** Where a window of `size` may sit inside `bounds`: whole and inside, or, for
34
+ * a window bigger than its bounds, with its top-left corner (the title bar)
35
+ * inside. Whole pixels, so a moved window never lands on a half pixel. */
36
+ export declare function clampSpot(spot: Spot, size: Extent, bounds: Extent): Spot;
37
+ /** The title bar's tooltip, so a player who wonders how to move a window
38
+ * finds out by pointing at its bar. */
39
+ export declare const MOVE_HINT = "Drag to move. Double-click to put it back.";
40
+ /** The class a movable window wears, which gives its title bar the move
41
+ * cursor and keeps a touch on it from scrolling the page. */
42
+ export declare const MOVABLE_CLASS = "win-movable";
43
+ export interface MovableWindowOptions {
44
+ /** The window that moves. Positioned (absolute in the stage, or a fixed
45
+ * dialog), so `left` and `top` place it. */
46
+ readonly win: HTMLElement;
47
+ /** The title bar's selector, matched from the pressed element up to `win`. */
48
+ readonly title: string;
49
+ /** The box the window moves inside: an element's padding box, or the
50
+ * browser window when null. `"parent"` reads the window's parent element
51
+ * at each press, so a window the 1994 desk moves to another parent
52
+ * (src/ui/desk/) keeps moving inside wherever it now sits. */
53
+ readonly within: HTMLElement | null | typeof WITHIN_PARENT;
54
+ /** Heard when a move ends with the spot the player chose, and with null when
55
+ * a double-click puts the window back. */
56
+ readonly placed?: (spot: Spot | null) => void;
57
+ /** Heard on a double-click on the title bar in place of putting the window
58
+ * back where the game keeps it (the desk's windows maximize instead). */
59
+ readonly doubleClick?: () => void;
60
+ /** Asked at each press; false keeps the window still (a maximized desk
61
+ * window). Absent, the window always moves. */
62
+ readonly canMove?: () => boolean;
63
+ }
64
+ /** `within` for a window that moves inside its current parent element. */
65
+ export declare const WITHIN_PARENT = "parent";
66
+ /** The mover of `win`, when one was made for it. */
67
+ export declare function moverOf(win: HTMLElement): MovableWindow | undefined;
68
+ export declare class MovableWindow {
69
+ private readonly opts;
70
+ private spot;
71
+ private drag;
72
+ private readonly resizeObserver;
73
+ private readonly onViewportResize;
74
+ /** Others hearing each move beside the window's owner (the 1994 desk). */
75
+ private readonly hearers;
76
+ private readonly listeners;
77
+ constructor(opts: MovableWindowOptions);
78
+ /** Hear each move the player makes, as `placed` does; returns the unhook.
79
+ * The desk keeps the game's own windows' places this way. */
80
+ hear(fn: (spot: Spot | null) => void): () => void;
81
+ private placed;
82
+ /** Where the player put the window, or null while it sits where the game
83
+ * keeps it. */
84
+ placedAt(): Spot | null;
85
+ /** Whether the player has moved the window from where the game keeps it. */
86
+ isPlaced(): boolean;
87
+ /** Whether the window is the player's: moved, or pressed on its title bar
88
+ * and about to move. A per-frame layout that would put the window back
89
+ * asks this, so a press that has not moved yet is not undone by the next
90
+ * frame (a touch press and its first move are frames apart). */
91
+ isHeld(): boolean;
92
+ /** Put the window at `spot` (a stored place), pulled inside its bounds when
93
+ * the window has a size to measure; a hidden window is pulled in when it
94
+ * shows, since showing it resizes it. */
95
+ moveTo(spot: Spot): void;
96
+ /** Give the window back to its own layout. Free when it was not moved. */
97
+ reset(): void;
98
+ /** Remove the listeners. */
99
+ dispose(): void;
100
+ /** The title bar a press landed on, or null for a press anywhere else or on
101
+ * one of the title bar's own controls. */
102
+ private titleOf;
103
+ private down;
104
+ private move;
105
+ private end;
106
+ /** Name the move on the title bar's tooltip. Runs as the pointer enters
107
+ * an element, never per move, and sets it once per title bar it finds
108
+ * (a title bar lit renders again gets it on the next pointer over). */
109
+ private hint;
110
+ /** A double-click on the title bar puts the window back where the game
111
+ * keeps it. */
112
+ private home;
113
+ /** Pull a moved window back inside its bounds after a size change. Reads
114
+ * layout, so it runs only on a resize or a restore, never per frame. */
115
+ private refit;
116
+ /** The bounds in client coordinates: the element's padding box (the space
117
+ * `left` and `top` count from), or the browser window. */
118
+ /** The element the window moves inside, or null for the browser window. */
119
+ private box;
120
+ private bounds;
121
+ /** Place the window's top-left corner. `margin: 0` lets a centered dialog
122
+ * leave the center; the stage windows have no margin to lose. */
123
+ private write;
124
+ }
@@ -0,0 +1,247 @@
1
+ import { isPrimaryPress, noButtonHeld } from './overviewMapInput.js';
2
+
3
+ /** Where a window of `size` may sit inside `bounds`: whole and inside, or, for
4
+ * a window bigger than its bounds, with its top-left corner (the title bar)
5
+ * inside. Whole pixels, so a moved window never lands on a half pixel. */
6
+ function clampSpot(spot, size, bounds) {
7
+ const fit = (v, room) => Math.round(Math.max(0, Math.min(v, room)));
8
+ return { x: fit(spot.x, bounds.w - size.w), y: fit(spot.y, bounds.h - size.h) };
9
+ }
10
+ /** The controls a title bar holds, which a press works rather than moves. */
11
+ const TITLE_CONTROLS = "button, select, input, textarea, a";
12
+ /** The title bar's tooltip, so a player who wonders how to move a window
13
+ * finds out by pointing at its bar. */
14
+ const MOVE_HINT = "Drag to move. Double-click to put it back.";
15
+ /** The class a movable window wears, which gives its title bar the move
16
+ * cursor and keeps a touch on it from scrolling the page. */
17
+ const MOVABLE_CLASS = "win-movable";
18
+ /** `within` for a window that moves inside its current parent element. */
19
+ const WITHIN_PARENT = "parent";
20
+ /** Every movable window by its element, so the desk can place a window it
21
+ * takes over and give it back (src/ui/desk/deskController.ts). */
22
+ const MOVERS = new WeakMap();
23
+ /** The mover of `win`, when one was made for it. */
24
+ function moverOf(win) {
25
+ return MOVERS.get(win);
26
+ }
27
+ class MovableWindow {
28
+ constructor(opts) {
29
+ this.opts = opts;
30
+ this.spot = null;
31
+ this.drag = null;
32
+ this.resizeObserver = null;
33
+ this.onViewportResize = () => this.refit();
34
+ /** Others hearing each move beside the window's owner (the 1994 desk). */
35
+ this.hearers = new Set();
36
+ const { win } = opts;
37
+ win.classList.add(MOVABLE_CLASS);
38
+ MOVERS.set(win, this);
39
+ this.listeners = [
40
+ ["pointerdown", (e) => this.down(e)],
41
+ ["pointermove", (e) => this.move(e)],
42
+ ["pointerup", (e) => this.end(e)],
43
+ ["pointercancel", (e) => this.end(e)],
44
+ ["lostpointercapture", (e) => this.end(e)],
45
+ ["dblclick", (e) => this.home(e)],
46
+ ["pointerover", (e) => this.hint(e)],
47
+ ];
48
+ for (const [type, fn] of this.listeners)
49
+ win.addEventListener(type, fn);
50
+ if (typeof ResizeObserver !== "undefined") {
51
+ this.resizeObserver = new ResizeObserver(() => this.refit());
52
+ this.resizeObserver.observe(win);
53
+ const box = this.box();
54
+ if (box)
55
+ this.resizeObserver.observe(box);
56
+ }
57
+ if (opts.within === WITHIN_PARENT || !opts.within)
58
+ win.ownerDocument.defaultView?.addEventListener("resize", this.onViewportResize);
59
+ }
60
+ /** Hear each move the player makes, as `placed` does; returns the unhook.
61
+ * The desk keeps the game's own windows' places this way. */
62
+ hear(fn) {
63
+ this.hearers.add(fn);
64
+ return () => this.hearers.delete(fn);
65
+ }
66
+ placed(spot) {
67
+ this.opts.placed?.(spot);
68
+ for (const fn of this.hearers)
69
+ fn(spot);
70
+ }
71
+ /** Where the player put the window, or null while it sits where the game
72
+ * keeps it. */
73
+ placedAt() {
74
+ return this.spot;
75
+ }
76
+ /** Whether the player has moved the window from where the game keeps it. */
77
+ isPlaced() {
78
+ return this.spot !== null;
79
+ }
80
+ /** Whether the window is the player's: moved, or pressed on its title bar
81
+ * and about to move. A per-frame layout that would put the window back
82
+ * asks this, so a press that has not moved yet is not undone by the next
83
+ * frame (a touch press and its first move are frames apart). */
84
+ isHeld() {
85
+ return this.spot !== null || this.drag !== null;
86
+ }
87
+ /** Put the window at `spot` (a stored place), pulled inside its bounds when
88
+ * the window has a size to measure; a hidden window is pulled in when it
89
+ * shows, since showing it resizes it. */
90
+ moveTo(spot) {
91
+ this.spot = spot;
92
+ this.write(spot);
93
+ this.refit();
94
+ }
95
+ /** Give the window back to its own layout. Free when it was not moved. */
96
+ reset() {
97
+ if (!this.spot && !this.drag)
98
+ return;
99
+ this.drag = null;
100
+ if (!this.spot)
101
+ return;
102
+ this.spot = null;
103
+ const s = this.opts.win.style;
104
+ s.left = s.top = s.right = s.bottom = s.margin = "";
105
+ }
106
+ /** Remove the listeners. */
107
+ dispose() {
108
+ for (const [type, fn] of this.listeners)
109
+ this.opts.win.removeEventListener(type, fn);
110
+ if (MOVERS.get(this.opts.win) === this)
111
+ MOVERS.delete(this.opts.win);
112
+ this.resizeObserver?.disconnect();
113
+ this.opts.win.ownerDocument.defaultView?.removeEventListener("resize", this.onViewportResize);
114
+ }
115
+ /** The title bar a press landed on, or null for a press anywhere else or on
116
+ * one of the title bar's own controls. */
117
+ titleOf(e) {
118
+ const target = e.target;
119
+ if (!(target instanceof Element) || target.closest(TITLE_CONTROLS))
120
+ return null;
121
+ const title = target.closest(this.opts.title);
122
+ return title && this.opts.win.contains(title) ? title : null;
123
+ }
124
+ down(e) {
125
+ // A press by the pointer that holds the drag means its release was lost
126
+ // (the title bar re-rendered under it, say): the new press starts over.
127
+ if ((this.drag && this.drag.pointerId !== e.pointerId) || !isPrimaryPress(e))
128
+ return;
129
+ this.drag = null;
130
+ const title = this.titleOf(e);
131
+ if (!title || this.opts.canMove?.() === false)
132
+ return;
133
+ const rect = this.opts.win.getBoundingClientRect();
134
+ const bounds = this.bounds();
135
+ this.drag = {
136
+ pointerId: e.pointerId,
137
+ grabX: e.clientX - rect.left,
138
+ grabY: e.clientY - rect.top,
139
+ size: { w: rect.width, h: rect.height },
140
+ bounds,
141
+ moved: false,
142
+ };
143
+ // No text selection and no focus change from a press on the bar.
144
+ e.preventDefault();
145
+ // The moves and the release come to the bar even off the window. A
146
+ // pointer the browser no longer counts as down cannot be captured; the
147
+ // window then still moves while the pointer stays over it.
148
+ try {
149
+ title.setPointerCapture(e.pointerId);
150
+ }
151
+ catch {
152
+ /* not capturable: see above */
153
+ }
154
+ }
155
+ move(e) {
156
+ const drag = this.drag;
157
+ if (!drag || drag.pointerId !== e.pointerId)
158
+ return;
159
+ // A mouse or pen that moves with no button held let go somewhere this
160
+ // window never heard: the move is over, and hovering moves nothing.
161
+ if (e.pointerType !== "touch" && noButtonHeld(e)) {
162
+ this.drag = null;
163
+ if (drag.moved && this.spot)
164
+ this.placed(this.spot);
165
+ return;
166
+ }
167
+ const { bounds } = drag;
168
+ const spot = clampSpot({ x: e.clientX - drag.grabX - bounds.left, y: e.clientY - drag.grabY - bounds.top }, drag.size, bounds);
169
+ drag.moved = true;
170
+ this.spot = spot;
171
+ this.write(spot);
172
+ }
173
+ end(e) {
174
+ const drag = this.drag;
175
+ if (!drag || drag.pointerId !== e.pointerId)
176
+ return;
177
+ this.drag = null;
178
+ if (drag.moved && this.spot)
179
+ this.placed(this.spot);
180
+ }
181
+ /** Name the move on the title bar's tooltip. Runs as the pointer enters
182
+ * an element, never per move, and sets it once per title bar it finds
183
+ * (a title bar lit renders again gets it on the next pointer over). */
184
+ hint(e) {
185
+ const title = this.titleOf(e);
186
+ if (title && title.title !== MOVE_HINT)
187
+ title.title = MOVE_HINT;
188
+ }
189
+ /** A double-click on the title bar puts the window back where the game
190
+ * keeps it. */
191
+ home(e) {
192
+ if (this.opts.doubleClick) {
193
+ if (this.titleOf(e))
194
+ this.opts.doubleClick();
195
+ return;
196
+ }
197
+ if (!this.spot || !this.titleOf(e))
198
+ return;
199
+ this.reset();
200
+ this.placed(null);
201
+ }
202
+ /** Pull a moved window back inside its bounds after a size change. Reads
203
+ * layout, so it runs only on a resize or a restore, never per frame. */
204
+ refit() {
205
+ const spot = this.spot;
206
+ if (!spot || this.drag)
207
+ return;
208
+ const { win } = this.opts;
209
+ // A hidden window has no size to keep inside; it refits when it shows.
210
+ if (win.offsetWidth === 0 && win.offsetHeight === 0)
211
+ return;
212
+ const next = clampSpot(spot, { w: win.offsetWidth, h: win.offsetHeight }, this.bounds());
213
+ if (next.x === spot.x && next.y === spot.y)
214
+ return;
215
+ this.spot = next;
216
+ this.write(next);
217
+ }
218
+ /** The bounds in client coordinates: the element's padding box (the space
219
+ * `left` and `top` count from), or the browser window. */
220
+ /** The element the window moves inside, or null for the browser window. */
221
+ box() {
222
+ const within = this.opts.within;
223
+ return within === WITHIN_PARENT ? this.opts.win.parentElement : within;
224
+ }
225
+ bounds() {
226
+ const within = this.box();
227
+ if (!within) {
228
+ const root = this.opts.win.ownerDocument.documentElement;
229
+ return { left: 0, top: 0, w: root.clientWidth, h: root.clientHeight };
230
+ }
231
+ const r = within.getBoundingClientRect();
232
+ return { left: r.left + within.clientLeft, top: r.top + within.clientTop, w: within.clientWidth, h: within.clientHeight };
233
+ }
234
+ /** Place the window's top-left corner. `margin: 0` lets a centered dialog
235
+ * leave the center; the stage windows have no margin to lose. */
236
+ write(spot) {
237
+ const s = this.opts.win.style;
238
+ s.left = `${spot.x}px`;
239
+ s.top = `${spot.y}px`;
240
+ s.right = "auto";
241
+ s.bottom = "auto";
242
+ s.margin = "0";
243
+ }
244
+ }
245
+
246
+ export { MOVABLE_CLASS, MOVE_HINT, MovableWindow, WITHIN_PARENT, clampSpot, moverOf };
247
+ //# sourceMappingURL=movableWindow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"movableWindow.js","sources":["../../src/ui/movableWindow.ts"],"sourcesContent":["import { isPrimaryPress, noButtonHeld } from \"./overviewMapInput\";\n\n/**\n * Movable windows: the player drags a closable window (the Map, the facility\n * card, a dialog) by its navy title bar, the way a 1990s desktop window\n * moves, and a double-click on the title bar puts it back where the game\n * keeps it. The window always stays whole inside its bounds (the tower view,\n * or the browser window for a dialog), and when the bounds or the window\n * change size it is pulled back inside.\n *\n * The listeners sit on the window and look for the title bar with `closest`,\n * so a title bar that lit renders again (the facility card's does) keeps\n * working with no rewiring. A press on a control inside the title bar (the\n * close button) never starts a move, and neither does a press below the bar\n * (the Map's View dropdown sits there).\n *\n * Cost: a press measures the window and its bounds once; each move writes two\n * styles and reads nothing; a resize measures once. Nothing runs per frame.\n */\n\n/** A window's top-left corner, in its bounds' coordinates (CSS px). */\nexport interface Spot {\n readonly x: number;\n readonly y: number;\n}\n\n/** A width and a height (CSS px). */\nexport interface Extent {\n readonly w: number;\n readonly h: number;\n}\n\n/** The box a window moves inside, in client coordinates. */\nexport interface Bounds extends Extent {\n readonly left: number;\n readonly top: number;\n}\n\n/** Where a window of `size` may sit inside `bounds`: whole and inside, or, for\n * a window bigger than its bounds, with its top-left corner (the title bar)\n * inside. Whole pixels, so a moved window never lands on a half pixel. */\nexport function clampSpot(spot: Spot, size: Extent, bounds: Extent): Spot {\n const fit = (v: number, room: number) => Math.round(Math.max(0, Math.min(v, room)));\n return { x: fit(spot.x, bounds.w - size.w), y: fit(spot.y, bounds.h - size.h) };\n}\n\n/** The controls a title bar holds, which a press works rather than moves. */\nconst TITLE_CONTROLS = \"button, select, input, textarea, a\";\n\n/** The title bar's tooltip, so a player who wonders how to move a window\n * finds out by pointing at its bar. */\nexport const MOVE_HINT = \"Drag to move. Double-click to put it back.\";\n\n/** The class a movable window wears, which gives its title bar the move\n * cursor and keeps a touch on it from scrolling the page. */\nexport const MOVABLE_CLASS = \"win-movable\";\n\nexport interface MovableWindowOptions {\n /** The window that moves. Positioned (absolute in the stage, or a fixed\n * dialog), so `left` and `top` place it. */\n readonly win: HTMLElement;\n /** The title bar's selector, matched from the pressed element up to `win`. */\n readonly title: string;\n /** The box the window moves inside: an element's padding box, or the\n * browser window when null. `\"parent\"` reads the window's parent element\n * at each press, so a window the 1994 desk moves to another parent\n * (src/ui/desk/) keeps moving inside wherever it now sits. */\n readonly within: HTMLElement | null | typeof WITHIN_PARENT;\n /** Heard when a move ends with the spot the player chose, and with null when\n * a double-click puts the window back. */\n readonly placed?: (spot: Spot | null) => void;\n /** Heard on a double-click on the title bar in place of putting the window\n * back where the game keeps it (the desk's windows maximize instead). */\n readonly doubleClick?: () => void;\n /** Asked at each press; false keeps the window still (a maximized desk\n * window). Absent, the window always moves. */\n readonly canMove?: () => boolean;\n}\n\n/** `within` for a window that moves inside its current parent element. */\nexport const WITHIN_PARENT = \"parent\";\n\n/** Every movable window by its element, so the desk can place a window it\n * takes over and give it back (src/ui/desk/deskController.ts). */\nconst MOVERS = new WeakMap<HTMLElement, MovableWindow>();\n\n/** The mover of `win`, when one was made for it. */\nexport function moverOf(win: HTMLElement): MovableWindow | undefined {\n return MOVERS.get(win);\n}\n\n/** One move in progress: the pointer, where on the window it grabbed, and the\n * window's size and bounds, measured once at the press. */\ninterface Drag {\n readonly pointerId: number;\n readonly grabX: number;\n readonly grabY: number;\n readonly size: Extent;\n readonly bounds: Bounds;\n moved: boolean;\n}\n\nexport class MovableWindow {\n private spot: Spot | null = null;\n private drag: Drag | null = null;\n private readonly resizeObserver: ResizeObserver | null = null;\n private readonly onViewportResize = () => this.refit();\n /** Others hearing each move beside the window's owner (the 1994 desk). */\n private readonly hearers = new Set<(spot: Spot | null) => void>();\n private readonly listeners: ReadonlyArray<readonly [string, (e: Event) => void]>;\n\n constructor(private readonly opts: MovableWindowOptions) {\n const { win } = opts;\n win.classList.add(MOVABLE_CLASS);\n MOVERS.set(win, this);\n this.listeners = [\n [\"pointerdown\", (e) => this.down(e as PointerEvent)],\n [\"pointermove\", (e) => this.move(e as PointerEvent)],\n [\"pointerup\", (e) => this.end(e as PointerEvent)],\n [\"pointercancel\", (e) => this.end(e as PointerEvent)],\n [\"lostpointercapture\", (e) => this.end(e as PointerEvent)],\n [\"dblclick\", (e) => this.home(e)],\n [\"pointerover\", (e) => this.hint(e)],\n ];\n for (const [type, fn] of this.listeners) win.addEventListener(type, fn);\n if (typeof ResizeObserver !== \"undefined\") {\n this.resizeObserver = new ResizeObserver(() => this.refit());\n this.resizeObserver.observe(win);\n const box = this.box();\n if (box) this.resizeObserver.observe(box);\n }\n if (opts.within === WITHIN_PARENT || !opts.within) win.ownerDocument.defaultView?.addEventListener(\"resize\", this.onViewportResize);\n }\n\n /** Hear each move the player makes, as `placed` does; returns the unhook.\n * The desk keeps the game's own windows' places this way. */\n hear(fn: (spot: Spot | null) => void): () => void {\n this.hearers.add(fn);\n return () => this.hearers.delete(fn);\n }\n\n private placed(spot: Spot | null): void {\n this.opts.placed?.(spot);\n for (const fn of this.hearers) fn(spot);\n }\n\n /** Where the player put the window, or null while it sits where the game\n * keeps it. */\n placedAt(): Spot | null {\n return this.spot;\n }\n\n /** Whether the player has moved the window from where the game keeps it. */\n isPlaced(): boolean {\n return this.spot !== null;\n }\n\n /** Whether the window is the player's: moved, or pressed on its title bar\n * and about to move. A per-frame layout that would put the window back\n * asks this, so a press that has not moved yet is not undone by the next\n * frame (a touch press and its first move are frames apart). */\n isHeld(): boolean {\n return this.spot !== null || this.drag !== null;\n }\n\n /** Put the window at `spot` (a stored place), pulled inside its bounds when\n * the window has a size to measure; a hidden window is pulled in when it\n * shows, since showing it resizes it. */\n moveTo(spot: Spot): void {\n this.spot = spot;\n this.write(spot);\n this.refit();\n }\n\n /** Give the window back to its own layout. Free when it was not moved. */\n reset(): void {\n if (!this.spot && !this.drag) return;\n this.drag = null;\n if (!this.spot) return;\n this.spot = null;\n const s = this.opts.win.style;\n s.left = s.top = s.right = s.bottom = s.margin = \"\";\n }\n\n /** Remove the listeners. */\n dispose(): void {\n for (const [type, fn] of this.listeners) this.opts.win.removeEventListener(type, fn);\n if (MOVERS.get(this.opts.win) === this) MOVERS.delete(this.opts.win);\n this.resizeObserver?.disconnect();\n this.opts.win.ownerDocument.defaultView?.removeEventListener(\"resize\", this.onViewportResize);\n }\n\n /** The title bar a press landed on, or null for a press anywhere else or on\n * one of the title bar's own controls. */\n private titleOf(e: Event): HTMLElement | null {\n const target = e.target;\n if (!(target instanceof Element) || target.closest(TITLE_CONTROLS)) return null;\n const title = target.closest<HTMLElement>(this.opts.title);\n return title && this.opts.win.contains(title) ? title : null;\n }\n\n private down(e: PointerEvent): void {\n // A press by the pointer that holds the drag means its release was lost\n // (the title bar re-rendered under it, say): the new press starts over.\n if ((this.drag && this.drag.pointerId !== e.pointerId) || !isPrimaryPress(e)) return;\n this.drag = null;\n const title = this.titleOf(e);\n if (!title || this.opts.canMove?.() === false) return;\n const rect = this.opts.win.getBoundingClientRect();\n const bounds = this.bounds();\n this.drag = {\n pointerId: e.pointerId,\n grabX: e.clientX - rect.left,\n grabY: e.clientY - rect.top,\n size: { w: rect.width, h: rect.height },\n bounds,\n moved: false,\n };\n // No text selection and no focus change from a press on the bar.\n e.preventDefault();\n // The moves and the release come to the bar even off the window. A\n // pointer the browser no longer counts as down cannot be captured; the\n // window then still moves while the pointer stays over it.\n try {\n title.setPointerCapture(e.pointerId);\n } catch {\n /* not capturable: see above */\n }\n }\n\n private move(e: PointerEvent): void {\n const drag = this.drag;\n if (!drag || drag.pointerId !== e.pointerId) return;\n // A mouse or pen that moves with no button held let go somewhere this\n // window never heard: the move is over, and hovering moves nothing.\n if (e.pointerType !== \"touch\" && noButtonHeld(e)) {\n this.drag = null;\n if (drag.moved && this.spot) this.placed(this.spot);\n return;\n }\n const { bounds } = drag;\n const spot = clampSpot({ x: e.clientX - drag.grabX - bounds.left, y: e.clientY - drag.grabY - bounds.top }, drag.size, bounds);\n drag.moved = true;\n this.spot = spot;\n this.write(spot);\n }\n\n private end(e: PointerEvent): void {\n const drag = this.drag;\n if (!drag || drag.pointerId !== e.pointerId) return;\n this.drag = null;\n if (drag.moved && this.spot) this.placed(this.spot);\n }\n\n /** Name the move on the title bar's tooltip. Runs as the pointer enters\n * an element, never per move, and sets it once per title bar it finds\n * (a title bar lit renders again gets it on the next pointer over). */\n private hint(e: Event): void {\n const title = this.titleOf(e);\n if (title && title.title !== MOVE_HINT) title.title = MOVE_HINT;\n }\n\n /** A double-click on the title bar puts the window back where the game\n * keeps it. */\n private home(e: Event): void {\n if (this.opts.doubleClick) {\n if (this.titleOf(e)) this.opts.doubleClick();\n return;\n }\n if (!this.spot || !this.titleOf(e)) return;\n this.reset();\n this.placed(null);\n }\n\n /** Pull a moved window back inside its bounds after a size change. Reads\n * layout, so it runs only on a resize or a restore, never per frame. */\n private refit(): void {\n const spot = this.spot;\n if (!spot || this.drag) return;\n const { win } = this.opts;\n // A hidden window has no size to keep inside; it refits when it shows.\n if (win.offsetWidth === 0 && win.offsetHeight === 0) return;\n const next = clampSpot(spot, { w: win.offsetWidth, h: win.offsetHeight }, this.bounds());\n if (next.x === spot.x && next.y === spot.y) return;\n this.spot = next;\n this.write(next);\n }\n\n /** The bounds in client coordinates: the element's padding box (the space\n * `left` and `top` count from), or the browser window. */\n /** The element the window moves inside, or null for the browser window. */\n private box(): HTMLElement | null {\n const within = this.opts.within;\n return within === WITHIN_PARENT ? this.opts.win.parentElement : within;\n }\n\n private bounds(): Bounds {\n const within = this.box();\n if (!within) {\n const root = this.opts.win.ownerDocument.documentElement;\n return { left: 0, top: 0, w: root.clientWidth, h: root.clientHeight };\n }\n const r = within.getBoundingClientRect();\n return { left: r.left + within.clientLeft, top: r.top + within.clientTop, w: within.clientWidth, h: within.clientHeight };\n }\n\n /** Place the window's top-left corner. `margin: 0` lets a centered dialog\n * leave the center; the stage windows have no margin to lose. */\n private write(spot: Spot): void {\n const s = this.opts.win.style;\n s.left = `${spot.x}px`;\n s.top = `${spot.y}px`;\n s.right = \"auto\";\n s.bottom = \"auto\";\n s.margin = \"0\";\n }\n}\n"],"names":[],"mappings":";;AAsCA;;AAE2E;SAC3D,SAAS,CAAC,IAAU,EAAE,IAAY,EAAE,MAAc,EAAA;AAChE,IAAA,MAAM,GAAG,GAAG,CAAC,CAAS,EAAE,IAAY,KAAK,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAA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