@league-of-foundry-developers/foundry-vtt-types 0.8.9-3 → 0.8.9-4
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/package.json +1 -1
- package/src/foundry/common/constants.mjs.d.ts +31 -30
- package/src/foundry/common/data/data.mjs/index.d.ts +2 -0
- package/src/foundry/common/data/data.mjs/rollTableData.d.ts +182 -0
- package/src/foundry/common/data/data.mjs/tableResultData.d.ts +162 -0
- package/src/foundry/common/documents.mjs/baseRollTable.d.ts +8 -1
- package/src/foundry/common/documents.mjs/baseTableResult.d.ts +20 -1
- package/src/foundry/foundry.js/applications/chatPopout.d.ts +34 -33
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/userConfig.d.ts +4 -1
- package/src/foundry/foundry.js/applications/formApplications/wallConfig.d.ts +4 -4
- package/src/foundry/foundry.js/chatBubbles.d.ts +5 -0
- package/src/foundry/foundry.js/clientDocuments/combat.d.ts +2 -2
- package/src/foundry/foundry.js/clientDocuments/rollTable.d.ts +211 -6
- package/src/foundry/foundry.js/clientDocuments/tableResult.d.ts +30 -0
- package/src/foundry/foundry.js/config.d.ts +1 -1
- package/src/foundry/foundry.js/globalVariables.d.ts +13 -0
- package/src/foundry/foundry.js/pixi/containers/placeableObjects/wall.d.ts +47 -68
- package/src/foundry/foundry.js/pixi/filters/abstractBaseMaskFilter.d.ts +4 -3
- package/src/foundry/foundry.js/pixi/filters/abstractBaseMaskFilters/index.d.ts +1 -0
- package/src/foundry/foundry.js/pixi/filters/abstractBaseMaskFilters/inverseOcclusionMaskFilter.d.ts +18 -0
- package/src/foundry/foundry.js/pixi/filters/index.d.ts +1 -0
- package/src/foundry/foundry.js/specialEffect.d.ts +34 -12
- package/src/foundry/foundry.js/specialEffects/autumnLeavesWeatherEffect.d.ts +28 -7
- package/src/foundry/foundry.js/specialEffects/index.d.ts +3 -0
- package/src/foundry/foundry.js/specialEffects/rainWeatherEffect.d.ts +16 -6
- package/src/foundry/foundry.js/specialEffects/snowWeatherEffect.d.ts +11 -4
- package/src/foundry/foundry.js/videoHelper.d.ts +9 -14
- package/src/foundry/index.d.ts +2 -4
@@ -2,14 +2,12 @@
|
|
2
2
|
* A special full-screen weather effect which uses two Emitters to render drops and splashes
|
3
3
|
*/
|
4
4
|
declare class RainWeatherEffect extends SpecialEffect {
|
5
|
+
/**
|
6
|
+
* Configuration for the particle emitter for rain
|
7
|
+
* @defaultValue `'Rain'`
|
8
|
+
*/
|
5
9
|
static get label(): string;
|
6
10
|
|
7
|
-
getParticleEmitters(): PIXI.particles.Emitter[];
|
8
|
-
|
9
|
-
_getRainEmitter(parent: PIXI.Container): PIXI.particles.Emitter;
|
10
|
-
|
11
|
-
_getSplashEmitter(parent: PIXI.Container): PIXI.particles.Emitter;
|
12
|
-
|
13
11
|
/**
|
14
12
|
* @defaultValue
|
15
13
|
* ```typescript
|
@@ -94,4 +92,16 @@ declare class RainWeatherEffect extends SpecialEffect {
|
|
94
92
|
* ```
|
95
93
|
*/
|
96
94
|
static SPLASH_CONFIG: PIXI.particles.EmitterConfig | PIXI.particles.OldEmitterConfig;
|
95
|
+
|
96
|
+
getParticleEmitters(): PIXI.particles.Emitter[];
|
97
|
+
|
98
|
+
/**
|
99
|
+
* @internal
|
100
|
+
*/
|
101
|
+
protected _getRainEmitter(parent: PIXI.Container): PIXI.particles.Emitter;
|
102
|
+
|
103
|
+
/**
|
104
|
+
* @internal
|
105
|
+
*/
|
106
|
+
protected _getSplashEmitter(parent: PIXI.Container): PIXI.particles.Emitter;
|
97
107
|
}
|
@@ -2,13 +2,13 @@
|
|
2
2
|
* A special full-screen weather effect which uses one Emitters to render snowflakes
|
3
3
|
*/
|
4
4
|
declare class SnowWeatherEffect extends SpecialEffect {
|
5
|
+
/**
|
6
|
+
* @defaultValue `'Snow'`
|
7
|
+
*/
|
5
8
|
static get label(): string;
|
6
9
|
|
7
|
-
getParticleEmitters(): PIXI.particles.Emitter[];
|
8
|
-
|
9
|
-
_getSnowEmitter(parent: PIXI.Container): PIXI.particles.Emitter;
|
10
|
-
|
11
10
|
/**
|
11
|
+
* Configuration of the particle emitter for snowflakes
|
12
12
|
* @defaultValue
|
13
13
|
* ```typescript
|
14
14
|
* {
|
@@ -52,4 +52,11 @@ declare class SnowWeatherEffect extends SpecialEffect {
|
|
52
52
|
* ```
|
53
53
|
*/
|
54
54
|
static SNOW_CONFIG: PIXI.particles.EmitterConfig | PIXI.particles.OldEmitterConfig;
|
55
|
+
|
56
|
+
getParticleEmitters(): PIXI.particles.Emitter[];
|
57
|
+
|
58
|
+
/**
|
59
|
+
* @internal
|
60
|
+
*/
|
61
|
+
protected _getSnowEmitter(parent: PIXI.Container): PIXI.particles.Emitter;
|
55
62
|
}
|
@@ -6,15 +6,15 @@ declare class VideoHelper {
|
|
6
6
|
constructor();
|
7
7
|
|
8
8
|
/**
|
9
|
-
* A
|
9
|
+
* A collection of HTML5 video objects which are currently active within the FVTT page
|
10
10
|
* @defaultValue `[]`
|
11
|
+
* @remarks This seems to be unused.
|
11
12
|
*/
|
12
13
|
videos: HTMLVideoElement[];
|
13
14
|
|
14
15
|
/**
|
15
16
|
* A user gesture must be registered before video playback can begin.
|
16
17
|
* This Set records the video elements which await such a gesture.
|
17
|
-
* @defaultValue an empty Set
|
18
18
|
*/
|
19
19
|
pending: Set<HTMLVideoElement>;
|
20
20
|
|
@@ -30,22 +30,20 @@ declare class VideoHelper {
|
|
30
30
|
*/
|
31
31
|
locked: boolean;
|
32
32
|
|
33
|
-
/* -------------------------------------------- */
|
34
|
-
/* Methods */
|
35
|
-
/* -------------------------------------------- */
|
36
|
-
|
37
33
|
static hasVideoExtension(src: string): boolean;
|
38
34
|
|
39
|
-
/* -------------------------------------------- */
|
40
|
-
|
41
35
|
/**
|
42
36
|
* Play a single video source
|
43
37
|
* If playback is not yet enabled, add the video to the pending queue
|
44
38
|
* @param video - The VIDEO element to play
|
45
39
|
*/
|
46
|
-
play(video:
|
40
|
+
play(video: HTMLVideoElement): void;
|
47
41
|
|
48
|
-
|
42
|
+
/**
|
43
|
+
* Stop a single video source
|
44
|
+
* @param video - The VIDEO element to stop
|
45
|
+
*/
|
46
|
+
stop(video: HTMLVideoElement): void;
|
49
47
|
|
50
48
|
/**
|
51
49
|
* Register an event listener to await the first mousemove gesture and begin playback once observed
|
@@ -54,17 +52,14 @@ declare class VideoHelper {
|
|
54
52
|
*/
|
55
53
|
awaitFirstGesture(): void;
|
56
54
|
|
57
|
-
/* -------------------------------------------- */
|
58
|
-
|
59
55
|
/**
|
60
56
|
* Handle the first observed user gesture
|
61
57
|
* We need a slight delay because unfortunately Chrome is stupid and doesn't always acknowledge the gesture fast enough.
|
62
58
|
* @param event - The mouse-move event which enables playback
|
59
|
+
* @internal
|
63
60
|
*/
|
64
61
|
protected _onFirstGesture(event: Event): void;
|
65
62
|
|
66
|
-
/* -------------------------------------------- */
|
67
|
-
|
68
63
|
/**
|
69
64
|
* Create and cache a static thumbnail to use for the video.
|
70
65
|
* The thumbnail is cached using the video file path or URL.
|
package/src/foundry/index.d.ts
CHANGED
@@ -38,6 +38,7 @@ import './foundry.js/ray';
|
|
38
38
|
import './foundry.js/roll';
|
39
39
|
import './foundry.js/searchFilter';
|
40
40
|
import './foundry.js/specialEffect';
|
41
|
+
import './foundry.js/specialEffects';
|
41
42
|
import './foundry.js/socketInterface';
|
42
43
|
import './foundry.js/sortingHelpers';
|
43
44
|
import './foundry.js/sound';
|
@@ -77,6 +78,7 @@ import './foundry.js/clientDocuments/playlist';
|
|
77
78
|
import './foundry.js/clientDocuments/rollTable';
|
78
79
|
import './foundry.js/clientDocuments/scene';
|
79
80
|
import './foundry.js/clientDocuments/setting';
|
81
|
+
import './foundry.js/clientDocuments/tableResult';
|
80
82
|
import './foundry.js/clientDocuments/user';
|
81
83
|
|
82
84
|
import './foundry.js/collections';
|
@@ -96,7 +98,3 @@ import './foundry.js/rollTerms/diceTerms/die';
|
|
96
98
|
import './foundry.js/rollTerms/diceTerms/fateDie';
|
97
99
|
|
98
100
|
import './foundry.js/pixi';
|
99
|
-
|
100
|
-
import './foundry.js/specialEffects/autumnLeavesWeatherEffect';
|
101
|
-
import './foundry.js/specialEffects/rainWeatherEffect';
|
102
|
-
import './foundry.js/specialEffects/snowWeatherEffect';
|