From 12725a64ad7514589487bebb12f4a53cd8fb906f Mon Sep 17 00:00:00 2001 From: OmegaRogue Date: Thu, 1 Feb 2024 13:11:45 +0100 Subject: [PATCH 1/3] Add once Hook for I18nInit --- types/foundry/client/core/hooks.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/foundry/client/core/hooks.d.ts b/types/foundry/client/core/hooks.d.ts index 4f04f764bd7..3172239dff0 100644 --- a/types/foundry/client/core/hooks.d.ts +++ b/types/foundry/client/core/hooks.d.ts @@ -143,6 +143,7 @@ declare global { static once(...args: HookParamsUpdate): number; static once(...args: HookParamsUpdate): number; static once(...args: HookParamsUpdateWorldTime): number; + static once(...args: HookParamsI18nInit): number; static once(...args: HookParameters): number; /** From ae7404ff28544c9b4179c301c25612b8f4aa1600 Mon Sep 17 00:00:00 2001 From: OmegaRogue Date: Sat, 3 Feb 2024 17:51:52 +0100 Subject: [PATCH 2/3] Add ui.sidebar.activeTab getter --- types/foundry/client/application/sidebar/sidebar.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/types/foundry/client/application/sidebar/sidebar.d.ts b/types/foundry/client/application/sidebar/sidebar.d.ts index a3703b6b88e..ebda0b8cd84 100644 --- a/types/foundry/client/application/sidebar/sidebar.d.ts +++ b/types/foundry/client/application/sidebar/sidebar.d.ts @@ -11,6 +11,11 @@ declare class Sidebar extends Application { */ get popouts(): Application[]; + /** + * Return the name of the active Sidebar tab + */ + get activeTab(): string; + /** * Activate a Sidebar tab by it's name * @param tabName The tab name corresponding to it's "data-tab" attribute From 6fb73b3df712f70d65b94702e554b417a0f39ea1 Mon Sep 17 00:00:00 2001 From: OmegaRogue Date: Wed, 7 Feb 2024 14:55:04 +0100 Subject: [PATCH 3/3] Add Canvas.prototype._onDragSelect --- types/foundry/client/pixi/board.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/types/foundry/client/pixi/board.d.ts b/types/foundry/client/pixi/board.d.ts index 71e447c562d..42607f67765 100644 --- a/types/foundry/client/pixi/board.d.ts +++ b/types/foundry/client/pixi/board.d.ts @@ -377,6 +377,12 @@ declare global { * @param event The originating mouse movement event */ _onDragCanvasPan(event: MouseEvent): void; + + /** + * Determine selection coordinate rectangle during a mouse-drag workflow + * @param event + */ + _onDragSelect(event: PIXI.FederatedEvent): void; } type DrawnCanvas = {