Socket
Socket
Sign inDemoInstall

@pixi/math

Package Overview
Dependencies
Maintainers
2
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pixi/math - npm Package Compare versions

Comparing version 6.3.2 to 6.4.0

4

dist/browser/math.min.js
/*!
* @pixi/math - v6.3.2
* Compiled Wed, 04 May 2022 17:49:13 UTC
* @pixi/math - v6.4.0
* Compiled Wed, 01 Jun 2022 21:14:23 UTC
*

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

/*!
* @pixi/math - v6.3.2
* Compiled Wed, 04 May 2022 17:49:13 UTC
* @pixi/math - v6.4.0
* Compiled Wed, 01 Jun 2022 21:14:23 UTC
*

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

* Two Pi.
*
* @static

@@ -23,3 +22,2 @@ * @member {number}

* Conversion factor for converting radians to degrees.
*
* @static

@@ -32,3 +30,2 @@ * @member {number} RAD_TO_DEG

* Conversion factor for converting degrees to radians.
*
* @static

@@ -41,3 +38,2 @@ * @member {number}

* Constants that identify shapes, mainly to prevent `instanceof` calls.
*
* @static

@@ -64,9 +60,9 @@ * @memberof PIXI

* the position on the horizontal axis and `y` represents the position on the vertical axis
*
* @class
* @memberof PIXI
* @implements IPoint
* @implements {IPoint}
*/
var Point = /** @class */ (function () {
/** Creates a new `Point`
/**
* Creates a new `Point`
* @param {number} [x=0] - position of the point on the x axis

@@ -85,3 +81,4 @@ * @param {number} [y=0] - position of the point on the y axis

}
/** Creates a clone of this point
/**
* Creates a clone of this point
* @returns A clone of this point

@@ -94,3 +91,2 @@ */

* Copies `x` and `y` from the given point into this point
*
* @param p - The point to copy from

@@ -105,3 +101,2 @@ * @returns The point instance itself

* Copies this point's x and y into the given point (`p`).
*
* @param p - The point to copy to. Can be any of type that is or extends `IPointData`

@@ -116,3 +111,2 @@ * @returns The point (`p`) with values updated

* Accepts another point (`p`) and returns `true` if the given point is equal to this point
*
* @param p - The point to check

@@ -127,3 +121,2 @@ * @returns Returns `true` if both `x` and `y` are equal

* If `y` is omitted, both `x` and `y` will be set to `x`.
*
* @param {number} [x=0] - position of the point on the `x` axis

@@ -149,5 +142,6 @@ * @param {number} [y=x] - position of the point on the `y` axis

* Size object, contains width and height
*
* @memberof PIXI
* @typedef {object} ISize
* @property {number} width - Width component
* @property {number} height - Height component
*/

@@ -157,3 +151,2 @@ /**

* point (x, y) and by its width and its height.
*
* @memberof PIXI

@@ -221,4 +214,3 @@ */

* Creates a clone of this Rectangle
*
* @return a copy of the rectangle
* @returns a copy of the rectangle
*/

@@ -230,5 +222,4 @@ Rectangle.prototype.clone = function () {

* Copies another rectangle to this one.
*
* @param rectangle - The rectangle to copy from.
* @return Returns itself.
* @returns Returns itself.
*/

@@ -244,5 +235,4 @@ Rectangle.prototype.copyFrom = function (rectangle) {

* Copies this rectangle to another one.
*
* @param rectangle - The rectangle to copy to.
* @return Returns given parameter.
* @returns Returns given parameter.
*/

@@ -258,6 +248,5 @@ Rectangle.prototype.copyTo = function (rectangle) {

* Checks whether the x and y coordinates given are contained within this Rectangle
*
* @param x - The X coordinate of the point to test
* @param y - The Y coordinate of the point to test
* @return Whether the x/y coordinates are within this Rectangle
* @returns Whether the x/y coordinates are within this Rectangle
*/

@@ -280,3 +269,2 @@ Rectangle.prototype.contains = function (x, y) {

* (width or height equal to zero) can't intersect any other rectangle.
*
* @param {Rectangle} other - The Rectangle to intersect with `this`.

@@ -350,6 +338,5 @@ * @param {Matrix} transform - The transformation matrix of `other`.

* If paddingY is omitted, both paddingX and paddingY will be set to paddingX.
*
* @param paddingX - The horizontal padding amount.
* @param paddingY - The vertical padding amount.
* @return Returns itself.
* @returns Returns itself.
*/

@@ -367,5 +354,4 @@ Rectangle.prototype.pad = function (paddingX, paddingY) {

* Fits this rectangle around the passed one.
*
* @param rectangle - The rectangle to fit.
* @return Returns itself.
* @returns Returns itself.
*/

@@ -385,6 +371,5 @@ Rectangle.prototype.fit = function (rectangle) {

* Enlarges rectangle that way its corners lie on grid
*
* @param resolution - resolution
* @param eps - precision
* @return Returns itself.
* @returns Returns itself.
*/

@@ -404,5 +389,4 @@ Rectangle.prototype.ceil = function (resolution, eps) {

* Enlarges this rectangle to include the passed rectangle.
*
* @param rectangle - The rectangle to include.
* @return Returns itself.
* @returns Returns itself.
*/

@@ -428,3 +412,2 @@ Rectangle.prototype.enlarge = function (rectangle) {

* The Circle object is used to help draw graphics and can also be used to specify a hit area for displayObjects.
*
* @memberof PIXI

@@ -449,4 +432,3 @@ */

* Creates a clone of this Circle instance
*
* @return A copy of the Circle
* @returns A copy of the Circle
*/

@@ -458,6 +440,5 @@ Circle.prototype.clone = function () {

* Checks whether the x and y coordinates given are contained within this circle
*
* @param x - The X coordinate of the point to test
* @param y - The Y coordinate of the point to test
* @return Whether the x/y coordinates are within this Circle
* @returns Whether the x/y coordinates are within this Circle
*/

@@ -476,6 +457,5 @@ Circle.prototype.contains = function (x, y) {

/**
* Returns the framing rectangle of the circle as a Rectangle object
*
* @return The framing rectangle
*/
* Returns the framing rectangle of the circle as a Rectangle object
* @returns The framing rectangle
*/
Circle.prototype.getBounds = function () {

@@ -492,3 +472,2 @@ return new Rectangle(this.x - this.radius, this.y - this.radius, this.radius * 2, this.radius * 2);

* The Ellipse object is used to help draw graphics and can also be used to specify a hit area for displayObjects.
*
* @memberof PIXI

@@ -516,4 +495,3 @@ */

* Creates a clone of this Ellipse instance
*
* @return {PIXI.Ellipse} A copy of the ellipse
* @returns {PIXI.Ellipse} A copy of the ellipse
*/

@@ -525,6 +503,5 @@ Ellipse.prototype.clone = function () {

* Checks whether the x and y coordinates given are contained within this ellipse
*
* @param x - The X coordinate of the point to test
* @param y - The Y coordinate of the point to test
* @return Whether the x/y coords are within this ellipse
* @returns Whether the x/y coords are within this ellipse
*/

@@ -544,4 +521,3 @@ Ellipse.prototype.contains = function (x, y) {

* Returns the framing rectangle of the ellipse as a Rectangle object
*
* @return The framing rectangle
* @returns The framing rectangle
*/

@@ -559,3 +535,2 @@ Ellipse.prototype.getBounds = function () {

* A class to define a shape via user defined coordinates.
*
* @memberof PIXI

@@ -593,4 +568,3 @@ */

* Creates a clone of this polygon.
*
* @return - A copy of the polygon.
* @returns - A copy of the polygon.
*/

@@ -605,6 +579,5 @@ Polygon.prototype.clone = function () {

* Checks whether the x and y coordinates passed to this function are contained within this polygon.
*
* @param x - The X coordinate of the point to test.
* @param y - The Y coordinate of the point to test.
* @return - Whether the x/y coordinates are within this polygon.
* @returns - Whether the x/y coordinates are within this polygon.
*/

@@ -639,3 +612,2 @@ Polygon.prototype.contains = function (x, y) {

* top-left corner point (x, y) and by its width and its height and its radius.
*
* @memberof PIXI

@@ -666,4 +638,3 @@ */

* Creates a clone of this Rounded Rectangle.
*
* @return - A copy of the rounded rectangle.
* @returns - A copy of the rounded rectangle.
*/

@@ -675,6 +646,5 @@ RoundedRectangle.prototype.clone = function () {

* Checks whether the x and y coordinates given are contained within this Rounded Rectangle
*
* @param x - The X coordinate of the point to test.
* @param y - The Y coordinate of the point to test.
* @return - Whether the x/y coordinates are within this Rounded Rectangle.
* @returns - Whether the x/y coordinates are within this Rounded Rectangle.
*/

@@ -726,3 +696,2 @@ RoundedRectangle.prototype.contains = function (x, y) {

* An `ObservablePoint` is a point that triggers a callback when the point's position is changed.
*
* @memberof PIXI

@@ -733,3 +702,2 @@ */

* Creates a new `ObservablePoint`
*
* @param cb - callback function triggered when `x` and/or `y` are changed

@@ -739,3 +707,3 @@ * @param scope - owner of callback

* @param {number} [y=0] - position of the point on the y axis
*/
*/
function ObservablePoint(cb, scope, x, y) {

@@ -753,7 +721,6 @@ if (x === void 0) { x = 0; }

* to the clone object's values.
*
* @override
* @param cb - The callback function triggered when `x` and/or `y` are changed
* @param scope - The owner of the callback
* @return a copy of this observable point
* @returns a copy of this observable point
*/

@@ -768,3 +735,2 @@ ObservablePoint.prototype.clone = function (cb, scope) {

* If `y` is omitted, both `x` and `y` will be set to `x`.
*
* @param {number} [x=0] - position of the point on the x axis

@@ -786,3 +752,2 @@ * @param {number} [y=x] - position of the point on the y axis

* Copies x and y from the given point (`p`)
*
* @param p - The point to copy from. Can be any of type that is or extends `IPointData`

@@ -801,3 +766,2 @@ * @returns The observable point instance itself

* Copies this point's x and y into that of the given point (`p`)
*
* @param p - The point to copy to. Can be any of type that is or extends `IPointData`

@@ -812,3 +776,2 @@ * @returns The point (`p`) with values updated

* Accepts another point (`p`) and returns `true` if the given point is equal to this point
*
* @param p - The point to check

@@ -863,3 +826,2 @@ * @returns Returns `true` if both `x` and `y` are equal

* ```
*
* @memberof PIXI

@@ -900,3 +862,2 @@ */

* ty = array[5]
*
* @param array - The array that the matrix will be populated from.

@@ -914,3 +875,2 @@ */

* Sets the matrix properties.
*
* @param a - Matrix component

@@ -922,3 +882,3 @@ * @param b - Matrix component

* @param ty - Matrix component
* @return This matrix. Good for chaining method calls.
* @returns This matrix. Good for chaining method calls.
*/

@@ -936,6 +896,5 @@ Matrix.prototype.set = function (a, b, c, d, tx, ty) {

* Creates an array from the current Matrix object.
*
* @param transpose - Whether we need to transpose the matrix or not
* @param [out=new Float32Array(9)] - If provided the array will be assigned to out
* @return The newly created array which contains the matrix
* @returns The newly created array which contains the matrix
*/

@@ -974,6 +933,5 @@ Matrix.prototype.toArray = function (transpose, out) {

* Can be used to go from a child's coordinate space to the world coordinate space. (e.g. rendering)
*
* @param pos - The origin
* @param {PIXI.Point} [newPos] - The point that the new position is assigned to (allowed to be same as input)
* @return {PIXI.Point} The new point, transformed through this matrix
* @returns {PIXI.Point} The new point, transformed through this matrix
*/

@@ -991,6 +949,5 @@ Matrix.prototype.apply = function (pos, newPos) {

* Can be used to go from the world coordinate space to a child's coordinate space. (e.g. input)
*
* @param pos - The origin
* @param {PIXI.Point} [newPos] - The point that the new position is assigned to (allowed to be same as input)
* @return {PIXI.Point} The new point, inverse-transformed through this matrix
* @returns {PIXI.Point} The new point, inverse-transformed through this matrix
*/

@@ -1008,6 +965,5 @@ Matrix.prototype.applyInverse = function (pos, newPos) {

* Translates the matrix on the x and y.
*
* @param x - How much to translate x by
* @param y - How much to translate y by
* @return This matrix. Good for chaining method calls.
* @returns This matrix. Good for chaining method calls.
*/

@@ -1021,6 +977,5 @@ Matrix.prototype.translate = function (x, y) {

* Applies a scale transformation to the matrix.
*
* @param x - The amount to scale horizontally
* @param y - The amount to scale vertically
* @return This matrix. Good for chaining method calls.
* @returns This matrix. Good for chaining method calls.
*/

@@ -1038,5 +993,4 @@ Matrix.prototype.scale = function (x, y) {

* Applies a rotation transformation to the matrix.
*
* @param angle - The angle in radians.
* @return This matrix. Good for chaining method calls.
* @returns This matrix. Good for chaining method calls.
*/

@@ -1059,5 +1013,4 @@ Matrix.prototype.rotate = function (angle) {

* Appends the given Matrix to this Matrix.
*
* @param matrix - The matrix to append.
* @return This matrix. Good for chaining method calls.
* @returns This matrix. Good for chaining method calls.
*/

@@ -1079,3 +1032,2 @@ Matrix.prototype.append = function (matrix) {

* Sets the matrix based on all the available properties
*
* @param x - Position on the x axis

@@ -1090,3 +1042,3 @@ * @param y - Position on the y axis

* @param skewY - Skew on the y axis
* @return This matrix. Good for chaining method calls.
* @returns This matrix. Good for chaining method calls.
*/

@@ -1104,5 +1056,4 @@ Matrix.prototype.setTransform = function (x, y, pivotX, pivotY, scaleX, scaleY, rotation, skewX, skewY) {

* Prepends the given Matrix to this Matrix.
*
* @param matrix - The matrix to prepend
* @return This matrix. Good for chaining method calls.
* @returns This matrix. Good for chaining method calls.
*/

@@ -1125,5 +1076,4 @@ Matrix.prototype.prepend = function (matrix) {

* Decomposes the matrix (x, y, scaleX, scaleY, and rotation) and sets the properties on to a transform.
*
* @param transform - The transform to apply the properties to.
* @return The transform with the newly applied properties
* @returns The transform with the newly applied properties
*/

@@ -1159,4 +1109,3 @@ Matrix.prototype.decompose = function (transform) {

* Inverts this matrix
*
* @return This matrix. Good for chaining method calls.
* @returns This matrix. Good for chaining method calls.
*/

@@ -1180,4 +1129,3 @@ Matrix.prototype.invert = function () {

* Resets this Matrix to an identity (default) matrix.
*
* @return This matrix. Good for chaining method calls.
* @returns This matrix. Good for chaining method calls.
*/

@@ -1195,4 +1143,3 @@ Matrix.prototype.identity = function () {

* Creates a new Matrix object with the same values as this one.
*
* @return A copy of this matrix. Good for chaining method calls.
* @returns A copy of this matrix. Good for chaining method calls.
*/

@@ -1211,5 +1158,4 @@ Matrix.prototype.clone = function () {

* Changes the values of the given matrix to be the same as the ones in this matrix
*
* @param matrix - The matrix to copy to.
* @return The matrix given in parameter with its values updated.
* @returns The matrix given in parameter with its values updated.
*/

@@ -1227,5 +1173,4 @@ Matrix.prototype.copyTo = function (matrix) {

* Changes the values of the matrix to be the same as the ones in given matrix
*
* @param {PIXI.Matrix} matrix - The matrix to copy from.
* @return {PIXI.Matrix} this
* @returns {PIXI.Matrix} this
*/

@@ -1247,3 +1192,2 @@ Matrix.prototype.copyFrom = function (matrix) {

* A default (identity) matrix
*
* @readonly

@@ -1260,3 +1204,2 @@ */

* A temp matrix
*
* @readonly

@@ -1286,4 +1229,3 @@ */

* for the composition of each rotation in the dihederal group D8.
*
* @type number[][]
* @type {number[][]}
* @private

@@ -1294,4 +1236,3 @@ */

* Matrices for each `GD8Symmetry` rotation.
*
* @type Matrix[]
* @type {PIXI.Matrix[]}
* @private

@@ -1352,3 +1293,2 @@ */

* This is the small part of gameofbombs.com portal system. It works.
*
* @see PIXI.groupD8.E

@@ -1371,3 +1311,2 @@ * @see PIXI.groupD8.SE

* | 0° | East |
*
* @memberof PIXI.groupD8

@@ -1381,3 +1320,2 @@ * @constant {PIXI.GD8Symmetry}

* | 45°↻ | Southeast |
*
* @memberof PIXI.groupD8

@@ -1391,3 +1329,2 @@ * @constant {PIXI.GD8Symmetry}

* | 90°↻ | South |
*
* @memberof PIXI.groupD8

@@ -1401,3 +1338,2 @@ * @constant {PIXI.GD8Symmetry}

* | 135°↻ | Southwest |
*
* @memberof PIXI.groupD8

@@ -1411,3 +1347,2 @@ * @constant {PIXI.GD8Symmetry}

* | 180° | West |
*
* @memberof PIXI.groupD8

@@ -1421,3 +1356,2 @@ * @constant {PIXI.GD8Symmetry}

* | -135°/225°↻ | Northwest |
*
* @memberof PIXI.groupD8

@@ -1431,3 +1365,2 @@ * @constant {PIXI.GD8Symmetry}

* | -90°/270°↻ | North |
*
* @memberof PIXI.groupD8

@@ -1441,3 +1374,2 @@ * @constant {PIXI.GD8Symmetry}

* | -45°/315°↻ | Northeast |
*
* @memberof PIXI.groupD8

@@ -1449,3 +1381,2 @@ * @constant {PIXI.GD8Symmetry}

* Reflection about Y-axis.
*
* @memberof PIXI.groupD8

@@ -1457,3 +1388,2 @@ * @constant {PIXI.GD8Symmetry}

* Reflection about the main diagonal.
*
* @memberof PIXI.groupD8

@@ -1465,3 +1395,2 @@ * @constant {PIXI.GD8Symmetry}

* Reflection about X-axis.
*
* @memberof PIXI.groupD8

@@ -1473,3 +1402,2 @@ * @constant {PIXI.GD8Symmetry}

* Reflection about reverse diagonal.
*
* @memberof PIXI.groupD8

@@ -1482,3 +1410,3 @@ * @constant {PIXI.GD8Symmetry}

* @param {PIXI.GD8Symmetry} ind - sprite rotation angle.
* @return {PIXI.GD8Symmetry} The X-component of the U-axis
* @returns {PIXI.GD8Symmetry} The X-component of the U-axis
* after rotating the axes.

@@ -1490,3 +1418,3 @@ */

* @param {PIXI.GD8Symmetry} ind - sprite rotation angle.
* @return {PIXI.GD8Symmetry} The Y-component of the U-axis
* @returns {PIXI.GD8Symmetry} The Y-component of the U-axis
* after rotating the axes.

@@ -1498,3 +1426,3 @@ */

* @param {PIXI.GD8Symmetry} ind - sprite rotation angle.
* @return {PIXI.GD8Symmetry} The X-component of the V-axis
* @returns {PIXI.GD8Symmetry} The X-component of the V-axis
* after rotating the axes.

@@ -1506,3 +1434,3 @@ */

* @param {PIXI.GD8Symmetry} ind - sprite rotation angle.
* @return {PIXI.GD8Symmetry} The Y-component of the V-axis
* @returns {PIXI.GD8Symmetry} The Y-component of the V-axis
* after rotating the axes.

@@ -1516,3 +1444,3 @@ */

* reflections don't.
* @return {PIXI.GD8Symmetry} The opposite symmetry of `rotation`
* @returns {PIXI.GD8Symmetry} The opposite symmetry of `rotation`
*/

@@ -1548,3 +1476,3 @@ inv: function (rotation) {

* is the column in the above cayley table.
* @return {PIXI.GD8Symmetry} Composed operation
* @returns {PIXI.GD8Symmetry} Composed operation
*/

@@ -1554,7 +1482,6 @@ add: function (rotationSecond, rotationFirst) { return (rotationCayley[rotationSecond][rotationFirst]); },

* Reverse of `add`.
*
* @memberof PIXI.groupD8
* @param {PIXI.GD8Symmetry} rotationSecond - Second operation
* @param {PIXI.GD8Symmetry} rotationFirst - First operation
* @return {PIXI.GD8Symmetry} Result
* @returns {PIXI.GD8Symmetry} Result
*/

@@ -1565,3 +1492,2 @@ sub: function (rotationSecond, rotationFirst) { return (rotationCayley[rotationSecond][groupD8.inv(rotationFirst)]); },

* operation.
*
* @memberof PIXI.groupD8

@@ -1575,3 +1501,2 @@ * @param {number} rotation - The number to rotate.

* or north. It doesn't work for reflections.
*
* @memberof PIXI.groupD8

@@ -1585,7 +1510,6 @@ * @param {PIXI.GD8Symmetry} rotation - The number to check.

* eight directions provided by `groupD8`.
*
* @memberof PIXI.groupD8
* @param {number} dx - X-component of the vector
* @param {number} dy - Y-component of the vector
* @return {PIXI.GD8Symmetry} Approximation of the vector into
* @returns {PIXI.GD8Symmetry} Approximation of the vector into
* one of the eight symmetries.

@@ -1619,3 +1543,2 @@ */

* Helps sprite to compensate texture packer rotation.
*
* @memberof PIXI.groupD8

@@ -1640,3 +1563,2 @@ * @param {PIXI.Matrix} matrix - sprite world matrix

* Transform that takes care about its versions.
*
* @memberof PIXI

@@ -1700,3 +1622,2 @@ */

* Updates the local and the world transformation matrices.
*
* @param parentTransform - The parent transform

@@ -1735,3 +1656,2 @@ */

* Decomposes a matrix and sets the transforms properties based on it.
*
* @param matrix - The matrix to decompose

@@ -1738,0 +1658,0 @@ */

/*!
* @pixi/math - v6.3.2
* Compiled Wed, 04 May 2022 17:49:13 UTC
* @pixi/math - v6.4.0
* Compiled Wed, 01 Jun 2022 21:14:23 UTC
*

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

/*!
* @pixi/math - v6.3.2
* Compiled Wed, 04 May 2022 17:49:13 UTC
* @pixi/math - v6.4.0
* Compiled Wed, 01 Jun 2022 21:14:23 UTC
*

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

* Two Pi.
*
* @static

@@ -19,3 +18,2 @@ * @member {number}

* Conversion factor for converting radians to degrees.
*
* @static

@@ -28,3 +26,2 @@ * @member {number} RAD_TO_DEG

* Conversion factor for converting degrees to radians.
*
* @static

@@ -37,3 +34,2 @@ * @member {number}

* Constants that identify shapes, mainly to prevent `instanceof` calls.
*
* @static

@@ -60,9 +56,9 @@ * @memberof PIXI

* the position on the horizontal axis and `y` represents the position on the vertical axis
*
* @class
* @memberof PIXI
* @implements IPoint
* @implements {IPoint}
*/
var Point = /** @class */ (function () {
/** Creates a new `Point`
/**
* Creates a new `Point`
* @param {number} [x=0] - position of the point on the x axis

@@ -81,3 +77,4 @@ * @param {number} [y=0] - position of the point on the y axis

}
/** Creates a clone of this point
/**
* Creates a clone of this point
* @returns A clone of this point

@@ -90,3 +87,2 @@ */

* Copies `x` and `y` from the given point into this point
*
* @param p - The point to copy from

@@ -101,3 +97,2 @@ * @returns The point instance itself

* Copies this point's x and y into the given point (`p`).
*
* @param p - The point to copy to. Can be any of type that is or extends `IPointData`

@@ -112,3 +107,2 @@ * @returns The point (`p`) with values updated

* Accepts another point (`p`) and returns `true` if the given point is equal to this point
*
* @param p - The point to check

@@ -123,3 +117,2 @@ * @returns Returns `true` if both `x` and `y` are equal

* If `y` is omitted, both `x` and `y` will be set to `x`.
*
* @param {number} [x=0] - position of the point on the `x` axis

@@ -145,5 +138,6 @@ * @param {number} [y=x] - position of the point on the `y` axis

* Size object, contains width and height
*
* @memberof PIXI
* @typedef {object} ISize
* @property {number} width - Width component
* @property {number} height - Height component
*/

@@ -153,3 +147,2 @@ /**

* point (x, y) and by its width and its height.
*
* @memberof PIXI

@@ -217,4 +210,3 @@ */

* Creates a clone of this Rectangle
*
* @return a copy of the rectangle
* @returns a copy of the rectangle
*/

@@ -226,5 +218,4 @@ Rectangle.prototype.clone = function () {

* Copies another rectangle to this one.
*
* @param rectangle - The rectangle to copy from.
* @return Returns itself.
* @returns Returns itself.
*/

@@ -240,5 +231,4 @@ Rectangle.prototype.copyFrom = function (rectangle) {

* Copies this rectangle to another one.
*
* @param rectangle - The rectangle to copy to.
* @return Returns given parameter.
* @returns Returns given parameter.
*/

@@ -254,6 +244,5 @@ Rectangle.prototype.copyTo = function (rectangle) {

* Checks whether the x and y coordinates given are contained within this Rectangle
*
* @param x - The X coordinate of the point to test
* @param y - The Y coordinate of the point to test
* @return Whether the x/y coordinates are within this Rectangle
* @returns Whether the x/y coordinates are within this Rectangle
*/

@@ -276,3 +265,2 @@ Rectangle.prototype.contains = function (x, y) {

* (width or height equal to zero) can't intersect any other rectangle.
*
* @param {Rectangle} other - The Rectangle to intersect with `this`.

@@ -346,6 +334,5 @@ * @param {Matrix} transform - The transformation matrix of `other`.

* If paddingY is omitted, both paddingX and paddingY will be set to paddingX.
*
* @param paddingX - The horizontal padding amount.
* @param paddingY - The vertical padding amount.
* @return Returns itself.
* @returns Returns itself.
*/

@@ -363,5 +350,4 @@ Rectangle.prototype.pad = function (paddingX, paddingY) {

* Fits this rectangle around the passed one.
*
* @param rectangle - The rectangle to fit.
* @return Returns itself.
* @returns Returns itself.
*/

@@ -381,6 +367,5 @@ Rectangle.prototype.fit = function (rectangle) {

* Enlarges rectangle that way its corners lie on grid
*
* @param resolution - resolution
* @param eps - precision
* @return Returns itself.
* @returns Returns itself.
*/

@@ -400,5 +385,4 @@ Rectangle.prototype.ceil = function (resolution, eps) {

* Enlarges this rectangle to include the passed rectangle.
*
* @param rectangle - The rectangle to include.
* @return Returns itself.
* @returns Returns itself.
*/

@@ -424,3 +408,2 @@ Rectangle.prototype.enlarge = function (rectangle) {

* The Circle object is used to help draw graphics and can also be used to specify a hit area for displayObjects.
*
* @memberof PIXI

@@ -445,4 +428,3 @@ */

* Creates a clone of this Circle instance
*
* @return A copy of the Circle
* @returns A copy of the Circle
*/

@@ -454,6 +436,5 @@ Circle.prototype.clone = function () {

* Checks whether the x and y coordinates given are contained within this circle
*
* @param x - The X coordinate of the point to test
* @param y - The Y coordinate of the point to test
* @return Whether the x/y coordinates are within this Circle
* @returns Whether the x/y coordinates are within this Circle
*/

@@ -472,6 +453,5 @@ Circle.prototype.contains = function (x, y) {

/**
* Returns the framing rectangle of the circle as a Rectangle object
*
* @return The framing rectangle
*/
* Returns the framing rectangle of the circle as a Rectangle object
* @returns The framing rectangle
*/
Circle.prototype.getBounds = function () {

@@ -488,3 +468,2 @@ return new Rectangle(this.x - this.radius, this.y - this.radius, this.radius * 2, this.radius * 2);

* The Ellipse object is used to help draw graphics and can also be used to specify a hit area for displayObjects.
*
* @memberof PIXI

@@ -512,4 +491,3 @@ */

* Creates a clone of this Ellipse instance
*
* @return {PIXI.Ellipse} A copy of the ellipse
* @returns {PIXI.Ellipse} A copy of the ellipse
*/

@@ -521,6 +499,5 @@ Ellipse.prototype.clone = function () {

* Checks whether the x and y coordinates given are contained within this ellipse
*
* @param x - The X coordinate of the point to test
* @param y - The Y coordinate of the point to test
* @return Whether the x/y coords are within this ellipse
* @returns Whether the x/y coords are within this ellipse
*/

@@ -540,4 +517,3 @@ Ellipse.prototype.contains = function (x, y) {

* Returns the framing rectangle of the ellipse as a Rectangle object
*
* @return The framing rectangle
* @returns The framing rectangle
*/

@@ -555,3 +531,2 @@ Ellipse.prototype.getBounds = function () {

* A class to define a shape via user defined coordinates.
*
* @memberof PIXI

@@ -589,4 +564,3 @@ */

* Creates a clone of this polygon.
*
* @return - A copy of the polygon.
* @returns - A copy of the polygon.
*/

@@ -601,6 +575,5 @@ Polygon.prototype.clone = function () {

* Checks whether the x and y coordinates passed to this function are contained within this polygon.
*
* @param x - The X coordinate of the point to test.
* @param y - The Y coordinate of the point to test.
* @return - Whether the x/y coordinates are within this polygon.
* @returns - Whether the x/y coordinates are within this polygon.
*/

@@ -635,3 +608,2 @@ Polygon.prototype.contains = function (x, y) {

* top-left corner point (x, y) and by its width and its height and its radius.
*
* @memberof PIXI

@@ -662,4 +634,3 @@ */

* Creates a clone of this Rounded Rectangle.
*
* @return - A copy of the rounded rectangle.
* @returns - A copy of the rounded rectangle.
*/

@@ -671,6 +642,5 @@ RoundedRectangle.prototype.clone = function () {

* Checks whether the x and y coordinates given are contained within this Rounded Rectangle
*
* @param x - The X coordinate of the point to test.
* @param y - The Y coordinate of the point to test.
* @return - Whether the x/y coordinates are within this Rounded Rectangle.
* @returns - Whether the x/y coordinates are within this Rounded Rectangle.
*/

@@ -722,3 +692,2 @@ RoundedRectangle.prototype.contains = function (x, y) {

* An `ObservablePoint` is a point that triggers a callback when the point's position is changed.
*
* @memberof PIXI

@@ -729,3 +698,2 @@ */

* Creates a new `ObservablePoint`
*
* @param cb - callback function triggered when `x` and/or `y` are changed

@@ -735,3 +703,3 @@ * @param scope - owner of callback

* @param {number} [y=0] - position of the point on the y axis
*/
*/
function ObservablePoint(cb, scope, x, y) {

@@ -749,7 +717,6 @@ if (x === void 0) { x = 0; }

* to the clone object's values.
*
* @override
* @param cb - The callback function triggered when `x` and/or `y` are changed
* @param scope - The owner of the callback
* @return a copy of this observable point
* @returns a copy of this observable point
*/

@@ -764,3 +731,2 @@ ObservablePoint.prototype.clone = function (cb, scope) {

* If `y` is omitted, both `x` and `y` will be set to `x`.
*
* @param {number} [x=0] - position of the point on the x axis

@@ -782,3 +748,2 @@ * @param {number} [y=x] - position of the point on the y axis

* Copies x and y from the given point (`p`)
*
* @param p - The point to copy from. Can be any of type that is or extends `IPointData`

@@ -797,3 +762,2 @@ * @returns The observable point instance itself

* Copies this point's x and y into that of the given point (`p`)
*
* @param p - The point to copy to. Can be any of type that is or extends `IPointData`

@@ -808,3 +772,2 @@ * @returns The point (`p`) with values updated

* Accepts another point (`p`) and returns `true` if the given point is equal to this point
*
* @param p - The point to check

@@ -859,3 +822,2 @@ * @returns Returns `true` if both `x` and `y` are equal

* ```
*
* @memberof PIXI

@@ -896,3 +858,2 @@ */

* ty = array[5]
*
* @param array - The array that the matrix will be populated from.

@@ -910,3 +871,2 @@ */

* Sets the matrix properties.
*
* @param a - Matrix component

@@ -918,3 +878,3 @@ * @param b - Matrix component

* @param ty - Matrix component
* @return This matrix. Good for chaining method calls.
* @returns This matrix. Good for chaining method calls.
*/

@@ -932,6 +892,5 @@ Matrix.prototype.set = function (a, b, c, d, tx, ty) {

* Creates an array from the current Matrix object.
*
* @param transpose - Whether we need to transpose the matrix or not
* @param [out=new Float32Array(9)] - If provided the array will be assigned to out
* @return The newly created array which contains the matrix
* @returns The newly created array which contains the matrix
*/

@@ -970,6 +929,5 @@ Matrix.prototype.toArray = function (transpose, out) {

* Can be used to go from a child's coordinate space to the world coordinate space. (e.g. rendering)
*
* @param pos - The origin
* @param {PIXI.Point} [newPos] - The point that the new position is assigned to (allowed to be same as input)
* @return {PIXI.Point} The new point, transformed through this matrix
* @returns {PIXI.Point} The new point, transformed through this matrix
*/

@@ -987,6 +945,5 @@ Matrix.prototype.apply = function (pos, newPos) {

* Can be used to go from the world coordinate space to a child's coordinate space. (e.g. input)
*
* @param pos - The origin
* @param {PIXI.Point} [newPos] - The point that the new position is assigned to (allowed to be same as input)
* @return {PIXI.Point} The new point, inverse-transformed through this matrix
* @returns {PIXI.Point} The new point, inverse-transformed through this matrix
*/

@@ -1004,6 +961,5 @@ Matrix.prototype.applyInverse = function (pos, newPos) {

* Translates the matrix on the x and y.
*
* @param x - How much to translate x by
* @param y - How much to translate y by
* @return This matrix. Good for chaining method calls.
* @returns This matrix. Good for chaining method calls.
*/

@@ -1017,6 +973,5 @@ Matrix.prototype.translate = function (x, y) {

* Applies a scale transformation to the matrix.
*
* @param x - The amount to scale horizontally
* @param y - The amount to scale vertically
* @return This matrix. Good for chaining method calls.
* @returns This matrix. Good for chaining method calls.
*/

@@ -1034,5 +989,4 @@ Matrix.prototype.scale = function (x, y) {

* Applies a rotation transformation to the matrix.
*
* @param angle - The angle in radians.
* @return This matrix. Good for chaining method calls.
* @returns This matrix. Good for chaining method calls.
*/

@@ -1055,5 +1009,4 @@ Matrix.prototype.rotate = function (angle) {

* Appends the given Matrix to this Matrix.
*
* @param matrix - The matrix to append.
* @return This matrix. Good for chaining method calls.
* @returns This matrix. Good for chaining method calls.
*/

@@ -1075,3 +1028,2 @@ Matrix.prototype.append = function (matrix) {

* Sets the matrix based on all the available properties
*
* @param x - Position on the x axis

@@ -1086,3 +1038,3 @@ * @param y - Position on the y axis

* @param skewY - Skew on the y axis
* @return This matrix. Good for chaining method calls.
* @returns This matrix. Good for chaining method calls.
*/

@@ -1100,5 +1052,4 @@ Matrix.prototype.setTransform = function (x, y, pivotX, pivotY, scaleX, scaleY, rotation, skewX, skewY) {

* Prepends the given Matrix to this Matrix.
*
* @param matrix - The matrix to prepend
* @return This matrix. Good for chaining method calls.
* @returns This matrix. Good for chaining method calls.
*/

@@ -1121,5 +1072,4 @@ Matrix.prototype.prepend = function (matrix) {

* Decomposes the matrix (x, y, scaleX, scaleY, and rotation) and sets the properties on to a transform.
*
* @param transform - The transform to apply the properties to.
* @return The transform with the newly applied properties
* @returns The transform with the newly applied properties
*/

@@ -1155,4 +1105,3 @@ Matrix.prototype.decompose = function (transform) {

* Inverts this matrix
*
* @return This matrix. Good for chaining method calls.
* @returns This matrix. Good for chaining method calls.
*/

@@ -1176,4 +1125,3 @@ Matrix.prototype.invert = function () {

* Resets this Matrix to an identity (default) matrix.
*
* @return This matrix. Good for chaining method calls.
* @returns This matrix. Good for chaining method calls.
*/

@@ -1191,4 +1139,3 @@ Matrix.prototype.identity = function () {

* Creates a new Matrix object with the same values as this one.
*
* @return A copy of this matrix. Good for chaining method calls.
* @returns A copy of this matrix. Good for chaining method calls.
*/

@@ -1207,5 +1154,4 @@ Matrix.prototype.clone = function () {

* Changes the values of the given matrix to be the same as the ones in this matrix
*
* @param matrix - The matrix to copy to.
* @return The matrix given in parameter with its values updated.
* @returns The matrix given in parameter with its values updated.
*/

@@ -1223,5 +1169,4 @@ Matrix.prototype.copyTo = function (matrix) {

* Changes the values of the matrix to be the same as the ones in given matrix
*
* @param {PIXI.Matrix} matrix - The matrix to copy from.
* @return {PIXI.Matrix} this
* @returns {PIXI.Matrix} this
*/

@@ -1243,3 +1188,2 @@ Matrix.prototype.copyFrom = function (matrix) {

* A default (identity) matrix
*
* @readonly

@@ -1256,3 +1200,2 @@ */

* A temp matrix
*
* @readonly

@@ -1282,4 +1225,3 @@ */

* for the composition of each rotation in the dihederal group D8.
*
* @type number[][]
* @type {number[][]}
* @private

@@ -1290,4 +1232,3 @@ */

* Matrices for each `GD8Symmetry` rotation.
*
* @type Matrix[]
* @type {PIXI.Matrix[]}
* @private

@@ -1348,3 +1289,2 @@ */

* This is the small part of gameofbombs.com portal system. It works.
*
* @see PIXI.groupD8.E

@@ -1367,3 +1307,2 @@ * @see PIXI.groupD8.SE

* | 0° | East |
*
* @memberof PIXI.groupD8

@@ -1377,3 +1316,2 @@ * @constant {PIXI.GD8Symmetry}

* | 45°↻ | Southeast |
*
* @memberof PIXI.groupD8

@@ -1387,3 +1325,2 @@ * @constant {PIXI.GD8Symmetry}

* | 90°↻ | South |
*
* @memberof PIXI.groupD8

@@ -1397,3 +1334,2 @@ * @constant {PIXI.GD8Symmetry}

* | 135°↻ | Southwest |
*
* @memberof PIXI.groupD8

@@ -1407,3 +1343,2 @@ * @constant {PIXI.GD8Symmetry}

* | 180° | West |
*
* @memberof PIXI.groupD8

@@ -1417,3 +1352,2 @@ * @constant {PIXI.GD8Symmetry}

* | -135°/225°↻ | Northwest |
*
* @memberof PIXI.groupD8

@@ -1427,3 +1361,2 @@ * @constant {PIXI.GD8Symmetry}

* | -90°/270°↻ | North |
*
* @memberof PIXI.groupD8

@@ -1437,3 +1370,2 @@ * @constant {PIXI.GD8Symmetry}

* | -45°/315°↻ | Northeast |
*
* @memberof PIXI.groupD8

@@ -1445,3 +1377,2 @@ * @constant {PIXI.GD8Symmetry}

* Reflection about Y-axis.
*
* @memberof PIXI.groupD8

@@ -1453,3 +1384,2 @@ * @constant {PIXI.GD8Symmetry}

* Reflection about the main diagonal.
*
* @memberof PIXI.groupD8

@@ -1461,3 +1391,2 @@ * @constant {PIXI.GD8Symmetry}

* Reflection about X-axis.
*
* @memberof PIXI.groupD8

@@ -1469,3 +1398,2 @@ * @constant {PIXI.GD8Symmetry}

* Reflection about reverse diagonal.
*
* @memberof PIXI.groupD8

@@ -1478,3 +1406,3 @@ * @constant {PIXI.GD8Symmetry}

* @param {PIXI.GD8Symmetry} ind - sprite rotation angle.
* @return {PIXI.GD8Symmetry} The X-component of the U-axis
* @returns {PIXI.GD8Symmetry} The X-component of the U-axis
* after rotating the axes.

@@ -1486,3 +1414,3 @@ */

* @param {PIXI.GD8Symmetry} ind - sprite rotation angle.
* @return {PIXI.GD8Symmetry} The Y-component of the U-axis
* @returns {PIXI.GD8Symmetry} The Y-component of the U-axis
* after rotating the axes.

@@ -1494,3 +1422,3 @@ */

* @param {PIXI.GD8Symmetry} ind - sprite rotation angle.
* @return {PIXI.GD8Symmetry} The X-component of the V-axis
* @returns {PIXI.GD8Symmetry} The X-component of the V-axis
* after rotating the axes.

@@ -1502,3 +1430,3 @@ */

* @param {PIXI.GD8Symmetry} ind - sprite rotation angle.
* @return {PIXI.GD8Symmetry} The Y-component of the V-axis
* @returns {PIXI.GD8Symmetry} The Y-component of the V-axis
* after rotating the axes.

@@ -1512,3 +1440,3 @@ */

* reflections don't.
* @return {PIXI.GD8Symmetry} The opposite symmetry of `rotation`
* @returns {PIXI.GD8Symmetry} The opposite symmetry of `rotation`
*/

@@ -1544,3 +1472,3 @@ inv: function (rotation) {

* is the column in the above cayley table.
* @return {PIXI.GD8Symmetry} Composed operation
* @returns {PIXI.GD8Symmetry} Composed operation
*/

@@ -1550,7 +1478,6 @@ add: function (rotationSecond, rotationFirst) { return (rotationCayley[rotationSecond][rotationFirst]); },

* Reverse of `add`.
*
* @memberof PIXI.groupD8
* @param {PIXI.GD8Symmetry} rotationSecond - Second operation
* @param {PIXI.GD8Symmetry} rotationFirst - First operation
* @return {PIXI.GD8Symmetry} Result
* @returns {PIXI.GD8Symmetry} Result
*/

@@ -1561,3 +1488,2 @@ sub: function (rotationSecond, rotationFirst) { return (rotationCayley[rotationSecond][groupD8.inv(rotationFirst)]); },

* operation.
*
* @memberof PIXI.groupD8

@@ -1571,3 +1497,2 @@ * @param {number} rotation - The number to rotate.

* or north. It doesn't work for reflections.
*
* @memberof PIXI.groupD8

@@ -1581,7 +1506,6 @@ * @param {PIXI.GD8Symmetry} rotation - The number to check.

* eight directions provided by `groupD8`.
*
* @memberof PIXI.groupD8
* @param {number} dx - X-component of the vector
* @param {number} dy - Y-component of the vector
* @return {PIXI.GD8Symmetry} Approximation of the vector into
* @returns {PIXI.GD8Symmetry} Approximation of the vector into
* one of the eight symmetries.

@@ -1615,3 +1539,2 @@ */

* Helps sprite to compensate texture packer rotation.
*
* @memberof PIXI.groupD8

@@ -1636,3 +1559,2 @@ * @param {PIXI.Matrix} matrix - sprite world matrix

* Transform that takes care about its versions.
*
* @memberof PIXI

@@ -1696,3 +1618,2 @@ */

* Updates the local and the world transformation matrices.
*
* @param parentTransform - The parent transform

@@ -1731,3 +1652,2 @@ */

* Decomposes a matrix and sets the transforms properties based on it.
*
* @param matrix - The matrix to decompose

@@ -1734,0 +1654,0 @@ */

/*!
* @pixi/math - v6.3.2
* Compiled Wed, 04 May 2022 17:49:13 UTC
* @pixi/math - v6.4.0
* Compiled Wed, 01 Jun 2022 21:14:23 UTC
*

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

/// <reference path="./global.d.ts" />
/**
* The Circle object is used to help draw graphics and can also be used to specify a hit area for displayObjects.
*
* @memberof PIXI

@@ -18,3 +16,2 @@ */

* The type of the object, mainly used to avoid `instanceof` checks
*
* @default PIXI.SHAPES.CIRC

@@ -32,4 +29,3 @@ * @see PIXI.SHAPES

* Creates a clone of this Circle instance
*
* @return A copy of the Circle
* @returns A copy of the Circle
*/

@@ -39,13 +35,11 @@ clone(): Circle;

* Checks whether the x and y coordinates given are contained within this circle
*
* @param x - The X coordinate of the point to test
* @param y - The Y coordinate of the point to test
* @return Whether the x/y coordinates are within this Circle
* @returns Whether the x/y coordinates are within this Circle
*/
contains(x: number, y: number): boolean;
/**
* Returns the framing rectangle of the circle as a Rectangle object
*
* @return The framing rectangle
*/
* Returns the framing rectangle of the circle as a Rectangle object
* @returns The framing rectangle
*/
getBounds(): Rectangle;

@@ -57,3 +51,2 @@ toString(): string;

* Conversion factor for converting degrees to radians.
*
* @static

@@ -67,3 +60,2 @@ * @member {number}

* The Ellipse object is used to help draw graphics and can also be used to specify a hit area for displayObjects.
*
* @memberof PIXI

@@ -82,3 +74,2 @@ */

* The type of the object, mainly used to avoid `instanceof` checks
*
* @default PIXI.SHAPES.ELIP

@@ -97,4 +88,3 @@ * @see PIXI.SHAPES

* Creates a clone of this Ellipse instance
*
* @return {PIXI.Ellipse} A copy of the ellipse
* @returns {PIXI.Ellipse} A copy of the ellipse
*/

@@ -104,6 +94,5 @@ clone(): Ellipse;

* Checks whether the x and y coordinates given are contained within this ellipse
*
* @param x - The X coordinate of the point to test
* @param y - The Y coordinate of the point to test
* @return Whether the x/y coords are within this ellipse
* @returns Whether the x/y coords are within this ellipse
*/

@@ -113,4 +102,3 @@ contains(x: number, y: number): boolean;

* Returns the framing rectangle of the ellipse as a Rectangle object
*
* @return The framing rectangle
* @returns The framing rectangle
*/

@@ -135,3 +123,2 @@ getBounds(): Rectangle;

* This is the small part of gameofbombs.com portal system. It works.
*
* @see PIXI.groupD8.E

@@ -154,3 +141,2 @@ * @see PIXI.groupD8.SE

* | 0° | East |
*
* @memberof PIXI.groupD8

@@ -164,3 +150,2 @@ * @constant {PIXI.GD8Symmetry}

* | 45°↻ | Southeast |
*
* @memberof PIXI.groupD8

@@ -174,3 +159,2 @@ * @constant {PIXI.GD8Symmetry}

* | 90°↻ | South |
*
* @memberof PIXI.groupD8

@@ -184,3 +168,2 @@ * @constant {PIXI.GD8Symmetry}

* | 135°↻ | Southwest |
*
* @memberof PIXI.groupD8

@@ -194,3 +177,2 @@ * @constant {PIXI.GD8Symmetry}

* | 180° | West |
*
* @memberof PIXI.groupD8

@@ -204,3 +186,2 @@ * @constant {PIXI.GD8Symmetry}

* | -135°/225°↻ | Northwest |
*
* @memberof PIXI.groupD8

@@ -214,3 +195,2 @@ * @constant {PIXI.GD8Symmetry}

* | -90°/270°↻ | North |
*
* @memberof PIXI.groupD8

@@ -224,3 +204,2 @@ * @constant {PIXI.GD8Symmetry}

* | -45°/315°↻ | Northeast |
*
* @memberof PIXI.groupD8

@@ -232,3 +211,2 @@ * @constant {PIXI.GD8Symmetry}

* Reflection about Y-axis.
*
* @memberof PIXI.groupD8

@@ -240,3 +218,2 @@ * @constant {PIXI.GD8Symmetry}

* Reflection about the main diagonal.
*
* @memberof PIXI.groupD8

@@ -248,3 +225,2 @@ * @constant {PIXI.GD8Symmetry}

* Reflection about X-axis.
*
* @memberof PIXI.groupD8

@@ -256,3 +232,2 @@ * @constant {PIXI.GD8Symmetry}

* Reflection about reverse diagonal.
*
* @memberof PIXI.groupD8

@@ -265,3 +240,3 @@ * @constant {PIXI.GD8Symmetry}

* @param {PIXI.GD8Symmetry} ind - sprite rotation angle.
* @return {PIXI.GD8Symmetry} The X-component of the U-axis
* @returns {PIXI.GD8Symmetry} The X-component of the U-axis
* after rotating the axes.

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

* @param {PIXI.GD8Symmetry} ind - sprite rotation angle.
* @return {PIXI.GD8Symmetry} The Y-component of the U-axis
* @returns {PIXI.GD8Symmetry} The Y-component of the U-axis
* after rotating the axes.

@@ -281,3 +256,3 @@ */

* @param {PIXI.GD8Symmetry} ind - sprite rotation angle.
* @return {PIXI.GD8Symmetry} The X-component of the V-axis
* @returns {PIXI.GD8Symmetry} The X-component of the V-axis
* after rotating the axes.

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

* @param {PIXI.GD8Symmetry} ind - sprite rotation angle.
* @return {PIXI.GD8Symmetry} The Y-component of the V-axis
* @returns {PIXI.GD8Symmetry} The Y-component of the V-axis
* after rotating the axes.

@@ -299,3 +274,3 @@ */

* reflections don't.
* @return {PIXI.GD8Symmetry} The opposite symmetry of `rotation`
* @returns {PIXI.GD8Symmetry} The opposite symmetry of `rotation`
*/

@@ -325,3 +300,3 @@ inv: (rotation: GD8Symmetry) => GD8Symmetry;

* is the column in the above cayley table.
* @return {PIXI.GD8Symmetry} Composed operation
* @returns {PIXI.GD8Symmetry} Composed operation
*/

@@ -331,7 +306,6 @@ add: (rotationSecond: GD8Symmetry, rotationFirst: GD8Symmetry) => GD8Symmetry;

* Reverse of `add`.
*
* @memberof PIXI.groupD8
* @param {PIXI.GD8Symmetry} rotationSecond - Second operation
* @param {PIXI.GD8Symmetry} rotationFirst - First operation
* @return {PIXI.GD8Symmetry} Result
* @returns {PIXI.GD8Symmetry} Result
*/

@@ -342,3 +316,2 @@ sub: (rotationSecond: GD8Symmetry, rotationFirst: GD8Symmetry) => GD8Symmetry;

* operation.
*
* @memberof PIXI.groupD8

@@ -352,3 +325,2 @@ * @param {number} rotation - The number to rotate.

* or north. It doesn't work for reflections.
*
* @memberof PIXI.groupD8

@@ -362,7 +334,6 @@ * @param {PIXI.GD8Symmetry} rotation - The number to check.

* eight directions provided by `groupD8`.
*
* @memberof PIXI.groupD8
* @param {number} dx - X-component of the vector
* @param {number} dy - Y-component of the vector
* @return {PIXI.GD8Symmetry} Approximation of the vector into
* @returns {PIXI.GD8Symmetry} Approximation of the vector into
* one of the eight symmetries.

@@ -373,3 +344,2 @@ */

* Helps sprite to compensate texture packer rotation.
*
* @memberof PIXI.groupD8

@@ -412,3 +382,2 @@ * @param {PIXI.Matrix} matrix - sprite world matrix

* ```
*
* @memberof PIXI

@@ -448,3 +417,2 @@ */

* ty = array[5]
*
* @param array - The array that the matrix will be populated from.

@@ -455,3 +423,2 @@ */

* Sets the matrix properties.
*
* @param a - Matrix component

@@ -463,3 +430,3 @@ * @param b - Matrix component

* @param ty - Matrix component
* @return This matrix. Good for chaining method calls.
* @returns This matrix. Good for chaining method calls.
*/

@@ -469,6 +436,5 @@ set(a: number, b: number, c: number, d: number, tx: number, ty: number): this;

* Creates an array from the current Matrix object.
*
* @param transpose - Whether we need to transpose the matrix or not
* @param [out=new Float32Array(9)] - If provided the array will be assigned to out
* @return The newly created array which contains the matrix
* @returns The newly created array which contains the matrix
*/

@@ -479,6 +445,5 @@ toArray(transpose: boolean, out?: Float32Array): Float32Array;

* Can be used to go from a child's coordinate space to the world coordinate space. (e.g. rendering)
*
* @param pos - The origin
* @param {PIXI.Point} [newPos] - The point that the new position is assigned to (allowed to be same as input)
* @return {PIXI.Point} The new point, transformed through this matrix
* @returns {PIXI.Point} The new point, transformed through this matrix
*/

@@ -489,6 +454,5 @@ apply<P extends IPointData = Point>(pos: IPointData, newPos?: P): P;

* Can be used to go from the world coordinate space to a child's coordinate space. (e.g. input)
*
* @param pos - The origin
* @param {PIXI.Point} [newPos] - The point that the new position is assigned to (allowed to be same as input)
* @return {PIXI.Point} The new point, inverse-transformed through this matrix
* @returns {PIXI.Point} The new point, inverse-transformed through this matrix
*/

@@ -498,6 +462,5 @@ applyInverse<P extends IPointData = Point>(pos: IPointData, newPos?: P): P;

* Translates the matrix on the x and y.
*
* @param x - How much to translate x by
* @param y - How much to translate y by
* @return This matrix. Good for chaining method calls.
* @returns This matrix. Good for chaining method calls.
*/

@@ -507,6 +470,5 @@ translate(x: number, y: number): this;

* Applies a scale transformation to the matrix.
*
* @param x - The amount to scale horizontally
* @param y - The amount to scale vertically
* @return This matrix. Good for chaining method calls.
* @returns This matrix. Good for chaining method calls.
*/

@@ -516,5 +478,4 @@ scale(x: number, y: number): this;

* Applies a rotation transformation to the matrix.
*
* @param angle - The angle in radians.
* @return This matrix. Good for chaining method calls.
* @returns This matrix. Good for chaining method calls.
*/

@@ -524,5 +485,4 @@ rotate(angle: number): this;

* Appends the given Matrix to this Matrix.
*
* @param matrix - The matrix to append.
* @return This matrix. Good for chaining method calls.
* @returns This matrix. Good for chaining method calls.
*/

@@ -532,3 +492,2 @@ append(matrix: Matrix): this;

* Sets the matrix based on all the available properties
*
* @param x - Position on the x axis

@@ -543,3 +502,3 @@ * @param y - Position on the y axis

* @param skewY - Skew on the y axis
* @return This matrix. Good for chaining method calls.
* @returns This matrix. Good for chaining method calls.
*/

@@ -549,5 +508,4 @@ setTransform(x: number, y: number, pivotX: number, pivotY: number, scaleX: number, scaleY: number, rotation: number, skewX: number, skewY: number): this;

* Prepends the given Matrix to this Matrix.
*
* @param matrix - The matrix to prepend
* @return This matrix. Good for chaining method calls.
* @returns This matrix. Good for chaining method calls.
*/

@@ -557,5 +515,4 @@ prepend(matrix: Matrix): this;

* Decomposes the matrix (x, y, scaleX, scaleY, and rotation) and sets the properties on to a transform.
*
* @param transform - The transform to apply the properties to.
* @return The transform with the newly applied properties
* @returns The transform with the newly applied properties
*/

@@ -565,4 +522,3 @@ decompose(transform: Transform): Transform;

* Inverts this matrix
*
* @return This matrix. Good for chaining method calls.
* @returns This matrix. Good for chaining method calls.
*/

@@ -572,4 +528,3 @@ invert(): this;

* Resets this Matrix to an identity (default) matrix.
*
* @return This matrix. Good for chaining method calls.
* @returns This matrix. Good for chaining method calls.
*/

@@ -579,4 +534,3 @@ identity(): this;

* Creates a new Matrix object with the same values as this one.
*
* @return A copy of this matrix. Good for chaining method calls.
* @returns A copy of this matrix. Good for chaining method calls.
*/

@@ -586,5 +540,4 @@ clone(): Matrix;

* Changes the values of the given matrix to be the same as the ones in this matrix
*
* @param matrix - The matrix to copy to.
* @return The matrix given in parameter with its values updated.
* @returns The matrix given in parameter with its values updated.
*/

@@ -594,5 +547,4 @@ copyTo(matrix: Matrix): Matrix;

* Changes the values of the matrix to be the same as the ones in given matrix
*
* @param {PIXI.Matrix} matrix - The matrix to copy from.
* @return {PIXI.Matrix} this
* @returns {PIXI.Matrix} this
*/

@@ -603,3 +555,2 @@ copyFrom(matrix: Matrix): this;

* A default (identity) matrix
*
* @readonly

@@ -610,3 +561,2 @@ */

* A temp matrix
*
* @readonly

@@ -625,3 +575,2 @@ */

* An `ObservablePoint` is a point that triggers a callback when the point's position is changed.
*
* @memberof PIXI

@@ -638,3 +587,2 @@ */

* Creates a new `ObservablePoint`
*
* @param cb - callback function triggered when `x` and/or `y` are changed

@@ -644,3 +592,3 @@ * @param scope - owner of callback

* @param {number} [y=0] - position of the point on the y axis
*/
*/
constructor(cb: (this: T) => any, scope: T, x?: number, y?: number);

@@ -651,7 +599,6 @@ /**

* to the clone object's values.
*
* @override
* @param cb - The callback function triggered when `x` and/or `y` are changed
* @param scope - The owner of the callback
* @return a copy of this observable point
* @returns a copy of this observable point
*/

@@ -662,3 +609,2 @@ clone(cb?: (this: T) => any, scope?: any): ObservablePoint;

* If `y` is omitted, both `x` and `y` will be set to `x`.
*
* @param {number} [x=0] - position of the point on the x axis

@@ -671,3 +617,2 @@ * @param {number} [y=x] - position of the point on the y axis

* Copies x and y from the given point (`p`)
*
* @param p - The point to copy from. Can be any of type that is or extends `IPointData`

@@ -679,3 +624,2 @@ * @returns The observable point instance itself

* Copies this point's x and y into that of the given point (`p`)
*
* @param p - The point to copy to. Can be any of type that is or extends `IPointData`

@@ -687,3 +631,2 @@ * @returns The point (`p`) with values updated

* Accepts another point (`p`) and returns `true` if the given point is equal to this point
*
* @param p - The point to check

@@ -704,3 +647,2 @@ * @returns Returns `true` if both `x` and `y` are equal

* Two Pi.
*
* @static

@@ -718,6 +660,5 @@ * @member {number}

* the position on the horizontal axis and `y` represents the position on the vertical axis
*
* @class
* @memberof PIXI
* @implements IPoint
* @implements {IPoint}
*/

@@ -729,3 +670,4 @@ export declare class Point implements IPoint {

y: number;
/** Creates a new `Point`
/**
* Creates a new `Point`
* @param {number} [x=0] - position of the point on the x axis

@@ -735,3 +677,4 @@ * @param {number} [y=0] - position of the point on the y axis

constructor(x?: number, y?: number);
/** Creates a clone of this point
/**
* Creates a clone of this point
* @returns A clone of this point

@@ -742,3 +685,2 @@ */

* Copies `x` and `y` from the given point into this point
*
* @param p - The point to copy from

@@ -750,3 +692,2 @@ * @returns The point instance itself

* Copies this point's x and y into the given point (`p`).
*
* @param p - The point to copy to. Can be any of type that is or extends `IPointData`

@@ -758,3 +699,2 @@ * @returns The point (`p`) with values updated

* Accepts another point (`p`) and returns `true` if the given point is equal to this point
*
* @param p - The point to check

@@ -767,3 +707,2 @@ * @returns Returns `true` if both `x` and `y` are equal

* If `y` is omitted, both `x` and `y` will be set to `x`.
*
* @param {number} [x=0] - position of the point on the `x` axis

@@ -779,3 +718,2 @@ * @param {number} [y=x] - position of the point on the `y` axis

* A class to define a shape via user defined coordinates.
*
* @memberof PIXI

@@ -790,3 +728,2 @@ */

* The type of the object, mainly used to avoid `instanceof` checks
*
* @default PIXI.SHAPES.POLY

@@ -800,4 +737,3 @@ * @see PIXI.SHAPES

* Creates a clone of this polygon.
*
* @return - A copy of the polygon.
* @returns - A copy of the polygon.
*/

@@ -807,6 +743,5 @@ clone(): Polygon;

* Checks whether the x and y coordinates passed to this function are contained within this polygon.
*
* @param x - The X coordinate of the point to test.
* @param y - The Y coordinate of the point to test.
* @return - Whether the x/y coordinates are within this polygon.
* @returns - Whether the x/y coordinates are within this polygon.
*/

@@ -819,3 +754,2 @@ contains(x: number, y: number): boolean;

* Conversion factor for converting radians to degrees.
*
* @static

@@ -832,5 +766,6 @@ * @member {number} RAD_TO_DEG

* Size object, contains width and height
*
* @memberof PIXI
* @typedef {object} ISize
* @typedef {object} ISize@typedef {object} ISize
* @property {number} width - Width component
* @property {number} height - Height component
*/

@@ -840,3 +775,2 @@ /**

* point (x, y) and by its width and its height.
*
* @memberof PIXI

@@ -865,3 +799,3 @@ */

*/
constructor(x?: number, y?: number, width?: number, height?: number);
constructor(x?: string | number, y?: string | number, width?: string | number, height?: string | number);
/** Returns the left edge of the rectangle. */

@@ -879,4 +813,3 @@ get left(): number;

* Creates a clone of this Rectangle
*
* @return a copy of the rectangle
* @returns a copy of the rectangle
*/

@@ -886,5 +819,4 @@ clone(): Rectangle;

* Copies another rectangle to this one.
*
* @param rectangle - The rectangle to copy from.
* @return Returns itself.
* @returns Returns itself.
*/

@@ -894,5 +826,4 @@ copyFrom(rectangle: Rectangle): Rectangle;

* Copies this rectangle to another one.
*
* @param rectangle - The rectangle to copy to.
* @return Returns given parameter.
* @returns Returns given parameter.
*/

@@ -902,6 +833,5 @@ copyTo(rectangle: Rectangle): Rectangle;

* Checks whether the x and y coordinates given are contained within this Rectangle
*
* @param x - The X coordinate of the point to test
* @param y - The Y coordinate of the point to test
* @return Whether the x/y coordinates are within this Rectangle
* @returns Whether the x/y coordinates are within this Rectangle
*/

@@ -914,3 +844,2 @@ contains(x: number, y: number): boolean;

* (width or height equal to zero) can't intersect any other rectangle.
*
* @param {Rectangle} other - The Rectangle to intersect with `this`.

@@ -924,6 +853,5 @@ * @param {Matrix} transform - The transformation matrix of `other`.

* If paddingY is omitted, both paddingX and paddingY will be set to paddingX.
*
* @param paddingX - The horizontal padding amount.
* @param paddingY - The vertical padding amount.
* @return Returns itself.
* @returns Returns itself.
*/

@@ -933,5 +861,4 @@ pad(paddingX?: number, paddingY?: number): this;

* Fits this rectangle around the passed one.
*
* @param rectangle - The rectangle to fit.
* @return Returns itself.
* @returns Returns itself.
*/

@@ -941,6 +868,5 @@ fit(rectangle: Rectangle): this;

* Enlarges rectangle that way its corners lie on grid
*
* @param resolution - resolution
* @param eps - precision
* @return Returns itself.
* @returns Returns itself.
*/

@@ -950,5 +876,4 @@ ceil(resolution?: number, eps?: number): this;

* Enlarges this rectangle to include the passed rectangle.
*
* @param rectangle - The rectangle to include.
* @return Returns itself.
* @returns Returns itself.
*/

@@ -962,3 +887,2 @@ enlarge(rectangle: Rectangle): this;

* top-left corner point (x, y) and by its width and its height and its radius.
*
* @memberof PIXI

@@ -979,3 +903,2 @@ */

* The type of the object, mainly used to avoid `instanceof` checks
*
* @default PIXI.SHAPES.RREC

@@ -995,4 +918,3 @@ * @see PIXI.SHAPES

* Creates a clone of this Rounded Rectangle.
*
* @return - A copy of the rounded rectangle.
* @returns - A copy of the rounded rectangle.
*/

@@ -1002,6 +924,5 @@ clone(): RoundedRectangle;

* Checks whether the x and y coordinates given are contained within this Rounded Rectangle
*
* @param x - The X coordinate of the point to test.
* @param y - The Y coordinate of the point to test.
* @return - Whether the x/y coordinates are within this Rounded Rectangle.
* @returns - Whether the x/y coordinates are within this Rounded Rectangle.
*/

@@ -1014,3 +935,2 @@ contains(x: number, y: number): boolean;

* Constants that identify shapes, mainly to prevent `instanceof` calls.
*
* @static

@@ -1038,3 +958,2 @@ * @memberof PIXI

* Transform that takes care about its versions.
*
* @memberof PIXI

@@ -1057,6 +976,3 @@ */

skew: ObservablePoint;
/**
* The locally unique ID of the parent's world transform
* used to calculate the current world transformation matrix.
*/
/** The locally unique ID of the parent's world transform used to calculate the current world transformation matrix. */
_parentID: number;

@@ -1089,6 +1005,3 @@ /** The locally unique ID of the world transform. */

protected _localID: number;
/**
* The locally unique ID of the local transform
* used to calculate the current local transformation matrix.
*/
/** The locally unique ID of the local transform used to calculate the current local transformation matrix. */
protected _currentLocalID: number;

@@ -1105,3 +1018,2 @@ constructor();

* Updates the local and the world transformation matrices.
*
* @param parentTransform - The parent transform

@@ -1112,3 +1024,2 @@ */

* Decomposes a matrix and sets the transforms properties based on it.
*
* @param matrix - The matrix to decompose

@@ -1115,0 +1026,0 @@ */

{
"name": "@pixi/math",
"version": "6.3.2",
"version": "6.4.0",
"main": "dist/cjs/math.js",
"module": "dist/esm/math.js",
"bundle": "dist/browser/math.js",
"types": "index.d.ts",
"exports": {
".": {
"import": {
"default": "./dist/cjs/math.js",
"types": "./index.d.ts"
},
"require": {
"default": "./dist/esm/math.js",
"types": "./index.d.ts"
}
}
},
"description": "Collection of math utilities",

@@ -27,3 +40,3 @@ "author": "Mat Groves",

],
"gitHead": "87031295631dcd7db3e24b99ed7ceb2c4f963a40"
"gitHead": "e7eaa713b6e0eeb335e90384aec778f5c99c60d5"
}

Sorry, the diff of this file is too big to display

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