@pixi/utils
Advanced tools
Comparing version 5.0.0-alpha.2 to 5.0.0-alpha.3
/*! | ||
* @pixi/utils - v5.0.0-alpha.2 | ||
* Compiled Sat, 17 Mar 2018 17:48:48 UTC | ||
* @pixi/utils - v5.0.0-alpha.3 | ||
* Compiled Tue, 03 Jul 2018 04:08:21 UTC | ||
* | ||
@@ -82,3 +82,3 @@ * @pixi/utils is licensed under the MIT License. | ||
var saidHello = false; | ||
var VERSION = '5.0.0-alpha.2'; | ||
var VERSION = '5.0.0-alpha.3'; | ||
@@ -138,7 +138,7 @@ /** | ||
/** | ||
* Helper for checking for webgl support | ||
* Helper for checking for WebGL support. | ||
* | ||
* @memberof PIXI.utils | ||
* @function isWebGLSupported | ||
* @return {boolean} is webgl supported | ||
* @return {boolean} Is WebGL supported. | ||
*/ | ||
@@ -322,3 +322,3 @@ function isWebGLSupported() | ||
* @memberof PIXI.utils | ||
* @param {number} tint integet RGB | ||
* @param {number} tint integer RGB | ||
* @param {number} alpha floating point alpha (0.0-1.0) | ||
@@ -688,3 +688,3 @@ * @returns {number} tint multiplied by alpha | ||
*/ | ||
var DATA_URI = /^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;(charset=[\w-]+|base64))?,(.*)/i; | ||
var DATA_URI = /^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;charset=([\w-]+))?(?:;(base64))?,(.*)/i; | ||
@@ -719,4 +719,5 @@ /** | ||
subType: dataUriMatch[2] ? dataUriMatch[2].toLowerCase() : undefined, | ||
encoding: dataUriMatch[3] ? dataUriMatch[3].toLowerCase() : undefined, | ||
data: dataUriMatch[4], | ||
charset: dataUriMatch[3] ? dataUriMatch[3].toLowerCase() : undefined, | ||
encoding: dataUriMatch[4] ? dataUriMatch[4].toLowerCase() : undefined, | ||
data: dataUriMatch[5], | ||
}; | ||
@@ -859,5 +860,5 @@ } | ||
* @function earcut | ||
* @param {number[]} vertices - A flat array of vertice coordinates | ||
* @param {number[]} vertices - A flat array of vertex coordinates | ||
* @param {number[]} [holes] - An array of hole indices | ||
* @param {number} [dimensions=2] The number of coordinates per vertice in the input array | ||
* @param {number} [dimensions=2] The number of coordinates per vertex in the input array | ||
* @return {number[]} Triangulated polygon | ||
@@ -864,0 +865,0 @@ */ |
/*! | ||
* @pixi/utils - v5.0.0-alpha.2 | ||
* Compiled Sat, 17 Mar 2018 17:48:48 UTC | ||
* @pixi/utils - v5.0.0-alpha.3 | ||
* Compiled Tue, 03 Jul 2018 04:08:21 UTC | ||
* | ||
@@ -88,3 +88,3 @@ * @pixi/utils is licensed under the MIT License. | ||
var saidHello = false; | ||
var VERSION = '5.0.0-alpha.2'; | ||
var VERSION = '5.0.0-alpha.3'; | ||
@@ -144,7 +144,7 @@ /** | ||
/** | ||
* Helper for checking for webgl support | ||
* Helper for checking for WebGL support. | ||
* | ||
* @memberof PIXI.utils | ||
* @function isWebGLSupported | ||
* @return {boolean} is webgl supported | ||
* @return {boolean} Is WebGL supported. | ||
*/ | ||
@@ -328,3 +328,3 @@ function isWebGLSupported() | ||
* @memberof PIXI.utils | ||
* @param {number} tint integet RGB | ||
* @param {number} tint integer RGB | ||
* @param {number} alpha floating point alpha (0.0-1.0) | ||
@@ -694,3 +694,3 @@ * @returns {number} tint multiplied by alpha | ||
*/ | ||
var DATA_URI = /^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;(charset=[\w-]+|base64))?,(.*)/i; | ||
var DATA_URI = /^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;charset=([\w-]+))?(?:;(base64))?,(.*)/i; | ||
@@ -725,4 +725,5 @@ /** | ||
subType: dataUriMatch[2] ? dataUriMatch[2].toLowerCase() : undefined, | ||
encoding: dataUriMatch[3] ? dataUriMatch[3].toLowerCase() : undefined, | ||
data: dataUriMatch[4], | ||
charset: dataUriMatch[3] ? dataUriMatch[3].toLowerCase() : undefined, | ||
encoding: dataUriMatch[4] ? dataUriMatch[4].toLowerCase() : undefined, | ||
data: dataUriMatch[5], | ||
}; | ||
@@ -865,5 +866,5 @@ } | ||
* @function earcut | ||
* @param {number[]} vertices - A flat array of vertice coordinates | ||
* @param {number[]} vertices - A flat array of vertex coordinates | ||
* @param {number[]} [holes] - An array of hole indices | ||
* @param {number} [dimensions=2] The number of coordinates per vertice in the input array | ||
* @param {number} [dimensions=2] The number of coordinates per vertex in the input array | ||
* @return {number[]} Triangulated polygon | ||
@@ -870,0 +871,0 @@ */ |
{ | ||
"name": "@pixi/utils", | ||
"version": "5.0.0-alpha.2", | ||
"version": "5.0.0-alpha.3", | ||
"main": "lib/utils.js", | ||
@@ -28,4 +28,4 @@ "module": "lib/utils.es.js", | ||
"dependencies": { | ||
"@pixi/constants": "^5.0.0-alpha.2", | ||
"@pixi/settings": "^5.0.0-alpha.2", | ||
"@pixi/constants": "^5.0.0-alpha.3", | ||
"@pixi/settings": "^5.0.0-alpha.3", | ||
"earcut": "^2.1.3", | ||
@@ -32,0 +32,0 @@ "eventemitter3": "^2.0.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
114049
1543