@7h3laughingman/foundry-types 13.351.0
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/LICENSE.md +21 -0
- package/README.md +3 -0
- package/package.json +76 -0
- package/src/client/_module.d.mts +103 -0
- package/src/client/_types.d.mts +900 -0
- package/src/client/applications/_module.d.mts +27 -0
- package/src/client/applications/_types.d.mts +192 -0
- package/src/client/applications/api/_module.d.mts +8 -0
- package/src/client/applications/api/application.d.mts +456 -0
- package/src/client/applications/api/category-browser.d.mts +78 -0
- package/src/client/applications/api/dialog.d.mts +213 -0
- package/src/client/applications/api/document-sheet.d.mts +148 -0
- package/src/client/applications/api/handlebars-application.d.mts +120 -0
- package/src/client/applications/apps/_module.d.mts +10 -0
- package/src/client/applications/apps/av/_module.d.mts +2 -0
- package/src/client/applications/apps/av/camera-popout.d.mts +53 -0
- package/src/client/applications/apps/av/cameras.d.mts +235 -0
- package/src/client/applications/apps/combat-tracker-config.d.mts +27 -0
- package/src/client/applications/apps/compendium-art-config.d.mts +17 -0
- package/src/client/applications/apps/document-ownership.d.mts +17 -0
- package/src/client/applications/apps/document-sheet-config.d.mts +144 -0
- package/src/client/applications/apps/file-picker.d.mts +321 -0
- package/src/client/applications/apps/grid-config.d.mts +33 -0
- package/src/client/applications/apps/image-popout.d.mts +92 -0
- package/src/client/applications/apps/permission-config.d.mts +24 -0
- package/src/client/applications/dice/_module.d.mts +1 -0
- package/src/client/applications/dice/roll-resolver.d.mts +92 -0
- package/src/client/applications/elements/_module.d.mts +19 -0
- package/src/client/applications/elements/codemirror/element.d.mts +73 -0
- package/src/client/applications/elements/color-picker.d.mts +14 -0
- package/src/client/applications/elements/document-embed.d.mts +14 -0
- package/src/client/applications/elements/document-tags.d.mts +50 -0
- package/src/client/applications/elements/enriched-content.d.mts +31 -0
- package/src/client/applications/elements/file-picker.d.mts +59 -0
- package/src/client/applications/elements/form-element.d.mts +105 -0
- package/src/client/applications/elements/hue-slider.d.mts +35 -0
- package/src/client/applications/elements/multi-select.d.mts +89 -0
- package/src/client/applications/elements/prosemirror-editor.d.mts +32 -0
- package/src/client/applications/elements/range-picker.d.mts +23 -0
- package/src/client/applications/elements/secret-block.d.mts +28 -0
- package/src/client/applications/elements/string-tags.d.mts +50 -0
- package/src/client/applications/forms/fields.d.mts +132 -0
- package/src/client/applications/handlebars.d.mts +303 -0
- package/src/client/applications/hud/_module.d.mts +5 -0
- package/src/client/applications/hud/container.d.mts +38 -0
- package/src/client/applications/hud/drawing-hud.d.mts +14 -0
- package/src/client/applications/hud/placeable-hud.d.mts +72 -0
- package/src/client/applications/hud/tile-hud.d.mts +21 -0
- package/src/client/applications/hud/token-hud.d.mts +69 -0
- package/src/client/applications/settings/_module.d.mts +2 -0
- package/src/client/applications/settings/config.d.mts +38 -0
- package/src/client/applications/settings/menus/_module.d.mts +6 -0
- package/src/client/applications/settings/menus/av-config.d.mts +37 -0
- package/src/client/applications/settings/menus/default-sheets-config.d.mts +23 -0
- package/src/client/applications/settings/menus/dice-config.d.mts +23 -0
- package/src/client/applications/settings/menus/font-config.d.mts +145 -0
- package/src/client/applications/settings/menus/prototype-overrides.d.mts +20 -0
- package/src/client/applications/settings/menus/ui-config.d.mts +40 -0
- package/src/client/applications/sheets/_module.d.mts +9 -0
- package/src/client/applications/sheets/combatant-config.d.mts +21 -0
- package/src/client/applications/sheets/item-sheet.d.mts +13 -0
- package/src/client/applications/sheets/scene-config.d.mts +50 -0
- package/src/client/applications/sheets/template-config.d.mts +19 -0
- package/src/client/applications/sheets/token/mixin.mts +182 -0
- package/src/client/applications/sheets/token/prototype-config.d.mts +75 -0
- package/src/client/applications/sheets/token/token-config.d.mts +62 -0
- package/src/client/applications/sheets/user-config.d.mts +27 -0
- package/src/client/applications/sidebar/_module.d.mts +5 -0
- package/src/client/applications/sidebar/apps/_module.d.mts +9 -0
- package/src/client/applications/sidebar/apps/chat-popout.d.mts +45 -0
- package/src/client/applications/sidebar/apps/compendium.d.mts +65 -0
- package/src/client/applications/sidebar/apps/controls-config.d.mts +29 -0
- package/src/client/applications/sidebar/apps/folder-export.d.mts +11 -0
- package/src/client/applications/sidebar/apps/invitation-links.d.mts +10 -0
- package/src/client/applications/sidebar/apps/module-management.d.mts +65 -0
- package/src/client/applications/sidebar/apps/support-details.d.mts +72 -0
- package/src/client/applications/sidebar/apps/tours-management.d.mts +16 -0
- package/src/client/applications/sidebar/apps/world-config.d.mts +38 -0
- package/src/client/applications/sidebar/document-directory.d.mts +327 -0
- package/src/client/applications/sidebar/sidebar-tab.d.mts +89 -0
- package/src/client/applications/sidebar/sidebar.d.mts +93 -0
- package/src/client/applications/sidebar/tabs/_module.d.mts +14 -0
- package/src/client/applications/sidebar/tabs/actor-directory.d.mts +26 -0
- package/src/client/applications/sidebar/tabs/cards-directory.d.mts +19 -0
- package/src/client/applications/sidebar/tabs/chat.d.mts +271 -0
- package/src/client/applications/sidebar/tabs/combat-tracker.d.mts +198 -0
- package/src/client/applications/sidebar/tabs/compendium-directory.d.mts +289 -0
- package/src/client/applications/sidebar/tabs/item-directory.d.mts +24 -0
- package/src/client/applications/sidebar/tabs/journal-directory.d.mts +19 -0
- package/src/client/applications/sidebar/tabs/macro-directory.d.mts +12 -0
- package/src/client/applications/sidebar/tabs/playlist-directory.d.mts +267 -0
- package/src/client/applications/sidebar/tabs/roll-table-directory.d.mts +19 -0
- package/src/client/applications/sidebar/tabs/scene-directory.d.mts +26 -0
- package/src/client/applications/sidebar/tabs/settings.d.mts +16 -0
- package/src/client/applications/ui/_module.d.mts +9 -0
- package/src/client/applications/ui/game-pause.d.mts +15 -0
- package/src/client/applications/ui/hotbar.d.mts +86 -0
- package/src/client/applications/ui/main-menu.d.mts +48 -0
- package/src/client/applications/ui/notifications.d.mts +168 -0
- package/src/client/applications/ui/players.d.mts +92 -0
- package/src/client/applications/ui/region-legend.d.mts +47 -0
- package/src/client/applications/ui/scene-controls.d.mts +138 -0
- package/src/client/applications/ui/scene-navigation.d.mts +61 -0
- package/src/client/applications/ux/_module.d.mts +11 -0
- package/src/client/applications/ux/context-menu.d.mts +202 -0
- package/src/client/applications/ux/drag-drop.d.mts +131 -0
- package/src/client/applications/ux/draggable.d.mts +108 -0
- package/src/client/applications/ux/form-data-extended.d.mts +76 -0
- package/src/client/applications/ux/html-secret.d.mts +61 -0
- package/src/client/applications/ux/prosemirror-editor.d.mts +173 -0
- package/src/client/applications/ux/search-filter.d.mts +119 -0
- package/src/client/applications/ux/tabs.d.mts +94 -0
- package/src/client/applications/ux/text-editor.d.mts +329 -0
- package/src/client/appv1/_module.d.mts +2 -0
- package/src/client/appv1/api/_module.d.mts +8 -0
- package/src/client/appv1/api/application-v1.d.mts +388 -0
- package/src/client/appv1/api/dialog-v1.d.mts +191 -0
- package/src/client/appv1/api/document-sheet-v1.d.mts +96 -0
- package/src/client/appv1/api/form-application-v1.d.mts +203 -0
- package/src/client/appv1/sheets/_module.d.mts +9 -0
- package/src/client/appv1/sheets/actor-sheet.d.mts +129 -0
- package/src/client/appv1/sheets/adventure-importer.d.mts +43 -0
- package/src/client/appv1/sheets/item-sheet.d.mts +42 -0
- package/src/client/appv1/sheets/journal-page-sheet.d.mts +100 -0
- package/src/client/appv1/sheets/journal-sheet.d.mts +262 -0
- package/src/client/audio/_module.d.mts +9 -0
- package/src/client/audio/_types.d.mts +121 -0
- package/src/client/audio/biquad.d.mts +29 -0
- package/src/client/audio/cache.d.mts +58 -0
- package/src/client/audio/convolver.d.mts +50 -0
- package/src/client/audio/helper.d.mts +306 -0
- package/src/client/audio/sound.d.mts +289 -0
- package/src/client/audio/timeout.d.mts +71 -0
- package/src/client/av/_module.d.mts +7 -0
- package/src/client/av/client.d.mts +167 -0
- package/src/client/av/clients/_module.d.mts +1 -0
- package/src/client/av/clients/simplepeer.d.mts +123 -0
- package/src/client/av/master.d.mts +128 -0
- package/src/client/av/settings.d.mts +100 -0
- package/src/client/canvas/_module.d.mts +20 -0
- package/src/client/canvas/animation/_module.d.mts +5 -0
- package/src/client/canvas/animation/_types.d.mts +73 -0
- package/src/client/canvas/animation/canvas-animation.d.mts +114 -0
- package/src/client/canvas/animation/chat-bubbles.d.mts +58 -0
- package/src/client/canvas/animation/smooth-noise.d.mts +34 -0
- package/src/client/canvas/board.d.mts +413 -0
- package/src/client/canvas/containers/_module.d.mts +20 -0
- package/src/client/canvas/containers/_types.d.mts +21 -0
- package/src/client/canvas/containers/advanced/cached-container.d.mts +108 -0
- package/src/client/canvas/containers/advanced/full-canvas-mixin.d.mts +12 -0
- package/src/client/canvas/containers/advanced/full-container-mixin.d.mts +12 -0
- package/src/client/canvas/containers/advanced/unbound-container.d.mts +12 -0
- package/src/client/canvas/containers/elements/control-icon.d.mts +40 -0
- package/src/client/canvas/containers/elements/cursor.d.mts +37 -0
- package/src/client/canvas/containers/elements/door-control.d.mts +66 -0
- package/src/client/canvas/containers/elements/door-mesh.d.mts +127 -0
- package/src/client/canvas/containers/elements/grid-highlight.d.mts +25 -0
- package/src/client/canvas/containers/elements/grid-mesh.d.mts +34 -0
- package/src/client/canvas/containers/elements/particles/leaves.d.mts +15 -0
- package/src/client/canvas/containers/elements/particles/particle-effect.d.mts +45 -0
- package/src/client/canvas/containers/elements/point-source-mesh.d.mts +29 -0
- package/src/client/canvas/containers/elements/precise-text.d.mts +18 -0
- package/src/client/canvas/containers/elements/quad-mesh.d.mts +41 -0
- package/src/client/canvas/containers/elements/resize-handle.d.mts +61 -0
- package/src/client/canvas/containers/elements/sprite-mesh.d.mts +319 -0
- package/src/client/canvas/extensions/_module.d.mts +4 -0
- package/src/client/canvas/extensions/circle-extension.d.mts +4 -0
- package/src/client/canvas/extensions/graphics-extension.d.mts +5 -0
- package/src/client/canvas/extensions/polygon-extension.d.mts +4 -0
- package/src/client/canvas/extensions/rectangle-extension.d.mts +4 -0
- package/src/client/canvas/framebuffer-snapshot.d.mts +20 -0
- package/src/client/canvas/geometry/_module.d.mts +12 -0
- package/src/client/canvas/geometry/_types.d.mts +90 -0
- package/src/client/canvas/geometry/clockwise-sweep.d.mts +129 -0
- package/src/client/canvas/geometry/edges/_module.d.mts +5 -0
- package/src/client/canvas/geometry/edges/collision.d.mts +58 -0
- package/src/client/canvas/geometry/edges/edge.d.mts +144 -0
- package/src/client/canvas/geometry/edges/edges.d.mts +14 -0
- package/src/client/canvas/geometry/edges/vertex.d.mts +85 -0
- package/src/client/canvas/geometry/observable-transform.d.mts +28 -0
- package/src/client/canvas/geometry/quad-tree.d.mts +150 -0
- package/src/client/canvas/geometry/shapes/limited-angle-polygon.d.mts +69 -0
- package/src/client/canvas/geometry/shapes/polygon-mesher.d.mts +50 -0
- package/src/client/canvas/geometry/shapes/ray.d.mts +126 -0
- package/src/client/canvas/geometry/shapes/source-polygon.d.mts +161 -0
- package/src/client/canvas/geometry/unbound-transform.d.mts +9 -0
- package/src/client/canvas/geometry/weiler-atherton-clipping.d.mts +120 -0
- package/src/client/canvas/groups/_module.d.mts +10 -0
- package/src/client/canvas/groups/canvas-group-mixin.mts +95 -0
- package/src/client/canvas/groups/effects.d.mts +118 -0
- package/src/client/canvas/groups/environment.d.mts +79 -0
- package/src/client/canvas/groups/hidden.d.mts +42 -0
- package/src/client/canvas/groups/interface.d.mts +31 -0
- package/src/client/canvas/groups/overlay.d.mts +11 -0
- package/src/client/canvas/groups/primary.d.mts +223 -0
- package/src/client/canvas/groups/rendered.d.mts +7 -0
- package/src/client/canvas/groups/visibility.d.mts +154 -0
- package/src/client/canvas/interaction/_module.d.mts +15 -0
- package/src/client/canvas/interaction/_types.d.mts +67 -0
- package/src/client/canvas/interaction/mouse-handler.d.mts +231 -0
- package/src/client/canvas/interaction/ping/alert.d.mts +16 -0
- package/src/client/canvas/interaction/ping/arrow.d.mts +16 -0
- package/src/client/canvas/interaction/ping/chevron.d.mts +25 -0
- package/src/client/canvas/interaction/ping/ping.d.mts +35 -0
- package/src/client/canvas/interaction/ping/pulse.d.mts +28 -0
- package/src/client/canvas/interaction/render-flags.d.mts +69 -0
- package/src/client/canvas/interaction/ruler/base-ruler.d.mts +179 -0
- package/src/client/canvas/interaction/ruler/ruler.d.mts +56 -0
- package/src/client/canvas/layers/_module.d.mts +31 -0
- package/src/client/canvas/layers/_types.d.mts +89 -0
- package/src/client/canvas/layers/base/canvas-layer.d.mts +71 -0
- package/src/client/canvas/layers/base/interaction-layer.d.mts +176 -0
- package/src/client/canvas/layers/base/placeables-layer.d.mts +410 -0
- package/src/client/canvas/layers/controls.d.mts +181 -0
- package/src/client/canvas/layers/drawings.d.mts +75 -0
- package/src/client/canvas/layers/effects/background-effects.d.mts +32 -0
- package/src/client/canvas/layers/effects/coloration-effects.d.mts +23 -0
- package/src/client/canvas/layers/effects/darkness-effects.d.mts +14 -0
- package/src/client/canvas/layers/effects/illumination-effects.d.mts +72 -0
- package/src/client/canvas/layers/effects/weather-effects.d.mts +137 -0
- package/src/client/canvas/layers/grid.d.mts +112 -0
- package/src/client/canvas/layers/lighting.d.mts +59 -0
- package/src/client/canvas/layers/masks/depth.d.mts +53 -0
- package/src/client/canvas/layers/masks/occlusion.d.mts +84 -0
- package/src/client/canvas/layers/masks/vision.d.mts +44 -0
- package/src/client/canvas/layers/notes.d.mts +59 -0
- package/src/client/canvas/layers/regions.d.mts +70 -0
- package/src/client/canvas/layers/sounds.d.mts +190 -0
- package/src/client/canvas/layers/templates.d.mts +41 -0
- package/src/client/canvas/layers/tiles.d.mts +66 -0
- package/src/client/canvas/layers/tokens.d.mts +171 -0
- package/src/client/canvas/layers/walls.d.mts +99 -0
- package/src/client/canvas/loader.d.mts +135 -0
- package/src/client/canvas/perception/_module.d.mts +13 -0
- package/src/client/canvas/perception/_types.d.mts +61 -0
- package/src/client/canvas/perception/detection-mode.d.mts +122 -0
- package/src/client/canvas/perception/detection-modes/darkvision.d.mts +11 -0
- package/src/client/canvas/perception/detection-modes/invisibility-perception.d.mts +15 -0
- package/src/client/canvas/perception/detection-modes/light-perception.d.mts +18 -0
- package/src/client/canvas/perception/detection-modes/super-perception.d.mts +13 -0
- package/src/client/canvas/perception/detection-modes/tremor-perception.d.mts +13 -0
- package/src/client/canvas/perception/fog.d.mts +65 -0
- package/src/client/canvas/perception/perception-manager.d.mts +72 -0
- package/src/client/canvas/perception/vision-mode.d.mts +133 -0
- package/src/client/canvas/placeables/_module.d.mts +15 -0
- package/src/client/canvas/placeables/_types.d.mts +29 -0
- package/src/client/canvas/placeables/drawing.d.mts +106 -0
- package/src/client/canvas/placeables/light.d.mts +155 -0
- package/src/client/canvas/placeables/note.d.mts +61 -0
- package/src/client/canvas/placeables/placeable-object.d.mts +415 -0
- package/src/client/canvas/placeables/region.d.mts +129 -0
- package/src/client/canvas/placeables/regions/_module.d.mts +2 -0
- package/src/client/canvas/placeables/regions/geometry.d.mts +19 -0
- package/src/client/canvas/placeables/regions/mesh.d.mts +72 -0
- package/src/client/canvas/placeables/sound.d.mts +93 -0
- package/src/client/canvas/placeables/template.d.mts +164 -0
- package/src/client/canvas/placeables/tile.d.mts +189 -0
- package/src/client/canvas/placeables/token.d.mts +675 -0
- package/src/client/canvas/placeables/tokens/_module.d.mts +8 -0
- package/src/client/canvas/placeables/tokens/base-ruler.d.mts +68 -0
- package/src/client/canvas/placeables/tokens/ring-config.d.mts +201 -0
- package/src/client/canvas/placeables/tokens/ring-data.d.mts +56 -0
- package/src/client/canvas/placeables/tokens/ring.d.mts +194 -0
- package/src/client/canvas/placeables/tokens/ruler.d.mts +96 -0
- package/src/client/canvas/placeables/tokens/targets.d.mts +22 -0
- package/src/client/canvas/placeables/tokens/turn-marker-data.d.mts +52 -0
- package/src/client/canvas/placeables/tokens/turn-marker.d.mts +45 -0
- package/src/client/canvas/placeables/wall.d.mts +155 -0
- package/src/client/canvas/primary/_module.d.mts +7 -0
- package/src/client/canvas/primary/primary-canvas-container.d.mts +40 -0
- package/src/client/canvas/primary/primary-canvas-object.mts +215 -0
- package/src/client/canvas/primary/primary-graphics.d.mts +22 -0
- package/src/client/canvas/primary/primary-occludable-object.mts +139 -0
- package/src/client/canvas/primary/primary-particle-effect.d.mts +50 -0
- package/src/client/canvas/primary/primary-sprite-mesh.d.mts +127 -0
- package/src/client/canvas/rendering/_module.d.mts +5 -0
- package/src/client/canvas/rendering/batching/_module.d.mts +2 -0
- package/src/client/canvas/rendering/batching/batch-renderer.d.mts +71 -0
- package/src/client/canvas/rendering/batching/batch-shader-generator.d.mts +13 -0
- package/src/client/canvas/rendering/blend-modes.d.mts +37 -0
- package/src/client/canvas/rendering/filters/_module.d.mts +13 -0
- package/src/client/canvas/rendering/filters/base-filter.d.mts +28 -0
- package/src/client/canvas/rendering/filters/base-mask-filter.d.mts +14 -0
- package/src/client/canvas/rendering/filters/blur.d.mts +152 -0
- package/src/client/canvas/rendering/filters/effects-masking.d.mts +84 -0
- package/src/client/canvas/rendering/filters/environment.d.mts +22 -0
- package/src/client/canvas/rendering/filters/glow-overlay.d.mts +41 -0
- package/src/client/canvas/rendering/filters/invisibility.d.mts +11 -0
- package/src/client/canvas/rendering/filters/outline-overlay.d.mts +43 -0
- package/src/client/canvas/rendering/filters/smaa/_module.d.mts +4 -0
- package/src/client/canvas/rendering/filters/smaa/blend.d.mts +6 -0
- package/src/client/canvas/rendering/filters/smaa/edges.d.mts +11 -0
- package/src/client/canvas/rendering/filters/smaa/smaa.d.mts +102 -0
- package/src/client/canvas/rendering/filters/smaa/weights.d.mts +11 -0
- package/src/client/canvas/rendering/filters/transition.d.mts +97 -0
- package/src/client/canvas/rendering/filters/visibility.d.mts +46 -0
- package/src/client/canvas/rendering/filters/vision-mask-filter.d.mts +15 -0
- package/src/client/canvas/rendering/filters/void.d.mts +6 -0
- package/src/client/canvas/rendering/filters/weather-occlusion-mask.d.mts +30 -0
- package/src/client/canvas/rendering/mixins/_module.d.mts +2 -0
- package/src/client/canvas/rendering/mixins/base-shader-mixin.d.mts +118 -0
- package/src/client/canvas/rendering/mixins/fragment-channel-mixin.d.mts +21 -0
- package/src/client/canvas/rendering/shaders/_module.d.mts +80 -0
- package/src/client/canvas/rendering/shaders/_types.d.mts +98 -0
- package/src/client/canvas/rendering/shaders/base-shader.d.mts +58 -0
- package/src/client/canvas/rendering/shaders/graphics/dash-line.d.mts +13 -0
- package/src/client/canvas/rendering/shaders/grid/grid.d.mts +99 -0
- package/src/client/canvas/rendering/shaders/lighting/background-lighting.d.mts +50 -0
- package/src/client/canvas/rendering/shaders/lighting/base-lighting.d.mts +164 -0
- package/src/client/canvas/rendering/shaders/lighting/coloration-lighting.d.mts +48 -0
- package/src/client/canvas/rendering/shaders/lighting/darkness-lighting.d.mts +45 -0
- package/src/client/canvas/rendering/shaders/lighting/effects/bewitching-wave.d.mts +10 -0
- package/src/client/canvas/rendering/shaders/lighting/effects/black-hole.d.mts +5 -0
- package/src/client/canvas/rendering/shaders/lighting/effects/chroma.d.mts +5 -0
- package/src/client/canvas/rendering/shaders/lighting/effects/emanation.d.mts +5 -0
- package/src/client/canvas/rendering/shaders/lighting/effects/energy-field.d.mts +5 -0
- package/src/client/canvas/rendering/shaders/lighting/effects/fairy-light.d.mts +10 -0
- package/src/client/canvas/rendering/shaders/lighting/effects/flame.d.mts +75 -0
- package/src/client/canvas/rendering/shaders/lighting/effects/fog.d.mts +5 -0
- package/src/client/canvas/rendering/shaders/lighting/effects/force-grid.d.mts +5 -0
- package/src/client/canvas/rendering/shaders/lighting/effects/ghost-light.d.mts +10 -0
- package/src/client/canvas/rendering/shaders/lighting/effects/hexa-dome.d.mts +5 -0
- package/src/client/canvas/rendering/shaders/lighting/effects/light-dome.d.mts +5 -0
- package/src/client/canvas/rendering/shaders/lighting/effects/magical-gloom.d.mts +5 -0
- package/src/client/canvas/rendering/shaders/lighting/effects/pulse.d.mts +41 -0
- package/src/client/canvas/rendering/shaders/lighting/effects/radial-rainbow.d.mts +5 -0
- package/src/client/canvas/rendering/shaders/lighting/effects/revolving-light.d.mts +38 -0
- package/src/client/canvas/rendering/shaders/lighting/effects/roiling-mass.d.mts +5 -0
- package/src/client/canvas/rendering/shaders/lighting/effects/siren-light.d.mts +80 -0
- package/src/client/canvas/rendering/shaders/lighting/effects/smoke-patch.d.mts +10 -0
- package/src/client/canvas/rendering/shaders/lighting/effects/star-light.d.mts +5 -0
- package/src/client/canvas/rendering/shaders/lighting/effects/sunburst.d.mts +10 -0
- package/src/client/canvas/rendering/shaders/lighting/effects/swirling-rainbow.d.mts +5 -0
- package/src/client/canvas/rendering/shaders/lighting/effects/torch.d.mts +41 -0
- package/src/client/canvas/rendering/shaders/lighting/effects/vortex.d.mts +10 -0
- package/src/client/canvas/rendering/shaders/lighting/effects/wave.d.mts +10 -0
- package/src/client/canvas/rendering/shaders/lighting/illumination-lighting.d.mts +51 -0
- package/src/client/canvas/rendering/shaders/region/adjust-darkness-level.d.mts +58 -0
- package/src/client/canvas/rendering/shaders/region/base.d.mts +20 -0
- package/src/client/canvas/rendering/shaders/region/highlight.d.mts +18 -0
- package/src/client/canvas/rendering/shaders/samplers/amplification.d.mts +30 -0
- package/src/client/canvas/rendering/shaders/samplers/base-sampler.d.mts +141 -0
- package/src/client/canvas/rendering/shaders/samplers/baseline-illumination.d.mts +15 -0
- package/src/client/canvas/rendering/shaders/samplers/color-adjustments.d.mts +36 -0
- package/src/client/canvas/rendering/shaders/samplers/colorize-brightness.d.mts +17 -0
- package/src/client/canvas/rendering/shaders/samplers/fog-of-war.d.mts +9 -0
- package/src/client/canvas/rendering/shaders/samplers/primary/depth.d.mts +66 -0
- package/src/client/canvas/rendering/shaders/samplers/primary/occlusion.d.mts +77 -0
- package/src/client/canvas/rendering/shaders/samplers/primary/primary.d.mts +28 -0
- package/src/client/canvas/rendering/shaders/samplers/primary/token-ring.d.mts +33 -0
- package/src/client/canvas/rendering/shaders/vision/background-vision.d.mts +47 -0
- package/src/client/canvas/rendering/shaders/vision/base-vision.d.mts +11 -0
- package/src/client/canvas/rendering/shaders/vision/coloration-vision.d.mts +43 -0
- package/src/client/canvas/rendering/shaders/vision/effects/amplification.d.mts +35 -0
- package/src/client/canvas/rendering/shaders/vision/effects/wave.d.mts +10 -0
- package/src/client/canvas/rendering/shaders/vision/illumination-vision.d.mts +45 -0
- package/src/client/canvas/rendering/shaders/weather/base-weather.d.mts +87 -0
- package/src/client/canvas/rendering/shaders/weather/effect.d.mts +27 -0
- package/src/client/canvas/rendering/shaders/weather/fog.d.mts +26 -0
- package/src/client/canvas/rendering/shaders/weather/rain.d.mts +16 -0
- package/src/client/canvas/rendering/shaders/weather/snow.d.mts +12 -0
- package/src/client/canvas/scene-manager.d.mts +101 -0
- package/src/client/canvas/sources/_module.d.mts +10 -0
- package/src/client/canvas/sources/base-effect-source.d.mts +179 -0
- package/src/client/canvas/sources/base-light-source.d.mts +141 -0
- package/src/client/canvas/sources/global-light-source.d.mts +36 -0
- package/src/client/canvas/sources/point-darkness-source.d.mts +87 -0
- package/src/client/canvas/sources/point-effect-source.d.mts +105 -0
- package/src/client/canvas/sources/point-light-source.d.mts +54 -0
- package/src/client/canvas/sources/point-movement-source.d.mts +10 -0
- package/src/client/canvas/sources/point-sound-source.d.mts +29 -0
- package/src/client/canvas/sources/point-vision-source.d.mts +151 -0
- package/src/client/canvas/sources/rendered-effect-source.d.mts +214 -0
- package/src/client/canvas/texture-extractor.d.mts +98 -0
- package/src/client/canvas/workers/_module.d.mts +1 -0
- package/src/client/canvas/workers/texture-worker.d.mts +73 -0
- package/src/client/client.d.mts +15 -0
- package/src/client/config.d.mts +868 -0
- package/src/client/data/_module.d.mts +11 -0
- package/src/client/data/_types.d.mts +97 -0
- package/src/client/data/calendar.d.mts +175 -0
- package/src/client/data/client-backend.d.mts +82 -0
- package/src/client/data/combat-config.d.mts +84 -0
- package/src/client/data/region-behaviors/_module.d.mts +9 -0
- package/src/client/data/region-behaviors/adjust-darkness-level.d.mts +29 -0
- package/src/client/data/region-behaviors/base.d.mts +70 -0
- package/src/client/data/region-behaviors/execute-macro.d.mts +17 -0
- package/src/client/data/region-behaviors/execute-script.d.mts +15 -0
- package/src/client/data/region-behaviors/increase-movement-cost.d.mts +36 -0
- package/src/client/data/region-behaviors/pause-game.d.mts +15 -0
- package/src/client/data/region-behaviors/suppress-weather.d.mts +13 -0
- package/src/client/data/region-behaviors/teleport-token.d.mts +27 -0
- package/src/client/data/region-behaviors/toggle-behavior.d.mts +19 -0
- package/src/client/data/region-shapes/_module.d.mts +2 -0
- package/src/client/data/region-shapes/polygon-tree.d.mts +101 -0
- package/src/client/data/region-shapes/shape.d.mts +97 -0
- package/src/client/data/terrain-data.d.mts +70 -0
- package/src/client/dice/_module.d.mts +14 -0
- package/src/client/dice/_types.d.mts +89 -0
- package/src/client/dice/parser.d.mts +83 -0
- package/src/client/dice/roll.d.mts +542 -0
- package/src/client/dice/terms/_module.d.mts +16 -0
- package/src/client/dice/terms/_types.d.mts +10 -0
- package/src/client/dice/terms/coin.d.mts +35 -0
- package/src/client/dice/terms/dice.d.mts +263 -0
- package/src/client/dice/terms/die.d.mts +199 -0
- package/src/client/dice/terms/fate.d.mts +22 -0
- package/src/client/dice/terms/function.d.mts +60 -0
- package/src/client/dice/terms/numeric.d.mts +39 -0
- package/src/client/dice/terms/operator.d.mts +28 -0
- package/src/client/dice/terms/parenthetical.d.mts +70 -0
- package/src/client/dice/terms/pool.d.mts +170 -0
- package/src/client/dice/terms/string.d.mts +23 -0
- package/src/client/dice/terms/term.d.mts +135 -0
- package/src/client/dice/twister.d.mts +87 -0
- package/src/client/documents/_module.d.mts +70 -0
- package/src/client/documents/_types.d.mts +736 -0
- package/src/client/documents/abstract/_module.d.mts +6 -0
- package/src/client/documents/abstract/canvas-document.d.mts +65 -0
- package/src/client/documents/abstract/client-document.d.mts +545 -0
- package/src/client/documents/abstract/directory-collection-mixin.d.mts +79 -0
- package/src/client/documents/abstract/document-collection.d.mts +124 -0
- package/src/client/documents/abstract/world-collection.d.mts +157 -0
- package/src/client/documents/active-effect.d.mts +203 -0
- package/src/client/documents/actor-delta.d.mts +76 -0
- package/src/client/documents/actor.d.mts +269 -0
- package/src/client/documents/adventure.d.mts +38 -0
- package/src/client/documents/ambient-light.d.mts +34 -0
- package/src/client/documents/ambient-sound.d.mts +16 -0
- package/src/client/documents/card.d.mts +102 -0
- package/src/client/documents/cards.d.mts +38 -0
- package/src/client/documents/chat-message.d.mts +190 -0
- package/src/client/documents/collections/_module.d.mts +19 -0
- package/src/client/documents/collections/actors.d.mts +28 -0
- package/src/client/documents/collections/card-stacks.d.mts +14 -0
- package/src/client/documents/collections/chat-messages.d.mts +29 -0
- package/src/client/documents/collections/combat-encounters.d.mts +32 -0
- package/src/client/documents/collections/compendium-collection.d.mts +170 -0
- package/src/client/documents/collections/compendium-folders.d.mts +30 -0
- package/src/client/documents/collections/compendium-packs.d.mts +23 -0
- package/src/client/documents/collections/fog-explorations.d.mts +19 -0
- package/src/client/documents/collections/folders.d.mts +20 -0
- package/src/client/documents/collections/items.d.mts +13 -0
- package/src/client/documents/collections/journal.d.mts +24 -0
- package/src/client/documents/collections/macros.d.mts +15 -0
- package/src/client/documents/collections/playlists.d.mts +28 -0
- package/src/client/documents/collections/roll-tables.d.mts +20 -0
- package/src/client/documents/collections/scenes.d.mts +60 -0
- package/src/client/documents/collections/users.d.mts +57 -0
- package/src/client/documents/collections/world-settings.d.mts +34 -0
- package/src/client/documents/combat.d.mts +371 -0
- package/src/client/documents/combatant-group.d.mts +42 -0
- package/src/client/documents/combatant.d.mts +125 -0
- package/src/client/documents/drawing.d.mts +27 -0
- package/src/client/documents/fog-exploration.d.mts +30 -0
- package/src/client/documents/folder.d.mts +124 -0
- package/src/client/documents/item.d.mts +73 -0
- package/src/client/documents/journal-entry-category.d.mts +15 -0
- package/src/client/documents/journal-entry-page.d.mts +77 -0
- package/src/client/documents/journal-entry.d.mts +78 -0
- package/src/client/documents/macro.d.mts +56 -0
- package/src/client/documents/measured-template.d.mts +41 -0
- package/src/client/documents/note.d.mts +28 -0
- package/src/client/documents/playlist-sound.d.mts +107 -0
- package/src/client/documents/playlist.d.mts +163 -0
- package/src/client/documents/region-behavior.d.mts +55 -0
- package/src/client/documents/region.d.mts +98 -0
- package/src/client/documents/roll-table.d.mts +172 -0
- package/src/client/documents/scene.d.mts +282 -0
- package/src/client/documents/setting.d.mts +35 -0
- package/src/client/documents/table-result.d.mts +35 -0
- package/src/client/documents/tile.d.mts +22 -0
- package/src/client/documents/token.d.mts +621 -0
- package/src/client/documents/user.d.mts +148 -0
- package/src/client/documents/wall.d.mts +20 -0
- package/src/client/game.d.mts +231 -0
- package/src/client/global.d.mts +28 -0
- package/src/client/helpers/_module.d.mts +13 -0
- package/src/client/helpers/_types.d.mts +26 -0
- package/src/client/helpers/client-issues.d.mts +90 -0
- package/src/client/helpers/client-settings.d.mts +191 -0
- package/src/client/helpers/document-index.d.mts +81 -0
- package/src/client/helpers/hooks.d.mts +210 -0
- package/src/client/helpers/interaction/_module.d.mts +6 -0
- package/src/client/helpers/interaction/client-keybindings.d.mts +143 -0
- package/src/client/helpers/interaction/clipboard-helper.d.mts +14 -0
- package/src/client/helpers/interaction/gamepad-manager.d.mts +15 -0
- package/src/client/helpers/interaction/keyboard-manager.d.mts +189 -0
- package/src/client/helpers/interaction/mouse-manager.d.mts +20 -0
- package/src/client/helpers/interaction/tooltip-manager.d.mts +227 -0
- package/src/client/helpers/localization.d.mts +143 -0
- package/src/client/helpers/media/_module.d.mts +3 -0
- package/src/client/helpers/media/compendium-art.d.mts +29 -0
- package/src/client/helpers/media/image-helper.d.mts +116 -0
- package/src/client/helpers/media/video-helper.d.mts +113 -0
- package/src/client/helpers/socket-interface.d.mts +14 -0
- package/src/client/helpers/time.d.mts +92 -0
- package/src/client/helpers/workers.d.mts +92 -0
- package/src/client/nue/_module.d.mts +13 -0
- package/src/client/nue/nue-manager.d.mts +13 -0
- package/src/client/nue/tour.d.mts +283 -0
- package/src/client/nue/tours/_module.d.mts +1 -0
- package/src/client/nue/tours-collection.d.mts +23 -0
- package/src/client/packages/_module.d.mts +19 -0
- package/src/client/packages/_types.d.mts +12 -0
- package/src/client/packages/client-package.mts +145 -0
- package/src/client/packages/module.d.mts +12 -0
- package/src/client/packages/system.d.mts +9 -0
- package/src/client/packages/world.d.mts +28 -0
- package/src/client/ui.d.mts +86 -0
- package/src/client/utils/_module.d.mts +4 -0
- package/src/client/utils/helpers.d.mts +148 -0
- package/src/common/_types.d.mts +151 -0
- package/src/common/abstract/_module.d.mts +8 -0
- package/src/common/abstract/_types.d.mts +187 -0
- package/src/common/abstract/backend.d.mts +159 -0
- package/src/common/abstract/data.d.mts +213 -0
- package/src/common/abstract/document.d.mts +700 -0
- package/src/common/abstract/embedded-collection.d.mts +141 -0
- package/src/common/abstract/socket.d.mts +35 -0
- package/src/common/abstract/type-data.d.mts +163 -0
- package/src/common/config.d.mts +147 -0
- package/src/common/constants.d.mts +2184 -0
- package/src/common/data/_module.d.mts +6 -0
- package/src/common/data/_types.d.mts +329 -0
- package/src/common/data/data.d.mts +390 -0
- package/src/common/data/fields.d.mts +1377 -0
- package/src/common/data/validation-failure.d.mts +127 -0
- package/src/common/data/validators.d.mts +35 -0
- package/src/common/documents/_module.d.mts +64 -0
- package/src/common/documents/_types.d.mts +1 -0
- package/src/common/documents/active-effect.d.mts +87 -0
- package/src/common/documents/actor-delta.d.mts +81 -0
- package/src/common/documents/actor.d.mts +105 -0
- package/src/common/documents/adventure.d.mts +105 -0
- package/src/common/documents/ambient-light.d.mts +49 -0
- package/src/common/documents/ambient-sound.d.mts +72 -0
- package/src/common/documents/card.d.mts +98 -0
- package/src/common/documents/cards.d.mts +89 -0
- package/src/common/documents/chat-message.d.mts +107 -0
- package/src/common/documents/combat.d.mts +55 -0
- package/src/common/documents/combatant-group.d.mts +45 -0
- package/src/common/documents/combatant.d.mts +48 -0
- package/src/common/documents/drawing.d.mts +101 -0
- package/src/common/documents/fog-exploration.d.mts +50 -0
- package/src/common/documents/folder.d.mts +65 -0
- package/src/common/documents/item.d.mts +86 -0
- package/src/common/documents/journal-entry-category.d.mts +32 -0
- package/src/common/documents/journal-entry-page.d.mts +76 -0
- package/src/common/documents/journal-entry.d.mts +50 -0
- package/src/common/documents/macro.d.mts +87 -0
- package/src/common/documents/measured-template.d.mts +72 -0
- package/src/common/documents/note.d.mts +82 -0
- package/src/common/documents/playlist-sound.d.mts +53 -0
- package/src/common/documents/playlist.d.mts +48 -0
- package/src/common/documents/region-behavior.d.mts +49 -0
- package/src/common/documents/region.d.mts +61 -0
- package/src/common/documents/roll-table.d.mts +70 -0
- package/src/common/documents/scene.d.mts +237 -0
- package/src/common/documents/setting.d.mts +49 -0
- package/src/common/documents/table-result.d.mts +61 -0
- package/src/common/documents/tile.d.mts +88 -0
- package/src/common/documents/token.d.mts +213 -0
- package/src/common/documents/user.d.mts +82 -0
- package/src/common/documents/wall.d.mts +72 -0
- package/src/common/grid/_module.d.mts +6 -0
- package/src/common/grid/_types.d.mts +250 -0
- package/src/common/grid/base.d.mts +266 -0
- package/src/common/grid/grid-hex.d.mts +53 -0
- package/src/common/grid/gridless.d.mts +85 -0
- package/src/common/grid/hexagonal.d.mts +191 -0
- package/src/common/grid/square.d.mts +90 -0
- package/src/common/packages/_module.d.mts +6 -0
- package/src/common/packages/_types.d.mts +7 -0
- package/src/common/packages/base-module.d.mts +32 -0
- package/src/common/packages/base-package.d.mts +297 -0
- package/src/common/packages/base-system.d.mts +42 -0
- package/src/common/packages/base-world.d.mts +51 -0
- package/src/common/packages/sub-types.d.mts +12 -0
- package/src/common/primitives/_module.d.mts +10 -0
- package/src/common/primitives/array.d.mts +58 -0
- package/src/common/primitives/date.d.mts +24 -0
- package/src/common/primitives/math.d.mts +70 -0
- package/src/common/primitives/number.d.mts +79 -0
- package/src/common/primitives/regexp.d.mts +12 -0
- package/src/common/primitives/set.d.mts +129 -0
- package/src/common/primitives/string.d.mts +24 -0
- package/src/common/primitives/url.d.mts +12 -0
- package/src/common/prosemirror/_module.d.mts +77 -0
- package/src/common/prosemirror/_types.d.mts +75 -0
- package/src/common/prosemirror/click-handler.d.mts +24 -0
- package/src/common/prosemirror/content-link-plugin.d.mts +34 -0
- package/src/common/prosemirror/dirty-plugin.d.mts +10 -0
- package/src/common/prosemirror/dom-parser.d.mts +7 -0
- package/src/common/prosemirror/dropdown.d.mts +50 -0
- package/src/common/prosemirror/highlight-matches-plugin.d.mts +38 -0
- package/src/common/prosemirror/image-plugin.d.mts +70 -0
- package/src/common/prosemirror/input-rules.d.mts +24 -0
- package/src/common/prosemirror/keymaps.d.mts +27 -0
- package/src/common/prosemirror/menu.d.mts +206 -0
- package/src/common/prosemirror/paste-transformer.d.mts +10 -0
- package/src/common/prosemirror/plugin.d.mts +21 -0
- package/src/common/prosemirror/schema/_types.d.mts +15 -0
- package/src/common/prosemirror/schema/attribute-capture.d.mts +13 -0
- package/src/common/prosemirror/schema/core.d.mts +58 -0
- package/src/common/prosemirror/schema/image-link-node.d.mts +27 -0
- package/src/common/prosemirror/schema/image-node.d.mts +17 -0
- package/src/common/prosemirror/schema/link-mark.d.mts +29 -0
- package/src/common/prosemirror/schema/lists.d.mts +71 -0
- package/src/common/prosemirror/schema/marks.d.mts +49 -0
- package/src/common/prosemirror/schema/other.d.mts +161 -0
- package/src/common/prosemirror/schema/schema-definition.d.mts +43 -0
- package/src/common/prosemirror/schema/secret-node.d.mts +25 -0
- package/src/common/prosemirror/schema/tables.d.mts +161 -0
- package/src/common/prosemirror/schema/utils.d.mts +37 -0
- package/src/common/prosemirror/schema.d.mts +7 -0
- package/src/common/prosemirror/string-serializer.d.mts +84 -0
- package/src/common/prosemirror/util.d.mts +32 -0
- package/src/common/utils/_module.d.mts +19 -0
- package/src/common/utils/_types.d.mts +83 -0
- package/src/common/utils/bitmask.d.mts +122 -0
- package/src/common/utils/collection.d.mts +148 -0
- package/src/common/utils/color.d.mts +308 -0
- package/src/common/utils/event-emitter.d.mts +36 -0
- package/src/common/utils/geometry.d.mts +94 -0
- package/src/common/utils/helpers.d.mts +396 -0
- package/src/common/utils/http.d.mts +40 -0
- package/src/common/utils/iterable-weak-map.d.mts +26 -0
- package/src/common/utils/iterable-weak-set.d.mts +1 -0
- package/src/common/utils/logging.d.mts +25 -0
- package/src/common/utils/semaphore.d.mts +59 -0
- package/src/common/utils/string-tree.d.mts +60 -0
- package/src/common/utils/word-tree.d.mts +34 -0
- package/src/global-external.d.mts +48 -0
- package/src/index.d.ts +87 -0
- package/src/public/scripts/clipper.d.mts +920 -0
- package/src/tinymce-stub.d.mts +123 -0
- package/src/util.d.mts +67 -0
|
@@ -0,0 +1,868 @@
|
|
|
1
|
+
import { DocumentConstructionContext } from "../common/_types.mjs";
|
|
2
|
+
import { ActiveEffectSource } from "../common/documents/active-effect.mjs";
|
|
3
|
+
import { DataSchema, Document, TypeDataModel } from "./../common/abstract/_module.mjs";
|
|
4
|
+
import { AudioFilePath, ImageFilePath, RollMode } from "./../common/constants.mjs";
|
|
5
|
+
import { applications, canvas, dice, documents, TokenMovementActionConfig } from "./_module.mjs";
|
|
6
|
+
import CameraViews from "./applications/apps/av/cameras.mjs";
|
|
7
|
+
import HTMLEnrichedContentElement from "./applications/elements/enriched-content.mjs";
|
|
8
|
+
import { PrototypeTokenConfig } from "./applications/sheets/_module.mjs";
|
|
9
|
+
import * as sidebar from "./applications/sidebar/_module.mjs";
|
|
10
|
+
import { CompendiumDirectory } from "./applications/sidebar/tabs/_module.mjs";
|
|
11
|
+
import { MainMenu, Notifications, SceneNavigation } from "./applications/ui/_module.mjs";
|
|
12
|
+
import Hotbar from "./applications/ui/hotbar.mjs";
|
|
13
|
+
import { EnrichmentOptions } from "./applications/ux/text-editor.mjs";
|
|
14
|
+
import { CanvasAnimationAttribute } from "./canvas/animation/_types.mjs";
|
|
15
|
+
import ChatBubbles from "./canvas/animation/chat-bubbles.mjs";
|
|
16
|
+
import { DoorControl, ParticleEffect } from "./canvas/containers/_module.mjs";
|
|
17
|
+
import ClockwiseSweepPolygon from "./canvas/geometry/clockwise-sweep.mjs";
|
|
18
|
+
import { EffectsCanvasGroup, EnvironmentCanvasGroup, HiddenCanvasGroup, InterfaceCanvasGroup, PrimaryCanvasGroup } from "./canvas/groups/_module.mjs";
|
|
19
|
+
import { AlertPing, ArrowPing, ChevronPing, PulsePing, Ruler } from "./canvas/interaction/_module.mjs";
|
|
20
|
+
import * as layers from "./canvas/layers/_module.mjs";
|
|
21
|
+
import * as perception from "./canvas/perception/_module.mjs";
|
|
22
|
+
import * as placeables from "./canvas/placeables/_module.mjs";
|
|
23
|
+
import TokenRingConfig from "./canvas/placeables/tokens/ring-config.mjs";
|
|
24
|
+
import {
|
|
25
|
+
AbstractWeatherShader,
|
|
26
|
+
AdaptiveBackgroundShader,
|
|
27
|
+
AdaptiveColorationShader,
|
|
28
|
+
AdaptiveIlluminationShader,
|
|
29
|
+
WeatherShaderEffect,
|
|
30
|
+
} from "./canvas/rendering/shaders/_module.mjs";
|
|
31
|
+
import type { GlobalLightSource, PointDarknessSource, PointLightSource, PointSoundSource, PointVisionSource } from "./canvas/sources/_module.mjs";
|
|
32
|
+
import ClientDatabaseBackend from "./data/client-backend.mjs";
|
|
33
|
+
import { TokenMovementCostAggregator } from "./documents/_types.mjs";
|
|
34
|
+
import WorldCollection from "./documents/abstract/world-collection.mjs";
|
|
35
|
+
import * as collections from "./documents/collections/_module.mjs";
|
|
36
|
+
|
|
37
|
+
export type TextEditorEnricher = (match: RegExpMatchArray, options?: EnrichmentOptions) => Promise<HTMLElement | null>;
|
|
38
|
+
|
|
39
|
+
export interface TextEditorEnricherConfig {
|
|
40
|
+
/** A unique ID to assign to the enricher type. Required if you want to use the onRender callback. */
|
|
41
|
+
id?: string;
|
|
42
|
+
|
|
43
|
+
/** The string pattern to match. Must be flagged as global. */
|
|
44
|
+
pattern: RegExp;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* The function that will be called on each match. It is expected that this returns an HTML element to be inserted
|
|
48
|
+
* into the final enriched content.
|
|
49
|
+
*/
|
|
50
|
+
enricher: TextEditorEnricher;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Hoist the replacement element out of its containing element if it replaces the entire contents of the element.
|
|
54
|
+
*/
|
|
55
|
+
replaceParent?: boolean;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* An optional callback that is invoked when the
|
|
59
|
+
* enriched content is added to the DOM.
|
|
60
|
+
*/
|
|
61
|
+
onRender?: (arg0: HTMLEnrichedContentElement) => unknown;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* A light source animation configuration object.
|
|
66
|
+
*/
|
|
67
|
+
export interface LightSourceAnimationConfig {
|
|
68
|
+
label: string;
|
|
69
|
+
animation: Function;
|
|
70
|
+
backgroundShader?: typeof AdaptiveBackgroundShader;
|
|
71
|
+
illuminationShader?: typeof AdaptiveIlluminationShader;
|
|
72
|
+
colorationShader: typeof AdaptiveColorationShader;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Available Weather Effects implementations
|
|
77
|
+
*/
|
|
78
|
+
interface WeatherAmbienceConfiguration {
|
|
79
|
+
id: string;
|
|
80
|
+
label: string;
|
|
81
|
+
filter?: {
|
|
82
|
+
enabled: boolean;
|
|
83
|
+
blendMode?: PIXI.BLEND_MODES;
|
|
84
|
+
};
|
|
85
|
+
effects: WeatherEffectConfiguration[];
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
interface WeatherEffectConfiguration {
|
|
89
|
+
id: string;
|
|
90
|
+
effectClass: typeof ParticleEffect | typeof WeatherShaderEffect;
|
|
91
|
+
shaderClass?: typeof AbstractWeatherShader;
|
|
92
|
+
blendMode?: PIXI.BLEND_MODES;
|
|
93
|
+
config?: object;
|
|
94
|
+
performanceLevel?: number;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
interface WallDoorSound {
|
|
98
|
+
/** A localization string label */
|
|
99
|
+
label: string;
|
|
100
|
+
/** A sound path when the door is closed */
|
|
101
|
+
close: string;
|
|
102
|
+
/** A sound path when the door becomes locked */
|
|
103
|
+
lock: string;
|
|
104
|
+
/** A sound path when opening the door */
|
|
105
|
+
open: string;
|
|
106
|
+
/** A sound path when attempting to open a locked door */
|
|
107
|
+
test: string;
|
|
108
|
+
/** A sound path when the door becomes unlocked */
|
|
109
|
+
unlock: string;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
type WallDoorAnimationFunction = (open: boolean) => CanvasAnimationAttribute[];
|
|
113
|
+
type WallDoorAnimationHook = (open: boolean) => Promise<void> | void;
|
|
114
|
+
|
|
115
|
+
interface WallDoorAnimationConfig {
|
|
116
|
+
label: string;
|
|
117
|
+
midpoint?: boolean;
|
|
118
|
+
easing?: string | Function;
|
|
119
|
+
initialize?: WallDoorAnimationHook;
|
|
120
|
+
preAnimate?: WallDoorAnimationHook;
|
|
121
|
+
animate: WallDoorAnimationFunction;
|
|
122
|
+
postAnimate?: WallDoorAnimationHook;
|
|
123
|
+
duration: number;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export interface PartialTokenMovementActionConfig
|
|
127
|
+
extends Pick<TokenMovementActionConfig, "label" | "icon" | "order">, Partial<Omit<TokenMovementActionConfig, "label" | "icon" | "order">> {}
|
|
128
|
+
|
|
129
|
+
export interface RollFunction {
|
|
130
|
+
(...args: any[]): boolean | number | string | null | Promise<boolean | number | string | null>;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export default interface Config<
|
|
134
|
+
TAmbientLightDocument extends documents.AmbientLightDocument<TScene | null>,
|
|
135
|
+
TActiveEffect extends documents.ActiveEffect<TActor | TItem | null>,
|
|
136
|
+
TActor extends documents.Actor<TTokenDocument | null>,
|
|
137
|
+
TActorDelta extends documents.ActorDelta<TTokenDocument | null>,
|
|
138
|
+
TChatLog extends sidebar.tabs.ChatLog,
|
|
139
|
+
TChatMessage extends documents.ChatMessage,
|
|
140
|
+
TCombat extends documents.Combat,
|
|
141
|
+
TCombatant extends documents.Combatant<TCombat | null, TTokenDocument | null>,
|
|
142
|
+
TCombatTracker extends sidebar.tabs.CombatTracker<TCombat | null>,
|
|
143
|
+
TCompendiumDirectory extends CompendiumDirectory,
|
|
144
|
+
THotbar extends Hotbar<TMacro>,
|
|
145
|
+
TItem extends documents.Item<TActor | null>,
|
|
146
|
+
TMacro extends documents.Macro,
|
|
147
|
+
TMeasuredTemplateDocument extends documents.MeasuredTemplateDocument<TScene | null>,
|
|
148
|
+
TRegionDocument extends documents.RegionDocument<TScene | null>,
|
|
149
|
+
TRegionBehavior extends documents.RegionBehavior<TRegionDocument | null>,
|
|
150
|
+
TTileDocument extends documents.TileDocument<TScene | null>,
|
|
151
|
+
TTokenDocument extends documents.TokenDocument<TScene | null>,
|
|
152
|
+
TWallDocument extends documents.WallDocument<TScene | null>,
|
|
153
|
+
TScene extends documents.Scene,
|
|
154
|
+
TUser extends documents.User,
|
|
155
|
+
TEffectsCanvasGroup extends EffectsCanvasGroup,
|
|
156
|
+
> {
|
|
157
|
+
/** Configure debugging flags to display additional information */
|
|
158
|
+
debug: {
|
|
159
|
+
dice: boolean;
|
|
160
|
+
documents: boolean;
|
|
161
|
+
fog: boolean;
|
|
162
|
+
hooks: boolean;
|
|
163
|
+
sight: boolean;
|
|
164
|
+
sightRays: boolean;
|
|
165
|
+
av: boolean;
|
|
166
|
+
avclient: boolean;
|
|
167
|
+
mouseInteraction: boolean;
|
|
168
|
+
time: boolean;
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
time: {
|
|
172
|
+
roundTime: number;
|
|
173
|
+
turnTime: number;
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
compendium: {
|
|
177
|
+
/**
|
|
178
|
+
* Configure a table of compendium UUID redirects. Must be configured before the game *ready* hook is fired.
|
|
179
|
+
*
|
|
180
|
+
* @example Re-map individual UUIDs
|
|
181
|
+
* ```js
|
|
182
|
+
* CONFIG.compendium.uuidRedirects["Compendium.system.heroes.Actor.Tf0JDPzHOrIxz6BH"] = "Compendium.system.villains.Actor.DKYLeIliXXzlAZ2G";
|
|
183
|
+
* ```
|
|
184
|
+
*
|
|
185
|
+
* @example Redirect UUIDs from one compendium to another.
|
|
186
|
+
* ```js
|
|
187
|
+
* CONFIG.compendium.uuidRedirects["Compendium.system.heroes"] = "Compendium.system.villains";
|
|
188
|
+
* ```
|
|
189
|
+
*/
|
|
190
|
+
uuidRedirects: Record<string, string>;
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
/** Configure the DatabaseBackend used to perform Document operations */
|
|
194
|
+
DatabaseBackend: ClientDatabaseBackend;
|
|
195
|
+
|
|
196
|
+
/** Configuration for the Actor document */
|
|
197
|
+
Actor: {
|
|
198
|
+
documentClass: {
|
|
199
|
+
new (data: PreCreate<TActor["_source"]>, context?: DocumentConstructionContext<TActor["parent"]>): TActor;
|
|
200
|
+
};
|
|
201
|
+
collection: ConstructorOf<collections.Actors<documents.Actor<null>>>;
|
|
202
|
+
compendiumIndexFields: string[];
|
|
203
|
+
compendiumBanner: ImageFilePath;
|
|
204
|
+
defaultType?: string;
|
|
205
|
+
sidebarIcon: string;
|
|
206
|
+
dataModels: Record<string, ConstructorOf<TypeDataModel<documents.Actor, DataSchema>>>;
|
|
207
|
+
typeLabels: Record<string, string | undefined>;
|
|
208
|
+
typeIcons: Record<string, string>;
|
|
209
|
+
trackableAttributes: object;
|
|
210
|
+
sheetClasses: Record<string, Record<string, SheetClassConfig>>;
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
/** Configuration for the Adventure document. */
|
|
214
|
+
Adventure: {
|
|
215
|
+
documentClass: ConstructorOf<documents.Adventure>;
|
|
216
|
+
compendiumIndexFields: string[];
|
|
217
|
+
compendiumBanner: string;
|
|
218
|
+
sidebarIcon: string;
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
/** Configuration for the Cards primary Document type */
|
|
222
|
+
Cards: {
|
|
223
|
+
collection: WorldCollection<documents.Cards>;
|
|
224
|
+
compendiumIndexFields: string[];
|
|
225
|
+
compendiumBanner: string;
|
|
226
|
+
documentClass: ConstructorOf<documents.Cards>;
|
|
227
|
+
sidebarIcon: string;
|
|
228
|
+
dataModels: Record<string, ConstructorOf<TypeDataModel<Document, DataSchema>>>;
|
|
229
|
+
presets: Record<string, { type: string; label: string; src: string }>;
|
|
230
|
+
typeLabels: Record<string, string>;
|
|
231
|
+
typeIcons: Record<string, string>;
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
/** Configuration for the ChatMessage document */
|
|
235
|
+
ChatMessage: {
|
|
236
|
+
documentClass: {
|
|
237
|
+
new (data: PreCreate<TChatMessage["_source"]>, context?: DocumentConstructionContext<null>): TChatMessage;
|
|
238
|
+
};
|
|
239
|
+
popoutClass: typeof applications.sidebar.apps.ChatPopout;
|
|
240
|
+
collection: typeof collections.Messages;
|
|
241
|
+
template: string;
|
|
242
|
+
dataModels: Record<string, ConstructorOf<TypeDataModel<Document, DataSchema>>>;
|
|
243
|
+
typeLabels: Record<string, string>;
|
|
244
|
+
typeIcons: Record<string, string>;
|
|
245
|
+
batchSize: number;
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
/** Configuration for the Combat document */
|
|
249
|
+
Combat: {
|
|
250
|
+
documentClass: {
|
|
251
|
+
new (data: PreCreate<TCombat["_source"]>, context?: DocumentConstructionContext<null>): TCombat;
|
|
252
|
+
};
|
|
253
|
+
collection: typeof collections.CombatEncounters;
|
|
254
|
+
defeatedStatusId: string;
|
|
255
|
+
sidebarIcon: string;
|
|
256
|
+
initiative: {
|
|
257
|
+
formula: ((combatant: TCombat["turns"][number]) => string) | null;
|
|
258
|
+
decimals: number;
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
/** Configuration for the FogExploration document */
|
|
263
|
+
FogExploration: {
|
|
264
|
+
documentClass: typeof documents.FogExploration;
|
|
265
|
+
collection: typeof WorldCollection;
|
|
266
|
+
sheetClasses: Record<string, Record<string, SheetClassConfig>>;
|
|
267
|
+
typeLabels: Record<string, string>;
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
/** Configuration for the Folder document */
|
|
271
|
+
Folder: {
|
|
272
|
+
collection: typeof collections.Folders;
|
|
273
|
+
documentClass: typeof documents.Folder;
|
|
274
|
+
sheetClasses: Record<string, Record<string, SheetClassConfig>>;
|
|
275
|
+
sidebarIcon: string;
|
|
276
|
+
typeLabels: Record<string, string>;
|
|
277
|
+
};
|
|
278
|
+
|
|
279
|
+
/** Configuration for Item document */
|
|
280
|
+
Item: {
|
|
281
|
+
collection: typeof collections.Items;
|
|
282
|
+
compendiumBanner: string;
|
|
283
|
+
compendiumIndexFields: string[];
|
|
284
|
+
dataModels: Record<string, ConstructorOf<TypeDataModel<documents.Item, DataSchema>>>;
|
|
285
|
+
defaultType?: string;
|
|
286
|
+
documentClass: {
|
|
287
|
+
new (data: PreCreate<TItem["_source"]>, context?: DocumentConstructionContext<TItem["parent"]>): TItem;
|
|
288
|
+
};
|
|
289
|
+
sheetClasses: Record<string, Record<string, SheetClassConfig>>;
|
|
290
|
+
sidebarIcon: string;
|
|
291
|
+
typeLabels: Record<string, string | undefined>;
|
|
292
|
+
typeIcons: Record<string, string>;
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
/** Configuration for the JournalEntry entity */
|
|
296
|
+
JournalEntry: {
|
|
297
|
+
documentClass: typeof documents.JournalEntry;
|
|
298
|
+
collection: collections.Journal;
|
|
299
|
+
compendiumIndexFields: string[];
|
|
300
|
+
compendiumBanner: string;
|
|
301
|
+
sidebarIcon: string;
|
|
302
|
+
noteIcons: Record<string, string>;
|
|
303
|
+
sheetClasses: Record<string, Record<string, SheetClassConfig>>;
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
/** Configuration for the Macro document */
|
|
307
|
+
Macro: {
|
|
308
|
+
documentClass: ConstructorOf<TMacro>;
|
|
309
|
+
collection: typeof collections.Macros;
|
|
310
|
+
compendiumIndexFields: string[];
|
|
311
|
+
compendiumBanner: string;
|
|
312
|
+
sidebarIcon: string;
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
/** Configuration for the Playlist document */
|
|
316
|
+
Playlist: {
|
|
317
|
+
documentClass: typeof documents.Playlist;
|
|
318
|
+
collection: collections.Playlists;
|
|
319
|
+
compendiumIndexFields: string[];
|
|
320
|
+
compendiumBanner: string;
|
|
321
|
+
sidebarIcon: string;
|
|
322
|
+
autoPreloadSeconds: number;
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
/** Configuration for RollTable random draws */
|
|
326
|
+
RollTable: {
|
|
327
|
+
documentClass: typeof documents.RollTable;
|
|
328
|
+
collection: typeof collections.RollTables;
|
|
329
|
+
compendiumIndexFields: string[];
|
|
330
|
+
compendiumBanner: string;
|
|
331
|
+
sidebarIcon: string;
|
|
332
|
+
resultIcon: string;
|
|
333
|
+
resultTemplate: string;
|
|
334
|
+
};
|
|
335
|
+
|
|
336
|
+
/** Configuration for Scene document */
|
|
337
|
+
Scene: {
|
|
338
|
+
documentClass: ConstructorOf<TScene>;
|
|
339
|
+
collection: typeof collections.Scenes;
|
|
340
|
+
compendiumIndexFields: string[];
|
|
341
|
+
compendiumBanner: string;
|
|
342
|
+
sidebarIcon: string;
|
|
343
|
+
};
|
|
344
|
+
|
|
345
|
+
/** Configuration for the User document */
|
|
346
|
+
Setting: {
|
|
347
|
+
documentClass: typeof documents.Setting;
|
|
348
|
+
collection: typeof collections.WorldSettings;
|
|
349
|
+
};
|
|
350
|
+
|
|
351
|
+
/** Configuration for the User document */
|
|
352
|
+
User: {
|
|
353
|
+
documentClass: ConstructorOf<TUser>;
|
|
354
|
+
collection: typeof collections.Users;
|
|
355
|
+
};
|
|
356
|
+
|
|
357
|
+
/* -------------------------------------------- */
|
|
358
|
+
/* Embedded Documents */
|
|
359
|
+
/* -------------------------------------------- */
|
|
360
|
+
|
|
361
|
+
/** Configuration for the ActiveEffect embedded document type */
|
|
362
|
+
ActiveEffect: {
|
|
363
|
+
documentClass: {
|
|
364
|
+
new (data: PreCreate<TActiveEffect["_source"]>, context?: DocumentConstructionContext<TActiveEffect["parent"]>): TActiveEffect;
|
|
365
|
+
};
|
|
366
|
+
dataModels: Record<string, ConstructorOf<TypeDataModel<Document, DataSchema>>>;
|
|
367
|
+
typeLabels: Record<string, string>;
|
|
368
|
+
typeIcons: Record<string, string>;
|
|
369
|
+
};
|
|
370
|
+
|
|
371
|
+
/** Configuration for the ActorDelta embedded document type. */
|
|
372
|
+
ActorDelta: {
|
|
373
|
+
documentClass: ConstructorOf<TActorDelta>;
|
|
374
|
+
};
|
|
375
|
+
|
|
376
|
+
Card: {
|
|
377
|
+
documentClass: typeof documents.Card;
|
|
378
|
+
dataModels: Record<string, ConstructorOf<TypeDataModel<Document, DataSchema>>>;
|
|
379
|
+
typeLabels: Record<string, string>;
|
|
380
|
+
typeIcons: Record<string, string>;
|
|
381
|
+
};
|
|
382
|
+
|
|
383
|
+
TableResult: {
|
|
384
|
+
documentClass: typeof documents.TableResult;
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
/** Configuration for the JournalEntryCategory embedded document type. */
|
|
388
|
+
JournalEntryCategory: {
|
|
389
|
+
documentClass: typeof documents.JournalEntryCategory;
|
|
390
|
+
};
|
|
391
|
+
|
|
392
|
+
/** Configuration for the JournalEntryPage embedded document type. */
|
|
393
|
+
JournalEntryPage: {
|
|
394
|
+
documentClass: typeof documents.JournalEntryPage;
|
|
395
|
+
dataModels: Record<string, ConstructorOf<TypeDataModel<Document, DataSchema>>>;
|
|
396
|
+
typeLabels: Record<string, string>;
|
|
397
|
+
typeIcons: Record<string, string>;
|
|
398
|
+
defaultType: string;
|
|
399
|
+
sidebarIcon: string;
|
|
400
|
+
};
|
|
401
|
+
|
|
402
|
+
/** Configuration for the PlaylistSound embedded document type */
|
|
403
|
+
PlaylistSound: {
|
|
404
|
+
documentClass: typeof documents.PlaylistSound;
|
|
405
|
+
sidebarIcon: string;
|
|
406
|
+
};
|
|
407
|
+
|
|
408
|
+
/** Configuration for the AmbientLight embedded document type and its representation on the game Canvas */
|
|
409
|
+
AmbientLight: {
|
|
410
|
+
documentClass: ConstructorOf<TAmbientLightDocument>;
|
|
411
|
+
objectClass: ConstructorOf<NonNullable<TAmbientLightDocument["object"]>>;
|
|
412
|
+
layerClass: typeof canvas.layers.LightingLayer;
|
|
413
|
+
};
|
|
414
|
+
|
|
415
|
+
/** Configuration for the AmbientSound embedded document type and its representation on the game Canvas */
|
|
416
|
+
AmbientSound: {
|
|
417
|
+
documentClass: typeof documents.AmbientSoundDocument;
|
|
418
|
+
objectClass: typeof canvas.placeables.AmbientSound;
|
|
419
|
+
layerClass: typeof canvas.layers.SoundsLayer;
|
|
420
|
+
};
|
|
421
|
+
|
|
422
|
+
/** Configuration for the Combatant embedded document type within a Combat document */
|
|
423
|
+
Combatant: {
|
|
424
|
+
documentClass: new (data: PreCreate<TCombatant["_source"]>, context?: DocumentConstructionContext<TCombatant["parent"]>) => TCombatant;
|
|
425
|
+
dataModels: Record<string, ConstructorOf<TypeDataModel<Document, DataSchema>>>;
|
|
426
|
+
typeLabels: Record<string, string>;
|
|
427
|
+
typeIcons: Record<string, string>;
|
|
428
|
+
};
|
|
429
|
+
|
|
430
|
+
/** Configuration for the CombatantGroup embedded document type within a Combat document. */
|
|
431
|
+
CombatantGroup: {
|
|
432
|
+
documentClass: typeof documents.CombatantGroup;
|
|
433
|
+
dataModels: Record<string, ConstructorOf<TypeDataModel<Document, DataSchema>>>;
|
|
434
|
+
typeLabels: Record<string, string>;
|
|
435
|
+
typeIcons: Record<string, string>;
|
|
436
|
+
};
|
|
437
|
+
|
|
438
|
+
/** Configuration for the Drawing embedded document type and its representation on the game Canvas */
|
|
439
|
+
Drawing: {
|
|
440
|
+
documentClass: typeof documents.DrawingDocument;
|
|
441
|
+
objectClass: typeof canvas.placeables.Drawing;
|
|
442
|
+
layerClass: typeof canvas.layers.DrawingsLayer;
|
|
443
|
+
hudClass: typeof applications.hud.DrawingHUD;
|
|
444
|
+
};
|
|
445
|
+
|
|
446
|
+
/** Configuration for the MeasuredTemplate embedded document type and its representation on the game Canvas */
|
|
447
|
+
MeasuredTemplate: {
|
|
448
|
+
defaults: {
|
|
449
|
+
angle: number;
|
|
450
|
+
width: number;
|
|
451
|
+
};
|
|
452
|
+
documentClass: ConstructorOf<TMeasuredTemplateDocument>;
|
|
453
|
+
objectClass: ConstructorOf<NonNullable<TMeasuredTemplateDocument["object"]>>;
|
|
454
|
+
layerClass: typeof canvas.layers.TemplateLayer;
|
|
455
|
+
};
|
|
456
|
+
|
|
457
|
+
/** Configuration for the Note embedded document type and its representation on the game Canvas */
|
|
458
|
+
Note: {
|
|
459
|
+
documentClass: typeof documents.NoteDocument;
|
|
460
|
+
objectClass: typeof canvas.placeables.Note;
|
|
461
|
+
layerClass: typeof canvas.layers.NotesLayer;
|
|
462
|
+
};
|
|
463
|
+
|
|
464
|
+
/** Configuration for the Region embedded document type and its representation on the game Canvas */
|
|
465
|
+
Region: {
|
|
466
|
+
documentClass: ConstructorOf<TRegionDocument>;
|
|
467
|
+
objectClass: ConstructorOf<TRegionDocument["object"]>;
|
|
468
|
+
layerClass: typeof canvas.layers.RegionLayer;
|
|
469
|
+
};
|
|
470
|
+
|
|
471
|
+
/** Configuration for the RegionBehavior embedded document type */
|
|
472
|
+
RegionBehavior: {
|
|
473
|
+
documentClass: ConstructorOf<TRegionBehavior>;
|
|
474
|
+
dataModels: Record<string, ConstructorOf<foundry.data.regionBehaviors.RegionBehaviorType>>;
|
|
475
|
+
typeLabels: Record<string, string>;
|
|
476
|
+
typeIcons: Record<string, string>;
|
|
477
|
+
};
|
|
478
|
+
|
|
479
|
+
/** Configuration for the Tile embedded document type and its representation on the game Canvas */
|
|
480
|
+
Tile: {
|
|
481
|
+
documentClass: ConstructorOf<TTileDocument>;
|
|
482
|
+
objectClass: ConstructorOf<NonNullable<TTileDocument["object"]>>;
|
|
483
|
+
layerClass: typeof canvas.layers.TilesLayer;
|
|
484
|
+
hudClass: applications.hud.TileHUD;
|
|
485
|
+
};
|
|
486
|
+
|
|
487
|
+
/** Configuration for the Token embedded document type and its representation on the game Canvas */
|
|
488
|
+
Token: {
|
|
489
|
+
documentClass: ConstructorOf<TTokenDocument>;
|
|
490
|
+
objectClass: ConstructorOf<NonNullable<TTokenDocument["object"]>>;
|
|
491
|
+
layerClass: ConstructorOf<layers.TokenLayer>;
|
|
492
|
+
prototypeSheetClass: ConstructorOf<PrototypeTokenConfig>;
|
|
493
|
+
hudClass: ConstructorOf<applications.hud.TokenHUD>;
|
|
494
|
+
rulerClass: ConstructorOf<placeables.tokens.TokenRuler<NonNullable<TTokenDocument["object"]>>>;
|
|
495
|
+
movement: {
|
|
496
|
+
TerrainData: typeof foundry.data.TerrainData;
|
|
497
|
+
/** The movement cost aggregator. */
|
|
498
|
+
costAggregator: TokenMovementCostAggregator;
|
|
499
|
+
/** The default movement animation speed in grid spaces per second. */
|
|
500
|
+
defaultSpeed: number;
|
|
501
|
+
defaultAction: string;
|
|
502
|
+
actions: Record<string, PartialTokenMovementActionConfig>;
|
|
503
|
+
};
|
|
504
|
+
adjectivesPrefix: string;
|
|
505
|
+
ring: TokenRingConfig;
|
|
506
|
+
};
|
|
507
|
+
|
|
508
|
+
/** Configuration for the Wall embedded document type and its representation on the game Canvas */
|
|
509
|
+
Wall: {
|
|
510
|
+
documentClass: ConstructorOf<TWallDocument>;
|
|
511
|
+
objectClass: ConstructorOf<placeables.Wall<TWallDocument>>;
|
|
512
|
+
layerClass: typeof canvas.layers.WallsLayer;
|
|
513
|
+
animationTypes: Record<string, WallDoorAnimationConfig>;
|
|
514
|
+
doorSounds: Record<string, WallDoorSound>;
|
|
515
|
+
textureGridSize: number;
|
|
516
|
+
thresholdAttenuationMultiplier: number;
|
|
517
|
+
};
|
|
518
|
+
|
|
519
|
+
/* -------------------------------------------- */
|
|
520
|
+
/* Canvas */
|
|
521
|
+
/* -------------------------------------------- */
|
|
522
|
+
|
|
523
|
+
/** Configuration settings for the Canvas and its contained layers and objects */
|
|
524
|
+
Canvas: {
|
|
525
|
+
blurStrength: number;
|
|
526
|
+
darknessColor: number;
|
|
527
|
+
daylightColor: number;
|
|
528
|
+
brightestColor: number;
|
|
529
|
+
chatBubblesClass: ChatBubbles;
|
|
530
|
+
darknessLightPenalty: number;
|
|
531
|
+
dispositionColors: {
|
|
532
|
+
HOSTILE: number;
|
|
533
|
+
NEUTRAL: number;
|
|
534
|
+
FRIENDLY: number;
|
|
535
|
+
INACTIVE: number;
|
|
536
|
+
PARTY: number;
|
|
537
|
+
CONTROLLED: number;
|
|
538
|
+
SECRET: number;
|
|
539
|
+
};
|
|
540
|
+
doorControlClass: typeof DoorControl;
|
|
541
|
+
exploredColor: number;
|
|
542
|
+
unexploredColor: number;
|
|
543
|
+
darknessToDaylightAnimationMS: number;
|
|
544
|
+
daylightToDarknessAnimationMS: number;
|
|
545
|
+
darknessSourceClass: typeof PointDarknessSource;
|
|
546
|
+
lightSourceClass: typeof PointLightSource;
|
|
547
|
+
globalLightSourceClass: typeof GlobalLightSource;
|
|
548
|
+
rulerClass: typeof Ruler;
|
|
549
|
+
visionSourceClass: ConstructorOf<PointVisionSource<NonNullable<TTokenDocument["object"]>>>;
|
|
550
|
+
soundSourceClass: typeof PointSoundSource;
|
|
551
|
+
groups: {
|
|
552
|
+
hidden: {
|
|
553
|
+
groupClass: typeof HiddenCanvasGroup;
|
|
554
|
+
parent: "stage";
|
|
555
|
+
};
|
|
556
|
+
rendered: {
|
|
557
|
+
groupClass: typeof PIXI.Container;
|
|
558
|
+
parent: "stage";
|
|
559
|
+
};
|
|
560
|
+
environment: {
|
|
561
|
+
groupClass: typeof EnvironmentCanvasGroup;
|
|
562
|
+
parent: "rendered";
|
|
563
|
+
};
|
|
564
|
+
primary: {
|
|
565
|
+
groupClass: typeof PrimaryCanvasGroup;
|
|
566
|
+
parent: "environment";
|
|
567
|
+
};
|
|
568
|
+
effects: {
|
|
569
|
+
groupClass: ConstructorOf<TEffectsCanvasGroup>;
|
|
570
|
+
parent: "environment";
|
|
571
|
+
};
|
|
572
|
+
interface: {
|
|
573
|
+
groupClass: typeof InterfaceCanvasGroup;
|
|
574
|
+
parent: "rendered";
|
|
575
|
+
};
|
|
576
|
+
};
|
|
577
|
+
layers: {
|
|
578
|
+
drawings: {
|
|
579
|
+
group: "primary";
|
|
580
|
+
layerClass: typeof layers.DrawingsLayer;
|
|
581
|
+
};
|
|
582
|
+
grid: {
|
|
583
|
+
group: "primary";
|
|
584
|
+
layerClass: typeof layers.GridLayer;
|
|
585
|
+
};
|
|
586
|
+
walls: {
|
|
587
|
+
group: "effects";
|
|
588
|
+
layerClass: ConstructorOf<NonNullable<TWallDocument["object"]>["layer"]>;
|
|
589
|
+
};
|
|
590
|
+
templates: {
|
|
591
|
+
group: "primary";
|
|
592
|
+
layerClass: ConstructorOf<NonNullable<TMeasuredTemplateDocument["object"]>["layer"]>;
|
|
593
|
+
};
|
|
594
|
+
notes: {
|
|
595
|
+
group: "interface";
|
|
596
|
+
layerClass: typeof layers.NotesLayer;
|
|
597
|
+
};
|
|
598
|
+
tokens: {
|
|
599
|
+
group: "primary";
|
|
600
|
+
layerClass: ConstructorOf<NonNullable<TTokenDocument["object"]>["layer"]>;
|
|
601
|
+
};
|
|
602
|
+
tiles: {
|
|
603
|
+
group: "primary";
|
|
604
|
+
layerClass: typeof layers.TilesLayer;
|
|
605
|
+
};
|
|
606
|
+
sounds: {
|
|
607
|
+
group: "interface";
|
|
608
|
+
layerClass: typeof layers.SoundsLayer;
|
|
609
|
+
};
|
|
610
|
+
lighting: {
|
|
611
|
+
group: "effects";
|
|
612
|
+
layerClass: ConstructorOf<NonNullable<TAmbientLightDocument["object"]>["layer"]>;
|
|
613
|
+
};
|
|
614
|
+
controls: {
|
|
615
|
+
group: "interface";
|
|
616
|
+
layerClass: typeof layers.ControlsLayer;
|
|
617
|
+
};
|
|
618
|
+
};
|
|
619
|
+
lightLevels: {
|
|
620
|
+
dark: number;
|
|
621
|
+
halfdark: number;
|
|
622
|
+
dim: number;
|
|
623
|
+
bright: number;
|
|
624
|
+
};
|
|
625
|
+
|
|
626
|
+
polygonBackends: {
|
|
627
|
+
sight: typeof ClockwiseSweepPolygon;
|
|
628
|
+
light: typeof ClockwiseSweepPolygon;
|
|
629
|
+
sound: typeof ClockwiseSweepPolygon;
|
|
630
|
+
move: typeof ClockwiseSweepPolygon;
|
|
631
|
+
};
|
|
632
|
+
dragSpeedModifier: number;
|
|
633
|
+
maxZoom: number;
|
|
634
|
+
objectBorderThickness: number;
|
|
635
|
+
lightAnimations: Record<string, LightSourceAnimationConfig>;
|
|
636
|
+
|
|
637
|
+
pings: {
|
|
638
|
+
types: {
|
|
639
|
+
PULSE: "pulse";
|
|
640
|
+
ALERT: "alert";
|
|
641
|
+
PULL: "chevron";
|
|
642
|
+
ARROW: "arrow";
|
|
643
|
+
};
|
|
644
|
+
styles: {
|
|
645
|
+
alert: {
|
|
646
|
+
class: AlertPing;
|
|
647
|
+
color: string;
|
|
648
|
+
size: number;
|
|
649
|
+
duration: number;
|
|
650
|
+
};
|
|
651
|
+
arrow: {
|
|
652
|
+
class: ArrowPing;
|
|
653
|
+
size: number;
|
|
654
|
+
duration: number;
|
|
655
|
+
};
|
|
656
|
+
chevron: {
|
|
657
|
+
class: ChevronPing;
|
|
658
|
+
size: number;
|
|
659
|
+
duration: number;
|
|
660
|
+
};
|
|
661
|
+
pulse: {
|
|
662
|
+
class: PulsePing;
|
|
663
|
+
size: number;
|
|
664
|
+
duration: number;
|
|
665
|
+
};
|
|
666
|
+
};
|
|
667
|
+
pullSpeed: number;
|
|
668
|
+
};
|
|
669
|
+
|
|
670
|
+
/** The set of VisionMode definitions which are available to be used for Token vision. */
|
|
671
|
+
visionModes: {
|
|
672
|
+
// Default (Basic) Vision
|
|
673
|
+
basic: perception.VisionMode;
|
|
674
|
+
|
|
675
|
+
// Darkvision
|
|
676
|
+
darkvision: perception.VisionMode;
|
|
677
|
+
|
|
678
|
+
// Monochromatic
|
|
679
|
+
monochromatic: perception.VisionMode;
|
|
680
|
+
|
|
681
|
+
// Blindness
|
|
682
|
+
blindness: perception.VisionMode;
|
|
683
|
+
|
|
684
|
+
// Tremorsense
|
|
685
|
+
tremorsense: perception.VisionMode;
|
|
686
|
+
|
|
687
|
+
// Light Amplification
|
|
688
|
+
lightAmplification: perception.VisionMode;
|
|
689
|
+
|
|
690
|
+
[key: string]: perception.VisionMode;
|
|
691
|
+
};
|
|
692
|
+
|
|
693
|
+
/** The set of DetectionMode definitions which are available to be used for visibility detection. */
|
|
694
|
+
detectionModes: {
|
|
695
|
+
basicSight: perception.DetectionModeDarkvision;
|
|
696
|
+
seeInvisibility: perception.DetectionModeInvisibility;
|
|
697
|
+
senseInvisibility: perception.DetectionModeInvisibility;
|
|
698
|
+
feelTremor: perception.DetectionModeTremor;
|
|
699
|
+
seeAll: perception.DetectionModeAll;
|
|
700
|
+
senseAll: perception.DetectionModeAll;
|
|
701
|
+
} & Record<string, perception.DetectionMode | undefined>;
|
|
702
|
+
};
|
|
703
|
+
|
|
704
|
+
/** Configure the default Token text style so that it may be reused and overridden by modules */
|
|
705
|
+
canvasTextStyle: PIXI.TextStyle;
|
|
706
|
+
|
|
707
|
+
/** Available Weather Effects implemntations */
|
|
708
|
+
weatherEffects: Record<string, WeatherAmbienceConfiguration>;
|
|
709
|
+
|
|
710
|
+
/** Configuration for dice rolling behaviors in the Foundry VTT client */
|
|
711
|
+
Dice: {
|
|
712
|
+
types: (typeof dice.terms.Die | typeof dice.terms.DiceTerm)[];
|
|
713
|
+
rollModes: Record<RollMode, string>;
|
|
714
|
+
rolls: ConstructorOf<dice.Roll>[];
|
|
715
|
+
termTypes: Record<string, ConstructorOf<dice.terms.RollTerm> & { fromData(data: object): dice.terms.RollTerm }>;
|
|
716
|
+
terms: {
|
|
717
|
+
c: typeof dice.terms.Coin;
|
|
718
|
+
d: typeof dice.terms.Die;
|
|
719
|
+
f: typeof dice.terms.FateDie;
|
|
720
|
+
[key: string]: ConstructorOf<dice.terms.DiceTerm>;
|
|
721
|
+
};
|
|
722
|
+
randomUniform: () => number;
|
|
723
|
+
|
|
724
|
+
/**
|
|
725
|
+
* A collection of custom functions that can be included in roll expressions.
|
|
726
|
+
*/
|
|
727
|
+
functions: Record<string, RollFunction>;
|
|
728
|
+
};
|
|
729
|
+
|
|
730
|
+
/** The control icons used for rendering common HUD operations */
|
|
731
|
+
controlIcons: ControlIconsConfig;
|
|
732
|
+
|
|
733
|
+
/** A collection of fonts to load either from the user's local system, or remotely. */
|
|
734
|
+
fontDefinitions: Record<string, FontFamilyDefinition>;
|
|
735
|
+
|
|
736
|
+
/** deprecated since v10. */
|
|
737
|
+
_fontFamilies: string[];
|
|
738
|
+
|
|
739
|
+
/** The default font family used for text labels on the PIXI Canvas */
|
|
740
|
+
defaultFontFamily: string;
|
|
741
|
+
|
|
742
|
+
/** An array of status effect icons which can be applied to Tokens */
|
|
743
|
+
statusEffects: StatusEffectConfig[];
|
|
744
|
+
|
|
745
|
+
/** A mapping of status effect IDs which provide some additional mechanical integration. */
|
|
746
|
+
specialStatusEffects: {
|
|
747
|
+
DEFEATED: string;
|
|
748
|
+
INVISIBLE: string;
|
|
749
|
+
BLIND: string;
|
|
750
|
+
[key: string]: string;
|
|
751
|
+
};
|
|
752
|
+
|
|
753
|
+
/** A mapping of core audio effects used which can be replaced by systems or mods */
|
|
754
|
+
sounds: {
|
|
755
|
+
dice: AudioFilePath;
|
|
756
|
+
lock: string;
|
|
757
|
+
notification: string;
|
|
758
|
+
combat: string;
|
|
759
|
+
};
|
|
760
|
+
|
|
761
|
+
/** Define the set of supported languages for localization */
|
|
762
|
+
supportedLanguages: {
|
|
763
|
+
en: string;
|
|
764
|
+
[key: string]: string;
|
|
765
|
+
};
|
|
766
|
+
|
|
767
|
+
/** Maximum canvas zoom scale */
|
|
768
|
+
maxCanvasZoom: number;
|
|
769
|
+
|
|
770
|
+
/** Custom enrichers for TextEditor.enrichHTML */
|
|
771
|
+
TextEditor: {
|
|
772
|
+
enrichers: {
|
|
773
|
+
pattern: RegExp;
|
|
774
|
+
enricher: (match: RegExpMatchArray, options: EnrichmentOptions) => Promise<HTMLElement | null>;
|
|
775
|
+
}[];
|
|
776
|
+
};
|
|
777
|
+
|
|
778
|
+
/* -------------------------------------------- */
|
|
779
|
+
/* Integrations */
|
|
780
|
+
/* -------------------------------------------- */
|
|
781
|
+
|
|
782
|
+
/** Default configuration options for TinyMCE editors */
|
|
783
|
+
// See https://www.tiny.cloud/docs/configure/content-appearance/
|
|
784
|
+
TinyMCE: TinyMCE.EditorOptions;
|
|
785
|
+
|
|
786
|
+
ui: {
|
|
787
|
+
actors: ConstructorOf<foundry.applications.sidebar.tabs.ActorDirectory<documents.Actor<null>>>;
|
|
788
|
+
chat: ConstructorOf<TChatLog>;
|
|
789
|
+
combat: ConstructorOf<TCombatTracker>;
|
|
790
|
+
compendium: ConstructorOf<TCompendiumDirectory>;
|
|
791
|
+
controls: typeof applications.ui.SceneControls;
|
|
792
|
+
hotbar: ConstructorOf<THotbar>;
|
|
793
|
+
items: ConstructorOf<sidebar.tabs.ItemDirectory<documents.Item<null>>>;
|
|
794
|
+
journal: typeof sidebar.tabs.JournalDirectory;
|
|
795
|
+
macros: typeof sidebar.tabs.MacroDirectory;
|
|
796
|
+
menu: typeof MainMenu;
|
|
797
|
+
nav: typeof SceneNavigation;
|
|
798
|
+
notifications: typeof Notifications;
|
|
799
|
+
pause: typeof applications.ui.GamePause;
|
|
800
|
+
players: typeof applications.ui.Players;
|
|
801
|
+
playlists: typeof sidebar.tabs.PlaylistDirectory;
|
|
802
|
+
scenes: typeof sidebar.tabs.SceneDirectory;
|
|
803
|
+
settings: typeof sidebar.tabs.Settings;
|
|
804
|
+
sidebar: typeof sidebar.Sidebar;
|
|
805
|
+
tables: typeof sidebar.tabs.RollTableDirectory;
|
|
806
|
+
webrtc: typeof CameraViews;
|
|
807
|
+
};
|
|
808
|
+
|
|
809
|
+
ux: {
|
|
810
|
+
ContextMenu: typeof applications.ux.ContextMenu;
|
|
811
|
+
Draggable: typeof applications.ux.Draggable;
|
|
812
|
+
DragDrop: typeof applications.ux.DragDrop;
|
|
813
|
+
FilePicker: typeof applications.apps.FilePicker;
|
|
814
|
+
TextEditor: typeof applications.ux.TextEditor;
|
|
815
|
+
TooltipManager: typeof foundry.helpers.interaction.TooltipManager;
|
|
816
|
+
};
|
|
817
|
+
|
|
818
|
+
/**
|
|
819
|
+
* System and modules must prefix the names of the queries they register (e.g. "my-module.aCustomQuery").
|
|
820
|
+
* Non-prefixed query names are reserved by core.
|
|
821
|
+
*/
|
|
822
|
+
queries: {
|
|
823
|
+
dialog: typeof applications.api.DialogV2._handleQuery;
|
|
824
|
+
confirmTeleportToken: typeof foundry.data.regionBehaviors.TeleportTokenRegionBehaviorType._confirmQuery;
|
|
825
|
+
[key: string]: Function;
|
|
826
|
+
};
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
interface ControlIconsConfig {
|
|
830
|
+
combat: ImageFilePath;
|
|
831
|
+
visibility: ImageFilePath;
|
|
832
|
+
effects: ImageFilePath;
|
|
833
|
+
lock: ImageFilePath;
|
|
834
|
+
up: ImageFilePath;
|
|
835
|
+
down: ImageFilePath;
|
|
836
|
+
defeated: ImageFilePath;
|
|
837
|
+
[key: string]: ImageFilePath | undefined;
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
interface SheetClassConfig {
|
|
841
|
+
canBeDefault: boolean;
|
|
842
|
+
canConfigure: boolean;
|
|
843
|
+
cls: typeof foundry.appv1.api.DocumentSheet | typeof foundry.applications.api.DocumentSheetV2;
|
|
844
|
+
default: boolean;
|
|
845
|
+
id: string;
|
|
846
|
+
label: string;
|
|
847
|
+
themes: Record<string, string>;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
interface StatusEffectConfig extends Partial<ActiveEffectSource> {
|
|
851
|
+
id: string;
|
|
852
|
+
name: string;
|
|
853
|
+
img: ImageFilePath;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
interface FontFamilyDefinition {
|
|
857
|
+
/** Whether the font is available in the rich text editor. This will also enable it for notes and drawings. */
|
|
858
|
+
editor: boolean;
|
|
859
|
+
fonts: FontDefinition[];
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
interface FontDefinition extends FontFaceDescriptors {
|
|
863
|
+
/**
|
|
864
|
+
* Individual font face definitions for this font family. If this is empty, the font family may only be loaded
|
|
865
|
+
* from the client's OS-installed fonts.
|
|
866
|
+
*/
|
|
867
|
+
urls: string[];
|
|
868
|
+
}
|