@pixi/settings
Advanced tools
Comparing version 7.0.0-beta.2 to 7.0.0-beta.3
/*! | ||
* @pixi/settings - v7.0.0-beta.2 | ||
* Compiled Tue, 11 Oct 2022 20:10:42 UTC | ||
* @pixi/settings - v7.0.0-beta.3 | ||
* Compiled Thu, 13 Oct 2022 15:35:43 UTC | ||
* | ||
@@ -204,3 +204,4 @@ * @pixi/settings is licensed under the MIT License. | ||
height: 600, | ||
legacy: false | ||
legacy: false, | ||
hello: false | ||
}, | ||
@@ -207,0 +208,0 @@ GC_MODE: constants.GC_MODES.AUTO, |
"use strict";/*! | ||
* @pixi/settings - v7.0.0-beta.2 | ||
* Compiled Tue, 11 Oct 2022 20:10:42 UTC | ||
* @pixi/settings - v7.0.0-beta.3 | ||
* Compiled Thu, 13 Oct 2022 15:35:43 UTC | ||
* | ||
* @pixi/settings is licensed under the MIT License. | ||
* http://www.opensource.org/licenses/mit-license | ||
*/Object.defineProperty(exports,"__esModule",{value:!0});var r=require("@pixi/constants");const h={createCanvas:(t,n)=>{const o=document.createElement("canvas");return o.width=t,o.height=n,o},getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(t,n)=>fetch(t,n)};var p=/iPhone/i,v=/iPod/i,f=/iPad/i,A=/\biOS-universal(?:.+)Mac\b/i,u=/\bAndroid(?:.+)Mobile\b/i,b=/Android/i,l=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,c=/Silk/i,i=/Windows Phone/i,E=/\bWindows(?:.+)ARM\b/i,I=/BlackBerry/i,M=/BB10/i,P=/Opera Mini/i,T=/\b(CriOS|Chrome)(?:.+)Mobile/i,S=/Mobile(?:.+)Firefox\b/i,g=function(t){return typeof t<"u"&&t.platform==="MacIntel"&&typeof t.maxTouchPoints=="number"&&t.maxTouchPoints>1&&typeof MSStream>"u"};function O(t){return function(n){return n.test(t)}}function _(t){var n={userAgent:"",platform:"",maxTouchPoints:0};!t&&typeof navigator<"u"?n={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof t=="string"?n.userAgent=t:t&&t.userAgent&&(n={userAgent:t.userAgent,platform:t.platform,maxTouchPoints:t.maxTouchPoints||0});var o=n.userAgent,d=o.split("[FBAN");typeof d[1]<"u"&&(o=d[0]),d=o.split("Twitter"),typeof d[1]<"u"&&(o=d[0]);var e=O(o),a={apple:{phone:e(p)&&!e(i),ipod:e(v),tablet:!e(p)&&(e(f)||g(n))&&!e(i),universal:e(A),device:(e(p)||e(v)||e(f)||e(A)||g(n))&&!e(i)},amazon:{phone:e(l),tablet:!e(l)&&e(c),device:e(l)||e(c)},android:{phone:!e(i)&&e(l)||!e(i)&&e(u),tablet:!e(i)&&!e(l)&&!e(u)&&(e(c)||e(b)),device:!e(i)&&(e(l)||e(c)||e(u)||e(b))||e(/\bokhttp\b/i)},windows:{phone:e(i),tablet:e(E),device:e(i)||e(E)},other:{blackberry:e(I),blackberry10:e(M),opera:e(P),firefox:e(S),chrome:e(T),device:e(I)||e(M)||e(P)||e(S)||e(T)},any:!1,phone:!1,tablet:!1};return a.any=a.apple.device||a.android.device||a.windows.device||a.other.device,a.phone=a.apple.phone||a.android.phone||a.windows.phone,a.tablet=a.apple.tablet||a.android.tablet||a.windows.tablet,a}const s=_(globalThis.navigator);function R(){return!s.apple.device}function C(t){let n=!0;if(s.tablet||s.phone){if(s.apple.device){const o=navigator.userAgent.match(/OS (\d+)_(\d+)?/);o&&parseInt(o[1],10)<11&&(n=!1)}if(s.android.device){const o=navigator.userAgent.match(/Android\s([0-9.]*)/);o&&parseInt(o[1],10)<7&&(n=!1)}}return n?t:4}const m={ADAPTER:h,MIPMAP_TEXTURES:r.MIPMAP_MODES.POW2,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,FILTER_MULTISAMPLE:r.MSAA_QUALITY.NONE,SPRITE_MAX_TEXTURES:C(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:r.GC_MODES.AUTO,GC_MAX_IDLE:60*60,GC_MAX_CHECK_COUNT:60*10,WRAP_MODE:r.WRAP_MODES.CLAMP,SCALE_MODE:r.SCALE_MODES.LINEAR,PRECISION_VERTEX:r.PRECISION.HIGH,PRECISION_FRAGMENT:s.apple.device?r.PRECISION.HIGH:r.PRECISION.MEDIUM,CAN_UPLOAD_SAME_BUFFER:R(),CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};exports.BrowserAdapter=h,exports.isMobile=s,exports.settings=m; | ||
*/Object.defineProperty(exports,"__esModule",{value:!0});var r=require("@pixi/constants");const h={createCanvas:(t,n)=>{const o=document.createElement("canvas");return o.width=t,o.height=n,o},getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(t,n)=>fetch(t,n)};var p=/iPhone/i,v=/iPod/i,f=/iPad/i,A=/\biOS-universal(?:.+)Mac\b/i,u=/\bAndroid(?:.+)Mobile\b/i,b=/Android/i,s=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,c=/Silk/i,i=/Windows Phone/i,E=/\bWindows(?:.+)ARM\b/i,I=/BlackBerry/i,M=/BB10/i,P=/Opera Mini/i,T=/\b(CriOS|Chrome)(?:.+)Mobile/i,S=/Mobile(?:.+)Firefox\b/i,g=function(t){return typeof t<"u"&&t.platform==="MacIntel"&&typeof t.maxTouchPoints=="number"&&t.maxTouchPoints>1&&typeof MSStream>"u"};function O(t){return function(n){return n.test(t)}}function _(t){var n={userAgent:"",platform:"",maxTouchPoints:0};!t&&typeof navigator<"u"?n={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof t=="string"?n.userAgent=t:t&&t.userAgent&&(n={userAgent:t.userAgent,platform:t.platform,maxTouchPoints:t.maxTouchPoints||0});var o=n.userAgent,d=o.split("[FBAN");typeof d[1]<"u"&&(o=d[0]),d=o.split("Twitter"),typeof d[1]<"u"&&(o=d[0]);var e=O(o),a={apple:{phone:e(p)&&!e(i),ipod:e(v),tablet:!e(p)&&(e(f)||g(n))&&!e(i),universal:e(A),device:(e(p)||e(v)||e(f)||e(A)||g(n))&&!e(i)},amazon:{phone:e(s),tablet:!e(s)&&e(c),device:e(s)||e(c)},android:{phone:!e(i)&&e(s)||!e(i)&&e(u),tablet:!e(i)&&!e(s)&&!e(u)&&(e(c)||e(b)),device:!e(i)&&(e(s)||e(c)||e(u)||e(b))||e(/\bokhttp\b/i)},windows:{phone:e(i),tablet:e(E),device:e(i)||e(E)},other:{blackberry:e(I),blackberry10:e(M),opera:e(P),firefox:e(S),chrome:e(T),device:e(I)||e(M)||e(P)||e(S)||e(T)},any:!1,phone:!1,tablet:!1};return a.any=a.apple.device||a.android.device||a.windows.device||a.other.device,a.phone=a.apple.phone||a.android.phone||a.windows.phone,a.tablet=a.apple.tablet||a.android.tablet||a.windows.tablet,a}const l=_(globalThis.navigator);function R(){return!l.apple.device}function C(t){let n=!0;if(l.tablet||l.phone){if(l.apple.device){const o=navigator.userAgent.match(/OS (\d+)_(\d+)?/);o&&parseInt(o[1],10)<11&&(n=!1)}if(l.android.device){const o=navigator.userAgent.match(/Android\s([0-9.]*)/);o&&parseInt(o[1],10)<7&&(n=!1)}}return n?t:4}const m={ADAPTER:h,MIPMAP_TEXTURES:r.MIPMAP_MODES.POW2,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,FILTER_MULTISAMPLE:r.MSAA_QUALITY.NONE,SPRITE_MAX_TEXTURES:C(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,hello:!1},GC_MODE:r.GC_MODES.AUTO,GC_MAX_IDLE:60*60,GC_MAX_CHECK_COUNT:60*10,WRAP_MODE:r.WRAP_MODES.CLAMP,SCALE_MODE:r.SCALE_MODES.LINEAR,PRECISION_VERTEX:r.PRECISION.HIGH,PRECISION_FRAGMENT:l.apple.device?r.PRECISION.HIGH:r.PRECISION.MEDIUM,CAN_UPLOAD_SAME_BUFFER:R(),CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};exports.BrowserAdapter=h,exports.isMobile=l,exports.settings=m; | ||
//# sourceMappingURL=settings.min.js.map |
@@ -104,3 +104,3 @@ /// <reference path="./global.d.ts" /> | ||
/** Parent node of the canvas. */ | ||
readonly parentNode?: ICanvasParentNode; | ||
readonly parentNode?: ICanvasParentNode | null; | ||
/** Style of the canvas. */ | ||
@@ -154,3 +154,4 @@ readonly style?: ICanvasStyle; | ||
autoDensity: boolean; | ||
backgroundColor: number; | ||
backgroundColor: number | string; | ||
background?: number | string; | ||
backgroundAlpha: number; | ||
@@ -163,2 +164,3 @@ useContextAlpha: boolean | 'notMultiplied'; | ||
legacy: boolean; | ||
hello: boolean; | ||
} | ||
@@ -165,0 +167,0 @@ |
{ | ||
"name": "@pixi/settings", | ||
"version": "7.0.0-beta.2", | ||
"version": "7.0.0-beta.3", | ||
"main": "dist/cjs/settings.js", | ||
@@ -39,3 +39,4 @@ "module": "dist/esm/settings.mjs", | ||
"dependencies": { | ||
"@pixi/constants": "7.0.0-beta.2" | ||
"@pixi/constants": "7.0.0-beta.3", | ||
"@types/css-font-loading-module": "^0.0.7" | ||
}, | ||
@@ -45,3 +46,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "b82316094043a2a45a0c305068e5ebe8321f668a" | ||
"gitHead": "8055ae1c16d4c0f8dabda86cafd8e68c356450e8" | ||
} |
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
134909
706
2
+ Added@pixi/constants@7.0.0-beta.3(transitive)
+ Added@types/css-font-loading-module@0.0.7(transitive)
- Removed@pixi/constants@7.0.0-beta.2(transitive)
Updated@pixi/constants@7.0.0-beta.3