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 7.1.0-alpha to 7.1.0

47

lib/groupD8.d.ts

@@ -37,4 +37,3 @@ import { Matrix } from './Matrix';

* | 0° | East |
* @memberof PIXI.groupD8
* @constant {PIXI.GD8Symmetry}
* @readonly
*/

@@ -46,4 +45,3 @@ E: number;

* | 45°↻ | Southeast |
* @memberof PIXI.groupD8
* @constant {PIXI.GD8Symmetry}
* @readonly
*/

@@ -55,4 +53,3 @@ SE: number;

* | 90°↻ | South |
* @memberof PIXI.groupD8
* @constant {PIXI.GD8Symmetry}
* @readonly
*/

@@ -64,4 +61,3 @@ S: number;

* | 135°↻ | Southwest |
* @memberof PIXI.groupD8
* @constant {PIXI.GD8Symmetry}
* @readonly
*/

@@ -73,4 +69,3 @@ SW: number;

* | 180° | West |
* @memberof PIXI.groupD8
* @constant {PIXI.GD8Symmetry}
* @readonly
*/

@@ -82,4 +77,3 @@ W: number;

* | -135°/225°↻ | Northwest |
* @memberof PIXI.groupD8
* @constant {PIXI.GD8Symmetry}
* @readonly
*/

@@ -91,4 +85,3 @@ NW: number;

* | -90°/270°↻ | North |
* @memberof PIXI.groupD8
* @constant {PIXI.GD8Symmetry}
* @readonly
*/

@@ -100,4 +93,3 @@ N: number;

* | -45°/315°↻ | Northeast |
* @memberof PIXI.groupD8
* @constant {PIXI.GD8Symmetry}
* @readonly
*/

@@ -107,4 +99,3 @@ NE: number;

* Reflection about Y-axis.
* @memberof PIXI.groupD8
* @constant {PIXI.GD8Symmetry}
* @readonly
*/

@@ -114,4 +105,3 @@ MIRROR_VERTICAL: number;

* Reflection about the main diagonal.
* @memberof PIXI.groupD8
* @constant {PIXI.GD8Symmetry}
* @readonly
*/

@@ -121,4 +111,3 @@ MAIN_DIAGONAL: number;

* Reflection about X-axis.
* @memberof PIXI.groupD8
* @constant {PIXI.GD8Symmetry}
* @readonly
*/

@@ -128,8 +117,6 @@ MIRROR_HORIZONTAL: number;

* Reflection about reverse diagonal.
* @memberof PIXI.groupD8
* @constant {PIXI.GD8Symmetry}
* @readonly
*/
REVERSE_DIAGONAL: number;
/**
* @memberof PIXI.groupD8
* @param {PIXI.GD8Symmetry} ind - sprite rotation angle.

@@ -141,3 +128,2 @@ * @returns {PIXI.GD8Symmetry} The X-component of the U-axis

/**
* @memberof PIXI.groupD8
* @param {PIXI.GD8Symmetry} ind - sprite rotation angle.

@@ -149,3 +135,2 @@ * @returns {PIXI.GD8Symmetry} The Y-component of the U-axis

/**
* @memberof PIXI.groupD8
* @param {PIXI.GD8Symmetry} ind - sprite rotation angle.

@@ -157,3 +142,2 @@ * @returns {PIXI.GD8Symmetry} The X-component of the V-axis

/**
* @memberof PIXI.groupD8
* @param {PIXI.GD8Symmetry} ind - sprite rotation angle.

@@ -165,3 +149,2 @@ * @returns {PIXI.GD8Symmetry} The Y-component of the V-axis

/**
* @memberof PIXI.groupD8
* @param {PIXI.GD8Symmetry} rotation - symmetry whose opposite

@@ -190,3 +173,2 @@ * is needed. Only rotations have opposite symmetries while

* [This is a Cayley table]{@link https://en.wikipedia.org/wiki/Cayley_table}
* @memberof PIXI.groupD8
* @param {PIXI.GD8Symmetry} rotationSecond - Second operation, which

@@ -201,3 +183,2 @@ * is the row in the above cayley table.

* Reverse of `add`.
* @memberof PIXI.groupD8
* @param {PIXI.GD8Symmetry} rotationSecond - Second operation

@@ -211,3 +192,2 @@ * @param {PIXI.GD8Symmetry} rotationFirst - First operation

* operation.
* @memberof PIXI.groupD8
* @param {number} rotation - The number to rotate.

@@ -220,3 +200,2 @@ * @returns {number} Rotated number

* or north. It doesn't work for reflections.
* @memberof PIXI.groupD8
* @param {PIXI.GD8Symmetry} rotation - The number to check.

@@ -229,3 +208,2 @@ * @returns {boolean} Whether or not the direction is vertical

* eight directions provided by `groupD8`.
* @memberof PIXI.groupD8
* @param {number} dx - X-component of the vector

@@ -239,3 +217,2 @@ * @param {number} dy - Y-component of the vector

* Helps sprite to compensate texture packer rotation.
* @memberof PIXI.groupD8
* @param {PIXI.Matrix} matrix - sprite world matrix

@@ -242,0 +219,0 @@ * @param {PIXI.GD8Symmetry} rotation - The rotation factor to use.

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

import { RoundedRectangle } from './shapes/RoundedRectangle';
export * from './groupD8';
export * from './IPoint';
export * from './IPointData';
export * from './IPoint';
export * from './Matrix';
export * from './ObservablePoint';
export * from './Point';
export * from './ObservablePoint';
export * from './Matrix';
export * from './groupD8';
export * from './Transform';

@@ -15,0 +15,0 @@ export { Circle };

@@ -10,8 +10,8 @@ 'use strict';

var RoundedRectangle = require('./shapes/RoundedRectangle.js');
var groupD8 = require('./groupD8.js');
require('./IPoint.js');
require('./IPointData.js');
require('./IPoint.js');
var Matrix = require('./Matrix.js');
var ObservablePoint = require('./ObservablePoint.js');
var Point = require('./Point.js');
var ObservablePoint = require('./ObservablePoint.js');
var Matrix = require('./Matrix.js');
var groupD8 = require('./groupD8.js');
var Transform = require('./Transform.js');

@@ -27,6 +27,6 @@ var _const = require('./const.js');

exports.RoundedRectangle = RoundedRectangle.RoundedRectangle;
exports.groupD8 = groupD8.groupD8;
exports.Matrix = Matrix.Matrix;
exports.ObservablePoint = ObservablePoint.ObservablePoint;
exports.Point = Point.Point;
exports.ObservablePoint = ObservablePoint.ObservablePoint;
exports.Matrix = Matrix.Matrix;
exports.groupD8 = groupD8.groupD8;
exports.Transform = Transform.Transform;

@@ -33,0 +33,0 @@ exports.DEG_TO_RAD = _const.DEG_TO_RAD;

import { Point } from './Point';
import type { IPointData } from './IPointData';
import type { Transform } from './Transform';
import type { IPointData } from './IPointData';
/**

@@ -5,0 +5,0 @@ * The PixiJS Matrix as a class makes it a lot faster.

@@ -5,4 +5,4 @@ 'use strict';

var _const = require('./const.js');
var Point = require('./Point.js');
var _const = require('./const.js');

@@ -220,2 +220,5 @@ class Matrix {

}
toString() {
return `[@pixi/math:Matrix a=${this.a} b=${this.b} c=${this.c} d=${this.d} tx=${this.tx} ty=${this.ty}]`;
}
static get IDENTITY() {

@@ -222,0 +225,0 @@ return new Matrix();

@@ -0,3 +1,3 @@

import type { IPoint } from './IPoint';
import type { IPointData } from './IPointData';
import type { IPoint } from './IPoint';
export interface ObservablePoint extends GlobalMixins.Point, IPoint {

@@ -4,0 +4,0 @@ }

@@ -38,2 +38,5 @@ 'use strict';

}
toString() {
return `[@pixi/math:ObservablePoint x=${0} y=${0} scope=${this.scope}]`;
}
get x() {

@@ -40,0 +43,0 @@ return this._x;

@@ -31,2 +31,5 @@ 'use strict';

}
toString() {
return `[@pixi/math:Point x=${this.x} y=${this.y}]`;
}
}

@@ -33,0 +36,0 @@

@@ -32,2 +32,5 @@ 'use strict';

}
toString() {
return `[@pixi/math:Circle x=${this.x} y=${this.y} radius=${this.radius}]`;
}
}

@@ -34,0 +37,0 @@

@@ -0,3 +1,3 @@

import { SHAPES } from '../const';
import { Rectangle } from './Rectangle';
import { SHAPES } from '../const';
/**

@@ -4,0 +4,0 @@ * The Ellipse object is used to help draw graphics and can also be used to specify a hit area for displayObjects.

@@ -5,4 +5,4 @@ 'use strict';

var _const = require('../const.js');
var Rectangle = require('./Rectangle.js');
var _const = require('../const.js');

@@ -33,2 +33,5 @@ class Ellipse {

}
toString() {
return `[@pixi/math:Ellipse x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`;
}
}

@@ -35,0 +38,0 @@

@@ -42,2 +42,5 @@ 'use strict';

}
toString() {
return `[@pixi/math:PolygoncloseStroke=${this.closeStroke}points=${this.points.reduce((pointsDesc, currentPoint) => `${pointsDesc}, ${currentPoint}`, "")}]`;
}
}

@@ -44,0 +47,0 @@

@@ -154,2 +154,5 @@ 'use strict';

}
toString() {
return `[@pixi/math:Rectangle x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`;
}
}

@@ -156,0 +159,0 @@

@@ -51,2 +51,5 @@ 'use strict';

}
toString() {
return `[@pixi/math:RoundedRectangle x=${this.x} y=${this.y}width=${this.width} height=${this.height} radius=${this.radius}]`;
}
}

@@ -53,0 +56,0 @@

@@ -0,3 +1,3 @@

import { Matrix } from './Matrix';
import { ObservablePoint } from './ObservablePoint';
import { Matrix } from './Matrix';
export interface Transform extends GlobalMixins.Transform {

@@ -4,0 +4,0 @@ }

@@ -5,4 +5,4 @@ 'use strict';

var Matrix = require('./Matrix.js');
var ObservablePoint = require('./ObservablePoint.js');
var Matrix = require('./Matrix.js');

@@ -37,2 +37,5 @@ const _Transform = class {

}
toString() {
return `[@pixi/math:Transform position=(${this.position.x}, ${this.position.y}) rotation=${this.rotation} scale=(${this.scale.x}, ${this.scale.y}) skew=(${this.skew.x}, ${this.skew.y}) ]`;
}
updateLocalTransform() {

@@ -39,0 +42,0 @@ const lt = this.localTransform;

{
"name": "@pixi/math",
"version": "7.1.0-alpha",
"version": "7.1.0",
"main": "lib/index.js",

@@ -25,7 +25,7 @@ "module": "lib/index.mjs",

"homepage": "http://pixijs.com/",
"bugs": "https://github.com/pixijs/pixi.js/issues",
"bugs": "https://github.com/pixijs/pixijs/issues",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/pixijs/pixi.js.git"
"url": "https://github.com/pixijs/pixijs.git"
},

@@ -39,3 +39,3 @@ "publishConfig": {

],
"gitHead": "0fb26a500c738cb550da277c112d15d9dd3f87b6"
"gitHead": "4079e92895ecb692afe9f0b15d3e48ee40852ada"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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