Skip to content

Commit e1554c3

Browse files
committed
eslint fixes
1 parent 4dfb431 commit e1554c3

15 files changed

Lines changed: 172 additions & 144 deletions

File tree

src/renderer/webgl/WebGLPipeline.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ var WebGLPipeline = new Class({
155155
* [description]
156156
*
157157
* @name Phaser.Renderer.WebGL.WebGLPipeline#vertexSize
158-
* @type {int}
158+
* @type {integer}
159159
* @since 3.0.0
160160
*/
161161
this.vertexSize = config.vertexSize;
@@ -164,7 +164,7 @@ var WebGLPipeline = new Class({
164164
* [description]
165165
*
166166
* @name Phaser.Renderer.WebGL.WebGLPipeline#topology
167-
* @type {int}
167+
* @type {integer}
168168
* @since 3.0.0
169169
*/
170170
this.topology = config.topology;
@@ -182,7 +182,7 @@ var WebGLPipeline = new Class({
182182
* This will store the amount of components of 32 bit length
183183
*
184184
* @name Phaser.Renderer.WebGL.WebGLPipeline#vertexComponentCount
185-
* @type {int}
185+
* @type {integer}
186186
* @since 3.0.0
187187
*/
188188
this.vertexComponentCount = Utils.getComponentCount(config.attributes);

src/renderer/webgl/WebGLRenderer.js

Lines changed: 41 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -187,18 +187,17 @@ var WebGLRenderer = new Class({
187187
this.blendModes[2].func = [ WebGLRenderingContext.DST_COLOR, WebGLRenderingContext.ONE_MINUS_SRC_ALPHA ];
188188
this.blendModes[3].func = [ WebGLRenderingContext.ONE, WebGLRenderingContext.ONE_MINUS_SRC_COLOR ];
189189

190-
// Intenal Renderer State (Textures, Framebuffers, Pipelines, Buffers, etc)
190+
// Internal Renderer State (Textures, Framebuffers, Pipelines, Buffers, etc)
191191

192192
/**
193193
* [description]
194194
*
195195
* @name Phaser.Renderer.WebGL.WebGLRenderer#currentActiveTextureUnit
196-
* @type {int}
196+
* @type {integer}
197197
* @since 3.1.0
198198
*/
199199
this.currentActiveTextureUnit = 0;
200200

201-
202201
/**
203202
* [description]
204203
*
@@ -262,7 +261,7 @@ var WebGLRenderer = new Class({
262261
* [description]
263262
*
264263
* @name Phaser.Renderer.WebGL.WebGLRenderer#currentBlendMode
265-
* @type {int}
264+
* @type {integer}
266265
* @since 3.0.0
267266
*/
268267
this.currentBlendMode = Infinity;
@@ -618,10 +617,10 @@ var WebGLRenderer = new Class({
618617
* @method Phaser.Renderer.WebGL.WebGLRenderer#setScissor
619618
* @since 3.0.0
620619
*
621-
* @param {int} x - [description]
622-
* @param {int} y - [description]
623-
* @param {int} w - [description]
624-
* @param {int} h - [description]
620+
* @param {integer} x - [description]
621+
* @param {integer} y - [description]
622+
* @param {integer} w - [description]
623+
* @param {integer} h - [description]
625624
*
626625
* @return {Phaser.Renderer.WebGL.WebGLRenderer} [description]
627626
*/
@@ -664,10 +663,10 @@ var WebGLRenderer = new Class({
664663
* @method Phaser.Renderer.WebGL.WebGLRenderer#pushScissor
665664
* @since 3.0.0
666665
*
667-
* @param {int} x - [description]
668-
* @param {int} y - [description]
669-
* @param {int} w - [description]
670-
* @param {int} h - [description]
666+
* @param {integer} x - [description]
667+
* @param {integer} y - [description]
668+
* @param {integer} w - [description]
669+
* @param {integer} h - [description]
671670
*
672671
* @return {Phaser.Renderer.WebGL.WebGLRenderer} [description]
673672
*/
@@ -744,7 +743,7 @@ var WebGLRenderer = new Class({
744743
* @method Phaser.Renderer.WebGL.WebGLRenderer#setBlendMode
745744
* @since 3.0.0
746745
*
747-
* @param {int} blendModeId - [description]
746+
* @param {integer} blendModeId - [description]
748747
*
749748
* @return {Phaser.Renderer.WebGL.WebGLRenderer} [description]
750749
*/
@@ -815,7 +814,7 @@ var WebGLRenderer = new Class({
815814
* @since 3.0.0
816815
*
817816
* @param {WebGLTexture} texture - [description]
818-
* @param {int} textureUnit - [description]
817+
* @param {integer} textureUnit - [description]
819818
*
820819
* @return {Phaser.Renderer.WebGL.WebGLRenderer} [description]
821820
*/
@@ -948,9 +947,9 @@ var WebGLRenderer = new Class({
948947
* @since 3.0.0
949948
*
950949
* @param {object} source - [description]
951-
* @param {int} width - [description]
952-
* @param {int} height - [description]
953-
* @param {int} scaleMode - [description]
950+
* @param {integer} width - [description]
951+
* @param {integer} height - [description]
952+
* @param {integer} scaleMode - [description]
954953
*
955954
* @return {WebGLTexture} [description]
956955
*/
@@ -996,15 +995,15 @@ var WebGLRenderer = new Class({
996995
* @method Phaser.Renderer.WebGL.WebGLRenderer#createTexture2D
997996
* @since 3.0.0
998997
*
999-
* @param {int} mipLevel - [description]
1000-
* @param {int} minFilter - [description]
1001-
* @param {int} magFilter - [description]
1002-
* @param {int} wrapT - [description]
1003-
* @param {int} wrapS - [description]
1004-
* @param {int} format - [description]
998+
* @param {integer} mipLevel - [description]
999+
* @param {integer} minFilter - [description]
1000+
* @param {integer} magFilter - [description]
1001+
* @param {integer} wrapT - [description]
1002+
* @param {integer} wrapS - [description]
1003+
* @param {integer} format - [description]
10051004
* @param {object} pixels - [description]
1006-
* @param {int} width - [description]
1007-
* @param {int} height - [description]
1005+
* @param {integer} width - [description]
1006+
* @param {integer} height - [description]
10081007
* @param {boolean} pma - [description]
10091008
*
10101009
* @return {WebGLTexture} [description]
@@ -1053,8 +1052,8 @@ var WebGLRenderer = new Class({
10531052
* @method Phaser.Renderer.WebGL.WebGLRenderer#createFramebuffer
10541053
* @since 3.0.0
10551054
*
1056-
* @param {int} width - [description]
1057-
* @param {int} height - [description]
1055+
* @param {integer} width - [description]
1056+
* @param {integer} height - [description]
10581057
* @param {WebGLFramebuffer} renderTexture - [description]
10591058
* @param {boolean} addDepthStencilBuffer - [description]
10601059
*
@@ -1152,7 +1151,7 @@ var WebGLRenderer = new Class({
11521151
* @since 3.0.0
11531152
*
11541153
* @param {ArrayBuffer} initialDataOrSize - [description]
1155-
* @param {int} bufferUsage - [description]
1154+
* @param {integer} bufferUsage - [description]
11561155
*
11571156
* @return {WebGLBuffer} [description]
11581157
*/
@@ -1175,7 +1174,7 @@ var WebGLRenderer = new Class({
11751174
* @since 3.0.0
11761175
*
11771176
* @param {ArrayBuffer} initialDataOrSize - [description]
1178-
* @param {int} bufferUsage - [description]
1177+
* @param {integer} bufferUsage - [description]
11791178
*
11801179
* @return {WebGLBuffer} [description]
11811180
*/
@@ -1465,7 +1464,7 @@ var WebGLRenderer = new Class({
14651464
* @param {HTMLCanvasElement} srcCanvas - [description]
14661465
* @param {WebGLTexture} dstTexture - [description]
14671466
* @param {boolean} shouldReallocate - [description]
1468-
* @param {int} scaleMode - [description]
1467+
* @param {integer} scaleMode - [description]
14691468
*
14701469
* @return {WebGLTexture} [description]
14711470
*/
@@ -1511,8 +1510,8 @@ var WebGLRenderer = new Class({
15111510
* @method Phaser.Renderer.WebGL.WebGLRenderer#setTextureFilter
15121511
* @since 3.0.0
15131512
*
1514-
* @param {int} texture - [description]
1515-
* @param {int} filter - [description]
1513+
* @param {integer} texture - [description]
1514+
* @param {integer} filter - [description]
15161515
*
15171516
* @return {Phaser.Renderer.WebGL.WebGLRenderer} [description]
15181517
*/
@@ -1621,7 +1620,7 @@ var WebGLRenderer = new Class({
16211620
*
16221621
* @param {WebGLProgram} program - [description]
16231622
* @param {string} name - [description]
1624-
* @param {int} x - [description]
1623+
* @param {integer} x - [description]
16251624
*
16261625
* @return {Phaser.Renderer.WebGL.WebGLRenderer} [description]
16271626
*/
@@ -1640,8 +1639,8 @@ var WebGLRenderer = new Class({
16401639
*
16411640
* @param {WebGLProgram} program - [description]
16421641
* @param {string} name - [description]
1643-
* @param {int} x - [description]
1644-
* @param {int} y - [description]
1642+
* @param {integer} x - [description]
1643+
* @param {integer} y - [description]
16451644
*
16461645
* @return {Phaser.Renderer.WebGL.WebGLRenderer} [description]
16471646
*/
@@ -1660,9 +1659,9 @@ var WebGLRenderer = new Class({
16601659
*
16611660
* @param {WebGLProgram} program - [description]
16621661
* @param {string} name - [description]
1663-
* @param {int} x - [description]
1664-
* @param {int} y - [description]
1665-
* @param {int} z - [description]
1662+
* @param {integer} x - [description]
1663+
* @param {integer} y - [description]
1664+
* @param {integer} z - [description]
16661665
*
16671666
* @return {Phaser.Renderer.WebGL.WebGLRenderer} [description]
16681667
*/
@@ -1681,10 +1680,10 @@ var WebGLRenderer = new Class({
16811680
*
16821681
* @param {WebGLProgram} program - [description]
16831682
* @param {string} name - [description]
1684-
* @param {int} x - [description]
1685-
* @param {int} y - [description]
1686-
* @param {int} z - [description]
1687-
* @param {int} w - [description]
1683+
* @param {integer} x - [description]
1684+
* @param {integer} y - [description]
1685+
* @param {integer} z - [description]
1686+
* @param {integer} w - [description]
16881687
*
16891688
* @return {Phaser.Renderer.WebGL.WebGLRenderer} [description]
16901689
*/

src/renderer/webgl/pipelines/FlatTintPipeline.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ var FlatTintPipeline = new Class({
187187
* @param {float} y - [description]
188188
* @param {float} width - [description]
189189
* @param {float} height - [description]
190-
* @param {int} fillColor - [description]
190+
* @param {integer} fillColor - [description]
191191
* @param {float} fillAlpha - [description]
192192
* @param {float} a1 - [description]
193193
* @param {float} b1 - [description]
@@ -287,7 +287,7 @@ var FlatTintPipeline = new Class({
287287
* @param {float} y1 - [description]
288288
* @param {float} x2 - [description]
289289
* @param {float} y2 - [description]
290-
* @param {int} fillColor - [description]
290+
* @param {integer} fillColor - [description]
291291
* @param {float} fillAlpha - [description]
292292
* @param {float} a1 - [description]
293293
* @param {float} b1 - [description]
@@ -373,7 +373,7 @@ var FlatTintPipeline = new Class({
373373
* @param {float} x2 - [description]
374374
* @param {float} y2 - [description]
375375
* @param {float} lineWidth - [description]
376-
* @param {int} lineColor - [description]
376+
* @param {integer} lineColor - [description]
377377
* @param {float} lineAlpha - [description]
378378
* @param {float} a - [description]
379379
* @param {float} b - [description]
@@ -431,7 +431,7 @@ var FlatTintPipeline = new Class({
431431
* @param {float} srcScaleY - [description]
432432
* @param {float} srcRotation - [description]
433433
* @param {float} path - [description]
434-
* @param {int} fillColor - [description]
434+
* @param {integer} fillColor - [description]
435435
* @param {float} fillAlpha - [description]
436436
* @param {float} a1 - [description]
437437
* @param {float} b1 - [description]
@@ -547,7 +547,7 @@ var FlatTintPipeline = new Class({
547547
* @param {float} srcRotation - [description]
548548
* @param {array} path - [description]
549549
* @param {float} lineWidth - [description]
550-
* @param {int} lineColor - [description]
550+
* @param {integer} lineColor - [description]
551551
* @param {float} lineAlpha - [description]
552552
* @param {float} a - [description]
553553
* @param {float} b - [description]
@@ -646,8 +646,8 @@ var FlatTintPipeline = new Class({
646646
* @param {float} by - [description]
647647
* @param {float} aLineWidth - [description]
648648
* @param {float} bLineWidth - [description]
649-
* @param {int} aLineColor - [description]
650-
* @param {int} bLineColor - [description]
649+
* @param {integer} aLineColor - [description]
650+
* @param {integer} bLineColor - [description]
651651
* @param {float} lineAlpha - [description]
652652
* @param {float} a1 - [description]
653653
* @param {float} b1 - [description]

0 commit comments

Comments
 (0)