@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
@@ -1,307 +0,0 @@
|
|
1
|
-
export {};
|
2
|
-
|
3
|
-
declare global {
|
4
|
-
/**
|
5
|
-
* The Sound class is used to control the playback of audio sources using the Web Audio API.
|
6
|
-
*/
|
7
|
-
class Sound {
|
8
|
-
constructor(src: string, options?: { container?: AudioContainer });
|
9
|
-
|
10
|
-
/**
|
11
|
-
* The numeric identifier for accessing this node
|
12
|
-
*/
|
13
|
-
id: number;
|
14
|
-
|
15
|
-
/**
|
16
|
-
* The audio source path
|
17
|
-
*/
|
18
|
-
src: string;
|
19
|
-
|
20
|
-
/**
|
21
|
-
* The AudioContainer which controls playback
|
22
|
-
*/
|
23
|
-
container: AudioContainer;
|
24
|
-
|
25
|
-
/**
|
26
|
-
* The time in seconds at which playback was started
|
27
|
-
* @defaultValue `undefined`
|
28
|
-
*/
|
29
|
-
startTime: number | undefined;
|
30
|
-
|
31
|
-
/**
|
32
|
-
* The time in seconds at which playback was paused
|
33
|
-
* @defaultValue `undefined`
|
34
|
-
*/
|
35
|
-
pausedTime: number | undefined;
|
36
|
-
|
37
|
-
/**
|
38
|
-
* Registered event callbacks
|
39
|
-
* @defaultValue `{stop: {}, start: {}, end: {}, pause: {}, load: {}}`
|
40
|
-
*/
|
41
|
-
events: Sound.EventCallbacks;
|
42
|
-
|
43
|
-
/**
|
44
|
-
* The registered event handler id for this Sound.
|
45
|
-
* Incremented each time a callback is registered.
|
46
|
-
* @defaultValue `1`
|
47
|
-
* @internal
|
48
|
-
*/
|
49
|
-
protected _eventHandlerId: number;
|
50
|
-
|
51
|
-
/**
|
52
|
-
* If this Sound source is currently in the process of loading, this attribute contains a Promise that will resolve
|
53
|
-
* when the loading process completes.
|
54
|
-
* @defaultValue `undefined`
|
55
|
-
*/
|
56
|
-
loading: Promise<void> | undefined;
|
57
|
-
|
58
|
-
/**
|
59
|
-
* A collection of scheduled events recorded as window timeout IDs
|
60
|
-
* @internal
|
61
|
-
*/
|
62
|
-
protected _scheduledEvents: Set<number>;
|
63
|
-
|
64
|
-
/**
|
65
|
-
* A global audio node ID used to quickly reference a specific audio node
|
66
|
-
* @defaultValue `0`
|
67
|
-
* @internal
|
68
|
-
*/
|
69
|
-
protected static _nodeId: number;
|
70
|
-
|
71
|
-
/**
|
72
|
-
* A convenience reference to the sound context used by the application
|
73
|
-
*/
|
74
|
-
get context(): AudioContext;
|
75
|
-
|
76
|
-
/**
|
77
|
-
* A reference to the audio source node being used by the AudioContainer
|
78
|
-
*/
|
79
|
-
get node(): AudioBufferSourceNode | MediaElementAudioSourceNode | undefined;
|
80
|
-
|
81
|
-
/**
|
82
|
-
* A reference to the GainNode parameter which controls volume
|
83
|
-
*/
|
84
|
-
get gain(): AudioParam | undefined;
|
85
|
-
|
86
|
-
/**
|
87
|
-
* The current playback time of the sound
|
88
|
-
*/
|
89
|
-
get currentTime(): number | undefined;
|
90
|
-
|
91
|
-
/**
|
92
|
-
* The total sound duration, in seconds
|
93
|
-
*/
|
94
|
-
get duration(): number | undefined;
|
95
|
-
|
96
|
-
/**
|
97
|
-
* Is the contained audio node loaded and ready for playback?
|
98
|
-
*/
|
99
|
-
get loaded(): boolean;
|
100
|
-
|
101
|
-
/**
|
102
|
-
* Did the contained audio node fail to load?
|
103
|
-
*/
|
104
|
-
get failed(): boolean;
|
105
|
-
|
106
|
-
/**
|
107
|
-
* Is the audio source currently playing?
|
108
|
-
*/
|
109
|
-
get playing(): boolean;
|
110
|
-
|
111
|
-
/**
|
112
|
-
* Is the Sound current looping?
|
113
|
-
*/
|
114
|
-
get loop(): boolean;
|
115
|
-
set loop(looping: boolean);
|
116
|
-
|
117
|
-
/**
|
118
|
-
* The volume at which the Sound is playing
|
119
|
-
*/
|
120
|
-
get volume(): number | undefined;
|
121
|
-
set volume(value: number | undefined);
|
122
|
-
|
123
|
-
/**
|
124
|
-
* Fade the volume for this sound between its current level and a desired target volume
|
125
|
-
* @param volume - The desired target volume level between 0 and 1
|
126
|
-
* @param options - Additional options that configure the fade operation
|
127
|
-
* (default: `{}`)
|
128
|
-
* @returns A Promise that resolves after the requested fade duration
|
129
|
-
*/
|
130
|
-
fade(volume: number, options?: Sound.FadeOptions): Promise<void>;
|
131
|
-
|
132
|
-
/**
|
133
|
-
* Load the audio source, creating an AudioBuffer.
|
134
|
-
* Audio loading is idempotent, it can be requested multiple times but only the first load request will be honored.
|
135
|
-
* @param options - Additional options which affect resource loading
|
136
|
-
* (default: `{}`)
|
137
|
-
* @returns The Sound once its source audio buffer is loaded
|
138
|
-
*/
|
139
|
-
load(options?: Sound.LoadOptions): Promise<Sound>;
|
140
|
-
|
141
|
-
/**
|
142
|
-
* Begin playback for the sound node
|
143
|
-
* @param options - Options which configure playback
|
144
|
-
* (default: `{}`)
|
145
|
-
*/
|
146
|
-
play(options?: Sound.PlayOptions): void;
|
147
|
-
|
148
|
-
/**
|
149
|
-
* Pause playback, remembering the playback position in order to resume later.
|
150
|
-
*/
|
151
|
-
pause(): void;
|
152
|
-
|
153
|
-
/**
|
154
|
-
* Stop playback, fully resetting the Sound to a non-playing state.
|
155
|
-
*/
|
156
|
-
stop(): void;
|
157
|
-
|
158
|
-
/**
|
159
|
-
* Schedule a function to occur at the next occurrence of a specific playbackTime for this Sound.
|
160
|
-
* @param fn - A function that will be called with this Sound as its single argument
|
161
|
-
* @param playbackTime - The desired playback time at which the function should be called
|
162
|
-
* @returns A Promise which resolves once the scheduled function has been called
|
163
|
-
*
|
164
|
-
* @example Schedule audio playback changes
|
165
|
-
* ```typescript
|
166
|
-
* sound.schedule(() => console.log("Do something exactly 30 seconds into the track"), 30);
|
167
|
-
* sound.schedule(() => console.log("Do something next time the track loops back to the beginning"), 0);
|
168
|
-
* sound.schedule(() => console.log("Do something 5 seconds before the end of the track"), sound.duration - 5);
|
169
|
-
* ```
|
170
|
-
*/
|
171
|
-
schedule(fn: Sound.Callback, playbackTime: number): Promise<void>;
|
172
|
-
|
173
|
-
/**
|
174
|
-
* Trigger registered callback functions for a specific event name.
|
175
|
-
* @param eventName - The event name being emitted
|
176
|
-
*/
|
177
|
-
emit(eventName: Sound.EventName): void;
|
178
|
-
|
179
|
-
/**
|
180
|
-
* Deactivate an event handler which was previously registered for a specific event
|
181
|
-
* @param eventName - The event name being deactivated
|
182
|
-
* @param fn - The callback ID or callback function being un-registered
|
183
|
-
*/
|
184
|
-
off(eventName: Sound.EventName, fn: number | Sound.Callback): void;
|
185
|
-
|
186
|
-
/**
|
187
|
-
* Register an event handler to take actions for a certain Sound event.
|
188
|
-
* @param eventName- The event name being deactivated
|
189
|
-
* @param fn - The callback function to trigger when the event occurs
|
190
|
-
* @param options - Additional options that affect callback registration
|
191
|
-
* (default: `{}`)
|
192
|
-
*/
|
193
|
-
on(eventName: Sound.EventName, fn: Sound.Callback, options?: Sound.OnOptions): number;
|
194
|
-
|
195
|
-
/**
|
196
|
-
* Register a new callback function for a certain event. For internal use only.
|
197
|
-
* @internal
|
198
|
-
*/
|
199
|
-
protected _registerForEvent(eventName: Sound.EventName, callback: Sound.Callback): number;
|
200
|
-
|
201
|
-
/**
|
202
|
-
* Cancel all pending scheduled events.
|
203
|
-
* @internal
|
204
|
-
*/
|
205
|
-
protected _clearEvents(): void;
|
206
|
-
|
207
|
-
/**
|
208
|
-
* Called when playback concludes naturally
|
209
|
-
*/
|
210
|
-
protected _onEnd(): void;
|
211
|
-
|
212
|
-
/**
|
213
|
-
* Called when the audio buffer is first loaded
|
214
|
-
*/
|
215
|
-
protected _onLoad(): void;
|
216
|
-
|
217
|
-
/**
|
218
|
-
* Called when playback is paused
|
219
|
-
*/
|
220
|
-
protected _onPause(): void;
|
221
|
-
|
222
|
-
/**
|
223
|
-
* Called when the sound begins playing
|
224
|
-
*/
|
225
|
-
protected _onStart(): void;
|
226
|
-
|
227
|
-
/**
|
228
|
-
* Called when playback is stopped (prior to naturally reaching the end)
|
229
|
-
*/
|
230
|
-
protected _onStop(): void;
|
231
|
-
}
|
232
|
-
|
233
|
-
namespace Sound {
|
234
|
-
type Callback = (sound: Sound) => void;
|
235
|
-
|
236
|
-
type EventName = "end" | "pause" | "start" | "stop" | "load";
|
237
|
-
|
238
|
-
type EventCallbacks = Record<EventName, Partial<Record<number, Callback>>>;
|
239
|
-
|
240
|
-
type FadeType = "linear" | "exponential";
|
241
|
-
|
242
|
-
interface FadeOptions {
|
243
|
-
/**
|
244
|
-
* The duration of the fade effect in milliseconds
|
245
|
-
* @defaultValue `1000`
|
246
|
-
*/
|
247
|
-
duration?: number;
|
248
|
-
|
249
|
-
/**
|
250
|
-
* A volume level to start from, the current volume by default
|
251
|
-
*/
|
252
|
-
from?: number;
|
253
|
-
|
254
|
-
/**
|
255
|
-
* The type of fade easing, "linear" or "exponential"
|
256
|
-
* @defaultValue `"linear"`
|
257
|
-
*/
|
258
|
-
type?: FadeType;
|
259
|
-
}
|
260
|
-
|
261
|
-
interface LoadOptions {
|
262
|
-
/**
|
263
|
-
* Automatically begin playback of the audio source once loaded
|
264
|
-
* @defaultValue `false`
|
265
|
-
*/
|
266
|
-
autoplay?: boolean;
|
267
|
-
|
268
|
-
/**
|
269
|
-
* Additional options passed to the play method when loading is complete
|
270
|
-
* @defaultValue `{}`
|
271
|
-
*/
|
272
|
-
autoplayOptions?: PlayOptions;
|
273
|
-
}
|
274
|
-
|
275
|
-
interface PlayOptions {
|
276
|
-
/**
|
277
|
-
* Whether to loop the audio automatically
|
278
|
-
* @defaultValue `false`
|
279
|
-
*/
|
280
|
-
loop?: boolean;
|
281
|
-
|
282
|
-
/**
|
283
|
-
* A specific offset in seconds at which to begin playback
|
284
|
-
*/
|
285
|
-
offset?: number;
|
286
|
-
|
287
|
-
/**
|
288
|
-
* The desired volume at which to begin playback
|
289
|
-
*/
|
290
|
-
volume?: number;
|
291
|
-
|
292
|
-
/**
|
293
|
-
* Fade volume changes over a desired duration in milliseconds
|
294
|
-
* @defaultValue `0`
|
295
|
-
*/
|
296
|
-
fade?: number;
|
297
|
-
}
|
298
|
-
|
299
|
-
interface OnOptions {
|
300
|
-
/**
|
301
|
-
* Trigger the callback once only and automatically un-register it
|
302
|
-
* @defaultValue `false`
|
303
|
-
*/
|
304
|
-
once?: boolean;
|
305
|
-
}
|
306
|
-
}
|
307
|
-
}
|
@@ -1,31 +0,0 @@
|
|
1
|
-
import type Document from "../../../../common/abstract/document.d.mts";
|
2
|
-
|
3
|
-
declare global {
|
4
|
-
/**
|
5
|
-
* An internal data structure for polygon edges
|
6
|
-
* @internal
|
7
|
-
*/
|
8
|
-
class PolygonEdge {
|
9
|
-
constructor(a: Point, b: Point, type: foundry.CONST.WALL_SENSE_TYPES, wall: Wall);
|
10
|
-
|
11
|
-
/**
|
12
|
-
* An internal flag used to record whether an Edge represents a canvas boundary.
|
13
|
-
*/
|
14
|
-
protected _isBoundary: boolean;
|
15
|
-
|
16
|
-
/**
|
17
|
-
* Is this edge limited in type?
|
18
|
-
*/
|
19
|
-
get isLimited(): boolean;
|
20
|
-
|
21
|
-
/**
|
22
|
-
* Construct a PolygonEdge instance from a Wall placeable object.
|
23
|
-
* @param wall - The Wall from which to construct an edge
|
24
|
-
* @param type - The type of polygon being constructed
|
25
|
-
*/
|
26
|
-
static fromWall(
|
27
|
-
wall: Document.ConfiguredObjectClassForName<"Wall"> | WallDocument,
|
28
|
-
type: foundry.CONST.WALL_RESTRICTION_TYPES,
|
29
|
-
): PolygonEdge;
|
30
|
-
}
|
31
|
-
}
|
@@ -1,114 +0,0 @@
|
|
1
|
-
export {};
|
2
|
-
|
3
|
-
declare global {
|
4
|
-
/**
|
5
|
-
* @deprecated since v10, will be removed in v12
|
6
|
-
* @remarks `"The SynchronizedTransform class is deprecated and should no longer be used."`
|
7
|
-
*/
|
8
|
-
class SynchronizedTransform extends PIXI.Transform {
|
9
|
-
constructor(transform: PIXI.Transform);
|
10
|
-
|
11
|
-
/**
|
12
|
-
* A list of attributes from the transform reference which should be synchronized
|
13
|
-
* @defaultValue
|
14
|
-
* ```javascript
|
15
|
-
* [
|
16
|
-
* "localTransform", "position", "scale", "pivot", "skew", "_rotation",
|
17
|
-
* "_cx", "_sx", "_cy", "_sy", "_localID", "_currentLocalID"
|
18
|
-
* ];
|
19
|
-
* ```
|
20
|
-
*/
|
21
|
-
static synchronizedAttributes: string[];
|
22
|
-
|
23
|
-
/**
|
24
|
-
* A Transform instance which defines the reference point for the worldTransform
|
25
|
-
*/
|
26
|
-
get reference(): PIXI.Transform;
|
27
|
-
|
28
|
-
set reference(value: PIXI.Transform);
|
29
|
-
|
30
|
-
/** @internal */
|
31
|
-
protected _reference: PIXI.Transform;
|
32
|
-
|
33
|
-
/** @internal */
|
34
|
-
protected _syncLocalID: number;
|
35
|
-
|
36
|
-
override updateTransform(parentTransform: PIXI.Transform): void;
|
37
|
-
|
38
|
-
override updateLocalTransform(): void;
|
39
|
-
}
|
40
|
-
|
41
|
-
/**
|
42
|
-
* @deprecated since v10, will be removed in v12
|
43
|
-
* @remarks `"The ObjectHUD class is deprecated and should no longer be used."`
|
44
|
-
*/
|
45
|
-
class ObjectHUD extends PIXI.Container {
|
46
|
-
constructor(object: PIXI.DisplayObject);
|
47
|
-
|
48
|
-
/**
|
49
|
-
* The object that this HUD container is linked to
|
50
|
-
*/
|
51
|
-
object: PIXI.DisplayObject;
|
52
|
-
|
53
|
-
/**
|
54
|
-
* Use the linked object's transform matrix to easily synchronize position
|
55
|
-
*/
|
56
|
-
transform: PIXI.Transform;
|
57
|
-
|
58
|
-
// @ts-expect-error this is a property in `PIXI.Container` but foundry overrides it as an accessor.
|
59
|
-
override get visible(): boolean;
|
60
|
-
override set visible(value: boolean);
|
61
|
-
|
62
|
-
// @ts-expect-error this is a property in `PIXI.Container` but foundry overrides it as an accessor.
|
63
|
-
override get renderable(): boolean;
|
64
|
-
override set renderable(value: boolean);
|
65
|
-
|
66
|
-
/**
|
67
|
-
* @deprecated since v10, will be removed in v12
|
68
|
-
* @remarks `"You are calling ObjectHUD#createScrollingText which has been migrated and refactored to CanvasInterfaceGroup#createScrollingText"`
|
69
|
-
*/
|
70
|
-
createScrollingText(content: string, options?: ObjectHUD.CreateScrollingTextOptions): Promise<PreciseText | null>;
|
71
|
-
|
72
|
-
/**
|
73
|
-
* Orchestrate the animation of the scrolling text in this HUD
|
74
|
-
* @param text - The PrecisText instance to animate
|
75
|
-
* @param duration - A desired duration of animation
|
76
|
-
* @param dx - A horizontal distance to animate the text
|
77
|
-
* (default: `0`)
|
78
|
-
* @param dy - A vertical distance to animate the text
|
79
|
-
* (default: `0`)
|
80
|
-
* @internal
|
81
|
-
*/
|
82
|
-
protected _animateScrollText(text: PreciseText, duration: number, dx?: number, dy?: number): Promise<void>;
|
83
|
-
}
|
84
|
-
|
85
|
-
type TextStyleProperties = Exclude<ConstructorParameters<typeof PIXI.TextStyle>[0], undefined>;
|
86
|
-
|
87
|
-
namespace ObjectHUD {
|
88
|
-
interface CreateScrollingTextOptions extends TextStyleProperties {
|
89
|
-
/**
|
90
|
-
* The original anchor point where the text first appears
|
91
|
-
* @defaultValue `CONST.TEXT_ANCHOR_POINTS.CENTER`
|
92
|
-
*/
|
93
|
-
anchor?: foundry.CONST.TEXT_ANCHOR_POINTS | undefined;
|
94
|
-
|
95
|
-
/**
|
96
|
-
* The direction in which the text scrolls
|
97
|
-
* @defaultValue `CONST.TEXT_ANCHOR_POINTS.TOP`
|
98
|
-
*/
|
99
|
-
direction?: foundry.CONST.TEXT_ANCHOR_POINTS | undefined;
|
100
|
-
|
101
|
-
/**
|
102
|
-
* The duration of the scrolling effect in milliseconds
|
103
|
-
* @defaultValue `2000`
|
104
|
-
*/
|
105
|
-
duration?: number | undefined;
|
106
|
-
|
107
|
-
/**
|
108
|
-
* An amount of randomization between 0 and 1 to apply to the initial Position
|
109
|
-
* @defaultValue `0`
|
110
|
-
*/
|
111
|
-
jitter?: number | undefined;
|
112
|
-
}
|
113
|
-
}
|
114
|
-
}
|
@@ -1,86 +0,0 @@
|
|
1
|
-
export {};
|
2
|
-
|
3
|
-
declare global {
|
4
|
-
/**
|
5
|
-
* A singleton class dedicated to manage the color spaces associated with the scene and the canvas.
|
6
|
-
*/
|
7
|
-
class CanvasColorManager {
|
8
|
-
/**
|
9
|
-
* Colors exposed by the manager.
|
10
|
-
*/
|
11
|
-
colors: {
|
12
|
-
darkness?: Color;
|
13
|
-
halfdark?: Color;
|
14
|
-
/** @defaultValue `0x909090` */
|
15
|
-
background?: Color;
|
16
|
-
dim?: Color;
|
17
|
-
bright?: Color;
|
18
|
-
ambientBrightest?: Color;
|
19
|
-
ambientDaylight?: Color;
|
20
|
-
ambientDarkness?: Color;
|
21
|
-
sceneBackground?: Color;
|
22
|
-
/** @defaultValue `0x000000` */
|
23
|
-
fogExplored?: Color;
|
24
|
-
/** @defaultValue `0x000000` */
|
25
|
-
fogUnexplored?: Color;
|
26
|
-
};
|
27
|
-
|
28
|
-
/**
|
29
|
-
* Weights used by the manager to compute colors.
|
30
|
-
*/
|
31
|
-
weights: {
|
32
|
-
dark?: number;
|
33
|
-
halfdark?: number;
|
34
|
-
dim?: number;
|
35
|
-
bright?: number;
|
36
|
-
};
|
37
|
-
|
38
|
-
/**
|
39
|
-
* Fallback colors.
|
40
|
-
*/
|
41
|
-
static #fallbackColors: {
|
42
|
-
darknessColor: 0x242448;
|
43
|
-
daylightColor: 0xeeeeee;
|
44
|
-
brightestColor: 0xffffff;
|
45
|
-
backgroundColor: 0x909090;
|
46
|
-
fogUnexplored: 0x000000;
|
47
|
-
fogExplored: 0x000000;
|
48
|
-
};
|
49
|
-
|
50
|
-
/**
|
51
|
-
* Returns the darkness penalty for the actual scene configuration.
|
52
|
-
*/
|
53
|
-
get darknessPenalty(): number;
|
54
|
-
|
55
|
-
/**
|
56
|
-
* Get the darkness level of this scene.
|
57
|
-
*/
|
58
|
-
get darknessLevel(): number;
|
59
|
-
|
60
|
-
/**
|
61
|
-
* Initialize color space pertaining to a specific scene.
|
62
|
-
*/
|
63
|
-
initialize(colors?: {
|
64
|
-
/** The background canvas color */
|
65
|
-
backgroundColor?: Color | number | string;
|
66
|
-
|
67
|
-
/** The brightest ambient color */
|
68
|
-
brightestColor?: Color | number | string;
|
69
|
-
|
70
|
-
/** The color of darkness */
|
71
|
-
darknessColor?: Color | number | string;
|
72
|
-
|
73
|
-
/** A preview darkness level */
|
74
|
-
darknessLevel?: number;
|
75
|
-
|
76
|
-
/** The ambient daylight color */
|
77
|
-
daylightColor?: Color | number | string;
|
78
|
-
|
79
|
-
/** The color applied to explored areas */
|
80
|
-
fogExploredColor?: number;
|
81
|
-
|
82
|
-
/** The color applied to unexplored areas */
|
83
|
-
fogUnexploredColor?: number;
|
84
|
-
}): void;
|
85
|
-
}
|
86
|
-
}
|
@@ -1,143 +0,0 @@
|
|
1
|
-
import type { Document } from "../../../../common/abstract/module.d.mts";
|
2
|
-
|
3
|
-
declare global {
|
4
|
-
/**
|
5
|
-
* A special subclass of PIXI.Container used to represent a Drawing in the PrimaryCanvasGroup.
|
6
|
-
*/
|
7
|
-
class DrawingShape extends PrimaryCanvasObjectMixin(PIXI.Graphics) {
|
8
|
-
/**
|
9
|
-
* Sorting values to deal with ties.
|
10
|
-
*/
|
11
|
-
static PRIMARY_SORT_ORDER: number;
|
12
|
-
|
13
|
-
/**
|
14
|
-
* @defaultValue
|
15
|
-
* ```js
|
16
|
-
* return foundry.utils.mergeObject(super.defaultData, {
|
17
|
-
* shape: {
|
18
|
-
* type: "",
|
19
|
-
* width: 0,
|
20
|
-
* height: 0,
|
21
|
-
* radius: null,
|
22
|
-
* points: []
|
23
|
-
* },
|
24
|
-
* bezierFactor: 0,
|
25
|
-
* fillType: 0,
|
26
|
-
* fillColor: 0x7C7C7C,
|
27
|
-
* fillAlpha: 0.5,
|
28
|
-
* strokeWidth: 8,
|
29
|
-
* strokeColor: 0xFFFFFF,
|
30
|
-
* strokeAlpha: 1,
|
31
|
-
* text: "New Text",
|
32
|
-
* fontFamily: "Signika",
|
33
|
-
* fontSize: 48,
|
34
|
-
* textColor: 0xFFFFFF,
|
35
|
-
* textAlpha: 1
|
36
|
-
* })
|
37
|
-
* ```
|
38
|
-
*/
|
39
|
-
static override get defaultData(): DrawingShape.PrimaryCanvasObjectDrawingShapeData;
|
40
|
-
|
41
|
-
override refresh(): void;
|
42
|
-
|
43
|
-
override setPosition(): void;
|
44
|
-
|
45
|
-
protected override _getCanvasDocumentData(data: Document.Any): unknown;
|
46
|
-
|
47
|
-
/**
|
48
|
-
* Draw rectangular shapes.
|
49
|
-
*/
|
50
|
-
protected _drawRectangle(): void;
|
51
|
-
|
52
|
-
/**
|
53
|
-
* Draw ellipsoid shapes.
|
54
|
-
*/
|
55
|
-
protected _drawEllipse(): void;
|
56
|
-
|
57
|
-
/**
|
58
|
-
* Draw polygonal shapes.
|
59
|
-
*/
|
60
|
-
protected _drawPolygon(): void;
|
61
|
-
|
62
|
-
/**
|
63
|
-
* Draw freehand shapes with bezier spline smoothing.
|
64
|
-
*/
|
65
|
-
protected _drawFreehand(): void;
|
66
|
-
}
|
67
|
-
|
68
|
-
namespace DrawingShape {
|
69
|
-
interface PrimaryCanvasObjectDrawingShapeData extends PrimaryCanvasObjectData {
|
70
|
-
/** The shape */
|
71
|
-
shape: object;
|
72
|
-
|
73
|
-
/** The x-coordinate of the PCO location */
|
74
|
-
x: number;
|
75
|
-
|
76
|
-
/** The y-coordinate of the PCO location */
|
77
|
-
y: number;
|
78
|
-
|
79
|
-
/** The z-index of the PCO */
|
80
|
-
z: number;
|
81
|
-
|
82
|
-
/** The bezier factor */
|
83
|
-
bezierFactor: number;
|
84
|
-
|
85
|
-
/** The fill type */
|
86
|
-
fillType: number;
|
87
|
-
|
88
|
-
/** The fill color */
|
89
|
-
fillColor: number;
|
90
|
-
|
91
|
-
/** The fill alpha */
|
92
|
-
fillAlpha: number;
|
93
|
-
|
94
|
-
/** The stroke width */
|
95
|
-
strokeWidth: number;
|
96
|
-
|
97
|
-
/** The stroke color */
|
98
|
-
strokeColor: number;
|
99
|
-
|
100
|
-
/** The stroke alpha */
|
101
|
-
strokeAlpha: number;
|
102
|
-
|
103
|
-
/** The text */
|
104
|
-
text: string;
|
105
|
-
|
106
|
-
/** The text font family */
|
107
|
-
fontFamily: string;
|
108
|
-
|
109
|
-
/** The font size */
|
110
|
-
fontSize: number;
|
111
|
-
|
112
|
-
/** The text color */
|
113
|
-
textColor: number;
|
114
|
-
|
115
|
-
/** The text alpha */
|
116
|
-
textAlpha: number;
|
117
|
-
|
118
|
-
/** The rotation of this PCO */
|
119
|
-
rotation: number;
|
120
|
-
|
121
|
-
/** The PCO is hidden? */
|
122
|
-
hidden: boolean;
|
123
|
-
|
124
|
-
/** The elevation of the PCO */
|
125
|
-
elevation: number;
|
126
|
-
|
127
|
-
/** The sort key that resolves ties among the same elevation */
|
128
|
-
sort: number;
|
129
|
-
|
130
|
-
/** The PCO is considered as a roof? */
|
131
|
-
roof: boolean;
|
132
|
-
|
133
|
-
/** The PCO is considered as overhead? */
|
134
|
-
overhead: boolean;
|
135
|
-
|
136
|
-
/** The occlusion object for this PCO */
|
137
|
-
occlusion: object;
|
138
|
-
|
139
|
-
/** The data texture values */
|
140
|
-
texture: PIXI.RenderTexture;
|
141
|
-
}
|
142
|
-
}
|
143
|
-
}
|