@league-of-foundry-developers/foundry-vtt-types 0.8.9-6 → 9.238.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 +44 -27
- package/index-lenient.d.ts +10 -0
- package/index.d.ts +2 -2
- package/package.json +43 -15
- package/src/foundry/common/abstract/backend.mjs.d.ts +14 -15
- package/src/foundry/common/abstract/document.mjs.d.ts +30 -12
- package/src/foundry/common/config.mjs/index.d.ts +1 -0
- package/src/foundry/common/config.mjs/releaseData.d.ts +98 -0
- package/src/foundry/common/constants.mjs.d.ts +402 -213
- package/src/foundry/common/data/data.mjs/activeEffectData.d.ts +36 -29
- package/src/foundry/common/data/data.mjs/actorData.d.ts +32 -21
- package/src/foundry/common/data/data.mjs/adventureData.d.ts +165 -0
- package/src/foundry/common/data/data.mjs/ambientLightData.d.ts +45 -124
- package/src/foundry/common/data/data.mjs/ambientSoundData.d.ts +49 -77
- package/src/foundry/common/data/data.mjs/animationData.d.ts +17 -9
- package/src/foundry/common/data/data.mjs/cardData.d.ts +265 -0
- package/src/foundry/common/data/data.mjs/cardFaceData.d.ts +66 -0
- package/src/foundry/common/data/data.mjs/cardsData.d.ts +238 -0
- package/src/foundry/common/data/data.mjs/chatMessageData.d.ts +51 -39
- package/src/foundry/common/data/data.mjs/chatSpeakerData.d.ts +18 -11
- package/src/foundry/common/data/data.mjs/combatData.d.ts +51 -25
- package/src/foundry/common/data/data.mjs/combatantData.d.ts +48 -30
- package/src/foundry/common/data/data.mjs/darknessActivation.d.ts +8 -7
- package/src/foundry/common/data/data.mjs/drawingData.d.ts +72 -66
- package/src/foundry/common/data/data.mjs/effectChangeData.d.ts +21 -25
- package/src/foundry/common/data/data.mjs/effectDurationData.d.ts +24 -23
- package/src/foundry/common/data/data.mjs/fogExplorationData.d.ts +23 -16
- package/src/foundry/common/data/data.mjs/folderData.d.ts +28 -25
- package/src/foundry/common/data/data.mjs/index.d.ts +5 -0
- package/src/foundry/common/data/data.mjs/itemData.d.ts +26 -18
- package/src/foundry/common/data/data.mjs/journalEntryData.d.ts +21 -20
- package/src/foundry/common/data/data.mjs/lightData.d.ts +228 -0
- package/src/foundry/common/data/data.mjs/macroData.d.ts +52 -35
- package/src/foundry/common/data/data.mjs/measuredTemplateData.d.ts +41 -38
- package/src/foundry/common/data/data.mjs/noteData.d.ts +47 -37
- package/src/foundry/common/data/data.mjs/playlistData.d.ts +55 -26
- package/src/foundry/common/data/data.mjs/playlistSoundData.d.ts +32 -16
- package/src/foundry/common/data/data.mjs/prototypeTokenData.d.ts +7 -11
- package/src/foundry/common/data/data.mjs/rollTableData.d.ts +30 -24
- package/src/foundry/common/data/data.mjs/sceneData.d.ts +132 -111
- package/src/foundry/common/data/data.mjs/settingData.d.ts +11 -8
- package/src/foundry/common/data/data.mjs/tableResultData.d.ts +30 -26
- package/src/foundry/common/data/data.mjs/tileData.d.ts +43 -36
- package/src/foundry/common/data/data.mjs/tileOcclusion.d.ts +10 -9
- package/src/foundry/common/data/data.mjs/tokenBarData.d.ts +6 -3
- package/src/foundry/common/data/data.mjs/tokenData.d.ts +105 -157
- package/src/foundry/common/data/data.mjs/userData.d.ts +111 -33
- package/src/foundry/common/data/data.mjs/videoData.d.ts +9 -8
- package/src/foundry/common/data/data.mjs/wallData.d.ts +67 -39
- package/src/foundry/common/data/fields.mjs.d.ts +180 -83
- package/src/foundry/common/documents.mjs/baseActiveEffect.d.ts +9 -3
- package/src/foundry/common/documents.mjs/baseActor.d.ts +17 -45
- package/src/foundry/common/documents.mjs/baseAdventure.d.ts +38 -0
- package/src/foundry/common/documents.mjs/baseAmbientLight.d.ts +3 -0
- package/src/foundry/common/documents.mjs/baseAmbientSound.d.ts +3 -1
- package/src/foundry/common/documents.mjs/baseCard.d.ts +62 -0
- package/src/foundry/common/documents.mjs/baseCards.d.ts +39 -0
- package/src/foundry/common/documents.mjs/baseChatMessage.d.ts +3 -0
- package/src/foundry/common/documents.mjs/baseCombat.d.ts +5 -2
- package/src/foundry/common/documents.mjs/baseCombatant.d.ts +10 -1
- package/src/foundry/common/documents.mjs/baseDrawing.d.ts +11 -1
- package/src/foundry/common/documents.mjs/baseFogExploration.d.ts +4 -3
- package/src/foundry/common/documents.mjs/baseFolder.d.ts +10 -1
- package/src/foundry/common/documents.mjs/baseItem.d.ts +11 -29
- package/src/foundry/common/documents.mjs/baseJournalEntry.d.ts +3 -0
- package/src/foundry/common/documents.mjs/baseMacro.d.ts +16 -14
- package/src/foundry/common/documents.mjs/baseMeasuredTemplate.d.ts +4 -1
- package/src/foundry/common/documents.mjs/baseNote.d.ts +2 -2
- package/src/foundry/common/documents.mjs/basePlaylist.d.ts +1 -0
- package/src/foundry/common/documents.mjs/basePlaylistSound.d.ts +2 -1
- package/src/foundry/common/documents.mjs/baseRollTable.d.ts +3 -0
- package/src/foundry/common/documents.mjs/baseScene.d.ts +1 -0
- package/src/foundry/common/documents.mjs/baseSetting.d.ts +1 -0
- package/src/foundry/common/documents.mjs/baseTableResult.d.ts +10 -3
- package/src/foundry/common/documents.mjs/baseTile.d.ts +1 -0
- package/src/foundry/common/documents.mjs/baseToken.d.ts +3 -0
- package/src/foundry/common/documents.mjs/baseUser.d.ts +7 -1
- package/src/foundry/common/documents.mjs/baseWall.d.ts +7 -10
- package/src/foundry/common/documents.mjs/index.d.ts +3 -0
- package/src/foundry/common/module.mjs.d.ts +3 -0
- package/src/foundry/common/packages.mjs/moduleData.d.ts +12 -9
- package/src/foundry/common/packages.mjs/packageAuthorData.d.ts +24 -24
- package/src/foundry/common/packages.mjs/packageCompendiumData.d.ts +27 -21
- package/src/foundry/common/packages.mjs/packageData.d.ts +108 -82
- package/src/foundry/common/packages.mjs/packageDependencyData.d.ts +18 -11
- package/src/foundry/common/packages.mjs/packageLanguageData.d.ts +16 -15
- package/src/foundry/common/packages.mjs/systemData.d.ts +21 -20
- package/src/foundry/common/packages.mjs/tagPackageAvailability.d.ts +3 -3
- package/src/foundry/common/packages.mjs/worldData.d.ts +29 -18
- package/src/foundry/common/types.mjs.d.ts +100 -0
- package/src/foundry/common/utils/helpers.mjs.d.ts +27 -2
- package/src/foundry/common/utils/primitives.mjs.d.ts +99 -16
- package/src/foundry/foundry.js/application.d.ts +4 -7
- 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 +116 -116
- package/src/foundry/foundry.js/applications/formApplication.d.ts +2 -2
- 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/documentSheet.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/activeEffectConfig.d.ts +2 -2
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/actorSheet.d.ts +6 -3
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/ambientLightConfig.d.ts +104 -0
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/ambientSoundConfig.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/{folderConfig.d.ts → documentSheets/folderConfig.d.ts} +3 -3
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/index.d.ts +4 -0
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/lightConfig.d.ts +5 -79
- 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/permissionControl.d.ts +5 -5
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/playlistConfig.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/rollTableConfig.d.ts +187 -148
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/sceneConfig.d.ts +133 -110
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/tileConfig.d.ts +1 -1
- 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/gridConfig.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/imagePopout.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/index.d.ts +2 -3
- package/src/foundry/foundry.js/applications/formApplications/keybindingsConfig.d.ts +257 -0
- 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 +142 -155
- 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/sceneControls.d.ts +13 -3
- package/src/foundry/foundry.js/applications/sceneNavigation.d.ts +90 -71
- package/src/foundry/foundry.js/applications/sidebarTab.d.ts +1 -1
- package/src/foundry/foundry.js/applications/sidebarTabs/chatLog.d.ts +7 -6
- package/src/foundry/foundry.js/applications/sidebarTabs/compendiumDirectory.d.ts +2 -2
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/actorDirectory.d.ts +13 -56
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/cardsDirectory.d.ts +7 -0
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/index.d.ts +1 -0
- 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/playlistDirectory.d.ts +2 -2
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/sceneDirectory.d.ts +6 -23
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectory.d.ts +4 -6
- package/src/foundry/foundry.js/avSettings.d.ts +7 -7
- package/src/foundry/foundry.js/cameraPopoutAppWrapper.d.ts +12 -7
- package/src/foundry/foundry.js/canvas.d.ts +150 -47
- package/src/foundry/foundry.js/canvasAnimation.d.ts +1 -1
- package/src/foundry/foundry.js/canvasDocumentMixin.d.ts +7 -0
- package/src/foundry/foundry.js/clientDatabaseBackend.d.ts +210 -0
- package/src/foundry/foundry.js/clientDocumentMixin.d.ts +45 -91
- package/src/foundry/foundry.js/clientDocuments/activeEffect.d.ts +3 -2
- package/src/foundry/foundry.js/clientDocuments/actor.d.ts +3 -7
- package/src/foundry/foundry.js/clientDocuments/canvasDocuments/ambientSoundDocument.d.ts +1 -6
- package/src/foundry/foundry.js/clientDocuments/canvasDocuments/tokenDocument.d.ts +1 -1
- package/src/foundry/foundry.js/clientDocuments/card.d.ts +133 -0
- package/src/foundry/foundry.js/clientDocuments/cards.d.ts +384 -0
- package/src/foundry/foundry.js/clientDocuments/chatMessage.d.ts +11 -10
- package/src/foundry/foundry.js/clientDocuments/combat.d.ts +4 -8
- package/src/foundry/foundry.js/clientDocuments/combatant.d.ts +1 -1
- package/src/foundry/foundry.js/clientDocuments/folder.d.ts +4 -6
- package/src/foundry/foundry.js/clientDocuments/index.d.ts +3 -0
- package/src/foundry/foundry.js/clientDocuments/item.d.ts +3 -4
- package/src/foundry/foundry.js/clientDocuments/playlist.d.ts +4 -3
- package/src/foundry/foundry.js/clientDocuments/prototypeToken.d.ts +15 -0
- package/src/foundry/foundry.js/clientDocuments/rollTable.d.ts +1 -1
- package/src/foundry/foundry.js/clientDocuments/scene.d.ts +30 -23
- package/src/foundry/foundry.js/clientKeybindings.d.ts +299 -0
- package/src/foundry/foundry.js/clientSettings.d.ts +21 -6
- package/src/foundry/foundry.js/collections/documentCollections/compendiumCollection.d.ts +45 -12
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/cardStacks.d.ts +9 -0
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/index.d.ts +1 -0
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/playlists.d.ts +3 -2
- package/src/foundry/foundry.js/config.d.ts +494 -902
- package/src/foundry/foundry.js/dragDrop.d.ts +17 -14
- package/src/foundry/foundry.js/game.d.ts +86 -11
- package/src/foundry/foundry.js/gamepadManager.d.ts +41 -0
- package/src/foundry/foundry.js/globalVariables.d.ts +7 -4
- package/src/foundry/foundry.js/handlebarsHelpers.d.ts +4 -4
- package/src/foundry/foundry.js/hooks.d.ts +57 -0
- package/src/foundry/foundry.js/keyboardManager.d.ts +165 -213
- package/src/foundry/foundry.js/mouseInteractionManager.d.ts +78 -34
- package/src/foundry/foundry.js/mouseManager.d.ts +18 -0
- package/src/foundry/foundry.js/newUserExperience.d.ts +34 -0
- package/src/foundry/foundry.js/pixi/containers/cachedContainer.d.ts +8 -0
- package/src/foundry/foundry.js/pixi/containers/cachedContainers/index.d.ts +1 -0
- package/src/foundry/foundry.js/pixi/containers/cachedContainers/primaryCanvasGroup.d.ts +42 -0
- package/src/foundry/foundry.js/pixi/containers/canvasLayer.d.ts +2 -1
- package/src/foundry/foundry.js/pixi/containers/canvasLayers/gridLayer.d.ts +2 -2
- package/src/foundry/foundry.js/pixi/containers/canvasLayers/index.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayer.d.ts +10 -19
- package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayers/mapLayers/backgroundLayer.d.ts +6 -2
- package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayers/mapLayers/foregroundLayer.d.ts +2 -2
- package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayers/wallsLayer.d.ts +4 -4
- package/src/foundry/foundry.js/pixi/containers/canvasLayers/{effectsLayer.d.ts → weatherLayer.d.ts} +7 -7
- package/src/foundry/foundry.js/pixi/containers/effectsCanvasGroup.d.ts +29 -0
- package/src/foundry/foundry.js/pixi/containers/index.d.ts +3 -0
- package/src/foundry/foundry.js/pixi/containers/interfaceCanvasGroup.d.ts +27 -0
- package/src/foundry/foundry.js/pixi/containers/placeableObject.d.ts +4 -1
- package/src/foundry/foundry.js/pixi/containers/placeableObjects/token.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/containers/placeableObjects/wall.d.ts +1 -1
- package/src/foundry/foundry.js/pointSource.d.ts +174 -86
- package/src/foundry/foundry.js/roll.d.ts +25 -36
- package/src/foundry/foundry.js/rollTerm.d.ts +7 -4
- package/src/foundry/foundry.js/rollTerms/diceTerm.d.ts +4 -22
- package/src/foundry/foundry.js/rollTerms/mathTerm.d.ts +3 -0
- package/src/foundry/foundry.js/rollTerms/parentheticalTerm.d.ts +3 -0
- package/src/foundry/foundry.js/rollTerms/poolTerm.d.ts +3 -5
- package/src/foundry/foundry.js/rollTerms/stringTerm.d.ts +4 -1
- package/src/foundry/foundry.js/searchFilter.d.ts +1 -1
- package/src/foundry/foundry.js/textEditor.d.ts +40 -9
- package/src/foundry/index.d.ts +5 -0
- package/src/types/utils.d.ts +11 -3
- 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,9 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* Handle mouse interaction events for a Canvas object.
|
3
3
|
* There are three phases of events: hover, click, and drag
|
4
|
-
* @typeParam O - Canvas object this instance handles events for
|
5
|
-
* @typeParam T - Target object for mouseinteraction events. Generally a `ControlIcon` or `O`.
|
6
|
-
* (default: `O`)
|
7
4
|
*
|
8
5
|
* Hover Events:
|
9
6
|
* _handleMouseOver
|
@@ -33,22 +30,24 @@
|
|
33
30
|
* _handleDragCancel
|
34
31
|
* action: dragLeftCancel
|
35
32
|
* action: dragRightCancel
|
33
|
+
*
|
34
|
+
* @typeParam Object - The concrete {@link PIXI.Container} object that for which mouse interactions are being managed
|
36
35
|
*/
|
37
|
-
declare class MouseInteractionManager<
|
36
|
+
declare class MouseInteractionManager<Object extends PIXI.Container = PIXI.Container> {
|
38
37
|
/**
|
39
38
|
* @param permissions - (default: `{}`)
|
40
39
|
* @param callbacks - (default: `{}`)
|
41
40
|
* @param options - (default: `{}`)
|
42
41
|
*/
|
43
42
|
constructor(
|
44
|
-
object:
|
43
|
+
object: Object,
|
45
44
|
layer: MouseInteractionManager['layer'],
|
46
45
|
permissions?: MouseInteractionManager['permissions'],
|
47
46
|
callbacks?: MouseInteractionManager['callbacks'],
|
48
47
|
options?: MouseInteractionManager['options']
|
49
48
|
);
|
50
49
|
|
51
|
-
object:
|
50
|
+
object: Object;
|
52
51
|
|
53
52
|
layer: PIXI.Container;
|
54
53
|
|
@@ -56,24 +55,25 @@ declare class MouseInteractionManager<O extends PIXI.Container = PIXI.Container,
|
|
56
55
|
* @defaultValue `{}`
|
57
56
|
*/
|
58
57
|
permissions: Partial<
|
59
|
-
Record<
|
58
|
+
Record<
|
59
|
+
MouseInteractionManager.PermissionAction,
|
60
|
+
((user: Game['user'], event: PIXI.InteractionEvent) => boolean) | boolean
|
61
|
+
>
|
60
62
|
>;
|
61
63
|
|
62
64
|
/**
|
63
65
|
* @defaultValue `{}`
|
64
66
|
*/
|
65
|
-
callbacks: Partial<
|
66
|
-
Record<MouseInteractionManager.EventNames, ((event: Event | PIXI.InteractionEvent) => unknown) | null>
|
67
|
-
>;
|
67
|
+
callbacks: Partial<Record<MouseInteractionManager.Action, ((event: Event | PIXI.InteractionEvent) => void) | null>>;
|
68
68
|
|
69
69
|
/**
|
70
70
|
* @defaultValue `{}`
|
71
71
|
*/
|
72
|
-
options:
|
72
|
+
options: MouseInteractionManager.Options;
|
73
73
|
|
74
74
|
/**
|
75
75
|
* The current interaction state
|
76
|
-
* @defaultValue `
|
76
|
+
* @defaultValue `MouseInteractionManager.INTERACTION_STATES.NONE`
|
77
77
|
*/
|
78
78
|
state: ValueOf<typeof MouseInteractionManager['INTERACTION_STATES']>;
|
79
79
|
|
@@ -82,7 +82,10 @@ declare class MouseInteractionManager<O extends PIXI.Container = PIXI.Container,
|
|
82
82
|
* @defaultValue `{}`
|
83
83
|
*/
|
84
84
|
handlers: Partial<
|
85
|
-
Record<
|
85
|
+
Record<
|
86
|
+
'contextmenu' | 'mousedown' | 'mousemove' | 'mouseout' | 'mouseover' | 'mouseup' | 'rightdown',
|
87
|
+
(event: PIXI.InteractionEvent | MouseEvent) => void
|
88
|
+
>
|
86
89
|
>;
|
87
90
|
|
88
91
|
/**
|
@@ -94,6 +97,7 @@ declare class MouseInteractionManager<O extends PIXI.Container = PIXI.Container,
|
|
94
97
|
/**
|
95
98
|
* The throttling time below which a mouse move event will not be handled
|
96
99
|
* @defaultValue `Math.ceil(1000 / canvas.app.ticker.maxFPS)`
|
100
|
+
* @internal
|
97
101
|
*/
|
98
102
|
protected _dragThrottleMS: number;
|
99
103
|
|
@@ -115,11 +119,31 @@ declare class MouseInteractionManager<O extends PIXI.Container = PIXI.Container,
|
|
115
119
|
*/
|
116
120
|
protected _dragRight: boolean;
|
117
121
|
|
122
|
+
/**
|
123
|
+
* An optional ControlIcon instance for the object
|
124
|
+
*/
|
125
|
+
controlIcon: ControlIcon | undefined;
|
126
|
+
|
127
|
+
/**
|
128
|
+
* Enumerate the states of a mouse interaction workflow.
|
129
|
+
* 0: NONE - the object is inactive
|
130
|
+
* 1: HOVER - the mouse is hovered over the object
|
131
|
+
* 2: CLICKED - the object is clicked
|
132
|
+
* 3: DRAG - the object is being dragged
|
133
|
+
* 4: DROP - the object is being dropped
|
134
|
+
*/
|
135
|
+
static INTERACTION_STATES: {
|
136
|
+
NONE: 0;
|
137
|
+
HOVER: 1;
|
138
|
+
CLICKED: 2;
|
139
|
+
DRAG: 3;
|
140
|
+
DROP: 4;
|
141
|
+
};
|
142
|
+
|
118
143
|
/**
|
119
144
|
* Get the target
|
120
|
-
* @returns `this.object` or `this.object[this.options.target]`
|
121
145
|
*/
|
122
|
-
get target():
|
146
|
+
get target(): PIXI.Container;
|
123
147
|
|
124
148
|
/**
|
125
149
|
* Activate interactivity for the handled object
|
@@ -132,14 +156,14 @@ declare class MouseInteractionManager<O extends PIXI.Container = PIXI.Container,
|
|
132
156
|
* @param event - The event being handled
|
133
157
|
* @returns Can the action be performed?
|
134
158
|
*/
|
135
|
-
can(action: MouseInteractionManager.
|
159
|
+
can(action: MouseInteractionManager.PermissionAction, event: Event | PIXI.InteractionEvent): boolean;
|
136
160
|
|
137
161
|
/**
|
138
162
|
* Execute a callback function associated with a certain action in the workflow
|
139
163
|
* @param action - The action being attempted
|
140
164
|
* @param event - The event being handled
|
141
165
|
*/
|
142
|
-
callback(action: MouseInteractionManager.
|
166
|
+
callback(action: MouseInteractionManager.Action, event: Event | PIXI.InteractionEvent): unknown;
|
143
167
|
|
144
168
|
/**
|
145
169
|
* A reference to the possible interaction states which can be observed
|
@@ -148,132 +172,152 @@ declare class MouseInteractionManager<O extends PIXI.Container = PIXI.Container,
|
|
148
172
|
|
149
173
|
/**
|
150
174
|
* Activate a set of listeners which handle hover events on the target object
|
175
|
+
* @internal
|
151
176
|
*/
|
152
177
|
protected _activateHoverEvents(): void;
|
153
178
|
|
154
179
|
/**
|
155
180
|
* Activate a new set of listeners for click events on the target object
|
181
|
+
* @internal
|
156
182
|
*/
|
157
183
|
protected _activateClickEvents(): void;
|
158
184
|
|
159
185
|
/**
|
160
186
|
* Deactivate event listeners for click events on the target object
|
187
|
+
* @internal
|
161
188
|
*/
|
162
189
|
protected _deactivateClickEvents(): void;
|
163
190
|
|
164
191
|
/**
|
165
192
|
* Activate events required for handling a drag-and-drop workflow
|
193
|
+
* @internal
|
166
194
|
*/
|
167
195
|
protected _activateDragEvents(): void;
|
168
196
|
|
169
197
|
/**
|
170
198
|
* Deactivate events required for handling drag-and-drop workflow.
|
199
|
+
* @internal
|
171
200
|
*/
|
172
201
|
protected _deactivateDragEvents(): void;
|
173
202
|
|
174
203
|
/**
|
175
204
|
* Handle mouse-over events which activate downstream listeners and do not stop propagation.
|
205
|
+
* @internal
|
176
206
|
*/
|
177
207
|
protected _handleMouseOver(event: PIXI.InteractionEvent): unknown;
|
178
208
|
|
179
209
|
/**
|
180
210
|
* Handle mouse-out events which terminate hover workflows and do not stop propagation.
|
211
|
+
* @internal
|
181
212
|
*/
|
182
213
|
protected _handleMouseOut(event: PIXI.InteractionEvent): unknown;
|
183
214
|
|
184
215
|
/**
|
185
216
|
* Handle mouse-down events which activate downstream listeners.
|
186
217
|
* Stop further propagation only if the event is allowed by either single or double-click.
|
218
|
+
* @internal
|
187
219
|
*/
|
188
220
|
protected _handleMouseDown(event: PIXI.InteractionEvent): unknown;
|
189
221
|
|
190
222
|
/**
|
191
223
|
* Handle mouse-down which trigger a single left-click workflow.
|
224
|
+
* @internal
|
192
225
|
*/
|
193
226
|
protected _handleClickLeft(event: PIXI.InteractionEvent): void;
|
194
227
|
|
195
228
|
/**
|
196
229
|
* Handle mouse-down which trigger a single left-click workflow.
|
230
|
+
* @internal
|
197
231
|
*/
|
198
232
|
protected _handleClickLeft2(event: PIXI.InteractionEvent): unknown;
|
199
233
|
|
200
234
|
/**
|
201
235
|
* Handle right-click mouse-down events.
|
202
236
|
* Stop further propagation only if the event is allowed by either single or double-click.
|
237
|
+
* @internal
|
203
238
|
*/
|
204
239
|
protected _handleRightDown(event: PIXI.InteractionEvent): unknown;
|
205
240
|
|
206
241
|
/**
|
207
242
|
* Handle single right-click actions.
|
243
|
+
* @internal
|
208
244
|
*/
|
209
245
|
protected _handleClickRight(event: PIXI.InteractionEvent): void;
|
210
246
|
|
211
247
|
/**
|
212
248
|
* Handle double right-click actions.
|
249
|
+
* @internal
|
213
250
|
*/
|
214
251
|
protected _handleClickRight2(event: PIXI.InteractionEvent): unknown;
|
215
252
|
|
216
253
|
/**
|
217
254
|
* Handle mouse movement during a drag workflow
|
255
|
+
* @internal
|
218
256
|
*/
|
219
257
|
protected _handleMouseMove(event: PIXI.InteractionEvent): unknown;
|
220
258
|
|
221
259
|
/**
|
222
260
|
* Handle the beginning of a new drag start workflow, moving all controlled objects on the layer
|
261
|
+
* @internal
|
223
262
|
*/
|
224
263
|
protected _handleDragStart(event: PIXI.InteractionEvent): unknown;
|
225
264
|
|
226
265
|
/**
|
227
266
|
* Handle the continuation of a drag workflow, moving all controlled objects on the layer
|
267
|
+
* @internal
|
228
268
|
*/
|
229
269
|
protected _handleDragMove(event: PIXI.InteractionEvent): unknown;
|
230
270
|
|
231
271
|
/**
|
232
272
|
* Handle mouse up events which may optionally conclude a drag workflow
|
273
|
+
* @internal
|
233
274
|
*/
|
234
275
|
protected _handleMouseUp(event: PIXI.InteractionEvent): void;
|
235
276
|
|
236
277
|
/**
|
237
278
|
* Handle the conclusion of a drag workflow, placing all dragged objects back on the layer
|
279
|
+
* @internal
|
238
280
|
*/
|
239
281
|
protected _handleDragDrop(event: PIXI.InteractionEvent): void;
|
240
282
|
|
241
283
|
/**
|
242
284
|
* Handle the cancellation of a drag workflow, resetting back to the original state
|
285
|
+
* @internal
|
243
286
|
*/
|
244
|
-
protected _handleDragCancel(event:
|
287
|
+
protected _handleDragCancel(event: MouseEvent): void;
|
245
288
|
|
246
289
|
/**
|
247
|
-
*
|
248
|
-
*
|
249
|
-
* 1: HOVER - the mouse is hovered over the object
|
250
|
-
* 2: CLICKED - the object is clicked
|
251
|
-
* 3: DRAG - the object is being dragged
|
252
|
-
* 4: DROP - the object is being dropped
|
290
|
+
* A public method to cancel a current interaction workflow from this manager.
|
291
|
+
* @param event - The event that initiates the cancellation
|
253
292
|
*/
|
254
|
-
|
255
|
-
NONE: 0;
|
256
|
-
HOVER: 1;
|
257
|
-
CLICKED: 2;
|
258
|
-
DRAG: 3;
|
259
|
-
DROP: 4;
|
260
|
-
};
|
293
|
+
cancel(event: Event): void;
|
261
294
|
}
|
262
295
|
|
263
296
|
declare namespace MouseInteractionManager {
|
264
|
-
type
|
297
|
+
type PermissionAction =
|
265
298
|
| 'clickLeft'
|
266
299
|
| 'clickLeft2'
|
267
300
|
| 'clickRight'
|
268
301
|
| 'clickRight2'
|
269
|
-
| 'dragLeftCancel'
|
270
302
|
| 'dragLeftDrop'
|
271
303
|
| 'dragLeftMove'
|
272
304
|
| 'dragLeftStart'
|
273
|
-
| 'dragRightCancel'
|
274
305
|
| 'dragRightDrop'
|
275
306
|
| 'dragRightMove'
|
276
307
|
| 'dragRightStart'
|
277
308
|
| 'hoverIn'
|
278
309
|
| 'hoverOut';
|
310
|
+
|
311
|
+
type Action = PermissionAction | 'dragLeftCancel' | 'dragRightCancel';
|
312
|
+
|
313
|
+
interface Options {
|
314
|
+
/**
|
315
|
+
* @remarks If set, this must be the name of a property of the object that is a {@link PIXI.Container}.
|
316
|
+
*/
|
317
|
+
target?: string | null;
|
318
|
+
|
319
|
+
dragResistance?: number;
|
320
|
+
}
|
279
321
|
}
|
322
|
+
|
323
|
+
declare const a: PIXI.Container;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/** Management class for Mouse events */
|
2
|
+
declare class MouseManager {
|
3
|
+
constructor();
|
4
|
+
|
5
|
+
/**
|
6
|
+
* Specify a rate limit for mouse wheel to gate repeated scrolling.
|
7
|
+
* This is especially important for continuous scrolling mice which emit hundreds of events per second.
|
8
|
+
* This designates a minimum number of milliseconds which must pass before another wheel event is handled
|
9
|
+
* @defaultValue `50`
|
10
|
+
*/
|
11
|
+
static MOUSE_WHEEL_RATE_LIMIT: number;
|
12
|
+
|
13
|
+
/**
|
14
|
+
* Master mouse-wheel event handler
|
15
|
+
* @internal
|
16
|
+
*/
|
17
|
+
protected _onWheel(event: MouseEvent): void;
|
18
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
/**
|
2
|
+
* Responsible for managing the New User Experience workflows.
|
3
|
+
*/
|
4
|
+
declare class NewUserExperience {
|
5
|
+
constructor();
|
6
|
+
|
7
|
+
/**
|
8
|
+
* Initialize the new user experience.
|
9
|
+
* Currently, this generates some chat messages with hints for getting started if we detect this is a new world.
|
10
|
+
*/
|
11
|
+
initialize(): void;
|
12
|
+
|
13
|
+
/**
|
14
|
+
* Add event listeners to the chat card links.
|
15
|
+
* @param msg - The ChatMessage being rendered.
|
16
|
+
* @param html - The HTML content of the message.
|
17
|
+
* @internal
|
18
|
+
*/
|
19
|
+
protected _activateListeners(msg: ChatMessage, html: JQuery): void;
|
20
|
+
|
21
|
+
/**
|
22
|
+
* Perform some special action triggered by clicking on a link in a NUE chat card.
|
23
|
+
* @param event - The click event.
|
24
|
+
* @internal
|
25
|
+
*/
|
26
|
+
protected _onActionLink(event: Event): void;
|
27
|
+
|
28
|
+
/**
|
29
|
+
* Switch to the appropriate tab when a user clicks on a link in the chat message.
|
30
|
+
* @param event - The click event.
|
31
|
+
* @internal
|
32
|
+
*/
|
33
|
+
protected _onTabLink(event: Event): void;
|
34
|
+
}
|
@@ -33,6 +33,14 @@ declare class CachedContainer extends PIXI.Container {
|
|
33
33
|
*/
|
34
34
|
displayed: boolean;
|
35
35
|
|
36
|
+
/**
|
37
|
+
* A bound Sprite which uses this container's render texture
|
38
|
+
*/
|
39
|
+
get sprite(): PIXI.Sprite;
|
40
|
+
|
41
|
+
/** @internal */
|
42
|
+
protected _sprite: PIXI.Sprite | undefined;
|
43
|
+
|
36
44
|
destroy(options?: Parameters<PIXI.Container['destroy']>[0]): ReturnType<PIXI.Container['destroy']>;
|
37
45
|
|
38
46
|
render(renderer: Parameters<PIXI.Container['render']>[0]): void;
|
@@ -0,0 +1 @@
|
|
1
|
+
import './primaryCanvasGroup';
|
@@ -0,0 +1,42 @@
|
|
1
|
+
/**
|
2
|
+
* A cached container group which renders the primary visible contents of a Scene.
|
3
|
+
*/
|
4
|
+
declare class PrimaryCanvasGroup extends CachedContainer {
|
5
|
+
constructor();
|
6
|
+
|
7
|
+
background: BackgroundLayer;
|
8
|
+
|
9
|
+
drawings: DrawingsLayer;
|
10
|
+
|
11
|
+
grid: GridLayer;
|
12
|
+
|
13
|
+
templates: TemplateLayer;
|
14
|
+
|
15
|
+
tokens: TokenLayer;
|
16
|
+
|
17
|
+
foreground: ForegroundLayer;
|
18
|
+
|
19
|
+
/** @defaultValue `true` */
|
20
|
+
sortableChildren: boolean;
|
21
|
+
|
22
|
+
/**
|
23
|
+
* The name of this canvas group
|
24
|
+
* @defaultValue `"primary"`
|
25
|
+
*/
|
26
|
+
static groupName: string;
|
27
|
+
|
28
|
+
/**
|
29
|
+
* @override
|
30
|
+
* @defaultValue `[0, 0, 0, 0]`
|
31
|
+
*/
|
32
|
+
clearColor: [r: number, g: number, b: number, a: number];
|
33
|
+
|
34
|
+
/**
|
35
|
+
* Create the member layers of the scene container
|
36
|
+
* @internal
|
37
|
+
*/
|
38
|
+
protected _createLayers(): void;
|
39
|
+
|
40
|
+
/** @override */
|
41
|
+
render(renderer: Parameters<PIXI.Container['render']>[0]): void;
|
42
|
+
}
|
@@ -24,8 +24,9 @@ declare abstract class CanvasLayer<Options extends CanvasLayerOptions = CanvasLa
|
|
24
24
|
/**
|
25
25
|
* Track whether the canvas layer is currently active for interaction
|
26
26
|
* @defaultValue `false`
|
27
|
+
* @remarks This is public because it's checked from outside in foundry and modules sometimes need to do the same.
|
27
28
|
*/
|
28
|
-
|
29
|
+
_active: boolean;
|
29
30
|
|
30
31
|
/**
|
31
32
|
* Customize behaviors of this CanvasLayer by modifying some behaviors at a class level.
|
@@ -42,7 +42,7 @@ declare class GridLayer extends CanvasLayer<GridLayer.LayerOptions> {
|
|
42
42
|
/**
|
43
43
|
* The grid type rendered in this Scene
|
44
44
|
*/
|
45
|
-
get type(): foundry.CONST.
|
45
|
+
get type(): foundry.CONST.GRID_TYPES;
|
46
46
|
|
47
47
|
/**
|
48
48
|
* A convenient reference to the pixel grid size used throughout this layer
|
@@ -177,7 +177,7 @@ interface DrawOptions {
|
|
177
177
|
/**
|
178
178
|
* @defaultValue `null`
|
179
179
|
*/
|
180
|
-
type?: foundry.CONST.
|
180
|
+
type?: foundry.CONST.GRID_TYPES | null;
|
181
181
|
|
182
182
|
/**
|
183
183
|
* @defaultValue `null`
|
@@ -52,8 +52,9 @@ declare global {
|
|
52
52
|
/**
|
53
53
|
* Track the set of PlaceableObjects on this layer which are currently controlled by their id
|
54
54
|
* @defaultValue `{}`
|
55
|
+
* @remarks This is public because it's used from externally by foundry and modules might need to do the same.
|
55
56
|
*/
|
56
|
-
|
57
|
+
_controlled: Record<string, InstanceType<ConfiguredObjectClassForName<DocumentName>>>;
|
57
58
|
|
58
59
|
/**
|
59
60
|
* Keep track of an object copied with CTRL+C which can be pasted later
|
@@ -114,7 +115,9 @@ declare global {
|
|
114
115
|
/**
|
115
116
|
* Obtain an iterable of objects which should be added to this PlaceableLayer
|
116
117
|
*/
|
117
|
-
getDocuments():
|
118
|
+
getDocuments():
|
119
|
+
| Exclude<this['documentCollection'], null>
|
120
|
+
| InstanceType<ConfiguredDocumentClassForName<DocumentName>>[];
|
118
121
|
|
119
122
|
/**
|
120
123
|
* @override
|
@@ -270,7 +273,7 @@ declare global {
|
|
270
273
|
* @param event - (unused)
|
271
274
|
* @see {@link Canvas#_onClickLeft}
|
272
275
|
*/
|
273
|
-
protected _onClickLeft(event: PIXI.InteractionEvent):
|
276
|
+
protected _onClickLeft(event: PIXI.InteractionEvent): void;
|
274
277
|
|
275
278
|
/**
|
276
279
|
* Handle double left-click events which originate from the Canvas stage and are dispatched to this Layer.
|
@@ -282,9 +285,8 @@ declare global {
|
|
282
285
|
/**
|
283
286
|
* Start a left-click drag workflow originating from the Canvas stage.
|
284
287
|
* @see {@link Canvas#_onDragLeftStart}
|
285
|
-
* @remarks This returns Promise<void> but is overridden by some subclasses.
|
286
288
|
*/
|
287
|
-
protected _onDragLeftStart(event: PIXI.InteractionEvent):
|
289
|
+
protected _onDragLeftStart(event: PIXI.InteractionEvent): void;
|
288
290
|
|
289
291
|
/**
|
290
292
|
* Continue a left-click drag workflow originating from the Canvas stage.
|
@@ -295,11 +297,8 @@ declare global {
|
|
295
297
|
/**
|
296
298
|
* Conclude a left-click drag workflow originating from the Canvas stage.
|
297
299
|
* @see {@link Canvas#_onDragLeftDrop}
|
298
|
-
* @remarks Returns always a promise but is overridden in subclasses.
|
299
300
|
*/
|
300
|
-
protected _onDragLeftDrop(
|
301
|
-
event: PIXI.InteractionEvent
|
302
|
-
): Promise<InstanceType<ConfiguredDocumentClassForName<DocumentName>> | void> | void;
|
301
|
+
protected _onDragLeftDrop(event: PIXI.InteractionEvent): void;
|
303
302
|
|
304
303
|
/**
|
305
304
|
* Cancel a left-click drag workflow originating from the Canvas stage.
|
@@ -319,23 +318,15 @@ declare global {
|
|
319
318
|
* Handle mouse-wheel events at the PlaceableObjects layer level to rotate multiple objects at once.
|
320
319
|
* This handler will rotate all controlled objects by some incremental angle.
|
321
320
|
* @param event - The mousewheel event which originated the request
|
322
|
-
* @remarks This methods just returns ReturnType\<this['rotateMany']\>|void but is overridden by subclasses
|
323
321
|
*/
|
324
|
-
protected _onMouseWheel(
|
325
|
-
event: WheelEvent
|
326
|
-
):
|
327
|
-
| ReturnType<this['rotateMany']>
|
328
|
-
| ReturnType<InstanceType<ConfiguredObjectClassForName<DocumentName>>['rotate']>
|
329
|
-
| void;
|
322
|
+
protected _onMouseWheel(event: WheelEvent): void;
|
330
323
|
|
331
324
|
/**
|
332
325
|
* Handle a DELETE keypress while a placeable object is hovered
|
333
326
|
* @param event - The delete key press event which triggered the request
|
334
327
|
* (unused)
|
335
328
|
*/
|
336
|
-
protected _onDeleteKey(
|
337
|
-
event?: any
|
338
|
-
): Promise<InstanceType<ConfiguredDocumentClassForName<DocumentName>>[] | undefined>;
|
329
|
+
protected _onDeleteKey(event?: any): void;
|
339
330
|
|
340
331
|
/**
|
341
332
|
* @deprecated since 0.8.0
|
@@ -1,4 +1,8 @@
|
|
1
|
-
import {
|
1
|
+
import {
|
2
|
+
ConfiguredDocumentClassForName,
|
3
|
+
ConfiguredObjectClassForName,
|
4
|
+
DataSourceForPlaceable
|
5
|
+
} from '../../../../../../../types/helperTypes';
|
2
6
|
|
3
7
|
declare global {
|
4
8
|
/**
|
@@ -27,7 +31,7 @@ declare global {
|
|
27
31
|
*/
|
28
32
|
protected _drawOutline(): PIXI.Graphics | undefined;
|
29
33
|
|
30
|
-
getDocuments(): Exclude<this['documentCollection'], null
|
34
|
+
getDocuments(): Exclude<this['documentCollection'], null> | InstanceType<ConfiguredDocumentClassForName<'Tile'>>[];
|
31
35
|
|
32
36
|
getZIndex(): number;
|
33
37
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ConfiguredObjectClassForName } from '../../../../../../../types/helperTypes';
|
1
|
+
import { ConfiguredDocumentClassForName, ConfiguredObjectClassForName } from '../../../../../../../types/helperTypes';
|
2
2
|
|
3
3
|
declare global {
|
4
4
|
/**
|
@@ -43,7 +43,7 @@ declare global {
|
|
43
43
|
|
44
44
|
getZIndex(): number;
|
45
45
|
|
46
|
-
getDocuments(): Exclude<this['documentCollection'], null
|
46
|
+
getDocuments(): Exclude<this['documentCollection'], null> | InstanceType<ConfiguredDocumentClassForName<'Tile'>>[];
|
47
47
|
|
48
48
|
/**
|
49
49
|
* Refresh the display of tiles on the Foreground Layer depending on Token occlusion.
|
package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayers/wallsLayer.d.ts
CHANGED
@@ -189,14 +189,14 @@ declare global {
|
|
189
189
|
*/
|
190
190
|
protected _getWallDataFromActiveTool(tool: string):
|
191
191
|
| {
|
192
|
-
move: foundry.CONST.
|
193
|
-
sense: foundry.CONST.
|
194
|
-
door?: foundry.CONST.
|
192
|
+
move: foundry.CONST.WALL_MOVEMENT_TYPES;
|
193
|
+
sense: foundry.CONST.WALL_SENSE_TYPES;
|
194
|
+
door?: foundry.CONST.WALL_DOOR_TYPES;
|
195
195
|
}
|
196
196
|
| this['_cloneType'];
|
197
197
|
|
198
198
|
/** @override */
|
199
|
-
protected _onDragLeftStart(event: PIXI.InteractionEvent):
|
199
|
+
protected _onDragLeftStart(event: PIXI.InteractionEvent): void;
|
200
200
|
|
201
201
|
/** @override */
|
202
202
|
protected _onDragLeftMove(event: PIXI.InteractionEvent): void;
|
package/src/foundry/foundry.js/pixi/containers/canvasLayers/{effectsLayer.d.ts → weatherLayer.d.ts}
RENAMED
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* A CanvasLayer for displaying visual effects like weather, transitions, flashes, or more
|
3
3
|
*/
|
4
|
-
declare class
|
4
|
+
declare class WeatherLayer extends CanvasLayer<WeatherLayer.LayerOptions> {
|
5
5
|
/**
|
6
6
|
* The weather overlay container
|
7
7
|
* @defaultValue `undefined`
|
@@ -15,7 +15,7 @@ declare class EffectsLayer extends CanvasLayer<EffectsLayer.LayerOptions> {
|
|
15
15
|
weatherEffect: SpecialEffect | undefined;
|
16
16
|
|
17
17
|
/**
|
18
|
-
* Track
|
18
|
+
* Track the set of particle Emitter instances which are active within this Scene.
|
19
19
|
* @defaultValue `[]`
|
20
20
|
*/
|
21
21
|
emitters: PIXI.particles.Emitter[];
|
@@ -29,18 +29,18 @@ declare class EffectsLayer extends CanvasLayer<EffectsLayer.LayerOptions> {
|
|
29
29
|
/**
|
30
30
|
* @remarks This is not overridden in foundry but reflects the real behavior.
|
31
31
|
*/
|
32
|
-
static get instance(): Canvas['
|
32
|
+
static get instance(): Canvas['weather'];
|
33
33
|
|
34
34
|
/**
|
35
35
|
* @defaultValue
|
36
36
|
* ```typescript
|
37
37
|
* foundry.utils.mergeObject(super.layerOptions, {
|
38
|
-
*
|
39
|
-
*
|
38
|
+
* name: "effects",
|
39
|
+
* zIndex: 700
|
40
40
|
* })
|
41
41
|
* ```
|
42
42
|
*/
|
43
|
-
static get layerOptions():
|
43
|
+
static get layerOptions(): WeatherLayer.LayerOptions;
|
44
44
|
|
45
45
|
/** @override */
|
46
46
|
tearDown(): Promise<this>;
|
@@ -55,7 +55,7 @@ declare class EffectsLayer extends CanvasLayer<EffectsLayer.LayerOptions> {
|
|
55
55
|
drawWeather(): Exclude<this['weather'], undefined> | null;
|
56
56
|
}
|
57
57
|
|
58
|
-
declare namespace
|
58
|
+
declare namespace WeatherLayer {
|
59
59
|
interface LayerOptions extends CanvasLayer.LayerOptions {
|
60
60
|
name: 'effects';
|
61
61
|
zIndex: 700;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
/**
|
2
|
+
* A container group which contains visual effects rendered above the primary group.
|
3
|
+
*/
|
4
|
+
declare class EffectsCanvasGroup extends PIXI.Container {
|
5
|
+
constructor();
|
6
|
+
|
7
|
+
walls: WallsLayer;
|
8
|
+
|
9
|
+
lighting: LightingLayer;
|
10
|
+
|
11
|
+
weather: WeatherLayer;
|
12
|
+
|
13
|
+
sight: SightLayer;
|
14
|
+
|
15
|
+
/** @defaultValue `true` */
|
16
|
+
sortableChildren: boolean;
|
17
|
+
|
18
|
+
/**
|
19
|
+
* The name of this canvas group
|
20
|
+
* @defaultValue `"effects"`
|
21
|
+
*/
|
22
|
+
static groupName: string;
|
23
|
+
|
24
|
+
/**
|
25
|
+
* Create the member layers of the scene container
|
26
|
+
* @internal
|
27
|
+
*/
|
28
|
+
protected _createLayers(): void;
|
29
|
+
}
|