@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.
- package/dist/components/Avatar/Avatar.js +37 -60
- package/dist/components/Avatar/Avatar.js.map +1 -1
- package/dist/components/Avatar/ChatSpeechBubble.js +25 -67
- package/dist/components/Avatar/ChatSpeechBubble.js.map +1 -1
- package/dist/components/Avatar/SpeechBubble.js +86 -49
- package/dist/components/Avatar/SpeechBubble.js.map +1 -1
- package/dist/components/Avatar/index.js +3 -19
- package/dist/components/Avatar/index.js.map +1 -1
- package/dist/components/GamePoints/GamePointIcon.js +7 -24
- package/dist/components/GamePoints/GamePointIcon.js.map +1 -1
- package/dist/components/GamePoints/GamePoints.js +20 -63
- package/dist/components/GamePoints/GamePoints.js.map +1 -1
- package/dist/components/GamePoints/index.js +2 -18
- package/dist/components/GamePoints/index.js.map +1 -1
- package/dist/components/GameProvider/GameContext.js +7 -14
- package/dist/components/GameProvider/GameContext.js.map +1 -1
- package/dist/components/GameProvider/GameProvider.js +91 -136
- package/dist/components/GameProvider/GameProvider.js.map +1 -1
- package/dist/components/GameProvider/index.js +2 -18
- package/dist/components/GameProvider/index.js.map +1 -1
- package/dist/components/Header/Header.js +34 -43
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/HeaderText.js +15 -31
- package/dist/components/Header/HeaderText.js.map +1 -1
- package/dist/components/Header/MaterialHeader.js +42 -90
- package/dist/components/Header/MaterialHeader.js.map +1 -1
- package/dist/components/Header/index.js +3 -19
- package/dist/components/Header/index.js.map +1 -1
- package/dist/components/ImagesLoader/ImagesLoader.js +9 -14
- package/dist/components/ImagesLoader/ImagesLoader.js.map +1 -1
- package/dist/components/ImagesLoader/index.js +1 -17
- package/dist/components/ImagesLoader/index.js.map +1 -1
- package/dist/components/JournalTabs/Chat/Chat.js +7 -33
- package/dist/components/JournalTabs/Chat/Chat.js.map +1 -1
- package/dist/components/JournalTabs/Chat/ChatMessage.js +12 -17
- package/dist/components/JournalTabs/Chat/ChatMessage.js.map +1 -1
- package/dist/components/JournalTabs/Chat/ChatMessageAuthor.js +19 -35
- package/dist/components/JournalTabs/Chat/ChatMessageAuthor.js.map +1 -1
- package/dist/components/JournalTabs/Chat/ChatTextInput.js +58 -60
- package/dist/components/JournalTabs/Chat/ChatTextInput.js.map +1 -1
- package/dist/components/JournalTabs/Chat/CommonChat.d.ts +1 -1
- package/dist/components/JournalTabs/Chat/CommonChat.js +43 -48
- package/dist/components/JournalTabs/Chat/CommonChat.js.map +1 -1
- package/dist/components/JournalTabs/Chat/LocalChat.js +10 -61
- package/dist/components/JournalTabs/Chat/LocalChat.js.map +1 -1
- package/dist/components/JournalTabs/Chat/RemoteChat.js +15 -43
- package/dist/components/JournalTabs/Chat/RemoteChat.js.map +1 -1
- package/dist/components/JournalTabs/Chat/SignInToChat.js +36 -22
- package/dist/components/JournalTabs/Chat/SignInToChat.js.map +1 -1
- package/dist/components/JournalTabs/Chat/index.js +5 -21
- package/dist/components/JournalTabs/Chat/index.js.map +1 -1
- package/dist/components/JournalTabs/History/GameOverHistory.js +14 -20
- package/dist/components/JournalTabs/History/GameOverHistory.js.map +1 -1
- package/dist/components/JournalTabs/History/History.d.ts +1 -1
- package/dist/components/JournalTabs/History/History.js +59 -54
- package/dist/components/JournalTabs/History/History.js.map +1 -1
- package/dist/components/JournalTabs/History/HistoryEntry.js +37 -43
- package/dist/components/JournalTabs/History/HistoryEntry.js.map +1 -1
- package/dist/components/JournalTabs/History/StartGameHistory.js +12 -17
- package/dist/components/JournalTabs/History/StartGameHistory.js.map +1 -1
- package/dist/components/JournalTabs/History/index.js +2 -18
- package/dist/components/JournalTabs/History/index.js.map +1 -1
- package/dist/components/JournalTabs/JournalTabs.js +122 -68
- package/dist/components/JournalTabs/JournalTabs.js.map +1 -1
- package/dist/components/JournalTabs/index.js +1 -17
- package/dist/components/JournalTabs/index.js.map +1 -1
- package/dist/components/Letterbox/Letterbox.js +29 -41
- package/dist/components/Letterbox/Letterbox.js.map +1 -1
- package/dist/components/Letterbox/index.js +1 -17
- package/dist/components/Letterbox/index.js.map +1 -1
- package/dist/components/LoadingScreen/LoadingScreen.js +83 -89
- package/dist/components/LoadingScreen/LoadingScreen.js.map +1 -1
- package/dist/components/LoadingScreen/index.js +1 -17
- package/dist/components/LoadingScreen/index.js.map +1 -1
- package/dist/components/Log/InternalLiveLogContainer.js +73 -83
- package/dist/components/Log/InternalLiveLogContainer.js.map +1 -1
- package/dist/components/Log/LiveLogButton.js +14 -19
- package/dist/components/Log/LiveLogButton.js.map +1 -1
- package/dist/components/Log/LiveLogContainer.js +6 -21
- package/dist/components/Log/LiveLogContainer.js.map +1 -1
- package/dist/components/Log/LogDescription.js +1 -2
- package/dist/components/Log/LogItem.js +42 -42
- package/dist/components/Log/LogItem.js.map +1 -1
- package/dist/components/Log/index.js +3 -19
- package/dist/components/Log/index.js.map +1 -1
- package/dist/components/Picture/Picture.js +6 -32
- package/dist/components/Picture/Picture.js.map +1 -1
- package/dist/components/Picture/index.js +1 -17
- package/dist/components/Picture/index.js.map +1 -1
- package/dist/components/PlayerPanel/Counters.d.ts +2 -1
- package/dist/components/PlayerPanel/Counters.js +82 -39
- package/dist/components/PlayerPanel/Counters.js.map +1 -1
- package/dist/components/PlayerPanel/PlayerPanel.js +83 -53
- package/dist/components/PlayerPanel/PlayerPanel.js.map +1 -1
- package/dist/components/PlayerPanel/StyledPlayerPanel.js +145 -80
- package/dist/components/PlayerPanel/StyledPlayerPanel.js.map +1 -1
- package/dist/components/PlayerPanel/index.js +3 -19
- package/dist/components/PlayerPanel/index.js.map +1 -1
- package/dist/components/PlayerTimer/PlayerTimer.d.ts +1 -1
- package/dist/components/PlayerTimer/PlayerTimer.js +32 -61
- package/dist/components/PlayerTimer/PlayerTimer.js.map +1 -1
- package/dist/components/PlayerTimer/index.js +1 -17
- package/dist/components/PlayerTimer/index.js.map +1 -1
- package/dist/components/Scoring/ScoringDescription.js +1 -2
- package/dist/components/Scoring/index.js +1 -17
- package/dist/components/Scoring/index.js.map +1 -1
- package/dist/components/buttons/PlayMoveButton/PlayMoveButton.js +82 -105
- package/dist/components/buttons/PlayMoveButton/PlayMoveButton.js.map +1 -1
- package/dist/components/buttons/PlayMoveButton/index.js +1 -17
- package/dist/components/buttons/PlayMoveButton/index.js.map +1 -1
- package/dist/components/buttons/ThemeButton/ThemeButton.js +5 -20
- package/dist/components/buttons/ThemeButton/ThemeButton.js.map +1 -1
- package/dist/components/buttons/ThemeButton/index.js +1 -17
- package/dist/components/buttons/ThemeButton/index.js.map +1 -1
- package/dist/components/buttons/UndoMovesButton/UndoMovesButton.js +17 -59
- package/dist/components/buttons/UndoMovesButton/UndoMovesButton.js.map +1 -1
- package/dist/components/buttons/UndoMovesButton/index.js +1 -17
- package/dist/components/buttons/UndoMovesButton/index.js.map +1 -1
- package/dist/components/buttons/index.js +3 -19
- package/dist/components/buttons/index.js.map +1 -1
- package/dist/components/dialogs/Dialog.js +57 -67
- package/dist/components/dialogs/Dialog.js.map +1 -1
- package/dist/components/dialogs/FailuresDialog.js +39 -73
- package/dist/components/dialogs/FailuresDialog.js.map +1 -1
- package/dist/components/dialogs/ResultDialog/RematchDisplay.js +55 -52
- package/dist/components/dialogs/ResultDialog/RematchDisplay.js.map +1 -1
- package/dist/components/dialogs/ResultDialog/RematchSection.js +17 -27
- package/dist/components/dialogs/ResultDialog/RematchSection.js.map +1 -1
- package/dist/components/dialogs/ResultDialog/ResultDialog.js +130 -99
- package/dist/components/dialogs/ResultDialog/ResultDialog.js.map +1 -1
- package/dist/components/dialogs/ResultDialog/index.js +2 -18
- package/dist/components/dialogs/ResultDialog/index.js.map +1 -1
- package/dist/components/dialogs/ResultDialog/useScoringTable.js +20 -27
- package/dist/components/dialogs/ResultDialog/useScoringTable.js.map +1 -1
- package/dist/components/dialogs/RulesDialog/LocationRulesDialogContent.js +32 -31
- package/dist/components/dialogs/RulesDialog/LocationRulesDialogContent.js.map +1 -1
- package/dist/components/dialogs/RulesDialog/MaterialRulesDialog.js +22 -36
- package/dist/components/dialogs/RulesDialog/MaterialRulesDialog.js.map +1 -1
- package/dist/components/dialogs/RulesDialog/MaterialRulesDialogContent.js +121 -117
- package/dist/components/dialogs/RulesDialog/MaterialRulesDialogContent.js.map +1 -1
- package/dist/components/dialogs/RulesDialog/RulesDialog.js +23 -42
- package/dist/components/dialogs/RulesDialog/RulesDialog.js.map +1 -1
- package/dist/components/dialogs/RulesDialog/RulesHelpDialogContent.d.ts +1 -1
- package/dist/components/dialogs/RulesDialog/RulesHelpDialogContent.js +36 -27
- package/dist/components/dialogs/RulesDialog/RulesHelpDialogContent.js.map +1 -1
- package/dist/components/dialogs/RulesDialog/index.js +2 -18
- package/dist/components/dialogs/RulesDialog/index.js.map +1 -1
- package/dist/components/dialogs/index.js +4 -20
- package/dist/components/dialogs/index.js.map +1 -1
- package/dist/components/index.js +17 -33
- package/dist/components/index.js.map +1 -1
- package/dist/components/material/ComponentDescription.js +32 -18
- package/dist/components/material/ComponentDescription.js.map +1 -1
- package/dist/components/material/Dices/CubicDiceDescription.js +58 -102
- package/dist/components/material/Dices/CubicDiceDescription.js.map +1 -1
- package/dist/components/material/Dices/index.js +1 -17
- package/dist/components/material/Dices/index.js.map +1 -1
- package/dist/components/material/DraggableMaterial.js +121 -198
- package/dist/components/material/DraggableMaterial.js.map +1 -1
- package/dist/components/material/FlatMaterial/BoardDescription.js +3 -27
- package/dist/components/material/FlatMaterial/BoardDescription.js.map +1 -1
- package/dist/components/material/FlatMaterial/CardDescription.js +6 -56
- package/dist/components/material/FlatMaterial/CardDescription.js.map +1 -1
- package/dist/components/material/FlatMaterial/FlatMaterial.js +88 -133
- package/dist/components/material/FlatMaterial/FlatMaterial.js.map +1 -1
- package/dist/components/material/FlatMaterial/MoneyDescription.js +10 -34
- package/dist/components/material/FlatMaterial/MoneyDescription.js.map +1 -1
- package/dist/components/material/FlatMaterial/PolyhexDescription.js +12 -63
- package/dist/components/material/FlatMaterial/PolyhexDescription.js.map +1 -1
- package/dist/components/material/FlatMaterial/TokenDescription.js +10 -66
- package/dist/components/material/FlatMaterial/TokenDescription.js.map +1 -1
- package/dist/components/material/FlatMaterial/index.js +6 -22
- package/dist/components/material/FlatMaterial/index.js.map +1 -1
- package/dist/components/material/GameTable/DropPreview.js +31 -66
- package/dist/components/material/GameTable/DropPreview.js.map +1 -1
- package/dist/components/material/GameTable/DynamicItemsDisplay.js +22 -81
- package/dist/components/material/GameTable/DynamicItemsDisplay.js.map +1 -1
- package/dist/components/material/GameTable/GameMaterialDisplay.js +25 -30
- package/dist/components/material/GameTable/GameMaterialDisplay.js.map +1 -1
- package/dist/components/material/GameTable/GameTable.js +78 -125
- package/dist/components/material/GameTable/GameTable.js.map +1 -1
- package/dist/components/material/GameTable/GameTableNavigation.js +58 -67
- package/dist/components/material/GameTable/GameTableNavigation.js.map +1 -1
- package/dist/components/material/GameTable/ItemDisplay.js +88 -153
- package/dist/components/material/GameTable/ItemDisplay.js.map +1 -1
- package/dist/components/material/GameTable/StaticItemsDisplay.js +23 -83
- package/dist/components/material/GameTable/StaticItemsDisplay.js.map +1 -1
- package/dist/components/material/GameTable/StaticLocationsDisplay.js +11 -28
- package/dist/components/material/GameTable/StaticLocationsDisplay.js.map +1 -1
- package/dist/components/material/GameTable/focus/FocusProvider.js +28 -53
- package/dist/components/material/GameTable/focus/FocusProvider.js.map +1 -1
- package/dist/components/material/GameTable/focus/MaterialFocus.js +1 -2
- package/dist/components/material/GameTable/focus/index.js +2 -18
- package/dist/components/material/GameTable/focus/index.js.map +1 -1
- package/dist/components/material/GameTable/index.js +3 -19
- package/dist/components/material/GameTable/index.js.map +1 -1
- package/dist/components/material/ImageLoader/MaterialImageLoader.js +17 -89
- package/dist/components/material/ImageLoader/MaterialImageLoader.js.map +1 -1
- package/dist/components/material/ImageLoader/index.js +1 -17
- package/dist/components/material/ImageLoader/index.js.map +1 -1
- package/dist/components/material/ItemMenuButton.js +41 -69
- package/dist/components/material/ItemMenuButton.js.map +1 -1
- package/dist/components/material/ItemMenuWrapper.js +16 -66
- package/dist/components/material/ItemMenuWrapper.js.map +1 -1
- package/dist/components/material/MaterialComponent.d.ts +2 -2
- package/dist/components/material/MaterialComponent.js +22 -44
- package/dist/components/material/MaterialComponent.js.map +1 -1
- package/dist/components/material/MaterialComponentType.js +2 -5
- package/dist/components/material/MaterialComponentType.js.map +1 -1
- package/dist/components/material/MaterialDescription.d.ts +2 -2
- package/dist/components/material/MaterialDescription.js +125 -164
- package/dist/components/material/MaterialDescription.js.map +1 -1
- package/dist/components/material/MobileMaterialDescription.js +21 -83
- package/dist/components/material/MobileMaterialDescription.js.map +1 -1
- package/dist/components/material/Wheel/WheelContent.js +26 -29
- package/dist/components/material/Wheel/WheelContent.js.map +1 -1
- package/dist/components/material/Wheel/WheelDescription.js +46 -105
- package/dist/components/material/Wheel/WheelDescription.js.map +1 -1
- package/dist/components/material/Wheel/WheelItem.js +43 -42
- package/dist/components/material/Wheel/WheelItem.js.map +1 -1
- package/dist/components/material/Wheel/index.js +1 -17
- package/dist/components/material/Wheel/index.js.map +1 -1
- package/dist/components/material/Writing/WritingDescription.js +44 -91
- package/dist/components/material/Writing/WritingDescription.js.map +1 -1
- package/dist/components/material/Writing/index.js +1 -17
- package/dist/components/material/Writing/index.js.map +1 -1
- package/dist/components/material/animations/CreateItemAnimations.d.ts +6 -1
- package/dist/components/material/animations/CreateItemAnimations.js +43 -67
- package/dist/components/material/animations/CreateItemAnimations.js.map +1 -1
- package/dist/components/material/animations/DeleteItemAnimations.d.ts +6 -1
- package/dist/components/material/animations/DeleteItemAnimations.js +44 -63
- package/dist/components/material/animations/DeleteItemAnimations.js.map +1 -1
- package/dist/components/material/animations/DeleteItemAtOnceAnimations.js +30 -53
- package/dist/components/material/animations/DeleteItemAtOnceAnimations.js.map +1 -1
- package/dist/components/material/animations/ItemAnimations.d.ts +6 -1
- package/dist/components/material/animations/ItemAnimations.js +21 -55
- package/dist/components/material/animations/ItemAnimations.js.map +1 -1
- package/dist/components/material/animations/MaterialAnimations.js +30 -56
- package/dist/components/material/animations/MaterialAnimations.js.map +1 -1
- package/dist/components/material/animations/MaterialGameAnimations.js +53 -131
- package/dist/components/material/animations/MaterialGameAnimations.js.map +1 -1
- package/dist/components/material/animations/MoveItemAnimations.js +62 -100
- package/dist/components/material/animations/MoveItemAnimations.js.map +1 -1
- package/dist/components/material/animations/MoveItemAtOnceAnimations.js +31 -66
- package/dist/components/material/animations/MoveItemAtOnceAnimations.js.map +1 -1
- package/dist/components/material/animations/RollItemAnimations.js +28 -76
- package/dist/components/material/animations/RollItemAnimations.js.map +1 -1
- package/dist/components/material/animations/ShuffleAnimations.js +9 -31
- package/dist/components/material/animations/ShuffleAnimations.js.map +1 -1
- package/dist/components/material/animations/getFirstStockItemTransforms.util.js +9 -24
- package/dist/components/material/animations/getFirstStockItemTransforms.util.js.map +1 -1
- package/dist/components/material/animations/index.js +8 -26
- package/dist/components/material/animations/index.js.map +1 -1
- package/dist/components/material/animations/rotations.utils.js +50 -83
- package/dist/components/material/animations/rotations.utils.js.map +1 -1
- package/dist/components/material/animations/transformItem.util.js +6 -35
- package/dist/components/material/animations/transformItem.util.js.map +1 -1
- package/dist/components/material/index.js +15 -31
- package/dist/components/material/index.js.map +1 -1
- package/dist/components/material/locations/DropAreaDescription.js +20 -80
- package/dist/components/material/locations/DropAreaDescription.js.map +1 -1
- package/dist/components/material/locations/HexGridDropAreaDescription.js +34 -101
- package/dist/components/material/locations/HexGridDropAreaDescription.js.map +1 -1
- package/dist/components/material/locations/LocationComponent.js +53 -88
- package/dist/components/material/locations/LocationComponent.js.map +1 -1
- package/dist/components/material/locations/LocationDescription.js +58 -113
- package/dist/components/material/locations/LocationDescription.js.map +1 -1
- package/dist/components/material/locations/LocationDisplay.js +25 -79
- package/dist/components/material/locations/LocationDisplay.js.map +1 -1
- package/dist/components/material/locations/LocationsMask.js +16 -23
- package/dist/components/material/locations/LocationsMask.js.map +1 -1
- package/dist/components/material/locations/SimpleDropArea.js +42 -90
- package/dist/components/material/locations/SimpleDropArea.js.map +1 -1
- package/dist/components/material/locations/index.js +5 -21
- package/dist/components/material/locations/index.js.map +1 -1
- package/dist/components/material/sound/AudioLoader.js +43 -92
- package/dist/components/material/sound/AudioLoader.js.map +1 -1
- package/dist/components/material/sound/MaterialGameSounds.js +42 -76
- package/dist/components/material/sound/MaterialGameSounds.js.map +1 -1
- package/dist/components/material/sound/MaterialSoundConfig.js +11 -8
- package/dist/components/material/sound/MaterialSoundConfig.js.map +1 -1
- package/dist/components/material/sound/MaterialSoundLoader.js +16 -69
- package/dist/components/material/sound/MaterialSoundLoader.js.map +1 -1
- package/dist/components/material/sound/index.js +2 -18
- package/dist/components/material/sound/index.js.map +1 -1
- package/dist/components/material/sound/sound.utils.js +1 -5
- package/dist/components/material/sound/sound.utils.js.map +1 -1
- package/dist/components/material/utils/IsLocationSubset.js +4 -8
- package/dist/components/material/utils/IsLocationSubset.js.map +1 -1
- package/dist/components/material/utils/getBestDropMove.d.ts +1 -1
- package/dist/components/material/utils/getBestDropMove.js +12 -26
- package/dist/components/material/utils/getBestDropMove.js.map +1 -1
- package/dist/components/material/utils/index.js +1 -17
- package/dist/components/material/utils/index.js.map +1 -1
- package/dist/components/material/utils/isDroppedItem.js +7 -24
- package/dist/components/material/utils/isDroppedItem.js.map +1 -1
- package/dist/components/material/utils/isPlacedOnItem.js +5 -9
- package/dist/components/material/utils/isPlacedOnItem.js.map +1 -1
- package/dist/components/material/utils/isRotationMove.js +5 -20
- package/dist/components/material/utils/isRotationMove.js.map +1 -1
- package/dist/components/material/utils/useIsAnimatingPlayerAction.js +4 -10
- package/dist/components/material/utils/useIsAnimatingPlayerAction.js.map +1 -1
- package/dist/components/menus/EjectPlayer/EjectPlayerButton.js +30 -32
- package/dist/components/menus/EjectPlayer/EjectPlayerButton.js.map +1 -1
- package/dist/components/menus/EjectPlayer/EjectPlayerDialog.js +47 -66
- package/dist/components/menus/EjectPlayer/EjectPlayerDialog.js.map +1 -1
- package/dist/components/menus/EjectPlayer/EjectPlayerPopButton.js +25 -50
- package/dist/components/menus/EjectPlayer/EjectPlayerPopButton.js.map +1 -1
- package/dist/components/menus/EjectPlayer/index.js +3 -19
- package/dist/components/menus/EjectPlayer/index.js.map +1 -1
- package/dist/components/menus/Fullscreen/FullscreenButton.js +11 -15
- package/dist/components/menus/Fullscreen/FullscreenButton.js.map +1 -1
- package/dist/components/menus/Fullscreen/FullscreenDialog.js +36 -60
- package/dist/components/menus/Fullscreen/FullscreenDialog.js.map +1 -1
- package/dist/components/menus/Fullscreen/FullscreenPopButton.js +28 -42
- package/dist/components/menus/Fullscreen/FullscreenPopButton.js.map +1 -1
- package/dist/components/menus/Fullscreen/index.js +3 -19
- package/dist/components/menus/Fullscreen/index.js.map +1 -1
- package/dist/components/menus/GiveUpButton/GiveUpButton.js +49 -60
- package/dist/components/menus/GiveUpButton/GiveUpButton.js.map +1 -1
- package/dist/components/menus/GiveUpButton/index.js +1 -17
- package/dist/components/menus/GiveUpButton/index.js.map +1 -1
- package/dist/components/menus/Menu/LogoIcon.js +2 -17
- package/dist/components/menus/Menu/LogoIcon.js.map +1 -1
- package/dist/components/menus/Menu/Menu.d.ts +2 -2
- package/dist/components/menus/Menu/Menu.js +117 -93
- package/dist/components/menus/Menu/Menu.js.map +1 -1
- package/dist/components/menus/Menu/MenuPopButton.js +21 -60
- package/dist/components/menus/Menu/MenuPopButton.js.map +1 -1
- package/dist/components/menus/Menu/NavButton.js +3 -32
- package/dist/components/menus/Menu/NavButton.js.map +1 -1
- package/dist/components/menus/Menu/index.js +1 -17
- package/dist/components/menus/Menu/index.js.map +1 -1
- package/dist/components/menus/PlayerQuit/TrackPlayersQuit.js +20 -42
- package/dist/components/menus/PlayerQuit/TrackPlayersQuit.js.map +1 -1
- package/dist/components/menus/PlayerQuit/index.js +1 -17
- package/dist/components/menus/PlayerQuit/index.js.map +1 -1
- package/dist/components/menus/RestartTutorialButton/RestartTutorialButton.js +12 -17
- package/dist/components/menus/RestartTutorialButton/RestartTutorialButton.js.map +1 -1
- package/dist/components/menus/RestartTutorialButton/index.js +1 -17
- package/dist/components/menus/RestartTutorialButton/index.js.map +1 -1
- package/dist/components/menus/Result/Medal.js +8 -35
- package/dist/components/menus/Result/Medal.js.map +1 -1
- package/dist/components/menus/Result/MedalBronze.js +2 -17
- package/dist/components/menus/Result/MedalBronze.js.map +1 -1
- package/dist/components/menus/Result/MedalGold.js +2 -17
- package/dist/components/menus/Result/MedalGold.js.map +1 -1
- package/dist/components/menus/Result/MedalSilver.js +2 -17
- package/dist/components/menus/Result/MedalSilver.js.map +1 -1
- package/dist/components/menus/Result/ResultButton.js +8 -23
- package/dist/components/menus/Result/ResultButton.js.map +1 -1
- package/dist/components/menus/Result/ResultPopButton.js +46 -35
- package/dist/components/menus/Result/ResultPopButton.js.map +1 -1
- package/dist/components/menus/Result/index.js +3 -19
- package/dist/components/menus/Result/index.js.map +1 -1
- package/dist/components/menus/SoundButton/SoundButton.js +11 -15
- package/dist/components/menus/SoundButton/SoundButton.js.map +1 -1
- package/dist/components/menus/SoundButton/index.js +1 -17
- package/dist/components/menus/SoundButton/index.js.map +1 -1
- package/dist/components/menus/TimeStatsButton/TimeStatsButton.js +68 -70
- package/dist/components/menus/TimeStatsButton/TimeStatsButton.js.map +1 -1
- package/dist/components/menus/TimeStatsButton/index.js +1 -17
- package/dist/components/menus/TimeStatsButton/index.js.map +1 -1
- package/dist/components/menus/UndoButton/UndoButton.js +11 -31
- package/dist/components/menus/UndoButton/UndoButton.js.map +1 -1
- package/dist/components/menus/UndoButton/UndoPopButton.js +24 -38
- package/dist/components/menus/UndoButton/UndoPopButton.js.map +1 -1
- package/dist/components/menus/UndoButton/index.js +2 -18
- package/dist/components/menus/UndoButton/index.js.map +1 -1
- package/dist/components/menus/index.js +6 -22
- package/dist/components/menus/index.js.map +1 -1
- package/dist/components/menus/menuCss.d.ts +9 -9
- package/dist/components/menus/menuCss.js +102 -19
- package/dist/components/menus/menuCss.js.map +1 -1
- package/dist/components/tutorial/MaterialTutorial.js +19 -27
- package/dist/components/tutorial/MaterialTutorial.js.map +1 -1
- package/dist/components/tutorial/MaterialTutorialDisplay.js +84 -95
- package/dist/components/tutorial/MaterialTutorialDisplay.js.map +1 -1
- package/dist/components/tutorial/TutorialRulesWrapper.js +54 -63
- package/dist/components/tutorial/TutorialRulesWrapper.js.map +1 -1
- package/dist/components/tutorial/index.js +1 -17
- package/dist/components/tutorial/index.js.map +1 -1
- package/dist/css/GameTheme.js +4 -7
- package/dist/css/GameTheme.js.map +1 -1
- package/dist/css/addStylesheetUrl.js +2 -6
- package/dist/css/addStylesheetUrl.js.map +1 -1
- package/dist/css/backgroundCss.d.ts +1 -1
- package/dist/css/backgroundCss.js +5 -11
- package/dist/css/backgroundCss.js.map +1 -1
- package/dist/css/buttonCss.d.ts +3 -3
- package/dist/css/buttonCss.js +45 -13
- package/dist/css/buttonCss.js.map +1 -1
- package/dist/css/componentSizeCss.d.ts +5 -5
- package/dist/css/componentSizeCss.js +17 -22
- package/dist/css/componentSizeCss.js.map +1 -1
- package/dist/css/cursorCss.d.ts +3 -3
- package/dist/css/cursorCss.js +10 -12
- package/dist/css/cursorCss.js.map +1 -1
- package/dist/css/fadeIn.d.ts +1 -1
- package/dist/css/fadeIn.js +9 -12
- package/dist/css/fadeIn.js.map +1 -1
- package/dist/css/index.js +10 -26
- package/dist/css/index.js.map +1 -1
- package/dist/css/shadowEffect.d.ts +1 -1
- package/dist/css/shadowEffect.js +15 -10
- package/dist/css/shadowEffect.js.map +1 -1
- package/dist/css/shineEffect.d.ts +1 -1
- package/dist/css/shineEffect.js +31 -11
- package/dist/css/shineEffect.js.map +1 -1
- package/dist/css/transformCss.d.ts +2 -2
- package/dist/css/transformCss.js +7 -18
- package/dist/css/transformCss.js.map +1 -1
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.js +26 -43
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/useActions.js +2 -8
- package/dist/hooks/useActions.js.map +1 -1
- package/dist/hooks/useAnimations.js +18 -52
- package/dist/hooks/useAnimations.js.map +1 -1
- package/dist/hooks/useDraggedItem.js +9 -28
- package/dist/hooks/useDraggedItem.js.map +1 -1
- package/dist/hooks/useFailures.d.ts +1 -1
- package/dist/hooks/useFailures.js +10 -10
- package/dist/hooks/useFailures.js.map +1 -1
- package/dist/hooks/useFlatHistory.js +60 -128
- package/dist/hooks/useFlatHistory.js.map +1 -1
- package/dist/hooks/useFullscreen.js +19 -42
- package/dist/hooks/useFullscreen.js.map +1 -1
- package/dist/hooks/useGame.js +3 -6
- package/dist/hooks/useGame.js.map +1 -1
- package/dist/hooks/useGiveUp.js +10 -15
- package/dist/hooks/useGiveUp.js.map +1 -1
- package/dist/hooks/useItemLocations.js +31 -102
- package/dist/hooks/useItemLocations.js.map +1 -1
- package/dist/hooks/useItemLocator.js +3 -7
- package/dist/hooks/useItemLocator.js.map +1 -1
- package/dist/hooks/useKeyDown.js +5 -9
- package/dist/hooks/useKeyDown.js.map +1 -1
- package/dist/hooks/useLegalMoves.js +8 -12
- package/dist/hooks/useLegalMoves.js.map +1 -1
- package/dist/hooks/useLocators.js +3 -7
- package/dist/hooks/useLocators.js.map +1 -1
- package/dist/hooks/useMaterialContext.js +11 -15
- package/dist/hooks/useMaterialContext.js.map +1 -1
- package/dist/hooks/useMaterialDescription.js +4 -8
- package/dist/hooks/useMaterialDescription.js.map +1 -1
- package/dist/hooks/useNow.js +9 -30
- package/dist/hooks/useNow.js.map +1 -1
- package/dist/hooks/useNumberOfPlayers.js +2 -6
- package/dist/hooks/useNumberOfPlayers.js.map +1 -1
- package/dist/hooks/useOpponentWithMaxTime.js +17 -39
- package/dist/hooks/useOpponentWithMaxTime.js.map +1 -1
- package/dist/hooks/usePlay.js +5 -21
- package/dist/hooks/usePlay.js.map +1 -1
- package/dist/hooks/usePlayerId.js +4 -10
- package/dist/hooks/usePlayerId.js.map +1 -1
- package/dist/hooks/usePlayerName.js +14 -19
- package/dist/hooks/usePlayerName.js.map +1 -1
- package/dist/hooks/usePlayerTime.js +16 -37
- package/dist/hooks/usePlayerTime.js.map +1 -1
- package/dist/hooks/usePlayers.js +35 -69
- package/dist/hooks/usePlayers.js.map +1 -1
- package/dist/hooks/useRankedPlayers.js +15 -20
- package/dist/hooks/useRankedPlayers.js.map +1 -1
- package/dist/hooks/useResultText.js +23 -27
- package/dist/hooks/useResultText.js.map +1 -1
- package/dist/hooks/useRules.js +10 -13
- package/dist/hooks/useRules.js.map +1 -1
- package/dist/hooks/useSound.js +8 -28
- package/dist/hooks/useSound.js.map +1 -1
- package/dist/hooks/useStaticLocations.js +21 -84
- package/dist/hooks/useStaticLocations.js.map +1 -1
- package/dist/hooks/useTutorialStep.js +7 -10
- package/dist/hooks/useTutorialStep.js.map +1 -1
- package/dist/hooks/useUndo.d.ts +1 -1
- package/dist/hooks/useUndo.js +29 -64
- package/dist/hooks/useUndo.js.map +1 -1
- package/dist/hooks/useWebP.js +10 -77
- package/dist/hooks/useWebP.js.map +1 -1
- package/dist/hooks/useZoomToElements.js +43 -75
- package/dist/hooks/useZoomToElements.js.map +1 -1
- package/dist/index.js +5 -23
- package/dist/index.js.map +1 -1
- package/dist/locators/DeckLocator.js +8 -30
- package/dist/locators/DeckLocator.js.map +1 -1
- package/dist/locators/FlexLocator.js +57 -70
- package/dist/locators/FlexLocator.js.map +1 -1
- package/dist/locators/HandLocator.js +74 -99
- package/dist/locators/HandLocator.js.map +1 -1
- package/dist/locators/HexagonalGridLocator.js +105 -158
- package/dist/locators/HexagonalGridLocator.js.map +1 -1
- package/dist/locators/ListLocator.js +59 -73
- package/dist/locators/ListLocator.js.map +1 -1
- package/dist/locators/Locator.js +149 -190
- package/dist/locators/Locator.js.map +1 -1
- package/dist/locators/PileLocator.js +65 -126
- package/dist/locators/PileLocator.js.map +1 -1
- package/dist/locators/index.js +8 -24
- package/dist/locators/index.js.map +1 -1
- package/dist/locators/utils/getRelativePlayerIndex.util.js +2 -7
- package/dist/locators/utils/getRelativePlayerIndex.util.js.map +1 -1
- package/dist/locators/utils/index.js +1 -17
- package/dist/locators/utils/index.js.map +1 -1
- package/dist/utilities/DeepPartial.js +1 -2
- package/dist/utilities/combineEventListeners.js +5 -38
- package/dist/utilities/combineEventListeners.js.map +1 -1
- package/dist/utilities/findIfUnique.util.js +4 -7
- package/dist/utilities/findIfUnique.util.js.map +1 -1
- package/dist/utilities/index.js +4 -20
- package/dist/utilities/index.js.map +1 -1
- package/dist/utilities/translation.util.js +21 -31
- package/dist/utilities/translation.util.js.map +1 -1
- package/dist/utilities/zoom-pan-pinch/animations.constants.js +29 -32
- package/dist/utilities/zoom-pan-pinch/animations.constants.js.map +1 -1
- package/dist/utilities/zoom-pan-pinch/animations.util.js +24 -30
- package/dist/utilities/zoom-pan-pinch/animations.util.js.map +1 -1
- package/dist/utilities/zoom-pan-pinch/bounds.util.js +43 -52
- package/dist/utilities/zoom-pan-pinch/bounds.util.js.map +1 -1
- package/dist/utilities/zoom-pan-pinch/calculation.util.js +2 -7
- package/dist/utilities/zoom-pan-pinch/calculation.util.js.map +1 -1
- package/dist/utilities/zoom-pan-pinch/index.js +5 -21
- package/dist/utilities/zoom-pan-pinch/index.js.map +1 -1
- package/dist/utilities/zoom-pan-pinch/zoom.util.js +3 -6
- package/dist/utilities/zoom-pan-pinch/zoom.util.js.map +1 -1
- package/package.json +83 -77
- package/dist/components/Chat/Chat.d.ts +0 -3
- package/dist/components/Chat/Chat.js +0 -80
- package/dist/components/Chat/Chat.js.map +0 -1
- package/dist/components/Chat/ChatMessage.d.ts +0 -7
- package/dist/components/Chat/ChatMessage.js +0 -29
- package/dist/components/Chat/ChatMessage.js.map +0 -1
- package/dist/components/Chat/ChatMessageAuthor.d.ts +0 -3
- package/dist/components/Chat/ChatMessageAuthor.js +0 -34
- package/dist/components/Chat/ChatMessageAuthor.js.map +0 -1
- package/dist/components/Chat/ChatTextInput.d.ts +0 -7
- package/dist/components/Chat/ChatTextInput.js +0 -44
- package/dist/components/Chat/ChatTextInput.js.map +0 -1
- package/dist/components/Chat/SignInToChat.d.ts +0 -1
- package/dist/components/Chat/SignInToChat.js +0 -35
- package/dist/components/Chat/SignInToChat.js.map +0 -1
- package/dist/components/Chat/index.d.ts +0 -5
- package/dist/components/Chat/index.js +0 -22
- package/dist/components/Chat/index.js.map +0 -1
- package/dist/components/Header/PlayerTurnHeader.d.ts +0 -11
- package/dist/components/Header/PlayerTurnHeader.js +0 -37
- package/dist/components/Header/PlayerTurnHeader.js.map +0 -1
- package/dist/components/Header/SimultaneousHeader.d.ts +0 -8
- package/dist/components/Header/SimultaneousHeader.js +0 -35
- package/dist/components/Header/SimultaneousHeader.js.map +0 -1
- package/dist/components/JournalTabs/History/ActionHistoryEntry.d.ts +0 -12
- package/dist/components/JournalTabs/History/ActionHistoryEntry.js +0 -62
- package/dist/components/JournalTabs/History/ActionHistoryEntry.js.map +0 -1
- package/dist/components/JournalTabs/History/MaterialHistory.d.ts +0 -10
- package/dist/components/JournalTabs/History/MaterialHistory.js +0 -3
- package/dist/components/JournalTabs/History/MaterialHistory.js.map +0 -1
- package/dist/components/JournalTabs/History/PlayerActionHistory.d.ts +0 -8
- package/dist/components/JournalTabs/History/PlayerActionHistory.js +0 -42
- package/dist/components/JournalTabs/History/PlayerActionHistory.js.map +0 -1
- package/dist/components/JournalTabs/History/PlayerHistoryEntry.d.ts +0 -8
- package/dist/components/JournalTabs/History/PlayerHistoryEntry.js +0 -44
- package/dist/components/JournalTabs/History/PlayerHistoryEntry.js.map +0 -1
- package/dist/components/JournalTabs/History/StartHistory.d.ts +0 -2
- package/dist/components/JournalTabs/History/StartHistory.js +0 -30
- package/dist/components/JournalTabs/History/StartHistory.js.map +0 -1
- package/dist/components/material/Dices/DiceDescription.d.ts +0 -10
- package/dist/components/material/Dices/DiceDescription.js +0 -56
- package/dist/components/material/Dices/DiceDescription.js.map +0 -1
- package/dist/components/material/GameTable/DraggableStockItem.d.ts +0 -4
- package/dist/components/material/GameTable/DraggableStockItem.js +0 -82
- package/dist/components/material/GameTable/DraggableStockItem.js.map +0 -1
- package/dist/components/material/GameTable/FocusableElement.d.ts +0 -13
- package/dist/components/material/GameTable/FocusableElement.js +0 -63
- package/dist/components/material/GameTable/FocusableElement.js.map +0 -1
- package/dist/components/material/GameTable/FocusableLocation.d.ts +0 -8
- package/dist/components/material/GameTable/FocusableLocation.js +0 -37
- package/dist/components/material/GameTable/FocusableLocation.js.map +0 -1
- package/dist/components/material/GameTable/FocusableLocations.d.ts +0 -0
- package/dist/components/material/GameTable/FocusableLocations.js +0 -2
- package/dist/components/material/GameTable/FocusableLocations.js.map +0 -1
- package/dist/components/material/GameTable/GameTableContent.d.ts +0 -18
- package/dist/components/material/GameTable/GameTableContent.js +0 -63
- package/dist/components/material/GameTable/GameTableContent.js.map +0 -1
- package/dist/components/material/GameTable/focus/FocusableElement.d.ts +0 -13
- package/dist/components/material/GameTable/focus/FocusableElement.js +0 -63
- package/dist/components/material/GameTable/focus/FocusableElement.js.map +0 -1
- package/dist/components/material/GameTable/focus/FocusableLocation.d.ts +0 -8
- package/dist/components/material/GameTable/focus/FocusableLocation.js +0 -38
- package/dist/components/material/GameTable/focus/FocusableLocation.js.map +0 -1
- package/dist/components/material/GameTable/focus/LocationsWithFocus.d.ts +0 -9
- package/dist/components/material/GameTable/focus/LocationsWithFocus.js +0 -45
- package/dist/components/material/GameTable/focus/LocationsWithFocus.js.map +0 -1
- package/dist/components/material/GameTable/locations.utils.d.ts +0 -0
- package/dist/components/material/GameTable/locations.utils.js +0 -2
- package/dist/components/material/GameTable/locations.utils.js.map +0 -1
- package/dist/components/material/ItemMenu.js.map +0 -1
- package/dist/components/material/MaterialAnimations.d.ts +0 -25
- package/dist/components/material/MaterialAnimations.js +0 -219
- package/dist/components/material/MaterialAnimations.js.map +0 -1
- package/dist/components/material/MaterialGameAnimations.d.ts +0 -10
- package/dist/components/material/MaterialGameAnimations.js +0 -47
- package/dist/components/material/MaterialGameAnimations.js.map +0 -1
- package/dist/components/material/animations/adjustRotation.d.ts +0 -1
- package/dist/components/material/animations/adjustRotation.js +0 -67
- package/dist/components/material/animations/adjustRotation.js.map +0 -1
- package/dist/components/material/animations/isMovedOrDeletedItem.util.d.ts +0 -3
- package/dist/components/material/animations/isMovedOrDeletedItem.util.js +0 -26
- package/dist/components/material/animations/isMovedOrDeletedItem.util.js.map +0 -1
- package/dist/components/material/animations/itemMovementCss.util.d.ts +0 -2
- package/dist/components/material/animations/itemMovementCss.util.js +0 -13
- package/dist/components/material/animations/itemMovementCss.util.js.map +0 -1
- package/dist/components/material/locations/HexGridDropArea.d.ts +0 -11
- package/dist/components/material/locations/HexGridDropArea.js +0 -74
- package/dist/components/material/locations/HexGridDropArea.js.map +0 -1
- package/dist/components/material/utils/IsMoveOnItem.d.ts +0 -2
- package/dist/components/material/utils/IsMoveOnItem.js +0 -12
- package/dist/components/material/utils/IsMoveOnItem.js.map +0 -1
- package/dist/components/material/utils/getItemFromContext.d.ts +0 -3
- package/dist/components/material/utils/getItemFromContext.js +0 -10
- package/dist/components/material/utils/getItemFromContext.js.map +0 -1
- package/dist/components/menus/ContrastThemeButton/ContrastThemeButton.d.ts +0 -4
- package/dist/components/menus/ContrastThemeButton/ContrastThemeButton.js +0 -27
- package/dist/components/menus/ContrastThemeButton/ContrastThemeButton.js.map +0 -1
- package/dist/components/menus/ContrastThemeButton/index.d.ts +0 -1
- package/dist/components/menus/ContrastThemeButton/index.js +0 -18
- package/dist/components/menus/ContrastThemeButton/index.js.map +0 -1
- package/dist/components/tutorial/FocusableElement.d.ts +0 -0
- package/dist/components/tutorial/FocusableElement.js +0 -2
- package/dist/components/tutorial/FocusableElement.js.map +0 -1
- package/dist/hooks/useCloseHelpDialog.d.ts +0 -1
- package/dist/hooks/useCloseHelpDialog.js +0 -14
- package/dist/hooks/useCloseHelpDialog.js.map +0 -1
- package/dist/hooks/useContrastTheme.d.ts +0 -7
- package/dist/hooks/useContrastTheme.js +0 -27
- package/dist/hooks/useContrastTheme.js.map +0 -1
- package/dist/hooks/useGameHistory.d.ts +0 -1
- package/dist/hooks/useGameHistory.js +0 -13
- package/dist/hooks/useGameHistory.js.map +0 -1
- package/dist/hooks/useHistory.d.ts +0 -6
- package/dist/hooks/useHistory.js +0 -85
- package/dist/hooks/useHistory.js.map +0 -1
- package/dist/hooks/useMaterialAnimations.d.ts +0 -2
- package/dist/hooks/useMaterialAnimations.js +0 -17
- package/dist/hooks/useMaterialAnimations.js.map +0 -1
- package/dist/hooks/useMaterials.d.ts +0 -2
- package/dist/hooks/useMaterials.js +0 -10
- package/dist/hooks/useMaterials.js.map +0 -1
- package/dist/hooks/useRulesStep.d.ts +0 -2
- package/dist/hooks/useRulesStep.js +0 -10
- package/dist/hooks/useRulesStep.js.map +0 -1
- package/dist/hooks/useScale.d.ts +0 -1
- package/dist/hooks/useScale.js +0 -16
- package/dist/hooks/useScale.js.map +0 -1
- package/dist/locators/GridLocator.d.ts +0 -13
- package/dist/locators/GridLocator.js +0 -59
- package/dist/locators/GridLocator.js.map +0 -1
- package/dist/locators/ItemLocator.d.ts +0 -49
- package/dist/locators/ItemLocator.js +0 -144
- package/dist/locators/ItemLocator.js.map +0 -1
- package/dist/locators/LineLocator.d.ts +0 -12
- package/dist/locators/LineLocator.js +0 -77
- package/dist/locators/LineLocator.js.map +0 -1
- package/dist/translation/index.d.ts +0 -1
- package/dist/translation/index.js +0 -18
- package/dist/translation/index.js.map +0 -1
- package/dist/translation/setupTranslation.d.ts +0 -5
- package/dist/translation/setupTranslation.js +0 -33
- package/dist/translation/setupTranslation.js.map +0 -1
- package/dist/utilities/animations.constants.d.ts +0 -16
- package/dist/utilities/animations.constants.js +0 -62
- package/dist/utilities/animations.constants.js.map +0 -1
- package/dist/utilities/animations.util.d.ts +0 -4
- package/dist/utilities/animations.util.js +0 -71
- package/dist/utilities/animations.util.js.map +0 -1
- package/dist/utilities/bounds.util.d.ts +0 -7
- package/dist/utilities/bounds.util.js +0 -77
- package/dist/utilities/bounds.util.js.map +0 -1
- package/dist/utilities/calculation.util.d.ts +0 -2
- package/dist/utilities/calculation.util.js +0 -12
- package/dist/utilities/calculation.util.js.map +0 -1
- package/dist/utilities/pusher.d.ts +0 -2
- package/dist/utilities/pusher.js +0 -16
- package/dist/utilities/pusher.js.map +0 -1
- package/dist/utilities/zoom.util.d.ts +0 -1
- package/dist/utilities/zoom.util.js +0 -14
- package/dist/utilities/zoom.util.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListLocator.js","sourceRoot":"","sources":["../../src/locators/ListLocator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ListLocator.js","sourceRoot":"","sources":["../../src/locators/ListLocator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAuB,MAAM,eAAe,CAAA;AACxE,OAAO,EAAE,kBAAkB,EAAe,OAAO,EAAmB,MAAM,WAAW,CAAA;AAErF;;GAEG;AACH,MAAM,OAAO,WAA6F,SAAQ,OAAgB;IAEhI,YAAY,KAA4B;QACtC,KAAK,EAAE,CAAA;QACP,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;IAC5B,CAAC;IAED;;OAEG;IACH,GAAG,CAAuB;IAE1B;;;;;OAKG;IACH,MAAM,CAAC,SAAyB,EAAE,QAAkC;QAClE,OAAO,IAAI,CAAC,GAAG,IAAI,EAAE,CAAA;IACvB,CAAC;IAED;;OAEG;IACH,QAAQ,CAAS;IAEjB;;;;;OAKG;IACH,WAAW,CAAC,SAAyB,EAAE,QAAkC;QACvE,OAAO,IAAI,CAAC,QAAQ,CAAA;IACtB,CAAC;IAED;;OAEG;IACH,MAAM,CAAuB;IAE7B;;;;;OAKG;IACH,SAAS,CAAC,QAAwB,EAAE,OAAiC;QACnE,IAAI,IAAI,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC,MAAM,CAAA;QACnC,MAAM,QAAQ,GAAG,IAAI,CAAC,WAA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CAAC,EAAE,MAAM,GAAG,CAAC,EAAE,GAAG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,CAAA;QACxF,MAAM,YAAY,GAAG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,CAAA;QAClF,IAAI,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,OAAO,CAAC,KAAK,SAAS;YAAE,OAAO,IAAI,mBAAmB,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,CAAA;QAC3H,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA;QACzD,OAAO,IAAI,mBAAmB,CAAC;YAC7B,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;YAC1B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;YAC5B,YAAY;SACb,CAAC,CAAA;IACJ,CAAC;CACF"}
|
package/dist/locators/Locator.js
CHANGED
|
@@ -1,98 +1,56 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
-
var t = {};
|
|
15
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
-
t[p] = s[p];
|
|
17
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
-
t[p[i]] = s[p[i]];
|
|
21
|
-
}
|
|
22
|
-
return t;
|
|
23
|
-
};
|
|
24
|
-
var __values = (this && this.__values) || function(o) {
|
|
25
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
26
|
-
if (m) return m.call(o);
|
|
27
|
-
if (o && typeof o.length === "number") return {
|
|
28
|
-
next: function () {
|
|
29
|
-
if (o && i >= o.length) o = void 0;
|
|
30
|
-
return { value: o && o[i++], done: !o };
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
34
|
-
};
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.Locator = void 0;
|
|
37
|
-
exports.isItemContext = isItemContext;
|
|
38
|
-
exports.getItemFromContext = getItemFromContext;
|
|
39
1
|
/** @jsxImportSource @emotion/react */
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
2
|
+
import { isMoveItem, isSameLocationArea } from '@gamepark/rules-api';
|
|
3
|
+
import { isEqual, sumBy, uniqWith } from 'es-toolkit';
|
|
4
|
+
import { DropAreaDescription } from '../components';
|
|
43
5
|
/**
|
|
44
6
|
* A Locator is responsible for placing item and locations (such as drop areas) on the Game Table.
|
|
45
7
|
*/
|
|
46
|
-
|
|
8
|
+
export class Locator {
|
|
47
9
|
/**
|
|
48
10
|
* With the constructor, you can create new locators in one line.
|
|
49
11
|
* @example `new Locator({ coordinates: { x: -10, y: -5 } })`
|
|
50
12
|
* @param clone Object to clone into the class
|
|
51
13
|
*/
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Types of items placed by the locator since it was created
|
|
55
|
-
* @internal
|
|
56
|
-
* @protected
|
|
57
|
-
*/
|
|
58
|
-
this.itemTypes = [];
|
|
59
|
-
/**
|
|
60
|
-
* The rotation unit to use. See {@link getRotateZ}
|
|
61
|
-
*/
|
|
62
|
-
this.rotationUnit = 'deg';
|
|
63
|
-
/**
|
|
64
|
-
* Declare this field if you always need to display some locations that does not depend on the context. See {@link getLocations}.
|
|
65
|
-
*/
|
|
66
|
-
this.locations = [];
|
|
67
|
-
/**
|
|
68
|
-
* Position of the location on the parent item, in percentage. Use {@link getPositionOnParent} to provide a dynamic position.
|
|
69
|
-
*/
|
|
70
|
-
this.positionOnParent = { x: 50, y: 50 };
|
|
71
|
-
/**
|
|
72
|
-
* Coordinates of the location on the Game Table. Use {@link getCoordinates} to provide dynamic coordinates.
|
|
73
|
-
*/
|
|
74
|
-
this.coordinates = { x: 0, y: 0, z: 0 };
|
|
75
|
-
/**
|
|
76
|
-
* The default Z-axis rotation of the items or locations to place if {@link getRotateZ} is not overridden.
|
|
77
|
-
*/
|
|
78
|
-
this.rotateZ = 0;
|
|
79
|
-
/**
|
|
80
|
-
* How items in the same location area are sorted for the help dialog navigation arrows.
|
|
81
|
-
*/
|
|
82
|
-
this.navigationSorts = [function (item) { var _a; return (_a = item.location.x) !== null && _a !== void 0 ? _a : 0; }, function (item) { var _a; return (_a = item.location.y) !== null && _a !== void 0 ? _a : 0; }, function (item) { var _a; return (_a = item.location.z) !== null && _a !== void 0 ? _a : 0; }];
|
|
83
|
-
/**
|
|
84
|
-
* If set to true, each time an item is dragged over
|
|
85
|
-
*/
|
|
86
|
-
this.dropPreview = false;
|
|
14
|
+
constructor(clone) {
|
|
87
15
|
Object.assign(this, clone);
|
|
88
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* Types of items placed by the locator since it was created
|
|
19
|
+
* @internal
|
|
20
|
+
* @protected
|
|
21
|
+
*/
|
|
22
|
+
itemTypes = [];
|
|
23
|
+
/**
|
|
24
|
+
* If the locator places items on top of another item (a game board for instance), the type of the parent item must be provided here.
|
|
25
|
+
*/
|
|
26
|
+
parentItemType;
|
|
27
|
+
/**
|
|
28
|
+
* The maximum number of items do display.
|
|
29
|
+
*/
|
|
30
|
+
limit;
|
|
31
|
+
/**
|
|
32
|
+
* The rotation unit to use. See {@link getRotateZ}
|
|
33
|
+
*/
|
|
34
|
+
rotationUnit = 'deg';
|
|
35
|
+
/**
|
|
36
|
+
* Declare this field if you always need to display one location that does not depend on the context. See {@link getLocations}.
|
|
37
|
+
*/
|
|
38
|
+
location;
|
|
39
|
+
/**
|
|
40
|
+
* Declare this field if you always need to display some locations that does not depend on the context. See {@link getLocations}.
|
|
41
|
+
*/
|
|
42
|
+
locations = [];
|
|
89
43
|
/**
|
|
90
44
|
* Override this if you need to display some locations on the Game Table that depends on the context.
|
|
91
45
|
* By default, return any {@link location} or {@link locations}.
|
|
92
46
|
*/
|
|
93
|
-
|
|
47
|
+
getLocations(_context) {
|
|
94
48
|
return this.location ? [this.location] : this.locations;
|
|
95
|
-
}
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* If you need do display custom locations in the game, provide their description here.
|
|
52
|
+
*/
|
|
53
|
+
locationDescription;
|
|
96
54
|
/**
|
|
97
55
|
* @internal
|
|
98
56
|
* This function automatically create some drop location descriptions based on the context (dragged item, parent item).
|
|
@@ -100,12 +58,12 @@ var Locator = /** @class */ (function () {
|
|
|
100
58
|
* Do not override it but use {@link locationDescription},
|
|
101
59
|
* otherwise the images of the location descriptions will not be preloaded by the {@link MaterialImageLoader}.
|
|
102
60
|
*/
|
|
103
|
-
|
|
61
|
+
getLocationDescription(location, context) {
|
|
104
62
|
if (!this.locationDescription) {
|
|
105
63
|
if (this.parentItemType !== undefined && location.x === undefined && location.y === undefined && location.z === undefined) {
|
|
106
|
-
|
|
64
|
+
const material = context.material[this.parentItemType];
|
|
107
65
|
if (material) {
|
|
108
|
-
this.locationDescription = new
|
|
66
|
+
this.locationDescription = new DropAreaDescription(material);
|
|
109
67
|
}
|
|
110
68
|
}
|
|
111
69
|
else if (isItemContext(context)) {
|
|
@@ -113,100 +71,102 @@ var Locator = /** @class */ (function () {
|
|
|
113
71
|
}
|
|
114
72
|
}
|
|
115
73
|
return this.locationDescription;
|
|
116
|
-
}
|
|
74
|
+
}
|
|
117
75
|
/**
|
|
118
76
|
* @internal This function provides a custom location description for the current dragged item.
|
|
119
77
|
*/
|
|
120
|
-
|
|
121
|
-
return new
|
|
122
|
-
}
|
|
78
|
+
generateLocationDescriptionFromDraggedItem(_location, context) {
|
|
79
|
+
return new DropAreaDescription(context.material[context.type]);
|
|
80
|
+
}
|
|
123
81
|
/**
|
|
124
82
|
* This function can hide some items on the game table depending on the context.
|
|
125
83
|
* @param item The item
|
|
126
84
|
* @param context The context of the item
|
|
127
85
|
* @returns true if the item must be hidden
|
|
128
86
|
*/
|
|
129
|
-
|
|
87
|
+
hide(item, context) {
|
|
130
88
|
return this.limit !== undefined && this.getItemIndex(item, context) < 0;
|
|
131
|
-
}
|
|
89
|
+
}
|
|
132
90
|
/**
|
|
133
91
|
* Provide a list of css transform operations to place a location on the game table.
|
|
134
92
|
* @param location Location to place
|
|
135
93
|
* @param context Context of the location in the game
|
|
136
94
|
* @returns the css transform that will be applied to the location
|
|
137
95
|
*/
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
96
|
+
placeLocation(location, context) {
|
|
97
|
+
const transform = [];
|
|
98
|
+
const { x = 0, y = 0, z = 0 } = this.getLocationCoordinates(location, context);
|
|
141
99
|
if (x || y || z) {
|
|
142
|
-
transform.push(
|
|
100
|
+
transform.push(`translate3d(${x}em, ${y}em, ${z}em)`);
|
|
143
101
|
}
|
|
144
|
-
|
|
102
|
+
const rotateZ = this.getRotateZ(location, context);
|
|
145
103
|
if (rotateZ) {
|
|
146
|
-
transform.push(
|
|
104
|
+
transform.push(`rotateZ(${rotateZ}${this.rotationUnit})`);
|
|
147
105
|
}
|
|
148
106
|
if (context.canDrop)
|
|
149
107
|
transform.push('translateZ(5em)');
|
|
150
108
|
return transform;
|
|
151
|
-
}
|
|
109
|
+
}
|
|
152
110
|
/**
|
|
153
111
|
* Provide a list of css transform operations to place an item on the game table.
|
|
154
112
|
* @param item Item to place
|
|
155
113
|
* @param context Context of the item in the game
|
|
156
114
|
* @returns the css transform that will be applied to the item
|
|
157
115
|
*/
|
|
158
|
-
|
|
116
|
+
placeItem(item, context) {
|
|
159
117
|
if (!this.itemTypes.includes(context.type)) {
|
|
160
118
|
this.itemTypes.push(context.type);
|
|
161
119
|
}
|
|
162
|
-
|
|
163
|
-
|
|
120
|
+
const transform = this.placeItemOnParent(item, context);
|
|
121
|
+
const { x = 0, y = 0, z = 0 } = this.getItemCoordinates(item, context);
|
|
164
122
|
if (x || y || z) {
|
|
165
|
-
transform.push(
|
|
123
|
+
transform.push(`translate3d(${x}em, ${y}em, ${z}em)`);
|
|
166
124
|
}
|
|
167
|
-
|
|
125
|
+
const rotateZ = this.getItemRotateZ(item, context);
|
|
168
126
|
if (rotateZ) {
|
|
169
|
-
transform.push(
|
|
127
|
+
transform.push(`rotateZ(${rotateZ}${this.rotationUnit})`);
|
|
170
128
|
}
|
|
171
129
|
return transform;
|
|
172
|
-
}
|
|
130
|
+
}
|
|
173
131
|
/**
|
|
174
132
|
* Provide a list of css transform operations to place an item on a parent item.
|
|
175
133
|
* @param item Item to place
|
|
176
134
|
* @param context Context of the item in the game
|
|
177
135
|
* @returns the css transform that will be applied to the item
|
|
178
136
|
*/
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
var parentItem = this.getParentItem(item.location, context);
|
|
137
|
+
placeItemOnParent(item, context) {
|
|
138
|
+
const parentItem = this.getParentItem(item.location, context);
|
|
182
139
|
if (this.parentItemType === undefined || !parentItem)
|
|
183
140
|
return [];
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
141
|
+
const locator = context.locators[parentItem.location.type];
|
|
142
|
+
const parentContext = { ...context, type: this.parentItemType, displayIndex: 0 };
|
|
143
|
+
const transform = locator?.placeItem(parentItem, parentContext) ?? [];
|
|
144
|
+
const parentMaterial = context.material[this.parentItemType];
|
|
145
|
+
const { x, y } = this.getPositionOnParent(item.location, context);
|
|
189
146
|
if (parentMaterial && (x !== 0 || y !== 0)) {
|
|
190
|
-
|
|
191
|
-
transform.push(
|
|
147
|
+
const { width, height } = parentMaterial.getSize(parentItem.id);
|
|
148
|
+
transform.push(`translate3d(${width * (x - 50) / 100}em, ${height * (y - 50) / 100}em, ${parentMaterial.getThickness(parentItem, parentContext)}em)`);
|
|
192
149
|
}
|
|
193
150
|
return transform;
|
|
194
|
-
}
|
|
151
|
+
}
|
|
195
152
|
/**
|
|
196
153
|
* If a location belongs to an item, returns the item
|
|
197
154
|
* @param location A location
|
|
198
155
|
* @param context Context of the game
|
|
199
156
|
* @returns the parent item of the location if any
|
|
200
157
|
*/
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
var rules = context.rules, material = context.material;
|
|
158
|
+
getParentItem(location, context) {
|
|
159
|
+
const { rules, material } = context;
|
|
204
160
|
if (this.parentItemType === undefined)
|
|
205
161
|
return undefined;
|
|
206
162
|
if (location.parent === undefined)
|
|
207
|
-
return
|
|
163
|
+
return material[this.parentItemType]?.staticItem;
|
|
208
164
|
return rules.material(this.parentItemType).getItem(location.parent);
|
|
209
|
-
}
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Position of the location on the parent item, in percentage. Use {@link getPositionOnParent} to provide a dynamic position.
|
|
168
|
+
*/
|
|
169
|
+
positionOnParent = { x: 50, y: 50 };
|
|
210
170
|
/**
|
|
211
171
|
* Place the center of the item in the plan of their parent item. This is ignored if "parentItemType" is undefined.
|
|
212
172
|
* Examples: {x: 0, y: 0} places the center of the item in the top-left corner of the parent item
|
|
@@ -216,9 +176,13 @@ var Locator = /** @class */ (function () {
|
|
|
216
176
|
* @param _context THe material game context
|
|
217
177
|
* @return {x, y} with "x" as a percentage from the parent's width, "y" a percentage of the height
|
|
218
178
|
*/
|
|
219
|
-
|
|
179
|
+
getPositionOnParent(_location, _context) {
|
|
220
180
|
return this.positionOnParent;
|
|
221
|
-
}
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Coordinates of the location on the Game Table. Use {@link getCoordinates} to provide dynamic coordinates.
|
|
184
|
+
*/
|
|
185
|
+
coordinates = { x: 0, y: 0, z: 0 };
|
|
222
186
|
/**
|
|
223
187
|
* Provide the coordinates of a location on the Game Table.
|
|
224
188
|
*
|
|
@@ -228,9 +192,9 @@ var Locator = /** @class */ (function () {
|
|
|
228
192
|
* @param _context Context of the game
|
|
229
193
|
* @returns the x, y, z coordinates (in cm) of the location
|
|
230
194
|
*/
|
|
231
|
-
|
|
195
|
+
getCoordinates(_location, _context) {
|
|
232
196
|
return this.coordinates;
|
|
233
|
-
}
|
|
197
|
+
}
|
|
234
198
|
/**
|
|
235
199
|
* Provide the coordinates of a location on the Game Table.
|
|
236
200
|
*
|
|
@@ -240,9 +204,9 @@ var Locator = /** @class */ (function () {
|
|
|
240
204
|
* @param context Context of the game
|
|
241
205
|
* @returns the x, y, z coordinates (in cm) of the location
|
|
242
206
|
*/
|
|
243
|
-
|
|
207
|
+
getLocationCoordinates(location, context) {
|
|
244
208
|
return this.getCoordinates(location, context);
|
|
245
|
-
}
|
|
209
|
+
}
|
|
246
210
|
/**
|
|
247
211
|
* Provide the coordinates of the center of an item on the Game Table.
|
|
248
212
|
*
|
|
@@ -250,27 +214,31 @@ var Locator = /** @class */ (function () {
|
|
|
250
214
|
* @param context Context of the item in the game
|
|
251
215
|
* @return The x, y, z coordinates in cm of the center of the item on the table
|
|
252
216
|
*/
|
|
253
|
-
|
|
217
|
+
getItemCoordinates(item, context) {
|
|
254
218
|
return this.getLocationCoordinates(item.location, context);
|
|
255
|
-
}
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* The default Z-axis rotation of the items or locations to place if {@link getRotateZ} is not overridden.
|
|
222
|
+
*/
|
|
223
|
+
rotateZ = 0;
|
|
256
224
|
/**
|
|
257
225
|
* Get the Z-axis rotation of a location.
|
|
258
226
|
* @param _location Location to place
|
|
259
227
|
* @param _context Context of the location
|
|
260
228
|
* @returns the rotation (unit in {@link rotationUnit})
|
|
261
229
|
*/
|
|
262
|
-
|
|
230
|
+
getRotateZ(_location, _context) {
|
|
263
231
|
return this.rotateZ;
|
|
264
|
-
}
|
|
232
|
+
}
|
|
265
233
|
/**
|
|
266
234
|
* Get the Z-axis rotation of an item. Defaults to {@link getRotateZ}.
|
|
267
235
|
* @param item item to place
|
|
268
236
|
* @param context Context of the item
|
|
269
237
|
* @returns the rotation (unit in {@link rotationUnit})
|
|
270
238
|
*/
|
|
271
|
-
|
|
239
|
+
getItemRotateZ(item, context) {
|
|
272
240
|
return this.getRotateZ(item.location, context);
|
|
273
|
-
}
|
|
241
|
+
}
|
|
274
242
|
/**
|
|
275
243
|
* The index of a location to place, if it matters in the locator's context (see {@link HandLocator}, {@link ListLocator} or {@link PileLocator}).
|
|
276
244
|
*
|
|
@@ -280,26 +248,24 @@ var Locator = /** @class */ (function () {
|
|
|
280
248
|
* @param _context Context of the game
|
|
281
249
|
* @returns the index of the location in the location area
|
|
282
250
|
*/
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
};
|
|
251
|
+
getLocationIndex(location, _context) {
|
|
252
|
+
return location.x ?? location.y ?? location.z;
|
|
253
|
+
}
|
|
287
254
|
/**
|
|
288
255
|
* Index of an item to place (fallback to {@link getLocationIndex} or item's displayIndex).
|
|
289
256
|
* @param item Item to place
|
|
290
257
|
* @param context Context of the item
|
|
291
258
|
* @returns the index of the item in the location area
|
|
292
259
|
*/
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
var index = (_a = this.getLocationIndex(item.location, context)) !== null && _a !== void 0 ? _a : context.displayIndex;
|
|
260
|
+
getItemIndex(item, context) {
|
|
261
|
+
const index = this.getLocationIndex(item.location, context) ?? context.displayIndex;
|
|
296
262
|
if (this.limit === undefined)
|
|
297
263
|
return index;
|
|
298
|
-
|
|
264
|
+
const count = this.countItems(item.location, context);
|
|
299
265
|
if (count <= this.limit)
|
|
300
266
|
return index;
|
|
301
267
|
return this.limit - count + index;
|
|
302
|
-
}
|
|
268
|
+
}
|
|
303
269
|
/**
|
|
304
270
|
* The total number of items in the same location area (see {@link isSameLocationArea}).
|
|
305
271
|
*
|
|
@@ -307,27 +273,30 @@ var Locator = /** @class */ (function () {
|
|
|
307
273
|
* @param context Context of the game
|
|
308
274
|
* @returns the total number of items in the location area
|
|
309
275
|
*/
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
};
|
|
276
|
+
countItems(location, { rules }) {
|
|
277
|
+
return sumBy(this.itemTypes, type => rules.material(type).location(itemLocation => isSameLocationArea(itemLocation, location)).getQuantity());
|
|
278
|
+
}
|
|
314
279
|
/**
|
|
315
280
|
* Any css transform to apply to the item when it is hovered by the pointer. See {@link HandLocator} override for example.
|
|
316
281
|
* @param _item The item
|
|
317
282
|
* @param _context Context of the item
|
|
318
283
|
* @returns the list of css transforms
|
|
319
284
|
*/
|
|
320
|
-
|
|
285
|
+
getHoverTransform(_item, _context) {
|
|
321
286
|
return [];
|
|
322
|
-
}
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* How items in the same location area are sorted for the help dialog navigation arrows.
|
|
290
|
+
*/
|
|
291
|
+
navigationSorts = [(item) => item.location.x ?? 0, (item) => item.location.y ?? 0, (item) => item.location.z ?? 0];
|
|
323
292
|
/**
|
|
324
293
|
* How items in the same location area are sorted for the help dialog navigation arrows.
|
|
325
294
|
* @param _context Context of the game
|
|
326
295
|
* @returns The list of sort functions to sort the items.
|
|
327
296
|
*/
|
|
328
|
-
|
|
297
|
+
getNavigationSorts(_context) {
|
|
329
298
|
return this.navigationSorts;
|
|
330
|
-
}
|
|
299
|
+
}
|
|
331
300
|
/**
|
|
332
301
|
* Utility function for animation to know if the item is one that should be animated.
|
|
333
302
|
* @param item Item to consider
|
|
@@ -335,40 +304,28 @@ var Locator = /** @class */ (function () {
|
|
|
335
304
|
* @param move Move to animate
|
|
336
305
|
* @returns true if the items must be animated
|
|
337
306
|
*/
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
var _b, _c, _d;
|
|
341
|
-
var rules = context.rules, type = context.type, index = context.index, displayIndex = context.displayIndex;
|
|
307
|
+
isItemToAnimate(item, context, move) {
|
|
308
|
+
const { rules, type, index, displayIndex } = context;
|
|
342
309
|
if (move.itemType !== type || move.itemIndex !== index)
|
|
343
310
|
return false;
|
|
344
|
-
|
|
345
|
-
|
|
311
|
+
const quantity = item.quantity ?? 1;
|
|
312
|
+
const movedQuantity = move.quantity ?? 1;
|
|
346
313
|
if (quantity === movedQuantity)
|
|
347
314
|
return true;
|
|
348
315
|
// If we move only a part of the quantity, we need to find which displayed items should move
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
if (
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
if (droppedIndex < displayIndexMoving)
|
|
359
|
-
displayIndexMoving++;
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
364
|
-
finally {
|
|
365
|
-
try {
|
|
366
|
-
if (droppedItems_1_1 && !droppedItems_1_1.done && (_a = droppedItems_1.return)) _a.call(droppedItems_1);
|
|
316
|
+
const droppedItems = rules.game.droppedItems ?? [];
|
|
317
|
+
let displayIndexMoving = quantity - movedQuantity;
|
|
318
|
+
for (const droppedItem of droppedItems) {
|
|
319
|
+
if (droppedItem.type === type && droppedItem.index === index) {
|
|
320
|
+
const droppedIndex = droppedItem.displayIndex;
|
|
321
|
+
if (displayIndex === droppedIndex)
|
|
322
|
+
return true;
|
|
323
|
+
if (droppedIndex < displayIndexMoving)
|
|
324
|
+
displayIndexMoving++;
|
|
367
325
|
}
|
|
368
|
-
finally { if (e_1) throw e_1.error; }
|
|
369
326
|
}
|
|
370
327
|
return context.displayIndex >= displayIndexMoving;
|
|
371
|
-
}
|
|
328
|
+
}
|
|
372
329
|
/**
|
|
373
330
|
* Given an item being dragged, and all the moves for this item going to this location type, this function must return the list of valid drop locations
|
|
374
331
|
* for the item
|
|
@@ -376,34 +333,36 @@ var Locator = /** @class */ (function () {
|
|
|
376
333
|
* @param context Context of the item
|
|
377
334
|
* @return the drop locations to display
|
|
378
335
|
*/
|
|
379
|
-
|
|
380
|
-
return
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
336
|
+
getDropLocations(moves, context) {
|
|
337
|
+
return uniqWith(moves.map(move => {
|
|
338
|
+
const { rotation, ...location } = move.location;
|
|
339
|
+
const itemIndex = isMoveItem(move) ? move.itemIndex : move.indexes[0];
|
|
340
|
+
const type = location.type ?? context.rules.material(move.itemType).getItem(itemIndex).location.type;
|
|
341
|
+
return { type, ...location };
|
|
342
|
+
}), isEqual);
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* If set to true, each time an item is dragged over
|
|
346
|
+
*/
|
|
347
|
+
dropPreview = false;
|
|
388
348
|
/**
|
|
389
349
|
* If this function returns true, a preview of the dragged item will be displayed when it is over this location.
|
|
390
350
|
* @param _move The move that will be played if the item is dropped
|
|
391
351
|
* @param _context Context of the game
|
|
392
352
|
* @return true if a preview must be displayed
|
|
393
353
|
*/
|
|
394
|
-
|
|
354
|
+
showDropPreview(_move, _context) {
|
|
395
355
|
return this.dropPreview;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
}
|
|
399
|
-
exports.Locator = Locator;
|
|
356
|
+
}
|
|
357
|
+
help;
|
|
358
|
+
}
|
|
400
359
|
/**
|
|
401
360
|
* Type guard to test if some MaterialContext is also an item context.
|
|
402
361
|
* @param context Context of the game
|
|
403
362
|
* @returns true if the context also hold information about a specific item in the game.
|
|
404
363
|
*/
|
|
405
|
-
function isItemContext(context) {
|
|
406
|
-
|
|
364
|
+
export function isItemContext(context) {
|
|
365
|
+
const itemContext = context;
|
|
407
366
|
return itemContext.type !== undefined && itemContext.index !== undefined && itemContext.displayIndex !== undefined;
|
|
408
367
|
}
|
|
409
368
|
/**
|
|
@@ -411,7 +370,7 @@ function isItemContext(context) {
|
|
|
411
370
|
* @param context Context of the item
|
|
412
371
|
* @return The item
|
|
413
372
|
*/
|
|
414
|
-
function getItemFromContext(context) {
|
|
373
|
+
export function getItemFromContext(context) {
|
|
415
374
|
return context.rules.material(context.type).getItem(context.index);
|
|
416
375
|
}
|
|
417
376
|
//# sourceMappingURL=Locator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Locator.js","sourceRoot":"","sources":["../../src/locators/Locator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Locator.js","sourceRoot":"","sources":["../../src/locators/Locator.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,EAIL,UAAU,EACV,kBAAkB,EAOnB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErD,OAAO,EAAE,mBAAmB,EAAqE,MAAM,eAAe,CAAA;AAItH;;GAEG;AACH,MAAM,OAAO,OAAO;IAElB;;;;OAIG;IACH,YAAY,KAAwB;QAClC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;IAC5B,CAAC;IAED;;;;OAIG;IACO,SAAS,GAAQ,EAAE,CAAA;IAE7B;;OAEG;IACH,cAAc,CAAI;IAElB;;OAEG;IACH,KAAK,CAAS;IAEd;;OAEG;IACH,YAAY,GAAW,KAAK,CAAA;IAE5B;;OAEG;IACH,QAAQ,CAA0B;IAElC;;OAEG;IACH,SAAS,GAA8B,EA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