Skip to content

Commit 075347c

Browse files
committed
jsdocs tidying.
1 parent 9b3d7ae commit 075347c

2 files changed

Lines changed: 35 additions & 11 deletions

File tree

src/Phaser.js

Lines changed: 35 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,29 @@ var Phaser = Phaser || {
4646
POINTER: 19,
4747
ROPE: 20,
4848

49-
// The various blend modes supported by pixi / phaser
49+
/**
50+
* Various blend modes supported by pixi. IMPORTANT - The WebGL renderer only supports the NORMAL, ADD, MULTIPLY and SCREEN blend modes.
51+
*
52+
* @property {Object} blendModes
53+
* @property {Number} blendModes.NORMAL
54+
* @property {Number} blendModes.ADD
55+
* @property {Number} blendModes.MULTIPLY
56+
* @property {Number} blendModes.SCREEN
57+
* @property {Number} blendModes.OVERLAY
58+
* @property {Number} blendModes.DARKEN
59+
* @property {Number} blendModes.LIGHTEN
60+
* @property {Number} blendModes.COLOR_DODGE
61+
* @property {Number} blendModes.COLOR_BURN
62+
* @property {Number} blendModes.HARD_LIGHT
63+
* @property {Number} blendModes.SOFT_LIGHT
64+
* @property {Number} blendModes.DIFFERENCE
65+
* @property {Number} blendModes.EXCLUSION
66+
* @property {Number} blendModes.HUE
67+
* @property {Number} blendModes.SATURATION
68+
* @property {Number} blendModes.COLOR
69+
* @property {Number} blendModes.LUMINOSITY
70+
* @static
71+
*/
5072
blendModes: {
5173
NORMAL:0,
5274
ADD:1,
@@ -67,19 +89,22 @@ var Phaser = Phaser || {
6789
LUMINOSITY:16
6890
},
6991

70-
// The scale modes
92+
/**
93+
* The scale modes that are supported by pixi.
94+
*
95+
* The DEFAULT scale mode affects the default scaling mode of future operations.
96+
* It can be re-assigned to either LINEAR or NEAREST, depending upon suitability.
97+
*
98+
* @property {Object} scaleModes
99+
* @property {Number} scaleModes.DEFAULT=LINEAR
100+
* @property {Number} scaleModes.LINEAR Smooth scaling
101+
* @property {Number} scaleModes.NEAREST Pixelating scaling
102+
* @static
103+
*/
71104
scaleModes: {
72105
DEFAULT:0,
73106
LINEAR:0,
74107
NEAREST:1
75108
}
76109

77110
};
78-
79-
// We don't need this in Pixi, so we've removed it to save space
80-
// however the Stage object expects a reference to it, so here is a dummy entry.
81-
// Ensure that an existing PIXI.InteractionManager is not overriden - in case you're using your own PIXI library.
82-
PIXI.InteractionManager = PIXI.InteractionManager || function () {};
83-
84-
// Equally we're going to supress the Pixi console log, with their agreement.
85-
PIXI.dontSayHello = true;

src/polyfills.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,4 +151,3 @@ if (!window.console)
151151
window.console.log = window.console.assert = function(){};
152152
window.console.warn = window.console.assert = function(){};
153153
}
154-

0 commit comments

Comments
 (0)