@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,4 +1,4 @@
|
|
1
|
-
import { ConfiguredDocumentClassForName
|
1
|
+
import { ConfiguredDocumentClassForName } from '../../../../types/helperTypes';
|
2
2
|
import { DocumentModificationOptions } from '../../../common/abstract/document.mjs';
|
3
3
|
|
4
4
|
declare global {
|
@@ -16,12 +16,18 @@ declare global {
|
|
16
16
|
constructor(metadata: T);
|
17
17
|
|
18
18
|
/** The compendium metadata which defines the compendium content and location */
|
19
|
-
metadata: T
|
19
|
+
metadata: T & {
|
20
|
+
/** @deprecated "The 'entity' field of compendium metadata is deprecated. Please use CompendiumCollection#documentName instead." */
|
21
|
+
get entity(): T['type'];
|
22
|
+
};
|
20
23
|
|
21
24
|
/** A subsidiary collection which contains the more minimal index of the pack */
|
22
25
|
index: IndexTypeForMetadata<T>;
|
23
26
|
|
24
|
-
/**
|
27
|
+
/**
|
28
|
+
* A debounced function which will clear the contents of the Compendium pack if it is not accessed frequently.
|
29
|
+
* @internal
|
30
|
+
*/
|
25
31
|
_flush: () => void;
|
26
32
|
|
27
33
|
/**
|
@@ -44,14 +50,21 @@ declare global {
|
|
44
50
|
|
45
51
|
/**
|
46
52
|
* The default index fields which should be retrieved for each Compendium document type
|
53
|
+
* @remarks TODO: We should also allow nested paths
|
47
54
|
*/
|
48
55
|
static INDEX_FIELDS: {
|
49
56
|
/** @defaultValue `["name", "img", "type"]` */
|
50
57
|
Actor: (keyof foundry.data.ActorData['_source'])[];
|
51
58
|
|
59
|
+
/** @defaultValue `["name", "img"]` */
|
60
|
+
Adventure: (keyof foundry.data.AdventureData['_source'])[];
|
61
|
+
|
52
62
|
/** @defaultValue `["name", "img", "type"]` */
|
53
63
|
Item: (keyof foundry.data.ItemData['_source'])[];
|
54
64
|
|
65
|
+
/** @defaultValue `["name", "img", "type"]` */
|
66
|
+
Cards: (keyof foundry.data.CardsData['_source'])[];
|
67
|
+
|
55
68
|
/** @defaultValue `["name", "thumb"]` */
|
56
69
|
Scene: (keyof foundry.data.SceneData['_source'])[];
|
57
70
|
|
@@ -74,7 +87,7 @@ declare global {
|
|
74
87
|
/** Access the compendium configuration data for this pack */
|
75
88
|
get config(): CompendiumCollection.Configuration | {};
|
76
89
|
|
77
|
-
get documentName(): this['metadata']['
|
90
|
+
get documentName(): this['metadata']['type'];
|
78
91
|
|
79
92
|
/** Track whether the Compendium Collection is locked for editing */
|
80
93
|
get locked(): boolean;
|
@@ -88,7 +101,7 @@ declare global {
|
|
88
101
|
get(key: string, { strict }: { strict: true }): StoredDocument<DocumentInstanceForCompendiumMetadata<T>>;
|
89
102
|
get(
|
90
103
|
key: string,
|
91
|
-
{ strict }?: { strict?: false }
|
104
|
+
{ strict }?: { strict?: false | undefined } | undefined
|
92
105
|
): StoredDocument<DocumentInstanceForCompendiumMetadata<T>> | undefined;
|
93
106
|
|
94
107
|
set(id: string, document: StoredDocument<DocumentInstanceForCompendiumMetadata<T>>): this;
|
@@ -99,7 +112,7 @@ declare global {
|
|
99
112
|
* Load the Compendium index and cache it as the keys and values of the Collection.
|
100
113
|
* @param options - Options which customize how the index is created
|
101
114
|
*/
|
102
|
-
getIndex(options?: CompendiumCollection.GetIndexOptions<T>): Promise<this['index']>;
|
115
|
+
getIndex(options?: CompendiumCollection.GetIndexOptions<T> | undefined): Promise<this['index']>;
|
103
116
|
|
104
117
|
/**
|
105
118
|
* Get a single Document from this Compendium by ID.
|
@@ -115,26 +128,47 @@ declare global {
|
|
115
128
|
* default: `{}`
|
116
129
|
* @returns The retrieved Document instances
|
117
130
|
*/
|
118
|
-
getDocuments(
|
131
|
+
getDocuments(
|
132
|
+
query?: Record<string, unknown> | undefined
|
133
|
+
): Promise<StoredDocument<DocumentInstanceForCompendiumMetadata<T>>[]>;
|
119
134
|
|
120
135
|
/**
|
121
136
|
* Import a Document into this Compendium Collection.
|
122
137
|
* @param document - The existing Document you wish to import
|
138
|
+
* @param options - Additional options which modify how the data is imported. See {@link ClientDocumentMixin#toCompendium}
|
139
|
+
* (default: `{}`)
|
123
140
|
* @returns The imported Document instance
|
124
141
|
*/
|
125
142
|
importDocument(
|
126
|
-
document: DocumentInstanceForCompendiumMetadata<T
|
143
|
+
document: DocumentInstanceForCompendiumMetadata<T>,
|
144
|
+
options?: ClientDocumentMixin.CompendiumExportOptions | undefined
|
127
145
|
): Promise<StoredDocument<DocumentInstanceForCompendiumMetadata<T>> | undefined>;
|
128
146
|
|
129
147
|
/**
|
130
148
|
* Fully import the contents of a Compendium pack into a World folder.
|
149
|
+
* @param folderId - An existing Folder _id to use.
|
150
|
+
* (default: `null`)
|
151
|
+
* @param folderName - A new Folder name to create.
|
152
|
+
* (default: `''`)
|
153
|
+
* @param options - Additional options forwarded to {@link WorldCollection#fromCompendium} and {@link Document.createDocuments}
|
154
|
+
* (default: `{}`)
|
131
155
|
* @returns The imported Documents, now existing within the World
|
132
156
|
*/
|
133
157
|
importAll({
|
134
158
|
folderId,
|
135
159
|
folderName,
|
136
160
|
options
|
137
|
-
}
|
161
|
+
}?: ImportAllOptions | undefined): Promise<StoredDocument<DocumentInstanceForCompendiumMetadata<T>>[]>;
|
162
|
+
|
163
|
+
/**
|
164
|
+
* Provide a dialog form that prompts the user to import the full contents of a Compendium pack into the World.
|
165
|
+
* @param options - Additional options passed to the Dialog.confirm method
|
166
|
+
* (default: `{}`)
|
167
|
+
* @returns A Promise which resolves or rejects once the dialog has been submitted or closed
|
168
|
+
*/
|
169
|
+
importDialog(
|
170
|
+
options?: Dialog.Options | undefined
|
171
|
+
): Promise<StoredDocument<DocumentInstanceForCompendiumMetadata<T>>[] | null | false>;
|
138
172
|
|
139
173
|
/**
|
140
174
|
* Add a Document to the index, capturing it's relevant index attributes
|
@@ -150,7 +184,7 @@ declare global {
|
|
150
184
|
*/
|
151
185
|
static createCompendium<T extends CompendiumCollection.Metadata>(
|
152
186
|
metadata: T,
|
153
|
-
options?: Partial<DocumentModificationOptions>
|
187
|
+
options?: Partial<DocumentModificationOptions> | undefined
|
154
188
|
): Promise<CompendiumCollection<T>>;
|
155
189
|
|
156
190
|
/**
|
@@ -159,7 +193,9 @@ declare global {
|
|
159
193
|
* default: `{}`
|
160
194
|
* @returns A Promise which resolves once the setting is updated
|
161
195
|
*/
|
162
|
-
configure(
|
196
|
+
configure(
|
197
|
+
settings?: Partial<CompendiumCollection.Configuration> | undefined
|
198
|
+
): Promise<CompendiumCollection.Configuration>;
|
163
199
|
|
164
200
|
/**
|
165
201
|
* Delete an existing world-level Compendium Collection.
|
@@ -171,35 +207,49 @@ declare global {
|
|
171
207
|
* Duplicate a compendium pack to the current World.
|
172
208
|
* @param label - A new Compendium label
|
173
209
|
*/
|
174
|
-
duplicateCompendium({ label }?: { label?: string }): Promise<this>;
|
210
|
+
duplicateCompendium({ label }?: { label?: string | undefined }): Promise<this>;
|
175
211
|
|
176
212
|
/**
|
177
213
|
* Validate that the current user is able to modify content of this Compendium pack
|
178
214
|
* @param requireUnlocked - `(default: true)`
|
215
|
+
* @internal
|
179
216
|
*/
|
180
|
-
protected _assertUserCanModify({ requireUnlocked }?: { requireUnlocked?: boolean }): true;
|
217
|
+
protected _assertUserCanModify({ requireUnlocked }?: { requireUnlocked?: boolean | undefined } | undefined): true;
|
181
218
|
|
182
219
|
/**
|
183
220
|
* Request that a Compendium pack be migrated to the latest System data template
|
184
|
-
*
|
221
|
+
* @remarks
|
222
|
+
* Currently, there are no options that are being considered by foundry when migrating a
|
223
|
+
* a compendium pack.
|
185
224
|
*/
|
186
|
-
migrate(options?:
|
187
|
-
|
188
|
-
|
225
|
+
migrate(options?: Record<string, unknown> | undefined): Promise<this>;
|
226
|
+
|
227
|
+
/** @override */
|
228
|
+
updateAll(
|
229
|
+
transformation:
|
230
|
+
| DeepPartial<DocumentInstanceForCompendiumMetadata<T>['data']['_source']>
|
231
|
+
| ((
|
232
|
+
doc: StoredDocument<DocumentInstanceForCompendiumMetadata<T>>
|
233
|
+
) => DeepPartial<DocumentInstanceForCompendiumMetadata<T>['data']['_source']>),
|
234
|
+
condition?: ((obj: StoredDocument<DocumentInstanceForCompendiumMetadata<T>>) => boolean) | null,
|
235
|
+
options?: DocumentModificationContext
|
236
|
+
): ReturnType<this['documentClass']['updateDocuments']>;
|
237
|
+
|
238
|
+
protected _onCreateDocuments(
|
189
239
|
documents: StoredDocument<DocumentInstanceForCompendiumMetadata<T>>[],
|
190
|
-
result:
|
240
|
+
result: (DocumentInstanceForCompendiumMetadata<T>['data']['_source'] & { _id: string })[],
|
191
241
|
options: DocumentModificationOptions,
|
192
242
|
userId: string
|
193
243
|
): void;
|
194
244
|
|
195
|
-
_onUpdateDocuments(
|
245
|
+
protected _onUpdateDocuments(
|
196
246
|
documents: StoredDocument<DocumentInstanceForCompendiumMetadata<T>>[],
|
197
|
-
result: DeepPartial<
|
247
|
+
result: (DeepPartial<DocumentInstanceForCompendiumMetadata<T>['data']['_source']> & { _id: string })[],
|
198
248
|
options: DocumentModificationOptions,
|
199
249
|
userId: string
|
200
250
|
): void;
|
201
251
|
|
202
|
-
_onDeleteDocuments(
|
252
|
+
protected _onDeleteDocuments(
|
203
253
|
documents: StoredDocument<DocumentInstanceForCompendiumMetadata<T>>[],
|
204
254
|
result: string[],
|
205
255
|
options: DocumentModificationOptions,
|
@@ -208,52 +258,13 @@ declare global {
|
|
208
258
|
|
209
259
|
/**
|
210
260
|
* Follow-up actions taken when Documents within this Compendium pack are modified
|
261
|
+
* @internal
|
211
262
|
*/
|
212
263
|
protected _onModifyContents(
|
213
264
|
documents: StoredDocument<DocumentInstanceForCompendiumMetadata<T>>[],
|
214
265
|
options: DocumentModificationOptions,
|
215
266
|
userId: string
|
216
267
|
): void;
|
217
|
-
|
218
|
-
/** @deprecated since 0.8.0 */
|
219
|
-
get entity(): this['documentClass']['documentName'];
|
220
|
-
|
221
|
-
/** @deprecated since 0.8.0 */
|
222
|
-
getContent(): ReturnType<this['getDocuments']>;
|
223
|
-
|
224
|
-
/** @deprecated since 0.8.0 */
|
225
|
-
getEntry(id: string): Promise<StoredDocument<DocumentInstanceForCompendiumMetadata<T>>['data']>;
|
226
|
-
|
227
|
-
/** @deprecated since 0.8.0 */
|
228
|
-
getEntity(id: string): ReturnType<this['getDocument']>;
|
229
|
-
|
230
|
-
/** @deprecated since 0.8.0 */
|
231
|
-
importEntity(document: DocumentInstanceForCompendiumMetadata<T>): ReturnType<this['importDocument']>;
|
232
|
-
|
233
|
-
/** @deprecated since 0.8.0 */
|
234
|
-
createEntity(
|
235
|
-
data:
|
236
|
-
| ConstructorDataType<DocumentInstanceForCompendiumMetadata<T>['data']>
|
237
|
-
| (ConstructorDataType<DocumentInstanceForCompendiumMetadata<T>['data']> & Record<string, unknown>),
|
238
|
-
options?: Partial<DocumentModificationOptions>
|
239
|
-
): ReturnType<this['documentClass']['create']>;
|
240
|
-
|
241
|
-
/** @deprecated since 0.8.0 */
|
242
|
-
updateEntity(
|
243
|
-
data: DeepPartial<
|
244
|
-
| ConstructorDataType<DocumentInstanceForCompendiumMetadata<T>['data']>
|
245
|
-
| (ConstructorDataType<DocumentInstanceForCompendiumMetadata<T>['data']> & Record<string, unknown>)
|
246
|
-
> & {
|
247
|
-
_id: string;
|
248
|
-
},
|
249
|
-
options?: Partial<DocumentModificationOptions>
|
250
|
-
): ReturnType<DocumentInstanceForCompendiumMetadata<T>['update']>;
|
251
|
-
|
252
|
-
/** @deprecated since 0.8.0 */
|
253
|
-
deleteEntity(
|
254
|
-
id: string,
|
255
|
-
options?: Partial<DocumentModificationOptions>
|
256
|
-
): ReturnType<DocumentInstanceForCompendiumMetadata<T>['delete']>;
|
257
268
|
}
|
258
269
|
|
259
270
|
namespace CompendiumCollection {
|
@@ -262,7 +273,7 @@ declare global {
|
|
262
273
|
locked: boolean;
|
263
274
|
}
|
264
275
|
interface Metadata {
|
265
|
-
|
276
|
+
type: foundry.CONST.COMPENDIUM_DOCUMENT_TYPES;
|
266
277
|
name: string;
|
267
278
|
label: string;
|
268
279
|
path: string;
|
@@ -283,21 +294,21 @@ interface ImportAllOptions {
|
|
283
294
|
* An existing Folder _id to use.
|
284
295
|
* @defaultValue `null`
|
285
296
|
* */
|
286
|
-
folderId?: string | null;
|
297
|
+
folderId?: string | null | undefined;
|
287
298
|
/**
|
288
299
|
* A new Folder name to create.
|
289
300
|
* @defaultValue `""`
|
290
301
|
* */
|
291
|
-
folderName?: string;
|
302
|
+
folderName?: string | undefined;
|
292
303
|
/**
|
293
|
-
* Additional options forwarded to Document.createDocuments
|
304
|
+
* Additional options forwarded to {@link WorldCollection#fromCompendium} and {@link Document.createDocuments}
|
294
305
|
* @defaultValue `{}`
|
295
306
|
*/
|
296
|
-
options?: DocumentModificationContext;
|
307
|
+
options?: (DocumentModificationContext & WorldCollection.FromCompendiumOptions) | undefined;
|
297
308
|
}
|
298
309
|
|
299
310
|
type DocumentClassForCompendiumMetadata<T extends CompendiumCollection.Metadata> = ConfiguredDocumentClassForName<
|
300
|
-
T['
|
311
|
+
T['type']
|
301
312
|
>;
|
302
313
|
|
303
314
|
type DocumentInstanceForCompendiumMetadata<T extends CompendiumCollection.Metadata> = InstanceType<
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { ConfiguredDocumentClass, DocumentConstructor } from '../../../../types/helperTypes';
|
2
|
+
import type { DOCUMENT_TYPES } from '../../../common/constants.mjs';
|
2
3
|
|
3
4
|
declare global {
|
4
5
|
/**
|
@@ -21,6 +22,7 @@ declare global {
|
|
21
22
|
|
22
23
|
/**
|
23
24
|
* Initialize the WorldCollection object by constructing its contained Document instances
|
25
|
+
* @internal
|
24
26
|
*/
|
25
27
|
protected _initialize(): void;
|
26
28
|
|
@@ -39,14 +41,19 @@ declare global {
|
|
39
41
|
static documentName: string | null;
|
40
42
|
|
41
43
|
/**
|
42
|
-
* Return a reference to the SidebarDirectory application for this WorldCollection
|
44
|
+
* Return a reference to the SidebarDirectory application for this WorldCollection.
|
43
45
|
* @remarks
|
44
|
-
* In the case where `Lowercase<Name>` is not a property of {@link ui}, this actually always returns `
|
45
|
-
* {@link RollTables} overrides this so we need to allow a wider return type.
|
46
|
+
* In the case where `Lowercase<Name>` is not a property of {@link ui}, this actually always returns `undefined`,
|
47
|
+
* but {@link RollTables} overrides this, so we need to allow a wider return type.
|
46
48
|
*/
|
47
49
|
get directory(): Lowercase<Name> extends keyof typeof ui
|
48
50
|
? typeof ui[Lowercase<Name>]
|
49
|
-
:
|
51
|
+
:
|
52
|
+
| (ConfiguredDocumentClass<T>['metadata']['name'] extends DOCUMENT_TYPES
|
53
|
+
? SidebarDirectory<ConfiguredDocumentClass<T>['metadata']['name']>
|
54
|
+
: never)
|
55
|
+
| SidebarTab
|
56
|
+
| undefined;
|
50
57
|
|
51
58
|
/**
|
52
59
|
* Return a reference to the singleton instance of this WorldCollection, or null if it has not yet been created.
|
@@ -63,23 +70,30 @@ declare global {
|
|
63
70
|
* @param pack - The CompendiumCollection instance from which to import
|
64
71
|
* @param id - The ID of the compendium entry to import
|
65
72
|
* @param updateData - Optional additional data used to modify the imported Document before it is created
|
66
|
-
*
|
73
|
+
* (default: `{}`)
|
74
|
+
* @param options - Optional arguments passed to the {@link WorldCollection#fromCompendium} and {@link Document.create} methods
|
75
|
+
* (default: `{}`)
|
67
76
|
* @returns The imported Document instance
|
68
77
|
*/
|
69
78
|
importFromCompendium(
|
70
|
-
pack:
|
79
|
+
pack: CompendiumCollection<
|
80
|
+
CompendiumCollection.Metadata & { type: ConfiguredDocumentClass<T>['metadata']['name'] }
|
81
|
+
>,
|
71
82
|
id: string,
|
72
|
-
updateData?: DeepPartial<InstanceType<ConfiguredDocumentClass<T>>['data']['_source']
|
73
|
-
options?: DocumentModificationContext
|
83
|
+
updateData?: DeepPartial<InstanceType<ConfiguredDocumentClass<T>>['data']['_source']> | undefined,
|
84
|
+
options?: (DocumentModificationContext & WorldCollection.FromCompendiumOptions) | undefined
|
74
85
|
): Promise<StoredDocument<InstanceType<ConfiguredDocumentClass<T>>>>;
|
75
86
|
|
76
87
|
/**
|
77
88
|
* Apply data transformations when importing a Document from a Compendium pack
|
78
89
|
* @param document - The source Document, or a plain data object
|
90
|
+
* @param options - Additional options which modify how the document is imported
|
91
|
+
* (default: `{}`)
|
79
92
|
* @returns The processed data ready for world Document creation
|
80
93
|
*/
|
81
94
|
fromCompendium(
|
82
|
-
document: InstanceType<ConfiguredDocumentClass<T>> | InstanceType<ConfiguredDocumentClass<T>>['data']['_source']
|
95
|
+
document: InstanceType<ConfiguredDocumentClass<T>> | InstanceType<ConfiguredDocumentClass<T>>['data']['_source'],
|
96
|
+
options?: WorldCollection.FromCompendiumOptions | undefined
|
83
97
|
): Omit<InstanceType<ConfiguredDocumentClass<T>>['data']['_source'], '_id' | 'folder'>;
|
84
98
|
|
85
99
|
/**
|
@@ -92,36 +106,63 @@ declare global {
|
|
92
106
|
): Omit<InstanceType<ConfiguredDocumentClass<T>>['data']['_source'], '_id' | 'folder'>;
|
93
107
|
|
94
108
|
/**
|
95
|
-
*
|
96
|
-
* @
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
*
|
102
|
-
*
|
109
|
+
* Register a Document sheet class as a candidate which can be used to display Documents of a given type.
|
110
|
+
* See {@link DocumentSheetConfig.registerSheet} for details.
|
111
|
+
* @see DocumentSheetConfig.registerSheet
|
112
|
+
*
|
113
|
+
* @example <caption>Register a new ActorSheet subclass for use with certain Actor types.</caption>
|
114
|
+
* ```typescript
|
115
|
+
* Actors.registerSheet("dnd5e", ActorSheet5eCharacter, { types: ["character], makeDefault: true });
|
116
|
+
* ```
|
103
117
|
*/
|
104
|
-
|
118
|
+
static registerSheet(...args: DropFirst<Parameters<typeof EntitySheetConfig.registerSheet>>): void;
|
105
119
|
|
106
120
|
/**
|
107
|
-
*
|
108
|
-
* @
|
121
|
+
* Unregister a Document sheet class, removing it from the list of available sheet Applications to use.
|
122
|
+
* See {@link DocumentSheetConfig.unregisterSheet} for detauls.
|
123
|
+
* @see DocumentSheetConfig.unregisterSheet
|
124
|
+
*
|
125
|
+
* @example <caption>Deregister the default ActorSheet subclass to replace it with others.</caption>
|
126
|
+
* Actors.unregisterSheet("core", ActorSheet);
|
109
127
|
*/
|
110
|
-
|
128
|
+
static unregisterSheet(...args: DropFirst<Parameters<typeof EntitySheetConfig.unregisterSheet>>): void;
|
111
129
|
|
112
130
|
/**
|
113
|
-
*
|
114
|
-
* @
|
131
|
+
* Return an array of currently registered sheet classes for this Document type.
|
132
|
+
* @remarks
|
133
|
+
* This is documented to return only {@link DocumentSheet}s but {@link DrawingConfig} is just a
|
134
|
+
* {@link FormApplication}. See https://gitlab.com/foundrynet/foundryvtt/-/issues/6454.
|
115
135
|
*/
|
116
|
-
get
|
136
|
+
static get registeredSheets(): FormApplication[];
|
137
|
+
}
|
117
138
|
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
139
|
+
namespace WorldCollection {
|
140
|
+
interface FromCompendiumOptions {
|
141
|
+
/**
|
142
|
+
* Add flags which track the import source
|
143
|
+
* @defaultValue `false`
|
144
|
+
*/
|
145
|
+
addFlags?: boolean | undefined;
|
146
|
+
|
147
|
+
/**
|
148
|
+
* Clear the currently assigned folder and sort order
|
149
|
+
* @defaultValue `true`
|
150
|
+
*/
|
151
|
+
clearSort?: boolean | undefined;
|
152
|
+
|
153
|
+
/**
|
154
|
+
* Clear document permissions
|
155
|
+
* @defaultValue `true`
|
156
|
+
*/
|
157
|
+
clearPermissions?: boolean | undefined;
|
158
|
+
|
159
|
+
/**
|
160
|
+
* Retain the Document id from the source Compendium
|
161
|
+
* @defaultValue `false`
|
162
|
+
*/
|
163
|
+
keepId?: boolean | undefined;
|
164
|
+
}
|
126
165
|
}
|
127
166
|
}
|
167
|
+
|
168
|
+
type DropFirst<T extends Array<unknown>> = T extends [unknown, ...infer V] ? V : T;
|
@@ -5,7 +5,7 @@ declare global {
|
|
5
5
|
* The singleton collection of Actor documents which exist within the active World.
|
6
6
|
* This Collection is accessible within the Game object as game.actors.
|
7
7
|
*
|
8
|
-
* @see {@link Actor} The Actor
|
8
|
+
* @see {@link Actor} The Actor document
|
9
9
|
* @see {@link ActorDirectory} The ActorDirectory sidebar directory
|
10
10
|
*
|
11
11
|
* @example <caption>Retrieve an existing Actor by its id</caption>
|
@@ -27,45 +27,11 @@ declare global {
|
|
27
27
|
fromCompendium(
|
28
28
|
document:
|
29
29
|
| InstanceType<ConfiguredDocumentClass<typeof foundry.documents.BaseActor>>
|
30
|
-
| InstanceType<ConfiguredDocumentClass<typeof foundry.documents.BaseActor>>['data']['_source']
|
30
|
+
| InstanceType<ConfiguredDocumentClass<typeof foundry.documents.BaseActor>>['data']['_source'],
|
31
|
+
options?: WorldCollection.FromCompendiumOptions | undefined
|
31
32
|
): Omit<
|
32
33
|
InstanceType<ConfiguredDocumentClass<typeof foundry.documents.BaseActor>>['data']['_source'],
|
33
34
|
'_id' | 'folder'
|
34
35
|
>;
|
35
|
-
|
36
|
-
/**
|
37
|
-
* Register an Actor sheet class as a candidate which can be used to display Actors of a given type
|
38
|
-
* See EntitySheetConfig.registerSheet for details
|
39
|
-
*
|
40
|
-
* @example <caption>Register a new ActorSheet subclass for use with certain Actor types.</caption>
|
41
|
-
* ```typescript
|
42
|
-
* Actors.registerSheet("dnd5e", ActorSheet5eCharacter, { types: ["character"], makeDefault: true });
|
43
|
-
* ```
|
44
|
-
*/
|
45
|
-
static registerSheet(
|
46
|
-
scope: string,
|
47
|
-
sheetClass: ConstructorOf<ActorSheet>,
|
48
|
-
{ label, types, makeDefault }?: { label?: string; types?: string[]; makeDefault?: boolean }
|
49
|
-
): void;
|
50
|
-
|
51
|
-
/**
|
52
|
-
* Unregister an Actor sheet class, removing it from the list of avaliable sheet Applications to use
|
53
|
-
* See EntitySheetConfig.unregisterSheet for details
|
54
|
-
*
|
55
|
-
* @example <caption>Deregister the default ActorSheet subclass to replace it with others.</caption>
|
56
|
-
* ```typescript
|
57
|
-
* Actors.unregisterSheet("core", ActorSheet);
|
58
|
-
* ```
|
59
|
-
*/
|
60
|
-
static unregisterSheet(
|
61
|
-
scope: string,
|
62
|
-
sheetClass: ConstructorOf<ActorSheet>,
|
63
|
-
{ types }?: { types?: string[] }
|
64
|
-
): void;
|
65
|
-
|
66
|
-
/**
|
67
|
-
* Return an Array of currently registered sheet classes for this Entity type
|
68
|
-
*/
|
69
|
-
static get registeredSheets(): typeof ActorSheet[];
|
70
36
|
}
|
71
37
|
}
|
@@ -5,7 +5,7 @@ declare global {
|
|
5
5
|
* The singleton collection of Combat documents which exist within the active World.
|
6
6
|
* This Collection is accessible within the Game object as game.combats.
|
7
7
|
*
|
8
|
-
* @see {@link Combat} The Combat
|
8
|
+
* @see {@link Combat} The Combat document
|
9
9
|
* @see {@link CombatTracker} The CombatTracker sidebar directory
|
10
10
|
*/
|
11
11
|
class CombatEncounters extends WorldCollection<typeof foundry.documents.BaseCombat, 'CombatEncounters'> {
|
@@ -13,10 +13,13 @@ declare global {
|
|
13
13
|
static documentName: 'Combat';
|
14
14
|
|
15
15
|
/**
|
16
|
-
* Provide the settings object which configures the Combat
|
16
|
+
* Provide the settings object which configures the Combat document
|
17
17
|
*/
|
18
18
|
static get settings(): ClientSettings.Values[`core.${typeof Combat['CONFIG_SETTING']}`];
|
19
19
|
|
20
|
+
/** @override */
|
21
|
+
get directory(): typeof ui['combat'];
|
22
|
+
|
20
23
|
/**
|
21
24
|
* Get an Array of Combat instances which apply to the current canvas scene
|
22
25
|
*/
|
package/src/foundry/foundry.js/collections/documentCollections/worldCollections/fogExplorations.d.ts
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
/**
|
2
2
|
* The singleton collection of FogExploration documents which exist within the active World.
|
3
|
-
* This Collection is accessible within the Game object as game.fog.
|
4
|
-
*
|
5
3
|
* @see {@link FogExploration} The FogExploration document
|
6
4
|
*/
|
7
5
|
declare class FogExplorations extends WorldCollection<typeof foundry.documents.BaseFogExploration, 'FogExplorations'> {
|
package/src/foundry/foundry.js/collections/documentCollections/worldCollections/folders.d.ts
CHANGED
@@ -5,7 +5,7 @@ declare global {
|
|
5
5
|
* The singleton collection of Folder documents which exist within the active World.
|
6
6
|
* This Collection is accessible within the Game object as game.fog.
|
7
7
|
*
|
8
|
-
* @see {@link
|
8
|
+
* @see {@link Folder} The Folder document
|
9
9
|
*/
|
10
10
|
class Folders extends WorldCollection<typeof foundry.documents.BaseFolder, 'Folders'> {
|
11
11
|
constructor(data?: StoredDocument<InstanceType<ConfiguredDocumentClass<typeof Folder>>>['data']['_source'][]);
|
@@ -19,7 +19,7 @@ declare global {
|
|
19
19
|
static documentName: 'Folder';
|
20
20
|
|
21
21
|
/** @override */
|
22
|
-
render(force?: boolean, context?:
|
22
|
+
render(force?: boolean, context?: ApplicationOptions): void;
|
23
23
|
|
24
24
|
/**
|
25
25
|
* Refresh the display of any active JournalSheet instances where the folder list will change.
|
@@ -2,31 +2,10 @@
|
|
2
2
|
* The singleton collection of Item documents which exist within the active World.
|
3
3
|
* This Collection is accessible within the Game object as game.items.
|
4
4
|
*
|
5
|
-
* @see {@link Item} The Item
|
5
|
+
* @see {@link Item} The Item document
|
6
6
|
* @see {@link ItemDirectory} The ItemDirectory sidebar directory
|
7
7
|
*/
|
8
8
|
declare class Items extends WorldCollection<typeof foundry.documents.BaseItem, 'Items'> {
|
9
9
|
/** @override */
|
10
10
|
static documentName: 'Item';
|
11
|
-
|
12
|
-
/**
|
13
|
-
* Register an Item sheet class as a candidate which can be used to display Items of a given type
|
14
|
-
* See EntitySheetConfig.registerSheet for details
|
15
|
-
*/
|
16
|
-
static registerSheet(
|
17
|
-
scope: string,
|
18
|
-
sheetClass: ConstructorOf<ItemSheet>,
|
19
|
-
{ label, types, makeDefault }?: { label?: string; types?: string[]; makeDefault?: boolean }
|
20
|
-
): void;
|
21
|
-
|
22
|
-
/**
|
23
|
-
* Unregister an Item sheet class, removing it from the list of available sheet Applications to use
|
24
|
-
* See EntitySheetConfig.unregisterSheet for details
|
25
|
-
*/
|
26
|
-
static unregisterSheet(scope: string, sheetClass: ConstructorOf<ItemSheet>, { types }?: { types?: string[] }): void;
|
27
|
-
|
28
|
-
/**
|
29
|
-
* Return an Array of currently registered sheet classes for this Entity type
|
30
|
-
*/
|
31
|
-
static get registeredSheets(): typeof ItemSheet[];
|
32
11
|
}
|
package/src/foundry/foundry.js/collections/documentCollections/worldCollections/journal.d.ts
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* The singleton collection of JournalEntry documents which exist within the active World.
|
3
3
|
* This Collection is accessible within the Game object as game.journal.
|
4
4
|
*
|
5
|
-
* @see {@link JournalEntry} The JournalEntry
|
5
|
+
* @see {@link JournalEntry} The JournalEntry document
|
6
6
|
* @see {@link JournalDirectory} The JournalDirectory sidebar directory
|
7
7
|
*/
|
8
8
|
declare class Journal extends WorldCollection<typeof foundry.documents.BaseJournalEntry, 'Journal'> {
|
@@ -5,7 +5,7 @@ declare global {
|
|
5
5
|
* The singleton collection of Macro documents which exist within the active World.
|
6
6
|
* This Collection is accessible within the Game object as game.macros.
|
7
7
|
*
|
8
|
-
* @see {@link Macro} The Macro
|
8
|
+
* @see {@link Macro} The Macro document
|
9
9
|
* @see {@link MacroDirectory} The MacroDirectory sidebar directory
|
10
10
|
*/
|
11
11
|
class Macros extends WorldCollection<typeof foundry.documents.BaseMacro, 'Macros'> {
|
@@ -19,16 +19,11 @@ declare global {
|
|
19
19
|
fromCompendium(
|
20
20
|
document:
|
21
21
|
| InstanceType<ConfiguredDocumentClass<typeof foundry.documents.BaseMacro>>
|
22
|
-
| InstanceType<ConfiguredDocumentClass<typeof foundry.documents.BaseMacro>>['data']['_source']
|
22
|
+
| InstanceType<ConfiguredDocumentClass<typeof foundry.documents.BaseMacro>>['data']['_source'],
|
23
|
+
options?: WorldCollection.FromCompendiumOptions | undefined
|
23
24
|
): Omit<
|
24
25
|
InstanceType<ConfiguredDocumentClass<typeof foundry.documents.BaseMacro>>['data']['_source'],
|
25
26
|
'_id' | 'folder'
|
26
27
|
>;
|
27
|
-
|
28
|
-
/**
|
29
|
-
* You are calling Macros.canUseScripts which has been deprecated in favor of User#can('MACRO_SCRIPT')
|
30
|
-
* @deprecated since 0.8.1
|
31
|
-
*/
|
32
|
-
static canUseScripts(user: InstanceType<ConfiguredDocumentClass<typeof foundry.documents.BaseUser>>): boolean;
|
33
28
|
}
|
34
29
|
}
|
package/src/foundry/foundry.js/collections/documentCollections/worldCollections/messages.d.ts
CHANGED
@@ -5,19 +5,24 @@ declare global {
|
|
5
5
|
* The singleton collection of ChatMessage documents which exist within the active World.
|
6
6
|
* This Collection is accessible within the Game object as game.messages.
|
7
7
|
*
|
8
|
-
* @see {@link ChatMessage} The ChatMessage
|
8
|
+
* @see {@link ChatMessage} The ChatMessage document
|
9
9
|
* @see {@link ChatLog} The ChatLog sidebar directory
|
10
10
|
*/
|
11
11
|
class Messages extends WorldCollection<typeof foundry.documents.BaseChatMessage, 'Messages'> {
|
12
12
|
/** @override */
|
13
13
|
static documentName: 'ChatMessage';
|
14
14
|
|
15
|
+
/**
|
16
|
+
* @override
|
17
|
+
* */
|
18
|
+
get directory(): typeof ui.chat;
|
19
|
+
|
15
20
|
/** @override */
|
16
21
|
render(force?: boolean): void;
|
17
22
|
|
18
23
|
/**
|
19
24
|
* If requested, dispatch a Chat Bubble UI for the newly created message
|
20
|
-
* @param message - The ChatMessage
|
25
|
+
* @param message - The ChatMessage document to say
|
21
26
|
*/
|
22
27
|
sayBubble(message: InstanceType<ConfiguredDocumentClass<typeof foundry.documents.BaseChatMessage>>): void;
|
23
28
|
|