@gamepark/react-game 7.0.0-beta.0 → 7.0.0-beta.3

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 (685) hide show
  1. package/dist/components/Avatar/Avatar.js +37 -60
  2. package/dist/components/Avatar/Avatar.js.map +1 -1
  3. package/dist/components/Avatar/ChatSpeechBubble.js +25 -67
  4. package/dist/components/Avatar/ChatSpeechBubble.js.map +1 -1
  5. package/dist/components/Avatar/SpeechBubble.js +86 -49
  6. package/dist/components/Avatar/SpeechBubble.js.map +1 -1
  7. package/dist/components/Avatar/index.js +3 -19
  8. package/dist/components/Avatar/index.js.map +1 -1
  9. package/dist/components/GamePoints/GamePointIcon.js +7 -24
  10. package/dist/components/GamePoints/GamePointIcon.js.map +1 -1
  11. package/dist/components/GamePoints/GamePoints.js +20 -63
  12. package/dist/components/GamePoints/GamePoints.js.map +1 -1
  13. package/dist/components/GamePoints/index.js +2 -18
  14. package/dist/components/GamePoints/index.js.map +1 -1
  15. package/dist/components/GameProvider/GameContext.js +7 -14
  16. package/dist/components/GameProvider/GameContext.js.map +1 -1
  17. package/dist/components/GameProvider/GameProvider.js +91 -136
  18. package/dist/components/GameProvider/GameProvider.js.map +1 -1
  19. package/dist/components/GameProvider/index.js +2 -18
  20. package/dist/components/GameProvider/index.js.map +1 -1
  21. package/dist/components/Header/Header.js +34 -43
  22. package/dist/components/Header/Header.js.map +1 -1
  23. package/dist/components/Header/HeaderText.js +15 -31
  24. package/dist/components/Header/HeaderText.js.map +1 -1
  25. package/dist/components/Header/MaterialHeader.js +42 -90
  26. package/dist/components/Header/MaterialHeader.js.map +1 -1
  27. package/dist/components/Header/index.js +3 -19
  28. package/dist/components/Header/index.js.map +1 -1
  29. package/dist/components/ImagesLoader/ImagesLoader.js +9 -14
  30. package/dist/components/ImagesLoader/ImagesLoader.js.map +1 -1
  31. package/dist/components/ImagesLoader/index.js +1 -17
  32. package/dist/components/ImagesLoader/index.js.map +1 -1
  33. package/dist/components/JournalTabs/Chat/Chat.js +7 -33
  34. package/dist/components/JournalTabs/Chat/Chat.js.map +1 -1
  35. package/dist/components/JournalTabs/Chat/ChatMessage.js +12 -17
  36. package/dist/components/JournalTabs/Chat/ChatMessage.js.map +1 -1
  37. package/dist/components/JournalTabs/Chat/ChatMessageAuthor.js +19 -35
  38. package/dist/components/JournalTabs/Chat/ChatMessageAuthor.js.map +1 -1
  39. package/dist/components/JournalTabs/Chat/ChatTextInput.js +58 -60
  40. package/dist/components/JournalTabs/Chat/ChatTextInput.js.map +1 -1
  41. package/dist/components/JournalTabs/Chat/CommonChat.d.ts +1 -1
  42. package/dist/components/JournalTabs/Chat/CommonChat.js +43 -48
  43. package/dist/components/JournalTabs/Chat/CommonChat.js.map +1 -1
  44. package/dist/components/JournalTabs/Chat/LocalChat.js +10 -61
  45. package/dist/components/JournalTabs/Chat/LocalChat.js.map +1 -1
  46. package/dist/components/JournalTabs/Chat/RemoteChat.js +15 -43
  47. package/dist/components/JournalTabs/Chat/RemoteChat.js.map +1 -1
  48. package/dist/components/JournalTabs/Chat/SignInToChat.js +36 -22
  49. package/dist/components/JournalTabs/Chat/SignInToChat.js.map +1 -1
  50. package/dist/components/JournalTabs/Chat/index.js +5 -21
  51. package/dist/components/JournalTabs/Chat/index.js.map +1 -1
  52. package/dist/components/JournalTabs/History/GameOverHistory.js +14 -20
  53. package/dist/components/JournalTabs/History/GameOverHistory.js.map +1 -1
  54. package/dist/components/JournalTabs/History/History.d.ts +1 -1
  55. package/dist/components/JournalTabs/History/History.js +59 -54
  56. package/dist/components/JournalTabs/History/History.js.map +1 -1
  57. package/dist/components/JournalTabs/History/HistoryEntry.js +37 -43
  58. package/dist/components/JournalTabs/History/HistoryEntry.js.map +1 -1
  59. package/dist/components/JournalTabs/History/StartGameHistory.js +12 -17
  60. package/dist/components/JournalTabs/History/StartGameHistory.js.map +1 -1
  61. package/dist/components/JournalTabs/History/index.js +2 -18
  62. package/dist/components/JournalTabs/History/index.js.map +1 -1
  63. package/dist/components/JournalTabs/JournalTabs.js +122 -68
  64. package/dist/components/JournalTabs/JournalTabs.js.map +1 -1
  65. package/dist/components/JournalTabs/index.js +1 -17
  66. package/dist/components/JournalTabs/index.js.map +1 -1
  67. package/dist/components/Letterbox/Letterbox.js +29 -41
  68. package/dist/components/Letterbox/Letterbox.js.map +1 -1
  69. package/dist/components/Letterbox/index.js +1 -17
  70. package/dist/components/Letterbox/index.js.map +1 -1
  71. package/dist/components/LoadingScreen/LoadingScreen.js +83 -89
  72. package/dist/components/LoadingScreen/LoadingScreen.js.map +1 -1
  73. package/dist/components/LoadingScreen/index.js +1 -17
  74. package/dist/components/LoadingScreen/index.js.map +1 -1
  75. package/dist/components/Log/InternalLiveLogContainer.js +73 -83
  76. package/dist/components/Log/InternalLiveLogContainer.js.map +1 -1
  77. package/dist/components/Log/LiveLogButton.js +14 -19
  78. package/dist/components/Log/LiveLogButton.js.map +1 -1
  79. package/dist/components/Log/LiveLogContainer.js +6 -21
  80. package/dist/components/Log/LiveLogContainer.js.map +1 -1
  81. package/dist/components/Log/LogDescription.js +1 -2
  82. package/dist/components/Log/LogItem.js +42 -42
  83. package/dist/components/Log/LogItem.js.map +1 -1
  84. package/dist/components/Log/index.js +3 -19
  85. package/dist/components/Log/index.js.map +1 -1
  86. package/dist/components/Picture/Picture.js +6 -32
  87. package/dist/components/Picture/Picture.js.map +1 -1
  88. package/dist/components/Picture/index.js +1 -17
  89. package/dist/components/Picture/index.js.map +1 -1
  90. package/dist/components/PlayerPanel/Counters.d.ts +2 -1
  91. package/dist/components/PlayerPanel/Counters.js +82 -39
  92. package/dist/components/PlayerPanel/Counters.js.map +1 -1
  93. package/dist/components/PlayerPanel/PlayerPanel.js +83 -53
  94. package/dist/components/PlayerPanel/PlayerPanel.js.map +1 -1
  95. package/dist/components/PlayerPanel/StyledPlayerPanel.js +145 -80
  96. package/dist/components/PlayerPanel/StyledPlayerPanel.js.map +1 -1
  97. package/dist/components/PlayerPanel/index.js +3 -19
  98. package/dist/components/PlayerPanel/index.js.map +1 -1
  99. package/dist/components/PlayerTimer/PlayerTimer.d.ts +1 -1
  100. package/dist/components/PlayerTimer/PlayerTimer.js +32 -61
  101. package/dist/components/PlayerTimer/PlayerTimer.js.map +1 -1
  102. package/dist/components/PlayerTimer/index.js +1 -17
  103. package/dist/components/PlayerTimer/index.js.map +1 -1
  104. package/dist/components/Scoring/ScoringDescription.js +1 -2
  105. package/dist/components/Scoring/index.js +1 -17
  106. package/dist/components/Scoring/index.js.map +1 -1
  107. package/dist/components/buttons/PlayMoveButton/PlayMoveButton.js +82 -105
  108. package/dist/components/buttons/PlayMoveButton/PlayMoveButton.js.map +1 -1
  109. package/dist/components/buttons/PlayMoveButton/index.js +1 -17
  110. package/dist/components/buttons/PlayMoveButton/index.js.map +1 -1
  111. package/dist/components/buttons/ThemeButton/ThemeButton.js +5 -20
  112. package/dist/components/buttons/ThemeButton/ThemeButton.js.map +1 -1
  113. package/dist/components/buttons/ThemeButton/index.js +1 -17
  114. package/dist/components/buttons/ThemeButton/index.js.map +1 -1
  115. package/dist/components/buttons/UndoMovesButton/UndoMovesButton.js +17 -59
  116. package/dist/components/buttons/UndoMovesButton/UndoMovesButton.js.map +1 -1
  117. package/dist/components/buttons/UndoMovesButton/index.js +1 -17
  118. package/dist/components/buttons/UndoMovesButton/index.js.map +1 -1
  119. package/dist/components/buttons/index.js +3 -19
  120. package/dist/components/buttons/index.js.map +1 -1
  121. package/dist/components/dialogs/Dialog.js +57 -67
  122. package/dist/components/dialogs/Dialog.js.map +1 -1
  123. package/dist/components/dialogs/FailuresDialog.js +39 -73
  124. package/dist/components/dialogs/FailuresDialog.js.map +1 -1
  125. package/dist/components/dialogs/ResultDialog/RematchDisplay.js +55 -52
  126. package/dist/components/dialogs/ResultDialog/RematchDisplay.js.map +1 -1
  127. package/dist/components/dialogs/ResultDialog/RematchSection.js +17 -27
  128. package/dist/components/dialogs/ResultDialog/RematchSection.js.map +1 -1
  129. package/dist/components/dialogs/ResultDialog/ResultDialog.js +130 -99
  130. package/dist/components/dialogs/ResultDialog/ResultDialog.js.map +1 -1
  131. package/dist/components/dialogs/ResultDialog/index.js +2 -18
  132. package/dist/components/dialogs/ResultDialog/index.js.map +1 -1
  133. package/dist/components/dialogs/ResultDialog/useScoringTable.js +20 -27
  134. package/dist/components/dialogs/ResultDialog/useScoringTable.js.map +1 -1
  135. package/dist/components/dialogs/RulesDialog/LocationRulesDialogContent.js +32 -31
  136. package/dist/components/dialogs/RulesDialog/LocationRulesDialogContent.js.map +1 -1
  137. package/dist/components/dialogs/RulesDialog/MaterialRulesDialog.js +22 -36
  138. package/dist/components/dialogs/RulesDialog/MaterialRulesDialog.js.map +1 -1
  139. package/dist/components/dialogs/RulesDialog/MaterialRulesDialogContent.js +121 -117
  140. package/dist/components/dialogs/RulesDialog/MaterialRulesDialogContent.js.map +1 -1
  141. package/dist/components/dialogs/RulesDialog/RulesDialog.js +23 -42
  142. package/dist/components/dialogs/RulesDialog/RulesDialog.js.map +1 -1
  143. package/dist/components/dialogs/RulesDialog/RulesHelpDialogContent.d.ts +1 -1
  144. package/dist/components/dialogs/RulesDialog/RulesHelpDialogContent.js +36 -27
  145. package/dist/components/dialogs/RulesDialog/RulesHelpDialogContent.js.map +1 -1
  146. package/dist/components/dialogs/RulesDialog/index.js +2 -18
  147. package/dist/components/dialogs/RulesDialog/index.js.map +1 -1
  148. package/dist/components/dialogs/index.js +4 -20
  149. package/dist/components/dialogs/index.js.map +1 -1
  150. package/dist/components/index.js +17 -33
  151. package/dist/components/index.js.map +1 -1
  152. package/dist/components/material/ComponentDescription.js +32 -18
  153. package/dist/components/material/ComponentDescription.js.map +1 -1
  154. package/dist/components/material/Dices/CubicDiceDescription.js +58 -102
  155. package/dist/components/material/Dices/CubicDiceDescription.js.map +1 -1
  156. package/dist/components/material/Dices/index.js +1 -17
  157. package/dist/components/material/Dices/index.js.map +1 -1
  158. package/dist/components/material/DraggableMaterial.js +121 -198
  159. package/dist/components/material/DraggableMaterial.js.map +1 -1
  160. package/dist/components/material/FlatMaterial/BoardDescription.js +3 -27
  161. package/dist/components/material/FlatMaterial/BoardDescription.js.map +1 -1
  162. package/dist/components/material/FlatMaterial/CardDescription.js +6 -56
  163. package/dist/components/material/FlatMaterial/CardDescription.js.map +1 -1
  164. package/dist/components/material/FlatMaterial/FlatMaterial.js +88 -133
  165. package/dist/components/material/FlatMaterial/FlatMaterial.js.map +1 -1
  166. package/dist/components/material/FlatMaterial/MoneyDescription.js +10 -34
  167. package/dist/components/material/FlatMaterial/MoneyDescription.js.map +1 -1
  168. package/dist/components/material/FlatMaterial/PolyhexDescription.js +12 -63
  169. package/dist/components/material/FlatMaterial/PolyhexDescription.js.map +1 -1
  170. package/dist/components/material/FlatMaterial/TokenDescription.js +10 -66
  171. package/dist/components/material/FlatMaterial/TokenDescription.js.map +1 -1
  172. package/dist/components/material/FlatMaterial/index.js +6 -22
  173. package/dist/components/material/FlatMaterial/index.js.map +1 -1
  174. package/dist/components/material/GameTable/DropPreview.js +31 -66
  175. package/dist/components/material/GameTable/DropPreview.js.map +1 -1
  176. package/dist/components/material/GameTable/DynamicItemsDisplay.js +22 -81
  177. package/dist/components/material/GameTable/DynamicItemsDisplay.js.map +1 -1
  178. package/dist/components/material/GameTable/GameMaterialDisplay.js +25 -30
  179. package/dist/components/material/GameTable/GameMaterialDisplay.js.map +1 -1
  180. package/dist/components/material/GameTable/GameTable.js +78 -125
  181. package/dist/components/material/GameTable/GameTable.js.map +1 -1
  182. package/dist/components/material/GameTable/GameTableNavigation.js +58 -67
  183. package/dist/components/material/GameTable/GameTableNavigation.js.map +1 -1
  184. package/dist/components/material/GameTable/ItemDisplay.js +88 -153
  185. package/dist/components/material/GameTable/ItemDisplay.js.map +1 -1
  186. package/dist/components/material/GameTable/StaticItemsDisplay.js +23 -83
  187. package/dist/components/material/GameTable/StaticItemsDisplay.js.map +1 -1
  188. package/dist/components/material/GameTable/StaticLocationsDisplay.js +11 -28
  189. package/dist/components/material/GameTable/StaticLocationsDisplay.js.map +1 -1
  190. package/dist/components/material/GameTable/focus/FocusProvider.js +28 -53
  191. package/dist/components/material/GameTable/focus/FocusProvider.js.map +1 -1
  192. package/dist/components/material/GameTable/focus/MaterialFocus.js +1 -2
  193. package/dist/components/material/GameTable/focus/index.js +2 -18
  194. package/dist/components/material/GameTable/focus/index.js.map +1 -1
  195. package/dist/components/material/GameTable/index.js +3 -19
  196. package/dist/components/material/GameTable/index.js.map +1 -1
  197. package/dist/components/material/ImageLoader/MaterialImageLoader.js +17 -89
  198. package/dist/components/material/ImageLoader/MaterialImageLoader.js.map +1 -1
  199. package/dist/components/material/ImageLoader/index.js +1 -17
  200. package/dist/components/material/ImageLoader/index.js.map +1 -1
  201. package/dist/components/material/ItemMenuButton.js +41 -69
  202. package/dist/components/material/ItemMenuButton.js.map +1 -1
  203. package/dist/components/material/ItemMenuWrapper.js +16 -66
  204. package/dist/components/material/ItemMenuWrapper.js.map +1 -1
  205. package/dist/components/material/MaterialComponent.d.ts +2 -2
  206. package/dist/components/material/MaterialComponent.js +22 -44
  207. package/dist/components/material/MaterialComponent.js.map +1 -1
  208. package/dist/components/material/MaterialComponentType.js +2 -5
  209. package/dist/components/material/MaterialComponentType.js.map +1 -1
  210. package/dist/components/material/MaterialDescription.d.ts +2 -2
  211. package/dist/components/material/MaterialDescription.js +125 -164
  212. package/dist/components/material/MaterialDescription.js.map +1 -1
  213. package/dist/components/material/MobileMaterialDescription.js +21 -83
  214. package/dist/components/material/MobileMaterialDescription.js.map +1 -1
  215. package/dist/components/material/Wheel/WheelContent.js +26 -29
  216. package/dist/components/material/Wheel/WheelContent.js.map +1 -1
  217. package/dist/components/material/Wheel/WheelDescription.js +46 -105
  218. package/dist/components/material/Wheel/WheelDescription.js.map +1 -1
  219. package/dist/components/material/Wheel/WheelItem.js +43 -42
  220. package/dist/components/material/Wheel/WheelItem.js.map +1 -1
  221. package/dist/components/material/Wheel/index.js +1 -17
  222. package/dist/components/material/Wheel/index.js.map +1 -1
  223. package/dist/components/material/Writing/WritingDescription.js +44 -91
  224. package/dist/components/material/Writing/WritingDescription.js.map +1 -1
  225. package/dist/components/material/Writing/index.js +1 -17
  226. package/dist/components/material/Writing/index.js.map +1 -1
  227. package/dist/components/material/animations/CreateItemAnimations.d.ts +6 -1
  228. package/dist/components/material/animations/CreateItemAnimations.js +43 -67
  229. package/dist/components/material/animations/CreateItemAnimations.js.map +1 -1
  230. package/dist/components/material/animations/DeleteItemAnimations.d.ts +6 -1
  231. package/dist/components/material/animations/DeleteItemAnimations.js +44 -63
  232. package/dist/components/material/animations/DeleteItemAnimations.js.map +1 -1
  233. package/dist/components/material/animations/DeleteItemAtOnceAnimations.js +30 -53
  234. package/dist/components/material/animations/DeleteItemAtOnceAnimations.js.map +1 -1
  235. package/dist/components/material/animations/ItemAnimations.d.ts +6 -1
  236. package/dist/components/material/animations/ItemAnimations.js +21 -55
  237. package/dist/components/material/animations/ItemAnimations.js.map +1 -1
  238. package/dist/components/material/animations/MaterialAnimations.js +30 -56
  239. package/dist/components/material/animations/MaterialAnimations.js.map +1 -1
  240. package/dist/components/material/animations/MaterialGameAnimations.js +53 -131
  241. package/dist/components/material/animations/MaterialGameAnimations.js.map +1 -1
  242. package/dist/components/material/animations/MoveItemAnimations.js +62 -100
  243. package/dist/components/material/animations/MoveItemAnimations.js.map +1 -1
  244. package/dist/components/material/animations/MoveItemAtOnceAnimations.js +31 -66
  245. package/dist/components/material/animations/MoveItemAtOnceAnimations.js.map +1 -1
  246. package/dist/components/material/animations/RollItemAnimations.js +28 -76
  247. package/dist/components/material/animations/RollItemAnimations.js.map +1 -1
  248. package/dist/components/material/animations/ShuffleAnimations.js +9 -31
  249. package/dist/components/material/animations/ShuffleAnimations.js.map +1 -1
  250. package/dist/components/material/animations/getFirstStockItemTransforms.util.js +9 -24
  251. package/dist/components/material/animations/getFirstStockItemTransforms.util.js.map +1 -1
  252. package/dist/components/material/animations/index.js +8 -26
  253. package/dist/components/material/animations/index.js.map +1 -1
  254. package/dist/components/material/animations/rotations.utils.js +50 -83
  255. package/dist/components/material/animations/rotations.utils.js.map +1 -1
  256. package/dist/components/material/animations/transformItem.util.js +6 -35
  257. package/dist/components/material/animations/transformItem.util.js.map +1 -1
  258. package/dist/components/material/index.js +15 -31
  259. package/dist/components/material/index.js.map +1 -1
  260. package/dist/components/material/locations/DropAreaDescription.js +20 -80
  261. package/dist/components/material/locations/DropAreaDescription.js.map +1 -1
  262. package/dist/components/material/locations/HexGridDropAreaDescription.js +34 -101
  263. package/dist/components/material/locations/HexGridDropAreaDescription.js.map +1 -1
  264. package/dist/components/material/locations/LocationComponent.js +53 -88
  265. package/dist/components/material/locations/LocationComponent.js.map +1 -1
  266. package/dist/components/material/locations/LocationDescription.js +58 -113
  267. package/dist/components/material/locations/LocationDescription.js.map +1 -1
  268. package/dist/components/material/locations/LocationDisplay.js +25 -79
  269. package/dist/components/material/locations/LocationDisplay.js.map +1 -1
  270. package/dist/components/material/locations/LocationsMask.js +16 -23
  271. package/dist/components/material/locations/LocationsMask.js.map +1 -1
  272. package/dist/components/material/locations/SimpleDropArea.js +42 -90
  273. package/dist/components/material/locations/SimpleDropArea.js.map +1 -1
  274. package/dist/components/material/locations/index.js +5 -21
  275. package/dist/components/material/locations/index.js.map +1 -1
  276. package/dist/components/material/sound/AudioLoader.js +43 -92
  277. package/dist/components/material/sound/AudioLoader.js.map +1 -1
  278. package/dist/components/material/sound/MaterialGameSounds.js +42 -76
  279. package/dist/components/material/sound/MaterialGameSounds.js.map +1 -1
  280. package/dist/components/material/sound/MaterialSoundConfig.js +11 -8
  281. package/dist/components/material/sound/MaterialSoundConfig.js.map +1 -1
  282. package/dist/components/material/sound/MaterialSoundLoader.js +16 -69
  283. package/dist/components/material/sound/MaterialSoundLoader.js.map +1 -1
  284. package/dist/components/material/sound/index.js +2 -18
  285. package/dist/components/material/sound/index.js.map +1 -1
  286. package/dist/components/material/sound/sound.utils.js +1 -5
  287. package/dist/components/material/sound/sound.utils.js.map +1 -1
  288. package/dist/components/material/utils/IsLocationSubset.js +4 -8
  289. package/dist/components/material/utils/IsLocationSubset.js.map +1 -1
  290. package/dist/components/material/utils/getBestDropMove.d.ts +1 -1
  291. package/dist/components/material/utils/getBestDropMove.js +12 -26
  292. package/dist/components/material/utils/getBestDropMove.js.map +1 -1
  293. package/dist/components/material/utils/index.js +1 -17
  294. package/dist/components/material/utils/index.js.map +1 -1
  295. package/dist/components/material/utils/isDroppedItem.js +7 -24
  296. package/dist/components/material/utils/isDroppedItem.js.map +1 -1
  297. package/dist/components/material/utils/isPlacedOnItem.js +5 -9
  298. package/dist/components/material/utils/isPlacedOnItem.js.map +1 -1
  299. package/dist/components/material/utils/isRotationMove.js +5 -20
  300. package/dist/components/material/utils/isRotationMove.js.map +1 -1
  301. package/dist/components/material/utils/useIsAnimatingPlayerAction.js +4 -10
  302. package/dist/components/material/utils/useIsAnimatingPlayerAction.js.map +1 -1
  303. package/dist/components/menus/EjectPlayer/EjectPlayerButton.js +30 -32
  304. package/dist/components/menus/EjectPlayer/EjectPlayerButton.js.map +1 -1
  305. package/dist/components/menus/EjectPlayer/EjectPlayerDialog.js +47 -66
  306. package/dist/components/menus/EjectPlayer/EjectPlayerDialog.js.map +1 -1
  307. package/dist/components/menus/EjectPlayer/EjectPlayerPopButton.js +25 -50
  308. package/dist/components/menus/EjectPlayer/EjectPlayerPopButton.js.map +1 -1
  309. package/dist/components/menus/EjectPlayer/index.js +3 -19
  310. package/dist/components/menus/EjectPlayer/index.js.map +1 -1
  311. package/dist/components/menus/Fullscreen/FullscreenButton.js +11 -15
  312. package/dist/components/menus/Fullscreen/FullscreenButton.js.map +1 -1
  313. package/dist/components/menus/Fullscreen/FullscreenDialog.js +36 -60
  314. package/dist/components/menus/Fullscreen/FullscreenDialog.js.map +1 -1
  315. package/dist/components/menus/Fullscreen/FullscreenPopButton.js +28 -42
  316. package/dist/components/menus/Fullscreen/FullscreenPopButton.js.map +1 -1
  317. package/dist/components/menus/Fullscreen/index.js +3 -19
  318. package/dist/components/menus/Fullscreen/index.js.map +1 -1
  319. package/dist/components/menus/GiveUpButton/GiveUpButton.js +49 -60
  320. package/dist/components/menus/GiveUpButton/GiveUpButton.js.map +1 -1
  321. package/dist/components/menus/GiveUpButton/index.js +1 -17
  322. package/dist/components/menus/GiveUpButton/index.js.map +1 -1
  323. package/dist/components/menus/Menu/LogoIcon.js +2 -17
  324. package/dist/components/menus/Menu/LogoIcon.js.map +1 -1
  325. package/dist/components/menus/Menu/Menu.d.ts +2 -2
  326. package/dist/components/menus/Menu/Menu.js +117 -93
  327. package/dist/components/menus/Menu/Menu.js.map +1 -1
  328. package/dist/components/menus/Menu/MenuPopButton.js +21 -60
  329. package/dist/components/menus/Menu/MenuPopButton.js.map +1 -1
  330. package/dist/components/menus/Menu/NavButton.js +3 -32
  331. package/dist/components/menus/Menu/NavButton.js.map +1 -1
  332. package/dist/components/menus/Menu/index.js +1 -17
  333. package/dist/components/menus/Menu/index.js.map +1 -1
  334. package/dist/components/menus/PlayerQuit/TrackPlayersQuit.js +20 -42
  335. package/dist/components/menus/PlayerQuit/TrackPlayersQuit.js.map +1 -1
  336. package/dist/components/menus/PlayerQuit/index.js +1 -17
  337. package/dist/components/menus/PlayerQuit/index.js.map +1 -1
  338. package/dist/components/menus/RestartTutorialButton/RestartTutorialButton.js +12 -17
  339. package/dist/components/menus/RestartTutorialButton/RestartTutorialButton.js.map +1 -1
  340. package/dist/components/menus/RestartTutorialButton/index.js +1 -17
  341. package/dist/components/menus/RestartTutorialButton/index.js.map +1 -1
  342. package/dist/components/menus/Result/Medal.js +8 -35
  343. package/dist/components/menus/Result/Medal.js.map +1 -1
  344. package/dist/components/menus/Result/MedalBronze.js +2 -17
  345. package/dist/components/menus/Result/MedalBronze.js.map +1 -1
  346. package/dist/components/menus/Result/MedalGold.js +2 -17
  347. package/dist/components/menus/Result/MedalGold.js.map +1 -1
  348. package/dist/components/menus/Result/MedalSilver.js +2 -17
  349. package/dist/components/menus/Result/MedalSilver.js.map +1 -1
  350. package/dist/components/menus/Result/ResultButton.js +8 -23
  351. package/dist/components/menus/Result/ResultButton.js.map +1 -1
  352. package/dist/components/menus/Result/ResultPopButton.js +46 -35
  353. package/dist/components/menus/Result/ResultPopButton.js.map +1 -1
  354. package/dist/components/menus/Result/index.js +3 -19
  355. package/dist/components/menus/Result/index.js.map +1 -1
  356. package/dist/components/menus/SoundButton/SoundButton.js +11 -15
  357. package/dist/components/menus/SoundButton/SoundButton.js.map +1 -1
  358. package/dist/components/menus/SoundButton/index.js +1 -17
  359. package/dist/components/menus/SoundButton/index.js.map +1 -1
  360. package/dist/components/menus/TimeStatsButton/TimeStatsButton.js +68 -70
  361. package/dist/components/menus/TimeStatsButton/TimeStatsButton.js.map +1 -1
  362. package/dist/components/menus/TimeStatsButton/index.js +1 -17
  363. package/dist/components/menus/TimeStatsButton/index.js.map +1 -1
  364. package/dist/components/menus/UndoButton/UndoButton.js +11 -31
  365. package/dist/components/menus/UndoButton/UndoButton.js.map +1 -1
  366. package/dist/components/menus/UndoButton/UndoPopButton.js +24 -38
  367. package/dist/components/menus/UndoButton/UndoPopButton.js.map +1 -1
  368. package/dist/components/menus/UndoButton/index.js +2 -18
  369. package/dist/components/menus/UndoButton/index.js.map +1 -1
  370. package/dist/components/menus/index.js +6 -22
  371. package/dist/components/menus/index.js.map +1 -1
  372. package/dist/components/menus/menuCss.d.ts +9 -9
  373. package/dist/components/menus/menuCss.js +102 -19
  374. package/dist/components/menus/menuCss.js.map +1 -1
  375. package/dist/components/tutorial/MaterialTutorial.js +19 -27
  376. package/dist/components/tutorial/MaterialTutorial.js.map +1 -1
  377. package/dist/components/tutorial/MaterialTutorialDisplay.js +84 -95
  378. package/dist/components/tutorial/MaterialTutorialDisplay.js.map +1 -1
  379. package/dist/components/tutorial/TutorialRulesWrapper.js +54 -63
  380. package/dist/components/tutorial/TutorialRulesWrapper.js.map +1 -1
  381. package/dist/components/tutorial/index.js +1 -17
  382. package/dist/components/tutorial/index.js.map +1 -1
  383. package/dist/css/GameTheme.js +4 -7
  384. package/dist/css/GameTheme.js.map +1 -1
  385. package/dist/css/addStylesheetUrl.js +2 -6
  386. package/dist/css/addStylesheetUrl.js.map +1 -1
  387. package/dist/css/backgroundCss.d.ts +1 -1
  388. package/dist/css/backgroundCss.js +5 -11
  389. package/dist/css/backgroundCss.js.map +1 -1
  390. package/dist/css/buttonCss.d.ts +3 -3
  391. package/dist/css/buttonCss.js +45 -13
  392. package/dist/css/buttonCss.js.map +1 -1
  393. package/dist/css/componentSizeCss.d.ts +5 -5
  394. package/dist/css/componentSizeCss.js +17 -22
  395. package/dist/css/componentSizeCss.js.map +1 -1
  396. package/dist/css/cursorCss.d.ts +3 -3
  397. package/dist/css/cursorCss.js +10 -12
  398. package/dist/css/cursorCss.js.map +1 -1
  399. package/dist/css/fadeIn.d.ts +1 -1
  400. package/dist/css/fadeIn.js +9 -12
  401. package/dist/css/fadeIn.js.map +1 -1
  402. package/dist/css/index.js +10 -26
  403. package/dist/css/index.js.map +1 -1
  404. package/dist/css/shadowEffect.d.ts +1 -1
  405. package/dist/css/shadowEffect.js +15 -10
  406. package/dist/css/shadowEffect.js.map +1 -1
  407. package/dist/css/shineEffect.d.ts +1 -1
  408. package/dist/css/shineEffect.js +31 -11
  409. package/dist/css/shineEffect.js.map +1 -1
  410. package/dist/css/transformCss.d.ts +2 -2
  411. package/dist/css/transformCss.js +7 -18
  412. package/dist/css/transformCss.js.map +1 -1
  413. package/dist/hooks/index.d.ts +0 -1
  414. package/dist/hooks/index.js +26 -43
  415. package/dist/hooks/index.js.map +1 -1
  416. package/dist/hooks/useActions.js +2 -8
  417. package/dist/hooks/useActions.js.map +1 -1
  418. package/dist/hooks/useAnimations.js +18 -52
  419. package/dist/hooks/useAnimations.js.map +1 -1
  420. package/dist/hooks/useDraggedItem.js +9 -28
  421. package/dist/hooks/useDraggedItem.js.map +1 -1
  422. package/dist/hooks/useFailures.d.ts +1 -1
  423. package/dist/hooks/useFailures.js +10 -10
  424. package/dist/hooks/useFailures.js.map +1 -1
  425. package/dist/hooks/useFlatHistory.js +60 -128
  426. package/dist/hooks/useFlatHistory.js.map +1 -1
  427. package/dist/hooks/useFullscreen.js +19 -42
  428. package/dist/hooks/useFullscreen.js.map +1 -1
  429. package/dist/hooks/useGame.js +3 -6
  430. package/dist/hooks/useGame.js.map +1 -1
  431. package/dist/hooks/useGiveUp.js +10 -15
  432. package/dist/hooks/useGiveUp.js.map +1 -1
  433. package/dist/hooks/useItemLocations.js +31 -102
  434. package/dist/hooks/useItemLocations.js.map +1 -1
  435. package/dist/hooks/useItemLocator.js +3 -7
  436. package/dist/hooks/useItemLocator.js.map +1 -1
  437. package/dist/hooks/useKeyDown.js +5 -9
  438. package/dist/hooks/useKeyDown.js.map +1 -1
  439. package/dist/hooks/useLegalMoves.js +8 -12
  440. package/dist/hooks/useLegalMoves.js.map +1 -1
  441. package/dist/hooks/useLocators.js +3 -7
  442. package/dist/hooks/useLocators.js.map +1 -1
  443. package/dist/hooks/useMaterialContext.js +11 -15
  444. package/dist/hooks/useMaterialContext.js.map +1 -1
  445. package/dist/hooks/useMaterialDescription.js +4 -8
  446. package/dist/hooks/useMaterialDescription.js.map +1 -1
  447. package/dist/hooks/useNow.js +9 -30
  448. package/dist/hooks/useNow.js.map +1 -1
  449. package/dist/hooks/useNumberOfPlayers.js +2 -6
  450. package/dist/hooks/useNumberOfPlayers.js.map +1 -1
  451. package/dist/hooks/useOpponentWithMaxTime.js +17 -39
  452. package/dist/hooks/useOpponentWithMaxTime.js.map +1 -1
  453. package/dist/hooks/usePlay.js +5 -21
  454. package/dist/hooks/usePlay.js.map +1 -1
  455. package/dist/hooks/usePlayerId.js +4 -10
  456. package/dist/hooks/usePlayerId.js.map +1 -1
  457. package/dist/hooks/usePlayerName.js +14 -19
  458. package/dist/hooks/usePlayerName.js.map +1 -1
  459. package/dist/hooks/usePlayerTime.js +16 -37
  460. package/dist/hooks/usePlayerTime.js.map +1 -1
  461. package/dist/hooks/usePlayers.js +35 -69
  462. package/dist/hooks/usePlayers.js.map +1 -1
  463. package/dist/hooks/useRankedPlayers.js +15 -20
  464. package/dist/hooks/useRankedPlayers.js.map +1 -1
  465. package/dist/hooks/useResultText.js +23 -27
  466. package/dist/hooks/useResultText.js.map +1 -1
  467. package/dist/hooks/useRules.js +10 -13
  468. package/dist/hooks/useRules.js.map +1 -1
  469. package/dist/hooks/useSound.js +8 -28
  470. package/dist/hooks/useSound.js.map +1 -1
  471. package/dist/hooks/useStaticLocations.js +21 -84
  472. package/dist/hooks/useStaticLocations.js.map +1 -1
  473. package/dist/hooks/useTutorialStep.js +7 -10
  474. package/dist/hooks/useTutorialStep.js.map +1 -1
  475. package/dist/hooks/useUndo.d.ts +1 -1
  476. package/dist/hooks/useUndo.js +29 -64
  477. package/dist/hooks/useUndo.js.map +1 -1
  478. package/dist/hooks/useWebP.js +10 -77
  479. package/dist/hooks/useWebP.js.map +1 -1
  480. package/dist/hooks/useZoomToElements.js +43 -75
  481. package/dist/hooks/useZoomToElements.js.map +1 -1
  482. package/dist/index.js +5 -23
  483. package/dist/index.js.map +1 -1
  484. package/dist/locators/DeckLocator.js +8 -30
  485. package/dist/locators/DeckLocator.js.map +1 -1
  486. package/dist/locators/FlexLocator.js +57 -70
  487. package/dist/locators/FlexLocator.js.map +1 -1
  488. package/dist/locators/HandLocator.js +74 -99
  489. package/dist/locators/HandLocator.js.map +1 -1
  490. package/dist/locators/HexagonalGridLocator.js +105 -158
  491. package/dist/locators/HexagonalGridLocator.js.map +1 -1
  492. package/dist/locators/ListLocator.js +59 -73
  493. package/dist/locators/ListLocator.js.map +1 -1
  494. package/dist/locators/Locator.js +149 -190
  495. package/dist/locators/Locator.js.map +1 -1
  496. package/dist/locators/PileLocator.js +65 -126
  497. package/dist/locators/PileLocator.js.map +1 -1
  498. package/dist/locators/index.js +8 -24
  499. package/dist/locators/index.js.map +1 -1
  500. package/dist/locators/utils/getRelativePlayerIndex.util.js +2 -7
  501. package/dist/locators/utils/getRelativePlayerIndex.util.js.map +1 -1
  502. package/dist/locators/utils/index.js +1 -17
  503. package/dist/locators/utils/index.js.map +1 -1
  504. package/dist/utilities/DeepPartial.js +1 -2
  505. package/dist/utilities/combineEventListeners.js +5 -38
  506. package/dist/utilities/combineEventListeners.js.map +1 -1
  507. package/dist/utilities/findIfUnique.util.js +4 -7
  508. package/dist/utilities/findIfUnique.util.js.map +1 -1
  509. package/dist/utilities/index.js +4 -20
  510. package/dist/utilities/index.js.map +1 -1
  511. package/dist/utilities/translation.util.js +21 -31
  512. package/dist/utilities/translation.util.js.map +1 -1
  513. package/dist/utilities/zoom-pan-pinch/animations.constants.js +29 -32
  514. package/dist/utilities/zoom-pan-pinch/animations.constants.js.map +1 -1
  515. package/dist/utilities/zoom-pan-pinch/animations.util.js +24 -30
  516. package/dist/utilities/zoom-pan-pinch/animations.util.js.map +1 -1
  517. package/dist/utilities/zoom-pan-pinch/bounds.util.js +43 -52
  518. package/dist/utilities/zoom-pan-pinch/bounds.util.js.map +1 -1
  519. package/dist/utilities/zoom-pan-pinch/calculation.util.js +2 -7
  520. package/dist/utilities/zoom-pan-pinch/calculation.util.js.map +1 -1
  521. package/dist/utilities/zoom-pan-pinch/index.js +5 -21
  522. package/dist/utilities/zoom-pan-pinch/index.js.map +1 -1
  523. package/dist/utilities/zoom-pan-pinch/zoom.util.js +3 -6
  524. package/dist/utilities/zoom-pan-pinch/zoom.util.js.map +1 -1
  525. package/package.json +83 -77
  526. package/dist/components/Chat/Chat.d.ts +0 -3
  527. package/dist/components/Chat/Chat.js +0 -80
  528. package/dist/components/Chat/Chat.js.map +0 -1
  529. package/dist/components/Chat/ChatMessage.d.ts +0 -7
  530. package/dist/components/Chat/ChatMessage.js +0 -29
  531. package/dist/components/Chat/ChatMessage.js.map +0 -1
  532. package/dist/components/Chat/ChatMessageAuthor.d.ts +0 -3
  533. package/dist/components/Chat/ChatMessageAuthor.js +0 -34
  534. package/dist/components/Chat/ChatMessageAuthor.js.map +0 -1
  535. package/dist/components/Chat/ChatTextInput.d.ts +0 -7
  536. package/dist/components/Chat/ChatTextInput.js +0 -44
  537. package/dist/components/Chat/ChatTextInput.js.map +0 -1
  538. package/dist/components/Chat/SignInToChat.d.ts +0 -1
  539. package/dist/components/Chat/SignInToChat.js +0 -35
  540. package/dist/components/Chat/SignInToChat.js.map +0 -1
  541. package/dist/components/Chat/index.d.ts +0 -5
  542. package/dist/components/Chat/index.js +0 -22
  543. package/dist/components/Chat/index.js.map +0 -1
  544. package/dist/components/Header/PlayerTurnHeader.d.ts +0 -11
  545. package/dist/components/Header/PlayerTurnHeader.js +0 -37
  546. package/dist/components/Header/PlayerTurnHeader.js.map +0 -1
  547. package/dist/components/Header/SimultaneousHeader.d.ts +0 -8
  548. package/dist/components/Header/SimultaneousHeader.js +0 -35
  549. package/dist/components/Header/SimultaneousHeader.js.map +0 -1
  550. package/dist/components/JournalTabs/History/ActionHistoryEntry.d.ts +0 -12
  551. package/dist/components/JournalTabs/History/ActionHistoryEntry.js +0 -62
  552. package/dist/components/JournalTabs/History/ActionHistoryEntry.js.map +0 -1
  553. package/dist/components/JournalTabs/History/MaterialHistory.d.ts +0 -10
  554. package/dist/components/JournalTabs/History/MaterialHistory.js +0 -3
  555. package/dist/components/JournalTabs/History/MaterialHistory.js.map +0 -1
  556. package/dist/components/JournalTabs/History/PlayerActionHistory.d.ts +0 -8
  557. package/dist/components/JournalTabs/History/PlayerActionHistory.js +0 -42
  558. package/dist/components/JournalTabs/History/PlayerActionHistory.js.map +0 -1
  559. package/dist/components/JournalTabs/History/PlayerHistoryEntry.d.ts +0 -8
  560. package/dist/components/JournalTabs/History/PlayerHistoryEntry.js +0 -44
  561. package/dist/components/JournalTabs/History/PlayerHistoryEntry.js.map +0 -1
  562. package/dist/components/JournalTabs/History/StartHistory.d.ts +0 -2
  563. package/dist/components/JournalTabs/History/StartHistory.js +0 -30
  564. package/dist/components/JournalTabs/History/StartHistory.js.map +0 -1
  565. package/dist/components/material/Dices/DiceDescription.d.ts +0 -10
  566. package/dist/components/material/Dices/DiceDescription.js +0 -56
  567. package/dist/components/material/Dices/DiceDescription.js.map +0 -1
  568. package/dist/components/material/GameTable/DraggableStockItem.d.ts +0 -4
  569. package/dist/components/material/GameTable/DraggableStockItem.js +0 -82
  570. package/dist/components/material/GameTable/DraggableStockItem.js.map +0 -1
  571. package/dist/components/material/GameTable/FocusableElement.d.ts +0 -13
  572. package/dist/components/material/GameTable/FocusableElement.js +0 -63
  573. package/dist/components/material/GameTable/FocusableElement.js.map +0 -1
  574. package/dist/components/material/GameTable/FocusableLocation.d.ts +0 -8
  575. package/dist/components/material/GameTable/FocusableLocation.js +0 -37
  576. package/dist/components/material/GameTable/FocusableLocation.js.map +0 -1
  577. package/dist/components/material/GameTable/FocusableLocations.d.ts +0 -0
  578. package/dist/components/material/GameTable/FocusableLocations.js +0 -2
  579. package/dist/components/material/GameTable/FocusableLocations.js.map +0 -1
  580. package/dist/components/material/GameTable/GameTableContent.d.ts +0 -18
  581. package/dist/components/material/GameTable/GameTableContent.js +0 -63
  582. package/dist/components/material/GameTable/GameTableContent.js.map +0 -1
  583. package/dist/components/material/GameTable/focus/FocusableElement.d.ts +0 -13
  584. package/dist/components/material/GameTable/focus/FocusableElement.js +0 -63
  585. package/dist/components/material/GameTable/focus/FocusableElement.js.map +0 -1
  586. package/dist/components/material/GameTable/focus/FocusableLocation.d.ts +0 -8
  587. package/dist/components/material/GameTable/focus/FocusableLocation.js +0 -38
  588. package/dist/components/material/GameTable/focus/FocusableLocation.js.map +0 -1
  589. package/dist/components/material/GameTable/focus/LocationsWithFocus.d.ts +0 -9
  590. package/dist/components/material/GameTable/focus/LocationsWithFocus.js +0 -45
  591. package/dist/components/material/GameTable/focus/LocationsWithFocus.js.map +0 -1
  592. package/dist/components/material/GameTable/locations.utils.d.ts +0 -0
  593. package/dist/components/material/GameTable/locations.utils.js +0 -2
  594. package/dist/components/material/GameTable/locations.utils.js.map +0 -1
  595. package/dist/components/material/ItemMenu.js.map +0 -1
  596. package/dist/components/material/MaterialAnimations.d.ts +0 -25
  597. package/dist/components/material/MaterialAnimations.js +0 -219
  598. package/dist/components/material/MaterialAnimations.js.map +0 -1
  599. package/dist/components/material/MaterialGameAnimations.d.ts +0 -10
  600. package/dist/components/material/MaterialGameAnimations.js +0 -47
  601. package/dist/components/material/MaterialGameAnimations.js.map +0 -1
  602. package/dist/components/material/animations/adjustRotation.d.ts +0 -1
  603. package/dist/components/material/animations/adjustRotation.js +0 -67
  604. package/dist/components/material/animations/adjustRotation.js.map +0 -1
  605. package/dist/components/material/animations/isMovedOrDeletedItem.util.d.ts +0 -3
  606. package/dist/components/material/animations/isMovedOrDeletedItem.util.js +0 -26
  607. package/dist/components/material/animations/isMovedOrDeletedItem.util.js.map +0 -1
  608. package/dist/components/material/animations/itemMovementCss.util.d.ts +0 -2
  609. package/dist/components/material/animations/itemMovementCss.util.js +0 -13
  610. package/dist/components/material/animations/itemMovementCss.util.js.map +0 -1
  611. package/dist/components/material/locations/HexGridDropArea.d.ts +0 -11
  612. package/dist/components/material/locations/HexGridDropArea.js +0 -74
  613. package/dist/components/material/locations/HexGridDropArea.js.map +0 -1
  614. package/dist/components/material/utils/IsMoveOnItem.d.ts +0 -2
  615. package/dist/components/material/utils/IsMoveOnItem.js +0 -12
  616. package/dist/components/material/utils/IsMoveOnItem.js.map +0 -1
  617. package/dist/components/material/utils/getItemFromContext.d.ts +0 -3
  618. package/dist/components/material/utils/getItemFromContext.js +0 -10
  619. package/dist/components/material/utils/getItemFromContext.js.map +0 -1
  620. package/dist/components/menus/ContrastThemeButton/ContrastThemeButton.d.ts +0 -4
  621. package/dist/components/menus/ContrastThemeButton/ContrastThemeButton.js +0 -27
  622. package/dist/components/menus/ContrastThemeButton/ContrastThemeButton.js.map +0 -1
  623. package/dist/components/menus/ContrastThemeButton/index.d.ts +0 -1
  624. package/dist/components/menus/ContrastThemeButton/index.js +0 -18
  625. package/dist/components/menus/ContrastThemeButton/index.js.map +0 -1
  626. package/dist/components/tutorial/FocusableElement.d.ts +0 -0
  627. package/dist/components/tutorial/FocusableElement.js +0 -2
  628. package/dist/components/tutorial/FocusableElement.js.map +0 -1
  629. package/dist/hooks/useCloseHelpDialog.d.ts +0 -1
  630. package/dist/hooks/useCloseHelpDialog.js +0 -14
  631. package/dist/hooks/useCloseHelpDialog.js.map +0 -1
  632. package/dist/hooks/useContrastTheme.d.ts +0 -7
  633. package/dist/hooks/useContrastTheme.js +0 -27
  634. package/dist/hooks/useContrastTheme.js.map +0 -1
  635. package/dist/hooks/useGameHistory.d.ts +0 -1
  636. package/dist/hooks/useGameHistory.js +0 -13
  637. package/dist/hooks/useGameHistory.js.map +0 -1
  638. package/dist/hooks/useHistory.d.ts +0 -6
  639. package/dist/hooks/useHistory.js +0 -85
  640. package/dist/hooks/useHistory.js.map +0 -1
  641. package/dist/hooks/useMaterialAnimations.d.ts +0 -2
  642. package/dist/hooks/useMaterialAnimations.js +0 -17
  643. package/dist/hooks/useMaterialAnimations.js.map +0 -1
  644. package/dist/hooks/useMaterials.d.ts +0 -2
  645. package/dist/hooks/useMaterials.js +0 -10
  646. package/dist/hooks/useMaterials.js.map +0 -1
  647. package/dist/hooks/useRulesStep.d.ts +0 -2
  648. package/dist/hooks/useRulesStep.js +0 -10
  649. package/dist/hooks/useRulesStep.js.map +0 -1
  650. package/dist/hooks/useScale.d.ts +0 -1
  651. package/dist/hooks/useScale.js +0 -16
  652. package/dist/hooks/useScale.js.map +0 -1
  653. package/dist/locators/GridLocator.d.ts +0 -13
  654. package/dist/locators/GridLocator.js +0 -59
  655. package/dist/locators/GridLocator.js.map +0 -1
  656. package/dist/locators/ItemLocator.d.ts +0 -49
  657. package/dist/locators/ItemLocator.js +0 -144
  658. package/dist/locators/ItemLocator.js.map +0 -1
  659. package/dist/locators/LineLocator.d.ts +0 -12
  660. package/dist/locators/LineLocator.js +0 -77
  661. package/dist/locators/LineLocator.js.map +0 -1
  662. package/dist/translation/index.d.ts +0 -1
  663. package/dist/translation/index.js +0 -18
  664. package/dist/translation/index.js.map +0 -1
  665. package/dist/translation/setupTranslation.d.ts +0 -5
  666. package/dist/translation/setupTranslation.js +0 -33
  667. package/dist/translation/setupTranslation.js.map +0 -1
  668. package/dist/utilities/animations.constants.d.ts +0 -16
  669. package/dist/utilities/animations.constants.js +0 -62
  670. package/dist/utilities/animations.constants.js.map +0 -1
  671. package/dist/utilities/animations.util.d.ts +0 -4
  672. package/dist/utilities/animations.util.js +0 -71
  673. package/dist/utilities/animations.util.js.map +0 -1
  674. package/dist/utilities/bounds.util.d.ts +0 -7
  675. package/dist/utilities/bounds.util.js +0 -77
  676. package/dist/utilities/bounds.util.js.map +0 -1
  677. package/dist/utilities/calculation.util.d.ts +0 -2
  678. package/dist/utilities/calculation.util.js +0 -12
  679. package/dist/utilities/calculation.util.js.map +0 -1
  680. package/dist/utilities/pusher.d.ts +0 -2
  681. package/dist/utilities/pusher.js +0 -16
  682. package/dist/utilities/pusher.js.map +0 -1
  683. package/dist/utilities/zoom.util.d.ts +0 -1
  684. package/dist/utilities/zoom.util.js +0 -14
  685. package/dist/utilities/zoom.util.js.map +0 -1
@@ -1,134 +1,84 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __read = (this && this.__read) || function (o, n) {
18
- var m = typeof Symbol === "function" && o[Symbol.iterator];
19
- if (!m) return o;
20
- var i = m.call(o), r, ar = [], e;
21
- try {
22
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
23
- }
24
- catch (error) { e = { error: error }; }
25
- finally {
26
- try {
27
- if (r && !r.done && (m = i["return"])) m.call(i);
28
- }
29
- finally { if (e) throw e.error; }
30
- }
31
- return ar;
32
- };
33
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
34
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
35
- if (ar || !(i in from)) {
36
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
37
- ar[i] = from[i];
38
- }
39
- }
40
- return to.concat(ar || Array.prototype.slice.call(from));
41
- };
42
- Object.defineProperty(exports, "__esModule", { value: true });
43
- exports.HexagonalGridLocator = exports.HexOrientation = void 0;
44
- var rules_api_1 = require("@gamepark/rules-api");
45
- var es_toolkit_1 = require("es-toolkit");
46
- var compat_1 = require("es-toolkit/compat");
47
- var components_1 = require("../components");
48
- var Locator_1 = require("./Locator");
49
- var HexOrientation;
1
+ import { HexGridSystem } from '@gamepark/rules-api';
2
+ import { isEqual, omit, uniqWith } from 'es-toolkit';
3
+ import { findLastIndex } from 'es-toolkit/compat';
4
+ import { HexGridDropAreaDescription, isPolyhexDescription } from '../components';
5
+ import { Locator } from './Locator';
6
+ export var HexOrientation;
50
7
  (function (HexOrientation) {
51
8
  HexOrientation[HexOrientation["Flat"] = 1] = "Flat";
52
9
  HexOrientation[HexOrientation["Pointy"] = 2] = "Pointy";
53
- })(HexOrientation || (exports.HexOrientation = HexOrientation = {}));
10
+ })(HexOrientation || (HexOrientation = {}));
54
11
  /**
55
12
  * This locator is responsible for placing locations and items on a hexagonal grid.
56
13
  */
57
- var HexagonalGridLocator = /** @class */ (function (_super) {
58
- __extends(HexagonalGridLocator, _super);
59
- function HexagonalGridLocator() {
60
- var _this = _super.apply(this, __spreadArray([], __read(arguments), false)) || this;
61
- _this.dropPreview = true;
62
- return _this;
14
+ export class HexagonalGridLocator extends Locator {
15
+ /**
16
+ * When using Axial coordinates system, you must specify the hexagons orientation
17
+ */
18
+ orientation;
19
+ /**
20
+ * Horizontal size of a hexagon
21
+ */
22
+ get sizeX() {
23
+ return typeof this.size === 'number' ? this.size : this.size.x;
24
+ }
25
+ /**
26
+ * Vertical size of a hexagon
27
+ */
28
+ get sizeY() {
29
+ return typeof this.size === 'number' ? this.size : this.size.y;
63
30
  }
64
- Object.defineProperty(HexagonalGridLocator.prototype, "sizeX", {
65
- /**
66
- * Horizontal size of a hexagon
67
- */
68
- get: function () {
69
- return typeof this.size === 'number' ? this.size : this.size.x;
70
- },
71
- enumerable: false,
72
- configurable: true
73
- });
74
- Object.defineProperty(HexagonalGridLocator.prototype, "sizeY", {
75
- /**
76
- * Vertical size of a hexagon
77
- */
78
- get: function () {
79
- return typeof this.size === 'number' ? this.size : this.size.y;
80
- },
81
- enumerable: false,
82
- configurable: true
83
- });
31
+ /**
32
+ * Polyhex of the drop area
33
+ */
34
+ dropArea;
84
35
  /**
85
36
  * Override if you need a dynamic drop area
86
37
  * @param _location The location to consider
87
38
  * @param _context Context of the game
88
39
  * @return the current drop area
89
40
  */
90
- HexagonalGridLocator.prototype.getDropArea = function (_location, _context) {
41
+ getDropArea(_location, _context) {
91
42
  return this.dropArea;
92
- };
43
+ }
93
44
  /**
94
45
  * Get the coordinates for the full grid area
95
46
  * @param location Location to place
96
47
  * @param context Context of the game
97
48
  * @returns The coordinates of the area
98
49
  */
99
- HexagonalGridLocator.prototype.getAreaCoordinates = function (location, context) {
100
- var _a = this.getCoordinates(location, context), _b = _a.x, x = _b === void 0 ? 0 : _b, _c = _a.y, y = _c === void 0 ? 0 : _c, z = _a.z;
101
- var dropArea = this.getDropArea(location, context);
50
+ getAreaCoordinates(location, context) {
51
+ const { x = 0, y = 0, z } = this.getCoordinates(location, context);
52
+ const dropArea = this.getDropArea(location, context);
102
53
  if (!dropArea)
103
- return { x: x, y: y, z: z };
104
- var _d = this.getBoundaries(dropArea), xMin = _d.xMin, xMax = _d.xMax, yMin = _d.yMin, yMax = _d.yMax;
105
- return { x: (xMin + xMax) / 2, y: (yMin + yMax) / 2, z: z };
106
- };
54
+ return { x, y, z };
55
+ const { xMin, xMax, yMin, yMax } = this.getBoundaries(dropArea);
56
+ return { x: (xMin + xMax) / 2, y: (yMin + yMax) / 2, z };
57
+ }
107
58
  /**
108
59
  * Get the coordinates of a location on the grid
109
60
  * @param location Location to place
110
61
  * @param context Context of the game
111
62
  * @return the coordinates
112
63
  */
113
- HexagonalGridLocator.prototype.getLocationCoordinates = function (location, context) {
64
+ getLocationCoordinates(location, context) {
114
65
  if (location.x === undefined && location.y === undefined) {
115
66
  return this.getAreaCoordinates(location, context);
116
67
  }
117
- var _a = this.getCoordinates(location, context), _b = _a.x, baseX = _b === void 0 ? 0 : _b, _c = _a.y, baseY = _c === void 0 ? 0 : _c, baseZ = _a.z;
118
- var _d = this.getHexagonPosition(location), _e = _d.x, x = _e === void 0 ? 0 : _e, _f = _d.y, y = _f === void 0 ? 0 : _f;
68
+ const { x: baseX = 0, y: baseY = 0, z: baseZ } = this.getCoordinates(location, context);
69
+ const { x = 0, y = 0 } = this.getHexagonPosition(location);
119
70
  return { x: baseX + x, y: baseY + y, z: baseZ };
120
- };
71
+ }
121
72
  /**
122
73
  * Get the position of a hexagon
123
74
  * @param coordinates Coordinates of the hexagon
124
75
  * @param coordinatesSystem System of coordinates to consider
125
76
  * @return coordinates to place the hexagon on the location
126
77
  */
127
- HexagonalGridLocator.prototype.getHexagonPosition = function (coordinates, coordinatesSystem) {
128
- if (coordinatesSystem === void 0) { coordinatesSystem = this.coordinatesSystem; }
129
- var _a = coordinates.x, x = _a === void 0 ? 0 : _a, _b = coordinates.y, y = _b === void 0 ? 0 : _b;
78
+ getHexagonPosition(coordinates, coordinatesSystem = this.coordinatesSystem) {
79
+ let { x = 0, y = 0 } = coordinates;
130
80
  switch (coordinatesSystem) {
131
- case rules_api_1.HexGridSystem.Axial: {
81
+ case HexGridSystem.Axial: {
132
82
  if (!this.orientation) {
133
83
  throw new Error('You must specify the orientation (flat or pointy) when using the Axial HexGridSystem');
134
84
  }
@@ -145,28 +95,28 @@ var HexagonalGridLocator = /** @class */ (function (_super) {
145
95
  };
146
96
  }
147
97
  }
148
- case rules_api_1.HexGridSystem.OddQ: {
98
+ case HexGridSystem.OddQ: {
149
99
  y += ((x % 2 + 2) % 2) / 2;
150
100
  return {
151
101
  x: x * 3 / 2 * this.sizeX,
152
102
  y: y * Math.sqrt(3) * this.sizeY
153
103
  };
154
104
  }
155
- case rules_api_1.HexGridSystem.EvenQ: {
105
+ case HexGridSystem.EvenQ: {
156
106
  y -= ((x % 2 + 2) % 2) / 2;
157
107
  return {
158
108
  x: x * 3 / 2 * this.sizeX,
159
109
  y: y * Math.sqrt(3) * this.sizeY
160
110
  };
161
111
  }
162
- case rules_api_1.HexGridSystem.OddR: {
112
+ case HexGridSystem.OddR: {
163
113
  throw new Error('OddR HexGridSystem is not yet implemented');
164
114
  }
165
- case rules_api_1.HexGridSystem.EvenR: {
115
+ case HexGridSystem.EvenR: {
166
116
  throw new Error('EvenR HexGridSystem is not yet implemented');
167
117
  }
168
118
  }
169
- };
119
+ }
170
120
  /**
171
121
  * Get the coordinates of an item on the grid. If the item is a Polyhex, the shape will be used to center the origin coordinates of the item on the
172
122
  * correct grid location.
@@ -174,128 +124,125 @@ var HexagonalGridLocator = /** @class */ (function (_super) {
174
124
  * @param context Context of the game
175
125
  * @return the coordinates of the item
176
126
  */
177
- HexagonalGridLocator.prototype.getItemCoordinates = function (item, context) {
178
- var _a = _super.prototype.getItemCoordinates.call(this, item, context), _b = _a.x, x = _b === void 0 ? 0 : _b, _c = _a.y, y = _c === void 0 ? 0 : _c, z = _a.z;
179
- var description = context.material[context.type];
180
- if (!description || !(0, components_1.isPolyhexDescription)(description)) {
181
- return { x: x, y: y, z: z };
127
+ getItemCoordinates(item, context) {
128
+ const { x = 0, y = 0, z } = super.getItemCoordinates(item, context);
129
+ const description = context.material[context.type];
130
+ if (!description || !isPolyhexDescription(description)) {
131
+ return { x, y, z };
182
132
  }
183
- var polyhex = description.getPolyhex(item, context);
184
- var _d = this.getBoundaries(polyhex), xMax = _d.xMax, xMin = _d.xMin, yMin = _d.yMin, yMax = _d.yMax;
185
- var _e = rotateVector({ x: (xMin + xMax) / 2, y: (yMin + yMax) / 2 }, this.getItemRotateZ(item, context)), deltaX = _e.x, deltaY = _e.y;
186
- return { x: x + deltaX, y: y + deltaY, z: z };
187
- };
133
+ const polyhex = description.getPolyhex(item, context);
134
+ const { xMax, xMin, yMin, yMax } = this.getBoundaries(polyhex);
135
+ const { x: deltaX, y: deltaY } = rotateVector({ x: (xMin + xMax) / 2, y: (yMin + yMax) / 2 }, this.getItemRotateZ(item, context));
136
+ return { x: x + deltaX, y: y + deltaY, z };
137
+ }
188
138
  /**
189
139
  * Rotate the location. On a hexagonal grid, by default the rotation is expected to be [0, 5] and it is multiplied by 60 degrees.
190
140
  * @param location Location to rotate
191
141
  * @param _context Context of the item
192
142
  * @return the location's rotation in degrees
193
143
  */
194
- HexagonalGridLocator.prototype.getRotateZ = function (location, _context) {
195
- var _a;
144
+ getRotateZ(location, _context) {
196
145
  // TODO: the real rotation depends on the sizeX / sizeY ratio for 1, 2, 4 & 5 rotations (custom override applied for King of Tokyo Duel)
197
- return ((_a = location.rotation) !== null && _a !== void 0 ? _a : 0) * 60;
198
- };
146
+ return (location.rotation ?? 0) * 60;
147
+ }
199
148
  /**
200
149
  * Returns the drop locations for current dragged item. The hexagonal grid must be one simple drop location.
201
150
  */
202
- HexagonalGridLocator.prototype.getDropLocations = function (moves, context) {
151
+ getDropLocations(moves, context) {
203
152
  if (!this.locationDescription || this.locationDescription.ignoreCoordinates) {
204
- return (0, es_toolkit_1.uniqWith)(moves.map(function (move) { return (0, es_toolkit_1.omit)(move.location, ['x', 'y', 'z', 'rotation']); }), es_toolkit_1.isEqual);
153
+ return uniqWith(moves.map(move => omit(move.location, ['x', 'y', 'z', 'rotation'])), isEqual);
205
154
  }
206
155
  else {
207
- return _super.prototype.getDropLocations.call(this, moves, context);
156
+ return super.getDropLocations(moves, context);
208
157
  }
209
- };
158
+ }
159
+ dropPreview = true;
210
160
  /**
211
161
  * Generate automatically a {@link HexGridDropAreaDescription} based on the grid boundaries
212
162
  */
213
- HexagonalGridLocator.prototype.getLocationDescription = function (location, context) {
163
+ getLocationDescription(location, context) {
214
164
  if (this.locationDescription)
215
165
  return this.locationDescription;
216
166
  if (location.x !== undefined || location.y !== undefined)
217
- return _super.prototype.getLocationDescription.call(this, location, context);
218
- var dropArea = this.getDropArea(location, context);
167
+ return super.getLocationDescription(location, context);
168
+ const dropArea = this.getDropArea(location, context);
219
169
  if (!dropArea)
220
- return _super.prototype.getLocationDescription.call(this, location, context);
221
- var _a = this.getBoundaries(dropArea), xMin = _a.xMin, xMax = _a.xMax, yMin = _a.yMin, yMax = _a.yMax;
222
- var borderRadius = this.sizeX / 3;
223
- return new components_1.HexGridDropAreaDescription({
170
+ return super.getLocationDescription(location, context);
171
+ const { xMin, xMax, yMin, yMax } = this.getBoundaries(dropArea);
172
+ const borderRadius = this.sizeX / 3;
173
+ return new HexGridDropAreaDescription({
224
174
  width: xMax - xMin,
225
175
  height: yMax - yMin,
226
- borderRadius: borderRadius
176
+ borderRadius
227
177
  });
228
- };
229
- HexagonalGridLocator.prototype.getBoundaries = function (polyhex) {
230
- var _this = this;
231
- var boundaries = { xMin: 0, xMax: 0, yMin: 0, yMax: 0 };
178
+ }
179
+ getBoundaries(polyhex) {
180
+ const boundaries = { xMin: 0, xMax: 0, yMin: 0, yMax: 0 };
232
181
  if (!polyhex) {
233
182
  return boundaries;
234
183
  }
235
184
  switch (polyhex.system) {
236
- case rules_api_1.HexGridSystem.Axial: {
185
+ case HexGridSystem.Axial: {
237
186
  if (!this.orientation) {
238
187
  throw new Error('You must specify the orientation (flat or pointy) when using the Axial HexGridSystem');
239
188
  }
240
189
  else if (this.orientation === HexOrientation.Flat) {
241
190
  boundaries.xMin = polyhex.xMin * 3 / 2 * this.sizeX - this.sizeX;
242
191
  boundaries.xMax = polyhex.xMax * 3 / 2 * this.sizeX + this.sizeX;
243
- boundaries.yMin = Math.min.apply(Math, __spreadArray([], __read(polyhex.grid.map(function (line, index) {
244
- var xMin = polyhex.xMin + line.findIndex(function (value) { return !polyhex.isEmpty(value); });
245
- return (polyhex.yMin + index + xMin / 2 - 0.5) * Math.sqrt(3) * _this.sizeY;
246
- })), false));
247
- boundaries.yMax = Math.max.apply(Math, __spreadArray([], __read(polyhex.grid.map(function (line, index) {
248
- var xMax = polyhex.xMin + (0, compat_1.findLastIndex)(line, function (value) { return !polyhex.isEmpty(value); });
249
- return (polyhex.yMin + index + xMax / 2 + 0.5) * Math.sqrt(3) * _this.sizeY;
250
- })), false));
192
+ boundaries.yMin = Math.min(...polyhex.grid.map((line, index) => {
193
+ const xMin = polyhex.xMin + line.findIndex((value) => !polyhex.isEmpty(value));
194
+ return (polyhex.yMin + index + xMin / 2 - 0.5) * Math.sqrt(3) * this.sizeY;
195
+ }));
196
+ boundaries.yMax = Math.max(...polyhex.grid.map((line, index) => {
197
+ const xMax = polyhex.xMin + findLastIndex(line, (value) => !polyhex.isEmpty(value));
198
+ return (polyhex.yMin + index + xMax / 2 + 0.5) * Math.sqrt(3) * this.sizeY;
199
+ }));
251
200
  }
252
201
  else {
253
202
  throw new Error('Axial HexGridSystem for pointy top orientation is not yet implemented');
254
203
  }
255
204
  break;
256
205
  }
257
- case rules_api_1.HexGridSystem.OddQ:
258
- case rules_api_1.HexGridSystem.EvenQ: {
206
+ case HexGridSystem.OddQ:
207
+ case HexGridSystem.EvenQ: {
259
208
  boundaries.xMin = polyhex.xMin * 3 / 2 * this.sizeX - this.sizeX;
260
- var xMax = Math.max.apply(Math, __spreadArray([], __read(polyhex.grid.map(function (line) { return line.length; })), false)) - 1;
209
+ const xMax = Math.max(...polyhex.grid.map((line) => line.length)) - 1;
261
210
  boundaries.xMax = (xMax + polyhex.xMin) * 3 / 2 * this.sizeX + this.sizeX;
262
- var swapSystem_1 = polyhex.xMin % 2 !== 0;
263
- var yMin = polyhex.yMin - 0.5;
264
- var firstLine = polyhex.grid[0];
265
- if (polyhex.system === rules_api_1.HexGridSystem.OddQ && firstLine.every(function (value, y) { return polyhex.isEmpty(value) || (swapSystem_1 ? !(y % 2) : y % 2); })) {
211
+ const swapSystem = polyhex.xMin % 2 !== 0;
212
+ let yMin = polyhex.yMin - 0.5;
213
+ const firstLine = polyhex.grid[0];
214
+ if (polyhex.system === HexGridSystem.OddQ && firstLine.every((value, y) => polyhex.isEmpty(value) || (swapSystem ? !(y % 2) : y % 2))) {
266
215
  yMin += 0.5;
267
216
  }
268
- else if (polyhex.system === rules_api_1.HexGridSystem.EvenQ && firstLine.some(function (value, y) { return !polyhex.isEmpty(value) && (swapSystem_1 ? !(y % 2) : y % 2); })) {
217
+ else if (polyhex.system === HexGridSystem.EvenQ && firstLine.some((value, y) => !polyhex.isEmpty(value) && (swapSystem ? !(y % 2) : y % 2))) {
269
218
  yMin -= 0.5;
270
219
  }
271
220
  boundaries.yMin = yMin * Math.sqrt(3) * this.sizeY;
272
- var yMax = polyhex.grid.length + polyhex.yMin - 0.5;
273
- var lastLine = polyhex.grid[polyhex.grid.length - 1];
274
- if (polyhex.system === rules_api_1.HexGridSystem.OddQ && lastLine.some(function (value, y) { return !polyhex.isEmpty(value) && (swapSystem_1 ? !(y % 2) : y % 2); })) {
221
+ let yMax = polyhex.grid.length + polyhex.yMin - 0.5;
222
+ const lastLine = polyhex.grid[polyhex.grid.length - 1];
223
+ if (polyhex.system === HexGridSystem.OddQ && lastLine.some((value, y) => !polyhex.isEmpty(value) && (swapSystem ? !(y % 2) : y % 2))) {
275
224
  yMax += 0.5;
276
225
  }
277
- else if (polyhex.system === rules_api_1.HexGridSystem.EvenQ && lastLine.every(function (value, y) { return polyhex.isEmpty(value) || (swapSystem_1 ? !(y % 2) : y % 2); })) {
226
+ else if (polyhex.system === HexGridSystem.EvenQ && lastLine.every((value, y) => polyhex.isEmpty(value) || (swapSystem ? !(y % 2) : y % 2))) {
278
227
  yMax -= 0.5;
279
228
  }
280
229
  boundaries.yMax = yMax * Math.sqrt(3) * this.sizeY;
281
230
  break;
282
231
  }
283
- case rules_api_1.HexGridSystem.OddR: {
232
+ case HexGridSystem.OddR: {
284
233
  throw new Error('OddR HexGridSystem is not yet implemented');
285
234
  }
286
- case rules_api_1.HexGridSystem.EvenR: {
235
+ case HexGridSystem.EvenR: {
287
236
  throw new Error('EvenR HexGridSystem is not yet implemented');
288
237
  }
289
238
  }
290
239
  return boundaries;
291
- };
292
- return HexagonalGridLocator;
293
- }(Locator_1.Locator));
294
- exports.HexagonalGridLocator = HexagonalGridLocator;
240
+ }
241
+ }
295
242
  function rotateVector(vector, degrees) {
296
- var rad = degrees * (Math.PI / 180);
297
- var cos = Math.cos(rad);
298
- var sin = Math.sin(rad);
243
+ const rad = degrees * (Math.PI / 180);
244
+ const cos = Math.cos(rad);
245
+ const sin = Math.sin(rad);
299
246
  return {
300
247
  x: Math.round(10000 * (vector.x * cos - vector.y * sin)) / 10000,
301
248
  y: Math.round(10000 * (vector.x * sin + vector.y * cos)) / 10000
@@ -1 +1 @@
1
- {"version":3,"file":"HexagonalGridLocator.js","sourceRoot":"","sources":["../../src/locators/HexagonalGridLocator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAA0H;AAC1H,yCAAoD;AACpD,4CAAiD;AACjD,4CAAqG;AACrG,qCAAiE;AAEjE,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,mDAAQ,CAAA;IACR,uDAAU,CAAA;AACZ,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAED;;GAEG;AACH;IAA6I,wCAAgB;IAA7J;;QAmKE,iBAAW,GAAG,IAAI,CAAA;;IA6EpB,CAAC;IA5NC,sBAAc,uCAAK;QAHnB;;WAEG;aACH;YACE,OAAO,OAAO,IAAI,CAA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AAA;IACnB,CAAC;CACF;AAED,SAAS,YAAY,CAAC,MAAqB,EAAE,OAAe;IAC1D,MAAM,GAAG,GAAG,OAAO,GAAG,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,CAAC,CAAA;IACrC,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IACzB,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IACzB,OAAO;QACL,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,GAAG,GAAG,MAAM,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,KAAK;QAChE,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,GAAG,GAAG,MAAM,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,KAAK;KACjE,CAAA;AACH,CAAC"}
@@ -1,124 +1,110 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.ListLocator = void 0;
19
- var components_1 = require("../components");
20
- var Locator_1 = require("./Locator");
1
+ import { DropAreaDescription } from '../components';
2
+ import { getItemFromContext, Locator } from './Locator';
21
3
  /**
22
4
  * This Locator places items at regular intervals.
23
5
  */
24
- var ListLocator = /** @class */ (function (_super) {
25
- __extends(ListLocator, _super);
26
- function ListLocator(clone) {
27
- var _this = _super.call(this) || this;
28
- Object.assign(_this, clone);
29
- return _this;
6
+ export class ListLocator extends Locator {
7
+ constructor(clone) {
8
+ super();
9
+ Object.assign(this, clone);
30
10
  }
11
+ /**
12
+ * The default gap between 2 consecutive items
13
+ */
14
+ gap;
31
15
  /**
32
16
  * Function to override to provide a {@link gap} that depends on the context
33
17
  * @param _location Location to position
34
18
  * @param _context Context of the game
35
19
  * @returns The default gap between 2 consecutive items
36
20
  */
37
- ListLocator.prototype.getGap = function (_location, _context) {
38
- var _a;
39
- return (_a = this.gap) !== null && _a !== void 0 ? _a : {};
40
- };
21
+ getGap(_location, _context) {
22
+ return this.gap ?? {};
23
+ }
24
+ /**
25
+ * The maximum number of items that can be displayed in the list before the gap between items is reduced to fill in the same space.
26
+ */
27
+ maxCount;
41
28
  /**
42
29
  * Function to override to provide a {@link maxCount that depends on the context
43
30
  * @param _location Location to position
44
31
  * @param _context Context of the game
45
32
  * @returns The maximum number of items that can be displayed in the list before the gap between items is reduced to fill in the same space.
46
33
  */
47
- ListLocator.prototype.getMaxCount = function (_location, _context) {
34
+ getMaxCount(_location, _context) {
48
35
  return this.maxCount;
49
- };
36
+ }
37
+ /**
38
+ * The maximum gap between the first and the last items. See {@link maxCount} to get a maxGap based on a max number of items.
39
+ */
40
+ maxGap;
50
41
  /**
51
42
  * Function to override to provide a {@link maxGap} that depends on the context
52
43
  * @param location Location to position
53
44
  * @param context Context of the game
54
45
  * @returns The maximum gap between the first and the last items
55
46
  */
56
- ListLocator.prototype.getMaxGap = function (location, context) {
47
+ getMaxGap(location, context) {
57
48
  if (this.maxGap)
58
49
  return this.maxGap;
59
- var maxCount = this.getMaxCount(location, context);
50
+ const maxCount = this.getMaxCount(location, context);
60
51
  if (maxCount === undefined)
61
52
  return {};
62
- var _a = this.getGap(location, context), x = _a.x, y = _a.y, z = _a.z;
53
+ const { x, y, z } = this.getGap(location, context);
63
54
  return {
64
55
  x: x ? x * (maxCount - 1) : x,
65
56
  y: y ? y * (maxCount - 1) : y,
66
57
  z: z ? z * (maxCount - 1) : z
67
58
  };
68
- };
59
+ }
69
60
  /**
70
61
  * The number of items displayed in the list
71
62
  * @param location Location area of the items
72
63
  * @param context Context of the game
73
64
  * @returns number of items in the location area
74
65
  */
75
- ListLocator.prototype.countListItems = function (location, context) {
76
- var _a;
77
- return Math.min((_a = this.limit) !== null && _a !== void 0 ? _a : Infinity, this.countItems(location, context));
78
- };
79
- ListLocator.prototype.getAreaCoordinates = function (location, context) {
80
- var _a = this.getCoordinates(location, context), _b = _a.x, x = _b === void 0 ? 0 : _b, _c = _a.y, y = _c === void 0 ? 0 : _c, _d = _a.z, z = _d === void 0 ? 0 : _d;
81
- var _e = this.getCurrentMaxGap(location, context), mx = _e.x, my = _e.y;
82
- return { x: x + mx / 2, y: y + my / 2, z: z };
83
- };
84
- ListLocator.prototype.getCurrentMaxGap = function (location, context) {
85
- var _a = this.getGap(location, context), _b = _a.x, gx = _b === void 0 ? 0 : _b, _c = _a.y, gy = _c === void 0 ? 0 : _c;
86
- var _d = this.getMaxGap(location, context), mgx = _d.x, mgy = _d.y;
87
- var gapCount = Math.max(0, this.countListItems(location, context) - 1);
88
- return { x: (mgx !== null && mgx !== void 0 ? mgx : gx * gapCount), y: (mgy !== null && mgy !== void 0 ? mgy : gy * gapCount) };
89
- };
90
- ListLocator.prototype.getLocationCoordinates = function (location, context, index) {
91
- if (index === void 0) { index = this.getLocationIndex(location, context); }
66
+ countListItems(location, context) {
67
+ return Math.min(this.limit ?? Infinity, this.countItems(location, context));
68
+ }
69
+ getAreaCoordinates(location, context) {
70
+ const { x = 0, y = 0, z = 0 } = this.getCoordinates(location, context);
71
+ const { x: mx, y: my } = this.getCurrentMaxGap(location, context);
72
+ return { x: x + mx / 2, y: y + my / 2, z };
73
+ }
74
+ getCurrentMaxGap(location, context) {
75
+ const { x: gx = 0, y: gy = 0 } = this.getGap(location, context);
76
+ const { x: mgx, y: mgy } = this.getMaxGap(location, context);
77
+ const gapCount = Math.max(0, this.countListItems(location, context) - 1);
78
+ return { x: (mgx ?? gx * gapCount), y: (mgy ?? gy * gapCount) };
79
+ }
80
+ getLocationCoordinates(location, context, index = this.getLocationIndex(location, context)) {
92
81
  if (index === undefined)
93
82
  return this.getAreaCoordinates(location, context);
94
- var _a = this.getCoordinates(location, context), _b = _a.x, x = _b === void 0 ? 0 : _b, _c = _a.y, y = _c === void 0 ? 0 : _c, _d = _a.z, z = _d === void 0 ? 0 : _d;
95
- var _e = this.getGap(location, context), _f = _e.x, gx = _f === void 0 ? 0 : _f, _g = _e.y, gy = _g === void 0 ? 0 : _g, _h = _e.z, gz = _h === void 0 ? 0.05 : _h;
96
- var _j = this.getMaxGap(location, context), mgx = _j.x, mgy = _j.y, mgz = _j.z;
97
- var count = this.countListItems(location, context);
83
+ const { x = 0, y = 0, z = 0 } = this.getCoordinates(location, context);
84
+ const { x: gx = 0, y: gy = 0, z: gz = 0.05 } = this.getGap(location, context);
85
+ const { x: mgx, y: mgy, z: mgz } = this.getMaxGap(location, context);
86
+ const count = this.countListItems(location, context);
98
87
  return {
99
88
  x: x + index * (mgx && count > 1 ? mgx * Math.min(gx / mgx, 1 / (count - 1)) : gx),
100
89
  y: y + index * (mgy && count > 1 ? mgy * Math.min(gy / mgy, 1 / (count - 1)) : gy),
101
90
  z: z + index * (mgz && count > 1 ? mgz * Math.min(gz / mgz, 1 / (count - 1)) : gz)
102
91
  };
103
- };
104
- ListLocator.prototype.getItemCoordinates = function (item, context) {
92
+ }
93
+ getItemCoordinates(item, context) {
105
94
  return this.getLocationCoordinates(item.location, context, this.getItemIndex(item, context));
106
- };
107
- ListLocator.prototype.generateLocationDescriptionFromDraggedItem = function (location, context) {
108
- var _a, _b, _c, _d;
109
- var item = (0, Locator_1.getItemFromContext)(context);
110
- var _e = (_b = (_a = context.material[context.type]) === null || _a === void 0 ? void 0 : _a.getSize(item.id)) !== null && _b !== void 0 ? _b : {}, _f = _e.width, width = _f === void 0 ? 0 : _f, _g = _e.height, height = _g === void 0 ? 0 : _g;
111
- var borderRadius = (_d = (_c = context.material[context.type]) === null || _c === void 0 ? void 0 : _c.getBorderRadius(item.id)) !== null && _d !== void 0 ? _d : 0;
95
+ }
96
+ generateLocationDescriptionFromDraggedItem(location, context) {
97
+ const item = getItemFromContext(context);
98
+ const { width = 0, height = 0 } = context.material[context.type]?.getSize(item.id) ?? {};
99
+ const borderRadius = context.material[context.type]?.getBorderRadius(item.id) ?? 0;
112
100
  if (this.getLocationIndex(location, context) !== undefined)
113
- return new components_1.DropAreaDescription({ width: width, height: height, borderRadius: borderRadius });
114
- var _h = this.getCurrentMaxGap(location, context), x = _h.x, y = _h.y;
115
- return new components_1.DropAreaDescription({
101
+ return new DropAreaDescription({ width, height, borderRadius });
102
+ const { x, y } = this.getCurrentMaxGap(location, context);
103
+ return new DropAreaDescription({
116
104
  width: width + Math.abs(x),
117
105
  height: height + Math.abs(y),
118
- borderRadius: borderRadius
106
+ borderRadius
119
107
  });
120
- };
121
- return ListLocator;
122
- }(Locator_1.Locator));
123
- exports.ListLocator = ListLocator;
108
+ }
109
+ }
124
110
  //# sourceMappingURL=ListLocator.js.map