@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,173 @@
1
+ /* High Contrast (Options > Appearance…, Wren's ask, party 2026-11-17):
2
+ white on black, yellow title bars and selection (text 9:1 or better,
3
+ greyed-out text #8a8a8a 6.6:1, non-text lines 3:1 or better),
4
+ solid lines instead of bevels. Scoped to html[data-scheme="high_contrast"];
5
+ style only. The system's forced-colors mode still wins. */
6
+ html[data-scheme="high_contrast"] body {
7
+ color: #ffffff;
8
+ }
9
+ html[data-scheme="high_contrast"] .win {
10
+ box-shadow: 0 0 0 2px #ffffff;
11
+ }
12
+ html[data-scheme="high_contrast"] .win-title,
13
+ html[data-scheme="high_contrast"] .desk-title-bar,
14
+ html[data-scheme="high_contrast"] body.desk .desk-win:not(.desk-active) > .win-title {
15
+ color: #000000;
16
+ }
17
+ /* An inactive desk window's title: black on white, set apart from the
18
+ active window's yellow. */
19
+ html[data-scheme="high_contrast"] body.desk .desk-win:not(.desk-active) > .win-title {
20
+ background: #ffffff;
21
+ }
22
+ html[data-scheme="high_contrast"] .win-title > .btn,
23
+ html[data-scheme="high_contrast"] body.desk .desk-win > .win-title > .desk-btn {
24
+ background: #000000;
25
+ color: #ffffff;
26
+ }
27
+ /* The tray's speaker and monitor are black drawings: they sit on a white
28
+ tile here so they stay visible on the black taskbar. */
29
+ html[data-scheme="high_contrast"] .desk-tray-sound,
30
+ html[data-scheme="high_contrast"] .desk-tray-display {
31
+ background-color: #ffffff;
32
+ }
33
+ html[data-scheme="high_contrast"] .btn,
34
+ html[data-scheme="high_contrast"] .desk-task,
35
+ html[data-scheme="high_contrast"] body.desk-title .splash-btn {
36
+ background: #000000;
37
+ color: #ffffff;
38
+ }
39
+ html[data-scheme="high_contrast"] .btn.danger {
40
+ color: var(--bad-ink);
41
+ }
42
+ html[data-scheme="high_contrast"] .btn:active,
43
+ html[data-scheme="high_contrast"] .btn.active,
44
+ html[data-scheme="high_contrast"] .desk-task.on {
45
+ background: #ffff00;
46
+ color: #000000;
47
+ }
48
+ html[data-scheme="high_contrast"] .menubar,
49
+ html[data-scheme="high_contrast"] .mb-pop,
50
+ html[data-scheme="high_contrast"] .desk-taskbar,
51
+ html[data-scheme="high_contrast"] .desk-tray {
52
+ background: #000000;
53
+ color: #ffffff;
54
+ box-shadow: inset 0 0 0 1px #ffffff;
55
+ }
56
+ html[data-scheme="high_contrast"] .mb-title[aria-expanded="true"],
57
+ html[data-scheme="high_contrast"] .mb-item:not([aria-disabled="true"], :disabled):hover,
58
+ html[data-scheme="high_contrast"] .mb-item:focus-visible {
59
+ background: #ffff00;
60
+ color: #000000;
61
+ }
62
+ html[data-scheme="high_contrast"] .pal-item:hover {
63
+ background: #000000;
64
+ outline: 1px solid #ffffff;
65
+ }
66
+ html[data-scheme="high_contrast"] .pal-item.active,
67
+ html[data-scheme="high_contrast"] .pal-item.active .pal-name,
68
+ html[data-scheme="high_contrast"] .pal-item.active .pal-cost {
69
+ background: #ffff00;
70
+ color: #000000;
71
+ }
72
+ html[data-scheme="high_contrast"] .pal-cost,
73
+ html[data-scheme="high_contrast"] .pal-group-title,
74
+ html[data-scheme="high_contrast"] .stat .label,
75
+ html[data-scheme="high_contrast"] .stars {
76
+ color: #ffffff;
77
+ }
78
+ html[data-scheme="high_contrast"] #traffic-glyph {
79
+ --bar-off: #5a5a5a;
80
+ }
81
+ html[data-scheme="high_contrast"] select,
82
+ html[data-scheme="high_contrast"] input,
83
+ html[data-scheme="high_contrast"] textarea {
84
+ background: #000000;
85
+ color: #ffffff;
86
+ border: 1px solid #ffffff;
87
+ }
88
+ html[data-scheme="high_contrast"] :focus-visible {
89
+ outline: 2px solid #ffff00;
90
+ outline-offset: 1px;
91
+ }
92
+ html[data-scheme="high_contrast"] body.desk #app,
93
+ html[data-scheme="high_contrast"] body.desk-title::before {
94
+ background: #000000;
95
+ }
96
+ /* The title screen's buttons away from the desk (phones, tablets). */
97
+ html[data-scheme="high_contrast"] body:not(.desk-title) .splash-btn:not(.ghost) {
98
+ color: #ffffff;
99
+ background: #000000;
100
+ border: 2px solid #ffffff;
101
+ box-shadow: none;
102
+ }
103
+ html[data-scheme="high_contrast"] body:not(.desk-title) .splash-btn.primary {
104
+ color: #000000;
105
+ background: #ffff00;
106
+ }
107
+ /* Anything greyed out (Call Fire Rescue with no fire, Undo with nothing to
108
+ undo, a locked field): gray text that never lights up, so it reads as off
109
+ next to the white. Buttons also get a dashed edge. */
110
+ html[data-scheme="high_contrast"] .mb-item[aria-disabled="true"],
111
+ html[data-scheme="high_contrast"] .mb-item:disabled,
112
+ html[data-scheme="high_contrast"] .btn:disabled,
113
+ html[data-scheme="high_contrast"] .btn[aria-disabled="true"],
114
+ html[data-scheme="high_contrast"] select:disabled,
115
+ html[data-scheme="high_contrast"] input:disabled,
116
+ html[data-scheme="high_contrast"] textarea:disabled,
117
+ html[data-scheme="high_contrast"] .es-skipped .es-cell-floor {
118
+ color: #8a8a8a;
119
+ background: #000000;
120
+ text-shadow: none;
121
+ }
122
+ html[data-scheme="high_contrast"] .btn:disabled,
123
+ html[data-scheme="high_contrast"] .btn[aria-disabled="true"] {
124
+ box-shadow: none;
125
+ outline: 2px dashed #8a8a8a;
126
+ outline-offset: -2px;
127
+ }
128
+ /* The phone title screen's corner chips, and the menu bar's logo badge. */
129
+ html[data-scheme="high_contrast"] .splash-sponsor,
130
+ html[data-scheme="high_contrast"] .splash-install,
131
+ html[data-scheme="high_contrast"] .splash-mute {
132
+ color: #ffffff;
133
+ background: #000000;
134
+ border: 2px solid #ffffff;
135
+ }
136
+ html[data-scheme="high_contrast"] .menubar-brand {
137
+ color: #000000;
138
+ }
139
+ /* Wells and typed-in fields (the update prompt's "What's new" log, file
140
+ lists, reports, version history), the in-dialog notice and the rating
141
+ gauge are white in the other schemes, and High Contrast turns their ink
142
+ white too, so their text vanished. They go black here; the yellow
143
+ sunken edge still marks them. */
144
+ html[data-scheme="high_contrast"] .well,
145
+ html[data-scheme="high_contrast"] .field,
146
+ html[data-scheme="high_contrast"] .modal-notice,
147
+ html[data-scheme="high_contrast"] .evalbar {
148
+ background: #000000;
149
+ }
150
+ /* The Control Panel keeps its white icon tray (its icons are drawn in black
151
+ and color), so its labels go black to stay readable. */
152
+ html[data-scheme="high_contrast"] .desk-control-icon {
153
+ color: #000000;
154
+ }
155
+ /* The scheme's yellow highlight and focus ring would vanish on that white
156
+ tray, so a hovered or focused icon gets a black label chip and a black
157
+ ring instead. */
158
+ html[data-scheme="high_contrast"] .desk-control-icon:hover span,
159
+ html[data-scheme="high_contrast"] .desk-control-icon:focus-visible span {
160
+ background: #000000;
161
+ color: #ffffff;
162
+ }
163
+ html[data-scheme="high_contrast"] .desk-control-icon:focus-visible {
164
+ outline: 2px solid #000000;
165
+ outline-offset: -2px;
166
+ }
167
+ /* Plain links (the update prompt's "All release notes") are yellow: the
168
+ browser's dark blue is under 3:1 on black. Zero specificity, so a class
169
+ that sets its own color (a link styled as a button or a menu item) still
170
+ wins. */
171
+ :where(html[data-scheme="high_contrast"] a:not(.btn, .mb-item)) {
172
+ color: #ffff00;
173
+ }
@@ -0,0 +1,134 @@
1
+ /* Skyline (Options > Appearance…, owner's pick 2026-11-17, variant B): an
2
+ early-2000s feel in our own dusk colors, borrowing no operating system's
3
+ art, fonts or wording. Scoped to html[data-scheme="skyline"]. Style only:
4
+ no images, blur, backdrop-filter or animation; the canvas is untouched. */
5
+ html[data-scheme="skyline"] body.desk #app,
6
+ html[data-scheme="skyline"] body.desk-title::before {
7
+ background: var(--splash-sky);
8
+ }
9
+
10
+ /* Windows: rounded tops, a dark frame, gradient title bars. */
11
+ html[data-scheme="skyline"] .win {
12
+ border-radius: 8px 8px 3px 3px;
13
+ box-shadow: 0 0 0 1px #2a2766, var(--win-shadow);
14
+ }
15
+ html[data-scheme="skyline"] .win-title,
16
+ html[data-scheme="skyline"] .desk-title-bar {
17
+ background: var(--sky-title);
18
+ border-radius: 7px 7px 0 0;
19
+ text-shadow: 0 1px 0 #15123a;
20
+ }
21
+ html[data-scheme="skyline"] body.desk .desk-win:not(.desk-active) > .win-title {
22
+ background: var(--sky-title-off);
23
+ text-shadow: none;
24
+ }
25
+ html[data-scheme="skyline"] body.desk-title #splash {
26
+ border-radius: 8px 8px 3px 3px;
27
+ box-shadow: 0 0 0 1px #2a2766, var(--win-shadow);
28
+ }
29
+
30
+ /* Buttons: soft gradient, 1 px line, small radius. */
31
+ html[data-scheme="skyline"] .btn,
32
+ html[data-scheme="skyline"] body.desk-title .splash-btn {
33
+ background: var(--sky-btn);
34
+ border-radius: 4px;
35
+ }
36
+ html[data-scheme="skyline"] .btn:active,
37
+ html[data-scheme="skyline"] .btn.active,
38
+ html[data-scheme="skyline"] body.desk-title .splash-btn:active {
39
+ background: var(--sky-btn-down);
40
+ }
41
+
42
+ /* Title-bar buttons: violet, and the close button rose. */
43
+ html[data-scheme="skyline"] .win-title > .btn,
44
+ html[data-scheme="skyline"] body.desk .desk-win > .win-title > .desk-btn {
45
+ background: var(--sky-violet);
46
+ box-shadow: inset 0 0 0 1px #ffffff;
47
+ color: #ffffff;
48
+ border-radius: 4px;
49
+ }
50
+ html[data-scheme="skyline"] body.desk .desk-win > .win-title > .desk-btn svg {
51
+ fill: #ffffff;
52
+ }
53
+ html[data-scheme="skyline"] .win-title > .btn[aria-label^="Close"],
54
+ html[data-scheme="skyline"] .win-title > .modal-x,
55
+ html[data-scheme="skyline"] body.desk .desk-win > .win-title > .desk-btn-close {
56
+ background: var(--sky-rose);
57
+ }
58
+
59
+ /* Info readouts: flat cards instead of sunken wells. The traffic meter's
60
+ pale bars need a darker tone on the light card. */
61
+ html[data-scheme="skyline"] .stat {
62
+ background: #fbfaf6;
63
+ box-shadow: inset 0 0 0 1px #c9c4b6;
64
+ border-radius: 3px;
65
+ }
66
+ html[data-scheme="skyline"] #traffic-glyph {
67
+ --bar-off: #cfcabd;
68
+ }
69
+
70
+ /* Menu bar and its menus. */
71
+ html[data-scheme="skyline"] .menubar {
72
+ background: linear-gradient(#f6f4ee, #e7e3d8);
73
+ box-shadow: inset 0 -1px #cfcabd;
74
+ }
75
+ html[data-scheme="skyline"] .mb-title[aria-expanded="true"] {
76
+ background: #4a50b0;
77
+ color: #ffffff;
78
+ box-shadow: none;
79
+ border-radius: 3px;
80
+ }
81
+ html[data-scheme="skyline"] .mb-pop {
82
+ border-radius: 0 0 4px 4px;
83
+ }
84
+
85
+ /* The selected tool: violet. */
86
+ html[data-scheme="skyline"] .pal-item.active {
87
+ background: linear-gradient(#5a63c8, #3d429e);
88
+ border-radius: 3px;
89
+ }
90
+
91
+ /* Taskbar: a deep dusk band, violet buttons and a cream Verticopolis button. */
92
+ html[data-scheme="skyline"] .desk-taskbar {
93
+ background: linear-gradient(180deg, #4b4f9e 0%, #2f2c6e 40%, #241f4c 100%);
94
+ box-shadow: inset 0 1px #8c95ea;
95
+ }
96
+ html[data-scheme="skyline"] .desk-task {
97
+ background: linear-gradient(#5a63c8, #3d429e);
98
+ color: #ffffff;
99
+ border-radius: 4px;
100
+ box-shadow: inset 0 0 0 1px #1d1a4a;
101
+ }
102
+ html[data-scheme="skyline"] .desk-task.on {
103
+ background: linear-gradient(#2a2766, #3d429e);
104
+ box-shadow: inset 0 0 0 1px #1d1a4a, inset 1px 1px 0 1px rgba(0, 0, 0, 0.3);
105
+ }
106
+ html[data-scheme="skyline"] .desk-start {
107
+ background: linear-gradient(#fbf6e6, #e6dcc0);
108
+ color: #241f4c;
109
+ border-radius: 0 10px 10px 0;
110
+ box-shadow: inset 0 0 0 1px #8b8698;
111
+ }
112
+ html[data-scheme="skyline"] .desk-tray {
113
+ background: linear-gradient(#5c66c9, #33378f);
114
+ color: #ffffff;
115
+ box-shadow: inset 1px 0 #1d1a4a;
116
+ }
117
+
118
+ /* The title screen's buttons away from the desk (phones, tablets): soft
119
+ rounded buttons, the main one violet. */
120
+ html[data-scheme="skyline"] body:not(.desk-title) .splash-btn:not(.ghost) {
121
+ color: #241f4c;
122
+ background: var(--sky-btn);
123
+ border: 1px solid #2a2766;
124
+ border-radius: 8px;
125
+ box-shadow: 0 2px 0 rgba(20, 16, 50, 0.35);
126
+ }
127
+ html[data-scheme="skyline"] body:not(.desk-title) .splash-btn.primary {
128
+ color: #fff;
129
+ background: var(--sky-title);
130
+ text-shadow: 0 1px 0 #15123a;
131
+ }
132
+ html[data-scheme="skyline"] body:not(.desk-title) .splash-btn:not(.ghost):active {
133
+ box-shadow: inset 0 1px 2px rgba(20, 16, 50, 0.35);
134
+ }
package/lib/styles.css ADDED
@@ -0,0 +1,66 @@
1
+ /* =====================================================================
2
+ VERTICOPOLIS DESIGN SYSTEM
3
+ One generation of CSS, five layers, no override archaeology:
4
+
5
+ 1. TOKENS — every color, bevel, and font, defined once.
6
+ 2. BASE — reset, document, accessibility.
7
+ 3. COMPONENTS — reusable classes (.btn, .win, .win-title, .well,
8
+ .field, .kv, .toast, .evalbar). Skin lives HERE,
9
+ on classes — never on IDs.
10
+ 4. LAYOUT + SURFACES — positioning/sizing per screen region.
11
+ Surface-specific CLASSES may tune skin using the
12
+ tokens; IDs never paint chrome, with two annotated
13
+ one-offs (#topbar's raised strip, #stage's viewport).
14
+ 5. MEDIA — one mobile block, pointer/motion/a11y adjuncts.
15
+
16
+ The look is Windows 3.1 / SimTower: gray faces, two-pixel bevels, navy
17
+ title bars. Feedback is press-only (bevel-in on :active) — period
18
+ chrome has no hover states. The first-run splash is deliberately its
19
+ own thing (box art, not UI); it shares interaction grammar only.
20
+ ===================================================================== */
21
+
22
+ /* ---- 1. TOKENS + SHARED CHROME (extracted for reuse by standalone pages) ---
23
+ The retro tokens and the shared window/button/well/kv components live in
24
+ src/styles/ so the standalone pages and the Help site wear the same chrome from one
25
+ source. Imported first so the game render is unchanged. See
26
+ _bmad-output/specs/spec-classic-modern-reachability/retro-design-system.md. */
27
+ @import "./styles/retro-tokens.css";
28
+ @import "./styles/retro-components.css";
29
+ @import "./styles/overview-map.css";
30
+ @import "./styles/overview-map-views.css";
31
+
32
+
33
+ /* ---- 2 to 5. THE GAME'S OWN LAYERS --------------------------------------
34
+ Base, components, the screen regions and the media blocks, in cascade
35
+ order. Each part is plain CSS that the build inlines here, so the order
36
+ below is the order the rules apply in. */
37
+ @import "./styles/game/base.css";
38
+ @import "./styles/game/components.css";
39
+ @import "./styles/game/topbar.css";
40
+ @import "./styles/game/tools-stage.css";
41
+ @import "./styles/game/editor-sidebar.css";
42
+ @import "./styles/menu-bar.css";
43
+ @import "./styles/game/menubar.css";
44
+ @import "./styles/game/dialogs.css";
45
+ @import "./styles/game/new-tower.css";
46
+ @import "./styles/game/stats-saves.css";
47
+ @import "./styles/game/file-dialog.css";
48
+ @import "./styles/game/elevator-schedule.css";
49
+ @import "./styles/game/help.css";
50
+ @import "./styles/game/splash.css";
51
+ @import "./styles/game/onboarding.css";
52
+ @import "./styles/game/launch-fireworks.css";
53
+ @import "./styles/game/screen-saver.css";
54
+ @import "./styles/game/media-phone.css";
55
+ @import "./styles/game/media-landscape.css";
56
+ @import "./styles/game/media-tablet-touch.css";
57
+ @import "./styles/game/desk.css";
58
+ @import "./styles/game/desk-title.css";
59
+ @import "./styles/game/appearance.css";
60
+
61
+ /* ---- APPEARANCE SCHEMES ---------------------------------------------------
62
+ Options > Appearance… (src/ui/appearance/). Each scheme is scoped to its
63
+ html[data-scheme] value and comes last so it restyles the layers above;
64
+ Standard sets no attribute and is the cascade above, unchanged. */
65
+ @import "./styles/schemes/skyline.css";
66
+ @import "./styles/schemes/high-contrast.css";
@@ -0,0 +1,59 @@
1
+ /**
2
+ * The 1994 desk's geometry: where each window opens the first time, how a
3
+ * saved place is kept on a smaller screen, and the size limits of the windows
4
+ * the player can resize. Pure functions over plain numbers, so the rules are
5
+ * tested without a page (deskGeometry.test.ts). The per-window rules table in
6
+ * docs/ui/desk-windows.md is the spec these numbers come from.
7
+ */
8
+ /** A window's place and size on the desk, in CSS px from the desk's top left. */
9
+ export interface DeskRect {
10
+ readonly x: number;
11
+ readonly y: number;
12
+ readonly w: number;
13
+ readonly h: number;
14
+ }
15
+ /** The windows the desk lays out. */
16
+ export type DeskWindowId = "tower" | "info" | "tools" | "map" | "bulletin" | "towerInfo" | "control";
17
+ /** The size limits of a resizable window; a fixed window has none. */
18
+ export interface SizeLimits {
19
+ readonly minW: number;
20
+ readonly minH: number;
21
+ }
22
+ /** The tower window: 320x240 at the smallest, the desk at the largest. */
23
+ export declare const TOWER_LIMITS: SizeLimits;
24
+ /** The Tools window grows in height only, from 200 px to the desk's height. */
25
+ export declare const TOOLS_LIMITS: SizeLimits;
26
+ /** The gap the desk keeps between its windows and its edges. */
27
+ export declare const DESK_GAP = 8;
28
+ /** The width the right-hand column (the Map, the Bulletin) is given. */
29
+ export declare const SIDE_COLUMN = 300;
30
+ /** The Map's height on the desk, before the desk has measured it. */
31
+ export declare const MAP_HEIGHT = 310;
32
+ /** The room the Bulletin is given at the foot of the column. */
33
+ export declare const BULLETIN_HEIGHT = 222;
34
+ /** Where the Bulletin opens on a desk too short for it under the Map, from
35
+ * the tower window's top left: over the sky, past the floor numbers and
36
+ * below the menu bar and the first toasts (measured at 1024 x 600). */
37
+ export declare const SHORT_DESK_BULLETIN_DROP = 120;
38
+ export declare const SHORT_DESK_BULLETIN_INSET = 32;
39
+ /** Info's height on the desk, before the desk has measured it. */
40
+ export declare const INFO_HEIGHT = 64;
41
+ /** The Tools window's width on the desk (the palette's own width plus its frame). */
42
+ export declare const TOOLS_WIDTH = 184;
43
+ /** Where every window opens the first time on a desk of `deskW` x `deskH`:
44
+ * Tools down the left, Info as a strip across the top (SimTower's, owner
45
+ * 2026-11-15) with the tower under it, and the Map, the Bulletin and Tower
46
+ * Info down the right. `infoH` and `mapH` are the heights Info and the Map
47
+ * really have once measured. Fixed-size windows take their own size, so
48
+ * only their corner counts, and Info its width. */
49
+ export declare function defaultLayout(deskW: number, deskH: number, infoH?: number, mapH?: number): Record<DeskWindowId, DeskRect>;
50
+ /** A saved place kept on the desk it opens on: a window bigger than the desk
51
+ * shrinks to fit (not below its limits), and its title bar stays on screen so
52
+ * it can always be dragged back. Whole pixels. */
53
+ export declare function fitRect(rect: DeskRect, deskW: number, deskH: number, limits: SizeLimits | null): DeskRect;
54
+ /** The size a resize drag asks for, held to the window's limits and to what
55
+ * is left of the desk past the window's corner. `heightOnly` keeps the width. */
56
+ export declare function resizedTo(start: DeskRect, dx: number, dy: number, limits: SizeLimits, deskW: number, deskH: number, heightOnly: boolean): DeskRect;
57
+ /** Read a saved layout, dropping anything that is not a usable rectangle, so
58
+ * a damaged or older store opens the default layout for that window. */
59
+ export declare function parseLayout(raw: string | null): Partial<Record<DeskWindowId, DeskRect>>;
@@ -0,0 +1,106 @@
1
+ /**
2
+ * The 1994 desk's geometry: where each window opens the first time, how a
3
+ * saved place is kept on a smaller screen, and the size limits of the windows
4
+ * the player can resize. Pure functions over plain numbers, so the rules are
5
+ * tested without a page (deskGeometry.test.ts). The per-window rules table in
6
+ * docs/ui/desk-windows.md is the spec these numbers come from.
7
+ */
8
+ /** The tower window: 320x240 at the smallest, the desk at the largest. */
9
+ const TOWER_LIMITS = { minW: 320, minH: 240 };
10
+ /** The Tools window grows in height only, from 200 px to the desk's height. */
11
+ const TOOLS_LIMITS = { minW: 0, minH: 200 };
12
+ /** The gap the desk keeps between its windows and its edges. */
13
+ const DESK_GAP = 8;
14
+ /** The width the right-hand column (the Map, the Bulletin) is given. */
15
+ const SIDE_COLUMN = 300;
16
+ /** The Map's height on the desk, before the desk has measured it. */
17
+ const MAP_HEIGHT = 310;
18
+ /** The room the Bulletin is given at the foot of the column. */
19
+ const BULLETIN_HEIGHT = 222;
20
+ /** Where the Bulletin opens on a desk too short for it under the Map, from
21
+ * the tower window's top left: over the sky, past the floor numbers and
22
+ * below the menu bar and the first toasts (measured at 1024 x 600). */
23
+ const SHORT_DESK_BULLETIN_DROP = 120;
24
+ const SHORT_DESK_BULLETIN_INSET = 32;
25
+ /** Info's height on the desk, before the desk has measured it. */
26
+ const INFO_HEIGHT = 64;
27
+ /** The Tools window's width on the desk (the palette's own width plus its frame). */
28
+ const TOOLS_WIDTH = 184;
29
+ /** Where every window opens the first time on a desk of `deskW` x `deskH`:
30
+ * Tools down the left, Info as a strip across the top (SimTower's, owner
31
+ * 2026-11-15) with the tower under it, and the Map, the Bulletin and Tower
32
+ * Info down the right. `infoH` and `mapH` are the heights Info and the Map
33
+ * really have once measured. Fixed-size windows take their own size, so
34
+ * only their corner counts, and Info its width. */
35
+ function defaultLayout(deskW, deskH, infoH = INFO_HEIGHT, mapH = MAP_HEIGHT) {
36
+ const g = DESK_GAP;
37
+ const sideX = Math.max(g, deskW - SIDE_COLUMN - g);
38
+ const towerX = TOOLS_WIDTH + 2 * g;
39
+ const middleW = Math.max(TOWER_LIMITS.minW, sideX - towerX - g);
40
+ const towerY = 2 * g + infoH;
41
+ const tower = { x: towerX, y: towerY, w: middleW, h: Math.max(TOWER_LIMITS.minH, deskH - towerY - g) };
42
+ // The Bulletin sits at the foot of the column, below the Map. On a desk too
43
+ // short for both it opens over the tower's sky at the left, below the menu
44
+ // bar and the toasts (top right of the tower), so the ground line where the
45
+ // first lobby goes stays clear.
46
+ const footY = Math.max(g, deskH - BULLETIN_HEIGHT - g);
47
+ const bulletinFits = footY >= g + mapH + g;
48
+ return {
49
+ tools: { x: g, y: g, w: TOOLS_WIDTH, h: Math.max(TOOLS_LIMITS.minH, Math.min(deskH - 2 * g, 600)) },
50
+ tower,
51
+ info: { x: towerX, y: g, w: middleW, h: 0 },
52
+ map: { x: sideX, y: g, w: 0, h: 0 },
53
+ bulletin: bulletinFits
54
+ ? { x: sideX, y: footY, w: SIDE_COLUMN, h: 0 }
55
+ : { x: towerX + SHORT_DESK_BULLETIN_INSET, y: towerY + SHORT_DESK_BULLETIN_DROP, w: SIDE_COLUMN, h: 0 },
56
+ towerInfo: { x: Math.max(g, sideX - 240), y: towerY, w: 0, h: 0 },
57
+ control: { x: Math.max(g, Math.round(deskW / 2 - 150)), y: Math.max(g, Math.round(deskH / 2 - 110)), w: 0, h: 0 },
58
+ };
59
+ }
60
+ /** A saved place kept on the desk it opens on: a window bigger than the desk
61
+ * shrinks to fit (not below its limits), and its title bar stays on screen so
62
+ * it can always be dragged back. Whole pixels. */
63
+ function fitRect(rect, deskW, deskH, limits) {
64
+ const w = limits ? Math.max(limits.minW, Math.min(rect.w, deskW)) : rect.w;
65
+ const h = limits ? Math.max(limits.minH, Math.min(rect.h, deskH)) : rect.h;
66
+ const x = Math.max(0, Math.min(rect.x, deskW - Math.min(w || 120, deskW)));
67
+ const y = Math.max(0, Math.min(rect.y, deskH - 24));
68
+ return { x: Math.round(x), y: Math.round(y), w: Math.round(w), h: Math.round(h) };
69
+ }
70
+ /** The size a resize drag asks for, held to the window's limits and to what
71
+ * is left of the desk past the window's corner. `heightOnly` keeps the width. */
72
+ function resizedTo(start, dx, dy, limits, deskW, deskH, heightOnly) {
73
+ const w = heightOnly ? start.w : Math.max(limits.minW, Math.min(start.w + dx, deskW - start.x));
74
+ const h = Math.max(limits.minH, Math.min(start.h + dy, deskH - start.y));
75
+ return { x: start.x, y: start.y, w: Math.round(w), h: Math.round(h) };
76
+ }
77
+ /** Read a saved layout, dropping anything that is not a usable rectangle, so
78
+ * a damaged or older store opens the default layout for that window. */
79
+ function parseLayout(raw) {
80
+ if (!raw)
81
+ return {};
82
+ let data;
83
+ try {
84
+ data = JSON.parse(raw);
85
+ }
86
+ catch {
87
+ return {};
88
+ }
89
+ if (!data || typeof data !== "object")
90
+ return {};
91
+ const out = {};
92
+ const ids = ["tower", "info", "tools", "map", "bulletin", "towerInfo", "control"];
93
+ for (const id of ids) {
94
+ const r = data[id];
95
+ if (!r || typeof r !== "object")
96
+ continue;
97
+ const { x, y, w, h } = r;
98
+ if ([x, y, w, h].every((n) => typeof n === "number" && Number.isFinite(n) && n >= 0 && n < 100000)) {
99
+ out[id] = { x: x, y: y, w: w, h: h };
100
+ }
101
+ }
102
+ return out;
103
+ }
104
+
105
+ export { BULLETIN_HEIGHT, DESK_GAP, INFO_HEIGHT, MAP_HEIGHT, SHORT_DESK_BULLETIN_DROP, SHORT_DESK_BULLETIN_INSET, SIDE_COLUMN, TOOLS_LIMITS, TOOLS_WIDTH, TOWER_LIMITS, defaultLayout, fitRect, parseLayout, resizedTo };
106
+ //# sourceMappingURL=deskGeometry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deskGeometry.js","sources":["../../../src/ui/desk/deskGeometry.ts"],"sourcesContent":["/**\n * The 1994 desk's geometry: where each window opens the first time, how a\n * saved place is kept on a smaller screen, and the size limits of the windows\n * the player can resize. Pure functions over plain numbers, so the rules are\n * tested without a page (deskGeometry.test.ts). The per-window rules table in\n * docs/ui/desk-windows.md is the spec these numbers come from.\n */\n\n/** A window's place and size on the desk, in CSS px from the desk's top left. */\nexport interface DeskRect {\n readonly x: number;\n readonly y: number;\n readonly w: number;\n readonly h: number;\n}\n\n/** The windows the desk lays out. */\nexport type DeskWindowId = \"tower\" | \"info\" | \"tools\" | \"map\" | \"bulletin\" | \"towerInfo\" | \"control\";\n\n/** The size limits of a resizable window; a fixed window has none. */\nexport interface SizeLimits {\n readonly minW: number;\n readonly minH: number;\n}\n\n/** The tower window: 320x240 at the smallest, the desk at the largest. */\nexport const TOWER_LIMITS: SizeLimits = { minW: 320, minH: 240 };\n/** The Tools window grows in height only, from 200 px to the desk's height. */\nexport const TOOLS_LIMITS: SizeLimits = { minW: 0, minH: 200 };\n\n/** The gap the desk keeps between its windows and its edges. */\nexport const DESK_GAP = 8;\n/** The width the right-hand column (the Map, the Bulletin) is given. */\nexport const SIDE_COLUMN = 300;\n/** The Map's height on the desk, before the desk has measured it. */\nexport const MAP_HEIGHT = 310;\n/** The room the Bulletin is given at the foot of the column. */\nexport const BULLETIN_HEIGHT = 222;\n/** Where the Bulletin opens on a desk too short for it under the Map, from\n * the tower window's top left: over the sky, past the floor numbers and\n * below the menu bar and the first toasts (measured at 1024 x 600). */\nexport const SHORT_DESK_BULLETIN_DROP = 120;\nexport const SHORT_DESK_BULLETIN_INSET = 32;\n/** Info's height on the desk, before the desk has measured it. */\nexport const INFO_HEIGHT = 64;\n/** The Tools window's width on the desk (the palette's own width plus its frame). */\nexport const TOOLS_WIDTH = 184;\n\n/** Where every window opens the first time on a desk of `deskW` x `deskH`:\n * Tools down the left, Info as a strip across the top (SimTower's, owner\n * 2026-11-15) with the tower under it, and the Map, the Bulletin and Tower\n * Info down the right. `infoH` and `mapH` are the heights Info and the Map\n * really have once measured. Fixed-size windows take their own size, so\n * only their corner counts, and Info its width. */\nexport function defaultLayout(deskW: number, deskH: number, infoH = INFO_HEIGHT, mapH = MAP_HEIGHT): Record<DeskWindowId, DeskRect> {\n const g = DESK_GAP;\n const sideX = Math.max(g, deskW - SIDE_COLUMN - g);\n const towerX = TOOLS_WIDTH + 2 * g;\n const middleW = Math.max(TOWER_LIMITS.minW, sideX - towerX - g);\n const towerY = 2 * g + infoH;\n const tower: DeskRect = { x: towerX, y: towerY, w: middleW, h: Math.max(TOWER_LIMITS.minH, deskH - towerY - g) };\n // The Bulletin sits at the foot of the column, below the Map. On a desk too\n // short for both it opens over the tower's sky at the left, below the menu\n // bar and the toasts (top right of the tower), so the ground line where the\n // first lobby goes stays clear.\n const footY = Math.max(g, deskH - BULLETIN_HEIGHT - g);\n const bulletinFits = footY >= g + mapH + g;\n return {\n tools: { x: g, y: g, w: TOOLS_WIDTH, h: Math.max(TOOLS_LIMITS.minH, Math.min(deskH - 2 * g, 600)) },\n tower,\n info: { x: towerX, y: g, w: middleW, h: 0 },\n map: { x: sideX, y: g, w: 0, h: 0 },\n bulletin: bulletinFits\n ? { x: sideX, y: footY, w: SIDE_COLUMN, h: 0 }\n : { x: towerX + SHORT_DESK_BULLETIN_INSET, y: towerY + SHORT_DESK_BULLETIN_DROP, w: SIDE_COLUMN, h: 0 },\n towerInfo: { x: Math.max(g, sideX - 240), y: towerY, w: 0, h: 0 },\n control: { x: Math.max(g, Math.round(deskW / 2 - 150)), y: Math.max(g, Math.round(deskH / 2 - 110)), w: 0, h: 0 },\n };\n}\n\n/** A saved place kept on the desk it opens on: a window bigger than the desk\n * shrinks to fit (not below its limits), and its title bar stays on screen so\n * it can always be dragged back. Whole pixels. */\nexport function fitRect(rect: DeskRect, deskW: number, deskH: number, limits: SizeLimits | null): DeskRect {\n const w = limits ? Math.max(limits.minW, Math.min(rect.w, deskW)) : rect.w;\n const h = limits ? Math.max(limits.minH, Math.min(rect.h, deskH)) : rect.h;\n const x = Math.max(0, Math.min(rect.x, deskW - Math.min(w || 120, deskW)));\n const y = Math.max(0, Math.min(rect.y, deskH - 24));\n return { x: Math.round(x), y: Math.round(y), w: Math.round(w), h: Math.round(h) };\n}\n\n/** The size a resize drag asks for, held to the window's limits and to what\n * is left of the desk past the window's corner. `heightOnly` keeps the width. */\nexport function resizedTo(start: DeskRect, dx: number, dy: number, limits: SizeLimits, deskW: number, deskH: number, heightOnly: boolean): DeskRect {\n const w = heightOnly ? start.w : Math.max(limits.minW, Math.min(start.w + dx, deskW - start.x));\n const h = Math.max(limits.minH, Math.min(start.h + dy, deskH - start.y));\n return { x: start.x, y: start.y, w: Math.round(w), h: Math.round(h) };\n}\n\n/** Read a saved layout, dropping anything that is not a usable rectangle, so\n * a damaged or older store opens the default layout for that window. */\nexport function parseLayout(raw: string | null): Partial<Record<DeskWindowId, DeskRect>> {\n if (!raw) return {};\n let data: unknown;\n try {\n data = JSON.parse(raw);\n } catch {\n return {};\n }\n if (!data || typeof data !== \"object\") return {};\n const out: Partial<Record<DeskWindowId, DeskRect>> = {};\n const ids: readonly DeskWindowId[] = [\"tower\", \"info\", \"tools\", \"map\", \"bulletin\", \"towerInfo\", \"control\"];\n for (const id of ids) {\n const r = (data as Record<string, unknown>)[id];\n if (!r || typeof r !== \"object\") continue;\n const { x, y, w, h } = r as Record<string, unknown>;\n if ([x, y, w, h].every((n) => typeof n === \"number\" && Number.isFinite(n) && n >= 0 && n < 100000)) {\n out[id] = { x: x as number, y: y as number, w: w as number, h: h as number };\n }\n }\n return out;\n}\n"],"names":[],"mappings":"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"}
@@ -0,0 +1,90 @@
1
+ import { type DeskRect, type DeskWindowId, type SizeLimits } from "./deskGeometry";
2
+ /**
3
+ * One window on the 1994 desk (option C, owner 2026-11-15): the tower, Info,
4
+ * Tools, the Map, the Bulletin or Tower Info. The desk either builds the
5
+ * window's frame (the tower and Info have none of their own) or takes over a
6
+ * window the game already draws with its own title bar (Tools and the small
7
+ * windows), and then adds what a 1995 window has: minimize, maximize where it
8
+ * is allowed, a size grip where it may resize, and the focus that turns its
9
+ * title bar navy.
10
+ *
11
+ * Cost: nothing runs per frame. A move writes two styles per pointer move (the
12
+ * game's MovableWindow); a resize draws a dotted outline and sets the size
13
+ * once on release, so the tower's canvas resizes once per resize.
14
+ */
15
+ /** What the desk tells a window it needs. */
16
+ export interface DeskWindowSpec {
17
+ readonly id: DeskWindowId;
18
+ /** The window element: a frame the desk built, or the game's own window. */
19
+ readonly el: HTMLElement;
20
+ /** The name on its taskbar button and in its buttons' labels. */
21
+ readonly label: () => string;
22
+ /** The tower sits below the small windows, so they stay on top of it even
23
+ * when it is maximized; the small windows stack among themselves. */
24
+ readonly layer: "app" | "tool";
25
+ /** The resize limits, or null for a window of one size. */
26
+ readonly limits: SizeLimits | null;
27
+ /** Tools grows in height only. */
28
+ readonly heightOnly?: boolean;
29
+ readonly canMax: boolean;
30
+ /** Whether the game has the window open (a closed window has no taskbar
31
+ * button). The game decides: the Map's ✕, Tower > Bulletin and the rest. */
32
+ readonly isOpen: () => boolean;
33
+ /** Open it the game's own way (Options > Map and the rest); absent for a
34
+ * window that is always open on the desk (the tower, Info, Tools). */
35
+ readonly open?: () => void;
36
+ /** Close it the game's own way (its ✕, File > Close); absent for a window
37
+ * the desk never closes (Info, Tools). */
38
+ readonly close?: () => void;
39
+ /** Heard after a move, a resize, a minimize or a maximize. */
40
+ readonly changed: (what: DeskChange) => void;
41
+ /** Heard on a press anywhere in the window. */
42
+ readonly pressed: () => void;
43
+ }
44
+ /** What a window just did, for the taskbar, the saved layout and analytics. */
45
+ export type DeskChange = "move" | "resize" | "min" | "restore" | "max" | "unmax";
46
+ /** The class a minimized window wears: hidden but still laid out, so the
47
+ * tower's canvas keeps its size while the window sits on the taskbar. */
48
+ export declare const DESK_MINIMIZED_CLASS = "desk-minimized";
49
+ /** The class a maximized window wears. */
50
+ export declare const DESK_MAXIMIZED_CLASS = "desk-maximized";
51
+ /** The class the window that has the focus wears. */
52
+ export declare const DESK_ACTIVE_CLASS = "desk-active";
53
+ /** The glyphs of the title bar's buttons, drawn in pixels like the 1995 ones. */
54
+ declare const GLYPH: Record<"min" | "max" | "restore" | "close", string>;
55
+ /** A title-bar button with a pixel glyph. */
56
+ export declare function titleButton(doc: Document, kind: keyof typeof GLYPH, label: string): HTMLButtonElement;
57
+ /** Build a frame for content that has no window of its own (the tower, Info):
58
+ * a `.win` with the game's title bar and an empty body. */
59
+ export declare function buildFrame(doc: Document, id: string, title: string): {
60
+ root: HTMLElement;
61
+ body: HTMLElement;
62
+ titleText: HTMLElement;
63
+ };
64
+ export declare class DeskWindow {
65
+ readonly spec: DeskWindowSpec;
66
+ minimized: boolean;
67
+ maximized: boolean;
68
+ private before;
69
+ private readonly added;
70
+ private readonly ownMover;
71
+ /** Stops hearing the moves of a window the game moves itself. */
72
+ private readonly unhear;
73
+ private readonly maxButton;
74
+ constructor(spec: DeskWindowSpec);
75
+ private readonly onPress;
76
+ /** The window's place and size now, in desk pixels. */
77
+ rect(): DeskRect;
78
+ /** Put the window at `rect`; a fixed-size window takes the corner only. */
79
+ place(rect: DeskRect): void;
80
+ minimize(): void;
81
+ restore(): void;
82
+ toggleMax(): void;
83
+ /** Take the desk's additions off and give the window back to the game's
84
+ * own layout (the phone, the title screen, or the desk turned off). */
85
+ dispose(): void;
86
+ /** The size grip: a dotted outline follows the pointer and the window takes
87
+ * the size on release. */
88
+ private wireGrip;
89
+ }
90
+ export {};