@league-of-foundry-developers/foundry-vtt-types 9.238.1 → 9.249.1
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/abstract/document.mjs.d.ts +13 -6
- package/src/foundry/common/config.mjs/releaseData.d.ts +3 -1
- package/src/foundry/common/constants.mjs.d.ts +1 -0
- package/src/foundry/common/data/data.mjs/activeEffectData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/actorData.d.ts +1 -1
- package/src/foundry/common/data/data.mjs/adventureData.d.ts +25 -23
- package/src/foundry/common/data/data.mjs/ambientLightData.d.ts +5 -3
- package/src/foundry/common/data/data.mjs/ambientSoundData.d.ts +62 -16
- package/src/foundry/common/data/data.mjs/animationData.d.ts +13 -5
- package/src/foundry/common/data/data.mjs/cardData.d.ts +4 -4
- package/src/foundry/common/data/data.mjs/cardFaceData.d.ts +5 -3
- package/src/foundry/common/data/data.mjs/cardsData.d.ts +3 -3
- package/src/foundry/common/data/data.mjs/chatMessageData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/chatSpeakerData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/combatData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/combatantData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/darknessActivation.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/drawingData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/effectChangeData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/effectDurationData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/fogExplorationData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/folderData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/journalEntryData.d.ts +6 -4
- package/src/foundry/common/data/data.mjs/lightData.d.ts +7 -5
- package/src/foundry/common/data/data.mjs/macroData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/measuredTemplateData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/noteData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/playlistData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/playlistSoundData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/prototypeTokenData.d.ts +6 -4
- package/src/foundry/common/data/data.mjs/rollTableData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/sceneData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/settingData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/tableResultData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/tileData.d.ts +4 -2
- package/src/foundry/common/data/data.mjs/tileOcclusion.d.ts +4 -2
- package/src/foundry/common/data/data.mjs/tokenBarData.d.ts +4 -2
- package/src/foundry/common/data/data.mjs/tokenData.d.ts +5 -3
- package/src/foundry/common/data/data.mjs/userData.d.ts +13 -4
- package/src/foundry/common/data/data.mjs/videoData.d.ts +4 -2
- package/src/foundry/common/data/data.mjs/wallData.d.ts +4 -2
- package/src/foundry/common/documents.mjs/baseActiveEffect.d.ts +15 -12
- package/src/foundry/common/documents.mjs/baseActor.d.ts +24 -21
- package/src/foundry/common/documents.mjs/baseAdventure.d.ts +14 -12
- package/src/foundry/common/documents.mjs/baseAmbientLight.d.ts +14 -11
- package/src/foundry/common/documents.mjs/baseAmbientSound.d.ts +14 -11
- package/src/foundry/common/documents.mjs/baseCard.d.ts +27 -28
- package/src/foundry/common/documents.mjs/baseCards.d.ts +18 -16
- package/src/foundry/common/documents.mjs/baseChatMessage.d.ts +24 -17
- package/src/foundry/common/documents.mjs/baseCombat.d.ts +21 -20
- package/src/foundry/common/documents.mjs/baseCombatant.d.ts +26 -21
- package/src/foundry/common/documents.mjs/baseDrawing.d.ts +26 -23
- package/src/foundry/common/documents.mjs/baseFogExploration.d.ts +19 -17
- package/src/foundry/common/documents.mjs/baseFolder.d.ts +14 -12
- package/src/foundry/common/documents.mjs/baseItem.d.ts +25 -19
- package/src/foundry/common/documents.mjs/baseJournalEntry.d.ts +16 -14
- package/src/foundry/common/documents.mjs/baseMacro.d.ts +21 -18
- package/src/foundry/common/documents.mjs/baseMeasuredTemplate.d.ts +34 -18
- package/src/foundry/common/documents.mjs/baseNote.d.ts +20 -14
- package/src/foundry/common/documents.mjs/basePlaylist.d.ts +16 -14
- package/src/foundry/common/documents.mjs/basePlaylistSound.d.ts +14 -11
- package/src/foundry/common/documents.mjs/baseRollTable.d.ts +16 -14
- package/src/foundry/common/documents.mjs/baseScene.d.ts +23 -21
- package/src/foundry/common/documents.mjs/baseSetting.d.ts +18 -16
- package/src/foundry/common/documents.mjs/baseTableResult.d.ts +27 -19
- package/src/foundry/common/documents.mjs/baseTile.d.ts +17 -11
- package/src/foundry/common/documents.mjs/baseToken.d.ts +20 -16
- package/src/foundry/common/documents.mjs/baseUser.d.ts +45 -11
- package/src/foundry/common/documents.mjs/baseWall.d.ts +17 -15
- package/src/foundry/common/packages.mjs/packageAuthorData.d.ts +3 -1
- package/src/foundry/common/packages.mjs/packageCompendiumData.d.ts +4 -2
- package/src/foundry/common/packages.mjs/packageData.d.ts +3 -4
- package/src/foundry/common/packages.mjs/packageDependencyData.d.ts +3 -1
- package/src/foundry/common/packages.mjs/packageLanguageData.d.ts +3 -1
- 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 +139 -111
- 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 +6 -6
- 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 +3 -3
- 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 +5 -5
- 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 +4 -4
- 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 +4 -4
- 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 +2 -2
- package/src/foundry/foundry.js/audioContainer.d.ts +28 -10
- package/src/foundry/foundry.js/avSettings.d.ts +11 -0
- 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 +38 -35
- package/src/foundry/foundry.js/clientDocuments/activeEffect.d.ts +1 -1
- package/src/foundry/foundry.js/clientDocuments/actor.d.ts +1 -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 +3 -3
- 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/item.d.ts +2 -2
- package/src/foundry/foundry.js/clientDocuments/playlist.d.ts +1 -1
- package/src/foundry/foundry.js/clientDocuments/rollTable.d.ts +2 -2
- package/src/foundry/foundry.js/clientDocuments/scene.d.ts +39 -38
- package/src/foundry/foundry.js/clientDocuments/user.d.ts +27 -35
- 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 +66 -12
- package/src/foundry/foundry.js/collections/documentCollections/compendiumCollection.d.ts +78 -67
- package/src/foundry/foundry.js/collections/documentCollections/worldCollection.d.ts +73 -32
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/actors.d.ts +3 -37
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/combatEncounters.d.ts +5 -2
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/fogExplorations.d.ts +0 -2
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/folders.d.ts +2 -2
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/items.d.ts +1 -22
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/journal.d.ts +1 -1
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/macros.d.ts +3 -8
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/messages.d.ts +7 -2
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/playlists.d.ts +5 -5
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/rollTables.d.ts +1 -1
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/scenes.d.ts +3 -2
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/users.d.ts +7 -4
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/worldSettings.d.ts +2 -2
- 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/hooks.d.ts +157 -88
- 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/containers/ruler.d.ts +18 -7
- 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/types/helperTypes.d.ts +31 -13
- 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,31 +1,28 @@
|
|
1
1
|
/**
|
2
2
|
* A helper class used by the Sight Layer to represent a source of vision or illumination.
|
3
3
|
*/
|
4
|
-
declare class PointSource {
|
4
|
+
declare abstract class PointSource {
|
5
5
|
/**
|
6
6
|
* @param object - The object responsible for the PointSource
|
7
7
|
*/
|
8
|
-
constructor(object: PlaceableObject
|
8
|
+
constructor(object: PlaceableObject);
|
9
9
|
|
10
10
|
/**
|
11
|
-
* The object responsible for
|
11
|
+
* The object responsible for this source.
|
12
12
|
*/
|
13
13
|
object: PlaceableObject;
|
14
14
|
|
15
15
|
/**
|
16
|
-
* The type of source
|
16
|
+
* The type of source represented by this data structure.
|
17
|
+
* Each subclass must implement this attribute.
|
18
|
+
* @remarks This is undefined in PointSource.
|
17
19
|
*/
|
18
|
-
sourceType:
|
20
|
+
static sourceType: string | undefined;
|
19
21
|
|
20
22
|
/**
|
21
|
-
* The
|
22
|
-
*/
|
23
|
-
illumination: PIXI.Container;
|
24
|
-
|
25
|
-
/**
|
26
|
-
* This visible color container for this source
|
23
|
+
* The default Geometry stored in the GPU for all Point Source meshes.
|
27
24
|
*/
|
28
|
-
|
25
|
+
static GEOMETRY: PIXI.Geometry;
|
29
26
|
|
30
27
|
/**
|
31
28
|
* A flag for whether this source is currently active (rendered) or not
|
@@ -34,22 +31,10 @@ declare class PointSource {
|
|
34
31
|
active: boolean;
|
35
32
|
|
36
33
|
/**
|
37
|
-
* The
|
38
|
-
* @defaultValue `{
|
34
|
+
* The object of data which configures how this source is rendered
|
35
|
+
* @defaultValue `{}`
|
39
36
|
*/
|
40
|
-
|
41
|
-
|
42
|
-
/**
|
43
|
-
* Internal flag for whether this is a darkness source
|
44
|
-
* @defaultValue `false`
|
45
|
-
*/
|
46
|
-
isDarkness: boolean;
|
47
|
-
|
48
|
-
/**
|
49
|
-
* Is the light source limited by an angle of emission?
|
50
|
-
* @defaultValue `false`
|
51
|
-
*/
|
52
|
-
limited: boolean;
|
37
|
+
data: Partial<PointSource.Data>;
|
53
38
|
|
54
39
|
/**
|
55
40
|
* The maximum radius of emission for this source
|
@@ -58,357 +43,103 @@ declare class PointSource {
|
|
58
43
|
radius: number;
|
59
44
|
|
60
45
|
/**
|
61
|
-
*
|
62
|
-
* @defaultValue `0`
|
63
|
-
* @internal
|
64
|
-
*/
|
65
|
-
protected _animateTime: number;
|
66
|
-
|
67
|
-
/**
|
68
|
-
* An integer seed which de-synchronizes otherwise similar animations
|
69
|
-
* @defaultValue `null`
|
70
|
-
* @internal
|
71
|
-
*/
|
72
|
-
protected _animateSeed: number | null;
|
73
|
-
|
74
|
-
/**
|
75
|
-
* A flag for the lighting channels version that this source is using.
|
76
|
-
* @defaultValue `0`
|
77
|
-
* @internal
|
78
|
-
*/
|
79
|
-
protected _lightingVersion: number;
|
80
|
-
|
81
|
-
/**
|
82
|
-
* A flag for whether to re-initialize illumination shader uniforms the next time the light is rendered.
|
83
|
-
* @defaultValue `true`
|
84
|
-
* @internal
|
85
|
-
*/
|
86
|
-
protected _resetIlluminationUniforms: boolean;
|
87
|
-
|
88
|
-
/**
|
89
|
-
* A flag for whether to re-initialize coloration shader uniforms the next time the light is rendered.
|
90
|
-
* @defaultValue `true`
|
91
|
-
*@internal
|
92
|
-
*/
|
93
|
-
protected _resetColorationUniforms: boolean;
|
94
|
-
|
95
|
-
/**
|
96
|
-
* An internal flag for whether to render coloration for this source
|
97
|
-
* @defaultValue `false`
|
98
|
-
* @internal
|
99
|
-
*/
|
100
|
-
protected _hasColor: boolean;
|
101
|
-
|
102
|
-
/**
|
103
|
-
* The default Geometry stored in the GPU for all Point Source meshes.
|
104
|
-
*/
|
105
|
-
static GEOMETRY: PIXI.Geometry;
|
106
|
-
|
107
|
-
/**
|
108
|
-
* Create the structure of a source Container which can be rendered to the sight layer shadow-map
|
109
|
-
* @returns The constructed light source container
|
110
|
-
* @internal
|
111
|
-
*/
|
112
|
-
protected _createContainer(shaderCls: ConstructorOf<AbstractBaseShader>): PIXI.Container;
|
113
|
-
|
114
|
-
/**
|
115
|
-
* Initialize the source with provided object data.
|
116
|
-
*
|
117
|
-
* @param data - Input data which configures the source.
|
118
|
-
*
|
119
|
-
* @returns A reference to the initialized source
|
120
|
-
*/
|
121
|
-
initialize(data?: PointSource.Data): PointSource.Initialized<this>;
|
122
|
-
|
123
|
-
/**
|
124
|
-
* The x-coordinate of the source location
|
125
|
-
* @defaultValue `undefined`
|
126
|
-
*/
|
127
|
-
x?: number;
|
128
|
-
|
129
|
-
/**
|
130
|
-
* The y-coordinate of the source location
|
46
|
+
* The restricted line-of-sight polygon that is generated by the origin and radius of this source.
|
131
47
|
* @defaultValue `undefined`
|
132
48
|
*/
|
133
|
-
|
49
|
+
los: PointSourcePolygon | undefined;
|
134
50
|
|
135
51
|
/**
|
136
|
-
*
|
137
|
-
* @defaultValue `
|
52
|
+
* A Graphics object with pre-computed geometry used for masking based on line-of-sight.
|
53
|
+
* @defaultValue `new PIXI.LegacyGraphics()`
|
138
54
|
*/
|
139
|
-
|
55
|
+
losMask: PIXI.Graphics;
|
140
56
|
|
141
57
|
/**
|
142
|
-
*
|
143
|
-
* @defaultValue `
|
144
|
-
*/
|
145
|
-
dim?: number;
|
146
|
-
|
147
|
-
/**
|
148
|
-
* The allowed radius of bright vision or illumination
|
149
|
-
* @defaultValue `undefined`
|
150
|
-
*/
|
151
|
-
bright?: number;
|
152
|
-
|
153
|
-
/**
|
154
|
-
* The angle of emission for this point source
|
155
|
-
* @defaultValue `undefined`
|
156
|
-
*/
|
157
|
-
angle?: number;
|
158
|
-
|
159
|
-
/**
|
160
|
-
* The angle of rotation for this point source
|
161
|
-
* @defaultValue `undefined`
|
162
|
-
*/
|
163
|
-
rotation?: number;
|
164
|
-
|
165
|
-
/**
|
166
|
-
* A tint color for the emitted light, if any
|
167
|
-
* @defaultValue `undefined`
|
168
|
-
*/
|
169
|
-
color?: number | null;
|
170
|
-
|
171
|
-
/**
|
172
|
-
* An opacity for the emitted light, if any
|
173
|
-
* @defaultValue `undefined`
|
174
|
-
*/
|
175
|
-
alpha?: number;
|
176
|
-
|
177
|
-
/**
|
178
|
-
* The source type from CONST.SOURCE_TYPES
|
179
|
-
* @defaultValue `undefined`
|
180
|
-
*/
|
181
|
-
type?: foundry.CONST.SOURCE_TYPES;
|
182
|
-
|
183
|
-
/**
|
184
|
-
* An animation configuration for the source
|
185
|
-
* @defaultValue `undefined`
|
186
|
-
*/
|
187
|
-
animation?: PointSource.Animation;
|
188
|
-
|
189
|
-
/**
|
190
|
-
* An integer seed to synchronize (or de-synchronize) animations
|
191
|
-
* @defaultValue `undefined`
|
192
|
-
*/
|
193
|
-
seed?: number;
|
194
|
-
|
195
|
-
/**
|
196
|
-
* @defaultValue `undefined`
|
58
|
+
* Is the angle of emission for this source limited?
|
59
|
+
* @defaultValue `false`
|
197
60
|
*/
|
198
|
-
|
61
|
+
limited: boolean;
|
199
62
|
|
200
63
|
/**
|
201
|
-
*
|
64
|
+
* Boolean flags which control whether certain behaviors of the source must be enforced
|
65
|
+
* @defaultValue `{}`
|
202
66
|
*/
|
203
|
-
|
67
|
+
protected _flags: {
|
68
|
+
renderFOV?: boolean;
|
69
|
+
} & Record<string, boolean>;
|
204
70
|
|
205
71
|
/**
|
206
|
-
*
|
72
|
+
* The x-coordinate of the point source origin.
|
207
73
|
*/
|
208
|
-
|
74
|
+
get x(): number | undefined;
|
209
75
|
|
210
76
|
/**
|
211
|
-
*
|
77
|
+
* The y-coordinate of the point source origin.
|
212
78
|
*/
|
213
|
-
|
79
|
+
get y(): number | undefined;
|
214
80
|
|
215
81
|
/**
|
216
|
-
*
|
217
|
-
* Reset the current shader values back to defaults.
|
218
|
-
* Swap to a different Shader instance if necessary.
|
219
|
-
* @internal
|
82
|
+
* The type of source represented by this data structure.
|
220
83
|
*/
|
221
|
-
|
84
|
+
get sourceType(): typeof PointSource['sourceType'];
|
222
85
|
|
223
86
|
/**
|
224
|
-
*
|
225
|
-
* @
|
87
|
+
* A point is contained with the area of the source if it is within both the FOV circle as well as the LOS polygon.
|
88
|
+
* @param point - The point to test
|
89
|
+
* @returns Is the point contained
|
226
90
|
*/
|
227
|
-
|
91
|
+
containsPoint(point: Point): boolean;
|
228
92
|
|
229
93
|
/**
|
230
|
-
*
|
231
|
-
* @returns The rendered light container
|
94
|
+
* Steps that must be performed when the base source is destroyed.
|
232
95
|
*/
|
233
|
-
|
96
|
+
destroy(): void;
|
234
97
|
|
235
|
-
|
236
|
-
* Draw and return a container used to depict the visible color tint of the light source on the LightingLayer
|
237
|
-
* @returns An updated color container for the source
|
238
|
-
*/
|
239
|
-
drawColor(): PIXI.Container;
|
98
|
+
fovTexture?: PIXI.RenderTexture | undefined;
|
240
99
|
|
241
|
-
|
242
|
-
* A common helper function for updating the display of a source container.
|
243
|
-
* Assign the container position, dimensions, and polygons.
|
244
|
-
* @internal
|
245
|
-
*/
|
246
|
-
protected _drawContainer(c: PIXI.Container): PIXI.Container;
|
100
|
+
abstract initialize(data?: Partial<PointSource.Data>): this;
|
247
101
|
|
248
102
|
/**
|
249
|
-
*
|
250
|
-
* @
|
103
|
+
* Get power of 2 size pertaining to base-source radius and performance modes
|
104
|
+
* @returns The computed power of 2 size
|
251
105
|
*/
|
252
|
-
|
106
|
+
getPowerOf2Size(): number;
|
253
107
|
|
254
108
|
/**
|
255
|
-
*
|
256
|
-
* @param
|
257
|
-
* @
|
258
|
-
* (default: `5`)
|
259
|
-
* @param intensity - The animation intensity, from 1 to 10
|
260
|
-
* (default: `5`)
|
109
|
+
* Create a new Mesh for this source using a provided shader class
|
110
|
+
* @param shaderCls - The subclass of AdaptiveLightingShader being used for this Mesh
|
111
|
+
* @returns The created Mesh
|
261
112
|
*/
|
262
|
-
|
113
|
+
protected _createMesh(shaderCls: ConstructorOf<AdaptiveLightingShader>): PIXI.Mesh;
|
263
114
|
|
264
115
|
/**
|
265
|
-
*
|
266
|
-
* @param
|
267
|
-
* @
|
268
|
-
* (default: `5`)
|
269
|
-
* @param intensity - The animation intensity, from 1 to 10
|
270
|
-
* (default: `5`)
|
116
|
+
* Update the position and size of the mesh each time it is drawn.
|
117
|
+
* @param mesh - The Mesh being updated
|
118
|
+
* @returns The updated Mesh
|
271
119
|
*/
|
272
|
-
|
120
|
+
protected _updateMesh(mesh: PIXI.Mesh): PIXI.Mesh;
|
273
121
|
|
274
122
|
/**
|
275
|
-
*
|
276
|
-
* @param dt - Delta time
|
277
|
-
* @param speed - The animation speed, from 1 to 10
|
278
|
-
* (default: `5`)
|
279
|
-
* @param intensity - The animation intensity, from 1 to 10
|
280
|
-
* (default: `5`)
|
123
|
+
* Render this source to a texture which can be used for masking and blurring.
|
281
124
|
*/
|
282
|
-
|
125
|
+
protected _renderTexture(): PIXI.RenderTexture;
|
283
126
|
|
284
127
|
/**
|
285
|
-
*
|
286
|
-
* @
|
287
|
-
* @param phi - The decay rate of prior values
|
288
|
-
* @param center - The stationary mean of the series
|
289
|
-
* @param sigma - The volatility of the process - standard deviation of the error term
|
290
|
-
* @param max - The maximum allowed outcome, or null
|
291
|
-
* @param min - The minimum allowed outcome, or null
|
292
|
-
* @returns The new value of the process
|
293
|
-
* @internal
|
128
|
+
* Create a container that should be rendered to the fov texture for this source
|
129
|
+
* @returns The drawn container for the render texture
|
294
130
|
*/
|
295
|
-
protected
|
296
|
-
y: number,
|
297
|
-
{
|
298
|
-
phi,
|
299
|
-
center,
|
300
|
-
sigma,
|
301
|
-
max,
|
302
|
-
min
|
303
|
-
}: { phi?: number; center?: number; sigma?: number; max?: number | null; min?: number | null }
|
304
|
-
): number;
|
131
|
+
protected _drawRenderTextureContainer(): PIXI.Container;
|
305
132
|
}
|
306
133
|
|
307
134
|
declare namespace PointSource {
|
308
|
-
type SourceType = 'light' | 'sight';
|
309
|
-
|
310
135
|
interface Data {
|
311
|
-
/**
|
312
|
-
* The x-coordinate of the source location
|
313
|
-
* @defaultValue `0`
|
314
|
-
*/
|
136
|
+
/** The x-coordinate of the source location */
|
315
137
|
x?: number;
|
316
138
|
|
317
|
-
/** The y-coordinate of the source location
|
318
|
-
* @defaultValue `0`
|
319
|
-
*/
|
139
|
+
/** The y-coordinate of the source location */
|
320
140
|
y?: number;
|
321
141
|
|
322
|
-
/**
|
323
|
-
|
324
|
-
*/
|
325
|
-
z?: number | null;
|
326
|
-
|
327
|
-
/** The allowed radius of dim vision or illumination
|
328
|
-
* @defaultValue `0`
|
329
|
-
*/
|
330
|
-
dim?: number;
|
331
|
-
|
332
|
-
/** The allowed radius of bright vision or illumination
|
333
|
-
* @defaultValue `0`
|
334
|
-
*/
|
335
|
-
bright?: number;
|
336
|
-
|
337
|
-
/** The angle of emission for this point source
|
338
|
-
* @defaultValue `360`
|
339
|
-
*/
|
340
|
-
angle?: number;
|
341
|
-
|
342
|
-
/**
|
343
|
-
* The angle of rotation for this point source
|
344
|
-
* @defaultValue `0`
|
345
|
-
*/
|
346
|
-
rotation?: number;
|
347
|
-
|
348
|
-
/**
|
349
|
-
* A tint color for the emitted light, if any
|
350
|
-
* @defaultValue `null`
|
351
|
-
*/
|
352
|
-
color?: number | string | null;
|
353
|
-
|
354
|
-
/** An opacity for the emitted light, if any
|
355
|
-
* @defaultValue `0.5`
|
356
|
-
*/
|
357
|
-
alpha: number;
|
358
|
-
|
359
|
-
/**
|
360
|
-
* A darkness range (min and max) for which the source should be active
|
361
|
-
* @defaultValue `{ min: 0, max: 1 }`
|
362
|
-
*/
|
363
|
-
darkness?: { min: number; max: number };
|
364
|
-
|
365
|
-
/**
|
366
|
-
* The source type from CONST.SOURCE_TYPES
|
367
|
-
* @defaultValue `CONST.SOURCE_TYPES.LOCAL`
|
368
|
-
*/
|
369
|
-
type?: foundry.CONST.SOURCE_TYPES;
|
370
|
-
|
371
|
-
/**
|
372
|
-
* An animation configuration for the source
|
373
|
-
* @defaultValue `{ type: null }`
|
374
|
-
*/
|
375
|
-
animation?: PointSource.Animation;
|
376
|
-
|
377
|
-
/**
|
378
|
-
* An integer seed to synchronize (or de-synchronize) animations
|
379
|
-
*/
|
380
|
-
seed?: number;
|
142
|
+
/** Whether or not the source is constrained by walls */
|
143
|
+
walls?: boolean;
|
381
144
|
}
|
382
|
-
|
383
|
-
type Initialized<P extends PointSource> = P &
|
384
|
-
Required<
|
385
|
-
Pick<
|
386
|
-
P,
|
387
|
-
| 'animation'
|
388
|
-
| 'angle'
|
389
|
-
| 'alpha'
|
390
|
-
| 'bright'
|
391
|
-
| 'color'
|
392
|
-
| 'dim'
|
393
|
-
| 'rotation'
|
394
|
-
| 'type'
|
395
|
-
| 'x'
|
396
|
-
| 'y'
|
397
|
-
| 'z'
|
398
|
-
| 'colorRGB'
|
399
|
-
| 'ratio'
|
400
|
-
| 'fov'
|
401
|
-
| 'los'
|
402
|
-
>
|
403
|
-
>;
|
404
|
-
|
405
|
-
interface AnimationProperties {
|
406
|
-
speed?: number;
|
407
|
-
intensity?: number;
|
408
|
-
}
|
409
|
-
interface Animation extends AnimationProperties {
|
410
|
-
type: null | keyof typeof CONFIG.Canvas.lightAnimations;
|
411
|
-
}
|
412
|
-
|
413
|
-
type AnimationFunction = (this: PointSource, dt: number, { speed, intensity }?: AnimationProperties) => void;
|
414
145
|
}
|