@league-of-foundry-developers/foundry-vtt-types 12.331.2-beta → 12.331.4-beta

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 (560) hide show
  1. package/README.md +17 -18
  2. package/package.json +73 -32
  3. package/src/configuration/configuration.d.mts +316 -0
  4. package/src/configuration/documents.d.mts +295 -0
  5. package/src/configuration/globals.d.mts +357 -0
  6. package/src/configuration/index.d.mts +5 -0
  7. package/src/foundry/client/apps/app.d.mts +129 -122
  8. package/src/foundry/client/apps/av/av-config.d.mts +12 -7
  9. package/src/foundry/client/apps/av/cameras.d.mts +12 -7
  10. package/src/foundry/client/apps/dice/dice-config.d.mts +59 -0
  11. package/src/foundry/client/apps/dice/index.d.mts +1 -0
  12. package/src/foundry/client/apps/form.d.mts +114 -86
  13. package/src/foundry/client/apps/forms/actor.d.mts +21 -11
  14. package/src/foundry/client/apps/forms/adventure-exporter.d.mts +12 -7
  15. package/src/foundry/client/apps/forms/adventure-importer.d.mts +14 -6
  16. package/src/foundry/client/apps/forms/base-sheet.d.mts +16 -8
  17. package/src/foundry/client/apps/forms/card-config.d.mts +16 -8
  18. package/src/foundry/client/apps/forms/cards-config.d.mts +15 -14
  19. package/src/foundry/client/apps/forms/combat-config.d.mts +7 -7
  20. package/src/foundry/client/apps/forms/combatant-config.d.mts +3 -3
  21. package/src/foundry/client/apps/forms/default-sheets-config.d.mts +1 -1
  22. package/src/foundry/client/apps/forms/effect-config.d.mts +7 -7
  23. package/src/foundry/client/apps/forms/folder-config.d.mts +5 -5
  24. package/src/foundry/client/apps/forms/fonts.d.mts +42 -35
  25. package/src/foundry/client/apps/forms/grid-config.d.mts +12 -17
  26. package/src/foundry/client/apps/forms/image-popout.d.mts +29 -23
  27. package/src/foundry/client/apps/forms/item.d.mts +9 -9
  28. package/src/foundry/client/apps/forms/journal-page-sheet.d.mts +16 -14
  29. package/src/foundry/client/apps/forms/journal-sheet.d.mts +48 -38
  30. package/src/foundry/client/apps/forms/macro-config.d.mts +7 -7
  31. package/src/foundry/client/apps/forms/measure-template.d.mts +10 -12
  32. package/src/foundry/client/apps/forms/ownership.d.mts +5 -5
  33. package/src/foundry/client/apps/forms/playlist-config.d.mts +8 -10
  34. package/src/foundry/client/apps/forms/playlist-sound-config.d.mts +7 -7
  35. package/src/foundry/client/apps/forms/roll-table-config.d.mts +11 -10
  36. package/src/foundry/client/apps/forms/scene-config.d.mts +40 -41
  37. package/src/foundry/client/apps/forms/sheet-config.d.mts +9 -21
  38. package/src/foundry/client/apps/forms/user-config.d.mts +13 -12
  39. package/src/foundry/client/apps/hud/chatbubble.d.mts +18 -6
  40. package/src/foundry/client/apps/hud/container.d.mts +4 -4
  41. package/src/foundry/client/apps/hud/controls.d.mts +126 -81
  42. package/src/foundry/client/apps/hud/hotbar.d.mts +17 -12
  43. package/src/foundry/client/apps/hud/hud.d.mts +5 -5
  44. package/src/foundry/client/apps/hud/menu.d.mts +10 -3
  45. package/src/foundry/client/apps/hud/navigation.d.mts +14 -9
  46. package/src/foundry/client/apps/hud/pause.d.mts +9 -4
  47. package/src/foundry/client/apps/hud/players.d.mts +14 -9
  48. package/src/foundry/client/apps/i18n.d.mts +34 -27
  49. package/src/foundry/client/apps/index.d.mts +1 -0
  50. package/src/foundry/client/apps/placeables/drawing-config.d.mts +41 -33
  51. package/src/foundry/client/apps/placeables/drawing-hud.d.mts +5 -5
  52. package/src/foundry/client/apps/placeables/index.d.mts +0 -2
  53. package/src/foundry/client/apps/placeables/note-config.d.mts +28 -18
  54. package/src/foundry/client/apps/placeables/tile-config.d.mts +23 -10
  55. package/src/foundry/client/apps/placeables/tile-hud.d.mts +10 -5
  56. package/src/foundry/client/apps/placeables/token-config.d.mts +91 -58
  57. package/src/foundry/client/apps/placeables/token-hud.d.mts +12 -7
  58. package/src/foundry/client/apps/placeables/wall-config.d.mts +21 -17
  59. package/src/foundry/client/apps/sidebar/apps/chat-popout.d.mts +5 -5
  60. package/src/foundry/client/apps/sidebar/apps/client-settings.d.mts +3 -3
  61. package/src/foundry/client/apps/sidebar/apps/compendium.d.mts +15 -13
  62. package/src/foundry/client/apps/sidebar/apps/invitation-links.d.mts +3 -3
  63. package/src/foundry/client/apps/sidebar/apps/keybindings-config.d.mts +3 -2
  64. package/src/foundry/client/apps/sidebar/apps/module-management.d.mts +6 -6
  65. package/src/foundry/client/apps/sidebar/apps/permission-config.d.mts +6 -6
  66. package/src/foundry/client/apps/sidebar/apps/support-details.d.mts +34 -29
  67. package/src/foundry/client/apps/sidebar/apps/tours-management.d.mts +2 -2
  68. package/src/foundry/client/apps/sidebar/apps/world-config.d.mts +13 -10
  69. package/src/foundry/client/apps/sidebar/directory-tab-mixin.d.mts +50 -35
  70. package/src/foundry/client/apps/sidebar/document-directory.d.mts +52 -38
  71. package/src/foundry/client/apps/sidebar/package-configuration.d.mts +4 -4
  72. package/src/foundry/client/apps/sidebar/sidebar-tab.d.mts +3 -3
  73. package/src/foundry/client/apps/sidebar/sidebar.d.mts +9 -4
  74. package/src/foundry/client/apps/sidebar/tabs/actors-directory.d.mts +11 -2
  75. package/src/foundry/client/apps/sidebar/tabs/cards-directory.d.mts +11 -2
  76. package/src/foundry/client/apps/sidebar/tabs/chat-log.d.mts +39 -27
  77. package/src/foundry/client/apps/sidebar/tabs/combat-tracker.d.mts +21 -12
  78. package/src/foundry/client/apps/sidebar/tabs/compendium-directory.d.mts +30 -15
  79. package/src/foundry/client/apps/sidebar/tabs/items-directory.d.mts +11 -2
  80. package/src/foundry/client/apps/sidebar/tabs/journal-directory.d.mts +11 -2
  81. package/src/foundry/client/apps/sidebar/tabs/macros-directory.d.mts +14 -5
  82. package/src/foundry/client/apps/sidebar/tabs/playlists-directory.d.mts +30 -22
  83. package/src/foundry/client/apps/sidebar/tabs/roll-table-directory.d.mts +11 -2
  84. package/src/foundry/client/apps/sidebar/tabs/scenes-directory.d.mts +14 -5
  85. package/src/foundry/client/apps/sidebar/tabs/settings.d.mts +23 -5
  86. package/src/foundry/client/apps/templates.d.mts +6 -2
  87. package/src/foundry/client/av/client.d.mts +1 -1
  88. package/src/foundry/client/av/clients/simplepeer.d.mts +11 -1
  89. package/src/foundry/client/av/master.d.mts +2 -2
  90. package/src/foundry/client/av/settings.d.mts +17 -15
  91. package/src/foundry/client/config.d.mts +444 -314
  92. package/src/foundry/client/core/document-index.d.mts +11 -3
  93. package/src/foundry/client/core/hooks.d.mts +2 -4
  94. package/src/foundry/client/core/image.d.mts +92 -42
  95. package/src/foundry/client/core/issues.d.mts +9 -4
  96. package/src/foundry/client/core/keybindings.d.mts +5 -5
  97. package/src/foundry/client/core/nue.d.mts +1 -1
  98. package/src/foundry/client/core/packages.d.mts +397 -61
  99. package/src/foundry/client/core/settings.d.mts +62 -38
  100. package/src/foundry/client/core/socket.d.mts +2 -2
  101. package/src/foundry/client/core/sorting.d.mts +6 -6
  102. package/src/foundry/client/core/time.d.mts +6 -3
  103. package/src/foundry/client/core/tooltip.d.mts +2 -2
  104. package/src/foundry/client/core/tour.d.mts +59 -50
  105. package/src/foundry/client/core/tours.d.mts +1 -1
  106. package/src/foundry/client/core/utils.d.mts +33 -10
  107. package/src/foundry/client/core/video.d.mts +1 -1
  108. package/src/foundry/client/core/workers.d.mts +24 -17
  109. package/src/foundry/client/data/abstract/canvas-document.d.mts +21 -17
  110. package/src/foundry/client/data/abstract/client-document.d.mts +153 -183
  111. package/src/foundry/client/data/abstract/directory-collection-mixin.d.mts +23 -39
  112. package/src/foundry/client/data/abstract/document-collection.d.mts +96 -68
  113. package/src/foundry/client/data/abstract/world-collection.d.mts +48 -56
  114. package/src/foundry/client/data/collections/actors.d.mts +30 -28
  115. package/src/foundry/client/data/collections/cards.d.mts +16 -3
  116. package/src/foundry/client/data/collections/combats.d.mts +18 -5
  117. package/src/foundry/client/data/collections/compendium-collection.d.mts +85 -101
  118. package/src/foundry/client/data/collections/compendium-folders.d.mts +6 -6
  119. package/src/foundry/client/data/collections/compendium-packs.d.mts +6 -6
  120. package/src/foundry/client/data/collections/fog.d.mts +16 -3
  121. package/src/foundry/client/data/collections/folder.d.mts +20 -6
  122. package/src/foundry/client/data/collections/items.d.mts +17 -4
  123. package/src/foundry/client/data/collections/journal.d.mts +22 -7
  124. package/src/foundry/client/data/collections/macros.d.mts +21 -19
  125. package/src/foundry/client/data/collections/messages.d.mts +19 -6
  126. package/src/foundry/client/data/collections/playlists.d.mts +17 -5
  127. package/src/foundry/client/data/collections/scenes.d.mts +24 -27
  128. package/src/foundry/client/data/collections/settings.d.mts +16 -3
  129. package/src/foundry/client/data/collections/tables.d.mts +18 -5
  130. package/src/foundry/client/data/collections/users.d.mts +19 -7
  131. package/src/foundry/client/data/documents/active-effect.d.mts +677 -85
  132. package/src/foundry/client/data/documents/actor-delta.d.mts +670 -27
  133. package/src/foundry/client/data/documents/actor.d.mts +718 -55
  134. package/src/foundry/client/data/documents/adventure.d.mts +480 -46
  135. package/src/foundry/client/data/documents/ambient-light.d.mts +423 -19
  136. package/src/foundry/client/data/documents/ambient-sound.d.mts +473 -14
  137. package/src/foundry/client/data/documents/card.d.mts +567 -36
  138. package/src/foundry/client/data/documents/cards.d.mts +744 -85
  139. package/src/foundry/client/data/documents/chat-message.d.mts +574 -42
  140. package/src/foundry/client/data/documents/combat.d.mts +699 -69
  141. package/src/foundry/client/data/documents/combatant.d.mts +504 -24
  142. package/src/foundry/client/data/documents/drawing.d.mts +540 -14
  143. package/src/foundry/client/data/documents/fog-exploration.d.mts +416 -21
  144. package/src/foundry/client/data/documents/folder.d.mts +468 -30
  145. package/src/foundry/client/data/documents/index.d.mts +2 -0
  146. package/src/foundry/client/data/documents/item.d.mts +677 -20
  147. package/src/foundry/client/data/documents/journal-entry-page.d.mts +585 -19
  148. package/src/foundry/client/data/documents/journal-entry.d.mts +619 -18
  149. package/src/foundry/client/data/documents/macro.d.mts +528 -25
  150. package/src/foundry/client/data/documents/measured-template.d.mts +478 -14
  151. package/src/foundry/client/data/documents/note.d.mts +491 -15
  152. package/src/foundry/client/data/documents/playlist-sound.d.mts +426 -24
  153. package/src/foundry/client/data/documents/playlist.d.mts +665 -74
  154. package/src/foundry/client/data/documents/region-behavior.d.mts +507 -0
  155. package/src/foundry/client/data/documents/region.d.mts +784 -0
  156. package/src/foundry/client/data/documents/scene.d.mts +983 -140
  157. package/src/foundry/client/data/documents/setting.d.mts +395 -13
  158. package/src/foundry/client/data/documents/table-result.d.mts +476 -14
  159. package/src/foundry/client/data/documents/table.d.mts +661 -78
  160. package/src/foundry/client/data/documents/tile.d.mts +499 -14
  161. package/src/foundry/client/data/documents/token.d.mts +1110 -97
  162. package/src/foundry/client/data/documents/user.d.mts +493 -25
  163. package/src/foundry/client/data/documents/wall.d.mts +548 -14
  164. package/src/foundry/client/game.d.mts +62 -89
  165. package/src/foundry/client/head.d.mts +9 -9
  166. package/src/foundry/client/hooks.d.mts +257 -237
  167. package/src/foundry/client/pixi/board.d.mts +111 -104
  168. package/src/foundry/client/pixi/core/containers/base-canvas-group.d.mts +97 -25
  169. package/src/foundry/client/pixi/core/containers/cached-container.d.mts +37 -19
  170. package/src/foundry/client/pixi/core/containers/full-canvas-container.d.mts +7 -10
  171. package/src/foundry/client/pixi/core/containers/point-source-mesh.d.mts +25 -15
  172. package/src/foundry/client/pixi/core/containers/quad-mesh.d.mts +16 -6
  173. package/src/foundry/client/pixi/core/containers/quadtree.d.mts +113 -54
  174. package/src/foundry/client/pixi/core/containers/sprite-mesh.d.mts +69 -26
  175. package/src/foundry/client/pixi/core/containers/unbound-container.d.mts +20 -2
  176. package/src/foundry/client/pixi/core/interaction/canvas-animation.d.mts +164 -99
  177. package/src/foundry/client/pixi/core/interaction/control-icon.d.mts +61 -22
  178. package/src/foundry/client/pixi/core/interaction/mouse-handler.d.mts +120 -53
  179. package/src/foundry/client/pixi/core/interaction/ping.d.mts +62 -31
  180. package/src/foundry/client/pixi/core/interaction/pings/chevron.d.mts +23 -10
  181. package/src/foundry/client/pixi/core/interaction/pings/pulse.d.mts +91 -34
  182. package/src/foundry/client/pixi/core/interaction/render-flags.d.mts +76 -31
  183. package/src/foundry/client/pixi/core/interaction/resize-handle.d.mts +35 -5
  184. package/src/foundry/client/pixi/core/interaction/targets.d.mts +21 -18
  185. package/src/foundry/client/pixi/core/loader.d.mts +86 -76
  186. package/src/foundry/client/pixi/core/shapes/limited-angle-polygon.d.mts +42 -17
  187. package/src/foundry/client/pixi/core/shapes/polygon-mesher.d.mts +92 -64
  188. package/src/foundry/client/pixi/core/shapes/precise-text.d.mts +28 -10
  189. package/src/foundry/client/pixi/core/shapes/ray.d.mts +47 -23
  190. package/src/foundry/client/pixi/core/shapes/source-polygon.d.mts +170 -75
  191. package/src/foundry/client/pixi/extensions/circle.d.mts +133 -122
  192. package/src/foundry/client/pixi/extensions/graphics.d.mts +3 -1
  193. package/src/foundry/client/pixi/extensions/observable-transform.d.mts +10 -2
  194. package/src/foundry/client/pixi/extensions/polygon.d.mts +155 -134
  195. package/src/foundry/client/pixi/extensions/rectangle.d.mts +266 -240
  196. package/src/foundry/client/pixi/groups/effects.d.mts +75 -24
  197. package/src/foundry/client/pixi/groups/environment.d.mts +68 -19
  198. package/src/foundry/client/pixi/groups/hidden.d.mts +27 -11
  199. package/src/foundry/client/pixi/groups/interface.d.mts +62 -38
  200. package/src/foundry/client/pixi/groups/overlay.d.mts +19 -7
  201. package/src/foundry/client/pixi/groups/primary.d.mts +66 -44
  202. package/src/foundry/client/pixi/groups/rendered.d.mts +19 -7
  203. package/src/foundry/client/pixi/layers/base/canvas-layer.d.mts +11 -15
  204. package/src/foundry/client/pixi/layers/base/interaction-layer.d.mts +29 -28
  205. package/src/foundry/client/pixi/layers/base/placeables-layer.d.mts +306 -272
  206. package/src/foundry/client/pixi/layers/controls/cursor.d.mts +18 -9
  207. package/src/foundry/client/pixi/layers/controls/door.d.mts +32 -11
  208. package/src/foundry/client/pixi/layers/controls/layer.d.mts +89 -77
  209. package/src/foundry/client/pixi/layers/controls/ruler.d.mts +121 -96
  210. package/src/foundry/client/pixi/layers/effects/background-effects.d.mts +9 -12
  211. package/src/foundry/client/pixi/layers/effects/coloration-effects.d.mts +9 -10
  212. package/src/foundry/client/pixi/layers/effects/darkness-effects.d.mts +8 -8
  213. package/src/foundry/client/pixi/layers/effects/illumination-effects.d.mts +22 -22
  214. package/src/foundry/client/pixi/layers/effects/visibility.d.mts +106 -86
  215. package/src/foundry/client/pixi/layers/effects/weather/particles/effect.d.mts +14 -5
  216. package/src/foundry/client/pixi/layers/effects/weather/particles/leaves.d.mts +31 -2
  217. package/src/foundry/client/pixi/layers/effects/weather-effects.d.mts +137 -65
  218. package/src/foundry/client/pixi/layers/grid/highlight.d.mts +14 -4
  219. package/src/foundry/client/pixi/layers/grid/layer.d.mts +92 -92
  220. package/src/foundry/client/pixi/layers/grid/mesh.d.mts +37 -16
  221. package/src/foundry/client/pixi/layers/masks/depth.d.mts +12 -7
  222. package/src/foundry/client/pixi/layers/masks/occlusion.d.mts +19 -12
  223. package/src/foundry/client/pixi/layers/masks/vision.d.mts +104 -18
  224. package/src/foundry/client/pixi/layers/placeables/drawings.d.mts +16 -15
  225. package/src/foundry/client/pixi/layers/placeables/index.d.mts +1 -0
  226. package/src/foundry/client/pixi/layers/placeables/lighting.d.mts +12 -14
  227. package/src/foundry/client/pixi/layers/placeables/notes.d.mts +49 -32
  228. package/src/foundry/client/pixi/layers/placeables/regions.d.mts +113 -0
  229. package/src/foundry/client/pixi/layers/placeables/sounds.d.mts +81 -67
  230. package/src/foundry/client/pixi/layers/placeables/templates.d.mts +11 -15
  231. package/src/foundry/client/pixi/layers/placeables/tiles.d.mts +30 -21
  232. package/src/foundry/client/pixi/layers/placeables/tokens.d.mts +66 -52
  233. package/src/foundry/client/pixi/layers/placeables/walls.d.mts +54 -57
  234. package/src/foundry/client/pixi/perception/clockwise-sweep.d.mts +62 -27
  235. package/src/foundry/client/pixi/perception/detection-mode.d.mts +121 -47
  236. package/src/foundry/client/pixi/perception/fog.d.mts +38 -15
  237. package/src/foundry/client/pixi/perception/perception-manager.d.mts +136 -136
  238. package/src/foundry/client/pixi/perception/vision-mode.d.mts +108 -66
  239. package/src/foundry/client/pixi/perception/weiler-atherton-clipping.d.mts +77 -39
  240. package/src/foundry/client/pixi/placeable.d.mts +238 -137
  241. package/src/foundry/client/pixi/placeables/drawing.d.mts +255 -133
  242. package/src/foundry/client/pixi/placeables/index.d.mts +1 -0
  243. package/src/foundry/client/pixi/placeables/light.d.mts +199 -64
  244. package/src/foundry/client/pixi/placeables/note.d.mts +145 -54
  245. package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-canvas-object.d.mts +30 -8
  246. package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-graphics.d.mts +41 -11
  247. package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-occludable-object.d.mts +59 -18
  248. package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-sprite-mesh.d.mts +120 -37
  249. package/src/foundry/client/pixi/placeables/region.d.mts +280 -0
  250. package/src/foundry/client/pixi/placeables/sound.d.mts +205 -66
  251. package/src/foundry/client/pixi/placeables/template.d.mts +181 -99
  252. package/src/foundry/client/pixi/placeables/tile.d.mts +206 -140
  253. package/src/foundry/client/pixi/placeables/token.d.mts +916 -448
  254. package/src/foundry/client/pixi/placeables/wall.d.mts +249 -129
  255. package/src/foundry/client/pixi/webgl/extensions/batch-renderer.d.mts +72 -33
  256. package/src/foundry/client/pixi/webgl/extensions/batch-shader-generator.d.mts +10 -9
  257. package/src/foundry/client/pixi/webgl/helpers/{framebugger-snapshot.d.mts → framebuffer-snapshot.d.mts} +10 -9
  258. package/src/foundry/client/pixi/webgl/helpers/index.d.mts +1 -1
  259. package/src/foundry/client/pixi/webgl/helpers/smooth-noise.d.mts +38 -23
  260. package/src/foundry/client/pixi/webgl/helpers/texture-extractor.d.mts +82 -53
  261. package/src/foundry/client/pixi/webgl/shaders/base-shader-mixin.d.mts +12 -12
  262. package/src/foundry/client/pixi/webgl/shaders/base-shader.d.mts +45 -28
  263. package/src/foundry/client/pixi/webgl/shaders/filters/base-filter.d.mts +12 -11
  264. package/src/foundry/client/pixi/webgl/shaders/filters/base-mask-filter.d.mts +12 -10
  265. package/src/foundry/client/pixi/webgl/shaders/filters/blur.d.mts +22 -20
  266. package/src/foundry/client/pixi/webgl/shaders/filters/effects-masking.d.mts +36 -32
  267. package/src/foundry/client/pixi/webgl/shaders/filters/environment.d.mts +10 -9
  268. package/src/foundry/client/pixi/webgl/shaders/filters/glow-overlay.d.mts +12 -11
  269. package/src/foundry/client/pixi/webgl/shaders/filters/invisibility.d.mts +10 -9
  270. package/src/foundry/client/pixi/webgl/shaders/filters/outline-overlay.d.mts +12 -11
  271. package/src/foundry/client/pixi/webgl/shaders/filters/transition.d.mts +67 -60
  272. package/src/foundry/client/pixi/webgl/shaders/filters/visibility.d.mts +24 -17
  273. package/src/foundry/client/pixi/webgl/shaders/filters/vision-mask-filter.d.mts +13 -10
  274. package/src/foundry/client/pixi/webgl/shaders/filters/void.d.mts +10 -9
  275. package/src/foundry/client/pixi/webgl/shaders/filters/weather-occlusion-masks.d.mts +11 -10
  276. package/src/foundry/client/pixi/webgl/shaders/fragment-channel-mixin.d.mts +20 -14
  277. package/src/foundry/client/pixi/webgl/shaders/grid/grid.d.mts +12 -11
  278. package/src/foundry/client/pixi/webgl/shaders/lighting/background-lighting.d.mts +10 -9
  279. package/src/foundry/client/pixi/webgl/shaders/lighting/base-lighting.d.mts +33 -33
  280. package/src/foundry/client/pixi/webgl/shaders/lighting/coloration-lighting.d.mts +10 -9
  281. package/src/foundry/client/pixi/webgl/shaders/lighting/darkness-lighting.d.mts +10 -9
  282. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/bewitching-wave.d.mts +19 -17
  283. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/black-hole.d.mts +10 -9
  284. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/chroma.d.mts +10 -9
  285. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/emanation.d.mts +10 -9
  286. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/energy-field.d.mts +10 -9
  287. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/fairy-light.d.mts +19 -17
  288. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/flame.d.mts +19 -17
  289. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/fog.d.mts +10 -9
  290. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/force-grid.d.mts +10 -8
  291. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/ghost-light.d.mts +19 -17
  292. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/hexa-dome.d.mts +10 -9
  293. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/light-dome.d.mts +10 -9
  294. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/magical-gloom.d.mts +10 -9
  295. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/pulse.d.mts +19 -17
  296. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/radial-rainbow.d.mts +10 -9
  297. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/revolving-light.d.mts +10 -9
  298. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/roiling-mass.d.mts +10 -9
  299. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/siren-light.d.mts +19 -17
  300. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/smoke-patch.d.mts +20 -17
  301. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/star-light.d.mts +10 -9
  302. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/sunburst.d.mts +19 -17
  303. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/swirling-rainbow.d.mts +10 -9
  304. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/torch.d.mts +19 -17
  305. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/vortex.d.mts +19 -17
  306. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/wave.d.mts +19 -17
  307. package/src/foundry/client/pixi/webgl/shaders/lighting/illumination-lighting.d.mts +10 -9
  308. package/src/foundry/client/pixi/webgl/shaders/region/adjust-darkness-level.d.mts +71 -29
  309. package/src/foundry/client/pixi/webgl/shaders/region/base.d.mts +54 -10
  310. package/src/foundry/client/pixi/webgl/shaders/region/highlight.d.mts +69 -9
  311. package/src/foundry/client/pixi/webgl/shaders/samplers/base-sampler.d.mts +24 -25
  312. package/src/foundry/client/pixi/webgl/shaders/samplers/baseline-illumination.d.mts +10 -9
  313. package/src/foundry/client/pixi/webgl/shaders/samplers/color-adjustment.d.mts +38 -29
  314. package/src/foundry/client/pixi/webgl/shaders/samplers/depth.d.mts +21 -17
  315. package/src/foundry/client/pixi/webgl/shaders/samplers/fog-of-war.d.mts +10 -9
  316. package/src/foundry/client/pixi/webgl/shaders/samplers/occlusion.d.mts +20 -18
  317. package/src/foundry/client/pixi/webgl/shaders/samplers/primary.d.mts +11 -2
  318. package/src/foundry/client/pixi/webgl/shaders/samplers/token-ring.d.mts +28 -2
  319. package/src/foundry/client/pixi/webgl/shaders/vision/background-vision.d.mts +10 -9
  320. package/src/foundry/client/pixi/webgl/shaders/vision/base-vision.d.mts +11 -9
  321. package/src/foundry/client/pixi/webgl/shaders/vision/coloration-vision.d.mts +10 -9
  322. package/src/foundry/client/pixi/webgl/shaders/vision/effects/amplification.d.mts +10 -9
  323. package/src/foundry/client/pixi/webgl/shaders/vision/effects/wave.d.mts +19 -17
  324. package/src/foundry/client/pixi/webgl/shaders/vision/illumination-vision.d.mts +10 -9
  325. package/src/foundry/client/pixi/webgl/shaders/weather/base-weather.d.mts +40 -36
  326. package/src/foundry/client/pixi/webgl/shaders/weather/effect.d.mts +27 -33
  327. package/src/foundry/client/pixi/webgl/shaders/weather/fog.d.mts +17 -16
  328. package/src/foundry/client/pixi/webgl/shaders/weather/rain.d.mts +19 -18
  329. package/src/foundry/client/pixi/webgl/shaders/weather/snow.d.mts +15 -14
  330. package/src/foundry/client/pixi/workers/texture-worker.d.mts +33 -53
  331. package/src/foundry/client/tours/setup-tour.d.mts +15 -10
  332. package/src/foundry/client/ui/context.d.mts +48 -40
  333. package/src/foundry/client/ui/dialog.d.mts +137 -126
  334. package/src/foundry/client/ui/drag.d.mts +1 -1
  335. package/src/foundry/client/ui/dragdrop.d.mts +34 -28
  336. package/src/foundry/client/ui/editor.d.mts +29 -21
  337. package/src/foundry/client/ui/filepicker.d.mts +43 -38
  338. package/src/foundry/client/ui/filter.d.mts +62 -50
  339. package/src/foundry/client/ui/forms.d.mts +22 -22
  340. package/src/foundry/client/ui/notifications.d.mts +10 -3
  341. package/src/foundry/client/ui/prosemirror.d.mts +15 -7
  342. package/src/foundry/client/ui/secrets.d.mts +42 -27
  343. package/src/foundry/client/ui/tabs.d.mts +40 -33
  344. package/src/foundry/client-esm/applications/_module.d.mts +3 -3
  345. package/src/foundry/client-esm/applications/_types.d.mts +0 -2
  346. package/src/foundry/client-esm/applications/api/_module.d.mts +2 -2
  347. package/src/foundry/client-esm/applications/api/application.d.mts +51 -39
  348. package/src/foundry/client-esm/applications/api/dialog.d.mts +20 -22
  349. package/src/foundry/client-esm/applications/api/document-sheet.d.mts +26 -12
  350. package/src/foundry/client-esm/applications/api/handlebars-application.d.mts +142 -126
  351. package/src/foundry/client-esm/applications/apps/_module.d.mts +2 -2
  352. package/src/foundry/client-esm/applications/apps/compendium-art-config.d.mts +10 -10
  353. package/src/foundry/client-esm/applications/apps/permission-config.d.mts +3 -3
  354. package/src/foundry/client-esm/applications/dice/_module.d.mts +2 -2
  355. package/src/foundry/client-esm/applications/dice/roll-resolver.d.mts +14 -2
  356. package/src/foundry/client-esm/applications/elements/_module.d.mts +2 -2
  357. package/src/foundry/client-esm/applications/elements/document-tags.d.mts +2 -0
  358. package/src/foundry/client-esm/applications/elements/file-picker.d.mts +1 -1
  359. package/src/foundry/client-esm/applications/elements/multi-select.d.mts +15 -5
  360. package/src/foundry/client-esm/applications/elements/string-tags.d.mts +1 -1
  361. package/src/foundry/client-esm/applications/forms/fields.d.mts +6 -1
  362. package/src/foundry/client-esm/applications/sheets/_module.d.mts +2 -2
  363. package/src/foundry/client-esm/applications/sheets/actor-sheet.d.mts +3 -3
  364. package/src/foundry/client-esm/applications/sheets/ambient-light-config.d.mts +16 -11
  365. package/src/foundry/client-esm/applications/sheets/ambient-sound-config.d.mts +9 -7
  366. package/src/foundry/client-esm/applications/sheets/item-sheet.d.mts +3 -3
  367. package/src/foundry/client-esm/applications/sheets/region-behavior-config.d.mts +30 -5
  368. package/src/foundry/client-esm/applications/sheets/region-config.d.mts +36 -5
  369. package/src/foundry/client-esm/applications/sheets/user-config.d.mts +8 -7
  370. package/src/foundry/client-esm/applications/ui/_module.d.mts +2 -2
  371. package/src/foundry/client-esm/applications/ui/region-legend.d.mts +45 -3
  372. package/src/foundry/client-esm/audio/_module.d.mts +2 -3
  373. package/src/foundry/client-esm/audio/_types.d.mts +3 -1
  374. package/src/foundry/client-esm/audio/biquad.d.mts +76 -26
  375. package/src/foundry/client-esm/audio/cache.d.mts +31 -20
  376. package/src/foundry/client-esm/audio/convolver.d.mts +47 -25
  377. package/src/foundry/client-esm/audio/helper.d.mts +123 -78
  378. package/src/foundry/client-esm/audio/sound.d.mts +230 -126
  379. package/src/foundry/client-esm/audio/timeout.d.mts +30 -11
  380. package/src/foundry/client-esm/canvas/_module.d.mts +2 -2
  381. package/src/foundry/client-esm/canvas/edges/_module.d.mts +2 -2
  382. package/src/foundry/client-esm/canvas/edges/collision.d.mts +69 -18
  383. package/src/foundry/client-esm/canvas/edges/edge.d.mts +110 -41
  384. package/src/foundry/client-esm/canvas/edges/edges.d.mts +10 -0
  385. package/src/foundry/client-esm/canvas/edges/vertex.d.mts +56 -26
  386. package/src/foundry/client-esm/canvas/regions/_module.d.mts +2 -3
  387. package/src/foundry/client-esm/canvas/regions/geometry.d.mts +38 -0
  388. package/src/foundry/client-esm/canvas/regions/mesh.d.mts +72 -0
  389. package/src/foundry/client-esm/canvas/regions/polygon-tree.d.mts +130 -0
  390. package/src/foundry/client-esm/canvas/regions/shape.d.mts +129 -0
  391. package/src/foundry/client-esm/canvas/scene-manager.d.mts +16 -6
  392. package/src/foundry/client-esm/canvas/smaa/blend.d.mts +14 -3
  393. package/src/foundry/client-esm/canvas/smaa/edges.d.mts +25 -3
  394. package/src/foundry/client-esm/canvas/smaa/smaa.d.mts +121 -23
  395. package/src/foundry/client-esm/canvas/smaa/weights.d.mts +26 -3
  396. package/src/foundry/client-esm/canvas/sources/_module.d.mts +2 -2
  397. package/src/foundry/client-esm/canvas/sources/base-effect-source.d.mts +84 -40
  398. package/src/foundry/client-esm/canvas/sources/base-light-source.d.mts +103 -39
  399. package/src/foundry/client-esm/canvas/sources/global-light-source.d.mts +89 -15
  400. package/src/foundry/client-esm/canvas/sources/point-darkness-source.d.mts +71 -30
  401. package/src/foundry/client-esm/canvas/sources/point-effect-source.d.mts +49 -20
  402. package/src/foundry/client-esm/canvas/sources/point-light-source.d.mts +57 -16
  403. package/src/foundry/client-esm/canvas/sources/point-movement-source.d.mts +31 -4
  404. package/src/foundry/client-esm/canvas/sources/point-sound-source.d.mts +45 -12
  405. package/src/foundry/client-esm/canvas/sources/point-vision-source.d.mts +98 -52
  406. package/src/foundry/client-esm/canvas/sources/rendered-effect-source.d.mts +180 -69
  407. package/src/foundry/client-esm/canvas/tokens/_module.d.mts +2 -3
  408. package/src/foundry/client-esm/canvas/tokens/ring-config.d.mts +174 -2
  409. package/src/foundry/client-esm/canvas/tokens/ring-data.d.mts +141 -2
  410. package/src/foundry/client-esm/canvas/tokens/ring.d.mts +284 -2
  411. package/src/foundry/client-esm/client.d.mts +47 -54
  412. package/src/foundry/client-esm/data/_module.d.mts +2 -2
  413. package/src/foundry/client-esm/data/client-backend.d.mts +22 -23
  414. package/src/foundry/client-esm/data/region-behaviors/_module.d.mts +3 -3
  415. package/src/foundry/client-esm/data/region-behaviors/adjust-darkness-level.d.mts +57 -0
  416. package/src/foundry/client-esm/data/region-behaviors/base.d.mts +59 -0
  417. package/src/foundry/client-esm/data/region-behaviors/display-scrolling-text.d.mts +64 -0
  418. package/src/foundry/client-esm/data/region-behaviors/execute-macro.d.mts +27 -0
  419. package/src/foundry/client-esm/data/region-behaviors/execute-script.d.mts +23 -0
  420. package/src/foundry/client-esm/data/region-behaviors/pause-game.d.mts +23 -0
  421. package/src/foundry/client-esm/data/region-behaviors/suppress-weather.d.mts +17 -0
  422. package/src/foundry/client-esm/data/region-behaviors/teleport-token.d.mts +32 -0
  423. package/src/foundry/client-esm/data/region-behaviors/toggle-behavior.d.mts +31 -0
  424. package/src/foundry/client-esm/dice/_module.d.mts +2 -3
  425. package/src/foundry/client-esm/dice/parser.d.mts +11 -25
  426. package/src/foundry/client-esm/dice/roll.d.mts +115 -89
  427. package/src/foundry/client-esm/dice/terms/_module.d.mts +2 -3
  428. package/src/foundry/client-esm/dice/terms/coin.d.mts +8 -5
  429. package/src/foundry/client-esm/dice/terms/dice.d.mts +93 -63
  430. package/src/foundry/client-esm/dice/terms/die.d.mts +11 -4
  431. package/src/foundry/client-esm/dice/terms/fate.d.mts +9 -2
  432. package/src/foundry/client-esm/dice/terms/function.d.mts +18 -18
  433. package/src/foundry/client-esm/dice/terms/numeric.d.mts +3 -5
  434. package/src/foundry/client-esm/dice/terms/operator.d.mts +2 -2
  435. package/src/foundry/client-esm/dice/terms/parenthetical.d.mts +9 -10
  436. package/src/foundry/client-esm/dice/terms/pool.d.mts +25 -31
  437. package/src/foundry/client-esm/dice/terms/string.d.mts +4 -4
  438. package/src/foundry/client-esm/dice/terms/term.d.mts +18 -4
  439. package/src/foundry/client-esm/dice/twister.d.mts +3 -3
  440. package/src/foundry/client-esm/helpers/_module.d.mts +2 -2
  441. package/src/foundry/client-esm/helpers/_types.d.mts +12 -46
  442. package/src/foundry/client-esm/helpers/compendium-art.d.mts +56 -4
  443. package/src/foundry/common/abstract/_types.d.mts +60 -54
  444. package/src/foundry/common/abstract/backend.d.mts +51 -45
  445. package/src/foundry/common/abstract/data.d.mts +140 -154
  446. package/src/foundry/common/abstract/document.d.mts +1305 -421
  447. package/src/foundry/common/abstract/embedded-collection-delta.d.mts +1 -1
  448. package/src/foundry/common/abstract/embedded-collection.d.mts +37 -7
  449. package/src/foundry/common/abstract/module.d.mts +3 -2
  450. package/src/foundry/common/abstract/singleton-collection.d.mts +1 -1
  451. package/src/foundry/common/abstract/socket.d.mts +1 -1
  452. package/src/foundry/common/abstract/type-data.d.mts +62 -54
  453. package/src/foundry/common/config.d.mts +5 -3
  454. package/src/foundry/common/constants.d.mts +261 -231
  455. package/src/foundry/common/data/data.d.mts +200 -94
  456. package/src/foundry/common/data/fields.d.mts +746 -585
  457. package/src/foundry/common/data/module.d.mts +2 -2
  458. package/src/foundry/common/data/validation-failure.d.mts +12 -9
  459. package/src/foundry/common/documents/_module.d.mts +4 -2
  460. package/src/foundry/common/documents/_types.d.mts +22 -50
  461. package/src/foundry/common/documents/active-effect.d.mts +280 -177
  462. package/src/foundry/common/documents/actor-delta.d.mts +318 -69
  463. package/src/foundry/common/documents/actor.d.mts +305 -117
  464. package/src/foundry/common/documents/adventure.d.mts +266 -141
  465. package/src/foundry/common/documents/ambient-light.d.mts +268 -75
  466. package/src/foundry/common/documents/ambient-sound.d.mts +268 -109
  467. package/src/foundry/common/documents/card.d.mts +267 -174
  468. package/src/foundry/common/documents/cards.d.mts +299 -126
  469. package/src/foundry/common/documents/chat-message.d.mts +276 -158
  470. package/src/foundry/common/documents/combat.d.mts +300 -89
  471. package/src/foundry/common/documents/combatant.d.mts +275 -88
  472. package/src/foundry/common/documents/drawing.d.mts +286 -206
  473. package/src/foundry/common/documents/fog-exploration.d.mts +258 -70
  474. package/src/foundry/common/documents/folder.d.mts +252 -81
  475. package/src/foundry/common/documents/item.d.mts +305 -99
  476. package/src/foundry/common/documents/journal-entry-page.d.mts +279 -189
  477. package/src/foundry/common/documents/journal-entry.d.mts +294 -68
  478. package/src/foundry/common/documents/macro.d.mts +254 -132
  479. package/src/foundry/common/documents/measured-template.d.mts +293 -139
  480. package/src/foundry/common/documents/note.d.mts +274 -149
  481. package/src/foundry/common/documents/playlist-sound.d.mts +260 -94
  482. package/src/foundry/common/documents/playlist.d.mts +279 -120
  483. package/src/foundry/common/documents/region-behavior.d.mts +329 -0
  484. package/src/foundry/common/documents/region.d.mts +327 -0
  485. package/src/foundry/common/documents/roll-table.d.mts +286 -102
  486. package/src/foundry/common/documents/scene.d.mts +276 -336
  487. package/src/foundry/common/documents/setting.d.mts +229 -54
  488. package/src/foundry/common/documents/table-result.d.mts +267 -96
  489. package/src/foundry/common/documents/tile.d.mts +301 -170
  490. package/src/foundry/common/documents/token.d.mts +351 -445
  491. package/src/foundry/common/documents/user.d.mts +256 -144
  492. package/src/foundry/common/documents/wall.d.mts +273 -161
  493. package/src/foundry/common/grid/_module.d.mts +3 -3
  494. package/src/foundry/common/grid/base.d.mts +66 -49
  495. package/src/foundry/common/grid/gridless.d.mts +2 -2
  496. package/src/foundry/common/grid/hexagonal.d.mts +40 -29
  497. package/src/foundry/common/grid/square.d.mts +3 -3
  498. package/src/foundry/common/packages/base-module.d.mts +6 -24
  499. package/src/foundry/common/packages/base-package.d.mts +23 -21
  500. package/src/foundry/common/packages/base-system.d.mts +6 -63
  501. package/src/foundry/common/packages/base-world.d.mts +8 -61
  502. package/src/foundry/common/packages/module.d.mts +7 -7
  503. package/src/foundry/common/packages/sub-types.d.mts +2 -2
  504. package/src/foundry/common/primitives/array.d.mts +4 -4
  505. package/src/foundry/common/primitives/math.d.mts +7 -1
  506. package/src/foundry/common/primitives/number.d.mts +2 -2
  507. package/src/foundry/common/primitives/set.d.mts +17 -14
  508. package/src/foundry/common/primitives/string.d.mts +1 -1
  509. package/src/foundry/common/prosemirror/_module.d.mts +15 -15
  510. package/src/foundry/common/prosemirror/dirty-plugin.d.mts +1 -1
  511. package/src/foundry/common/prosemirror/dom-parser.d.mts +2 -1
  512. package/src/foundry/common/prosemirror/dropdown.d.mts +1 -1
  513. package/src/foundry/common/prosemirror/highlight-matches-plugin.d.mts +2 -2
  514. package/src/foundry/common/prosemirror/image-plugin.d.mts +1 -1
  515. package/src/foundry/common/prosemirror/menu.d.mts +3 -3
  516. package/src/foundry/common/prosemirror/paste-transformer.d.mts +1 -1
  517. package/src/foundry/common/prosemirror/plugin.d.mts +2 -2
  518. package/src/foundry/common/prosemirror/schema/index.d.mts +0 -1
  519. package/src/foundry/common/prosemirror/schema/lists.d.mts +2 -0
  520. package/src/foundry/common/prosemirror/util.d.mts +1 -1
  521. package/src/foundry/common/types.d.mts +3 -3
  522. package/src/foundry/common/utils/bitmask.d.mts +23 -11
  523. package/src/foundry/common/utils/collection.d.mts +61 -38
  524. package/src/foundry/common/utils/color.d.mts +20 -2
  525. package/src/foundry/common/utils/event-emitter.d.mts +32 -17
  526. package/src/foundry/common/utils/geometry.d.mts +12 -2
  527. package/src/foundry/common/utils/helpers.d.mts +36 -26
  528. package/src/foundry/common/utils/http.d.mts +2 -2
  529. package/src/foundry/common/utils/module.d.mts +2 -2
  530. package/src/foundry/common/utils/string-tree.d.mts +45 -39
  531. package/src/foundry/common/utils/word-tree.d.mts +10 -23
  532. package/src/foundry/index.d.mts +0 -1
  533. package/src/foundry/{clipper → public/scripts/clipper}/clipper.d.mts +52 -43
  534. package/src/foundry/public/scripts/index.d.mts +1 -0
  535. package/src/foundry/public/scripts/workers/image-compressor.d.mts +23 -0
  536. package/src/foundry/public/scripts/workers/index.d.mts +1 -0
  537. package/{index-lenient.d.mts → src/index-lenient.d.mts} +2 -0
  538. package/src/index.d.mts +6 -0
  539. package/src/tsconfig.json +15 -0
  540. package/src/types/augments/particles.d.mts +29 -0
  541. package/src/types/augments/pixi.d.mts +1024 -21
  542. package/src/types/augments/smooth.d.mts +31 -0
  543. package/src/types/augments/tinyMCE.d.mts +1 -1
  544. package/src/types/config.d.mts +20 -311
  545. package/src/types/documentConfiguration.d.mts +286 -542
  546. package/src/types/index.d.mts +1 -1
  547. package/src/types/lib.d.mts +12 -0
  548. package/src/types/workers/image-compressor.d.mts +176 -0
  549. package/src/utils/index.d.mts +1279 -0
  550. package/tsconfig.json +29 -0
  551. package/tsconfig.main.json +8 -0
  552. package/tsconfig.miscellaneous.json +16 -0
  553. package/index.d.mts +0 -5
  554. package/src/foundry/client/apps/placeables/light-config.d.mts +0 -100
  555. package/src/foundry/client/apps/placeables/sound-config.d.mts +0 -43
  556. package/src/foundry/common/documents/module.d.mts +0 -35
  557. package/src/foundry/common/primitives/regex.d.mts +0 -12
  558. package/src/types/helperTypes.d.mts +0 -389
  559. package/src/types/utils.d.mts +0 -520
  560. /package/src/foundry/{clipper → public/scripts/clipper}/index.d.mts +0 -0
@@ -1,6 +1,14 @@
1
+ import type { Brand, Identity } from "fvtt-types/utils";
1
2
  import * as _PIXI from "pixi.js";
2
- import * as pixiParticles from "@pixi/particle-emitter";
3
- import * as graphicsSmooth from "@pixi/graphics-smooth";
3
+
4
+ // Note(LukeAbby): The `smooth.d.mts` and `smooth.d.mts` files exist to make it DRY to selectively tweak PIXI sub-namespaces.
5
+ // Each of them write `export * from "..."` and then selectively shadow or augment the exports.
6
+
7
+ // eslint-disable-next-line import-x/extensions
8
+ import * as _smooth from "./smooth.mjs";
9
+
10
+ // eslint-disable-next-line import-x/extensions
11
+ import * as _particles from "./particles.mjs";
4
12
 
5
13
  export * from "pixi.js";
6
14
 
@@ -11,89 +19,1084 @@ export as namespace PIXI;
11
19
 
12
20
  declare global {
13
21
  namespace PIXI {
14
- export import smooth = graphicsSmooth;
15
- export import particles = pixiParticles;
22
+ type ALPHA_MODES = Brand<number, "PIXI.ALPHA_MODES">;
23
+
24
+ /** How to treat textures with premultiplied alpha */
25
+ const ALPHA_MODES: {
26
+ /** Alias for NO_PREMULTIPLIED_ALPHA. */
27
+ NPM: 0 & ALPHA_MODES;
28
+
29
+ /** Default option, alias for PREMULTIPLY_ON_UPLOAD. */
30
+ UNPACK: 1 & ALPHA_MODES;
31
+
32
+ /** Alias for PREMULTIPLIED_ALPHA. */
33
+ PMA: 2 & ALPHA_MODES;
34
+
35
+ /**
36
+ * Source is not premultiplied, leave it like that.
37
+ * Option for compressed and data textures that are created from typed arrays.
38
+ */
39
+ NO_PREMULTIPLIED_ALPHA: 0 & ALPHA_MODES;
40
+
41
+ /**
42
+ * Source is not premultiplied, premultiply on upload.
43
+ * Default option, used for all loaded images.
44
+ */
45
+ PREMULTIPLY_ON_UPLOAD: 1 & ALPHA_MODES;
46
+
47
+ /** Source is already premultiplied. Example: spine atlases with `_pma` suffix. */
48
+ PREMULTIPLIED_ALPHA: 2 & ALPHA_MODES;
49
+ };
50
+
51
+ type BLEND_MODES = Brand<number, "PIXI.BLEND_MODES">;
52
+
53
+ /**
54
+ * Various blend modes supported by PIXI.
55
+ *
56
+ * IMPORTANT - The WebGL renderer only supports the NORMAL, ADD, MULTIPLY and SCREEN blend modes.
57
+ * Anything else will silently act like NORMAL.
58
+ * @remarks Includes Foundry's extra keys `MAX_COLOR`, `MIN_COLOR`, and `MIN_ALL`
59
+ */
60
+ const BLEND_MODES: {
61
+ NORMAL: 0 & BLEND_MODES;
62
+ ADD: 1 & BLEND_MODES;
63
+
64
+ /**
65
+ * The pixels of the top layer are multiplied with the corresponding pixel of the bottom layer.
66
+ * A darker picture is the result.
67
+ */
68
+ MULTIPLY: 2 & BLEND_MODES;
69
+
70
+ /** The pixels are inverted, multiplied, and inverted again. A lighter picture is the result (opposite of multiply) */
71
+ SCREEN: 3 & BLEND_MODES;
72
+
73
+ /**
74
+ * A combination of multiply and screen. Dark parts on the base layer become darker, and light parts become lighter.
75
+ *
76
+ * Canvas Renderer only.
77
+ */
78
+ OVERLAY: 4 & BLEND_MODES;
79
+
80
+ /**
81
+ * Retains the darkest pixels of both layers.
82
+ *
83
+ * Canvas Renderer only.
84
+ */
85
+ DARKEN: 5 & BLEND_MODES;
86
+
87
+ /**
88
+ * Retains the lightest pixels of both layers.
89
+ *
90
+ * Canvas Renderer only.
91
+ */
92
+ LIGHTEN: 6 & BLEND_MODES;
93
+
94
+ /**
95
+ * Divides the bottom layer by the inverted top layer.
96
+ *
97
+ * Canvas Renderer only.
98
+ */
99
+ COLOR_DODGE: 7 & BLEND_MODES;
100
+
101
+ /**
102
+ * Divides the inverted bottom layer by the top layer, and then inverts the result.
103
+ *
104
+ * Canvas Renderer only.
105
+ */
106
+ COLOR_BURN: 8 & BLEND_MODES;
107
+
108
+ /**
109
+ * A combination of multiply and screen like overlay, but with top and bottom layer swapped.
110
+ *
111
+ * Canvas Renderer only.
112
+ */
113
+ HARD_LIGHT: 9 & BLEND_MODES;
114
+
115
+ /**
116
+ * A softer version of hard-light. Pure black or white does not result in pure black or white.
117
+ *
118
+ * Canvas Renderer only.
119
+ */
120
+ SOFT_LIGHT: 10 & BLEND_MODES;
121
+
122
+ /**
123
+ * Subtracts the bottom layer from the top layer or the other way round to always get a positive value.
124
+ *
125
+ * Canvas Renderer only.
126
+ */
127
+ DIFFERENCE: 11 & BLEND_MODES;
128
+
129
+ /**
130
+ * Like difference, but with lower contrast.
131
+ *
132
+ * Canvas Renderer only.
133
+ */
134
+ EXCLUSION: 12 & BLEND_MODES;
135
+
136
+ /**
137
+ * Preserves the luma and chroma of the bottom layer, while adopting the hue of the top layer.
138
+ *
139
+ * Canvas Renderer only.
140
+ */
141
+ HUE: 13 & BLEND_MODES;
142
+
143
+ /**
144
+ * Preserves the luma and hue of the bottom layer, while adopting the chroma of the top layer.
145
+ *
146
+ * Canvas Renderer only.
147
+ */
148
+ SATURATION: 14 & BLEND_MODES;
149
+
150
+ /**
151
+ * Preserves the luma of the bottom layer, while adopting the hue and chroma of the top layer.
152
+ *
153
+ * Canvas Renderer only.
154
+ */
155
+ COLOR: 15 & BLEND_MODES;
156
+
157
+ /**
158
+ * Preserves the hue and chroma of the bottom layer, while adopting the luma of the top layer.
159
+ *
160
+ * Canvas Renderer only.
161
+ */
162
+ LUMINOSITY: 16 & BLEND_MODES;
163
+
164
+ NORMAL_NPM: 17 & BLEND_MODES;
165
+ ADD_NPM: 18 & BLEND_MODES;
166
+ SCREEN_NPM: 19 & BLEND_MODES;
167
+ NONE: 20 & BLEND_MODES;
168
+
169
+ /** Draws new shapes on top of the existing canvas content. */
170
+ SRC_OVER: 0 & BLEND_MODES;
171
+
172
+ /**
173
+ * The new shape is drawn only where both the new shape and the destination canvas overlap.
174
+ * Everything else is made transparent.
175
+ */
176
+ SRC_IN: 21 & BLEND_MODES;
177
+
178
+ /** The new shape is drawn where it doesn't overlap the existing canvas content. */
179
+ SRC_OUT: 22 & BLEND_MODES;
180
+
181
+ /** The new shape is only drawn where it overlaps the existing canvas content. */
182
+ SRC_ATOP: 23 & BLEND_MODES;
183
+
184
+ /** New shapes are drawn behind the existing canvas content. */
185
+ DST_OVER: 24 & BLEND_MODES;
186
+
187
+ /**
188
+ * The existing canvas content is kept where both the new shape and existing canvas content overlap.
189
+ * Everything else is made transparent.
190
+ */
191
+ DST_IN: 25 & BLEND_MODES;
192
+
193
+ /** The existing content is kept where it doesn't overlap the new shape. */
194
+ DST_OUT: 26 & BLEND_MODES;
195
+
196
+ /** The existing canvas is only kept where it overlaps the new shape. The new shape is drawn behind the canvas content. */
197
+ DST_ATOP: 27 & BLEND_MODES;
198
+
199
+ ERASE: 26 & BLEND_MODES;
200
+ SUBTRACT: 28 & BLEND_MODES;
201
+
202
+ /** Shapes are made transparent where both overlap and drawn normal everywhere else. */
203
+ XOR: 29 & BLEND_MODES;
204
+
205
+ /**
206
+ * A custom blend mode equation which chooses the maximum color from each channel within the stack.
207
+ * @remarks Foundry addition
208
+ */
209
+ MAX_COLOR: 30 & BLEND_MODES;
210
+
211
+ /**
212
+ * A custom blend mode equation which chooses the minimum color from each channel within the stack.
213
+ * @remarks Foundry addition
214
+ */
215
+ MIN_COLOR: 31 & BLEND_MODES;
216
+
217
+ /**
218
+ * A custom blend mode equation which chooses the minimum color for color channels and min alpha from alpha channel.
219
+ * @remarks Foundry addition
220
+ */
221
+ MIN_ALL: 32 & BLEND_MODES;
222
+ };
223
+
224
+ type BUFFER_BITS = Brand<number, "PIXI.BUFFER_BITS">;
225
+
226
+ /** Bitwise OR of masks that indicate the buffers to be cleared. */
227
+ const BUFFER_BITS: {
228
+ /**
229
+ * Indicates the buffers currently enabled for color writing.
230
+ * @defaultValue `0x4000`
231
+ */
232
+ COLOR: 16384 & PIXI.BUFFER_BITS;
233
+
234
+ /**
235
+ * Indicates the depth buffer.
236
+ * @defaultValue `0x100`
237
+ */
238
+ DEPTH: 256 & PIXI.BUFFER_BITS;
239
+
240
+ /**
241
+ * Indicates the stencil buffer.
242
+ * @defaultValue `0x400`
243
+ */
244
+ STENCIL: 1024 & PIXI.BUFFER_BITS;
245
+ };
246
+
247
+ type BUFFER_TYPE = Brand<number, "PIXI.BUFFER_TYPE">;
248
+
249
+ /** Constants for various buffer types in Pixi */
250
+ const BUFFER_TYPE: {
251
+ /**
252
+ * buffer type for using as an index buffer
253
+ * @defaultValue `0x8893`
254
+ */
255
+ ELEMENT_ARRAY_BUFFER: 34963 & BUFFER_TYPE;
256
+
257
+ /**
258
+ * buffer type for using attribute data
259
+ * @defaultValue `0x8892`
260
+ */
261
+ ARRAY_BUFFER: 34962 & BUFFER_TYPE;
262
+
263
+ /**
264
+ * the buffer type is for uniform buffer objects
265
+ * @defaultValue `0x8A11`
266
+ */
267
+ UNIFORM_BUFFER: 35345 & BUFFER_TYPE;
268
+ };
269
+
270
+ type CLEAR_MODES = Brand<number, "PIXI.CLEAR_MODES">;
271
+
272
+ /**
273
+ * Configure whether filter textures are cleared after binding.
274
+ *
275
+ * Filter textures need not be cleared if the filter does not use pixel blending. {@link PIXI.CLEAR_MODES.BLIT | `PIXI.CLEAR_MODES.BLIT`} will detect
276
+ * this and skip clearing as an optimization.
277
+ */
278
+ const CLEAR_MODES: {
279
+ /** Alias for BLEND, same as `false` in earlier versions */
280
+ NO: 0 & CLEAR_MODES;
281
+
282
+ /** Alias for CLEAR, same as `true` in earlier versions */
283
+ YES: 1 & CLEAR_MODES;
284
+
285
+ /** Alias for BLIT */
286
+ AUTO: 2 & CLEAR_MODES;
287
+
288
+ /** Do not clear the filter texture. The filter's output will blend on top of the output texture. */
289
+ BLEND: 0 & CLEAR_MODES;
290
+
291
+ /** Always clear the filter texture. */
292
+ CLEAR: 1 & CLEAR_MODES;
293
+
294
+ /** Clear only if {@link PIXI.FilterSystem.forceClear | `PIXI.FilterSystem.forceClear`} is set or if the filter uses pixel blending. */
295
+ BLIT: 2 & CLEAR_MODES;
296
+ };
297
+
298
+ type COLOR_MASK_BITS = Brand<number, "PIXI.COLOR_MASK_BITS">;
299
+
300
+ /** Bitwise OR of masks that indicate the color channels that are rendered to. */
301
+ const COLOR_MASK_BITS: {
302
+ /** Red channel. */
303
+ RED: 1 & COLOR_MASK_BITS;
304
+
305
+ /** Green channel */
306
+ GREEN: 2 & COLOR_MASK_BITS;
307
+
308
+ /** Blue channel. */
309
+ BLUE: 4 & COLOR_MASK_BITS;
310
+
311
+ /** Alpha channel. */
312
+ ALPHA: 8 & COLOR_MASK_BITS;
313
+ };
314
+
315
+ type DRAW_MODES = Brand<number, "PIXI.DRAW_MODES">;
316
+
317
+ /**
318
+ * Various webgl draw modes. These can be used to specify which GL drawMode to use
319
+ * under certain situations and renderers.
320
+ */
321
+ const DRAW_MODES: {
322
+ /** To draw a series of points. */
323
+ POINTS: 0 & DRAW_MODES;
324
+
325
+ /** To draw a series of unconnected line segments (individual lines). */
326
+ LINES: 1 & DRAW_MODES;
327
+
328
+ /** To draw a series of connected line segments. It also joins the first and last vertices to form a loop. */
329
+ LINE_LOOP: 2 & DRAW_MODES;
330
+
331
+ /** To draw a series of connected line segments. */
332
+ LINE_STRIP: 3 & DRAW_MODES;
333
+
334
+ /** To draw a series of separate triangles. */
335
+ TRIANGLES: 4 & DRAW_MODES;
336
+
337
+ /** To draw a series of connected triangles in strip fashion. */
338
+ TRIANGLE_STRIP: 5 & DRAW_MODES;
339
+
340
+ /** To draw a series of connected triangles sharing the first vertex in a fan-like fashion. */
341
+ TRIANGLE_FAN: 6 & DRAW_MODES;
342
+ };
343
+
344
+ type ENV = Brand<number, "PIXI.ENV">;
345
+
346
+ /** Different types of environments for WebGL. */
347
+ const ENV: {
348
+ /**
349
+ * Used for older v1 WebGL devices. PixiJS will aim to ensure compatibility
350
+ * with older / less advanced devices. If you experience unexplained flickering prefer this environment.
351
+ */
352
+ WEBGL_LEGACY: 0 & ENV;
353
+
354
+ /** Version 1 of WebGL */
355
+ WEBGL: 1 & ENV;
356
+
357
+ /** Version 2 of WebGL */
358
+ WEBGL2: 2 & ENV;
359
+ };
360
+
361
+ type ExtensionType = Brand<string, "PIXI.ExtensionType">;
362
+
363
+ /** Collection of valid extension types. */
364
+ const ExtensionType: {
365
+ Renderer: "renderer" & ExtensionType;
366
+
367
+ /** Application plugins */
368
+ Application: "application" & ExtensionType;
369
+
370
+ RendererSystem: "renderer-webgl-system" & ExtensionType;
371
+
372
+ /** Plugins for Renderer */
373
+ RendererPlugin: "renderer-webgl-plugin" & ExtensionType;
374
+
375
+ CanvasRendererSystem: "renderer-canvas-system" & ExtensionType;
376
+
377
+ /** Plugins for CanvasRenderer */
378
+ CanvasRendererPlugin: "renderer-canvas-plugin" & ExtensionType;
379
+
380
+ Asset: "asset" & ExtensionType;
381
+
382
+ /** Parsers for Assets loader. */
383
+ LoadParser: "load-parser" & ExtensionType;
384
+
385
+ /** Parsers for Assets resolvers. */
386
+ ResolveParser: "resolve-parser" & ExtensionType;
387
+
388
+ /** Parsers for Assets cache. */
389
+ CacheParser: "cache-parser" & ExtensionType;
390
+
391
+ DetectionParser: "detection-parser" & ExtensionType;
392
+ };
393
+
394
+ type FORMATS = Brand<number, "PIXI.FORMATS">;
395
+
396
+ /** Various GL texture/resources formats. */
397
+ const FORMATS: {
398
+ /** @defaultValue `0x1908` */
399
+ RGBA: 6408 & FORMATS;
400
+
401
+ /** @defaultValue `0x1907` */
402
+ RGB: 6407 & FORMATS;
403
+
404
+ /** @defaultValue `0x8227` */
405
+ RG: 33319 & FORMATS;
406
+
407
+ /** @defaultValue `0x1903` */
408
+ RED: 6403 & FORMATS;
409
+
410
+ /** @defaultValue `0x8D99` */
411
+ RGBA_INTEGER: 36249 & FORMATS;
412
+
413
+ /** @defaultValue `0x8D98` */
414
+ RGB_INTEGER: 36248 & FORMATS;
415
+
416
+ /** @defaultValue `0x8228` */
417
+ RG_INTEGER: 33320 & FORMATS;
418
+
419
+ /** @defaultValue `0x8D94` */
420
+ RED_INTEGER: 36244 & FORMATS;
421
+
422
+ /** @defaultValue `0x1906` */
423
+ ALPHA: 6406 & FORMATS;
424
+
425
+ /** @defaultValue `0x1909` */
426
+ LUMINANCE: 6409 & FORMATS;
427
+
428
+ /** @defaultValue `0x190A` */
429
+ LUMINANCE_ALPHA: 6410 & FORMATS;
430
+
431
+ /** @defaultValue `0x1902` */
432
+ DEPTH_COMPONENT: 6402 & FORMATS;
433
+
434
+ /** @defaultValue `0x84F9` */
435
+ DEPTH_STENCIL: 34041 & FORMATS;
436
+ };
437
+
438
+ type GC_MODES = Brand<number, "PIXI.GC_MODES">;
439
+
440
+ /**
441
+ * The gc modes that are supported by pixi.
442
+ *
443
+ * The {@link PIXI.TextureGCSystem.defaultMode | `PIXI.TextureGCSystem.defaultMode`} Garbage Collection mode for PixiJS textures is AUTO
444
+ * If set to GC_MODE, the renderer will occasionally check textures usage. If they are not
445
+ * used for a specified period of time they will be removed from the GPU. They will of course
446
+ * be uploaded again when they are required. This is a silent behind the scenes process that
447
+ * should ensure that the GPU does not get filled up.
448
+ *
449
+ * Handy for mobile devices!
450
+ * This property only affects WebGL.
451
+ */
452
+ const GC_MODES: {
453
+ /** Garbage collection will happen periodically automatically */
454
+ AUTO: 0 & GC_MODES;
455
+
456
+ /** Garbage collection will need to be called manually */
457
+ MANUAL: 1 & GC_MODES;
458
+ };
459
+
460
+ type INTERNAL_FORMATS = Brand<number, "PIXI.INTERNAL_FORMATS">;
461
+
462
+ /** WebGL internal formats, including compressed texture formats provided by extensions */
463
+ const INTERNAL_FORMATS: {
464
+ /** @defaultValue `0x83F0` */
465
+ COMPRESSED_RGB_S3TC_DXT1_EXT: 33776 & INTERNAL_FORMATS;
466
+
467
+ /** @defaultValue `0x83F1` */
468
+ COMPRESSED_RGBA_S3TC_DXT1_EXT: 33777 & INTERNAL_FORMATS;
469
+
470
+ /** @defaultValue `0x83F2` */
471
+ COMPRESSED_RGBA_S3TC_DXT3_EXT: 33778 & INTERNAL_FORMATS;
472
+
473
+ /** @defaultValue `0x83F3` */
474
+ COMPRESSED_RGBA_S3TC_DXT5_EXT: 33779 & INTERNAL_FORMATS;
475
+
476
+ /** @defaultValue `0x8C4D` */
477
+ COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: 35917 & INTERNAL_FORMATS;
478
+
479
+ /** @defaultValue `0x8C4E` */
480
+ COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: 35918 & INTERNAL_FORMATS;
481
+
482
+ /** @defaultValue `0x8C4F` */
483
+ COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: 35919 & INTERNAL_FORMATS;
484
+
485
+ /** @defaultValue `0x8C4C` */
486
+ COMPRESSED_SRGB_S3TC_DXT1_EXT: 35916 & INTERNAL_FORMATS;
487
+
488
+ /** @defaultValue `0x9270` */
489
+ COMPRESSED_R11_EAC: 37488 & INTERNAL_FORMATS;
490
+
491
+ /** @defaultValue `0x9271` */
492
+ COMPRESSED_SIGNED_R11_EAC: 37489 & INTERNAL_FORMATS;
493
+
494
+ /** @defaultValue `0x9272` */
495
+ COMPRESSED_RG11_EAC: 37490 & INTERNAL_FORMATS;
496
+
497
+ /** @defaultValue `0x9273` */
498
+ COMPRESSED_SIGNED_RG11_EAC: 37491 & INTERNAL_FORMATS;
499
+
500
+ /** @defaultValue `0x9274` */
501
+ COMPRESSED_RGB8_ETC2: 37492 & INTERNAL_FORMATS;
502
+
503
+ /** @defaultValue `0x9278` */
504
+ COMPRESSED_RGBA8_ETC2_EAC: 37496 & INTERNAL_FORMATS;
505
+
506
+ /** @defaultValue `0x9275` */
507
+ COMPRESSED_SRGB8_ETC2: 37493 & INTERNAL_FORMATS;
508
+
509
+ /** @defaultValue `0x9279` */
510
+ COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: 37497 & INTERNAL_FORMATS;
511
+
512
+ /** @defaultValue `0x9276` */
513
+ COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: 37494 & INTERNAL_FORMATS;
514
+
515
+ /** @defaultValue `0x9277` */
516
+ COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: 37495 & INTERNAL_FORMATS;
517
+
518
+ /** @defaultValue `0x8C00` */
519
+ COMPRESSED_RGB_PVRTC_4BPPV1_IMG: 35840 & INTERNAL_FORMATS;
520
+
521
+ /** @defaultValue `0x8C02` */
522
+ COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: 35842 & INTERNAL_FORMATS;
523
+
524
+ /** @defaultValue `0x8C01` */
525
+ COMPRESSED_RGB_PVRTC_2BPPV1_IMG: 35841 & INTERNAL_FORMATS;
526
+
527
+ /** @defaultValue `0x8C03` */
528
+ COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: 35843 & INTERNAL_FORMATS;
529
+
530
+ /** @defaultValue `0x8D64` */
531
+ COMPRESSED_RGB_ETC1_WEBGL: 36196 & INTERNAL_FORMATS;
532
+
533
+ /** @defaultValue `0x8C92` */
534
+ COMPRESSED_RGB_ATC_WEBGL: 35986 & INTERNAL_FORMATS;
535
+
536
+ /** @defaultValue `0x8C93` */
537
+ COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL: 35987 & INTERNAL_FORMATS;
538
+
539
+ /** @defaultValue `0x87EE` */
540
+ COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL: 34798 & INTERNAL_FORMATS;
541
+
542
+ /** @defaultValue `0x93B0` */
543
+ COMPRESSED_RGBA_ASTC_4x4_KHR: 37808 & INTERNAL_FORMATS;
544
+
545
+ /** @defaultValue `0x8E8C` */
546
+ COMPRESSED_RGBA_BPTC_UNORM_EXT: 36492 & INTERNAL_FORMATS;
547
+
548
+ /** @defaultValue `0x8E8D` */
549
+ COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 36493 & INTERNAL_FORMATS;
550
+
551
+ /** @defaultValue `0x8E8E` */
552
+ COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 36494 & INTERNAL_FORMATS;
553
+
554
+ /** @defaultValue `0x8E8F` */
555
+ COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 36495 & INTERNAL_FORMATS;
556
+ };
557
+
558
+ type LINE_CAP = Brand<string, "PIXI.LINE_CAP">;
559
+
560
+ /** Support line caps in `PIXI.LineStyle` for graphics. */
561
+ const LINE_CAP: {
562
+ /** 'butt': don't add any cap at line ends (leaves orthogonal edges) */
563
+ BUTT: "butt" & LINE_CAP;
564
+
565
+ /** 'round': add semicircle at ends */
566
+ ROUND: "round" & LINE_CAP;
567
+
568
+ /** 'square': add square at end (like `BUTT` except more length at end) */
569
+ SQUARE: "square" & LINE_CAP;
570
+ };
571
+
572
+ type LINE_JOIN = Brand<string, "PIXI.LINE_JOIN">;
573
+
574
+ /**
575
+ * Supported line joints in `PIXI.LineStyle` for graphics.
576
+ * @see {@link PIXI.Graphics.lineStyle | `PIXI.Graphics#lineStyle`}
577
+ * @see {@link https://graphicdesign.stackexchange.com/questions/59018/what-is-a-bevel-join-of-two-lines-exactly-illustrator}
578
+ */
579
+ const LINE_JOIN: {
580
+ /** 'miter': make a sharp corner where outer part of lines meet */
581
+ MITER: "miter" & LINE_JOIN;
582
+
583
+ /** 'bevel': add a square butt at each end of line segment and fill the triangle at turn */
584
+ BEVEL: "bevel" & LINE_JOIN;
585
+
586
+ /** 'round': add an arc at the joint */
587
+ ROUND: "round" & LINE_JOIN;
588
+ };
589
+
590
+ type LoaderParserPriority = Brand<number, "PIXI.LoaderParserPriority">;
591
+
592
+ /**
593
+ * The extension priority for loader parsers.
594
+ * Helpful when managing multiple parsers that share the same extension test.
595
+ * The higher priority parsers will be checked first.
596
+ */
597
+ const LoaderParserPriority: {
598
+ /** Generic parsers: txt, json, webfonts */
599
+ Low: 0 & LoaderParserPriority;
600
+
601
+ /** PixiJS assets with generic extensions: spritesheets, bitmapfonts */
602
+ Normal: 1 & LoaderParserPriority;
603
+
604
+ /** Specific texture types: svg, png, ktx, dds, basis */
605
+ High: 2 & LoaderParserPriority;
606
+ };
607
+
608
+ type MASK_TYPES = Brand<number, "PIXI.MASK_TYPES">;
609
+
610
+ /**
611
+ * Constants for mask implementations.
612
+ * We use `type` suffix because it leads to very different behaviours
613
+ */
614
+ const MASK_TYPES: {
615
+ /** Mask is ignored */
616
+ NONE: 0 & MASK_TYPES;
617
+
618
+ /** Scissor mask, rectangle on screen, cheap */
619
+ SCISSOR: 1 & MASK_TYPES;
620
+
621
+ /** Stencil mask, 1-bit, medium, works only if renderer supports stencil */
622
+ STENCIL: 2 & MASK_TYPES;
623
+
624
+ /** Mask that uses SpriteMaskFilter, uses temporary RenderTexture */
625
+ SPRITE: 3 & MASK_TYPES;
626
+
627
+ /** Color mask (RGBA) */
628
+ COLOR: 4 & MASK_TYPES;
629
+ };
630
+
631
+ type MIPMAP_MODES = Brand<number, "PIXI.MIPMAP_MODES">;
632
+
633
+ /**
634
+ * Mipmap filtering modes that are supported by pixi.
635
+ *
636
+ * The {@link PIXI.BaseTexture.defaultOptions.mipmap | `PIXI.BaseTexture.defaultOptions.mipmap`} affects default texture filtering.
637
+ * Mipmaps are generated for a baseTexture if its `mipmap` field is `ON`,
638
+ * or its `POW2` and texture dimensions are powers of 2.
639
+ * Since WebGL 1 don't support mipmap for non-power-of-two textures,
640
+ * `ON` option will work like `POW2` for WebGL 1.
641
+ *
642
+ * This property only affects WebGL.
643
+ */
644
+ const MIPMAP_MODES: {
645
+ /** No mipmaps. */
646
+ OFF: 0 & MIPMAP_MODES;
647
+
648
+ /** Generate mipmaps if texture dimensions are powers of 2. */
649
+ POW2: 1 & MIPMAP_MODES;
650
+
651
+ /** Always generate mipmaps. */
652
+ ON: 2 & MIPMAP_MODES;
653
+
654
+ /**
655
+ * Use mipmaps, but do not auto-generate them.
656
+ * this is used with a resource that supports buffering each level-of-detail.
657
+ */
658
+ ON_MANUAL: 3 & MIPMAP_MODES;
659
+ };
660
+
661
+ type MSAA_QUALITY = Brand<number, "PIXI.MSAA_QUALITY">;
662
+
663
+ /** Constants for multi-sampling antialiasing. */
664
+ const MSAA_QUALITY: {
665
+ /** No multisampling for this renderTexture */
666
+ NONE: 0 & MSAA_QUALITY;
667
+
668
+ /** Try 2 samples */
669
+ LOW: 2 & MSAA_QUALITY;
670
+
671
+ /** Try 4 samples */
672
+ MEDIUM: 4 & MSAA_QUALITY;
673
+
674
+ /** Try 8 samples */
675
+ HIGH: 8 & MSAA_QUALITY;
676
+ };
677
+
678
+ type PRECISION = Brand<string, "PIXI.PRECISION">;
679
+
680
+ /** Constants that specify float precision in shaders. */
681
+ const PRECISION: {
682
+ /**
683
+ * lowp is at least an 9 bit value.
684
+ * For floating point values they can range from: -2 to +2,
685
+ * for integer values they are similar to Uint8Array or Int8Array
686
+ */
687
+ LOW: "lowp" & PRECISION;
688
+
689
+ /**
690
+ * mediump is at least a 16 bit value.
691
+ * For floating point values they can range from: -2^14 to +2^14,
692
+ * for integer values they are similar to Uint16Array or Int16Array
693
+ */
694
+ MEDIUM: "mediump" & PRECISION;
695
+
696
+ /**
697
+ * highp is at least a 32 bit value.
698
+ * For floating point values they can range from: -2^62 to +2^62,
699
+ * for integer values they are similar to Uint32Array or Int32Array
700
+ */
701
+ HIGH: "highp" & PRECISION;
702
+ };
703
+
704
+ type RENDERER_TYPE = Brand<number, "PIXI.RENDERER_TYPE">;
705
+
706
+ /**
707
+ * Constant to identify the Renderer Type.
708
+ */
709
+ const RENDERER_TYPE: {
710
+ /** Unknown render type. */
711
+ UNKNOWN: 0 & RENDERER_TYPE;
712
+
713
+ /** WebGL render type. */
714
+ WEBGL: 1 & RENDERER_TYPE;
715
+
716
+ /** Canvas render type. */
717
+ CANVAS: 2 & RENDERER_TYPE;
718
+ };
719
+
720
+ type SAMPLER_TYPES = Brand<number, "PIXI.SAMPLER_TYPES">;
721
+
722
+ /**
723
+ * Various sampler types. Correspond to `sampler`, `isampler`, `usampler` GLSL types respectively.
724
+ * WebGL1 works only with FLOAT.
725
+ */
726
+ const SAMPLER_TYPES: {
727
+ FLOAT: 0 & SAMPLER_TYPES;
728
+
729
+ INT: 1 & SAMPLER_TYPES;
730
+
731
+ UINT: 2 & SAMPLER_TYPES;
732
+ };
733
+
734
+ type SCALE_MODES = Brand<number, "PIXI.SCALE_MODES">;
735
+
736
+ /**
737
+ * The scale modes that are supported by pixi.
738
+ *
739
+ * The {@link PIXI.BaseTexture.defaultOptions.scaleMode | `PIXI.BaseTexture.defaultOptions.scaleMode`} scale mode affects the default scaling mode of future operations.
740
+ * It can be re-assigned to either LINEAR or NEAREST, depending upon suitability.
741
+ */
742
+ const SCALE_MODES: {
743
+ /** Pixelating scaling */
744
+ NEAREST: 0 & SCALE_MODES;
745
+
746
+ /** Smooth scaling */
747
+ LINEAR: 1 & SCALE_MODES;
748
+ };
749
+
750
+ type SHAPES = Brand<number, "PIXI.SHAPES">;
751
+
752
+ /** Constants that identify shapes, mainly to prevent `instanceof` calls. */
753
+ const SHAPES: {
754
+ POLY: 0 & SHAPES;
755
+ RECT: 1 & SHAPES;
756
+ CIRC: 2 & SHAPES;
757
+ ELIP: 3 & SHAPES;
758
+ RREC: 4 & SHAPES;
759
+ };
760
+
761
+ type TARGETS = Brand<number, "PIXI.TARGETS">;
762
+
763
+ /** Various GL target types. */
764
+ const TARGETS: {
765
+ /**
766
+ * A two-dimensional texture
767
+ * @defaultValue `0xDE1`
768
+ */
769
+ TEXTURE_2D: 3553 & TARGETS;
770
+
771
+ /**
772
+ * A cube-mapped texture. When using a WebGL 2 context, the following values are available additionally:
773
+ * - gl.TEXTURE_3D: A three-dimensional texture.
774
+ * - gl.TEXTURE_2D_ARRAY: A two-dimensional array texture.
775
+ * @defaultValue `0x8513`
776
+ */
777
+ TEXTURE_CUBE_MAP: 34067 & TARGETS;
778
+
779
+ /**
780
+ * A two-dimensional array texture.
781
+ * @defaultValue `0x8C1A`
782
+ */
783
+ TEXTURE_2D_ARRAY: 35866 & TARGETS;
784
+
785
+ /**
786
+ * Positive X face for a cube-mapped texture.
787
+ * @defaultValue `0x8515`
788
+ */
789
+ TEXTURE_CUBE_MAP_POSITIVE_X: 34069 & TARGETS;
790
+
791
+ /**
792
+ * Negative X face for a cube-mapped texture.
793
+ * @defaultValue `0x8516`
794
+ */
795
+ TEXTURE_CUBE_MAP_NEGATIVE_X: 34070 & TARGETS;
796
+
797
+ /**
798
+ * Positive Y face for a cube-mapped texture.
799
+ * @defaultValue `0x8517`
800
+ */
801
+ TEXTURE_CUBE_MAP_POSITIVE_Y: 34071 & TARGETS;
802
+
803
+ /**
804
+ * Negative Y face for a cube-mapped texture.
805
+ * @defaultValue `0x8518`
806
+ */
807
+ TEXTURE_CUBE_MAP_NEGATIVE_Y: 34072 & TARGETS;
808
+
809
+ /**
810
+ * Positive Z face for a cube-mapped texture.
811
+ * @defaultValue `0x9519`
812
+ */
813
+ TEXTURE_CUBE_MAP_POSITIVE_Z: 34073 & TARGETS;
814
+
815
+ /**
816
+ * Negative Z face for a cube-mapped texture.
817
+ * @defaultValue `0x851A`
818
+ */
819
+ TEXTURE_CUBE_MAP_NEGATIVE_Z: 34074 & TARGETS;
820
+ };
821
+
822
+ type TEXT_GRADIENT = Brand<number, "PIXI.TEXT_GRADIENT">;
823
+
824
+ /** Constants that define the type of gradient on text. */
825
+ const TEXT_GRADIENT: {
826
+ /** Vertical gradient */
827
+ LINEAR_VERTICAL: 0 & TEXT_GRADIENT;
828
+
829
+ /**
830
+ * Linear gradient
831
+ * @privateRemarks [sic]
832
+ */
833
+ LINEAR_HORIZONTAL: 1 & TEXT_GRADIENT;
834
+ };
835
+
836
+ type TYPES = Brand<number, "PIXI.TYPES">;
837
+
838
+ /** Various GL data format types. */
839
+ const TYPES: {
840
+ /**
841
+ * 8 bits per channel for gl.RGBA
842
+ * @defaultValue `0x1401`
843
+ */
844
+ UNSIGNED_BYTE: 5121 & TYPES;
845
+
846
+ /** @defaultValue `0x1403` */
847
+ UNSIGNED_SHORT: 5123 & TYPES;
848
+
849
+ /**
850
+ * 5 red bits, 6 green bits, 5 blue bits.
851
+ * @defaultValue `0x8363`
852
+ */
853
+ UNSIGNED_SHORT_5_6_5: 33635 & TYPES;
854
+
855
+ /**
856
+ * 4 red bits, 4 green bits, 4 blue bits, 4 alpha bits.
857
+ * @defaultValue `0x8033`
858
+ */
859
+ UNSIGNED_SHORT_4_4_4_4: 32819 & TYPES;
860
+
861
+ /**
862
+ * 5 red bits, 5 green bits, 5 blue bits, 1 alpha bit.
863
+ * @defaultValue `0x8034`
864
+ */
865
+ UNSIGNED_SHORT_5_5_5_1: 32820 & TYPES;
866
+
867
+ /** @defaultValue `0x1405` */
868
+ UNSIGNED_INT: 5125 & TYPES;
869
+
870
+ /** @defaultValue `0x8C3B` */
871
+ UNSIGNED_INT_10F_11F_11F_REV: 35899 & TYPES;
872
+
873
+ /** @defaultValue `0x8368` */
874
+ UNSIGNED_INT_2_10_10_10_REV: 33640 & TYPES;
875
+
876
+ /** @defaultValue `0x84FA` */
877
+ UNSIGNED_INT_24_8: 34042 & TYPES;
878
+
879
+ /** @defaultValue `0x8C3E` */
880
+ UNSIGNED_INT_5_9_9_9_REV: 35902 & TYPES;
881
+
882
+ /** @defaultValue `0x1400` */
883
+ BYTE: 5120 & TYPES;
884
+
885
+ /** @defaultValue `0x1402` */
886
+ SHORT: 5122 & TYPES;
887
+
888
+ /** @defaultValue `0x1404` */
889
+ INT: 5124 & TYPES;
890
+
891
+ /** @defaultValue `0x1406` */
892
+ FLOAT: 5126 & TYPES;
893
+
894
+ /** @defaultValue `0x8DAD` */
895
+ FLOAT_32_UNSIGNED_INT_24_8_REV: 36269 & TYPES;
896
+
897
+ /** @defaultValue `0x8D61` */
898
+ HALF_FLOAT: 36193 & TYPES;
899
+ };
900
+
901
+ type UPDATE_PRIORITY = Brand<number, "PIXI.UPDATE_PRIORITY">;
902
+
903
+ /**
904
+ * Represents the update priorities used by internal PIXI classes when registered with
905
+ * the {@link PIXI.Ticker | `PIXI.Ticker`} object. Higher priority items are updated first and lower
906
+ * priority items, such as render, should go later.
907
+ * @remarks Includes Foundry's additions of `OBJECTS`, `PRIMARY`, and `PERCEPTION`
908
+ */
909
+ const UPDATE_PRIORITY: {
910
+ /** Highest priority used for interaction events in {@link PIXI.EventSystem | `PIXI.EventSystem`} */
911
+ INTERACTION: 50 & UPDATE_PRIORITY;
912
+
913
+ /** High priority updating, used by {@link PIXI.AnimatedSprite | `PIXI.AnimatedSprite`} */
914
+ HIGH: 25 & UPDATE_PRIORITY;
915
+
916
+ /** Default priority for ticker events, see {@link PIXI.Ticker.add | `PIXI.Ticker#add`}. */
917
+ NORMAL: 0 & UPDATE_PRIORITY;
918
+
919
+ /** Low priority used for {@link PIXI.Application | `PIXI.Application`} rendering. */
920
+ LOW: 25 & UPDATE_PRIORITY;
921
+
922
+ /** Lowest priority used for {@link PIXI.BasePrepare | `PIXI.BasePrepare`} utility. */
923
+ UTILITY: 50 & UPDATE_PRIORITY;
924
+
925
+ /** @remarks Foundry addition, defined as `HIGH - 2` */
926
+ OBJECTS: 23 & UPDATE_PRIORITY;
927
+
928
+ /** @remarks Foundry addition, defined as `NORMAL + 3` */
929
+ PRIMARY: 3 & UPDATE_PRIORITY;
930
+
931
+ /** @remarks Foundry addition, defined as `NORMAL + 2` */
932
+ PERCEPTION: 2 & UPDATE_PRIORITY;
933
+ };
934
+
935
+ type WRAP_MODES = Brand<number, "PIXI.WRAP_MODES">;
936
+
937
+ /**
938
+ * The wrap modes that are supported by pixi.
939
+ *
940
+ * The wrap mode affects the default wrapping mode of future operations.
941
+ * It can be re-assigned to either CLAMP or REPEAT, depending upon suitability.
942
+ * If the texture is non power of two then clamp will be used regardless as WebGL can
943
+ * only use REPEAT if the texture is po2.
944
+ *
945
+ * This property only affects WebGL.
946
+ */
947
+ const WRAP_MODES: {
948
+ /**
949
+ * The textures uvs are clamped
950
+ * @defaultValue `0x812F`
951
+ */
952
+ CLAMP: 33071 & WRAP_MODES;
953
+
954
+ /**
955
+ * The texture uvs tile and repeat
956
+ * @defaultValue `0x2901`
957
+ */
958
+ REPEAT: 10497 & WRAP_MODES;
959
+
960
+ /**
961
+ * The texture uvs tile and repeat with mirroring
962
+ * @defaultValue `0x8370`
963
+ */
964
+ MIRRORED_REPEAT: 33648 & WRAP_MODES;
965
+ };
966
+
967
+ export import smooth = _smooth;
968
+ export import particles = _particles;
16
969
 
17
970
  export class Graphics extends PIXI.smooth.SmoothGraphics {}
18
971
 
19
972
  export import BatchGeometry = _PIXI.BatchGeometry;
20
973
 
21
974
  namespace BatchGeometry {
22
- type AnyConstructor = typeof AnyPIXIBatchGeometry;
975
+ interface Any extends AnyPIXIBatchGeometry {}
976
+ interface AnyConstructor extends Identity<typeof AnyPIXIBatchGeometry> {}
23
977
  }
24
978
 
25
979
  export import BatchRenderer = _PIXI.BatchRenderer;
26
980
 
27
981
  namespace BatchRenderer {
28
- type AnyConstructor = typeof AnyPIXIBatchRenderer;
982
+ interface Any extends AnyPIXIBatchRenderer {}
983
+ interface AnyConstructor extends Identity<typeof AnyPIXIBatchRenderer> {}
29
984
  }
30
985
 
31
986
  export import Container = _PIXI.Container;
32
987
 
33
988
  namespace Container {
34
- type AnyConstructor = typeof AnyPIXIContainer;
989
+ interface Any extends AnyPIXIContainer {}
990
+ interface AnyConstructor extends Identity<typeof AnyPIXIContainer> {}
35
991
  }
36
992
 
37
993
  export import DisplayObject = _PIXI.DisplayObject;
38
994
 
39
995
  namespace DisplayObject {
40
- type AnyConstructor = typeof AnyDisplayObject;
41
-
42
- type DestroyOptions = _PIXI.IDestroyOptions | boolean;
996
+ interface Any extends AnyPIXIDisplayObject {}
997
+ interface AnyConstructor extends Identity<typeof AnyPIXIDisplayObject> {}
43
998
  }
44
999
 
45
1000
  export import Filter = _PIXI.Filter;
46
1001
 
47
1002
  namespace Filter {
48
- type AnyConstructor = typeof AnyPIXIFilter;
1003
+ interface Any extends AnyPIXIFilter {}
1004
+ interface AnyConstructor extends Identity<typeof AnyPIXIFilter> {}
49
1005
  }
50
1006
 
51
1007
  export import Shader = _PIXI.Shader;
52
1008
 
53
1009
  namespace Shader {
54
- type AnyConstructor = typeof AnyPIXIShader;
1010
+ interface Any extends AnyPIXIShader {}
1011
+ interface AnyConstructor extends Identity<typeof AnyPIXIShader> {}
55
1012
  }
56
1013
  }
57
1014
  }
58
1015
 
1016
+ declare module "@pixi/events" {
1017
+ interface FederatedPointerEvent {
1018
+ /**
1019
+ * The angle in radians of a pointer or stylus measuring the vertical angle between
1020
+ * the device's surface to the pointer or stylus.
1021
+ * A stylus at 0 degrees would be directly parallel whereas at π/2 degrees it would be perpendicular.
1022
+ * @see {@link https://developer.mozilla.org/docs/Web/API/PointerEvent/altitudeAngle}
1023
+ */
1024
+ altitudeAngle: number;
1025
+
1026
+ /**
1027
+ * The angle in radians of a pointer or stylus measuring an arc from the X axis of the device to
1028
+ * the pointer or stylus projected onto the screen's plane.
1029
+ * A stylus at 0 degrees would be pointing to the "0 o'clock" whereas at π/2 degrees it would be pointing at "6 o'clock".
1030
+ * @see {@link https://developer.mozilla.org/docs/Web/API/PointerEvent/azimuthAngle}
1031
+ */
1032
+ azimuthAngle: number;
1033
+ }
1034
+ }
1035
+
59
1036
  declare module "pixi.js" {
60
1037
  export import LegacyGraphics = _PIXI.Graphics;
61
1038
 
1039
+ export enum BLEND_MODES {
1040
+ /**
1041
+ * A custom blend mode equation which chooses the maximum color from each channel within the stack.
1042
+ * @remarks Foundry addition, value is technically dynamic as it's the last PIXI entry at the time + 1, but effectively static
1043
+ */
1044
+ MAX_COLOR = 30,
1045
+
1046
+ /**
1047
+ * A custom blend mode equation which chooses the minimum color from each channel within the stack.
1048
+ * @remarks Foundry addition, value is technically dynamic as it's the last PIXI entry at the time + 1, but effectively static
1049
+ */
1050
+ MIN_COLOR = 31,
1051
+
1052
+ /**
1053
+ * A custom blend mode equation which chooses the minimum color for color channels and min alpha from alpha channel.
1054
+ * @remarks Foundry addition, value is technically dynamic as it's the last PIXI entry at the time + 1, but effectively static
1055
+ */
1056
+ MIN_ALL = 32,
1057
+ }
1058
+
62
1059
  export enum UPDATE_PRIORITY {
63
1060
  /**
64
1061
  * @remarks Foundry defined custom ticker priority
65
- * Handled in Canvas##activateTicker
1062
+ * Handled in Canvas##activateTicker, defined as `HIGH - 2`
66
1063
  */
67
1064
  OBJECTS = 23,
68
1065
 
69
1066
  /**
70
1067
  * @remarks Foundry defined custom ticker priority
71
- * Handled in Canvas##activateTicker
1068
+ * Handled in Canvas##activateTicker, defined as `NORMAL + 3`
1069
+ */
1070
+ PRIMARY = 3,
1071
+
1072
+ /**
1073
+ * @remarks Foundry defined custom ticker priority
1074
+ * Handled in Canvas##activateTicker, defined as `NORMAL + 2`
72
1075
  */
73
1076
  PERCEPTION = 2,
74
1077
  }
75
1078
  }
76
1079
 
77
1080
  declare abstract class AnyPIXIBatchGeometry extends PIXI.BatchGeometry {
78
- constructor(arg0: never, ...args: never[]);
1081
+ constructor(...args: never);
79
1082
  }
80
1083
 
81
1084
  declare abstract class AnyPIXIBatchRenderer extends PIXI.BatchRenderer {
82
- constructor(arg0: never, ...args: never[]);
1085
+ constructor(...args: never);
83
1086
  }
84
1087
 
85
1088
  declare abstract class AnyPIXIContainer extends PIXI.Container {
86
- constructor(arg0: never, ...args: never[]);
1089
+ constructor(...args: never);
87
1090
  }
88
1091
 
89
- declare abstract class AnyDisplayObject extends PIXI.DisplayObject {
90
- constructor(arg0: never, ...args: never[]);
1092
+ declare abstract class AnyPIXIDisplayObject extends PIXI.DisplayObject {
1093
+ constructor(...args: never);
91
1094
  }
92
1095
 
93
1096
  declare abstract class AnyPIXIFilter extends PIXI.Filter {
94
- constructor(arg0: never, ...args: never[]);
1097
+ constructor(...args: never);
95
1098
  }
96
1099
 
97
1100
  declare abstract class AnyPIXIShader extends PIXI.Shader {
98
- constructor(arg0: never, ...args: never[]);
1101
+ constructor(...args: never);
99
1102
  }