From f74d1a4b0c53547c637cc6c51246a46dbbb7367f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Petre=CC=81re?= Date: Mon, 28 May 2018 14:46:27 -0300 Subject: [PATCH] cc.PI2 moved to CCMacro.js to make it more consistent with the rest of constants --- cocos2d/core/CCDrawingPrimitivesCanvas.js | 6 ------ cocos2d/core/platform/CCMacro.js | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cocos2d/core/CCDrawingPrimitivesCanvas.js b/cocos2d/core/CCDrawingPrimitivesCanvas.js index f94b4ca297..2893f3608e 100644 --- a/cocos2d/core/CCDrawingPrimitivesCanvas.js +++ b/cocos2d/core/CCDrawingPrimitivesCanvas.js @@ -23,12 +23,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ -/** - * @const - * @type {number} - */ -cc.PI2 = Math.PI * 2; - /** * Canvas of DrawingPrimitive implement version use for canvasMode * @class diff --git a/cocos2d/core/platform/CCMacro.js b/cocos2d/core/platform/CCMacro.js index a52958c3dc..b15db3a7d5 100644 --- a/cocos2d/core/platform/CCMacro.js +++ b/cocos2d/core/platform/CCMacro.js @@ -37,6 +37,12 @@ cc.INVALID_INDEX = -1; */ cc.PI = Math.PI; +/** + * @constant + * @type Number + */ +cc.PI2 = Math.PI * 2; + /** * @constant * @type Number