pixijs-input-devices 0.9.0 → 0.9.2
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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +6 -4
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -332,12 +332,14 @@ declare class NavigationManager {
|
|
|
332
332
|
removeResponder<T extends Container | NavigationResponder>(responder: T, popAllAbove?: boolean): T | undefined;
|
|
333
333
|
/**
|
|
334
334
|
* Focus on the first navigatable element.
|
|
335
|
+
*
|
|
336
|
+
* @param clearExistingFocus (default=true) discard current focus item
|
|
335
337
|
*/
|
|
336
|
-
autoFocus(): void;
|
|
338
|
+
autoFocus(clearExistingFocus?: boolean): void;
|
|
337
339
|
/**
|
|
338
340
|
* Current root container for navigation.
|
|
339
341
|
*/
|
|
340
|
-
getStageContainer(): Container;
|
|
342
|
+
getStageContainer(): Container | undefined;
|
|
341
343
|
disable(): void;
|
|
342
344
|
/**
|
|
343
345
|
* @param target - Container to focus on.
|
|
@@ -972,7 +974,7 @@ export declare function getAllNavigatables(target: Container, navigatables?: Nav
|
|
|
972
974
|
/**
|
|
973
975
|
* @returns the first navigatable container in the given direction
|
|
974
976
|
*/
|
|
975
|
-
export declare function getFirstNavigatable(root: Container, options
|
|
977
|
+
export declare function getFirstNavigatable(root: Container, options: NavigatableQueryOptions): NavigatableContainer | undefined;
|
|
976
978
|
/**
|
|
977
979
|
* Invalidate the navigatable-list cache for a specific root (or the entire
|
|
978
980
|
* cache when no argument is given).
|
|
@@ -1193,7 +1195,7 @@ export interface NamedBindEvent<BindName extends IBind> {
|
|
|
1193
1195
|
export interface NavigatableQueryOptions {
|
|
1194
1196
|
currentFocus?: Container;
|
|
1195
1197
|
direction?: NavigateDirection;
|
|
1196
|
-
spatial
|
|
1198
|
+
spatial: SpatialNavigationOptions;
|
|
1197
1199
|
}
|
|
1198
1200
|
/**
|
|
1199
1201
|
* An event passed to a responder when any of:
|