@vpmedia/phaser 1.1.1 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +4 -15
- package/src/index.js +0 -16
- package/src/phaser/display/webgl/shader/complex.js +1 -1
- package/src/phaser/display/webgl/shader/fast.js +1 -1
- package/src/phaser/display/webgl/shader/normal.js +1 -1
- package/src/phaser/display/webgl/shader/primitive.js +1 -1
- package/src/phaser/display/webgl/shader/strip.js +1 -1
- package/src/phaser/util/math.js +17 -0
- package/dist/phaser.cjs +0 -3
- package/dist/phaser.cjs.LICENSE.txt +0 -1
- package/dist/phaser.cjs.map +0 -1
- package/dist/phaser.js +0 -3
- package/dist/phaser.js.LICENSE.txt +0 -1
- package/dist/phaser.js.map +0 -1
- package/src/phaser/util/string.js +0 -23
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Andras Csizmadia <andras@vpmedia.hu>
|
|
3
|
-
* @author Richard Davey <rich@photonstorm.com>
|
|
4
|
-
* @copyright Copyright (c) 2018-present Richard Davey, Photon Storm Ltd., Andras Csizmadia <andras@vpmedia.hu> (www.vpmedia.hu)
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* TBD
|
|
9
|
-
*
|
|
10
|
-
* @returns {string} TBD
|
|
11
|
-
*/
|
|
12
|
-
export function generateID() {
|
|
13
|
-
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* TBD
|
|
18
|
-
*
|
|
19
|
-
* @returns {string} TBD
|
|
20
|
-
*/
|
|
21
|
-
export function generateShaderID() {
|
|
22
|
-
return (`${generateID()}${generateID()}-${generateID()}`).toLowerCase();
|
|
23
|
-
}
|