@league-of-foundry-developers/foundry-vtt-types 9.242.0 → 9.249.2

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 (191) hide show
  1. package/package.json +1 -1
  2. package/src/foundry/common/abstract/document.mjs.d.ts +13 -6
  3. package/src/foundry/common/config.mjs/releaseData.d.ts +3 -1
  4. package/src/foundry/common/data/data.mjs/activeEffectData.d.ts +3 -1
  5. package/src/foundry/common/data/data.mjs/actorData.d.ts +1 -1
  6. package/src/foundry/common/data/data.mjs/adventureData.d.ts +14 -12
  7. package/src/foundry/common/data/data.mjs/ambientLightData.d.ts +5 -3
  8. package/src/foundry/common/data/data.mjs/ambientSoundData.d.ts +62 -16
  9. package/src/foundry/common/data/data.mjs/animationData.d.ts +13 -5
  10. package/src/foundry/common/data/data.mjs/cardData.d.ts +4 -4
  11. package/src/foundry/common/data/data.mjs/cardFaceData.d.ts +5 -3
  12. package/src/foundry/common/data/data.mjs/cardsData.d.ts +3 -3
  13. package/src/foundry/common/data/data.mjs/chatMessageData.d.ts +3 -1
  14. package/src/foundry/common/data/data.mjs/chatSpeakerData.d.ts +3 -1
  15. package/src/foundry/common/data/data.mjs/combatData.d.ts +3 -1
  16. package/src/foundry/common/data/data.mjs/combatantData.d.ts +3 -1
  17. package/src/foundry/common/data/data.mjs/darknessActivation.d.ts +3 -1
  18. package/src/foundry/common/data/data.mjs/drawingData.d.ts +3 -1
  19. package/src/foundry/common/data/data.mjs/effectChangeData.d.ts +3 -1
  20. package/src/foundry/common/data/data.mjs/effectDurationData.d.ts +3 -1
  21. package/src/foundry/common/data/data.mjs/fogExplorationData.d.ts +3 -1
  22. package/src/foundry/common/data/data.mjs/folderData.d.ts +3 -1
  23. package/src/foundry/common/data/data.mjs/journalEntryData.d.ts +3 -1
  24. package/src/foundry/common/data/data.mjs/lightData.d.ts +7 -5
  25. package/src/foundry/common/data/data.mjs/macroData.d.ts +3 -1
  26. package/src/foundry/common/data/data.mjs/measuredTemplateData.d.ts +3 -1
  27. package/src/foundry/common/data/data.mjs/noteData.d.ts +3 -1
  28. package/src/foundry/common/data/data.mjs/playlistData.d.ts +3 -1
  29. package/src/foundry/common/data/data.mjs/playlistSoundData.d.ts +3 -1
  30. package/src/foundry/common/data/data.mjs/prototypeTokenData.d.ts +6 -4
  31. package/src/foundry/common/data/data.mjs/rollTableData.d.ts +3 -1
  32. package/src/foundry/common/data/data.mjs/sceneData.d.ts +3 -1
  33. package/src/foundry/common/data/data.mjs/settingData.d.ts +3 -1
  34. package/src/foundry/common/data/data.mjs/tableResultData.d.ts +3 -1
  35. package/src/foundry/common/data/data.mjs/tileData.d.ts +4 -2
  36. package/src/foundry/common/data/data.mjs/tileOcclusion.d.ts +4 -2
  37. package/src/foundry/common/data/data.mjs/tokenBarData.d.ts +4 -2
  38. package/src/foundry/common/data/data.mjs/tokenData.d.ts +5 -3
  39. package/src/foundry/common/data/data.mjs/userData.d.ts +3 -1
  40. package/src/foundry/common/data/data.mjs/videoData.d.ts +4 -2
  41. package/src/foundry/common/data/data.mjs/wallData.d.ts +4 -2
  42. package/src/foundry/common/documents.mjs/baseActiveEffect.d.ts +15 -12
  43. package/src/foundry/common/documents.mjs/baseActor.d.ts +24 -21
  44. package/src/foundry/common/documents.mjs/baseAdventure.d.ts +14 -12
  45. package/src/foundry/common/documents.mjs/baseAmbientLight.d.ts +14 -11
  46. package/src/foundry/common/documents.mjs/baseAmbientSound.d.ts +14 -11
  47. package/src/foundry/common/documents.mjs/baseCard.d.ts +27 -28
  48. package/src/foundry/common/documents.mjs/baseCards.d.ts +18 -16
  49. package/src/foundry/common/documents.mjs/baseChatMessage.d.ts +24 -17
  50. package/src/foundry/common/documents.mjs/baseCombat.d.ts +21 -20
  51. package/src/foundry/common/documents.mjs/baseCombatant.d.ts +25 -18
  52. package/src/foundry/common/documents.mjs/baseDrawing.d.ts +26 -23
  53. package/src/foundry/common/documents.mjs/baseFogExploration.d.ts +19 -17
  54. package/src/foundry/common/documents.mjs/baseFolder.d.ts +14 -12
  55. package/src/foundry/common/documents.mjs/baseItem.d.ts +25 -19
  56. package/src/foundry/common/documents.mjs/baseJournalEntry.d.ts +16 -14
  57. package/src/foundry/common/documents.mjs/baseMacro.d.ts +21 -18
  58. package/src/foundry/common/documents.mjs/baseMeasuredTemplate.d.ts +34 -18
  59. package/src/foundry/common/documents.mjs/baseNote.d.ts +20 -14
  60. package/src/foundry/common/documents.mjs/basePlaylist.d.ts +16 -14
  61. package/src/foundry/common/documents.mjs/basePlaylistSound.d.ts +14 -11
  62. package/src/foundry/common/documents.mjs/baseRollTable.d.ts +16 -14
  63. package/src/foundry/common/documents.mjs/baseScene.d.ts +23 -21
  64. package/src/foundry/common/documents.mjs/baseSetting.d.ts +18 -16
  65. package/src/foundry/common/documents.mjs/baseTableResult.d.ts +27 -19
  66. package/src/foundry/common/documents.mjs/baseTile.d.ts +17 -11
  67. package/src/foundry/common/documents.mjs/baseToken.d.ts +20 -16
  68. package/src/foundry/common/documents.mjs/baseUser.d.ts +45 -11
  69. package/src/foundry/common/documents.mjs/baseWall.d.ts +17 -15
  70. package/src/foundry/common/packages.mjs/packageAuthorData.d.ts +3 -1
  71. package/src/foundry/common/packages.mjs/packageCompendiumData.d.ts +4 -2
  72. package/src/foundry/common/packages.mjs/packageData.d.ts +3 -4
  73. package/src/foundry/common/packages.mjs/packageDependencyData.d.ts +3 -1
  74. package/src/foundry/common/packages.mjs/packageLanguageData.d.ts +3 -1
  75. package/src/foundry/common/utils/primitives.mjs.d.ts +8 -1
  76. package/src/foundry/foundry.js/application.d.ts +139 -111
  77. package/src/foundry/foundry.js/applications/basePlaceableHUD.d.ts +2 -2
  78. package/src/foundry/foundry.js/applications/basePlaceableHUDs/drawingHUD.d.ts +2 -2
  79. package/src/foundry/foundry.js/applications/basePlaceableHUDs/tileHUD.d.ts +2 -2
  80. package/src/foundry/foundry.js/applications/basePlaceableHUDs/tokenHUD.d.ts +3 -3
  81. package/src/foundry/foundry.js/applications/cameraViews.d.ts +2 -2
  82. package/src/foundry/foundry.js/applications/chatPopout.d.ts +3 -3
  83. package/src/foundry/foundry.js/applications/compendium.d.ts +2 -2
  84. package/src/foundry/foundry.js/applications/dialog.d.ts +1 -1
  85. package/src/foundry/foundry.js/applications/filePicker.d.ts +1 -1
  86. package/src/foundry/foundry.js/applications/formApplication.d.ts +45 -14
  87. package/src/foundry/foundry.js/applications/formApplications/avConfig.d.ts +1 -1
  88. package/src/foundry/foundry.js/applications/formApplications/combatTrackerConfig.d.ts +2 -2
  89. package/src/foundry/foundry.js/applications/formApplications/defaultTokenConfig.d.ts +1 -1
  90. package/src/foundry/foundry.js/applications/formApplications/documentSheet.d.ts +20 -31
  91. package/src/foundry/foundry.js/applications/formApplications/documentSheets/activeEffectConfig.d.ts +2 -2
  92. package/src/foundry/foundry.js/applications/formApplications/documentSheets/actorSheet.d.ts +1 -1
  93. package/src/foundry/foundry.js/applications/formApplications/documentSheets/ambientLightConfig.d.ts +5 -5
  94. package/src/foundry/foundry.js/applications/formApplications/documentSheets/ambientSoundConfig.d.ts +4 -4
  95. package/src/foundry/foundry.js/applications/formApplications/documentSheets/combatantConfig.d.ts +3 -3
  96. package/src/foundry/foundry.js/applications/formApplications/documentSheets/folderConfig.d.ts +2 -2
  97. package/src/foundry/foundry.js/applications/formApplications/documentSheets/itemSheet.d.ts +1 -1
  98. package/src/foundry/foundry.js/applications/formApplications/documentSheets/journalSheet.d.ts +1 -1
  99. package/src/foundry/foundry.js/applications/formApplications/documentSheets/macroConfig.d.ts +3 -3
  100. package/src/foundry/foundry.js/applications/formApplications/documentSheets/measuredTemplateConfig.d.ts +3 -3
  101. package/src/foundry/foundry.js/applications/formApplications/documentSheets/noteConfig.d.ts +3 -3
  102. package/src/foundry/foundry.js/applications/formApplications/documentSheets/permissionControl.d.ts +2 -2
  103. package/src/foundry/foundry.js/applications/formApplications/documentSheets/playlistConfig.d.ts +3 -3
  104. package/src/foundry/foundry.js/applications/formApplications/documentSheets/playlistSoundConfig.d.ts +3 -3
  105. package/src/foundry/foundry.js/applications/formApplications/documentSheets/rollTableConfig.d.ts +3 -3
  106. package/src/foundry/foundry.js/applications/formApplications/documentSheets/sceneConfig.d.ts +4 -4
  107. package/src/foundry/foundry.js/applications/formApplications/documentSheets/tileConfig.d.ts +2 -2
  108. package/src/foundry/foundry.js/applications/formApplications/documentSheets/userConfig.d.ts +7 -7
  109. package/src/foundry/foundry.js/applications/formApplications/drawingConfig.d.ts +1 -1
  110. package/src/foundry/foundry.js/applications/formApplications/entitySheetConfig.d.ts +5 -5
  111. package/src/foundry/foundry.js/applications/formApplications/gridConfig.d.ts +1 -1
  112. package/src/foundry/foundry.js/applications/formApplications/imagePopout.d.ts +1 -1
  113. package/src/foundry/foundry.js/applications/formApplications/keybindingsConfig.d.ts +2 -2
  114. package/src/foundry/foundry.js/applications/formApplications/moduleManagement.d.ts +2 -2
  115. package/src/foundry/foundry.js/applications/formApplications/permissionConfig.d.ts +2 -2
  116. package/src/foundry/foundry.js/applications/formApplications/settingsConfig.d.ts +1 -1
  117. package/src/foundry/foundry.js/applications/formApplications/tokenConfig.d.ts +4 -4
  118. package/src/foundry/foundry.js/applications/formApplications/wallConfig.d.ts +3 -3
  119. package/src/foundry/foundry.js/applications/formApplications/worldConfig.d.ts +1 -1
  120. package/src/foundry/foundry.js/applications/frameViewer.d.ts +1 -1
  121. package/src/foundry/foundry.js/applications/headsUpDisplay.d.ts +2 -2
  122. package/src/foundry/foundry.js/applications/hotbar.d.ts +2 -2
  123. package/src/foundry/foundry.js/applications/mainMenu.d.ts +2 -2
  124. package/src/foundry/foundry.js/applications/notifications.d.ts +7 -4
  125. package/src/foundry/foundry.js/applications/pause.d.ts +2 -2
  126. package/src/foundry/foundry.js/applications/playerList.d.ts +2 -2
  127. package/src/foundry/foundry.js/applications/sceneControls.d.ts +2 -2
  128. package/src/foundry/foundry.js/applications/sceneNavigation.d.ts +3 -3
  129. package/src/foundry/foundry.js/applications/sidebar.d.ts +2 -2
  130. package/src/foundry/foundry.js/applications/sidebarTab.d.ts +4 -7
  131. package/src/foundry/foundry.js/applications/sidebarTabs/chatLog.d.ts +2 -2
  132. package/src/foundry/foundry.js/applications/sidebarTabs/combatTracker.d.ts +26 -28
  133. package/src/foundry/foundry.js/applications/sidebarTabs/compendiumDirectory.d.ts +2 -2
  134. package/src/foundry/foundry.js/applications/sidebarTabs/settings.d.ts +2 -2
  135. package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectory.d.ts +2 -2
  136. package/src/foundry/foundry.js/avSettings.d.ts +11 -0
  137. package/src/foundry/foundry.js/canvas.d.ts +5 -0
  138. package/src/foundry/foundry.js/clientDocumentMixin.d.ts +38 -35
  139. package/src/foundry/foundry.js/clientDocuments/activeEffect.d.ts +1 -1
  140. package/src/foundry/foundry.js/clientDocuments/actor.d.ts +1 -1
  141. package/src/foundry/foundry.js/clientDocuments/card.d.ts +2 -1
  142. package/src/foundry/foundry.js/clientDocuments/cards.d.ts +1 -6
  143. package/src/foundry/foundry.js/clientDocuments/chatMessage.d.ts +1 -1
  144. package/src/foundry/foundry.js/clientDocuments/combat.d.ts +5 -5
  145. package/src/foundry/foundry.js/clientDocuments/folder.d.ts +15 -9
  146. package/src/foundry/foundry.js/clientDocuments/item.d.ts +2 -2
  147. package/src/foundry/foundry.js/clientDocuments/playlist.d.ts +1 -1
  148. package/src/foundry/foundry.js/clientDocuments/scene.d.ts +39 -38
  149. package/src/foundry/foundry.js/clientDocuments/user.d.ts +27 -35
  150. package/src/foundry/foundry.js/clientSettings.d.ts +1 -1
  151. package/src/foundry/foundry.js/collections/documentCollection.d.ts +66 -12
  152. package/src/foundry/foundry.js/collections/documentCollections/compendiumCollection.d.ts +78 -67
  153. package/src/foundry/foundry.js/collections/documentCollections/worldCollection.d.ts +73 -32
  154. package/src/foundry/foundry.js/collections/documentCollections/worldCollections/actors.d.ts +3 -37
  155. package/src/foundry/foundry.js/collections/documentCollections/worldCollections/combatEncounters.d.ts +5 -2
  156. package/src/foundry/foundry.js/collections/documentCollections/worldCollections/fogExplorations.d.ts +0 -2
  157. package/src/foundry/foundry.js/collections/documentCollections/worldCollections/folders.d.ts +2 -2
  158. package/src/foundry/foundry.js/collections/documentCollections/worldCollections/items.d.ts +1 -22
  159. package/src/foundry/foundry.js/collections/documentCollections/worldCollections/journal.d.ts +1 -1
  160. package/src/foundry/foundry.js/collections/documentCollections/worldCollections/macros.d.ts +3 -8
  161. package/src/foundry/foundry.js/collections/documentCollections/worldCollections/messages.d.ts +7 -2
  162. package/src/foundry/foundry.js/collections/documentCollections/worldCollections/playlists.d.ts +5 -5
  163. package/src/foundry/foundry.js/collections/documentCollections/worldCollections/rollTables.d.ts +1 -1
  164. package/src/foundry/foundry.js/collections/documentCollections/worldCollections/scenes.d.ts +3 -2
  165. package/src/foundry/foundry.js/collections/documentCollections/worldCollections/users.d.ts +7 -4
  166. package/src/foundry/foundry.js/collections/documentCollections/worldCollections/worldSettings.d.ts +2 -2
  167. package/src/foundry/foundry.js/config.d.ts +5 -2
  168. package/src/foundry/foundry.js/dragDrop.d.ts +27 -34
  169. package/src/foundry/foundry.js/hooks.d.ts +3 -3
  170. package/src/foundry/foundry.js/pixi/containers/ruler.d.ts +18 -7
  171. package/src/foundry/foundry.js/pixi/index.d.ts +2 -0
  172. package/src/foundry/foundry.js/pixi/meshes/index.d.ts +1 -0
  173. package/src/foundry/foundry.js/pixi/meshes/samplerMesh.d.ts +22 -0
  174. package/src/foundry/foundry.js/pixi/points/wallEndpoint.d.ts +1 -1
  175. package/src/foundry/foundry.js/pixi/polygons/pointSourcePolygons/clockwiseSweepPolygon.d.ts +9 -1
  176. package/src/foundry/foundry.js/pixi/rectangles/normalizedRectangle.d.ts +7 -0
  177. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShader.d.ts +1 -1
  178. package/src/foundry/foundry.js/pixi/transforms/index.d.ts +1 -0
  179. package/src/foundry/foundry.js/pixi/transforms/synchronizedTransform.d.ts +38 -0
  180. package/src/foundry/foundry.js/pointSources/lightSource.d.ts +1 -1
  181. package/src/foundry/foundry.js/pointSources/soundSource.d.ts +1 -1
  182. package/src/foundry/foundry.js/pointSources/visionSource.d.ts +1 -1
  183. package/src/foundry/foundry.js/polygonEdge.d.ts +1 -1
  184. package/src/foundry/foundry.js/quadtree.d.ts +2 -2
  185. package/src/foundry/foundry.js/ray.d.ts +1 -1
  186. package/src/foundry/foundry.js/roll.d.ts +13 -11
  187. package/src/foundry/foundry.js/searchFilter.d.ts +37 -33
  188. package/src/foundry/foundry.js/textureLoader.d.ts +28 -18
  189. package/src/foundry/foundry.js/textureUtils.d.ts +5 -8
  190. package/src/foundry/foundry.js/videoHelper.d.ts +2 -1
  191. package/src/types/helperTypes.d.ts +31 -13
@@ -5,7 +5,7 @@ declare global {
5
5
  * The singleton collection of Combat documents which exist within the active World.
6
6
  * This Collection is accessible within the Game object as game.combats.
7
7
  *
8
- * @see {@link Combat} The Combat entity
8
+ * @see {@link Combat} The Combat document
9
9
  * @see {@link CombatTracker} The CombatTracker sidebar directory
10
10
  */
11
11
  class CombatEncounters extends WorldCollection<typeof foundry.documents.BaseCombat, 'CombatEncounters'> {
@@ -13,10 +13,13 @@ declare global {
13
13
  static documentName: 'Combat';
14
14
 
15
15
  /**
16
- * Provide the settings object which configures the Combat entity
16
+ * Provide the settings object which configures the Combat document
17
17
  */
18
18
  static get settings(): ClientSettings.Values[`core.${typeof Combat['CONFIG_SETTING']}`];
19
19
 
20
+ /** @override */
21
+ get directory(): typeof ui['combat'];
22
+
20
23
  /**
21
24
  * Get an Array of Combat instances which apply to the current canvas scene
22
25
  */
@@ -1,7 +1,5 @@
1
1
  /**
2
2
  * The singleton collection of FogExploration documents which exist within the active World.
3
- * This Collection is accessible within the Game object as game.fog.
4
- *
5
3
  * @see {@link FogExploration} The FogExploration document
6
4
  */
7
5
  declare class FogExplorations extends WorldCollection<typeof foundry.documents.BaseFogExploration, 'FogExplorations'> {
@@ -5,7 +5,7 @@ declare global {
5
5
  * The singleton collection of Folder documents which exist within the active World.
6
6
  * This Collection is accessible within the Game object as game.fog.
7
7
  *
8
- * @see {@link FogExploration} The FogExploration document
8
+ * @see {@link Folder} The Folder document
9
9
  */
10
10
  class Folders extends WorldCollection<typeof foundry.documents.BaseFolder, 'Folders'> {
11
11
  constructor(data?: StoredDocument<InstanceType<ConfiguredDocumentClass<typeof Folder>>>['data']['_source'][]);
@@ -19,7 +19,7 @@ declare global {
19
19
  static documentName: 'Folder';
20
20
 
21
21
  /** @override */
22
- render(force?: boolean, context?: Application.Options): void;
22
+ render(force?: boolean, context?: ApplicationOptions): void;
23
23
 
24
24
  /**
25
25
  * Refresh the display of any active JournalSheet instances where the folder list will change.
@@ -2,31 +2,10 @@
2
2
  * The singleton collection of Item documents which exist within the active World.
3
3
  * This Collection is accessible within the Game object as game.items.
4
4
  *
5
- * @see {@link Item} The Item entity
5
+ * @see {@link Item} The Item document
6
6
  * @see {@link ItemDirectory} The ItemDirectory sidebar directory
7
7
  */
8
8
  declare class Items extends WorldCollection<typeof foundry.documents.BaseItem, 'Items'> {
9
9
  /** @override */
10
10
  static documentName: 'Item';
11
-
12
- /**
13
- * Register an Item sheet class as a candidate which can be used to display Items of a given type
14
- * See EntitySheetConfig.registerSheet for details
15
- */
16
- static registerSheet(
17
- scope: string,
18
- sheetClass: ConstructorOf<ItemSheet>,
19
- { label, types, makeDefault }?: { label?: string; types?: string[]; makeDefault?: boolean }
20
- ): void;
21
-
22
- /**
23
- * Unregister an Item sheet class, removing it from the list of available sheet Applications to use
24
- * See EntitySheetConfig.unregisterSheet for details
25
- */
26
- static unregisterSheet(scope: string, sheetClass: ConstructorOf<ItemSheet>, { types }?: { types?: string[] }): void;
27
-
28
- /**
29
- * Return an Array of currently registered sheet classes for this Entity type
30
- */
31
- static get registeredSheets(): typeof ItemSheet[];
32
11
  }
@@ -2,7 +2,7 @@
2
2
  * The singleton collection of JournalEntry documents which exist within the active World.
3
3
  * This Collection is accessible within the Game object as game.journal.
4
4
  *
5
- * @see {@link JournalEntry} The JournalEntry entity
5
+ * @see {@link JournalEntry} The JournalEntry document
6
6
  * @see {@link JournalDirectory} The JournalDirectory sidebar directory
7
7
  */
8
8
  declare class Journal extends WorldCollection<typeof foundry.documents.BaseJournalEntry, 'Journal'> {
@@ -5,7 +5,7 @@ declare global {
5
5
  * The singleton collection of Macro documents which exist within the active World.
6
6
  * This Collection is accessible within the Game object as game.macros.
7
7
  *
8
- * @see {@link Macro} The Macro entity
8
+ * @see {@link Macro} The Macro document
9
9
  * @see {@link MacroDirectory} The MacroDirectory sidebar directory
10
10
  */
11
11
  class Macros extends WorldCollection<typeof foundry.documents.BaseMacro, 'Macros'> {
@@ -19,16 +19,11 @@ declare global {
19
19
  fromCompendium(
20
20
  document:
21
21
  | InstanceType<ConfiguredDocumentClass<typeof foundry.documents.BaseMacro>>
22
- | InstanceType<ConfiguredDocumentClass<typeof foundry.documents.BaseMacro>>['data']['_source']
22
+ | InstanceType<ConfiguredDocumentClass<typeof foundry.documents.BaseMacro>>['data']['_source'],
23
+ options?: WorldCollection.FromCompendiumOptions | undefined
23
24
  ): Omit<
24
25
  InstanceType<ConfiguredDocumentClass<typeof foundry.documents.BaseMacro>>['data']['_source'],
25
26
  '_id' | 'folder'
26
27
  >;
27
-
28
- /**
29
- * You are calling Macros.canUseScripts which has been deprecated in favor of User#can('MACRO_SCRIPT')
30
- * @deprecated since 0.8.1
31
- */
32
- static canUseScripts(user: InstanceType<ConfiguredDocumentClass<typeof foundry.documents.BaseUser>>): boolean;
33
28
  }
34
29
  }
@@ -5,19 +5,24 @@ declare global {
5
5
  * The singleton collection of ChatMessage documents which exist within the active World.
6
6
  * This Collection is accessible within the Game object as game.messages.
7
7
  *
8
- * @see {@link ChatMessage} The ChatMessage entity
8
+ * @see {@link ChatMessage} The ChatMessage document
9
9
  * @see {@link ChatLog} The ChatLog sidebar directory
10
10
  */
11
11
  class Messages extends WorldCollection<typeof foundry.documents.BaseChatMessage, 'Messages'> {
12
12
  /** @override */
13
13
  static documentName: 'ChatMessage';
14
14
 
15
+ /**
16
+ * @override
17
+ * */
18
+ get directory(): typeof ui.chat;
19
+
15
20
  /** @override */
16
21
  render(force?: boolean): void;
17
22
 
18
23
  /**
19
24
  * If requested, dispatch a Chat Bubble UI for the newly created message
20
- * @param message - The ChatMessage entity to say
25
+ * @param message - The ChatMessage document to say
21
26
  */
22
27
  sayBubble(message: InstanceType<ConfiguredDocumentClass<typeof foundry.documents.BaseChatMessage>>): void;
23
28
 
@@ -1,12 +1,12 @@
1
1
  import { ConfiguredDocumentClass } from '../../../../../types/helperTypes';
2
- import type { SceneDataConstructorData } from '../../../../common/data/data.mjs/sceneData.js';
2
+ import type { SceneDataConstructorData } from '../../../../common/data/data.mjs/sceneData';
3
3
 
4
4
  declare global {
5
5
  /**
6
6
  * The singleton collection of Playlist documents which exist within the active World.
7
7
  * This Collection is accessible within the Game object as game.playlists.
8
8
  *
9
- * @see {@link Playlist} The Playlist entity
9
+ * @see {@link Playlist} The Playlist document
10
10
  * @see {@link PlaylistDirectory} The PlaylistDirectory sidebar directory
11
11
  */
12
12
  class Playlists extends WorldCollection<typeof foundry.documents.BasePlaylist, 'Playlists'> {
@@ -20,7 +20,7 @@ declare global {
20
20
  static documentName: 'Playlist';
21
21
 
22
22
  /**
23
- * Return the subset of Playlist entities which are currently playing
23
+ * Return the subset of Playlist documents which are currently playing
24
24
  */
25
25
  get playing(): ReturnType<this['filter']>;
26
26
 
@@ -30,8 +30,8 @@ declare global {
30
30
  initialize(): void;
31
31
 
32
32
  /**
33
- * Handle changes to a Scene to determine whether to trigger changes to Playlist entities.
34
- * @param scene - The Scene entity being updated
33
+ * Handle changes to a Scene to determine whether to trigger changes to Playlist documents.
34
+ * @param scene - The Scene document being updated
35
35
  * @param data - The incremental update data
36
36
  */
37
37
  protected _onChangeScene(
@@ -13,7 +13,7 @@ declare class RollTables extends WorldCollection<typeof foundry.documents.BaseRo
13
13
  get directory(): typeof ui['tables'];
14
14
 
15
15
  /**
16
- * Register world settings related to RollTable entities
16
+ * Register world settings related to RollTable documents
17
17
  */
18
18
  static registerSettings(): void;
19
19
  }
@@ -5,7 +5,7 @@ declare global {
5
5
  * The singleton collection of Scene documents which exist within the active World.
6
6
  * This Collection is accessible within the Game object as game.scenes.
7
7
  *
8
- * @see {@link Scene} The Scene entity
8
+ * @see {@link Scene} The Scene document
9
9
  * @see {@link SceneDirectory} The SceneDirectory sidebar directory
10
10
  */
11
11
  class Scenes extends WorldCollection<typeof foundry.documents.BaseScene, 'Scenes'> {
@@ -54,7 +54,8 @@ declare global {
54
54
  fromCompendium(
55
55
  document:
56
56
  | InstanceType<ConfiguredDocumentClass<typeof foundry.documents.BaseScene>>
57
- | InstanceType<ConfiguredDocumentClass<typeof foundry.documents.BaseScene>>['data']['_source']
57
+ | InstanceType<ConfiguredDocumentClass<typeof foundry.documents.BaseScene>>['data']['_source'],
58
+ options?: WorldCollection.FromCompendiumOptions | undefined
58
59
  ): Omit<
59
60
  InstanceType<ConfiguredDocumentClass<typeof foundry.documents.BaseScene>>['data']['_source'],
60
61
  '_id' | 'folder'
@@ -5,19 +5,21 @@ declare global {
5
5
  * The singleton collection of User documents which exist within the active World.
6
6
  * This Collection is accessible within the Game object as game.users.
7
7
  *
8
- * @see {@link User} The User entity
8
+ * @see {@link User} The User document
9
9
  */
10
10
  class Users extends WorldCollection<typeof foundry.documents.BaseUser, 'Users'> {
11
11
  constructor(data?: foundry.data.UserData['_source'][]);
12
12
 
13
13
  /**
14
- * The User entity of the currently connected user
14
+ * The User document of the currently connected user
15
15
  * @defaultValue `null`
16
16
  */
17
17
  current: StoredDocument<InstanceType<ConfiguredDocumentClass<typeof foundry.documents.BaseUser>>> | null;
18
18
 
19
19
  /**
20
- * Initialize the Map object and all its contained entities
20
+ * Initialize the Map object and all its contained documents
21
+ * @override
22
+ * @internal
21
23
  */
22
24
  protected _initialize(): void;
23
25
 
@@ -36,7 +38,8 @@ declare global {
36
38
  * Handle receipt of activity data from another User connected to the Game session
37
39
  * @param userId - The User id who generated the activity data
38
40
  * @param activityData - The object of activity data
41
+ * (default: `{}`)
39
42
  */
40
- protected static _handleUserActivity(userId: string, activityData?: User.ActivityData): void;
43
+ protected static _handleUserActivity(userId: string, activityData?: ActivityData | undefined): void;
41
44
  }
42
45
  }
@@ -9,10 +9,10 @@ declare class WorldSettings extends WorldCollection<typeof foundry.documents.Bas
9
9
  static documentName: 'Setting';
10
10
 
11
11
  /** @override */
12
- get directory(): null;
12
+ get directory(): undefined;
13
13
 
14
14
  /**
15
- * Return the Setting document with the given key.
15
+ * Return the Setting or Keybind document with the given key.
16
16
  * @param key - The setting key
17
17
  * @returns The Setting.
18
18
  */
@@ -249,6 +249,9 @@ declare global {
249
249
  /** @defaultValue `Cards` */
250
250
  documentClass: ConfiguredDocumentClassOrDefault<typeof Cards>;
251
251
 
252
+ /** @defaultValue `"fas fa-id-badge"` */
253
+ sidebarIcon: string;
254
+
252
255
  presets: {
253
256
  /**
254
257
  * @defaultValue
@@ -505,7 +508,7 @@ declare global {
505
508
  /** @defaultValue `Macros` */
506
509
  collection: ConstructorOf<Macros>;
507
510
 
508
- /** @defaultValue `'fas fa-terminal'` */
511
+ /** @defaultValue `'fas fa-code'` */
509
512
  sidebarIcon: string;
510
513
  };
511
514
 
@@ -973,7 +976,7 @@ declare global {
973
976
 
974
977
  /**
975
978
  * Suggested font families that are displayed wherever a choice is presented
976
- * @defaultValue `['Arial', 'Arial Black', 'Comic Sans MS', 'Courier New', 'Times New Roman', 'Signika', 'Modesto Condensed']`
979
+ * @defaultValue `["Arial", "Courier", "Courier New", "Helvetica", "Signika", "Times", "Times New Roman", "Modesto Condensed"]`
977
980
  */
978
981
  fontFamilies: string[];
979
982
 
@@ -1,3 +1,27 @@
1
+ interface DragDropConfiguration {
2
+ /**
3
+ * The CSS selector used to target draggable elements.
4
+ */
5
+ dragSelector?: DragDrop['dragSelector'];
6
+
7
+ /**
8
+ * The CSS selector used to target viable drop targets.
9
+ */
10
+ dropSelector?: DragDrop['dropSelector'];
11
+
12
+ /**
13
+ * An object of permission test functions for each action
14
+ * @defaultValue `{}`
15
+ */
16
+ permissions?: DragDrop['permissions'];
17
+
18
+ /**
19
+ * An object of callback functions for each action
20
+ * @defaultValue `{}`
21
+ */
22
+ callbacks?: DragDrop['callbacks'];
23
+ }
24
+
1
25
  /**
2
26
  * A controller class for managing drag and drop workflows within an Application instance.
3
27
  * The controller manages the following actions: dragstart, dragover, drop
@@ -16,16 +40,9 @@
16
40
  */
17
41
  declare class DragDrop {
18
42
  /**
19
- * @param dragSelector - The CSS selector used to target draggable elements.
20
- * (default: `undefined`)
21
- * @param dropSelector - The CSS selector used to target viable drop targets.
22
- * (default: `undefined`)
23
- * @param permissions - An object of permission test functions for each action
24
- * (default: `{}`)
25
- * @param callbacks - An object of callback functions for each action
26
- * (default: `{}`)
43
+ * @param options - (default: `{}`)
27
44
  */
28
- constructor({ dragSelector, dropSelector, permissions, callbacks }?: DragDrop.Options);
45
+ constructor({ dragSelector, dropSelector, permissions, callbacks }?: DragDropConfiguration);
29
46
 
30
47
  /**
31
48
  * The HTML selector which identifies draggable elements
@@ -65,7 +82,7 @@ declare class DragDrop {
65
82
  callback(event: DragEvent, action: DragDrop.Action): void;
66
83
 
67
84
  /**
68
- * Test whether the current user has permission to perform a step of the workflow
85
+ * Execute a callback function associated with a certain action in the workflow
69
86
  * @param action - The action being attempted
70
87
  * @param selector - The selector being targeted
71
88
  * @returns Can the action be performed?
@@ -97,29 +114,5 @@ declare class DragDrop {
97
114
  }
98
115
 
99
116
  declare namespace DragDrop {
100
- interface Options {
101
- /**
102
- * The CSS selector used to target draggable elements.
103
- */
104
- dragSelector?: DragDrop['dragSelector'];
105
-
106
- /**
107
- * The CSS selector used to target viable drop targets.
108
- */
109
- dropSelector?: DragDrop['dropSelector'];
110
-
111
- /**
112
- * An object of permission test functions for each action
113
- * @defaultValue `{}`
114
- */
115
- permissions?: DragDrop['permissions'];
116
-
117
- /**
118
- * An object of callback functions for each action
119
- * @defaultValue `{}`
120
- */
121
- callbacks?: DragDrop['callbacks'];
122
- }
123
-
124
117
  type Action = 'dragstart' | 'dragover' | 'drop';
125
118
  }
@@ -4,9 +4,9 @@ import {
4
4
  ConfiguredObjectClassForName,
5
5
  DocumentConstructor,
6
6
  ToObjectFalseType
7
- } from '../../types/helperTypes.js';
8
- import { DocumentModificationOptions } from '../common/abstract/document.mjs.js';
9
- import { EffectChangeData } from '../common/data/data.mjs/effectChangeData.js';
7
+ } from '../../types/helperTypes';
8
+ import { DocumentModificationOptions } from '../common/abstract/document.mjs';
9
+ import { EffectChangeData } from '../common/data/data.mjs/effectChangeData';
10
10
  import { DropData } from './clientDocumentMixin';
11
11
 
12
12
  declare global {
@@ -1,6 +1,23 @@
1
1
  import { ConfiguredDocumentClass, ConfiguredObjectClassForName } from '../../../../types/helperTypes';
2
2
 
3
3
  declare global {
4
+ interface RulerData {
5
+ /** The ruler measurement state. */
6
+ _state: Ruler['_state'];
7
+
8
+ /** A unique name for the ruler containing the owning user's ID. */
9
+ name: string;
10
+
11
+ /** The current point the ruler has been extended to. */
12
+ destination: PIXI.Point;
13
+
14
+ /** The class name of this ruler instance. */
15
+ class: string;
16
+
17
+ /** Additional waypoints along the ruler's length, including the starting point. */
18
+ waypoints: PIXI.Point[];
19
+ }
20
+
4
21
  /**
5
22
  * The Ruler - used to measure distances and trigger movements
6
23
  */
@@ -169,13 +186,7 @@ declare global {
169
186
  */
170
187
  protected _endMeasurement(): void;
171
188
 
172
- toJSON(): {
173
- class: 'Ruler';
174
- name: string;
175
- waypoints: Ruler['waypoints'];
176
- destination: Ruler['destination'];
177
- _state: Ruler['_state'];
178
- };
189
+ toJSON(): RulerData;
179
190
 
180
191
  /**
181
192
  * Update a Ruler instance using data provided through the cursor activity socket
@@ -2,8 +2,10 @@ import './blendModes';
2
2
  import './containers';
3
3
  import './filters';
4
4
  import './graphics';
5
+ import './meshes';
5
6
  import './points';
6
7
  import './polygons';
7
8
  import './rectangles';
8
9
  import './shaders';
9
10
  import './texts';
11
+ import './transforms';
@@ -0,0 +1 @@
1
+ import './samplerMesh';
@@ -0,0 +1,22 @@
1
+ /**
2
+ * A Mesh subclass used to render a texture with faster performance than a PIXI.Sprite.
3
+ */
4
+ declare class SamplerMesh extends PIXI.Mesh {
5
+ /**
6
+ * The basic quad geometry used for the Mesh
7
+ * @defaultValue
8
+ * ```javascript
9
+ * new PIXI.Geometry()
10
+ * .addAttribute('aVertexPosition', [0, 0, 1, 0, 1, 1, 0, 1], 2)
11
+ * .addAttribute('aUvs', [0, 0, 1, 0, 1, 1, 0, 1], 2)
12
+ * .addIndex([0, 1, 2, 0, 2, 3])
13
+ * ```
14
+ */
15
+ static QUAD: PIXI.Geometry;
16
+
17
+ /**
18
+ * Create a SamplerMesh using a provided RenderTexture
19
+ * @param texture - The texture to render using a Mesh
20
+ */
21
+ static create(texture: PIXI.RenderTexture): SamplerMesh;
22
+ }
@@ -1,4 +1,4 @@
1
- import type { ConfiguredObjectClassForName } from '../../../../types/helperTypes.js';
1
+ import type { ConfiguredObjectClassForName } from '../../../../types/helperTypes';
2
2
 
3
3
  declare global {
4
4
  /**
@@ -1,4 +1,4 @@
1
- import type { ConfiguredObjectClassForName } from '../../../../../types/helperTypes.js';
1
+ import type { ConfiguredObjectClassForName } from '../../../../../types/helperTypes';
2
2
 
3
3
  declare global {
4
4
  type VertexMap = Map<number, PolygonVertex>;
@@ -119,6 +119,14 @@ declare global {
119
119
  /** @override */
120
120
  protected _compute(): void;
121
121
 
122
+ /**
123
+ * Round vertices of a ray segment
124
+ * @param ray - The provided ray
125
+ * @returns The ray with rounded vertices
126
+ * @internal
127
+ */
128
+ protected _roundRayVertices(ray: Ray): Ray;
129
+
122
130
  /**
123
131
  * Translate walls and other obstacles into edges which limit visibility
124
132
  * @internal
@@ -4,6 +4,13 @@
4
4
  declare class NormalizedRectangle extends PIXI.Rectangle {
5
5
  constructor(x: number, y: number, width: number, height: number);
6
6
 
7
+ /**
8
+ * Determine whether some other Rectangle intersects with this one.
9
+ * @param other - Some other rectangle against which to compare
10
+ * @returns Do the rectangles intersect?
11
+ */
12
+ intersects(other: PIXI.Rectangle): boolean;
13
+
7
14
  /**
8
15
  * Generate a new rectangle by rotating this one clockwise about its center by a certain number of radians
9
16
  * @param radians - The angle of rotation
@@ -14,7 +14,7 @@ declare abstract class AbstractBaseShader extends PIXI.Shader {
14
14
 
15
15
  /**
16
16
  * The raw vertex shader used by this class.
17
- * A subclass of AbstractBaseShader must implement the fragmentShader static field.
17
+ * A subclass of AbstractBaseShader must implement the vertexShader static field.
18
18
  * @defaultValue `""`
19
19
  *
20
20
  * @remarks This is abstract, subclasses must implement it.
@@ -0,0 +1 @@
1
+ import './synchronizedTransform';
@@ -0,0 +1,38 @@
1
+ /**
2
+ * An extension of PIXI.Transform.
3
+ * This uses a different DisplayObject than the current parent as the reference for the worldTransform.
4
+ */
5
+ declare class SynchronizedTransform extends PIXI.Transform {
6
+ constructor(transform: PIXI.Transform);
7
+
8
+ /**
9
+ * A list of attributes from the transform reference which should be synchronized
10
+ * @defaultValue
11
+ * ```javascript
12
+ * [
13
+ * "localTransform", "position", "scale", "pivot", "skew", "_rotation",
14
+ * "_cx", "_sx", "_cy", "_sy", "_localID", "_currentLocalID"
15
+ * ];
16
+ * ```
17
+ */
18
+ static synchronizedAttributes: string[];
19
+
20
+ /**
21
+ * A Transform instance which defines the reference point for the worldTransform
22
+ */
23
+ get reference(): PIXI.Transform;
24
+
25
+ set reference(value: PIXI.Transform);
26
+
27
+ /** @internal */
28
+ protected _reference: PIXI.Transform;
29
+
30
+ /** @internal */
31
+ protected _syncLocalID: number;
32
+
33
+ /** @override */
34
+ updateTransform(parentTransform: PIXI.Transform): void;
35
+
36
+ /** @override */
37
+ updateLocalTransform(): void;
38
+ }
@@ -1,4 +1,4 @@
1
- import type { ConfiguredObjectClassForName } from '../../../types/helperTypes.js';
1
+ import type { ConfiguredObjectClassForName } from '../../../types/helperTypes';
2
2
 
3
3
  declare global {
4
4
  /** @see {@link foundry.data.LightData} */
@@ -1,4 +1,4 @@
1
- import type { ConfiguredObjectClassForName } from '../../../types/helperTypes.js';
1
+ import type { ConfiguredObjectClassForName } from '../../../types/helperTypes';
2
2
 
3
3
  declare global {
4
4
  interface SoundSourceData extends PointSource.Data {
@@ -1,4 +1,4 @@
1
- import type { ConfiguredObjectClassForName } from '../../../types/helperTypes.js';
1
+ import type { ConfiguredObjectClassForName } from '../../../types/helperTypes';
2
2
 
3
3
  declare global {
4
4
  interface VisionSourceData extends Exclude<PointSource.Data, 'walls'> {
@@ -1,4 +1,4 @@
1
- import type { ConfiguredObjectClassForName } from '../../types/helperTypes.js';
1
+ import type { ConfiguredObjectClassForName } from '../../types/helperTypes';
2
2
 
3
3
  declare global {
4
4
  /**
@@ -97,12 +97,12 @@ declare class Quadtree<T> {
97
97
 
98
98
  /**
99
99
  * Get all the objects which could collide with the provided rectangle
100
- * @param rect - The target rectangle
100
+ * @param rect - The normalized target rectangle
101
101
  * @param _s - The existing result set, for internal use.
102
102
  * (default: `new Set<T>()`)
103
103
  * @returns The objects in the Quadtree which represent potential collisions
104
104
  */
105
- getObjects(rect: Rectangle, _s?: Set<T>): Set<T>;
105
+ getObjects(rect: NormalizedRectangle, _s?: Set<T>): Set<T>;
106
106
 
107
107
  /**
108
108
  * Obtain the leaf nodes to which a target rectangle belongs.
@@ -1,4 +1,4 @@
1
- import type { LineIntersection } from '../common/utils/geometry.mjs.js';
1
+ import type { LineIntersection } from '../common/utils/geometry.mjs';
2
2
 
3
3
  declare global {
4
4
  interface RayIntersection {