This commit is contained in:
Akko
2025-08-04 18:57:35 +02:00
parent 8cf6e78a79
commit 9495868c2e
5030 changed files with 518594 additions and 17609 deletions

84
node_modules/pixi.js/lib/utils/browser/isMobile.d.ts generated vendored Normal file
View File

@@ -0,0 +1,84 @@
/**
* The result of the {@link utils.isMobile} function.
* @ignore
* @memberof utils
*/
export type isMobileResult = {
/**
* Whether the device is an Apple device.
* @memberof utils.isMobile
*/
apple: {
phone: boolean;
ipod: boolean;
tablet: boolean;
universal: boolean;
device: boolean;
};
/**
* Whether the device is an Amazon device.
* @memberof utils.isMobile
*/
amazon: {
phone: boolean;
tablet: boolean;
device: boolean;
};
/**
* Whether the device is an Android device.
* @memberof utils.isMobile
*/
android: {
phone: boolean;
tablet: boolean;
device: boolean;
};
/**
* Whether the device is a Windows device.
* @memberof utils.isMobile
*/
windows: {
phone: boolean;
tablet: boolean;
device: boolean;
};
/**
* Whether the device is a specific device.
* @memberof utils.isMobile
*/
other: {
blackberry: boolean;
blackberry10: boolean;
opera: boolean;
firefox: boolean;
chrome: boolean;
device: boolean;
};
/**
* Whether the device is a phone device.
* @memberof utils.isMobile
*/
phone: boolean;
/**
* Whether the device is a tablet device.
* @memberof utils.isMobile
*/
tablet: boolean;
/**
* Whether the device is any kind of device.
* @memberof utils.isMobile
*/
any: boolean;
};
/**
* Detects whether the device is mobile and what type of mobile device it is.
* ```js
* import { isMobile } from 'pixi.js';
*
* if (isMobile.apple.tablet) {
* // The device is an Apple tablet device.
* }
* ```
* @memberof utils
*/
export declare const isMobile: isMobileResult;