@league-of-foundry-developers/foundry-vtt-types 9.238.0 → 9.249.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/README.md +3 -3
- package/package.json +1 -1
- package/src/foundry/common/constants.mjs.d.ts +1 -0
- package/src/foundry/common/data/data.mjs/adventureData.d.ts +21 -21
- package/src/foundry/common/data/data.mjs/journalEntryData.d.ts +3 -3
- package/src/foundry/common/data/data.mjs/userData.d.ts +10 -3
- package/src/foundry/common/documents.mjs/baseCombatant.d.ts +2 -4
- package/src/foundry/common/utils/geometry.mjs.d.ts +148 -0
- package/src/foundry/common/utils/helpers.mjs.d.ts +37 -37
- package/src/foundry/common/utils/module.mjs.d.ts +1 -0
- package/src/foundry/common/utils/primitives.mjs.d.ts +7 -0
- package/src/foundry/foundry.js/application.d.ts +138 -110
- package/src/foundry/foundry.js/applications/basePlaceableHUD.d.ts +2 -2
- package/src/foundry/foundry.js/applications/basePlaceableHUDs/drawingHUD.d.ts +2 -2
- package/src/foundry/foundry.js/applications/basePlaceableHUDs/tileHUD.d.ts +2 -2
- package/src/foundry/foundry.js/applications/basePlaceableHUDs/tokenHUD.d.ts +3 -3
- package/src/foundry/foundry.js/applications/cameraViews.d.ts +2 -2
- package/src/foundry/foundry.js/applications/chatPopout.d.ts +3 -3
- package/src/foundry/foundry.js/applications/compendium.d.ts +2 -2
- package/src/foundry/foundry.js/applications/dialog.d.ts +1 -1
- package/src/foundry/foundry.js/applications/filePicker.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplication.d.ts +45 -14
- package/src/foundry/foundry.js/applications/formApplications/avConfig.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/combatTrackerConfig.d.ts +2 -2
- package/src/foundry/foundry.js/applications/formApplications/defaultTokenConfig.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/documentSheet.d.ts +20 -31
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/activeEffectConfig.d.ts +2 -2
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/actorSheet.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/ambientLightConfig.d.ts +4 -4
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/ambientSoundConfig.d.ts +4 -4
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/combatantConfig.d.ts +3 -3
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/folderConfig.d.ts +2 -2
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/itemSheet.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/journalSheet.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/macroConfig.d.ts +3 -3
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/measuredTemplateConfig.d.ts +3 -3
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/noteConfig.d.ts +3 -3
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/permissionControl.d.ts +2 -2
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/playlistConfig.d.ts +3 -3
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/playlistSoundConfig.d.ts +3 -3
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/rollTableConfig.d.ts +2 -2
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/sceneConfig.d.ts +4 -4
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/tileConfig.d.ts +2 -2
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/userConfig.d.ts +7 -7
- package/src/foundry/foundry.js/applications/formApplications/drawingConfig.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/entitySheetConfig.d.ts +3 -3
- package/src/foundry/foundry.js/applications/formApplications/gridConfig.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/imagePopout.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/keybindingsConfig.d.ts +2 -2
- package/src/foundry/foundry.js/applications/formApplications/moduleManagement.d.ts +2 -2
- package/src/foundry/foundry.js/applications/formApplications/permissionConfig.d.ts +2 -2
- package/src/foundry/foundry.js/applications/formApplications/settingsConfig.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/tokenConfig.d.ts +3 -3
- package/src/foundry/foundry.js/applications/formApplications/wallConfig.d.ts +3 -3
- package/src/foundry/foundry.js/applications/formApplications/worldConfig.d.ts +1 -1
- package/src/foundry/foundry.js/applications/frameViewer.d.ts +1 -1
- package/src/foundry/foundry.js/applications/headsUpDisplay.d.ts +2 -2
- package/src/foundry/foundry.js/applications/hotbar.d.ts +2 -2
- package/src/foundry/foundry.js/applications/mainMenu.d.ts +2 -2
- package/src/foundry/foundry.js/applications/notifications.d.ts +7 -4
- package/src/foundry/foundry.js/applications/pause.d.ts +2 -2
- package/src/foundry/foundry.js/applications/playerList.d.ts +2 -2
- package/src/foundry/foundry.js/applications/sceneControls.d.ts +2 -2
- package/src/foundry/foundry.js/applications/sceneNavigation.d.ts +3 -3
- package/src/foundry/foundry.js/applications/sidebar.d.ts +2 -2
- package/src/foundry/foundry.js/applications/sidebarTab.d.ts +4 -7
- package/src/foundry/foundry.js/applications/sidebarTabs/chatLog.d.ts +3 -3
- package/src/foundry/foundry.js/applications/sidebarTabs/combatTracker.d.ts +26 -28
- package/src/foundry/foundry.js/applications/sidebarTabs/compendiumDirectory.d.ts +2 -2
- package/src/foundry/foundry.js/applications/sidebarTabs/settings.d.ts +2 -2
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectory.d.ts +1 -1
- package/src/foundry/foundry.js/audioContainer.d.ts +28 -10
- package/src/foundry/foundry.js/canvas.d.ts +5 -0
- package/src/foundry/foundry.js/canvasAnimation.d.ts +30 -7
- package/src/foundry/foundry.js/clientDocumentMixin.d.ts +2 -1
- package/src/foundry/foundry.js/clientDocuments/card.d.ts +2 -1
- package/src/foundry/foundry.js/clientDocuments/cards.d.ts +4 -18
- package/src/foundry/foundry.js/clientDocuments/chatMessage.d.ts +2 -2
- package/src/foundry/foundry.js/clientDocuments/combat.d.ts +46 -44
- package/src/foundry/foundry.js/clientDocuments/combatant.d.ts +14 -17
- package/src/foundry/foundry.js/clientDocuments/folder.d.ts +15 -9
- package/src/foundry/foundry.js/clientDocuments/rollTable.d.ts +2 -2
- package/src/foundry/foundry.js/clientKeybindings.d.ts +12 -2
- package/src/foundry/foundry.js/clientSettings.d.ts +2 -2
- package/src/foundry/foundry.js/collections/documentCollection.d.ts +1 -1
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/folders.d.ts +1 -1
- package/src/foundry/foundry.js/collisionResult.d.ts +60 -0
- package/src/foundry/foundry.js/config.d.ts +38 -36
- package/src/foundry/foundry.js/dragDrop.d.ts +27 -34
- package/src/foundry/foundry.js/game.d.ts +89 -43
- package/src/foundry/foundry.js/hooks.d.ts +154 -85
- package/src/foundry/foundry.js/imageHelper.d.ts +26 -2
- package/src/foundry/foundry.js/keyboardManager.d.ts +2 -2
- package/src/foundry/foundry.js/pixi/containers/placeableObject.d.ts +2 -2
- package/src/foundry/foundry.js/pixi/containers/placeableObjects/token.d.ts +2 -2
- package/src/foundry/foundry.js/pixi/index.d.ts +3 -0
- package/src/foundry/foundry.js/pixi/meshes/index.d.ts +1 -0
- package/src/foundry/foundry.js/pixi/meshes/samplerMesh.d.ts +22 -0
- package/src/foundry/foundry.js/pixi/points/index.d.ts +1 -0
- package/src/foundry/foundry.js/pixi/points/wallEndpoint.d.ts +92 -0
- package/src/foundry/foundry.js/pixi/polygons/index.d.ts +2 -1
- package/src/foundry/foundry.js/pixi/polygons/pointSourcePolygon.d.ts +98 -0
- package/src/foundry/foundry.js/pixi/polygons/pointSourcePolygons/clockwiseSweepPolygon.d.ts +396 -0
- package/src/foundry/foundry.js/pixi/polygons/pointSourcePolygons/index.d.ts +1 -0
- package/src/foundry/foundry.js/pixi/rectangles/normalizedRectangle.d.ts +7 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShader.d.ts +11 -37
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShader.d.ts +114 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveBackgroundShader.d.ts +57 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShader.d.ts +47 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/bewitchingWaveColorationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/chromaColorationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/emanationColorationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/energyFieldColorationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/fairyLightColorationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/fogColorationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardColorationShaders → adaptiveLightingShaders/adaptiveColorationShaders}/ghostLightColorationShader.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/hexaDomeColorationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardColorationShaders → adaptiveLightingShaders/adaptiveColorationShaders}/index.d.ts +5 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/lightDomeColorationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardColorationShaders → adaptiveLightingShaders/adaptiveColorationShaders}/pulseColorationShader.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/radialRainbowColorationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardColorationShaders → adaptiveLightingShaders/adaptiveColorationShaders}/sunburstColorationShader.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/swirlingRainbowColorationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardColorationShaders → adaptiveLightingShaders/adaptiveColorationShaders}/torchColorationShader.d.ts +3 -2
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/vortexColorationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardColorationShaders → adaptiveLightingShaders/adaptiveColorationShaders}/waveColorationShader.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveIlluminationShader.d.ts +63 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveIlluminationShaders/bewitchingWaveIlluminationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/blackHoleIlluminationShader.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveIlluminationShaders/fairyLightIlluminationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/ghostLightIlluminationShader.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/index.d.ts +3 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/pulseIlluminationShader.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/roilingIlluminationShader.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/sunburstIlluminationShader.d.ts +1 -2
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/torchIlluminationShader.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveIlluminationShaders/vortexIlluminationShader.d.ts +6 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/waveIlluminationShader.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/index.d.ts +5 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/baseSamplerShader.d.ts +22 -0
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/index.d.ts +3 -4
- package/src/foundry/foundry.js/pixi/texts/preciseText.d.ts +10 -2
- package/src/foundry/foundry.js/pixi/transforms/index.d.ts +1 -0
- package/src/foundry/foundry.js/pixi/transforms/synchronizedTransform.d.ts +38 -0
- package/src/foundry/foundry.js/pointSource.d.ts +59 -328
- package/src/foundry/foundry.js/pointSources/index.d.ts +3 -0
- package/src/foundry/foundry.js/pointSources/lightSource.d.ts +417 -0
- package/src/foundry/foundry.js/pointSources/soundSource.d.ts +46 -0
- package/src/foundry/foundry.js/pointSources/visionSource.d.ts +125 -0
- package/src/foundry/foundry.js/polygonEdge.d.ts +26 -0
- package/src/foundry/foundry.js/polygonVertex.d.ts +89 -0
- package/src/foundry/foundry.js/quadtree.d.ts +2 -2
- package/src/foundry/foundry.js/quadtreeCulling.d.ts +11 -0
- package/src/foundry/foundry.js/ray.d.ts +156 -162
- package/src/foundry/foundry.js/rays/index.d.ts +1 -0
- package/src/foundry/foundry.js/rays/sightRay.d.ts +34 -0
- package/src/foundry/foundry.js/roll.d.ts +40 -43
- package/src/foundry/foundry.js/screenCulling.d.ts +19 -0
- package/src/foundry/foundry.js/searchFilter.d.ts +37 -33
- package/src/foundry/foundry.js/specialEffect.d.ts +1 -1
- package/src/foundry/foundry.js/textureLoader.d.ts +28 -18
- package/src/foundry/foundry.js/textureUtils.d.ts +5 -8
- package/src/foundry/foundry.js/videoHelper.d.ts +2 -1
- package/src/foundry/index.d.ts +26 -27
- package/src/foundry/foundry.js/pixi/polygons/sourcePolygon.d.ts +0 -25
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardColorationShader.d.ts +0 -21
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardColorationShaders/chromaColorationShader.d.ts +0 -18
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardColorationShaders/emanationColorationShader.d.ts +0 -17
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardColorationShaders/energyFieldColorationShader.d.ts +0 -18
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardColorationShaders/fogColorationShader.d.ts +0 -17
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardColorationShaders/hexaDomeColorationShader.d.ts +0 -17
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardColorationShaders/lightDomeColorationShader.d.ts +0 -17
- package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardIlluminationShader.d.ts +0 -22
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* An application for configuring the permissions which are available to each User role.
|
3
3
|
*/
|
4
|
-
declare class PermissionConfig extends FormApplication<
|
4
|
+
declare class PermissionConfig extends FormApplication<FormApplicationOptions, PermissionConfig.Data> {
|
5
5
|
/**
|
6
6
|
* @override
|
7
7
|
* @defaultValue
|
@@ -23,7 +23,7 @@ declare class PermissionConfig extends FormApplication<FormApplication.Options,
|
|
23
23
|
* @param options - (unused)
|
24
24
|
* @override
|
25
25
|
*/
|
26
|
-
getData(options?: Partial<
|
26
|
+
getData(options?: Partial<FormApplicationOptions>): PermissionConfig.Data;
|
27
27
|
|
28
28
|
/**
|
29
29
|
* Prepare the permissions object used to render the configuration template
|
@@ -8,7 +8,7 @@ declare global {
|
|
8
8
|
* @typeParam Data - The data structure used to render the handlebars template.
|
9
9
|
*/
|
10
10
|
class SettingsConfig<
|
11
|
-
Options extends
|
11
|
+
Options extends FormApplicationOptions = FormApplicationOptions,
|
12
12
|
Data extends object = SettingsConfig.Data
|
13
13
|
> extends FormApplication<Options, Data> {
|
14
14
|
/**
|
@@ -8,7 +8,7 @@ declare global {
|
|
8
8
|
* @typeParam Data - The data structure used to render the handlebars template.
|
9
9
|
*/
|
10
10
|
class TokenConfig<
|
11
|
-
Options extends
|
11
|
+
Options extends FormApplicationOptions = FormApplicationOptions,
|
12
12
|
Data extends object = TokenConfig.Data<Options>
|
13
13
|
> extends FormApplication<
|
14
14
|
Options,
|
@@ -37,7 +37,7 @@ declare global {
|
|
37
37
|
* })
|
38
38
|
* ```
|
39
39
|
*/
|
40
|
-
static get defaultOptions():
|
40
|
+
static get defaultOptions(): FormApplicationOptions;
|
41
41
|
|
42
42
|
/** @override */
|
43
43
|
get id(): string;
|
@@ -103,7 +103,7 @@ declare global {
|
|
103
103
|
value: string[][];
|
104
104
|
}
|
105
105
|
|
106
|
-
interface Data<Options extends
|
106
|
+
interface Data<Options extends FormApplicationOptions = FormApplicationOptions> {
|
107
107
|
cssClasses: string;
|
108
108
|
isPrototype: boolean;
|
109
109
|
hasAlternates: boolean;
|
@@ -7,7 +7,7 @@ declare global {
|
|
7
7
|
* @typeParam Data - The data structure used to render the handlebars template.
|
8
8
|
*/
|
9
9
|
class WallConfig<
|
10
|
-
Options extends
|
10
|
+
Options extends FormApplicationOptions = FormApplicationOptions,
|
11
11
|
Data extends object = WallConfig.Data<Options>
|
12
12
|
> extends FormApplication<Options, Data, InstanceType<ConfiguredDocumentClassForName<'Wall'>>> {
|
13
13
|
/**
|
@@ -20,7 +20,7 @@ declare global {
|
|
20
20
|
* options.width = 400;
|
21
21
|
* ```
|
22
22
|
*/
|
23
|
-
static get defaultOptions():
|
23
|
+
static get defaultOptions(): FormApplicationOptions;
|
24
24
|
|
25
25
|
/** @override */
|
26
26
|
get title(): string;
|
@@ -39,7 +39,7 @@ declare global {
|
|
39
39
|
}
|
40
40
|
|
41
41
|
namespace WallConfig {
|
42
|
-
interface Data<Options extends
|
42
|
+
interface Data<Options extends FormApplicationOptions = FormApplicationOptions> {
|
43
43
|
object: foundry.data.WallData['_source'];
|
44
44
|
options: Options;
|
45
45
|
moveTypes: {
|
@@ -21,7 +21,7 @@ declare class FrameViewer extends Application {
|
|
21
21
|
static get defaultOptions(): typeof Application['defaultOptions'];
|
22
22
|
|
23
23
|
/** @override */
|
24
|
-
getData(options?: Partial<
|
24
|
+
getData(options?: Partial<ApplicationOptions>): Promise<{ src: string }>;
|
25
25
|
|
26
26
|
/** @override */
|
27
27
|
close(options?: Application.CloseOptions): ReturnType<Application['close']>;
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* Render the HUD container
|
3
3
|
* @typeParam Options - the type of the options object
|
4
4
|
*/
|
5
|
-
declare class HeadsUpDisplay<Options extends
|
5
|
+
declare class HeadsUpDisplay<Options extends ApplicationOptions = ApplicationOptions> extends Application<Options> {
|
6
6
|
/**
|
7
7
|
* Token HUD
|
8
8
|
*/
|
@@ -34,7 +34,7 @@ declare class HeadsUpDisplay<Options extends Application.Options = Application.O
|
|
34
34
|
* })
|
35
35
|
* ```
|
36
36
|
*/
|
37
|
-
static get defaultOptions():
|
37
|
+
static get defaultOptions(): ApplicationOptions;
|
38
38
|
|
39
39
|
/** @override */
|
40
40
|
getData(options?: Partial<Options>): {} | { width: number; height: number };
|
@@ -16,7 +16,7 @@ declare global {
|
|
16
16
|
*
|
17
17
|
* @typeParam Options - the type of the options object
|
18
18
|
*/
|
19
|
-
class Hotbar<Options extends
|
19
|
+
class Hotbar<Options extends ApplicationOptions = ApplicationOptions> extends Application<Options> {
|
20
20
|
constructor(options?: Partial<Options>);
|
21
21
|
|
22
22
|
/**
|
@@ -55,7 +55,7 @@ declare global {
|
|
55
55
|
* })
|
56
56
|
* ```
|
57
57
|
*/
|
58
|
-
static get defaultOptions():
|
58
|
+
static get defaultOptions(): ApplicationOptions;
|
59
59
|
|
60
60
|
/** @override */
|
61
61
|
getData(options?: Partial<Options>): Hotbar.Data | Promise<Hotbar.Data>;
|
@@ -14,7 +14,7 @@ declare class MainMenu extends Application {
|
|
14
14
|
* }
|
15
15
|
* ```
|
16
16
|
* */
|
17
|
-
static get defaultOptions():
|
17
|
+
static get defaultOptions(): ApplicationOptions;
|
18
18
|
|
19
19
|
/**
|
20
20
|
* The structure of menu items
|
@@ -54,7 +54,7 @@ declare class MainMenu extends Application {
|
|
54
54
|
* @override
|
55
55
|
* @param options - (unused)
|
56
56
|
*/
|
57
|
-
getData(options?: Partial<
|
57
|
+
getData(options?: Partial<ApplicationOptions>): { items: MainMenu.MenuStructure };
|
58
58
|
|
59
59
|
/** @override */
|
60
60
|
activateListeners(html: JQuery): void;
|
@@ -13,7 +13,7 @@
|
|
13
13
|
*
|
14
14
|
* @typeParam Options - the type of the options object
|
15
15
|
*/
|
16
|
-
declare class Notifications<Options extends
|
16
|
+
declare class Notifications<Options extends ApplicationOptions = ApplicationOptions> extends Application<Options> {
|
17
17
|
constructor(options?: Partial<Options>);
|
18
18
|
|
19
19
|
/**
|
@@ -39,15 +39,18 @@ declare class Notifications<Options extends Application.Options = Application.Op
|
|
39
39
|
* });
|
40
40
|
* ```
|
41
41
|
*/
|
42
|
-
static get defaultOptions():
|
42
|
+
static get defaultOptions(): ApplicationOptions;
|
43
43
|
|
44
44
|
/**
|
45
45
|
* Initialize the Notifications system by displaying any system-generated messages which were passed from the server.
|
46
46
|
*/
|
47
47
|
initialize(): void;
|
48
48
|
|
49
|
-
/**
|
50
|
-
|
49
|
+
/**
|
50
|
+
* @override
|
51
|
+
* @remarks This return a `JQuery`, which is incompatible with the expected `Promise<JQuery>` (see https://gitlab.com/foundrynet/foundryvtt/-/issues/6554).
|
52
|
+
*/
|
53
|
+
protected _renderInner(data: object): any;
|
51
54
|
|
52
55
|
/** @override */
|
53
56
|
protected _render(force?: boolean, options?: Application.RenderOptions<Options>): Promise<void>;
|
@@ -5,10 +5,10 @@
|
|
5
5
|
* @typeParam Data - The data structure used to render the handlebars template.
|
6
6
|
*/
|
7
7
|
declare class Pause<
|
8
|
-
Options extends
|
8
|
+
Options extends ApplicationOptions = ApplicationOptions,
|
9
9
|
Data extends object = Pause.Data
|
10
10
|
> extends Application<Options> {
|
11
|
-
static get defaultOptions():
|
11
|
+
static get defaultOptions(): ApplicationOptions;
|
12
12
|
|
13
13
|
/** @override */
|
14
14
|
getData(options?: Partial<Options>): Data | Promise<Data>;
|
@@ -6,7 +6,7 @@ declare global {
|
|
6
6
|
*
|
7
7
|
* @typeParam Options - the type of the options object
|
8
8
|
*/
|
9
|
-
class PlayerList<Options extends
|
9
|
+
class PlayerList<Options extends ApplicationOptions = ApplicationOptions> extends Application<Options> {
|
10
10
|
constructor(options?: Partial<Options>);
|
11
11
|
|
12
12
|
/**
|
@@ -25,7 +25,7 @@ declare global {
|
|
25
25
|
* })
|
26
26
|
* ```
|
27
27
|
*/
|
28
|
-
static get defaultOptions():
|
28
|
+
static get defaultOptions(): ApplicationOptions;
|
29
29
|
|
30
30
|
/** @override */
|
31
31
|
render(force?: boolean, options?: Application.RenderOptions<Options>): this;
|
@@ -33,7 +33,7 @@ interface SceneControl {
|
|
33
33
|
* Scene controls navigation menu
|
34
34
|
* @typeParam Options - the type of the options object
|
35
35
|
*/
|
36
|
-
declare class SceneControls<Options extends
|
36
|
+
declare class SceneControls<Options extends ApplicationOptions = ApplicationOptions> extends Application<Options> {
|
37
37
|
constructor(options?: Partial<Options>);
|
38
38
|
|
39
39
|
/**
|
@@ -118,7 +118,7 @@ declare class SceneControls<Options extends Application.Options = Application.Op
|
|
118
118
|
}
|
119
119
|
|
120
120
|
declare namespace SceneControls {
|
121
|
-
export interface Options extends
|
121
|
+
export interface Options extends ApplicationOptions {
|
122
122
|
/**
|
123
123
|
* @defaultValue `100`
|
124
124
|
*/
|
@@ -8,7 +8,7 @@ declare global {
|
|
8
8
|
* @typeParam Data - The data structure used to render the handlebars template.
|
9
9
|
*/
|
10
10
|
class SceneNavigation<
|
11
|
-
Options extends
|
11
|
+
Options extends ApplicationOptions = ApplicationOptions,
|
12
12
|
Data extends object = SceneNavigation.Data
|
13
13
|
> extends Application<Options> {
|
14
14
|
constructor(options?: Partial<Options>);
|
@@ -31,7 +31,7 @@ declare global {
|
|
31
31
|
* })
|
32
32
|
* ```
|
33
33
|
*/
|
34
|
-
static get defaultOptions():
|
34
|
+
static get defaultOptions(): ApplicationOptions;
|
35
35
|
|
36
36
|
/**
|
37
37
|
* Return an Array of Scenes which are displayed in the Navigation bar
|
@@ -45,7 +45,7 @@ declare global {
|
|
45
45
|
protected _render(force?: boolean, options?: Application.RenderOptions<Options>): Promise<void>;
|
46
46
|
|
47
47
|
/** @override */
|
48
|
-
getData(options?: Partial<
|
48
|
+
getData(options?: Partial<ApplicationOptions>): Data | Promise<Data>;
|
49
49
|
|
50
50
|
/**
|
51
51
|
* Expand the SceneNavigation menu, sliding it down if it is currently collapsed
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* Render the Sidebar container, and after rendering insert Sidebar tabs.
|
3
3
|
* @typeParam Options - the type of the options object
|
4
4
|
*/
|
5
|
-
declare class Sidebar<Options extends
|
5
|
+
declare class Sidebar<Options extends ApplicationOptions = ApplicationOptions> extends Application<Options> {
|
6
6
|
/**
|
7
7
|
* Singleton application instances for each sidebar tab
|
8
8
|
* @defaultValue `{}`
|
@@ -29,7 +29,7 @@ declare class Sidebar<Options extends Application.Options = Application.Options>
|
|
29
29
|
* }
|
30
30
|
* ```
|
31
31
|
*/
|
32
|
-
static get defaultOptions():
|
32
|
+
static get defaultOptions(): ApplicationOptions;
|
33
33
|
|
34
34
|
/**
|
35
35
|
* Return the name of the active Sidebar tab
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* @typeParam Options - The type of the options object
|
4
4
|
*/
|
5
5
|
declare abstract class SidebarTab<
|
6
|
-
Options extends
|
6
|
+
Options extends ApplicationOptions = ApplicationOptions
|
7
7
|
> extends Application<Options> {
|
8
8
|
constructor(...args: ConstructorParameters<typeof Application>);
|
9
9
|
/**
|
@@ -36,16 +36,13 @@ declare abstract class SidebarTab<
|
|
36
36
|
* });
|
37
37
|
* ```
|
38
38
|
*/
|
39
|
-
static get defaultOptions():
|
40
|
-
|
41
|
-
/** @override */
|
42
|
-
protected _renderInner(data: object): Promise<JQuery>;
|
39
|
+
static get defaultOptions(): ApplicationOptions;
|
43
40
|
|
44
41
|
/** @override */
|
45
42
|
protected _render(force?: boolean, options?: Application.RenderOptions<Options>): Promise<void>;
|
46
43
|
|
47
|
-
/**
|
48
|
-
|
44
|
+
/** @override */
|
45
|
+
protected _renderInner(data: object): Promise<JQuery>;
|
49
46
|
|
50
47
|
/**
|
51
48
|
* Activate this SidebarTab, switching focus to it
|
@@ -276,7 +276,7 @@ declare global {
|
|
276
276
|
* @param mode - The new roll mode setting
|
277
277
|
* @internal
|
278
278
|
*/
|
279
|
-
protected static _setRollMode(mode:
|
279
|
+
protected static _setRollMode(mode: keyof CONFIG.Dice.RollModes): void;
|
280
280
|
}
|
281
281
|
|
282
282
|
namespace ChatLog {
|
@@ -297,12 +297,12 @@ declare global {
|
|
297
297
|
|
298
298
|
interface Data {
|
299
299
|
user: InstanceType<ConfiguredDocumentClass<typeof User>>;
|
300
|
-
rollMode:
|
300
|
+
rollMode: keyof CONFIG.Dice.RollModes;
|
301
301
|
rollModes: typeof CONFIG['Dice']['rollModes'];
|
302
302
|
isStream: boolean;
|
303
303
|
}
|
304
304
|
|
305
|
-
interface Options extends
|
305
|
+
interface Options extends ApplicationOptions {
|
306
306
|
/**
|
307
307
|
* @defaultValue `'chat'`
|
308
308
|
*/
|
@@ -4,7 +4,7 @@ declare global {
|
|
4
4
|
/**
|
5
5
|
* The sidebar directory which organizes and displays world-level Combat documents.
|
6
6
|
*/
|
7
|
-
class CombatTracker<Options extends
|
7
|
+
class CombatTracker<Options extends ApplicationOptions = ApplicationOptions> extends SidebarTab<Options> {
|
8
8
|
constructor(options?: Partial<Options>);
|
9
9
|
|
10
10
|
/**
|
@@ -20,13 +20,23 @@ declare global {
|
|
20
20
|
*/
|
21
21
|
viewed: StoredDocument<InstanceType<ConfiguredDocumentClass<typeof Combat>>> | null;
|
22
22
|
|
23
|
-
/**
|
24
|
-
|
23
|
+
/**
|
24
|
+
* @defaultValue
|
25
|
+
* ```typescript
|
26
|
+
* foundry.utils.mergeObject(super.defaultOptions, {
|
27
|
+
* id: "combat",
|
28
|
+
* template: "templates/sidebar/combat-tracker.html",
|
29
|
+
* title: "COMBAT.SidebarTitle",
|
30
|
+
* scrollY: [".directory-list"]
|
31
|
+
* })
|
32
|
+
* ```
|
33
|
+
*/
|
34
|
+
static get defaultOptions(): ApplicationOptions;
|
25
35
|
|
26
36
|
/**
|
27
37
|
* Return an array of Combat encounters which occur within the current Scene.
|
28
38
|
*/
|
29
|
-
get combats():
|
39
|
+
get combats(): StoredDocument<InstanceType<ConfiguredDocumentClass<typeof Combat>>>[];
|
30
40
|
|
31
41
|
/** @override */
|
32
42
|
createPopout(): this;
|
@@ -115,6 +125,12 @@ declare global {
|
|
115
125
|
*/
|
116
126
|
protected _onCombatantHoverOut(event: JQuery.MouseLeaveEvent): void;
|
117
127
|
|
128
|
+
/**
|
129
|
+
* Highlight a hovered combatant in the tracker.
|
130
|
+
* @param combatant - The Combatant
|
131
|
+
* @param hover - Whether they are being hovered in or out.
|
132
|
+
*/
|
133
|
+
hoverCombatant(combatant: InstanceType<ConfiguredDocumentClass<typeof Combatant>>, hover: boolean): void;
|
118
134
|
/**
|
119
135
|
* Attach context menu options to elements in the tracker
|
120
136
|
* @param html - The HTML element to which context options are attached
|
@@ -123,8 +139,8 @@ declare global {
|
|
123
139
|
protected _contextMenu(html: JQuery): void;
|
124
140
|
|
125
141
|
/**
|
126
|
-
* Get the
|
127
|
-
* @returns The
|
142
|
+
* Get the Combatant entry context options
|
143
|
+
* @returns The Combatant entry context options
|
128
144
|
* @internal
|
129
145
|
*/
|
130
146
|
protected _getEntryContextOptions(): ContextMenuEntry[];
|
@@ -144,6 +160,8 @@ declare global {
|
|
144
160
|
combatCount: number;
|
145
161
|
started: boolean;
|
146
162
|
settings: ClientSettings.Values[`core.${typeof Combat.CONFIG_SETTING}`];
|
163
|
+
linked: boolean;
|
164
|
+
labels: { scoped: string };
|
147
165
|
currentIndex: -1;
|
148
166
|
hasCombat: false;
|
149
167
|
combat: null;
|
@@ -158,6 +176,8 @@ declare global {
|
|
158
176
|
combatCount: number;
|
159
177
|
started: boolean;
|
160
178
|
settings: ClientSettings.Values[`core.${typeof Combat.CONFIG_SETTING}`];
|
179
|
+
linked: boolean;
|
180
|
+
labels: { scoped: string };
|
161
181
|
currentIndex: number;
|
162
182
|
hasCombat: true;
|
163
183
|
combat: StoredDocument<InstanceType<ConfiguredDocumentClass<typeof Combat>>>;
|
@@ -184,27 +204,5 @@ declare global {
|
|
184
204
|
css: string;
|
185
205
|
effects: Set<string>;
|
186
206
|
};
|
187
|
-
|
188
|
-
interface Options extends Application.Options {
|
189
|
-
/**
|
190
|
-
* @defaultValue `'combat'`
|
191
|
-
*/
|
192
|
-
id: string;
|
193
|
-
|
194
|
-
/**
|
195
|
-
* @defaultValue `'templates/sidebar/combat-tracker.html'`
|
196
|
-
*/
|
197
|
-
template: string;
|
198
|
-
|
199
|
-
/**
|
200
|
-
* @defaultValue `'Combat Tracker'`
|
201
|
-
*/
|
202
|
-
title: string;
|
203
|
-
|
204
|
-
/**
|
205
|
-
* @defaultValue `['.directory-list']`
|
206
|
-
*/
|
207
|
-
scrollY: string[];
|
208
|
-
}
|
209
207
|
}
|
210
208
|
}
|
@@ -5,7 +5,7 @@ declare global {
|
|
5
5
|
* A compendium of knowledge arcane and mystical!
|
6
6
|
* @typeParam Options - The type of the options object
|
7
7
|
*/
|
8
|
-
class CompendiumDirectory<Options extends
|
8
|
+
class CompendiumDirectory<Options extends ApplicationOptions = ApplicationOptions> extends SidebarTab<Options> {
|
9
9
|
/**
|
10
10
|
* @override
|
11
11
|
* @defaultValue
|
@@ -17,7 +17,7 @@ declare global {
|
|
17
17
|
* });
|
18
18
|
* ```
|
19
19
|
*/
|
20
|
-
static get defaultOptions():
|
20
|
+
static get defaultOptions(): ApplicationOptions;
|
21
21
|
|
22
22
|
/**
|
23
23
|
* @param options - (unused)
|
@@ -6,7 +6,7 @@ declare global {
|
|
6
6
|
* The Settings sidebar is the furthest-to-right using a triple-cogs icon.
|
7
7
|
* @typeParam Options - The type of the options object
|
8
8
|
*/
|
9
|
-
class Settings<Options extends
|
9
|
+
class Settings<Options extends ApplicationOptions = ApplicationOptions> extends SidebarTab<Options> {
|
10
10
|
/**
|
11
11
|
* @override
|
12
12
|
* @defaultValue
|
@@ -18,7 +18,7 @@ declare global {
|
|
18
18
|
* })
|
19
19
|
* ```
|
20
20
|
*/
|
21
|
-
static get defaultOptions():
|
21
|
+
static get defaultOptions(): ApplicationOptions;
|
22
22
|
|
23
23
|
/**
|
24
24
|
* @param options - (unused)
|
@@ -2,7 +2,6 @@
|
|
2
2
|
* An AudioSourceNode container which handles the strategy of node type to use for playback.
|
3
3
|
* Used by the Sound interface which controls playback.
|
4
4
|
* This class is for internal use only and should not be used by external callers.
|
5
|
-
* @internal
|
6
5
|
*/
|
7
6
|
declare class AudioContainer {
|
8
7
|
constructor(src: string);
|
@@ -31,16 +30,11 @@ declare class AudioContainer {
|
|
31
30
|
isBuffer: boolean;
|
32
31
|
|
33
32
|
/**
|
34
|
-
*
|
35
|
-
* @
|
36
|
-
|
37
|
-
loaded: boolean;
|
38
|
-
|
39
|
-
/**
|
40
|
-
* Did the audio source fail to load (a 404 or some other reason).
|
41
|
-
* @defaultValue `false`
|
33
|
+
* Whether we have attempted to load the audio node or not, and whether it failed.
|
34
|
+
* @see {@link LOAD_STATES}
|
35
|
+
* @defaultValue `AudioContainer.LOAD_STATES.NONE`
|
42
36
|
*/
|
43
|
-
|
37
|
+
loadState: AudioContainer.LOAD_STATES;
|
44
38
|
|
45
39
|
/**
|
46
40
|
* Is the audio source currently playing?
|
@@ -65,6 +59,26 @@ declare class AudioContainer {
|
|
65
59
|
*/
|
66
60
|
static MAX_BUFFER_DURATION: number;
|
67
61
|
|
62
|
+
/**
|
63
|
+
* The sequence of container loading states.
|
64
|
+
*/
|
65
|
+
static LOAD_STATES: {
|
66
|
+
FAILED: -1;
|
67
|
+
NONE: 0;
|
68
|
+
LOADING: 1;
|
69
|
+
LOADED: 2;
|
70
|
+
};
|
71
|
+
|
72
|
+
/**
|
73
|
+
* Has the audio file been loaded either fully or for streaming.
|
74
|
+
*/
|
75
|
+
get loaded(): boolean;
|
76
|
+
|
77
|
+
/**
|
78
|
+
* Did the audio file fail to load.
|
79
|
+
*/
|
80
|
+
get failed(): boolean;
|
81
|
+
|
68
82
|
/**
|
69
83
|
* A reference to the AudioBuffer if the sourceNode is a AudioBufferSourceNode.
|
70
84
|
*/
|
@@ -155,3 +169,7 @@ declare class AudioContainer {
|
|
155
169
|
*/
|
156
170
|
protected _unloadMediaNode(): void;
|
157
171
|
}
|
172
|
+
|
173
|
+
declare namespace AudioContainer {
|
174
|
+
type LOAD_STATES = ValueOf<typeof AudioContainer['LOAD_STATES']>;
|
175
|
+
}
|
@@ -72,6 +72,11 @@ declare global {
|
|
72
72
|
*/
|
73
73
|
initialized: boolean;
|
74
74
|
|
75
|
+
/**
|
76
|
+
* A promise that resolves when the canvas is first initialized and ready.
|
77
|
+
*/
|
78
|
+
initializing: Promise<void> | null;
|
79
|
+
|
75
80
|
/**
|
76
81
|
* Track the timestamp of the last stage zoom operation
|
77
82
|
* @defaultValue `0`
|
@@ -1,3 +1,17 @@
|
|
1
|
+
interface CanvasAnimationData {
|
2
|
+
/** The animation function being executed each frame */
|
3
|
+
fn: (dt: number) => void;
|
4
|
+
|
5
|
+
/** The object context within which animation occurs */
|
6
|
+
context: PIXI.DisplayObject;
|
7
|
+
|
8
|
+
/** A Promise which resolves once the animation is complete */
|
9
|
+
promise: Promise<boolean>;
|
10
|
+
|
11
|
+
/** The resolution function, allowing animation to be ended early */
|
12
|
+
resolve: (value: boolean) => void;
|
13
|
+
}
|
14
|
+
|
1
15
|
/**
|
2
16
|
* A helper class providing utility methods for PIXI Canvas animation
|
3
17
|
*/
|
@@ -8,9 +22,7 @@ declare class CanvasAnimation {
|
|
8
22
|
* Track an object of active animations by name, context, and function
|
9
23
|
* This allows a currently playing animation to be referenced and terminated
|
10
24
|
*/
|
11
|
-
static animations:
|
12
|
-
Record<string, { fn: (dt: number) => void; context: PIXI.Container; resolve: (value: boolean) => void }>
|
13
|
-
>;
|
25
|
+
static animations: Record<string, CanvasAnimationData>;
|
14
26
|
|
15
27
|
/**
|
16
28
|
* Apply a linear animation from the current value of some attribute to a new value
|
@@ -42,6 +54,13 @@ declare class CanvasAnimation {
|
|
42
54
|
options?: InexactPartial<LinearAnimationOptions>
|
43
55
|
): Promise<boolean>;
|
44
56
|
|
57
|
+
/**
|
58
|
+
* Retrieve an animation currently in progress by its name
|
59
|
+
* @param name - The animation name to retrieve
|
60
|
+
* @returns The animation data, or undefined
|
61
|
+
*/
|
62
|
+
static getAnimation(name: string): CanvasAnimationData | undefined;
|
63
|
+
|
45
64
|
/**
|
46
65
|
* If an animation using a certain name already exists, terminate it
|
47
66
|
* @param name - The animation name to terminate
|
@@ -75,7 +94,7 @@ declare class CanvasAnimation {
|
|
75
94
|
*/
|
76
95
|
protected static _animateFrame(
|
77
96
|
deltaTime: number,
|
78
|
-
resolve:
|
97
|
+
resolve: CanvasAnimationData['resolve'],
|
79
98
|
reject: (reason?: any) => void,
|
80
99
|
attributes: CanvasAnimation.Attribute[],
|
81
100
|
duration: number,
|
@@ -85,8 +104,12 @@ declare class CanvasAnimation {
|
|
85
104
|
|
86
105
|
declare namespace CanvasAnimation {
|
87
106
|
interface Attribute {
|
88
|
-
parent: any;
|
89
107
|
attribute: string;
|
108
|
+
d?: number;
|
109
|
+
delta?: number;
|
110
|
+
done?: number;
|
111
|
+
parent: any;
|
112
|
+
remaining?: number;
|
90
113
|
to: number;
|
91
114
|
}
|
92
115
|
}
|
@@ -95,7 +118,7 @@ interface LinearAnimationOptions {
|
|
95
118
|
/**
|
96
119
|
* An animation context to use which defines scope
|
97
120
|
*/
|
98
|
-
context: PIXI.
|
121
|
+
context: PIXI.DisplayObject;
|
99
122
|
|
100
123
|
/**
|
101
124
|
* Provide a unique animation name which may be referenced later
|
@@ -117,7 +140,7 @@ interface LinearAnimationOptions {
|
|
117
140
|
type TickFunction = (dt: number, attributes: CanvasAnimation.Attribute[]) => void;
|
118
141
|
type TransitionFunction = (
|
119
142
|
dt: number,
|
120
|
-
resolve:
|
143
|
+
resolve: CanvasAnimationData['resolve'],
|
121
144
|
reject: (reason?: any) => void,
|
122
145
|
attributes: CanvasAnimation.Attribute[],
|
123
146
|
duration: number,
|
@@ -275,7 +275,8 @@ export declare class ClientDocumentMixin<T extends foundry.abstract.Document<any
|
|
275
275
|
* (default: `{}`)
|
276
276
|
* @param context - Additional context options or dialog positioning options
|
277
277
|
* (default: `{}`)
|
278
|
-
* @returns A Promise which resolves to the created Document
|
278
|
+
* @returns A Promise which resolves to the created Document, or null if the dialog was
|
279
|
+
* closed.
|
279
280
|
*/
|
280
281
|
static createDialog<T extends DocumentConstructor>(
|
281
282
|
this: T,
|