@league-of-foundry-developers/foundry-vtt-types 0.8.9-7 → 0.8.9-8
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/index-lenient.d.ts +10 -0
- package/package.json +10 -1
- package/src/foundry/common/abstract/backend.mjs.d.ts +14 -15
- package/src/foundry/common/abstract/document.mjs.d.ts +6 -2
- package/src/foundry/common/types.mjs.d.ts +5 -0
- package/src/foundry/foundry.js/application.d.ts +2 -5
- package/src/foundry/foundry.js/applications/cameraViews.d.ts +36 -31
- package/src/foundry/foundry.js/applications/compendium.d.ts +5 -2
- package/src/foundry/foundry.js/applications/filePicker.d.ts +115 -115
- package/src/foundry/foundry.js/applications/formApplication.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/combatTrackerConfig.d.ts +20 -27
- package/src/foundry/foundry.js/applications/formApplications/defaultTokenConfig.d.ts +66 -0
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/activeEffectConfig.d.ts +2 -2
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/actorSheet.d.ts +5 -2
- package/src/foundry/foundry.js/applications/formApplications/{folderConfig.d.ts → documentSheets/folderConfig.d.ts} +2 -2
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/index.d.ts +3 -0
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/measuredTemplateConfig.d.ts +60 -0
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/noteConfig.d.ts +72 -0
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/rollTableConfig.d.ts +190 -148
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/sceneConfig.d.ts +133 -110
- package/src/foundry/foundry.js/applications/formApplications/drawingConfig.d.ts +93 -95
- package/src/foundry/foundry.js/applications/formApplications/entitySheetConfig.d.ts +163 -147
- package/src/foundry/foundry.js/applications/formApplications/index.d.ts +1 -3
- package/src/foundry/foundry.js/applications/formApplications/moduleManagement.d.ts +41 -23
- package/src/foundry/foundry.js/applications/formApplications/settingsConfig.d.ts +95 -86
- package/src/foundry/foundry.js/applications/formApplications/tokenConfig.d.ts +146 -158
- package/src/foundry/foundry.js/applications/formApplications/wallConfig.d.ts +60 -70
- package/src/foundry/foundry.js/applications/formApplications/worldConfig.d.ts +25 -17
- package/src/foundry/foundry.js/applications/hotbar.d.ts +5 -4
- package/src/foundry/foundry.js/applications/sceneNavigation.d.ts +90 -71
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/actorDirectory.d.ts +13 -56
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/itemDirectory.d.ts +7 -30
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/journalDirectory.d.ts +14 -34
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/macroDirectory.d.ts +6 -52
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/sceneDirectory.d.ts +6 -23
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectory.d.ts +2 -4
- package/src/foundry/foundry.js/cameraPopoutAppWrapper.d.ts +12 -7
- package/src/foundry/foundry.js/canvas.d.ts +2 -1
- package/src/foundry/foundry.js/clientDatabaseBackend.d.ts +210 -0
- package/src/foundry/foundry.js/clientDocuments/canvasDocuments/tokenDocument.d.ts +1 -1
- package/src/foundry/foundry.js/clientDocuments/index.d.ts +1 -0
- package/src/foundry/foundry.js/clientDocuments/prototypeToken.d.ts +15 -0
- package/src/foundry/foundry.js/clientSettings.d.ts +14 -1
- package/src/foundry/foundry.js/collections/documentCollections/compendiumCollection.d.ts +44 -11
- package/src/foundry/foundry.js/config.d.ts +12 -4
- package/src/foundry/foundry.js/dragDrop.d.ts +17 -14
- package/src/foundry/foundry.js/globalVariables.d.ts +7 -4
- package/src/foundry/foundry.js/mouseInteractionManager.d.ts +78 -34
- package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayer.d.ts +5 -17
- package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayers/wallsLayer.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/containers/placeableObject.d.ts +4 -1
- package/src/foundry/foundry.js/pixi/containers/placeableObjects/wall.d.ts +1 -1
- package/src/foundry/foundry.js/pointSource.d.ts +173 -85
- package/src/foundry/foundry.js/textEditor.d.ts +39 -8
- package/src/foundry/index.d.ts +1 -0
- package/src/foundry/foundry.js/applications/formApplications/measuredTemplateConfig.d.ts +0 -61
- package/src/foundry/foundry.js/applications/formApplications/noteConfig.d.ts +0 -77
@@ -1,33 +1,33 @@
|
|
1
|
-
// TODO: Remove when updating this class!!!
|
2
|
-
// eslint-disable-next-line
|
3
|
-
// @ts-nocheck
|
4
|
-
|
5
1
|
/**
|
6
2
|
* The World Management setup application
|
3
|
+
* @typeParam Options - The type of the options object
|
4
|
+
* @typeParam Data - The data structure used to render the handlebars template.
|
7
5
|
*/
|
8
|
-
declare class WorldConfig
|
6
|
+
declare class WorldConfig<
|
7
|
+
Options extends WorldConfig.Options = WorldConfig.Options,
|
8
|
+
Data extends object = WorldConfig.Data
|
9
|
+
> extends FormApplication<Options, Data, Game.WorldData<foundry.packages.WorldData>> {
|
9
10
|
/**
|
10
11
|
* @defaultValue
|
11
12
|
* ```typescript
|
12
|
-
* mergeObject(super.defaultOptions, {
|
13
|
+
* foundry.utils.mergeObject(super.defaultOptions, {
|
13
14
|
* id: "world-config",
|
14
|
-
* template: "templates/
|
15
|
+
* template: "templates/sidebar/apps/world-config.html",
|
15
16
|
* width: 600,
|
16
17
|
* height: "auto",
|
17
|
-
* create: false
|
18
|
-
* })
|
18
|
+
* create: false,
|
19
|
+
* })
|
19
20
|
* ```
|
20
21
|
*/
|
21
22
|
static get defaultOptions(): WorldConfig.Options;
|
22
23
|
|
24
|
+
static WORLD_KB_URL: 'https://foundryvtt.com/article/game-worlds/';
|
25
|
+
|
23
26
|
/** @override */
|
24
27
|
get title(): string;
|
25
28
|
|
26
|
-
/**
|
27
|
-
|
28
|
-
* @override
|
29
|
-
*/
|
30
|
-
getData(options?: Partial<WorldConfig.Options>): WorldConfig.Data;
|
29
|
+
/** @override */
|
30
|
+
getData(options?: Partial<Options>): Data | Promise<Data>;
|
31
31
|
|
32
32
|
/**
|
33
33
|
* @remarks This method returns `Promise<void>`.
|
@@ -39,16 +39,22 @@ declare class WorldConfig extends FormApplication<WorldConfig.Options, WorldConf
|
|
39
39
|
* @remarks This method does not exist on WorldConfig and only exists to make the typescript compile!
|
40
40
|
*/
|
41
41
|
protected _updateObject(...args: unknown[]): Promise<unknown>;
|
42
|
+
|
43
|
+
/** @override **/
|
44
|
+
activateEditor(name: string, options?: TextEditor.Options, initialContent?: string): void;
|
42
45
|
}
|
43
46
|
|
44
47
|
declare namespace WorldConfig {
|
45
48
|
interface Data {
|
46
|
-
world:
|
47
|
-
|
48
|
-
isCreate: WorldConfig['options']['create'];
|
49
|
+
world: Game.WorldData<foundry.packages.WorldData>;
|
50
|
+
isCreate: boolean;
|
49
51
|
submitText: string;
|
50
52
|
nextDate: string;
|
51
53
|
nextTime: string;
|
54
|
+
worldKbUrl: typeof WorldConfig['WORLD_KB_URL'];
|
55
|
+
inWorld: boolean;
|
56
|
+
showEditFields: boolean;
|
57
|
+
systems?: Game.SystemData<foundry.packages.SystemData>[];
|
52
58
|
}
|
53
59
|
|
54
60
|
interface Options extends FormApplication.Options {
|
@@ -56,5 +62,7 @@ declare namespace WorldConfig {
|
|
56
62
|
* @defaultValue `false`
|
57
63
|
*/
|
58
64
|
create: boolean;
|
65
|
+
|
66
|
+
inWorld?: boolean;
|
59
67
|
}
|
60
68
|
}
|
@@ -133,10 +133,11 @@ declare global {
|
|
133
133
|
*/
|
134
134
|
protected _canDragDrop(selector: string): boolean;
|
135
135
|
|
136
|
-
/**
|
137
|
-
|
138
|
-
|
139
|
-
|
136
|
+
/**
|
137
|
+
* @override
|
138
|
+
* @internal
|
139
|
+
*/
|
140
|
+
protected _onDrop(event: DragEvent): void;
|
140
141
|
|
141
142
|
/**
|
142
143
|
* Handle click events to toggle display of the macro bar
|
@@ -1,89 +1,108 @@
|
|
1
|
-
|
2
|
-
// eslint-disable-next-line
|
3
|
-
// @ts-nocheck
|
4
|
-
|
5
|
-
/**
|
6
|
-
* Top menu scene navigation
|
7
|
-
*/
|
8
|
-
declare class SceneNavigation extends Application {
|
9
|
-
/**
|
10
|
-
* Assign the default options which are supported by the SceneNavigation UI
|
11
|
-
* @defaultValue
|
12
|
-
* ```typescript
|
13
|
-
* {
|
14
|
-
* ...super.defaultOptions,
|
15
|
-
* id: 'navigation',
|
16
|
-
* template: 'templates/hud/navigation.html',
|
17
|
-
* popOut: false,
|
18
|
-
* dragDrop: [{dragSelector: ".scene"}]
|
19
|
-
* }
|
20
|
-
* ```
|
21
|
-
*/
|
22
|
-
static get defaultOptions(): typeof Application['defaultOptions'];
|
1
|
+
import type { ConfiguredDocumentClassForName, ToObjectFalseType } from '../../../types/helperTypes';
|
23
2
|
|
3
|
+
declare global {
|
24
4
|
/**
|
25
|
-
*
|
5
|
+
* The UI element which displays the Scene documents which are currently enabled for quick navigation.
|
6
|
+
*
|
7
|
+
* @typeParam Options - the type of the options object
|
8
|
+
* @typeParam Data - The data structure used to render the handlebars template.
|
26
9
|
*/
|
27
|
-
|
10
|
+
class SceneNavigation<
|
11
|
+
Options extends Application.Options = Application.Options,
|
12
|
+
Data extends object = SceneNavigation.Data
|
13
|
+
> extends Application<Options> {
|
14
|
+
constructor(options?: Partial<Options>);
|
28
15
|
|
29
|
-
|
30
|
-
|
16
|
+
/**
|
17
|
+
* Navigation collapsed state
|
18
|
+
* @internal
|
19
|
+
*/
|
20
|
+
protected _collapsed: boolean;
|
31
21
|
|
32
|
-
|
33
|
-
|
22
|
+
/**
|
23
|
+
* @override
|
24
|
+
* @defaultValue
|
25
|
+
* ```typescript
|
26
|
+
* foundry.utils.mergeObject(super.defaultOptions, {
|
27
|
+
* id: "navigation",
|
28
|
+
* template: "templates/hud/navigation.html",
|
29
|
+
* popOut: false,
|
30
|
+
* dragDrop: [{ dragSelector: ".scene" }],
|
31
|
+
* })
|
32
|
+
* ```
|
33
|
+
*/
|
34
|
+
static get defaultOptions(): Application.Options;
|
34
35
|
|
35
|
-
|
36
|
-
|
36
|
+
/**
|
37
|
+
* Return an Array of Scenes which are displayed in the Navigation bar
|
38
|
+
*/
|
39
|
+
get scenes(): InstanceType<ConfiguredDocumentClassForName<'Scene'>>[];
|
37
40
|
|
38
|
-
|
39
|
-
|
40
|
-
*/
|
41
|
-
expand(): Promise<boolean>;
|
41
|
+
/** @override */
|
42
|
+
render(force?: boolean, context?: Application.RenderOptions<Options>): this | void;
|
42
43
|
|
43
|
-
|
44
|
-
|
45
|
-
*/
|
46
|
-
collapse(): Promise<boolean>;
|
44
|
+
/** @override */
|
45
|
+
protected _render(force?: boolean, options?: Application.RenderOptions<Options>): Promise<void>;
|
47
46
|
|
48
|
-
|
49
|
-
|
50
|
-
*/
|
51
|
-
activateListeners(html: JQuery): void;
|
47
|
+
/** @override */
|
48
|
+
getData(options?: Partial<Application.Options>): Data | Promise<Data>;
|
52
49
|
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
50
|
+
/**
|
51
|
+
* Expand the SceneNavigation menu, sliding it down if it is currently collapsed
|
52
|
+
*/
|
53
|
+
expand(): Promise<boolean>;
|
57
54
|
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
55
|
+
/**
|
56
|
+
* Collapse the SceneNavigation menu, sliding it up if it is currently expanded
|
57
|
+
*/
|
58
|
+
collapse(): Promise<boolean>;
|
62
59
|
|
63
|
-
|
64
|
-
|
60
|
+
/** @override */
|
61
|
+
activateListeners(html: JQuery): void;
|
65
62
|
|
66
|
-
|
67
|
-
|
63
|
+
/**
|
64
|
+
* Get the set of ContextMenu options which should be applied for Scenes in the menu
|
65
|
+
* @returns The Array of context options passed to the ContextMenu instance
|
66
|
+
* @internal
|
67
|
+
*/
|
68
|
+
protected _getContextMenuOptions(): ContextMenuEntry[];
|
68
69
|
|
69
|
-
|
70
|
-
|
70
|
+
/**
|
71
|
+
* Handle left-click events on the scenes in the navigation menu
|
72
|
+
* @internal
|
73
|
+
*/
|
74
|
+
protected _onClickScene(event: JQuery.ClickEvent): void;
|
71
75
|
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
76
|
+
/**
|
77
|
+
* @override
|
78
|
+
* @internal
|
79
|
+
*/
|
80
|
+
protected _onDragStart(event: DragEvent): void;
|
81
|
+
|
82
|
+
/**
|
83
|
+
* @override
|
84
|
+
* @internal
|
85
|
+
*/
|
86
|
+
protected _onDrop(event: DragEvent): void;
|
87
|
+
|
88
|
+
/**
|
89
|
+
* Handle navigation menu toggle click events
|
90
|
+
* @internal
|
91
|
+
*/
|
92
|
+
protected _onToggleNav(event: JQuery.ClickEvent): void;
|
93
|
+
|
94
|
+
static _onLoadProgress(context: string, pct: number): void;
|
95
|
+
}
|
79
96
|
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
97
|
+
namespace SceneNavigation {
|
98
|
+
interface Data {
|
99
|
+
collapsed: boolean;
|
100
|
+
scenes: (ToObjectFalseType<foundry.data.SceneData> & {
|
101
|
+
name: string;
|
102
|
+
users: { letter: string; color: string };
|
103
|
+
visible: boolean;
|
104
|
+
css: string;
|
105
|
+
})[];
|
106
|
+
}
|
88
107
|
}
|
89
108
|
}
|
package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/actorDirectory.d.ts
CHANGED
@@ -1,67 +1,24 @@
|
|
1
|
-
// TODO: Remove when updating this class!!!
|
2
|
-
// eslint-disable-next-line
|
3
|
-
// @ts-nocheck
|
4
|
-
|
5
1
|
/**
|
6
|
-
*
|
7
|
-
* @see {@link Actor}
|
2
|
+
* The sidebar directory which organizes and displays world-level Actor documents.
|
8
3
|
*/
|
9
|
-
declare class ActorDirectory extends SidebarDirectory {
|
10
|
-
|
11
|
-
* @override
|
12
|
-
*/
|
13
|
-
static get entity(): 'Actor';
|
14
|
-
|
15
|
-
/**
|
16
|
-
* @override
|
17
|
-
* @see {@link Game.actors}
|
18
|
-
*/
|
19
|
-
static get collection(): Game['actors'];
|
4
|
+
declare class ActorDirectory extends SidebarDirectory<'Actor'> {
|
5
|
+
constructor(...args: ConstructorParameters<typeof SidebarDirectory>);
|
20
6
|
|
21
|
-
/**
|
22
|
-
|
23
|
-
* @override
|
24
|
-
*/
|
25
|
-
getData(options?: Partial<SidebarDirectory.Options>): ActorDirectory.Data;
|
7
|
+
/** @override */
|
8
|
+
static documentName: 'Actor';
|
26
9
|
|
27
|
-
/**
|
28
|
-
|
29
|
-
* @override
|
30
|
-
*/
|
31
|
-
protected _canDragStart(selector: string | null): boolean;
|
10
|
+
/** @override */
|
11
|
+
protected _canDragStart(selector: string): boolean;
|
32
12
|
|
33
|
-
/**
|
34
|
-
|
35
|
-
*/
|
36
|
-
protected _onDragStart(event: DragEvent): false | void;
|
13
|
+
/** @override */
|
14
|
+
protected _onDragStart(event: DragEvent): void;
|
37
15
|
|
38
|
-
/**
|
39
|
-
|
40
|
-
* @override
|
41
|
-
*/
|
42
|
-
protected _canDragDrop(selector: string | null): boolean;
|
16
|
+
/** @override */
|
17
|
+
protected _canDragDrop(selector: string): boolean;
|
43
18
|
|
44
|
-
/**
|
45
|
-
* @override
|
46
|
-
*/
|
19
|
+
/** @override */
|
47
20
|
protected _onClickEntityName(event: JQuery.ClickEvent): Promise<void>;
|
48
21
|
|
49
|
-
/**
|
50
|
-
* @override
|
51
|
-
*/
|
22
|
+
/** @override */
|
52
23
|
protected _getEntryContextOptions(): ContextMenuEntry[];
|
53
24
|
}
|
54
|
-
|
55
|
-
declare namespace ActorDirectory {
|
56
|
-
interface Data extends SidebarDirectory.Data {
|
57
|
-
/**
|
58
|
-
* @defaultValue `'templates/sidebar/folder-partial.html'`
|
59
|
-
*/
|
60
|
-
folderPartial: string;
|
61
|
-
|
62
|
-
/**
|
63
|
-
* @defaultValue `'templates/sidebar/actor-partial.html'`
|
64
|
-
*/
|
65
|
-
entityPartial: string;
|
66
|
-
}
|
67
|
-
}
|
package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/itemDirectory.d.ts
CHANGED
@@ -1,36 +1,13 @@
|
|
1
|
-
// TODO: Remove when updating this class!!!
|
2
|
-
// eslint-disable-next-line
|
3
|
-
// @ts-nocheck
|
4
|
-
|
5
1
|
/**
|
6
|
-
*
|
2
|
+
* The sidebar directory which organizes and displays world-level Item documents.
|
7
3
|
*/
|
8
|
-
declare class ItemDirectory extends SidebarDirectory {
|
9
|
-
/**
|
10
|
-
|
11
|
-
*/
|
12
|
-
static get entity(): 'Item';
|
13
|
-
|
14
|
-
/**
|
15
|
-
* @override
|
16
|
-
* @see {@link Game.items}
|
17
|
-
*/
|
18
|
-
static get collection(): Game['items'];
|
19
|
-
|
20
|
-
/**
|
21
|
-
* @param selector - (unused)
|
22
|
-
* @override
|
23
|
-
*/
|
24
|
-
protected _canDragStart(selector: string | null): boolean;
|
4
|
+
declare class ItemDirectory extends SidebarDirectory<'Item'> {
|
5
|
+
/** @override */
|
6
|
+
static documentName: 'Item';
|
25
7
|
|
26
|
-
/**
|
27
|
-
|
28
|
-
* @override
|
29
|
-
*/
|
30
|
-
protected _canDragDrop(selector: string | null): boolean;
|
8
|
+
/** @override */
|
9
|
+
protected _canDragDrop(selector: string): boolean;
|
31
10
|
|
32
|
-
/**
|
33
|
-
* @override
|
34
|
-
*/
|
11
|
+
/** @override */
|
35
12
|
protected _getEntryContextOptions(): ContextMenuEntry[];
|
36
13
|
}
|
package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/journalDirectory.d.ts
CHANGED
@@ -1,47 +1,27 @@
|
|
1
1
|
/**
|
2
|
-
*
|
2
|
+
* The sidebar directory which organizes and displays world-level JournalEntry documents.
|
3
3
|
*/
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
declare class JournalDirectory extends SidebarDirectory<JournalDirectory.Options> {
|
8
|
-
/**
|
9
|
-
* @override
|
10
|
-
*/
|
11
|
-
static get defaultOptions(): JournalDirectory.Options;
|
12
|
-
|
13
|
-
/**
|
14
|
-
* @override
|
15
|
-
*/
|
16
|
-
get title(): string;
|
4
|
+
declare class JournalDirectory extends SidebarDirectory<'JournalEntry'> {
|
5
|
+
/** @override */
|
6
|
+
static documentName: 'JournalEntry';
|
17
7
|
|
18
8
|
/**
|
19
9
|
* @override
|
10
|
+
* @defaultValue
|
11
|
+
* ```typescript
|
12
|
+
* const options = super.defaultOptions;
|
13
|
+
* options.id = "journal";
|
14
|
+
* options.template = "templates/sidebar/journal-directory.html";
|
15
|
+
* return options;
|
16
|
+
* ```
|
20
17
|
*/
|
21
|
-
static get
|
18
|
+
static get defaultOptions(): SidebarDirectory.Options;
|
22
19
|
|
23
20
|
/**
|
24
21
|
* @override
|
25
|
-
* @see {@link Game.journal}
|
26
22
|
*/
|
27
|
-
|
23
|
+
get title(): string;
|
28
24
|
|
29
|
-
/**
|
30
|
-
* @override
|
31
|
-
*/
|
25
|
+
/** @override */
|
32
26
|
protected _getEntryContextOptions(): ContextMenuEntry[];
|
33
27
|
}
|
34
|
-
|
35
|
-
declare namespace JournalDirectory {
|
36
|
-
interface Options extends SidebarDirectory.Options {
|
37
|
-
/**
|
38
|
-
* @defaultValue `'journal'`
|
39
|
-
*/
|
40
|
-
id: string;
|
41
|
-
|
42
|
-
/**
|
43
|
-
* @defaultValue `'templates/sidebar/journal-directory.html'`
|
44
|
-
*/
|
45
|
-
template: string;
|
46
|
-
}
|
47
|
-
}
|
package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/macroDirectory.d.ts
CHANGED
@@ -1,65 +1,19 @@
|
|
1
1
|
/**
|
2
|
-
*
|
2
|
+
* The directory, not displayed in the sidebar, which organizes and displays world-level Macro documents.
|
3
3
|
*
|
4
|
-
* @see {@link Macros} The
|
4
|
+
* @see {@link Macros} The WorldCollection of Macro Entities
|
5
5
|
* @see {@link Macro} The Macro Entity
|
6
6
|
* @see {@link MacroConfig} The Macro Configuration Sheet
|
7
7
|
*/
|
8
|
-
|
9
|
-
|
10
|
-
// @ts-ignore
|
11
|
-
declare class MacroDirectory extends SidebarDirectory<MacroDirectory.Options> {
|
12
|
-
static get defaultOptions(): MacroDirectory.Options;
|
8
|
+
declare class MacroDirectory extends SidebarDirectory<'Macro'> {
|
9
|
+
constructor(options?: Partial<SidebarDirectory.Options>);
|
13
10
|
|
14
|
-
/**
|
15
|
-
|
16
|
-
*/
|
17
|
-
static get entity(): 'Macro';
|
18
|
-
|
19
|
-
/**
|
20
|
-
* @override
|
21
|
-
* @see {@link Game.macros}
|
22
|
-
*/
|
23
|
-
static get collection(): Game['macros'];
|
24
|
-
|
25
|
-
/**
|
26
|
-
* @override
|
27
|
-
*/
|
28
|
-
protected _render(force?: boolean, options?: SidebarDirectory.RenderContext<MacroDirectory.Options>): Promise<void>;
|
11
|
+
/** @override */
|
12
|
+
static documentName: 'Macro';
|
29
13
|
|
30
14
|
/**
|
31
15
|
* @override
|
32
16
|
* @remarks This is never called.
|
33
17
|
*/
|
34
18
|
protected _onCreate(event: Event): Promise<void>;
|
35
|
-
|
36
|
-
/**
|
37
|
-
* @param selector - (unused)
|
38
|
-
* @override
|
39
|
-
*/
|
40
|
-
protected _canDragStart(selector: string | null): true;
|
41
|
-
}
|
42
|
-
|
43
|
-
declare namespace MacroDirectory {
|
44
|
-
interface Options extends SidebarDirectory.Options {
|
45
|
-
/**
|
46
|
-
* @defaultValue `'macros'`
|
47
|
-
*/
|
48
|
-
id: string;
|
49
|
-
|
50
|
-
/**
|
51
|
-
* @defaultValue `'templates/sidebar/macro-directory.html'`
|
52
|
-
*/
|
53
|
-
template: string;
|
54
|
-
|
55
|
-
/**
|
56
|
-
* @defaultValue `true`
|
57
|
-
*/
|
58
|
-
canDrag: boolean;
|
59
|
-
|
60
|
-
/**
|
61
|
-
* @defaultValue `680`
|
62
|
-
*/
|
63
|
-
height: number;
|
64
|
-
}
|
65
19
|
}
|
package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/sceneDirectory.d.ts
CHANGED
@@ -1,30 +1,13 @@
|
|
1
|
-
// TODO: Remove when updating this class!!!
|
2
|
-
// eslint-disable-next-line
|
3
|
-
// @ts-nocheck
|
4
|
-
|
5
1
|
/**
|
6
2
|
* A directory listing of active game scenes
|
7
3
|
*/
|
8
|
-
declare class SceneDirectory extends SidebarDirectory {
|
9
|
-
/**
|
10
|
-
|
11
|
-
*/
|
12
|
-
static get entity(): 'Scene';
|
13
|
-
|
14
|
-
/**
|
15
|
-
* @override
|
16
|
-
* @see {@link Game.scenes}
|
17
|
-
*/
|
18
|
-
static get collection(): Game['scenes'];
|
4
|
+
declare class SceneDirectory extends SidebarDirectory<'Scene'> {
|
5
|
+
/** @override */
|
6
|
+
static documentName: 'Scene';
|
19
7
|
|
20
|
-
/**
|
21
|
-
|
22
|
-
* @remarks This is never called.
|
23
|
-
*/
|
24
|
-
protected _onCreate(event: Event): Promise<Scene>;
|
8
|
+
/** @override */
|
9
|
+
protected _render(force?: boolean, options?: Application.RenderOptions<SidebarDirectory.Options>): Promise<void>;
|
25
10
|
|
26
|
-
/**
|
27
|
-
* @override
|
28
|
-
*/
|
11
|
+
/** @override */
|
29
12
|
protected _getEntryContextOptions(): ContextMenuEntry[];
|
30
13
|
}
|
@@ -168,11 +168,9 @@ declare global {
|
|
168
168
|
|
169
169
|
/**
|
170
170
|
* @override
|
171
|
-
* @
|
172
|
-
* The return type could be specified in more detail but it is not supposed to be used and this allows more
|
173
|
-
* flexibility for deriving classes.
|
171
|
+
* @internal
|
174
172
|
*/
|
175
|
-
protected _onDrop(event: DragEvent):
|
173
|
+
protected _onDrop(event: DragEvent): void;
|
176
174
|
|
177
175
|
/**
|
178
176
|
* Handle Document data being dropped into the directory.
|
@@ -4,9 +4,9 @@
|
|
4
4
|
*/
|
5
5
|
declare class CameraPopoutAppWrapper {
|
6
6
|
/**
|
7
|
-
* @param view- The CameraViews application that this popout belongs to
|
8
|
-
* @param userId- ID of the user this popout belongs to
|
9
|
-
* @param element- The div element of this specific popout window
|
7
|
+
* @param view - The CameraViews application that this popout belongs to
|
8
|
+
* @param userId - ID of the user this popout belongs to
|
9
|
+
* @param element - The div element of this specific popout window
|
10
10
|
*/
|
11
11
|
constructor(view: CameraViews, userId: string, element: JQuery);
|
12
12
|
|
@@ -25,16 +25,21 @@ declare class CameraPopoutAppWrapper {
|
|
25
25
|
*/
|
26
26
|
userId: string;
|
27
27
|
|
28
|
+
/** @defaultValue `true` */
|
29
|
+
popOut: boolean;
|
30
|
+
|
31
|
+
/** @defaultValue `{}` */
|
32
|
+
options: Record<string, unknown>;
|
33
|
+
|
28
34
|
/**
|
29
35
|
* Get the current position of this popout window
|
30
36
|
*/
|
31
37
|
get position(): Application.Position;
|
32
38
|
|
33
|
-
|
34
|
-
setPosition({ left, top, width, height, scale }?: Partial<Application.Position>): void;
|
39
|
+
setPosition(options?: Partial<Application.Position>): (Application.Position & { height: number }) | void;
|
35
40
|
|
36
|
-
|
41
|
+
/** @internal */
|
42
|
+
protected _onResize(event: Event): void;
|
37
43
|
|
38
|
-
/** @override */
|
39
44
|
bringToTop(): void;
|
40
45
|
}
|
@@ -399,8 +399,9 @@ declare global {
|
|
399
399
|
|
400
400
|
/**
|
401
401
|
* Event handler for the drop portion of a drag-and-drop event.
|
402
|
+
* @internal
|
402
403
|
*/
|
403
|
-
protected _onDrop(event: DragEvent):
|
404
|
+
protected _onDrop(event: DragEvent): void;
|
404
405
|
|
405
406
|
/**
|
406
407
|
* Add a pending canvas operation that should fire once the socket handling workflow concludes.
|