Socket
Socket
Sign inDemoInstall

@pixi/core

Package Overview
Dependencies
32
Maintainers
2
Versions
122
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.2.3 to 7.2.4

2

lib/batch/BatchRenderer.js

@@ -338,3 +338,3 @@ 'use strict';

const alpha = Math.min(element.worldAlpha, 1);
const argb = color.Color.shared.setValue(element._tintRGB).toPremultiplied(alpha);
const argb = color.Color.shared.setValue(element._tintRGB).toPremultiplied(alpha, element._texture.baseTexture.alphaMode > 0);
for (let i = 0; i < vertexData.length; i += 2) {

@@ -341,0 +341,0 @@ float32View[aIndex++] = vertexData[i];

@@ -291,2 +291,3 @@ 'use strict';

gl.blitFramebuffer(sourcePixels.left, sourcePixels.top, sourcePixels.right, sourcePixels.bottom, destPixels.left, destPixels.top, destPixels.right, destPixels.bottom, gl.COLOR_BUFFER_BIT, sameSize ? gl.NEAREST : gl.LINEAR);
gl.bindFramebuffer(gl.READ_FRAMEBUFFER, framebuffer.glFramebuffers[this.CONTEXT_UID].framebuffer);
}

@@ -293,0 +294,0 @@ disposeFramebuffer(framebuffer, contextLost) {

@@ -117,3 +117,3 @@ 'use strict';

const VERSION = "7.2.3";
const VERSION = "7.2.4";

@@ -120,0 +120,0 @@ exports.utils = utils__namespace;

@@ -8,3 +8,3 @@ import type { RENDERER_TYPE } from '@pixi/constants';

import type { SystemManager } from './system/SystemManager';
import type { BackgroundSystemOptions, ContextSystemOptions, StartupSystemOptions, ViewSystemOptions } from './systems';
import type { BackgroundSystem, BackgroundSystemOptions, ContextSystemOptions, StartupSystemOptions, ViewSystemOptions } from './systems';
import type { ImageSource } from './textures/BaseTexture';

@@ -109,2 +109,4 @@ /**

readonly height: number;
/** Whether CSS dimensions of canvas view should be resized to screen dimensions automatically. */
readonly autoDensity: boolean;
/**

@@ -119,2 +121,4 @@ * Measurements of the screen. (0, 0, screenWidth, screenHeight).

readonly plugins: IRendererPlugins;
/** Background color, alpha and clear behavior */
readonly background: BackgroundSystem;
}

@@ -58,2 +58,4 @@ import { Rectangle } from '@pixi/math';

private renderer;
/** Does the renderer have alpha and are its color channels stored premultipled by the alpha channel? */
private _rendererPremultipliedAlpha;
/**

@@ -63,2 +65,3 @@ * @param renderer - The renderer this System works for.

constructor(renderer: Renderer);
protected contextChange(): void;
/**

@@ -65,0 +68,0 @@ * Bind the current render texture.

@@ -20,2 +20,6 @@ 'use strict';

}
contextChange() {
const attributes = this.renderer?.gl.getContextAttributes();
this._rendererPremultipliedAlpha = !!(attributes && attributes.alpha && attributes.premultipliedAlpha);
}
bind(renderTexture = null, sourceFrame, destinationFrame) {

@@ -77,3 +81,6 @@ const renderer = this.renderer;

const fallbackColor = this.current ? this.current.baseTexture.clear : this.renderer.background.backgroundColor;
const color$1 = clearColor ? color.Color.shared.setValue(clearColor) : fallbackColor;
const color$1 = color.Color.shared.setValue(clearColor ? clearColor : fallbackColor);
if (this.current && this.current.baseTexture.alphaMode > 0 || !this.current && this._rendererPremultipliedAlpha) {
color$1.premultiply(color$1.alpha);
}
const destinationFrame = this.destinationFrame;

@@ -80,0 +87,0 @@ const baseFrame = this.current ? this.current.baseTexture : this.renderer._view.screen;

@@ -15,3 +15,3 @@ 'use strict';

if (options.hello) {
console.log(`PixiJS ${"7.2.3"} - ${renderer.rendererLogId} - https://pixijs.com`);
console.log(`PixiJS ${"7.2.4"} - ${renderer.rendererLogId} - https://pixijs.com`);
}

@@ -18,0 +18,0 @@ renderer.resize(renderer.screen.width, renderer.screen.height);

@@ -222,3 +222,3 @@ 'use strict';

const type = buffer instanceof Float32Array ? constants.TYPES.FLOAT : constants.TYPES.UNSIGNED_BYTE;
return new _BaseTexture(resource, Object.assign({}, defaultBufferOptions, options || { width, height, type }));
return new _BaseTexture(resource, Object.assign({}, defaultBufferOptions, { type }, options));
}

@@ -225,0 +225,0 @@ static addToCache(baseTexture, id) {

@@ -46,3 +46,3 @@ import { ALPHA_MODES } from '@pixi/constants';

constructor(source: ImageBitmap | string, options?: IImageBitmapResourceOptions);
load(): Promise<ImageBitmapResource>;
load(): Promise<this>;
/**

@@ -49,0 +49,0 @@ * Upload the image bitmap resource to GPU.

@@ -66,3 +66,3 @@ import { ALPHA_MODES } from '@pixi/constants';

*/
load(createBitmap?: boolean): Promise<ImageResource>;
load(createBitmap?: boolean): Promise<this>;
/**

@@ -73,3 +73,3 @@ * Called when we need to convert image into BitmapImage.

*/
process(): Promise<ImageResource>;
process(): Promise<this>;
/**

@@ -76,0 +76,0 @@ * Upload the image resource to GPU.

@@ -85,3 +85,3 @@ import { Runner } from '@pixi/runner';

*/
load(): Promise<Resource>;
load(): Promise<this>;
/**

@@ -88,0 +88,0 @@ * The width of the resource.

@@ -39,3 +39,3 @@ import { BaseImageResource } from './BaseImageResource';

constructor(sourceBase64: string, options?: ISVGResourceOptions);
load(): Promise<SVGResource>;
load(): Promise<this>;
/** Loads an SVG image from `imageUrl` or `data URL`. */

@@ -42,0 +42,0 @@ private _loadSvg;

@@ -64,3 +64,3 @@ import { BaseImageResource } from './BaseImageResource';

*/
load(): Promise<VideoResource>;
load(): Promise<this>;
/**

@@ -67,0 +67,0 @@ * Handle video error events.

{
"name": "@pixi/core",
"version": "7.2.3",
"version": "7.2.4",
"main": "lib/index.js",

@@ -43,12 +43,12 @@ "module": "lib/index.mjs",

"dependencies": {
"@pixi/color": "7.2.3",
"@pixi/constants": "7.2.3",
"@pixi/extensions": "7.2.3",
"@pixi/math": "7.2.3",
"@pixi/runner": "7.2.3",
"@pixi/settings": "7.2.3",
"@pixi/ticker": "7.2.3",
"@pixi/utils": "7.2.3",
"@pixi/color": "7.2.4",
"@pixi/constants": "7.2.4",
"@pixi/extensions": "7.2.4",
"@pixi/math": "7.2.4",
"@pixi/runner": "7.2.4",
"@pixi/settings": "7.2.4",
"@pixi/ticker": "7.2.4",
"@pixi/utils": "7.2.4",
"@types/offscreencanvas": "^2019.6.4"
}
}

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc