@pixi/core
Advanced tools
Comparing version 7.3.3 to 7.4.0
@@ -89,3 +89,4 @@ "use strict"; | ||
atc: gl.getExtension("WEBGL_compressed_texture_atc"), | ||
astc: gl.getExtension("WEBGL_compressed_texture_astc") | ||
astc: gl.getExtension("WEBGL_compressed_texture_astc"), | ||
bptc: gl.getExtension("EXT_texture_compression_bptc") | ||
}; | ||
@@ -92,0 +93,0 @@ this.webGLVersion === 1 ? Object.assign(this.extensions, common, { |
@@ -27,2 +27,8 @@ export interface WEBGL_compressed_texture_pvrtc { | ||
} | ||
interface EXT_texture_compression_bptc { | ||
COMPRESSED_RGBA_BPTC_UNORM_EXT: number; | ||
COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: number; | ||
COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: number; | ||
COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: number; | ||
} | ||
export interface WebGLExtensions { | ||
@@ -47,2 +53,4 @@ drawBuffers?: WEBGL_draw_buffers; | ||
astc?: WEBGL_compressed_texture_astc; | ||
bptc?: EXT_texture_compression_bptc; | ||
} | ||
export {}; |
@@ -28,3 +28,3 @@ "use strict"; | ||
var utils__namespace = /* @__PURE__ */ _interopNamespaceDefault(utils$1); | ||
const VERSION = "7.3.3"; | ||
const VERSION = "7.4.0"; | ||
exports.utils = utils__namespace; | ||
@@ -31,0 +31,0 @@ exports.autoDetectRenderer = autoDetectRenderer.autoDetectRenderer; |
@@ -13,3 +13,3 @@ "use strict"; | ||
const { renderer } = this; | ||
renderer.runners.init.emit(renderer.options), options.hello && console.log(`PixiJS 7.3.3 - ${renderer.rendererLogId} - https://pixijs.com`), renderer.resize(renderer.screen.width, renderer.screen.height); | ||
renderer.runners.init.emit(renderer.options), options.hello && console.log(`PixiJS 7.4.0 - ${renderer.rendererLogId} - https://pixijs.com`), renderer.resize(renderer.screen.width, renderer.screen.height); | ||
} | ||
@@ -16,0 +16,0 @@ destroy() { |
@@ -10,3 +10,12 @@ import { ALPHA_MODES, FORMATS, MIPMAP_MODES, SCALE_MODES, TARGETS, TYPES, WRAP_MODES } from '@pixi/constants'; | ||
import type { BufferType, IBufferResourceOptions } from './resources/BufferResource'; | ||
export type ImageSource = HTMLImageElement | HTMLVideoElement | ImageBitmap | ICanvas; | ||
/** | ||
* Value types for the constructor of {@link PIXI.BaseTexture}, including: | ||
* - `HTMLImageElement` | ||
* - `HTMLVideoElement` | ||
* - `ImageBitmap` | ||
* - {@link PIXI.ICanvas} | ||
* - `VideoFrame` | ||
* @memberof PIXI | ||
*/ | ||
export type ImageSource = HTMLImageElement | HTMLVideoElement | ImageBitmap | ICanvas | VideoFrame; | ||
export interface IBaseTextureOptions<RO = any> { | ||
@@ -175,3 +184,3 @@ alphaMode?: ALPHA_MODES; | ||
/** | ||
* @param {PIXI.Resource|HTMLImageElement|HTMLVideoElement|ImageBitmap|ICanvas|string} [resource=null] - | ||
* @param {PIXI.Resource|PIXI.ImageSource|string} [resource=null] - | ||
* The current resource to use, for things that aren't Resource objects, will be converted | ||
@@ -293,3 +302,3 @@ * into a Resource. | ||
* @static | ||
* @param {HTMLImageElement|HTMLVideoElement|ImageBitmap|PIXI.ICanvas|string|string[]} source - The | ||
* @param {PIXI.ImageSource|string|string[]} source - The | ||
* source to create base texture from. | ||
@@ -296,0 +305,0 @@ * @param options - See {@link PIXI.BaseTexture}'s constructor for options. |
@@ -8,3 +8,3 @@ "use strict"; | ||
/** | ||
* @param {PIXI.Resource|HTMLImageElement|HTMLVideoElement|ImageBitmap|ICanvas|string} [resource=null] - | ||
* @param {PIXI.Resource|PIXI.ImageSource|string} [resource=null] - | ||
* The current resource to use, for things that aren't Resource objects, will be converted | ||
@@ -187,3 +187,3 @@ * into a Resource. | ||
* @static | ||
* @param {HTMLImageElement|HTMLVideoElement|ImageBitmap|PIXI.ICanvas|string|string[]} source - The | ||
* @param {PIXI.ImageSource|string|string[]} source - The | ||
* source to create base texture from. | ||
@@ -190,0 +190,0 @@ * @param options - See {@link PIXI.BaseTexture}'s constructor for options. |
@@ -12,3 +12,3 @@ import { Resource } from './Resource'; | ||
* The source element. | ||
* @member {HTMLImageElement|HTMLVideoElement|ImageBitmap|PIXI.ICanvas} | ||
* @member {PIXI.ImageSourcee} | ||
* @readonly | ||
@@ -25,3 +25,3 @@ */ | ||
/** | ||
* @param {HTMLImageElement|HTMLVideoElement|ImageBitmap|PIXI.ICanvas} source | ||
* @param {PIXI.ImageSourcee} source | ||
*/ | ||
@@ -41,3 +41,3 @@ constructor(source: ImageSource); | ||
* @param glTexture | ||
* @param {HTMLImageElement|HTMLVideoElement|ImageBitmap|PIXI.ICanvas} [source] - (optional) | ||
* @param {PIXI.ImageSourcee} [source] - (optional) | ||
* @returns - true is success | ||
@@ -44,0 +44,0 @@ */ |
@@ -5,6 +5,6 @@ "use strict"; | ||
/** | ||
* @param {HTMLImageElement|HTMLVideoElement|ImageBitmap|PIXI.ICanvas} source | ||
* @param {PIXI.ImageSourcee} source | ||
*/ | ||
constructor(source) { | ||
const sourceAny = source, width = sourceAny.naturalWidth || sourceAny.videoWidth || sourceAny.width, height = sourceAny.naturalHeight || sourceAny.videoHeight || sourceAny.height; | ||
const sourceAny = source, width = sourceAny.naturalWidth || sourceAny.videoWidth || sourceAny.displayWidth || sourceAny.width, height = sourceAny.naturalHeight || sourceAny.videoHeight || sourceAny.displayHeight || sourceAny.height; | ||
super(width, height), this.source = source, this.noSubImage = !1; | ||
@@ -26,3 +26,3 @@ } | ||
* @param glTexture | ||
* @param {HTMLImageElement|HTMLVideoElement|ImageBitmap|PIXI.ICanvas} [source] - (optional) | ||
* @param {PIXI.ImageSourcee} [source] - (optional) | ||
* @returns - true is success | ||
@@ -29,0 +29,0 @@ */ |
"use strict"; | ||
var ArrayResource = require("./ArrayResource.js"), autoDetectResource = require("./autoDetectResource.js"), BufferResource = require("./BufferResource.js"), CanvasResource = require("./CanvasResource.js"), CubeResource = require("./CubeResource.js"), ImageBitmapResource = require("./ImageBitmapResource.js"), ImageResource = require("./ImageResource.js"), SVGResource = require("./SVGResource.js"), VideoResource = require("./VideoResource.js"), BaseImageResource = require("./BaseImageResource.js"), Resource = require("./Resource.js"), AbstractMultiResource = require("./AbstractMultiResource.js"); | ||
var ArrayResource = require("./ArrayResource.js"), autoDetectResource = require("./autoDetectResource.js"), BufferResource = require("./BufferResource.js"), CanvasResource = require("./CanvasResource.js"), CubeResource = require("./CubeResource.js"), ImageBitmapResource = require("./ImageBitmapResource.js"), ImageResource = require("./ImageResource.js"), SVGResource = require("./SVGResource.js"), VideoFrameResource = require("./VideoFrameResource.js"), VideoResource = require("./VideoResource.js"), BaseImageResource = require("./BaseImageResource.js"), Resource = require("./Resource.js"), AbstractMultiResource = require("./AbstractMultiResource.js"); | ||
autoDetectResource.INSTALLED.push( | ||
@@ -8,2 +8,3 @@ ImageBitmapResource.ImageBitmapResource, | ||
VideoResource.VideoResource, | ||
VideoFrameResource.VideoFrameResource, | ||
SVGResource.SVGResource, | ||
@@ -10,0 +11,0 @@ BufferResource.BufferResource, |
@@ -56,3 +56,4 @@ import { BaseImageResource } from './BaseImageResource'; | ||
* @param {number} [options.updateFPS=0] - How many times a second to update the texture from the video. | ||
* Leave at 0 to update at every render. | ||
* If 0, `requestVideoFrameCallback` is used to update the texture. | ||
* If `requestVideoFrameCallback` is not available, the texture is updated every render. | ||
* @param {boolean} [options.crossorigin=true] - Load image using cross origin | ||
@@ -104,3 +105,4 @@ * @param {boolean} [options.loop=false] - Loops the video | ||
/** | ||
* How many times a second to update the texture from the video. Leave at 0 to update at every render. | ||
* How many times a second to update the texture from the video. If 0, `requestVideoFrameCallback` is used to | ||
* update the texture. If `requestVideoFrameCallback` is not available, the texture is updated every render. | ||
* A lower fps can help performance, as updating the texture at 60fps on a 30ps video may not be efficient. | ||
@@ -107,0 +109,0 @@ */ |
@@ -10,3 +10,4 @@ "use strict"; | ||
* @param {number} [options.updateFPS=0] - How many times a second to update the texture from the video. | ||
* Leave at 0 to update at every render. | ||
* If 0, `requestVideoFrameCallback` is used to update the texture. | ||
* If `requestVideoFrameCallback` is not available, the texture is updated every render. | ||
* @param {boolean} [options.crossorigin=true] - Load image using cross origin | ||
@@ -125,3 +126,4 @@ * @param {boolean} [options.loop=false] - Loops the video | ||
/** | ||
* How many times a second to update the texture from the video. Leave at 0 to update at every render. | ||
* How many times a second to update the texture from the video. If 0, `requestVideoFrameCallback` is used to | ||
* update the texture. If `requestVideoFrameCallback` is not available, the texture is updated every render. | ||
* A lower fps can help performance, as updating the texture at 60fps on a 30ps video may not be efficient. | ||
@@ -128,0 +130,0 @@ */ |
{ | ||
"name": "@pixi/core", | ||
"version": "7.3.3", | ||
"version": "7.4.0", | ||
"main": "lib/index.js", | ||
@@ -43,12 +43,11 @@ "module": "lib/index.mjs", | ||
"dependencies": { | ||
"@pixi/color": "7.3.3", | ||
"@pixi/constants": "7.3.3", | ||
"@pixi/extensions": "7.3.3", | ||
"@pixi/math": "7.3.3", | ||
"@pixi/runner": "7.3.3", | ||
"@pixi/settings": "7.3.3", | ||
"@pixi/ticker": "7.3.3", | ||
"@pixi/utils": "7.3.3", | ||
"@types/offscreencanvas": "^2019.6.4" | ||
"@pixi/color": "7.4.0", | ||
"@pixi/constants": "7.4.0", | ||
"@pixi/extensions": "7.4.0", | ||
"@pixi/math": "7.4.0", | ||
"@pixi/runner": "7.4.0", | ||
"@pixi/settings": "7.4.0", | ||
"@pixi/ticker": "7.4.0", | ||
"@pixi/utils": "7.4.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
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
2474109
8
567
22850
+ Added@pixi/color@7.4.0(transitive)
+ Added@pixi/constants@7.4.0(transitive)
+ Added@pixi/extensions@7.4.0(transitive)
+ Added@pixi/math@7.4.0(transitive)
+ Added@pixi/runner@7.4.0(transitive)
+ Added@pixi/settings@7.4.0(transitive)
+ Added@pixi/ticker@7.4.0(transitive)
+ Added@pixi/utils@7.4.0(transitive)
- Removed@types/offscreencanvas@^2019.6.4
- Removed@pixi/color@7.3.3(transitive)
- Removed@pixi/constants@7.3.3(transitive)
- Removed@pixi/extensions@7.3.3(transitive)
- Removed@pixi/math@7.3.3(transitive)
- Removed@pixi/runner@7.3.3(transitive)
- Removed@pixi/settings@7.3.3(transitive)
- Removed@pixi/ticker@7.3.3(transitive)
- Removed@pixi/utils@7.3.3(transitive)
- Removed@types/offscreencanvas@2019.7.3(transitive)
Updated@pixi/color@7.4.0
Updated@pixi/constants@7.4.0
Updated@pixi/extensions@7.4.0
Updated@pixi/math@7.4.0
Updated@pixi/runner@7.4.0
Updated@pixi/settings@7.4.0
Updated@pixi/ticker@7.4.0
Updated@pixi/utils@7.4.0