@pixi/settings
Advanced tools
Comparing version 7.2.4 to 7.3.0-rc
@@ -1,11 +0,12 @@ | ||
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
"use strict"; | ||
const BrowserAdapter = { | ||
/** | ||
* Creates a canvas element of the given size. | ||
* This canvas is created using the browser's native canvas element. | ||
* @param width - width of the canvas | ||
* @param height - height of the canvas | ||
*/ | ||
createCanvas: (width, height) => { | ||
const canvas = document.createElement("canvas"); | ||
canvas.width = width; | ||
canvas.height = height; | ||
return canvas; | ||
return canvas.width = width, canvas.height = height, canvas; | ||
}, | ||
@@ -18,9 +19,5 @@ getCanvasRenderingContext2D: () => CanvasRenderingContext2D, | ||
fetch: (url, options) => fetch(url, options), | ||
parseXML: (xml) => { | ||
const parser = new DOMParser(); | ||
return parser.parseFromString(xml, "text/xml"); | ||
} | ||
parseXML: (xml) => new DOMParser().parseFromString(xml, "text/xml") | ||
}; | ||
exports.BrowserAdapter = BrowserAdapter; | ||
//# sourceMappingURL=adapter.js.map |
@@ -1,3 +0,2 @@ | ||
'use strict'; | ||
"use strict"; | ||
//# sourceMappingURL=ICanvas.js.map |
@@ -1,3 +0,2 @@ | ||
'use strict'; | ||
"use strict"; | ||
//# sourceMappingURL=ICanvasRenderingContext2D.js.map |
@@ -1,13 +0,6 @@ | ||
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
var adapter = require('./adapter.js'); | ||
require('./ICanvas.js'); | ||
require('./ICanvasRenderingContext2D.js'); | ||
var settings = require('./settings.js'); | ||
var isMobile = require('./utils/isMobile.js'); | ||
"use strict"; | ||
var adapter = require("./adapter.js"); | ||
require("./ICanvas.js"); | ||
require("./ICanvasRenderingContext2D.js"); | ||
var settings = require("./settings.js"), isMobile = require("./utils/isMobile.js"); | ||
exports.BrowserAdapter = adapter.BrowserAdapter; | ||
@@ -14,0 +7,0 @@ exports.settings = settings.settings; |
@@ -1,15 +0,47 @@ | ||
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
var adapter = require('./adapter.js'); | ||
"use strict"; | ||
var adapter = require("./adapter.js"); | ||
const settings = { | ||
/** | ||
* This adapter is used to call methods that are platform dependent. | ||
* For example `document.createElement` only runs on the web but fails in node environments. | ||
* This allows us to support more platforms by abstracting away specific implementations per platform. | ||
* | ||
* By default the adapter is set to work in the browser. However you can create your own | ||
* by implementing the `IAdapter` interface. See `IAdapter` for more information. | ||
* @name ADAPTER | ||
* @memberof PIXI.settings | ||
* @type {PIXI.IAdapter} | ||
* @default PIXI.BrowserAdapter | ||
*/ | ||
ADAPTER: adapter.BrowserAdapter, | ||
/** | ||
* Default resolution / device pixel ratio of the renderer. | ||
* @static | ||
* @name RESOLUTION | ||
* @memberof PIXI.settings | ||
* @type {number} | ||
* @default 1 | ||
*/ | ||
RESOLUTION: 1, | ||
CREATE_IMAGE_BITMAP: false, | ||
ROUND_PIXELS: false | ||
/** | ||
* Enables bitmap creation before image load. This feature is experimental. | ||
* @static | ||
* @name CREATE_IMAGE_BITMAP | ||
* @memberof PIXI.settings | ||
* @type {boolean} | ||
* @default false | ||
*/ | ||
CREATE_IMAGE_BITMAP: !1, | ||
/** | ||
* If true PixiJS will Math.floor() x/y values when rendering, stopping pixel interpolation. | ||
* Advantages can include sharper image quality (like text) and faster rendering on canvas. | ||
* The main disadvantage is movement of objects may appear less smooth. | ||
* @static | ||
* @memberof PIXI.settings | ||
* @type {boolean} | ||
* @default false | ||
*/ | ||
ROUND_PIXELS: !1 | ||
}; | ||
exports.settings = settings; | ||
//# sourceMappingURL=settings.js.map |
@@ -1,15 +0,5 @@ | ||
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
var isMobileJs = require('ismobilejs'); | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var isMobileJs__default = /*#__PURE__*/_interopDefaultLegacy(isMobileJs); | ||
const isMobileCall = isMobileJs__default["default"].default ?? isMobileJs__default["default"]; | ||
const isMobile = isMobileCall(globalThis.navigator); | ||
"use strict"; | ||
var isMobileJs = require("ismobilejs"); | ||
const isMobileCall = isMobileJs.default ?? isMobileJs, isMobile = isMobileCall(globalThis.navigator); | ||
exports.isMobile = isMobile; | ||
//# sourceMappingURL=isMobile.js.map |
{ | ||
"name": "@pixi/settings", | ||
"version": "7.2.4", | ||
"version": "7.3.0-rc", | ||
"main": "lib/index.js", | ||
@@ -39,3 +39,3 @@ "module": "lib/index.mjs", | ||
"dependencies": { | ||
"@pixi/constants": "7.2.4", | ||
"@pixi/constants": "7.3.0-rc", | ||
"@types/css-font-loading-module": "^0.0.7", | ||
@@ -42,0 +42,0 @@ "ismobilejs": "^1.1.0" |
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
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34432
434
1
+ Added@pixi/constants@7.3.0-rc(transitive)
- Removed@pixi/constants@7.2.4(transitive)
Updated@pixi/constants@7.3.0-rc