@pixi/math
Advanced tools
Comparing version
/*! | ||
* @pixi/math - v5.0.0-rc.2 | ||
* Compiled Mon, 18 Feb 2019 23:45:28 UTC | ||
* @pixi/math - v5.0.0-rc.3 | ||
* Compiled Fri, 22 Mar 2019 16:33:44 UTC | ||
* | ||
@@ -649,8 +649,2 @@ * @pixi/math is licensed under the MIT License. | ||
transform.rotation = skewY; | ||
if (a < 0 && d >= 0) | ||
{ | ||
transform.rotation += (transform.rotation <= 0) ? Math.PI : -Math.PI; | ||
} | ||
transform.skew.x = transform.skew.y = 0; | ||
@@ -1632,4 +1626,2 @@ } | ||
this.closed = true; | ||
/** | ||
@@ -1651,2 +1643,9 @@ * An array of the points of this polygon | ||
this.type = SHAPES.POLY; | ||
/** | ||
* `false` after moveTo, `true` after `closePath`. In all other cases it is `true`. | ||
* @member {boolean} | ||
* @default true | ||
*/ | ||
this.closeStroke = true; | ||
}; | ||
@@ -1661,18 +1660,7 @@ | ||
{ | ||
return new Polygon(this.points.slice()); | ||
}; | ||
var polygon = new Polygon(this.points.slice()); | ||
/** | ||
* Closes the polygon, adding points if necessary. | ||
* | ||
*/ | ||
Polygon.prototype.close = function close () | ||
{ | ||
var points = this.points; | ||
polygon.closeStroke = this.closeStroke; | ||
// close the poly if the value is true! | ||
if (points[0] !== points[points.length - 2] || points[1] !== points[points.length - 1]) | ||
{ | ||
points.push(points[0], points[1]); | ||
} | ||
return polygon; | ||
}; | ||
@@ -1835,3 +1823,3 @@ | ||
export { Point, ObservablePoint, Matrix, GroupD8, Transform, Circle, Ellipse, Polygon, Rectangle, RoundedRectangle, PI_2, RAD_TO_DEG, DEG_TO_RAD, SHAPES }; | ||
export { Circle, DEG_TO_RAD, Ellipse, GroupD8, Matrix, ObservablePoint, PI_2, Point, Polygon, RAD_TO_DEG, Rectangle, RoundedRectangle, SHAPES, Transform }; | ||
//# sourceMappingURL=math.es.js.map |
/*! | ||
* @pixi/math - v5.0.0-rc.2 | ||
* Compiled Mon, 18 Feb 2019 23:45:28 UTC | ||
* @pixi/math - v5.0.0-rc.3 | ||
* Compiled Fri, 22 Mar 2019 16:33:44 UTC | ||
* | ||
@@ -653,8 +653,2 @@ * @pixi/math is licensed under the MIT License. | ||
transform.rotation = skewY; | ||
if (a < 0 && d >= 0) | ||
{ | ||
transform.rotation += (transform.rotation <= 0) ? Math.PI : -Math.PI; | ||
} | ||
transform.skew.x = transform.skew.y = 0; | ||
@@ -1636,4 +1630,2 @@ } | ||
this.closed = true; | ||
/** | ||
@@ -1655,2 +1647,9 @@ * An array of the points of this polygon | ||
this.type = SHAPES.POLY; | ||
/** | ||
* `false` after moveTo, `true` after `closePath`. In all other cases it is `true`. | ||
* @member {boolean} | ||
* @default true | ||
*/ | ||
this.closeStroke = true; | ||
}; | ||
@@ -1665,18 +1664,7 @@ | ||
{ | ||
return new Polygon(this.points.slice()); | ||
}; | ||
var polygon = new Polygon(this.points.slice()); | ||
/** | ||
* Closes the polygon, adding points if necessary. | ||
* | ||
*/ | ||
Polygon.prototype.close = function close () | ||
{ | ||
var points = this.points; | ||
polygon.closeStroke = this.closeStroke; | ||
// close the poly if the value is true! | ||
if (points[0] !== points[points.length - 2] || points[1] !== points[points.length - 1]) | ||
{ | ||
points.push(points[0], points[1]); | ||
} | ||
return polygon; | ||
}; | ||
@@ -1839,16 +1827,16 @@ | ||
exports.Point = Point; | ||
exports.ObservablePoint = ObservablePoint; | ||
exports.Matrix = Matrix; | ||
exports.GroupD8 = GroupD8; | ||
exports.Transform = Transform; | ||
exports.Circle = Circle; | ||
exports.DEG_TO_RAD = DEG_TO_RAD; | ||
exports.Ellipse = Ellipse; | ||
exports.GroupD8 = GroupD8; | ||
exports.Matrix = Matrix; | ||
exports.ObservablePoint = ObservablePoint; | ||
exports.PI_2 = PI_2; | ||
exports.Point = Point; | ||
exports.Polygon = Polygon; | ||
exports.RAD_TO_DEG = RAD_TO_DEG; | ||
exports.Rectangle = Rectangle; | ||
exports.RoundedRectangle = RoundedRectangle; | ||
exports.PI_2 = PI_2; | ||
exports.RAD_TO_DEG = RAD_TO_DEG; | ||
exports.DEG_TO_RAD = DEG_TO_RAD; | ||
exports.SHAPES = SHAPES; | ||
exports.Transform = Transform; | ||
//# sourceMappingURL=math.js.map |
{ | ||
"name": "@pixi/math", | ||
"version": "5.0.0-rc.2", | ||
"version": "5.0.0-rc.3", | ||
"main": "lib/math.js", | ||
"module": "lib/math.es.js", | ||
"bundle": "dist/math.js", | ||
"description": "Collection of math utilities", | ||
@@ -25,8 +26,9 @@ "author": "Mat Groves", | ||
"files": [ | ||
"lib" | ||
"lib", | ||
"dist" | ||
], | ||
"devDependencies": { | ||
"floss": "^2.1.5" | ||
"floss": "^2.2.0" | ||
}, | ||
"gitHead": "53b354f4e01d3baee7223756dd09a3163ad29d0f" | ||
"gitHead": "8bd27c8b903ae2c8f90d91d64e82d65b19ac1cdb" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
468437
83.06%11
57.14%4834
51.2%