@flashist/flibs 0.0.136 → 0.0.137
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.
|
@@ -17,14 +17,18 @@ var DeviceTools = /** @class */ (function () {
|
|
|
17
17
|
deviceType = DeviceType.TABLET;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
+
// Pixel ratio based on the device type
|
|
20
21
|
if (deviceType !== DeviceType.DESKTOP) {
|
|
21
22
|
pixelRatio = window.devicePixelRatio;
|
|
22
23
|
}
|
|
24
|
+
// Fullscreen
|
|
25
|
+
var fullScreenApiAvailable = document.fullscreenEnabled ||
|
|
26
|
+
document.mozFullScreenEnabled ||
|
|
27
|
+
document.documentElement.webkitRequestFullScreen;
|
|
23
28
|
return {
|
|
24
29
|
deviceType: deviceType,
|
|
25
30
|
pixelRatio: pixelRatio,
|
|
26
|
-
|
|
27
|
-
isFullScreenApiAvailable: false
|
|
31
|
+
isFullScreenApiAvailable: fullScreenApiAvailable
|
|
28
32
|
};
|
|
29
33
|
};
|
|
30
34
|
return DeviceTools;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeviceTools.js","sourceRoot":"","sources":["../../../src/device/tools/DeviceTools.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGhD;IAAA;
|
|
1
|
+
{"version":3,"file":"DeviceTools.js","sourceRoot":"","sources":["../../../src/device/tools/DeviceTools.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGhD;IAAA;IAkCA,CAAC;IAjCU,yBAAa,GAApB,UAAqB,SAAiB;QAClC,IAAI,UAAU,GAAe,UAAU,CAAC,OAAO,CAAC;QAChD,IAAI,UAAU,GAAW,CAAC,CAAC;QAE3B,SAAS;QACT,IAAI,oUAAoU,CAAC,IAAI,CAAC,SAAS,CAAC;eACjV,ykDAAykD,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE;YAC3mD,UAAU,GAAG,UAAU,CAAC,MAAM,CAAC;SAClC;aAAM;YACH,IAAM,QAAQ,GAAY,iHAAiH,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAC5J,IAAI,QAAQ,EAAE;gBACV,UAAU,GAAG,UAAU,CAAC,MAAM,CAAC;aAClC;SACJ;QAED,uCAAuC;QACvC,IAAI,UAAU,KAAK,UAAU,CAAC,OAAO,EAAE;YACnC,UAAU,GAAG,MAAM,CAAC,gBAAgB,CAAC;SACxC;QAGD,aAAa;QACb,IAAM,sBAAsB,GACxB,QAAQ,CAAC,iBAAiB;YACzB,QAAgB,CAAC,oBAAoB;YACrC,QAAQ,CAAC,eAAuB,CAAC,uBAAuB,CAAC;QAE9D,OAAO;YACH,UAAU,EAAE,UAAU;YACtB,UAAU,EAAE,UAAU;YACtB,wBAAwB,EAAE,sBAAsB;SACnD,CAAC;IACN,CAAC;IACL,kBAAC;AAAD,CAAC,AAlCD,IAkCC"}
|