@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,103 @@
1
+ import { edgeBand } from './extent.js';
2
+ import { lineToMapY } from './geometry.js';
3
+
4
+ /**
5
+ * The overview MAP window's backdrop and its view mark (#343): the sky and
6
+ * ground behind the tower, and the outline of what the main view shows, or
7
+ * the edge band and chevron when the view sits past the map's edge. Like
8
+ * `paint.ts`, it reads no simulation and takes a slice of a 2D context, so
9
+ * the tests drive it with a recording stub.
10
+ *
11
+ * Units are map (device) pixels; `px` is how many of them make one CSS pixel
12
+ * (the device pixel ratio), so lines keep their CSS width on any screen.
13
+ */
14
+ /** The sky and the ground behind the tower: a dark sky and earth, so the room
15
+ * colors read against them (the retail sky follows the time of day; v1 keeps
16
+ * one fixed color). */
17
+ const MAP_BACKDROP = { sky: "#1d2838", ground: "#2e2418" };
18
+ /** The floor line the street sits on: floor 1 (the ground floor) stands on it,
19
+ * and the basements are under it. */
20
+ const GROUND_LINE = 0;
21
+ /** The ground's top edge as a share of the map's height, 0 at the top and 1
22
+ * at the bottom, held to the map. The window turns it into the backdrop's
23
+ * color stop. */
24
+ function groundShare(layout) {
25
+ const share = lineToMapY(layout, GROUND_LINE) / layout.height;
26
+ return Number.isFinite(share) ? Math.max(0, Math.min(1, share)) : 1;
27
+ }
28
+ /** The view mark's ink: a solid white outline over a dark halo, so it reads
29
+ * over the room colors and over the dark sky. */
30
+ const VIEW_MARK = {
31
+ ink: "#ffffff",
32
+ halo: "rgba(0, 0, 0, 0.65)",
33
+ };
34
+ /** The outline's width and the edge band's thickness, in CSS pixels. */
35
+ const VIEW_MARK_CSS = { line: 1, haloLine: 3, band: 3, bandMinWidth: 12, chevron: 5, minSide: 4 };
36
+ /** A device-pixel count for a CSS width: at least one whole pixel. */
37
+ function devicePx(css, px) {
38
+ const ratio = Number.isFinite(px) && px > 0 ? px : 1;
39
+ return Math.max(1, Math.round(css * ratio));
40
+ }
41
+ /** The edge band drawn for a view past the map's edge, in the same whole
42
+ * device pixels the painter uses, so the window grabs exactly what it drew.
43
+ * Null when the view is on the map. */
44
+ function viewMarkBand(layout, placement, px) {
45
+ return edgeBand(layout, placement, devicePx(VIEW_MARK_CSS.band, px), devicePx(VIEW_MARK_CSS.bandMinWidth, px));
46
+ }
47
+ /** The rectangle grown about its center to at least `side` each way and kept
48
+ * on the map, so a zoomed-in view still shows as a visible mark. */
49
+ function visibleRect(layout, rect, side) {
50
+ const w = Math.min(layout.width, Math.max(rect.w, side));
51
+ const h = Math.min(layout.height, Math.max(rect.h, side));
52
+ const x = Math.max(0, Math.min(layout.width - w, rect.x + rect.w / 2 - w / 2));
53
+ const y = Math.max(0, Math.min(layout.height - h, rect.y + rect.h / 2 - h / 2));
54
+ return { x, y, w, h };
55
+ }
56
+ /**
57
+ * Clear the overlay and draw the view mark for `placement`: the outline of the
58
+ * visible area when it is on the map, or the edge band with a chevron
59
+ * pointing past the edge when the whole view lies beyond it. Returns what was
60
+ * drawn, which the tests read.
61
+ */
62
+ function paintViewMark(ctx, layout, placement, px) {
63
+ ctx.clearRect(0, 0, layout.width, layout.height);
64
+ if (placement.outside !== "none") {
65
+ const band = viewMarkBand(layout, placement, px);
66
+ if (!band)
67
+ return "none";
68
+ ctx.fillStyle = VIEW_MARK.ink;
69
+ ctx.fillRect(band.x, band.y, band.w, band.h);
70
+ paintChevron(ctx, band, placement.outside === "above", devicePx(VIEW_MARK_CSS.chevron, px));
71
+ return "band";
72
+ }
73
+ if (!(placement.rect.w > 0) || !(placement.rect.h > 0))
74
+ return "none";
75
+ const line = devicePx(VIEW_MARK_CSS.line, px);
76
+ const r = visibleRect(layout, placement.rect, devicePx(VIEW_MARK_CSS.minSide, px));
77
+ strokeInside(ctx, r, devicePx(VIEW_MARK_CSS.haloLine, px), VIEW_MARK.halo);
78
+ strokeInside(ctx, r, line, VIEW_MARK.ink);
79
+ return "outline";
80
+ }
81
+ /** A stroke that sits inside the rectangle, so the map's edge never clips it. */
82
+ function strokeInside(ctx, r, width, color) {
83
+ const w = Math.min(width, r.w / 2, r.h / 2);
84
+ ctx.lineWidth = w;
85
+ ctx.strokeStyle = color;
86
+ ctx.strokeRect(r.x + w / 2, r.y + w / 2, r.w - w, r.h - w);
87
+ }
88
+ /** A small triangle beside the band on the map's side, its tip touching the
89
+ * band, pointing past the map's edge. */
90
+ function paintChevron(ctx, band, up, size) {
91
+ const cx = band.x + band.w / 2;
92
+ const base = up ? band.y + band.h + size : band.y - size;
93
+ const tip = up ? band.y + band.h : band.y;
94
+ ctx.beginPath();
95
+ ctx.moveTo(cx - size, base);
96
+ ctx.lineTo(cx + size, base);
97
+ ctx.lineTo(cx, tip);
98
+ ctx.closePath();
99
+ ctx.fill();
100
+ }
101
+
102
+ export { GROUND_LINE, MAP_BACKDROP, VIEW_MARK, VIEW_MARK_CSS, groundShare, paintViewMark, viewMarkBand, visibleRect };
103
+ //# sourceMappingURL=viewMark.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"viewMark.js","sources":["../../../src/render/overviewMap/viewMark.ts"],"sourcesContent":["/**\n * The overview MAP window's backdrop and its view mark (#343): the sky and\n * ground behind the tower, and the outline of what the main view shows, or\n * the edge band and chevron when the view sits past the map's edge. Like\n * `paint.ts`, it reads no simulation and takes a slice of a 2D context, so\n * the tests drive it with a recording stub.\n *\n * Units are map (device) pixels; `px` is how many of them make one CSS pixel\n * (the device pixel ratio), so lines keep their CSS width on any screen.\n */\nimport { edgeBand, type ViewPlacement } from \"./extent\";\nimport { lineToMapY, type MapLayout, type MapRect } from \"./geometry\";\n\n/** The sky and the ground behind the tower: a dark sky and earth, so the room\n * colors read against them (the retail sky follows the time of day; v1 keeps\n * one fixed color). */\nexport const MAP_BACKDROP = { sky: \"#1d2838\", ground: \"#2e2418\" } as const;\n\n/** The floor line the street sits on: floor 1 (the ground floor) stands on it,\n * and the basements are under it. */\nexport const GROUND_LINE = 0;\n\n/** The ground's top edge as a share of the map's height, 0 at the top and 1\n * at the bottom, held to the map. The window turns it into the backdrop's\n * color stop. */\nexport function groundShare(layout: MapLayout): number {\n const share = lineToMapY(layout, GROUND_LINE) / layout.height;\n return Number.isFinite(share) ? Math.max(0, Math.min(1, share)) : 1;\n}\n\n/** The view mark's ink: a solid white outline over a dark halo, so it reads\n * over the room colors and over the dark sky. */\nexport const VIEW_MARK = {\n ink: \"#ffffff\",\n halo: \"rgba(0, 0, 0, 0.65)\",\n} as const;\n\n/** The outline's width and the edge band's thickness, in CSS pixels. */\nexport const VIEW_MARK_CSS = { line: 1, haloLine: 3, band: 3, bandMinWidth: 12, chevron: 5, minSide: 4 } as const;\n\n/** The slice of a 2D context the view mark uses. */\nexport interface ViewMarkContext {\n fillStyle: string | CanvasGradient | CanvasPattern;\n strokeStyle: string | CanvasGradient | CanvasPattern;\n lineWidth: number;\n clearRect(x: number, y: number, w: number, h: number): void;\n fillRect(x: number, y: number, w: number, h: number): void;\n strokeRect(x: number, y: number, w: number, h: number): void;\n beginPath(): void;\n moveTo(x: number, y: number): void;\n lineTo(x: number, y: number): void;\n closePath(): void;\n fill(): void;\n}\n\n/** A device-pixel count for a CSS width: at least one whole pixel. */\nfunction devicePx(css: number, px: number): number {\n const ratio = Number.isFinite(px) && px > 0 ? px : 1;\n return Math.max(1, Math.round(css * ratio));\n}\n\n/** The edge band drawn for a view past the map's edge, in the same whole\n * device pixels the painter uses, so the window grabs exactly what it drew.\n * Null when the view is on the map. */\nexport function viewMarkBand(layout: MapLayout, placement: ViewPlacement, px: number): MapRect | null {\n return edgeBand(layout, placement, devicePx(VIEW_MARK_CSS.band, px), devicePx(VIEW_MARK_CSS.bandMinWidth, px));\n}\n\n/** The rectangle grown about its center to at least `side` each way and kept\n * on the map, so a zoomed-in view still shows as a visible mark. */\nexport function visibleRect(layout: MapLayout, rect: MapRect, side: number): MapRect {\n const w = Math.min(layout.width, Math.max(rect.w, side));\n const h = Math.min(layout.height, Math.max(rect.h, side));\n const x = Math.max(0, Math.min(layout.width - w, rect.x + rect.w / 2 - w / 2));\n const y = Math.max(0, Math.min(layout.height - h, rect.y + rect.h / 2 - h / 2));\n return { x, y, w, h };\n}\n\n/**\n * Clear the overlay and draw the view mark for `placement`: the outline of the\n * visible area when it is on the map, or the edge band with a chevron\n * pointing past the edge when the whole view lies beyond it. Returns what was\n * drawn, which the tests read.\n */\nexport function paintViewMark(\n ctx: ViewMarkContext,\n layout: MapLayout,\n placement: ViewPlacement,\n px: number,\n): \"outline\" | \"band\" | \"none\" {\n ctx.clearRect(0, 0, layout.width, layout.height);\n if (placement.outside !== \"none\") {\n const band = viewMarkBand(layout, placement, px);\n if (!band) return \"none\";\n ctx.fillStyle = VIEW_MARK.ink;\n ctx.fillRect(band.x, band.y, band.w, band.h);\n paintChevron(ctx, band, placement.outside === \"above\", devicePx(VIEW_MARK_CSS.chevron, px));\n return \"band\";\n }\n if (!(placement.rect.w > 0) || !(placement.rect.h > 0)) return \"none\";\n const line = devicePx(VIEW_MARK_CSS.line, px);\n const r = visibleRect(layout, placement.rect, devicePx(VIEW_MARK_CSS.minSide, px));\n strokeInside(ctx, r, devicePx(VIEW_MARK_CSS.haloLine, px), VIEW_MARK.halo);\n strokeInside(ctx, r, line, VIEW_MARK.ink);\n return \"outline\";\n}\n\n/** A stroke that sits inside the rectangle, so the map's edge never clips it. */\nfunction strokeInside(ctx: ViewMarkContext, r: MapRect, width: number, color: string): void {\n const w = Math.min(width, r.w / 2, r.h / 2);\n ctx.lineWidth = w;\n ctx.strokeStyle = color;\n ctx.strokeRect(r.x + w / 2, r.y + w / 2, r.w - w, r.h - w);\n}\n\n/** A small triangle beside the band on the map's side, its tip touching the\n * band, pointing past the map's edge. */\nfunction paintChevron(ctx: ViewMarkContext, band: MapRect, up: boolean, size: number): void {\n const cx = band.x + band.w / 2;\n const base = up ? band.y + band.h + size : band.y - size;\n const tip = up ? band.y + band.h : band.y;\n ctx.beginPath();\n ctx.moveTo(cx - size, base);\n ctx.lineTo(cx + size, base);\n ctx.lineTo(cx, tip);\n ctx.closePath();\n ctx.fill();\n}\n"],"names":[],"mappings":";;;AAAA;;;;;;;;;AASG;AAIH;;AAEwB;AACjB,MAAM,YAAY,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS;AAE/D;AACsC;AAC/B,MAAM,WAAW,GAAG;AAE3B;;AAEkB;AACZ,SAAU,WAAW,CAAC,MAAiB,EAAA;AAC3C,IAAA,MAAM,KAAK,GAAG,UAAU,CAAC,MAAM,EAAE,WAAW,CAAC,GAAG,MAAM,CAAC,MAAM;AAC7D,IAAA,OAAO,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,CAAC;AACrE;AAEA;AACkD;AAC3C,MAAM,SAAS,GAAG;AACvB,I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,GAAG,IAAI,CAAC,CAAC,GAAG,IAAI;AACxD,IAAA,MAAM,GAAG,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IACzC,GAAG,CAAC,SAAS,EAAE;IACf,GAAG,CAAC,MAAM,CAAC,EAAE,GAAG,IAAI,EAAE,IAAI,CAAC;IAC3B,GAAG,CAAC,MAAM,CAAC,EAAE,GAAG,IAAI,EAAE,IAAI,CAAC;AAC3B,IAAA,GAAG,CAAC,MAAM,CAAC,EAAE,EAAE,GAAG,CAAC;IACnB,GAAG,CAAC,SAAS,EAAE;IACf,GAAG,CAAC,IAAI,EAAE;AACZ;;"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * The overview MAP window's views (#343 S6 to S9), in the View dropdown's
3
+ * order: the original's four (Edit, Eval, Pricing, Hotel), then Traffic and
4
+ * Occupancy. Edit is today's map, Hotel marks the rooms that need
5
+ * housekeeping (S6), Eval and Pricing color the rooms by the tiers the engine
6
+ * gives (S8), and Traffic and Occupancy color each floor by the engine's
7
+ * congestion and occupancy (S9), the two Floor heatmap modes the Map took
8
+ * over from the sidebar. A view is one entry here plus its painter, so the
9
+ * dropdown needs no change. Every view shows in both game modes (owner,
10
+ * 2026-11-10), which the Map draws the same way.
11
+ */
12
+ /** A view the map can show. */
13
+ export type MapViewId = "edit" | "eval" | "pricing" | "hotel" | "traffic" | "occupancy";
14
+ export interface MapViewEntry {
15
+ readonly id: MapViewId;
16
+ /** The view's name in the dropdown. */
17
+ readonly label: string;
18
+ }
19
+ /** Every view, in the dropdown's order. */
20
+ export declare const MAP_VIEWS: ReadonlyArray<MapViewEntry>;
21
+ /** The view a new window starts on, as in the original. */
22
+ export declare const DEFAULT_MAP_VIEW: MapViewId;
23
+ /** The view's entry, or undefined for an id the list does not have. */
24
+ export declare function mapViewEntry(id: MapViewId, views?: ReadonlyArray<MapViewEntry>): MapViewEntry | undefined;
@@ -0,0 +1,29 @@
1
+ /**
2
+ * The overview MAP window's views (#343 S6 to S9), in the View dropdown's
3
+ * order: the original's four (Edit, Eval, Pricing, Hotel), then Traffic and
4
+ * Occupancy. Edit is today's map, Hotel marks the rooms that need
5
+ * housekeeping (S6), Eval and Pricing color the rooms by the tiers the engine
6
+ * gives (S8), and Traffic and Occupancy color each floor by the engine's
7
+ * congestion and occupancy (S9), the two Floor heatmap modes the Map took
8
+ * over from the sidebar. A view is one entry here plus its painter, so the
9
+ * dropdown needs no change. Every view shows in both game modes (owner,
10
+ * 2026-11-10), which the Map draws the same way.
11
+ */
12
+ /** Every view, in the dropdown's order. */
13
+ const MAP_VIEWS = [
14
+ { id: "edit", label: "Edit" },
15
+ { id: "eval", label: "Eval" },
16
+ { id: "pricing", label: "Pricing" },
17
+ { id: "hotel", label: "Hotel" },
18
+ { id: "traffic", label: "Traffic" },
19
+ { id: "occupancy", label: "Occupancy" },
20
+ ];
21
+ /** The view a new window starts on, as in the original. */
22
+ const DEFAULT_MAP_VIEW = "edit";
23
+ /** The view's entry, or undefined for an id the list does not have. */
24
+ function mapViewEntry(id, views = MAP_VIEWS) {
25
+ return views.find((view) => view.id === id);
26
+ }
27
+
28
+ export { DEFAULT_MAP_VIEW, MAP_VIEWS, mapViewEntry };
29
+ //# sourceMappingURL=views.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"views.js","sources":["../../../src/render/overviewMap/views.ts"],"sourcesContent":["/**\n * The overview MAP window's views (#343 S6 to S9), in the View dropdown's\n * order: the original's four (Edit, Eval, Pricing, Hotel), then Traffic and\n * Occupancy. Edit is today's map, Hotel marks the rooms that need\n * housekeeping (S6), Eval and Pricing color the rooms by the tiers the engine\n * gives (S8), and Traffic and Occupancy color each floor by the engine's\n * congestion and occupancy (S9), the two Floor heatmap modes the Map took\n * over from the sidebar. A view is one entry here plus its painter, so the\n * dropdown needs no change. Every view shows in both game modes (owner,\n * 2026-11-10), which the Map draws the same way.\n */\n\n/** A view the map can show. */\nexport type MapViewId = \"edit\" | \"eval\" | \"pricing\" | \"hotel\" | \"traffic\" | \"occupancy\";\n\nexport interface MapViewEntry {\n readonly id: MapViewId;\n /** The view's name in the dropdown. */\n readonly label: string;\n}\n\n/** Every view, in the dropdown's order. */\nexport const MAP_VIEWS: ReadonlyArray<MapViewEntry> = [\n { id: \"edit\", label: \"Edit\" },\n { id: \"eval\", label: \"Eval\" },\n { id: \"pricing\", label: \"Pricing\" },\n { id: \"hotel\", label: \"Hotel\" },\n { id: \"traffic\", label: \"Traffic\" },\n { id: \"occupancy\", label: \"Occupancy\" },\n];\n\n/** The view a new window starts on, as in the original. */\nexport const DEFAULT_MAP_VIEW: MapViewId = \"edit\";\n\n/** The view's entry, or undefined for an id the list does not have. */\nexport function mapViewEntry(id: MapViewId, views: ReadonlyArray<MapViewEntry> = MAP_VIEWS): MapViewEntry | undefined {\n return views.find((view) => view.id === id);\n}\n"],"names":[],"mappings":"AAAA;;;;;;;;;;AAUG;AAWH;AACO,MAAM,SAAS,GAAgC;AACpD,IAAA,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;AAC7B,IAAA,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;AAC7B,IAAA,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;AACnC,IAAA,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;AAC/B,IAAA,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;AACnC,IAAA,EAAE,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;;AAGzC;AACO,MAAM,gBAAgB,GAAc;AAE3C;SACgB,YAAY,CAAC,EAAa,EAAE,QAAqC,SAAS,EAAA;AACxF,IAAA,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC;AAC7C;;"}
@@ -0,0 +1,91 @@
1
+ /**
2
+ * Pure multi-touch contact tracking and pinch lifecycle, split out of the
3
+ * Excalibur-bound {@link TowerEngine} (like {@link cameraBounds}) so the state
4
+ * machine can be unit-tested without a canvas/WebGL context.
5
+ *
6
+ * Why this exists: Excalibur 0.32 renumbers its public `pointerId` on every
7
+ * event (it is the index of the native id in the sorted set of currently
8
+ * active native ids, pruned only on `up`). When the first-placed finger of a
9
+ * pinch lifts first, the surviving finger's later events arrive under a
10
+ * DIFFERENT id than its `down`, so a map keyed by Excalibur's id strands a
11
+ * phantom entry forever. One phantom makes every later one-finger press look
12
+ * like a two-finger pinch: the camera zooms erratically ("stuck" zoom) and
13
+ * taps are swallowed before placement ever runs. See the investigation at
14
+ * _bmad-output/implementation-artifacts/investigations/
15
+ * mobile-zoom-placement-investigation.md.
16
+ */
17
+ /** The per-contact-stable pointer id: the native DOM `pointerId` when the
18
+ * wrapped event carries one, else the engine's own id mapped into a disjoint
19
+ * negative key space. Native ids are stable for the lifetime of a contact on
20
+ * every PointerEvent browser, which is the property the contact map needs
21
+ * and Excalibur's renumbered id lacks. */
22
+ export declare function stablePointerId(engineId: number, nativeEvent: unknown): number;
23
+ /** A screen-space contact position. */
24
+ export interface ContactPoint {
25
+ x: number;
26
+ y: number;
27
+ }
28
+ /** Camera delta for one pinch move: pan by the midpoint delta, scale by the
29
+ * finger-distance ratio about the midpoint (the standard map gesture).
30
+ * `zoom` is 1 when the stored baseline distance was 0 (identical points). */
31
+ export interface PinchMove {
32
+ panDx: number;
33
+ panDy: number;
34
+ zoom: number;
35
+ cx: number;
36
+ cy: number;
37
+ }
38
+ /** Outcome of removing a contact.
39
+ * - `"none"`: no pinch was live; the caller runs its normal single-pointer
40
+ * release path.
41
+ * - `"continues"`: a pinch stays live on the remaining contacts (re-baselined
42
+ * so the next move can't jump); the caller just swallows the release.
43
+ * - `"ended"`: the pinch is over. `survivor` is the last tracked position of
44
+ * the one remaining contact (the caller hands it a pan continuation), or
45
+ * null when no contact remains. */
46
+ export type PinchUp = {
47
+ pinch: "none";
48
+ } | {
49
+ pinch: "continues";
50
+ } | {
51
+ pinch: "ended";
52
+ survivor: ContactPoint | null;
53
+ };
54
+ /**
55
+ * Tracks live pointer contacts by a caller-supplied STABLE id and owns the
56
+ * pinch lifecycle. Callers feed it down/move/up (routing `cancel` through
57
+ * `up`) and act on the returned transitions; it never touches the DOM or the
58
+ * engine.
59
+ */
60
+ export declare class PinchTracker {
61
+ private contacts;
62
+ private pinch;
63
+ /** Number of live contacts. */
64
+ get size(): number;
65
+ /** Whether a two-finger pinch is currently live. */
66
+ get pinching(): boolean;
67
+ /** Whether this pointer is a live (pressed) contact. A hovering mouse on
68
+ * hybrid hardware moves without ever pressing, so it is never tracked;
69
+ * gesture handlers use this to ignore such moves while a contact is down. */
70
+ tracks(id: number): boolean;
71
+ /** Register a press.
72
+ * - `"single"`: this is the only live contact; the caller classifies its
73
+ * own pan/action gesture as usual.
74
+ * - `"pinch-start"`: this press formed the second live contact; the caller
75
+ * cancels any single-pointer gesture and clears build previews.
76
+ * - `"pinch-extra"`: a third-or-later finger landed; the caller ignores it
77
+ * (the pinch keeps reading the first two live contacts). */
78
+ down(id: number, x: number, y: number): "single" | "pinch-start" | "pinch-extra";
79
+ /** Update a contact's position (ignored for untracked ids). While a pinch is
80
+ * live, returns the camera delta for this move and re-baselines; otherwise
81
+ * returns null and the caller runs its normal pan/action/hover move path. */
82
+ move(id: number, x: number, y: number): PinchMove | null;
83
+ /** Remove a contact (pointer up OR cancel). See {@link PinchUp}. */
84
+ up(id: number): PinchUp;
85
+ /** Drop every contact and any live pinch (e.g. a full input reset). */
86
+ reset(): void;
87
+ /** The two live contacts the pinch reads (insertion order), or null. */
88
+ private firstTwo;
89
+ /** Seed the pinch baseline from the current first two contacts. */
90
+ private baseline;
91
+ }
@@ -0,0 +1,145 @@
1
+ /**
2
+ * Pure multi-touch contact tracking and pinch lifecycle, split out of the
3
+ * Excalibur-bound {@link TowerEngine} (like {@link cameraBounds}) so the state
4
+ * machine can be unit-tested without a canvas/WebGL context.
5
+ *
6
+ * Why this exists: Excalibur 0.32 renumbers its public `pointerId` on every
7
+ * event (it is the index of the native id in the sorted set of currently
8
+ * active native ids, pruned only on `up`). When the first-placed finger of a
9
+ * pinch lifts first, the surviving finger's later events arrive under a
10
+ * DIFFERENT id than its `down`, so a map keyed by Excalibur's id strands a
11
+ * phantom entry forever. One phantom makes every later one-finger press look
12
+ * like a two-finger pinch: the camera zooms erratically ("stuck" zoom) and
13
+ * taps are swallowed before placement ever runs. See the investigation at
14
+ * _bmad-output/implementation-artifacts/investigations/
15
+ * mobile-zoom-placement-investigation.md.
16
+ */
17
+ /** The per-contact-stable pointer id: the native DOM `pointerId` when the
18
+ * wrapped event carries one, else the engine's own id mapped into a disjoint
19
+ * negative key space. Native ids are stable for the lifetime of a contact on
20
+ * every PointerEvent browser, which is the property the contact map needs
21
+ * and Excalibur's renumbered id lacks. */
22
+ function stablePointerId(engineId, nativeEvent) {
23
+ if (typeof nativeEvent === "object" && nativeEvent !== null && "pointerId" in nativeEvent) {
24
+ const id = nativeEvent.pointerId;
25
+ if (typeof id === "number" && Number.isFinite(id))
26
+ return id;
27
+ }
28
+ // Fallback ids live in a disjoint (negative) key space: native pointerIds
29
+ // are non-negative, so a contact tracked by a native id can never be
30
+ // overwritten by one tracked via the fallback (e.g. the legacy TouchEvent
31
+ // path), even if their raw numbers collide.
32
+ return -1 - engineId;
33
+ }
34
+ /**
35
+ * Tracks live pointer contacts by a caller-supplied STABLE id and owns the
36
+ * pinch lifecycle. Callers feed it down/move/up (routing `cancel` through
37
+ * `up`) and act on the returned transitions; it never touches the DOM or the
38
+ * engine.
39
+ */
40
+ class PinchTracker {
41
+ constructor() {
42
+ this.contacts = new Map();
43
+ this.pinch = null;
44
+ }
45
+ /** Number of live contacts. */
46
+ get size() {
47
+ return this.contacts.size;
48
+ }
49
+ /** Whether a two-finger pinch is currently live. */
50
+ get pinching() {
51
+ return this.pinch !== null;
52
+ }
53
+ /** Whether this pointer is a live (pressed) contact. A hovering mouse on
54
+ * hybrid hardware moves without ever pressing, so it is never tracked;
55
+ * gesture handlers use this to ignore such moves while a contact is down. */
56
+ tracks(id) {
57
+ return this.contacts.has(id);
58
+ }
59
+ /** Register a press.
60
+ * - `"single"`: this is the only live contact; the caller classifies its
61
+ * own pan/action gesture as usual.
62
+ * - `"pinch-start"`: this press formed the second live contact; the caller
63
+ * cancels any single-pointer gesture and clears build previews.
64
+ * - `"pinch-extra"`: a third-or-later finger landed; the caller ignores it
65
+ * (the pinch keeps reading the first two live contacts). */
66
+ down(id, x, y) {
67
+ this.contacts.set(id, { x, y });
68
+ if (this.contacts.size === 1)
69
+ return "single";
70
+ if (this.contacts.size === 2 && !this.pinch) {
71
+ this.baseline();
72
+ return "pinch-start";
73
+ }
74
+ return "pinch-extra";
75
+ }
76
+ /** Update a contact's position (ignored for untracked ids). While a pinch is
77
+ * live, returns the camera delta for this move and re-baselines; otherwise
78
+ * returns null and the caller runs its normal pan/action/hover move path. */
79
+ move(id, x, y) {
80
+ const c = this.contacts.get(id);
81
+ if (c) {
82
+ c.x = x;
83
+ c.y = y;
84
+ }
85
+ if (!this.pinch)
86
+ return null;
87
+ const pts = this.firstTwo();
88
+ if (!pts)
89
+ return null;
90
+ const dist = Math.hypot(pts[0].x - pts[1].x, pts[0].y - pts[1].y);
91
+ const mx = (pts[0].x + pts[1].x) / 2;
92
+ const my = (pts[0].y + pts[1].y) / 2;
93
+ const out = {
94
+ panDx: mx - this.pinch.mx,
95
+ panDy: my - this.pinch.my,
96
+ zoom: this.pinch.dist > 0 ? dist / this.pinch.dist : 1,
97
+ cx: mx,
98
+ cy: my,
99
+ };
100
+ this.pinch = { dist, mx, my };
101
+ return out;
102
+ }
103
+ /** Remove a contact (pointer up OR cancel). See {@link PinchUp}. */
104
+ up(id) {
105
+ this.contacts.delete(id);
106
+ if (!this.pinch)
107
+ return { pinch: "none" };
108
+ if (this.contacts.size >= 2) {
109
+ // The pinch carries on with the remaining fingers: re-baseline so the
110
+ // next move measures from THEIR distance/midpoint, not the lifted
111
+ // finger's (a stale baseline would jolt the camera).
112
+ this.baseline();
113
+ return { pinch: "continues" };
114
+ }
115
+ this.pinch = null;
116
+ const survivor = this.contacts.size === 1 ? { ...this.contacts.values().next().value } : null;
117
+ return { pinch: "ended", survivor };
118
+ }
119
+ /** Drop every contact and any live pinch (e.g. a full input reset). */
120
+ reset() {
121
+ this.contacts.clear();
122
+ this.pinch = null;
123
+ }
124
+ /** The two live contacts the pinch reads (insertion order), or null. */
125
+ firstTwo() {
126
+ if (this.contacts.size < 2)
127
+ return null;
128
+ const it = this.contacts.values();
129
+ return [it.next().value, it.next().value];
130
+ }
131
+ /** Seed the pinch baseline from the current first two contacts. */
132
+ baseline() {
133
+ const pts = this.firstTwo();
134
+ if (!pts)
135
+ return;
136
+ this.pinch = {
137
+ dist: Math.hypot(pts[0].x - pts[1].x, pts[0].y - pts[1].y),
138
+ mx: (pts[0].x + pts[1].x) / 2,
139
+ my: (pts[0].y + pts[1].y) / 2,
140
+ };
141
+ }
142
+ }
143
+
144
+ export { PinchTracker, stablePointerId };
145
+ //# sourceMappingURL=pinchTracker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pinchTracker.js","sources":["../../src/render/pinchTracker.ts"],"sourcesContent":["/**\n * Pure multi-touch contact tracking and pinch lifecycle, split out of the\n * Excalibur-bound {@link TowerEngine} (like {@link cameraBounds}) so the state\n * machine can be unit-tested without a canvas/WebGL context.\n *\n * Why this exists: Excalibur 0.32 renumbers its public `pointerId` on every\n * event (it is the index of the native id in the sorted set of currently\n * active native ids, pruned only on `up`). When the first-placed finger of a\n * pinch lifts first, the surviving finger's later events arrive under a\n * DIFFERENT id than its `down`, so a map keyed by Excalibur's id strands a\n * phantom entry forever. One phantom makes every later one-finger press look\n * like a two-finger pinch: the camera zooms erratically (\"stuck\" zoom) and\n * taps are swallowed before placement ever runs. See the investigation at\n * _bmad-output/implementation-artifacts/investigations/\n * mobile-zoom-placement-investigation.md.\n */\n\n/** The per-contact-stable pointer id: the native DOM `pointerId` when the\n * wrapped event carries one, else the engine's own id mapped into a disjoint\n * negative key space. Native ids are stable for the lifetime of a contact on\n * every PointerEvent browser, which is the property the contact map needs\n * and Excalibur's renumbered id lacks. */\nexport function stablePointerId(engineId: number, nativeEvent: unknown): number {\n if (typeof nativeEvent === \"object\" && nativeEvent !== null && \"pointerId\" in nativeEvent) {\n const id = (nativeEvent as { pointerId: unknown }).pointerId;\n if (typeof id === \"number\" && Number.isFinite(id)) return id;\n }\n // Fallback ids live in a disjoint (negative) key space: native pointerIds\n // are non-negative, so a contact tracked by a native id can never be\n // overwritten by one tracked via the fallback (e.g. the legacy TouchEvent\n // path), even if their raw numbers collide.\n return -1 - engineId;\n}\n\n/** A screen-space contact position. */\nexport interface ContactPoint {\n x: number;\n y: number;\n}\n\n/** Camera delta for one pinch move: pan by the midpoint delta, scale by the\n * finger-distance ratio about the midpoint (the standard map gesture).\n * `zoom` is 1 when the stored baseline distance was 0 (identical points). */\nexport interface PinchMove {\n panDx: number;\n panDy: number;\n zoom: number;\n cx: number;\n cy: number;\n}\n\n/** Outcome of removing a contact.\n * - `\"none\"`: no pinch was live; the caller runs its normal single-pointer\n * release path.\n * - `\"continues\"`: a pinch stays live on the remaining contacts (re-baselined\n * so the next move can't jump); the caller just swallows the release.\n * - `\"ended\"`: the pinch is over. `survivor` is the last tracked position of\n * the one remaining contact (the caller hands it a pan continuation), or\n * null when no contact remains. */\nexport type PinchUp =\n | { pinch: \"none\" }\n | { pinch: \"continues\" }\n | { pinch: \"ended\"; survivor: ContactPoint | null };\n\n/**\n * Tracks live pointer contacts by a caller-supplied STABLE id and owns the\n * pinch lifecycle. Callers feed it down/move/up (routing `cancel` through\n * `up`) and act on the returned transitions; it never touches the DOM or the\n * engine.\n */\nexport class PinchTracker {\n private contacts = new Map<number, ContactPoint>();\n private pinch: { dist: number; mx: number; my: number } | null = null;\n\n /** Number of live contacts. */\n get size(): number {\n return this.contacts.size;\n }\n\n /** Whether a two-finger pinch is currently live. */\n get pinching(): boolean {\n return this.pinch !== null;\n }\n\n /** Whether this pointer is a live (pressed) contact. A hovering mouse on\n * hybrid hardware moves without ever pressing, so it is never tracked;\n * gesture handlers use this to ignore such moves while a contact is down. */\n tracks(id: number): boolean {\n return this.contacts.has(id);\n }\n\n /** Register a press.\n * - `\"single\"`: this is the only live contact; the caller classifies its\n * own pan/action gesture as usual.\n * - `\"pinch-start\"`: this press formed the second live contact; the caller\n * cancels any single-pointer gesture and clears build previews.\n * - `\"pinch-extra\"`: a third-or-later finger landed; the caller ignores it\n * (the pinch keeps reading the first two live contacts). */\n down(id: number, x: number, y: number): \"single\" | \"pinch-start\" | \"pinch-extra\" {\n this.contacts.set(id, { x, y });\n if (this.contacts.size === 1) return \"single\";\n if (this.contacts.size === 2 && !this.pinch) {\n this.baseline();\n return \"pinch-start\";\n }\n return \"pinch-extra\";\n }\n\n /** Update a contact's position (ignored for untracked ids). While a pinch is\n * live, returns the camera delta for this move and re-baselines; otherwise\n * returns null and the caller runs its normal pan/action/hover move path. */\n move(id: number, x: number, y: number): PinchMove | null {\n const c = this.contacts.get(id);\n if (c) {\n c.x = x;\n c.y = y;\n }\n if (!this.pinch) return null;\n const pts = this.firstTwo();\n if (!pts) return null;\n const dist = Math.hypot(pts[0].x - pts[1].x, pts[0].y - pts[1].y);\n const mx = (pts[0].x + pts[1].x) / 2;\n const my = (pts[0].y + pts[1].y) / 2;\n const out: PinchMove = {\n panDx: mx - this.pinch.mx,\n panDy: my - this.pinch.my,\n zoom: this.pinch.dist > 0 ? dist / this.pinch.dist : 1,\n cx: mx,\n cy: my,\n };\n this.pinch = { dist, mx, my };\n return out;\n }\n\n /** Remove a contact (pointer up OR cancel). See {@link PinchUp}. */\n up(id: number): PinchUp {\n this.contacts.delete(id);\n if (!this.pinch) return { pinch: \"none\" };\n if (this.contacts.size >= 2) {\n // The pinch carries on with the remaining fingers: re-baseline so the\n // next move measures from THEIR distance/midpoint, not the lifted\n // finger's (a stale baseline would jolt the camera).\n this.baseline();\n return { pinch: \"continues\" };\n }\n this.pinch = null;\n const survivor = this.contacts.size === 1 ? { ...this.contacts.values().next().value! } : null;\n return { pinch: \"ended\", survivor };\n }\n\n /** Drop every contact and any live pinch (e.g. a full input reset). */\n reset(): void {\n this.contacts.clear();\n this.pinch = null;\n }\n\n /** The two live contacts the pinch reads (insertion order), or null. */\n private firstTwo(): [ContactPoint, ContactPoint] | null {\n if (this.contacts.size < 2) return null;\n const it = this.contacts.values();\n return [it.next().value!, it.next().value!];\n }\n\n /** Seed the pinch baseline from the current first two contacts. */\n private baseline(): void {\n const pts = this.firstTwo();\n if (!pts) return;\n this.pinch = {\n dist: Math.hypot(pts[0].x - pts[1].x, pts[0].y - pts[1].y),\n mx: (pts[0].x + pts[1].x) / 2,\n my: (pts[0].y + pts[1].y) / 2,\n };\n }\n}\n"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;AAeG;AAEH;;;;AAI2C;AACrC,SAAU,eAAe,CAAC,QAAgB,EAAE,WAAoB,EAAA;AACpE,IAAA,IAAI,OAAO,WAAW,KAAK,QAAQ,IAAI,WAAW,KAAK,IAAI,IAAI,WAAW,IAAI,WAAW,EAAE;AACzF,QAAA,MAAM,EAAE,GAAI,WAAsC,CAAC,SAAS;QAC5D,IAAI,OAAO,EAAE,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;AAAE,YAAA,OAAO,EAAE;IAC9D;;;;;AAKA,IAAA,OAAO,CAAC,CAAC,GAAG,QAAQ;AACtB;AAgCA;;;;;AAKG;MACU,YAAY,CAAA;AAAzB,IAAA,WAAA,GAAA;AACU,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,GAAG,EAAwB;QAC1C,IAAA,CAAA,KAAK,GAAoD,IAAI;IAqGvE;;AAlGE,IAAA,IAAI,IAAI,GAAA;AACN,QAAA,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI;IAC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"../../simport/view";
2
+ import { type RoomCtx } from "./common";
3
+ /**
4
+ * Modern Amusements art: an arcade / games hall with four attraction types
5
+ * (classic cabinets, a VR lounge, a claw parlor, and a mini-golf bay). Every
6
+ * attraction keeps one anchor shape, the neon marquee band across the top, and
7
+ * its subtype furnishes the rest, so a Classic Arcade and a Mini Golf read as
8
+ * clearly different rooms. The look tables and the draw body live here; the
9
+ * kind is Modern-only (never exported to the 1994 TDT) so nothing here carries
10
+ * an ordinal.
11
+ *
12
+ * Drawing reads only bake-signature inputs (subtype via the look, the real
13
+ * occupant count, `lit`, and a stable geography seed), so a placed room stays
14
+ * cacheable, an empty hall reads empty, a full one full, and a TDT id renumber
15
+ * never reshuffles the crowd.
16
+ */
17
+ export interface AmusementsLook {
18
+ wall: string;
19
+ floor: string;
20
+ /** The marquee / accent neon color; the attraction's glowing elements pick
21
+ * their own screen hues, but the marquee and trim read this. */
22
+ neon: string;
23
+ /** Which attraction fills the hall. 1:1 with the subtype, so the look table
24
+ * stays trivially pairwise-distinct. */
25
+ attraction: "arcade" | "vr" | "claw" | "golf";
26
+ }
27
+ export declare const AMUSEMENTS_DEFAULT: AmusementsLook;
28
+ export declare const AMUSEMENTS_LOOKS: Record<string, AmusementsLook>;
29
+ /** The Modern Amusements hall. Reused for every attraction subtype; the look's
30
+ * `attraction` discriminant picks the interior so a Classic Arcade, VR Lounge,
31
+ * Claw Parlor, and Mini Golf each render as their own room. */
32
+ export declare function amusements(d: RoomCtx, u: UnitView, x: number, y: number, w: number, h: number): void;