@pixi/core
Advanced tools
Comparing version 7.1.0 to 7.1.1
@@ -75,2 +75,8 @@ declare namespace GlobalMixins | ||
PRECISION_FRAGMENT: import('@pixi/constants').PRECISION, | ||
/** @deprecated */ | ||
GC_MODE: import('@pixi/constants').GC_MODES, | ||
/** @deprecated */ | ||
GC_MAX_IDLE: number, | ||
/** @deprecated */ | ||
GC_MAX_CHECK_COUNT: number, | ||
@@ -77,0 +83,0 @@ STRICT_TEXTURE_CACHE: boolean; |
@@ -1,2 +0,2 @@ | ||
import type { BaseTexture } from '@pixi/core'; | ||
import type { BaseTexture } from '../textures/BaseTexture'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Used by the batcher to build texture batches. |
@@ -116,3 +116,3 @@ 'use strict'; | ||
const VERSION = "7.1.0"; | ||
const VERSION = "7.1.1"; | ||
@@ -119,0 +119,0 @@ exports.utils = utils__namespace; |
import { MASK_TYPES } from '@pixi/constants'; | ||
import type { COLOR_MASK_BITS, MSAA_QUALITY } from '@pixi/constants'; | ||
import type { ISpriteMaskFilter } from '@pixi/core'; | ||
import type { Matrix, Rectangle } from '@pixi/math'; | ||
import type { IFilterTarget } from '../filters/IFilterTarget'; | ||
import type { ISpriteMaskFilter } from '../filters/spriteMask/SpriteMaskFilter'; | ||
import type { Renderer } from '../Renderer'; | ||
@@ -47,3 +47,3 @@ export interface IMaskTarget extends IFilterTarget { | ||
* If set to `null`, the sample count of the current render target is used. | ||
* @default PIXI.settings.FILTER_MULTISAMPLE | ||
* @default PIXI.Filter.defaultMultisample | ||
*/ | ||
@@ -50,0 +50,0 @@ multisample: MSAA_QUALITY; |
@@ -6,3 +6,3 @@ 'use strict'; | ||
var constants = require('@pixi/constants'); | ||
var settings = require('@pixi/settings'); | ||
var Filter = require('../filters/Filter.js'); | ||
@@ -17,3 +17,3 @@ class MaskData { | ||
this.resolution = null; | ||
this.multisample = settings.settings.FILTER_MULTISAMPLE; | ||
this.multisample = Filter.Filter.defaultMultisample; | ||
this.enabled = true; | ||
@@ -20,0 +20,0 @@ this.colorMask = 15; |
@@ -51,3 +51,3 @@ import { Framebuffer } from '../framebuffer/Framebuffer'; | ||
* @param {number} [options.height=100] - The height of the base render texture. | ||
* @param {PIXI.SCALE_MODES} [options.scaleMode=PIXI.settings.SCALE_MODE] - See {@link PIXI.SCALE_MODES} | ||
* @param {PIXI.SCALE_MODES} [options.scaleMode=PIXI.BaseTexture.defaultOptions.scaleMode] - See {@link PIXI.SCALE_MODES} | ||
* for possible values. | ||
@@ -54,0 +54,0 @@ * @param {number} [options.resolution=PIXI.settings.RESOLUTION] - The resolution / device pixel ratio |
@@ -8,3 +8,3 @@ import { RenderTexture } from './RenderTexture'; | ||
export interface IGenerateTextureOptions { | ||
/** The scale mode of the texture. Optional, defaults to `PIXI.settings.SCALE_MODE`. */ | ||
/** The scale mode of the texture. Optional, defaults to `PIXI.BaseTexture.defaultOptions.scaleMode`. */ | ||
scaleMode?: SCALE_MODES; | ||
@@ -11,0 +11,0 @@ /** The resolution / device pixel ratio of the texture being generated. Optional defaults to Renderer resolution. */ |
@@ -89,3 +89,3 @@ import { Texture } from '../textures/Texture'; | ||
* @param {number} [options.height=100] - The height of the render texture | ||
* @param {PIXI.SCALE_MODES} [options.scaleMode=PIXI.settings.SCALE_MODE] - See {@link PIXI.SCALE_MODES} | ||
* @param {PIXI.SCALE_MODES} [options.scaleMode=PIXI.BaseTexture.defaultOptions.scaleMode] - See {@link PIXI.SCALE_MODES} | ||
* for possible values | ||
@@ -92,0 +92,0 @@ * @param {number} [options.resolution=PIXI.settings.RESOLUTION] - The resolution / device pixel ratio of the texture |
@@ -21,3 +21,3 @@ 'use strict'; | ||
set(value) { | ||
utils.deprecation("7.1.0", "settings.WRAP_MODE is deprecated, use BaseTeture.defaultOptions.wrapMode"); | ||
utils.deprecation("7.1.0", "settings.WRAP_MODE is deprecated, use BaseTexture.defaultOptions.wrapMode"); | ||
BaseTexture.BaseTexture.defaultOptions.wrapMode = value; | ||
@@ -31,3 +31,3 @@ } | ||
set(value) { | ||
utils.deprecation("7.1.0", "settings.SCALE_MODE is deprecated, use BaseTeture.defaultOptions.scaleMode"); | ||
utils.deprecation("7.1.0", "settings.SCALE_MODE is deprecated, use BaseTexture.defaultOptions.scaleMode"); | ||
BaseTexture.BaseTexture.defaultOptions.scaleMode = value; | ||
@@ -41,3 +41,3 @@ } | ||
set(value) { | ||
utils.deprecation("7.1.0", "settings.MIPMAP_TEXTURES is deprecated, use BaseTeture.defaultOptions.mipmap"); | ||
utils.deprecation("7.1.0", "settings.MIPMAP_TEXTURES is deprecated, use BaseTexture.defaultOptions.mipmap"); | ||
BaseTexture.BaseTexture.defaultOptions.mipmap = value; | ||
@@ -51,3 +51,3 @@ } | ||
set(value) { | ||
utils.deprecation("7.1.0", "settings.ANISOTROPIC_LEVEL is deprecated, use BaseTeture.defaultOptions.anisotropicLevel"); | ||
utils.deprecation("7.1.0", "settings.ANISOTROPIC_LEVEL is deprecated, use BaseTexture.defaultOptions.anisotropicLevel"); | ||
BaseTexture.BaseTexture.defaultOptions.anisotropicLevel = value; | ||
@@ -54,0 +54,0 @@ } |
@@ -15,3 +15,3 @@ 'use strict'; | ||
if (options.hello) { | ||
console.log(`PixiJS ${"7.1.0"} - ${renderer.rendererLogId} - https://pixijs.com`); | ||
console.log(`PixiJS ${"7.1.1"} - ${renderer.rendererLogId} - https://pixijs.com`); | ||
} | ||
@@ -18,0 +18,0 @@ renderer.resize(this.renderer.screen.width, this.renderer.screen.height); |
@@ -11,13 +11,14 @@ 'use strict'; | ||
constructor(source, options) { | ||
var __super = (...args) => { | ||
super(...args); | ||
}; | ||
options = options || {}; | ||
let baseSource; | ||
let url; | ||
if (typeof source === "string") { | ||
__super(ImageBitmapResource.EMPTY); | ||
this.url = source; | ||
baseSource = ImageBitmapResource.EMPTY; | ||
url = source; | ||
} else { | ||
__super(source); | ||
this.url = null; | ||
baseSource = source; | ||
url = null; | ||
} | ||
super(baseSource); | ||
this.url = url; | ||
this.crossOrigin = options.crossOrigin ?? true; | ||
@@ -24,0 +25,0 @@ this.alphaMode = typeof options.alphaMode === "number" ? options.alphaMode : null; |
@@ -170,3 +170,3 @@ 'use strict'; | ||
const baseTexture = new BaseTexture.BaseTexture(source, Object.assign({ | ||
scaleMode: settings.settings.SCALE_MODE, | ||
scaleMode: BaseTexture.BaseTexture.defaultOptions.scaleMode, | ||
resolution: utils.getResolutionOfUrl(imageUrl) | ||
@@ -173,0 +173,0 @@ }, options)); |
@@ -18,18 +18,21 @@ import { GC_MODES } from '@pixi/constants'; | ||
/** | ||
* Default Garbage Collection mode. | ||
* Default garbage collection mode. | ||
* @static | ||
* @type {PIXI.GC_MODES} | ||
* @default PIXI.GC_MODES.AUTO | ||
* @see PIXI.TextureGCSystem#mode | ||
*/ | ||
static defaultMode: GC_MODES; | ||
/** | ||
* Default Garbage Collection max idle. | ||
* Default maximum idle frames before a texture is destroyed by garbage collection. | ||
* @static | ||
* @default 3600 | ||
* @see PIXI.TextureGCSystem#maxIdle | ||
*/ | ||
static defaultMaxIdle: number; | ||
/** | ||
* Default Garbage Collection maximum check count. | ||
* Default frames between two garbage collections. | ||
* @static | ||
* @default 600 | ||
* @see PIXI.TextureGCSystem#checkCountMax | ||
*/ | ||
@@ -40,3 +43,3 @@ static defaultCheckCountMax: number; | ||
/** | ||
* Count | ||
* Frame count since started. | ||
* @readonly | ||
@@ -46,3 +49,3 @@ */ | ||
/** | ||
* Check count | ||
* Frame count since last garbage collection. | ||
* @readonly | ||
@@ -52,3 +55,3 @@ */ | ||
/** | ||
* Maximum idle time, in seconds | ||
* Maximum idle frames before a texture is destroyed by garbage collection. | ||
* @see PIXI.TextureGCSystem.defaultMaxIdle | ||
@@ -58,3 +61,3 @@ */ | ||
/** | ||
* Maximum number of item to check | ||
* Frames between two garbage collections. | ||
* @see PIXI.TextureGCSystem.defaultCheckCountMax | ||
@@ -64,3 +67,3 @@ */ | ||
/** | ||
* Current garbage collection mode | ||
* Current garbage collection mode. | ||
* @see PIXI.TextureGCSystem.defaultMode | ||
@@ -73,13 +76,13 @@ */ | ||
/** | ||
* Checks to see when the last time a texture was used | ||
* if the texture has not been used for a specified amount of time it will be removed from the GPU | ||
* Checks to see when the last time a texture was used. | ||
* If the texture has not been used for a specified amount of time, it will be removed from the GPU. | ||
*/ | ||
protected postrender(): void; | ||
/** | ||
* Checks to see when the last time a texture was used | ||
* if the texture has not been used for a specified amount of time it will be removed from the GPU | ||
* Checks to see when the last time a texture was used. | ||
* If the texture has not been used for a specified amount of time, it will be removed from the GPU. | ||
*/ | ||
run(): void; | ||
/** | ||
* Removes all the textures within the specified displayObject and its children from the GPU | ||
* Removes all the textures within the specified displayObject and its children from the GPU. | ||
* @param {PIXI.DisplayObject} displayObject - the displayObject to remove the textures from. | ||
@@ -86,0 +89,0 @@ */ |
import { Runner } from '@pixi/runner'; | ||
import type { Buffer } from '@pixi/core'; | ||
import type { Buffer } from '../geometry/Buffer'; | ||
/** | ||
@@ -4,0 +4,0 @@ * A TransformFeedback object wrapping GLTransformFeedback object. |
import type { DRAW_MODES } from '@pixi/constants'; | ||
import type { IRenderingContext, ISystem, Renderer, Shader } from '@pixi/core'; | ||
import type { ExtensionMetadata } from '@pixi/extensions'; | ||
import type { IRenderingContext } from '../IRenderer'; | ||
import type { Renderer } from '../Renderer'; | ||
import type { Shader } from '../shader/Shader'; | ||
import type { ISystem } from '../system/ISystem'; | ||
import type { TransformFeedback } from './TransformFeedback'; | ||
@@ -5,0 +8,0 @@ /** |
{ | ||
"name": "@pixi/core", | ||
"version": "7.1.0", | ||
"version": "7.1.1", | ||
"main": "lib/index.js", | ||
@@ -43,12 +43,12 @@ "module": "lib/index.mjs", | ||
"dependencies": { | ||
"@pixi/constants": "7.1.0", | ||
"@pixi/extensions": "7.1.0", | ||
"@pixi/math": "7.1.0", | ||
"@pixi/runner": "7.1.0", | ||
"@pixi/settings": "7.1.0", | ||
"@pixi/ticker": "7.1.0", | ||
"@pixi/utils": "7.1.0", | ||
"@pixi/constants": "7.1.1", | ||
"@pixi/extensions": "7.1.1", | ||
"@pixi/math": "7.1.1", | ||
"@pixi/runner": "7.1.1", | ||
"@pixi/settings": "7.1.1", | ||
"@pixi/ticker": "7.1.1", | ||
"@pixi/utils": "7.1.1", | ||
"@types/offscreencanvas": "^2019.6.4" | ||
}, | ||
"gitHead": "4079e92895ecb692afe9f0b15d3e48ee40852ada" | ||
"gitHead": "99b26d1d5a18760019b034c69c5979ca5e6c536b" | ||
} |
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
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
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
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
2496579
22434
+ Added@pixi/constants@7.1.1(transitive)
+ Added@pixi/extensions@7.1.1(transitive)
+ Added@pixi/math@7.1.1(transitive)
+ Added@pixi/runner@7.1.1(transitive)
+ Added@pixi/settings@7.1.1(transitive)
+ Added@pixi/ticker@7.1.1(transitive)
+ Added@pixi/utils@7.1.1(transitive)
- Removed@pixi/constants@7.1.0(transitive)
- Removed@pixi/extensions@7.1.0(transitive)
- Removed@pixi/math@7.1.0(transitive)
- Removed@pixi/runner@7.1.0(transitive)
- Removed@pixi/settings@7.1.0(transitive)
- Removed@pixi/ticker@7.1.0(transitive)
- Removed@pixi/utils@7.1.0(transitive)
Updated@pixi/constants@7.1.1
Updated@pixi/extensions@7.1.1
Updated@pixi/math@7.1.1
Updated@pixi/runner@7.1.1
Updated@pixi/settings@7.1.1
Updated@pixi/ticker@7.1.1
Updated@pixi/utils@7.1.1