@league-of-foundry-developers/foundry-vtt-types 13.340.1 → 13.345.1
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 +8 -6
- package/package.json +34 -40
- package/src/configuration/configuration.d.mts +52 -18
- package/src/configuration/documents.d.mts +35 -14
- package/src/configuration/globals.d.mts +70 -115
- package/src/configuration/hooks.d.mts +96 -0
- package/src/configuration/index.d.mts +1 -0
- package/src/foundry/client/_types.d.mts +98 -0
- package/src/foundry/client/applications/_module.d.mts +30 -0
- package/src/foundry/client/applications/api/application.d.mts +966 -0
- package/src/foundry/client/applications/api/category-browser.d.mts +130 -0
- package/src/foundry/client/applications/api/dialog.d.mts +641 -0
- package/src/foundry/client/applications/api/document-sheet.d.mts +207 -0
- package/src/foundry/client/applications/api/handlebars-application.d.mts +240 -0
- package/src/foundry/client/applications/apps/av/camera-popout.d.mts +44 -0
- package/src/foundry/client/applications/apps/av/cameras.d.mts +118 -0
- package/src/foundry/client/applications/apps/combat-tracker-config.d.mts +45 -0
- package/src/foundry/client/applications/apps/compendium-art-config.d.mts +73 -0
- package/src/foundry/client/applications/apps/document-ownership.d.mts +51 -0
- package/src/foundry/client/applications/apps/document-sheet-config.d.mts +109 -0
- package/src/foundry/client/applications/apps/file-picker.d.mts +453 -0
- package/src/foundry/client/applications/apps/grid-config.d.mts +51 -0
- package/src/foundry/client/applications/apps/image-popout.d.mts +111 -0
- package/src/foundry/client/applications/apps/permission-config.d.mts +79 -0
- package/src/foundry/client/applications/dice/roll-resolver.d.mts +125 -0
- package/src/foundry/client/applications/elements/document-tags.d.mts +93 -0
- package/src/foundry/client/applications/elements/file-picker.d.mts +63 -0
- package/src/foundry/client/applications/elements/form-element.d.mts +108 -0
- package/src/foundry/client/applications/elements/multi-select.d.mts +107 -0
- package/src/foundry/client/applications/elements/prosemirror-editor.d.mts +54 -0
- package/src/foundry/client/applications/forms/fields.d.mts +271 -0
- package/src/foundry/client/applications/handlebars.d.mts +475 -0
- package/src/foundry/client/applications/hud/container.d.mts +50 -0
- package/src/foundry/client/applications/hud/drawing-hud.d.mts +47 -0
- package/src/foundry/client/applications/hud/placeable-hud.d.mts +66 -0
- package/src/foundry/client/applications/hud/tile-hud.d.mts +43 -0
- package/src/foundry/client/applications/hud/token-hud.d.mts +48 -0
- package/src/foundry/client/applications/quickstart.d.mts +45 -0
- package/src/foundry/client/applications/settings/_module.d.mts +8 -0
- package/src/foundry/client/applications/settings/config.d.mts +63 -0
- package/src/foundry/client/applications/settings/dependency-resolution.d.mts +40 -0
- package/src/foundry/client/applications/settings/menus/av-config.d.mts +50 -0
- package/src/foundry/client/applications/settings/menus/default-sheets-config.d.mts +49 -0
- package/src/foundry/client/applications/settings/menus/dice-config.d.mts +38 -0
- package/src/foundry/client/applications/settings/menus/font-config.d.mts +66 -0
- package/src/foundry/client/applications/settings/menus/prototype-overrides.d.mts +47 -0
- package/src/foundry/client/applications/settings/menus/ui-config.d.mts +49 -0
- package/src/foundry/client/applications/sheets/_module.d.mts +39 -0
- package/src/foundry/client/applications/sheets/active-effect-config.d.mts +51 -0
- package/src/foundry/client/applications/sheets/actor-sheet.d.mts +56 -0
- package/src/foundry/client/applications/sheets/adventure-exporter.d.mts +51 -0
- package/src/foundry/client/applications/sheets/adventure-importer.d.mts +49 -0
- package/src/foundry/client/applications/sheets/ambient-light-config.d.mts +115 -0
- package/src/foundry/client/applications/sheets/ambient-sound-config.d.mts +77 -0
- package/src/foundry/client/applications/sheets/base-sheet.d.mts +53 -0
- package/src/foundry/client/applications/sheets/card-config.d.mts +51 -0
- package/src/foundry/client/applications/sheets/cards-config.d.mts +135 -0
- package/src/foundry/client/applications/sheets/combatant-config.d.mts +51 -0
- package/src/foundry/client/applications/sheets/drawing-config.d.mts +51 -0
- package/src/foundry/client/applications/sheets/folder-config.d.mts +51 -0
- package/src/foundry/client/applications/sheets/item-sheet.d.mts +48 -0
- package/src/foundry/client/applications/sheets/journal/dialog-show.d.mts +42 -0
- package/src/foundry/client/applications/sheets/journal/journal-entry-category-config.d.mts +51 -0
- package/src/foundry/client/applications/sheets/journal/journal-entry-page-hbs-sheet.d.mts +41 -0
- package/src/foundry/client/applications/sheets/journal/journal-entry-page-image-sheet.d.mts +38 -0
- package/src/foundry/client/applications/sheets/journal/journal-entry-page-markdown-sheet.d.mts +38 -0
- package/src/foundry/client/applications/sheets/journal/journal-entry-page-pdf-sheet.d.mts +38 -0
- package/src/foundry/client/applications/sheets/journal/journal-entry-page-prose-mirror-sheet.d.mts +38 -0
- package/src/foundry/client/applications/sheets/journal/journal-entry-page-sheet.d.mts +50 -0
- package/src/foundry/client/applications/sheets/journal/journal-entry-page-text-sheet.d.mts +38 -0
- package/src/foundry/client/applications/sheets/journal/journal-entry-page-video-sheet.d.mts +40 -0
- package/src/foundry/client/applications/sheets/journal/journal-entry-sheet.d.mts +69 -0
- package/src/foundry/client/applications/sheets/macro-config.d.mts +51 -0
- package/src/foundry/client/applications/sheets/note-config.d.mts +51 -0
- package/src/foundry/client/applications/sheets/playlist-config.d.mts +51 -0
- package/src/foundry/client/applications/sheets/playlist-sound-config.d.mts +51 -0
- package/src/foundry/client/applications/sheets/region-behavior-config.d.mts +68 -0
- package/src/foundry/client/applications/sheets/region-config.d.mts +76 -0
- package/src/foundry/client/applications/sheets/roll-table-sheet.d.mts +51 -0
- package/src/foundry/client/applications/sheets/scene-config.d.mts +51 -0
- package/src/foundry/client/applications/sheets/table-result-config.d.mts +51 -0
- package/src/foundry/client/applications/sheets/template-config.d.mts +50 -0
- package/src/foundry/client/applications/sheets/tile-config.d.mts +51 -0
- package/src/foundry/client/applications/sheets/token/mixin.d.mts +47 -0
- package/src/foundry/client/applications/sheets/token/prototype-config.d.mts +41 -0
- package/src/foundry/client/applications/sheets/token/token-config.d.mts +51 -0
- package/src/foundry/client/applications/sheets/user-config.d.mts +65 -0
- package/src/foundry/client/applications/sheets/wall-config.d.mts +51 -0
- package/src/foundry/client/applications/sidebar/apps/chat-popout.d.mts +44 -0
- package/src/foundry/client/applications/sidebar/apps/compendium.d.mts +44 -0
- package/src/foundry/client/applications/sidebar/apps/controls-config.d.mts +49 -0
- package/src/foundry/client/applications/sidebar/apps/folder-export.d.mts +40 -0
- package/src/foundry/client/applications/sidebar/apps/frame-viewer.d.mts +44 -0
- package/src/foundry/client/applications/sidebar/apps/invitation-links.d.mts +39 -0
- package/src/foundry/client/applications/sidebar/apps/module-management.d.mts +42 -0
- package/src/foundry/client/applications/sidebar/apps/support-details.d.mts +39 -0
- package/src/foundry/client/applications/sidebar/apps/tours-management.d.mts +61 -0
- package/src/foundry/client/applications/sidebar/apps/world-config.d.mts +40 -0
- package/src/foundry/client/applications/sidebar/document-directory.d.mts +55 -0
- package/src/foundry/client/applications/sidebar/sidebar-tab.d.mts +106 -0
- package/src/foundry/client/applications/sidebar/sidebar.d.mts +129 -0
- package/src/foundry/client/applications/sidebar/tabs/actor-directory.d.mts +39 -0
- package/src/foundry/client/applications/sidebar/tabs/cards-directory.d.mts +39 -0
- package/src/foundry/client/applications/sidebar/tabs/chat.d.mts +36 -0
- package/src/foundry/client/applications/sidebar/tabs/combat-tracker.d.mts +283 -0
- package/src/foundry/client/applications/sidebar/tabs/compendium-directory.d.mts +40 -0
- package/src/foundry/client/applications/sidebar/tabs/item-directory.d.mts +39 -0
- package/src/foundry/client/applications/sidebar/tabs/journal-directory.d.mts +39 -0
- package/src/foundry/client/applications/sidebar/tabs/macro-directory.d.mts +39 -0
- package/src/foundry/client/applications/sidebar/tabs/playlist-directory.d.mts +39 -0
- package/src/foundry/client/applications/sidebar/tabs/roll-table-directory.d.mts +39 -0
- package/src/foundry/client/applications/sidebar/tabs/scene-directory.d.mts +39 -0
- package/src/foundry/client/applications/sidebar/tabs/settings.d.mts +39 -0
- package/src/foundry/client/applications/ui/game-pause.d.mts +49 -0
- package/src/foundry/client/applications/ui/hotbar.d.mts +52 -0
- package/src/foundry/client/applications/ui/main-menu.d.mts +50 -0
- package/src/foundry/client/applications/ui/players.d.mts +56 -0
- package/src/foundry/client/applications/ui/region-legend.d.mts +97 -0
- package/src/foundry/client/applications/ui/scene-controls.d.mts +117 -0
- package/src/foundry/client/applications/ui/scene-navigation.d.mts +55 -0
- package/src/foundry/client/applications/ux/context-menu.d.mts +327 -0
- package/src/foundry/client/applications/ux/drag-drop.d.mts +167 -0
- package/src/foundry/client/applications/ux/draggable.d.mts +156 -0
- package/src/foundry/client/applications/ux/form-data-extended.d.mts +89 -0
- package/src/foundry/client/applications/ux/html-secret.d.mts +75 -0
- package/src/foundry/client/applications/ux/prosemirror-editor.d.mts +199 -0
- package/src/foundry/client/applications/ux/search-filter.d.mts +148 -0
- package/src/foundry/client/applications/ux/tabs.d.mts +121 -0
- package/src/foundry/client/applications/ux/text-editor.d.mts +478 -0
- package/src/foundry/client/appv1/api/application-v1.d.mts +608 -0
- package/src/foundry/client/appv1/api/dialog-v1.d.mts +344 -0
- package/src/foundry/client/appv1/api/document-sheet-v1.d.mts +166 -0
- package/src/foundry/client/appv1/api/form-application-v1.d.mts +361 -0
- package/src/foundry/client/appv1/sheets/actor-sheet.d.mts +194 -0
- package/src/foundry/client/appv1/sheets/adventure-importer.d.mts +101 -0
- package/src/foundry/client/appv1/sheets/item-sheet.d.mts +68 -0
- package/src/foundry/client/appv1/sheets/journal-page-sheet.d.mts +179 -0
- package/src/foundry/client/appv1/sheets/journal-sheet.d.mts +325 -0
- package/src/foundry/client/audio/_types.d.mts +18 -0
- package/src/foundry/client/audio/biquad.d.mts +102 -0
- package/src/foundry/client/audio/cache.d.mts +79 -0
- package/src/foundry/client/audio/convolver.d.mts +94 -0
- package/src/foundry/client/audio/helper.d.mts +372 -0
- package/src/foundry/client/audio/sound.d.mts +509 -0
- package/src/foundry/client/audio/timeout.d.mts +101 -0
- package/src/foundry/client/av/client.d.mts +164 -161
- package/src/foundry/client/av/clients/simplepeer.d.mts +159 -156
- package/src/foundry/client/av/master.d.mts +194 -190
- package/src/foundry/client/av/settings.d.mts +323 -233
- package/src/foundry/client/canvas/_module.d.mts +23 -0
- package/src/foundry/client/canvas/animation/_module.d.mts +8 -0
- package/src/foundry/client/canvas/animation/_types.d.mts +20 -0
- package/src/foundry/client/canvas/animation/canvas-animation.d.mts +236 -0
- package/src/foundry/client/canvas/animation/chat-bubbles.d.mts +31 -0
- package/src/foundry/client/canvas/animation/smooth-noise.d.mts +80 -0
- package/src/foundry/client/canvas/board.d.mts +878 -0
- package/src/foundry/client/canvas/containers/_module.d.mts +25 -0
- package/src/foundry/client/canvas/containers/_types.d.mts +14 -0
- package/src/foundry/client/canvas/containers/advanced/cached-container.d.mts +138 -0
- package/src/foundry/client/canvas/containers/advanced/full-canvas-mixin.d.mts +28 -0
- package/src/foundry/client/canvas/containers/advanced/unbound-container.d.mts +21 -0
- package/src/foundry/client/canvas/containers/elements/control-icon.d.mts +129 -0
- package/src/foundry/client/canvas/containers/elements/cursor.d.mts +42 -0
- package/src/foundry/client/canvas/containers/elements/door-control.d.mts +90 -0
- package/src/foundry/client/canvas/containers/elements/door-mesh.d.mts +16 -0
- package/src/foundry/client/canvas/containers/elements/grid-highlight.d.mts +43 -0
- package/src/foundry/client/canvas/containers/elements/grid-mesh.d.mts +103 -0
- package/src/foundry/client/canvas/containers/elements/particles/leaves.d.mts +51 -0
- package/src/foundry/client/canvas/containers/elements/particles/particle-effect.d.mts +57 -0
- package/src/foundry/client/canvas/containers/elements/point-source-mesh.d.mts +73 -0
- package/src/foundry/client/canvas/containers/elements/precise-text.d.mts +46 -0
- package/src/foundry/client/canvas/containers/elements/quad-mesh.d.mts +54 -0
- package/src/foundry/client/canvas/containers/elements/resize-handle.d.mts +83 -0
- package/src/foundry/client/canvas/containers/elements/sprite-mesh.d.mts +370 -0
- package/src/foundry/client/canvas/extensions/_module.d.mts +9 -0
- package/src/foundry/client/canvas/extensions/circle-extension.d.mts +150 -0
- package/src/foundry/client/canvas/extensions/graphics-extension.d.mts +45 -0
- package/src/foundry/client/canvas/extensions/polygon-extension.d.mts +175 -0
- package/src/foundry/client/canvas/extensions/rectangle-extension.d.mts +287 -0
- package/src/foundry/client/canvas/framebuffer-snapshot.d.mts +33 -0
- package/src/foundry/client/canvas/geometry/_module.d.mts +17 -0
- package/src/foundry/client/canvas/geometry/_types.d.mts +34 -0
- package/src/foundry/client/canvas/geometry/clockwise-sweep.d.mts +281 -0
- package/src/foundry/client/canvas/geometry/edges/collision.d.mts +131 -0
- package/src/foundry/client/canvas/geometry/edges/edge.d.mts +258 -0
- package/src/foundry/client/canvas/geometry/edges/edges.d.mts +70 -0
- package/src/foundry/client/canvas/geometry/edges/vertex.d.mts +198 -0
- package/src/foundry/client/canvas/geometry/observable-transform.d.mts +39 -0
- package/src/foundry/client/canvas/geometry/quad-tree.d.mts +324 -0
- package/src/foundry/client/canvas/geometry/shapes/limited-angle-polygon.d.mts +143 -0
- package/src/foundry/client/canvas/geometry/shapes/polygon-mesher.d.mts +141 -0
- package/src/foundry/client/canvas/geometry/shapes/ray.d.mts +177 -0
- package/src/foundry/client/canvas/geometry/shapes/source-polygon.d.mts +368 -0
- package/src/foundry/client/canvas/geometry/unbound-transform.d.mts +22 -0
- package/src/foundry/client/canvas/geometry/weiler-atherton-clipping.d.mts +203 -0
- package/src/foundry/client/canvas/groups/_module.d.mts +14 -0
- package/src/foundry/client/canvas/groups/canvas-group-mixin.d.mts +178 -0
- package/src/foundry/client/canvas/groups/effects.d.mts +248 -0
- package/src/foundry/client/canvas/groups/environment.d.mts +137 -0
- package/src/foundry/client/canvas/groups/hidden.d.mts +65 -0
- package/src/foundry/client/canvas/groups/interface.d.mts +110 -0
- package/src/foundry/client/canvas/groups/overlay.d.mts +40 -0
- package/src/foundry/client/canvas/groups/primary.d.mts +237 -0
- package/src/foundry/client/canvas/groups/rendered.d.mts +39 -0
- package/src/foundry/client/canvas/groups/visibility.d.mts +263 -0
- package/src/foundry/client/canvas/interaction/_module.d.mts +24 -0
- package/src/foundry/client/canvas/interaction/_types.d.mts +18 -0
- package/src/foundry/client/canvas/interaction/mouse-handler.d.mts +362 -0
- package/src/foundry/client/canvas/interaction/ping/alert.d.mts +38 -0
- package/src/foundry/client/canvas/interaction/ping/arrow.d.mts +41 -0
- package/src/foundry/client/canvas/interaction/ping/chevron.d.mts +98 -0
- package/src/foundry/client/canvas/interaction/ping/ping.d.mts +86 -0
- package/src/foundry/client/canvas/interaction/ping/pulse.d.mts +104 -0
- package/src/foundry/client/canvas/interaction/render-flags.d.mts +182 -0
- package/src/foundry/client/canvas/interaction/ruler/base-ruler.d.mts +17 -0
- package/src/foundry/client/canvas/interaction/ruler/ruler.d.mts +498 -0
- package/src/foundry/client/canvas/layers/_module.d.mts +36 -0
- package/src/foundry/client/canvas/layers/_types.d.mts +26 -0
- package/src/foundry/client/canvas/layers/base/canvas-layer.d.mts +91 -0
- package/src/foundry/client/canvas/layers/base/interaction-layer.d.mts +165 -0
- package/src/foundry/client/canvas/layers/base/placeables-layer.d.mts +714 -0
- package/src/foundry/client/canvas/layers/controls.d.mts +288 -0
- package/src/foundry/client/canvas/layers/drawings.d.mts +123 -0
- package/src/foundry/client/canvas/layers/effects/background-effects.d.mts +56 -0
- package/src/foundry/client/canvas/layers/effects/coloration-effects.d.mts +51 -0
- package/src/foundry/client/canvas/layers/effects/darkness-effects.d.mts +42 -0
- package/src/foundry/client/canvas/layers/effects/illumination-effects.d.mts +162 -0
- package/src/foundry/client/canvas/layers/effects/weather-effects.d.mts +316 -0
- package/src/foundry/client/canvas/layers/grid.d.mts +284 -0
- package/src/foundry/client/canvas/layers/lighting.d.mts +92 -0
- package/src/foundry/client/canvas/layers/masks/depth.d.mts +68 -0
- package/src/foundry/client/canvas/layers/masks/occlusion.d.mts +101 -0
- package/src/foundry/client/canvas/layers/masks/vision.d.mts +206 -0
- package/src/foundry/client/canvas/layers/notes.d.mts +138 -0
- package/src/foundry/client/canvas/layers/regions.d.mts +123 -0
- package/src/foundry/client/canvas/layers/sounds.d.mts +345 -0
- package/src/foundry/client/canvas/layers/templates.d.mts +79 -0
- package/src/foundry/client/canvas/layers/tiles.d.mts +136 -0
- package/src/foundry/client/canvas/layers/tokens.d.mts +218 -0
- package/src/foundry/client/canvas/layers/walls.d.mts +218 -0
- package/src/foundry/client/canvas/loader.d.mts +319 -0
- package/src/foundry/client/canvas/perception/_module.d.mts +19 -0
- package/src/foundry/client/canvas/perception/_types.d.mts +12 -0
- package/src/foundry/client/canvas/perception/detection-mode.d.mts +173 -0
- package/src/foundry/client/canvas/perception/detection-modes/darkvision.d.mts +26 -0
- package/src/foundry/client/canvas/perception/detection-modes/invisibility-perception.d.mts +29 -0
- package/src/foundry/client/canvas/perception/detection-modes/light-perception.d.mts +33 -0
- package/src/foundry/client/canvas/perception/detection-modes/super-perception.d.mts +27 -0
- package/src/foundry/client/canvas/perception/detection-modes/tremor-perception.d.mts +26 -0
- package/src/foundry/client/canvas/perception/fog.d.mts +157 -0
- package/src/foundry/client/canvas/perception/perception-manager.d.mts +163 -0
- package/src/foundry/client/canvas/perception/vision-mode.d.mts +249 -0
- package/src/foundry/client/canvas/placeables/_module.d.mts +20 -0
- package/src/foundry/client/canvas/placeables/_types.d.mts +16 -0
- package/src/foundry/client/canvas/placeables/drawing.d.mts +412 -0
- package/src/foundry/client/canvas/placeables/light.d.mts +266 -0
- package/src/foundry/client/canvas/placeables/note.d.mts +203 -0
- package/src/foundry/client/canvas/placeables/placeable-object.d.mts +772 -0
- package/src/foundry/client/canvas/placeables/region.d.mts +275 -0
- package/src/foundry/client/canvas/placeables/regions/_module.d.mts +7 -0
- package/src/foundry/client/canvas/placeables/regions/geometry.d.mts +40 -0
- package/src/foundry/client/canvas/placeables/regions/mesh.d.mts +75 -0
- package/src/foundry/client/canvas/placeables/sound.d.mts +271 -0
- package/src/foundry/client/canvas/placeables/template.d.mts +290 -0
- package/src/foundry/client/canvas/placeables/tile.d.mts +349 -0
- package/src/foundry/client/canvas/placeables/token.d.mts +1295 -0
- package/src/foundry/client/canvas/placeables/tokens/_module.d.mts +13 -0
- package/src/foundry/client/canvas/placeables/tokens/base-ruler.d.mts +77 -0
- package/src/foundry/client/canvas/placeables/tokens/ring-config.d.mts +255 -0
- package/src/foundry/client/canvas/placeables/tokens/ring-data.d.mts +149 -0
- package/src/foundry/client/canvas/placeables/tokens/ring.d.mts +290 -0
- package/src/foundry/client/canvas/placeables/tokens/ruler.d.mts +219 -0
- package/src/foundry/client/canvas/placeables/tokens/targets.d.mts +50 -0
- package/src/foundry/client/canvas/placeables/tokens/turn-marker-data.d.mts +17 -0
- package/src/foundry/client/canvas/placeables/tokens/turn-marker.d.mts +16 -0
- package/src/foundry/client/canvas/placeables/wall.d.mts +393 -0
- package/src/foundry/client/canvas/primary/_module.d.mts +12 -0
- package/src/foundry/client/canvas/primary/primary-canvas-container.d.mts +17 -0
- package/src/foundry/client/canvas/primary/primary-canvas-object.d.mts +201 -0
- package/src/foundry/client/canvas/primary/primary-graphics.d.mts +62 -0
- package/src/foundry/client/canvas/primary/primary-occludable-object.d.mts +205 -0
- package/src/foundry/client/canvas/primary/primary-particle-effect.d.mts +17 -0
- package/src/foundry/client/canvas/primary/primary-sprite-mesh.d.mts +203 -0
- package/src/foundry/client/canvas/rendering/_module.d.mts +10 -0
- package/src/foundry/client/canvas/rendering/batching/_module.d.mts +7 -0
- package/src/foundry/client/canvas/rendering/batching/batch-renderer.d.mts +136 -0
- package/src/foundry/client/canvas/rendering/batching/batch-shader-generator.d.mts +30 -0
- package/src/foundry/client/canvas/rendering/blend-modes.d.mts +49 -0
- package/src/foundry/client/canvas/rendering/filters/_module.d.mts +23 -0
- package/src/foundry/client/canvas/rendering/filters/_types.d.mts +4 -0
- package/src/foundry/client/canvas/rendering/filters/base-filter.d.mts +47 -0
- package/src/foundry/client/canvas/rendering/filters/base-mask-filter.d.mts +32 -0
- package/src/foundry/client/canvas/rendering/filters/blur.d.mts +194 -0
- package/src/foundry/client/canvas/rendering/filters/effects-masking.d.mts +144 -0
- package/src/foundry/client/canvas/rendering/filters/environment.d.mts +43 -0
- package/src/foundry/client/canvas/rendering/filters/glow-overlay.d.mts +78 -0
- package/src/foundry/client/canvas/rendering/filters/invisibility.d.mts +32 -0
- package/src/foundry/client/canvas/rendering/filters/outline-overlay.d.mts +87 -0
- package/src/foundry/client/canvas/rendering/filters/smaa/_types.d.mts +13 -0
- package/src/foundry/client/canvas/rendering/filters/smaa/blend.d.mts +19 -0
- package/src/foundry/client/canvas/rendering/filters/smaa/edges.d.mts +22 -0
- package/src/foundry/client/canvas/rendering/filters/smaa/smaa.d.mts +165 -0
- package/src/foundry/client/canvas/rendering/filters/smaa/weights.d.mts +22 -0
- package/src/foundry/client/canvas/rendering/filters/transition.d.mts +130 -0
- package/src/foundry/client/canvas/rendering/filters/visibility.d.mts +82 -0
- package/src/foundry/client/canvas/rendering/filters/vision-mask-filter.d.mts +38 -0
- package/src/foundry/client/canvas/rendering/filters/void.d.mts +20 -0
- package/src/foundry/client/canvas/rendering/filters/weather-occlusion-mask.d.mts +59 -0
- package/src/foundry/client/canvas/rendering/mixins/_module.d.mts +7 -0
- package/src/foundry/client/canvas/rendering/mixins/base-shader-mixin.d.mts +134 -0
- package/src/foundry/client/canvas/rendering/mixins/fragment-channel-mixin.d.mts +66 -0
- package/src/foundry/client/canvas/rendering/shaders/_module.d.mts +93 -0
- package/src/foundry/client/canvas/rendering/shaders/_types.d.mts +16 -0
- package/src/foundry/client/canvas/rendering/shaders/base-shader.d.mts +109 -0
- package/src/foundry/client/canvas/rendering/shaders/graphics/dash-line.d.mts +48 -0
- package/src/foundry/client/canvas/rendering/shaders/grid/grid.d.mts +122 -0
- package/src/foundry/client/canvas/rendering/shaders/lighting/background-lighting.d.mts +69 -0
- package/src/foundry/client/canvas/rendering/shaders/lighting/base-lighting.d.mts +179 -0
- package/src/foundry/client/canvas/rendering/shaders/lighting/coloration-lighting.d.mts +76 -0
- package/src/foundry/client/canvas/rendering/shaders/lighting/darkness-lighting.d.mts +76 -0
- package/src/foundry/client/canvas/rendering/shaders/lighting/effects/bewitching-wave.d.mts +37 -0
- package/src/foundry/client/canvas/rendering/shaders/lighting/effects/black-hole.d.mts +20 -0
- package/src/foundry/client/canvas/rendering/shaders/lighting/effects/chroma.d.mts +25 -0
- package/src/foundry/client/canvas/rendering/shaders/lighting/effects/dense-smoke.d.mts +20 -0
- package/src/foundry/client/canvas/rendering/shaders/lighting/effects/emanation.d.mts +25 -0
- package/src/foundry/client/canvas/rendering/shaders/lighting/effects/energy-field.d.mts +25 -0
- package/src/foundry/client/canvas/rendering/shaders/lighting/effects/fairy-light.d.mts +42 -0
- package/src/foundry/client/canvas/rendering/shaders/lighting/effects/flame.d.mts +60 -0
- package/src/foundry/client/canvas/rendering/shaders/lighting/effects/fog.d.mts +25 -0
- package/src/foundry/client/canvas/rendering/shaders/lighting/effects/force-grid.d.mts +25 -0
- package/src/foundry/client/canvas/rendering/shaders/lighting/effects/ghost-light.d.mts +37 -0
- package/src/foundry/client/canvas/rendering/shaders/lighting/effects/hexa-dome.d.mts +25 -0
- package/src/foundry/client/canvas/rendering/shaders/lighting/effects/light-dome.d.mts +25 -0
- package/src/foundry/client/canvas/rendering/shaders/lighting/effects/magical-gloom.d.mts +20 -0
- package/src/foundry/client/canvas/rendering/shaders/lighting/effects/pulse.d.mts +49 -0
- package/src/foundry/client/canvas/rendering/shaders/lighting/effects/radial-rainbow.d.mts +25 -0
- package/src/foundry/client/canvas/rendering/shaders/lighting/effects/revolving-light.d.mts +39 -0
- package/src/foundry/client/canvas/rendering/shaders/lighting/effects/roiling-mass.d.mts +20 -0
- package/src/foundry/client/canvas/rendering/shaders/lighting/effects/siren-light.d.mts +66 -0
- package/src/foundry/client/canvas/rendering/shaders/lighting/effects/smoke-patch.d.mts +37 -0
- package/src/foundry/client/canvas/rendering/shaders/lighting/effects/star-light.d.mts +25 -0
- package/src/foundry/client/canvas/rendering/shaders/lighting/effects/sunburst.d.mts +37 -0
- package/src/foundry/client/canvas/rendering/shaders/lighting/effects/swirling-rainbow.d.mts +25 -0
- package/src/foundry/client/canvas/rendering/shaders/lighting/effects/torch.d.mts +50 -0
- package/src/foundry/client/canvas/rendering/shaders/lighting/effects/vortex.d.mts +42 -0
- package/src/foundry/client/canvas/rendering/shaders/lighting/effects/wave.d.mts +37 -0
- package/src/foundry/client/canvas/rendering/shaders/lighting/illumination-lighting.d.mts +79 -0
- package/src/foundry/client/canvas/rendering/shaders/region/adjust-darkness-level.d.mts +137 -0
- package/src/foundry/client/canvas/rendering/shaders/region/base.d.mts +80 -0
- package/src/foundry/client/canvas/rendering/shaders/region/highlight.d.mts +97 -0
- package/src/foundry/client/canvas/rendering/shaders/samplers/amplification.d.mts +58 -0
- package/src/foundry/client/canvas/rendering/shaders/samplers/base-sampler.d.mts +223 -0
- package/src/foundry/client/canvas/rendering/shaders/samplers/baseline-illumination.d.mts +40 -0
- package/src/foundry/client/canvas/rendering/shaders/samplers/color-adjustments.d.mts +65 -0
- package/src/foundry/client/canvas/rendering/shaders/samplers/colorize-brightness.d.mts +40 -0
- package/src/foundry/client/canvas/rendering/shaders/samplers/fog-of-war.d.mts +27 -0
- package/src/foundry/client/canvas/rendering/shaders/samplers/primary/depth.d.mts +111 -0
- package/src/foundry/client/canvas/rendering/shaders/samplers/primary/occlusion.d.mts +109 -0
- package/src/foundry/client/canvas/rendering/shaders/samplers/primary/primary.d.mts +38 -0
- package/src/foundry/client/canvas/rendering/shaders/samplers/primary/token-ring.d.mts +79 -0
- package/src/foundry/client/canvas/rendering/shaders/vision/background-vision.d.mts +67 -0
- package/src/foundry/client/canvas/rendering/shaders/vision/base-vision.d.mts +35 -0
- package/src/foundry/client/canvas/rendering/shaders/vision/coloration-vision.d.mts +67 -0
- package/src/foundry/client/canvas/rendering/shaders/vision/effects/amplification.d.mts +34 -0
- package/src/foundry/client/canvas/rendering/shaders/vision/effects/wave.d.mts +62 -0
- package/src/foundry/client/canvas/rendering/shaders/vision/illumination-vision.d.mts +67 -0
- package/src/foundry/client/canvas/rendering/shaders/weather/base-weather.d.mts +120 -0
- package/src/foundry/client/canvas/rendering/shaders/weather/effect.d.mts +57 -0
- package/src/foundry/client/canvas/rendering/shaders/weather/fog.d.mts +52 -0
- package/src/foundry/client/canvas/rendering/shaders/weather/rain.d.mts +44 -0
- package/src/foundry/client/canvas/rendering/shaders/weather/snow.d.mts +36 -0
- package/src/foundry/client/canvas/scene-manager.d.mts +106 -0
- package/src/foundry/client/canvas/sources/base-effect-source.d.mts +297 -0
- package/src/foundry/client/canvas/sources/base-light-source.d.mts +306 -0
- package/src/foundry/client/canvas/sources/global-light-source.d.mts +141 -0
- package/src/foundry/client/canvas/sources/point-darkness-source.d.mts +160 -0
- package/src/foundry/client/canvas/sources/point-effect-source.d.mts +190 -0
- package/src/foundry/client/canvas/sources/point-light-source.d.mts +131 -0
- package/src/foundry/client/canvas/sources/point-movement-source.d.mts +65 -0
- package/src/foundry/client/canvas/sources/point-sound-source.d.mts +92 -0
- package/src/foundry/client/canvas/sources/point-vision-source.d.mts +357 -0
- package/src/foundry/client/canvas/sources/rendered-effect-source.d.mts +471 -0
- package/src/foundry/client/canvas/texture-extractor.d.mts +171 -0
- package/src/foundry/client/canvas/workers/_module.d.mts +6 -0
- package/src/foundry/client/canvas/workers/texture-worker.d.mts +147 -0
- package/src/foundry/client/client.d.mts +2489 -0
- package/src/foundry/client/config.d.mts +684 -238
- package/src/foundry/client/data/_module.d.mts +13 -0
- package/src/foundry/client/data/calendar.d.mts +341 -0
- package/src/foundry/client/data/client-backend.d.mts +52 -0
- package/src/foundry/client/data/region-behaviors/adjust-darkness-level.d.mts +56 -0
- package/src/foundry/client/data/region-behaviors/base.d.mts +60 -0
- package/src/foundry/client/data/region-behaviors/display-scrolling-text.d.mts +64 -0
- package/src/foundry/client/data/region-behaviors/teleport-token.d.mts +31 -0
- package/src/foundry/client/data/region-behaviors/toggle-behavior.d.mts +31 -0
- package/src/foundry/client/data/region-shapes/_module.d.mts +7 -0
- package/src/foundry/client/data/region-shapes/polygon-tree.d.mts +132 -0
- package/src/foundry/client/data/region-shapes/shape.d.mts +129 -0
- package/src/foundry/client/dice/_types.d.mts +65 -0
- package/src/foundry/client/dice/parser.d.mts +192 -0
- package/src/foundry/client/dice/roll.d.mts +663 -0
- package/src/foundry/client/dice/terms/coin.d.mts +71 -0
- package/src/foundry/client/dice/terms/dice.d.mts +424 -0
- package/src/foundry/client/dice/terms/die.d.mts +248 -0
- package/src/foundry/client/dice/terms/fate.d.mts +57 -0
- package/src/foundry/client/dice/terms/function.d.mts +106 -0
- package/src/foundry/client/dice/terms/numeric.d.mts +54 -0
- package/src/foundry/client/dice/terms/operator.d.mts +55 -0
- package/src/foundry/client/dice/terms/parenthetical.d.mts +104 -0
- package/src/foundry/client/dice/terms/pool.d.mts +272 -0
- package/src/foundry/client/dice/terms/string.d.mts +34 -0
- package/src/foundry/client/dice/terms/term.d.mts +178 -0
- package/src/foundry/client/documents/_module.d.mts +51 -0
- package/src/foundry/client/documents/_types.d.mts +134 -0
- package/src/foundry/client/documents/abstract/_module.d.mts +10 -0
- package/src/foundry/client/documents/abstract/canvas-document.d.mts +67 -0
- package/src/foundry/client/documents/abstract/client-document.d.mts +659 -0
- package/src/foundry/client/documents/abstract/directory-collection-mixin.d.mts +132 -0
- package/src/foundry/client/documents/abstract/document-collection.d.mts +243 -0
- package/src/foundry/client/documents/abstract/world-collection.d.mts +192 -0
- package/src/foundry/client/documents/active-effect.d.mts +977 -0
- package/src/foundry/client/documents/actor-delta.d.mts +769 -0
- package/src/foundry/client/documents/actor.d.mts +1036 -0
- package/src/foundry/client/documents/adventure.d.mts +569 -0
- package/src/foundry/client/documents/ambient-light.d.mts +457 -0
- package/src/foundry/client/documents/ambient-sound.d.mts +511 -0
- package/src/foundry/client/documents/card.d.mts +679 -0
- package/src/foundry/client/documents/cards.d.mts +1017 -0
- package/src/foundry/client/documents/chat-message.d.mts +831 -0
- package/src/foundry/client/documents/collections/_module.d.mts +23 -0
- package/src/foundry/client/documents/collections/actors.d.mts +51 -0
- package/src/foundry/client/documents/collections/card-stacks.d.mts +25 -0
- package/src/foundry/client/documents/collections/chat-messages.d.mts +48 -0
- package/src/foundry/client/documents/collections/combat-encounters.d.mts +56 -0
- package/src/foundry/client/documents/collections/compendium-collection.d.mts +491 -0
- package/src/foundry/client/documents/collections/compendium-folders.d.mts +30 -0
- package/src/foundry/client/documents/collections/compendium-packs.d.mts +30 -0
- package/src/foundry/client/documents/collections/fog-explorations.d.mts +32 -0
- package/src/foundry/client/documents/collections/folders.d.mts +49 -0
- package/src/foundry/client/documents/collections/items.d.mts +27 -0
- package/src/foundry/client/documents/collections/journal.d.mts +78 -0
- package/src/foundry/client/documents/collections/macros.d.mts +34 -0
- package/src/foundry/client/documents/collections/playlists.d.mts +45 -0
- package/src/foundry/client/documents/collections/roll-tables.d.mts +34 -0
- package/src/foundry/client/documents/collections/scenes.d.mts +63 -0
- package/src/foundry/client/documents/collections/users.d.mts +72 -0
- package/src/foundry/client/documents/collections/world-settings.d.mts +44 -0
- package/src/foundry/client/documents/combat.d.mts +1056 -0
- package/src/foundry/client/documents/combatant-group.d.mts +509 -0
- package/src/foundry/client/documents/combatant.d.mts +609 -0
- package/src/foundry/client/documents/drawing.d.mts +580 -0
- package/src/foundry/client/documents/fog-exploration.d.mts +495 -0
- package/src/foundry/client/documents/folder.d.mts +659 -0
- package/src/foundry/client/documents/item.d.mts +736 -0
- package/src/foundry/client/documents/journal-entry-category.d.mts +413 -0
- package/src/foundry/client/documents/journal-entry-page.d.mts +839 -0
- package/src/foundry/client/documents/journal-entry.d.mts +694 -0
- package/src/foundry/client/documents/macro.d.mts +610 -0
- package/src/foundry/client/documents/measured-template.d.mts +509 -0
- package/src/foundry/client/documents/note.d.mts +526 -0
- package/src/foundry/client/documents/playlist-sound.d.mts +558 -0
- package/src/foundry/client/documents/playlist.d.mts +830 -0
- package/src/foundry/client/documents/region-behavior.d.mts +524 -0
- package/src/foundry/client/documents/region.d.mts +898 -0
- package/src/foundry/client/documents/roll-table.d.mts +916 -0
- package/src/foundry/client/documents/scene.d.mts +1441 -0
- package/src/foundry/client/documents/setting.d.mts +449 -0
- package/src/foundry/client/documents/table-result.d.mts +526 -0
- package/src/foundry/client/documents/tile.d.mts +524 -0
- package/src/foundry/client/documents/token.d.mts +2168 -0
- package/src/foundry/client/documents/user.d.mts +785 -0
- package/src/foundry/client/documents/wall.d.mts +599 -0
- package/src/foundry/client/game.d.mts +210 -149
- package/src/foundry/client/head.d.mts +13 -11
- package/src/foundry/client/helpers/_module.d.mts +16 -0
- package/src/foundry/client/helpers/_types.d.mts +17 -0
- package/src/foundry/client/helpers/client-issues.d.mts +125 -0
- package/src/foundry/client/helpers/client-settings.d.mts +480 -0
- package/src/foundry/client/helpers/document-index.d.mts +173 -0
- package/src/foundry/client/helpers/hooks.d.mts +171 -0
- package/src/foundry/client/helpers/interaction/_module.d.mts +11 -0
- package/src/foundry/client/helpers/interaction/client-keybindings.d.mts +433 -0
- package/src/foundry/client/helpers/interaction/clipboard-helper.d.mts +20 -0
- package/src/foundry/client/helpers/interaction/gamepad-manager.d.mts +61 -0
- package/src/foundry/client/helpers/interaction/keyboard-manager.d.mts +331 -0
- package/src/foundry/client/helpers/interaction/mouse-manager.d.mts +42 -0
- package/src/foundry/client/helpers/interaction/tooltip-manager.d.mts +268 -0
- package/src/foundry/client/helpers/localization.d.mts +240 -0
- package/src/foundry/client/helpers/media/_module.d.mts +8 -0
- package/src/foundry/client/helpers/media/compendium-art.d.mts +107 -0
- package/src/foundry/client/helpers/media/image-helper.d.mts +235 -0
- package/src/foundry/client/helpers/media/video-helper.d.mts +161 -0
- package/src/foundry/client/helpers/socket-interface.d.mts +74 -0
- package/src/foundry/client/helpers/time.d.mts +87 -0
- package/src/foundry/client/helpers/workers.d.mts +145 -0
- package/src/foundry/client/hooks.d.mts +1156 -948
- package/src/foundry/client/index.d.mts +0 -7
- package/src/foundry/client/nue/tour.d.mts +280 -0
- package/src/foundry/client/nue/tours/canvas-tour.d.mts +15 -0
- package/src/foundry/client/nue/tours/setup-tour.d.mts +31 -0
- package/src/foundry/client/nue/tours/sidebar-tour.d.mts +13 -0
- package/src/foundry/client/packages/_module.d.mts +22 -0
- package/src/foundry/client/packages/client-package.d.mts +154 -0
- package/src/foundry/client/packages/module.d.mts +87 -0
- package/src/foundry/client/packages/system.d.mts +151 -0
- package/src/foundry/client/packages/world.d.mts +155 -0
- package/src/foundry/client/utils/_module.d.mts +25 -0
- package/src/foundry/client/utils/_types.d.mts +3 -0
- package/src/foundry/client/utils/helpers.d.mts +213 -0
- package/src/foundry/common/_types.d.mts +17 -6
- package/src/foundry/common/abstract/_types.d.mts +14 -14
- package/src/foundry/common/abstract/backend.d.mts +13 -7
- package/src/foundry/common/abstract/data.d.mts +227 -160
- package/src/foundry/common/abstract/document.d.mts +688 -531
- package/src/foundry/common/abstract/embedded-collection-delta.d.mts +1 -1
- package/src/foundry/common/abstract/embedded-collection.d.mts +9 -4
- package/src/foundry/common/abstract/singleton-collection.d.mts +1 -1
- package/src/foundry/common/abstract/socket.d.mts +1 -1
- package/src/foundry/common/abstract/type-data.d.mts +106 -87
- package/src/foundry/common/config.d.mts +7 -1
- package/src/foundry/common/constants.d.mts +607 -138
- package/src/foundry/common/data/_module.d.mts +1 -0
- package/src/foundry/common/data/_types.d.mts +14 -13
- package/src/foundry/common/data/data.d.mts +73 -34
- package/src/foundry/common/data/fields.d.mts +2004 -1092
- package/src/foundry/common/data/validation-failure.d.mts +31 -21
- package/src/foundry/common/data/validators.d.mts +2 -2
- package/src/foundry/common/documents/_module.d.mts +2 -0
- package/src/foundry/common/documents/_types.d.mts +89 -97
- package/src/foundry/common/documents/active-effect.d.mts +115 -94
- package/src/foundry/common/documents/actor-delta.d.mts +168 -95
- package/src/foundry/common/documents/actor.d.mts +140 -94
- package/src/foundry/common/documents/adventure.d.mts +103 -65
- package/src/foundry/common/documents/ambient-light.d.mts +84 -65
- package/src/foundry/common/documents/ambient-sound.d.mts +84 -65
- package/src/foundry/common/documents/card.d.mts +115 -93
- package/src/foundry/common/documents/cards.d.mts +129 -74
- package/src/foundry/common/documents/chat-message.d.mts +116 -83
- package/src/foundry/common/documents/combat.d.mts +130 -84
- package/src/foundry/common/documents/combatant-group.d.mts +328 -0
- package/src/foundry/common/documents/combatant.d.mts +113 -79
- package/src/foundry/common/documents/drawing.d.mts +107 -77
- package/src/foundry/common/documents/fog-exploration.d.mts +106 -70
- package/src/foundry/common/documents/folder.d.mts +117 -74
- package/src/foundry/common/documents/item.d.mts +129 -83
- package/src/foundry/common/documents/journal-entry-category.d.mts +316 -0
- package/src/foundry/common/documents/journal-entry-page.d.mts +104 -72
- package/src/foundry/common/documents/journal-entry.d.mts +117 -67
- package/src/foundry/common/documents/macro.d.mts +135 -86
- package/src/foundry/common/documents/measured-template.d.mts +95 -75
- package/src/foundry/common/documents/note.d.mts +91 -70
- package/src/foundry/common/documents/playlist-sound.d.mts +104 -75
- package/src/foundry/common/documents/playlist.d.mts +127 -77
- package/src/foundry/common/documents/region-behavior.d.mts +94 -73
- package/src/foundry/common/documents/region.d.mts +87 -69
- package/src/foundry/common/documents/roll-table.d.mts +90 -41
- package/src/foundry/common/documents/scene.d.mts +222 -71
- package/src/foundry/common/documents/setting.d.mts +113 -67
- package/src/foundry/common/documents/table-result.d.mts +127 -79
- package/src/foundry/common/documents/tile.d.mts +97 -68
- package/src/foundry/common/documents/token.d.mts +214 -88
- package/src/foundry/common/documents/user.d.mts +116 -114
- package/src/foundry/common/documents/wall.d.mts +64 -44
- package/src/foundry/common/grid/_types.d.mts +20 -17
- package/src/foundry/common/grid/base.d.mts +110 -21
- package/src/foundry/common/grid/grid-hex.d.mts +1 -0
- package/src/foundry/common/grid/gridless.d.mts +4 -3
- package/src/foundry/common/grid/hexagonal.d.mts +32 -6
- package/src/foundry/common/grid/square.d.mts +5 -4
- package/src/foundry/common/packages/base-module.d.mts +0 -1
- package/src/foundry/common/packages/base-package.d.mts +42 -17
- package/src/foundry/common/packages/base-system.d.mts +39 -1
- package/src/foundry/common/packages/base-world.d.mts +13 -4
- package/src/foundry/common/packages/sub-types.d.mts +7 -9
- package/src/foundry/common/primitives/array.d.mts +1 -1
- package/src/foundry/common/primitives/math.d.mts +3 -1
- package/src/foundry/common/primitives/number.d.mts +1 -1
- package/src/foundry/common/primitives/string.d.mts +1 -1
- package/src/foundry/common/prosemirror/_module.d.mts +44 -28
- package/src/foundry/common/prosemirror/_types.d.mts +16 -11
- package/src/foundry/common/prosemirror/click-handler.d.mts +8 -5
- package/src/foundry/common/prosemirror/content-link-plugin.d.mts +28 -8
- package/src/foundry/common/prosemirror/dirty-plugin.d.mts +2 -2
- package/src/foundry/common/prosemirror/dom-parser.d.mts +4 -4
- package/src/foundry/common/prosemirror/dropdown.d.mts +51 -19
- package/src/foundry/common/prosemirror/extensions.d.mts +5 -2
- package/src/foundry/common/prosemirror/highlight-matches-plugin.d.mts +43 -56
- package/src/foundry/common/prosemirror/image-plugin.d.mts +23 -18
- package/src/foundry/common/prosemirror/input-rules.d.mts +20 -15
- package/src/foundry/common/prosemirror/keymaps.d.mts +24 -21
- package/src/foundry/common/prosemirror/menu.d.mts +124 -85
- package/src/foundry/common/prosemirror/paste-transformer.d.mts +7 -13
- package/src/foundry/common/prosemirror/plugin.d.mts +11 -7
- package/src/foundry/common/prosemirror/schema/_types.d.mts +16 -0
- package/src/foundry/common/prosemirror/schema/attribute-capture.d.mts +20 -19
- package/src/foundry/common/prosemirror/schema/core.d.mts +7 -45
- package/src/foundry/common/prosemirror/schema/image-link-node.d.mts +15 -9
- package/src/foundry/common/prosemirror/schema/image-node.d.mts +11 -7
- package/src/foundry/common/prosemirror/schema/link-mark.d.mts +16 -11
- package/src/foundry/common/prosemirror/schema/lists.d.mts +5 -27
- package/src/foundry/common/prosemirror/schema/marks.d.mts +19 -44
- package/src/foundry/common/prosemirror/schema/other.d.mts +43 -149
- package/src/foundry/common/prosemirror/schema/schema-definition.d.mts +30 -9
- package/src/foundry/common/prosemirror/schema/secret-node.d.mts +8 -8
- package/src/foundry/common/prosemirror/schema/tables.d.mts +18 -90
- package/src/foundry/common/prosemirror/schema/utils.d.mts +3 -1
- package/src/foundry/common/prosemirror/schema.d.mts +51 -16
- package/src/foundry/common/prosemirror/string-serializer.d.mts +59 -40
- package/src/foundry/common/prosemirror/util.d.mts +38 -18
- package/src/foundry/common/utils/_module.d.mts +5 -2
- package/src/foundry/common/utils/_types.d.mts +27 -0
- package/src/foundry/common/utils/bitmask.d.mts +8 -7
- package/src/foundry/common/utils/collection.d.mts +7 -7
- package/src/foundry/common/utils/color.d.mts +11 -2
- package/src/foundry/common/utils/event-emitter.d.mts +12 -17
- package/src/foundry/common/utils/geometry.d.mts +13 -10
- package/src/foundry/common/utils/helpers.d.mts +320 -264
- package/src/foundry/common/utils/http.d.mts +36 -28
- package/src/foundry/common/utils/iterable-weak-map.d.mts +43 -30
- package/src/foundry/common/utils/iterable-weak-set.d.mts +21 -8
- package/src/foundry/common/utils/logging.d.mts +16 -9
- package/src/foundry/common/utils/semaphore.d.mts +19 -29
- package/src/foundry/common/utils/string-tree.d.mts +35 -32
- package/src/foundry/common/utils/word-tree.d.mts +53 -16
- package/src/foundry/index.d.mts +0 -2
- package/src/foundry/public/scripts/clipper/clipper.d.mts +3 -2
- package/src/foundry/public/scripts/index.d.mts +1 -0
- package/src/foundry/public/scripts/ktx2/basis_transcoder.d.mts +5 -0
- package/src/foundry/public/scripts/ktx2/index.d.mts +2 -0
- package/src/foundry/public/scripts/ktx2/pixi-ktx2.min.d.mts +5 -0
- package/src/foundry/public/scripts/workers/image-compressor.d.mts +12 -4
- package/src/types/augments/particles.d.mts +1 -1
- package/src/types/augments/pixi.d.mts +20 -11
- package/src/types/augments/smooth.d.mts +1 -1
- package/src/types/augments/socket.io-client.d.mts +0 -1
- package/src/types/augments/tinyMCE.d.mts +1 -1
- package/src/types/config.d.mts +3 -6
- package/src/types/documentConfiguration.d.mts +22 -21
- package/src/types/lib.d.mts +1 -1
- package/src/types/workers/image-compressor.d.mts +102 -67
- package/src/utils/index.d.mts +240 -117
- package/tsconfig.base.json +24 -0
- package/tsconfig.json +7 -24
- package/src/foundry/client/apps/app.d.mts +0 -609
- package/src/foundry/client/apps/av/av-config.d.mts +0 -98
- package/src/foundry/client/apps/av/camera-popout.d.mts +0 -49
- package/src/foundry/client/apps/av/cameras.d.mts +0 -194
- package/src/foundry/client/apps/av/index.d.mts +0 -3
- package/src/foundry/client/apps/dialogs/folder-export.d.mts +0 -16
- package/src/foundry/client/apps/dialogs/index.d.mts +0 -1
- package/src/foundry/client/apps/dice/dice-config.d.mts +0 -59
- package/src/foundry/client/apps/dice/index.d.mts +0 -1
- package/src/foundry/client/apps/form.d.mts +0 -511
- package/src/foundry/client/apps/forms/actor.d.mts +0 -186
- package/src/foundry/client/apps/forms/adventure-exporter.d.mts +0 -137
- package/src/foundry/client/apps/forms/adventure-importer.d.mts +0 -93
- package/src/foundry/client/apps/forms/base-sheet.d.mts +0 -53
- package/src/foundry/client/apps/forms/card-config.d.mts +0 -56
- package/src/foundry/client/apps/forms/cards-config.d.mts +0 -141
- package/src/foundry/client/apps/forms/combat-config.d.mts +0 -51
- package/src/foundry/client/apps/forms/combatant-config.d.mts +0 -45
- package/src/foundry/client/apps/forms/default-sheets-config.d.mts +0 -46
- package/src/foundry/client/apps/forms/effect-config.d.mts +0 -77
- package/src/foundry/client/apps/forms/folder-config.d.mts +0 -60
- package/src/foundry/client/apps/forms/fonts.d.mts +0 -175
- package/src/foundry/client/apps/forms/grid-config.d.mts +0 -139
- package/src/foundry/client/apps/forms/image-popout.d.mts +0 -185
- package/src/foundry/client/apps/forms/index.d.mts +0 -26
- package/src/foundry/client/apps/forms/item.d.mts +0 -58
- package/src/foundry/client/apps/forms/journal-page-sheet.d.mts +0 -315
- package/src/foundry/client/apps/forms/journal-sheet.d.mts +0 -322
- package/src/foundry/client/apps/forms/macro-config.d.mts +0 -59
- package/src/foundry/client/apps/forms/measure-template.d.mts +0 -57
- package/src/foundry/client/apps/forms/ownership.d.mts +0 -66
- package/src/foundry/client/apps/forms/playlist-config.d.mts +0 -44
- package/src/foundry/client/apps/forms/playlist-sound-config.d.mts +0 -63
- package/src/foundry/client/apps/forms/roll-table-config.d.mts +0 -161
- package/src/foundry/client/apps/forms/scene-config.d.mts +0 -156
- package/src/foundry/client/apps/forms/sheet-config.d.mts +0 -191
- package/src/foundry/client/apps/forms/user-config.d.mts +0 -72
- package/src/foundry/client/apps/hud/chatbubble.d.mts +0 -125
- package/src/foundry/client/apps/hud/container.d.mts +0 -54
- package/src/foundry/client/apps/hud/controls.d.mts +0 -211
- package/src/foundry/client/apps/hud/hotbar.d.mts +0 -174
- package/src/foundry/client/apps/hud/hud.d.mts +0 -87
- package/src/foundry/client/apps/hud/index.d.mts +0 -9
- package/src/foundry/client/apps/hud/menu.d.mts +0 -84
- package/src/foundry/client/apps/hud/navigation.d.mts +0 -121
- package/src/foundry/client/apps/hud/pause.d.mts +0 -37
- package/src/foundry/client/apps/hud/players.d.mts +0 -87
- package/src/foundry/client/apps/i18n.d.mts +0 -225
- package/src/foundry/client/apps/index.d.mts +0 -11
- package/src/foundry/client/apps/placeables/drawing-config.d.mts +0 -88
- package/src/foundry/client/apps/placeables/drawing-hud.d.mts +0 -31
- package/src/foundry/client/apps/placeables/index.d.mts +0 -8
- package/src/foundry/client/apps/placeables/note-config.d.mts +0 -75
- package/src/foundry/client/apps/placeables/tile-config.d.mts +0 -67
- package/src/foundry/client/apps/placeables/tile-hud.d.mts +0 -42
- package/src/foundry/client/apps/placeables/token-config.d.mts +0 -277
- package/src/foundry/client/apps/placeables/token-hud.d.mts +0 -139
- package/src/foundry/client/apps/placeables/wall-config.d.mts +0 -67
- package/src/foundry/client/apps/sidebar/apps/chat-popout.d.mts +0 -39
- package/src/foundry/client/apps/sidebar/apps/client-settings.d.mts +0 -98
- package/src/foundry/client/apps/sidebar/apps/compendium.d.mts +0 -95
- package/src/foundry/client/apps/sidebar/apps/index.d.mts +0 -10
- package/src/foundry/client/apps/sidebar/apps/invitation-links.d.mts +0 -32
- package/src/foundry/client/apps/sidebar/apps/keybindings-config.d.mts +0 -181
- package/src/foundry/client/apps/sidebar/apps/module-management.d.mts +0 -135
- package/src/foundry/client/apps/sidebar/apps/permission-config.d.mts +0 -72
- package/src/foundry/client/apps/sidebar/apps/support-details.d.mts +0 -126
- package/src/foundry/client/apps/sidebar/apps/tours-management.d.mts +0 -54
- package/src/foundry/client/apps/sidebar/apps/world-config.d.mts +0 -60
- package/src/foundry/client/apps/sidebar/directory-tab-mixin.d.mts +0 -291
- package/src/foundry/client/apps/sidebar/document-directory.d.mts +0 -177
- package/src/foundry/client/apps/sidebar/index.d.mts +0 -7
- package/src/foundry/client/apps/sidebar/package-configuration.d.mts +0 -86
- package/src/foundry/client/apps/sidebar/sidebar-tab.d.mts +0 -80
- package/src/foundry/client/apps/sidebar/sidebar.d.mts +0 -100
- package/src/foundry/client/apps/sidebar/tabs/actors-directory.d.mts +0 -29
- package/src/foundry/client/apps/sidebar/tabs/cards-directory.d.mts +0 -21
- package/src/foundry/client/apps/sidebar/tabs/chat-log.d.mts +0 -376
- package/src/foundry/client/apps/sidebar/tabs/combat-tracker.d.mts +0 -165
- package/src/foundry/client/apps/sidebar/tabs/compendium-directory.d.mts +0 -120
- package/src/foundry/client/apps/sidebar/tabs/index.d.mts +0 -12
- package/src/foundry/client/apps/sidebar/tabs/items-directory.d.mts +0 -23
- package/src/foundry/client/apps/sidebar/tabs/journal-directory.d.mts +0 -22
- package/src/foundry/client/apps/sidebar/tabs/macros-directory.d.mts +0 -25
- package/src/foundry/client/apps/sidebar/tabs/playlists-directory.d.mts +0 -283
- package/src/foundry/client/apps/sidebar/tabs/roll-table-directory.d.mts +0 -22
- package/src/foundry/client/apps/sidebar/tabs/scenes-directory.d.mts +0 -43
- package/src/foundry/client/apps/sidebar/tabs/settings.d.mts +0 -90
- package/src/foundry/client/apps/templates.d.mts +0 -486
- package/src/foundry/client/av/clients/index.d.mts +0 -1
- package/src/foundry/client/av/index.d.mts +0 -4
- package/src/foundry/client/core/clipboard.d.mts +0 -20
- package/src/foundry/client/core/document-index.d.mts +0 -126
- package/src/foundry/client/core/gamepad.d.mts +0 -76
- package/src/foundry/client/core/hooks.d.mts +0 -130
- package/src/foundry/client/core/image.d.mts +0 -240
- package/src/foundry/client/core/index.d.mts +0 -21
- package/src/foundry/client/core/issues.d.mts +0 -107
- package/src/foundry/client/core/keybindings.d.mts +0 -413
- package/src/foundry/client/core/keyboard.d.mts +0 -271
- package/src/foundry/client/core/mouse.d.mts +0 -28
- package/src/foundry/client/core/nue.d.mts +0 -38
- package/src/foundry/client/core/packages.d.mts +0 -538
- package/src/foundry/client/core/settings.d.mts +0 -386
- package/src/foundry/client/core/socket.d.mts +0 -62
- package/src/foundry/client/core/sorting.d.mts +0 -76
- package/src/foundry/client/core/time.d.mts +0 -76
- package/src/foundry/client/core/tooltip.d.mts +0 -198
- package/src/foundry/client/core/tour.d.mts +0 -288
- package/src/foundry/client/core/tours.d.mts +0 -22
- package/src/foundry/client/core/utils.d.mts +0 -94
- package/src/foundry/client/core/video.d.mts +0 -161
- package/src/foundry/client/core/workers.d.mts +0 -135
- package/src/foundry/client/data/abstract/canvas-document.d.mts +0 -74
- package/src/foundry/client/data/abstract/client-document.d.mts +0 -687
- package/src/foundry/client/data/abstract/directory-collection-mixin.d.mts +0 -119
- package/src/foundry/client/data/abstract/document-collection.d.mts +0 -242
- package/src/foundry/client/data/abstract/index.d.mts +0 -5
- package/src/foundry/client/data/abstract/world-collection.d.mts +0 -157
- package/src/foundry/client/data/collections/actors.d.mts +0 -51
- package/src/foundry/client/data/collections/cards.d.mts +0 -25
- package/src/foundry/client/data/collections/combats.d.mts +0 -56
- package/src/foundry/client/data/collections/compendium-collection.d.mts +0 -474
- package/src/foundry/client/data/collections/compendium-folders.d.mts +0 -27
- package/src/foundry/client/data/collections/compendium-packs.d.mts +0 -27
- package/src/foundry/client/data/collections/fog.d.mts +0 -30
- package/src/foundry/client/data/collections/folder.d.mts +0 -47
- package/src/foundry/client/data/collections/index.d.mts +0 -17
- package/src/foundry/client/data/collections/items.d.mts +0 -27
- package/src/foundry/client/data/collections/journal.d.mts +0 -79
- package/src/foundry/client/data/collections/macros.d.mts +0 -34
- package/src/foundry/client/data/collections/messages.d.mts +0 -48
- package/src/foundry/client/data/collections/playlists.d.mts +0 -44
- package/src/foundry/client/data/collections/scenes.d.mts +0 -65
- package/src/foundry/client/data/collections/settings.d.mts +0 -42
- package/src/foundry/client/data/collections/tables.d.mts +0 -34
- package/src/foundry/client/data/collections/users.d.mts +0 -62
- package/src/foundry/client/data/documents/active-effect.d.mts +0 -953
- package/src/foundry/client/data/documents/actor-delta.d.mts +0 -743
- package/src/foundry/client/data/documents/actor.d.mts +0 -980
- package/src/foundry/client/data/documents/adventure.d.mts +0 -539
- package/src/foundry/client/data/documents/ambient-light.d.mts +0 -449
- package/src/foundry/client/data/documents/ambient-sound.d.mts +0 -490
- package/src/foundry/client/data/documents/card.d.mts +0 -659
- package/src/foundry/client/data/documents/cards.d.mts +0 -1013
- package/src/foundry/client/data/documents/chat-message.d.mts +0 -764
- package/src/foundry/client/data/documents/combat.d.mts +0 -959
- package/src/foundry/client/data/documents/combatant.d.mts +0 -597
- package/src/foundry/client/data/documents/drawing.d.mts +0 -563
- package/src/foundry/client/data/documents/fog-exploration.d.mts +0 -458
- package/src/foundry/client/data/documents/folder.d.mts +0 -574
- package/src/foundry/client/data/documents/index.d.mts +0 -32
- package/src/foundry/client/data/documents/item.d.mts +0 -725
- package/src/foundry/client/data/documents/journal-entry-page.d.mts +0 -798
- package/src/foundry/client/data/documents/journal-entry.d.mts +0 -683
- package/src/foundry/client/data/documents/macro.d.mts +0 -591
- package/src/foundry/client/data/documents/measured-template.d.mts +0 -505
- package/src/foundry/client/data/documents/note.d.mts +0 -524
- package/src/foundry/client/data/documents/playlist-sound.d.mts +0 -530
- package/src/foundry/client/data/documents/playlist.d.mts +0 -798
- package/src/foundry/client/data/documents/region-behavior.d.mts +0 -508
- package/src/foundry/client/data/documents/region.d.mts +0 -786
- package/src/foundry/client/data/documents/scene.d.mts +0 -1101
- package/src/foundry/client/data/documents/setting.d.mts +0 -437
- package/src/foundry/client/data/documents/table-result.d.mts +0 -504
- package/src/foundry/client/data/documents/table.d.mts +0 -905
- package/src/foundry/client/data/documents/tile.d.mts +0 -519
- package/src/foundry/client/data/documents/token.d.mts +0 -1371
- package/src/foundry/client/data/documents/user.d.mts +0 -633
- package/src/foundry/client/data/documents/wall.d.mts +0 -566
- package/src/foundry/client/data/index.d.mts +0 -3
- package/src/foundry/client/pixi/board.d.mts +0 -827
- package/src/foundry/client/pixi/core/containers/base-canvas-group.d.mts +0 -155
- package/src/foundry/client/pixi/core/containers/cached-container.d.mts +0 -136
- package/src/foundry/client/pixi/core/containers/full-canvas-container.d.mts +0 -34
- package/src/foundry/client/pixi/core/containers/index.d.mts +0 -8
- package/src/foundry/client/pixi/core/containers/point-source-mesh.d.mts +0 -72
- package/src/foundry/client/pixi/core/containers/quad-mesh.d.mts +0 -53
- package/src/foundry/client/pixi/core/containers/quadtree.d.mts +0 -258
- package/src/foundry/client/pixi/core/containers/sprite-mesh.d.mts +0 -369
- package/src/foundry/client/pixi/core/containers/unbound-container.d.mts +0 -39
- package/src/foundry/client/pixi/core/index.d.mts +0 -4
- package/src/foundry/client/pixi/core/interaction/canvas-animation.d.mts +0 -242
- package/src/foundry/client/pixi/core/interaction/control-icon.d.mts +0 -128
- package/src/foundry/client/pixi/core/interaction/index.d.mts +0 -8
- package/src/foundry/client/pixi/core/interaction/mouse-handler.d.mts +0 -358
- package/src/foundry/client/pixi/core/interaction/ping.d.mts +0 -89
- package/src/foundry/client/pixi/core/interaction/pings/chevron.d.mts +0 -86
- package/src/foundry/client/pixi/core/interaction/pings/index.d.mts +0 -2
- package/src/foundry/client/pixi/core/interaction/pings/pulse.d.mts +0 -172
- package/src/foundry/client/pixi/core/interaction/render-flags.d.mts +0 -180
- package/src/foundry/client/pixi/core/interaction/resize-handle.d.mts +0 -82
- package/src/foundry/client/pixi/core/interaction/targets.d.mts +0 -48
- package/src/foundry/client/pixi/core/loader.d.mts +0 -256
- package/src/foundry/client/pixi/core/shapes/index.d.mts +0 -5
- package/src/foundry/client/pixi/core/shapes/limited-angle-polygon.d.mts +0 -144
- package/src/foundry/client/pixi/core/shapes/polygon-mesher.d.mts +0 -138
- package/src/foundry/client/pixi/core/shapes/precise-text.d.mts +0 -45
- package/src/foundry/client/pixi/core/shapes/ray.d.mts +0 -189
- package/src/foundry/client/pixi/core/shapes/source-polygon.d.mts +0 -344
- package/src/foundry/client/pixi/extensions/circle.d.mts +0 -143
- package/src/foundry/client/pixi/extensions/graphics.d.mts +0 -45
- package/src/foundry/client/pixi/extensions/index.d.mts +0 -5
- package/src/foundry/client/pixi/extensions/observable-transform.d.mts +0 -38
- package/src/foundry/client/pixi/extensions/polygon.d.mts +0 -163
- package/src/foundry/client/pixi/extensions/rectangle.d.mts +0 -274
- package/src/foundry/client/pixi/groups/effects.d.mts +0 -237
- package/src/foundry/client/pixi/groups/environment.d.mts +0 -129
- package/src/foundry/client/pixi/groups/hidden.d.mts +0 -56
- package/src/foundry/client/pixi/groups/index.d.mts +0 -7
- package/src/foundry/client/pixi/groups/interface.d.mts +0 -98
- package/src/foundry/client/pixi/groups/overlay.d.mts +0 -30
- package/src/foundry/client/pixi/groups/primary.d.mts +0 -222
- package/src/foundry/client/pixi/groups/rendered.d.mts +0 -30
- package/src/foundry/client/pixi/index.d.mts +0 -10
- package/src/foundry/client/pixi/layers/base/canvas-layer.d.mts +0 -91
- package/src/foundry/client/pixi/layers/base/index.d.mts +0 -3
- package/src/foundry/client/pixi/layers/base/interaction-layer.d.mts +0 -163
- package/src/foundry/client/pixi/layers/base/placeables-layer.d.mts +0 -677
- package/src/foundry/client/pixi/layers/controls/cursor.d.mts +0 -42
- package/src/foundry/client/pixi/layers/controls/door.d.mts +0 -89
- package/src/foundry/client/pixi/layers/controls/index.d.mts +0 -4
- package/src/foundry/client/pixi/layers/controls/layer.d.mts +0 -274
- package/src/foundry/client/pixi/layers/controls/ruler.d.mts +0 -500
- package/src/foundry/client/pixi/layers/effects/background-effects.d.mts +0 -47
- package/src/foundry/client/pixi/layers/effects/coloration-effects.d.mts +0 -41
- package/src/foundry/client/pixi/layers/effects/darkness-effects.d.mts +0 -33
- package/src/foundry/client/pixi/layers/effects/illumination-effects.d.mts +0 -151
- package/src/foundry/client/pixi/layers/effects/index.d.mts +0 -7
- package/src/foundry/client/pixi/layers/effects/visibility.d.mts +0 -245
- package/src/foundry/client/pixi/layers/effects/weather/particles/effect.d.mts +0 -56
- package/src/foundry/client/pixi/layers/effects/weather/particles/index.d.mts +0 -2
- package/src/foundry/client/pixi/layers/effects/weather/particles/leaves.d.mts +0 -49
- package/src/foundry/client/pixi/layers/effects/weather-effects.d.mts +0 -299
- package/src/foundry/client/pixi/layers/grid/highlight.d.mts +0 -43
- package/src/foundry/client/pixi/layers/grid/index.d.mts +0 -3
- package/src/foundry/client/pixi/layers/grid/layer.d.mts +0 -269
- package/src/foundry/client/pixi/layers/grid/mesh.d.mts +0 -94
- package/src/foundry/client/pixi/layers/index.d.mts +0 -6
- package/src/foundry/client/pixi/layers/masks/depth.d.mts +0 -67
- package/src/foundry/client/pixi/layers/masks/index.d.mts +0 -3
- package/src/foundry/client/pixi/layers/masks/occlusion.d.mts +0 -98
- package/src/foundry/client/pixi/layers/masks/vision.d.mts +0 -202
- package/src/foundry/client/pixi/layers/placeables/drawings.d.mts +0 -112
- package/src/foundry/client/pixi/layers/placeables/index.d.mts +0 -9
- package/src/foundry/client/pixi/layers/placeables/lighting.d.mts +0 -81
- package/src/foundry/client/pixi/layers/placeables/notes.d.mts +0 -127
- package/src/foundry/client/pixi/layers/placeables/regions.d.mts +0 -113
- package/src/foundry/client/pixi/layers/placeables/sounds.d.mts +0 -334
- package/src/foundry/client/pixi/layers/placeables/templates.d.mts +0 -68
- package/src/foundry/client/pixi/layers/placeables/tiles.d.mts +0 -125
- package/src/foundry/client/pixi/layers/placeables/tokens.d.mts +0 -210
- package/src/foundry/client/pixi/layers/placeables/walls.d.mts +0 -206
- package/src/foundry/client/pixi/perception/clockwise-sweep.d.mts +0 -192
- package/src/foundry/client/pixi/perception/detection-mode.d.mts +0 -286
- package/src/foundry/client/pixi/perception/fog.d.mts +0 -154
- package/src/foundry/client/pixi/perception/index.d.mts +0 -6
- package/src/foundry/client/pixi/perception/perception-manager.d.mts +0 -167
- package/src/foundry/client/pixi/perception/vision-mode.d.mts +0 -245
- package/src/foundry/client/pixi/perception/weiler-atherton-clipping.d.mts +0 -190
- package/src/foundry/client/pixi/placeable.d.mts +0 -734
- package/src/foundry/client/pixi/placeables/drawing.d.mts +0 -419
- package/src/foundry/client/pixi/placeables/index.d.mts +0 -10
- package/src/foundry/client/pixi/placeables/light.d.mts +0 -280
- package/src/foundry/client/pixi/placeables/note.d.mts +0 -210
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/index.d.mts +0 -4
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-canvas-object.d.mts +0 -199
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-graphics.d.mts +0 -60
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-occludable-object.d.mts +0 -202
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-sprite-mesh.d.mts +0 -194
- package/src/foundry/client/pixi/placeables/region.d.mts +0 -286
- package/src/foundry/client/pixi/placeables/sound.d.mts +0 -278
- package/src/foundry/client/pixi/placeables/template.d.mts +0 -298
- package/src/foundry/client/pixi/placeables/tile.d.mts +0 -355
- package/src/foundry/client/pixi/placeables/token.d.mts +0 -1293
- package/src/foundry/client/pixi/placeables/wall.d.mts +0 -400
- package/src/foundry/client/pixi/webgl/extensions/batch-renderer.d.mts +0 -134
- package/src/foundry/client/pixi/webgl/extensions/batch-shader-generator.d.mts +0 -31
- package/src/foundry/client/pixi/webgl/extensions/blend-modes.d.mts +0 -53
- package/src/foundry/client/pixi/webgl/extensions/index.d.mts +0 -3
- package/src/foundry/client/pixi/webgl/helpers/framebuffer-snapshot.d.mts +0 -31
- package/src/foundry/client/pixi/webgl/helpers/index.d.mts +0 -3
- package/src/foundry/client/pixi/webgl/helpers/smooth-noise.d.mts +0 -80
- package/src/foundry/client/pixi/webgl/helpers/texture-extractor.d.mts +0 -119
- package/src/foundry/client/pixi/webgl/index.d.mts +0 -3
- package/src/foundry/client/pixi/webgl/shaders/base-shader-mixin.d.mts +0 -119
- package/src/foundry/client/pixi/webgl/shaders/base-shader.d.mts +0 -111
- package/src/foundry/client/pixi/webgl/shaders/filters/base-filter.d.mts +0 -48
- package/src/foundry/client/pixi/webgl/shaders/filters/base-mask-filter.d.mts +0 -31
- package/src/foundry/client/pixi/webgl/shaders/filters/blur.d.mts +0 -187
- package/src/foundry/client/pixi/webgl/shaders/filters/effects-masking.d.mts +0 -125
- package/src/foundry/client/pixi/webgl/shaders/filters/environment.d.mts +0 -41
- package/src/foundry/client/pixi/webgl/shaders/filters/glow-overlay.d.mts +0 -76
- package/src/foundry/client/pixi/webgl/shaders/filters/index.d.mts +0 -13
- package/src/foundry/client/pixi/webgl/shaders/filters/invisibility.d.mts +0 -30
- package/src/foundry/client/pixi/webgl/shaders/filters/outline-overlay.d.mts +0 -87
- package/src/foundry/client/pixi/webgl/shaders/filters/transition.d.mts +0 -126
- package/src/foundry/client/pixi/webgl/shaders/filters/visibility.d.mts +0 -77
- package/src/foundry/client/pixi/webgl/shaders/filters/vision-mask-filter.d.mts +0 -36
- package/src/foundry/client/pixi/webgl/shaders/filters/void.d.mts +0 -19
- package/src/foundry/client/pixi/webgl/shaders/filters/weather-occlusion-masks.d.mts +0 -57
- package/src/foundry/client/pixi/webgl/shaders/fragment-channel-mixin.d.mts +0 -60
- package/src/foundry/client/pixi/webgl/shaders/grid/grid.d.mts +0 -113
- package/src/foundry/client/pixi/webgl/shaders/grid/index.d.mts +0 -1
- package/src/foundry/client/pixi/webgl/shaders/index.d.mts +0 -10
- package/src/foundry/client/pixi/webgl/shaders/lighting/background-lighting.d.mts +0 -66
- package/src/foundry/client/pixi/webgl/shaders/lighting/base-lighting.d.mts +0 -178
- package/src/foundry/client/pixi/webgl/shaders/lighting/coloration-lighting.d.mts +0 -74
- package/src/foundry/client/pixi/webgl/shaders/lighting/darkness-lighting.d.mts +0 -74
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/bewitching-wave.d.mts +0 -35
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/black-hole.d.mts +0 -19
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/chroma.d.mts +0 -24
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/emanation.d.mts +0 -24
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/energy-field.d.mts +0 -24
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/fairy-light.d.mts +0 -40
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/flame.d.mts +0 -57
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/fog.d.mts +0 -24
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/force-grid.d.mts +0 -24
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/ghost-light.d.mts +0 -35
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/hexa-dome.d.mts +0 -24
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/index.d.mts +0 -25
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/light-dome.d.mts +0 -24
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/magical-gloom.d.mts +0 -19
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/pulse.d.mts +0 -46
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/radial-rainbow.d.mts +0 -24
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/revolving-light.d.mts +0 -37
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/roiling-mass.d.mts +0 -19
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/siren-light.d.mts +0 -63
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/smoke-patch.d.mts +0 -35
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/star-light.d.mts +0 -24
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/sunburst.d.mts +0 -35
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/swirling-rainbow.d.mts +0 -24
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/torch.d.mts +0 -47
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/vortex.d.mts +0 -40
- package/src/foundry/client/pixi/webgl/shaders/lighting/effects/wave.d.mts +0 -35
- package/src/foundry/client/pixi/webgl/shaders/lighting/illumination-lighting.d.mts +0 -80
- package/src/foundry/client/pixi/webgl/shaders/lighting/index.d.mts +0 -6
- package/src/foundry/client/pixi/webgl/shaders/region/adjust-darkness-level.d.mts +0 -135
- package/src/foundry/client/pixi/webgl/shaders/region/base.d.mts +0 -79
- package/src/foundry/client/pixi/webgl/shaders/region/highlight.d.mts +0 -95
- package/src/foundry/client/pixi/webgl/shaders/region/index.d.mts +0 -3
- package/src/foundry/client/pixi/webgl/shaders/samplers/base-sampler.d.mts +0 -205
- package/src/foundry/client/pixi/webgl/shaders/samplers/baseline-illumination.d.mts +0 -39
- package/src/foundry/client/pixi/webgl/shaders/samplers/color-adjustment.d.mts +0 -118
- package/src/foundry/client/pixi/webgl/shaders/samplers/depth.d.mts +0 -107
- package/src/foundry/client/pixi/webgl/shaders/samplers/fog-of-war.d.mts +0 -25
- package/src/foundry/client/pixi/webgl/shaders/samplers/index.d.mts +0 -8
- package/src/foundry/client/pixi/webgl/shaders/samplers/occlusion.d.mts +0 -106
- package/src/foundry/client/pixi/webgl/shaders/samplers/primary.d.mts +0 -35
- package/src/foundry/client/pixi/webgl/shaders/samplers/token-ring.d.mts +0 -73
- package/src/foundry/client/pixi/webgl/shaders/vision/background-vision.d.mts +0 -43
- package/src/foundry/client/pixi/webgl/shaders/vision/base-vision.d.mts +0 -33
- package/src/foundry/client/pixi/webgl/shaders/vision/coloration-vision.d.mts +0 -42
- package/src/foundry/client/pixi/webgl/shaders/vision/effects/amplification.d.mts +0 -33
- package/src/foundry/client/pixi/webgl/shaders/vision/effects/index.d.mts +0 -2
- package/src/foundry/client/pixi/webgl/shaders/vision/effects/wave.d.mts +0 -61
- package/src/foundry/client/pixi/webgl/shaders/vision/illumination-vision.d.mts +0 -37
- package/src/foundry/client/pixi/webgl/shaders/vision/index.d.mts +0 -5
- package/src/foundry/client/pixi/webgl/shaders/weather/base-weather.d.mts +0 -110
- package/src/foundry/client/pixi/webgl/shaders/weather/effect.d.mts +0 -56
- package/src/foundry/client/pixi/webgl/shaders/weather/fog.d.mts +0 -51
- package/src/foundry/client/pixi/webgl/shaders/weather/index.d.mts +0 -5
- package/src/foundry/client/pixi/webgl/shaders/weather/rain.d.mts +0 -43
- package/src/foundry/client/pixi/webgl/shaders/weather/snow.d.mts +0 -35
- package/src/foundry/client/pixi/workers/index.d.mts +0 -1
- package/src/foundry/client/pixi/workers/texture-worker.d.mts +0 -105
- package/src/foundry/client/tours/canvas-tour.d.mts +0 -9
- package/src/foundry/client/tours/index.d.mts +0 -3
- package/src/foundry/client/tours/setup-tour.d.mts +0 -31
- package/src/foundry/client/tours/sidebar-tour.d.mts +0 -9
- package/src/foundry/client/ui/dialog.d.mts +0 -337
- package/src/foundry/client/ui/drag.d.mts +0 -128
- package/src/foundry/client/ui/dragdrop.d.mts +0 -130
- package/src/foundry/client/ui/editor.d.mts +0 -554
- package/src/foundry/client/ui/filepicker.d.mts +0 -482
- package/src/foundry/client/ui/filter.d.mts +0 -160
- package/src/foundry/client/ui/forms.d.mts +0 -85
- package/src/foundry/client/ui/index.d.mts +0 -10
- package/src/foundry/client/ui/prosemirror.d.mts +0 -179
- package/src/foundry/client/ui/secrets.d.mts +0 -90
- package/src/foundry/client/ui/tabs.d.mts +0 -124
- package/src/foundry/client-esm/_types.d.mts +0 -9
- package/src/foundry/client-esm/applications/_module.d.mts +0 -30
- package/src/foundry/client-esm/applications/api/application.d.mts +0 -939
- package/src/foundry/client-esm/applications/api/category-browser.d.mts +0 -40
- package/src/foundry/client-esm/applications/api/dialog.d.mts +0 -346
- package/src/foundry/client-esm/applications/api/document-sheet.d.mts +0 -193
- package/src/foundry/client-esm/applications/api/handlebars-application.d.mts +0 -210
- package/src/foundry/client-esm/applications/apps/av/camera-popout.d.mts +0 -23
- package/src/foundry/client-esm/applications/apps/av/cameras.d.mts +0 -95
- package/src/foundry/client-esm/applications/apps/combat-tracker-config.d.mts +0 -21
- package/src/foundry/client-esm/applications/apps/compendium-art-config.d.mts +0 -53
- package/src/foundry/client-esm/applications/apps/document-ownership.d.mts +0 -21
- package/src/foundry/client-esm/applications/apps/document-sheet-config.d.mts +0 -24
- package/src/foundry/client-esm/applications/apps/file-picker.d.mts +0 -410
- package/src/foundry/client-esm/applications/apps/grid-config.d.mts +0 -25
- package/src/foundry/client-esm/applications/apps/image-popout.d.mts +0 -56
- package/src/foundry/client-esm/applications/apps/permission-config.d.mts +0 -60
- package/src/foundry/client-esm/applications/dice/roll-resolver.d.mts +0 -110
- package/src/foundry/client-esm/applications/elements/document-tags.d.mts +0 -92
- package/src/foundry/client-esm/applications/elements/file-picker.d.mts +0 -62
- package/src/foundry/client-esm/applications/elements/form-element.d.mts +0 -106
- package/src/foundry/client-esm/applications/elements/multi-select.d.mts +0 -105
- package/src/foundry/client-esm/applications/elements/prosemirror-editor.d.mts +0 -53
- package/src/foundry/client-esm/applications/forms/fields.d.mts +0 -270
- package/src/foundry/client-esm/applications/handlebars.d.mts +0 -3
- package/src/foundry/client-esm/applications/hud/container.d.mts +0 -15
- package/src/foundry/client-esm/applications/hud/drawing-hud.d.mts +0 -19
- package/src/foundry/client-esm/applications/hud/placeable-hud.d.mts +0 -41
- package/src/foundry/client-esm/applications/hud/tile-hud.d.mts +0 -19
- package/src/foundry/client-esm/applications/hud/token-hud.d.mts +0 -20
- package/src/foundry/client-esm/applications/quickstart.d.mts +0 -20
- package/src/foundry/client-esm/applications/settings/_module.d.mts +0 -7
- package/src/foundry/client-esm/applications/settings/config.d.mts +0 -21
- package/src/foundry/client-esm/applications/settings/dependency-resolution.d.mts +0 -19
- package/src/foundry/client-esm/applications/settings/menus/av-config.d.mts +0 -27
- package/src/foundry/client-esm/applications/settings/menus/default-sheets-config.d.mts +0 -19
- package/src/foundry/client-esm/applications/settings/menus/dice-config.d.mts +0 -18
- package/src/foundry/client-esm/applications/settings/menus/font-config.d.mts +0 -43
- package/src/foundry/client-esm/applications/settings/menus/prototype-overrides.d.mts +0 -21
- package/src/foundry/client-esm/applications/settings/menus/ui-config.d.mts +0 -26
- package/src/foundry/client-esm/applications/sheets/_module.d.mts +0 -37
- package/src/foundry/client-esm/applications/sheets/active-effect-config.d.mts +0 -25
- package/src/foundry/client-esm/applications/sheets/actor-sheet.d.mts +0 -31
- package/src/foundry/client-esm/applications/sheets/adventure-exporter.d.mts +0 -25
- package/src/foundry/client-esm/applications/sheets/adventure-importer.d.mts +0 -25
- package/src/foundry/client-esm/applications/sheets/ambient-light-config.d.mts +0 -80
- package/src/foundry/client-esm/applications/sheets/ambient-sound-config.d.mts +0 -52
- package/src/foundry/client-esm/applications/sheets/base-sheet.d.mts +0 -23
- package/src/foundry/client-esm/applications/sheets/card-config.d.mts +0 -25
- package/src/foundry/client-esm/applications/sheets/cards-config.d.mts +0 -49
- package/src/foundry/client-esm/applications/sheets/combatant-config.d.mts +0 -25
- package/src/foundry/client-esm/applications/sheets/drawing-config.d.mts +0 -25
- package/src/foundry/client-esm/applications/sheets/folder-config.d.mts +0 -25
- package/src/foundry/client-esm/applications/sheets/item-sheet.d.mts +0 -22
- package/src/foundry/client-esm/applications/sheets/journal/dialog-show.d.mts +0 -19
- package/src/foundry/client-esm/applications/sheets/journal/journal-entry-category-config.d.mts +0 -25
- package/src/foundry/client-esm/applications/sheets/journal/journal-entry-page-hbs-sheet.d.mts +0 -19
- package/src/foundry/client-esm/applications/sheets/journal/journal-entry-page-image-sheet.d.mts +0 -18
- package/src/foundry/client-esm/applications/sheets/journal/journal-entry-page-markdown-sheet.d.mts +0 -18
- package/src/foundry/client-esm/applications/sheets/journal/journal-entry-page-pdf-sheet.d.mts +0 -18
- package/src/foundry/client-esm/applications/sheets/journal/journal-entry-page-prose-mirror-sheet.d.mts +0 -18
- package/src/foundry/client-esm/applications/sheets/journal/journal-entry-page-sheet.d.mts +0 -28
- package/src/foundry/client-esm/applications/sheets/journal/journal-entry-page-text-sheet.d.mts +0 -18
- package/src/foundry/client-esm/applications/sheets/journal/journal-entry-page-video-sheet.d.mts +0 -18
- package/src/foundry/client-esm/applications/sheets/journal/journal-entry-sheet.d.mts +0 -35
- package/src/foundry/client-esm/applications/sheets/macro-config.d.mts +0 -25
- package/src/foundry/client-esm/applications/sheets/note-config.d.mts +0 -25
- package/src/foundry/client-esm/applications/sheets/playlist-config.d.mts +0 -25
- package/src/foundry/client-esm/applications/sheets/playlist-sound-config.d.mts +0 -25
- package/src/foundry/client-esm/applications/sheets/region-behavior-config.d.mts +0 -37
- package/src/foundry/client-esm/applications/sheets/region-config.d.mts +0 -43
- package/src/foundry/client-esm/applications/sheets/roll-table-config.d.mts +0 -25
- package/src/foundry/client-esm/applications/sheets/roll-table-sheet.d.mts +0 -25
- package/src/foundry/client-esm/applications/sheets/scene-config.d.mts +0 -25
- package/src/foundry/client-esm/applications/sheets/table-result-config.d.mts +0 -25
- package/src/foundry/client-esm/applications/sheets/template-config.d.mts +0 -25
- package/src/foundry/client-esm/applications/sheets/tile-config.d.mts +0 -25
- package/src/foundry/client-esm/applications/sheets/token/mixin.d.mts +0 -28
- package/src/foundry/client-esm/applications/sheets/token/prototype-config.d.mts +0 -18
- package/src/foundry/client-esm/applications/sheets/token/token-config.d.mts +0 -25
- package/src/foundry/client-esm/applications/sheets/user-config.d.mts +0 -44
- package/src/foundry/client-esm/applications/sheets/wall-config.d.mts +0 -25
- package/src/foundry/client-esm/applications/sidebar/apps/chat-popout.d.mts +0 -22
- package/src/foundry/client-esm/applications/sidebar/apps/compendium.d.mts +0 -21
- package/src/foundry/client-esm/applications/sidebar/apps/controls-config.d.mts +0 -20
- package/src/foundry/client-esm/applications/sidebar/apps/folder-export.d.mts +0 -18
- package/src/foundry/client-esm/applications/sidebar/apps/frame-viewer.d.mts +0 -22
- package/src/foundry/client-esm/applications/sidebar/apps/invitation-links.d.mts +0 -17
- package/src/foundry/client-esm/applications/sidebar/apps/module-management.d.mts +0 -21
- package/src/foundry/client-esm/applications/sidebar/apps/support-details.d.mts +0 -17
- package/src/foundry/client-esm/applications/sidebar/apps/tours-management.d.mts +0 -20
- package/src/foundry/client-esm/applications/sidebar/apps/world-config.d.mts +0 -19
- package/src/foundry/client-esm/applications/sidebar/document-directory.d.mts +0 -30
- package/src/foundry/client-esm/applications/sidebar/sidebar-tab.d.mts +0 -86
- package/src/foundry/client-esm/applications/sidebar/sidebar.d.mts +0 -18
- package/src/foundry/client-esm/applications/sidebar/tabs/actor-directory.d.mts +0 -20
- package/src/foundry/client-esm/applications/sidebar/tabs/cards-directory.d.mts +0 -20
- package/src/foundry/client-esm/applications/sidebar/tabs/chat.d.mts +0 -19
- package/src/foundry/client-esm/applications/sidebar/tabs/combat-tracker.d.mts +0 -260
- package/src/foundry/client-esm/applications/sidebar/tabs/compendium-directory.d.mts +0 -19
- package/src/foundry/client-esm/applications/sidebar/tabs/item-directory.d.mts +0 -20
- package/src/foundry/client-esm/applications/sidebar/tabs/journal-directory.d.mts +0 -20
- package/src/foundry/client-esm/applications/sidebar/tabs/macro-directory.d.mts +0 -20
- package/src/foundry/client-esm/applications/sidebar/tabs/playlist-directory.d.mts +0 -20
- package/src/foundry/client-esm/applications/sidebar/tabs/roll-table-directory.d.mts +0 -20
- package/src/foundry/client-esm/applications/sidebar/tabs/scene-directory.d.mts +0 -20
- package/src/foundry/client-esm/applications/sidebar/tabs/settings.d.mts +0 -18
- package/src/foundry/client-esm/applications/ui/game-pause.d.mts +0 -22
- package/src/foundry/client-esm/applications/ui/hotbar.d.mts +0 -29
- package/src/foundry/client-esm/applications/ui/main-menu.d.mts +0 -27
- package/src/foundry/client-esm/applications/ui/players.d.mts +0 -26
- package/src/foundry/client-esm/applications/ui/region-legend.d.mts +0 -57
- package/src/foundry/client-esm/applications/ui/scene-controls.d.mts +0 -20
- package/src/foundry/client-esm/applications/ui/scene-navigation.d.mts +0 -28
- package/src/foundry/client-esm/applications/ux/context-menu.d.mts +0 -379
- package/src/foundry/client-esm/applications/ux/drag-drop.d.mts +0 -21
- package/src/foundry/client-esm/applications/ux/draggable.d.mts +0 -9
- package/src/foundry/client-esm/applications/ux/form-data-extended.d.mts +0 -17
- package/src/foundry/client-esm/applications/ux/html-secret.d.mts +0 -21
- package/src/foundry/client-esm/applications/ux/prosemirror-editor.d.mts +0 -9
- package/src/foundry/client-esm/applications/ux/search-filter.d.mts +0 -9
- package/src/foundry/client-esm/applications/ux/tabs.d.mts +0 -29
- package/src/foundry/client-esm/applications/ux/text-editor.d.mts +0 -9
- package/src/foundry/client-esm/appv1/api/application-v1.d.mts +0 -5
- package/src/foundry/client-esm/appv1/api/dialog-v1.d.mts +0 -5
- package/src/foundry/client-esm/appv1/api/document-sheet-v1.d.mts +0 -5
- package/src/foundry/client-esm/appv1/api/form-application-v1.d.mts +0 -5
- package/src/foundry/client-esm/appv1/sheets/actor-sheet.d.mts +0 -5
- package/src/foundry/client-esm/appv1/sheets/adventure-importer.d.mts +0 -5
- package/src/foundry/client-esm/appv1/sheets/item-sheet.d.mts +0 -5
- package/src/foundry/client-esm/appv1/sheets/journal-page-sheet.d.mts +0 -7
- package/src/foundry/client-esm/appv1/sheets/journal-sheet.d.mts +0 -5
- package/src/foundry/client-esm/audio/_types.d.mts +0 -18
- package/src/foundry/client-esm/audio/biquad.d.mts +0 -101
- package/src/foundry/client-esm/audio/cache.d.mts +0 -79
- package/src/foundry/client-esm/audio/convolver.d.mts +0 -93
- package/src/foundry/client-esm/audio/helper.d.mts +0 -370
- package/src/foundry/client-esm/audio/sound.d.mts +0 -506
- package/src/foundry/client-esm/audio/timeout.d.mts +0 -101
- package/src/foundry/client-esm/av/client.d.mts +0 -18
- package/src/foundry/client-esm/av/clients/simplepeer.d.mts +0 -11
- package/src/foundry/client-esm/av/master.d.mts +0 -12
- package/src/foundry/client-esm/av/settings.d.mts +0 -30
- package/src/foundry/client-esm/canvas/_module.d.mts +0 -11
- package/src/foundry/client-esm/canvas/edges/collision.d.mts +0 -144
- package/src/foundry/client-esm/canvas/edges/edge.d.mts +0 -253
- package/src/foundry/client-esm/canvas/edges/edges.d.mts +0 -33
- package/src/foundry/client-esm/canvas/edges/vertex.d.mts +0 -166
- package/src/foundry/client-esm/canvas/regions/_module.d.mts +0 -9
- package/src/foundry/client-esm/canvas/regions/geometry.d.mts +0 -38
- package/src/foundry/client-esm/canvas/regions/mesh.d.mts +0 -72
- package/src/foundry/client-esm/canvas/regions/polygon-tree.d.mts +0 -132
- package/src/foundry/client-esm/canvas/regions/shape.d.mts +0 -129
- package/src/foundry/client-esm/canvas/scene-manager.d.mts +0 -103
- package/src/foundry/client-esm/canvas/smaa/blend.d.mts +0 -17
- package/src/foundry/client-esm/canvas/smaa/edges.d.mts +0 -28
- package/src/foundry/client-esm/canvas/smaa/smaa.d.mts +0 -154
- package/src/foundry/client-esm/canvas/smaa/weights.d.mts +0 -29
- package/src/foundry/client-esm/canvas/sources/base-effect-source.d.mts +0 -294
- package/src/foundry/client-esm/canvas/sources/base-light-source.d.mts +0 -223
- package/src/foundry/client-esm/canvas/sources/global-light-source.d.mts +0 -121
- package/src/foundry/client-esm/canvas/sources/point-darkness-source.d.mts +0 -118
- package/src/foundry/client-esm/canvas/sources/point-effect-source.d.mts +0 -122
- package/src/foundry/client-esm/canvas/sources/point-light-source.d.mts +0 -84
- package/src/foundry/client-esm/canvas/sources/point-movement-source.d.mts +0 -42
- package/src/foundry/client-esm/canvas/sources/point-sound-source.d.mts +0 -62
- package/src/foundry/client-esm/canvas/sources/point-vision-source.d.mts +0 -258
- package/src/foundry/client-esm/canvas/sources/rendered-effect-source.d.mts +0 -441
- package/src/foundry/client-esm/canvas/tokens/_module.d.mts +0 -8
- package/src/foundry/client-esm/canvas/tokens/ring-config.d.mts +0 -252
- package/src/foundry/client-esm/canvas/tokens/ring-data.d.mts +0 -147
- package/src/foundry/client-esm/canvas/tokens/ring.d.mts +0 -287
- package/src/foundry/client-esm/client.d.mts +0 -279
- package/src/foundry/client-esm/config.d.mts +0 -1
- package/src/foundry/client-esm/data/_module.d.mts +0 -13
- package/src/foundry/client-esm/data/calendar.d.mts +0 -200
- package/src/foundry/client-esm/data/client-backend.d.mts +0 -51
- package/src/foundry/client-esm/data/region-behaviors/adjust-darkness-level.d.mts +0 -57
- package/src/foundry/client-esm/data/region-behaviors/base.d.mts +0 -59
- package/src/foundry/client-esm/data/region-behaviors/display-scrolling-text.d.mts +0 -64
- package/src/foundry/client-esm/data/region-behaviors/teleport-token.d.mts +0 -32
- package/src/foundry/client-esm/data/region-behaviors/toggle-behavior.d.mts +0 -31
- package/src/foundry/client-esm/dice/_types.d.mts +0 -61
- package/src/foundry/client-esm/dice/parser.d.mts +0 -191
- package/src/foundry/client-esm/dice/roll.d.mts +0 -662
- package/src/foundry/client-esm/dice/terms/coin.d.mts +0 -71
- package/src/foundry/client-esm/dice/terms/dice.d.mts +0 -411
- package/src/foundry/client-esm/dice/terms/die.d.mts +0 -248
- package/src/foundry/client-esm/dice/terms/fate.d.mts +0 -57
- package/src/foundry/client-esm/dice/terms/function.d.mts +0 -103
- package/src/foundry/client-esm/dice/terms/numeric.d.mts +0 -54
- package/src/foundry/client-esm/dice/terms/operator.d.mts +0 -55
- package/src/foundry/client-esm/dice/terms/parenthetical.d.mts +0 -104
- package/src/foundry/client-esm/dice/terms/pool.d.mts +0 -272
- package/src/foundry/client-esm/dice/terms/string.d.mts +0 -34
- package/src/foundry/client-esm/dice/terms/term.d.mts +0 -174
- package/src/foundry/client-esm/documents/_module.d.mts +0 -11
- package/src/foundry/client-esm/documents/_types.d.mts +0 -8
- package/src/foundry/client-esm/documents/abstract/_module.d.mts +0 -6
- package/src/foundry/client-esm/documents/collections/_module.d.mts +0 -6
- package/src/foundry/client-esm/game.d.mts +0 -7
- package/src/foundry/client-esm/helpers/_module.d.mts +0 -8
- package/src/foundry/client-esm/helpers/_types.d.mts +0 -17
- package/src/foundry/client-esm/helpers/compendium-art.d.mts +0 -100
- package/src/foundry/client-esm/hooks.d.mts +0 -1
- package/src/foundry/client-esm/nue/tour.d.mts +0 -9
- package/src/foundry/client-esm/nue/tours/canvas-tour.d.mts +0 -12
- package/src/foundry/client-esm/nue/tours/setup-tour.d.mts +0 -11
- package/src/foundry/client-esm/nue/tours/sidebar-tour.d.mts +0 -11
- package/src/foundry/client-esm/packages/_module.d.mts +0 -22
- package/src/foundry/client-esm/packages/client-package.d.mts +0 -11
- package/src/foundry/client-esm/packages/module.d.mts +0 -8
- package/src/foundry/client-esm/packages/system.d.mts +0 -8
- package/src/foundry/client-esm/packages/world.d.mts +0 -8
- package/src/foundry/client-esm/ui.d.mts +0 -1
- package/src/foundry/client-esm/utils/_module.d.mts +0 -7
- package/src/foundry/client-esm/utils/_types.d.mts +0 -3
- package/src/foundry/client-esm/utils/helpers.d.mts +0 -6
- package/src/foundry/common/prosemirror/index.d.mts +0 -22
- package/src/foundry/common/prosemirror/schema/index.d.mts +0 -11
- package/src/tsconfig.json +0 -15
- package/tsconfig.main.json +0 -8
- package/tsconfig.miscellaneous.json +0 -16
- /package/src/foundry/{client-esm → client}/_module.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/applications/_types.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/applications/api/_module.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/applications/apps/_module.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/applications/apps/av/_module.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/applications/dice/_module.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/applications/elements/_module.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/applications/elements/codemirror/element.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/applications/elements/codemirror/extensions.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/applications/elements/codemirror/view.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/applications/elements/color-picker.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/applications/elements/document-embed.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/applications/elements/enriched-content.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/applications/elements/hue-slider.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/applications/elements/range-picker.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/applications/elements/secret-block.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/applications/elements/string-tags.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/applications/hud/_module.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/applications/settings/menus/_module.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/applications/sheets/journal/_module.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/applications/sheets/token/_module.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/applications/sidebar/_module.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/applications/sidebar/apps/_module.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/applications/sidebar/tabs/_module.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/applications/ui/_module.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/applications/ui/notifications.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/applications/ux/_module.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/appv1/_module.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/appv1/api/_module.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/appv1/sheets/_module.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/audio/_module.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/av/_module.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/av/clients/_module.d.mts +0 -0
- /package/src/foundry/{client-esm/canvas → client/canvas/geometry}/edges/_module.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/canvas/sources/_module.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/data/_types.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/data/combat-config.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/data/region-behaviors/_module.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/data/region-behaviors/execute-macro.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/data/region-behaviors/execute-script.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/data/region-behaviors/pause-game.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/data/region-behaviors/suppress-weather.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/data/terrain-data.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/dice/_module.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/dice/terms/_module.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/dice/twister.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/nue/_module.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/nue/nue-manager.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/nue/tours/_module.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/nue/tours-collection.d.mts +0 -0
- /package/src/foundry/{client-esm → client}/packages/_types.d.mts +0 -0
@@ -0,0 +1,1441 @@
|
|
1
|
+
import type { InexactPartial, Merge } from "#utils";
|
2
|
+
import type { documents } from "#client/client.d.mts";
|
3
|
+
import type Document from "#common/abstract/document.d.mts";
|
4
|
+
import type { DataSchema } from "#common/data/fields.d.mts";
|
5
|
+
import type { LightData, TextureData } from "#common/data/data.d.mts";
|
6
|
+
import type ImageHelper from "#client/helpers/media/image-helper.d.mts";
|
7
|
+
import type { Canvas } from "#client/canvas/_module.d.mts";
|
8
|
+
|
9
|
+
import fields = foundry.data.fields;
|
10
|
+
|
11
|
+
declare namespace Scene {
|
12
|
+
/**
|
13
|
+
* The document's name.
|
14
|
+
*/
|
15
|
+
type Name = "Scene";
|
16
|
+
|
17
|
+
/**
|
18
|
+
* The context used to create a `Scene`.
|
19
|
+
*/
|
20
|
+
interface ConstructionContext extends Document.ConstructionContext<Parent> {}
|
21
|
+
|
22
|
+
/**
|
23
|
+
* The documents embedded within `Scene`.
|
24
|
+
*/
|
25
|
+
type Hierarchy = Readonly<Document.HierarchyOf<Schema>>;
|
26
|
+
|
27
|
+
/**
|
28
|
+
* The implementation of the `Scene` document instance configured through `CONFIG.Scene.documentClass` in Foundry and
|
29
|
+
* {@linkcode DocumentClassConfig} or {@link ConfiguredScene | `fvtt-types/configuration/ConfiguredScene`} in fvtt-types.
|
30
|
+
*/
|
31
|
+
type Implementation = Document.ImplementationFor<"Scene">;
|
32
|
+
|
33
|
+
/**
|
34
|
+
* The implementation of the `Scene` document configured through `CONFIG.Scene.documentClass` in Foundry and
|
35
|
+
* {@linkcode DocumentClassConfig} in fvtt-types.
|
36
|
+
*/
|
37
|
+
type ImplementationClass = Document.ImplementationClassFor<"Scene">;
|
38
|
+
|
39
|
+
/**
|
40
|
+
* A document's metadata is special information about the document ranging anywhere from its name,
|
41
|
+
* whether it's indexed, or to the permissions a user has over it.
|
42
|
+
*/
|
43
|
+
interface Metadata
|
44
|
+
extends Merge<
|
45
|
+
Document.Metadata.Default,
|
46
|
+
Readonly<{
|
47
|
+
name: "Scene";
|
48
|
+
collection: "scenes";
|
49
|
+
indexed: true;
|
50
|
+
compendiumIndexFields: ["_id", "name", "thumb", "sort", "folder"];
|
51
|
+
embedded: Metadata.Embedded;
|
52
|
+
label: string;
|
53
|
+
labelPlural: string;
|
54
|
+
preserveOnImport: ["_id", "sort", "ownership", "active"];
|
55
|
+
schemaVersion: string;
|
56
|
+
}>
|
57
|
+
> {}
|
58
|
+
|
59
|
+
namespace Metadata {
|
60
|
+
/**
|
61
|
+
* The embedded metadata
|
62
|
+
*/
|
63
|
+
interface Embedded {
|
64
|
+
AmbientLight: "lights";
|
65
|
+
AmbientSound: "sounds";
|
66
|
+
Drawing: "drawings";
|
67
|
+
MeasuredTemplate: "templates";
|
68
|
+
Note: "notes";
|
69
|
+
Region: "regions";
|
70
|
+
Tile: "tiles";
|
71
|
+
Token: "tokens";
|
72
|
+
Wall: "walls";
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
/**
|
77
|
+
* A document's parent is something that can contain it.
|
78
|
+
* For example an `Item` can be contained by an `Actor` which makes `Actor` one of its possible parents.
|
79
|
+
*/
|
80
|
+
type Parent = null;
|
81
|
+
|
82
|
+
/**
|
83
|
+
* A document's direct descendants are documents that are contained directly within its schema.
|
84
|
+
* This is a union of all such instances, or never if the document doesn't have any descendants.
|
85
|
+
*/
|
86
|
+
type DirectDescendant =
|
87
|
+
| AmbientLightDocument.Implementation
|
88
|
+
| AmbientSoundDocument.Implementation
|
89
|
+
| DrawingDocument.Implementation
|
90
|
+
| MeasuredTemplateDocument.Implementation
|
91
|
+
| NoteDocument.Implementation
|
92
|
+
| RegionDocument.Implementation
|
93
|
+
| TileDocument.Implementation
|
94
|
+
| TokenDocument.Implementation
|
95
|
+
| WallDocument.Implementation;
|
96
|
+
|
97
|
+
/**
|
98
|
+
* A document's direct descendants are documents that are contained directly within its schema.
|
99
|
+
* This is a union of all such classes, or never if the document doesn't have any descendants.
|
100
|
+
*/
|
101
|
+
type DirectDescendantClass =
|
102
|
+
| AmbientLightDocument.ImplementationClass
|
103
|
+
| AmbientSoundDocument.ImplementationClass
|
104
|
+
| DrawingDocument.ImplementationClass
|
105
|
+
| MeasuredTemplateDocument.ImplementationClass
|
106
|
+
| NoteDocument.ImplementationClass
|
107
|
+
| RegionDocument.ImplementationClass
|
108
|
+
| TileDocument.ImplementationClass
|
109
|
+
| TokenDocument.ImplementationClass
|
110
|
+
| WallDocument.ImplementationClass;
|
111
|
+
|
112
|
+
/**
|
113
|
+
* A document's descendants are any documents that are contained within, either within its schema
|
114
|
+
* or its descendant's schemas.
|
115
|
+
* This is a union of all such instances, or never if the document doesn't have any descendants.
|
116
|
+
*/
|
117
|
+
type Descendant = DirectDescendant | RegionDocument.Descendant | TokenDocument.Descendant;
|
118
|
+
|
119
|
+
/**
|
120
|
+
* A document's descendants are any child documents, grandchild documents, etc.
|
121
|
+
* This is a union of all classes, or never if the document doesn't have any descendants.
|
122
|
+
*/
|
123
|
+
type DescendantClass = DirectDescendantClass | RegionDocument.DescendantClass | TokenDocument.DescendantClass;
|
124
|
+
|
125
|
+
/**
|
126
|
+
* Types of `CompendiumCollection` this document might be contained in.
|
127
|
+
* Note that `this.pack` will always return a string; this is the type for `game.packs.get(this.pack)`
|
128
|
+
*/
|
129
|
+
type Pack = foundry.documents.collections.CompendiumCollection.ForDocument<"Scene">;
|
130
|
+
|
131
|
+
/**
|
132
|
+
* An embedded document is a document contained in another.
|
133
|
+
* For example an `Item` can be contained by an `Actor` which means `Item` can be embedded in `Actor`.
|
134
|
+
*
|
135
|
+
* If this is `never` it is because there are no embeddable documents (or there's a bug!).
|
136
|
+
*/
|
137
|
+
type Embedded = Document.ImplementationFor<Embedded.Name>;
|
138
|
+
|
139
|
+
namespace Embedded {
|
140
|
+
/**
|
141
|
+
* An embedded document is a document contained in another.
|
142
|
+
* For example an `Item` can be contained by an `Actor` which means `Item` can be embedded in `Actor`.
|
143
|
+
*
|
144
|
+
* If this is `never` it is because there are no embeddable documents (or there's a bug!).
|
145
|
+
*/
|
146
|
+
type Name = keyof Metadata.Embedded;
|
147
|
+
|
148
|
+
/**
|
149
|
+
* Gets the collection name for an embedded document.
|
150
|
+
*/
|
151
|
+
type CollectionNameOf<CollectionName extends Embedded.CollectionName> = Document.Embedded.CollectionNameFor<
|
152
|
+
Metadata.Embedded,
|
153
|
+
CollectionName
|
154
|
+
>;
|
155
|
+
|
156
|
+
/**
|
157
|
+
* Gets the collection document for an embedded document.
|
158
|
+
*/
|
159
|
+
type DocumentFor<CollectionName extends Embedded.CollectionName> = Document.Embedded.DocumentFor<
|
160
|
+
Metadata.Embedded,
|
161
|
+
CollectionName
|
162
|
+
>;
|
163
|
+
|
164
|
+
/**
|
165
|
+
* Gets the collection for an embedded document.
|
166
|
+
*/
|
167
|
+
type CollectionFor<CollectionName extends Embedded.CollectionName> = Document.Embedded.CollectionFor<
|
168
|
+
Scene.Implementation,
|
169
|
+
Metadata.Embedded,
|
170
|
+
CollectionName
|
171
|
+
>;
|
172
|
+
|
173
|
+
/**
|
174
|
+
* A valid name to refer to a collection embedded in this document. For example an `Actor`
|
175
|
+
* has the key `"items"` which contains `Item` instance which would make both `"Item" | "Items"`
|
176
|
+
* valid keys (amongst others).
|
177
|
+
*/
|
178
|
+
type CollectionName = Document.Embedded.CollectionName<Metadata.Embedded>;
|
179
|
+
}
|
180
|
+
|
181
|
+
/**
|
182
|
+
* The name of the world or embedded collection this document can find itself in.
|
183
|
+
* For example an `Item` is always going to be inside a collection with a key of `items`.
|
184
|
+
* This is a fixed string per document type and is primarily useful for {@link ClientDocumentMixin | `Descendant Document Events`}.
|
185
|
+
*/
|
186
|
+
type ParentCollectionName = Metadata["collection"];
|
187
|
+
|
188
|
+
/**
|
189
|
+
* The world collection that contains `Scene`s. Will be `never` if none exists.
|
190
|
+
*/
|
191
|
+
type CollectionClass = foundry.documents.collections.Scenes.ConfiguredClass;
|
192
|
+
|
193
|
+
/**
|
194
|
+
* The world collection that contains `Scene`s. Will be `never` if none exists.
|
195
|
+
*/
|
196
|
+
type Collection = foundry.documents.collections.Scenes.Configured;
|
197
|
+
|
198
|
+
/**
|
199
|
+
* An instance of `Scene` that comes from the database but failed validation meaning that
|
200
|
+
* its `system` and `_source` could theoretically be anything.
|
201
|
+
*/
|
202
|
+
interface Invalid extends Document.Internal.Invalid<Scene.Implementation> {}
|
203
|
+
|
204
|
+
/**
|
205
|
+
* An instance of `Scene` that comes from the database.
|
206
|
+
*/
|
207
|
+
type Stored = Document.Internal.Stored<Scene.Implementation>;
|
208
|
+
|
209
|
+
/**
|
210
|
+
* The data put in {@link Scene._source | `Scene#_source`}. This data is what was
|
211
|
+
* persisted to the database and therefore it must be valid JSON.
|
212
|
+
*
|
213
|
+
* For example a {@link fields.SetField | `SetField`} is persisted to the database as an array
|
214
|
+
* but initialized as a {@linkcode Set}.
|
215
|
+
*/
|
216
|
+
interface Source extends fields.SchemaField.SourceData<Schema> {}
|
217
|
+
|
218
|
+
/**
|
219
|
+
* The data necessary to create a document. Used in places like {@linkcode Scene.create}
|
220
|
+
* and {@link Scene | `new Scene(...)`}.
|
221
|
+
*
|
222
|
+
* For example a {@link fields.SetField | `SetField`} can accept any {@linkcode Iterable}
|
223
|
+
* with the right values. This means you can pass a `Set` instance, an array of values,
|
224
|
+
* a generator, or any other iterable.
|
225
|
+
*/
|
226
|
+
interface CreateData extends fields.SchemaField.CreateData<Schema> {}
|
227
|
+
|
228
|
+
/**
|
229
|
+
* The data after a {@link foundry.abstract.Document | `Document`} has been initialized, for example
|
230
|
+
* {@link Scene.name | `Scene#name`}.
|
231
|
+
*
|
232
|
+
* This is data transformed from {@linkcode Scene.Source} and turned into more
|
233
|
+
* convenient runtime data structures. For example a {@link fields.SetField | `SetField`} is
|
234
|
+
* persisted to the database as an array of values but at runtime it is a `Set` instance.
|
235
|
+
*/
|
236
|
+
interface InitializedData extends fields.SchemaField.InitializedData<Schema> {}
|
237
|
+
|
238
|
+
/**
|
239
|
+
* The data used to update a document, for example {@link Scene.update | `Scene#update`}.
|
240
|
+
* It is a distinct type from {@link Scene.CreateData | `DeepPartial<Scene.CreateData>`} because
|
241
|
+
* it has different rules for `null` and `undefined`.
|
242
|
+
*/
|
243
|
+
interface UpdateData extends fields.SchemaField.UpdateData<Schema> {}
|
244
|
+
|
245
|
+
interface EnvironmentDataSchemaDefaults {
|
246
|
+
hue: number;
|
247
|
+
intensity: number;
|
248
|
+
luminosity: number;
|
249
|
+
saturation: number;
|
250
|
+
shadows: number;
|
251
|
+
}
|
252
|
+
|
253
|
+
interface EnvironmentDataSchema<Defaults extends EnvironmentDataSchemaDefaults> extends DataSchema {
|
254
|
+
/**
|
255
|
+
* The normalized hue angle.
|
256
|
+
* @defaultValue `0` for `environment.base`, `257/360` for `environment.dark`
|
257
|
+
*/
|
258
|
+
hue: fields.HueField<{
|
259
|
+
required: true;
|
260
|
+
initial: Defaults["hue"];
|
261
|
+
label: "SCENES.ENVIRONMENT.Hue";
|
262
|
+
hint: "SCENES.ENVIRONMENT.HueHint";
|
263
|
+
}>;
|
264
|
+
|
265
|
+
/**
|
266
|
+
* The intensity of the tinting (0 = no tinting).
|
267
|
+
* @defaultValue `0`
|
268
|
+
*/
|
269
|
+
intensity: fields.AlphaField<{
|
270
|
+
required: true;
|
271
|
+
nullable: false;
|
272
|
+
initial: Defaults["intensity"];
|
273
|
+
label: "SCENES.ENVIRONMENT.Intensity";
|
274
|
+
hint: "SCENES.ENVIRONMENT.IntensityHint";
|
275
|
+
}>;
|
276
|
+
|
277
|
+
/**
|
278
|
+
* The luminosity.
|
279
|
+
* @defaultValue `0` in `environment.base`, `0.25` in `environment.dark`
|
280
|
+
*/
|
281
|
+
luminosity: fields.NumberField<{
|
282
|
+
required: true;
|
283
|
+
nullable: false;
|
284
|
+
initial: Defaults["luminosity"];
|
285
|
+
min: -1;
|
286
|
+
max: 1;
|
287
|
+
label: "SCENES.ENVIRONMENT.Luminosity";
|
288
|
+
hint: "SCENES.ENVIRONMENT.LuminosityHint";
|
289
|
+
}>;
|
290
|
+
|
291
|
+
/**
|
292
|
+
* The saturation.
|
293
|
+
* @defaultValue `0`
|
294
|
+
*/
|
295
|
+
saturation: fields.NumberField<{
|
296
|
+
required: true;
|
297
|
+
nullable: false;
|
298
|
+
initial: Defaults["saturation"];
|
299
|
+
min: -1;
|
300
|
+
max: 1;
|
301
|
+
label: "SCENES.ENVIRONMENT.Saturation";
|
302
|
+
hint: "SCENES.ENVIRONMENT.SaturationHint";
|
303
|
+
}>;
|
304
|
+
|
305
|
+
/**
|
306
|
+
* The strength of the shadows.
|
307
|
+
* @defaultValue `0`
|
308
|
+
*/
|
309
|
+
shadows: fields.NumberField<{
|
310
|
+
required: true;
|
311
|
+
nullable: false;
|
312
|
+
initial: Defaults["shadows"];
|
313
|
+
min: 0;
|
314
|
+
max: 1;
|
315
|
+
label: "SCENES.ENVIRONMENT.Shadows";
|
316
|
+
hint: "SCENES.ENVIRONMENT.ShadowsHint";
|
317
|
+
}>;
|
318
|
+
}
|
319
|
+
|
320
|
+
interface EnvironmentDataSchemaDefaults {
|
321
|
+
hue: number;
|
322
|
+
intensity: number;
|
323
|
+
luminosity: number;
|
324
|
+
saturation: number;
|
325
|
+
shadows: number;
|
326
|
+
}
|
327
|
+
|
328
|
+
interface EnvironmentDataSchema<Defaults extends EnvironmentDataSchemaDefaults> extends DataSchema {
|
329
|
+
/**
|
330
|
+
* The normalized hue angle.
|
331
|
+
* @defaultValue `0` for `environment.base`, `257/360` for `environment.dark`
|
332
|
+
*/
|
333
|
+
hue: fields.HueField<{
|
334
|
+
required: true;
|
335
|
+
initial: Defaults["hue"];
|
336
|
+
label: "SCENES.ENVIRONMENT.Hue";
|
337
|
+
hint: "SCENES.ENVIRONMENT.HueHint";
|
338
|
+
}>;
|
339
|
+
|
340
|
+
/**
|
341
|
+
* The intensity of the tinting (0 = no tinting).
|
342
|
+
* @defaultValue `0`
|
343
|
+
*/
|
344
|
+
intensity: fields.AlphaField<{
|
345
|
+
required: true;
|
346
|
+
nullable: false;
|
347
|
+
initial: Defaults["intensity"];
|
348
|
+
label: "SCENES.ENVIRONMENT.Intensity";
|
349
|
+
hint: "SCENES.ENVIRONMENT.IntensityHint";
|
350
|
+
}>;
|
351
|
+
|
352
|
+
/**
|
353
|
+
* The luminosity.
|
354
|
+
* @defaultValue `0` in `environment.base`, `0.25` in `environment.dark`
|
355
|
+
*/
|
356
|
+
luminosity: fields.NumberField<{
|
357
|
+
required: true;
|
358
|
+
nullable: false;
|
359
|
+
initial: Defaults["luminosity"];
|
360
|
+
min: -1;
|
361
|
+
max: 1;
|
362
|
+
label: "SCENES.ENVIRONMENT.Luminosity";
|
363
|
+
hint: "SCENES.ENVIRONMENT.LuminosityHint";
|
364
|
+
}>;
|
365
|
+
|
366
|
+
/**
|
367
|
+
* The saturation.
|
368
|
+
* @defaultValue `0`
|
369
|
+
*/
|
370
|
+
saturation: fields.NumberField<{
|
371
|
+
required: true;
|
372
|
+
nullable: false;
|
373
|
+
initial: Defaults["saturation"];
|
374
|
+
min: -1;
|
375
|
+
max: 1;
|
376
|
+
label: "SCENES.ENVIRONMENT.Saturation";
|
377
|
+
hint: "SCENES.ENVIRONMENT.SaturationHint";
|
378
|
+
}>;
|
379
|
+
|
380
|
+
/**
|
381
|
+
* The strength of the shadows.
|
382
|
+
* @defaultValue `0`
|
383
|
+
*/
|
384
|
+
shadows: fields.NumberField<{
|
385
|
+
required: true;
|
386
|
+
nullable: false;
|
387
|
+
initial: Defaults["shadows"];
|
388
|
+
min: 0;
|
389
|
+
max: 1;
|
390
|
+
label: "SCENES.ENVIRONMENT.Shadows";
|
391
|
+
hint: "SCENES.ENVIRONMENT.ShadowsHint";
|
392
|
+
}>;
|
393
|
+
}
|
394
|
+
|
395
|
+
/**
|
396
|
+
* The schema for {@linkcode Scene}. This is the source of truth for how an Scene document
|
397
|
+
* must be structured.
|
398
|
+
*
|
399
|
+
* Foundry uses this schema to validate the structure of the {@linkcode Scene}. For example
|
400
|
+
* a {@link fields.StringField | `StringField`} will enforce that the value is a string. More
|
401
|
+
* complex fields like {@link fields.SetField | `SetField`} goes through various conversions
|
402
|
+
* starting as an array in the database, initialized as a set, and allows updates with any
|
403
|
+
* iterable.
|
404
|
+
*/
|
405
|
+
interface Schema extends DataSchema {
|
406
|
+
/**
|
407
|
+
* The _id which uniquely identifies this Scene document
|
408
|
+
* @defaultValue `null`
|
409
|
+
*/
|
410
|
+
_id: fields.DocumentIdField;
|
411
|
+
|
412
|
+
/**
|
413
|
+
* The name of this scene
|
414
|
+
* @defaultValue `""`
|
415
|
+
*/
|
416
|
+
name: fields.StringField<
|
417
|
+
{ required: true; blank: false; textSearch: true },
|
418
|
+
// Note(LukeAbby): Field override because `blank: false` isn't fully accounted for or something.
|
419
|
+
string,
|
420
|
+
string,
|
421
|
+
string
|
422
|
+
>;
|
423
|
+
|
424
|
+
/**
|
425
|
+
* Is this scene currently active? Only one scene may be active at a given time
|
426
|
+
* @defaultValue `false`
|
427
|
+
*/
|
428
|
+
active: fields.BooleanField;
|
429
|
+
|
430
|
+
/**
|
431
|
+
* Is this scene displayed in the top navigation bar?
|
432
|
+
* @defaultValue `true`
|
433
|
+
*/
|
434
|
+
navigation: fields.BooleanField<{ initial: true }>;
|
435
|
+
|
436
|
+
/**
|
437
|
+
* The sorting order of this Scene in the navigation bar relative to siblings
|
438
|
+
* @defaultValue `0`
|
439
|
+
*/
|
440
|
+
navOrder: fields.NumberField<{ required: true; nullable: false; integer: true; initial: 0 }>;
|
441
|
+
|
442
|
+
/**
|
443
|
+
* A string which overrides Scene name for display in the navigation bar
|
444
|
+
* @defaultValue `""`
|
445
|
+
*/
|
446
|
+
navName: fields.HTMLField<{ textSearch: true }>;
|
447
|
+
|
448
|
+
/**
|
449
|
+
* An image or video file that provides the background texture for the scene.
|
450
|
+
* @defaultValue see {@linkcode TextureData}
|
451
|
+
*/
|
452
|
+
background: TextureData;
|
453
|
+
|
454
|
+
/**
|
455
|
+
* An image or video file path providing foreground media for the scene
|
456
|
+
* @defaultValue `null`
|
457
|
+
*/
|
458
|
+
foreground: fields.FilePathField<{ categories: ["IMAGE", "VIDEO"]; virtual: true }>;
|
459
|
+
|
460
|
+
/**
|
461
|
+
* The elevation of the foreground layer where overhead tiles reside
|
462
|
+
* @defaultValue `null`
|
463
|
+
* @remarks If falsey, {@link Scene.prepareBaseData | `Scene#prepareBaseData`} initializes this to `this.grid.distance * 4`, with the comment:
|
464
|
+
*
|
465
|
+
* "A temporary assumption until a more robust long-term solution when we implement Scene Levels."
|
466
|
+
*/
|
467
|
+
foregroundElevation: fields.NumberField<{ required: false; positive: true; integer: true }>;
|
468
|
+
|
469
|
+
/**
|
470
|
+
* A thumbnail image which depicts the scene at lower resolution
|
471
|
+
* @defaultValue `null`
|
472
|
+
*/
|
473
|
+
thumb: fields.FilePathField<{ categories: ["IMAGE"] }>;
|
474
|
+
|
475
|
+
/**
|
476
|
+
* The width of the scene canvas, normally the width of the background media
|
477
|
+
* @defaultValue `4000`
|
478
|
+
*/
|
479
|
+
width: fields.NumberField<{ integer: true; positive: true; initial: 4000 }>;
|
480
|
+
|
481
|
+
/**
|
482
|
+
* The height of the scene canvas, normally the height of the background media
|
483
|
+
* @defaultValue `3000`
|
484
|
+
*/
|
485
|
+
height: fields.NumberField<{ integer: true; positive: true; initial: 3000 }>;
|
486
|
+
|
487
|
+
/**
|
488
|
+
* The proportion of canvas padding applied around the outside of the scene
|
489
|
+
* dimensions to provide additional buffer space
|
490
|
+
* @defaultValue `0.25`
|
491
|
+
*/
|
492
|
+
padding: fields.NumberField<{ required: true; nullable: false; min: 0; max: 0.5; step: 0.05; initial: 0.25 }>;
|
493
|
+
|
494
|
+
/**
|
495
|
+
* The initial view coordinates for the scene
|
496
|
+
*/
|
497
|
+
initial: fields.SchemaField<{
|
498
|
+
/** @defaultValue `null` */
|
499
|
+
x: fields.NumberField<{ integer: true; required: true }>;
|
500
|
+
|
501
|
+
/** @defaultValue `null` */
|
502
|
+
y: fields.NumberField<{ integer: true; required: true }>;
|
503
|
+
|
504
|
+
/** @defaultValue `0.5` */
|
505
|
+
scale: fields.NumberField<{ required: true; positive: true }>;
|
506
|
+
}>;
|
507
|
+
|
508
|
+
/**
|
509
|
+
* The color of the canvas displayed behind the scene background
|
510
|
+
* @defaultValue `"#999999"`
|
511
|
+
*/
|
512
|
+
backgroundColor: fields.ColorField<{ nullable: false; initial: "#999999" }>;
|
513
|
+
|
514
|
+
/**
|
515
|
+
* Grid configuration for the scene
|
516
|
+
* @defaultValue see properties
|
517
|
+
* @remarks Initialized in {@link Scene.prepareBaseData | `Scene#prepareBaseData`} to `Scene.#getGrid(this)`, which returns {@linkcode BaseGrid} or a subclass
|
518
|
+
*/
|
519
|
+
grid: fields.SchemaField<
|
520
|
+
GridSchema,
|
521
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
522
|
+
{},
|
523
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
524
|
+
fields.SchemaField.Internal.AssignmentType<GridSchema, fields.SchemaField.DefaultOptions>,
|
525
|
+
foundry.grid.BaseGrid
|
526
|
+
>;
|
527
|
+
|
528
|
+
/**
|
529
|
+
* Do Tokens require vision in order to see the Scene environment?
|
530
|
+
* @defaultValue `true`
|
531
|
+
*/
|
532
|
+
tokenVision: fields.BooleanField<{ initial: true }>;
|
533
|
+
|
534
|
+
/**
|
535
|
+
* Fog-exploration settings and other data
|
536
|
+
*/
|
537
|
+
fog: fields.SchemaField<{
|
538
|
+
/**
|
539
|
+
* Should fog exploration progress be tracked for this Scene?
|
540
|
+
* @defaultValue `true`
|
541
|
+
*/
|
542
|
+
exploration: fields.BooleanField<{ initial: true }>;
|
543
|
+
|
544
|
+
/**
|
545
|
+
* The timestamp at which fog of war was last reset for this Scene.
|
546
|
+
* @defaultValue `undefined`
|
547
|
+
*/
|
548
|
+
reset: fields.NumberField<{ required: false; initial: undefined }>;
|
549
|
+
|
550
|
+
/**
|
551
|
+
* A special overlay image or video texture which is used for fog of war
|
552
|
+
* @defaultValue `null`
|
553
|
+
*/
|
554
|
+
overlay: fields.FilePathField<{ categories: ["IMAGE", "VIDEO"]; virtual: true }>;
|
555
|
+
|
556
|
+
/**
|
557
|
+
* Fog-exploration coloration data
|
558
|
+
*/
|
559
|
+
colors: fields.SchemaField<{
|
560
|
+
/**
|
561
|
+
* A color tint applied to explored regions of fog of war
|
562
|
+
* @defaultValue `null`
|
563
|
+
*/
|
564
|
+
explored: fields.ColorField;
|
565
|
+
|
566
|
+
/**
|
567
|
+
* A color tint applied to unexplored regions of fog of war
|
568
|
+
* @defaultValue `null`
|
569
|
+
*/
|
570
|
+
unexplored: fields.ColorField;
|
571
|
+
}>;
|
572
|
+
}>;
|
573
|
+
|
574
|
+
/**
|
575
|
+
* The environment data applied to the Scene.
|
576
|
+
*/
|
577
|
+
environment: fields.SchemaField<EnvironmentSchema>;
|
578
|
+
|
579
|
+
/**
|
580
|
+
* A collection of embedded Drawing objects.
|
581
|
+
* @defaultValue `[]`
|
582
|
+
*/
|
583
|
+
drawings: fields.EmbeddedCollectionField<typeof documents.BaseDrawing, Scene.Implementation>;
|
584
|
+
|
585
|
+
/**
|
586
|
+
* A collection of embedded Tile objects.
|
587
|
+
* @defaultValue `[]`
|
588
|
+
*/
|
589
|
+
tokens: fields.EmbeddedCollectionField<typeof documents.BaseToken, Scene.Implementation>;
|
590
|
+
|
591
|
+
/**
|
592
|
+
* A collection of embedded Token objects.
|
593
|
+
* @defaultValue `[]`
|
594
|
+
*/
|
595
|
+
lights: fields.EmbeddedCollectionField<typeof documents.BaseAmbientLight, Scene.Implementation>;
|
596
|
+
|
597
|
+
/**
|
598
|
+
* A collection of embedded AmbientLight objects.
|
599
|
+
* @defaultValue `[]`
|
600
|
+
*/
|
601
|
+
notes: fields.EmbeddedCollectionField<typeof documents.BaseNote, Scene.Implementation>;
|
602
|
+
|
603
|
+
/**
|
604
|
+
* A collection of embedded Note objects.
|
605
|
+
* @defaultValue `[]`
|
606
|
+
*/
|
607
|
+
sounds: fields.EmbeddedCollectionField<typeof documents.BaseAmbientSound, Scene.Implementation>;
|
608
|
+
|
609
|
+
/**
|
610
|
+
* A collection of embedded Region documents.
|
611
|
+
* @defaultValue `[]`
|
612
|
+
*/
|
613
|
+
regions: fields.EmbeddedCollectionField<typeof documents.BaseRegion, Scene.Implementation>;
|
614
|
+
|
615
|
+
/**
|
616
|
+
* A collection of embedded AmbientSound objects.
|
617
|
+
* @defaultValue `[]`
|
618
|
+
*/
|
619
|
+
templates: fields.EmbeddedCollectionField<typeof documents.BaseMeasuredTemplate, Scene.Implementation>;
|
620
|
+
|
621
|
+
/**
|
622
|
+
* A collection of embedded MeasuredTemplate objects.
|
623
|
+
* @defaultValue `[]`
|
624
|
+
*/
|
625
|
+
tiles: fields.EmbeddedCollectionField<typeof documents.BaseTile, Scene.Implementation>;
|
626
|
+
|
627
|
+
/**
|
628
|
+
* A collection of embedded Wall objects
|
629
|
+
* @defaultValue `[]`
|
630
|
+
*/
|
631
|
+
walls: fields.EmbeddedCollectionField<typeof documents.BaseWall, Scene.Implementation>;
|
632
|
+
|
633
|
+
/**
|
634
|
+
* A linked Playlist document which should begin automatically playing when this Scene becomes active.
|
635
|
+
* @defaultValue `null`
|
636
|
+
*/
|
637
|
+
playlist: fields.ForeignDocumentField<typeof documents.BasePlaylist>;
|
638
|
+
|
639
|
+
/**
|
640
|
+
* A linked PlaylistSound document from the selected playlist that will
|
641
|
+
* begin automatically playing when this Scene becomes active
|
642
|
+
* @defaultValue `null`
|
643
|
+
* @remarks This is `idOnly` because {@link fields.ForeignDocumentField | `ForeignDocumentField`} doesn't know how to get embedded documents;
|
644
|
+
* {@link Scene.prepareBaseData | `Scene#prepareBaseData`} attempts to `get()` this ID from the provided `playlist`, if any, making this
|
645
|
+
* `PlaylistSound.Implementation | undefined | null` at runtime
|
646
|
+
*/
|
647
|
+
playlistSound: fields.ForeignDocumentField<typeof documents.BasePlaylistSound, { idOnly: true }>;
|
648
|
+
|
649
|
+
/**
|
650
|
+
* A JournalEntry document which provides narrative details about this Scene
|
651
|
+
* @defaultValue `null`
|
652
|
+
*/
|
653
|
+
journal: fields.ForeignDocumentField<typeof documents.BaseJournalEntry>;
|
654
|
+
|
655
|
+
/**
|
656
|
+
* A document ID for a JournalEntryPage which provides narrative details about this Scene
|
657
|
+
* @defaultValue `null`
|
658
|
+
*/
|
659
|
+
journalEntryPage: fields.ForeignDocumentField<typeof documents.BaseJournalEntryPage, { idOnly: true }>;
|
660
|
+
|
661
|
+
/**
|
662
|
+
* A named weather effect which should be rendered in this Scene.
|
663
|
+
* @defaultValue `""`
|
664
|
+
*/
|
665
|
+
weather: fields.StringField<{ required: true }>;
|
666
|
+
|
667
|
+
/**
|
668
|
+
* The _id of a Folder which contains this Actor
|
669
|
+
* @defaultValue `null`
|
670
|
+
*/
|
671
|
+
folder: fields.ForeignDocumentField<typeof documents.BaseFolder>;
|
672
|
+
|
673
|
+
/**
|
674
|
+
* The numeric sort value which orders this Actor relative to its siblings
|
675
|
+
* @defaultValue `0`
|
676
|
+
*/
|
677
|
+
sort: fields.IntegerSortField;
|
678
|
+
|
679
|
+
/**
|
680
|
+
* An object which configures ownership of this Scene
|
681
|
+
* @defaultValue see {@linkcode fields.DocumentOwnershipField}
|
682
|
+
*/
|
683
|
+
ownership: fields.DocumentOwnershipField;
|
684
|
+
|
685
|
+
/**
|
686
|
+
* An object of optional key/value flags
|
687
|
+
* @defaultValue `{}`
|
688
|
+
*/
|
689
|
+
flags: fields.DocumentFlagsField<Name>;
|
690
|
+
|
691
|
+
/**
|
692
|
+
* An object of creation and access information
|
693
|
+
* @defaultValue see {@linkcode fields.DocumentStatsField}
|
694
|
+
*/
|
695
|
+
_stats: fields.DocumentStatsField;
|
696
|
+
}
|
697
|
+
|
698
|
+
interface EnvironmentSchema extends DataSchema {
|
699
|
+
/**
|
700
|
+
* The environment darkness level.
|
701
|
+
* @defaultValue `0`
|
702
|
+
*/
|
703
|
+
darknessLevel: fields.AlphaField<{ initial: 0 }>;
|
704
|
+
|
705
|
+
/**
|
706
|
+
* The darkness level lock state.
|
707
|
+
* @defaultValue `false`
|
708
|
+
*/
|
709
|
+
darknessLock: fields.BooleanField<{ initial: false }>;
|
710
|
+
|
711
|
+
/**
|
712
|
+
* The global light data configuration.
|
713
|
+
*/
|
714
|
+
globalLight: fields.SchemaField<{
|
715
|
+
/**
|
716
|
+
* Is the global light enabled?
|
717
|
+
* @defaultValue `false`
|
718
|
+
*/
|
719
|
+
enabled: fields.BooleanField<{ required: true; initial: false }>;
|
720
|
+
|
721
|
+
/**
|
722
|
+
* @see {@linkcode foundry.data.LightData.Schema.alpha}
|
723
|
+
* @privateRemarks The field is defined in Foundry by pulling from the {@linkcode foundry.data.LightData} schema
|
724
|
+
*/
|
725
|
+
alpha: LightData.Schema["alpha"];
|
726
|
+
|
727
|
+
/**
|
728
|
+
* Is the global light in bright mode?
|
729
|
+
* @defaultValue `false`
|
730
|
+
* @remarks This is `boolean` here instead {@linkcode foundry.data.LightData} schema's `number`, because the global light has infinite range
|
731
|
+
*/
|
732
|
+
bright: fields.BooleanField<{ required: true; initial: false }>;
|
733
|
+
|
734
|
+
/**
|
735
|
+
* @see {@linkcode foundry.data.LightData.Schema.color}
|
736
|
+
* @privateRemarks The field is defined in Foundry by pulling from the {@linkcode foundry.data.LightData} schema
|
737
|
+
*/
|
738
|
+
color: LightData.Schema["color"];
|
739
|
+
|
740
|
+
/**
|
741
|
+
* @see {@linkcode foundry.data.LightData.Schema.coloration}
|
742
|
+
* @privateRemarks The field is defined in Foundry by pulling from the {@linkcode foundry.data.LightData} schema
|
743
|
+
*/
|
744
|
+
coloration: LightData.Schema["coloration"];
|
745
|
+
|
746
|
+
/**
|
747
|
+
* The luminosity applied in the shader
|
748
|
+
* @defaultValue `0`
|
749
|
+
* @remarks Doesn't pull from the {@linkcode foundry.data.LightData} schema, unlike its siblings, as it has a different `initial`
|
750
|
+
*/
|
751
|
+
luminosity: fields.NumberField<{ required: true; nullable: false; initial: 0; min: 0; max: 1 }>;
|
752
|
+
|
753
|
+
/**
|
754
|
+
* @see {@linkcode foundry.data.LightData.Schema.saturation}
|
755
|
+
* @privateRemarks The field is defined in Foundry by pulling from the {@linkcode foundry.data.LightData} schema
|
756
|
+
*/
|
757
|
+
saturation: LightData.Schema["saturation"];
|
758
|
+
|
759
|
+
/**
|
760
|
+
* @see {@linkcode foundry.data.LightData.Schema.contrast}
|
761
|
+
* @privateRemarks The field is defined in Foundry by pulling from the {@linkcode foundry.data.LightData} schema
|
762
|
+
*/
|
763
|
+
contrast: LightData.Schema["contrast"];
|
764
|
+
|
765
|
+
/**
|
766
|
+
* @see {@linkcode foundry.data.LightData.Schema.shadows}
|
767
|
+
* @privateRemarks The field is defined in Foundry by pulling from the {@linkcode foundry.data.LightData} schema
|
768
|
+
*/
|
769
|
+
shadows: LightData.Schema["shadows"];
|
770
|
+
|
771
|
+
/**
|
772
|
+
* @see {@linkcode foundry.data.LightData.Schema.darkness}
|
773
|
+
* @privateRemarks The field is defined in Foundry by pulling from the {@linkcode foundry.data.LightData} schema
|
774
|
+
*/
|
775
|
+
darkness: LightData.Schema["darkness"];
|
776
|
+
}>;
|
777
|
+
|
778
|
+
/**
|
779
|
+
* If cycling between Night and Day is activated.
|
780
|
+
* @defaultValue `true`
|
781
|
+
*/
|
782
|
+
cycle: fields.BooleanField<{ initial: true }>;
|
783
|
+
|
784
|
+
/**
|
785
|
+
* The base (darkness level 0) ambience lighting data.
|
786
|
+
*/
|
787
|
+
base: fields.SchemaField<EnvironmentDataSchema<{ hue: 0; intensity: 0; luminosity: 0; saturation: 0; shadows: 0 }>>;
|
788
|
+
|
789
|
+
/**
|
790
|
+
* The dark (darkness level 1) ambience lighting data.
|
791
|
+
* @privateRemarks The `hue` default is actually `257/360` but you can't do division in types. This precision should be more than sufficient.
|
792
|
+
*/
|
793
|
+
dark: fields.SchemaField<
|
794
|
+
EnvironmentDataSchema<{ hue: 0.71388889; intensity: 0; luminosity: -0.25; saturation: 0; shadows: 0 }>
|
795
|
+
>;
|
796
|
+
}
|
797
|
+
|
798
|
+
interface EnvironmentData extends fields.SchemaField.InitializedData<EnvironmentSchema> {}
|
799
|
+
|
800
|
+
interface GridSchema extends DataSchema {
|
801
|
+
/**
|
802
|
+
* The type of grid, a number from CONST.GRID_TYPES.
|
803
|
+
* @defaultValue `game.system.grid.type`
|
804
|
+
*/
|
805
|
+
type: fields.NumberField<
|
806
|
+
{
|
807
|
+
required: true;
|
808
|
+
choices: CONST.GRID_TYPES[];
|
809
|
+
initial: () => CONST.GRID_TYPES;
|
810
|
+
validationError: "must be a value in CONST.GRID_TYPES";
|
811
|
+
},
|
812
|
+
// FIXME: overrides required to enforce branded type
|
813
|
+
CONST.GRID_TYPES | null | undefined,
|
814
|
+
CONST.GRID_TYPES,
|
815
|
+
CONST.GRID_TYPES
|
816
|
+
>;
|
817
|
+
|
818
|
+
/**
|
819
|
+
* The grid size which represents the width (or height) of a single grid space.
|
820
|
+
* @defaultValue `100`
|
821
|
+
*/
|
822
|
+
size: fields.NumberField<{
|
823
|
+
required: true;
|
824
|
+
nullable: false;
|
825
|
+
integer: true;
|
826
|
+
min: typeof CONST.GRID_MIN_SIZE;
|
827
|
+
initial: 100;
|
828
|
+
validationError: `must be an integer number of pixels, ${typeof CONST.GRID_MIN_SIZE} or greater`;
|
829
|
+
}>;
|
830
|
+
|
831
|
+
/**
|
832
|
+
* The line style of the grid.
|
833
|
+
* @remarks This field has no special validation, but provided values should match keys of {@linkcode CONFIG.Canvas.gridStyles}
|
834
|
+
* @defaultValue `"solidLines"`
|
835
|
+
*/
|
836
|
+
style: fields.StringField<{ required: true; blank: false; initial: "solidLines" }>;
|
837
|
+
|
838
|
+
/**
|
839
|
+
* The thickness of the grid lines.
|
840
|
+
* @defaultValue `1`
|
841
|
+
*/
|
842
|
+
thickness: fields.NumberField<{ required: true; nullable: false; positive: true; integer: true; initial: 1 }>;
|
843
|
+
|
844
|
+
/**
|
845
|
+
* A string representing the color used to render the grid lines.
|
846
|
+
* @defaultValue `"#000000"`
|
847
|
+
*/
|
848
|
+
color: fields.ColorField<{ required: true; nullable: false; initial: "#000000" }>;
|
849
|
+
|
850
|
+
/**
|
851
|
+
* A number between 0 and 1 for the opacity of the grid lines.
|
852
|
+
* @defaultValue `0.2`
|
853
|
+
*/
|
854
|
+
alpha: fields.AlphaField<{ initial: 0.2 }>;
|
855
|
+
|
856
|
+
/**
|
857
|
+
* The number of distance units which are represented by a single grid space.
|
858
|
+
* @defaultValue `game.system.grid.distance`
|
859
|
+
*/
|
860
|
+
distance: fields.NumberField<{ required: true; nullable: false; positive: true; initial: () => number }>;
|
861
|
+
|
862
|
+
/**
|
863
|
+
* A label for the units of measure which are used for grid distance.
|
864
|
+
* @defaultValue `game.system.grid.units`
|
865
|
+
*/
|
866
|
+
units: fields.StringField<{ required: true; initial: () => string }>;
|
867
|
+
}
|
868
|
+
|
869
|
+
namespace Database {
|
870
|
+
/** Options passed along in Get operations for Scenes */
|
871
|
+
interface Get extends foundry.abstract.types.DatabaseGetOperation<Scene.Parent> {}
|
872
|
+
|
873
|
+
/** Options passed along in Create operations for Scenes */
|
874
|
+
interface Create<Temporary extends boolean | undefined = boolean | undefined>
|
875
|
+
extends foundry.abstract.types.DatabaseCreateOperation<Scene.CreateData, Scene.Parent, Temporary> {}
|
876
|
+
|
877
|
+
/** Options passed along in Delete operations for Scenes */
|
878
|
+
interface Delete extends foundry.abstract.types.DatabaseDeleteOperation<Scene.Parent> {}
|
879
|
+
|
880
|
+
/** Options passed along in Update operations for Scenes */
|
881
|
+
interface Update extends foundry.abstract.types.DatabaseUpdateOperation<Scene.UpdateData, Scene.Parent> {
|
882
|
+
thumb?: (string | null)[];
|
883
|
+
autoReposition?: boolean;
|
884
|
+
animateDarkness?: number;
|
885
|
+
}
|
886
|
+
|
887
|
+
/** Operation for {@linkcode Scene.createDocuments} */
|
888
|
+
interface CreateDocumentsOperation<Temporary extends boolean | undefined>
|
889
|
+
extends Document.Database.CreateOperation<Scene.Database.Create<Temporary>> {}
|
890
|
+
|
891
|
+
/** Operation for {@linkcode Scene.updateDocuments} */
|
892
|
+
interface UpdateDocumentsOperation extends Document.Database.UpdateDocumentsOperation<Scene.Database.Update> {}
|
893
|
+
|
894
|
+
/** Operation for {@linkcode Scene.deleteDocuments} */
|
895
|
+
interface DeleteDocumentsOperation extends Document.Database.DeleteDocumentsOperation<Scene.Database.Delete> {}
|
896
|
+
|
897
|
+
/** Operation for {@linkcode Scene.create} */
|
898
|
+
interface CreateOperation<Temporary extends boolean | undefined>
|
899
|
+
extends Document.Database.CreateOperation<Scene.Database.Create<Temporary>> {}
|
900
|
+
|
901
|
+
/** Operation for {@link Scene.update | `Scene#update`} */
|
902
|
+
interface UpdateOperation extends Document.Database.UpdateOperation<Update> {}
|
903
|
+
|
904
|
+
interface DeleteOperation extends Document.Database.DeleteOperation<Delete> {}
|
905
|
+
|
906
|
+
/** Options for {@linkcode Scene.get} */
|
907
|
+
interface GetOptions extends Document.Database.GetOptions {}
|
908
|
+
|
909
|
+
/** Options for {@link Scene._preCreate | `Scene#_preCreate`} */
|
910
|
+
interface PreCreateOptions extends Document.Database.PreCreateOptions<Create> {}
|
911
|
+
|
912
|
+
/** Options for {@link Scene._onCreate | `Scene#_onCreate`} */
|
913
|
+
interface OnCreateOptions extends Document.Database.CreateOptions<Create> {}
|
914
|
+
|
915
|
+
/** Operation for {@linkcode Scene._preCreateOperation} */
|
916
|
+
interface PreCreateOperation extends Document.Database.PreCreateOperationStatic<Scene.Database.Create> {}
|
917
|
+
|
918
|
+
/** Operation for {@link Scene._onCreateOperation | `Scene#_onCreateOperation`} */
|
919
|
+
interface OnCreateOperation extends Scene.Database.Create {}
|
920
|
+
|
921
|
+
/** Options for {@link Scene._preUpdate | `Scene#_preUpdate`} */
|
922
|
+
interface PreUpdateOptions extends Document.Database.PreUpdateOptions<Update> {}
|
923
|
+
|
924
|
+
/** Options for {@link Scene._onUpdate | `Scene#_onUpdate`} */
|
925
|
+
interface OnUpdateOptions extends Document.Database.UpdateOptions<Update> {}
|
926
|
+
|
927
|
+
/** Operation for {@linkcode Scene._preUpdateOperation} */
|
928
|
+
interface PreUpdateOperation extends Scene.Database.Update {}
|
929
|
+
|
930
|
+
/** Operation for {@link Scene._onUpdateOperation | `Scene._preUpdateOperation`} */
|
931
|
+
interface OnUpdateOperation extends Scene.Database.Update {}
|
932
|
+
|
933
|
+
/** Options for {@link Scene._preDelete | `Scene#_preDelete`} */
|
934
|
+
interface PreDeleteOptions extends Document.Database.PreDeleteOperationInstance<Delete> {}
|
935
|
+
|
936
|
+
/** Options for {@link Scene._onDelete | `Scene#_onDelete`} */
|
937
|
+
interface OnDeleteOptions extends Document.Database.DeleteOptions<Delete> {}
|
938
|
+
|
939
|
+
/** Options for {@link Scene._preDeleteOperation | `Scene#_preDeleteOperation`} */
|
940
|
+
interface PreDeleteOperation extends Scene.Database.Delete {}
|
941
|
+
|
942
|
+
/** Options for {@link Scene._onDeleteOperation | `Scene#_onDeleteOperation`} */
|
943
|
+
interface OnDeleteOperation extends Scene.Database.Delete {}
|
944
|
+
|
945
|
+
/** Context for {@linkcode Scene._onDeleteOperation} */
|
946
|
+
interface OnDeleteDocumentsContext extends Document.ModificationContext<Scene.Parent> {}
|
947
|
+
|
948
|
+
/** Context for {@linkcode Scene._onCreateDocuments} */
|
949
|
+
interface OnCreateDocumentsContext extends Document.ModificationContext<Scene.Parent> {}
|
950
|
+
|
951
|
+
/** Context for {@linkcode Scene._onUpdateDocuments} */
|
952
|
+
interface OnUpdateDocumentsContext extends Document.ModificationContext<Scene.Parent> {}
|
953
|
+
|
954
|
+
/**
|
955
|
+
* Options for {@link Scene._preCreateDescendantDocuments | `Scene#_preCreateDescendantDocuments`}
|
956
|
+
* and {@link Scene._onCreateDescendantDocuments | `Scene#_onCreateDescendantDocuments`}
|
957
|
+
*/
|
958
|
+
interface CreateOptions extends Document.Database.CreateOptions<Scene.Database.Create> {}
|
959
|
+
|
960
|
+
/**
|
961
|
+
* Options for {@link Scene._preUpdateDescendantDocuments | `Scene#_preUpdateDescendantDocuments`}
|
962
|
+
* and {@link Scene._onUpdateDescendantDocuments | `Scene#_onUpdateDescendantDocuments`}
|
963
|
+
*/
|
964
|
+
interface UpdateOptions extends Document.Database.UpdateOptions<Scene.Database.Update> {}
|
965
|
+
|
966
|
+
/**
|
967
|
+
* Options for {@link Scene._preDeleteDescendantDocuments | `Scene#_preDeleteDescendantDocuments`}
|
968
|
+
* and {@link Scene._onDeleteDescendantDocuments | `Scene#_onDeleteDescendantDocuments`}
|
969
|
+
*/
|
970
|
+
interface DeleteOptions extends Document.Database.DeleteOptions<Scene.Database.Delete> {}
|
971
|
+
|
972
|
+
/**
|
973
|
+
* Create options for {@linkcode Scene.createDialog}.
|
974
|
+
*/
|
975
|
+
interface DialogCreateOptions extends InexactPartial<Create> {}
|
976
|
+
}
|
977
|
+
|
978
|
+
/**
|
979
|
+
* The flags that are available for this document in the form `{ [scope: string]: { [key: string]: unknown } }`.
|
980
|
+
*/
|
981
|
+
interface Flags extends Document.ConfiguredFlagsForName<Name> {}
|
982
|
+
|
983
|
+
namespace Flags {
|
984
|
+
/**
|
985
|
+
* The valid scopes for the flags on this document e.g. `"core"` or `"dnd5e"`.
|
986
|
+
*/
|
987
|
+
type Scope = Document.FlagKeyOf<Flags>;
|
988
|
+
|
989
|
+
/**
|
990
|
+
* The valid keys for a certain scope for example if the scope is "core" then a valid key may be `"sheetLock"` or `"viewMode"`.
|
991
|
+
*/
|
992
|
+
type Key<Scope extends Flags.Scope> = Document.FlagKeyOf<Document.FlagGetKey<Flags, Scope>>;
|
993
|
+
|
994
|
+
/**
|
995
|
+
* Gets the type of a particular flag given a `Scope` and a `Key`.
|
996
|
+
*/
|
997
|
+
type Get<Scope extends Flags.Scope, Key extends Flags.Key<Scope>> = Document.GetFlag<Name, Scope, Key>;
|
998
|
+
}
|
999
|
+
|
1000
|
+
interface DropData extends Document.Internal.DropData<Name> {}
|
1001
|
+
interface DropDataOptions extends Document.DropDataOptions {}
|
1002
|
+
|
1003
|
+
interface DefaultNameContext extends Document.DefaultNameContext<Name, Parent> {}
|
1004
|
+
|
1005
|
+
interface CreateDialogData extends Document.CreateDialogData<CreateData> {}
|
1006
|
+
interface CreateDialogOptions extends Document.CreateDialogOptions<Name> {}
|
1007
|
+
|
1008
|
+
type PreCreateDescendantDocumentsArgs =
|
1009
|
+
| Document.PreCreateDescendantDocumentsArgs<Scene.Stored, Scene.DirectDescendant, Scene.Metadata.Embedded>
|
1010
|
+
| TokenDocument.PreCreateDescendantDocumentsArgs
|
1011
|
+
| RegionDocument.PreCreateDescendantDocumentsArgs;
|
1012
|
+
|
1013
|
+
type OnCreateDescendantDocumentsArgs =
|
1014
|
+
| Document.OnCreateDescendantDocumentsArgs<Scene.Stored, Scene.DirectDescendant, Scene.Metadata.Embedded>
|
1015
|
+
| TokenDocument.OnCreateDescendantDocumentsArgs
|
1016
|
+
| RegionDocument.OnCreateDescendantDocumentsArgs;
|
1017
|
+
|
1018
|
+
type PreUpdateDescendantDocumentsArgs =
|
1019
|
+
| Document.PreUpdateDescendantDocumentsArgs<Scene.Stored, Scene.DirectDescendant, Scene.Metadata.Embedded>
|
1020
|
+
| TokenDocument.PreUpdateDescendantDocumentsArgs
|
1021
|
+
| RegionDocument.PreUpdateDescendantDocumentsArgs;
|
1022
|
+
|
1023
|
+
type OnUpdateDescendantDocumentsArgs =
|
1024
|
+
| Document.OnUpdateDescendantDocumentsArgs<Scene.Stored, Scene.DirectDescendant, Scene.Metadata.Embedded>
|
1025
|
+
| TokenDocument.OnUpdateDescendantDocumentsArgs
|
1026
|
+
| RegionDocument.OnUpdateDescendantDocumentsArgs;
|
1027
|
+
|
1028
|
+
type PreDeleteDescendantDocumentsArgs =
|
1029
|
+
| Document.PreDeleteDescendantDocumentsArgs<Scene.Stored, Scene.DirectDescendant, Scene.Metadata.Embedded>
|
1030
|
+
| TokenDocument.PreDeleteDescendantDocumentsArgs
|
1031
|
+
| RegionDocument.PreDeleteDescendantDocumentsArgs;
|
1032
|
+
|
1033
|
+
type OnDeleteDescendantDocumentsArgs =
|
1034
|
+
| Document.OnDeleteDescendantDocumentsArgs<Scene.Stored, Scene.DirectDescendant, Scene.Metadata.Embedded>
|
1035
|
+
| TokenDocument.OnDeleteDescendantDocumentsArgs
|
1036
|
+
| RegionDocument.OnDeleteDescendantDocumentsArgs;
|
1037
|
+
|
1038
|
+
interface Dimensions {
|
1039
|
+
/** The width of the canvas. */
|
1040
|
+
width: number;
|
1041
|
+
|
1042
|
+
/** The height of the canvas. */
|
1043
|
+
height: number;
|
1044
|
+
|
1045
|
+
/** The grid size. */
|
1046
|
+
size: number;
|
1047
|
+
|
1048
|
+
/** The canvas rectangle. */
|
1049
|
+
rect: Canvas.Rectangle;
|
1050
|
+
|
1051
|
+
/** The X coordinate of the scene rectangle within the larger canvas. */
|
1052
|
+
sceneX: number;
|
1053
|
+
|
1054
|
+
/** The Y coordinate of the scene rectangle within the larger canvas. */
|
1055
|
+
sceneY: number;
|
1056
|
+
|
1057
|
+
/** The width of the scene. */
|
1058
|
+
sceneWidth: number;
|
1059
|
+
|
1060
|
+
/** The height of the scene. */
|
1061
|
+
sceneHeight: number;
|
1062
|
+
|
1063
|
+
/** The scene rectangle. */
|
1064
|
+
sceneRect: Canvas.Rectangle;
|
1065
|
+
|
1066
|
+
/** The number of distance units in a single grid space. */
|
1067
|
+
distance: number;
|
1068
|
+
|
1069
|
+
/** The factor to convert distance units to pixels */
|
1070
|
+
distancePixels: number;
|
1071
|
+
|
1072
|
+
/** The units of distance */
|
1073
|
+
units: string;
|
1074
|
+
|
1075
|
+
/** The aspect ratio of the scene rectangle. */
|
1076
|
+
ratio: number;
|
1077
|
+
|
1078
|
+
/** The length of the longest line that can be drawn on the canvas. */
|
1079
|
+
maxR: number;
|
1080
|
+
|
1081
|
+
/** The number of grid rows on the canvas */
|
1082
|
+
rows: number;
|
1083
|
+
|
1084
|
+
/** The number of grid columns on the canvas */
|
1085
|
+
columns: number;
|
1086
|
+
}
|
1087
|
+
|
1088
|
+
interface _ThumbnailCreationData {
|
1089
|
+
/**
|
1090
|
+
* A background image to use for thumbnail creation, otherwise the current scene
|
1091
|
+
* background is used.
|
1092
|
+
*
|
1093
|
+
* @remarks This cannot be `null` because Foundry writes `const newImage = img !== undefined;`.
|
1094
|
+
*/
|
1095
|
+
img: string;
|
1096
|
+
|
1097
|
+
/**
|
1098
|
+
* The desired thumbnail width. Default is 300px
|
1099
|
+
* @defaultValue `300`
|
1100
|
+
*/
|
1101
|
+
width: number | null;
|
1102
|
+
|
1103
|
+
/**
|
1104
|
+
* The desired thumbnail height. Default is 100px;
|
1105
|
+
* @defaultValue `100`
|
1106
|
+
*/
|
1107
|
+
height: number | null;
|
1108
|
+
|
1109
|
+
/**
|
1110
|
+
* Which image format should be used? image/png, image/jpeg, or image/webp
|
1111
|
+
* @defaultValue `"image/webp"`
|
1112
|
+
*
|
1113
|
+
* @remarks Foundry writes `image/jpg` but this functions the same as `image/png`.
|
1114
|
+
* The correct MIME type is `image/jpeg`.
|
1115
|
+
*/
|
1116
|
+
format: foundry.helpers.media.ImageHelper.IMAGE_MIME_TYPES;
|
1117
|
+
|
1118
|
+
/**
|
1119
|
+
* What compression quality should be used for jpeg or webp, between 0 and 1
|
1120
|
+
* @defaultValue `0.8`
|
1121
|
+
*/
|
1122
|
+
quality: number;
|
1123
|
+
}
|
1124
|
+
|
1125
|
+
interface ThumbnailCreationData extends InexactPartial<_ThumbnailCreationData> {}
|
1126
|
+
|
1127
|
+
/**
|
1128
|
+
* The arguments to construct the document.
|
1129
|
+
*
|
1130
|
+
* @deprecated - Writing the signature directly has helped reduce circularities and therefore is
|
1131
|
+
* now recommended.
|
1132
|
+
*/
|
1133
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
1134
|
+
type ConstructorArgs = Document.ConstructorParameters<CreateData, Parent>;
|
1135
|
+
}
|
1136
|
+
|
1137
|
+
/**
|
1138
|
+
* The client-side Scene document which extends the common BaseScene model.
|
1139
|
+
*
|
1140
|
+
* @see {@linkcode Scenes} The world-level collection of Scene documents
|
1141
|
+
* @see {@linkcode SceneConfig} The Scene configuration application
|
1142
|
+
*/
|
1143
|
+
declare class Scene extends foundry.documents.BaseScene.Internal.ClientDocument {
|
1144
|
+
/**
|
1145
|
+
* @param data - Initial data from which to construct the `Scene`
|
1146
|
+
* @param context - Construction context options
|
1147
|
+
*/
|
1148
|
+
constructor(data: Scene.CreateData, context?: Scene.ConstructionContext);
|
1149
|
+
|
1150
|
+
/**
|
1151
|
+
* Track the viewed position of each scene (while in memory only, not persisted)
|
1152
|
+
* When switching back to a previously viewed scene, we can automatically pan to the previous position.
|
1153
|
+
* @defaultValue `{}`
|
1154
|
+
* @internal
|
1155
|
+
* @remarks This is intentionally public because it is used in Canvas._initializeCanvasPosition() and Canvas.pan()
|
1156
|
+
*/
|
1157
|
+
_viewPosition: Canvas.ViewPosition;
|
1158
|
+
|
1159
|
+
/**
|
1160
|
+
* Track whether the scene is the active view
|
1161
|
+
* @defaultValue `this.active`
|
1162
|
+
* @internal
|
1163
|
+
*/
|
1164
|
+
protected _view: boolean;
|
1165
|
+
|
1166
|
+
/**
|
1167
|
+
* The grid instance.
|
1168
|
+
*/
|
1169
|
+
// Note: Foundry overrides the schema to set `grid` to a grid subclass in `Scene.#getGrid`
|
1170
|
+
grid: foundry.grid.BaseGrid;
|
1171
|
+
|
1172
|
+
/**
|
1173
|
+
* Determine the canvas dimensions this Scene would occupy, if rendered
|
1174
|
+
* @defaultValue `{}`
|
1175
|
+
* @remarks Technically `undefined` prior to the first time {@link Scene.prepareBaseData | `Scene#prepareBaseData`} is called
|
1176
|
+
*/
|
1177
|
+
dimensions: Scene.Dimensions;
|
1178
|
+
|
1179
|
+
/**
|
1180
|
+
* Provide a thumbnail image path used to represent this document.
|
1181
|
+
*/
|
1182
|
+
get thumbnail(): string | null;
|
1183
|
+
|
1184
|
+
/**
|
1185
|
+
* A convenience accessor for whether the Scene is currently viewed
|
1186
|
+
*/
|
1187
|
+
get isView(): boolean;
|
1188
|
+
|
1189
|
+
/**
|
1190
|
+
* Pull the specified users to this Scene.
|
1191
|
+
* @param users - An array of User documents or IDs.
|
1192
|
+
*/
|
1193
|
+
pullUsers(users?: (User.Implementation | string)[]): void;
|
1194
|
+
|
1195
|
+
/**
|
1196
|
+
* Set this scene as currently active
|
1197
|
+
* @returns A Promise which resolves to the current scene once it has been successfully activated
|
1198
|
+
*/
|
1199
|
+
activate(): Promise<this | undefined>;
|
1200
|
+
|
1201
|
+
/**
|
1202
|
+
* Set this scene as the current view
|
1203
|
+
* @remarks If `canvas.loading`, returns a `ui.notifications.warn`, thence the `| number` in the return type
|
1204
|
+
*/
|
1205
|
+
view(): Promise<this | number>;
|
1206
|
+
|
1207
|
+
/**
|
1208
|
+
* Unview the current Scene, clearing the game canvas.
|
1209
|
+
*/
|
1210
|
+
unview(): Promise<this | undefined>;
|
1211
|
+
|
1212
|
+
/**
|
1213
|
+
* @param createData - (default: `{}`)
|
1214
|
+
* @param options - (default: `{}`)
|
1215
|
+
*/
|
1216
|
+
override clone<Save extends boolean | null | undefined = false>(
|
1217
|
+
data?: Scene.CreateData,
|
1218
|
+
context?: Document.CloneContext<Save>,
|
1219
|
+
): Document.Clone<this, Save>;
|
1220
|
+
|
1221
|
+
override reset(): void;
|
1222
|
+
|
1223
|
+
/**
|
1224
|
+
* @remarks If `source` is falsey, and the grid is hexagonal with the `legacyHex` flag set,
|
1225
|
+
* does some conversion on `object.grid.size` (leaving it numeric, no type change) before returning
|
1226
|
+
*/
|
1227
|
+
override toObject(source?: boolean | null): fields.SchemaField.SourceData<Scene.Schema>;
|
1228
|
+
|
1229
|
+
/**
|
1230
|
+
* @remarks
|
1231
|
+
* - Transforms `this.grid` from source data to a {@linkcode BaseGrid} (or subclass) instance
|
1232
|
+
* - Sets `this.dimensions` to `this.getDimensions()`
|
1233
|
+
* - If a `playlist` is set, attempts to initialize `this.playlistSound` to a Document reference (it's an `idOnly` field in the schema)
|
1234
|
+
* - Sets `this.foregroundElevation` to `this.grid.distance * 4` if its otherwise falsey
|
1235
|
+
*/
|
1236
|
+
override prepareBaseData(): void;
|
1237
|
+
|
1238
|
+
/**
|
1239
|
+
* Get the Canvas dimensions which would be used to display this Scene.
|
1240
|
+
* Apply padding to enlarge the playable space and round to the nearest 2x grid size to ensure symmetry.
|
1241
|
+
* The rounding accomplishes that the padding buffer around the map always contains whole grid spaces.
|
1242
|
+
*/
|
1243
|
+
getDimensions(): Scene.Dimensions;
|
1244
|
+
|
1245
|
+
/** @remarks If the scene has a `journal`, forwards to that journal's `#_onClickDocumentLink` */
|
1246
|
+
override _onClickDocumentLink(event: MouseEvent): ClientDocument.OnClickDocumentLinkReturn;
|
1247
|
+
|
1248
|
+
/**
|
1249
|
+
* Clear the movement history of all Tokens within this Scene.
|
1250
|
+
*/
|
1251
|
+
clearMovementHistories(): Promise<void>;
|
1252
|
+
|
1253
|
+
/**
|
1254
|
+
* For all Tokens in this Scene identify the Regions that each Token is contained in and update the regions of each
|
1255
|
+
* Token accordingly.
|
1256
|
+
* or
|
1257
|
+
* For the given Tokens in this Scene identify the Regions that each Token is contained in and update the regions of
|
1258
|
+
* each Token accordingly.
|
1259
|
+
*
|
1260
|
+
* This function doesn't need to be called by the systems/modules unless
|
1261
|
+
* {@link TokenDocument.testInsideRegion | `foundry.documents.TokenDocument#testInsideRegion`} is overridden and non-Token properties other than
|
1262
|
+
* `Scene#grid.type` and `Scene#grid.size` change that are used in the override of
|
1263
|
+
* {@link TokenDocument.TestInsideRegion | `foundry.documents.TokenDocument#testInsideRegion`}.
|
1264
|
+
* @param tokens - The Tokens whose regions should be updates
|
1265
|
+
* @returns The array of Tokens whose regions changed
|
1266
|
+
*/
|
1267
|
+
updateTokenRegions(tokens?: Iterable<TokenDocument.Implementation>): Promise<TokenDocument.Implementation[]>;
|
1268
|
+
|
1269
|
+
/** @deprecated Foundry made this method truly private in v13 (this warning will be removed in v14) */
|
1270
|
+
protected _repositionObject(sceneUpdateData: never): never;
|
1271
|
+
|
1272
|
+
// _preCreate, _preCreateOperation, _onCreate, and _preUpdate, _onUpdateOperation, _onUpdate, and _onDelete are all overridden but with no signature changes.
|
1273
|
+
// For type simplicity they are left off. These methods historically have been the source of a large amount of computation from tsc.
|
1274
|
+
|
1275
|
+
/**
|
1276
|
+
* Handle Scene activation workflow if the active state is changed to true
|
1277
|
+
* @param active - Is the scene now active?
|
1278
|
+
*/
|
1279
|
+
protected _onActivate(active: boolean): Promise<this | Canvas>;
|
1280
|
+
|
1281
|
+
/**
|
1282
|
+
* @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
|
1283
|
+
* this method must be overridden like so:
|
1284
|
+
* ```typescript
|
1285
|
+
* class SwadeScene extends Scene {
|
1286
|
+
* protected override _preCreateDescendantDocuments(...args: Scene.PreCreateDescendantDocumentsArgs) {
|
1287
|
+
* super._preCreateDescendantDocuments(...args);
|
1288
|
+
*
|
1289
|
+
* const [parent, collection, data, options, userId] = args;
|
1290
|
+
* if (collection === "tokens") {
|
1291
|
+
* options; // Will be narrowed.
|
1292
|
+
* }
|
1293
|
+
* }
|
1294
|
+
* }
|
1295
|
+
* ```
|
1296
|
+
*/
|
1297
|
+
protected override _preCreateDescendantDocuments(...args: Scene.PreCreateDescendantDocumentsArgs): void;
|
1298
|
+
|
1299
|
+
/**
|
1300
|
+
* @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
|
1301
|
+
* this method must be overridden like so:
|
1302
|
+
* ```typescript
|
1303
|
+
* class LancerScene extends Scene {
|
1304
|
+
* protected override _preUpdateDescendantDocuments(...args: Scene.OnUpdateDescendantDocuments) {
|
1305
|
+
* super._preUpdateDescendantDocuments(...args);
|
1306
|
+
*
|
1307
|
+
* const [parent, collection, changes, options, userId] = args;
|
1308
|
+
* if (collection === "tokens") {
|
1309
|
+
* options; // Will be narrowed.
|
1310
|
+
* }
|
1311
|
+
* }
|
1312
|
+
* }
|
1313
|
+
* ```
|
1314
|
+
*/
|
1315
|
+
protected override _preUpdateDescendantDocuments(...args: Scene.PreUpdateDescendantDocumentsArgs): void;
|
1316
|
+
|
1317
|
+
/**
|
1318
|
+
* @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
|
1319
|
+
* this method must be overridden like so:
|
1320
|
+
* ```typescript
|
1321
|
+
* class Ptr2eScene extends Scene {
|
1322
|
+
* protected override _onUpdateDescendantDocuments(...args: Scene.OnUpdateDescendantDocumentsArgs) {
|
1323
|
+
* super._onUpdateDescendantDocuments(...args);
|
1324
|
+
*
|
1325
|
+
* const [parent, collection, documents, changes, options, userId] = args;
|
1326
|
+
* if (collection === "tokens") {
|
1327
|
+
* options; // Will be narrowed.
|
1328
|
+
* }
|
1329
|
+
* }
|
1330
|
+
* }
|
1331
|
+
* ```
|
1332
|
+
*/
|
1333
|
+
protected override _onUpdateDescendantDocuments(...args: Scene.OnUpdateDescendantDocumentsArgs): void;
|
1334
|
+
|
1335
|
+
/**
|
1336
|
+
* @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
|
1337
|
+
* this method must be overridden like so:
|
1338
|
+
* ```typescript
|
1339
|
+
* class KultScene extends Scene {
|
1340
|
+
* protected override _preDeleteDescendantDocuments(...args: Scene.PreDeleteDescendantDocumentsArgs) {
|
1341
|
+
* super._preDeleteDescendantDocuments(...args);
|
1342
|
+
*
|
1343
|
+
* const [parent, collection, ids, options, userId] = args;
|
1344
|
+
* if (collection === "tokens") {
|
1345
|
+
* options; // Will be narrowed.
|
1346
|
+
* }
|
1347
|
+
* }
|
1348
|
+
* }
|
1349
|
+
* ```
|
1350
|
+
*/
|
1351
|
+
protected override _preDeleteDescendantDocuments(...args: Scene.PreDeleteDescendantDocumentsArgs): void;
|
1352
|
+
|
1353
|
+
override toCompendium<Options extends ClientDocument.ToCompendiumOptions | undefined = undefined>(
|
1354
|
+
pack?: foundry.documents.collections.CompendiumCollection.Any | null,
|
1355
|
+
options?: Options,
|
1356
|
+
): ClientDocument.ToCompendiumReturnType<"Scene", Options>;
|
1357
|
+
|
1358
|
+
/**
|
1359
|
+
* Create a 300px by 100px thumbnail image for this scene background
|
1360
|
+
* @param data - (default: `{}`)
|
1361
|
+
* @returns The created thumbnail data.
|
1362
|
+
*/
|
1363
|
+
createThumbnail(data?: Scene.ThumbnailCreationData): Promise<ImageHelper.ThumbnailReturn>;
|
1364
|
+
|
1365
|
+
/*
|
1366
|
+
* After this point these are not really overridden methods.
|
1367
|
+
* They are here because Foundry's documents are complex and have lots of edge cases.
|
1368
|
+
* There are DRY ways of representing this but this ends up being harder to understand
|
1369
|
+
* for end users extending these functions, especially for static methods. There are also a
|
1370
|
+
* number of methods that don't make sense to call directly on `Document` like `createDocuments`,
|
1371
|
+
* as there is no data that can safely construct every possible document. Finally keeping definitions
|
1372
|
+
* separate like this helps against circularities.
|
1373
|
+
*/
|
1374
|
+
|
1375
|
+
// ClientDocument overrides
|
1376
|
+
|
1377
|
+
// Other Descendant Document operations are actually overridden above
|
1378
|
+
|
1379
|
+
/**
|
1380
|
+
* @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
|
1381
|
+
* this method must be overridden like so:
|
1382
|
+
* ```typescript
|
1383
|
+
* class GurpsScene extends Scene {
|
1384
|
+
* protected override _onCreateDescendantDocuments(...args: Scene.OnCreateDescendantDocumentsArgs) {
|
1385
|
+
* super._onCreateDescendantDocuments(...args);
|
1386
|
+
*
|
1387
|
+
* const [parent, collection, documents, data, options, userId] = args;
|
1388
|
+
* if (collection === "tokens") {
|
1389
|
+
* options; // Will be narrowed.
|
1390
|
+
* }
|
1391
|
+
* }
|
1392
|
+
* }
|
1393
|
+
* ```
|
1394
|
+
*/
|
1395
|
+
protected override _onCreateDescendantDocuments(...args: Scene.OnCreateDescendantDocumentsArgs): void;
|
1396
|
+
|
1397
|
+
/**
|
1398
|
+
* @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
|
1399
|
+
* this method must be overridden like so:
|
1400
|
+
* ```typescript
|
1401
|
+
* class BladesScene extends Scene {
|
1402
|
+
* protected override _onDeleteDescendantDocuments(...args: Scene.OnUpdateDescendantDocuments) {
|
1403
|
+
* super._onDeleteDescendantDocuments(...args);
|
1404
|
+
*
|
1405
|
+
* const [parent, collection, documents, ids, options, userId] = args;
|
1406
|
+
* if (collection === "tokens") {
|
1407
|
+
* options; // Will be narrowed.
|
1408
|
+
* }
|
1409
|
+
* }
|
1410
|
+
* }
|
1411
|
+
* ```
|
1412
|
+
*/
|
1413
|
+
protected override _onDeleteDescendantDocuments(...args: Scene.OnDeleteDescendantDocumentsArgs): void;
|
1414
|
+
|
1415
|
+
static override defaultName(context?: Scene.DefaultNameContext): string;
|
1416
|
+
|
1417
|
+
static override createDialog(
|
1418
|
+
data?: Scene.CreateDialogData,
|
1419
|
+
createOptions?: Scene.Database.DialogCreateOptions,
|
1420
|
+
options?: Scene.CreateDialogOptions,
|
1421
|
+
): Promise<Scene.Stored | null | undefined>;
|
1422
|
+
|
1423
|
+
override deleteDialog(
|
1424
|
+
options?: InexactPartial<foundry.applications.api.DialogV2.ConfirmConfig>,
|
1425
|
+
operation?: Document.Database.DeleteOperationForName<"Scene">,
|
1426
|
+
): Promise<this | false | null | undefined>;
|
1427
|
+
|
1428
|
+
static override fromDropData(
|
1429
|
+
data: Scene.DropData,
|
1430
|
+
options?: Scene.DropDataOptions,
|
1431
|
+
): Promise<Scene.Implementation | undefined>;
|
1432
|
+
|
1433
|
+
static override fromImport(
|
1434
|
+
source: Scene.Source,
|
1435
|
+
context?: Document.FromImportContext<Scene.Parent> | null,
|
1436
|
+
): Promise<Scene.Implementation>;
|
1437
|
+
|
1438
|
+
#Scene: true;
|
1439
|
+
}
|
1440
|
+
|
1441
|
+
export default Scene;
|