@league-of-foundry-developers/foundry-vtt-types 0.8.9-8 → 9.242.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (250) hide show
  1. package/README.md +44 -27
  2. package/index.d.ts +2 -2
  3. package/package.json +34 -15
  4. package/src/foundry/common/abstract/document.mjs.d.ts +24 -10
  5. package/src/foundry/common/config.mjs/index.d.ts +1 -0
  6. package/src/foundry/common/config.mjs/releaseData.d.ts +98 -0
  7. package/src/foundry/common/constants.mjs.d.ts +403 -213
  8. package/src/foundry/common/data/data.mjs/activeEffectData.d.ts +36 -29
  9. package/src/foundry/common/data/data.mjs/actorData.d.ts +32 -21
  10. package/src/foundry/common/data/data.mjs/adventureData.d.ts +165 -0
  11. package/src/foundry/common/data/data.mjs/ambientLightData.d.ts +45 -124
  12. package/src/foundry/common/data/data.mjs/ambientSoundData.d.ts +49 -77
  13. package/src/foundry/common/data/data.mjs/animationData.d.ts +17 -9
  14. package/src/foundry/common/data/data.mjs/cardData.d.ts +265 -0
  15. package/src/foundry/common/data/data.mjs/cardFaceData.d.ts +66 -0
  16. package/src/foundry/common/data/data.mjs/cardsData.d.ts +238 -0
  17. package/src/foundry/common/data/data.mjs/chatMessageData.d.ts +51 -39
  18. package/src/foundry/common/data/data.mjs/chatSpeakerData.d.ts +18 -11
  19. package/src/foundry/common/data/data.mjs/combatData.d.ts +51 -25
  20. package/src/foundry/common/data/data.mjs/combatantData.d.ts +48 -30
  21. package/src/foundry/common/data/data.mjs/darknessActivation.d.ts +8 -7
  22. package/src/foundry/common/data/data.mjs/drawingData.d.ts +68 -67
  23. package/src/foundry/common/data/data.mjs/effectChangeData.d.ts +21 -25
  24. package/src/foundry/common/data/data.mjs/effectDurationData.d.ts +24 -23
  25. package/src/foundry/common/data/data.mjs/fogExplorationData.d.ts +23 -16
  26. package/src/foundry/common/data/data.mjs/folderData.d.ts +28 -25
  27. package/src/foundry/common/data/data.mjs/index.d.ts +5 -0
  28. package/src/foundry/common/data/data.mjs/itemData.d.ts +26 -18
  29. package/src/foundry/common/data/data.mjs/journalEntryData.d.ts +24 -23
  30. package/src/foundry/common/data/data.mjs/lightData.d.ts +228 -0
  31. package/src/foundry/common/data/data.mjs/macroData.d.ts +52 -35
  32. package/src/foundry/common/data/data.mjs/measuredTemplateData.d.ts +41 -38
  33. package/src/foundry/common/data/data.mjs/noteData.d.ts +47 -37
  34. package/src/foundry/common/data/data.mjs/playlistData.d.ts +55 -26
  35. package/src/foundry/common/data/data.mjs/playlistSoundData.d.ts +32 -16
  36. package/src/foundry/common/data/data.mjs/prototypeTokenData.d.ts +7 -11
  37. package/src/foundry/common/data/data.mjs/rollTableData.d.ts +30 -24
  38. package/src/foundry/common/data/data.mjs/sceneData.d.ts +132 -111
  39. package/src/foundry/common/data/data.mjs/settingData.d.ts +11 -8
  40. package/src/foundry/common/data/data.mjs/tableResultData.d.ts +30 -26
  41. package/src/foundry/common/data/data.mjs/tileData.d.ts +43 -36
  42. package/src/foundry/common/data/data.mjs/tileOcclusion.d.ts +10 -9
  43. package/src/foundry/common/data/data.mjs/tokenBarData.d.ts +6 -3
  44. package/src/foundry/common/data/data.mjs/tokenData.d.ts +105 -157
  45. package/src/foundry/common/data/data.mjs/userData.d.ts +118 -33
  46. package/src/foundry/common/data/data.mjs/videoData.d.ts +9 -8
  47. package/src/foundry/common/data/data.mjs/wallData.d.ts +67 -39
  48. package/src/foundry/common/data/fields.mjs.d.ts +180 -83
  49. package/src/foundry/common/documents.mjs/baseActiveEffect.d.ts +9 -3
  50. package/src/foundry/common/documents.mjs/baseActor.d.ts +17 -45
  51. package/src/foundry/common/documents.mjs/baseAdventure.d.ts +38 -0
  52. package/src/foundry/common/documents.mjs/baseAmbientLight.d.ts +3 -0
  53. package/src/foundry/common/documents.mjs/baseAmbientSound.d.ts +3 -1
  54. package/src/foundry/common/documents.mjs/baseCard.d.ts +62 -0
  55. package/src/foundry/common/documents.mjs/baseCards.d.ts +39 -0
  56. package/src/foundry/common/documents.mjs/baseChatMessage.d.ts +3 -0
  57. package/src/foundry/common/documents.mjs/baseCombat.d.ts +5 -2
  58. package/src/foundry/common/documents.mjs/baseCombatant.d.ts +9 -2
  59. package/src/foundry/common/documents.mjs/baseDrawing.d.ts +11 -1
  60. package/src/foundry/common/documents.mjs/baseFogExploration.d.ts +4 -3
  61. package/src/foundry/common/documents.mjs/baseFolder.d.ts +10 -1
  62. package/src/foundry/common/documents.mjs/baseItem.d.ts +11 -29
  63. package/src/foundry/common/documents.mjs/baseJournalEntry.d.ts +3 -0
  64. package/src/foundry/common/documents.mjs/baseMacro.d.ts +16 -14
  65. package/src/foundry/common/documents.mjs/baseMeasuredTemplate.d.ts +4 -1
  66. package/src/foundry/common/documents.mjs/baseNote.d.ts +2 -2
  67. package/src/foundry/common/documents.mjs/basePlaylist.d.ts +1 -0
  68. package/src/foundry/common/documents.mjs/basePlaylistSound.d.ts +2 -1
  69. package/src/foundry/common/documents.mjs/baseRollTable.d.ts +3 -0
  70. package/src/foundry/common/documents.mjs/baseScene.d.ts +1 -0
  71. package/src/foundry/common/documents.mjs/baseSetting.d.ts +1 -0
  72. package/src/foundry/common/documents.mjs/baseTableResult.d.ts +10 -3
  73. package/src/foundry/common/documents.mjs/baseTile.d.ts +1 -0
  74. package/src/foundry/common/documents.mjs/baseToken.d.ts +3 -0
  75. package/src/foundry/common/documents.mjs/baseUser.d.ts +7 -1
  76. package/src/foundry/common/documents.mjs/baseWall.d.ts +7 -10
  77. package/src/foundry/common/documents.mjs/index.d.ts +3 -0
  78. package/src/foundry/common/module.mjs.d.ts +3 -0
  79. package/src/foundry/common/packages.mjs/moduleData.d.ts +12 -9
  80. package/src/foundry/common/packages.mjs/packageAuthorData.d.ts +24 -24
  81. package/src/foundry/common/packages.mjs/packageCompendiumData.d.ts +27 -21
  82. package/src/foundry/common/packages.mjs/packageData.d.ts +108 -82
  83. package/src/foundry/common/packages.mjs/packageDependencyData.d.ts +18 -11
  84. package/src/foundry/common/packages.mjs/packageLanguageData.d.ts +16 -15
  85. package/src/foundry/common/packages.mjs/systemData.d.ts +21 -20
  86. package/src/foundry/common/packages.mjs/tagPackageAvailability.d.ts +3 -3
  87. package/src/foundry/common/packages.mjs/worldData.d.ts +29 -18
  88. package/src/foundry/common/types.mjs.d.ts +95 -0
  89. package/src/foundry/common/utils/geometry.mjs.d.ts +148 -0
  90. package/src/foundry/common/utils/helpers.mjs.d.ts +64 -39
  91. package/src/foundry/common/utils/module.mjs.d.ts +1 -0
  92. package/src/foundry/common/utils/primitives.mjs.d.ts +99 -16
  93. package/src/foundry/foundry.js/application.d.ts +2 -2
  94. package/src/foundry/foundry.js/applications/filePicker.d.ts +1 -1
  95. package/src/foundry/foundry.js/applications/formApplication.d.ts +1 -1
  96. package/src/foundry/foundry.js/applications/formApplications/documentSheet.d.ts +1 -1
  97. package/src/foundry/foundry.js/applications/formApplications/documentSheets/activeEffectConfig.d.ts +1 -1
  98. package/src/foundry/foundry.js/applications/formApplications/documentSheets/actorSheet.d.ts +1 -1
  99. package/src/foundry/foundry.js/applications/formApplications/documentSheets/ambientLightConfig.d.ts +104 -0
  100. package/src/foundry/foundry.js/applications/formApplications/documentSheets/ambientSoundConfig.d.ts +1 -1
  101. package/src/foundry/foundry.js/applications/formApplications/documentSheets/folderConfig.d.ts +1 -1
  102. package/src/foundry/foundry.js/applications/formApplications/documentSheets/index.d.ts +1 -0
  103. package/src/foundry/foundry.js/applications/formApplications/documentSheets/lightConfig.d.ts +5 -79
  104. package/src/foundry/foundry.js/applications/formApplications/documentSheets/measuredTemplateConfig.d.ts +1 -1
  105. package/src/foundry/foundry.js/applications/formApplications/documentSheets/noteConfig.d.ts +2 -2
  106. package/src/foundry/foundry.js/applications/formApplications/documentSheets/permissionControl.d.ts +5 -5
  107. package/src/foundry/foundry.js/applications/formApplications/documentSheets/playlistConfig.d.ts +1 -1
  108. package/src/foundry/foundry.js/applications/formApplications/documentSheets/rollTableConfig.d.ts +5 -8
  109. package/src/foundry/foundry.js/applications/formApplications/documentSheets/sceneConfig.d.ts +3 -3
  110. package/src/foundry/foundry.js/applications/formApplications/documentSheets/tileConfig.d.ts +1 -1
  111. package/src/foundry/foundry.js/applications/formApplications/drawingConfig.d.ts +1 -1
  112. package/src/foundry/foundry.js/applications/formApplications/gridConfig.d.ts +1 -1
  113. package/src/foundry/foundry.js/applications/formApplications/imagePopout.d.ts +1 -1
  114. package/src/foundry/foundry.js/applications/formApplications/index.d.ts +1 -0
  115. package/src/foundry/foundry.js/applications/formApplications/keybindingsConfig.d.ts +257 -0
  116. package/src/foundry/foundry.js/applications/formApplications/tokenConfig.d.ts +8 -9
  117. package/src/foundry/foundry.js/applications/formApplications/wallConfig.d.ts +6 -6
  118. package/src/foundry/foundry.js/applications/sidebarTab.d.ts +1 -1
  119. package/src/foundry/foundry.js/applications/sidebarTabs/chatLog.d.ts +7 -6
  120. package/src/foundry/foundry.js/applications/sidebarTabs/compendiumDirectory.d.ts +2 -2
  121. package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/cardsDirectory.d.ts +7 -0
  122. package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/index.d.ts +1 -0
  123. package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/playlistDirectory.d.ts +2 -2
  124. package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectory.d.ts +2 -2
  125. package/src/foundry/foundry.js/audioContainer.d.ts +28 -10
  126. package/src/foundry/foundry.js/avSettings.d.ts +7 -7
  127. package/src/foundry/foundry.js/canvas.d.ts +148 -46
  128. package/src/foundry/foundry.js/canvasAnimation.d.ts +31 -8
  129. package/src/foundry/foundry.js/canvasDocumentMixin.d.ts +7 -0
  130. package/src/foundry/foundry.js/clientDocumentMixin.d.ts +45 -91
  131. package/src/foundry/foundry.js/clientDocuments/activeEffect.d.ts +3 -2
  132. package/src/foundry/foundry.js/clientDocuments/actor.d.ts +3 -7
  133. package/src/foundry/foundry.js/clientDocuments/canvasDocuments/ambientSoundDocument.d.ts +1 -6
  134. package/src/foundry/foundry.js/clientDocuments/card.d.ts +133 -0
  135. package/src/foundry/foundry.js/clientDocuments/cards.d.ts +375 -0
  136. package/src/foundry/foundry.js/clientDocuments/chatMessage.d.ts +11 -10
  137. package/src/foundry/foundry.js/clientDocuments/combat.d.ts +46 -48
  138. package/src/foundry/foundry.js/clientDocuments/combatant.d.ts +15 -18
  139. package/src/foundry/foundry.js/clientDocuments/folder.d.ts +4 -6
  140. package/src/foundry/foundry.js/clientDocuments/index.d.ts +2 -0
  141. package/src/foundry/foundry.js/clientDocuments/item.d.ts +3 -4
  142. package/src/foundry/foundry.js/clientDocuments/playlist.d.ts +4 -3
  143. package/src/foundry/foundry.js/clientDocuments/rollTable.d.ts +2 -2
  144. package/src/foundry/foundry.js/clientDocuments/scene.d.ts +30 -23
  145. package/src/foundry/foundry.js/clientKeybindings.d.ts +309 -0
  146. package/src/foundry/foundry.js/clientSettings.d.ts +11 -9
  147. package/src/foundry/foundry.js/collections/documentCollections/compendiumCollection.d.ts +1 -1
  148. package/src/foundry/foundry.js/collections/documentCollections/worldCollections/cardStacks.d.ts +9 -0
  149. package/src/foundry/foundry.js/collections/documentCollections/worldCollections/index.d.ts +1 -0
  150. package/src/foundry/foundry.js/collections/documentCollections/worldCollections/playlists.d.ts +3 -2
  151. package/src/foundry/foundry.js/collisionResult.d.ts +60 -0
  152. package/src/foundry/foundry.js/config.d.ts +484 -907
  153. package/src/foundry/foundry.js/dragDrop.d.ts +2 -2
  154. package/src/foundry/foundry.js/game.d.ts +171 -50
  155. package/src/foundry/foundry.js/gamepadManager.d.ts +41 -0
  156. package/src/foundry/foundry.js/handlebarsHelpers.d.ts +4 -4
  157. package/src/foundry/foundry.js/hooks.d.ts +210 -84
  158. package/src/foundry/foundry.js/imageHelper.d.ts +26 -2
  159. package/src/foundry/foundry.js/keyboardManager.d.ts +165 -213
  160. package/src/foundry/foundry.js/mouseManager.d.ts +18 -0
  161. package/src/foundry/foundry.js/newUserExperience.d.ts +34 -0
  162. package/src/foundry/foundry.js/pixi/containers/cachedContainer.d.ts +8 -0
  163. package/src/foundry/foundry.js/pixi/containers/cachedContainers/index.d.ts +1 -0
  164. package/src/foundry/foundry.js/pixi/containers/cachedContainers/primaryCanvasGroup.d.ts +42 -0
  165. package/src/foundry/foundry.js/pixi/containers/canvasLayers/gridLayer.d.ts +2 -2
  166. package/src/foundry/foundry.js/pixi/containers/canvasLayers/index.d.ts +1 -1
  167. package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayers/wallsLayer.d.ts +3 -3
  168. package/src/foundry/foundry.js/pixi/containers/canvasLayers/{effectsLayer.d.ts → weatherLayer.d.ts} +7 -7
  169. package/src/foundry/foundry.js/pixi/containers/effectsCanvasGroup.d.ts +29 -0
  170. package/src/foundry/foundry.js/pixi/containers/index.d.ts +3 -0
  171. package/src/foundry/foundry.js/pixi/containers/interfaceCanvasGroup.d.ts +27 -0
  172. package/src/foundry/foundry.js/pixi/containers/placeableObject.d.ts +2 -2
  173. package/src/foundry/foundry.js/pixi/containers/placeableObjects/token.d.ts +3 -3
  174. package/src/foundry/foundry.js/pixi/index.d.ts +1 -0
  175. package/src/foundry/foundry.js/pixi/points/index.d.ts +1 -0
  176. package/src/foundry/foundry.js/pixi/points/wallEndpoint.d.ts +92 -0
  177. package/src/foundry/foundry.js/pixi/polygons/index.d.ts +2 -1
  178. package/src/foundry/foundry.js/pixi/polygons/pointSourcePolygon.d.ts +98 -0
  179. package/src/foundry/foundry.js/pixi/polygons/pointSourcePolygons/clockwiseSweepPolygon.d.ts +388 -0
  180. package/src/foundry/foundry.js/pixi/polygons/pointSourcePolygons/index.d.ts +1 -0
  181. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShader.d.ts +11 -37
  182. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShader.d.ts +114 -0
  183. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveBackgroundShader.d.ts +57 -0
  184. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShader.d.ts +47 -0
  185. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/bewitchingWaveColorationShader.d.ts +6 -0
  186. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/chromaColorationShader.d.ts +6 -0
  187. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/emanationColorationShader.d.ts +6 -0
  188. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/energyFieldColorationShader.d.ts +6 -0
  189. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/fairyLightColorationShader.d.ts +6 -0
  190. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/fogColorationShader.d.ts +6 -0
  191. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardColorationShaders → adaptiveLightingShaders/adaptiveColorationShaders}/ghostLightColorationShader.d.ts +1 -1
  192. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/hexaDomeColorationShader.d.ts +6 -0
  193. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardColorationShaders → adaptiveLightingShaders/adaptiveColorationShaders}/index.d.ts +5 -0
  194. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/lightDomeColorationShader.d.ts +6 -0
  195. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardColorationShaders → adaptiveLightingShaders/adaptiveColorationShaders}/pulseColorationShader.d.ts +1 -1
  196. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/radialRainbowColorationShader.d.ts +6 -0
  197. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardColorationShaders → adaptiveLightingShaders/adaptiveColorationShaders}/sunburstColorationShader.d.ts +1 -1
  198. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/swirlingRainbowColorationShader.d.ts +6 -0
  199. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardColorationShaders → adaptiveLightingShaders/adaptiveColorationShaders}/torchColorationShader.d.ts +3 -2
  200. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/vortexColorationShader.d.ts +6 -0
  201. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardColorationShaders → adaptiveLightingShaders/adaptiveColorationShaders}/waveColorationShader.d.ts +1 -1
  202. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveIlluminationShader.d.ts +63 -0
  203. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveIlluminationShaders/bewitchingWaveIlluminationShader.d.ts +6 -0
  204. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/blackHoleIlluminationShader.d.ts +1 -1
  205. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveIlluminationShaders/fairyLightIlluminationShader.d.ts +6 -0
  206. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/ghostLightIlluminationShader.d.ts +1 -1
  207. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/index.d.ts +3 -0
  208. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/pulseIlluminationShader.d.ts +1 -1
  209. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/roilingIlluminationShader.d.ts +1 -1
  210. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/sunburstIlluminationShader.d.ts +1 -2
  211. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/torchIlluminationShader.d.ts +1 -1
  212. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveIlluminationShaders/vortexIlluminationShader.d.ts +6 -0
  213. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/waveIlluminationShader.d.ts +1 -1
  214. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/index.d.ts +5 -0
  215. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/baseSamplerShader.d.ts +22 -0
  216. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/index.d.ts +3 -4
  217. package/src/foundry/foundry.js/pixi/texts/preciseText.d.ts +10 -2
  218. package/src/foundry/foundry.js/pointSource.d.ts +59 -328
  219. package/src/foundry/foundry.js/pointSources/index.d.ts +3 -0
  220. package/src/foundry/foundry.js/pointSources/lightSource.d.ts +417 -0
  221. package/src/foundry/foundry.js/pointSources/soundSource.d.ts +46 -0
  222. package/src/foundry/foundry.js/pointSources/visionSource.d.ts +125 -0
  223. package/src/foundry/foundry.js/polygonEdge.d.ts +26 -0
  224. package/src/foundry/foundry.js/polygonVertex.d.ts +89 -0
  225. package/src/foundry/foundry.js/quadtreeCulling.d.ts +11 -0
  226. package/src/foundry/foundry.js/ray.d.ts +156 -162
  227. package/src/foundry/foundry.js/rays/index.d.ts +1 -0
  228. package/src/foundry/foundry.js/rays/sightRay.d.ts +34 -0
  229. package/src/foundry/foundry.js/roll.d.ts +49 -65
  230. package/src/foundry/foundry.js/rollTerm.d.ts +7 -4
  231. package/src/foundry/foundry.js/rollTerms/diceTerm.d.ts +4 -22
  232. package/src/foundry/foundry.js/rollTerms/mathTerm.d.ts +3 -0
  233. package/src/foundry/foundry.js/rollTerms/parentheticalTerm.d.ts +3 -0
  234. package/src/foundry/foundry.js/rollTerms/poolTerm.d.ts +3 -5
  235. package/src/foundry/foundry.js/rollTerms/stringTerm.d.ts +4 -1
  236. package/src/foundry/foundry.js/screenCulling.d.ts +19 -0
  237. package/src/foundry/foundry.js/searchFilter.d.ts +1 -1
  238. package/src/foundry/foundry.js/specialEffect.d.ts +1 -1
  239. package/src/foundry/foundry.js/textEditor.d.ts +1 -1
  240. package/src/foundry/index.d.ts +29 -26
  241. package/src/types/utils.d.ts +11 -3
  242. package/src/foundry/foundry.js/pixi/polygons/sourcePolygon.d.ts +0 -25
  243. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardColorationShader.d.ts +0 -21
  244. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardColorationShaders/chromaColorationShader.d.ts +0 -18
  245. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardColorationShaders/emanationColorationShader.d.ts +0 -17
  246. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardColorationShaders/energyFieldColorationShader.d.ts +0 -18
  247. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardColorationShaders/fogColorationShader.d.ts +0 -17
  248. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardColorationShaders/hexaDomeColorationShader.d.ts +0 -17
  249. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardColorationShaders/lightDomeColorationShader.d.ts +0 -17
  250. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardIlluminationShader.d.ts +0 -22
@@ -0,0 +1,309 @@
1
+ /**
2
+ * A class responsible for managing defined game keybinding.
3
+ * Each keybinding is a string key/value pair belonging to a certain namespace and a certain store scope.
4
+ *
5
+ * When Foundry Virtual Tabletop is initialized, a singleton instance of this class is constructed within the global
6
+ * Game object as as game.keybindings.
7
+ *
8
+ * @see {@link Game#keybindings}
9
+ * @see {@link SettingKeybindingConfig}
10
+ * @see {@link KeybindingsConfig}
11
+ */
12
+ declare class ClientKeybindings {
13
+ constructor();
14
+
15
+ /** Registered Keybinding actions */
16
+ actions: Map<string, KeybindingActionConfig>;
17
+
18
+ /** A mapping of a string key to possible Actions that might execute off it */
19
+ activeKeys: Map<string, KeybindingAction[]>;
20
+
21
+ /**
22
+ * A stored cache of Keybind Actions Ids to Bindings
23
+ * @remarks This is only undefined before the "ready" hook.
24
+ */
25
+ bindings: Map<string, KeybindingActionBinding[]> | undefined;
26
+
27
+ /**
28
+ * A count of how many registered keybindings there are
29
+ * @internal
30
+ * @defaultValue `0`
31
+ */
32
+ protected _registered: number;
33
+
34
+ /**
35
+ * A timestamp which tracks the last time a pan operation was performed
36
+ * @internal
37
+ * @defaultValue `0`
38
+ */
39
+ protected _moveTime: number;
40
+
41
+ static MOVEMENT_DIRECTIONS: ClientKeybindings.MovementDirections;
42
+
43
+ static ZOOM_DIRECTIONS: ClientKeybindings.ZoomDirections;
44
+
45
+ /**
46
+ * An alias of the movement key set tracked by the keyboard
47
+ */
48
+ get moveKeys(): Set<string>;
49
+
50
+ /** Initializes the keybinding values for all registered actions */
51
+ initialize(): void;
52
+
53
+ /**
54
+ * Register a new keybinding
55
+ *
56
+ * @param namespace - The namespace the Keybinding Action belongs to
57
+ * @param action - A unique machine-readable id for the Keybinding Action
58
+ * @param data - Configuration for keybinding data
59
+ *
60
+ * @example <caption>Define a keybinding which shows a notification</caption>
61
+ * ```typescript
62
+ * game.keybindings.register("myModule", "showNotification", {
63
+ * name: "My Settings Keybinding",
64
+ * hint: "A description of what will occur when the Keybinding is executed.",
65
+ * uneditable: [
66
+ * {
67
+ * key: "Digit1",
68
+ * modifiers: ["Control"]
69
+ * }
70
+ * ],
71
+ * editable: [
72
+ * {
73
+ * key: "F1"
74
+ * }
75
+ * ],
76
+ * onDown: () => { ui.notifications.info("Pressed!") },
77
+ * onUp: () => {},
78
+ * restricted: true, // Restrict this Keybinding to gamemaster only?
79
+ * reservedModifiers: ["Alt""], // If the ALT modifier is pressed, the notification is permanent instead of temporary
80
+ * precedence: CONST.KEYBINDING_PRECEDENCE.NORMAL
81
+ * }
82
+ * ```
83
+ * @throws if called after `this.bindings` has been initialized.
84
+ */
85
+ register(namespace: string, action: string, data: KeybindingActionConfig): void;
86
+
87
+ /**
88
+ * Get the current Bindings of a given namespace's Keybinding Action
89
+ *
90
+ * @param namespace - The namespace under which the setting is registered
91
+ * @param action - The keybind action to retrieve
92
+ *
93
+ * @example <caption>Retrieve the current Keybinding Action Bindings</caption>
94
+ * ```typescript
95
+ * game.keybindings.get("myModule", "showNotification");
96
+ * ```
97
+ */
98
+ get(namespace: string, action: string): KeybindingActionBinding[];
99
+
100
+ /**
101
+ * Set the editable Bindings of a Keybinding Action for a certain namespace and Action
102
+ *
103
+ * @param namespace - The namespace under which the Keybinding is registered
104
+ * @param action - The Keybinding action to set
105
+ * @param bindings - The Bindings to assign to the Keybinding
106
+ *
107
+ * @example <caption>Update the current value of a keybinding</caption>
108
+ * ```typescript
109
+ * game.keybindings.set("myModule", "showNotification", [
110
+ * {
111
+ * key: "F2",
112
+ * modifiers: [ "CONTROL" ]
113
+ * }
114
+ * ]);
115
+ * ```
116
+ * @remarks Passing `undefined` or nothing as `bindings` resets to the default.
117
+ */
118
+ set(namespace: string, action: string, bindings?: KeybindingActionBinding[] | undefined): Promise<void>;
119
+
120
+ /** Reset all client keybindings back to their default configuration. */
121
+ resetDefaults(): Promise<void>;
122
+
123
+ /**
124
+ * A helper method that, when given a value, ensures that the returned value is a standardized Binding array
125
+ * @param values - An array of keybinding assignments to be validated
126
+ * @returns An array of keybinding assignments confirmed as valid
127
+ * @internal
128
+ */
129
+ protected static _validateBindings(values: Array<KeybindingActionBinding>): Array<Required<KeybindingActionBinding>>;
130
+
131
+ /**
132
+ * Validate that assigned modifiers are allowed
133
+ * @param keys - An array of modifiers which may be valid
134
+ * @returns An array of modifiers which are confirmed as valid
135
+ * @internal
136
+ */
137
+ protected static _validateModifiers(keys: string[]): string[];
138
+
139
+ /**
140
+ * Compares two Keybinding Actions based on their Order
141
+ * @param a - The first Keybinding Action
142
+ * @param b - the second Keybinding Action
143
+ */
144
+ protected static _compareActions(a: KeybindingAction, b: KeybindingAction): number;
145
+
146
+ /** Register core keybindings */
147
+ protected _registerCoreKeybindings(): void;
148
+
149
+ /**
150
+ * Handle Select all action
151
+ * @param event - The originating keyboard event
152
+ * (unused)
153
+ * @param context - The context data of the event
154
+ * (unused)
155
+ * @internal
156
+ */
157
+ protected static _onSelectAllObjects(event?: KeyboardEvent, context?: KeyboardEventContext): boolean;
158
+
159
+ /**
160
+ * Handle Cycle View actions
161
+ * @param context - The context data of the event
162
+ * @internal
163
+ */
164
+ protected static _onCycleView(context: KeyboardEventContext): boolean;
165
+
166
+ /**
167
+ * Handle Dismiss actions
168
+ * @param context - The context data of the event
169
+ * (unused)
170
+ * @internal
171
+ */
172
+ protected static _onDismiss(context?: KeyboardEventContext): boolean;
173
+
174
+ /**
175
+ * Open Character sheet for current token or controlled actor
176
+ * @param event - (unused)
177
+ * @param context - The context data of the event
178
+ * (unused)
179
+ * @internal
180
+ */
181
+ protected static _onToggleCharacterSheet(event?: KeyboardEvent, context?: KeyboardEventContext): ActorSheet | null;
182
+
183
+ /**
184
+ * Handle action to target the currently hovered token.
185
+ * @param context - The context data of the event
186
+ * @internal
187
+ */
188
+ protected static _onTarget(context: KeyboardEventContext): boolean;
189
+
190
+ /**
191
+ * Handle DELETE Keypress Events
192
+ * @param event - The originating keyboard event
193
+ * @param context - The context data of the event
194
+ * (unused)
195
+ * @internal
196
+ */
197
+ protected static _onDelete(event: KeyboardEvent, context?: KeyboardEventContext): boolean;
198
+
199
+ /**
200
+ * Handle keyboard movement once a small delay has elapsed to allow for multiple simultaneous key-presses.
201
+ * @param context - The context data of the event
202
+ * @param layer - The Placeables layer
203
+ * @internal
204
+ */
205
+ protected _handleMovement(context: KeyboardEventContext, layer: TokenLayer | BackgroundLayer): void;
206
+
207
+ /** Handle panning the canvas using CTRL + directional keys */
208
+ protected _handleCanvasPan(): ReturnType<Canvas['animatePan']>;
209
+
210
+ /**
211
+ * Handle Measured Ruler Movement Action
212
+ * @param context - The context data of the event
213
+ * (unused)
214
+ * @internal
215
+ */
216
+ protected static _onMeasuredRulerMovement(context?: KeyboardEventContext): boolean | void;
217
+
218
+ /**
219
+ * Handle Pause Action
220
+ * @param context - The context data of the event
221
+ * (unused)
222
+ * @internal
223
+ */
224
+ protected static _onPause(context?: KeyboardEventContext): true;
225
+
226
+ /**
227
+ * Handle Highlight action
228
+ * @param context - The context data of the event
229
+ * (unused)
230
+ * @internal
231
+ */
232
+ protected static _onHighlight(context?: KeyboardEventContext): boolean;
233
+
234
+ /**
235
+ * Handle Pan action
236
+ * @param context - The context data of the event
237
+ * @param movementDirections - The Directions being panned in
238
+ * @internal
239
+ */
240
+ protected _onPan(context: KeyboardEventContext, movementDirections: ClientKeybindings.MovementDirection[]): boolean;
241
+
242
+ /**
243
+ * Handle Macro executions
244
+ * @param context - The context data of the event
245
+ * @internal
246
+ */
247
+ protected static _onMacroExecute(
248
+ context: KeyboardEventContext,
249
+ number: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0
250
+ ): boolean;
251
+
252
+ /**
253
+ * Handle Macro page swaps
254
+ * @param context - The context data of the event
255
+ * @internal
256
+ */
257
+ protected static _onMacroPageSwap(context: KeyboardEventContext, page: number): true;
258
+
259
+ /**
260
+ * Handle action to copy data to clipboard
261
+ * @param context - The context data of the event
262
+ * (unused)
263
+ * @internal
264
+ */
265
+ protected static _onCopy(context?: KeyboardEventContext): boolean;
266
+
267
+ /**
268
+ * Handle Paste action
269
+ * @param context - The context data of the event
270
+ * @internal
271
+ */
272
+ protected static _onPaste(context: KeyboardEventContext): boolean;
273
+
274
+ /**
275
+ * Handle Undo action
276
+ * @param context - The context data of the event
277
+ * (unused)
278
+ * @internal
279
+ */
280
+ protected static _onUndo(context?: KeyboardEventContext): boolean;
281
+
282
+ /**
283
+ * Handle presses to keyboard zoom keys
284
+ * @param context - The context data of the event
285
+ * (unused)
286
+ * @param zoomDirection - The direction to zoom
287
+ * @internal
288
+ */
289
+ protected static _onZoom(
290
+ context: KeyboardEventContext | unknown,
291
+ zoomDirection: ClientKeybindings.ZoomDirection
292
+ ): boolean;
293
+ }
294
+
295
+ declare namespace ClientKeybindings {
296
+ type MovementDirections = {
297
+ UP: 'up';
298
+ LEFT: 'left';
299
+ DOWN: 'down';
300
+ RIGHT: 'right';
301
+ };
302
+ type MovementDirection = ValueOf<MovementDirections>;
303
+
304
+ type ZoomDirections = {
305
+ IN: 'in';
306
+ OUT: 'out';
307
+ };
308
+ type ZoomDirection = ValueOf<ZoomDirections>;
309
+ }
@@ -219,27 +219,29 @@ declare namespace ClientSettings {
219
219
  }
220
220
 
221
221
  interface Values {
222
+ 'core.animateRollTable': boolean;
223
+ 'core.chatBubbles': boolean;
224
+ 'core.chatBubblesPan': boolean;
222
225
  'core.combatTrackerConfig': { resource: string; skipDefeated: boolean } | {};
223
226
  'core.compendiumConfiguration': Partial<Record<string, CompendiumCollection.Configuration>>;
224
- 'core.rollMode': foundry.CONST.DiceRollMode;
225
- 'core.animateRollTable': boolean;
226
- 'core.permissions': Game.Permissions;
227
+ 'core.coneTemplateType': 'round' | 'flat';
227
228
  'core.defaultDrawingConfig': foundry.data.DrawingData['_source'] | {};
228
- 'core.time': number;
229
- 'core.globalPlaylistVolume': number;
230
229
  'core.globalAmbientVolume': number;
231
230
  'core.globalInterfaceVolume': number;
232
- 'core.moduleConfiguration': Record<string, boolean>;
233
- 'core.chatBubbles': boolean;
234
- 'core.chatBubblesPan': boolean;
235
- 'core.coneTemplateType': 'round' | 'flat';
231
+ 'core.globalPlaylistVolume': number;
232
+ 'core.keybindings': Record<string, KeybindingActionBinding[]>;
236
233
  'core.language': string;
237
234
  'core.leftClickRelease': boolean;
238
235
  'core.lightAnimation': boolean;
239
236
  'core.maxFPS': number;
240
237
  'core.mipmap': boolean;
238
+ 'core.moduleConfiguration': Record<string, boolean>;
239
+ 'core.nue.shownTips': boolean;
241
240
  'core.noCanvas': boolean;
241
+ 'core.permissions': Game.Permissions;
242
+ 'core.rollMode': keyof CONFIG.Dice.RollModes;
242
243
  'core.softShadows': boolean;
244
+ 'core.time': number;
243
245
  'core.tokenDragPreview': boolean;
244
246
  'core.visionAnimation': boolean;
245
247
  [key: string]: unknown;
@@ -286,7 +286,7 @@ interface ImportAllOptions {
286
286
  folderId?: string | null;
287
287
  /**
288
288
  * A new Folder name to create.
289
- * @defaultValue `''`
289
+ * @defaultValue `""`
290
290
  * */
291
291
  folderName?: string;
292
292
  /**
@@ -0,0 +1,9 @@
1
+ /**
2
+ * The collection of Cards documents which exist within the active World.
3
+ * This Collection is accessible within the Game object as game.cards.
4
+ * @see {@link Cards} The Cards document
5
+ */
6
+ declare class CardStacks extends WorldCollection<typeof foundry.documents.BaseCards, 'Cards'> {
7
+ /** @override */
8
+ static documentName: 'Cards';
9
+ }
@@ -1,4 +1,5 @@
1
1
  import './actors';
2
+ import './cardStacks';
2
3
  import './combatEncounters';
3
4
  import './fogExplorations';
4
5
  import './folders';
@@ -1,4 +1,5 @@
1
- import { ConfiguredDocumentClass, ConstructorDataType } from '../../../../../types/helperTypes';
1
+ import { ConfiguredDocumentClass } from '../../../../../types/helperTypes';
2
+ import type { SceneDataConstructorData } from '../../../../common/data/data.mjs/sceneData.js';
2
3
 
3
4
  declare global {
4
5
  /**
@@ -35,7 +36,7 @@ declare global {
35
36
  */
36
37
  protected _onChangeScene(
37
38
  scene: StoredDocument<InstanceType<ConfiguredDocumentClass<typeof foundry.documents.BaseScene>>>,
38
- data: DeepPartial<ConstructorDataType<foundry.documents.BaseScene['data']>>
39
+ data: DeepPartial<SceneDataConstructorData>
39
40
  ): Promise<void>;
40
41
  }
41
42
  }
@@ -0,0 +1,60 @@
1
+ /**
2
+ * An object containing the result of a collision test.
3
+ * @internal
4
+ */
5
+ declare class CollisionResult {
6
+ constructor(values?: {
7
+ target?: PolygonVertex | null;
8
+ collisions?: PolygonVertex[];
9
+ cwEdges?: EdgeSet;
10
+ ccwEdges?: EdgeSet;
11
+ isBehind?: boolean;
12
+ isLimited?: boolean;
13
+ isRequired?: boolean;
14
+ wasLimited?: boolean;
15
+ });
16
+
17
+ /**
18
+ * The vertex that was the target of this result
19
+ * @defaultValue `null`
20
+ */
21
+ target: PolygonVertex | null;
22
+
23
+ /**
24
+ * The array of collision points which apply to this result
25
+ * @defaultValue `[]`
26
+ */
27
+ collisions: PolygonVertex[];
28
+
29
+ /**
30
+ * The set of edges connected to the target vertex that continue clockwise
31
+ * @defaultValue `new Set()`
32
+ */
33
+ cwEdges: EdgeSet;
34
+
35
+ /**
36
+ * The set of edges connected to the target vertex that continue counter-clockwise
37
+ * @defaultValue `new Set()`
38
+ */
39
+ ccwEdges: EdgeSet;
40
+
41
+ /**
42
+ * Is the target vertex for this result behind some closer active edge?
43
+ */
44
+ isBehind: boolean | undefined;
45
+
46
+ /**
47
+ * Does the target vertex for this result impose a limited collision?
48
+ */
49
+ isLimited: boolean | undefined;
50
+
51
+ /**
52
+ * Is this result required due to a limited angle?
53
+ */
54
+ isRequired: boolean | undefined;
55
+
56
+ /**
57
+ * Has the set of collisions for this result encountered a limited edge?
58
+ */
59
+ wasLimited: boolean | undefined;
60
+ }