Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pixi/mesh

Package Overview
Dependencies
Maintainers
2
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pixi/mesh - npm Package Compare versions

Comparing version 6.2.2 to 6.3.0

79

dist/browser/mesh.js
/*!
* @pixi/mesh - v6.2.2
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
* @pixi/mesh - v6.3.0
* Compiled Wed, 23 Mar 2022 18:58:56 UTC
*

@@ -206,3 +206,2 @@ * @pixi/mesh is licensed under the MIT License.

*
* @class
* @memberof PIXI

@@ -212,21 +211,8 @@ */

/**
* @param {PIXI.Buffer} uvBuffer - Buffer with normalized uv's
* @param {PIXI.TextureMatrix} uvMatrix - Material UV matrix
* @param uvBuffer - Buffer with normalized uv's
* @param uvMatrix - Material UV matrix
*/
function MeshBatchUvs(uvBuffer, uvMatrix) {
/**
* Buffer with normalized UV's
* @member {PIXI.Buffer}
*/
this.uvBuffer = uvBuffer;
/**
* Material UV matrix
* @member {PIXI.TextureMatrix}
*/
this.uvMatrix = uvMatrix;
/**
* UV Buffer data
* @member {Float32Array}
* @readonly
*/
this.data = null;

@@ -238,5 +224,5 @@ this._bufferUpdateId = -1;

/**
* updates
* Updates
*
* @param {boolean} [forceUpdate] - force the update
* @param forceUpdate - force the update
*/

@@ -620,5 +606,4 @@ MeshBatchUvs.prototype.update = function (forceUpdate) {

* Slightly opinionated default shader for PixiJS 2D objects.
* @class
*
* @memberof PIXI
* @extends PIXI.Shader
*/

@@ -628,4 +613,4 @@ var MeshMaterial = /** @class */ (function (_super) {

/**
* @param {PIXI.Texture} uSampler - Texture that material uses to render.
* @param {object} [options] - Additional options
* @param uSampler - Texture that material uses to render.
* @param options - Additional options
* @param {number} [options.alpha=1] - Default alpha.

@@ -655,28 +640,5 @@ * @param {number} [options.tint=0xFFFFFF] - Default tint.

_this = _super.call(this, options.program || core.Program.from(vertex, fragment), uniforms) || this;
/**
* Only do update if tint or alpha changes.
* @member {boolean}
* @private
* @default false
*/
_this._colorDirty = false;
/**
* TextureMatrix instance for this Mesh, used to track Texture changes
*
* @member {PIXI.TextureMatrix}
* @readonly
*/
_this.uvMatrix = new core.TextureMatrix(uSampler);
/**
* `true` if shader can be batch with the renderer's batch system.
* @member {boolean}
* @default true
*/
_this.batchable = options.program === undefined;
/**
* Renderer plugin for batching
*
* @member {string}
* @default 'batch'
*/
_this.pluginName = options.pluginName;

@@ -688,6 +650,3 @@ _this.tint = options.tint;

Object.defineProperty(MeshMaterial.prototype, "texture", {
/**
* Reference to the texture being rendered.
* @member {PIXI.Texture}
*/
/** Reference to the texture being rendered. */
get: function () {

@@ -713,3 +672,2 @@ return this.uniforms.uSampler;

* @default 1
* @member {number}
*/

@@ -731,3 +689,3 @@ set: function (value) {

* Multiply tint for the material.
* @member {number}
*
* @default 0xFFFFFF

@@ -747,3 +705,3 @@ */

* Gets called automatically by the Mesh. Intended to be overridden for custom
* MeshMaterial objects.
* {@link MeshMaterial} objects.
*/

@@ -776,5 +734,4 @@ MeshMaterial.prototype.update = function () {

* ```
* @class
*
* @memberof PIXI
* @extends PIXI.Geometry
*/

@@ -796,10 +753,2 @@ var MeshGeometry = /** @class */ (function (_super) {

.addIndex(indexBuffer);
/**
* Dirty flag to limit update calls on Mesh. For example,
* limiting updates on a single Mesh instance with a shared Geometry
* within the render loop.
* @private
* @member {number}
* @default -1
*/
_this._updateId = -1;

@@ -811,3 +760,3 @@ return _this;

* If the vertex position is updated.
* @member {number}
*
* @readonly

@@ -814,0 +763,0 @@ * @private

4

dist/browser/mesh.min.js
/*!
* @pixi/mesh - v6.2.2
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
* @pixi/mesh - v6.3.0
* Compiled Wed, 23 Mar 2022 18:58:56 UTC
*

@@ -5,0 +5,0 @@ * @pixi/mesh is licensed under the MIT License.

/*!
* @pixi/mesh - v6.2.2
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
* @pixi/mesh - v6.3.0
* Compiled Wed, 23 Mar 2022 18:58:56 UTC
*

@@ -51,3 +51,2 @@ * @pixi/mesh is licensed under the MIT License.

*
* @class
* @memberof PIXI

@@ -57,21 +56,8 @@ */

/**
* @param {PIXI.Buffer} uvBuffer - Buffer with normalized uv's
* @param {PIXI.TextureMatrix} uvMatrix - Material UV matrix
* @param uvBuffer - Buffer with normalized uv's
* @param uvMatrix - Material UV matrix
*/
function MeshBatchUvs(uvBuffer, uvMatrix) {
/**
* Buffer with normalized UV's
* @member {PIXI.Buffer}
*/
this.uvBuffer = uvBuffer;
/**
* Material UV matrix
* @member {PIXI.TextureMatrix}
*/
this.uvMatrix = uvMatrix;
/**
* UV Buffer data
* @member {Float32Array}
* @readonly
*/
this.data = null;

@@ -83,5 +69,5 @@ this._bufferUpdateId = -1;

/**
* updates
* Updates
*
* @param {boolean} [forceUpdate] - force the update
* @param forceUpdate - force the update
*/

@@ -465,5 +451,4 @@ MeshBatchUvs.prototype.update = function (forceUpdate) {

* Slightly opinionated default shader for PixiJS 2D objects.
* @class
*
* @memberof PIXI
* @extends PIXI.Shader
*/

@@ -473,4 +458,4 @@ var MeshMaterial = /** @class */ (function (_super) {

/**
* @param {PIXI.Texture} uSampler - Texture that material uses to render.
* @param {object} [options] - Additional options
* @param uSampler - Texture that material uses to render.
* @param options - Additional options
* @param {number} [options.alpha=1] - Default alpha.

@@ -500,28 +485,5 @@ * @param {number} [options.tint=0xFFFFFF] - Default tint.

_this = _super.call(this, options.program || core.Program.from(vertex, fragment), uniforms) || this;
/**
* Only do update if tint or alpha changes.
* @member {boolean}
* @private
* @default false
*/
_this._colorDirty = false;
/**
* TextureMatrix instance for this Mesh, used to track Texture changes
*
* @member {PIXI.TextureMatrix}
* @readonly
*/
_this.uvMatrix = new core.TextureMatrix(uSampler);
/**
* `true` if shader can be batch with the renderer's batch system.
* @member {boolean}
* @default true
*/
_this.batchable = options.program === undefined;
/**
* Renderer plugin for batching
*
* @member {string}
* @default 'batch'
*/
_this.pluginName = options.pluginName;

@@ -533,6 +495,3 @@ _this.tint = options.tint;

Object.defineProperty(MeshMaterial.prototype, "texture", {
/**
* Reference to the texture being rendered.
* @member {PIXI.Texture}
*/
/** Reference to the texture being rendered. */
get: function () {

@@ -558,3 +517,2 @@ return this.uniforms.uSampler;

* @default 1
* @member {number}
*/

@@ -576,3 +534,3 @@ set: function (value) {

* Multiply tint for the material.
* @member {number}
*
* @default 0xFFFFFF

@@ -592,3 +550,3 @@ */

* Gets called automatically by the Mesh. Intended to be overridden for custom
* MeshMaterial objects.
* {@link MeshMaterial} objects.
*/

@@ -621,5 +579,4 @@ MeshMaterial.prototype.update = function () {

* ```
* @class
*
* @memberof PIXI
* @extends PIXI.Geometry
*/

@@ -641,10 +598,2 @@ var MeshGeometry = /** @class */ (function (_super) {

.addIndex(indexBuffer);
/**
* Dirty flag to limit update calls on Mesh. For example,
* limiting updates on a single Mesh instance with a shared Geometry
* within the render loop.
* @private
* @member {number}
* @default -1
*/
_this._updateId = -1;

@@ -656,3 +605,3 @@ return _this;

* If the vertex position is updated.
* @member {number}
*
* @readonly

@@ -659,0 +608,0 @@ * @private

/*!
* @pixi/mesh - v6.2.2
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
* @pixi/mesh - v6.3.0
* Compiled Wed, 23 Mar 2022 18:58:56 UTC
*

@@ -5,0 +5,0 @@ * @pixi/mesh is licensed under the MIT License.

/*!
* @pixi/mesh - v6.2.2
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
* @pixi/mesh - v6.3.0
* Compiled Wed, 23 Mar 2022 18:58:56 UTC
*

@@ -47,3 +47,2 @@ * @pixi/mesh is licensed under the MIT License.

*
* @class
* @memberof PIXI

@@ -53,21 +52,8 @@ */

/**
* @param {PIXI.Buffer} uvBuffer - Buffer with normalized uv's
* @param {PIXI.TextureMatrix} uvMatrix - Material UV matrix
* @param uvBuffer - Buffer with normalized uv's
* @param uvMatrix - Material UV matrix
*/
function MeshBatchUvs(uvBuffer, uvMatrix) {
/**
* Buffer with normalized UV's
* @member {PIXI.Buffer}
*/
this.uvBuffer = uvBuffer;
/**
* Material UV matrix
* @member {PIXI.TextureMatrix}
*/
this.uvMatrix = uvMatrix;
/**
* UV Buffer data
* @member {Float32Array}
* @readonly
*/
this.data = null;

@@ -79,5 +65,5 @@ this._bufferUpdateId = -1;

/**
* updates
* Updates
*
* @param {boolean} [forceUpdate] - force the update
* @param forceUpdate - force the update
*/

@@ -461,5 +447,4 @@ MeshBatchUvs.prototype.update = function (forceUpdate) {

* Slightly opinionated default shader for PixiJS 2D objects.
* @class
*
* @memberof PIXI
* @extends PIXI.Shader
*/

@@ -469,4 +454,4 @@ var MeshMaterial = /** @class */ (function (_super) {

/**
* @param {PIXI.Texture} uSampler - Texture that material uses to render.
* @param {object} [options] - Additional options
* @param uSampler - Texture that material uses to render.
* @param options - Additional options
* @param {number} [options.alpha=1] - Default alpha.

@@ -496,28 +481,5 @@ * @param {number} [options.tint=0xFFFFFF] - Default tint.

_this = _super.call(this, options.program || Program.from(vertex, fragment), uniforms) || this;
/**
* Only do update if tint or alpha changes.
* @member {boolean}
* @private
* @default false
*/
_this._colorDirty = false;
/**
* TextureMatrix instance for this Mesh, used to track Texture changes
*
* @member {PIXI.TextureMatrix}
* @readonly
*/
_this.uvMatrix = new TextureMatrix(uSampler);
/**
* `true` if shader can be batch with the renderer's batch system.
* @member {boolean}
* @default true
*/
_this.batchable = options.program === undefined;
/**
* Renderer plugin for batching
*
* @member {string}
* @default 'batch'
*/
_this.pluginName = options.pluginName;

@@ -529,6 +491,3 @@ _this.tint = options.tint;

Object.defineProperty(MeshMaterial.prototype, "texture", {
/**
* Reference to the texture being rendered.
* @member {PIXI.Texture}
*/
/** Reference to the texture being rendered. */
get: function () {

@@ -554,3 +513,2 @@ return this.uniforms.uSampler;

* @default 1
* @member {number}
*/

@@ -572,3 +530,3 @@ set: function (value) {

* Multiply tint for the material.
* @member {number}
*
* @default 0xFFFFFF

@@ -588,3 +546,3 @@ */

* Gets called automatically by the Mesh. Intended to be overridden for custom
* MeshMaterial objects.
* {@link MeshMaterial} objects.
*/

@@ -617,5 +575,4 @@ MeshMaterial.prototype.update = function () {

* ```
* @class
*
* @memberof PIXI
* @extends PIXI.Geometry
*/

@@ -637,10 +594,2 @@ var MeshGeometry = /** @class */ (function (_super) {

.addIndex(indexBuffer);
/**
* Dirty flag to limit update calls on Mesh. For example,
* limiting updates on a single Mesh instance with a shared Geometry
* within the render loop.
* @private
* @member {number}
* @default -1
*/
_this._updateId = -1;

@@ -652,3 +601,3 @@ return _this;

* If the vertex position is updated.
* @member {number}
*
* @readonly

@@ -655,0 +604,0 @@ * @private

/*!
* @pixi/mesh - v6.2.2
* Compiled Wed, 26 Jan 2022 16:23:27 UTC
* @pixi/mesh - v6.3.0
* Compiled Wed, 23 Mar 2022 18:58:56 UTC
*

@@ -5,0 +5,0 @@ * @pixi/mesh is licensed under the MIT License.

@@ -211,8 +211,10 @@ /// <reference path="./global.d.ts" />

*
* @class
* @memberof PIXI
*/
export declare class MeshBatchUvs {
/** UV Buffer data. */
readonly data: Float32Array;
/** Buffer with normalized UV's. */
uvBuffer: Buffer_2;
/** Material UV matrix. */
uvMatrix: TextureMatrix;

@@ -223,10 +225,10 @@ private _bufferUpdateId;

/**
* @param {PIXI.Buffer} uvBuffer - Buffer with normalized uv's
* @param {PIXI.TextureMatrix} uvMatrix - Material UV matrix
* @param uvBuffer - Buffer with normalized uv's
* @param uvMatrix - Material UV matrix
*/
constructor(uvBuffer: Buffer_2, uvMatrix: TextureMatrix);
/**
* updates
* Updates
*
* @param {boolean} [forceUpdate] - force the update
* @param forceUpdate - force the update
*/

@@ -249,7 +251,14 @@ update(forceUpdate?: boolean): void;

* ```
* @class
*
* @memberof PIXI
* @extends PIXI.Geometry
*/
export declare class MeshGeometry extends Geometry {
/**
* Dirty flag to limit update calls on Mesh. For example,
* limiting updates on a single Mesh instance with a shared Geometry
* within the render loop.
*
* @private
* @default -1
*/
_updateId: number;

@@ -264,3 +273,3 @@ /**

* If the vertex position is updated.
* @member {number}
*
* @readonly

@@ -277,11 +286,31 @@ * @private

* Slightly opinionated default shader for PixiJS 2D objects.
* @class
*
* @memberof PIXI
* @extends PIXI.Shader
*/
export declare class MeshMaterial extends Shader {
/**
* TextureMatrix instance for this Mesh, used to track Texture changes.
*
* @readonly
*/
readonly uvMatrix: TextureMatrix;
/**
* `true` if shader can be batch with the renderer's batch system.
*
* @default true
*/
batchable: boolean;
/**
* Renderer plugin for batching.
*
* @default 'batch'
*/
pluginName: string;
_tintRGB: number;
/**
* Only do update if tint or alpha changes.
*
* @private
* @default false
*/
private _colorDirty;

@@ -291,4 +320,4 @@ private _alpha;

/**
* @param {PIXI.Texture} uSampler - Texture that material uses to render.
* @param {object} [options] - Additional options
* @param uSampler - Texture that material uses to render.
* @param options - Additional options
* @param {number} [options.alpha=1] - Default alpha.

@@ -301,6 +330,3 @@ * @param {number} [options.tint=0xFFFFFF] - Default tint.

constructor(uSampler: Texture, options?: IMeshMaterialOptions);
/**
* Reference to the texture being rendered.
* @member {PIXI.Texture}
*/
/** Reference to the texture being rendered. */
get texture(): Texture;

@@ -312,3 +338,2 @@ set texture(value: Texture);

* @default 1
* @member {number}
*/

@@ -319,3 +344,3 @@ set alpha(value: number);

* Multiply tint for the material.
* @member {number}
*
* @default 0xFFFFFF

@@ -327,3 +352,3 @@ */

* Gets called automatically by the Mesh. Intended to be overridden for custom
* MeshMaterial objects.
* {@link MeshMaterial} objects.
*/

@@ -330,0 +355,0 @@ update(): void;

{
"name": "@pixi/mesh",
"version": "6.2.2",
"version": "6.3.0",
"main": "dist/cjs/mesh.js",

@@ -28,10 +28,10 @@ "module": "dist/esm/mesh.js",

"peerDependencies": {
"@pixi/constants": "6.2.2",
"@pixi/core": "6.2.2",
"@pixi/display": "6.2.2",
"@pixi/math": "6.2.2",
"@pixi/settings": "6.2.2",
"@pixi/utils": "6.2.2"
"@pixi/constants": "6.3.0",
"@pixi/core": "6.3.0",
"@pixi/display": "6.3.0",
"@pixi/math": "6.3.0",
"@pixi/settings": "6.3.0",
"@pixi/utils": "6.3.0"
},
"gitHead": "23c4599ad83dbb128d71a1010aa6c4fb96779270"
"gitHead": "dc311cdd7a28e6817556cdc674fd15ef71069467"
}

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc