@league-of-foundry-developers/foundry-vtt-types 9.280.1 → 12.331.1-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 +21 -18
- package/index-lenient.d.mts +7 -0
- package/index.d.mts +5 -0
- package/package.json +67 -39
- package/src/foundry/client/apps/app.d.mts +595 -0
- package/src/foundry/client/apps/av/av-config.d.mts +93 -0
- package/src/foundry/client/apps/av/cameras.d.mts +189 -0
- package/src/foundry/client/apps/av/index.d.mts +3 -0
- package/src/foundry/client/apps/dialogs/folder-export.d.mts +16 -0
- package/src/foundry/client/apps/dialogs/index.d.mts +1 -0
- package/src/foundry/client/apps/form.d.mts +469 -0
- package/src/foundry/client/apps/forms/actor.d.mts +176 -0
- package/src/foundry/client/apps/forms/adventure-exporter.d.mts +132 -0
- package/src/foundry/client/apps/forms/adventure-importer.d.mts +85 -0
- package/src/foundry/client/apps/forms/base-sheet.d.mts +45 -0
- package/src/foundry/client/apps/forms/card-config.d.mts +48 -0
- package/src/foundry/client/apps/forms/cards-config.d.mts +141 -0
- package/src/foundry/client/apps/forms/combat-config.d.mts +51 -0
- package/src/foundry/client/apps/forms/combatant-config.d.mts +45 -0
- package/src/foundry/client/apps/forms/default-sheets-config.d.mts +46 -0
- package/src/foundry/client/apps/forms/effect-config.d.mts +77 -0
- package/src/foundry/client/apps/forms/folder-config.d.mts +60 -0
- package/src/foundry/client/apps/forms/fonts.d.mts +168 -0
- package/src/foundry/client/apps/forms/grid-config.d.mts +144 -0
- package/src/foundry/client/apps/forms/image-popout.d.mts +179 -0
- package/src/foundry/client/apps/forms/index.d.mts +26 -0
- package/src/foundry/client/apps/forms/item.d.mts +58 -0
- package/src/foundry/client/apps/forms/journal-page-sheet.d.mts +313 -0
- package/src/foundry/client/apps/forms/journal-sheet.d.mts +312 -0
- package/src/foundry/client/apps/forms/macro-config.d.mts +59 -0
- package/src/foundry/client/apps/forms/measure-template.d.mts +59 -0
- package/src/foundry/client/apps/forms/ownership.d.mts +66 -0
- package/src/foundry/client/apps/forms/playlist-config.d.mts +46 -0
- package/src/foundry/client/apps/forms/playlist-sound-config.d.mts +63 -0
- package/src/foundry/client/apps/forms/roll-table-config.d.mts +160 -0
- package/src/foundry/client/apps/forms/scene-config.d.mts +157 -0
- package/src/foundry/client/apps/forms/sheet-config.d.mts +202 -0
- package/src/foundry/client/apps/forms/user-config.d.mts +71 -0
- package/src/foundry/client/apps/hud/chatbubble.d.mts +113 -0
- package/src/foundry/client/apps/hud/container.d.mts +54 -0
- package/src/foundry/client/apps/hud/controls.d.mts +166 -0
- package/src/foundry/client/apps/hud/hotbar.d.mts +169 -0
- package/src/foundry/client/apps/hud/hud.d.mts +87 -0
- package/src/foundry/client/apps/hud/index.d.mts +9 -0
- package/src/foundry/client/apps/hud/menu.d.mts +77 -0
- package/src/foundry/client/apps/hud/navigation.d.mts +116 -0
- package/src/foundry/client/apps/hud/pause.d.mts +32 -0
- package/src/foundry/client/apps/hud/players.d.mts +82 -0
- package/src/foundry/client/apps/i18n.d.mts +162 -0
- package/src/foundry/client/apps/index.d.mts +10 -0
- package/src/foundry/client/apps/placeables/drawing-config.d.mts +80 -0
- package/src/foundry/client/apps/placeables/drawing-hud.d.mts +31 -0
- package/src/foundry/client/apps/placeables/index.d.mts +10 -0
- package/src/foundry/client/apps/placeables/light-config.d.mts +100 -0
- package/src/foundry/client/apps/placeables/note-config.d.mts +65 -0
- package/src/foundry/client/apps/placeables/sound-config.d.mts +43 -0
- package/src/foundry/client/apps/placeables/tile-config.d.mts +54 -0
- package/src/foundry/client/apps/placeables/tile-hud.d.mts +37 -0
- package/src/foundry/client/apps/placeables/token-config.d.mts +244 -0
- package/src/foundry/client/apps/placeables/token-hud.d.mts +134 -0
- package/src/foundry/client/apps/placeables/wall-config.d.mts +63 -0
- package/src/foundry/client/apps/sidebar/apps/chat-popout.d.mts +39 -0
- package/src/foundry/client/apps/sidebar/apps/client-settings.d.mts +98 -0
- package/src/foundry/client/apps/sidebar/apps/compendium.d.mts +93 -0
- package/src/foundry/client/apps/sidebar/apps/index.d.mts +10 -0
- package/src/foundry/client/apps/sidebar/apps/invitation-links.d.mts +32 -0
- package/src/foundry/client/apps/sidebar/apps/keybindings-config.d.mts +180 -0
- package/src/foundry/client/apps/sidebar/apps/module-management.d.mts +135 -0
- package/src/foundry/client/apps/sidebar/apps/permission-config.d.mts +72 -0
- package/src/foundry/client/apps/sidebar/apps/support-details.d.mts +121 -0
- package/src/foundry/client/apps/sidebar/apps/tours-management.d.mts +54 -0
- package/src/foundry/client/apps/sidebar/apps/world-config.d.mts +57 -0
- package/src/foundry/client/apps/sidebar/directory-tab-mixin.d.mts +276 -0
- package/src/foundry/client/apps/sidebar/document-directory.d.mts +164 -0
- package/src/foundry/client/apps/sidebar/index.d.mts +7 -0
- package/src/foundry/client/apps/sidebar/package-configuration.d.mts +86 -0
- package/src/foundry/client/apps/sidebar/sidebar-tab.d.mts +80 -0
- package/src/foundry/client/apps/sidebar/sidebar.d.mts +95 -0
- package/src/foundry/client/apps/sidebar/tabs/actors-directory.d.mts +20 -0
- package/src/foundry/client/apps/sidebar/tabs/cards-directory.d.mts +12 -0
- package/src/foundry/client/apps/sidebar/tabs/chat-log.d.mts +364 -0
- package/src/foundry/client/apps/sidebar/tabs/combat-tracker.d.mts +156 -0
- package/src/foundry/client/apps/sidebar/tabs/compendium-directory.d.mts +105 -0
- package/src/foundry/client/apps/sidebar/tabs/index.d.mts +12 -0
- package/src/foundry/client/apps/sidebar/tabs/items-directory.d.mts +14 -0
- package/src/foundry/client/apps/sidebar/tabs/journal-directory.d.mts +13 -0
- package/src/foundry/client/apps/sidebar/tabs/macros-directory.d.mts +16 -0
- package/src/foundry/client/apps/sidebar/tabs/playlists-directory.d.mts +275 -0
- package/src/foundry/client/apps/sidebar/tabs/roll-table-directory.d.mts +13 -0
- package/src/foundry/client/apps/sidebar/tabs/scenes-directory.d.mts +34 -0
- package/src/foundry/client/apps/sidebar/tabs/settings.d.mts +72 -0
- package/src/foundry/client/apps/templates.d.mts +546 -0
- package/src/foundry/client/audio/audio.d.mts +390 -0
- package/src/foundry/client/audio/container.d.mts +176 -0
- package/src/foundry/client/audio/index.d.mts +3 -0
- package/src/foundry/client/audio/sound.d.mts +307 -0
- package/src/foundry/client/av/client.d.mts +162 -0
- package/src/foundry/client/av/clients/index.d.mts +1 -0
- package/src/foundry/client/av/clients/simplepeer.d.mts +155 -0
- package/src/foundry/client/av/index.d.mts +4 -0
- package/src/foundry/client/av/master.d.mts +191 -0
- package/src/foundry/client/av/settings.d.mts +315 -0
- package/src/foundry/client/config.d.mts +2856 -0
- package/src/foundry/client/core/clipboard.d.mts +20 -0
- package/src/foundry/client/core/document-index.d.mts +118 -0
- package/src/foundry/client/core/gamepad.d.mts +62 -0
- package/src/foundry/client/core/hooks.d.mts +132 -0
- package/src/foundry/client/core/image.d.mts +190 -0
- package/src/foundry/client/core/index.d.mts +20 -0
- package/src/foundry/client/core/issues.d.mts +102 -0
- package/src/foundry/client/core/keybindings.d.mts +312 -0
- package/src/foundry/client/core/keyboard.d.mts +224 -0
- package/src/foundry/client/core/mouse.d.mts +28 -0
- package/src/foundry/client/core/nue.d.mts +38 -0
- package/src/foundry/client/core/packages.d.mts +185 -0
- package/src/foundry/client/core/settings.d.mts +260 -0
- package/src/foundry/client/core/socket.d.mts +16 -0
- package/src/foundry/client/core/sorting.d.mts +76 -0
- package/src/foundry/client/core/time.d.mts +73 -0
- package/src/foundry/client/core/tooltip.d.mts +198 -0
- package/src/foundry/client/core/tour.d.mts +279 -0
- package/src/foundry/client/core/tours.d.mts +22 -0
- package/src/foundry/client/core/utils.d.mts +71 -0
- package/src/foundry/client/core/video.d.mts +161 -0
- package/src/foundry/client/core/workers.d.mts +128 -0
- package/src/foundry/client/data/abstract/canvas-document.d.mts +63 -0
- package/src/foundry/client/data/abstract/client-document.d.mts +717 -0
- package/src/foundry/client/data/abstract/directory-collection-mixin.d.mts +135 -0
- package/src/foundry/client/data/abstract/document-collection.d.mts +204 -0
- package/src/foundry/client/data/abstract/index.d.mts +5 -0
- package/src/foundry/client/data/abstract/world-collection.d.mts +171 -0
- package/src/foundry/client/data/collections/actors.d.mts +41 -0
- package/src/foundry/client/data/collections/cards.d.mts +12 -0
- package/src/foundry/client/data/collections/combats.d.mts +43 -0
- package/src/foundry/client/data/collections/compendium-collection.d.mts +504 -0
- package/src/foundry/client/data/collections/compendium-folders.d.mts +13 -0
- package/src/foundry/client/data/collections/compendium-packs.d.mts +27 -0
- package/src/foundry/client/data/collections/fog.d.mts +17 -0
- package/src/foundry/client/data/collections/folder.d.mts +27 -0
- package/src/foundry/client/data/collections/index.d.mts +17 -0
- package/src/foundry/client/data/collections/items.d.mts +14 -0
- package/src/foundry/client/data/collections/journal.d.mts +62 -0
- package/src/foundry/client/data/collections/macros.d.mts +32 -0
- package/src/foundry/client/data/collections/messages.d.mts +35 -0
- package/src/foundry/client/data/collections/playlists.d.mts +34 -0
- package/src/foundry/client/data/collections/scenes.d.mts +68 -0
- package/src/foundry/client/data/collections/settings.d.mts +29 -0
- package/src/foundry/client/data/collections/tables.d.mts +21 -0
- package/src/foundry/client/data/collections/users.d.mts +50 -0
- package/src/foundry/client/data/documents/active-effect.d.mts +348 -0
- package/src/foundry/client/data/documents/actor-delta.d.mts +88 -0
- package/src/foundry/client/data/documents/actor.d.mts +301 -0
- package/src/foundry/client/data/documents/adventure.d.mts +94 -0
- package/src/foundry/client/data/documents/ambient-light.d.mts +32 -0
- package/src/foundry/client/data/documents/ambient-sound.d.mts +19 -0
- package/src/foundry/client/data/documents/card.d.mts +115 -0
- package/src/foundry/client/data/documents/cards.d.mts +342 -0
- package/src/foundry/client/data/documents/chat-message.d.mts +218 -0
- package/src/foundry/client/data/documents/combat.d.mts +315 -0
- package/src/foundry/client/data/documents/combatant.d.mts +90 -0
- package/src/foundry/client/data/documents/drawing.d.mts +24 -0
- package/src/foundry/client/data/documents/fog-exploration.d.mts +51 -0
- package/src/foundry/client/data/documents/folder.d.mts +123 -0
- package/src/foundry/client/data/documents/index.d.mts +30 -0
- package/src/foundry/client/data/documents/item.d.mts +55 -0
- package/src/foundry/client/data/documents/journal-entry-page.d.mts +219 -0
- package/src/foundry/client/data/documents/journal-entry.d.mts +71 -0
- package/src/foundry/client/data/documents/macro.d.mts +73 -0
- package/src/foundry/client/data/documents/measured-template.d.mts +29 -0
- package/src/foundry/client/data/documents/note.d.mts +35 -0
- package/src/foundry/client/data/documents/playlist-sound.d.mts +114 -0
- package/src/foundry/client/data/documents/playlist.d.mts +196 -0
- package/src/foundry/client/data/documents/scene.d.mts +228 -0
- package/src/foundry/client/data/documents/setting.d.mts +43 -0
- package/src/foundry/client/data/documents/table-result.d.mts +29 -0
- package/src/foundry/client/data/documents/table.d.mts +310 -0
- package/src/foundry/client/data/documents/tile.d.mts +21 -0
- package/src/foundry/client/data/documents/token.d.mts +342 -0
- package/src/foundry/client/data/documents/user.d.mts +153 -0
- package/src/foundry/client/data/documents/wall.d.mts +19 -0
- package/src/foundry/client/data/index.d.mts +3 -0
- package/src/foundry/client/game.d.mts +702 -0
- package/src/foundry/client/head.d.mts +87 -0
- package/src/foundry/client/hooks.d.mts +1184 -0
- package/src/foundry/client/index.d.mts +13 -0
- package/src/foundry/client/pixi/board.d.mts +927 -0
- package/src/foundry/client/pixi/core/containers/base-canvas-group.d.mts +83 -0
- package/src/foundry/client/pixi/core/containers/cached-container.d.mts +116 -0
- package/src/foundry/client/pixi/core/containers/full-canvas-container.d.mts +35 -0
- package/src/foundry/client/pixi/core/containers/index.d.mts +8 -0
- package/src/foundry/client/pixi/core/containers/point-source-mesh.d.mts +62 -0
- package/src/foundry/client/pixi/core/containers/quad-mesh.d.mts +43 -0
- package/src/foundry/client/pixi/core/containers/quadtree.d.mts +199 -0
- package/src/foundry/client/pixi/core/containers/sprite-mesh.d.mts +326 -0
- package/src/foundry/client/pixi/core/containers/unbound-container.d.mts +21 -0
- package/src/foundry/client/pixi/core/index.d.mts +4 -0
- package/src/foundry/client/pixi/core/interaction/canvas-animation.d.mts +160 -0
- package/src/foundry/client/pixi/core/interaction/control-icon.d.mts +80 -0
- package/src/foundry/client/pixi/core/interaction/index.d.mts +8 -0
- package/src/foundry/client/pixi/core/interaction/mouse-handler.d.mts +264 -0
- package/src/foundry/client/pixi/core/interaction/ping.d.mts +58 -0
- package/src/foundry/client/pixi/core/interaction/pings/chevron.d.mts +73 -0
- package/src/foundry/client/pixi/core/interaction/pings/index.d.mts +2 -0
- package/src/foundry/client/pixi/core/interaction/pings/pulse.d.mts +115 -0
- package/src/foundry/client/pixi/core/interaction/render-flags.d.mts +103 -0
- package/src/foundry/client/pixi/core/interaction/resize-handle.d.mts +52 -0
- package/src/foundry/client/pixi/core/interaction/targets.d.mts +45 -0
- package/src/foundry/client/pixi/core/loader.d.mts +206 -0
- package/src/foundry/client/pixi/core/shapes/index.d.mts +6 -0
- package/src/foundry/client/pixi/core/shapes/limited-angle-polygon.d.mts +119 -0
- package/src/foundry/client/pixi/core/shapes/polygon-helpers.d.mts +31 -0
- package/src/foundry/client/pixi/core/shapes/polygon-mesher.d.mts +110 -0
- package/src/foundry/client/pixi/core/shapes/precise-text.d.mts +27 -0
- package/src/foundry/client/pixi/core/shapes/ray.d.mts +165 -0
- package/src/foundry/client/pixi/core/shapes/source-polygon.d.mts +251 -0
- package/src/foundry/client/pixi/extensions/circle.d.mts +130 -0
- package/src/foundry/client/pixi/extensions/index.d.mts +3 -0
- package/src/foundry/client/pixi/extensions/polygon.d.mts +152 -0
- package/src/foundry/client/pixi/extensions/rectangle.d.mts +226 -0
- package/src/foundry/client/pixi/groups/effects.d.mts +189 -0
- package/src/foundry/client/pixi/groups/environment.d.mts +80 -0
- package/src/foundry/client/pixi/groups/hidden.d.mts +40 -0
- package/src/foundry/client/pixi/groups/index.d.mts +7 -0
- package/src/foundry/client/pixi/groups/interface.d.mts +74 -0
- package/src/foundry/client/pixi/groups/overlay.d.mts +18 -0
- package/src/foundry/client/pixi/groups/primary.d.mts +207 -0
- package/src/foundry/client/pixi/groups/rendered.d.mts +18 -0
- package/src/foundry/client/pixi/index.d.mts +10 -0
- package/src/foundry/client/pixi/layers/base/canvas-layer.d.mts +79 -0
- package/src/foundry/client/pixi/layers/base/index.d.mts +3 -0
- package/src/foundry/client/pixi/layers/base/interaction-layer.d.mts +139 -0
- package/src/foundry/client/pixi/layers/base/placeables-layer.d.mts +598 -0
- package/src/foundry/client/pixi/layers/controls/cursor.d.mts +27 -0
- package/src/foundry/client/pixi/layers/controls/door.d.mts +70 -0
- package/src/foundry/client/pixi/layers/controls/hud.d.mts +114 -0
- package/src/foundry/client/pixi/layers/controls/index.d.mts +5 -0
- package/src/foundry/client/pixi/layers/controls/layer.d.mts +229 -0
- package/src/foundry/client/pixi/layers/controls/ruler.d.mts +316 -0
- package/src/foundry/client/pixi/layers/effects/background-effects.d.mts +34 -0
- package/src/foundry/client/pixi/layers/effects/coloration-effects.d.mts +27 -0
- package/src/foundry/client/pixi/layers/effects/illumination-effects.d.mts +74 -0
- package/src/foundry/client/pixi/layers/effects/index.d.mts +6 -0
- package/src/foundry/client/pixi/layers/effects/visibility.d.mts +194 -0
- package/src/foundry/client/pixi/layers/effects/weather/particles/effect.d.mts +47 -0
- package/src/foundry/client/pixi/layers/effects/weather/particles/index.d.mts +2 -0
- package/src/foundry/client/pixi/layers/effects/weather/particles/leaves.d.mts +20 -0
- package/src/foundry/client/pixi/layers/effects/weather-effects.d.mts +172 -0
- package/src/foundry/client/pixi/layers/grid/highlight.d.mts +32 -0
- package/src/foundry/client/pixi/layers/grid/index.d.mts +2 -0
- package/src/foundry/client/pixi/layers/grid/layer.d.mts +225 -0
- package/src/foundry/client/pixi/layers/index.d.mts +6 -0
- package/src/foundry/client/pixi/layers/masks/depth.d.mts +37 -0
- package/src/foundry/client/pixi/layers/masks/index.d.mts +3 -0
- package/src/foundry/client/pixi/layers/masks/occlusion.d.mts +55 -0
- package/src/foundry/client/pixi/layers/masks/vision.d.mts +85 -0
- package/src/foundry/client/pixi/layers/placeables/drawings.d.mts +92 -0
- package/src/foundry/client/pixi/layers/placeables/index.d.mts +8 -0
- package/src/foundry/client/pixi/layers/placeables/lighting.d.mts +137 -0
- package/src/foundry/client/pixi/layers/placeables/notes.d.mts +99 -0
- package/src/foundry/client/pixi/layers/placeables/sounds.d.mts +129 -0
- package/src/foundry/client/pixi/layers/placeables/templates.d.mts +60 -0
- package/src/foundry/client/pixi/layers/placeables/tiles.d.mts +114 -0
- package/src/foundry/client/pixi/layers/placeables/tokens.d.mts +180 -0
- package/src/foundry/client/pixi/layers/placeables/walls.d.mts +210 -0
- package/src/foundry/client/pixi/perception/clockwise-sweep.d.mts +169 -0
- package/src/foundry/client/pixi/perception/color-manager.d.mts +86 -0
- package/src/foundry/client/pixi/perception/detection-mode.d.mts +196 -0
- package/src/foundry/client/pixi/perception/fog.d.mts +102 -0
- package/src/foundry/client/pixi/perception/index.d.mts +7 -0
- package/src/foundry/client/pixi/perception/perception-manager.d.mts +166 -0
- package/src/foundry/client/pixi/perception/vision-mode.d.mts +197 -0
- package/src/foundry/client/pixi/perception/weiler-atherton-clipping.d.mts +152 -0
- package/src/foundry/client/pixi/placeable.d.mts +586 -0
- package/src/foundry/client/pixi/placeables/drawing.d.mts +292 -0
- package/src/foundry/client/pixi/placeables/index.d.mts +9 -0
- package/src/foundry/client/pixi/placeables/light.d.mts +140 -0
- package/src/foundry/client/pixi/placeables/note.d.mts +114 -0
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/drawing-shape.d.mts +143 -0
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/index.d.mts +5 -0
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/occludable-object.d.mts +175 -0
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-canvas-object.d.mts +159 -0
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/tile-mesh.d.mts +52 -0
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/token-mesh.d.mts +62 -0
- package/src/foundry/client/pixi/placeables/sound.d.mts +133 -0
- package/src/foundry/client/pixi/placeables/template.d.mts +211 -0
- package/src/foundry/client/pixi/placeables/tile.d.mts +284 -0
- package/src/foundry/client/pixi/placeables/token.d.mts +825 -0
- package/src/foundry/client/pixi/placeables/wall.d.mts +275 -0
- package/src/foundry/client/pixi/webgl/extensions/batch-renderer.d.mts +60 -0
- package/src/foundry/client/pixi/webgl/extensions/batch-shader-generator.d.mts +21 -0
- package/src/foundry/client/pixi/webgl/extensions/blend-modes.d.mts +53 -0
- package/src/foundry/client/pixi/webgl/extensions/index.d.mts +3 -0
- package/src/foundry/client/pixi/webgl/helpers/framebugger-snapshot.d.mts +22 -0
- package/src/foundry/client/pixi/webgl/helpers/index.d.mts +3 -0
- package/src/foundry/client/pixi/webgl/helpers/smooth-noise.d.mts +61 -0
- package/src/foundry/client/pixi/webgl/helpers/texture-extractor.d.mts +80 -0
- package/src/foundry/client/pixi/webgl/index.d.mts +3 -0
- package/src/foundry/client/pixi/webgl/shaders/base.d.mts +691 -0
- package/src/foundry/client/pixi/webgl/shaders/effects/index.d.mts +3 -0
- package/src/foundry/client/pixi/webgl/shaders/effects/lighting.d.mts +642 -0
- package/src/foundry/client/pixi/webgl/shaders/effects/vision.d.mts +216 -0
- package/src/foundry/client/pixi/webgl/shaders/effects/weather/base.d.mts +102 -0
- package/src/foundry/client/pixi/webgl/shaders/effects/weather/effect.d.mts +38 -0
- package/src/foundry/client/pixi/webgl/shaders/effects/weather/fog.d.mts +34 -0
- package/src/foundry/client/pixi/webgl/shaders/effects/weather/index.d.mts +5 -0
- package/src/foundry/client/pixi/webgl/shaders/effects/weather/rain.d.mts +24 -0
- package/src/foundry/client/pixi/webgl/shaders/effects/weather/snow.d.mts +20 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/blur.d.mts +163 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/filters.d.mts +462 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/fxaa.d.mts +74 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/index.d.mts +3 -0
- package/src/foundry/client/pixi/webgl/shaders/index.d.mts +4 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/color-adjustment.d.mts +101 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/fog-of-war.d.mts +16 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/index.d.mts +6 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/inverse-occlusion.d.mts +47 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/invisibility.d.mts +28 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/monochromatic.d.mts +30 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/occlusion.d.mts +69 -0
- package/src/foundry/client/pixi/workers/index.d.mts +1 -0
- package/src/foundry/client/pixi/workers/texture-worker.d.mts +125 -0
- package/src/foundry/client/tours/canvas-tour.d.mts +9 -0
- package/src/foundry/client/tours/index.d.mts +3 -0
- package/src/foundry/client/tours/setup-tour.d.mts +26 -0
- package/src/foundry/client/tours/sidebar-tour.d.mts +9 -0
- package/src/foundry/client/ui/context.d.mts +213 -0
- package/src/foundry/client/ui/dialog.d.mts +326 -0
- package/src/foundry/client/ui/drag.d.mts +128 -0
- package/src/foundry/client/ui/dragdrop.d.mts +124 -0
- package/src/foundry/client/ui/editor.d.mts +546 -0
- package/src/foundry/client/ui/filepicker.d.mts +477 -0
- package/src/foundry/client/ui/filter.d.mts +148 -0
- package/src/foundry/client/ui/forms.d.mts +85 -0
- package/src/foundry/client/ui/index.d.mts +12 -0
- package/src/foundry/client/ui/notifications.d.mts +136 -0
- package/src/foundry/client/ui/prosemirror.d.mts +171 -0
- package/src/foundry/client/ui/secrets.d.mts +75 -0
- package/src/foundry/client/ui/tabs.d.mts +117 -0
- package/src/foundry/client-esm/applications/_module.d.mts +25 -0
- package/src/foundry/client-esm/applications/_types.d.mts +38 -0
- package/src/foundry/client-esm/applications/api/_module.d.mts +9 -0
- package/src/foundry/client-esm/applications/api/application.d.mts +705 -0
- package/src/foundry/client-esm/applications/api/dialog.d.mts +268 -0
- package/src/foundry/client-esm/applications/api/document-sheet.d.mts +119 -0
- package/src/foundry/client-esm/applications/api/handlebars-application.d.mts +180 -0
- package/src/foundry/client-esm/applications/apps/_module.d.mts +7 -0
- package/src/foundry/client-esm/applications/apps/compendium-art-config.d.mts +53 -0
- package/src/foundry/client-esm/applications/apps/permission-config.d.mts +60 -0
- package/src/foundry/client-esm/applications/dice/_module.d.mts +6 -0
- package/src/foundry/client-esm/applications/dice/roll-resolver.d.mts +98 -0
- package/src/foundry/client-esm/applications/elements/_module.d.mts +16 -0
- package/src/foundry/client-esm/applications/elements/color-picker.d.mts +26 -0
- package/src/foundry/client-esm/applications/elements/document-tags.d.mts +90 -0
- package/src/foundry/client-esm/applications/elements/file-picker.d.mts +62 -0
- package/src/foundry/client-esm/applications/elements/form-element.d.mts +106 -0
- package/src/foundry/client-esm/applications/elements/hue-slider.d.mts +20 -0
- package/src/foundry/client-esm/applications/elements/multi-select.d.mts +95 -0
- package/src/foundry/client-esm/applications/elements/prosemirror-editor.d.mts +53 -0
- package/src/foundry/client-esm/applications/elements/range-picker.d.mts +41 -0
- package/src/foundry/client-esm/applications/elements/string-tags.d.mts +73 -0
- package/src/foundry/client-esm/applications/forms/fields.d.mts +219 -0
- package/src/foundry/client-esm/applications/sheets/_module.d.mts +12 -0
- package/src/foundry/client-esm/applications/sheets/actor-sheet.d.mts +31 -0
- package/src/foundry/client-esm/applications/sheets/ambient-light-config.d.mts +18 -0
- package/src/foundry/client-esm/applications/sheets/ambient-sound-config.d.mts +18 -0
- package/src/foundry/client-esm/applications/sheets/item-sheet.d.mts +22 -0
- package/src/foundry/client-esm/applications/sheets/region-behavior-config.d.mts +13 -0
- package/src/foundry/client-esm/applications/sheets/region-config.d.mts +13 -0
- package/src/foundry/client-esm/applications/sheets/user-config.d.mts +18 -0
- package/src/foundry/client-esm/applications/ui/_module.d.mts +6 -0
- package/src/foundry/client-esm/applications/ui/region-legend.d.mts +12 -0
- package/src/foundry/client-esm/audio/_module.d.mts +13 -0
- package/src/foundry/client-esm/audio/_types.d.mts +1 -0
- package/src/foundry/client-esm/canvas/_module.d.mts +11 -0
- package/src/foundry/client-esm/canvas/edges/_module.d.mts +9 -0
- package/src/foundry/client-esm/canvas/edges/collision.d.mts +93 -0
- package/src/foundry/client-esm/canvas/edges/edge.d.mts +184 -0
- package/src/foundry/client-esm/canvas/edges/edges.d.mts +23 -0
- package/src/foundry/client-esm/canvas/edges/vertex.d.mts +134 -0
- package/src/foundry/client-esm/canvas/regions/_module.d.mts +10 -0
- package/src/foundry/client-esm/canvas/scene-manager.d.mts +1 -0
- package/src/foundry/client-esm/canvas/smaa/blend.d.mts +6 -0
- package/src/foundry/client-esm/canvas/smaa/edges.d.mts +6 -0
- package/src/foundry/client-esm/canvas/smaa/smaa.d.mts +56 -0
- package/src/foundry/client-esm/canvas/smaa/weights.d.mts +6 -0
- package/src/foundry/client-esm/canvas/sources/_module.d.mts +15 -0
- package/src/foundry/client-esm/canvas/sources/base-effect-source.d.mts +243 -0
- package/src/foundry/client-esm/canvas/sources/base-light-source.d.mts +162 -0
- package/src/foundry/client-esm/canvas/sources/global-light-source.d.mts +47 -0
- package/src/foundry/client-esm/canvas/sources/point-darkness-source.d.mts +77 -0
- package/src/foundry/client-esm/canvas/sources/point-effect-source.d.mts +91 -0
- package/src/foundry/client-esm/canvas/sources/point-light-source.d.mts +43 -0
- package/src/foundry/client-esm/canvas/sources/point-movement-source.d.mts +15 -0
- package/src/foundry/client-esm/canvas/sources/point-sound-source.d.mts +29 -0
- package/src/foundry/client-esm/canvas/sources/point-vision-source.d.mts +206 -0
- package/src/foundry/client-esm/canvas/sources/rendered-effect-source.d.mts +328 -0
- package/src/foundry/client-esm/canvas/tokens/_module.d.mts +7 -0
- package/src/foundry/client-esm/client.d.mts +291 -0
- package/src/foundry/client-esm/data/_module.d.mts +8 -0
- package/src/foundry/client-esm/data/client-backend.d.mts +52 -0
- package/src/foundry/client-esm/data/region-behaviors/_module.d.mts +14 -0
- package/src/foundry/client-esm/dice/_module.d.mts +13 -0
- package/src/foundry/client-esm/dice/_types.d.mts +61 -0
- package/src/foundry/client-esm/dice/parser.d.mts +205 -0
- package/src/foundry/client-esm/dice/roll.d.mts +645 -0
- package/src/foundry/client-esm/dice/terms/_module.d.mts +17 -0
- package/src/foundry/client-esm/dice/terms/coin.d.mts +68 -0
- package/src/foundry/client-esm/dice/terms/dice.d.mts +381 -0
- package/src/foundry/client-esm/dice/terms/die.d.mts +241 -0
- package/src/foundry/client-esm/dice/terms/fate.d.mts +50 -0
- package/src/foundry/client-esm/dice/terms/function.d.mts +104 -0
- package/src/foundry/client-esm/dice/terms/numeric.d.mts +56 -0
- package/src/foundry/client-esm/dice/terms/operator.d.mts +55 -0
- package/src/foundry/client-esm/dice/terms/parenthetical.d.mts +105 -0
- package/src/foundry/client-esm/dice/terms/pool.d.mts +278 -0
- package/src/foundry/client-esm/dice/terms/string.d.mts +34 -0
- package/src/foundry/client-esm/dice/terms/term.d.mts +160 -0
- package/src/foundry/client-esm/dice/twister.d.mts +134 -0
- package/src/foundry/client-esm/helpers/_module.d.mts +8 -0
- package/src/foundry/client-esm/helpers/_types.d.mts +51 -0
- package/src/foundry/client-esm/helpers/compendium-art.d.mts +47 -0
- package/src/foundry/clipper/clipper.d.mts +927 -0
- package/src/foundry/clipper/index.d.mts +1 -0
- package/src/foundry/common/abstract/_types.d.mts +274 -0
- package/src/foundry/common/abstract/backend.d.mts +190 -0
- package/src/foundry/common/abstract/data.d.mts +457 -0
- package/src/foundry/common/abstract/document.d.mts +1372 -0
- package/src/foundry/common/abstract/embedded-collection-delta.d.mts +96 -0
- package/src/foundry/common/abstract/embedded-collection.d.mts +252 -0
- package/src/foundry/common/abstract/module.d.mts +13 -0
- package/src/foundry/common/abstract/singleton-collection.d.mts +19 -0
- package/src/foundry/common/abstract/socket.d.mts +36 -0
- package/src/foundry/common/abstract/type-data.d.mts +337 -0
- package/src/foundry/common/config.d.mts +302 -0
- package/src/foundry/common/constants.d.mts +2054 -0
- package/src/foundry/common/data/data.d.mts +667 -0
- package/src/foundry/common/data/fields.d.mts +3388 -0
- package/src/foundry/common/data/module.d.mts +9 -0
- package/src/foundry/common/data/validation-failure.d.mts +174 -0
- package/src/foundry/common/data/validators.d.mts +30 -0
- package/src/foundry/common/documents/_module.d.mts +35 -0
- package/src/foundry/common/documents/_types.d.mts +143 -0
- package/src/foundry/common/documents/active-effect.d.mts +229 -0
- package/src/foundry/common/documents/actor-delta.d.mts +132 -0
- package/src/foundry/common/documents/actor.d.mts +209 -0
- package/src/foundry/common/documents/adventure.d.mts +212 -0
- package/src/foundry/common/documents/ambient-light.d.mts +107 -0
- package/src/foundry/common/documents/ambient-sound.d.mts +142 -0
- package/src/foundry/common/documents/card.d.mts +254 -0
- package/src/foundry/common/documents/cards.d.mts +191 -0
- package/src/foundry/common/documents/chat-message.d.mts +208 -0
- package/src/foundry/common/documents/combat.d.mts +124 -0
- package/src/foundry/common/documents/combatant.d.mts +127 -0
- package/src/foundry/common/documents/drawing.d.mts +255 -0
- package/src/foundry/common/documents/fog-exploration.d.mts +110 -0
- package/src/foundry/common/documents/folder.d.mts +130 -0
- package/src/foundry/common/documents/item.d.mts +181 -0
- package/src/foundry/common/documents/journal-entry-page.d.mts +229 -0
- package/src/foundry/common/documents/journal-entry.d.mts +133 -0
- package/src/foundry/common/documents/macro.d.mts +190 -0
- package/src/foundry/common/documents/measured-template.d.mts +183 -0
- package/src/foundry/common/documents/module.d.mts +35 -0
- package/src/foundry/common/documents/note.d.mts +195 -0
- package/src/foundry/common/documents/playlist-sound.d.mts +131 -0
- package/src/foundry/common/documents/playlist.d.mts +160 -0
- package/src/foundry/common/documents/roll-table.d.mts +153 -0
- package/src/foundry/common/documents/scene.d.mts +395 -0
- package/src/foundry/common/documents/setting.d.mts +88 -0
- package/src/foundry/common/documents/table-result.d.mts +157 -0
- package/src/foundry/common/documents/tile.d.mts +204 -0
- package/src/foundry/common/documents/token.d.mts +515 -0
- package/src/foundry/common/documents/user.d.mts +247 -0
- package/src/foundry/common/documents/wall.d.mts +196 -0
- package/src/foundry/common/grid/_module.d.mts +10 -0
- package/src/foundry/common/grid/base.d.mts +640 -0
- package/src/foundry/common/grid/grid-hex.d.mts +55 -0
- package/src/foundry/common/grid/gridless.d.mts +71 -0
- package/src/foundry/common/grid/hexagonal.d.mts +391 -0
- package/src/foundry/common/grid/square.d.mts +100 -0
- package/src/foundry/common/packages/base-module.d.mts +46 -0
- package/src/foundry/common/packages/base-package.d.mts +677 -0
- package/src/foundry/common/packages/base-system.d.mts +90 -0
- package/src/foundry/common/packages/base-world.d.mts +116 -0
- package/src/foundry/common/packages/module.d.mts +28 -0
- package/src/foundry/common/packages/sub-types.d.mts +42 -0
- package/src/foundry/common/primitives/array.d.mts +56 -0
- package/src/foundry/common/primitives/date.d.mts +24 -0
- package/src/foundry/common/primitives/math.d.mts +103 -0
- package/src/foundry/common/primitives/module.d.mts +8 -0
- package/src/foundry/common/primitives/number.d.mts +91 -0
- package/src/foundry/common/primitives/regex.d.mts +12 -0
- package/src/foundry/common/primitives/regexp.d.mts +12 -0
- package/src/foundry/common/primitives/set.d.mts +105 -0
- package/src/foundry/common/primitives/string.d.mts +58 -0
- package/src/foundry/common/primitives/url.d.mts +18 -0
- package/src/foundry/common/prosemirror/_module.d.mts +82 -0
- package/src/foundry/common/prosemirror/click-handler.d.mts +34 -0
- package/src/foundry/common/prosemirror/content-link-plugin.d.mts +47 -0
- package/src/foundry/common/prosemirror/dirty-plugin.d.mts +13 -0
- package/src/foundry/common/prosemirror/dom-parser.d.mts +9 -0
- package/src/foundry/common/prosemirror/dropdown.d.mts +65 -0
- package/src/foundry/common/prosemirror/extensions.d.mts +12 -0
- package/src/foundry/common/prosemirror/highlight-matches-plugin.d.mts +82 -0
- package/src/foundry/common/prosemirror/image-plugin.d.mts +82 -0
- package/src/foundry/common/prosemirror/index.d.mts +22 -0
- package/src/foundry/common/prosemirror/input-rules.d.mts +34 -0
- package/src/foundry/common/prosemirror/keymaps.d.mts +47 -0
- package/src/foundry/common/prosemirror/menu.d.mts +255 -0
- package/src/foundry/common/prosemirror/paste-transformer.d.mts +22 -0
- package/src/foundry/common/prosemirror/plugin.d.mts +24 -0
- package/src/foundry/common/prosemirror/schema/attribute-capture.d.mts +39 -0
- package/src/foundry/common/prosemirror/schema/core.d.mts +51 -0
- package/src/foundry/common/prosemirror/schema/image-link-node.d.mts +29 -0
- package/src/foundry/common/prosemirror/schema/image-node.d.mts +19 -0
- package/src/foundry/common/prosemirror/schema/index.d.mts +12 -0
- package/src/foundry/common/prosemirror/schema/link-mark.d.mts +30 -0
- package/src/foundry/common/prosemirror/schema/lists.d.mts +55 -0
- package/src/foundry/common/prosemirror/schema/marks.d.mts +44 -0
- package/src/foundry/common/prosemirror/schema/other.d.mts +149 -0
- package/src/foundry/common/prosemirror/schema/schema-definition.d.mts +39 -0
- package/src/foundry/common/prosemirror/schema/secret-node.d.mts +27 -0
- package/src/foundry/common/prosemirror/schema/tables.d.mts +106 -0
- package/src/foundry/common/prosemirror/schema/utils.d.mts +37 -0
- package/src/foundry/common/prosemirror/schema.d.mts +138 -0
- package/src/foundry/common/prosemirror/string-serializer.d.mts +120 -0
- package/src/foundry/common/prosemirror/util.d.mts +43 -0
- package/src/foundry/common/types.d.mts +332 -0
- package/src/foundry/common/utils/bitmask.d.mts +110 -0
- package/src/foundry/common/utils/collection.d.mts +176 -0
- package/src/foundry/common/utils/color.d.mts +291 -0
- package/src/foundry/common/utils/event-emitter.d.mts +62 -0
- package/src/foundry/common/utils/geometry.d.mts +198 -0
- package/src/foundry/common/utils/helpers.d.mts +752 -0
- package/src/foundry/common/utils/http.d.mts +52 -0
- package/src/foundry/common/utils/iterable-weak-map.d.mts +80 -0
- package/src/foundry/common/utils/iterable-weak-set.d.mts +47 -0
- package/src/foundry/common/utils/logging.d.mts +42 -0
- package/src/foundry/common/utils/module.d.mts +18 -0
- package/src/foundry/common/utils/semaphore.d.mts +82 -0
- package/src/foundry/common/utils/string-tree.d.mts +95 -0
- package/src/foundry/common/utils/word-tree.d.mts +66 -0
- package/src/foundry/index.d.mts +5 -0
- package/src/foundry/public/index.d.mts +1 -0
- package/src/foundry/public/scripts/earcut-edges/earcut-edges.d.mts +11 -0
- package/src/foundry/public/scripts/earcut-edges/index.d.mts +1 -0
- package/src/foundry/public/scripts/index.d.mts +1 -0
- package/src/index.d.mts +2 -0
- package/src/types/augments/index.d.mts +4 -0
- package/src/types/augments/pixi.d.mts +38 -0
- package/src/types/augments/simple-peer.d.mts +13 -0
- package/src/types/augments/socket.io-client.d.mts +12 -0
- package/src/types/augments/tinyMCE.d.mts +72 -0
- package/src/types/config.d.mts +331 -0
- package/src/types/configuredDocuments.d.mts +103 -0
- package/src/types/helperTypes.d.mts +261 -0
- package/src/types/index.d.mts +4 -0
- package/src/types/utils.d.mts +406 -0
- package/index-lenient.d.ts +0 -10
- package/index.d.ts +0 -4
- package/src/foundry/client/apps/app.d.ts +0 -560
- package/src/foundry/client/apps/av/av-config.d.ts +0 -85
- package/src/foundry/client/apps/av/cameras.d.ts +0 -174
- package/src/foundry/client/apps/av/index.d.ts +0 -3
- package/src/foundry/client/apps/form.d.ts +0 -384
- package/src/foundry/client/apps/forms/actor.d.ts +0 -192
- package/src/foundry/client/apps/forms/card-config.d.ts +0 -51
- package/src/foundry/client/apps/forms/cards-config.d.ts +0 -128
- package/src/foundry/client/apps/forms/combat-config.d.ts +0 -41
- package/src/foundry/client/apps/forms/combatant-config.d.ts +0 -49
- package/src/foundry/client/apps/forms/effect-config.d.ts +0 -65
- package/src/foundry/client/apps/forms/folder-config.d.ts +0 -63
- package/src/foundry/client/apps/forms/grid-config.d.ts +0 -151
- package/src/foundry/client/apps/forms/image-popout.d.ts +0 -166
- package/src/foundry/client/apps/forms/index.d.ts +0 -20
- package/src/foundry/client/apps/forms/item.d.ts +0 -71
- package/src/foundry/client/apps/forms/journal-sheet.d.ts +0 -107
- package/src/foundry/client/apps/forms/macro-config.d.ts +0 -71
- package/src/foundry/client/apps/forms/measure-template.d.ts +0 -53
- package/src/foundry/client/apps/forms/permission.d.ts +0 -58
- package/src/foundry/client/apps/forms/playlist-config.d.ts +0 -43
- package/src/foundry/client/apps/forms/playlist-sound-config.d.ts +0 -61
- package/src/foundry/client/apps/forms/roll-table-config.d.ts +0 -175
- package/src/foundry/client/apps/forms/scene-config.d.ts +0 -148
- package/src/foundry/client/apps/forms/sheet-config.d.ts +0 -184
- package/src/foundry/client/apps/forms/user-config.d.ts +0 -74
- package/src/foundry/client/apps/hud/chatbubble.d.ts +0 -89
- package/src/foundry/client/apps/hud/container.d.ts +0 -46
- package/src/foundry/client/apps/hud/controls.d.ts +0 -156
- package/src/foundry/client/apps/hud/hotbar.d.ts +0 -143
- package/src/foundry/client/apps/hud/hud.d.ts +0 -84
- package/src/foundry/client/apps/hud/index.d.ts +0 -9
- package/src/foundry/client/apps/hud/menu.d.ts +0 -71
- package/src/foundry/client/apps/hud/navigation.d.ts +0 -110
- package/src/foundry/client/apps/hud/pause.d.ts +0 -20
- package/src/foundry/client/apps/hud/players.d.ts +0 -55
- package/src/foundry/client/apps/i18n.d.ts +0 -136
- package/src/foundry/client/apps/index.d.ts +0 -9
- package/src/foundry/client/apps/placeables/drawing-config.d.ts +0 -99
- package/src/foundry/client/apps/placeables/drawing-hud.d.ts +0 -32
- package/src/foundry/client/apps/placeables/index.d.ts +0 -10
- package/src/foundry/client/apps/placeables/light-config.d.ts +0 -95
- package/src/foundry/client/apps/placeables/note-config.d.ts +0 -57
- package/src/foundry/client/apps/placeables/sound-config.d.ts +0 -47
- package/src/foundry/client/apps/placeables/tile-config.d.ts +0 -55
- package/src/foundry/client/apps/placeables/tile-hud.d.ts +0 -37
- package/src/foundry/client/apps/placeables/token-config.d.ts +0 -226
- package/src/foundry/client/apps/placeables/token-hud.d.ts +0 -140
- package/src/foundry/client/apps/placeables/wall-config.d.ts +0 -75
- package/src/foundry/client/apps/sidebar/apps/chat-popout.d.ts +0 -34
- package/src/foundry/client/apps/sidebar/apps/client-settings.d.ts +0 -116
- package/src/foundry/client/apps/sidebar/apps/compendium.d.ts +0 -86
- package/src/foundry/client/apps/sidebar/apps/controls-reference.d.ts +0 -30
- package/src/foundry/client/apps/sidebar/apps/index.d.ts +0 -10
- package/src/foundry/client/apps/sidebar/apps/invitation-links.d.ts +0 -37
- package/src/foundry/client/apps/sidebar/apps/keybindings-config.d.ts +0 -247
- package/src/foundry/client/apps/sidebar/apps/module-management.d.ts +0 -120
- package/src/foundry/client/apps/sidebar/apps/permission-config.d.ts +0 -64
- package/src/foundry/client/apps/sidebar/apps/support-details.d.ts +0 -76
- package/src/foundry/client/apps/sidebar/apps/world-config.d.ts +0 -77
- package/src/foundry/client/apps/sidebar/index.d.ts +0 -5
- package/src/foundry/client/apps/sidebar/sidebar.d.ts +0 -102
- package/src/foundry/client/apps/sidebar/tab-base.d.ts +0 -68
- package/src/foundry/client/apps/sidebar/tab-directory.d.ts +0 -236
- package/src/foundry/client/apps/sidebar/tabs/actors-directory.d.ts +0 -16
- package/src/foundry/client/apps/sidebar/tabs/cards-directory.d.ts +0 -6
- package/src/foundry/client/apps/sidebar/tabs/chat-log.d.ts +0 -351
- package/src/foundry/client/apps/sidebar/tabs/combat-tracker.d.ts +0 -205
- package/src/foundry/client/apps/sidebar/tabs/compendium-directory.d.ts +0 -77
- package/src/foundry/client/apps/sidebar/tabs/index.d.ts +0 -12
- package/src/foundry/client/apps/sidebar/tabs/items-directory.d.ts +0 -10
- package/src/foundry/client/apps/sidebar/tabs/journal-directory.d.ts +0 -11
- package/src/foundry/client/apps/sidebar/tabs/macros-directory.d.ts +0 -12
- package/src/foundry/client/apps/sidebar/tabs/playlists-directory.d.ts +0 -306
- package/src/foundry/client/apps/sidebar/tabs/roll-table-directory.d.ts +0 -9
- package/src/foundry/client/apps/sidebar/tabs/scenes-directory.d.ts +0 -18
- package/src/foundry/client/apps/sidebar/tabs/settings.d.ts +0 -88
- package/src/foundry/client/apps/templates.d.ts +0 -425
- package/src/foundry/client/audio/audio.d.ts +0 -343
- package/src/foundry/client/audio/container.d.ts +0 -175
- package/src/foundry/client/audio/index.d.ts +0 -3
- package/src/foundry/client/audio/sound.d.ts +0 -303
- package/src/foundry/client/av/client.d.ts +0 -158
- package/src/foundry/client/av/clients/index.d.ts +0 -1
- package/src/foundry/client/av/clients/simplepeer.d.ts +0 -151
- package/src/foundry/client/av/index.d.ts +0 -4
- package/src/foundry/client/av/master.d.ts +0 -187
- package/src/foundry/client/av/settings.d.ts +0 -236
- package/src/foundry/client/config.d.ts +0 -1425
- package/src/foundry/client/core/gamepad.d.ts +0 -53
- package/src/foundry/client/core/hooks.d.ts +0 -967
- package/src/foundry/client/core/image.d.ts +0 -129
- package/src/foundry/client/core/index.d.ts +0 -13
- package/src/foundry/client/core/keybindings.d.ts +0 -298
- package/src/foundry/client/core/keyboard.d.ts +0 -247
- package/src/foundry/client/core/mouse.d.ts +0 -18
- package/src/foundry/client/core/nue.d.ts +0 -34
- package/src/foundry/client/core/settings.d.ts +0 -222
- package/src/foundry/client/core/socket.d.ts +0 -46
- package/src/foundry/client/core/sorting.d.ts +0 -78
- package/src/foundry/client/core/time.d.ts +0 -67
- package/src/foundry/client/core/utils.d.ts +0 -33
- package/src/foundry/client/core/video.d.ts +0 -65
- package/src/foundry/client/data/abstract/canvas-document.d.ts +0 -70
- package/src/foundry/client/data/abstract/client-backend.d.ts +0 -206
- package/src/foundry/client/data/abstract/client-document.d.ts +0 -439
- package/src/foundry/client/data/abstract/document-collection.d.ts +0 -192
- package/src/foundry/client/data/abstract/index.d.ts +0 -5
- package/src/foundry/client/data/abstract/world-collection.d.ts +0 -167
- package/src/foundry/client/data/collections/actors.d.ts +0 -35
- package/src/foundry/client/data/collections/cards.d.ts +0 -8
- package/src/foundry/client/data/collections/combats.d.ts +0 -43
- package/src/foundry/client/data/collections/compendium.d.ts +0 -321
- package/src/foundry/client/data/collections/fog.d.ts +0 -7
- package/src/foundry/client/data/collections/folder.d.ts +0 -27
- package/src/foundry/client/data/collections/index.d.ts +0 -15
- package/src/foundry/client/data/collections/items.d.ts +0 -10
- package/src/foundry/client/data/collections/journal.d.ts +0 -26
- package/src/foundry/client/data/collections/macros.d.ts +0 -26
- package/src/foundry/client/data/collections/messages.d.ts +0 -39
- package/src/foundry/client/data/collections/playlists.d.ts +0 -41
- package/src/foundry/client/data/collections/scenes.d.ts +0 -62
- package/src/foundry/client/data/collections/settings.d.ts +0 -25
- package/src/foundry/client/data/collections/tables.d.ts +0 -17
- package/src/foundry/client/data/collections/users.d.ts +0 -43
- package/src/foundry/client/data/documents/active-effect.d.ts +0 -172
- package/src/foundry/client/data/documents/actor.d.ts +0 -231
- package/src/foundry/client/data/documents/ambient-light.d.ts +0 -18
- package/src/foundry/client/data/documents/ambient-sound.d.ts +0 -9
- package/src/foundry/client/data/documents/card.d.ts +0 -133
- package/src/foundry/client/data/documents/cards.d.ts +0 -376
- package/src/foundry/client/data/documents/chat-message.d.ts +0 -267
- package/src/foundry/client/data/documents/combat.d.ts +0 -227
- package/src/foundry/client/data/documents/combatant.d.ts +0 -104
- package/src/foundry/client/data/documents/drawing.d.ts +0 -19
- package/src/foundry/client/data/documents/fog-exploration.d.ts +0 -64
- package/src/foundry/client/data/documents/folder.d.ts +0 -115
- package/src/foundry/client/data/documents/index.d.ts +0 -27
- package/src/foundry/client/data/documents/item.d.ts +0 -59
- package/src/foundry/client/data/documents/journal-entry.d.ts +0 -71
- package/src/foundry/client/data/documents/macro.d.ts +0 -60
- package/src/foundry/client/data/documents/measured-template.d.ts +0 -21
- package/src/foundry/client/data/documents/note.d.ts +0 -19
- package/src/foundry/client/data/documents/playlist-sound.d.ts +0 -117
- package/src/foundry/client/data/documents/playlist.d.ts +0 -192
- package/src/foundry/client/data/documents/scene.d.ts +0 -465
- package/src/foundry/client/data/documents/setting.d.ts +0 -35
- package/src/foundry/client/data/documents/table-result.d.ts +0 -30
- package/src/foundry/client/data/documents/table.d.ts +0 -220
- package/src/foundry/client/data/documents/tile.d.ts +0 -13
- package/src/foundry/client/data/documents/token.d.ts +0 -281
- package/src/foundry/client/data/documents/user.d.ts +0 -155
- package/src/foundry/client/data/documents/wall.d.ts +0 -9
- package/src/foundry/client/data/index.d.ts +0 -3
- package/src/foundry/client/dice/dice/coin.d.ts +0 -49
- package/src/foundry/client/dice/dice/die.d.ts +0 -230
- package/src/foundry/client/dice/dice/fate.d.ts +0 -37
- package/src/foundry/client/dice/dice/index.d.ts +0 -3
- package/src/foundry/client/dice/index.d.ts +0 -5
- package/src/foundry/client/dice/roll.d.ts +0 -495
- package/src/foundry/client/dice/term.d.ts +0 -123
- package/src/foundry/client/dice/terms/dice.d.ts +0 -277
- package/src/foundry/client/dice/terms/index.d.ts +0 -7
- package/src/foundry/client/dice/terms/math.d.ts +0 -69
- package/src/foundry/client/dice/terms/numeric.d.ts +0 -53
- package/src/foundry/client/dice/terms/operator.d.ts +0 -18
- package/src/foundry/client/dice/terms/parenthetical.d.ts +0 -51
- package/src/foundry/client/dice/terms/pool.d.ts +0 -235
- package/src/foundry/client/dice/terms/string.d.ts +0 -31
- package/src/foundry/client/dice/twister.d.ts +0 -134
- package/src/foundry/client/game.d.ts +0 -682
- package/src/foundry/client/head.d.ts +0 -44
- package/src/foundry/client/index.d.ts +0 -12
- package/src/foundry/client/pixi/board.d.ts +0 -632
- package/src/foundry/client/pixi/core/containers/cached-container.d.ts +0 -64
- package/src/foundry/client/pixi/core/containers/index.d.ts +0 -3
- package/src/foundry/client/pixi/core/containers/quadtree.d.ts +0 -166
- package/src/foundry/client/pixi/core/containers/sampler-mesh.d.ts +0 -22
- package/src/foundry/client/pixi/core/culling.d.ts +0 -37
- package/src/foundry/client/pixi/core/index.d.ts +0 -5
- package/src/foundry/client/pixi/core/interaction/canvas-animation.d.ts +0 -148
- package/src/foundry/client/pixi/core/interaction/control-icon.d.ts +0 -58
- package/src/foundry/client/pixi/core/interaction/index.d.ts +0 -5
- package/src/foundry/client/pixi/core/interaction/mouse-handler.d.ts +0 -323
- package/src/foundry/client/pixi/core/interaction/resize-handle.d.ts +0 -48
- package/src/foundry/client/pixi/core/interaction/targets.d.ts +0 -51
- package/src/foundry/client/pixi/core/loader.d.ts +0 -157
- package/src/foundry/client/pixi/core/shapes/index.d.ts +0 -5
- package/src/foundry/client/pixi/core/shapes/normalized-rectangle.d.ts +0 -31
- package/src/foundry/client/pixi/core/shapes/polygon-helpers.d.ts +0 -263
- package/src/foundry/client/pixi/core/shapes/precise-text.d.ts +0 -18
- package/src/foundry/client/pixi/core/shapes/ray.d.ts +0 -200
- package/src/foundry/client/pixi/core/shapes/source-polygon.d.ts +0 -110
- package/src/foundry/client/pixi/groups/effects.d.ts +0 -29
- package/src/foundry/client/pixi/groups/index.d.ts +0 -3
- package/src/foundry/client/pixi/groups/interface.d.ts +0 -27
- package/src/foundry/client/pixi/groups/primary.d.ts +0 -40
- package/src/foundry/client/pixi/index.d.ts +0 -10
- package/src/foundry/client/pixi/layer.d.ts +0 -105
- package/src/foundry/client/pixi/layers/controls/cursor.d.ts +0 -27
- package/src/foundry/client/pixi/layers/controls/door.d.ts +0 -67
- package/src/foundry/client/pixi/layers/controls/hud.d.ts +0 -117
- package/src/foundry/client/pixi/layers/controls/index.d.ts +0 -4
- package/src/foundry/client/pixi/layers/controls/ruler.d.ts +0 -207
- package/src/foundry/client/pixi/layers/controls.d.ts +0 -144
- package/src/foundry/client/pixi/layers/drawings.d.ts +0 -116
- package/src/foundry/client/pixi/layers/effects/effect.d.ts +0 -133
- package/src/foundry/client/pixi/layers/effects/index.d.ts +0 -4
- package/src/foundry/client/pixi/layers/effects/leaves.d.ts +0 -79
- package/src/foundry/client/pixi/layers/effects/rain.d.ts +0 -107
- package/src/foundry/client/pixi/layers/effects/snow.d.ts +0 -62
- package/src/foundry/client/pixi/layers/effects.d.ts +0 -61
- package/src/foundry/client/pixi/layers/grid/grid.d.ts +0 -171
- package/src/foundry/client/pixi/layers/grid/hex.d.ts +0 -118
- package/src/foundry/client/pixi/layers/grid/highlight.d.ts +0 -28
- package/src/foundry/client/pixi/layers/grid/index.d.ts +0 -4
- package/src/foundry/client/pixi/layers/grid/square.d.ts +0 -48
- package/src/foundry/client/pixi/layers/grid.d.ts +0 -204
- package/src/foundry/client/pixi/layers/index.d.ts +0 -15
- package/src/foundry/client/pixi/layers/lighting.d.ts +0 -229
- package/src/foundry/client/pixi/layers/map.d.ts +0 -263
- package/src/foundry/client/pixi/layers/notes.d.ts +0 -64
- package/src/foundry/client/pixi/layers/sight.d.ts +0 -313
- package/src/foundry/client/pixi/layers/sounds.d.ts +0 -112
- package/src/foundry/client/pixi/layers/templates.d.ts +0 -51
- package/src/foundry/client/pixi/layers/tokens.d.ts +0 -169
- package/src/foundry/client/pixi/layers/walls.d.ts +0 -321
- package/src/foundry/client/pixi/perception/clockwise-sweep.d.ts +0 -406
- package/src/foundry/client/pixi/perception/index.d.ts +0 -2
- package/src/foundry/client/pixi/perception/perception-manager.d.ts +0 -107
- package/src/foundry/client/pixi/placeable.d.ts +0 -414
- package/src/foundry/client/pixi/placeables/drawing.d.ts +0 -289
- package/src/foundry/client/pixi/placeables/index.d.ts +0 -8
- package/src/foundry/client/pixi/placeables/light.d.ts +0 -126
- package/src/foundry/client/pixi/placeables/note.d.ts +0 -67
- package/src/foundry/client/pixi/placeables/sound.d.ts +0 -131
- package/src/foundry/client/pixi/placeables/template.d.ts +0 -153
- package/src/foundry/client/pixi/placeables/tile.d.ts +0 -315
- package/src/foundry/client/pixi/placeables/token.d.ts +0 -722
- package/src/foundry/client/pixi/placeables/wall.d.ts +0 -268
- package/src/foundry/client/pixi/placeables.d.ts +0 -520
- package/src/foundry/client/pixi/sources/base-source.d.ts +0 -145
- package/src/foundry/client/pixi/sources/index.d.ts +0 -4
- package/src/foundry/client/pixi/sources/light-source.d.ts +0 -413
- package/src/foundry/client/pixi/sources/sound-source.d.ts +0 -45
- package/src/foundry/client/pixi/sources/vision-source.d.ts +0 -123
- package/src/foundry/client/pixi/webgl/base.d.ts +0 -69
- package/src/foundry/client/pixi/webgl/blend_modes.d.ts +0 -33
- package/src/foundry/client/pixi/webgl/filters.d.ts +0 -182
- package/src/foundry/client/pixi/webgl/index.d.ts +0 -5
- package/src/foundry/client/pixi/webgl/lighting.d.ts +0 -480
- package/src/foundry/client/pixi/webgl/sampler.d.ts +0 -19
- package/src/foundry/client/ui/context.d.ts +0 -136
- package/src/foundry/client/ui/dialog.d.ts +0 -286
- package/src/foundry/client/ui/drag.d.ts +0 -105
- package/src/foundry/client/ui/dragdrop.d.ts +0 -118
- package/src/foundry/client/ui/editor.d.ts +0 -321
- package/src/foundry/client/ui/filepicker.d.ts +0 -510
- package/src/foundry/client/ui/filter.d.ts +0 -106
- package/src/foundry/client/ui/forms.d.ts +0 -47
- package/src/foundry/client/ui/index.d.ts +0 -10
- package/src/foundry/client/ui/notifications.d.ts +0 -110
- package/src/foundry/client/ui/tabs.d.ts +0 -103
- package/src/foundry/common/abstract/backend.mjs.d.ts +0 -253
- package/src/foundry/common/abstract/data.mjs.d.ts +0 -316
- package/src/foundry/common/abstract/document.mjs.d.ts +0 -838
- package/src/foundry/common/abstract/embedded-collection.mjs.d.ts +0 -79
- package/src/foundry/common/abstract/module.mjs.d.ts +0 -6
- package/src/foundry/common/config.mjs/index.d.ts +0 -1
- package/src/foundry/common/config.mjs/releaseData.d.ts +0 -100
- package/src/foundry/common/constants.mjs.d.ts +0 -940
- package/src/foundry/common/data/data.mjs/activeEffectData.d.ts +0 -168
- package/src/foundry/common/data/data.mjs/actorData.d.ts +0 -219
- package/src/foundry/common/data/data.mjs/adventureData.d.ts +0 -166
- package/src/foundry/common/data/data.mjs/ambientLightData.d.ts +0 -154
- package/src/foundry/common/data/data.mjs/ambientSoundData.d.ts +0 -195
- package/src/foundry/common/data/data.mjs/animationData.d.ts +0 -91
- package/src/foundry/common/data/data.mjs/cardData.d.ts +0 -264
- package/src/foundry/common/data/data.mjs/cardFaceData.d.ts +0 -67
- package/src/foundry/common/data/data.mjs/cardsData.d.ts +0 -237
- package/src/foundry/common/data/data.mjs/chatMessageData.d.ts +0 -220
- package/src/foundry/common/data/data.mjs/chatSpeakerData.d.ts +0 -80
- package/src/foundry/common/data/data.mjs/combatData.d.ts +0 -149
- package/src/foundry/common/data/data.mjs/combatantData.d.ts +0 -136
- package/src/foundry/common/data/data.mjs/darknessActivation.d.ts +0 -55
- package/src/foundry/common/data/data.mjs/drawingData.d.ts +0 -407
- package/src/foundry/common/data/data.mjs/effectChangeData.d.ts +0 -80
- package/src/foundry/common/data/data.mjs/effectDurationData.d.ts +0 -109
- package/src/foundry/common/data/data.mjs/fogExplorationData.d.ts +0 -115
- package/src/foundry/common/data/data.mjs/folderData.d.ts +0 -155
- package/src/foundry/common/data/data.mjs/index.d.ts +0 -31
- package/src/foundry/common/data/data.mjs/itemData.d.ts +0 -184
- package/src/foundry/common/data/data.mjs/journalEntryData.d.ts +0 -132
- package/src/foundry/common/data/data.mjs/lightData.d.ts +0 -227
- package/src/foundry/common/data/data.mjs/macroData.d.ts +0 -199
- package/src/foundry/common/data/data.mjs/measuredTemplateData.d.ts +0 -212
- package/src/foundry/common/data/data.mjs/noteData.d.ts +0 -233
- package/src/foundry/common/data/data.mjs/playlistData.d.ts +0 -201
- package/src/foundry/common/data/data.mjs/playlistSoundData.d.ts +0 -159
- package/src/foundry/common/data/data.mjs/prototypeTokenData.d.ts +0 -75
- package/src/foundry/common/data/data.mjs/rollTableData.d.ts +0 -189
- package/src/foundry/common/data/data.mjs/sceneData.d.ts +0 -665
- package/src/foundry/common/data/data.mjs/settingData.d.ts +0 -86
- package/src/foundry/common/data/data.mjs/tableResultData.d.ts +0 -167
- package/src/foundry/common/data/data.mjs/tileData.d.ts +0 -246
- package/src/foundry/common/data/data.mjs/tileOcclusion.d.ts +0 -62
- package/src/foundry/common/data/data.mjs/tokenBarData.d.ts +0 -47
- package/src/foundry/common/data/data.mjs/tokenData.d.ts +0 -505
- package/src/foundry/common/data/data.mjs/userData.d.ts +0 -177
- package/src/foundry/common/data/data.mjs/videoData.d.ts +0 -70
- package/src/foundry/common/data/data.mjs/wallData.d.ts +0 -222
- package/src/foundry/common/data/fields.mjs.d.ts +0 -526
- package/src/foundry/common/data/module.mjs.d.ts +0 -3
- package/src/foundry/common/data/validators.mjs.d.ts +0 -56
- package/src/foundry/common/documents.mjs/baseActiveEffect.d.ts +0 -44
- package/src/foundry/common/documents.mjs/baseActor.d.ts +0 -68
- package/src/foundry/common/documents.mjs/baseAdventure.d.ts +0 -38
- package/src/foundry/common/documents.mjs/baseAmbientLight.d.ts +0 -31
- package/src/foundry/common/documents.mjs/baseAmbientSound.d.ts +0 -29
- package/src/foundry/common/documents.mjs/baseCard.d.ts +0 -58
- package/src/foundry/common/documents.mjs/baseCards.d.ts +0 -39
- package/src/foundry/common/documents.mjs/baseChatMessage.d.ts +0 -49
- package/src/foundry/common/documents.mjs/baseCombat.d.ts +0 -40
- package/src/foundry/common/documents.mjs/baseCombatant.d.ts +0 -48
- package/src/foundry/common/documents.mjs/baseDrawing.d.ts +0 -54
- package/src/foundry/common/documents.mjs/baseFogExploration.d.ts +0 -41
- package/src/foundry/common/documents.mjs/baseFolder.d.ts +0 -30
- package/src/foundry/common/documents.mjs/baseItem.d.ts +0 -57
- package/src/foundry/common/documents.mjs/baseJournalEntry.d.ts +0 -26
- package/src/foundry/common/documents.mjs/baseMacro.d.ts +0 -42
- package/src/foundry/common/documents.mjs/baseMeasuredTemplate.d.ts +0 -66
- package/src/foundry/common/documents.mjs/baseNote.d.ts +0 -39
- package/src/foundry/common/documents.mjs/basePlaylist.d.ts +0 -32
- package/src/foundry/common/documents.mjs/basePlaylistSound.d.ts +0 -37
- package/src/foundry/common/documents.mjs/baseRollTable.d.ts +0 -31
- package/src/foundry/common/documents.mjs/baseScene.d.ts +0 -120
- package/src/foundry/common/documents.mjs/baseSetting.d.ts +0 -38
- package/src/foundry/common/documents.mjs/baseTableResult.d.ts +0 -52
- package/src/foundry/common/documents.mjs/baseTile.d.ts +0 -29
- package/src/foundry/common/documents.mjs/baseToken.d.ts +0 -44
- package/src/foundry/common/documents.mjs/baseUser.d.ts +0 -102
- package/src/foundry/common/documents.mjs/baseWall.d.ts +0 -43
- package/src/foundry/common/documents.mjs/index.d.ts +0 -28
- package/src/foundry/common/module.mjs.d.ts +0 -114
- package/src/foundry/common/packages.mjs/index.d.ts +0 -8
- package/src/foundry/common/packages.mjs/moduleData.d.ts +0 -55
- package/src/foundry/common/packages.mjs/packageAuthorData.d.ts +0 -58
- package/src/foundry/common/packages.mjs/packageCompendiumData.d.ts +0 -88
- package/src/foundry/common/packages.mjs/packageData.d.ts +0 -319
- package/src/foundry/common/packages.mjs/packageDependencyData.d.ts +0 -69
- package/src/foundry/common/packages.mjs/packageLanguageData.d.ts +0 -75
- package/src/foundry/common/packages.mjs/systemData.d.ts +0 -58
- package/src/foundry/common/packages.mjs/tagPackageAvailability.d.ts +0 -9
- package/src/foundry/common/packages.mjs/worldData.d.ts +0 -76
- package/src/foundry/common/types.mjs.d.ts +0 -299
- package/src/foundry/common/utils/collection.mjs.d.ts +0 -151
- package/src/foundry/common/utils/geometry.mjs.d.ts +0 -148
- package/src/foundry/common/utils/helpers.mjs.d.ts +0 -498
- package/src/foundry/common/utils/http.mjs.d.ts +0 -52
- package/src/foundry/common/utils/module.mjs.d.ts +0 -5
- package/src/foundry/common/utils/primitives.mjs.d.ts +0 -287
- package/src/foundry/common/utils/semaphore.mjs.d.ts +0 -83
- package/src/foundry/index.d.ts +0 -3
- package/src/foundry/templates/index.d.ts +0 -1
- package/src/foundry/templates/views/layouts/main.hbs.d.ts +0 -11
- package/src/index.d.ts +0 -2
- package/src/types/augments/index.d.ts +0 -6
- package/src/types/augments/pixiGraphicsSmooth.d.ts +0 -7
- package/src/types/augments/pixiLegacyGraphics.d.ts +0 -7
- package/src/types/augments/pixiParticles.d.ts +0 -7
- package/src/types/augments/simple-peer.d.ts +0 -13
- package/src/types/augments/socket.io-client.d.ts +0 -12
- package/src/types/augments/tinyMCE.d.ts +0 -82
- package/src/types/config.d.ts +0 -183
- package/src/types/helperTypes.d.ts +0 -151
- package/src/types/index.d.ts +0 -3
- package/src/types/utils.d.ts +0 -143
- /package/src/foundry/client/apps/av/{camera-popout.d.ts → camera-popout.d.mts} +0 -0
- /package/src/foundry/client/{tail.d.ts → tail.d.mts} +0 -0
@@ -0,0 +1,927 @@
|
|
1
|
+
import type { InexactPartial } from "../../../types/utils.d.mts";
|
2
|
+
import type Document from "../../common/abstract/document.d.mts";
|
3
|
+
import type { CANVAS_PERFORMANCE_MODES } from "../../common/constants.d.mts";
|
4
|
+
|
5
|
+
declare global {
|
6
|
+
/**
|
7
|
+
* The virtual tabletop environment is implemented using a WebGL powered HTML 5 canvas using the powerful PIXI.js
|
8
|
+
* library. The canvas is comprised by an ordered sequence of layers which define rendering groups and collections of
|
9
|
+
* objects that are drawn on the canvas itself.
|
10
|
+
*
|
11
|
+
* ### Hook Events
|
12
|
+
* {@link hookEvents.canvasConfig}
|
13
|
+
* {@link hookEvents.canvasInit}
|
14
|
+
* {@link hookEvents.canvasReady}
|
15
|
+
* {@link hookEvents.canvasPan}
|
16
|
+
* {@link hookEvents.canvasTearDown}
|
17
|
+
*
|
18
|
+
* @example Canvas State
|
19
|
+
* ```typescript
|
20
|
+
* canvas.ready; // Is the canvas ready for use?
|
21
|
+
* canvas.scene; // The currently viewed Scene document.
|
22
|
+
* canvas.dimensions; // The dimensions of the current Scene.
|
23
|
+
* ```
|
24
|
+
*
|
25
|
+
* @example Canvas Methods
|
26
|
+
* ```typescript
|
27
|
+
* canvas.draw(); // Completely re-draw the game canvas (this is usually unnecessary).
|
28
|
+
* canvas.pan(x, y, zoom); // Pan the canvas to new coordinates and scale.
|
29
|
+
* canvas.recenter(); // Re-center the canvas on the currently controlled Token.
|
30
|
+
* ```
|
31
|
+
*/
|
32
|
+
class Canvas {
|
33
|
+
constructor();
|
34
|
+
|
35
|
+
/**
|
36
|
+
* A perception manager interface for batching lighting, sight, and sound updates
|
37
|
+
*/
|
38
|
+
perception: PerceptionManager;
|
39
|
+
|
40
|
+
/**
|
41
|
+
* A flag to indicate whether a new Scene is currently being drawn.
|
42
|
+
* @defaultValue `false`
|
43
|
+
*/
|
44
|
+
loading: boolean;
|
45
|
+
|
46
|
+
/**
|
47
|
+
* A promise that resolves when the canvas is first initialized and ready.
|
48
|
+
*/
|
49
|
+
initializing: Promise<void> | null;
|
50
|
+
|
51
|
+
/**
|
52
|
+
* Track the last automatic pan time to throttle
|
53
|
+
* @defaultValue `0`
|
54
|
+
*/
|
55
|
+
protected _panTime: number;
|
56
|
+
|
57
|
+
/**
|
58
|
+
* A set of blur filter instances which are modified by the zoom level and the "soft shadows" setting
|
59
|
+
* @defaultValue `[]`
|
60
|
+
*/
|
61
|
+
blurFilters: Set<PIXI.BlurFilter>;
|
62
|
+
|
63
|
+
/**
|
64
|
+
* A reference to the MouseInteractionManager that is currently controlling pointer-based interaction, or null.
|
65
|
+
*/
|
66
|
+
currentMouseManager: MouseInteractionManager<PIXI.Container> | null;
|
67
|
+
|
68
|
+
/**
|
69
|
+
* The current pixel dimensions of the displayed Scene, or null if the Canvas is blank.
|
70
|
+
*/
|
71
|
+
readonly dimensions: SceneDimensions | null;
|
72
|
+
|
73
|
+
/**
|
74
|
+
* Configure options passed to the texture loaded for the Scene.
|
75
|
+
* This object can be configured during the canvasInit hook before textures have been loaded.
|
76
|
+
*/
|
77
|
+
loadTexturesOptions: { expireCache: boolean; additionalSources: string[] };
|
78
|
+
|
79
|
+
/**
|
80
|
+
* Configure options used by the visibility framework for special effects
|
81
|
+
* This object can be configured during the canvasInit hook before visibility is initialized.
|
82
|
+
*/
|
83
|
+
visibilityOptions: { persistentVision: boolean };
|
84
|
+
|
85
|
+
/**
|
86
|
+
* Configure options passed to initialize blur for the Scene and override normal behavior.
|
87
|
+
* This object can be configured during the canvasInit hook before blur is initialized.
|
88
|
+
*/
|
89
|
+
blurOptions:
|
90
|
+
| {
|
91
|
+
enabled: boolean;
|
92
|
+
blurClass: typeof PIXI.BlurFilter;
|
93
|
+
strength: number;
|
94
|
+
passes: number;
|
95
|
+
kernels: number;
|
96
|
+
}
|
97
|
+
| undefined;
|
98
|
+
|
99
|
+
/**
|
100
|
+
* Configure the Textures to apply to the Scene.
|
101
|
+
* Textures registered here will be automatically loaded as part of the TextureLoader.loadSceneTextures workflow.
|
102
|
+
* Textures which need to be loaded should be configured during the "canvasInit" hook.
|
103
|
+
*/
|
104
|
+
sceneTextures: { background?: PIXI.Texture; foreground?: PIXI.Texture; fogOverlay?: PIXI.Texture };
|
105
|
+
|
106
|
+
/**
|
107
|
+
* Record framerate performance data
|
108
|
+
*/
|
109
|
+
fps: {
|
110
|
+
/** @defaultValue `0` */
|
111
|
+
average: number;
|
112
|
+
|
113
|
+
/** @defaultValue `[]` */
|
114
|
+
values: number[];
|
115
|
+
|
116
|
+
/** @defaultValue `0` */
|
117
|
+
render: number;
|
118
|
+
|
119
|
+
/** @defaultValue `document.getElementById("fps")` */
|
120
|
+
element: HTMLElement;
|
121
|
+
};
|
122
|
+
|
123
|
+
/**
|
124
|
+
* The singleton interaction manager instance which handles mouse interaction on the Canvas.
|
125
|
+
*/
|
126
|
+
mouseInteractionManager: MouseInteractionManager<PIXI.Container> | undefined;
|
127
|
+
|
128
|
+
/**
|
129
|
+
* Configured performance settings which affect the behavior of the Canvas and its renderer.
|
130
|
+
* @defaultValue `undefined`
|
131
|
+
*/
|
132
|
+
performance: CanvasPerformanceSettings | undefined;
|
133
|
+
|
134
|
+
/**
|
135
|
+
* A list of supported webGL capabilities and limitations.
|
136
|
+
*/
|
137
|
+
supported: CanvasSupportedComponents;
|
138
|
+
|
139
|
+
/**
|
140
|
+
* Is the photosensitive mode enabled?
|
141
|
+
* @remarks Cached from core settings
|
142
|
+
*/
|
143
|
+
readonly photosensitiveMode: boolean;
|
144
|
+
|
145
|
+
/**
|
146
|
+
* The renderer screen dimensions.
|
147
|
+
* @defaultValue `[0, 0]`
|
148
|
+
*/
|
149
|
+
screenDimensions: [x: number, y: number];
|
150
|
+
|
151
|
+
/**
|
152
|
+
* The singleton Fog of War manager instance.
|
153
|
+
* @internal
|
154
|
+
*/
|
155
|
+
protected _fog: FogManager;
|
156
|
+
|
157
|
+
/**
|
158
|
+
* The singleton color manager instance.
|
159
|
+
*/
|
160
|
+
#colorManager: CanvasColorManager;
|
161
|
+
|
162
|
+
/**
|
163
|
+
* The DragDrop instance which handles interactivity resulting from DragTransfer events.
|
164
|
+
* @defaultValue `undefined`
|
165
|
+
*/
|
166
|
+
#dragDrop: DragDrop | undefined;
|
167
|
+
|
168
|
+
/**
|
169
|
+
* An object of data which caches data which should be persisted across re-draws of the game canvas.
|
170
|
+
*/
|
171
|
+
#reload: {
|
172
|
+
scene: string;
|
173
|
+
layer: string;
|
174
|
+
controlledTokens: string[];
|
175
|
+
targetedTokens: string[];
|
176
|
+
};
|
177
|
+
|
178
|
+
/**
|
179
|
+
* Track the timestamp when the last mouse move event was captured
|
180
|
+
* @defaultValue `0`
|
181
|
+
*/
|
182
|
+
#mouseMoveTime: number;
|
183
|
+
|
184
|
+
/**
|
185
|
+
* The debounce timer in milliseconds for tracking mouse movements on the Canvas.
|
186
|
+
* @defaultValue `100`
|
187
|
+
*/
|
188
|
+
#mouseMoveDebounceMS: number;
|
189
|
+
|
190
|
+
/**
|
191
|
+
* A debounced function which tracks movements of the mouse on the game canvas.
|
192
|
+
* @defaultValue `foundry.utils.debounce(this._onMouseMove.bind(this), this.#mouseMoveDebounceMS)`
|
193
|
+
*/
|
194
|
+
#debounceMouseMove: (event: PIXI.FederatedEvent) => void;
|
195
|
+
|
196
|
+
/**
|
197
|
+
* The singleton PIXI.Application instance rendered on the Canvas.
|
198
|
+
* @defaultValue `undefined`
|
199
|
+
*/
|
200
|
+
readonly app: PIXI.Application | undefined;
|
201
|
+
|
202
|
+
/**
|
203
|
+
* The primary stage container of the PIXI.Application.
|
204
|
+
* @defaultValue `undefined`
|
205
|
+
*/
|
206
|
+
readonly stage: PIXI.Container | undefined;
|
207
|
+
|
208
|
+
/**
|
209
|
+
* The primary Canvas group which generally contains tangible physical objects which exist within the Scene.
|
210
|
+
* This group is a {@link CachedContainer} which is rendered to the Scene as a {@link SpriteMesh}.
|
211
|
+
* This allows the rendered result of the Primary Canvas Group to be affected by a {@link BaseSamplerShader}.
|
212
|
+
* @defaultValue `undefined`
|
213
|
+
*/
|
214
|
+
readonly primary: PrimaryCanvasGroup | undefined;
|
215
|
+
|
216
|
+
/**
|
217
|
+
* The effects Canvas group which modifies the result of the {@link PrimaryCanvasGroup} by adding special effects.
|
218
|
+
* This includes lighting, weather, vision, and other visual effects which modify the appearance of the Scene.
|
219
|
+
* @defaultValue `undefined`
|
220
|
+
*/
|
221
|
+
readonly effects: EffectsCanvasGroup | undefined;
|
222
|
+
|
223
|
+
/**
|
224
|
+
* The interface Canvas group which is rendered above other groups and contains all interactive elements.
|
225
|
+
* The various {@link InteractionLayer} instances of the interface group provide different control sets for
|
226
|
+
* interacting with different types of {@link Document}s which can be represented on the Canvas.
|
227
|
+
* @defaultValue `undefined`
|
228
|
+
*/
|
229
|
+
readonly interface: InterfaceCanvasGroup | undefined;
|
230
|
+
|
231
|
+
/**
|
232
|
+
* The overlay Canvas group which is rendered above other groups and contains elements not bound to stage transform.
|
233
|
+
*/
|
234
|
+
readonly overlay: OverlayCanvasGroup;
|
235
|
+
|
236
|
+
/**
|
237
|
+
* The singleton HeadsUpDisplay container which overlays HTML rendering on top of this Canvas.
|
238
|
+
* @defaultValue `undefined`
|
239
|
+
*/
|
240
|
+
readonly hud: HeadsUpDisplay | undefined;
|
241
|
+
|
242
|
+
/**
|
243
|
+
* Position of the mouse on stage.
|
244
|
+
*/
|
245
|
+
mousePosition: PIXI.Point;
|
246
|
+
|
247
|
+
/**
|
248
|
+
* A flag for whether the game Canvas is fully initialized and ready for additional content to be drawn.
|
249
|
+
*/
|
250
|
+
get initialized(): boolean;
|
251
|
+
|
252
|
+
/** @defaultValue `false` */
|
253
|
+
#initialized: boolean;
|
254
|
+
|
255
|
+
/**
|
256
|
+
* A reference to the currently displayed Scene document, or null if the Canvas is currently blank.
|
257
|
+
*/
|
258
|
+
get scene(): Document.Stored<Scene.ConfiguredInstance> | null;
|
259
|
+
|
260
|
+
/** @defaultValue `null` */
|
261
|
+
#scene: Document.Stored<Scene.ConfiguredInstance> | null;
|
262
|
+
|
263
|
+
/**
|
264
|
+
* A flag for whether the game Canvas is ready to be used. False if the canvas is not yet drawn, true otherwise.
|
265
|
+
*/
|
266
|
+
get ready(): boolean;
|
267
|
+
|
268
|
+
/** @defaultValue `false` */
|
269
|
+
#ready: boolean;
|
270
|
+
|
271
|
+
/**
|
272
|
+
* The fog of war bound to this canvas
|
273
|
+
*/
|
274
|
+
get fog(): FogManager;
|
275
|
+
|
276
|
+
/**
|
277
|
+
* The color manager class bound to this canvas
|
278
|
+
*/
|
279
|
+
get colorManager(): CanvasColorManager;
|
280
|
+
|
281
|
+
/**
|
282
|
+
* The colors bound to this scene and handled by the color manager.
|
283
|
+
*/
|
284
|
+
get colors(): CanvasColorManager["colors"];
|
285
|
+
|
286
|
+
/**
|
287
|
+
* Shortcut to get the masks container from HiddenCanvasGroup.
|
288
|
+
*/
|
289
|
+
get masks(): PIXI.Container;
|
290
|
+
|
291
|
+
/**
|
292
|
+
* The id of the currently displayed Scene.
|
293
|
+
*/
|
294
|
+
get id(): string | null;
|
295
|
+
|
296
|
+
/**
|
297
|
+
* A mapping of named CanvasLayer classes which defines the layers which comprise the Scene.
|
298
|
+
*/
|
299
|
+
static get layers(): typeof CONFIG.Canvas.layers;
|
300
|
+
|
301
|
+
/**
|
302
|
+
* An Array of all CanvasLayer instances which are active on the Canvas board
|
303
|
+
*/
|
304
|
+
get layers(): CanvasLayer[];
|
305
|
+
|
306
|
+
/**
|
307
|
+
* Return a reference to the active Canvas Layer
|
308
|
+
*/
|
309
|
+
get activeLayer(): CanvasLayer | null;
|
310
|
+
|
311
|
+
/**
|
312
|
+
* The currently displayed darkness level, which may override the saved Scene value.
|
313
|
+
*/
|
314
|
+
get darknessLevel(): number;
|
315
|
+
|
316
|
+
/**
|
317
|
+
* Initialize the Canvas by creating the HTML element and PIXI application.
|
318
|
+
* This step should only ever be performed once per client session.
|
319
|
+
* Subsequent requests to reset the canvas should go through Canvas#draw
|
320
|
+
*/
|
321
|
+
initialize(): void;
|
322
|
+
|
323
|
+
/**
|
324
|
+
* Configure the usage of WebGL for the PIXI.Application that will be created.
|
325
|
+
* @throws an Error if WebGL is not supported by this browser environment.
|
326
|
+
*/
|
327
|
+
static #configureWebGL(): void;
|
328
|
+
|
329
|
+
/**
|
330
|
+
* Create the Canvas element which will be the render target for the PIXI.Application instance.
|
331
|
+
* Replace the template element which serves as a placeholder in the initially served HTML response.
|
332
|
+
*/
|
333
|
+
static #createHTMLCanvas(): HTMLCanvasElement;
|
334
|
+
|
335
|
+
/**
|
336
|
+
* Configure the settings used to initialize the PIXI.Application instance.
|
337
|
+
* @returns Options passed to the PIXI.Application constructor.
|
338
|
+
*/
|
339
|
+
static #configureCanvasSettings(): ConstructorParameters<typeof PIXI.Application>[0];
|
340
|
+
|
341
|
+
/**
|
342
|
+
* Initialize custom pixi plugins.
|
343
|
+
*/
|
344
|
+
#initializePlugins(): void;
|
345
|
+
|
346
|
+
/**
|
347
|
+
* Create the PIXI.Application and update references to the created app and stage.
|
348
|
+
* @param canvas - The target canvas view element
|
349
|
+
* @param config - Desired PIXI.Application configuration options
|
350
|
+
*/
|
351
|
+
#createApplication(canvas: HTMLCanvasElement, config: ConstructorParameters<typeof PIXI.Application>[0]): void;
|
352
|
+
|
353
|
+
readonly snapshot?: FramebufferSnapshot;
|
354
|
+
|
355
|
+
/**
|
356
|
+
* Remap premultiplied blend modes/non premultiplied blend modes to fix PIXI bug with custom BM.
|
357
|
+
*/
|
358
|
+
#mapPremultipliedBlendModes(): void;
|
359
|
+
|
360
|
+
/**
|
361
|
+
* Initialize the group containers of the game Canvas.
|
362
|
+
*/
|
363
|
+
#createGroups(parentName: string, parent: PIXI.DisplayObject): void;
|
364
|
+
|
365
|
+
// Group properties are determined by the CanvasGroups type
|
366
|
+
|
367
|
+
/**
|
368
|
+
* TODO: Add a quality parameter
|
369
|
+
* Compute the blur parameters according to grid size and performance mode.
|
370
|
+
* @param options - Blur options.
|
371
|
+
* @remarks The TODO is foundry internal
|
372
|
+
*/
|
373
|
+
protected _initializeBlur(
|
374
|
+
options?: InexactPartial<{
|
375
|
+
enabled: boolean;
|
376
|
+
|
377
|
+
/**
|
378
|
+
* @defaultValue `AlphaBlurFilter`
|
379
|
+
*/
|
380
|
+
blurClass: typeof PIXI.Filter;
|
381
|
+
|
382
|
+
/**
|
383
|
+
* @defaultValue `AlphaBlurFilterPass`
|
384
|
+
*/
|
385
|
+
blurPassClass: typeof PIXI.Filter;
|
386
|
+
|
387
|
+
/**
|
388
|
+
* @defaultValue `this.grid.size / 25`
|
389
|
+
*/
|
390
|
+
strength: number;
|
391
|
+
|
392
|
+
passes: number;
|
393
|
+
|
394
|
+
kernels: number;
|
395
|
+
}>,
|
396
|
+
): void;
|
397
|
+
|
398
|
+
/**
|
399
|
+
* Configure performance settings for hte canvas application based on the selected performance mode.
|
400
|
+
* @internal
|
401
|
+
*/
|
402
|
+
protected _configurePerformanceMode(): CanvasPerformanceSettings;
|
403
|
+
|
404
|
+
/**
|
405
|
+
* Draw the game canvas.
|
406
|
+
* @param scene - A specific Scene document to render on the Canvas
|
407
|
+
* @returns A Promise which resolves once the Canvas is fully drawn
|
408
|
+
*/
|
409
|
+
draw(scene?: Scene.ConfiguredInstance): Promise<this>;
|
410
|
+
|
411
|
+
/**
|
412
|
+
* When re-drawing the canvas, first tear down or discontinue some existing processes
|
413
|
+
*/
|
414
|
+
tearDown(): Promise<void>;
|
415
|
+
|
416
|
+
/**
|
417
|
+
* A special workflow to perform when rendering a blank Canvas with no active Scene.
|
418
|
+
*/
|
419
|
+
#drawBlank(): this;
|
420
|
+
|
421
|
+
/**
|
422
|
+
* Get the value of a GL parameter
|
423
|
+
* @param parameter - The GL parameter to retrieve
|
424
|
+
* @returns The returned value type depends of the parameter to retrieve
|
425
|
+
*/
|
426
|
+
getGLParameter(parameter: string): unknown;
|
427
|
+
|
428
|
+
/**
|
429
|
+
* Once the canvas is drawn, initialize control, visibility, and audio states
|
430
|
+
*/
|
431
|
+
#initialize(): Promise<void>;
|
432
|
+
|
433
|
+
/**
|
434
|
+
* Initialize the starting view of the canvas stage
|
435
|
+
* If we are re-drawing a scene which was previously rendered, restore the prior view position
|
436
|
+
* Otherwise set the view to the top-left corner of the scene at standard scale
|
437
|
+
*/
|
438
|
+
initializeCanvasPosition(): void;
|
439
|
+
|
440
|
+
/**
|
441
|
+
* Initialize a CanvasLayer in the activation state
|
442
|
+
*/
|
443
|
+
#initializeCanvasLayer(): void;
|
444
|
+
|
445
|
+
/**
|
446
|
+
* Initialize a token or set of tokens which should be controlled.
|
447
|
+
* Restore controlled and targeted tokens from before the re-draw.
|
448
|
+
*/
|
449
|
+
#initializeTokenControl(): void;
|
450
|
+
|
451
|
+
// Layers are added to the global `canvas` object via `BaseCanvasMixin##createLayers()`
|
452
|
+
|
453
|
+
readonly weather?: WeatherEffects;
|
454
|
+
|
455
|
+
readonly grid?: GridLayer;
|
456
|
+
|
457
|
+
readonly drawings?: DrawingsLayer;
|
458
|
+
|
459
|
+
readonly templates?: TemplateLayer;
|
460
|
+
|
461
|
+
readonly tiles?: TilesLayer;
|
462
|
+
|
463
|
+
readonly walls?: WallsLayer;
|
464
|
+
|
465
|
+
readonly tokens?: TokenLayer;
|
466
|
+
|
467
|
+
readonly sounds?: SoundsLayer;
|
468
|
+
|
469
|
+
readonly lighting?: LightingLayer;
|
470
|
+
|
471
|
+
readonly notes?: NotesLayer;
|
472
|
+
|
473
|
+
readonly controls?: ControlsLayer;
|
474
|
+
|
475
|
+
/**
|
476
|
+
* Given an embedded object name, get the canvas layer for that object
|
477
|
+
*/
|
478
|
+
getLayerByEmbeddedName<T extends string>(
|
479
|
+
embeddedName: T,
|
480
|
+
): T extends keyof EmbeddedEntityNameToLayerMap ? Exclude<EmbeddedEntityNameToLayerMap[T], undefined> | null : null;
|
481
|
+
|
482
|
+
/**
|
483
|
+
* Get the InteractionLayer of the canvas which manages Documents of a certain collection within the Scene.
|
484
|
+
* @param collectionName - The collection name
|
485
|
+
* @returns The canvas layer
|
486
|
+
*/
|
487
|
+
getCollectionLayer<T extends string>(
|
488
|
+
collectionName: T,
|
489
|
+
): T extends keyof CollectionNameToLayerMap ? Exclude<CollectionNameToLayerMap[T], undefined> : undefined;
|
490
|
+
|
491
|
+
/**
|
492
|
+
* Activate framerate tracking by adding an HTML element to the display and refreshing it every frame.
|
493
|
+
*/
|
494
|
+
activateFPSMeter(): void;
|
495
|
+
|
496
|
+
/**
|
497
|
+
* Deactivate framerate tracking by canceling ticker updates and removing the HTML element.
|
498
|
+
*/
|
499
|
+
deactivateFPSMeter(): void;
|
500
|
+
|
501
|
+
/**
|
502
|
+
* Measure average framerate per second over the past 30 frames
|
503
|
+
*/
|
504
|
+
#measureFPS(): void;
|
505
|
+
|
506
|
+
/**
|
507
|
+
* Pan the canvas to a certain \{x,y\} coordinate and a certain zoom level
|
508
|
+
*/
|
509
|
+
pan({ x, y, scale }?: CanvasViewPosition): void;
|
510
|
+
|
511
|
+
/**
|
512
|
+
* Animate panning the canvas to a certain destination coordinate and zoom scale
|
513
|
+
* Customize the animation speed with additional options
|
514
|
+
* Returns a Promise which is resolved once the animation has completed
|
515
|
+
*
|
516
|
+
* @param view - The desired view parameters
|
517
|
+
* (default: `{}`)
|
518
|
+
* @returns A Promise which resolves once the animation has been completed
|
519
|
+
*/
|
520
|
+
animatePan({
|
521
|
+
x,
|
522
|
+
y,
|
523
|
+
scale,
|
524
|
+
duration,
|
525
|
+
speed,
|
526
|
+
}?: CanvasViewPosition & {
|
527
|
+
/**
|
528
|
+
* The total duration of the animation in milliseconds; used if speed is not set
|
529
|
+
* @defaultValue `250`
|
530
|
+
*/
|
531
|
+
duration?: number;
|
532
|
+
|
533
|
+
/** The speed of animation in pixels per second; overrides duration if set */
|
534
|
+
speed?: number;
|
535
|
+
}): ReturnType<typeof CanvasAnimation.animate>;
|
536
|
+
|
537
|
+
/**
|
538
|
+
* Recenter the canvas with a pan animation that ends in the center of the canvas rectangle.
|
539
|
+
* @param initial - A desired initial position from which to begin the animation
|
540
|
+
* @returns A Promise which resolves once the animation has been completed
|
541
|
+
*/
|
542
|
+
recenter(initial?: CanvasViewPosition): ReturnType<this["animatePan"]>;
|
543
|
+
|
544
|
+
/**
|
545
|
+
* Highlight objects on any layers which are visible
|
546
|
+
*/
|
547
|
+
highlightObjects(active: boolean): void;
|
548
|
+
|
549
|
+
/**
|
550
|
+
* Displays a Ping both locally and on other connected client, following these rules:
|
551
|
+
* 1) Displays on the current canvas Scene
|
552
|
+
* 2) If ALT is held, becomes an ALERT ping
|
553
|
+
* 3) Else if the user is GM and SHIFT is held, becomes a PULL ping
|
554
|
+
* 4) Else is a PULSE ping
|
555
|
+
* @param origin - Point to display Ping at
|
556
|
+
* @param options - Additional options to configure how the ping is drawn.
|
557
|
+
*/
|
558
|
+
ping(origin: Point, options?: PingOptions): Promise<boolean>;
|
559
|
+
|
560
|
+
/**
|
561
|
+
* Get the constrained zoom scale parameter which is allowed by the maxZoom parameter
|
562
|
+
* @param position - The unconstrained position
|
563
|
+
* @returns The constrained position
|
564
|
+
*/
|
565
|
+
#constrainView({ x, y, scale }: CanvasViewPosition): CanvasViewPosition;
|
566
|
+
|
567
|
+
/**
|
568
|
+
* Create a BlurFilter instance and register it to the array for updates when the zoom level changes.
|
569
|
+
* @param blurStrength - The desired blur strength to use for this filter
|
570
|
+
* (default: `CONFIG.Canvas.blurStrength`)
|
571
|
+
*/
|
572
|
+
createBlurFilter(blurStrength?: number): PIXI.BlurFilter;
|
573
|
+
|
574
|
+
/**
|
575
|
+
* Add a filter to the blur filter list. The filter must have the blur property
|
576
|
+
* @param filter - The Filter instance to add
|
577
|
+
* @returns The added filter for method chaining
|
578
|
+
*/
|
579
|
+
addBlurFilter(filter: PIXI.BlurFilter): PIXI.BlurFilter;
|
580
|
+
|
581
|
+
/**
|
582
|
+
* Update the blur strength depending on the scale of the canvas stage
|
583
|
+
* @param strength - Optional blur strength to apply
|
584
|
+
* (default: `this.blur.strength`)
|
585
|
+
*/
|
586
|
+
protected updateBlur(strength?: number): void;
|
587
|
+
|
588
|
+
/**
|
589
|
+
* Convert canvas co-ordinates to the client's viewport.
|
590
|
+
* @param origin - The canvas coordinates.
|
591
|
+
* @returns The corresponding co-ordinates relative to the client's viewport.
|
592
|
+
*/
|
593
|
+
clientCoordinatesFromCanvas(origin: Point): Point;
|
594
|
+
|
595
|
+
/**
|
596
|
+
* Convert client viewport co-ordinates to canvas co-ordinates.
|
597
|
+
* @param origin - The client coordinates.
|
598
|
+
* @returns The corresponding canvas co-ordinates.
|
599
|
+
*/
|
600
|
+
canvasCoordinatesFromClient(origin: Point): Point;
|
601
|
+
|
602
|
+
/**
|
603
|
+
* Determine whether given canvas co-ordinates are off-screen.
|
604
|
+
* @param position - The canvas co-ordinates.
|
605
|
+
* @returns Is the coordinate outside the screen bounds?
|
606
|
+
*/
|
607
|
+
isOffscreen(position: Point): boolean;
|
608
|
+
|
609
|
+
/**
|
610
|
+
* Remove all children of the display object and call one cleaning method:
|
611
|
+
* clean first, then tearDown, and destroy if no cleaning method is found.
|
612
|
+
* @param displayObject - The display object to clean.
|
613
|
+
* @param destroy - If textures should be destroyed.
|
614
|
+
* (default: `true`)
|
615
|
+
*/
|
616
|
+
static clearContainer(displayObject: PIXI.DisplayObject, destroy?: boolean): void;
|
617
|
+
|
618
|
+
/**
|
619
|
+
* Get a texture with the required configuration and clear color.
|
620
|
+
*/
|
621
|
+
static getRenderTexture(
|
622
|
+
options?: InexactPartial<{
|
623
|
+
/**
|
624
|
+
* The clear color to use for this texture. Transparent by default.
|
625
|
+
*/
|
626
|
+
clearColor: number[];
|
627
|
+
|
628
|
+
/**
|
629
|
+
* The render texture configuration.
|
630
|
+
*/
|
631
|
+
textureConfiguration: Parameters<(typeof PIXI.RenderTexture)["create"]>[0];
|
632
|
+
}>,
|
633
|
+
): PIXI.RenderTexture;
|
634
|
+
|
635
|
+
/**
|
636
|
+
* Attach event listeners to the game canvas to handle click and interaction events
|
637
|
+
*/
|
638
|
+
#addListeners(): void;
|
639
|
+
|
640
|
+
/**
|
641
|
+
* Handle mouse movement on the game canvas.
|
642
|
+
* This handler fires on both a throttle and a debounce, ensuring that the final update is always recorded.
|
643
|
+
*/
|
644
|
+
protected _onMouseMove(event: PIXI.FederatedEvent): void;
|
645
|
+
|
646
|
+
/**
|
647
|
+
* Handle left mouse-click events occurring on the Canvas.
|
648
|
+
*/
|
649
|
+
protected _onClickLeft(event: PIXI.FederatedEvent): void;
|
650
|
+
|
651
|
+
/**
|
652
|
+
* Handle double left-click events occurring on the Canvas stage.
|
653
|
+
*/
|
654
|
+
protected _onClickLeft2(event: PIXI.FederatedEvent): void;
|
655
|
+
|
656
|
+
/**
|
657
|
+
* Handle long press events occurring on the Canvas.
|
658
|
+
* @param event - The triggering canvas interaction event.
|
659
|
+
* @param origin - The local canvas coordinates of the mousepress.
|
660
|
+
*/
|
661
|
+
protected _onLongPress(event: PIXI.FederatedEvent, origin: PIXI.Point): void;
|
662
|
+
|
663
|
+
/**
|
664
|
+
* Handle the beginning of a left-mouse drag workflow on the Canvas stage or its active Layer.
|
665
|
+
* @internal
|
666
|
+
*/
|
667
|
+
protected _onDragLeftStart(event: PIXI.FederatedEvent): void;
|
668
|
+
|
669
|
+
/**
|
670
|
+
* Handle mouse movement events occurring on the Canvas.
|
671
|
+
* @internal
|
672
|
+
*/
|
673
|
+
protected _onDragLeftMove(event: PIXI.FederatedEvent): void;
|
674
|
+
|
675
|
+
/**
|
676
|
+
* Handle the conclusion of a left-mouse drag workflow when the mouse button is released.
|
677
|
+
* @internal
|
678
|
+
*/
|
679
|
+
protected _onDragLeftDrop(
|
680
|
+
event: PIXI.FederatedEvent,
|
681
|
+
): ReturnType<PlaceablesLayer.Any["selectObjects"]> | ReturnType<TokenLayer["targetObjects"]> | void;
|
682
|
+
|
683
|
+
/**
|
684
|
+
* Handle the cancellation of a left-mouse drag workflow
|
685
|
+
* @internal
|
686
|
+
*/
|
687
|
+
protected _onDragLeftCancel(event: PointerEvent): PIXI.Graphics | void;
|
688
|
+
|
689
|
+
/**
|
690
|
+
* Handle right mouse-click events occurring on the Canvas stage or it's active layer
|
691
|
+
*/
|
692
|
+
protected _onClickRight(event: PIXI.FederatedEvent): void;
|
693
|
+
|
694
|
+
/**
|
695
|
+
* Handle double right-click events occurring on the Canvas.
|
696
|
+
* @internal
|
697
|
+
*/
|
698
|
+
protected _onClickRight2(event: PIXI.FederatedEvent): void;
|
699
|
+
|
700
|
+
/**
|
701
|
+
* Handle right-mouse drag events occurring on the Canvas.
|
702
|
+
*/
|
703
|
+
protected _onDragRightMove(event: PIXI.FederatedEvent): void;
|
704
|
+
|
705
|
+
/**
|
706
|
+
* Handle the conclusion of a right-mouse drag workflow the Canvas stage.
|
707
|
+
*/
|
708
|
+
protected _onDragRightDrop(event: PIXI.FederatedEvent): void;
|
709
|
+
|
710
|
+
/**
|
711
|
+
* Determine selection coordinate rectangle during a mouse-drag workflow
|
712
|
+
*/
|
713
|
+
protected _onDragSelect(event: PIXI.FederatedEvent): void;
|
714
|
+
|
715
|
+
/**
|
716
|
+
* Pan the canvas view when the cursor position gets close to the edge of the frame
|
717
|
+
* @param event - The originating mouse movement event
|
718
|
+
*/
|
719
|
+
protected _onDragCanvasPan(event: MouseEvent): ReturnType<this["animatePan"]> | void;
|
720
|
+
|
721
|
+
/**
|
722
|
+
* Handle window resizing with the dimensions of the window viewport change
|
723
|
+
* @param event - The Window resize event
|
724
|
+
* (default: `null`)
|
725
|
+
*/
|
726
|
+
protected _onResize(event?: UIEvent | null): false | void;
|
727
|
+
|
728
|
+
/**
|
729
|
+
* Handle mousewheel events which adjust the scale of the canvas
|
730
|
+
* @param event - The mousewheel event that zooms the canvas
|
731
|
+
*/
|
732
|
+
protected _onMouseWheel(event: WheelEvent): void;
|
733
|
+
|
734
|
+
/**
|
735
|
+
* Event handler for the drop portion of a drag-and-drop event.
|
736
|
+
* @internal
|
737
|
+
*/
|
738
|
+
protected _onDrop(event: DragEvent): void;
|
739
|
+
|
740
|
+
/**
|
741
|
+
* Track objects which have pending render flags.
|
742
|
+
*/
|
743
|
+
readonly pendingRenderFlags: {
|
744
|
+
OBJECTS: Set<InstanceType<ReturnType<typeof RenderFlagsMixin>>>;
|
745
|
+
PERCEPTION: Set<InstanceType<ReturnType<typeof RenderFlagsMixin>>>;
|
746
|
+
};
|
747
|
+
|
748
|
+
/**
|
749
|
+
* @deprecated since v10, will be removed in v12
|
750
|
+
* @remarks "canvas.blurDistance is deprecated in favor of canvas.blur.strength"
|
751
|
+
*/
|
752
|
+
get blurDistance(): number;
|
753
|
+
|
754
|
+
/**
|
755
|
+
* @deprecated since v10, will be removed in v12
|
756
|
+
* @remarks "Setting canvas.blurDistance is replaced by setting canvas.blur.strength"
|
757
|
+
*/
|
758
|
+
set blurDistance(value: number);
|
759
|
+
|
760
|
+
/**
|
761
|
+
* @deprecated since v10, will be removed in v12
|
762
|
+
* @remarks "Canvas#activateLayer is deprecated in favor of CanvasLayer#activate"
|
763
|
+
*/
|
764
|
+
activateLayer(
|
765
|
+
layerName:
|
766
|
+
| "grid"
|
767
|
+
| "sight"
|
768
|
+
| "effects"
|
769
|
+
| "controls"
|
770
|
+
| "lighting"
|
771
|
+
| "sounds"
|
772
|
+
| "drawings"
|
773
|
+
| "notes"
|
774
|
+
| "templates"
|
775
|
+
| "background"
|
776
|
+
| "foreground"
|
777
|
+
| "tokens"
|
778
|
+
| "walls",
|
779
|
+
): void;
|
780
|
+
|
781
|
+
/**
|
782
|
+
* @deprecated since v10, will be removed in v12
|
783
|
+
* @remarks "Canvas.getDimensions is deprecated in favor of Scene#getDimensions"
|
784
|
+
*/
|
785
|
+
static getDimensions(data: {
|
786
|
+
width?: number;
|
787
|
+
height?: number;
|
788
|
+
grid: number;
|
789
|
+
gridDistance: number;
|
790
|
+
padding: number;
|
791
|
+
shiftX: number;
|
792
|
+
shiftY: number;
|
793
|
+
}): ReturnType<Scene["getDimensions"]>;
|
794
|
+
|
795
|
+
/**
|
796
|
+
* @deprecated since v10, will be removed in v12
|
797
|
+
* @remarks "Canvas#setBackgroundColor is deprecated in favor of Canvas#colorManager#initialize"
|
798
|
+
*/
|
799
|
+
setBackgroundColor(color: string): void;
|
800
|
+
|
801
|
+
/**
|
802
|
+
* @deprecated since v11, will be removed in v13
|
803
|
+
* @remarks "Canvas#addPendingOperation is deprecated without replacement in v11.
|
804
|
+
* The callback that you have passed as a pending operation has been executed immediately.
|
805
|
+
* We recommend switching your code to use a debounce operation or RenderFlags to de-duplicate overlapping requests."
|
806
|
+
*/
|
807
|
+
addPendingOperation<S, A>(name: string, fn: (this: S, args: A) => void, scope: S, args: A): void;
|
808
|
+
|
809
|
+
/**
|
810
|
+
* @deprecated since v11, will be removed in v13
|
811
|
+
* @remarks "Canvas#triggerPendingOperations is deprecated without replacement in v11 and performs no action."
|
812
|
+
*/
|
813
|
+
triggerPendingOperations(): void;
|
814
|
+
}
|
815
|
+
|
816
|
+
// Most canvas group properties have explicit type definitions, but some are left off
|
817
|
+
interface Canvas extends CanvasGroups {}
|
818
|
+
|
819
|
+
interface CanvasPerformanceSettings {
|
820
|
+
/** The performance mode in CONST.CANVAS_PERFORMANCE_MODES */
|
821
|
+
mode: CANVAS_PERFORMANCE_MODES;
|
822
|
+
|
823
|
+
/** Blur filter configuration */
|
824
|
+
blur: {
|
825
|
+
enabled: boolean;
|
826
|
+
illumination: boolean;
|
827
|
+
};
|
828
|
+
|
829
|
+
/** Whether to use mipmaps, "ON" or "OFF" */
|
830
|
+
mipmap: "ON" | "OFF";
|
831
|
+
|
832
|
+
/** Whether to apply MSAA at the overall canvas level */
|
833
|
+
msaa: boolean;
|
834
|
+
|
835
|
+
/** Maximum framerate which should be the render target */
|
836
|
+
fps: number;
|
837
|
+
|
838
|
+
/** Whether to display token movement animation */
|
839
|
+
tokenAnimation: boolean;
|
840
|
+
|
841
|
+
/** Whether to display light source animation */
|
842
|
+
lightAnimation: boolean;
|
843
|
+
|
844
|
+
/** Whether to render soft edges for light sources */
|
845
|
+
lightSoftEdges: boolean;
|
846
|
+
|
847
|
+
/** Texture configuration */
|
848
|
+
textures: {
|
849
|
+
enabled: boolean;
|
850
|
+
|
851
|
+
maxSize: number;
|
852
|
+
|
853
|
+
p2Steps: number;
|
854
|
+
|
855
|
+
/** @defaultValue `2` */
|
856
|
+
p2StepsMax: number;
|
857
|
+
};
|
858
|
+
}
|
859
|
+
|
860
|
+
interface CanvasSupportedComponents {
|
861
|
+
/** Is WebGL2 supported? */
|
862
|
+
webGL2: boolean;
|
863
|
+
|
864
|
+
/** Is reading pixels in RED format supported? */
|
865
|
+
readPixelsRED: boolean;
|
866
|
+
|
867
|
+
/** Is the OffscreenCanvas supported? */
|
868
|
+
offscreenCanvas: boolean;
|
869
|
+
}
|
870
|
+
|
871
|
+
interface CanvasViewPosition {
|
872
|
+
/**
|
873
|
+
* The x-coordinate which becomes stage.pivot.x
|
874
|
+
*/
|
875
|
+
x?: number | null;
|
876
|
+
|
877
|
+
/**
|
878
|
+
* The y-coordinate which becomes stage.pivot.y
|
879
|
+
*/
|
880
|
+
y?: number | null;
|
881
|
+
|
882
|
+
/**
|
883
|
+
* The zoom level up to CONFIG.Canvas.maxZoom which becomes stage.scale.x and y
|
884
|
+
*/
|
885
|
+
scale?: number | null;
|
886
|
+
}
|
887
|
+
|
888
|
+
namespace Canvas {
|
889
|
+
interface DropPosition {
|
890
|
+
x: number;
|
891
|
+
y: number;
|
892
|
+
}
|
893
|
+
}
|
894
|
+
}
|
895
|
+
|
896
|
+
interface EmbeddedEntityNameToLayerMap {
|
897
|
+
AmbientLight: Canvas["lighting"];
|
898
|
+
AmbientSound: Canvas["sounds"];
|
899
|
+
Drawing: Canvas["drawings"];
|
900
|
+
Note: Canvas["notes"];
|
901
|
+
MeasuredTemplate: Canvas["templates"];
|
902
|
+
Tile: Canvas["tiles"];
|
903
|
+
Token: Canvas["tokens"];
|
904
|
+
Wall: Canvas["walls"];
|
905
|
+
}
|
906
|
+
|
907
|
+
interface CollectionNameToLayerMap {
|
908
|
+
lights: Canvas["lighting"];
|
909
|
+
sounds: Canvas["sounds"];
|
910
|
+
drawings: Canvas["drawings"];
|
911
|
+
notes: Canvas["notes"];
|
912
|
+
templates: Canvas["templates"];
|
913
|
+
tiles: Canvas["tiles"];
|
914
|
+
tokens: Canvas["tokens"];
|
915
|
+
walls: Canvas["walls"];
|
916
|
+
}
|
917
|
+
|
918
|
+
// TODO: Find a way to make this more dynamic
|
919
|
+
interface CanvasGroups {
|
920
|
+
// readonly [GroupName in keyof CONFIG.Canvas.Groups]?: CONFIG.Canvas.Groups[GroupName]["groupClass"];
|
921
|
+
|
922
|
+
readonly hidden?: HiddenCanvasGroup;
|
923
|
+
|
924
|
+
readonly rendered?: RenderedCanvasGroup;
|
925
|
+
|
926
|
+
readonly environment?: EnvironmentCanvasGroup;
|
927
|
+
}
|