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 5.4.0-rc.3 to 6.0.0-rc

10

dist/browser/settings.js
/*!
* @pixi/settings - v5.4.0-rc.3
* Compiled Thu, 10 Dec 2020 03:22:17 UTC
* @pixi/settings - v6.0.0-rc
* Compiled Tue, 29 Dec 2020 19:58:03 UTC
*

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

* @property {boolean} autoDensity=false
* @property {boolean} transparent=false
* @property {boolean} contextAlpha=true
* @property {number} backgroundColor=0x000000
* @property {number} backgroundAlpha=1
* @property {boolean} clearBeforeRender=true

@@ -296,4 +297,5 @@ * @property {boolean} preserveDrawingBuffer=false

autoDensity: false,
transparent: false,
backgroundColor: 0x000000,
backgroundAlpha: 1,
contextAlpha: true,
clearBeforeRender: true,

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

6

dist/browser/settings.min.js
/*!
* @pixi/settings - v5.4.0-rc.3
* Compiled Thu, 10 Dec 2020 03:22:17 UTC
* @pixi/settings - v6.0.0-rc
* Compiled Tue, 29 Dec 2020 19:58:03 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,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,E=function(e){return void 0!==e&&"MacIntel"===e.platform&&"number"==typeof e.maxTouchPoints&&e.maxTouchPoints>1&&"undefined"==typeof MSStream};var A=function(e){var A={userAgent:"",platform:"",maxTouchPoints:0};e||"undefined"==typeof navigator?"string"==typeof e?A.userAgent=e:e&&e.userAgent&&(A={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0}):A={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};var _=A.userAgent,g=_.split("[FBAN");void 0!==g[1]&&(_=g[0]),void 0!==(g=_.split("Twitter"))[1]&&(_=g[0]);var I=function(e){return function(i){return i.test(e)}}(_),f={apple:{phone:I(i)&&!I(p),ipod:I(t),tablet:!I(i)&&(I(n)||E(A))&&!I(p),universal:I(a),device:(I(i)||I(t)||I(n)||I(a)||E(A))&&!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 _={MIPMAP_TEXTURES:1,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,SPRITE_MAX_TEXTURES:function(e){var i=!0;if(A.tablet||A.phone){var t;A.apple.device&&(t=navigator.userAgent.match(/OS (\d+)_(\d+)?/))&&parseInt(t[1],10)<11&&(i=!1),A.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,transparent:!1,backgroundColor: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:A.apple.device?"highp":"mediump",CAN_UPLOAD_SAME_BUFFER:!A.apple.device,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};return e.isMobile=A,e.settings=_,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,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);
//# sourceMappingURL=settings.min.js.map
/*!
* @pixi/settings - v5.4.0-rc.3
* Compiled Thu, 10 Dec 2020 03:22:17 UTC
* @pixi/settings - v6.0.0-rc
* Compiled Tue, 29 Dec 2020 19:58:03 UTC
*

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

* @property {boolean} autoDensity=false
* @property {boolean} transparent=false
* @property {boolean} contextAlpha=true
* @property {number} backgroundColor=0x000000
* @property {number} backgroundAlpha=1
* @property {boolean} clearBeforeRender=true

@@ -175,4 +176,5 @@ * @property {boolean} preserveDrawingBuffer=false

autoDensity: false,
transparent: false,
backgroundColor: 0x000000,
backgroundAlpha: 1,
contextAlpha: true,
clearBeforeRender: true,

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

/*!
* @pixi/settings - v5.4.0-rc.3
* Compiled Thu, 10 Dec 2020 03:22:17 UTC
* @pixi/settings - v6.0.0-rc
* Compiled Tue, 29 Dec 2020 19:58:03 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,transparent:!1,backgroundColor: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,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;
//# sourceMappingURL=settings.min.js.map
/*!
* @pixi/settings - v5.4.0-rc.3
* Compiled Thu, 10 Dec 2020 03:22:17 UTC
* @pixi/settings - v6.0.0-rc
* Compiled Tue, 29 Dec 2020 19:58:03 UTC
*

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

* @property {boolean} autoDensity=false
* @property {boolean} transparent=false
* @property {boolean} contextAlpha=true
* @property {number} backgroundColor=0x000000
* @property {number} backgroundAlpha=1
* @property {boolean} clearBeforeRender=true

@@ -169,4 +170,5 @@ * @property {boolean} preserveDrawingBuffer=false

autoDensity: false,
transparent: false,
backgroundColor: 0x000000,
backgroundAlpha: 1,
contextAlpha: true,
clearBeforeRender: true,

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

/*!
* @pixi/settings - v5.4.0-rc.3
* Compiled Thu, 10 Dec 2020 03:22:17 UTC
* @pixi/settings - v6.0.0-rc
* Compiled Tue, 29 Dec 2020 19:58:03 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,transparent:!1,backgroundColor: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,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};
//# sourceMappingURL=settings.min.js.map

@@ -7,4 +7,5 @@ import type { isMobileResult } from 'ismobilejs';

autoDensity: boolean;
transparent: boolean;
backgroundColor: number;
backgroundAlpha: number;
contextAlpha: boolean | 'notMultiplied';
clearBeforeRender: boolean;

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

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

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

},
"gitHead": "0c48db94f0521d85cc226fc4b15f69c30d53c765"
"gitHead": "15513755f4d9f2112df5cc261b44f2dc1f05e00c"
}

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