@league-of-foundry-developers/foundry-vtt-types 9.280.1 → 12.331.2-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 +37 -20
- 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 +602 -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 +484 -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 +203 -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 +218 -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 +163 -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 +482 -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 +3164 -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 +76 -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 +21 -0
- package/src/foundry/client/core/issues.d.mts +102 -0
- package/src/foundry/client/core/keybindings.d.mts +413 -0
- package/src/foundry/client/core/keyboard.d.mts +271 -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 +201 -0
- package/src/foundry/client/core/settings.d.mts +361 -0
- package/src/foundry/client/core/socket.d.mts +62 -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 +70 -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 +218 -0
- package/src/foundry/client/data/abstract/index.d.mts +5 -0
- package/src/foundry/client/data/abstract/world-collection.d.mts +165 -0
- package/src/foundry/client/data/collections/actors.d.mts +49 -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 +490 -0
- package/src/foundry/client/data/collections/compendium-folders.d.mts +27 -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 +33 -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 +64 -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 +32 -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 +360 -0
- package/src/foundry/client/data/documents/actor-delta.d.mts +99 -0
- package/src/foundry/client/data/documents/actor.d.mts +315 -0
- package/src/foundry/client/data/documents/adventure.d.mts +105 -0
- package/src/foundry/client/data/documents/ambient-light.d.mts +43 -0
- package/src/foundry/client/data/documents/ambient-sound.d.mts +30 -0
- package/src/foundry/client/data/documents/card.d.mts +127 -0
- package/src/foundry/client/data/documents/cards.d.mts +354 -0
- package/src/foundry/client/data/documents/chat-message.d.mts +230 -0
- package/src/foundry/client/data/documents/combat.d.mts +328 -0
- package/src/foundry/client/data/documents/combatant.d.mts +114 -0
- package/src/foundry/client/data/documents/drawing.d.mts +35 -0
- package/src/foundry/client/data/documents/fog-exploration.d.mts +62 -0
- package/src/foundry/client/data/documents/folder.d.mts +135 -0
- package/src/foundry/client/data/documents/index.d.mts +30 -0
- package/src/foundry/client/data/documents/item.d.mts +67 -0
- package/src/foundry/client/data/documents/journal-entry-page.d.mts +231 -0
- package/src/foundry/client/data/documents/journal-entry.d.mts +81 -0
- package/src/foundry/client/data/documents/macro.d.mts +87 -0
- package/src/foundry/client/data/documents/measured-template.d.mts +40 -0
- package/src/foundry/client/data/documents/note.d.mts +46 -0
- package/src/foundry/client/data/documents/playlist-sound.d.mts +127 -0
- package/src/foundry/client/data/documents/playlist.d.mts +207 -0
- package/src/foundry/client/data/documents/scene.d.mts +256 -0
- package/src/foundry/client/data/documents/setting.d.mts +54 -0
- package/src/foundry/client/data/documents/table-result.d.mts +41 -0
- package/src/foundry/client/data/documents/table.d.mts +321 -0
- package/src/foundry/client/data/documents/tile.d.mts +32 -0
- package/src/foundry/client/data/documents/token.d.mts +356 -0
- package/src/foundry/client/data/documents/user.d.mts +164 -0
- package/src/foundry/client/data/documents/wall.d.mts +30 -0
- package/src/foundry/client/data/index.d.mts +3 -0
- package/src/foundry/client/game.d.mts +783 -0
- package/src/foundry/client/head.d.mts +86 -0
- package/src/foundry/client/hooks.d.mts +1234 -0
- package/src/foundry/client/index.d.mts +12 -0
- package/src/foundry/client/pixi/board.d.mts +820 -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 +118 -0
- package/src/foundry/client/pixi/core/containers/full-canvas-container.d.mts +37 -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 +177 -0
- package/src/foundry/client/pixi/core/interaction/control-icon.d.mts +89 -0
- package/src/foundry/client/pixi/core/interaction/index.d.mts +8 -0
- package/src/foundry/client/pixi/core/interaction/mouse-handler.d.mts +291 -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 +126 -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 +246 -0
- package/src/foundry/client/pixi/core/shapes/index.d.mts +5 -0
- package/src/foundry/client/pixi/core/shapes/limited-angle-polygon.d.mts +119 -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 +249 -0
- package/src/foundry/client/pixi/extensions/circle.d.mts +132 -0
- package/src/foundry/client/pixi/extensions/graphics.d.mts +43 -0
- package/src/foundry/client/pixi/extensions/index.d.mts +5 -0
- package/src/foundry/client/pixi/extensions/observable-transform.d.mts +30 -0
- package/src/foundry/client/pixi/extensions/polygon.d.mts +142 -0
- package/src/foundry/client/pixi/extensions/rectangle.d.mts +248 -0
- package/src/foundry/client/pixi/groups/effects.d.mts +186 -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 +200 -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 +95 -0
- package/src/foundry/client/pixi/layers/base/index.d.mts +3 -0
- package/src/foundry/client/pixi/layers/base/interaction-layer.d.mts +162 -0
- package/src/foundry/client/pixi/layers/base/placeables-layer.d.mts +643 -0
- package/src/foundry/client/pixi/layers/controls/cursor.d.mts +33 -0
- package/src/foundry/client/pixi/layers/controls/door.d.mts +68 -0
- package/src/foundry/client/pixi/layers/controls/index.d.mts +4 -0
- package/src/foundry/client/pixi/layers/controls/layer.d.mts +262 -0
- package/src/foundry/client/pixi/layers/controls/ruler.d.mts +475 -0
- package/src/foundry/client/pixi/layers/effects/background-effects.d.mts +50 -0
- package/src/foundry/client/pixi/layers/effects/coloration-effects.d.mts +42 -0
- package/src/foundry/client/pixi/layers/effects/darkness-effects.d.mts +33 -0
- package/src/foundry/client/pixi/layers/effects/illumination-effects.d.mts +151 -0
- package/src/foundry/client/pixi/layers/effects/index.d.mts +7 -0
- package/src/foundry/client/pixi/layers/effects/visibility.d.mts +225 -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 +227 -0
- package/src/foundry/client/pixi/layers/grid/highlight.d.mts +33 -0
- package/src/foundry/client/pixi/layers/grid/index.d.mts +3 -0
- package/src/foundry/client/pixi/layers/grid/layer.d.mts +269 -0
- package/src/foundry/client/pixi/layers/grid/mesh.d.mts +73 -0
- package/src/foundry/client/pixi/layers/index.d.mts +6 -0
- package/src/foundry/client/pixi/layers/masks/depth.d.mts +62 -0
- package/src/foundry/client/pixi/layers/masks/index.d.mts +3 -0
- package/src/foundry/client/pixi/layers/masks/occlusion.d.mts +91 -0
- package/src/foundry/client/pixi/layers/masks/vision.d.mts +116 -0
- package/src/foundry/client/pixi/layers/placeables/drawings.d.mts +111 -0
- package/src/foundry/client/pixi/layers/placeables/index.d.mts +8 -0
- package/src/foundry/client/pixi/layers/placeables/lighting.d.mts +83 -0
- package/src/foundry/client/pixi/layers/placeables/notes.d.mts +110 -0
- package/src/foundry/client/pixi/layers/placeables/sounds.d.mts +320 -0
- package/src/foundry/client/pixi/layers/placeables/templates.d.mts +72 -0
- package/src/foundry/client/pixi/layers/placeables/tiles.d.mts +116 -0
- package/src/foundry/client/pixi/layers/placeables/tokens.d.mts +193 -0
- package/src/foundry/client/pixi/layers/placeables/walls.d.mts +209 -0
- package/src/foundry/client/pixi/perception/clockwise-sweep.d.mts +157 -0
- package/src/foundry/client/pixi/perception/detection-mode.d.mts +212 -0
- package/src/foundry/client/pixi/perception/fog.d.mts +130 -0
- package/src/foundry/client/pixi/perception/index.d.mts +6 -0
- package/src/foundry/client/pixi/perception/perception-manager.d.mts +167 -0
- package/src/foundry/client/pixi/perception/vision-mode.d.mts +202 -0
- package/src/foundry/client/pixi/perception/weiler-atherton-clipping.d.mts +152 -0
- package/src/foundry/client/pixi/placeable.d.mts +631 -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/index.d.mts +4 -0
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-canvas-object.d.mts +177 -0
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-graphics.d.mts +30 -0
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-occludable-object.d.mts +161 -0
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-sprite-mesh.d.mts +111 -0
- package/src/foundry/client/pixi/placeables/sound.d.mts +134 -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 +820 -0
- package/src/foundry/client/pixi/placeables/wall.d.mts +275 -0
- package/src/foundry/client/pixi/webgl/extensions/batch-renderer.d.mts +95 -0
- package/src/foundry/client/pixi/webgl/extensions/batch-shader-generator.d.mts +30 -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 +30 -0
- package/src/foundry/client/pixi/webgl/helpers/index.d.mts +3 -0
- package/src/foundry/client/pixi/webgl/helpers/smooth-noise.d.mts +65 -0
- package/src/foundry/client/pixi/webgl/helpers/texture-extractor.d.mts +90 -0
- package/src/foundry/client/pixi/webgl/index.d.mts +3 -0
- package/src/foundry/client/pixi/webgl/shaders/base-shader-mixin.d.mts +119 -0
- package/src/foundry/client/pixi/webgl/shaders/base-shader.d.mts +94 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/base-filter.d.mts +47 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/base-mask-filter.d.mts +29 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/blur.d.mts +185 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/effects-masking.d.mts +121 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/environment.d.mts +40 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/glow-overlay.d.mts +75 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/index.d.mts +13 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/invisibility.d.mts +29 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/outline-overlay.d.mts +86 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/transition.d.mts +119 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/visibility.d.mts +70 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/vision-mask-filter.d.mts +33 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/void.d.mts +18 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/weather-occlusion-masks.d.mts +56 -0
- package/src/foundry/client/pixi/webgl/shaders/fragment-channel-mixin.d.mts +54 -0
- package/src/foundry/client/pixi/webgl/shaders/grid/grid.d.mts +112 -0
- package/src/foundry/client/pixi/webgl/shaders/grid/index.d.mts +1 -0
- package/src/foundry/client/pixi/webgl/shaders/index.d.mts +10 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/background-lighting.d.mts +65 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/base-lighting.d.mts +178 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/coloration-lighting.d.mts +73 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/darkness-lighting.d.mts +73 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/bewitching-wave.d.mts +33 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/black-hole.d.mts +18 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/chroma.d.mts +23 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/emanation.d.mts +23 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/energy-field.d.mts +23 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/fairy-light.d.mts +38 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/flame.d.mts +55 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/fog.d.mts +23 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/force-grid.d.mts +22 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/ghost-light.d.mts +33 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/hexa-dome.d.mts +23 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/index.d.mts +25 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/light-dome.d.mts +23 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/magical-gloom.d.mts +18 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/pulse.d.mts +44 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/radial-rainbow.d.mts +23 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/revolving-light.d.mts +36 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/roiling-mass.d.mts +18 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/siren-light.d.mts +61 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/smoke-patch.d.mts +32 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/star-light.d.mts +23 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/sunburst.d.mts +33 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/swirling-rainbow.d.mts +23 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/torch.d.mts +45 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/vortex.d.mts +38 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/wave.d.mts +33 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/illumination-lighting.d.mts +79 -0
- package/src/foundry/client/pixi/webgl/shaders/lighting/index.d.mts +6 -0
- package/src/foundry/client/pixi/webgl/shaders/region/adjust-darkness-level.d.mts +93 -0
- package/src/foundry/client/pixi/webgl/shaders/region/base.d.mts +35 -0
- package/src/foundry/client/pixi/webgl/shaders/region/highlight.d.mts +35 -0
- package/src/foundry/client/pixi/webgl/shaders/region/index.d.mts +3 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/base-sampler.d.mts +206 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/baseline-illumination.d.mts +38 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/color-adjustment.d.mts +109 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/depth.d.mts +103 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/fog-of-war.d.mts +24 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/index.d.mts +8 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/occlusion.d.mts +104 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/primary.d.mts +26 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/token-ring.d.mts +47 -0
- package/src/foundry/client/pixi/webgl/shaders/vision/background-vision.d.mts +42 -0
- package/src/foundry/client/pixi/webgl/shaders/vision/base-vision.d.mts +31 -0
- package/src/foundry/client/pixi/webgl/shaders/vision/coloration-vision.d.mts +41 -0
- package/src/foundry/client/pixi/webgl/shaders/vision/effects/amplification.d.mts +32 -0
- package/src/foundry/client/pixi/webgl/shaders/vision/effects/index.d.mts +2 -0
- package/src/foundry/client/pixi/webgl/shaders/vision/effects/wave.d.mts +59 -0
- package/src/foundry/client/pixi/webgl/shaders/vision/illumination-vision.d.mts +36 -0
- package/src/foundry/client/pixi/webgl/shaders/vision/index.d.mts +5 -0
- package/src/foundry/client/pixi/webgl/shaders/weather/base-weather.d.mts +106 -0
- package/src/foundry/client/pixi/webgl/shaders/weather/effect.d.mts +62 -0
- package/src/foundry/client/pixi/webgl/shaders/weather/fog.d.mts +50 -0
- package/src/foundry/client/pixi/webgl/shaders/weather/index.d.mts +5 -0
- package/src/foundry/client/pixi/webgl/shaders/weather/rain.d.mts +42 -0
- package/src/foundry/client/pixi/webgl/shaders/weather/snow.d.mts +34 -0
- package/src/foundry/client/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 +36 -0
- package/src/foundry/client-esm/applications/api/_module.d.mts +9 -0
- package/src/foundry/client-esm/applications/api/application.d.mts +711 -0
- package/src/foundry/client-esm/applications/api/dialog.d.mts +268 -0
- package/src/foundry/client-esm/applications/api/document-sheet.d.mts +127 -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 +265 -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 +77 -0
- package/src/foundry/client-esm/applications/sheets/ambient-sound-config.d.mts +52 -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 +44 -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 +16 -0
- package/src/foundry/client-esm/audio/biquad.d.mts +51 -0
- package/src/foundry/client-esm/audio/cache.d.mts +68 -0
- package/src/foundry/client-esm/audio/convolver.d.mts +71 -0
- package/src/foundry/client-esm/audio/helper.d.mts +325 -0
- package/src/foundry/client-esm/audio/sound.d.mts +401 -0
- package/src/foundry/client-esm/audio/timeout.d.mts +82 -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 +136 -0
- package/src/foundry/client-esm/canvas/regions/_module.d.mts +10 -0
- package/src/foundry/client-esm/canvas/scene-manager.d.mts +93 -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 +250 -0
- package/src/foundry/client-esm/canvas/sources/base-light-source.d.mts +159 -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 +93 -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 +212 -0
- package/src/foundry/client-esm/canvas/sources/rendered-effect-source.d.mts +330 -0
- package/src/foundry/client-esm/canvas/tokens/_module.d.mts +9 -0
- package/src/foundry/client-esm/canvas/tokens/ring-config.d.mts +80 -0
- package/src/foundry/client-esm/canvas/tokens/ring-data.d.mts +7 -0
- package/src/foundry/client-esm/canvas/tokens/ring.d.mts +5 -0
- package/src/foundry/client-esm/client.d.mts +286 -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 +103 -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 +461 -0
- package/src/foundry/common/abstract/document.d.mts +1409 -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 +343 -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 +4207 -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 +175 -0
- package/src/foundry/common/documents/active-effect.d.mts +238 -0
- package/src/foundry/common/documents/actor-delta.d.mts +120 -0
- package/src/foundry/common/documents/actor.d.mts +168 -0
- package/src/foundry/common/documents/adventure.d.mts +184 -0
- package/src/foundry/common/documents/ambient-light.d.mts +98 -0
- package/src/foundry/common/documents/ambient-sound.d.mts +132 -0
- package/src/foundry/common/documents/card.d.mts +224 -0
- package/src/foundry/common/documents/cards.d.mts +156 -0
- package/src/foundry/common/documents/chat-message.d.mts +207 -0
- package/src/foundry/common/documents/combat.d.mts +130 -0
- package/src/foundry/common/documents/combatant.d.mts +123 -0
- package/src/foundry/common/documents/drawing.d.mts +240 -0
- package/src/foundry/common/documents/fog-exploration.d.mts +95 -0
- package/src/foundry/common/documents/folder.d.mts +113 -0
- package/src/foundry/common/documents/item.d.mts +142 -0
- package/src/foundry/common/documents/journal-entry-page.d.mts +211 -0
- package/src/foundry/common/documents/journal-entry.d.mts +91 -0
- package/src/foundry/common/documents/macro.d.mts +174 -0
- package/src/foundry/common/documents/measured-template.d.mts +168 -0
- package/src/foundry/common/documents/module.d.mts +35 -0
- package/src/foundry/common/documents/note.d.mts +183 -0
- package/src/foundry/common/documents/playlist-sound.d.mts +127 -0
- package/src/foundry/common/documents/playlist.d.mts +154 -0
- package/src/foundry/common/documents/roll-table.d.mts +130 -0
- package/src/foundry/common/documents/scene.d.mts +373 -0
- package/src/foundry/common/documents/setting.d.mts +77 -0
- package/src/foundry/common/documents/table-result.d.mts +131 -0
- package/src/foundry/common/documents/tile.d.mts +195 -0
- package/src/foundry/common/documents/token.d.mts +497 -0
- package/src/foundry/common/documents/user.d.mts +238 -0
- package/src/foundry/common/documents/wall.d.mts +184 -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 +74 -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 +299 -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 +99 -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/documentConfiguration.d.mts +606 -0
- package/src/types/helperTypes.d.mts +389 -0
- package/src/types/index.d.mts +4 -0
- package/src/types/utils.d.mts +520 -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,820 @@
|
|
1
|
+
import type { RequiredProps } from "../../../../types/utils.d.mts";
|
2
|
+
import type { ConfiguredObjectClassOrDefault } from "../../config.d.mts";
|
3
|
+
|
4
|
+
declare global {
|
5
|
+
namespace Token {
|
6
|
+
type ConfiguredClass = ConfiguredObjectClassOrDefault<typeof Token>;
|
7
|
+
type ConfiguredInstance = InstanceType<ConfiguredClass>;
|
8
|
+
|
9
|
+
interface RenderFlags extends PlaceableObject.RenderFlags {
|
10
|
+
redrawEffects: boolean;
|
11
|
+
|
12
|
+
refreshSize: boolean;
|
13
|
+
|
14
|
+
refreshPosition: boolean;
|
15
|
+
|
16
|
+
refreshElevation: boolean;
|
17
|
+
|
18
|
+
refreshVisibility: boolean;
|
19
|
+
|
20
|
+
refreshEffects: boolean;
|
21
|
+
|
22
|
+
refreshMesh: boolean;
|
23
|
+
|
24
|
+
refreshShader: boolean;
|
25
|
+
|
26
|
+
refreshBars: boolean;
|
27
|
+
|
28
|
+
refreshNameplate: boolean;
|
29
|
+
|
30
|
+
refreshBorder: boolean;
|
31
|
+
|
32
|
+
refreshTarget: boolean;
|
33
|
+
}
|
34
|
+
|
35
|
+
interface ReticuleOptions {
|
36
|
+
/**
|
37
|
+
* The amount of margin between the targeting arrows and the token's bounding box, expressed as a fraction of an arrow's size.
|
38
|
+
* @defaultValue `0`
|
39
|
+
*/
|
40
|
+
margin?: number;
|
41
|
+
|
42
|
+
/**
|
43
|
+
* The alpha value of the arrows.
|
44
|
+
* @defaultValue `1`
|
45
|
+
*/
|
46
|
+
alpha?: number;
|
47
|
+
|
48
|
+
/**
|
49
|
+
* The size of the arrows as a proportion of grid size.
|
50
|
+
* @defaultValue `0.15`
|
51
|
+
*/
|
52
|
+
size?: number;
|
53
|
+
|
54
|
+
/**
|
55
|
+
* The color of the arrows.
|
56
|
+
* @defaultValue `0xFF6400`
|
57
|
+
*/
|
58
|
+
color?: number;
|
59
|
+
|
60
|
+
/** The arrows' border style configuration. */
|
61
|
+
border?: {
|
62
|
+
/**
|
63
|
+
* The border color.
|
64
|
+
* @defaultValue `0`
|
65
|
+
*/
|
66
|
+
color?: number;
|
67
|
+
|
68
|
+
/**
|
69
|
+
* The border width.
|
70
|
+
* @defaultValue `2`
|
71
|
+
*/
|
72
|
+
width?: number;
|
73
|
+
};
|
74
|
+
}
|
75
|
+
|
76
|
+
type SourceType = "move" | "sight" | "light" | "sound";
|
77
|
+
|
78
|
+
interface Bar {
|
79
|
+
attribute: string;
|
80
|
+
}
|
81
|
+
|
82
|
+
interface Velocity {
|
83
|
+
dx: number;
|
84
|
+
sx: number;
|
85
|
+
dy: number;
|
86
|
+
sy: number;
|
87
|
+
}
|
88
|
+
|
89
|
+
/** The UI frame container which depicts Token metadata and status, displayed in the ControlsLayer. */
|
90
|
+
interface ObjectHUD extends globalThis.ObjectHUD {
|
91
|
+
/** Token health bars */
|
92
|
+
bars?: PIXI.Container;
|
93
|
+
|
94
|
+
/** Token nameplate */
|
95
|
+
nameplate?: PreciseText;
|
96
|
+
|
97
|
+
/** Token elevation tooltip */
|
98
|
+
tooltip?: PreciseText;
|
99
|
+
|
100
|
+
/** Token status effects */
|
101
|
+
effects?: PIXI.Container;
|
102
|
+
|
103
|
+
/** Token target marker */
|
104
|
+
target?: PIXI.Graphics;
|
105
|
+
}
|
106
|
+
|
107
|
+
type InitializedObjectHUD = RequiredProps<ObjectHUD, "bars" | "nameplate" | "tooltip" | "effects" | "target">;
|
108
|
+
|
109
|
+
interface UpdateLightSourceOptions {
|
110
|
+
/**
|
111
|
+
* Defer updating perception to manually update it later.
|
112
|
+
* @defaultValue `false`
|
113
|
+
*/
|
114
|
+
defer?: boolean | undefined;
|
115
|
+
|
116
|
+
/**
|
117
|
+
* Indicate that this light source has been deleted.
|
118
|
+
* @defaultValue `false`
|
119
|
+
*/
|
120
|
+
deleted?: boolean | undefined;
|
121
|
+
}
|
122
|
+
|
123
|
+
interface UpdateVisionSourceOptions {
|
124
|
+
/**
|
125
|
+
* Defer updating perception to manually update it later.
|
126
|
+
* @defaultValue `false`
|
127
|
+
*/
|
128
|
+
defer?: boolean | undefined;
|
129
|
+
|
130
|
+
/**
|
131
|
+
* Indicate that this vision source has been deleted.
|
132
|
+
* @defaultValue `false`
|
133
|
+
*/
|
134
|
+
deleted?: boolean | undefined;
|
135
|
+
}
|
136
|
+
|
137
|
+
type UpdateSourceOptions = UpdateLightSourceOptions & UpdateVisionSourceOptions;
|
138
|
+
|
139
|
+
interface PlayOptions {
|
140
|
+
/**
|
141
|
+
* Should the video loop?
|
142
|
+
* @defaultValue `true`
|
143
|
+
*/
|
144
|
+
loop?: boolean | undefined;
|
145
|
+
|
146
|
+
/**
|
147
|
+
* A specific timestamp between 0 and the video duration to begin playback
|
148
|
+
* @defaultValue `0`
|
149
|
+
*/
|
150
|
+
offset?: number | undefined;
|
151
|
+
|
152
|
+
/**
|
153
|
+
* Desired volume level of the video's audio channel (if any)
|
154
|
+
* @defaultValue `0`
|
155
|
+
*/
|
156
|
+
volume?: number | undefined;
|
157
|
+
}
|
158
|
+
|
159
|
+
interface DrawOverlayOptions {
|
160
|
+
src?: string | undefined;
|
161
|
+
tint?: number | undefined;
|
162
|
+
}
|
163
|
+
|
164
|
+
interface PositionOptions {
|
165
|
+
/**
|
166
|
+
* Animate the movement path
|
167
|
+
* @defaultValue `true`
|
168
|
+
*/
|
169
|
+
animate?: boolean;
|
170
|
+
|
171
|
+
/**
|
172
|
+
* Automatically re-center the view if token movement goes off-screen
|
173
|
+
* @defaultValue `true`
|
174
|
+
*/
|
175
|
+
recenter?: boolean | undefined;
|
176
|
+
}
|
177
|
+
|
178
|
+
interface EffectToggleOptions {
|
179
|
+
/**
|
180
|
+
* Force a certain active state for the effect
|
181
|
+
* @defaultValue `false`
|
182
|
+
*/
|
183
|
+
active?: boolean | undefined;
|
184
|
+
|
185
|
+
/**
|
186
|
+
* Whether to set the effect as the overlay effect?
|
187
|
+
* @defaultValue `false`
|
188
|
+
*/
|
189
|
+
overlay?: boolean | undefined;
|
190
|
+
}
|
191
|
+
|
192
|
+
interface SetTargetContext {
|
193
|
+
/**
|
194
|
+
* Assign the token as a target for a specific User
|
195
|
+
* @defaultValue `null`
|
196
|
+
*/
|
197
|
+
user?: User.ConfiguredInstance | null | undefined;
|
198
|
+
|
199
|
+
/**
|
200
|
+
* Release other active targets for the same player?
|
201
|
+
* @defaultValue `true`
|
202
|
+
*/
|
203
|
+
releaseOthers?: boolean | undefined;
|
204
|
+
|
205
|
+
/**
|
206
|
+
* Is this target being set as part of a group selection workflow?
|
207
|
+
* @defaultValue `Is this target being set as part of a group selection workflow?`
|
208
|
+
*/
|
209
|
+
groupSelection?: boolean | undefined;
|
210
|
+
}
|
211
|
+
|
212
|
+
interface ControlOptions extends PlaceableObject.ControlOptions {
|
213
|
+
/** @defaultValue `false` */
|
214
|
+
pan?: boolean;
|
215
|
+
}
|
216
|
+
}
|
217
|
+
|
218
|
+
/**
|
219
|
+
* A Token is an implementation of PlaceableObject which represents an Actor within a viewed Scene on the game canvas.
|
220
|
+
* @see TokenDocument
|
221
|
+
* @see TokenLayer
|
222
|
+
*/
|
223
|
+
class Token extends PlaceableObject<TokenDocument.ConfiguredInstance> {
|
224
|
+
static override embeddedName: "Token";
|
225
|
+
|
226
|
+
static override RENDER_FLAGS: {
|
227
|
+
/** @defaultValue `{ propagate: ["refresh"] }` */
|
228
|
+
redraw: RenderFlag<Partial<Token.RenderFlags>>;
|
229
|
+
|
230
|
+
/** @defaultValue `{}` */
|
231
|
+
redrawEffects: RenderFlag<Partial<Token.RenderFlags>>;
|
232
|
+
|
233
|
+
/** @defaultValue `{ propagate: ["refreshState", "refreshSize", "refreshPosition", "refreshElevation", "refreshBars", "refreshNameplate", "refreshBorder", "refreshShader"], alias: true }` */
|
234
|
+
refresh: RenderFlag<Partial<Token.RenderFlags>>;
|
235
|
+
|
236
|
+
/** @defaultValue `{ propagate: ["refreshVisibility", "refreshBorder"] }` */
|
237
|
+
refreshState: RenderFlag<Partial<Token.RenderFlags>>;
|
238
|
+
|
239
|
+
/** @defaultValue `{ propagate: ["refreshMesh", "refreshBorder", "refreshBars", "refreshPosition", "refreshTarget", "refreshEffects"] }` */
|
240
|
+
refreshSize: RenderFlag<Partial<Token.RenderFlags>>;
|
241
|
+
|
242
|
+
/** @defaultValue `{ propagate: ["refreshMesh", "refreshVisibility"] }` */
|
243
|
+
refreshPosition: RenderFlag<Partial<Token.RenderFlags>>;
|
244
|
+
|
245
|
+
/** @defaultValue `{ propagate: ["refreshMesh"] }` */
|
246
|
+
refreshElevation: RenderFlag<Partial<Token.RenderFlags>>;
|
247
|
+
|
248
|
+
/** @defaultValue `{}` */
|
249
|
+
refreshVisibility: RenderFlag<Partial<Token.RenderFlags>>;
|
250
|
+
|
251
|
+
/** @defaultValue `{}` */
|
252
|
+
refreshEffects: RenderFlag<Partial<Token.RenderFlags>>;
|
253
|
+
|
254
|
+
/** @defaultValue `{}` */
|
255
|
+
refreshMesh: RenderFlag<Partial<Token.RenderFlags>>;
|
256
|
+
|
257
|
+
/** @defaultValue `{}` */
|
258
|
+
refreshShader: RenderFlag<Partial<Token.RenderFlags>>;
|
259
|
+
|
260
|
+
/** @defaultValue `{}` */
|
261
|
+
refreshBars: RenderFlag<Partial<Token.RenderFlags>>;
|
262
|
+
|
263
|
+
/** @defaultValue `{}` */
|
264
|
+
refreshNameplate: RenderFlag<Partial<Token.RenderFlags>>;
|
265
|
+
|
266
|
+
/** @defaultValue `{}` */
|
267
|
+
refreshBorder: RenderFlag<Partial<Token.RenderFlags>>;
|
268
|
+
|
269
|
+
/** @defaultValue `{}` */
|
270
|
+
refreshTarget: RenderFlag<Partial<Token.RenderFlags>>;
|
271
|
+
};
|
272
|
+
|
273
|
+
/**
|
274
|
+
* Defines the filter to use for detection.
|
275
|
+
*/
|
276
|
+
detectionFilter?: PIXI.Filter | null;
|
277
|
+
|
278
|
+
/**
|
279
|
+
* A Graphics instance which renders the border frame for this Token inside the GridLayer.
|
280
|
+
* @defaultValue `undefined`
|
281
|
+
* */
|
282
|
+
border?: PIXI.Graphics;
|
283
|
+
|
284
|
+
/**
|
285
|
+
* Track the set of User documents which are currently targeting this Token
|
286
|
+
*/
|
287
|
+
targeted: Set<User>;
|
288
|
+
|
289
|
+
/**
|
290
|
+
* A reference to the SpriteMesh which displays this Token in the PrimaryCanvasGroup.
|
291
|
+
*/
|
292
|
+
mesh: PrimarySpriteMesh;
|
293
|
+
|
294
|
+
/**
|
295
|
+
* A reference to the VisionSource object which defines this vision source area of effect
|
296
|
+
*/
|
297
|
+
vision: foundry.canvas.sources.PointVisionSource.Any;
|
298
|
+
|
299
|
+
/**
|
300
|
+
* A reference to the LightSource object which defines this light source area of effect
|
301
|
+
*/
|
302
|
+
light: foundry.canvas.sources.PointLightSource;
|
303
|
+
|
304
|
+
/**
|
305
|
+
* A reference to an animation that is currently in progress for this Token, if any
|
306
|
+
* @internal
|
307
|
+
*/
|
308
|
+
protected _animation: Promise<number> | null;
|
309
|
+
|
310
|
+
/**
|
311
|
+
* A convenient reference to the Actor object associated with the Token embedded document.
|
312
|
+
*/
|
313
|
+
get actor(): this["document"]["actor"];
|
314
|
+
|
315
|
+
/**
|
316
|
+
* A convenient reference for whether the current User has full control over the Token document.
|
317
|
+
*/
|
318
|
+
get owner(): boolean;
|
319
|
+
|
320
|
+
get isOwner(): boolean;
|
321
|
+
|
322
|
+
/**
|
323
|
+
* A boolean flag for whether the current game User has observer permission for the Token
|
324
|
+
*/
|
325
|
+
get observer(): boolean;
|
326
|
+
|
327
|
+
/**
|
328
|
+
* Is the HUD display active for this token?
|
329
|
+
*/
|
330
|
+
get hasActiveHUD(): boolean;
|
331
|
+
|
332
|
+
/**
|
333
|
+
* Convenience access to the token's nameplate string
|
334
|
+
* @remarks
|
335
|
+
* This is actually a getter that returns data.name
|
336
|
+
*/
|
337
|
+
readonly name: string;
|
338
|
+
|
339
|
+
override get bounds(): PIXI.Rectangle;
|
340
|
+
|
341
|
+
/**
|
342
|
+
* Translate the token's grid width into a pixel width based on the canvas size
|
343
|
+
*/
|
344
|
+
get w(): number;
|
345
|
+
|
346
|
+
/**
|
347
|
+
* Translate the token's grid height into a pixel height based on the canvas size
|
348
|
+
*/
|
349
|
+
get h(): number;
|
350
|
+
|
351
|
+
/**
|
352
|
+
* The Token's current central position
|
353
|
+
*/
|
354
|
+
get center(): Canvas.Point;
|
355
|
+
|
356
|
+
/**
|
357
|
+
* The Token's central position, adjusted in each direction by one or zero pixels to offset it relative to walls.
|
358
|
+
*/
|
359
|
+
getMovementAdjustedPoint(point: Canvas.Point, offset?: { offsetX: number; offsetY: number }): Canvas.Point;
|
360
|
+
|
361
|
+
/**
|
362
|
+
* The HTML source element for the primary Tile texture
|
363
|
+
*/
|
364
|
+
get sourceElement(): HTMLImageElement | HTMLVideoElement | undefined;
|
365
|
+
|
366
|
+
override get sourceId(): string;
|
367
|
+
|
368
|
+
/**
|
369
|
+
* Does this Tile depict an animated video texture?
|
370
|
+
*/
|
371
|
+
get isVideo(): boolean;
|
372
|
+
|
373
|
+
/**
|
374
|
+
* An indicator for whether or not this token is currently involved in the active combat encounter.
|
375
|
+
*/
|
376
|
+
get inCombat(): boolean;
|
377
|
+
|
378
|
+
/**
|
379
|
+
* Return a reference to a Combatant that represents this Token, if one is present in the current encounter.
|
380
|
+
*/
|
381
|
+
get combatant(): Combatant.ConfiguredInstance | null;
|
382
|
+
|
383
|
+
/**
|
384
|
+
* An indicator for whether the Token is currently targeted by the active game User
|
385
|
+
*/
|
386
|
+
get isTargeted(): boolean;
|
387
|
+
|
388
|
+
/**
|
389
|
+
* Return a reference to the detection modes array.
|
390
|
+
*/
|
391
|
+
get detectionModes(): Array<DetectionMode>;
|
392
|
+
|
393
|
+
/**
|
394
|
+
* Determine whether the Token is visible to the calling user's perspective.
|
395
|
+
* Hidden Tokens are only displayed to GM Users.
|
396
|
+
* Non-hidden Tokens are always visible if Token Vision is not required.
|
397
|
+
* Controlled tokens are always visible.
|
398
|
+
* All Tokens are visible to a GM user if no Token is controlled.
|
399
|
+
*
|
400
|
+
* @see {@link CanvasVisibility#testVisibility}
|
401
|
+
*/
|
402
|
+
get isVisible(): boolean;
|
403
|
+
|
404
|
+
/**
|
405
|
+
* The animation name used for Token movement
|
406
|
+
*/
|
407
|
+
get animationName(): string;
|
408
|
+
|
409
|
+
/**
|
410
|
+
* Test whether the Token has sight (or blindness) at any radius
|
411
|
+
*/
|
412
|
+
get hasSight(): boolean;
|
413
|
+
|
414
|
+
/**
|
415
|
+
* Test whether the Token emits light (or darkness) at any radius
|
416
|
+
*/
|
417
|
+
get emitsLight(): boolean;
|
418
|
+
|
419
|
+
/**
|
420
|
+
* Test whether the Token uses a limited angle of vision or light emission.
|
421
|
+
*/
|
422
|
+
get hasLimitedSourceAngle(): boolean;
|
423
|
+
|
424
|
+
/**
|
425
|
+
* Translate the token's dim light distance in units into a radius in pixels.
|
426
|
+
*/
|
427
|
+
get dimRadius(): number;
|
428
|
+
|
429
|
+
/**
|
430
|
+
* Translate the token's bright light distance in units into a radius in pixels.
|
431
|
+
*/
|
432
|
+
get brightRadius(): number;
|
433
|
+
|
434
|
+
/**
|
435
|
+
* Translate the token's vision range in units into a radius in pixels.
|
436
|
+
*/
|
437
|
+
get sightRange(): number;
|
438
|
+
|
439
|
+
/**
|
440
|
+
* Translate the token's maximum vision range that takes into account lights.
|
441
|
+
*/
|
442
|
+
get optimalSightRange(): number;
|
443
|
+
|
444
|
+
// TODO(LukeAbby): This override appears to fail because it creates a circular dependency that tsc can't resolve for some reason. Bug report?
|
445
|
+
// `Token` is a `PlaceableObject` if it properly extends `PlaceableObject` however `clone` is a proper override of `PlaceableObject.clone` only if its return value extends `PlaceableObject`.
|
446
|
+
// This creates a loop of checking `Token` against `PlaceableObject`.
|
447
|
+
// override clone(): Token;
|
448
|
+
|
449
|
+
/**
|
450
|
+
* Update the light and vision source objects associated with this Token
|
451
|
+
* @param options - Options which configure how perception sources are updated
|
452
|
+
*/
|
453
|
+
updateSource(options?: Token.UpdateSourceOptions): void;
|
454
|
+
|
455
|
+
/**
|
456
|
+
* Update an emitted light source associated with this Token.
|
457
|
+
* @param options - (default `{}`)
|
458
|
+
*/
|
459
|
+
updateLightSource(options?: Token.UpdateLightSourceOptions): void;
|
460
|
+
|
461
|
+
/**
|
462
|
+
* Update an Token vision source associated for this token.
|
463
|
+
* @param options - Options which affect how the vision source is updated
|
464
|
+
* (default: `{}`)
|
465
|
+
*/
|
466
|
+
updateVisionSource(options?: Token.UpdateVisionSourceOptions): void;
|
467
|
+
|
468
|
+
/**
|
469
|
+
* Test whether this Token is a viable vision source for the current User
|
470
|
+
* @internal
|
471
|
+
*/
|
472
|
+
protected _isVisionSource(): boolean;
|
473
|
+
|
474
|
+
override render(renderer: PIXI.Renderer): void;
|
475
|
+
|
476
|
+
/**
|
477
|
+
* Render the bound mesh detection filter.
|
478
|
+
* Note: this method does not verify that the detection filter exists.
|
479
|
+
*/
|
480
|
+
protected _renderDetectionFilter(renderer: PIXI.Renderer): void;
|
481
|
+
|
482
|
+
override clear(): void;
|
483
|
+
|
484
|
+
protected override _destroy(options?: PIXI.IDestroyOptions | boolean): void;
|
485
|
+
|
486
|
+
protected override _draw(options?: Record<string, unknown>): Promise<void>;
|
487
|
+
|
488
|
+
protected override _applyRenderFlags(flags: Token.RenderFlags): void;
|
489
|
+
|
490
|
+
/**
|
491
|
+
* Refresh the visibility.
|
492
|
+
*/
|
493
|
+
protected _refreshVisibility(): void;
|
494
|
+
|
495
|
+
/**
|
496
|
+
* Refresh the text content, position, and visibility of the Token nameplate.
|
497
|
+
*/
|
498
|
+
protected _refreshNameplate(): void;
|
499
|
+
|
500
|
+
/**
|
501
|
+
* Refresh the token mesh.
|
502
|
+
*/
|
503
|
+
protected _refreshMesh(): void;
|
504
|
+
|
505
|
+
/**
|
506
|
+
* Refresh the token mesh shader.
|
507
|
+
*/
|
508
|
+
protected _refreshShader(): void;
|
509
|
+
|
510
|
+
/**
|
511
|
+
* Draw the Token border, taking into consideration the grid type and border color
|
512
|
+
* @internal
|
513
|
+
*/
|
514
|
+
protected _refreshBorder(): void;
|
515
|
+
|
516
|
+
/**
|
517
|
+
* Get the hex color that should be used to render the Token border
|
518
|
+
* @returns The hex color used to depict the border color
|
519
|
+
* @internal
|
520
|
+
*/
|
521
|
+
protected _getBorderColor(options?: {
|
522
|
+
/**
|
523
|
+
* Return a border color for this hover state, otherwise use the token's current state.
|
524
|
+
*/
|
525
|
+
hover?: boolean;
|
526
|
+
}): number | null;
|
527
|
+
|
528
|
+
/**
|
529
|
+
* Refresh the target indicators for the Token.
|
530
|
+
* Draw both target arrows for the primary User and indicator pips for other Users targeting the same Token.
|
531
|
+
* @param reticule - Additional parameters to configure how the targeting reticule is drawn.
|
532
|
+
*/
|
533
|
+
protected _refreshTarget(reticule?: Token.ReticuleOptions): void;
|
534
|
+
|
535
|
+
/**
|
536
|
+
* Draw the targeting arrows around this token.
|
537
|
+
* @param reticule - Additional parameters to configure how the targeting reticule is drawn.
|
538
|
+
*/
|
539
|
+
protected _drawTarget(reticule?: Token.ReticuleOptions): void;
|
540
|
+
|
541
|
+
/**
|
542
|
+
* Refresh the display of Token attribute bars, rendering its latest resource data.
|
543
|
+
* If the bar attribute is valid (has a value and max), draw the bar. Otherwise hide it.
|
544
|
+
*/
|
545
|
+
drawBars(): void;
|
546
|
+
|
547
|
+
/**
|
548
|
+
* Draw a single resource bar, given provided data
|
549
|
+
* @param number - The Bar number
|
550
|
+
* @param bar - The Bar container
|
551
|
+
* @param data - Resource data for this bar
|
552
|
+
*/
|
553
|
+
protected _drawBar(number: number, bar: PIXI.Graphics, data: ReturnType<TokenDocument["getBarAttribute"]>): void;
|
554
|
+
|
555
|
+
/**
|
556
|
+
* Return the text which should be displayed in a token's tooltip field
|
557
|
+
*/
|
558
|
+
protected _getTooltipText(): string;
|
559
|
+
|
560
|
+
/**
|
561
|
+
* Get the text style that should be used for this Token's tooltip.
|
562
|
+
*/
|
563
|
+
protected _getTextStyle(): PIXI.TextStyle;
|
564
|
+
|
565
|
+
/**
|
566
|
+
* Draw the active effects and overlay effect icons which are present upon the Token
|
567
|
+
*/
|
568
|
+
drawEffects(): Promise<void>;
|
569
|
+
|
570
|
+
/**
|
571
|
+
* Draw a status effect icon
|
572
|
+
*/
|
573
|
+
protected _drawEffect(src: string, tint: number | null): Promise<PIXI.Sprite | undefined>;
|
574
|
+
|
575
|
+
/**
|
576
|
+
* Draw the overlay effect icon
|
577
|
+
*/
|
578
|
+
protected _drawOverlay(src: string, tint: number | null): Promise<PIXI.Sprite>;
|
579
|
+
|
580
|
+
/**
|
581
|
+
* Refresh the display of status effects, adjusting their position for the token width and height.
|
582
|
+
*/
|
583
|
+
protected _refreshEffects(): void;
|
584
|
+
|
585
|
+
/**
|
586
|
+
* Helper method to determine whether a token attribute is viewable under a certain mode
|
587
|
+
* @param mode - The mode from CONST.TOKEN_DISPLAY_MODES
|
588
|
+
* @returns Is the attribute viewable?
|
589
|
+
*/
|
590
|
+
protected _canViewMode(mode: foundry.CONST.TOKEN_DISPLAY_MODES): boolean;
|
591
|
+
|
592
|
+
/**
|
593
|
+
* Animate changes to the appearance of the Token.
|
594
|
+
* Animations are performed over differences between the TokenDocument and the current Token and TokenMesh appearance.
|
595
|
+
* @param updateData - A record of the differential data which changed, for reference only
|
596
|
+
* @param options - Options which configure the animation behavior
|
597
|
+
* @returns A promise which resolves once the animation is complete
|
598
|
+
*/
|
599
|
+
animate(
|
600
|
+
updateData: unknown,
|
601
|
+
options: {
|
602
|
+
/** An optional function called each animation frame */
|
603
|
+
ontick: (dt: number, data: CanvasAnimationData) => number;
|
604
|
+
|
605
|
+
/**
|
606
|
+
* A desired token movement speed in grid spaces per second
|
607
|
+
* @defaultValue `6`
|
608
|
+
*/
|
609
|
+
movementSpeed: number;
|
610
|
+
|
611
|
+
/**
|
612
|
+
* The animation starting attributes if different from those cached.
|
613
|
+
*
|
614
|
+
* @deprecated since v12, will be removed in v14
|
615
|
+
*/
|
616
|
+
a0: unknown;
|
617
|
+
},
|
618
|
+
): Promise<void>;
|
619
|
+
|
620
|
+
/**
|
621
|
+
* Terminate animation of this particular Token.
|
622
|
+
*/
|
623
|
+
stopAnimation(): void;
|
624
|
+
|
625
|
+
/**
|
626
|
+
* Check for collision when attempting a move to a new position
|
627
|
+
* @param destination - The central destination point of the attempted movement
|
628
|
+
* @param options - Additional options forwarded to WallsLayer#checkCollision
|
629
|
+
* @returns The result of the WallsLayer#checkCollision test
|
630
|
+
*/
|
631
|
+
checkCollision(
|
632
|
+
destination: Canvas.Point,
|
633
|
+
options: {
|
634
|
+
origin: Canvas.Point;
|
635
|
+
|
636
|
+
/** @defaultValue `"move"` */
|
637
|
+
type: Exclude<Token.SourceType, "Sound">;
|
638
|
+
|
639
|
+
/** @defaultValue `"any"` */
|
640
|
+
mode: PointSourcePolygon.CollisionModes;
|
641
|
+
},
|
642
|
+
): boolean;
|
643
|
+
/**
|
644
|
+
* Get the center-point coordinate for a given grid position
|
645
|
+
* @param x - The grid x-coordinate that represents the top-left of the Token
|
646
|
+
* @param y - The grid y-coordinate that represents the top-left of the Token
|
647
|
+
* @returns The coordinate pair which represents the Token's center at position (x, y)
|
648
|
+
*/
|
649
|
+
getCenter(
|
650
|
+
x: number,
|
651
|
+
y: number,
|
652
|
+
): {
|
653
|
+
x: number;
|
654
|
+
y: number;
|
655
|
+
};
|
656
|
+
|
657
|
+
/**
|
658
|
+
* Set the token's position by comparing its center position vs the nearest grid vertex
|
659
|
+
* Return a Promise that resolves to the Token once the animation for the movement has been completed
|
660
|
+
* @param x - The x-coordinate of the token center
|
661
|
+
* @param y - The y-coordinate of the token center
|
662
|
+
* @param options - Additional options which configure the token movement
|
663
|
+
* (defaultValue: `{}`)
|
664
|
+
* @returns The Token after animation has completed
|
665
|
+
*/
|
666
|
+
setPosition(x: number, y: number, options?: Token.PositionOptions): Promise<this>;
|
667
|
+
|
668
|
+
/**
|
669
|
+
* Update the Token velocity auto-regressively, shifting increasing weight towards more recent movement
|
670
|
+
* Employ a magic constant chosen to minimize (effectively zero) the likelihood of trigonometric edge cases
|
671
|
+
* @param ray - The proposed movement ray
|
672
|
+
* @returns An updated velocity with directional memory
|
673
|
+
* @internal
|
674
|
+
*/
|
675
|
+
protected _updateVelocity(ray: Ray): Token.Velocity;
|
676
|
+
|
677
|
+
/**
|
678
|
+
* Set this Token as an active target for the current game User
|
679
|
+
* @param targeted - Is the Token now targeted?
|
680
|
+
* (default: `true`)
|
681
|
+
* @param context - Additional context options
|
682
|
+
* (default `{}`)
|
683
|
+
*/
|
684
|
+
setTarget(targeted?: boolean, context?: Token.SetTargetContext): void;
|
685
|
+
|
686
|
+
/**
|
687
|
+
* Add or remove the currently controlled Tokens from the active combat encounter
|
688
|
+
* @param combat - A specific combat encounter to which this Token should be added
|
689
|
+
* @returns The Token which initiated the toggle
|
690
|
+
*/
|
691
|
+
toggleCombat(combat?: Combat.ConfiguredInstance): Promise<this>;
|
692
|
+
|
693
|
+
/**
|
694
|
+
* Toggle an active effect by its texture path.
|
695
|
+
* Copy the existing Array in order to ensure the update method detects the data as changed.
|
696
|
+
*
|
697
|
+
* @param effect - The texture file-path of the effect icon to toggle on the Token.
|
698
|
+
* @param options - Additional optional arguments which configure how the effect is handled.
|
699
|
+
* (defaultValue: `{}`)
|
700
|
+
* @returns Was the texture applied (true) or removed (false)
|
701
|
+
*/
|
702
|
+
toggleEffect(
|
703
|
+
effect: string | Parameters<TokenDocument["toggleActiveEffect"]>[0],
|
704
|
+
options?: Token.EffectToggleOptions,
|
705
|
+
): Promise<boolean>;
|
706
|
+
|
707
|
+
/**
|
708
|
+
* Toggle the visibility state of any Tokens in the currently selected set
|
709
|
+
* @returns A Promise which resolves to the updated Token documents
|
710
|
+
*/
|
711
|
+
toggleVisibility(): Promise<TokenDocument.ConfiguredInstance[]>;
|
712
|
+
|
713
|
+
/**
|
714
|
+
* The external radius of the token in pixels.
|
715
|
+
*/
|
716
|
+
get externalRadius(): number;
|
717
|
+
|
718
|
+
/**
|
719
|
+
* A generic transformation to turn a certain number of grid units into a radius in canvas pixels.
|
720
|
+
* This function adds additional padding to the light radius equal to the external radius of the token.
|
721
|
+
* This causes light to be measured from the outer token edge, rather than from the center-point.
|
722
|
+
* @param units - The radius in grid units
|
723
|
+
* @returns The radius in pixels
|
724
|
+
*/
|
725
|
+
getLightRadius(units: number): number;
|
726
|
+
|
727
|
+
protected override _getShiftedPosition(dx: number, dy: number): { x: number; y: number };
|
728
|
+
|
729
|
+
/**
|
730
|
+
* @privateRemarks _onDelete and _onUpdate are overridden but with no signature changes.
|
731
|
+
* For type simplicity they are left off. These methods historically have been the source of a large amount of computation from tsc.
|
732
|
+
*/
|
733
|
+
|
734
|
+
/**
|
735
|
+
* Handle changes to Token behavior when a significant status effect is applied
|
736
|
+
* @param statusId - The status effect ID being applied, from CONFIG.specialStatusEffects
|
737
|
+
* @param active - Is the special status effect now active?
|
738
|
+
* @internal
|
739
|
+
*/
|
740
|
+
_onApplyStatusEffect(statusId: string, active: boolean): void;
|
741
|
+
|
742
|
+
protected override _onControl(options?: Token.ControlOptions): void;
|
743
|
+
|
744
|
+
protected override _onRelease(
|
745
|
+
options: PlaceableObject.ReleaseOptions,
|
746
|
+
): Promise<TokenDocument.ConfiguredInstance> | undefined;
|
747
|
+
|
748
|
+
protected override _canControl(user?: User.ConfiguredInstance, event?: PIXI.FederatedEvent): boolean;
|
749
|
+
|
750
|
+
protected override _canHUD(user: User.ConfiguredInstance, event?: PIXI.FederatedEvent): boolean;
|
751
|
+
|
752
|
+
protected override _canConfigure(user?: User.ConfiguredInstance, event?: PIXI.FederatedEvent): true;
|
753
|
+
|
754
|
+
protected override _canHover(user?: User.ConfiguredInstance, event?: PIXI.FederatedEvent): true;
|
755
|
+
|
756
|
+
protected override _canView(user?: User.ConfiguredInstance, event?: PIXI.FederatedEvent): boolean;
|
757
|
+
|
758
|
+
protected override _canDrag(user: User.ConfiguredInstance, event: PIXI.FederatedEvent): boolean;
|
759
|
+
|
760
|
+
protected override _onHoverIn(event: PIXI.FederatedEvent, options?: { hoverOutOthers?: boolean }): void;
|
761
|
+
|
762
|
+
protected override _onHoverOut(event: PIXI.FederatedEvent): false | void;
|
763
|
+
|
764
|
+
protected override _onClickLeft(event: PIXI.FederatedEvent): void;
|
765
|
+
|
766
|
+
protected override _onClickLeft2(event?: PIXI.FederatedEvent): void;
|
767
|
+
|
768
|
+
protected override _onClickRight2(event: PIXI.FederatedEvent): void;
|
769
|
+
|
770
|
+
protected override _onDragLeftDrop(event: PIXI.FederatedEvent): Promise<any>;
|
771
|
+
|
772
|
+
protected override _onDragLeftMove(event: PIXI.FederatedEvent): void;
|
773
|
+
|
774
|
+
protected override _onDragEnd(): void;
|
775
|
+
|
776
|
+
/**
|
777
|
+
* @remarks Not used
|
778
|
+
*/
|
779
|
+
controlIcon: null;
|
780
|
+
|
781
|
+
/**
|
782
|
+
* @deprecated since v10, will be removed in v12
|
783
|
+
* @remarks `"Token#hasLimitedVisionAngle has been renamed to Token#hasLimitedSourceAngle"`
|
784
|
+
*/
|
785
|
+
get hasLimitedVisionAngle(): boolean;
|
786
|
+
|
787
|
+
/**
|
788
|
+
* @deprecated since v10, will be removed in v12
|
789
|
+
* @remarks `"Token#getSightOrigin has been deprecated in favor of Token#getMovementAdjustedPoint"`
|
790
|
+
*/
|
791
|
+
getSightOrigin(): {
|
792
|
+
x: number;
|
793
|
+
y: number;
|
794
|
+
};
|
795
|
+
|
796
|
+
/**
|
797
|
+
* @deprecated since v10, will be removed in v12
|
798
|
+
* @remarks `"Token#icon has been renamed to Token#mesh."`
|
799
|
+
*/
|
800
|
+
get icon(): this["mesh"];
|
801
|
+
|
802
|
+
/**
|
803
|
+
* @deprecated since v11, will be removed in v13
|
804
|
+
* @remarks `"Token#updatePosition has been deprecated without replacement as it is no longer required."`
|
805
|
+
*/
|
806
|
+
updatePosition(): void;
|
807
|
+
|
808
|
+
/**
|
809
|
+
* @deprecated since v11, will be removed in v13
|
810
|
+
* @remarks "Token#refreshHUD is deprecated in favor of token.renderFlags.set()"
|
811
|
+
*/
|
812
|
+
refreshHUD(options?: Token.ObjectHUD): void;
|
813
|
+
}
|
814
|
+
|
815
|
+
/**
|
816
|
+
* A "secret" global to help debug attributes of the currently controlled Token.
|
817
|
+
* This is only for debugging, and may be removed in the future, so it's not safe to use.
|
818
|
+
*/
|
819
|
+
let _token: Token.ConfiguredInstance | null;
|
820
|
+
}
|