Initial
This commit is contained in:
47
resources/app/node_modules/@pixi/settings/lib/settings.js
generated
vendored
Normal file
47
resources/app/node_modules/@pixi/settings/lib/settings.js
generated
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
"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,
|
||||
/**
|
||||
* 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
|
||||
Reference in New Issue
Block a user