@league-of-foundry-developers/foundry-vtt-types 13.346.0-beta.20250718083608 → 13.346.0-beta.20250720082736

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.
Files changed (33) hide show
  1. package/package.json +1 -1
  2. package/src/foundry/client/applications/ui/game-pause.d.mts +17 -2
  3. package/src/foundry/client/applications/ui/hotbar.d.mts +96 -2
  4. package/src/foundry/client/applications/ui/main-menu.d.mts +29 -2
  5. package/src/foundry/client/applications/ui/players.d.mts +77 -2
  6. package/src/foundry/client/applications/ui/region-legend.d.mts +1 -0
  7. package/src/foundry/client/applications/ui/scene-navigation.d.mts +1 -1
  8. package/src/foundry/client/canvas/containers/advanced/cached-container.d.mts +15 -15
  9. package/src/foundry/client/canvas/containers/advanced/full-canvas-mixin.d.mts +2 -2
  10. package/src/foundry/client/canvas/containers/elements/control-icon.d.mts +12 -32
  11. package/src/foundry/client/canvas/containers/elements/cursor.d.mts +14 -1
  12. package/src/foundry/client/canvas/containers/elements/door-control.d.mts +2 -2
  13. package/src/foundry/client/canvas/containers/elements/door-mesh.d.mts +215 -3
  14. package/src/foundry/client/canvas/containers/elements/grid-highlight.d.mts +3 -3
  15. package/src/foundry/client/canvas/containers/elements/grid-mesh.d.mts +4 -4
  16. package/src/foundry/client/canvas/containers/elements/particles/leaves.d.mts +7 -6
  17. package/src/foundry/client/canvas/containers/elements/particles/particle-effect.d.mts +4 -5
  18. package/src/foundry/client/canvas/containers/elements/point-source-mesh.d.mts +18 -23
  19. package/src/foundry/client/canvas/containers/elements/precise-text.d.mts +9 -10
  20. package/src/foundry/client/canvas/containers/elements/quad-mesh.d.mts +1 -2
  21. package/src/foundry/client/canvas/containers/elements/resize-handle.d.mts +37 -11
  22. package/src/foundry/client/canvas/containers/elements/sprite-mesh.d.mts +34 -26
  23. package/src/foundry/client/canvas/layers/masks/depth.d.mts +1 -1
  24. package/src/foundry/client/canvas/layers/masks/occlusion.d.mts +1 -1
  25. package/src/foundry/client/canvas/primary/primary-canvas-container.d.mts +32 -0
  26. package/src/foundry/client/canvas/primary/primary-canvas-object.d.mts +39 -38
  27. package/src/foundry/client/canvas/primary/primary-graphics.d.mts +22 -18
  28. package/src/foundry/client/canvas/primary/primary-occludable-object.d.mts +59 -29
  29. package/src/foundry/client/canvas/primary/primary-particle-effect.d.mts +51 -0
  30. package/src/foundry/client/canvas/primary/primary-sprite-mesh.d.mts +72 -66
  31. package/src/foundry/client/config.d.mts +444 -311
  32. package/src/foundry/client/documents/wall.d.mts +13 -2
  33. package/src/foundry/client/hooks.d.mts +14 -4
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@league-of-foundry-developers/foundry-vtt-types",
4
- "version": "13.346.0-beta.20250718083608",
4
+ "version": "13.346.0-beta.20250720082736",
5
5
  "description": "TypeScript type definitions for Foundry VTT",
6
6
  "type": "module",
7
7
  "types": "./src/index.d.mts",
@@ -11,15 +11,28 @@ declare module "#configuration" {
11
11
 
12
12
  /**
13
13
  * The Game Paused banner.
14
- * @remarks TODO: Stub
15
14
  */
16
15
  declare class GamePause<
17
16
  RenderContext extends GamePause.RenderContext = GamePause.RenderContext,
18
17
  Configuration extends GamePause.Configuration = GamePause.Configuration,
19
18
  RenderOptions extends GamePause.RenderOptions = GamePause.RenderOptions,
20
19
  > extends ApplicationV2<RenderContext, Configuration, RenderOptions> {
21
- // Fake override.
22
20
  static override DEFAULT_OPTIONS: GamePause.DefaultOptions;
21
+
22
+ protected override _prepareContext(
23
+ options: DeepPartial<RenderOptions> & { isFirstRender: boolean },
24
+ ): Promise<RenderContext>;
25
+
26
+ protected override _renderHTML(
27
+ _context: RenderContext,
28
+ _options: DeepPartial<RenderOptions>,
29
+ ): Promise<GamePause.RenderHTMLReturn>;
30
+
31
+ protected override _replaceHTML(
32
+ result: GamePause.RenderHTMLReturn,
33
+ content: HTMLElement,
34
+ _options: DeepPartial<RenderOptions>,
35
+ ): void;
23
36
  }
24
37
 
25
38
  declare namespace GamePause {
@@ -37,6 +50,8 @@ declare namespace GamePause {
37
50
  spin: boolean;
38
51
  }
39
52
 
53
+ type RenderHTMLReturn = [HTMLImageElement, HTMLElement];
54
+
40
55
  interface Configuration<GamePause extends GamePause.Any = GamePause.Any>
41
56
  extends ApplicationV2.Configuration<GamePause> {}
42
57
 
@@ -1,6 +1,7 @@
1
1
  import type { DeepPartial, Identity } from "#utils";
2
2
  import type ApplicationV2 from "../api/application.d.mts";
3
3
  import type HandlebarsApplicationMixin from "../api/handlebars-application.d.mts";
4
+ import type Document from "#common/abstract/document.d.mts";
4
5
 
5
6
  declare module "#configuration" {
6
7
  namespace Hooks {
@@ -16,15 +17,102 @@ declare module "#configuration" {
16
17
  * Left-clicking a Macro button triggers its effect.
17
18
  * Right-clicking the button displays a context menu of Macro options.
18
19
  * The number keys 1 through 0 activate numbered hotbar slots.
19
- * @remarks TODO: Stub
20
20
  */
21
21
  declare class Hotbar<
22
22
  RenderContext extends object = Hotbar.RenderContext,
23
23
  Configuration extends Hotbar.Configuration = Hotbar.Configuration,
24
24
  RenderOptions extends Hotbar.RenderOptions = Hotbar.RenderOptions,
25
25
  > extends HandlebarsApplicationMixin(ApplicationV2)<RenderContext, Configuration, RenderOptions> {
26
- // Fake override.
27
26
  static override DEFAULT_OPTIONS: Hotbar.DefaultOptions;
27
+ static override PARTS: Record<string, HandlebarsApplicationMixin.HandlebarsTemplatePart>;
28
+
29
+ /**
30
+ * The current hotbar page number.
31
+ */
32
+ get page(): number;
33
+
34
+ /**
35
+ * The currently rendered macro data.
36
+ */
37
+ get slots(): Hotbar.SlotData[];
38
+
39
+ /**
40
+ * Whether the hotbar is locked.
41
+ */
42
+ get locked(): boolean;
43
+
44
+ protected override _prepareContext(
45
+ options: DeepPartial<RenderOptions> & { isFirstRender: boolean },
46
+ ): Promise<RenderContext>;
47
+
48
+ protected override _onFirstRender(
49
+ context: DeepPartial<RenderContext>,
50
+ options: DeepPartial<RenderOptions>,
51
+ ): Promise<void>;
52
+
53
+ protected override _onRender(context: DeepPartial<RenderContext>, options: DeepPartial<RenderOptions>): Promise<void>;
54
+
55
+ /**
56
+ * Get the set of ContextMenu options which should be applied for Macros in the hotbar.
57
+ */
58
+ protected _getContextMenuOptions(): foundry.applications.ux.ContextMenu.Entry<HTMLElement>[];
59
+
60
+ /**
61
+ * Change to a specific numbered page from 1 to 5
62
+ * @param page - The page number to change to
63
+ */
64
+ changePage(page: number): Promise<void>;
65
+
66
+ /**
67
+ * Change the page of the hotbar by cycling up (positive) or down (negative).
68
+ * @param direction - The direction to cycle
69
+ */
70
+ cyclePage(direction: number): Promise<void>;
71
+
72
+ /**
73
+ * A reusable helper that can be used for toggling display of a document sheet.
74
+ * @param uuid - The Document UUID to display
75
+ */
76
+ static toggleDocumentSheet(uuid: string): Promise<void>;
77
+
78
+ /**
79
+ * Update hotbar display based on viewport size.
80
+ * @internal
81
+ */
82
+ protected _onResize(): void;
83
+
84
+ /**
85
+ * Create a Macro which rolls a RollTable when executed
86
+ * @param table - The RollTable document
87
+ */
88
+ protected _createRollTableRollMacro(table: Document.Any): Promise<Macro.Implementation>;
89
+
90
+ /**
91
+ * Create a Macro document which can be used to toggle display of a Journal Entry.
92
+ * @param doc - A Document which should be toggled
93
+ */
94
+ protected _createDocumentSheetToggle(doc: Document.Any): Promise<Macro.Implementation>;
95
+
96
+ /**
97
+ * @deprecated "{@linkcode Hotbar#macros} is deprecated in favor of {@linkcode Hotbar#slots}." (since v13, until v15)
98
+ * @ignore
99
+ */
100
+ get macros(): Hotbar.SlotData[];
101
+
102
+ /**
103
+ * @deprecated "{@linkcode Hotbar#collapse} is no longer a supported feature." (since v13, until v15)
104
+ * @ignore
105
+ */
106
+ collapse(): void;
107
+
108
+ /**
109
+ * @deprecated "{@linkcode Hotbar#expand} is no longer a supported feature." (since v13, until v15)
110
+ * @ignore
111
+ */
112
+ expand(): void;
113
+
114
+ static #HotbarStatic: true;
115
+ #Hotbar: true;
28
116
  }
29
117
 
30
118
  declare namespace Hotbar {
@@ -33,6 +121,12 @@ declare namespace Hotbar {
33
121
 
34
122
  interface SlotData {
35
123
  slot: number;
124
+ macro: Macro.Implementation | null;
125
+ key: number;
126
+ img: Macro.Implementation["img"] | null;
127
+ cssClass: "full" | "open";
128
+ tooltip: string | null;
129
+ ariaLabel: string;
36
130
  }
37
131
 
38
132
  /**
@@ -12,15 +12,42 @@ declare module "#configuration" {
12
12
 
13
13
  /**
14
14
  * The main menu application which is toggled via the ESC key.
15
- * @remarks TODO: Stub
16
15
  */
17
16
  declare class MainMenu<
18
17
  RenderContext extends object = MainMenu.RenderContext,
19
18
  Configuration extends MainMenu.Configuration = MainMenu.Configuration,
20
19
  RenderOptions extends MainMenu.RenderOptions = MainMenu.RenderOptions,
21
20
  > extends HandlebarsApplicationMixin(ApplicationV2)<RenderContext, Configuration, RenderOptions> {
22
- // Fake override.
23
21
  static override DEFAULT_OPTIONS: MainMenu.DefaultOptions;
22
+ static override PARTS: Record<string, HandlebarsApplicationMixin.HandlebarsTemplatePart>;
23
+
24
+ /**
25
+ * Configuration of Main Menu items.
26
+ */
27
+ static ITEMS: Record<string, MainMenu.MainMenuItem>;
28
+
29
+ /**
30
+ * A record of menu items which are currently enabled.
31
+ */
32
+ get items(): Record<string, MainMenu.MainMenuItem>;
33
+
34
+ protected override _insertElement(element: HTMLElement): void;
35
+
36
+ protected override _onFirstRender(
37
+ context: DeepPartial<RenderContext>,
38
+ options: DeepPartial<RenderOptions>,
39
+ ): Promise<void>;
40
+
41
+ protected override _prepareContext(
42
+ options: DeepPartial<RenderOptions> & { isFirstRender: boolean },
43
+ ): Promise<RenderContext>;
44
+
45
+ /**
46
+ * Toggle display of the menu, or render it in the first place.
47
+ */
48
+ toggle(): Promise<void>;
49
+
50
+ static #MainMenuStatic: true;
24
51
  }
25
52
 
26
53
  declare namespace MainMenu {
@@ -13,15 +13,82 @@ declare module "#configuration" {
13
13
  /**
14
14
  * A UI element which displays the Users defined for this world.
15
15
  * Currently active users are always displayed, while inactive users can be displayed on toggle.
16
- * @remarks TODO: Stub
17
16
  */
18
17
  declare class Players<
19
18
  RenderContext extends Players.RenderContext = Players.RenderContext,
20
19
  Configuration extends Players.Configuration = Players.Configuration,
21
20
  RenderOptions extends Players.RenderOptions = Players.RenderOptions,
22
21
  > extends HandlebarsApplicationMixin(ApplicationV2)<RenderContext, Configuration, RenderOptions> {
23
- // Fake override.
24
22
  static override DEFAULT_OPTIONS: Players.DefaultOptions;
23
+ static override PARTS: Record<string, HandlebarsApplicationMixin.HandlebarsTemplatePart>;
24
+
25
+ /**
26
+ * How often latency is refreshed.
27
+ * @defaultValue `60 * 1000`
28
+ */
29
+ static REFRESH_LATENCY_FREQUENCY_MS: number;
30
+
31
+ /**
32
+ * A threshold of time in milliseconds after which a player is considered idle if they have no observed activity.
33
+ * @defaultValue `5 * 60 * 1000`
34
+ */
35
+ static IDLE_THRESHOLD_MS: number;
36
+
37
+ /**
38
+ * Is the application currently expanded?
39
+ */
40
+ get expanded(): boolean;
41
+
42
+ protected override _prepareContext(
43
+ options: DeepPartial<RenderOptions> & { isFirstRender: boolean },
44
+ ): Promise<RenderContext>;
45
+
46
+ /**
47
+ * Format the display of a user's name using their name, pronouns (if defined), and character name (if defined).
48
+ */
49
+ protected _formatName(user: User.Implementation): string;
50
+
51
+ protected override _onFirstRender(
52
+ context: DeepPartial<RenderContext>,
53
+ options: DeepPartial<RenderOptions>,
54
+ ): Promise<void>;
55
+
56
+ protected override _onRender(context: DeepPartial<RenderContext>, options: DeepPartial<RenderOptions>): Promise<void>;
57
+
58
+ /**
59
+ * Collapse the players list.
60
+ */
61
+ collapse(): void;
62
+
63
+ /**
64
+ * Expand the players list.
65
+ */
66
+ expand(): void;
67
+
68
+ /**
69
+ * Update the display which reports average latency.
70
+ */
71
+ refreshLatency(): void;
72
+
73
+ /**
74
+ * Update the display which reports average framerate.
75
+ * @param options - Options which customize FPS reporting (default: `{}`)
76
+ */
77
+ refreshFPS({ deactivate }?: Players.RefreshFPSOptions): void;
78
+
79
+ /**
80
+ * Toggle the expanded state of scene navigation.
81
+ * @param expanded - Force the expanded state to the provided value, otherwise toggle the state.
82
+ */
83
+ toggleExpanded(expanded?: boolean): void;
84
+
85
+ /**
86
+ * Get the set of ContextMenu options which should be applied to each User in the Players UI.
87
+ */
88
+ protected _getContextMenuOptions(): foundry.applications.ux.ContextMenu.Entry<HTMLElement>[];
89
+
90
+ static #PlayersStatic: true;
91
+ #Players: true;
25
92
  }
26
93
 
27
94
  declare namespace Players {
@@ -48,6 +115,14 @@ declare namespace Players {
48
115
  border: string;
49
116
  }
50
117
 
118
+ interface RefreshFPSOptions {
119
+ /**
120
+ * Deactivate tracking
121
+ * @defaultValue `false`
122
+ */
123
+ deactivate?: boolean | undefined;
124
+ }
125
+
51
126
  interface Configuration<Players extends Players.Any = Players.Any>
52
127
  extends HandlebarsApplicationMixin.Configuration,
53
128
  ApplicationV2.Configuration<Players> {}
@@ -19,6 +19,7 @@ declare class RegionLegend<
19
19
  RenderOptions extends RegionLegend.RenderOptions = RegionLegend.RenderOptions,
20
20
  > extends HandlebarsApplicationMixin(ApplicationV2)<RenderContext, Configuration, RenderOptions> {
21
21
  #RegionLegend: true;
22
+ static #RegionLegendStatic: true;
22
23
 
23
24
  static override DEFAULT_OPTIONS: RegionLegend.DefaultOptions;
24
25
  static override PARTS: Record<string, HandlebarsApplicationMixin.HandlebarsTemplatePart>;
@@ -59,7 +59,7 @@ declare class SceneNavigation<
59
59
  toggleExpanded(expanded?: boolean): void;
60
60
 
61
61
  /**
62
- * @deprecated "SceneNavigation.displayProgressBar is deprecated in favor of {@linkcode Notifications#notify} using the \{progress: true\} option" (since v13, until v15)
62
+ * @deprecated "{@linkcode SceneNavigation.displayProgressBar} is deprecated in favor of {@linkcode Notifications#notify} using the `{progress: true}` option" (since v13, until v15)
63
63
  * @ignore
64
64
  */
65
65
  static displayProgressBar({ label, pct }?: SceneNavigation.DisplayProgressBarOptions): void;
@@ -1,20 +1,20 @@
1
- import type { Identity, NullishProps } from "#utils";
1
+ import type { Identity, InexactPartial } from "#utils";
2
2
  import { SpriteMesh } from "#client/canvas/containers/_module.mjs";
3
3
 
4
4
  /**
5
- * A special type of PIXI.Container which draws its contents to a cached RenderTexture.
6
- * This is accomplished by overriding the Container#render method to draw to our own special RenderTexture.
5
+ * A special type of {@linkcode PIXI.Container} which draws its contents to a cached {@linkcode PIXI.RenderTexture | RenderTexture}.
6
+ * This is accomplished by overriding the {@linkcode PIXI.Container.render | Container#render} method to draw to our own special `RenderTexture`.
7
7
  */
8
8
  declare class CachedContainer extends PIXI.Container {
9
9
  /**
10
10
  * Construct a CachedContainer.
11
- * @param sprite - A specific sprite to bind to this CachedContainer and its renderTexture.
11
+ * @param sprite - A specific sprite to bind to this `CachedContainer` and its renderTexture.
12
12
  */
13
13
  constructor(sprite?: PIXI.Sprite | SpriteMesh);
14
14
 
15
15
  /**
16
16
  * The texture configuration to use for this cached container
17
- * @remarks Foundry marked as `@abstract`
17
+ * @abstract
18
18
  */
19
19
  static textureConfiguration: CachedContainer.TextureConfiguration;
20
20
 
@@ -37,7 +37,7 @@ declare class CachedContainer extends PIXI.Container {
37
37
 
38
38
  /**
39
39
  * If true, the Container is rendered every frame.
40
- * If false, the Container is rendered only if {@link CachedContainer.renderDirty | `CachedContainer#renderDirty`} is true.
40
+ * If false, the Container is rendered only if {@linkcode CachedContainer.renderDirty | CachedContainer#renderDirty} is true.
41
41
  * @defaultValue `true`
42
42
  */
43
43
  autoRender: boolean;
@@ -79,18 +79,17 @@ declare class CachedContainer extends PIXI.Container {
79
79
  /**
80
80
  * Remove a previously created render texture.
81
81
  * @param renderTexture - The render texture to remove.
82
- * @param destroy - Should the render texture be destroyed?
83
- * (default: `true`)
82
+ * @param destroy - Should the render texture be destroyed? (default: `true`)
84
83
  */
85
- removeRenderTexture(renderTexture: PIXI.RenderTexture, destroy?: boolean | null): void;
84
+ removeRenderTexture(renderTexture: PIXI.RenderTexture, destroy?: boolean): void;
86
85
 
87
86
  /**
88
87
  * Clear the cached container, removing its current contents.
89
- * @param destroy - Tell children that we should destroy texture as well.
88
+ * @param destroy - Tell children that we should destroy texture as well. (default: `true`)
90
89
  * @returns A reference to the cleared container for chaining.
91
90
  * @remarks Added possibility of void return due to child classes
92
91
  */
93
- clear(destroy?: boolean): CachedContainer | void;
92
+ clear(destroy?: boolean): this;
94
93
 
95
94
  override destroy(options?: PIXI.IDestroyOptions | boolean): void;
96
95
 
@@ -102,6 +101,8 @@ declare class CachedContainer extends PIXI.Container {
102
101
  * @param rt - The render texture to resize.
103
102
  */
104
103
  static resizeRenderTexture(renderer: PIXI.Renderer, rt: PIXI.RenderTexture): void;
104
+
105
+ #CachedContainer: true;
105
106
  }
106
107
 
107
108
  declare namespace CachedContainer {
@@ -109,25 +110,24 @@ declare namespace CachedContainer {
109
110
  interface AnyConstructor extends Identity<typeof AnyCachedContainer> {}
110
111
 
111
112
  /** @internal */
112
- type _TextureConfiguration = NullishProps<{
113
+ type _TextureConfiguration = InexactPartial<{
113
114
  multisample: PIXI.MSAA_QUALITY;
114
115
  scaleMode: PIXI.SCALE_MODES;
115
116
  format: PIXI.FORMATS;
116
-
117
- /** @remarks Only exists on DarknessLevelContainer and is seemingly unused there */
118
117
  mipmap: PIXI.MIPMAP_MODES;
119
118
  }>;
120
119
 
121
120
  interface TextureConfiguration extends _TextureConfiguration {}
122
121
 
123
122
  /** @internal */
124
- type _RenderOptions = NullishProps<{
123
+ type _RenderOptions = InexactPartial<{
125
124
  /** Render function that will be called to render into the RT. */
126
125
  renderFunction: (renderer: PIXI.Renderer) => void;
127
126
 
128
127
  /** An optional clear color to clear the RT before rendering into it. */
129
128
  clearColor: Color.RGBAColorVector;
130
129
  }>;
130
+
131
131
  interface RenderOptions extends _RenderOptions {}
132
132
  }
133
133
 
@@ -5,12 +5,12 @@ declare class FullCanvasObject {
5
5
  /** @privateRemarks All mixin classes should accept anything for its constructor. */
6
6
  constructor(...args: any[]);
7
7
 
8
- /** @remarks Overrides the mixed PIXI class's method, @see {@link PIXI.DisplayObject.calculateBounds | `PIXI.DisplayObject#calculateBounds`} */
8
+ /** @remarks Overrides the mixed PIXI class's method, see {@linkcode PIXI.DisplayObject.calculateBounds | PIXI.DisplayObject#calculateBounds} */
9
9
  calculateBounds(): void;
10
10
  }
11
11
 
12
12
  /**
13
- * Augment any PIXI.DisplayObject to assume bounds that are always aligned with the full visible screen.
13
+ * Augment any {@linkcode PIXI.DisplayObject} to assume bounds that are always aligned with the full visible screen.
14
14
  * The bounds of this container do not depend on its children but always fill the entire canvas.
15
15
  * @param Base - Any PIXI DisplayObject subclass
16
16
  */
@@ -25,18 +25,15 @@ declare class ControlIcon extends PIXI.Container {
25
25
  */
26
26
  tintColor: number | null;
27
27
 
28
- /**
29
- * @defaultValue `static`
30
- */
28
+ /** @defaultValue `"static"` */
31
29
  override eventMode: PIXI.EventMode;
32
30
 
33
- /**
34
- * @defaultValue `false`
35
- */
31
+ /** @defaultValue `false` */
36
32
  override interactiveChildren: boolean;
37
33
 
38
34
  override hitArea: PIXI.Rectangle;
39
35
 
36
+ /** @defaultValue `"pointer"` */
40
37
  override cursor: string;
41
38
 
42
39
  bg: PIXI.Graphics;
@@ -48,22 +45,23 @@ declare class ControlIcon extends PIXI.Container {
48
45
  tooltip: PreciseText;
49
46
 
50
47
  /**
51
- * The elevation of the ControlIcon, which is displayed in its tooltip text.
52
- * @throws If a set is attempted with anything but a finite number
48
+ * The elevation of the `ControlIcon`, which is displayed in its tooltip text.
49
+ * @remarks
50
+ * @throws If passed `NaN` or `+`/`-Infinity`
53
51
  */
54
52
  get elevation(): number;
55
53
 
56
54
  set elevation(value);
57
55
 
58
56
  /**
59
- * Initial drawing of the ControlIcon
57
+ * Initial drawing of the `ControlIcon`
60
58
  */
61
59
  draw(): Promise<this>;
62
60
 
63
61
  /**
64
- * Incremental refresh for ControlIcon appearance.
62
+ * Incremental refresh for `ControlIcon` appearance.
65
63
  */
66
- refresh({ visible, iconColor, borderColor, borderVisible }?: ControlIcon.RefreshOptions): this;
64
+ refresh(options?: ControlIcon.RefreshOptions): this;
67
65
  }
68
66
 
69
67
  declare namespace ControlIcon {
@@ -72,17 +70,10 @@ declare namespace ControlIcon {
72
70
 
73
71
  /** @internal */
74
72
  type _Options = InexactPartial<{
75
- /**
76
- * @defaultValue `40`
77
- * @remarks Can't be `null` as it only has a parameter default, and `null` coerced to `0` is a nonsensical size value
78
- */
73
+ /** @defaultValue `40` */
79
74
  size: number;
80
75
 
81
- /**
82
- * @defaultValue `0xFF5500`
83
- * @remarks Can't be `null` as that's not a valid value for the `PIXI.Color` constructor,
84
- * and it only has a parameter default
85
- */
76
+ /** @defaultValue `0xFF5500` */
86
77
  borderColor: number;
87
78
 
88
79
  /**
@@ -91,11 +82,7 @@ declare namespace ControlIcon {
91
82
  */
92
83
  tint: number | null;
93
84
 
94
- /**
95
- * @defaultValue `number`
96
- * @remarks Can't be null as the `ControlIcon#elevation` setter throws if passed anything but a finite number,
97
- * and it only has a parameter default
98
- */
85
+ /** @defaultValue `number` */
99
86
  elevation: number;
100
87
  }>;
101
88
 
@@ -106,16 +93,9 @@ declare namespace ControlIcon {
106
93
 
107
94
  /** @internal */
108
95
  type _RefreshOptions = InexactPartial<{
109
- /** @remarks Can't be `null` because of an explicit `!== undefined` check */
110
96
  visible: boolean;
111
-
112
- /** @remarks Can't be `null` because of an explicit `!== undefined` check */
113
97
  iconColor: number;
114
-
115
- /** @remarks Can't be `null` because of an explicit `!== undefined` check */
116
98
  borderColor: number;
117
-
118
- /** @remarks Can't be `null` because of an explicit `!== undefined` check */
119
99
  borderVisible: boolean;
120
100
  }>;
121
101
 
@@ -7,10 +7,20 @@ declare class Cursor extends PIXI.Container {
7
7
  constructor(user: User.Implementation);
8
8
 
9
9
  /**
10
+ * The target cursor position.
10
11
  * @defaultValue `{x: 0, y: 0}`
11
12
  */
12
13
  target: PIXI.IPointData;
13
14
 
15
+ /**
16
+ * Update the position of this cursor based on the current position?
17
+ * @defaultValue `true`
18
+ * @internal
19
+ */
20
+ protected _updatePosition: boolean;
21
+
22
+ override updateTransform(): void;
23
+
14
24
  /**
15
25
  * Update visibility and animations
16
26
  * @param user - The user
@@ -24,10 +34,13 @@ declare class Cursor extends PIXI.Container {
24
34
 
25
35
  /**
26
36
  * Move an existing cursor to a new position smoothly along the animation loop
37
+ * @deprecated Made hard private in v13 (this warning will be removed in v14)
27
38
  */
28
- protected _animate(): void;
39
+ protected _animate(): never;
29
40
 
30
41
  override destroy(options?: PIXI.IDestroyOptions | boolean): void;
42
+
43
+ #Cursor: true;
31
44
  }
32
45
 
33
46
  declare namespace Cursor {
@@ -11,7 +11,7 @@ declare class DoorControl extends PIXI.Container {
11
11
 
12
12
  /**
13
13
  * @defaultValue `false`
14
- * @remarks "Door controls are not visible by default"
14
+ * @remarks Foundry comments "Door controls are not visible by default"
15
15
  */
16
16
  override visible: boolean;
17
17
 
@@ -44,7 +44,7 @@ declare class DoorControl extends PIXI.Container {
44
44
  /**
45
45
  * Determine whether the DoorControl is visible to the calling user's perspective.
46
46
  * The control is always visible if the user is a GM and no Tokens are controlled.
47
- * @see {@link foundry.canvas.groups.CanvasVisibility.testVisibility | `CanvasVisibility#testVisibility`}
47
+ * @see {@linkcode foundry.canvas.groups.CanvasVisibility.testVisibility | CanvasVisibility#testVisibility}
48
48
  */
49
49
  get isVisible(): boolean;
50
50