@league-of-foundry-developers/foundry-vtt-types 12.331.1-beta → 12.331.3-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.
- package/README.md +17 -3
- package/package.json +14 -15
- package/src/foundry/client/apps/app.d.mts +8 -1
- package/src/foundry/client/apps/form.d.mts +50 -35
- package/src/foundry/client/apps/forms/combat-config.d.mts +1 -1
- package/src/foundry/client/apps/forms/grid-config.d.mts +1 -5
- package/src/foundry/client/apps/forms/sheet-config.d.mts +2 -1
- package/src/foundry/client/apps/i18n.d.mts +59 -0
- package/src/foundry/client/apps/placeables/note-config.d.mts +3 -3
- package/src/foundry/client/apps/sidebar/apps/client-settings.d.mts +1 -1
- package/src/foundry/client/apps/sidebar/apps/keybindings-config.d.mts +7 -7
- package/src/foundry/client/apps/sidebar/document-directory.d.mts +1 -2
- package/src/foundry/client/apps/templates.d.mts +78 -138
- package/src/foundry/client/av/master.d.mts +2 -2
- package/src/foundry/client/config.d.mts +473 -167
- package/src/foundry/client/core/gamepad.d.mts +15 -1
- package/src/foundry/client/core/image.d.mts +81 -32
- package/src/foundry/client/core/index.d.mts +1 -0
- package/src/foundry/client/core/keybindings.d.mts +128 -27
- package/src/foundry/client/core/keyboard.d.mts +54 -7
- package/src/foundry/client/core/packages.d.mts +18 -2
- package/src/foundry/client/core/settings.d.mts +115 -14
- package/src/foundry/client/core/socket.d.mts +47 -1
- package/src/foundry/client/data/abstract/canvas-document.d.mts +9 -3
- package/src/foundry/client/data/abstract/client-document.d.mts +5 -5
- package/src/foundry/client/data/abstract/directory-collection-mixin.d.mts +1 -1
- package/src/foundry/client/data/abstract/document-collection.d.mts +25 -11
- package/src/foundry/client/data/abstract/world-collection.d.mts +6 -12
- package/src/foundry/client/data/collections/actors.d.mts +9 -1
- package/src/foundry/client/data/collections/compendium-collection.d.mts +49 -61
- package/src/foundry/client/data/collections/compendium-folders.d.mts +16 -2
- package/src/foundry/client/data/collections/compendium-packs.d.mts +1 -1
- package/src/foundry/client/data/collections/folder.d.mts +12 -6
- package/src/foundry/client/data/collections/journal.d.mts +3 -1
- package/src/foundry/client/data/collections/playlists.d.mts +2 -4
- package/src/foundry/client/data/collections/users.d.mts +1 -1
- package/src/foundry/client/data/documents/active-effect.d.mts +12 -0
- package/src/foundry/client/data/documents/actor-delta.d.mts +14 -3
- package/src/foundry/client/data/documents/actor.d.mts +37 -14
- package/src/foundry/client/data/documents/adventure.d.mts +11 -0
- package/src/foundry/client/data/documents/ambient-light.d.mts +11 -0
- package/src/foundry/client/data/documents/ambient-sound.d.mts +12 -1
- package/src/foundry/client/data/documents/card.d.mts +12 -0
- package/src/foundry/client/data/documents/cards.d.mts +17 -3
- package/src/foundry/client/data/documents/chat-message.d.mts +12 -0
- package/src/foundry/client/data/documents/combat.d.mts +18 -5
- package/src/foundry/client/data/documents/combatant.d.mts +25 -1
- package/src/foundry/client/data/documents/drawing.d.mts +11 -0
- package/src/foundry/client/data/documents/fog-exploration.d.mts +11 -0
- package/src/foundry/client/data/documents/folder.d.mts +18 -1
- package/src/foundry/client/data/documents/item.d.mts +12 -0
- package/src/foundry/client/data/documents/journal-entry-page.d.mts +12 -0
- package/src/foundry/client/data/documents/journal-entry.d.mts +11 -1
- package/src/foundry/client/data/documents/macro.d.mts +14 -0
- package/src/foundry/client/data/documents/measured-template.d.mts +11 -0
- package/src/foundry/client/data/documents/note.d.mts +11 -0
- package/src/foundry/client/data/documents/playlist-sound.d.mts +17 -4
- package/src/foundry/client/data/documents/playlist.d.mts +11 -0
- package/src/foundry/client/data/documents/scene.d.mts +45 -10
- package/src/foundry/client/data/documents/setting.d.mts +12 -1
- package/src/foundry/client/data/documents/table-result.d.mts +12 -0
- package/src/foundry/client/data/documents/table.d.mts +11 -0
- package/src/foundry/client/data/documents/tile.d.mts +11 -0
- package/src/foundry/client/data/documents/token.d.mts +17 -7
- package/src/foundry/client/data/documents/user.d.mts +12 -1
- package/src/foundry/client/data/documents/wall.d.mts +12 -1
- package/src/foundry/client/game.d.mts +215 -129
- package/src/foundry/client/head.d.mts +1 -2
- package/src/foundry/client/hooks.d.mts +93 -43
- package/src/foundry/client/index.d.mts +0 -1
- package/src/foundry/client/pixi/board.d.mts +160 -272
- package/src/foundry/client/pixi/core/containers/cached-container.d.mts +7 -5
- package/src/foundry/client/pixi/core/containers/full-canvas-container.d.mts +6 -4
- package/src/foundry/client/pixi/core/containers/quad-mesh.d.mts +1 -1
- package/src/foundry/client/pixi/core/containers/quadtree.d.mts +5 -5
- package/src/foundry/client/pixi/core/interaction/canvas-animation.d.mts +34 -17
- package/src/foundry/client/pixi/core/interaction/control-icon.d.mts +33 -24
- package/src/foundry/client/pixi/core/interaction/mouse-handler.d.mts +47 -20
- package/src/foundry/client/pixi/core/interaction/ping.d.mts +2 -2
- package/src/foundry/client/pixi/core/interaction/pings/chevron.d.mts +2 -2
- package/src/foundry/client/pixi/core/interaction/pings/pulse.d.mts +4 -4
- package/src/foundry/client/pixi/core/interaction/render-flags.d.mts +32 -10
- package/src/foundry/client/pixi/core/interaction/resize-handle.d.mts +5 -5
- package/src/foundry/client/pixi/core/loader.d.mts +43 -3
- package/src/foundry/client/pixi/core/shapes/index.d.mts +0 -1
- package/src/foundry/client/pixi/core/shapes/limited-angle-polygon.d.mts +4 -4
- package/src/foundry/client/pixi/core/shapes/ray.d.mts +6 -6
- package/src/foundry/client/pixi/core/shapes/source-polygon.d.mts +67 -69
- package/src/foundry/client/pixi/extensions/circle.d.mts +42 -32
- package/src/foundry/client/pixi/extensions/graphics.d.mts +43 -0
- package/src/foundry/client/pixi/extensions/index.d.mts +2 -0
- package/src/foundry/client/pixi/extensions/observable-transform.d.mts +37 -0
- package/src/foundry/client/pixi/extensions/polygon.d.mts +39 -48
- package/src/foundry/client/pixi/extensions/rectangle.d.mts +129 -64
- package/src/foundry/client/pixi/groups/effects.d.mts +5 -8
- package/src/foundry/client/pixi/groups/environment.d.mts +6 -6
- package/src/foundry/client/pixi/groups/interface.d.mts +1 -1
- package/src/foundry/client/pixi/groups/primary.d.mts +3 -10
- package/src/foundry/client/pixi/layers/base/canvas-layer.d.mts +21 -5
- package/src/foundry/client/pixi/layers/base/interaction-layer.d.mts +33 -10
- package/src/foundry/client/pixi/layers/base/placeables-layer.d.mts +154 -109
- package/src/foundry/client/pixi/layers/controls/cursor.d.mts +7 -1
- package/src/foundry/client/pixi/layers/controls/door.d.mts +4 -6
- package/src/foundry/client/pixi/layers/controls/index.d.mts +0 -1
- package/src/foundry/client/pixi/layers/controls/layer.d.mts +80 -47
- package/src/foundry/client/pixi/layers/controls/ruler.d.mts +278 -119
- package/src/foundry/client/pixi/layers/effects/background-effects.d.mts +19 -3
- package/src/foundry/client/pixi/layers/effects/coloration-effects.d.mts +18 -3
- package/src/foundry/client/pixi/layers/effects/darkness-effects.d.mts +33 -0
- package/src/foundry/client/pixi/layers/effects/illumination-effects.d.mts +93 -16
- package/src/foundry/client/pixi/layers/effects/index.d.mts +1 -0
- package/src/foundry/client/pixi/layers/effects/visibility.d.mts +58 -27
- package/src/foundry/client/pixi/layers/effects/weather/particles/effect.d.mts +6 -6
- package/src/foundry/client/pixi/layers/effects/weather-effects.d.mts +74 -19
- package/src/foundry/client/pixi/layers/grid/highlight.d.mts +2 -1
- package/src/foundry/client/pixi/layers/grid/index.d.mts +1 -0
- package/src/foundry/client/pixi/layers/grid/layer.d.mts +163 -119
- package/src/foundry/client/pixi/layers/grid/mesh.d.mts +73 -0
- package/src/foundry/client/pixi/layers/masks/depth.d.mts +26 -1
- package/src/foundry/client/pixi/layers/masks/occlusion.d.mts +40 -4
- package/src/foundry/client/pixi/layers/masks/vision.d.mts +53 -22
- package/src/foundry/client/pixi/layers/placeables/drawings.d.mts +35 -16
- package/src/foundry/client/pixi/layers/placeables/lighting.d.mts +30 -84
- package/src/foundry/client/pixi/layers/placeables/notes.d.mts +24 -13
- package/src/foundry/client/pixi/layers/placeables/sounds.d.mts +212 -21
- package/src/foundry/client/pixi/layers/placeables/templates.d.mts +21 -9
- package/src/foundry/client/pixi/layers/placeables/tiles.d.mts +42 -40
- package/src/foundry/client/pixi/layers/placeables/tokens.d.mts +85 -72
- package/src/foundry/client/pixi/layers/placeables/walls.d.mts +60 -61
- package/src/foundry/client/pixi/perception/clockwise-sweep.d.mts +31 -43
- package/src/foundry/client/pixi/perception/detection-mode.d.mts +22 -6
- package/src/foundry/client/pixi/perception/fog.d.mts +30 -2
- package/src/foundry/client/pixi/perception/index.d.mts +0 -1
- package/src/foundry/client/pixi/perception/perception-manager.d.mts +63 -62
- package/src/foundry/client/pixi/perception/vision-mode.d.mts +33 -13
- package/src/foundry/client/pixi/perception/weiler-atherton-clipping.d.mts +47 -37
- package/src/foundry/client/pixi/placeable.d.mts +84 -39
- package/src/foundry/client/pixi/placeables/drawing.d.mts +4 -4
- package/src/foundry/client/pixi/placeables/note.d.mts +1 -1
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/index.d.mts +3 -4
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-canvas-object.d.mts +107 -89
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-graphics.d.mts +30 -0
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-occludable-object.d.mts +161 -0
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-sprite-mesh.d.mts +111 -0
- package/src/foundry/client/pixi/placeables/sound.d.mts +2 -1
- package/src/foundry/client/pixi/placeables/template.d.mts +4 -3
- package/src/foundry/client/pixi/placeables/tile.d.mts +2 -2
- package/src/foundry/client/pixi/placeables/token.d.mts +14 -18
- package/src/foundry/client/pixi/placeables/wall.d.mts +5 -5
- package/src/foundry/client/pixi/webgl/extensions/batch-renderer.d.mts +54 -19
- package/src/foundry/client/pixi/webgl/extensions/batch-shader-generator.d.mts +15 -6
- package/src/foundry/client/pixi/webgl/helpers/framebugger-snapshot.d.mts +8 -0
- package/src/foundry/client/pixi/webgl/helpers/smooth-noise.d.mts +28 -24
- package/src/foundry/client/pixi/webgl/helpers/texture-extractor.d.mts +53 -43
- package/src/foundry/client/pixi/webgl/shaders/base-shader-mixin.d.mts +119 -0
- package/src/foundry/client/pixi/webgl/shaders/base-shader.d.mts +94 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/base-filter.d.mts +47 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/base-mask-filter.d.mts +29 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/blur.d.mts +26 -4
- package/src/foundry/client/pixi/webgl/shaders/filters/effects-masking.d.mts +121 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/environment.d.mts +40 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/glow-overlay.d.mts +75 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/index.d.mts +12 -2
- package/src/foundry/client/pixi/webgl/shaders/filters/invisibility.d.mts +29 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/outline-overlay.d.mts +86 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/transition.d.mts +119 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/visibility.d.mts +70 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/vision-mask-filter.d.mts +33 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/void.d.mts +18 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/weather-occlusion-masks.d.mts +56 -0
- package/src/foundry/client/pixi/webgl/shaders/fragment-channel-mixin.d.mts +54 -0
- package/src/foundry/client/pixi/webgl/shaders/grid/grid.d.mts +112 -0
- package/src/foundry/client/pixi/webgl/shaders/grid/index.d.mts +1 -0
- package/src/foundry/client/pixi/webgl/shaders/index.d.mts +8 -2
- package/src/foundry/client/pixi/webgl/shaders/lighting/background-lighting.d.mts +65 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/base-lighting.d.mts +178 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/coloration-lighting.d.mts +73 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/darkness-lighting.d.mts +73 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/bewitching-wave.d.mts +33 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/black-hole.d.mts +18 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/chroma.d.mts +23 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/emanation.d.mts +23 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/energy-field.d.mts +23 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/fairy-light.d.mts +38 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/flame.d.mts +55 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/fog.d.mts +23 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/force-grid.d.mts +22 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/ghost-light.d.mts +33 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/hexa-dome.d.mts +23 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/index.d.mts +25 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/light-dome.d.mts +23 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/magical-gloom.d.mts +18 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/pulse.d.mts +44 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/radial-rainbow.d.mts +23 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/revolving-light.d.mts +36 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/roiling-mass.d.mts +18 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/siren-light.d.mts +61 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/smoke-patch.d.mts +32 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/star-light.d.mts +23 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/sunburst.d.mts +33 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/swirling-rainbow.d.mts +23 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/torch.d.mts +45 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/vortex.d.mts +38 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/wave.d.mts +33 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/illumination-lighting.d.mts +79 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/index.d.mts +6 -0
- package/src/foundry/client/pixi/webgl/shaders/region/adjust-darkness-level.d.mts +93 -0
- package/src/foundry/client/pixi/webgl/shaders/region/base.d.mts +35 -0
- package/src/foundry/client/pixi/webgl/shaders/region/highlight.d.mts +35 -0
- package/src/foundry/client/pixi/webgl/shaders/region/index.d.mts +3 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/base-sampler.d.mts +206 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/baseline-illumination.d.mts +38 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/color-adjustment.d.mts +38 -30
- package/src/foundry/client/pixi/webgl/shaders/samplers/depth.d.mts +103 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/fog-of-war.d.mts +8 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/index.d.mts +5 -3
- package/src/foundry/client/pixi/webgl/shaders/samplers/occlusion.d.mts +62 -27
- package/src/foundry/client/pixi/webgl/shaders/samplers/primary.d.mts +26 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/token-ring.d.mts +47 -0
- package/src/foundry/client/pixi/webgl/shaders/vision/background-vision.d.mts +42 -0
- package/src/foundry/client/pixi/webgl/shaders/vision/base-vision.d.mts +31 -0
- package/src/foundry/client/pixi/webgl/shaders/vision/coloration-vision.d.mts +41 -0
- package/src/foundry/client/pixi/webgl/shaders/vision/effects/amplification.d.mts +32 -0
- package/src/foundry/client/pixi/webgl/shaders/vision/effects/index.d.mts +2 -0
- package/src/foundry/client/pixi/webgl/shaders/vision/effects/wave.d.mts +59 -0
- package/src/foundry/client/pixi/webgl/shaders/vision/illumination-vision.d.mts +36 -0
- package/src/foundry/client/pixi/webgl/shaders/vision/index.d.mts +5 -0
- package/src/foundry/client/pixi/webgl/shaders/weather/base-weather.d.mts +106 -0
- package/src/foundry/client/pixi/webgl/shaders/weather/effect.d.mts +62 -0
- package/src/foundry/client/pixi/webgl/shaders/weather/fog.d.mts +50 -0
- package/src/foundry/client/pixi/webgl/shaders/{effects/weather → weather}/index.d.mts +1 -1
- package/src/foundry/client/pixi/webgl/shaders/weather/rain.d.mts +42 -0
- package/src/foundry/client/pixi/webgl/shaders/weather/snow.d.mts +34 -0
- package/src/foundry/client/ui/editor.d.mts +1 -1
- package/src/foundry/client-esm/applications/_types.d.mts +0 -2
- package/src/foundry/client-esm/applications/api/application.d.mts +25 -24
- package/src/foundry/client-esm/applications/api/document-sheet.d.mts +10 -2
- package/src/foundry/client-esm/applications/elements/color-picker.d.mts +1 -1
- package/src/foundry/client-esm/applications/elements/document-tags.d.mts +1 -1
- package/src/foundry/client-esm/applications/forms/fields.d.mts +103 -52
- package/src/foundry/client-esm/applications/sheets/ambient-light-config.d.mts +66 -4
- package/src/foundry/client-esm/applications/sheets/ambient-sound-config.d.mts +38 -4
- package/src/foundry/client-esm/applications/sheets/user-config.d.mts +30 -4
- package/src/foundry/client-esm/audio/_types.d.mts +16 -1
- package/src/foundry/client-esm/audio/biquad.d.mts +51 -0
- package/src/foundry/client-esm/audio/cache.d.mts +68 -0
- package/src/foundry/client-esm/audio/convolver.d.mts +71 -0
- package/src/foundry/client-esm/audio/helper.d.mts +326 -0
- package/src/foundry/client-esm/audio/sound.d.mts +401 -0
- package/src/foundry/client-esm/audio/timeout.d.mts +85 -0
- package/src/foundry/client-esm/canvas/edges/edge.d.mts +6 -6
- package/src/foundry/client-esm/canvas/edges/vertex.d.mts +4 -2
- package/src/foundry/client-esm/canvas/regions/_module.d.mts +8 -4
- package/src/foundry/client-esm/canvas/scene-manager.d.mts +93 -1
- package/src/foundry/client-esm/canvas/sources/base-effect-source.d.mts +7 -0
- package/src/foundry/client-esm/canvas/sources/base-light-source.d.mts +1 -4
- package/src/foundry/client-esm/canvas/sources/point-darkness-source.d.mts +1 -4
- package/src/foundry/client-esm/canvas/sources/point-effect-source.d.mts +3 -1
- package/src/foundry/client-esm/canvas/sources/point-sound-source.d.mts +1 -1
- package/src/foundry/client-esm/canvas/sources/point-vision-source.d.mts +9 -3
- package/src/foundry/client-esm/canvas/sources/rendered-effect-source.d.mts +2 -0
- package/src/foundry/client-esm/canvas/tokens/_module.d.mts +2 -0
- package/src/foundry/client-esm/canvas/tokens/ring-config.d.mts +79 -0
- package/src/foundry/client-esm/canvas/tokens/ring-data.d.mts +7 -0
- package/src/foundry/client-esm/canvas/tokens/ring.d.mts +5 -0
- package/src/foundry/client-esm/client.d.mts +4 -9
- package/src/foundry/client-esm/data/region-behaviors/_module.d.mts +12 -9
- package/src/foundry/client-esm/dice/terms/function.d.mts +1 -2
- package/src/foundry/clipper/clipper.d.mts +23 -56
- package/src/foundry/common/abstract/data.d.mts +58 -46
- package/src/foundry/common/abstract/document.d.mts +163 -110
- package/src/foundry/common/abstract/socket.d.mts +3 -3
- package/src/foundry/common/abstract/type-data.d.mts +25 -14
- package/src/foundry/common/data/fields.d.mts +1067 -143
- package/src/foundry/common/documents/_types.d.mts +34 -2
- package/src/foundry/common/documents/active-effect.d.mts +44 -33
- package/src/foundry/common/documents/actor-delta.d.mts +8 -20
- package/src/foundry/common/documents/actor.d.mts +82 -123
- package/src/foundry/common/documents/adventure.d.mts +16 -44
- package/src/foundry/common/documents/ambient-light.d.mts +5 -14
- package/src/foundry/common/documents/ambient-sound.d.mts +4 -14
- package/src/foundry/common/documents/card.d.mts +20 -50
- package/src/foundry/common/documents/cards.d.mts +16 -51
- package/src/foundry/common/documents/chat-message.d.mts +33 -34
- package/src/foundry/common/documents/combat.d.mts +27 -21
- package/src/foundry/common/documents/combatant.d.mts +19 -23
- package/src/foundry/common/documents/drawing.d.mts +6 -21
- package/src/foundry/common/documents/fog-exploration.d.mts +8 -23
- package/src/foundry/common/documents/folder.d.mts +16 -33
- package/src/foundry/common/documents/item.d.mts +12 -51
- package/src/foundry/common/documents/journal-entry-page.d.mts +22 -40
- package/src/foundry/common/documents/journal-entry.d.mts +6 -48
- package/src/foundry/common/documents/macro.d.mts +27 -43
- package/src/foundry/common/documents/measured-template.d.mts +5 -20
- package/src/foundry/common/documents/note.d.mts +6 -18
- package/src/foundry/common/documents/playlist-sound.d.mts +12 -16
- package/src/foundry/common/documents/playlist.d.mts +12 -18
- package/src/foundry/common/documents/roll-table.d.mts +6 -29
- package/src/foundry/common/documents/scene.d.mts +9 -31
- package/src/foundry/common/documents/setting.d.mts +8 -19
- package/src/foundry/common/documents/table-result.d.mts +14 -42
- package/src/foundry/common/documents/tile.d.mts +4 -13
- package/src/foundry/common/documents/token.d.mts +8 -26
- package/src/foundry/common/documents/user.d.mts +11 -20
- package/src/foundry/common/documents/wall.d.mts +13 -30
- package/src/foundry/common/grid/base.d.mts +26 -26
- package/src/foundry/common/grid/grid-hex.d.mts +2 -2
- package/src/foundry/common/grid/gridless.d.mts +11 -11
- package/src/foundry/common/grid/hexagonal.d.mts +30 -26
- package/src/foundry/common/grid/square.d.mts +11 -11
- package/src/foundry/common/packages/base-package.d.mts +4 -4
- package/src/foundry/common/primitives/array.d.mts +2 -2
- package/src/foundry/common/types.d.mts +54 -312
- package/src/foundry/common/utils/color.d.mts +17 -9
- package/src/foundry/common/utils/geometry.d.mts +32 -22
- package/src/foundry/common/utils/helpers.d.mts +1 -1
- package/src/types/augments/pixi.d.mts +63 -2
- package/src/types/config.d.mts +7 -6
- package/src/types/documentConfiguration.d.mts +606 -0
- package/src/types/helperTypes.d.mts +367 -45
- package/src/types/index.d.mts +1 -1
- package/src/types/utils.d.mts +139 -6
- package/src/foundry/client/audio/audio.d.mts +0 -390
- package/src/foundry/client/audio/container.d.mts +0 -176
- package/src/foundry/client/audio/index.d.mts +0 -3
- package/src/foundry/client/audio/sound.d.mts +0 -307
- package/src/foundry/client/pixi/core/shapes/polygon-helpers.d.mts +0 -31
- package/src/foundry/client/pixi/layers/controls/hud.d.mts +0 -114
- package/src/foundry/client/pixi/perception/color-manager.d.mts +0 -86
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/drawing-shape.d.mts +0 -143
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/occludable-object.d.mts +0 -175
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/tile-mesh.d.mts +0 -52
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/token-mesh.d.mts +0 -62
- package/src/foundry/client/pixi/webgl/shaders/base.d.mts +0 -691
- package/src/foundry/client/pixi/webgl/shaders/effects/index.d.mts +0 -3
- package/src/foundry/client/pixi/webgl/shaders/effects/lighting.d.mts +0 -642
- package/src/foundry/client/pixi/webgl/shaders/effects/vision.d.mts +0 -216
- package/src/foundry/client/pixi/webgl/shaders/effects/weather/base.d.mts +0 -102
- package/src/foundry/client/pixi/webgl/shaders/effects/weather/effect.d.mts +0 -38
- package/src/foundry/client/pixi/webgl/shaders/effects/weather/fog.d.mts +0 -34
- package/src/foundry/client/pixi/webgl/shaders/effects/weather/rain.d.mts +0 -24
- package/src/foundry/client/pixi/webgl/shaders/effects/weather/snow.d.mts +0 -20
- package/src/foundry/client/pixi/webgl/shaders/filters/filters.d.mts +0 -462
- package/src/foundry/client/pixi/webgl/shaders/filters/fxaa.d.mts +0 -74
- package/src/foundry/client/pixi/webgl/shaders/samplers/inverse-occlusion.d.mts +0 -47
- package/src/foundry/client/pixi/webgl/shaders/samplers/invisibility.d.mts +0 -28
- package/src/foundry/client/pixi/webgl/shaders/samplers/monochromatic.d.mts +0 -30
- package/src/types/configuredDocuments.d.mts +0 -103
@@ -0,0 +1,326 @@
|
|
1
|
+
import type Sound from "./sound.d.mts";
|
2
|
+
import type AudioBufferCache from "./cache.d.mts";
|
3
|
+
import type { InexactPartial } from "../../../types/utils.d.mts";
|
4
|
+
|
5
|
+
/**
|
6
|
+
* A helper class to provide common functionality for working with the Web Audio API.
|
7
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API
|
8
|
+
* A singleton instance of this class is available as game#audio.
|
9
|
+
* @see Game#audio
|
10
|
+
*/
|
11
|
+
declare class AudioHelper {
|
12
|
+
constructor();
|
13
|
+
|
14
|
+
/**
|
15
|
+
* The Native interval for the AudioHelper to analyse audio levels from streams
|
16
|
+
* Any interval passed to startLevelReports() would need to be a multiple of this value.
|
17
|
+
* @defaultValue `50`
|
18
|
+
*/
|
19
|
+
static levelAnalyserNativeInterval: number;
|
20
|
+
|
21
|
+
/**
|
22
|
+
* The cache size threshold after which audio buffers will be expired from the cache to make more room.
|
23
|
+
* 1 gigabyte, by default.
|
24
|
+
* @defaultValue `Math.pow(1024, 3)`
|
25
|
+
*/
|
26
|
+
static THRESHOLD_CACHE_SIZE_BYTES: number;
|
27
|
+
|
28
|
+
/**
|
29
|
+
* The set of singleton Sound instances which are cached for different audio paths
|
30
|
+
*/
|
31
|
+
sounds: Map<string, Sound>;
|
32
|
+
|
33
|
+
/**
|
34
|
+
* Get a map of the Sound objects which are currently playing.
|
35
|
+
*/
|
36
|
+
playing: Map<number, Sound>;
|
37
|
+
|
38
|
+
/**
|
39
|
+
* A user gesture must be registered before audio can be played.
|
40
|
+
* This Array contains the Sound instances which are requested for playback prior to a gesture.
|
41
|
+
* Once a gesture is observed, we begin playing all elements of this Array.
|
42
|
+
* @see Sound
|
43
|
+
* @defaultValue `[]`
|
44
|
+
*/
|
45
|
+
pending: (() => void)[];
|
46
|
+
|
47
|
+
/**
|
48
|
+
* A Promise which resolves once the game audio API is unlocked and ready to use.
|
49
|
+
*/
|
50
|
+
unlock: ReturnType<this["awaitFirstGesture"]>;
|
51
|
+
|
52
|
+
/**
|
53
|
+
* A flag for whether video playback is currently locked by awaiting a user gesture
|
54
|
+
* @defaultValue `true`
|
55
|
+
*/
|
56
|
+
locked: boolean;
|
57
|
+
|
58
|
+
/**
|
59
|
+
* A singleton audio context used for playback of music
|
60
|
+
*/
|
61
|
+
music: AudioContext;
|
62
|
+
|
63
|
+
/**
|
64
|
+
* A singleton audio context used for playback of environmental audio.
|
65
|
+
*/
|
66
|
+
environment: AudioContext;
|
67
|
+
|
68
|
+
/**
|
69
|
+
* A singleton audio context used for playback of interface sounds and effects.
|
70
|
+
*/
|
71
|
+
interface: AudioContext;
|
72
|
+
|
73
|
+
/**
|
74
|
+
* For backwards compatibility, AudioHelper#context refers to the context used for music playback.
|
75
|
+
*/
|
76
|
+
get context(): AudioContext | undefined;
|
77
|
+
|
78
|
+
/**
|
79
|
+
* A singleton cache used for audio buffers.
|
80
|
+
*/
|
81
|
+
buffers: AudioBufferCache;
|
82
|
+
|
83
|
+
/**
|
84
|
+
* Create a Sound instance for a given audio source URL
|
85
|
+
* @param options - Sound creation options
|
86
|
+
*/
|
87
|
+
create(options: AudioHelper.SoundCreationOptions): Sound;
|
88
|
+
|
89
|
+
/**
|
90
|
+
* Test whether a source file has a supported audio extension type
|
91
|
+
* @param src - A requested audio source path
|
92
|
+
* @returns Does the filename end with a valid audio extension?
|
93
|
+
*/
|
94
|
+
static hasAudioExtension(src: string): boolean;
|
95
|
+
|
96
|
+
/**
|
97
|
+
* Given an input file path, determine a default name for the sound based on the filename
|
98
|
+
* @param src - An input file path
|
99
|
+
* @returns A default sound name for the path
|
100
|
+
*/
|
101
|
+
static getDefaultSoundName(src: string): string;
|
102
|
+
|
103
|
+
/**
|
104
|
+
* Play a single Sound by providing its source.
|
105
|
+
* @param src - The file path to the audio source being played
|
106
|
+
* @param options - Additional options which configure playback
|
107
|
+
* @returns The created Sound which is now playing
|
108
|
+
*/
|
109
|
+
play(
|
110
|
+
src: string,
|
111
|
+
options?: Sound.PlaybackOptions &
|
112
|
+
InexactPartial<{
|
113
|
+
/** A specific AudioContext within which to play */
|
114
|
+
context: AudioContext;
|
115
|
+
}>,
|
116
|
+
): Promise<Sound>;
|
117
|
+
|
118
|
+
/**
|
119
|
+
* Register an event listener to await the first mousemove gesture and begin playback once observed
|
120
|
+
* @returns The unlocked audio context
|
121
|
+
*/
|
122
|
+
awaitFirstGesture(): Promise<void>;
|
123
|
+
|
124
|
+
/**
|
125
|
+
* Request that other connected clients begin preloading a certain sound path.
|
126
|
+
* @param src - The source file path requested for preload
|
127
|
+
* @returns A Promise which resolves once the preload is complete
|
128
|
+
*/
|
129
|
+
preload(src: string): Promise<Sound>;
|
130
|
+
|
131
|
+
/**
|
132
|
+
* Register client-level settings for global volume overrides
|
133
|
+
*/
|
134
|
+
static registerSettings(): void;
|
135
|
+
|
136
|
+
/**
|
137
|
+
* Open socket listeners which transact ChatMessage data
|
138
|
+
* @internal
|
139
|
+
*/
|
140
|
+
static _activateSocketListeners(socket: io.Socket): void;
|
141
|
+
|
142
|
+
/**
|
143
|
+
* Play a one-off sound effect which is not part of a Playlist
|
144
|
+
*
|
145
|
+
* @param data - An object configuring the audio data to play
|
146
|
+
* @param socketOptions - Options which only apply when emitting playback over websocket.
|
147
|
+
* As a boolean, emits (true) or does not emit (false) playback to all other clients
|
148
|
+
* As an object, can configure which recipients should receive the event.
|
149
|
+
* @returns A Sound instance which controls audio playback.
|
150
|
+
*
|
151
|
+
* @example Play the sound of a locked door for all players
|
152
|
+
* ```typescript
|
153
|
+
* AudioHelper.play({src: "sounds/lock.wav", volume: 0.8, loop: false}, true);
|
154
|
+
* ```
|
155
|
+
*/
|
156
|
+
static play(
|
157
|
+
data: AudioHelper.PlayData,
|
158
|
+
socketOptions?:
|
159
|
+
| boolean
|
160
|
+
| {
|
161
|
+
/** An array of user IDs to push audio playback to. All users by default. */
|
162
|
+
recipients: string[];
|
163
|
+
},
|
164
|
+
): Promise<Sound>;
|
165
|
+
|
166
|
+
/**
|
167
|
+
* Begin loading the sound for a provided source URL adding its
|
168
|
+
* @param src - The audio source path to preload
|
169
|
+
* @returns The created and loaded Sound ready for playback
|
170
|
+
*/
|
171
|
+
static preloadSound(src: string): Promise<Sound>;
|
172
|
+
|
173
|
+
/**
|
174
|
+
* Returns the volume value based on a range input volume control's position.
|
175
|
+
* This is using an exponential approximation of the logarithmic nature of audio level perception
|
176
|
+
* @param value - Value between [0, 1] of the range input
|
177
|
+
* @param order - The exponent of the curve
|
178
|
+
* (default: `1.5`)
|
179
|
+
*/
|
180
|
+
static inputToVolume(value: number | string, order?: number): number;
|
181
|
+
|
182
|
+
/**
|
183
|
+
* Counterpart to inputToVolume()
|
184
|
+
* Returns the input range value based on a volume
|
185
|
+
* @param volume - Value between [0, 1] of the volume level
|
186
|
+
* @param order - The exponent of the curve
|
187
|
+
*/
|
188
|
+
static volumeToInput(volume: number, order?: number): number;
|
189
|
+
|
190
|
+
/**
|
191
|
+
* Returns a singleton AudioContext if one can be created.
|
192
|
+
* An audio context may not be available due to limited resources or browser compatibility
|
193
|
+
* in which case null will be returned
|
194
|
+
*
|
195
|
+
* @returns A singleton AudioContext or null if one is not available
|
196
|
+
*/
|
197
|
+
getAnalyzerContext(): AudioContext | null;
|
198
|
+
|
199
|
+
/**
|
200
|
+
* Registers a stream for periodic reports of audio levels.
|
201
|
+
* Once added, the callback will be called with the maximum decibel level of
|
202
|
+
* the audio tracks in that stream since the last time the event was fired.
|
203
|
+
* The interval needs to be a multiple of `AudioHelper.levelAnalyserNativeInterval` which defaults at 50ms
|
204
|
+
*
|
205
|
+
* @param id - An id to assign to this report. Can be used to stop reports
|
206
|
+
* @param stream - The MediaStream instance to report activity on.
|
207
|
+
* @param callback - The callback function to call with the decibel level.
|
208
|
+
* @param interval - The interval at which to produce reports.
|
209
|
+
* (default: `50`)
|
210
|
+
* @param smoothing - The smoothingTimeConstant to set on the audio analyser.
|
211
|
+
* (default: `0.1`)
|
212
|
+
* @returns Returns whether listening to the stream was successful
|
213
|
+
*/
|
214
|
+
startLevelReports(
|
215
|
+
id: string,
|
216
|
+
stream: MediaStream,
|
217
|
+
callback: (maxDecibel: number, fftArray: Float32Array) => void,
|
218
|
+
interval?: number,
|
219
|
+
smoothing?: number,
|
220
|
+
): boolean | undefined;
|
221
|
+
|
222
|
+
/**
|
223
|
+
* Stop sending audio level reports
|
224
|
+
* This stops listening to a stream and stops sending reports.
|
225
|
+
* If we aren't listening to any more streams, cancel the global analyser timer.
|
226
|
+
* @param id - The id of the reports that passed to startLevelReports.
|
227
|
+
*/
|
228
|
+
stopLevelReports(id: string): void;
|
229
|
+
|
230
|
+
/**
|
231
|
+
* Handle the first observed user gesture
|
232
|
+
* @param event - The mouse-move event which enables playback
|
233
|
+
* @param resolve - The Promise resolution function
|
234
|
+
* @internal
|
235
|
+
*/
|
236
|
+
protected _onFirstGesture(event: Event, resolve: () => void): void;
|
237
|
+
|
238
|
+
/**
|
239
|
+
* Log a debugging message if the audio debugging flag is enabled.
|
240
|
+
* @param message - The message to log
|
241
|
+
*/
|
242
|
+
debug(message: string): void;
|
243
|
+
|
244
|
+
/**
|
245
|
+
* @deprecated since v12, will be removed in v14
|
246
|
+
*/
|
247
|
+
getCache(src: string): AudioBuffer | undefined;
|
248
|
+
|
249
|
+
/**
|
250
|
+
* @deprecated since v12, will be removed in v14
|
251
|
+
*/
|
252
|
+
updateCache(src: string, playing: boolean): void;
|
253
|
+
|
254
|
+
/**
|
255
|
+
* @deprecated since v12, will be removed in v14
|
256
|
+
*/
|
257
|
+
setCache(src: string, buffer: AudioBuffer): void;
|
258
|
+
}
|
259
|
+
|
260
|
+
declare namespace AudioHelper {
|
261
|
+
interface SoundCreationOptions {
|
262
|
+
/**
|
263
|
+
* The source URL for the audio file
|
264
|
+
*/
|
265
|
+
src: string;
|
266
|
+
|
267
|
+
/**
|
268
|
+
* A specific AudioContext to attach the sound to
|
269
|
+
*/
|
270
|
+
context: AudioContext;
|
271
|
+
|
272
|
+
/**
|
273
|
+
* Reuse an existing Sound for this source?
|
274
|
+
* @defaultValue `true`
|
275
|
+
*/
|
276
|
+
singleton?: boolean;
|
277
|
+
|
278
|
+
/**
|
279
|
+
* Begin loading the audio immediately?
|
280
|
+
* @defaultValue `false`
|
281
|
+
*/
|
282
|
+
preload?: boolean;
|
283
|
+
|
284
|
+
/**
|
285
|
+
* Begin playing the audio as soon as it is ready?
|
286
|
+
* @defaultValue `false`
|
287
|
+
*/
|
288
|
+
autoplay?: boolean;
|
289
|
+
|
290
|
+
/**
|
291
|
+
* Additional options passed to the play method if autoplay is true
|
292
|
+
* @defaultValue `{}`
|
293
|
+
*/
|
294
|
+
autoplayOptions?: Sound.PlaybackOptions;
|
295
|
+
}
|
296
|
+
|
297
|
+
interface PlayData {
|
298
|
+
/**
|
299
|
+
* The audio source file path, either a public URL or a local path relative to the public directory
|
300
|
+
*/
|
301
|
+
src: string;
|
302
|
+
|
303
|
+
/** An audio channel in CONST.AUDIO_CHANNELS where the sound should play */
|
304
|
+
channel?: keyof typeof CONST.AUDIO_CHANNELS;
|
305
|
+
|
306
|
+
/**
|
307
|
+
* The volume level at which to play the audio, between 0 and 1.
|
308
|
+
* @defaultValue `1.0`
|
309
|
+
*/
|
310
|
+
volume?: number;
|
311
|
+
|
312
|
+
/**
|
313
|
+
* Begin playback of the audio effect immediately once it is loaded.
|
314
|
+
* @deprecated You are using the autoplay option of AudioHelper.play which is no longer supported in 0.8.0
|
315
|
+
*/
|
316
|
+
autoplay?: boolean;
|
317
|
+
|
318
|
+
/**
|
319
|
+
* Loop the audio effect and continue playing it until it is manually stopped.
|
320
|
+
* @defaultValue `false`
|
321
|
+
*/
|
322
|
+
loop?: boolean;
|
323
|
+
}
|
324
|
+
}
|
325
|
+
|
326
|
+
export default AudioHelper;
|