Socket
Socket
Sign inDemoInstall

@pixi/settings

Package Overview
Dependencies
Maintainers
1
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pixi/settings - npm Package Compare versions

Comparing version 6.0.0-rc to 6.0.0-rc.2

8

dist/browser/settings.js
/*!
* @pixi/settings - v6.0.0-rc
* Compiled Tue, 29 Dec 2020 19:58:03 UTC
* @pixi/settings - v6.0.0-rc.2
* Compiled Thu, 14 Jan 2021 00:40:28 UTC
*

@@ -283,3 +283,3 @@ * @pixi/settings is licensed under the MIT License.

* @property {boolean} autoDensity=false
* @property {boolean} contextAlpha=true
* @property {boolean} useContextAlpha=true
* @property {number} backgroundColor=0x000000

@@ -299,3 +299,3 @@ * @property {number} backgroundAlpha=1

backgroundAlpha: 1,
contextAlpha: true,
useContextAlpha: true,
clearBeforeRender: true,

@@ -302,0 +302,0 @@ preserveDrawingBuffer: false,

/*!
* @pixi/settings - v6.0.0-rc
* Compiled Tue, 29 Dec 2020 19:58:03 UTC
* @pixi/settings - v6.0.0-rc.2
* Compiled Thu, 14 Jan 2021 00:40:28 UTC
*

@@ -8,3 +8,3 @@ * @pixi/settings is licensed under the MIT License.

*/
this.PIXI=this.PIXI||{};var _pixi_settings=function(e){"use strict";var i=/iPhone/i,t=/iPod/i,n=/iPad/i,a=/\biOS-universal(?:.+)Mac\b/i,o=/\bAndroid(?:.+)Mobile\b/i,r=/Android/i,d=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,p=/Silk/i,s=/Windows Phone/i,l=/\bWindows(?:.+)ARM\b/i,c=/BlackBerry/i,u=/BB10/i,h=/Opera Mini/i,v=/\b(CriOS|Chrome)(?:.+)Mobile/i,b=/Mobile(?:.+)Firefox\b/i,A=function(e){return void 0!==e&&"MacIntel"===e.platform&&"number"==typeof e.maxTouchPoints&&e.maxTouchPoints>1&&"undefined"==typeof MSStream};var E=function(e){var E={userAgent:"",platform:"",maxTouchPoints:0};e||"undefined"==typeof navigator?"string"==typeof e?E.userAgent=e:e&&e.userAgent&&(E={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0}):E={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};var g=E.userAgent,_=g.split("[FBAN");void 0!==_[1]&&(g=_[0]),void 0!==(_=g.split("Twitter"))[1]&&(g=_[0]);var I=function(e){return function(i){return i.test(e)}}(g),f={apple:{phone:I(i)&&!I(s),ipod:I(t),tablet:!I(i)&&(I(n)||A(E))&&!I(s),universal:I(a),device:(I(i)||I(t)||I(n)||I(a)||A(E))&&!I(s)},amazon:{phone:I(d),tablet:!I(d)&&I(p),device:I(d)||I(p)},android:{phone:!I(s)&&I(d)||!I(s)&&I(o),tablet:!I(s)&&!I(d)&&!I(o)&&(I(p)||I(r)),device:!I(s)&&(I(d)||I(p)||I(o)||I(r))||I(/\bokhttp\b/i)},windows:{phone:I(s),tablet:I(l),device:I(s)||I(l)},other:{blackberry:I(c),blackberry10:I(u),opera:I(h),firefox:I(b),chrome:I(v),device:I(c)||I(u)||I(h)||I(b)||I(v)},any:!1,phone:!1,tablet:!1};return f.any=f.apple.device||f.android.device||f.windows.device||f.other.device,f.phone=f.apple.phone||f.android.phone||f.windows.phone,f.tablet=f.apple.tablet||f.android.tablet||f.windows.tablet,f}(self.navigator);var g={MIPMAP_TEXTURES:1,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,SPRITE_MAX_TEXTURES:function(e){var i=!0;if(E.tablet||E.phone){var t;E.apple.device&&(t=navigator.userAgent.match(/OS (\d+)_(\d+)?/))&&parseInt(t[1],10)<11&&(i=!1),E.android.device&&(t=navigator.userAgent.match(/Android\s([0-9.]*)/))&&parseInt(t[1],10)<7&&(i=!1)}return i?e:4}(32),SPRITE_BATCH_SIZE:4096,RENDER_OPTIONS:{view:null,antialias:!1,autoDensity:!1,backgroundColor:0,backgroundAlpha:1,contextAlpha:!0,clearBeforeRender:!0,preserveDrawingBuffer:!1,width:800,height:600,legacy:!1},GC_MODE:0,GC_MAX_IDLE:3600,GC_MAX_CHECK_COUNT:600,WRAP_MODE:33071,SCALE_MODE:1,PRECISION_VERTEX:"highp",PRECISION_FRAGMENT:E.apple.device?"highp":"mediump",CAN_UPLOAD_SAME_BUFFER:!E.apple.device,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};return e.isMobile=E,e.settings=g,e}({});Object.assign(this.PIXI,_pixi_settings);
this.PIXI=this.PIXI||{};var _pixi_settings=function(e){"use strict";var i=/iPhone/i,t=/iPod/i,n=/iPad/i,a=/\biOS-universal(?:.+)Mac\b/i,o=/\bAndroid(?:.+)Mobile\b/i,r=/Android/i,d=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,s=/Silk/i,p=/Windows Phone/i,l=/\bWindows(?:.+)ARM\b/i,u=/BlackBerry/i,c=/BB10/i,h=/Opera Mini/i,v=/\b(CriOS|Chrome)(?:.+)Mobile/i,b=/Mobile(?:.+)Firefox\b/i,A=function(e){return void 0!==e&&"MacIntel"===e.platform&&"number"==typeof e.maxTouchPoints&&e.maxTouchPoints>1&&"undefined"==typeof MSStream};var E=function(e){var E={userAgent:"",platform:"",maxTouchPoints:0};e||"undefined"==typeof navigator?"string"==typeof e?E.userAgent=e:e&&e.userAgent&&(E={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0}):E={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};var g=E.userAgent,_=g.split("[FBAN");void 0!==_[1]&&(g=_[0]),void 0!==(_=g.split("Twitter"))[1]&&(g=_[0]);var I=function(e){return function(i){return i.test(e)}}(g),f={apple:{phone:I(i)&&!I(p),ipod:I(t),tablet:!I(i)&&(I(n)||A(E))&&!I(p),universal:I(a),device:(I(i)||I(t)||I(n)||I(a)||A(E))&&!I(p)},amazon:{phone:I(d),tablet:!I(d)&&I(s),device:I(d)||I(s)},android:{phone:!I(p)&&I(d)||!I(p)&&I(o),tablet:!I(p)&&!I(d)&&!I(o)&&(I(s)||I(r)),device:!I(p)&&(I(d)||I(s)||I(o)||I(r))||I(/\bokhttp\b/i)},windows:{phone:I(p),tablet:I(l),device:I(p)||I(l)},other:{blackberry:I(u),blackberry10:I(c),opera:I(h),firefox:I(b),chrome:I(v),device:I(u)||I(c)||I(h)||I(b)||I(v)},any:!1,phone:!1,tablet:!1};return f.any=f.apple.device||f.android.device||f.windows.device||f.other.device,f.phone=f.apple.phone||f.android.phone||f.windows.phone,f.tablet=f.apple.tablet||f.android.tablet||f.windows.tablet,f}(self.navigator);var g={MIPMAP_TEXTURES:1,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,SPRITE_MAX_TEXTURES:function(e){var i=!0;if(E.tablet||E.phone){var t;E.apple.device&&(t=navigator.userAgent.match(/OS (\d+)_(\d+)?/))&&parseInt(t[1],10)<11&&(i=!1),E.android.device&&(t=navigator.userAgent.match(/Android\s([0-9.]*)/))&&parseInt(t[1],10)<7&&(i=!1)}return i?e:4}(32),SPRITE_BATCH_SIZE:4096,RENDER_OPTIONS:{view:null,antialias:!1,autoDensity:!1,backgroundColor:0,backgroundAlpha:1,useContextAlpha:!0,clearBeforeRender:!0,preserveDrawingBuffer:!1,width:800,height:600,legacy:!1},GC_MODE:0,GC_MAX_IDLE:3600,GC_MAX_CHECK_COUNT:600,WRAP_MODE:33071,SCALE_MODE:1,PRECISION_VERTEX:"highp",PRECISION_FRAGMENT:E.apple.device?"highp":"mediump",CAN_UPLOAD_SAME_BUFFER:!E.apple.device,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};return e.isMobile=E,e.settings=g,e}({});Object.assign(this.PIXI,_pixi_settings);
//# sourceMappingURL=settings.min.js.map
/*!
* @pixi/settings - v6.0.0-rc
* Compiled Tue, 29 Dec 2020 19:58:03 UTC
* @pixi/settings - v6.0.0-rc.2
* Compiled Thu, 14 Jan 2021 00:40:28 UTC
*

@@ -162,3 +162,3 @@ * @pixi/settings is licensed under the MIT License.

* @property {boolean} autoDensity=false
* @property {boolean} contextAlpha=true
* @property {boolean} useContextAlpha=true
* @property {number} backgroundColor=0x000000

@@ -178,3 +178,3 @@ * @property {number} backgroundAlpha=1

backgroundAlpha: 1,
contextAlpha: true,
useContextAlpha: true,
clearBeforeRender: true,

@@ -181,0 +181,0 @@ preserveDrawingBuffer: false,

/*!
* @pixi/settings - v6.0.0-rc
* Compiled Tue, 29 Dec 2020 19:58:03 UTC
* @pixi/settings - v6.0.0-rc.2
* Compiled Thu, 14 Jan 2021 00:40:28 UTC
*

@@ -8,3 +8,3 @@ * @pixi/settings is licensed under the MIT License.

*/
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var isMobileCall=_interopDefault(require("ismobilejs")),isMobile=isMobileCall(self.navigator);function maxRecommendedTextures(e){var i=!0;if(isMobile.tablet||isMobile.phone){var t;if(isMobile.apple.device)if(t=navigator.userAgent.match(/OS (\d+)_(\d+)?/))parseInt(t[1],10)<11&&(i=!1);if(isMobile.android.device)if(t=navigator.userAgent.match(/Android\s([0-9.]*)/))parseInt(t[1],10)<7&&(i=!1)}return i?e:4}function canUploadSameBuffer(){return!isMobile.apple.device}var settings={MIPMAP_TEXTURES:1,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,SPRITE_MAX_TEXTURES:maxRecommendedTextures(32),SPRITE_BATCH_SIZE:4096,RENDER_OPTIONS:{view:null,antialias:!1,autoDensity:!1,backgroundColor:0,backgroundAlpha:1,contextAlpha:!0,clearBeforeRender:!0,preserveDrawingBuffer:!1,width:800,height:600,legacy:!1},GC_MODE:0,GC_MAX_IDLE:3600,GC_MAX_CHECK_COUNT:600,WRAP_MODE:33071,SCALE_MODE:1,PRECISION_VERTEX:"highp",PRECISION_FRAGMENT:isMobile.apple.device?"highp":"mediump",CAN_UPLOAD_SAME_BUFFER:canUploadSameBuffer(),CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};exports.isMobile=isMobile,exports.settings=settings;
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var isMobileCall=_interopDefault(require("ismobilejs")),isMobile=isMobileCall(self.navigator);function maxRecommendedTextures(e){var i=!0;if(isMobile.tablet||isMobile.phone){var t;if(isMobile.apple.device)if(t=navigator.userAgent.match(/OS (\d+)_(\d+)?/))parseInt(t[1],10)<11&&(i=!1);if(isMobile.android.device)if(t=navigator.userAgent.match(/Android\s([0-9.]*)/))parseInt(t[1],10)<7&&(i=!1)}return i?e:4}function canUploadSameBuffer(){return!isMobile.apple.device}var settings={MIPMAP_TEXTURES:1,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,SPRITE_MAX_TEXTURES:maxRecommendedTextures(32),SPRITE_BATCH_SIZE:4096,RENDER_OPTIONS:{view:null,antialias:!1,autoDensity:!1,backgroundColor:0,backgroundAlpha:1,useContextAlpha:!0,clearBeforeRender:!0,preserveDrawingBuffer:!1,width:800,height:600,legacy:!1},GC_MODE:0,GC_MAX_IDLE:3600,GC_MAX_CHECK_COUNT:600,WRAP_MODE:33071,SCALE_MODE:1,PRECISION_VERTEX:"highp",PRECISION_FRAGMENT:isMobile.apple.device?"highp":"mediump",CAN_UPLOAD_SAME_BUFFER:canUploadSameBuffer(),CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};exports.isMobile=isMobile,exports.settings=settings;
//# sourceMappingURL=settings.min.js.map
/*!
* @pixi/settings - v6.0.0-rc
* Compiled Tue, 29 Dec 2020 19:58:03 UTC
* @pixi/settings - v6.0.0-rc.2
* Compiled Thu, 14 Jan 2021 00:40:28 UTC
*

@@ -156,3 +156,3 @@ * @pixi/settings is licensed under the MIT License.

* @property {boolean} autoDensity=false
* @property {boolean} contextAlpha=true
* @property {boolean} useContextAlpha=true
* @property {number} backgroundColor=0x000000

@@ -172,3 +172,3 @@ * @property {number} backgroundAlpha=1

backgroundAlpha: 1,
contextAlpha: true,
useContextAlpha: true,
clearBeforeRender: true,

@@ -175,0 +175,0 @@ preserveDrawingBuffer: false,

/*!
* @pixi/settings - v6.0.0-rc
* Compiled Tue, 29 Dec 2020 19:58:03 UTC
* @pixi/settings - v6.0.0-rc.2
* Compiled Thu, 14 Jan 2021 00:40:28 UTC
*

@@ -8,3 +8,3 @@ * @pixi/settings is licensed under the MIT License.

*/
import e from"ismobilejs";var E=e(self.navigator);var a={MIPMAP_TEXTURES:1,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,SPRITE_MAX_TEXTURES:function(e){var a=!0;if(E.tablet||E.phone){var r;E.apple.device&&(r=navigator.userAgent.match(/OS (\d+)_(\d+)?/))&&parseInt(r[1],10)<11&&(a=!1),E.android.device&&(r=navigator.userAgent.match(/Android\s([0-9.]*)/))&&parseInt(r[1],10)<7&&(a=!1)}return a?e:4}(32),SPRITE_BATCH_SIZE:4096,RENDER_OPTIONS:{view:null,antialias:!1,autoDensity:!1,backgroundColor:0,backgroundAlpha:1,contextAlpha:!0,clearBeforeRender:!0,preserveDrawingBuffer:!1,width:800,height:600,legacy:!1},GC_MODE:0,GC_MAX_IDLE:3600,GC_MAX_CHECK_COUNT:600,WRAP_MODE:33071,SCALE_MODE:1,PRECISION_VERTEX:"highp",PRECISION_FRAGMENT:E.apple.device?"highp":"mediump",CAN_UPLOAD_SAME_BUFFER:!E.apple.device,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};export{E as isMobile,a as settings};
import e from"ismobilejs";var E=e(self.navigator);var a={MIPMAP_TEXTURES:1,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,SPRITE_MAX_TEXTURES:function(e){var a=!0;if(E.tablet||E.phone){var r;E.apple.device&&(r=navigator.userAgent.match(/OS (\d+)_(\d+)?/))&&parseInt(r[1],10)<11&&(a=!1),E.android.device&&(r=navigator.userAgent.match(/Android\s([0-9.]*)/))&&parseInt(r[1],10)<7&&(a=!1)}return a?e:4}(32),SPRITE_BATCH_SIZE:4096,RENDER_OPTIONS:{view:null,antialias:!1,autoDensity:!1,backgroundColor:0,backgroundAlpha:1,useContextAlpha:!0,clearBeforeRender:!0,preserveDrawingBuffer:!1,width:800,height:600,legacy:!1},GC_MODE:0,GC_MAX_IDLE:3600,GC_MAX_CHECK_COUNT:600,WRAP_MODE:33071,SCALE_MODE:1,PRECISION_VERTEX:"highp",PRECISION_FRAGMENT:E.apple.device?"highp":"mediump",CAN_UPLOAD_SAME_BUFFER:!E.apple.device,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};export{E as isMobile,a as settings};
//# sourceMappingURL=settings.min.js.map

@@ -9,3 +9,3 @@ import type { isMobileResult } from 'ismobilejs';

backgroundAlpha: number;
contextAlpha: boolean | 'notMultiplied';
useContextAlpha: boolean | 'notMultiplied';
clearBeforeRender: boolean;

@@ -12,0 +12,0 @@ preserveDrawingBuffer: boolean;

{
"name": "@pixi/settings",
"version": "6.0.0-rc",
"version": "6.0.0-rc.2",
"main": "dist/cjs/settings.js",

@@ -30,3 +30,3 @@ "module": "dist/esm/settings.js",

},
"gitHead": "15513755f4d9f2112df5cc261b44f2dc1f05e00c"
"gitHead": "48e4870fd31b2ea731120fa12bcabb4155fd3b08"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc