diff --git a/demo/web-desktop/assets/common/config.40d4c.json b/demo/web-desktop/assets/common/config.40d4c.json new file mode 100644 index 00000000..5f0e3a33 --- /dev/null +++ b/demo/web-desktop/assets/common/config.40d4c.json @@ -0,0 +1,204 @@ +{ + "paths": { + "3e30KyALhNkZttyuW0A6EU": [ + "effects/custom-2d-sprite", + "cc.EffectAsset" + ], + "e8ql4cBzBOvoGh5/oNub59": [ + "fonts/SFNSMonoItalic", + "cc.TTFFont" + ], + "80AR/OlBFOoajT99htLYeJ": [ + "fonts/normalFont", + "cc.BitmapFont" + ], + "45vlnzVlVDaZ6fRVyB0t3Z": [ + "fonts/normalFont", + "cc.Texture2D" + ], + "92aqwImq1Ik7GrBSFnKTF2": [ + "fonts/normalFont", + "cc.SpriteFrame", + 1 + ], + "c1Hf3Sl8ZAnJwP/fpoHxap": [ + "images/1655112479313", + "cc.Texture2D" + ], + "a7ZscqX+JCIZRS157bMyhq": [ + "images/1655112479313", + "cc.SpriteFrame", + 1 + ], + "62MQQadaVK8qQN8n6UmJAa": [ + "images/1655112514006", + "cc.Texture2D" + ], + "85yTK+9shIo7RQfQ1TDEUi": [ + "images/1655112514006", + "cc.SpriteFrame", + 1 + ], + "39jYWzSTREwI2OOBK5nwFe": [ + "images/1655112526123", + "cc.Texture2D" + ], + "09o3P/9gBP/Yc7AnxUBZ+Q": [ + "images/1655112526123", + "cc.SpriteFrame", + 1 + ], + "d0bST/wYpJQIL5T+PCq46W": [ + "images/1655112538161", + "cc.Texture2D" + ], + "70VXjGE0JMUqGli0jmCmTF": [ + "images/1655112538161", + "cc.SpriteFrame", + 1 + ], + "68Q/ALDvRLfKrAQu5CY15V": [ + "images/1655112548981", + "cc.Texture2D" + ], + "87/8ZHBEVIkKeNxmalrn9r": [ + "images/1655112548981", + "cc.SpriteFrame", + 1 + ], + "70JFWsm5JN17FDywI0Lb5I": [ + "images/1655112563832", + "cc.Texture2D" + ], + "d0Bu8c2MBCKJc+mKBWzjsJ": [ + "images/1655112563832", + "cc.SpriteFrame", + 1 + ], + "1cijzBpFJCdoSNK98w5oUq": [ + "images/1655112624336", + "cc.Texture2D" + ], + "8029xEf4FHy49dWo6NK8c7": [ + "images/1655112624336", + "cc.SpriteFrame", + 1 + ], + "2cDGL4OAVN0ZbEl3w2urT8": [ + "materials/custom-2d-sprite", + "cc.Material" + ], + "bc2ZOJo5NCbrI0FXxitEvE": [ + "spines/spineboy", + "sp.SkeletonData" + ], + "d9xFMK7wVFwbAS60aG9McP": [ + "spines/spineboy", + "cc.Texture2D" + ], + "f2P0YcCjtHDqebnuMp4CMZ": [ + "spines/spineboy", + "cc.SpriteFrame", + 1 + ], + "b6OkwTsm1LK5cvRTwFehiy": [ + "spines/spineboy", + "cc.TextAsset" + ] + }, + "uuids": [ + "3e30KyALhNkZttyuW0A6EU", + "80AR/OlBFOoajT99htLYeJ", + "45vlnzVlVDaZ6fRVyB0t3Z", + "92aqwImq1Ik7GrBSFnKTF2", + "e8ql4cBzBOvoGh5/oNub59", + "c1Hf3Sl8ZAnJwP/fpoHxap", + "a7ZscqX+JCIZRS157bMyhq", + "62MQQadaVK8qQN8n6UmJAa", + "85yTK+9shIo7RQfQ1TDEUi", + "39jYWzSTREwI2OOBK5nwFe", + "09o3P/9gBP/Yc7AnxUBZ+Q", + "d0bST/wYpJQIL5T+PCq46W", + "70VXjGE0JMUqGli0jmCmTF", + "68Q/ALDvRLfKrAQu5CY15V", + "87/8ZHBEVIkKeNxmalrn9r", + "70JFWsm5JN17FDywI0Lb5I", + "d0Bu8c2MBCKJc+mKBWzjsJ", + "1cijzBpFJCdoSNK98w5oUq", + "8029xEf4FHy49dWo6NK8c7", + "2cDGL4OAVN0ZbEl3w2urT8", + "bc2ZOJo5NCbrI0FXxitEvE", + "d9xFMK7wVFwbAS60aG9McP", + "f2P0YcCjtHDqebnuMp4CMZ", + "b6OkwTsm1LK5cvRTwFehiy", + "6eBWFz0oVHPLIGQKf/9Thu" + ], + "scenes": {}, + "redirect": [], + "deps": [], + "packs": { + "0b9ccc5db": [ + "09o3P/9gBP/Yc7AnxUBZ+Q", + "1cijzBpFJCdoSNK98w5oUq", + "2cDGL4OAVN0ZbEl3w2urT8", + "39jYWzSTREwI2OOBK5nwFe", + "3e30KyALhNkZttyuW0A6EU", + "45vlnzVlVDaZ6fRVyB0t3Z", + "62MQQadaVK8qQN8n6UmJAa", + "68Q/ALDvRLfKrAQu5CY15V", + "6eBWFz0oVHPLIGQKf/9Thu", + "70JFWsm5JN17FDywI0Lb5I", + "70VXjGE0JMUqGli0jmCmTF", + "80AR/OlBFOoajT99htLYeJ", + "8029xEf4FHy49dWo6NK8c7", + "85yTK+9shIo7RQfQ1TDEUi", + "87/8ZHBEVIkKeNxmalrn9r", + "92aqwImq1Ik7GrBSFnKTF2", + "a7ZscqX+JCIZRS157bMyhq", + "b6OkwTsm1LK5cvRTwFehiy", + "bc2ZOJo5NCbrI0FXxitEvE", + "c1Hf3Sl8ZAnJwP/fpoHxap", + "d0Bu8c2MBCKJc+mKBWzjsJ", + "d0bST/wYpJQIL5T+PCq46W", + "d9xFMK7wVFwbAS60aG9McP", + "e8ql4cBzBOvoGh5/oNub59", + "f2P0YcCjtHDqebnuMp4CMZ" + ] + }, + "name": "common", + "importBase": "import", + "nativeBase": "native", + "debug": true, + "isZip": false, + "encrypted": false, + "versions": { + "import": [ + "0b9ccc5db", + "16f5e" + ], + "native": [ + "1cijzBpFJCdoSNK98w5oUq", + "91637", + "39jYWzSTREwI2OOBK5nwFe", + "2eb47", + "45vlnzVlVDaZ6fRVyB0t3Z", + "ca872", + "62MQQadaVK8qQN8n6UmJAa", + "40d17", + "68Q/ALDvRLfKrAQu5CY15V", + "9a531", + "6eBWFz0oVHPLIGQKf/9Thu", + "6d3cf", + "70JFWsm5JN17FDywI0Lb5I", + "7b3fa", + "c1Hf3Sl8ZAnJwP/fpoHxap", + "d86d7", + "d0bST/wYpJQIL5T+PCq46W", + "9c555", + "d9xFMK7wVFwbAS60aG9McP", + "abf6b", + "e8ql4cBzBOvoGh5/oNub59", + "a6625" + ] + } +} \ No newline at end of file diff --git a/demo/web-desktop/assets/common/import/0b/0b9ccc5db.16f5e.json b/demo/web-desktop/assets/common/import/0b/0b9ccc5db.16f5e.json new file mode 100644 index 00000000..424057b6 --- /dev/null +++ b/demo/web-desktop/assets/common/import/0b/0b9ccc5db.16f5e.json @@ -0,0 +1,9740 @@ +[ + 1, + [ + "62MQQadaVK8qQN8n6UmJAa", + "d9xFMK7wVFwbAS60aG9McP", + "39jYWzSTREwI2OOBK5nwFe", + "6eBWFz0oVHPLIGQKf/9Thu", + "3e30KyALhNkZttyuW0A6EU", + "d0bST/wYpJQIL5T+PCq46W", + "92aqwImq1Ik7GrBSFnKTF2", + "1cijzBpFJCdoSNK98w5oUq", + "68Q/ALDvRLfKrAQu5CY15V", + "45vlnzVlVDaZ6fRVyB0t3Z", + "c1Hf3Sl8ZAnJwP/fpoHxap", + "70JFWsm5JN17FDywI0Lb5I" + ], + [ + "_textureSetter", + "texture", + "texture2", + "_effectAsset", + "spriteFrame" + ], + [ + "cc.Texture2D", + "cc.SpriteFrame", + [ + "cc.Material", + [ + "_name", + "_techniqueData" + ], + 2, + 11 + ], + [ + "cc.EffectAsset", + [ + "_name", + "shaders", + "techniques" + ], + 0 + ], + [ + "cc.BitmapFont", + [ + "_name", + "fontSize", + "_fntConfig" + ], + 0 + ], + [ + "cc.TextAsset", + [ + "_name", + "text" + ], + 1 + ], + [ + "sp.SkeletonData", + [ + "_name", + "_atlasText", + "textureNames", + "_skeletonJson", + "textures" + ], + -1, + 3 + ], + [ + "cc.TTFFont", + [ + "_name", + "_native" + ], + 1 + ] + ], + [ + [ + 2, + 0, + 1, + 2 + ], + [ + 3, + 0, + 1, + 2, + 4 + ], + [ + 4, + 0, + 1, + 2, + 4 + ], + [ + 5, + 0, + 1, + 3 + ], + [ + 6, + 0, + 1, + 2, + 3, + 4, + 5 + ], + [ + 7, + 0, + 1, + 3 + ] + ], + [ + [ + [ + { + "name": "1655112526123", + "rect": [ + 0, + 0, + 656, + 992 + ], + "offset": [ + 0, + 0 + ], + "originalSize": [ + 656, + 992 + ], + "capInsets": [ + 0, + 0, + 0, + 0 + ] + } + ], + [ + 1 + ], + 0, + [ + 0 + ], + [ + 0 + ], + [ + 2 + ] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,1", + -1 + ], + [ + 0 + ], + 0, + [], + [], + [] + ], + [ + [ + [ + 0, + "custom-2d-sprite", + [ + {}, + "0", + 11, + [ + { + "defines": { + "USE_TEXTURE": true, + "USE_MULTI_TEXTURE": true + } + }, + "props", + 11, + [ + { + "blur": 0.01, + "wh_ratio": 1, + "radius": 0.45 + }, + "texture", + 6, + 0, + "texture2", + 6, + 1 + ] + ] + ] + ] + ], + 0, + 0, + [ + 0, + 0, + 0 + ], + [ + 1, + 2, + 3 + ], + [ + 0, + 3, + 4 + ] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,1", + -1 + ], + [ + 0 + ], + 0, + [], + [], + [] + ], + [ + [ + [ + 1, + "custom-2d-sprite", + [ + { + "hash": 2734998855, + "record": null, + "name": "custom-2d-sprite|vs|fs", + "glsl3": { + "vert": "\nprecision highp float;\nuniform CCGlobal {\n mat4 cc_matView;\n mat4 cc_matViewInv;\n mat4 cc_matProj;\n mat4 cc_matProjInv;\n mat4 cc_matViewProj;\n mat4 cc_matViewProjInv;\n vec4 cc_cameraPos;\n vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_screenScale;\n};\nuniform CCLocal {\n mat4 cc_matWorld;\n mat4 cc_matWorldIT;\n};\nin vec3 a_position;\nin vec4 a_color;\nout vec4 v_color;\n#if USE_TEXTURE\nin vec2 a_uv0;\nout vec2 v_uv0;\n#if USE_MULTI_TEXTURE\nin float a_texId;\nout float v_texId;\n#endif\n#endif\nvoid main () {\n vec4 pos = vec4(a_position, 1);\n #if CC_USE_MODEL\n pos = cc_matViewProj * cc_matWorld * pos;\n #else\n pos = cc_matViewProj * pos;\n #endif\n #if USE_TEXTURE\n v_uv0 = a_uv0;\n #if USE_MULTI_TEXTURE\n v_texId = a_texId;\n #endif\n #endif\n v_color = a_color;\n gl_Position = pos;\n}", + "frag": "\nprecision highp float;\n#if USE_ALPHA_TEST\n uniform ALPHA_TEST {\n float alphaThreshold;\n };\n#endif\nvoid ALPHA_TEST (in vec4 color) {\n #if USE_ALPHA_TEST\n if (color.a < alphaThreshold) discard;\n #endif\n}\nvoid ALPHA_TEST (in float alpha) {\n #if USE_ALPHA_TEST\n if (alpha < alphaThreshold) discard;\n #endif\n}\nin vec4 v_color;\n#if USE_TEXTURE\nin vec2 v_uv0;\nuniform sampler2D texture;\n#if USE_MULTI_TEXTURE\nin float v_texId;\nuniform sampler2D texture2;\nuniform sampler2D texture3;\nuniform sampler2D texture4;\nuniform sampler2D texture5;\nuniform sampler2D texture6;\nuniform sampler2D texture7;\nuniform sampler2D texture8;\n#endif\n#endif\nuniform ARGS{\n float radius;\n float blur;\n vec2 center;\n float wh_ratio;\n};\nvoid main () {\n vec4 o = vec4(1, 1, 1, 1);\n #if USE_TEXTURE\n #if USE_MULTI_TEXTURE\n if(v_texId < 1.0){\n vec4 texture_tmp = texture(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n o.a *= texture_tmp.a;\n #else\n o *= texture_tmp;\n #endif\n } else if(v_texId < 2.0){\n vec4 texture2_tmp = texture(texture2, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture2\n texture2_tmp.a *= texture(texture2, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture2_tmp.rgb * texture2_tmp.rgb);\n o.a *= texture2_tmp.a;\n #else\n o *= texture2_tmp;\n #endif\n } else if(v_texId < 3.0){\n vec4 texture3_tmp = texture(texture3, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture3\n texture3_tmp.a *= texture(texture3, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture3_tmp.rgb * texture3_tmp.rgb);\n o.a *= texture3_tmp.a;\n #else\n o *= texture3_tmp;\n #endif\n } else if(v_texId < 4.0){\n vec4 texture4_tmp = texture(texture4, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture4\n texture4_tmp.a *= texture(texture4, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture4_tmp.rgb * texture4_tmp.rgb);\n o.a *= texture4_tmp.a;\n #else\n o *= texture4_tmp;\n #endif\n } else if(v_texId < 5.0){\n vec4 texture5_tmp = texture(texture5, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture5\n texture5_tmp.a *= texture(texture5, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture5_tmp.rgb * texture5_tmp.rgb);\n o.a *= texture5_tmp.a;\n #else\n o *= texture5_tmp;\n #endif\n } else if(v_texId < 6.0){\n vec4 texture6_tmp = texture(texture6, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture6\n texture6_tmp.a *= texture(texture6, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture6_tmp.rgb * texture6_tmp.rgb);\n o.a *= texture6_tmp.a;\n #else\n o *= texture6_tmp;\n #endif\n } else if(v_texId < 7.0){\n vec4 texture7_tmp = texture(texture7, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture7\n texture7_tmp.a *= texture(texture7, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture7_tmp.rgb * texture7_tmp.rgb);\n o.a *= texture7_tmp.a;\n #else\n o *= texture7_tmp;\n #endif\n } else {\n vec4 texture8_tmp = texture(texture8, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture8\n texture8_tmp.a *= texture(texture8, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture8_tmp.rgb * texture8_tmp.rgb);\n o.a *= texture8_tmp.a;\n #else\n o *= texture8_tmp;\n #endif\n }\n #else\n vec4 texture_tmp = texture(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n o.a *= texture_tmp.a;\n #else\n o *= texture_tmp;\n #endif\n #endif\n #endif\n o *= v_color;\n ALPHA_TEST(o);\n float circle = radius * radius;\n float rx = center.x * wh_ratio;\n float ry = center.y;\n float dis = (v_uv0.x * wh_ratio - rx) * (v_uv0.x * wh_ratio - rx) + (v_uv0.y - ry) * (v_uv0.y - ry);\n o.a = smoothstep(circle, circle - blur, dis);\n gl_FragColor = o;\n}" + }, + "glsl1": { + "vert": "\nprecision highp float;\nuniform mat4 cc_matViewProj;\nuniform mat4 cc_matWorld;\nattribute vec3 a_position;\nattribute vec4 a_color;\nvarying vec4 v_color;\n#if USE_TEXTURE\nattribute vec2 a_uv0;\nvarying vec2 v_uv0;\n#if USE_MULTI_TEXTURE\nattribute float a_texId;\nvarying float v_texId;\n#endif\n#endif\nvoid main () {\n vec4 pos = vec4(a_position, 1);\n #if CC_USE_MODEL\n pos = cc_matViewProj * cc_matWorld * pos;\n #else\n pos = cc_matViewProj * pos;\n #endif\n #if USE_TEXTURE\n v_uv0 = a_uv0;\n #if USE_MULTI_TEXTURE\n v_texId = a_texId;\n #endif\n #endif\n v_color = a_color;\n gl_Position = pos;\n}", + "frag": "\nprecision highp float;\n#if USE_ALPHA_TEST\n uniform float alphaThreshold;\n#endif\nvoid ALPHA_TEST (in vec4 color) {\n #if USE_ALPHA_TEST\n if (color.a < alphaThreshold) discard;\n #endif\n}\nvoid ALPHA_TEST (in float alpha) {\n #if USE_ALPHA_TEST\n if (alpha < alphaThreshold) discard;\n #endif\n}\nvarying vec4 v_color;\n#if USE_TEXTURE\nvarying vec2 v_uv0;\nuniform sampler2D texture;\n#if USE_MULTI_TEXTURE\nvarying float v_texId;\nuniform sampler2D texture2;\nuniform sampler2D texture3;\nuniform sampler2D texture4;\nuniform sampler2D texture5;\nuniform sampler2D texture6;\nuniform sampler2D texture7;\nuniform sampler2D texture8;\n#endif\n#endif\nuniform float radius;\nuniform float blur;\nuniform vec2 center;\nuniform float wh_ratio;\nvoid main () {\n vec4 o = vec4(1, 1, 1, 1);\n #if USE_TEXTURE\n #if USE_MULTI_TEXTURE\n if(v_texId < 1.0){\n vec4 texture_tmp = texture2D(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture2D(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n o.a *= texture_tmp.a;\n #else\n o *= texture_tmp;\n #endif\n } else if(v_texId < 2.0){\n vec4 texture2_tmp = texture2D(texture2, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture2\n texture2_tmp.a *= texture2D(texture2, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture2_tmp.rgb * texture2_tmp.rgb);\n o.a *= texture2_tmp.a;\n #else\n o *= texture2_tmp;\n #endif\n } else if(v_texId < 3.0){\n vec4 texture3_tmp = texture2D(texture3, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture3\n texture3_tmp.a *= texture2D(texture3, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture3_tmp.rgb * texture3_tmp.rgb);\n o.a *= texture3_tmp.a;\n #else\n o *= texture3_tmp;\n #endif\n } else if(v_texId < 4.0){\n vec4 texture4_tmp = texture2D(texture4, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture4\n texture4_tmp.a *= texture2D(texture4, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture4_tmp.rgb * texture4_tmp.rgb);\n o.a *= texture4_tmp.a;\n #else\n o *= texture4_tmp;\n #endif\n } else if(v_texId < 5.0){\n vec4 texture5_tmp = texture2D(texture5, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture5\n texture5_tmp.a *= texture2D(texture5, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture5_tmp.rgb * texture5_tmp.rgb);\n o.a *= texture5_tmp.a;\n #else\n o *= texture5_tmp;\n #endif\n } else if(v_texId < 6.0){\n vec4 texture6_tmp = texture2D(texture6, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture6\n texture6_tmp.a *= texture2D(texture6, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture6_tmp.rgb * texture6_tmp.rgb);\n o.a *= texture6_tmp.a;\n #else\n o *= texture6_tmp;\n #endif\n } else if(v_texId < 7.0){\n vec4 texture7_tmp = texture2D(texture7, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture7\n texture7_tmp.a *= texture2D(texture7, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture7_tmp.rgb * texture7_tmp.rgb);\n o.a *= texture7_tmp.a;\n #else\n o *= texture7_tmp;\n #endif\n } else {\n vec4 texture8_tmp = texture2D(texture8, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture8\n texture8_tmp.a *= texture2D(texture8, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture8_tmp.rgb * texture8_tmp.rgb);\n o.a *= texture8_tmp.a;\n #else\n o *= texture8_tmp;\n #endif\n }\n #else\n vec4 texture_tmp = texture2D(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture2D(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n o.a *= texture_tmp.a;\n #else\n o *= texture_tmp;\n #endif\n #endif\n #endif\n o *= v_color;\n ALPHA_TEST(o);\n float circle = radius * radius;\n float rx = center.x * wh_ratio;\n float ry = center.y;\n float dis = (v_uv0.x * wh_ratio - rx) * (v_uv0.x * wh_ratio - rx) + (v_uv0.y - ry) * (v_uv0.y - ry);\n o.a = smoothstep(circle, circle - blur, dis);\n gl_FragColor = o;\n}" + }, + "builtins": { + "globals": { + "blocks": [ + { + "name": "CCGlobal", + "defines": [] + } + ], + "samplers": [] + }, + "locals": { + "blocks": [ + { + "name": "CCLocal", + "defines": [] + } + ], + "samplers": [] + } + }, + "defines": [ + { + "name": "USE_TEXTURE", + "type": "boolean", + "defines": [] + }, + { + "name": "USE_MULTI_TEXTURE", + "type": "boolean", + "defines": [ + "USE_TEXTURE" + ] + }, + { + "name": "CC_USE_MODEL", + "type": "boolean", + "defines": [] + }, + { + "name": "USE_ALPHA_TEST", + "type": "boolean", + "defines": [] + }, + { + "name": "CC_USE_ALPHA_ATLAS_texture", + "type": "boolean", + "defines": [ + "USE_TEXTURE" + ] + }, + { + "name": "INPUT_IS_GAMMA", + "type": "boolean", + "defines": [ + "USE_TEXTURE" + ] + }, + { + "name": "CC_USE_ALPHA_ATLAS_texture2", + "type": "boolean", + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "CC_USE_ALPHA_ATLAS_texture3", + "type": "boolean", + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "CC_USE_ALPHA_ATLAS_texture4", + "type": "boolean", + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "CC_USE_ALPHA_ATLAS_texture5", + "type": "boolean", + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "CC_USE_ALPHA_ATLAS_texture6", + "type": "boolean", + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "CC_USE_ALPHA_ATLAS_texture7", + "type": "boolean", + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "CC_USE_ALPHA_ATLAS_texture8", + "type": "boolean", + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + } + ], + "blocks": [ + { + "name": "ALPHA_TEST", + "binding": 0, + "members": [ + { + "name": "alphaThreshold", + "type": 13, + "count": 1 + } + ], + "defines": [ + "USE_ALPHA_TEST" + ] + }, + { + "name": "ARGS", + "binding": 1, + "members": [ + { + "name": "radius", + "type": 13, + "count": 1 + }, + { + "name": "blur", + "type": 13, + "count": 1 + }, + { + "name": "center", + "type": 14, + "count": 1 + }, + { + "name": "wh_ratio", + "type": 13, + "count": 1 + } + ], + "defines": [] + } + ], + "samplers": [ + { + "name": "texture", + "type": 29, + "count": 1, + "binding": 30, + "defines": [ + "USE_TEXTURE" + ] + }, + { + "name": "texture2", + "type": 29, + "count": 1, + "binding": 31, + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "texture3", + "type": 29, + "count": 1, + "binding": 32, + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "texture4", + "type": 29, + "count": 1, + "binding": 33, + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "texture5", + "type": 29, + "count": 1, + "binding": 34, + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "texture6", + "type": 29, + "count": 1, + "binding": 35, + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "texture7", + "type": 29, + "count": 1, + "binding": 36, + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "texture8", + "type": 29, + "count": 1, + "binding": 37, + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + } + ] + } + ], + [ + { + "passes": [ + { + "program": "custom-2d-sprite|vs|fs", + "blendState": { + "targets": [ + { + "blend": true + } + ] + }, + "rasterizerState": { + "cullMode": 0 + }, + "properties": { + "texture": { + "value": "white", + "type": 29 + }, + "texture2": { + "value": "white", + "type": 29 + }, + "texture3": { + "value": "white", + "type": 29 + }, + "texture4": { + "value": "white", + "type": 29 + }, + "texture5": { + "value": "white", + "type": 29 + }, + "texture6": { + "value": "white", + "type": 29 + }, + "texture7": { + "value": "white", + "type": 29 + }, + "texture8": { + "value": "white", + "type": 29 + }, + "alphaThreshold": { + "type": 13, + "value": [ + 0.5 + ] + }, + "wh_ratio": { + "type": 13, + "value": [ + 1 + ], + "editor": { + "tooltip": "宽高比" + } + }, + "blur": { + "type": 13, + "value": [ + 0.35 + ], + "editor": { + "tooltip": "光圈模糊程度" + } + }, + "radius": { + "type": 13, + "value": [ + 0.5 + ], + "editor": { + "tooltip": "光圈半径" + } + }, + "center": { + "type": 14, + "value": [ + 0.5, + 0.5 + ], + "editor": { + "tooltip": "光圈起点" + } + } + } + } + ] + } + ] + ] + ], + 0, + 0, + [], + [], + [] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,1", + -1 + ], + [ + 0 + ], + 0, + [], + [], + [] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,1", + -1 + ], + [ + 0 + ], + 0, + [], + [], + [] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,1", + -1 + ], + [ + 0 + ], + 0, + [], + [], + [] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,1", + -1 + ], + [ + 0 + ], + 0, + [], + [], + [] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,1", + -1 + ], + [ + 0 + ], + 0, + [], + [], + [] + ], + [ + [ + { + "name": "1655112538161", + "rect": [ + 0, + 0, + 596, + 672 + ], + "offset": [ + 0, + 0 + ], + "originalSize": [ + 596, + 672 + ], + "capInsets": [ + 0, + 0, + 0, + 0 + ] + } + ], + [ + 1 + ], + 0, + [ + 0 + ], + [ + 0 + ], + [ + 5 + ] + ], + [ + [ + [ + 2, + "normalFont", + 64, + { + "commonHeight": 72, + "fontSize": 64, + "atlasName": "normalFont.png", + "fontDefDictionary": { + "32": { + "xOffset": 0, + "yOffset": 58, + "xAdvance": 18, + "rect": { + "x": 446, + "y": 710, + "width": 0, + "height": 0 + } + }, + "33": { + "xOffset": 6, + "yOffset": 11, + "xAdvance": 18, + "rect": { + "x": 328, + "y": 661, + "width": 8, + "height": 47 + } + }, + "34": { + "xOffset": 3, + "yOffset": 10, + "xAdvance": 23, + "rect": { + "x": 284, + "y": 710, + "width": 18, + "height": 18 + } + }, + "35": { + "xOffset": 1, + "yOffset": 10, + "xAdvance": 36, + "rect": { + "x": 221, + "y": 560, + "width": 36, + "height": 49 + } + }, + "36": { + "xOffset": 2, + "yOffset": 7, + "xAdvance": 36, + "rect": { + "x": 59, + "y": 500, + "width": 32, + "height": 58 + } + }, + "37": { + "xOffset": 4, + "yOffset": 10, + "xAdvance": 57, + "rect": { + "x": 661, + "y": 500, + "width": 51, + "height": 50 + } + }, + "38": { + "xOffset": 3, + "yOffset": 10, + "xAdvance": 43, + "rect": { + "x": 139, + "y": 560, + "width": 40, + "height": 49 + } + }, + "39": { + "xOffset": 3, + "yOffset": 10, + "xAdvance": 12, + "rect": { + "x": 304, + "y": 710, + "width": 8, + "height": 18 + } + }, + "40": { + "xOffset": 4, + "yOffset": 9, + "xAdvance": 21, + "rect": { + "x": 109, + "y": 2, + "width": 17, + "height": 62 + } + }, + "41": { + "xOffset": 4, + "yOffset": 9, + "xAdvance": 21, + "rect": { + "x": 128, + "y": 2, + "width": 17, + "height": 62 + } + }, + "42": { + "xOffset": 2, + "yOffset": 10, + "xAdvance": 25, + "rect": { + "x": 260, + "y": 710, + "width": 22, + "height": 21 + } + }, + "43": { + "xOffset": 4, + "yOffset": 19, + "xAdvance": 37, + "rect": { + "x": 162, + "y": 710, + "width": 32, + "height": 32 + } + }, + "44": { + "xOffset": 5, + "yOffset": 50, + "xAdvance": 18, + "rect": { + "x": 314, + "y": 710, + "width": 8, + "height": 17 + } + }, + "45": { + "xOffset": 2, + "yOffset": 37, + "xAdvance": 21, + "rect": { + "x": 384, + "y": 710, + "width": 19, + "height": 7 + } + }, + "46": { + "xOffset": 6, + "yOffset": 50, + "xAdvance": 18, + "rect": { + "x": 374, + "y": 710, + "width": 8, + "height": 8 + } + }, + "47": { + "xOffset": 0, + "yOffset": 10, + "xAdvance": 18, + "rect": { + "x": 292, + "y": 560, + "width": 19, + "height": 49 + } + }, + "48": { + "xOffset": 3, + "yOffset": 11, + "xAdvance": 36, + "rect": { + "x": 578, + "y": 560, + "width": 31, + "height": 48 + } + }, + "49": { + "xOffset": 7, + "yOffset": 10, + "xAdvance": 36, + "rect": { + "x": 86, + "y": 611, + "width": 18, + "height": 48 + } + }, + "50": { + "xOffset": 2, + "yOffset": 10, + "xAdvance": 36, + "rect": { + "x": 374, + "y": 560, + "width": 32, + "height": 48 + } + }, + "51": { + "xOffset": 3, + "yOffset": 11, + "xAdvance": 36, + "rect": { + "x": 408, + "y": 560, + "width": 32, + "height": 48 + } + }, + "52": { + "xOffset": 1, + "yOffset": 11, + "xAdvance": 36, + "rect": { + "x": 78, + "y": 661, + "width": 33, + "height": 47 + } + }, + "53": { + "xOffset": 3, + "yOffset": 12, + "xAdvance": 36, + "rect": { + "x": 113, + "y": 661, + "width": 32, + "height": 47 + } + }, + "54": { + "xOffset": 2, + "yOffset": 11, + "xAdvance": 36, + "rect": { + "x": 442, + "y": 560, + "width": 32, + "height": 48 + } + }, + "55": { + "xOffset": 3, + "yOffset": 11, + "xAdvance": 36, + "rect": { + "x": 181, + "y": 661, + "width": 31, + "height": 47 + } + }, + "56": { + "xOffset": 3, + "yOffset": 11, + "xAdvance": 36, + "rect": { + "x": 476, + "y": 560, + "width": 32, + "height": 48 + } + }, + "57": { + "xOffset": 3, + "yOffset": 11, + "xAdvance": 36, + "rect": { + "x": 510, + "y": 560, + "width": 32, + "height": 48 + } + }, + "58": { + "xOffset": 6, + "yOffset": 23, + "xAdvance": 18, + "rect": { + "x": 84, + "y": 710, + "width": 8, + "height": 35 + } + }, + "59": { + "xOffset": 5, + "yOffset": 23, + "xAdvance": 18, + "rect": { + "x": 366, + "y": 661, + "width": 8, + "height": 44 + } + }, + "60": { + "xOffset": 4, + "yOffset": 18, + "xAdvance": 37, + "rect": { + "x": 94, + "y": 710, + "width": 32, + "height": 33 + } + }, + "61": { + "xOffset": 4, + "yOffset": 24, + "xAdvance": 37, + "rect": { + "x": 226, + "y": 710, + "width": 32, + "height": 21 + } + }, + "62": { + "xOffset": 4, + "yOffset": 18, + "xAdvance": 37, + "rect": { + "x": 128, + "y": 710, + "width": 32, + "height": 33 + } + }, + "63": { + "xOffset": 3, + "yOffset": 10, + "xAdvance": 36, + "rect": { + "x": 611, + "y": 560, + "width": 31, + "height": 48 + } + }, + "64": { + "xOffset": 3, + "yOffset": 9, + "xAdvance": 65, + "rect": { + "x": 2, + "y": 2, + "width": 61, + "height": 62 + } + }, + "65": { + "xOffset": 0, + "yOffset": 11, + "xAdvance": 43, + "rect": { + "x": 215, + "y": 611, + "width": 44, + "height": 47 + } + }, + "66": { + "xOffset": 5, + "yOffset": 11, + "xAdvance": 43, + "rect": { + "x": 683, + "y": 611, + "width": 36, + "height": 47 + } + }, + "67": { + "xOffset": 3, + "yOffset": 10, + "xAdvance": 46, + "rect": { + "x": 95, + "y": 560, + "width": 42, + "height": 49 + } + }, + "68": { + "xOffset": 5, + "yOffset": 11, + "xAdvance": 46, + "rect": { + "x": 442, + "y": 611, + "width": 39, + "height": 47 + } + }, + "69": { + "xOffset": 5, + "yOffset": 11, + "xAdvance": 43, + "rect": { + "x": 2, + "y": 661, + "width": 36, + "height": 47 + } + }, + "70": { + "xOffset": 5, + "yOffset": 11, + "xAdvance": 39, + "rect": { + "x": 147, + "y": 661, + "width": 32, + "height": 47 + } + }, + "71": { + "xOffset": 3, + "yOffset": 10, + "xAdvance": 50, + "rect": { + "x": 49, + "y": 560, + "width": 44, + "height": 49 + } + }, + "72": { + "xOffset": 5, + "yOffset": 11, + "xAdvance": 46, + "rect": { + "x": 644, + "y": 611, + "width": 37, + "height": 47 + } + }, + "73": { + "xOffset": 6, + "yOffset": 11, + "xAdvance": 18, + "rect": { + "x": 338, + "y": 661, + "width": 8, + "height": 47 + } + }, + "74": { + "xOffset": 2, + "yOffset": 11, + "xAdvance": 32, + "rect": { + "x": 34, + "y": 611, + "width": 27, + "height": 48 + } + }, + "75": { + "xOffset": 5, + "yOffset": 11, + "xAdvance": 43, + "rect": { + "x": 483, + "y": 611, + "width": 39, + "height": 47 + } + }, + "76": { + "xOffset": 5, + "yOffset": 11, + "xAdvance": 36, + "rect": { + "x": 214, + "y": 661, + "width": 30, + "height": 47 + } + }, + "77": { + "xOffset": 5, + "yOffset": 11, + "xAdvance": 53, + "rect": { + "x": 168, + "y": 611, + "width": 45, + "height": 47 + } + }, + "78": { + "xOffset": 5, + "yOffset": 11, + "xAdvance": 46, + "rect": { + "x": 524, + "y": 611, + "width": 38, + "height": 47 + } + }, + "79": { + "xOffset": 3, + "yOffset": 10, + "xAdvance": 50, + "rect": { + "x": 2, + "y": 560, + "width": 45, + "height": 49 + } + }, + "80": { + "xOffset": 5, + "yOffset": 11, + "xAdvance": 43, + "rect": { + "x": 40, + "y": 661, + "width": 36, + "height": 47 + } + }, + "81": { + "xOffset": 3, + "yOffset": 10, + "xAdvance": 50, + "rect": { + "x": 613, + "y": 500, + "width": 46, + "height": 52 + } + }, + "82": { + "xOffset": 5, + "yOffset": 11, + "xAdvance": 46, + "rect": { + "x": 398, + "y": 611, + "width": 42, + "height": 47 + } + }, + "83": { + "xOffset": 3, + "yOffset": 10, + "xAdvance": 43, + "rect": { + "x": 181, + "y": 560, + "width": 38, + "height": 49 + } + }, + "84": { + "xOffset": 2, + "yOffset": 11, + "xAdvance": 39, + "rect": { + "x": 564, + "y": 611, + "width": 38, + "height": 47 + } + }, + "85": { + "xOffset": 5, + "yOffset": 11, + "xAdvance": 46, + "rect": { + "x": 334, + "y": 560, + "width": 38, + "height": 48 + } + }, + "86": { + "xOffset": 0, + "yOffset": 11, + "xAdvance": 43, + "rect": { + "x": 353, + "y": 611, + "width": 43, + "height": 47 + } + }, + "87": { + "xOffset": 1, + "yOffset": 11, + "xAdvance": 60, + "rect": { + "x": 106, + "y": 611, + "width": 60, + "height": 47 + } + }, + "88": { + "xOffset": 0, + "yOffset": 11, + "xAdvance": 43, + "rect": { + "x": 261, + "y": 611, + "width": 44, + "height": 47 + } + }, + "89": { + "xOffset": 0, + "yOffset": 11, + "xAdvance": 43, + "rect": { + "x": 307, + "y": 611, + "width": 44, + "height": 47 + } + }, + "90": { + "xOffset": 1, + "yOffset": 11, + "xAdvance": 39, + "rect": { + "x": 604, + "y": 611, + "width": 38, + "height": 47 + } + }, + "91": { + "xOffset": 4, + "yOffset": 11, + "xAdvance": 18, + "rect": { + "x": 330, + "y": 377, + "width": 14, + "height": 60 + } + }, + "92": { + "xOffset": 0, + "yOffset": 10, + "xAdvance": 18, + "rect": { + "x": 313, + "y": 560, + "width": 19, + "height": 49 + } + }, + "93": { + "xOffset": 1, + "yOffset": 11, + "xAdvance": 18, + "rect": { + "x": 346, + "y": 377, + "width": 14, + "height": 60 + } + }, + "94": { + "xOffset": 2, + "yOffset": 9, + "xAdvance": 30, + "rect": { + "x": 196, + "y": 710, + "width": 28, + "height": 27 + } + }, + "95": { + "xOffset": -1, + "yOffset": 65, + "xAdvance": 36, + "rect": { + "x": 405, + "y": 710, + "width": 39, + "height": 6 + } + }, + "96": { + "xOffset": 3, + "yOffset": 11, + "xAdvance": 21, + "rect": { + "x": 359, + "y": 710, + "width": 13, + "height": 10 + } + }, + "97": { + "xOffset": 2, + "yOffset": 23, + "xAdvance": 36, + "rect": { + "x": 411, + "y": 661, + "width": 32, + "height": 36 + } + }, + "98": { + "xOffset": 4, + "yOffset": 11, + "xAdvance": 36, + "rect": { + "x": 644, + "y": 560, + "width": 30, + "height": 48 + } + }, + "99": { + "xOffset": 3, + "yOffset": 23, + "xAdvance": 32, + "rect": { + "x": 479, + "y": 661, + "width": 30, + "height": 36 + } + }, + "100": { + "xOffset": 2, + "yOffset": 11, + "xAdvance": 36, + "rect": { + "x": 676, + "y": 560, + "width": 30, + "height": 48 + } + }, + "101": { + "xOffset": 2, + "yOffset": 23, + "xAdvance": 36, + "rect": { + "x": 445, + "y": 661, + "width": 32, + "height": 36 + } + }, + "102": { + "xOffset": 1, + "yOffset": 10, + "xAdvance": 18, + "rect": { + "x": 63, + "y": 611, + "width": 21, + "height": 48 + } + }, + "103": { + "xOffset": 2, + "yOffset": 22, + "xAdvance": 36, + "rect": { + "x": 259, + "y": 560, + "width": 31, + "height": 49 + } + }, + "104": { + "xOffset": 4, + "yOffset": 11, + "xAdvance": 36, + "rect": { + "x": 246, + "y": 661, + "width": 29, + "height": 47 + } + }, + "105": { + "xOffset": 4, + "yOffset": 11, + "xAdvance": 14, + "rect": { + "x": 348, + "y": 661, + "width": 7, + "height": 47 + } + }, + "106": { + "xOffset": -3, + "yOffset": 10, + "xAdvance": 14, + "rect": { + "x": 660, + "y": 66, + "width": 14, + "height": 61 + } + }, + "107": { + "xOffset": 4, + "yOffset": 11, + "xAdvance": 32, + "rect": { + "x": 277, + "y": 661, + "width": 29, + "height": 47 + } + }, + "108": { + "xOffset": 4, + "yOffset": 11, + "xAdvance": 14, + "rect": { + "x": 357, + "y": 661, + "width": 7, + "height": 47 + } + }, + "109": { + "xOffset": 4, + "yOffset": 23, + "xAdvance": 53, + "rect": { + "x": 591, + "y": 661, + "width": 46, + "height": 35 + } + }, + "110": { + "xOffset": 4, + "yOffset": 23, + "xAdvance": 36, + "rect": { + "x": 2, + "y": 710, + "width": 28, + "height": 35 + } + }, + "111": { + "xOffset": 2, + "yOffset": 23, + "xAdvance": 36, + "rect": { + "x": 376, + "y": 661, + "width": 33, + "height": 36 + } + }, + "112": { + "xOffset": 4, + "yOffset": 23, + "xAdvance": 36, + "rect": { + "x": 708, + "y": 560, + "width": 30, + "height": 48 + } + }, + "113": { + "xOffset": 2, + "yOffset": 23, + "xAdvance": 36, + "rect": { + "x": 2, + "y": 611, + "width": 30, + "height": 48 + } + }, + "114": { + "xOffset": 4, + "yOffset": 23, + "xAdvance": 21, + "rect": { + "x": 62, + "y": 710, + "width": 20, + "height": 35 + } + }, + "115": { + "xOffset": 2, + "yOffset": 23, + "xAdvance": 32, + "rect": { + "x": 511, + "y": 661, + "width": 29, + "height": 36 + } + }, + "116": { + "xOffset": 1, + "yOffset": 11, + "xAdvance": 18, + "rect": { + "x": 308, + "y": 661, + "width": 18, + "height": 47 + } + }, + "117": { + "xOffset": 4, + "yOffset": 24, + "xAdvance": 36, + "rect": { + "x": 32, + "y": 710, + "width": 28, + "height": 35 + } + }, + "118": { + "xOffset": 1, + "yOffset": 23, + "xAdvance": 32, + "rect": { + "x": 674, + "y": 661, + "width": 32, + "height": 35 + } + }, + "119": { + "xOffset": 0, + "yOffset": 23, + "xAdvance": 46, + "rect": { + "x": 542, + "y": 661, + "width": 47, + "height": 35 + } + }, + "120": { + "xOffset": 0, + "yOffset": 23, + "xAdvance": 32, + "rect": { + "x": 639, + "y": 661, + "width": 33, + "height": 35 + } + }, + "121": { + "xOffset": 1, + "yOffset": 23, + "xAdvance": 32, + "rect": { + "x": 544, + "y": 560, + "width": 32, + "height": 48 + } + }, + "122": { + "xOffset": 1, + "yOffset": 23, + "xAdvance": 32, + "rect": { + "x": 708, + "y": 661, + "width": 31, + "height": 35 + } + }, + "123": { + "xOffset": 2, + "yOffset": 9, + "xAdvance": 21, + "rect": { + "x": 65, + "y": 2, + "width": 20, + "height": 62 + } + }, + "124": { + "xOffset": 6, + "yOffset": 9, + "xAdvance": 17, + "rect": { + "x": 147, + "y": 2, + "width": 6, + "height": 62 + } + }, + "125": { + "xOffset": 1, + "yOffset": 9, + "xAdvance": 21, + "rect": { + "x": 87, + "y": 2, + "width": 20, + "height": 62 + } + }, + "126": { + "xOffset": 3, + "yOffset": 29, + "xAdvance": 37, + "rect": { + "x": 324, + "y": 710, + "width": 33, + "height": 12 + } + }, + "19978": { + "xOffset": 4, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 476, + "y": 439, + "width": 58, + "height": 58 + } + }, + "20010": { + "xOffset": 2, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 676, + "y": 66, + "width": 61, + "height": 60 + } + }, + "20026": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 118, + "y": 377, + "width": 55, + "height": 60 + } + }, + "20080": { + "xOffset": 5, + "yOffset": 8, + "xAdvance": 64, + "rect": { + "x": 277, + "y": 500, + "width": 57, + "height": 57 + } + }, + "20154": { + "xOffset": 2, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 2, + "y": 129, + "width": 61, + "height": 60 + } + }, + "20215": { + "xOffset": 2, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 65, + "y": 129, + "width": 61, + "height": 60 + } + }, + "20302": { + "xOffset": 2, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 128, + "y": 129, + "width": 61, + "height": 60 + } + }, + "20313": { + "xOffset": 2, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 362, + "y": 377, + "width": 61, + "height": 59 + } + }, + "20323": { + "xOffset": 2, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 307, + "y": 66, + "width": 58, + "height": 61 + } + }, + "20803": { + "xOffset": 3, + "yOffset": 8, + "xAdvance": 64, + "rect": { + "x": 155, + "y": 500, + "width": 59, + "height": 57 + } + }, + "20805": { + "xOffset": 4, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 490, + "y": 253, + "width": 58, + "height": 60 + } + }, + "20813": { + "xOffset": 3, + "yOffset": 3, + "xAdvance": 64, + "rect": { + "x": 2, + "y": 66, + "width": 59, + "height": 61 + } + }, + "20853": { + "xOffset": 3, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 2, + "y": 253, + "width": 59, + "height": 60 + } + }, + "20869": { + "xOffset": 7, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 175, + "y": 377, + "width": 52, + "height": 60 + } + }, + "20891": { + "xOffset": 4, + "yOffset": 7, + "xAdvance": 64, + "rect": { + "x": 656, + "y": 439, + "width": 57, + "height": 58 + } + }, + "20986": { + "xOffset": 7, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 229, + "y": 377, + "width": 52, + "height": 60 + } + }, + "20998": { + "xOffset": 3, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 632, + "y": 129, + "width": 60, + "height": 60 + } + }, + "21015": { + "xOffset": 3, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 2, + "y": 439, + "width": 57, + "height": 59 + } + }, + "21040": { + "xOffset": 3, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 61, + "y": 439, + "width": 57, + "height": 59 + } + }, + "21069": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 63, + "y": 66, + "width": 59, + "height": 61 + } + }, + "21097": { + "xOffset": 3, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 542, + "y": 315, + "width": 57, + "height": 60 + } + }, + "21160": { + "xOffset": 3, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 550, + "y": 253, + "width": 58, + "height": 60 + } + }, + "21215": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 407, + "y": 2, + "width": 60, + "height": 61 + } + }, + "21319": { + "xOffset": 4, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 610, + "y": 253, + "width": 58, + "height": 60 + } + }, + "21330": { + "xOffset": 4, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 670, + "y": 253, + "width": 58, + "height": 60 + } + }, + "21407": { + "xOffset": 3, + "yOffset": 7, + "xAdvance": 64, + "rect": { + "x": 216, + "y": 500, + "width": 59, + "height": 57 + } + }, + "21475": { + "xOffset": 9, + "yOffset": 11, + "xAdvance": 64, + "rect": { + "x": 563, + "y": 500, + "width": 48, + "height": 52 + } + }, + "21487": { + "xOffset": 4, + "yOffset": 8, + "xAdvance": 64, + "rect": { + "x": 336, + "y": 500, + "width": 59, + "height": 56 + } + }, + "21518": { + "xOffset": 2, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 2, + "y": 191, + "width": 60, + "height": 60 + } + }, + "22478": { + "xOffset": 2, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 191, + "y": 129, + "width": 61, + "height": 60 + } + }, + "22681": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 64, + "y": 191, + "width": 60, + "height": 60 + } + }, + "22823": { + "xOffset": 3, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 126, + "y": 191, + "width": 60, + "height": 60 + } + }, + "22825": { + "xOffset": 3, + "yOffset": 8, + "xAdvance": 64, + "rect": { + "x": 93, + "y": 500, + "width": 60, + "height": 57 + } + }, + "23041": { + "xOffset": 3, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 488, + "y": 377, + "width": 60, + "height": 59 + } + }, + "23432": { + "xOffset": 5, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 2, + "y": 377, + "width": 56, + "height": 60 + } + }, + "23448": { + "xOffset": 5, + "yOffset": 3, + "xAdvance": 64, + "rect": { + "x": 546, + "y": 66, + "width": 55, + "height": 61 + } + }, + "23453": { + "xOffset": 5, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 2, + "y": 500, + "width": 55, + "height": 58 + } + }, + "23567": { + "xOffset": 2, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 425, + "y": 377, + "width": 61, + "height": 59 + } + }, + "24050": { + "xOffset": 6, + "yOffset": 7, + "xAdvance": 64, + "rect": { + "x": 505, + "y": 500, + "width": 56, + "height": 55 + } + }, + "24065": { + "xOffset": 4, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 60, + "y": 377, + "width": 56, + "height": 60 + } + }, + "24182": { + "xOffset": 4, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 124, + "y": 66, + "width": 59, + "height": 61 + } + }, + "24314": { + "xOffset": 4, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 63, + "y": 253, + "width": 59, + "height": 60 + } + }, + "24320": { + "xOffset": 4, + "yOffset": 8, + "xAdvance": 64, + "rect": { + "x": 397, + "y": 500, + "width": 58, + "height": 56 + } + }, + "24339": { + "xOffset": 11, + "yOffset": 8, + "xAdvance": 64, + "rect": { + "x": 457, + "y": 500, + "width": 46, + "height": 56 + } + }, + "24403": { + "xOffset": 7, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 178, + "y": 439, + "width": 50, + "height": 59 + } + }, + "24449": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 254, + "y": 129, + "width": 61, + "height": 60 + } + }, + "24471": { + "xOffset": 2, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 188, + "y": 191, + "width": 60, + "height": 60 + } + }, + "25552": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 250, + "y": 191, + "width": 60, + "height": 60 + } + }, + "25910": { + "xOffset": 4, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 185, + "y": 66, + "width": 59, + "height": 61 + } + }, + "25928": { + "xOffset": 2, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 155, + "y": 2, + "width": 61, + "height": 61 + } + }, + "26009": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 317, + "y": 129, + "width": 61, + "height": 60 + } + }, + "26102": { + "xOffset": 5, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 673, + "y": 377, + "width": 58, + "height": 59 + } + }, + "26361": { + "xOffset": 4, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 2, + "y": 315, + "width": 58, + "height": 60 + } + }, + "26368": { + "xOffset": 4, + "yOffset": 7, + "xAdvance": 64, + "rect": { + "x": 536, + "y": 439, + "width": 58, + "height": 58 + } + }, + "26395": { + "xOffset": 4, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 120, + "y": 439, + "width": 56, + "height": 59 + } + }, + "26408": { + "xOffset": 4, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 62, + "y": 315, + "width": 58, + "height": 60 + } + }, + "26426": { + "xOffset": 2, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 380, + "y": 129, + "width": 61, + "height": 60 + } + }, + "26448": { + "xOffset": 2, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 124, + "y": 253, + "width": 59, + "height": 60 + } + }, + "26524": { + "xOffset": 3, + "yOffset": 6, + "xAdvance": 64, + "rect": { + "x": 230, + "y": 439, + "width": 60, + "height": 58 + } + }, + "27425": { + "xOffset": 2, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 218, + "y": 2, + "width": 61, + "height": 61 + } + }, + "27493": { + "xOffset": 4, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 367, + "y": 66, + "width": 58, + "height": 61 + } + }, + "27494": { + "xOffset": 3, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 550, + "y": 377, + "width": 60, + "height": 59 + } + }, + "27599": { + "xOffset": 3, + "yOffset": 3, + "xAdvance": 64, + "rect": { + "x": 281, + "y": 2, + "width": 61, + "height": 61 + } + }, + "27963": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 185, + "y": 253, + "width": 59, + "height": 60 + } + }, + "28608": { + "xOffset": 2, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 443, + "y": 129, + "width": 61, + "height": 60 + } + }, + "28857": { + "xOffset": 3, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 312, + "y": 191, + "width": 60, + "height": 60 + } + }, + "31181": { + "xOffset": 2, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 122, + "y": 315, + "width": 58, + "height": 60 + } + }, + "31526": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 246, + "y": 253, + "width": 59, + "height": 60 + } + }, + "31569": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 307, + "y": 253, + "width": 59, + "height": 60 + } + }, + "31574": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 469, + "y": 2, + "width": 60, + "height": 61 + } + }, + "31665": { + "xOffset": 2, + "yOffset": 3, + "xAdvance": 64, + "rect": { + "x": 531, + "y": 2, + "width": 60, + "height": 61 + } + }, + "31918": { + "xOffset": 2, + "yOffset": 3, + "xAdvance": 64, + "rect": { + "x": 344, + "y": 2, + "width": 61, + "height": 61 + } + }, + "32043": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 182, + "y": 315, + "width": 58, + "height": 60 + } + }, + "32418": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 354, + "y": 439, + "width": 59, + "height": 58 + } + }, + "32493": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 593, + "y": 2, + "width": 60, + "height": 61 + } + }, + "32511": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 374, + "y": 191, + "width": 60, + "height": 60 + } + }, + "32791": { + "xOffset": 2, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 436, + "y": 191, + "width": 60, + "height": 60 + } + }, + "33258": { + "xOffset": 10, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 283, + "y": 377, + "width": 45, + "height": 60 + } + }, + "33457": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 246, + "y": 66, + "width": 59, + "height": 61 + } + }, + "33609": { + "xOffset": 4, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 242, + "y": 315, + "width": 58, + "height": 60 + } + }, + "33719": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 368, + "y": 253, + "width": 59, + "height": 60 + } + }, + "33829": { + "xOffset": 4, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 601, + "y": 315, + "width": 57, + "height": 60 + } + }, + "34917": { + "xOffset": 2, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 498, + "y": 191, + "width": 60, + "height": 60 + } + }, + "35745": { + "xOffset": 3, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 560, + "y": 191, + "width": 60, + "height": 60 + } + }, + "36141": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 302, + "y": 315, + "width": 58, + "height": 60 + } + }, + "36153": { + "xOffset": 5, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 603, + "y": 66, + "width": 55, + "height": 61 + } + }, + "36824": { + "xOffset": 4, + "yOffset": 6, + "xAdvance": 64, + "rect": { + "x": 612, + "y": 377, + "width": 59, + "height": 59 + } + }, + "36896": { + "xOffset": 3, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 429, + "y": 253, + "width": 59, + "height": 60 + } + }, + "37327": { + "xOffset": 3, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 415, + "y": 439, + "width": 59, + "height": 58 + } + }, + "37329": { + "xOffset": 3, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 292, + "y": 439, + "width": 60, + "height": 58 + } + }, + "38047": { + "xOffset": 2, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 362, + "y": 315, + "width": 58, + "height": 60 + } + }, + "38081": { + "xOffset": 2, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 506, + "y": 129, + "width": 61, + "height": 60 + } + }, + "38134": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 622, + "y": 191, + "width": 60, + "height": 60 + } + }, + "38228": { + "xOffset": 2, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 655, + "y": 2, + "width": 60, + "height": 61 + } + }, + "38431": { + "xOffset": 6, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 422, + "y": 315, + "width": 58, + "height": 60 + } + }, + "38450": { + "xOffset": 5, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 487, + "y": 66, + "width": 57, + "height": 61 + } + }, + "38477": { + "xOffset": 5, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 482, + "y": 315, + "width": 58, + "height": 60 + } + }, + "38480": { + "xOffset": 5, + "yOffset": 6, + "xAdvance": 64, + "rect": { + "x": 596, + "y": 439, + "width": 58, + "height": 58 + } + }, + "38543": { + "xOffset": 5, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 660, + "y": 315, + "width": 57, + "height": 60 + } + }, + "38599": { + "xOffset": 3, + "yOffset": 3, + "xAdvance": 64, + "rect": { + "x": 427, + "y": 66, + "width": 58, + "height": 61 + } + }, + "39569": { + "xOffset": 2, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 569, + "y": 129, + "width": 61, + "height": 60 + } + } + }, + "kerningDict": { + "2097217": -3, + "2097236": -1, + "2097241": -1, + "3211313": -4, + "4259872": -3, + "4259924": -4, + "4259926": -4, + "4259927": -2, + "4259929": -4, + "4259958": -1, + "4259959": -1, + "4259961": -1, + "4587564": -7, + "4587566": -7, + "4587585": -3, + "4980768": -2, + "4980820": -4, + "4980822": -4, + "4980823": -4, + "4980825": -4, + "4980857": -2, + "5242912": -1, + "5242924": -8, + "5242926": -8, + "5242945": -4, + "5374036": -1, + "5374038": -1, + "5374039": -1, + "5374041": -1, + "5505056": -1, + "5505068": -7, + "5505069": -3, + "5505070": -7, + "5505082": -7, + "5505083": -7, + "5505089": -4, + "5505103": -1, + "5505121": -7, + "5505123": -7, + "5505125": -7, + "5505129": -2, + "5505135": -7, + "5505138": -2, + "5505139": -7, + "5505141": -2, + "5505143": -3, + "5505145": -3, + "5636140": -5, + "5636141": -3, + "5636142": -5, + "5636154": -2, + "5636155": -2, + "5636161": -4, + "5636193": -4, + "5636197": -3, + "5636201": -1, + "5636207": -3, + "5636210": -2, + "5636213": -2, + "5636217": -2, + "5701676": -3, + "5701677": -1, + "5701678": -3, + "5701690": -1, + "5701691": -1, + "5701697": -2, + "5701729": -2, + "5701733": -1, + "5701743": -1, + "5701746": -1, + "5701749": -1, + "5832736": -1, + "5832748": -8, + "5832749": -5, + "5832750": -8, + "5832762": -3, + "5832763": -4, + "5832769": -4, + "5832801": -4, + "5832805": -5, + "5832809": -2, + "5832815": -5, + "5832816": -4, + "5832817": -5, + "5832821": -3, + "5832822": -3, + "6684774": -1, + "7471148": -3, + "7471150": -3, + "7733292": -4, + "7733294": -4, + "7798828": -3, + "7798830": -3, + "7929900": -4, + "7929902": -4 + } + } + ] + ], + 0, + 0, + [ + 0 + ], + [ + 4 + ], + [ + 6 + ] + ], + [ + [ + { + "name": "1655112624336", + "rect": [ + 0, + 0, + 564, + 882 + ], + "offset": [ + 0, + 0 + ], + "originalSize": [ + 564, + 882 + ], + "capInsets": [ + 192, + 176, + 198, + 155 + ] + } + ], + [ + 1 + ], + 0, + [ + 0 + ], + [ + 0 + ], + [ + 7 + ] + ], + [ + [ + { + "name": "1655112514006", + "rect": [ + 0, + 0, + 556, + 606 + ], + "offset": [ + 0, + 0 + ], + "originalSize": [ + 556, + 606 + ], + "capInsets": [ + 0, + 0, + 0, + 0 + ] + } + ], + [ + 1 + ], + 0, + [ + 0 + ], + [ + 0 + ], + [ + 0 + ] + ], + [ + [ + { + "name": "1655112548981", + "rect": [ + 0, + 0, + 396, + 570 + ], + "offset": [ + 0, + 0 + ], + "originalSize": [ + 396, + 570 + ], + "capInsets": [ + 0, + 0, + 0, + 0 + ] + } + ], + [ + 1 + ], + 0, + [ + 0 + ], + [ + 0 + ], + [ + 8 + ] + ], + [ + [ + { + "name": "normalFont", + "rect": [ + 2, + 2, + 737, + 742 + ], + "offset": [ + -0.5, + 20 + ], + "originalSize": [ + 742, + 786 + ], + "capInsets": [ + 0, + 0, + 0, + 0 + ] + } + ], + [ + 1 + ], + 0, + [ + 0 + ], + [ + 0 + ], + [ + 9 + ] + ], + [ + [ + { + "name": "1655112479313", + "rect": [ + 0, + 0, + 402, + 370 + ], + "offset": [ + 0, + 0 + ], + "originalSize": [ + 402, + 370 + ], + "capInsets": [ + 0, + 0, + 0, + 0 + ] + } + ], + [ + 1 + ], + 0, + [ + 0 + ], + [ + 0 + ], + [ + 10 + ] + ], + [ + [ + [ + 3, + "spineboy", + "\nspineboy.png\nsize:1024,256\nformat: RGBA8888\nfilter: Linear,Linear\nrepeat: none\neye_indifferent\n rotate: true\n xy: 389, 5\n size: 56, 53\n orig: 56, 53\n offset: 0, 0\n index: -1\neye_surprised\n rotate: false\n xy: 580, 34\n size: 56, 53\n orig: 56, 53\n offset: 0, 0\n index: -1\nfront_bracer\n rotate: false\n xy: 732, 85\n size: 35, 48\n orig: 35, 48\n offset: 0, 0\n index: -1\nfront_fist_closed\n rotate: false\n xy: 556, 91\n size: 45, 49\n orig: 45, 49\n offset: 0, 0\n index: -1\nfront_fist_open\n rotate: false\n xy: 668, 32\n size: 52, 52\n orig: 52, 52\n offset: 0, 0\n index: -1\nfront_foot\n rotate: false\n xy: 924, 201\n size: 76, 41\n orig: 76, 41\n offset: 0, 0\n index: -1\nfront_foot_bend1\n rotate: false\n xy: 845, 200\n size: 77, 42\n orig: 77, 42\n offset: 0, 0\n index: -1\nfront_foot_bend2\n rotate: false\n xy: 778, 186\n size: 65, 56\n orig: 65, 56\n offset: 0, 0\n index: -1\nfront_shin\n rotate: true\n xy: 444, 91\n size: 49, 110\n orig: 49, 110\n offset: 0, 0\n index: -1\nfront_thigh\n rotate: true\n xy: 603, 89\n size: 29, 67\n orig: 29, 67\n offset: 0, 0\n index: -1\nfront_upper_arm\n rotate: true\n xy: 672, 86\n size: 32, 58\n orig: 32, 58\n offset: 0, 0\n index: -1\ngoggles\n rotate: false\n xy: 444, 142\n size: 157, 100\n orig: 157, 100\n offset: 0, 0\n index: -1\ngun\n rotate: false\n xy: 603, 120\n size: 126, 122\n orig: 126, 122\n offset: 0, 0\n index: -1\nhead\n rotate: false\n xy: 279, 63\n size: 163, 179\n orig: 163, 179\n offset: 0, 0\n index: -1\nmouth_grind\n rotate: false\n xy: 845, 163\n size: 56, 35\n orig: 56, 35\n offset: 0, 0\n index: -1\nmouth_oooo\n rotate: false\n xy: 842, 126\n size: 56, 35\n orig: 56, 35\n offset: 0, 0\n index: -1\nmouth_smile\n rotate: false\n xy: 769, 97\n size: 56, 35\n orig: 56, 35\n offset: 0, 0\n index: -1\nmuzzle\n rotate: false\n xy: 2, 2\n size: 275, 240\n orig: 277, 240\n offset: 0, 0\n index: -1\nneck\n rotate: false\n xy: 903, 173\n size: 22, 25\n orig: 22, 25\n offset: 0, 0\n index: -1\nrear_bracer\n rotate: false\n xy: 722, 40\n size: 34, 43\n orig: 34, 43\n offset: 0, 0\n index: -1\nrear_foot\n rotate: false\n xy: 444, 11\n size: 68, 36\n orig: 68, 36\n offset: 0, 0\n index: -1\nrear_foot_bend1\n rotate: false\n xy: 444, 49\n size: 70, 40\n orig: 70, 40\n offset: 0, 0\n index: -1\nrear_foot_bend2\n rotate: false\n xy: 778, 134\n size: 62, 50\n orig: 62, 50\n offset: 0, 0\n index: -1\nrear_shin\n rotate: false\n xy: 731, 135\n size: 45, 107\n orig: 45, 107\n offset: 0, 0\n index: -1\nrear_thigh\n rotate: true\n xy: 516, 50\n size: 39, 62\n orig: 39, 62\n offset: 0, 0\n index: -1\nrear_upper_arm\n rotate: false\n xy: 638, 35\n size: 28, 52\n orig: 28, 52\n offset: 0, 0\n index: -1\ntorso\n rotate: true\n xy: 279, 2\n size: 59, 108\n orig: 59, 108\n offset: 0, 0\n index: -1\n" + ] + ], + 0, + 0, + [], + [], + [] + ], + [ + [ + [ + 4, + "spineboy", + "\nspineboy.png\nsize:1024,256\nformat: RGBA8888\nfilter: Linear,Linear\nrepeat: none\neye_indifferent\n rotate: true\n xy: 389, 5\n size: 56, 53\n orig: 56, 53\n offset: 0, 0\n index: -1\neye_surprised\n rotate: false\n xy: 580, 34\n size: 56, 53\n orig: 56, 53\n offset: 0, 0\n index: -1\nfront_bracer\n rotate: false\n xy: 732, 85\n size: 35, 48\n orig: 35, 48\n offset: 0, 0\n index: -1\nfront_fist_closed\n rotate: false\n xy: 556, 91\n size: 45, 49\n orig: 45, 49\n offset: 0, 0\n index: -1\nfront_fist_open\n rotate: false\n xy: 668, 32\n size: 52, 52\n orig: 52, 52\n offset: 0, 0\n index: -1\nfront_foot\n rotate: false\n xy: 924, 201\n size: 76, 41\n orig: 76, 41\n offset: 0, 0\n index: -1\nfront_foot_bend1\n rotate: false\n xy: 845, 200\n size: 77, 42\n orig: 77, 42\n offset: 0, 0\n index: -1\nfront_foot_bend2\n rotate: false\n xy: 778, 186\n size: 65, 56\n orig: 65, 56\n offset: 0, 0\n index: -1\nfront_shin\n rotate: true\n xy: 444, 91\n size: 49, 110\n orig: 49, 110\n offset: 0, 0\n index: -1\nfront_thigh\n rotate: true\n xy: 603, 89\n size: 29, 67\n orig: 29, 67\n offset: 0, 0\n index: -1\nfront_upper_arm\n rotate: true\n xy: 672, 86\n size: 32, 58\n orig: 32, 58\n offset: 0, 0\n index: -1\ngoggles\n rotate: false\n xy: 444, 142\n size: 157, 100\n orig: 157, 100\n offset: 0, 0\n index: -1\ngun\n rotate: false\n xy: 603, 120\n size: 126, 122\n orig: 126, 122\n offset: 0, 0\n index: -1\nhead\n rotate: false\n xy: 279, 63\n size: 163, 179\n orig: 163, 179\n offset: 0, 0\n index: -1\nmouth_grind\n rotate: false\n xy: 845, 163\n size: 56, 35\n orig: 56, 35\n offset: 0, 0\n index: -1\nmouth_oooo\n rotate: false\n xy: 842, 126\n size: 56, 35\n orig: 56, 35\n offset: 0, 0\n index: -1\nmouth_smile\n rotate: false\n xy: 769, 97\n size: 56, 35\n orig: 56, 35\n offset: 0, 0\n index: -1\nmuzzle\n rotate: false\n xy: 2, 2\n size: 275, 240\n orig: 277, 240\n offset: 0, 0\n index: -1\nneck\n rotate: false\n xy: 903, 173\n size: 22, 25\n orig: 22, 25\n offset: 0, 0\n index: -1\nrear_bracer\n rotate: false\n xy: 722, 40\n size: 34, 43\n orig: 34, 43\n offset: 0, 0\n index: -1\nrear_foot\n rotate: false\n xy: 444, 11\n size: 68, 36\n orig: 68, 36\n offset: 0, 0\n index: -1\nrear_foot_bend1\n rotate: false\n xy: 444, 49\n size: 70, 40\n orig: 70, 40\n offset: 0, 0\n index: -1\nrear_foot_bend2\n rotate: false\n xy: 778, 134\n size: 62, 50\n orig: 62, 50\n offset: 0, 0\n index: -1\nrear_shin\n rotate: false\n xy: 731, 135\n size: 45, 107\n orig: 45, 107\n offset: 0, 0\n index: -1\nrear_thigh\n rotate: true\n xy: 516, 50\n size: 39, 62\n orig: 39, 62\n offset: 0, 0\n index: -1\nrear_upper_arm\n rotate: false\n xy: 638, 35\n size: 28, 52\n orig: 28, 52\n offset: 0, 0\n index: -1\ntorso\n rotate: true\n xy: 279, 2\n size: 59, 108\n orig: 59, 108\n offset: 0, 0\n index: -1\n", + [ + "spineboy.png" + ], + { + "bones": [ + { + "name": "hip", + "y": 247.48 + }, + { + "name": "front_thigh", + "parent": "hip", + "length": 74.8, + "x": -17.45, + "y": -11.64, + "rotation": -95.51, + "color": "00ff04ff" + }, + { + "name": "rear_thigh", + "parent": "hip", + "length": 85.71, + "x": 8.91, + "y": -5.62, + "rotation": -72.54, + "color": "ff000dff" + }, + { + "name": "torso", + "parent": "hip", + "length": 127.55, + "x": -1.61, + "y": 4.9, + "rotation": 103.82, + "color": "e0da19ff" + }, + { + "name": "front_shin", + "parent": "front_thigh", + "length": 128.76, + "x": 78.69, + "y": 1.6, + "rotation": -2.21, + "inheritScale": false, + "color": "00ff04ff" + }, + { + "name": "front_upper_arm", + "parent": "torso", + "length": 69.45, + "x": 103.75, + "y": 19.32, + "rotation": 168.37, + "color": "00ff04ff" + }, + { + "name": "neck", + "parent": "torso", + "length": 25.45, + "x": 127.49, + "y": -0.3, + "rotation": -31.53, + "color": "e0da19ff" + }, + { + "name": "rear_shin", + "parent": "rear_thigh", + "length": 121.87, + "x": 86.1, + "y": -1.32, + "rotation": -19.83, + "color": "ff000dff" + }, + { + "name": "rear_upper_arm", + "parent": "torso", + "length": 51.93, + "x": 92.35, + "y": -19.22, + "rotation": -169.55, + "color": "ff000dff" + }, + { + "name": "front_bracer", + "parent": "front_upper_arm", + "length": 40.57, + "x": 68.8, + "y": -0.68, + "rotation": 18.29, + "color": "00ff04ff" + }, + { + "name": "front_foot", + "parent": "front_shin", + "length": 91.34, + "x": 128.75, + "y": -0.33, + "rotation": 77.9, + "color": "00ff04ff" + }, + { + "name": "head", + "parent": "neck", + "length": 263.57, + "x": 27.66, + "y": -0.25, + "rotation": 23.18, + "color": "e0da19ff" + }, + { + "name": "rear_bracer", + "parent": "rear_upper_arm", + "length": 34.55, + "x": 51.35, + "rotation": 23.15, + "color": "ff000dff" + }, + { + "name": "rear_foot", + "parent": "rear_shin", + "length": 82.57, + "x": 121.45, + "y": -0.75, + "rotation": 69.3, + "color": "ff000dff" + }, + { + "name": "front_fist", + "parent": "front_bracer", + "length": 65.38, + "x": 40.56, + "y": 0.19, + "rotation": 12.43, + "color": "00ff04ff" + }, + { + "name": "gun", + "parent": "rear_bracer", + "length": 43.1, + "x": 34.42, + "y": -0.45, + "rotation": 5.34, + "color": "ff000dff" + }, + { + "name": "gunTip", + "parent": "gun", + "x": 201.04, + "y": 52.13, + "rotation": 6.83, + "color": "ff000dff" + } + ], + "slots": [ + { + "name": "rear_upper_arm", + "bone": "rear_upper_arm", + "attachment": "rear_upper_arm" + }, + { + "name": "rear_bracer", + "bone": "rear_bracer", + "attachment": "rear_bracer" + }, + { + "name": "gun", + "bone": "gun", + "attachment": "gun" + }, + { + "name": "rear_foot", + "bone": "rear_foot", + "attachment": "rear_foot" + }, + { + "name": "rear_thigh", + "bone": "rear_thigh", + "attachment": "rear_thigh" + }, + { + "name": "rear_shin", + "bone": "rear_shin", + "attachment": "rear_shin" + }, + { + "name": "neck", + "bone": "neck", + "attachment": "neck" + }, + { + "name": "torso", + "bone": "torso", + "attachment": "torso" + }, + { + "name": "front_upper_arm", + "bone": "front_upper_arm", + "attachment": "front_upper_arm" + }, + { + "name": "head", + "bone": "head", + "attachment": "head" + }, + { + "name": "eye", + "bone": "head", + "attachment": "eye_indifferent" + }, + { + "name": "front_thigh", + "bone": "front_thigh", + "attachment": "front_thigh" + }, + { + "name": "front_foot", + "bone": "front_foot", + "attachment": "front_foot" + }, + { + "name": "front_shin", + "bone": "front_shin", + "attachment": "front_shin" + }, + { + "name": "mouth", + "bone": "head", + "attachment": "mouth_smile" + }, + { + "name": "goggles", + "bone": "head", + "attachment": "goggles" + }, + { + "name": "front_bracer", + "bone": "front_bracer", + "attachment": "front_bracer" + }, + { + "name": "front_fist", + "bone": "front_fist", + "attachment": "front_fist_closed" + }, + { + "name": "muzzle", + "bone": "gunTip", + "additive": true + } + ], + "skins": { + "default": { + "eye": { + "eye_indifferent": { + "x": 85.72, + "y": -28.18, + "rotation": -70.63, + "width": 93, + "height": 89 + }, + "eye_surprised": { + "x": 85.72, + "y": -28.18, + "rotation": -70.63, + "width": 93, + "height": 89 + } + }, + "front_bracer": { + "front_bracer": { + "x": 12.03, + "y": -1.67, + "rotation": 79.59, + "width": 58, + "height": 80 + } + }, + "front_fist": { + "front_fist_closed": { + "x": 35.49, + "y": 6, + "rotation": 67.16, + "width": 75, + "height": 82 + }, + "front_fist_open": { + "x": 39.56, + "y": 7.76, + "rotation": 67.16, + "width": 86, + "height": 87 + } + }, + "front_foot": { + "front_foot": { + "x": 29.51, + "y": 7.83, + "rotation": 18.68, + "width": 126, + "height": 69 + }, + "front_foot_bend1": { + "x": 29.51, + "y": 7.83, + "rotation": 18.68, + "width": 128, + "height": 70 + }, + "front_foot_bend2": { + "x": 16.07, + "y": 13.83, + "rotation": 18.68, + "width": 108, + "height": 93 + } + }, + "front_shin": { + "front_shin": { + "x": 55.11, + "y": -3.54, + "rotation": 96.59, + "width": 82, + "height": 184 + } + }, + "front_thigh": { + "front_thigh": { + "x": 42.47, + "y": 4.44, + "rotation": 84.86, + "width": 48, + "height": 112 + } + }, + "front_upper_arm": { + "front_upper_arm": { + "x": 28.3, + "y": 7.37, + "rotation": 97.89, + "width": 54, + "height": 97 + } + }, + "goggles": { + "goggles": { + "x": 97.07, + "y": 6.54, + "rotation": -70.63, + "width": 261, + "height": 166 + } + }, + "gun": { + "gun": { + "x": 77.3, + "y": 16.4, + "rotation": 60.82, + "width": 210, + "height": 203 + } + }, + "head": { + "head": { + "x": 128.95, + "y": 0.29, + "rotation": -70.63, + "width": 271, + "height": 298 + } + }, + "mouth": { + "mouth_grind": { + "x": 23.68, + "y": -32.23, + "rotation": -70.63, + "width": 93, + "height": 59 + }, + "mouth_oooo": { + "x": 23.68, + "y": -32.23, + "rotation": -70.63, + "width": 93, + "height": 59 + }, + "mouth_smile": { + "x": 23.68, + "y": -32.23, + "rotation": -70.63, + "width": 93, + "height": 59 + } + }, + "muzzle": { + "muzzle": { + "x": 18.25, + "y": 5.44, + "rotation": 0.15, + "width": 462, + "height": 400 + } + }, + "neck": { + "neck": { + "x": 9.76, + "y": -3.01, + "rotation": -55.22, + "width": 36, + "height": 41 + } + }, + "rear_bracer": { + "rear_bracer": { + "x": 11.15, + "y": -2.2, + "rotation": 66.17, + "width": 56, + "height": 72 + } + }, + "rear_foot": { + "rear_foot": { + "x": 31.51, + "y": 3.57, + "rotation": 23.07, + "width": 113, + "height": 60 + }, + "rear_foot_bend1": { + "x": 34.39, + "y": 4.8, + "rotation": 23.07, + "width": 117, + "height": 66 + }, + "rear_foot_bend2": { + "x": 30.38, + "y": 12.62, + "rotation": 23.07, + "width": 103, + "height": 83 + } + }, + "rear_shin": { + "rear_shin": { + "x": 58.29, + "y": -2.75, + "rotation": 92.37, + "width": 75, + "height": 178 + } + }, + "rear_thigh": { + "rear_thigh": { + "x": 33.1, + "y": -4.11, + "rotation": 72.54, + "width": 65, + "height": 104 + } + }, + "rear_upper_arm": { + "rear_upper_arm": { + "x": 21.12, + "y": 4.08, + "rotation": 89.32, + "width": 47, + "height": 87 + } + }, + "torso": { + "torso": { + "x": 63.61, + "y": 7.12, + "rotation": -94.53, + "width": 98, + "height": 180 + } + } + } + }, + "events": { + "footstep": {}, + "headAttach": { + "int": 3, + "float": 4 + }, + "headBehind": { + "int": 5, + "float": 6, + "string": "setup" + }, + "headPop": { + "int": 1, + "float": 2 + } + }, + "animations": { + "death": { + "slots": { + "eye": { + "attachment": [ + { + "time": 0, + "name": "eye_surprised" + }, + { + "time": 0.4666, + "name": "eye_indifferent" + }, + { + "time": 2.2333, + "name": "eye_surprised" + }, + { + "time": 4.5333, + "name": "eye_indifferent" + } + ] + }, + "front_fist": { + "attachment": [ + { + "time": 0, + "name": "front_fist_open" + } + ] + }, + "mouth": { + "attachment": [ + { + "time": 0, + "name": "mouth_oooo" + }, + { + "time": 2.2333, + "name": "mouth_grind" + }, + { + "time": 4.5333, + "name": "mouth_oooo" + } + ] + } + }, + "bones": { + "head": { + "rotate": [ + { + "time": 0, + "angle": -2.82 + }, + { + "time": 0.1333, + "angle": -28.74 + }, + { + "time": 0.2333, + "angle": 11.42 + }, + { + "time": 0.3333, + "angle": -50.24 + }, + { + "time": 0.4, + "angle": -72.66, + "curve": "stepped" + }, + { + "time": 0.4333, + "angle": -72.66 + }, + { + "time": 0.5, + "angle": -20.24 + }, + { + "time": 0.5666, + "angle": -85.28, + "curve": "stepped" + }, + { + "time": 0.9333, + "angle": -85.28, + "curve": "stepped" + }, + { + "time": 2.2333, + "angle": -85.28 + }, + { + "time": 2.5, + "angle": -51.96, + "curve": "stepped" + }, + { + "time": 4.5333, + "angle": -51.96 + }, + { + "time": 4.6666, + "angle": -85.28 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "neck": { + "rotate": [ + { + "time": 0, + "angle": -2.82 + }, + { + "time": 0.1333, + "angle": 12.35 + }, + { + "time": 0.2333, + "angle": 29.89 + }, + { + "time": 0.3, + "angle": 70.36 + }, + { + "time": 0.4, + "angle": -10.22, + "curve": "stepped" + }, + { + "time": 0.4333, + "angle": -10.22 + }, + { + "time": 0.5, + "angle": 2.92 + }, + { + "time": 0.5666, + "angle": 47.94, + "curve": "stepped" + }, + { + "time": 2.2333, + "angle": 47.94 + }, + { + "time": 2.5, + "angle": 18.5, + "curve": "stepped" + }, + { + "time": 4.5333, + "angle": 18.5 + }, + { + "time": 4.6666, + "angle": 47.94 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "torso": { + "rotate": [ + { + "time": 0, + "angle": -8.61 + }, + { + "time": 0.1333, + "angle": 28.19 + }, + { + "time": 0.2666, + "angle": -280.19 + }, + { + "time": 0.4, + "angle": -237.22, + "curve": "stepped" + }, + { + "time": 0.4333, + "angle": -237.22 + }, + { + "time": 0.5, + "angle": 76.03, + "curve": "stepped" + }, + { + "time": 0.8, + "angle": 76.03, + "curve": "stepped" + }, + { + "time": 0.9333, + "angle": 76.03, + "curve": "stepped" + }, + { + "time": 2.2333, + "angle": 76.03 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.9333, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 2.2333, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "front_upper_arm": { + "rotate": [ + { + "time": 0, + "angle": -38.85 + }, + { + "time": 0.1333, + "angle": -299.58 + }, + { + "time": 0.2666, + "angle": -244.74 + }, + { + "time": 0.4, + "angle": -292.35 + }, + { + "time": 0.4333, + "angle": -315.84 + }, + { + "time": 0.5, + "angle": -347.94 + }, + { + "time": 0.7, + "angle": -347.33, + "curve": "stepped" + }, + { + "time": 2.2333, + "angle": -347.33 + }, + { + "time": 2.7, + "angle": -290.68 + }, + { + "time": 2.7666, + "angle": -285.1 + }, + { + "time": 4.6666, + "angle": -290.68 + }, + { + "time": 4.8, + "angle": 8.61 + }, + { + "time": 4.8666, + "angle": 10.94 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "rear_upper_arm": { + "rotate": [ + { + "time": 0, + "angle": -44.69 + }, + { + "time": 0.1333, + "angle": 112.26 + }, + { + "time": 0.2666, + "angle": 129.07 + }, + { + "time": 0.4, + "angle": 134.94, + "curve": "stepped" + }, + { + "time": 0.4333, + "angle": 134.94 + }, + { + "time": 0.5666, + "angle": 172.6, + "curve": "stepped" + }, + { + "time": 0.9333, + "angle": 172.6, + "curve": "stepped" + }, + { + "time": 2.2333, + "angle": 172.6 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "front_bracer": { + "rotate": [ + { + "time": 0, + "angle": 21.88 + }, + { + "time": 0.1333, + "angle": 11.48 + }, + { + "time": 0.2666, + "angle": -18.81 + }, + { + "time": 0.4, + "angle": -18.92 + }, + { + "time": 0.4333, + "angle": -18.28 + }, + { + "time": 0.5, + "angle": 60.61 + }, + { + "time": 0.7, + "angle": -18.87, + "curve": "stepped" + }, + { + "time": 2.2333, + "angle": -18.87 + }, + { + "time": 2.7, + "angle": -1.95, + "curve": "stepped" + }, + { + "time": 4.6666, + "angle": -1.95 + }, + { + "time": 4.8, + "angle": 34.55 + }, + { + "time": 4.9333, + "angle": -18.74 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "front_fist": { + "rotate": [ + { + "time": 0, + "angle": -2.33 + }, + { + "time": 0.2666, + "angle": 26.34 + }, + { + "time": 0.7, + "angle": -6.07, + "curve": "stepped" + }, + { + "time": 2.2333, + "angle": -6.07 + }, + { + "time": 2.7, + "angle": 5.72, + "curve": "stepped" + }, + { + "time": 4.6666, + "angle": 5.72 + }, + { + "time": 4.8666, + "angle": -6.52 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "rear_bracer": { + "rotate": [ + { + "time": 0, + "angle": 10.36 + }, + { + "time": 0.1333, + "angle": -23.12 + }, + { + "time": 0.2666, + "angle": -23.11 + }, + { + "time": 0.4, + "angle": -23.16, + "curve": "stepped" + }, + { + "time": 0.4333, + "angle": -23.16 + }, + { + "time": 0.5666, + "angle": -23.2, + "curve": "stepped" + }, + { + "time": 0.9333, + "angle": -23.2, + "curve": "stepped" + }, + { + "time": 2.2333, + "angle": -23.2 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "gun": { + "rotate": [ + { + "time": 0, + "angle": -2.78 + }, + { + "time": 0.1333, + "angle": -24.58 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "hip": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": "stepped" + }, + { + "time": 0.9333, + "angle": 0, + "curve": "stepped" + }, + { + "time": 2.2333, + "angle": 0 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.2, + "x": 50.34, + "y": 151.73 + }, + { + "time": 0.4, + "x": 5.16, + "y": -119.64, + "curve": "stepped" + }, + { + "time": 0.4333, + "x": 5.16, + "y": -119.64 + }, + { + "time": 0.5, + "x": 50.34, + "y": -205.18, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 50.34, + "y": -205.18, + "curve": "stepped" + }, + { + "time": 0.9333, + "x": 50.34, + "y": -205.18, + "curve": "stepped" + }, + { + "time": 2.2333, + "x": 50.34, + "y": -205.18 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "front_thigh": { + "rotate": [ + { + "time": 0, + "angle": 0 + }, + { + "time": 0.1333, + "angle": 8.47 + }, + { + "time": 0.2666, + "angle": 115.95 + }, + { + "time": 0.4, + "angle": 180.66, + "curve": "stepped" + }, + { + "time": 0.4333, + "angle": 180.66 + }, + { + "time": 0.5, + "angle": 155.22 + }, + { + "time": 0.6, + "angle": 97.73 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "front_shin": { + "rotate": [ + { + "time": 0, + "angle": 0 + }, + { + "time": 0.1333, + "angle": -27.37 + }, + { + "time": 0.2666, + "angle": -35.1 + }, + { + "time": 0.4, + "angle": -37.72, + "curve": "stepped" + }, + { + "time": 0.4333, + "angle": -37.72 + }, + { + "time": 0.5, + "angle": -40.06 + }, + { + "time": 0.6, + "angle": 2.76 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "rear_thigh": { + "rotate": [ + { + "time": 0, + "angle": 0 + }, + { + "time": 0.1333, + "angle": 70.45 + }, + { + "time": 0.2666, + "angle": 155.34 + }, + { + "time": 0.4, + "angle": 214.31, + "curve": "stepped" + }, + { + "time": 0.4333, + "angle": 214.31 + }, + { + "time": 0.5, + "angle": 169.67 + }, + { + "time": 0.8, + "angle": 83.27 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "rear_shin": { + "rotate": [ + { + "time": 0, + "angle": 0 + }, + { + "time": 0.1333, + "angle": 18.93 + }, + { + "time": 0.2666, + "angle": -21.04 + }, + { + "time": 0.4, + "angle": -29.93, + "curve": "stepped" + }, + { + "time": 0.4333, + "angle": -29.93 + }, + { + "time": 0.5, + "angle": -16.79 + }, + { + "time": 0.8, + "angle": 7.77 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "rear_foot": { + "rotate": [ + { + "time": 0, + "angle": 0 + }, + { + "time": 0.1333, + "angle": -11.62 + }, + { + "time": 0.4, + "angle": -45.59, + "curve": "stepped" + }, + { + "time": 0.4333, + "angle": -45.59 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "front_foot": { + "rotate": [ + { + "time": 0, + "angle": 0 + }, + { + "time": 0.4, + "angle": -48.75, + "curve": "stepped" + }, + { + "time": 0.4333, + "angle": -48.75 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "gunTip": { + "rotate": [ + { + "time": 0, + "angle": 0 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + } + } + }, + "hit": { + "slots": { + "front_fist": { + "attachment": [ + { + "time": 0.1666, + "name": "front_fist_open" + } + ] + }, + "mouth": { + "attachment": [ + { + "time": 0, + "name": "mouth_grind" + }, + { + "time": 0.3333, + "name": "mouth_smile" + } + ] + } + }, + "bones": { + "torso": { + "rotate": [ + { + "time": 0, + "angle": 56.42 + }, + { + "time": 0.3333, + "angle": 8.89 + } + ] + }, + "neck": { + "rotate": [ + { + "time": 0, + "angle": 35.38 + }, + { + "time": 0.2333, + "angle": 24.94 + } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 10.21 + }, + { + "time": 0.3333, + "angle": -41.3 + } + ] + }, + "front_upper_arm": { + "rotate": [ + { + "time": 0, + "angle": -310.92, + "curve": [ + 0.38, + 0.53, + 0.744, + 1 + ] + }, + { + "time": 0.3333, + "angle": -112.59 + } + ], + "translate": [ + { + "time": 0, + "x": 7.23, + "y": -13.13 + } + ] + }, + "front_bracer": { + "rotate": [ + { + "time": 0, + "angle": 36.99 + }, + { + "time": 0.3333, + "angle": -28.64 + } + ] + }, + "front_fist": { + "rotate": [ + { + "time": 0, + "angle": 13.59 + }, + { + "time": 0.3333, + "angle": 7.55 + } + ] + }, + "rear_upper_arm": { + "rotate": [ + { + "time": 0, + "angle": 271.02, + "curve": [ + 0.342, + 0.36, + 0.68, + 0.71 + ] + }, + { + "time": 0.3333, + "angle": -15.84 + } + ], + "translate": [ + { + "time": 0.3333, + "x": -0.09, + "y": -0.46 + } + ] + }, + "rear_bracer": { + "rotate": [ + { + "time": 0, + "angle": 0 + }, + { + "time": 0.3333, + "angle": 40.03 + } + ] + }, + "gun": { + "rotate": [ + { + "time": 0, + "angle": 14.98 + }, + { + "time": 0.3333, + "angle": 39.75 + } + ] + }, + "hip": { + "translate": [ + { + "time": 0, + "x": -75.54, + "y": -78.03 + }, + { + "time": 0.2333, + "x": -36.48, + "y": 12.42 + }, + { + "time": 0.3333, + "x": -36.48, + "y": -2.99 + } + ] + }, + "front_thigh": { + "rotate": [ + { + "time": 0, + "angle": 90.94, + "curve": [ + 0.227, + 0.26, + 0.432, + 1 + ] + }, + { + "time": 0.3333, + "angle": 32.02 + } + ], + "translate": [ + { + "time": 0, + "x": 7.21, + "y": -4 + } + ] + }, + "rear_thigh": { + "rotate": [ + { + "time": 0, + "angle": 40.51, + "curve": [ + 0.295, + 0.3, + 0.59, + 0.99 + ] + }, + { + "time": 0.3333, + "angle": 90.76 + } + ], + "translate": [ + { + "time": 0, + "x": -1.96, + "y": -0.32 + } + ] + }, + "front_shin": { + "rotate": [ + { + "time": 0, + "angle": -96.62 + }, + { + "time": 0.3333, + "angle": -15.13 + } + ] + }, + "rear_shin": { + "rotate": [ + { + "time": 0, + "angle": 7.99 + }, + { + "time": 0.3333, + "angle": -67.54 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "front_foot": { + "rotate": [ + { + "time": 0, + "angle": 5.4 + }, + { + "time": 0.3333, + "angle": -16.26 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "rear_foot": { + "rotate": [ + { + "time": 0, + "angle": 2.67 + }, + { + "time": 0.3333, + "angle": -10.31 + } + ] + } + } + }, + "idle": { + "slots": { + "front_fist": { + "attachment": [ + { + "time": 0, + "name": "front_fist_open" + }, + { + "time": 1.6666, + "name": "front_fist_open" + } + ] + }, + "mouth": { + "attachment": [ + { + "time": 0, + "name": "mouth_smile" + }, + { + "time": 1.6666, + "name": "mouth_smile" + } + ] + } + }, + "bones": { + "torso": { + "rotate": [ + { + "time": 0, + "angle": -5.61, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.8333, + "angle": -9.65, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 1.6666, + "angle": -5.61 + } + ], + "translate": [ + { + "time": 0, + "x": -6.49, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ] + }, + "front_upper_arm": { + "rotate": [ + { + "time": 0, + "angle": -59.85, + "curve": [ + 0.492, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.6666, + "angle": -54.31, + "curve": [ + 0.324, + 0.11, + 0.75, + 1 + ] + }, + { + "time": 1.6666, + "angle": -59.85 + } + ], + "translate": [ + { + "time": 0, + "x": -7.12, + "y": -8.23 + }, + { + "time": 0.6666, + "x": -6.32, + "y": -8.3 + }, + { + "time": 1.6666, + "x": -7.12, + "y": -8.23 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ] + }, + "rear_upper_arm": { + "rotate": [ + { + "time": 0, + "angle": 62.41, + "curve": [ + 0.504, + 0.02, + 0.75, + 1 + ] + }, + { + "time": 0.7333, + "angle": 43.83, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 1.6666, + "angle": 62.41 + } + ], + "translate": [ + { + "time": 0, + "x": -1.83, + "y": -16.78 + }, + { + "time": 0.6666, + "x": 0.34, + "y": -15.23 + }, + { + "time": 1.6666, + "x": -1.83, + "y": -16.78 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ] + }, + "neck": { + "rotate": [ + { + "time": 0, + "angle": 0 + }, + { + "time": 0.6666, + "angle": 2.39 + }, + { + "time": 1.6666, + "angle": 0 + } + ], + "translate": [ + { + "time": 0, + "x": -1.88, + "y": -4.76, + "curve": "stepped" + }, + { + "time": 1.6666, + "x": -1.88, + "y": -4.76 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ] + }, + "front_thigh": { + "rotate": [ + { + "time": 0, + "angle": 0.64, + "curve": [ + 0.235, + 0, + 0.558, + 0.99 + ] + }, + { + "time": 0.6666, + "angle": -4.34, + "curve": [ + 0.594, + 0, + 0.653, + 1 + ] + }, + { + "time": 1.6666, + "angle": 0.64 + } + ], + "translate": [ + { + "time": 0, + "x": -13.39, + "y": 6.69, + "curve": "stepped" + }, + { + "time": 1.6666, + "x": -13.39, + "y": 6.69 + } + ], + "scale": [ + { + "time": 0, + "x": 0.896, + "y": 1, + "curve": [ + 0.235, + 0, + 0.558, + 0.99 + ] + }, + { + "time": 0.6666, + "x": 0.825, + "y": 1, + "curve": [ + 0.594, + 0, + 0.653, + 1 + ] + }, + { + "time": 1.6666, + "x": 0.896, + "y": 1 + } + ] + }, + "front_shin": { + "rotate": [ + { + "time": 0, + "angle": -19.28, + "curve": "stepped" + }, + { + "time": 1.6666, + "angle": -19.28 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": [ + 0.235, + 0, + 0.558, + 0.99 + ] + }, + { + "time": 0.6666, + "x": 0.994, + "y": 1, + "curve": [ + 0.594, + 0, + 0.653, + 1 + ] + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ] + }, + "rear_thigh": { + "rotate": [ + { + "time": 0, + "angle": 30.5, + "curve": [ + 0.235, + 0, + 0.558, + 0.99 + ] + }, + { + "time": 0.6666, + "angle": 40.15, + "curve": [ + 0.594, + 0, + 0.653, + 1 + ] + }, + { + "time": 1.6666, + "angle": 30.5 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ] + }, + "rear_shin": { + "rotate": [ + { + "time": 0, + "angle": -23.83, + "curve": [ + 0.235, + 0, + 0.558, + 0.99 + ] + }, + { + "time": 0.6666, + "angle": -43.77, + "curve": [ + 0.594, + 0, + 0.653, + 1 + ] + }, + { + "time": 1.6666, + "angle": -23.83 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ] + }, + "front_foot": { + "rotate": [ + { + "time": 0, + "angle": 5.13, + "curve": [ + 0.235, + 0, + 0.558, + 0.99 + ] + }, + { + "time": 0.6666, + "angle": 10.04, + "curve": [ + 0.594, + 0, + 0.653, + 1 + ] + }, + { + "time": 1.6666, + "angle": 5.13 + } + ], + "scale": [ + { + "time": 0, + "x": 0.755, + "y": 1.309, + "curve": "stepped" + }, + { + "time": 1.6666, + "x": 0.755, + "y": 1.309 + } + ] + }, + "hip": { + "translate": [ + { + "time": 0, + "x": -6.63, + "y": -23.01, + "curve": [ + 0.235, + 0, + 0.558, + 0.99 + ] + }, + { + "time": 0.6666, + "x": 6.27, + "y": -35, + "curve": [ + 0.594, + 0, + 0.653, + 1 + ] + }, + { + "time": 1.6666, + "x": -6.63, + "y": -23.01 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ] + }, + "rear_foot": { + "rotate": [ + { + "time": 0, + "angle": -7.34, + "curve": [ + 0.235, + 0, + 0.558, + 0.99 + ] + }, + { + "time": 0.6666, + "angle": 3.85, + "curve": [ + 0.594, + 0, + 0.653, + 1 + ] + }, + { + "time": 1.6666, + "angle": -7.34 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ] + }, + "rear_bracer": { + "rotate": [ + { + "time": 0, + "angle": -17.16, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.6666, + "angle": 12.52, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 1.6666, + "angle": -17.16 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": -5.51, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.6666, + "angle": -3.12, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 1.6666, + "angle": -5.51 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ] + }, + "front_bracer": { + "rotate": [ + { + "time": 0, + "angle": 45.46, + "curve": [ + 0.492, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.6666, + "angle": 41.33, + "curve": [ + 0.32, + 0.1, + 0.736, + 0.91 + ] + }, + { + "time": 1.6666, + "angle": 45.46 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ] + }, + "gun": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.6666, + "angle": -15.59, + "curve": [ + 0.732, + 0, + 0.769, + 0.99 + ] + }, + { + "time": 1.6666, + "angle": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ] + }, + "front_fist": { + "rotate": [ + { + "time": 0, + "angle": -6.84, + "curve": [ + 0.492, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.6666, + "angle": -14.63, + "curve": [ + 0.324, + 0.11, + 0.75, + 1 + ] + }, + { + "time": 1.6666, + "angle": -6.84 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.6666, + "x": 0.689, + "y": 1.1, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ] + } + } + }, + "jump": { + "slots": { + "front_fist": { + "attachment": [ + { + "time": 0, + "name": "front_fist_open" + }, + { + "time": 0.2, + "name": "front_fist_closed" + }, + { + "time": 0.6666, + "name": "front_fist_open" + } + ] + }, + "mouth": { + "attachment": [ + { + "time": 0, + "name": "mouth_grind" + } + ] + }, + "torso": { + "attachment": [ + { + "time": 0, + "name": "torso" + } + ] + } + }, + "bones": { + "front_thigh": { + "rotate": [ + { + "time": 0, + "angle": 91.53, + "curve": [ + 0.278, + 0.46, + 0.763, + 1 + ] + }, + { + "time": 0.2, + "angle": -35.83, + "curve": [ + 0.761, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.4333, + "angle": 127.74 + }, + { + "time": 0.7333, + "angle": 48.18, + "curve": [ + 0.227, + 0.26, + 0.432, + 1 + ] + }, + { + "time": 0.8333, + "angle": 25.35 + }, + { + "time": 0.9333, + "angle": 45.37 + }, + { + "time": 1.0333, + "angle": 38.12 + }, + { + "time": 1.1333, + "angle": 25.35 + }, + { + "time": 1.3333, + "angle": 91.53 + } + ], + "translate": [ + { + "time": 0, + "x": -2.56, + "y": 5.77 + }, + { + "time": 0.4333, + "x": 8.3, + "y": 7.98 + }, + { + "time": 0.7333, + "x": 7.21, + "y": -4 + }, + { + "time": 1.3333, + "x": -2.56, + "y": 5.77 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "torso": { + "rotate": [ + { + "time": 0, + "angle": -42.63 + }, + { + "time": 0.2, + "angle": -5.74 + }, + { + "time": 0.4333, + "angle": -50.76 + }, + { + "time": 0.7333, + "angle": 1.89 + }, + { + "time": 0.8333, + "angle": 11.58 + }, + { + "time": 0.9666, + "angle": -1.89 + }, + { + "time": 1.1333, + "angle": 11.58 + }, + { + "time": 1.3333, + "angle": -42.63 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "rear_thigh": { + "rotate": [ + { + "time": 0, + "angle": -26.32 + }, + { + "time": 0.2, + "angle": 121.44 + }, + { + "time": 0.4333, + "angle": 70.54 + }, + { + "time": 0.7333, + "angle": 79.89, + "curve": [ + 0.295, + 0.3, + 0.59, + 0.99 + ] + }, + { + "time": 0.8333, + "angle": 99.12 + }, + { + "time": 0.9333, + "angle": 74.05 + }, + { + "time": 1.0333, + "angle": 98.04 + }, + { + "time": 1.1333, + "angle": 99.12 + }, + { + "time": 1.3333, + "angle": -26.32 + } + ], + "translate": [ + { + "time": 0, + "x": -0.56, + "y": -0.32 + }, + { + "time": 0.4333, + "x": -8.5, + "y": 10.58 + }, + { + "time": 0.7333, + "x": -1.96, + "y": -0.32 + }, + { + "time": 1.3333, + "x": -0.56, + "y": -0.32 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "rear_shin": { + "rotate": [ + { + "time": 0, + "angle": -78.69 + }, + { + "time": 0.4333, + "angle": -55.56 + }, + { + "time": 0.7333, + "angle": -62.84 + }, + { + "time": 0.8333, + "angle": -80.74 + }, + { + "time": 0.9333, + "angle": -41.12 + }, + { + "time": 1.0333, + "angle": -77.4 + }, + { + "time": 1.1333, + "angle": -80.74 + }, + { + "time": 1.3333, + "angle": -78.69 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.7333, + "x": 1, + "y": 1 + } + ] + }, + "front_upper_arm": { + "rotate": [ + { + "time": 0, + "angle": -22.61 + }, + { + "time": 0.2, + "angle": -246.68 + }, + { + "time": 0.6, + "angle": 11.28, + "curve": [ + 0.246, + 0, + 0.633, + 0.53 + ] + }, + { + "time": 0.7333, + "angle": -57.45, + "curve": [ + 0.38, + 0.53, + 0.744, + 1 + ] + }, + { + "time": 0.8666, + "angle": -112.59 + }, + { + "time": 0.9333, + "angle": -102.17 + }, + { + "time": 1.0333, + "angle": -108.61 + }, + { + "time": 1.1333, + "angle": -112.59 + }, + { + "time": 1.3333, + "angle": -22.61 + } + ], + "translate": [ + { + "time": 0, + "x": 6.08, + "y": 7.15 + }, + { + "time": 0.2, + "x": 7.23, + "y": -13.13, + "curve": "stepped" + }, + { + "time": 0.7333, + "x": 7.23, + "y": -13.13 + }, + { + "time": 1.3333, + "x": 6.08, + "y": 7.15 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "front_bracer": { + "rotate": [ + { + "time": 0, + "angle": 66.46 + }, + { + "time": 0.2, + "angle": 42.39 + }, + { + "time": 0.4333, + "angle": 26.06 + }, + { + "time": 0.7333, + "angle": 13.28 + }, + { + "time": 0.8666, + "angle": -28.64 + }, + { + "time": 0.9333, + "angle": -22.31 + }, + { + "time": 1.0333, + "angle": -35.39 + }, + { + "time": 1.1333, + "angle": -28.64 + }, + { + "time": 1.3333, + "angle": 66.46 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "front_fist": { + "rotate": [ + { + "time": 0, + "angle": -28.43 + }, + { + "time": 0.4333, + "angle": -45.6 + }, + { + "time": 0.7333, + "angle": -53.66 + }, + { + "time": 0.8666, + "angle": 7.55 + }, + { + "time": 0.9333, + "angle": 31.15 + }, + { + "time": 1.0333, + "angle": -32.58 + }, + { + "time": 1.1333, + "angle": 7.55 + }, + { + "time": 1.3333, + "angle": -28.43 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "rear_upper_arm": { + "rotate": [ + { + "time": 0, + "angle": 39.68 + }, + { + "time": 0.2, + "angle": 276.57 + }, + { + "time": 0.3, + "angle": 17.73 + }, + { + "time": 0.4333, + "angle": 83.38 + }, + { + "time": 0.6, + "angle": -4.71, + "curve": [ + 0.246, + 0, + 0.633, + 0.53 + ] + }, + { + "time": 0.7333, + "angle": -69.63, + "curve": [ + 0.342, + 0.36, + 0.68, + 0.71 + ] + }, + { + "time": 0.7666, + "angle": 321.47, + "curve": [ + 0.333, + 0.33, + 0.667, + 0.66 + ] + }, + { + "time": 0.8, + "angle": 33.7, + "curve": [ + 0.358, + 0.64, + 0.693, + 1 + ] + }, + { + "time": 0.8666, + "angle": 34.56 + }, + { + "time": 1.0333, + "angle": 71.96 + }, + { + "time": 1.1333, + "angle": 34.56 + }, + { + "time": 1.3333, + "angle": 39.68 + } + ], + "translate": [ + { + "time": 0, + "x": -3.1, + "y": -4.86 + }, + { + "time": 0.2, + "x": 23.33, + "y": 49.07 + }, + { + "time": 0.4333, + "x": 20.78, + "y": 40.21 + }, + { + "time": 1.3333, + "x": -3.1, + "y": -4.86 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "rear_bracer": { + "rotate": [ + { + "time": 0, + "angle": 29.66 + }, + { + "time": 0.2, + "angle": 45.06 + }, + { + "time": 0.4333, + "angle": -4.34 + }, + { + "time": 0.7666, + "angle": 61.68 + }, + { + "time": 0.8, + "angle": 82.59 + }, + { + "time": 0.8666, + "angle": 80.06 + }, + { + "time": 1.0333, + "angle": 57.56 + }, + { + "time": 1.1333, + "angle": 80.06 + }, + { + "time": 1.3333, + "angle": 29.66 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "neck": { + "rotate": [ + { + "time": 0, + "angle": 24.9 + }, + { + "time": 0.2, + "angle": 16.31 + }, + { + "time": 0.4333, + "angle": 7.44 + }, + { + "time": 0.7333, + "angle": -20.35 + }, + { + "time": 0.8333, + "angle": -0.69, + "curve": "stepped" + }, + { + "time": 1.1333, + "angle": -0.69 + }, + { + "time": 1.3333, + "angle": 24.9 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 24.92 + }, + { + "time": 0.2, + "angle": 10.36 + }, + { + "time": 0.4333, + "angle": 28.65 + }, + { + "time": 0.7333, + "angle": -2.65 + }, + { + "time": 0.8333, + "angle": -28.94, + "curve": "stepped" + }, + { + "time": 1.1333, + "angle": -28.94 + }, + { + "time": 1.3333, + "angle": 24.92 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "hip": { + "rotate": [ + { + "time": 0, + "angle": 0 + } + ], + "translate": [ + { + "time": 0, + "x": -34.51, + "y": -78.62, + "curve": [ + 0.232, + 1, + 0.75, + 1 + ] + }, + { + "time": 0.2, + "x": -34.51, + "y": 182.5, + "curve": [ + 0.232, + 0.48, + 0.598, + 0.79 + ] + }, + { + "time": 0.7666, + "x": -34.51, + "y": 596.22, + "curve": [ + 0.329, + 0.17, + 0.66, + 0.21 + ] + }, + { + "time": 1.1333, + "x": -34.51, + "y": 2.49 + }, + { + "time": 1.3333, + "x": -34.51, + "y": -78.62 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "front_shin": { + "rotate": [ + { + "time": 0, + "angle": -90.62, + "curve": [ + 0.416, + 0.54, + 0.743, + 1 + ] + }, + { + "time": 0.2, + "angle": -10.52, + "curve": [ + 0.644, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.4333, + "angle": -127.72 + }, + { + "time": 0.7333, + "angle": -19.91 + }, + { + "time": 0.8333, + "angle": -5.16 + }, + { + "time": 0.9333, + "angle": -35.06 + }, + { + "time": 1.0333, + "angle": -43.97 + }, + { + "time": 1.1333, + "angle": -5.16 + }, + { + "time": 1.3333, + "angle": -90.62 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "front_foot": { + "rotate": [ + { + "time": 0, + "angle": -0.79 + }, + { + "time": 0.0333, + "angle": 16.27 + }, + { + "time": 0.0666, + "angle": 23.52 + }, + { + "time": 0.1, + "angle": 21.02 + }, + { + "time": 0.1333, + "angle": 10.92 + }, + { + "time": 0.2, + "angle": -38.45 + }, + { + "time": 0.4333, + "angle": 6.62 + }, + { + "time": 0.7333, + "angle": -11.51 + }, + { + "time": 1.0333, + "angle": -22.91 + }, + { + "time": 1.3333, + "angle": -0.79 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "rear_foot": { + "rotate": [ + { + "time": 0, + "angle": -12.77 + }, + { + "time": 0.2, + "angle": 17.05 + }, + { + "time": 0.4333, + "angle": 19.45 + }, + { + "time": 0.7333, + "angle": 2.67 + }, + { + "time": 1.0333, + "angle": -28.49 + }, + { + "time": 1.3333, + "angle": -12.77 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "gun": { + "rotate": [ + { + "time": 0, + "angle": 6.18 + }, + { + "time": 0.2, + "angle": 30.81 + }, + { + "time": 0.4333, + "angle": 13.25 + }, + { + "time": 0.7333, + "angle": 14.98 + }, + { + "time": 0.7666, + "angle": 25.64 + }, + { + "time": 0.8, + "angle": 20.62 + }, + { + "time": 0.8666, + "angle": 64.52 + }, + { + "time": 1.0333, + "angle": 8.59 + }, + { + "time": 1.1333, + "angle": 64.52 + }, + { + "time": 1.3333, + "angle": 6.18 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + } + } + }, + "run": { + "slots": { + "front_fist": { + "attachment": [ + { + "time": 0, + "name": "front_fist_closed" + } + ] + }, + "mouth": { + "attachment": [ + { + "time": 0, + "name": "mouth_grind" + } + ] + }, + "torso": { + "attachment": [ + { + "time": 0, + "name": "torso" + } + ] + } + }, + "bones": { + "front_thigh": { + "rotate": [ + { + "time": 0, + "angle": 42.05, + "curve": [ + 0.195, + 0.86, + 0.75, + 1 + ] + }, + { + "time": 0.0666, + "angle": 46.07 + }, + { + "time": 0.1333, + "angle": -20.28 + }, + { + "time": 0.2, + "angle": -27.23 + }, + { + "time": 0.2666, + "angle": -47.16 + }, + { + "time": 0.3333, + "angle": -39.79 + }, + { + "time": 0.4, + "angle": -25.86 + }, + { + "time": 0.4666, + "angle": 14.35 + }, + { + "time": 0.5333, + "angle": 55.62 + }, + { + "time": 0.6, + "angle": 69.65 + }, + { + "time": 0.6666, + "angle": 86.4 + }, + { + "time": 0.7333, + "angle": 65.87 + }, + { + "time": 0.8, + "angle": 42.05 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.0333, + "x": -5.79, + "y": 11.15 + }, + { + "time": 0.0666, + "x": -5.13, + "y": 11.55 + }, + { + "time": 0.1333, + "x": -7.7, + "y": 8.98 + }, + { + "time": 0.5333, + "x": -1.26, + "y": 3.83 + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "torso": { + "rotate": [ + { + "time": 0, + "angle": -39.7 + }, + { + "time": 0.2, + "angle": -57.29 + }, + { + "time": 0.4, + "angle": -39.7 + }, + { + "time": 0.6, + "angle": -57.29 + }, + { + "time": 0.8, + "angle": -39.7 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.4, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "rear_thigh": { + "rotate": [ + { + "time": 0, + "angle": -56.59 + }, + { + "time": 0.0666, + "angle": -21.57 + }, + { + "time": 0.1333, + "angle": 27.95 + }, + { + "time": 0.2, + "angle": 42.42 + }, + { + "time": 0.2666, + "angle": 62.37 + }, + { + "time": 0.3333, + "angle": 45.42 + }, + { + "time": 0.4, + "angle": 15.67 + }, + { + "time": 0.4666, + "angle": 28.22 + }, + { + "time": 0.5333, + "angle": -38.62 + }, + { + "time": 0.6, + "angle": -53.26 + }, + { + "time": 0.6666, + "angle": -79.31 + }, + { + "time": 0.7333, + "angle": -86.47 + }, + { + "time": 0.8, + "angle": -56.59 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.4, + "x": -6.76, + "y": -3.86 + }, + { + "time": 0.4333, + "x": -15.85, + "y": 7.28 + }, + { + "time": 0.4666, + "x": -13.04, + "y": 4.04 + }, + { + "time": 0.5, + "x": -10.24, + "y": 7.11 + }, + { + "time": 0.5333, + "x": -9.01, + "y": -5.15 + }, + { + "time": 0.6666, + "x": -23.18, + "y": -2.57 + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "rear_shin": { + "rotate": [ + { + "time": 0, + "angle": -74 + }, + { + "time": 0.0666, + "angle": -83.38 + }, + { + "time": 0.1333, + "angle": -106.69 + }, + { + "time": 0.2, + "angle": -66.01 + }, + { + "time": 0.2666, + "angle": -55.22 + }, + { + "time": 0.3333, + "angle": -24.8 + }, + { + "time": 0.4, + "angle": 18.44, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.4666, + "angle": -56.65 + }, + { + "time": 0.5333, + "angle": -11.94, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.6666, + "angle": -41.26 + }, + { + "time": 0.7333, + "angle": -43.6 + }, + { + "time": 0.8, + "angle": -74 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "front_upper_arm": { + "rotate": [ + { + "time": 0, + "angle": -89.36 + }, + { + "time": 0.0666, + "angle": -95.67 + }, + { + "time": 0.1333, + "angle": -22 + }, + { + "time": 0.2, + "angle": -316.04 + }, + { + "time": 0.2666, + "angle": -274.94 + }, + { + "time": 0.3333, + "angle": -273.74 + }, + { + "time": 0.4, + "angle": -272.09 + }, + { + "time": 0.4666, + "angle": -264.89 + }, + { + "time": 0.5333, + "angle": -320.09 + }, + { + "time": 0.6, + "angle": -50.83 + }, + { + "time": 0.6666, + "angle": -81.72 + }, + { + "time": 0.7333, + "angle": -83.92 + }, + { + "time": 0.8, + "angle": -89.36 + } + ], + "translate": [ + { + "time": 0, + "x": 6.24, + "y": 10.05 + }, + { + "time": 0.2666, + "x": 4.95, + "y": -13.13 + }, + { + "time": 0.6, + "x": -2.43, + "y": 1.94 + }, + { + "time": 0.8, + "x": 6.24, + "y": 10.05 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "front_bracer": { + "rotate": [ + { + "time": 0, + "angle": 33.43 + }, + { + "time": 0.0666, + "angle": 20.53 + }, + { + "time": 0.1333, + "angle": 15.26 + }, + { + "time": 0.2, + "angle": 19.28 + }, + { + "time": 0.2666, + "angle": 22.62 + }, + { + "time": 0.3333, + "angle": 37.29 + }, + { + "time": 0.4, + "angle": 41.53 + }, + { + "time": 0.4666, + "angle": 31.73 + }, + { + "time": 0.5333, + "angle": 67.45 + }, + { + "time": 0.6666, + "angle": 39.77 + }, + { + "time": 0.7333, + "angle": 30.95 + }, + { + "time": 0.8, + "angle": 33.43 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "front_fist": { + "rotate": [ + { + "time": 0, + "angle": -19.75 + }, + { + "time": 0.0666, + "angle": -37.11 + }, + { + "time": 0.1333, + "angle": -50.79 + }, + { + "time": 0.2666, + "angle": -12.69 + }, + { + "time": 0.3333, + "angle": 3.01 + }, + { + "time": 0.4333, + "angle": 12.05 + }, + { + "time": 0.5333, + "angle": 13.25 + }, + { + "time": 0.8, + "angle": -19.75 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "rear_upper_arm": { + "rotate": [ + { + "time": 0, + "angle": 68.68 + }, + { + "time": 0.0666, + "angle": 73.89 + }, + { + "time": 0.1333, + "angle": -9.64 + }, + { + "time": 0.2, + "angle": 284.27 + }, + { + "time": 0.2666, + "angle": 283.29 + }, + { + "time": 0.3333, + "angle": 278.28 + }, + { + "time": 0.4, + "angle": 271.02 + }, + { + "time": 0.4666, + "angle": 263.2 + }, + { + "time": 0.5333, + "angle": 314.25 + }, + { + "time": 0.6, + "angle": 16.83 + }, + { + "time": 0.6666, + "angle": 70.35 + }, + { + "time": 0.7333, + "angle": 73.53 + }, + { + "time": 0.8, + "angle": 68.68 + } + ], + "translate": [ + { + "time": 0, + "x": -2.57, + "y": -8.89 + }, + { + "time": 0.1333, + "x": -4.68, + "y": 7.2 + }, + { + "time": 0.2, + "x": 21.73, + "y": 51.17 + }, + { + "time": 0.6, + "x": 4.33, + "y": 2.05 + }, + { + "time": 0.8, + "x": -2.57, + "y": -8.89 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "rear_bracer": { + "rotate": [ + { + "time": 0, + "angle": 31.04 + }, + { + "time": 0.0666, + "angle": 28.28 + }, + { + "time": 0.1333, + "angle": 49.36 + }, + { + "time": 0.2, + "angle": 59.37 + }, + { + "time": 0.2666, + "angle": 8.56 + }, + { + "time": 0.3333, + "angle": 9.38 + }, + { + "time": 0.4, + "angle": 11.51 + }, + { + "time": 0.4666, + "angle": 7.22 + }, + { + "time": 0.5333, + "angle": -18.44 + }, + { + "time": 0.6, + "angle": 11.44 + }, + { + "time": 0.6666, + "angle": 9.99 + }, + { + "time": 0.7333, + "angle": 8.28 + }, + { + "time": 0.8, + "angle": 31.04 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "neck": { + "rotate": [ + { + "time": 0, + "angle": 11.03 + }, + { + "time": 0.2, + "angle": 13.58 + }, + { + "time": 0.4, + "angle": 11.03 + }, + { + "time": 0.6, + "angle": 13.58 + }, + { + "time": 0.8, + "angle": 11.03 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.4, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 11.03 + }, + { + "time": 0.1, + "angle": 12.34 + }, + { + "time": 0.2, + "angle": 25.55 + }, + { + "time": 0.4, + "angle": 11.03 + }, + { + "time": 0.5, + "angle": 12.34 + }, + { + "time": 0.6, + "angle": 25.55 + }, + { + "time": 0.8, + "angle": 11.03 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.4, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "hip": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "angle": 0 + } + ], + "translate": [ + { + "time": 0, + "x": -62.47, + "y": -23.1 + }, + { + "time": 0.0666, + "x": -62.47, + "y": -38.51, + "curve": [ + 0.244, + 0.04, + 0.75, + 1 + ] + }, + { + "time": 0.2666, + "x": -62.47, + "y": 22.28, + "curve": [ + 0.17, + 0.52, + 0.75, + 1 + ] + }, + { + "time": 0.4, + "x": -62.47, + "y": -23.1 + }, + { + "time": 0.4333, + "x": -62.47, + "y": -24.59 + }, + { + "time": 0.4666, + "x": -62.47, + "y": -43.29, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.6666, + "x": -62.47, + "y": 22.28 + }, + { + "time": 0.8, + "x": -62.47, + "y": -23.1 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "front_shin": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ + 0.481, + 0.01, + 0.75, + 1 + ] + }, + { + "time": 0.0666, + "angle": -64.42 + }, + { + "time": 0.1333, + "angle": -20.59, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.2666, + "angle": -62.51 + }, + { + "time": 0.3333, + "angle": -79.74 + }, + { + "time": 0.4, + "angle": -78.28 + }, + { + "time": 0.4666, + "angle": -118.96, + "curve": [ + 0.93, + 0, + 0.952, + 0.95 + ] + }, + { + "time": 0.6, + "angle": -88.95 + }, + { + "time": 0.6666, + "angle": -79.09 + }, + { + "time": 0.7333, + "angle": -47.77 + }, + { + "time": 0.8, + "angle": 0 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "front_foot": { + "rotate": [ + { + "time": 0, + "angle": 0 + }, + { + "time": 0.0333, + "angle": -21.13, + "curve": [ + 0.121, + 0.23, + 0.75, + 1 + ] + }, + { + "time": 0.0666, + "angle": 17.64 + }, + { + "time": 0.1, + "angle": 29.92 + }, + { + "time": 0.1333, + "angle": 16.44 + }, + { + "time": 0.2, + "angle": -29.22 + }, + { + "time": 0.2666, + "angle": -1.61 + }, + { + "time": 0.3333, + "angle": -10.22 + }, + { + "time": 0.4666, + "angle": -15.99 + }, + { + "time": 0.6, + "angle": 9.03 + }, + { + "time": 0.7333, + "angle": 17.32 + }, + { + "time": 0.8, + "angle": 0 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "rear_foot": { + "rotate": [ + { + "time": 0, + "angle": 0 + }, + { + "time": 0.0666, + "angle": -12.04 + }, + { + "time": 0.1333, + "angle": -0.87 + }, + { + "time": 0.2, + "angle": 25.81 + }, + { + "time": 0.2666, + "angle": 4.71 + }, + { + "time": 0.4, + "angle": 18.09, + "curve": [ + 0.281, + 0.73, + 0.75, + 1 + ] + }, + { + "time": 0.4333, + "angle": -1.7 + }, + { + "time": 0.4666, + "angle": 27.12 + }, + { + "time": 0.5, + "angle": 38.83 + }, + { + "time": 0.5333, + "angle": 30.76 + }, + { + "time": 0.5666, + "angle": -20.49 + }, + { + "time": 0.6, + "angle": -30.8 + }, + { + "time": 0.6666, + "angle": -1.31 + }, + { + "time": 0.8, + "angle": 0 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "gun": { + "rotate": [ + { + "time": 0, + "angle": 0 + }, + { + "time": 0.1333, + "angle": 24.72 + }, + { + "time": 0.5, + "angle": -11.87 + }, + { + "time": 0.8, + "angle": 0 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + } + }, + "events": [ + { + "time": 0, + "name": "footstep" + }, + { + "time": 0.4, + "name": "footstep", + "int": 1 + } + ] + }, + "shoot": { + "slots": { + "front_fist": { + "attachment": [ + { + "time": 0.1333, + "name": "front_fist_closed" + }, + { + "time": 0.4, + "name": "front_fist_open" + } + ] + }, + "mouth": { + "attachment": [ + { + "time": 0.1333, + "name": "mouth_grind" + } + ] + }, + "muzzle": { + "attachment": [ + { + "time": 0.1333, + "name": "muzzle" + }, + { + "time": 0.2666, + "name": null + } + ], + "color": [ + { + "time": 0.1333, + "color": "ffffff00", + "curve": [ + 0.118, + 0.99, + 0.75, + 1 + ] + }, + { + "time": 0.1666, + "color": "ffffffff", + "curve": [ + 0.821, + 0, + 0.909, + 0.89 + ] + }, + { + "time": 0.2666, + "color": "ffffff00" + } + ] + } + }, + "bones": { + "front_fist": { + "scale": [ + { + "time": 0.1333, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.4, + "x": 1, + "y": 1 + } + ] + }, + "gunTip": { + "translate": [ + { + "time": 0.1333, + "x": 0, + "y": 0 + }, + { + "time": 0.2, + "x": 20.93, + "y": 1.57 + } + ], + "scale": [ + { + "time": 0.1333, + "x": 1, + "y": 1 + }, + { + "time": 0.2, + "x": 1.247, + "y": 1.516 + } + ] + }, + "gun": { + "rotate": [ + { + "time": 0, + "angle": 1.9 + } + ], + "translate": [ + { + "time": 0, + "x": 7.95, + "y": 5.84, + "curve": [ + 0, + 0.3, + 0.678, + 1 + ] + }, + { + "time": 0.3, + "x": -9.3, + "y": -1.41 + }, + { + "time": 0.4, + "x": 0, + "y": 0 + } + ] + }, + "rear_bracer": { + "rotate": [ + { + "time": 0, + "angle": -30.47 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ + 0, + 0.3, + 0.678, + 1 + ] + }, + { + "time": 0.3, + "x": -5.99, + "y": -3.71 + }, + { + "time": 0.4, + "x": 0, + "y": 0 + } + ] + }, + "rear_upper_arm": { + "rotate": [ + { + "time": 0, + "angle": 62.3 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ + 0, + 0.3, + 0.678, + 1 + ] + }, + { + "time": 0.3, + "x": 2.81, + "y": 11.41 + }, + { + "time": 0.4, + "x": 0, + "y": 0 + } + ] + } + } + }, + "test": { + "slots": { + "front_foot": { + "color": [ + { + "time": 0.6666, + "color": "ffffffff" + }, + { + "time": 1.3333, + "color": "ff0700ff" + } + ] + }, + "gun": { + "color": [ + { + "time": 0, + "color": "ffffffff", + "curve": "stepped" + }, + { + "time": 0.6666, + "color": "ffffffff" + }, + { + "time": 1.3333, + "color": "32ff00ff" + } + ] + }, + "rear_foot": { + "color": [ + { + "time": 0.6666, + "color": "ffffffff" + }, + { + "time": 1.3333, + "color": "ff0700ff" + } + ] + } + }, + "bones": { + "head": { + "rotate": [ + { + "time": 0, + "angle": 0 + }, + { + "time": 0.3333, + "angle": -20.72 + }, + { + "time": 0.6666, + "angle": -32.41 + }, + { + "time": 1, + "angle": -5.3 + }, + { + "time": 1.3333, + "angle": 24.96 + }, + { + "time": 1.6666, + "angle": 15.61 + }, + { + "time": 2, + "angle": 0 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ + 0.172, + 0.37, + 0.574, + 0.73 + ] + }, + { + "time": 0.1666, + "x": 144.19, + "y": -77.59, + "curve": [ + 0.372, + 0.61, + 0.765, + 1 + ] + }, + { + "time": 0.3333, + "x": 217.61, + "y": -192.63, + "curve": [ + 0.282, + 0, + 0.624, + 0.31 + ] + }, + { + "time": 0.5, + "x": 181.21, + "y": -365.66, + "curve": [ + 0.313, + 0.21, + 0.654, + 0.54 + ] + }, + { + "time": 0.6666, + "x": 20.09, + "y": -500.4, + "curve": [ + 0.147, + 0.27, + 0.75, + 1 + ] + }, + { + "time": 0.8333, + "x": -194.24, + "y": -341.84 + }, + { + "time": 1, + "x": -307.93, + "y": -114 + }, + { + "time": 1.1666, + "x": -330.38, + "y": 121.42, + "curve": [ + 0.25, + 0, + 0.764, + 0.48 + ] + }, + { + "time": 1.3333, + "x": -240.42, + "y": 335.66, + "curve": [ + 0.229, + 0.37, + 0.58, + 0.73 + ] + }, + { + "time": 1.5, + "x": -56.12, + "y": 288.06, + "curve": [ + 0.296, + 0.6, + 0.641, + 1 + ] + }, + { + "time": 1.6666, + "x": 87.63, + "y": 191.33, + "curve": [ + 0.238, + 0, + 0.626, + 0.39 + ] + }, + { + "time": 1.8333, + "x": 60.62, + "y": 95.14, + "curve": [ + 0.41, + 0.26, + 0.803, + 0.62 + ] + }, + { + "time": 2, + "x": 0, + "y": 0 + } + ] + } + }, + "draworder": [ + { + "time": 0.6666, + "offsets": [ + { + "slot": "head", + "offset": -9 + }, + { + "slot": "eye", + "offset": -9 + }, + { + "slot": "mouth", + "offset": -12 + }, + { + "slot": "goggles", + "offset": -12 + } + ] + }, + { + "time": 1.3333 + } + ], + "events": [ + { + "time": 0, + "name": "headPop", + "int": 0, + "float": 0, + "string": "pop.wav" + }, + { + "time": 1, + "name": "headBehind", + "int": 7, + "float": 8, + "string": "animate" + }, + { + "time": 2, + "name": "headAttach", + "int": 0, + "float": 0, + "string": "attach.wav" + } + ] + }, + "walk": { + "slots": { + "front_fist": { + "attachment": [ + { + "time": 0, + "name": "front_fist_closed" + } + ] + }, + "mouth": { + "attachment": [ + { + "time": 0, + "name": "mouth_smile" + } + ] + }, + "torso": { + "attachment": [ + { + "time": 0, + "name": "torso" + } + ] + } + }, + "bones": { + "front_thigh": { + "rotate": [ + { + "time": 0, + "angle": 15.79 + }, + { + "time": 0.1, + "angle": 27.39 + }, + { + "time": 0.2, + "angle": -7.94 + }, + { + "time": 0.3, + "angle": -16.94 + }, + { + "time": 0.4, + "angle": -28.62 + }, + { + "time": 0.5, + "angle": -19.3 + }, + { + "time": 0.6, + "angle": -3.08 + }, + { + "time": 0.7, + "angle": 29.51 + }, + { + "time": 0.8, + "angle": 15.79 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.4, + "x": -1.18, + "y": 0.54 + }, + { + "time": 0.5, + "x": 0.11, + "y": 0.41 + }, + { + "time": 0.6, + "x": 9.48, + "y": 0.27 + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.4, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "front_shin": { + "rotate": [ + { + "time": 0, + "angle": 5.12 + }, + { + "time": 0.1, + "angle": -20.87 + }, + { + "time": 0.2, + "angle": 13.37 + }, + { + "time": 0.3, + "angle": 15.98 + }, + { + "time": 0.4, + "angle": 5.94 + }, + { + "time": 0.5, + "angle": -26.76 + }, + { + "time": 0.7, + "angle": -55.44 + }, + { + "time": 0.8, + "angle": 5.12 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "rear_thigh": { + "rotate": [ + { + "time": 0, + "angle": -34.38 + }, + { + "time": 0.1, + "angle": -30.32 + }, + { + "time": 0.2, + "angle": -37.22 + }, + { + "time": 0.3, + "angle": 20.73 + }, + { + "time": 0.4, + "angle": 8.69 + }, + { + "time": 0.5, + "angle": 12.16 + }, + { + "time": 0.6, + "angle": -24.62 + }, + { + "time": 0.7, + "angle": -27.26 + }, + { + "time": 0.8, + "angle": -34.38 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.4, + "x": 4.08, + "y": -9.53 + }, + { + "time": 0.5, + "x": 0, + "y": 0 + }, + { + "time": 0.7, + "x": -21.14, + "y": -9.6 + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "rear_shin": { + "rotate": [ + { + "time": 0, + "angle": 14.26 + }, + { + "time": 0.1, + "angle": -17.3 + }, + { + "time": 0.2, + "angle": -12.67 + }, + { + "time": 0.3, + "angle": -58.89 + }, + { + "time": 0.4, + "angle": 15.95 + }, + { + "time": 0.5, + "angle": -9 + }, + { + "time": 0.6, + "angle": 26.06 + }, + { + "time": 0.7, + "angle": 21.85 + }, + { + "time": 0.8, + "angle": 14.26 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.1, + "x": 0.951, + "y": 1 + }, + { + "time": 0.5, + "x": 0.975, + "y": 1 + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "rear_foot": { + "rotate": [ + { + "time": 0, + "angle": 10.13 + }, + { + "time": 0.1, + "angle": 12.27 + }, + { + "time": 0.2, + "angle": -2.94 + }, + { + "time": 0.3, + "angle": 6.29 + }, + { + "time": 0.4, + "angle": 13.45 + }, + { + "time": 0.5, + "angle": -3.57 + }, + { + "time": 0.6, + "angle": -0.97 + }, + { + "time": 0.7, + "angle": 2.97 + }, + { + "time": 0.8, + "angle": 10.13 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "front_upper_arm": { + "rotate": [ + { + "time": 0, + "angle": -23.74 + }, + { + "time": 0.4, + "angle": -320.57 + }, + { + "time": 0.8, + "angle": -23.74 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "rear_upper_arm": { + "rotate": [ + { + "time": 0, + "angle": 11.62 + }, + { + "time": 0.1, + "angle": 19.36 + }, + { + "time": 0.4, + "angle": 345.26 + }, + { + "time": 0.5, + "angle": 343.44 + }, + { + "time": 0.8, + "angle": 11.62 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "torso": { + "rotate": [ + { + "time": 0, + "angle": -12.11 + }, + { + "time": 0.1666, + "angle": -17.16 + }, + { + "time": 0.4, + "angle": -12.11 + }, + { + "time": 0.5666, + "angle": -15.81 + }, + { + "time": 0.8, + "angle": -12.11 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "neck": { + "rotate": [ + { + "time": 0, + "angle": 1.41 + }, + { + "time": 0.2333, + "angle": -3.04 + }, + { + "time": 0.4, + "angle": 1.41 + }, + { + "time": 0.6333, + "angle": -3.04 + }, + { + "time": 0.8, + "angle": 1.41 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.4, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 6.97 + }, + { + "time": 0.1666, + "angle": 8.02 + }, + { + "time": 0.2666, + "angle": 12.65 + }, + { + "time": 0.4, + "angle": 6.97 + }, + { + "time": 0.5666, + "angle": 8.02 + }, + { + "time": 0.6666, + "angle": 12.65 + }, + { + "time": 0.8, + "angle": 6.97 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.4, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "hip": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "angle": 0 + } + ], + "translate": [ + { + "time": 0, + "x": -23.93, + "y": 3.22, + "curve": [ + 0.518, + 0.03, + 0.807, + 0.61 + ] + }, + { + "time": 0.1, + "x": -23.93, + "y": -9.24, + "curve": [ + 0.135, + 0.33, + 0.601, + 0.99 + ] + }, + { + "time": 0.2, + "x": -23.93, + "y": 4.35, + "curve": [ + 0.204, + 0.68, + 0.75, + 1 + ] + }, + { + "time": 0.3, + "x": -23.93, + "y": 2.38, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.4, + "x": -23.93, + "y": -2.5, + "curve": [ + 0.692, + 0.01, + 0.75, + 1 + ] + }, + { + "time": 0.5, + "x": -23.93, + "y": -10.32, + "curve": [ + 0.235, + 0.77, + 0.75, + 1 + ] + }, + { + "time": 0.6, + "x": -23.93, + "y": 4.35, + "curve": [ + 0.287, + 0.37, + 0.718, + 0.76 + ] + }, + { + "time": 0.7, + "x": -23.93, + "y": 10.34, + "curve": [ + 0.615, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.8, + "x": -23.93, + "y": 3.22 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "front_bracer": { + "rotate": [ + { + "time": 0, + "angle": 0 + }, + { + "time": 0.4, + "angle": 20.59 + }, + { + "time": 0.8, + "angle": 0 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "front_foot": { + "rotate": [ + { + "time": 0, + "angle": 12.49 + }, + { + "time": 0.1, + "angle": -8.34 + }, + { + "time": 0.2, + "angle": -6.17 + }, + { + "time": 0.3, + "angle": -0.75 + }, + { + "time": 0.3333, + "angle": 3.89 + }, + { + "time": 0.4, + "angle": 10.22 + }, + { + "time": 0.5, + "angle": 11.44 + }, + { + "time": 0.6, + "angle": -0.33 + }, + { + "time": 0.7, + "angle": 0.15 + }, + { + "time": 0.8, + "angle": 12.49 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "rear_bracer": { + "rotate": [ + { + "time": 0, + "angle": 3.58 + }, + { + "time": 0.1, + "angle": 5.51 + }, + { + "time": 0.4, + "angle": -22.77 + }, + { + "time": 0.5, + "angle": -9.65 + }, + { + "time": 0.8, + "angle": 3.58 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "front_fist": { + "rotate": [ + { + "time": 0, + "angle": -15.22 + }, + { + "time": 0.1, + "angle": -51.4 + }, + { + "time": 0.4, + "angle": -39.4 + }, + { + "time": 0.5, + "angle": 19.26 + }, + { + "time": 0.8, + "angle": -15.22 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "gun": { + "rotate": [ + { + "time": 0, + "angle": -24.06, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.1, + "angle": -10.94, + "curve": [ + 0.381, + 0.54, + 0.742, + 1 + ] + }, + { + "time": 0.4, + "angle": 25.34, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.6666, + "angle": -27.47, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.8, + "angle": -24.06 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + } + } + } + } + }, + [ + 0 + ] + ] + ], + 0, + 0, + [ + 0 + ], + [ + -1 + ], + [ + 1 + ] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,1", + -1 + ], + [ + 0 + ], + 0, + [], + [], + [] + ], + [ + [ + { + "name": "1655112563832", + "rect": [ + 0, + 0, + 660, + 554 + ], + "offset": [ + 0, + 0 + ], + "originalSize": [ + 660, + 554 + ], + "capInsets": [ + 0, + 0, + 0, + 0 + ] + } + ], + [ + 1 + ], + 0, + [ + 0 + ], + [ + 0 + ], + [ + 11 + ] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,1", + -1 + ], + [ + 0 + ], + 0, + [], + [], + [] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,1", + -1 + ], + [ + 0 + ], + 0, + [], + [], + [] + ], + [ + [ + [ + 5, + "SFNSMonoItalic", + "SFNSMonoItalic.ttf" + ], + -1 + ], + 0, + 0, + [], + [], + [] + ], + [ + [ + { + "name": "spineboy", + "rect": [ + 2, + 2, + 998, + 240 + ], + "offset": [ + -11, + 6 + ], + "originalSize": [ + 1024, + 256 + ], + "capInsets": [ + 0, + 0, + 0, + 0 + ] + } + ], + [ + 1 + ], + 0, + [ + 0 + ], + [ + 0 + ], + [ + 1 + ] + ] + ] +] \ No newline at end of file diff --git a/demo/web-desktop/assets/common/index.40d4c.js b/demo/web-desktop/assets/common/index.40d4c.js new file mode 100644 index 00000000..a4d827f4 --- /dev/null +++ b/demo/web-desktop/assets/common/index.40d4c.js @@ -0,0 +1,29 @@ +(function e(t, n, r) { + function s(o, u) { + if (!n[o]) { + if (!t[o]) { + var b = o.split("/"); + b = b[b.length - 1]; + if (!t[b]) { + var a = "function" == typeof __require && __require; + if (!u && a) return a(b, !0); + if (i) return i(b, !0); + throw new Error("Cannot find module '" + o + "'"); + } + o = b; + } + var f = n[o] = { + exports: {} + }; + t[o][0].call(f.exports, function(e) { + var n = t[o][1][e]; + return s(n || e); + }, f, f.exports, e, t, n, r); + } + return n[o].exports; + } + var i = "function" == typeof __require && __require; + for (var o = 0; o < r.length; o++) s(r[o]); + return s; +})({}, {}, []); +//# sourceMappingURL=index.js.map diff --git a/demo/web-desktop/assets/common/index.js.map b/demo/web-desktop/assets/common/index.js.map new file mode 100644 index 00000000..a6d01198 --- /dev/null +++ b/demo/web-desktop/assets/common/index.js.map @@ -0,0 +1 @@ +{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"index.js"} \ No newline at end of file diff --git a/demo/web-desktop/assets/common/native/1c/1c8a3cc1-a452-4276-848d-2bdf30e6852a.91637.png b/demo/web-desktop/assets/common/native/1c/1c8a3cc1-a452-4276-848d-2bdf30e6852a.91637.png new file mode 100644 index 00000000..c81fbe18 Binary files /dev/null and b/demo/web-desktop/assets/common/native/1c/1c8a3cc1-a452-4276-848d-2bdf30e6852a.91637.png differ diff --git a/demo/web-desktop/assets/common/native/39/398d85b3-4934-44c0-8d8e-3812b99f015e.2eb47.png b/demo/web-desktop/assets/common/native/39/398d85b3-4934-44c0-8d8e-3812b99f015e.2eb47.png new file mode 100644 index 00000000..1a3ad88f Binary files /dev/null and b/demo/web-desktop/assets/common/native/39/398d85b3-4934-44c0-8d8e-3812b99f015e.2eb47.png differ diff --git a/demo/web-desktop/assets/common/native/45/45be59f3-5655-4369-9e9f-455c81d2ddd9.ca872.png b/demo/web-desktop/assets/common/native/45/45be59f3-5655-4369-9e9f-455c81d2ddd9.ca872.png new file mode 100644 index 00000000..c8fdfac7 Binary files /dev/null and b/demo/web-desktop/assets/common/native/45/45be59f3-5655-4369-9e9f-455c81d2ddd9.ca872.png differ diff --git a/demo/web-desktop/assets/common/native/62/6231041a-75a5-4af2-a40d-f27e9498901a.40d17.png b/demo/web-desktop/assets/common/native/62/6231041a-75a5-4af2-a40d-f27e9498901a.40d17.png new file mode 100644 index 00000000..15e145a0 Binary files /dev/null and b/demo/web-desktop/assets/common/native/62/6231041a-75a5-4af2-a40d-f27e9498901a.40d17.png differ diff --git a/demo/web-desktop/assets/common/native/68/6843f00b-0ef4-4b7c-aac0-42ee42635e55.9a531.png b/demo/web-desktop/assets/common/native/68/6843f00b-0ef4-4b7c-aac0-42ee42635e55.9a531.png new file mode 100644 index 00000000..18265803 Binary files /dev/null and b/demo/web-desktop/assets/common/native/68/6843f00b-0ef4-4b7c-aac0-42ee42635e55.9a531.png differ diff --git a/demo/web-desktop/assets/common/native/6e/6e056173-d285-473c-b206-40a7fff5386e.6d3cf.png b/demo/web-desktop/assets/common/native/6e/6e056173-d285-473c-b206-40a7fff5386e.6d3cf.png new file mode 100644 index 00000000..8050170c Binary files /dev/null and b/demo/web-desktop/assets/common/native/6e/6e056173-d285-473c-b206-40a7fff5386e.6d3cf.png differ diff --git a/demo/web-desktop/assets/common/native/70/702455ac-9b92-4dd7-b143-cb02342dbe48.7b3fa.png b/demo/web-desktop/assets/common/native/70/702455ac-9b92-4dd7-b143-cb02342dbe48.7b3fa.png new file mode 100644 index 00000000..791d8fad Binary files /dev/null and b/demo/web-desktop/assets/common/native/70/702455ac-9b92-4dd7-b143-cb02342dbe48.7b3fa.png differ diff --git a/demo/web-desktop/assets/common/native/c1/c11dfdd2-97c6-409c-9c0f-fdfa681f16a9.d86d7.png b/demo/web-desktop/assets/common/native/c1/c11dfdd2-97c6-409c-9c0f-fdfa681f16a9.d86d7.png new file mode 100644 index 00000000..5c3b67db Binary files /dev/null and b/demo/web-desktop/assets/common/native/c1/c11dfdd2-97c6-409c-9c0f-fdfa681f16a9.d86d7.png differ diff --git a/demo/web-desktop/assets/common/native/d0/d06d24ff-c18a-4940-82f9-4fe3c2ab8e96.9c555.png b/demo/web-desktop/assets/common/native/d0/d06d24ff-c18a-4940-82f9-4fe3c2ab8e96.9c555.png new file mode 100644 index 00000000..759901b5 Binary files /dev/null and b/demo/web-desktop/assets/common/native/d0/d06d24ff-c18a-4940-82f9-4fe3c2ab8e96.9c555.png differ diff --git a/demo/web-desktop/assets/common/native/d9/d9c4530a-ef05-45c1-b012-eb4686f4c70f.abf6b.png b/demo/web-desktop/assets/common/native/d9/d9c4530a-ef05-45c1-b012-eb4686f4c70f.abf6b.png new file mode 100644 index 00000000..37043bf4 Binary files /dev/null and b/demo/web-desktop/assets/common/native/d9/d9c4530a-ef05-45c1-b012-eb4686f4c70f.abf6b.png differ diff --git a/demo/web-desktop/assets/common/native/e8/e8aa5e1c-0730-4ebe-81a1-e7fa0db9be7d.a6625/SFNSMonoItalic.ttf b/demo/web-desktop/assets/common/native/e8/e8aa5e1c-0730-4ebe-81a1-e7fa0db9be7d.a6625/SFNSMonoItalic.ttf new file mode 100644 index 00000000..41ee30e3 Binary files /dev/null and b/demo/web-desktop/assets/common/native/e8/e8aa5e1c-0730-4ebe-81a1-e7fa0db9be7d.a6625/SFNSMonoItalic.ttf differ diff --git a/demo/web-desktop/assets/home/config.9b664.json b/demo/web-desktop/assets/home/config.9b664.json new file mode 100644 index 00000000..e154104f --- /dev/null +++ b/demo/web-desktop/assets/home/config.9b664.json @@ -0,0 +1,30 @@ +{ + "paths": { + "e3EaADwKFP+ZmDIVTeFF63": [ + "home", + "cc.Prefab" + ] + }, + "uuids": [ + "e3EaADwKFP+ZmDIVTeFF63" + ], + "scenes": {}, + "redirect": [ + "e3EaADwKFP+ZmDIVTeFF63", + 0 + ], + "deps": [ + "main" + ], + "packs": {}, + "name": "home", + "importBase": "import", + "nativeBase": "native", + "debug": true, + "isZip": false, + "encrypted": false, + "versions": { + "import": [], + "native": [] + } +} \ No newline at end of file diff --git a/demo/web-desktop/assets/home/index.9b664.js b/demo/web-desktop/assets/home/index.9b664.js new file mode 100644 index 00000000..a4d827f4 --- /dev/null +++ b/demo/web-desktop/assets/home/index.9b664.js @@ -0,0 +1,29 @@ +(function e(t, n, r) { + function s(o, u) { + if (!n[o]) { + if (!t[o]) { + var b = o.split("/"); + b = b[b.length - 1]; + if (!t[b]) { + var a = "function" == typeof __require && __require; + if (!u && a) return a(b, !0); + if (i) return i(b, !0); + throw new Error("Cannot find module '" + o + "'"); + } + o = b; + } + var f = n[o] = { + exports: {} + }; + t[o][0].call(f.exports, function(e) { + var n = t[o][1][e]; + return s(n || e); + }, f, f.exports, e, t, n, r); + } + return n[o].exports; + } + var i = "function" == typeof __require && __require; + for (var o = 0; o < r.length; o++) s(r[o]); + return s; +})({}, {}, []); +//# sourceMappingURL=index.js.map diff --git a/demo/web-desktop/assets/home/index.js.map b/demo/web-desktop/assets/home/index.js.map new file mode 100644 index 00000000..a6d01198 --- /dev/null +++ b/demo/web-desktop/assets/home/index.js.map @@ -0,0 +1 @@ +{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"index.js"} \ No newline at end of file diff --git a/demo/web-desktop/assets/internal/config.8360b.json b/demo/web-desktop/assets/internal/config.8360b.json new file mode 100644 index 00000000..da9fabd2 --- /dev/null +++ b/demo/web-desktop/assets/internal/config.8360b.json @@ -0,0 +1,133 @@ +{ + "paths": { + "30aC+Hnw1PF4pEcoY3kUYb": [ + "effects/builtin-2d-graphics", + "cc.EffectAsset" + ], + "14TDKXr2NJ6LjvHPops74o": [ + "effects/builtin-2d-gray-sprite", + "cc.EffectAsset" + ], + "f1h0LXVtJOta5JLZ1xCzfI": [ + "effects/builtin-2d-label", + "cc.EffectAsset" + ], + "0ek66qC1NOQLjgYmi04HvX": [ + "effects/builtin-2d-spine", + "cc.EffectAsset" + ], + "28dPjdQWxEQIG3VVl1Qm6T": [ + "effects/builtin-2d-sprite", + "cc.EffectAsset" + ], + "2afAA24LNP4YmYiaVLiivs": [ + "effects/builtin-3d-trail", + "cc.EffectAsset" + ], + "c0BAyVxX9JzZy8EjFrc9DU": [ + "effects/builtin-clear-stencil", + "cc.EffectAsset" + ], + "6dkeWRTOBGXICfYQ7JUBnG": [ + "effects/builtin-unlit", + "cc.EffectAsset" + ], + "6fgBCSDDdPMInvyNlggls2": [ + "materials/builtin-2d-base", + "cc.Material" + ], + "a1U5RdJRFMFL57BdJC9H1X": [ + "materials/builtin-2d-graphics", + "cc.Material" + ], + "3ae7efMv1CLq2ilvUY/tQi": [ + "materials/builtin-2d-gray-sprite", + "cc.Material" + ], + "e0LYfU5ZlNFoAB4UiRrGUG": [ + "materials/builtin-2d-label", + "cc.Material" + ], + "7a/QZLET9IDreTiBfRn2PD": [ + "materials/builtin-2d-spine", + "cc.Material" + ], + "ecpdLyjvZBwrvm+cedCcQy": [ + "materials/builtin-2d-sprite", + "cc.Material" + ], + "46bU+b5fROqIXVPG6aZWWK": [ + "materials/builtin-3d-trail", + "cc.Material" + ], + "cffgu4qBxEqa150o1DmRAy": [ + "materials/builtin-clear-stencil", + "cc.Material" + ], + "2aKWBXJHxKHLvrBUi2yYZQ": [ + "materials/builtin-unlit", + "cc.Material" + ] + }, + "uuids": [ + "30aC+Hnw1PF4pEcoY3kUYb", + "14TDKXr2NJ6LjvHPops74o", + "f1h0LXVtJOta5JLZ1xCzfI", + "0ek66qC1NOQLjgYmi04HvX", + "28dPjdQWxEQIG3VVl1Qm6T", + "2afAA24LNP4YmYiaVLiivs", + "c0BAyVxX9JzZy8EjFrc9DU", + "6dkeWRTOBGXICfYQ7JUBnG", + "6fgBCSDDdPMInvyNlggls2", + "a1U5RdJRFMFL57BdJC9H1X", + "3ae7efMv1CLq2ilvUY/tQi", + "e0LYfU5ZlNFoAB4UiRrGUG", + "7a/QZLET9IDreTiBfRn2PD", + "ecpdLyjvZBwrvm+cedCcQy", + "46bU+b5fROqIXVPG6aZWWK", + "cffgu4qBxEqa150o1DmRAy", + "2aKWBXJHxKHLvrBUi2yYZQ", + "02delMVqdBD70a/HSD99FK" + ], + "scenes": {}, + "redirect": [], + "deps": [], + "packs": { + "0967b326a": [ + "02delMVqdBD70a/HSD99FK", + "0ek66qC1NOQLjgYmi04HvX", + "14TDKXr2NJ6LjvHPops74o", + "28dPjdQWxEQIG3VVl1Qm6T", + "2aKWBXJHxKHLvrBUi2yYZQ", + "2afAA24LNP4YmYiaVLiivs", + "30aC+Hnw1PF4pEcoY3kUYb", + "3ae7efMv1CLq2ilvUY/tQi", + "46bU+b5fROqIXVPG6aZWWK", + "6dkeWRTOBGXICfYQ7JUBnG", + "6fgBCSDDdPMInvyNlggls2", + "7a/QZLET9IDreTiBfRn2PD", + "a1U5RdJRFMFL57BdJC9H1X", + "c0BAyVxX9JzZy8EjFrc9DU", + "cffgu4qBxEqa150o1DmRAy", + "e0LYfU5ZlNFoAB4UiRrGUG", + "ecpdLyjvZBwrvm+cedCcQy", + "f1h0LXVtJOta5JLZ1xCzfI" + ] + }, + "name": "internal", + "importBase": "import", + "nativeBase": "native", + "debug": true, + "isZip": false, + "encrypted": false, + "versions": { + "import": [ + "0967b326a", + "c3301" + ], + "native": [ + "02delMVqdBD70a/HSD99FK", + "cea68" + ] + } +} \ No newline at end of file diff --git a/demo/web-desktop/assets/internal/import/09/0967b326a.c3301.json b/demo/web-desktop/assets/internal/import/09/0967b326a.c3301.json new file mode 100644 index 00000000..8c185db2 --- /dev/null +++ b/demo/web-desktop/assets/internal/import/09/0967b326a.c3301.json @@ -0,0 +1,2032 @@ +[ + 1, + [ + "02delMVqdBD70a/HSD99FK", + "28dPjdQWxEQIG3VVl1Qm6T", + "6dkeWRTOBGXICfYQ7JUBnG", + "14TDKXr2NJ6LjvHPops74o", + "2afAA24LNP4YmYiaVLiivs", + "0ek66qC1NOQLjgYmi04HvX", + "30aC+Hnw1PF4pEcoY3kUYb", + "c0BAyVxX9JzZy8EjFrc9DU", + "f1h0LXVtJOta5JLZ1xCzfI" + ], + [ + "_effectAsset", + "diffuseTexture", + "mainTexture" + ], + [ + "cc.Texture2D", + [ + "cc.EffectAsset", + [ + "_name", + "shaders", + "techniques" + ], + 0 + ], + [ + "cc.Material", + [ + "_name", + "_techniqueData" + ], + 2, + 11 + ], + [ + "cc.Material", + [ + "_name", + "_techniqueData" + ], + 1 + ] + ], + [ + [ + 1, + 0, + 1, + 2, + 4 + ], + [ + 3, + 0, + 1, + 3 + ], + [ + 2, + 0, + 1, + 2 + ] + ], + [ + [ + [ + "0,9729,9729,33071,33071,0,0,1", + -1 + ], + [ + 0 + ], + 0, + [], + [], + [] + ], + [ + [ + [ + 0, + "builtin-2d-spine", + [ + { + "hash": 3550530479, + "record": null, + "name": "builtin-2d-spine|vs|fs", + "glsl3": { + "vert": "\nprecision highp float;\nuniform CCGlobal {\n mat4 cc_matView;\n mat4 cc_matViewInv;\n mat4 cc_matProj;\n mat4 cc_matProjInv;\n mat4 cc_matViewProj;\n mat4 cc_matViewProjInv;\n vec4 cc_cameraPos;\n vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_screenScale;\n};\nuniform CCLocal {\n mat4 cc_matWorld;\n mat4 cc_matWorldIT;\n};\nin vec3 a_position;\nin vec4 a_color;\n#if USE_TINT\n in vec4 a_color0;\n#endif\nin vec2 a_uv0;\nout vec2 v_uv0;\nout vec4 v_light;\n#if USE_TINT\n out vec4 v_dark;\n#endif\nvoid main () {\n mat4 mvp;\n #if CC_USE_MODEL\n mvp = cc_matViewProj * cc_matWorld;\n #else\n mvp = cc_matViewProj;\n #endif\n v_uv0 = a_uv0;\n v_light = a_color;\n #if USE_TINT\n v_dark = a_color0;\n #endif\n gl_Position = mvp * vec4(a_position, 1);\n}", + "frag": "\nprecision highp float;\nuniform sampler2D texture;\nin vec2 v_uv0;\nin vec4 v_light;\n#if USE_TINT\n in vec4 v_dark;\n#endif\n#if USE_ALPHA_TEST\n uniform ALPHA_TEST {\n float alphaThreshold;\n };\n#endif\nvoid ALPHA_TEST (in vec4 color) {\n #if USE_ALPHA_TEST\n if (color.a < alphaThreshold) discard;\n #endif\n}\nvoid ALPHA_TEST (in float alpha) {\n #if USE_ALPHA_TEST\n if (alpha < alphaThreshold) discard;\n #endif\n}\nvoid main () {\n vec4 texColor = vec4(1.0);\n vec4 texture_tmp = texture(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n texColor.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n texColor.a *= texture_tmp.a;\n #else\n texColor *= texture_tmp;\n #endif\n vec4 finalColor;\n #if USE_TINT\n finalColor.a = v_light.a * texColor.a;\n finalColor.rgb = ((texColor.a - 1.0) * v_dark.a + 1.0 - texColor.rgb) * v_dark.rgb + texColor.rgb * v_light.rgb;\n #else\n finalColor = texColor * v_light;\n #endif\n ALPHA_TEST(finalColor);\n gl_FragColor = finalColor;\n}" + }, + "glsl1": { + "vert": "\nprecision highp float;\nuniform mat4 cc_matViewProj;\nuniform mat4 cc_matWorld;\nattribute vec3 a_position;\nattribute vec4 a_color;\n#if USE_TINT\n attribute vec4 a_color0;\n#endif\nattribute vec2 a_uv0;\nvarying vec2 v_uv0;\nvarying vec4 v_light;\n#if USE_TINT\n varying vec4 v_dark;\n#endif\nvoid main () {\n mat4 mvp;\n #if CC_USE_MODEL\n mvp = cc_matViewProj * cc_matWorld;\n #else\n mvp = cc_matViewProj;\n #endif\n v_uv0 = a_uv0;\n v_light = a_color;\n #if USE_TINT\n v_dark = a_color0;\n #endif\n gl_Position = mvp * vec4(a_position, 1);\n}", + "frag": "\nprecision highp float;\nuniform sampler2D texture;\nvarying vec2 v_uv0;\nvarying vec4 v_light;\n#if USE_TINT\n varying vec4 v_dark;\n#endif\n#if USE_ALPHA_TEST\n uniform float alphaThreshold;\n#endif\nvoid ALPHA_TEST (in vec4 color) {\n #if USE_ALPHA_TEST\n if (color.a < alphaThreshold) discard;\n #endif\n}\nvoid ALPHA_TEST (in float alpha) {\n #if USE_ALPHA_TEST\n if (alpha < alphaThreshold) discard;\n #endif\n}\nvoid main () {\n vec4 texColor = vec4(1.0);\n vec4 texture_tmp = texture2D(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture2D(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n texColor.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n texColor.a *= texture_tmp.a;\n #else\n texColor *= texture_tmp;\n #endif\n vec4 finalColor;\n #if USE_TINT\n finalColor.a = v_light.a * texColor.a;\n finalColor.rgb = ((texColor.a - 1.0) * v_dark.a + 1.0 - texColor.rgb) * v_dark.rgb + texColor.rgb * v_light.rgb;\n #else\n finalColor = texColor * v_light;\n #endif\n ALPHA_TEST(finalColor);\n gl_FragColor = finalColor;\n}" + }, + "builtins": { + "globals": { + "blocks": [ + { + "name": "CCGlobal", + "defines": [] + } + ], + "samplers": [] + }, + "locals": { + "blocks": [ + { + "name": "CCLocal", + "defines": [] + } + ], + "samplers": [] + } + }, + "defines": [ + { + "name": "USE_TINT", + "type": "boolean", + "defines": [] + }, + { + "name": "CC_USE_MODEL", + "type": "boolean", + "defines": [] + }, + { + "name": "USE_ALPHA_TEST", + "type": "boolean", + "defines": [] + }, + { + "name": "CC_USE_ALPHA_ATLAS_texture", + "type": "boolean", + "defines": [] + }, + { + "name": "INPUT_IS_GAMMA", + "type": "boolean", + "defines": [] + } + ], + "blocks": [ + { + "name": "ALPHA_TEST", + "binding": 0, + "members": [ + { + "name": "alphaThreshold", + "type": 13, + "count": 1 + } + ], + "defines": [ + "USE_ALPHA_TEST" + ] + } + ], + "samplers": [ + { + "name": "texture", + "type": 29, + "count": 1, + "binding": 30, + "defines": [] + } + ] + } + ], + [ + { + "passes": [ + { + "program": "builtin-2d-spine|vs|fs", + "blendState": { + "targets": [ + { + "blend": true + } + ] + }, + "rasterizerState": { + "cullMode": 0 + }, + "properties": { + "texture": { + "value": "white", + "type": 29 + }, + "alphaThreshold": { + "type": 13, + "value": [ + 0.5 + ] + } + } + } + ] + } + ] + ] + ], + 0, + 0, + [], + [], + [] + ], + [ + [ + [ + 0, + "builtin-2d-gray-sprite", + [ + { + "hash": 4278481454, + "record": null, + "name": "builtin-2d-gray-sprite|vs|fs", + "glsl3": { + "vert": "\nprecision highp float;\nuniform CCGlobal {\n mat4 cc_matView;\n mat4 cc_matViewInv;\n mat4 cc_matProj;\n mat4 cc_matProjInv;\n mat4 cc_matViewProj;\n mat4 cc_matViewProjInv;\n vec4 cc_cameraPos;\n vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_screenScale;\n};\nin vec3 a_position;\nin mediump vec2 a_uv0;\nout mediump vec2 v_uv0;\nin vec4 a_color;\nout vec4 v_color;\nvoid main () {\n gl_Position = cc_matViewProj * vec4(a_position, 1);\n v_uv0 = a_uv0;\n v_color = a_color;\n}", + "frag": "\nprecision highp float;\nuniform sampler2D texture;\nin mediump vec2 v_uv0;\nin vec4 v_color;\nvoid main () {\n vec4 color = v_color;\n vec4 texture_tmp = texture(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n color.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n color.a *= texture_tmp.a;\n #else\n color *= texture_tmp;\n #endif\n float gray = 0.2126*color.r + 0.7152*color.g + 0.0722*color.b;\n gl_FragColor = vec4(gray, gray, gray, color.a);\n}" + }, + "glsl1": { + "vert": "\nprecision highp float;\nuniform mat4 cc_matViewProj;\nattribute vec3 a_position;\nattribute mediump vec2 a_uv0;\nvarying mediump vec2 v_uv0;\nattribute vec4 a_color;\nvarying vec4 v_color;\nvoid main () {\n gl_Position = cc_matViewProj * vec4(a_position, 1);\n v_uv0 = a_uv0;\n v_color = a_color;\n}", + "frag": "\nprecision highp float;\nuniform sampler2D texture;\nvarying mediump vec2 v_uv0;\nvarying vec4 v_color;\nvoid main () {\n vec4 color = v_color;\n vec4 texture_tmp = texture2D(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture2D(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n color.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n color.a *= texture_tmp.a;\n #else\n color *= texture_tmp;\n #endif\n float gray = 0.2126*color.r + 0.7152*color.g + 0.0722*color.b;\n gl_FragColor = vec4(gray, gray, gray, color.a);\n}" + }, + "builtins": { + "globals": { + "blocks": [ + { + "name": "CCGlobal", + "defines": [] + } + ], + "samplers": [] + }, + "locals": { + "blocks": [], + "samplers": [] + } + }, + "defines": [ + { + "name": "CC_USE_ALPHA_ATLAS_texture", + "type": "boolean", + "defines": [] + }, + { + "name": "INPUT_IS_GAMMA", + "type": "boolean", + "defines": [] + } + ], + "blocks": [], + "samplers": [ + { + "name": "texture", + "type": 29, + "count": 1, + "binding": 30, + "defines": [] + } + ] + } + ], + [ + { + "passes": [ + { + "program": "builtin-2d-gray-sprite|vs|fs", + "blendState": { + "targets": [ + { + "blend": true + } + ] + }, + "rasterizerState": { + "cullMode": 0 + }, + "properties": { + "texture": { + "value": "white", + "type": 29 + } + } + } + ] + } + ] + ] + ], + 0, + 0, + [], + [], + [] + ], + [ + [ + [ + 0, + "builtin-2d-sprite", + [ + { + "hash": 3278106612, + "record": null, + "name": "builtin-2d-sprite|vs|fs", + "glsl3": { + "vert": "\nprecision highp float;\nuniform CCGlobal {\n mat4 cc_matView;\n mat4 cc_matViewInv;\n mat4 cc_matProj;\n mat4 cc_matProjInv;\n mat4 cc_matViewProj;\n mat4 cc_matViewProjInv;\n vec4 cc_cameraPos;\n vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_screenScale;\n};\nuniform CCLocal {\n mat4 cc_matWorld;\n mat4 cc_matWorldIT;\n};\nin vec3 a_position;\nin vec4 a_color;\nout vec4 v_color;\n#if USE_TEXTURE\nin vec2 a_uv0;\nout vec2 v_uv0;\n#endif\nvoid main () {\n vec4 pos = vec4(a_position, 1);\n #if CC_USE_MODEL\n pos = cc_matViewProj * cc_matWorld * pos;\n #else\n pos = cc_matViewProj * pos;\n #endif\n #if USE_TEXTURE\n v_uv0 = a_uv0;\n #endif\n v_color = a_color;\n gl_Position = pos;\n}", + "frag": "\nprecision highp float;\n#if USE_ALPHA_TEST\n uniform ALPHA_TEST {\n float alphaThreshold;\n };\n#endif\nvoid ALPHA_TEST (in vec4 color) {\n #if USE_ALPHA_TEST\n if (color.a < alphaThreshold) discard;\n #endif\n}\nvoid ALPHA_TEST (in float alpha) {\n #if USE_ALPHA_TEST\n if (alpha < alphaThreshold) discard;\n #endif\n}\nin vec4 v_color;\n#if USE_TEXTURE\nin vec2 v_uv0;\nuniform sampler2D texture;\n#endif\nvoid main () {\n vec4 o = vec4(1, 1, 1, 1);\n #if USE_TEXTURE\n vec4 texture_tmp = texture(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n o.a *= texture_tmp.a;\n #else\n o *= texture_tmp;\n #endif\n #endif\n o *= v_color;\n ALPHA_TEST(o);\n gl_FragColor = o;\n}" + }, + "glsl1": { + "vert": "\nprecision highp float;\nuniform mat4 cc_matViewProj;\nuniform mat4 cc_matWorld;\nattribute vec3 a_position;\nattribute vec4 a_color;\nvarying vec4 v_color;\n#if USE_TEXTURE\nattribute vec2 a_uv0;\nvarying vec2 v_uv0;\n#endif\nvoid main () {\n vec4 pos = vec4(a_position, 1);\n #if CC_USE_MODEL\n pos = cc_matViewProj * cc_matWorld * pos;\n #else\n pos = cc_matViewProj * pos;\n #endif\n #if USE_TEXTURE\n v_uv0 = a_uv0;\n #endif\n v_color = a_color;\n gl_Position = pos;\n}", + "frag": "\nprecision highp float;\n#if USE_ALPHA_TEST\n uniform float alphaThreshold;\n#endif\nvoid ALPHA_TEST (in vec4 color) {\n #if USE_ALPHA_TEST\n if (color.a < alphaThreshold) discard;\n #endif\n}\nvoid ALPHA_TEST (in float alpha) {\n #if USE_ALPHA_TEST\n if (alpha < alphaThreshold) discard;\n #endif\n}\nvarying vec4 v_color;\n#if USE_TEXTURE\nvarying vec2 v_uv0;\nuniform sampler2D texture;\n#endif\nvoid main () {\n vec4 o = vec4(1, 1, 1, 1);\n #if USE_TEXTURE\n vec4 texture_tmp = texture2D(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture2D(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n o.a *= texture_tmp.a;\n #else\n o *= texture_tmp;\n #endif\n #endif\n o *= v_color;\n ALPHA_TEST(o);\n gl_FragColor = o;\n}" + }, + "builtins": { + "globals": { + "blocks": [ + { + "name": "CCGlobal", + "defines": [] + } + ], + "samplers": [] + }, + "locals": { + "blocks": [ + { + "name": "CCLocal", + "defines": [] + } + ], + "samplers": [] + } + }, + "defines": [ + { + "name": "USE_TEXTURE", + "type": "boolean", + "defines": [] + }, + { + "name": "CC_USE_MODEL", + "type": "boolean", + "defines": [] + }, + { + "name": "USE_ALPHA_TEST", + "type": "boolean", + "defines": [] + }, + { + "name": "CC_USE_ALPHA_ATLAS_texture", + "type": "boolean", + "defines": [ + "USE_TEXTURE" + ] + }, + { + "name": "INPUT_IS_GAMMA", + "type": "boolean", + "defines": [ + "USE_TEXTURE" + ] + } + ], + "blocks": [ + { + "name": "ALPHA_TEST", + "binding": 0, + "members": [ + { + "name": "alphaThreshold", + "type": 13, + "count": 1 + } + ], + "defines": [ + "USE_ALPHA_TEST" + ] + } + ], + "samplers": [ + { + "name": "texture", + "type": 29, + "count": 1, + "binding": 30, + "defines": [ + "USE_TEXTURE" + ] + } + ] + } + ], + [ + { + "passes": [ + { + "program": "builtin-2d-sprite|vs|fs", + "blendState": { + "targets": [ + { + "blend": true + } + ] + }, + "rasterizerState": { + "cullMode": 0 + }, + "properties": { + "texture": { + "value": "white", + "type": 29 + }, + "alphaThreshold": { + "type": 13, + "value": [ + 0.5 + ] + } + } + } + ] + } + ] + ] + ], + 0, + 0, + [], + [], + [] + ], + [ + [ + [ + 2, + "builtin-unlit", + [ + {}, + "0", + 11, + [ + { + "defines": { + "USE_DIFFUSE_TEXTURE": true + } + }, + "props", + 11, + [ + {}, + "diffuseTexture", + 6, + 0 + ] + ] + ] + ] + ], + 0, + 0, + [ + 0, + 0 + ], + [ + 1, + 0 + ], + [ + 0, + 2 + ] + ], + [ + [ + [ + 0, + "builtin-3d-trail", + [ + { + "hash": 2929688198, + "record": null, + "name": "builtin-3d-trail|particle-trail:vs_main|tinted-fs:add", + "glsl3": { + "vert": "\nprecision mediump float;\nuniform Constants{\n vec4 mainTiling_Offset;\n vec4 frameTile_velLenScale;\n vec4 scale;\n};\nuniform CCGlobal {\n mat4 cc_matView;\n mat4 cc_matViewInv;\n mat4 cc_matProj;\n mat4 cc_matProjInv;\n mat4 cc_matViewProj;\n mat4 cc_matViewProjInv;\n vec4 cc_cameraPos;\n vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_screenScale;\n};\nuniform CCLocal {\n mat4 cc_matWorld;\n mat4 cc_matWorldIT;\n};\nout vec2 uv;\nout vec4 color;\nin vec3 a_position;\nin vec4 a_texCoord;\nin vec3 a_texCoord1;\nin vec3 a_texCoord2;\nin vec4 a_color;\n#if CC_DRAW_WIRE_FRAME\n out vec3 vBarycentric;\n#endif\nvec4 vs_main() {\n highp vec4 pos = vec4(a_position, 1);\n vec4 velocity = vec4(a_texCoord1.xyz, 0);\n#if !CC_USE_WORLD_SPACE\n pos = cc_matWorld * pos;\n velocity = cc_matWorld * velocity;\n#endif\n float vertOffset = (a_texCoord.x - 0.5) * a_texCoord.y;\n vec3 camUp = normalize(cross(pos.xyz - cc_cameraPos.xyz, velocity.xyz));\n pos.xyz += camUp * vertOffset;\n pos = cc_matViewProj * pos;\n uv = a_texCoord.zw * mainTiling_Offset.xy + mainTiling_Offset.zw;;\n color = a_color;\n#if CC_DRAW_WIRE_FRAME\n vBarycentric = a_texCoord2;\n#endif\n return pos;\n}\nvoid main() { gl_Position = vs_main(); }", + "frag": "\nprecision mediump float;\nvec4 CCFragOutput (vec4 color) {\n #if OUTPUT_TO_GAMMA\n color.rgb = sqrt(color.rgb);\n #endif\n\treturn color;\n}\nin vec2 uv;\nin vec4 color;\n#if CC_DRAW_WIRE_FRAME\n in vec3 vBarycentric;\n#endif\nuniform sampler2D mainTexture;\nuniform FragConstants {\n vec4 tintColor;\n};\nvec4 add () {\n vec4 col = 2.0 * color * tintColor * texture(mainTexture, uv);\n #if CC_DRAW_WIRE_FRAME\n if (any(lessThan(vBarycentric, vec3(0.02)))) {\n col = vec4(0., 1., 1., 1.);\n }\n #endif\n return CCFragOutput(col);\n}\nout vec4 cc_FragColor;\nvoid main() { cc_FragColor = add(); }" + }, + "glsl1": { + "vert": "\nprecision mediump float;\nuniform vec4 mainTiling_Offset;\nuniform mat4 cc_matViewProj;\nuniform vec4 cc_cameraPos;\nuniform mat4 cc_matWorld;\nvarying vec2 uv;\nvarying vec4 color;\nattribute vec3 a_position;\nattribute vec4 a_texCoord;\nattribute vec3 a_texCoord1;\nattribute vec3 a_texCoord2;\nattribute vec4 a_color;\n#if CC_DRAW_WIRE_FRAME\n varying vec3 vBarycentric;\n#endif\nvec4 vs_main() {\n highp vec4 pos = vec4(a_position, 1);\n vec4 velocity = vec4(a_texCoord1.xyz, 0);\n#if !CC_USE_WORLD_SPACE\n pos = cc_matWorld * pos;\n velocity = cc_matWorld * velocity;\n#endif\n float vertOffset = (a_texCoord.x - 0.5) * a_texCoord.y;\n vec3 camUp = normalize(cross(pos.xyz - cc_cameraPos.xyz, velocity.xyz));\n pos.xyz += camUp * vertOffset;\n pos = cc_matViewProj * pos;\n uv = a_texCoord.zw * mainTiling_Offset.xy + mainTiling_Offset.zw;;\n color = a_color;\n#if CC_DRAW_WIRE_FRAME\n vBarycentric = a_texCoord2;\n#endif\n return pos;\n}\nvoid main() { gl_Position = vs_main(); }", + "frag": "\nprecision mediump float;\nvec4 CCFragOutput (vec4 color) {\n #if OUTPUT_TO_GAMMA\n color.rgb = sqrt(color.rgb);\n #endif\n\treturn color;\n}\nvarying vec2 uv;\nvarying vec4 color;\n#if CC_DRAW_WIRE_FRAME\n varying vec3 vBarycentric;\n#endif\nuniform sampler2D mainTexture;\nuniform vec4 tintColor;\nvec4 add () {\n vec4 col = 2.0 * color * tintColor * texture2D(mainTexture, uv);\n #if CC_DRAW_WIRE_FRAME\n if (any(lessThan(vBarycentric, vec3(0.02)))) {\n col = vec4(0., 1., 1., 1.);\n }\n #endif\n return CCFragOutput(col);\n}\nvoid main() { gl_FragColor = add(); }" + }, + "builtins": { + "globals": { + "blocks": [ + { + "name": "CCGlobal", + "defines": [] + } + ], + "samplers": [] + }, + "locals": { + "blocks": [ + { + "name": "CCLocal", + "defines": [] + } + ], + "samplers": [] + } + }, + "defines": [ + { + "name": "CC_DRAW_WIRE_FRAME", + "type": "boolean", + "defines": [] + }, + { + "name": "CC_USE_WORLD_SPACE", + "type": "boolean", + "defines": [] + }, + { + "name": "OUTPUT_TO_GAMMA", + "type": "boolean", + "defines": [] + } + ], + "blocks": [ + { + "name": "Constants", + "binding": 0, + "members": [ + { + "name": "mainTiling_Offset", + "type": 16, + "count": 1 + }, + { + "name": "frameTile_velLenScale", + "type": 16, + "count": 1 + }, + { + "name": "scale", + "type": 16, + "count": 1 + } + ], + "defines": [] + }, + { + "name": "FragConstants", + "binding": 1, + "members": [ + { + "name": "tintColor", + "type": 16, + "count": 1 + } + ], + "defines": [] + } + ], + "samplers": [ + { + "name": "mainTexture", + "type": 29, + "count": 1, + "binding": 30, + "defines": [] + } + ] + }, + { + "hash": 4224037318, + "record": null, + "name": "builtin-3d-trail|particle-trail:vs_main|tinted-fs:multiply", + "glsl3": { + "vert": "\nprecision mediump float;\nuniform Constants{\n vec4 mainTiling_Offset;\n vec4 frameTile_velLenScale;\n vec4 scale;\n};\nuniform CCGlobal {\n mat4 cc_matView;\n mat4 cc_matViewInv;\n mat4 cc_matProj;\n mat4 cc_matProjInv;\n mat4 cc_matViewProj;\n mat4 cc_matViewProjInv;\n vec4 cc_cameraPos;\n vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_screenScale;\n};\nuniform CCLocal {\n mat4 cc_matWorld;\n mat4 cc_matWorldIT;\n};\nout vec2 uv;\nout vec4 color;\nin vec3 a_position;\nin vec4 a_texCoord;\nin vec3 a_texCoord1;\nin vec3 a_texCoord2;\nin vec4 a_color;\n#if CC_DRAW_WIRE_FRAME\n out vec3 vBarycentric;\n#endif\nvec4 vs_main() {\n highp vec4 pos = vec4(a_position, 1);\n vec4 velocity = vec4(a_texCoord1.xyz, 0);\n#if !CC_USE_WORLD_SPACE\n pos = cc_matWorld * pos;\n velocity = cc_matWorld * velocity;\n#endif\n float vertOffset = (a_texCoord.x - 0.5) * a_texCoord.y;\n vec3 camUp = normalize(cross(pos.xyz - cc_cameraPos.xyz, velocity.xyz));\n pos.xyz += camUp * vertOffset;\n pos = cc_matViewProj * pos;\n uv = a_texCoord.zw * mainTiling_Offset.xy + mainTiling_Offset.zw;;\n color = a_color;\n#if CC_DRAW_WIRE_FRAME\n vBarycentric = a_texCoord2;\n#endif\n return pos;\n}\nvoid main() { gl_Position = vs_main(); }", + "frag": "\nprecision mediump float;\nvec4 CCFragOutput (vec4 color) {\n #if OUTPUT_TO_GAMMA\n color.rgb = sqrt(color.rgb);\n #endif\n\treturn color;\n}\nin vec2 uv;\nin vec4 color;\n#if CC_DRAW_WIRE_FRAME\n in vec3 vBarycentric;\n#endif\nuniform sampler2D mainTexture;\nuniform FragConstants {\n vec4 tintColor;\n};\nvec4 multiply () {\n vec4 col;\n vec4 texColor = texture(mainTexture, uv);\n col.rgb = tintColor.rgb * texColor.rgb * color.rgb * vec3(2.0);\n col.a = (1.0 - texColor.a) * (tintColor.a * color.a * 2.0);\n #if CC_DRAW_WIRE_FRAME\n if (any(lessThan(vBarycentric, vec3(0.02)))) {\n col = vec4(0., 1., 1., col.a);\n }\n #endif\n return CCFragOutput(col);\n}\nout vec4 cc_FragColor;\nvoid main() { cc_FragColor = multiply(); }" + }, + "glsl1": { + "vert": "\nprecision mediump float;\nuniform vec4 mainTiling_Offset;\nuniform mat4 cc_matViewProj;\nuniform vec4 cc_cameraPos;\nuniform mat4 cc_matWorld;\nvarying vec2 uv;\nvarying vec4 color;\nattribute vec3 a_position;\nattribute vec4 a_texCoord;\nattribute vec3 a_texCoord1;\nattribute vec3 a_texCoord2;\nattribute vec4 a_color;\n#if CC_DRAW_WIRE_FRAME\n varying vec3 vBarycentric;\n#endif\nvec4 vs_main() {\n highp vec4 pos = vec4(a_position, 1);\n vec4 velocity = vec4(a_texCoord1.xyz, 0);\n#if !CC_USE_WORLD_SPACE\n pos = cc_matWorld * pos;\n velocity = cc_matWorld * velocity;\n#endif\n float vertOffset = (a_texCoord.x - 0.5) * a_texCoord.y;\n vec3 camUp = normalize(cross(pos.xyz - cc_cameraPos.xyz, velocity.xyz));\n pos.xyz += camUp * vertOffset;\n pos = cc_matViewProj * pos;\n uv = a_texCoord.zw * mainTiling_Offset.xy + mainTiling_Offset.zw;;\n color = a_color;\n#if CC_DRAW_WIRE_FRAME\n vBarycentric = a_texCoord2;\n#endif\n return pos;\n}\nvoid main() { gl_Position = vs_main(); }", + "frag": "\nprecision mediump float;\nvec4 CCFragOutput (vec4 color) {\n #if OUTPUT_TO_GAMMA\n color.rgb = sqrt(color.rgb);\n #endif\n\treturn color;\n}\nvarying vec2 uv;\nvarying vec4 color;\n#if CC_DRAW_WIRE_FRAME\n varying vec3 vBarycentric;\n#endif\nuniform sampler2D mainTexture;\nuniform vec4 tintColor;\nvec4 multiply () {\n vec4 col;\n vec4 texColor = texture2D(mainTexture, uv);\n col.rgb = tintColor.rgb * texColor.rgb * color.rgb * vec3(2.0);\n col.a = (1.0 - texColor.a) * (tintColor.a * color.a * 2.0);\n #if CC_DRAW_WIRE_FRAME\n if (any(lessThan(vBarycentric, vec3(0.02)))) {\n col = vec4(0., 1., 1., col.a);\n }\n #endif\n return CCFragOutput(col);\n}\nvoid main() { gl_FragColor = multiply(); }" + }, + "builtins": { + "globals": { + "blocks": [ + { + "name": "CCGlobal", + "defines": [] + } + ], + "samplers": [] + }, + "locals": { + "blocks": [ + { + "name": "CCLocal", + "defines": [] + } + ], + "samplers": [] + } + }, + "defines": [ + { + "name": "CC_DRAW_WIRE_FRAME", + "type": "boolean", + "defines": [] + }, + { + "name": "CC_USE_WORLD_SPACE", + "type": "boolean", + "defines": [] + }, + { + "name": "OUTPUT_TO_GAMMA", + "type": "boolean", + "defines": [] + } + ], + "blocks": [ + { + "name": "Constants", + "binding": 0, + "members": [ + { + "name": "mainTiling_Offset", + "type": 16, + "count": 1 + }, + { + "name": "frameTile_velLenScale", + "type": 16, + "count": 1 + }, + { + "name": "scale", + "type": 16, + "count": 1 + } + ], + "defines": [] + }, + { + "name": "FragConstants", + "binding": 1, + "members": [ + { + "name": "tintColor", + "type": 16, + "count": 1 + } + ], + "defines": [] + } + ], + "samplers": [ + { + "name": "mainTexture", + "type": 29, + "count": 1, + "binding": 30, + "defines": [] + } + ] + }, + { + "hash": 1704877102, + "record": null, + "name": "builtin-3d-trail|particle-trail:vs_main|no-tint-fs:addSmooth", + "glsl3": { + "vert": "\nprecision mediump float;\nuniform Constants{\n vec4 mainTiling_Offset;\n vec4 frameTile_velLenScale;\n vec4 scale;\n};\nuniform CCGlobal {\n mat4 cc_matView;\n mat4 cc_matViewInv;\n mat4 cc_matProj;\n mat4 cc_matProjInv;\n mat4 cc_matViewProj;\n mat4 cc_matViewProjInv;\n vec4 cc_cameraPos;\n vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_screenScale;\n};\nuniform CCLocal {\n mat4 cc_matWorld;\n mat4 cc_matWorldIT;\n};\nout vec2 uv;\nout vec4 color;\nin vec3 a_position;\nin vec4 a_texCoord;\nin vec3 a_texCoord1;\nin vec3 a_texCoord2;\nin vec4 a_color;\n#if CC_DRAW_WIRE_FRAME\n out vec3 vBarycentric;\n#endif\nvec4 vs_main() {\n highp vec4 pos = vec4(a_position, 1);\n vec4 velocity = vec4(a_texCoord1.xyz, 0);\n#if !CC_USE_WORLD_SPACE\n pos = cc_matWorld * pos;\n velocity = cc_matWorld * velocity;\n#endif\n float vertOffset = (a_texCoord.x - 0.5) * a_texCoord.y;\n vec3 camUp = normalize(cross(pos.xyz - cc_cameraPos.xyz, velocity.xyz));\n pos.xyz += camUp * vertOffset;\n pos = cc_matViewProj * pos;\n uv = a_texCoord.zw * mainTiling_Offset.xy + mainTiling_Offset.zw;;\n color = a_color;\n#if CC_DRAW_WIRE_FRAME\n vBarycentric = a_texCoord2;\n#endif\n return pos;\n}\nvoid main() { gl_Position = vs_main(); }", + "frag": "\nprecision mediump float;\nvec4 CCFragOutput (vec4 color) {\n #if OUTPUT_TO_GAMMA\n color.rgb = sqrt(color.rgb);\n #endif\n\treturn color;\n}\nin vec2 uv;\nin vec4 color;\nuniform sampler2D mainTexture;\nvec4 addSmooth () {\n vec4 col = color * texture(mainTexture, uv);\n col.rgb *= col.a;\n return CCFragOutput(col);\n}\nout vec4 cc_FragColor;\nvoid main() { cc_FragColor = addSmooth(); }" + }, + "glsl1": { + "vert": "\nprecision mediump float;\nuniform vec4 mainTiling_Offset;\nuniform mat4 cc_matViewProj;\nuniform vec4 cc_cameraPos;\nuniform mat4 cc_matWorld;\nvarying vec2 uv;\nvarying vec4 color;\nattribute vec3 a_position;\nattribute vec4 a_texCoord;\nattribute vec3 a_texCoord1;\nattribute vec3 a_texCoord2;\nattribute vec4 a_color;\n#if CC_DRAW_WIRE_FRAME\n varying vec3 vBarycentric;\n#endif\nvec4 vs_main() {\n highp vec4 pos = vec4(a_position, 1);\n vec4 velocity = vec4(a_texCoord1.xyz, 0);\n#if !CC_USE_WORLD_SPACE\n pos = cc_matWorld * pos;\n velocity = cc_matWorld * velocity;\n#endif\n float vertOffset = (a_texCoord.x - 0.5) * a_texCoord.y;\n vec3 camUp = normalize(cross(pos.xyz - cc_cameraPos.xyz, velocity.xyz));\n pos.xyz += camUp * vertOffset;\n pos = cc_matViewProj * pos;\n uv = a_texCoord.zw * mainTiling_Offset.xy + mainTiling_Offset.zw;;\n color = a_color;\n#if CC_DRAW_WIRE_FRAME\n vBarycentric = a_texCoord2;\n#endif\n return pos;\n}\nvoid main() { gl_Position = vs_main(); }", + "frag": "\nprecision mediump float;\nvec4 CCFragOutput (vec4 color) {\n #if OUTPUT_TO_GAMMA\n color.rgb = sqrt(color.rgb);\n #endif\n\treturn color;\n}\nvarying vec2 uv;\nvarying vec4 color;\nuniform sampler2D mainTexture;\nvec4 addSmooth () {\n vec4 col = color * texture2D(mainTexture, uv);\n col.rgb *= col.a;\n return CCFragOutput(col);\n}\nvoid main() { gl_FragColor = addSmooth(); }" + }, + "builtins": { + "globals": { + "blocks": [ + { + "name": "CCGlobal", + "defines": [] + } + ], + "samplers": [] + }, + "locals": { + "blocks": [ + { + "name": "CCLocal", + "defines": [] + } + ], + "samplers": [] + } + }, + "defines": [ + { + "name": "CC_DRAW_WIRE_FRAME", + "type": "boolean", + "defines": [] + }, + { + "name": "CC_USE_WORLD_SPACE", + "type": "boolean", + "defines": [] + }, + { + "name": "OUTPUT_TO_GAMMA", + "type": "boolean", + "defines": [] + } + ], + "blocks": [ + { + "name": "Constants", + "binding": 0, + "members": [ + { + "name": "mainTiling_Offset", + "type": 16, + "count": 1 + }, + { + "name": "frameTile_velLenScale", + "type": 16, + "count": 1 + }, + { + "name": "scale", + "type": 16, + "count": 1 + } + ], + "defines": [] + } + ], + "samplers": [ + { + "name": "mainTexture", + "type": 29, + "count": 1, + "binding": 30, + "defines": [] + } + ] + }, + { + "hash": 2717357054, + "record": null, + "name": "builtin-3d-trail|particle-trail:vs_main|no-tint-fs:premultiplied", + "glsl3": { + "vert": "\nprecision mediump float;\nuniform Constants{\n vec4 mainTiling_Offset;\n vec4 frameTile_velLenScale;\n vec4 scale;\n};\nuniform CCGlobal {\n mat4 cc_matView;\n mat4 cc_matViewInv;\n mat4 cc_matProj;\n mat4 cc_matProjInv;\n mat4 cc_matViewProj;\n mat4 cc_matViewProjInv;\n vec4 cc_cameraPos;\n vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_screenScale;\n};\nuniform CCLocal {\n mat4 cc_matWorld;\n mat4 cc_matWorldIT;\n};\nout vec2 uv;\nout vec4 color;\nin vec3 a_position;\nin vec4 a_texCoord;\nin vec3 a_texCoord1;\nin vec3 a_texCoord2;\nin vec4 a_color;\n#if CC_DRAW_WIRE_FRAME\n out vec3 vBarycentric;\n#endif\nvec4 vs_main() {\n highp vec4 pos = vec4(a_position, 1);\n vec4 velocity = vec4(a_texCoord1.xyz, 0);\n#if !CC_USE_WORLD_SPACE\n pos = cc_matWorld * pos;\n velocity = cc_matWorld * velocity;\n#endif\n float vertOffset = (a_texCoord.x - 0.5) * a_texCoord.y;\n vec3 camUp = normalize(cross(pos.xyz - cc_cameraPos.xyz, velocity.xyz));\n pos.xyz += camUp * vertOffset;\n pos = cc_matViewProj * pos;\n uv = a_texCoord.zw * mainTiling_Offset.xy + mainTiling_Offset.zw;;\n color = a_color;\n#if CC_DRAW_WIRE_FRAME\n vBarycentric = a_texCoord2;\n#endif\n return pos;\n}\nvoid main() { gl_Position = vs_main(); }", + "frag": "\nprecision mediump float;\nvec4 CCFragOutput (vec4 color) {\n #if OUTPUT_TO_GAMMA\n color.rgb = sqrt(color.rgb);\n #endif\n\treturn color;\n}\nin vec2 uv;\nin vec4 color;\nuniform sampler2D mainTexture;\nvec4 premultiplied () {\n vec4 col = color * texture(mainTexture, uv) * color.a;\n return CCFragOutput(col);\n}\nout vec4 cc_FragColor;\nvoid main() { cc_FragColor = premultiplied(); }" + }, + "glsl1": { + "vert": "\nprecision mediump float;\nuniform vec4 mainTiling_Offset;\nuniform mat4 cc_matViewProj;\nuniform vec4 cc_cameraPos;\nuniform mat4 cc_matWorld;\nvarying vec2 uv;\nvarying vec4 color;\nattribute vec3 a_position;\nattribute vec4 a_texCoord;\nattribute vec3 a_texCoord1;\nattribute vec3 a_texCoord2;\nattribute vec4 a_color;\n#if CC_DRAW_WIRE_FRAME\n varying vec3 vBarycentric;\n#endif\nvec4 vs_main() {\n highp vec4 pos = vec4(a_position, 1);\n vec4 velocity = vec4(a_texCoord1.xyz, 0);\n#if !CC_USE_WORLD_SPACE\n pos = cc_matWorld * pos;\n velocity = cc_matWorld * velocity;\n#endif\n float vertOffset = (a_texCoord.x - 0.5) * a_texCoord.y;\n vec3 camUp = normalize(cross(pos.xyz - cc_cameraPos.xyz, velocity.xyz));\n pos.xyz += camUp * vertOffset;\n pos = cc_matViewProj * pos;\n uv = a_texCoord.zw * mainTiling_Offset.xy + mainTiling_Offset.zw;;\n color = a_color;\n#if CC_DRAW_WIRE_FRAME\n vBarycentric = a_texCoord2;\n#endif\n return pos;\n}\nvoid main() { gl_Position = vs_main(); }", + "frag": "\nprecision mediump float;\nvec4 CCFragOutput (vec4 color) {\n #if OUTPUT_TO_GAMMA\n color.rgb = sqrt(color.rgb);\n #endif\n\treturn color;\n}\nvarying vec2 uv;\nvarying vec4 color;\nuniform sampler2D mainTexture;\nvec4 premultiplied () {\n vec4 col = color * texture2D(mainTexture, uv) * color.a;\n return CCFragOutput(col);\n}\nvoid main() { gl_FragColor = premultiplied(); }" + }, + "builtins": { + "globals": { + "blocks": [ + { + "name": "CCGlobal", + "defines": [] + } + ], + "samplers": [] + }, + "locals": { + "blocks": [ + { + "name": "CCLocal", + "defines": [] + } + ], + "samplers": [] + } + }, + "defines": [ + { + "name": "CC_DRAW_WIRE_FRAME", + "type": "boolean", + "defines": [] + }, + { + "name": "CC_USE_WORLD_SPACE", + "type": "boolean", + "defines": [] + }, + { + "name": "OUTPUT_TO_GAMMA", + "type": "boolean", + "defines": [] + } + ], + "blocks": [ + { + "name": "Constants", + "binding": 0, + "members": [ + { + "name": "mainTiling_Offset", + "type": 16, + "count": 1 + }, + { + "name": "frameTile_velLenScale", + "type": 16, + "count": 1 + }, + { + "name": "scale", + "type": 16, + "count": 1 + } + ], + "defines": [] + } + ], + "samplers": [ + { + "name": "mainTexture", + "type": 29, + "count": 1, + "binding": 30, + "defines": [] + } + ] + } + ], + [ + { + "name": "add", + "passes": [ + { + "program": "builtin-3d-trail|particle-trail:vs_main|tinted-fs:add", + "rasterizerState": { + "cullMode": 0 + }, + "blendState": { + "targets": [ + { + "blend": true, + "blendSrc": 770, + "blendDst": 1, + "blendSrcAlpha": 770, + "blendDstAlpha": 1 + } + ] + }, + "depthStencilState": { + "depthTest": true, + "depthWrite": false + }, + "properties": { + "mainTexture": { + "value": "grey", + "type": 29 + }, + "mainTiling_Offset": { + "type": 16, + "value": [ + 1, + 1, + 0, + 0 + ] + }, + "frameTile_velLenScale": { + "type": 16, + "value": [ + 1, + 1, + 0, + 0 + ] + }, + "tintColor": { + "type": 16, + "value": [ + 0.5, + 0.5, + 0.5, + 0.5 + ], + "inspector": { + "type": "color" + } + } + } + } + ] + }, + { + "name": "alpha-blend", + "passes": [ + { + "program": "builtin-3d-trail|particle-trail:vs_main|tinted-fs:add", + "rasterizerState": { + "cullMode": 0 + }, + "blendState": { + "targets": [ + { + "blend": true, + "blendSrc": 1, + "blendDst": 771, + "blendSrcAlpha": 1, + "blendDstAlpha": 771 + } + ] + }, + "depthStencilState": { + "depthTest": true, + "depthWrite": false + }, + "properties": { + "mainTexture": { + "value": "grey", + "type": 29 + }, + "mainTiling_Offset": { + "type": 16, + "value": [ + 1, + 1, + 0, + 0 + ] + }, + "frameTile_velLenScale": { + "type": 16, + "value": [ + 1, + 1, + 0, + 0 + ] + }, + "tintColor": { + "type": 16, + "value": [ + 0.5, + 0.5, + 0.5, + 0.5 + ], + "inspector": { + "type": "color" + } + } + } + } + ] + }, + { + "name": "add-multiply", + "passes": [ + { + "program": "builtin-3d-trail|particle-trail:vs_main|tinted-fs:multiply", + "rasterizerState": { + "cullMode": 0 + }, + "blendState": { + "targets": [ + { + "blend": true, + "blendSrc": 1, + "blendDst": 771, + "blendSrcAlpha": 1, + "blendDstAlpha": 771 + } + ] + }, + "depthStencilState": { + "depthTest": true, + "depthWrite": false + }, + "properties": { + "mainTexture": { + "value": "grey", + "type": 29 + }, + "mainTiling_Offset": { + "type": 16, + "value": [ + 1, + 1, + 0, + 0 + ] + }, + "frameTile_velLenScale": { + "type": 16, + "value": [ + 1, + 1, + 0, + 0 + ] + }, + "tintColor": { + "type": 16, + "value": [ + 0.5, + 0.5, + 0.5, + 0.5 + ], + "inspector": { + "type": "color" + } + } + } + } + ] + }, + { + "name": "add-smooth", + "passes": [ + { + "program": "builtin-3d-trail|particle-trail:vs_main|no-tint-fs:addSmooth", + "rasterizerState": { + "cullMode": 0 + }, + "blendState": { + "targets": [ + { + "blend": true, + "blendSrc": 1, + "blendDst": 771, + "blendSrcAlpha": 1, + "blendDstAlpha": 771 + } + ] + }, + "depthStencilState": { + "depthTest": true, + "depthWrite": false + }, + "properties": { + "mainTexture": { + "value": "grey", + "type": 29 + }, + "mainTiling_Offset": { + "type": 16, + "value": [ + 1, + 1, + 0, + 0 + ] + }, + "frameTile_velLenScale": { + "type": 16, + "value": [ + 1, + 1, + 0, + 0 + ] + } + } + } + ] + }, + { + "name": "premultiply-blend", + "passes": [ + { + "program": "builtin-3d-trail|particle-trail:vs_main|no-tint-fs:premultiplied", + "rasterizerState": { + "cullMode": 0 + }, + "blendState": { + "targets": [ + { + "blend": true, + "blendSrc": 1, + "blendDst": 771, + "blendSrcAlpha": 1, + "blendDstAlpha": 771 + } + ] + }, + "depthStencilState": { + "depthTest": true, + "depthWrite": false + }, + "properties": { + "mainTexture": { + "value": "grey", + "type": 29 + }, + "mainTiling_Offset": { + "type": 16, + "value": [ + 1, + 1, + 0, + 0 + ] + }, + "frameTile_velLenScale": { + "type": 16, + "value": [ + 1, + 1, + 0, + 0 + ] + } + } + } + ] + } + ] + ] + ], + 0, + 0, + [], + [], + [] + ], + [ + [ + [ + 0, + "builtin-2d-graphics", + [ + { + "hash": 550349795, + "record": null, + "name": "builtin-2d-graphics|vs|fs", + "glsl3": { + "vert": "\nprecision highp float;\nuniform CCGlobal {\n mat4 cc_matView;\n mat4 cc_matViewInv;\n mat4 cc_matProj;\n mat4 cc_matProjInv;\n mat4 cc_matViewProj;\n mat4 cc_matViewProjInv;\n vec4 cc_cameraPos;\n vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_screenScale;\n};\nuniform CCLocal {\n mat4 cc_matWorld;\n mat4 cc_matWorldIT;\n};\nin vec3 a_position;\nin vec4 a_color;\nout vec4 v_color;\nin float a_dist;\nout float v_dist;\nvoid main () {\n vec4 pos = vec4(a_position, 1);\n pos = cc_matViewProj * cc_matWorld * pos;\n v_color = a_color;\n v_dist = a_dist;\n gl_Position = pos;\n}", + "frag": "\n#if CC_SUPPORT_standard_derivatives\n #extension GL_OES_standard_derivatives : enable\n#endif\nprecision highp float;\n#if USE_ALPHA_TEST\n uniform ALPHA_TEST {\n float alphaThreshold;\n };\n#endif\nvoid ALPHA_TEST (in vec4 color) {\n #if USE_ALPHA_TEST\n if (color.a < alphaThreshold) discard;\n #endif\n}\nvoid ALPHA_TEST (in float alpha) {\n #if USE_ALPHA_TEST\n if (alpha < alphaThreshold) discard;\n #endif\n}\nin vec4 v_color;\nin float v_dist;\nvoid main () {\n vec4 o = v_color;\n ALPHA_TEST(o);\n #if CC_SUPPORT_standard_derivatives\n float aa = fwidth(v_dist);\n #else\n float aa = 0.05;\n #endif\n float alpha = 1. - smoothstep(-aa, 0., abs(v_dist) - 1.0);\n o.rgb *= o.a;\n o *= alpha;\n gl_FragColor = o;\n}" + }, + "glsl1": { + "vert": "\nprecision highp float;\nuniform mat4 cc_matViewProj;\nuniform mat4 cc_matWorld;\nattribute vec3 a_position;\nattribute vec4 a_color;\nvarying vec4 v_color;\nattribute float a_dist;\nvarying float v_dist;\nvoid main () {\n vec4 pos = vec4(a_position, 1);\n pos = cc_matViewProj * cc_matWorld * pos;\n v_color = a_color;\n v_dist = a_dist;\n gl_Position = pos;\n}", + "frag": "\n#if CC_SUPPORT_standard_derivatives\n #extension GL_OES_standard_derivatives : enable\n#endif\nprecision highp float;\n#if USE_ALPHA_TEST\n uniform float alphaThreshold;\n#endif\nvoid ALPHA_TEST (in vec4 color) {\n #if USE_ALPHA_TEST\n if (color.a < alphaThreshold) discard;\n #endif\n}\nvoid ALPHA_TEST (in float alpha) {\n #if USE_ALPHA_TEST\n if (alpha < alphaThreshold) discard;\n #endif\n}\nvarying vec4 v_color;\nvarying float v_dist;\nvoid main () {\n vec4 o = v_color;\n ALPHA_TEST(o);\n #if CC_SUPPORT_standard_derivatives\n float aa = fwidth(v_dist);\n #else\n float aa = 0.05;\n #endif\n float alpha = 1. - smoothstep(-aa, 0., abs(v_dist) - 1.0);\n o.rgb *= o.a;\n o *= alpha;\n gl_FragColor = o;\n}" + }, + "builtins": { + "globals": { + "blocks": [ + { + "name": "CCGlobal", + "defines": [] + } + ], + "samplers": [] + }, + "locals": { + "blocks": [ + { + "name": "CCLocal", + "defines": [] + } + ], + "samplers": [] + } + }, + "defines": [ + { + "name": "CC_SUPPORT_standard_derivatives", + "type": "boolean", + "defines": [] + }, + { + "name": "USE_ALPHA_TEST", + "type": "boolean", + "defines": [] + } + ], + "blocks": [ + { + "name": "ALPHA_TEST", + "binding": 0, + "members": [ + { + "name": "alphaThreshold", + "type": 13, + "count": 1 + } + ], + "defines": [ + "USE_ALPHA_TEST" + ] + } + ], + "samplers": [] + } + ], + [ + { + "passes": [ + { + "program": "builtin-2d-graphics|vs|fs", + "blendState": { + "targets": [ + { + "blend": true, + "blendSrc": 1, + "blendDst": 771, + "blendSrcAlpha": 1, + "blendDstAlpha": 771 + } + ] + }, + "rasterizerState": { + "cullMode": 0 + }, + "properties": { + "alphaThreshold": { + "type": 13, + "value": [ + 0.5 + ] + } + } + } + ] + } + ] + ] + ], + 0, + 0, + [], + [], + [] + ], + [ + [ + [ + 1, + "builtin-2d-gray-sprite", + {} + ] + ], + 0, + 0, + [ + 0 + ], + [ + 0 + ], + [ + 3 + ] + ], + [ + [ + [ + 2, + "builtin-3d-trail", + [ + {}, + "0", + 11, + [ + {}, + "props", + 11, + [ + {}, + "mainTexture", + 6, + 0 + ] + ] + ] + ] + ], + 0, + 0, + [ + 0, + 0 + ], + [ + 2, + 0 + ], + [ + 0, + 4 + ] + ], + [ + [ + [ + 0, + "builtin-unlit", + [ + { + "hash": 922858114, + "record": null, + "name": "builtin-unlit|unlit-vs|unlit-fs", + "glsl3": { + "vert": "\nprecision highp float;\nuniform CCLocal {\n mat4 cc_matWorld;\n mat4 cc_matWorldIT;\n};\nuniform CCGlobal {\n mat4 cc_matView;\n mat4 cc_matViewInv;\n mat4 cc_matProj;\n mat4 cc_matProjInv;\n mat4 cc_matViewProj;\n mat4 cc_matViewProjInv;\n vec4 cc_cameraPos;\n vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_screenScale;\n};\n#if CC_USE_SKINNING\n in vec4 a_weights;\n in vec4 a_joints;\n #if CC_USE_JOINTS_TEXTRUE\n uniform SKINNING {\n vec2 jointsTextureSize;\n };\n uniform sampler2D jointsTexture;\n #if CC_JOINTS_TEXTURE_FLOAT32\n mat4 getBoneMatrix(const in float i) {\n float width = jointsTextureSize.x;\n float height = jointsTextureSize.y;\n float j = i * 4.0;\n float x = mod(j, width);\n float y = floor(j / width);\n float dx = 1.0 / width;\n float dy = 1.0 / height;\n y = dy * (y + 0.5);\n vec4 v1 = texture(jointsTexture, vec2(dx * (x + 0.5), y));\n vec4 v2 = texture(jointsTexture, vec2(dx * (x + 1.5), y));\n vec4 v3 = texture(jointsTexture, vec2(dx * (x + 2.5), y));\n vec4 v4 = texture(jointsTexture, vec2(dx * (x + 3.5), y));\n return mat4(v1, v2, v3, v4);\n }\n #else\n float decode32(vec4 rgba) {\n float Sign = 1.0 - step(128.0, rgba[0]) * 2.0;\n float Exponent = 2.0 * mod(rgba[0], 128.0) + step(128.0, rgba[1]) - 127.0;\n float Mantissa = mod(rgba[1], 128.0) * 65536.0 + rgba[2] * 256.0 + rgba[3] + 8388608.0;\n return Sign * exp2(Exponent - 23.0) * Mantissa;\n }\n vec4 decodevec4 (vec4 x, vec4 y, vec4 z, vec4 w) {\n return vec4(\n decode32(x.wzyx * 255.0),\n decode32(y.wzyx * 255.0),\n decode32(z.wzyx * 255.0),\n decode32(w.wzyx * 255.0)\n );\n }\n vec4 decodevec4 (float dx, float x, float y) {\n return decodevec4(\n texture(jointsTexture, vec2(dx * (x + 0.5), y)),\n texture(jointsTexture, vec2(dx * (x + 1.5), y)),\n texture(jointsTexture, vec2(dx * (x + 2.5), y)),\n texture(jointsTexture, vec2(dx * (x + 3.5), y))\n );\n }\n mat4 getBoneMatrix(const in float i) {\n float width = jointsTextureSize.x;\n float height = jointsTextureSize.y;\n float j = i * 16.0;\n float x = mod(j, width);\n float y = floor(j / width);\n float dx = 1.0 / width;\n float dy = 1.0 / height;\n y = dy * (y + 0.5);\n vec4 v1 = decodevec4(dx, x, y);\n vec4 v2 = decodevec4(dx, x+4.0, y);\n vec4 v3 = decodevec4(dx, x+8.0, y);\n vec4 v4 = decodevec4(dx, x+12.0, y);\n return mat4(v1, v2, v3, v4);\n }\n #endif\n #else\n uniform JOINT_MATRIX {\n mat4 jointMatrices[50];\n };\n mat4 getBoneMatrix(const in float i) {\n return jointMatrices[int(i)];\n }\n #endif\n mat4 skinMatrix() {\n return\n getBoneMatrix(a_joints.x) * a_weights.x +\n getBoneMatrix(a_joints.y) * a_weights.y +\n getBoneMatrix(a_joints.z) * a_weights.z +\n getBoneMatrix(a_joints.w) * a_weights.w\n ;\n }\n#endif\nstruct StandardVertInput {\n vec2 uv;\n vec4 position;\n vec3 normal;\n vec4 tangent;\n vec4 color;\n};\nin vec3 a_position;\n#if CC_USE_ATTRIBUTE_UV0\nin vec2 a_uv0;\n#endif\n#if CC_USE_ATTRIBUTE_COLOR\nin vec4 a_color;\n#endif\n#if CC_USE_ATTRIBUTE_NORMAL\nin vec3 a_normal;\n#endif\n#if CC_USE_ATTRIBUTE_TANGENT\nin vec4 a_tangent;\n#endif\nvoid CCAttribute (out StandardVertInput In) {\n In.position = vec4(a_position, 1.0);\n #if CC_USE_ATTRIBUTE_UV0\n In.uv = a_uv0;\n #else\n In.uv = vec2(0.0);\n #endif\n #if CC_USE_ATTRIBUTE_COLOR\n In.color = a_color;\n #else\n In.color = vec4(1.0);\n #endif\n #if CC_USE_ATTRIBUTE_NORMAL\n In.normal = a_normal;\n #else\n In.normal = vec3(0.0, 1.0, 0.0);\n #endif\n #if CC_USE_ATTRIBUTE_TANGENT\n In.tangent = a_tangent;\n #else\n In.tangent = vec4(1.0, 0.0, 0.0, 0.0);\n #endif\n}\nvoid CCVertInput(out StandardVertInput In) {\n CCAttribute(In);\n #if CC_USE_SKINNING\n mat4 m = skinMatrix();\n In.position = m * In.position;\n #if CC_USE_ATTRIBUTE_NORMAL\n In.normal = (m * vec4(In.normal, 0)).xyz;\n #endif\n #if CC_USE_ATTRIBUTE_TANGENT\n In.tangent = m * In.tangent;\n #endif\n #endif\n}\nuniform MAIN_TILING {\n vec2 mainTiling;\n vec2 mainOffset;\n};\n#if CC_USE_ATTRIBUTE_UV0 && USE_DIFFUSE_TEXTURE\n out mediump vec2 v_uv0;\n#endif\n#if CC_USE_ATTRIBUTE_COLOR\n out lowp vec4 v_color;\n#endif\nvoid main () {\n StandardVertInput In;\n CCVertInput(In);\n #if CC_USE_ATTRIBUTE_COLOR\n v_color = In.color;\n #endif\n #if CC_USE_ATTRIBUTE_UV0 && USE_DIFFUSE_TEXTURE\n v_uv0 = In.uv * mainTiling + mainOffset;\n #endif\n gl_Position = cc_matViewProj * cc_matWorld * In.position;\n}", + "frag": "\nprecision highp float;\n#if USE_ALPHA_TEST\n uniform ALPHA_TEST {\n float alphaThreshold;\n };\n#endif\nvoid ALPHA_TEST (in vec4 color) {\n #if USE_ALPHA_TEST\n if (color.a < alphaThreshold) discard;\n #endif\n}\nvoid ALPHA_TEST (in float alpha) {\n #if USE_ALPHA_TEST\n if (alpha < alphaThreshold) discard;\n #endif\n}\nvec4 CCFragOutput (vec4 color) {\n #if OUTPUT_TO_GAMMA\n color.rgb = sqrt(color.rgb);\n #endif\n\treturn color;\n}\nuniform UNLIT {\n lowp vec4 diffuseColor;\n};\n#if USE_DIFFUSE_TEXTURE\n uniform sampler2D diffuseTexture;\n#endif\n#if CC_USE_ATTRIBUTE_COLOR\n in lowp vec4 v_color;\n#endif\n#if CC_USE_ATTRIBUTE_UV0 && USE_DIFFUSE_TEXTURE\n in mediump vec2 v_uv0;\n#endif\nvoid main () {\n vec4 color = diffuseColor;\n #if CC_USE_ATTRIBUTE_UV0 && USE_DIFFUSE_TEXTURE\n vec4 diffuseTexture_tmp = texture(diffuseTexture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_diffuseTexture\n diffuseTexture_tmp.a *= texture(diffuseTexture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n color.rgb *= (diffuseTexture_tmp.rgb * diffuseTexture_tmp.rgb);\n color.a *= diffuseTexture_tmp.a;\n #else\n color *= diffuseTexture_tmp;\n #endif\n #endif\n #if CC_USE_ATTRIBUTE_COLOR\n color *= v_color;\n #endif\n ALPHA_TEST(color);\n gl_FragColor = CCFragOutput(color);\n}" + }, + "glsl1": { + "vert": "\nprecision highp float;\nuniform mat4 cc_matWorld;\nuniform mat4 cc_matViewProj;\n#if CC_USE_SKINNING\n attribute vec4 a_weights;\n attribute vec4 a_joints;\n #if CC_USE_JOINTS_TEXTRUE\n uniform vec2 jointsTextureSize;\n uniform sampler2D jointsTexture;\n #if CC_JOINTS_TEXTURE_FLOAT32\n mat4 getBoneMatrix(const in float i) {\n float width = jointsTextureSize.x;\n float height = jointsTextureSize.y;\n float j = i * 4.0;\n float x = mod(j, width);\n float y = floor(j / width);\n float dx = 1.0 / width;\n float dy = 1.0 / height;\n y = dy * (y + 0.5);\n vec4 v1 = texture2D(jointsTexture, vec2(dx * (x + 0.5), y));\n vec4 v2 = texture2D(jointsTexture, vec2(dx * (x + 1.5), y));\n vec4 v3 = texture2D(jointsTexture, vec2(dx * (x + 2.5), y));\n vec4 v4 = texture2D(jointsTexture, vec2(dx * (x + 3.5), y));\n return mat4(v1, v2, v3, v4);\n }\n #else\n float decode32(vec4 rgba) {\n float Sign = 1.0 - step(128.0, rgba[0]) * 2.0;\n float Exponent = 2.0 * mod(rgba[0], 128.0) + step(128.0, rgba[1]) - 127.0;\n float Mantissa = mod(rgba[1], 128.0) * 65536.0 + rgba[2] * 256.0 + rgba[3] + 8388608.0;\n return Sign * exp2(Exponent - 23.0) * Mantissa;\n }\n vec4 decodevec4 (vec4 x, vec4 y, vec4 z, vec4 w) {\n return vec4(\n decode32(x.wzyx * 255.0),\n decode32(y.wzyx * 255.0),\n decode32(z.wzyx * 255.0),\n decode32(w.wzyx * 255.0)\n );\n }\n vec4 decodevec4 (float dx, float x, float y) {\n return decodevec4(\n texture2D(jointsTexture, vec2(dx * (x + 0.5), y)),\n texture2D(jointsTexture, vec2(dx * (x + 1.5), y)),\n texture2D(jointsTexture, vec2(dx * (x + 2.5), y)),\n texture2D(jointsTexture, vec2(dx * (x + 3.5), y))\n );\n }\n mat4 getBoneMatrix(const in float i) {\n float width = jointsTextureSize.x;\n float height = jointsTextureSize.y;\n float j = i * 16.0;\n float x = mod(j, width);\n float y = floor(j / width);\n float dx = 1.0 / width;\n float dy = 1.0 / height;\n y = dy * (y + 0.5);\n vec4 v1 = decodevec4(dx, x, y);\n vec4 v2 = decodevec4(dx, x+4.0, y);\n vec4 v3 = decodevec4(dx, x+8.0, y);\n vec4 v4 = decodevec4(dx, x+12.0, y);\n return mat4(v1, v2, v3, v4);\n }\n #endif\n #else\n uniform mat4 jointMatrices[50];\n mat4 getBoneMatrix(const in float i) {\n return jointMatrices[int(i)];\n }\n #endif\n mat4 skinMatrix() {\n return\n getBoneMatrix(a_joints.x) * a_weights.x +\n getBoneMatrix(a_joints.y) * a_weights.y +\n getBoneMatrix(a_joints.z) * a_weights.z +\n getBoneMatrix(a_joints.w) * a_weights.w\n ;\n }\n#endif\nstruct StandardVertInput {\n vec2 uv;\n vec4 position;\n vec3 normal;\n vec4 tangent;\n vec4 color;\n};\nattribute vec3 a_position;\n#if CC_USE_ATTRIBUTE_UV0\nattribute vec2 a_uv0;\n#endif\n#if CC_USE_ATTRIBUTE_COLOR\nattribute vec4 a_color;\n#endif\n#if CC_USE_ATTRIBUTE_NORMAL\nattribute vec3 a_normal;\n#endif\n#if CC_USE_ATTRIBUTE_TANGENT\nattribute vec4 a_tangent;\n#endif\nvoid CCAttribute (out StandardVertInput In) {\n In.position = vec4(a_position, 1.0);\n #if CC_USE_ATTRIBUTE_UV0\n In.uv = a_uv0;\n #else\n In.uv = vec2(0.0);\n #endif\n #if CC_USE_ATTRIBUTE_COLOR\n In.color = a_color;\n #else\n In.color = vec4(1.0);\n #endif\n #if CC_USE_ATTRIBUTE_NORMAL\n In.normal = a_normal;\n #else\n In.normal = vec3(0.0, 1.0, 0.0);\n #endif\n #if CC_USE_ATTRIBUTE_TANGENT\n In.tangent = a_tangent;\n #else\n In.tangent = vec4(1.0, 0.0, 0.0, 0.0);\n #endif\n}\nvoid CCVertInput(out StandardVertInput In) {\n CCAttribute(In);\n #if CC_USE_SKINNING\n mat4 m = skinMatrix();\n In.position = m * In.position;\n #if CC_USE_ATTRIBUTE_NORMAL\n In.normal = (m * vec4(In.normal, 0)).xyz;\n #endif\n #if CC_USE_ATTRIBUTE_TANGENT\n In.tangent = m * In.tangent;\n #endif\n #endif\n}\nuniform vec2 mainTiling;\nuniform vec2 mainOffset;\n#if CC_USE_ATTRIBUTE_UV0 && USE_DIFFUSE_TEXTURE\n varying mediump vec2 v_uv0;\n#endif\n#if CC_USE_ATTRIBUTE_COLOR\n varying lowp vec4 v_color;\n#endif\nvoid main () {\n StandardVertInput In;\n CCVertInput(In);\n #if CC_USE_ATTRIBUTE_COLOR\n v_color = In.color;\n #endif\n #if CC_USE_ATTRIBUTE_UV0 && USE_DIFFUSE_TEXTURE\n v_uv0 = In.uv * mainTiling + mainOffset;\n #endif\n gl_Position = cc_matViewProj * cc_matWorld * In.position;\n}", + "frag": "\nprecision highp float;\n#if USE_ALPHA_TEST\n uniform float alphaThreshold;\n#endif\nvoid ALPHA_TEST (in vec4 color) {\n #if USE_ALPHA_TEST\n if (color.a < alphaThreshold) discard;\n #endif\n}\nvoid ALPHA_TEST (in float alpha) {\n #if USE_ALPHA_TEST\n if (alpha < alphaThreshold) discard;\n #endif\n}\nvec4 CCFragOutput (vec4 color) {\n #if OUTPUT_TO_GAMMA\n color.rgb = sqrt(color.rgb);\n #endif\n\treturn color;\n}\nuniform lowp vec4 diffuseColor;\n#if USE_DIFFUSE_TEXTURE\n uniform sampler2D diffuseTexture;\n#endif\n#if CC_USE_ATTRIBUTE_COLOR\n varying lowp vec4 v_color;\n#endif\n#if CC_USE_ATTRIBUTE_UV0 && USE_DIFFUSE_TEXTURE\n varying mediump vec2 v_uv0;\n#endif\nvoid main () {\n vec4 color = diffuseColor;\n #if CC_USE_ATTRIBUTE_UV0 && USE_DIFFUSE_TEXTURE\n vec4 diffuseTexture_tmp = texture2D(diffuseTexture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_diffuseTexture\n diffuseTexture_tmp.a *= texture2D(diffuseTexture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n color.rgb *= (diffuseTexture_tmp.rgb * diffuseTexture_tmp.rgb);\n color.a *= diffuseTexture_tmp.a;\n #else\n color *= diffuseTexture_tmp;\n #endif\n #endif\n #if CC_USE_ATTRIBUTE_COLOR\n color *= v_color;\n #endif\n ALPHA_TEST(color);\n gl_FragColor = CCFragOutput(color);\n}" + }, + "builtins": { + "globals": { + "blocks": [ + { + "name": "CCGlobal", + "defines": [] + } + ], + "samplers": [] + }, + "locals": { + "blocks": [ + { + "name": "CCLocal", + "defines": [] + } + ], + "samplers": [] + } + }, + "defines": [ + { + "name": "CC_USE_SKINNING", + "type": "boolean", + "defines": [] + }, + { + "name": "CC_USE_JOINTS_TEXTRUE", + "type": "boolean", + "defines": [ + "CC_USE_SKINNING" + ] + }, + { + "name": "CC_JOINTS_TEXTURE_FLOAT32", + "type": "boolean", + "defines": [ + "CC_USE_SKINNING", + "CC_USE_JOINTS_TEXTRUE" + ] + }, + { + "name": "CC_USE_ATTRIBUTE_UV0", + "type": "boolean", + "defines": [] + }, + { + "name": "CC_USE_ATTRIBUTE_COLOR", + "type": "boolean", + "defines": [] + }, + { + "name": "CC_USE_ATTRIBUTE_NORMAL", + "type": "boolean", + "defines": [] + }, + { + "name": "CC_USE_ATTRIBUTE_TANGENT", + "type": "boolean", + "defines": [] + }, + { + "name": "USE_DIFFUSE_TEXTURE", + "type": "boolean", + "defines": [] + }, + { + "name": "USE_ALPHA_TEST", + "type": "boolean", + "defines": [] + }, + { + "name": "OUTPUT_TO_GAMMA", + "type": "boolean", + "defines": [] + }, + { + "name": "CC_USE_ALPHA_ATLAS_diffuseTexture", + "type": "boolean", + "defines": [ + "CC_USE_ATTRIBUTE_UV0", + "USE_DIFFUSE_TEXTURE" + ] + }, + { + "name": "INPUT_IS_GAMMA", + "type": "boolean", + "defines": [ + "CC_USE_ATTRIBUTE_UV0", + "USE_DIFFUSE_TEXTURE" + ] + } + ], + "blocks": [ + { + "name": "SKINNING", + "binding": 0, + "members": [ + { + "name": "jointsTextureSize", + "type": 14, + "count": 1 + } + ], + "defines": [ + "CC_USE_SKINNING", + "CC_USE_JOINTS_TEXTRUE" + ] + }, + { + "name": "JOINT_MATRIX", + "binding": 1, + "members": [ + { + "name": "jointMatrices", + "type": 26, + "count": 50 + } + ], + "defines": [ + "CC_USE_SKINNING" + ] + }, + { + "name": "MAIN_TILING", + "binding": 2, + "members": [ + { + "name": "mainTiling", + "type": 14, + "count": 1 + }, + { + "name": "mainOffset", + "type": 14, + "count": 1 + } + ], + "defines": [] + }, + { + "name": "ALPHA_TEST", + "binding": 3, + "members": [ + { + "name": "alphaThreshold", + "type": 13, + "count": 1 + } + ], + "defines": [ + "USE_ALPHA_TEST" + ] + }, + { + "name": "UNLIT", + "binding": 4, + "members": [ + { + "name": "diffuseColor", + "type": 16, + "count": 1 + } + ], + "defines": [] + } + ], + "samplers": [ + { + "name": "jointsTexture", + "type": 29, + "count": 1, + "binding": 30, + "defines": [ + "CC_USE_SKINNING", + "CC_USE_JOINTS_TEXTRUE" + ] + }, + { + "name": "diffuseTexture", + "type": 29, + "count": 1, + "binding": 31, + "defines": [ + "USE_DIFFUSE_TEXTURE" + ] + } + ] + } + ], + [ + { + "name": "opaque", + "passes": [ + { + "program": "builtin-unlit|unlit-vs|unlit-fs", + "blendState": { + "targets": [ + { + "blend": true + } + ] + }, + "rasterizerState": { + "cullMode": 0 + }, + "depthStencilState": { + "depthTest": true, + "depthWrite": true + }, + "properties": { + "diffuseTexture": { + "value": "white", + "type": 29 + }, + "diffuseColor": { + "type": 16, + "value": [ + 1, + 1, + 1, + 1 + ], + "editor": { + "type": "color" + } + }, + "alphaThreshold": { + "type": 13, + "value": [ + 0.5 + ] + }, + "mainTiling": { + "type": 14, + "value": [ + 1, + 1 + ] + }, + "mainOffset": { + "type": 14, + "value": [ + 0, + 0 + ] + } + } + } + ] + }, + { + "name": "transparent", + "passes": [ + { + "stage": "transparent", + "program": "builtin-unlit|unlit-vs|unlit-fs", + "blendState": { + "targets": [ + { + "blend": true + } + ] + }, + "rasterizerState": { + "cullMode": 0 + }, + "depthStencilState": { + "depthTest": true, + "depthWrite": true + }, + "properties": { + "diffuseTexture": { + "value": "white", + "type": 29 + }, + "diffuseColor": { + "type": 16, + "value": [ + 1, + 1, + 1, + 1 + ], + "editor": { + "type": "color" + } + }, + "alphaThreshold": { + "type": 13, + "value": [ + 0.5 + ] + }, + "mainTiling": { + "type": 14, + "value": [ + 1, + 1 + ] + }, + "mainOffset": { + "type": 14, + "value": [ + 0, + 0 + ] + } + } + } + ] + } + ] + ] + ], + 0, + 0, + [], + [], + [] + ], + [ + [ + [ + 1, + "builtin-2d-base", + {} + ] + ], + 0, + 0, + [ + 0 + ], + [ + 0 + ], + [ + 1 + ] + ], + [ + [ + [ + 1, + "builtin-2d-spine", + {} + ] + ], + 0, + 0, + [ + 0 + ], + [ + 0 + ], + [ + 5 + ] + ], + [ + [ + [ + 1, + "builtin-2d-graphics", + { + "0": { + "defines": {} + } + } + ] + ], + 0, + 0, + [ + 0 + ], + [ + 0 + ], + [ + 6 + ] + ], + [ + [ + [ + 0, + "builtin-clear-stencil", + [ + { + "hash": 2075641479, + "record": null, + "name": "builtin-clear-stencil|vs|fs", + "glsl3": { + "vert": "\nprecision highp float;\nin vec3 a_position;\nvoid main () {\n gl_Position = vec4(a_position, 1);\n}", + "frag": "\nprecision highp float;\nvoid main () {\n gl_FragColor = vec4(1.0);\n}" + }, + "glsl1": { + "vert": "\nprecision highp float;\nattribute vec3 a_position;\nvoid main () {\n gl_Position = vec4(a_position, 1);\n}", + "frag": "\nprecision highp float;\nvoid main () {\n gl_FragColor = vec4(1.0);\n}" + }, + "builtins": { + "globals": { + "blocks": [], + "samplers": [] + }, + "locals": { + "blocks": [], + "samplers": [] + } + }, + "defines": [], + "blocks": [], + "samplers": [] + } + ], + [ + { + "passes": [ + { + "program": "builtin-clear-stencil|vs|fs", + "blendState": { + "targets": [ + { + "blend": true + } + ] + }, + "rasterizerState": { + "cullMode": 0 + } + } + ] + } + ] + ] + ], + 0, + 0, + [], + [], + [] + ], + [ + [ + [ + 1, + "builtin-clear-stencil", + {} + ] + ], + 0, + 0, + [ + 0 + ], + [ + 0 + ], + [ + 7 + ] + ], + [ + [ + [ + 1, + "builtin-2d-label", + { + "0": { + "defines": { + "USE_TEXTURE": true + } + } + } + ] + ], + 0, + 0, + [ + 0 + ], + [ + 0 + ], + [ + 8 + ] + ], + [ + [ + [ + 1, + "builtin-2d-sprite", + { + "0": { + "defines": { + "USE_TEXTURE": true + } + } + } + ] + ], + 0, + 0, + [ + 0 + ], + [ + 0 + ], + [ + 1 + ] + ], + [ + [ + [ + 0, + "builtin-2d-label", + [ + { + "hash": 1105459032, + "record": null, + "name": "builtin-2d-label|vs|fs", + "glsl3": { + "vert": "\nprecision highp float;\nuniform CCGlobal {\n mat4 cc_matView;\n mat4 cc_matViewInv;\n mat4 cc_matProj;\n mat4 cc_matProjInv;\n mat4 cc_matViewProj;\n mat4 cc_matViewProjInv;\n vec4 cc_cameraPos;\n vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_screenScale;\n};\nuniform CCLocal {\n mat4 cc_matWorld;\n mat4 cc_matWorldIT;\n};\nin vec3 a_position;\nin vec4 a_color;\nout vec4 v_color;\n#if USE_TEXTURE\nin vec2 a_uv0;\nout vec2 v_uv0;\n#endif\nvoid main () {\n vec4 pos = vec4(a_position, 1);\n #if CC_USE_MODEL\n pos = cc_matViewProj * cc_matWorld * pos;\n #else\n pos = cc_matViewProj * pos;\n #endif\n #if USE_TEXTURE\n v_uv0 = a_uv0;\n #endif\n v_color = a_color;\n gl_Position = pos;\n}", + "frag": "\n#if CC_SUPPORT_standard_derivatives\n #extension GL_OES_standard_derivatives : enable\n#endif\nprecision highp float;\n#if USE_ALPHA_TEST\n uniform ALPHA_TEST {\n float alphaThreshold;\n };\n#endif\nvoid ALPHA_TEST (in vec4 color) {\n #if USE_ALPHA_TEST\n if (color.a < alphaThreshold) discard;\n #endif\n}\nvoid ALPHA_TEST (in float alpha) {\n #if USE_ALPHA_TEST\n if (alpha < alphaThreshold) discard;\n #endif\n}\nin vec4 v_color;\n#if USE_TEXTURE\nin vec2 v_uv0;\nuniform sampler2D texture;\n#endif\n#if USE_SDF\nuniform Outline {\n vec4 outlineColor;\n float outlineSize;\n};\n#endif\nvoid main () {\n#if USE_SDF\n #if USE_TEXTURE_ALPHAONLY\n float dist = texture(texture, v_uv0).a;\n #else\n float dist = texture(texture, v_uv0).r;\n #endif\n #if USE_SDF_EXTEND\n const float EDGE_VALUE = 0.45;\n #else\n const float EDGE_VALUE = 0.5;\n #endif\n #if CC_SUPPORT_standard_derivatives\n float smoothing = fwidth(dist);\n #else\n float smoothing = 0.05;\n #endif\n float outEdge = EDGE_VALUE - outlineSize;\n float bg = smoothstep(outEdge - smoothing, outEdge, dist);\n float fg = smoothstep(EDGE_VALUE - smoothing, EDGE_VALUE, dist);\n vec4 fgColor = outlineColor * (1.0 - fg) + v_color * fg;\n gl_FragColor = vec4(fgColor.rgb, fgColor.a * bg);\n#else\n vec4 o = vec4(1, 1, 1, 1);\n #if USE_TEXTURE\n #if USE_TEXTURE_ALPHAONLY\n o.a *= texture(texture, v_uv0).a;\n #else\n o *= texture(texture, v_uv0);\n #endif\n #if CC_USE_ALPHA_ATLAS_TEXTURE\n o.a *= texture2D(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #endif\n o *= v_color;\n ALPHA_TEST(o);\n gl_FragColor = o;\n#endif\n}" + }, + "glsl1": { + "vert": "\nprecision highp float;\nuniform mat4 cc_matViewProj;\nuniform mat4 cc_matWorld;\nattribute vec3 a_position;\nattribute vec4 a_color;\nvarying vec4 v_color;\n#if USE_TEXTURE\nattribute vec2 a_uv0;\nvarying vec2 v_uv0;\n#endif\nvoid main () {\n vec4 pos = vec4(a_position, 1);\n #if CC_USE_MODEL\n pos = cc_matViewProj * cc_matWorld * pos;\n #else\n pos = cc_matViewProj * pos;\n #endif\n #if USE_TEXTURE\n v_uv0 = a_uv0;\n #endif\n v_color = a_color;\n gl_Position = pos;\n}", + "frag": "\n#if CC_SUPPORT_standard_derivatives\n #extension GL_OES_standard_derivatives : enable\n#endif\nprecision highp float;\n#if USE_ALPHA_TEST\n uniform float alphaThreshold;\n#endif\nvoid ALPHA_TEST (in vec4 color) {\n #if USE_ALPHA_TEST\n if (color.a < alphaThreshold) discard;\n #endif\n}\nvoid ALPHA_TEST (in float alpha) {\n #if USE_ALPHA_TEST\n if (alpha < alphaThreshold) discard;\n #endif\n}\nvarying vec4 v_color;\n#if USE_TEXTURE\nvarying vec2 v_uv0;\nuniform sampler2D texture;\n#endif\n#if USE_SDF\nuniform vec4 outlineColor;\nuniform float outlineSize;\n#endif\nvoid main () {\n#if USE_SDF\n #if USE_TEXTURE_ALPHAONLY\n float dist = texture2D(texture, v_uv0).a;\n #else\n float dist = texture2D(texture, v_uv0).r;\n #endif\n #if USE_SDF_EXTEND\n const float EDGE_VALUE = 0.45;\n #else\n const float EDGE_VALUE = 0.5;\n #endif\n #if CC_SUPPORT_standard_derivatives\n float smoothing = fwidth(dist);\n #else\n float smoothing = 0.05;\n #endif\n float outEdge = EDGE_VALUE - outlineSize;\n float bg = smoothstep(outEdge - smoothing, outEdge, dist);\n float fg = smoothstep(EDGE_VALUE - smoothing, EDGE_VALUE, dist);\n vec4 fgColor = outlineColor * (1.0 - fg) + v_color * fg;\n gl_FragColor = vec4(fgColor.rgb, fgColor.a * bg);\n#else\n vec4 o = vec4(1, 1, 1, 1);\n #if USE_TEXTURE\n #if USE_TEXTURE_ALPHAONLY\n o.a *= texture2D(texture, v_uv0).a;\n #else\n o *= texture2D(texture, v_uv0);\n #endif\n #if CC_USE_ALPHA_ATLAS_TEXTURE\n o.a *= texture2D(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #endif\n o *= v_color;\n ALPHA_TEST(o);\n gl_FragColor = o;\n#endif\n}" + }, + "builtins": { + "globals": { + "blocks": [ + { + "name": "CCGlobal", + "defines": [] + } + ], + "samplers": [] + }, + "locals": { + "blocks": [ + { + "name": "CCLocal", + "defines": [] + } + ], + "samplers": [] + } + }, + "defines": [ + { + "name": "USE_TEXTURE", + "type": "boolean", + "defines": [] + }, + { + "name": "CC_USE_MODEL", + "type": "boolean", + "defines": [] + }, + { + "name": "CC_SUPPORT_standard_derivatives", + "type": "boolean", + "defines": [] + }, + { + "name": "USE_ALPHA_TEST", + "type": "boolean", + "defines": [] + }, + { + "name": "USE_SDF", + "type": "boolean", + "defines": [] + }, + { + "name": "USE_TEXTURE_ALPHAONLY", + "type": "boolean", + "defines": [ + "USE_SDF" + ] + }, + { + "name": "USE_SDF_EXTEND", + "type": "boolean", + "defines": [ + "USE_SDF" + ] + }, + { + "name": "CC_USE_ALPHA_ATLAS_TEXTURE", + "type": "boolean", + "defines": [ + "USE_TEXTURE" + ] + } + ], + "blocks": [ + { + "name": "ALPHA_TEST", + "binding": 0, + "members": [ + { + "name": "alphaThreshold", + "type": 13, + "count": 1 + } + ], + "defines": [ + "USE_ALPHA_TEST" + ] + }, + { + "name": "Outline", + "binding": 1, + "members": [ + { + "name": "outlineColor", + "type": 16, + "count": 1 + }, + { + "name": "outlineSize", + "type": 13, + "count": 1 + } + ], + "defines": [ + "USE_SDF" + ] + } + ], + "samplers": [ + { + "name": "texture", + "type": 29, + "count": 1, + "binding": 30, + "defines": [ + "USE_TEXTURE" + ] + } + ] + } + ], + [ + { + "passes": [ + { + "program": "builtin-2d-label|vs|fs", + "blendState": { + "targets": [ + { + "blend": true + } + ] + }, + "rasterizerState": { + "cullMode": 0 + }, + "properties": { + "texture": { + "value": "white", + "type": 29 + }, + "alphaThreshold": { + "type": 13, + "value": [ + 0.5 + ] + }, + "outlineSize": { + "type": 13, + "value": [ + 0 + ] + }, + "outlineColor": { + "type": 16, + "value": [ + 1, + 1, + 1, + 1 + ] + } + } + } + ] + } + ] + ] + ], + 0, + 0, + [], + [], + [] + ] + ] +] \ No newline at end of file diff --git a/demo/web-desktop/assets/internal/index.8360b.js b/demo/web-desktop/assets/internal/index.8360b.js new file mode 100644 index 00000000..a4d827f4 --- /dev/null +++ b/demo/web-desktop/assets/internal/index.8360b.js @@ -0,0 +1,29 @@ +(function e(t, n, r) { + function s(o, u) { + if (!n[o]) { + if (!t[o]) { + var b = o.split("/"); + b = b[b.length - 1]; + if (!t[b]) { + var a = "function" == typeof __require && __require; + if (!u && a) return a(b, !0); + if (i) return i(b, !0); + throw new Error("Cannot find module '" + o + "'"); + } + o = b; + } + var f = n[o] = { + exports: {} + }; + t[o][0].call(f.exports, function(e) { + var n = t[o][1][e]; + return s(n || e); + }, f, f.exports, e, t, n, r); + } + return n[o].exports; + } + var i = "function" == typeof __require && __require; + for (var o = 0; o < r.length; o++) s(r[o]); + return s; +})({}, {}, []); +//# sourceMappingURL=index.js.map diff --git a/demo/web-desktop/assets/internal/index.js.map b/demo/web-desktop/assets/internal/index.js.map new file mode 100644 index 00000000..a6d01198 --- /dev/null +++ b/demo/web-desktop/assets/internal/index.js.map @@ -0,0 +1 @@ +{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"index.js"} \ No newline at end of file diff --git a/demo/web-desktop/assets/internal/native/02/0275e94c-56a7-410f-bd1a-fc7483f7d14a.cea68.png b/demo/web-desktop/assets/internal/native/02/0275e94c-56a7-410f-bd1a-fc7483f7d14a.cea68.png new file mode 100644 index 00000000..fa6376e6 Binary files /dev/null and b/demo/web-desktop/assets/internal/native/02/0275e94c-56a7-410f-bd1a-fc7483f7d14a.cea68.png differ diff --git a/demo/web-desktop/assets/main/config.fb25a.json b/demo/web-desktop/assets/main/config.fb25a.json new file mode 100644 index 00000000..b6dbdbde --- /dev/null +++ b/demo/web-desktop/assets/main/config.fb25a.json @@ -0,0 +1,55 @@ +{ + "paths": {}, + "uuids": [ + "catK9m3HRBtYgmebOjC6ma", + "ecpdLyjvZBwrvm+cedCcQy", + "a2MjXRFdtLlYQ5ouAFv/+R", + "5cO7kybDxGj4ipyMYdRYZB", + "5f5dyqtRNNxaFmVzYns6FZ", + "e3EaADwKFP+ZmDIVTeFF63", + "02delMVqdBD70a/HSD99FK", + "d608qFRoFHwbXd0Dap056i", + "61cyPdEfRN047sDK9rO0W5" + ], + "scenes": { + "db://assets/main.fire": "catK9m3HRBtYgmebOjC6ma" + }, + "redirect": [ + "ecpdLyjvZBwrvm+cedCcQy", + 0, + "02delMVqdBD70a/HSD99FK", + 0 + ], + "deps": [ + "internal" + ], + "packs": { + "0d90adf1f": [ + "5cO7kybDxGj4ipyMYdRYZB", + "5f5dyqtRNNxaFmVzYns6FZ", + "61cyPdEfRN047sDK9rO0W5", + "a2MjXRFdtLlYQ5ouAFv/+R", + "catK9m3HRBtYgmebOjC6ma", + "d608qFRoFHwbXd0Dap056i", + "e3EaADwKFP+ZmDIVTeFF63" + ] + }, + "name": "main", + "importBase": "import", + "nativeBase": "native", + "debug": true, + "isZip": false, + "encrypted": false, + "versions": { + "import": [ + "0d90adf1f", + "bd1b5" + ], + "native": [ + "61cyPdEfRN047sDK9rO0W5", + "6d707", + "d608qFRoFHwbXd0Dap056i", + "d55c2" + ] + } +} \ No newline at end of file diff --git a/demo/web-desktop/assets/main/import/0d/0d90adf1f.bd1b5.json b/demo/web-desktop/assets/main/import/0d/0d90adf1f.bd1b5.json new file mode 100644 index 00000000..1a4e33c8 --- /dev/null +++ b/demo/web-desktop/assets/main/import/0d/0d90adf1f.bd1b5.json @@ -0,0 +1,3338 @@ +[ + 1, + [ + "ecpdLyjvZBwrvm+cedCcQy", + "a2MjXRFdtLlYQ5ouAFv/+R", + "d608qFRoFHwbXd0Dap056i", + "61cyPdEfRN047sDK9rO0W5", + "02delMVqdBD70a/HSD99FK", + "5f5dyqtRNNxaFmVzYns6FZ", + "e3EaADwKFP+ZmDIVTeFF63", + "5cO7kybDxGj4ipyMYdRYZB" + ], + [ + "node", + "_spriteFrame", + "checkMark", + "_N$target", + "_textureSetter", + "root", + "_parent", + "version", + "mainArea", + "scene", + "_scrollView", + "asset", + "data" + ], + [ + [ + "cc.Node", + [ + "_name", + "_id", + "_opacity", + "_components", + "_contentSize", + "_parent", + "_trs", + "_children", + "_color", + "_prefab", + "_anchorPoint" + ], + 0, + 9, + 5, + 1, + 7, + 2, + 5, + 4, + 5 + ], + [ + "cc.Widget", + [ + "_alignFlags", + "_originalHeight", + "_left", + "_originalWidth", + "alignMode", + "_top", + "node" + ], + -3, + 1 + ], + [ + "cc.Node", + [ + "_name", + "_active", + "_parent", + "_components", + "_contentSize", + "_color", + "_trs", + "_children", + "_anchorPoint" + ], + 1, + 1, + 12, + 5, + 5, + 7, + 2, + 5 + ], + [ + "cc.Sprite", + [ + "_sizeMode", + "_type", + "_isTrimmedMode", + "node", + "_materials", + "_spriteFrame" + ], + 0, + 1, + 3, + 6 + ], + "cc.SpriteFrame", + [ + "cc.Label", + [ + "_string", + "_fontSize", + "_N$horizontalAlign", + "_N$verticalAlign", + "_N$cacheMode", + "_materials", + "_lineHeight", + "_N$overflow", + "node" + ], + -5, + 1 + ], + [ + "cc.PrefabInfo", + [ + "sync", + "fileId", + "root", + "asset" + ], + 1, + 1, + 6 + ], + "cc.Texture2D", + [ + "cc.Toggle", + [ + "zoomScale", + "_N$transition", + "_N$isChecked", + "node", + "_N$normalColor", + "_N$target", + "checkMark" + ], + 0, + 1, + 5, + 1, + 1 + ], + [ + "cc.SceneAsset", + [ + "_name", + "asyncLoadAssets" + ], + 1 + ], + [ + "cc.Node", + [ + "_name", + "_parent", + "_components", + "_contentSize", + "_anchorPoint" + ], + 2, + 1, + 2, + 5, + 5 + ], + [ + "cc.ToggleContainer", + [ + "node" + ], + 3, + 1 + ], + [ + "cc.Layout", + [ + "_resize", + "_N$layoutType", + "_N$paddingTop", + "node", + "_layoutSize" + ], + 0, + 1, + 5 + ], + [ + "cc.Canvas", + [ + "node", + "_designResolution" + ], + 3, + 1, + 5 + ], + [ + "2454fZB1jNNTbYkc7ryXmr1", + [ + "node", + "version" + ], + 3, + 1, + 1 + ], + [ + "853f5uyG5pFHpEaXeXta1ML", + [ + "node", + "home", + "multiMaterial", + "multiBatcher", + "charMode", + "highDPI", + "spineBatch", + "spineSkin", + "mainArea" + ], + 3, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1 + ], + [ + "cc.Scene", + [ + "_name", + "_children", + "_anchorPoint", + "_trs" + ], + 2, + 2, + 5, + 7 + ], + [ + "cc.Camera", + [ + "_clearFlags", + "_depth", + "node" + ], + 1, + 1 + ], + [ + "cc.Scrollbar", + [ + "_N$direction", + "node", + "_N$handle" + ], + 2, + 1, + 1 + ], + [ + "cc.ScrollView", + [ + "horizontal", + "brake", + "bounceDuration", + "_N$horizontalScrollBar", + "node", + "_N$content", + "_N$verticalScrollBar" + ], + -1, + 1, + 1, + 1 + ], + [ + "cc.Prefab", + [ + "_name" + ], + 2 + ] + ], + [ + [ + 1, + 0, + 3, + 1, + 6, + 4 + ], + [ + 1, + 0, + 6, + 2 + ], + [ + 3, + 0, + 3, + 4, + 5, + 2 + ], + [ + 5, + 0, + 1, + 2, + 3, + 4, + 5, + 8, + 7 + ], + [ + 1, + 0, + 3, + 6, + 3 + ], + [ + 0, + 0, + 5, + 7, + 3, + 4, + 6, + 2 + ], + [ + 0, + 0, + 5, + 3, + 4, + 2 + ], + [ + 0, + 0, + 5, + 3, + 8, + 4, + 2 + ], + [ + 3, + 0, + 3, + 4, + 2 + ], + [ + 2, + 0, + 1, + 2, + 3, + 5, + 4, + 3 + ], + [ + 8, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 4 + ], + [ + 0, + 0, + 5, + 3, + 8, + 4, + 6, + 2 + ], + [ + 1, + 0, + 2, + 6, + 3 + ], + [ + 0, + 0, + 2, + 5, + 3, + 8, + 4, + 6, + 3 + ], + [ + 5, + 0, + 1, + 6, + 2, + 3, + 7, + 4, + 5, + 8, + 9 + ], + [ + 9, + 0, + 1, + 3 + ], + [ + 0, + 0, + 7, + 3, + 4, + 10, + 6, + 2 + ], + [ + 0, + 0, + 1, + 7, + 3, + 4, + 6, + 3 + ], + [ + 0, + 0, + 5, + 7, + 3, + 4, + 2 + ], + [ + 0, + 0, + 5, + 9, + 2 + ], + [ + 0, + 0, + 7, + 3, + 9, + 4, + 6, + 2 + ], + [ + 0, + 0, + 5, + 3, + 9, + 8, + 4, + 6, + 2 + ], + [ + 2, + 0, + 2, + 7, + 3, + 5, + 4, + 6, + 2 + ], + [ + 2, + 0, + 2, + 7, + 3, + 4, + 8, + 6, + 2 + ], + [ + 2, + 0, + 2, + 3, + 5, + 4, + 6, + 2 + ], + [ + 2, + 0, + 2, + 3, + 5, + 4, + 2 + ], + [ + 10, + 0, + 1, + 2, + 3, + 4, + 2 + ], + [ + 11, + 0, + 1 + ], + [ + 12, + 0, + 1, + 2, + 3, + 4, + 4 + ], + [ + 1, + 0, + 1, + 6, + 3 + ], + [ + 1, + 4, + 0, + 2, + 1, + 6, + 5 + ], + [ + 1, + 0, + 2, + 5, + 6, + 4 + ], + [ + 8, + 0, + 1, + 3, + 4, + 5, + 6, + 3 + ], + [ + 13, + 0, + 1, + 1 + ], + [ + 14, + 0, + 1, + 1 + ], + [ + 3, + 0, + 2, + 3, + 4, + 5, + 3 + ], + [ + 3, + 1, + 0, + 3, + 4, + 5, + 3 + ], + [ + 3, + 1, + 0, + 3, + 4, + 3 + ], + [ + 15, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 1 + ], + [ + 5, + 0, + 1, + 6, + 2, + 3, + 4, + 5, + 8, + 8 + ], + [ + 16, + 0, + 1, + 2, + 3, + 2 + ], + [ + 17, + 0, + 1, + 2, + 3 + ], + [ + 18, + 0, + 1, + 2, + 2 + ], + [ + 19, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 5 + ], + [ + 6, + 0, + 2, + 3, + 2 + ], + [ + 6, + 2, + 1 + ], + [ + 6, + 1, + 2, + 2 + ], + [ + 20, + 0, + 2 + ] + ], + [ + [ + [ + { + "name": "default_scrollbar_vertical", + "rect": [ + 0, + 0, + 15, + 30 + ], + "offset": [ + 0, + 0 + ], + "originalSize": [ + 15, + 30 + ], + "capInsets": [ + 4, + 10, + 4, + 10 + ] + } + ], + [ + 4 + ], + 0, + [ + 0 + ], + [ + 4 + ], + [ + 2 + ] + ], + [ + [ + { + "name": "default_scrollbar_vertical_bg", + "rect": [ + 0, + 0, + 15, + 30 + ], + "offset": [ + 0, + 0 + ], + "originalSize": [ + 15, + 30 + ], + "capInsets": [ + 4, + 10, + 4, + 10 + ] + } + ], + [ + 4 + ], + 0, + [ + 0 + ], + [ + 4 + ], + [ + 3 + ] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,1", + -1 + ], + [ + 7 + ], + 0, + [], + [], + [] + ], + [ + [ + { + "name": "default_sprite_splash", + "rect": [ + 0, + 0, + 2, + 2 + ], + "offset": [ + 0, + 0 + ], + "originalSize": [ + 2, + 2 + ], + "capInsets": [ + 0, + 0, + 0, + 0 + ] + } + ], + [ + 4 + ], + 0, + [ + 0 + ], + [ + 4 + ], + [ + 4 + ] + ], + [ + [ + [ + 15, + "main", + null + ], + [ + 16, + "content", + [ + -4, + -5, + -6, + -7, + -8, + -9, + -10, + -11, + -12, + -13, + -14, + -15, + -16, + -17, + -18 + ], + [ + [ + 27, + -1 + ], + [ + 28, + 1, + 2, + 10, + -2, + [ + 5, + 240, + 555 + ] + ], + [ + 4, + 41, + 220, + -3 + ] + ], + [ + 5, + 240, + 555 + ], + [ + 0, + 0.5, + 1 + ], + [ + 0, + 300, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 5, + "home", + 1, + [ + -23, + -24, + -25 + ], + [ + [ + 32, + 0.97, + 3, + -21, + [ + 4, + 4292269782 + ], + -20, + -19 + ], + [ + 4, + 40, + 200, + -22 + ] + ], + [ + 5, + 240, + 50 + ], + [ + 0, + -107, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0 + ] + ], + [ + 5, + "multi-render-material", + 1, + [ + -30, + -31, + -32 + ], + [ + [ + 10, + 0.97, + 3, + false, + -28, + [ + 4, + 4292269782 + ], + -27, + -26 + ], + [ + 4, + 40, + 200, + -29 + ] + ], + [ + 5, + 240, + 50 + ], + [ + 0, + -197, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0 + ] + ], + [ + 5, + "multi-render-batcher", + 1, + [ + -37, + -38, + -39 + ], + [ + [ + 10, + 0.97, + 3, + false, + -35, + [ + 4, + 4292269782 + ], + -34, + -33 + ], + [ + 4, + 40, + 200, + -36 + ] + ], + [ + 5, + 240, + 50 + ], + [ + 0, + -248, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0 + ] + ], + [ + 5, + "char-mode", + 1, + [ + -44, + -45, + -46 + ], + [ + [ + 10, + 0.97, + 3, + false, + -42, + [ + 4, + 4292269782 + ], + -41, + -40 + ], + [ + 4, + 40, + 200, + -43 + ] + ], + [ + 5, + 240, + 50 + ], + [ + 0, + -338, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0 + ] + ], + [ + 5, + "high-dpi", + 1, + [ + -51, + -52, + -53 + ], + [ + [ + 10, + 0.97, + 3, + false, + -49, + [ + 4, + 4292269782 + ], + -48, + -47 + ], + [ + 4, + 40, + 200, + -50 + ] + ], + [ + 5, + 240, + 50 + ], + [ + 0, + -389, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0 + ] + ], + [ + 5, + "spine-batch", + 1, + [ + -58, + -59, + -60 + ], + [ + [ + 10, + 0.97, + 3, + false, + -56, + [ + 4, + 4292269782 + ], + -55, + -54 + ], + [ + 4, + 40, + 200, + -57 + ] + ], + [ + 5, + 240, + 50 + ], + [ + 0, + -479, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0 + ] + ], + [ + 5, + "spine-skin", + 1, + [ + -65, + -66, + -67 + ], + [ + [ + 10, + 0.97, + 3, + false, + -63, + [ + 4, + 4292269782 + ], + -62, + -61 + ], + [ + 4, + 40, + 200, + -64 + ] + ], + [ + 5, + 240, + 50 + ], + [ + 0, + -530, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0 + ] + ], + [ + 17, + "Canvas", + "a5esZu+45LA5mBpvttspPD", + [ + -72, + -73, + -74 + ], + [ + [ + 33, + -68, + [ + 5, + 960, + 600 + ] + ], + [ + 1, + 45, + -69 + ], + [ + 34, + -71, + -70 + ] + ], + [ + 5, + 960, + 600 + ], + [ + 480, + 300, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 22, + "left-area", + 9, + [ + -80, + -81 + ], + [ + [ + -75, + [ + 29, + 13, + 250, + -76 + ], + [ + 35, + 0, + false, + -77, + [ + 30 + ], + 31 + ], + [ + 38, + -79, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + -78 + ] + ], + 1, + 4, + 4, + 4 + ], + [ + 4, + 4279834905 + ], + [ + 5, + 240, + 600 + ], + [ + -360, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 23, + "scrollBar", + 10, + [ + -85 + ], + [ + [ + -82, + [ + 30, + 0, + 37, + 350.07654921020657, + 237, + -83 + ], + [ + 36, + 1, + 0, + -84, + [ + 28 + ], + 29 + ] + ], + 1, + 4, + 4 + ], + [ + 5, + 8, + 600 + ], + [ + 0, + 1, + 0.5 + ], + [ + 120, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 5, + "main-area", + 9, + [ + -87 + ], + [ + [ + 1, + 37, + -86 + ] + ], + [ + 5, + 720, + 600 + ], + [ + 120, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 18, + "view", + 10, + [ + 1 + ], + [ + [ + 0, + 45, + 240, + 250, + -88 + ] + ], + [ + 5, + 240, + 600 + ] + ], + [ + 11, + "cat", + 1, + [ + [ + 14, + "- Cocos Service Pack Demo -", + 14, + 16, + 1, + 1, + 1, + 2, + [ + null + ], + -89 + ], + [ + 12, + 16, + 20, + -90 + ] + ], + [ + 4, + 4287401100 + ], + [ + 5, + 230.365, + 40 + ], + [ + 0, + -30, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 24, + "cat", + 1, + [ + [ + -91, + [ + 4, + 40, + 200.135, + -92 + ] + ], + 1, + 4 + ], + [ + 4, + 4287401100 + ], + [ + 5, + 240, + 32 + ], + [ + 0, + -66, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 7, + "bg", + 2, + [ + [ + 2, + 0, + -93, + [ + 0 + ], + 1 + ], + [ + 0, + 45, + 100, + 100, + -94 + ] + ], + [ + 4, + 4281348144 + ], + [ + 5, + 240, + 50 + ] + ], + [ + 25, + "check", + 2, + [ + [ + -95, + [ + 0, + 45, + 100, + 100, + -96 + ] + ], + 1, + 4 + ], + [ + 4, + 4283058762 + ], + [ + 5, + 240, + 50 + ] + ], + [ + 6, + "text", + 2, + [ + [ + 3, + "首页", + 16, + 1, + 1, + 2, + [ + null + ], + -97 + ], + [ + 1, + 18, + -98 + ] + ], + [ + 5, + 32, + 40 + ] + ], + [ + 11, + "cat", + 1, + [ + [ + 3, + "- 多纹理渲染 -", + 14, + 1, + 1, + 2, + [ + null + ], + -99 + ], + [ + 12, + 16, + 20, + -100 + ] + ], + [ + 4, + 4287401100 + ], + [ + 5, + 87.1, + 40 + ], + [ + 0, + -152, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 7, + "bg", + 3, + [ + [ + 2, + 0, + -101, + [ + 3 + ], + 4 + ], + [ + 0, + 45, + 100, + 100, + -102 + ] + ], + [ + 4, + 4281348144 + ], + [ + 5, + 240, + 50 + ] + ], + [ + 9, + "check", + false, + 3, + [ + [ + -103, + [ + 0, + 45, + 100, + 100, + -104 + ] + ], + 1, + 4 + ], + [ + 4, + 4283058762 + ], + [ + 5, + 240, + 50 + ] + ], + [ + 6, + "text", + 3, + [ + [ + 3, + "多纹理材质", + 16, + 1, + 1, + 2, + [ + null + ], + -105 + ], + [ + 1, + 18, + -106 + ] + ], + [ + 5, + 80, + 40 + ] + ], + [ + 7, + "bg", + 4, + [ + [ + 2, + 0, + -107, + [ + 8 + ], + 9 + ], + [ + 0, + 45, + 100, + 100, + -108 + ] + ], + [ + 4, + 4281348144 + ], + [ + 5, + 240, + 50 + ] + ], + [ + 9, + "check", + false, + 4, + [ + [ + -109, + [ + 0, + 45, + 100, + 100, + -110 + ] + ], + 1, + 4 + ], + [ + 4, + 4283058762 + ], + [ + 5, + 240, + 50 + ] + ], + [ + 6, + "text", + 4, + [ + [ + 3, + "多纹理合批", + 16, + 1, + 1, + 2, + [ + null + ], + -111 + ], + [ + 1, + 18, + -112 + ] + ], + [ + 5, + 80, + 40 + ] + ], + [ + 11, + "cat", + 1, + [ + [ + 3, + "- 文本渲染 -", + 14, + 1, + 1, + 2, + [ + null + ], + -113 + ], + [ + 12, + 16, + 20, + -114 + ] + ], + [ + 4, + 4287401100 + ], + [ + 5, + 73.1, + 40 + ], + [ + 0, + -293, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 7, + "bg", + 5, + [ + [ + 2, + 0, + -115, + [ + 11 + ], + 12 + ], + [ + 0, + 45, + 100, + 100, + -116 + ] + ], + [ + 4, + 4281348144 + ], + [ + 5, + 240, + 50 + ] + ], + [ + 9, + "check", + false, + 5, + [ + [ + -117, + [ + 0, + 45, + 100, + 100, + -118 + ] + ], + 1, + 4 + ], + [ + 4, + 4283058762 + ], + [ + 5, + 240, + 50 + ] + ], + [ + 6, + "text", + 5, + [ + [ + 3, + "新的 Char 缓存模式", + 16, + 1, + 1, + 2, + [ + null + ], + -119 + ], + [ + 1, + 18, + -120 + ] + ], + [ + 5, + 139.575, + 40 + ] + ], + [ + 7, + "bg", + 6, + [ + [ + 2, + 0, + -121, + [ + 16 + ], + 17 + ], + [ + 0, + 45, + 100, + 100, + -122 + ] + ], + [ + 4, + 4281348144 + ], + [ + 5, + 240, + 50 + ] + ], + [ + 9, + "check", + false, + 6, + [ + [ + -123, + [ + 0, + 45, + 100, + 100, + -124 + ] + ], + 1, + 4 + ], + [ + 4, + 4283058762 + ], + [ + 5, + 240, + 50 + ] + ], + [ + 6, + "text", + 6, + [ + [ + 3, + "高 DPI 支持", + 16, + 1, + 1, + 2, + [ + null + ], + -125 + ], + [ + 1, + 18, + -126 + ] + ], + [ + 5, + 83.56, + 40 + ] + ], + [ + 11, + "cat", + 1, + [ + [ + 3, + "- Spine 增强 -", + 14, + 1, + 1, + 2, + [ + null + ], + -127 + ], + [ + 12, + 16, + 20, + -128 + ] + ], + [ + 4, + 4287401100 + ], + [ + 5, + 84.795, + 40 + ], + [ + 0, + -434, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 7, + "bg", + 7, + [ + [ + 2, + 0, + -129, + [ + 19 + ], + 20 + ], + [ + 0, + 45, + 100, + 100, + -130 + ] + ], + [ + 4, + 4281348144 + ], + [ + 5, + 240, + 50 + ] + ], + [ + 9, + "check", + false, + 7, + [ + [ + -131, + [ + 0, + 45, + 100, + 100, + -132 + ] + ], + 1, + 4 + ], + [ + 4, + 4283058762 + ], + [ + 5, + 240, + 50 + ] + ], + [ + 6, + "text", + 7, + [ + [ + 3, + "动态合图", + 16, + 1, + 1, + 2, + [ + null + ], + -133 + ], + [ + 1, + 18, + -134 + ] + ], + [ + 5, + 64, + 40 + ] + ], + [ + 7, + "bg", + 8, + [ + [ + 2, + 0, + -135, + [ + 24 + ], + 25 + ], + [ + 0, + 45, + 100, + 100, + -136 + ] + ], + [ + 4, + 4281348144 + ], + [ + 5, + 240, + 50 + ] + ], + [ + 9, + "check", + false, + 8, + [ + [ + -137, + [ + 0, + 45, + 100, + 100, + -138 + ] + ], + 1, + 4 + ], + [ + 4, + 4283058762 + ], + [ + 5, + 240, + 50 + ] + ], + [ + 6, + "text", + 8, + [ + [ + 3, + "SpriteFrame 换装", + 16, + 1, + 1, + 2, + [ + null + ], + -139 + ], + [ + 1, + 18, + -140 + ] + ], + [ + 5, + 124.48, + 40 + ] + ], + [ + 40, + "New Node", + [ + 9 + ], + [ + 0, + 0, + 0 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 6, + "Main Camera", + 9, + [ + [ + 41, + 7, + -1, + -141 + ] + ], + [ + 5, + 960, + 640 + ] + ], + [ + 14, + "Version: v1.0.0\n", + 14, + 16, + 1, + 1, + 3, + 2, + [ + null + ], + 15 + ], + [ + 8, + 0, + 17, + [ + 2 + ] + ], + [ + 8, + 0, + 21, + [ + 5 + ] + ], + [ + 13, + "line", + 150, + 1, + [ + [ + 2, + 0, + -142, + [ + 6 + ], + 7 + ] + ], + [ + 4, + 4278190080 + ], + [ + 5, + 240, + 1 + ], + [ + 0, + -222.5, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 8, + 0, + 24, + [ + 10 + ] + ], + [ + 8, + 0, + 28, + [ + 13 + ] + ], + [ + 13, + "line", + 150, + 1, + [ + [ + 2, + 0, + -143, + [ + 14 + ], + 15 + ] + ], + [ + 4, + 4278190080 + ], + [ + 5, + 240, + 1 + ], + [ + 0, + -363.5, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 8, + 0, + 31, + [ + 18 + ] + ], + [ + 8, + 0, + 35, + [ + 21 + ] + ], + [ + 13, + "line", + 150, + 1, + [ + [ + 2, + 0, + -144, + [ + 22 + ], + 23 + ] + ], + [ + 4, + 4278190080 + ], + [ + 5, + 240, + 1 + ], + [ + 0, + -504.5, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 8, + 0, + 38, + [ + 26 + ] + ], + [ + 26, + "bar", + 11, + [ + -145 + ], + [ + 5, + 8, + 30 + ], + [ + 0, + 1, + 0 + ] + ], + [ + 37, + 1, + 0, + 53, + [ + 27 + ] + ], + [ + 42, + 1, + 11, + 54 + ], + [ + 43, + false, + 0.75, + 0.23, + null, + 10, + 1, + 55 + ], + [ + 19, + "home", + 12, + [ + 44, + true, + -146, + 32 + ] + ] + ], + 0, + [ + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + -1, + 14, + 0, + -2, + 15, + 0, + -3, + 2, + 0, + -4, + 19, + 0, + -5, + 3, + 0, + -6, + 45, + 0, + -7, + 4, + 0, + -8, + 26, + 0, + -9, + 5, + 0, + -10, + 48, + 0, + -11, + 6, + 0, + -12, + 33, + 0, + -13, + 7, + 0, + -14, + 51, + 0, + -15, + 8, + 0, + 2, + 43, + 0, + 3, + 2, + 0, + 0, + 2, + 0, + 0, + 2, + 0, + -1, + 16, + 0, + -2, + 17, + 0, + -3, + 18, + 0, + 2, + 44, + 0, + 3, + 3, + 0, + 0, + 3, + 0, + 0, + 3, + 0, + -1, + 20, + 0, + -2, + 21, + 0, + -3, + 22, + 0, + 2, + 46, + 0, + 3, + 4, + 0, + 0, + 4, + 0, + 0, + 4, + 0, + -1, + 23, + 0, + -2, + 24, + 0, + -3, + 25, + 0, + 2, + 47, + 0, + 3, + 5, + 0, + 0, + 5, + 0, + 0, + 5, + 0, + -1, + 27, + 0, + -2, + 28, + 0, + -3, + 29, + 0, + 2, + 49, + 0, + 3, + 6, + 0, + 0, + 6, + 0, + 0, + 6, + 0, + -1, + 30, + 0, + -2, + 31, + 0, + -3, + 32, + 0, + 2, + 50, + 0, + 3, + 7, + 0, + 0, + 7, + 0, + 0, + 7, + 0, + -1, + 34, + 0, + -2, + 35, + 0, + -3, + 36, + 0, + 2, + 52, + 0, + 3, + 8, + 0, + 0, + 8, + 0, + 0, + 8, + 0, + -1, + 37, + 0, + -2, + 38, + 0, + -3, + 39, + 0, + 0, + 9, + 0, + 0, + 9, + 0, + 7, + 42, + 0, + 0, + 9, + 0, + -1, + 41, + 0, + -2, + 10, + 0, + -3, + 12, + 0, + -1, + 56, + 0, + 0, + 10, + 0, + 0, + 10, + 0, + 8, + 12, + 0, + 0, + 10, + 0, + -1, + 13, + 0, + -2, + 11, + 0, + -1, + 55, + 0, + 0, + 11, + 0, + 0, + 11, + 0, + -1, + 53, + 0, + 0, + 12, + 0, + -1, + 57, + 0, + 0, + 13, + 0, + 0, + 14, + 0, + 0, + 14, + 0, + -1, + 42, + 0, + 0, + 15, + 0, + 0, + 16, + 0, + 0, + 16, + 0, + -1, + 43, + 0, + 0, + 17, + 0, + 0, + 18, + 0, + 0, + 18, + 0, + 0, + 19, + 0, + 0, + 19, + 0, + 0, + 20, + 0, + 0, + 20, + 0, + -1, + 44, + 0, + 0, + 21, + 0, + 0, + 22, + 0, + 0, + 22, + 0, + 0, + 23, + 0, + 0, + 23, + 0, + -1, + 46, + 0, + 0, + 24, + 0, + 0, + 25, + 0, + 0, + 25, + 0, + 0, + 26, + 0, + 0, + 26, + 0, + 0, + 27, + 0, + 0, + 27, + 0, + -1, + 47, + 0, + 0, + 28, + 0, + 0, + 29, + 0, + 0, + 29, + 0, + 0, + 30, + 0, + 0, + 30, + 0, + -1, + 49, + 0, + 0, + 31, + 0, + 0, + 32, + 0, + 0, + 32, + 0, + 0, + 33, + 0, + 0, + 33, + 0, + 0, + 34, + 0, + 0, + 34, + 0, + -1, + 50, + 0, + 0, + 35, + 0, + 0, + 36, + 0, + 0, + 36, + 0, + 0, + 37, + 0, + 0, + 37, + 0, + -1, + 52, + 0, + 0, + 38, + 0, + 0, + 39, + 0, + 0, + 39, + 0, + 0, + 41, + 0, + 0, + 45, + 0, + 0, + 48, + 0, + 0, + 51, + 0, + -1, + 54, + 0, + 5, + 57, + 0, + 9, + 40, + 1, + 6, + 13, + 9, + 6, + 40, + 55, + 10, + 56, + 146 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 43, + 44, + 46, + 47, + 49, + 50, + 52, + 54 + ], + [ + -1, + 1, + -1, + -1, + 1, + -1, + -1, + 1, + -1, + 1, + -1, + -1, + 1, + -1, + -1, + 1, + -1, + 1, + -1, + -1, + 1, + -1, + -1, + 1, + -1, + 1, + -1, + -1, + -1, + 1, + -1, + 1, + 11, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 1 + ], + [ + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 1, + 0, + 0, + 1, + 0, + 1, + 0, + 0, + 0, + 5, + 0, + 1, + 6, + 1, + 1, + 1, + 1, + 1, + 1, + 1, + 7 + ] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,1", + -1 + ], + [ + 7 + ], + 0, + [], + [], + [] + ], + [ + [ + [ + 47, + "home" + ], + [ + 20, + "home", + [ + -3 + ], + [ + [ + 1, + 45, + -2 + ] + ], + [ + 45, + -1 + ], + [ + 5, + 960, + 600 + ], + [ + 480, + 300, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 21, + "tips", + 1, + [ + [ + 39, + "源码:https://github.com/smallmain/cocos-service-pack/tree/master/demo", + 16, + 20, + 1, + 1, + 2, + [ + null + ], + -4 + ], + [ + 31, + 17, + 95.11500000000001, + 549.6320000000001, + -5 + ] + ], + [ + 46, + "60yhtKNmhJBa7a+vJD0YMi", + 1 + ], + [ + 4, + 4286611584 + ], + [ + 5, + 522.005, + 20 + ], + [ + 0, + -259.63200000000006, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ] + ], + 0, + [ + 0, + 5, + 1, + 0, + 0, + 1, + 0, + -1, + 2, + 0, + 0, + 2, + 0, + 0, + 2, + 0, + 12, + 1, + 5 + ], + [], + [], + [] + ] + ] +] \ No newline at end of file diff --git a/demo/web-desktop/assets/main/index.fb25a.js b/demo/web-desktop/assets/main/index.fb25a.js new file mode 100644 index 00000000..f32603dc --- /dev/null +++ b/demo/web-desktop/assets/main/index.fb25a.js @@ -0,0 +1,233 @@ +window.__require = function e(t, n, r) { + function s(o, u) { + if (!n[o]) { + if (!t[o]) { + var b = o.split("/"); + b = b[b.length - 1]; + if (!t[b]) { + var a = "function" == typeof __require && __require; + if (!u && a) return a(b, !0); + if (i) return i(b, !0); + throw new Error("Cannot find module '" + o + "'"); + } + o = b; + } + var f = n[o] = { + exports: {} + }; + t[o][0].call(f.exports, function(e) { + var n = t[o][1][e]; + return s(n || e); + }, f, f.exports, e, t, n, r); + } + return n[o].exports; + } + var i = "function" == typeof __require && __require; + for (var o = 0; o < r.length; o++) s(r[o]); + return s; +}({ + "left-area": [ function(require, module, exports) { + "use strict"; + cc._RF.push(module, "853f5uyG5pFHpEaXeXta1ML", "left-area"); + "use strict"; + var __extends = this && this.__extends || function() { + var extendStatics = function(d, b) { + extendStatics = Object.setPrototypeOf || { + __proto__: [] + } instanceof Array && function(d, b) { + d.__proto__ = b; + } || function(d, b) { + for (var p in b) Object.prototype.hasOwnProperty.call(b, p) && (d[p] = b[p]); + }; + return extendStatics(d, b); + }; + return function(d, b) { + extendStatics(d, b); + function __() { + this.constructor = d; + } + d.prototype = null === b ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + }(); + var __decorate = this && this.__decorate || function(decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if ("object" === typeof Reflect && "function" === typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r); + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + var __values = this && this.__values || function(o) { + var s = "function" === typeof Symbol && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && "number" === typeof o.length) return { + next: function() { + o && i >= o.length && (o = void 0); + return { + value: o && o[i++], + done: !o + }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + var __read = this && this.__read || function(o, n) { + var m = "function" === typeof Symbol && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((void 0 === n || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } catch (error) { + e = { + error: error + }; + } finally { + try { + r && !r.done && (m = i["return"]) && m.call(i); + } finally { + if (e) throw e.error; + } + } + return ar; + }; + Object.defineProperty(exports, "__esModule", { + value: true + }); + var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property; + var LeftArea = function(_super) { + __extends(LeftArea, _super); + function LeftArea() { + var _this = null !== _super && _super.apply(this, arguments) || this; + _this.home = null; + _this.multiMaterial = null; + _this.multiBatcher = null; + _this.charMode = null; + _this.highDPI = null; + _this.spineBatch = null; + _this.spineSkin = null; + _this.mainArea = null; + _this.tick = 0; + return _this; + } + LeftArea.prototype.start = function() { + this.map = new Map([ [ this.home, { + bundle: "home", + path: "home" + } ], [ this.multiMaterial, { + bundle: "multi-render", + path: "multi-material/multi-material" + } ], [ this.multiBatcher, { + bundle: "multi-render", + path: "multi-batcher/multi-batcher" + } ], [ this.charMode, { + bundle: "text-render", + path: "char-mode/char-mode" + } ], [ this.highDPI, { + bundle: "text-render", + path: "high-dpi/high-dpi" + } ], [ this.spineBatch, { + bundle: "spine", + path: "batch/spine-batch" + } ], [ this.spineSkin, { + bundle: "spine", + path: "skin/spine-skin" + } ] ]); + this.initBtns(); + }; + LeftArea.prototype.initBtns = function() { + var e_1, _a; + var _this = this; + var _loop_1 = function(node, route) { + node.on("toggle", function(toggle) { + if (toggle.isChecked) { + var cur_1 = ++_this.tick; + _this.mainArea.destroyAllChildren(); + route && cc.assetManager.loadBundle(route.bundle, function(err, bundle) { + err || bundle.load(route.path, cc.Prefab, function(err, prefab) { + err || cur_1 !== _this.tick || _this.mainArea.addChild(cc.instantiate(prefab)); + }); + }); + } + }); + }; + try { + for (var _b = __values(this.map), _c = _b.next(); !_c.done; _c = _b.next()) { + var _d = __read(_c.value, 2), node = _d[0], route = _d[1]; + _loop_1(node, route); + } + } catch (e_1_1) { + e_1 = { + error: e_1_1 + }; + } finally { + try { + _c && !_c.done && (_a = _b.return) && _a.call(_b); + } finally { + if (e_1) throw e_1.error; + } + } + }; + __decorate([ property(cc.Node) ], LeftArea.prototype, "home", void 0); + __decorate([ property(cc.Node) ], LeftArea.prototype, "multiMaterial", void 0); + __decorate([ property(cc.Node) ], LeftArea.prototype, "multiBatcher", void 0); + __decorate([ property(cc.Node) ], LeftArea.prototype, "charMode", void 0); + __decorate([ property(cc.Node) ], LeftArea.prototype, "highDPI", void 0); + __decorate([ property(cc.Node) ], LeftArea.prototype, "spineBatch", void 0); + __decorate([ property(cc.Node) ], LeftArea.prototype, "spineSkin", void 0); + __decorate([ property(cc.Node) ], LeftArea.prototype, "mainArea", void 0); + LeftArea = __decorate([ ccclass ], LeftArea); + return LeftArea; + }(cc.Component); + exports.default = LeftArea; + cc._RF.pop(); + }, {} ], + main: [ function(require, module, exports) { + "use strict"; + cc._RF.push(module, "2454fZB1jNNTbYkc7ryXmr1", "main"); + "use strict"; + var __extends = this && this.__extends || function() { + var extendStatics = function(d, b) { + extendStatics = Object.setPrototypeOf || { + __proto__: [] + } instanceof Array && function(d, b) { + d.__proto__ = b; + } || function(d, b) { + for (var p in b) Object.prototype.hasOwnProperty.call(b, p) && (d[p] = b[p]); + }; + return extendStatics(d, b); + }; + return function(d, b) { + extendStatics(d, b); + function __() { + this.constructor = d; + } + d.prototype = null === b ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + }(); + var __decorate = this && this.__decorate || function(decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if ("object" === typeof Reflect && "function" === typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r); + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + Object.defineProperty(exports, "__esModule", { + value: true + }); + var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property; + var Main = function(_super) { + __extends(Main, _super); + function Main() { + var _this = null !== _super && _super.apply(this, arguments) || this; + _this.version = null; + return _this; + } + Main.prototype.start = function() { + this.version.string = "Version: v" + cc.sp.version + "\n"; + }; + __decorate([ property(cc.Label) ], Main.prototype, "version", void 0); + Main = __decorate([ ccclass ], Main); + return Main; + }(cc.Component); + exports.default = Main; + cc.sp.labelRetinaScale = 2; + cc.dynamicAtlasManager.maxFrameSize = 2048; + cc._RF.pop(); + }, {} ] +}, {}, [ "left-area", "main" ]); +//# sourceMappingURL=index.js.map diff --git a/demo/web-desktop/assets/main/index.js.map b/demo/web-desktop/assets/main/index.js.map new file mode 100644 index 00000000..e051f156 --- /dev/null +++ b/demo/web-desktop/assets/main/index.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["assets/left-area.ts","assets/main.ts"],"names":["_a","cc","_decorator","ccclass","property","LeftArea","_super","__extends","_this","apply","this","arguments","home","multiMaterial","multiBatcher","charMode","highDPI","spineBatch","spineSkin","mainArea","tick","prototype","start","map","Map","bundle","path","initBtns","_loop_1","node","route","on","toggle","isChecked","cur_1","destroyAllChildren","assetManager","loadBundle","err","load","Prefab","prefab","addChild","instantiate","_b","__values","_c","next","done","_d","__read","value","__decorate","Node","Component","exports","default","Main","version","string","sp","Label","labelRetinaScale","dynamicAtlasManager","maxFrameSize"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAM,IAAAA,KAAAC,GAAAC,YAAAC,UAAAH,GAAAG,SAAAC,WAAAJ,GAAAI;IAGN,IAAAC,WAAA,SAAAC;MAAsCC,UAAAF,UAAAC;MAAtC,SAAAD;QAAA,IAAAG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AA;KAVA,CAAAxD,GAAAqD;IAAqBC,QAAAC,UAAAC;IAarBxD,GAAA2D,GAAAE,mBAAA;IACA7D,GAAA8D,oBAAAC,eAAA","sourcesContent":["const { ccclass, property } = cc._decorator;\n\n@ccclass\nexport default class LeftArea extends cc.Component {\n\n @property(cc.Node)\n home: cc.Node = null;\n\n @property(cc.Node)\n multiMaterial: cc.Node = null;\n\n @property(cc.Node)\n multiBatcher: cc.Node = null;\n\n @property(cc.Node)\n charMode: cc.Node = null;\n\n @property(cc.Node)\n highDPI: cc.Node = null;\n\n @property(cc.Node)\n spineBatch: cc.Node = null;\n\n @property(cc.Node)\n spineSkin: cc.Node = null;\n\n @property(cc.Node)\n mainArea: cc.Node = null;\n\n tick = 0;\n\n map: Map\n\n\n start() {\n this.map = new Map([\n\n [this.home, {\n bundle: \"home\",\n path: \"home\",\n }],\n\n [this.multiMaterial, {\n bundle: \"multi-render\",\n path: \"multi-material/multi-material\",\n }],\n\n [this.multiBatcher, {\n bundle: \"multi-render\",\n path: \"multi-batcher/multi-batcher\",\n }],\n\n [this.charMode, {\n bundle: \"text-render\",\n path: \"char-mode/char-mode\",\n }],\n\n [this.highDPI, {\n bundle: \"text-render\",\n path: \"high-dpi/high-dpi\",\n }],\n\n [this.spineBatch, {\n bundle: \"spine\",\n path: \"batch/spine-batch\",\n }],\n\n [this.spineSkin, {\n bundle: \"spine\",\n path: \"skin/spine-skin\",\n }],\n\n ]);\n\n this.initBtns();\n }\n\n\n initBtns() {\n for (const [node, route] of this.map) {\n node.on('toggle', (toggle: cc.Toggle) => {\n if (toggle.isChecked) {\n const cur = ++this.tick;\n\n this.mainArea.destroyAllChildren();\n\n if (route) {\n cc.assetManager.loadBundle(route.bundle, (err, bundle) => {\n if (!err) {\n bundle.load(route.path, cc.Prefab, (err, prefab: cc.Prefab) => {\n if (!err && cur === this.tick) {\n this.mainArea.addChild(cc.instantiate(prefab));\n }\n });\n }\n });\n }\n }\n });\n }\n }\n\n}\n","const { ccclass, property } = cc._decorator;\n\n@ccclass\nexport default class Main extends cc.Component {\n\n @property(cc.Label)\n version: cc.Label = null;\n\n\n protected start(): void {\n this.version.string = `Version: v${cc.sp.version}\\n`;\n }\n\n}\n\n\ncc.sp.labelRetinaScale = 2;\ncc.dynamicAtlasManager.maxFrameSize = 2048;\n"],"file":"index.js"} \ No newline at end of file diff --git a/demo/web-desktop/assets/main/native/61/617323dd-11f4-4dd3-8eec-0caf6b3b45b9.6d707.png b/demo/web-desktop/assets/main/native/61/617323dd-11f4-4dd3-8eec-0caf6b3b45b9.6d707.png new file mode 100644 index 00000000..0616a37a Binary files /dev/null and b/demo/web-desktop/assets/main/native/61/617323dd-11f4-4dd3-8eec-0caf6b3b45b9.6d707.png differ diff --git a/demo/web-desktop/assets/main/native/d6/d6d3ca85-4681-47c1-b5dd-d036a9d39ea2.d55c2.png b/demo/web-desktop/assets/main/native/d6/d6d3ca85-4681-47c1-b5dd-d036a9d39ea2.d55c2.png new file mode 100644 index 00000000..843a9a62 Binary files /dev/null and b/demo/web-desktop/assets/main/native/d6/d6d3ca85-4681-47c1-b5dd-d036a9d39ea2.d55c2.png differ diff --git a/demo/web-desktop/assets/multi-render/config.f7eed.json b/demo/web-desktop/assets/multi-render/config.f7eed.json new file mode 100644 index 00000000..2975b952 --- /dev/null +++ b/demo/web-desktop/assets/multi-render/config.f7eed.json @@ -0,0 +1,241 @@ +{ + "paths": { + "77hE9EwNpMlKl/+sGrhEVR": [ + "multi-batcher/images/1", + "cc.Texture2D" + ], + "c4+eoUuahAOa4lmC/4Hkdi": [ + "multi-batcher/images/1", + "cc.SpriteFrame", + 1 + ], + "b6FhIxTWVHXKa7qBmehR6I": [ + "multi-batcher/images/etc1_rgb_a", + "cc.Texture2D" + ], + "eahTDGUrZBV4Y+i+JslTuW": [ + "multi-batcher/images/etc1_rgb_a", + "cc.SpriteFrame", + 1 + ], + "ebcqWiiDdPRaJKJIbu9ft4": [ + "multi-batcher/images/png", + "cc.Texture2D" + ], + "0a5R1NT2lDxqcI2pwtgfb1": [ + "multi-batcher/images/png", + "cc.SpriteFrame", + 1 + ], + "22JHeF7zBLZqnS68r2p/bo": [ + "multi-batcher/images/pvrtc2_rgb_a", + "cc.Texture2D" + ], + "41Zz922rlJZZmZnFZqPxVK": [ + "multi-batcher/images/pvrtc2_rgb_a", + "cc.SpriteFrame", + 1 + ], + "43jA/TdMpFA7K8IIjNbb9M": [ + "multi-batcher/images/sheep_down_0", + "cc.Texture2D" + ], + "8fHzmU6I5EBqjpHEb0Xl3i": [ + "multi-batcher/images/sheep_down_0", + "cc.SpriteFrame", + 1 + ], + "10Drosz6JPsKWsqV+bRh/A": [ + "multi-batcher/images/sheep_jump_2", + "cc.Texture2D" + ], + "2dPOEW20pCTLs79c0WyZVp": [ + "multi-batcher/images/sheep_jump_2", + "cc.SpriteFrame", + 1 + ], + "44mZ0YUdFAF56mmNytjs31": [ + "multi-batcher/images/sheep_jump_3", + "cc.Texture2D" + ], + "b48cuQCqRMLaIzf9I1fTbW": [ + "multi-batcher/images/sheep_jump_3", + "cc.SpriteFrame", + 1 + ], + "7aeIQwZiFL1YbOCVeiFt1p": [ + "multi-batcher/images/sheep_run_1", + "cc.Texture2D" + ], + "55URLSNf5K3IyZBezfiMKa": [ + "multi-batcher/images/sheep_run_1", + "cc.SpriteFrame", + 1 + ], + "14W7pBGWJJ7q7JCPsVTovy": [ + "multi-batcher/multi-batcher", + "cc.Prefab" + ], + "c58wUeG09DhJOcuDi8uPW/": [ + "multi-material/multi-material", + "cc.Prefab" + ], + "0eAM9yHrBFe4PSAXHMHNl+": [ + "multi-material/test-material", + "cc.Material" + ] + }, + "uuids": [ + "77hE9EwNpMlKl/+sGrhEVR", + "c4+eoUuahAOa4lmC/4Hkdi", + "b6FhIxTWVHXKa7qBmehR6I", + "eahTDGUrZBV4Y+i+JslTuW", + "ebcqWiiDdPRaJKJIbu9ft4", + "0a5R1NT2lDxqcI2pwtgfb1", + "22JHeF7zBLZqnS68r2p/bo", + "41Zz922rlJZZmZnFZqPxVK", + "43jA/TdMpFA7K8IIjNbb9M", + "8fHzmU6I5EBqjpHEb0Xl3i", + "10Drosz6JPsKWsqV+bRh/A", + "2dPOEW20pCTLs79c0WyZVp", + "44mZ0YUdFAF56mmNytjs31", + "b48cuQCqRMLaIzf9I1fTbW", + "7aeIQwZiFL1YbOCVeiFt1p", + "55URLSNf5K3IyZBezfiMKa", + "14W7pBGWJJ7q7JCPsVTovy", + "c58wUeG09DhJOcuDi8uPW/", + "0eAM9yHrBFe4PSAXHMHNl+", + "ecpdLyjvZBwrvm+cedCcQy", + "f0BIwQ8D5Ml7nTNQbh1YlS", + "e97GVMl6JHh5Ml5qEDdSGa", + "29FYIk+N1GYaeWH/q1NxQO", + "5cO7kybDxGj4ipyMYdRYZB", + "5f5dyqtRNNxaFmVzYns6FZ", + "a2MjXRFdtLlYQ5ouAFv/+R", + "8c20Sso/ZEn7NUfNSM+EBh", + "8029xEf4FHy49dWo6NK8c7", + "a7ZscqX+JCIZRS157bMyhq", + "80AR/OlBFOoajT99htLYeJ", + "6eBWFz0oVHPLIGQKf/9Thu", + "bc2ZOJo5NCbrI0FXxitEvE", + "2cDGL4OAVN0ZbEl3w2urT8", + "5dz/wYuRNGDqDZXXT0zaEr", + "c1Hf3Sl8ZAnJwP/fpoHxap", + "1cijzBpFJCdoSNK98w5oUq", + "45vlnzVlVDaZ6fRVyB0t3Z", + "d9xFMK7wVFwbAS60aG9McP", + "e8Ueib+qJEhL6mXAHdnwbi", + "b4P/PCArtIdIH38t6mlw8Y", + "71VhFCTINJM6/Ky3oX9nBT", + "92aqwImq1Ik7GrBSFnKTF2", + "3e30KyALhNkZttyuW0A6EU", + "62MQQadaVK8qQN8n6UmJAa" + ], + "scenes": {}, + "redirect": [ + "ecpdLyjvZBwrvm+cedCcQy", + 0, + "5cO7kybDxGj4ipyMYdRYZB", + 1, + "5f5dyqtRNNxaFmVzYns6FZ", + 1, + "a2MjXRFdtLlYQ5ouAFv/+R", + 1 + ], + "deps": [ + "internal", + "main" + ], + "packs": { + "0e0c9da58": [ + "0a5R1NT2lDxqcI2pwtgfb1", + "0eAM9yHrBFe4PSAXHMHNl+", + "10Drosz6JPsKWsqV+bRh/A", + "14W7pBGWJJ7q7JCPsVTovy", + "1cijzBpFJCdoSNK98w5oUq", + "22JHeF7zBLZqnS68r2p/bo", + "29FYIk+N1GYaeWH/q1NxQO", + "2cDGL4OAVN0ZbEl3w2urT8", + "2dPOEW20pCTLs79c0WyZVp", + "3e30KyALhNkZttyuW0A6EU", + "41Zz922rlJZZmZnFZqPxVK", + "43jA/TdMpFA7K8IIjNbb9M", + "44mZ0YUdFAF56mmNytjs31", + "45vlnzVlVDaZ6fRVyB0t3Z", + "55URLSNf5K3IyZBezfiMKa", + "5dz/wYuRNGDqDZXXT0zaEr", + "62MQQadaVK8qQN8n6UmJAa", + "6eBWFz0oVHPLIGQKf/9Thu", + "71VhFCTINJM6/Ky3oX9nBT", + "77hE9EwNpMlKl/+sGrhEVR", + "7aeIQwZiFL1YbOCVeiFt1p", + "80AR/OlBFOoajT99htLYeJ", + "8029xEf4FHy49dWo6NK8c7", + "8c20Sso/ZEn7NUfNSM+EBh", + "8fHzmU6I5EBqjpHEb0Xl3i", + "92aqwImq1Ik7GrBSFnKTF2", + "a7ZscqX+JCIZRS157bMyhq", + "b4P/PCArtIdIH38t6mlw8Y", + "b48cuQCqRMLaIzf9I1fTbW", + "b6FhIxTWVHXKa7qBmehR6I", + "bc2ZOJo5NCbrI0FXxitEvE", + "c1Hf3Sl8ZAnJwP/fpoHxap", + "c4+eoUuahAOa4lmC/4Hkdi", + "c58wUeG09DhJOcuDi8uPW/", + "d9xFMK7wVFwbAS60aG9McP", + "e8Ueib+qJEhL6mXAHdnwbi", + "e97GVMl6JHh5Ml5qEDdSGa", + "eahTDGUrZBV4Y+i+JslTuW", + "ebcqWiiDdPRaJKJIbu9ft4", + "f0BIwQ8D5Ml7nTNQbh1YlS" + ] + }, + "name": "multi-render", + "importBase": "import", + "nativeBase": "native", + "debug": true, + "isZip": false, + "encrypted": false, + "versions": { + "import": [ + "0e0c9da58", + "5c474" + ], + "native": [ + "10Drosz6JPsKWsqV+bRh/A", + "eae97", + "1cijzBpFJCdoSNK98w5oUq", + "91637", + "22JHeF7zBLZqnS68r2p/bo", + "2ecc6", + "43jA/TdMpFA7K8IIjNbb9M", + "28847", + "44mZ0YUdFAF56mmNytjs31", + "99af5", + "45vlnzVlVDaZ6fRVyB0t3Z", + "ca872", + "62MQQadaVK8qQN8n6UmJAa", + "40d17", + "6eBWFz0oVHPLIGQKf/9Thu", + "6d3cf", + "71VhFCTINJM6/Ky3oX9nBT", + "c06a9", + "77hE9EwNpMlKl/+sGrhEVR", + "92cfc", + "7aeIQwZiFL1YbOCVeiFt1p", + "9e7e3", + "b4P/PCArtIdIH38t6mlw8Y", + "83fcc", + "b6FhIxTWVHXKa7qBmehR6I", + "6159f", + "c1Hf3Sl8ZAnJwP/fpoHxap", + "d86d7", + "d9xFMK7wVFwbAS60aG9McP", + "abf6b", + "e8Ueib+qJEhL6mXAHdnwbi", + "90cf4", + "ebcqWiiDdPRaJKJIbu9ft4", + "46cee" + ] + } +} \ No newline at end of file diff --git a/demo/web-desktop/assets/multi-render/import/0e/0e0c9da58.5c474.json b/demo/web-desktop/assets/multi-render/import/0e/0e0c9da58.5c474.json new file mode 100644 index 00000000..8a803565 --- /dev/null +++ b/demo/web-desktop/assets/multi-render/import/0e/0e0c9da58.5c474.json @@ -0,0 +1,14514 @@ +[ + 1, + [ + "ecpdLyjvZBwrvm+cedCcQy", + "0eAM9yHrBFe4PSAXHMHNl+", + "f0BIwQ8D5Ml7nTNQbh1YlS", + "6eBWFz0oVHPLIGQKf/9Thu", + "a7ZscqX+JCIZRS157bMyhq", + "c1Hf3Sl8ZAnJwP/fpoHxap", + "1cijzBpFJCdoSNK98w5oUq", + "45vlnzVlVDaZ6fRVyB0t3Z", + "d9xFMK7wVFwbAS60aG9McP", + "e97GVMl6JHh5Ml5qEDdSGa", + "29FYIk+N1GYaeWH/q1NxQO", + "5f5dyqtRNNxaFmVzYns6FZ", + "a2MjXRFdtLlYQ5ouAFv/+R", + "5cO7kybDxGj4ipyMYdRYZB", + "8c20Sso/ZEn7NUfNSM+EBh", + "bc2ZOJo5NCbrI0FXxitEvE", + "ebcqWiiDdPRaJKJIbu9ft4", + "5dz/wYuRNGDqDZXXT0zaEr", + "55URLSNf5K3IyZBezfiMKa", + "b48cuQCqRMLaIzf9I1fTbW", + "2dPOEW20pCTLs79c0WyZVp", + "0a5R1NT2lDxqcI2pwtgfb1", + "41Zz922rlJZZmZnFZqPxVK", + "8fHzmU6I5EBqjpHEb0Xl3i", + "eahTDGUrZBV4Y+i+JslTuW", + "c4+eoUuahAOa4lmC/4Hkdi", + "71VhFCTINJM6/Ky3oX9nBT", + "62MQQadaVK8qQN8n6UmJAa", + "3e30KyALhNkZttyuW0A6EU", + "10Drosz6JPsKWsqV+bRh/A", + "22JHeF7zBLZqnS68r2p/bo", + "7aeIQwZiFL1YbOCVeiFt1p", + "92aqwImq1Ik7GrBSFnKTF2", + "43jA/TdMpFA7K8IIjNbb9M", + "44mZ0YUdFAF56mmNytjs31", + "77hE9EwNpMlKl/+sGrhEVR", + "8029xEf4FHy49dWo6NK8c7", + "80AR/OlBFOoajT99htLYeJ", + "2cDGL4OAVN0ZbEl3w2urT8", + "b4P/PCArtIdIH38t6mlw8Y", + "b6FhIxTWVHXKa7qBmehR6I", + "e8Ueib+qJEhL6mXAHdnwbi" + ], + [ + "node", + "_spriteFrame", + "_textureSetter", + "_parent", + "texture", + "texture2", + "_effectAsset", + "root", + "data", + "_scrollView", + "_N$normalSprite", + "_N$pressedSprite", + "_N$hoverSprite", + "_N$disabledSprite", + "_N$skeletonData", + "texture3", + "texture4", + "texture5", + "textures", + "cancelBtn", + "batchBtn", + "spriteFrame", + "_N$file", + "_texture" + ], + [ + "cc.Texture2D", + "cc.SpriteFrame", + [ + "cc.Sprite", + [ + "_sizeMode", + "_isTrimmedMode", + "_type", + "_N$autoSwitchMaterial", + "_N$allowDynamicAtlas", + "_fillRange", + "_fillType", + "_fillStart", + "node", + "_materials", + "_spriteFrame", + "_fillCenter" + ], + -5, + 1, + 3, + 6, + 5 + ], + [ + "cc.Node", + [ + "_name", + "_objFlags", + "_components", + "_prefab", + "_contentSize", + "_children", + "_trs", + "_parent", + "_anchorPoint", + "_color" + ], + 1, + 9, + 4, + 5, + 2, + 7, + 1, + 5, + 5 + ], + [ + "cc.Widget", + [ + "_alignFlags", + "_originalWidth", + "_left", + "_originalHeight", + "alignMode", + "_right", + "_top", + "node" + ], + -4, + 1 + ], + [ + "cc.Layout", + [ + "_resize", + "_N$layoutType", + "_N$paddingTop", + "_N$spacingY", + "_N$paddingBottom", + "_N$startAxis", + "_N$affectedByScale", + "node", + "_layoutSize" + ], + -4, + 1, + 5 + ], + [ + "cc.Label", + [ + "_string", + "_fontSize", + "_N$horizontalAlign", + "_N$verticalAlign", + "_N$cacheMode", + "_materials", + "_lineHeight", + "_N$autoSwitchMaterial", + "_N$allowDynamicAtlas", + "node" + ], + -6, + 1 + ], + [ + "cc.Node", + [ + "_name", + "_parent", + "_children", + "_components", + "_prefab", + "_contentSize", + "_color", + "_anchorPoint", + "_trs" + ], + 2, + 1, + 2, + 12, + 4, + 5, + 5, + 5, + 7 + ], + [ + "cc.PrefabInfo", + [ + "fileId", + "root" + ], + 2, + 1 + ], + [ + "cc.Label", + [ + "_string", + "_fontSize", + "_N$horizontalAlign", + "_N$verticalAlign", + "_enableWrapText", + "_N$overflow", + "_N$cacheMode", + "_lineHeight", + "_isSystemFontUsed", + "_N$autoSwitchMaterial", + "_N$allowDynamicAtlas", + "node", + "_materials", + "_N$file" + ], + -8, + 1, + 3, + 6 + ], + [ + "sp.Skeleton", + [ + "defaultSkin", + "defaultAnimation", + "_preCacheMode", + "_animationName", + "_N$enableBatch", + "_N$autoSwitchMaterial", + "_N$allowDynamicAtlas", + "_cacheMode", + "node", + "_materials", + "_N$skeletonData" + ], + -5, + 1, + 3, + 6 + ], + [ + "cc.Material", + [ + "_name", + "_techniqueData" + ], + 2, + 11 + ], + [ + "cc.Prefab", + [ + "_name" + ], + 2 + ], + [ + "cc.Node", + [ + "_name", + "_parent", + "_components", + "_prefab", + "_contentSize", + "_anchorPoint" + ], + 2, + 1, + 2, + 4, + 5, + 5 + ], + [ + "3e9188DEK9FCYlYeL+jvmrQ", + [ + "node", + "batchBtn", + "cancelBtn", + "textures" + ], + 3, + 1, + 1, + 1, + 1 + ], + [ + "cc.ToggleContainer", + [ + "node" + ], + 3, + 1 + ], + [ + "cc.Button", + [ + "_N$transition", + "node", + "_N$normalColor", + "_N$pressedColor", + "_N$disabledColor", + "_N$target", + "_N$normalSprite", + "_N$pressedSprite", + "_N$hoverSprite", + "_N$disabledSprite" + ], + 2, + 1, + 5, + 5, + 5, + 1, + 6, + 6, + 6, + 6 + ], + [ + "cc.Scrollbar", + [ + "enableAutoHide", + "_N$direction", + "node", + "_N$handle" + ], + 1, + 1, + 1 + ], + [ + "cc.ScrollView", + [ + "horizontal", + "brake", + "bounceDuration", + "_N$horizontalScrollBar", + "node", + "_N$content", + "_N$verticalScrollBar" + ], + -1, + 1, + 1, + 1 + ], + [ + "cc.EffectAsset", + [ + "_name", + "shaders", + "techniques" + ], + 0 + ], + [ + "cc.BitmapFont", + [ + "_name", + "fontSize", + "_fntConfig" + ], + 0 + ], + [ + "sp.SkeletonData", + [ + "_name", + "_atlasText", + "textureNames", + "_skeletonJson", + "textures" + ], + -1, + 3 + ], + [ + "cc.MotionStreak", + [ + "_stroke", + "_N$autoSwitchMaterial", + "node", + "_materials", + "_texture" + ], + 1, + 1, + 3, + 6 + ] + ], + [ + [ + 8, + 0, + 1, + 2 + ], + [ + 3, + 0, + 7, + 2, + 3, + 4, + 6, + 2 + ], + [ + 3, + 0, + 7, + 5, + 2, + 3, + 4, + 6, + 2 + ], + [ + 6, + 0, + 1, + 6, + 2, + 3, + 4, + 5, + 9, + 8 + ], + [ + 5, + 0, + 1, + 2, + 4, + 3, + 6, + 7, + 8, + 7 + ], + [ + 2, + 8, + 9, + 10, + 1 + ], + [ + 4, + 0, + 1, + 3, + 7, + 4 + ], + [ + 2, + 2, + 0, + 8, + 9, + 10, + 3 + ], + [ + 3, + 0, + 5, + 2, + 3, + 4, + 6, + 2 + ], + [ + 11, + 0, + 1, + 2 + ], + [ + 12, + 0, + 2 + ], + [ + 3, + 0, + 5, + 2, + 3, + 4, + 8, + 6, + 2 + ], + [ + 3, + 0, + 1, + 5, + 2, + 3, + 4, + 3 + ], + [ + 3, + 0, + 7, + 5, + 2, + 3, + 4, + 2 + ], + [ + 3, + 0, + 1, + 7, + 2, + 3, + 9, + 4, + 3 + ], + [ + 7, + 0, + 1, + 2, + 3, + 4, + 6, + 5, + 2 + ], + [ + 7, + 0, + 1, + 2, + 3, + 4, + 5, + 7, + 8, + 2 + ], + [ + 13, + 0, + 1, + 2, + 3, + 4, + 5, + 2 + ], + [ + 4, + 0, + 7, + 2 + ], + [ + 4, + 4, + 0, + 1, + 3, + 7, + 5 + ], + [ + 4, + 4, + 0, + 2, + 3, + 7, + 5 + ], + [ + 8, + 1, + 1 + ], + [ + 5, + 0, + 1, + 7, + 8, + 3 + ], + [ + 5, + 0, + 1, + 2, + 4, + 3, + 7, + 8, + 6 + ], + [ + 15, + 0, + 1 + ], + [ + 2, + 0, + 1, + 8, + 9, + 10, + 3 + ], + [ + 2, + 2, + 0, + 8, + 9, + 3 + ], + [ + 2, + 0, + 1, + 3, + 4, + 8, + 9, + 10, + 5 + ], + [ + 2, + 2, + 0, + 1, + 3, + 4, + 8, + 9, + 10, + 6 + ], + [ + 16, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 2 + ], + [ + 9, + 0, + 1, + 4, + 2, + 3, + 5, + 6, + 11, + 12, + 8 + ], + [ + 17, + 0, + 1, + 2, + 3, + 3 + ], + [ + 18, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 5 + ], + [ + 19, + 0, + 1, + 2, + 4 + ], + [ + 4, + 0, + 2, + 5, + 1, + 7, + 5 + ], + [ + 4, + 0, + 2, + 6, + 7, + 4 + ], + [ + 4, + 0, + 1, + 7, + 3 + ], + [ + 14, + 0, + 1, + 2, + 3, + 1 + ], + [ + 5, + 0, + 1, + 5, + 2, + 3, + 7, + 8, + 6 + ], + [ + 2, + 2, + 0, + 5, + 1, + 3, + 4, + 8, + 9, + 10, + 7 + ], + [ + 2, + 2, + 0, + 6, + 7, + 5, + 1, + 3, + 4, + 8, + 9, + 11, + 10, + 9 + ], + [ + 6, + 0, + 1, + 2, + 3, + 4, + 5, + 9, + 7 + ], + [ + 6, + 0, + 1, + 6, + 2, + 3, + 4, + 7, + 8, + 5, + 9, + 10 + ], + [ + 9, + 0, + 1, + 7, + 8, + 2, + 3, + 9, + 10, + 11, + 12, + 13, + 9 + ], + [ + 20, + 0, + 1, + 2, + 4 + ], + [ + 21, + 0, + 1, + 2, + 3, + 4, + 5 + ], + [ + 22, + 0, + 1, + 2, + 3, + 4, + 3 + ], + [ + 10, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 8, + 9, + 10, + 8 + ], + [ + 10, + 0, + 1, + 2, + 7, + 3, + 4, + 5, + 6, + 8, + 9, + 10, + 9 + ] + ], + [ + [ + [ + { + "name": "png", + "rect": [ + 33, + 5, + 143, + 150 + ], + "offset": [ + -9.5, + -0.5 + ], + "originalSize": [ + 228, + 159 + ], + "capInsets": [ + 0, + 0, + 0, + 0 + ] + } + ], + [ + 1 + ], + 0, + [ + 0 + ], + [ + 2 + ], + [ + 16 + ] + ], + [ + [ + [ + 9, + "test-material", + [ + {}, + "0", + 11, + [ + { + "defines": { + "USE_TEXTURE": true, + "USE_MULTI_TEXTURE": true + } + }, + "props", + 11, + [ + {}, + "texture", + 6, + 0, + "texture2", + 6, + 1, + "texture3", + 6, + 2, + "texture4", + 6, + 3, + "texture5", + 6, + 4 + ] + ] + ] + ] + ], + 0, + 0, + [ + 0, + 0, + 0, + 0, + 0, + 0 + ], + [ + 4, + 5, + 15, + 16, + 17, + 6 + ], + [ + 5, + 6, + 3, + 7, + 8, + 17 + ] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,0", + -1 + ], + [ + 0 + ], + 0, + [], + [], + [] + ], + [ + [ + [ + 10, + "multi-batcher" + ], + [ + 8, + "multi-batcher", + [ + -7 + ], + [ + [ + 18, + 45, + -2 + ], + [ + 37, + -6, + -5, + -4, + -3 + ] + ], + [ + 21, + -1 + ], + [ + 5, + 960, + 600 + ], + [ + 480, + 300, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 8, + "textures", + [ + -9, + -10, + -11, + -12, + -13, + -14, + -15, + -16 + ], + [ + [ + 22, + 1, + 3, + -8, + [ + 5, + 717, + 288 + ] + ] + ], + [ + 0, + "e0AioYjhRHjKmqedjlAWhb", + 1 + ], + [ + 5, + 717, + 288 + ], + [ + 0, + -234, + 0, + 0, + 0, + 0, + 1, + 0.5, + 0.5, + 1 + ] + ], + [ + 11, + "content", + [ + -20, + 2, + -21, + -22 + ], + [ + [ + 24, + -17 + ], + [ + 38, + 1, + 2, + 1, + 30, + 20, + -18, + [ + 5, + 785.815, + 498 + ] + ], + [ + 34, + 41, + 87.09249999999997, + 87.09249999999997, + 220, + -19 + ] + ], + [ + 0, + "98B5382ANHgKQw5BkMsWAq", + 1 + ], + [ + 5, + 785.815, + 498 + ], + [ + 0, + 0.5, + 1 + ], + [ + 0, + 300, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 15, + "sv", + 1, + [ + -26, + -27 + ], + [ + [ + -23, + [ + 6, + 45, + 240, + 250, + -24 + ], + [ + 25, + 0, + false, + -25, + [ + 33 + ], + 34 + ] + ], + 1, + 4, + 4 + ], + [ + 0, + "b5RxDsAgFOW6xOyBdbz2rI", + 1 + ], + [ + 4, + 4279834905 + ], + [ + 5, + 960, + 600 + ] + ], + [ + 12, + "Background", + 512, + [ + -30 + ], + [ + [ + 7, + 1, + 0, + -28, + [ + 17 + ], + 18 + ], + [ + 19, + 0, + 45, + 100, + 40, + -29 + ] + ], + [ + 0, + "c1rI+zAe1AVJuLNaOa0/Am", + 1 + ], + [ + 5, + 100, + 40 + ] + ], + [ + 12, + "Background", + 512, + [ + -33 + ], + [ + [ + 7, + 1, + 0, + -31, + [ + 24 + ], + 25 + ], + [ + 19, + 0, + 45, + 100, + 40, + -32 + ] + ], + [ + 0, + "75f/zpdqVNfLYRxiuVwv4C", + 1 + ], + [ + 5, + 100, + 40 + ] + ], + [ + 16, + "scrollBar", + 4, + [ + -37 + ], + [ + [ + -34, + [ + 20, + 0, + 37, + 350.07654921020657, + 237, + -35 + ], + [ + 7, + 1, + 0, + -36, + [ + 31 + ], + 32 + ] + ], + 1, + 4, + 4 + ], + [ + 0, + "c2cC2kA1NNeozY+5ZzkcSY", + 1 + ], + [ + 5, + 8, + 600 + ], + [ + 0, + 1, + 0.5 + ], + [ + 480, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 2, + "batch", + 3, + [ + 5 + ], + [ + [ + 29, + 2, + -38, + [ + 4, + 4293322470 + ], + [ + 4, + 4291348680 + ], + [ + 4, + 3363338360 + ], + 5, + 19, + 20, + 21, + 22 + ] + ], + [ + 0, + "0b0QeJt7VC44+K0EVYPDVj", + 1 + ], + [ + 5, + 100, + 40 + ], + [ + 0, + -418, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 2, + "cancel", + 3, + [ + 6 + ], + [ + [ + 29, + 2, + -39, + [ + 4, + 4293322470 + ], + [ + 4, + 4291348680 + ], + [ + 4, + 3363338360 + ], + 6, + 26, + 27, + 28, + 29 + ] + ], + [ + 0, + "d9fVRHRzVGa6qXzt5stxxE", + 1 + ], + [ + 5, + 100, + 40 + ], + [ + 0, + -478, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 13, + "view", + 4, + [ + 3 + ], + [ + [ + 6, + 45, + 240, + 250, + -40 + ] + ], + [ + 0, + "645yltQ0dFpbIcIgDazPDc", + 1 + ], + [ + 5, + 960, + 600 + ] + ], + [ + 1, + "tips", + 3, + [ + [ + 41, + "点击按钮会将这 8 张纹理关联同一个材质, Draw Call 会降低 7", + 16, + 1, + 1, + 2, + [ + null + ], + -41 + ], + [ + 35, + 17, + 95.11500000000001, + 30, + -42 + ] + ], + [ + 0, + "fbSLTYNutL174TDvzvU3nT", + 1 + ], + [ + 5, + 445.375, + 40 + ], + [ + 0, + -50, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 1, + "sheep_run_1", + 2, + [ + [ + 5, + -43, + [ + 0 + ], + 1 + ] + ], + [ + 0, + "290LB9y6dH754pFZjiX/ZH", + 1 + ], + [ + 5, + 176, + 115 + ], + [ + -270.5, + 86.5, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 1, + "sheep_jump_3", + 2, + [ + [ + 5, + -44, + [ + 2 + ], + 3 + ] + ], + [ + 0, + "0fvsvQgkVCH6CHuDRPrLT3", + 1 + ], + [ + 5, + 152, + 115 + ], + [ + -106.5, + 86.5, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 1, + "sheep_jump_2", + 2, + [ + [ + 5, + -45, + [ + 4 + ], + 5 + ] + ], + [ + 0, + "99/QBu9VRBqKTg4pZ/kxlb", + 1 + ], + [ + 5, + 160, + 104 + ], + [ + 49.5, + 92, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 1, + "png", + 2, + [ + [ + 5, + -46, + [ + 6 + ], + 7 + ] + ], + [ + 0, + "62bYLhXTdAE7unUwKnJ9+F", + 1 + ], + [ + 5, + 143, + 150 + ], + [ + 201, + 69, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 1, + "pvrtc2_rgb_a", + 2, + [ + [ + 5, + -47, + [ + 8 + ], + 9 + ] + ], + [ + 0, + "04ha70LWVGZp2m+P91mgRz", + 1 + ], + [ + 5, + 147, + 138 + ], + [ + -285, + -75, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 1, + "sheep_down_0", + 2, + [ + [ + 5, + -48, + [ + 10 + ], + 11 + ] + ], + [ + 0, + "ebEGt8f0JD7LLZQlSrZevu", + 1 + ], + [ + 5, + 224, + 87 + ], + [ + -99.5, + -49.5, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 1, + "etc1_rgb_a", + 2, + [ + [ + 5, + -49, + [ + 12 + ], + 13 + ] + ], + [ + 0, + "2arjghRTlJ+LCDvhAlCMgJ", + 1 + ], + [ + 5, + 154, + 131 + ], + [ + 89.5, + -71.5, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 1, + "1", + 2, + [ + [ + 5, + -50, + [ + 14 + ], + 15 + ] + ], + [ + 0, + "158hruI69MzqtLXovgpl9j", + 1 + ], + [ + 5, + 152, + 103 + ], + [ + 242.5, + -57.5, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 14, + "Label", + 512, + 5, + [ + [ + 30, + "合批", + 20, + false, + 1, + 1, + 1, + 1, + -51, + [ + 16 + ] + ] + ], + [ + 0, + "3ea+qYSxdPGLhbcByL6vuG", + 1 + ], + [ + 4, + 4278190080 + ], + [ + 5, + 100, + 40 + ] + ], + [ + 14, + "Label", + 512, + 6, + [ + [ + 30, + "还原", + 20, + false, + 1, + 1, + 1, + 1, + -52, + [ + 23 + ] + ] + ], + [ + 0, + "ecQWFGSopDrpI1pat+ViDn", + 1 + ], + [ + 4, + 4278190080 + ], + [ + 5, + 100, + 40 + ] + ], + [ + 17, + "bar", + 7, + [ + -53 + ], + [ + 0, + "29pI3SelxAU6ODrNe5LS2g", + 1 + ], + [ + 5, + 8, + 30 + ], + [ + 0, + 1, + 0 + ] + ], + [ + 26, + 1, + 0, + 22, + [ + 30 + ] + ], + [ + 31, + false, + 1, + 7, + 23 + ], + [ + 32, + false, + 0.75, + 0.23, + null, + 4, + 3, + 24 + ] + ], + 0, + [ + 0, + 7, + 1, + 0, + 0, + 1, + 0, + 18, + 2, + 0, + 19, + 9, + 0, + 20, + 8, + 0, + 0, + 1, + 0, + -1, + 4, + 0, + 0, + 2, + 0, + -1, + 12, + 0, + -2, + 13, + 0, + -3, + 14, + 0, + -4, + 15, + 0, + -5, + 16, + 0, + -6, + 17, + 0, + -7, + 18, + 0, + -8, + 19, + 0, + 0, + 3, + 0, + 0, + 3, + 0, + 0, + 3, + 0, + -1, + 11, + 0, + -3, + 8, + 0, + -4, + 9, + 0, + -1, + 25, + 0, + 0, + 4, + 0, + 0, + 4, + 0, + -1, + 10, + 0, + -2, + 7, + 0, + 0, + 5, + 0, + 0, + 5, + 0, + -1, + 20, + 0, + 0, + 6, + 0, + 0, + 6, + 0, + -1, + 21, + 0, + -1, + 24, + 0, + 0, + 7, + 0, + 0, + 7, + 0, + -1, + 22, + 0, + 0, + 8, + 0, + 0, + 9, + 0, + 0, + 10, + 0, + 0, + 11, + 0, + 0, + 11, + 0, + 0, + 12, + 0, + 0, + 13, + 0, + 0, + 14, + 0, + 0, + 15, + 0, + 0, + 16, + 0, + 0, + 17, + 0, + 0, + 18, + 0, + 0, + 19, + 0, + 0, + 20, + 0, + 0, + 21, + 0, + -1, + 23, + 0, + 8, + 1, + 2, + 3, + 3, + 3, + 3, + 10, + 5, + 3, + 8, + 6, + 3, + 9, + 24, + 9, + 25, + 53 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 23 + ], + [ + -1, + 1, + -1, + 1, + -1, + 1, + -1, + 1, + -1, + 1, + -1, + 1, + -1, + 1, + -1, + 1, + -1, + -1, + 1, + 10, + 11, + 12, + 13, + -1, + -1, + 1, + 10, + 11, + 12, + 13, + -1, + -1, + 1, + -1, + 1, + 1 + ], + [ + 0, + 18, + 0, + 19, + 0, + 20, + 0, + 21, + 0, + 22, + 0, + 23, + 0, + 24, + 0, + 25, + 0, + 0, + 2, + 2, + 9, + 2, + 10, + 0, + 0, + 2, + 2, + 9, + 2, + 10, + 0, + 0, + 11, + 0, + 12, + 13 + ] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,1", + -1 + ], + [ + 0 + ], + 0, + [], + [], + [] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,0", + -1 + ], + [ + 0 + ], + 0, + [], + [], + [] + ], + [ + [ + { + "name": "default_btn_disabled", + "rect": [ + 0, + 0, + 40, + 40 + ], + "offset": [ + 0, + 0 + ], + "originalSize": [ + 40, + 40 + ], + "capInsets": [ + 12, + 12, + 12, + 12 + ] + } + ], + [ + 1 + ], + 0, + [ + 0 + ], + [ + 2 + ], + [ + 26 + ] + ], + [ + [ + [ + 9, + "custom-2d-sprite", + [ + {}, + "0", + 11, + [ + { + "defines": { + "USE_TEXTURE": true, + "USE_MULTI_TEXTURE": true + } + }, + "props", + 11, + [ + { + "blur": 0.01, + "wh_ratio": 1, + "radius": 0.45 + }, + "texture", + 6, + 0, + "texture2", + 6, + 1 + ] + ] + ] + ] + ], + 0, + 0, + [ + 0, + 0, + 0 + ], + [ + 4, + 5, + 6 + ], + [ + 27, + 3, + 28 + ] + ], + [ + [ + { + "name": "sheep_jump_2", + "rect": [ + 24, + 24, + 160, + 104 + ], + "offset": [ + -10, + 3.5 + ], + "originalSize": [ + 228, + 159 + ], + "capInsets": [ + 0, + 0, + 0, + 0 + ] + } + ], + [ + 1 + ], + 0, + [ + 0 + ], + [ + 2 + ], + [ + 29 + ] + ], + [ + [ + [ + 33, + "custom-2d-sprite", + [ + { + "hash": 2734998855, + "record": null, + "name": "custom-2d-sprite|vs|fs", + "glsl3": { + "vert": "\nprecision highp float;\nuniform CCGlobal {\n mat4 cc_matView;\n mat4 cc_matViewInv;\n mat4 cc_matProj;\n mat4 cc_matProjInv;\n mat4 cc_matViewProj;\n mat4 cc_matViewProjInv;\n vec4 cc_cameraPos;\n vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_screenScale;\n};\nuniform CCLocal {\n mat4 cc_matWorld;\n mat4 cc_matWorldIT;\n};\nin vec3 a_position;\nin vec4 a_color;\nout vec4 v_color;\n#if USE_TEXTURE\nin vec2 a_uv0;\nout vec2 v_uv0;\n#if USE_MULTI_TEXTURE\nin float a_texId;\nout float v_texId;\n#endif\n#endif\nvoid main () {\n vec4 pos = vec4(a_position, 1);\n #if CC_USE_MODEL\n pos = cc_matViewProj * cc_matWorld * pos;\n #else\n pos = cc_matViewProj * pos;\n #endif\n #if USE_TEXTURE\n v_uv0 = a_uv0;\n #if USE_MULTI_TEXTURE\n v_texId = a_texId;\n #endif\n #endif\n v_color = a_color;\n gl_Position = pos;\n}", + "frag": "\nprecision highp float;\n#if USE_ALPHA_TEST\n uniform ALPHA_TEST {\n float alphaThreshold;\n };\n#endif\nvoid ALPHA_TEST (in vec4 color) {\n #if USE_ALPHA_TEST\n if (color.a < alphaThreshold) discard;\n #endif\n}\nvoid ALPHA_TEST (in float alpha) {\n #if USE_ALPHA_TEST\n if (alpha < alphaThreshold) discard;\n #endif\n}\nin vec4 v_color;\n#if USE_TEXTURE\nin vec2 v_uv0;\nuniform sampler2D texture;\n#if USE_MULTI_TEXTURE\nin float v_texId;\nuniform sampler2D texture2;\nuniform sampler2D texture3;\nuniform sampler2D texture4;\nuniform sampler2D texture5;\nuniform sampler2D texture6;\nuniform sampler2D texture7;\nuniform sampler2D texture8;\n#endif\n#endif\nuniform ARGS{\n float radius;\n float blur;\n vec2 center;\n float wh_ratio;\n};\nvoid main () {\n vec4 o = vec4(1, 1, 1, 1);\n #if USE_TEXTURE\n #if USE_MULTI_TEXTURE\n if(v_texId < 1.0){\n vec4 texture_tmp = texture(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n o.a *= texture_tmp.a;\n #else\n o *= texture_tmp;\n #endif\n } else if(v_texId < 2.0){\n vec4 texture2_tmp = texture(texture2, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture2\n texture2_tmp.a *= texture(texture2, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture2_tmp.rgb * texture2_tmp.rgb);\n o.a *= texture2_tmp.a;\n #else\n o *= texture2_tmp;\n #endif\n } else if(v_texId < 3.0){\n vec4 texture3_tmp = texture(texture3, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture3\n texture3_tmp.a *= texture(texture3, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture3_tmp.rgb * texture3_tmp.rgb);\n o.a *= texture3_tmp.a;\n #else\n o *= texture3_tmp;\n #endif\n } else if(v_texId < 4.0){\n vec4 texture4_tmp = texture(texture4, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture4\n texture4_tmp.a *= texture(texture4, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture4_tmp.rgb * texture4_tmp.rgb);\n o.a *= texture4_tmp.a;\n #else\n o *= texture4_tmp;\n #endif\n } else if(v_texId < 5.0){\n vec4 texture5_tmp = texture(texture5, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture5\n texture5_tmp.a *= texture(texture5, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture5_tmp.rgb * texture5_tmp.rgb);\n o.a *= texture5_tmp.a;\n #else\n o *= texture5_tmp;\n #endif\n } else if(v_texId < 6.0){\n vec4 texture6_tmp = texture(texture6, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture6\n texture6_tmp.a *= texture(texture6, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture6_tmp.rgb * texture6_tmp.rgb);\n o.a *= texture6_tmp.a;\n #else\n o *= texture6_tmp;\n #endif\n } else if(v_texId < 7.0){\n vec4 texture7_tmp = texture(texture7, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture7\n texture7_tmp.a *= texture(texture7, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture7_tmp.rgb * texture7_tmp.rgb);\n o.a *= texture7_tmp.a;\n #else\n o *= texture7_tmp;\n #endif\n } else {\n vec4 texture8_tmp = texture(texture8, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture8\n texture8_tmp.a *= texture(texture8, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture8_tmp.rgb * texture8_tmp.rgb);\n o.a *= texture8_tmp.a;\n #else\n o *= texture8_tmp;\n #endif\n }\n #else\n vec4 texture_tmp = texture(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n o.a *= texture_tmp.a;\n #else\n o *= texture_tmp;\n #endif\n #endif\n #endif\n o *= v_color;\n ALPHA_TEST(o);\n float circle = radius * radius;\n float rx = center.x * wh_ratio;\n float ry = center.y;\n float dis = (v_uv0.x * wh_ratio - rx) * (v_uv0.x * wh_ratio - rx) + (v_uv0.y - ry) * (v_uv0.y - ry);\n o.a = smoothstep(circle, circle - blur, dis);\n gl_FragColor = o;\n}" + }, + "glsl1": { + "vert": "\nprecision highp float;\nuniform mat4 cc_matViewProj;\nuniform mat4 cc_matWorld;\nattribute vec3 a_position;\nattribute vec4 a_color;\nvarying vec4 v_color;\n#if USE_TEXTURE\nattribute vec2 a_uv0;\nvarying vec2 v_uv0;\n#if USE_MULTI_TEXTURE\nattribute float a_texId;\nvarying float v_texId;\n#endif\n#endif\nvoid main () {\n vec4 pos = vec4(a_position, 1);\n #if CC_USE_MODEL\n pos = cc_matViewProj * cc_matWorld * pos;\n #else\n pos = cc_matViewProj * pos;\n #endif\n #if USE_TEXTURE\n v_uv0 = a_uv0;\n #if USE_MULTI_TEXTURE\n v_texId = a_texId;\n #endif\n #endif\n v_color = a_color;\n gl_Position = pos;\n}", + "frag": "\nprecision highp float;\n#if USE_ALPHA_TEST\n uniform float alphaThreshold;\n#endif\nvoid ALPHA_TEST (in vec4 color) {\n #if USE_ALPHA_TEST\n if (color.a < alphaThreshold) discard;\n #endif\n}\nvoid ALPHA_TEST (in float alpha) {\n #if USE_ALPHA_TEST\n if (alpha < alphaThreshold) discard;\n #endif\n}\nvarying vec4 v_color;\n#if USE_TEXTURE\nvarying vec2 v_uv0;\nuniform sampler2D texture;\n#if USE_MULTI_TEXTURE\nvarying float v_texId;\nuniform sampler2D texture2;\nuniform sampler2D texture3;\nuniform sampler2D texture4;\nuniform sampler2D texture5;\nuniform sampler2D texture6;\nuniform sampler2D texture7;\nuniform sampler2D texture8;\n#endif\n#endif\nuniform float radius;\nuniform float blur;\nuniform vec2 center;\nuniform float wh_ratio;\nvoid main () {\n vec4 o = vec4(1, 1, 1, 1);\n #if USE_TEXTURE\n #if USE_MULTI_TEXTURE\n if(v_texId < 1.0){\n vec4 texture_tmp = texture2D(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture2D(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n o.a *= texture_tmp.a;\n #else\n o *= texture_tmp;\n #endif\n } else if(v_texId < 2.0){\n vec4 texture2_tmp = texture2D(texture2, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture2\n texture2_tmp.a *= texture2D(texture2, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture2_tmp.rgb * texture2_tmp.rgb);\n o.a *= texture2_tmp.a;\n #else\n o *= texture2_tmp;\n #endif\n } else if(v_texId < 3.0){\n vec4 texture3_tmp = texture2D(texture3, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture3\n texture3_tmp.a *= texture2D(texture3, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture3_tmp.rgb * texture3_tmp.rgb);\n o.a *= texture3_tmp.a;\n #else\n o *= texture3_tmp;\n #endif\n } else if(v_texId < 4.0){\n vec4 texture4_tmp = texture2D(texture4, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture4\n texture4_tmp.a *= texture2D(texture4, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture4_tmp.rgb * texture4_tmp.rgb);\n o.a *= texture4_tmp.a;\n #else\n o *= texture4_tmp;\n #endif\n } else if(v_texId < 5.0){\n vec4 texture5_tmp = texture2D(texture5, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture5\n texture5_tmp.a *= texture2D(texture5, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture5_tmp.rgb * texture5_tmp.rgb);\n o.a *= texture5_tmp.a;\n #else\n o *= texture5_tmp;\n #endif\n } else if(v_texId < 6.0){\n vec4 texture6_tmp = texture2D(texture6, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture6\n texture6_tmp.a *= texture2D(texture6, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture6_tmp.rgb * texture6_tmp.rgb);\n o.a *= texture6_tmp.a;\n #else\n o *= texture6_tmp;\n #endif\n } else if(v_texId < 7.0){\n vec4 texture7_tmp = texture2D(texture7, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture7\n texture7_tmp.a *= texture2D(texture7, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture7_tmp.rgb * texture7_tmp.rgb);\n o.a *= texture7_tmp.a;\n #else\n o *= texture7_tmp;\n #endif\n } else {\n vec4 texture8_tmp = texture2D(texture8, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture8\n texture8_tmp.a *= texture2D(texture8, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture8_tmp.rgb * texture8_tmp.rgb);\n o.a *= texture8_tmp.a;\n #else\n o *= texture8_tmp;\n #endif\n }\n #else\n vec4 texture_tmp = texture2D(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture2D(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n o.a *= texture_tmp.a;\n #else\n o *= texture_tmp;\n #endif\n #endif\n #endif\n o *= v_color;\n ALPHA_TEST(o);\n float circle = radius * radius;\n float rx = center.x * wh_ratio;\n float ry = center.y;\n float dis = (v_uv0.x * wh_ratio - rx) * (v_uv0.x * wh_ratio - rx) + (v_uv0.y - ry) * (v_uv0.y - ry);\n o.a = smoothstep(circle, circle - blur, dis);\n gl_FragColor = o;\n}" + }, + "builtins": { + "globals": { + "blocks": [ + { + "name": "CCGlobal", + "defines": [] + } + ], + "samplers": [] + }, + "locals": { + "blocks": [ + { + "name": "CCLocal", + "defines": [] + } + ], + "samplers": [] + } + }, + "defines": [ + { + "name": "USE_TEXTURE", + "type": "boolean", + "defines": [] + }, + { + "name": "USE_MULTI_TEXTURE", + "type": "boolean", + "defines": [ + "USE_TEXTURE" + ] + }, + { + "name": "CC_USE_MODEL", + "type": "boolean", + "defines": [] + }, + { + "name": "USE_ALPHA_TEST", + "type": "boolean", + "defines": [] + }, + { + "name": "CC_USE_ALPHA_ATLAS_texture", + "type": "boolean", + "defines": [ + "USE_TEXTURE" + ] + }, + { + "name": "INPUT_IS_GAMMA", + "type": "boolean", + "defines": [ + "USE_TEXTURE" + ] + }, + { + "name": "CC_USE_ALPHA_ATLAS_texture2", + "type": "boolean", + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "CC_USE_ALPHA_ATLAS_texture3", + "type": "boolean", + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "CC_USE_ALPHA_ATLAS_texture4", + "type": "boolean", + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "CC_USE_ALPHA_ATLAS_texture5", + "type": "boolean", + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "CC_USE_ALPHA_ATLAS_texture6", + "type": "boolean", + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "CC_USE_ALPHA_ATLAS_texture7", + "type": "boolean", + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "CC_USE_ALPHA_ATLAS_texture8", + "type": "boolean", + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + } + ], + "blocks": [ + { + "name": "ALPHA_TEST", + "binding": 0, + "members": [ + { + "name": "alphaThreshold", + "type": 13, + "count": 1 + } + ], + "defines": [ + "USE_ALPHA_TEST" + ] + }, + { + "name": "ARGS", + "binding": 1, + "members": [ + { + "name": "radius", + "type": 13, + "count": 1 + }, + { + "name": "blur", + "type": 13, + "count": 1 + }, + { + "name": "center", + "type": 14, + "count": 1 + }, + { + "name": "wh_ratio", + "type": 13, + "count": 1 + } + ], + "defines": [] + } + ], + "samplers": [ + { + "name": "texture", + "type": 29, + "count": 1, + "binding": 30, + "defines": [ + "USE_TEXTURE" + ] + }, + { + "name": "texture2", + "type": 29, + "count": 1, + "binding": 31, + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "texture3", + "type": 29, + "count": 1, + "binding": 32, + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "texture4", + "type": 29, + "count": 1, + "binding": 33, + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "texture5", + "type": 29, + "count": 1, + "binding": 34, + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "texture6", + "type": 29, + "count": 1, + "binding": 35, + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "texture7", + "type": 29, + "count": 1, + "binding": 36, + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "texture8", + "type": 29, + "count": 1, + "binding": 37, + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + } + ] + } + ], + [ + { + "passes": [ + { + "program": "custom-2d-sprite|vs|fs", + "blendState": { + "targets": [ + { + "blend": true + } + ] + }, + "rasterizerState": { + "cullMode": 0 + }, + "properties": { + "texture": { + "value": "white", + "type": 29 + }, + "texture2": { + "value": "white", + "type": 29 + }, + "texture3": { + "value": "white", + "type": 29 + }, + "texture4": { + "value": "white", + "type": 29 + }, + "texture5": { + "value": "white", + "type": 29 + }, + "texture6": { + "value": "white", + "type": 29 + }, + "texture7": { + "value": "white", + "type": 29 + }, + "texture8": { + "value": "white", + "type": 29 + }, + "alphaThreshold": { + "type": 13, + "value": [ + 0.5 + ] + }, + "wh_ratio": { + "type": 13, + "value": [ + 1 + ], + "editor": { + "tooltip": "宽高比" + } + }, + "blur": { + "type": 13, + "value": [ + 0.35 + ], + "editor": { + "tooltip": "光圈模糊程度" + } + }, + "radius": { + "type": 13, + "value": [ + 0.5 + ], + "editor": { + "tooltip": "光圈半径" + } + }, + "center": { + "type": 14, + "value": [ + 0.5, + 0.5 + ], + "editor": { + "tooltip": "光圈起点" + } + } + } + } + ] + } + ] + ] + ], + 0, + 0, + [], + [], + [] + ], + [ + [ + { + "name": "pvrtc2_rgb_a", + "rect": [ + 29, + 13, + 147, + 138 + ], + "offset": [ + -11.5, + -2.5 + ], + "originalSize": [ + 228, + 159 + ], + "capInsets": [ + 0, + 0, + 0, + 0 + ] + } + ], + [ + 1 + ], + 0, + [ + 0 + ], + [ + 2 + ], + [ + 30 + ] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,0", + -1 + ], + [ + 0 + ], + 0, + [], + [], + [] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,0", + -1 + ], + [ + 0 + ], + 0, + [], + [], + [] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,1", + -1 + ], + [ + 0 + ], + 0, + [], + [], + [] + ], + [ + [ + { + "name": "sheep_run_1", + "rect": [ + 27, + 20, + 176, + 115 + ], + "offset": [ + 1, + 2 + ], + "originalSize": [ + 228, + 159 + ], + "capInsets": [ + 0, + 0, + 0, + 0 + ] + } + ], + [ + 1 + ], + 0, + [ + 0 + ], + [ + 2 + ], + [ + 31 + ] + ], + [ + [ + [ + 33, + "multi-2d-sprite", + [ + { + "hash": 3894394603, + "record": null, + "name": "multi-2d-sprite|vs|fs", + "glsl3": { + "vert": "\nprecision highp float;\nuniform CCGlobal {\n mat4 cc_matView;\n mat4 cc_matViewInv;\n mat4 cc_matProj;\n mat4 cc_matProjInv;\n mat4 cc_matViewProj;\n mat4 cc_matViewProjInv;\n vec4 cc_cameraPos;\n vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_screenScale;\n};\nuniform CCLocal {\n mat4 cc_matWorld;\n mat4 cc_matWorldIT;\n};\nin vec3 a_position;\nin vec4 a_color;\nout vec4 v_color;\n#if USE_TEXTURE\nin vec2 a_uv0;\nout vec2 v_uv0;\n#if USE_MULTI_TEXTURE\nin float a_texId;\nout float v_texId;\n#endif\n#endif\nvoid main () {\n vec4 pos = vec4(a_position, 1);\n #if CC_USE_MODEL\n pos = cc_matViewProj * cc_matWorld * pos;\n #else\n pos = cc_matViewProj * pos;\n #endif\n #if USE_TEXTURE\n v_uv0 = a_uv0;\n #if USE_MULTI_TEXTURE\n v_texId = a_texId;\n #endif\n #endif\n v_color = a_color;\n gl_Position = pos;\n}", + "frag": "\nprecision highp float;\n#if USE_ALPHA_TEST\n uniform ALPHA_TEST {\n float alphaThreshold;\n };\n#endif\nvoid ALPHA_TEST (in vec4 color) {\n #if USE_ALPHA_TEST\n if (color.a < alphaThreshold) discard;\n #endif\n}\nvoid ALPHA_TEST (in float alpha) {\n #if USE_ALPHA_TEST\n if (alpha < alphaThreshold) discard;\n #endif\n}\nin vec4 v_color;\n#if USE_TEXTURE\nin vec2 v_uv0;\nuniform sampler2D texture;\n#if USE_MULTI_TEXTURE\nin float v_texId;\nuniform sampler2D texture2;\nuniform sampler2D texture3;\nuniform sampler2D texture4;\nuniform sampler2D texture5;\nuniform sampler2D texture6;\nuniform sampler2D texture7;\nuniform sampler2D texture8;\n#endif\n#endif\nvoid main () {\n vec4 o = vec4(1, 1, 1, 1);\n #if USE_TEXTURE\n #if USE_MULTI_TEXTURE\n if(v_texId < 1.0){\n vec4 texture_tmp = texture(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n o.a *= texture_tmp.a;\n #else\n o *= texture_tmp;\n #endif\n } else if(v_texId < 2.0){\n vec4 texture2_tmp = texture(texture2, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture2\n texture2_tmp.a *= texture(texture2, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture2_tmp.rgb * texture2_tmp.rgb);\n o.a *= texture2_tmp.a;\n #else\n o *= texture2_tmp;\n #endif\n } else if(v_texId < 3.0){\n vec4 texture3_tmp = texture(texture3, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture3\n texture3_tmp.a *= texture(texture3, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture3_tmp.rgb * texture3_tmp.rgb);\n o.a *= texture3_tmp.a;\n #else\n o *= texture3_tmp;\n #endif\n } else if(v_texId < 4.0){\n vec4 texture4_tmp = texture(texture4, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture4\n texture4_tmp.a *= texture(texture4, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture4_tmp.rgb * texture4_tmp.rgb);\n o.a *= texture4_tmp.a;\n #else\n o *= texture4_tmp;\n #endif\n } else if(v_texId < 5.0){\n vec4 texture5_tmp = texture(texture5, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture5\n texture5_tmp.a *= texture(texture5, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture5_tmp.rgb * texture5_tmp.rgb);\n o.a *= texture5_tmp.a;\n #else\n o *= texture5_tmp;\n #endif\n } else if(v_texId < 6.0){\n vec4 texture6_tmp = texture(texture6, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture6\n texture6_tmp.a *= texture(texture6, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture6_tmp.rgb * texture6_tmp.rgb);\n o.a *= texture6_tmp.a;\n #else\n o *= texture6_tmp;\n #endif\n } else if(v_texId < 7.0){\n vec4 texture7_tmp = texture(texture7, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture7\n texture7_tmp.a *= texture(texture7, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture7_tmp.rgb * texture7_tmp.rgb);\n o.a *= texture7_tmp.a;\n #else\n o *= texture7_tmp;\n #endif\n } else {\n vec4 texture8_tmp = texture(texture8, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture8\n texture8_tmp.a *= texture(texture8, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture8_tmp.rgb * texture8_tmp.rgb);\n o.a *= texture8_tmp.a;\n #else\n o *= texture8_tmp;\n #endif\n }\n #else\n vec4 texture_tmp = texture(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n o.a *= texture_tmp.a;\n #else\n o *= texture_tmp;\n #endif\n #endif\n #endif\n o *= v_color;\n ALPHA_TEST(o);\n gl_FragColor = o;\n}" + }, + "glsl1": { + "vert": "\nprecision highp float;\nuniform mat4 cc_matViewProj;\nuniform mat4 cc_matWorld;\nattribute vec3 a_position;\nattribute vec4 a_color;\nvarying vec4 v_color;\n#if USE_TEXTURE\nattribute vec2 a_uv0;\nvarying vec2 v_uv0;\n#if USE_MULTI_TEXTURE\nattribute float a_texId;\nvarying float v_texId;\n#endif\n#endif\nvoid main () {\n vec4 pos = vec4(a_position, 1);\n #if CC_USE_MODEL\n pos = cc_matViewProj * cc_matWorld * pos;\n #else\n pos = cc_matViewProj * pos;\n #endif\n #if USE_TEXTURE\n v_uv0 = a_uv0;\n #if USE_MULTI_TEXTURE\n v_texId = a_texId;\n #endif\n #endif\n v_color = a_color;\n gl_Position = pos;\n}", + "frag": "\nprecision highp float;\n#if USE_ALPHA_TEST\n uniform float alphaThreshold;\n#endif\nvoid ALPHA_TEST (in vec4 color) {\n #if USE_ALPHA_TEST\n if (color.a < alphaThreshold) discard;\n #endif\n}\nvoid ALPHA_TEST (in float alpha) {\n #if USE_ALPHA_TEST\n if (alpha < alphaThreshold) discard;\n #endif\n}\nvarying vec4 v_color;\n#if USE_TEXTURE\nvarying vec2 v_uv0;\nuniform sampler2D texture;\n#if USE_MULTI_TEXTURE\nvarying float v_texId;\nuniform sampler2D texture2;\nuniform sampler2D texture3;\nuniform sampler2D texture4;\nuniform sampler2D texture5;\nuniform sampler2D texture6;\nuniform sampler2D texture7;\nuniform sampler2D texture8;\n#endif\n#endif\nvoid main () {\n vec4 o = vec4(1, 1, 1, 1);\n #if USE_TEXTURE\n #if USE_MULTI_TEXTURE\n if(v_texId < 1.0){\n vec4 texture_tmp = texture2D(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture2D(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n o.a *= texture_tmp.a;\n #else\n o *= texture_tmp;\n #endif\n } else if(v_texId < 2.0){\n vec4 texture2_tmp = texture2D(texture2, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture2\n texture2_tmp.a *= texture2D(texture2, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture2_tmp.rgb * texture2_tmp.rgb);\n o.a *= texture2_tmp.a;\n #else\n o *= texture2_tmp;\n #endif\n } else if(v_texId < 3.0){\n vec4 texture3_tmp = texture2D(texture3, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture3\n texture3_tmp.a *= texture2D(texture3, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture3_tmp.rgb * texture3_tmp.rgb);\n o.a *= texture3_tmp.a;\n #else\n o *= texture3_tmp;\n #endif\n } else if(v_texId < 4.0){\n vec4 texture4_tmp = texture2D(texture4, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture4\n texture4_tmp.a *= texture2D(texture4, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture4_tmp.rgb * texture4_tmp.rgb);\n o.a *= texture4_tmp.a;\n #else\n o *= texture4_tmp;\n #endif\n } else if(v_texId < 5.0){\n vec4 texture5_tmp = texture2D(texture5, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture5\n texture5_tmp.a *= texture2D(texture5, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture5_tmp.rgb * texture5_tmp.rgb);\n o.a *= texture5_tmp.a;\n #else\n o *= texture5_tmp;\n #endif\n } else if(v_texId < 6.0){\n vec4 texture6_tmp = texture2D(texture6, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture6\n texture6_tmp.a *= texture2D(texture6, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture6_tmp.rgb * texture6_tmp.rgb);\n o.a *= texture6_tmp.a;\n #else\n o *= texture6_tmp;\n #endif\n } else if(v_texId < 7.0){\n vec4 texture7_tmp = texture2D(texture7, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture7\n texture7_tmp.a *= texture2D(texture7, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture7_tmp.rgb * texture7_tmp.rgb);\n o.a *= texture7_tmp.a;\n #else\n o *= texture7_tmp;\n #endif\n } else {\n vec4 texture8_tmp = texture2D(texture8, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture8\n texture8_tmp.a *= texture2D(texture8, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture8_tmp.rgb * texture8_tmp.rgb);\n o.a *= texture8_tmp.a;\n #else\n o *= texture8_tmp;\n #endif\n }\n #else\n vec4 texture_tmp = texture2D(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture2D(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n o.a *= texture_tmp.a;\n #else\n o *= texture_tmp;\n #endif\n #endif\n #endif\n o *= v_color;\n ALPHA_TEST(o);\n gl_FragColor = o;\n}" + }, + "builtins": { + "globals": { + "blocks": [ + { + "name": "CCGlobal", + "defines": [] + } + ], + "samplers": [] + }, + "locals": { + "blocks": [ + { + "name": "CCLocal", + "defines": [] + } + ], + "samplers": [] + } + }, + "defines": [ + { + "name": "USE_TEXTURE", + "type": "boolean", + "defines": [] + }, + { + "name": "USE_MULTI_TEXTURE", + "type": "boolean", + "defines": [ + "USE_TEXTURE" + ] + }, + { + "name": "CC_USE_MODEL", + "type": "boolean", + "defines": [] + }, + { + "name": "USE_ALPHA_TEST", + "type": "boolean", + "defines": [] + }, + { + "name": "CC_USE_ALPHA_ATLAS_texture", + "type": "boolean", + "defines": [ + "USE_TEXTURE" + ] + }, + { + "name": "INPUT_IS_GAMMA", + "type": "boolean", + "defines": [ + "USE_TEXTURE" + ] + }, + { + "name": "CC_USE_ALPHA_ATLAS_texture2", + "type": "boolean", + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "CC_USE_ALPHA_ATLAS_texture3", + "type": "boolean", + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "CC_USE_ALPHA_ATLAS_texture4", + "type": "boolean", + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "CC_USE_ALPHA_ATLAS_texture5", + "type": "boolean", + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "CC_USE_ALPHA_ATLAS_texture6", + "type": "boolean", + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "CC_USE_ALPHA_ATLAS_texture7", + "type": "boolean", + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "CC_USE_ALPHA_ATLAS_texture8", + "type": "boolean", + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + } + ], + "blocks": [ + { + "name": "ALPHA_TEST", + "binding": 0, + "members": [ + { + "name": "alphaThreshold", + "type": 13, + "count": 1 + } + ], + "defines": [ + "USE_ALPHA_TEST" + ] + } + ], + "samplers": [ + { + "name": "texture", + "type": 29, + "count": 1, + "binding": 30, + "defines": [ + "USE_TEXTURE" + ] + }, + { + "name": "texture2", + "type": 29, + "count": 1, + "binding": 31, + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "texture3", + "type": 29, + "count": 1, + "binding": 32, + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "texture4", + "type": 29, + "count": 1, + "binding": 33, + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "texture5", + "type": 29, + "count": 1, + "binding": 34, + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "texture6", + "type": 29, + "count": 1, + "binding": 35, + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "texture7", + "type": 29, + "count": 1, + "binding": 36, + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "texture8", + "type": 29, + "count": 1, + "binding": 37, + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + } + ] + } + ], + [ + { + "passes": [ + { + "program": "multi-2d-sprite|vs|fs", + "blendState": { + "targets": [ + { + "blend": true + } + ] + }, + "rasterizerState": { + "cullMode": 0 + }, + "properties": { + "texture": { + "value": "white", + "type": 29 + }, + "texture2": { + "value": "white", + "type": 29 + }, + "texture3": { + "value": "white", + "type": 29 + }, + "texture4": { + "value": "white", + "type": 29 + }, + "texture5": { + "value": "white", + "type": 29 + }, + "texture6": { + "value": "white", + "type": 29 + }, + "texture7": { + "value": "white", + "type": 29 + }, + "texture8": { + "value": "white", + "type": 29 + }, + "alphaThreshold": { + "type": 13, + "value": [ + 0.5 + ] + } + } + } + ] + } + ] + ] + ], + 0, + 0, + [], + [], + [] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,1", + -1 + ], + [ + 0 + ], + 0, + [], + [], + [] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,1", + -1 + ], + [ + 0 + ], + 0, + [], + [], + [] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,1", + -1 + ], + [ + 0 + ], + 0, + [], + [], + [] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,0", + -1 + ], + [ + 0 + ], + 0, + [], + [], + [] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,0", + -1 + ], + [ + 0 + ], + 0, + [], + [], + [] + ], + [ + [ + [ + 44, + "normalFont", + 64, + { + "commonHeight": 72, + "fontSize": 64, + "atlasName": "normalFont.png", + "fontDefDictionary": { + "32": { + "xOffset": 0, + "yOffset": 58, + "xAdvance": 18, + "rect": { + "x": 446, + "y": 710, + "width": 0, + "height": 0 + } + }, + "33": { + "xOffset": 6, + "yOffset": 11, + "xAdvance": 18, + "rect": { + "x": 328, + "y": 661, + "width": 8, + "height": 47 + } + }, + "34": { + "xOffset": 3, + "yOffset": 10, + "xAdvance": 23, + "rect": { + "x": 284, + "y": 710, + "width": 18, + "height": 18 + } + }, + "35": { + "xOffset": 1, + "yOffset": 10, + "xAdvance": 36, + "rect": { + "x": 221, + "y": 560, + "width": 36, + "height": 49 + } + }, + "36": { + "xOffset": 2, + "yOffset": 7, + "xAdvance": 36, + "rect": { + "x": 59, + "y": 500, + "width": 32, + "height": 58 + } + }, + "37": { + "xOffset": 4, + "yOffset": 10, + "xAdvance": 57, + "rect": { + "x": 661, + "y": 500, + "width": 51, + "height": 50 + } + }, + "38": { + "xOffset": 3, + "yOffset": 10, + "xAdvance": 43, + "rect": { + "x": 139, + "y": 560, + "width": 40, + "height": 49 + } + }, + "39": { + "xOffset": 3, + "yOffset": 10, + "xAdvance": 12, + "rect": { + "x": 304, + "y": 710, + "width": 8, + "height": 18 + } + }, + "40": { + "xOffset": 4, + "yOffset": 9, + "xAdvance": 21, + "rect": { + "x": 109, + "y": 2, + "width": 17, + "height": 62 + } + }, + "41": { + "xOffset": 4, + "yOffset": 9, + "xAdvance": 21, + "rect": { + "x": 128, + "y": 2, + "width": 17, + "height": 62 + } + }, + "42": { + "xOffset": 2, + "yOffset": 10, + "xAdvance": 25, + "rect": { + "x": 260, + "y": 710, + "width": 22, + "height": 21 + } + }, + "43": { + "xOffset": 4, + "yOffset": 19, + "xAdvance": 37, + "rect": { + "x": 162, + "y": 710, + "width": 32, + "height": 32 + } + }, + "44": { + "xOffset": 5, + "yOffset": 50, + "xAdvance": 18, + "rect": { + "x": 314, + "y": 710, + "width": 8, + "height": 17 + } + }, + "45": { + "xOffset": 2, + "yOffset": 37, + "xAdvance": 21, + "rect": { + "x": 384, + "y": 710, + "width": 19, + "height": 7 + } + }, + "46": { + "xOffset": 6, + "yOffset": 50, + "xAdvance": 18, + "rect": { + "x": 374, + "y": 710, + "width": 8, + "height": 8 + } + }, + "47": { + "xOffset": 0, + "yOffset": 10, + "xAdvance": 18, + "rect": { + "x": 292, + "y": 560, + "width": 19, + "height": 49 + } + }, + "48": { + "xOffset": 3, + "yOffset": 11, + "xAdvance": 36, + "rect": { + "x": 578, + "y": 560, + "width": 31, + "height": 48 + } + }, + "49": { + "xOffset": 7, + "yOffset": 10, + "xAdvance": 36, + "rect": { + "x": 86, + "y": 611, + "width": 18, + "height": 48 + } + }, + "50": { + "xOffset": 2, + "yOffset": 10, + "xAdvance": 36, + "rect": { + "x": 374, + "y": 560, + "width": 32, + "height": 48 + } + }, + "51": { + "xOffset": 3, + "yOffset": 11, + "xAdvance": 36, + "rect": { + "x": 408, + "y": 560, + "width": 32, + "height": 48 + } + }, + "52": { + "xOffset": 1, + "yOffset": 11, + "xAdvance": 36, + "rect": { + "x": 78, + "y": 661, + "width": 33, + "height": 47 + } + }, + "53": { + "xOffset": 3, + "yOffset": 12, + "xAdvance": 36, + "rect": { + "x": 113, + "y": 661, + "width": 32, + "height": 47 + } + }, + "54": { + "xOffset": 2, + "yOffset": 11, + "xAdvance": 36, + "rect": { + "x": 442, + "y": 560, + "width": 32, + "height": 48 + } + }, + "55": { + "xOffset": 3, + "yOffset": 11, + "xAdvance": 36, + "rect": { + "x": 181, + "y": 661, + "width": 31, + "height": 47 + } + }, + "56": { + "xOffset": 3, + "yOffset": 11, + "xAdvance": 36, + "rect": { + "x": 476, + "y": 560, + "width": 32, + "height": 48 + } + }, + "57": { + "xOffset": 3, + "yOffset": 11, + "xAdvance": 36, + "rect": { + "x": 510, + "y": 560, + "width": 32, + "height": 48 + } + }, + "58": { + "xOffset": 6, + "yOffset": 23, + "xAdvance": 18, + "rect": { + "x": 84, + "y": 710, + "width": 8, + "height": 35 + } + }, + "59": { + "xOffset": 5, + "yOffset": 23, + "xAdvance": 18, + "rect": { + "x": 366, + "y": 661, + "width": 8, + "height": 44 + } + }, + "60": { + "xOffset": 4, + "yOffset": 18, + "xAdvance": 37, + "rect": { + "x": 94, + "y": 710, + "width": 32, + "height": 33 + } + }, + "61": { + "xOffset": 4, + "yOffset": 24, + "xAdvance": 37, + "rect": { + "x": 226, + "y": 710, + "width": 32, + "height": 21 + } + }, + "62": { + "xOffset": 4, + "yOffset": 18, + "xAdvance": 37, + "rect": { + "x": 128, + "y": 710, + "width": 32, + "height": 33 + } + }, + "63": { + "xOffset": 3, + "yOffset": 10, + "xAdvance": 36, + "rect": { + "x": 611, + "y": 560, + "width": 31, + "height": 48 + } + }, + "64": { + "xOffset": 3, + "yOffset": 9, + "xAdvance": 65, + "rect": { + "x": 2, + "y": 2, + "width": 61, + "height": 62 + } + }, + "65": { + "xOffset": 0, + "yOffset": 11, + "xAdvance": 43, + "rect": { + "x": 215, + "y": 611, + "width": 44, + "height": 47 + } + }, + "66": { + "xOffset": 5, + "yOffset": 11, + "xAdvance": 43, + "rect": { + "x": 683, + "y": 611, + "width": 36, + "height": 47 + } + }, + "67": { + "xOffset": 3, + "yOffset": 10, + "xAdvance": 46, + "rect": { + "x": 95, + "y": 560, + "width": 42, + "height": 49 + } + }, + "68": { + "xOffset": 5, + "yOffset": 11, + "xAdvance": 46, + "rect": { + "x": 442, + "y": 611, + "width": 39, + "height": 47 + } + }, + "69": { + "xOffset": 5, + "yOffset": 11, + "xAdvance": 43, + "rect": { + "x": 2, + "y": 661, + "width": 36, + "height": 47 + } + }, + "70": { + "xOffset": 5, + "yOffset": 11, + "xAdvance": 39, + "rect": { + "x": 147, + "y": 661, + "width": 32, + "height": 47 + } + }, + "71": { + "xOffset": 3, + "yOffset": 10, + "xAdvance": 50, + "rect": { + "x": 49, + "y": 560, + "width": 44, + "height": 49 + } + }, + "72": { + "xOffset": 5, + "yOffset": 11, + "xAdvance": 46, + "rect": { + "x": 644, + "y": 611, + "width": 37, + "height": 47 + } + }, + "73": { + "xOffset": 6, + "yOffset": 11, + "xAdvance": 18, + "rect": { + "x": 338, + "y": 661, + "width": 8, + "height": 47 + } + }, + "74": { + "xOffset": 2, + "yOffset": 11, + "xAdvance": 32, + "rect": { + "x": 34, + "y": 611, + "width": 27, + "height": 48 + } + }, + "75": { + "xOffset": 5, + "yOffset": 11, + "xAdvance": 43, + "rect": { + "x": 483, + "y": 611, + "width": 39, + "height": 47 + } + }, + "76": { + "xOffset": 5, + "yOffset": 11, + "xAdvance": 36, + "rect": { + "x": 214, + "y": 661, + "width": 30, + "height": 47 + } + }, + "77": { + "xOffset": 5, + "yOffset": 11, + "xAdvance": 53, + "rect": { + "x": 168, + "y": 611, + "width": 45, + "height": 47 + } + }, + "78": { + "xOffset": 5, + "yOffset": 11, + "xAdvance": 46, + "rect": { + "x": 524, + "y": 611, + "width": 38, + "height": 47 + } + }, + "79": { + "xOffset": 3, + "yOffset": 10, + "xAdvance": 50, + "rect": { + "x": 2, + "y": 560, + "width": 45, + "height": 49 + } + }, + "80": { + "xOffset": 5, + "yOffset": 11, + "xAdvance": 43, + "rect": { + "x": 40, + "y": 661, + "width": 36, + "height": 47 + } + }, + "81": { + "xOffset": 3, + "yOffset": 10, + "xAdvance": 50, + "rect": { + "x": 613, + "y": 500, + "width": 46, + "height": 52 + } + }, + "82": { + "xOffset": 5, + "yOffset": 11, + "xAdvance": 46, + "rect": { + "x": 398, + "y": 611, + "width": 42, + "height": 47 + } + }, + "83": { + "xOffset": 3, + "yOffset": 10, + "xAdvance": 43, + "rect": { + "x": 181, + "y": 560, + "width": 38, + "height": 49 + } + }, + "84": { + "xOffset": 2, + "yOffset": 11, + "xAdvance": 39, + "rect": { + "x": 564, + "y": 611, + "width": 38, + "height": 47 + } + }, + "85": { + "xOffset": 5, + "yOffset": 11, + "xAdvance": 46, + "rect": { + "x": 334, + "y": 560, + "width": 38, + "height": 48 + } + }, + "86": { + "xOffset": 0, + "yOffset": 11, + "xAdvance": 43, + "rect": { + "x": 353, + "y": 611, + "width": 43, + "height": 47 + } + }, + "87": { + "xOffset": 1, + "yOffset": 11, + "xAdvance": 60, + "rect": { + "x": 106, + "y": 611, + "width": 60, + "height": 47 + } + }, + "88": { + "xOffset": 0, + "yOffset": 11, + "xAdvance": 43, + "rect": { + "x": 261, + "y": 611, + "width": 44, + "height": 47 + } + }, + "89": { + "xOffset": 0, + "yOffset": 11, + "xAdvance": 43, + "rect": { + "x": 307, + "y": 611, + "width": 44, + "height": 47 + } + }, + "90": { + "xOffset": 1, + "yOffset": 11, + "xAdvance": 39, + "rect": { + "x": 604, + "y": 611, + "width": 38, + "height": 47 + } + }, + "91": { + "xOffset": 4, + "yOffset": 11, + "xAdvance": 18, + "rect": { + "x": 330, + "y": 377, + "width": 14, + "height": 60 + } + }, + "92": { + "xOffset": 0, + "yOffset": 10, + "xAdvance": 18, + "rect": { + "x": 313, + "y": 560, + "width": 19, + "height": 49 + } + }, + "93": { + "xOffset": 1, + "yOffset": 11, + "xAdvance": 18, + "rect": { + "x": 346, + "y": 377, + "width": 14, + "height": 60 + } + }, + "94": { + "xOffset": 2, + "yOffset": 9, + "xAdvance": 30, + "rect": { + "x": 196, + "y": 710, + "width": 28, + "height": 27 + } + }, + "95": { + "xOffset": -1, + "yOffset": 65, + "xAdvance": 36, + "rect": { + "x": 405, + "y": 710, + "width": 39, + "height": 6 + } + }, + "96": { + "xOffset": 3, + "yOffset": 11, + "xAdvance": 21, + "rect": { + "x": 359, + "y": 710, + "width": 13, + "height": 10 + } + }, + "97": { + "xOffset": 2, + "yOffset": 23, + "xAdvance": 36, + "rect": { + "x": 411, + "y": 661, + "width": 32, + "height": 36 + } + }, + "98": { + "xOffset": 4, + "yOffset": 11, + "xAdvance": 36, + "rect": { + "x": 644, + "y": 560, + "width": 30, + "height": 48 + } + }, + "99": { + "xOffset": 3, + "yOffset": 23, + "xAdvance": 32, + "rect": { + "x": 479, + "y": 661, + "width": 30, + "height": 36 + } + }, + "100": { + "xOffset": 2, + "yOffset": 11, + "xAdvance": 36, + "rect": { + "x": 676, + "y": 560, + "width": 30, + "height": 48 + } + }, + "101": { + "xOffset": 2, + "yOffset": 23, + "xAdvance": 36, + "rect": { + "x": 445, + "y": 661, + "width": 32, + "height": 36 + } + }, + "102": { + "xOffset": 1, + "yOffset": 10, + "xAdvance": 18, + "rect": { + "x": 63, + "y": 611, + "width": 21, + "height": 48 + } + }, + "103": { + "xOffset": 2, + "yOffset": 22, + "xAdvance": 36, + "rect": { + "x": 259, + "y": 560, + "width": 31, + "height": 49 + } + }, + "104": { + "xOffset": 4, + "yOffset": 11, + "xAdvance": 36, + "rect": { + "x": 246, + "y": 661, + "width": 29, + "height": 47 + } + }, + "105": { + "xOffset": 4, + "yOffset": 11, + "xAdvance": 14, + "rect": { + "x": 348, + "y": 661, + "width": 7, + "height": 47 + } + }, + "106": { + "xOffset": -3, + "yOffset": 10, + "xAdvance": 14, + "rect": { + "x": 660, + "y": 66, + "width": 14, + "height": 61 + } + }, + "107": { + "xOffset": 4, + "yOffset": 11, + "xAdvance": 32, + "rect": { + "x": 277, + "y": 661, + "width": 29, + "height": 47 + } + }, + "108": { + "xOffset": 4, + "yOffset": 11, + "xAdvance": 14, + "rect": { + "x": 357, + "y": 661, + "width": 7, + "height": 47 + } + }, + "109": { + "xOffset": 4, + "yOffset": 23, + "xAdvance": 53, + "rect": { + "x": 591, + "y": 661, + "width": 46, + "height": 35 + } + }, + "110": { + "xOffset": 4, + "yOffset": 23, + "xAdvance": 36, + "rect": { + "x": 2, + "y": 710, + "width": 28, + "height": 35 + } + }, + "111": { + "xOffset": 2, + "yOffset": 23, + "xAdvance": 36, + "rect": { + "x": 376, + "y": 661, + "width": 33, + "height": 36 + } + }, + "112": { + "xOffset": 4, + "yOffset": 23, + "xAdvance": 36, + "rect": { + "x": 708, + "y": 560, + "width": 30, + "height": 48 + } + }, + "113": { + "xOffset": 2, + "yOffset": 23, + "xAdvance": 36, + "rect": { + "x": 2, + "y": 611, + "width": 30, + "height": 48 + } + }, + "114": { + "xOffset": 4, + "yOffset": 23, + "xAdvance": 21, + "rect": { + "x": 62, + "y": 710, + "width": 20, + "height": 35 + } + }, + "115": { + "xOffset": 2, + "yOffset": 23, + "xAdvance": 32, + "rect": { + "x": 511, + "y": 661, + "width": 29, + "height": 36 + } + }, + "116": { + "xOffset": 1, + "yOffset": 11, + "xAdvance": 18, + "rect": { + "x": 308, + "y": 661, + "width": 18, + "height": 47 + } + }, + "117": { + "xOffset": 4, + "yOffset": 24, + "xAdvance": 36, + "rect": { + "x": 32, + "y": 710, + "width": 28, + "height": 35 + } + }, + "118": { + "xOffset": 1, + "yOffset": 23, + "xAdvance": 32, + "rect": { + "x": 674, + "y": 661, + "width": 32, + "height": 35 + } + }, + "119": { + "xOffset": 0, + "yOffset": 23, + "xAdvance": 46, + "rect": { + "x": 542, + "y": 661, + "width": 47, + "height": 35 + } + }, + "120": { + "xOffset": 0, + "yOffset": 23, + "xAdvance": 32, + "rect": { + "x": 639, + "y": 661, + "width": 33, + "height": 35 + } + }, + "121": { + "xOffset": 1, + "yOffset": 23, + "xAdvance": 32, + "rect": { + "x": 544, + "y": 560, + "width": 32, + "height": 48 + } + }, + "122": { + "xOffset": 1, + "yOffset": 23, + "xAdvance": 32, + "rect": { + "x": 708, + "y": 661, + "width": 31, + "height": 35 + } + }, + "123": { + "xOffset": 2, + "yOffset": 9, + "xAdvance": 21, + "rect": { + "x": 65, + "y": 2, + "width": 20, + "height": 62 + } + }, + "124": { + "xOffset": 6, + "yOffset": 9, + "xAdvance": 17, + "rect": { + "x": 147, + "y": 2, + "width": 6, + "height": 62 + } + }, + "125": { + "xOffset": 1, + "yOffset": 9, + "xAdvance": 21, + "rect": { + "x": 87, + "y": 2, + "width": 20, + "height": 62 + } + }, + "126": { + "xOffset": 3, + "yOffset": 29, + "xAdvance": 37, + "rect": { + "x": 324, + "y": 710, + "width": 33, + "height": 12 + } + }, + "19978": { + "xOffset": 4, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 476, + "y": 439, + "width": 58, + "height": 58 + } + }, + "20010": { + "xOffset": 2, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 676, + "y": 66, + "width": 61, + "height": 60 + } + }, + "20026": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 118, + "y": 377, + "width": 55, + "height": 60 + } + }, + "20080": { + "xOffset": 5, + "yOffset": 8, + "xAdvance": 64, + "rect": { + "x": 277, + "y": 500, + "width": 57, + "height": 57 + } + }, + "20154": { + "xOffset": 2, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 2, + "y": 129, + "width": 61, + "height": 60 + } + }, + "20215": { + "xOffset": 2, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 65, + "y": 129, + "width": 61, + "height": 60 + } + }, + "20302": { + "xOffset": 2, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 128, + "y": 129, + "width": 61, + "height": 60 + } + }, + "20313": { + "xOffset": 2, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 362, + "y": 377, + "width": 61, + "height": 59 + } + }, + "20323": { + "xOffset": 2, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 307, + "y": 66, + "width": 58, + "height": 61 + } + }, + "20803": { + "xOffset": 3, + "yOffset": 8, + "xAdvance": 64, + "rect": { + "x": 155, + "y": 500, + "width": 59, + "height": 57 + } + }, + "20805": { + "xOffset": 4, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 490, + "y": 253, + "width": 58, + "height": 60 + } + }, + "20813": { + "xOffset": 3, + "yOffset": 3, + "xAdvance": 64, + "rect": { + "x": 2, + "y": 66, + "width": 59, + "height": 61 + } + }, + "20853": { + "xOffset": 3, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 2, + "y": 253, + "width": 59, + "height": 60 + } + }, + "20869": { + "xOffset": 7, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 175, + "y": 377, + "width": 52, + "height": 60 + } + }, + "20891": { + "xOffset": 4, + "yOffset": 7, + "xAdvance": 64, + "rect": { + "x": 656, + "y": 439, + "width": 57, + "height": 58 + } + }, + "20986": { + "xOffset": 7, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 229, + "y": 377, + "width": 52, + "height": 60 + } + }, + "20998": { + "xOffset": 3, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 632, + "y": 129, + "width": 60, + "height": 60 + } + }, + "21015": { + "xOffset": 3, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 2, + "y": 439, + "width": 57, + "height": 59 + } + }, + "21040": { + "xOffset": 3, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 61, + "y": 439, + "width": 57, + "height": 59 + } + }, + "21069": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 63, + "y": 66, + "width": 59, + "height": 61 + } + }, + "21097": { + "xOffset": 3, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 542, + "y": 315, + "width": 57, + "height": 60 + } + }, + "21160": { + "xOffset": 3, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 550, + "y": 253, + "width": 58, + "height": 60 + } + }, + "21215": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 407, + "y": 2, + "width": 60, + "height": 61 + } + }, + "21319": { + "xOffset": 4, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 610, + "y": 253, + "width": 58, + "height": 60 + } + }, + "21330": { + "xOffset": 4, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 670, + "y": 253, + "width": 58, + "height": 60 + } + }, + "21407": { + "xOffset": 3, + "yOffset": 7, + "xAdvance": 64, + "rect": { + "x": 216, + "y": 500, + "width": 59, + "height": 57 + } + }, + "21475": { + "xOffset": 9, + "yOffset": 11, + "xAdvance": 64, + "rect": { + "x": 563, + "y": 500, + "width": 48, + "height": 52 + } + }, + "21487": { + "xOffset": 4, + "yOffset": 8, + "xAdvance": 64, + "rect": { + "x": 336, + "y": 500, + "width": 59, + "height": 56 + } + }, + "21518": { + "xOffset": 2, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 2, + "y": 191, + "width": 60, + "height": 60 + } + }, + "22478": { + "xOffset": 2, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 191, + "y": 129, + "width": 61, + "height": 60 + } + }, + "22681": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 64, + "y": 191, + "width": 60, + "height": 60 + } + }, + "22823": { + "xOffset": 3, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 126, + "y": 191, + "width": 60, + "height": 60 + } + }, + "22825": { + "xOffset": 3, + "yOffset": 8, + "xAdvance": 64, + "rect": { + "x": 93, + "y": 500, + "width": 60, + "height": 57 + } + }, + "23041": { + "xOffset": 3, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 488, + "y": 377, + "width": 60, + "height": 59 + } + }, + "23432": { + "xOffset": 5, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 2, + "y": 377, + "width": 56, + "height": 60 + } + }, + "23448": { + "xOffset": 5, + "yOffset": 3, + "xAdvance": 64, + "rect": { + "x": 546, + "y": 66, + "width": 55, + "height": 61 + } + }, + "23453": { + "xOffset": 5, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 2, + "y": 500, + "width": 55, + "height": 58 + } + }, + "23567": { + "xOffset": 2, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 425, + "y": 377, + "width": 61, + "height": 59 + } + }, + "24050": { + "xOffset": 6, + "yOffset": 7, + "xAdvance": 64, + "rect": { + "x": 505, + "y": 500, + "width": 56, + "height": 55 + } + }, + "24065": { + "xOffset": 4, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 60, + "y": 377, + "width": 56, + "height": 60 + } + }, + "24182": { + "xOffset": 4, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 124, + "y": 66, + "width": 59, + "height": 61 + } + }, + "24314": { + "xOffset": 4, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 63, + "y": 253, + "width": 59, + "height": 60 + } + }, + "24320": { + "xOffset": 4, + "yOffset": 8, + "xAdvance": 64, + "rect": { + "x": 397, + "y": 500, + "width": 58, + "height": 56 + } + }, + "24339": { + "xOffset": 11, + "yOffset": 8, + "xAdvance": 64, + "rect": { + "x": 457, + "y": 500, + "width": 46, + "height": 56 + } + }, + "24403": { + "xOffset": 7, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 178, + "y": 439, + "width": 50, + "height": 59 + } + }, + "24449": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 254, + "y": 129, + "width": 61, + "height": 60 + } + }, + "24471": { + "xOffset": 2, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 188, + "y": 191, + "width": 60, + "height": 60 + } + }, + "25552": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 250, + "y": 191, + "width": 60, + "height": 60 + } + }, + "25910": { + "xOffset": 4, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 185, + "y": 66, + "width": 59, + "height": 61 + } + }, + "25928": { + "xOffset": 2, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 155, + "y": 2, + "width": 61, + "height": 61 + } + }, + "26009": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 317, + "y": 129, + "width": 61, + "height": 60 + } + }, + "26102": { + "xOffset": 5, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 673, + "y": 377, + "width": 58, + "height": 59 + } + }, + "26361": { + "xOffset": 4, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 2, + "y": 315, + "width": 58, + "height": 60 + } + }, + "26368": { + "xOffset": 4, + "yOffset": 7, + "xAdvance": 64, + "rect": { + "x": 536, + "y": 439, + "width": 58, + "height": 58 + } + }, + "26395": { + "xOffset": 4, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 120, + "y": 439, + "width": 56, + "height": 59 + } + }, + "26408": { + "xOffset": 4, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 62, + "y": 315, + "width": 58, + "height": 60 + } + }, + "26426": { + "xOffset": 2, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 380, + "y": 129, + "width": 61, + "height": 60 + } + }, + "26448": { + "xOffset": 2, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 124, + "y": 253, + "width": 59, + "height": 60 + } + }, + "26524": { + "xOffset": 3, + "yOffset": 6, + "xAdvance": 64, + "rect": { + "x": 230, + "y": 439, + "width": 60, + "height": 58 + } + }, + "27425": { + "xOffset": 2, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 218, + "y": 2, + "width": 61, + "height": 61 + } + }, + "27493": { + "xOffset": 4, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 367, + "y": 66, + "width": 58, + "height": 61 + } + }, + "27494": { + "xOffset": 3, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 550, + "y": 377, + "width": 60, + "height": 59 + } + }, + "27599": { + "xOffset": 3, + "yOffset": 3, + "xAdvance": 64, + "rect": { + "x": 281, + "y": 2, + "width": 61, + "height": 61 + } + }, + "27963": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 185, + "y": 253, + "width": 59, + "height": 60 + } + }, + "28608": { + "xOffset": 2, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 443, + "y": 129, + "width": 61, + "height": 60 + } + }, + "28857": { + "xOffset": 3, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 312, + "y": 191, + "width": 60, + "height": 60 + } + }, + "31181": { + "xOffset": 2, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 122, + "y": 315, + "width": 58, + "height": 60 + } + }, + "31526": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 246, + "y": 253, + "width": 59, + "height": 60 + } + }, + "31569": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 307, + "y": 253, + "width": 59, + "height": 60 + } + }, + "31574": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 469, + "y": 2, + "width": 60, + "height": 61 + } + }, + "31665": { + "xOffset": 2, + "yOffset": 3, + "xAdvance": 64, + "rect": { + "x": 531, + "y": 2, + "width": 60, + "height": 61 + } + }, + "31918": { + "xOffset": 2, + "yOffset": 3, + "xAdvance": 64, + "rect": { + "x": 344, + "y": 2, + "width": 61, + "height": 61 + } + }, + "32043": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 182, + "y": 315, + "width": 58, + "height": 60 + } + }, + "32418": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 354, + "y": 439, + "width": 59, + "height": 58 + } + }, + "32493": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 593, + "y": 2, + "width": 60, + "height": 61 + } + }, + "32511": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 374, + "y": 191, + "width": 60, + "height": 60 + } + }, + "32791": { + "xOffset": 2, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 436, + "y": 191, + "width": 60, + "height": 60 + } + }, + "33258": { + "xOffset": 10, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 283, + "y": 377, + "width": 45, + "height": 60 + } + }, + "33457": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 246, + "y": 66, + "width": 59, + "height": 61 + } + }, + "33609": { + "xOffset": 4, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 242, + "y": 315, + "width": 58, + "height": 60 + } + }, + "33719": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 368, + "y": 253, + "width": 59, + "height": 60 + } + }, + "33829": { + "xOffset": 4, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 601, + "y": 315, + "width": 57, + "height": 60 + } + }, + "34917": { + "xOffset": 2, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 498, + "y": 191, + "width": 60, + "height": 60 + } + }, + "35745": { + "xOffset": 3, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 560, + "y": 191, + "width": 60, + "height": 60 + } + }, + "36141": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 302, + "y": 315, + "width": 58, + "height": 60 + } + }, + "36153": { + "xOffset": 5, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 603, + "y": 66, + "width": 55, + "height": 61 + } + }, + "36824": { + "xOffset": 4, + "yOffset": 6, + "xAdvance": 64, + "rect": { + "x": 612, + "y": 377, + "width": 59, + "height": 59 + } + }, + "36896": { + "xOffset": 3, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 429, + "y": 253, + "width": 59, + "height": 60 + } + }, + "37327": { + "xOffset": 3, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 415, + "y": 439, + "width": 59, + "height": 58 + } + }, + "37329": { + "xOffset": 3, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 292, + "y": 439, + "width": 60, + "height": 58 + } + }, + "38047": { + "xOffset": 2, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 362, + "y": 315, + "width": 58, + "height": 60 + } + }, + "38081": { + "xOffset": 2, + "yOffset": 5, + "xAdvance": 64, + "rect": { + "x": 506, + "y": 129, + "width": 61, + "height": 60 + } + }, + "38134": { + "xOffset": 3, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 622, + "y": 191, + "width": 60, + "height": 60 + } + }, + "38228": { + "xOffset": 2, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 655, + "y": 2, + "width": 60, + "height": 61 + } + }, + "38431": { + "xOffset": 6, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 422, + "y": 315, + "width": 58, + "height": 60 + } + }, + "38450": { + "xOffset": 5, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 487, + "y": 66, + "width": 57, + "height": 61 + } + }, + "38477": { + "xOffset": 5, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 482, + "y": 315, + "width": 58, + "height": 60 + } + }, + "38480": { + "xOffset": 5, + "yOffset": 6, + "xAdvance": 64, + "rect": { + "x": 596, + "y": 439, + "width": 58, + "height": 58 + } + }, + "38543": { + "xOffset": 5, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 660, + "y": 315, + "width": 57, + "height": 60 + } + }, + "38599": { + "xOffset": 3, + "yOffset": 3, + "xAdvance": 64, + "rect": { + "x": 427, + "y": 66, + "width": 58, + "height": 61 + } + }, + "39569": { + "xOffset": 2, + "yOffset": 4, + "xAdvance": 64, + "rect": { + "x": 569, + "y": 129, + "width": 61, + "height": 60 + } + } + }, + "kerningDict": { + "2097217": -3, + "2097236": -1, + "2097241": -1, + "3211313": -4, + "4259872": -3, + "4259924": -4, + "4259926": -4, + "4259927": -2, + "4259929": -4, + "4259958": -1, + "4259959": -1, + "4259961": -1, + "4587564": -7, + "4587566": -7, + "4587585": -3, + "4980768": -2, + "4980820": -4, + "4980822": -4, + "4980823": -4, + "4980825": -4, + "4980857": -2, + "5242912": -1, + "5242924": -8, + "5242926": -8, + "5242945": -4, + "5374036": -1, + "5374038": -1, + "5374039": -1, + "5374041": -1, + "5505056": -1, + "5505068": -7, + "5505069": -3, + "5505070": -7, + "5505082": -7, + "5505083": -7, + "5505089": -4, + "5505103": -1, + "5505121": -7, + "5505123": -7, + "5505125": -7, + "5505129": -2, + "5505135": -7, + "5505138": -2, + "5505139": -7, + "5505141": -2, + "5505143": -3, + "5505145": -3, + "5636140": -5, + "5636141": -3, + "5636142": -5, + "5636154": -2, + "5636155": -2, + "5636161": -4, + "5636193": -4, + "5636197": -3, + "5636201": -1, + "5636207": -3, + "5636210": -2, + "5636213": -2, + "5636217": -2, + "5701676": -3, + "5701677": -1, + "5701678": -3, + "5701690": -1, + "5701691": -1, + "5701697": -2, + "5701729": -2, + "5701733": -1, + "5701743": -1, + "5701746": -1, + "5701749": -1, + "5832736": -1, + "5832748": -8, + "5832749": -5, + "5832750": -8, + "5832762": -3, + "5832763": -4, + "5832769": -4, + "5832801": -4, + "5832805": -5, + "5832809": -2, + "5832815": -5, + "5832816": -4, + "5832817": -5, + "5832821": -3, + "5832822": -3, + "6684774": -1, + "7471148": -3, + "7471150": -3, + "7733292": -4, + "7733294": -4, + "7798828": -3, + "7798830": -3, + "7929900": -4, + "7929902": -4 + } + } + ] + ], + 0, + 0, + [ + 0 + ], + [ + 21 + ], + [ + 32 + ] + ], + [ + [ + { + "name": "1655112624336", + "rect": [ + 0, + 0, + 564, + 882 + ], + "offset": [ + 0, + 0 + ], + "originalSize": [ + 564, + 882 + ], + "capInsets": [ + 192, + 176, + 198, + 155 + ] + } + ], + [ + 1 + ], + 0, + [ + 0 + ], + [ + 2 + ], + [ + 6 + ] + ], + [ + [ + { + "name": "default_sprite", + "rect": [ + 0, + 2, + 40, + 36 + ], + "offset": [ + 0, + 0 + ], + "originalSize": [ + 40, + 40 + ], + "capInsets": [ + 0, + 0, + 0, + 0 + ] + } + ], + [ + 1 + ], + 0, + [ + 0 + ], + [ + 2 + ], + [ + 3 + ] + ], + [ + [ + { + "name": "sheep_down_0", + "rect": [ + 2, + 61, + 224, + 87 + ], + "offset": [ + 0, + -25 + ], + "originalSize": [ + 228, + 159 + ], + "capInsets": [ + 0, + 0, + 0, + 0 + ] + } + ], + [ + 1 + ], + 0, + [ + 0 + ], + [ + 2 + ], + [ + 33 + ] + ], + [ + [ + { + "name": "normalFont", + "rect": [ + 2, + 2, + 737, + 742 + ], + "offset": [ + -0.5, + 20 + ], + "originalSize": [ + 742, + 786 + ], + "capInsets": [ + 0, + 0, + 0, + 0 + ] + } + ], + [ + 1 + ], + 0, + [ + 0 + ], + [ + 2 + ], + [ + 7 + ] + ], + [ + [ + { + "name": "1655112479313", + "rect": [ + 0, + 0, + 402, + 370 + ], + "offset": [ + 0, + 0 + ], + "originalSize": [ + 402, + 370 + ], + "capInsets": [ + 0, + 0, + 0, + 0 + ] + } + ], + [ + 1 + ], + 0, + [ + 0 + ], + [ + 2 + ], + [ + 5 + ] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,1", + -1 + ], + [ + 0 + ], + 0, + [], + [], + [] + ], + [ + [ + { + "name": "sheep_jump_3", + "rect": [ + 26, + 24, + 152, + 115 + ], + "offset": [ + -12, + -2 + ], + "originalSize": [ + 228, + 159 + ], + "capInsets": [ + 0, + 0, + 0, + 0 + ] + } + ], + [ + 1 + ], + 0, + [ + 0 + ], + [ + 2 + ], + [ + 34 + ] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,0", + -1 + ], + [ + 0 + ], + 0, + [], + [], + [] + ], + [ + [ + [ + 45, + "spineboy", + "\nspineboy.png\nsize:1024,256\nformat: RGBA8888\nfilter: Linear,Linear\nrepeat: none\neye_indifferent\n rotate: true\n xy: 389, 5\n size: 56, 53\n orig: 56, 53\n offset: 0, 0\n index: -1\neye_surprised\n rotate: false\n xy: 580, 34\n size: 56, 53\n orig: 56, 53\n offset: 0, 0\n index: -1\nfront_bracer\n rotate: false\n xy: 732, 85\n size: 35, 48\n orig: 35, 48\n offset: 0, 0\n index: -1\nfront_fist_closed\n rotate: false\n xy: 556, 91\n size: 45, 49\n orig: 45, 49\n offset: 0, 0\n index: -1\nfront_fist_open\n rotate: false\n xy: 668, 32\n size: 52, 52\n orig: 52, 52\n offset: 0, 0\n index: -1\nfront_foot\n rotate: false\n xy: 924, 201\n size: 76, 41\n orig: 76, 41\n offset: 0, 0\n index: -1\nfront_foot_bend1\n rotate: false\n xy: 845, 200\n size: 77, 42\n orig: 77, 42\n offset: 0, 0\n index: -1\nfront_foot_bend2\n rotate: false\n xy: 778, 186\n size: 65, 56\n orig: 65, 56\n offset: 0, 0\n index: -1\nfront_shin\n rotate: true\n xy: 444, 91\n size: 49, 110\n orig: 49, 110\n offset: 0, 0\n index: -1\nfront_thigh\n rotate: true\n xy: 603, 89\n size: 29, 67\n orig: 29, 67\n offset: 0, 0\n index: -1\nfront_upper_arm\n rotate: true\n xy: 672, 86\n size: 32, 58\n orig: 32, 58\n offset: 0, 0\n index: -1\ngoggles\n rotate: false\n xy: 444, 142\n size: 157, 100\n orig: 157, 100\n offset: 0, 0\n index: -1\ngun\n rotate: false\n xy: 603, 120\n size: 126, 122\n orig: 126, 122\n offset: 0, 0\n index: -1\nhead\n rotate: false\n xy: 279, 63\n size: 163, 179\n orig: 163, 179\n offset: 0, 0\n index: -1\nmouth_grind\n rotate: false\n xy: 845, 163\n size: 56, 35\n orig: 56, 35\n offset: 0, 0\n index: -1\nmouth_oooo\n rotate: false\n xy: 842, 126\n size: 56, 35\n orig: 56, 35\n offset: 0, 0\n index: -1\nmouth_smile\n rotate: false\n xy: 769, 97\n size: 56, 35\n orig: 56, 35\n offset: 0, 0\n index: -1\nmuzzle\n rotate: false\n xy: 2, 2\n size: 275, 240\n orig: 277, 240\n offset: 0, 0\n index: -1\nneck\n rotate: false\n xy: 903, 173\n size: 22, 25\n orig: 22, 25\n offset: 0, 0\n index: -1\nrear_bracer\n rotate: false\n xy: 722, 40\n size: 34, 43\n orig: 34, 43\n offset: 0, 0\n index: -1\nrear_foot\n rotate: false\n xy: 444, 11\n size: 68, 36\n orig: 68, 36\n offset: 0, 0\n index: -1\nrear_foot_bend1\n rotate: false\n xy: 444, 49\n size: 70, 40\n orig: 70, 40\n offset: 0, 0\n index: -1\nrear_foot_bend2\n rotate: false\n xy: 778, 134\n size: 62, 50\n orig: 62, 50\n offset: 0, 0\n index: -1\nrear_shin\n rotate: false\n xy: 731, 135\n size: 45, 107\n orig: 45, 107\n offset: 0, 0\n index: -1\nrear_thigh\n rotate: true\n xy: 516, 50\n size: 39, 62\n orig: 39, 62\n offset: 0, 0\n index: -1\nrear_upper_arm\n rotate: false\n xy: 638, 35\n size: 28, 52\n orig: 28, 52\n offset: 0, 0\n index: -1\ntorso\n rotate: true\n xy: 279, 2\n size: 59, 108\n orig: 59, 108\n offset: 0, 0\n index: -1\n", + [ + "spineboy.png" + ], + { + "bones": [ + { + "name": "hip", + "y": 247.48 + }, + { + "name": "front_thigh", + "parent": "hip", + "length": 74.8, + "x": -17.45, + "y": -11.64, + "rotation": -95.51, + "color": "00ff04ff" + }, + { + "name": "rear_thigh", + "parent": "hip", + "length": 85.71, + "x": 8.91, + "y": -5.62, + "rotation": -72.54, + "color": "ff000dff" + }, + { + "name": "torso", + "parent": "hip", + "length": 127.55, + "x": -1.61, + "y": 4.9, + "rotation": 103.82, + "color": "e0da19ff" + }, + { + "name": "front_shin", + "parent": "front_thigh", + "length": 128.76, + "x": 78.69, + "y": 1.6, + "rotation": -2.21, + "inheritScale": false, + "color": "00ff04ff" + }, + { + "name": "front_upper_arm", + "parent": "torso", + "length": 69.45, + "x": 103.75, + "y": 19.32, + "rotation": 168.37, + "color": "00ff04ff" + }, + { + "name": "neck", + "parent": "torso", + "length": 25.45, + "x": 127.49, + "y": -0.3, + "rotation": -31.53, + "color": "e0da19ff" + }, + { + "name": "rear_shin", + "parent": "rear_thigh", + "length": 121.87, + "x": 86.1, + "y": -1.32, + "rotation": -19.83, + "color": "ff000dff" + }, + { + "name": "rear_upper_arm", + "parent": "torso", + "length": 51.93, + "x": 92.35, + "y": -19.22, + "rotation": -169.55, + "color": "ff000dff" + }, + { + "name": "front_bracer", + "parent": "front_upper_arm", + "length": 40.57, + "x": 68.8, + "y": -0.68, + "rotation": 18.29, + "color": "00ff04ff" + }, + { + "name": "front_foot", + "parent": "front_shin", + "length": 91.34, + "x": 128.75, + "y": -0.33, + "rotation": 77.9, + "color": "00ff04ff" + }, + { + "name": "head", + "parent": "neck", + "length": 263.57, + "x": 27.66, + "y": -0.25, + "rotation": 23.18, + "color": "e0da19ff" + }, + { + "name": "rear_bracer", + "parent": "rear_upper_arm", + "length": 34.55, + "x": 51.35, + "rotation": 23.15, + "color": "ff000dff" + }, + { + "name": "rear_foot", + "parent": "rear_shin", + "length": 82.57, + "x": 121.45, + "y": -0.75, + "rotation": 69.3, + "color": "ff000dff" + }, + { + "name": "front_fist", + "parent": "front_bracer", + "length": 65.38, + "x": 40.56, + "y": 0.19, + "rotation": 12.43, + "color": "00ff04ff" + }, + { + "name": "gun", + "parent": "rear_bracer", + "length": 43.1, + "x": 34.42, + "y": -0.45, + "rotation": 5.34, + "color": "ff000dff" + }, + { + "name": "gunTip", + "parent": "gun", + "x": 201.04, + "y": 52.13, + "rotation": 6.83, + "color": "ff000dff" + } + ], + "slots": [ + { + "name": "rear_upper_arm", + "bone": "rear_upper_arm", + "attachment": "rear_upper_arm" + }, + { + "name": "rear_bracer", + "bone": "rear_bracer", + "attachment": "rear_bracer" + }, + { + "name": "gun", + "bone": "gun", + "attachment": "gun" + }, + { + "name": "rear_foot", + "bone": "rear_foot", + "attachment": "rear_foot" + }, + { + "name": "rear_thigh", + "bone": "rear_thigh", + "attachment": "rear_thigh" + }, + { + "name": "rear_shin", + "bone": "rear_shin", + "attachment": "rear_shin" + }, + { + "name": "neck", + "bone": "neck", + "attachment": "neck" + }, + { + "name": "torso", + "bone": "torso", + "attachment": "torso" + }, + { + "name": "front_upper_arm", + "bone": "front_upper_arm", + "attachment": "front_upper_arm" + }, + { + "name": "head", + "bone": "head", + "attachment": "head" + }, + { + "name": "eye", + "bone": "head", + "attachment": "eye_indifferent" + }, + { + "name": "front_thigh", + "bone": "front_thigh", + "attachment": "front_thigh" + }, + { + "name": "front_foot", + "bone": "front_foot", + "attachment": "front_foot" + }, + { + "name": "front_shin", + "bone": "front_shin", + "attachment": "front_shin" + }, + { + "name": "mouth", + "bone": "head", + "attachment": "mouth_smile" + }, + { + "name": "goggles", + "bone": "head", + "attachment": "goggles" + }, + { + "name": "front_bracer", + "bone": "front_bracer", + "attachment": "front_bracer" + }, + { + "name": "front_fist", + "bone": "front_fist", + "attachment": "front_fist_closed" + }, + { + "name": "muzzle", + "bone": "gunTip", + "additive": true + } + ], + "skins": { + "default": { + "eye": { + "eye_indifferent": { + "x": 85.72, + "y": -28.18, + "rotation": -70.63, + "width": 93, + "height": 89 + }, + "eye_surprised": { + "x": 85.72, + "y": -28.18, + "rotation": -70.63, + "width": 93, + "height": 89 + } + }, + "front_bracer": { + "front_bracer": { + "x": 12.03, + "y": -1.67, + "rotation": 79.59, + "width": 58, + "height": 80 + } + }, + "front_fist": { + "front_fist_closed": { + "x": 35.49, + "y": 6, + "rotation": 67.16, + "width": 75, + "height": 82 + }, + "front_fist_open": { + "x": 39.56, + "y": 7.76, + "rotation": 67.16, + "width": 86, + "height": 87 + } + }, + "front_foot": { + "front_foot": { + "x": 29.51, + "y": 7.83, + "rotation": 18.68, + "width": 126, + "height": 69 + }, + "front_foot_bend1": { + "x": 29.51, + "y": 7.83, + "rotation": 18.68, + "width": 128, + "height": 70 + }, + "front_foot_bend2": { + "x": 16.07, + "y": 13.83, + "rotation": 18.68, + "width": 108, + "height": 93 + } + }, + "front_shin": { + "front_shin": { + "x": 55.11, + "y": -3.54, + "rotation": 96.59, + "width": 82, + "height": 184 + } + }, + "front_thigh": { + "front_thigh": { + "x": 42.47, + "y": 4.44, + "rotation": 84.86, + "width": 48, + "height": 112 + } + }, + "front_upper_arm": { + "front_upper_arm": { + "x": 28.3, + "y": 7.37, + "rotation": 97.89, + "width": 54, + "height": 97 + } + }, + "goggles": { + "goggles": { + "x": 97.07, + "y": 6.54, + "rotation": -70.63, + "width": 261, + "height": 166 + } + }, + "gun": { + "gun": { + "x": 77.3, + "y": 16.4, + "rotation": 60.82, + "width": 210, + "height": 203 + } + }, + "head": { + "head": { + "x": 128.95, + "y": 0.29, + "rotation": -70.63, + "width": 271, + "height": 298 + } + }, + "mouth": { + "mouth_grind": { + "x": 23.68, + "y": -32.23, + "rotation": -70.63, + "width": 93, + "height": 59 + }, + "mouth_oooo": { + "x": 23.68, + "y": -32.23, + "rotation": -70.63, + "width": 93, + "height": 59 + }, + "mouth_smile": { + "x": 23.68, + "y": -32.23, + "rotation": -70.63, + "width": 93, + "height": 59 + } + }, + "muzzle": { + "muzzle": { + "x": 18.25, + "y": 5.44, + "rotation": 0.15, + "width": 462, + "height": 400 + } + }, + "neck": { + "neck": { + "x": 9.76, + "y": -3.01, + "rotation": -55.22, + "width": 36, + "height": 41 + } + }, + "rear_bracer": { + "rear_bracer": { + "x": 11.15, + "y": -2.2, + "rotation": 66.17, + "width": 56, + "height": 72 + } + }, + "rear_foot": { + "rear_foot": { + "x": 31.51, + "y": 3.57, + "rotation": 23.07, + "width": 113, + "height": 60 + }, + "rear_foot_bend1": { + "x": 34.39, + "y": 4.8, + "rotation": 23.07, + "width": 117, + "height": 66 + }, + "rear_foot_bend2": { + "x": 30.38, + "y": 12.62, + "rotation": 23.07, + "width": 103, + "height": 83 + } + }, + "rear_shin": { + "rear_shin": { + "x": 58.29, + "y": -2.75, + "rotation": 92.37, + "width": 75, + "height": 178 + } + }, + "rear_thigh": { + "rear_thigh": { + "x": 33.1, + "y": -4.11, + "rotation": 72.54, + "width": 65, + "height": 104 + } + }, + "rear_upper_arm": { + "rear_upper_arm": { + "x": 21.12, + "y": 4.08, + "rotation": 89.32, + "width": 47, + "height": 87 + } + }, + "torso": { + "torso": { + "x": 63.61, + "y": 7.12, + "rotation": -94.53, + "width": 98, + "height": 180 + } + } + } + }, + "events": { + "footstep": {}, + "headAttach": { + "int": 3, + "float": 4 + }, + "headBehind": { + "int": 5, + "float": 6, + "string": "setup" + }, + "headPop": { + "int": 1, + "float": 2 + } + }, + "animations": { + "death": { + "slots": { + "eye": { + "attachment": [ + { + "time": 0, + "name": "eye_surprised" + }, + { + "time": 0.4666, + "name": "eye_indifferent" + }, + { + "time": 2.2333, + "name": "eye_surprised" + }, + { + "time": 4.5333, + "name": "eye_indifferent" + } + ] + }, + "front_fist": { + "attachment": [ + { + "time": 0, + "name": "front_fist_open" + } + ] + }, + "mouth": { + "attachment": [ + { + "time": 0, + "name": "mouth_oooo" + }, + { + "time": 2.2333, + "name": "mouth_grind" + }, + { + "time": 4.5333, + "name": "mouth_oooo" + } + ] + } + }, + "bones": { + "head": { + "rotate": [ + { + "time": 0, + "angle": -2.82 + }, + { + "time": 0.1333, + "angle": -28.74 + }, + { + "time": 0.2333, + "angle": 11.42 + }, + { + "time": 0.3333, + "angle": -50.24 + }, + { + "time": 0.4, + "angle": -72.66, + "curve": "stepped" + }, + { + "time": 0.4333, + "angle": -72.66 + }, + { + "time": 0.5, + "angle": -20.24 + }, + { + "time": 0.5666, + "angle": -85.28, + "curve": "stepped" + }, + { + "time": 0.9333, + "angle": -85.28, + "curve": "stepped" + }, + { + "time": 2.2333, + "angle": -85.28 + }, + { + "time": 2.5, + "angle": -51.96, + "curve": "stepped" + }, + { + "time": 4.5333, + "angle": -51.96 + }, + { + "time": 4.6666, + "angle": -85.28 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "neck": { + "rotate": [ + { + "time": 0, + "angle": -2.82 + }, + { + "time": 0.1333, + "angle": 12.35 + }, + { + "time": 0.2333, + "angle": 29.89 + }, + { + "time": 0.3, + "angle": 70.36 + }, + { + "time": 0.4, + "angle": -10.22, + "curve": "stepped" + }, + { + "time": 0.4333, + "angle": -10.22 + }, + { + "time": 0.5, + "angle": 2.92 + }, + { + "time": 0.5666, + "angle": 47.94, + "curve": "stepped" + }, + { + "time": 2.2333, + "angle": 47.94 + }, + { + "time": 2.5, + "angle": 18.5, + "curve": "stepped" + }, + { + "time": 4.5333, + "angle": 18.5 + }, + { + "time": 4.6666, + "angle": 47.94 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "torso": { + "rotate": [ + { + "time": 0, + "angle": -8.61 + }, + { + "time": 0.1333, + "angle": 28.19 + }, + { + "time": 0.2666, + "angle": -280.19 + }, + { + "time": 0.4, + "angle": -237.22, + "curve": "stepped" + }, + { + "time": 0.4333, + "angle": -237.22 + }, + { + "time": 0.5, + "angle": 76.03, + "curve": "stepped" + }, + { + "time": 0.8, + "angle": 76.03, + "curve": "stepped" + }, + { + "time": 0.9333, + "angle": 76.03, + "curve": "stepped" + }, + { + "time": 2.2333, + "angle": 76.03 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.9333, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 2.2333, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "front_upper_arm": { + "rotate": [ + { + "time": 0, + "angle": -38.85 + }, + { + "time": 0.1333, + "angle": -299.58 + }, + { + "time": 0.2666, + "angle": -244.74 + }, + { + "time": 0.4, + "angle": -292.35 + }, + { + "time": 0.4333, + "angle": -315.84 + }, + { + "time": 0.5, + "angle": -347.94 + }, + { + "time": 0.7, + "angle": -347.33, + "curve": "stepped" + }, + { + "time": 2.2333, + "angle": -347.33 + }, + { + "time": 2.7, + "angle": -290.68 + }, + { + "time": 2.7666, + "angle": -285.1 + }, + { + "time": 4.6666, + "angle": -290.68 + }, + { + "time": 4.8, + "angle": 8.61 + }, + { + "time": 4.8666, + "angle": 10.94 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "rear_upper_arm": { + "rotate": [ + { + "time": 0, + "angle": -44.69 + }, + { + "time": 0.1333, + "angle": 112.26 + }, + { + "time": 0.2666, + "angle": 129.07 + }, + { + "time": 0.4, + "angle": 134.94, + "curve": "stepped" + }, + { + "time": 0.4333, + "angle": 134.94 + }, + { + "time": 0.5666, + "angle": 172.6, + "curve": "stepped" + }, + { + "time": 0.9333, + "angle": 172.6, + "curve": "stepped" + }, + { + "time": 2.2333, + "angle": 172.6 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "front_bracer": { + "rotate": [ + { + "time": 0, + "angle": 21.88 + }, + { + "time": 0.1333, + "angle": 11.48 + }, + { + "time": 0.2666, + "angle": -18.81 + }, + { + "time": 0.4, + "angle": -18.92 + }, + { + "time": 0.4333, + "angle": -18.28 + }, + { + "time": 0.5, + "angle": 60.61 + }, + { + "time": 0.7, + "angle": -18.87, + "curve": "stepped" + }, + { + "time": 2.2333, + "angle": -18.87 + }, + { + "time": 2.7, + "angle": -1.95, + "curve": "stepped" + }, + { + "time": 4.6666, + "angle": -1.95 + }, + { + "time": 4.8, + "angle": 34.55 + }, + { + "time": 4.9333, + "angle": -18.74 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "front_fist": { + "rotate": [ + { + "time": 0, + "angle": -2.33 + }, + { + "time": 0.2666, + "angle": 26.34 + }, + { + "time": 0.7, + "angle": -6.07, + "curve": "stepped" + }, + { + "time": 2.2333, + "angle": -6.07 + }, + { + "time": 2.7, + "angle": 5.72, + "curve": "stepped" + }, + { + "time": 4.6666, + "angle": 5.72 + }, + { + "time": 4.8666, + "angle": -6.52 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "rear_bracer": { + "rotate": [ + { + "time": 0, + "angle": 10.36 + }, + { + "time": 0.1333, + "angle": -23.12 + }, + { + "time": 0.2666, + "angle": -23.11 + }, + { + "time": 0.4, + "angle": -23.16, + "curve": "stepped" + }, + { + "time": 0.4333, + "angle": -23.16 + }, + { + "time": 0.5666, + "angle": -23.2, + "curve": "stepped" + }, + { + "time": 0.9333, + "angle": -23.2, + "curve": "stepped" + }, + { + "time": 2.2333, + "angle": -23.2 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "gun": { + "rotate": [ + { + "time": 0, + "angle": -2.78 + }, + { + "time": 0.1333, + "angle": -24.58 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "hip": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": "stepped" + }, + { + "time": 0.9333, + "angle": 0, + "curve": "stepped" + }, + { + "time": 2.2333, + "angle": 0 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.2, + "x": 50.34, + "y": 151.73 + }, + { + "time": 0.4, + "x": 5.16, + "y": -119.64, + "curve": "stepped" + }, + { + "time": 0.4333, + "x": 5.16, + "y": -119.64 + }, + { + "time": 0.5, + "x": 50.34, + "y": -205.18, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 50.34, + "y": -205.18, + "curve": "stepped" + }, + { + "time": 0.9333, + "x": 50.34, + "y": -205.18, + "curve": "stepped" + }, + { + "time": 2.2333, + "x": 50.34, + "y": -205.18 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "front_thigh": { + "rotate": [ + { + "time": 0, + "angle": 0 + }, + { + "time": 0.1333, + "angle": 8.47 + }, + { + "time": 0.2666, + "angle": 115.95 + }, + { + "time": 0.4, + "angle": 180.66, + "curve": "stepped" + }, + { + "time": 0.4333, + "angle": 180.66 + }, + { + "time": 0.5, + "angle": 155.22 + }, + { + "time": 0.6, + "angle": 97.73 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "front_shin": { + "rotate": [ + { + "time": 0, + "angle": 0 + }, + { + "time": 0.1333, + "angle": -27.37 + }, + { + "time": 0.2666, + "angle": -35.1 + }, + { + "time": 0.4, + "angle": -37.72, + "curve": "stepped" + }, + { + "time": 0.4333, + "angle": -37.72 + }, + { + "time": 0.5, + "angle": -40.06 + }, + { + "time": 0.6, + "angle": 2.76 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "rear_thigh": { + "rotate": [ + { + "time": 0, + "angle": 0 + }, + { + "time": 0.1333, + "angle": 70.45 + }, + { + "time": 0.2666, + "angle": 155.34 + }, + { + "time": 0.4, + "angle": 214.31, + "curve": "stepped" + }, + { + "time": 0.4333, + "angle": 214.31 + }, + { + "time": 0.5, + "angle": 169.67 + }, + { + "time": 0.8, + "angle": 83.27 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "rear_shin": { + "rotate": [ + { + "time": 0, + "angle": 0 + }, + { + "time": 0.1333, + "angle": 18.93 + }, + { + "time": 0.2666, + "angle": -21.04 + }, + { + "time": 0.4, + "angle": -29.93, + "curve": "stepped" + }, + { + "time": 0.4333, + "angle": -29.93 + }, + { + "time": 0.5, + "angle": -16.79 + }, + { + "time": 0.8, + "angle": 7.77 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "rear_foot": { + "rotate": [ + { + "time": 0, + "angle": 0 + }, + { + "time": 0.1333, + "angle": -11.62 + }, + { + "time": 0.4, + "angle": -45.59, + "curve": "stepped" + }, + { + "time": 0.4333, + "angle": -45.59 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "front_foot": { + "rotate": [ + { + "time": 0, + "angle": 0 + }, + { + "time": 0.4, + "angle": -48.75, + "curve": "stepped" + }, + { + "time": 0.4333, + "angle": -48.75 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "gunTip": { + "rotate": [ + { + "time": 0, + "angle": 0 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + } + } + }, + "hit": { + "slots": { + "front_fist": { + "attachment": [ + { + "time": 0.1666, + "name": "front_fist_open" + } + ] + }, + "mouth": { + "attachment": [ + { + "time": 0, + "name": "mouth_grind" + }, + { + "time": 0.3333, + "name": "mouth_smile" + } + ] + } + }, + "bones": { + "torso": { + "rotate": [ + { + "time": 0, + "angle": 56.42 + }, + { + "time": 0.3333, + "angle": 8.89 + } + ] + }, + "neck": { + "rotate": [ + { + "time": 0, + "angle": 35.38 + }, + { + "time": 0.2333, + "angle": 24.94 + } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 10.21 + }, + { + "time": 0.3333, + "angle": -41.3 + } + ] + }, + "front_upper_arm": { + "rotate": [ + { + "time": 0, + "angle": -310.92, + "curve": [ + 0.38, + 0.53, + 0.744, + 1 + ] + }, + { + "time": 0.3333, + "angle": -112.59 + } + ], + "translate": [ + { + "time": 0, + "x": 7.23, + "y": -13.13 + } + ] + }, + "front_bracer": { + "rotate": [ + { + "time": 0, + "angle": 36.99 + }, + { + "time": 0.3333, + "angle": -28.64 + } + ] + }, + "front_fist": { + "rotate": [ + { + "time": 0, + "angle": 13.59 + }, + { + "time": 0.3333, + "angle": 7.55 + } + ] + }, + "rear_upper_arm": { + "rotate": [ + { + "time": 0, + "angle": 271.02, + "curve": [ + 0.342, + 0.36, + 0.68, + 0.71 + ] + }, + { + "time": 0.3333, + "angle": -15.84 + } + ], + "translate": [ + { + "time": 0.3333, + "x": -0.09, + "y": -0.46 + } + ] + }, + "rear_bracer": { + "rotate": [ + { + "time": 0, + "angle": 0 + }, + { + "time": 0.3333, + "angle": 40.03 + } + ] + }, + "gun": { + "rotate": [ + { + "time": 0, + "angle": 14.98 + }, + { + "time": 0.3333, + "angle": 39.75 + } + ] + }, + "hip": { + "translate": [ + { + "time": 0, + "x": -75.54, + "y": -78.03 + }, + { + "time": 0.2333, + "x": -36.48, + "y": 12.42 + }, + { + "time": 0.3333, + "x": -36.48, + "y": -2.99 + } + ] + }, + "front_thigh": { + "rotate": [ + { + "time": 0, + "angle": 90.94, + "curve": [ + 0.227, + 0.26, + 0.432, + 1 + ] + }, + { + "time": 0.3333, + "angle": 32.02 + } + ], + "translate": [ + { + "time": 0, + "x": 7.21, + "y": -4 + } + ] + }, + "rear_thigh": { + "rotate": [ + { + "time": 0, + "angle": 40.51, + "curve": [ + 0.295, + 0.3, + 0.59, + 0.99 + ] + }, + { + "time": 0.3333, + "angle": 90.76 + } + ], + "translate": [ + { + "time": 0, + "x": -1.96, + "y": -0.32 + } + ] + }, + "front_shin": { + "rotate": [ + { + "time": 0, + "angle": -96.62 + }, + { + "time": 0.3333, + "angle": -15.13 + } + ] + }, + "rear_shin": { + "rotate": [ + { + "time": 0, + "angle": 7.99 + }, + { + "time": 0.3333, + "angle": -67.54 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "front_foot": { + "rotate": [ + { + "time": 0, + "angle": 5.4 + }, + { + "time": 0.3333, + "angle": -16.26 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "rear_foot": { + "rotate": [ + { + "time": 0, + "angle": 2.67 + }, + { + "time": 0.3333, + "angle": -10.31 + } + ] + } + } + }, + "idle": { + "slots": { + "front_fist": { + "attachment": [ + { + "time": 0, + "name": "front_fist_open" + }, + { + "time": 1.6666, + "name": "front_fist_open" + } + ] + }, + "mouth": { + "attachment": [ + { + "time": 0, + "name": "mouth_smile" + }, + { + "time": 1.6666, + "name": "mouth_smile" + } + ] + } + }, + "bones": { + "torso": { + "rotate": [ + { + "time": 0, + "angle": -5.61, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.8333, + "angle": -9.65, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 1.6666, + "angle": -5.61 + } + ], + "translate": [ + { + "time": 0, + "x": -6.49, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ] + }, + "front_upper_arm": { + "rotate": [ + { + "time": 0, + "angle": -59.85, + "curve": [ + 0.492, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.6666, + "angle": -54.31, + "curve": [ + 0.324, + 0.11, + 0.75, + 1 + ] + }, + { + "time": 1.6666, + "angle": -59.85 + } + ], + "translate": [ + { + "time": 0, + "x": -7.12, + "y": -8.23 + }, + { + "time": 0.6666, + "x": -6.32, + "y": -8.3 + }, + { + "time": 1.6666, + "x": -7.12, + "y": -8.23 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ] + }, + "rear_upper_arm": { + "rotate": [ + { + "time": 0, + "angle": 62.41, + "curve": [ + 0.504, + 0.02, + 0.75, + 1 + ] + }, + { + "time": 0.7333, + "angle": 43.83, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 1.6666, + "angle": 62.41 + } + ], + "translate": [ + { + "time": 0, + "x": -1.83, + "y": -16.78 + }, + { + "time": 0.6666, + "x": 0.34, + "y": -15.23 + }, + { + "time": 1.6666, + "x": -1.83, + "y": -16.78 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ] + }, + "neck": { + "rotate": [ + { + "time": 0, + "angle": 0 + }, + { + "time": 0.6666, + "angle": 2.39 + }, + { + "time": 1.6666, + "angle": 0 + } + ], + "translate": [ + { + "time": 0, + "x": -1.88, + "y": -4.76, + "curve": "stepped" + }, + { + "time": 1.6666, + "x": -1.88, + "y": -4.76 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ] + }, + "front_thigh": { + "rotate": [ + { + "time": 0, + "angle": 0.64, + "curve": [ + 0.235, + 0, + 0.558, + 0.99 + ] + }, + { + "time": 0.6666, + "angle": -4.34, + "curve": [ + 0.594, + 0, + 0.653, + 1 + ] + }, + { + "time": 1.6666, + "angle": 0.64 + } + ], + "translate": [ + { + "time": 0, + "x": -13.39, + "y": 6.69, + "curve": "stepped" + }, + { + "time": 1.6666, + "x": -13.39, + "y": 6.69 + } + ], + "scale": [ + { + "time": 0, + "x": 0.896, + "y": 1, + "curve": [ + 0.235, + 0, + 0.558, + 0.99 + ] + }, + { + "time": 0.6666, + "x": 0.825, + "y": 1, + "curve": [ + 0.594, + 0, + 0.653, + 1 + ] + }, + { + "time": 1.6666, + "x": 0.896, + "y": 1 + } + ] + }, + "front_shin": { + "rotate": [ + { + "time": 0, + "angle": -19.28, + "curve": "stepped" + }, + { + "time": 1.6666, + "angle": -19.28 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": [ + 0.235, + 0, + 0.558, + 0.99 + ] + }, + { + "time": 0.6666, + "x": 0.994, + "y": 1, + "curve": [ + 0.594, + 0, + 0.653, + 1 + ] + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ] + }, + "rear_thigh": { + "rotate": [ + { + "time": 0, + "angle": 30.5, + "curve": [ + 0.235, + 0, + 0.558, + 0.99 + ] + }, + { + "time": 0.6666, + "angle": 40.15, + "curve": [ + 0.594, + 0, + 0.653, + 1 + ] + }, + { + "time": 1.6666, + "angle": 30.5 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ] + }, + "rear_shin": { + "rotate": [ + { + "time": 0, + "angle": -23.83, + "curve": [ + 0.235, + 0, + 0.558, + 0.99 + ] + }, + { + "time": 0.6666, + "angle": -43.77, + "curve": [ + 0.594, + 0, + 0.653, + 1 + ] + }, + { + "time": 1.6666, + "angle": -23.83 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ] + }, + "front_foot": { + "rotate": [ + { + "time": 0, + "angle": 5.13, + "curve": [ + 0.235, + 0, + 0.558, + 0.99 + ] + }, + { + "time": 0.6666, + "angle": 10.04, + "curve": [ + 0.594, + 0, + 0.653, + 1 + ] + }, + { + "time": 1.6666, + "angle": 5.13 + } + ], + "scale": [ + { + "time": 0, + "x": 0.755, + "y": 1.309, + "curve": "stepped" + }, + { + "time": 1.6666, + "x": 0.755, + "y": 1.309 + } + ] + }, + "hip": { + "translate": [ + { + "time": 0, + "x": -6.63, + "y": -23.01, + "curve": [ + 0.235, + 0, + 0.558, + 0.99 + ] + }, + { + "time": 0.6666, + "x": 6.27, + "y": -35, + "curve": [ + 0.594, + 0, + 0.653, + 1 + ] + }, + { + "time": 1.6666, + "x": -6.63, + "y": -23.01 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ] + }, + "rear_foot": { + "rotate": [ + { + "time": 0, + "angle": -7.34, + "curve": [ + 0.235, + 0, + 0.558, + 0.99 + ] + }, + { + "time": 0.6666, + "angle": 3.85, + "curve": [ + 0.594, + 0, + 0.653, + 1 + ] + }, + { + "time": 1.6666, + "angle": -7.34 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ] + }, + "rear_bracer": { + "rotate": [ + { + "time": 0, + "angle": -17.16, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.6666, + "angle": 12.52, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 1.6666, + "angle": -17.16 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": -5.51, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.6666, + "angle": -3.12, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 1.6666, + "angle": -5.51 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ] + }, + "front_bracer": { + "rotate": [ + { + "time": 0, + "angle": 45.46, + "curve": [ + 0.492, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.6666, + "angle": 41.33, + "curve": [ + 0.32, + 0.1, + 0.736, + 0.91 + ] + }, + { + "time": 1.6666, + "angle": 45.46 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ] + }, + "gun": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.6666, + "angle": -15.59, + "curve": [ + 0.732, + 0, + 0.769, + 0.99 + ] + }, + { + "time": 1.6666, + "angle": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ] + }, + "front_fist": { + "rotate": [ + { + "time": 0, + "angle": -6.84, + "curve": [ + 0.492, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.6666, + "angle": -14.63, + "curve": [ + 0.324, + 0.11, + 0.75, + 1 + ] + }, + { + "time": 1.6666, + "angle": -6.84 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.6666, + "x": 0.689, + "y": 1.1, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ] + } + } + }, + "jump": { + "slots": { + "front_fist": { + "attachment": [ + { + "time": 0, + "name": "front_fist_open" + }, + { + "time": 0.2, + "name": "front_fist_closed" + }, + { + "time": 0.6666, + "name": "front_fist_open" + } + ] + }, + "mouth": { + "attachment": [ + { + "time": 0, + "name": "mouth_grind" + } + ] + }, + "torso": { + "attachment": [ + { + "time": 0, + "name": "torso" + } + ] + } + }, + "bones": { + "front_thigh": { + "rotate": [ + { + "time": 0, + "angle": 91.53, + "curve": [ + 0.278, + 0.46, + 0.763, + 1 + ] + }, + { + "time": 0.2, + "angle": -35.83, + "curve": [ + 0.761, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.4333, + "angle": 127.74 + }, + { + "time": 0.7333, + "angle": 48.18, + "curve": [ + 0.227, + 0.26, + 0.432, + 1 + ] + }, + { + "time": 0.8333, + "angle": 25.35 + }, + { + "time": 0.9333, + "angle": 45.37 + }, + { + "time": 1.0333, + "angle": 38.12 + }, + { + "time": 1.1333, + "angle": 25.35 + }, + { + "time": 1.3333, + "angle": 91.53 + } + ], + "translate": [ + { + "time": 0, + "x": -2.56, + "y": 5.77 + }, + { + "time": 0.4333, + "x": 8.3, + "y": 7.98 + }, + { + "time": 0.7333, + "x": 7.21, + "y": -4 + }, + { + "time": 1.3333, + "x": -2.56, + "y": 5.77 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "torso": { + "rotate": [ + { + "time": 0, + "angle": -42.63 + }, + { + "time": 0.2, + "angle": -5.74 + }, + { + "time": 0.4333, + "angle": -50.76 + }, + { + "time": 0.7333, + "angle": 1.89 + }, + { + "time": 0.8333, + "angle": 11.58 + }, + { + "time": 0.9666, + "angle": -1.89 + }, + { + "time": 1.1333, + "angle": 11.58 + }, + { + "time": 1.3333, + "angle": -42.63 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "rear_thigh": { + "rotate": [ + { + "time": 0, + "angle": -26.32 + }, + { + "time": 0.2, + "angle": 121.44 + }, + { + "time": 0.4333, + "angle": 70.54 + }, + { + "time": 0.7333, + "angle": 79.89, + "curve": [ + 0.295, + 0.3, + 0.59, + 0.99 + ] + }, + { + "time": 0.8333, + "angle": 99.12 + }, + { + "time": 0.9333, + "angle": 74.05 + }, + { + "time": 1.0333, + "angle": 98.04 + }, + { + "time": 1.1333, + "angle": 99.12 + }, + { + "time": 1.3333, + "angle": -26.32 + } + ], + "translate": [ + { + "time": 0, + "x": -0.56, + "y": -0.32 + }, + { + "time": 0.4333, + "x": -8.5, + "y": 10.58 + }, + { + "time": 0.7333, + "x": -1.96, + "y": -0.32 + }, + { + "time": 1.3333, + "x": -0.56, + "y": -0.32 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "rear_shin": { + "rotate": [ + { + "time": 0, + "angle": -78.69 + }, + { + "time": 0.4333, + "angle": -55.56 + }, + { + "time": 0.7333, + "angle": -62.84 + }, + { + "time": 0.8333, + "angle": -80.74 + }, + { + "time": 0.9333, + "angle": -41.12 + }, + { + "time": 1.0333, + "angle": -77.4 + }, + { + "time": 1.1333, + "angle": -80.74 + }, + { + "time": 1.3333, + "angle": -78.69 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.7333, + "x": 1, + "y": 1 + } + ] + }, + "front_upper_arm": { + "rotate": [ + { + "time": 0, + "angle": -22.61 + }, + { + "time": 0.2, + "angle": -246.68 + }, + { + "time": 0.6, + "angle": 11.28, + "curve": [ + 0.246, + 0, + 0.633, + 0.53 + ] + }, + { + "time": 0.7333, + "angle": -57.45, + "curve": [ + 0.38, + 0.53, + 0.744, + 1 + ] + }, + { + "time": 0.8666, + "angle": -112.59 + }, + { + "time": 0.9333, + "angle": -102.17 + }, + { + "time": 1.0333, + "angle": -108.61 + }, + { + "time": 1.1333, + "angle": -112.59 + }, + { + "time": 1.3333, + "angle": -22.61 + } + ], + "translate": [ + { + "time": 0, + "x": 6.08, + "y": 7.15 + }, + { + "time": 0.2, + "x": 7.23, + "y": -13.13, + "curve": "stepped" + }, + { + "time": 0.7333, + "x": 7.23, + "y": -13.13 + }, + { + "time": 1.3333, + "x": 6.08, + "y": 7.15 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "front_bracer": { + "rotate": [ + { + "time": 0, + "angle": 66.46 + }, + { + "time": 0.2, + "angle": 42.39 + }, + { + "time": 0.4333, + "angle": 26.06 + }, + { + "time": 0.7333, + "angle": 13.28 + }, + { + "time": 0.8666, + "angle": -28.64 + }, + { + "time": 0.9333, + "angle": -22.31 + }, + { + "time": 1.0333, + "angle": -35.39 + }, + { + "time": 1.1333, + "angle": -28.64 + }, + { + "time": 1.3333, + "angle": 66.46 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "front_fist": { + "rotate": [ + { + "time": 0, + "angle": -28.43 + }, + { + "time": 0.4333, + "angle": -45.6 + }, + { + "time": 0.7333, + "angle": -53.66 + }, + { + "time": 0.8666, + "angle": 7.55 + }, + { + "time": 0.9333, + "angle": 31.15 + }, + { + "time": 1.0333, + "angle": -32.58 + }, + { + "time": 1.1333, + "angle": 7.55 + }, + { + "time": 1.3333, + "angle": -28.43 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "rear_upper_arm": { + "rotate": [ + { + "time": 0, + "angle": 39.68 + }, + { + "time": 0.2, + "angle": 276.57 + }, + { + "time": 0.3, + "angle": 17.73 + }, + { + "time": 0.4333, + "angle": 83.38 + }, + { + "time": 0.6, + "angle": -4.71, + "curve": [ + 0.246, + 0, + 0.633, + 0.53 + ] + }, + { + "time": 0.7333, + "angle": -69.63, + "curve": [ + 0.342, + 0.36, + 0.68, + 0.71 + ] + }, + { + "time": 0.7666, + "angle": 321.47, + "curve": [ + 0.333, + 0.33, + 0.667, + 0.66 + ] + }, + { + "time": 0.8, + "angle": 33.7, + "curve": [ + 0.358, + 0.64, + 0.693, + 1 + ] + }, + { + "time": 0.8666, + "angle": 34.56 + }, + { + "time": 1.0333, + "angle": 71.96 + }, + { + "time": 1.1333, + "angle": 34.56 + }, + { + "time": 1.3333, + "angle": 39.68 + } + ], + "translate": [ + { + "time": 0, + "x": -3.1, + "y": -4.86 + }, + { + "time": 0.2, + "x": 23.33, + "y": 49.07 + }, + { + "time": 0.4333, + "x": 20.78, + "y": 40.21 + }, + { + "time": 1.3333, + "x": -3.1, + "y": -4.86 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "rear_bracer": { + "rotate": [ + { + "time": 0, + "angle": 29.66 + }, + { + "time": 0.2, + "angle": 45.06 + }, + { + "time": 0.4333, + "angle": -4.34 + }, + { + "time": 0.7666, + "angle": 61.68 + }, + { + "time": 0.8, + "angle": 82.59 + }, + { + "time": 0.8666, + "angle": 80.06 + }, + { + "time": 1.0333, + "angle": 57.56 + }, + { + "time": 1.1333, + "angle": 80.06 + }, + { + "time": 1.3333, + "angle": 29.66 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "neck": { + "rotate": [ + { + "time": 0, + "angle": 24.9 + }, + { + "time": 0.2, + "angle": 16.31 + }, + { + "time": 0.4333, + "angle": 7.44 + }, + { + "time": 0.7333, + "angle": -20.35 + }, + { + "time": 0.8333, + "angle": -0.69, + "curve": "stepped" + }, + { + "time": 1.1333, + "angle": -0.69 + }, + { + "time": 1.3333, + "angle": 24.9 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 24.92 + }, + { + "time": 0.2, + "angle": 10.36 + }, + { + "time": 0.4333, + "angle": 28.65 + }, + { + "time": 0.7333, + "angle": -2.65 + }, + { + "time": 0.8333, + "angle": -28.94, + "curve": "stepped" + }, + { + "time": 1.1333, + "angle": -28.94 + }, + { + "time": 1.3333, + "angle": 24.92 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "hip": { + "rotate": [ + { + "time": 0, + "angle": 0 + } + ], + "translate": [ + { + "time": 0, + "x": -34.51, + "y": -78.62, + "curve": [ + 0.232, + 1, + 0.75, + 1 + ] + }, + { + "time": 0.2, + "x": -34.51, + "y": 182.5, + "curve": [ + 0.232, + 0.48, + 0.598, + 0.79 + ] + }, + { + "time": 0.7666, + "x": -34.51, + "y": 596.22, + "curve": [ + 0.329, + 0.17, + 0.66, + 0.21 + ] + }, + { + "time": 1.1333, + "x": -34.51, + "y": 2.49 + }, + { + "time": 1.3333, + "x": -34.51, + "y": -78.62 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "front_shin": { + "rotate": [ + { + "time": 0, + "angle": -90.62, + "curve": [ + 0.416, + 0.54, + 0.743, + 1 + ] + }, + { + "time": 0.2, + "angle": -10.52, + "curve": [ + 0.644, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.4333, + "angle": -127.72 + }, + { + "time": 0.7333, + "angle": -19.91 + }, + { + "time": 0.8333, + "angle": -5.16 + }, + { + "time": 0.9333, + "angle": -35.06 + }, + { + "time": 1.0333, + "angle": -43.97 + }, + { + "time": 1.1333, + "angle": -5.16 + }, + { + "time": 1.3333, + "angle": -90.62 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "front_foot": { + "rotate": [ + { + "time": 0, + "angle": -0.79 + }, + { + "time": 0.0333, + "angle": 16.27 + }, + { + "time": 0.0666, + "angle": 23.52 + }, + { + "time": 0.1, + "angle": 21.02 + }, + { + "time": 0.1333, + "angle": 10.92 + }, + { + "time": 0.2, + "angle": -38.45 + }, + { + "time": 0.4333, + "angle": 6.62 + }, + { + "time": 0.7333, + "angle": -11.51 + }, + { + "time": 1.0333, + "angle": -22.91 + }, + { + "time": 1.3333, + "angle": -0.79 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "rear_foot": { + "rotate": [ + { + "time": 0, + "angle": -12.77 + }, + { + "time": 0.2, + "angle": 17.05 + }, + { + "time": 0.4333, + "angle": 19.45 + }, + { + "time": 0.7333, + "angle": 2.67 + }, + { + "time": 1.0333, + "angle": -28.49 + }, + { + "time": 1.3333, + "angle": -12.77 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + }, + "gun": { + "rotate": [ + { + "time": 0, + "angle": 6.18 + }, + { + "time": 0.2, + "angle": 30.81 + }, + { + "time": 0.4333, + "angle": 13.25 + }, + { + "time": 0.7333, + "angle": 14.98 + }, + { + "time": 0.7666, + "angle": 25.64 + }, + { + "time": 0.8, + "angle": 20.62 + }, + { + "time": 0.8666, + "angle": 64.52 + }, + { + "time": 1.0333, + "angle": 8.59 + }, + { + "time": 1.1333, + "angle": 64.52 + }, + { + "time": 1.3333, + "angle": 6.18 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + } + ] + } + } + }, + "run": { + "slots": { + "front_fist": { + "attachment": [ + { + "time": 0, + "name": "front_fist_closed" + } + ] + }, + "mouth": { + "attachment": [ + { + "time": 0, + "name": "mouth_grind" + } + ] + }, + "torso": { + "attachment": [ + { + "time": 0, + "name": "torso" + } + ] + } + }, + "bones": { + "front_thigh": { + "rotate": [ + { + "time": 0, + "angle": 42.05, + "curve": [ + 0.195, + 0.86, + 0.75, + 1 + ] + }, + { + "time": 0.0666, + "angle": 46.07 + }, + { + "time": 0.1333, + "angle": -20.28 + }, + { + "time": 0.2, + "angle": -27.23 + }, + { + "time": 0.2666, + "angle": -47.16 + }, + { + "time": 0.3333, + "angle": -39.79 + }, + { + "time": 0.4, + "angle": -25.86 + }, + { + "time": 0.4666, + "angle": 14.35 + }, + { + "time": 0.5333, + "angle": 55.62 + }, + { + "time": 0.6, + "angle": 69.65 + }, + { + "time": 0.6666, + "angle": 86.4 + }, + { + "time": 0.7333, + "angle": 65.87 + }, + { + "time": 0.8, + "angle": 42.05 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.0333, + "x": -5.79, + "y": 11.15 + }, + { + "time": 0.0666, + "x": -5.13, + "y": 11.55 + }, + { + "time": 0.1333, + "x": -7.7, + "y": 8.98 + }, + { + "time": 0.5333, + "x": -1.26, + "y": 3.83 + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "torso": { + "rotate": [ + { + "time": 0, + "angle": -39.7 + }, + { + "time": 0.2, + "angle": -57.29 + }, + { + "time": 0.4, + "angle": -39.7 + }, + { + "time": 0.6, + "angle": -57.29 + }, + { + "time": 0.8, + "angle": -39.7 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.4, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "rear_thigh": { + "rotate": [ + { + "time": 0, + "angle": -56.59 + }, + { + "time": 0.0666, + "angle": -21.57 + }, + { + "time": 0.1333, + "angle": 27.95 + }, + { + "time": 0.2, + "angle": 42.42 + }, + { + "time": 0.2666, + "angle": 62.37 + }, + { + "time": 0.3333, + "angle": 45.42 + }, + { + "time": 0.4, + "angle": 15.67 + }, + { + "time": 0.4666, + "angle": 28.22 + }, + { + "time": 0.5333, + "angle": -38.62 + }, + { + "time": 0.6, + "angle": -53.26 + }, + { + "time": 0.6666, + "angle": -79.31 + }, + { + "time": 0.7333, + "angle": -86.47 + }, + { + "time": 0.8, + "angle": -56.59 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.4, + "x": -6.76, + "y": -3.86 + }, + { + "time": 0.4333, + "x": -15.85, + "y": 7.28 + }, + { + "time": 0.4666, + "x": -13.04, + "y": 4.04 + }, + { + "time": 0.5, + "x": -10.24, + "y": 7.11 + }, + { + "time": 0.5333, + "x": -9.01, + "y": -5.15 + }, + { + "time": 0.6666, + "x": -23.18, + "y": -2.57 + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "rear_shin": { + "rotate": [ + { + "time": 0, + "angle": -74 + }, + { + "time": 0.0666, + "angle": -83.38 + }, + { + "time": 0.1333, + "angle": -106.69 + }, + { + "time": 0.2, + "angle": -66.01 + }, + { + "time": 0.2666, + "angle": -55.22 + }, + { + "time": 0.3333, + "angle": -24.8 + }, + { + "time": 0.4, + "angle": 18.44, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.4666, + "angle": -56.65 + }, + { + "time": 0.5333, + "angle": -11.94, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.6666, + "angle": -41.26 + }, + { + "time": 0.7333, + "angle": -43.6 + }, + { + "time": 0.8, + "angle": -74 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "front_upper_arm": { + "rotate": [ + { + "time": 0, + "angle": -89.36 + }, + { + "time": 0.0666, + "angle": -95.67 + }, + { + "time": 0.1333, + "angle": -22 + }, + { + "time": 0.2, + "angle": -316.04 + }, + { + "time": 0.2666, + "angle": -274.94 + }, + { + "time": 0.3333, + "angle": -273.74 + }, + { + "time": 0.4, + "angle": -272.09 + }, + { + "time": 0.4666, + "angle": -264.89 + }, + { + "time": 0.5333, + "angle": -320.09 + }, + { + "time": 0.6, + "angle": -50.83 + }, + { + "time": 0.6666, + "angle": -81.72 + }, + { + "time": 0.7333, + "angle": -83.92 + }, + { + "time": 0.8, + "angle": -89.36 + } + ], + "translate": [ + { + "time": 0, + "x": 6.24, + "y": 10.05 + }, + { + "time": 0.2666, + "x": 4.95, + "y": -13.13 + }, + { + "time": 0.6, + "x": -2.43, + "y": 1.94 + }, + { + "time": 0.8, + "x": 6.24, + "y": 10.05 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "front_bracer": { + "rotate": [ + { + "time": 0, + "angle": 33.43 + }, + { + "time": 0.0666, + "angle": 20.53 + }, + { + "time": 0.1333, + "angle": 15.26 + }, + { + "time": 0.2, + "angle": 19.28 + }, + { + "time": 0.2666, + "angle": 22.62 + }, + { + "time": 0.3333, + "angle": 37.29 + }, + { + "time": 0.4, + "angle": 41.53 + }, + { + "time": 0.4666, + "angle": 31.73 + }, + { + "time": 0.5333, + "angle": 67.45 + }, + { + "time": 0.6666, + "angle": 39.77 + }, + { + "time": 0.7333, + "angle": 30.95 + }, + { + "time": 0.8, + "angle": 33.43 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "front_fist": { + "rotate": [ + { + "time": 0, + "angle": -19.75 + }, + { + "time": 0.0666, + "angle": -37.11 + }, + { + "time": 0.1333, + "angle": -50.79 + }, + { + "time": 0.2666, + "angle": -12.69 + }, + { + "time": 0.3333, + "angle": 3.01 + }, + { + "time": 0.4333, + "angle": 12.05 + }, + { + "time": 0.5333, + "angle": 13.25 + }, + { + "time": 0.8, + "angle": -19.75 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "rear_upper_arm": { + "rotate": [ + { + "time": 0, + "angle": 68.68 + }, + { + "time": 0.0666, + "angle": 73.89 + }, + { + "time": 0.1333, + "angle": -9.64 + }, + { + "time": 0.2, + "angle": 284.27 + }, + { + "time": 0.2666, + "angle": 283.29 + }, + { + "time": 0.3333, + "angle": 278.28 + }, + { + "time": 0.4, + "angle": 271.02 + }, + { + "time": 0.4666, + "angle": 263.2 + }, + { + "time": 0.5333, + "angle": 314.25 + }, + { + "time": 0.6, + "angle": 16.83 + }, + { + "time": 0.6666, + "angle": 70.35 + }, + { + "time": 0.7333, + "angle": 73.53 + }, + { + "time": 0.8, + "angle": 68.68 + } + ], + "translate": [ + { + "time": 0, + "x": -2.57, + "y": -8.89 + }, + { + "time": 0.1333, + "x": -4.68, + "y": 7.2 + }, + { + "time": 0.2, + "x": 21.73, + "y": 51.17 + }, + { + "time": 0.6, + "x": 4.33, + "y": 2.05 + }, + { + "time": 0.8, + "x": -2.57, + "y": -8.89 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "rear_bracer": { + "rotate": [ + { + "time": 0, + "angle": 31.04 + }, + { + "time": 0.0666, + "angle": 28.28 + }, + { + "time": 0.1333, + "angle": 49.36 + }, + { + "time": 0.2, + "angle": 59.37 + }, + { + "time": 0.2666, + "angle": 8.56 + }, + { + "time": 0.3333, + "angle": 9.38 + }, + { + "time": 0.4, + "angle": 11.51 + }, + { + "time": 0.4666, + "angle": 7.22 + }, + { + "time": 0.5333, + "angle": -18.44 + }, + { + "time": 0.6, + "angle": 11.44 + }, + { + "time": 0.6666, + "angle": 9.99 + }, + { + "time": 0.7333, + "angle": 8.28 + }, + { + "time": 0.8, + "angle": 31.04 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "neck": { + "rotate": [ + { + "time": 0, + "angle": 11.03 + }, + { + "time": 0.2, + "angle": 13.58 + }, + { + "time": 0.4, + "angle": 11.03 + }, + { + "time": 0.6, + "angle": 13.58 + }, + { + "time": 0.8, + "angle": 11.03 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.4, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 11.03 + }, + { + "time": 0.1, + "angle": 12.34 + }, + { + "time": 0.2, + "angle": 25.55 + }, + { + "time": 0.4, + "angle": 11.03 + }, + { + "time": 0.5, + "angle": 12.34 + }, + { + "time": 0.6, + "angle": 25.55 + }, + { + "time": 0.8, + "angle": 11.03 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.4, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "hip": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "angle": 0 + } + ], + "translate": [ + { + "time": 0, + "x": -62.47, + "y": -23.1 + }, + { + "time": 0.0666, + "x": -62.47, + "y": -38.51, + "curve": [ + 0.244, + 0.04, + 0.75, + 1 + ] + }, + { + "time": 0.2666, + "x": -62.47, + "y": 22.28, + "curve": [ + 0.17, + 0.52, + 0.75, + 1 + ] + }, + { + "time": 0.4, + "x": -62.47, + "y": -23.1 + }, + { + "time": 0.4333, + "x": -62.47, + "y": -24.59 + }, + { + "time": 0.4666, + "x": -62.47, + "y": -43.29, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.6666, + "x": -62.47, + "y": 22.28 + }, + { + "time": 0.8, + "x": -62.47, + "y": -23.1 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "front_shin": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": [ + 0.481, + 0.01, + 0.75, + 1 + ] + }, + { + "time": 0.0666, + "angle": -64.42 + }, + { + "time": 0.1333, + "angle": -20.59, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.2666, + "angle": -62.51 + }, + { + "time": 0.3333, + "angle": -79.74 + }, + { + "time": 0.4, + "angle": -78.28 + }, + { + "time": 0.4666, + "angle": -118.96, + "curve": [ + 0.93, + 0, + 0.952, + 0.95 + ] + }, + { + "time": 0.6, + "angle": -88.95 + }, + { + "time": 0.6666, + "angle": -79.09 + }, + { + "time": 0.7333, + "angle": -47.77 + }, + { + "time": 0.8, + "angle": 0 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "front_foot": { + "rotate": [ + { + "time": 0, + "angle": 0 + }, + { + "time": 0.0333, + "angle": -21.13, + "curve": [ + 0.121, + 0.23, + 0.75, + 1 + ] + }, + { + "time": 0.0666, + "angle": 17.64 + }, + { + "time": 0.1, + "angle": 29.92 + }, + { + "time": 0.1333, + "angle": 16.44 + }, + { + "time": 0.2, + "angle": -29.22 + }, + { + "time": 0.2666, + "angle": -1.61 + }, + { + "time": 0.3333, + "angle": -10.22 + }, + { + "time": 0.4666, + "angle": -15.99 + }, + { + "time": 0.6, + "angle": 9.03 + }, + { + "time": 0.7333, + "angle": 17.32 + }, + { + "time": 0.8, + "angle": 0 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "rear_foot": { + "rotate": [ + { + "time": 0, + "angle": 0 + }, + { + "time": 0.0666, + "angle": -12.04 + }, + { + "time": 0.1333, + "angle": -0.87 + }, + { + "time": 0.2, + "angle": 25.81 + }, + { + "time": 0.2666, + "angle": 4.71 + }, + { + "time": 0.4, + "angle": 18.09, + "curve": [ + 0.281, + 0.73, + 0.75, + 1 + ] + }, + { + "time": 0.4333, + "angle": -1.7 + }, + { + "time": 0.4666, + "angle": 27.12 + }, + { + "time": 0.5, + "angle": 38.83 + }, + { + "time": 0.5333, + "angle": 30.76 + }, + { + "time": 0.5666, + "angle": -20.49 + }, + { + "time": 0.6, + "angle": -30.8 + }, + { + "time": 0.6666, + "angle": -1.31 + }, + { + "time": 0.8, + "angle": 0 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "gun": { + "rotate": [ + { + "time": 0, + "angle": 0 + }, + { + "time": 0.1333, + "angle": 24.72 + }, + { + "time": 0.5, + "angle": -11.87 + }, + { + "time": 0.8, + "angle": 0 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + } + }, + "events": [ + { + "time": 0, + "name": "footstep" + }, + { + "time": 0.4, + "name": "footstep", + "int": 1 + } + ] + }, + "shoot": { + "slots": { + "front_fist": { + "attachment": [ + { + "time": 0.1333, + "name": "front_fist_closed" + }, + { + "time": 0.4, + "name": "front_fist_open" + } + ] + }, + "mouth": { + "attachment": [ + { + "time": 0.1333, + "name": "mouth_grind" + } + ] + }, + "muzzle": { + "attachment": [ + { + "time": 0.1333, + "name": "muzzle" + }, + { + "time": 0.2666, + "name": null + } + ], + "color": [ + { + "time": 0.1333, + "color": "ffffff00", + "curve": [ + 0.118, + 0.99, + 0.75, + 1 + ] + }, + { + "time": 0.1666, + "color": "ffffffff", + "curve": [ + 0.821, + 0, + 0.909, + 0.89 + ] + }, + { + "time": 0.2666, + "color": "ffffff00" + } + ] + } + }, + "bones": { + "front_fist": { + "scale": [ + { + "time": 0.1333, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.4, + "x": 1, + "y": 1 + } + ] + }, + "gunTip": { + "translate": [ + { + "time": 0.1333, + "x": 0, + "y": 0 + }, + { + "time": 0.2, + "x": 20.93, + "y": 1.57 + } + ], + "scale": [ + { + "time": 0.1333, + "x": 1, + "y": 1 + }, + { + "time": 0.2, + "x": 1.247, + "y": 1.516 + } + ] + }, + "gun": { + "rotate": [ + { + "time": 0, + "angle": 1.9 + } + ], + "translate": [ + { + "time": 0, + "x": 7.95, + "y": 5.84, + "curve": [ + 0, + 0.3, + 0.678, + 1 + ] + }, + { + "time": 0.3, + "x": -9.3, + "y": -1.41 + }, + { + "time": 0.4, + "x": 0, + "y": 0 + } + ] + }, + "rear_bracer": { + "rotate": [ + { + "time": 0, + "angle": -30.47 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ + 0, + 0.3, + 0.678, + 1 + ] + }, + { + "time": 0.3, + "x": -5.99, + "y": -3.71 + }, + { + "time": 0.4, + "x": 0, + "y": 0 + } + ] + }, + "rear_upper_arm": { + "rotate": [ + { + "time": 0, + "angle": 62.3 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ + 0, + 0.3, + 0.678, + 1 + ] + }, + { + "time": 0.3, + "x": 2.81, + "y": 11.41 + }, + { + "time": 0.4, + "x": 0, + "y": 0 + } + ] + } + } + }, + "test": { + "slots": { + "front_foot": { + "color": [ + { + "time": 0.6666, + "color": "ffffffff" + }, + { + "time": 1.3333, + "color": "ff0700ff" + } + ] + }, + "gun": { + "color": [ + { + "time": 0, + "color": "ffffffff", + "curve": "stepped" + }, + { + "time": 0.6666, + "color": "ffffffff" + }, + { + "time": 1.3333, + "color": "32ff00ff" + } + ] + }, + "rear_foot": { + "color": [ + { + "time": 0.6666, + "color": "ffffffff" + }, + { + "time": 1.3333, + "color": "ff0700ff" + } + ] + } + }, + "bones": { + "head": { + "rotate": [ + { + "time": 0, + "angle": 0 + }, + { + "time": 0.3333, + "angle": -20.72 + }, + { + "time": 0.6666, + "angle": -32.41 + }, + { + "time": 1, + "angle": -5.3 + }, + { + "time": 1.3333, + "angle": 24.96 + }, + { + "time": 1.6666, + "angle": 15.61 + }, + { + "time": 2, + "angle": 0 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": [ + 0.172, + 0.37, + 0.574, + 0.73 + ] + }, + { + "time": 0.1666, + "x": 144.19, + "y": -77.59, + "curve": [ + 0.372, + 0.61, + 0.765, + 1 + ] + }, + { + "time": 0.3333, + "x": 217.61, + "y": -192.63, + "curve": [ + 0.282, + 0, + 0.624, + 0.31 + ] + }, + { + "time": 0.5, + "x": 181.21, + "y": -365.66, + "curve": [ + 0.313, + 0.21, + 0.654, + 0.54 + ] + }, + { + "time": 0.6666, + "x": 20.09, + "y": -500.4, + "curve": [ + 0.147, + 0.27, + 0.75, + 1 + ] + }, + { + "time": 0.8333, + "x": -194.24, + "y": -341.84 + }, + { + "time": 1, + "x": -307.93, + "y": -114 + }, + { + "time": 1.1666, + "x": -330.38, + "y": 121.42, + "curve": [ + 0.25, + 0, + 0.764, + 0.48 + ] + }, + { + "time": 1.3333, + "x": -240.42, + "y": 335.66, + "curve": [ + 0.229, + 0.37, + 0.58, + 0.73 + ] + }, + { + "time": 1.5, + "x": -56.12, + "y": 288.06, + "curve": [ + 0.296, + 0.6, + 0.641, + 1 + ] + }, + { + "time": 1.6666, + "x": 87.63, + "y": 191.33, + "curve": [ + 0.238, + 0, + 0.626, + 0.39 + ] + }, + { + "time": 1.8333, + "x": 60.62, + "y": 95.14, + "curve": [ + 0.41, + 0.26, + 0.803, + 0.62 + ] + }, + { + "time": 2, + "x": 0, + "y": 0 + } + ] + } + }, + "draworder": [ + { + "time": 0.6666, + "offsets": [ + { + "slot": "head", + "offset": -9 + }, + { + "slot": "eye", + "offset": -9 + }, + { + "slot": "mouth", + "offset": -12 + }, + { + "slot": "goggles", + "offset": -12 + } + ] + }, + { + "time": 1.3333 + } + ], + "events": [ + { + "time": 0, + "name": "headPop", + "int": 0, + "float": 0, + "string": "pop.wav" + }, + { + "time": 1, + "name": "headBehind", + "int": 7, + "float": 8, + "string": "animate" + }, + { + "time": 2, + "name": "headAttach", + "int": 0, + "float": 0, + "string": "attach.wav" + } + ] + }, + "walk": { + "slots": { + "front_fist": { + "attachment": [ + { + "time": 0, + "name": "front_fist_closed" + } + ] + }, + "mouth": { + "attachment": [ + { + "time": 0, + "name": "mouth_smile" + } + ] + }, + "torso": { + "attachment": [ + { + "time": 0, + "name": "torso" + } + ] + } + }, + "bones": { + "front_thigh": { + "rotate": [ + { + "time": 0, + "angle": 15.79 + }, + { + "time": 0.1, + "angle": 27.39 + }, + { + "time": 0.2, + "angle": -7.94 + }, + { + "time": 0.3, + "angle": -16.94 + }, + { + "time": 0.4, + "angle": -28.62 + }, + { + "time": 0.5, + "angle": -19.3 + }, + { + "time": 0.6, + "angle": -3.08 + }, + { + "time": 0.7, + "angle": 29.51 + }, + { + "time": 0.8, + "angle": 15.79 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.4, + "x": -1.18, + "y": 0.54 + }, + { + "time": 0.5, + "x": 0.11, + "y": 0.41 + }, + { + "time": 0.6, + "x": 9.48, + "y": 0.27 + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.4, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "front_shin": { + "rotate": [ + { + "time": 0, + "angle": 5.12 + }, + { + "time": 0.1, + "angle": -20.87 + }, + { + "time": 0.2, + "angle": 13.37 + }, + { + "time": 0.3, + "angle": 15.98 + }, + { + "time": 0.4, + "angle": 5.94 + }, + { + "time": 0.5, + "angle": -26.76 + }, + { + "time": 0.7, + "angle": -55.44 + }, + { + "time": 0.8, + "angle": 5.12 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "rear_thigh": { + "rotate": [ + { + "time": 0, + "angle": -34.38 + }, + { + "time": 0.1, + "angle": -30.32 + }, + { + "time": 0.2, + "angle": -37.22 + }, + { + "time": 0.3, + "angle": 20.73 + }, + { + "time": 0.4, + "angle": 8.69 + }, + { + "time": 0.5, + "angle": 12.16 + }, + { + "time": 0.6, + "angle": -24.62 + }, + { + "time": 0.7, + "angle": -27.26 + }, + { + "time": 0.8, + "angle": -34.38 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.4, + "x": 4.08, + "y": -9.53 + }, + { + "time": 0.5, + "x": 0, + "y": 0 + }, + { + "time": 0.7, + "x": -21.14, + "y": -9.6 + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "rear_shin": { + "rotate": [ + { + "time": 0, + "angle": 14.26 + }, + { + "time": 0.1, + "angle": -17.3 + }, + { + "time": 0.2, + "angle": -12.67 + }, + { + "time": 0.3, + "angle": -58.89 + }, + { + "time": 0.4, + "angle": 15.95 + }, + { + "time": 0.5, + "angle": -9 + }, + { + "time": 0.6, + "angle": 26.06 + }, + { + "time": 0.7, + "angle": 21.85 + }, + { + "time": 0.8, + "angle": 14.26 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.1, + "x": 0.951, + "y": 1 + }, + { + "time": 0.5, + "x": 0.975, + "y": 1 + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "rear_foot": { + "rotate": [ + { + "time": 0, + "angle": 10.13 + }, + { + "time": 0.1, + "angle": 12.27 + }, + { + "time": 0.2, + "angle": -2.94 + }, + { + "time": 0.3, + "angle": 6.29 + }, + { + "time": 0.4, + "angle": 13.45 + }, + { + "time": 0.5, + "angle": -3.57 + }, + { + "time": 0.6, + "angle": -0.97 + }, + { + "time": 0.7, + "angle": 2.97 + }, + { + "time": 0.8, + "angle": 10.13 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "front_upper_arm": { + "rotate": [ + { + "time": 0, + "angle": -23.74 + }, + { + "time": 0.4, + "angle": -320.57 + }, + { + "time": 0.8, + "angle": -23.74 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "rear_upper_arm": { + "rotate": [ + { + "time": 0, + "angle": 11.62 + }, + { + "time": 0.1, + "angle": 19.36 + }, + { + "time": 0.4, + "angle": 345.26 + }, + { + "time": 0.5, + "angle": 343.44 + }, + { + "time": 0.8, + "angle": 11.62 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "torso": { + "rotate": [ + { + "time": 0, + "angle": -12.11 + }, + { + "time": 0.1666, + "angle": -17.16 + }, + { + "time": 0.4, + "angle": -12.11 + }, + { + "time": 0.5666, + "angle": -15.81 + }, + { + "time": 0.8, + "angle": -12.11 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "neck": { + "rotate": [ + { + "time": 0, + "angle": 1.41 + }, + { + "time": 0.2333, + "angle": -3.04 + }, + { + "time": 0.4, + "angle": 1.41 + }, + { + "time": 0.6333, + "angle": -3.04 + }, + { + "time": 0.8, + "angle": 1.41 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.4, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "head": { + "rotate": [ + { + "time": 0, + "angle": 6.97 + }, + { + "time": 0.1666, + "angle": 8.02 + }, + { + "time": 0.2666, + "angle": 12.65 + }, + { + "time": 0.4, + "angle": 6.97 + }, + { + "time": 0.5666, + "angle": 8.02 + }, + { + "time": 0.6666, + "angle": 12.65 + }, + { + "time": 0.8, + "angle": 6.97 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.4, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "hip": { + "rotate": [ + { + "time": 0, + "angle": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "angle": 0 + } + ], + "translate": [ + { + "time": 0, + "x": -23.93, + "y": 3.22, + "curve": [ + 0.518, + 0.03, + 0.807, + 0.61 + ] + }, + { + "time": 0.1, + "x": -23.93, + "y": -9.24, + "curve": [ + 0.135, + 0.33, + 0.601, + 0.99 + ] + }, + { + "time": 0.2, + "x": -23.93, + "y": 4.35, + "curve": [ + 0.204, + 0.68, + 0.75, + 1 + ] + }, + { + "time": 0.3, + "x": -23.93, + "y": 2.38, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.4, + "x": -23.93, + "y": -2.5, + "curve": [ + 0.692, + 0.01, + 0.75, + 1 + ] + }, + { + "time": 0.5, + "x": -23.93, + "y": -10.32, + "curve": [ + 0.235, + 0.77, + 0.75, + 1 + ] + }, + { + "time": 0.6, + "x": -23.93, + "y": 4.35, + "curve": [ + 0.287, + 0.37, + 0.718, + 0.76 + ] + }, + { + "time": 0.7, + "x": -23.93, + "y": 10.34, + "curve": [ + 0.615, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.8, + "x": -23.93, + "y": 3.22 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "front_bracer": { + "rotate": [ + { + "time": 0, + "angle": 0 + }, + { + "time": 0.4, + "angle": 20.59 + }, + { + "time": 0.8, + "angle": 0 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "front_foot": { + "rotate": [ + { + "time": 0, + "angle": 12.49 + }, + { + "time": 0.1, + "angle": -8.34 + }, + { + "time": 0.2, + "angle": -6.17 + }, + { + "time": 0.3, + "angle": -0.75 + }, + { + "time": 0.3333, + "angle": 3.89 + }, + { + "time": 0.4, + "angle": 10.22 + }, + { + "time": 0.5, + "angle": 11.44 + }, + { + "time": 0.6, + "angle": -0.33 + }, + { + "time": 0.7, + "angle": 0.15 + }, + { + "time": 0.8, + "angle": 12.49 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "rear_bracer": { + "rotate": [ + { + "time": 0, + "angle": 3.58 + }, + { + "time": 0.1, + "angle": 5.51 + }, + { + "time": 0.4, + "angle": -22.77 + }, + { + "time": 0.5, + "angle": -9.65 + }, + { + "time": 0.8, + "angle": 3.58 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "front_fist": { + "rotate": [ + { + "time": 0, + "angle": -15.22 + }, + { + "time": 0.1, + "angle": -51.4 + }, + { + "time": 0.4, + "angle": -39.4 + }, + { + "time": 0.5, + "angle": 19.26 + }, + { + "time": 0.8, + "angle": -15.22 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + }, + "gun": { + "rotate": [ + { + "time": 0, + "angle": -24.06, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.1, + "angle": -10.94, + "curve": [ + 0.381, + 0.54, + 0.742, + 1 + ] + }, + { + "time": 0.4, + "angle": 25.34, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.6666, + "angle": -27.47, + "curve": [ + 0.25, + 0, + 0.75, + 1 + ] + }, + { + "time": 0.8, + "angle": -24.06 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 0, + "y": 0 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1, + "curve": "stepped" + }, + { + "time": 0.8, + "x": 1, + "y": 1 + } + ] + } + } + } + } + }, + [ + 0 + ] + ] + ], + 0, + 0, + [ + 0 + ], + [ + -1 + ], + [ + 8 + ] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,1", + -1 + ], + [ + 0 + ], + 0, + [], + [], + [] + ], + [ + [ + { + "name": "1", + "rect": [ + 32, + 36, + 152, + 103 + ], + "offset": [ + -6, + -8 + ], + "originalSize": [ + 228, + 159 + ], + "capInsets": [ + 0, + 0, + 0, + 0 + ] + } + ], + [ + 1 + ], + 0, + [ + 0 + ], + [ + 2 + ], + [ + 35 + ] + ], + [ + [ + [ + 10, + "multi-material" + ], + [ + 8, + "multi-material", + [ + -3 + ], + [ + [ + 18, + 45, + -2 + ] + ], + [ + 21, + -1 + ], + [ + 5, + 960, + 640 + ], + [ + 480, + 320, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 11, + "content", + [ + -7, + -8, + -9, + -10, + -11, + -12, + -13, + -14, + -15, + -16, + -17 + ], + [ + [ + 24, + -4 + ], + [ + 22, + 1, + 3, + -5, + [ + 5, + 960, + 803 + ] + ], + [ + 36, + 41, + 220, + -6 + ] + ], + [ + 0, + "98B5382ANHgKQw5BkMsWAq", + 1 + ], + [ + 5, + 960, + 803 + ], + [ + 0, + 0.5, + 1 + ], + [ + 0, + 320, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 15, + "sv", + 1, + [ + -21, + -22 + ], + [ + [ + -18, + [ + 6, + 45, + 240, + 250, + -19 + ], + [ + 25, + 0, + false, + -20, + [ + 23 + ], + 24 + ] + ], + 1, + 4, + 4 + ], + [ + 0, + "b5RxDsAgFOW6xOyBdbz2rI", + 1 + ], + [ + 4, + 4279834905 + ], + [ + 5, + 960, + 640 + ] + ], + [ + 16, + "scrollBar", + 3, + [ + -26 + ], + [ + [ + -23, + [ + 20, + 0, + 37, + 350.07654921020657, + 237, + -24 + ], + [ + 7, + 1, + 0, + -25, + [ + 21 + ], + 22 + ] + ], + 1, + 4, + 4 + ], + [ + 0, + "c2cC2kA1NNeozY+5ZzkcSY", + 1 + ], + [ + 5, + 8, + 640 + ], + [ + 0, + 1, + 0.5 + ], + [ + 480, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 2, + "simple-sprite", + 2, + [ + -28, + -29 + ], + [ + [ + 23, + 1, + 2, + 50, + 50, + 20, + -27, + [ + 5, + 200, + 190 + ] + ] + ], + [ + 0, + "cel07wPiZH1a58pRPiEEb2", + 1 + ], + [ + 5, + 200, + 190 + ], + [ + -380, + -95, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 2, + "sliced-sprite", + 2, + [ + -31, + -32 + ], + [ + [ + 4, + 1, + 2, + 50, + 50, + 20, + true, + -30, + [ + 5, + 200, + 310 + ] + ] + ], + [ + 0, + "4aagUhJlJBRraxu0HdmBV+", + 1 + ], + [ + 5, + 200, + 310 + ], + [ + -180, + -155, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 2, + "tiled-sprite", + 2, + [ + -34, + -35 + ], + [ + [ + 4, + 1, + 2, + 50, + 50, + 20, + true, + -33, + [ + 5, + 200, + 350 + ] + ] + ], + [ + 0, + "0667j7NjxL+ZD1xRXB4KUN", + 1 + ], + [ + 5, + 200, + 350 + ], + [ + 20, + -175, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 2, + "filled-sprite", + 2, + [ + -37, + -38 + ], + [ + [ + 4, + 1, + 2, + 50, + 50, + 20, + true, + -36, + [ + 5, + 200, + 261 + ] + ] + ], + [ + 0, + "dcDdK4fAJH5qn+dxWps1NJ", + 1 + ], + [ + 5, + 200, + 261 + ], + [ + 220, + -130.5, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 2, + "radial-sprite", + 2, + [ + -40, + -41 + ], + [ + [ + 4, + 1, + 2, + 50, + 50, + 20, + true, + -39, + [ + 5, + 200, + 261 + ] + ] + ], + [ + 0, + "eesZ6vPt5AdKXqG0l/MjeY", + 1 + ], + [ + 5, + 200, + 261 + ], + [ + -380, + -480.5, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 2, + "mesh-sprite", + 2, + [ + -43, + -44 + ], + [ + [ + 4, + 1, + 2, + 50, + 50, + 20, + true, + -42, + [ + 5, + 200, + 180 + ] + ] + ], + [ + 0, + "adKwcVQDxJDpRoPxGNaLq0", + 1 + ], + [ + 5, + 200, + 180 + ], + [ + -180, + -440, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 2, + "bitmap-label", + 2, + [ + -46, + -47 + ], + [ + [ + 4, + 1, + 2, + 50, + 50, + 20, + true, + -45, + [ + 5, + 200, + 180 + ] + ] + ], + [ + 0, + "a5HraLpUFIfLWhIikkzaHr", + 1 + ], + [ + 5, + 200, + 180 + ], + [ + 20, + -440, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 2, + "motionsteak", + 2, + [ + -49, + -50 + ], + [ + [ + 4, + 1, + 2, + 50, + 50, + 20, + true, + -48, + [ + 5, + 200, + 170 + ] + ] + ], + [ + 0, + "c1aHWHIBlDo6sJUzzqPK8A", + 1 + ], + [ + 5, + 200, + 170 + ], + [ + 220, + -435, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 2, + "spine", + 2, + [ + -52, + -53 + ], + [ + [ + 4, + 1, + 2, + 20, + 50, + 90, + true, + -51, + [ + 5, + 200, + 192 + ] + ] + ], + [ + 0, + "ffL4g6oPBMh5/7G4BvdV8d", + 1 + ], + [ + 5, + 200, + 192 + ], + [ + -380, + -707, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 2, + "cache-spine", + 2, + [ + -55, + -56 + ], + [ + [ + 4, + 1, + 2, + 20, + 50, + 90, + true, + -54, + [ + 5, + 200, + 192 + ] + ] + ], + [ + 0, + "9aqu41z15KAJFA3qEkvQwB", + 1 + ], + [ + 5, + 200, + 192 + ], + [ + -180, + -707, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 2, + "custom-material", + 2, + [ + -58, + -59 + ], + [ + [ + 23, + 1, + 2, + 50, + 50, + 20, + -57, + [ + 5, + 200, + 190 + ] + ] + ], + [ + 0, + "3d08Ds4LtI2LrmAruDcl75", + 1 + ], + [ + 5, + 200, + 190 + ], + [ + 20, + -706, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 13, + "view", + 3, + [ + 2 + ], + [ + [ + 6, + 45, + 240, + 250, + -60 + ] + ], + [ + 0, + "645yltQ0dFpbIcIgDazPDc", + 1 + ], + [ + 5, + 960, + 640 + ] + ], + [ + 1, + "label", + 5, + [ + [ + 3, + "Sprite - Simple", + 20, + 30, + 1, + 1, + 2, + [ + null + ], + -61 + ] + ], + [ + 0, + "8d/S7CZd9PWJtu7DBKMbAl", + 1 + ], + [ + 5, + 131.16, + 30 + ], + [ + 0, + 30, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 1, + "sprite", + 5, + [ + [ + 27, + 2, + false, + 2, + 2, + -62, + [ + 0 + ], + 1 + ] + ], + [ + 0, + "00PO/vO7RBA7LGG4gZnmVR", + 1 + ], + [ + 5, + 40, + 40 + ], + [ + 0, + -25, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 1, + "label", + 6, + [ + [ + 3, + "Sprite - Sliced", + 20, + 30, + 1, + 1, + 2, + [ + null + ], + -63 + ] + ], + [ + 0, + "72H7MLl+BJQ6PKf0/pXpiZ", + 1 + ], + [ + 5, + 124.5, + 30 + ], + [ + 0, + 90, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 1, + "sprite", + 6, + [ + [ + 28, + 1, + 0, + false, + 2, + 2, + -64, + [ + 2 + ], + 3 + ] + ], + [ + 0, + "24rXyqKwhLmo/etzDS5uBA", + 1 + ], + [ + 5, + 700, + 800 + ], + [ + 0, + -25, + 0, + 0, + 0, + 0, + 1, + 0.2, + 0.2, + 1 + ] + ], + [ + 1, + "label", + 7, + [ + [ + 3, + "Sprite - Tiled", + 20, + 30, + 1, + 1, + 2, + [ + null + ], + -65 + ] + ], + [ + 0, + "84+9/9sNRFjIiXNpeVVYL4", + 1 + ], + [ + 5, + 113.375, + 30 + ], + [ + 0, + 110, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 1, + "sprite", + 7, + [ + [ + 28, + 2, + 0, + false, + 2, + 2, + -66, + [ + 4 + ], + 5 + ] + ], + [ + 0, + "25R2hvKGpEl5LjIqJa/TQG", + 1 + ], + [ + 5, + 1000, + 2000 + ], + [ + 0, + -25, + 0, + 0, + 0, + 0, + 1, + 0.1, + 0.1, + 1 + ] + ], + [ + 1, + "label", + 8, + [ + [ + 3, + "Sprite - Filled", + 20, + 30, + 1, + 1, + 2, + [ + null + ], + -67 + ] + ], + [ + 0, + "4dgWFWJnJDkLOf+68EDXHl", + 1 + ], + [ + 5, + 117.82, + 30 + ], + [ + 0, + 65.5, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 1, + "sprite", + 8, + [ + [ + 39, + 3, + 2, + 0.7, + false, + 2, + 2, + -68, + [ + 6 + ], + 7 + ] + ], + [ + 0, + "943ChJKgtOkLkxWK8LJrag", + 1 + ], + [ + 5, + 402, + 370 + ], + [ + 0, + -25, + 0, + 0, + 0, + 0, + 1, + 0.3, + 0.3, + 1 + ] + ], + [ + 1, + "label", + 9, + [ + [ + 3, + "Sprite - Radial", + 20, + 30, + 1, + 1, + 2, + [ + null + ], + -69 + ] + ], + [ + 0, + "3cUe7aTThGJ4w39HojyGKv", + 1 + ], + [ + 5, + 126.73, + 30 + ], + [ + 0, + 65.5, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 1, + "sprite", + 9, + [ + [ + 40, + 3, + 2, + 2, + 0.3, + 0.7, + false, + 2, + 2, + -70, + [ + 8 + ], + [ + 0, + 0.5, + 0.5 + ], + 9 + ] + ], + [ + 0, + "1cwLiQAbpDYLXhR7AEpB5L", + 1 + ], + [ + 5, + 402, + 370 + ], + [ + 0, + -25, + 0, + 0, + 0, + 0, + 1, + 0.3, + 0.3, + 1 + ] + ], + [ + 1, + "label", + 10, + [ + [ + 3, + "Sprite - Mesh", + 20, + 30, + 1, + 1, + 2, + [ + null + ], + -71 + ] + ], + [ + 0, + "a88tQBbOhIc7ABFOj/8+Sh", + 1 + ], + [ + 5, + 118.93, + 30 + ], + [ + 0, + 25, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 1, + "label", + 10, + [ + [ + 42, + "支持但暂无演示", + 20, + 30, + 1, + 1, + 2, + 2, + 2, + [ + null + ], + -72 + ] + ], + [ + 0, + "fa0KdEmgxLTLA21ifSte4O", + 1 + ], + [ + 5, + 140, + 30 + ], + [ + 0, + -25, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 1, + "label", + 11, + [ + [ + 3, + "Label", + 20, + 30, + 1, + 1, + 2, + [ + null + ], + -73 + ] + ], + [ + 0, + "26oSD6Do9MCYDOTc44bG6i", + 1 + ], + [ + 5, + 48.945, + 30 + ], + [ + 0, + 25, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 1, + "label", + 11, + [ + [ + 43, + "Bitmap Font", + 20, + 30, + false, + 1, + 1, + 2, + 2, + -74, + [ + 10 + ], + 11 + ] + ], + [ + 0, + "ee5y9SLaRH4b+8eW/9BxZO", + 1 + ], + [ + 5, + 108.75, + 30 + ], + [ + 0, + -25, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 1, + "label", + 12, + [ + [ + 3, + "MotionSteak", + 20, + 30, + 1, + 1, + 2, + [ + null + ], + -75 + ] + ], + [ + 0, + "a05VJqHelIZKmFgVVSjXxs", + 1 + ], + [ + 5, + 111.18, + 30 + ], + [ + 0, + 20, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 1, + "motionsteak", + 12, + [ + [ + 46, + 16, + 2, + -76, + [ + 12 + ], + 13 + ] + ], + [ + 0, + "cf0tu0HYpMMJ2cS3Etl/Wv", + 1 + ], + [ + 5, + 20, + 20 + ], + [ + 0, + -25, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 1, + "label", + 13, + [ + [ + 3, + "Spine", + 20, + 30, + 1, + 1, + 2, + [ + null + ], + -77 + ] + ], + [ + 0, + "3chb4Q98dFOrLtbzdt+vhO", + 1 + ], + [ + 5, + 51.16, + 30 + ], + [ + 0, + 61, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 1, + "spine", + 13, + [ + [ + 47, + "default", + "run", + 0, + "run", + true, + 2, + 2, + -78, + [ + 14 + ], + 15 + ] + ], + [ + 0, + "beF60N4qtNPaFZgrsB4mgi", + 1 + ], + [ + 5, + 20, + 20 + ], + [ + 0, + -45, + 0, + 0, + 0, + 0, + 1, + 0.1, + 0.1, + 1 + ] + ], + [ + 1, + "label", + 14, + [ + [ + 3, + "Spine - Cache", + 20, + 30, + 1, + 1, + 2, + [ + null + ], + -79 + ] + ], + [ + 0, + "e7a+XFvHVE0aenyeyt0UcA", + 1 + ], + [ + 5, + 126.75, + 30 + ], + [ + 0, + 61, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 1, + "spine", + 14, + [ + [ + 48, + "default", + "run", + 1, + 1, + "run", + true, + 2, + 2, + -80, + [ + 16 + ], + 17 + ] + ], + [ + 0, + "74FJWuBu5AsYAnkRtrRG0O", + 1 + ], + [ + 5, + 20, + 20 + ], + [ + 0, + -45, + 0, + 0, + 0, + 0, + 1, + 0.1, + 0.1, + 1 + ] + ], + [ + 1, + "label", + 15, + [ + [ + 3, + "Custom Material", + 20, + 30, + 1, + 1, + 2, + [ + null + ], + -81 + ] + ], + [ + 0, + "17PBy+QStKu7/TNPYI4DCz", + 1 + ], + [ + 5, + 145.605, + 30 + ], + [ + 0, + 30, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 1, + "sprite", + 15, + [ + [ + 27, + 2, + false, + 2, + 2, + -82, + [ + 18 + ], + 19 + ] + ], + [ + 0, + "60a28hu/5I07CP6SkTvPTQ", + 1 + ], + [ + 5, + 40, + 40 + ], + [ + 0, + -25, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 17, + "bar", + 4, + [ + -83 + ], + [ + 0, + "29pI3SelxAU6ODrNe5LS2g", + 1 + ], + [ + 5, + 8, + 30 + ], + [ + 0, + 1, + 0 + ] + ], + [ + 26, + 1, + 0, + 39, + [ + 20 + ] + ], + [ + 31, + false, + 1, + 4, + 40 + ], + [ + 32, + false, + 0.75, + 0.23, + null, + 3, + 2, + 41 + ] + ], + 0, + [ + 0, + 7, + 1, + 0, + 0, + 1, + 0, + -1, + 3, + 0, + 0, + 2, + 0, + 0, + 2, + 0, + 0, + 2, + 0, + -1, + 5, + 0, + -2, + 6, + 0, + -3, + 7, + 0, + -4, + 8, + 0, + -5, + 9, + 0, + -6, + 10, + 0, + -7, + 11, + 0, + -8, + 12, + 0, + -9, + 13, + 0, + -10, + 14, + 0, + -11, + 15, + 0, + -1, + 42, + 0, + 0, + 3, + 0, + 0, + 3, + 0, + -1, + 16, + 0, + -2, + 4, + 0, + -1, + 41, + 0, + 0, + 4, + 0, + 0, + 4, + 0, + -1, + 39, + 0, + 0, + 5, + 0, + -1, + 17, + 0, + -2, + 18, + 0, + 0, + 6, + 0, + -1, + 19, + 0, + -2, + 20, + 0, + 0, + 7, + 0, + -1, + 21, + 0, + -2, + 22, + 0, + 0, + 8, + 0, + -1, + 23, + 0, + -2, + 24, + 0, + 0, + 9, + 0, + -1, + 25, + 0, + -2, + 26, + 0, + 0, + 10, + 0, + -1, + 27, + 0, + -2, + 28, + 0, + 0, + 11, + 0, + -1, + 29, + 0, + -2, + 30, + 0, + 0, + 12, + 0, + -1, + 31, + 0, + -2, + 32, + 0, + 0, + 13, + 0, + -1, + 33, + 0, + -2, + 34, + 0, + 0, + 14, + 0, + -1, + 35, + 0, + -2, + 36, + 0, + 0, + 15, + 0, + -1, + 37, + 0, + -2, + 38, + 0, + 0, + 16, + 0, + 0, + 17, + 0, + 0, + 18, + 0, + 0, + 19, + 0, + 0, + 20, + 0, + 0, + 21, + 0, + 0, + 22, + 0, + 0, + 23, + 0, + 0, + 24, + 0, + 0, + 25, + 0, + 0, + 26, + 0, + 0, + 27, + 0, + 0, + 28, + 0, + 0, + 29, + 0, + 0, + 30, + 0, + 0, + 31, + 0, + 0, + 32, + 0, + 0, + 33, + 0, + 0, + 34, + 0, + 0, + 35, + 0, + 0, + 36, + 0, + 0, + 37, + 0, + 0, + 38, + 0, + -1, + 40, + 0, + 8, + 1, + 2, + 3, + 16, + 41, + 9, + 42, + 83 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 40 + ], + [ + -1, + 1, + -1, + 1, + -1, + 1, + -1, + 1, + -1, + 1, + -1, + 22, + -1, + 23, + -1, + 14, + -1, + 14, + -1, + 1, + -1, + -1, + 1, + -1, + 1, + 1 + ], + [ + 1, + 14, + 1, + 36, + 1, + 4, + 1, + 4, + 1, + 4, + 0, + 37, + 1, + 3, + 1, + 15, + 1, + 15, + 38, + 14, + 0, + 0, + 11, + 0, + 12, + 13 + ] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,1", + -1 + ], + [ + 0 + ], + 0, + [], + [], + [] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,1", + -1 + ], + [ + 0 + ], + 0, + [], + [], + [] + ], + [ + [ + { + "name": "default_btn_pressed", + "rect": [ + 0, + 0, + 40, + 40 + ], + "offset": [ + 0, + 0 + ], + "originalSize": [ + 40, + 40 + ], + "capInsets": [ + 12, + 12, + 12, + 12 + ] + } + ], + [ + 1 + ], + 0, + [ + 0 + ], + [ + 2 + ], + [ + 39 + ] + ], + [ + [ + { + "name": "etc1_rgb_a", + "rect": [ + 24, + 12, + 154, + 131 + ], + "offset": [ + -13, + 2 + ], + "originalSize": [ + 228, + 159 + ], + "capInsets": [ + 0, + 0, + 0, + 0 + ] + } + ], + [ + 1 + ], + 0, + [ + 0 + ], + [ + 2 + ], + [ + 40 + ] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,0", + -1 + ], + [ + 0 + ], + 0, + [], + [], + [] + ], + [ + [ + { + "name": "default_btn_normal", + "rect": [ + 0, + 0, + 40, + 40 + ], + "offset": [ + 0, + 0 + ], + "originalSize": [ + 40, + 40 + ], + "capInsets": [ + 12, + 12, + 12, + 12 + ] + } + ], + [ + 1 + ], + 0, + [ + 0 + ], + [ + 2 + ], + [ + 41 + ] + ] + ] +] \ No newline at end of file diff --git a/demo/web-desktop/assets/multi-render/index.f7eed.js b/demo/web-desktop/assets/multi-render/index.f7eed.js new file mode 100644 index 00000000..e7415848 --- /dev/null +++ b/demo/web-desktop/assets/multi-render/index.f7eed.js @@ -0,0 +1,100 @@ +window.__require = function e(t, n, r) { + function s(o, u) { + if (!n[o]) { + if (!t[o]) { + var b = o.split("/"); + b = b[b.length - 1]; + if (!t[b]) { + var a = "function" == typeof __require && __require; + if (!u && a) return a(b, !0); + if (i) return i(b, !0); + throw new Error("Cannot find module '" + o + "'"); + } + o = b; + } + var f = n[o] = { + exports: {} + }; + t[o][0].call(f.exports, function(e) { + var n = t[o][1][e]; + return s(n || e); + }, f, f.exports, e, t, n, r); + } + return n[o].exports; + } + var i = "function" == typeof __require && __require; + for (var o = 0; o < r.length; o++) s(r[o]); + return s; +}({ + "multi-batcher": [ function(require, module, exports) { + "use strict"; + cc._RF.push(module, "3e9188DEK9FCYlYeL+jvmrQ", "multi-batcher"); + "use strict"; + var __extends = this && this.__extends || function() { + var extendStatics = function(d, b) { + extendStatics = Object.setPrototypeOf || { + __proto__: [] + } instanceof Array && function(d, b) { + d.__proto__ = b; + } || function(d, b) { + for (var p in b) Object.prototype.hasOwnProperty.call(b, p) && (d[p] = b[p]); + }; + return extendStatics(d, b); + }; + return function(d, b) { + extendStatics(d, b); + function __() { + this.constructor = d; + } + d.prototype = null === b ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + }(); + var __decorate = this && this.__decorate || function(decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if ("object" === typeof Reflect && "function" === typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r); + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + Object.defineProperty(exports, "__esModule", { + value: true + }); + var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property; + var MultiBatcher = function(_super) { + __extends(MultiBatcher, _super); + function MultiBatcher() { + var _this = null !== _super && _super.apply(this, arguments) || this; + _this.batchBtn = null; + _this.cancelBtn = null; + _this.textures = null; + return _this; + } + MultiBatcher.prototype.onLoad = function() { + var _this = this; + this.batchBtn.on("click", function() { + var batcher = new cc.sp.MultiBatcher(); + batcher.init(); + _this.textures.children.forEach(function(v) { + var sprite = v.getComponent(cc.Sprite); + batcher.requsetMaterial(sprite.spriteFrame.getTexture()); + sprite.setVertsDirty(); + }); + }); + this.cancelBtn.on("click", function() { + _this.textures.children.forEach(function(v) { + var sprite = v.getComponent(cc.Sprite); + sprite.spriteFrame.getTexture().unlinkMaterial(); + sprite.setMaterial(0, cc.Material.getBuiltinMaterial("2d-sprite")); + sprite.setVertsDirty(); + }); + }); + }; + __decorate([ property(cc.Node) ], MultiBatcher.prototype, "batchBtn", void 0); + __decorate([ property(cc.Node) ], MultiBatcher.prototype, "cancelBtn", void 0); + __decorate([ property(cc.Node) ], MultiBatcher.prototype, "textures", void 0); + MultiBatcher = __decorate([ ccclass ], MultiBatcher); + return MultiBatcher; + }(cc.Component); + exports.default = MultiBatcher; + cc._RF.pop(); + }, {} ] +}, {}, [ "multi-batcher" ]); +//# sourceMappingURL=index.js.map diff --git a/demo/web-desktop/assets/multi-render/index.js.map b/demo/web-desktop/assets/multi-render/index.js.map new file mode 100644 index 00000000..c774d1b4 --- /dev/null +++ b/demo/web-desktop/assets/multi-render/index.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["assets/multi-render/multi-batcher/multi-batcher.ts"],"names":["_a","cc","_decorator","ccclass","property","MultiBatcher","_super","__extends","_this","apply","this","arguments","batchBtn","cancelBtn","textures","prototype","onLoad","on","batcher","sp","init","children","forEach","v","sprite","getComponent","Sprite","requsetMaterial","spriteFrame","getTexture","setVertsDirty","unlinkMaterial","setMaterial","Material","getBuiltinMaterial","__decorate","Node","Component","exports","default"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IACM,IAAAA,KAAAC,GAAAC,YAAAC,UAAAH,GAAAG,SAAAC,WAAAJ,GAAAI;IAGN,IAAAC,eAAA,SAAAC;MAA0CC,UAAAF,cAAAC;MAA1C,SAAAD;QAAA,IAAAG,QAAA,SAAAF,UAAAA,OAAAG,MAAAC,MAAAC,cAAAD;QAGIF,MAAAI,WAAA;QAGAJ,MAAAK,YAAA;QAGAL,MAAAM,WAAA;;;MAGUT,aAAAU,UAAAC,SAAA;QAAV,IAAAR,QAAAE;QACIA,KAAAE,SAAAK,GAAA,SAAA;UACI,IAAAC,UAAA,IAAAjB,GAAAkB,GAAAd;UACAa,QAAAE;UACAZ,MAAAM,SAAAO,SAAAC,QAAA,SAAAC;YACI,IAAAC,SAAAD,EAAAE,aAAAxB,GAAAyB;YACAR,QAAAS,gBAAAH,OAAAI,YAAAC;YACAL,OAAAM;;;QAIRpB,KAAAG,UAAAI,GAAA,SAAA;UACIT,MAAAM,SAAAO,SAAAC,QAAA,SAAAC;YACI,IAAAC,SAAAD,EAAAE,aAAAxB,GAAAyB;YACAF,OAAAI,YAAAC,aAAAE;YACAP,OAAAQ,YAAA,GAAA/B,GAAAgC,SAAAC,mBAAA;YACAV,OAAAM;;;;MAzBZK,WAAA,EADC/B,SAAAH,GAAAmC,SACwB/B,aAAAU,WAAA,iBAAA;MAGzBoB,WAAA,EADC/B,SAAAH,GAAAmC,SACyB/B,aAAAU,WAAA,kBAAA;MAG1BoB,WAAA,EADC/B,SAAAH,GAAAmC,SACwB/B,aAAAU,WAAA,iBAAA;MATRV,eAAA8B,WAAA,EADpBhC,WACoBE;MAiCrB,OAAAA;KAjCA,CAAAJ,GAAAoC;IAAqBC,QAAAC,UAAAlC","sourcesContent":["\nconst { ccclass, property } = cc._decorator;\n\n@ccclass\nexport default class MultiBatcher extends cc.Component {\n\n @property(cc.Node)\n batchBtn: cc.Node = null;\n\n @property(cc.Node)\n cancelBtn: cc.Node = null;\n\n @property(cc.Node)\n textures: cc.Node = null;\n\n\n protected onLoad(): void {\n this.batchBtn.on('click', () => {\n const batcher = new cc.sp.MultiBatcher();\n batcher.init();\n this.textures.children.forEach(v => {\n const sprite = v.getComponent(cc.Sprite);\n batcher.requsetMaterial(sprite.spriteFrame.getTexture());\n sprite.setVertsDirty();\n });\n });\n\n this.cancelBtn.on('click', () => {\n this.textures.children.forEach(v => {\n const sprite = v.getComponent(cc.Sprite);\n sprite.spriteFrame.getTexture().unlinkMaterial();\n sprite.setMaterial(0, cc.Material.getBuiltinMaterial('2d-sprite'));\n sprite.setVertsDirty();\n });\n });\n }\n\n}\n"],"file":"index.js"} \ No newline at end of file diff --git a/demo/web-desktop/assets/multi-render/native/10/100eba2c-cfa2-4fb0-a5ac-a95f9b461fc0.eae97.png b/demo/web-desktop/assets/multi-render/native/10/100eba2c-cfa2-4fb0-a5ac-a95f9b461fc0.eae97.png new file mode 100644 index 00000000..0b6e0ddb Binary files /dev/null and b/demo/web-desktop/assets/multi-render/native/10/100eba2c-cfa2-4fb0-a5ac-a95f9b461fc0.eae97.png differ diff --git a/demo/web-desktop/assets/multi-render/native/1c/1c8a3cc1-a452-4276-848d-2bdf30e6852a.91637.png b/demo/web-desktop/assets/multi-render/native/1c/1c8a3cc1-a452-4276-848d-2bdf30e6852a.91637.png new file mode 100644 index 00000000..c81fbe18 Binary files /dev/null and b/demo/web-desktop/assets/multi-render/native/1c/1c8a3cc1-a452-4276-848d-2bdf30e6852a.91637.png differ diff --git a/demo/web-desktop/assets/multi-render/native/22/22247785-ef30-4b66-a9d2-ebcaf6a7f6e8.2ecc6.png b/demo/web-desktop/assets/multi-render/native/22/22247785-ef30-4b66-a9d2-ebcaf6a7f6e8.2ecc6.png new file mode 100644 index 00000000..89bfc60e Binary files /dev/null and b/demo/web-desktop/assets/multi-render/native/22/22247785-ef30-4b66-a9d2-ebcaf6a7f6e8.2ecc6.png differ diff --git a/demo/web-desktop/assets/multi-render/native/43/438c0fd3-74ca-4503-b2bc-2088cd6dbf4c.28847.png b/demo/web-desktop/assets/multi-render/native/43/438c0fd3-74ca-4503-b2bc-2088cd6dbf4c.28847.png new file mode 100644 index 00000000..8516da7f Binary files /dev/null and b/demo/web-desktop/assets/multi-render/native/43/438c0fd3-74ca-4503-b2bc-2088cd6dbf4c.28847.png differ diff --git a/demo/web-desktop/assets/multi-render/native/44/44999d18-51d1-4017-9ea6-98dcad8ecdf5.99af5.png b/demo/web-desktop/assets/multi-render/native/44/44999d18-51d1-4017-9ea6-98dcad8ecdf5.99af5.png new file mode 100644 index 00000000..bfe479bc Binary files /dev/null and b/demo/web-desktop/assets/multi-render/native/44/44999d18-51d1-4017-9ea6-98dcad8ecdf5.99af5.png differ diff --git a/demo/web-desktop/assets/multi-render/native/45/45be59f3-5655-4369-9e9f-455c81d2ddd9.ca872.png b/demo/web-desktop/assets/multi-render/native/45/45be59f3-5655-4369-9e9f-455c81d2ddd9.ca872.png new file mode 100644 index 00000000..c8fdfac7 Binary files /dev/null and b/demo/web-desktop/assets/multi-render/native/45/45be59f3-5655-4369-9e9f-455c81d2ddd9.ca872.png differ diff --git a/demo/web-desktop/assets/multi-render/native/62/6231041a-75a5-4af2-a40d-f27e9498901a.40d17.png b/demo/web-desktop/assets/multi-render/native/62/6231041a-75a5-4af2-a40d-f27e9498901a.40d17.png new file mode 100644 index 00000000..15e145a0 Binary files /dev/null and b/demo/web-desktop/assets/multi-render/native/62/6231041a-75a5-4af2-a40d-f27e9498901a.40d17.png differ diff --git a/demo/web-desktop/assets/multi-render/native/6e/6e056173-d285-473c-b206-40a7fff5386e.6d3cf.png b/demo/web-desktop/assets/multi-render/native/6e/6e056173-d285-473c-b206-40a7fff5386e.6d3cf.png new file mode 100644 index 00000000..8050170c Binary files /dev/null and b/demo/web-desktop/assets/multi-render/native/6e/6e056173-d285-473c-b206-40a7fff5386e.6d3cf.png differ diff --git a/demo/web-desktop/assets/multi-render/native/71/71561142-4c83-4933-afca-cb7a17f67053.c06a9.png b/demo/web-desktop/assets/multi-render/native/71/71561142-4c83-4933-afca-cb7a17f67053.c06a9.png new file mode 100644 index 00000000..0556b761 Binary files /dev/null and b/demo/web-desktop/assets/multi-render/native/71/71561142-4c83-4933-afca-cb7a17f67053.c06a9.png differ diff --git a/demo/web-desktop/assets/multi-render/native/77/77844f44-c0da-4c94-a97f-fac1ab844551.92cfc.png b/demo/web-desktop/assets/multi-render/native/77/77844f44-c0da-4c94-a97f-fac1ab844551.92cfc.png new file mode 100644 index 00000000..39098122 Binary files /dev/null and b/demo/web-desktop/assets/multi-render/native/77/77844f44-c0da-4c94-a97f-fac1ab844551.92cfc.png differ diff --git a/demo/web-desktop/assets/multi-render/native/7a/7a788430-6621-4bd5-86ce-0957a216dd69.9e7e3.png b/demo/web-desktop/assets/multi-render/native/7a/7a788430-6621-4bd5-86ce-0957a216dd69.9e7e3.png new file mode 100644 index 00000000..83fb86df Binary files /dev/null and b/demo/web-desktop/assets/multi-render/native/7a/7a788430-6621-4bd5-86ce-0957a216dd69.9e7e3.png differ diff --git a/demo/web-desktop/assets/multi-render/native/b4/b43ff3c2-02bb-4874-81f7-f2dea6970f18.83fcc.png b/demo/web-desktop/assets/multi-render/native/b4/b43ff3c2-02bb-4874-81f7-f2dea6970f18.83fcc.png new file mode 100644 index 00000000..65ea9827 Binary files /dev/null and b/demo/web-desktop/assets/multi-render/native/b4/b43ff3c2-02bb-4874-81f7-f2dea6970f18.83fcc.png differ diff --git a/demo/web-desktop/assets/multi-render/native/b6/b6161231-4d65-475c-a6bb-a8199e851e88.6159f.png b/demo/web-desktop/assets/multi-render/native/b6/b6161231-4d65-475c-a6bb-a8199e851e88.6159f.png new file mode 100644 index 00000000..2be40f75 Binary files /dev/null and b/demo/web-desktop/assets/multi-render/native/b6/b6161231-4d65-475c-a6bb-a8199e851e88.6159f.png differ diff --git a/demo/web-desktop/assets/multi-render/native/c1/c11dfdd2-97c6-409c-9c0f-fdfa681f16a9.d86d7.png b/demo/web-desktop/assets/multi-render/native/c1/c11dfdd2-97c6-409c-9c0f-fdfa681f16a9.d86d7.png new file mode 100644 index 00000000..5c3b67db Binary files /dev/null and b/demo/web-desktop/assets/multi-render/native/c1/c11dfdd2-97c6-409c-9c0f-fdfa681f16a9.d86d7.png differ diff --git a/demo/web-desktop/assets/multi-render/native/d9/d9c4530a-ef05-45c1-b012-eb4686f4c70f.abf6b.png b/demo/web-desktop/assets/multi-render/native/d9/d9c4530a-ef05-45c1-b012-eb4686f4c70f.abf6b.png new file mode 100644 index 00000000..37043bf4 Binary files /dev/null and b/demo/web-desktop/assets/multi-render/native/d9/d9c4530a-ef05-45c1-b012-eb4686f4c70f.abf6b.png differ diff --git a/demo/web-desktop/assets/multi-render/native/e8/e851e89b-faa2-4484-bea6-5c01dd9f06e2.90cf4.png b/demo/web-desktop/assets/multi-render/native/e8/e851e89b-faa2-4484-bea6-5c01dd9f06e2.90cf4.png new file mode 100644 index 00000000..cb3c93f5 Binary files /dev/null and b/demo/web-desktop/assets/multi-render/native/e8/e851e89b-faa2-4484-bea6-5c01dd9f06e2.90cf4.png differ diff --git a/demo/web-desktop/assets/multi-render/native/eb/eb72a5a2-8837-4f45-a24a-2486eef5fb78.46cee.png b/demo/web-desktop/assets/multi-render/native/eb/eb72a5a2-8837-4f45-a24a-2486eef5fb78.46cee.png new file mode 100644 index 00000000..c539ad95 Binary files /dev/null and b/demo/web-desktop/assets/multi-render/native/eb/eb72a5a2-8837-4f45-a24a-2486eef5fb78.46cee.png differ diff --git a/demo/web-desktop/assets/sp/config.de22b.json b/demo/web-desktop/assets/sp/config.de22b.json new file mode 100644 index 00000000..74850643 --- /dev/null +++ b/demo/web-desktop/assets/sp/config.de22b.json @@ -0,0 +1,28 @@ +{ + "paths": { + "5dz/wYuRNGDqDZXXT0zaEr": [ + "effects/multi-2d-sprite", + "cc.EffectAsset" + ] + }, + "uuids": [ + "5dz/wYuRNGDqDZXXT0zaEr" + ], + "scenes": {}, + "redirect": [], + "deps": [], + "packs": {}, + "name": "sp", + "importBase": "import", + "nativeBase": "native", + "debug": true, + "isZip": false, + "encrypted": false, + "versions": { + "import": [ + "5dz/wYuRNGDqDZXXT0zaEr", + "a50cc" + ], + "native": [] + } +} \ No newline at end of file diff --git a/demo/web-desktop/assets/sp/import/5d/5dcffc18-b913-460e-a0d9-5d74f4cda12b.a50cc.json b/demo/web-desktop/assets/sp/import/5d/5dcffc18-b913-460e-a0d9-5d74f4cda12b.a50cc.json new file mode 100644 index 00000000..61d20a80 --- /dev/null +++ b/demo/web-desktop/assets/sp/import/5d/5dcffc18-b913-460e-a0d9-5d74f4cda12b.a50cc.json @@ -0,0 +1,321 @@ +[ + 1, + 0, + 0, + [ + [ + "cc.EffectAsset", + [ + "_name", + "shaders", + "techniques" + ], + 0 + ] + ], + [ + [ + 0, + 0, + 1, + 2, + 4 + ] + ], + [ + [ + 0, + "multi-2d-sprite", + [ + { + "hash": 3894394603, + "record": null, + "name": "multi-2d-sprite|vs|fs", + "glsl3": { + "vert": "\nprecision highp float;\nuniform CCGlobal {\n mat4 cc_matView;\n mat4 cc_matViewInv;\n mat4 cc_matProj;\n mat4 cc_matProjInv;\n mat4 cc_matViewProj;\n mat4 cc_matViewProjInv;\n vec4 cc_cameraPos;\n vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_screenScale;\n};\nuniform CCLocal {\n mat4 cc_matWorld;\n mat4 cc_matWorldIT;\n};\nin vec3 a_position;\nin vec4 a_color;\nout vec4 v_color;\n#if USE_TEXTURE\nin vec2 a_uv0;\nout vec2 v_uv0;\n#if USE_MULTI_TEXTURE\nin float a_texId;\nout float v_texId;\n#endif\n#endif\nvoid main () {\n vec4 pos = vec4(a_position, 1);\n #if CC_USE_MODEL\n pos = cc_matViewProj * cc_matWorld * pos;\n #else\n pos = cc_matViewProj * pos;\n #endif\n #if USE_TEXTURE\n v_uv0 = a_uv0;\n #if USE_MULTI_TEXTURE\n v_texId = a_texId;\n #endif\n #endif\n v_color = a_color;\n gl_Position = pos;\n}", + "frag": "\nprecision highp float;\n#if USE_ALPHA_TEST\n uniform ALPHA_TEST {\n float alphaThreshold;\n };\n#endif\nvoid ALPHA_TEST (in vec4 color) {\n #if USE_ALPHA_TEST\n if (color.a < alphaThreshold) discard;\n #endif\n}\nvoid ALPHA_TEST (in float alpha) {\n #if USE_ALPHA_TEST\n if (alpha < alphaThreshold) discard;\n #endif\n}\nin vec4 v_color;\n#if USE_TEXTURE\nin vec2 v_uv0;\nuniform sampler2D texture;\n#if USE_MULTI_TEXTURE\nin float v_texId;\nuniform sampler2D texture2;\nuniform sampler2D texture3;\nuniform sampler2D texture4;\nuniform sampler2D texture5;\nuniform sampler2D texture6;\nuniform sampler2D texture7;\nuniform sampler2D texture8;\n#endif\n#endif\nvoid main () {\n vec4 o = vec4(1, 1, 1, 1);\n #if USE_TEXTURE\n #if USE_MULTI_TEXTURE\n if(v_texId < 1.0){\n vec4 texture_tmp = texture(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n o.a *= texture_tmp.a;\n #else\n o *= texture_tmp;\n #endif\n } else if(v_texId < 2.0){\n vec4 texture2_tmp = texture(texture2, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture2\n texture2_tmp.a *= texture(texture2, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture2_tmp.rgb * texture2_tmp.rgb);\n o.a *= texture2_tmp.a;\n #else\n o *= texture2_tmp;\n #endif\n } else if(v_texId < 3.0){\n vec4 texture3_tmp = texture(texture3, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture3\n texture3_tmp.a *= texture(texture3, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture3_tmp.rgb * texture3_tmp.rgb);\n o.a *= texture3_tmp.a;\n #else\n o *= texture3_tmp;\n #endif\n } else if(v_texId < 4.0){\n vec4 texture4_tmp = texture(texture4, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture4\n texture4_tmp.a *= texture(texture4, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture4_tmp.rgb * texture4_tmp.rgb);\n o.a *= texture4_tmp.a;\n #else\n o *= texture4_tmp;\n #endif\n } else if(v_texId < 5.0){\n vec4 texture5_tmp = texture(texture5, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture5\n texture5_tmp.a *= texture(texture5, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture5_tmp.rgb * texture5_tmp.rgb);\n o.a *= texture5_tmp.a;\n #else\n o *= texture5_tmp;\n #endif\n } else if(v_texId < 6.0){\n vec4 texture6_tmp = texture(texture6, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture6\n texture6_tmp.a *= texture(texture6, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture6_tmp.rgb * texture6_tmp.rgb);\n o.a *= texture6_tmp.a;\n #else\n o *= texture6_tmp;\n #endif\n } else if(v_texId < 7.0){\n vec4 texture7_tmp = texture(texture7, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture7\n texture7_tmp.a *= texture(texture7, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture7_tmp.rgb * texture7_tmp.rgb);\n o.a *= texture7_tmp.a;\n #else\n o *= texture7_tmp;\n #endif\n } else {\n vec4 texture8_tmp = texture(texture8, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture8\n texture8_tmp.a *= texture(texture8, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture8_tmp.rgb * texture8_tmp.rgb);\n o.a *= texture8_tmp.a;\n #else\n o *= texture8_tmp;\n #endif\n }\n #else\n vec4 texture_tmp = texture(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n o.a *= texture_tmp.a;\n #else\n o *= texture_tmp;\n #endif\n #endif\n #endif\n o *= v_color;\n ALPHA_TEST(o);\n gl_FragColor = o;\n}" + }, + "glsl1": { + "vert": "\nprecision highp float;\nuniform mat4 cc_matViewProj;\nuniform mat4 cc_matWorld;\nattribute vec3 a_position;\nattribute vec4 a_color;\nvarying vec4 v_color;\n#if USE_TEXTURE\nattribute vec2 a_uv0;\nvarying vec2 v_uv0;\n#if USE_MULTI_TEXTURE\nattribute float a_texId;\nvarying float v_texId;\n#endif\n#endif\nvoid main () {\n vec4 pos = vec4(a_position, 1);\n #if CC_USE_MODEL\n pos = cc_matViewProj * cc_matWorld * pos;\n #else\n pos = cc_matViewProj * pos;\n #endif\n #if USE_TEXTURE\n v_uv0 = a_uv0;\n #if USE_MULTI_TEXTURE\n v_texId = a_texId;\n #endif\n #endif\n v_color = a_color;\n gl_Position = pos;\n}", + "frag": "\nprecision highp float;\n#if USE_ALPHA_TEST\n uniform float alphaThreshold;\n#endif\nvoid ALPHA_TEST (in vec4 color) {\n #if USE_ALPHA_TEST\n if (color.a < alphaThreshold) discard;\n #endif\n}\nvoid ALPHA_TEST (in float alpha) {\n #if USE_ALPHA_TEST\n if (alpha < alphaThreshold) discard;\n #endif\n}\nvarying vec4 v_color;\n#if USE_TEXTURE\nvarying vec2 v_uv0;\nuniform sampler2D texture;\n#if USE_MULTI_TEXTURE\nvarying float v_texId;\nuniform sampler2D texture2;\nuniform sampler2D texture3;\nuniform sampler2D texture4;\nuniform sampler2D texture5;\nuniform sampler2D texture6;\nuniform sampler2D texture7;\nuniform sampler2D texture8;\n#endif\n#endif\nvoid main () {\n vec4 o = vec4(1, 1, 1, 1);\n #if USE_TEXTURE\n #if USE_MULTI_TEXTURE\n if(v_texId < 1.0){\n vec4 texture_tmp = texture2D(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture2D(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n o.a *= texture_tmp.a;\n #else\n o *= texture_tmp;\n #endif\n } else if(v_texId < 2.0){\n vec4 texture2_tmp = texture2D(texture2, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture2\n texture2_tmp.a *= texture2D(texture2, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture2_tmp.rgb * texture2_tmp.rgb);\n o.a *= texture2_tmp.a;\n #else\n o *= texture2_tmp;\n #endif\n } else if(v_texId < 3.0){\n vec4 texture3_tmp = texture2D(texture3, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture3\n texture3_tmp.a *= texture2D(texture3, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture3_tmp.rgb * texture3_tmp.rgb);\n o.a *= texture3_tmp.a;\n #else\n o *= texture3_tmp;\n #endif\n } else if(v_texId < 4.0){\n vec4 texture4_tmp = texture2D(texture4, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture4\n texture4_tmp.a *= texture2D(texture4, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture4_tmp.rgb * texture4_tmp.rgb);\n o.a *= texture4_tmp.a;\n #else\n o *= texture4_tmp;\n #endif\n } else if(v_texId < 5.0){\n vec4 texture5_tmp = texture2D(texture5, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture5\n texture5_tmp.a *= texture2D(texture5, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture5_tmp.rgb * texture5_tmp.rgb);\n o.a *= texture5_tmp.a;\n #else\n o *= texture5_tmp;\n #endif\n } else if(v_texId < 6.0){\n vec4 texture6_tmp = texture2D(texture6, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture6\n texture6_tmp.a *= texture2D(texture6, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture6_tmp.rgb * texture6_tmp.rgb);\n o.a *= texture6_tmp.a;\n #else\n o *= texture6_tmp;\n #endif\n } else if(v_texId < 7.0){\n vec4 texture7_tmp = texture2D(texture7, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture7\n texture7_tmp.a *= texture2D(texture7, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture7_tmp.rgb * texture7_tmp.rgb);\n o.a *= texture7_tmp.a;\n #else\n o *= texture7_tmp;\n #endif\n } else {\n vec4 texture8_tmp = texture2D(texture8, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture8\n texture8_tmp.a *= texture2D(texture8, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture8_tmp.rgb * texture8_tmp.rgb);\n o.a *= texture8_tmp.a;\n #else\n o *= texture8_tmp;\n #endif\n }\n #else\n vec4 texture_tmp = texture2D(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture2D(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n o.a *= texture_tmp.a;\n #else\n o *= texture_tmp;\n #endif\n #endif\n #endif\n o *= v_color;\n ALPHA_TEST(o);\n gl_FragColor = o;\n}" + }, + "builtins": { + "globals": { + "blocks": [ + { + "name": "CCGlobal", + "defines": [] + } + ], + "samplers": [] + }, + "locals": { + "blocks": [ + { + "name": "CCLocal", + "defines": [] + } + ], + "samplers": [] + } + }, + "defines": [ + { + "name": "USE_TEXTURE", + "type": "boolean", + "defines": [] + }, + { + "name": "USE_MULTI_TEXTURE", + "type": "boolean", + "defines": [ + "USE_TEXTURE" + ] + }, + { + "name": "CC_USE_MODEL", + "type": "boolean", + "defines": [] + }, + { + "name": "USE_ALPHA_TEST", + "type": "boolean", + "defines": [] + }, + { + "name": "CC_USE_ALPHA_ATLAS_texture", + "type": "boolean", + "defines": [ + "USE_TEXTURE" + ] + }, + { + "name": "INPUT_IS_GAMMA", + "type": "boolean", + "defines": [ + "USE_TEXTURE" + ] + }, + { + "name": "CC_USE_ALPHA_ATLAS_texture2", + "type": "boolean", + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "CC_USE_ALPHA_ATLAS_texture3", + "type": "boolean", + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "CC_USE_ALPHA_ATLAS_texture4", + "type": "boolean", + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "CC_USE_ALPHA_ATLAS_texture5", + "type": "boolean", + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "CC_USE_ALPHA_ATLAS_texture6", + "type": "boolean", + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "CC_USE_ALPHA_ATLAS_texture7", + "type": "boolean", + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "CC_USE_ALPHA_ATLAS_texture8", + "type": "boolean", + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + } + ], + "blocks": [ + { + "name": "ALPHA_TEST", + "binding": 0, + "members": [ + { + "name": "alphaThreshold", + "type": 13, + "count": 1 + } + ], + "defines": [ + "USE_ALPHA_TEST" + ] + } + ], + "samplers": [ + { + "name": "texture", + "type": 29, + "count": 1, + "binding": 30, + "defines": [ + "USE_TEXTURE" + ] + }, + { + "name": "texture2", + "type": 29, + "count": 1, + "binding": 31, + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "texture3", + "type": 29, + "count": 1, + "binding": 32, + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "texture4", + "type": 29, + "count": 1, + "binding": 33, + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "texture5", + "type": 29, + "count": 1, + "binding": 34, + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "texture6", + "type": 29, + "count": 1, + "binding": 35, + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "texture7", + "type": 29, + "count": 1, + "binding": 36, + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + }, + { + "name": "texture8", + "type": 29, + "count": 1, + "binding": 37, + "defines": [ + "USE_TEXTURE", + "USE_MULTI_TEXTURE" + ] + } + ] + } + ], + [ + { + "passes": [ + { + "program": "multi-2d-sprite|vs|fs", + "blendState": { + "targets": [ + { + "blend": true + } + ] + }, + "rasterizerState": { + "cullMode": 0 + }, + "properties": { + "texture": { + "value": "white", + "type": 29 + }, + "texture2": { + "value": "white", + "type": 29 + }, + "texture3": { + "value": "white", + "type": 29 + }, + "texture4": { + "value": "white", + "type": 29 + }, + "texture5": { + "value": "white", + "type": 29 + }, + "texture6": { + "value": "white", + "type": 29 + }, + "texture7": { + "value": "white", + "type": 29 + }, + "texture8": { + "value": "white", + "type": 29 + }, + "alphaThreshold": { + "type": 13, + "value": [ + 0.5 + ] + } + } + } + ] + } + ] + ] + ], + 0, + 0, + [], + [], + [] +] \ No newline at end of file diff --git a/demo/web-desktop/assets/sp/index.de22b.js b/demo/web-desktop/assets/sp/index.de22b.js new file mode 100644 index 00000000..a4d827f4 --- /dev/null +++ b/demo/web-desktop/assets/sp/index.de22b.js @@ -0,0 +1,29 @@ +(function e(t, n, r) { + function s(o, u) { + if (!n[o]) { + if (!t[o]) { + var b = o.split("/"); + b = b[b.length - 1]; + if (!t[b]) { + var a = "function" == typeof __require && __require; + if (!u && a) return a(b, !0); + if (i) return i(b, !0); + throw new Error("Cannot find module '" + o + "'"); + } + o = b; + } + var f = n[o] = { + exports: {} + }; + t[o][0].call(f.exports, function(e) { + var n = t[o][1][e]; + return s(n || e); + }, f, f.exports, e, t, n, r); + } + return n[o].exports; + } + var i = "function" == typeof __require && __require; + for (var o = 0; o < r.length; o++) s(r[o]); + return s; +})({}, {}, []); +//# sourceMappingURL=index.js.map diff --git a/demo/web-desktop/assets/sp/index.js.map b/demo/web-desktop/assets/sp/index.js.map new file mode 100644 index 00000000..a6d01198 --- /dev/null +++ b/demo/web-desktop/assets/sp/index.js.map @@ -0,0 +1 @@ +{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"index.js"} \ No newline at end of file diff --git a/demo/web-desktop/assets/spine/config.251d3.json b/demo/web-desktop/assets/spine/config.251d3.json new file mode 100644 index 00000000..97310f43 --- /dev/null +++ b/demo/web-desktop/assets/spine/config.251d3.json @@ -0,0 +1,141 @@ +{ + "paths": { + "76ZjeTsCNJMYn7/rwRXCpD": [ + "batch/spine-batch", + "cc.Prefab" + ], + "03EprhmOVCZKUbb5XyPXQq": [ + "skin/spine-skin", + "cc.Prefab" + ], + "69Fj/0+E5NeI6nlG9iAH/N": [ + "spines/huatuo", + "cc.Asset" + ], + "93dM6KrkZCf5dgNpQwf7T6": [ + "spines/huatuo", + "sp.SkeletonData" + ], + "80ThG1v09KeKxKhEPnFmvh": [ + "spines/huatuo", + "cc.Texture2D" + ], + "b5ObM0rx1GDKGN3k5VlH0s": [ + "spines/huatuo", + "cc.SpriteFrame", + 1 + ] + }, + "uuids": [ + "76ZjeTsCNJMYn7/rwRXCpD", + "03EprhmOVCZKUbb5XyPXQq", + "69Fj/0+E5NeI6nlG9iAH/N", + "93dM6KrkZCf5dgNpQwf7T6", + "80ThG1v09KeKxKhEPnFmvh", + "b5ObM0rx1GDKGN3k5VlH0s", + "ecpdLyjvZBwrvm+cedCcQy", + "a7ZscqX+JCIZRS157bMyhq", + "7a/QZLET9IDreTiBfRn2PD", + "85yTK+9shIo7RQfQ1TDEUi", + "09o3P/9gBP/Yc7AnxUBZ+Q", + "5cO7kybDxGj4ipyMYdRYZB", + "5f5dyqtRNNxaFmVzYns6FZ", + "a2MjXRFdtLlYQ5ouAFv/+R", + "f0BIwQ8D5Ml7nTNQbh1YlS", + "e97GVMl6JHh5Ml5qEDdSGa", + "29FYIk+N1GYaeWH/q1NxQO", + "70VXjGE0JMUqGli0jmCmTF", + "87/8ZHBEVIkKeNxmalrn9r", + "d0Bu8c2MBCKJc+mKBWzjsJ", + "c1Hf3Sl8ZAnJwP/fpoHxap", + "62MQQadaVK8qQN8n6UmJAa", + "39jYWzSTREwI2OOBK5nwFe", + "e8Ueib+qJEhL6mXAHdnwbi", + "b4P/PCArtIdIH38t6mlw8Y", + "71VhFCTINJM6/Ky3oX9nBT", + "d0bST/wYpJQIL5T+PCq46W", + "68Q/ALDvRLfKrAQu5CY15V", + "70JFWsm5JN17FDywI0Lb5I" + ], + "scenes": {}, + "redirect": [ + "ecpdLyjvZBwrvm+cedCcQy", + 0, + "7a/QZLET9IDreTiBfRn2PD", + 0, + "5cO7kybDxGj4ipyMYdRYZB", + 1, + "5f5dyqtRNNxaFmVzYns6FZ", + 1, + "a2MjXRFdtLlYQ5ouAFv/+R", + 1 + ], + "deps": [ + "internal", + "main" + ], + "packs": { + "063dea748": [ + "03EprhmOVCZKUbb5XyPXQq", + "09o3P/9gBP/Yc7AnxUBZ+Q", + "29FYIk+N1GYaeWH/q1NxQO", + "39jYWzSTREwI2OOBK5nwFe", + "62MQQadaVK8qQN8n6UmJAa", + "68Q/ALDvRLfKrAQu5CY15V", + "69Fj/0+E5NeI6nlG9iAH/N", + "70JFWsm5JN17FDywI0Lb5I", + "70VXjGE0JMUqGli0jmCmTF", + "71VhFCTINJM6/Ky3oX9nBT", + "76ZjeTsCNJMYn7/rwRXCpD", + "80ThG1v09KeKxKhEPnFmvh", + "85yTK+9shIo7RQfQ1TDEUi", + "87/8ZHBEVIkKeNxmalrn9r", + "93dM6KrkZCf5dgNpQwf7T6", + "a7ZscqX+JCIZRS157bMyhq", + "b4P/PCArtIdIH38t6mlw8Y", + "b5ObM0rx1GDKGN3k5VlH0s", + "c1Hf3Sl8ZAnJwP/fpoHxap", + "d0Bu8c2MBCKJc+mKBWzjsJ", + "d0bST/wYpJQIL5T+PCq46W", + "e8Ueib+qJEhL6mXAHdnwbi", + "e97GVMl6JHh5Ml5qEDdSGa", + "f0BIwQ8D5Ml7nTNQbh1YlS" + ] + }, + "name": "spine", + "importBase": "import", + "nativeBase": "native", + "debug": true, + "isZip": false, + "encrypted": false, + "versions": { + "import": [ + "063dea748", + "d4c56" + ], + "native": [ + "39jYWzSTREwI2OOBK5nwFe", + "2eb47", + "62MQQadaVK8qQN8n6UmJAa", + "40d17", + "68Q/ALDvRLfKrAQu5CY15V", + "9a531", + "69Fj/0+E5NeI6nlG9iAH/N", + "b8970", + "70JFWsm5JN17FDywI0Lb5I", + "7b3fa", + "71VhFCTINJM6/Ky3oX9nBT", + "c06a9", + "80ThG1v09KeKxKhEPnFmvh", + "fd38c", + "b4P/PCArtIdIH38t6mlw8Y", + "83fcc", + "c1Hf3Sl8ZAnJwP/fpoHxap", + "d86d7", + "d0bST/wYpJQIL5T+PCq46W", + "9c555", + "e8Ueib+qJEhL6mXAHdnwbi", + "90cf4" + ] + } +} \ No newline at end of file diff --git a/demo/web-desktop/assets/spine/import/06/063dea748.d4c56.json b/demo/web-desktop/assets/spine/import/06/063dea748.d4c56.json new file mode 100644 index 00000000..b5d0d4a0 --- /dev/null +++ b/demo/web-desktop/assets/spine/import/06/063dea748.d4c56.json @@ -0,0 +1,19176 @@ +[ + 1, + [ + "ecpdLyjvZBwrvm+cedCcQy", + "f0BIwQ8D5Ml7nTNQbh1YlS", + "7a/QZLET9IDreTiBfRn2PD", + "93dM6KrkZCf5dgNpQwf7T6", + "e97GVMl6JHh5Ml5qEDdSGa", + "29FYIk+N1GYaeWH/q1NxQO", + "5f5dyqtRNNxaFmVzYns6FZ", + "a2MjXRFdtLlYQ5ouAFv/+R", + "a7ZscqX+JCIZRS157bMyhq", + "85yTK+9shIo7RQfQ1TDEUi", + "09o3P/9gBP/Yc7AnxUBZ+Q", + "5cO7kybDxGj4ipyMYdRYZB", + "80ThG1v09KeKxKhEPnFmvh", + "70VXjGE0JMUqGli0jmCmTF", + "87/8ZHBEVIkKeNxmalrn9r", + "d0Bu8c2MBCKJc+mKBWzjsJ", + "39jYWzSTREwI2OOBK5nwFe", + "71VhFCTINJM6/Ky3oX9nBT", + "d0bST/wYpJQIL5T+PCq46W", + "62MQQadaVK8qQN8n6UmJAa", + "68Q/ALDvRLfKrAQu5CY15V", + "c1Hf3Sl8ZAnJwP/fpoHxap", + "70JFWsm5JN17FDywI0Lb5I", + "b4P/PCArtIdIH38t6mlw8Y", + "e8Ueib+qJEhL6mXAHdnwbi" + ], + [ + "node", + "_spriteFrame", + "_textureSetter", + "_parent", + "_N$skeletonData", + "_N$normalSprite", + "_N$pressedSprite", + "_N$hoverSprite", + "_N$disabledSprite", + "root", + "data", + "_scrollView", + "boy", + "randomChangeBtn", + "removeBoyBtn", + "addBoyBtn" + ], + [ + "cc.SpriteFrame", + "cc.Texture2D", + [ + "cc.Node", + [ + "_name", + "_objFlags", + "_prefab", + "_contentSize", + "_components", + "_children", + "_trs", + "_parent", + "_anchorPoint", + "_color" + ], + 1, + 4, + 5, + 9, + 2, + 7, + 1, + 5, + 5 + ], + [ + "cc.Widget", + [ + "_alignFlags", + "_left", + "_originalWidth", + "_originalHeight", + "alignMode", + "_right", + "_top", + "node" + ], + -4, + 1 + ], + [ + "cc.Layout", + [ + "_N$layoutType", + "_resize", + "_N$paddingTop", + "_N$spacingY", + "_N$affectedByScale", + "_N$paddingBottom", + "_N$startAxis", + "node", + "_layoutSize" + ], + -4, + 1, + 5 + ], + [ + "cc.Sprite", + [ + "_sizeMode", + "_type", + "_isTrimmedMode", + "node", + "_materials", + "_spriteFrame" + ], + 0, + 1, + 3, + 6 + ], + [ + "cc.Label", + [ + "_string", + "_N$horizontalAlign", + "_N$verticalAlign", + "_N$cacheMode", + "_materials", + "_fontSize", + "_lineHeight", + "node" + ], + -4, + 1 + ], + [ + "sp.Skeleton", + [ + "defaultSkin", + "defaultAnimation", + "_preCacheMode", + "premultipliedAlpha", + "_animationName", + "_N$enableBatch", + "_cacheMode", + "node", + "_materials", + "_N$skeletonData" + ], + -4, + 1, + 3, + 6 + ], + [ + "cc.Node", + [ + "_name", + "_parent", + "_children", + "_components", + "_prefab", + "_contentSize", + "_color", + "_anchorPoint", + "_trs" + ], + 2, + 1, + 2, + 12, + 4, + 5, + 5, + 5, + 7 + ], + [ + "cc.PrefabInfo", + [ + "fileId", + "root" + ], + 2, + 1 + ], + [ + "cc.Label", + [ + "_string", + "_N$horizontalAlign", + "_N$verticalAlign", + "_N$cacheMode", + "_fontSize", + "_enableWrapText", + "_N$overflow", + "node", + "_materials" + ], + -4, + 1, + 3 + ], + [ + "cc.Prefab", + [ + "_name" + ], + 2 + ], + [ + "cc.Node", + [ + "_name", + "_parent", + "_components", + "_prefab", + "_contentSize", + "_anchorPoint" + ], + 2, + 1, + 2, + 4, + 5, + 5 + ], + [ + "27990QihT9DxaLHUpAMue3v", + [ + "node", + "addBoyBtn", + "removeBoyBtn", + "randomChangeBtn", + "boy", + "heads" + ], + 3, + 1, + 1, + 1, + 1, + 1, + 3 + ], + [ + "cc.ToggleContainer", + [ + "node" + ], + 3, + 1 + ], + [ + "cc.Button", + [ + "_N$transition", + "node", + "_N$normalColor", + "_N$pressedColor", + "_N$disabledColor", + "_N$target", + "_N$normalSprite", + "_N$pressedSprite", + "_N$hoverSprite", + "_N$disabledSprite" + ], + 2, + 1, + 5, + 5, + 5, + 1, + 6, + 6, + 6, + 6 + ], + [ + "cc.Scrollbar", + [ + "enableAutoHide", + "_N$direction", + "node", + "_N$handle" + ], + 1, + 1, + 1 + ], + [ + "cc.ScrollView", + [ + "horizontal", + "brake", + "bounceDuration", + "_N$horizontalScrollBar", + "node", + "_N$content", + "_N$verticalScrollBar" + ], + -1, + 1, + 1, + 1 + ], + [ + "cc.Asset", + [ + "_name", + "_native" + ], + 1 + ], + [ + "cc.LabelOutline", + [ + "_width", + "node", + "_color" + ], + 2, + 1, + 5 + ], + [ + "sp.SkeletonData", + [ + "_name", + "_atlasText", + "textureNames", + "_skeletonJson", + "textures" + ], + -1, + 3 + ] + ], + [ + [ + 9, + 0, + 1, + 2 + ], + [ + 2, + 0, + 7, + 4, + 2, + 3, + 6, + 2 + ], + [ + 2, + 0, + 7, + 5, + 4, + 2, + 3, + 6, + 2 + ], + [ + 5, + 1, + 0, + 3, + 4, + 5, + 3 + ], + [ + 3, + 0, + 2, + 3, + 7, + 4 + ], + [ + 2, + 0, + 5, + 4, + 2, + 3, + 6, + 2 + ], + [ + 2, + 0, + 1, + 5, + 4, + 2, + 3, + 3 + ], + [ + 2, + 0, + 1, + 7, + 4, + 2, + 9, + 3, + 3 + ], + [ + 3, + 4, + 0, + 2, + 3, + 7, + 5 + ], + [ + 5, + 3, + 4, + 5, + 1 + ], + [ + 15, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 2 + ], + [ + 6, + 0, + 5, + 6, + 1, + 2, + 3, + 4, + 7, + 8 + ], + [ + 10, + 0, + 4, + 5, + 1, + 2, + 6, + 3, + 7, + 8, + 8 + ], + [ + 11, + 0, + 2 + ], + [ + 2, + 0, + 5, + 4, + 2, + 3, + 8, + 6, + 2 + ], + [ + 2, + 0, + 7, + 5, + 4, + 2, + 3, + 2 + ], + [ + 8, + 0, + 1, + 2, + 3, + 4, + 6, + 5, + 2 + ], + [ + 8, + 0, + 1, + 2, + 3, + 4, + 5, + 7, + 8, + 2 + ], + [ + 12, + 0, + 1, + 2, + 3, + 4, + 5, + 2 + ], + [ + 3, + 0, + 7, + 2 + ], + [ + 3, + 0, + 1, + 5, + 2, + 7, + 5 + ], + [ + 3, + 4, + 0, + 1, + 3, + 7, + 5 + ], + [ + 3, + 0, + 1, + 6, + 7, + 4 + ], + [ + 9, + 1, + 1 + ], + [ + 14, + 0, + 1 + ], + [ + 4, + 1, + 0, + 6, + 2, + 3, + 7, + 8, + 6 + ], + [ + 4, + 0, + 2, + 5, + 3, + 4, + 7, + 8, + 6 + ], + [ + 5, + 0, + 2, + 3, + 4, + 5, + 3 + ], + [ + 5, + 1, + 0, + 3, + 4, + 3 + ], + [ + 6, + 0, + 5, + 1, + 2, + 3, + 4, + 7, + 7 + ], + [ + 10, + 0, + 1, + 2, + 3, + 7, + 8, + 5 + ], + [ + 16, + 0, + 1, + 2, + 3, + 3 + ], + [ + 17, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 5 + ], + [ + 2, + 0, + 7, + 5, + 2, + 3, + 6, + 2 + ], + [ + 13, + 0, + 1, + 2, + 3, + 4, + 5, + 1 + ], + [ + 4, + 1, + 0, + 2, + 5, + 3, + 4, + 7, + 8, + 7 + ], + [ + 4, + 1, + 0, + 4, + 7, + 8, + 4 + ], + [ + 4, + 1, + 0, + 7, + 8, + 3 + ], + [ + 6, + 0, + 1, + 2, + 3, + 4, + 7, + 6 + ], + [ + 7, + 0, + 1, + 2, + 3, + 4, + 7, + 8, + 9, + 6 + ], + [ + 7, + 0, + 1, + 2, + 3, + 4, + 5, + 7, + 8, + 9, + 7 + ], + [ + 7, + 0, + 1, + 2, + 6, + 3, + 4, + 5, + 7, + 8, + 9, + 8 + ], + [ + 18, + 0, + 1, + 3 + ], + [ + 19, + 0, + 1, + 2, + 2 + ], + [ + 20, + 0, + 1, + 2, + 3, + 4, + 5 + ] + ], + [ + [ + [ + [ + 13, + "spine-skin" + ], + [ + 5, + "spine-skin", + [ + -8 + ], + [ + [ + 19, + 45, + -2 + ], + [ + 34, + -7, + -6, + -5, + -4, + -3, + [ + 28, + 29, + 30, + 31, + 32, + 33 + ] + ] + ], + [ + 23, + -1 + ], + [ + 5, + 960, + 600 + ], + [ + 480, + 300, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 14, + "content", + [ + -12, + -13 + ], + [ + [ + 24, + -9 + ], + [ + 25, + 1, + 2, + 1, + 30, + 20, + -10, + [ + 5, + 785.815, + 490 + ] + ], + [ + 20, + 41, + 87.09249999999997, + 87.09249999999997, + 220, + -11 + ] + ], + [ + 0, + "98B5382ANHgKQw5BkMsWAq", + 1 + ], + [ + 5, + 785.815, + 490 + ], + [ + 0, + 0.5, + 1 + ], + [ + 0, + 300, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 16, + "sv", + 1, + [ + -17, + -18 + ], + [ + [ + -14, + [ + 4, + 45, + 240, + 250, + -15 + ], + [ + 27, + 0, + false, + -16, + [ + 26 + ], + 27 + ] + ], + 1, + 4, + 4 + ], + [ + 0, + "b5RxDsAgFOW6xOyBdbz2rI", + 1 + ], + [ + 4, + 4279834905 + ], + [ + 5, + 960, + 600 + ] + ], + [ + 33, + "ui", + 2, + [ + -19, + -20, + -21, + -22 + ], + [ + 0, + "ecYMQYD9NOl7LadhXHQHYH", + 1 + ], + [ + 5, + 700, + 400 + ], + [ + 0, + -290, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 2, + "spine", + 4, + [ + -24, + -25 + ], + [ + [ + 35, + 1, + 2, + 20, + 50, + 140, + true, + -23, + [ + 5, + 200, + 446.4 + ] + ] + ], + [ + 0, + "08CQVCWaVPeLehXD9SK0Mz", + 1 + ], + [ + 5, + 200, + 446.4 + ], + [ + -226.086, + 14.829, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 6, + "Background", + 512, + [ + -28 + ], + [ + [ + 3, + 1, + 0, + -26, + [ + 3 + ], + 4 + ], + [ + 8, + 0, + 45, + 100, + 40, + -27 + ] + ], + [ + 0, + "b6JHPAtQpGgpx4Ld6CjPLs", + 1 + ], + [ + 5, + 100, + 40 + ] + ], + [ + 6, + "Background", + 512, + [ + -31 + ], + [ + [ + 3, + 1, + 0, + -29, + [ + 10 + ], + 11 + ], + [ + 8, + 0, + 45, + 100, + 40, + -30 + ] + ], + [ + 0, + "cdT6mmSeFBvoVdKbkDM3sx", + 1 + ], + [ + 5, + 100, + 40 + ] + ], + [ + 6, + "Background", + 512, + [ + -34 + ], + [ + [ + 3, + 1, + 0, + -32, + [ + 17 + ], + 18 + ], + [ + 8, + 0, + 45, + 100, + 40, + -33 + ] + ], + [ + 0, + "5dgAOFIUdIGaUKPwvIV/pr", + 1 + ], + [ + 5, + 100, + 40 + ] + ], + [ + 17, + "scrollBar", + 3, + [ + -38 + ], + [ + [ + -35, + [ + 21, + 0, + 37, + 350.07654921020657, + 237, + -36 + ], + [ + 3, + 1, + 0, + -37, + [ + 24 + ], + 25 + ] + ], + 1, + 4, + 4 + ], + [ + 0, + "c2cC2kA1NNeozY+5ZzkcSY", + 1 + ], + [ + 5, + 8, + 600 + ], + [ + 0, + 1, + 0.5 + ], + [ + 480, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 2, + "add-boy", + 4, + [ + 6 + ], + [ + [ + 10, + 2, + -39, + [ + 4, + 4293322470 + ], + [ + 4, + 4291348680 + ], + [ + 4, + 3363338360 + ], + 6, + 5, + 6, + 7, + 8 + ] + ], + [ + 0, + "7fPVLMrpJFs6JBCXaQeyw2", + 1 + ], + [ + 5, + 100, + 40 + ], + [ + -125.267, + -144.458, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 2, + "remove-boy", + 4, + [ + 7 + ], + [ + [ + 10, + 2, + -40, + [ + 4, + 4293322470 + ], + [ + 4, + 4291348680 + ], + [ + 4, + 3363338360 + ], + 7, + 12, + 13, + 14, + 15 + ] + ], + [ + 0, + "ffH62SPyxFdq/E/BRFN4Qw", + 1 + ], + [ + 5, + 100, + 40 + ], + [ + 0, + -144.458, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 2, + "random-change", + 4, + [ + 8 + ], + [ + [ + 10, + 2, + -41, + [ + 4, + 4293322470 + ], + [ + 4, + 4291348680 + ], + [ + 4, + 3363338360 + ], + 8, + 19, + 20, + 21, + 22 + ] + ], + [ + 0, + "82yna7uEpKUoZdYNueETrY", + 1 + ], + [ + 5, + 100, + 40 + ], + [ + 126.406, + -144.458, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 15, + "view", + 3, + [ + 2 + ], + [ + [ + 4, + 45, + 240, + 250, + -42 + ] + ], + [ + 0, + "645yltQ0dFpbIcIgDazPDc", + 1 + ], + [ + 5, + 960, + 600 + ] + ], + [ + 1, + "tips", + 2, + [ + [ + 29, + "使用 SpriteFrame 给不同的 Spine 组件进行换肤", + 16, + 1, + 1, + 2, + [ + null + ], + -43 + ], + [ + 22, + 17, + 95.11500000000001, + 30, + -44 + ] + ], + [ + 0, + "fbSLTYNutL174TDvzvU3nT", + 1 + ], + [ + 5, + 338.74, + 40 + ], + [ + 0, + -50, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 1, + "label", + 5, + [ + [ + 11, + "Spine", + 20, + 30, + 1, + 1, + 2, + [ + null + ], + -45 + ] + ], + [ + 0, + "7bbZkXUthKFpkeTLu7Uq1L", + 1 + ], + [ + 5, + 51.16, + 30 + ], + [ + 0, + 188.2, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 1, + "spine", + 5, + [ + [ + 39, + "default", + "attack", + 0, + false, + "attack", + -46, + [ + 0 + ], + 1 + ] + ], + [ + 0, + "61gMCsdq9POrIJoQLY+PPC", + 1 + ], + [ + 5, + 205, + 206.4 + ], + [ + 0, + -70.00000000000001, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 7, + "Label", + 512, + 6, + [ + [ + 12, + "增加爷爷", + 20, + false, + 1, + 1, + 1, + 1, + -47, + [ + 2 + ] + ] + ], + [ + 0, + "02Dr9jm5FDT5rrHE9he5tC", + 1 + ], + [ + 4, + 4278190080 + ], + [ + 5, + 100, + 40 + ] + ], + [ + 7, + "Label", + 512, + 7, + [ + [ + 12, + "删除爷爷", + 20, + false, + 1, + 1, + 1, + 1, + -48, + [ + 9 + ] + ] + ], + [ + 0, + "af40R7NOBLV4dST86rj08s", + 1 + ], + [ + 4, + 4278190080 + ], + [ + 5, + 100, + 40 + ] + ], + [ + 7, + "Label", + 512, + 8, + [ + [ + 12, + "随机换头", + 20, + false, + 1, + 1, + 1, + 1, + -49, + [ + 16 + ] + ] + ], + [ + 0, + "f266YXrhtBuJSJ4WrL3o2U", + 1 + ], + [ + 4, + 4278190080 + ], + [ + 5, + 100, + 40 + ] + ], + [ + 18, + "bar", + 9, + [ + -50 + ], + [ + 0, + "29pI3SelxAU6ODrNe5LS2g", + 1 + ], + [ + 5, + 8, + 30 + ], + [ + 0, + 1, + 0 + ] + ], + [ + 28, + 1, + 0, + 20, + [ + 23 + ] + ], + [ + 31, + false, + 1, + 9, + 21 + ], + [ + 32, + false, + 0.75, + 0.23, + null, + 3, + 2, + 22 + ] + ], + 0, + [ + 0, + 9, + 1, + 0, + 0, + 1, + 0, + 12, + 5, + 0, + 13, + 12, + 0, + 14, + 11, + 0, + 15, + 10, + 0, + 0, + 1, + 0, + -1, + 3, + 0, + 0, + 2, + 0, + 0, + 2, + 0, + 0, + 2, + 0, + -1, + 14, + 0, + -2, + 4, + 0, + -1, + 23, + 0, + 0, + 3, + 0, + 0, + 3, + 0, + -1, + 13, + 0, + -2, + 9, + 0, + -1, + 5, + 0, + -2, + 10, + 0, + -3, + 11, + 0, + -4, + 12, + 0, + 0, + 5, + 0, + -1, + 15, + 0, + -2, + 16, + 0, + 0, + 6, + 0, + 0, + 6, + 0, + -1, + 17, + 0, + 0, + 7, + 0, + 0, + 7, + 0, + -1, + 18, + 0, + 0, + 8, + 0, + 0, + 8, + 0, + -1, + 19, + 0, + -1, + 22, + 0, + 0, + 9, + 0, + 0, + 9, + 0, + -1, + 20, + 0, + 0, + 10, + 0, + 0, + 11, + 0, + 0, + 12, + 0, + 0, + 13, + 0, + 0, + 14, + 0, + 0, + 14, + 0, + 0, + 15, + 0, + 0, + 16, + 0, + 0, + 17, + 0, + 0, + 18, + 0, + 0, + 19, + 0, + -1, + 21, + 0, + 10, + 1, + 2, + 3, + 13, + 6, + 3, + 10, + 7, + 3, + 11, + 8, + 3, + 12, + 22, + 11, + 23, + 50 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 21 + ], + [ + -1, + 4, + -1, + -1, + 1, + 5, + 6, + 7, + 8, + -1, + -1, + 1, + 5, + 6, + 7, + 8, + -1, + -1, + 1, + 5, + 6, + 7, + 8, + -1, + -1, + 1, + -1, + 1, + -1, + -2, + -3, + -4, + -5, + -6, + 1 + ], + [ + 2, + 3, + 0, + 0, + 1, + 1, + 4, + 1, + 5, + 0, + 0, + 1, + 1, + 4, + 1, + 5, + 0, + 0, + 1, + 1, + 4, + 1, + 5, + 0, + 0, + 6, + 0, + 7, + 8, + 9, + 10, + 13, + 14, + 15, + 11 + ] + ], + [ + [ + { + "name": "1655112526123", + "rect": [ + 0, + 0, + 656, + 992 + ], + "offset": [ + 0, + 0 + ], + "originalSize": [ + 656, + 992 + ], + "capInsets": [ + 0, + 0, + 0, + 0 + ] + } + ], + [ + 0 + ], + 0, + [ + 0 + ], + [ + 2 + ], + [ + 16 + ] + ], + [ + [ + { + "name": "default_btn_disabled", + "rect": [ + 0, + 0, + 40, + 40 + ], + "offset": [ + 0, + 0 + ], + "originalSize": [ + 40, + 40 + ], + "capInsets": [ + 12, + 12, + 12, + 12 + ] + } + ], + [ + 0 + ], + 0, + [ + 0 + ], + [ + 2 + ], + [ + 17 + ] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,1", + -1 + ], + [ + 1 + ], + 0, + [], + [], + [] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,1", + -1 + ], + [ + 1 + ], + 0, + [], + [], + [] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,1", + -1 + ], + [ + 1 + ], + 0, + [], + [], + [] + ], + [ + [ + [ + 42, + "huatuo", + ".atlas" + ], + -1 + ], + 0, + 0, + [], + [], + [] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,1", + -1 + ], + [ + 1 + ], + 0, + [], + [], + [] + ], + [ + [ + { + "name": "1655112538161", + "rect": [ + 0, + 0, + 596, + 672 + ], + "offset": [ + 0, + 0 + ], + "originalSize": [ + 596, + 672 + ], + "capInsets": [ + 0, + 0, + 0, + 0 + ] + } + ], + [ + 0 + ], + 0, + [ + 0 + ], + [ + 2 + ], + [ + 18 + ] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,1", + -1 + ], + [ + 1 + ], + 0, + [], + [], + [] + ], + [ + [ + [ + 13, + "spine-batch" + ], + [ + 5, + "spine-batch", + [ + -3 + ], + [ + [ + 19, + 45, + -2 + ] + ], + [ + 23, + -1 + ], + [ + 5, + 960, + 600 + ], + [ + 480, + 300, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 5, + "layout", + [ + -5, + -6, + -7, + -8, + -9, + -10 + ], + [ + [ + 36, + 1, + 3, + true, + -4, + [ + 5, + 680, + 542.8 + ] + ] + ], + [ + 0, + "f9Sx/dkYFAy6NyLiZNPA6X", + 1 + ], + [ + 5, + 680, + 542.8 + ], + [ + 0, + -361.4, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 14, + "content", + [ + -14, + 2 + ], + [ + [ + 24, + -11 + ], + [ + 25, + 1, + 2, + 1, + 30, + 20, + -12, + [ + 5, + 785.815, + 632.8 + ] + ], + [ + 20, + 41, + 87.09249999999997, + 87.09249999999997, + 220, + -13 + ] + ], + [ + 0, + "98B5382ANHgKQw5BkMsWAq", + 1 + ], + [ + 5, + 785.815, + 632.8 + ], + [ + 0, + 0.5, + 1 + ], + [ + 0, + 300, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 16, + "sv", + 1, + [ + -18, + -19 + ], + [ + [ + -15, + [ + 4, + 45, + 240, + 250, + -16 + ], + [ + 27, + 0, + false, + -17, + [ + 15 + ], + 16 + ] + ], + 1, + 4, + 4 + ], + [ + 0, + "b5RxDsAgFOW6xOyBdbz2rI", + 1 + ], + [ + 4, + 4279834905 + ], + [ + 5, + 960, + 600 + ] + ], + [ + 2, + "labels", + 2, + [ + -21, + -22, + -23 + ], + [ + [ + 37, + 1, + 2, + -20, + [ + 5, + 206, + 146.8 + ] + ] + ], + [ + 0, + "b1uPyb+01EOoKtabfl0csM", + 1 + ], + [ + 5, + 206, + 146.8 + ], + [ + 94.20000000000002, + -73.39999999999998, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 17, + "scrollBar", + 4, + [ + -27 + ], + [ + [ + -24, + [ + 21, + 0, + 37, + 350.07654921020657, + 237, + -25 + ], + [ + 3, + 1, + 0, + -26, + [ + 13 + ], + 14 + ] + ], + 1, + 4, + 4 + ], + [ + 0, + "c2cC2kA1NNeozY+5ZzkcSY", + 1 + ], + [ + 5, + 8, + 600 + ], + [ + 0, + 1, + 0.5 + ], + [ + 480, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 2, + "spine", + 2, + [ + -29, + -30 + ], + [ + [ + 26, + 2, + 20, + 50, + 80, + true, + -28, + [ + 5, + 200, + 271.4 + ] + ] + ], + [ + 0, + "31JPBRYatHkoDv2zvv/7eB", + 1 + ], + [ + 5, + 200, + 271.4 + ], + [ + -119.39999999999998, + 135.7, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 2, + "cache-spine", + 2, + [ + -32, + -33 + ], + [ + [ + 26, + 2, + 20, + 50, + 80, + true, + -31, + [ + 5, + 200, + 271.4 + ] + ] + ], + [ + 0, + "7bfA07p2JDNYfxmrFo4L8I", + 1 + ], + [ + 5, + 200, + 271.4 + ], + [ + -240, + -135.7, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 15, + "view", + 4, + [ + 3 + ], + [ + [ + 4, + 45, + 240, + 250, + -34 + ] + ], + [ + 0, + "645yltQ0dFpbIcIgDazPDc", + 1 + ], + [ + 5, + 960, + 600 + ] + ], + [ + 1, + "tips", + 3, + [ + [ + 29, + "Spine 能与其它组件一起合批,并且自动参与动态合图", + 16, + 1, + 1, + 2, + [ + null + ], + -35 + ], + [ + 22, + 17, + 95.11500000000001, + 30, + -36 + ] + ], + [ + 0, + "fbSLTYNutL174TDvzvU3nT", + 1 + ], + [ + 5, + 381.37, + 40 + ], + [ + 0, + -50, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 1, + "label", + 5, + [ + [ + 30, + "测试文本2", + 1, + 1, + 1, + -37, + [ + 11 + ] + ], + [ + 43, + 3, + -38, + [ + 4, + 4278234623 + ] + ] + ], + [ + 0, + "c7bTKcbvlKf7Lp0sLWxBXk", + 1 + ], + [ + 5, + 188.245, + 56.4 + ], + [ + 0, + -45.19999999999999, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 1, + "image", + 2, + [ + [ + 9, + -39, + [ + 0 + ], + 1 + ] + ], + [ + 0, + "c0PIlfI0xGhqhBe27EMFdf", + 1 + ], + [ + 5, + 402, + 370 + ], + [ + -279.7, + 215.89999999999998, + 0, + 0, + 0, + 0, + 1, + 0.3, + 0.3, + 1 + ] + ], + [ + 1, + "label", + 7, + [ + [ + 11, + "Spine", + 20, + 30, + 1, + 1, + 2, + [ + null + ], + -40 + ] + ], + [ + 0, + "d3er6aC01DDbUGAsilUXhU", + 1 + ], + [ + 5, + 51.16, + 30 + ], + [ + 0, + 100.69999999999999, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 1, + "spine", + 7, + [ + [ + 40, + "default", + "attack", + 0, + false, + "attack", + true, + -41, + [ + 2 + ], + 3 + ] + ], + [ + 0, + "a3n8ncuCREN62/gp55RzUo", + 1 + ], + [ + 5, + 205, + 206.4 + ], + [ + 0, + -76.86000000000001, + 0, + 0, + 0, + 0, + 1, + 0.8, + 0.8, + 1 + ] + ], + [ + 1, + "image", + 2, + [ + [ + 9, + -42, + [ + 4 + ], + 5 + ] + ], + [ + 0, + "f6Yx2oyTdM1YNSiqSGFVC7", + 1 + ], + [ + 5, + 556, + 606 + ], + [ + 64.00000000000001, + 180.5, + 0, + 0, + 0, + 0, + 1, + -0.3, + 0.3, + 1 + ] + ], + [ + 1, + "label", + 8, + [ + [ + 11, + "Spine - Cache", + 20, + 30, + 1, + 1, + 2, + [ + null + ], + -43 + ] + ], + [ + 0, + "32oD4smZhFX7aZtSdU2PYF", + 1 + ], + [ + 5, + 126.75, + 30 + ], + [ + 0, + 100.69999999999999, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 1, + "spine", + 8, + [ + [ + 41, + "default", + "attack", + 2, + 2, + false, + "attack", + true, + -44, + [ + 6 + ], + 7 + ] + ], + [ + 0, + "2dqKZvqktLo68z2O1Z5HCo", + 1 + ], + [ + 5, + 205, + 206.4 + ], + [ + 0, + -76.86000000000001, + 0, + 0, + 0, + 0, + 1, + 0.8, + 0.8, + 1 + ] + ], + [ + 1, + "image", + 2, + [ + [ + 9, + -45, + [ + 8 + ], + 9 + ] + ], + [ + 0, + "5eY1BJCgdMcInIfAEyh+Uw", + 1 + ], + [ + 5, + 656, + 992 + ], + [ + -74.39999999999999, + -99.19999999999999, + 0, + 0, + 0, + 0, + 1, + -0.2, + 0.2, + 1 + ] + ], + [ + 1, + "label", + 5, + [ + [ + 38, + "测试文本1", + 1, + 1, + 2, + [ + null + ], + -46 + ] + ], + [ + 0, + "ba/d8ojsFHZrwHAkNZkcZe", + 1 + ], + [ + 5, + 182.245, + 40 + ], + [ + 0, + 53.400000000000006, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 1, + "label", + 5, + [ + [ + 30, + "测试文本2", + 1, + 1, + 1, + -47, + [ + 10 + ] + ] + ], + [ + 0, + "5fxJk/DL1Nwr4wwyWmUPz/", + 1 + ], + [ + 5, + 182.245, + 50.4 + ], + [ + 0, + 8.200000000000006, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 18, + "bar", + 6, + [ + -48 + ], + [ + 0, + "29pI3SelxAU6ODrNe5LS2g", + 1 + ], + [ + 5, + 8, + 30 + ], + [ + 0, + 1, + 0 + ] + ], + [ + 28, + 1, + 0, + 21, + [ + 12 + ] + ], + [ + 31, + false, + 1, + 6, + 22 + ], + [ + 32, + false, + 0.75, + 0.23, + null, + 4, + 3, + 23 + ] + ], + 0, + [ + 0, + 9, + 1, + 0, + 0, + 1, + 0, + -1, + 4, + 0, + 0, + 2, + 0, + -1, + 12, + 0, + -2, + 7, + 0, + -3, + 15, + 0, + -4, + 8, + 0, + -5, + 18, + 0, + -6, + 5, + 0, + 0, + 3, + 0, + 0, + 3, + 0, + 0, + 3, + 0, + -1, + 10, + 0, + -1, + 24, + 0, + 0, + 4, + 0, + 0, + 4, + 0, + -1, + 9, + 0, + -2, + 6, + 0, + 0, + 5, + 0, + -1, + 19, + 0, + -2, + 20, + 0, + -3, + 11, + 0, + -1, + 23, + 0, + 0, + 6, + 0, + 0, + 6, + 0, + -1, + 21, + 0, + 0, + 7, + 0, + -1, + 13, + 0, + -2, + 14, + 0, + 0, + 8, + 0, + -1, + 16, + 0, + -2, + 17, + 0, + 0, + 9, + 0, + 0, + 10, + 0, + 0, + 10, + 0, + 0, + 11, + 0, + 0, + 11, + 0, + 0, + 12, + 0, + 0, + 13, + 0, + 0, + 14, + 0, + 0, + 15, + 0, + 0, + 16, + 0, + 0, + 17, + 0, + 0, + 18, + 0, + 0, + 19, + 0, + 0, + 20, + 0, + -1, + 22, + 0, + 10, + 1, + 2, + 3, + 3, + 3, + 3, + 9, + 23, + 11, + 24, + 48 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 22 + ], + [ + -1, + 1, + -1, + 4, + -1, + 1, + -1, + 4, + -1, + 1, + -1, + -1, + -1, + -1, + 1, + -1, + 1, + 1 + ], + [ + 0, + 8, + 2, + 3, + 0, + 9, + 2, + 3, + 0, + 10, + 0, + 0, + 0, + 0, + 6, + 0, + 7, + 11 + ] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,1", + -1 + ], + [ + 1 + ], + 0, + [], + [], + [] + ], + [ + [ + { + "name": "1655112514006", + "rect": [ + 0, + 0, + 556, + 606 + ], + "offset": [ + 0, + 0 + ], + "originalSize": [ + 556, + 606 + ], + "capInsets": [ + 0, + 0, + 0, + 0 + ] + } + ], + [ + 0 + ], + 0, + [ + 0 + ], + [ + 2 + ], + [ + 19 + ] + ], + [ + [ + { + "name": "1655112548981", + "rect": [ + 0, + 0, + 396, + 570 + ], + "offset": [ + 0, + 0 + ], + "originalSize": [ + 396, + 570 + ], + "capInsets": [ + 0, + 0, + 0, + 0 + ] + } + ], + [ + 0 + ], + 0, + [ + 0 + ], + [ + 2 + ], + [ + 20 + ] + ], + [ + [ + [ + 44, + "huatuo", + "\nhuatuo.png\nsize: 701,208\nformat: RGBA8888\nfilter: Linear,Linear\nrepeat: none\nBody\n rotate: false\n xy: 487, 72\n size: 90, 91\n orig: 90, 91\n offset: 0, 0\n index: -1\nEye\n rotate: false\n xy: 473, 44\n size: 45, 24\n orig: 45, 24\n offset: 0, 0\n index: -1\nEye-beiji\n rotate: false\n xy: 360, 60\n size: 57, 23\n orig: 57, 23\n offset: 0, 0\n index: -1\nEye-fennu\n rotate: false\n xy: 570, 39\n size: 39, 21\n orig: 39, 21\n offset: 0, 0\n index: -1\nEye-shengli\n rotate: false\n xy: 421, 64\n size: 45, 19\n orig: 45, 19\n offset: 0, 0\n index: -1\nEye-siwang\n rotate: false\n xy: 522, 48\n size: 44, 20\n orig: 44, 20\n offset: 0, 0\n index: -1\nHead\n rotate: false\n xy: 581, 64\n size: 89, 99\n orig: 89, 99\n offset: 0, 0\n index: -1\nL-Forearm\n rotate: false\n xy: 613, 29\n size: 32, 31\n orig: 32, 31\n offset: 0, 0\n index: -1\nL-Hand\n rotate: false\n xy: 674, 150\n size: 27, 26\n orig: 27, 26\n offset: 0, 0\n index: -1\nL-Lowerleg\n rotate: false\n xy: 674, 117\n size: 26, 29\n orig: 26, 29\n offset: 0, 0\n index: -1\nL-Thigh\n rotate: false\n xy: 649, 25\n size: 29, 35\n orig: 29, 35\n offset: 0, 0\n index: -1\nL-Upperarm\n rotate: false\n xy: 318, 7\n size: 50, 49\n orig: 50, 49\n offset: 0, 0\n index: -1\nMouth\n rotate: false\n xy: 682, 36\n size: 18, 10\n orig: 18, 10\n offset: 0, 0\n index: -1\nMouth-beiji\n rotate: false\n xy: 470, 72\n size: 13, 11\n orig: 13, 11\n offset: 0, 0\n index: -1\nMouth-fennu\n rotate: false\n xy: 674, 66\n size: 22, 17\n orig: 22, 17\n offset: 0, 0\n index: -1\nMouth-shengli\n rotate: false\n xy: 581, 17\n size: 20, 18\n orig: 20, 18\n offset: 0, 0\n index: -1\nMouth-siwang\n rotate: false\n xy: 682, 50\n size: 18, 12\n orig: 18, 12\n offset: 0, 0\n index: -1\nPelvis\n rotate: false\n xy: 641, 180\n size: 43, 28\n orig: 43, 28\n offset: 0, 0\n index: -1\nR-Forearm\n rotate: false\n xy: 473, 9\n size: 38, 31\n orig: 38, 31\n offset: 0, 0\n index: -1\nR-Hand\n rotate: false\n xy: 549, 12\n size: 28, 23\n orig: 28, 23\n offset: 0, 0\n index: -1\nR-Lowerleg\n rotate: false\n xy: 674, 87\n size: 26, 26\n orig: 26, 26\n offset: 0, 0\n index: -1\nR-Thigh\n rotate: false\n xy: 515, 4\n size: 30, 36\n orig: 30, 36\n offset: 0, 0\n index: -1\nR-Upperarm\n rotate: false\n xy: 431, 12\n size: 38, 48\n orig: 38, 48\n offset: 0, 0\n index: -1\nSE-daoguang\n rotate: false\n xy: 0, 0\n size: 239, 208\n orig: 239, 208\n offset: 0, 0\n index: -1\nSE-guang\n rotate: false\n xy: 360, 87\n size: 123, 121\n orig: 123, 121\n offset: 0, 0\n index: -1\nWeapon\n rotate: false\n xy: 243, 10\n size: 71, 46\n orig: 71, 46\n offset: 0, 0\n index: -1\nbeilou\n rotate: false\n xy: 243, 60\n size: 113, 148\n orig: 113, 148\n offset: 0, 0\n index: -1\nhulu\n rotate: false\n xy: 372, 4\n size: 55, 52\n orig: 55, 52\n offset: 0, 0\n index: -1\nshadow\n rotate: false\n xy: 487, 167\n size: 150, 41\n orig: 150, 41\n offset: 0, 0\n index: -1\n", + [ + "huatuo.png" + ], + { + "animations": { + "attack": { + "bones": { + "Body": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 18.64, + "time": 0.3333 + }, + { + "angle": -36.77, + "curve": "stepped", + "time": 0.4666 + }, + { + "angle": -36.77, + "time": 0.6 + }, + { + "angle": 0, + "time": 0.8333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.3333, + "x": 1, + "y": 1 + }, + { + "time": 0.8333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.3333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.4666, + "x": -0.08, + "y": -5.27 + }, + { + "time": 0.6, + "x": -0.08, + "y": -5.27 + }, + { + "time": 0.8333, + "x": 0, + "y": 0 + } + ] + }, + "Head": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 3.66, + "time": 0.3333 + }, + { + "angle": 13.02, + "time": 0.4666 + }, + { + "angle": 4.61, + "time": 0.6 + }, + { + "angle": 0, + "time": 0.8333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.3333, + "x": 1, + "y": 1 + }, + { + "time": 0.8333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.3333, + "x": 0, + "y": 0 + }, + { + "time": 0.8333, + "x": 0, + "y": 0 + } + ] + }, + "L-Foot": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.3333 + }, + { + "angle": 0, + "time": 0.8333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.3333, + "x": 1, + "y": 1 + }, + { + "time": 0.8333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.3333, + "x": 0, + "y": 0 + }, + { + "time": 0.8333, + "x": 0, + "y": 0 + } + ] + }, + "L-Forearm": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 37.66, + "time": 0.3333 + }, + { + "angle": 50.87, + "time": 0.4 + }, + { + "angle": -2.14, + "time": 0.4666 + }, + { + "angle": 50.37, + "time": 0.6 + }, + { + "angle": 0, + "time": 0.8333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.3333, + "x": 1, + "y": 1 + }, + { + "time": 0.8333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.3333, + "x": 2.77, + "y": 8.28 + }, + { + "time": 0.4666, + "x": 0.15, + "y": 0.79 + }, + { + "time": 0.6, + "x": -2.32, + "y": 3.41 + }, + { + "time": 0.8333, + "x": 0, + "y": 0 + } + ] + }, + "L-Hand": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 8.68, + "time": 0.3333 + }, + { + "angle": 27.16, + "time": 0.4 + }, + { + "angle": -36.63, + "curve": "stepped", + "time": 0.4666 + }, + { + "angle": -36.63, + "time": 0.6 + }, + { + "angle": 0, + "time": 0.8333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.3333, + "x": 1, + "y": 1 + }, + { + "time": 0.8333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.3333, + "x": 0, + "y": 0 + }, + { + "time": 0.4, + "x": 1.68, + "y": -2.56 + }, + { + "curve": "stepped", + "time": 0.4666, + "x": 3.22, + "y": 1.54 + }, + { + "time": 0.6, + "x": 3.22, + "y": 1.54 + }, + { + "time": 0.8333, + "x": 0, + "y": 0 + } + ] + }, + "L-Lowerleg": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.3333 + }, + { + "angle": 0, + "time": 0.8333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.3333, + "x": 1, + "y": 1 + }, + { + "time": 0.8333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.3333, + "x": 0, + "y": 0 + }, + { + "time": 0.8333, + "x": 0, + "y": 0 + } + ] + }, + "L-Thigh": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.3333 + }, + { + "angle": 0, + "time": 0.8333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.3333, + "x": 1, + "y": 1 + }, + { + "time": 0.8333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.3333, + "x": 0, + "y": 0 + }, + { + "time": 0.4666, + "x": -9.61, + "y": -7.24 + }, + { + "time": 0.8333, + "x": 0, + "y": 0 + } + ] + }, + "L-Upperarm": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 131.88, + "time": 0.3333 + }, + { + "angle": 75.04, + "time": 0.4 + }, + { + "angle": 65.85, + "time": 0.4666 + }, + { + "angle": 22.2, + "time": 0.6 + }, + { + "angle": 0, + "time": 0.8333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.3333, + "x": 1, + "y": 1 + }, + { + "time": 0.8333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.3333, + "x": 0, + "y": 0 + }, + { + "time": 0.8333, + "x": 0, + "y": 0 + } + ] + }, + "Pelvis": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 4.04, + "time": 0.3333 + }, + { + "angle": -16.23, + "curve": "stepped", + "time": 0.4666 + }, + { + "angle": -16.23, + "time": 0.6 + }, + { + "angle": 0, + "time": 0.8333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.3333, + "x": 1, + "y": 1 + }, + { + "time": 0.8333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.3333, + "x": -3.79, + "y": 0.37 + }, + { + "time": 0.4666, + "x": 2.02, + "y": -7.38 + }, + { + "time": 0.6, + "x": -6.89, + "y": -5.44 + }, + { + "time": 0.8333, + "x": 0, + "y": 0 + } + ] + }, + "R-Foot": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.2333 + }, + { + "angle": 0, + "time": 0.8333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2333, + "x": 1, + "y": 1 + }, + { + "time": 0.8333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.2333, + "x": -18.72, + "y": 0 + }, + { + "time": 0.5333, + "x": -16.45, + "y": 0 + }, + { + "time": 0.8333, + "x": 0, + "y": 0 + } + ] + }, + "R-Forearm": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -6.45, + "time": 0.3333 + }, + { + "angle": -36.3, + "time": 0.4 + }, + { + "angle": -49.63, + "time": 0.4666 + }, + { + "angle": -10.59, + "time": 0.6 + }, + { + "angle": 0, + "time": 0.8333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.3333, + "x": 1, + "y": 1 + }, + { + "time": 0.8333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.3333, + "x": 0, + "y": 0 + }, + { + "time": 0.8333, + "x": 0, + "y": 0 + } + ] + }, + "R-Hand": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 0.3333 + }, + { + "angle": 13.15, + "time": 0.4666 + }, + { + "angle": -4.94, + "time": 0.6 + }, + { + "angle": 0, + "time": 0.8333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.3333, + "x": 1, + "y": 1 + }, + { + "time": 0.8333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.3333, + "x": 0, + "y": 0 + }, + { + "time": 0.8333, + "x": 0, + "y": 0 + } + ] + }, + "R-Lowerleg": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.3333 + }, + { + "angle": 0, + "time": 0.8333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.3333, + "x": 1, + "y": 1 + }, + { + "time": 0.8333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.3333, + "x": 0, + "y": 0 + }, + { + "time": 0.8333, + "x": 0, + "y": 0 + } + ] + }, + "R-Thigh": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.3333 + }, + { + "angle": 0, + "time": 0.8333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.3333, + "x": 1, + "y": 1 + }, + { + "time": 0.8333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.2333, + "x": 6.72, + "y": -4.12 + }, + { + "time": 0.3333, + "x": 6.44, + "y": -2.4 + }, + { + "time": 0.8333, + "x": 0, + "y": 0 + } + ] + }, + "R-Upperarm": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -25.2, + "time": 0.3333 + }, + { + "angle": -3.66, + "time": 0.4 + }, + { + "angle": -35.43, + "time": 0.4666 + }, + { + "angle": -27.56, + "time": 0.6 + }, + { + "angle": 0, + "time": 0.8333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.3333, + "x": 1, + "y": 1 + }, + { + "time": 0.8333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.3333, + "x": -2.65, + "y": 0.19 + }, + { + "time": 0.4666, + "x": -6.05, + "y": 0.42 + }, + { + "time": 0.6, + "x": -4.7, + "y": 3.34 + }, + { + "time": 0.8333, + "x": 0, + "y": 0 + } + ] + }, + "SE-daoguang": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 0.8333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.8333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.8333, + "x": 0, + "y": 0 + } + ] + }, + "Weapon": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 107.53, + "time": 0.1666 + }, + { + "angle": -151.17, + "time": 0.3333 + }, + { + "angle": 141.92, + "time": 0.4 + }, + { + "angle": 56.08, + "time": 0.4333 + }, + { + "angle": -19.06, + "time": 0.4666 + }, + { + "angle": -14.26, + "time": 0.6 + }, + { + "angle": -2.41, + "time": 0.7 + }, + { + "angle": 0, + "time": 0.8333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.3333, + "x": 1, + "y": 1 + }, + { + "time": 0.8333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.0666, + "x": 21.03, + "y": 29.09 + }, + { + "time": 0.1333, + "x": 20.44, + "y": 68.5 + }, + { + "time": 0.1666, + "x": 10.63, + "y": 87.65 + }, + { + "time": 0.2333, + "x": -24.87, + "y": 113.91 + }, + { + "time": 0.3, + "x": -67.59, + "y": 117.54 + }, + { + "time": 0.3333, + "x": -88.4, + "y": 110.4 + }, + { + "time": 0.3666, + "x": -21.98, + "y": 112.65 + }, + { + "time": 0.4, + "x": 30.25, + "y": 74.61 + }, + { + "time": 0.4333, + "x": 56.37, + "y": 24.26 + }, + { + "time": 0.4666, + "x": 45.95, + "y": -29.81 + }, + { + "time": 0.6, + "x": 16.93, + "y": -30.9 + }, + { + "time": 0.7, + "x": 11.91, + "y": -15.05 + }, + { + "time": 0.8333, + "x": 0, + "y": 0 + } + ] + }, + "beilou": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -7.8, + "time": 0.3333 + }, + { + "angle": 0, + "time": 0.8333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.3333, + "x": 1, + "y": 1 + }, + { + "time": 0.8333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.3333, + "x": 0, + "y": 0 + }, + { + "time": 0.8333, + "x": 0, + "y": 0 + } + ] + }, + "bone": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -3.73, + "time": 0.3333 + }, + { + "angle": 1.5, + "time": 0.5333 + }, + { + "angle": 0, + "time": 0.8333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.3333, + "x": 1, + "y": 1 + }, + { + "time": 0.8333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.3333, + "x": 0, + "y": 0 + }, + { + "time": 0.8333, + "x": 0, + "y": 0 + } + ] + }, + "bone2": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -8.36, + "time": 0.3333 + }, + { + "angle": 47.94, + "time": 0.4666 + }, + { + "angle": -5.72, + "time": 0.6666 + }, + { + "angle": 0, + "time": 0.8333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.3333, + "x": 1, + "y": 1 + }, + { + "time": 0.8333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.3333, + "x": 0, + "y": 0 + }, + { + "time": 0.8333, + "x": 0, + "y": 0 + } + ] + }, + "bone3": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -8.36, + "time": 0.3333 + }, + { + "angle": 47.94, + "time": 0.4666 + }, + { + "angle": -5.72, + "time": 0.6666 + }, + { + "angle": 0, + "time": 0.8333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.3333, + "x": 1, + "y": 1 + }, + { + "time": 0.8333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.3333, + "x": 0, + "y": 0 + }, + { + "time": 0.8333, + "x": 0, + "y": 0 + } + ] + }, + "hulu": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -15.56, + "time": 0.3333 + }, + { + "angle": 1.08, + "time": 0.4666 + }, + { + "angle": -21.9, + "time": 0.6666 + }, + { + "angle": 0, + "time": 0.8333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.3333, + "x": 1, + "y": 1 + }, + { + "time": 0.8333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.3333, + "x": -43.73, + "y": -19.48 + }, + { + "time": 0.4, + "x": 19.25, + "y": -3.03 + }, + { + "time": 0.4666, + "x": 87.43, + "y": -23.81 + }, + { + "time": 0.5666, + "x": 83.94, + "y": -25.33 + }, + { + "time": 0.6, + "x": 81.76, + "y": -24.82 + }, + { + "time": 0.6666, + "x": 60.52, + "y": -12.12 + }, + { + "time": 0.7333, + "x": 36.31, + "y": -2.51 + }, + { + "time": 0.8333, + "x": 0, + "y": 0 + } + ] + }, + "root": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.3333 + }, + { + "angle": 0, + "time": 0.8333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.3333, + "x": 1, + "y": 1 + }, + { + "time": 0.8333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.3333, + "x": 0, + "y": 0 + }, + { + "time": 0.8333, + "x": 0, + "y": 0 + } + ] + }, + "shadow": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.3333 + }, + { + "angle": 0, + "time": 0.8333 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1.086, + "y": 1 + }, + { + "time": 0.3333, + "x": 1.086, + "y": 1 + }, + { + "time": 0.4666, + "x": 1.217, + "y": 1.087 + }, + { + "time": 0.8333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.2, + "x": -4.19, + "y": 0 + }, + { + "time": 0.3333, + "x": -4.19, + "y": 0 + }, + { + "time": 0.4666, + "x": 1.78, + "y": 0 + }, + { + "time": 0.8333, + "x": 0, + "y": 0 + } + ] + } + }, + "slots": { + "Eye": { + "attachment": [ + { + "name": "Eye", + "time": 0 + }, + { + "name": "Eye-fennu", + "time": 0.4 + }, + { + "name": "Eye-fennu", + "time": 0.4666 + }, + { + "name": "Eye", + "time": 0.6 + }, + { + "name": "Eye", + "time": 0.8333 + } + ] + }, + "Mouth": { + "attachment": [ + { + "name": "Mouth", + "time": 0 + }, + { + "name": "Mouth-fennu", + "time": 0.4 + }, + { + "name": "Mouth-fennu", + "time": 0.4666 + }, + { + "name": "Mouth", + "time": 0.6 + }, + { + "name": "Mouth", + "time": 0.8333 + } + ] + }, + "SE-daoguang": { + "attachment": [ + { + "name": null, + "time": 0 + }, + { + "name": "SE-daoguang", + "time": 0.4333 + }, + { + "name": null, + "time": 0.8333 + } + ], + "color": [ + { + "color": "ffffff00", + "time": 0.4333 + }, + { + "color": "ffffffe9", + "time": 0.4666 + }, + { + "color": "ffffffff", + "time": 0.6 + }, + { + "color": "ffffff00", + "curve": "stepped", + "time": 0.7333 + }, + { + "color": "ffffff00", + "time": 0.8333 + } + ] + }, + "guang": { + "attachment": [ + { + "name": null, + "time": 0 + }, + { + "name": null, + "time": 0.8333 + } + ] + }, + "hulu": { + "attachment": [ + { + "name": "hulu", + "time": 0 + }, + { + "name": "hulu", + "time": 0.8333 + } + ] + } + } + }, + "celebrate": { + "bones": { + "Body": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 1.34, + "time": 0.1666 + }, + { + "angle": 0, + "time": 0.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.3333, + "x": 0, + "y": 0 + } + ] + }, + "Head": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -4.23, + "time": 0.1666 + }, + { + "angle": 0, + "time": 0.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.3333, + "x": 0, + "y": 0 + } + ] + }, + "L-Foot": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 0.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.3333, + "x": 0, + "y": 0 + } + ] + }, + "L-Forearm": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -8.92, + "time": 0.1666 + }, + { + "angle": 0, + "time": 0.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.3333, + "x": 0, + "y": 0 + } + ] + }, + "L-Hand": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 3.52, + "time": 0.1666 + }, + { + "angle": 0, + "time": 0.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.3333, + "x": 0, + "y": 0 + } + ] + }, + "L-Lowerleg": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 0.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.3333, + "x": 0, + "y": 0 + } + ] + }, + "L-Thigh": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 0.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.3333, + "x": 0, + "y": 0 + } + ] + }, + "L-Upperarm": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 4.5, + "time": 0.1666 + }, + { + "angle": 0, + "time": 0.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.3333, + "x": 0, + "y": 0 + } + ] + }, + "Pelvis": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -0.9, + "time": 0.1666 + }, + { + "angle": 0, + "time": 0.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.1666, + "x": -0.83, + "y": -1.16 + }, + { + "time": 0.3333, + "x": 0, + "y": 0 + } + ] + }, + "R-Foot": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 0.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.3333, + "x": 0, + "y": 0 + } + ] + }, + "R-Forearm": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 2.72, + "time": 0.1666 + }, + { + "angle": 0, + "time": 0.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.3333, + "x": 0, + "y": 0 + } + ] + }, + "R-Hand": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 0.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.3333, + "x": 0, + "y": 0 + } + ] + }, + "R-Lowerleg": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 0.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.3333, + "x": 0, + "y": 0 + } + ] + }, + "R-Thigh": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 0.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.3333, + "x": 0, + "y": 0 + } + ] + }, + "R-Upperarm": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -2.02, + "time": 0.1666 + }, + { + "angle": 0, + "time": 0.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.3333, + "x": 0, + "y": 0 + } + ] + }, + "Weapon": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 1.35, + "time": 0.1666 + }, + { + "angle": 0, + "time": 0.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.1666, + "x": 1.11, + "y": -0.74 + }, + { + "time": 0.3333, + "x": 0, + "y": 0 + } + ] + }, + "beilou": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -2.58, + "time": 0.1666 + }, + { + "angle": 0, + "time": 0.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.3333, + "x": 0, + "y": 0 + } + ] + }, + "bone": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -2.7, + "time": 0.1666 + }, + { + "angle": 0, + "time": 0.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.3333, + "x": 0, + "y": 0 + } + ] + }, + "bone2": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 5.05, + "time": 0.1666 + }, + { + "angle": 0, + "time": 0.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.3333, + "x": 0, + "y": 0 + } + ] + }, + "bone3": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 5.05, + "time": 0.1666 + }, + { + "angle": 0, + "time": 0.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.3333, + "x": 0, + "y": 0 + } + ] + }, + "hulu": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -3.29, + "time": 0.1666 + }, + { + "angle": 0, + "time": 0.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.1666, + "x": 1.43, + "y": -2.03 + }, + { + "time": 0.3333, + "x": 0, + "y": 0 + } + ] + }, + "root": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 0.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.3333, + "x": 0, + "y": 0 + } + ] + }, + "shadow": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 0.3333 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.1666, + "x": 1.056, + "y": 1.056 + }, + { + "time": 0.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.3333, + "x": 0, + "y": 0 + } + ] + } + }, + "slots": { + "Eye": { + "attachment": [ + { + "name": "Eye-shengli", + "time": 0 + }, + { + "name": "Eye", + "time": 0.3333 + } + ] + }, + "Mouth": { + "attachment": [ + { + "name": "Mouth-shengli", + "time": 0 + }, + { + "name": "Mouth", + "time": 0.3333 + } + ] + }, + "SE-daoguang": { + "attachment": [ + { + "name": null, + "time": 0 + }, + { + "name": null, + "time": 0.3333 + } + ] + }, + "guang": { + "attachment": [ + { + "name": null, + "time": 0 + }, + { + "name": null, + "time": 0.3333 + } + ] + }, + "hulu": { + "attachment": [ + { + "name": "hulu", + "time": 0 + }, + { + "name": "hulu", + "time": 0.3333 + } + ] + } + } + }, + "death": { + "bones": { + "Body": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -14.57, + "time": 0.0666 + }, + { + "angle": -9.95, + "time": 0.2 + }, + { + "angle": -32.23, + "time": 0.4 + }, + { + "angle": -4.99, + "time": 0.5333 + }, + { + "angle": -12.14, + "time": 0.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 1, + "y": 1 + }, + { + "time": 0.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 0, + "y": 0 + }, + { + "time": 0.6666, + "x": 0, + "y": 0 + } + ] + }, + "Head": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -7.2, + "time": 0.0666 + }, + { + "angle": 10.28, + "time": 0.2 + }, + { + "angle": -8.48, + "time": 0.4 + }, + { + "angle": 18.75, + "time": 0.5333 + }, + { + "angle": 11.6, + "time": 0.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 1, + "y": 1 + }, + { + "time": 0.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.2, + "x": -0.48, + "y": 3.25 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 0.56, + "y": 3.66 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 0.56, + "y": 3.66 + }, + { + "time": 0.6666, + "x": 0.56, + "y": 3.66 + } + ] + }, + "L-Foot": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.2 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.4 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.5333 + }, + { + "angle": 0, + "time": 0.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 1, + "y": 1 + }, + { + "time": 0.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.2, + "x": 8.68, + "y": 18.75 + }, + { + "time": 0.3, + "x": 20.16, + "y": 42.25 + }, + { + "time": 0.4, + "x": 14.14, + "y": 54.32 + }, + { + "time": 0.4666, + "x": 17.89, + "y": 28.73 + }, + { + "time": 0.5333, + "x": 2.24, + "y": 8 + }, + { + "time": 0.6666, + "x": 6.49, + "y": 4.17 + } + ] + }, + "L-Forearm": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 17.48, + "time": 0.0666 + }, + { + "angle": -4.56, + "time": 0.2 + }, + { + "angle": 43.85, + "time": 0.4 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.5333 + }, + { + "angle": 0, + "time": 0.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 1, + "y": 1 + }, + { + "time": 0.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.2, + "x": 0, + "y": 0 + }, + { + "time": 0.4, + "x": 8.67, + "y": 6.9 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 0, + "y": 0 + }, + { + "time": 0.6666, + "x": 0, + "y": 0 + } + ] + }, + "L-Hand": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -9.23, + "time": 0.0666 + }, + { + "angle": 10.26, + "time": 0.2 + }, + { + "angle": 27.75, + "time": 0.4 + }, + { + "angle": 6.88, + "curve": "stepped", + "time": 0.5333 + }, + { + "angle": 6.88, + "time": 0.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 1, + "y": 1 + }, + { + "time": 0.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 0, + "y": 0 + }, + { + "time": 0.6666, + "x": 0, + "y": 0 + } + ] + }, + "L-Lowerleg": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.2 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.4 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.5333 + }, + { + "angle": 0, + "time": 0.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 1, + "y": 1 + }, + { + "time": 0.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 0, + "y": 0 + }, + { + "time": 0.6666, + "x": 0, + "y": 0 + } + ] + }, + "L-Thigh": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.2 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.4 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.5333 + }, + { + "angle": 0, + "time": 0.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 1, + "y": 1 + }, + { + "time": 0.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.0666, + "x": -5.37, + "y": -2.73 + }, + { + "time": 0.2, + "x": -4.64, + "y": -3.33 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 0, + "y": 0 + }, + { + "time": 0.6666, + "x": 0, + "y": 0 + } + ] + }, + "L-Upperarm": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 17.48, + "time": 0.0666 + }, + { + "angle": 9.08, + "time": 0.2 + }, + { + "angle": -5.51, + "time": 0.4 + }, + { + "angle": 326.65, + "curve": "stepped", + "time": 0.5333 + }, + { + "angle": 326.65, + "time": 0.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 1, + "y": 1 + }, + { + "time": 0.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 0, + "y": 0 + }, + { + "time": 0.6666, + "x": 0, + "y": 0 + } + ] + }, + "Pelvis": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -2.25, + "time": 0.0666 + }, + { + "angle": 12.97, + "time": 0.2 + }, + { + "angle": 95.05, + "curve": "stepped", + "time": 0.4 + }, + { + "angle": 95.05, + "curve": "stepped", + "time": 0.5333 + }, + { + "angle": 95.05, + "time": 0.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 1, + "y": 1 + }, + { + "time": 0.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.0666, + "x": -9.68, + "y": 0 + }, + { + "time": 0.2, + "x": -9.68, + "y": 11.9 + }, + { + "time": 0.3, + "x": -8.66, + "y": 11.39 + }, + { + "time": 0.4, + "x": -5.1, + "y": -17.16 + }, + { + "time": 0.5333, + "x": -5.1, + "y": -6.96 + }, + { + "time": 0.6666, + "x": -5.1, + "y": -17.16 + } + ] + }, + "R-Foot": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.2 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.4 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.5333 + }, + { + "angle": 0, + "time": 0.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 1, + "y": 1 + }, + { + "time": 0.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.0666, + "x": -20.2, + "y": 0 + }, + { + "time": 0.2, + "x": 3.59, + "y": 11.04 + }, + { + "time": 0.3, + "x": 37.63, + "y": 27.91 + }, + { + "time": 0.4, + "x": 47.87, + "y": 22.68 + }, + { + "time": 0.4666, + "x": 49.93, + "y": 9.08 + }, + { + "time": 0.5333, + "x": 46.17, + "y": -4.51 + }, + { + "time": 0.6666, + "x": 53.82, + "y": 1.85 + } + ] + }, + "R-Forearm": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -25.67, + "time": 0.2333 + }, + { + "angle": -14.58, + "time": 0.4 + }, + { + "angle": -24.14, + "curve": "stepped", + "time": 0.5333 + }, + { + "angle": -24.14, + "time": 0.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 1, + "y": 1 + }, + { + "time": 0.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 0, + "y": 0 + }, + { + "time": 0.6666, + "x": 0, + "y": 0 + } + ] + }, + "R-Hand": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.4 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.5333 + }, + { + "angle": 0, + "time": 0.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 1, + "y": 1 + }, + { + "time": 0.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 0, + "y": 0 + }, + { + "time": 0.6666, + "x": 0, + "y": 0 + } + ] + }, + "R-Lowerleg": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.2 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.4 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.5333 + }, + { + "angle": 0, + "time": 0.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 1, + "y": 1 + }, + { + "time": 0.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 0, + "y": 0 + }, + { + "time": 0.6666, + "x": 0, + "y": 0 + } + ] + }, + "R-Thigh": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.2 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.4 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.5333 + }, + { + "angle": 0, + "time": 0.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 1, + "y": 1 + }, + { + "time": 0.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.2, + "x": 3.79, + "y": 1.98 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 0, + "y": 0 + }, + { + "time": 0.6666, + "x": 0, + "y": 0 + } + ] + }, + "R-Upperarm": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 1.93, + "time": 0.2333 + }, + { + "angle": -299.5, + "time": 0.4 + }, + { + "angle": 20.15, + "curve": "stepped", + "time": 0.5333 + }, + { + "angle": 20.15, + "time": 0.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 1, + "y": 1 + }, + { + "time": 0.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.2333, + "x": -0.92, + "y": 1.33 + }, + { + "time": 0.4, + "x": 0.11, + "y": 6.96 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 1.95, + "y": 2.13 + }, + { + "time": 0.6666, + "x": 1.95, + "y": 2.13 + } + ] + }, + "Weapon": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 9.89, + "time": 0.0666 + }, + { + "angle": 12.95, + "time": 0.2 + }, + { + "angle": -49.4, + "time": 0.4 + }, + { + "angle": 2.26, + "time": 0.5333 + }, + { + "angle": -22.48, + "time": 0.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 1, + "y": 1 + }, + { + "time": 0.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.0666, + "x": 8.57, + "y": 1.86 + }, + { + "time": 0.2, + "x": -1.11, + "y": 17.15 + }, + { + "time": 0.3, + "x": -1.72, + "y": 5.77 + }, + { + "time": 0.4, + "x": 8.88, + "y": -1.42 + }, + { + "time": 0.5333, + "x": 5.53, + "y": -31.51 + }, + { + "time": 0.6666, + "x": 3.72, + "y": -24.61 + } + ] + }, + "beilou": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 18.65, + "time": 0.0666 + }, + { + "angle": -30.84, + "time": 0.2 + }, + { + "angle": -52.32, + "time": 0.4 + }, + { + "angle": -50.64, + "time": 0.5333 + }, + { + "angle": -24.39, + "time": 0.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 1, + "y": 1 + }, + { + "time": 0.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.0666, + "x": -3.18, + "y": 4.67 + }, + { + "time": 0.2, + "x": 4.46, + "y": 11.89 + }, + { + "time": 0.4, + "x": 33.6, + "y": -26.48 + }, + { + "time": 0.5333, + "x": 36.7, + "y": -68.74 + }, + { + "time": 0.6666, + "x": 56.52, + "y": -62.24 + } + ] + }, + "bone": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 0.2 + }, + { + "angle": -8.04, + "time": 0.3333 + }, + { + "angle": 8.75, + "curve": "stepped", + "time": 0.4 + }, + { + "angle": 8.75, + "curve": "stepped", + "time": 0.5333 + }, + { + "angle": 8.75, + "time": 0.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 1, + "y": 1 + }, + { + "time": 0.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 0, + "y": 0 + }, + { + "time": 0.6666, + "x": 0, + "y": 0 + } + ] + }, + "bone2": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -11.36, + "time": 0.0666 + }, + { + "angle": 0, + "time": 0.2 + }, + { + "angle": -6.47, + "time": 0.3 + }, + { + "angle": -10.6, + "time": 0.4 + }, + { + "angle": -9.62, + "time": 0.5333 + }, + { + "angle": 14.97, + "time": 0.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 1, + "y": 1 + }, + { + "time": 0.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 0, + "y": 0 + }, + { + "time": 0.6666, + "x": 0, + "y": 0 + } + ] + }, + "bone3": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -11.36, + "time": 0.0666 + }, + { + "angle": 0, + "time": 0.2 + }, + { + "angle": -6.47, + "time": 0.3 + }, + { + "angle": -15.5, + "time": 0.4 + }, + { + "angle": -6.5, + "time": 0.5333 + }, + { + "angle": 48.07, + "time": 0.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 1, + "y": 1 + }, + { + "time": 0.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 0, + "y": 0 + }, + { + "time": 0.6666, + "x": 0, + "y": 0 + } + ] + }, + "hulu": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 26.71, + "time": 0.0666 + }, + { + "angle": -25.48, + "time": 0.2 + }, + { + "angle": -35.82, + "time": 0.4 + }, + { + "angle": 44.6, + "time": 0.5333 + }, + { + "angle": 57.68, + "time": 0.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 1, + "y": 1 + }, + { + "time": 0.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.0666, + "x": 25.54, + "y": 1.73 + }, + { + "time": 0.2, + "x": -26.84, + "y": 5.62 + }, + { + "time": 0.3, + "x": -65.81, + "y": -26.84 + }, + { + "time": 0.4, + "x": -86.59, + "y": -99.15 + }, + { + "time": 0.5333, + "x": -80.97, + "y": -162.8 + }, + { + "time": 0.6666, + "x": -85.3, + "y": -153.49 + } + ] + }, + "root": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.2 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.4 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.5333 + }, + { + "angle": 0, + "time": 0.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 1, + "y": 1 + }, + { + "time": 0.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.5333, + "x": 0, + "y": 0 + }, + { + "time": 0.6666, + "x": 0, + "y": 0 + } + ] + }, + "shadow": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.2 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.4 + }, + { + "angle": 0, + "time": 0.6666 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.2, + "x": 0.788, + "y": 0.788 + }, + { + "time": 0.4, + "x": 1.662, + "y": 1.283 + }, + { + "time": 0.5333, + "x": 1.621, + "y": 1.338 + }, + { + "time": 0.6666, + "x": 2.476, + "y": 2.141 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.2, + "x": 0, + "y": 0 + }, + { + "time": 0.4, + "x": -31.56, + "y": -11.29 + }, + { + "time": 0.6666, + "x": -38.58, + "y": -16.67 + } + ] + } + }, + "slots": { + "Eye": { + "attachment": [ + { + "name": "Eye", + "time": 0 + }, + { + "name": "Eye-beiji", + "time": 0.0666 + }, + { + "name": "Eye-siwang", + "time": 0.4 + }, + { + "name": "Eye-siwang", + "time": 0.5333 + }, + { + "name": "Eye-siwang", + "time": 0.6666 + } + ] + }, + "Mouth": { + "attachment": [ + { + "name": "Mouth", + "time": 0 + }, + { + "name": "Mouth-beiji", + "time": 0.0666 + }, + { + "name": "Mouth-siwang", + "time": 0.4 + }, + { + "name": "Mouth-siwang", + "time": 0.5333 + }, + { + "name": "Mouth-siwang", + "time": 0.6666 + } + ] + }, + "SE-daoguang": { + "attachment": [ + { + "name": null, + "time": 0 + }, + { + "name": null, + "time": 0.6666 + } + ] + }, + "Weapon": { + "attachment": [ + { + "name": "Weapon", + "time": 0 + }, + { + "name": "Weapon", + "time": 0.6666 + } + ] + }, + "guang": { + "attachment": [ + { + "name": null, + "time": 0 + }, + { + "name": null, + "time": 0.6666 + } + ] + }, + "hulu": { + "attachment": [ + { + "name": "hulu", + "time": 0 + }, + { + "name": "hulu", + "time": 0.6666 + } + ] + } + } + }, + "dizzy": { + "bones": { + "Body": { + "rotate": [ + { + "angle": -2.89, + "time": 0 + }, + { + "angle": -12.5, + "time": 0.6666 + }, + { + "angle": -2.89, + "time": 1.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.6666, + "x": 0, + "y": 0 + } + ] + }, + "Head": { + "rotate": [ + { + "angle": -2.89, + "time": 0 + }, + { + "angle": 1.34, + "time": 0.3333 + }, + { + "angle": -13.54, + "time": 0.6666 + }, + { + "angle": -1.23, + "time": 1.1666 + }, + { + "angle": -2.89, + "time": 1.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.6666, + "x": 0, + "y": 0 + } + ] + }, + "L-Foot": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 1.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.6666, + "x": 0, + "y": 0 + } + ] + }, + "L-Forearm": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 11.65, + "time": 0.6666 + }, + { + "angle": 0, + "time": 1.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.6666, + "x": 0, + "y": 0 + } + ] + }, + "L-Hand": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 3.52, + "time": 0.6666 + }, + { + "angle": 0, + "time": 1.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.6666, + "x": 0, + "y": 0 + } + ] + }, + "L-Lowerleg": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 1.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.6666, + "x": 0, + "y": 0 + } + ] + }, + "L-Thigh": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 1.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.6666, + "x": 0, + "y": 0 + } + ] + }, + "L-Upperarm": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -4.02, + "time": 0.6666 + }, + { + "angle": 0, + "time": 1.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.6666, + "x": 0, + "y": 0 + } + ] + }, + "Pelvis": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -0.9, + "time": 0.6666 + }, + { + "angle": 0, + "time": 1.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.6666, + "x": -0.83, + "y": -1.95 + }, + { + "time": 1.6666, + "x": 0, + "y": 0 + } + ] + }, + "R-Foot": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 1.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.6666, + "x": 0, + "y": 0 + } + ] + }, + "R-Forearm": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -19.52, + "time": 0.6666 + }, + { + "angle": 0, + "time": 1.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.6666, + "x": 0, + "y": 0 + } + ] + }, + "R-Hand": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 1.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.6666, + "x": 0, + "y": 0 + } + ] + }, + "R-Lowerleg": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 1.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.6666, + "x": 0, + "y": 0 + } + ] + }, + "R-Thigh": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 1.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.6666, + "x": 0, + "y": 0 + } + ] + }, + "R-Upperarm": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 12.33, + "time": 0.6666 + }, + { + "angle": 0, + "time": 1.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.6666, + "x": 1.58, + "y": 0.96 + }, + { + "time": 1.6666, + "x": 0, + "y": 0 + } + ] + }, + "Weapon": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 5.85, + "time": 0.6666 + }, + { + "angle": 0, + "time": 1.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.6666, + "x": -1.68, + "y": -9.18 + }, + { + "time": 1.6666, + "x": 0, + "y": 0 + } + ] + }, + "beilou": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 3.15, + "time": 0.6666 + }, + { + "angle": -8.55, + "time": 1.1666 + }, + { + "angle": 0, + "time": 1.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.6666, + "x": 0, + "y": 0 + } + ] + }, + "bone": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -2.7, + "time": 0.6666 + }, + { + "angle": 0, + "time": 1.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.6666, + "x": 0, + "y": 0 + } + ] + }, + "bone2": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 8.06, + "time": 0.3333 + }, + { + "angle": 23.45, + "time": 0.6666 + }, + { + "angle": 0, + "time": 1.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.6666, + "x": 0, + "y": 0 + } + ] + }, + "bone3": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -5.2, + "time": 0.3333 + }, + { + "angle": 23.45, + "time": 0.6666 + }, + { + "angle": 38.56, + "time": 1.1666 + }, + { + "angle": 0, + "time": 1.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.6666, + "x": 0, + "y": 0 + } + ] + }, + "hulu": { + "rotate": [ + { + "angle": -18.76, + "time": 0 + }, + { + "angle": -5.79, + "time": 0.6666 + }, + { + "angle": -18.76, + "time": 1.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 8.74, + "y": 1.54 + }, + { + "time": 0.3333, + "x": 13.08, + "y": 3.35 + }, + { + "time": 0.6666, + "x": 30.29, + "y": 1.55 + }, + { + "time": 1.1666, + "x": 15.66, + "y": 3.35 + }, + { + "time": 1.6666, + "x": 8.74, + "y": 1.54 + } + ] + }, + "root": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 1.6666 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.6666, + "x": 0, + "y": 0 + } + ] + }, + "shadow": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 1.6666 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.6666, + "x": 1.079, + "y": 1.079 + }, + { + "time": 1.6666, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.6666, + "x": 0, + "y": 0 + } + ] + } + }, + "slots": { + "Eye": { + "attachment": [ + { + "name": "Eye-siwang", + "time": 0 + }, + { + "name": "Eye-siwang", + "time": 1.6666 + } + ] + }, + "Mouth": { + "attachment": [ + { + "name": "Mouth-siwang", + "time": 0 + }, + { + "name": "Mouth-siwang", + "time": 1.6666 + } + ] + }, + "SE-daoguang": { + "attachment": [ + { + "name": null, + "time": 0 + }, + { + "name": null, + "time": 1.6666 + } + ] + }, + "guang": { + "attachment": [ + { + "name": null, + "time": 0 + }, + { + "name": null, + "time": 1.6666 + } + ] + }, + "hulu": { + "attachment": [ + { + "name": "hulu", + "time": 0 + }, + { + "name": "hulu", + "time": 1.6666 + } + ] + } + } + }, + "dodge": { + "bones": { + "Body": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -2.47, + "time": 0.1 + }, + { + "angle": 2.93, + "time": 0.3333 + }, + { + "angle": 0, + "time": 0.5 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.5, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.5, + "x": 0, + "y": 0 + } + ] + }, + "Head": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -3.82, + "time": 0.1 + }, + { + "angle": 2.37, + "time": 0.3333 + }, + { + "angle": 0, + "time": 0.5 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.5, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.5, + "x": 0, + "y": 0 + } + ] + }, + "L-Foot": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 0.5 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.5, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.1, + "x": -21.36, + "y": 16 + }, + { + "time": 0.3333, + "x": -45.6, + "y": 22.86 + }, + { + "time": 0.5, + "x": 0, + "y": 0 + } + ] + }, + "L-Forearm": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 10.84, + "time": 0.1 + }, + { + "angle": -3.61, + "time": 0.3333 + }, + { + "angle": 0, + "time": 0.5 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.5, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.5, + "x": 0, + "y": 0 + } + ] + }, + "L-Hand": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -14.94, + "time": 0.1 + }, + { + "angle": 12.63, + "time": 0.3333 + }, + { + "angle": 0, + "time": 0.5 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.5, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.5, + "x": 0, + "y": 0 + } + ] + }, + "L-Lowerleg": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 0.5 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.5, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.5, + "x": 0, + "y": 0 + } + ] + }, + "L-Thigh": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 0.5 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.5, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.5, + "x": 0, + "y": 0 + } + ] + }, + "L-Upperarm": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 10.88, + "time": 0.1 + }, + { + "angle": 4.14, + "time": 0.3333 + }, + { + "angle": 0, + "time": 0.5 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.5, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.5, + "x": 0, + "y": 0 + } + ] + }, + "Pelvis": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -0.9, + "time": 0.1 + }, + { + "angle": 0, + "time": 0.5 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.5, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.1, + "x": -32.73, + "y": 15.63 + }, + { + "time": 0.3333, + "x": -45.95, + "y": 22.05 + }, + { + "time": 0.5, + "x": 0, + "y": 0 + } + ] + }, + "R-Foot": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 0.5 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.5, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.1, + "x": -47.17, + "y": 27.06 + }, + { + "time": 0.3333, + "x": -45.6, + "y": 22.86 + }, + { + "time": 0.5, + "x": 0, + "y": 0 + } + ] + }, + "R-Forearm": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 8.27, + "time": 0.1 + }, + { + "angle": -7.98, + "time": 0.3333 + }, + { + "angle": 0, + "time": 0.5 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.5, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.5, + "x": 0, + "y": 0 + } + ] + }, + "R-Hand": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 6.79, + "time": 0.1 + }, + { + "angle": -8.6, + "time": 0.3333 + }, + { + "angle": 0, + "time": 0.5 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.5, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.5, + "x": 0, + "y": 0 + } + ] + }, + "R-Lowerleg": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 0.5 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.5, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.5, + "x": 0, + "y": 0 + } + ] + }, + "R-Thigh": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 0.5 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.5, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.5, + "x": 0, + "y": 0 + } + ] + }, + "R-Upperarm": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 11.89, + "time": 0.1 + }, + { + "angle": -6.47, + "time": 0.3333 + }, + { + "angle": 0, + "time": 0.5 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.5, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.5, + "x": 0, + "y": 0 + } + ] + }, + "SE-daoguang": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 0.5 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.5, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.1, + "x": -31.9, + "y": 17.58 + }, + { + "time": 0.3333, + "x": -45.6, + "y": 22.86 + }, + { + "time": 0.5, + "x": 0, + "y": 0 + } + ] + }, + "Weapon": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -9.81, + "time": 0.1 + }, + { + "angle": 25.57, + "time": 0.3333 + }, + { + "angle": 0, + "time": 0.5 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.5, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.1, + "x": -19.41, + "y": 22.97 + }, + { + "time": 0.3333, + "x": -40.7, + "y": 23.09 + }, + { + "time": 0.5, + "x": 0, + "y": 0 + } + ] + }, + "beilou": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -9.36, + "time": 0.1 + }, + { + "angle": 1.73, + "time": 0.3333 + }, + { + "angle": 0, + "time": 0.5 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.5, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.5, + "x": 0, + "y": 0 + } + ] + }, + "bone": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -10.01, + "time": 0.1 + }, + { + "angle": 4.76, + "time": 0.3333 + }, + { + "angle": 0, + "time": 0.5 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.5, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.5, + "x": 0, + "y": 0 + } + ] + }, + "bone2": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -2.25, + "time": 0.1 + }, + { + "angle": 7.99, + "time": 0.3333 + }, + { + "angle": 0, + "time": 0.5 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.5, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.5, + "x": 0, + "y": 0 + } + ] + }, + "bone3": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -2.25, + "time": 0.1 + }, + { + "angle": 7.99, + "time": 0.3333 + }, + { + "angle": 0, + "time": 0.5 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.5, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.5, + "x": 0, + "y": 0 + } + ] + }, + "hulu": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -5.93, + "time": 0.1 + }, + { + "angle": 17.49, + "time": 0.3333 + }, + { + "angle": 0, + "time": 0.5 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.5, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.1, + "x": -30.34, + "y": 17.13 + }, + { + "time": 0.3333, + "x": -55.22, + "y": 20.74 + }, + { + "time": 0.5, + "x": 0, + "y": 0 + } + ] + }, + "hulu2": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 0.5 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.5, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.5, + "x": 0, + "y": 0 + } + ] + }, + "root": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 0.5 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.5, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.5, + "x": 0, + "y": 0 + } + ] + }, + "shadow": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 0.5 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.1, + "x": 1.187, + "y": 1.187 + }, + { + "time": 0.5, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.1, + "x": -31.9, + "y": 17.58 + }, + { + "time": 0.3333, + "x": -45.6, + "y": 22.86 + }, + { + "time": 0.5, + "x": 0, + "y": 0 + } + ] + } + }, + "slots": { + "Eye": { + "attachment": [ + { + "name": "Eye", + "time": 0 + }, + { + "name": "Eye", + "time": 0.5 + } + ] + }, + "Mouth": { + "attachment": [ + { + "name": "Mouth", + "time": 0 + }, + { + "name": "Mouth", + "time": 0.5 + } + ] + }, + "SE-daoguang": { + "attachment": [ + { + "name": null, + "time": 0 + }, + { + "name": null, + "time": 0.5 + } + ] + }, + "guang": { + "attachment": [ + { + "name": null, + "time": 0 + }, + { + "name": null, + "time": 0.5 + } + ] + }, + "hulu": { + "attachment": [ + { + "name": "hulu", + "time": 0 + }, + { + "name": "hulu", + "time": 0.5 + } + ] + } + } + }, + "injured": { + "bones": { + "Body": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -14.57, + "time": 0.0666 + }, + { + "angle": 2.54, + "time": 0.2 + }, + { + "angle": 0, + "time": 0.4 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "time": 0.4, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 0, + "y": 0 + }, + { + "time": 0.4, + "x": 0, + "y": 0 + } + ] + }, + "Head": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -7.2, + "time": 0.0666 + }, + { + "angle": 22.77, + "time": 0.2 + }, + { + "angle": 0, + "time": 0.4 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "time": 0.4, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.2, + "x": -0.48, + "y": 3.25 + }, + { + "time": 0.4, + "x": 0, + "y": 0 + } + ] + }, + "L-Foot": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.2 + }, + { + "angle": 0, + "time": 0.4 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "time": 0.4, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 0, + "y": 0 + }, + { + "time": 0.4, + "x": 0, + "y": 0 + } + ] + }, + "L-Forearm": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 17.48, + "time": 0.0666 + }, + { + "angle": -4.56, + "time": 0.2 + }, + { + "angle": 0, + "time": 0.4 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "time": 0.4, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 0, + "y": 0 + }, + { + "time": 0.4, + "x": 0, + "y": 0 + } + ] + }, + "L-Hand": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -9.23, + "time": 0.0666 + }, + { + "angle": 10.26, + "time": 0.2 + }, + { + "angle": 0, + "time": 0.4 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "time": 0.4, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 0, + "y": 0 + }, + { + "time": 0.4, + "x": 0, + "y": 0 + } + ] + }, + "L-Lowerleg": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.2 + }, + { + "angle": 0, + "time": 0.4 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "time": 0.4, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 0, + "y": 0 + }, + { + "time": 0.4, + "x": 0, + "y": 0 + } + ] + }, + "L-Thigh": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.2 + }, + { + "angle": 0, + "time": 0.4 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "time": 0.4, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.0666, + "x": -5.37, + "y": -2.73 + }, + { + "time": 0.2, + "x": -4.64, + "y": -3.33 + }, + { + "time": 0.4, + "x": 0, + "y": 0 + } + ] + }, + "L-Upperarm": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 17.48, + "time": 0.0666 + }, + { + "angle": 9.08, + "time": 0.2 + }, + { + "angle": 0, + "time": 0.4 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "time": 0.4, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 0, + "y": 0 + }, + { + "time": 0.4, + "x": 0, + "y": 0 + } + ] + }, + "Pelvis": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -2.25, + "time": 0.0666 + }, + { + "angle": 12.97, + "time": 0.2 + }, + { + "angle": 0, + "time": 0.4 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "time": 0.4, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.0666, + "x": -9.68, + "y": 0 + }, + { + "time": 0.2, + "x": -9.68, + "y": 0 + }, + { + "time": 0.4, + "x": 0, + "y": 0 + } + ] + }, + "R-Foot": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.2 + }, + { + "angle": 0, + "time": 0.4 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "time": 0.4, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.0666, + "x": -20.2, + "y": 0 + }, + { + "time": 0.2, + "x": -20.2, + "y": 0 + }, + { + "time": 0.4, + "x": 0, + "y": 0 + } + ] + }, + "R-Forearm": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 10.11, + "time": 0.0666 + }, + { + "angle": -23.36, + "time": 0.2 + }, + { + "angle": 0, + "time": 0.4 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "time": 0.4, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.0666, + "x": 4.39, + "y": 3.93 + }, + { + "time": 0.2, + "x": 2.97, + "y": 1.24 + }, + { + "time": 0.4, + "x": 0, + "y": 0 + } + ] + }, + "R-Hand": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.2 + }, + { + "angle": 0, + "time": 0.4 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "time": 0.4, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 0, + "y": 0 + }, + { + "time": 0.4, + "x": 0, + "y": 0 + } + ] + }, + "R-Lowerleg": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.2 + }, + { + "angle": 0, + "time": 0.4 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "time": 0.4, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 0, + "y": 0 + }, + { + "time": 0.4, + "x": 0, + "y": 0 + } + ] + }, + "R-Thigh": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.2 + }, + { + "angle": 0, + "time": 0.4 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "time": 0.4, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.2, + "x": 3.79, + "y": 1.98 + }, + { + "time": 0.4, + "x": 0, + "y": 0 + } + ] + }, + "R-Upperarm": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 14.38, + "time": 0.0666 + }, + { + "angle": -12.57, + "time": 0.2 + }, + { + "angle": 0, + "time": 0.4 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "time": 0.4, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.0666, + "x": 1.29, + "y": 1.65 + }, + { + "time": 0.2, + "x": -1.15, + "y": 1.67 + }, + { + "time": 0.4, + "x": 0, + "y": 0 + } + ] + }, + "Weapon": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 10.34, + "time": 0.0666 + }, + { + "angle": 31.19, + "time": 0.2 + }, + { + "angle": 0, + "time": 0.4 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "time": 0.4, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.0666, + "x": 8.95, + "y": 2.23 + }, + { + "time": 0.2, + "x": -2.98, + "y": 16.41 + }, + { + "time": 0.4, + "x": 0, + "y": 0 + } + ] + }, + "beilou": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 18.65, + "time": 0.0666 + }, + { + "angle": -30.84, + "time": 0.2 + }, + { + "angle": 0, + "time": 0.4 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "time": 0.4, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.0666, + "x": -3.18, + "y": 4.67 + }, + { + "time": 0.2, + "x": 4.46, + "y": 11.89 + }, + { + "time": 0.4, + "x": 0, + "y": 0 + } + ] + }, + "bone": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.2 + }, + { + "angle": 0, + "time": 0.4 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "time": 0.4, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 0, + "y": 0 + }, + { + "time": 0.4, + "x": 0, + "y": 0 + } + ] + }, + "bone2": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -11.36, + "time": 0.0666 + }, + { + "angle": 0, + "time": 0.2 + }, + { + "angle": 22.5, + "time": 0.3 + }, + { + "angle": 0, + "time": 0.4 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "time": 0.4, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 0, + "y": 0 + }, + { + "time": 0.4, + "x": 0, + "y": 0 + } + ] + }, + "bone3": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -11.36, + "time": 0.0666 + }, + { + "angle": 0, + "time": 0.2 + }, + { + "angle": 22.5, + "time": 0.3 + }, + { + "angle": 0, + "time": 0.4 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "time": 0.4, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 0, + "y": 0 + }, + { + "time": 0.4, + "x": 0, + "y": 0 + } + ] + }, + "hulu": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -12.63, + "curve": "stepped", + "time": 0.0666 + }, + { + "angle": -12.63, + "time": 0.2 + }, + { + "angle": 0, + "time": 0.4 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "time": 0.4, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.0666, + "x": 25.39, + "y": 0 + }, + { + "time": 0.1333, + "x": -17.26, + "y": -3.55 + }, + { + "time": 0.2, + "x": -52.81, + "y": -24.37 + }, + { + "time": 0.4, + "x": 0, + "y": 0 + } + ] + }, + "root": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.2 + }, + { + "angle": 0, + "time": 0.4 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 1, + "y": 1 + }, + { + "time": 0.4, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.2, + "x": 0, + "y": 0 + }, + { + "time": 0.4, + "x": 0, + "y": 0 + } + ] + }, + "shadow": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.2 + }, + { + "angle": 0, + "time": 0.4 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.2, + "x": 1.143, + "y": 1.143 + }, + { + "time": 0.4, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.2, + "x": -6.01, + "y": 0 + }, + { + "time": 0.4, + "x": 0, + "y": 0 + } + ] + } + }, + "slots": { + "Eye": { + "attachment": [ + { + "name": "Eye", + "time": 0 + }, + { + "name": "Eye-beiji", + "time": 0.0666 + }, + { + "name": "Eye", + "time": 0.3333 + }, + { + "name": "Eye", + "time": 0.4 + } + ] + }, + "Mouth": { + "attachment": [ + { + "name": "Mouth", + "time": 0 + }, + { + "name": "Mouth-beiji", + "time": 0.0666 + }, + { + "name": "Mouth", + "time": 0.3333 + }, + { + "name": "Mouth", + "time": 0.4 + } + ] + }, + "SE-daoguang": { + "attachment": [ + { + "name": null, + "time": 0 + }, + { + "name": null, + "time": 0.4 + } + ] + }, + "guang": { + "attachment": [ + { + "name": null, + "time": 0 + }, + { + "name": null, + "time": 0.4 + } + ] + }, + "hulu": { + "attachment": [ + { + "name": "hulu", + "time": 0 + }, + { + "name": "hulu", + "time": 0.4 + } + ] + } + } + }, + "skill": { + "bones": { + "Body": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -7.14, + "time": 0.4 + }, + { + "angle": -12.89, + "time": 0.5666 + }, + { + "angle": -7.98, + "time": 0.8333 + }, + { + "angle": -12.53, + "time": 1.0666 + }, + { + "angle": -14.02, + "time": 1.5 + }, + { + "angle": -12.53, + "time": 2 + }, + { + "angle": -14.02, + "time": 2.4333 + }, + { + "angle": -12.53, + "time": 2.9333 + }, + { + "angle": -14.02, + "time": 3.4 + }, + { + "angle": -12.53, + "time": 3.8333 + }, + { + "angle": -23.59, + "time": 4.1 + }, + { + "angle": -21.3, + "time": 4.2666 + }, + { + "angle": 0, + "time": 4.4333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 1, + "y": 1 + }, + { + "time": 4.4333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 2, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 0, + "y": 0 + }, + { + "time": 4.4333, + "x": 0, + "y": 0 + } + ] + }, + "Head": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 30.02, + "curve": "stepped", + "time": 0.4 + }, + { + "angle": 30.02, + "time": 0.5666 + }, + { + "angle": 34.04, + "time": 0.8333 + }, + { + "angle": 29.49, + "time": 1.0666 + }, + { + "angle": 31.29, + "time": 1.3 + }, + { + "angle": 25.89, + "time": 1.7333 + }, + { + "angle": 29.49, + "time": 2 + }, + { + "angle": 31.29, + "time": 2.2333 + }, + { + "angle": 25.89, + "time": 2.6666 + }, + { + "angle": 29.49, + "time": 2.9333 + }, + { + "angle": 31.29, + "time": 3.1666 + }, + { + "angle": 25.89, + "time": 3.6 + }, + { + "angle": 29.49, + "time": 3.8333 + }, + { + "angle": 30.02, + "time": 4.1 + }, + { + "angle": 0, + "time": 4.4333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 1, + "y": 1 + }, + { + "time": 4.4333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 2, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 0, + "y": 0 + }, + { + "time": 4.4333, + "x": 0, + "y": 0 + } + ] + }, + "L-Foot": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.4 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.5666 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.8333 + }, + { + "angle": 0, + "curve": "stepped", + "time": 1.0666 + }, + { + "angle": 0, + "curve": "stepped", + "time": 2 + }, + { + "angle": 0, + "curve": "stepped", + "time": 2.9333 + }, + { + "angle": 0, + "curve": "stepped", + "time": 3.8333 + }, + { + "angle": 0, + "curve": "stepped", + "time": 4.1 + }, + { + "angle": 0, + "time": 4.4333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 1, + "y": 1 + }, + { + "time": 4.4333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 2, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 0, + "y": 0 + }, + { + "time": 4.4333, + "x": 0, + "y": 0 + } + ] + }, + "L-Forearm": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 17.2, + "time": 0.2 + }, + { + "angle": 45.26, + "time": 0.4 + }, + { + "angle": 47.65, + "time": 0.5666 + }, + { + "angle": 45.26, + "time": 0.8333 + }, + { + "angle": 51.77, + "time": 1.0666 + }, + { + "angle": 43.97, + "time": 1.5 + }, + { + "angle": 51.77, + "time": 2 + }, + { + "angle": 43.97, + "time": 2.4333 + }, + { + "angle": 51.77, + "time": 2.9333 + }, + { + "angle": 43.97, + "time": 3.4 + }, + { + "angle": 51.77, + "time": 3.8333 + }, + { + "angle": 5.29, + "time": 4.1 + }, + { + "angle": 26.46, + "time": 4.2666 + }, + { + "angle": 0, + "time": 4.4333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 1, + "y": 1 + }, + { + "time": 4.4333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.4, + "x": -3.8, + "y": 1.97 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": -3.8, + "y": 1.97 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": -3.8, + "y": 1.97 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": -3.8, + "y": 1.97 + }, + { + "curve": "stepped", + "time": 2, + "x": -3.8, + "y": 1.97 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": -3.8, + "y": 1.97 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": -3.8, + "y": 1.97 + }, + { + "time": 4.1, + "x": -3.8, + "y": 1.97 + }, + { + "time": 4.4333, + "x": 0, + "y": 0 + } + ] + }, + "L-Hand": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -3.19, + "time": 0.2 + }, + { + "angle": 25.26, + "curve": "stepped", + "time": 0.4 + }, + { + "angle": 25.26, + "curve": "stepped", + "time": 0.5666 + }, + { + "angle": 25.26, + "curve": "stepped", + "time": 0.8333 + }, + { + "angle": 25.26, + "curve": "stepped", + "time": 1.0666 + }, + { + "angle": 25.26, + "curve": "stepped", + "time": 2 + }, + { + "angle": 25.26, + "curve": "stepped", + "time": 2.9333 + }, + { + "angle": 25.26, + "curve": "stepped", + "time": 3.8333 + }, + { + "angle": 25.26, + "time": 4.1 + }, + { + "angle": 0, + "time": 4.4333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 1, + "y": 1 + }, + { + "time": 4.4333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 2, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 0, + "y": 0 + }, + { + "time": 4.4333, + "x": 0, + "y": 0 + } + ] + }, + "L-Lowerleg": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.4 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.5666 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.8333 + }, + { + "angle": 0, + "curve": "stepped", + "time": 1.0666 + }, + { + "angle": 0, + "curve": "stepped", + "time": 2 + }, + { + "angle": 0, + "curve": "stepped", + "time": 2.9333 + }, + { + "angle": 0, + "curve": "stepped", + "time": 3.8333 + }, + { + "angle": 0, + "curve": "stepped", + "time": 4.1 + }, + { + "angle": 0, + "time": 4.4333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 1, + "y": 1 + }, + { + "time": 4.4333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 2, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 0, + "y": 0 + }, + { + "time": 4.4333, + "x": 0, + "y": 0 + } + ] + }, + "L-Thigh": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.4 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.5666 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.8333 + }, + { + "angle": 0, + "curve": "stepped", + "time": 1.0666 + }, + { + "angle": 0, + "curve": "stepped", + "time": 2 + }, + { + "angle": 0, + "curve": "stepped", + "time": 2.9333 + }, + { + "angle": 0, + "curve": "stepped", + "time": 3.8333 + }, + { + "angle": 0, + "curve": "stepped", + "time": 4.1 + }, + { + "angle": 0, + "time": 4.4333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 1, + "y": 1 + }, + { + "time": 4.4333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 2, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 0, + "y": 0 + }, + { + "time": 4.4333, + "x": 0, + "y": 0 + } + ] + }, + "L-Upperarm": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 7.29, + "time": 0.2 + }, + { + "angle": 68.13, + "time": 0.4 + }, + { + "angle": 70.51, + "time": 0.5666 + }, + { + "angle": 84.94, + "curve": "stepped", + "time": 0.8333 + }, + { + "angle": 84.94, + "curve": "stepped", + "time": 1.0666 + }, + { + "angle": 84.94, + "curve": "stepped", + "time": 2 + }, + { + "angle": 84.94, + "curve": "stepped", + "time": 2.9333 + }, + { + "angle": 84.94, + "time": 3.8333 + }, + { + "angle": 75.93, + "time": 4.1 + }, + { + "angle": 34.3, + "time": 4.2666 + }, + { + "angle": 0, + "time": 4.4333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 1, + "y": 1 + }, + { + "time": 4.4333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.4, + "x": -15.89, + "y": 10.04 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": -15.89, + "y": 10.04 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": -15.89, + "y": 10.04 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": -15.89, + "y": 10.04 + }, + { + "curve": "stepped", + "time": 2, + "x": -15.89, + "y": 10.04 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": -15.89, + "y": 10.04 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": -15.89, + "y": 10.04 + }, + { + "time": 4.1, + "x": -15.89, + "y": 10.04 + }, + { + "time": 4.4333, + "x": 0, + "y": 0 + } + ] + }, + "Pelvis": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 10.54, + "curve": "stepped", + "time": 0.4 + }, + { + "angle": 10.54, + "time": 0.5666 + }, + { + "angle": -0.72, + "curve": "stepped", + "time": 0.8333 + }, + { + "angle": -0.72, + "time": 1.0666 + }, + { + "angle": -2.2, + "time": 1.5 + }, + { + "angle": -0.72, + "time": 2 + }, + { + "angle": -2.2, + "time": 2.4333 + }, + { + "angle": -0.72, + "time": 2.9333 + }, + { + "angle": -2.2, + "time": 3.4 + }, + { + "angle": -0.72, + "time": 3.8333 + }, + { + "angle": -5.89, + "time": 4.1 + }, + { + "angle": -12.45, + "time": 4.2666 + }, + { + "angle": 0, + "time": 4.4333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 1, + "y": 1 + }, + { + "time": 4.4333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.2, + "x": 5.13, + "y": -0.28 + }, + { + "time": 0.4, + "x": 18.11, + "y": -14.84 + }, + { + "time": 0.5666, + "x": 16.53, + "y": -14.84 + }, + { + "time": 0.8333, + "x": 2.92, + "y": -19.93 + }, + { + "time": 1.0666, + "x": 1.26, + "y": -21.82 + }, + { + "time": 1.5, + "x": 0.57, + "y": -25.41 + }, + { + "time": 2, + "x": 1.26, + "y": -21.82 + }, + { + "time": 2.4333, + "x": 0.57, + "y": -25.41 + }, + { + "time": 2.9333, + "x": 1.26, + "y": -21.82 + }, + { + "time": 3.4, + "x": 0.57, + "y": -25.41 + }, + { + "time": 3.8333, + "x": 1.26, + "y": -21.82 + }, + { + "time": 4.1, + "x": 8.8, + "y": -15.65 + }, + { + "time": 4.2666, + "x": -6.93, + "y": -9.04 + }, + { + "time": 4.4333, + "x": 0, + "y": 0 + } + ] + }, + "R-Foot": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.4 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.5666 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.8333 + }, + { + "angle": 0, + "curve": "stepped", + "time": 1.0666 + }, + { + "angle": 0, + "curve": "stepped", + "time": 2 + }, + { + "angle": 0, + "curve": "stepped", + "time": 2.9333 + }, + { + "angle": 0, + "curve": "stepped", + "time": 3.8333 + }, + { + "angle": 0, + "curve": "stepped", + "time": 4.1 + }, + { + "angle": 0, + "time": 4.4333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 1, + "y": 1 + }, + { + "time": 4.4333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 2, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 0, + "y": 0 + }, + { + "time": 4.4333, + "x": 0, + "y": 0 + } + ] + }, + "R-Forearm": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -21.77, + "curve": "stepped", + "time": 0.2 + }, + { + "angle": -21.77, + "time": 0.4 + }, + { + "angle": -19.39, + "time": 0.5666 + }, + { + "angle": -21.77, + "time": 0.8333 + }, + { + "angle": -15.27, + "time": 1.0666 + }, + { + "angle": -23.07, + "time": 1.5 + }, + { + "angle": -15.27, + "time": 2 + }, + { + "angle": -23.07, + "time": 2.4333 + }, + { + "angle": -15.27, + "time": 2.9333 + }, + { + "angle": -23.07, + "time": 3.4 + }, + { + "angle": -15.27, + "time": 3.8333 + }, + { + "angle": -16.48, + "time": 4.1 + }, + { + "angle": 0, + "time": 4.4333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 1, + "y": 1 + }, + { + "time": 4.4333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 2, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 0, + "y": 0 + }, + { + "time": 4.4333, + "x": 0, + "y": 0 + } + ] + }, + "R-Hand": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 7.28, + "curve": "stepped", + "time": 0.4 + }, + { + "angle": 7.28, + "curve": "stepped", + "time": 0.5666 + }, + { + "angle": 7.28, + "time": 0.8333 + }, + { + "angle": 13.79, + "time": 1.0666 + }, + { + "angle": 5.99, + "time": 1.5 + }, + { + "angle": 13.79, + "time": 2 + }, + { + "angle": 5.99, + "time": 2.4333 + }, + { + "angle": 13.79, + "time": 2.9333 + }, + { + "angle": 5.99, + "time": 3.4 + }, + { + "angle": 13.79, + "time": 3.8333 + }, + { + "angle": 7.28, + "time": 4.1 + }, + { + "angle": 0, + "time": 4.4333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 1, + "y": 1 + }, + { + "time": 4.4333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 2, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 0, + "y": 0 + }, + { + "time": 4.4333, + "x": 0, + "y": 0 + } + ] + }, + "R-Lowerleg": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.4 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.5666 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.8333 + }, + { + "angle": 0, + "curve": "stepped", + "time": 1.0666 + }, + { + "angle": 0, + "curve": "stepped", + "time": 2 + }, + { + "angle": 0, + "curve": "stepped", + "time": 2.9333 + }, + { + "angle": 0, + "curve": "stepped", + "time": 3.8333 + }, + { + "angle": 0, + "curve": "stepped", + "time": 4.1 + }, + { + "angle": 0, + "time": 4.4333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 1, + "y": 1 + }, + { + "time": 4.4333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 2, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 0, + "y": 0 + }, + { + "time": 4.4333, + "x": 0, + "y": 0 + } + ] + }, + "R-Thigh": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.4 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.5666 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.8333 + }, + { + "angle": 0, + "curve": "stepped", + "time": 1.0666 + }, + { + "angle": 0, + "curve": "stepped", + "time": 2 + }, + { + "angle": 0, + "curve": "stepped", + "time": 2.9333 + }, + { + "angle": 0, + "curve": "stepped", + "time": 3.8333 + }, + { + "angle": 0, + "curve": "stepped", + "time": 4.1 + }, + { + "angle": 0, + "time": 4.4333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 1, + "y": 1 + }, + { + "time": 4.4333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 4.72, + "y": 4.19 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 4.72, + "y": 4.19 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 4.72, + "y": 4.19 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 4.72, + "y": 4.19 + }, + { + "curve": "stepped", + "time": 2, + "x": 4.72, + "y": 4.19 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 4.72, + "y": 4.19 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 4.72, + "y": 4.19 + }, + { + "time": 4.1, + "x": 4.72, + "y": 4.19 + }, + { + "time": 4.2666, + "x": 3.64, + "y": 5.69 + }, + { + "time": 4.4333, + "x": 0, + "y": 0 + } + ] + }, + "R-Upperarm": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 100.92, + "time": 0.4 + }, + { + "angle": -256.68, + "time": 0.5666 + }, + { + "angle": 117.74, + "curve": "stepped", + "time": 0.8333 + }, + { + "angle": 117.74, + "curve": "stepped", + "time": 1.0666 + }, + { + "angle": 117.74, + "curve": "stepped", + "time": 2 + }, + { + "angle": 117.74, + "curve": "stepped", + "time": 2.9333 + }, + { + "angle": 117.74, + "time": 3.8333 + }, + { + "angle": 9.62, + "time": 4.1 + }, + { + "angle": 0, + "time": 4.4333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 1, + "y": 1 + }, + { + "time": 4.4333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.2, + "x": 4.7, + "y": 3.99 + }, + { + "time": 0.4, + "x": 3.12, + "y": 14.07 + }, + { + "time": 0.5666, + "x": 3.37, + "y": 14.81 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 1.02, + "y": 17.68 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 1.02, + "y": 17.68 + }, + { + "curve": "stepped", + "time": 2, + "x": 1.02, + "y": 17.68 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 1.02, + "y": 17.68 + }, + { + "time": 3.8333, + "x": 1.02, + "y": 17.68 + }, + { + "time": 4.1, + "x": 1.41, + "y": 0.58 + }, + { + "time": 4.4333, + "x": 0, + "y": 0 + } + ] + }, + "SE-daoguang": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.4 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.5666 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.8333 + }, + { + "angle": 0, + "curve": "stepped", + "time": 1.0666 + }, + { + "angle": 0, + "curve": "stepped", + "time": 2 + }, + { + "angle": 0, + "curve": "stepped", + "time": 2.9333 + }, + { + "angle": 0, + "curve": "stepped", + "time": 3.8333 + }, + { + "angle": 0, + "curve": "stepped", + "time": 4.1 + }, + { + "angle": 0, + "time": 4.4333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 1, + "y": 1 + }, + { + "time": 4.4333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 2, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 0, + "y": 0 + }, + { + "time": 4.4333, + "x": 0, + "y": 0 + } + ] + }, + "Weapon": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -9.14, + "time": 0.2 + }, + { + "angle": -89.59, + "time": 0.4 + }, + { + "angle": -102.29, + "curve": "stepped", + "time": 0.5 + }, + { + "angle": -102.29, + "curve": "stepped", + "time": 0.8333 + }, + { + "angle": -102.29, + "curve": "stepped", + "time": 1.0666 + }, + { + "angle": -102.29, + "curve": "stepped", + "time": 2 + }, + { + "angle": -102.29, + "curve": "stepped", + "time": 2.9333 + }, + { + "angle": -102.29, + "curve": "stepped", + "time": 3.8333 + }, + { + "angle": -102.29, + "time": 4.1 + }, + { + "angle": 3.44, + "time": 4.2666 + }, + { + "angle": 0, + "time": 4.4333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 1, + "y": 1 + }, + { + "time": 4.4333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.2, + "x": 14.27, + "y": 7.34 + }, + { + "time": 0.4, + "x": 44.07, + "y": 37.05 + }, + { + "curve": "stepped", + "time": 0.5, + "x": 55.33, + "y": 15.4 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 55.33, + "y": 15.4 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 55.33, + "y": 15.4 + }, + { + "curve": "stepped", + "time": 2, + "x": 55.33, + "y": 15.4 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 55.33, + "y": 15.4 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 55.33, + "y": 15.4 + }, + { + "time": 4.1, + "x": 55.33, + "y": 15.4 + }, + { + "time": 4.2666, + "x": 20.78, + "y": -9.3 + }, + { + "time": 4.4333, + "x": 0, + "y": 0 + } + ] + }, + "beilou": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 1.72, + "curve": "stepped", + "time": 0.4 + }, + { + "angle": 1.72, + "time": 0.5666 + }, + { + "angle": 8.67, + "curve": "stepped", + "time": 0.8333 + }, + { + "angle": 8.67, + "time": 1.0666 + }, + { + "angle": 10.51, + "time": 1.5 + }, + { + "angle": 8.67, + "time": 2 + }, + { + "angle": 10.51, + "time": 2.4333 + }, + { + "angle": 8.67, + "time": 2.9333 + }, + { + "angle": 10.51, + "time": 3.4 + }, + { + "angle": 8.67, + "time": 3.8333 + }, + { + "angle": 11.04, + "time": 4.1 + }, + { + "angle": 0, + "time": 4.4333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 1, + "y": 1 + }, + { + "time": 4.4333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 2, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 0, + "y": 0 + }, + { + "time": 4.4333, + "x": 0, + "y": 0 + } + ] + }, + "bone": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -5.55, + "time": 0.2 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.4 + }, + { + "angle": 0, + "time": 0.5666 + }, + { + "angle": -2.35, + "time": 0.8333 + }, + { + "angle": 0, + "curve": "stepped", + "time": 1.0666 + }, + { + "angle": 0, + "curve": "stepped", + "time": 2 + }, + { + "angle": 0, + "curve": "stepped", + "time": 2.9333 + }, + { + "angle": 0, + "time": 3.8333 + }, + { + "angle": 7.56, + "time": 4.1 + }, + { + "angle": 0, + "time": 4.4333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 1, + "y": 1 + }, + { + "time": 4.4333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 2, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 0, + "y": 0 + }, + { + "time": 4.4333, + "x": 0, + "y": 0 + } + ] + }, + "bone2": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 4.38, + "time": 0.2 + }, + { + "angle": -3.66, + "time": 0.4 + }, + { + "angle": 12.54, + "time": 0.5666 + }, + { + "angle": 5.28, + "time": 0.8333 + }, + { + "angle": 9, + "time": 1.0666 + }, + { + "angle": 12.63, + "time": 1.5 + }, + { + "angle": 0, + "time": 2 + }, + { + "angle": 12.63, + "time": 2.4333 + }, + { + "angle": 0, + "time": 2.9333 + }, + { + "angle": 12.63, + "time": 3.4 + }, + { + "angle": 0, + "time": 3.8333 + }, + { + "angle": 15.04, + "time": 4.1 + }, + { + "angle": 0, + "time": 4.4333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 1, + "y": 1 + }, + { + "time": 4.4333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 2, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 0, + "y": 0 + }, + { + "time": 4.4333, + "x": 0, + "y": 0 + } + ] + }, + "bone3": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 4.38, + "time": 0.2 + }, + { + "angle": 17.03, + "time": 0.4 + }, + { + "angle": 18.41, + "time": 0.5666 + }, + { + "angle": 5.28, + "time": 0.8333 + }, + { + "angle": 9, + "time": 1.0666 + }, + { + "angle": 12.63, + "time": 1.5 + }, + { + "angle": 0, + "time": 2 + }, + { + "angle": 12.63, + "time": 2.4333 + }, + { + "angle": 0, + "time": 2.9333 + }, + { + "angle": 12.63, + "time": 3.4 + }, + { + "angle": 0, + "time": 3.8333 + }, + { + "angle": 15.04, + "time": 4.1 + }, + { + "angle": 0, + "time": 4.4333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 1, + "y": 1 + }, + { + "time": 4.4333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 2, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 0, + "y": 0 + }, + { + "time": 4.4333, + "x": 0, + "y": 0 + } + ] + }, + "hulu": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 4.04, + "time": 0.2666 + }, + { + "angle": -14.73, + "time": 0.5666 + }, + { + "angle": -21.62, + "curve": "stepped", + "time": 0.8666 + }, + { + "angle": -21.62, + "time": 3.8333 + }, + { + "angle": -45.41, + "time": 4.1666 + }, + { + "angle": 0, + "time": 4.4333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.2666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.8666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 1, + "y": 1 + }, + { + "time": 4.4333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.2, + "x": -8.1, + "y": -4.14 + }, + { + "time": 0.2666, + "x": -9.52, + "y": -11.79 + }, + { + "time": 0.8666, + "x": 129.54, + "y": 14.77 + }, + { + "time": 1.3333, + "x": 130.54, + "y": 19.77 + }, + { + "time": 1.8333, + "x": 129.54, + "y": 13.83 + }, + { + "time": 2.3333, + "x": 129.54, + "y": 19.05 + }, + { + "time": 2.8333, + "x": 129.54, + "y": 12.76 + }, + { + "time": 3.3333, + "x": 129.54, + "y": 18.62 + }, + { + "time": 3.8333, + "x": 129.54, + "y": 14.77 + }, + { + "time": 4.1666, + "x": 57.57, + "y": 1.56 + }, + { + "time": 4.4333, + "x": 0, + "y": 0 + } + ] + }, + "hulu2": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.6666 + }, + { + "angle": 0, + "curve": "stepped", + "time": 3.8333 + }, + { + "angle": 0, + "time": 4.4333 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.6666, + "x": 0.2, + "y": 0.2 + }, + { + "time": 0.8666, + "x": 0.2, + "y": 0.2 + }, + { + "time": 1.3666, + "x": 1, + "y": 1 + }, + { + "time": 1.6333, + "x": 0.2, + "y": 0.2 + }, + { + "time": 2.1333, + "x": 1, + "y": 1 + }, + { + "time": 2.4, + "x": 0.2, + "y": 0.2 + }, + { + "time": 2.9, + "x": 1, + "y": 1 + }, + { + "time": 3.1666, + "x": 0.2, + "y": 0.2 + }, + { + "curve": "stepped", + "time": 3.6666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 1, + "y": 1 + }, + { + "time": 4.4333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.6666, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 0, + "y": 0 + }, + { + "time": 4.4333, + "x": 0, + "y": 0 + } + ] + }, + "root": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.4 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.5666 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.8333 + }, + { + "angle": 0, + "curve": "stepped", + "time": 1.0666 + }, + { + "angle": 0, + "curve": "stepped", + "time": 2 + }, + { + "angle": 0, + "curve": "stepped", + "time": 2.9333 + }, + { + "angle": 0, + "curve": "stepped", + "time": 3.8333 + }, + { + "angle": 0, + "curve": "stepped", + "time": 4.1 + }, + { + "angle": 0, + "time": 4.4333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 1, + "y": 1 + }, + { + "time": 4.4333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.5666, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.8333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 2, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 3.8333, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 4.1, + "x": 0, + "y": 0 + }, + { + "time": 4.4333, + "x": 0, + "y": 0 + } + ] + }, + "shadow": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.4 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.5666 + }, + { + "angle": 0, + "curve": "stepped", + "time": 0.8333 + }, + { + "angle": 0, + "curve": "stepped", + "time": 1.0666 + }, + { + "angle": 0, + "curve": "stepped", + "time": 2 + }, + { + "angle": 0, + "curve": "stepped", + "time": 2.9333 + }, + { + "angle": 0, + "curve": "stepped", + "time": 3.8333 + }, + { + "angle": 0, + "curve": "stepped", + "time": 4.1 + }, + { + "angle": 0, + "time": 4.4333 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 1.134, + "y": 1.134 + }, + { + "time": 0.5666, + "x": 1.134, + "y": 1.134 + }, + { + "time": 0.8333, + "x": 1.187, + "y": 1.187 + }, + { + "time": 1.0666, + "x": 1.173, + "y": 1.173 + }, + { + "time": 1.4666, + "x": 1.23, + "y": 1.23 + }, + { + "time": 2, + "x": 1.173, + "y": 1.173 + }, + { + "time": 2.4666, + "x": 1.244, + "y": 1.244 + }, + { + "time": 2.9333, + "x": 1.173, + "y": 1.173 + }, + { + "time": 3.4, + "x": 1.23, + "y": 1.23 + }, + { + "time": 3.8333, + "x": 1.173, + "y": 1.173 + }, + { + "time": 4.1, + "x": 1.206, + "y": 1.133 + }, + { + "time": 4.4333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "curve": "stepped", + "time": 0.4, + "x": 11.29, + "y": 0 + }, + { + "time": 0.5666, + "x": 11.29, + "y": 0 + }, + { + "time": 0.8333, + "x": 6.45, + "y": 0 + }, + { + "curve": "stepped", + "time": 1.0666, + "x": 8.6, + "y": 0 + }, + { + "curve": "stepped", + "time": 2, + "x": 8.6, + "y": 0 + }, + { + "curve": "stepped", + "time": 2.9333, + "x": 8.6, + "y": 0 + }, + { + "time": 3.8333, + "x": 8.6, + "y": 0 + }, + { + "time": 4.1, + "x": 21.51, + "y": 0 + }, + { + "time": 4.4333, + "x": 0, + "y": 0 + } + ] + } + }, + "drawOrder": [ + { + "time": 0.2, + "offsets": [ + { + "offset": 3, + "slot": "R-Upperarm" + }, + { + "offset": 3, + "slot": "R-Hand" + }, + { + "offset": 3, + "slot": "R-Forearm" + } + ] + } + ], + "slots": { + "Eye": { + "attachment": [ + { + "name": "Eye", + "time": 0 + }, + { + "name": "Eye-siwang", + "time": 0.4 + }, + { + "name": "Eye-siwang", + "time": 0.5666 + }, + { + "name": "Eye-siwang", + "time": 2 + }, + { + "name": "Eye-siwang", + "time": 2.9333 + }, + { + "name": "Eye-siwang", + "time": 3.8333 + }, + { + "name": "Eye", + "time": 4.1 + }, + { + "name": "Eye", + "time": 4.4333 + } + ] + }, + "Mouth": { + "attachment": [ + { + "name": "Mouth", + "time": 0 + }, + { + "name": "Mouth-beiji", + "time": 0.4 + }, + { + "name": "Mouth-beiji", + "time": 0.5666 + }, + { + "name": "Mouth-beiji", + "time": 2 + }, + { + "name": "Mouth-beiji", + "time": 2.9333 + }, + { + "name": "Mouth-beiji", + "time": 3.8333 + }, + { + "name": "Mouth", + "time": 4.1 + }, + { + "name": "Mouth", + "time": 4.4333 + } + ] + }, + "SE-daoguang": { + "attachment": [ + { + "name": null, + "time": 0 + }, + { + "name": null, + "time": 4.4333 + } + ] + }, + "guang": { + "attachment": [ + { + "name": null, + "time": 0 + }, + { + "name": "SE-guang", + "time": 0.6666 + }, + { + "name": "SE-guang", + "time": 0.8666 + }, + { + "name": null, + "time": 4.4333 + } + ], + "color": [ + { + "color": "ffffffff", + "time": 0 + }, + { + "color": "ffffff00", + "curve": "stepped", + "time": 0.6666 + }, + { + "color": "ffffff00", + "time": 0.8333 + }, + { + "color": "ffffffff", + "time": 0.8666 + }, + { + "color": "ffffff00", + "curve": "stepped", + "time": 1.3666 + }, + { + "color": "ffffff00", + "time": 1.6 + }, + { + "color": "ffffffff", + "time": 1.6333 + }, + { + "color": "ffffff00", + "curve": "stepped", + "time": 2.1333 + }, + { + "color": "ffffff00", + "time": 2.3666 + }, + { + "color": "ffffffff", + "time": 2.4 + }, + { + "color": "ffffff00", + "curve": "stepped", + "time": 2.9 + }, + { + "color": "ffffff00", + "time": 3.1333 + }, + { + "color": "ffffffff", + "time": 3.1666 + }, + { + "color": "ffffff00", + "curve": "stepped", + "time": 3.6666 + }, + { + "color": "ffffff00", + "curve": "stepped", + "time": 3.8333 + }, + { + "color": "ffffff00", + "time": 4.4333 + } + ] + }, + "hulu": { + "attachment": [ + { + "name": "hulu", + "time": 0 + }, + { + "name": "hulu", + "time": 4.4333 + } + ], + "color": [ + { + "color": "ffffffff", + "time": 0.8666 + }, + { + "color": "ff1100ff", + "time": 1.3666 + }, + { + "color": "ffffffff", + "time": 1.6333 + }, + { + "color": "fffc00ff", + "time": 2.1333 + }, + { + "color": "ffffffff", + "time": 2.4 + }, + { + "color": "00ff1aff", + "time": 2.9 + }, + { + "color": "ffffffff", + "curve": "stepped", + "time": 3.1666 + }, + { + "color": "ffffffff", + "time": 3.8333 + } + ] + } + } + }, + "stand": { + "bones": { + "Body": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 1.34, + "time": 0.6666 + }, + { + "angle": 0, + "time": 1.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.3333, + "x": 0, + "y": 0 + } + ] + }, + "Head": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 1.34, + "time": 0.3333 + }, + { + "angle": -1.23, + "time": 1 + }, + { + "angle": 0, + "time": 1.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.3333, + "x": 0, + "y": 0 + } + ] + }, + "L-Foot": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 1.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.3333, + "x": 0, + "y": 0 + } + ] + }, + "L-Forearm": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -8.92, + "time": 0.6666 + }, + { + "angle": 0, + "time": 1.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.3333, + "x": 0, + "y": 0 + } + ] + }, + "L-Hand": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 3.52, + "time": 0.6666 + }, + { + "angle": 0, + "time": 1.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.3333, + "x": 0, + "y": 0 + } + ] + }, + "L-Lowerleg": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 1.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.3333, + "x": 0, + "y": 0 + } + ] + }, + "L-Thigh": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 1.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.3333, + "x": 0, + "y": 0 + } + ] + }, + "L-Upperarm": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 4.5, + "time": 0.6666 + }, + { + "angle": 0, + "time": 1.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.3333, + "x": 0, + "y": 0 + } + ] + }, + "Pelvis": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -0.9, + "time": 0.6666 + }, + { + "angle": 0, + "time": 1.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.6666, + "x": -0.83, + "y": -1.95 + }, + { + "time": 1.3333, + "x": 0, + "y": 0 + } + ] + }, + "R-Foot": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 1.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.3333, + "x": 0, + "y": 0 + } + ] + }, + "R-Forearm": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 2.72, + "time": 0.6666 + }, + { + "angle": 0, + "time": 1.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.3333, + "x": 0, + "y": 0 + } + ] + }, + "R-Hand": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 1.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.3333, + "x": 0, + "y": 0 + } + ] + }, + "R-Lowerleg": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 1.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.3333, + "x": 0, + "y": 0 + } + ] + }, + "R-Thigh": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 1.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.3333, + "x": 0, + "y": 0 + } + ] + }, + "R-Upperarm": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -2.02, + "time": 0.6666 + }, + { + "angle": 0, + "time": 1.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.3333, + "x": 0, + "y": 0 + } + ] + }, + "Weapon": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 0.89, + "time": 0.6666 + }, + { + "angle": 0, + "time": 1.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.6666, + "x": 0.37, + "y": -1.98 + }, + { + "time": 1.3333, + "x": 0, + "y": 0 + } + ] + }, + "beilou": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -2.58, + "time": 0.6666 + }, + { + "angle": 0, + "time": 1.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.3333, + "x": 0, + "y": 0 + } + ] + }, + "bone": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -2.7, + "time": 0.6666 + }, + { + "angle": 0, + "time": 1.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.3333, + "x": 0, + "y": 0 + } + ] + }, + "bone2": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 5.05, + "time": 0.6666 + }, + { + "angle": 0, + "time": 1.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.3333, + "x": 0, + "y": 0 + } + ] + }, + "bone3": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": 5.05, + "time": 0.6666 + }, + { + "angle": 0, + "time": 1.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.3333, + "x": 0, + "y": 0 + } + ] + }, + "hulu": { + "rotate": [ + { + "angle": 0, + "time": 0 + }, + { + "angle": -3.29, + "time": 0.3333 + }, + { + "angle": 4.13, + "time": 1 + }, + { + "angle": 0, + "time": 1.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 0.3333, + "x": -2.01, + "y": -1.55 + }, + { + "time": 0.6666, + "x": -1.6, + "y": -2.56 + }, + { + "time": 1, + "x": -0.17, + "y": -0.51 + }, + { + "time": 1.3333, + "x": 0, + "y": 0 + } + ] + }, + "root": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 1.3333 + } + ], + "scale": [ + { + "curve": "stepped", + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 1.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.3333, + "x": 0, + "y": 0 + } + ] + }, + "shadow": { + "rotate": [ + { + "angle": 0, + "curve": "stepped", + "time": 0 + }, + { + "angle": 0, + "time": 1.3333 + } + ], + "scale": [ + { + "time": 0, + "x": 1, + "y": 1 + }, + { + "time": 0.6666, + "x": 1.079, + "y": 1.079 + }, + { + "time": 1.3333, + "x": 1, + "y": 1 + } + ], + "translate": [ + { + "curve": "stepped", + "time": 0, + "x": 0, + "y": 0 + }, + { + "time": 1.3333, + "x": 0, + "y": 0 + } + ] + } + }, + "slots": { + "Eye": { + "attachment": [ + { + "name": "Eye", + "time": 0 + }, + { + "name": "Eye", + "time": 1.3333 + } + ] + }, + "Mouth": { + "attachment": [ + { + "name": "Mouth", + "time": 0 + }, + { + "name": "Mouth", + "time": 1.3333 + } + ] + }, + "SE-daoguang": { + "attachment": [ + { + "name": null, + "time": 0 + }, + { + "name": null, + "time": 1.3333 + } + ] + }, + "guang": { + "attachment": [ + { + "name": null, + "time": 0 + }, + { + "name": null, + "time": 1.3333 + } + ] + }, + "hulu": { + "attachment": [ + { + "name": "hulu", + "time": 0 + }, + { + "name": "hulu", + "time": 1.3333 + } + ] + } + } + } + }, + "bones": [ + { + "name": "root" + }, + { + "color": "ff3f00ff", + "name": "L-Foot", + "parent": "root", + "x": 20.37, + "y": 0.29 + }, + { + "name": "Pelvis", + "parent": "root", + "x": 5.08, + "y": 37.84 + }, + { + "color": "ff3f00ff", + "name": "R-Foot", + "parent": "root", + "x": -14.76, + "y": 0.69 + }, + { + "name": "SE-daoguang", + "parent": "root", + "x": 114.48, + "y": -10.9 + }, + { + "length": 60.35, + "name": "Weapon", + "parent": "root", + "rotation": 26.16, + "x": 44, + "y": 34.65 + }, + { + "length": 36.28, + "name": "hulu", + "parent": "root", + "rotation": 119.2, + "x": -23.3, + "y": 146.3 + }, + { + "name": "shadow", + "parent": "root", + "scaleX": 0.916, + "scaleY": 0.916, + "x": -0.16, + "y": -0.68 + }, + { + "length": 59.37, + "name": "Body", + "parent": "Pelvis", + "rotation": 105.82, + "x": 1.27, + "y": 5.1 + }, + { + "length": 21.82, + "name": "L-Thigh", + "parent": "Pelvis", + "rotation": -63.25, + "x": 10.2, + "y": 1.91 + }, + { + "length": 23.71, + "name": "R-Thigh", + "parent": "Pelvis", + "rotation": -70.48, + "x": -21.37, + "y": 1.91 + }, + { + "name": "hulu2", + "parent": "hulu", + "x": 15.54, + "y": 0.29 + }, + { + "length": 45.29, + "name": "Head", + "parent": "Body", + "rotation": -15.82, + "x": 62.99, + "y": 9.32 + }, + { + "length": 16.96, + "name": "L-Lowerleg", + "parent": "L-Thigh", + "rotation": -43.36, + "x": 25.24, + "y": -1.65 + }, + { + "length": 37.52, + "name": "L-Upperarm", + "parent": "Body", + "rotation": -169.21, + "x": 43.36, + "y": -14.28 + }, + { + "length": 17.77, + "name": "R-Lowerleg", + "parent": "R-Thigh", + "rotation": -40.37, + "x": 23.71, + "y": 0.06 + }, + { + "length": 35.71, + "name": "R-Upperarm", + "parent": "Body", + "rotation": 122.52, + "x": 49.46, + "y": 27.09 + }, + { + "length": 50.36, + "name": "beilou", + "parent": "Body", + "rotation": 85.49, + "x": 50.71, + "y": 12.8 + }, + { + "length": 21.24, + "name": "L-Forearm", + "parent": "L-Upperarm", + "rotation": 5.84, + "x": 38.09, + "y": 0.53 + }, + { + "length": 28.4, + "name": "R-Forearm", + "parent": "R-Upperarm", + "rotation": 76.6, + "x": 35.71, + "y": 0.16 + }, + { + "length": 22.97, + "name": "bone", + "parent": "beilou", + "rotation": -75.85, + "x": 38.58, + "y": -44.49 + }, + { + "length": 18.12, + "name": "L-Hand", + "parent": "L-Forearm", + "rotation": -6.29, + "x": 20.13, + "y": 6.09 + }, + { + "length": 12.38, + "name": "R-Hand", + "parent": "R-Forearm", + "rotation": -0.45, + "x": 30.1, + "y": 0.74 + }, + { + "length": 23.61, + "name": "bone2", + "parent": "bone", + "rotation": -23.96, + "x": 22.97 + }, + { + "length": 20.4, + "name": "bone3", + "parent": "bone2", + "rotation": -26.38, + "x": 23.93 + } + ], + "ik": [ + { + "bendPositive": false, + "name": "L-Foot", + "target": "L-Foot", + "bones": [ + "L-Thigh", + "L-Lowerleg" + ] + }, + { + "bendPositive": false, + "name": "R-Foot", + "target": "R-Foot", + "bones": [ + "R-Thigh", + "R-Lowerleg" + ] + } + ], + "skeleton": { + "hash": "E/GiWIWOCktrG24Byqx9p/qUZfs", + "height": 206.4, + "images": "./images/", + "spine": "2.1.07", + "width": 205 + }, + "skins": { + "default": { + "Body": { + "Body": { + "height": 91, + "rotation": -105.82, + "width": 90, + "x": 29.94, + "y": 6.23 + } + }, + "Eye": { + "Eye": { + "height": 24, + "rotation": -90, + "width": 45, + "x": 9.55, + "y": -38.48 + }, + "Eye-beiji": { + "height": 23, + "rotation": -90, + "width": 57, + "x": 10.05, + "y": -33.48 + }, + "Eye-fennu": { + "height": 21, + "rotation": -90, + "width": 39, + "x": 9.05, + "y": -39.48 + }, + "Eye-shengli": { + "height": 19, + "rotation": -90, + "width": 45, + "x": 11.05, + "y": -38.48 + }, + "Eye-siwang": { + "height": 20, + "rotation": -90, + "width": 44, + "x": 6.55, + "y": -40.98 + } + }, + "Head": { + "Head": { + "height": 99, + "rotation": -90, + "width": 89, + "x": 4.05, + "y": -16.48 + } + }, + "L-Forearm": { + "L-Forearm": { + "height": 31, + "rotation": 57.54, + "width": 32, + "x": 7.91, + "y": 3.69 + } + }, + "L-Hand": { + "L-Hand": { + "height": 26, + "rotation": 63.83, + "width": 27, + "x": 7.55, + "y": -1.57 + } + }, + "L-Lowerleg": { + "L-Lowerleg": { + "height": 29, + "rotation": 106.61, + "width": 26, + "x": 4.69, + "y": -3.8 + } + }, + "L-Thigh": { + "L-Thigh": { + "height": 35, + "hull": 11, + "type": "skinnedmesh", + "width": 29, + "edges": [ + 0, + 2, + 2, + 4, + 4, + 6, + 6, + 8, + 8, + 10, + 10, + 12, + 12, + 14, + 14, + 16, + 0, + 20, + 16, + 8, + 16, + 18, + 18, + 20, + 18, + 6 + ], + "triangles": [ + 6, + 8, + 5, + 6, + 7, + 8, + 8, + 4, + 5, + 8, + 3, + 4, + 8, + 9, + 3, + 3, + 9, + 2, + 2, + 10, + 1, + 2, + 9, + 10, + 10, + 0, + 1 + ], + "uvs": [ + 0, + 0.1019, + 0.1131, + 0, + 0.71155, + 0, + 0.99999, + 0.58661, + 0.99999, + 0.77789, + 0.99999, + 1, + 0, + 1, + 0, + 0.80946, + 0.11534, + 0.71846, + 0.04408, + 0.56815, + 0, + 0.47518 + ], + "vertices": [ + 1, + 9, + -5.63, + -6.23, + 1, + 1, + 9, + -7.4, + -1.66, + 1, + 1, + 9, + 0.4, + 13.82, + 1, + 1, + 9, + 22.5, + 12.05, + 1, + 2, + 9, + 28.48, + 9.04, + 0.49156, + 13, + -4.99, + 9.99, + 0.50843, + 2, + 9, + 35.42, + 5.54, + 0.13153, + 13, + 2.45, + 12.21, + 0.86846, + 2, + 9, + 22.37, + -20.35, + 0.05767, + 13, + 10.74, + -15.56, + 0.94232, + 2, + 9, + 16.41, + -17.35, + 0.79, + 13, + 4.35, + -17.47, + 0.21, + 2, + 9, + 15.07, + -12.93, + 0.9, + 13, + 0.34, + -15.17, + 0.1, + 1, + 9, + 9.45, + -12.4, + 1, + 2, + 9, + 5.96, + -12.08, + 0.9686, + 13, + -6.85, + -20.81, + 0.03139 + ] + } + }, + "L-Upperarm": { + "L-Upperarm": { + "height": 49, + "rotation": 63.38, + "width": 50, + "x": 20.55, + "y": 6.38 + } + }, + "Mouth": { + "Mouth": { + "height": 10, + "rotation": -90, + "width": 18, + "x": -10.44, + "y": -38.98 + }, + "Mouth-beiji": { + "height": 11, + "rotation": -90, + "width": 13, + "x": -12.94, + "y": -39.48 + }, + "Mouth-fennu": { + "height": 17, + "rotation": -90, + "width": 22, + "x": -13.94, + "y": -40.98 + }, + "Mouth-shengli": { + "height": 18, + "rotation": -90, + "width": 20, + "x": -15.44, + "y": -40.98 + }, + "Mouth-siwang": { + "height": 12, + "rotation": -90, + "width": 18, + "x": -13.44, + "y": -39.98 + } + }, + "Pelvis": { + "Pelvis": { + "height": 28, + "width": 43, + "x": -3.39, + "y": -1.28 + } + }, + "R-Forearm": { + "R-Forearm": { + "height": 31, + "rotation": 55.03, + "width": 38, + "x": 14.97, + "y": 1.71 + } + }, + "R-Hand": { + "R-Hand": { + "height": 23, + "rotation": 55.49, + "width": 28, + "x": 3.19, + "y": 2.8 + } + }, + "R-Lowerleg": { + "R-Lowerleg": { + "height": 26, + "rotation": 110.86, + "width": 26, + "x": 6.5, + "y": -3.4 + } + }, + "R-Thigh": { + "R-Thigh": { + "height": 36, + "hull": 12, + "type": "skinnedmesh", + "width": 30, + "edges": [ + 0, + 2, + 2, + 4, + 4, + 6, + 6, + 8, + 8, + 10, + 10, + 12, + 12, + 14, + 14, + 16, + 16, + 18, + 18, + 20, + 20, + 22, + 0, + 22, + 20, + 8, + 18, + 10 + ], + "triangles": [ + 7, + 9, + 5, + 6, + 7, + 5, + 8, + 9, + 7, + 11, + 0, + 1, + 3, + 10, + 11, + 11, + 1, + 2, + 11, + 2, + 3, + 4, + 10, + 3, + 9, + 10, + 4, + 9, + 4, + 5 + ], + "uvs": [ + 0, + 0.16739, + 0.15414, + 0, + 0.67205, + 0, + 0.92926, + 0.30353, + 0.95359, + 0.64243, + 1, + 0.79595, + 1, + 0.99871, + 0.1889, + 1, + 0.06377, + 0.89733, + 0.15066, + 0.77567, + 0.06377, + 0.63953, + 0, + 0.4107 + ], + "vertices": [ + 1, + 10, + -3.9, + -8.71, + 1, + 1, + 10, + -8.04, + -2.34, + 1, + 1, + 10, + -2.85, + 12.29, + 1, + 1, + 10, + 10.02, + 15.92, + 1, + 2, + 10, + 21.76, + 12.53, + 0.80192, + 15, + -9.56, + 8.24, + 0.19807, + 2, + 10, + 27.43, + 12, + 0.48971, + 15, + -4.89, + 11.51, + 0.51028, + 2, + 10, + 34.32, + 9.56, + 0.25521, + 15, + 1.92, + 14.11, + 0.74478, + 2, + 10, + 26.24, + -13.38, + 0.19581, + 15, + 10.62, + -8.61, + 0.80418, + 2, + 10, + 21.5, + -15.68, + 0.29214, + 15, + 8.51, + -13.43, + 0.70785, + 2, + 10, + 18.24, + -11.76, + 0.56239, + 15, + 3.49, + -12.55, + 0.4376, + 2, + 10, + 12.75, + -12.59, + 0.88808, + 15, + -0.16, + -16.73, + 0.11191, + 2, + 10, + 4.35, + -11.64, + 0.99633, + 15, + -7.17, + -21.45, + 0.00366 + ] + } + }, + "R-Upperarm": { + "R-Upperarm": { + "height": 48, + "rotation": 131.64, + "width": 38, + "x": 20.77, + "y": 1.59 + } + }, + "SE-daoguang": { + "SE-daoguang": { + "height": 208, + "rotation": 15.98, + "scaleY": 1.205, + "width": 239, + "x": -77.4, + "y": 88.45 + } + }, + "Weapon": { + "Weapon": { + "height": 46, + "rotation": -26.16, + "width": 71, + "x": 25.15, + "y": 2.02 + } + }, + "beilou": { + "beilou": { + "height": 148, + "hull": 18, + "type": "skinnedmesh", + "width": 113, + "edges": [ + 0, + 2, + 2, + 4, + 4, + 6, + 6, + 8, + 8, + 10, + 10, + 12, + 20, + 22, + 22, + 24, + 0, + 34, + 24, + 16, + 16, + 18, + 18, + 20, + 36, + 18, + 24, + 26, + 26, + 28, + 12, + 14, + 14, + 16, + 26, + 14, + 28, + 12, + 28, + 30, + 30, + 12, + 8, + 4, + 10, + 2, + 30, + 32, + 32, + 34, + 32, + 38, + 38, + 2, + 12, + 38 + ], + "triangles": [ + 12, + 11, + 18, + 18, + 11, + 10, + 18, + 10, + 9, + 18, + 9, + 8, + 12, + 18, + 8, + 15, + 14, + 6, + 14, + 13, + 6, + 13, + 7, + 6, + 7, + 13, + 12, + 7, + 12, + 8, + 2, + 4, + 3, + 19, + 6, + 5, + 15, + 6, + 19, + 5, + 4, + 2, + 1, + 5, + 2, + 17, + 19, + 0, + 17, + 16, + 19, + 19, + 1, + 0, + 19, + 5, + 1, + 16, + 15, + 19 + ], + "uvs": [ + 1, + 1, + 1, + 0.4084, + 0.78981, + 0.25582, + 0.79531, + 0.12843, + 0.6523, + 0.16903, + 0.54047, + 0.26981, + 0.48363, + 0.29221, + 0.43114, + 0.22856, + 0.35896, + 0.14103, + 0.35896, + 0.07873, + 0.35896, + 0, + 0.14262, + 0, + 0.09128, + 0.18163, + 0.03642, + 0.23715, + 0, + 0.27401, + 0, + 0.36569, + 0, + 0.48955, + 0, + 0.99912, + 0.14783, + 0.08573, + 0.48454, + 0.40136 + ], + "vertices": [ + 1, + 17, + -18.92, + 53.1, + 1, + 1, + 17, + -36.05, + -32.41, + 1, + 2, + 20, + 0.64, + -57.69, + 0.74, + 23, + 3.04, + -61.79, + 0.26, + 2, + 20, + 17.39, + -66.36, + 0.96, + 23, + 21.87, + -62.91, + 0.04, + 2, + 20, + 18.92, + -49.19, + 0.96, + 23, + 16.29, + -46.6, + 0.04, + 2, + 20, + 10.89, + -31.37, + 0.76, + 23, + 1.71, + -33.57, + 0.24, + 2, + 20, + 10.66, + -24.14, + 0.29, + 23, + -1.43, + -27.07, + 0.71, + 3, + 20, + 21.72, + -22.84, + 0.19, + 23, + 8.14, + -21.38, + 0.76, + 24, + -4.63, + -26.18, + 0.05, + 2, + 23, + 21.3, + -13.57, + 0.72, + 24, + 3.68, + -13.33, + 0.28, + 2, + 23, + 30.52, + -13.81, + 0.23, + 24, + 12.04, + -9.45, + 0.77, + 1, + 24, + 22.61, + -4.55, + 1, + 1, + 24, + 12.33, + 17.62, + 1, + 2, + 23, + 16.09, + 16.81, + 0.72, + 24, + -14.49, + 11.57, + 0.28, + 3, + 20, + 39.76, + 17.96, + 0.19, + 23, + 8.04, + 23.23, + 0.76, + 24, + -24.55, + 13.74, + 0.05, + 2, + 20, + 36.6, + 24.03, + 0.29, + 23, + 2.69, + 27.49, + 0.71, + 2, + 20, + 24.35, + 29.86, + 0.76, + 23, + -10.86, + 27.84, + 0.24, + 1, + 17, + 77.1, + -42.83, + 1, + 1, + 17, + 91.91, + 31.11, + 1, + 2, + 23, + 30.11, + 10.05, + 0.23, + 24, + 1.07, + 11.74, + 0.77, + 1, + 17, + 20.84, + -44.9, + 1 + ] + } + }, + "guang": { + "SE-guang": { + "height": 121, + "rotation": -119.2, + "width": 123, + "x": 2.92, + "y": 0.79 + } + }, + "hulu": { + "hulu": { + "height": 52, + "rotation": -119.2, + "width": 55, + "x": 18.99, + "y": 8.86 + } + }, + "shadow": { + "shadow": { + "height": 41, + "width": 150, + "x": 0.16, + "y": 0.68 + } + } + } + }, + "slots": [ + { + "attachment": "shadow", + "bone": "shadow", + "name": "shadow" + }, + { + "attachment": "Weapon", + "bone": "Weapon", + "name": "Weapon" + }, + { + "bone": "SE-daoguang", + "name": "SE-daoguang" + }, + { + "attachment": "L-Upperarm", + "bone": "L-Upperarm", + "name": "L-Upperarm" + }, + { + "attachment": "L-Hand", + "bone": "L-Hand", + "name": "L-Hand" + }, + { + "attachment": "L-Forearm", + "bone": "L-Forearm", + "name": "L-Forearm" + }, + { + "attachment": "L-Lowerleg", + "bone": "L-Lowerleg", + "name": "L-Lowerleg" + }, + { + "attachment": "L-Thigh", + "bone": "L-Thigh", + "name": "L-Thigh" + }, + { + "attachment": "Pelvis", + "bone": "Pelvis", + "name": "Pelvis" + }, + { + "attachment": "R-Lowerleg", + "bone": "R-Lowerleg", + "name": "R-Lowerleg" + }, + { + "attachment": "R-Thigh", + "bone": "R-Thigh", + "name": "R-Thigh" + }, + { + "attachment": "beilou", + "bone": "beilou", + "name": "beilou" + }, + { + "attachment": "hulu", + "bone": "hulu", + "name": "hulu" + }, + { + "attachment": "Body", + "bone": "Body", + "name": "Body" + }, + { + "attachment": "R-Upperarm", + "bone": "R-Upperarm", + "name": "R-Upperarm" + }, + { + "attachment": "R-Hand", + "bone": "R-Hand", + "name": "R-Hand" + }, + { + "attachment": "R-Forearm", + "bone": "R-Forearm", + "name": "R-Forearm" + }, + { + "attachment": "Head", + "bone": "Head", + "name": "Head" + }, + { + "attachment": "Mouth", + "bone": "Head", + "name": "Mouth" + }, + { + "attachment": "Eye", + "bone": "Head", + "name": "Eye" + }, + { + "bone": "hulu2", + "name": "guang" + } + ] + }, + [ + 0 + ] + ] + ], + 0, + 0, + [ + 0 + ], + [ + -1 + ], + [ + 12 + ] + ], + [ + [ + { + "name": "1655112479313", + "rect": [ + 0, + 0, + 402, + 370 + ], + "offset": [ + 0, + 0 + ], + "originalSize": [ + 402, + 370 + ], + "capInsets": [ + 0, + 0, + 0, + 0 + ] + } + ], + [ + 0 + ], + 0, + [ + 0 + ], + [ + 2 + ], + [ + 21 + ] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,1", + -1 + ], + [ + 1 + ], + 0, + [], + [], + [] + ], + [ + [ + { + "name": "huatuo", + "rect": [ + 5, + 0, + 696, + 208 + ], + "offset": [ + 2.5, + 0 + ], + "originalSize": [ + 701, + 208 + ], + "capInsets": [ + 0, + 0, + 0, + 0 + ] + } + ], + [ + 0 + ], + 0, + [ + 0 + ], + [ + 2 + ], + [ + 12 + ] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,1", + -1 + ], + [ + 1 + ], + 0, + [], + [], + [] + ], + [ + [ + { + "name": "1655112563832", + "rect": [ + 0, + 0, + 660, + 554 + ], + "offset": [ + 0, + 0 + ], + "originalSize": [ + 660, + 554 + ], + "capInsets": [ + 0, + 0, + 0, + 0 + ] + } + ], + [ + 0 + ], + 0, + [ + 0 + ], + [ + 2 + ], + [ + 22 + ] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,1", + -1 + ], + [ + 1 + ], + 0, + [], + [], + [] + ], + [ + [ + "0,9729,9729,33071,33071,0,0,1", + -1 + ], + [ + 1 + ], + 0, + [], + [], + [] + ], + [ + [ + { + "name": "default_btn_pressed", + "rect": [ + 0, + 0, + 40, + 40 + ], + "offset": [ + 0, + 0 + ], + "originalSize": [ + 40, + 40 + ], + "capInsets": [ + 12, + 12, + 12, + 12 + ] + } + ], + [ + 0 + ], + 0, + [ + 0 + ], + [ + 2 + ], + [ + 23 + ] + ], + [ + [ + { + "name": "default_btn_normal", + "rect": [ + 0, + 0, + 40, + 40 + ], + "offset": [ + 0, + 0 + ], + "originalSize": [ + 40, + 40 + ], + "capInsets": [ + 12, + 12, + 12, + 12 + ] + } + ], + [ + 0 + ], + 0, + [ + 0 + ], + [ + 2 + ], + [ + 24 + ] + ] + ] +] \ No newline at end of file diff --git a/demo/web-desktop/assets/spine/index.251d3.js b/demo/web-desktop/assets/spine/index.251d3.js new file mode 100644 index 00000000..30fc9efc --- /dev/null +++ b/demo/web-desktop/assets/spine/index.251d3.js @@ -0,0 +1,117 @@ +window.__require = function e(t, n, r) { + function s(o, u) { + if (!n[o]) { + if (!t[o]) { + var b = o.split("/"); + b = b[b.length - 1]; + if (!t[b]) { + var a = "function" == typeof __require && __require; + if (!u && a) return a(b, !0); + if (i) return i(b, !0); + throw new Error("Cannot find module '" + o + "'"); + } + o = b; + } + var f = n[o] = { + exports: {} + }; + t[o][0].call(f.exports, function(e) { + var n = t[o][1][e]; + return s(n || e); + }, f, f.exports, e, t, n, r); + } + return n[o].exports; + } + var i = "function" == typeof __require && __require; + for (var o = 0; o < r.length; o++) s(r[o]); + return s; +}({ + "spine-skin": [ function(require, module, exports) { + "use strict"; + cc._RF.push(module, "27990QihT9DxaLHUpAMue3v", "spine-skin"); + "use strict"; + var __extends = this && this.__extends || function() { + var extendStatics = function(d, b) { + extendStatics = Object.setPrototypeOf || { + __proto__: [] + } instanceof Array && function(d, b) { + d.__proto__ = b; + } || function(d, b) { + for (var p in b) Object.prototype.hasOwnProperty.call(b, p) && (d[p] = b[p]); + }; + return extendStatics(d, b); + }; + return function(d, b) { + extendStatics(d, b); + function __() { + this.constructor = d; + } + d.prototype = null === b ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + }(); + var __decorate = this && this.__decorate || function(decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if ("object" === typeof Reflect && "function" === typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r); + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + Object.defineProperty(exports, "__esModule", { + value: true + }); + var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property; + var SpineSkin = function(_super) { + __extends(SpineSkin, _super); + function SpineSkin() { + var _this = null !== _super && _super.apply(this, arguments) || this; + _this.addBoyBtn = null; + _this.removeBoyBtn = null; + _this.randomChangeBtn = null; + _this.boy = null; + _this.heads = []; + _this.boys = []; + return _this; + } + SpineSkin.prototype.start = function() { + var _this = this; + var boySpine = this.boy.getComponentInChildren(sp.Skeleton); + var newSkeletonData = boySpine.skeletonData.clone(); + boySpine.skeletonData = newSkeletonData; + boySpine.animation = "attack"; + this.boys.push(this.boy); + this.addBoyBtn.on("click", function() { + var newBoy = cc.instantiate(_this.boy); + var newBoySpine = newBoy.getComponentInChildren(sp.Skeleton); + boySpine.skeletonData = newBoySpine.skeletonData.clone(); + boySpine.animation = "attack"; + _this.boy.parent.addChild(newBoy); + newBoy.setPosition(_this.boys[_this.boys.length - 1].position); + newBoy.x += 100; + if (_this.boys.length % 2 === 1) { + newBoy.getComponentInChildren(sp.Skeleton).setAnimationCacheMode(sp.Skeleton.AnimationCacheMode.PRIVATE_CACHE); + newBoy.getComponentInChildren(cc.Label).string = "Spine - Cache"; + } + _this.boys.push(newBoy); + }); + this.removeBoyBtn.on("click", function() { + if (_this.boys.length > 1) { + _this.boys[_this.boys.length - 1].destroy(); + _this.boys.length -= 1; + } + }); + this.randomChangeBtn.on("click", function() { + var boy = _this.boys[_this.boys.length - 1].getComponentInChildren(sp.Skeleton); + boy.setRegion("Head", "Head", sp.SkeletonData.createRegion(_this.heads[Math.floor(Math.random() * _this.heads.length)])); + }); + }; + __decorate([ property(cc.Node) ], SpineSkin.prototype, "addBoyBtn", void 0); + __decorate([ property(cc.Node) ], SpineSkin.prototype, "removeBoyBtn", void 0); + __decorate([ property(cc.Node) ], SpineSkin.prototype, "randomChangeBtn", void 0); + __decorate([ property(cc.Node) ], SpineSkin.prototype, "boy", void 0); + __decorate([ property([ cc.SpriteFrame ]) ], SpineSkin.prototype, "heads", void 0); + SpineSkin = __decorate([ ccclass ], SpineSkin); + return SpineSkin; + }(cc.Component); + exports.default = SpineSkin; + cc._RF.pop(); + }, {} ] +}, {}, [ "spine-skin" ]); +//# sourceMappingURL=index.js.map diff --git a/demo/web-desktop/assets/spine/index.js.map b/demo/web-desktop/assets/spine/index.js.map new file mode 100644 index 00000000..d9fdbe7c --- /dev/null +++ b/demo/web-desktop/assets/spine/index.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["assets/spine/skin/spine-skin.ts"],"names":["_a","cc","_decorator","ccclass","property","SpineSkin","_super","__extends","_this","apply","this","arguments","addBoyBtn","removeBoyBtn","randomChangeBtn","boy","heads","boys","prototype","start","boySpine","getComponentInChildren","sp","Skeleton","newSkeletonData","skeletonData","clone","animation","push","on","newBoy","instantiate","newBoySpine","parent","addChild","setPosition","length","position","x","setAnimationCacheMode","AnimationCacheMode","PRIVATE_CACHE","Label","string","destroy","setRegion","SkeletonData","createRegion","Math","floor","random","__decorate","Node","SpriteFrame","Component","exports","default"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAM,IAAAA,KAAAC,GAAAC,YAAAC,UAAAH,GAAAG,SAAAC,WAAAJ,GAAAI;IAGN,IAAAC,YAAA,SAAAC;MAAuCC,UAAAF,WAAAC;MAAvC,SAAAD;QAAA,IAAAG,QAAA,SAAAF,UAAAA,OAAAG,MAAAC,MAAAC,cAAAD;QAGIF,MAAAI,YAAA;QAGAJ,MAAAK,eAAA;QAGAL,MAAAM,kBAAA;QAGAN,MAAAO,MAAA;QAGAP,MAAAQ,QAAA;QAEAR,MAAAS,OAAA;;;MAEUZ,UAAAa,UAAAC,QAAA;QAAV,IAAAX,QAAAE;QACI,IAAAU,WAAAV,KAAAK,IAAAM,uBAAAC,GAAAC;QACA,IAAAC,kBAAAJ,SAAAK,aAAAC;QACAN,SAAAK,eAAAD;QACAJ,SAAAO,YAAA;QAEAjB,KAAAO,KAAAW,KAAAlB,KAAAK;QAEAL,KAAAE,UAAAiB,GAAA,SAAA;UACI,IAAAC,SAAA7B,GAAA8B,YAAAvB,MAAAO;UACA,IAAAiB,cAAAF,OAAAT,uBAAAC,GAAAC;UACAH,SAAAK,eAAAO,YAAAP,aAAAC;UACAN,SAAAO,YAAA;UAEAnB,MAAAO,IAAAkB,OAAAC,SAAAJ;UACAA,OAAAK,YAAA3B,MAAAS,KAAAT,MAAAS,KAAAmB,SAAA,GAAAC;UACAP,OAAAQ,KAAA;UACA,IAAA9B,MAAAS,KAAAmB,SAAA,MAAA,GAAA;YACIN,OAAAT,uBAAAC,GAAAC,UAAAgB,sBAAAjB,GAAAC,SAAAiB,mBAAAC;YACAX,OAAAT,uBAAApB,GAAAyC,OAAAC,SAAA;;UAEJnC,MAAAS,KAAAW,KAAAE;;QAGJpB,KAAAG,aAAAgB,GAAA,SAAA;UACI,IAAArB,MAAAS,KAAAmB,SAAA,GAAA;YACI5B,MAAAS,KAAAT,MAAAS,KAAAmB,SAAA,GAAAQ;YACApC,MAAAS,KAAAmB,UAAA;;;QAIR1B,KAAAI,gBAAAe,GAAA,SAAA;UACI,IAAAd,MAAAP,MAAAS,KAAAT,MAAAS,KAAAmB,SAAA,GAAAf,uBAAAC,GAAAC;UACAR,IAAA8B,UAAA,QAAA,QAAAvB,GAAAwB,aAAAC,aAAAvC,MAAAQ,MAAAgC,KAAAC,MAAAD,KAAAE,WAAA1C,MAAAQ,MAAA;;;MAjDRmC,WAAA,EADC/C,SAAAH,GAAAmD,SACyB/C,UAAAa,WAAA,kBAAA;MAG1BiC,WAAA,EADC/C,SAAAH,GAAAmD,SAC4B/C,UAAAa,WAAA,qBAAA;MAG7BiC,WAAA,EADC/C,SAAAH,GAAAmD,SAC+B/C,UAAAa,WAAA,wBAAA;MAGhCiC,WAAA,EADC/C,SAAAH,GAAAmD,SACmB/C,UAAAa,WAAA,YAAA;MAGpBiC,WAAA,EADC/C,SAAA,EAAAH,GAAAoD,kBAC4BhD,UAAAa,WAAA,cAAA;MAfZb,YAAA8C,WAAA,EADpBhD,WACoBE;MAwDrB,OAAAA;KAxDA,CAAAJ,GAAAqD;IAAqBC,QAAAC,UAAAnD","sourcesContent":["const { ccclass, property } = cc._decorator;\n\n@ccclass\nexport default class SpineSkin extends cc.Component {\n\n @property(cc.Node)\n addBoyBtn: cc.Node = null;\n\n @property(cc.Node)\n removeBoyBtn: cc.Node = null;\n\n @property(cc.Node)\n randomChangeBtn: cc.Node = null;\n\n @property(cc.Node)\n boy: cc.Node = null;\n\n @property([cc.SpriteFrame])\n heads: cc.SpriteFrame[] = [];\n\n boys: cc.Node[] = [];\n\n protected start(): void {\n const boySpine = this.boy.getComponentInChildren(sp.Skeleton);\n const newSkeletonData = boySpine.skeletonData.clone();\n boySpine.skeletonData = newSkeletonData;\n boySpine.animation = 'attack';\n\n this.boys.push(this.boy);\n\n this.addBoyBtn.on('click', () => {\n const newBoy = cc.instantiate(this.boy);\n const newBoySpine = newBoy.getComponentInChildren(sp.Skeleton);\n boySpine.skeletonData = newBoySpine.skeletonData.clone();\n boySpine.animation = 'attack';\n\n this.boy.parent.addChild(newBoy);\n newBoy.setPosition(this.boys[this.boys.length - 1].position);\n newBoy.x += 100;\n if (this.boys.length % 2 === 1) {\n newBoy.getComponentInChildren(sp.Skeleton).setAnimationCacheMode(sp.Skeleton.AnimationCacheMode.PRIVATE_CACHE);\n newBoy.getComponentInChildren(cc.Label).string = `Spine - Cache`;\n }\n this.boys.push(newBoy);\n });\n\n this.removeBoyBtn.on('click', () => {\n if (this.boys.length > 1) {\n this.boys[this.boys.length - 1].destroy();\n this.boys.length -= 1;\n }\n });\n\n this.randomChangeBtn.on('click', () => {\n const boy = this.boys[this.boys.length - 1].getComponentInChildren(sp.Skeleton);\n boy.setRegion('Head', 'Head', sp.SkeletonData.createRegion(this.heads[Math.floor(Math.random() * (this.heads.length))]));\n });\n }\n\n}\n"],"file":"index.js"} \ No newline at end of file diff --git a/demo/web-desktop/assets/spine/native/39/398d85b3-4934-44c0-8d8e-3812b99f015e.2eb47.png b/demo/web-desktop/assets/spine/native/39/398d85b3-4934-44c0-8d8e-3812b99f015e.2eb47.png new file mode 100644 index 00000000..1a3ad88f Binary files /dev/null and b/demo/web-desktop/assets/spine/native/39/398d85b3-4934-44c0-8d8e-3812b99f015e.2eb47.png differ diff --git a/demo/web-desktop/assets/spine/native/62/6231041a-75a5-4af2-a40d-f27e9498901a.40d17.png b/demo/web-desktop/assets/spine/native/62/6231041a-75a5-4af2-a40d-f27e9498901a.40d17.png new file mode 100644 index 00000000..15e145a0 Binary files /dev/null and b/demo/web-desktop/assets/spine/native/62/6231041a-75a5-4af2-a40d-f27e9498901a.40d17.png differ diff --git a/demo/web-desktop/assets/spine/native/68/6843f00b-0ef4-4b7c-aac0-42ee42635e55.9a531.png b/demo/web-desktop/assets/spine/native/68/6843f00b-0ef4-4b7c-aac0-42ee42635e55.9a531.png new file mode 100644 index 00000000..18265803 Binary files /dev/null and b/demo/web-desktop/assets/spine/native/68/6843f00b-0ef4-4b7c-aac0-42ee42635e55.9a531.png differ diff --git a/demo/web-desktop/assets/spine/native/69/69163ff4-f84e-4d78-8ea7-946f62007fcd.b8970.atlas b/demo/web-desktop/assets/spine/native/69/69163ff4-f84e-4d78-8ea7-946f62007fcd.b8970.atlas new file mode 100644 index 00000000..30e87476 --- /dev/null +++ b/demo/web-desktop/assets/spine/native/69/69163ff4-f84e-4d78-8ea7-946f62007fcd.b8970.atlas @@ -0,0 +1,209 @@ + +huatuo.png +size: 701,208 +format: RGBA8888 +filter: Linear,Linear +repeat: none +Body + rotate: false + xy: 487, 72 + size: 90, 91 + orig: 90, 91 + offset: 0, 0 + index: -1 +Eye + rotate: false + xy: 473, 44 + size: 45, 24 + orig: 45, 24 + offset: 0, 0 + index: -1 +Eye-beiji + rotate: false + xy: 360, 60 + size: 57, 23 + orig: 57, 23 + offset: 0, 0 + index: -1 +Eye-fennu + rotate: false + xy: 570, 39 + size: 39, 21 + orig: 39, 21 + offset: 0, 0 + index: -1 +Eye-shengli + rotate: false + xy: 421, 64 + size: 45, 19 + orig: 45, 19 + offset: 0, 0 + index: -1 +Eye-siwang + rotate: false + xy: 522, 48 + size: 44, 20 + orig: 44, 20 + offset: 0, 0 + index: -1 +Head + rotate: false + xy: 581, 64 + size: 89, 99 + orig: 89, 99 + offset: 0, 0 + index: -1 +L-Forearm + rotate: false + xy: 613, 29 + size: 32, 31 + orig: 32, 31 + offset: 0, 0 + index: -1 +L-Hand + rotate: false + xy: 674, 150 + size: 27, 26 + orig: 27, 26 + offset: 0, 0 + index: -1 +L-Lowerleg + rotate: false + xy: 674, 117 + size: 26, 29 + orig: 26, 29 + offset: 0, 0 + index: -1 +L-Thigh + rotate: false + xy: 649, 25 + size: 29, 35 + orig: 29, 35 + offset: 0, 0 + index: -1 +L-Upperarm + rotate: false + xy: 318, 7 + size: 50, 49 + orig: 50, 49 + offset: 0, 0 + index: -1 +Mouth + rotate: false + xy: 682, 36 + size: 18, 10 + orig: 18, 10 + offset: 0, 0 + index: -1 +Mouth-beiji + rotate: false + xy: 470, 72 + size: 13, 11 + orig: 13, 11 + offset: 0, 0 + index: -1 +Mouth-fennu + rotate: false + xy: 674, 66 + size: 22, 17 + orig: 22, 17 + offset: 0, 0 + index: -1 +Mouth-shengli + rotate: false + xy: 581, 17 + size: 20, 18 + orig: 20, 18 + offset: 0, 0 + index: -1 +Mouth-siwang + rotate: false + xy: 682, 50 + size: 18, 12 + orig: 18, 12 + offset: 0, 0 + index: -1 +Pelvis + rotate: false + xy: 641, 180 + size: 43, 28 + orig: 43, 28 + offset: 0, 0 + index: -1 +R-Forearm + rotate: false + xy: 473, 9 + size: 38, 31 + orig: 38, 31 + offset: 0, 0 + index: -1 +R-Hand + rotate: false + xy: 549, 12 + size: 28, 23 + orig: 28, 23 + offset: 0, 0 + index: -1 +R-Lowerleg + rotate: false + xy: 674, 87 + size: 26, 26 + orig: 26, 26 + offset: 0, 0 + index: -1 +R-Thigh + rotate: false + xy: 515, 4 + size: 30, 36 + orig: 30, 36 + offset: 0, 0 + index: -1 +R-Upperarm + rotate: false + xy: 431, 12 + size: 38, 48 + orig: 38, 48 + offset: 0, 0 + index: -1 +SE-daoguang + rotate: false + xy: 0, 0 + size: 239, 208 + orig: 239, 208 + offset: 0, 0 + index: -1 +SE-guang + rotate: false + xy: 360, 87 + size: 123, 121 + orig: 123, 121 + offset: 0, 0 + index: -1 +Weapon + rotate: false + xy: 243, 10 + size: 71, 46 + orig: 71, 46 + offset: 0, 0 + index: -1 +beilou + rotate: false + xy: 243, 60 + size: 113, 148 + orig: 113, 148 + offset: 0, 0 + index: -1 +hulu + rotate: false + xy: 372, 4 + size: 55, 52 + orig: 55, 52 + offset: 0, 0 + index: -1 +shadow + rotate: false + xy: 487, 167 + size: 150, 41 + orig: 150, 41 + offset: 0, 0 + index: -1 diff --git a/demo/web-desktop/assets/spine/native/70/702455ac-9b92-4dd7-b143-cb02342dbe48.7b3fa.png b/demo/web-desktop/assets/spine/native/70/702455ac-9b92-4dd7-b143-cb02342dbe48.7b3fa.png new file mode 100644 index 00000000..791d8fad Binary files /dev/null and b/demo/web-desktop/assets/spine/native/70/702455ac-9b92-4dd7-b143-cb02342dbe48.7b3fa.png differ diff --git a/demo/web-desktop/assets/spine/native/71/71561142-4c83-4933-afca-cb7a17f67053.c06a9.png b/demo/web-desktop/assets/spine/native/71/71561142-4c83-4933-afca-cb7a17f67053.c06a9.png new file mode 100644 index 00000000..0556b761 Binary files /dev/null and b/demo/web-desktop/assets/spine/native/71/71561142-4c83-4933-afca-cb7a17f67053.c06a9.png differ diff --git a/demo/web-desktop/assets/spine/native/80/804e11b5-bf4f-4a78-ac4a-8443e7166be1.fd38c.png b/demo/web-desktop/assets/spine/native/80/804e11b5-bf4f-4a78-ac4a-8443e7166be1.fd38c.png new file mode 100644 index 00000000..15141211 Binary files /dev/null and b/demo/web-desktop/assets/spine/native/80/804e11b5-bf4f-4a78-ac4a-8443e7166be1.fd38c.png differ diff --git a/demo/web-desktop/assets/spine/native/b4/b43ff3c2-02bb-4874-81f7-f2dea6970f18.83fcc.png b/demo/web-desktop/assets/spine/native/b4/b43ff3c2-02bb-4874-81f7-f2dea6970f18.83fcc.png new file mode 100644 index 00000000..65ea9827 Binary files /dev/null and b/demo/web-desktop/assets/spine/native/b4/b43ff3c2-02bb-4874-81f7-f2dea6970f18.83fcc.png differ diff --git a/demo/web-desktop/assets/spine/native/c1/c11dfdd2-97c6-409c-9c0f-fdfa681f16a9.d86d7.png b/demo/web-desktop/assets/spine/native/c1/c11dfdd2-97c6-409c-9c0f-fdfa681f16a9.d86d7.png new file mode 100644 index 00000000..5c3b67db Binary files /dev/null and b/demo/web-desktop/assets/spine/native/c1/c11dfdd2-97c6-409c-9c0f-fdfa681f16a9.d86d7.png differ diff --git a/demo/web-desktop/assets/spine/native/d0/d06d24ff-c18a-4940-82f9-4fe3c2ab8e96.9c555.png b/demo/web-desktop/assets/spine/native/d0/d06d24ff-c18a-4940-82f9-4fe3c2ab8e96.9c555.png new file mode 100644 index 00000000..759901b5 Binary files /dev/null and b/demo/web-desktop/assets/spine/native/d0/d06d24ff-c18a-4940-82f9-4fe3c2ab8e96.9c555.png differ diff --git a/demo/web-desktop/assets/spine/native/e8/e851e89b-faa2-4484-bea6-5c01dd9f06e2.90cf4.png b/demo/web-desktop/assets/spine/native/e8/e851e89b-faa2-4484-bea6-5c01dd9f06e2.90cf4.png new file mode 100644 index 00000000..cb3c93f5 Binary files /dev/null and b/demo/web-desktop/assets/spine/native/e8/e851e89b-faa2-4484-bea6-5c01dd9f06e2.90cf4.png differ diff --git a/demo/web-desktop/assets/text-render/config.697bc.json b/demo/web-desktop/assets/text-render/config.697bc.json new file mode 100644 index 00000000..69996f47 --- /dev/null +++ b/demo/web-desktop/assets/text-render/config.697bc.json @@ -0,0 +1,54 @@ +{ + "paths": { + "f4jvTRdINIaICWEVrgQxx2": [ + "char-mode/char-mode", + "cc.Prefab" + ], + "e2Z8EqOaxB256X3o4ZbClt": [ + "high-dpi/high-dpi", + "cc.Prefab" + ] + }, + "uuids": [ + "f4jvTRdINIaICWEVrgQxx2", + "e2Z8EqOaxB256X3o4ZbClt", + "ecpdLyjvZBwrvm+cedCcQy", + "5cO7kybDxGj4ipyMYdRYZB", + "5f5dyqtRNNxaFmVzYns6FZ", + "a2MjXRFdtLlYQ5ouAFv/+R" + ], + "scenes": {}, + "redirect": [ + "ecpdLyjvZBwrvm+cedCcQy", + 0, + "5cO7kybDxGj4ipyMYdRYZB", + 1, + "5f5dyqtRNNxaFmVzYns6FZ", + 1, + "a2MjXRFdtLlYQ5ouAFv/+R", + 1 + ], + "deps": [ + "internal", + "main" + ], + "packs": { + "0dccb646b": [ + "e2Z8EqOaxB256X3o4ZbClt", + "f4jvTRdINIaICWEVrgQxx2" + ] + }, + "name": "text-render", + "importBase": "import", + "nativeBase": "native", + "debug": true, + "isZip": false, + "encrypted": false, + "versions": { + "import": [ + "0dccb646b", + "af549" + ], + "native": [] + } +} \ No newline at end of file diff --git a/demo/web-desktop/assets/text-render/import/0d/0dccb646b.af549.json b/demo/web-desktop/assets/text-render/import/0d/0dccb646b.af549.json new file mode 100644 index 00000000..0820e7af --- /dev/null +++ b/demo/web-desktop/assets/text-render/import/0d/0dccb646b.af549.json @@ -0,0 +1,2059 @@ +[ + 1, + [ + "ecpdLyjvZBwrvm+cedCcQy", + "5f5dyqtRNNxaFmVzYns6FZ", + "a2MjXRFdtLlYQ5ouAFv/+R", + "5cO7kybDxGj4ipyMYdRYZB" + ], + [ + "node", + "_spriteFrame", + "root", + "data", + "_parent", + "_scrollView", + "charFont3", + "charFont2", + "charFont1", + "bitmapFont3", + "bitmapFont2", + "bitmapFont1" + ], + [ + [ + "cc.Node", + [ + "_name", + "_prefab", + "_children", + "_components", + "_contentSize", + "_trs", + "_parent", + "_anchorPoint" + ], + 2, + 4, + 2, + 9, + 5, + 7, + 1, + 5 + ], + [ + "cc.Widget", + [ + "_alignFlags", + "_left", + "_originalWidth", + "_originalHeight", + "_right", + "alignMode", + "_top", + "node" + ], + -4, + 1 + ], + [ + "cc.Label", + [ + "_string", + "_fontSize", + "_N$horizontalAlign", + "_N$verticalAlign", + "_N$cacheMode", + "_lineHeight", + "_N$enableRetina", + "_N$overflow", + "node", + "_materials" + ], + -5, + 1, + 3 + ], + [ + "cc.Sprite", + [ + "_sizeMode", + "_type", + "_isTrimmedMode", + "node", + "_materials", + "_spriteFrame" + ], + 0, + 1, + 3, + 6 + ], + [ + "cc.Label", + [ + "_string", + "_fontSize", + "_N$horizontalAlign", + "_N$verticalAlign", + "_N$cacheMode", + "_materials", + "_lineHeight", + "_N$overflow", + "node" + ], + -5, + 1 + ], + [ + "cc.Node", + [ + "_name", + "_parent", + "_children", + "_components", + "_prefab", + "_contentSize", + "_color", + "_anchorPoint", + "_trs" + ], + 2, + 1, + 2, + 12, + 4, + 5, + 5, + 5, + 7 + ], + [ + "cc.Node", + [ + "_name", + "_parent", + "_components", + "_prefab", + "_contentSize", + "_anchorPoint", + "_trs" + ], + 2, + 1, + 2, + 4, + 5, + 5, + 7 + ], + [ + "cc.PrefabInfo", + [ + "fileId", + "root" + ], + 2, + 1 + ], + [ + "cc.Prefab", + [ + "_name" + ], + 2 + ], + [ + "cc.ToggleContainer", + [ + "node" + ], + 3, + 1 + ], + [ + "cc.Layout", + [ + "_resize", + "_N$layoutType", + "_N$startAxis", + "_N$paddingTop", + "_N$spacingY", + "node", + "_layoutSize" + ], + -2, + 1, + 5 + ], + [ + "cc.Scrollbar", + [ + "enableAutoHide", + "_N$direction", + "node", + "_N$handle" + ], + 1, + 1, + 1 + ], + [ + "cc.ScrollView", + [ + "horizontal", + "brake", + "bounceDuration", + "_N$horizontalScrollBar", + "node", + "_N$content", + "_N$verticalScrollBar" + ], + -1, + 1, + 1, + 1 + ], + [ + "59d30IUYIJAq5bVJwTwWxC1", + [ + "node", + "bitmapFont1", + "bitmapFont2", + "bitmapFont3", + "charFont1", + "charFont2", + "charFont3" + ], + 3, + 1, + 1, + 1, + 1, + 1, + 1, + 1 + ] + ], + [ + [ + 7, + 0, + 1, + 2 + ], + [ + 0, + 0, + 6, + 3, + 1, + 4, + 5, + 2 + ], + [ + 6, + 0, + 1, + 2, + 3, + 4, + 6, + 2 + ], + [ + 1, + 0, + 2, + 3, + 7, + 4 + ], + [ + 4, + 0, + 1, + 6, + 2, + 3, + 4, + 5, + 8, + 8 + ], + [ + 2, + 0, + 1, + 5, + 2, + 3, + 4, + 8, + 9, + 7 + ], + [ + 1, + 0, + 1, + 6, + 7, + 4 + ], + [ + 8, + 0, + 2 + ], + [ + 0, + 0, + 2, + 3, + 1, + 4, + 5, + 2 + ], + [ + 0, + 0, + 2, + 3, + 1, + 4, + 7, + 5, + 2 + ], + [ + 0, + 0, + 6, + 2, + 3, + 1, + 4, + 2 + ], + [ + 5, + 0, + 1, + 2, + 3, + 4, + 6, + 5, + 2 + ], + [ + 5, + 0, + 1, + 2, + 3, + 4, + 5, + 7, + 8, + 2 + ], + [ + 6, + 0, + 1, + 2, + 3, + 4, + 5, + 2 + ], + [ + 1, + 0, + 7, + 2 + ], + [ + 1, + 0, + 1, + 4, + 2, + 7, + 5 + ], + [ + 1, + 5, + 0, + 1, + 3, + 7, + 5 + ], + [ + 7, + 1, + 1 + ], + [ + 9, + 0, + 1 + ], + [ + 10, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 6 + ], + [ + 3, + 0, + 2, + 3, + 4, + 5, + 3 + ], + [ + 3, + 1, + 0, + 3, + 4, + 5, + 3 + ], + [ + 3, + 1, + 0, + 3, + 4, + 3 + ], + [ + 11, + 0, + 1, + 2, + 3, + 3 + ], + [ + 12, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 5 + ], + [ + 0, + 0, + 6, + 2, + 1, + 5, + 2 + ], + [ + 4, + 0, + 1, + 2, + 3, + 4, + 5, + 8, + 7 + ], + [ + 4, + 0, + 1, + 6, + 2, + 3, + 7, + 4, + 5, + 8, + 9 + ], + [ + 2, + 0, + 1, + 5, + 2, + 3, + 4, + 6, + 8, + 9, + 8 + ], + [ + 2, + 0, + 1, + 2, + 3, + 7, + 4, + 6, + 8, + 9, + 8 + ], + [ + 2, + 0, + 1, + 2, + 3, + 7, + 4, + 8, + 9, + 7 + ], + [ + 13, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 1 + ] + ], + [ + [ + [ + [ + 7, + "high-dpi" + ], + [ + 8, + "high-dpi", + [ + -3 + ], + [ + [ + 14, + 45, + -2 + ] + ], + [ + 17, + -1 + ], + [ + 5, + 960, + 600 + ], + [ + 480, + 300, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 9, + "content", + [ + -7, + -8 + ], + [ + [ + 18, + -4 + ], + [ + 19, + 1, + 2, + 1, + 30, + 20, + -5, + [ + 5, + 785.815, + 90 + ] + ], + [ + 15, + 41, + 87.09249999999997, + 87.09249999999997, + 220, + -6 + ] + ], + [ + 0, + "98B5382ANHgKQw5BkMsWAq", + 1 + ], + [ + 5, + 785.815, + 90 + ], + [ + 0, + 0.5, + 1 + ], + [ + 0, + 300, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 11, + "sv", + 1, + [ + -12, + -13 + ], + [ + [ + -9, + [ + 3, + 45, + 240, + 250, + -10 + ], + [ + 20, + 0, + false, + -11, + [ + 7 + ], + 8 + ] + ], + 1, + 4, + 4 + ], + [ + 0, + "b5RxDsAgFOW6xOyBdbz2rI", + 1 + ], + [ + 4, + 4279834905 + ], + [ + 5, + 960, + 600 + ] + ], + [ + 25, + "texts", + 2, + [ + -14, + -15, + -16, + -17 + ], + [ + 0, + "fewdQzAVFIpoQlwtbBswLJ", + 1 + ], + [ + 0, + -90, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 12, + "scrollBar", + 3, + [ + -21 + ], + [ + [ + -18, + [ + 16, + 0, + 37, + 350.07654921020657, + 237, + -19 + ], + [ + 21, + 1, + 0, + -20, + [ + 5 + ], + 6 + ] + ], + 1, + 4, + 4 + ], + [ + 0, + "c2cC2kA1NNeozY+5ZzkcSY", + 1 + ], + [ + 5, + 8, + 600 + ], + [ + 0, + 1, + 0.5 + ], + [ + 480, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 10, + "view", + 3, + [ + 2 + ], + [ + [ + 3, + 45, + 240, + 250, + -22 + ] + ], + [ + 0, + "645yltQ0dFpbIcIgDazPDc", + 1 + ], + [ + 5, + 960, + 600 + ] + ], + [ + 1, + "tips", + 2, + [ + [ + 26, + "左:未开启高 DPI 右:已开启高 DPI", + 16, + 1, + 1, + 2, + [ + null + ], + -23 + ], + [ + 6, + 17, + 95.11500000000001, + 30, + -24 + ] + ], + [ + 0, + "fbSLTYNutL174TDvzvU3nT", + 1 + ], + [ + 5, + 418.695, + 40 + ], + [ + 0, + -50, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 1, + "no", + 4, + [ + [ + 28, + "字", + 23, + 26, + 1, + 1, + 1, + 2, + -25, + [ + 0 + ] + ] + ], + [ + 0, + "0dRy5RFi9LTbsFqysUyw1W", + 1 + ], + [ + 5, + 23, + 32.76 + ], + [ + -145.912, + -105.262, + 0, + 0, + 0, + 0, + 1, + 10, + 10, + 1 + ] + ], + [ + 1, + "yes", + 4, + [ + [ + 5, + "字", + 23, + 26, + 1, + 1, + 1, + -26, + [ + 1 + ] + ] + ], + [ + 0, + "2d2KxVjshJJrHLV3IcXHEI", + 1 + ], + [ + 5, + 23, + 32.76 + ], + [ + 145.832, + -107.456, + 0, + 0, + 0, + 0, + 1, + 10, + 10, + 1 + ] + ], + [ + 1, + "no", + 4, + [ + [ + 29, + "诗歌(英語:Poetry)是用于反映生活和表达情感的文学体裁。", + 30, + 1, + 1, + 3, + 1, + 2, + -27, + [ + 2 + ] + ] + ], + [ + 0, + "faGaA/+ptFuZ3KY1Kamr/n", + 1 + ], + [ + 5, + 280.47, + 170.39999999999998 + ], + [ + -154.684, + -369.515, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 1, + "no", + 4, + [ + [ + 30, + "诗歌(英語:Poetry)是用于反映生活和表达情感的文学体裁。", + 30, + 1, + 1, + 3, + 1, + -28, + [ + 3 + ] + ] + ], + [ + 0, + "5fSeoF6Q9MZpcaQU2RV1Er", + 1 + ], + [ + 5, + 280.47, + 170.39999999999998 + ], + [ + 147.945, + -369.515, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 13, + "bar", + 5, + [ + -29 + ], + [ + 0, + "29pI3SelxAU6ODrNe5LS2g", + 1 + ], + [ + 5, + 8, + 30 + ], + [ + 0, + 1, + 0 + ] + ], + [ + 22, + 1, + 0, + 12, + [ + 4 + ] + ], + [ + 23, + false, + 1, + 5, + 13 + ], + [ + 24, + false, + 0.75, + 0.23, + null, + 3, + 2, + 14 + ] + ], + 0, + [ + 0, + 2, + 1, + 0, + 0, + 1, + 0, + -1, + 3, + 0, + 0, + 2, + 0, + 0, + 2, + 0, + 0, + 2, + 0, + -1, + 7, + 0, + -2, + 4, + 0, + -1, + 15, + 0, + 0, + 3, + 0, + 0, + 3, + 0, + -1, + 6, + 0, + -2, + 5, + 0, + -1, + 8, + 0, + -2, + 9, + 0, + -3, + 10, + 0, + -4, + 11, + 0, + -1, + 14, + 0, + 0, + 5, + 0, + 0, + 5, + 0, + -1, + 12, + 0, + 0, + 6, + 0, + 0, + 7, + 0, + 0, + 7, + 0, + 0, + 8, + 0, + 0, + 9, + 0, + 0, + 10, + 0, + 0, + 11, + 0, + -1, + 13, + 0, + 3, + 1, + 2, + 4, + 6, + 14, + 5, + 15, + 29 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 13 + ], + [ + -1, + -1, + -1, + -1, + -1, + -1, + 1, + -1, + 1, + 1 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 2, + 3 + ] + ], + [ + [ + [ + 7, + "char-mode" + ], + [ + 8, + "char-mode", + [ + -10 + ], + [ + [ + 14, + 45, + -2 + ], + [ + 31, + -9, + -8, + -7, + -6, + -5, + -4, + -3 + ] + ], + [ + 17, + -1 + ], + [ + 5, + 960, + 600 + ], + [ + 480, + 300, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 9, + "content", + [ + -14, + -15, + -16, + -17, + -18, + -19, + -20, + -21 + ], + [ + [ + 18, + -11 + ], + [ + 19, + 1, + 2, + 1, + 30, + 20, + -12, + [ + 5, + 785.815, + 503.4 + ] + ], + [ + 15, + 41, + 87.09249999999997, + 87.09249999999997, + 220, + -13 + ] + ], + [ + 0, + "98B5382ANHgKQw5BkMsWAq", + 1 + ], + [ + 5, + 785.815, + 503.4 + ], + [ + 0, + 0.5, + 1 + ], + [ + 0, + 300, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 11, + "sv", + 1, + [ + -25, + -26 + ], + [ + [ + -22, + [ + 3, + 45, + 240, + 250, + -23 + ], + [ + 20, + 0, + false, + -24, + [ + 6 + ], + 7 + ] + ], + 1, + 4, + 4 + ], + [ + 0, + "b5RxDsAgFOW6xOyBdbz2rI", + 1 + ], + [ + 4, + 4279834905 + ], + [ + 5, + 960, + 600 + ] + ], + [ + 12, + "scrollBar", + 3, + [ + -30 + ], + [ + [ + -27, + [ + 16, + 0, + 37, + 350.07654921020657, + 237, + -28 + ], + [ + 21, + 1, + 0, + -29, + [ + 4 + ], + 5 + ] + ], + 1, + 4, + 4 + ], + [ + 0, + "c2cC2kA1NNeozY+5ZzkcSY", + 1 + ], + [ + 5, + 8, + 600 + ], + [ + 0, + 1, + 0.5 + ], + [ + 480, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 10, + "view", + 3, + [ + 2 + ], + [ + [ + 3, + 45, + 240, + 250, + -31 + ] + ], + [ + 0, + "645yltQ0dFpbIcIgDazPDc", + 1 + ], + [ + 5, + 960, + 600 + ] + ], + [ + 1, + "tips", + 2, + [ + [ + 4, + "使用 Bitmap 缓存模式不断显示随机的 3000 个常用字\n动态图集会回收废弃空间,Draw Call 依旧不变", + 16, + 20, + 1, + 1, + 2, + [ + null + ], + -32 + ], + [ + 6, + 17, + 95.11500000000001, + 30, + -33 + ] + ], + [ + 0, + "fbSLTYNutL174TDvzvU3nT", + 1 + ], + [ + 5, + 375.18, + 40 + ], + [ + 0, + -50, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 1, + "tips", + 2, + [ + [ + 27, + "使用 Char 缓存模式不断显示随机的 3000 个常用字\n字符图集会回收废弃空间,Draw Call 依旧不变", + 16, + 20, + 1, + 2, + 1, + 2, + [ + null + ], + -34 + ], + [ + 6, + 17, + 95.11500000000001, + 263.40000000000003, + -35 + ] + ], + [ + 0, + "bdNnnna5tPoKRQC8z61Php", + 1 + ], + [ + 5, + 375.18, + 90 + ], + [ + 0, + -308.40000000000003, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 2, + "label1", + 2, + [ + -36 + ], + [ + 0, + "fbPuhihjlPergAoZdl2Bch", + 1 + ], + [ + 5, + 58.725, + 37.8 + ], + [ + 0, + -108.9, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 5, + "Label", + 24, + 30, + 1, + 1, + 1, + 8, + [ + 0 + ] + ], + [ + 2, + "label2", + 2, + [ + -37 + ], + [ + 0, + "7cjLO2MhtBp4iz/iW57i6X", + 1 + ], + [ + 5, + 58.725, + 37.8 + ], + [ + 0, + -166.70000000000002, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 5, + "Label", + 24, + 30, + 1, + 1, + 1, + 10, + [ + 1 + ] + ], + [ + 2, + "label3", + 2, + [ + -38 + ], + [ + 0, + "53kEDs2ONGbrTwZ/3fkrnr", + 1 + ], + [ + 5, + 58.725, + 37.8 + ], + [ + 0, + -224.50000000000003, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 5, + "Label", + 24, + 30, + 1, + 1, + 1, + 12, + [ + 2 + ] + ], + [ + 2, + "label1", + 2, + [ + -39 + ], + [ + 0, + "53ohPrY4VPPaTL8Y+GWL2b", + 1 + ], + [ + 5, + 58.73, + 30 + ], + [ + 0, + -388.40000000000003, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 4, + "Label", + 24, + 30, + 1, + 1, + 2, + [ + null + ], + 14 + ], + [ + 2, + "label2", + 2, + [ + -40 + ], + [ + 0, + "ecP5qke91J8JmKY2vRuQZb", + 1 + ], + [ + 5, + 58.73, + 30 + ], + [ + 0, + -438.40000000000003, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 4, + "Label", + 24, + 30, + 1, + 1, + 2, + [ + null + ], + 16 + ], + [ + 2, + "label3", + 2, + [ + -41 + ], + [ + 0, + "f0KGVrovlF0qoYJg33NKVZ", + 1 + ], + [ + 5, + 58.73, + 30 + ], + [ + 0, + -488.40000000000003, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + ], + [ + 4, + "Label", + 24, + 30, + 1, + 1, + 2, + [ + null + ], + 18 + ], + [ + 13, + "bar", + 4, + [ + -42 + ], + [ + 0, + "29pI3SelxAU6ODrNe5LS2g", + 1 + ], + [ + 5, + 8, + 30 + ], + [ + 0, + 1, + 0 + ] + ], + [ + 22, + 1, + 0, + 20, + [ + 3 + ] + ], + [ + 23, + false, + 1, + 4, + 21 + ], + [ + 24, + false, + 0.75, + 0.23, + null, + 3, + 2, + 22 + ] + ], + 0, + [ + 0, + 2, + 1, + 0, + 0, + 1, + 0, + 6, + 19, + 0, + 7, + 17, + 0, + 8, + 15, + 0, + 9, + 13, + 0, + 10, + 11, + 0, + 11, + 9, + 0, + 0, + 1, + 0, + -1, + 3, + 0, + 0, + 2, + 0, + 0, + 2, + 0, + 0, + 2, + 0, + -1, + 6, + 0, + -2, + 8, + 0, + -3, + 10, + 0, + -4, + 12, + 0, + -5, + 7, + 0, + -6, + 14, + 0, + -7, + 16, + 0, + -8, + 18, + 0, + -1, + 23, + 0, + 0, + 3, + 0, + 0, + 3, + 0, + -1, + 5, + 0, + -2, + 4, + 0, + -1, + 22, + 0, + 0, + 4, + 0, + 0, + 4, + 0, + -1, + 20, + 0, + 0, + 5, + 0, + 0, + 6, + 0, + 0, + 6, + 0, + 0, + 7, + 0, + 0, + 7, + 0, + -1, + 9, + 0, + -1, + 11, + 0, + -1, + 13, + 0, + -1, + 15, + 0, + -1, + 17, + 0, + -1, + 19, + 0, + -1, + 21, + 0, + 3, + 1, + 2, + 4, + 5, + 22, + 5, + 23, + 42 + ], + [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 21 + ], + [ + -1, + -1, + -1, + -1, + -1, + 1, + -1, + 1, + 1 + ], + [ + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 2, + 3 + ] + ] + ] +] \ No newline at end of file diff --git a/demo/web-desktop/assets/text-render/index.697bc.js b/demo/web-desktop/assets/text-render/index.697bc.js new file mode 100644 index 00000000..0eae7191 --- /dev/null +++ b/demo/web-desktop/assets/text-render/index.697bc.js @@ -0,0 +1,122 @@ +window.__require = function e(t, n, r) { + function s(o, u) { + if (!n[o]) { + if (!t[o]) { + var b = o.split("/"); + b = b[b.length - 1]; + if (!t[b]) { + var a = "function" == typeof __require && __require; + if (!u && a) return a(b, !0); + if (i) return i(b, !0); + throw new Error("Cannot find module '" + o + "'"); + } + o = b; + } + var f = n[o] = { + exports: {} + }; + t[o][0].call(f.exports, function(e) { + var n = t[o][1][e]; + return s(n || e); + }, f, f.exports, e, t, n, r); + } + return n[o].exports; + } + var i = "function" == typeof __require && __require; + for (var o = 0; o < r.length; o++) s(r[o]); + return s; +}({ + "char-mode": [ function(require, module, exports) { + "use strict"; + cc._RF.push(module, "59d30IUYIJAq5bVJwTwWxC1", "char-mode"); + "use strict"; + var __extends = this && this.__extends || function() { + var extendStatics = function(d, b) { + extendStatics = Object.setPrototypeOf || { + __proto__: [] + } instanceof Array && function(d, b) { + d.__proto__ = b; + } || function(d, b) { + for (var p in b) Object.prototype.hasOwnProperty.call(b, p) && (d[p] = b[p]); + }; + return extendStatics(d, b); + }; + return function(d, b) { + extendStatics(d, b); + function __() { + this.constructor = d; + } + d.prototype = null === b ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + }(); + var __decorate = this && this.__decorate || function(decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if ("object" === typeof Reflect && "function" === typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r); + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + Object.defineProperty(exports, "__esModule", { + value: true + }); + var chars_1 = require("../chars"); + var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property; + var CharMode = function(_super) { + __extends(CharMode, _super); + function CharMode() { + var _this = null !== _super && _super.apply(this, arguments) || this; + _this.bitmapFont1 = null; + _this.bitmapFont2 = null; + _this.bitmapFont3 = null; + _this.charFont1 = null; + _this.charFont2 = null; + _this.charFont3 = null; + return _this; + } + CharMode.prototype.onLoad = function() { + var _this = this; + this.bitmapFont1.string = this.getRandomText(15); + this.bitmapFont2.string = this.getRandomText(15); + this.bitmapFont3.string = this.getRandomText(15); + this.charFont1.string = this.getRandomText(15); + this.charFont2.string = this.getRandomText(15); + this.charFont3.string = this.getRandomText(15); + this.schedule(function() { + _this.bitmapFont1.string = _this.getRandomText(15); + _this.bitmapFont2.string = _this.getRandomText(15); + _this.bitmapFont3.string = _this.getRandomText(15); + _this.charFont1.string = _this.getRandomText(15); + _this.charFont2.string = _this.getRandomText(15); + _this.charFont3.string = _this.getRandomText(15); + }, .1); + }; + CharMode.prototype.getRandomText = function(length) { + var str = ""; + while (str.length < length) str += chars_1.chars[Math.floor(Math.random() * chars_1.chars.length)]; + return str; + }; + __decorate([ property(cc.Label) ], CharMode.prototype, "bitmapFont1", void 0); + __decorate([ property(cc.Label) ], CharMode.prototype, "bitmapFont2", void 0); + __decorate([ property(cc.Label) ], CharMode.prototype, "bitmapFont3", void 0); + __decorate([ property(cc.Label) ], CharMode.prototype, "charFont1", void 0); + __decorate([ property(cc.Label) ], CharMode.prototype, "charFont2", void 0); + __decorate([ property(cc.Label) ], CharMode.prototype, "charFont3", void 0); + CharMode = __decorate([ ccclass ], CharMode); + return CharMode; + }(cc.Component); + exports.default = CharMode; + cc._RF.pop(); + }, { + "../chars": "chars" + } ], + chars: [ function(require, module, exports) { + "use strict"; + cc._RF.push(module, "0f373c9jcRAy6NDXndhSRxT", "chars"); + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.chars = void 0; + exports.chars = "\u7684\u4e00\u662f\u5728\u4e86\u4e0d\u548c\u6709\u5927\u8fd9\u4e3b\u4e2d\u4eba\u4e0a\u4e3a\u4eec\u5730\u4e2a\u7528\u5de5\u65f6\u8981\u52a8\u56fd\u4ea7\u4ee5\u6211\u5230\u4ed6\u4f1a\u4f5c\u6765\u5206\u751f\u5bf9\u4e8e\u5b66\u4e0b\u7ea7\u5c31\u5e74\u9636\u4e49\u53d1\u6210\u90e8\u6c11\u53ef\u51fa\u80fd\u65b9\u8fdb\u540c\u884c\u9762\u8bf4\u79cd\u8fc7\u547d\u5ea6\u9769\u800c\u591a\u5b50\u540e\u81ea\u793e\u52a0\u5c0f\u673a\u4e5f\u7ecf\u529b\u7ebf\u672c\u7535\u9ad8\u91cf\u957f\u515a\u5f97\u5b9e\u5bb6\u5b9a\u6df1\u6cd5\u8868\u7740\u6c34\u7406\u5316\u4e89\u73b0\u6240\u4e8c\u8d77\u653f\u4e09\u597d\u5341\u6218\u65e0\u519c\u4f7f\u6027\u524d\u7b49\u53cd\u4f53\u5408\u6597\u8def\u56fe\u628a\u7ed3\u7b2c\u91cc\u6b63\u65b0\u5f00\u8bba\u4e4b\u7269\u4ece\u5f53\u4e24\u4e9b\u8fd8\u5929\u8d44\u4e8b\u961f\u6279\u5982\u5e94\u5f62\u60f3\u5236\u5fc3\u6837\u5e72\u90fd\u5411\u53d8\u5173\u70b9\u80b2\u91cd\u5176\u601d\u4e0e\u95f4\u5185\u53bb\u56e0\u4ef6\u65e5\u5229\u76f8\u7531\u538b\u5458\u6c14\u4e1a\u4ee3\u5168\u7ec4\u6570\u679c\u671f\u5bfc\u5e73\u5404\u57fa\u6216\u6708\u6bdb\u7136\u95ee\u6bd4\u5c55\u90a3\u5b83\u6700\u53ca\u5916\u6ca1\u770b\u6cbb\u63d0\u4e94\u89e3\u7cfb\u6797\u8005\u7c73\u7fa4\u5934\u610f\u53ea\u660e\u56db\u9053\u9a6c\u8ba4\u6b21\u6587\u901a\u4f46\u6761\u8f83\u514b\u53c8\u516c\u5b54\u9886\u519b\u6d41\u5165\u63a5\u5e2d\u4f4d\u60c5\u8fd0\u5668\u5e76\u98de\u539f\u6cb9\u653e\u7acb\u9898\u8d28\u6307\u5efa\u533a\u9a8c\u6d3b\u4f17\u5f88\u6559\u51b3\u7279\u6b64\u5e38\u77f3\u5f3a\u6781\u571f\u5c11\u5df2\u6839\u5171\u76f4\u56e2\u7edf\u5f0f\u8f6c\u522b\u9020\u5207\u4e5d\u4f60\u53d6\u897f\u6301\u603b\u6599\u8fde\u4efb\u5fd7\u89c2\u8c03\u4e03\u4e48\u5c71\u7a0b\u767e\u62a5\u66f4\u89c1\u5fc5\u771f\u4fdd\u70ed\u59d4\u624b\u6539\u7ba1\u5904\u5df1\u5c06\u4fee\u652f\u8bc6\u75c5\u8c61\u51e0\u5148\u8001\u5149\u4e13\u4ec0\u516d\u578b\u5177\u793a\u590d\u5b89\u5e26\u6bcf\u4e1c\u589e\u5219\u5b8c\u98ce\u56de\u5357\u5e7f\u52b3\u8f6e\u79d1\u5317\u6253\u79ef\u8f66\u8ba1\u7ed9\u8282\u505a\u52a1\u88ab\u6574\u8054\u6b65\u7c7b\u96c6\u53f7\u5217\u6e29\u88c5\u5373\u6beb\u77e5\u8f74\u7814\u5355\u8272\u575a\u636e\u901f\u9632\u53f2\u62c9\u4e16\u8bbe\u8fbe\u5c14\u573a\u7ec7\u5386\u82b1\u53d7\u6c42\u4f20\u53e3\u65ad\u51b5\u91c7\u7cbe\u91d1\u754c\u54c1\u5224\u53c2\u5c42\u6b62\u8fb9\u6e05\u81f3\u4e07\u786e\u7a76\u4e66\u672f\u72b6\u5382\u987b\u79bb\u518d\u76ee\u6d77\u4ea4\u6743\u4e14\u513f\u9752\u624d\u8bc1\u4f4e\u8d8a\u9645\u516b\u8bd5\u89c4\u65af\u8fd1\u6ce8\u529e\u5e03\u95e8\u94c1\u9700\u8d70\u8bae\u53bf\u5175\u56fa\u9664\u822c\u5f15\u9f7f\u5343\u80dc\u7ec6\u5f71\u6d4e\u767d\u683c\u6548\u7f6e\u63a8\u7a7a\u914d\u5200\u53f6\u7387\u8ff0\u4eca\u9009\u517b\u5fb7\u8bdd\u67e5\u5dee\u534a\u654c\u59cb\u7247\u65bd\u54cd\u6536\u534e\u89c9\u5907\u540d\u7ea2\u7eed\u5747\u836f\u6807\u8bb0\u96be\u5b58\u6d4b\u58eb\u8eab\u7d27\u6db2\u6d3e\u51c6\u65a4\u89d2\u964d\u7ef4\u677f\u8bb8\u7834\u8ff0\u6280\u6d88\u5e95\u5e8a\u7530\u52bf\u7aef\u611f\u5f80\u795e\u4fbf\u8d3a\u6751\u6784\u7167\u5bb9\u975e\u641e\u4e9a\u78e8\u65cf\u706b\u6bb5\u7b97\u9002\u8bb2\u6309\u503c\u7f8e\u6001\u9ec4\u6613\u5f6a\u670d\u65e9\u73ed\u9ea6\u524a\u4fe1\u6392\u53f0\u58f0\u8be5\u51fb\u7d20\u5f20\u5bc6\u5bb3\u4faf\u8349\u4f55\u6811\u80a5\u7ee7\u53f3\u5c5e\u5e02\u4e25\u5f84\u87ba\u68c0\u5de6\u9875\u6297\u82cf\u663e\u82e6\u82f1\u5feb\u79f0\u574f\u79fb\u7ea6\u5df4\u6750\u7701\u9ed1\u6b66\u57f9\u8457\u6cb3\u5e1d\u4ec5\u9488\u600e\u690d\u4eac\u52a9\u5347\u738b\u773c\u5979\u6293\u542b\u82d7\u526f\u6742\u666e\u8c08\u56f4\u98df\u5c04\u6e90\u4f8b\u81f4\u9178\u65e7\u5374\u5145\u8db3\u77ed\u5212\u5242\u5ba3\u73af\u843d\u9996\u5c3a\u6ce2\u627f\u7c89\u8df5\u5e9c\u9c7c\u968f\u8003\u523b\u9760\u591f\u6ee1\u592b\u5931\u5305\u4f4f\u4fc3\u679d\u5c40\u83cc\u6746\u5468\u62a4\u5ca9\u5e08\u4e3e\u66f2\u6625\u5143\u8d85\u8d1f\u7802\u5c01\u6362\u592a\u6a21\u8d2b\u51cf\u9633\u626c\u6c5f\u6790\u4ea9\u6728\u8a00\u7403\u671d\u533b\u6821\u53e4\u5462\u7a3b\u5b8b\u542c\u552f\u8f93\u6ed1\u7ad9\u53e6\u536b\u5b57\u9f13\u521a\u5199\u5218\u5fae\u7565\u8303\u4f9b\u963f\u5757\u67d0\u529f\u5957\u53cb\u9650\u9879\u4f59\u5012\u5377\u521b\u5f8b\u96e8\u8ba9\u9aa8\u8fdc\u5e2e\u521d\u76ae\u64ad\u4f18\u5360\u6b7b\u6bd2\u5708\u4f1f\u5b63\u8bad\u63a7\u6fc0\u627e\u53eb\u4e91\u4e92\u8ddf\u88c2\u7cae\u7c92\u6bcd\u7ec3\u585e\u94a2\u9876\u7b56\u53cc\u7559\u8bef\u7840\u5438\u963b\u6545\u5bf8\u76fe\u665a\u4e1d\u5973\u6563\u710a\u529f\u682a\u4eb2\u9662\u51b7\u5f7b\u5f39\u9519\u6563\u5546\u89c6\u827a\u706d\u7248\u70c8\u96f6\u5ba4\u8f7b\u8840\u500d\u7f3a\u5398\u6cf5\u5bdf\u7edd\u5bcc\u57ce\u51b2\u55b7\u58e4\u7b80\u5426\u67f1\u674e\u671b\u76d8\u78c1\u96c4\u4f3c\u56f0\u5de9\u76ca\u6d32\u8131\u6295\u9001\u5974\u4fa7\u6da6\u76d6\u6325\u8ddd\u89e6\u661f\u677e\u9001\u83b7\u5174\u72ec\u5b98\u6df7\u7eaa\u4f9d\u672a\u7a81\u67b6\u5bbd\u51ac\u7ae0\u6e7f\u504f\u7eb9\u5403\u6267\u9600\u77ff\u5be8\u8d23\u719f\u7a33\u593a\u786c\u4ef7\u52aa\u7ffb\u5947\u7532\u9884\u804c\u8bc4\u8bfb\u80cc\u534f\u635f\u68c9\u4fb5\u7070\u867d\u77db\u539a\u7f57\u6ce5\u8f9f\u544a\u5375\u7bb1\u638c\u6c27\u6069\u7231\u505c\u66fe\u6eb6\u8425\u7ec8\u7eb2\u5b5f\u94b1\u5f85\u5c3d\u4fc4\u7f29\u6c99\u9000\u9648\u8ba8\u594b\u68b0\u8f7d\u80de\u5e7c\u54ea\u5265\u8feb\u65cb\u5f81\u69fd\u5012\u63e1\u62c5\u4ecd\u5440\u9c9c\u5427\u5361\u7c97\u4ecb\u94bb\u9010\u5f31\u811a\u6015\u76d0\u672b\u9634\u4e30\u7f16\u5370\u8702\u6025\u62ff\u6269\u4f24\u98de\u9732\u6838\u7f18\u6e38\u632f\u64cd\u592e\u4f0d\u57df\u751a\u8fc5\u8f89\u5f02\u5e8f\u514d\u7eb8\u591c\u4e61\u4e45\u96b6\u7f38\u5939\u5ff5\u5170\u6620\u6c9f\u4e59\u5417\u5112\u6740\u6c7d\u78f7\u8270\u6676\u63d2\u57c3\u71c3\u6b22\u94c1\u8865\u54b1\u82bd\u6c38\u74e6\u503e\u9635\u78b3\u6f14\u5a01\u9644\u7259\u82bd\u6c38\u74e6\u659c\u704c\u6b27\u732e\u987a\u732a\u6d0b\u8150\u8bf7\u900f\u53f8\u5371\u62ec\u8109\u5b9c\u7b11\u82e5\u5c3e\u675f\u58ee\u66b4\u4f01\u83dc\u7a57\u695a\u6c49\u6108\u7eff\u62d6\u725b\u4efd\u67d3\u65e2\u79cb\u904d\u953b\u7389\u590f\u7597\u5c16\u6b96\u4e95\u8d39\u5dde\u8bbf\u5439\u8363\u94dc\u6cbf\u66ff\u6eda\u5ba2\u53ec\u65f1\u609f\u523a\u8111\u63aa\u8d2f\u85cf\u6562\u4ee4\u9699\u7089\u58f3\u786b\u7164\u8fce\u94f8\u7c98\u63a2\u4e34\u8584\u65ec\u5584\u798f\u7eb5\u62e9\u793c\u613f\u4f0f\u6b8b\u96f7\u5ef6\u70df\u53e5\u7eaf\u6e10\u8015\u8dd1\u6cfd\u6162\u683d\u9c81\u8d64\u7e41\u5883\u6f6e\u6a2a\u6389\u9525\u5e0c\u6c60\u8d25\u8239\u5047\u4eae\u8c13\u6258\u4f19\u54f2\u6000\u5272\u6446\u8d21\u5448\u52b2\u8d22\u4eea\u6c89\u70bc\u9ebb\u7f6a\u7956\u606f\u8f66\u7a7f\u8d27\u9500\u9f50\u9f20\u62bd\u753b\u9972\u9f99\u5e93\u5b88\u7b51\u623f\u6b4c\u5bd2\u559c\u54e5\u6d17\u8680\u5e9f\u7eb3\u8179\u4e4e\u5f55\u955c\u5987\u6076\u8102\u5e84\u64e6\u9669\u8d5e\u949f\u6447\u5178\u67c4\u8fa9\u7af9\u8c37\u5356\u4e71\u865a\u6865\u5965\u4f2f\u8d76\u5782\u9014\u989d\u58c1\u7f51\u622a\u91ce\u9057\u9759\u8c0b\u5f04\u6302\u8bfe\u9547\u5984\u76db\u8010\u63f4\u624e\u8651\u952e\u5f52\u7b26\u5e86\u805a\u7ed5\u6469\u5fd9\u821e\u9047\u7d22\u987e\u80f6\u7f8a\u6e56\u9489\u4ec1\u97f3\u8ff9\u788e\u4f38\u706f\u907f\u6cdb\u4ea1\u7b54\u52c7\u9891\u7687\u67f3\u54c8\u63ed\u7518\u8bfa\u6982\u5baa\u6d53\u5c9b\u88ad\u8c01\u6d2a\u8c22\u70ae\u6d47\u6591\u8baf\u61c2\u7075\u86cb\u95ed\u5b69\u91ca\u4e73\u5de8\u5f92\u79c1\u94f6\u4f0a\u666f\u5766\u7d2f\u5300\u9709\u675c\u4e50\u52d2\u9694\u5f2f\u7ee9\u62db\u7ecd\u80e1\u547c\u75db\u5cf0\u96f6\u67f4\u7c27\u5348\u8df3\u5c45\u5c1a\u4e01\u79e6\u7a0d\u8ffd\u6881\u6298\u8017\u78b1\u6b8a\u5c97\u6316\u6c0f\u5203\u5267\u5806\u8d6b\u8377\u80f8\u8861\u52e4\u819c\u7bc7\u767b\u9a7b\u6848\u520a\u79e7\u7f13\u51f8\u5f79\u526a\u5ddd\u96ea\u94fe\u6e14\u5566\u8138\u6237\u6d1b\u5b62\u52c3\u76df\u4e70\u6768\u5b97\u7126\u8d5b\u65d7\u6ee4\u7845\u70ad\u80a1\u5750\u84b8\u51dd\u7adf\u9677\u67aa\u9ece\u6551\u5192\u6697\u6d1e\u72af\u7b52\u60a8\u5b8b\u5f27\u7206\u8c2c\u6d82\u5473\u6d25\u81c2\u969c\u8910\u9646\u554a\u5065\u5c0a\u8c46\u62d4\u83ab\u62b5\u6851\u5761\u7f1d\u8b66\u6311\u6c61\u51b0\u67ec\u5634\u5565\u996d\u5851\u5bc4\u8d75\u558a\u57ab\u5eb7\u9075\u7267\u906d\u5e45\u56ed\u8154\u8ba2\u9999\u8089\u5f1f\u5c4b\u654f\u6062\u5fd8\u8863\u5b59\u9f84\u5cad\u9a97\u4f11\u501f\u4e39\u6e21\u8033\u5228\u864e\u7b14\u7a00\u6606\u6d6a\u8428\u8336\u6ef4\u6d45\u62e5\u7a74\u8986\u4f26\u5a18\u5428\u6d78\u8896\u73e0\u96cc\u5988\u7d2b\u620f\u5854\u9524\u9707\u5c81\u8c8c\u6d01\u5256\u7262\u950b\u7591\u9738\u95ea\u57d4\u731b\u8bc9\u5237\u72e0\u5ffd\u707e\u95f9\u4e54\u5510\u6f0f\u95fb\u6c88\u7194\u6c2f\u8352\u830e\u7537\u51e1\u62a2\u50cf\u6d46\u65c1\u73bb\u4ea6\u5fe0\u5531\u8499\u4e88\u7eb7\u6355\u9501\u5c24\u4e58\u4e4c\u667a\u6de1\u5141\u53db\u755c\u4fd8\u6478\u9508\u626b\u6bd5\u7483\u5b9d\u82af\u7237\u9274\u79d8\u51c0\u848b\u9499\u80a9\u817e\u67af\u629b\u8f68\u5802\u62cc\u7238\u5faa\u8bf1\u795d\u52b1\u80af\u9152\u7ef3\u7a77\u5858\u71e5\u6ce1\u888b\u6717\u5582\u94dd\u8f6f\u6e20\u9897\u60ef\u8d38\u7caa\u7efc\u5899\u8d8b\u5f7c\u5c4a\u58a8\u788d\u542f\u9006\u5378\u822a\u96fe\u51a0\u4e19\u8857\u83b1\u8d1d\u8f90\u80a0\u4ed8\u5409\u6e17\u745e\u60ca\u987f\u6324\u79d2\u60ac\u59c6\u70c2\u68ee\u7cd6\u5723\u51f9\u9676\u8bcd\u8fdf\u8695\u4ebf\u77e9\u810a\u6b7c\u7fbd\u63a9\u6c57\u78b0\u8c31\u7ae5\u5ead\u84ec\u8d34\u5cb8\u5e97\u602a\u9986\u6321\u80a2\u80c6\u541b\u4e4f\u5085\u51cc\u6070\u5434\u9e21\u76c6\u6c2e\u94c3\u8361\u6c47\u72c2\u5076\u8fbd\u5bb4\u73ca\u63cf\u76d1\u6d89\u4f0f\u5f03\u4ed4\u576f\u75c7\u775b\u7a9d\u8dc3\u4e32\u745a\u9971\u5de2\u8f91\u8ff7\u8bd7\u8083\u8c0a\u80ce\u5bbe\u987d\u94a0\u8f9b\u9614\u7272\u4f30\u7981\u5c51\u79c0\u50ac\u70b8\u642c\u5751\u6682\u57cb\u5893\u8170\u9686\u5821\u8fc8\u614c\u94be\u9b4f\u8e0f\u65fa\u871c\u517c\u626d\u80ba\u5144\u6492\u77ee\u62c6\u53c9\u8d2e\u62ac\u75d5\u5f69\u51bb\u4e1b\u6f06\u8be6\u62e8\u74dc\u5954\u817f\u6696\u813e\u68d2\u6e7e\u65c5\u6f5c\u6444\u6731\u7ea4\u89c8\u878d\u62cd\u611a\u6dfb\u62b1\u84c4\u7a3f\u7fc5\u86fe\u9510\u6813\u7b7e\u724c\u77a7\u758f\u820d\u7cca\u9a71\u6cc9\u6bc1\u4f2a\u952f\u5362\u51fd\u6398\u6270\u6dec\u518c\u68f1\u722c\u8c6a\u879f\u6807\u6388\u670b\u4fd7\u9a82\u4ed3\u810f\u660c\u90a6\u6b3a\u535a\u4f10\u8870\u5bfb\u6760\u8717\u5c3f\u5e55\u7d6e\u8616\u8fa8\u5b75\u5784\u7cb9\u586b\u4e18\u6b6a\u9b3c\u633a\u5e05\u65a5\u6458\u7236\u72d7\u7f62\u708e\u7586\u809d\u9176\u6068\u66fc\u8e72\u5e01\u8fd4\u98a0\u5269\u6e2f\u989c\u9175\u68af\u697c\u7eea\u6dee\u90bb\u5fa1\u6770\u6052\u5f17\u6e89\u6dc0\u82ef\u8de8\u80bf\u6291\u8bf8\u51c9\u80da\u8212\u80c0\u6c22\u642d\u9192\u9003\u66f0\u7ade\u75be\u97e9\u5c18\u5bff\u5b64\u7763\u6da1\u751c\u62d2\u6885\u4e54\u9521\u7761\u6602\u70ef\u62e7\u6251\u90ca\u60a3\u8d2d\u8757\u9505\u8511\u8d56\u74f6\u79df\u6012\u5de7\u818f\u6d8c\u72ed\u9187\u60d5\u6863\u71d5\u6cf0\u80c1\u76d8\u7aed\u8fdd\u4e3d\u6c28\u6846\u820c\u81a8\u9aa4\u84dd\u5e78\u8bda\u5413\u79e9\u6276\u82ac\u54ac\u7275\u5fcd\u690e\u6124\u8fc1\u4ec7\u6ee9\u4eff\u7ed8\u8f88\u62da\u559d\u9a73\u7566\u756a\u6251\u8461\u6b3e\u6572\u9080\u90ed\u59a5\u9690s\u8f70\u7c7d\u5fc6\u65e6\u72b9\u5eb8\u5d07\u5e99\u79c6\u95f8\u5389\u81e3\u7a97\u7eba\u63a0\u6d9d\u6da8\u9012\u846c\u9605\u5835\u6241\u94b3\u68da\u9cde\u4f34\u73cd\u6566\u692d\u6c83\u6b32\u9f3b\u5b87\u752b\u950c\u7686\u94f2\u7816\u8d3c\u6e23\u6d4e\u7b5b\u658b\u68a6\u8d2a\u54c7\u8404\u94fa\u6843\u87f9\u631d\u7cd9\u9888\u96c5\u6652\u97e6\u803b\u6cb8\u96c7\u50a8\u754f\u970d\u83f2\u5f90\u699c\u56ca\u817a\u8328\u9655\u62b9\u5c48\u5bbf\u785d\u6628\u852c\u90dd\u94ec\u8327\u7a84\u54e8\u8f86\u8000\u4ef2\u85af\u50da\u6d59\u9970\u6734\u6050\u814a\u517d\u8721\u60e0\u7281\u561b\u552e\u9ccd\u656c\u575d\u70d8\u9882\u53d4\u5367\u7ea0\u7edc\u73a9\u680f\u5251\u82f9\u95ef\u4e22\u67cf\u727a\u594e\u56b7\u5bab\u80be\u7b3c\u90d1\u53d9\u5976\u8292\u971e\u673d\u59b9\u832c\u7801\u6380\u9601\u5351\u94f0\u94f5\u5f26\u80a4\u62df\u7f72\u6dcb\u68a8\u8fea\u4fe9\u6491\u5475\u7533\u7a46\u676f\u59d1\u529d\u5d29\u52a3\u8d3a\u68d5\u88c1\u5410\u5ae9\u51ed\u66f9\u6467\u75ab\u9e1f\u954d\u7709\u6881\u79be\u81ed\u5188\u9675\u6b67\u5e7b\u4e27\u8fed\u8106\u6028\u8463\u9540\u9177\u7f50\u903b\u6a61\u6d69\u64a4\u9a76\u4eab\u9526\u4ffa\u4f5b\u5154\u59ff\u94c5\u5824\u5740\u6e83\u80fa\u76b1\u6668\u80c3\u6c1f\u707f\u6f2b\u6cc4\u67a2\u6234\u5b55\u6263\u6cbc\u903c\u808c\u7897\u5de1\u540a\u76d7\u869c\u94a9\u6c64\u68a2\u6328\u7ffc\u75af\u97ad\u6247\u51b6\u70e6\u6089\u8513\u6cfc\u684c\u67ef\u7f69\u556e\u52fe\u8230\u664b\u6273\u8c34\u4faf\u5021\u8bca\u9e23\u6842\u5956\u8d3e\u6735\u971c\u840c\u6ede\u86f9\u9610\u507f\u8bd1\u7a3c\u635e\u68f5\u6208\u8bec\u64ae\u6d12\u8427\u5978\u996e\u6d85\u886c\u9557\u7eb1\u7624\u845b\u997c\u51f6\u9975\u6cbe\u998f\u94bc\u978b\u59d3\u6c5e\u67a3\u6e9c\u75bc\u51d1\u919b\u988c\u8096\u7be1\u9093\u649e\u6405\u94e1\u535c\u6b47\u59a8\u633d\u5ba1\u51ef\u8f67\u5792\u7bad\u7095\u6d51\u9f9f\u8d26\u8da3\u4fed\u6cea\u6cca\u4e43\u6349\u7a91\u9a7e\u6c41\u51ff\u997f\u5e3d\u6e58\u90ce\u6b23\u614e\u82b3\u80aa\u853d\u7ef5\u7545\u76f2\u7f1a\u7115\u60dc\u4ef0\u884d\u5ef7\u7384\u6cfb\u84b2\u6363\u5999\u5e15\u86c7\u9530\u68d8\u6eaa\u532a\u7ed2\u6f58\u75b2\u7eac\u9e2d\u574e\u76d2\u62fc\u836b\u5146\u718a\u60b2\u6367\u9504\u5949\u966a\u739b\u5fae\u94a8\u7c4d\u868a\u6f02\u7cdf\u5609\u72fc\u6876\u62fe\u5509\u9ed8\u7682\u5415\u9988\u916f\u90aa\u5b5d\u775b\u5c60\u7578\u5ce1\u7965\u8482\u62dc\u8749\u827e\u53f9\u6dd1\u70e4\u9a84\u7bee\u4f1e\u5c1d\u540f\u541e\u96f9\u52d8\u840e\u95f2\u4f73\u8019\u527f\u9cc3\u780d\u51af\u6bc5\u9a91\u915a\u54b3\u716e\u62ab\u4f69\u674f\u5077\u644a\u809a\u6614\u97e7\u5507\u5598\u5435\u8346\u5211\u62e6\u9541\u8e44\u74f7\u6fb3\u584c\u9965\u57ae\u6ecb\u949d\u918b\u634d\u8be1\u54e9\u5b8f\u77ac\u7f14\u5a46\u625b\u6377\u5239\u733f\u8471\u4e8f\u962e\u5e06\u7e82\u5580\u90b5\u4e11\u90c1\u8302\u7ce0\u4fde\u6cf3\u5938\u781a\u6296\u6e34\u806a\u62f1\u6ccc\u85fb\u9776\u8936\u626f\u85e4\u6084\u900a\u5c98\u59dc\u783e\u8206\u7626\u54b8\u7130\u69b4\u6d9b\u57a6\u5ab3\u5703\u80f3\u8086\u4ed1\u53e0\u6500\u83b2\u503a\u6c6a\u68cd\u98d8\u95f7\u86c4\u8517\u8d37\u4fca\u50b2\u54fa\u877c\u9881\u8822\u9ca4\u566a\u8180\u6c1b\u6d3c\u6805\u51e4\u6ea2\u708a\u6d66\u6a44\u9661\u80f0\u4ed9\u67d4\u5482\u5446\u59d0\u54ed\u61c8\u5179\u8d4b\u5cb3\u6954\u8715\u5d4c\u50f5\u6670\u6320\u7199\u5a5a\u7f20\u9b03\u4f63\u543e\u8f9e\u629a\u6691\u906e\u56a3\u8d74\u9492\u5ac1\u78fa\u819b\u8fa3\u8c28\u9119\u6869\u60e8\u6749\u79f8\u8747\u9798\u5306\u5a1f\u6643\u6d95\u840d\u949b\u7707\u8d81\u90ae\u86ee\u5ec9\u718f\u4fa6\u6d74\u4fef\u572d\u9887\u8d62\u638f\u5e1c\u679a\u916e\u74e3\u5b99\u8c23\u8e29\u594f\u7ad6\u978d\u66dd\u8036\u8304\u8c10\u8eba\u6984\u81fc\u54ce\u6284\u94c6\u6653\u8671\u77e2\u8247\u575e\u9785\u5c65\u6073\u5f25\u641c\u809b\u9038\u5589\u82d4\u8301\u6b20\u53ed\u6254\u7434\u82a6\u4ff1\u780c\u62e2\u7901\u832b\u7b79\u8fb1\u9773\u6795\u60e9\u9189\u6323\u5a76\u62e3\u5ac2\u835a\u818a\u94c2\u660f\u6ee8\u8a93\u5915\u626e\u663c\u8258\u9065\u6212\u9022\u82cd\u5308\u6148\u6101\u5524\u857e\u5e10\u63ba\u4e08\u761f\u9877\u88d5\u8a89\u7978\u575b\u5f6d\u6a58\u5339\u508d\u6de4\u70f7\u7ede\u8c6b\u5e9e\u5492\u829d\u8340\u5f13\u7f5a\u634f\u55e8\u695e\u4ed5\u563b\u6cab\u5d16\u7785\u5e18\u69a8\u5892\u6350\u6055\u87a8\u6c5b\u8bde\u8d4f\u743c\u8d29\u9e3f\u94ed\u5631\u9698\u9a70\u5a03\u778e\u9063\u8dcc\u632a\u8018\u60a6\u94b4\u9b42\u88f8\u859b\u9ca2\u8eb2\u9cd9\u60a0\u7898\u6ca5\u563f\u7076\u9976\u916c\u8273\u582a\u6df9\u6020\u7837\u5401\u6da4\u6170\u7f34\u7a9c\u7f94\u8d9f\u8116\u952d\u515c\u9b54\u6897\u7092\u7ebd\u5948\u787c\u9f0e\u60d1\u6817\u8c0e\u8881\u6ee5\u4ea8\u6d4a\u57c2\u5785\u531d\u8f72\u9042\u4e52\u8e2a\u4fd8\u6014\u9668\u566c\u60e7\u9896\u8305\u6454\u7cb3\u5783\u573e\u75ae\u5385\u9102\u8ba5\u96a7\u7741\u75f0\u9576\u54c0\u5288\u5cfb\u5c38\u62d0\u62f3\u7720\u8521\u814b\u54d1\u5951\u7fc1\u808b\u7827\u6346\u54df\u83ca\u7b28\u579b\u8c26\u7574\u819d\u94cd\u731c\u6bb7\u54bd\u5dfe\u8d4c\u9a9a\u632b\u94a6\u4e53\u75f9\u5632\u6e0d\u676d\u8549\u59bb\u58f6\u4ec6\u8038\u86d9\u5eca\u86db\u7fe0\u9e70\u55bb\u627c\u8574\u5bc7\u8165\u77aa\u7c7c\u5495\u732b\u51b5\u9e4f\u94ae\u640f\u6e85\u80eb\u841d\u81c0\u9cab\u7f9e\u7f55\u6bbf\u5fcc\u4ead\u76c5\u83c7\u65e8\u543b\u538c\u5bb0\u6c30\u5c4f\u6850\u989a\u4f50\u6816\u849c\u5353\u6b89\u6401\u714c\u6a59\u7a96\u7728\u58a9\u8e81\u6c9b\u7fd8\u8718\u9170\u77eb\u94b5\u54d7\u68ad\u6bc2\u55d3\u79bd\u58d5\u51f3\u7b50\u8026\u6f20\u5c41\u606d\u94a1\u9a74\u59da\u6016\u6ed4\u717d\u867e\u54fc\u5320\u7984\u7a1a\u8681\u7a83\u5490\u8335\u574a\u88e4\u52ff\u71ac\u72f1\u7184\u8350\u9570\u67d1\u5c6f\u919a\u803f\u9ad3\u620a\u8155\u6109\u8568\u7736\u714e\u76c8\u6168\u6655\u76fc\u52c9\u864f\u91c9\u76bf\u7600\u662d\u8748\u55fd\u8bbd\u79c3\u8c1a\u7554\u75bd\u5195\u5bb5\u7a8d\u5cea\u69d0\u764c\u6577\u5c82\u4fae\u643a\u8113\u537f\u4e38\u67dc\u78be\u5480\u70c3\u601c\u877d\u50bb\u6930\u902e\u730e\u5d0e\u6dc6\u5bfa\u607c\u80d6\u988a\u6c29\u76ef\u8d60\u7529\u576a\u6dd8\u8c2d\u838e\u96cf\u68fa\u8eaf\u71b9\u86a7\u61d2\u8e22\u7235\u8877\u4edf\u964b\u6495\u7f06\u667e\u72e1\u5e87\u84d6\u917f\u62d3\u7c07\u868c\u960e\u96c0\u9e7f\u5364\u8378\u8360\u6402\u7422\u733e\u82f7\u795b\u5d2d\u7855\u82de\u901e\u70ab\u5384\u711a\u94c0\u8235\u803d\u723d\u7a20\u8dd7\u90b1\u76cf\u5ed6\u97f5\u8c79\u9493\u5960\u6eb4\u67ab\u72ac\u7316\u9a6f\u4fa8\u707c\u7fdf\u64c2\u5600\u6c79\u78c5\u56bc\u72ee\u7239\u9e45\u8d24\u9885\u715e\u8424\u70d9\u86c0\u88f9\u9aa1\u75e2\u5df7\u5be1\u78a7\u7334\u680b\u55ef\u67ff\u7bf7\u5431\u53a9\u9cc4\u854a\u7538\u6f84\u95fa\u8367\u9ed4\u5acc\u745f\u73b2\u6487\u655e\u846b\u7877\u4e5e\u86ed\u961c\u77fe\u7792\u804a\u7405\u5080\u5121\u5543\u6f9c\u7ee5\u8c4c\u5220\u9f9a\u8854\u655b\u53a2\u5815\u6f6d\u8236\u7fd4\u8d54\u5937\u7a17\u5549\u50fb\u5830\u604b\u8418\u6252\u7784\u97f6\u7b0b\u86b4\u5a92\u6986\u5eca\u8845\u543c\u9539\u7766\u98a4\u523d\u556c\u6167\u7891\u5f5d\u7620\u796d\u4fa3\u8d5a\u8776\u90e1\u53e8\u5c94\u575f\u75a4\u87ac\u6094\u8b6c\u4e56\u5dcd\u75a1\u79b9\u9b41\u63b7\u68cb\u618e\u9631\u5760\u78b2\u535f\u54c4\u5f6c\u7ed1\u8151\u62bc\u63c9\u67b7\u83f1\u8e48\u6c70\u6e0e\u6127\u73e9\u8d2c\u886b\u5b85\u86f4\u592f\u542d\u70eb\u7078\u7aff\u9171\u5026\u9566\u5bee\u6233\u777e\u62f4\u5b5c\u8fc4\u79e4\u7b1b\u7f9f\u8731\u6a1f\u9c8d\u8815\u828d\u8beb\u6155\u8679\u53a6\u5f0a\u7ff0\u9523\u6caa\u901d\u8bc8\u52ab\u9502\u54a7\u51cb\u6be1\u84df\u6905\u6bef\u65a7\u7ef8\u77e3\u7941\u8944"; + cc._RF.pop(); + }, {} ] +}, {}, [ "char-mode", "chars" ]); +//# sourceMappingURL=index.js.map diff --git a/demo/web-desktop/assets/text-render/index.js.map b/demo/web-desktop/assets/text-render/index.js.map new file mode 100644 index 00000000..a3f941d1 --- /dev/null +++ b/demo/web-desktop/assets/text-render/index.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["assets/text-render/char-mode/char-mode.ts","assets/text-render/chars.ts"],"names":["chars_1","require","_a","cc","_decorator","ccclass","property","CharMode","_super","__extends","_this","apply","this","arguments","bitmapFont1","bitmapFont2","bitmapFont3","charFont1","charFont2","charFont3","prototype","onLoad","string","getRandomText","schedule","length","str","chars","Math","floor","random","__decorate","Label","Component","exports","default"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAA,IAAAA,UAAAC,QAAA;IAEM,IAAAC,KAAAC,GAAAC,YAAAC,UAAAH,GAAAG,SAAAC,WAAAJ,GAAAI;IAGN,IAAAC,WAAA,SAAAC;MAAsCC,UAAAF,UAAAC;MAAtC,SAAAD;QAAA,IAAAG,QAAA,SAAAF,UAAAA,OAAAG,MAAAC,MAAAC,cAAAD;QAGIF,MAAAI,cAAA;QAGAJ,MAAAK,cAAA;QAGAL,MAAAM,cAAA;QAGAN,MAAAO,YAAA;QAGAP,MAAAQ,YAAA;QAGAR,MAAAS,YAAA;;;MAGUZ,SAAAa,UAAAC,SAAA;QAAV,IAAAX,QAAAE;QACIA,KAAAE,YAAAQ,SAAAV,KAAAW,cAAA;QACAX,KAAAG,YAAAO,SAAAV,KAAAW,cAAA;QACAX,KAAAI,YAAAM,SAAAV,KAAAW,cAAA;QACAX,KAAAK,UAAAK,SAAAV,KAAAW,cAAA;QACAX,KAAAM,UAAAI,SAAAV,KAAAW,cAAA;QACAX,KAAAO,UAAAG,SAAAV,KAAAW,cAAA;QAEAX,KAAAY,SAAA;UACId,MAAAI,YAAAQ,SAAAZ,MAAAa,cAAA;UACAb,MAAAK,YAAAO,SAAAZ,MAAAa,cAAA;UACAb,MAAAM,YAAAM,SAAAZ,MAAAa,cAAA;UACAb,MAAAO,UAAAK,SAAAZ,MAAAa,cAAA;UACAb,MAAAQ,UAAAI,SAAAZ,MAAAa,cAAA;UACAb,MAAAS,UAAAG,SAAAZ,MAAAa,cAAA;WACJ;;MAIJhB,SAAAa,UAAAG,gBAAA,SAAAE;QACI,IAAAC,MAAA;QACA,OAAAA,IAAAD,SAAAA,QACIC,OAAA1B,QAAA2B,MAAAC,KAAAC,MAAAD,KAAAE,WAAA9B,QAAA2B,MAAAF;QAEJ,OAAAC;;MA1CJK,WAAA,EADCzB,SAAAH,GAAA6B,UAC4BzB,SAAAa,WAAA,oBAAA;MAG7BW,WAAA,EADCzB,SAAAH,GAAA6B,UAC4BzB,SAAAa,WAAA,oBAAA;MAG7BW,WAAA,EADCzB,SAAAH,GAAA6B,UAC4BzB,SAAAa,WAAA,oBAAA;MAG7BW,WAAA,EADCzB,SAAAH,GAAA6B,UAC0BzB,SAAAa,WAAA,kBAAA;MAG3BW,WAAA,EADCzB,SAAAH,GAAA6B,UAC0BzB,SAAAa,WAAA,kBAAA;MAG3BW,WAAA,EADCzB,SAAAH,GAAA6B,UAC0BzB,SAAAa,WAAA,kBAAA;MAlBVb,WAAAwB,WAAA,EADpB1B,WACoBE;MAgDrB,OAAAA;KAhDA,CAAAJ,GAAA8B;IAAqBC,QAAAC,UAAA5B;;;;;;;;;;;;;ICLR2B,QAAAP,QAAA","sourcesContent":["import { chars } from \"../chars\";\n\nconst { ccclass, property } = cc._decorator;\n\n@ccclass\nexport default class CharMode extends cc.Component {\n\n @property(cc.Label)\n bitmapFont1: cc.Label = null;\n\n @property(cc.Label)\n bitmapFont2: cc.Label = null;\n\n @property(cc.Label)\n bitmapFont3: cc.Label = null;\n\n @property(cc.Label)\n charFont1: cc.Label = null;\n\n @property(cc.Label)\n charFont2: cc.Label = null;\n\n @property(cc.Label)\n charFont3: cc.Label = null;\n\n\n protected onLoad(): void {\n this.bitmapFont1.string = this.getRandomText(15);\n this.bitmapFont2.string = this.getRandomText(15);\n this.bitmapFont3.string = this.getRandomText(15);\n this.charFont1.string = this.getRandomText(15);\n this.charFont2.string = this.getRandomText(15);\n this.charFont3.string = this.getRandomText(15);\n\n this.schedule(() => {\n this.bitmapFont1.string = this.getRandomText(15);\n this.bitmapFont2.string = this.getRandomText(15);\n this.bitmapFont3.string = this.getRandomText(15);\n this.charFont1.string = this.getRandomText(15);\n this.charFont2.string = this.getRandomText(15);\n this.charFont3.string = this.getRandomText(15);\n }, 0.1);\n }\n\n\n getRandomText(length: number) {\n let str = '';\n while (str.length < length) {\n str += chars[Math.floor(Math.random() * chars.length)];\n }\n return str;\n }\n\n}\n","export const chars = `的一是在了不和有大这主中人上为们地个用工时要动国产以我到他会作来分生对于学下级就年阶义发成部民可出能方进同行面说种过命度革而多子后自社加小机也经力线本电高量长党得实家定深法表着水理化争现所二起政三好十战无农使性前等反体合斗路图把结第里正新开论之物从当两些还天资事队批如应形想制心样干都向变关点育重其思与间内去因件日利相由压员气业代全组数果期导平各基或月毛然问比展那它最及外没看治提五解系林者米群头意只明四道马认次文通但条较克又公孔领军流入接席位情运器并飞原油放立题质指建区验活众很教决特此常石强极土少已根共直团统式转别造切九你取西持总料连任志观调七么山程百报更见必真保热委手改管处己将修支识病象几先老光专什六型具示复安带每东增则完风回南广劳轮科北打积车计给节做务被整联步类集号列温装即毫知轴研单色坚据速防史拉世设达尔场织历花受求传口断况采精金界品判参层止边清至万确究书术状厂须离再目海交权且儿青才证低越际八试规斯近注办布门铁需走议县兵固除般引齿千胜细影济白格效置推空配刀叶率述今选养德话查差半敌始片施响收华觉备名红续均药标记难存测士身紧液派准斤角降维板许破述技消底床田势端感往神便贺村构照容非搞亚磨族火段算适讲按值美态黄易彪服早班麦削信排台声该击素张密害侯草何树肥继右属市严径螺检左页抗苏显苦英快称坏移约巴材省黑武培著河帝仅针怎植京助升王眼她抓含苗副杂普谈围食射源例致酸旧却充足短划剂宣环落首尺波承粉践府鱼随考刻靠够满夫失包住促枝局菌杆周护岩师举曲春元超负砂封换太模贫减阳扬江析亩木言球朝医校古呢稻宋听唯输滑站另卫字鼓刚写刘微略范供阿块某功套友限项余倒卷创律雨让骨远帮初皮播优占死毒圈伟季训控激找叫云互跟裂粮粒母练塞钢顶策双留误础吸阻故寸盾晚丝女散焊功株亲院冷彻弹错散商视艺灭版烈零室轻血倍缺厘泵察绝富城冲喷壤简否柱李望盘磁雄似困巩益洲脱投送奴侧润盖挥距触星松送获兴独官混纪依未突架宽冬章湿偏纹吃执阀矿寨责熟稳夺硬价努翻奇甲预职评读背协损棉侵灰虽矛厚罗泥辟告卵箱掌氧恩爱停曾溶营终纲孟钱待尽俄缩沙退陈讨奋械载胞幼哪剥迫旋征槽倒握担仍呀鲜吧卡粗介钻逐弱脚怕盐末阴丰编印蜂急拿扩伤飞露核缘游振操央伍域甚迅辉异序免纸夜乡久隶缸夹念兰映沟乙吗儒杀汽磷艰晶插埃燃欢铁补咱芽永瓦倾阵碳演威附牙芽永瓦斜灌欧献顺猪洋腐请透司危括脉宜笑若尾束壮暴企菜穗楚汉愈绿拖牛份染既秋遍锻玉夏疗尖殖井费州访吹荣铜沿替滚客召旱悟刺脑措贯藏敢令隙炉壳硫煤迎铸粘探临薄旬善福纵择礼愿伏残雷延烟句纯渐耕跑泽慢栽鲁赤繁境潮横掉锥希池败船假亮谓托伙哲怀割摆贡呈劲财仪沉炼麻罪祖息车穿货销齐鼠抽画饲龙库守筑房歌寒喜哥洗蚀废纳腹乎录镜妇恶脂庄擦险赞钟摇典柄辩竹谷卖乱虚桥奥伯赶垂途额壁网截野遗静谋弄挂课镇妄盛耐援扎虑键归符庆聚绕摩忙舞遇索顾胶羊湖钉仁音迹碎伸灯避泛亡答勇频皇柳哈揭甘诺概宪浓岛袭谁洪谢炮浇斑讯懂灵蛋闭孩释乳巨徒私银伊景坦累匀霉杜乐勒隔弯绩招绍胡呼痛峰零柴簧午跳居尚丁秦稍追梁折耗碱殊岗挖氏刃剧堆赫荷胸衡勤膜篇登驻案刊秧缓凸役剪川雪链渔啦脸户洛孢勃盟买杨宗焦赛旗滤硅炭股坐蒸凝竟陷枪黎救冒暗洞犯筒您宋弧爆谬涂味津臂障褐陆啊健尊豆拔莫抵桑坡缝警挑污冰柬嘴啥饭塑寄赵喊垫康遵牧遭幅园腔订香肉弟屋敏恢忘衣孙龄岭骗休借丹渡耳刨虎笔稀昆浪萨茶滴浅拥穴覆伦娘吨浸袖珠雌妈紫戏塔锤震岁貌洁剖牢锋疑霸闪埔猛诉刷狠忽灾闹乔唐漏闻沈熔氯荒茎男凡抢像浆旁玻亦忠唱蒙予纷捕锁尤乘乌智淡允叛畜俘摸锈扫毕璃宝芯爷鉴秘净蒋钙肩腾枯抛轨堂拌爸循诱祝励肯酒绳穷塘燥泡袋朗喂铝软渠颗惯贸粪综墙趋彼届墨碍启逆卸航雾冠丙街莱贝辐肠付吉渗瑞惊顿挤秒悬姆烂森糖圣凹陶词迟蚕亿矩脊歼羽掩汗碰谱童庭蓬贴岸店怪馆挡肢胆君乏傅凌恰吴鸡盆氮铃荡汇狂偶辽宴珊描监涉伏弃仔坯症睛窝跃串瑚饱巢辑迷诗肃谊胎宾顽钠辛阔牲估禁屑秀催炸搬坑暂埋墓腰隆堡迈慌钾魏踏旺蜜兼扭肺兄撒矮拆叉贮抬痕彩冻丛漆详拨瓜奔腿暖脾棒湾旅潜摄朱纤览融拍愚添抱蓄稿翅蛾锐栓签牌瞧疏舍糊驱泉毁伪锯卢函掘扰淬册棱爬豪螟标授朋俗骂仓脏昌邦欺博伐衰寻杠蜗尿幕絮蘖辨孵垄粹填丘歪鬼挺帅斥摘父狗罢炎疆肝酶恨曼蹲币返颠剩港颜酵梯楼绪淮邻御杰恒弗溉淀苯跨肿抑诸凉胚舒胀氢搭醒逃曰竞疾韩尘寿孤督涡甜拒梅乔锡睡昂烯拧扑郊患购蝗锅蔑赖瓶租怒巧膏涌狭醇惕档燕泰胁盘竭违丽氨框舌膨骤蓝幸诚吓秩扶芬咬牵忍椎愤迁仇滩仿绘辈拚喝驳畦番扑葡款敲邀郭妥隐s轰籽忆旦犹庸崇庙秆闸厉臣窗纺掠涝涨递葬阅堵扁钳棚鳞伴珍敦椭沃欲鼻宇甫锌皆铲砖贼渣济筛斋梦贪哇萄铺桃蟹挝糙颈雅晒韦耻沸雇储畏霍菲徐榜囊腺茨陕抹屈宿硝昨蔬郝铬茧窄哨辆耀仲薯僚浙饰朴恐腊兽蜡惠犁嘛售鳍敬坝烘颂叔卧纠络玩栏剑苹闯丢柏牺奎嚷宫肾笼郑叙奶芒霞朽妹茬码掀阁卑铰铵弦肤拟署淋梨迪俩撑呵申穆杯姑劝崩劣贺棕裁吐嫩凭曹摧疫鸟镍眉梁禾臭冈陵歧幻丧迭脆怨董镀酷罐逻橡浩撤驶享锦俺佛兔姿铅堤址溃胺皱晨胃氟灿漫泄枢戴孕扣沼逼肌碗巡吊盗蚜钩汤梢挨翼疯鞭扇冶烦悉蔓泼桌柯罩啮勾舰晋扳谴侯倡诊鸣桂奖贾朵霜萌滞蛹阐偿译稼捞棵戈诬撮洒萧奸饮涅衬镗纱瘤葛饼凶饵沾馏钼鞋姓汞枣溜疼凑醛颌肖篡邓撞搅铡卜歇妨挽审凯轧垒箭炕浑龟账趣俭泪泊乃捉窑驾汁凿饿帽湘郎欣慎芳肪蔽绵畅盲缚焕惜仰衍廷玄泻蒲捣妙帕蛇锰棘溪匪绒潘疲纬鸭坎盒拼荫兆熊悲捧锄奉陪玛微钨籍蚊漂糟嘉狼桶拾唉默皂吕馈酯邪孝睛屠畸峡祥蒂拜蝉艾叹淑烤骄篮伞尝吏吞雹勘萎闲佳耙剿鳃砍冯毅骑酚咳煮披佩杏偷摊肚昔韧唇喘吵荆刑拦镁蹄瓷澳塌饥垮滋钝醋捍诡哩宏瞬缔婆扛捷刹猿葱亏阮帆纂喀邵丑郁茂糠俞泳夸砚抖渴聪拱泌藻靶褶扯藤悄逊岘姜砾舆瘦咸焰榴涛垦媳圃胳肆仑叠攀莲债汪棍飘闷蛄蔗贷俊傲哺蝼颁蠢鲤噪膀氛洼栅凤溢炊浦橄陡胰仙柔咂呆姐哭懈兹赋岳楔蜕嵌僵晰挠熙婚缠鬃佣吾辞抚暑遮嚣赴钒嫁磺膛辣谨鄙桩惨杉秸蝇鞘匆娟晃涕萍钛眇趁邮蛮廉熏侦浴俯圭颇赢掏帜枚酮瓣宙谣踩奏竖鞍曝耶茄谐躺榄臼哎抄铆晓虱矢艇坞鞅履恳弥搜肛逸喉苔茁欠叭扔琴芦俱砌拢礁茫筹辱靳枕惩醉挣婶拣嫂荚膊铂昏滨誓夕扮昼艘遥戒逢苍匈慈愁唤蕾帐掺丈瘟顷裕誉祸坛彭橘匹傍淤烷绞豫庞咒芝荀弓罚捏嗨楞仕嘻沫崖瞅帘榨墒捐恕螨汛诞赏琼贩鸿铭嘱隘驰娃瞎遣跌挪耘悦钴魂裸薛鲢躲鳙悠碘沥嘿灶饶酬艳堪淹怠砷吁涤慰缴窜羔趟脖锭兜魔梗炒纽奈硼鼎惑栗谎袁滥亨浊埂垅匝轲遂乒踪俘怔陨噬惧颖茅摔粳垃圾疮厅鄂讥隧睁痰镶哀劈峻尸拐拳眠蔡腋哑契翁肋砧捆哟菊笨垛谦畴膝铍猜殷咽巾赌骚挫钦乓痹嘲渍杭蕉妻壶仆耸蛙廊蛛翠鹰喻扼蕴寇腥瞪籼咕猫况鹏钮搏溅胫萝臀鲫羞罕殿忌亭盅菇旨吻厌宰氰屏桐颚佐栖蒜卓殉搁煌橙窖眨墩躁沛翘蜘酰矫钵哗梭毂嗓禽壕凳筐耦漠屁恭钡驴姚怖滔煽虾哼匠禄稚蚁窃咐茵坊裤勿熬狱熄荐镰柑屯醚耿髓戊腕愉蕨眶煎盈慨晕盼勉虏釉皿瘀昭蝈嗽讽秃谚畔疽冕宵窍峪槐癌敷岂侮携脓卿丸柜碾咀烃怜蝽傻椰逮猎崎淆寺恼胖颊氩盯赠甩坪淘谭莎雏棺躯熹蚧懒踢爵衷仟陋撕缆晾狡庇蓖酿拓簇蚌阎雀鹿卤荸荠搂琢猾苷祛崭硕苞逞炫厄焚铀舵耽爽稠跗邱盏廖韵豹钓奠溴枫犬猖驯侨灼翟擂嘀汹磅嚼狮爹鹅贤颅煞萤烙蛀裹骡痢巷寡碧猴栋嗯柿篷吱厩鳄蕊甸澄闺荧黔嫌瑟玲撇敞葫硷乞蛭阜矾瞒聊琅傀儡啃澜绥豌删龚衔敛厢堕潭舶翔赔夷稗啉僻堰恋萘扒瞄韶笋蚴媒榆廊衅吼锹睦颤刽啬慧碑彝瘠祭侣赚蝶郡叨岔坟疤螬悔譬乖巍疡禹魁掷棋憎阱坠碲卟哄彬绑腑押揉枷菱蹈汰渎愧珩贬衫宅蛴夯吭烫灸竿酱倦镦寮戳睾拴孜迄秤笛羟蜱樟鲍蠕芍诫慕虹厦弊翰锣沪逝诈劫锂咧凋毡蓟椅毯斧绸矣祁襄`;\n"],"file":"index.js"} \ No newline at end of file diff --git a/demo/web-desktop/cocos2d-js.931db.js b/demo/web-desktop/cocos2d-js.931db.js new file mode 100644 index 00000000..9f55adc6 --- /dev/null +++ b/demo/web-desktop/cocos2d-js.931db.js @@ -0,0 +1,55118 @@ +(function outer(modules, cache, entry) { + function newRequire(name, jumped) { + var module = cache[name]; + if (!module) { + var moduleData = modules[name]; + if (!moduleData) return; + var exports = {}; + module = cache[name] = { + exports: exports + }; + moduleData[0]((function(x) { + return newRequire(moduleData[1][x] || x); + }), module, exports); + } + return module.exports; + } + for (var i = 0; i < entry.length; i++) newRequire(entry[i]); + return newRequire; +})({ + 1: [ (function(require, module, exports) { + module.exports = { + 1001: "cocos2d: removeAction: Target not found", + 1002: "cc.ActionManager.removeActionByTag(): an invalid tag", + 1003: "cc.ActionManager.removeActionByTag(): target must be non-null", + 1004: "cc.ActionManager.getActionByTag(): an invalid tag", + 1005: "cocos2d : getActionByTag(tag = %s): Action not found", + 1006: "[Action step]. override me", + 1007: "[Action update]. override me", + 1008: "cocos2d: FiniteTimeAction#reverse: Implement me", + 1009: "cc.EaseElastic.reverse(): it should be overridden in subclass.", + 1010: "cc.IntervalAction: reverse not implemented.", + 1011: "cc.ActionInterval.setAmplitudeRate(): it should be overridden in subclass.", + 1012: "cc.ActionInterval.getAmplitudeRate(): it should be overridden in subclass.", + 1013: "The speed parameter error", + 1014: "The repeat parameter error", + 1015: "parameters should not be ending with null in Javascript", + 1016: "cc.RotateTo.reverse(): it should be overridden in subclass.", + 1019: "Failed to construct, Sequence construction needs two or more actions.", + 1020: "Failed to construct, Spawn construction needs two or more actions.", + 1021: "cc.Speed.initWithAction(): action must be non nil", + 1022: "cc.Follow.initWithAction(): followedNode must be non nil", + 1023: "cc.ActionEase.initWithAction(): action must be non nil", + 1024: "Invalid configuration. It must at least have one control point", + 1025: "cc.Sequence.initWithTwoActions(): arguments must all be non nil", + 1026: "cc.RepeatForever.initWithAction(): action must be non null", + 1027: "cc.Spawn.initWithTwoActions(): arguments must all be non null", + 1028: "cc.ReverseTime.initWithAction(): action must be non null", + 1029: "cc.ReverseTime.initWithAction(): the action was already passed in.", + 1030: "cc.Animate.initWithAnimation(): animation must be non-NULL", + 1031: "Illegal parameter get passed in cc.tween: %s.", + 1100: "Expected 'data' dict, but not found. Config file: %s", + 1101: "Please load the resource first : %s", + 1200: "cocos2d: Director: Error in gettimeofday", + 1201: "cocos2d: Director: unrecognized projection", + 1203: "cocos2d: Director: Error in gettimeofday", + 1204: "running scene should not null", + 1205: "the scene should not null", + 1206: "loadScene: The scene index to load (%s) is out of range.", + 1207: "loadScene: Unknown name type to load: '%s'", + 1208: "loadScene: Failed to load scene '%s' because '%s' is already being loaded.", + 1209: "loadScene: Can not load the scene '%s' because it was not in the build settings before playing.", + 1210: "Failed to preload '%s', %s", + 1211: "loadScene: The scene index to load (%s) is out of range.", + 1212: "loadScene: Unknown name type to load: '%s'", + 1213: "loadScene: Failed to load scene '%s' because '%s' is already loading", + 1214: "loadScene: Can not load the scene '%s' because it was not in the build settings before playing.", + 1215: "Failed to preload '%s', %s", + 1216: "Director.runSceneImmediate: scene is not valid", + 1300: "element type is wrong!", + 1400: "'%s' is deprecated, please use '%s' instead.", + 1404: "cc.spriteFrameCache is removed, please use cc.loader to load and cache sprite frames of atlas format.", + 1405: "The '%s' has been removed, please use '%s' instead.", + 1406: "'%s.%s' is removed", + 1408: "'%s' is not support in the '%s', please use '%s' instead.", + 1502: "cc.scheduler.scheduleCallbackForTarget(): target should be non-null.", + 1503: "cc.Scheduler.pauseTarget():target should be non-null", + 1504: "cc.Scheduler.resumeTarget():target should be non-null", + 1505: "cc.Scheduler.isTargetPaused():target should be non-null", + 1506: "warning: you CANNOT change update priority in scheduled function", + 1507: 'CCScheduler#scheduleSelector. Selector already scheduled. Updating interval from: %s to %s"', + 1508: "Argument callback must not be empty", + 1509: "Argument target must be non-nullptr", + 1510: "cc.Scheduler: Illegal target which doesn't have uuid or instanceId.", + 1511: "cc.Scheduler: pause state of the scheduled task doesn't match the element pause state in Scheduler, the given paused state will be ignored.", + 1513: "cc.Scheduler: scheduler stopped using `__instanceId` as id since v2.0, you should do scheduler.enableForTarget(target) before all scheduler API usage on target", + 1605: "child already added. It can't be added again", + 1606: "child must be non-null", + 1610: "cocos2d: removeChildByTag(tag = %s): child not found!", + 1612: "cc.Node.stopActionBy(): argument tag an invalid tag", + 1613: "cc.Node.getActionByTag(): argument tag is an invalid tag", + 1617: "child must be non-null", + 1618: "cc.Node.runAction(): action must be non-null", + 1619: "callback function must be non-null", + 1620: "interval must be positive", + 1623: "Set '%s' to normal node (not persist root node).", + 1624: "Replacing with the same sgNode", + 1625: "The replacement sgNode should not contain any child.", + 1626: "Should not set alpha via 'color', set 'opacity' please.", + 1627: "Not support for asynchronous creating node in SG", + 1632: "Node name can not include '/'.", + 1633: "Internal error, should not remove unknown node from parent.", + 1634: "addChild: The child to add must be instance of cc.Node, not %s.", + 1635: "reorderChild: this child is not in children list.", + 1636: "Node's zIndex value can't be greater than cc.macro.MAX_ZINDEX, setting to the maximum value", + 1637: "Node's zIndex value can't be smaller than cc.macro.MIN_ZINDEX, setting to the minimum value", + 1638: "Private node's zIndex can't be set, it will keep cc.macro.MIN_ZINDEX as its value", + 1639: "cc.Action is deprecated, please use cc.Tween instead", + 1800: "cc._EventListenerKeyboard.checkAvailable(): Invalid EventListenerKeyboard!", + 1801: "cc._EventListenerTouchOneByOne.checkAvailable(): Invalid EventListenerTouchOneByOne!", + 1802: "cc._EventListenerTouchAllAtOnce.checkAvailable(): Invalid EventListenerTouchAllAtOnce!", + 1803: "cc._EventListenerAcceleration.checkAvailable(): _onAccelerationEvent must be non-nil", + 1900: "Invalid parameter.", + 2e3: "Don't call this method if the event is for touch.", + 2200: "Design resolution not valid", + 2201: "should set resolutionPolicy", + 2300: "The touches is more than MAX_TOUCHES, nUnusedIndex = %s", + 2400: "WebGL error %s", + 2602: "cc.Sprite.setDisplayFrameWithAnimationName(): Frame not found", + 2603: "cc.Sprite.setDisplayFrameWithAnimationName(): Invalid frame index", + 2606: "cc.Sprite.initWithSpriteFrame(): spriteFrame should be non-null", + 2607: "cc.Sprite.initWithSpriteFrameName(): spriteFrameName should be non-null", + 2608: "%s is null, please check.", + 2609: "cc.Sprite.initWithFile(): filename should be non-null", + 2610: "cc.Sprite.setDisplayFrameWithAnimationName(): animationName must be non-null", + 2614: "cc.Sprite.addChild(): child should be non-null", + 2616: "cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children", + 2617: "cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children", + 2618: "cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children", + 2619: "cc.SpriteBatchNode.addChild(): cc.Sprite is not using the same texture", + 2623: "cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null", + 2625: "too many tiles, only 16384 tiles will be show", + 2626: "Unrecognized fill type in bar fill", + 2627: "Can not generate quad", + 2628: "%s does not exist", + 2712: "Invalid spriteFrameName", + 3005: "cocos2d: '%s' id=%s %s x %s", + 3006: "cocos2d: '%s' id= HTMLCanvasElement %s x %s", + 3007: "cocos2d: TextureCache dumpDebugInfo: %s textures, HTMLCanvasElement for %s KB (%s MB)", + 3103: "cc.Texture.addImage(): path should be non-null", + 3112: "cc.Texture.addImage(): path should be non-null", + 3113: "NSInternalInconsistencyException", + 3116: "WebGLRenderingContext.CLAMP_TO_EDGE should be used in NPOT textures", + 3117: "Mimpap texture only works in POT textures", + 3119: "Lazy init texture with image element failed due to image loading failure: %s", + 3120: "Loading texture with unsupported type: '%s'. Add '%s' into 'cc.macro.SUPPORT_TEXTURE_FORMATS' please.", + 3121: "Can't find a texture format supported by the current platform! Please add a fallback format in the editor.", + 3300: "Rect width exceeds maximum margin: %s", + 3400: "Rect height exceeds maximum margin: %s", + 3401: "Set texture with a url of image is not supported anymore. Please use cc.assetManager.loadRemote to load a texture first.", + 3500: "0 priority is forbidden for fixed priority since it's used for scene graph based priority.", + 3501: "Invalid listener type!", + 3502: "Can't set fixed priority with scene graph based listener.", + 3503: "Invalid parameters.", + 3504: "listener must be a cc.EventListener object when adding a fixed priority listener", + 3505: "The listener has been registered, please don't register it again.", + 3506: "Unsupported listener target.", + 3507: "Invalid scene graph priority!", + 3508: "If program goes here, there should be event in dispatch.", + 3509: "_inDispatch should be 1 here.", + 3510: "%s's scene graph node not contains in the parent's children", + 3511: "event is undefined", + 3600: "cc.Class will automatically call super constructor of %s, you should not call it manually.", + 3601: "The editor property 'playOnFocus' should be used with 'executeInEditMode' in class '%s'", + 3602: "Unknown editor property '%s' in class '%s'.", + 3603: "Use 'cc.Float' or 'cc.Integer' instead of 'cc.Number' please.", + 3604: "Can only indicate one type attribute for %s.", + 3605: "The default value of %s is not instance of %s.", + 3606: "No needs to indicate the '%s' attribute for %s, which its default value is type of %s.", + 3607: "The default value of %s must be an empty string.", + 3608: "The type of %s must be cc.String, not String.", + 3609: "The type of %s must be cc.Boolean, not Boolean.", + 3610: "The type of %s must be cc.Float or cc.Integer, not Number.", + 3611: "Can not indicate the '%s' attribute for %s, which its default value is type of %s.", + 3612: "%s Just set the default value to 'new %s()' and it will be handled properly.", + 3613: "'No need to use 'serializable: false' or 'editorOnly: true' for the getter of '%s.%s', every getter is actually non-serialized.", + 3614: "Should not define constructor for cc.Component %s.", + 3615: "Each script can have at most one Component.", + 3616: "Should not specify class name %s for Component which defines in project.", + 3617: "Can not instantiate CCClass '%s' with arguments.", + 3618: "ctor of '%s' can not be another CCClass", + 3619: "ctor of '%s' must be function type", + 3620: "this._super declared in '%s.%s' but no super method defined", + 3621: "Unknown type of %s.%s, maybe you want is '%s'.", + 3622: "Unknown type of %s.%s, property should be defined in 'properties' or 'ctor'", + 3623: "Can not use 'editor' attribute, '%s' not inherits from Components.", + 3624: "'%s' overrided '%s' but '%s' is defined as 'false' so the super method will not be called. You can set '%s' to null to disable this warning.", + 3625: "[isChildClassOf] superclass should be function type, not", + 3626: "Can't remove '%s' because '%s' depends on it.", + 3627: "Should not add renderer component (%s) to a Canvas node.", + 3628: "Should not add %s to a node which size is already used by its other component.", + 3633: "Properties function of '%s' should return an object!", + 3634: "Disallow to use '.' in property name", + 3635: "Default array must be empty, set default value of %s.%s to [], and initialize in 'onLoad' or 'ctor' please. (just like 'this.%s = [...];')", + 3636: "Do not set default value to non-empty object, unless the object defines its own 'clone' function. Set default value of %s.%s to null or {}, and initialize in 'onLoad' or 'ctor' please. (just like 'this.%s = {foo: bar};')", + 3637: "Can not declare %s.%s, it is already defined in the prototype of %s", + 3638: "'%s': the getter of '%s' is already defined!", + 3639: "Can not apply the specified attribute to the getter of '%s.%s', attribute index: %s", + 3640: "'%s': the setter of '%s' is already defined!", + 3641: "Can not construct %s because it contains object property.", + 3642: "Cannot define %s.%s because static member name can not be '%s'.", + 3643: "Can not define a member called 'constructor' in the class '%s', please use 'ctor' instead.", + 3644: "Please define 'type' parameter of %s.%s as the actual constructor.", + 3645: "Please define 'type' parameter of %s.%s as the constructor of %s.", + 3646: "Unknown 'type' parameter of %s.%s\uff1a%s", + 3647: "The length of range array must be equal or greater than 2", + 3648: "Can not declare %s.%s method, it is already defined in the properties of %s.", + 3649: "CCClass %s have conflict between its ctor and __ctor__.", + 3651: 'Can not call `_super` or `prototype.ctor` in ES6 Classes "%s", use `super` instead please.', + 3652: "Failed to `new %s()` under the hood, %s\nIt is used for getting default values declared in TypeScript in the first place.\nPlease ensure the constructor can be called during the script's initialization.", + 3653: 'Please do not specifiy "default" attribute in decorator of "%s" property in "%s" class. \nDefault value must be initialized at their declaration:\n \n// Before:\n@property({\n type: cc.SpriteFrame\n default: null // <--\n})\nmyProp;\n// After:\n@property({\n type: cc.SpriteFrame\n})\nmyProp = null; // <--', + 3654: 'Please specifiy a default value for "%s.%s" at its declaration:\n \n// Before:\n@property(...)\nmyProp;\n// After:\n@property(...)\nmyProp = 0;', + 3655: 'Can not specifiy "get" or "set" attribute in decorator for "%s" property in "%s" class. \nPlease use:\n \n@property(...)\nget %s () {\n ...\n}\n@property\nset %s (value) {\n ...\n}', + 3700: "internal error: _prefab is undefined", + 3701: "Failed to load prefab asset for node '%s'", + 3800: "The target can not be made persist because it's not a cc.Node or it doesn't have _id property.", + 3801: "The node can not be made persist because it's not under root node.", + 3802: "The node can not be made persist because it's not in current scene.", + 3803: "The target can not be made persist because it's not a cc.Node or it doesn't have _id property.", + 3804: "getComponent: Type must be non-nil", + 3805: "Can't add component '%s' because %s already contains the same component.", + 3806: "Can't add component '%s' to %s because it conflicts with the existing '%s' derived component.", + 3807: "addComponent: Failed to get class '%s'", + 3808: "addComponent: Should not add component ('%s') when the scripts are still loading.", + 3809: "addComponent: The component to add must be a constructor", + 3810: "addComponent: The component to add must be child class of cc.Component", + 3811: "_addComponentAt: The component to add must be a constructor", + 3812: "_addComponentAt: Index out of range", + 3813: "removeComponent: Component must be non-nil", + 3814: "Argument must be non-nil", + 3815: "Component not owned by this entity", + 3816: "Node '%s' is already activating", + 3817: "Sorry, the component of '%s' which with an index of %s is corrupted! It has been removed.", + 3818: "Failed to read or parse project.json", + 3819: "Warning: target element is not a DIV or CANVAS", + 3820: "The renderer doesn't support the renderMode %s", + 3821: "Cannot change hierarchy while activating or deactivating the parent.", + 3900: "Invalid clip to add", + 3901: "Invalid clip to remove", + 3902: "clip is defaultClip, set force to true to force remove clip and animation state", + 3903: "animation state is playing, set force to true to force stop and remove clip and animation state", + 3904: "motion path of target [%s] in prop [%s] frame [%s] is not valid", + 3905: "sprite frames must be an Array.", + 3906: "Can't find easing type [%s]", + 3907: "animator not added or already removed", + 3912: "already-playing", + 4003: "Label font size can't be shirnked less than 0!", + 4004: "force notify all fonts loaded!", + 4011: "Property spriteFrame of Font '%s' is invalid. Using system font instead.", + 4012: "The texture of Font '%s' must be already loaded on JSB. Using system font instead.", + 4013: "Sorry, lineHeight of system font not supported on JSB.", + 4200: "MaskType: IMAGE_STENCIL only support WebGL mode.", + 4201: "The alphaThreshold invalid in Canvas Mode.", + 4202: "The inverted invalid in Canvas Mode.", + 4300: "can not found the %s page.", + 4400: "Invalid RichText img tag! The sprite frame name can't be found in the ImageAtlas!", + 4600: "Script attached to '%s' is missing or invalid.", + 4700: "The dom control is not created!", + 4800: "unknown asset type", + 4901: "loadRes: should not specify the extname in %s %s", + 4902: "No need to release non-cached asset.", + 4914: "Resources url '%s' does not exist.", + 4915: "Pack indices and data do not match in size", + 4916: "Failed to download package for %s", + 4921: "Invalid pipe or invalid index provided!", + 4922: "The pipe to be inserted is already in the pipeline!", + 4923: "Uuid Loader: Parse asset [ %s ] failed : %s", + 4924: "JSON Loader: Input item doesn't contain string content", + 4925: "Uuid Loader: Deserialize asset [ %s ] failed : %s", + 4926: "Audio Downloader: no web audio context.", + 4927: "Audio Downloader: audio not supported on this browser!", + 4928: "Load %s failed!", + 4929: "Load Webp ( %s ) failed", + 4930: "Load image ( %s ) failed", + 4932: 'Since v1.10, for any atlas ("%s") in the "resources" directory, it is not possible to find the contained SpriteFrames via `loadRes`, `getRes` or `releaseRes`. Load the SpriteAtlas first and then use `spriteAtlas.getSpriteFrame(name)` instead please.', + 4933: "Download Font [ %s ] failed, using Arial or system default font instead", + 5e3: "object already destroyed", + 5001: "object not yet destroyed", + 5100: "Not a plist file!", + 5200: "Warning: localStorage isn't enabled. Please confirm browser cookie or privacy option", + 5201: "browser don't support web audio", + 5202: "This feature supports WebGL render mode only.", + 5300: "Type of target to deserialize not matched with data: target is %s, data is %s", + 5301: "Can not find script '%s'", + 5302: "Can not find class '%s'", + 5303: "Failed to deserialize %s, missing _deserialize function.", + 5304: "Unable to deserialize version %s data.", + 5402: "cc.js.addon called on non-object:", + 5403: "cc.js.mixin: arguments must be type object:", + 5404: "The base class to extend from must be non-nil", + 5405: "The class to extend must be non-nil", + 5406: "Class should be extended before assigning any prototype members.", + 5500: "'notify' can not be used in 'get/set' !", + 5501: "'notify' must be used with 'default' !", + 5507: "The 'default' attribute of '%s.%s' must be an array", + 5508: "Invalid type of %s.%s", + 5510: "The 'type' attribute of '%s.%s' can not be 'Number', use cc.Float or cc.Integer instead please.", + 5511: "The 'type' attribute of '%s.%s' is undefined when loading script", + 5512: "Can not serialize '%s.%s' because the specified type is anonymous, please provide a class name or set the 'serializable' attribute of '%s.%s' to 'false'.", + 5513: "The 'default' value of '%s.%s' should not be used with a 'get' function.", + 5514: "The 'default' value of '%s.%s' should not be used with a 'set' function.", + 5515: "The 'default' value of '%s.%s' can not be an constructor. Set default to null please.", + 5516: "Property '%s.%s' must define at least one of 'default', 'get' or 'set'.", + 5517: "'%s.%s' hides inherited property '%s.%s'. To make the current property override that implementation, add the `override: true` attribute please.", + 5601: "Can not get current scene.", + 5602: "Scene is destroyed", + 5603: "reference node is destroyed", + 5700: "no %s or %s on %s", + 5800: "%s.lerp not yet implemented.", + 5801: "%s.clone not yet implemented.", + 5802: "%s.equals not yet implemented.", + 5900: "MotionStreak only support WebGL mode.", + 5901: "cc.MotionStreak.getOpacity has not been supported.", + 5902: "cc.MotionStreak.setOpacity has not been supported.", + 6e3: "Custom should not be false if file is not specified.", + 6001: "The new %s must not be NaN", + 6017: "Incomplete or corrupt PNG file", + 6018: "Invalid filter algorithm: %s", + 6019: "Invalid byte order value.", + 6020: "You forgot your towel!", + 6021: "Unknown Field Tag: %s", + 6022: "Too many bits requested", + 6023: "No bits requested", + 6024: "Cannot recover from missing StripByteCounts", + 6025: "Cannot handle sub-byte bits per sample", + 6026: "Cannot handle sub-byte bits per pixel", + 6027: "Palette image missing color map", + 6028: "Unknown Photometric Interpretation: %s", + 6029: "Unkown error", + 6030: "cc.ParticleSystem: error decoding or ungzipping textureImageData in plist '%s'", + 6031: "cc.ParticleSystem: unknown image format with Data in plist %s", + 6032: "cc.ParticleSystem.initWithDictionary() : error loading the texture in plist '%s'", + 6400: "asset.url is not usable in core process", + 6402: "AssetLibrary has already been initialized!", + 6500: "Widget target must be one of the parent nodes of it", + 6600: "collider not added or already removed", + 6601: "Can't find testFunc for (%s, $s).", + 6700: "Can't init canvas '%s' because it conflicts with the existing '%s', the scene should only have one active canvas at the same time.", + 6800: "Callback of event must be non-nil", + 6801: "The message must be provided", + 6900: "The thing you want to instantiate must be an object", + 6901: "The thing you want to instantiate is nil", + 6902: "The thing you want to instantiate is destroyed", + 6903: "The instantiate method for given asset do not implemented", + 6904: "Can not instantiate array", + 6905: "Can not instantiate DOM element", + 7100: "%s already defined in Enum.", + 7101: "Sorry, 'cc.Enum' not available on this platform, please report this error here: https://github.com/cocos-creator/engine/issues/new", + 7200: "Method 'initWithTMXFile' is no effect now, please set property 'tmxAsset' instead.", + 7201: "Method 'initWithXML' is no effect now, please set property 'tmxAsset' instead.", + 7202: "Add component TiledLayer into node failed.", + 7203: "Property 'mapLoaded' is unused now. Please write the logic to the callback 'start'.", + 7210: "TMX Hexa zOrder not supported", + 7211: "TMX invalid value", + 7215: "cocos2d: Warning: TMX Layer %s has no tiles", + 7216: "cocos2d: TMXFormat: Unsupported TMX version: %s", + 7217: "cocos2d: TMXFomat: Unsupported orientation: %s", + 7218: "cc.TMXMapInfo.parseXMLFile(): unsupported compression method", + 7219: "cc.TMXMapInfo.parseXMLFile(): Only base64 and/or gzip/zlib maps are supported", + 7221: "cc.TMXMapInfo.parseXMLFile(): Texture '%s' not found.", + 7222: "Parse %s failed.", + 7236: "cc.TMXLayer.getTileAt(): TMXLayer: the tiles map has been released", + 7237: "cc.TMXLayer.getTileGIDAt(): TMXLayer: the tiles map has been released", + 7238: "cc.TMXLayer.setTileGID(): TMXLayer: the tiles map has been released", + 7239: "cc.TMXLayer.setTileGID(): invalid gid: %s", + 7240: "cc.TMXLayer.getTileFlagsAt(): TMXLayer: the tiles map has been released", + 7241: "cc.TiledMap.initWithXML(): Map not found. Please check the filename.", + 7401: "Failed to set _defaultArmatureIndex for '%s' because the index is out of range.", + 7402: "Failed to set _animationIndex for '%s' because the index is out of range.", + 7501: "Failed to set _defaultSkinIndex for '%s' because the index is out of range.", + 7502: "Failed to set _animationIndex for '%s' because its skeletonData is invalid.", + 7503: "Failed to set _animationIndex for '%s' because the index is out of range.", + 7504: "Can not render dynamic created SkeletonData", + 7506: "Failed to load spine atlas '$s'", + 7507: "Please re-import '%s' because its textures is not initialized! (This workflow will be improved in the future.)", + 7508: "The atlas asset of '%s' is not exists!", + 7509: "Spine: Animation not found: %s", + 7510: "Spine: Animation not found: %s", + 7600: "The context of RenderTexture is invalid.", + 7601: "cc.RenderTexture._initWithWidthAndHeightForWebGL() : only RGB and RGBA formats are valid for a render texture;", + 7602: "Could not attach texture to the framebuffer", + 7603: "clearDepth isn't supported on Cocos2d-Html5", + 7604: "saveToFile isn't supported on Cocos2d-Html5", + 7605: "newCCImage isn't supported on Cocos2d-Html5", + 7700: "On the web is always keep the aspect ratio", + 7701: "Can't know status", + 7702: "Video player's duration is not ready to get now!", + 7800: "Web does not support loading", + 7801: "Web does not support query history", + 7802: "Web does not support query history", + 7803: "The current browser does not support the GoBack", + 7804: "The current browser does not support the GoForward", + 7805: "Web does not support zoom", + 7900: "cc.math.Matrix3.assign(): current matrix equals matIn", + 7901: "cc.math.mat4Assign(): pOut equals pIn", + 7902: "cc.mat.Matrix4.assignFrom(): mat4 equals current matrix", + 7903: "cc.math.Matrix4 equal: pMat1 and pMat2 are same object.", + 7904: "cc.math.Matrix4.extractPlane: Invalid plane index", + 7905: "cc.math.mat4Assign(): pOut equals pIn", + 7906: "cc.mat.Matrix4.assignFrom(): mat4 equals current matrix", + 7907: "cc.math.Matrix4 equals: pMat1 and pMat2 are same object.", + 7908: "Invalid matrix mode specified", + 7909: "current quaternion is an invalid value", + 8e3: "Can't handle this field type or size", + 8001: "No bytes requested", + 8002: "Too many bytes requested", + 8003: "Missing StripByteCounts!", + 8103: "cc.GLProgram.link(): Cannot link invalid program", + 8104: "cocos2d: ERROR: Failed to link program: %s", + 8105: "cocos2d: cc.shaderCache._loadDefaultShader, error shader type", + 8106: "Please load the resource firset : %s", + 8107: "cc.GLProgram.getUniformLocationForName(): uniform name should be non-null", + 8108: "cc.GLProgram.getUniformLocationForName(): Invalid operation. Cannot get uniform location when program is not initialized", + 8109: "modelView matrix is undefined.", + 8200: "Please set node's active instead of rigidbody's enabled.", + 8300: "Should only one camera exists, please check your project.", + 8301: "Camera does not support Canvas Mode.", + 8400: "Wrong type arguments, 'filePath' must be a String.", + 8401: "Since 1.10, `%s` accept %s instance directly, not a URL string. Please directly reference the %s object in your script, or load %s by loader first. Don't use %s's URL anymore.", + 9e3: "Stencil manager does not support level bigger than %d in this device.", + 9001: "Stencil manager is already empty, cannot pop any mask.", + 9100: "LabelAtlas '%s' cannot be loaded, raw texture does not exist.", + 9101: "LabelAtlas '%s' cannot be loaded, fnt data does not exist.", + 9102: "Program not support highp precision, will change to mediump.", + 9103: "%s : Failed to set property [%s], property not found.", + 9104: "%s : Failed to define [%s], define not found.", + 9105: "%s : Failed to set property [%s], property length not correct.", + 9106: "%s : Set property [%s] warning : should transform object to ArrayBuffer.", + 9107: "%s : illegal property: [%s], myabe defined an unused property;", + 9200: "cc.view.enableAntiAlias is deprecated, please use cc.Texture2D.setFilters instead", + "0100": "%s not yet implemented." + }; + }), {} ], + 2: [ (function(require, module, exports) { + "use strict"; + require("../core/platform/CCClass"); + var misc = require("../core/utils/misc"); + cc.Action = cc.Class({ + name: "cc.Action", + ctor: function ctor() { + this.originalTarget = null; + this.target = null; + this.tag = cc.Action.TAG_INVALID; + }, + clone: function clone() { + var action = new cc.Action(); + action.originalTarget = null; + action.target = null; + action.tag = this.tag; + return action; + }, + isDone: function isDone() { + return true; + }, + startWithTarget: function startWithTarget(target) { + this.originalTarget = target; + this.target = target; + }, + stop: function stop() { + this.target = null; + }, + step: function step(dt) { + cc.logID(1006); + }, + update: function update(dt) { + cc.logID(1007); + }, + getTarget: function getTarget() { + return this.target; + }, + setTarget: function setTarget(target) { + this.target = target; + }, + getOriginalTarget: function getOriginalTarget() { + return this.originalTarget; + }, + setOriginalTarget: function setOriginalTarget(originalTarget) { + this.originalTarget = originalTarget; + }, + getTag: function getTag() { + return this.tag; + }, + setTag: function setTag(tag) { + this.tag = tag; + }, + retain: function retain() {}, + release: function release() {} + }); + cc.Action.TAG_INVALID = -1; + cc.FiniteTimeAction = cc.Class({ + name: "cc.FiniteTimeAction", + extends: cc.Action, + ctor: function ctor() { + this._duration = 0; + }, + getDuration: function getDuration() { + return this._duration * (this._timesForRepeat || 1); + }, + setDuration: function setDuration(duration) { + this._duration = duration; + }, + reverse: function reverse() { + cc.logID(1008); + return null; + }, + clone: function clone() { + return new cc.FiniteTimeAction(); + } + }); + cc.Speed = cc.Class({ + name: "cc.Speed", + extends: cc.Action, + ctor: function ctor(action, speed) { + this._speed = 0; + this._innerAction = null; + action && this.initWithAction(action, speed); + }, + getSpeed: function getSpeed() { + return this._speed; + }, + setSpeed: function setSpeed(speed) { + this._speed = speed; + }, + initWithAction: function initWithAction(action, speed) { + if (!action) { + cc.errorID(1021); + return false; + } + this._innerAction = action; + this._speed = speed; + return true; + }, + clone: function clone() { + var action = new cc.Speed(); + action.initWithAction(this._innerAction.clone(), this._speed); + return action; + }, + startWithTarget: function startWithTarget(target) { + cc.Action.prototype.startWithTarget.call(this, target); + this._innerAction.startWithTarget(target); + }, + stop: function stop() { + this._innerAction.stop(); + cc.Action.prototype.stop.call(this); + }, + step: function step(dt) { + this._innerAction.step(dt * this._speed); + }, + isDone: function isDone() { + return this._innerAction.isDone(); + }, + reverse: function reverse() { + return new cc.Speed(this._innerAction.reverse(), this._speed); + }, + setInnerAction: function setInnerAction(action) { + this._innerAction !== action && (this._innerAction = action); + }, + getInnerAction: function getInnerAction() { + return this._innerAction; + } + }); + cc.speed = function(action, speed) { + return new cc.Speed(action, speed); + }; + cc.Follow = cc.Class({ + name: "cc.Follow", + extends: cc.Action, + ctor: function ctor(followedNode, rect) { + this._followedNode = null; + this._boundarySet = false; + this._boundaryFullyCovered = false; + this._halfScreenSize = null; + this._fullScreenSize = null; + this.leftBoundary = 0; + this.rightBoundary = 0; + this.topBoundary = 0; + this.bottomBoundary = 0; + this._worldRect = cc.rect(0, 0, 0, 0); + followedNode && (rect ? this.initWithTarget(followedNode, rect) : this.initWithTarget(followedNode)); + }, + clone: function clone() { + var action = new cc.Follow(); + var locRect = this._worldRect; + var rect = new cc.Rect(locRect.x, locRect.y, locRect.width, locRect.height); + action.initWithTarget(this._followedNode, rect); + return action; + }, + isBoundarySet: function isBoundarySet() { + return this._boundarySet; + }, + setBoudarySet: function setBoudarySet(value) { + this._boundarySet = value; + }, + initWithTarget: function initWithTarget(followedNode, rect) { + if (!followedNode) { + cc.errorID(1022); + return false; + } + var _this = this; + rect = rect || cc.rect(0, 0, 0, 0); + _this._followedNode = followedNode; + _this._worldRect = rect; + _this._boundarySet = !(0 === rect.width && 0 === rect.height); + _this._boundaryFullyCovered = false; + var winSize = cc.winSize; + _this._fullScreenSize = cc.v2(winSize.width, winSize.height); + _this._halfScreenSize = _this._fullScreenSize.mul(.5); + if (_this._boundarySet) { + _this.leftBoundary = -(rect.x + rect.width - _this._fullScreenSize.x); + _this.rightBoundary = -rect.x; + _this.topBoundary = -rect.y; + _this.bottomBoundary = -(rect.y + rect.height - _this._fullScreenSize.y); + _this.rightBoundary < _this.leftBoundary && (_this.rightBoundary = _this.leftBoundary = (_this.leftBoundary + _this.rightBoundary) / 2); + _this.topBoundary < _this.bottomBoundary && (_this.topBoundary = _this.bottomBoundary = (_this.topBoundary + _this.bottomBoundary) / 2); + _this.topBoundary === _this.bottomBoundary && _this.leftBoundary === _this.rightBoundary && (_this._boundaryFullyCovered = true); + } + return true; + }, + step: function step(dt) { + var targetWorldPos = this.target.convertToWorldSpaceAR(cc.Vec2.ZERO); + var followedWorldPos = this._followedNode.convertToWorldSpaceAR(cc.Vec2.ZERO); + var delta = targetWorldPos.sub(followedWorldPos); + var tempPos = this.target.parent.convertToNodeSpaceAR(delta.add(this._halfScreenSize)); + if (this._boundarySet) { + if (this._boundaryFullyCovered) return; + this.target.setPosition(misc.clampf(tempPos.x, this.leftBoundary, this.rightBoundary), misc.clampf(tempPos.y, this.bottomBoundary, this.topBoundary)); + } else this.target.setPosition(tempPos.x, tempPos.y); + }, + isDone: function isDone() { + return !this._followedNode.activeInHierarchy; + }, + stop: function stop() { + this.target = null; + cc.Action.prototype.stop.call(this); + } + }); + cc.follow = function(followedNode, rect) { + return new cc.Follow(followedNode, rect); + }; + }), { + "../core/platform/CCClass": 121, + "../core/utils/misc": 205 + } ], + 3: [ (function(require, module, exports) { + "use strict"; + function cardinalSplineAt(p0, p1, p2, p3, tension, t) { + var t2 = t * t; + var t3 = t2 * t; + var s = (1 - tension) / 2; + var b1 = s * (2 * t2 - t3 - t); + var b2 = s * (-t3 + t2) + (2 * t3 - 3 * t2 + 1); + var b3 = s * (t3 - 2 * t2 + t) + (-2 * t3 + 3 * t2); + var b4 = s * (t3 - t2); + var x = p0.x * b1 + p1.x * b2 + p2.x * b3 + p3.x * b4; + var y = p0.y * b1 + p1.y * b2 + p2.y * b3 + p3.y * b4; + return cc.v2(x, y); + } + function getControlPointAt(controlPoints, pos) { + var p = Math.min(controlPoints.length - 1, Math.max(pos, 0)); + return controlPoints[p]; + } + function reverseControlPoints(controlPoints) { + var newArray = []; + for (var i = controlPoints.length - 1; i >= 0; i--) newArray.push(cc.v2(controlPoints[i].x, controlPoints[i].y)); + return newArray; + } + function cloneControlPoints(controlPoints) { + var newArray = []; + for (var i = 0; i < controlPoints.length; i++) newArray.push(cc.v2(controlPoints[i].x, controlPoints[i].y)); + return newArray; + } + cc.CardinalSplineTo = cc.Class({ + name: "cc.CardinalSplineTo", + extends: cc.ActionInterval, + ctor: function ctor(duration, points, tension) { + this._points = []; + this._deltaT = 0; + this._tension = 0; + this._previousPosition = null; + this._accumulatedDiff = null; + void 0 !== tension && cc.CardinalSplineTo.prototype.initWithDuration.call(this, duration, points, tension); + }, + initWithDuration: function initWithDuration(duration, points, tension) { + if (!points || 0 === points.length) { + cc.errorID(1024); + return false; + } + if (cc.ActionInterval.prototype.initWithDuration.call(this, duration)) { + this.setPoints(points); + this._tension = tension; + return true; + } + return false; + }, + clone: function clone() { + var action = new cc.CardinalSplineTo(); + action.initWithDuration(this._duration, cloneControlPoints(this._points), this._tension); + return action; + }, + startWithTarget: function startWithTarget(target) { + cc.ActionInterval.prototype.startWithTarget.call(this, target); + this._deltaT = 1 / (this._points.length - 1); + this._previousPosition = cc.v2(this.target.x, this.target.y); + this._accumulatedDiff = cc.v2(0, 0); + }, + update: function update(dt) { + dt = this._computeEaseTime(dt); + var p, lt; + var ps = this._points; + if (1 === dt) { + p = ps.length - 1; + lt = 1; + } else { + var locDT = this._deltaT; + p = 0 | dt / locDT; + lt = (dt - locDT * p) / locDT; + } + var newPos = cardinalSplineAt(getControlPointAt(ps, p - 1), getControlPointAt(ps, p - 0), getControlPointAt(ps, p + 1), getControlPointAt(ps, p + 2), this._tension, lt); + if (cc.macro.ENABLE_STACKABLE_ACTIONS) { + var tempX, tempY; + tempX = this.target.x - this._previousPosition.x; + tempY = this.target.y - this._previousPosition.y; + if (0 !== tempX || 0 !== tempY) { + var locAccDiff = this._accumulatedDiff; + tempX = locAccDiff.x + tempX; + tempY = locAccDiff.y + tempY; + locAccDiff.x = tempX; + locAccDiff.y = tempY; + newPos.x += tempX; + newPos.y += tempY; + } + } + this.updatePosition(newPos); + }, + reverse: function reverse() { + var reversePoints = reverseControlPoints(this._points); + return cc.cardinalSplineTo(this._duration, reversePoints, this._tension); + }, + updatePosition: function updatePosition(newPos) { + this.target.setPosition(newPos); + this._previousPosition = newPos; + }, + getPoints: function getPoints() { + return this._points; + }, + setPoints: function setPoints(points) { + this._points = points; + } + }); + cc.cardinalSplineTo = function(duration, points, tension) { + return new cc.CardinalSplineTo(duration, points, tension); + }; + cc.CardinalSplineBy = cc.Class({ + name: "cc.CardinalSplineBy", + extends: cc.CardinalSplineTo, + ctor: function ctor(duration, points, tension) { + this._startPosition = cc.v2(0, 0); + void 0 !== tension && this.initWithDuration(duration, points, tension); + }, + startWithTarget: function startWithTarget(target) { + cc.CardinalSplineTo.prototype.startWithTarget.call(this, target); + this._startPosition.x = target.x; + this._startPosition.y = target.y; + }, + reverse: function reverse() { + var copyConfig = this._points.slice(); + var current; + var p = copyConfig[0]; + for (var i = 1; i < copyConfig.length; ++i) { + current = copyConfig[i]; + copyConfig[i] = current.sub(p); + p = current; + } + var reverseArray = reverseControlPoints(copyConfig); + p = reverseArray[reverseArray.length - 1]; + reverseArray.pop(); + p.x = -p.x; + p.y = -p.y; + reverseArray.unshift(p); + for (var i = 1; i < reverseArray.length; ++i) { + current = reverseArray[i]; + current.x = -current.x; + current.y = -current.y; + current.x += p.x; + current.y += p.y; + reverseArray[i] = current; + p = current; + } + return cc.cardinalSplineBy(this._duration, reverseArray, this._tension); + }, + updatePosition: function updatePosition(newPos) { + var pos = this._startPosition; + var posX = newPos.x + pos.x; + var posY = newPos.y + pos.y; + this._previousPosition.x = posX; + this._previousPosition.y = posY; + this.target.setPosition(posX, posY); + }, + clone: function clone() { + var a = new cc.CardinalSplineBy(); + a.initWithDuration(this._duration, cloneControlPoints(this._points), this._tension); + return a; + } + }); + cc.cardinalSplineBy = function(duration, points, tension) { + return new cc.CardinalSplineBy(duration, points, tension); + }; + cc.CatmullRomTo = cc.Class({ + name: "cc.CatmullRomTo", + extends: cc.CardinalSplineTo, + ctor: function ctor(dt, points) { + points && this.initWithDuration(dt, points); + }, + initWithDuration: function initWithDuration(dt, points) { + return cc.CardinalSplineTo.prototype.initWithDuration.call(this, dt, points, .5); + }, + clone: function clone() { + var action = new cc.CatmullRomTo(); + action.initWithDuration(this._duration, cloneControlPoints(this._points)); + return action; + } + }); + cc.catmullRomTo = function(dt, points) { + return new cc.CatmullRomTo(dt, points); + }; + cc.CatmullRomBy = cc.Class({ + name: "cc.CatmullRomBy", + extends: cc.CardinalSplineBy, + ctor: function ctor(dt, points) { + points && this.initWithDuration(dt, points); + }, + initWithDuration: function initWithDuration(dt, points) { + return cc.CardinalSplineTo.prototype.initWithDuration.call(this, dt, points, .5); + }, + clone: function clone() { + var action = new cc.CatmullRomBy(); + action.initWithDuration(this._duration, cloneControlPoints(this._points)); + return action; + } + }); + cc.catmullRomBy = function(dt, points) { + return new cc.CatmullRomBy(dt, points); + }; + }), {} ], + 4: [ (function(require, module, exports) { + "use strict"; + cc.easeIn = function(rate) { + return { + _rate: rate, + easing: function easing(dt) { + return Math.pow(dt, this._rate); + }, + reverse: function reverse() { + return cc.easeIn(1 / this._rate); + } + }; + }; + cc.easeOut = function(rate) { + return { + _rate: rate, + easing: function easing(dt) { + return Math.pow(dt, 1 / this._rate); + }, + reverse: function reverse() { + return cc.easeOut(1 / this._rate); + } + }; + }; + cc.easeInOut = function(rate) { + return { + _rate: rate, + easing: function easing(dt) { + dt *= 2; + return dt < 1 ? .5 * Math.pow(dt, this._rate) : 1 - .5 * Math.pow(2 - dt, this._rate); + }, + reverse: function reverse() { + return cc.easeInOut(this._rate); + } + }; + }; + var _easeExponentialInObj = { + easing: function easing(dt) { + return 0 === dt ? 0 : Math.pow(2, 10 * (dt - 1)); + }, + reverse: function reverse() { + return _easeExponentialOutObj; + } + }; + cc.easeExponentialIn = function() { + return _easeExponentialInObj; + }; + var _easeExponentialOutObj = { + easing: function easing(dt) { + return 1 === dt ? 1 : 1 - Math.pow(2, -10 * dt); + }, + reverse: function reverse() { + return _easeExponentialInObj; + } + }; + cc.easeExponentialOut = function() { + return _easeExponentialOutObj; + }; + var _easeExponentialInOutObj = { + easing: function easing(dt) { + if (1 !== dt && 0 !== dt) { + dt *= 2; + return dt < 1 ? .5 * Math.pow(2, 10 * (dt - 1)) : .5 * (2 - Math.pow(2, -10 * (dt - 1))); + } + return dt; + }, + reverse: function reverse() { + return _easeExponentialInOutObj; + } + }; + cc.easeExponentialInOut = function() { + return _easeExponentialInOutObj; + }; + var _easeSineInObj = { + easing: function easing(dt) { + return 0 === dt || 1 === dt ? dt : -1 * Math.cos(dt * Math.PI / 2) + 1; + }, + reverse: function reverse() { + return _easeSineOutObj; + } + }; + cc.easeSineIn = function() { + return _easeSineInObj; + }; + var _easeSineOutObj = { + easing: function easing(dt) { + return 0 === dt || 1 === dt ? dt : Math.sin(dt * Math.PI / 2); + }, + reverse: function reverse() { + return _easeSineInObj; + } + }; + cc.easeSineOut = function() { + return _easeSineOutObj; + }; + var _easeSineInOutObj = { + easing: function easing(dt) { + return 0 === dt || 1 === dt ? dt : -.5 * (Math.cos(Math.PI * dt) - 1); + }, + reverse: function reverse() { + return _easeSineInOutObj; + } + }; + cc.easeSineInOut = function() { + return _easeSineInOutObj; + }; + var _easeElasticInObj = { + easing: function easing(dt) { + if (0 === dt || 1 === dt) return dt; + dt -= 1; + return -Math.pow(2, 10 * dt) * Math.sin((dt - .075) * Math.PI * 2 / .3); + }, + reverse: function reverse() { + return _easeElasticOutObj; + } + }; + cc.easeElasticIn = function(period) { + if (period && .3 !== period) return { + _period: period, + easing: function easing(dt) { + if (0 === dt || 1 === dt) return dt; + dt -= 1; + return -Math.pow(2, 10 * dt) * Math.sin((dt - this._period / 4) * Math.PI * 2 / this._period); + }, + reverse: function reverse() { + return cc.easeElasticOut(this._period); + } + }; + return _easeElasticInObj; + }; + var _easeElasticOutObj = { + easing: function easing(dt) { + return 0 === dt || 1 === dt ? dt : Math.pow(2, -10 * dt) * Math.sin((dt - .075) * Math.PI * 2 / .3) + 1; + }, + reverse: function reverse() { + return _easeElasticInObj; + } + }; + cc.easeElasticOut = function(period) { + if (period && .3 !== period) return { + _period: period, + easing: function easing(dt) { + return 0 === dt || 1 === dt ? dt : Math.pow(2, -10 * dt) * Math.sin((dt - this._period / 4) * Math.PI * 2 / this._period) + 1; + }, + reverse: function reverse() { + return cc.easeElasticIn(this._period); + } + }; + return _easeElasticOutObj; + }; + cc.easeElasticInOut = function(period) { + period = period || .3; + return { + _period: period, + easing: function easing(dt) { + var newT = 0; + var locPeriod = this._period; + if (0 === dt || 1 === dt) newT = dt; else { + dt *= 2; + locPeriod || (locPeriod = this._period = .3 * 1.5); + var s = locPeriod / 4; + dt -= 1; + newT = dt < 0 ? -.5 * Math.pow(2, 10 * dt) * Math.sin((dt - s) * Math.PI * 2 / locPeriod) : Math.pow(2, -10 * dt) * Math.sin((dt - s) * Math.PI * 2 / locPeriod) * .5 + 1; + } + return newT; + }, + reverse: function reverse() { + return cc.easeElasticInOut(this._period); + } + }; + }; + function _bounceTime(time1) { + if (time1 < 1 / 2.75) return 7.5625 * time1 * time1; + if (time1 < 2 / 2.75) { + time1 -= 1.5 / 2.75; + return 7.5625 * time1 * time1 + .75; + } + if (time1 < 2.5 / 2.75) { + time1 -= 2.25 / 2.75; + return 7.5625 * time1 * time1 + .9375; + } + time1 -= 2.625 / 2.75; + return 7.5625 * time1 * time1 + .984375; + } + var _easeBounceInObj = { + easing: function easing(dt) { + return 1 - _bounceTime(1 - dt); + }, + reverse: function reverse() { + return _easeBounceOutObj; + } + }; + cc.easeBounceIn = function() { + return _easeBounceInObj; + }; + var _easeBounceOutObj = { + easing: function easing(dt) { + return _bounceTime(dt); + }, + reverse: function reverse() { + return _easeBounceInObj; + } + }; + cc.easeBounceOut = function() { + return _easeBounceOutObj; + }; + var _easeBounceInOutObj = { + easing: function easing(time1) { + var newT; + if (time1 < .5) { + time1 *= 2; + newT = .5 * (1 - _bounceTime(1 - time1)); + } else newT = .5 * _bounceTime(2 * time1 - 1) + .5; + return newT; + }, + reverse: function reverse() { + return _easeBounceInOutObj; + } + }; + cc.easeBounceInOut = function() { + return _easeBounceInOutObj; + }; + var _easeBackInObj = { + easing: function easing(time1) { + var overshoot = 1.70158; + return 0 === time1 || 1 === time1 ? time1 : time1 * time1 * ((overshoot + 1) * time1 - overshoot); + }, + reverse: function reverse() { + return _easeBackOutObj; + } + }; + cc.easeBackIn = function() { + return _easeBackInObj; + }; + var _easeBackOutObj = { + easing: function easing(time1) { + if (0 === time1) return 0; + var overshoot = 1.70158; + time1 -= 1; + return time1 * time1 * ((overshoot + 1) * time1 + overshoot) + 1; + }, + reverse: function reverse() { + return _easeBackInObj; + } + }; + cc.easeBackOut = function() { + return _easeBackOutObj; + }; + var _easeBackInOutObj = { + easing: function easing(time1) { + var overshoot = 2.5949095; + time1 *= 2; + if (time1 < 1) return time1 * time1 * ((overshoot + 1) * time1 - overshoot) / 2; + time1 -= 2; + return time1 * time1 * ((overshoot + 1) * time1 + overshoot) / 2 + 1; + }, + reverse: function reverse() { + return _easeBackInOutObj; + } + }; + cc.easeBackInOut = function() { + return _easeBackInOutObj; + }; + cc.easeBezierAction = function(a, b, c, d) { + return { + easing: function easing(t) { + return Math.pow(1 - t, 3) * a + 3 * t * Math.pow(1 - t, 2) * b + 3 * Math.pow(t, 2) * (1 - t) * c + Math.pow(t, 3) * d; + }, + reverse: function reverse() { + return cc.easeBezierAction(d, c, b, a); + } + }; + }; + var _easeQuadraticActionIn = { + easing: function easing(time) { + return Math.pow(time, 2); + }, + reverse: function reverse() { + return _easeQuadraticActionIn; + } + }; + cc.easeQuadraticActionIn = function() { + return _easeQuadraticActionIn; + }; + var _easeQuadraticActionOut = { + easing: function easing(time) { + return -time * (time - 2); + }, + reverse: function reverse() { + return _easeQuadraticActionOut; + } + }; + cc.easeQuadraticActionOut = function() { + return _easeQuadraticActionOut; + }; + var _easeQuadraticActionInOut = { + easing: function easing(time) { + var resultTime = time; + time *= 2; + if (time < 1) resultTime = time * time * .5; else { + --time; + resultTime = -.5 * (time * (time - 2) - 1); + } + return resultTime; + }, + reverse: function reverse() { + return _easeQuadraticActionInOut; + } + }; + cc.easeQuadraticActionInOut = function() { + return _easeQuadraticActionInOut; + }; + var _easeQuarticActionIn = { + easing: function easing(time) { + return time * time * time * time; + }, + reverse: function reverse() { + return _easeQuarticActionIn; + } + }; + cc.easeQuarticActionIn = function() { + return _easeQuarticActionIn; + }; + var _easeQuarticActionOut = { + easing: function easing(time) { + time -= 1; + return -(time * time * time * time - 1); + }, + reverse: function reverse() { + return _easeQuarticActionOut; + } + }; + cc.easeQuarticActionOut = function() { + return _easeQuarticActionOut; + }; + var _easeQuarticActionInOut = { + easing: function easing(time) { + time *= 2; + if (time < 1) return .5 * time * time * time * time; + time -= 2; + return -.5 * (time * time * time * time - 2); + }, + reverse: function reverse() { + return _easeQuarticActionInOut; + } + }; + cc.easeQuarticActionInOut = function() { + return _easeQuarticActionInOut; + }; + var _easeQuinticActionIn = { + easing: function easing(time) { + return time * time * time * time * time; + }, + reverse: function reverse() { + return _easeQuinticActionIn; + } + }; + cc.easeQuinticActionIn = function() { + return _easeQuinticActionIn; + }; + var _easeQuinticActionOut = { + easing: function easing(time) { + time -= 1; + return time * time * time * time * time + 1; + }, + reverse: function reverse() { + return _easeQuinticActionOut; + } + }; + cc.easeQuinticActionOut = function() { + return _easeQuinticActionOut; + }; + var _easeQuinticActionInOut = { + easing: function easing(time) { + time *= 2; + if (time < 1) return .5 * time * time * time * time * time; + time -= 2; + return .5 * (time * time * time * time * time + 2); + }, + reverse: function reverse() { + return _easeQuinticActionInOut; + } + }; + cc.easeQuinticActionInOut = function() { + return _easeQuinticActionInOut; + }; + var _easeCircleActionIn = { + easing: function easing(time) { + return -1 * (Math.sqrt(1 - time * time) - 1); + }, + reverse: function reverse() { + return _easeCircleActionIn; + } + }; + cc.easeCircleActionIn = function() { + return _easeCircleActionIn; + }; + var _easeCircleActionOut = { + easing: function easing(time) { + time -= 1; + return Math.sqrt(1 - time * time); + }, + reverse: function reverse() { + return _easeCircleActionOut; + } + }; + cc.easeCircleActionOut = function() { + return _easeCircleActionOut; + }; + var _easeCircleActionInOut = { + easing: function easing(time) { + time *= 2; + if (time < 1) return -.5 * (Math.sqrt(1 - time * time) - 1); + time -= 2; + return .5 * (Math.sqrt(1 - time * time) + 1); + }, + reverse: function reverse() { + return _easeCircleActionInOut; + } + }; + cc.easeCircleActionInOut = function() { + return _easeCircleActionInOut; + }; + var _easeCubicActionIn = { + easing: function easing(time) { + return time * time * time; + }, + reverse: function reverse() { + return _easeCubicActionIn; + } + }; + cc.easeCubicActionIn = function() { + return _easeCubicActionIn; + }; + var _easeCubicActionOut = { + easing: function easing(time) { + time -= 1; + return time * time * time + 1; + }, + reverse: function reverse() { + return _easeCubicActionOut; + } + }; + cc.easeCubicActionOut = function() { + return _easeCubicActionOut; + }; + var _easeCubicActionInOut = { + easing: function easing(time) { + time *= 2; + if (time < 1) return .5 * time * time * time; + time -= 2; + return .5 * (time * time * time + 2); + }, + reverse: function reverse() { + return _easeCubicActionInOut; + } + }; + cc.easeCubicActionInOut = function() { + return _easeCubicActionInOut; + }; + }), {} ], + 5: [ (function(require, module, exports) { + "use strict"; + cc.ActionInstant = cc.Class({ + name: "cc.ActionInstant", + extends: cc.FiniteTimeAction, + isDone: function isDone() { + return true; + }, + step: function step(dt) { + this.update(1); + }, + update: function update(dt) {}, + reverse: function reverse() { + return this.clone(); + }, + clone: function clone() { + return new cc.ActionInstant(); + } + }); + cc.Show = cc.Class({ + name: "cc.Show", + extends: cc.ActionInstant, + update: function update(dt) { + var _renderComps = this.target.getComponentsInChildren(cc.RenderComponent); + for (var i = 0; i < _renderComps.length; ++i) { + var render = _renderComps[i]; + render.enabled = true; + } + }, + reverse: function reverse() { + return new cc.Hide(); + }, + clone: function clone() { + return new cc.Show(); + } + }); + cc.show = function() { + return new cc.Show(); + }; + cc.Hide = cc.Class({ + name: "cc.Hide", + extends: cc.ActionInstant, + update: function update(dt) { + var _renderComps = this.target.getComponentsInChildren(cc.RenderComponent); + for (var i = 0; i < _renderComps.length; ++i) { + var render = _renderComps[i]; + render.enabled = false; + } + }, + reverse: function reverse() { + return new cc.Show(); + }, + clone: function clone() { + return new cc.Hide(); + } + }); + cc.hide = function() { + return new cc.Hide(); + }; + cc.ToggleVisibility = cc.Class({ + name: "cc.ToggleVisibility", + extends: cc.ActionInstant, + update: function update(dt) { + var _renderComps = this.target.getComponentsInChildren(cc.RenderComponent); + for (var i = 0; i < _renderComps.length; ++i) { + var render = _renderComps[i]; + render.enabled = !render.enabled; + } + }, + reverse: function reverse() { + return new cc.ToggleVisibility(); + }, + clone: function clone() { + return new cc.ToggleVisibility(); + } + }); + cc.toggleVisibility = function() { + return new cc.ToggleVisibility(); + }; + cc.RemoveSelf = cc.Class({ + name: "cc.RemoveSelf", + extends: cc.ActionInstant, + ctor: function ctor(isNeedCleanUp) { + this._isNeedCleanUp = true; + void 0 !== isNeedCleanUp && this.init(isNeedCleanUp); + }, + update: function update(dt) { + this.target.removeFromParent(this._isNeedCleanUp); + }, + init: function init(isNeedCleanUp) { + this._isNeedCleanUp = isNeedCleanUp; + return true; + }, + reverse: function reverse() { + return new cc.RemoveSelf(this._isNeedCleanUp); + }, + clone: function clone() { + return new cc.RemoveSelf(this._isNeedCleanUp); + } + }); + cc.removeSelf = function(isNeedCleanUp) { + return new cc.RemoveSelf(isNeedCleanUp); + }; + cc.DestroySelf = cc.Class({ + name: "cc.DestroySelf", + extends: cc.ActionInstant, + update: function update() { + this.target.destroy(); + }, + reverse: function reverse() { + return new cc.DestroySelf(); + }, + clone: function clone() { + return new cc.DestroySelf(); + } + }); + cc.destroySelf = function() { + return new cc.DestroySelf(); + }; + cc.FlipX = cc.Class({ + name: "cc.FlipX", + extends: cc.ActionInstant, + ctor: function ctor(flip) { + this._flippedX = false; + void 0 !== flip && this.initWithFlipX(flip); + }, + initWithFlipX: function initWithFlipX(flip) { + this._flippedX = flip; + return true; + }, + update: function update(dt) { + this.target.scaleX = Math.abs(this.target.scaleX) * (this._flippedX ? -1 : 1); + }, + reverse: function reverse() { + return new cc.FlipX(!this._flippedX); + }, + clone: function clone() { + var action = new cc.FlipX(); + action.initWithFlipX(this._flippedX); + return action; + } + }); + cc.flipX = function(flip) { + return new cc.FlipX(flip); + }; + cc.FlipY = cc.Class({ + name: "cc.FlipY", + extends: cc.ActionInstant, + ctor: function ctor(flip) { + this._flippedY = false; + void 0 !== flip && this.initWithFlipY(flip); + }, + initWithFlipY: function initWithFlipY(flip) { + this._flippedY = flip; + return true; + }, + update: function update(dt) { + this.target.scaleY = Math.abs(this.target.scaleY) * (this._flippedY ? -1 : 1); + }, + reverse: function reverse() { + return new cc.FlipY(!this._flippedY); + }, + clone: function clone() { + var action = new cc.FlipY(); + action.initWithFlipY(this._flippedY); + return action; + } + }); + cc.flipY = function(flip) { + return new cc.FlipY(flip); + }; + cc.Place = cc.Class({ + name: "cc.Place", + extends: cc.ActionInstant, + ctor: function ctor(pos, y) { + this._x = 0; + this._y = 0; + if (void 0 !== pos) { + if (void 0 !== pos.x) { + y = pos.y; + pos = pos.x; + } + this.initWithPosition(pos, y); + } + }, + initWithPosition: function initWithPosition(x, y) { + this._x = x; + this._y = y; + return true; + }, + update: function update(dt) { + this.target.setPosition(this._x, this._y); + }, + clone: function clone() { + var action = new cc.Place(); + action.initWithPosition(this._x, this._y); + return action; + } + }); + cc.place = function(pos, y) { + return new cc.Place(pos, y); + }; + cc.CallFunc = cc.Class({ + name: "cc.CallFunc", + extends: cc.ActionInstant, + ctor: function ctor(selector, selectorTarget, data) { + this._selectorTarget = null; + this._function = null; + this._data = null; + this.initWithFunction(selector, selectorTarget, data); + }, + initWithFunction: function initWithFunction(selector, selectorTarget, data) { + selector && (this._function = selector); + selectorTarget && (this._selectorTarget = selectorTarget); + void 0 !== data && (this._data = data); + return true; + }, + execute: function execute() { + this._function && this._function.call(this._selectorTarget, this.target, this._data); + }, + update: function update(dt) { + this.execute(); + }, + getTargetCallback: function getTargetCallback() { + return this._selectorTarget; + }, + setTargetCallback: function setTargetCallback(sel) { + if (sel !== this._selectorTarget) { + this._selectorTarget && (this._selectorTarget = null); + this._selectorTarget = sel; + } + }, + clone: function clone() { + var action = new cc.CallFunc(); + action.initWithFunction(this._function, this._selectorTarget, this._data); + return action; + } + }); + cc.callFunc = function(selector, selectorTarget, data) { + return new cc.CallFunc(selector, selectorTarget, data); + }; + }), {} ], + 6: [ (function(require, module, exports) { + "use strict"; + cc.ActionInterval = cc.Class({ + name: "cc.ActionInterval", + extends: cc.FiniteTimeAction, + ctor: function ctor(d) { + this.MAX_VALUE = 2; + this._elapsed = 0; + this._firstTick = false; + this._easeList = null; + this._speed = 1; + this._timesForRepeat = 1; + this._repeatForever = false; + this._repeatMethod = false; + this._speedMethod = false; + void 0 !== d && cc.ActionInterval.prototype.initWithDuration.call(this, d); + }, + getElapsed: function getElapsed() { + return this._elapsed; + }, + initWithDuration: function initWithDuration(d) { + this._duration = 0 === d ? cc.macro.FLT_EPSILON : d; + this._elapsed = 0; + this._firstTick = true; + return true; + }, + isDone: function isDone() { + return this._elapsed >= this._duration; + }, + _cloneDecoration: function _cloneDecoration(action) { + action._repeatForever = this._repeatForever; + action._speed = this._speed; + action._timesForRepeat = this._timesForRepeat; + action._easeList = this._easeList; + action._speedMethod = this._speedMethod; + action._repeatMethod = this._repeatMethod; + }, + _reverseEaseList: function _reverseEaseList(action) { + if (this._easeList) { + action._easeList = []; + for (var i = 0; i < this._easeList.length; i++) action._easeList.push(this._easeList[i].reverse()); + } + }, + clone: function clone() { + var action = new cc.ActionInterval(this._duration); + this._cloneDecoration(action); + return action; + }, + easing: function easing(easeObj) { + this._easeList ? this._easeList.length = 0 : this._easeList = []; + for (var i = 0; i < arguments.length; i++) this._easeList.push(arguments[i]); + return this; + }, + _computeEaseTime: function _computeEaseTime(dt) { + var locList = this._easeList; + if (!locList || 0 === locList.length) return dt; + for (var i = 0, n = locList.length; i < n; i++) dt = locList[i].easing(dt); + return dt; + }, + step: function step(dt) { + if (this._firstTick) { + this._firstTick = false; + this._elapsed = 0; + } else this._elapsed += dt; + var t = this._elapsed / (this._duration > 1.192092896e-7 ? this._duration : 1.192092896e-7); + t = 1 > t ? t : 1; + this.update(t > 0 ? t : 0); + if (this._repeatMethod && this._timesForRepeat > 1 && this.isDone()) { + this._repeatForever || this._timesForRepeat--; + this.startWithTarget(this.target); + this.step(this._elapsed - this._duration); + } + }, + startWithTarget: function startWithTarget(target) { + cc.Action.prototype.startWithTarget.call(this, target); + this._elapsed = 0; + this._firstTick = true; + }, + reverse: function reverse() { + cc.logID(1010); + return null; + }, + setAmplitudeRate: function setAmplitudeRate(amp) { + cc.logID(1011); + }, + getAmplitudeRate: function getAmplitudeRate() { + cc.logID(1012); + return 0; + }, + speed: function speed(_speed) { + if (_speed <= 0) { + cc.logID(1013); + return this; + } + this._speedMethod = true; + this._speed *= _speed; + return this; + }, + getSpeed: function getSpeed() { + return this._speed; + }, + setSpeed: function setSpeed(speed) { + this._speed = speed; + return this; + }, + repeat: function repeat(times) { + times = Math.round(times); + if (isNaN(times) || times < 1) { + cc.logID(1014); + return this; + } + this._repeatMethod = true; + this._timesForRepeat *= times; + return this; + }, + repeatForever: function repeatForever() { + this._repeatMethod = true; + this._timesForRepeat = this.MAX_VALUE; + this._repeatForever = true; + return this; + } + }); + cc.actionInterval = function(d) { + return new cc.ActionInterval(d); + }; + cc.Sequence = cc.Class({ + name: "cc.Sequence", + extends: cc.ActionInterval, + ctor: function ctor(tempArray) { + this._actions = []; + this._split = null; + this._last = 0; + this._reversed = false; + var paramArray = tempArray instanceof Array ? tempArray : arguments; + if (1 === paramArray.length) { + cc.errorID(1019); + return; + } + var last = paramArray.length - 1; + last >= 0 && null == paramArray[last] && cc.logID(1015); + if (last >= 0) { + var prev = paramArray[0], action1; + for (var i = 1; i < last; i++) if (paramArray[i]) { + action1 = prev; + prev = cc.Sequence._actionOneTwo(action1, paramArray[i]); + } + this.initWithTwoActions(prev, paramArray[last]); + } + }, + initWithTwoActions: function initWithTwoActions(actionOne, actionTwo) { + if (!actionOne || !actionTwo) { + cc.errorID(1025); + return false; + } + var durationOne = actionOne._duration, durationTwo = actionTwo._duration; + durationOne *= actionOne._repeatMethod ? actionOne._timesForRepeat : 1; + durationTwo *= actionTwo._repeatMethod ? actionTwo._timesForRepeat : 1; + var d = durationOne + durationTwo; + this.initWithDuration(d); + this._actions[0] = actionOne; + this._actions[1] = actionTwo; + return true; + }, + clone: function clone() { + var action = new cc.Sequence(); + this._cloneDecoration(action); + action.initWithTwoActions(this._actions[0].clone(), this._actions[1].clone()); + return action; + }, + startWithTarget: function startWithTarget(target) { + cc.ActionInterval.prototype.startWithTarget.call(this, target); + this._split = this._actions[0]._duration / this._duration; + this._split *= this._actions[0]._repeatMethod ? this._actions[0]._timesForRepeat : 1; + this._last = -1; + }, + stop: function stop() { + -1 !== this._last && this._actions[this._last].stop(); + cc.Action.prototype.stop.call(this); + }, + update: function update(dt) { + var new_t, found = 0; + var locSplit = this._split, locActions = this._actions, locLast = this._last, actionFound; + dt = this._computeEaseTime(dt); + if (dt < locSplit) { + new_t = 0 !== locSplit ? dt / locSplit : 1; + if (0 === found && 1 === locLast && this._reversed) { + locActions[1].update(0); + locActions[1].stop(); + } + } else { + found = 1; + new_t = 1 === locSplit ? 1 : (dt - locSplit) / (1 - locSplit); + if (-1 === locLast) { + locActions[0].startWithTarget(this.target); + locActions[0].update(1); + locActions[0].stop(); + } + if (0 === locLast) { + locActions[0].update(1); + locActions[0].stop(); + } + } + actionFound = locActions[found]; + if (locLast === found && actionFound.isDone()) return; + locLast !== found && actionFound.startWithTarget(this.target); + new_t *= actionFound._timesForRepeat; + actionFound.update(new_t > 1 ? new_t % 1 : new_t); + this._last = found; + }, + reverse: function reverse() { + var action = cc.Sequence._actionOneTwo(this._actions[1].reverse(), this._actions[0].reverse()); + this._cloneDecoration(action); + this._reverseEaseList(action); + action._reversed = true; + return action; + } + }); + cc.sequence = function(tempArray) { + var paramArray = tempArray instanceof Array ? tempArray : arguments; + if (1 === paramArray.length) { + cc.errorID(1019); + return null; + } + var last = paramArray.length - 1; + last >= 0 && null == paramArray[last] && cc.logID(1015); + var result = null; + if (last >= 0) { + result = paramArray[0]; + for (var i = 1; i <= last; i++) paramArray[i] && (result = cc.Sequence._actionOneTwo(result, paramArray[i])); + } + return result; + }; + cc.Sequence._actionOneTwo = function(actionOne, actionTwo) { + var sequence = new cc.Sequence(); + sequence.initWithTwoActions(actionOne, actionTwo); + return sequence; + }; + cc.Repeat = cc.Class({ + name: "cc.Repeat", + extends: cc.ActionInterval, + ctor: function ctor(action, times) { + this._times = 0; + this._total = 0; + this._nextDt = 0; + this._actionInstant = false; + this._innerAction = null; + void 0 !== times && this.initWithAction(action, times); + }, + initWithAction: function initWithAction(action, times) { + var duration = action._duration * times; + if (this.initWithDuration(duration)) { + this._times = times; + this._innerAction = action; + if (action instanceof cc.ActionInstant) { + this._actionInstant = true; + this._times -= 1; + } + this._total = 0; + return true; + } + return false; + }, + clone: function clone() { + var action = new cc.Repeat(); + this._cloneDecoration(action); + action.initWithAction(this._innerAction.clone(), this._times); + return action; + }, + startWithTarget: function startWithTarget(target) { + this._total = 0; + this._nextDt = this._innerAction._duration / this._duration; + cc.ActionInterval.prototype.startWithTarget.call(this, target); + this._innerAction.startWithTarget(target); + }, + stop: function stop() { + this._innerAction.stop(); + cc.Action.prototype.stop.call(this); + }, + update: function update(dt) { + dt = this._computeEaseTime(dt); + var locInnerAction = this._innerAction; + var locDuration = this._duration; + var locTimes = this._times; + var locNextDt = this._nextDt; + if (dt >= locNextDt) { + while (dt > locNextDt && this._total < locTimes) { + locInnerAction.update(1); + this._total++; + locInnerAction.stop(); + locInnerAction.startWithTarget(this.target); + locNextDt += locInnerAction._duration / locDuration; + this._nextDt = locNextDt > 1 ? 1 : locNextDt; + } + if (dt >= 1 && this._total < locTimes) { + locInnerAction.update(1); + this._total++; + } + this._actionInstant || (this._total === locTimes ? locInnerAction.stop() : locInnerAction.update(dt - (locNextDt - locInnerAction._duration / locDuration))); + } else locInnerAction.update(dt * locTimes % 1); + }, + isDone: function isDone() { + return this._total === this._times; + }, + reverse: function reverse() { + var action = new cc.Repeat(this._innerAction.reverse(), this._times); + this._cloneDecoration(action); + this._reverseEaseList(action); + return action; + }, + setInnerAction: function setInnerAction(action) { + this._innerAction !== action && (this._innerAction = action); + }, + getInnerAction: function getInnerAction() { + return this._innerAction; + } + }); + cc.repeat = function(action, times) { + return new cc.Repeat(action, times); + }; + cc.RepeatForever = cc.Class({ + name: "cc.RepeatForever", + extends: cc.ActionInterval, + ctor: function ctor(action) { + this._innerAction = null; + action && this.initWithAction(action); + }, + initWithAction: function initWithAction(action) { + if (!action) { + cc.errorID(1026); + return false; + } + this._innerAction = action; + return true; + }, + clone: function clone() { + var action = new cc.RepeatForever(); + this._cloneDecoration(action); + action.initWithAction(this._innerAction.clone()); + return action; + }, + startWithTarget: function startWithTarget(target) { + cc.ActionInterval.prototype.startWithTarget.call(this, target); + this._innerAction.startWithTarget(target); + }, + step: function step(dt) { + var locInnerAction = this._innerAction; + locInnerAction.step(dt); + if (locInnerAction.isDone()) { + locInnerAction.startWithTarget(this.target); + locInnerAction.step(locInnerAction.getElapsed() - locInnerAction._duration); + } + }, + isDone: function isDone() { + return false; + }, + reverse: function reverse() { + var action = new cc.RepeatForever(this._innerAction.reverse()); + this._cloneDecoration(action); + this._reverseEaseList(action); + return action; + }, + setInnerAction: function setInnerAction(action) { + this._innerAction !== action && (this._innerAction = action); + }, + getInnerAction: function getInnerAction() { + return this._innerAction; + } + }); + cc.repeatForever = function(action) { + return new cc.RepeatForever(action); + }; + cc.Spawn = cc.Class({ + name: "cc.Spawn", + extends: cc.ActionInterval, + ctor: function ctor(tempArray) { + this._one = null; + this._two = null; + var paramArray = tempArray instanceof Array ? tempArray : arguments; + if (1 === paramArray.length) { + cc.errorID(1020); + return; + } + var last = paramArray.length - 1; + last >= 0 && null == paramArray[last] && cc.logID(1015); + if (last >= 0) { + var prev = paramArray[0], action1; + for (var i = 1; i < last; i++) if (paramArray[i]) { + action1 = prev; + prev = cc.Spawn._actionOneTwo(action1, paramArray[i]); + } + this.initWithTwoActions(prev, paramArray[last]); + } + }, + initWithTwoActions: function initWithTwoActions(action1, action2) { + if (!action1 || !action2) { + cc.errorID(1027); + return false; + } + var ret = false; + var d1 = action1._duration; + var d2 = action2._duration; + if (this.initWithDuration(Math.max(d1, d2))) { + this._one = action1; + this._two = action2; + d1 > d2 ? this._two = cc.Sequence._actionOneTwo(action2, cc.delayTime(d1 - d2)) : d1 < d2 && (this._one = cc.Sequence._actionOneTwo(action1, cc.delayTime(d2 - d1))); + ret = true; + } + return ret; + }, + clone: function clone() { + var action = new cc.Spawn(); + this._cloneDecoration(action); + action.initWithTwoActions(this._one.clone(), this._two.clone()); + return action; + }, + startWithTarget: function startWithTarget(target) { + cc.ActionInterval.prototype.startWithTarget.call(this, target); + this._one.startWithTarget(target); + this._two.startWithTarget(target); + }, + stop: function stop() { + this._one.stop(); + this._two.stop(); + cc.Action.prototype.stop.call(this); + }, + update: function update(dt) { + dt = this._computeEaseTime(dt); + this._one && this._one.update(dt); + this._two && this._two.update(dt); + }, + reverse: function reverse() { + var action = cc.Spawn._actionOneTwo(this._one.reverse(), this._two.reverse()); + this._cloneDecoration(action); + this._reverseEaseList(action); + return action; + } + }); + cc.spawn = function(tempArray) { + var paramArray = tempArray instanceof Array ? tempArray : arguments; + if (1 === paramArray.length) { + cc.errorID(1020); + return null; + } + paramArray.length > 0 && null == paramArray[paramArray.length - 1] && cc.logID(1015); + var prev = paramArray[0]; + for (var i = 1; i < paramArray.length; i++) null != paramArray[i] && (prev = cc.Spawn._actionOneTwo(prev, paramArray[i])); + return prev; + }; + cc.Spawn._actionOneTwo = function(action1, action2) { + var pSpawn = new cc.Spawn(); + pSpawn.initWithTwoActions(action1, action2); + return pSpawn; + }; + cc.RotateTo = cc.Class({ + name: "cc.RotateTo", + extends: cc.ActionInterval, + statics: { + _reverse: false + }, + ctor: function ctor(duration, dstAngle) { + this._startAngle = 0; + this._dstAngle = 0; + this._angle = 0; + void 0 !== dstAngle && this.initWithDuration(duration, dstAngle); + }, + initWithDuration: function initWithDuration(duration, dstAngle) { + if (cc.ActionInterval.prototype.initWithDuration.call(this, duration)) { + this._dstAngle = dstAngle; + return true; + } + return false; + }, + clone: function clone() { + var action = new cc.RotateTo(); + this._cloneDecoration(action); + action.initWithDuration(this._duration, this._dstAngle); + return action; + }, + startWithTarget: function startWithTarget(target) { + cc.ActionInterval.prototype.startWithTarget.call(this, target); + var startAngle = target.angle % 360; + var angle = cc.RotateTo._reverse ? this._dstAngle - startAngle : this._dstAngle + startAngle; + angle > 180 && (angle -= 360); + angle < -180 && (angle += 360); + this._startAngle = startAngle; + this._angle = cc.RotateTo._reverse ? angle : -angle; + }, + reverse: function reverse() { + cc.logID(1016); + }, + update: function update(dt) { + dt = this._computeEaseTime(dt); + this.target && (this.target.angle = this._startAngle + this._angle * dt); + } + }); + cc.rotateTo = function(duration, dstAngle) { + return new cc.RotateTo(duration, dstAngle); + }; + cc.RotateBy = cc.Class({ + name: "cc.RotateBy", + extends: cc.ActionInterval, + statics: { + _reverse: false + }, + ctor: function ctor(duration, deltaAngle) { + deltaAngle *= cc.RotateBy._reverse ? 1 : -1; + this._deltaAngle = 0; + this._startAngle = 0; + void 0 !== deltaAngle && this.initWithDuration(duration, deltaAngle); + }, + initWithDuration: function initWithDuration(duration, deltaAngle) { + if (cc.ActionInterval.prototype.initWithDuration.call(this, duration)) { + this._deltaAngle = deltaAngle; + return true; + } + return false; + }, + clone: function clone() { + var action = new cc.RotateBy(); + this._cloneDecoration(action); + action.initWithDuration(this._duration, this._deltaAngle); + return action; + }, + startWithTarget: function startWithTarget(target) { + cc.ActionInterval.prototype.startWithTarget.call(this, target); + this._startAngle = target.angle; + }, + update: function update(dt) { + dt = this._computeEaseTime(dt); + this.target && (this.target.angle = this._startAngle + this._deltaAngle * dt); + }, + reverse: function reverse() { + var action = new cc.RotateBy(); + action.initWithDuration(this._duration, -this._deltaAngle); + this._cloneDecoration(action); + this._reverseEaseList(action); + return action; + } + }); + cc.rotateBy = function(duration, deltaAngle) { + return new cc.RotateBy(duration, deltaAngle); + }; + cc.MoveBy = cc.Class({ + name: "cc.MoveBy", + extends: cc.ActionInterval, + ctor: function ctor(duration, deltaPos, deltaY) { + this._positionDelta = cc.v2(0, 0); + this._startPosition = cc.v2(0, 0); + this._previousPosition = cc.v2(0, 0); + void 0 !== deltaPos && cc.MoveBy.prototype.initWithDuration.call(this, duration, deltaPos, deltaY); + }, + initWithDuration: function initWithDuration(duration, position, y) { + if (cc.ActionInterval.prototype.initWithDuration.call(this, duration)) { + if (void 0 !== position.x) { + y = position.y; + position = position.x; + } + this._positionDelta.x = position; + this._positionDelta.y = y; + return true; + } + return false; + }, + clone: function clone() { + var action = new cc.MoveBy(); + this._cloneDecoration(action); + action.initWithDuration(this._duration, this._positionDelta); + return action; + }, + startWithTarget: function startWithTarget(target) { + cc.ActionInterval.prototype.startWithTarget.call(this, target); + var locPosX = target.x; + var locPosY = target.y; + this._previousPosition.x = locPosX; + this._previousPosition.y = locPosY; + this._startPosition.x = locPosX; + this._startPosition.y = locPosY; + }, + update: function update(dt) { + dt = this._computeEaseTime(dt); + if (this.target) { + var x = this._positionDelta.x * dt; + var y = this._positionDelta.y * dt; + var locStartPosition = this._startPosition; + if (cc.macro.ENABLE_STACKABLE_ACTIONS) { + var targetX = this.target.x; + var targetY = this.target.y; + var locPreviousPosition = this._previousPosition; + locStartPosition.x = locStartPosition.x + targetX - locPreviousPosition.x; + locStartPosition.y = locStartPosition.y + targetY - locPreviousPosition.y; + x += locStartPosition.x; + y += locStartPosition.y; + locPreviousPosition.x = x; + locPreviousPosition.y = y; + this.target.setPosition(x, y); + } else this.target.setPosition(locStartPosition.x + x, locStartPosition.y + y); + } + }, + reverse: function reverse() { + var action = new cc.MoveBy(this._duration, cc.v2(-this._positionDelta.x, -this._positionDelta.y)); + this._cloneDecoration(action); + this._reverseEaseList(action); + return action; + } + }); + cc.moveBy = function(duration, deltaPos, deltaY) { + return new cc.MoveBy(duration, deltaPos, deltaY); + }; + cc.MoveTo = cc.Class({ + name: "cc.MoveTo", + extends: cc.MoveBy, + ctor: function ctor(duration, position, y) { + this._endPosition = cc.v2(0, 0); + void 0 !== position && this.initWithDuration(duration, position, y); + }, + initWithDuration: function initWithDuration(duration, position, y) { + if (cc.MoveBy.prototype.initWithDuration.call(this, duration, position, y)) { + if (void 0 !== position.x) { + y = position.y; + position = position.x; + } + this._endPosition.x = position; + this._endPosition.y = y; + return true; + } + return false; + }, + clone: function clone() { + var action = new cc.MoveTo(); + this._cloneDecoration(action); + action.initWithDuration(this._duration, this._endPosition); + return action; + }, + startWithTarget: function startWithTarget(target) { + cc.MoveBy.prototype.startWithTarget.call(this, target); + this._positionDelta.x = this._endPosition.x - target.x; + this._positionDelta.y = this._endPosition.y - target.y; + } + }); + cc.moveTo = function(duration, position, y) { + return new cc.MoveTo(duration, position, y); + }; + cc.SkewTo = cc.Class({ + name: "cc.SkewTo", + extends: cc.ActionInterval, + ctor: function ctor(t, sx, sy) { + this._skewX = 0; + this._skewY = 0; + this._startSkewX = 0; + this._startSkewY = 0; + this._endSkewX = 0; + this._endSkewY = 0; + this._deltaX = 0; + this._deltaY = 0; + void 0 !== sy && cc.SkewTo.prototype.initWithDuration.call(this, t, sx, sy); + }, + initWithDuration: function initWithDuration(t, sx, sy) { + var ret = false; + if (cc.ActionInterval.prototype.initWithDuration.call(this, t)) { + this._endSkewX = sx; + this._endSkewY = sy; + ret = true; + } + return ret; + }, + clone: function clone() { + var action = new cc.SkewTo(); + this._cloneDecoration(action); + action.initWithDuration(this._duration, this._endSkewX, this._endSkewY); + return action; + }, + startWithTarget: function startWithTarget(target) { + cc.ActionInterval.prototype.startWithTarget.call(this, target); + this._startSkewX = target.skewX % 180; + this._deltaX = this._endSkewX - this._startSkewX; + this._deltaX > 180 && (this._deltaX -= 360); + this._deltaX < -180 && (this._deltaX += 360); + this._startSkewY = target.skewY % 360; + this._deltaY = this._endSkewY - this._startSkewY; + this._deltaY > 180 && (this._deltaY -= 360); + this._deltaY < -180 && (this._deltaY += 360); + }, + update: function update(dt) { + dt = this._computeEaseTime(dt); + this.target.skewX = this._startSkewX + this._deltaX * dt; + this.target.skewY = this._startSkewY + this._deltaY * dt; + } + }); + cc.skewTo = function(t, sx, sy) { + return new cc.SkewTo(t, sx, sy); + }; + cc.SkewBy = cc.Class({ + name: "cc.SkewBy", + extends: cc.SkewTo, + ctor: function ctor(t, sx, sy) { + void 0 !== sy && this.initWithDuration(t, sx, sy); + }, + initWithDuration: function initWithDuration(t, deltaSkewX, deltaSkewY) { + var ret = false; + if (cc.SkewTo.prototype.initWithDuration.call(this, t, deltaSkewX, deltaSkewY)) { + this._skewX = deltaSkewX; + this._skewY = deltaSkewY; + ret = true; + } + return ret; + }, + clone: function clone() { + var action = new cc.SkewBy(); + this._cloneDecoration(action); + action.initWithDuration(this._duration, this._skewX, this._skewY); + return action; + }, + startWithTarget: function startWithTarget(target) { + cc.SkewTo.prototype.startWithTarget.call(this, target); + this._deltaX = this._skewX; + this._deltaY = this._skewY; + this._endSkewX = this._startSkewX + this._deltaX; + this._endSkewY = this._startSkewY + this._deltaY; + }, + reverse: function reverse() { + var action = new cc.SkewBy(this._duration, -this._skewX, -this._skewY); + this._cloneDecoration(action); + this._reverseEaseList(action); + return action; + } + }); + cc.skewBy = function(t, sx, sy) { + return new cc.SkewBy(t, sx, sy); + }; + cc.JumpBy = cc.Class({ + name: "cc.JumpBy", + extends: cc.ActionInterval, + ctor: function ctor(duration, position, y, height, jumps) { + this._startPosition = cc.v2(0, 0); + this._previousPosition = cc.v2(0, 0); + this._delta = cc.v2(0, 0); + this._height = 0; + this._jumps = 0; + void 0 !== height && cc.JumpBy.prototype.initWithDuration.call(this, duration, position, y, height, jumps); + }, + initWithDuration: function initWithDuration(duration, position, y, height, jumps) { + if (cc.ActionInterval.prototype.initWithDuration.call(this, duration)) { + if (void 0 === jumps) { + jumps = height; + height = y; + y = position.y; + position = position.x; + } + this._delta.x = position; + this._delta.y = y; + this._height = height; + this._jumps = jumps; + return true; + } + return false; + }, + clone: function clone() { + var action = new cc.JumpBy(); + this._cloneDecoration(action); + action.initWithDuration(this._duration, this._delta, this._height, this._jumps); + return action; + }, + startWithTarget: function startWithTarget(target) { + cc.ActionInterval.prototype.startWithTarget.call(this, target); + var locPosX = target.x; + var locPosY = target.y; + this._previousPosition.x = locPosX; + this._previousPosition.y = locPosY; + this._startPosition.x = locPosX; + this._startPosition.y = locPosY; + }, + update: function update(dt) { + dt = this._computeEaseTime(dt); + if (this.target) { + var frac = dt * this._jumps % 1; + var y = 4 * this._height * frac * (1 - frac); + y += this._delta.y * dt; + var x = this._delta.x * dt; + var locStartPosition = this._startPosition; + if (cc.macro.ENABLE_STACKABLE_ACTIONS) { + var targetX = this.target.x; + var targetY = this.target.y; + var locPreviousPosition = this._previousPosition; + locStartPosition.x = locStartPosition.x + targetX - locPreviousPosition.x; + locStartPosition.y = locStartPosition.y + targetY - locPreviousPosition.y; + x += locStartPosition.x; + y += locStartPosition.y; + locPreviousPosition.x = x; + locPreviousPosition.y = y; + this.target.setPosition(x, y); + } else this.target.setPosition(locStartPosition.x + x, locStartPosition.y + y); + } + }, + reverse: function reverse() { + var action = new cc.JumpBy(this._duration, cc.v2(-this._delta.x, -this._delta.y), this._height, this._jumps); + this._cloneDecoration(action); + this._reverseEaseList(action); + return action; + } + }); + cc.jumpBy = function(duration, position, y, height, jumps) { + return new cc.JumpBy(duration, position, y, height, jumps); + }; + cc.JumpTo = cc.Class({ + name: "cc.JumpTo", + extends: cc.JumpBy, + ctor: function ctor(duration, position, y, height, jumps) { + this._endPosition = cc.v2(0, 0); + void 0 !== height && this.initWithDuration(duration, position, y, height, jumps); + }, + initWithDuration: function initWithDuration(duration, position, y, height, jumps) { + if (cc.JumpBy.prototype.initWithDuration.call(this, duration, position, y, height, jumps)) { + if (void 0 === jumps) { + y = position.y; + position = position.x; + } + this._endPosition.x = position; + this._endPosition.y = y; + return true; + } + return false; + }, + startWithTarget: function startWithTarget(target) { + cc.JumpBy.prototype.startWithTarget.call(this, target); + this._delta.x = this._endPosition.x - this._startPosition.x; + this._delta.y = this._endPosition.y - this._startPosition.y; + }, + clone: function clone() { + var action = new cc.JumpTo(); + this._cloneDecoration(action); + action.initWithDuration(this._duration, this._endPosition, this._height, this._jumps); + return action; + } + }); + cc.jumpTo = function(duration, position, y, height, jumps) { + return new cc.JumpTo(duration, position, y, height, jumps); + }; + function bezierAt(a, b, c, d, t) { + return Math.pow(1 - t, 3) * a + 3 * t * Math.pow(1 - t, 2) * b + 3 * Math.pow(t, 2) * (1 - t) * c + Math.pow(t, 3) * d; + } + cc.BezierBy = cc.Class({ + name: "cc.BezierBy", + extends: cc.ActionInterval, + ctor: function ctor(t, c) { + this._config = []; + this._startPosition = cc.v2(0, 0); + this._previousPosition = cc.v2(0, 0); + c && cc.BezierBy.prototype.initWithDuration.call(this, t, c); + }, + initWithDuration: function initWithDuration(t, c) { + if (cc.ActionInterval.prototype.initWithDuration.call(this, t)) { + this._config = c; + return true; + } + return false; + }, + clone: function clone() { + var action = new cc.BezierBy(); + this._cloneDecoration(action); + var newConfigs = []; + for (var i = 0; i < this._config.length; i++) { + var selConf = this._config[i]; + newConfigs.push(cc.v2(selConf.x, selConf.y)); + } + action.initWithDuration(this._duration, newConfigs); + return action; + }, + startWithTarget: function startWithTarget(target) { + cc.ActionInterval.prototype.startWithTarget.call(this, target); + var locPosX = target.x; + var locPosY = target.y; + this._previousPosition.x = locPosX; + this._previousPosition.y = locPosY; + this._startPosition.x = locPosX; + this._startPosition.y = locPosY; + }, + update: function update(dt) { + dt = this._computeEaseTime(dt); + if (this.target) { + var locConfig = this._config; + var xa = 0; + var xb = locConfig[0].x; + var xc = locConfig[1].x; + var xd = locConfig[2].x; + var ya = 0; + var yb = locConfig[0].y; + var yc = locConfig[1].y; + var yd = locConfig[2].y; + var x = bezierAt(xa, xb, xc, xd, dt); + var y = bezierAt(ya, yb, yc, yd, dt); + var locStartPosition = this._startPosition; + if (cc.macro.ENABLE_STACKABLE_ACTIONS) { + var targetX = this.target.x; + var targetY = this.target.y; + var locPreviousPosition = this._previousPosition; + locStartPosition.x = locStartPosition.x + targetX - locPreviousPosition.x; + locStartPosition.y = locStartPosition.y + targetY - locPreviousPosition.y; + x += locStartPosition.x; + y += locStartPosition.y; + locPreviousPosition.x = x; + locPreviousPosition.y = y; + this.target.setPosition(x, y); + } else this.target.setPosition(locStartPosition.x + x, locStartPosition.y + y); + } + }, + reverse: function reverse() { + var locConfig = this._config; + var x0 = locConfig[0].x, y0 = locConfig[0].y; + var x1 = locConfig[1].x, y1 = locConfig[1].y; + var x2 = locConfig[2].x, y2 = locConfig[2].y; + var r = [ cc.v2(x1 - x2, y1 - y2), cc.v2(x0 - x2, y0 - y2), cc.v2(-x2, -y2) ]; + var action = new cc.BezierBy(this._duration, r); + this._cloneDecoration(action); + this._reverseEaseList(action); + return action; + } + }); + cc.bezierBy = function(t, c) { + return new cc.BezierBy(t, c); + }; + cc.BezierTo = cc.Class({ + name: "cc.BezierTo", + extends: cc.BezierBy, + ctor: function ctor(t, c) { + this._toConfig = []; + c && this.initWithDuration(t, c); + }, + initWithDuration: function initWithDuration(t, c) { + if (cc.ActionInterval.prototype.initWithDuration.call(this, t)) { + this._toConfig = c; + return true; + } + return false; + }, + clone: function clone() { + var action = new cc.BezierTo(); + this._cloneDecoration(action); + action.initWithDuration(this._duration, this._toConfig); + return action; + }, + startWithTarget: function startWithTarget(target) { + cc.BezierBy.prototype.startWithTarget.call(this, target); + var locStartPos = this._startPosition; + var locToConfig = this._toConfig; + var locConfig = this._config; + locConfig[0] = locToConfig[0].sub(locStartPos); + locConfig[1] = locToConfig[1].sub(locStartPos); + locConfig[2] = locToConfig[2].sub(locStartPos); + } + }); + cc.bezierTo = function(t, c) { + return new cc.BezierTo(t, c); + }; + cc.ScaleTo = cc.Class({ + name: "cc.ScaleTo", + extends: cc.ActionInterval, + ctor: function ctor(duration, sx, sy) { + this._scaleX = 1; + this._scaleY = 1; + this._startScaleX = 1; + this._startScaleY = 1; + this._endScaleX = 0; + this._endScaleY = 0; + this._deltaX = 0; + this._deltaY = 0; + void 0 !== sx && cc.ScaleTo.prototype.initWithDuration.call(this, duration, sx, sy); + }, + initWithDuration: function initWithDuration(duration, sx, sy) { + if (cc.ActionInterval.prototype.initWithDuration.call(this, duration)) { + this._endScaleX = sx; + this._endScaleY = null != sy ? sy : sx; + return true; + } + return false; + }, + clone: function clone() { + var action = new cc.ScaleTo(); + this._cloneDecoration(action); + action.initWithDuration(this._duration, this._endScaleX, this._endScaleY); + return action; + }, + startWithTarget: function startWithTarget(target) { + cc.ActionInterval.prototype.startWithTarget.call(this, target); + this._startScaleX = target.scaleX; + this._startScaleY = target.scaleY; + this._deltaX = this._endScaleX - this._startScaleX; + this._deltaY = this._endScaleY - this._startScaleY; + }, + update: function update(dt) { + dt = this._computeEaseTime(dt); + if (this.target) { + this.target.scaleX = this._startScaleX + this._deltaX * dt; + this.target.scaleY = this._startScaleY + this._deltaY * dt; + } + } + }); + cc.scaleTo = function(duration, sx, sy) { + return new cc.ScaleTo(duration, sx, sy); + }; + cc.ScaleBy = cc.Class({ + name: "cc.ScaleBy", + extends: cc.ScaleTo, + startWithTarget: function startWithTarget(target) { + cc.ScaleTo.prototype.startWithTarget.call(this, target); + this._deltaX = this._startScaleX * this._endScaleX - this._startScaleX; + this._deltaY = this._startScaleY * this._endScaleY - this._startScaleY; + }, + reverse: function reverse() { + var action = new cc.ScaleBy(this._duration, 1 / this._endScaleX, 1 / this._endScaleY); + this._cloneDecoration(action); + this._reverseEaseList(action); + return action; + }, + clone: function clone() { + var action = new cc.ScaleBy(); + this._cloneDecoration(action); + action.initWithDuration(this._duration, this._endScaleX, this._endScaleY); + return action; + } + }); + cc.scaleBy = function(duration, sx, sy) { + return new cc.ScaleBy(duration, sx, sy); + }; + cc.Blink = cc.Class({ + name: "cc.Blink", + extends: cc.ActionInterval, + ctor: function ctor(duration, blinks) { + this._times = 0; + this._originalState = false; + void 0 !== blinks && this.initWithDuration(duration, blinks); + }, + initWithDuration: function initWithDuration(duration, blinks) { + if (cc.ActionInterval.prototype.initWithDuration.call(this, duration)) { + this._times = blinks; + return true; + } + return false; + }, + clone: function clone() { + var action = new cc.Blink(); + this._cloneDecoration(action); + action.initWithDuration(this._duration, this._times); + return action; + }, + update: function update(dt) { + dt = this._computeEaseTime(dt); + if (this.target && !this.isDone()) { + var slice = 1 / this._times; + var m = dt % slice; + this.target.opacity = m > slice / 2 ? 255 : 0; + } + }, + startWithTarget: function startWithTarget(target) { + cc.ActionInterval.prototype.startWithTarget.call(this, target); + this._originalState = target.opacity; + }, + stop: function stop() { + this.target.opacity = this._originalState; + cc.ActionInterval.prototype.stop.call(this); + }, + reverse: function reverse() { + var action = new cc.Blink(this._duration, this._times); + this._cloneDecoration(action); + this._reverseEaseList(action); + return action; + } + }); + cc.blink = function(duration, blinks) { + return new cc.Blink(duration, blinks); + }; + cc.FadeTo = cc.Class({ + name: "cc.FadeTo", + extends: cc.ActionInterval, + ctor: function ctor(duration, opacity) { + this._toOpacity = 0; + this._fromOpacity = 0; + void 0 !== opacity && cc.FadeTo.prototype.initWithDuration.call(this, duration, opacity); + }, + initWithDuration: function initWithDuration(duration, opacity) { + if (cc.ActionInterval.prototype.initWithDuration.call(this, duration)) { + this._toOpacity = opacity; + return true; + } + return false; + }, + clone: function clone() { + var action = new cc.FadeTo(); + this._cloneDecoration(action); + action.initWithDuration(this._duration, this._toOpacity); + return action; + }, + update: function update(time) { + time = this._computeEaseTime(time); + var fromOpacity = void 0 !== this._fromOpacity ? this._fromOpacity : 255; + this.target.opacity = fromOpacity + (this._toOpacity - fromOpacity) * time; + }, + startWithTarget: function startWithTarget(target) { + cc.ActionInterval.prototype.startWithTarget.call(this, target); + this._fromOpacity = target.opacity; + } + }); + cc.fadeTo = function(duration, opacity) { + return new cc.FadeTo(duration, opacity); + }; + cc.FadeIn = cc.Class({ + name: "cc.FadeIn", + extends: cc.FadeTo, + ctor: function ctor(duration) { + null == duration && (duration = 0); + this._reverseAction = null; + this.initWithDuration(duration, 255); + }, + reverse: function reverse() { + var action = new cc.FadeOut(); + action.initWithDuration(this._duration, 0); + this._cloneDecoration(action); + this._reverseEaseList(action); + return action; + }, + clone: function clone() { + var action = new cc.FadeIn(); + this._cloneDecoration(action); + action.initWithDuration(this._duration, this._toOpacity); + return action; + }, + startWithTarget: function startWithTarget(target) { + this._reverseAction && (this._toOpacity = this._reverseAction._fromOpacity); + cc.FadeTo.prototype.startWithTarget.call(this, target); + } + }); + cc.fadeIn = function(duration) { + return new cc.FadeIn(duration); + }; + cc.FadeOut = cc.Class({ + name: "cc.FadeOut", + extends: cc.FadeTo, + ctor: function ctor(duration) { + null == duration && (duration = 0); + this._reverseAction = null; + this.initWithDuration(duration, 0); + }, + reverse: function reverse() { + var action = new cc.FadeIn(); + action._reverseAction = this; + action.initWithDuration(this._duration, 255); + this._cloneDecoration(action); + this._reverseEaseList(action); + return action; + }, + clone: function clone() { + var action = new cc.FadeOut(); + this._cloneDecoration(action); + action.initWithDuration(this._duration, this._toOpacity); + return action; + } + }); + cc.fadeOut = function(d) { + return new cc.FadeOut(d); + }; + cc.TintTo = cc.Class({ + name: "cc.TintTo", + extends: cc.ActionInterval, + ctor: function ctor(duration, red, green, blue) { + this._to = cc.color(0, 0, 0); + this._from = cc.color(0, 0, 0); + if (red instanceof cc.Color) { + blue = red.b; + green = red.g; + red = red.r; + } + void 0 !== blue && this.initWithDuration(duration, red, green, blue); + }, + initWithDuration: function initWithDuration(duration, red, green, blue) { + if (cc.ActionInterval.prototype.initWithDuration.call(this, duration)) { + this._to = cc.color(red, green, blue); + return true; + } + return false; + }, + clone: function clone() { + var action = new cc.TintTo(); + this._cloneDecoration(action); + var locTo = this._to; + action.initWithDuration(this._duration, locTo.r, locTo.g, locTo.b); + return action; + }, + startWithTarget: function startWithTarget(target) { + cc.ActionInterval.prototype.startWithTarget.call(this, target); + this._from = this.target.color; + }, + update: function update(dt) { + dt = this._computeEaseTime(dt); + var locFrom = this._from, locTo = this._to; + locFrom && (this.target.color = cc.color(locFrom.r + (locTo.r - locFrom.r) * dt, locFrom.g + (locTo.g - locFrom.g) * dt, locFrom.b + (locTo.b - locFrom.b) * dt)); + } + }); + cc.tintTo = function(duration, red, green, blue) { + return new cc.TintTo(duration, red, green, blue); + }; + cc.TintBy = cc.Class({ + name: "cc.TintBy", + extends: cc.ActionInterval, + ctor: function ctor(duration, deltaRed, deltaGreen, deltaBlue) { + this._deltaR = 0; + this._deltaG = 0; + this._deltaB = 0; + this._fromR = 0; + this._fromG = 0; + this._fromB = 0; + void 0 !== deltaBlue && this.initWithDuration(duration, deltaRed, deltaGreen, deltaBlue); + }, + initWithDuration: function initWithDuration(duration, deltaRed, deltaGreen, deltaBlue) { + if (cc.ActionInterval.prototype.initWithDuration.call(this, duration)) { + this._deltaR = deltaRed; + this._deltaG = deltaGreen; + this._deltaB = deltaBlue; + return true; + } + return false; + }, + clone: function clone() { + var action = new cc.TintBy(); + this._cloneDecoration(action); + action.initWithDuration(this._duration, this._deltaR, this._deltaG, this._deltaB); + return action; + }, + startWithTarget: function startWithTarget(target) { + cc.ActionInterval.prototype.startWithTarget.call(this, target); + var color = target.color; + this._fromR = color.r; + this._fromG = color.g; + this._fromB = color.b; + }, + update: function update(dt) { + dt = this._computeEaseTime(dt); + this.target.color = cc.color(this._fromR + this._deltaR * dt, this._fromG + this._deltaG * dt, this._fromB + this._deltaB * dt); + }, + reverse: function reverse() { + var action = new cc.TintBy(this._duration, -this._deltaR, -this._deltaG, -this._deltaB); + this._cloneDecoration(action); + this._reverseEaseList(action); + return action; + } + }); + cc.tintBy = function(duration, deltaRed, deltaGreen, deltaBlue) { + return new cc.TintBy(duration, deltaRed, deltaGreen, deltaBlue); + }; + cc.DelayTime = cc.Class({ + name: "cc.DelayTime", + extends: cc.ActionInterval, + update: function update(dt) {}, + reverse: function reverse() { + var action = new cc.DelayTime(this._duration); + this._cloneDecoration(action); + this._reverseEaseList(action); + return action; + }, + clone: function clone() { + var action = new cc.DelayTime(); + this._cloneDecoration(action); + action.initWithDuration(this._duration); + return action; + } + }); + cc.delayTime = function(d) { + return new cc.DelayTime(d); + }; + cc.ReverseTime = cc.Class({ + name: "cc.ReverseTime", + extends: cc.ActionInterval, + ctor: function ctor(action) { + this._other = null; + action && this.initWithAction(action); + }, + initWithAction: function initWithAction(action) { + if (!action) { + cc.errorID(1028); + return false; + } + if (action === this._other) { + cc.errorID(1029); + return false; + } + if (cc.ActionInterval.prototype.initWithDuration.call(this, action._duration)) { + this._other = action; + return true; + } + return false; + }, + clone: function clone() { + var action = new cc.ReverseTime(); + this._cloneDecoration(action); + action.initWithAction(this._other.clone()); + return action; + }, + startWithTarget: function startWithTarget(target) { + cc.ActionInterval.prototype.startWithTarget.call(this, target); + this._other.startWithTarget(target); + }, + update: function update(dt) { + dt = this._computeEaseTime(dt); + this._other && this._other.update(1 - dt); + }, + reverse: function reverse() { + return this._other.clone(); + }, + stop: function stop() { + this._other.stop(); + cc.Action.prototype.stop.call(this); + } + }); + cc.reverseTime = function(action) { + return new cc.ReverseTime(action); + }; + cc.TargetedAction = cc.Class({ + name: "cc.TargetedAction", + extends: cc.ActionInterval, + ctor: function ctor(target, action) { + this._action = null; + this._forcedTarget = null; + action && this.initWithTarget(target, action); + }, + initWithTarget: function initWithTarget(target, action) { + if (this.initWithDuration(action._duration)) { + this._forcedTarget = target; + this._action = action; + return true; + } + return false; + }, + clone: function clone() { + var action = new cc.TargetedAction(); + this._cloneDecoration(action); + action.initWithTarget(this._forcedTarget, this._action.clone()); + return action; + }, + startWithTarget: function startWithTarget(target) { + cc.ActionInterval.prototype.startWithTarget.call(this, target); + this._action.startWithTarget(this._forcedTarget); + }, + stop: function stop() { + this._action.stop(); + }, + update: function update(dt) { + dt = this._computeEaseTime(dt); + this._action.update(dt); + }, + getForcedTarget: function getForcedTarget() { + return this._forcedTarget; + }, + setForcedTarget: function setForcedTarget(forcedTarget) { + this._forcedTarget !== forcedTarget && (this._forcedTarget = forcedTarget); + } + }); + cc.targetedAction = function(target, action) { + return new cc.TargetedAction(target, action); + }; + }), {} ], + 7: [ (function(require, module, exports) { + "use strict"; + require("../core/platform/CCClass"); + var js = require("../core/platform/js"); + var HashElement = function HashElement() { + this.actions = []; + this.target = null; + this.actionIndex = 0; + this.currentAction = null; + this.paused = false; + this.lock = false; + }; + cc.ActionManager = function() { + this._hashTargets = js.createMap(true); + this._arrayTargets = []; + this._currentTarget = null; + cc.director._scheduler && cc.director._scheduler.enableForTarget(this); + }; + cc.ActionManager.prototype = { + constructor: cc.ActionManager, + _elementPool: [], + _searchElementByTarget: function _searchElementByTarget(arr, target) { + for (var k = 0; k < arr.length; k++) if (target === arr[k].target) return arr[k]; + return null; + }, + _getElement: function _getElement(target, paused) { + var element = this._elementPool.pop(); + element || (element = new HashElement()); + element.target = target; + element.paused = !!paused; + return element; + }, + _putElement: function _putElement(element) { + element.actions.length = 0; + element.actionIndex = 0; + element.currentAction = null; + element.paused = false; + element.target = null; + element.lock = false; + this._elementPool.push(element); + }, + addAction: function addAction(action, target, paused) { + if (!action || !target) { + cc.errorID(1e3); + return; + } + var element = this._hashTargets[target._id]; + if (element) element.actions || (element.actions = []); else { + element = this._getElement(target, paused); + this._hashTargets[target._id] = element; + this._arrayTargets.push(element); + } + element.actions.push(action); + action.startWithTarget(target); + }, + removeAllActions: function removeAllActions() { + var locTargets = this._arrayTargets; + for (var i = 0; i < locTargets.length; i++) { + var element = locTargets[i]; + element && this._putElement(element); + } + this._arrayTargets.length = 0; + this._hashTargets = js.createMap(true); + }, + removeAllActionsFromTarget: function removeAllActionsFromTarget(target, forceDelete) { + if (null == target) return; + var element = this._hashTargets[target._id]; + if (element) { + element.actions.length = 0; + this._deleteHashElement(element); + } + }, + removeAction: function removeAction(action) { + if (!action) return; + var target = action.getOriginalTarget(); + var element = this._hashTargets[target._id]; + if (!element) return; + for (var i = 0; i < element.actions.length; i++) if (element.actions[i] === action) { + element.actions.splice(i, 1); + element.actionIndex >= i && element.actionIndex--; + break; + } + }, + _removeActionByTag: function _removeActionByTag(tag, element, target) { + for (var i = 0, l = element.actions.length; i < l; ++i) { + var action = element.actions[i]; + if (action && action.getTag() === tag) { + if (target && action.getOriginalTarget() !== target) continue; + this._removeActionAtIndex(i, element); + break; + } + } + }, + removeActionByTag: function removeActionByTag(tag, target) { + tag === cc.Action.TAG_INVALID && cc.logID(1002); + var hashTargets = this._hashTargets; + if (target) { + var element = hashTargets[target._id]; + element && this._removeActionByTag(tag, element, target); + } else for (var name in hashTargets) { + var _element = hashTargets[name]; + this._removeActionByTag(tag, _element); + } + }, + getActionByTag: function getActionByTag(tag, target) { + tag === cc.Action.TAG_INVALID && cc.logID(1004); + var element = this._hashTargets[target._id]; + if (element) { + if (null != element.actions) for (var i = 0; i < element.actions.length; ++i) { + var action = element.actions[i]; + if (action && action.getTag() === tag) return action; + } + cc.logID(1005, tag); + } + return null; + }, + getNumberOfRunningActionsInTarget: function getNumberOfRunningActionsInTarget(target) { + var element = this._hashTargets[target._id]; + if (element) return element.actions ? element.actions.length : 0; + return 0; + }, + pauseTarget: function pauseTarget(target) { + var element = this._hashTargets[target._id]; + element && (element.paused = true); + }, + resumeTarget: function resumeTarget(target) { + var element = this._hashTargets[target._id]; + element && (element.paused = false); + }, + pauseAllRunningActions: function pauseAllRunningActions() { + var idsWithActions = []; + var locTargets = this._arrayTargets; + for (var i = 0; i < locTargets.length; i++) { + var element = locTargets[i]; + if (element && !element.paused) { + element.paused = true; + idsWithActions.push(element.target); + } + } + return idsWithActions; + }, + resumeTargets: function resumeTargets(targetsToResume) { + if (!targetsToResume) return; + for (var i = 0; i < targetsToResume.length; i++) targetsToResume[i] && this.resumeTarget(targetsToResume[i]); + }, + pauseTargets: function pauseTargets(targetsToPause) { + if (!targetsToPause) return; + for (var i = 0; i < targetsToPause.length; i++) targetsToPause[i] && this.pauseTarget(targetsToPause[i]); + }, + purgeSharedManager: function purgeSharedManager() { + cc.director.getScheduler().unscheduleUpdate(this); + }, + _removeActionAtIndex: function _removeActionAtIndex(index, element) { + var action = element.actions[index]; + element.actions.splice(index, 1); + element.actionIndex >= index && element.actionIndex--; + 0 === element.actions.length && this._deleteHashElement(element); + }, + _deleteHashElement: function _deleteHashElement(element) { + var ret = false; + if (element && !element.lock && this._hashTargets[element.target._id]) { + delete this._hashTargets[element.target._id]; + var targets = this._arrayTargets; + for (var i = 0, l = targets.length; i < l; i++) if (targets[i] === element) { + targets.splice(i, 1); + break; + } + this._putElement(element); + ret = true; + } + return ret; + }, + update: function update(dt) { + var locTargets = this._arrayTargets, locCurrTarget; + for (var elt = 0; elt < locTargets.length; elt++) { + this._currentTarget = locTargets[elt]; + locCurrTarget = this._currentTarget; + if (!locCurrTarget.paused && locCurrTarget.actions) { + locCurrTarget.lock = true; + for (locCurrTarget.actionIndex = 0; locCurrTarget.actionIndex < locCurrTarget.actions.length; locCurrTarget.actionIndex++) { + locCurrTarget.currentAction = locCurrTarget.actions[locCurrTarget.actionIndex]; + if (!locCurrTarget.currentAction) continue; + locCurrTarget.currentAction.step(dt * (locCurrTarget.currentAction._speedMethod ? locCurrTarget.currentAction._speed : 1)); + if (locCurrTarget.currentAction && locCurrTarget.currentAction.isDone()) { + locCurrTarget.currentAction.stop(); + var action = locCurrTarget.currentAction; + locCurrTarget.currentAction = null; + this.removeAction(action); + } + locCurrTarget.currentAction = null; + } + locCurrTarget.lock = false; + } + 0 === locCurrTarget.actions.length && this._deleteHashElement(locCurrTarget) && elt--; + } + } + }; + false; + }), { + "../core/platform/CCClass": 121, + "../core/platform/js": 142 + } ], + 8: [ (function(require, module, exports) { + "use strict"; + require("./CCActionManager"); + require("./CCAction"); + require("./CCActionInterval"); + require("./CCActionInstant"); + require("./CCActionEase"); + require("./CCActionCatmullRom"); + require("./tween"); + }), { + "./CCAction": 2, + "./CCActionCatmullRom": 3, + "./CCActionEase": 4, + "./CCActionInstant": 5, + "./CCActionInterval": 6, + "./CCActionManager": 7, + "./tween": 9 + } ], + 9: [ (function(require, module, exports) { + "use strict"; + var _bezier = require("../animation/bezier"); + var _tweenID = 0; + var TweenAction = cc.Class({ + name: "cc.TweenAction", + extends: cc.ActionInterval, + ctor: function ctor(duration, props, opts) { + this._opts = opts = opts || Object.create(null); + this._props = Object.create(null); + opts.progress = opts.progress || this.progress; + if (opts.easing && "string" === typeof opts.easing) { + var easingName = opts.easing; + opts.easing = cc.easing[easingName]; + !opts.easing && cc.warnID(1031, easingName); + } + var relative = this._opts.relative; + for (var name in props) { + var value = props[name]; + var easing = void 0, progress = void 0; + if (void 0 !== value.value && (value.easing || value.progress)) { + if ("string" === typeof value.easing) { + easing = cc.easing[value.easing]; + !easing && cc.warnID(1031, value.easing); + } else easing = value.easing; + progress = value.progress; + value = value.value; + } + var isNumber = "number" === typeof value; + if (!isNumber && (!value.lerp || relative && !value.add && !value.mul || !value.clone)) { + cc.warn("Can not animate " + name + " property, because it do not have [lerp, (add|mul), clone] function."); + continue; + } + var prop = Object.create(null); + prop.value = value; + prop.easing = easing; + prop.progress = progress; + this._props[name] = prop; + } + this._originProps = props; + this.initWithDuration(duration); + }, + clone: function clone() { + var action = new TweenAction(this._duration, this._originProps, this._opts); + this._cloneDecoration(action); + return action; + }, + startWithTarget: function startWithTarget(target) { + cc.ActionInterval.prototype.startWithTarget.call(this, target); + var relative = !!this._opts.relative; + var props = this._props; + for (var name in props) { + var value = target[name]; + var prop = props[name]; + if ("number" === typeof value) { + prop.start = value; + prop.current = value; + prop.end = relative ? value + prop.value : prop.value; + } else { + prop.start = value.clone(); + prop.current = value.clone(); + prop.end = relative ? (value.add || value.mul).call(value, prop.value) : prop.value; + } + } + }, + update: function update(t) { + var opts = this._opts; + var easingTime = t; + opts.easing && (easingTime = opts.easing(t)); + var target = this.target; + if (!target) return; + var props = this._props; + var progress = opts.progress; + for (var name in props) { + var prop = props[name]; + var time = prop.easing ? prop.easing(t) : easingTime; + var current = prop.current = (prop.progress || progress)(prop.start, prop.end, prop.current, time); + target[name] = current; + } + var onUpdate = opts.onUpdate; + onUpdate && onUpdate(target, t); + }, + progress: function progress(start, end, current, t) { + "number" === typeof start ? current = start + (end - start) * t : start.lerp(end, t, current); + return current; + } + }); + var SetAction = cc.Class({ + name: "cc.SetAction", + extends: cc.ActionInstant, + ctor: function ctor(props) { + this._props = {}; + void 0 !== props && this.init(props); + }, + init: function init(props) { + for (var name in props) this._props[name] = props[name]; + return true; + }, + update: function update() { + var props = this._props; + var target = this.target; + for (var name in props) target[name] = props[name]; + }, + clone: function clone() { + var action = new SetAction(); + action.init(this._props); + return action; + } + }); + function Tween(target) { + this._actions = []; + this._finalAction = null; + this._target = target; + this._tag = cc.Action.TAG_INVALID; + } + Tween.stopAll = function() { + cc.director.getActionManager().removeAllActions(); + }; + Tween.stopAllByTag = function(tag) { + cc.director.getActionManager().removeActionByTag(tag); + }; + Tween.stopAllByTarget = function(target) { + cc.director.getActionManager().removeAllActionsFromTarget(target); + }; + Tween.prototype.then = function(other) { + other instanceof cc.Action ? this._actions.push(other.clone()) : this._actions.push(other._union()); + return this; + }; + Tween.prototype.target = function(target) { + this._target = target; + return this; + }; + Tween.prototype.start = function() { + var target = this._target; + if (!target) { + cc.warn("Please set target to tween first"); + return this; + } + if (target instanceof cc.Object && !target.isValid) return; + this._finalAction && cc.director.getActionManager().removeAction(this._finalAction); + this._finalAction = this._union(); + void 0 === target._id && (target._id = ++_tweenID); + this._finalAction.setTag(this._tag); + cc.director.getActionManager().addAction(this._finalAction, target, false); + return this; + }; + Tween.prototype.stop = function() { + this._finalAction && cc.director.getActionManager().removeAction(this._finalAction); + return this; + }; + Tween.prototype.tag = function(tag) { + this._tag = tag; + return this; + }; + Tween.prototype.clone = function(target) { + var action = this._union(); + return cc.tween(target).then(action.clone()); + }; + Tween.prototype.union = function() { + var action = this._union(); + this._actions.length = 0; + this._actions.push(action); + return this; + }; + Tween.prototype._union = function() { + var actions = this._actions; + actions = 1 === actions.length ? actions[0] : cc.sequence(actions); + return actions; + }; + Object.assign(Tween.prototype, { + bezierTo: function bezierTo(duration, c1, c2, to, opts) { + var c0x = c1.x, c0y = c1.y, c1x = c2.x, c1y = c2.y; + opts = opts || Object.create(null); + opts.progress = function(start, end, current, t) { + current.x = (0, _bezier.bezier)(start.x, c0x, c1x, end.x, t); + current.y = (0, _bezier.bezier)(start.y, c0y, c1y, end.y, t); + return current; + }; + return this.to(duration, { + position: to + }, opts); + }, + bezierBy: function bezierBy(duration, c1, c2, to, opts) { + var c0x = c1.x, c0y = c1.y, c1x = c2.x, c1y = c2.y; + opts = opts || Object.create(null); + opts.progress = function(start, end, current, t) { + var sx = start.x, sy = start.y; + current.x = (0, _bezier.bezier)(sx, c0x + sx, c1x + sx, end.x, t); + current.y = (0, _bezier.bezier)(sy, c0y + sy, c1y + sy, end.y, t); + return current; + }; + return this.by(duration, { + position: to + }, opts); + }, + flipX: function flipX() { + var _this = this; + return this.call((function() { + _this._target.scaleX *= -1; + }), this); + }, + flipY: function flipY() { + var _this2 = this; + return this.call((function() { + _this2._target.scaleY *= -1; + }), this); + }, + blink: function blink(duration, times, opts) { + var slice = 1 / times; + opts = opts || Object.create(null); + opts.progress = function(start, end, current, t) { + if (t >= 1) return start; + var m = t % slice; + return m > slice / 2 ? 255 : 0; + }; + return this.to(duration, { + opacity: 1 + }, opts); + } + }); + var tmp_args = []; + function wrapAction(action) { + return function() { + tmp_args.length = 0; + for (var l = arguments.length, i = 0; i < l; i++) { + var arg = tmp_args[i] = arguments[i]; + arg instanceof Tween && (tmp_args[i] = arg._union()); + } + return action.apply(this, tmp_args); + }; + } + var actions = { + to: function to(duration, props, opts) { + opts = opts || Object.create(null); + opts.relative = false; + return new TweenAction(duration, props, opts); + }, + by: function by(duration, props, opts) { + opts = opts || Object.create(null); + opts.relative = true; + return new TweenAction(duration, props, opts); + }, + set: function set(props) { + return new SetAction(props); + }, + delay: cc.delayTime, + call: cc.callFunc, + hide: cc.hide, + show: cc.show, + removeSelf: cc.removeSelf, + sequence: wrapAction(cc.sequence), + parallel: wrapAction(cc.spawn) + }; + var previousAsInputActions = { + repeat: cc.repeat, + repeatForever: function repeatForever(action) { + return cc.repeat(action, 1e9); + }, + reverseTime: cc.reverseTime + }; + var keys = Object.keys(actions); + var _loop = function _loop(i) { + var key = keys[i]; + Tween.prototype[key] = function() { + var action = actions[key].apply(this, arguments); + this._actions.push(action); + return this; + }; + }; + for (var i = 0; i < keys.length; i++) _loop(i); + keys = Object.keys(previousAsInputActions); + var _loop2 = function _loop2(_i) { + var key = keys[_i]; + Tween.prototype[key] = function() { + var actions = this._actions; + var action = arguments[arguments.length - 1]; + var length = arguments.length - 1; + if (action instanceof cc.Tween) action = action._union(); else if (!(action instanceof cc.Action)) { + action = actions[actions.length - 1]; + actions.length -= 1; + length += 1; + } + var args = [ action ]; + for (var _i2 = 0; _i2 < length; _i2++) args.push(arguments[_i2]); + action = previousAsInputActions[key].apply(this, args); + actions.push(action); + return this; + }; + }; + for (var _i = 0; _i < keys.length; _i++) _loop2(_i); + cc.tween = function(target) { + return new Tween(target); + }; + cc.Tween = Tween; + }), { + "../animation/bezier": 15 + } ], + 10: [ (function(require, module, exports) { + "use strict"; + var js = cc.js; + var Playable = require("./playable"); + var _require = require("./animation-curves"), EventAnimCurve = _require.EventAnimCurve, EventInfo = _require.EventInfo; + var WrapModeMask = require("./types").WrapModeMask; + var binarySearch = require("../core/utils/binary-search").binarySearchEpsilon; + function AnimationAnimator(target, animation) { + Playable.call(this); + this.target = target; + this.animation = animation; + this._anims = new js.array.MutableForwardIterator([]); + } + js.extend(AnimationAnimator, Playable); + var p = AnimationAnimator.prototype; + p.playState = function(state, startTime) { + if (!state.clip) return; + state.curveLoaded || initClipData(this.target, state); + state.animator = this; + state.play(); + "number" === typeof startTime && state.setTime(startTime); + this.play(); + }; + p.stopStatesExcept = function(state) { + var iterator = this._anims; + var array = iterator.array; + for (iterator.i = 0; iterator.i < array.length; ++iterator.i) { + var anim = array[iterator.i]; + if (anim === state) continue; + this.stopState(anim); + } + }; + p.addAnimation = function(anim) { + var index = this._anims.array.indexOf(anim); + -1 === index && this._anims.push(anim); + anim._setEventTarget(this.animation); + }; + p.removeAnimation = function(anim) { + var index = this._anims.array.indexOf(anim); + if (index >= 0) { + this._anims.fastRemoveAt(index); + 0 === this._anims.array.length && this.stop(); + } else cc.errorID(3907); + anim.animator = null; + }; + p.sample = function() { + var iterator = this._anims; + var array = iterator.array; + for (iterator.i = 0; iterator.i < array.length; ++iterator.i) { + var anim = array[iterator.i]; + anim.sample(); + } + }; + p.stopState = function(state) { + state && state.stop(); + }; + p.pauseState = function(state) { + state && state.pause(); + }; + p.resumeState = function(state) { + state && state.resume(); + this.isPaused && this.resume(); + }; + p.setStateTime = function(state, time) { + if (void 0 !== time) { + if (state) { + state.setTime(time); + state.sample(); + } + } else { + time = state; + var array = this._anims.array; + for (var i = 0; i < array.length; ++i) { + var anim = array[i]; + anim.setTime(time); + anim.sample(); + } + } + }; + p.onStop = function() { + var iterator = this._anims; + var array = iterator.array; + for (iterator.i = 0; iterator.i < array.length; ++iterator.i) { + var anim = array[iterator.i]; + anim.stop(); + } + }; + p.onPause = function() { + var array = this._anims.array; + for (var i = 0; i < array.length; ++i) { + var anim = array[i]; + anim.pause(); + anim.animator = null; + } + }; + p.onResume = function() { + var array = this._anims.array; + for (var i = 0; i < array.length; ++i) { + var anim = array[i]; + anim.animator = this; + anim.resume(); + } + }; + p._reloadClip = function(state) { + initClipData(this.target, state); + }; + function createBatchedProperty(propPath, firstDotIndex, mainValue, animValue) { + mainValue = mainValue.clone(); + var nextValue = mainValue; + var leftIndex = firstDotIndex + 1; + var rightIndex = propPath.indexOf(".", leftIndex); + while (-1 !== rightIndex) { + var nextName = propPath.slice(leftIndex, rightIndex); + nextValue = nextValue[nextName]; + leftIndex = rightIndex + 1; + rightIndex = propPath.indexOf(".", leftIndex); + } + var lastPropName = propPath.slice(leftIndex); + nextValue[lastPropName] = animValue; + return mainValue; + } + false; + function initClipData(root, state) { + var clip = state.clip; + state.duration = clip.duration; + state.speed = clip.speed; + state.wrapMode = clip.wrapMode; + state.frameRate = clip.sample; + (state.wrapMode & WrapModeMask.Loop) === WrapModeMask.Loop ? state.repeatCount = Infinity : state.repeatCount = 1; + var curves = state.curves = clip.createCurves(state, root); + var events = clip.events; + if (true, events) { + var curve; + for (var i = 0, l = events.length; i < l; i++) { + if (!curve) { + curve = new EventAnimCurve(); + curve.target = root; + curves.push(curve); + } + var eventData = events[i]; + var ratio = eventData.frame / state.duration; + var eventInfo = void 0; + var index = binarySearch(curve.ratios, ratio); + if (index >= 0) eventInfo = curve.events[index]; else { + eventInfo = new EventInfo(); + curve.ratios.push(ratio); + curve.events.push(eventInfo); + } + eventInfo.add(eventData.func, eventData.params); + } + } + } + false; + module.exports = AnimationAnimator; + }), { + "../core/utils/binary-search": 198, + "./animation-curves": 12, + "./playable": 19, + "./types": 20 + } ], + 11: [ (function(require, module, exports) { + "use strict"; + var WrapMode = require("./types").WrapMode; + var _require = require("./animation-curves"), DynamicAnimCurve = _require.DynamicAnimCurve, quickFindIndex = _require.quickFindIndex; + var sampleMotionPaths = require("./motion-path-helper").sampleMotionPaths; + var binarySearch = require("../core/utils/binary-search").binarySearchEpsilon; + var AnimationClip = cc.Class({ + name: "cc.AnimationClip", + extends: cc.Asset, + properties: { + _duration: { + default: 0, + type: cc.Float + }, + duration: { + get: function get() { + return this._duration; + } + }, + sample: { + default: 60 + }, + speed: { + default: 1 + }, + wrapMode: { + default: WrapMode.Normal + }, + curveData: { + default: {}, + visible: false + }, + events: { + default: [], + visible: false + } + }, + statics: { + createWithSpriteFrames: function createWithSpriteFrames(spriteFrames, sample) { + if (!Array.isArray(spriteFrames)) { + cc.errorID(3905); + return null; + } + var clip = new AnimationClip(); + clip.sample = sample || clip.sample; + clip._duration = spriteFrames.length / clip.sample; + var frames = []; + var step = 1 / clip.sample; + for (var i = 0, l = spriteFrames.length; i < l; i++) frames[i] = { + frame: i * step, + value: spriteFrames[i] + }; + clip.curveData = { + comps: { + "cc.Sprite": { + spriteFrame: frames + } + } + }; + return clip; + } + }, + onLoad: function onLoad() { + this._duration = Number.parseFloat(this.duration); + this.speed = Number.parseFloat(this.speed); + this.wrapMode = Number.parseInt(this.wrapMode); + this.frameRate = Number.parseFloat(this.sample); + }, + createPropCurve: function createPropCurve(target, propPath, keyframes) { + var motionPaths = []; + var isMotionPathProp = target instanceof cc.Node && "position" === propPath; + var curve = new DynamicAnimCurve(); + curve.target = target; + curve.prop = propPath; + for (var i = 0, l = keyframes.length; i < l; i++) { + var keyframe = keyframes[i]; + var ratio = keyframe.frame / this.duration; + curve.ratios.push(ratio); + isMotionPathProp && motionPaths.push(keyframe.motionPath); + var curveValue = keyframe.value; + curve.values.push(curveValue); + var curveTypes = keyframe.curve; + if (curveTypes) { + if ("string" === typeof curveTypes) { + curve.types.push(curveTypes); + continue; + } + if (Array.isArray(curveTypes)) { + curveTypes[0] === curveTypes[1] && curveTypes[2] === curveTypes[3] ? curve.types.push(DynamicAnimCurve.Linear) : curve.types.push(DynamicAnimCurve.Bezier(curveTypes)); + continue; + } + } + curve.types.push(DynamicAnimCurve.Linear); + } + isMotionPathProp && sampleMotionPaths(motionPaths, curve, this.duration, this.sample, target); + var ratios = curve.ratios; + var currRatioDif, lastRatioDif; + var canOptimize = true; + var EPSILON = 1e-6; + for (var _i = 1, _l = ratios.length; _i < _l; _i++) { + currRatioDif = ratios[_i] - ratios[_i - 1]; + if (1 === _i) lastRatioDif = currRatioDif; else if (Math.abs(currRatioDif - lastRatioDif) > EPSILON) { + canOptimize = false; + break; + } + } + curve._findFrameIndex = canOptimize ? quickFindIndex : binarySearch; + var firstValue = curve.values[0]; + void 0 === firstValue || null === firstValue || curve._lerp || ("number" === typeof firstValue ? curve._lerp = DynamicAnimCurve.prototype._lerpNumber : firstValue instanceof cc.Quat ? curve._lerp = DynamicAnimCurve.prototype._lerpQuat : firstValue instanceof cc.Vec2 ? curve._lerp = DynamicAnimCurve.prototype._lerpVector2 : firstValue instanceof cc.Vec3 ? curve._lerp = DynamicAnimCurve.prototype._lerpVector3 : firstValue.lerp && (curve._lerp = DynamicAnimCurve.prototype._lerpObject)); + return curve; + }, + createTargetCurves: function createTargetCurves(target, curveData, curves) { + var propsData = curveData.props; + var compsData = curveData.comps; + if (propsData) for (var propPath in propsData) { + var data = propsData[propPath]; + var curve = this.createPropCurve(target, propPath, data); + curves.push(curve); + } + if (compsData) for (var compName in compsData) { + var comp = target.getComponent(compName); + if (!comp) continue; + var compData = compsData[compName]; + for (var _propPath in compData) { + var _data = compData[_propPath]; + var _curve = this.createPropCurve(comp, _propPath, _data); + curves.push(_curve); + } + } + }, + createCurves: function createCurves(state, root) { + var curveData = this.curveData; + var childrenCurveDatas = curveData.paths; + var curves = []; + this.createTargetCurves(root, curveData, curves); + for (var namePath in childrenCurveDatas) { + var target = cc.find(namePath, root); + if (!target) continue; + var childCurveDatas = childrenCurveDatas[namePath]; + this.createTargetCurves(target, childCurveDatas, curves); + } + return curves; + } + }); + cc.AnimationClip = module.exports = AnimationClip; + }), { + "../core/utils/binary-search": 198, + "./animation-curves": 12, + "./motion-path-helper": 18, + "./types": 20 + } ], + 12: [ (function(require, module, exports) { + "use strict"; + var bezierByTime = require("./bezier").bezierByTime; + var binarySearch = require("../core/utils/binary-search").binarySearchEpsilon; + var WrapModeMask = require("./types").WrapModeMask; + var WrappedInfo = require("./types").WrappedInfo; + function computeRatioByType(ratio, type) { + if ("string" === typeof type) { + var func = cc.easing[type]; + func ? ratio = func(ratio) : cc.errorID(3906, type); + } else Array.isArray(type) && (ratio = bezierByTime(type, ratio)); + return ratio; + } + var AnimCurve = cc.Class({ + name: "cc.AnimCurve", + sample: function sample(time, ratio, state) {}, + onTimeChangedManually: void 0 + }); + function quickFindIndex(ratios, ratio) { + var length = ratios.length - 1; + if (0 === length) return 0; + var start = ratios[0]; + if (ratio < start) return 0; + var end = ratios[length]; + if (ratio > end) return ~ratios.length; + ratio = (ratio - start) / (end - start); + var eachLength = 1 / length; + var index = ratio / eachLength; + var floorIndex = 0 | index; + var EPSILON = 1e-6; + if (index - floorIndex < EPSILON) return floorIndex; + if (floorIndex + 1 - index < EPSILON) return floorIndex + 1; + return ~(floorIndex + 1); + } + var DynamicAnimCurve = cc.Class({ + name: "cc.DynamicAnimCurve", + extends: AnimCurve, + ctor: function ctor() { + this._cachedIndex = 0; + }, + properties: { + target: null, + prop: "", + values: [], + ratios: [], + types: [] + }, + _findFrameIndex: binarySearch, + _lerp: void 0, + _lerpNumber: function _lerpNumber(from, to, t) { + return from + (to - from) * t; + }, + _lerpObject: function _lerpObject(from, to, t) { + return from.lerp(to, t); + }, + _lerpQuat: (function() { + var out = cc.quat(); + return function(from, to, t) { + return from.lerp(to, t, out); + }; + })(), + _lerpVector2: (function() { + var out = cc.v2(); + return function(from, to, t) { + return from.lerp(to, t, out); + }; + })(), + _lerpVector3: (function() { + var out = cc.v3(); + return function(from, to, t) { + return from.lerp(to, t, out); + }; + })(), + sample: function sample(time, ratio, state) { + var values = this.values; + var ratios = this.ratios; + var frameCount = ratios.length; + if (0 === frameCount) return; + var shoudRefind = true; + var cachedIndex = this._cachedIndex; + if (cachedIndex < 0) { + cachedIndex = ~cachedIndex; + if (cachedIndex > 0 && cachedIndex < ratios.length) { + var _fromRatio = ratios[cachedIndex - 1]; + var _toRatio = ratios[cachedIndex]; + ratio > _fromRatio && ratio < _toRatio && (shoudRefind = false); + } + } + shoudRefind && (this._cachedIndex = this._findFrameIndex(ratios, ratio)); + var value; + var index = this._cachedIndex; + if (index < 0) { + index = ~index; + if (index <= 0) value = values[0]; else if (index >= frameCount) value = values[frameCount - 1]; else { + var fromVal = values[index - 1]; + if (this._lerp) { + var fromRatio = ratios[index - 1]; + var toRatio = ratios[index]; + var type = this.types[index - 1]; + var ratioBetweenFrames = (ratio - fromRatio) / (toRatio - fromRatio); + type && (ratioBetweenFrames = computeRatioByType(ratioBetweenFrames, type)); + var toVal = values[index]; + value = this._lerp(fromVal, toVal, ratioBetweenFrames); + } else value = fromVal; + } + } else value = values[index]; + this.target[this.prop] = value; + } + }); + DynamicAnimCurve.Linear = null; + DynamicAnimCurve.Bezier = function(controlPoints) { + return controlPoints; + }; + var EventInfo = function EventInfo() { + this.events = []; + }; + EventInfo.prototype.add = function(func, params) { + this.events.push({ + func: func || "", + params: params || [] + }); + }; + var EventAnimCurve = cc.Class({ + name: "cc.EventAnimCurve", + extends: AnimCurve, + properties: { + target: null, + ratios: [], + events: [], + _wrappedInfo: { + default: function _default() { + return new WrappedInfo(); + } + }, + _lastWrappedInfo: null, + _ignoreIndex: NaN + }, + _wrapIterations: function _wrapIterations(iterations) { + iterations - (0 | iterations) === 0 && (iterations -= 1); + return 0 | iterations; + }, + sample: function sample(time, ratio, state) { + var length = this.ratios.length; + var currentWrappedInfo = state.getWrappedInfo(state.time, this._wrappedInfo); + var direction = currentWrappedInfo.direction; + var currentIndex = binarySearch(this.ratios, currentWrappedInfo.ratio); + if (currentIndex < 0) { + currentIndex = ~currentIndex - 1; + direction < 0 && (currentIndex += 1); + } + this._ignoreIndex !== currentIndex && (this._ignoreIndex = NaN); + currentWrappedInfo.frameIndex = currentIndex; + if (!this._lastWrappedInfo) { + this._fireEvent(currentIndex); + this._lastWrappedInfo = new WrappedInfo(currentWrappedInfo); + return; + } + var wrapMode = state.wrapMode; + var currentIterations = this._wrapIterations(currentWrappedInfo.iterations); + var lastWrappedInfo = this._lastWrappedInfo; + var lastIterations = this._wrapIterations(lastWrappedInfo.iterations); + var lastIndex = lastWrappedInfo.frameIndex; + var lastDirection = lastWrappedInfo.direction; + var interationsChanged = -1 !== lastIterations && currentIterations !== lastIterations; + if (lastIndex === currentIndex && interationsChanged && 1 === length) this._fireEvent(0); else if (lastIndex !== currentIndex || interationsChanged) { + direction = lastDirection; + do { + if (lastIndex !== currentIndex) { + if (-1 === direction && 0 === lastIndex && currentIndex > 0) { + (wrapMode & WrapModeMask.PingPong) === WrapModeMask.PingPong ? direction *= -1 : lastIndex = length; + lastIterations++; + } else if (1 === direction && lastIndex === length - 1 && currentIndex < length - 1) { + (wrapMode & WrapModeMask.PingPong) === WrapModeMask.PingPong ? direction *= -1 : lastIndex = -1; + lastIterations++; + } + if (lastIndex === currentIndex) break; + if (lastIterations > currentIterations) break; + } + lastIndex += direction; + cc.director.getAnimationManager().pushDelayEvent(this, "_fireEvent", [ lastIndex ]); + } while (lastIndex !== currentIndex && lastIndex > -1 && lastIndex < length); + } + this._lastWrappedInfo.set(currentWrappedInfo); + }, + _fireEvent: function _fireEvent(index) { + if (index < 0 || index >= this.events.length || this._ignoreIndex === index) return; + var eventInfo = this.events[index]; + var events = eventInfo.events; + if (!this.target.isValid) return; + var components = this.target._components; + for (var i = 0; i < events.length; i++) { + var event = events[i]; + var funcName = event.func; + for (var j = 0; j < components.length; j++) { + var component = components[j]; + var func = component[funcName]; + func && func.apply(component, event.params); + } + } + }, + onTimeChangedManually: function onTimeChangedManually(time, state) { + this._lastWrappedInfo = null; + this._ignoreIndex = NaN; + var info = state.getWrappedInfo(time, this._wrappedInfo); + var direction = info.direction; + var frameIndex = binarySearch(this.ratios, info.ratio); + if (frameIndex < 0) { + frameIndex = ~frameIndex - 1; + direction < 0 && (frameIndex += 1); + this._ignoreIndex = frameIndex; + } + } + }); + false; + module.exports = { + AnimCurve: AnimCurve, + DynamicAnimCurve: DynamicAnimCurve, + EventAnimCurve: EventAnimCurve, + EventInfo: EventInfo, + computeRatioByType: computeRatioByType, + quickFindIndex: quickFindIndex + }; + }), { + "../core/utils/binary-search": 198, + "./bezier": 15, + "./types": 20 + } ], + 13: [ (function(require, module, exports) { + "use strict"; + var js = cc.js; + var AnimationManager = cc.Class({ + ctor: function ctor() { + this._anims = new js.array.MutableForwardIterator([]); + this._delayEvents = []; + cc.director._scheduler && cc.director._scheduler.enableForTarget(this); + }, + update: function update(dt) { + var iterator = this._anims; + var array = iterator.array; + for (iterator.i = 0; iterator.i < array.length; ++iterator.i) { + var anim = array[iterator.i]; + anim._isPlaying && !anim._isPaused && anim.update(dt); + } + var events = this._delayEvents; + for (var i = 0; i < events.length; i++) { + var event = events[i]; + event.target[event.func].apply(event.target, event.args); + } + events.length = 0; + }, + destruct: function destruct() {}, + addAnimation: function addAnimation(anim) { + var index = this._anims.array.indexOf(anim); + -1 === index && this._anims.push(anim); + }, + removeAnimation: function removeAnimation(anim) { + var index = this._anims.array.indexOf(anim); + index >= 0 ? this._anims.fastRemoveAt(index) : cc.errorID(3907); + }, + pushDelayEvent: function pushDelayEvent(target, func, args) { + this._delayEvents.push({ + target: target, + func: func, + args: args + }); + } + }); + cc.AnimationManager = module.exports = AnimationManager; + }), {} ], + 14: [ (function(require, module, exports) { + "use strict"; + var js = cc.js; + var Playable = require("./playable"); + var Types = require("./types"); + var WrappedInfo = Types.WrappedInfo; + var WrapMode = Types.WrapMode; + var WrapModeMask = Types.WrapModeMask; + function AnimationState(clip, name) { + Playable.call(this); + this._currentFramePlayed = false; + this._delay = 0; + this._delayTime = 0; + this._wrappedInfo = new WrappedInfo(); + this._lastWrappedInfo = null; + this._process = process; + this._clip = clip; + this._name = name || clip && clip.name; + this.animator = null; + this.curves = []; + this.delay = 0; + this.repeatCount = 1; + this.duration = 1; + this.speed = 1; + this.wrapMode = WrapMode.Normal; + this.time = 0; + this._target = null; + this._lastframeEventOn = false; + this.emit = function() { + var args = new Array(arguments.length); + for (var i = 0, l = args.length; i < l; i++) args[i] = arguments[i]; + cc.director.getAnimationManager().pushDelayEvent(this, "_emit", args); + }; + } + js.extend(AnimationState, Playable); + var proto = AnimationState.prototype; + proto._emit = function(type, state) { + this._target && this._target.isValid && this._target.emit(type, type, state); + }; + proto.on = function(type, callback, target) { + if (this._target && this._target.isValid) { + "lastframe" === type && (this._lastframeEventOn = true); + return this._target.on(type, callback, target); + } + return null; + }; + proto.once = function(type, callback, target) { + if (this._target && this._target.isValid) { + "lastframe" === type && (this._lastframeEventOn = true); + var self = this; + return this._target.once(type, (function(event) { + callback.call(target, event); + self._lastframeEventOn = false; + })); + } + return null; + }; + proto.off = function(type, callback, target) { + if (this._target && this._target.isValid) { + "lastframe" === type && (this._target.hasEventListener(type) || (this._lastframeEventOn = false)); + this._target.off(type, callback, target); + } + }; + proto._setEventTarget = function(target) { + this._target = target; + }; + proto.onPlay = function() { + this.setTime(0); + this._delayTime = this._delay; + cc.director.getAnimationManager().addAnimation(this); + this.animator && this.animator.addAnimation(this); + this.emit("play", this); + }; + proto.onStop = function() { + this.isPaused || cc.director.getAnimationManager().removeAnimation(this); + this.animator && this.animator.removeAnimation(this); + this.emit("stop", this); + }; + proto.onResume = function() { + cc.director.getAnimationManager().addAnimation(this); + this.emit("resume", this); + }; + proto.onPause = function() { + cc.director.getAnimationManager().removeAnimation(this); + this.emit("pause", this); + }; + proto.setTime = function(time) { + this._currentFramePlayed = false; + this.time = time || 0; + var curves = this.curves; + for (var i = 0, l = curves.length; i < l; i++) { + var curve = curves[i]; + curve.onTimeChangedManually && curve.onTimeChangedManually(time, this); + } + }; + function process() { + var info = this.sample(); + if (this._lastframeEventOn) { + var lastInfo; + lastInfo = this._lastWrappedInfo ? this._lastWrappedInfo : this._lastWrappedInfo = new WrappedInfo(info); + this.repeatCount > 1 && (0 | info.iterations) > (0 | lastInfo.iterations) && this.emit("lastframe", this); + lastInfo.set(info); + } + if (info.stopped) { + this.stop(); + this.emit("finished", this); + } + } + function simpleProcess() { + var time = this.time; + var duration = this.duration; + if (time > duration) { + time %= duration; + 0 === time && (time = duration); + } else if (time < 0) { + time %= duration; + 0 !== time && (time += duration); + } + var ratio = time / duration; + var curves = this.curves; + for (var i = 0, len = curves.length; i < len; i++) { + var curve = curves[i]; + curve.sample(time, ratio, this); + } + if (this._lastframeEventOn) { + void 0 === this._lastIterations && (this._lastIterations = ratio); + (this.time > 0 && this._lastIterations > ratio || this.time < 0 && this._lastIterations < ratio) && this.emit("lastframe", this); + this._lastIterations = ratio; + } + } + proto.update = function(delta) { + if (this._delayTime > 0) { + this._delayTime -= delta; + if (this._delayTime > 0) return; + } + this._currentFramePlayed ? this.time += delta * this.speed : this._currentFramePlayed = true; + this._process(); + }; + proto._needRevers = function(currentIterations) { + var wrapMode = this.wrapMode; + var needRevers = false; + if ((wrapMode & WrapModeMask.PingPong) === WrapModeMask.PingPong) { + var isEnd = currentIterations - (0 | currentIterations) === 0; + isEnd && currentIterations > 0 && (currentIterations -= 1); + var isOddIteration = 1 & currentIterations; + isOddIteration && (needRevers = !needRevers); + } + (wrapMode & WrapModeMask.Reverse) === WrapModeMask.Reverse && (needRevers = !needRevers); + return needRevers; + }; + proto.getWrappedInfo = function(time, info) { + info = info || new WrappedInfo(); + var stopped = false; + var duration = this.duration; + var repeatCount = this.repeatCount; + var currentIterations = time > 0 ? time / duration : -time / duration; + if (currentIterations >= repeatCount) { + currentIterations = repeatCount; + stopped = true; + var tempRatio = repeatCount - (0 | repeatCount); + 0 === tempRatio && (tempRatio = 1); + time = tempRatio * duration * (time > 0 ? 1 : -1); + } + if (time > duration) { + var tempTime = time % duration; + time = 0 === tempTime ? duration : tempTime; + } else if (time < 0) { + time %= duration; + 0 !== time && (time += duration); + } + var needRevers = false; + var shouldWrap = this._wrapMode & WrapModeMask.ShouldWrap; + shouldWrap && (needRevers = this._needRevers(currentIterations)); + var direction = needRevers ? -1 : 1; + this.speed < 0 && (direction *= -1); + shouldWrap && needRevers && (time = duration - time); + info.ratio = time / duration; + info.time = time; + info.direction = direction; + info.stopped = stopped; + info.iterations = currentIterations; + return info; + }; + proto.sample = function() { + var info = this.getWrappedInfo(this.time, this._wrappedInfo); + var curves = this.curves; + for (var i = 0, len = curves.length; i < len; i++) { + var curve = curves[i]; + curve.sample(info.time, info.ratio, this); + } + return info; + }; + js.get(proto, "clip", (function() { + return this._clip; + })); + js.get(proto, "name", (function() { + return this._name; + })); + js.obsolete(proto, "AnimationState.length", "duration"); + js.getset(proto, "curveLoaded", (function() { + return this.curves.length > 0; + }), (function() { + this.curves.length = 0; + })); + js.getset(proto, "wrapMode", (function() { + return this._wrapMode; + }), (function(value) { + this._wrapMode = value; + false; + this.time = 0; + value & WrapModeMask.Loop ? this.repeatCount = Infinity : this.repeatCount = 1; + })); + js.getset(proto, "repeatCount", (function() { + return this._repeatCount; + }), (function(value) { + this._repeatCount = value; + var shouldWrap = this._wrapMode & WrapModeMask.ShouldWrap; + var reverse = (this.wrapMode & WrapModeMask.Reverse) === WrapModeMask.Reverse; + this._process = Infinity !== value || shouldWrap || reverse ? process : simpleProcess; + })); + js.getset(proto, "delay", (function() { + return this._delay; + }), (function(value) { + this._delayTime = this._delay = value; + })); + cc.AnimationState = module.exports = AnimationState; + }), { + "./playable": 19, + "./types": 20 + } ], + 15: [ (function(require, module, exports) { + "use strict"; + function bezier(C1, C2, C3, C4, t) { + var t1 = 1 - t; + return t1 * (t1 * (C1 + (3 * C2 - C1) * t) + 3 * C3 * t * t) + C4 * t * t * t; + } + var cos = Math.cos, acos = Math.acos, max = Math.max, pi = Math.PI, tau = 2 * pi, sqrt = Math.sqrt; + function crt(v) { + return v < 0 ? -Math.pow(-v, 1 / 3) : Math.pow(v, 1 / 3); + } + function cardano(curve, x) { + var pa = x - 0; + var pb = x - curve[0]; + var pc = x - curve[2]; + var pd = x - 1; + var pa3 = 3 * pa; + var pb3 = 3 * pb; + var pc3 = 3 * pc; + var d = -pa + pb3 - pc3 + pd, rd = 1 / d, r3 = 1 / 3, a = (pa3 - 6 * pb + pc3) * rd, a3 = a * r3, b = (-pa3 + pb3) * rd, c = pa * rd, p = (3 * b - a * a) * r3, p3 = p * r3, q = (2 * a * a * a - 9 * a * b + 27 * c) / 27, q2 = q / 2, discriminant = q2 * q2 + p3 * p3 * p3, u1, v1, x1, x2, x3; + if (discriminant < 0) { + var mp3 = -p * r3, mp33 = mp3 * mp3 * mp3, r = sqrt(mp33), t = -q / (2 * r), cosphi = t < -1 ? -1 : t > 1 ? 1 : t, phi = acos(cosphi), crtr = crt(r), t1 = 2 * crtr; + x1 = t1 * cos(phi * r3) - a3; + x2 = t1 * cos((phi + tau) * r3) - a3; + x3 = t1 * cos((phi + 2 * tau) * r3) - a3; + return 0 <= x1 && x1 <= 1 ? 0 <= x2 && x2 <= 1 ? 0 <= x3 && x3 <= 1 ? max(x1, x2, x3) : max(x1, x2) : 0 <= x3 && x3 <= 1 ? max(x1, x3) : x1 : 0 <= x2 && x2 <= 1 ? 0 <= x3 && x3 <= 1 ? max(x2, x3) : x2 : x3; + } + if (0 === discriminant) { + u1 = q2 < 0 ? crt(-q2) : -crt(q2); + x1 = 2 * u1 - a3; + x2 = -u1 - a3; + return 0 <= x1 && x1 <= 1 ? 0 <= x2 && x2 <= 1 ? max(x1, x2) : x1 : x2; + } + var sd = sqrt(discriminant); + u1 = crt(-q2 + sd); + v1 = crt(q2 + sd); + x1 = u1 - v1 - a3; + return x1; + } + function bezierByTime(controlPoints, x) { + var percent = cardano(controlPoints, x); + var p1y = controlPoints[1]; + var p2y = controlPoints[3]; + return ((1 - percent) * (p1y + (p2y - p1y) * percent) * 3 + percent * percent) * percent; + } + false; + module.exports = { + bezier: bezier, + bezierByTime: bezierByTime + }; + }), {} ], + 16: [ (function(require, module, exports) { + "use strict"; + var easing = { + constant: function constant() { + return 0; + }, + linear: function linear(k) { + return k; + }, + quadIn: function quadIn(k) { + return k * k; + }, + quadOut: function quadOut(k) { + return k * (2 - k); + }, + quadInOut: function quadInOut(k) { + if ((k *= 2) < 1) return .5 * k * k; + return -.5 * (--k * (k - 2) - 1); + }, + cubicIn: function cubicIn(k) { + return k * k * k; + }, + cubicOut: function cubicOut(k) { + return --k * k * k + 1; + }, + cubicInOut: function cubicInOut(k) { + if ((k *= 2) < 1) return .5 * k * k * k; + return .5 * ((k -= 2) * k * k + 2); + }, + quartIn: function quartIn(k) { + return k * k * k * k; + }, + quartOut: function quartOut(k) { + return 1 - --k * k * k * k; + }, + quartInOut: function quartInOut(k) { + if ((k *= 2) < 1) return .5 * k * k * k * k; + return -.5 * ((k -= 2) * k * k * k - 2); + }, + quintIn: function quintIn(k) { + return k * k * k * k * k; + }, + quintOut: function quintOut(k) { + return --k * k * k * k * k + 1; + }, + quintInOut: function quintInOut(k) { + if ((k *= 2) < 1) return .5 * k * k * k * k * k; + return .5 * ((k -= 2) * k * k * k * k + 2); + }, + sineIn: function sineIn(k) { + return 1 - Math.cos(k * Math.PI / 2); + }, + sineOut: function sineOut(k) { + return Math.sin(k * Math.PI / 2); + }, + sineInOut: function sineInOut(k) { + return .5 * (1 - Math.cos(Math.PI * k)); + }, + expoIn: function expoIn(k) { + return 0 === k ? 0 : Math.pow(1024, k - 1); + }, + expoOut: function expoOut(k) { + return 1 === k ? 1 : 1 - Math.pow(2, -10 * k); + }, + expoInOut: function expoInOut(k) { + if (0 === k) return 0; + if (1 === k) return 1; + if ((k *= 2) < 1) return .5 * Math.pow(1024, k - 1); + return .5 * (2 - Math.pow(2, -10 * (k - 1))); + }, + circIn: function circIn(k) { + return 1 - Math.sqrt(1 - k * k); + }, + circOut: function circOut(k) { + return Math.sqrt(1 - --k * k); + }, + circInOut: function circInOut(k) { + if ((k *= 2) < 1) return -.5 * (Math.sqrt(1 - k * k) - 1); + return .5 * (Math.sqrt(1 - (k -= 2) * k) + 1); + }, + elasticIn: function elasticIn(k) { + var s, a = .1, p = .4; + if (0 === k) return 0; + if (1 === k) return 1; + if (!a || a < 1) { + a = 1; + s = p / 4; + } else s = p * Math.asin(1 / a) / (2 * Math.PI); + return -a * Math.pow(2, 10 * (k -= 1)) * Math.sin((k - s) * (2 * Math.PI) / p); + }, + elasticOut: function elasticOut(k) { + var s, a = .1, p = .4; + if (0 === k) return 0; + if (1 === k) return 1; + if (!a || a < 1) { + a = 1; + s = p / 4; + } else s = p * Math.asin(1 / a) / (2 * Math.PI); + return a * Math.pow(2, -10 * k) * Math.sin((k - s) * (2 * Math.PI) / p) + 1; + }, + elasticInOut: function elasticInOut(k) { + var s, a = .1, p = .4; + if (0 === k) return 0; + if (1 === k) return 1; + if (!a || a < 1) { + a = 1; + s = p / 4; + } else s = p * Math.asin(1 / a) / (2 * Math.PI); + if ((k *= 2) < 1) return a * Math.pow(2, 10 * (k -= 1)) * Math.sin((k - s) * (2 * Math.PI) / p) * -.5; + return a * Math.pow(2, -10 * (k -= 1)) * Math.sin((k - s) * (2 * Math.PI) / p) * .5 + 1; + }, + backIn: function backIn(k) { + var s = 1.70158; + return k * k * ((s + 1) * k - s); + }, + backOut: function backOut(k) { + var s = 1.70158; + return --k * k * ((s + 1) * k + s) + 1; + }, + backInOut: function backInOut(k) { + var s = 2.5949095; + if ((k *= 2) < 1) return k * k * ((s + 1) * k - s) * .5; + return .5 * ((k -= 2) * k * ((s + 1) * k + s) + 2); + }, + bounceIn: function bounceIn(k) { + return 1 - easing.bounceOut(1 - k); + }, + bounceOut: function bounceOut(k) { + return k < 1 / 2.75 ? 7.5625 * k * k : k < 2 / 2.75 ? 7.5625 * (k -= 1.5 / 2.75) * k + .75 : k < 2.5 / 2.75 ? 7.5625 * (k -= 2.25 / 2.75) * k + .9375 : 7.5625 * (k -= 2.625 / 2.75) * k + .984375; + }, + bounceInOut: function bounceInOut(k) { + if (k < .5) return .5 * easing.bounceIn(2 * k); + return .5 * easing.bounceOut(2 * k - 1) + .5; + }, + smooth: function smooth(t) { + if (t <= 0) return 0; + if (t >= 1) return 1; + return t * t * (3 - 2 * t); + }, + fade: function fade(t) { + if (t <= 0) return 0; + if (t >= 1) return 1; + return t * t * t * (t * (6 * t - 15) + 10); + } + }; + function _makeOutIn(fnIn, fnOut) { + return function(k) { + if (k < .5) return fnOut(2 * k) / 2; + return fnIn(2 * k - 1) / 2 + .5; + }; + } + easing.quadOutIn = _makeOutIn(easing.quadIn, easing.quadOut); + easing.cubicOutIn = _makeOutIn(easing.cubicIn, easing.cubicOut); + easing.quartOutIn = _makeOutIn(easing.quartIn, easing.quartOut); + easing.quintOutIn = _makeOutIn(easing.quintIn, easing.quintOut); + easing.sineOutIn = _makeOutIn(easing.sineIn, easing.sineOut); + easing.expoOutIn = _makeOutIn(easing.expoIn, easing.expoOut); + easing.circOutIn = _makeOutIn(easing.circIn, easing.circOut); + easing.backOutIn = _makeOutIn(easing.backIn, easing.backOut); + easing.bounceIn = function(k) { + return 1 - easing.bounceOut(1 - k); + }; + easing.bounceInOut = function(k) { + if (k < .5) return .5 * easing.bounceIn(2 * k); + return .5 * easing.bounceOut(2 * k - 1) + .5; + }; + easing.bounceOutIn = _makeOutIn(easing.bounceIn, easing.bounceOut); + cc.easing = module.exports = easing; + }), {} ], + 17: [ (function(require, module, exports) { + "use strict"; + require("./bezier"); + require("./easing"); + require("./types"); + require("./motion-path-helper"); + require("./animation-curves"); + require("./animation-clip"); + require("./animation-manager"); + require("./animation-state"); + require("./animation-animator"); + }), { + "./animation-animator": 10, + "./animation-clip": 11, + "./animation-curves": 12, + "./animation-manager": 13, + "./animation-state": 14, + "./bezier": 15, + "./easing": 16, + "./motion-path-helper": 18, + "./types": 20 + } ], + 18: [ (function(require, module, exports) { + "use strict"; + var DynamicAnimCurve = require("./animation-curves").DynamicAnimCurve; + var computeRatioByType = require("./animation-curves").computeRatioByType; + var bezier = require("./bezier").bezier; + var binarySearch = require("../core/utils/binary-search").binarySearchEpsilon; + var v2 = cc.v2; + function Curve(points) { + this.points = points || []; + this.beziers = []; + this.ratios = []; + this.progresses = []; + this.length = 0; + this.computeBeziers(); + } + Curve.prototype.computeBeziers = function() { + this.beziers.length = 0; + this.ratios.length = 0; + this.progresses.length = 0; + this.length = 0; + var bezier; + for (var i = 1; i < this.points.length; i++) { + var startPoint = this.points[i - 1]; + var endPoint = this.points[i]; + bezier = new Bezier(); + bezier.start = startPoint.pos; + bezier.startCtrlPoint = startPoint.out; + bezier.end = endPoint.pos; + bezier.endCtrlPoint = endPoint["in"]; + this.beziers.push(bezier); + this.length += bezier.getLength(); + } + var current = 0; + for (var i = 0; i < this.beziers.length; i++) { + bezier = this.beziers[i]; + this.ratios[i] = bezier.getLength() / this.length; + this.progresses[i] = current += this.ratios[i]; + } + return this.beziers; + }; + function Bezier() { + this.start = v2(); + this.end = v2(); + this.startCtrlPoint = v2(); + this.endCtrlPoint = v2(); + } + Bezier.prototype.getPointAt = function(u) { + var t = this.getUtoTmapping(u); + return this.getPoint(t); + }; + Bezier.prototype.getPoint = function(t) { + var x = bezier(this.start.x, this.startCtrlPoint.x, this.endCtrlPoint.x, this.end.x, t); + var y = bezier(this.start.y, this.startCtrlPoint.y, this.endCtrlPoint.y, this.end.y, t); + return new v2(x, y); + }; + Bezier.prototype.getLength = function() { + var lengths = this.getLengths(); + return lengths[lengths.length - 1]; + }; + Bezier.prototype.getLengths = function(divisions) { + divisions || (divisions = this.__arcLengthDivisions ? this.__arcLengthDivisions : 200); + if (this.cacheArcLengths && this.cacheArcLengths.length === divisions + 1) return this.cacheArcLengths; + var cache = []; + var current, last = this.getPoint(0), vector = v2(); + var p, sum = 0; + cache.push(0); + for (p = 1; p <= divisions; p++) { + current = this.getPoint(p / divisions); + vector.x = last.x - current.x; + vector.y = last.y - current.y; + sum += vector.mag(); + cache.push(sum); + last = current; + } + this.cacheArcLengths = cache; + return cache; + }; + Bezier.prototype.getUtoTmapping = function(u, distance) { + var arcLengths = this.getLengths(); + var i = 0, il = arcLengths.length; + var targetArcLength; + targetArcLength = distance || u * arcLengths[il - 1]; + var low = 0, high = il - 1, comparison; + while (low <= high) { + i = Math.floor(low + (high - low) / 2); + comparison = arcLengths[i] - targetArcLength; + if (comparison < 0) { + low = i + 1; + continue; + } + if (comparison > 0) { + high = i - 1; + continue; + } + high = i; + break; + } + i = high; + if (arcLengths[i] === targetArcLength) { + var t = i / (il - 1); + return t; + } + var lengthBefore = arcLengths[i]; + var lengthAfter = arcLengths[i + 1]; + var segmentLength = lengthAfter - lengthBefore; + var segmentFraction = (targetArcLength - lengthBefore) / segmentLength; + var t = (i + segmentFraction) / (il - 1); + return t; + }; + function checkMotionPath(motionPath) { + if (!Array.isArray(motionPath)) return false; + for (var i = 0, l = motionPath.length; i < l; i++) { + var controls = motionPath[i]; + if (!Array.isArray(controls) || 6 !== controls.length) return false; + } + return true; + } + function sampleMotionPaths(motionPaths, data, duration, fps, target) { + function createControlPoints(array) { + if (array instanceof cc.Vec2) return { + in: array, + pos: array, + out: array + }; + if (Array.isArray(array) && 6 === array.length) return { + in: v2(array[2], array[3]), + pos: v2(array[0], array[1]), + out: v2(array[4], array[5]) + }; + return { + in: cc.Vec2.ZERO, + pos: cc.Vec2.ZERO, + out: cc.Vec2.ZERO + }; + } + var values = data.values = data.values.map((function(value) { + Array.isArray(value) && (value = 2 === value.length ? cc.v2(value[0], value[1]) : cc.v3(value[0], value[1], value[2])); + return value; + })); + if (0 === motionPaths.length || 0 === values.length) return; + var motionPathValid = false; + for (var _i = 0; _i < motionPaths.length; _i++) { + var _motionPath = motionPaths[_i]; + if (_motionPath && !checkMotionPath(_motionPath)) { + cc.errorID(3904, target ? target.name : "", "position", _i); + _motionPath = null; + } + if (_motionPath && _motionPath.length > 0) { + motionPathValid = true; + break; + } + } + if (!motionPathValid) return; + if (1 === values.length) return; + var types = data.types; + var ratios = data.ratios; + var newValues = data.values = []; + var newTypes = data.types = []; + var newRatios = data.ratios = []; + function addNewDatas(value, type, ratio) { + newValues.push(value); + newTypes.push(type); + newRatios.push(ratio); + } + var startRatioOffset = 0; + var EPSILON = 1e-6; + var newType = DynamicAnimCurve.Linear; + for (var i = 0, l = motionPaths.length; i < l - 1; i++) { + var motionPath = motionPaths[i]; + var ratio = ratios[i]; + var nextRatio = ratios[i + 1]; + var betweenRatio = nextRatio - ratio; + var value = values[i]; + var nextValue = values[i + 1]; + var type = types[i]; + var results = []; + var progress = startRatioOffset / betweenRatio; + var speed = 1 / (betweenRatio * duration * fps); + var finalProgress; + if (motionPath && motionPath.length > 0) { + var points = []; + points.push(createControlPoints(value)); + for (var j = 0, l2 = motionPath.length; j < l2; j++) { + var controlPoints = createControlPoints(motionPath[j]); + points.push(controlPoints); + } + points.push(createControlPoints(nextValue)); + var curve = new Curve(points); + curve.computeBeziers(); + var progresses = curve.progresses; + while (1 - progress > EPSILON) { + finalProgress = progress; + finalProgress = computeRatioByType(finalProgress, type); + var pos, bezier, normal, length; + if (finalProgress < 0) { + bezier = curve.beziers[0]; + length = (0 - finalProgress) * bezier.getLength(); + normal = bezier.start.sub(bezier.endCtrlPoint).normalize(); + pos = bezier.start.add(normal.mul(length)); + } else if (finalProgress > 1) { + bezier = curve.beziers[curve.beziers.length - 1]; + length = (finalProgress - 1) * bezier.getLength(); + normal = bezier.end.sub(bezier.startCtrlPoint).normalize(); + pos = bezier.end.add(normal.mul(length)); + } else { + var bezierIndex = binarySearch(progresses, finalProgress); + bezierIndex < 0 && (bezierIndex = ~bezierIndex); + finalProgress -= bezierIndex > 0 ? progresses[bezierIndex - 1] : 0; + finalProgress /= curve.ratios[bezierIndex]; + pos = curve.beziers[bezierIndex].getPointAt(finalProgress); + } + results.push(pos); + progress += speed; + } + } else while (1 - progress > EPSILON) { + finalProgress = progress; + finalProgress = computeRatioByType(finalProgress, type); + results.push(value.lerp(nextValue, finalProgress)); + progress += speed; + } + newType = "constant" === type ? type : DynamicAnimCurve.Linear; + for (var j = 0, l2 = results.length; j < l2; j++) { + var newRatio = ratio + startRatioOffset + speed * j * betweenRatio; + addNewDatas(results[j], newType, newRatio); + } + startRatioOffset = Math.abs(progress - 1) > EPSILON ? (progress - 1) * betweenRatio : 0; + } + ratios[ratios.length - 1] !== newRatios[newRatios.length - 1] && addNewDatas(values[values.length - 1], newType, ratios[ratios.length - 1]); + } + false; + module.exports = { + sampleMotionPaths: sampleMotionPaths, + Curve: Curve, + Bezier: Bezier + }; + }), { + "../core/utils/binary-search": 198, + "./animation-curves": 12, + "./bezier": 15 + } ], + 19: [ (function(require, module, exports) { + "use strict"; + var js = cc.js; + var debug = require("../core/CCDebug"); + function Playable() { + this._isPlaying = false; + this._isPaused = false; + this._stepOnce = false; + } + var prototype = Playable.prototype; + js.get(prototype, "isPlaying", (function() { + return this._isPlaying; + }), true); + js.get(prototype, "isPaused", (function() { + return this._isPaused; + }), true); + var virtual = function virtual() {}; + prototype.onPlay = virtual; + prototype.onPause = virtual; + prototype.onResume = virtual; + prototype.onStop = virtual; + prototype.onError = virtual; + prototype.play = function() { + if (this._isPlaying) if (this._isPaused) { + this._isPaused = false; + this.onResume(); + } else this.onError(debug.getError(3912)); else { + this._isPlaying = true; + this.onPlay(); + } + }; + prototype.stop = function() { + if (this._isPlaying) { + this._isPlaying = false; + this.onStop(); + this._isPaused = false; + } + }; + prototype.pause = function() { + if (this._isPlaying && !this._isPaused) { + this._isPaused = true; + this.onPause(); + } + }; + prototype.resume = function() { + if (this._isPlaying && this._isPaused) { + this._isPaused = false; + this.onResume(); + } + }; + prototype.step = function() { + this.pause(); + this._stepOnce = true; + this._isPlaying || this.play(); + }; + module.exports = Playable; + }), { + "../core/CCDebug": 21 + } ], + 20: [ (function(require, module, exports) { + "use strict"; + var WrapModeMask = { + Loop: 2, + ShouldWrap: 4, + PingPong: 22, + Reverse: 36 + }; + var WrapMode = cc.Enum({ + Default: 0, + Normal: 1, + Reverse: WrapModeMask.Reverse, + Loop: WrapModeMask.Loop, + LoopReverse: WrapModeMask.Loop | WrapModeMask.Reverse, + PingPong: WrapModeMask.PingPong, + PingPongReverse: WrapModeMask.PingPong | WrapModeMask.Reverse + }); + cc.WrapMode = WrapMode; + function WrappedInfo(info) { + if (info) { + this.set(info); + return; + } + this.ratio = 0; + this.time = 0; + this.direction = 1; + this.stopped = true; + this.iterations = 0; + this.frameIndex = void 0; + } + WrappedInfo.prototype.set = function(info) { + this.ratio = info.ratio; + this.time = info.time; + this.direction = info.direction; + this.stopped = info.stopped; + this.iterations = info.iterations; + this.frameIndex = info.frameIndex; + }; + module.exports = { + WrapModeMask: WrapModeMask, + WrapMode: WrapMode, + WrappedInfo: WrappedInfo + }; + }), {} ], + 21: [ (function(require, module, exports) { + "use strict"; + var utils = require("./platform/utils"); + var debugInfos = require("../../DebugInfos") || {}; + var ERROR_MAP_URL = "https://github.com/cocos-creator/engine/blob/master/EngineErrorMap.md"; + var logList; + cc.log = cc.warn = cc.error = cc.assert = console.log.bind ? console.log.bind(console) : console.log; + var resetDebugSetting = function resetDebugSetting(mode) { + cc.log = cc.warn = cc.error = cc.assert = function() {}; + if (mode === DebugMode.NONE) return; + if (mode > DebugMode.ERROR) { + var logToWebPage = function logToWebPage(msg) { + if (!cc.game.canvas) return; + if (!logList) { + var logDiv = document.createElement("Div"); + logDiv.setAttribute("id", "logInfoDiv"); + logDiv.setAttribute("width", "200"); + logDiv.setAttribute("height", cc.game.canvas.height); + var logDivStyle = logDiv.style; + logDivStyle.zIndex = "99999"; + logDivStyle.position = "absolute"; + logDivStyle.top = logDivStyle.left = "0"; + logList = document.createElement("textarea"); + logList.setAttribute("rows", "20"); + logList.setAttribute("cols", "30"); + logList.setAttribute("disabled", "true"); + var logListStyle = logList.style; + logListStyle.backgroundColor = "transparent"; + logListStyle.borderBottom = "1px solid #cccccc"; + logListStyle.borderTopWidth = logListStyle.borderLeftWidth = logListStyle.borderRightWidth = "0px"; + logListStyle.borderTopStyle = logListStyle.borderLeftStyle = logListStyle.borderRightStyle = "none"; + logListStyle.padding = "0px"; + logListStyle.margin = 0; + logDiv.appendChild(logList); + cc.game.canvas.parentNode.appendChild(logDiv); + } + logList.value = logList.value + msg + "\r\n"; + logList.scrollTop = logList.scrollHeight; + }; + cc.error = function() { + logToWebPage("ERROR : " + cc.js.formatStr.apply(null, arguments)); + }; + cc.assert = function(cond, msg) { + if (!cond && msg) { + msg = cc.js.formatStr.apply(null, cc.js.shiftArguments.apply(null, arguments)); + logToWebPage("ASSERT: " + msg); + } + }; + mode !== DebugMode.ERROR_FOR_WEB_PAGE && (cc.warn = function() { + logToWebPage("WARN : " + cc.js.formatStr.apply(null, arguments)); + }); + mode === DebugMode.INFO_FOR_WEB_PAGE && (cc.log = function() { + logToWebPage(cc.js.formatStr.apply(null, arguments)); + }); + } else if (console && console.log.apply) { + console.error || (console.error = console.log); + console.warn || (console.warn = console.log); + false; + console.error.bind ? cc.error = console.error.bind(console) : cc.error = (false, + function() { + return console.error.apply(console, arguments); + }); + cc.assert = function(cond, msg) { + if (!cond) { + msg && (msg = cc.js.formatStr.apply(null, cc.js.shiftArguments.apply(null, arguments))); + false; + false; + throw new Error(msg); + } + }; + } + if (mode !== DebugMode.ERROR) { + false; + console.warn.bind ? cc.warn = console.warn.bind(console) : cc.warn = (false, function() { + return console.warn.apply(console, arguments); + }); + } + false; + if (mode === DebugMode.INFO) { + false, false; + console.log.bind ? cc.log = console.log.bind(console) : cc.log = function() { + return console.log.apply(console, arguments); + }; + } + }; + cc._throw = function(error) { + utils.callInNextTick((function() { + throw error; + })); + }; + function getTypedFormatter(type) { + return function() { + var id = arguments[0]; + var msg = debugInfos[id] || "unknown id"; + if (1 === arguments.length) return msg; + if (2 === arguments.length) return cc.js.formatStr(msg, arguments[1]); + var argsArray = cc.js.shiftArguments.apply(null, arguments); + return cc.js.formatStr.apply(null, [ msg ].concat(argsArray)); + }; + } + var logFormatter = getTypedFormatter("Log"); + cc.logID = function() { + cc.log(logFormatter.apply(null, arguments)); + }; + var warnFormatter = getTypedFormatter("Warning"); + cc.warnID = function() { + cc.warn(warnFormatter.apply(null, arguments)); + }; + var errorFormatter = getTypedFormatter("Error"); + cc.errorID = function() { + cc.error(errorFormatter.apply(null, arguments)); + }; + var assertFormatter = getTypedFormatter("Assert"); + cc.assertID = function(cond) { + if (cond) return; + cc.assert(false, assertFormatter.apply(null, cc.js.shiftArguments.apply(null, arguments))); + }; + var DebugMode = cc.Enum({ + NONE: 0, + INFO: 1, + WARN: 2, + ERROR: 3, + INFO_FOR_WEB_PAGE: 4, + WARN_FOR_WEB_PAGE: 5, + ERROR_FOR_WEB_PAGE: 6 + }); + module.exports = cc.debug = { + DebugMode: DebugMode, + _resetDebugSetting: resetDebugSetting, + getError: getTypedFormatter("ERROR"), + isDisplayStats: function isDisplayStats() { + return !!cc.profiler && cc.profiler.isShowingStats(); + }, + setDisplayStats: function setDisplayStats(displayStats) { + if (cc.profiler && cc.game.renderType !== cc.game.RENDER_TYPE_CANVAS) { + displayStats ? cc.profiler.showStats() : cc.profiler.hideStats(); + cc.game.config.showFPS = !!displayStats; + } + } + }; + }), { + "../../DebugInfos": 1, + "./platform/utils": 145 + } ], + 22: [ (function(require, module, exports) { + "use strict"; + var EventTarget = require("./event/event-target"); + var ComponentScheduler = require("./component-scheduler"); + var NodeActivator = require("./node-activator"); + var Obj = require("./platform/CCObject"); + var game = require("./CCGame"); + var renderer = require("./renderer"); + var eventManager = require("./event-manager"); + var Scheduler = require("./CCScheduler"); + cc.Director = function() { + EventTarget.call(this); + this._paused = false; + this._purgeDirectorInNextLoop = false; + this._winSizeInPoints = null; + this._scene = null; + this._loadingScene = ""; + this._totalFrames = 0; + this._lastUpdate = 0; + this._deltaTime = 0; + this._startTime = 0; + this._maxParticleDeltaTime = 0; + this._scheduler = null; + this._compScheduler = null; + this._nodeActivator = null; + this._actionManager = null; + var self = this; + game.on(game.EVENT_SHOW, (function() { + self._lastUpdate = performance.now(); + })); + game.once(game.EVENT_ENGINE_INITED, this.init, this); + }; + cc.Director.prototype = { + constructor: cc.Director, + init: function init() { + this._totalFrames = 0; + this._lastUpdate = performance.now(); + this._startTime = this._lastUpdate; + this._paused = false; + this._purgeDirectorInNextLoop = false; + this._winSizeInPoints = cc.size(0, 0); + this._scheduler = new Scheduler(); + if (cc.ActionManager) { + this._actionManager = new cc.ActionManager(); + this._scheduler.scheduleUpdate(this._actionManager, Scheduler.PRIORITY_SYSTEM, false); + } else this._actionManager = null; + this.sharedInit(); + return true; + }, + sharedInit: function sharedInit() { + this._compScheduler = new ComponentScheduler(); + this._nodeActivator = new NodeActivator(); + eventManager && eventManager.setEnabled(true); + if (cc.AnimationManager) { + this._animationManager = new cc.AnimationManager(); + this._scheduler.scheduleUpdate(this._animationManager, Scheduler.PRIORITY_SYSTEM, false); + } else this._animationManager = null; + if (cc.CollisionManager) { + this._collisionManager = new cc.CollisionManager(); + this._scheduler.scheduleUpdate(this._collisionManager, Scheduler.PRIORITY_SYSTEM, false); + } else this._collisionManager = null; + if (cc.PhysicsManager) { + this._physicsManager = new cc.PhysicsManager(); + this._scheduler.scheduleUpdate(this._physicsManager, Scheduler.PRIORITY_SYSTEM, false); + } else this._physicsManager = null; + if (cc.Physics3DManager && (false, false)) { + this._physics3DManager = new cc.Physics3DManager(); + this._scheduler.scheduleUpdate(this._physics3DManager, Scheduler.PRIORITY_SYSTEM, false); + } else this._physics3DManager = null; + cc._widgetManager && cc._widgetManager.init(this); + }, + calculateDeltaTime: function calculateDeltaTime(now) { + now || (now = performance.now()); + this._deltaTime = now > this._lastUpdate ? (now - this._lastUpdate) / 1e3 : 0; + (true, this._deltaTime > 1) && (this._deltaTime = 1 / 60); + this._lastUpdate = now; + }, + convertToGL: function convertToGL(uiPoint) { + var container = game.container; + var view = cc.view; + var box = container.getBoundingClientRect(); + var left = box.left + window.pageXOffset - container.clientLeft; + var top = box.top + window.pageYOffset - container.clientTop; + var x = view._devicePixelRatio * (uiPoint.x - left); + var y = view._devicePixelRatio * (top + box.height - uiPoint.y); + return view._isRotated ? cc.v2(view._viewportRect.width - y, x) : cc.v2(x, y); + }, + convertToUI: function convertToUI(glPoint) { + var container = game.container; + var view = cc.view; + var box = container.getBoundingClientRect(); + var left = box.left + window.pageXOffset - container.clientLeft; + var top = box.top + window.pageYOffset - container.clientTop; + var uiPoint = cc.v2(0, 0); + if (view._isRotated) { + uiPoint.x = left + glPoint.y / view._devicePixelRatio; + uiPoint.y = top + box.height - (view._viewportRect.width - glPoint.x) / view._devicePixelRatio; + } else { + uiPoint.x = left + glPoint.x * view._devicePixelRatio; + uiPoint.y = top + box.height - glPoint.y * view._devicePixelRatio; + } + return uiPoint; + }, + end: function end() { + this._purgeDirectorInNextLoop = true; + }, + getWinSize: function getWinSize() { + return cc.size(cc.winSize); + }, + getWinSizeInPixels: function getWinSizeInPixels() { + return cc.size(cc.winSize); + }, + pause: function pause() { + if (this._paused) return; + this._paused = true; + }, + purgeCachedData: function purgeCachedData() { + cc.assetManager.releaseAll(); + }, + purgeDirector: function purgeDirector() { + this._scheduler.unscheduleAll(); + this._compScheduler.unscheduleAll(); + this._nodeActivator.reset(); + eventManager && eventManager.setEnabled(false); + true; + cc.isValid(this._scene) && this._scene.destroy(); + this._scene = null; + cc.renderer.clear(); + cc.assetManager.builtins.clear(); + cc.game.pause(); + cc.assetManager.releaseAll(); + }, + reset: function reset() { + this.purgeDirector(); + eventManager && eventManager.setEnabled(true); + this._actionManager && this._scheduler.scheduleUpdate(this._actionManager, cc.Scheduler.PRIORITY_SYSTEM, false); + this._animationManager && this._scheduler.scheduleUpdate(this._animationManager, cc.Scheduler.PRIORITY_SYSTEM, false); + this._collisionManager && this._scheduler.scheduleUpdate(this._collisionManager, cc.Scheduler.PRIORITY_SYSTEM, false); + this._physicsManager && this._scheduler.scheduleUpdate(this._physicsManager, cc.Scheduler.PRIORITY_SYSTEM, false); + cc.game.resume(); + }, + runSceneImmediate: function runSceneImmediate(scene, onBeforeLoadScene, onLaunched) { + cc.assertID(scene instanceof cc.Scene || scene instanceof cc.SceneAsset, 1216); + scene instanceof cc.SceneAsset && (scene = scene.scene); + (true, true) && console.time("InitScene"); + scene._load(); + (true, true) && console.timeEnd("InitScene"); + (true, true) && console.time("AttachPersist"); + var persistNodeList = Object.keys(game._persistRootNodes).map((function(x) { + return game._persistRootNodes[x]; + })); + for (var i = 0; i < persistNodeList.length; i++) { + var node = persistNodeList[i]; + var existNode = scene.getChildByUuid(node.uuid); + if (existNode) { + var index = existNode.getSiblingIndex(); + existNode._destroyImmediate(); + scene.insertChild(node, index); + } else node.parent = scene; + } + (true, true) && console.timeEnd("AttachPersist"); + var oldScene = this._scene; + true; + (true, true) && console.time("AutoRelease"); + cc.assetManager._releaseManager._autoRelease(oldScene, scene, game._persistRootNodes); + (true, true) && console.timeEnd("AutoRelease"); + (true, true) && console.time("Destroy"); + cc.isValid(oldScene) && oldScene.destroy(); + this._scene = null; + Obj._deferredDestroy(); + (true, true) && console.timeEnd("Destroy"); + onBeforeLoadScene && onBeforeLoadScene(); + this.emit(cc.Director.EVENT_BEFORE_SCENE_LAUNCH, scene); + this._scene = scene; + (true, true) && console.time("Activate"); + scene._activate(); + (true, true) && console.timeEnd("Activate"); + cc.game.resume(); + onLaunched && onLaunched(null, scene); + this.emit(cc.Director.EVENT_AFTER_SCENE_LAUNCH, scene); + }, + runScene: function runScene(scene, onBeforeLoadScene, onLaunched) { + cc.assertID(scene, 1205); + cc.assertID(scene instanceof cc.Scene || scene instanceof cc.SceneAsset, 1216); + scene instanceof cc.SceneAsset && (scene = scene.scene); + scene._load(); + this.once(cc.Director.EVENT_AFTER_DRAW, (function() { + this.runSceneImmediate(scene, onBeforeLoadScene, onLaunched); + }), this); + }, + loadScene: function loadScene(sceneName, onLaunched, _onUnloaded) { + if (this._loadingScene) { + cc.warnID(1208, sceneName, this._loadingScene); + return false; + } + var bundle = cc.assetManager.bundles.find((function(bundle) { + return bundle.getSceneInfo(sceneName); + })); + if (bundle) { + this.emit(cc.Director.EVENT_BEFORE_SCENE_LOADING, sceneName); + this._loadingScene = sceneName; + var self = this; + console.time("LoadScene " + sceneName); + bundle.loadScene(sceneName, (function(err, scene) { + console.timeEnd("LoadScene " + sceneName); + self._loadingScene = ""; + if (err) { + err = "Failed to load scene: " + err; + cc.error(err); + onLaunched && onLaunched(err); + } else self.runSceneImmediate(scene, _onUnloaded, onLaunched); + })); + return true; + } + cc.errorID(1209, sceneName); + return false; + }, + preloadScene: function preloadScene(sceneName, onProgress, onLoaded) { + var bundle = cc.assetManager.bundles.find((function(bundle) { + return bundle.getSceneInfo(sceneName); + })); + if (!bundle) { + cc.errorID(1209, sceneName); + return null; + } + bundle.preloadScene(sceneName, null, onProgress, onLoaded); + }, + resume: function resume() { + if (!this._paused) return; + this._lastUpdate = performance.now(); + this._lastUpdate || cc.logID(1200); + this._paused = false; + this._deltaTime = 0; + }, + setDepthTest: function setDepthTest(value) { + if (!cc.Camera.main) return; + cc.Camera.main.depth = !!value; + }, + setClearColor: function setClearColor(clearColor) { + if (!cc.Camera.main) return; + cc.Camera.main.backgroundColor = clearColor; + }, + getRunningScene: function getRunningScene() { + return this._scene; + }, + getScene: function getScene() { + return this._scene; + }, + getAnimationInterval: function getAnimationInterval() { + return 1e3 / game.getFrameRate(); + }, + setAnimationInterval: function setAnimationInterval(value) { + game.setFrameRate(Math.round(1e3 / value)); + }, + getDeltaTime: function getDeltaTime() { + return this._deltaTime; + }, + getTotalTime: function getTotalTime() { + return performance.now() - this._startTime; + }, + getTotalFrames: function getTotalFrames() { + return this._totalFrames; + }, + isPaused: function isPaused() { + return this._paused; + }, + getScheduler: function getScheduler() { + return this._scheduler; + }, + setScheduler: function setScheduler(scheduler) { + this._scheduler !== scheduler && (this._scheduler = scheduler); + }, + getActionManager: function getActionManager() { + return this._actionManager; + }, + setActionManager: function setActionManager(actionManager) { + if (this._actionManager !== actionManager) { + this._actionManager && this._scheduler.unscheduleUpdate(this._actionManager); + this._actionManager = actionManager; + this._scheduler.scheduleUpdate(this._actionManager, cc.Scheduler.PRIORITY_SYSTEM, false); + } + }, + getAnimationManager: function getAnimationManager() { + return this._animationManager; + }, + getCollisionManager: function getCollisionManager() { + return this._collisionManager; + }, + getPhysicsManager: function getPhysicsManager() { + return this._physicsManager; + }, + getPhysics3DManager: function getPhysics3DManager() { + return this._physics3DManager; + }, + startAnimation: function startAnimation() { + cc.game.resume(); + }, + stopAnimation: function stopAnimation() { + cc.game.pause(); + }, + _resetDeltaTime: function _resetDeltaTime() { + this._lastUpdate = performance.now(); + this._deltaTime = 0; + }, + mainLoop: function(now) { + if (this._purgeDirectorInNextLoop) { + this._purgeDirectorInNextLoop = false; + this.purgeDirector(); + } else { + this.calculateDeltaTime(now); + if (!this._paused) { + this.emit(cc.Director.EVENT_BEFORE_UPDATE); + this._compScheduler.startPhase(); + this._compScheduler.updatePhase(this._deltaTime); + this._scheduler.update(this._deltaTime); + this._compScheduler.lateUpdatePhase(this._deltaTime); + this.emit(cc.Director.EVENT_AFTER_UPDATE); + Obj._deferredDestroy(); + } + this.emit(cc.Director.EVENT_BEFORE_DRAW); + renderer.render(this._scene, this._deltaTime); + this.emit(cc.Director.EVENT_AFTER_DRAW); + eventManager.frameUpdateListeners(); + this._totalFrames++; + } + }, + __fastOn: function __fastOn(type, callback, target) { + this.on(type, callback, target); + }, + __fastOff: function __fastOff(type, callback, target) { + this.off(type, callback, target); + } + }; + cc.js.addon(cc.Director.prototype, EventTarget.prototype); + cc.Director.EVENT_PROJECTION_CHANGED = "director_projection_changed"; + cc.Director.EVENT_BEFORE_SCENE_LOADING = "director_before_scene_loading"; + cc.Director.EVENT_BEFORE_SCENE_LAUNCH = "director_before_scene_launch"; + cc.Director.EVENT_AFTER_SCENE_LAUNCH = "director_after_scene_launch"; + cc.Director.EVENT_BEFORE_UPDATE = "director_before_update"; + cc.Director.EVENT_AFTER_UPDATE = "director_after_update"; + cc.Director.EVENT_BEFORE_VISIT = "director_before_draw"; + cc.Director.EVENT_AFTER_VISIT = "director_before_draw"; + cc.Director.EVENT_BEFORE_DRAW = "director_before_draw"; + cc.Director.EVENT_AFTER_DRAW = "director_after_draw"; + cc.Director.PROJECTION_2D = 0; + cc.Director.PROJECTION_3D = 1; + cc.Director.PROJECTION_CUSTOM = 3; + cc.Director.PROJECTION_DEFAULT = cc.Director.PROJECTION_2D; + cc.Director.EVENT_BEFORE_PHYSICS = "director_before_physics"; + cc.Director.EVENT_AFTER_PHYSICS = "director_after_physics"; + cc.director = new cc.Director(); + module.exports = cc.director; + }), { + "./CCGame": 23, + "./CCScheduler": 27, + "./component-scheduler": 86, + "./event-manager": 112, + "./event/event-target": 114, + "./node-activator": 120, + "./platform/CCObject": 127, + "./renderer": 152 + } ], + 23: [ (function(require, module, exports) { + "use strict"; + var EventTarget = require("./event/event-target"); + require("../audio/CCAudioEngine"); + var debug = require("./CCDebug"); + var renderer = require("./renderer/index.js"); + var dynamicAtlasManager = require("../core/renderer/utils/dynamic-atlas/manager"); + var game = { + EVENT_HIDE: "game_on_hide", + EVENT_SHOW: "game_on_show", + EVENT_RESTART: "game_on_restart", + EVENT_GAME_INITED: "game_inited", + EVENT_ENGINE_INITED: "engine_inited", + EVENT_RENDERER_INITED: "engine_inited", + RENDER_TYPE_CANVAS: 0, + RENDER_TYPE_WEBGL: 1, + RENDER_TYPE_OPENGL: 2, + _persistRootNodes: {}, + _paused: true, + _configLoaded: false, + _isCloning: false, + _prepared: false, + _rendererInitialized: false, + _renderContext: null, + _intervalId: null, + _lastTime: null, + _frameTime: null, + frame: null, + container: null, + canvas: null, + renderType: -1, + config: null, + onStart: null, + setFrameRate: function setFrameRate(frameRate) { + var config = this.config; + config.frameRate = frameRate; + this._intervalId && window.cancelAnimFrame(this._intervalId); + this._intervalId = 0; + this._paused = true; + this._setAnimFrame(); + this._runMainLoop(); + }, + getFrameRate: function getFrameRate() { + return this.config.frameRate; + }, + step: function step() { + cc.director.mainLoop(); + }, + pause: function pause() { + if (this._paused) return; + this._paused = true; + cc.audioEngine && cc.audioEngine._break(); + this._intervalId && window.cancelAnimFrame(this._intervalId); + this._intervalId = 0; + }, + resume: function resume() { + if (!this._paused) return; + this._paused = false; + cc.audioEngine && cc.audioEngine._restore(); + cc.director._resetDeltaTime(); + this._runMainLoop(); + }, + isPaused: function isPaused() { + return this._paused; + }, + restart: function restart() { + cc.director.once(cc.Director.EVENT_AFTER_DRAW, (function() { + for (var id in game._persistRootNodes) game.removePersistRootNode(game._persistRootNodes[id]); + cc.director.getScene().destroy(); + cc.Object._deferredDestroy(); + cc.audioEngine && cc.audioEngine.uncacheAll(); + cc.director.reset(); + game.pause(); + cc.assetManager.builtins.init((function() { + game.onStart(); + game.emit(game.EVENT_RESTART); + })); + })); + }, + end: function end() { + close(); + }, + _initEngine: function _initEngine() { + if (this._rendererInitialized) return; + this._initRenderer(); + true; + this._initEvents(); + this.emit(this.EVENT_ENGINE_INITED); + }, + _loadPreviewScript: function _loadPreviewScript(cb) { + false; + cb(); + }, + _prepareFinished: function _prepareFinished(cb) { + var _this = this; + this._initEngine(); + this._setAnimFrame(); + cc.assetManager.builtins.init((function() { + console.log("Cocos Creator SP v" + cc.ENGINE_VERSION); + _this._prepared = true; + _this._runMainLoop(); + _this.emit(_this.EVENT_GAME_INITED); + cb && cb(); + })); + }, + eventTargetOn: EventTarget.prototype.on, + eventTargetOnce: EventTarget.prototype.once, + on: function on(type, callback, target, once) { + this._prepared && type === this.EVENT_ENGINE_INITED || !this._paused && type === this.EVENT_GAME_INITED ? callback.call(target) : this.eventTargetOn(type, callback, target, once); + }, + once: function once(type, callback, target) { + this._prepared && type === this.EVENT_ENGINE_INITED || !this._paused && type === this.EVENT_GAME_INITED ? callback.call(target) : this.eventTargetOnce(type, callback, target); + }, + prepare: function prepare(cb) { + var _this2 = this; + if (this._prepared) { + cb && cb(); + return; + } + this._loadPreviewScript((function() { + _this2._prepareFinished(cb); + })); + }, + run: function run(config, onStart) { + this._initConfig(config); + this.onStart = onStart; + this.prepare(game.onStart && game.onStart.bind(game)); + }, + addPersistRootNode: function addPersistRootNode(node) { + if (!cc.Node.isNode(node) || !node.uuid) { + cc.warnID(3800); + return; + } + var id = node.uuid; + if (!this._persistRootNodes[id]) { + var scene = cc.director._scene; + if (cc.isValid(scene)) if (node.parent) { + if (!(node.parent instanceof cc.Scene)) { + cc.warnID(3801); + return; + } + if (node.parent !== scene) { + cc.warnID(3802); + return; + } + } else node.parent = scene; + this._persistRootNodes[id] = node; + node._persistNode = true; + cc.assetManager._releaseManager._addPersistNodeRef(node); + } + }, + removePersistRootNode: function removePersistRootNode(node) { + var id = node.uuid || ""; + if (node === this._persistRootNodes[id]) { + delete this._persistRootNodes[id]; + node._persistNode = false; + cc.assetManager._releaseManager._removePersistNodeRef(node); + } + }, + isPersistRootNode: function isPersistRootNode(node) { + return node._persistNode; + }, + _setAnimFrame: function _setAnimFrame() { + this._lastTime = performance.now(); + var frameRate = game.config.frameRate; + this._frameTime = 1e3 / frameRate; + cc.director._maxParticleDeltaTime = this._frameTime / 1e3 * 2; + false, false; + var rAF = window.requestAnimationFrame = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame; + if (60 !== frameRate && 30 !== frameRate) { + window.requestAnimFrame = rAF ? this._stTimeWithRAF : this._stTime; + window.cancelAnimFrame = this._ctTime; + } else { + window.requestAnimFrame = rAF || this._stTime; + window.cancelAnimFrame = window.cancelAnimationFrame || window.cancelRequestAnimationFrame || window.msCancelRequestAnimationFrame || window.mozCancelRequestAnimationFrame || window.oCancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || window.msCancelAnimationFrame || window.mozCancelAnimationFrame || window.webkitCancelAnimationFrame || window.oCancelAnimationFrame || this._ctTime; + } + }, + _stTimeWithRAF: function _stTimeWithRAF(callback) { + var currTime = performance.now(); + var timeToCall = Math.max(0, game._frameTime - (currTime - game._lastTime)); + var id = window.setTimeout((function() { + window.requestAnimationFrame(callback); + }), timeToCall); + game._lastTime = currTime + timeToCall; + return id; + }, + _stTime: function _stTime(callback) { + var currTime = performance.now(); + var timeToCall = Math.max(0, game._frameTime - (currTime - game._lastTime)); + var id = window.setTimeout((function() { + callback(); + }), timeToCall); + game._lastTime = currTime + timeToCall; + return id; + }, + _ctTime: function _ctTime(id) { + window.clearTimeout(id); + }, + _runMainLoop: function _runMainLoop() { + false; + if (!this._prepared) return; + var self = this, _callback, config = self.config, director = cc.director, skip = true, frameRate = config.frameRate; + debug.setDisplayStats(config.showFPS); + _callback = function callback(now) { + if (!self._paused) { + self._intervalId = window.requestAnimFrame(_callback); + if ((true, true) && 30 === frameRate && (skip = !skip)) return; + director.mainLoop(now); + } + }; + self._intervalId = window.requestAnimFrame(_callback); + self._paused = false; + }, + _initConfig: function _initConfig(config) { + "number" !== typeof config.debugMode && (config.debugMode = 0); + config.exposeClassName = !!config.exposeClassName; + "number" !== typeof config.frameRate && (config.frameRate = 60); + var renderMode = config.renderMode; + ("number" !== typeof renderMode || renderMode > 2 || renderMode < 0) && (config.renderMode = 0); + "boolean" !== typeof config.registerSystemEvent && (config.registerSystemEvent = true); + config.showFPS = 1 !== renderMode && !!config.showFPS; + this.collisionMatrix = config.collisionMatrix || []; + this.groupList = config.groupList || []; + debug._resetDebugSetting(config.debugMode); + this.config = config; + this._configLoaded = true; + }, + _determineRenderType: function _determineRenderType() { + var config = this.config, userRenderMode = parseInt(config.renderMode) || 0; + this.renderType = this.RENDER_TYPE_CANVAS; + var supportRender = false; + if (0 === userRenderMode) { + if (cc.sys.capabilities["opengl"]) { + this.renderType = this.RENDER_TYPE_WEBGL; + supportRender = true; + } else if (cc.sys.capabilities["canvas"]) { + this.renderType = this.RENDER_TYPE_CANVAS; + supportRender = true; + } + } else if (1 === userRenderMode && cc.sys.capabilities["canvas"]) { + this.renderType = this.RENDER_TYPE_CANVAS; + supportRender = true; + } else if (2 === userRenderMode && cc.sys.capabilities["opengl"]) { + this.renderType = this.RENDER_TYPE_WEBGL; + supportRender = true; + } + if (!supportRender) throw new Error(debug.getError(3820, userRenderMode)); + }, + _initRenderer: function _initRenderer() { + if (this._rendererInitialized) return; + var el = this.config.id, width, height, localCanvas, localContainer; + false, false; + var addClass = function addClass(element, name) { + var hasClass = (" " + element.className + " ").indexOf(" " + name + " ") > -1; + if (!hasClass) { + element.className && (element.className += " "); + element.className += name; + } + }; + var element = el instanceof HTMLElement ? el : document.querySelector(el) || document.querySelector("#" + el); + if ("CANVAS" === element.tagName) { + width = element.width; + height = element.height; + this.canvas = localCanvas = element; + this.container = localContainer = document.createElement("DIV"); + localCanvas.parentNode && localCanvas.parentNode.insertBefore(localContainer, localCanvas); + } else { + "DIV" !== element.tagName && cc.warnID(3819); + width = element.clientWidth; + height = element.clientHeight; + this.canvas = localCanvas = document.createElement("CANVAS"); + this.container = localContainer = document.createElement("DIV"); + element.appendChild(localContainer); + } + localContainer.setAttribute("id", "Cocos2dGameContainer"); + localContainer.appendChild(localCanvas); + this.frame = localContainer.parentNode === document.body ? document.documentElement : localContainer.parentNode; + addClass(localCanvas, "gameCanvas"); + localCanvas.setAttribute("width", width || 480); + localCanvas.setAttribute("height", height || 320); + localCanvas.setAttribute("tabindex", 99); + this._determineRenderType(); + if (this.renderType === this.RENDER_TYPE_WEBGL) { + var opts = { + stencil: true, + antialias: cc.macro.ENABLE_WEBGL_ANTIALIAS, + alpha: cc.macro.ENABLE_TRANSPARENT_CANVAS + }; + renderer.initWebGL(localCanvas, opts); + this._renderContext = renderer.device._gl; + !cc.macro.CLEANUP_IMAGE_CACHE && dynamicAtlasManager && (dynamicAtlasManager.enabled = true); + } + if (!this._renderContext) { + this.renderType = this.RENDER_TYPE_CANVAS; + renderer.initCanvas(localCanvas); + this._renderContext = renderer.device._ctx; + } + this.canvas.oncontextmenu = function() { + if (!cc._isContextMenuEnable) return false; + }; + this._rendererInitialized = true; + }, + _initEvents: function _initEvents() { + var win = window, hiddenPropName; + this.config.registerSystemEvent && cc.internal.inputManager.registerSystemEvent(this.canvas); + "undefined" !== typeof document.hidden ? hiddenPropName = "hidden" : "undefined" !== typeof document.mozHidden ? hiddenPropName = "mozHidden" : "undefined" !== typeof document.msHidden ? hiddenPropName = "msHidden" : "undefined" !== typeof document.webkitHidden && (hiddenPropName = "webkitHidden"); + var hidden = false; + function onHidden() { + if (!hidden) { + hidden = true; + game.emit(game.EVENT_HIDE); + } + } + function onShown(arg0, arg1, arg2, arg3, arg4) { + if (hidden) { + hidden = false; + game.emit(game.EVENT_SHOW, arg0, arg1, arg2, arg3, arg4); + } + } + if (hiddenPropName) { + var changeList = [ "visibilitychange", "mozvisibilitychange", "msvisibilitychange", "webkitvisibilitychange", "qbrowserVisibilityChange" ]; + for (var i = 0; i < changeList.length; i++) document.addEventListener(changeList[i], (function(event) { + var visible = document[hiddenPropName]; + visible = visible || event["hidden"]; + visible ? onHidden() : onShown(); + })); + } else { + win.addEventListener("blur", onHidden); + win.addEventListener("focus", onShown); + } + navigator.userAgent.indexOf("MicroMessenger") > -1 && (win.onfocus = onShown); + if ("onpageshow" in window && "onpagehide" in window) { + win.addEventListener("pagehide", onHidden); + win.addEventListener("pageshow", onShown); + document.addEventListener("pagehide", onHidden); + document.addEventListener("pageshow", onShown); + } + this.on(game.EVENT_HIDE, (function() { + game.pause(); + })); + this.on(game.EVENT_SHOW, (function() { + game.resume(); + })); + } + }; + EventTarget.call(game); + cc.js.addon(game, EventTarget.prototype); + cc.game = module.exports = game; + }), { + "../audio/CCAudioEngine": void 0, + "../core/renderer/utils/dynamic-atlas/manager": 154, + "./CCDebug": 21, + "./event/event-target": 114, + "./renderer/index.js": 152 + } ], + 24: [ (function(require, module, exports) { + "use strict"; + var _valueTypes = require("./value-types"); + var BaseNode = require("./utils/base-node"); + var PrefabHelper = require("./utils/prefab-helper"); + var nodeMemPool = require("./utils/trans-pool").NodeMemPool; + var AffineTrans = require("./utils/affine-transform"); + var eventManager = require("./event-manager"); + var macro = require("./platform/CCMacro"); + var js = require("./platform/js"); + var Event = require("./event/event"); + var EventTarget = require("./event/event-target"); + var RenderFlow = require("./renderer/render-flow"); + var Flags = cc.Object.Flags; + var Destroying = Flags.Destroying; + var ERR_INVALID_NUMBER = false; + var ONE_DEGREE = Math.PI / 180; + var ActionManagerExist = !!cc.ActionManager; + var emptyFunc = function emptyFunc() {}; + var _gwpVec3 = new _valueTypes.Vec3(); + var _gwpQuat = new _valueTypes.Quat(); + var _tpVec3a = new _valueTypes.Vec3(); + var _tpVec3b = new _valueTypes.Vec3(); + var _tpQuata = new _valueTypes.Quat(); + var _tpQuatb = new _valueTypes.Quat(); + var _swpVec3 = new _valueTypes.Vec3(); + var _gwsVec3 = new _valueTypes.Vec3(); + var _swsVec3 = new _valueTypes.Vec3(); + var _gwrtVec3a = new _valueTypes.Vec3(); + var _gwrtVec3b = new _valueTypes.Vec3(); + var _gwrtQuata = new _valueTypes.Quat(); + var _gwrtQuatb = new _valueTypes.Quat(); + var _laVec3 = new _valueTypes.Vec3(); + var _laQuat = new _valueTypes.Quat(); + var _urfVec3 = new _valueTypes.Vec3(); + var _urfQuat = new _valueTypes.Quat(); + var _htVec3a = new _valueTypes.Vec3(); + var _htVec3b = new _valueTypes.Vec3(); + var _gwrQuat = new _valueTypes.Quat(); + var _swrQuat = new _valueTypes.Quat(); + var _quata = new _valueTypes.Quat(); + var _mat4_temp = cc.mat4(); + var _vec3_temp = new _valueTypes.Vec3(); + var _cachedArray = new Array(16); + _cachedArray.length = 0; + var POSITION_ON = 1; + var SCALE_ON = 2; + var ROTATION_ON = 4; + var SIZE_ON = 8; + var ANCHOR_ON = 16; + var COLOR_ON = 32; + var BuiltinGroupIndex = cc.Enum({ + DEBUG: 31 + }); + var LocalDirtyFlag = cc.Enum({ + POSITION: 1, + SCALE: 2, + ROTATION: 4, + SKEW: 8, + TRS: 7, + RS: 6, + TRSS: 15, + PHYSICS_POSITION: 16, + PHYSICS_SCALE: 32, + PHYSICS_ROTATION: 64, + PHYSICS_TRS: 112, + PHYSICS_RS: 96, + ALL_POSITION: 17, + ALL_SCALE: 34, + ALL_ROTATION: 68, + ALL_TRS: 119, + ALL: 65535 + }); + var EventType = cc.Enum({ + TOUCH_START: "touchstart", + TOUCH_MOVE: "touchmove", + TOUCH_END: "touchend", + TOUCH_CANCEL: "touchcancel", + MOUSE_DOWN: "mousedown", + MOUSE_MOVE: "mousemove", + MOUSE_ENTER: "mouseenter", + MOUSE_LEAVE: "mouseleave", + MOUSE_UP: "mouseup", + MOUSE_WHEEL: "mousewheel", + POSITION_CHANGED: "position-changed", + ROTATION_CHANGED: "rotation-changed", + SCALE_CHANGED: "scale-changed", + SIZE_CHANGED: "size-changed", + ANCHOR_CHANGED: "anchor-changed", + COLOR_CHANGED: "color-changed", + CHILD_ADDED: "child-added", + CHILD_REMOVED: "child-removed", + CHILD_REORDER: "child-reorder", + GROUP_CHANGED: "group-changed", + SIBLING_ORDER_CHANGED: "sibling-order-changed" + }); + var _touchEvents = [ EventType.TOUCH_START, EventType.TOUCH_MOVE, EventType.TOUCH_END, EventType.TOUCH_CANCEL ]; + var _mouseEvents = [ EventType.MOUSE_DOWN, EventType.MOUSE_ENTER, EventType.MOUSE_MOVE, EventType.MOUSE_LEAVE, EventType.MOUSE_UP, EventType.MOUSE_WHEEL ]; + var _skewNeedWarn = true; + var _skewWarn = function _skewWarn(value, node) { + if (0 !== value) { + var nodePath = ""; + var NodeUtils; + false; + _skewNeedWarn && cc.warn("`cc.Node.skewX/Y` is deprecated since v2.2.1, please use 3D node instead.", nodePath); + true, _skewNeedWarn = false; + } + }; + var _currentHovered = null; + var _touchStartHandler = function _touchStartHandler(touch, event) { + var pos = touch.getLocation(); + var node = this.owner; + if (node._hitTest(pos, this)) { + event.type = EventType.TOUCH_START; + event.touch = touch; + event.bubbles = true; + node.dispatchEvent(event); + return true; + } + return false; + }; + var _touchMoveHandler = function _touchMoveHandler(touch, event) { + var node = this.owner; + event.type = EventType.TOUCH_MOVE; + event.touch = touch; + event.bubbles = true; + node.dispatchEvent(event); + }; + var _touchEndHandler = function _touchEndHandler(touch, event) { + var pos = touch.getLocation(); + var node = this.owner; + node._hitTest(pos, this) ? event.type = EventType.TOUCH_END : event.type = EventType.TOUCH_CANCEL; + event.touch = touch; + event.bubbles = true; + node.dispatchEvent(event); + }; + var _touchCancelHandler = function _touchCancelHandler(touch, event) { + var pos = touch.getLocation(); + var node = this.owner; + event.type = EventType.TOUCH_CANCEL; + event.touch = touch; + event.bubbles = true; + node.dispatchEvent(event); + }; + var _mouseDownHandler = function _mouseDownHandler(event) { + var pos = event.getLocation(); + var node = this.owner; + if (node._hitTest(pos, this)) { + event.type = EventType.MOUSE_DOWN; + event.bubbles = true; + node.dispatchEvent(event); + } + }; + var _mouseMoveHandler = function _mouseMoveHandler(event) { + var pos = event.getLocation(); + var node = this.owner; + var hit = node._hitTest(pos, this); + if (hit) { + if (!this._previousIn) { + if (_currentHovered && _currentHovered._mouseListener) { + event.type = EventType.MOUSE_LEAVE; + _currentHovered.dispatchEvent(event); + _currentHovered._mouseListener._previousIn = false; + } + _currentHovered = this.owner; + event.type = EventType.MOUSE_ENTER; + node.dispatchEvent(event); + this._previousIn = true; + } + event.type = EventType.MOUSE_MOVE; + event.bubbles = true; + node.dispatchEvent(event); + } else { + if (!this._previousIn) return; + event.type = EventType.MOUSE_LEAVE; + node.dispatchEvent(event); + this._previousIn = false; + _currentHovered = null; + } + event.stopPropagation(); + }; + var _mouseUpHandler = function _mouseUpHandler(event) { + var pos = event.getLocation(); + var node = this.owner; + if (node._hitTest(pos, this)) { + event.type = EventType.MOUSE_UP; + event.bubbles = true; + node.dispatchEvent(event); + event.stopPropagation(); + } + }; + var _mouseWheelHandler = function _mouseWheelHandler(event) { + var pos = event.getLocation(); + var node = this.owner; + if (node._hitTest(pos, this)) { + event.type = EventType.MOUSE_WHEEL; + event.bubbles = true; + node.dispatchEvent(event); + event.stopPropagation(); + } + }; + function _searchComponentsInParent(node, comp) { + if (comp) { + var index = 0; + var list = null; + for (var curr = node; curr && cc.Node.isNode(curr); curr = curr._parent, ++index) if (curr.getComponent(comp)) { + var next = { + index: index, + node: curr + }; + list ? list.push(next) : list = [ next ]; + } + return list; + } + return null; + } + function _checkListeners(node, events) { + if (!(node._objFlags & Destroying)) { + if (node._bubblingListeners) for (var i = 0, l = events.length; i < l; ++i) if (node._bubblingListeners.hasEventListener(events[i])) return true; + if (node._capturingListeners) for (var _i = 0, _l = events.length; _i < _l; ++_i) if (node._capturingListeners.hasEventListener(events[_i])) return true; + return false; + } + return true; + } + function _doDispatchEvent(owner, event) { + var target, i; + event.target = owner; + _cachedArray.length = 0; + owner._getCapturingTargets(event.type, _cachedArray); + event.eventPhase = 1; + for (i = _cachedArray.length - 1; i >= 0; --i) { + target = _cachedArray[i]; + if (target._capturingListeners) { + event.currentTarget = target; + target._capturingListeners.emit(event.type, event, _cachedArray); + if (event._propagationStopped) { + _cachedArray.length = 0; + return; + } + } + } + _cachedArray.length = 0; + event.eventPhase = 2; + event.currentTarget = owner; + owner._capturingListeners && owner._capturingListeners.emit(event.type, event); + !event._propagationImmediateStopped && owner._bubblingListeners && owner._bubblingListeners.emit(event.type, event); + if (!event._propagationStopped && event.bubbles) { + owner._getBubblingTargets(event.type, _cachedArray); + event.eventPhase = 3; + for (i = 0; i < _cachedArray.length; ++i) { + target = _cachedArray[i]; + if (target._bubblingListeners) { + event.currentTarget = target; + target._bubblingListeners.emit(event.type, event); + if (event._propagationStopped) { + _cachedArray.length = 0; + return; + } + } + } + } + _cachedArray.length = 0; + } + function _getActualGroupIndex(node) { + var groupIndex = node.groupIndex; + 0 === groupIndex && node.parent && (groupIndex = _getActualGroupIndex(node.parent)); + return groupIndex; + } + function _updateCullingMask(node) { + var index = _getActualGroupIndex(node); + node._cullingMask = 1 << index; + false; + for (var i = 0; i < node._children.length; i++) _updateCullingMask(node._children[i]); + } + function updateLocalMatrix3D() { + if (this._localMatDirty & LocalDirtyFlag.TRSS) { + var t = this._matrix; + var tm = t.m; + _valueTypes.Trs.toMat4(t, this._trs); + if (this._skewX || this._skewY) { + var a = tm[0], b = tm[1], c = tm[4], d = tm[5]; + var skx = Math.tan(this._skewX * ONE_DEGREE); + var sky = Math.tan(this._skewY * ONE_DEGREE); + Infinity === skx && (skx = 99999999); + Infinity === sky && (sky = 99999999); + tm[0] = a + c * sky; + tm[1] = b + d * sky; + tm[4] = c + a * skx; + tm[5] = d + b * skx; + } + this._localMatDirty &= ~LocalDirtyFlag.TRSS; + this._worldMatDirty = true; + } + } + function updateLocalMatrix2D() { + var dirtyFlag = this._localMatDirty; + if (!(dirtyFlag & LocalDirtyFlag.TRSS)) return; + var t = this._matrix; + var tm = t.m; + var trs = this._trs; + if (dirtyFlag & (LocalDirtyFlag.RS | LocalDirtyFlag.SKEW)) { + var rotation = -this._eulerAngles.z; + var hasSkew = this._skewX || this._skewY; + var sx = trs[7], sy = trs[8]; + if (rotation || hasSkew) { + var a = 1, b = 0, c = 0, d = 1; + if (rotation) { + var rotationRadians = rotation * ONE_DEGREE; + c = Math.sin(rotationRadians); + d = Math.cos(rotationRadians); + a = d; + b = -c; + } + tm[0] = a *= sx; + tm[1] = b *= sx; + tm[4] = c *= sy; + tm[5] = d *= sy; + if (hasSkew) { + var _a = tm[0], _b = tm[1], _c = tm[4], _d = tm[5]; + var skx = Math.tan(this._skewX * ONE_DEGREE); + var sky = Math.tan(this._skewY * ONE_DEGREE); + Infinity === skx && (skx = 99999999); + Infinity === sky && (sky = 99999999); + tm[0] = _a + _c * sky; + tm[1] = _b + _d * sky; + tm[4] = _c + _a * skx; + tm[5] = _d + _b * skx; + } + } else { + tm[0] = sx; + tm[1] = 0; + tm[4] = 0; + tm[5] = sy; + } + } + tm[12] = trs[0]; + tm[13] = trs[1]; + this._localMatDirty &= ~LocalDirtyFlag.TRSS; + this._worldMatDirty = true; + } + function calculWorldMatrix3D() { + this._localMatDirty & LocalDirtyFlag.TRSS && this._updateLocalMatrix(); + if (this._parent) { + var parentMat = this._parent._worldMatrix; + _valueTypes.Mat4.mul(this._worldMatrix, parentMat, this._matrix); + } else _valueTypes.Mat4.copy(this._worldMatrix, this._matrix); + this._worldMatDirty = false; + } + function calculWorldMatrix2D() { + this._localMatDirty & LocalDirtyFlag.TRSS && this._updateLocalMatrix(); + var parent = this._parent; + parent ? this._mulMat(this._worldMatrix, parent._worldMatrix, this._matrix) : _valueTypes.Mat4.copy(this._worldMatrix, this._matrix); + this._worldMatDirty = false; + } + function mulMat2D(out, a, b) { + var am = a.m, bm = b.m, outm = out.m; + var aa = am[0], ab = am[1], ac = am[4], ad = am[5], atx = am[12], aty = am[13]; + var ba = bm[0], bb = bm[1], bc = bm[4], bd = bm[5], btx = bm[12], bty = bm[13]; + if (0 !== ab || 0 !== ac) { + outm[0] = ba * aa + bb * ac; + outm[1] = ba * ab + bb * ad; + outm[4] = bc * aa + bd * ac; + outm[5] = bc * ab + bd * ad; + outm[12] = aa * btx + ac * bty + atx; + outm[13] = ab * btx + ad * bty + aty; + } else { + outm[0] = ba * aa; + outm[1] = bb * ad; + outm[4] = bc * aa; + outm[5] = bd * ad; + outm[12] = aa * btx + atx; + outm[13] = ad * bty + aty; + } + } + var mulMat3D = _valueTypes.Mat4.mul; + var NodeDefines = { + name: "cc.Node", + extends: BaseNode, + properties: { + _opacity: 255, + _color: cc.Color.WHITE, + _contentSize: cc.Size, + _anchorPoint: cc.v2(.5, .5), + _position: void 0, + _scale: void 0, + _trs: null, + _eulerAngles: cc.Vec3, + _skewX: 0, + _skewY: 0, + _zIndex: { + default: void 0, + type: cc.Integer + }, + _localZOrder: { + default: 0, + serializable: false + }, + _is3DNode: false, + _groupIndex: { + default: 0, + formerlySerializedAs: "groupIndex" + }, + groupIndex: { + get: function get() { + return this._groupIndex; + }, + set: function set(value) { + this._groupIndex = value; + _updateCullingMask(this); + this.emit(EventType.GROUP_CHANGED, this); + } + }, + group: { + get: function get() { + return cc.game.groupList[this.groupIndex] || ""; + }, + set: function set(value) { + this.groupIndex = cc.game.groupList.indexOf(value); + } + }, + x: { + get: function get() { + return this._trs[0]; + }, + set: function set(value) { + var trs = this._trs; + if (value !== trs[0]) { + true; + var oldValue; + false; + trs[0] = value; + this.setLocalDirty(LocalDirtyFlag.ALL_POSITION); + if (this._eventMask & POSITION_ON) { + false; + this.emit(EventType.POSITION_CHANGED); + } + } + } + }, + y: { + get: function get() { + return this._trs[1]; + }, + set: function set(value) { + var trs = this._trs; + if (value !== trs[1]) { + true; + var oldValue; + false; + trs[1] = value; + this.setLocalDirty(LocalDirtyFlag.ALL_POSITION); + if (this._eventMask & POSITION_ON) { + false; + this.emit(EventType.POSITION_CHANGED); + } + } + } + }, + z: { + get: function get() { + return this._trs[2]; + }, + set: function set(value) { + var trs = this._trs; + if (value !== trs[2]) { + true; + var oldValue; + false; + trs[2] = value; + this.setLocalDirty(LocalDirtyFlag.ALL_POSITION); + true, this._renderFlag |= RenderFlow.FLAG_WORLD_TRANSFORM; + if (this._eventMask & POSITION_ON) { + false; + this.emit(EventType.POSITION_CHANGED); + } + } + } + }, + rotation: { + get: function get() { + true; + cc.warn("`cc.Node.rotation` is deprecated since v2.1.0, please use `-angle` instead. (`this.node.rotation` -> `-this.node.angle`)"); + return -this.angle; + }, + set: function set(value) { + true; + cc.warn("`cc.Node.rotation` is deprecated since v2.1.0, please set `-angle` instead. (`this.node.rotation = x` -> `this.node.angle = -x`)"); + this.angle = -value; + } + }, + angle: { + get: function get() { + return this._eulerAngles.z; + }, + set: function set(value) { + _valueTypes.Vec3.set(this._eulerAngles, 0, 0, value); + _valueTypes.Trs.fromAngleZ(this._trs, value); + this.setLocalDirty(LocalDirtyFlag.ALL_ROTATION); + this._eventMask & ROTATION_ON && this.emit(EventType.ROTATION_CHANGED); + } + }, + rotationX: { + get: function get() { + true; + cc.warn("`cc.Node.rotationX` is deprecated since v2.1.0, please use `eulerAngles.x` instead. (`this.node.rotationX` -> `this.node.eulerAngles.x`)"); + return this._eulerAngles.x; + }, + set: function set(value) { + true; + cc.warn("`cc.Node.rotationX` is deprecated since v2.1.0, please set `eulerAngles` instead. (`this.node.rotationX = x` -> `this.node.is3DNode = true; this.node.eulerAngles = cc.v3(x, 0, 0)`"); + if (this._eulerAngles.x !== value) { + this._eulerAngles.x = value; + this._eulerAngles.x === this._eulerAngles.y ? _valueTypes.Trs.fromAngleZ(this._trs, -value) : _valueTypes.Trs.fromEulerNumber(this._trs, value, this._eulerAngles.y, 0); + this.setLocalDirty(LocalDirtyFlag.ALL_ROTATION); + this._eventMask & ROTATION_ON && this.emit(EventType.ROTATION_CHANGED); + } + } + }, + rotationY: { + get: function get() { + true; + cc.warn("`cc.Node.rotationY` is deprecated since v2.1.0, please use `eulerAngles.y` instead. (`this.node.rotationY` -> `this.node.eulerAngles.y`)"); + return this._eulerAngles.y; + }, + set: function set(value) { + true; + cc.warn("`cc.Node.rotationY` is deprecated since v2.1.0, please set `eulerAngles` instead. (`this.node.rotationY = y` -> `this.node.is3DNode = true; this.node.eulerAngles = cc.v3(0, y, 0)`"); + if (this._eulerAngles.y !== value) { + this._eulerAngles.y = value; + this._eulerAngles.x === this._eulerAngles.y ? _valueTypes.Trs.fromAngleZ(this._trs, -value) : _valueTypes.Trs.fromEulerNumber(this._trs, this._eulerAngles.x, value, 0); + this.setLocalDirty(LocalDirtyFlag.ALL_ROTATION); + this._eventMask & ROTATION_ON && this.emit(EventType.ROTATION_CHANGED); + } + } + }, + eulerAngles: { + get: function get() { + false; + return _valueTypes.Trs.toEuler(this._eulerAngles, this._trs); + }, + set: function set(v) { + false; + _valueTypes.Trs.fromEuler(this._trs, v); + this.setLocalDirty(LocalDirtyFlag.ALL_ROTATION); + true, this._renderFlag |= RenderFlow.FLAG_TRANSFORM; + this._eventMask & ROTATION_ON && this.emit(EventType.ROTATION_CHANGED); + } + }, + quat: { + get: function get() { + var trs = this._trs; + return new _valueTypes.Quat(trs[3], trs[4], trs[5], trs[6]); + }, + set: function set(v) { + this.setRotation(v); + } + }, + scale: { + get: function get() { + return this._trs[7]; + }, + set: function set(v) { + this.setScale(v); + } + }, + scaleX: { + get: function get() { + return this._trs[7]; + }, + set: function set(value) { + if (this._trs[7] !== value) { + this._trs[7] = value; + this.setLocalDirty(LocalDirtyFlag.ALL_SCALE); + this._eventMask & SCALE_ON && this.emit(EventType.SCALE_CHANGED); + } + } + }, + scaleY: { + get: function get() { + return this._trs[8]; + }, + set: function set(value) { + if (this._trs[8] !== value) { + this._trs[8] = value; + this.setLocalDirty(LocalDirtyFlag.ALL_SCALE); + this._eventMask & SCALE_ON && this.emit(EventType.SCALE_CHANGED); + } + } + }, + scaleZ: { + get: function get() { + return this._trs[9]; + }, + set: function set(value) { + if (this._trs[9] !== value) { + this._trs[9] = value; + this.setLocalDirty(LocalDirtyFlag.ALL_SCALE); + true, this._renderFlag |= RenderFlow.FLAG_TRANSFORM; + this._eventMask & SCALE_ON && this.emit(EventType.SCALE_CHANGED); + } + } + }, + skewX: { + get: function get() { + return this._skewX; + }, + set: function set(value) { + _skewWarn(value, this); + this._skewX = value; + this.setLocalDirty(LocalDirtyFlag.SKEW); + false; + } + }, + skewY: { + get: function get() { + return this._skewY; + }, + set: function set(value) { + _skewWarn(value, this); + this._skewY = value; + this.setLocalDirty(LocalDirtyFlag.SKEW); + false; + } + }, + opacity: { + get: function get() { + return this._opacity; + }, + set: function set(value) { + value = cc.misc.clampf(value, 0, 255); + if (this._opacity !== value) { + this._opacity = value; + false; + this._renderFlag |= RenderFlow.FLAG_OPACITY_COLOR; + } + }, + range: [ 0, 255 ] + }, + color: { + get: function get() { + return this._color.clone(); + }, + set: function set(value) { + if (!this._color.equals(value)) { + this._color.set(value); + false; + this._renderFlag |= RenderFlow.FLAG_COLOR; + this._eventMask & COLOR_ON && this.emit(EventType.COLOR_CHANGED, value); + } + } + }, + anchorX: { + get: function get() { + return this._anchorPoint.x; + }, + set: function set(value) { + var anchorPoint = this._anchorPoint; + if (anchorPoint.x !== value) { + anchorPoint.x = value; + this._eventMask & ANCHOR_ON && this.emit(EventType.ANCHOR_CHANGED); + } + } + }, + anchorY: { + get: function get() { + return this._anchorPoint.y; + }, + set: function set(value) { + var anchorPoint = this._anchorPoint; + if (anchorPoint.y !== value) { + anchorPoint.y = value; + this._eventMask & ANCHOR_ON && this.emit(EventType.ANCHOR_CHANGED); + } + } + }, + width: { + get: function get() { + return this._contentSize.width; + }, + set: function set(value) { + if (value !== this._contentSize.width) { + var clone; + false; + this._contentSize.width = value; + if (this._eventMask & SIZE_ON) { + false; + this.emit(EventType.SIZE_CHANGED); + } + } + } + }, + height: { + get: function get() { + return this._contentSize.height; + }, + set: function set(value) { + if (value !== this._contentSize.height) { + var clone; + false; + this._contentSize.height = value; + if (this._eventMask & SIZE_ON) { + false; + this.emit(EventType.SIZE_CHANGED); + } + } + } + }, + zIndex: { + get: function get() { + return this._localZOrder >> 16; + }, + set: function set(value) { + if (value > macro.MAX_ZINDEX) { + cc.warnID(1636); + value = macro.MAX_ZINDEX; + } else if (value < macro.MIN_ZINDEX) { + cc.warnID(1637); + value = macro.MIN_ZINDEX; + } + if (this.zIndex !== value) { + this._localZOrder = 65535 & this._localZOrder | value << 16; + this.emit(EventType.SIBLING_ORDER_CHANGED); + this._onSiblingIndexChanged(); + } + } + }, + is3DNode: { + get: function get() { + return this._is3DNode; + }, + set: function set(v) { + this._is3DNode = v; + this._update3DFunction(); + } + }, + up: { + get: function get() { + var _up = _valueTypes.Vec3.transformQuat(_urfVec3, _valueTypes.Vec3.UP, this.getWorldRotation(_urfQuat)); + return _up.clone(); + } + }, + right: { + get: function get() { + var _right = _valueTypes.Vec3.transformQuat(_urfVec3, _valueTypes.Vec3.RIGHT, this.getWorldRotation(_urfQuat)); + return _right.clone(); + } + }, + forward: { + get: function get() { + var _forward = _valueTypes.Vec3.transformQuat(_urfVec3, _valueTypes.Vec3.FORWARD, this.getWorldRotation(_urfQuat)); + return _forward.clone(); + } + } + }, + ctor: function ctor() { + this._reorderChildDirty = false; + this._widget = null; + this._renderComponent = null; + this._capturingListeners = null; + this._bubblingListeners = null; + this._touchListener = null; + this._mouseListener = null; + this._initDataFromPool(); + this._eventMask = 0; + this._cullingMask = 1; + this._childArrivalOrder = 1; + false; + this._renderFlag = RenderFlow.FLAG_TRANSFORM | RenderFlow.FLAG_OPACITY_COLOR; + }, + statics: { + EventType: EventType, + _LocalDirtyFlag: LocalDirtyFlag, + isNode: function isNode(obj) { + return obj instanceof Node && (obj.constructor === Node || !(obj instanceof cc.Scene)); + }, + BuiltinGroupIndex: BuiltinGroupIndex + }, + _onSiblingIndexChanged: function _onSiblingIndexChanged() { + this._parent && this._parent._delaySort(); + }, + _onPreDestroy: function _onPreDestroy() { + var destroyByParent = this._onPreDestroyBase(); + ActionManagerExist && cc.director.getActionManager().removeAllActionsFromTarget(this); + _currentHovered === this && (_currentHovered = null); + this._bubblingListeners && this._bubblingListeners.clear(); + this._capturingListeners && this._capturingListeners.clear(); + if (this._touchListener || this._mouseListener) { + eventManager.removeListeners(this); + if (this._touchListener) { + this._touchListener.owner = null; + this._touchListener.mask = null; + this._touchListener = null; + } + if (this._mouseListener) { + this._mouseListener.owner = null; + this._mouseListener.mask = null; + this._mouseListener = null; + } + } + false; + this._backDataIntoPool(); + this._reorderChildDirty && cc.director.__fastOff(cc.Director.EVENT_AFTER_UPDATE, this.sortAllChildren, this); + destroyByParent || false; + }, + _onPostActivated: function _onPostActivated(active) { + var actionManager = ActionManagerExist ? cc.director.getActionManager() : null; + if (active) { + this._renderFlag |= RenderFlow.FLAG_WORLD_TRANSFORM; + actionManager && actionManager.resumeTarget(this); + eventManager.resumeTarget(this); + this._checkListenerMask(); + } else { + actionManager && actionManager.pauseTarget(this); + eventManager.pauseTarget(this); + } + }, + _onHierarchyChanged: function _onHierarchyChanged(oldParent) { + this._updateOrderOfArrival(); + _updateCullingMask(this); + this._parent && this._parent._delaySort(); + this._renderFlag |= RenderFlow.FLAG_WORLD_TRANSFORM; + this._onHierarchyChangedBase(oldParent); + cc._widgetManager && (cc._widgetManager._nodesOrderDirty = true); + oldParent && this._activeInHierarchy && this._checkListenerMask(); + false; + }, + _update3DFunction: function _update3DFunction() { + if (this._is3DNode) { + this._updateLocalMatrix = updateLocalMatrix3D; + this._calculWorldMatrix = calculWorldMatrix3D; + this._mulMat = mulMat3D; + } else { + this._updateLocalMatrix = updateLocalMatrix2D; + this._calculWorldMatrix = calculWorldMatrix2D; + this._mulMat = mulMat2D; + } + this._renderComponent && this._renderComponent._on3DNodeChanged && this._renderComponent._on3DNodeChanged(); + this._renderFlag |= RenderFlow.FLAG_TRANSFORM; + this._localMatDirty = LocalDirtyFlag.ALL; + false; + }, + _initDataFromPool: function _initDataFromPool() { + if (!this._spaceInfo) { + false, false; + this._spaceInfo = nodeMemPool.pop(); + } + var spaceInfo = this._spaceInfo; + this._matrix = cc.mat4(spaceInfo.localMat); + _valueTypes.Mat4.identity(this._matrix); + this._worldMatrix = cc.mat4(spaceInfo.worldMat); + _valueTypes.Mat4.identity(this._worldMatrix); + this._localMatDirty = LocalDirtyFlag.ALL; + this._worldMatDirty = true; + var trs = this._trs = spaceInfo.trs; + trs[0] = 0; + trs[1] = 0; + trs[2] = 0; + trs[3] = 0; + trs[4] = 0; + trs[5] = 0; + trs[6] = 1; + trs[7] = 1; + trs[8] = 1; + trs[9] = 1; + }, + _backDataIntoPool: function _backDataIntoPool() { + if (!(false, false)) { + nodeMemPool.push(this._spaceInfo); + this._matrix = null; + this._worldMatrix = null; + this._trs = null; + this._spaceInfo = null; + } + }, + _toEuler: function _toEuler() { + if (this.is3DNode) _valueTypes.Trs.toEuler(this._eulerAngles, this._trs); else { + var z = Math.asin(this._trs[5]) / ONE_DEGREE * 2; + _valueTypes.Vec3.set(this._eulerAngles, 0, 0, z); + } + }, + _fromEuler: function _fromEuler() { + this.is3DNode ? _valueTypes.Trs.fromEuler(this._trs, this._eulerAngles) : _valueTypes.Trs.fromAngleZ(this._trs, this._eulerAngles.z); + }, + _initProperties: function _initProperties() { + this._is3DNode && this._update3DFunction(); + var trs = this._trs; + if (trs) { + var desTrs = trs; + trs = this._trs = this._spaceInfo.trs; + 11 === desTrs.length ? trs.set(desTrs.subarray(1)) : trs.set(desTrs); + } else trs = this._trs = this._spaceInfo.trs; + var NodeUtils; + false; + this._fromEuler(); + false; + }, + _onBatchCreated: function _onBatchCreated(dontSyncChildPrefab) { + this._initProperties(); + this._cullingMask = 1 << _getActualGroupIndex(this); + false; + if (!this._activeInHierarchy) { + ActionManagerExist && cc.director.getActionManager().pauseTarget(this); + eventManager.pauseTarget(this); + } + var children = this._children; + for (var i = 0, len = children.length; i < len; i++) { + var child = children[i]; + if (!dontSyncChildPrefab) { + var prefabInfo = child._prefab; + prefabInfo && prefabInfo.sync && prefabInfo.root === child && PrefabHelper.syncWithPrefab(child); + child._updateOrderOfArrival(); + } + child._onBatchCreated(dontSyncChildPrefab); + } + children.length > 0 && (this._renderFlag |= RenderFlow.FLAG_CHILDREN); + false; + }, + _checkListenerMask: function _checkListenerMask() { + if (this._touchListener) { + var mask = this._touchListener.mask = _searchComponentsInParent(this, cc.Mask); + this._mouseListener && (this._mouseListener.mask = mask); + } else this._mouseListener && (this._mouseListener.mask = _searchComponentsInParent(this, cc.Mask)); + }, + _checknSetupSysEvent: function _checknSetupSysEvent(type) { + var newAdded = false; + var forDispatch = false; + if (-1 !== _touchEvents.indexOf(type)) { + if (!this._touchListener) { + this._touchListener = cc.EventListener.create({ + event: cc.EventListener.TOUCH_ONE_BY_ONE, + swallowTouches: true, + owner: this, + mask: _searchComponentsInParent(this, cc.Mask), + onTouchBegan: _touchStartHandler, + onTouchMoved: _touchMoveHandler, + onTouchEnded: _touchEndHandler, + onTouchCancelled: _touchCancelHandler + }); + eventManager.addListener(this._touchListener, this); + newAdded = true; + } + forDispatch = true; + } else if (-1 !== _mouseEvents.indexOf(type)) { + if (!this._mouseListener) { + this._mouseListener = cc.EventListener.create({ + event: cc.EventListener.MOUSE, + _previousIn: false, + owner: this, + mask: _searchComponentsInParent(this, cc.Mask), + onMouseDown: _mouseDownHandler, + onMouseMove: _mouseMoveHandler, + onMouseUp: _mouseUpHandler, + onMouseScroll: _mouseWheelHandler + }); + eventManager.addListener(this._mouseListener, this); + newAdded = true; + } + forDispatch = true; + } + newAdded && !this._activeInHierarchy && cc.director.getScheduler().schedule((function() { + this._activeInHierarchy || eventManager.pauseTarget(this); + }), this, 0, 0, 0, false); + return forDispatch; + }, + on: function on(type, callback, target, useCapture) { + var forDispatch = this._checknSetupSysEvent(type); + if (forDispatch) return this._onDispatch(type, callback, target, useCapture); + switch (type) { + case EventType.POSITION_CHANGED: + this._eventMask |= POSITION_ON; + break; + + case EventType.SCALE_CHANGED: + this._eventMask |= SCALE_ON; + break; + + case EventType.ROTATION_CHANGED: + this._eventMask |= ROTATION_ON; + break; + + case EventType.SIZE_CHANGED: + this._eventMask |= SIZE_ON; + break; + + case EventType.ANCHOR_CHANGED: + this._eventMask |= ANCHOR_ON; + break; + + case EventType.COLOR_CHANGED: + this._eventMask |= COLOR_ON; + } + this._bubblingListeners || (this._bubblingListeners = new EventTarget()); + return this._bubblingListeners.on(type, callback, target); + }, + once: function once(type, callback, target, useCapture) { + var _this = this; + var forDispatch = this._checknSetupSysEvent(type); + var listeners = null; + listeners = forDispatch && useCapture ? this._capturingListeners = this._capturingListeners || new EventTarget() : this._bubblingListeners = this._bubblingListeners || new EventTarget(); + listeners.once(type, callback, target); + listeners.once(type, (function() { + _this.off(type, callback, target); + }), void 0); + }, + _onDispatch: function _onDispatch(type, callback, target, useCapture) { + if ("boolean" === typeof target) { + useCapture = target; + target = void 0; + } else useCapture = !!useCapture; + if (!callback) { + cc.errorID(6800); + return; + } + var listeners = null; + listeners = useCapture ? this._capturingListeners = this._capturingListeners || new EventTarget() : this._bubblingListeners = this._bubblingListeners || new EventTarget(); + if (!listeners.hasEventListener(type, callback, target)) { + listeners.on(type, callback, target); + target && target.__eventTargets && target.__eventTargets.push(this); + } + return callback; + }, + off: function off(type, callback, target, useCapture) { + var touchEvent = -1 !== _touchEvents.indexOf(type); + var mouseEvent = !touchEvent && -1 !== _mouseEvents.indexOf(type); + if (touchEvent || mouseEvent) { + this._offDispatch(type, callback, target, useCapture); + if (touchEvent) { + if (this._touchListener && !_checkListeners(this, _touchEvents)) { + eventManager.removeListener(this._touchListener); + this._touchListener = null; + } + } else if (mouseEvent && this._mouseListener && !_checkListeners(this, _mouseEvents)) { + eventManager.removeListener(this._mouseListener); + this._mouseListener = null; + } + } else if (this._bubblingListeners) { + this._bubblingListeners.off(type, callback, target); + var hasListeners = this._bubblingListeners.hasEventListener(type); + if (!hasListeners) switch (type) { + case EventType.POSITION_CHANGED: + this._eventMask &= ~POSITION_ON; + break; + + case EventType.SCALE_CHANGED: + this._eventMask &= ~SCALE_ON; + break; + + case EventType.ROTATION_CHANGED: + this._eventMask &= ~ROTATION_ON; + break; + + case EventType.SIZE_CHANGED: + this._eventMask &= ~SIZE_ON; + break; + + case EventType.ANCHOR_CHANGED: + this._eventMask &= ~ANCHOR_ON; + break; + + case EventType.COLOR_CHANGED: + this._eventMask &= ~COLOR_ON; + } + } + }, + _offDispatch: function _offDispatch(type, callback, target, useCapture) { + if ("boolean" === typeof target) { + useCapture = target; + target = void 0; + } else useCapture = !!useCapture; + if (callback) { + var listeners = useCapture ? this._capturingListeners : this._bubblingListeners; + if (listeners) { + listeners.off(type, callback, target); + target && target.__eventTargets && js.array.fastRemove(target.__eventTargets, this); + } + } else { + this._capturingListeners && this._capturingListeners.removeAll(type); + this._bubblingListeners && this._bubblingListeners.removeAll(type); + } + }, + targetOff: function targetOff(target) { + var listeners = this._bubblingListeners; + if (listeners) { + listeners.targetOff(target); + this._eventMask & POSITION_ON && !listeners.hasEventListener(EventType.POSITION_CHANGED) && (this._eventMask &= ~POSITION_ON); + this._eventMask & SCALE_ON && !listeners.hasEventListener(EventType.SCALE_CHANGED) && (this._eventMask &= ~SCALE_ON); + this._eventMask & ROTATION_ON && !listeners.hasEventListener(EventType.ROTATION_CHANGED) && (this._eventMask &= ~ROTATION_ON); + this._eventMask & SIZE_ON && !listeners.hasEventListener(EventType.SIZE_CHANGED) && (this._eventMask &= ~SIZE_ON); + this._eventMask & ANCHOR_ON && !listeners.hasEventListener(EventType.ANCHOR_CHANGED) && (this._eventMask &= ~ANCHOR_ON); + this._eventMask & COLOR_ON && !listeners.hasEventListener(EventType.COLOR_CHANGED) && (this._eventMask &= ~COLOR_ON); + } + this._capturingListeners && this._capturingListeners.targetOff(target); + target && target.__eventTargets && js.array.fastRemove(target.__eventTargets, this); + if (this._touchListener && !_checkListeners(this, _touchEvents)) { + eventManager.removeListener(this._touchListener); + this._touchListener = null; + } + if (this._mouseListener && !_checkListeners(this, _mouseEvents)) { + eventManager.removeListener(this._mouseListener); + this._mouseListener = null; + } + }, + hasEventListener: function hasEventListener(type) { + var has = false; + this._bubblingListeners && (has = this._bubblingListeners.hasEventListener(type)); + !has && this._capturingListeners && (has = this._capturingListeners.hasEventListener(type)); + return has; + }, + emit: function emit(type, arg1, arg2, arg3, arg4, arg5) { + this._bubblingListeners && this._bubblingListeners.emit(type, arg1, arg2, arg3, arg4, arg5); + }, + dispatchEvent: function dispatchEvent(event) { + _doDispatchEvent(this, event); + _cachedArray.length = 0; + }, + pauseSystemEvents: function pauseSystemEvents(recursive) { + eventManager.pauseTarget(this, recursive); + }, + resumeSystemEvents: function resumeSystemEvents(recursive) { + eventManager.resumeTarget(this, recursive); + }, + _hitTest: function _hitTest(point, listener) { + var w = this._contentSize.width, h = this._contentSize.height, cameraPt = _htVec3a, testPt = _htVec3b; + var camera = cc.Camera.findCamera(this); + camera ? camera.getScreenToWorldPoint(point, cameraPt) : cameraPt.set(point); + this._updateWorldMatrix(); + if (!_valueTypes.Mat4.invert(_mat4_temp, this._worldMatrix)) return false; + _valueTypes.Vec2.transformMat4(testPt, cameraPt, _mat4_temp); + testPt.x += this._anchorPoint.x * w; + testPt.y += this._anchorPoint.y * h; + var hit = false; + if (testPt.x >= 0 && testPt.y >= 0 && testPt.x <= w && testPt.y <= h) { + hit = true; + if (listener && listener.mask) { + var mask = listener.mask; + var parent = this; + var length = mask ? mask.length : 0; + for (var i = 0, j = 0; parent && j < length; ++i, parent = parent.parent) { + var temp = mask[j]; + if (i === temp.index) { + if (parent !== temp.node) { + mask.length = j; + break; + } + var comp = parent.getComponent(cc.Mask); + if (comp && comp._enabled && !comp._hitTest(cameraPt)) { + hit = false; + break; + } + j++; + } else if (i > temp.index) { + mask.length = j; + break; + } + } + } + } + return hit; + }, + _getCapturingTargets: function _getCapturingTargets(type, array) { + var parent = this.parent; + while (parent) { + parent._capturingListeners && parent._capturingListeners.hasEventListener(type) && array.push(parent); + parent = parent.parent; + } + }, + _getBubblingTargets: function _getBubblingTargets(type, array) { + var parent = this.parent; + while (parent) { + parent._bubblingListeners && parent._bubblingListeners.hasEventListener(type) && array.push(parent); + parent = parent.parent; + } + }, + runAction: ActionManagerExist ? function(action) { + if (!this.active) return; + cc.assertID(action, 1618); + var am = cc.director.getActionManager(); + if (!am._suppressDeprecation) { + am._suppressDeprecation = true; + cc.warnID(1639); + } + am.addAction(action, this, false); + return action; + } : emptyFunc, + pauseAllActions: ActionManagerExist ? function() { + cc.director.getActionManager().pauseTarget(this); + } : emptyFunc, + resumeAllActions: ActionManagerExist ? function() { + cc.director.getActionManager().resumeTarget(this); + } : emptyFunc, + stopAllActions: ActionManagerExist ? function() { + cc.director.getActionManager().removeAllActionsFromTarget(this); + } : emptyFunc, + stopAction: ActionManagerExist ? function(action) { + cc.director.getActionManager().removeAction(action); + } : emptyFunc, + stopActionByTag: ActionManagerExist ? function(tag) { + if (tag === cc.Action.TAG_INVALID) { + cc.logID(1612); + return; + } + cc.director.getActionManager().removeActionByTag(tag, this); + } : emptyFunc, + getActionByTag: ActionManagerExist ? function(tag) { + if (tag === cc.Action.TAG_INVALID) { + cc.logID(1613); + return null; + } + return cc.director.getActionManager().getActionByTag(tag, this); + } : function() { + return null; + }, + getNumberOfRunningActions: ActionManagerExist ? function() { + return cc.director.getActionManager().getNumberOfRunningActionsInTarget(this); + } : function() { + return 0; + }, + getPosition: function getPosition(out) { + out = out || new _valueTypes.Vec3(); + return _valueTypes.Trs.toPosition(out, this._trs); + }, + setPosition: function setPosition(newPosOrX, y, z) { + var x; + if (void 0 === y) { + x = newPosOrX.x; + y = newPosOrX.y; + z = newPosOrX.z; + } else x = newPosOrX; + var trs = this._trs; + void 0 === z && (z = trs[2]); + if (trs[0] === x && trs[1] === y && trs[2] === z) return; + var oldPosition; + false; + trs[0] = x; + trs[1] = y; + trs[2] = z; + this.setLocalDirty(LocalDirtyFlag.ALL_POSITION); + true, this._renderFlag |= RenderFlow.FLAG_WORLD_TRANSFORM; + if (this._eventMask & POSITION_ON) { + false; + this.emit(EventType.POSITION_CHANGED); + } + }, + getScale: function getScale(out) { + if (void 0 !== out) return _valueTypes.Trs.toScale(out, this._trs); + cc.errorID(1400, "cc.Node.getScale", "cc.Node.scale or cc.Node.getScale(cc.Vec3)"); + return this._trs[7]; + }, + setScale: function setScale(newScaleOrX, y, z) { + var x; + if (newScaleOrX && "number" !== typeof newScaleOrX) { + x = newScaleOrX.x; + y = newScaleOrX.y; + z = newScaleOrX.z; + } else if (void 0 !== newScaleOrX && void 0 === y) { + x = newScaleOrX; + y = newScaleOrX; + z = newScaleOrX; + } else x = newScaleOrX; + var trs = this._trs; + void 0 === z && (z = trs[9]); + if (trs[7] !== x || trs[8] !== y || trs[9] !== z) { + trs[7] = x; + trs[8] = y; + trs[9] = z; + this.setLocalDirty(LocalDirtyFlag.ALL_SCALE); + true, this._renderFlag |= RenderFlow.FLAG_TRANSFORM; + this._eventMask & SCALE_ON && this.emit(EventType.SCALE_CHANGED); + } + }, + getRotation: function getRotation(out) { + if (out instanceof _valueTypes.Quat) return _valueTypes.Trs.toRotation(out, this._trs); + true; + cc.warn("`cc.Node.getRotation()` is deprecated since v2.1.0, please use `-cc.Node.angle` instead. (`this.node.getRotation()` -> `-this.node.angle`)"); + return -this.angle; + }, + setRotation: function setRotation(rotation, y, z, w) { + if ("number" === typeof rotation && void 0 === y) { + true; + cc.warn("`cc.Node.setRotation(degree)` is deprecated since v2.1.0, please set `-cc.Node.angle` instead. (`this.node.setRotation(x)` -> `this.node.angle = -x`)"); + this.angle = -rotation; + } else { + var x = rotation; + if (void 0 === y) { + x = rotation.x; + y = rotation.y; + z = rotation.z; + w = rotation.w; + } + var trs = this._trs; + if (trs[3] !== x || trs[4] !== y || trs[5] !== z || trs[6] !== w) { + trs[3] = x; + trs[4] = y; + trs[5] = z; + trs[6] = w; + this.setLocalDirty(LocalDirtyFlag.ALL_ROTATION); + this._eventMask & ROTATION_ON && this.emit(EventType.ROTATION_CHANGED); + false; + } + } + }, + getContentSize: function getContentSize() { + return cc.size(this._contentSize.width, this._contentSize.height); + }, + setContentSize: function setContentSize(size, height) { + var locContentSize = this._contentSize; + var clone; + if (void 0 === height) { + if (size.width === locContentSize.width && size.height === locContentSize.height) return; + false; + locContentSize.width = size.width; + locContentSize.height = size.height; + } else { + if (size === locContentSize.width && height === locContentSize.height) return; + false; + locContentSize.width = size; + locContentSize.height = height; + } + if (this._eventMask & SIZE_ON) { + false; + this.emit(EventType.SIZE_CHANGED); + } + }, + getAnchorPoint: function getAnchorPoint() { + return cc.v2(this._anchorPoint); + }, + setAnchorPoint: function setAnchorPoint(point, y) { + var locAnchorPoint = this._anchorPoint; + if (void 0 === y) { + if (point.x === locAnchorPoint.x && point.y === locAnchorPoint.y) return; + locAnchorPoint.x = point.x; + locAnchorPoint.y = point.y; + } else { + if (point === locAnchorPoint.x && y === locAnchorPoint.y) return; + locAnchorPoint.x = point; + locAnchorPoint.y = y; + } + this.setLocalDirty(LocalDirtyFlag.ALL_POSITION); + this._eventMask & ANCHOR_ON && this.emit(EventType.ANCHOR_CHANGED); + }, + _invTransformPoint: function _invTransformPoint(out, pos) { + this._parent ? this._parent._invTransformPoint(out, pos) : _valueTypes.Vec3.copy(out, pos); + var ltrs = this._trs; + _valueTypes.Trs.toPosition(_tpVec3a, ltrs); + _valueTypes.Vec3.sub(out, out, _tpVec3a); + _valueTypes.Trs.toRotation(_tpQuata, ltrs); + _valueTypes.Quat.conjugate(_tpQuatb, _tpQuata); + _valueTypes.Vec3.transformQuat(out, out, _tpQuatb); + _valueTypes.Trs.toScale(_tpVec3a, ltrs); + _valueTypes.Vec3.inverseSafe(_tpVec3b, _tpVec3a); + _valueTypes.Vec3.mul(out, out, _tpVec3b); + return out; + }, + getWorldPosition: function getWorldPosition(out) { + _valueTypes.Trs.toPosition(out, this._trs); + var curr = this._parent; + var ltrs; + while (curr) { + ltrs = curr._trs; + _valueTypes.Trs.toScale(_gwpVec3, ltrs); + _valueTypes.Vec3.mul(out, out, _gwpVec3); + _valueTypes.Trs.toRotation(_gwpQuat, ltrs); + _valueTypes.Vec3.transformQuat(out, out, _gwpQuat); + _valueTypes.Trs.toPosition(_gwpVec3, ltrs); + _valueTypes.Vec3.add(out, out, _gwpVec3); + curr = curr._parent; + } + return out; + }, + setWorldPosition: function setWorldPosition(pos) { + var ltrs = this._trs; + var oldPosition; + false; + this._parent ? this._parent._invTransformPoint(_swpVec3, pos) : _valueTypes.Vec3.copy(_swpVec3, pos); + _valueTypes.Trs.fromPosition(ltrs, _swpVec3); + this.setLocalDirty(LocalDirtyFlag.ALL_POSITION); + if (this._eventMask & POSITION_ON) { + false; + this.emit(EventType.POSITION_CHANGED); + } + }, + getWorldRotation: function getWorldRotation(out) { + _valueTypes.Trs.toRotation(_gwrQuat, this._trs); + _valueTypes.Quat.copy(out, _gwrQuat); + var curr = this._parent; + while (curr) { + _valueTypes.Trs.toRotation(_gwrQuat, curr._trs); + _valueTypes.Quat.mul(out, _gwrQuat, out); + curr = curr._parent; + } + return out; + }, + setWorldRotation: function setWorldRotation(val) { + if (this._parent) { + this._parent.getWorldRotation(_swrQuat); + _valueTypes.Quat.conjugate(_swrQuat, _swrQuat); + _valueTypes.Quat.mul(_swrQuat, _swrQuat, val); + } else _valueTypes.Quat.copy(_swrQuat, val); + _valueTypes.Trs.fromRotation(this._trs, _swrQuat); + false; + this.setLocalDirty(LocalDirtyFlag.ALL_ROTATION); + }, + getWorldScale: function getWorldScale(out) { + _valueTypes.Trs.toScale(_gwsVec3, this._trs); + _valueTypes.Vec3.copy(out, _gwsVec3); + var curr = this._parent; + while (curr) { + _valueTypes.Trs.toScale(_gwsVec3, curr._trs); + _valueTypes.Vec3.mul(out, out, _gwsVec3); + curr = curr._parent; + } + return out; + }, + setWorldScale: function setWorldScale(scale) { + if (this._parent) { + this._parent.getWorldScale(_swsVec3); + _valueTypes.Vec3.div(_swsVec3, scale, _swsVec3); + } else _valueTypes.Vec3.copy(_swsVec3, scale); + _valueTypes.Trs.fromScale(this._trs, _swsVec3); + this.setLocalDirty(LocalDirtyFlag.ALL_SCALE); + }, + getWorldRT: function getWorldRT(out) { + var opos = _gwrtVec3a; + var orot = _gwrtQuata; + var ltrs = this._trs; + _valueTypes.Trs.toPosition(opos, ltrs); + _valueTypes.Trs.toRotation(orot, ltrs); + var curr = this._parent; + while (curr) { + ltrs = curr._trs; + _valueTypes.Trs.toScale(_gwrtVec3b, ltrs); + _valueTypes.Vec3.mul(opos, opos, _gwrtVec3b); + _valueTypes.Trs.toRotation(_gwrtQuatb, ltrs); + _valueTypes.Vec3.transformQuat(opos, opos, _gwrtQuatb); + _valueTypes.Trs.toPosition(_gwrtVec3b, ltrs); + _valueTypes.Vec3.add(opos, opos, _gwrtVec3b); + _valueTypes.Quat.mul(orot, _gwrtQuatb, orot); + curr = curr._parent; + } + _valueTypes.Mat4.fromRT(out, orot, opos); + return out; + }, + lookAt: function lookAt(pos, up) { + this.getWorldPosition(_laVec3); + _valueTypes.Vec3.sub(_laVec3, _laVec3, pos); + _valueTypes.Vec3.normalize(_laVec3, _laVec3); + _valueTypes.Quat.fromViewUp(_laQuat, _laVec3, up); + this.setWorldRotation(_laQuat); + }, + _updateLocalMatrix: updateLocalMatrix2D, + _calculWorldMatrix: function _calculWorldMatrix() { + this._localMatDirty & LocalDirtyFlag.TRSS && this._updateLocalMatrix(); + var parent = this._parent; + parent ? this._mulMat(this._worldMatrix, parent._worldMatrix, this._matrix) : _valueTypes.Mat4.copy(this._worldMatrix, this._matrix); + this._worldMatDirty = false; + }, + _mulMat: mulMat2D, + _updateWorldMatrix: function _updateWorldMatrix() { + this._parent && this._parent._updateWorldMatrix(); + if (this._worldMatDirty) { + this._calculWorldMatrix(); + var children = this._children; + for (var i = 0, l = children.length; i < l; i++) children[i]._worldMatDirty = true; + } + }, + setLocalDirty: function setLocalDirty(flag) { + this._localMatDirty |= flag; + this._worldMatDirty = true; + flag === LocalDirtyFlag.ALL_POSITION || flag === LocalDirtyFlag.POSITION ? this._renderFlag |= RenderFlow.FLAG_WORLD_TRANSFORM : this._renderFlag |= RenderFlow.FLAG_TRANSFORM; + }, + setWorldDirty: function setWorldDirty() { + this._worldMatDirty = true; + }, + getLocalMatrix: function getLocalMatrix(out) { + this._updateLocalMatrix(); + return _valueTypes.Mat4.copy(out, this._matrix); + }, + getWorldMatrix: function getWorldMatrix(out) { + this._updateWorldMatrix(); + return _valueTypes.Mat4.copy(out, this._worldMatrix); + }, + convertToNodeSpaceAR: function convertToNodeSpaceAR(worldPoint, out) { + this._updateWorldMatrix(); + _valueTypes.Mat4.invert(_mat4_temp, this._worldMatrix); + if (worldPoint instanceof cc.Vec2) { + out = out || new cc.Vec2(); + return _valueTypes.Vec2.transformMat4(out, worldPoint, _mat4_temp); + } + out = out || new cc.Vec3(); + return _valueTypes.Vec3.transformMat4(out, worldPoint, _mat4_temp); + }, + convertToWorldSpaceAR: function convertToWorldSpaceAR(nodePoint, out) { + this._updateWorldMatrix(); + if (nodePoint instanceof cc.Vec2) { + out = out || new cc.Vec2(); + return _valueTypes.Vec2.transformMat4(out, nodePoint, this._worldMatrix); + } + out = out || new cc.Vec3(); + return _valueTypes.Vec3.transformMat4(out, nodePoint, this._worldMatrix); + }, + convertToNodeSpace: function convertToNodeSpace(worldPoint) { + this._updateWorldMatrix(); + _valueTypes.Mat4.invert(_mat4_temp, this._worldMatrix); + var out = new cc.Vec2(); + _valueTypes.Vec2.transformMat4(out, worldPoint, _mat4_temp); + out.x += this._anchorPoint.x * this._contentSize.width; + out.y += this._anchorPoint.y * this._contentSize.height; + return out; + }, + convertToWorldSpace: function convertToWorldSpace(nodePoint) { + this._updateWorldMatrix(); + var out = new cc.Vec2(nodePoint.x - this._anchorPoint.x * this._contentSize.width, nodePoint.y - this._anchorPoint.y * this._contentSize.height); + return _valueTypes.Vec2.transformMat4(out, out, this._worldMatrix); + }, + getNodeToParentTransform: function getNodeToParentTransform(out) { + out || (out = AffineTrans.identity()); + this._updateLocalMatrix(); + var contentSize = this._contentSize; + _vec3_temp.x = -this._anchorPoint.x * contentSize.width; + _vec3_temp.y = -this._anchorPoint.y * contentSize.height; + _valueTypes.Mat4.copy(_mat4_temp, this._matrix); + _valueTypes.Mat4.transform(_mat4_temp, _mat4_temp, _vec3_temp); + return AffineTrans.fromMat4(out, _mat4_temp); + }, + getNodeToParentTransformAR: function getNodeToParentTransformAR(out) { + out || (out = AffineTrans.identity()); + this._updateLocalMatrix(); + return AffineTrans.fromMat4(out, this._matrix); + }, + getNodeToWorldTransform: function getNodeToWorldTransform(out) { + out || (out = AffineTrans.identity()); + this._updateWorldMatrix(); + var contentSize = this._contentSize; + _vec3_temp.x = -this._anchorPoint.x * contentSize.width; + _vec3_temp.y = -this._anchorPoint.y * contentSize.height; + _valueTypes.Mat4.copy(_mat4_temp, this._worldMatrix); + _valueTypes.Mat4.transform(_mat4_temp, _mat4_temp, _vec3_temp); + return AffineTrans.fromMat4(out, _mat4_temp); + }, + getNodeToWorldTransformAR: function getNodeToWorldTransformAR(out) { + out || (out = AffineTrans.identity()); + this._updateWorldMatrix(); + return AffineTrans.fromMat4(out, this._worldMatrix); + }, + getParentToNodeTransform: function getParentToNodeTransform(out) { + out || (out = AffineTrans.identity()); + this._updateLocalMatrix(); + _valueTypes.Mat4.invert(_mat4_temp, this._matrix); + return AffineTrans.fromMat4(out, _mat4_temp); + }, + getWorldToNodeTransform: function getWorldToNodeTransform(out) { + out || (out = AffineTrans.identity()); + this._updateWorldMatrix(); + _valueTypes.Mat4.invert(_mat4_temp, this._worldMatrix); + return AffineTrans.fromMat4(out, _mat4_temp); + }, + convertTouchToNodeSpace: function convertTouchToNodeSpace(touch) { + return this.convertToNodeSpace(touch.getLocation()); + }, + convertTouchToNodeSpaceAR: function convertTouchToNodeSpaceAR(touch) { + return this.convertToNodeSpaceAR(touch.getLocation()); + }, + getBoundingBox: function getBoundingBox() { + this._updateLocalMatrix(); + var width = this._contentSize.width; + var height = this._contentSize.height; + var rect = cc.rect(-this._anchorPoint.x * width, -this._anchorPoint.y * height, width, height); + return rect.transformMat4(rect, this._matrix); + }, + getBoundingBoxToWorld: function getBoundingBoxToWorld() { + if (this._parent) { + this._parent._updateWorldMatrix(); + return this._getBoundingBoxTo(); + } + return this.getBoundingBox(); + }, + _getBoundingBoxTo: function _getBoundingBoxTo() { + var width = this._contentSize.width; + var height = this._contentSize.height; + var rect = cc.rect(-this._anchorPoint.x * width, -this._anchorPoint.y * height, width, height); + this._calculWorldMatrix(); + rect.transformMat4(rect, this._worldMatrix); + if (!this._children) return rect; + var locChildren = this._children; + for (var i = 0; i < locChildren.length; i++) { + var child = locChildren[i]; + if (child && child.active) { + var childRect = child._getBoundingBoxTo(); + childRect && rect.union(rect, childRect); + } + } + return rect; + }, + _updateOrderOfArrival: function _updateOrderOfArrival() { + var arrivalOrder = this._parent ? ++this._parent._childArrivalOrder : 0; + this._localZOrder = 4294901760 & this._localZOrder | arrivalOrder; + this.emit(EventType.SIBLING_ORDER_CHANGED); + }, + addChild: function addChild(child, zIndex, name) { + false; + cc.assertID(child, 1606); + cc.assertID(null === child._parent, 1605); + child.parent = this; + void 0 !== zIndex && (child.zIndex = zIndex); + void 0 !== name && (child.name = name); + }, + cleanup: function cleanup() { + ActionManagerExist && cc.director.getActionManager().removeAllActionsFromTarget(this); + eventManager.removeListeners(this); + var i, len = this._children.length, node; + for (i = 0; i < len; ++i) { + node = this._children[i]; + node && node.cleanup(); + } + }, + sortAllChildren: function sortAllChildren() { + if (this._reorderChildDirty) { + this._reorderChildDirty = false; + var _children = this._children, child; + this._childArrivalOrder = 1; + for (var i = 0, len = _children.length; i < len; i++) { + child = _children[i]; + child._updateOrderOfArrival(); + } + eventManager._setDirtyForNode(this); + if (_children.length > 1) { + var _child, child2; + for (var _i2 = 1, count = _children.length; _i2 < count; _i2++) { + _child = _children[_i2]; + var j = _i2; + for (;j > 0 && (child2 = _children[j - 1])._localZOrder > _child._localZOrder; j--) _children[j] = child2; + _children[j] = _child; + } + this.emit(EventType.CHILD_REORDER, this); + } + cc.director.__fastOff(cc.Director.EVENT_AFTER_UPDATE, this.sortAllChildren, this); + } + }, + _delaySort: function _delaySort() { + if (!this._reorderChildDirty) { + this._reorderChildDirty = true; + cc.director.__fastOn(cc.Director.EVENT_AFTER_UPDATE, this.sortAllChildren, this); + } + }, + _restoreProperties: false, + onRestore: false + }; + false; + var Node = cc.Class(NodeDefines); + var _p = Node.prototype; + js.getset(_p, "position", _p.getPosition, _p.setPosition, false, true); + var vec3_tmp; + false; + cc.Node = module.exports = Node; + }), { + "./event-manager": 112, + "./event/event": 115, + "./event/event-target": 114, + "./platform/CCMacro": 126, + "./platform/js": 142, + "./renderer/render-flow": 153, + "./utils/affine-transform": 196, + "./utils/base-node": 197, + "./utils/prefab-helper": 208, + "./utils/trans-pool": 214, + "./value-types": 220 + } ], + 25: [ (function(require, module, exports) { + "use strict"; + function _createForOfIteratorHelperLoose(o, allowArrayLike) { + var it = "undefined" !== typeof Symbol && o[Symbol.iterator] || o["@@iterator"]; + if (it) return (it = it.call(o)).next.bind(it); + if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && "number" === typeof o.length) { + it && (o = it); + var i = 0; + return function() { + if (i >= o.length) return { + done: true + }; + return { + done: false, + value: o[i++] + }; + }; + } + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ("string" === typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + "Object" === n && o.constructor && (n = o.constructor.name); + if ("Map" === n || "Set" === n) return Array.from(o); + if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var Node = require("./CCNode"); + var RenderFlow = require("./renderer/render-flow"); + var HideInHierarchy = cc.Object.Flags.HideInHierarchy; + var LocalDirtyFlag = Node._LocalDirtyFlag; + var POSITION_ON = 1; + var PrivateNode = cc.Class({ + name: "cc.PrivateNode", + extends: Node, + properties: { + x: { + get: function get() { + return this._originPos.x; + }, + set: function set(value) { + var localPosition = this._originPos; + if (value !== localPosition.x) { + localPosition.x = value; + this._posDirty(true); + } + }, + override: true + }, + y: { + get: function get() { + return this._originPos.y; + }, + set: function set(value) { + var localPosition = this._originPos; + if (value !== localPosition.y) { + localPosition.y = value; + this._posDirty(true); + } + }, + override: true + }, + zIndex: { + get: function get() { + return cc.macro.MIN_ZINDEX; + }, + set: function set() {}, + override: true + }, + showInEditor: { + default: false, + editorOnly: true, + override: true + } + }, + ctor: function ctor(name) { + this._localZOrder = cc.macro.MIN_ZINDEX << 16; + this._originPos = cc.v2(); + false; + }, + _posDirty: function _posDirty(sendEvent) { + this.setLocalDirty(LocalDirtyFlag.POSITION); + true, this._renderFlag |= RenderFlow.FLAG_TRANSFORM; + true === sendEvent && this._eventMask & POSITION_ON && this.emit(Node.EventType.POSITION_CHANGED); + }, + _updateLocalMatrix: function _updateLocalMatrix() { + if (!this._localMatDirty) return; + var parent = this.parent; + if (parent) { + this._trs[0] = this._originPos.x - (parent._anchorPoint.x - .5) * parent._contentSize.width; + this._trs[1] = this._originPos.y - (parent._anchorPoint.y - .5) * parent._contentSize.height; + } + this._super(); + }, + getPosition: function getPosition() { + return new cc.Vec2(this._originPos); + }, + setPosition: function setPosition(x, y) { + if (void 0 === y) { + x = x.x; + y = x.y; + } + var pos = this._originPos; + if (pos.x === x && pos.y === y) return; + pos.x = x; + pos.y = y; + this._posDirty(true); + }, + setParent: function setParent(value) { + var oldParent = this._parent; + this._super(value); + if (oldParent !== value) { + oldParent && oldParent.off(Node.EventType.ANCHOR_CHANGED, this._posDirty, this); + value && value.on(Node.EventType.ANCHOR_CHANGED, this._posDirty, this); + } + }, + _updateOrderOfArrival: function _updateOrderOfArrival() {} + }); + var proto = PrivateNode.prototype; + cc.js.getset(proto, "parent", proto.getParent, proto.setParent); + cc.js.getset(proto, "position", proto.getPosition, proto.setPosition); + false; + cc.PrivateNode = module.exports = PrivateNode; + }), { + "./CCNode": 24, + "./renderer/render-flow": 153 + } ], + 26: [ (function(require, module, exports) { + "use strict"; + var NIL = function NIL() {}; + cc.Scene = cc.Class({ + name: "cc.Scene", + extends: require("./CCNode"), + properties: { + _is3DNode: { + default: true, + override: true + }, + autoReleaseAssets: false + }, + ctor: function ctor() { + this._anchorPoint.x = 0; + this._anchorPoint.y = 0; + this._activeInHierarchy = false; + this._inited = !cc.game._isCloning; + false; + this.dependAssets = null; + }, + destroy: function destroy() { + if (cc.Object.prototype.destroy.call(this)) { + var children = this._children; + for (var i = 0; i < children.length; ++i) children[i].active = false; + } + this._active = false; + this._activeInHierarchy = false; + }, + _onHierarchyChanged: NIL, + _instantiate: null, + _load: function _load() { + if (!this._inited) { + false; + this._onBatchCreated(false); + this._inited = true; + } + }, + _activate: function _activate(active) { + active = false !== active; + false, false; + cc.director._nodeActivator.activateNode(this, active); + } + }); + module.exports = cc.Scene; + }), { + "./CCNode": 24 + } ], + 27: [ (function(require, module, exports) { + "use strict"; + var js = require("./platform/js"); + var IdGenerater = require("./platform/id-generater"); + var MAX_POOL_SIZE = 20; + var idGenerater = new IdGenerater("Scheduler"); + var ListEntry = function ListEntry(target, priority, paused, markedForDeletion) { + this.target = target; + this.priority = priority; + this.paused = paused; + this.markedForDeletion = markedForDeletion; + }; + var _listEntries = []; + ListEntry.get = function(target, priority, paused, markedForDeletion) { + var result = _listEntries.pop(); + if (result) { + result.target = target; + result.priority = priority; + result.paused = paused; + result.markedForDeletion = markedForDeletion; + } else result = new ListEntry(target, priority, paused, markedForDeletion); + return result; + }; + ListEntry.put = function(entry) { + if (_listEntries.length < MAX_POOL_SIZE) { + entry.target = null; + _listEntries.push(entry); + } + }; + var HashUpdateEntry = function HashUpdateEntry(list, entry, target, callback) { + this.list = list; + this.entry = entry; + this.target = target; + this.callback = callback; + }; + var _hashUpdateEntries = []; + HashUpdateEntry.get = function(list, entry, target, callback) { + var result = _hashUpdateEntries.pop(); + if (result) { + result.list = list; + result.entry = entry; + result.target = target; + result.callback = callback; + } else result = new HashUpdateEntry(list, entry, target, callback); + return result; + }; + HashUpdateEntry.put = function(entry) { + if (_hashUpdateEntries.length < MAX_POOL_SIZE) { + entry.list = entry.entry = entry.target = entry.callback = null; + _hashUpdateEntries.push(entry); + } + }; + var HashTimerEntry = function HashTimerEntry(timers, target, timerIndex, currentTimer, currentTimerSalvaged, paused) { + var _t = this; + _t.timers = timers; + _t.target = target; + _t.timerIndex = timerIndex; + _t.currentTimer = currentTimer; + _t.currentTimerSalvaged = currentTimerSalvaged; + _t.paused = paused; + }; + var _hashTimerEntries = []; + HashTimerEntry.get = function(timers, target, timerIndex, currentTimer, currentTimerSalvaged, paused) { + var result = _hashTimerEntries.pop(); + if (result) { + result.timers = timers; + result.target = target; + result.timerIndex = timerIndex; + result.currentTimer = currentTimer; + result.currentTimerSalvaged = currentTimerSalvaged; + result.paused = paused; + } else result = new HashTimerEntry(timers, target, timerIndex, currentTimer, currentTimerSalvaged, paused); + return result; + }; + HashTimerEntry.put = function(entry) { + if (_hashTimerEntries.length < MAX_POOL_SIZE) { + entry.timers = entry.target = entry.currentTimer = null; + _hashTimerEntries.push(entry); + } + }; + function CallbackTimer() { + this._lock = false; + this._scheduler = null; + this._elapsed = -1; + this._runForever = false; + this._useDelay = false; + this._timesExecuted = 0; + this._repeat = 0; + this._delay = 0; + this._interval = 0; + this._target = null; + this._callback = null; + } + var proto = CallbackTimer.prototype; + proto.initWithCallback = function(scheduler, callback, target, seconds, repeat, delay) { + this._lock = false; + this._scheduler = scheduler; + this._target = target; + this._callback = callback; + this._elapsed = -1; + this._interval = seconds; + this._delay = delay; + this._useDelay = this._delay > 0; + this._repeat = repeat; + this._runForever = this._repeat === cc.macro.REPEAT_FOREVER; + return true; + }; + proto.getInterval = function() { + return this._interval; + }; + proto.setInterval = function(interval) { + this._interval = interval; + }; + proto.update = function(dt) { + if (-1 === this._elapsed) { + this._elapsed = 0; + this._timesExecuted = 0; + } else { + this._elapsed += dt; + if (this._runForever && !this._useDelay) { + if (this._elapsed >= this._interval) { + this.trigger(); + this._elapsed = 0; + } + } else { + if (this._useDelay) { + if (this._elapsed >= this._delay) { + this.trigger(); + this._elapsed -= this._delay; + this._timesExecuted += 1; + this._useDelay = false; + } + } else if (this._elapsed >= this._interval) { + this.trigger(); + this._elapsed = 0; + this._timesExecuted += 1; + } + this._callback && !this._runForever && this._timesExecuted > this._repeat && this.cancel(); + } + } + }; + proto.getCallback = function() { + return this._callback; + }; + proto.trigger = function() { + if (this._target && this._callback) { + this._lock = true; + this._callback.call(this._target, this._elapsed); + this._lock = false; + } + }; + proto.cancel = function() { + this._scheduler.unschedule(this._callback, this._target); + }; + var _timers = []; + CallbackTimer.get = function() { + return _timers.pop() || new CallbackTimer(); + }; + CallbackTimer.put = function(timer) { + if (_timers.length < MAX_POOL_SIZE && !timer._lock) { + timer._scheduler = timer._target = timer._callback = null; + _timers.push(timer); + } + }; + cc.Scheduler = function() { + this._timeScale = 1; + this._updatesNegList = []; + this._updates0List = []; + this._updatesPosList = []; + this._hashForUpdates = js.createMap(true); + this._hashForTimers = js.createMap(true); + this._currentTarget = null; + this._currentTargetSalvaged = false; + this._updateHashLocked = false; + this._arrayForTimers = []; + }; + cc.Scheduler.prototype = { + constructor: cc.Scheduler, + _removeHashElement: function _removeHashElement(element) { + delete this._hashForTimers[element.target._id]; + var arr = this._arrayForTimers; + for (var i = 0, l = arr.length; i < l; i++) if (arr[i] === element) { + arr.splice(i, 1); + break; + } + HashTimerEntry.put(element); + }, + _removeUpdateFromHash: function _removeUpdateFromHash(entry) { + var targetId = entry.target._id; + var self = this, element = self._hashForUpdates[targetId]; + if (element) { + var list = element.list, listEntry = element.entry; + for (var i = 0, l = list.length; i < l; i++) if (list[i] === listEntry) { + list.splice(i, 1); + break; + } + delete self._hashForUpdates[targetId]; + ListEntry.put(listEntry); + HashUpdateEntry.put(element); + } + }, + _priorityIn: function _priorityIn(ppList, listElement, priority) { + for (var i = 0; i < ppList.length; i++) if (priority < ppList[i].priority) { + ppList.splice(i, 0, listElement); + return; + } + ppList.push(listElement); + }, + _appendIn: function _appendIn(ppList, listElement) { + ppList.push(listElement); + }, + enableForTarget: function enableForTarget(target) { + target._id || (target.__instanceId ? cc.warnID(1513) : target._id = idGenerater.getNewId()); + }, + setTimeScale: function setTimeScale(timeScale) { + this._timeScale = timeScale; + }, + getTimeScale: function getTimeScale() { + return this._timeScale; + }, + update: function update(dt) { + this._updateHashLocked = true; + 1 !== this._timeScale && (dt *= this._timeScale); + var i, list, len, entry; + for (i = 0, list = this._updatesNegList, len = list.length; i < len; i++) { + entry = list[i]; + entry.paused || entry.markedForDeletion || entry.target.update(dt); + } + for (i = 0, list = this._updates0List, len = list.length; i < len; i++) { + entry = list[i]; + entry.paused || entry.markedForDeletion || entry.target.update(dt); + } + for (i = 0, list = this._updatesPosList, len = list.length; i < len; i++) { + entry = list[i]; + entry.paused || entry.markedForDeletion || entry.target.update(dt); + } + var elt, arr = this._arrayForTimers; + for (i = 0; i < arr.length; i++) { + elt = arr[i]; + this._currentTarget = elt; + this._currentTargetSalvaged = false; + if (!elt.paused) for (elt.timerIndex = 0; elt.timerIndex < elt.timers.length; ++elt.timerIndex) { + elt.currentTimer = elt.timers[elt.timerIndex]; + elt.currentTimerSalvaged = false; + elt.currentTimer.update(dt); + elt.currentTimer = null; + } + if (this._currentTargetSalvaged && 0 === this._currentTarget.timers.length) { + this._removeHashElement(this._currentTarget); + --i; + } + } + for (i = 0, list = this._updatesNegList; i < list.length; ) { + entry = list[i]; + entry.markedForDeletion ? this._removeUpdateFromHash(entry) : i++; + } + for (i = 0, list = this._updates0List; i < list.length; ) { + entry = list[i]; + entry.markedForDeletion ? this._removeUpdateFromHash(entry) : i++; + } + for (i = 0, list = this._updatesPosList; i < list.length; ) { + entry = list[i]; + entry.markedForDeletion ? this._removeUpdateFromHash(entry) : i++; + } + this._updateHashLocked = false; + this._currentTarget = null; + }, + schedule: function schedule(callback, target, interval, repeat, delay, paused) { + if ("function" !== typeof callback) { + var tmp = callback; + callback = target; + target = tmp; + } + if (4 === arguments.length || 5 === arguments.length) { + paused = !!repeat; + repeat = cc.macro.REPEAT_FOREVER; + delay = 0; + } + cc.assertID(target, 1502); + var targetId = target._id; + if (!targetId) if (target.__instanceId) { + cc.warnID(1513); + targetId = target._id = target.__instanceId; + } else cc.errorID(1510); + var element = this._hashForTimers[targetId]; + if (element) element.paused !== paused && cc.warnID(1511); else { + element = HashTimerEntry.get(null, target, 0, null, null, paused); + this._arrayForTimers.push(element); + this._hashForTimers[targetId] = element; + } + var timer, i; + if (null == element.timers) element.timers = []; else for (i = 0; i < element.timers.length; ++i) { + timer = element.timers[i]; + if (timer && callback === timer._callback) { + cc.logID(1507, timer.getInterval(), interval); + timer._interval = interval; + return; + } + } + timer = CallbackTimer.get(); + timer.initWithCallback(this, callback, target, interval, repeat, delay); + element.timers.push(timer); + this._currentTarget === element && this._currentTargetSalvaged && (this._currentTargetSalvaged = false); + }, + scheduleUpdate: function scheduleUpdate(target, priority, paused) { + var targetId = target._id; + if (!targetId) if (target.__instanceId) { + cc.warnID(1513); + targetId = target._id = target.__instanceId; + } else cc.errorID(1510); + var hashElement = this._hashForUpdates[targetId]; + if (hashElement && hashElement.entry) { + if (hashElement.entry.priority === priority) { + hashElement.entry.markedForDeletion = false; + hashElement.entry.paused = paused; + return; + } + if (this._updateHashLocked) { + cc.logID(1506); + hashElement.entry.markedForDeletion = false; + hashElement.entry.paused = paused; + return; + } + this.unscheduleUpdate(target); + } + var listElement = ListEntry.get(target, priority, paused, false); + var ppList; + if (0 === priority) { + ppList = this._updates0List; + this._appendIn(ppList, listElement); + } else { + ppList = priority < 0 ? this._updatesNegList : this._updatesPosList; + this._priorityIn(ppList, listElement, priority); + } + this._hashForUpdates[targetId] = HashUpdateEntry.get(ppList, listElement, target, null); + }, + unschedule: function unschedule(callback, target) { + if (!target || !callback) return; + var targetId = target._id; + if (!targetId) if (target.__instanceId) { + cc.warnID(1513); + targetId = target._id = target.__instanceId; + } else cc.errorID(1510); + var self = this, element = self._hashForTimers[targetId]; + if (element) { + var timers = element.timers; + for (var i = 0, li = timers.length; i < li; i++) { + var timer = timers[i]; + if (callback === timer._callback) { + timer !== element.currentTimer || element.currentTimerSalvaged || (element.currentTimerSalvaged = true); + timers.splice(i, 1); + CallbackTimer.put(timer); + element.timerIndex >= i && element.timerIndex--; + 0 === timers.length && (self._currentTarget === element ? self._currentTargetSalvaged = true : self._removeHashElement(element)); + return; + } + } + } + }, + unscheduleUpdate: function unscheduleUpdate(target) { + if (!target) return; + var targetId = target._id; + if (!targetId) if (target.__instanceId) { + cc.warnID(1513); + targetId = target._id = target.__instanceId; + } else cc.errorID(1510); + var element = this._hashForUpdates[targetId]; + element && (this._updateHashLocked ? element.entry.markedForDeletion = true : this._removeUpdateFromHash(element.entry)); + }, + unscheduleAllForTarget: function unscheduleAllForTarget(target) { + if (!target) return; + var targetId = target._id; + if (!targetId) if (target.__instanceId) { + cc.warnID(1513); + targetId = target._id = target.__instanceId; + } else cc.errorID(1510); + var element = this._hashForTimers[targetId]; + if (element) { + var timers = element.timers; + timers.indexOf(element.currentTimer) > -1 && !element.currentTimerSalvaged && (element.currentTimerSalvaged = true); + for (var i = 0, l = timers.length; i < l; i++) CallbackTimer.put(timers[i]); + timers.length = 0; + this._currentTarget === element ? this._currentTargetSalvaged = true : this._removeHashElement(element); + } + this.unscheduleUpdate(target); + }, + unscheduleAll: function unscheduleAll() { + this.unscheduleAllWithMinPriority(cc.Scheduler.PRIORITY_SYSTEM); + }, + unscheduleAllWithMinPriority: function unscheduleAllWithMinPriority(minPriority) { + var i, element, arr = this._arrayForTimers; + for (i = arr.length - 1; i >= 0; i--) { + element = arr[i]; + this.unscheduleAllForTarget(element.target); + } + var entry; + var temp_length = 0; + if (minPriority < 0) for (i = 0; i < this._updatesNegList.length; ) { + temp_length = this._updatesNegList.length; + entry = this._updatesNegList[i]; + entry && entry.priority >= minPriority && this.unscheduleUpdate(entry.target); + temp_length == this._updatesNegList.length && i++; + } + if (minPriority <= 0) for (i = 0; i < this._updates0List.length; ) { + temp_length = this._updates0List.length; + entry = this._updates0List[i]; + entry && this.unscheduleUpdate(entry.target); + temp_length == this._updates0List.length && i++; + } + for (i = 0; i < this._updatesPosList.length; ) { + temp_length = this._updatesPosList.length; + entry = this._updatesPosList[i]; + entry && entry.priority >= minPriority && this.unscheduleUpdate(entry.target); + temp_length == this._updatesPosList.length && i++; + } + }, + isScheduled: function isScheduled(callback, target) { + cc.assertID(callback, 1508); + cc.assertID(target, 1509); + var targetId = target._id; + if (!targetId) if (target.__instanceId) { + cc.warnID(1513); + targetId = target._id = target.__instanceId; + } else cc.errorID(1510); + var element = this._hashForTimers[targetId]; + if (!element) return false; + if (null == element.timers) return false; + var timers = element.timers; + for (var i = 0; i < timers.length; ++i) { + var timer = timers[i]; + if (callback === timer._callback) return true; + } + return false; + }, + pauseAllTargets: function pauseAllTargets() { + return this.pauseAllTargetsWithMinPriority(cc.Scheduler.PRIORITY_SYSTEM); + }, + pauseAllTargetsWithMinPriority: function pauseAllTargetsWithMinPriority(minPriority) { + var idsWithSelectors = []; + var self = this, element, locArrayForTimers = self._arrayForTimers; + var i, li; + for (i = 0, li = locArrayForTimers.length; i < li; i++) { + element = locArrayForTimers[i]; + if (element) { + element.paused = true; + idsWithSelectors.push(element.target); + } + } + var entry; + if (minPriority < 0) for (i = 0; i < this._updatesNegList.length; i++) { + entry = this._updatesNegList[i]; + if (entry && entry.priority >= minPriority) { + entry.paused = true; + idsWithSelectors.push(entry.target); + } + } + if (minPriority <= 0) for (i = 0; i < this._updates0List.length; i++) { + entry = this._updates0List[i]; + if (entry) { + entry.paused = true; + idsWithSelectors.push(entry.target); + } + } + for (i = 0; i < this._updatesPosList.length; i++) { + entry = this._updatesPosList[i]; + if (entry && entry.priority >= minPriority) { + entry.paused = true; + idsWithSelectors.push(entry.target); + } + } + return idsWithSelectors; + }, + resumeTargets: function resumeTargets(targetsToResume) { + if (!targetsToResume) return; + for (var i = 0; i < targetsToResume.length; i++) this.resumeTarget(targetsToResume[i]); + }, + pauseTarget: function pauseTarget(target) { + cc.assertID(target, 1503); + var targetId = target._id; + if (!targetId) if (target.__instanceId) { + cc.warnID(1513); + targetId = target._id = target.__instanceId; + } else cc.errorID(1510); + var self = this, element = self._hashForTimers[targetId]; + element && (element.paused = true); + var elementUpdate = self._hashForUpdates[targetId]; + elementUpdate && (elementUpdate.entry.paused = true); + }, + resumeTarget: function resumeTarget(target) { + cc.assertID(target, 1504); + var targetId = target._id; + if (!targetId) if (target.__instanceId) { + cc.warnID(1513); + targetId = target._id = target.__instanceId; + } else cc.errorID(1510); + var self = this, element = self._hashForTimers[targetId]; + element && (element.paused = false); + var elementUpdate = self._hashForUpdates[targetId]; + elementUpdate && (elementUpdate.entry.paused = false); + }, + isTargetPaused: function isTargetPaused(target) { + cc.assertID(target, 1505); + var targetId = target._id; + if (!targetId) if (target.__instanceId) { + cc.warnID(1513); + targetId = target._id = target.__instanceId; + } else cc.errorID(1510); + var element = this._hashForTimers[targetId]; + if (element) return element.paused; + var elementUpdate = this._hashForUpdates[targetId]; + if (elementUpdate) return elementUpdate.entry.paused; + return false; + } + }; + cc.Scheduler.PRIORITY_SYSTEM = 1 << 31; + cc.Scheduler.PRIORITY_NON_SYSTEM = cc.Scheduler.PRIORITY_SYSTEM + 1; + module.exports = cc.Scheduler; + }), { + "./platform/id-generater": 138, + "./platform/js": 142 + } ], + 28: [ (function(require, module, exports) { + "use strict"; + var preprocess = require("./preprocess"); + var fetch = require("./fetch"); + var Cache = require("./cache"); + var helper = require("./helper"); + var releaseManager = require("./releaseManager"); + var dependUtil = require("./depend-util"); + var load = require("./load"); + var Pipeline = require("./pipeline"); + var Task = require("./task"); + var RequestItem = require("./request-item"); + var downloader = require("./downloader"); + var parser = require("./parser"); + var packManager = require("./pack-manager"); + var Bundle = require("./bundle"); + var builtins = require("./builtins"); + var factory = require("./factory"); + var _require = require("./urlTransformer"), parse = _require.parse, combine = _require.combine; + var _require2 = require("./utilities"), parseParameters = _require2.parseParameters, asyncify = _require2.asyncify; + var _require3 = require("./shared"), assets = _require3.assets, files = _require3.files, parsed = _require3.parsed, pipeline = _require3.pipeline, transformPipeline = _require3.transformPipeline, fetchPipeline = _require3.fetchPipeline, RequestType = _require3.RequestType, bundles = _require3.bundles, BuiltinBundleName = _require3.BuiltinBundleName; + function AssetManager() { + this._preprocessPipe = preprocess; + this._fetchPipe = fetch; + this._loadPipe = load; + this.pipeline = pipeline.append(preprocess).append(load); + this.fetchPipeline = fetchPipeline.append(preprocess).append(fetch); + this.transformPipeline = transformPipeline.append(parse).append(combine); + this.bundles = bundles; + this.assets = assets; + this._files = files; + this._parsed = parsed; + this.generalImportBase = ""; + this.generalNativeBase = ""; + this.dependUtil = dependUtil; + this._releaseManager = releaseManager; + this.cacheAsset = true; + this.force = false; + this.utils = helper; + this.downloader = downloader; + this.parser = parser; + this.builtins = builtins; + this.packManager = packManager; + this.factory = factory; + this.cacheManager = null; + this.presets = { + default: { + priority: 0 + }, + preload: { + maxConcurrency: 2, + maxRequestsPerFrame: 2, + priority: -1 + }, + scene: { + maxConcurrency: 8, + maxRequestsPerFrame: 8, + priority: 1 + }, + bundle: { + maxConcurrency: 8, + maxRequestsPerFrame: 8, + priority: 2 + }, + remote: { + maxRetryCount: 4 + }, + script: { + maxConcurrency: 1024, + maxRequestsPerFrame: 1024, + priority: 2 + } + }; + } + AssetManager.Pipeline = Pipeline; + AssetManager.Task = Task; + AssetManager.Cache = Cache; + AssetManager.RequestItem = RequestItem; + AssetManager.Bundle = Bundle; + AssetManager.BuiltinBundleName = BuiltinBundleName; + AssetManager.prototype = { + constructor: AssetManager, + get main() { + return bundles.get(BuiltinBundleName.MAIN); + }, + get resources() { + return bundles.get(BuiltinBundleName.RESOURCES); + }, + get internal() { + return bundles.get(BuiltinBundleName.INTERNAL); + }, + init: function init(options) { + options = options || Object.create(null); + this._files.clear(); + this._parsed.clear(); + this._releaseManager.init(); + this.assets.clear(); + this.bundles.clear(); + this.packManager.init(); + this.downloader.init(options.bundleVers, options.server); + this.parser.init(); + this.dependUtil.init(); + this.generalImportBase = options.importBase; + this.generalNativeBase = options.nativeBase; + }, + getBundle: function getBundle(name) { + return bundles.get(name); + }, + removeBundle: function removeBundle(bundle) { + bundle._destroy(); + bundles.remove(bundle.name); + }, + loadAny: function loadAny(requests, options, onProgress, onComplete) { + var _parseParameters = parseParameters(options, onProgress, onComplete), options = _parseParameters.options, onProgress = _parseParameters.onProgress, onComplete = _parseParameters.onComplete; + options.preset = options.preset || "default"; + requests = Array.isArray(requests) ? requests.concat() : requests; + var task = new Task({ + input: requests, + onProgress: onProgress, + onComplete: asyncify(onComplete), + options: options + }); + pipeline.async(task); + }, + preloadAny: function preloadAny(requests, options, onProgress, onComplete) { + var _parseParameters2 = parseParameters(options, onProgress, onComplete), options = _parseParameters2.options, onProgress = _parseParameters2.onProgress, onComplete = _parseParameters2.onComplete; + options.preset = options.preset || "preload"; + requests = Array.isArray(requests) ? requests.concat() : requests; + var task = new Task({ + input: requests, + onProgress: onProgress, + onComplete: asyncify(onComplete), + options: options + }); + fetchPipeline.async(task); + }, + postLoadNative: function postLoadNative(asset, options, onComplete) { + if (!(asset instanceof cc.Asset)) throw new Error("input is not asset"); + var _parseParameters3 = parseParameters(options, void 0, onComplete), options = _parseParameters3.options, onComplete = _parseParameters3.onComplete; + if (!asset._native || asset._nativeAsset) return asyncify(onComplete)(null); + var depend = dependUtil.getNativeDep(asset._uuid); + if (depend) { + if (!bundles.has(depend.bundle)) { + var bundle = bundles.find((function(bundle) { + return bundle.getAssetInfo(asset._uuid); + })); + bundle && (depend.bundle = bundle.name); + } + this.loadAny(depend, options, (function(err, _native) { + err ? cc.error(err.message, err.stack) : asset.isValid && !asset._nativeAsset && (asset._nativeAsset = _native); + onComplete && onComplete(err); + })); + } + }, + loadRemote: function loadRemote(url, options, onComplete) { + var _parseParameters4 = parseParameters(options, void 0, onComplete), options = _parseParameters4.options, onComplete = _parseParameters4.onComplete; + if (this.assets.has(url)) return asyncify(onComplete)(null, this.assets.get(url)); + options.__isNative__ = true; + options.preset = options.preset || "remote"; + this.loadAny({ + url: url + }, options, null, (function(err, data) { + if (err) { + cc.error(err.message, err.stack); + onComplete && onComplete(err, null); + } else factory.create(url, data, options.ext || cc.path.extname(url), options, (function(err, out) { + onComplete && onComplete(err, out); + })); + })); + }, + loadScript: function loadScript(url, options, onComplete) { + var _parseParameters5 = parseParameters(options, void 0, onComplete), options = _parseParameters5.options, onComplete = _parseParameters5.onComplete; + options.__requestType__ = RequestType.URL; + options.preset = options.preset || "script"; + this.loadAny(url, options, onComplete); + }, + loadBundle: function loadBundle(nameOrUrl, options, onComplete) { + var _parseParameters6 = parseParameters(options, void 0, onComplete), options = _parseParameters6.options, onComplete = _parseParameters6.onComplete; + var bundleName = cc.path.basename(nameOrUrl); + if (this.bundles.has(bundleName)) return asyncify(onComplete)(null, this.getBundle(bundleName)); + options.preset = options.preset || "bundle"; + options.ext = "bundle"; + this.loadRemote(nameOrUrl, options, onComplete); + }, + releaseAsset: function releaseAsset(asset) { + releaseManager.tryRelease(asset, true); + }, + releaseUnusedAssets: function releaseUnusedAssets() { + assets.forEach((function(asset) { + releaseManager.tryRelease(asset); + })); + }, + releaseAll: function releaseAll() { + assets.forEach((function(asset) { + releaseManager.tryRelease(asset, true); + })); + }, + _transform: function _transform(input, options) { + var subTask = Task.create({ + input: input, + options: options + }); + var urls = []; + try { + var result = transformPipeline.sync(subTask); + for (var i = 0, l = result.length; i < l; i++) { + var item = result[i]; + var url = item.url; + item.recycle(); + urls.push(url); + } + } catch (e) { + for (var i = 0, l = subTask.output.length; i < l; i++) subTask.output[i].recycle(); + cc.error(e.message, e.stack); + } + subTask.recycle(); + return urls.length > 1 ? urls : urls[0]; + } + }; + cc.AssetManager = AssetManager; + cc.assetManager = new AssetManager(); + Object.defineProperty(cc, "resources", { + get: function get() { + return bundles.get(BuiltinBundleName.RESOURCES); + } + }); + module.exports = cc.assetManager; + }), { + "./builtins": 29, + "./bundle": 30, + "./cache": 31, + "./depend-util": 33, + "./downloader": 40, + "./factory": 41, + "./fetch": 42, + "./helper": 44, + "./load": 46, + "./pack-manager": 47, + "./parser": 48, + "./pipeline": 49, + "./preprocess": 50, + "./releaseManager": 51, + "./request-item": 52, + "./shared": 53, + "./task": 54, + "./urlTransformer": 55, + "./utilities": 56 + } ], + 29: [ (function(require, module, exports) { + "use strict"; + var Cache = require("./cache"); + var releaseManager = require("./releaseManager"); + var _require = require("./shared"), BuiltinBundleName = _require.BuiltinBundleName; + var builtins = { + _assets: new Cache({ + material: new Cache(), + effect: new Cache() + }), + _loadBuiltins: function _loadBuiltins(name, cb) { + var dirname = name + "s"; + var builtin = this._assets.get(name); + return cc.assetManager.internal.loadDir(dirname, null, null, (function(err, assets) { + if (err) cc.error(err.message, err.stack); else for (var i = 0; i < assets.length; i++) { + var asset = assets[i]; + builtin.add(asset.name, asset.addRef()); + } + cb(); + })); + }, + init: function init(cb) { + var _this = this; + this.clear(); + if (cc.game.renderType === cc.game.RENDER_TYPE_CANVAS || !cc.assetManager.bundles.has(BuiltinBundleName.INTERNAL)) return cb && cb(); + this._loadBuiltins("effect", (function() { + _this._loadBuiltins("material", (function() { + _this._loadBuiltinsSP(cb); + })); + })); + }, + _loadBuiltinsSP: function _loadBuiltinsSP(cb) { + cc.sp.MAX_MULTITEXTURE_NUM = 8; + this._loadMultiEffect("multi-2d-sprite", (function(effect) { + cc.sp.multi2dSpriteEffectAsset = effect; + effect.addRef(); + cc.sp.inited = true; + cc.sp.multiBatcher.init(); + -1 === cc.dynamicAtlasManager.maxAtlasCount && (cc.dynamicAtlasManager.maxAtlasCount = Math.max(0, cc.sp.MAX_MULTITEXTURE_NUM - cc.sp.charAtlasAutoBatchCount)); + cb(); + })); + }, + _loadMultiEffect: function _loadMultiEffect(name, cb) { + false; + cc.assetManager.loadBundle("sp", (function(err, bundle) { + err ? cc.error(err) : bundle.load("effects/" + name, cc.EffectAsset, (function(err, effect) { + err ? cc.error(err) : cb(effect); + })); + })); + }, + getBuiltin: function getBuiltin(type, name) { + return 0 === arguments.length ? this._assets : 1 === arguments.length ? this._assets.get(type) : this._assets.get(type).get(name); + }, + clear: function clear() { + this._assets.forEach((function(assets) { + assets.forEach((function(asset) { + releaseManager.tryRelease(asset, true); + })); + assets.clear(); + })); + } + }; + module.exports = builtins; + }), { + "./cache": 31, + "./releaseManager": 51, + "./shared": 53 + } ], + 30: [ (function(require, module, exports) { + "use strict"; + var Config = require("./config"); + var releaseManager = require("./releaseManager"); + var _require = require("./utilities"), parseParameters = _require.parseParameters, parseLoadResArgs = _require.parseLoadResArgs; + var _require2 = require("./shared"), RequestType = _require2.RequestType, assets = _require2.assets, bundles = _require2.bundles; + function Bundle() { + this._config = new Config(); + } + Bundle.prototype = { + constructor: Bundle, + get name() { + return this._config.name; + }, + get deps() { + return this._config.deps; + }, + get base() { + return this._config.base; + }, + getInfoWithPath: function getInfoWithPath(path, type) { + return this._config.getInfoWithPath(path, type); + }, + getDirWithPath: function getDirWithPath(path, type, out) { + return this._config.getDirWithPath(path, type, out); + }, + getAssetInfo: function getAssetInfo(uuid) { + return this._config.getAssetInfo(uuid); + }, + getSceneInfo: function getSceneInfo(name) { + return this._config.getSceneInfo(name); + }, + init: function init(options) { + this._config.init(options); + bundles.add(options.name, this); + }, + load: function load(paths, type, onProgress, onComplete) { + var _parseLoadResArgs = parseLoadResArgs(type, onProgress, onComplete), type = _parseLoadResArgs.type, onProgress = _parseLoadResArgs.onProgress, onComplete = _parseLoadResArgs.onComplete; + cc.assetManager.loadAny(paths, { + __requestType__: RequestType.PATH, + type: type, + bundle: this.name, + __outputAsArray__: Array.isArray(paths) + }, onProgress, onComplete); + }, + preload: function preload(paths, type, onProgress, onComplete) { + var _parseLoadResArgs2 = parseLoadResArgs(type, onProgress, onComplete), type = _parseLoadResArgs2.type, onProgress = _parseLoadResArgs2.onProgress, onComplete = _parseLoadResArgs2.onComplete; + cc.assetManager.preloadAny(paths, { + __requestType__: RequestType.PATH, + type: type, + bundle: this.name + }, onProgress, onComplete); + }, + loadDir: function loadDir(dir, type, onProgress, onComplete) { + var _parseLoadResArgs3 = parseLoadResArgs(type, onProgress, onComplete), type = _parseLoadResArgs3.type, onProgress = _parseLoadResArgs3.onProgress, onComplete = _parseLoadResArgs3.onComplete; + cc.assetManager.loadAny(dir, { + __requestType__: RequestType.DIR, + type: type, + bundle: this.name, + __outputAsArray__: true + }, onProgress, onComplete); + }, + preloadDir: function preloadDir(dir, type, onProgress, onComplete) { + var _parseLoadResArgs4 = parseLoadResArgs(type, onProgress, onComplete), type = _parseLoadResArgs4.type, onProgress = _parseLoadResArgs4.onProgress, onComplete = _parseLoadResArgs4.onComplete; + cc.assetManager.preloadAny(dir, { + __requestType__: RequestType.DIR, + type: type, + bundle: this.name + }, onProgress, onComplete); + }, + loadScene: function loadScene(sceneName, options, onProgress, onComplete) { + var _parseParameters = parseParameters(options, onProgress, onComplete), options = _parseParameters.options, onProgress = _parseParameters.onProgress, onComplete = _parseParameters.onComplete; + options.preset = options.preset || "scene"; + options.bundle = this.name; + cc.assetManager.loadAny({ + scene: sceneName + }, options, onProgress, (function(err, sceneAsset) { + if (err) { + cc.error(err.message, err.stack); + onComplete && onComplete(err); + } else if (sceneAsset instanceof cc.SceneAsset) { + var scene = sceneAsset.scene; + scene._id = sceneAsset._uuid; + scene._name = sceneAsset._name; + onComplete && onComplete(null, sceneAsset); + } else onComplete && onComplete(new Error("The asset " + sceneAsset._uuid + " is not a scene")); + })); + }, + preloadScene: function preloadScene(sceneName, options, onProgress, onComplete) { + var _parseParameters2 = parseParameters(options, onProgress, onComplete), options = _parseParameters2.options, onProgress = _parseParameters2.onProgress, onComplete = _parseParameters2.onComplete; + options.bundle = this.name; + cc.assetManager.preloadAny({ + scene: sceneName + }, options, onProgress, (function(err) { + err && cc.errorID(1210, sceneName, err.message); + onComplete && onComplete(err); + })); + }, + get: function get(path, type) { + var info = this.getInfoWithPath(path, type); + return assets.get(info && info.uuid); + }, + release: function release(path, type) { + releaseManager.tryRelease(this.get(path, type), true); + }, + releaseUnusedAssets: function releaseUnusedAssets() { + var self = this; + assets.forEach((function(asset) { + var info = self.getAssetInfo(asset._uuid); + info && !info.redirect && releaseManager.tryRelease(asset); + })); + }, + releaseAll: function releaseAll() { + var self = this; + assets.forEach((function(asset) { + var info = self.getAssetInfo(asset._uuid); + info && !info.redirect && releaseManager.tryRelease(asset, true); + })); + }, + _destroy: function _destroy() { + this._config.destroy(); + } + }; + module.exports = Bundle; + }), { + "./config": 32, + "./releaseManager": 51, + "./shared": 53, + "./utilities": 56 + } ], + 31: [ (function(require, module, exports) { + "use strict"; + var js = require("../platform/js"); + function Cache(map) { + if (map) { + this._map = map; + this._count = Object.keys(map).length; + } else { + this._map = js.createMap(true); + this._count = 0; + } + } + Cache.prototype = { + constructor: Cache, + add: function add(key, val) { + key in this._map || this._count++; + return this._map[key] = val; + }, + get: function get(key) { + return this._map[key]; + }, + has: function has(key) { + return key in this._map; + }, + remove: function remove(key) { + var out = this._map[key]; + if (key in this._map) { + delete this._map[key]; + this._count--; + } + return out; + }, + clear: function clear() { + if (0 !== this._count) { + this._map = js.createMap(true); + this._count = 0; + } + }, + forEach: function forEach(func) { + for (var key in this._map) func(this._map[key], key); + }, + find: function find(predicate) { + for (var key in this._map) if (predicate(this._map[key], key)) return this._map[key]; + return null; + }, + get count() { + return this._count; + }, + destroy: function destroy() { + this._map = null; + } + }; + module.exports = Cache; + }), { + "../platform/js": 142 + } ], + 32: [ (function(require, module, exports) { + "use strict"; + var js = require("../platform/js"); + var Cache = require("./cache"); + var _require = require("./helper"), normalize = _require.normalize; + var _require2 = require("./utilities"), processOptions = _require2.processOptions; + function Config() { + this.name = ""; + this.base = ""; + this.importBase = ""; + this.nativeBase = ""; + this.deps = null; + this.assetInfos = new Cache(); + this.scenes = new Cache(); + this.paths = new Cache(); + } + Config.prototype = { + constructor: Config, + init: function init(options) { + processOptions(options); + this.importBase = options.importBase || ""; + this.nativeBase = options.nativeBase || ""; + this.base = options.base || ""; + this.name = options.name || ""; + this.deps = options.deps || []; + this._initUuid(options.uuids); + this._initPath(options.paths); + this._initScene(options.scenes); + this._initPackage(options.packs); + this._initVersion(options.versions); + this._initRedirect(options.redirect); + }, + _initUuid: function _initUuid(uuidList) { + if (!uuidList) return; + this.assetInfos.clear(); + for (var i = 0, l = uuidList.length; i < l; i++) { + var uuid = uuidList[i]; + this.assetInfos.add(uuid, { + uuid: uuid + }); + } + }, + _initPath: function _initPath(pathList) { + if (!pathList) return; + var paths = this.paths; + paths.clear(); + for (var uuid in pathList) { + var info = pathList[uuid]; + var path = info[0]; + var type = info[1]; + var isSubAsset = 3 === info.length; + var assetInfo = this.assetInfos.get(uuid); + assetInfo.path = path; + assetInfo.ctor = js._getClassById(type); + paths.has(path) ? isSubAsset ? paths.get(path).push(assetInfo) : paths.get(path).splice(0, 0, assetInfo) : paths.add(path, [ assetInfo ]); + } + }, + _initScene: function _initScene(sceneList) { + if (!sceneList) return; + var scenes = this.scenes; + scenes.clear(); + var assetInfos = this.assetInfos; + for (var sceneName in sceneList) { + var uuid = sceneList[sceneName]; + var assetInfo = assetInfos.get(uuid); + assetInfo.url = sceneName; + scenes.add(sceneName, assetInfo); + } + }, + _initPackage: function _initPackage(packageList) { + if (!packageList) return; + var assetInfos = this.assetInfos; + for (var packUuid in packageList) { + var uuids = packageList[packUuid]; + var pack = { + uuid: packUuid, + packs: uuids, + ext: ".json" + }; + assetInfos.add(packUuid, pack); + for (var i = 0, l = uuids.length; i < l; i++) { + var uuid = uuids[i]; + var assetInfo = assetInfos.get(uuid); + var assetPacks = assetInfo.packs; + assetPacks ? 1 === l ? assetPacks.splice(0, 0, pack) : assetPacks.push(pack) : assetInfo.packs = [ pack ]; + } + } + }, + _initVersion: function _initVersion(versions) { + if (!versions) return; + var assetInfos = this.assetInfos; + var entries = versions["import"]; + if (entries) for (var i = 0, l = entries.length; i < l; i += 2) { + var uuid = entries[i]; + var assetInfo = assetInfos.get(uuid); + assetInfo.ver = entries[i + 1]; + } + entries = versions["native"]; + if (entries) for (var i = 0, l = entries.length; i < l; i += 2) { + var uuid = entries[i]; + var assetInfo = assetInfos.get(uuid); + assetInfo.nativeVer = entries[i + 1]; + } + }, + _initRedirect: function _initRedirect(redirect) { + if (!redirect) return; + var assetInfos = this.assetInfos; + for (var i = 0, l = redirect.length; i < l; i += 2) { + var uuid = redirect[i]; + var assetInfo = assetInfos.get(uuid); + assetInfo.redirect = redirect[i + 1]; + } + }, + getInfoWithPath: function getInfoWithPath(path, type) { + if (!path) return null; + path = normalize(path); + var items = this.paths.get(path); + if (items) { + if (!type) return items[0]; + for (var i = 0, l = items.length; i < l; i++) { + var assetInfo = items[i]; + if (js.isChildClassOf(assetInfo.ctor, type)) return assetInfo; + } + } + return null; + }, + getDirWithPath: function getDirWithPath(path, type, out) { + path = normalize(path); + "/" === path[path.length - 1] && (path = path.slice(0, -1)); + var infos = out || []; + function isMatchByWord(path, test) { + if (path.length > test.length) { + var nextAscii = path.charCodeAt(test.length); + return 47 === nextAscii; + } + return true; + } + this.paths.forEach((function(items, p) { + if (p.startsWith(path) && isMatchByWord(p, path) || !path) for (var i = 0, l = items.length; i < l; i++) { + var entry = items[i]; + type && !js.isChildClassOf(entry.ctor, type) || infos.push(entry); + } + })); + return infos; + }, + getAssetInfo: function getAssetInfo(uuid) { + return this.assetInfos.get(uuid); + }, + getSceneInfo: function getSceneInfo(name) { + name.endsWith(".fire") || (name += ".fire"); + "/" === name[0] || name.startsWith("db://") || (name = "/" + name); + var info = this.scenes.find((function(val, key) { + return key.endsWith(name); + })); + return info; + }, + destroy: function destroy() { + this.paths.destroy(); + this.scenes.destroy(); + this.assetInfos.destroy(); + } + }; + false; + module.exports = Config; + }), { + "../platform/js": 142, + "./cache": 31, + "./helper": 44, + "./utilities": 56 + } ], + 33: [ (function(require, module, exports) { + "use strict"; + var _deserializeCompiled = _interopRequireWildcard(require("../platform/deserialize-compiled")); + function _getRequireWildcardCache(nodeInterop) { + if ("function" !== typeof WeakMap) return null; + var cacheBabelInterop = new WeakMap(); + var cacheNodeInterop = new WeakMap(); + return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { + return nodeInterop ? cacheNodeInterop : cacheBabelInterop; + })(nodeInterop); + } + function _interopRequireWildcard(obj, nodeInterop) { + if (!nodeInterop && obj && obj.__esModule) return obj; + if (null === obj || "object" !== typeof obj && "function" !== typeof obj) return { + default: obj + }; + var cache = _getRequireWildcardCache(nodeInterop); + if (cache && cache.has(obj)) return cache.get(obj); + var newObj = {}; + var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; + for (var key in obj) if ("default" !== key && Object.prototype.hasOwnProperty.call(obj, key)) { + var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; + desc && (desc.get || desc.set) ? Object.defineProperty(newObj, key, desc) : newObj[key] = obj[key]; + } + newObj["default"] = obj; + cache && cache.set(obj, newObj); + return newObj; + } + var Cache = require("./cache"); + var deserialize = require("./deserialize"); + var _require = require("./shared"), files = _require.files, parsed = _require.parsed; + var dependUtil = { + _depends: new Cache(), + init: function init() { + this._depends.clear(); + }, + getNativeDep: function getNativeDep(uuid) { + var depend = this._depends.get(uuid); + if (depend) return depend.nativeDep && Object.assign({}, depend.nativeDep); + return null; + }, + getDeps: function getDeps(uuid) { + if (this._depends.has(uuid)) return this._depends.get(uuid).deps; + return []; + }, + getDepsRecursively: function getDepsRecursively(uuid) { + var exclude = Object.create(null), depends = []; + this._descend(uuid, exclude, depends); + return depends; + }, + _descend: function _descend(uuid, exclude, depends) { + var deps = this.getDeps(uuid); + for (var i = 0; i < deps.length; i++) { + var depend = deps[i]; + if (!exclude[depend]) { + exclude[depend] = true; + depends.push(depend); + this._descend(depend, exclude, depends); + } + } + }, + remove: function remove(uuid) { + this._depends.remove(uuid); + }, + parse: function parse(uuid, json) { + var out = null; + if (Array.isArray(json) || json.__type__) { + if (out = this._depends.get(uuid)) return out; + if (Array.isArray(json) && (false, !(0, _deserializeCompiled.hasNativeDep)(json))) out = { + deps: this._parseDepsFromJson(json) + }; else try { + var asset = deserialize(json); + out = this._parseDepsFromAsset(asset); + out.nativeDep && (out.nativeDep.uuid = uuid); + parsed.add(uuid + "@import", asset); + } catch (e) { + files.remove(uuid + "@import"); + out = { + deps: [] + }; + } + } else { + if ((true, out = this._depends.get(uuid)) && out.parsedFromExistAsset) return out; + out = this._parseDepsFromAsset(json); + } + this._depends.add(uuid, out); + return out; + }, + _parseDepsFromAsset: function _parseDepsFromAsset(asset) { + var out = { + deps: [], + parsedFromExistAsset: true, + preventPreloadNativeObject: asset.constructor.preventPreloadNativeObject, + preventDeferredLoadDependents: asset.constructor.preventDeferredLoadDependents + }; + var deps = asset.__depends__; + for (var i = 0, l = deps.length; i < l; i++) { + var dep = deps[i].uuid; + out.deps.push(dep); + } + asset.__nativeDepend__ && (out.nativeDep = asset._nativeDep); + return out; + }, + _parseDepsFromJson: (false, function(json) { + var depends = (0, _deserializeCompiled.getDependUuidList)(json); + depends.forEach((function(uuid, index) { + return depends[index] = cc.assetManager.utils.decodeUuid(uuid); + })); + return depends; + }) + }; + module.exports = dependUtil; + }), { + "../platform/deserialize-compiled": 136, + "./cache": 31, + "./deserialize": 35, + "./shared": 53 + } ], + 34: [ (function(require, module, exports) { + "use strict"; + var js = require("../platform/js"); + require("../CCDirector"); + var utilities = require("./utilities"); + var dependUtil = require("./depend-util"); + var releaseManager = require("./releaseManager"); + var downloader = require("./downloader"); + var factory = require("./factory"); + var helper = require("./helper"); + var ImageFmts = [ ".png", ".jpg", ".bmp", ".jpeg", ".gif", ".ico", ".tiff", ".webp", ".image", ".pvr", ".pkm" ]; + var AudioFmts = [ ".mp3", ".ogg", ".wav", ".m4a" ]; + function GetTrue() { + return true; + } + var md5Pipe = { + transformURL: function transformURL(url) { + var uuid = helper.getUuidFromURL(url); + if (!uuid) return url; + var bundle = cc.assetManager.bundles.find((function(b) { + return !!b.getAssetInfo(uuid); + })); + if (!bundle) return url; + var hashValue = ""; + var info = bundle.getAssetInfo(uuid); + hashValue = url.startsWith(bundle.base + bundle._config.nativeBase) ? info.nativeVer || "" : info.ver || ""; + if (!hashValue || -1 !== url.indexOf(hashValue)) return url; + var hashPatchInFolder = false; + ".ttf" === cc.path.extname(url) && (hashPatchInFolder = true); + if (hashPatchInFolder) { + var dirname = cc.path.dirname(url); + var basename = cc.path.basename(url); + url = dirname + "." + hashValue + "/" + basename; + } else url = url.replace(/.*[/\\][0-9a-fA-F]{2}[/\\]([0-9a-fA-F-]{8,})/, (function(match, uuid) { + return match + "." + hashValue; + })); + return url; + } + }; + var loader = { + onProgress: null, + _autoReleaseSetting: Object.create(null), + get _cache() { + return cc.assetManager.assets._map; + }, + load: function load(resources, progressCallback, completeCallback) { + if (void 0 === completeCallback && void 0 !== progressCallback) { + completeCallback = progressCallback; + progressCallback = null; + } + resources = Array.isArray(resources) ? resources : [ resources ]; + for (var i = 0; i < resources.length; i++) { + var item = resources[i]; + if ("string" === typeof item) resources[i] = { + url: item, + __isNative__: true + }; else { + if (item.type) { + item.ext = "." + item.type; + item.type = void 0; + } + item.url && (item.__isNative__ = true); + } + } + var images = []; + var audios = []; + cc.assetManager.loadAny(resources, null, (function(finish, total, item) { + item.content && (ImageFmts.includes(item.ext) ? images.push(item.content) : AudioFmts.includes(item.ext) && audios.push(item.content)); + progressCallback && progressCallback(finish, total, item); + }), (function(err, _native) { + var res = null; + if (!err) { + _native = Array.isArray(_native) ? _native : [ _native ]; + for (var i = 0; i < _native.length; i++) { + var item = _native[i]; + if (!(item instanceof cc.Asset)) { + var asset = item; + var url = resources[i].url; + images.includes(asset) ? factory.create(url, item, ".png", null, (function(err, image) { + asset = _native[i] = image; + })) : audios.includes(asset) && factory.create(url, item, ".mp3", null, (function(err, audio) { + asset = _native[i] = audio; + })); + cc.assetManager.assets.add(url, asset); + } + } + if (_native.length > 1) { + var map = Object.create(null); + _native.forEach((function(asset) { + map[asset._uuid] = asset; + })); + res = { + isCompleted: GetTrue, + _map: map + }; + } else res = _native[0]; + } + completeCallback && completeCallback(err, res); + })); + }, + getXMLHttpRequest: function getXMLHttpRequest() { + return new XMLHttpRequest(); + }, + _parseLoadResArgs: utilities.parseLoadResArgs, + getItem: function getItem(key) { + return cc.assetManager.assets.has(key) ? { + content: cc.assetManager.assets.get(key) + } : null; + }, + loadRes: function loadRes(url, type, progressCallback, completeCallback) { + var _this$_parseLoadResAr = this._parseLoadResArgs(type, progressCallback, completeCallback), type = _this$_parseLoadResAr.type, onProgress = _this$_parseLoadResAr.onProgress, onComplete = _this$_parseLoadResAr.onComplete; + var extname = cc.path.extname(url); + extname && (url = url.slice(0, -extname.length)); + cc.resources.load(url, type, onProgress, onComplete); + }, + loadResArray: function loadResArray(urls, type, progressCallback, completeCallback) { + var _this$_parseLoadResAr2 = this._parseLoadResArgs(type, progressCallback, completeCallback), type = _this$_parseLoadResAr2.type, onProgress = _this$_parseLoadResAr2.onProgress, onComplete = _this$_parseLoadResAr2.onComplete; + urls.forEach((function(url, i) { + var extname = cc.path.extname(url); + extname && (urls[i] = url.slice(0, -extname.length)); + })); + cc.resources.load(urls, type, onProgress, onComplete); + }, + loadResDir: function loadResDir(url, type, progressCallback, completeCallback) { + var _this$_parseLoadResAr3 = this._parseLoadResArgs(type, progressCallback, completeCallback), type = _this$_parseLoadResAr3.type, onProgress = _this$_parseLoadResAr3.onProgress, onComplete = _this$_parseLoadResAr3.onComplete; + cc.resources.loadDir(url, type, onProgress, (function(err, assets) { + var urls = []; + if (!err) { + var infos = cc.resources.getDirWithPath(url, type); + urls = infos.map((function(info) { + return info.path; + })); + } + onComplete && onComplete(err, assets, urls); + })); + }, + getRes: function getRes(url, type) { + return cc.assetManager.assets.has(url) ? cc.assetManager.assets.get(url) : cc.resources.get(url, type); + }, + getResCount: function getResCount() { + return cc.assetManager.assets.count; + }, + getDependsRecursively: function getDependsRecursively(owner) { + if (!owner) return []; + return dependUtil.getDepsRecursively("string" === typeof owner ? owner : owner._uuid).concat([ owner._uuid ]); + }, + get assetLoader() { + true; + cc.error("cc.loader.assetLoader was removed, assetLoader and md5Pipe were merged into cc.assetManager.transformPipeline"); + }, + get md5Pipe() { + return md5Pipe; + }, + get downloader() { + return cc.assetManager.downloader; + }, + get loader() { + return cc.assetManager.parser; + }, + addDownloadHandlers: function addDownloadHandlers(extMap) { + true; + cc.warn("`cc.loader.addDownloadHandlers` is deprecated, please use `cc.assetManager.downloader.register` instead"); + var handler = Object.create(null); + for (var type in extMap) { + var func = extMap[type]; + handler["." + type] = function(url, options, onComplete) { + func({ + url: url + }, onComplete); + }; + } + cc.assetManager.downloader.register(handler); + }, + addLoadHandlers: function addLoadHandlers(extMap) { + true; + cc.warn("`cc.loader.addLoadHandlers` is deprecated, please use `cc.assetManager.parser.register` instead"); + var handler = Object.create(null); + for (var type in extMap) { + var func = extMap[type]; + handler["." + type] = function(file, options, onComplete) { + func({ + content: file + }, onComplete); + }; + } + cc.assetManager.parser.register(handler); + }, + flowInDeps: function flowInDeps() { + true; + cc.error("cc.loader.flowInDeps was removed"); + }, + release: function release(asset) { + if (Array.isArray(asset)) for (var i = 0; i < asset.length; i++) { + var key = asset[i]; + "string" === typeof key && (key = cc.assetManager.assets.get(key)); + var isBuiltin = cc.assetManager.builtins._assets.find((function(assets) { + return assets.find((function(builtinAsset) { + return builtinAsset === key; + })); + })); + if (isBuiltin) continue; + cc.assetManager.releaseAsset(key); + } else if (asset) { + "string" === typeof asset && (asset = cc.assetManager.assets.get(asset)); + var _isBuiltin = cc.assetManager.builtins._assets.find((function(assets) { + return assets.find((function(builtinAsset) { + return builtinAsset === asset; + })); + })); + if (_isBuiltin) return; + cc.assetManager.releaseAsset(asset); + } + }, + releaseAsset: function releaseAsset(asset) { + cc.assetManager.releaseAsset(asset); + }, + releaseRes: function releaseRes(url, type) { + cc.resources.release(url, type); + }, + releaseResDir: function releaseResDir() { + true; + cc.error("cc.loader.releaseResDir was removed, please use cc.assetManager.releaseAsset instead"); + }, + releaseAll: function releaseAll() { + cc.assetManager.releaseAll(); + cc.assetManager.assets.clear(); + }, + removeItem: function removeItem(key) { + cc.assetManager.assets.remove(key); + }, + setAutoRelease: function setAutoRelease(asset, autoRelease) { + "object" === typeof asset && (asset = asset._uuid); + this._autoReleaseSetting[asset] = !!autoRelease; + }, + setAutoReleaseRecursively: function setAutoReleaseRecursively(asset, autoRelease) { + "object" === typeof asset && (asset = asset._uuid); + autoRelease = !!autoRelease; + this._autoReleaseSetting[asset] = autoRelease; + var depends = dependUtil.getDepsRecursively(asset); + for (var i = 0; i < depends.length; i++) { + var depend = depends[i]; + this._autoReleaseSetting[depend] = autoRelease; + } + }, + isAutoRelease: function isAutoRelease(asset) { + "object" === typeof asset && (asset = asset._uuid); + return !!this._autoReleaseSetting[asset]; + } + }; + downloader.loadSubpackage = function(name, completeCallback) { + cc.assetManager.loadBundle(name, null, completeCallback); + }; + var AssetLibrary = { + init: function init(options) { + options.importBase = options.libraryPath; + options.nativeBase = options.rawAssetsBase; + cc.assetManager.init(options); + if (options.rawAssets) { + var resources = new cc.AssetManager.Bundle(); + resources.init({ + name: cc.AssetManager.BuiltinBundleName.RESOURCES, + importBase: options.importBase, + nativeBase: options.nativeBase, + paths: options.rawAssets.assets, + uuids: Object.keys(options.rawAssets.assets) + }); + } + }, + loadAsset: function loadAsset(uuid, onComplete) { + cc.assetManager.loadAny(uuid, onComplete); + }, + getLibUrlNoExt: function getLibUrlNoExt() { + true; + cc.error("cc.AssetLibrary.getLibUrlNoExt was removed, if you want to transform url, please use cc.assetManager.utils.getUrlWithUuid instead"); + }, + queryAssetInfo: function queryAssetInfo() { + true; + cc.error("cc.AssetLibrary.queryAssetInfo was removed, only available in the editor by using cc.assetManager.editorExtend.queryAssetInfo"); + } + }; + cc.url = { + normalize: function normalize(url) { + cc.warnID(1400, "cc.url.normalize", "cc.assetManager.utils.normalize"); + return cc.assetManager.utils.normalize(url); + }, + raw: function raw(url) { + cc.warnID(1400, "cc.url.raw", "cc.resources.load"); + if (url.startsWith("resources/")) return cc.assetManager._transform({ + path: cc.path.changeExtname(url.substr(10)), + bundle: cc.AssetManager.BuiltinBundleName.RESOURCES, + __isNative__: true, + ext: cc.path.extname(url) + }); + return ""; + } + }; + var onceWarns = { + loader: true, + assetLibrary: true + }; + Object.defineProperties(cc, { + loader: { + get: function get() { + true; + if (onceWarns.loader) { + onceWarns.loader = false; + cc.log("cc.loader is deprecated, use cc.assetManager instead please. See https://docs.cocos.com/creator/manual/zh/release-notes/asset-manager-upgrade-guide.html"); + } + return loader; + } + }, + AssetLibrary: { + get: function get() { + true; + if (onceWarns.assetLibrary) { + onceWarns.assetLibrary = false; + cc.log("cc.AssetLibrary is deprecated, use cc.assetManager instead please. See https://docs.cocos.com/creator/manual/zh/release-notes/asset-manager-upgrade-guide.html"); + } + return AssetLibrary; + } + }, + LoadingItems: { + get: function get() { + cc.warnID(1400, "cc.LoadingItems", "cc.AssetManager.Task"); + return cc.AssetManager.Task; + } + }, + Pipeline: { + get: function get() { + cc.warnID(1400, "cc.Pipeline", "cc.AssetManager.Pipeline"); + return cc.AssetManager.Pipeline; + } + } + }); + js.obsolete(cc, "cc.RawAsset", "cc.Asset"); + js.obsolete(cc.Asset.prototype, "cc.Asset.url", "nativeUrl"); + Object.defineProperties(cc.macro, { + DOWNLOAD_MAX_CONCURRENT: { + get: function get() { + return cc.assetManager.downloader.maxConcurrency; + }, + set: function set(val) { + cc.assetManager.downloader.maxConcurrency = val; + } + } + }); + Object.assign(cc.director, { + _getSceneUuid: function _getSceneUuid(sceneName) { + cc.assetManager.main.getSceneInfo(sceneName); + } + }); + Object.defineProperties(cc.game, { + _sceneInfos: { + get: function get() { + var scenes = []; + cc.assetManager.main._config.scenes.forEach((function(val) { + scenes.push(val); + })); + return scenes; + } + } + }); + var parseParameters = utilities.parseParameters; + utilities.parseParameters = function(options, onProgress, onComplete) { + var result = parseParameters(options, onProgress, onComplete); + result.onProgress = result.onProgress || loader.onProgress; + return result; + }; + var autoRelease = releaseManager._autoRelease; + releaseManager._autoRelease = function() { + autoRelease.apply(this, arguments); + var releaseSettings = loader._autoReleaseSetting; + var keys = Object.keys(releaseSettings); + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + if (true === releaseSettings[key]) { + var asset = cc.assetManager.assets.get(key); + asset && releaseManager.tryRelease(asset); + } + } + }; + }), { + "../CCDirector": 22, + "../platform/js": 142, + "./depend-util": 33, + "./downloader": 40, + "./factory": 41, + "./helper": 44, + "./releaseManager": 51, + "./utilities": 56 + } ], + 35: [ (function(require, module, exports) { + "use strict"; + var helper = require("./helper"); + var MissingClass = false; + require("../platform/deserialize"); + function deserialize(json, options) { + var classFinder, missingClass; + false; + classFinder = cc._MissingScript.safeFindClass; + var pool = null; + var _require, deserializeForCompiled; + var deserializeForEditor; + true; + pool = cc.deserialize.Details.pool; + var tdInfo = pool.get(); + var asset; + try { + asset = cc.deserialize(json, tdInfo, { + classFinder: classFinder, + customEnv: options + }); + } catch (e) { + pool.put(tdInfo); + throw e; + } + false; + var uuidList = tdInfo.uuidList; + var objList = tdInfo.uuidObjList; + var propList = tdInfo.uuidPropList; + var depends = []; + for (var i = 0; i < uuidList.length; i++) { + var dependUuid = uuidList[i]; + depends[i] = { + uuid: helper.decodeUuid(dependUuid), + owner: objList[i], + prop: propList[i] + }; + } + asset.__depends__ = depends; + asset._native && (asset.__nativeDepend__ = true); + pool.put(tdInfo); + return asset; + } + module.exports = deserialize; + }), { + "../platform/deserialize": 137, + "../platform/deserialize-compiled": 136, + "../platform/deserialize-editor": void 0, + "./helper": 44 + } ], + 36: [ (function(require, module, exports) { + "use strict"; + var __audioSupport = cc.sys.__audioSupport; + var _require = require("./utilities"), parseParameters = _require.parseParameters; + function downloadDomAudio(url, options, onComplete) { + var _parseParameters = parseParameters(options, void 0, onComplete), options = _parseParameters.options, onComplete = _parseParameters.onComplete; + var dom = document.createElement("audio"); + dom.src = url; + var clearEvent = function clearEvent() { + clearTimeout(timer); + dom.removeEventListener("canplaythrough", success, false); + dom.removeEventListener("error", failure, false); + __audioSupport.USE_LOADER_EVENT && dom.removeEventListener(__audioSupport.USE_LOADER_EVENT, success, false); + }; + var timer = setTimeout((function() { + 0 === dom.readyState ? failure() : success(); + }), 8e3); + var success = function success() { + clearEvent(); + onComplete && onComplete(null, dom); + }; + var failure = function failure() { + clearEvent(); + var message = "load audio failure - " + url; + cc.log(message); + onComplete && onComplete(new Error(message)); + }; + dom.addEventListener("canplaythrough", success, false); + dom.addEventListener("error", failure, false); + __audioSupport.USE_LOADER_EVENT && dom.addEventListener(__audioSupport.USE_LOADER_EVENT, success, false); + return dom; + } + module.exports = downloadDomAudio; + }), { + "./utilities": 56 + } ], + 37: [ (function(require, module, exports) { + "use strict"; + var _require = require("./utilities"), parseParameters = _require.parseParameters; + function downloadDomImage(url, options, onComplete) { + var _parseParameters = parseParameters(options, void 0, onComplete), options = _parseParameters.options, onComplete = _parseParameters.onComplete; + var img = new Image(); + "file:" !== window.location.protocol && (img.crossOrigin = "anonymous"); + function loadCallback() { + img.removeEventListener("load", loadCallback); + img.removeEventListener("error", errorCallback); + onComplete && onComplete(null, img); + } + function errorCallback() { + img.removeEventListener("load", loadCallback); + img.removeEventListener("error", errorCallback); + onComplete && onComplete(new Error(cc.debug.getError(4930, url))); + } + img.addEventListener("load", loadCallback); + img.addEventListener("error", errorCallback); + img.src = url; + return img; + } + module.exports = downloadDomImage; + }), { + "./utilities": 56 + } ], + 38: [ (function(require, module, exports) { + "use strict"; + var _require = require("./utilities"), parseParameters = _require.parseParameters; + function downloadFile(url, options, onProgress, onComplete) { + var _parseParameters = parseParameters(options, onProgress, onComplete), options = _parseParameters.options, onProgress = _parseParameters.onProgress, onComplete = _parseParameters.onComplete; + var xhr = new XMLHttpRequest(), errInfo = "download failed: " + url + ", status: "; + xhr.open("GET", url, true); + void 0 !== options.responseType && (xhr.responseType = options.responseType); + void 0 !== options.withCredentials && (xhr.withCredentials = options.withCredentials); + void 0 !== options.mimeType && xhr.overrideMimeType && xhr.overrideMimeType(options.mimeType); + void 0 !== options.timeout && (xhr.timeout = options.timeout); + if (options.header) for (var header in options.header) xhr.setRequestHeader(header, options.header[header]); + xhr.onload = function() { + 200 === xhr.status || 0 === xhr.status ? onComplete && onComplete(null, xhr.response) : onComplete && onComplete(new Error(errInfo + xhr.status + "(no response)")); + }; + onProgress && (xhr.onprogress = function(e) { + e.lengthComputable && onProgress(e.loaded, e.total); + }); + xhr.onerror = function() { + onComplete && onComplete(new Error(errInfo + xhr.status + "(error)")); + }; + xhr.ontimeout = function() { + onComplete && onComplete(new Error(errInfo + xhr.status + "(time out)")); + }; + xhr.onabort = function() { + onComplete && onComplete(new Error(errInfo + xhr.status + "(abort)")); + }; + xhr.send(null); + return xhr; + } + module.exports = downloadFile; + }), { + "./utilities": 56 + } ], + 39: [ (function(require, module, exports) { + "use strict"; + var _require = require("./utilities"), parseParameters = _require.parseParameters; + var downloaded = {}; + function downloadScript(url, options, onComplete) { + var _parseParameters = parseParameters(options, void 0, onComplete), options = _parseParameters.options, onComplete = _parseParameters.onComplete; + if (downloaded[url]) return onComplete && onComplete(null); + var d = document, s = document.createElement("script"); + "file:" !== window.location.protocol && (s.crossOrigin = "anonymous"); + s.async = options.async; + s.src = url; + function loadHandler() { + s.parentNode.removeChild(s); + s.removeEventListener("load", loadHandler, false); + s.removeEventListener("error", errorHandler, false); + downloaded[url] = true; + onComplete && onComplete(null); + } + function errorHandler() { + s.parentNode.removeChild(s); + s.removeEventListener("load", loadHandler, false); + s.removeEventListener("error", errorHandler, false); + onComplete && onComplete(new Error(cc.debug.getError(4928, url))); + } + s.addEventListener("load", loadHandler, false); + s.addEventListener("error", errorHandler, false); + d.body.appendChild(s); + } + module.exports = downloadScript; + }), { + "./utilities": 56 + } ], + 40: [ (function(require, module, exports) { + "use strict"; + var js = require("../platform/js"); + var debug = require("../CCDebug"); + var _require = require("./font-loader"), loadFont = _require.loadFont; + var callInNextTick = require("../platform/utils").callInNextTick; + var downloadDomImage = require("./download-dom-image"); + var downloadDomAudio = require("./download-dom-audio"); + var downloadFile = require("./download-file"); + var downloadScript = require("./download-script.js"); + var Cache = require("./cache"); + var _require2 = require("./shared"), files = _require2.files; + var _require3 = require("../platform/CCSys"), __audioSupport = _require3.__audioSupport, capabilities = _require3.capabilities; + var _require4 = require("./utilities"), urlAppendTimestamp = _require4.urlAppendTimestamp, retry = _require4.retry; + var REGEX = /^(?:\w+:\/\/|\.+\/).+/; + var formatSupport = __audioSupport.format || []; + var unsupported = function unsupported(url, options, onComplete) { + onComplete(new Error(debug.getError(4927))); + }; + var downloadAudio = function downloadAudio(url, options, onComplete) { + options.audioLoadMode !== cc.AudioClip.LoadMode.DOM_AUDIO ? downloadArrayBuffer(url, options, onComplete) : downloadDomAudio(url, options, onComplete); + }; + var downloadAudio = 0 === formatSupport.length ? unsupported : __audioSupport.WEB_AUDIO ? downloadAudio : downloadDomAudio; + var downloadImage = function downloadImage(url, options, onComplete) { + var func = capabilities.imageBitmap && cc.macro.ALLOW_IMAGE_BITMAP ? downloadBlob : downloadDomImage; + func.apply(this, arguments); + }; + var downloadBlob = function downloadBlob(url, options, onComplete) { + options.responseType = "blob"; + downloadFile(url, options, options.onFileProgress, onComplete); + }; + var downloadJson = function downloadJson(url, options, onComplete) { + options.responseType = "json"; + downloadFile(url, options, options.onFileProgress, (function(err, data) { + if (!err && "string" === typeof data) try { + data = JSON.parse(data); + } catch (e) { + err = e; + } + onComplete && onComplete(err, data); + })); + }; + var downloadArrayBuffer = function downloadArrayBuffer(url, options, onComplete) { + options.responseType = "arraybuffer"; + downloadFile(url, options, options.onFileProgress, onComplete); + }; + var downloadText = function downloadText(url, options, onComplete) { + options.responseType = "text"; + downloadFile(url, options, options.onFileProgress, onComplete); + }; + var downloadVideo = function downloadVideo(url, options, onComplete) { + onComplete(null, url); + }; + var downloadBundle = function downloadBundle(nameOrUrl, options, onComplete) { + var bundleName = cc.path.basename(nameOrUrl); + var url = nameOrUrl; + REGEX.test(url) || (url = "assets/" + bundleName); + var version = options.version || downloader.bundleVers[bundleName]; + var count = 0; + var config = url + "/config." + (version ? version + "." : "") + "json"; + var out = null, error = null; + downloadJson(config, options, (function(err, response) { + err && (error = err); + out = response; + out && (out.base = url + "/"); + count++; + 2 === count && onComplete(error, out); + })); + var js = url + "/index." + (version ? version + "." : "") + "js"; + downloadScript(js, options, (function(err) { + err && (error = err); + count++; + 2 === count && onComplete(error, out); + })); + }; + var _downloading = new Cache(); + var _queue = []; + var _queueDirty = false; + var _totalNum = 0; + var _totalNumThisPeriod = 0; + var _lastDate = -1; + var _checkNextPeriod = false; + var updateTime = function updateTime() { + var now = Date.now(); + var interval = cc.director._deltaTime > downloader._maxInterval ? downloader._maxInterval : cc.director._deltaTime; + if (now - _lastDate > 1e3 * interval) { + _totalNumThisPeriod = 0; + _lastDate = now; + } + }; + var handleQueue = function handleQueue(maxConcurrency, maxRequestsPerFrame) { + _checkNextPeriod = false; + updateTime(); + while (_queue.length > 0 && _totalNum < maxConcurrency && _totalNumThisPeriod < maxRequestsPerFrame) { + if (_queueDirty) { + _queue.sort((function(a, b) { + return a.priority - b.priority; + })); + _queueDirty = false; + } + var nextOne = _queue.pop(); + if (!nextOne) break; + _totalNum++; + _totalNumThisPeriod++; + nextOne.invoke(); + } + if (_queue.length > 0 && _totalNum < maxConcurrency) { + callInNextTick(handleQueue, maxConcurrency, maxRequestsPerFrame); + _checkNextPeriod = true; + } + }; + var downloader = { + _remoteServerAddress: "", + _maxInterval: 1 / 30, + get remoteServerAddress() { + return this._remoteServerAddress; + }, + maxConcurrency: 6, + maxRequestsPerFrame: 6, + maxRetryCount: 3, + appendTimeStamp: false, + limited: true, + retryInterval: 2e3, + bundleVers: null, + downloadDomImage: downloadDomImage, + downloadDomAudio: downloadDomAudio, + downloadFile: downloadFile, + downloadScript: downloadScript, + init: function init(bundleVers, remoteServerAddress) { + _downloading.clear(); + _queue.length = 0; + this._remoteServerAddress = remoteServerAddress || ""; + this.bundleVers = bundleVers || Object.create(null); + }, + register: function register(type, handler) { + "object" === typeof type ? js.mixin(downloaders, type) : downloaders[type] = handler; + }, + download: function download(id, url, type, options, onComplete) { + var func = downloaders[type] || downloaders["default"]; + var self = this; + var file, downloadCallbacks; + if (file = files.get(id)) onComplete(null, file); else if (downloadCallbacks = _downloading.get(id)) { + downloadCallbacks.push(onComplete); + for (var i = 0, l = _queue.length; i < l; i++) { + var item = _queue[i]; + if (item.id === id) { + var priority = options.priority || 0; + if (item.priority < priority) { + item.priority = priority; + _queueDirty = true; + } + return; + } + } + } else { + var process = function process(index, callback) { + 0 === index && _downloading.add(id, [ onComplete ]); + if (!self.limited) return func(urlAppendTimestamp(url), options, callback); + updateTime(); + function invoke() { + func(urlAppendTimestamp(url), options, (function() { + _totalNum--; + if (!_checkNextPeriod && _queue.length > 0) { + callInNextTick(handleQueue, maxConcurrency, maxRequestsPerFrame); + _checkNextPeriod = true; + } + callback.apply(this, arguments); + })); + } + if (_totalNum < maxConcurrency && _totalNumThisPeriod < maxRequestsPerFrame) { + invoke(); + _totalNum++; + _totalNumThisPeriod++; + } else { + _queue.push({ + id: id, + priority: options.priority || 0, + invoke: invoke + }); + _queueDirty = true; + if (!_checkNextPeriod && _totalNum < maxConcurrency) { + callInNextTick(handleQueue, maxConcurrency, maxRequestsPerFrame); + _checkNextPeriod = true; + } + } + }; + var finale = function finale(err, result) { + err || files.add(id, result); + var callbacks = _downloading.remove(id); + for (var _i = 0, _l = callbacks.length; _i < _l; _i++) callbacks[_i](err, result); + }; + var maxRetryCount = "undefined" !== typeof options.maxRetryCount ? options.maxRetryCount : this.maxRetryCount; + var maxConcurrency = "undefined" !== typeof options.maxConcurrency ? options.maxConcurrency : this.maxConcurrency; + var maxRequestsPerFrame = "undefined" !== typeof options.maxRequestsPerFrame ? options.maxRequestsPerFrame : this.maxRequestsPerFrame; + retry(process, maxRetryCount, this.retryInterval, finale); + } + } + }; + var downloaders = { + ".png": downloadImage, + ".jpg": downloadImage, + ".bmp": downloadImage, + ".jpeg": downloadImage, + ".gif": downloadImage, + ".ico": downloadImage, + ".tiff": downloadImage, + ".webp": downloadImage, + ".image": downloadImage, + ".pvr": downloadArrayBuffer, + ".pkm": downloadArrayBuffer, + ".mp3": downloadAudio, + ".ogg": downloadAudio, + ".wav": downloadAudio, + ".m4a": downloadAudio, + ".txt": downloadText, + ".xml": downloadText, + ".vsh": downloadText, + ".fsh": downloadText, + ".atlas": downloadText, + ".tmx": downloadText, + ".tsx": downloadText, + ".json": downloadJson, + ".ExportJson": downloadJson, + ".plist": downloadText, + ".fnt": downloadText, + ".font": loadFont, + ".eot": loadFont, + ".ttf": loadFont, + ".woff": loadFont, + ".svg": loadFont, + ".ttc": loadFont, + ".mp4": downloadVideo, + ".avi": downloadVideo, + ".mov": downloadVideo, + ".mpg": downloadVideo, + ".mpeg": downloadVideo, + ".rm": downloadVideo, + ".rmvb": downloadVideo, + ".binary": downloadArrayBuffer, + ".bin": downloadArrayBuffer, + ".dbbin": downloadArrayBuffer, + ".skel": downloadArrayBuffer, + ".js": downloadScript, + bundle: downloadBundle, + default: downloadText + }; + downloader._downloaders = downloaders; + module.exports = downloader; + }), { + "../CCDebug": 21, + "../platform/CCSys": 130, + "../platform/js": 142, + "../platform/utils": 145, + "./cache": 31, + "./download-dom-audio": 36, + "./download-dom-image": 37, + "./download-file": 38, + "./download-script.js": 39, + "./font-loader": 43, + "./shared": 53, + "./utilities": 56 + } ], + 41: [ (function(require, module, exports) { + "use strict"; + var Bundle = require("./bundle"); + var Cache = require("./cache"); + var _require = require("./shared"), assets = _require.assets, bundles = _require.bundles; + var _creating = new Cache(); + function createTexture(id, data, options, onComplete) { + var out = null, err = null; + try { + out = new cc.Texture2D(); + out._nativeUrl = id; + out._nativeAsset = data; + } catch (e) { + err = e; + } + onComplete && onComplete(err, out); + } + function createAudioClip(id, data, options, onComplete) { + var out = new cc.AudioClip(); + out._nativeUrl = id; + out._nativeAsset = data; + out.duration = data.duration; + onComplete && onComplete(null, out); + } + function createJsonAsset(id, data, options, onComplete) { + var out = new cc.JsonAsset(); + out.json = data; + onComplete && onComplete(null, out); + } + function createTextAsset(id, data, options, onComplete) { + var out = new cc.TextAsset(); + out.text = data; + onComplete && onComplete(null, out); + } + function createFont(id, data, options, onComplete) { + var out = new cc.TTFFont(); + out._nativeUrl = id; + out._nativeAsset = data; + onComplete && onComplete(null, out); + } + function createBufferAsset(id, data, options, onComplete) { + var out = new cc.BufferAsset(); + out._nativeUrl = id; + out._nativeAsset = data; + onComplete && onComplete(null, out); + } + function createAsset(id, data, options, onComplete) { + var out = new cc.Asset(); + out._nativeUrl = id; + out._nativeAsset = data; + onComplete && onComplete(null, out); + } + function createBundle(id, data, options, onComplete) { + var bundle = bundles.get(data.name); + if (!bundle) { + bundle = new Bundle(); + data.base = data.base || id + "/"; + bundle.init(data); + } + onComplete && onComplete(null, bundle); + } + var factory = { + register: function register(type, handler) { + "object" === typeof type ? cc.js.mixin(producers, type) : producers[type] = handler; + }, + create: function create(id, data, type, options, onComplete) { + var func = producers[type] || producers["default"]; + var asset, creating; + if (asset = assets.get(id)) onComplete(null, asset); else if (creating = _creating.get(id)) creating.push(onComplete); else { + _creating.add(id, [ onComplete ]); + func(id, data, options, (function(err, data) { + if (!err && data instanceof cc.Asset) { + data._uuid = id; + assets.add(id, data); + } + var callbacks = _creating.remove(id); + for (var i = 0, l = callbacks.length; i < l; i++) callbacks[i](err, data); + })); + } + } + }; + var producers = { + ".png": createTexture, + ".jpg": createTexture, + ".bmp": createTexture, + ".jpeg": createTexture, + ".gif": createTexture, + ".ico": createTexture, + ".tiff": createTexture, + ".webp": createTexture, + ".image": createTexture, + ".pvr": createTexture, + ".pkm": createTexture, + ".mp3": createAudioClip, + ".ogg": createAudioClip, + ".wav": createAudioClip, + ".m4a": createAudioClip, + ".txt": createTextAsset, + ".xml": createTextAsset, + ".vsh": createTextAsset, + ".fsh": createTextAsset, + ".atlas": createTextAsset, + ".tmx": createTextAsset, + ".tsx": createTextAsset, + ".fnt": createTextAsset, + ".json": createJsonAsset, + ".ExportJson": createJsonAsset, + ".font": createFont, + ".eot": createFont, + ".ttf": createFont, + ".woff": createFont, + ".svg": createFont, + ".ttc": createFont, + ".binary": createBufferAsset, + ".bin": createBufferAsset, + ".dbbin": createBufferAsset, + ".skel": createBufferAsset, + bundle: createBundle, + default: createAsset + }; + module.exports = factory; + }), { + "./bundle": 30, + "./cache": 31, + "./shared": 53 + } ], + 42: [ (function(require, module, exports) { + "use strict"; + var packManager = require("./pack-manager"); + var Task = require("./task"); + var _require = require("./utilities"), getDepends = _require.getDepends, clear = _require.clear, forEach = _require.forEach; + var _require2 = require("./shared"), assets = _require2.assets, fetchPipeline = _require2.fetchPipeline; + function fetch(task, done) { + var firstTask = false; + if (!task.progress) { + task.progress = { + finish: 0, + total: task.input.length, + canInvoke: true + }; + firstTask = true; + } + var options = task.options, depends = [], progress = task.progress, total = progress.total; + options.__exclude__ = options.__exclude__ || Object.create(null); + task.output = []; + forEach(task.input, (function(item, cb) { + if (!item.isNative && assets.has(item.uuid)) { + var asset = assets.get(item.uuid); + asset.addRef(); + handle(item, task, asset, null, asset.__asyncLoadAssets__, depends, total, done); + return cb(); + } + packManager.load(item, task.options, (function(err, data) { + if (err) { + if (!task.isFinish) if (!cc.assetManager.force || firstTask) { + cc.error(err.message, err.stack); + progress.canInvoke = false; + done(err); + } else handle(item, task, null, null, false, depends, total, done); + } else task.isFinish || handle(item, task, null, data, !item.isNative, depends, total, done); + cb(); + })); + }), (function() { + if (task.isFinish) { + clear(task, true); + return task.dispatch("error"); + } + if (depends.length > 0) { + var subTask = Task.create({ + name: task.name + " dependencies", + input: depends, + progress: progress, + options: options, + onProgress: task.onProgress, + onError: Task.prototype.recycle, + onComplete: function onComplete(err) { + if (!err) { + task.output.push.apply(task.output, this.output); + subTask.recycle(); + } + firstTask && decreaseRef(task); + done(err); + } + }); + fetchPipeline.async(subTask); + return; + } + firstTask && decreaseRef(task); + done(); + })); + } + function decreaseRef(task) { + var output = task.output; + for (var i = 0, l = output.length; i < l; i++) output[i].content && output[i].content.decRef(false); + } + function handle(item, task, content, file, loadDepends, depends, last, done) { + var exclude = task.options.__exclude__; + var progress = task.progress; + item.content = content; + item.file = file; + task.output.push(item); + if (loadDepends) { + exclude[item.uuid] = true; + getDepends(item.uuid, file || content, exclude, depends, true, false, item.config); + progress.total = last + depends.length; + } + progress.canInvoke && task.dispatch("progress", ++progress.finish, progress.total, item); + } + module.exports = fetch; + }), { + "./pack-manager": 47, + "./shared": 53, + "./task": 54, + "./utilities": 56 + } ], + 43: [ (function(require, module, exports) { + "use strict"; + var textUtils = require("../utils/text-utils"); + var _canvasContext = null; + var _testString = "BES bswy:->@123\u4e01\u3041\u1101"; + var _fontFaces = Object.create(null); + var _intervalId = -1; + var _loadingFonts = []; + var _timeout = 3e3; + var useNativeCheck = (function() { + var nativeCheck = void 0; + return function() { + if (void 0 === nativeCheck) if (!window.FontFace) nativeCheck = false; else { + var match = /Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent); + var safari10Match = /OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent) && /Apple/.exec(window.navigator.vendor); + nativeCheck = match ? parseInt(match[1], 10) > 42 : !safari10Match; + } + return nativeCheck; + }; + })(); + function _checkFontLoaded() { + var allFontsLoaded = true; + var now = Date.now(); + for (var i = _loadingFonts.length - 1; i >= 0; i--) { + var fontLoadHandle = _loadingFonts[i]; + var fontFamily = fontLoadHandle.fontFamilyName; + if (now - fontLoadHandle.startTime > _timeout) { + cc.warnID(4933, fontFamily); + fontLoadHandle.onComplete(null, fontFamily); + _loadingFonts.splice(i, 1); + continue; + } + var oldWidth = fontLoadHandle.refWidth; + var fontDesc = "40px " + fontFamily; + _canvasContext.font = fontDesc; + var newWidth = textUtils.safeMeasureText(_canvasContext, _testString, fontDesc); + if (oldWidth !== newWidth) { + _loadingFonts.splice(i, 1); + fontLoadHandle.onComplete(null, fontFamily); + } else allFontsLoaded = false; + } + if (allFontsLoaded) { + clearInterval(_intervalId); + _intervalId = -1; + } + } + function nativeCheckFontLoaded(start, font, callback) { + var loader = new Promise(function(resolve, reject) { + var check = function check() { + var now = Date.now(); + now - start >= _timeout ? reject() : document.fonts.load("40px " + font).then((function(fonts) { + fonts.length >= 1 ? resolve() : setTimeout(check, 100); + }), (function() { + reject(); + })); + }; + check(); + }); + var timeoutId = null, timer = new Promise(function(resolve, reject) { + timeoutId = setTimeout(reject, _timeout); + }); + Promise.race([ timer, loader ]).then((function() { + if (timeoutId) { + clearTimeout(timeoutId); + timeoutId = null; + } + callback(null, font); + }), (function() { + cc.warnID(4933, font); + callback(null, font); + })); + } + var fontLoader = { + loadFont: function loadFont(url, options, onComplete) { + var fontFamilyName = fontLoader._getFontFamily(url); + if (_fontFaces[fontFamilyName]) return onComplete(null, fontFamilyName); + if (!_canvasContext) { + var labelCanvas = document.createElement("canvas"); + labelCanvas.width = 100; + labelCanvas.height = 100; + _canvasContext = labelCanvas.getContext("2d"); + } + var fontDesc = "40px " + fontFamilyName; + _canvasContext.font = fontDesc; + var refWidth = textUtils.safeMeasureText(_canvasContext, _testString, fontDesc); + var fontStyle = document.createElement("style"); + fontStyle.type = "text/css"; + var fontStr = ""; + isNaN(fontFamilyName - 0) ? fontStr += "@font-face { font-family:" + fontFamilyName + "; src:" : fontStr += "@font-face { font-family:'" + fontFamilyName + "'; src:"; + fontStr += "url('" + url + "');"; + fontStyle.textContent = fontStr + "}"; + document.body.appendChild(fontStyle); + var preloadDiv = document.createElement("div"); + var divStyle = preloadDiv.style; + divStyle.fontFamily = fontFamilyName; + preloadDiv.innerHTML = "."; + divStyle.position = "absolute"; + divStyle.left = "-100px"; + divStyle.top = "-100px"; + document.body.appendChild(preloadDiv); + if (useNativeCheck()) nativeCheckFontLoaded(Date.now(), fontFamilyName, onComplete); else { + var fontLoadHandle = { + fontFamilyName: fontFamilyName, + refWidth: refWidth, + onComplete: onComplete, + startTime: Date.now() + }; + _loadingFonts.push(fontLoadHandle); + -1 === _intervalId && (_intervalId = setInterval(_checkFontLoaded, 100)); + } + _fontFaces[fontFamilyName] = fontStyle; + }, + _getFontFamily: function _getFontFamily(fontHandle) { + var ttfIndex = fontHandle.lastIndexOf(".ttf"); + if (-1 === ttfIndex) return fontHandle; + var slashPos = fontHandle.lastIndexOf("/"); + var fontFamilyName; + fontFamilyName = -1 === slashPos ? fontHandle.substring(0, ttfIndex) + "_LABEL" : fontHandle.substring(slashPos + 1, ttfIndex) + "_LABEL"; + -1 !== fontFamilyName.indexOf(" ") && (fontFamilyName = '"' + fontFamilyName + '"'); + return fontFamilyName; + } + }; + module.exports = fontLoader; + }), { + "../utils/text-utils": 212 + } ], + 44: [ (function(require, module, exports) { + "use strict"; + var _require = require("./shared"), bundles = _require.bundles; + var helper = { + decodeUuid: require("../utils/decode-uuid"), + getUuidFromURL: (function() { + var _uuidRegex = /.*[/\\][0-9a-fA-F]{2}[/\\]([0-9a-fA-F-]{8,})/; + return function(url) { + var matches = url.match(_uuidRegex); + if (matches) return matches[1]; + return ""; + }; + })(), + getUrlWithUuid: function getUrlWithUuid(uuid, options) { + options = options || Object.create(null); + options.__isNative__ = options.isNative; + options.ext = options.nativeExt; + var bundle = bundles.find((function(bundle) { + return bundle.getAssetInfo(uuid); + })); + bundle && (options.bundle = bundle.name); + return cc.assetManager._transform(uuid, options); + }, + isScene: function isScene(asset) { + return asset && (asset.constructor === cc.SceneAsset || asset instanceof cc.Scene); + }, + normalize: function normalize(url) { + url && (46 === url.charCodeAt(0) && 47 === url.charCodeAt(1) ? url = url.slice(2) : 47 === url.charCodeAt(0) && (url = url.slice(1))); + return url; + } + }; + module.exports = helper; + }), { + "../utils/decode-uuid": 200, + "./shared": 53 + } ], + 45: [ (function(require, module, exports) { + "use strict"; + require("./deprecated"); + require("./CCAssetManager"); + }), { + "./CCAssetManager": 28, + "./deprecated": 34 + } ], + 46: [ (function(require, module, exports) { + "use strict"; + var packManager = require("./pack-manager"); + var Pipeline = require("./pipeline"); + var parser = require("./parser"); + var _require = require("./utilities"), getDepends = _require.getDepends, cache = _require.cache, gatherAsset = _require.gatherAsset, setProperties = _require.setProperties, forEach = _require.forEach, clear = _require.clear, checkCircleReference = _require.checkCircleReference; + var _require2 = require("./shared"), assets = _require2.assets, files = _require2.files, parsed = _require2.parsed, pipeline = _require2.pipeline; + var Task = require("./task"); + function load(task, done) { + var firstTask = false; + if (!task.progress) { + task.progress = { + finish: 0, + total: task.input.length, + canInvoke: true + }; + firstTask = true; + } + var options = task.options, progress = task.progress; + options.__exclude__ = options.__exclude__ || Object.create(null); + task.output = []; + forEach(task.input, (function(item, cb) { + var subTask = Task.create({ + input: item, + onProgress: task.onProgress, + options: options, + progress: progress, + onComplete: function onComplete(err, item) { + if (err && !task.isFinish) if (!cc.assetManager.force || firstTask) { + true; + cc.error(err.message, err.stack); + progress.canInvoke = false; + done(err); + } else progress.canInvoke && task.dispatch("progress", ++progress.finish, progress.total, item); + task.output.push(item); + subTask.recycle(); + cb(); + } + }); + loadOneAssetPipeline.async(subTask); + }), (function() { + options.__exclude__ = null; + if (task.isFinish) { + clear(task, true); + return task.dispatch("error"); + } + gatherAsset(task); + clear(task, true); + done(); + })); + } + var loadOneAssetPipeline = new Pipeline("loadOneAsset", [ function fetch(task, done) { + var item = task.output = task.input; + var options = item.options, isNative = item.isNative, uuid = item.uuid, file = item.file; + var reload = options.reload; + if (file || !reload && !isNative && assets.has(uuid)) return done(); + packManager.load(item, task.options, (function(err, data) { + item.file = data; + done(err); + })); + }, function parse(task, done) { + var item = task.output = task.input, progress = task.progress, exclude = task.options.__exclude__; + var id = item.id, file = item.file, options = item.options; + if (item.isNative) parser.parse(id, file, item.ext, options, (function(err, asset) { + if (err) return done(err); + item.content = asset; + progress.canInvoke && task.dispatch("progress", ++progress.finish, progress.total, item); + files.remove(id); + parsed.remove(id); + done(); + })); else { + var uuid = item.uuid; + if (uuid in exclude) { + var _exclude$uuid = exclude[uuid], finish = _exclude$uuid.finish, content = _exclude$uuid.content, err = _exclude$uuid.err, callbacks = _exclude$uuid.callbacks; + progress.canInvoke && task.dispatch("progress", ++progress.finish, progress.total, item); + if (finish || checkCircleReference(uuid, uuid, exclude)) { + content && content.addRef && content.addRef(); + item.content = content; + done(err); + } else callbacks.push({ + done: done, + item: item + }); + } else if (!options.reload && assets.has(uuid)) { + var asset = assets.get(uuid); + if (options.__asyncLoadAssets__ || !asset.__asyncLoadAssets__) { + item.content = asset.addRef(); + progress.canInvoke && task.dispatch("progress", ++progress.finish, progress.total, item); + done(); + } else loadDepends(task, asset, done, false); + } else parser.parse(id, file, "import", options, (function(err, asset) { + if (err) return done(err); + asset._uuid = uuid; + loadDepends(task, asset, done, true); + })); + } + } ]); + function loadDepends(task, asset, done, init) { + var item = task.input, progress = task.progress; + var uuid = item.uuid, id = item.id, options = item.options, config = item.config; + var __asyncLoadAssets__ = options.__asyncLoadAssets__, cacheAsset = options.cacheAsset; + var depends = []; + asset.addRef && asset.addRef(); + getDepends(uuid, asset, Object.create(null), depends, false, __asyncLoadAssets__, config); + progress.canInvoke && task.dispatch("progress", ++progress.finish, progress.total += depends.length, item); + var repeatItem = task.options.__exclude__[uuid] = { + content: asset, + finish: false, + callbacks: [ { + done: done, + item: item + } ] + }; + var subTask = Task.create({ + input: depends, + options: task.options, + onProgress: task.onProgress, + onError: Task.prototype.recycle, + progress: progress, + onComplete: function onComplete(err) { + asset.decRef && asset.decRef(false); + asset.__asyncLoadAssets__ = __asyncLoadAssets__; + repeatItem.finish = true; + repeatItem.err = err; + if (!err) { + var assets = Array.isArray(subTask.output) ? subTask.output : [ subTask.output ]; + var map = Object.create(null); + for (var _i = 0, _l = assets.length; _i < _l; _i++) { + var dependAsset = assets[_i]; + dependAsset && (map[dependAsset instanceof cc.Asset ? dependAsset._uuid + "@import" : uuid + "@native"] = dependAsset); + } + if (init) { + var missingAsset = setProperties(uuid, asset, map); + if (!missingAsset && !asset.__onLoadInvoked__) try { + asset.onLoad && asset.onLoad(); + asset.__onLoadInvoked__ = true; + } catch (e) { + cc.error(e.message, e.stack); + } + files.remove(id); + parsed.remove(id); + cache(uuid, asset, void 0 !== cacheAsset ? cacheAsset : cc.assetManager.cacheAsset); + } else if (asset.__nativeDepend__ && !asset._nativeAsset) { + var missingAsset = setProperties(uuid, asset, map); + if (!missingAsset && !asset.__onLoadInvoked__) try { + asset.onLoad && asset.onLoad(); + asset.__onLoadInvoked__ = true; + } catch (e) { + cc.error(e.message, e.stack); + } + } + subTask.recycle(); + } + var callbacks = repeatItem.callbacks; + for (var i = 0, l = callbacks.length; i < l; i++) { + var cb = callbacks[i]; + asset.addRef && asset.addRef(); + cb.item.content = asset; + cb.done(err); + } + callbacks.length = 0; + } + }); + pipeline.async(subTask); + } + module.exports = load; + }), { + "./pack-manager": 47, + "./parser": 48, + "./pipeline": 49, + "./shared": 53, + "./task": 54, + "./utilities": 56 + } ], + 47: [ (function(require, module, exports) { + "use strict"; + var _deserializeCompiled = require("../platform/deserialize-compiled"); + var downloader = require("./downloader"); + var Cache = require("./cache"); + var js = require("../platform/js"); + var _require = require("./shared"), files = _require.files; + var _loading = new Cache(); + function isLoading(val) { + return _loading.has(val.uuid); + } + var packManager = { + unpackJson: function unpackJson(pack, json, options, onComplete) { + var out = js.createMap(true), err = null; + if (Array.isArray(json)) { + json = (0, _deserializeCompiled.unpackJSONs)(json); + json.length !== pack.length && cc.errorID(4915); + for (var i = 0; i < pack.length; i++) { + var key = pack[i] + "@import"; + out[key] = json[i]; + } + } else { + var textureType = js._getClassId(cc.Texture2D); + if (json.type === textureType) { + if (json.data) { + var datas = json.data.split("|"); + datas.length !== pack.length && cc.errorID(4915); + for (var _i = 0; _i < pack.length; _i++) out[pack[_i] + "@import"] = (0, _deserializeCompiled.packCustomObjData)(textureType, datas[_i], true); + } + } else { + err = new Error("unmatched type pack!"); + out = null; + } + } + onComplete && onComplete(err, out); + }, + init: function init() { + _loading.clear(); + }, + register: function register(type, handler) { + "object" === typeof type ? js.mixin(unpackers, type) : unpackers[type] = handler; + }, + unpack: function unpack(pack, data, type, options, onComplete) { + if (!data) { + onComplete && onComplete(new Error("package data is wrong!")); + return; + } + var unpacker = unpackers[type]; + unpacker(pack, data, options, onComplete); + }, + load: function load(item, options, onComplete) { + if (item.isNative || !item.info || !item.info.packs) return downloader.download(item.id, item.url, item.ext, item.options, onComplete); + if (files.has(item.id)) return onComplete(null, files.get(item.id)); + var packs = item.info.packs; + var pack = packs.find(isLoading); + if (pack) return _loading.get(pack.uuid).push({ + onComplete: onComplete, + id: item.id + }); + pack = packs[0]; + _loading.add(pack.uuid, [ { + onComplete: onComplete, + id: item.id + } ]); + var url = cc.assetManager._transform(pack.uuid, { + ext: pack.ext, + bundle: item.config.name + }); + downloader.download(pack.uuid, url, pack.ext, item.options, (function(err, data) { + files.remove(pack.uuid); + err && cc.error(err.message, err.stack); + packManager.unpack(pack.packs, data, pack.ext, item.options, (function(err, result) { + if (!err) for (var id in result) files.add(id, result[id]); + var callbacks = _loading.remove(pack.uuid); + for (var i = 0, l = callbacks.length; i < l; i++) { + var cb = callbacks[i]; + if (err) { + cb.onComplete(err); + continue; + } + var data = result[cb.id]; + data ? cb.onComplete(null, data) : cb.onComplete(new Error("can not retrieve data from package")); + } + })); + })); + } + }; + var unpackers = { + ".json": packManager.unpackJson + }; + module.exports = packManager; + }), { + "../platform/deserialize-compiled": 136, + "../platform/js": 142, + "./cache": 31, + "./downloader": 40, + "./shared": 53 + } ], + 48: [ (function(require, module, exports) { + "use strict"; + var plistParser = require("../platform/CCSAXParser").plistParser; + var js = require("../platform/js"); + var deserialize = require("./deserialize"); + var Cache = require("./cache"); + var _require = require("./helper"), isScene = _require.isScene; + var _require2 = require("./shared"), parsed = _require2.parsed, files = _require2.files; + var _require3 = require("../platform/CCSys"), __audioSupport = _require3.__audioSupport, capabilities = _require3.capabilities; + var _parsing = new Cache(); + var parser = { + parseImage: function parseImage(file, options, onComplete) { + if (capabilities.imageBitmap && file instanceof Blob) { + var imageOptions = {}; + imageOptions.imageOrientation = options.__flipY__ ? "flipY" : "none"; + imageOptions.premultiplyAlpha = options.__premultiplyAlpha__ ? "premultiply" : "none"; + createImageBitmap(file, imageOptions).then((function(result) { + result.flipY = !!options.__flipY__; + result.premultiplyAlpha = !!options.__premultiplyAlpha__; + onComplete && onComplete(null, result); + }), (function(err) { + onComplete && onComplete(err, null); + })); + } else onComplete && onComplete(null, file); + }, + parseAudio: function parseAudio(file, options, onComplete) { + file instanceof ArrayBuffer ? __audioSupport.context.decodeAudioData(file, (function(buffer) { + onComplete && onComplete(null, buffer); + }), (function(e) { + onComplete && onComplete(e, null); + })) : onComplete && onComplete(null, file); + }, + parsePVRTex: (function() { + var PVR_HEADER_LENGTH = 13; + var PVR_MAGIC = 55727696; + var PVR_HEADER_MAGIC = 0; + var PVR_HEADER_FORMAT = 2; + var PVR_HEADER_HEIGHT = 6; + var PVR_HEADER_WIDTH = 7; + var PVR_HEADER_MIPMAPCOUNT = 11; + var PVR_HEADER_METADATA = 12; + return function(file, options, onComplete) { + var err = null, out = null; + try { + var buffer = file instanceof ArrayBuffer ? file : file.buffer; + var header = new Int32Array(buffer, 0, PVR_HEADER_LENGTH); + if (header[PVR_HEADER_MAGIC] != PVR_MAGIC) throw new Error("Invalid magic number in PVR header"); + var width = header[PVR_HEADER_WIDTH]; + var height = header[PVR_HEADER_HEIGHT]; + var dataOffset = header[PVR_HEADER_METADATA] + 52; + var pvrtcData = new Uint8Array(buffer, dataOffset); + out = { + _data: pvrtcData, + _compressed: true, + width: width, + height: height + }; + } catch (e) { + err = e; + } + onComplete && onComplete(err, out); + }; + })(), + parsePKMTex: (function() { + var ETC_PKM_HEADER_SIZE = 16; + var ETC_PKM_FORMAT_OFFSET = 6; + var ETC_PKM_ENCODED_WIDTH_OFFSET = 8; + var ETC_PKM_ENCODED_HEIGHT_OFFSET = 10; + var ETC_PKM_WIDTH_OFFSET = 12; + var ETC_PKM_HEIGHT_OFFSET = 14; + var ETC1_RGB_NO_MIPMAPS = 0; + var ETC2_RGB_NO_MIPMAPS = 1; + var ETC2_RGBA_NO_MIPMAPS = 3; + function readBEUint16(header, offset) { + return header[offset] << 8 | header[offset + 1]; + } + return function(file, options, onComplete) { + var err = null, out = null; + try { + var buffer = file instanceof ArrayBuffer ? file : file.buffer; + var header = new Uint8Array(buffer); + var format = readBEUint16(header, ETC_PKM_FORMAT_OFFSET); + if (format !== ETC1_RGB_NO_MIPMAPS && format !== ETC2_RGB_NO_MIPMAPS && format !== ETC2_RGBA_NO_MIPMAPS) return new Error("Invalid magic number in ETC header"); + var width = readBEUint16(header, ETC_PKM_WIDTH_OFFSET); + var height = readBEUint16(header, ETC_PKM_HEIGHT_OFFSET); + var encodedWidth = readBEUint16(header, ETC_PKM_ENCODED_WIDTH_OFFSET); + var encodedHeight = readBEUint16(header, ETC_PKM_ENCODED_HEIGHT_OFFSET); + var etcData = new Uint8Array(buffer, ETC_PKM_HEADER_SIZE); + out = { + _data: etcData, + _compressed: true, + width: width, + height: height + }; + } catch (e) { + err = e; + } + onComplete && onComplete(err, out); + }; + })(), + parsePlist: function parsePlist(file, options, onComplete) { + var err = null; + var result = plistParser.parse(file); + result || (err = new Error("parse failed")); + onComplete && onComplete(err, result); + }, + parseImport: function parseImport(file, options, onComplete) { + if (!file) return onComplete && onComplete(new Error("Json is empty")); + var result, err = null; + try { + result = deserialize(file, options); + } catch (e) { + err = e; + } + onComplete && onComplete(err, result); + }, + init: function init() { + _parsing.clear(); + }, + register: function register(type, handler) { + "object" === typeof type ? js.mixin(parsers, type) : parsers[type] = handler; + }, + parse: function parse(id, file, type, options, onComplete) { + var parsedAsset, parsing, parseHandler; + if (parsedAsset = parsed.get(id)) onComplete(null, parsedAsset); else if (parsing = _parsing.get(id)) parsing.push(onComplete); else if (parseHandler = parsers[type]) { + _parsing.add(id, [ onComplete ]); + parseHandler(file, options, (function(err, data) { + err ? files.remove(id) : isScene(data) || parsed.add(id, data); + var callbacks = _parsing.remove(id); + for (var i = 0, l = callbacks.length; i < l; i++) callbacks[i](err, data); + })); + } else onComplete(null, file); + } + }; + var parsers = { + ".png": parser.parseImage, + ".jpg": parser.parseImage, + ".bmp": parser.parseImage, + ".jpeg": parser.parseImage, + ".gif": parser.parseImage, + ".ico": parser.parseImage, + ".tiff": parser.parseImage, + ".webp": parser.parseImage, + ".image": parser.parseImage, + ".pvr": parser.parsePVRTex, + ".pkm": parser.parsePKMTex, + ".mp3": parser.parseAudio, + ".ogg": parser.parseAudio, + ".wav": parser.parseAudio, + ".m4a": parser.parseAudio, + ".plist": parser.parsePlist, + import: parser.parseImport + }; + module.exports = parser; + }), { + "../platform/CCSAXParser": 128, + "../platform/CCSys": 130, + "../platform/js": 142, + "./cache": 31, + "./deserialize": 35, + "./helper": 44, + "./shared": 53 + } ], + 49: [ (function(require, module, exports) { + "use strict"; + var Task = require("./task"); + var _pipelineId = 0; + function Pipeline(name, funcs) { + if (!Array.isArray(funcs)) { + cc.warn("funcs must be an array"); + return; + } + this.id = _pipelineId++; + this.name = name; + this.pipes = []; + for (var i = 0, l = funcs.length; i < l; i++) "function" === typeof funcs[i] && this.pipes.push(funcs[i]); + } + Pipeline.prototype = { + constructor: Pipeline, + insert: function insert(func, index) { + if ("function" !== typeof func || index > this.pipes.length) { + cc.warnID(4921); + return; + } + this.pipes.splice(index, 0, func); + return this; + }, + append: function append(func) { + if ("function" !== typeof func) return; + this.pipes.push(func); + return this; + }, + remove: function remove(index) { + if ("number" !== typeof index) return; + this.pipes.splice(index, 1); + return this; + }, + sync: function sync(task) { + var pipes = this.pipes; + if (!(task instanceof Task) || 0 === pipes.length) return; + if (null != task.output) { + task.input = task.output; + task.output = null; + } + task._isFinish = false; + for (var i = 0, l = pipes.length; i < l; ) { + var pipe = pipes[i]; + var result = pipe(task); + if (result) { + task._isFinish = true; + return result; + } + i++; + if (i !== l) { + task.input = task.output; + task.output = null; + } + } + task._isFinish = true; + return task.output; + }, + async: function async(task) { + var pipes = this.pipes; + if (!(task instanceof Task) || 0 === pipes.length) return; + if (null != task.output) { + task.input = task.output; + task.output = null; + } + task._isFinish = false; + this._flow(0, task); + }, + _flow: function _flow(index, task) { + var self = this; + var pipe = this.pipes[index]; + pipe(task, (function(result) { + if (result) { + task._isFinish = true; + task.onComplete && task.onComplete(result); + } else { + index++; + if (index < self.pipes.length) { + task.input = task.output; + task.output = null; + self._flow(index, task); + } else { + task._isFinish = true; + task.onComplete && task.onComplete(result, task.output); + } + } + })); + } + }; + module.exports = Pipeline; + }), { + "./task": 54 + } ], + 50: [ (function(require, module, exports) { + "use strict"; + var Task = require("./task"); + var _require = require("./shared"), transformPipeline = _require.transformPipeline, RequestType = _require.RequestType; + function preprocess(task, done) { + var options = task.options, subOptions = Object.create(null), leftOptions = Object.create(null); + for (var op in options) switch (op) { + case RequestType.PATH: + case RequestType.UUID: + case RequestType.DIR: + case RequestType.SCENE: + case RequestType.URL: + break; + + case "__requestType__": + case "__isNative__": + case "ext": + case "type": + case "__nativeName__": + case "audioLoadMode": + case "bundle": + subOptions[op] = options[op]; + break; + + case "__exclude__": + case "__outputAsArray__": + leftOptions[op] = options[op]; + break; + + default: + subOptions[op] = options[op]; + leftOptions[op] = options[op]; + } + task.options = leftOptions; + var subTask = Task.create({ + input: task.input, + options: subOptions + }); + var err = null; + try { + task.output = task.source = transformPipeline.sync(subTask); + } catch (e) { + err = e; + for (var i = 0, l = subTask.output.length; i < l; i++) subTask.output[i].recycle(); + } + subTask.recycle(); + done(err); + } + module.exports = preprocess; + }), { + "./shared": 53, + "./task": 54 + } ], + 51: [ (function(require, module, exports) { + "use strict"; + var dependUtil = require("./depend-util"); + var Cache = require("./cache"); + require("../assets/CCAsset"); + var _require = require("./shared"), assets = _require.assets; + var _require2 = require("../platform/utils"), callInNextTick = _require2.callInNextTick; + function visitAsset(asset, deps) { + if (!asset._uuid) return; + deps.push(asset._uuid); + } + function visitComponent(comp, deps) { + var props = Object.getOwnPropertyNames(comp); + for (var i = 0; i < props.length; i++) { + var propName = props[i]; + if ("node" === propName || "__eventTargets" === propName) continue; + var value = comp[propName]; + if ("object" === typeof value && value) if (Array.isArray(value)) for (var j = 0; j < value.length; j++) { + var val = value[j]; + val instanceof cc.Asset && visitAsset(val, deps); + } else if (value.constructor && value.constructor !== Object) value instanceof cc.Asset && visitAsset(value, deps); else { + var keys = Object.getOwnPropertyNames(value); + for (var _j = 0; _j < keys.length; _j++) { + var _val = value[keys[_j]]; + _val instanceof cc.Asset && visitAsset(_val, deps); + } + } + } + } + var _temp = []; + function visitNode(node, deps) { + for (var i = 0; i < node._components.length; i++) visitComponent(node._components[i], deps); + for (var _i = 0; _i < node._children.length; _i++) visitNode(node._children[_i], deps); + } + function descendOpRef(asset, refs, exclude, op) { + exclude.push(asset._uuid); + var depends = dependUtil.getDeps(asset._uuid); + for (var i = 0, l = depends.length; i < l; i++) { + var dependAsset = assets.get(depends[i]); + if (dependAsset) { + var uuid = dependAsset._uuid; + uuid in refs ? refs[uuid] += op : refs[uuid] = dependAsset.refCount + op; + if (exclude.includes(uuid)) continue; + descendOpRef(dependAsset, refs, exclude, op); + } + } + } + function checkCircularReference(asset) { + var refs = Object.create(null); + refs[asset._uuid] = asset.refCount; + descendOpRef(asset, refs, _temp, -1); + _temp.length = 0; + if (0 !== refs[asset._uuid]) return refs[asset._uuid]; + for (var uuid in refs) 0 !== refs[uuid] && descendOpRef(assets.get(uuid), refs, _temp, 1); + _temp.length = 0; + return refs[asset._uuid]; + } + var _persistNodeDeps = new Cache(); + var _toDelete = new Cache(); + var eventListener = false; + function freeAssets() { + eventListener = false; + _toDelete.forEach((function(asset) { + releaseManager._free(asset); + })); + _toDelete.clear(); + } + var releaseManager = { + init: function init() { + _persistNodeDeps.clear(); + _toDelete.clear(); + }, + _addPersistNodeRef: function _addPersistNodeRef(node) { + var deps = []; + visitNode(node, deps); + for (var i = 0, l = deps.length; i < l; i++) { + var dependAsset = assets.get(deps[i]); + dependAsset && dependAsset.addRef(); + } + _persistNodeDeps.add(node.uuid, deps); + }, + _removePersistNodeRef: function _removePersistNodeRef(node) { + if (_persistNodeDeps.has(node.uuid)) { + var deps = _persistNodeDeps.get(node.uuid); + for (var i = 0, l = deps.length; i < l; i++) { + var dependAsset = assets.get(deps[i]); + dependAsset && dependAsset.decRef(); + } + _persistNodeDeps.remove(node.uuid); + } + }, + _autoRelease: function _autoRelease(oldScene, newScene, persistNodes) { + if (oldScene) { + var childs = dependUtil.getDeps(oldScene._id); + for (var i = 0, l = childs.length; i < l; i++) { + var asset = assets.get(childs[i]); + asset && asset.decRef((false, oldScene.autoReleaseAssets)); + } + var dependencies = dependUtil._depends.get(oldScene._id); + if (dependencies && dependencies.persistDeps) { + var persistDeps = dependencies.persistDeps; + for (var _i2 = 0, _l = persistDeps.length; _i2 < _l; _i2++) { + var _asset = assets.get(persistDeps[_i2]); + _asset && _asset.decRef((false, oldScene.autoReleaseAssets)); + } + } + oldScene._id !== newScene._id && dependUtil.remove(oldScene._id); + } + var sceneDeps = dependUtil._depends.get(newScene._id); + sceneDeps && (sceneDeps.persistDeps = []); + for (var key in persistNodes) { + var node = persistNodes[key]; + var deps = _persistNodeDeps.get(node.uuid); + for (var _i3 = 0, _l2 = deps.length; _i3 < _l2; _i3++) { + var dependAsset = assets.get(deps[_i3]); + dependAsset && dependAsset.addRef(); + } + sceneDeps && sceneDeps.persistDeps.push.apply(sceneDeps.persistDeps, deps); + } + }, + _free: function _free(asset, force) { + _toDelete.remove(asset._uuid); + if (!cc.isValid(asset, true)) return; + if (!force && asset.refCount > 0 && checkCircularReference(asset) > 0) return; + assets.remove(asset._uuid); + var depends = dependUtil.getDeps(asset._uuid); + for (var i = 0, l = depends.length; i < l; i++) { + var dependAsset = assets.get(depends[i]); + if (dependAsset) { + dependAsset.decRef(false); + releaseManager._free(dependAsset, false); + } + } + asset.destroy(); + dependUtil.remove(asset._uuid); + }, + tryRelease: function tryRelease(asset, force) { + if (!(asset instanceof cc.Asset)) return; + if (force) releaseManager._free(asset, force); else { + _toDelete.add(asset._uuid, asset); + if (!eventListener) { + eventListener = true; + callInNextTick(freeAssets); + } + } + } + }; + module.exports = releaseManager; + }), { + "../assets/CCAsset": 57, + "../platform/utils": 145, + "./cache": 31, + "./depend-util": 33, + "./shared": 53 + } ], + 52: [ (function(require, module, exports) { + "use strict"; + var MAX_DEAD_NUM = 500; + var _deadPool = []; + function RequestItem() { + this._id = ""; + this.uuid = ""; + this.url = ""; + this.ext = ".json"; + this.content = null; + this.file = null; + this.info = null; + this.config = null; + this.isNative = false; + this.options = Object.create(null); + } + RequestItem.prototype = { + constructor: RequestItem, + get id() { + this._id || (this._id = this.uuid + "@" + (this.isNative ? "native" : "import")); + return this._id; + }, + recycle: function recycle() { + if (_deadPool.length === MAX_DEAD_NUM) return; + this._id = ""; + this.uuid = ""; + this.url = ""; + this.ext = ".json"; + this.content = null; + this.file = null; + this.info = null; + this.config = null; + this.isNative = false; + this.options = Object.create(null); + _deadPool.push(this); + } + }; + RequestItem.create = function() { + var out = null; + out = 0 !== _deadPool.length ? _deadPool.pop() : new RequestItem(); + return out; + }; + module.exports = RequestItem; + }), {} ], + 53: [ (function(require, module, exports) { + "use strict"; + var Cache = require("./cache"); + var Pipeline = require("./pipeline"); + var assets = new Cache(); + var files = new Cache(); + var parsed = new Cache(); + var bundles = new Cache(); + var pipeline = new Pipeline("normal load", []); + var fetchPipeline = new Pipeline("fetch", []); + var transformPipeline = new Pipeline("transform url", []); + var RequestType = { + UUID: "uuid", + PATH: "path", + DIR: "dir", + URL: "url", + SCENE: "scene" + }; + var BuiltinBundleName = { + RESOURCES: "resources", + INTERNAL: "internal", + MAIN: "main", + START_SCENE: "start-scene" + }; + module.exports = { + assets: assets, + files: files, + parsed: parsed, + pipeline: pipeline, + fetchPipeline: fetchPipeline, + transformPipeline: transformPipeline, + RequestType: RequestType, + bundles: bundles, + BuiltinBundleName: BuiltinBundleName + }; + }), { + "./cache": 31, + "./pipeline": 49 + } ], + 54: [ (function(require, module, exports) { + "use strict"; + var _taskId = 0; + var MAX_DEAD_NUM = 500; + var _deadPool = []; + function Task(options) { + this.id = _taskId++; + this._isFinish = true; + this.onComplete = null; + this.onProgress = null; + this.onError = null; + this.source = null; + this.output = null; + this.input = null; + this.progress = null; + this.options = null; + this.set(options); + } + Task.prototype = { + constructor: Task, + set: function set(options) { + options = options || Object.create(null); + this.onComplete = options.onComplete; + this.onProgress = options.onProgress; + this.onError = options.onError; + this.source = this.input = options.input; + this.output = null; + this.progress = options.progress; + this.options = options.options || Object.create(null); + }, + dispatch: function dispatch(event, param1, param2, param3, param4) { + switch (event) { + case "complete": + this.onComplete && this.onComplete(param1, param2, param3, param4); + break; + + case "progress": + this.onProgress && this.onProgress(param1, param2, param3, param4); + break; + + case "error": + this.onError && this.onError(param1, param2, param3, param4); + break; + + default: + var str = "on" + event[0].toUpperCase() + event.substr(1); + "function" === typeof this[str] && this[str](param1, param2, param3, param4); + } + }, + recycle: function recycle() { + if (_deadPool.length === MAX_DEAD_NUM) return; + this.onComplete = null; + this.onProgress = null; + this.onError = null; + this.source = this.output = this.input = null; + this.progress = null; + this.options = null; + _deadPool.push(this); + }, + get isFinish() { + return this._isFinish; + } + }; + Task.create = function(options) { + var out = null; + if (0 !== _deadPool.length) { + out = _deadPool.pop(); + out.set(options); + } else out = new Task(options); + return out; + }; + module.exports = Task; + }), {} ], + 55: [ (function(require, module, exports) { + "use strict"; + var _require = require("./helper"), decodeUuid = _require.decodeUuid; + var RequestItem = require("./request-item"); + var _require2 = require("./shared"), RequestType = _require2.RequestType, bundles = _require2.bundles; + function parse(task) { + var input = task.input, options = task.options; + input = Array.isArray(input) ? input : [ input ]; + task.output = []; + for (var i = 0; i < input.length; i++) { + var item = input[i]; + var out = RequestItem.create(); + if ("string" === typeof item) { + item = Object.create(null); + item[options.__requestType__ || RequestType.UUID] = input[i]; + } + if ("object" === typeof item) { + cc.js.addon(item, options); + item.preset && cc.js.addon(item, cc.assetManager.presets[item.preset]); + for (var key in item) { + switch (key) { + case RequestType.UUID: + var uuid = out.uuid = decodeUuid(item.uuid); + if (bundles.has(item.bundle)) { + var config = bundles.get(item.bundle)._config; + var info = config.getAssetInfo(uuid); + if (info && info.redirect) { + if (!bundles.has(info.redirect)) throw new Error("Please load bundle " + info.redirect + " first"); + config = bundles.get(info.redirect)._config; + info = config.getAssetInfo(uuid); + } + out.config = config; + out.info = info; + } + out.ext = item.ext || ".json"; + break; + + case "__requestType__": + case "ext": + case "bundle": + case "preset": + case "type": + break; + + case RequestType.DIR: + if (bundles.has(item.bundle)) { + var infos = []; + bundles.get(item.bundle)._config.getDirWithPath(item.dir, item.type, infos); + for (var _i = 0, l = infos.length; _i < l; _i++) { + var info = infos[_i]; + input.push({ + uuid: info.uuid, + __isNative__: false, + ext: ".json", + bundle: item.bundle + }); + } + } + out.recycle(); + out = null; + break; + + case RequestType.PATH: + if (bundles.has(item.bundle)) { + var config = bundles.get(item.bundle)._config; + var info = config.getInfoWithPath(item.path, item.type); + if (info && info.redirect) { + if (!bundles.has(info.redirect)) throw new Error("you need to load bundle " + info.redirect + " first"); + config = bundles.get(info.redirect)._config; + info = config.getAssetInfo(info.uuid); + } + if (!info) { + out.recycle(); + throw new Error("Bundle " + item.bundle + " doesn't contain " + item.path); + } + out.config = config; + out.uuid = info.uuid; + out.info = info; + } + out.ext = item.ext || ".json"; + break; + + case RequestType.SCENE: + if (bundles.has(item.bundle)) { + var config = bundles.get(item.bundle)._config; + var info = config.getSceneInfo(item.scene); + if (info && info.redirect) { + if (!bundles.has(info.redirect)) throw new Error("you need to load bundle " + info.redirect + " first"); + config = bundles.get(info.redirect)._config; + info = config.getAssetInfo(info.uuid); + } + if (!info) { + out.recycle(); + throw new Error("Bundle " + config.name + " doesn't contain scene " + item.scene); + } + out.config = config; + out.uuid = info.uuid; + out.info = info; + } + break; + + case "__isNative__": + out.isNative = item.__isNative__; + break; + + case RequestType.URL: + out.url = item.url; + out.uuid = item.uuid || item.url; + out.ext = item.ext || cc.path.extname(item.url); + out.isNative = void 0 === item.__isNative__ || item.__isNative__; + break; + + default: + out.options[key] = item[key]; + } + if (!out) break; + } + } + if (!out) continue; + task.output.push(out); + if (!out.uuid && !out.url) throw new Error("Can not parse this input:" + JSON.stringify(item)); + } + return null; + } + function combine(task) { + var input = task.output = task.input; + for (var i = 0; i < input.length; i++) { + var item = input[i]; + if (item.url) continue; + var url = "", base = ""; + var config = item.config; + base = item.isNative ? config && config.nativeBase ? config.base + config.nativeBase : cc.assetManager.generalNativeBase : config && config.importBase ? config.base + config.importBase : cc.assetManager.generalImportBase; + var uuid = item.uuid; + var ver = ""; + item.info && (ver = item.isNative ? item.info.nativeVer ? "." + item.info.nativeVer : "" : item.info.ver ? "." + item.info.ver : ""); + url = ".ttf" === item.ext ? base + "/" + uuid.slice(0, 2) + "/" + uuid + ver + "/" + item.options.__nativeName__ : base + "/" + uuid.slice(0, 2) + "/" + uuid + ver + item.ext; + item.url = url; + } + return null; + } + module.exports = { + parse: parse, + combine: combine + }; + }), { + "./helper": 44, + "./request-item": 52, + "./shared": 53 + } ], + 56: [ (function(require, module, exports) { + "use strict"; + var dependUtil = require("./depend-util"); + var _require = require("./helper"), isScene = _require.isScene, decodeUuid = _require.decodeUuid; + var _require2 = require("./shared"), assets = _require2.assets; + var _require3 = require("../platform/utils"), callInNextTick = _require3.callInNextTick; + var MissingObjectReporter = false; + require("../assets/CCAsset"); + var utils = { + processOptions: function processOptions(options) { + false; + var uuids = options.uuids; + var paths = options.paths; + var types = options.types; + var bundles = options.deps; + var realEntries = options.paths = Object.create(null); + if (false === options.debug) { + for (var i = 0, l = uuids.length; i < l; i++) uuids[i] = decodeUuid(uuids[i]); + for (var id in paths) { + var entry = paths[id]; + var type = entry[1]; + entry[1] = types[type]; + } + } else { + var out = Object.create(null); + for (var _i = 0, _l = uuids.length; _i < _l; _i++) { + var uuid = uuids[_i]; + uuids[_i] = out[uuid] = decodeUuid(uuid); + } + uuids = out; + } + for (var _id in paths) { + var _entry = paths[_id]; + realEntries[uuids[_id]] = _entry; + } + var scenes = options.scenes; + for (var name in scenes) { + var _uuid = scenes[name]; + scenes[name] = uuids[_uuid]; + } + var packs = options.packs; + for (var packId in packs) { + var packedIds = packs[packId]; + for (var j = 0; j < packedIds.length; ++j) packedIds[j] = uuids[packedIds[j]]; + } + var versions = options.versions; + if (versions) for (var folder in versions) { + var entries = versions[folder]; + for (var _i2 = 0; _i2 < entries.length; _i2 += 2) { + var _uuid2 = entries[_i2]; + entries[_i2] = uuids[_uuid2] || _uuid2; + } + } + var redirect = options.redirect; + if (redirect) for (var _i3 = 0; _i3 < redirect.length; _i3 += 2) { + redirect[_i3] = uuids[redirect[_i3]]; + redirect[_i3 + 1] = bundles[redirect[_i3 + 1]]; + } + }, + clear: function clear(task, clearRef) { + for (var i = 0, l = task.input.length; i < l; i++) { + var item = task.input[i]; + clearRef && !item.isNative && item.content && item.content.decRef && item.content.decRef(false); + item.recycle(); + } + task.input = null; + }, + urlAppendTimestamp: function urlAppendTimestamp(url) { + if (cc.assetManager.downloader.appendTimeStamp && "string" === typeof url) return /\?/.test(url) ? url + "&_t=" + (new Date() - 0) : url + "?_t=" + (new Date() - 0); + return url; + }, + retry: function retry(process, times, wait, onComplete, index) { + index = index || 0; + process(index, (function(err, result) { + index++; + !err || index > times ? onComplete && onComplete(err, result) : setTimeout((function() { + utils.retry(process, times, wait, onComplete, index); + }), wait); + })); + }, + getDepends: function getDepends(uuid, data, exclude, depends, preload, asyncLoadAssets, config) { + try { + var info = dependUtil.parse(uuid, data); + var includeNative = true; + data instanceof cc.Asset && (!data.__nativeDepend__ || data._nativeAsset) && (includeNative = false); + if (preload) { + for (var _i4 = 0, _l2 = info.deps.length; _i4 < _l2; _i4++) { + var _dep = info.deps[_i4]; + if (!(_dep in exclude)) { + exclude[_dep] = true; + depends.push({ + uuid: _dep, + bundle: config && config.name + }); + } + } + if (includeNative && info.nativeDep) { + config && (info.nativeDep.bundle = config.name); + depends.push(Object.assign({}, info.nativeDep)); + } + } else { + asyncLoadAssets = (true, !!data.asyncLoadAssets || asyncLoadAssets && !info.preventDeferredLoadDependents); + for (var i = 0, l = info.deps.length; i < l; i++) { + var dep = info.deps[i]; + if (!(dep in exclude)) { + exclude[dep] = true; + depends.push({ + uuid: dep, + __asyncLoadAssets__: asyncLoadAssets, + bundle: config && config.name + }); + } + } + if (includeNative && !asyncLoadAssets && !info.preventPreloadNativeObject && info.nativeDep) { + config && (info.nativeDep.bundle = config.name); + depends.push(Object.assign({}, info.nativeDep)); + } + } + } catch (e) { + cc.error(e.message, e.stack); + } + }, + cache: function cache(id, asset, cacheAsset) { + if (!asset) return; + var _isScene = isScene(asset); + !_isScene && cacheAsset && assets.add(id, asset); + _isScene && false; + }, + setProperties: function setProperties(uuid, asset, assetsMap) { + var missingAsset = false; + var depends = asset.__depends__; + if (depends) { + var missingAssetReporter = null; + for (var i = 0, l = depends.length; i < l; i++) { + var depend = depends[i]; + var dependAsset = assetsMap[depend.uuid + "@import"]; + if (dependAsset) depend.owner[depend.prop] = dependAsset.addRef(); else { + false; + cc.error("The asset " + depend.uuid + " is missing!"); + missingAsset = true; + } + } + missingAssetReporter && missingAssetReporter.reportByOwner(); + asset.__depends__ = void 0; + } + if (asset.__nativeDepend__) { + if (!asset._nativeAsset) if (assetsMap[uuid + "@native"]) asset._nativeAsset = assetsMap[uuid + "@native"]; else { + missingAsset = true; + false; + } + asset.__nativeDepend__ = void 0; + } + return missingAsset; + }, + gatherAsset: function gatherAsset(task) { + var source = task.source; + if (task.options.__outputAsArray__ || 1 !== source.length) { + var output = task.output = []; + for (var i = 0, l = source.length; i < l; i++) output.push(source[i].content); + } else task.output = source[0].content; + }, + forEach: function forEach(array, process, onComplete) { + var count = 0; + var errs = []; + 0 === array.length && onComplete && onComplete(errs); + for (var i = 0, l = array.length; i < l; i++) process(array[i], (function(err) { + err && errs.push(err); + count++; + count === l && onComplete && onComplete(errs); + })); + }, + parseParameters: function parseParameters(options, onProgress, onComplete) { + if (void 0 === onComplete) { + var isCallback = "function" === typeof options; + if (onProgress) { + onComplete = onProgress; + isCallback || (onProgress = null); + } else if (void 0 === onProgress && isCallback) { + onComplete = options; + options = null; + onProgress = null; + } + if (void 0 !== onProgress && isCallback) { + onProgress = options; + options = null; + } + } + options = options || Object.create(null); + return { + options: options, + onProgress: onProgress, + onComplete: onComplete + }; + }, + parseLoadResArgs: function parseLoadResArgs(type, onProgress, onComplete) { + if (void 0 === onComplete) { + var isValidType = cc.js.isChildClassOf(type, cc.Asset); + if (onProgress) { + onComplete = onProgress; + isValidType && (onProgress = null); + } else if (void 0 === onProgress && !isValidType) { + onComplete = type; + onProgress = null; + type = null; + } + if (void 0 !== onProgress && !isValidType) { + onProgress = type; + type = null; + } + } + return { + type: type, + onProgress: onProgress, + onComplete: onComplete + }; + }, + checkCircleReference: function checkCircleReference(owner, uuid, map, checked) { + checked || (checked = Object.create(null)); + var item = map[uuid]; + if (!item || checked[uuid]) return false; + checked[uuid] = true; + var result = false; + var deps = dependUtil.getDeps(uuid); + if (deps) for (var i = 0, l = deps.length; i < l; i++) { + var dep = deps[i]; + if (dep === owner || utils.checkCircleReference(owner, dep, map, checked)) { + result = true; + break; + } + } + return result; + }, + asyncify: function asyncify(cb) { + return function(p1, p2) { + if (!cb) return; + var refs = []; + Array.isArray(p2) ? p2.forEach((function(x) { + return x instanceof cc.Asset && refs.push(x.addRef()); + })) : p2 instanceof cc.Asset && refs.push(p2.addRef()); + callInNextTick((function() { + refs.forEach((function(x) { + return x.decRef(false); + })); + cb(p1, p2); + })); + }; + } + }; + module.exports = utils; + }), { + "../assets/CCAsset": 57, + "../platform/utils": 145, + "./depend-util": 33, + "./helper": 44, + "./shared": 53 + } ], + 57: [ (function(require, module, exports) { + "use strict"; + var CCObject = require("../platform/CCObject"); + cc.Asset = cc.Class({ + name: "cc.Asset", + extends: CCObject, + ctor: function ctor() { + Object.defineProperty(this, "_uuid", { + value: "", + writable: true + }); + this.loaded = true; + this._nativeUrl = ""; + this._ref = 0; + }, + properties: { + nativeUrl: { + get: function get() { + if (!this._nativeUrl && this._native) { + var name = this._native; + if (47 === name.charCodeAt(0)) return name.slice(1); + 46 === name.charCodeAt(0) ? this._nativeUrl = cc.assetManager.utils.getUrlWithUuid(this._uuid, { + nativeExt: name, + isNative: true + }) : this._nativeUrl = cc.assetManager.utils.getUrlWithUuid(this._uuid, { + __nativeName__: name, + nativeExt: cc.path.extname(name), + isNative: true + }); + } + return this._nativeUrl; + }, + visible: false + }, + refCount: { + get: function get() { + return this._ref; + } + }, + _native: "", + _nativeAsset: { + get: function get() { + return this._$nativeAsset; + }, + set: function set(obj) { + this._$nativeAsset = obj; + } + }, + _nativeDep: { + get: function get() { + if (this._native) return { + __isNative__: true, + uuid: this._uuid, + ext: this._native + }; + } + } + }, + statics: { + deserialize: false, + preventDeferredLoadDependents: false, + preventPreloadNativeObject: false + }, + toString: function toString() { + return this.nativeUrl; + }, + serialize: false, + createNode: null, + _setRawAsset: function _setRawAsset(filename, inLibrary) { + this._native = false !== inLibrary ? filename || void 0 : "/" + filename; + }, + addRef: function addRef() { + this._ref++; + return this; + }, + decRef: function decRef(autoRelease) { + this._ref > 0 && this._ref--; + false !== autoRelease && cc.assetManager._releaseManager.tryRelease(this); + return this; + } + }); + module.exports = cc.Asset; + }), { + "../platform/CCObject": 127 + } ], + 58: [ (function(require, module, exports) { + "use strict"; + var Asset = require("./CCAsset"); + var EventTarget = require("../event/event-target"); + var LoadMode = cc.Enum({ + WEB_AUDIO: 0, + DOM_AUDIO: 1 + }); + var AudioClip = cc.Class({ + name: "cc.AudioClip", + extends: Asset, + mixins: [ EventTarget ], + ctor: function ctor() { + this._loading = false; + this.loaded = false; + this._audio = null; + }, + properties: { + duration: 0, + loadMode: { + default: LoadMode.WEB_AUDIO, + type: LoadMode + }, + _nativeAsset: { + get: function get() { + return this._audio; + }, + set: function set(value) { + value instanceof cc.AudioClip ? this._audio = value._nativeAsset : this._audio = value; + if (this._audio) { + this.loaded = true; + this.emit("load"); + } + }, + override: true + }, + _nativeDep: { + get: function get() { + return { + uuid: this._uuid, + audioLoadMode: this.loadMode, + ext: cc.path.extname(this._native), + __isNative__: true + }; + }, + override: true + } + }, + statics: { + LoadMode: LoadMode, + _loadByUrl: function _loadByUrl(url, callback) { + var audioClip = cc.assetManager.assets.get(url); + audioClip ? callback(null, audioClip) : cc.assetManager.loadRemote(url, (function(error, data) { + if (error) return callback(error); + callback(null, data); + })); + } + }, + _ensureLoaded: function _ensureLoaded(onComplete) { + if (this.loaded) return onComplete && onComplete(); + onComplete && this.once("load", onComplete); + if (!this._loading) { + this._loading = true; + var self = this; + cc.assetManager.postLoadNative(this, (function(err) { + self._loading = false; + })); + } + }, + destroy: function destroy() { + cc.audioEngine.uncache(this); + this._super(); + } + }); + cc.AudioClip = AudioClip; + module.exports = AudioClip; + }), { + "../event/event-target": 114, + "./CCAsset": 57 + } ], + 59: [ (function(require, module, exports) { + "use strict"; + var FontLetterDefinition = function FontLetterDefinition() { + this.u = 0; + this.v = 0; + this.w = 0; + this.h = 0; + this.offsetX = 0; + this.offsetY = 0; + this.textureID = 0; + this.valid = false; + this.xAdvance = 0; + }; + var FontAtlas = function FontAtlas(texture) { + this._letterDefinitions = {}; + this._texture = texture; + }; + FontAtlas.prototype = { + constructor: FontAtlas, + addLetterDefinitions: function addLetterDefinitions(letter, letterDefinition) { + this._letterDefinitions[letter] = letterDefinition; + }, + cloneLetterDefinition: function cloneLetterDefinition() { + var copyLetterDefinitions = {}; + for (var key in this._letterDefinitions) { + var value = new FontLetterDefinition(); + cc.js.mixin(value, this._letterDefinitions[key]); + copyLetterDefinitions[key] = value; + } + return copyLetterDefinitions; + }, + getTexture: function getTexture() { + return this._texture; + }, + getLetter: function getLetter(key) { + return this._letterDefinitions[key]; + }, + getLetterDefinitionForChar: function getLetterDefinitionForChar(_char) { + var key = _char.charCodeAt(0); + var hasKey = this._letterDefinitions.hasOwnProperty(key); + var letter; + letter = hasKey ? this._letterDefinitions[key] : null; + return letter; + }, + clear: function clear() { + this._letterDefinitions = {}; + } + }; + var BitmapFont = cc.Class({ + name: "cc.BitmapFont", + extends: cc.Font, + properties: { + fntDataStr: { + default: "" + }, + spriteFrame: { + default: null, + type: cc.SpriteFrame + }, + fontSize: { + default: -1 + }, + _fntConfig: null, + _fontDefDictionary: null + }, + onLoad: function onLoad() { + var spriteFrame = this.spriteFrame; + if (!this._fontDefDictionary) { + this._fontDefDictionary = new FontAtlas(); + spriteFrame && (this._fontDefDictionary._texture = spriteFrame._texture); + } + var fntConfig = this._fntConfig; + if (!fntConfig) return; + var fontDict = fntConfig.fontDefDictionary; + for (var fontDef in fontDict) { + var letter = new FontLetterDefinition(); + var rect = fontDict[fontDef].rect; + letter.offsetX = fontDict[fontDef].xOffset; + letter.offsetY = fontDict[fontDef].yOffset; + letter.w = rect.width; + letter.h = rect.height; + letter.u = rect.x; + letter.v = rect.y; + letter.textureID = 0; + letter.valid = true; + letter.xAdvance = fontDict[fontDef].xAdvance; + this._fontDefDictionary.addLetterDefinitions(fontDef, letter); + } + } + }); + cc.BitmapFont = BitmapFont; + cc.BitmapFont.FontLetterDefinition = FontLetterDefinition; + cc.BitmapFont.FontAtlas = FontAtlas; + module.exports = BitmapFont; + }), {} ], + 60: [ (function(require, module, exports) { + "use strict"; + var BufferAsset = cc.Class({ + name: "cc.BufferAsset", + extends: cc.Asset, + ctor: function ctor() { + this._buffer = null; + }, + properties: { + _nativeAsset: { + get: function get() { + return this._buffer; + }, + set: function set(bin) { + this._buffer = bin.buffer || bin; + }, + override: true + }, + buffer: function buffer() { + return this._buffer; + } + } + }); + cc.BufferAsset = module.exports = BufferAsset; + }), {} ], + 61: [ (function(require, module, exports) { + "use strict"; + var Font = cc.Class({ + name: "cc.Font", + extends: cc.Asset + }); + cc.Font = module.exports = Font; + }), {} ], + 62: [ (function(require, module, exports) { + "use strict"; + var JsonAsset = cc.Class({ + name: "cc.JsonAsset", + extends: cc.Asset, + properties: { + json: null + } + }); + module.exports = cc.JsonAsset = JsonAsset; + }), {} ], + 63: [ (function(require, module, exports) { + "use strict"; + var LabelAtlas = cc.Class({ + name: "cc.LabelAtlas", + extends: cc.BitmapFont, + onLoad: function onLoad() { + if (!this.spriteFrame) { + cc.warnID(9100, this.name); + return; + } + if (!this._fntConfig) { + cc.warnID(9101, this.name); + return; + } + this._super(); + } + }); + cc.LabelAtlas = LabelAtlas; + module.exports = LabelAtlas; + }), {} ], + 64: [ (function(require, module, exports) { + "use strict"; + var OptimizationPolicy = cc.Enum({ + AUTO: 0, + SINGLE_INSTANCE: 1, + MULTI_INSTANCE: 2 + }); + var Prefab = cc.Class({ + name: "cc.Prefab", + extends: cc.Asset, + ctor: function ctor() { + this._createFunction = null; + this._instantiatedTimes = 0; + }, + properties: { + data: null, + optimizationPolicy: OptimizationPolicy.AUTO, + asyncLoadAssets: false, + readonly: { + default: false, + editorOnly: true + } + }, + statics: { + OptimizationPolicy: OptimizationPolicy, + OptimizationPolicyThreshold: 3 + }, + createNode: false, + compileCreateFunction: function compileCreateFunction() { + var jit = require("../platform/instantiate-jit"); + this._createFunction = jit.compile(this.data); + }, + _doInstantiate: function _doInstantiate(rootToRedirect) { + this.data._prefab || cc.warnID(3700); + this._createFunction || this.compileCreateFunction(); + return this._createFunction(rootToRedirect); + }, + _instantiate: function _instantiate() { + var node, useJit = false; + true; + useJit = this.optimizationPolicy !== OptimizationPolicy.SINGLE_INSTANCE && (this.optimizationPolicy === OptimizationPolicy.MULTI_INSTANCE || this._instantiatedTimes + 1 >= Prefab.OptimizationPolicyThreshold); + if (useJit) { + node = this._doInstantiate(); + this.data._instantiate(node); + } else node = this.data._instantiate(); + ++this._instantiatedTimes; + var PrefabUtils; + false, false; + return node; + }, + destroy: function destroy() { + this.data && this.data.destroy(); + this._super(); + } + }); + cc.Prefab = module.exports = Prefab; + cc.js.obsolete(cc, "cc._Prefab", "Prefab"); + }), { + "../platform/instantiate-jit": 140 + } ], + 65: [ (function(require, module, exports) { + "use strict"; + var _gfx = _interopRequireDefault(require("../../renderer/gfx")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + var renderer = require("../renderer"); + var Texture2D = require("./CCTexture2D"); + var DepthStencilFormat = cc.Enum({ + RB_FMT_D24S8: _gfx["default"].RB_FMT_D24S8, + RB_FMT_S8: _gfx["default"].RB_FMT_S8, + RB_FMT_D16: _gfx["default"].RB_FMT_D16 + }); + var RenderTexture = cc.Class({ + name: "cc.RenderTexture", + extends: Texture2D, + statics: { + DepthStencilFormat: DepthStencilFormat + }, + ctor: function ctor() { + this._framebuffer = null; + }, + initWithSize: function initWithSize(width, height, depthStencilFormat) { + this.width = Math.floor(width || cc.visibleRect.width); + this.height = Math.floor(height || cc.visibleRect.height); + this._resetUnderlyingMipmaps(); + var opts = { + colors: [ this._texture ] + }; + this._depthStencilBuffer && this._depthStencilBuffer.destroy(); + var depthStencilBuffer; + if (depthStencilFormat) { + depthStencilBuffer = new _gfx["default"].RenderBuffer(renderer.device, depthStencilFormat, width, height); + depthStencilFormat === _gfx["default"].RB_FMT_D24S8 ? opts.depthStencil = depthStencilBuffer : depthStencilFormat === _gfx["default"].RB_FMT_S8 ? opts.stencil = depthStencilBuffer : depthStencilFormat === _gfx["default"].RB_FMT_D16 && (opts.depth = depthStencilBuffer); + } + this._depthStencilBuffer = depthStencilBuffer; + this._framebuffer && this._framebuffer.destroy(); + this._framebuffer = new _gfx["default"].FrameBuffer(renderer.device, width, height, opts); + this._packable = false; + this.loaded = true; + this.emit("load"); + }, + updateSize: function updateSize(width, height) { + this.width = Math.floor(width || cc.visibleRect.width); + this.height = Math.floor(height || cc.visibleRect.height); + this._resetUnderlyingMipmaps(); + var rbo = this._depthStencilBuffer; + rbo && rbo.update(this.width, this.height); + this._framebuffer._width = width; + this._framebuffer._height = height; + }, + drawTextureAt: function drawTextureAt(texture, x, y) { + if (!texture._image || 0 === texture._image.width) return; + this._texture.updateSubImage({ + x: x, + y: y, + image: texture._image, + width: texture.width, + height: texture.height, + level: 0, + flipY: false, + premultiplyAlpha: texture._premultiplyAlpha + }); + }, + readPixels: function readPixels(data, x, y, w, h) { + if (!this._framebuffer || !this._texture) return data; + x = x || 0; + y = y || 0; + var width = w || this.width; + var height = h || this.height; + data = data || new Uint8Array(width * height * 4); + var gl = cc.game._renderContext; + var oldFBO = gl.getParameter(gl.FRAMEBUFFER_BINDING); + gl.bindFramebuffer(gl.FRAMEBUFFER, this._framebuffer.getHandle()); + gl.readPixels(x, y, width, height, gl.RGBA, gl.UNSIGNED_BYTE, data); + gl.bindFramebuffer(gl.FRAMEBUFFER, oldFBO); + return data; + }, + destroy: function destroy() { + this._super(); + if (this._framebuffer) { + this._framebuffer.destroy(); + this._framebuffer = null; + } + } + }); + cc.RenderTexture = module.exports = RenderTexture; + }), { + "../../renderer/gfx": 247, + "../renderer": 152, + "./CCTexture2D": 72 + } ], + 66: [ (function(require, module, exports) { + "use strict"; + var Scene = cc.Class({ + name: "cc.SceneAsset", + extends: cc.Asset, + properties: { + scene: null, + asyncLoadAssets: void 0 + } + }); + cc.SceneAsset = Scene; + module.exports = Scene; + }), {} ], + 67: [ (function(require, module, exports) { + "use strict"; + var Script = cc.Class({ + name: "cc.Script", + extends: cc.Asset + }); + cc._Script = Script; + var JavaScript = cc.Class({ + name: "cc.JavaScript", + extends: Script + }); + cc._JavaScript = JavaScript; + var TypeScript = cc.Class({ + name: "cc.TypeScript", + extends: Script + }); + cc._TypeScript = TypeScript; + }), {} ], + 68: [ (function(require, module, exports) { + "use strict"; + var SpriteAtlas = cc.Class({ + name: "cc.SpriteAtlas", + extends: cc.Asset, + properties: { + _spriteFrames: { + default: {} + } + }, + getTexture: function getTexture() { + var keys = Object.keys(this._spriteFrames); + if (keys.length > 0) { + var spriteFrame = this._spriteFrames[keys[0]]; + return spriteFrame ? spriteFrame.getTexture() : null; + } + return null; + }, + getSpriteFrame: function getSpriteFrame(key) { + var sf = this._spriteFrames[key]; + if (!sf) return null; + sf.name || (sf.name = key); + return sf; + }, + getSpriteFrames: function getSpriteFrames() { + var frames = []; + var spriteFrames = this._spriteFrames; + for (var key in spriteFrames) frames.push(this.getSpriteFrame(key)); + return frames; + } + }); + cc.SpriteAtlas = SpriteAtlas; + module.exports = SpriteAtlas; + }), {} ], + 69: [ (function(require, module, exports) { + "use strict"; + var EventTarget = require("../event/event-target"); + var INSET_LEFT = 0; + var INSET_TOP = 1; + var INSET_RIGHT = 2; + var INSET_BOTTOM = 3; + var temp_uvs = [ { + u: 0, + v: 0 + }, { + u: 0, + v: 0 + }, { + u: 0, + v: 0 + }, { + u: 0, + v: 0 + } ]; + var SpriteFrame = cc.Class({ + name: "cc.SpriteFrame", + extends: require("../assets/CCAsset"), + mixins: [ EventTarget ], + properties: { + _textureSetter: { + set: function set(texture) { + if (texture) { + false; + this._texture !== texture && this._refreshTexture(texture); + } + } + }, + insetTop: { + get: function get() { + return this._capInsets[INSET_TOP]; + }, + set: function set(value) { + this._capInsets[INSET_TOP] = value; + this._texture && this._calculateSlicedUV(); + } + }, + insetBottom: { + get: function get() { + return this._capInsets[INSET_BOTTOM]; + }, + set: function set(value) { + this._capInsets[INSET_BOTTOM] = value; + this._texture && this._calculateSlicedUV(); + } + }, + insetLeft: { + get: function get() { + return this._capInsets[INSET_LEFT]; + }, + set: function set(value) { + this._capInsets[INSET_LEFT] = value; + this._texture && this._calculateSlicedUV(); + } + }, + insetRight: { + get: function get() { + return this._capInsets[INSET_RIGHT]; + }, + set: function set(value) { + this._capInsets[INSET_RIGHT] = value; + this._texture && this._calculateSlicedUV(); + } + } + }, + ctor: function ctor() { + EventTarget.call(this); + var filename = arguments[0]; + var rect = arguments[1]; + var rotated = arguments[2]; + var offset = arguments[3]; + var originalSize = arguments[4]; + this._rect = null; + this.uv = []; + this._texture = null; + this._original = null; + this._offset = null; + this._originalSize = null; + this._rotated = false; + this._flipX = false; + this._flipY = false; + this.vertices = null; + this._capInsets = [ 0, 0, 0, 0 ]; + this.uvSliced = []; + false; + void 0 !== filename && this.setTexture(filename, rect, rotated, offset, originalSize); + }, + textureLoaded: function textureLoaded() { + return this._texture && this._texture.loaded; + }, + onTextureLoaded: function onTextureLoaded(callback, target) { + if (!this.textureLoaded()) { + this.once("load", callback, target); + this.ensureLoadTexture(); + return false; + } + callback.call(target); + return true; + }, + isRotated: function isRotated() { + return this._rotated; + }, + setRotated: function setRotated(bRotated) { + this._rotated = bRotated; + this._texture && this._calculateUV(); + }, + isFlipX: function isFlipX() { + return this._flipX; + }, + isFlipY: function isFlipY() { + return this._flipY; + }, + setFlipX: function setFlipX(flipX) { + this._flipX = flipX; + this._texture && this._calculateUV(); + }, + setFlipY: function setFlipY(flipY) { + this._flipY = flipY; + this._texture && this._calculateUV(); + }, + getRect: function getRect() { + return cc.rect(this._rect); + }, + setRect: function setRect(rect) { + this._rect = rect; + this._texture && this._calculateUV(); + }, + getOriginalSize: function getOriginalSize() { + return cc.size(this._originalSize); + }, + setOriginalSize: function setOriginalSize(size) { + if (this._originalSize) { + this._originalSize.width = size.width; + this._originalSize.height = size.height; + } else this._originalSize = cc.size(size); + }, + getTexture: function getTexture() { + return this._texture; + }, + _textureLoadedCallback: function _textureLoadedCallback() { + var self = this; + var texture = this._texture; + if (!texture) return; + var w = texture.width, h = texture.height; + self._rect ? self._checkRect(self._texture) : self._rect = cc.rect(0, 0, w, h); + self._originalSize || self.setOriginalSize(cc.size(w, h)); + self._offset || self.setOffset(cc.v2(0, 0)); + self._calculateUV(); + self.emit("load"); + }, + _refreshTexture: function _refreshTexture(texture) { + this._texture = texture; + texture.loaded ? this._textureLoadedCallback() : texture.once("load", this._textureLoadedCallback, this); + }, + getOffset: function getOffset() { + return cc.v2(this._offset); + }, + setOffset: function setOffset(offsets) { + this._offset = cc.v2(offsets); + }, + clone: function clone() { + return new SpriteFrame(this._texture, this.getRect(), this._rotated, this.getOffset(), this.getOriginalSize()); + }, + setTexture: function setTexture(texture, rect, rotated, offset, originalSize) { + if (1 === arguments.length && texture === this._texture) return; + this._rect = rect || null; + offset ? this.setOffset(offset) : this._offset = null; + originalSize ? this.setOriginalSize(originalSize) : this._originalSize = null; + this._rotated = rotated || false; + if ("string" === typeof texture) { + cc.errorID(3401); + return; + } + texture instanceof cc.Texture2D && this._refreshTexture(texture); + return true; + }, + ensureLoadTexture: function ensureLoadTexture() { + if (this._texture && !this._texture.loaded) { + this._refreshTexture(this._texture); + cc.assetManager.postLoadNative(this._texture); + } + }, + _checkRect: function _checkRect(texture) { + var rect = this._rect; + var maxX = rect.x, maxY = rect.y; + if (this._rotated) { + maxX += rect.height; + maxY += rect.width; + } else { + maxX += rect.width; + maxY += rect.height; + } + maxX > texture.width && cc.errorID(3300, texture.nativeUrl + "/" + this.name, maxX, texture.width); + maxY > texture.height && cc.errorID(3400, texture.nativeUrl + "/" + this.name, maxY, texture.height); + }, + _flipXY: function _flipXY(uvs) { + if (this._flipX) { + var tempVal = uvs[0]; + uvs[0] = uvs[1]; + uvs[1] = tempVal; + tempVal = uvs[2]; + uvs[2] = uvs[3]; + uvs[3] = tempVal; + } + if (this._flipY) { + var _tempVal = uvs[0]; + uvs[0] = uvs[2]; + uvs[2] = _tempVal; + _tempVal = uvs[1]; + uvs[1] = uvs[3]; + uvs[3] = _tempVal; + } + }, + _calculateSlicedUV: function _calculateSlicedUV() { + var rect = this._rect; + var atlasWidth = this._texture.width; + var atlasHeight = this._texture.height; + var leftWidth = this._capInsets[INSET_LEFT]; + var rightWidth = this._capInsets[INSET_RIGHT]; + var centerWidth = rect.width - leftWidth - rightWidth; + var topHeight = this._capInsets[INSET_TOP]; + var bottomHeight = this._capInsets[INSET_BOTTOM]; + var centerHeight = rect.height - topHeight - bottomHeight; + var uvSliced = this.uvSliced; + uvSliced.length = 0; + if (this._rotated) { + temp_uvs[0].u = rect.x / atlasWidth; + temp_uvs[1].u = (rect.x + bottomHeight) / atlasWidth; + temp_uvs[2].u = (rect.x + bottomHeight + centerHeight) / atlasWidth; + temp_uvs[3].u = (rect.x + rect.height) / atlasWidth; + temp_uvs[3].v = rect.y / atlasHeight; + temp_uvs[2].v = (rect.y + leftWidth) / atlasHeight; + temp_uvs[1].v = (rect.y + leftWidth + centerWidth) / atlasHeight; + temp_uvs[0].v = (rect.y + rect.width) / atlasHeight; + this._flipXY(temp_uvs); + for (var row = 0; row < 4; ++row) { + var rowD = temp_uvs[row]; + for (var col = 0; col < 4; ++col) { + var colD = temp_uvs[3 - col]; + uvSliced.push({ + u: rowD.u, + v: colD.v + }); + } + } + } else { + temp_uvs[0].u = rect.x / atlasWidth; + temp_uvs[1].u = (rect.x + leftWidth) / atlasWidth; + temp_uvs[2].u = (rect.x + leftWidth + centerWidth) / atlasWidth; + temp_uvs[3].u = (rect.x + rect.width) / atlasWidth; + temp_uvs[3].v = rect.y / atlasHeight; + temp_uvs[2].v = (rect.y + topHeight) / atlasHeight; + temp_uvs[1].v = (rect.y + topHeight + centerHeight) / atlasHeight; + temp_uvs[0].v = (rect.y + rect.height) / atlasHeight; + this._flipXY(temp_uvs); + for (var _row = 0; _row < 4; ++_row) { + var _rowD = temp_uvs[_row]; + for (var _col = 0; _col < 4; ++_col) { + var _colD = temp_uvs[_col]; + uvSliced.push({ + u: _colD.u, + v: _rowD.v + }); + } + } + } + }, + _setDynamicAtlasFrame: function _setDynamicAtlasFrame(frame) { + if (!frame) return; + this._original = { + _texture: this._texture, + _x: this._rect.x, + _y: this._rect.y + }; + this._texture = frame.texture; + this._rect.x = frame.x; + this._rect.y = frame.y; + this._calculateUV(); + }, + _resetDynamicAtlasFrame: function _resetDynamicAtlasFrame() { + if (!this._original) return; + this._rect.x = this._original._x; + this._rect.y = this._original._y; + this._texture = this._original._texture; + this._original = null; + this._calculateUV(); + this.emit("_resetDynamicAtlasFrame"); + }, + _calculateUV: function _calculateUV() { + var rect = this._rect, texture = this._texture, uv = this.uv, texw = texture.width, texh = texture.height; + if (this._rotated) { + var l = 0 === texw ? 0 : rect.x / texw; + var r = 0 === texw ? 0 : (rect.x + rect.height) / texw; + var b = 0 === texh ? 0 : (rect.y + rect.width) / texh; + var t = 0 === texh ? 0 : rect.y / texh; + uv[0] = l; + uv[1] = t; + uv[2] = l; + uv[3] = b; + uv[4] = r; + uv[5] = t; + uv[6] = r; + uv[7] = b; + } else { + var _l = 0 === texw ? 0 : rect.x / texw; + var _r = 0 === texw ? 0 : (rect.x + rect.width) / texw; + var _b = 0 === texh ? 0 : (rect.y + rect.height) / texh; + var _t = 0 === texh ? 0 : rect.y / texh; + uv[0] = _l; + uv[1] = _b; + uv[2] = _r; + uv[3] = _b; + uv[4] = _l; + uv[5] = _t; + uv[6] = _r; + uv[7] = _t; + } + if (this._flipX) { + var tempVal = uv[0]; + uv[0] = uv[2]; + uv[2] = tempVal; + tempVal = uv[1]; + uv[1] = uv[3]; + uv[3] = tempVal; + tempVal = uv[4]; + uv[4] = uv[6]; + uv[6] = tempVal; + tempVal = uv[5]; + uv[5] = uv[7]; + uv[7] = tempVal; + } + if (this._flipY) { + var _tempVal2 = uv[0]; + uv[0] = uv[4]; + uv[4] = _tempVal2; + _tempVal2 = uv[1]; + uv[1] = uv[5]; + uv[5] = _tempVal2; + _tempVal2 = uv[2]; + uv[2] = uv[6]; + uv[6] = _tempVal2; + _tempVal2 = uv[3]; + uv[3] = uv[7]; + uv[7] = _tempVal2; + } + var vertices = this.vertices; + if (vertices) { + vertices.nu.length = 0; + vertices.nv.length = 0; + for (var i = 0; i < vertices.u.length; i++) { + vertices.nu[i] = vertices.u[i] / texw; + vertices.nv[i] = vertices.v[i] / texh; + } + } + this._calculateSlicedUV(); + }, + _serialize: (false, false) && function(exporting, ctx) { + var rect = this._rect; + var offset = this._offset; + var size = this._originalSize; + var uuid; + var texture = this._texture; + texture && (uuid = texture._uuid); + if (!uuid) { + var url = this._textureFilename; + url && (uuid = Editor.Utils.UuidCache.urlToUuid(url)); + } + if (uuid && exporting) { + uuid = Editor.Utils.UuidUtils.compressUuid(uuid, true); + ctx.dependsOn("_textureSetter", uuid); + } + var vertices; + this.vertices && (vertices = { + triangles: this.vertices.triangles, + x: this.vertices.x, + y: this.vertices.y, + u: this.vertices.u, + v: this.vertices.v + }); + return { + name: this._name, + texture: !exporting && uuid || void 0, + atlas: exporting ? void 0 : this._atlasUuid, + rect: rect ? [ rect.x, rect.y, rect.width, rect.height ] : void 0, + offset: offset ? [ offset.x, offset.y ] : void 0, + originalSize: size ? [ size.width, size.height ] : void 0, + rotated: this._rotated ? 1 : void 0, + capInsets: this._capInsets, + vertices: vertices + }; + }, + _deserialize: function _deserialize(data, handle) { + var rect = data.rect; + rect && (this._rect = new cc.Rect(rect[0], rect[1], rect[2], rect[3])); + data.offset && this.setOffset(new cc.Vec2(data.offset[0], data.offset[1])); + data.originalSize && this.setOriginalSize(new cc.Size(data.originalSize[0], data.originalSize[1])); + this._rotated = 1 === data.rotated; + this._name = data.name; + var capInsets = data.capInsets; + if (capInsets) { + this._capInsets[INSET_LEFT] = capInsets[INSET_LEFT]; + this._capInsets[INSET_TOP] = capInsets[INSET_TOP]; + this._capInsets[INSET_RIGHT] = capInsets[INSET_RIGHT]; + this._capInsets[INSET_BOTTOM] = capInsets[INSET_BOTTOM]; + } + false; + this.vertices = data.vertices; + if (this.vertices) { + this.vertices.nu = []; + this.vertices.nv = []; + } + var textureUuid; + false; + }, + destroy: function destroy() { + cc.dynamicAtlasManager && cc.dynamicAtlasManager.deleteSpriteFrame(this); + this._super(); + } + }); + var proto = SpriteFrame.prototype; + proto.copyWithZone = proto.clone; + proto.copy = proto.clone; + proto.initWithTexture = proto.setTexture; + cc.SpriteFrame = SpriteFrame; + module.exports = SpriteFrame; + }), { + "../assets/CCAsset": 57, + "../event/event-target": 114 + } ], + 70: [ (function(require, module, exports) { + "use strict"; + var Font = require("./CCFont"); + var TTFFont = cc.Class({ + name: "cc.TTFFont", + extends: Font, + properties: { + _fontFamily: null, + _nativeAsset: { + type: cc.String, + get: function get() { + return this._fontFamily; + }, + set: function set(value) { + this._fontFamily = value || "Arial"; + }, + override: true + }, + _nativeDep: { + get: function get() { + return { + uuid: this._uuid, + __nativeName__: this._native, + ext: cc.path.extname(this._native), + __isNative__: true + }; + }, + override: true + } + } + }); + cc.TTFFont = module.exports = TTFFont; + }), { + "./CCFont": 61 + } ], + 71: [ (function(require, module, exports) { + "use strict"; + var TextAsset = cc.Class({ + name: "cc.TextAsset", + extends: cc.Asset, + properties: { + text: "" + }, + toString: function toString() { + return this.text; + } + }); + module.exports = cc.TextAsset = TextAsset; + }), {} ], + 72: [ (function(require, module, exports) { + "use strict"; + var _gfx = _interopRequireDefault(require("../../renderer/gfx")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + var EventTarget = require("../event/event-target"); + var renderer = require("../renderer"); + require("../platform/CCClass"); + var GL_NEAREST = 9728; + var GL_LINEAR = 9729; + var GL_REPEAT = 10497; + var GL_CLAMP_TO_EDGE = 33071; + var GL_MIRRORED_REPEAT = 33648; + var GL_RGBA = 6408; + var CHAR_CODE_0 = 48; + var CHAR_CODE_1 = 49; + var idGenerater = new (require("../platform/id-generater"))("Tex"); + var CUSTOM_PIXEL_FORMAT = 1024; + var PixelFormat = cc.Enum({ + RGB565: _gfx["default"].TEXTURE_FMT_R5_G6_B5, + RGB5A1: _gfx["default"].TEXTURE_FMT_R5_G5_B5_A1, + RGBA4444: _gfx["default"].TEXTURE_FMT_R4_G4_B4_A4, + RGB888: _gfx["default"].TEXTURE_FMT_RGB8, + RGBA8888: _gfx["default"].TEXTURE_FMT_RGBA8, + RGBA32F: _gfx["default"].TEXTURE_FMT_RGBA32F, + A8: _gfx["default"].TEXTURE_FMT_A8, + I8: _gfx["default"].TEXTURE_FMT_L8, + AI8: _gfx["default"].TEXTURE_FMT_L8_A8, + RGB_PVRTC_2BPPV1: _gfx["default"].TEXTURE_FMT_RGB_PVRTC_2BPPV1, + RGBA_PVRTC_2BPPV1: _gfx["default"].TEXTURE_FMT_RGBA_PVRTC_2BPPV1, + RGB_A_PVRTC_2BPPV1: CUSTOM_PIXEL_FORMAT++, + RGB_PVRTC_4BPPV1: _gfx["default"].TEXTURE_FMT_RGB_PVRTC_4BPPV1, + RGBA_PVRTC_4BPPV1: _gfx["default"].TEXTURE_FMT_RGBA_PVRTC_4BPPV1, + RGB_A_PVRTC_4BPPV1: CUSTOM_PIXEL_FORMAT++, + RGB_ETC1: _gfx["default"].TEXTURE_FMT_RGB_ETC1, + RGBA_ETC1: CUSTOM_PIXEL_FORMAT++, + RGB_ETC2: _gfx["default"].TEXTURE_FMT_RGB_ETC2, + RGBA_ETC2: _gfx["default"].TEXTURE_FMT_RGBA_ETC2 + }); + var WrapMode = cc.Enum({ + REPEAT: GL_REPEAT, + CLAMP_TO_EDGE: GL_CLAMP_TO_EDGE, + MIRRORED_REPEAT: GL_MIRRORED_REPEAT + }); + var Filter = cc.Enum({ + LINEAR: GL_LINEAR, + NEAREST: GL_NEAREST + }); + var FilterIndex = { + 9728: 0, + 9729: 1 + }; + var _images = []; + var _sharedOpts = { + width: void 0, + height: void 0, + minFilter: void 0, + magFilter: void 0, + wrapS: void 0, + wrapT: void 0, + format: void 0, + genMipmaps: void 0, + images: void 0, + image: void 0, + flipY: void 0, + premultiplyAlpha: void 0 + }; + function _getSharedOptions() { + for (var key in _sharedOpts) _sharedOpts[key] = void 0; + _images.length = 0; + _sharedOpts.images = _images; + return _sharedOpts; + } + var Texture2D = cc.Class({ + name: "cc.Texture2D", + extends: require("../assets/CCAsset"), + mixins: [ EventTarget ], + properties: { + _nativeAsset: { + get: function get() { + return this._image; + }, + set: function set(data) { + data._compressed && data._data ? this.initWithData(data._data, this._format, data.width, data.height) : this.initWithElement(data); + }, + override: true + }, + _format: PixelFormat.RGBA8888, + _premultiplyAlpha: false, + _flipY: false, + _minFilter: Filter.LINEAR, + _magFilter: Filter.LINEAR, + _mipFilter: Filter.LINEAR, + _wrapS: WrapMode.CLAMP_TO_EDGE, + _wrapT: WrapMode.CLAMP_TO_EDGE, + _isAlphaAtlas: false, + _genMipmaps: false, + genMipmaps: { + get: function get() { + return this._genMipmaps; + }, + set: function set(genMipmaps) { + if (this._genMipmaps !== genMipmaps) { + var opts = _getSharedOptions(); + opts.genMipmaps = genMipmaps; + this.update(opts); + } + } + }, + _packable: true, + packable: { + get: function get() { + return this._packable; + }, + set: function set(val) { + this._packable = val; + } + }, + _nativeDep: { + get: function get() { + return { + __isNative__: true, + uuid: this._uuid, + ext: this._native, + __flipY__: this._flipY, + __premultiplyAlpha__: this._premultiplyAlpha + }; + }, + override: true + } + }, + statics: { + PixelFormat: PixelFormat, + WrapMode: WrapMode, + Filter: Filter, + _FilterIndex: FilterIndex, + extnames: [ ".png", ".jpg", ".jpeg", ".bmp", ".webp", ".pvr", ".pkm" ], + _parseExt: function _parseExt(extIdStr, defaultFormat) { + var device = cc.renderer.device; + var extIds = extIdStr.split("_"); + var defaultExt = ""; + var bestExt = ""; + var bestIndex = 999; + var bestFormat = defaultFormat; + var SupportTextureFormats = cc.macro.SUPPORT_TEXTURE_FORMATS; + for (var i = 0; i < extIds.length; i++) { + var extFormat = extIds[i].split("@"); + var tmpExt = extFormat[0]; + tmpExt = Texture2D.extnames[tmpExt.charCodeAt(0) - CHAR_CODE_0] || tmpExt; + var index = SupportTextureFormats.indexOf(tmpExt); + if (-1 !== index && index < bestIndex) { + var tmpFormat = extFormat[1] ? parseInt(extFormat[1]) : defaultFormat; + if (".pvr" === tmpExt && !device.ext("WEBGL_compressed_texture_pvrtc")) continue; + if (!(tmpFormat !== PixelFormat.RGB_ETC1 && tmpFormat !== PixelFormat.RGBA_ETC1 || device.ext("WEBGL_compressed_texture_etc1"))) continue; + if (!(tmpFormat !== PixelFormat.RGB_ETC2 && tmpFormat !== PixelFormat.RGBA_ETC2 || device.ext("WEBGL_compressed_texture_etc"))) continue; + if (".webp" === tmpExt && !cc.sys.capabilities.webp) continue; + bestIndex = index; + bestExt = tmpExt; + bestFormat = tmpFormat; + } else defaultExt || (defaultExt = tmpExt); + } + return { + bestExt: bestExt, + bestFormat: bestFormat, + defaultExt: defaultExt + }; + } + }, + ctor: function ctor() { + this._id = idGenerater.getNewId(); + this.loaded = false; + this.width = 0; + this.height = 0; + this._hashDirty = true; + this._hash = 0; + this._texture = null; + false; + this._multiMaterial = null; + }, + getImpl: function getImpl() { + this._texture || (this._texture = new renderer.Texture2D(renderer.device, {})); + return this._texture; + }, + getId: function getId() { + return this._id; + }, + toString: function toString() { + return this.nativeUrl || ""; + }, + update: function update(options) { + if (options) { + var updateImg = false; + void 0 !== options.width && (this.width = options.width); + void 0 !== options.height && (this.height = options.height); + if (void 0 !== options.minFilter) { + this._minFilter = options.minFilter; + options.minFilter = FilterIndex[options.minFilter]; + } + if (void 0 !== options.magFilter) { + this._magFilter = options.magFilter; + options.magFilter = FilterIndex[options.magFilter]; + } + if (void 0 !== options.mipFilter) { + this._mipFilter = options.mipFilter; + options.mipFilter = FilterIndex[options.mipFilter]; + } + void 0 !== options.wrapS && (this._wrapS = options.wrapS); + void 0 !== options.wrapT && (this._wrapT = options.wrapT); + void 0 !== options.format && (this._format = options.format); + if (void 0 !== options.flipY) { + this._flipY = options.flipY; + updateImg = true; + } + if (void 0 !== options.premultiplyAlpha) { + this._premultiplyAlpha = options.premultiplyAlpha; + updateImg = true; + } + void 0 !== options.genMipmaps && (this._genMipmaps = options.genMipmaps); + cc.sys.capabilities.imageBitmap && this._image instanceof ImageBitmap ? this._checkImageBitmap(this._upload.bind(this, options, updateImg)) : this._upload(options, updateImg); + } + }, + _upload: function _upload(options, updateImg) { + updateImg && this._image && (options.image = this._image); + if (options.images && options.images.length > 0) this._image = options.images[0]; else if (void 0 !== options.image) { + this._image = options.image; + if (!options.images) { + _images.length = 0; + options.images = _images; + } + options.images.push(options.image); + } + this._texture && this._texture.update(options); + this._hashDirty = true; + }, + initWithElement: function initWithElement(element) { + if (!element) return; + this._image = element; + if (element.complete || element instanceof HTMLCanvasElement) this.handleLoadedTexture(); else if (cc.sys.capabilities.imageBitmap && element instanceof ImageBitmap) this._checkImageBitmap(this.handleLoadedTexture.bind(this)); else { + var self = this; + element.addEventListener("load", (function() { + self.handleLoadedTexture(); + })); + element.addEventListener("error", (function(err) { + cc.warnID(3119, err.message); + })); + } + }, + initWithData: function initWithData(data, pixelFormat, pixelsWidth, pixelsHeight) { + var opts = _getSharedOptions(); + opts.image = data; + opts.images = [ opts.image ]; + opts.genMipmaps = this._genMipmaps; + opts.premultiplyAlpha = this._premultiplyAlpha; + opts.flipY = this._flipY; + opts.minFilter = FilterIndex[this._minFilter]; + opts.magFilter = FilterIndex[this._magFilter]; + opts.wrapS = this._wrapS; + opts.wrapT = this._wrapT; + opts.format = this._getGFXPixelFormat(pixelFormat); + opts.width = pixelsWidth; + opts.height = pixelsHeight; + this._texture ? this._texture.update(opts) : this._texture = new renderer.Texture2D(renderer.device, opts); + this.width = pixelsWidth; + this.height = pixelsHeight; + this._updateFormat(); + this._checkPackable(); + this.loaded = true; + this.emit("load"); + return true; + }, + getHtmlElementObj: function getHtmlElementObj() { + return this._image; + }, + destroy: function destroy() { + cc.sys.capabilities.imageBitmap && this._image instanceof ImageBitmap && this._image.close && this._image.close(); + this._packable && cc.dynamicAtlasManager && cc.dynamicAtlasManager.deleteAtlasTexture(this); + this.unlinkMaterial(); + this._image = null; + this._texture && this._texture.destroy(); + this._super(); + }, + getPixelFormat: function getPixelFormat() { + return this._format; + }, + hasPremultipliedAlpha: function hasPremultipliedAlpha() { + return this._premultiplyAlpha || false; + }, + isAlphaAtlas: function isAlphaAtlas() { + return this._isAlphaAtlas; + }, + handleLoadedTexture: function handleLoadedTexture() { + if (!this._image || !this._image.width || !this._image.height) return; + this.width = this._image.width; + this.height = this._image.height; + var opts = _getSharedOptions(); + opts.image = this._image; + opts.images = [ opts.image ]; + opts.width = this.width; + opts.height = this.height; + opts.genMipmaps = this._genMipmaps; + opts.format = this._getGFXPixelFormat(this._format); + opts.premultiplyAlpha = this._premultiplyAlpha; + opts.flipY = this._flipY; + opts.minFilter = FilterIndex[this._minFilter]; + opts.magFilter = FilterIndex[this._magFilter]; + opts.wrapS = this._wrapS; + opts.wrapT = this._wrapT; + this._texture ? this._texture.update(opts) : this._texture = new renderer.Texture2D(renderer.device, opts); + this._updateFormat(); + this._checkPackable(); + this.loaded = true; + this.emit("load"); + cc.macro.CLEANUP_IMAGE_CACHE && (this._image instanceof HTMLImageElement ? this._clearImage() : cc.sys.capabilities.imageBitmap && this._image instanceof ImageBitmap && this._image.close && this._image.close()); + }, + description: function description() { + return ""; + }, + releaseTexture: function releaseTexture() { + this._image = null; + this._texture && this._texture.destroy(); + }, + setWrapMode: function setWrapMode(wrapS, wrapT) { + if (this._wrapS !== wrapS || this._wrapT !== wrapT) { + var opts = _getSharedOptions(); + opts.wrapS = wrapS; + opts.wrapT = wrapT; + this.update(opts); + } + }, + setFilters: function setFilters(minFilter, magFilter) { + if (this._minFilter !== minFilter || this._magFilter !== magFilter) { + var opts = _getSharedOptions(); + opts.minFilter = minFilter; + opts.magFilter = magFilter; + this.update(opts); + } + }, + setFlipY: function setFlipY(flipY) { + if (this._flipY !== flipY) { + var opts = _getSharedOptions(); + opts.flipY = flipY; + opts.premultiplyAlpha = this._premultiplyAlpha; + this.update(opts); + } + }, + setPremultiplyAlpha: function setPremultiplyAlpha(premultiply) { + if (this._premultiplyAlpha !== premultiply) { + var opts = _getSharedOptions(); + opts.flipY = this._flipY; + opts.premultiplyAlpha = premultiply; + this.update(opts); + } + }, + _updateFormat: function _updateFormat() { + this._isAlphaAtlas = this._format === PixelFormat.RGBA_ETC1 || this._format === PixelFormat.RGB_A_PVRTC_4BPPV1 || this._format === PixelFormat.RGB_A_PVRTC_2BPPV1; + false; + }, + _checkPackable: function _checkPackable() { + var dynamicAtlas = cc.dynamicAtlasManager; + if (!dynamicAtlas) return; + if (this._isCompressed()) { + this._packable = false; + return; + } + var w = this.width, h = this.height; + if (!this._image || w > dynamicAtlas.maxFrameSize || h > dynamicAtlas.maxFrameSize || this._getHash() !== dynamicAtlas.Atlas.DEFAULT_HASH) { + this._packable = false; + return; + } + this._image && this._image instanceof HTMLCanvasElement && (this._packable = true); + }, + _getOpts: function _getOpts() { + var opts = _getSharedOptions(); + opts.width = this.width; + opts.height = this.height; + opts.genMipmaps = this._genMipmaps; + opts.format = this._format; + opts.premultiplyAlpha = this._premultiplyAlpha; + opts.anisotropy = this._anisotropy; + opts.flipY = this._flipY; + opts.minFilter = FilterIndex[this._minFilter]; + opts.magFilter = FilterIndex[this._magFilter]; + opts.mipFilter = FilterIndex[this._mipFilter]; + opts.wrapS = this._wrapS; + opts.wrapT = this._wrapT; + return opts; + }, + _getGFXPixelFormat: function _getGFXPixelFormat(format) { + format === PixelFormat.RGBA_ETC1 ? format = PixelFormat.RGB_ETC1 : format === PixelFormat.RGB_A_PVRTC_4BPPV1 ? format = PixelFormat.RGB_PVRTC_4BPPV1 : format === PixelFormat.RGB_A_PVRTC_2BPPV1 && (format = PixelFormat.RGB_PVRTC_2BPPV1); + return format; + }, + _resetUnderlyingMipmaps: function _resetUnderlyingMipmaps(mipmapSources) { + var opts = this._getOpts(); + opts.images = mipmapSources || [ null ]; + this._texture ? this._texture.update(opts) : this._texture = new renderer.Texture2D(renderer.device, opts); + }, + _serialize: (false, false) && function() { + var extId = ""; + var exportedExts = this._exportedExts; + !exportedExts && this._native && (exportedExts = [ this._native ]); + if (exportedExts) { + var exts = []; + for (var i = 0; i < exportedExts.length; i++) { + var _extId = ""; + var ext = exportedExts[i]; + if (ext) { + var extFormat = ext.split("@"); + _extId = Texture2D.extnames.indexOf(extFormat[0]); + _extId < 0 && (_extId = ext); + extFormat[1] && (_extId += "@" + extFormat[1]); + } + exts.push(_extId); + } + extId = exts.join("_"); + } + var asset = extId + "," + this._minFilter + "," + this._magFilter + "," + this._wrapS + "," + this._wrapT + "," + (this._premultiplyAlpha ? 1 : 0) + "," + (this._genMipmaps ? 1 : 0) + "," + (this._packable ? 1 : 0); + return asset; + }, + _deserialize: function _deserialize(data) { + var fields = data.split(","); + var extIdStr = fields[0]; + if (extIdStr) { + var result = Texture2D._parseExt(extIdStr, this._format); + if (result.bestExt) { + this._setRawAsset(result.bestExt); + this._format = result.bestFormat; + } else { + if (!result.defaultExt) throw new Error(cc.debug.getError(3121)); + this._setRawAsset(result.defaultExt); + cc.warnID(3120, result.defaultExt, result.defaultExt); + } + } + if (8 === fields.length) { + this._minFilter = parseInt(fields[1]); + this._magFilter = parseInt(fields[2]); + this._wrapS = parseInt(fields[3]); + this._wrapT = parseInt(fields[4]); + this._premultiplyAlpha = fields[5].charCodeAt(0) === CHAR_CODE_1; + this._genMipmaps = fields[6].charCodeAt(0) === CHAR_CODE_1; + this._packable = fields[7].charCodeAt(0) === CHAR_CODE_1; + } + }, + _getHash: function _getHash() { + if (!this._hashDirty) return this._hash; + var genMipmaps = this._genMipmaps ? 1 : 0; + var premultiplyAlpha = this._premultiplyAlpha ? 1 : 0; + var flipY = this._flipY ? 1 : 0; + var minFilter = this._minFilter === Filter.LINEAR ? 1 : 2; + var magFilter = this._magFilter === Filter.LINEAR ? 1 : 2; + var wrapS = this._wrapS === WrapMode.REPEAT ? 1 : this._wrapS === WrapMode.CLAMP_TO_EDGE ? 2 : 3; + var wrapT = this._wrapT === WrapMode.REPEAT ? 1 : this._wrapT === WrapMode.CLAMP_TO_EDGE ? 2 : 3; + var pixelFormat = this._format; + var image = this._image; + false; + this._hash = Number("" + minFilter + magFilter + pixelFormat + wrapS + wrapT + genMipmaps + premultiplyAlpha + flipY); + this._hashDirty = false; + return this._hash; + }, + _isCompressed: function _isCompressed() { + return this._format < PixelFormat.A8 || this._format > PixelFormat.RGBA32F; + }, + _clearImage: function _clearImage() { + this._image.src = ""; + }, + _checkImageBitmap: function _checkImageBitmap(cb) { + var _this = this; + var image = this._image; + var flipY = this._flipY; + var premultiplyAlpha = this._premultiplyAlpha; + this._flipY !== image.flipY || this._premultiplyAlpha !== image.premultiplyAlpha ? createImageBitmap(image, { + imageOrientation: flipY !== image.flipY ? "flipY" : "none", + premultiplyAlpha: premultiplyAlpha ? "premultiply" : "none" + }).then((function(result) { + image.close && image.close(); + result.flipY = flipY; + result.premultiplyAlpha = premultiplyAlpha; + _this._image = result; + cb(); + }), (function(err) { + cc.error(err.message); + })) : cb(); + }, + linkMaterial: function linkMaterial(material, index) { + var handler = material.getMultiHandler(); + if (handler) { + if (null == index) { + if (-1 === handler.autoSetTexture(this)) return false; + } else handler.setTexture(index, this); + this.unlinkMaterial(); + this._multiMaterial = material; + return true; + } + return false; + }, + unlinkMaterial: function unlinkMaterial() { + if (this._multiMaterial) { + var handler = this._multiMaterial.getMultiHandler(); + var _texture = this.getImpl(); + handler.removeTexture(_texture); + this._multiMaterial = null; + } + }, + getLinkedMaterial: function getLinkedMaterial() { + return this._multiMaterial; + }, + hasLinkedMaterial: function hasLinkedMaterial() { + return !!this._multiMaterial; + } + }); + cc.Texture2D = module.exports = Texture2D; + }), { + "../../renderer/gfx": 247, + "../assets/CCAsset": 57, + "../event/event-target": 114, + "../platform/CCClass": 121, + "../platform/id-generater": 138, + "../renderer": 152 + } ], + 73: [ (function(require, module, exports) { + "use strict"; + require("./CCAsset"); + require("./CCFont"); + require("./CCPrefab"); + require("./CCAudioClip"); + require("./CCScripts"); + require("./CCSceneAsset"); + require("./CCSpriteFrame"); + require("./CCTexture2D"); + require("./CCRenderTexture"); + require("./CCTTFFont"); + require("./CCSpriteAtlas"); + require("./CCBitmapFont"); + require("./CCLabelAtlas"); + require("./CCTextAsset"); + require("./CCJsonAsset"); + require("./CCBufferAsset"); + require("./material"); + }), { + "./CCAsset": 57, + "./CCAudioClip": 58, + "./CCBitmapFont": 59, + "./CCBufferAsset": 60, + "./CCFont": 61, + "./CCJsonAsset": 62, + "./CCLabelAtlas": 63, + "./CCPrefab": 64, + "./CCRenderTexture": 65, + "./CCSceneAsset": 66, + "./CCScripts": 67, + "./CCSpriteAtlas": 68, + "./CCSpriteFrame": 69, + "./CCTTFFont": 70, + "./CCTextAsset": 71, + "./CCTexture2D": 72, + "./material": 80 + } ], + 74: [ (function(require, module, exports) { + "use strict"; + var _CCAsset = _interopRequireDefault(require("../CCAsset")); + var _effectParser = require("./effect-parser"); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + var EffectAsset = cc.Class({ + name: "cc.EffectAsset", + extends: _CCAsset["default"], + ctor: function ctor() { + this._effect = null; + }, + properties: { + properties: Object, + techniques: [], + shaders: [] + }, + onLoad: function onLoad() { + if (cc.game.renderType === cc.game.RENDER_TYPE_CANVAS) return; + var lib = cc.renderer._forward._programLib; + for (var i = 0; i < this.shaders.length; i++) lib.define(this.shaders[i]); + this._initEffect(); + }, + _initEffect: function _initEffect() { + if (this._effect) return; + this._effect = (0, _effectParser.parseEffect)(this); + Object.freeze(this._effect); + }, + getInstantiatedEffect: function getInstantiatedEffect() { + this._initEffect(); + return this._effect.clone(); + }, + getEffect: function getEffect() { + this._initEffect(); + return this._effect; + } + }); + module.exports = cc.EffectAsset = EffectAsset; + }), { + "../CCAsset": 57, + "./effect-parser": 77 + } ], + 75: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var Asset = require("../CCAsset"); + var Texture = require("../CCTexture2D"); + var PixelFormat = Texture.PixelFormat; + var EffectAsset = require("./CCEffectAsset"); + var textureUtil = require("../../utils/texture-util"); + var gfx = cc.gfx; + var BUILTIN_NAME = cc.Enum({ + SPRITE: "2d-sprite", + GRAY_SPRITE: "2d-gray-sprite", + UNLIT: "unlit" + }); + var Material = cc.Class({ + name: "cc.Material", + extends: Asset, + ctor: function ctor() { + this.loaded = false; + this._manualHash = false; + this._dirty = true; + this._effect = null; + this._multiHandler = null; + }, + properties: { + _defines: { + default: void 0, + type: Object + }, + _props: { + default: void 0, + type: Object + }, + _effectAsset: { + type: EffectAsset, + default: null + }, + _techniqueIndex: 0, + _techniqueData: Object, + effectName: void 0, + effectAsset: { + get: function get() { + return this._effectAsset; + }, + set: function set(asset) { + if (cc.game.renderType === cc.game.RENDER_TYPE_CANVAS) return; + this._effectAsset = asset; + if (!asset) { + cc.error("Can not set an empty effect asset."); + return; + } + this._effect = this._effectAsset.getInstantiatedEffect(); + this.updateMultiSupport(); + } + }, + effect: { + get: function get() { + return this._effect; + } + }, + techniqueIndex: { + get: function get() { + return this._techniqueIndex; + }, + set: function set(v) { + this._techniqueIndex = v; + this._effect.switchTechnique(v); + this.updateMultiSupport(); + } + } + }, + statics: { + getBuiltinMaterial: function getBuiltinMaterial(name) { + if (cc.game.renderType === cc.game.RENDER_TYPE_CANVAS) return new cc.Material(); + return cc.assetManager.builtins.getBuiltin("material", "builtin-" + name); + }, + BUILTIN_NAME: BUILTIN_NAME, + createWithBuiltin: function createWithBuiltin(effectName, techniqueIndex) { + void 0 === techniqueIndex && (techniqueIndex = 0); + var effectAsset = cc.assetManager.builtins.getBuiltin("effect", "builtin-" + effectName); + return Material.create(effectAsset, techniqueIndex); + }, + create: function create(effectAsset, techniqueIndex) { + void 0 === techniqueIndex && (techniqueIndex = 0); + if (!effectAsset) return null; + var material = new Material(); + material.effectAsset = effectAsset; + material.techniqueIndex = techniqueIndex; + return material; + } + }, + setProperty: function setProperty(name, val, passIdx, directly) { + if (cc.game.renderType === cc.game.RENDER_TYPE_CANVAS) return; + "string" === typeof passIdx && (passIdx = parseInt(passIdx)); + if (val instanceof Texture) { + var isAlphaAtlas = val.isAlphaAtlas(); + var key = "CC_USE_ALPHA_ATLAS_" + name; + var def = this.getDefine(key, passIdx); + (isAlphaAtlas || def) && this.define(key, isAlphaAtlas); + val.loaded || cc.assetManager.postLoadNative(val); + } + this._effect.setProperty(name, val, passIdx, directly); + }, + getProperty: function getProperty(name, passIdx) { + "string" === typeof passIdx && (passIdx = parseInt(passIdx)); + return this._effect.getProperty(name, passIdx); + }, + define: function define(name, val, passIdx, force) { + if (cc.game.renderType === cc.game.RENDER_TYPE_CANVAS) return; + "string" === typeof passIdx && (passIdx = parseInt(passIdx)); + this._effect.define(name, val, passIdx, force); + }, + getDefine: function getDefine(name, passIdx) { + "string" === typeof passIdx && (passIdx = parseInt(passIdx)); + return this._effect.getDefine(name, passIdx); + }, + setCullMode: function setCullMode(cullMode, passIdx) { + void 0 === cullMode && (cullMode = gfx.CULL_BACK); + this._effect.setCullMode(cullMode, passIdx); + }, + setDepth: function setDepth(depthTest, depthWrite, depthFunc, passIdx) { + void 0 === depthTest && (depthTest = false); + void 0 === depthWrite && (depthWrite = false); + void 0 === depthFunc && (depthFunc = gfx.DS_FUNC_LESS); + this._effect.setDepth(depthTest, depthWrite, depthFunc, passIdx); + }, + setBlend: function setBlend(enabled, blendEq, blendSrc, blendDst, blendAlphaEq, blendSrcAlpha, blendDstAlpha, blendColor, passIdx) { + void 0 === enabled && (enabled = false); + void 0 === blendEq && (blendEq = gfx.BLEND_FUNC_ADD); + void 0 === blendSrc && (blendSrc = gfx.BLEND_SRC_ALPHA); + void 0 === blendDst && (blendDst = gfx.BLEND_ONE_MINUS_SRC_ALPHA); + void 0 === blendAlphaEq && (blendAlphaEq = gfx.BLEND_FUNC_ADD); + void 0 === blendSrcAlpha && (blendSrcAlpha = gfx.BLEND_SRC_ALPHA); + void 0 === blendDstAlpha && (blendDstAlpha = gfx.BLEND_ONE_MINUS_SRC_ALPHA); + void 0 === blendColor && (blendColor = 4294967295); + this._effect.setBlend(enabled, blendEq, blendSrc, blendDst, blendAlphaEq, blendSrcAlpha, blendDstAlpha, blendColor, passIdx); + }, + setStencilEnabled: function setStencilEnabled(stencilTest, passIdx) { + void 0 === stencilTest && (stencilTest = gfx.STENCIL_INHERIT); + this._effect.setStencilEnabled(stencilTest, passIdx); + }, + setStencil: function setStencil(stencilTest, stencilFunc, stencilRef, stencilMask, stencilFailOp, stencilZFailOp, stencilZPassOp, stencilWriteMask, passIdx) { + void 0 === stencilTest && (stencilTest = gfx.STENCIL_INHERIT); + void 0 === stencilFunc && (stencilFunc = gfx.DS_FUNC_ALWAYS); + void 0 === stencilRef && (stencilRef = 0); + void 0 === stencilMask && (stencilMask = 255); + void 0 === stencilFailOp && (stencilFailOp = gfx.STENCIL_OP_KEEP); + void 0 === stencilZFailOp && (stencilZFailOp = gfx.STENCIL_OP_KEEP); + void 0 === stencilZPassOp && (stencilZPassOp = gfx.STENCIL_OP_KEEP); + void 0 === stencilWriteMask && (stencilWriteMask = 255); + this._effect.setStencil(stencilTest, stencilFunc, stencilRef, stencilMask, stencilFailOp, stencilZFailOp, stencilZPassOp, stencilWriteMask, passIdx); + }, + updateHash: function updateHash(hash) { + this._manualHash = hash; + this._effect && this._effect.updateHash(hash); + }, + getHash: function getHash() { + return this._manualHash || this._effect && this._effect.getHash(); + }, + onLoad: function onLoad() { + this.effectAsset = this._effectAsset; + if (!this._effect) return; + this._techniqueIndex && this._effect.switchTechnique(this._techniqueIndex); + this._techniqueData = this._techniqueData || {}; + var passDatas = this._techniqueData; + for (var index in passDatas) { + index = parseInt(index); + var passData = passDatas[index]; + if (!passData) continue; + for (var def in passData.defines) this.define(def, passData.defines[def], index); + for (var prop in passData.props) this.setProperty(prop, passData.props[prop], index); + } + this.updateMultiSupport(); + this._multiHandler && this._multiHandler.syncTextures(); + }, + updateMultiSupport: function updateMultiSupport() { + var passes = this._effect.technique.passes; + passes.length > 0 && passes[0].getDefine("USE_MULTI_TEXTURE") ? this.setMultiSupport(true) : this.setMultiSupport(false); + }, + isMultiSupport: function isMultiSupport() { + return !!this._multiHandler; + }, + setMultiSupport: function setMultiSupport(bool) { + bool ? this._multiHandler ? this._multiHandler.syncTextures() : this._multiHandler = new cc.sp.MultiHandler(this) : bool || (this._multiHandler = null); + }, + getMultiHandler: function getMultiHandler() { + return this._multiHandler; + } + }); + var _default = Material; + exports["default"] = _default; + cc.Material = Material; + module.exports = exports["default"]; + }), { + "../../utils/texture-util": 213, + "../CCAsset": 57, + "../CCTexture2D": 72, + "./CCEffectAsset": 74 + } ], + 76: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _pass = _interopRequireDefault(require("../../../renderer/core/pass")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + "value" in descriptor && (descriptor.writable = true); + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _createClass(Constructor, protoProps, staticProps) { + protoProps && _defineProperties(Constructor.prototype, protoProps); + staticProps && _defineProperties(Constructor, staticProps); + Object.defineProperty(Constructor, "prototype", { + writable: false + }); + return Constructor; + } + var gfx = cc.gfx; + var EffectBase = (function() { + function EffectBase() { + this._dirty = true; + this._dirtyCode = 0; + this._name = ""; + this._technique = null; + } + var _proto = EffectBase.prototype; + _proto._createPassProp = function _createPassProp(name, pass) { + var prop = pass._properties[name]; + if (!prop) return; + var uniform = Object.create(null); + uniform.name = name; + uniform.type = prop.type; + prop.value instanceof Float32Array ? uniform.value = new Float32Array(prop.value) : prop.value instanceof Float64Array ? uniform.value = new Float64Array(prop.value) : uniform.value = prop.value; + pass._properties[name] = uniform; + return uniform; + }; + _proto._setPassProperty = function _setPassProperty(name, value, pass, directly) { + var properties = pass._properties; + properties.hasOwnProperty(name) || this._createPassProp(name, pass); + if (properties[name].value === value) return true; + this._dirty = true; + this._dirtyCode++; + return _pass["default"].prototype.setProperty.call(pass, name, value, directly); + }; + _proto.setProperty = function setProperty(name, value, passIdx, directly) { + var success = false; + var passes = this.passes; + var start = 0, end = passes.length; + void 0 !== passIdx && (start = passIdx, end = passIdx + 1); + for (var i = start; i < end; i++) this._setPassProperty(name, value, passes[i], directly) && (success = true); + success || cc.warnID(9103, this.name, name); + }; + _proto.getProperty = function getProperty(name, passIdx) { + var passes = this.passes; + if (passIdx >= passes.length) return; + var start = 0, end = passes.length; + void 0 !== passIdx && (start = passIdx, end = passIdx + 1); + for (var i = start; i < end; i++) { + var value = passes[i].getProperty(name); + if (void 0 !== value) return value; + } + }; + _proto.define = function define(name, value, passIdx, force) { + var success = false; + var passes = this.passes; + var start = 0, end = passes.length; + void 0 !== passIdx && (start = passIdx, end = passIdx + 1); + for (var i = start; i < end; i++) passes[i].define(name, value, force) && (success = true); + success || cc.warnID(9104, this.name, name); + }; + _proto.getDefine = function getDefine(name, passIdx) { + var passes = this.passes; + if (passIdx >= passes.length) return; + var start = 0, end = passes.length; + void 0 !== passIdx && (start = passIdx, end = passIdx + 1); + for (var i = start; i < end; i++) { + var value = passes[i].getDefine(name); + if (void 0 !== value) return value; + } + }; + _proto.setCullMode = function setCullMode(cullMode, passIdx) { + void 0 === cullMode && (cullMode = gfx.CULL_BACK); + var passes = this.passes; + var start = 0, end = passes.length; + void 0 !== passIdx && (start = passIdx, end = passIdx + 1); + for (var i = start; i < end; i++) passes[i].setCullMode(cullMode); + this._dirty = true; + this._dirtyCode++; + }; + _proto.setDepth = function setDepth(depthTest, depthWrite, depthFunc, passIdx) { + var passes = this.passes; + var start = 0, end = passes.length; + void 0 !== passIdx && (start = passIdx, end = passIdx + 1); + for (var i = start; i < end; i++) passes[i].setDepth(depthTest, depthWrite, depthFunc); + this._dirty = true; + this._dirtyCode++; + }; + _proto.setBlend = function setBlend(enabled, blendEq, blendSrc, blendDst, blendAlphaEq, blendSrcAlpha, blendDstAlpha, blendColor, passIdx) { + var passes = this.passes; + var start = 0, end = passes.length; + void 0 !== passIdx && (start = passIdx, end = passIdx + 1); + for (var i = start; i < end; i++) passes[i].setBlend(enabled, blendEq, blendSrc, blendDst, blendAlphaEq, blendSrcAlpha, blendDstAlpha, blendColor); + this._dirty = true; + this._dirtyCode++; + }; + _proto.setStencilEnabled = function setStencilEnabled(stencilTest, passIdx) { + void 0 === stencilTest && (stencilTest = gfx.STENCIL_INHERIT); + var passes = this.passes; + var start = 0, end = passes.length; + void 0 !== passIdx && (start = passIdx, end = passIdx + 1); + for (var i = start; i < end; i++) passes[i].setStencilEnabled(stencilTest); + this._dirty = true; + this._dirtyCode++; + }; + _proto.setStencil = function setStencil(enabled, stencilFunc, stencilRef, stencilMask, stencilFailOp, stencilZFailOp, stencilZPassOp, stencilWriteMask, passIdx) { + var passes = this.passes; + var start = 0, end = passes.length; + void 0 !== passIdx && (start = passIdx, end = passIdx + 1); + for (var i = start; i < end; i++) { + var pass = passes[i]; + pass.setStencilFront(enabled, stencilFunc, stencilRef, stencilMask, stencilFailOp, stencilZFailOp, stencilZPassOp, stencilWriteMask); + pass.setStencilBack(enabled, stencilFunc, stencilRef, stencilMask, stencilFailOp, stencilZFailOp, stencilZPassOp, stencilWriteMask); + } + this._dirty = true; + this._dirtyCode++; + }; + _createClass(EffectBase, [ { + key: "name", + get: function get() { + return this._name; + } + }, { + key: "technique", + get: function get() { + return this._technique; + } + }, { + key: "passes", + get: function get() { + return []; + } + } ]); + return EffectBase; + })(); + exports["default"] = EffectBase; + cc.EffectBase = EffectBase; + module.exports = exports["default"]; + }), { + "../../../renderer/core/pass": 238 + } ], + 77: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports.parseEffect = parseEffect; + var _pass = _interopRequireDefault(require("../../../renderer/core/pass")); + var _types = require("../../../renderer/types"); + var _enums = _interopRequireDefault(require("../../../renderer/enums")); + var _effect = _interopRequireDefault(require("./effect")); + var _technique = _interopRequireDefault(require("../../../renderer/core/technique")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function getInvolvedProgram(programName) { + var lib = cc.renderer._forward._programLib; + return lib.getTemplate(programName); + } + function parseProperties(effectAsset, passJson) { + var propertiesJson = passJson.properties || {}; + var program = getInvolvedProgram(passJson.program); + var _loop = function _loop(prop) { + var uniformInfo = program.uniforms.find((function(u) { + return u.name === prop; + })); + if (!uniformInfo) { + cc.warnID(9107, effectAsset.name, prop); + return "continue"; + } + }; + for (var prop in propertiesJson) { + var _ret = _loop(prop); + if ("continue" === _ret) continue; + } + var properties = {}; + program.uniforms.forEach((function(u) { + var name = u.name, prop = properties[name] = Object.assign({}, u), propInfo = propertiesJson[name]; + var value; + value = propInfo ? propInfo.type === _enums["default"].PARAM_TEXTURE_2D ? null : propInfo.type === _enums["default"].PARAM_INT || propInfo.type === _enums["default"].PARAM_FLOAT ? Array.isArray(propInfo.value) ? propInfo.value[0] : propInfo.value : new Float32Array(propInfo.value) : _types.enums2default[u.type]; + void 0 === value && (value = null); + prop.value = value; + })); + return properties; + } + function passDefines(pass) { + var defines = {}; + var program = getInvolvedProgram(pass.program); + program.defines.forEach((function(d) { + defines[d.name] = _types.enums2default[d.type]; + })); + return defines; + } + function parseTechniques(effectAsset) { + var techNum = effectAsset.techniques.length; + var techniques = new Array(techNum); + for (var j = 0; j < techNum; ++j) { + var tech = effectAsset.techniques[j]; + var techName = tech.name || j; + var passNum = tech.passes.length; + var passes = new Array(passNum); + for (var k = 0; k < passNum; ++k) { + var pass = tech.passes[k]; + var passName = pass.name || k; + var detailName = effectAsset.name + "-" + techName + "-" + passName; + var stage = pass.stage || "opaque"; + var properties = parseProperties(effectAsset, pass); + var defines = passDefines(pass); + var newPass = passes[k] = new _pass["default"](passName, detailName, pass.program, stage, properties, defines); + pass.rasterizerState && newPass.setCullMode(pass.rasterizerState.cullMode); + var blendState = pass.blendState && pass.blendState.targets[0]; + blendState && newPass.setBlend(blendState.blend, blendState.blendEq, blendState.blendSrc, blendState.blendDst, blendState.blendAlphaEq, blendState.blendSrcAlpha, blendState.blendDstAlpha, blendState.blendColor); + var depthStencilState = pass.depthStencilState; + if (depthStencilState) { + newPass.setDepth(depthStencilState.depthTest, depthStencilState.depthWrite, depthStencilState.depthFunc); + newPass.setStencilFront(depthStencilState.stencilTest, depthStencilState.stencilFuncFront, depthStencilState.stencilRefFront, depthStencilState.stencilMaskFront, depthStencilState.stencilFailOpFront, depthStencilState.stencilZFailOpFront, depthStencilState.stencilZPassOpFront, depthStencilState.stencilWriteMaskFront); + newPass.setStencilBack(depthStencilState.stencilTest, depthStencilState.stencilFuncBack, depthStencilState.stencilRefBack, depthStencilState.stencilMaskBack, depthStencilState.stencilFailOpBack, depthStencilState.stencilZFailOpBack, depthStencilState.stencilZPassOpBack, depthStencilState.stencilWriteMaskBack); + } + } + techniques[j] = new _technique["default"](techName, passes); + } + return techniques; + } + function parseEffect(effect) { + var techniques = parseTechniques(effect); + return new _effect["default"](effect.name, techniques, 0, effect); + } + false; + }), { + "../../../renderer/core/pass": 238, + "../../../renderer/core/technique": 240, + "../../../renderer/enums": 242, + "../../../renderer/types": 270, + "./effect": 79 + } ], + 78: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _murmurhash2_gc = _interopRequireDefault(require("../../../renderer/murmurhash2_gc")); + var _utils = _interopRequireDefault(require("./utils")); + var _effectBase = _interopRequireDefault(require("./effect-base")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + "value" in descriptor && (descriptor.writable = true); + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _createClass(Constructor, protoProps, staticProps) { + protoProps && _defineProperties(Constructor.prototype, protoProps); + staticProps && _defineProperties(Constructor, staticProps); + Object.defineProperty(Constructor, "prototype", { + writable: false + }); + return Constructor; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var gfx = cc.gfx; + var EffectVariant = (function(_EffectBase) { + _inheritsLoose(EffectVariant, _EffectBase); + function EffectVariant(effect) { + var _this; + _this = _EffectBase.call(this) || this; + _this._effect = void 0; + _this._passes = []; + _this._stagePasses = {}; + _this._hash = 0; + _this._effectDirtyCode = 0; + _this.init(effect); + return _this; + } + var _proto = EffectVariant.prototype; + _proto._onEffectChanged = function _onEffectChanged() {}; + _proto.init = function init(effect) { + effect instanceof EffectVariant && (effect = effect.effect); + this._effect = effect; + this._dirty = true; + if (effect) { + var passes = effect.passes; + var variantPasses = this._passes; + variantPasses.length = 0; + var stagePasses = this._stagePasses = {}; + for (var i = 0; i < passes.length; i++) { + var variant = variantPasses[i] = Object.setPrototypeOf({}, passes[i]); + variant._properties = Object.setPrototypeOf({}, passes[i]._properties); + variant._defines = Object.setPrototypeOf({}, passes[i]._defines); + stagePasses[variant._stage] || (stagePasses[variant._stage] = []); + stagePasses[variant._stage].push(variant); + } + } + }; + _proto.updateHash = function updateHash(hash) {}; + _proto.getHash = function getHash() { + var effect = this._effect; + if (!this._dirty && (!effect || this._effectDirtyCode === effect._dirtyCode)) return this._hash; + this._dirty = false; + var hash = ""; + hash += _utils["default"].serializePasses(this._passes); + if (effect) { + this._effectDirtyCode = effect._dirtyCode; + hash += _utils["default"].serializePasses(effect.passes); + } + this._hash = (0, _murmurhash2_gc["default"])(hash, 666); + this.updateHash(this._hash); + return this._hash; + }; + _createClass(EffectVariant, [ { + key: "effect", + get: function get() { + return this._effect; + } + }, { + key: "name", + get: function get() { + return this._effect && this._effect.name + " (variant)"; + } + }, { + key: "passes", + get: function get() { + return this._passes; + } + }, { + key: "stagePasses", + get: function get() { + return this._stagePasses; + } + } ]); + return EffectVariant; + })(_effectBase["default"]); + exports["default"] = EffectVariant; + cc.EffectVariant = EffectVariant; + module.exports = exports["default"]; + }), { + "../../../renderer/murmurhash2_gc": 265, + "./effect-base": 76, + "./utils": 83 + } ], + 79: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _effectBase = _interopRequireDefault(require("./effect-base")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + "value" in descriptor && (descriptor.writable = true); + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _createClass(Constructor, protoProps, staticProps) { + protoProps && _defineProperties(Constructor.prototype, protoProps); + staticProps && _defineProperties(Constructor, staticProps); + Object.defineProperty(Constructor, "prototype", { + writable: false + }); + return Constructor; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var Effect = (function(_EffectBase) { + _inheritsLoose(Effect, _EffectBase); + function Effect(name, techniques, techniqueIndex, asset) { + var _this; + _this = _EffectBase.call(this) || this; + _this._techniques = []; + _this._asset = null; + _this.init(name, techniques, techniqueIndex, asset, true); + return _this; + } + var _proto = Effect.prototype; + _proto.init = function init(name, techniques, techniqueIndex, asset, createNative) { + this._name = name; + this._techniques = techniques; + this._technique = techniques[techniqueIndex]; + this._asset = asset; + }; + _proto.switchTechnique = function switchTechnique(index) { + if (index >= this._techniques.length) { + cc.warn("Can not switch to technique with index [" + index + "]"); + return; + } + this._technique = this._techniques[index]; + }; + _proto.clear = function clear() { + this._techniques = []; + }; + _proto.clone = function clone() { + var techniques = []; + for (var i = 0; i < this._techniques.length; i++) techniques.push(this._techniques[i].clone()); + var techniqueIndex = this._techniques.indexOf(this._technique); + return new Effect(this._name, techniques, techniqueIndex, this._asset); + }; + _createClass(Effect, [ { + key: "technique", + get: function get() { + return this._technique; + } + }, { + key: "passes", + get: function get() { + return this._technique.passes; + } + } ]); + return Effect; + })(_effectBase["default"]); + exports["default"] = Effect; + cc.Effect = Effect; + module.exports = exports["default"]; + }), { + "./effect-base": 76 + } ], + 80: [ (function(require, module, exports) { + "use strict"; + require("./CCEffectAsset"); + require("./CCMaterial"); + require("./material-variant"); + }), { + "./CCEffectAsset": 74, + "./CCMaterial": 75, + "./material-variant": 82 + } ], + 81: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _utils = _interopRequireDefault(require("./utils")); + var _pool = _interopRequireDefault(require("../../utils/pool")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var MaterialPool = (function(_Pool) { + _inheritsLoose(MaterialPool, _Pool); + function MaterialPool() { + var _this; + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; + _this = _Pool.call.apply(_Pool, [ this ].concat(args)) || this; + _this.enabled = false; + _this._pool = {}; + return _this; + } + var _proto = MaterialPool.prototype; + _proto.get = function get(exampleMat, renderComponent) { + var pool = this._pool; + if (exampleMat instanceof cc.MaterialVariant) { + if (!exampleMat._owner) { + exampleMat._owner = renderComponent; + return exampleMat; + } + if (exampleMat._owner === renderComponent) return exampleMat; + exampleMat = exampleMat.material; + } + var instance; + if (this.enabled) { + var uuid = exampleMat.effectAsset._uuid; + if (pool[uuid]) { + var key = _utils["default"].serializeDefines(exampleMat._effect._defines) + _utils["default"].serializeTechniques(exampleMat._effect._techniques); + instance = pool[uuid][key] && pool[uuid][key].pop(); + } + } + if (instance) this.count--; else { + instance = new cc.MaterialVariant(exampleMat); + instance._name = exampleMat._name + " (Instance)"; + instance._uuid = exampleMat._uuid; + } + instance._owner = renderComponent; + return instance; + }; + _proto.put = function put(mat) { + if (!this.enabled || !mat._owner) return; + var pool = this._pool; + var uuid = mat.effectAsset._uuid; + pool[uuid] || (pool[uuid] = {}); + var key = _utils["default"].serializeDefines(mat._effect._defines) + _utils["default"].serializeTechniques(mat._effect._techniques); + pool[uuid][key] || (pool[uuid][key] = []); + if (this.count > this.maxSize) return; + this._clean(mat); + pool[uuid][key].push(mat); + this.count++; + }; + _proto.clear = function clear() { + this._pool = {}; + this.count = 0; + }; + _proto._clean = function _clean(mat) { + mat._owner = null; + }; + return MaterialPool; + })(_pool["default"]); + var materialPool = new MaterialPool(); + _pool["default"].register("material", materialPool); + var _default = materialPool; + exports["default"] = _default; + module.exports = exports["default"]; + }), { + "../../utils/pool": 207, + "./utils": 83 + } ], + 82: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _CCMaterial = _interopRequireDefault(require("./CCMaterial")); + var _effectVariant = _interopRequireDefault(require("./effect-variant")); + var _materialPool = _interopRequireDefault(require("./material-pool")); + var _dec, _class; + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + "value" in descriptor && (descriptor.writable = true); + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _createClass(Constructor, protoProps, staticProps) { + protoProps && _defineProperties(Constructor.prototype, protoProps); + staticProps && _defineProperties(Constructor, staticProps); + Object.defineProperty(Constructor, "prototype", { + writable: false + }); + return Constructor; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var ccclass = cc._decorator.ccclass; + var MaterialVariant = (_dec = ccclass("cc.MaterialVariant"), _dec(_class = (function(_Material) { + _inheritsLoose(MaterialVariant, _Material); + MaterialVariant.createWithBuiltin = function createWithBuiltin(materialName, owner) { + return MaterialVariant.create(_CCMaterial["default"].getBuiltinMaterial(materialName), owner); + }; + MaterialVariant.create = function create(material, owner) { + if (!material) return null; + return _materialPool["default"].get(material, owner); + }; + function MaterialVariant(material) { + var _this; + _this = _Material.call(this) || this; + _this._owner = null; + _this._material = null; + _this.init(material); + return _this; + } + var _proto = MaterialVariant.prototype; + _proto.init = function init(material) { + this._effect = new _effectVariant["default"](material.effect); + this._effectAsset = material._effectAsset; + this._material = material; + }; + _createClass(MaterialVariant, [ { + key: "uuid", + get: function get() { + return this._material._uuid; + } + }, { + key: "owner", + get: function get() { + return this._owner; + } + }, { + key: "material", + get: function get() { + return this._material; + } + } ]); + return MaterialVariant; + })(_CCMaterial["default"])) || _class); + exports["default"] = MaterialVariant; + cc.MaterialVariant = MaterialVariant; + module.exports = exports["default"]; + }), { + "./CCMaterial": 75, + "./effect-variant": 78, + "./material-pool": 81 + } ], + 83: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _enums = _interopRequireDefault(require("../../../renderer/enums")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function serializeDefines(defines) { + var str = ""; + for (var name in defines) str += name + defines[name]; + return str; + } + function serializePass(pass, excludeProperties) { + var str = pass._programName + pass._cullMode; + pass._blend && (str += pass._blendEq + pass._blendAlphaEq + pass._blendSrc + pass._blendDst + pass._blendSrcAlpha + pass._blendDstAlpha + pass._blendColor); + pass._depthTest && (str += pass._depthWrite + pass._depthFunc); + pass._stencilTest && (str += pass._stencilFuncFront + pass._stencilRefFront + pass._stencilMaskFront + pass._stencilFailOpFront + pass._stencilZFailOpFront + pass._stencilZPassOpFront + pass._stencilWriteMaskFront + pass._stencilFuncBack + pass._stencilRefBack + pass._stencilMaskBack + pass._stencilFailOpBack + pass._stencilZFailOpBack + pass._stencilZPassOpBack + pass._stencilWriteMaskBack); + excludeProperties || (str += serializeUniforms(pass._properties)); + str += serializeDefines(pass._defines); + return str; + } + function serializePasses(passes) { + var hashData = ""; + for (var i = 0; i < passes.length; i++) hashData += serializePass(passes[i]); + return hashData; + } + function serializeUniforms(uniforms) { + var hashData = ""; + for (var name in uniforms) { + var param = uniforms[name]; + var prop = param.value; + if (!prop) continue; + param.type === _enums["default"].PARAM_TEXTURE_2D || param.type === _enums["default"].PARAM_TEXTURE_CUBE ? hashData += prop._id + ";" : hashData += prop.toString() + ";"; + } + return hashData; + } + var _default = { + serializeDefines: serializeDefines, + serializePasses: serializePasses, + serializeUniforms: serializeUniforms + }; + exports["default"] = _default; + module.exports = exports["default"]; + }), { + "../../../renderer/enums": 242 + } ], + 84: [ (function(require, module, exports) { + "use strict"; + var Event; + true; + Event = require("../CCNode").EventType; + var TOP = 1; + var MID = 2; + var BOT = 4; + var LEFT = 8; + var CENTER = 16; + var RIGHT = 32; + var HORIZONTAL = LEFT | CENTER | RIGHT; + var VERTICAL = TOP | MID | BOT; + var AlignMode = cc.Enum({ + ONCE: 0, + ON_WINDOW_RESIZE: 1, + ALWAYS: 2 + }); + function getReadonlyNodeSize(parent) { + return parent instanceof cc.Scene ? cc.visibleRect : parent._contentSize; + } + function computeInverseTransForTarget(widgetNode, target, out_inverseTranslate, out_inverseScale) { + var scaleX = widgetNode._parent.scaleX; + var scaleY = widgetNode._parent.scaleY; + var translateX = 0; + var translateY = 0; + for (var node = widgetNode._parent; ;) { + translateX += node.x; + translateY += node.y; + node = node._parent; + if (!node) { + out_inverseTranslate.x = out_inverseTranslate.y = 0; + out_inverseScale.x = out_inverseScale.y = 1; + return; + } + if (node === target) break; + var sx = node.scaleX; + var sy = node.scaleY; + translateX *= sx; + translateY *= sy; + scaleX *= sx; + scaleY *= sy; + } + out_inverseScale.x = 0 !== scaleX ? 1 / scaleX : 1; + out_inverseScale.y = 0 !== scaleY ? 1 / scaleY : 1; + out_inverseTranslate.x = -translateX; + out_inverseTranslate.y = -translateY; + } + var tInverseTranslate = cc.Vec2.ZERO; + var tInverseScale = cc.Vec2.ONE; + function align(node, widget) { + var hasTarget = widget._target; + var target; + var inverseTranslate, inverseScale; + if (hasTarget) { + target = hasTarget; + inverseTranslate = tInverseTranslate; + inverseScale = tInverseScale; + computeInverseTransForTarget(node, target, inverseTranslate, inverseScale); + } else target = node._parent; + var targetSize = getReadonlyNodeSize(target); + var targetAnchor = target._anchorPoint; + var isRoot = (true, target instanceof cc.Scene); + var x = node.x, y = node.y; + var anchor = node._anchorPoint; + if (widget._alignFlags & HORIZONTAL) { + var localLeft, localRight, targetWidth = targetSize.width; + if (isRoot) { + localLeft = cc.visibleRect.left.x; + localRight = cc.visibleRect.right.x; + } else { + localLeft = -targetAnchor.x * targetWidth; + localRight = localLeft + targetWidth; + } + localLeft += widget._isAbsLeft ? widget._left : widget._left * targetWidth; + localRight -= widget._isAbsRight ? widget._right : widget._right * targetWidth; + if (hasTarget) { + localLeft += inverseTranslate.x; + localLeft *= inverseScale.x; + localRight += inverseTranslate.x; + localRight *= inverseScale.x; + } + var width, anchorX = anchor.x, scaleX = node.scaleX; + if (scaleX < 0) { + anchorX = 1 - anchorX; + scaleX = -scaleX; + } + if (widget.isStretchWidth) { + width = localRight - localLeft; + 0 !== scaleX && (node.width = width / scaleX); + x = localLeft + anchorX * width; + } else { + width = node.width * scaleX; + if (widget.isAlignHorizontalCenter) { + var localHorizontalCenter = widget._isAbsHorizontalCenter ? widget._horizontalCenter : widget._horizontalCenter * targetWidth; + var targetCenter = (.5 - targetAnchor.x) * targetSize.width; + if (hasTarget) { + localHorizontalCenter *= inverseScale.x; + targetCenter += inverseTranslate.x; + targetCenter *= inverseScale.x; + } + x = targetCenter + (anchorX - .5) * width + localHorizontalCenter; + } else x = widget.isAlignLeft ? localLeft + anchorX * width : localRight + (anchorX - 1) * width; + } + } + if (widget._alignFlags & VERTICAL) { + var localTop, localBottom, targetHeight = targetSize.height; + if (isRoot) { + localBottom = cc.visibleRect.bottom.y; + localTop = cc.visibleRect.top.y; + } else { + localBottom = -targetAnchor.y * targetHeight; + localTop = localBottom + targetHeight; + } + localBottom += widget._isAbsBottom ? widget._bottom : widget._bottom * targetHeight; + localTop -= widget._isAbsTop ? widget._top : widget._top * targetHeight; + if (hasTarget) { + localBottom += inverseTranslate.y; + localBottom *= inverseScale.y; + localTop += inverseTranslate.y; + localTop *= inverseScale.y; + } + var height, anchorY = anchor.y, scaleY = node.scaleY; + if (scaleY < 0) { + anchorY = 1 - anchorY; + scaleY = -scaleY; + } + if (widget.isStretchHeight) { + height = localTop - localBottom; + 0 !== scaleY && (node.height = height / scaleY); + y = localBottom + anchorY * height; + } else { + height = node.height * scaleY; + if (widget.isAlignVerticalCenter) { + var localVerticalCenter = widget._isAbsVerticalCenter ? widget._verticalCenter : widget._verticalCenter * targetHeight; + var targetMiddle = (.5 - targetAnchor.y) * targetSize.height; + if (hasTarget) { + localVerticalCenter *= inverseScale.y; + targetMiddle += inverseTranslate.y; + targetMiddle *= inverseScale.y; + } + y = targetMiddle + (anchorY - .5) * height + localVerticalCenter; + } else y = widget.isAlignBottom ? localBottom + anchorY * height : localTop + (anchorY - 1) * height; + } + } + node.setPosition(x, y); + } + function visitNode(node) { + var widget = node._widget; + if (widget) { + false; + align(node, widget); + true, widget.alignMode !== AlignMode.ALWAYS ? widgetManager.remove(widget) : activeWidgets.push(widget); + } + var children = node._children; + for (var i = 0; i < children.length; i++) { + var child = children[i]; + child._active && visitNode(child); + } + } + var animationState; + false; + function refreshScene() { + var AnimUtils; + var EditMode; + var nowPreviewing; + var component; + var animation; + var _component; + var _animation; + false; + var scene = cc.director.getScene(); + if (scene) { + widgetManager.isAligning = true; + if (widgetManager._nodesOrderDirty) { + activeWidgets.length = 0; + visitNode(scene); + widgetManager._nodesOrderDirty = false; + } else { + var i, widget, iterator = widgetManager._activeWidgetsIterator; + var AnimUtils; + var editingNode; + var node; + false; + for (iterator.i = 0; iterator.i < activeWidgets.length; ++iterator.i) { + widget = activeWidgets[iterator.i]; + align(widget.node, widget); + } + } + widgetManager.isAligning = false; + } + false; + } + var adjustWidgetToAllowMovingInEditor = false; + var adjustWidgetToAllowResizingInEditor = false; + var activeWidgets = []; + function updateAlignment(node) { + var parent = node._parent; + cc.Node.isNode(parent) && updateAlignment(parent); + var widget = node._widget || node.getComponent(cc.Widget); + widget && parent && align(node, widget); + } + var widgetManager = cc._widgetManager = module.exports = { + _AlignFlags: { + TOP: TOP, + MID: MID, + BOT: BOT, + LEFT: LEFT, + CENTER: CENTER, + RIGHT: RIGHT + }, + isAligning: false, + _nodesOrderDirty: false, + _activeWidgetsIterator: new cc.js.array.MutableForwardIterator(activeWidgets), + init: function init(director) { + director.on(cc.Director.EVENT_AFTER_UPDATE, refreshScene); + false; + var thisOnResized = this.onResized.bind(this); + cc.view.on("canvas-resize", thisOnResized); + window.addEventListener("orientationchange", thisOnResized); + }, + add: function add(widget) { + widget.node._widget = widget; + this._nodesOrderDirty = true; + false; + }, + remove: function remove(widget) { + widget.node._widget = null; + this._activeWidgetsIterator.remove(widget); + false; + }, + onResized: function onResized() { + var scene = cc.director.getScene(); + scene && this.refreshWidgetOnResized(scene); + }, + refreshWidgetOnResized: function refreshWidgetOnResized(node) { + var widget = cc.Node.isNode(node) && node.getComponent(cc.Widget); + widget && widget.enabled && widget.alignMode === AlignMode.ON_WINDOW_RESIZE && this.add(widget); + var children = node._children; + for (var i = 0; i < children.length; i++) { + var child = children[i]; + this.refreshWidgetOnResized(child); + } + }, + updateAlignment: updateAlignment, + AlignMode: AlignMode + }; + false; + }), { + "../CCNode": 24 + } ], + 85: [ (function(require, module, exports) { + "use strict"; + var _valueTypes = require("../value-types"); + var _geomUtils = require("../geom-utils"); + var AffineTrans = require("../utils/affine-transform"); + var renderer = require("../renderer/index"); + var RenderFlow = require("../renderer/render-flow"); + var game = require("../CCGame"); + var RendererCamera = null; + false; + RendererCamera = require("../../renderer/scene/camera"); + var _mat4_temp_1 = cc.mat4(); + var _mat4_temp_2 = cc.mat4(); + var _v3_temp_1 = cc.v3(); + var _v3_temp_2 = cc.v3(); + var _v3_temp_3 = cc.v3(); + var _cameras = []; + function updateMainCamera() { + for (var i = 0, minDepth = Number.MAX_VALUE; i < _cameras.length; i++) { + var camera = _cameras[i]; + if (camera._depth < minDepth) { + Camera.main = camera; + minDepth = camera._depth; + } + } + } + var _debugCamera = null; + function repositionDebugCamera() { + if (!_debugCamera) return; + var node = _debugCamera.getNode(); + var canvas = cc.game.canvas; + node.z = canvas.height / 1.1566; + node.x = canvas.width / 2; + node.y = canvas.height / 2; + } + var ClearFlags = cc.Enum({ + COLOR: 1, + DEPTH: 2, + STENCIL: 4 + }); + var StageFlags = cc.Enum({ + OPAQUE: 1, + TRANSPARENT: 2 + }); + var Camera = cc.Class({ + name: "cc.Camera", + extends: cc.Component, + ctor: function ctor() { + if (game.renderType !== game.RENDER_TYPE_CANVAS) { + var camera = new RendererCamera(); + camera.setStages([ "opaque" ]); + camera.dirty = true; + this._inited = false; + this._camera = camera; + } else this._inited = true; + }, + editor: false, + properties: { + _cullingMask: 4294967295, + _clearFlags: ClearFlags.DEPTH | ClearFlags.STENCIL, + _backgroundColor: cc.color(0, 0, 0, 255), + _depth: 0, + _zoomRatio: 1, + _targetTexture: null, + _fov: 60, + _orthoSize: 10, + _nearClip: 1, + _farClip: 4096, + _ortho: true, + _rect: cc.rect(0, 0, 1, 1), + _renderStages: 1, + _alignWithScreen: true, + zoomRatio: { + get: function get() { + return this._zoomRatio; + }, + set: function set(value) { + this._zoomRatio = value; + }, + tooltip: false + }, + fov: { + get: function get() { + return this._fov; + }, + set: function set(v) { + this._fov = v; + }, + tooltip: false + }, + orthoSize: { + get: function get() { + return this._orthoSize; + }, + set: function set(v) { + this._orthoSize = v; + }, + tooltip: false + }, + nearClip: { + get: function get() { + return this._nearClip; + }, + set: function set(v) { + this._nearClip = v; + this._updateClippingpPlanes(); + }, + tooltip: false + }, + farClip: { + get: function get() { + return this._farClip; + }, + set: function set(v) { + this._farClip = v; + this._updateClippingpPlanes(); + }, + tooltip: false + }, + ortho: { + get: function get() { + return this._ortho; + }, + set: function set(v) { + this._ortho = v; + this._updateProjection(); + }, + tooltip: false + }, + rect: { + get: function get() { + return this._rect; + }, + set: function set(v) { + this._rect = v; + this._updateRect(); + }, + tooltip: false + }, + cullingMask: { + get: function get() { + return this._cullingMask; + }, + set: function set(value) { + this._cullingMask = value; + this._updateCameraMask(); + }, + tooltip: false + }, + clearFlags: { + get: function get() { + return this._clearFlags; + }, + set: function set(value) { + this._clearFlags = value; + this._camera && this._camera.setClearFlags(value); + }, + tooltip: false + }, + backgroundColor: { + get: function get() { + return this._backgroundColor; + }, + set: function set(value) { + if (!this._backgroundColor.equals(value)) { + this._backgroundColor.set(value); + this._updateBackgroundColor(); + } + }, + tooltip: false + }, + depth: { + get: function get() { + return this._depth; + }, + set: function set(value) { + Camera.main === this ? this._depth < value && updateMainCamera() : Camera.main && value < Camera.main._depth && _cameras.includes(this) && (Camera.main = this); + this._depth = value; + this._camera && this._camera.setPriority(value); + }, + tooltip: false + }, + targetTexture: { + get: function get() { + return this._targetTexture; + }, + set: function set(value) { + this._targetTexture = value; + this._updateTargetTexture(); + }, + tooltip: false + }, + renderStages: { + get: function get() { + return this._renderStages; + }, + set: function set(val) { + this._renderStages = val; + this._updateStages(); + }, + tooltip: false + }, + alignWithScreen: { + get: function get() { + return this._alignWithScreen; + }, + set: function set(v) { + this._alignWithScreen = v; + } + }, + _is3D: { + get: function get() { + return this.node && this.node._is3DNode; + } + } + }, + statics: { + main: null, + cameras: _cameras, + ClearFlags: ClearFlags, + findCamera: function findCamera(node) { + for (var i = 0, l = _cameras.length; i < l; i++) { + var camera = _cameras[i]; + if (camera.containsNode(node)) return camera; + } + return null; + }, + _findRendererCamera: function _findRendererCamera(node) { + var cameras = renderer.scene._cameras; + for (var i = 0; i < cameras._count; i++) if (cameras._data[i]._cullingMask & node._cullingMask) return cameras._data[i]; + return null; + }, + _setupDebugCamera: function _setupDebugCamera() { + if (_debugCamera) return; + if (game.renderType === game.RENDER_TYPE_CANVAS) return; + var camera = new RendererCamera(); + _debugCamera = camera; + camera.setStages([ "opaque" ]); + camera.setFov(60 * Math.PI / 180); + camera.setNear(.1); + camera.setFar(4096); + camera.dirty = true; + camera.cullingMask = 1 << cc.Node.BuiltinGroupIndex.DEBUG; + camera.setPriority(cc.macro.MAX_ZINDEX); + camera.setClearFlags(0); + camera.setColor(0, 0, 0, 0); + var node = new cc.Node(); + camera.setNode(node); + repositionDebugCamera(); + cc.view.on("design-resolution-changed", repositionDebugCamera); + renderer.scene.addCamera(camera); + } + }, + _updateCameraMask: function _updateCameraMask() { + if (this._camera) { + var mask = this._cullingMask & ~(1 << cc.Node.BuiltinGroupIndex.DEBUG); + this._camera.cullingMask = mask; + } + }, + _updateBackgroundColor: function _updateBackgroundColor() { + if (!this._camera) return; + var color = this._backgroundColor; + this._camera.setColor(color.r / 255, color.g / 255, color.b / 255, color.a / 255); + }, + _updateTargetTexture: function _updateTargetTexture() { + if (!this._camera) return; + var texture = this._targetTexture; + this._camera.setFrameBuffer(texture ? texture._framebuffer : null); + }, + _updateClippingpPlanes: function _updateClippingpPlanes() { + if (!this._camera) return; + this._camera.setNear(this._nearClip); + this._camera.setFar(this._farClip); + }, + _updateProjection: function _updateProjection() { + if (!this._camera) return; + var type = this._ortho ? 1 : 0; + this._camera.setType(type); + }, + _updateRect: function _updateRect() { + if (!this._camera) return; + var rect = this._rect; + this._camera.setRect(rect.x, rect.y, rect.width, rect.height); + }, + _updateStages: function _updateStages() { + var flags = this._renderStages; + var stages = []; + flags & StageFlags.OPAQUE && stages.push("opaque"); + flags & StageFlags.TRANSPARENT && stages.push("transparent"); + this._camera.setStages(stages); + }, + _init: function _init() { + if (this._inited) return; + this._inited = true; + var camera = this._camera; + if (!camera) return; + camera.setNode(this.node); + camera.setClearFlags(this._clearFlags); + camera.setPriority(this._depth); + this._updateBackgroundColor(); + this._updateCameraMask(); + this._updateTargetTexture(); + this._updateClippingpPlanes(); + this._updateProjection(); + this._updateStages(); + this._updateRect(); + true; + this.beforeDraw(); + }, + __preload: function __preload() { + this._init(); + }, + onEnable: function onEnable() { + if (true, game.renderType !== game.RENDER_TYPE_CANVAS) { + cc.director.on(cc.Director.EVENT_BEFORE_DRAW, this.beforeDraw, this); + renderer.scene.addCamera(this._camera); + } + _cameras.push(this); + (!Camera.main || this._depth < Camera.main._depth) && (Camera.main = this); + }, + onDisable: function onDisable() { + if (true, game.renderType !== game.RENDER_TYPE_CANVAS) { + cc.director.off(cc.Director.EVENT_BEFORE_DRAW, this.beforeDraw, this); + renderer.scene.removeCamera(this._camera); + } + cc.js.array.fastRemove(_cameras, this); + if (Camera.main === this) { + Camera.main = null; + updateMainCamera(); + } + }, + getScreenToWorldMatrix2D: function getScreenToWorldMatrix2D(out) { + this.getWorldToScreenMatrix2D(out); + _valueTypes.Mat4.invert(out, out); + return out; + }, + getWorldToScreenMatrix2D: function getWorldToScreenMatrix2D(out) { + this.node.getWorldRT(_mat4_temp_1); + var zoomRatio = this.zoomRatio; + var _mat4_temp_1m = _mat4_temp_1.m; + _mat4_temp_1m[0] *= zoomRatio; + _mat4_temp_1m[1] *= zoomRatio; + _mat4_temp_1m[4] *= zoomRatio; + _mat4_temp_1m[5] *= zoomRatio; + var m12 = _mat4_temp_1m[12]; + var m13 = _mat4_temp_1m[13]; + var center = cc.visibleRect.center; + _mat4_temp_1m[12] = center.x - (_mat4_temp_1m[0] * m12 + _mat4_temp_1m[4] * m13); + _mat4_temp_1m[13] = center.y - (_mat4_temp_1m[1] * m12 + _mat4_temp_1m[5] * m13); + out !== _mat4_temp_1 && _valueTypes.Mat4.copy(out, _mat4_temp_1); + return out; + }, + getScreenToWorldPoint: function getScreenToWorldPoint(screenPosition, out) { + if (this.node.is3DNode) { + out = out || new cc.Vec3(); + this._camera.screenToWorld(out, screenPosition, cc.visibleRect.width, cc.visibleRect.height); + } else { + out = out || new cc.Vec2(); + this.getScreenToWorldMatrix2D(_mat4_temp_1); + _valueTypes.Vec2.transformMat4(out, screenPosition, _mat4_temp_1); + } + return out; + }, + getWorldToScreenPoint: function getWorldToScreenPoint(worldPosition, out) { + if (this.node.is3DNode) { + out = out || new cc.Vec3(); + this._camera.worldToScreen(out, worldPosition, cc.visibleRect.width, cc.visibleRect.height); + } else { + out = out || new cc.Vec2(); + this.getWorldToScreenMatrix2D(_mat4_temp_1); + _valueTypes.Vec2.transformMat4(out, worldPosition, _mat4_temp_1); + } + return out; + }, + getRay: function getRay(screenPos) { + if (!cc.geomUtils) return screenPos; + _valueTypes.Vec3.set(_v3_temp_3, screenPos.x, screenPos.y, 1); + this._camera.screenToWorld(_v3_temp_2, _v3_temp_3, cc.visibleRect.width, cc.visibleRect.height); + if (this.ortho) { + _valueTypes.Vec3.set(_v3_temp_3, screenPos.x, screenPos.y, -1); + this._camera.screenToWorld(_v3_temp_1, _v3_temp_3, cc.visibleRect.width, cc.visibleRect.height); + } else this.node.getWorldPosition(_v3_temp_1); + return _geomUtils.Ray.fromPoints(new _geomUtils.Ray(), _v3_temp_1, _v3_temp_2); + }, + containsNode: function containsNode(node) { + return (node._cullingMask & this.cullingMask) > 0; + }, + render: function render(rootNode) { + rootNode = rootNode || cc.director.getScene(); + if (!rootNode) return null; + this.node.getWorldMatrix(_mat4_temp_1); + this.beforeDraw(); + RenderFlow.renderCamera(this._camera, rootNode); + }, + _onAlignWithScreen: function _onAlignWithScreen() { + var height = cc.game.canvas.height / cc.view._scaleY; + var targetTexture = this._targetTexture; + if (targetTexture) { + false; + height = cc.visibleRect.height; + } + var fov = this._fov * cc.macro.RAD; + this.node.z = height / (2 * Math.tan(fov / 2)); + fov = 2 * Math.atan(Math.tan(fov / 2) / this.zoomRatio); + this._camera.setFov(fov); + this._camera.setOrthoHeight(height / 2 / this.zoomRatio); + this.node.setRotation(0, 0, 0, 1); + }, + beforeDraw: function beforeDraw() { + if (!this._camera) return; + if (this._alignWithScreen) this._onAlignWithScreen(); else { + var fov = this._fov * cc.macro.RAD; + fov = 2 * Math.atan(Math.tan(fov / 2) / this.zoomRatio); + this._camera.setFov(fov); + this._camera.setOrthoHeight(this._orthoSize / this.zoomRatio); + } + this._camera.dirty = true; + } + }); + cc.js.mixin(Camera.prototype, { + getNodeToCameraTransform: function getNodeToCameraTransform(node) { + var out = AffineTrans.identity(); + node.getWorldMatrix(_mat4_temp_2); + if (this.containsNode(node)) { + this.getWorldToCameraMatrix(_mat4_temp_1); + _valueTypes.Mat4.mul(_mat4_temp_2, _mat4_temp_2, _mat4_temp_1); + } + AffineTrans.fromMat4(out, _mat4_temp_2); + return out; + }, + getCameraToWorldPoint: function getCameraToWorldPoint(point, out) { + return this.getScreenToWorldPoint(point, out); + }, + getWorldToCameraPoint: function getWorldToCameraPoint(point, out) { + return this.getWorldToScreenPoint(point, out); + }, + getCameraToWorldMatrix: function getCameraToWorldMatrix(out) { + return this.getScreenToWorldMatrix2D(out); + }, + getWorldToCameraMatrix: function getWorldToCameraMatrix(out) { + return this.getWorldToScreenMatrix2D(out); + } + }); + module.exports = cc.Camera = Camera; + }), { + "../../renderer/scene/camera": 267, + "../CCGame": 23, + "../geom-utils": void 0, + "../renderer/index": 152, + "../renderer/render-flow": 153, + "../utils/affine-transform": 196, + "../value-types": 220 + } ], + 86: [ (function(require, module, exports) { + "use strict"; + require("./platform/CCClass"); + var Flags = require("./platform/CCObject").Flags; + var jsArray = require("./platform/js").array; + var IsStartCalled = Flags.IsStartCalled; + var IsOnEnableCalled = Flags.IsOnEnableCalled; + var IsEditorOnEnableCalled = Flags.IsEditorOnEnableCalled; + var callerFunctor = false; + var callOnEnableInTryCatch = false; + var callOnDisableInTryCatch = false; + function sortedIndex(array, comp) { + var order = comp.constructor._executionOrder; + var id = comp._id; + for (var l = 0, h = array.length - 1, m = h >>> 1; l <= h; m = l + h >>> 1) { + var test = array[m]; + var testOrder = test.constructor._executionOrder; + if (testOrder > order) h = m - 1; else if (testOrder < order) l = m + 1; else { + var testId = test._id; + if (testId > id) h = m - 1; else { + if (!(testId < id)) return m; + l = m + 1; + } + } + } + return ~l; + } + function stableRemoveInactive(iterator, flagToClear) { + var array = iterator.array; + var next = iterator.i + 1; + while (next < array.length) { + var comp = array[next]; + if (comp._enabled && comp.node._activeInHierarchy) ++next; else { + iterator.removeAt(next); + flagToClear && (comp._objFlags &= ~flagToClear); + } + } + } + var LifeCycleInvoker = cc.Class({ + __ctor__: function __ctor__(invokeFunc) { + var Iterator = jsArray.MutableForwardIterator; + this._zero = new Iterator([]); + this._neg = new Iterator([]); + this._pos = new Iterator([]); + false; + this._invoke = invokeFunc; + }, + statics: { + stableRemoveInactive: stableRemoveInactive + }, + add: null, + remove: null, + invoke: null + }); + function compareOrder(a, b) { + return a.constructor._executionOrder - b.constructor._executionOrder; + } + var OneOffInvoker = cc.Class({ + extends: LifeCycleInvoker, + add: function add(comp) { + var order = comp.constructor._executionOrder; + (0 === order ? this._zero : order < 0 ? this._neg : this._pos).array.push(comp); + }, + remove: function remove(comp) { + var order = comp.constructor._executionOrder; + (0 === order ? this._zero : order < 0 ? this._neg : this._pos).fastRemove(comp); + }, + cancelInactive: function cancelInactive(flagToClear) { + stableRemoveInactive(this._zero, flagToClear); + stableRemoveInactive(this._neg, flagToClear); + stableRemoveInactive(this._pos, flagToClear); + }, + invoke: function invoke() { + var compsNeg = this._neg; + if (compsNeg.array.length > 0) { + compsNeg.array.sort(compareOrder); + this._invoke(compsNeg); + compsNeg.array.length = 0; + } + this._invoke(this._zero); + this._zero.array.length = 0; + var compsPos = this._pos; + if (compsPos.array.length > 0) { + compsPos.array.sort(compareOrder); + this._invoke(compsPos); + compsPos.array.length = 0; + } + } + }); + var ReusableInvoker = cc.Class({ + extends: LifeCycleInvoker, + add: function add(comp) { + var order = comp.constructor._executionOrder; + if (0 === order) this._zero.array.push(comp); else { + var array = order < 0 ? this._neg.array : this._pos.array; + var i = sortedIndex(array, comp); + i < 0 && array.splice(~i, 0, comp); + } + }, + remove: function remove(comp) { + var order = comp.constructor._executionOrder; + if (0 === order) this._zero.fastRemove(comp); else { + var iterator = order < 0 ? this._neg : this._pos; + var i = sortedIndex(iterator.array, comp); + i >= 0 && iterator.removeAt(i); + } + }, + invoke: function invoke(dt) { + this._neg.array.length > 0 && this._invoke(this._neg, dt); + this._invoke(this._zero, dt); + this._pos.array.length > 0 && this._invoke(this._pos, dt); + } + }); + function enableInEditor(comp) { + if (!(comp._objFlags & IsEditorOnEnableCalled)) { + cc.engine.emit("component-enabled", comp.uuid); + comp._objFlags |= IsEditorOnEnableCalled; + } + } + function createInvokeImpl(indiePath, useDt, ensureFlag, fastPath) { + true; + var body = "var a=it.array;for(it.i=0;it.i= 0) { + jsArray.fastRemoveAt(this._deferredComps, index); + return; + } + !comp.start || comp._objFlags & IsStartCalled || this.startInvoker.remove(comp); + comp.update && this.updateInvoker.remove(comp); + comp.lateUpdate && this.lateUpdateInvoker.remove(comp); + }, + enableComp: function(comp, invoker) { + if (!(comp._objFlags & IsOnEnableCalled)) { + if (comp.onEnable) { + if (invoker) { + invoker.add(comp); + return; + } + comp.onEnable(); + var deactivatedDuringOnEnable = !comp.node._activeInHierarchy; + if (deactivatedDuringOnEnable) return; + } + this._onEnabled(comp); + } + }, + disableComp: function(comp) { + if (comp._objFlags & IsOnEnableCalled) { + comp.onDisable && comp.onDisable(); + this._onDisabled(comp); + } + }, + _scheduleImmediate: function _scheduleImmediate(comp) { + "function" !== typeof comp.start || comp._objFlags & IsStartCalled || this.startInvoker.add(comp); + "function" === typeof comp.update && this.updateInvoker.add(comp); + "function" === typeof comp.lateUpdate && this.lateUpdateInvoker.add(comp); + }, + _deferredSchedule: function _deferredSchedule() { + var comps = this._deferredComps; + for (var i = 0, len = comps.length; i < len; i++) this._scheduleImmediate(comps[i]); + comps.length = 0; + }, + _startForNewComps: function _startForNewComps() { + if (this._deferredComps.length > 0) { + this._deferredSchedule(); + this.startInvoker.invoke(); + } + }, + startPhase: function startPhase() { + this._updating = true; + this.startInvoker.invoke(); + this._startForNewComps(); + }, + updatePhase: function updatePhase(dt) { + this.updateInvoker.invoke(dt); + }, + lateUpdatePhase: function lateUpdatePhase(dt) { + this.lateUpdateInvoker.invoke(dt); + this._updating = false; + this._startForNewComps(); + } + }); + module.exports = ComponentScheduler; + }), { + "./platform/CCClass": 121, + "./platform/CCObject": 127, + "./platform/js": 142, + "./utils/misc": 205 + } ], + 87: [ (function(require, module, exports) { + "use strict"; + var AnimationAnimator = require("../../animation/animation-animator"); + var AnimationClip = require("../../animation/animation-clip"); + var EventTarget = require("../event/event-target"); + var js = require("../platform/js"); + var equalClips = function(clip1, clip2) { + return clip1 === clip2; + }; + var EventType = cc.Enum({ + PLAY: "play", + STOP: "stop", + PAUSE: "pause", + RESUME: "resume", + LASTFRAME: "lastframe", + FINISHED: "finished" + }); + var Animation = cc.Class({ + name: "cc.Animation", + extends: require("./CCComponent"), + mixins: [ EventTarget ], + editor: false, + statics: { + EventType: EventType + }, + ctor: function ctor() { + cc.EventTarget.call(this); + this._animator = null; + this._nameToState = js.createMap(true); + this._didInit = false; + this._currentClip = null; + }, + properties: { + _defaultClip: { + default: null, + type: AnimationClip + }, + defaultClip: { + type: AnimationClip, + get: function get() { + return this._defaultClip; + }, + set: function set(value) { + true; + return; + var contain; + }, + tooltip: false + }, + currentClip: { + get: function get() { + return this._currentClip; + }, + set: function set(value) { + this._currentClip = value; + }, + type: AnimationClip, + visible: false + }, + _writableClips: { + get: function get() { + return this._clips; + }, + set: function set(val) { + this._didInit = false; + this._clips = val; + this._init(); + }, + type: [ AnimationClip ] + }, + _clips: { + default: [], + type: [ AnimationClip ], + tooltip: false, + visible: true + }, + playOnLoad: { + default: false, + tooltip: false + } + }, + start: function start() { + if ((true, this.playOnLoad) && this._defaultClip) { + var isPlaying = this._animator && this._animator.isPlaying; + if (!isPlaying) { + var state = this.getAnimationState(this._defaultClip.name); + this._animator.playState(state); + } + } + }, + onEnable: function onEnable() { + this._animator && this._animator.resume(); + }, + onDisable: function onDisable() { + this._animator && this._animator.pause(); + }, + onDestroy: function onDestroy() { + this.stop(); + }, + getClips: function getClips() { + return this._clips; + }, + play: function play(name, startTime) { + var state = this.playAdditive(name, startTime); + this._animator.stopStatesExcept(state); + return state; + }, + playAdditive: function playAdditive(name, startTime) { + this._init(); + var state = this.getAnimationState(name || this._defaultClip && this._defaultClip.name); + if (state) { + this.enabled = true; + var animator = this._animator; + if (animator.isPlaying && state.isPlaying) if (state.isPaused) animator.resumeState(state); else { + animator.stopState(state); + animator.playState(state, startTime); + } else animator.playState(state, startTime); + this.enabledInHierarchy || animator.pause(); + this.currentClip = state.clip; + } + return state; + }, + stop: function stop(name) { + if (!this._didInit) return; + if (name) { + var state = this._nameToState[name]; + state && this._animator.stopState(state); + } else this._animator.stop(); + }, + pause: function pause(name) { + if (!this._didInit) return; + if (name) { + var state = this._nameToState[name]; + state && this._animator.pauseState(state); + } else this.enabled = false; + }, + resume: function resume(name) { + if (!this._didInit) return; + if (name) { + var state = this.getAnimationState(name); + state && this._animator.resumeState(state); + } else this.enabled = true; + }, + setCurrentTime: function setCurrentTime(time, name) { + this._init(); + if (name) { + var state = this.getAnimationState(name); + state && this._animator.setStateTime(state, time); + } else this._animator.setStateTime(time); + }, + getAnimationState: function getAnimationState(name) { + this._init(); + var state = this._nameToState[name]; + false; + state && !state.curveLoaded && this._animator._reloadClip(state); + return state || null; + }, + addClip: function addClip(clip, newName) { + if (!clip) { + cc.warnID(3900); + return; + } + this._init(); + cc.js.array.contains(this._clips, clip) || this._clips.push(clip); + newName = newName || clip.name; + var oldState = this._nameToState[newName]; + if (oldState) { + if (oldState.clip === clip) return oldState; + var index = this._clips.indexOf(oldState.clip); + -1 !== index && this._clips.splice(index, 1); + } + var newState = new cc.AnimationState(clip, newName); + this._nameToState[newName] = newState; + return newState; + }, + removeClip: function removeClip(clip, force) { + if (!clip) { + cc.warnID(3901); + return; + } + this._init(); + var state; + for (var name in this._nameToState) { + state = this._nameToState[name]; + if (equalClips(state.clip, clip)) break; + } + if (clip === this._defaultClip) { + if (!force) { + true; + cc.warnID(3902); + return; + } + this._defaultClip = null; + } + if (state && state.isPlaying) { + if (!force) { + true; + cc.warnID(3903); + return; + } + this.stop(state.name); + } + this._clips = this._clips.filter((function(item) { + return !equalClips(item, clip); + })); + state && delete this._nameToState[state.name]; + }, + sample: function sample(name) { + this._init(); + if (name) { + var state = this.getAnimationState(name); + state && state.sample(); + } else this._animator.sample(); + }, + on: function on(type, callback, target, useCapture) { + this._init(); + var ret = this._EventTargetOn(type, callback, target, useCapture); + if ("lastframe" === type) { + var states = this._nameToState; + for (var name in states) states[name]._lastframeEventOn = true; + } + return ret; + }, + off: function off(type, callback, target, useCapture) { + this._init(); + if ("lastframe" === type) { + var states = this._nameToState; + for (var name in states) states[name]._lastframeEventOn = false; + } + this._EventTargetOff(type, callback, target, useCapture); + }, + _init: function _init() { + if (this._didInit) return; + this._didInit = true; + this._animator = new AnimationAnimator(this.node, this); + this._createStates(); + }, + _createStates: function _createStates() { + this._nameToState = js.createMap(true); + var state = null; + var defaultClipState = false; + for (var i = 0; i < this._clips.length; ++i) { + var clip = this._clips[i]; + if (clip) { + state = new cc.AnimationState(clip); + false; + this._nameToState[state.name] = state; + equalClips(this._defaultClip, clip) && (defaultClipState = state); + } + } + if (this._defaultClip && !defaultClipState) { + state = new cc.AnimationState(this._defaultClip); + false; + this._nameToState[state.name] = state; + } + } + }); + Animation.prototype._EventTargetOn = EventTarget.prototype.on; + Animation.prototype._EventTargetOff = EventTarget.prototype.off; + cc.Animation = module.exports = Animation; + }), { + "../../animation/animation-animator": 10, + "../../animation/animation-clip": 11, + "../event/event-target": 114, + "../platform/js": 142, + "./CCComponent": 91 + } ], + 88: [ (function(require, module, exports) { + "use strict"; + var BlockEvents = [ "touchstart", "touchmove", "touchend", "mousedown", "mousemove", "mouseup", "mouseenter", "mouseleave", "mousewheel" ]; + function stopPropagation(event) { + event.stopPropagation(); + } + var BlockInputEvents = cc.Class({ + name: "cc.BlockInputEvents", + extends: require("./CCComponent"), + editor: { + menu: "i18n:MAIN_MENU.component.ui/Block Input Events", + inspector: "packages://inspector/inspectors/comps/block-input-events.js", + help: "i18n:COMPONENT.help_url.block_input_events" + }, + onEnable: function onEnable() { + for (var i = 0; i < BlockEvents.length; i++) this.node.on(BlockEvents[i], stopPropagation, this); + }, + onDisable: function onDisable() { + for (var i = 0; i < BlockEvents.length; i++) this.node.off(BlockEvents[i], stopPropagation, this); + } + }); + cc.BlockInputEvents = module.exports = BlockInputEvents; + }), { + "./CCComponent": 91 + } ], + 89: [ (function(require, module, exports) { + "use strict"; + var Component = require("./CCComponent"); + var GraySpriteState = require("../utils/gray-sprite-state"); + var Transition = cc.Enum({ + NONE: 0, + COLOR: 1, + SPRITE: 2, + SCALE: 3 + }); + var State = cc.Enum({ + NORMAL: 0, + HOVER: 1, + PRESSED: 2, + DISABLED: 3 + }); + var Button = cc.Class({ + name: "cc.Button", + extends: Component, + mixins: [ GraySpriteState ], + ctor: function ctor() { + this._pressed = false; + this._hovered = false; + this._fromColor = null; + this._toColor = null; + this._time = 0; + this._transitionFinished = true; + this._fromScale = cc.Vec2.ZERO; + this._toScale = cc.Vec2.ZERO; + this._originalScale = null; + this._graySpriteMaterial = null; + this._spriteMaterial = null; + this._sprite = null; + }, + editor: false, + properties: { + interactable: { + default: true, + tooltip: false, + notify: function notify() { + this._updateState(); + this.interactable || this._resetState(); + }, + animatable: false + }, + _resizeToTarget: { + animatable: false, + set: function set(value) { + value && this._resizeNodeToTargetNode(); + } + }, + enableAutoGrayEffect: { + default: false, + tooltip: false, + notify: function notify() { + this._updateDisabledState(true); + } + }, + transition: { + default: Transition.NONE, + tooltip: false, + type: Transition, + animatable: false, + notify: function notify(oldValue) { + this._updateTransition(oldValue); + }, + formerlySerializedAs: "transition" + }, + normalColor: { + default: cc.Color.WHITE, + displayName: "Normal", + tooltip: false, + notify: function notify() { + this.transition === Transition.Color && this._getButtonState() === State.NORMAL && (this._getTarget().opacity = this.normalColor.a); + this._updateState(); + } + }, + pressedColor: { + default: cc.color(211, 211, 211), + displayName: "Pressed", + tooltip: false, + notify: function notify() { + this.transition === Transition.Color && this._getButtonState() === State.PRESSED && (this._getTarget().opacity = this.pressedColor.a); + this._updateState(); + }, + formerlySerializedAs: "pressedColor" + }, + hoverColor: { + default: cc.Color.WHITE, + displayName: "Hover", + tooltip: false, + notify: function notify() { + this.transition === Transition.Color && this._getButtonState() === State.HOVER && (this._getTarget().opacity = this.hoverColor.a); + this._updateState(); + }, + formerlySerializedAs: "hoverColor" + }, + disabledColor: { + default: cc.color(124, 124, 124), + displayName: "Disabled", + tooltip: false, + notify: function notify() { + this.transition === Transition.Color && this._getButtonState() === State.DISABLED && (this._getTarget().opacity = this.disabledColor.a); + this._updateState(); + } + }, + duration: { + default: .1, + range: [ 0, 10 ], + tooltip: false + }, + zoomScale: { + default: 1.2, + tooltip: false + }, + normalSprite: { + default: null, + type: cc.SpriteFrame, + displayName: "Normal", + tooltip: false, + notify: function notify() { + this._updateState(); + } + }, + pressedSprite: { + default: null, + type: cc.SpriteFrame, + displayName: "Pressed", + tooltip: false, + formerlySerializedAs: "pressedSprite", + notify: function notify() { + this._updateState(); + } + }, + hoverSprite: { + default: null, + type: cc.SpriteFrame, + displayName: "Hover", + tooltip: false, + formerlySerializedAs: "hoverSprite", + notify: function notify() { + this._updateState(); + } + }, + disabledSprite: { + default: null, + type: cc.SpriteFrame, + displayName: "Disabled", + tooltip: false, + notify: function notify() { + this._updateState(); + } + }, + target: { + default: null, + type: cc.Node, + tooltip: false, + notify: function notify(oldValue) { + this._applyTarget(); + oldValue && this.target !== oldValue && this._unregisterTargetEvent(oldValue); + } + }, + clickEvents: { + default: [], + type: cc.Component.EventHandler, + tooltip: false + } + }, + statics: { + Transition: Transition + }, + __preload: function __preload() { + this._applyTarget(); + this._resetState(); + }, + _resetState: function _resetState() { + this._pressed = false; + this._hovered = false; + var target = this._getTarget(); + var transition = this.transition; + var originalScale = this._originalScale; + transition === Transition.COLOR && this.interactable ? this._setTargetColor(this.normalColor) : transition === Transition.SCALE && originalScale && target.setScale(originalScale.x, originalScale.y); + this._transitionFinished = true; + }, + onEnable: function onEnable() { + this.normalSprite && this.normalSprite.ensureLoadTexture(); + this.hoverSprite && this.hoverSprite.ensureLoadTexture(); + this.pressedSprite && this.pressedSprite.ensureLoadTexture(); + this.disabledSprite && this.disabledSprite.ensureLoadTexture(); + true; + this._registerNodeEvent(); + this._updateState(); + }, + onDisable: function onDisable() { + this._resetState(); + true; + this._unregisterNodeEvent(); + }, + _getTarget: function _getTarget() { + return this.target ? this.target : this.node; + }, + _onTargetSpriteFrameChanged: function _onTargetSpriteFrameChanged(comp) { + this.transition === Transition.SPRITE && this._setCurrentStateSprite(comp.spriteFrame); + }, + _onTargetColorChanged: function _onTargetColorChanged(color) { + this.transition === Transition.COLOR && this._setCurrentStateColor(color); + }, + _onTargetScaleChanged: function _onTargetScaleChanged() { + var target = this._getTarget(); + if (this._originalScale && (this.transition !== Transition.SCALE || this._transitionFinished)) { + this._originalScale.x = target.scaleX; + this._originalScale.y = target.scaleY; + } + }, + _setTargetColor: function _setTargetColor(color) { + var target = this._getTarget(); + var cloneColor = color.clone(); + target.opacity = cloneColor.a; + cloneColor.a = 255; + target.color = cloneColor; + }, + _getStateColor: function _getStateColor(state) { + switch (state) { + case State.NORMAL: + return this.normalColor; + + case State.HOVER: + return this.hoverColor; + + case State.PRESSED: + return this.pressedColor; + + case State.DISABLED: + return this.disabledColor; + } + }, + _getStateSprite: function _getStateSprite(state) { + switch (state) { + case State.NORMAL: + return this.normalSprite; + + case State.HOVER: + return this.hoverSprite; + + case State.PRESSED: + return this.pressedSprite; + + case State.DISABLED: + return this.disabledSprite; + } + }, + _setCurrentStateColor: function _setCurrentStateColor(color) { + switch (this._getButtonState()) { + case State.NORMAL: + this.normalColor = color; + break; + + case State.HOVER: + this.hoverColor = color; + break; + + case State.PRESSED: + this.pressedColor = color; + break; + + case State.DISABLED: + this.disabledColor = color; + } + }, + _setCurrentStateSprite: function _setCurrentStateSprite(spriteFrame) { + switch (this._getButtonState()) { + case State.NORMAL: + this.normalSprite = spriteFrame; + break; + + case State.HOVER: + this.hoverSprite = spriteFrame; + break; + + case State.PRESSED: + this.pressedSprite = spriteFrame; + break; + + case State.DISABLED: + this.disabledSprite = spriteFrame; + } + }, + update: function update(dt) { + var target = this._getTarget(); + if (this._transitionFinished) return; + if (this.transition !== Transition.COLOR && this.transition !== Transition.SCALE) return; + this.time += dt; + var ratio = 1; + this.duration > 0 && (ratio = this.time / this.duration); + ratio >= 1 && (ratio = 1); + if (this.transition === Transition.COLOR) { + var color = this._fromColor.lerp(this._toColor, ratio); + this._setTargetColor(color); + } else this.transition === Transition.SCALE && this._originalScale && (target.scale = this._fromScale.lerp(this._toScale, ratio)); + 1 === ratio && (this._transitionFinished = true); + }, + _registerNodeEvent: function _registerNodeEvent() { + this.node.on(cc.Node.EventType.TOUCH_START, this._onTouchBegan, this); + this.node.on(cc.Node.EventType.TOUCH_MOVE, this._onTouchMove, this); + this.node.on(cc.Node.EventType.TOUCH_END, this._onTouchEnded, this); + this.node.on(cc.Node.EventType.TOUCH_CANCEL, this._onTouchCancel, this); + this.node.on(cc.Node.EventType.MOUSE_ENTER, this._onMouseMoveIn, this); + this.node.on(cc.Node.EventType.MOUSE_LEAVE, this._onMouseMoveOut, this); + }, + _unregisterNodeEvent: function _unregisterNodeEvent() { + this.node.off(cc.Node.EventType.TOUCH_START, this._onTouchBegan, this); + this.node.off(cc.Node.EventType.TOUCH_MOVE, this._onTouchMove, this); + this.node.off(cc.Node.EventType.TOUCH_END, this._onTouchEnded, this); + this.node.off(cc.Node.EventType.TOUCH_CANCEL, this._onTouchCancel, this); + this.node.off(cc.Node.EventType.MOUSE_ENTER, this._onMouseMoveIn, this); + this.node.off(cc.Node.EventType.MOUSE_LEAVE, this._onMouseMoveOut, this); + }, + _registerTargetEvent: function _registerTargetEvent(target) { + false; + target.on(cc.Node.EventType.SCALE_CHANGED, this._onTargetScaleChanged, this); + }, + _unregisterTargetEvent: function _unregisterTargetEvent(target) { + false; + target.off(cc.Node.EventType.SCALE_CHANGED, this._onTargetScaleChanged, this); + }, + _getTargetSprite: function _getTargetSprite(target) { + var sprite = null; + target && (sprite = target.getComponent(cc.Sprite)); + return sprite; + }, + _applyTarget: function _applyTarget() { + var target = this._getTarget(); + this._sprite = this._getTargetSprite(target); + this._originalScale || (this._originalScale = cc.Vec2.ZERO); + this._originalScale.x = target.scaleX; + this._originalScale.y = target.scaleY; + this._registerTargetEvent(target); + }, + _onTouchBegan: function _onTouchBegan(event) { + if (!this.interactable || !this.enabledInHierarchy) return; + this._pressed = true; + this._updateState(); + event.stopPropagation(); + }, + _onTouchMove: function _onTouchMove(event) { + if (!this.interactable || !this.enabledInHierarchy || !this._pressed) return; + var touch = event.touch; + var hit = this.node._hitTest(touch.getLocation()); + var target = this._getTarget(); + var originalScale = this._originalScale; + if (this.transition === Transition.SCALE && originalScale) if (hit) { + this._fromScale.x = originalScale.x; + this._fromScale.y = originalScale.y; + this._toScale.x = originalScale.x * this.zoomScale; + this._toScale.y = originalScale.y * this.zoomScale; + this._transitionFinished = false; + } else { + this.time = 0; + this._transitionFinished = true; + target.setScale(originalScale.x, originalScale.y); + } else { + var state; + state = hit ? State.PRESSED : State.NORMAL; + this._applyTransition(state); + } + event.stopPropagation(); + }, + _onTouchEnded: function _onTouchEnded(event) { + if (!this.interactable || !this.enabledInHierarchy) return; + if (this._pressed) { + cc.Component.EventHandler.emitEvents(this.clickEvents, event); + this.node.emit("click", this); + } + this._pressed = false; + this._updateState(); + event.stopPropagation(); + }, + _onTouchCancel: function _onTouchCancel() { + if (!this.interactable || !this.enabledInHierarchy) return; + this._pressed = false; + this._updateState(); + }, + _onMouseMoveIn: function _onMouseMoveIn() { + if (this._pressed || !this.interactable || !this.enabledInHierarchy) return; + if (this.transition === Transition.SPRITE && !this.hoverSprite) return; + if (!this._hovered) { + this._hovered = true; + this._updateState(); + } + }, + _onMouseMoveOut: function _onMouseMoveOut() { + if (this._hovered) { + this._hovered = false; + this._updateState(); + } + }, + _updateState: function _updateState() { + var state = this._getButtonState(); + this._applyTransition(state); + this._updateDisabledState(); + }, + _getButtonState: function _getButtonState() { + var state; + state = this.interactable ? this._pressed ? State.PRESSED : this._hovered ? State.HOVER : State.NORMAL : State.DISABLED; + return state; + }, + _updateColorTransitionImmediately: function _updateColorTransitionImmediately(state) { + var color = this._getStateColor(state); + this._setTargetColor(color); + this._fromColor = color.clone(); + this._toColor = color; + }, + _updateColorTransition: function _updateColorTransition(state) { + if (false, state === State.DISABLED) this._updateColorTransitionImmediately(state); else { + var target = this._getTarget(); + var color = this._getStateColor(state); + this._fromColor = target.color.clone(); + this._toColor = color; + this.time = 0; + this._transitionFinished = false; + } + }, + _updateSpriteTransition: function _updateSpriteTransition(state) { + var sprite = this._getStateSprite(state); + this._sprite && sprite && (this._sprite.spriteFrame = sprite); + }, + _updateScaleTransition: function _updateScaleTransition(state) { + state === State.PRESSED ? this._zoomUp() : this._zoomBack(); + }, + _zoomUp: function _zoomUp() { + if (!this._originalScale) return; + this._fromScale.x = this._originalScale.x; + this._fromScale.y = this._originalScale.y; + this._toScale.x = this._originalScale.x * this.zoomScale; + this._toScale.y = this._originalScale.y * this.zoomScale; + this.time = 0; + this._transitionFinished = false; + }, + _zoomBack: function _zoomBack() { + if (!this._originalScale) return; + var target = this._getTarget(); + this._fromScale.x = target.scaleX; + this._fromScale.y = target.scaleY; + this._toScale.x = this._originalScale.x; + this._toScale.y = this._originalScale.y; + this.time = 0; + this._transitionFinished = false; + }, + _updateTransition: function _updateTransition(oldTransition) { + oldTransition === Transition.COLOR ? this._updateColorTransitionImmediately(State.NORMAL) : oldTransition === Transition.SPRITE && this._updateSpriteTransition(State.NORMAL); + this._updateState(); + }, + _applyTransition: function _applyTransition(state) { + var transition = this.transition; + transition === Transition.COLOR ? this._updateColorTransition(state) : transition === Transition.SPRITE ? this._updateSpriteTransition(state) : transition === Transition.SCALE && this._updateScaleTransition(state); + }, + _resizeNodeToTargetNode: false, + _updateDisabledState: function _updateDisabledState(force) { + if (!this._sprite) return; + if (this.enableAutoGrayEffect || force) { + var useGrayMaterial = false; + this.transition === Transition.SPRITE && this.disabledSprite || (useGrayMaterial = this.enableAutoGrayEffect && !this.interactable); + this._switchGrayMaterial(useGrayMaterial, this._sprite); + } + } + }); + cc.Button = module.exports = Button; + }), { + "../utils/gray-sprite-state": 202, + "./CCComponent": 91 + } ], + 90: [ (function(require, module, exports) { + "use strict"; + var Camera = require("../camera/CCCamera"); + var Component = require("./CCComponent"); + function resetWidgetComponent(canvas) { + var widget = canvas.node.getComponent(cc.Widget); + widget || (widget = canvas.node.addComponent(cc.Widget)); + widget.isAlignTop = true; + widget.isAlignBottom = true; + widget.isAlignLeft = true; + widget.isAlignRight = true; + widget.top = 0; + widget.bottom = 0; + widget.left = 0; + widget.right = 0; + } + var Canvas = cc.Class({ + name: "cc.Canvas", + extends: Component, + editor: false, + resetInEditor: false, + statics: { + instance: null + }, + properties: { + _designResolution: cc.size(960, 640), + designResolution: { + get: function get() { + return cc.size(this._designResolution); + }, + set: function set(value) { + this._designResolution.width = value.width; + this._designResolution.height = value.height; + this.applySettings(); + }, + tooltip: false + }, + _fitWidth: false, + _fitHeight: true, + fitHeight: { + get: function get() { + return this._fitHeight; + }, + set: function set(value) { + if (this._fitHeight !== value) { + this._fitHeight = value; + this.applySettings(); + } + }, + tooltip: false + }, + fitWidth: { + get: function get() { + return this._fitWidth; + }, + set: function set(value) { + if (this._fitWidth !== value) { + this._fitWidth = value; + this.applySettings(); + } + }, + tooltip: false + } + }, + _fitDesignResolution: false, + __preload: function __preload() { + var Flags; + false; + if (Canvas.instance) return cc.warnID(6700, this.node.name, Canvas.instance.node.name); + Canvas.instance = this; + this.applySettings(); + var widget = this.getComponent(cc.Widget); + !!widget && widget.updateAlignment(); + false; + }, + start: function start() { + if (!Camera.main && cc.game.renderType !== cc.game.RENDER_TYPE_CANVAS) { + var cameraNode = new cc.Node("Main Camera"); + cameraNode.parent = this.node; + cameraNode.setSiblingIndex(0); + var camera = cameraNode.addComponent(Camera); + var ClearFlags = Camera.ClearFlags; + camera.clearFlags = ClearFlags.COLOR | ClearFlags.DEPTH | ClearFlags.STENCIL; + camera.depth = -1; + } + }, + onDestroy: function onDestroy() { + false; + Canvas.instance === this && (Canvas.instance = null); + }, + applySettings: function applySettings() { + var ResolutionPolicy = cc.ResolutionPolicy; + var policy; + policy = this.fitHeight && this.fitWidth ? ResolutionPolicy.SHOW_ALL : this.fitHeight || this.fitWidth ? this.fitWidth ? ResolutionPolicy.FIXED_WIDTH : ResolutionPolicy.FIXED_HEIGHT : ResolutionPolicy.NO_BORDER; + var designRes = this._designResolution; + false; + cc.view.setDesignResolutionSize(designRes.width, designRes.height, policy); + } + }); + cc.Canvas = module.exports = Canvas; + }), { + "../camera/CCCamera": 85, + "./CCComponent": 91 + } ], + 91: [ (function(require, module, exports) { + "use strict"; + var CCObject = require("../platform/CCObject"); + var js = require("../platform/js"); + var idGenerater = new (require("../platform/id-generater"))("Comp"); + var IsOnEnableCalled = CCObject.Flags.IsOnEnableCalled; + var IsOnLoadCalled = CCObject.Flags.IsOnLoadCalled; + var ActionManagerExist = !!cc.ActionManager; + var Component = cc.Class({ + name: "cc.Component", + extends: CCObject, + ctor: function() { + this._id = idGenerater.getNewId(); + this.__eventTargets = []; + }, + properties: { + node: { + default: null, + visible: false + }, + name: { + get: function get() { + if (this._name) return this._name; + var className = cc.js.getClassName(this); + var trimLeft = className.lastIndexOf("."); + trimLeft >= 0 && (className = className.slice(trimLeft + 1)); + return this.node.name + "<" + className + ">"; + }, + set: function set(value) { + this._name = value; + }, + visible: false + }, + uuid: { + get: function get() { + return this._id; + }, + visible: false + }, + __scriptAsset: false, + _enabled: true, + enabled: { + get: function get() { + return this._enabled; + }, + set: function set(value) { + if (this._enabled !== value) { + this._enabled = value; + if (this.node._activeInHierarchy) { + var compScheduler = cc.director._compScheduler; + value ? compScheduler.enableComp(this) : compScheduler.disableComp(this); + } + } + }, + visible: false, + animatable: true + }, + enabledInHierarchy: { + get: function get() { + return this._enabled && this.node._activeInHierarchy; + }, + visible: false + }, + _isOnLoadCalled: { + get: function get() { + return this._objFlags & IsOnLoadCalled; + } + } + }, + update: null, + lateUpdate: null, + __preload: null, + onLoad: null, + start: null, + onEnable: null, + onDisable: null, + onDestroy: null, + onFocusInEditor: null, + onLostFocusInEditor: null, + resetInEditor: null, + addComponent: function addComponent(typeOrClassName) { + return this.node.addComponent(typeOrClassName); + }, + getComponent: function getComponent(typeOrClassName) { + return this.node.getComponent(typeOrClassName); + }, + getComponents: function getComponents(typeOrClassName) { + return this.node.getComponents(typeOrClassName); + }, + getComponentInChildren: function getComponentInChildren(typeOrClassName) { + return this.node.getComponentInChildren(typeOrClassName); + }, + getComponentsInChildren: function getComponentsInChildren(typeOrClassName) { + return this.node.getComponentsInChildren(typeOrClassName); + }, + _getLocalBounds: null, + onRestore: null, + destroy: function destroy() { + var depend; + false; + this._super() && this._enabled && this.node._activeInHierarchy && cc.director._compScheduler.disableComp(this); + }, + _onPreDestroy: function _onPreDestroy() { + ActionManagerExist && cc.director.getActionManager().removeAllActionsFromTarget(this); + this.unscheduleAllCallbacks(); + var eventTargets = this.__eventTargets; + for (var i = eventTargets.length - 1; i >= 0; --i) { + var target = eventTargets[i]; + target && target.targetOff(this); + } + eventTargets.length = 0; + false; + cc.director._nodeActivator.destroyComp(this); + this.node._removeComponent(this); + }, + _instantiate: function _instantiate(cloned) { + cloned || (cloned = cc.instantiate._clone(this, this)); + cloned.node = null; + return cloned; + }, + schedule: function schedule(callback, interval, repeat, delay) { + cc.assertID(callback, 1619); + interval = interval || 0; + cc.assertID(interval >= 0, 1620); + repeat = isNaN(repeat) ? cc.macro.REPEAT_FOREVER : repeat; + delay = delay || 0; + var scheduler = cc.director.getScheduler(); + var paused = scheduler.isTargetPaused(this); + scheduler.schedule(callback, this, interval, repeat, delay, paused); + }, + scheduleOnce: function scheduleOnce(callback, delay) { + this.schedule(callback, 0, 0, delay); + }, + unschedule: function unschedule(callback_fn) { + if (!callback_fn) return; + cc.director.getScheduler().unschedule(callback_fn, this); + }, + unscheduleAllCallbacks: function unscheduleAllCallbacks() { + cc.director.getScheduler().unscheduleAllForTarget(this); + } + }); + Component._requireComponent = null; + Component._executionOrder = 0; + false; + false, false; + js.value(Component, "_registerEditorProps", (function(cls, props) { + var reqComp = props.requireComponent; + reqComp && (cls._requireComponent = reqComp); + var order = props.executionOrder; + order && "number" === typeof order && (cls._executionOrder = order); + (false, false) && "disallowMultiple" in props && (cls._disallowMultiple = cls); + var name; + var key; + var val; + var willExecuteInEditMode; + false, false; + })); + Component.prototype.__scriptUuid = ""; + cc.Component = module.exports = Component; + }), { + "../platform/CCObject": 127, + "../platform/id-generater": 138, + "../platform/js": 142 + } ], + 92: [ (function(require, module, exports) { + "use strict"; + cc.Component.EventHandler = cc.Class({ + name: "cc.ClickEvent", + properties: { + target: { + default: null, + type: cc.Node + }, + component: "", + _componentId: "", + _componentName: { + get: function get() { + this._genCompIdIfNeeded(); + return this._compId2Name(this._componentId); + }, + set: function set(value) { + this._componentId = this._compName2Id(value); + } + }, + handler: { + default: "" + }, + customEventData: { + default: "" + } + }, + statics: { + emitEvents: function emitEvents(events) { + var args; + if (arguments.length > 0) { + args = new Array(arguments.length - 1); + for (var i = 0, l = args.length; i < l; i++) args[i] = arguments[i + 1]; + } + for (var _i = 0, _l = events.length; _i < _l; _i++) { + var event = events[_i]; + if (!(event instanceof cc.Component.EventHandler)) continue; + event.emit(args); + } + } + }, + emit: function emit(params) { + var target = this.target; + if (!cc.isValid(target)) return; + this._genCompIdIfNeeded(); + var compType = cc.js._getClassById(this._componentId); + var comp = target.getComponent(compType); + if (!cc.isValid(comp)) return; + var handler = comp[this.handler]; + if ("function" !== typeof handler) return; + if (null != this.customEventData && "" !== this.customEventData) { + params = params.slice(); + params.push(this.customEventData); + } + handler.apply(comp, params); + }, + _compName2Id: function _compName2Id(compName) { + var comp = cc.js.getClassByName(compName); + return cc.js._getClassId(comp); + }, + _compId2Name: function _compId2Name(compId) { + var comp = cc.js._getClassById(compId); + return cc.js.getClassName(comp); + }, + _genCompIdIfNeeded: function _genCompIdIfNeeded() { + if (!this._componentId) { + this._componentName = this.component; + this.component = ""; + } + } + }); + }), {} ], + 93: [ (function(require, module, exports) { + "use strict"; + var macro = require("../platform/CCMacro"); + var RenderComponent = require("./CCRenderComponent"); + var Material = require("../assets/material/CCMaterial"); + var LabelFrame = require("../renderer/utils/label/label-frame"); + var BlendFunc = require("../utils/blend-func"); + var deleteFromDynamicAtlas = require("../renderer/utils/utils").deleteFromDynamicAtlas; + var HorizontalAlign = macro.TextAlignment; + var VerticalAlign = macro.VerticalTextAlignment; + var Overflow = cc.Enum({ + NONE: 0, + CLAMP: 1, + SHRINK: 2, + RESIZE_HEIGHT: 3 + }); + var CacheMode = cc.Enum({ + NONE: 0, + BITMAP: 1, + CHAR: 2 + }); + var BOLD_FLAG = 1; + var ITALIC_FLAG = 2; + var UNDERLINE_FLAG = 4; + var Label = cc.Class({ + name: "cc.Label", + extends: RenderComponent, + mixins: [ BlendFunc ], + ctor: function ctor() { + false; + this._actualFontSize = 0; + this._assemblerData = null; + this._frame = null; + this._ttfTexture = null; + this._letterTexture = null; + cc.game.renderType === cc.game.RENDER_TYPE_CANVAS ? this._updateMaterial = this._updateMaterialCanvas : this._updateMaterial = this._updateMaterialWebgl; + }, + editor: false, + properties: { + _string: { + default: "", + formerlySerializedAs: "_N$string" + }, + string: { + get: function get() { + return this._string; + }, + set: function set(value) { + var oldValue = this._string; + this._string = "" + value; + this.string !== oldValue && this.setVertsDirty(); + this._checkStringEmpty(); + }, + multiline: true, + tooltip: false + }, + horizontalAlign: { + default: HorizontalAlign.LEFT, + type: HorizontalAlign, + tooltip: false, + notify: function notify(oldValue) { + if (this.horizontalAlign === oldValue) return; + this.setVertsDirty(); + }, + animatable: false + }, + verticalAlign: { + default: VerticalAlign.TOP, + type: VerticalAlign, + tooltip: false, + notify: function notify(oldValue) { + if (this.verticalAlign === oldValue) return; + this.setVertsDirty(); + }, + animatable: false + }, + actualFontSize: { + displayName: "Actual Font Size", + animatable: false, + readonly: true, + get: function get() { + return this._actualFontSize; + }, + tooltip: false + }, + _fontSize: 40, + fontSize: { + get: function get() { + return this._fontSize; + }, + set: function set(value) { + if (this._fontSize === value) return; + this._fontSize = value; + this.setVertsDirty(); + }, + range: [ 0, 512 ], + tooltip: false + }, + fontFamily: { + default: "Arial", + tooltip: false, + notify: function notify(oldValue) { + if (this.fontFamily === oldValue) return; + this.setVertsDirty(); + }, + animatable: false + }, + _lineHeight: 40, + lineHeight: { + get: function get() { + return this._lineHeight; + }, + set: function set(value) { + if (this._lineHeight === value) return; + this._lineHeight = value; + this.setVertsDirty(); + }, + tooltip: false + }, + overflow: { + default: Overflow.NONE, + type: Overflow, + tooltip: false, + notify: function notify(oldValue) { + if (this.overflow === oldValue) return; + this.setVertsDirty(); + }, + animatable: false + }, + _enableWrapText: true, + enableWrapText: { + get: function get() { + return this._enableWrapText; + }, + set: function set(value) { + if (this._enableWrapText === value) return; + this._enableWrapText = value; + this.setVertsDirty(); + }, + animatable: false, + tooltip: false + }, + _N$file: null, + font: { + get: function get() { + return this._N$file; + }, + set: function set(value) { + if (this.font === value) return; + value || (this._isSystemFontUsed = true); + false; + this._N$file = value; + value && this._isSystemFontUsed && (this._isSystemFontUsed = false); + if (!this.enabledInHierarchy) return; + this._forceUpdateRenderData(); + }, + type: cc.Font, + tooltip: false, + animatable: false + }, + _isSystemFontUsed: true, + useSystemFont: { + get: function get() { + return this._isSystemFontUsed; + }, + set: function set(value) { + if (this._isSystemFontUsed === value) return; + this._isSystemFontUsed = !!value; + false; + if (value) { + this.font = null; + if (!this.enabledInHierarchy) return; + this._forceUpdateRenderData(); + } + this.markForValidate(); + }, + animatable: false, + tooltip: false + }, + _bmFontOriginalSize: { + displayName: "BMFont Original Size", + get: function get() { + return this._N$file instanceof cc.BitmapFont ? this._N$file.fontSize : -1; + }, + visible: true, + animatable: false + }, + _spacingX: 0, + spacingX: { + get: function get() { + return this._spacingX; + }, + set: function set(value) { + this._spacingX = value; + this.setVertsDirty(); + }, + tooltip: false + }, + _batchAsBitmap: false, + cacheMode: { + default: CacheMode.NONE, + type: CacheMode, + tooltip: false, + notify: function notify(oldValue) { + if (this.cacheMode === oldValue) return; + oldValue !== CacheMode.BITMAP || this.font instanceof cc.BitmapFont || this._frame && this._frame._resetDynamicAtlasFrame(); + if (oldValue === CacheMode.CHAR) { + this._ttfTexture = null; + var material = this._materials[0]; + material && material.material && cc.Label._shareAtlas.material === material.material && this.setMaterial(0, this._getDefaultMaterial()); + } + if (!this.enabledInHierarchy) return; + this._forceUpdateRenderData(); + }, + animatable: false + }, + _styleFlags: 0, + enableBold: { + get: function get() { + return !!(this._styleFlags & BOLD_FLAG); + }, + set: function set(value) { + value ? this._styleFlags |= BOLD_FLAG : this._styleFlags &= ~BOLD_FLAG; + this.setVertsDirty(); + }, + animatable: false, + tooltip: false + }, + enableItalic: { + get: function get() { + return !!(this._styleFlags & ITALIC_FLAG); + }, + set: function set(value) { + value ? this._styleFlags |= ITALIC_FLAG : this._styleFlags &= ~ITALIC_FLAG; + this.setVertsDirty(); + }, + animatable: false, + tooltip: false + }, + enableUnderline: { + get: function get() { + return !!(this._styleFlags & UNDERLINE_FLAG); + }, + set: function set(value) { + value ? this._styleFlags |= UNDERLINE_FLAG : this._styleFlags &= ~UNDERLINE_FLAG; + this.setVertsDirty(); + }, + animatable: false, + tooltip: false + }, + _underlineHeight: 0, + underlineHeight: { + get: function get() { + return this._underlineHeight; + }, + set: function set(value) { + if (this._underlineHeight === value) return; + this._underlineHeight = value; + this.setVertsDirty(); + }, + tooltip: false + }, + autoSwitchMaterial: { + type: RenderComponent.EnableType, + default: RenderComponent.EnableType.GLOBAL, + notify: function notify(oldValue) { + if (this.autoSwitchMaterial === oldValue) return; + this.setVertsDirty(); + } + }, + allowDynamicAtlas: { + type: RenderComponent.EnableType, + default: RenderComponent.EnableType.GLOBAL, + notify: function notify(oldValue) { + if (this.allowDynamicAtlas === oldValue) return; + this.setVertsDirty(); + } + }, + enableRetina: { + type: RenderComponent.EnableType, + default: RenderComponent.EnableType.GLOBAL, + notify: function notify(oldValue) { + if (this.enableRetina === oldValue) return; + this.setVertsDirty(); + } + } + }, + statics: { + HorizontalAlign: HorizontalAlign, + VerticalAlign: VerticalAlign, + Overflow: Overflow, + CacheMode: CacheMode, + _shareAtlas: null, + clearCharCache: function clearCharCache() { + Label._shareAtlas && Label._shareAtlas.clearAllCache(); + } + }, + onLoad: function onLoad() { + if (this._batchAsBitmap && this.cacheMode === CacheMode.NONE) { + this.cacheMode = CacheMode.BITMAP; + this._batchAsBitmap = false; + } + cc.game.renderType === cc.game.RENDER_TYPE_CANVAS && (this.cacheMode = CacheMode.NONE); + }, + onEnable: function onEnable() { + this._super(); + this.node.on(cc.Node.EventType.SIZE_CHANGED, this._nodeSizeChanged, this); + this.node.on(cc.Node.EventType.ANCHOR_CHANGED, this.setVertsDirty, this); + this.node.on(cc.Node.EventType.COLOR_CHANGED, this._nodeColorChanged, this); + this._forceUpdateRenderData(); + }, + onDisable: function onDisable() { + this._super(); + this.node.off(cc.Node.EventType.SIZE_CHANGED, this._nodeSizeChanged, this); + this.node.off(cc.Node.EventType.ANCHOR_CHANGED, this.setVertsDirty, this); + this.node.off(cc.Node.EventType.COLOR_CHANGED, this._nodeColorChanged, this); + }, + onDestroy: function onDestroy() { + this._assembler && this._assembler._resetAssemblerData && this._assembler._resetAssemblerData(this._assemblerData); + this._assemblerData = null; + this._letterTexture = null; + if (this._ttfTexture) { + this._ttfTexture.destroy(); + this._ttfTexture = null; + } + this._super(); + }, + _nodeSizeChanged: function _nodeSizeChanged() { + (false, this.overflow !== Overflow.NONE) && this.setVertsDirty(); + }, + _nodeColorChanged: function _nodeColorChanged() { + this.font instanceof cc.BitmapFont || this.setVertsDirty(); + }, + setVertsDirty: function setVertsDirty() { + false; + this._super(); + }, + _updateColor: function _updateColor() { + this.font instanceof cc.BitmapFont || this._srcBlendFactor === cc.macro.BlendFactor.SRC_ALPHA && this.node._renderFlag & cc.RenderFlow.FLAG_OPACITY || this.setVertsDirty(); + RenderComponent.prototype._updateColor.call(this); + }, + _validateRender: function _validateRender() { + if (!this.string) { + this.disableRender(); + return; + } + if (this._materials[0]) { + var font = this.font; + if (!(font instanceof cc.BitmapFont)) return; + var spriteFrame = font.spriteFrame; + if (spriteFrame && spriteFrame.textureLoaded() && font._fntConfig) return; + } + this.disableRender(); + }, + _resetAssembler: function _resetAssembler() { + this._resetFrame(); + RenderComponent.prototype._resetAssembler.call(this); + }, + _resetFrame: function _resetFrame() { + if (this._frame && !(this.font instanceof cc.BitmapFont)) { + deleteFromDynamicAtlas(this, this._frame); + this._frame = null; + } + }, + _checkStringEmpty: function _checkStringEmpty() { + this.markForRender(!!this.string); + }, + _on3DNodeChanged: function _on3DNodeChanged() { + this._resetAssembler(); + this._applyFontTexture(); + }, + _onBMFontTextureLoaded: function _onBMFontTextureLoaded() { + this._frame._texture = this.font.spriteFrame._texture; + this.markForRender(true); + this._updateMaterial(); + this._assembler && this._assembler.updateRenderData(this); + }, + _onBlendChanged: function _onBlendChanged() { + if (!this.useSystemFont || !this.enabledInHierarchy) return; + this._forceUpdateRenderData(); + }, + _applyFontTexture: function _applyFontTexture() { + var font = this.font; + if (font instanceof cc.BitmapFont) { + var spriteFrame = font.spriteFrame; + this._frame = spriteFrame; + spriteFrame && spriteFrame.onTextureLoaded(this._onBMFontTextureLoaded, this); + } else { + if (!this._nativeTTF()) { + this._frame || (this._frame = new LabelFrame()); + if (this.cacheMode === CacheMode.CHAR) { + this._letterTexture = this._assembler._getAssemblerData(); + this._frame._refreshTexture(this._letterTexture); + } else if (!this._ttfTexture) { + this._ttfTexture = new cc.Texture2D(); + this._assemblerData = this._assembler._getAssemblerData(); + this._ttfTexture.initWithElement(this._assemblerData.canvas); + } + if (this.cacheMode !== CacheMode.CHAR) { + this._frame._resetDynamicAtlasFrame(); + this._frame._refreshTexture(this._ttfTexture); + this._srcBlendFactor === cc.macro.BlendFactor.ONE && true && this._ttfTexture.setPremultiplyAlpha(true); + } + this._updateMaterial(); + } + this._assembler && this._assembler.updateRenderData(this); + } + this.markForValidate(); + }, + _updateMaterialCanvas: function _updateMaterialCanvas() { + if (!this._frame) return; + this._frame._texture._nativeUrl = this.uuid + "_texture"; + }, + _updateMaterialWebgl: function _updateMaterialWebgl() { + var material = this.getMaterial(0); + if (this._nativeTTF()) { + material && this._assembler._updateTTFMaterial(this); + return; + } + if (!this._frame) return; + if (material) { + var isMultiMaterial = material.material.isMultiSupport(); + isMultiMaterial ? this._texIdDirty = true : material.setProperty("texture", this._frame._texture); + this._assembler && (isMultiMaterial && !this._assembler.isMulti || !isMultiMaterial && this._assembler.isMulti) && RenderComponent.prototype._resetAssembler.call(this); + } + BlendFunc.prototype._updateMaterial.call(this); + }, + _forceUseCanvas: false, + _useNativeTTF: function _useNativeTTF() { + return cc.macro.ENABLE_NATIVE_TTF_RENDERER && !this._forceUseCanvas; + }, + _nativeTTF: function _nativeTTF() { + return this._useNativeTTF() && !!this._assembler && !!this._assembler._updateTTFMaterial; + }, + _forceUpdateRenderData: function _forceUpdateRenderData() { + this.setVertsDirty(); + this._resetAssembler(); + this._applyFontTexture(); + }, + _enableBold: function _enableBold(enabled) { + true; + cc.warn("`label._enableBold` is deprecated, use `label.enableBold = true` instead please"); + this.enableBold = !!enabled; + }, + _enableItalics: function _enableItalics(enabled) { + true; + cc.warn("`label._enableItalics` is deprecated, use `label.enableItalics = true` instead please"); + this.enableItalic = !!enabled; + }, + _enableUnderline: function _enableUnderline(enabled) { + true; + cc.warn("`label._enableUnderline` is deprecated, use `label.enableUnderline = true` instead please"); + this.enableUnderline = !!enabled; + } + }); + cc.Label = module.exports = Label; + }), { + "../assets/material/CCMaterial": 75, + "../platform/CCMacro": 126, + "../renderer/utils/label/label-frame": 157, + "../renderer/utils/utils": 160, + "../utils/blend-func": 199, + "./CCRenderComponent": 98 + } ], + 94: [ (function(require, module, exports) { + "use strict"; + var LabelOutline = cc.Class({ + name: "cc.LabelOutline", + extends: require("./CCComponent"), + editor: false, + properties: { + _color: cc.Color.WHITE, + _width: 1, + color: { + tooltip: false, + get: function get() { + return this._color.clone(); + }, + set: function set(value) { + this._color.equals(value) || this._color.set(value); + this._updateRenderData(); + } + }, + width: { + tooltip: false, + get: function get() { + return this._width; + }, + set: function set(value) { + if (this._width === value) return; + this._width = value; + this._updateRenderData(); + }, + range: [ 0, 512 ] + } + }, + onEnable: function onEnable() { + this._updateRenderData(); + }, + onDisable: function onDisable() { + this._updateRenderData(); + }, + _updateRenderData: function _updateRenderData() { + var label = this.node.getComponent(cc.Label); + label && label.setVertsDirty(); + } + }); + cc.LabelOutline = module.exports = LabelOutline; + }), { + "./CCComponent": 91 + } ], + 95: [ (function(require, module, exports) { + "use strict"; + var LabelShadow = cc.Class({ + name: "cc.LabelShadow", + extends: require("./CCComponent"), + editor: false, + properties: { + _color: cc.Color.WHITE, + _offset: cc.v2(2, 2), + _blur: 2, + color: { + tooltip: false, + get: function get() { + return this._color.clone(); + }, + set: function set(value) { + this._color.equals(value) || this._color.set(value); + this._updateRenderData(); + } + }, + offset: { + tooltip: false, + get: function get() { + return this._offset; + }, + set: function set(value) { + this._offset = value; + this._updateRenderData(); + } + }, + blur: { + tooltip: false, + get: function get() { + return this._blur; + }, + set: function set(value) { + this._blur = value; + this._updateRenderData(); + }, + range: [ 0, 1024 ] + } + }, + onEnable: function onEnable() { + this._updateRenderData(); + }, + onDisable: function onDisable() { + this._updateRenderData(); + }, + _updateRenderData: function _updateRenderData() { + var label = this.node.getComponent(cc.Label); + label && label.markForRender(true); + } + }); + cc.LabelShadow = module.exports = LabelShadow; + }), { + "./CCComponent": 91 + } ], + 96: [ (function(require, module, exports) { + "use strict"; + var NodeEvent = require("../CCNode").EventType; + var Type = cc.Enum({ + NONE: 0, + HORIZONTAL: 1, + VERTICAL: 2, + GRID: 3 + }); + var ResizeMode = cc.Enum({ + NONE: 0, + CONTAINER: 1, + CHILDREN: 2 + }); + var AxisDirection = cc.Enum({ + HORIZONTAL: 0, + VERTICAL: 1 + }); + var VerticalDirection = cc.Enum({ + BOTTOM_TO_TOP: 0, + TOP_TO_BOTTOM: 1 + }); + var HorizontalDirection = cc.Enum({ + LEFT_TO_RIGHT: 0, + RIGHT_TO_LEFT: 1 + }); + var Layout = cc.Class({ + name: "cc.Layout", + extends: require("./CCComponent"), + editor: false, + properties: { + _layoutSize: cc.size(300, 200), + _layoutDirty: { + default: true, + serializable: false + }, + _resize: ResizeMode.NONE, + _N$layoutType: Type.NONE, + type: { + type: Type, + get: function get() { + return this._N$layoutType; + }, + set: function set(value) { + this._N$layoutType = value; + var reLayouted; + false; + this._doLayoutDirty(); + }, + tooltip: false, + animatable: false + }, + resizeMode: { + type: ResizeMode, + tooltip: false, + animatable: false, + get: function get() { + return this._resize; + }, + set: function set(value) { + if (this.type === Type.NONE && value === ResizeMode.CHILDREN) return; + this._resize = value; + var reLayouted; + false; + this._doLayoutDirty(); + } + }, + cellSize: { + default: cc.size(40, 40), + tooltip: false, + type: cc.Size, + notify: function notify() { + this._doLayoutDirty(); + } + }, + startAxis: { + default: AxisDirection.HORIZONTAL, + tooltip: false, + type: AxisDirection, + notify: function notify() { + var reLayouted; + false; + this._doLayoutDirty(); + }, + animatable: false + }, + paddingLeft: { + default: 0, + tooltip: false, + notify: function notify() { + this._doLayoutDirty(); + } + }, + paddingRight: { + default: 0, + tooltip: false, + notify: function notify() { + this._doLayoutDirty(); + } + }, + paddingTop: { + default: 0, + tooltip: false, + notify: function notify() { + this._doLayoutDirty(); + } + }, + paddingBottom: { + default: 0, + tooltip: false, + notify: function notify() { + this._doLayoutDirty(); + } + }, + spacingX: { + default: 0, + notify: function notify() { + this._doLayoutDirty(); + }, + tooltip: false + }, + spacingY: { + default: 0, + notify: function notify() { + this._doLayoutDirty(); + }, + tooltip: false + }, + verticalDirection: { + default: VerticalDirection.TOP_TO_BOTTOM, + type: VerticalDirection, + notify: function notify() { + this._doLayoutDirty(); + }, + tooltip: false, + animatable: false + }, + horizontalDirection: { + default: HorizontalDirection.LEFT_TO_RIGHT, + type: HorizontalDirection, + notify: function notify() { + this._doLayoutDirty(); + }, + tooltip: false, + animatable: false + }, + affectedByScale: { + default: false, + notify: function notify() { + this._doLayoutDirty(); + }, + animatable: false, + tooltip: false + } + }, + statics: { + Type: Type, + VerticalDirection: VerticalDirection, + HorizontalDirection: HorizontalDirection, + ResizeMode: ResizeMode, + AxisDirection: AxisDirection + }, + onEnable: function onEnable() { + this._addEventListeners(); + this.node.getContentSize().equals(cc.size(0, 0)) && this.node.setContentSize(this._layoutSize); + this._doLayoutDirty(); + }, + onDisable: function onDisable() { + this._removeEventListeners(); + }, + _doLayoutDirty: function _doLayoutDirty() { + this._layoutDirty = true; + }, + _doScaleDirty: function _doScaleDirty() { + this._layoutDirty = this._layoutDirty || this.affectedByScale; + }, + _addEventListeners: function _addEventListeners() { + cc.director.on(cc.Director.EVENT_AFTER_UPDATE, this.updateLayout, this); + this.node.on(NodeEvent.SIZE_CHANGED, this._resized, this); + this.node.on(NodeEvent.ANCHOR_CHANGED, this._doLayoutDirty, this); + this.node.on(NodeEvent.CHILD_ADDED, this._childAdded, this); + this.node.on(NodeEvent.CHILD_REMOVED, this._childRemoved, this); + this.node.on(NodeEvent.CHILD_REORDER, this._doLayoutDirty, this); + this._addChildrenEventListeners(); + }, + _removeEventListeners: function _removeEventListeners() { + cc.director.off(cc.Director.EVENT_AFTER_UPDATE, this.updateLayout, this); + this.node.off(NodeEvent.SIZE_CHANGED, this._resized, this); + this.node.off(NodeEvent.ANCHOR_CHANGED, this._doLayoutDirty, this); + this.node.off(NodeEvent.CHILD_ADDED, this._childAdded, this); + this.node.off(NodeEvent.CHILD_REMOVED, this._childRemoved, this); + this.node.off(NodeEvent.CHILD_REORDER, this._doLayoutDirty, this); + this._removeChildrenEventListeners(); + }, + _addChildrenEventListeners: function _addChildrenEventListeners() { + var children = this.node.children; + for (var i = 0; i < children.length; ++i) { + var child = children[i]; + child.on(NodeEvent.SCALE_CHANGED, this._doScaleDirty, this); + child.on(NodeEvent.SIZE_CHANGED, this._doLayoutDirty, this); + child.on(NodeEvent.POSITION_CHANGED, this._doLayoutDirty, this); + child.on(NodeEvent.ANCHOR_CHANGED, this._doLayoutDirty, this); + child.on("active-in-hierarchy-changed", this._doLayoutDirty, this); + } + }, + _removeChildrenEventListeners: function _removeChildrenEventListeners() { + var children = this.node.children; + for (var i = 0; i < children.length; ++i) { + var child = children[i]; + child.off(NodeEvent.SCALE_CHANGED, this._doScaleDirty, this); + child.off(NodeEvent.SIZE_CHANGED, this._doLayoutDirty, this); + child.off(NodeEvent.POSITION_CHANGED, this._doLayoutDirty, this); + child.off(NodeEvent.ANCHOR_CHANGED, this._doLayoutDirty, this); + child.off("active-in-hierarchy-changed", this._doLayoutDirty, this); + } + }, + _childAdded: function _childAdded(child) { + child.on(NodeEvent.SCALE_CHANGED, this._doScaleDirty, this); + child.on(NodeEvent.SIZE_CHANGED, this._doLayoutDirty, this); + child.on(NodeEvent.POSITION_CHANGED, this._doLayoutDirty, this); + child.on(NodeEvent.ANCHOR_CHANGED, this._doLayoutDirty, this); + child.on("active-in-hierarchy-changed", this._doLayoutDirty, this); + this._doLayoutDirty(); + }, + _childRemoved: function _childRemoved(child) { + child.off(NodeEvent.SCALE_CHANGED, this._doScaleDirty, this); + child.off(NodeEvent.SIZE_CHANGED, this._doLayoutDirty, this); + child.off(NodeEvent.POSITION_CHANGED, this._doLayoutDirty, this); + child.off(NodeEvent.ANCHOR_CHANGED, this._doLayoutDirty, this); + child.off("active-in-hierarchy-changed", this._doLayoutDirty, this); + this._doLayoutDirty(); + }, + _resized: function _resized() { + this._layoutSize = this.node.getContentSize(); + this._doLayoutDirty(); + }, + _doLayoutHorizontally: function _doLayoutHorizontally(baseWidth, rowBreak, fnPositionY, applyChildren) { + var layoutAnchor = this.node.getAnchorPoint(); + var children = this.node.children; + var sign = 1; + var paddingX = this.paddingLeft; + var leftBoundaryOfLayout = -layoutAnchor.x * baseWidth; + if (this.horizontalDirection === HorizontalDirection.RIGHT_TO_LEFT) { + sign = -1; + leftBoundaryOfLayout = (1 - layoutAnchor.x) * baseWidth; + paddingX = this.paddingRight; + } + var nextX = leftBoundaryOfLayout + sign * paddingX - sign * this.spacingX; + var rowMaxHeight = 0; + var tempMaxHeight = 0; + var secondMaxHeight = 0; + var row = 0; + var containerResizeBoundary = 0; + var maxHeightChildAnchorY = 0; + var activeChildCount = 0; + for (var i = 0; i < children.length; ++i) { + var child = children[i]; + child.activeInHierarchy && activeChildCount++; + } + var newChildWidth = this.cellSize.width; + this.type !== Type.GRID && this.resizeMode === ResizeMode.CHILDREN && (newChildWidth = (baseWidth - (this.paddingLeft + this.paddingRight) - (activeChildCount - 1) * this.spacingX) / activeChildCount); + for (var i = 0; i < children.length; ++i) { + var child = children[i]; + var childScaleX = this._getUsedScaleValue(child.scaleX); + var childScaleY = this._getUsedScaleValue(child.scaleY); + if (!child.activeInHierarchy) continue; + if (this._resize === ResizeMode.CHILDREN) { + child.width = newChildWidth / childScaleX; + this.type === Type.GRID && (child.height = this.cellSize.height / childScaleY); + } + var anchorX = child.anchorX; + var childBoundingBoxWidth = child.width * childScaleX; + var childBoundingBoxHeight = child.height * childScaleY; + secondMaxHeight > tempMaxHeight && (tempMaxHeight = secondMaxHeight); + if (childBoundingBoxHeight >= tempMaxHeight) { + secondMaxHeight = tempMaxHeight; + tempMaxHeight = childBoundingBoxHeight; + maxHeightChildAnchorY = child.getAnchorPoint().y; + } + this.horizontalDirection === HorizontalDirection.RIGHT_TO_LEFT && (anchorX = 1 - child.anchorX); + nextX = nextX + sign * anchorX * childBoundingBoxWidth + sign * this.spacingX; + var rightBoundaryOfChild = sign * (1 - anchorX) * childBoundingBoxWidth; + if (rowBreak) { + var rowBreakBoundary = nextX + rightBoundaryOfChild + sign * (sign > 0 ? this.paddingRight : this.paddingLeft); + var leftToRightRowBreak = this.horizontalDirection === HorizontalDirection.LEFT_TO_RIGHT && rowBreakBoundary > (1 - layoutAnchor.x) * baseWidth; + var rightToLeftRowBreak = this.horizontalDirection === HorizontalDirection.RIGHT_TO_LEFT && rowBreakBoundary < -layoutAnchor.x * baseWidth; + if (leftToRightRowBreak || rightToLeftRowBreak) { + if (childBoundingBoxHeight >= tempMaxHeight) { + 0 === secondMaxHeight && (secondMaxHeight = tempMaxHeight); + rowMaxHeight += secondMaxHeight; + secondMaxHeight = tempMaxHeight; + } else { + rowMaxHeight += tempMaxHeight; + secondMaxHeight = childBoundingBoxHeight; + tempMaxHeight = 0; + } + nextX = leftBoundaryOfLayout + sign * (paddingX + anchorX * childBoundingBoxWidth); + row++; + } + } + var finalPositionY = fnPositionY(child, rowMaxHeight, row); + baseWidth >= childBoundingBoxWidth + this.paddingLeft + this.paddingRight && applyChildren && child.setPosition(cc.v2(nextX, finalPositionY)); + var signX = 1; + var tempFinalPositionY; + var topMarign = 0 === tempMaxHeight ? childBoundingBoxHeight : tempMaxHeight; + if (this.verticalDirection === VerticalDirection.TOP_TO_BOTTOM) { + containerResizeBoundary = containerResizeBoundary || this.node._contentSize.height; + signX = -1; + tempFinalPositionY = finalPositionY + signX * (topMarign * maxHeightChildAnchorY + this.paddingBottom); + tempFinalPositionY < containerResizeBoundary && (containerResizeBoundary = tempFinalPositionY); + } else { + containerResizeBoundary = containerResizeBoundary || -this.node._contentSize.height; + tempFinalPositionY = finalPositionY + signX * (topMarign * maxHeightChildAnchorY + this.paddingTop); + tempFinalPositionY > containerResizeBoundary && (containerResizeBoundary = tempFinalPositionY); + } + nextX += rightBoundaryOfChild; + } + return containerResizeBoundary; + }, + _getVerticalBaseHeight: function _getVerticalBaseHeight(children) { + var newHeight = 0; + var activeChildCount = 0; + if (this.resizeMode === ResizeMode.CONTAINER) { + for (var i = 0; i < children.length; ++i) { + var child = children[i]; + if (child.activeInHierarchy) { + activeChildCount++; + newHeight += child.height * this._getUsedScaleValue(child.scaleY); + } + } + newHeight += (activeChildCount - 1) * this.spacingY + this.paddingBottom + this.paddingTop; + } else newHeight = this.node.getContentSize().height; + return newHeight; + }, + _doLayoutVertically: function _doLayoutVertically(baseHeight, columnBreak, fnPositionX, applyChildren) { + var layoutAnchor = this.node.getAnchorPoint(); + var children = this.node.children; + var sign = 1; + var paddingY = this.paddingBottom; + var bottomBoundaryOfLayout = -layoutAnchor.y * baseHeight; + if (this.verticalDirection === VerticalDirection.TOP_TO_BOTTOM) { + sign = -1; + bottomBoundaryOfLayout = (1 - layoutAnchor.y) * baseHeight; + paddingY = this.paddingTop; + } + var nextY = bottomBoundaryOfLayout + sign * paddingY - sign * this.spacingY; + var columnMaxWidth = 0; + var tempMaxWidth = 0; + var secondMaxWidth = 0; + var column = 0; + var containerResizeBoundary = 0; + var maxWidthChildAnchorX = 0; + var activeChildCount = 0; + for (var i = 0; i < children.length; ++i) { + var child = children[i]; + child.activeInHierarchy && activeChildCount++; + } + var newChildHeight = this.cellSize.height; + this.type !== Type.GRID && this.resizeMode === ResizeMode.CHILDREN && (newChildHeight = (baseHeight - (this.paddingTop + this.paddingBottom) - (activeChildCount - 1) * this.spacingY) / activeChildCount); + for (var i = 0; i < children.length; ++i) { + var child = children[i]; + var childScaleX = this._getUsedScaleValue(child.scaleX); + var childScaleY = this._getUsedScaleValue(child.scaleY); + if (!child.activeInHierarchy) continue; + if (this.resizeMode === ResizeMode.CHILDREN) { + child.height = newChildHeight / childScaleY; + this.type === Type.GRID && (child.width = this.cellSize.width / childScaleX); + } + var anchorY = child.anchorY; + var childBoundingBoxWidth = child.width * childScaleX; + var childBoundingBoxHeight = child.height * childScaleY; + secondMaxWidth > tempMaxWidth && (tempMaxWidth = secondMaxWidth); + if (childBoundingBoxWidth >= tempMaxWidth) { + secondMaxWidth = tempMaxWidth; + tempMaxWidth = childBoundingBoxWidth; + maxWidthChildAnchorX = child.getAnchorPoint().x; + } + this.verticalDirection === VerticalDirection.TOP_TO_BOTTOM && (anchorY = 1 - child.anchorY); + nextY = nextY + sign * anchorY * childBoundingBoxHeight + sign * this.spacingY; + var topBoundaryOfChild = sign * (1 - anchorY) * childBoundingBoxHeight; + if (columnBreak) { + var columnBreakBoundary = nextY + topBoundaryOfChild + sign * (sign > 0 ? this.paddingTop : this.paddingBottom); + var bottomToTopColumnBreak = this.verticalDirection === VerticalDirection.BOTTOM_TO_TOP && columnBreakBoundary > (1 - layoutAnchor.y) * baseHeight; + var topToBottomColumnBreak = this.verticalDirection === VerticalDirection.TOP_TO_BOTTOM && columnBreakBoundary < -layoutAnchor.y * baseHeight; + if (bottomToTopColumnBreak || topToBottomColumnBreak) { + if (childBoundingBoxWidth >= tempMaxWidth) { + 0 === secondMaxWidth && (secondMaxWidth = tempMaxWidth); + columnMaxWidth += secondMaxWidth; + secondMaxWidth = tempMaxWidth; + } else { + columnMaxWidth += tempMaxWidth; + secondMaxWidth = childBoundingBoxWidth; + tempMaxWidth = 0; + } + nextY = bottomBoundaryOfLayout + sign * (paddingY + anchorY * childBoundingBoxHeight); + column++; + } + } + var finalPositionX = fnPositionX(child, columnMaxWidth, column); + baseHeight >= childBoundingBoxHeight + (this.paddingTop + this.paddingBottom) && applyChildren && child.setPosition(cc.v2(finalPositionX, nextY)); + var signX = 1; + var tempFinalPositionX; + var rightMarign = 0 === tempMaxWidth ? childBoundingBoxWidth : tempMaxWidth; + if (this.horizontalDirection === HorizontalDirection.RIGHT_TO_LEFT) { + signX = -1; + containerResizeBoundary = containerResizeBoundary || this.node._contentSize.width; + tempFinalPositionX = finalPositionX + signX * (rightMarign * maxWidthChildAnchorX + this.paddingLeft); + tempFinalPositionX < containerResizeBoundary && (containerResizeBoundary = tempFinalPositionX); + } else { + containerResizeBoundary = containerResizeBoundary || -this.node._contentSize.width; + tempFinalPositionX = finalPositionX + signX * (rightMarign * maxWidthChildAnchorX + this.paddingRight); + tempFinalPositionX > containerResizeBoundary && (containerResizeBoundary = tempFinalPositionX); + } + nextY += topBoundaryOfChild; + } + return containerResizeBoundary; + }, + _doLayoutBasic: function _doLayoutBasic() { + var children = this.node.children; + var allChildrenBoundingBox = null; + for (var i = 0; i < children.length; ++i) { + var child = children[i]; + child.activeInHierarchy && (allChildrenBoundingBox ? allChildrenBoundingBox.union(allChildrenBoundingBox, child.getBoundingBoxToWorld()) : allChildrenBoundingBox = child.getBoundingBoxToWorld()); + } + if (allChildrenBoundingBox) { + var leftBottomSpace = this.node.convertToNodeSpaceAR(cc.v2(allChildrenBoundingBox.x, allChildrenBoundingBox.y)); + leftBottomSpace = cc.v2(leftBottomSpace.x - this.paddingLeft, leftBottomSpace.y - this.paddingBottom); + var rightTopSpace = this.node.convertToNodeSpaceAR(cc.v2(allChildrenBoundingBox.xMax, allChildrenBoundingBox.yMax)); + rightTopSpace = cc.v2(rightTopSpace.x + this.paddingRight, rightTopSpace.y + this.paddingTop); + var newSize = rightTopSpace.sub(leftBottomSpace); + newSize = cc.size(parseFloat(newSize.x.toFixed(2)), parseFloat(newSize.y.toFixed(2))); + if (0 !== newSize.width) { + var newAnchorX = -leftBottomSpace.x / newSize.width; + this.node.anchorX = parseFloat(newAnchorX.toFixed(2)); + } + if (0 !== newSize.height) { + var newAnchorY = -leftBottomSpace.y / newSize.height; + this.node.anchorY = parseFloat(newAnchorY.toFixed(2)); + } + this.node.setContentSize(newSize); + } + }, + _doLayoutGridAxisHorizontal: function _doLayoutGridAxisHorizontal(layoutAnchor, layoutSize) { + var baseWidth = layoutSize.width; + var sign = 1; + var bottomBoundaryOfLayout = -layoutAnchor.y * layoutSize.height; + var paddingY = this.paddingBottom; + if (this.verticalDirection === VerticalDirection.TOP_TO_BOTTOM) { + sign = -1; + bottomBoundaryOfLayout = (1 - layoutAnchor.y) * layoutSize.height; + paddingY = this.paddingTop; + } + var fnPositionY = function(child, topOffset, row) { + return bottomBoundaryOfLayout + sign * (topOffset + child.anchorY * child.height * this._getUsedScaleValue(child.scaleY) + paddingY + row * this.spacingY); + }.bind(this); + var newHeight = 0; + if (this.resizeMode === ResizeMode.CONTAINER) { + var boundary = this._doLayoutHorizontally(baseWidth, true, fnPositionY, false); + newHeight = bottomBoundaryOfLayout - boundary; + newHeight < 0 && (newHeight *= -1); + bottomBoundaryOfLayout = -layoutAnchor.y * newHeight; + if (this.verticalDirection === VerticalDirection.TOP_TO_BOTTOM) { + sign = -1; + bottomBoundaryOfLayout = (1 - layoutAnchor.y) * newHeight; + } + } + this._doLayoutHorizontally(baseWidth, true, fnPositionY, true); + this.resizeMode === ResizeMode.CONTAINER && this.node.setContentSize(baseWidth, newHeight); + }, + _doLayoutGridAxisVertical: function _doLayoutGridAxisVertical(layoutAnchor, layoutSize) { + var baseHeight = layoutSize.height; + var sign = 1; + var leftBoundaryOfLayout = -layoutAnchor.x * layoutSize.width; + var paddingX = this.paddingLeft; + if (this.horizontalDirection === HorizontalDirection.RIGHT_TO_LEFT) { + sign = -1; + leftBoundaryOfLayout = (1 - layoutAnchor.x) * layoutSize.width; + paddingX = this.paddingRight; + } + var fnPositionX = function(child, leftOffset, column) { + return leftBoundaryOfLayout + sign * (leftOffset + child.anchorX * child.width * this._getUsedScaleValue(child.scaleX) + paddingX + column * this.spacingX); + }.bind(this); + var newWidth = 0; + if (this.resizeMode === ResizeMode.CONTAINER) { + var boundary = this._doLayoutVertically(baseHeight, true, fnPositionX, false); + newWidth = leftBoundaryOfLayout - boundary; + newWidth < 0 && (newWidth *= -1); + leftBoundaryOfLayout = -layoutAnchor.x * newWidth; + if (this.horizontalDirection === HorizontalDirection.RIGHT_TO_LEFT) { + sign = -1; + leftBoundaryOfLayout = (1 - layoutAnchor.x) * newWidth; + } + } + this._doLayoutVertically(baseHeight, true, fnPositionX, true); + this.resizeMode === ResizeMode.CONTAINER && this.node.setContentSize(newWidth, baseHeight); + }, + _doLayoutGrid: function _doLayoutGrid() { + var layoutAnchor = this.node.getAnchorPoint(); + var layoutSize = this.node.getContentSize(); + this.startAxis === AxisDirection.HORIZONTAL ? this._doLayoutGridAxisHorizontal(layoutAnchor, layoutSize) : this.startAxis === AxisDirection.VERTICAL && this._doLayoutGridAxisVertical(layoutAnchor, layoutSize); + }, + _getHorizontalBaseWidth: function _getHorizontalBaseWidth(children) { + var newWidth = 0; + var activeChildCount = 0; + if (this.resizeMode === ResizeMode.CONTAINER) { + for (var i = 0; i < children.length; ++i) { + var child = children[i]; + if (child.activeInHierarchy) { + activeChildCount++; + newWidth += child.width * this._getUsedScaleValue(child.scaleX); + } + } + newWidth += (activeChildCount - 1) * this.spacingX + this.paddingLeft + this.paddingRight; + } else newWidth = this.node.getContentSize().width; + return newWidth; + }, + _doLayout: function _doLayout() { + if (this.type === Type.HORIZONTAL) { + var newWidth = this._getHorizontalBaseWidth(this.node.children); + var fnPositionY = function fnPositionY(child) { + return child.y; + }; + this._doLayoutHorizontally(newWidth, false, fnPositionY, true); + this.node.width = newWidth; + } else if (this.type === Type.VERTICAL) { + var newHeight = this._getVerticalBaseHeight(this.node.children); + var fnPositionX = function fnPositionX(child) { + return child.x; + }; + this._doLayoutVertically(newHeight, false, fnPositionX, true); + this.node.height = newHeight; + } else this.type === Type.NONE ? this.resizeMode === ResizeMode.CONTAINER && this._doLayoutBasic() : this.type === Type.GRID && this._doLayoutGrid(); + }, + _getUsedScaleValue: function _getUsedScaleValue(value) { + return this.affectedByScale ? Math.abs(value) : 1; + }, + updateLayout: function updateLayout() { + if (this._layoutDirty && this.node.children.length > 0) { + this._doLayout(); + this._layoutDirty = false; + } + } + }); + cc.Layout = module.exports = Layout; + }), { + "../CCNode": 24, + "./CCComponent": 91 + } ], + 97: [ (function(require, module, exports) { + "use strict"; + var RenderComponent = require("../components/CCRenderComponent"); + var BlendFunc = require("../../core/utils/blend-func"); + var MotionStreak = cc.Class({ + name: "cc.MotionStreak", + extends: RenderComponent, + mixins: [ BlendFunc ], + editor: false, + ctor: function ctor() { + this._points = []; + }, + properties: { + preview: { + default: false, + editorOnly: true, + notify: false, + animatable: false + }, + _fadeTime: 1, + fadeTime: { + get: function get() { + return this._fadeTime; + }, + set: function set(value) { + this._fadeTime = value; + this.reset(); + }, + animatable: false, + tooltip: false + }, + _minSeg: 1, + minSeg: { + get: function get() { + return this._minSeg; + }, + set: function set(value) { + this._minSeg = value; + }, + animatable: false, + tooltip: false + }, + _stroke: 64, + stroke: { + get: function get() { + return this._stroke; + }, + set: function set(value) { + this._stroke = value; + }, + animatable: false, + tooltip: false + }, + _texture: { + default: null, + type: cc.Texture2D + }, + texture: { + get: function get() { + return this._texture; + }, + set: function set(value) { + if (this._texture === value) return; + this._texture = value; + this._checkSwitchMaterial(); + this._updateMaterial(); + }, + type: cc.Texture2D, + animatable: false, + tooltip: false + }, + _color: cc.Color.WHITE, + color: { + get: function get() { + return this._color.clone(); + }, + set: function set(value) { + this._color.equals(value) || this._color.set(value); + }, + type: cc.Color, + tooltip: false + }, + _fastMode: false, + fastMode: { + get: function get() { + return this._fastMode; + }, + set: function set(value) { + this._fastMode = value; + }, + animatable: false, + tooltip: false + }, + autoSwitchMaterial: { + type: RenderComponent.EnableType, + default: RenderComponent.EnableType.GLOBAL, + notify: function notify(oldValue) { + if (this.autoSwitchMaterial === oldValue) return; + this.setVertsDirty(); + } + } + }, + setVertsDirty: function setVertsDirty() { + this._checkSwitchMaterial(); + this._updateMaterial(); + this._super(); + }, + __preload: function __preload() { + this._super(); + this._checkSwitchMaterial(); + }, + _checkSwitchMaterial: function _checkSwitchMaterial() { + if (this._assembler) { + var material = this._materials[0]; + if (!material) return; + if (!this._texture) return; + this._assembler.checkAndSwitchMaterial(this, this._texture, material); + } + }, + onEnable: function onEnable() { + this._super(); + this.reset(); + }, + _updateMaterial: function _updateMaterial() { + var material = this.getMaterial(0); + var isMultiMaterial = material.material.isMultiSupport(); + if (isMultiMaterial) { + if (!this._texture) return; + this._updateMultiTexId(material, this._texture); + } else material.getProperty("texture") !== this._texture && material.setProperty("texture", this._texture); + this._assembler && (isMultiMaterial && !this._assembler.isMulti || !isMultiMaterial && this._assembler.isMulti) && this._resetAssembler(); + if (isMultiMaterial && this._texIdDirty && this._assembler) { + if (!this._texture) return; + this._assembler.updateTexId(this); + this._texIdDirty = false; + } + BlendFunc.prototype._updateMaterial.call(this); + }, + onFocusInEditor: false, + onLostFocusInEditor: false, + reset: function reset() { + this._points.length = 0; + this._assembler && this._assembler._renderData.clear(); + false; + }, + lateUpdate: function lateUpdate(dt) { + this._assembler && this._assembler.update(this, dt); + } + }); + cc.MotionStreak = module.exports = MotionStreak; + }), { + "../../core/utils/blend-func": 199, + "../components/CCRenderComponent": 98 + } ], + 98: [ (function(require, module, exports) { + "use strict"; + var _assembler = _interopRequireDefault(require("../renderer/assembler")); + var _materialVariant = _interopRequireDefault(require("../assets/material/material-variant")); + var _valueTypes = require("../value-types"); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + var Component = require("./CCComponent"); + var RenderFlow = require("../renderer/render-flow"); + var Material = require("../assets/material/CCMaterial"); + var _temp_color = new _valueTypes.Color(); + var EnableType = cc.Enum({ + GLOBAL: 0, + ENABLE: 1, + DISABLE: 2 + }); + var RenderComponent = cc.Class({ + name: "RenderComponent", + extends: Component, + editor: false, + statics: { + EnableType: EnableType + }, + properties: { + _materials: { + default: [], + type: Material + }, + materials: { + get: function get() { + return this._materials; + }, + set: function set(val) { + this._materials = val; + this._activateMaterial(); + }, + type: [ Material ], + displayName: "Materials", + animatable: false + } + }, + ctor: function ctor() { + this._vertsDirty = true; + this._texIdDirty = true; + this._texId = 0; + this._assembler = null; + }, + _resetAssembler: function _resetAssembler() { + _assembler["default"].init(this); + this._updateColor(); + this._texId = 0; + this.setVertsDirty(); + }, + __preload: function __preload() { + this._resetAssembler(); + this._activateMaterial(); + }, + onEnable: function onEnable() { + this.node._renderComponent && (this.node._renderComponent.enabled = false); + this.node._renderComponent = this; + this.node._renderFlag |= RenderFlow.FLAG_OPACITY_COLOR; + this.setVertsDirty(); + }, + onDisable: function onDisable() { + this.node._renderComponent = null; + this.disableRender(); + }, + onDestroy: function onDestroy() { + var materials = this._materials; + for (var i = 0; i < materials.length; i++) cc.pool.material.put(materials[i]); + materials.length = 0; + cc.pool.assembler.put(this._assembler); + }, + setVertsDirty: function setVertsDirty() { + this._vertsDirty = true; + this.markForRender(true); + }, + _on3DNodeChanged: function _on3DNodeChanged() { + this._resetAssembler(); + }, + _validateRender: function _validateRender() {}, + markForValidate: function markForValidate() { + cc.RenderFlow.registerValidate(this); + }, + markForRender: function markForRender(enable) { + var flag = RenderFlow.FLAG_RENDER | RenderFlow.FLAG_UPDATE_RENDER_DATA; + if (enable) { + this.node._renderFlag |= flag; + this.markForValidate(); + } else this.node._renderFlag &= ~flag; + }, + disableRender: function disableRender() { + this.node._renderFlag &= ~(RenderFlow.FLAG_RENDER | RenderFlow.FLAG_UPDATE_RENDER_DATA); + }, + getMaterial: function getMaterial(index) { + if (index < 0 || index >= this._materials.length) return null; + var material = this._materials[index]; + if (!material) return null; + var instantiated = _materialVariant["default"].create(material, this); + instantiated !== material && this.setMaterial(index, instantiated); + return instantiated; + }, + getMaterials: function getMaterials() { + var materials = this._materials; + for (var i = 0; i < materials.length; i++) materials[i] = _materialVariant["default"].create(materials[i], this); + return materials; + }, + setMaterial: function setMaterial(index, material) { + if (material !== this._materials[index]) { + material = _materialVariant["default"].create(material, this); + this._materials[index] = material; + } + this._updateMaterial(); + this.markForRender(true); + return material; + }, + _getDefaultMaterial: function _getDefaultMaterial() { + return Material.getBuiltinMaterial("2d-sprite"); + }, + _activateMaterial: function _activateMaterial() { + var materials = this._materials; + if (!materials[0]) { + var material = this._getDefaultMaterial(); + materials[0] = material; + } + for (var i = 0; i < materials.length; i++) materials[i] = _materialVariant["default"].create(materials[i], this); + this._updateMaterial(); + }, + _updateMaterial: function _updateMaterial() {}, + _updateColor: function _updateColor() { + if (this._assembler.updateColor) { + var premultiply = this.srcBlendFactor === cc.macro.BlendFactor.ONE; + premultiply && _valueTypes.Color.premultiplyAlpha(_temp_color, this.node._color); + var color = premultiply ? _temp_color._val : null; + this._assembler.updateColor(this, color); + } + }, + _checkBacth: function _checkBacth(renderer, cullingMask) { + var material = this._materials[0]; + if (material && material.getHash() !== renderer.material.getHash() || renderer.cullingMask !== cullingMask) { + renderer._flush(); + renderer.node = material.getDefine("CC_USE_MODEL") ? this.node : renderer._dummyNode; + renderer.material = material; + renderer.cullingMask = cullingMask; + } + }, + _updateMultiTexId: function _updateMultiTexId(material, texture) { + var multi = material.material.getMultiHandler(); + var spTexture = texture; + var nSpTexture = spTexture.getImpl(); + var same = 0 === this._texId ? material.getProperty("texture") !== nSpTexture : multi.getTexture(this._texId) !== nSpTexture; + if (same) { + var isChanged = Object.prototype.hasOwnProperty.call(material._effect._passes["0"]._properties, "texture"); + var texId = isChanged ? -1 : multi.getIndex(nSpTexture); + if (-1 !== texId) { + this._texId = texId; + this._texIdDirty = true; + } else { + material.setProperty("texture", spTexture); + if (0 !== this._texId) { + this._texId = 0; + this._texIdDirty = true; + } + } + } else this._texIdDirty = false; + } + }); + cc.RenderComponent = module.exports = RenderComponent; + }), { + "../assets/material/CCMaterial": 75, + "../assets/material/material-variant": 82, + "../renderer/assembler": 149, + "../renderer/render-flow": 153, + "../value-types": 220, + "./CCComponent": 91 + } ], + 99: [ (function(require, module, exports) { + "use strict"; + var _materialVariant = _interopRequireDefault(require("../assets/material/material-variant")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + var js = require("../platform/js"); + var macro = require("../platform/CCMacro"); + var textUtils = require("../utils/text-utils"); + var HtmlTextParser = require("../utils/html-text-parser"); + var _htmlTextParser = new HtmlTextParser(); + var HorizontalAlign = macro.TextAlignment; + var VerticalAlign = macro.VerticalTextAlignment; + var RichTextChildName = "RICHTEXT_CHILD"; + var RichTextChildImageName = "RICHTEXT_Image_CHILD"; + var CacheMode = cc.Label.CacheMode; + var RenderComponent = require("./CCRenderComponent"); + function debounce(func, wait, immediate) { + var timeout; + return function() { + var context = this; + var later = function later() { + timeout = null; + immediate || func.apply(context, arguments); + }; + var callNow = immediate && !timeout; + clearTimeout(timeout); + timeout = setTimeout(later, wait); + callNow && func.apply(context, arguments); + }; + } + var pool = new js.Pool(function(node) { + false; + false; + if (!cc.isValid(node)) return false; + var outline = node.getComponent(cc.LabelOutline); + outline && (outline.width = 0); + return true; + }, 20); + pool.get = function(string, richtext) { + var labelNode = this._get(); + labelNode || (labelNode = new cc.PrivateNode(RichTextChildName)); + labelNode.setPosition(0, 0); + labelNode.setAnchorPoint(.5, .5); + labelNode.skewX = 0; + var labelComponent = labelNode.getComponent(cc.Label); + labelComponent || (labelComponent = labelNode.addComponent(cc.Label)); + labelComponent.string = ""; + labelComponent.horizontalAlign = HorizontalAlign.LEFT; + labelComponent.verticalAlign = VerticalAlign.CENTER; + labelComponent._forceUseCanvas = true; + return labelNode; + }; + var RichText = cc.Class({ + name: "cc.RichText", + extends: cc.Component, + ctor: function ctor() { + this._textArray = null; + this._labelSegments = []; + this._labelSegmentsCache = []; + this._linesWidth = []; + false; + this._updateRichTextStatus = this._updateRichText; + }, + editor: false, + properties: { + string: { + default: "RichText", + multiline: true, + tooltip: false, + notify: function notify() { + this._updateRichTextStatus(); + } + }, + horizontalAlign: { + default: HorizontalAlign.LEFT, + type: HorizontalAlign, + tooltip: false, + animatable: false, + notify: function notify(oldValue) { + if (this.horizontalAlign === oldValue) return; + this._layoutDirty = true; + this._updateRichTextStatus(); + } + }, + fontSize: { + default: 40, + tooltip: false, + notify: function notify(oldValue) { + if (this.fontSize === oldValue) return; + this._layoutDirty = true; + this._updateRichTextStatus(); + } + }, + _fontFamily: "Arial", + fontFamily: { + tooltip: false, + get: function get() { + return this._fontFamily; + }, + set: function set(value) { + if (this._fontFamily === value) return; + this._fontFamily = value; + this._layoutDirty = true; + this._updateRichTextStatus(); + }, + animatable: false + }, + font: { + default: null, + type: cc.TTFFont, + tooltip: false, + notify: function notify(oldValue) { + if (this.font === oldValue) return; + this._layoutDirty = true; + if (this.font) { + false; + this.useSystemFont = false; + this._onTTFLoaded(); + } else this.useSystemFont = true; + this._updateRichTextStatus(); + } + }, + _isSystemFontUsed: true, + useSystemFont: { + get: function get() { + return this._isSystemFontUsed; + }, + set: function set(value) { + if (this._isSystemFontUsed === value) return; + this._isSystemFontUsed = value; + false; + this._layoutDirty = true; + this._updateRichTextStatus(); + }, + animatable: false, + tooltip: false + }, + cacheMode: { + default: CacheMode.NONE, + type: CacheMode, + tooltip: false, + notify: function notify(oldValue) { + if (this.cacheMode === oldValue) return; + this._updateRichTextStatus(); + }, + animatable: false + }, + maxWidth: { + default: 0, + tooltip: false, + notify: function notify(oldValue) { + if (this.maxWidth === oldValue) return; + this._layoutDirty = true; + this._updateRichTextStatus(); + } + }, + lineHeight: { + default: 40, + tooltip: false, + notify: function notify(oldValue) { + if (this.lineHeight === oldValue) return; + this._layoutDirty = true; + this._updateRichTextStatus(); + } + }, + imageAtlas: { + default: null, + type: cc.SpriteAtlas, + tooltip: false, + notify: function notify(oldValue) { + if (this.imageAtlas === oldValue) return; + this._layoutDirty = true; + this._updateRichTextStatus(); + } + }, + handleTouchEvent: { + default: true, + tooltip: false, + notify: function notify(oldValue) { + if (this.handleTouchEvent === oldValue) return; + this.enabledInHierarchy && (this.handleTouchEvent ? this._addEventListeners() : this._removeEventListeners()); + } + }, + customMaterial: { + default: null, + type: cc.Material, + notify: function notify(oldValue) { + if (this.customMaterial === oldValue) return; + var material = null == this.customMaterial ? this._getDefaultMaterial() : this.customMaterial; + for (var i = 0; i < this._labelSegments.length; i++) { + var labelComponent = this._labelSegments[i].getComponent(cc.Label); + labelComponent && (0 === labelComponent._materials.length ? labelComponent._materials[0] = _materialVariant["default"].create(material, labelComponent) : labelComponent.setMaterial(0, material)); + var spriteComponent = this._labelSegments[i].getComponent(cc.Sprite); + spriteComponent && (0 === spriteComponent._materials.length ? spriteComponent._materials[0] = _materialVariant["default"].create(material, spriteComponent) : spriteComponent.setMaterial(0, material)); + } + for (var _i = 0; _i < this._labelSegmentsCache.length; _i++) { + var _labelComponent = this._labelSegmentsCache[_i].getComponent(cc.Label); + _labelComponent && (0 === _labelComponent._materials.length ? _labelComponent._materials[0] = _materialVariant["default"].create(material, _labelComponent) : _labelComponent.setMaterial(0, material)); + } + } + }, + autoSwitchMaterial: { + type: RenderComponent.EnableType, + default: RenderComponent.EnableType.GLOBAL, + notify: function notify(oldValue) { + if (this.autoSwitchMaterial === oldValue) return; + for (var i = 0; i < this._labelSegments.length; i++) { + var labelComponent = this._labelSegments[i].getComponent(cc.Label); + labelComponent && (labelComponent.autoSwitchMaterial = this.autoSwitchMaterial); + var spriteComponent = this._labelSegments[i].getComponent(cc.Sprite); + spriteComponent && (spriteComponent.autoSwitchMaterial = this.autoSwitchMaterial); + } + for (var _i2 = 0; _i2 < this._labelSegmentsCache.length; _i2++) { + var _labelComponent2 = this._labelSegmentsCache[_i2].getComponent(cc.Label); + _labelComponent2 && (_labelComponent2.autoSwitchMaterial = this.autoSwitchMaterial); + } + } + }, + allowDynamicAtlas: { + type: RenderComponent.EnableType, + default: RenderComponent.EnableType.GLOBAL, + notify: function notify(oldValue) { + if (this.allowDynamicAtlas === oldValue) return; + for (var i = 0; i < this._labelSegments.length; i++) { + var labelComponent = this._labelSegments[i].getComponent(cc.Label); + labelComponent && (labelComponent.allowDynamicAtlas = this.allowDynamicAtlas); + var spriteComponent = this._labelSegments[i].getComponent(cc.Sprite); + spriteComponent && (spriteComponent.allowDynamicAtlas = this.allowDynamicAtlas); + } + for (var _i3 = 0; _i3 < this._labelSegmentsCache.length; _i3++) { + var _labelComponent3 = this._labelSegmentsCache[_i3].getComponent(cc.Label); + _labelComponent3 && (_labelComponent3.allowDynamicAtlas = this.allowDynamicAtlas); + } + } + }, + enableRetina: { + type: RenderComponent.EnableType, + default: RenderComponent.EnableType.GLOBAL, + notify: function notify(oldValue) { + if (this.enableRetina === oldValue) return; + for (var i = 0; i < this._labelSegments.length; i++) { + var labelComponent = this._labelSegments[i].getComponent(cc.Label); + labelComponent && (labelComponent.enableRetina = this.enableRetina); + } + for (var _i4 = 0; _i4 < this._labelSegmentsCache.length; _i4++) { + var _labelComponent4 = this._labelSegmentsCache[_i4].getComponent(cc.Label); + _labelComponent4 && (_labelComponent4.enableRetina = this.enableRetina); + } + } + } + }, + statics: { + HorizontalAlign: HorizontalAlign, + VerticalAlign: VerticalAlign + }, + onEnable: function onEnable() { + this.handleTouchEvent && this._addEventListeners(); + this._updateRichText(); + this._activateChildren(true); + }, + onDisable: function onDisable() { + this.handleTouchEvent && this._removeEventListeners(); + this._activateChildren(false); + }, + start: function start() { + this._onTTFLoaded(); + }, + _onColorChanged: function _onColorChanged(parentColor) { + var children = this.node.children; + children.forEach((function(childNode) { + childNode.color = parentColor; + })); + }, + _addEventListeners: function _addEventListeners() { + this.node.on(cc.Node.EventType.TOUCH_END, this._onTouchEnded, this); + this.node.on(cc.Node.EventType.COLOR_CHANGED, this._onColorChanged, this); + }, + _removeEventListeners: function _removeEventListeners() { + this.node.off(cc.Node.EventType.TOUCH_END, this._onTouchEnded, this); + this.node.off(cc.Node.EventType.COLOR_CHANGED, this._onColorChanged, this); + }, + _updateLabelSegmentTextAttributes: function _updateLabelSegmentTextAttributes() { + this._labelSegments.forEach(function(item) { + this._applyTextAttribute(item, null, true); + }.bind(this)); + }, + _createFontLabel: function _createFontLabel(string) { + return pool.get(string, this); + }, + _onTTFLoaded: function _onTTFLoaded() { + if (this.font instanceof cc.TTFFont) if (this.font._nativeAsset) { + this._layoutDirty = true; + this._updateRichText(); + } else { + var self = this; + cc.assetManager.postLoadNative(this.font, (function(err) { + self._layoutDirty = true; + self._updateRichText(); + })); + } else { + this._layoutDirty = true; + this._updateRichText(); + } + }, + _measureText: function _measureText(styleIndex, string) { + var self = this; + var func = function func(string) { + var label; + if (0 === self._labelSegmentsCache.length) { + label = self._createFontLabel(string); + self._labelSegmentsCache.push(label); + } else label = self._labelSegmentsCache[0]; + label._styleIndex = styleIndex; + self._applyTextAttribute(label, string, true); + var labelSize = label.getContentSize(); + return labelSize.width; + }; + return string ? func(string) : func; + }, + _onTouchEnded: function _onTouchEnded(event) { + var _this = this; + var components = this.node.getComponents(cc.Component); + var _loop = function _loop(i) { + var labelSegment = _this._labelSegments[i]; + var clickHandler = labelSegment._clickHandler; + var clickParam = labelSegment._clickParam; + if (clickHandler && _this._containsTouchLocation(labelSegment, event.touch.getLocation())) { + components.forEach((function(component) { + component.enabledInHierarchy && component[clickHandler] && component[clickHandler](event, clickParam); + })); + event.stopPropagation(); + } + }; + for (var i = 0; i < this._labelSegments.length; ++i) _loop(i); + }, + _containsTouchLocation: function _containsTouchLocation(label, point) { + var myRect = label.getBoundingBoxToWorld(); + return myRect.contains(point); + }, + _resetState: function _resetState() { + var children = this.node.children; + for (var i = children.length - 1; i >= 0; i--) { + var child = children[i]; + if (child.name === RichTextChildName || child.name === RichTextChildImageName) { + child.parent === this.node ? child.parent = null : children.splice(i, 1); + child.name === RichTextChildName && pool.put(child); + } + } + this._labelSegments.length = 0; + this._labelSegmentsCache.length = 0; + this._linesWidth.length = 0; + this._lineOffsetX = 0; + this._lineCount = 1; + this._labelWidth = 0; + this._labelHeight = 0; + this._layoutDirty = true; + }, + onRestore: false, + _activateChildren: function _activateChildren(active) { + for (var i = this.node.children.length - 1; i >= 0; i--) { + var child = this.node.children[i]; + child.name !== RichTextChildName && child.name !== RichTextChildImageName || (child.active = active); + } + }, + _addLabelSegment: function _addLabelSegment(stringToken, styleIndex) { + var labelSegment; + labelSegment = 0 === this._labelSegmentsCache.length ? this._createFontLabel(stringToken) : this._labelSegmentsCache.pop(); + labelSegment._styleIndex = styleIndex; + labelSegment._lineCount = this._lineCount; + labelSegment.active = this.node.active; + labelSegment.setAnchorPoint(0, 0); + this._applyTextAttribute(labelSegment, stringToken); + this.node.addChild(labelSegment); + this._labelSegments.push(labelSegment); + return labelSegment; + }, + _updateRichTextWithMaxWidth: function _updateRichTextWithMaxWidth(labelString, labelWidth, styleIndex) { + var fragmentWidth = labelWidth; + var labelSegment; + if (this._lineOffsetX > 0 && fragmentWidth + this._lineOffsetX > this.maxWidth) { + var checkStartIndex = 0; + while (this._lineOffsetX <= this.maxWidth) { + var checkEndIndex = this._getFirstWordLen(labelString, checkStartIndex, labelString.length); + var checkString = labelString.substr(checkStartIndex, checkEndIndex); + var checkStringWidth = this._measureText(styleIndex, checkString); + if (!(this._lineOffsetX + checkStringWidth <= this.maxWidth)) { + if (checkStartIndex > 0) { + var remainingString = labelString.substr(0, checkStartIndex); + this._addLabelSegment(remainingString, styleIndex); + labelString = labelString.substr(checkStartIndex, labelString.length); + fragmentWidth = this._measureText(styleIndex, labelString); + } + this._updateLineInfo(); + break; + } + this._lineOffsetX += checkStringWidth; + checkStartIndex += checkEndIndex; + } + } + if (fragmentWidth > this.maxWidth) { + var fragments = textUtils.fragmentText(labelString, fragmentWidth, this.maxWidth, this._measureText(styleIndex)); + for (var k = 0; k < fragments.length; ++k) { + var splitString = fragments[k]; + labelSegment = this._addLabelSegment(splitString, styleIndex); + var labelSize = labelSegment.getContentSize(); + this._lineOffsetX += labelSize.width; + fragments.length > 1 && k < fragments.length - 1 && this._updateLineInfo(); + } + } else { + this._lineOffsetX += fragmentWidth; + this._addLabelSegment(labelString, styleIndex); + } + }, + _isLastComponentCR: function _isLastComponentCR(stringToken) { + return stringToken.length - 1 === stringToken.lastIndexOf("\n"); + }, + _updateLineInfo: function _updateLineInfo() { + this._linesWidth.push(this._lineOffsetX); + this._lineOffsetX = 0; + this._lineCount++; + }, + _needsUpdateTextLayout: function _needsUpdateTextLayout(newTextArray) { + if (this._layoutDirty || !this._textArray || !newTextArray) return true; + if (this._textArray.length !== newTextArray.length) return true; + for (var i = 0; i < this._textArray.length; ++i) { + var oldItem = this._textArray[i]; + var newItem = newTextArray[i]; + if (oldItem.text !== newItem.text) return true; + var oldStyle = oldItem.style, newStyle = newItem.style; + if (oldStyle) { + if (newStyle) { + if (!oldStyle.outline !== !newStyle.outline) return true; + if (oldStyle.size !== newStyle.size || !oldStyle.italic !== !newStyle.italic || oldStyle.isImage !== newStyle.isImage) return true; + if (oldStyle.src !== newStyle.src || oldStyle.imageAlign !== newStyle.imageAlign || oldStyle.imageHeight !== newStyle.imageHeight || oldStyle.imageWidth !== newStyle.imageWidth || oldStyle.imageOffset !== newStyle.imageOffset) return true; + } else if (oldStyle.size || oldStyle.italic || oldStyle.isImage || oldStyle.outline) return true; + } else if (newStyle && (newStyle.size || newStyle.italic || newStyle.isImage || newStyle.outline)) return true; + } + return false; + }, + _addRichTextImageElement: function _addRichTextImageElement(richTextElement) { + var spriteFrameName = richTextElement.style.src; + var spriteFrame = this.imageAtlas.getSpriteFrame(spriteFrameName); + if (spriteFrame) { + var spriteNode = new cc.PrivateNode(RichTextChildImageName); + var spriteComponent = spriteNode.addComponent(cc.Sprite); + spriteComponent.autoSwitchMaterial = this.autoSwitchMaterial; + spriteComponent.allowDynamicAtlas = this.allowDynamicAtlas; + this.customMaterial && (0 === spriteComponent._materials.length ? spriteComponent._materials[0] = _materialVariant["default"].create(this.customMaterial, spriteComponent) : spriteComponent._materials[0].material !== this.customMaterial && spriteComponent.setMaterial(0, this.customMaterial)); + switch (richTextElement.style.imageAlign) { + case "top": + spriteNode.setAnchorPoint(0, 1); + break; + + case "center": + spriteNode.setAnchorPoint(0, .5); + break; + + default: + spriteNode.setAnchorPoint(0, 0); + } + richTextElement.style.imageOffset && (spriteNode._imageOffset = richTextElement.style.imageOffset); + spriteComponent.type = cc.Sprite.Type.SLICED; + spriteComponent.sizeMode = cc.Sprite.SizeMode.CUSTOM; + this.node.addChild(spriteNode); + this._labelSegments.push(spriteNode); + var spriteRect = spriteFrame.getRect(); + var scaleFactor = 1; + var spriteWidth = spriteRect.width; + var spriteHeight = spriteRect.height; + var expectWidth = richTextElement.style.imageWidth; + var expectHeight = richTextElement.style.imageHeight; + if (expectHeight > 0) { + scaleFactor = expectHeight / spriteHeight; + spriteWidth *= scaleFactor; + spriteHeight *= scaleFactor; + } else { + scaleFactor = this.lineHeight / spriteHeight; + spriteWidth *= scaleFactor; + spriteHeight *= scaleFactor; + } + expectWidth > 0 && (spriteWidth = expectWidth); + if (this.maxWidth > 0) { + this._lineOffsetX + spriteWidth > this.maxWidth && this._updateLineInfo(); + this._lineOffsetX += spriteWidth; + } else { + this._lineOffsetX += spriteWidth; + this._lineOffsetX > this._labelWidth && (this._labelWidth = this._lineOffsetX); + } + spriteComponent.spriteFrame = spriteFrame; + spriteNode.setContentSize(spriteWidth, spriteHeight); + spriteNode._lineCount = this._lineCount; + if (richTextElement.style.event) { + richTextElement.style.event.click && (spriteNode._clickHandler = richTextElement.style.event.click); + richTextElement.style.event.param ? spriteNode._clickParam = richTextElement.style.event.param : spriteNode._clickParam = ""; + } else spriteNode._clickHandler = null; + } else cc.warnID(4400); + }, + _updateRichText: function _updateRichText() { + if (!this.enabledInHierarchy) return; + var newTextArray = _htmlTextParser.parse(this.string); + if (!this._needsUpdateTextLayout(newTextArray)) { + this._textArray = newTextArray; + this._updateLabelSegmentTextAttributes(); + return; + } + this._textArray = newTextArray; + this._resetState(); + var lastEmptyLine = false; + var label; + var labelSize; + for (var i = 0; i < this._textArray.length; ++i) { + var richTextElement = this._textArray[i]; + var text = richTextElement.text; + if ("" === text) { + if (richTextElement.style && richTextElement.style.newline) { + this._updateLineInfo(); + continue; + } + if (richTextElement.style && richTextElement.style.isImage && this.imageAtlas) { + this._addRichTextImageElement(richTextElement); + continue; + } + } + var multilineTexts = text.split("\n"); + for (var j = 0; j < multilineTexts.length; ++j) { + var labelString = multilineTexts[j]; + if ("" === labelString) { + if (this._isLastComponentCR(text) && j === multilineTexts.length - 1) continue; + this._updateLineInfo(); + lastEmptyLine = true; + continue; + } + lastEmptyLine = false; + if (this.maxWidth > 0) { + var labelWidth = this._measureText(i, labelString); + this._updateRichTextWithMaxWidth(labelString, labelWidth, i); + multilineTexts.length > 1 && j < multilineTexts.length - 1 && this._updateLineInfo(); + } else { + label = this._addLabelSegment(labelString, i); + labelSize = label.getContentSize(); + this._lineOffsetX += labelSize.width; + this._lineOffsetX > this._labelWidth && (this._labelWidth = this._lineOffsetX); + multilineTexts.length > 1 && j < multilineTexts.length - 1 && this._updateLineInfo(); + } + } + } + lastEmptyLine || this._linesWidth.push(this._lineOffsetX); + this.maxWidth > 0 && (this._labelWidth = this.maxWidth); + this._labelHeight = (this._lineCount + textUtils.BASELINE_RATIO) * this.lineHeight; + this.node.setContentSize(this._labelWidth, this._labelHeight); + this._updateRichTextPosition(); + this._layoutDirty = false; + }, + _getFirstWordLen: function _getFirstWordLen(text, startIndex, textLen) { + var character = text.charAt(startIndex); + if (textUtils.isUnicodeCJK(character) || textUtils.isUnicodeSpace(character)) return 1; + var len = 1; + for (var index = startIndex + 1; index < textLen; ++index) { + character = text.charAt(index); + if (textUtils.isUnicodeSpace(character) || textUtils.isUnicodeCJK(character)) break; + len++; + } + return len; + }, + _updateRichTextPosition: function _updateRichTextPosition() { + var nextTokenX = 0; + var nextLineIndex = 1; + var totalLineCount = this._lineCount; + for (var i = 0; i < this._labelSegments.length; ++i) { + var label = this._labelSegments[i]; + var lineCount = label._lineCount; + if (lineCount > nextLineIndex) { + nextTokenX = 0; + nextLineIndex = lineCount; + } + var lineOffsetX = 0; + switch (this.horizontalAlign) { + case HorizontalAlign.LEFT: + lineOffsetX = -this._labelWidth / 2; + break; + + case HorizontalAlign.CENTER: + lineOffsetX = -this._linesWidth[lineCount - 1] / 2; + break; + + case HorizontalAlign.RIGHT: + lineOffsetX = this._labelWidth / 2 - this._linesWidth[lineCount - 1]; + } + label.x = nextTokenX + lineOffsetX; + var labelSize = label.getContentSize(); + label.y = this.lineHeight * (totalLineCount - lineCount) - this._labelHeight / 2; + lineCount === nextLineIndex && (nextTokenX += labelSize.width); + var sprite = label.getComponent(cc.Sprite); + if (sprite) { + var lineHeightSet = this.lineHeight; + var lineHeightReal = this.lineHeight * (1 + textUtils.BASELINE_RATIO); + switch (label.anchorY) { + case 1: + label.y += lineHeightSet + (lineHeightReal - lineHeightSet) / 2; + break; + + case .5: + label.y += lineHeightReal / 2; + break; + + default: + label.y += (lineHeightReal - lineHeightSet) / 2; + } + if (label._imageOffset) { + var offsets = label._imageOffset.split(","); + if (1 === offsets.length && offsets[0]) { + var offsetY = parseFloat(offsets[0]); + Number.isInteger(offsetY) && (label.y += offsetY); + } else if (2 === offsets.length) { + var offsetX = parseFloat(offsets[0]); + var _offsetY = parseFloat(offsets[1]); + Number.isInteger(offsetX) && (label.x += offsetX); + Number.isInteger(_offsetY) && (label.y += _offsetY); + } + } + } + var outline = label.getComponent(cc.LabelOutline); + outline && outline.width && (label.y = label.y - outline.width); + } + }, + _convertLiteralColorValue: function _convertLiteralColorValue(color) { + var colorValue = color.toUpperCase(); + if (cc.Color[colorValue]) return cc.Color[colorValue]; + var out = cc.color(); + return out.fromHEX(color); + }, + _applyTextAttribute: function _applyTextAttribute(labelNode, string, force) { + var labelComponent = labelNode.getComponent(cc.Label); + if (!labelComponent) return; + var index = labelNode._styleIndex; + var textStyle = null; + this._textArray[index] && (textStyle = this._textArray[index].style); + textStyle && textStyle.color ? labelNode.color = this._convertLiteralColorValue(textStyle.color) : labelNode.color = this.node.color; + labelComponent.cacheMode = this.cacheMode; + labelComponent.autoSwitchMaterial = this.autoSwitchMaterial; + labelComponent.allowDynamicAtlas = this.allowDynamicAtlas; + labelComponent.enableRetina = this.enableRetina; + this.customMaterial && (0 === labelComponent._materials.length ? labelComponent._materials[0] = _materialVariant["default"].create(this.customMaterial, labelComponent) : labelComponent._materials[0].material !== this.customMaterial && labelComponent.setMaterial(0, this.customMaterial)); + var isAsset = this.font instanceof cc.Font; + isAsset && !this._isSystemFontUsed ? labelComponent.font = this.font : labelComponent.fontFamily = this.fontFamily; + labelComponent.useSystemFont = this._isSystemFontUsed; + labelComponent.lineHeight = this.lineHeight; + labelComponent.enableBold = textStyle && textStyle.bold; + labelComponent.enableItalics = textStyle && textStyle.italic; + textStyle && textStyle.italic && (labelNode.skewX = 12); + labelComponent.enableUnderline = textStyle && textStyle.underline; + if (textStyle && textStyle.outline) { + var labelOutlineComponent = labelNode.getComponent(cc.LabelOutline); + labelOutlineComponent || (labelOutlineComponent = labelNode.addComponent(cc.LabelOutline)); + labelOutlineComponent.color = this._convertLiteralColorValue(textStyle.outline.color); + labelOutlineComponent.width = textStyle.outline.width; + } + textStyle && textStyle.size ? labelComponent.fontSize = textStyle.size : labelComponent.fontSize = this.fontSize; + if (null !== string) { + "string" !== typeof string && (string = "" + string); + labelComponent.string = string; + } + force && labelComponent._forceUpdateRenderData(); + if (textStyle && textStyle.event) { + textStyle.event.click && (labelNode._clickHandler = textStyle.event.click); + textStyle.event.param ? labelNode._clickParam = textStyle.event.param : labelNode._clickParam = ""; + } else labelNode._clickHandler = null; + }, + onDestroy: function onDestroy() { + for (var i = 0; i < this._labelSegments.length; ++i) { + this._labelSegments[i].removeFromParent(); + pool.put(this._labelSegments[i]); + } + } + }); + cc.RichText = module.exports = RichText; + }), { + "../assets/material/material-variant": 82, + "../platform/CCMacro": 126, + "../platform/js": 142, + "../utils/html-text-parser": 203, + "../utils/text-utils": 212, + "./CCRenderComponent": 98 + } ], + 100: [ (function(require, module, exports) { + "use strict"; + var misc = require("../utils/misc"); + var Component = require("./CCComponent"); + var GETTINGSHORTERFACTOR = 20; + var Direction = cc.Enum({ + HORIZONTAL: 0, + VERTICAL: 1 + }); + var Scrollbar = cc.Class({ + name: "cc.Scrollbar", + extends: require("./CCComponent"), + editor: false, + properties: { + _scrollView: null, + _touching: false, + _autoHideRemainingTime: { + default: 0, + serializable: false + }, + _opacity: 255, + handle: { + default: null, + type: cc.Sprite, + tooltip: false, + notify: function notify() { + this._onScroll(cc.v2(0, 0)); + }, + animatable: false + }, + direction: { + default: Direction.HORIZONTAL, + type: Direction, + tooltip: false, + notify: function notify() { + this._onScroll(cc.v2(0, 0)); + }, + animatable: false + }, + enableAutoHide: { + default: true, + animatable: false, + tooltip: false + }, + autoHideTime: { + default: 1, + animatable: false, + tooltip: false + } + }, + statics: { + Direction: Direction + }, + setTargetScrollView: function setTargetScrollView(scrollView) { + this._scrollView = scrollView; + }, + _convertToScrollViewSpace: function _convertToScrollViewSpace(content) { + var scrollViewNode = this._scrollView.node; + var worldSpacePos = content.convertToWorldSpaceAR(cc.v2(-content.anchorX * content.width, -content.anchorY * content.height)); + var scrollViewSpacePos = scrollViewNode.convertToNodeSpaceAR(worldSpacePos); + scrollViewSpacePos.x += scrollViewNode.anchorX * scrollViewNode.width; + scrollViewSpacePos.y += scrollViewNode.anchorY * scrollViewNode.height; + return scrollViewSpacePos; + }, + _setOpacity: function _setOpacity(opacity) { + if (this.handle) { + this.node.opacity = opacity; + this.handle.node.opacity = opacity; + } + }, + _onScroll: function _onScroll(outOfBoundary) { + if (this._scrollView) { + var content = this._scrollView.content; + if (content) { + var contentSize = content.getContentSize(); + var scrollViewSize = this._scrollView.node.getContentSize(); + var handleNodeSize = this.node.getContentSize(); + if (this._conditionalDisableScrollBar(contentSize, scrollViewSize)) return; + if (this.enableAutoHide) { + this._autoHideRemainingTime = this.autoHideTime; + this._setOpacity(this._opacity); + } + var contentMeasure = 0; + var scrollViewMeasure = 0; + var outOfBoundaryValue = 0; + var contentPosition = 0; + var handleNodeMeasure = 0; + if (this.direction === Direction.HORIZONTAL) { + contentMeasure = contentSize.width; + scrollViewMeasure = scrollViewSize.width; + handleNodeMeasure = handleNodeSize.width; + outOfBoundaryValue = outOfBoundary.x; + contentPosition = -this._convertToScrollViewSpace(content).x; + } else if (this.direction === Direction.VERTICAL) { + contentMeasure = contentSize.height; + scrollViewMeasure = scrollViewSize.height; + handleNodeMeasure = handleNodeSize.height; + outOfBoundaryValue = outOfBoundary.y; + contentPosition = -this._convertToScrollViewSpace(content).y; + } + var length = this._calculateLength(contentMeasure, scrollViewMeasure, handleNodeMeasure, outOfBoundaryValue); + var position = this._calculatePosition(contentMeasure, scrollViewMeasure, handleNodeMeasure, contentPosition, outOfBoundaryValue, length); + this._updateLength(length); + this._updateHanlderPosition(position); + } + } + }, + _updateHanlderPosition: function _updateHanlderPosition(position) { + if (this.handle) { + var oldPosition = this._fixupHandlerPosition(); + this.handle.node.setPosition(position.x + oldPosition.x, position.y + oldPosition.y); + } + }, + _fixupHandlerPosition: function _fixupHandlerPosition() { + var barSize = this.node.getContentSize(); + var barAnchor = this.node.getAnchorPoint(); + var handleSize = this.handle.node.getContentSize(); + var handleParent = this.handle.node.parent; + var leftBottomWorldPosition = this.node.convertToWorldSpaceAR(cc.v2(-barSize.width * barAnchor.x, -barSize.height * barAnchor.y)); + var fixupPosition = handleParent.convertToNodeSpaceAR(leftBottomWorldPosition); + this.direction === Direction.HORIZONTAL ? fixupPosition = cc.v2(fixupPosition.x, fixupPosition.y + (barSize.height - handleSize.height) / 2) : this.direction === Direction.VERTICAL && (fixupPosition = cc.v2(fixupPosition.x + (barSize.width - handleSize.width) / 2, fixupPosition.y)); + this.handle.node.setPosition(fixupPosition); + return fixupPosition; + }, + _onTouchBegan: function _onTouchBegan() { + if (!this.enableAutoHide) return; + this._touching = true; + }, + _conditionalDisableScrollBar: function _conditionalDisableScrollBar(contentSize, scrollViewSize) { + if (contentSize.width <= scrollViewSize.width && this.direction === Direction.HORIZONTAL) return true; + if (contentSize.height <= scrollViewSize.height && this.direction === Direction.VERTICAL) return true; + return false; + }, + _onTouchEnded: function _onTouchEnded() { + if (!this.enableAutoHide) return; + this._touching = false; + if (this.autoHideTime <= 0) return; + if (this._scrollView) { + var content = this._scrollView.content; + if (content) { + var contentSize = content.getContentSize(); + var scrollViewSize = this._scrollView.node.getContentSize(); + if (this._conditionalDisableScrollBar(contentSize, scrollViewSize)) return; + } + } + this._autoHideRemainingTime = this.autoHideTime; + }, + _calculateLength: function _calculateLength(contentMeasure, scrollViewMeasure, handleNodeMeasure, outOfBoundary) { + var denominatorValue = contentMeasure; + outOfBoundary && (denominatorValue += (outOfBoundary > 0 ? outOfBoundary : -outOfBoundary) * GETTINGSHORTERFACTOR); + var lengthRation = scrollViewMeasure / denominatorValue; + return handleNodeMeasure * lengthRation; + }, + _calculatePosition: function _calculatePosition(contentMeasure, scrollViewMeasure, handleNodeMeasure, contentPosition, outOfBoundary, actualLenth) { + var denominatorValue = contentMeasure - scrollViewMeasure; + outOfBoundary && (denominatorValue += Math.abs(outOfBoundary)); + var positionRatio = 0; + if (denominatorValue) { + positionRatio = contentPosition / denominatorValue; + positionRatio = misc.clamp01(positionRatio); + } + var position = (handleNodeMeasure - actualLenth) * positionRatio; + return this.direction === Direction.VERTICAL ? cc.v2(0, position) : cc.v2(position, 0); + }, + _updateLength: function _updateLength(length) { + if (this.handle) { + var handleNode = this.handle.node; + var handleNodeSize = handleNode.getContentSize(); + handleNode.setAnchorPoint(cc.v2(0, 0)); + this.direction === Direction.HORIZONTAL ? handleNode.setContentSize(length, handleNodeSize.height) : handleNode.setContentSize(handleNodeSize.width, length); + } + }, + _processAutoHide: function _processAutoHide(deltaTime) { + if (!this.enableAutoHide || this._autoHideRemainingTime <= 0) return; + if (this._touching) return; + this._autoHideRemainingTime -= deltaTime; + if (this._autoHideRemainingTime <= this.autoHideTime) { + this._autoHideRemainingTime = Math.max(0, this._autoHideRemainingTime); + var opacity = this._opacity * (this._autoHideRemainingTime / this.autoHideTime); + this._setOpacity(opacity); + } + }, + start: function start() { + this.enableAutoHide && this._setOpacity(0); + }, + hide: function hide() { + this._autoHideRemainingTime = 0; + this._setOpacity(0); + }, + show: function show() { + this._autoHideRemainingTime = this.autoHideTime; + this._setOpacity(this._opacity); + }, + update: function update(dt) { + this._processAutoHide(dt); + } + }); + cc.Scrollbar = module.exports = Scrollbar; + }), { + "../utils/misc": 205, + "./CCComponent": 91 + } ], + 101: [ (function(require, module, exports) { + "use strict"; + var misc = require("../utils/misc"); + var NodeEvent = require("../CCNode").EventType; + var RenderComponent = require("./CCRenderComponent"); + var BlendFunc = require("../utils/blend-func"); + var SpriteType = cc.Enum({ + SIMPLE: 0, + SLICED: 1, + TILED: 2, + FILLED: 3, + MESH: 4 + }); + var FillType = cc.Enum({ + HORIZONTAL: 0, + VERTICAL: 1, + RADIAL: 2 + }); + var SizeMode = cc.Enum({ + CUSTOM: 0, + TRIMMED: 1, + RAW: 2 + }); + var State = cc.Enum({ + NORMAL: 0, + GRAY: 1 + }); + var Sprite = cc.Class({ + name: "cc.Sprite", + extends: RenderComponent, + mixins: [ BlendFunc ], + editor: false, + properties: { + _spriteFrame: { + default: null, + type: cc.SpriteFrame + }, + _type: SpriteType.SIMPLE, + _sizeMode: SizeMode.TRIMMED, + _fillType: 0, + _fillCenter: cc.v2(0, 0), + _fillStart: 0, + _fillRange: 0, + _isTrimmedMode: true, + _atlas: { + default: null, + type: cc.SpriteAtlas, + tooltip: false, + editorOnly: true, + visible: true, + animatable: false + }, + spriteFrame: { + get: function get() { + return this._spriteFrame; + }, + set: function set(value, force) { + var lastSprite = this._spriteFrame; + false; + if (lastSprite === value) return; + this._spriteFrame = value; + this._applySpriteFrame(lastSprite); + false; + }, + type: cc.SpriteFrame + }, + type: { + get: function get() { + return this._type; + }, + set: function set(value) { + if (this._type !== value) { + this._type = value; + this.setVertsDirty(); + this._resetAssembler(); + } + }, + type: SpriteType, + animatable: false, + tooltip: false + }, + fillType: { + get: function get() { + return this._fillType; + }, + set: function set(value) { + if (value !== this._fillType) { + this._fillType = value; + this.setVertsDirty(); + this._resetAssembler(); + } + }, + type: FillType, + tooltip: false + }, + fillCenter: { + get: function get() { + return this._fillCenter; + }, + set: function set(value) { + this._fillCenter.x = value.x; + this._fillCenter.y = value.y; + this._type === SpriteType.FILLED && this.setVertsDirty(); + }, + tooltip: false + }, + fillStart: { + get: function get() { + return this._fillStart; + }, + set: function set(value) { + this._fillStart = misc.clampf(value, -1, 1); + this._type === SpriteType.FILLED && this.setVertsDirty(); + }, + tooltip: false + }, + fillRange: { + get: function get() { + return this._fillRange; + }, + set: function set(value) { + this._fillRange = misc.clampf(value, -1, 1); + this._type === SpriteType.FILLED && this.setVertsDirty(); + }, + tooltip: false + }, + trim: { + get: function get() { + return this._isTrimmedMode; + }, + set: function set(value) { + if (this._isTrimmedMode !== value) { + this._isTrimmedMode = value; + this._type !== SpriteType.SIMPLE && this._type !== SpriteType.MESH || this.setVertsDirty(); + } + }, + animatable: false, + tooltip: false + }, + sizeMode: { + get: function get() { + return this._sizeMode; + }, + set: function set(value) { + this._sizeMode = value; + value !== SizeMode.CUSTOM && this._applySpriteSize(); + }, + animatable: false, + type: SizeMode, + tooltip: false + }, + autoSwitchMaterial: { + type: RenderComponent.EnableType, + default: RenderComponent.EnableType.GLOBAL, + notify: function notify(oldValue) { + if (this.autoSwitchMaterial === oldValue) return; + this.setVertsDirty(); + } + }, + allowDynamicAtlas: { + type: RenderComponent.EnableType, + default: RenderComponent.EnableType.GLOBAL, + notify: function notify(oldValue) { + if (this.allowDynamicAtlas === oldValue) return; + this.setVertsDirty(); + } + } + }, + statics: { + FillType: FillType, + Type: SpriteType, + SizeMode: SizeMode, + State: State + }, + setVisible: function setVisible(visible) { + this.enabled = visible; + }, + setState: function setState() {}, + getState: function getState() {}, + __preload: function __preload() { + this._super(); + false; + this._applySpriteFrame(); + }, + onEnable: function onEnable() { + this._super(); + this._spriteFrame && this._spriteFrame.ensureLoadTexture(); + this.node.on(cc.Node.EventType.SIZE_CHANGED, this.setVertsDirty, this); + this.node.on(cc.Node.EventType.ANCHOR_CHANGED, this.setVertsDirty, this); + }, + onDisable: function onDisable() { + this._super(); + this.node.off(cc.Node.EventType.SIZE_CHANGED, this.setVertsDirty, this); + this.node.off(cc.Node.EventType.ANCHOR_CHANGED, this.setVertsDirty, this); + }, + _updateMaterial: function _updateMaterial() { + var texture = null; + this._spriteFrame && (texture = this._spriteFrame.getTexture()); + var material = this.getMaterial(0); + if (material) { + void 0 !== material.getDefine("USE_TEXTURE") && material.define("USE_TEXTURE", true); + var isMultiMaterial = material.material.isMultiSupport(); + isMultiMaterial ? this._texIdDirty = true : material.getProperty("texture") !== texture && material.setProperty("texture", texture); + this._assembler && (isMultiMaterial && !this._assembler.isMulti || !isMultiMaterial && this._assembler.isMulti) && this._resetAssembler(); + } + BlendFunc.prototype._updateMaterial.call(this); + }, + _applyAtlas: false, + _validateRender: function _validateRender() { + var spriteFrame = this._spriteFrame; + if (this._materials[0] && spriteFrame && spriteFrame.textureLoaded()) return; + this.disableRender(); + }, + _applySpriteSize: function _applySpriteSize() { + if (!this._spriteFrame || !this.isValid) return; + if (SizeMode.RAW === this._sizeMode) { + var size = this._spriteFrame._originalSize; + this.node.setContentSize(size); + } else if (SizeMode.TRIMMED === this._sizeMode) { + var rect = this._spriteFrame._rect; + this.node.setContentSize(rect.width, rect.height); + } + this.setVertsDirty(); + }, + _applySpriteFrame: function _applySpriteFrame(oldFrame) { + if (!this.isValid) return; + var oldTexture = oldFrame && oldFrame.getTexture(); + oldTexture && !oldTexture.loaded && oldFrame.off("load", this._applySpriteSize, this); + this._updateMaterial(); + var spriteFrame = this._spriteFrame; + if (spriteFrame) { + var newTexture = spriteFrame.getTexture(); + if (newTexture && newTexture.loaded) this._applySpriteSize(); else { + this.disableRender(); + spriteFrame.once("load", this._applySpriteSize, this); + } + } else this.disableRender(); + false; + } + }); + false; + cc.Sprite = module.exports = Sprite; + }), { + "../CCNode": 24, + "../utils/blend-func": 199, + "../utils/misc": 205, + "./CCRenderComponent": 98 + } ], + 102: [ (function(require, module, exports) { + "use strict"; + var GraySpriteState = require("../utils/gray-sprite-state"); + var Toggle = cc.Class({ + name: "cc.Toggle", + extends: require("./CCButton"), + mixins: [ GraySpriteState ], + editor: false, + properties: { + _N$isChecked: true, + isChecked: { + get: function get() { + return this._N$isChecked; + }, + set: function set(value) { + if (value === this._N$isChecked) return; + var group = this.toggleGroup || this._toggleContainer; + if (group && group.enabled && this._N$isChecked && !group.allowSwitchOff) return; + this._N$isChecked = value; + this._updateCheckMark(); + group && group.enabled && group.updateToggles(this); + cc.Toggle._triggerEventInScript_isChecked && this._emitToggleEvents(); + }, + tooltip: false + }, + toggleGroup: { + default: null, + tooltip: false, + type: require("./CCToggleGroup") + }, + checkMark: { + default: null, + type: cc.Sprite, + tooltip: false + }, + checkEvents: { + default: [], + type: cc.Component.EventHandler + }, + _resizeToTarget: { + animatable: false, + set: function set(value) { + value && this._resizeNodeToTargetNode(); + } + } + }, + statics: { + _triggerEventInScript_check: false, + _triggerEventInScript_isChecked: false + }, + onEnable: function onEnable() { + this._super(); + true; + this._registerToggleEvent(); + this.toggleGroup && this.toggleGroup.enabledInHierarchy && this.toggleGroup.addToggle(this); + }, + onDisable: function onDisable() { + this._super(); + true; + this._unregisterToggleEvent(); + this.toggleGroup && this.toggleGroup.enabledInHierarchy && this.toggleGroup.removeToggle(this); + }, + _hideCheckMark: function _hideCheckMark() { + this._N$isChecked = false; + this._updateCheckMark(); + }, + toggle: function toggle(event) { + this.isChecked = !this.isChecked; + cc.Toggle._triggerEventInScript_isChecked || !cc.Toggle._triggerEventInScript_check && !event || this._emitToggleEvents(); + }, + check: function check() { + this.isChecked = true; + !cc.Toggle._triggerEventInScript_isChecked && cc.Toggle._triggerEventInScript_check && this._emitToggleEvents(); + }, + uncheck: function uncheck() { + this.isChecked = false; + !cc.Toggle._triggerEventInScript_isChecked && cc.Toggle._triggerEventInScript_check && this._emitToggleEvents(); + }, + _updateCheckMark: function _updateCheckMark() { + this.checkMark && (this.checkMark.node.active = !!this.isChecked); + }, + _updateDisabledState: function _updateDisabledState() { + this._super(); + if (this.enableAutoGrayEffect && this.checkMark) { + var useGrayMaterial = !this.interactable; + this._switchGrayMaterial(useGrayMaterial, this.checkMark); + } + }, + _registerToggleEvent: function _registerToggleEvent() { + this.node.on("click", this.toggle, this); + }, + _unregisterToggleEvent: function _unregisterToggleEvent() { + this.node.off("click", this.toggle, this); + }, + _emitToggleEvents: function _emitToggleEvents() { + this.node.emit("toggle", this); + this.checkEvents && cc.Component.EventHandler.emitEvents(this.checkEvents, this); + } + }); + cc.Toggle = module.exports = Toggle; + var js = require("../platform/js"); + js.get(Toggle.prototype, "_toggleContainer", (function() { + var parent = this.node.parent; + if (cc.Node.isNode(parent)) return parent.getComponent(cc.ToggleContainer); + return null; + })); + }), { + "../platform/js": 142, + "../utils/gray-sprite-state": 202, + "./CCButton": 89, + "./CCToggleGroup": 104 + } ], + 103: [ (function(require, module, exports) { + "use strict"; + var ToggleContainer = cc.Class({ + name: "cc.ToggleContainer", + extends: cc.Component, + editor: false, + properties: { + allowSwitchOff: { + tooltip: false, + default: false + }, + checkEvents: { + default: [], + type: cc.Component.EventHandler + } + }, + updateToggles: function updateToggles(toggle) { + if (!this.enabledInHierarchy) return; + if (toggle.isChecked) { + this.toggleItems.forEach((function(item) { + item !== toggle && item.isChecked && item.enabled && item._hideCheckMark(); + })); + this.checkEvents && cc.Component.EventHandler.emitEvents(this.checkEvents, toggle); + } + }, + _allowOnlyOneToggleChecked: function _allowOnlyOneToggleChecked() { + var isChecked = false; + this.toggleItems.forEach((function(item) { + isChecked ? item._hideCheckMark() : item.isChecked && (isChecked = true); + })); + return isChecked; + }, + _makeAtLeastOneToggleChecked: function _makeAtLeastOneToggleChecked() { + var isChecked = this._allowOnlyOneToggleChecked(); + if (!isChecked && !this.allowSwitchOff) { + var toggleItems = this.toggleItems; + toggleItems.length > 0 && toggleItems[0].check(); + } + }, + onEnable: function onEnable() { + this._makeAtLeastOneToggleChecked(); + this.node.on("child-added", this._allowOnlyOneToggleChecked, this); + this.node.on("child-removed", this._makeAtLeastOneToggleChecked, this); + }, + onDisable: function onDisable() { + this.node.off("child-added", this._allowOnlyOneToggleChecked, this); + this.node.off("child-removed", this._makeAtLeastOneToggleChecked, this); + } + }); + var js = require("../platform/js"); + js.get(ToggleContainer.prototype, "toggleItems", (function() { + return this.node._children.map((function(item) { + return item.getComponent(cc.Toggle); + })).filter(Boolean); + })); + cc.ToggleContainer = module.exports = ToggleContainer; + }), { + "../platform/js": 142 + } ], + 104: [ (function(require, module, exports) { + "use strict"; + var ToggleGroup = cc.Class({ + name: "cc.ToggleGroup", + extends: cc.Component, + ctor: function ctor() { + this._toggleItems = []; + }, + editor: false, + properties: { + allowSwitchOff: { + tooltip: false, + default: false + }, + toggleItems: { + get: function get() { + return this._toggleItems; + } + } + }, + updateToggles: function updateToggles(toggle) { + if (!this.enabledInHierarchy) return; + this._toggleItems.forEach((function(item) { + toggle.isChecked && item !== toggle && item.isChecked && item.enabled && item._hideCheckMark(); + })); + }, + addToggle: function addToggle(toggle) { + var index = this._toggleItems.indexOf(toggle); + -1 === index && this._toggleItems.push(toggle); + this._allowOnlyOneToggleChecked(); + }, + removeToggle: function removeToggle(toggle) { + var index = this._toggleItems.indexOf(toggle); + index > -1 && this._toggleItems.splice(index, 1); + this._makeAtLeastOneToggleChecked(); + }, + _allowOnlyOneToggleChecked: function _allowOnlyOneToggleChecked() { + var isChecked = false; + this._toggleItems.forEach((function(item) { + isChecked && item.enabled && item._hideCheckMark(); + item.isChecked && item.enabled && (isChecked = true); + })); + return isChecked; + }, + _makeAtLeastOneToggleChecked: function _makeAtLeastOneToggleChecked() { + var isChecked = this._allowOnlyOneToggleChecked(); + isChecked || this.allowSwitchOff || this._toggleItems.length > 0 && (this._toggleItems[0].isChecked = true); + }, + start: function start() { + this._makeAtLeastOneToggleChecked(); + } + }); + var js = require("../platform/js"); + var showed = false; + js.get(cc, "ToggleGroup", (function() { + if (!showed) { + cc.errorID(1405, "cc.ToggleGroup", "cc.ToggleContainer"); + showed = true; + } + return ToggleGroup; + })); + module.exports = ToggleGroup; + }), { + "../platform/js": 142 + } ], + 105: [ (function(require, module, exports) { + "use strict"; + var WidgetManager = require("../base-ui/CCWidgetManager"); + var AlignMode = WidgetManager.AlignMode; + var AlignFlags = WidgetManager._AlignFlags; + var TOP = AlignFlags.TOP; + var MID = AlignFlags.MID; + var BOT = AlignFlags.BOT; + var LEFT = AlignFlags.LEFT; + var CENTER = AlignFlags.CENTER; + var RIGHT = AlignFlags.RIGHT; + var TOP_BOT = TOP | BOT; + var LEFT_RIGHT = LEFT | RIGHT; + var Widget = cc.Class({ + name: "cc.Widget", + extends: require("./CCComponent"), + editor: false, + properties: { + target: { + get: function get() { + return this._target; + }, + set: function set(value) { + this._target = value; + false; + }, + type: cc.Node, + tooltip: false + }, + isAlignTop: { + get: function get() { + return (this._alignFlags & TOP) > 0; + }, + set: function set(value) { + this._setAlign(TOP, value); + }, + animatable: false, + tooltip: false + }, + isAlignVerticalCenter: { + get: function get() { + return (this._alignFlags & MID) > 0; + }, + set: function set(value) { + if (value) { + this.isAlignTop = false; + this.isAlignBottom = false; + this._alignFlags |= MID; + } else this._alignFlags &= ~MID; + }, + animatable: false, + tooltip: false + }, + isAlignBottom: { + get: function get() { + return (this._alignFlags & BOT) > 0; + }, + set: function set(value) { + this._setAlign(BOT, value); + }, + animatable: false, + tooltip: false + }, + isAlignLeft: { + get: function get() { + return (this._alignFlags & LEFT) > 0; + }, + set: function set(value) { + this._setAlign(LEFT, value); + }, + animatable: false, + tooltip: false + }, + isAlignHorizontalCenter: { + get: function get() { + return (this._alignFlags & CENTER) > 0; + }, + set: function set(value) { + if (value) { + this.isAlignLeft = false; + this.isAlignRight = false; + this._alignFlags |= CENTER; + } else this._alignFlags &= ~CENTER; + }, + animatable: false, + tooltip: false + }, + isAlignRight: { + get: function get() { + return (this._alignFlags & RIGHT) > 0; + }, + set: function set(value) { + this._setAlign(RIGHT, value); + }, + animatable: false, + tooltip: false + }, + isStretchWidth: { + get: function get() { + return (this._alignFlags & LEFT_RIGHT) === LEFT_RIGHT; + }, + visible: false + }, + isStretchHeight: { + get: function get() { + return (this._alignFlags & TOP_BOT) === TOP_BOT; + }, + visible: false + }, + top: { + get: function get() { + return this._top; + }, + set: function set(value) { + this._top = value; + }, + tooltip: false + }, + bottom: { + get: function get() { + return this._bottom; + }, + set: function set(value) { + this._bottom = value; + }, + tooltip: false + }, + left: { + get: function get() { + return this._left; + }, + set: function set(value) { + this._left = value; + }, + tooltip: false + }, + right: { + get: function get() { + return this._right; + }, + set: function set(value) { + this._right = value; + }, + tooltip: false + }, + horizontalCenter: { + get: function get() { + return this._horizontalCenter; + }, + set: function set(value) { + this._horizontalCenter = value; + }, + tooltip: false + }, + verticalCenter: { + get: function get() { + return this._verticalCenter; + }, + set: function set(value) { + this._verticalCenter = value; + }, + tooltip: false + }, + isAbsoluteHorizontalCenter: { + get: function get() { + return this._isAbsHorizontalCenter; + }, + set: function set(value) { + this._isAbsHorizontalCenter = value; + }, + animatable: false + }, + isAbsoluteVerticalCenter: { + get: function get() { + return this._isAbsVerticalCenter; + }, + set: function set(value) { + this._isAbsVerticalCenter = value; + }, + animatable: false + }, + isAbsoluteTop: { + get: function get() { + return this._isAbsTop; + }, + set: function set(value) { + this._isAbsTop = value; + }, + animatable: false + }, + isAbsoluteBottom: { + get: function get() { + return this._isAbsBottom; + }, + set: function set(value) { + this._isAbsBottom = value; + }, + animatable: false + }, + isAbsoluteLeft: { + get: function get() { + return this._isAbsLeft; + }, + set: function set(value) { + this._isAbsLeft = value; + }, + animatable: false + }, + isAbsoluteRight: { + get: function get() { + return this._isAbsRight; + }, + set: function set(value) { + this._isAbsRight = value; + }, + animatable: false + }, + alignMode: { + default: AlignMode.ON_WINDOW_RESIZE, + type: AlignMode, + tooltip: false + }, + _wasAlignOnce: { + default: void 0, + formerlySerializedAs: "isAlignOnce" + }, + _target: null, + _alignFlags: 0, + _left: 0, + _right: 0, + _top: 0, + _bottom: 0, + _verticalCenter: 0, + _horizontalCenter: 0, + _isAbsLeft: true, + _isAbsRight: true, + _isAbsTop: true, + _isAbsBottom: true, + _isAbsHorizontalCenter: true, + _isAbsVerticalCenter: true, + _originalWidth: 0, + _originalHeight: 0 + }, + statics: { + AlignMode: AlignMode + }, + onLoad: function onLoad() { + if (void 0 !== this._wasAlignOnce) { + this.alignMode = this._wasAlignOnce ? AlignMode.ONCE : AlignMode.ALWAYS; + this._wasAlignOnce = void 0; + } + }, + onEnable: function onEnable() { + WidgetManager.add(this); + }, + onDisable: function onDisable() { + WidgetManager.remove(this); + }, + _validateTargetInDEV: false, + _setAlign: function _setAlign(flag, isAlign) { + var current = (this._alignFlags & flag) > 0; + if (isAlign === current) return; + var isHorizontal = (flag & LEFT_RIGHT) > 0; + if (isAlign) { + this._alignFlags |= flag; + if (isHorizontal) { + this.isAlignHorizontalCenter = false; + if (this.isStretchWidth) { + this._originalWidth = this.node.width; + false; + } + } else { + this.isAlignVerticalCenter = false; + if (this.isStretchHeight) { + this._originalHeight = this.node.height; + false; + } + } + false; + } else { + isHorizontal ? this.isStretchWidth && (this.node.width = this._originalWidth) : this.isStretchHeight && (this.node.height = this._originalHeight); + this._alignFlags &= ~flag; + } + }, + updateAlignment: function updateAlignment() { + WidgetManager.updateAlignment(this.node); + } + }); + Object.defineProperty(Widget.prototype, "isAlignOnce", { + get: function get() { + true; + cc.warn("`widget.isAlignOnce` is deprecated, use `widget.alignMode === cc.Widget.AlignMode.ONCE` instead please."); + return this.alignMode === AlignMode.ONCE; + }, + set: function set(value) { + true; + cc.warn("`widget.isAlignOnce` is deprecated, use `widget.alignMode = cc.Widget.AlignMode.*` instead please."); + this.alignMode = value ? AlignMode.ONCE : AlignMode.ALWAYS; + } + }); + cc.Widget = module.exports = Widget; + }), { + "../base-ui/CCWidgetManager": 84, + "./CCComponent": 91 + } ], + 106: [ (function(require, module, exports) { + "use strict"; + require("./CCComponent"); + require("./CCComponentEventHandler"); + require("./missing-script"); + var SubContextView = require("./SubContextView"); + if (!SubContextView) { + SubContextView = cc.Class({ + name: "cc.SubContextView", + extends: cc.Component + }); + cc.SubContextView = cc.WXSubContextView = cc.SwanSubContextView = SubContextView; + } + var components = [ require("./CCSprite"), require("./CCWidget"), require("./CCCanvas"), require("./CCAudioSource"), require("./CCAnimation"), require("./CCButton"), require("./CCLabel"), require("./CCProgressBar"), require("./CCMask"), require("./CCScrollBar"), require("./CCScrollView"), require("./CCPageViewIndicator"), require("./CCPageView"), require("./CCSlider"), require("./CCLayout"), require("./editbox/CCEditBox"), require("./CCLabelOutline"), require("./CCLabelShadow"), require("./CCRichText"), require("./CCToggleContainer"), require("./CCToggleGroup"), require("./CCToggle"), require("./CCBlockInputEvents"), require("./CCMotionStreak"), require("./CCSafeArea"), SubContextView ]; + module.exports = components; + }), { + "./CCAnimation": 87, + "./CCAudioSource": void 0, + "./CCBlockInputEvents": 88, + "./CCButton": 89, + "./CCCanvas": 90, + "./CCComponent": 91, + "./CCComponentEventHandler": 92, + "./CCLabel": 93, + "./CCLabelOutline": 94, + "./CCLabelShadow": 95, + "./CCLayout": 96, + "./CCMask": void 0, + "./CCMotionStreak": 97, + "./CCPageView": void 0, + "./CCPageViewIndicator": void 0, + "./CCProgressBar": void 0, + "./CCRichText": 99, + "./CCSafeArea": void 0, + "./CCScrollBar": 100, + "./CCScrollView": void 0, + "./CCSlider": void 0, + "./CCSprite": 101, + "./CCToggle": 102, + "./CCToggleContainer": 103, + "./CCToggleGroup": 104, + "./CCWidget": 105, + "./SubContextView": void 0, + "./editbox/CCEditBox": void 0, + "./missing-script": 107 + } ], + 107: [ (function(require, module, exports) { + "use strict"; + var js = cc.js; + var MissingScript = cc.Class({ + name: "cc.MissingScript", + extends: cc.Component, + editor: { + inspector: "packages://inspector/inspectors/comps/missing-script.js" + }, + properties: { + compiled: { + default: false, + serializable: false + }, + _$erialized: { + default: null, + visible: false, + editorOnly: true + } + }, + ctor: false, + statics: { + safeFindClass: function safeFindClass(id) { + var cls = js._getClassById(id); + if (cls) return cls; + cc.deserialize.reportMissingClass(id); + return MissingScript; + } + }, + onLoad: function onLoad() { + cc.warnID(4600, this.node.name); + } + }); + cc._MissingScript = module.exports = MissingScript; + }), {} ], + 108: [ (function(require, module, exports) { + "use strict"; + var js = cc.js; + require("../event/event"); + var EventMouse = function EventMouse(eventType, bubbles) { + cc.Event.call(this, cc.Event.MOUSE, bubbles); + this._eventType = eventType; + this._button = 0; + this._x = 0; + this._y = 0; + this._prevX = 0; + this._prevY = 0; + this._scrollX = 0; + this._scrollY = 0; + }; + js.extend(EventMouse, cc.Event); + var proto = EventMouse.prototype; + proto.setScrollData = function(scrollX, scrollY) { + this._scrollX = scrollX; + this._scrollY = scrollY; + }; + proto.getScrollX = function() { + return this._scrollX; + }; + proto.getScrollY = function() { + return this._scrollY; + }; + proto.setLocation = function(x, y) { + this._x = x; + this._y = y; + }; + proto.getLocation = function() { + return cc.v2(this._x, this._y); + }; + proto.getLocationInView = function() { + return cc.v2(this._x, cc.view._designResolutionSize.height - this._y); + }; + proto._setPrevCursor = function(x, y) { + this._prevX = x; + this._prevY = y; + }; + proto.getPreviousLocation = function() { + return cc.v2(this._prevX, this._prevY); + }; + proto.getDelta = function() { + return cc.v2(this._x - this._prevX, this._y - this._prevY); + }; + proto.getDeltaX = function() { + return this._x - this._prevX; + }; + proto.getDeltaY = function() { + return this._y - this._prevY; + }; + proto.setButton = function(button) { + this._button = button; + }; + proto.getButton = function() { + return this._button; + }; + proto.getLocationX = function() { + return this._x; + }; + proto.getLocationY = function() { + return this._y; + }; + EventMouse.NONE = 0; + EventMouse.DOWN = 1; + EventMouse.UP = 2; + EventMouse.MOVE = 3; + EventMouse.SCROLL = 4; + EventMouse.BUTTON_LEFT = 0; + EventMouse.BUTTON_RIGHT = 2; + EventMouse.BUTTON_MIDDLE = 1; + EventMouse.BUTTON_4 = 3; + EventMouse.BUTTON_5 = 4; + EventMouse.BUTTON_6 = 5; + EventMouse.BUTTON_7 = 6; + EventMouse.BUTTON_8 = 7; + var EventTouch = function EventTouch(touchArr, bubbles) { + cc.Event.call(this, cc.Event.TOUCH, bubbles); + this._eventCode = 0; + this._touches = touchArr || []; + this.touch = null; + this.currentTouch = null; + }; + js.extend(EventTouch, cc.Event); + proto = EventTouch.prototype; + proto.getEventCode = function() { + return this._eventCode; + }; + proto.getTouches = function() { + return this._touches; + }; + proto._setEventCode = function(eventCode) { + this._eventCode = eventCode; + }; + proto._setTouches = function(touches) { + this._touches = touches; + }; + proto.setLocation = function(x, y) { + this.touch && this.touch.setTouchInfo(this.touch.getID(), x, y); + }; + proto.getLocation = function() { + return this.touch ? this.touch.getLocation() : cc.v2(); + }; + proto.getLocationInView = function() { + return this.touch ? this.touch.getLocationInView() : cc.v2(); + }; + proto.getPreviousLocation = function() { + return this.touch ? this.touch.getPreviousLocation() : cc.v2(); + }; + proto.getStartLocation = function() { + return this.touch ? this.touch.getStartLocation() : cc.v2(); + }; + proto.getID = function() { + return this.touch ? this.touch.getID() : null; + }; + proto.getDelta = function() { + return this.touch ? this.touch.getDelta() : cc.v2(); + }; + proto.getDeltaX = function() { + return this.touch ? this.touch.getDelta().x : 0; + }; + proto.getDeltaY = function() { + return this.touch ? this.touch.getDelta().y : 0; + }; + proto.getLocationX = function() { + return this.touch ? this.touch.getLocationX() : 0; + }; + proto.getLocationY = function() { + return this.touch ? this.touch.getLocationY() : 0; + }; + EventTouch.MAX_TOUCHES = 5; + EventTouch.BEGAN = 0; + EventTouch.MOVED = 1; + EventTouch.ENDED = 2; + EventTouch.CANCELED = 3; + var EventAcceleration = function EventAcceleration(acc, bubbles) { + cc.Event.call(this, cc.Event.ACCELERATION, bubbles); + this.acc = acc; + }; + js.extend(EventAcceleration, cc.Event); + var EventKeyboard = function EventKeyboard(keyCode, isPressed, bubbles) { + cc.Event.call(this, cc.Event.KEYBOARD, bubbles); + this.keyCode = keyCode; + this.isPressed = isPressed; + }; + js.extend(EventKeyboard, cc.Event); + cc.Event.EventMouse = EventMouse; + cc.Event.EventTouch = EventTouch; + cc.Event.EventAcceleration = EventAcceleration; + cc.Event.EventKeyboard = EventKeyboard; + module.exports = cc.Event; + }), { + "../event/event": 115 + } ], + 109: [ (function(require, module, exports) { + "use strict"; + var js = require("../platform/js"); + cc.EventListener = function(type, listenerID, callback) { + this._onEvent = callback; + this._type = type || 0; + this._listenerID = listenerID || ""; + this._registered = false; + this._fixedPriority = 0; + this._node = null; + this._target = null; + this._paused = true; + this._isEnabled = true; + }; + cc.EventListener.prototype = { + constructor: cc.EventListener, + _setPaused: function _setPaused(paused) { + this._paused = paused; + }, + _isPaused: function _isPaused() { + return this._paused; + }, + _setRegistered: function _setRegistered(registered) { + this._registered = registered; + }, + _isRegistered: function _isRegistered() { + return this._registered; + }, + _getType: function _getType() { + return this._type; + }, + _getListenerID: function _getListenerID() { + return this._listenerID; + }, + _setFixedPriority: function _setFixedPriority(fixedPriority) { + this._fixedPriority = fixedPriority; + }, + _getFixedPriority: function _getFixedPriority() { + return this._fixedPriority; + }, + _setSceneGraphPriority: function _setSceneGraphPriority(node) { + this._target = node; + this._node = node; + }, + _getSceneGraphPriority: function _getSceneGraphPriority() { + return this._node; + }, + checkAvailable: function checkAvailable() { + return null !== this._onEvent; + }, + clone: function clone() { + return null; + }, + setEnabled: function setEnabled(enabled) { + this._isEnabled = enabled; + }, + isEnabled: function isEnabled() { + return this._isEnabled; + }, + retain: function retain() {}, + release: function release() {} + }; + cc.EventListener.UNKNOWN = 0; + cc.EventListener.TOUCH_ONE_BY_ONE = 1; + cc.EventListener.TOUCH_ALL_AT_ONCE = 2; + cc.EventListener.KEYBOARD = 3; + cc.EventListener.MOUSE = 4; + cc.EventListener.ACCELERATION = 6; + cc.EventListener.CUSTOM = 8; + var ListenerID = cc.EventListener.ListenerID = { + MOUSE: "__cc_mouse", + TOUCH_ONE_BY_ONE: "__cc_touch_one_by_one", + TOUCH_ALL_AT_ONCE: "__cc_touch_all_at_once", + KEYBOARD: "__cc_keyboard", + ACCELERATION: "__cc_acceleration" + }; + var Custom = function Custom(listenerId, callback) { + this._onCustomEvent = callback; + cc.EventListener.call(this, cc.EventListener.CUSTOM, listenerId, this._callback); + }; + js.extend(Custom, cc.EventListener); + js.mixin(Custom.prototype, { + _onCustomEvent: null, + _callback: function _callback(event) { + null !== this._onCustomEvent && this._onCustomEvent(event); + }, + checkAvailable: function checkAvailable() { + return cc.EventListener.prototype.checkAvailable.call(this) && null !== this._onCustomEvent; + }, + clone: function clone() { + return new Custom(this._listenerID, this._onCustomEvent); + } + }); + var Mouse = function Mouse() { + cc.EventListener.call(this, cc.EventListener.MOUSE, ListenerID.MOUSE, this._callback); + }; + js.extend(Mouse, cc.EventListener); + js.mixin(Mouse.prototype, { + onMouseDown: null, + onMouseUp: null, + onMouseMove: null, + onMouseScroll: null, + _callback: function _callback(event) { + var eventType = cc.Event.EventMouse; + switch (event._eventType) { + case eventType.DOWN: + this.onMouseDown && this.onMouseDown(event); + break; + + case eventType.UP: + this.onMouseUp && this.onMouseUp(event); + break; + + case eventType.MOVE: + this.onMouseMove && this.onMouseMove(event); + break; + + case eventType.SCROLL: + this.onMouseScroll && this.onMouseScroll(event); + } + }, + clone: function clone() { + var eventListener = new Mouse(); + eventListener.onMouseDown = this.onMouseDown; + eventListener.onMouseUp = this.onMouseUp; + eventListener.onMouseMove = this.onMouseMove; + eventListener.onMouseScroll = this.onMouseScroll; + return eventListener; + }, + checkAvailable: function checkAvailable() { + return true; + } + }); + var TouchOneByOne = function TouchOneByOne() { + cc.EventListener.call(this, cc.EventListener.TOUCH_ONE_BY_ONE, ListenerID.TOUCH_ONE_BY_ONE, null); + this._claimedTouches = []; + }; + js.extend(TouchOneByOne, cc.EventListener); + js.mixin(TouchOneByOne.prototype, { + constructor: TouchOneByOne, + _claimedTouches: null, + swallowTouches: false, + onTouchBegan: null, + onTouchMoved: null, + onTouchEnded: null, + onTouchCancelled: null, + setSwallowTouches: function setSwallowTouches(needSwallow) { + this.swallowTouches = needSwallow; + }, + isSwallowTouches: function isSwallowTouches() { + return this.swallowTouches; + }, + clone: function clone() { + var eventListener = new TouchOneByOne(); + eventListener.onTouchBegan = this.onTouchBegan; + eventListener.onTouchMoved = this.onTouchMoved; + eventListener.onTouchEnded = this.onTouchEnded; + eventListener.onTouchCancelled = this.onTouchCancelled; + eventListener.swallowTouches = this.swallowTouches; + return eventListener; + }, + checkAvailable: function checkAvailable() { + if (!this.onTouchBegan) { + cc.logID(1801); + return false; + } + return true; + } + }); + var TouchAllAtOnce = function TouchAllAtOnce() { + cc.EventListener.call(this, cc.EventListener.TOUCH_ALL_AT_ONCE, ListenerID.TOUCH_ALL_AT_ONCE, null); + }; + js.extend(TouchAllAtOnce, cc.EventListener); + js.mixin(TouchAllAtOnce.prototype, { + constructor: TouchAllAtOnce, + onTouchesBegan: null, + onTouchesMoved: null, + onTouchesEnded: null, + onTouchesCancelled: null, + clone: function clone() { + var eventListener = new TouchAllAtOnce(); + eventListener.onTouchesBegan = this.onTouchesBegan; + eventListener.onTouchesMoved = this.onTouchesMoved; + eventListener.onTouchesEnded = this.onTouchesEnded; + eventListener.onTouchesCancelled = this.onTouchesCancelled; + return eventListener; + }, + checkAvailable: function checkAvailable() { + if (null === this.onTouchesBegan && null === this.onTouchesMoved && null === this.onTouchesEnded && null === this.onTouchesCancelled) { + cc.logID(1802); + return false; + } + return true; + } + }); + var Acceleration = function Acceleration(callback) { + this._onAccelerationEvent = callback; + cc.EventListener.call(this, cc.EventListener.ACCELERATION, ListenerID.ACCELERATION, this._callback); + }; + js.extend(Acceleration, cc.EventListener); + js.mixin(Acceleration.prototype, { + constructor: Acceleration, + _onAccelerationEvent: null, + _callback: function _callback(event) { + this._onAccelerationEvent(event.acc, event); + }, + checkAvailable: function checkAvailable() { + cc.assertID(this._onAccelerationEvent, 1803); + return true; + }, + clone: function clone() { + return new Acceleration(this._onAccelerationEvent); + } + }); + var Keyboard = function Keyboard() { + cc.EventListener.call(this, cc.EventListener.KEYBOARD, ListenerID.KEYBOARD, this._callback); + }; + js.extend(Keyboard, cc.EventListener); + js.mixin(Keyboard.prototype, { + constructor: Keyboard, + onKeyPressed: null, + onKeyReleased: null, + _callback: function _callback(event) { + event.isPressed ? this.onKeyPressed && this.onKeyPressed(event.keyCode, event) : this.onKeyReleased && this.onKeyReleased(event.keyCode, event); + }, + clone: function clone() { + var eventListener = new Keyboard(); + eventListener.onKeyPressed = this.onKeyPressed; + eventListener.onKeyReleased = this.onKeyReleased; + return eventListener; + }, + checkAvailable: function checkAvailable() { + if (null === this.onKeyPressed && null === this.onKeyReleased) { + cc.logID(1800); + return false; + } + return true; + } + }); + cc.EventListener.create = function(argObj) { + cc.assertID(argObj && argObj.event, 1900); + var listenerType = argObj.event; + delete argObj.event; + var listener = null; + if (listenerType === cc.EventListener.TOUCH_ONE_BY_ONE) listener = new TouchOneByOne(); else if (listenerType === cc.EventListener.TOUCH_ALL_AT_ONCE) listener = new TouchAllAtOnce(); else if (listenerType === cc.EventListener.MOUSE) listener = new Mouse(); else if (listenerType === cc.EventListener.CUSTOM) { + listener = new Custom(argObj.eventName, argObj.callback); + delete argObj.eventName; + delete argObj.callback; + } else if (listenerType === cc.EventListener.KEYBOARD) listener = new Keyboard(); else if (listenerType === cc.EventListener.ACCELERATION) { + listener = new Acceleration(argObj.callback); + delete argObj.callback; + } + for (var key in argObj) listener[key] = argObj[key]; + return listener; + }; + module.exports = cc.EventListener; + }), { + "../platform/js": 142 + } ], + 110: [ (function(require, module, exports) { + "use strict"; + var js = require("../platform/js"); + require("./CCEventListener"); + var ListenerID = cc.EventListener.ListenerID; + var _EventListenerVector = function _EventListenerVector() { + this._fixedListeners = []; + this._sceneGraphListeners = []; + this.gt0Index = 0; + }; + _EventListenerVector.prototype = { + constructor: _EventListenerVector, + size: function size() { + return this._fixedListeners.length + this._sceneGraphListeners.length; + }, + empty: function empty() { + return 0 === this._fixedListeners.length && 0 === this._sceneGraphListeners.length; + }, + push: function push(listener) { + 0 === listener._getFixedPriority() ? this._sceneGraphListeners.push(listener) : this._fixedListeners.push(listener); + }, + clearSceneGraphListeners: function clearSceneGraphListeners() { + this._sceneGraphListeners.length = 0; + }, + clearFixedListeners: function clearFixedListeners() { + this._fixedListeners.length = 0; + }, + clear: function clear() { + this._sceneGraphListeners.length = 0; + this._fixedListeners.length = 0; + }, + getFixedPriorityListeners: function getFixedPriorityListeners() { + return this._fixedListeners; + }, + getSceneGraphPriorityListeners: function getSceneGraphPriorityListeners() { + return this._sceneGraphListeners; + } + }; + var __getListenerID = function __getListenerID(event) { + var eventType = cc.Event, type = event.type; + if (type === eventType.ACCELERATION) return ListenerID.ACCELERATION; + if (type === eventType.KEYBOARD) return ListenerID.KEYBOARD; + if (type.startsWith(eventType.MOUSE)) return ListenerID.MOUSE; + type.startsWith(eventType.TOUCH) && cc.logID(2e3); + return ""; + }; + var eventManager = { + DIRTY_NONE: 0, + DIRTY_FIXED_PRIORITY: 1, + DIRTY_SCENE_GRAPH_PRIORITY: 2, + DIRTY_ALL: 3, + _listenersMap: {}, + _priorityDirtyFlagMap: {}, + _nodeListenersMap: {}, + _toAddedListeners: [], + _toRemovedListeners: [], + _dirtyListeners: {}, + _inDispatch: 0, + _isEnabled: false, + _currentTouch: null, + _currentTouchListener: null, + _internalCustomListenerIDs: [], + _setDirtyForNode: function _setDirtyForNode(node) { + var selListeners = this._nodeListenersMap[node._id]; + if (void 0 !== selListeners) for (var j = 0, len = selListeners.length; j < len; j++) { + var selListener = selListeners[j]; + var listenerID = selListener._getListenerID(); + null == this._dirtyListeners[listenerID] && (this._dirtyListeners[listenerID] = true); + } + if (node.childrenCount > 0) { + var children = node._children; + for (var i = 0, _len = children.length; i < _len; i++) this._setDirtyForNode(children[i]); + } + }, + pauseTarget: function pauseTarget(node, recursive) { + if (!(node instanceof cc._BaseNode)) { + cc.warnID(3506); + return; + } + var listeners = this._nodeListenersMap[node._id], i, len; + if (listeners) for (i = 0, len = listeners.length; i < len; i++) listeners[i]._setPaused(true); + if (true === recursive) { + var locChildren = node._children; + for (i = 0, len = locChildren ? locChildren.length : 0; i < len; i++) this.pauseTarget(locChildren[i], true); + } + }, + resumeTarget: function resumeTarget(node, recursive) { + if (!(node instanceof cc._BaseNode)) { + cc.warnID(3506); + return; + } + var listeners = this._nodeListenersMap[node._id], i, len; + if (listeners) for (i = 0, len = listeners.length; i < len; i++) listeners[i]._setPaused(false); + this._setDirtyForNode(node); + if (true === recursive) { + var locChildren = node._children; + for (i = 0, len = locChildren ? locChildren.length : 0; i < len; i++) this.resumeTarget(locChildren[i], true); + } + }, + _addListener: function _addListener(listener) { + 0 === this._inDispatch ? this._forceAddEventListener(listener) : this._toAddedListeners.push(listener); + }, + _forceAddEventListener: function _forceAddEventListener(listener) { + var listenerID = listener._getListenerID(); + var listeners = this._listenersMap[listenerID]; + if (!listeners) { + listeners = new _EventListenerVector(); + this._listenersMap[listenerID] = listeners; + } + listeners.push(listener); + if (0 === listener._getFixedPriority()) { + this._setDirty(listenerID, this.DIRTY_SCENE_GRAPH_PRIORITY); + var node = listener._getSceneGraphPriority(); + null === node && cc.logID(3507); + this._associateNodeAndEventListener(node, listener); + node.activeInHierarchy && this.resumeTarget(node); + } else this._setDirty(listenerID, this.DIRTY_FIXED_PRIORITY); + }, + _getListeners: function _getListeners(listenerID) { + return this._listenersMap[listenerID]; + }, + _updateDirtyFlagForSceneGraph: function _updateDirtyFlagForSceneGraph() { + var locDirtyListeners = this._dirtyListeners; + for (var selKey in locDirtyListeners) this._setDirty(selKey, this.DIRTY_SCENE_GRAPH_PRIORITY); + this._dirtyListeners = {}; + }, + _removeAllListenersInVector: function _removeAllListenersInVector(listenerVector) { + if (!listenerVector) return; + var selListener; + for (var i = listenerVector.length - 1; i >= 0; i--) { + selListener = listenerVector[i]; + selListener._setRegistered(false); + if (null != selListener._getSceneGraphPriority()) { + this._dissociateNodeAndEventListener(selListener._getSceneGraphPriority(), selListener); + selListener._setSceneGraphPriority(null); + } + 0 === this._inDispatch && cc.js.array.removeAt(listenerVector, i); + } + }, + _removeListenersForListenerID: function _removeListenersForListenerID(listenerID) { + var listeners = this._listenersMap[listenerID], i; + if (listeners) { + var fixedPriorityListeners = listeners.getFixedPriorityListeners(); + var sceneGraphPriorityListeners = listeners.getSceneGraphPriorityListeners(); + this._removeAllListenersInVector(sceneGraphPriorityListeners); + this._removeAllListenersInVector(fixedPriorityListeners); + delete this._priorityDirtyFlagMap[listenerID]; + if (!this._inDispatch) { + listeners.clear(); + delete this._listenersMap[listenerID]; + } + } + var locToAddedListeners = this._toAddedListeners, listener; + for (i = locToAddedListeners.length - 1; i >= 0; i--) { + listener = locToAddedListeners[i]; + listener && listener._getListenerID() === listenerID && cc.js.array.removeAt(locToAddedListeners, i); + } + }, + _sortEventListeners: function _sortEventListeners(listenerID) { + var dirtyFlag = this.DIRTY_NONE, locFlagMap = this._priorityDirtyFlagMap; + locFlagMap[listenerID] && (dirtyFlag = locFlagMap[listenerID]); + if (dirtyFlag !== this.DIRTY_NONE) { + locFlagMap[listenerID] = this.DIRTY_NONE; + dirtyFlag & this.DIRTY_FIXED_PRIORITY && this._sortListenersOfFixedPriority(listenerID); + if (dirtyFlag & this.DIRTY_SCENE_GRAPH_PRIORITY) { + var rootEntity = cc.director.getScene(); + rootEntity && this._sortListenersOfSceneGraphPriority(listenerID); + } + } + }, + _sortListenersOfSceneGraphPriority: function _sortListenersOfSceneGraphPriority(listenerID) { + var listeners = this._getListeners(listenerID); + if (!listeners) return; + var sceneGraphListener = listeners.getSceneGraphPriorityListeners(); + if (!sceneGraphListener || 0 === sceneGraphListener.length) return; + listeners.getSceneGraphPriorityListeners().sort(this._sortEventListenersOfSceneGraphPriorityDes); + }, + _sortEventListenersOfSceneGraphPriorityDes: function _sortEventListenersOfSceneGraphPriorityDes(l1, l2) { + var node1 = l1._getSceneGraphPriority(), node2 = l2._getSceneGraphPriority(); + if (!(l2 && node2 && node2._activeInHierarchy && null !== node2._parent)) return -1; + if (!l1 || !node1 || !node1._activeInHierarchy || null === node1._parent) return 1; + var p1 = node1, p2 = node2, ex = false; + while (p1._parent._id !== p2._parent._id) { + p1 = null === p1._parent._parent ? (ex = true) && node2 : p1._parent; + p2 = null === p2._parent._parent ? (ex = true) && node1 : p2._parent; + } + if (p1._id === p2._id) { + if (p1._id === node2._id) return -1; + if (p1._id === node1._id) return 1; + } + return ex ? p1._localZOrder - p2._localZOrder : p2._localZOrder - p1._localZOrder; + }, + _sortListenersOfFixedPriority: function _sortListenersOfFixedPriority(listenerID) { + var listeners = this._listenersMap[listenerID]; + if (!listeners) return; + var fixedListeners = listeners.getFixedPriorityListeners(); + if (!fixedListeners || 0 === fixedListeners.length) return; + fixedListeners.sort(this._sortListenersOfFixedPriorityAsc); + var index = 0; + for (var len = fixedListeners.length; index < len; ) { + if (fixedListeners[index]._getFixedPriority() >= 0) break; + ++index; + } + listeners.gt0Index = index; + }, + _sortListenersOfFixedPriorityAsc: function _sortListenersOfFixedPriorityAsc(l1, l2) { + return l1._getFixedPriority() - l2._getFixedPriority(); + }, + _onUpdateListeners: function _onUpdateListeners(listeners) { + var fixedPriorityListeners = listeners.getFixedPriorityListeners(); + var sceneGraphPriorityListeners = listeners.getSceneGraphPriorityListeners(); + var i, selListener, idx, toRemovedListeners = this._toRemovedListeners; + if (sceneGraphPriorityListeners) for (i = sceneGraphPriorityListeners.length - 1; i >= 0; i--) { + selListener = sceneGraphPriorityListeners[i]; + if (!selListener._isRegistered()) { + cc.js.array.removeAt(sceneGraphPriorityListeners, i); + idx = toRemovedListeners.indexOf(selListener); + -1 !== idx && toRemovedListeners.splice(idx, 1); + } + } + if (fixedPriorityListeners) for (i = fixedPriorityListeners.length - 1; i >= 0; i--) { + selListener = fixedPriorityListeners[i]; + if (!selListener._isRegistered()) { + cc.js.array.removeAt(fixedPriorityListeners, i); + idx = toRemovedListeners.indexOf(selListener); + -1 !== idx && toRemovedListeners.splice(idx, 1); + } + } + sceneGraphPriorityListeners && 0 === sceneGraphPriorityListeners.length && listeners.clearSceneGraphListeners(); + fixedPriorityListeners && 0 === fixedPriorityListeners.length && listeners.clearFixedListeners(); + }, + frameUpdateListeners: function frameUpdateListeners() { + var locListenersMap = this._listenersMap, locPriorityDirtyFlagMap = this._priorityDirtyFlagMap; + for (var selKey in locListenersMap) if (locListenersMap[selKey].empty()) { + delete locPriorityDirtyFlagMap[selKey]; + delete locListenersMap[selKey]; + } + var locToAddedListeners = this._toAddedListeners; + if (0 !== locToAddedListeners.length) { + for (var i = 0, len = locToAddedListeners.length; i < len; i++) this._forceAddEventListener(locToAddedListeners[i]); + locToAddedListeners.length = 0; + } + 0 !== this._toRemovedListeners.length && this._cleanToRemovedListeners(); + }, + _updateTouchListeners: function _updateTouchListeners(event) { + var locInDispatch = this._inDispatch; + cc.assertID(locInDispatch > 0, 3508); + if (locInDispatch > 1) return; + var listeners; + listeners = this._listenersMap[ListenerID.TOUCH_ONE_BY_ONE]; + listeners && this._onUpdateListeners(listeners); + listeners = this._listenersMap[ListenerID.TOUCH_ALL_AT_ONCE]; + listeners && this._onUpdateListeners(listeners); + cc.assertID(1 === locInDispatch, 3509); + var locToAddedListeners = this._toAddedListeners; + if (0 !== locToAddedListeners.length) { + for (var i = 0, len = locToAddedListeners.length; i < len; i++) this._forceAddEventListener(locToAddedListeners[i]); + this._toAddedListeners.length = 0; + } + 0 !== this._toRemovedListeners.length && this._cleanToRemovedListeners(); + }, + _cleanToRemovedListeners: function _cleanToRemovedListeners() { + var toRemovedListeners = this._toRemovedListeners; + for (var i = 0; i < toRemovedListeners.length; i++) { + var selListener = toRemovedListeners[i]; + var listeners = this._listenersMap[selListener._getListenerID()]; + if (!listeners) continue; + var idx, fixedPriorityListeners = listeners.getFixedPriorityListeners(), sceneGraphPriorityListeners = listeners.getSceneGraphPriorityListeners(); + if (sceneGraphPriorityListeners) { + idx = sceneGraphPriorityListeners.indexOf(selListener); + -1 !== idx && sceneGraphPriorityListeners.splice(idx, 1); + } + if (fixedPriorityListeners) { + idx = fixedPriorityListeners.indexOf(selListener); + -1 !== idx && fixedPriorityListeners.splice(idx, 1); + } + } + toRemovedListeners.length = 0; + }, + _onTouchEventCallback: function _onTouchEventCallback(listener, argsObj) { + if (!listener._isRegistered()) return false; + var event = argsObj.event, selTouch = event.currentTouch; + event.currentTarget = listener._node; + var isClaimed = false, removedIdx; + var getCode = event.getEventCode(), EventTouch = cc.Event.EventTouch; + if (getCode === EventTouch.BEGAN) { + if (!cc.macro.ENABLE_MULTI_TOUCH && eventManager._currentTouch) { + var node = eventManager._currentTouchListener._node; + if (node && node.activeInHierarchy) return false; + } + if (listener.onTouchBegan) { + isClaimed = listener.onTouchBegan(selTouch, event); + if (isClaimed && listener._registered) { + listener._claimedTouches.push(selTouch); + eventManager._currentTouchListener = listener; + eventManager._currentTouch = selTouch; + } + } + } else if (listener._claimedTouches.length > 0 && -1 !== (removedIdx = listener._claimedTouches.indexOf(selTouch))) { + isClaimed = true; + if (!cc.macro.ENABLE_MULTI_TOUCH && eventManager._currentTouch && eventManager._currentTouch !== selTouch) return false; + if (getCode === EventTouch.MOVED && listener.onTouchMoved) listener.onTouchMoved(selTouch, event); else if (getCode === EventTouch.ENDED) { + listener.onTouchEnded && listener.onTouchEnded(selTouch, event); + listener._registered && listener._claimedTouches.splice(removedIdx, 1); + eventManager._clearCurTouch(); + } else if (getCode === EventTouch.CANCELED) { + listener.onTouchCancelled && listener.onTouchCancelled(selTouch, event); + listener._registered && listener._claimedTouches.splice(removedIdx, 1); + eventManager._clearCurTouch(); + } + } + if (event.isStopped()) { + eventManager._updateTouchListeners(event); + return true; + } + if (isClaimed && listener.swallowTouches) { + argsObj.needsMutableSet && argsObj.touches.splice(selTouch, 1); + return true; + } + return false; + }, + _dispatchTouchEvent: function _dispatchTouchEvent(event) { + this._sortEventListeners(ListenerID.TOUCH_ONE_BY_ONE); + this._sortEventListeners(ListenerID.TOUCH_ALL_AT_ONCE); + var oneByOneListeners = this._getListeners(ListenerID.TOUCH_ONE_BY_ONE); + var allAtOnceListeners = this._getListeners(ListenerID.TOUCH_ALL_AT_ONCE); + if (null === oneByOneListeners && null === allAtOnceListeners) return; + var originalTouches = event.getTouches(), mutableTouches = cc.js.array.copy(originalTouches); + var oneByOneArgsObj = { + event: event, + needsMutableSet: oneByOneListeners && allAtOnceListeners, + touches: mutableTouches, + selTouch: null + }; + if (oneByOneListeners) for (var i = 0; i < originalTouches.length; i++) { + event.currentTouch = originalTouches[i]; + event._propagationStopped = event._propagationImmediateStopped = false; + this._dispatchEventToListeners(oneByOneListeners, this._onTouchEventCallback, oneByOneArgsObj); + } + if (allAtOnceListeners && mutableTouches.length > 0) { + this._dispatchEventToListeners(allAtOnceListeners, this._onTouchesEventCallback, { + event: event, + touches: mutableTouches + }); + if (event.isStopped()) return; + } + this._updateTouchListeners(event); + }, + _onTouchesEventCallback: function _onTouchesEventCallback(listener, callbackParams) { + if (!listener._registered) return false; + var EventTouch = cc.Event.EventTouch, event = callbackParams.event, touches = callbackParams.touches, getCode = event.getEventCode(); + event.currentTarget = listener._node; + getCode === EventTouch.BEGAN && listener.onTouchesBegan ? listener.onTouchesBegan(touches, event) : getCode === EventTouch.MOVED && listener.onTouchesMoved ? listener.onTouchesMoved(touches, event) : getCode === EventTouch.ENDED && listener.onTouchesEnded ? listener.onTouchesEnded(touches, event) : getCode === EventTouch.CANCELED && listener.onTouchesCancelled && listener.onTouchesCancelled(touches, event); + if (event.isStopped()) { + eventManager._updateTouchListeners(event); + return true; + } + return false; + }, + _associateNodeAndEventListener: function _associateNodeAndEventListener(node, listener) { + var listeners = this._nodeListenersMap[node._id]; + if (!listeners) { + listeners = []; + this._nodeListenersMap[node._id] = listeners; + } + listeners.push(listener); + }, + _dissociateNodeAndEventListener: function _dissociateNodeAndEventListener(node, listener) { + var listeners = this._nodeListenersMap[node._id]; + if (listeners) { + cc.js.array.remove(listeners, listener); + 0 === listeners.length && delete this._nodeListenersMap[node._id]; + } + }, + _dispatchEventToListeners: function _dispatchEventToListeners(listeners, onEvent, eventOrArgs) { + var shouldStopPropagation = false; + var fixedPriorityListeners = listeners.getFixedPriorityListeners(); + var sceneGraphPriorityListeners = listeners.getSceneGraphPriorityListeners(); + var i = 0, j, selListener; + if (fixedPriorityListeners && 0 !== fixedPriorityListeners.length) for (;i < listeners.gt0Index; ++i) { + selListener = fixedPriorityListeners[i]; + if (selListener.isEnabled() && !selListener._isPaused() && selListener._isRegistered() && onEvent(selListener, eventOrArgs)) { + shouldStopPropagation = true; + break; + } + } + if (sceneGraphPriorityListeners && !shouldStopPropagation) for (j = 0; j < sceneGraphPriorityListeners.length; j++) { + selListener = sceneGraphPriorityListeners[j]; + if (selListener.isEnabled() && !selListener._isPaused() && selListener._isRegistered() && onEvent(selListener, eventOrArgs)) { + shouldStopPropagation = true; + break; + } + } + if (fixedPriorityListeners && !shouldStopPropagation) for (;i < fixedPriorityListeners.length; ++i) { + selListener = fixedPriorityListeners[i]; + if (selListener.isEnabled() && !selListener._isPaused() && selListener._isRegistered() && onEvent(selListener, eventOrArgs)) { + shouldStopPropagation = true; + break; + } + } + }, + _setDirty: function _setDirty(listenerID, flag) { + var locDirtyFlagMap = this._priorityDirtyFlagMap; + null == locDirtyFlagMap[listenerID] ? locDirtyFlagMap[listenerID] = flag : locDirtyFlagMap[listenerID] = flag | locDirtyFlagMap[listenerID]; + }, + _sortNumberAsc: function _sortNumberAsc(a, b) { + return a - b; + }, + hasEventListener: function hasEventListener(listenerID) { + return !!this._getListeners(listenerID); + }, + addListener: function addListener(listener, nodeOrPriority) { + cc.assertID(listener && nodeOrPriority, 3503); + if (!(cc.js.isNumber(nodeOrPriority) || nodeOrPriority instanceof cc._BaseNode)) { + cc.warnID(3506); + return; + } + if (listener instanceof cc.EventListener) { + if (listener._isRegistered()) { + cc.logID(3505); + return; + } + } else { + cc.assertID(!cc.js.isNumber(nodeOrPriority), 3504); + listener = cc.EventListener.create(listener); + } + if (!listener.checkAvailable()) return; + if (cc.js.isNumber(nodeOrPriority)) { + if (0 === nodeOrPriority) { + cc.logID(3500); + return; + } + listener._setSceneGraphPriority(null); + listener._setFixedPriority(nodeOrPriority); + listener._setRegistered(true); + listener._setPaused(false); + this._addListener(listener); + } else { + listener._setSceneGraphPriority(nodeOrPriority); + listener._setFixedPriority(0); + listener._setRegistered(true); + this._addListener(listener); + } + return listener; + }, + addCustomListener: function addCustomListener(eventName, callback) { + var listener = new cc.EventListener.create({ + event: cc.EventListener.CUSTOM, + eventName: eventName, + callback: callback + }); + this.addListener(listener, 1); + return listener; + }, + removeListener: function removeListener(listener) { + if (null == listener) return; + var isFound, locListener = this._listenersMap; + for (var selKey in locListener) { + var listeners = locListener[selKey]; + var fixedPriorityListeners = listeners.getFixedPriorityListeners(), sceneGraphPriorityListeners = listeners.getSceneGraphPriorityListeners(); + isFound = this._removeListenerInVector(sceneGraphPriorityListeners, listener); + if (isFound) this._setDirty(listener._getListenerID(), this.DIRTY_SCENE_GRAPH_PRIORITY); else { + isFound = this._removeListenerInVector(fixedPriorityListeners, listener); + isFound && this._setDirty(listener._getListenerID(), this.DIRTY_FIXED_PRIORITY); + } + if (listeners.empty()) { + delete this._priorityDirtyFlagMap[listener._getListenerID()]; + delete locListener[selKey]; + } + if (isFound) break; + } + if (!isFound) { + var locToAddedListeners = this._toAddedListeners; + for (var i = locToAddedListeners.length - 1; i >= 0; i--) { + var selListener = locToAddedListeners[i]; + if (selListener === listener) { + cc.js.array.removeAt(locToAddedListeners, i); + selListener._setRegistered(false); + break; + } + } + } + this._currentTouchListener === listener && this._clearCurTouch(); + }, + _clearCurTouch: function _clearCurTouch() { + this._currentTouchListener = null; + this._currentTouch = null; + }, + _removeListenerInCallback: function _removeListenerInCallback(listeners, callback) { + if (null == listeners) return false; + for (var i = listeners.length - 1; i >= 0; i--) { + var selListener = listeners[i]; + if (selListener._onCustomEvent === callback || selListener._onEvent === callback) { + selListener._setRegistered(false); + if (null != selListener._getSceneGraphPriority()) { + this._dissociateNodeAndEventListener(selListener._getSceneGraphPriority(), selListener); + selListener._setSceneGraphPriority(null); + } + 0 === this._inDispatch ? cc.js.array.removeAt(listeners, i) : this._toRemovedListeners.push(selListener); + return true; + } + } + return false; + }, + _removeListenerInVector: function _removeListenerInVector(listeners, listener) { + if (null == listeners) return false; + for (var i = listeners.length - 1; i >= 0; i--) { + var selListener = listeners[i]; + if (selListener === listener) { + selListener._setRegistered(false); + if (null != selListener._getSceneGraphPriority()) { + this._dissociateNodeAndEventListener(selListener._getSceneGraphPriority(), selListener); + selListener._setSceneGraphPriority(null); + } + 0 === this._inDispatch ? cc.js.array.removeAt(listeners, i) : this._toRemovedListeners.push(selListener); + return true; + } + } + return false; + }, + removeListeners: function removeListeners(listenerType, recursive) { + var i, _t = this; + if (!(cc.js.isNumber(listenerType) || listenerType instanceof cc._BaseNode)) { + cc.warnID(3506); + return; + } + if (void 0 !== listenerType._id) { + var listeners = _t._nodeListenersMap[listenerType._id], i; + if (listeners) { + var listenersCopy = cc.js.array.copy(listeners); + for (i = 0; i < listenersCopy.length; i++) _t.removeListener(listenersCopy[i]); + delete _t._nodeListenersMap[listenerType._id]; + } + var locToAddedListeners = _t._toAddedListeners; + for (i = 0; i < locToAddedListeners.length; ) { + var listener = locToAddedListeners[i]; + if (listener._getSceneGraphPriority() === listenerType) { + listener._setSceneGraphPriority(null); + listener._setRegistered(false); + locToAddedListeners.splice(i, 1); + } else ++i; + } + if (true === recursive) { + var locChildren = listenerType.children, len; + for (i = 0, len = locChildren.length; i < len; i++) _t.removeListeners(locChildren[i], true); + } + } else listenerType === cc.EventListener.TOUCH_ONE_BY_ONE ? _t._removeListenersForListenerID(ListenerID.TOUCH_ONE_BY_ONE) : listenerType === cc.EventListener.TOUCH_ALL_AT_ONCE ? _t._removeListenersForListenerID(ListenerID.TOUCH_ALL_AT_ONCE) : listenerType === cc.EventListener.MOUSE ? _t._removeListenersForListenerID(ListenerID.MOUSE) : listenerType === cc.EventListener.ACCELERATION ? _t._removeListenersForListenerID(ListenerID.ACCELERATION) : listenerType === cc.EventListener.KEYBOARD ? _t._removeListenersForListenerID(ListenerID.KEYBOARD) : cc.logID(3501); + }, + removeCustomListeners: function removeCustomListeners(customEventName) { + this._removeListenersForListenerID(customEventName); + }, + removeAllListeners: function removeAllListeners() { + var locListeners = this._listenersMap, locInternalCustomEventIDs = this._internalCustomListenerIDs; + for (var selKey in locListeners) -1 === locInternalCustomEventIDs.indexOf(selKey) && this._removeListenersForListenerID(selKey); + }, + setPriority: function setPriority(listener, fixedPriority) { + if (null == listener) return; + var locListeners = this._listenersMap; + for (var selKey in locListeners) { + var selListeners = locListeners[selKey]; + var fixedPriorityListeners = selListeners.getFixedPriorityListeners(); + if (fixedPriorityListeners) { + var found = fixedPriorityListeners.indexOf(listener); + if (-1 !== found) { + null != listener._getSceneGraphPriority() && cc.logID(3502); + if (listener._getFixedPriority() !== fixedPriority) { + listener._setFixedPriority(fixedPriority); + this._setDirty(listener._getListenerID(), this.DIRTY_FIXED_PRIORITY); + } + return; + } + } + } + }, + setEnabled: function setEnabled(enabled) { + this._isEnabled = enabled; + }, + isEnabled: function isEnabled() { + return this._isEnabled; + }, + dispatchEvent: function dispatchEvent(event) { + if (!this._isEnabled) return; + this._updateDirtyFlagForSceneGraph(); + this._inDispatch++; + if (!event || !event.getType) { + cc.errorID(3511); + return; + } + if (event.getType().startsWith(cc.Event.TOUCH)) { + this._dispatchTouchEvent(event); + this._inDispatch--; + return; + } + var listenerID = __getListenerID(event); + this._sortEventListeners(listenerID); + var selListeners = this._listenersMap[listenerID]; + if (null != selListeners) { + this._dispatchEventToListeners(selListeners, this._onListenerCallback, event); + this._onUpdateListeners(selListeners); + } + this._inDispatch--; + }, + _onListenerCallback: function _onListenerCallback(listener, event) { + event.currentTarget = listener._target; + listener._onEvent(event); + return event.isStopped(); + }, + dispatchCustomEvent: function dispatchCustomEvent(eventName, optionalUserData) { + var ev = new cc.Event.EventCustom(eventName); + ev.setUserData(optionalUserData); + this.dispatchEvent(ev); + } + }; + js.get(cc, "eventManager", (function() { + cc.errorID(1405, "cc.eventManager", "cc.EventTarget or cc.systemEvent"); + return eventManager; + })); + module.exports = cc.internal.eventManager = eventManager; + }), { + "../platform/js": 142, + "./CCEventListener": 109 + } ], + 111: [ (function(require, module, exports) { + "use strict"; + cc.Touch = function(x, y, id) { + this._lastModified = 0; + this.setTouchInfo(id, x, y); + }; + cc.Touch.prototype = { + constructor: cc.Touch, + getLocation: function getLocation() { + return cc.v2(this._point.x, this._point.y); + }, + getLocationX: function getLocationX() { + return this._point.x; + }, + getLocationY: function getLocationY() { + return this._point.y; + }, + getPreviousLocation: function getPreviousLocation() { + return cc.v2(this._prevPoint.x, this._prevPoint.y); + }, + getStartLocation: function getStartLocation() { + return cc.v2(this._startPoint.x, this._startPoint.y); + }, + getDelta: function getDelta() { + return this._point.sub(this._prevPoint); + }, + getLocationInView: function getLocationInView() { + return cc.v2(this._point.x, cc.view._designResolutionSize.height - this._point.y); + }, + getPreviousLocationInView: function getPreviousLocationInView() { + return cc.v2(this._prevPoint.x, cc.view._designResolutionSize.height - this._prevPoint.y); + }, + getStartLocationInView: function getStartLocationInView() { + return cc.v2(this._startPoint.x, cc.view._designResolutionSize.height - this._startPoint.y); + }, + getID: function getID() { + return this._id; + }, + setTouchInfo: function setTouchInfo(id, x, y) { + this._prevPoint = this._point; + this._point = cc.v2(x || 0, y || 0); + this._id = id; + if (!this._startPointCaptured) { + this._startPoint = cc.v2(this._point); + cc.view._convertPointWithScale(this._startPoint); + this._startPointCaptured = true; + } + }, + _setPoint: function _setPoint(x, y) { + if (void 0 === y) { + this._point.x = x.x; + this._point.y = x.y; + } else { + this._point.x = x; + this._point.y = y; + } + }, + _setPrevPoint: function _setPrevPoint(x, y) { + this._prevPoint = void 0 === y ? cc.v2(x.x, x.y) : cc.v2(x || 0, y || 0); + } + }; + }), {} ], + 112: [ (function(require, module, exports) { + "use strict"; + require("./CCEvent"); + require("./CCTouch"); + require("./CCEventListener"); + var eventManager = require("./CCEventManager"); + module.exports = eventManager; + false; + }), { + "./CCEvent": 108, + "./CCEventListener": 109, + "./CCEventManager": 110, + "./CCTouch": 111 + } ], + 113: [ (function(require, module, exports) { + "use strict"; + var js = cc.js; + var CallbacksInvoker = require("../platform/callbacks-invoker"); + function EventListeners() { + CallbacksInvoker.call(this); + } + js.extend(EventListeners, CallbacksInvoker); + EventListeners.prototype.emit = function(event, captureListeners) { + var key = event.type; + var list = this._callbackTable[key]; + if (list) { + var rootInvoker = !list.isInvoking; + list.isInvoking = true; + var infos = list.callbackInfos; + for (var i = 0, len = infos.length; i < len; ++i) { + var info = infos[i]; + if (info && info.callback) { + info.callback.call(info.target, event, captureListeners); + if (event._propagationImmediateStopped) break; + } + } + if (rootInvoker) { + list.isInvoking = false; + list.containCanceled && list.purgeCanceled(); + } + } + }; + module.exports = EventListeners; + false; + }), { + "../platform/callbacks-invoker": 134 + } ], + 114: [ (function(require, module, exports) { + "use strict"; + var js = require("../platform/js"); + var CallbacksInvoker = require("../platform/callbacks-invoker"); + var fastRemove = js.array.fastRemove; + function EventTarget() { + CallbacksInvoker.call(this); + } + js.extend(EventTarget, CallbacksInvoker); + var proto = EventTarget.prototype; + proto.__on = proto.on; + proto.on = function(type, callback, target, once) { + if (!callback) { + cc.errorID(6800); + return; + } + if (!this.hasEventListener(type, callback, target)) { + this.__on(type, callback, target, once); + target && target.__eventTargets && target.__eventTargets.push(this); + } + return callback; + }; + proto.__off = proto.off; + proto.off = function(type, callback, target) { + if (callback) { + this.__off(type, callback, target); + target && target.__eventTargets && fastRemove(target.__eventTargets, this); + } else { + var list = this._callbackTable[type]; + if (!list) return; + var infos = list.callbackInfos; + for (var i = 0; i < infos.length; ++i) { + var _target = infos[i] && infos[i].target; + _target && _target.__eventTargets && fastRemove(_target.__eventTargets, this); + } + this.removeAll(type); + } + }; + proto.targetOff = function(target) { + this.removeAll(target); + target && target.__eventTargets && fastRemove(target.__eventTargets, this); + }; + proto.once = function(type, callback, target) { + this.on(type, callback, target, true); + }; + proto.dispatchEvent = function(event) { + this.emit(event.type, event); + }; + proto.clear = function() { + for (var key in this._callbackTable) { + var list = this._callbackTable[key]; + var infos = list.callbackInfos; + for (var i = infos.length - 1; i >= 0; i--) { + var info = infos[i]; + info && this.off(key, info.callback, info.target); + } + } + }; + cc.EventTarget = module.exports = EventTarget; + }), { + "../platform/callbacks-invoker": 134, + "../platform/js": 142 + } ], + 115: [ (function(require, module, exports) { + "use strict"; + var js = require("../platform/js"); + cc.Event = function(type, bubbles) { + this.type = type; + this.bubbles = !!bubbles; + this.target = null; + this.currentTarget = null; + this.eventPhase = 0; + this._propagationStopped = false; + this._propagationImmediateStopped = false; + }; + cc.Event.prototype = { + constructor: cc.Event, + unuse: function unuse() { + this.type = cc.Event.NO_TYPE; + this.target = null; + this.currentTarget = null; + this.eventPhase = cc.Event.NONE; + this._propagationStopped = false; + this._propagationImmediateStopped = false; + }, + reuse: function reuse(type, bubbles) { + this.type = type; + this.bubbles = bubbles || false; + }, + stopPropagation: function stopPropagation() { + this._propagationStopped = true; + }, + stopPropagationImmediate: function stopPropagationImmediate() { + this._propagationImmediateStopped = true; + }, + isStopped: function isStopped() { + return this._propagationStopped || this._propagationImmediateStopped; + }, + getCurrentTarget: function getCurrentTarget() { + return this.currentTarget; + }, + getType: function getType() { + return this.type; + } + }; + cc.Event.NO_TYPE = "no_type"; + cc.Event.TOUCH = "touch"; + cc.Event.MOUSE = "mouse"; + cc.Event.KEYBOARD = "keyboard"; + cc.Event.ACCELERATION = "acceleration"; + cc.Event.NONE = 0; + cc.Event.CAPTURING_PHASE = 1; + cc.Event.AT_TARGET = 2; + cc.Event.BUBBLING_PHASE = 3; + var EventCustom = function EventCustom(type, bubbles) { + cc.Event.call(this, type, bubbles); + this.detail = null; + }; + js.extend(EventCustom, cc.Event); + EventCustom.prototype.reset = EventCustom; + EventCustom.prototype.setUserData = function(data) { + this.detail = data; + }; + EventCustom.prototype.getUserData = function() { + return this.detail; + }; + EventCustom.prototype.getEventName = cc.Event.prototype.getType; + var MAX_POOL_SIZE = 10; + var _eventPool = new js.Pool(MAX_POOL_SIZE); + EventCustom.put = function(event) { + _eventPool.put(event); + }; + EventCustom.get = function(type, bubbles) { + var event = _eventPool._get(); + event ? event.reset(type, bubbles) : event = new EventCustom(type, bubbles); + return event; + }; + cc.Event.EventCustom = EventCustom; + module.exports = cc.Event; + }), { + "../platform/js": 142 + } ], + 116: [ (function(require, module, exports) { + "use strict"; + require("./event"); + require("./event-listeners"); + require("./event-target"); + require("./system-event"); + }), { + "./event": 115, + "./event-listeners": 113, + "./event-target": 114, + "./system-event": 117 + } ], + 117: [ (function(require, module, exports) { + "use strict"; + var EventTarget = require("../event/event-target"); + var eventManager = require("../event-manager"); + var inputManger = require("../platform/CCInputManager"); + var EventType = cc.Enum({ + KEY_DOWN: "keydown", + KEY_UP: "keyup", + DEVICEMOTION: "devicemotion" + }); + var keyboardListener = null; + var accelerationListener = null; + var SystemEvent = cc.Class({ + name: "SystemEvent", + extends: EventTarget, + statics: { + EventType: EventType + }, + setAccelerometerEnabled: function setAccelerometerEnabled(isEnable) { + false; + isEnable && window.DeviceMotionEvent && "function" === typeof DeviceMotionEvent.requestPermission ? DeviceMotionEvent.requestPermission().then((function(response) { + console.log("Device Motion Event request permission: " + response); + inputManger.setAccelerometerEnabled("granted" === response); + })) : inputManger.setAccelerometerEnabled(isEnable); + }, + setAccelerometerInterval: function setAccelerometerInterval(interval) { + false; + inputManger.setAccelerometerInterval(interval); + }, + on: function on(type, callback, target, once) { + false; + this._super(type, callback, target, once); + if (type === EventType.KEY_DOWN || type === EventType.KEY_UP) { + keyboardListener || (keyboardListener = cc.EventListener.create({ + event: cc.EventListener.KEYBOARD, + onKeyPressed: function onKeyPressed(keyCode, event) { + event.type = EventType.KEY_DOWN; + cc.systemEvent.dispatchEvent(event); + }, + onKeyReleased: function onKeyReleased(keyCode, event) { + event.type = EventType.KEY_UP; + cc.systemEvent.dispatchEvent(event); + } + })); + eventManager.hasEventListener(cc.EventListener.ListenerID.KEYBOARD) || eventManager.addListener(keyboardListener, 1); + } + if (type === EventType.DEVICEMOTION) { + accelerationListener || (accelerationListener = cc.EventListener.create({ + event: cc.EventListener.ACCELERATION, + callback: function callback(acc, event) { + event.type = EventType.DEVICEMOTION; + cc.systemEvent.dispatchEvent(event); + } + })); + eventManager.hasEventListener(cc.EventListener.ListenerID.ACCELERATION) || eventManager.addListener(accelerationListener, 1); + } + }, + off: function off(type, callback, target) { + false; + this._super(type, callback, target); + if (keyboardListener && (type === EventType.KEY_DOWN || type === EventType.KEY_UP)) { + var hasKeyDownEventListener = this.hasEventListener(EventType.KEY_DOWN); + var hasKeyUpEventListener = this.hasEventListener(EventType.KEY_UP); + hasKeyDownEventListener || hasKeyUpEventListener || eventManager.removeListener(keyboardListener); + } + accelerationListener && type === EventType.DEVICEMOTION && eventManager.removeListener(accelerationListener); + } + }); + cc.SystemEvent = module.exports = SystemEvent; + cc.systemEvent = new cc.SystemEvent(); + }), { + "../event-manager": 112, + "../event/event-target": 114, + "../platform/CCInputManager": 125 + } ], + 118: [ (function(require, module, exports) { + "use strict"; + require("./graphics"); + }), { + "./graphics": void 0 + } ], + 119: [ (function(require, module, exports) { + "use strict"; + require("./platform"); + require("./assets"); + true; + require("./CCNode"); + require("./CCPrivateNode"); + require("./CCScene"); + require("./components"); + require("./graphics"); + require("./collider"); + require("./collider/CCIntersection"); + require("./physics"); + require("./camera/CCCamera"); + require("./geom-utils"); + require("./sp"); + require("./mesh"); + require("./3d"); + require("./base-ui/CCWidgetManager"); + }), { + "./3d": void 0, + "./CCNode": 24, + "./CCPrivateNode": 25, + "./CCScene": 26, + "./assets": 73, + "./base-ui/CCWidgetManager": 84, + "./camera/CCCamera": 85, + "./collider": void 0, + "./collider/CCIntersection": void 0, + "./components": 106, + "./geom-utils": void 0, + "./graphics": 118, + "./mesh": void 0, + "./physics": void 0, + "./platform": 139, + "./sp": 191 + } ], + 120: [ (function(require, module, exports) { + "use strict"; + var CompScheduler = require("./component-scheduler"); + var Flags = require("./platform/CCObject").Flags; + var js = require("./platform/js"); + var callerFunctor = false; + var MAX_POOL_SIZE = 4; + var IsPreloadStarted = Flags.IsPreloadStarted; + var IsOnLoadStarted = Flags.IsOnLoadStarted; + var IsOnLoadCalled = Flags.IsOnLoadCalled; + var Deactivating = Flags.Deactivating; + var callPreloadInTryCatch = false; + var callOnLoadInTryCatch = false; + var callOnDestroyInTryCatch = false; + var callOnFocusInTryCatch = false; + var callOnLostFocusInTryCatch = false; + var UnsortedInvoker = cc.Class({ + extends: CompScheduler.LifeCycleInvoker, + add: function add(comp) { + this._zero.array.push(comp); + }, + remove: function remove(comp) { + this._zero.fastRemove(comp); + }, + cancelInactive: function cancelInactive(flagToClear) { + CompScheduler.LifeCycleInvoker.stableRemoveInactive(this._zero, flagToClear); + }, + invoke: function invoke() { + this._invoke(this._zero); + this._zero.array.length = 0; + } + }); + var invokePreload = CompScheduler.createInvokeImpl("c.__preload();"); + var invokeOnLoad = CompScheduler.createInvokeImpl("c.onLoad();c._objFlags|=" + IsOnLoadCalled, false, IsOnLoadCalled); + var activateTasksPool = new js.Pool(MAX_POOL_SIZE); + activateTasksPool.get = function getActivateTask() { + var task = this._get() || { + preload: new UnsortedInvoker(invokePreload), + onLoad: new CompScheduler.OneOffInvoker(invokeOnLoad), + onEnable: new CompScheduler.OneOffInvoker(CompScheduler.invokeOnEnable) + }; + task.preload._zero.i = -1; + var invoker = task.onLoad; + invoker._zero.i = -1; + invoker._neg.i = -1; + invoker._pos.i = -1; + invoker = task.onEnable; + invoker._zero.i = -1; + invoker._neg.i = -1; + invoker._pos.i = -1; + return task; + }; + function _componentCorrupted(node, comp, index) { + false; + comp ? node._removeComponent(comp) : js.array.removeAt(node._components, index); + } + function _onLoadInEditor(comp) { + if (comp.onLoad && !cc.engine._isPlaying) { + var focused = Editor.Selection.curActivate("node") === comp.node.uuid; + focused ? comp.onFocusInEditor && callOnFocusInTryCatch(comp) : comp.onLostFocusInEditor && callOnLostFocusInTryCatch(comp); + } + true; + _Scene.AssetsWatcher.start(comp); + } + function ctor() { + this._activatingStack = []; + } + var NodeActivator = cc.Class({ + ctor: ctor, + reset: ctor, + _activateNodeRecursively: function _activateNodeRecursively(node, preloadInvoker, onLoadInvoker, onEnableInvoker) { + if (node._objFlags & Deactivating) { + cc.errorID(3816, node.name); + return; + } + node._activeInHierarchy = true; + var originCount = node._components.length; + for (var i = 0; i < originCount; ++i) { + var component = node._components[i]; + if (component instanceof cc.Component) this.activateComp(component, preloadInvoker, onLoadInvoker, onEnableInvoker); else { + _componentCorrupted(node, component, i); + --i; + --originCount; + } + } + node._childArrivalOrder = node._children.length; + for (var _i = 0, len = node._children.length; _i < len; ++_i) { + var child = node._children[_i]; + child._localZOrder = 4294901760 & child._localZOrder | _i + 1; + child._active && this._activateNodeRecursively(child, preloadInvoker, onLoadInvoker, onEnableInvoker); + } + node._onPostActivated(true); + }, + _deactivateNodeRecursively: function _deactivateNodeRecursively(node) { + false; + node._objFlags |= Deactivating; + node._activeInHierarchy = false; + var originCount = node._components.length; + for (var c = 0; c < originCount; ++c) { + var component = node._components[c]; + if (component._enabled) { + cc.director._compScheduler.disableComp(component); + if (node._activeInHierarchy) { + node._objFlags &= ~Deactivating; + return; + } + } + } + for (var i = 0, len = node._children.length; i < len; ++i) { + var child = node._children[i]; + if (child._activeInHierarchy) { + this._deactivateNodeRecursively(child); + if (node._activeInHierarchy) { + node._objFlags &= ~Deactivating; + return; + } + } + } + node._onPostActivated(false); + node._objFlags &= ~Deactivating; + }, + activateNode: function activateNode(node, active) { + if (active) { + var task = activateTasksPool.get(); + this._activatingStack.push(task); + this._activateNodeRecursively(node, task.preload, task.onLoad, task.onEnable); + task.preload.invoke(); + task.onLoad.invoke(); + task.onEnable.invoke(); + this._activatingStack.pop(); + activateTasksPool.put(task); + } else { + this._deactivateNodeRecursively(node); + var stack = this._activatingStack; + for (var i = 0; i < stack.length; i++) { + var lastTask = stack[i]; + lastTask.preload.cancelInactive(IsPreloadStarted); + lastTask.onLoad.cancelInactive(IsOnLoadStarted); + lastTask.onEnable.cancelInactive(); + } + } + node.emit("active-in-hierarchy-changed", node); + }, + activateComp: function(comp, preloadInvoker, onLoadInvoker, onEnableInvoker) { + if (!cc.isValid(comp, true)) return; + if (!(comp._objFlags & IsPreloadStarted)) { + comp._objFlags |= IsPreloadStarted; + comp.__preload && (preloadInvoker ? preloadInvoker.add(comp) : comp.__preload()); + } + if (!(comp._objFlags & IsOnLoadStarted)) { + comp._objFlags |= IsOnLoadStarted; + if (comp.onLoad) if (onLoadInvoker) onLoadInvoker.add(comp); else { + comp.onLoad(); + comp._objFlags |= IsOnLoadCalled; + } else comp._objFlags |= IsOnLoadCalled; + } + if (comp._enabled) { + var deactivatedOnLoading = !comp.node._activeInHierarchy; + if (deactivatedOnLoading) return; + cc.director._compScheduler.enableComp(comp, onEnableInvoker); + } + }, + destroyComp: function(comp) { + cc.director._compScheduler.disableComp(comp); + comp.onDestroy && comp._objFlags & IsOnLoadCalled && comp.onDestroy(); + }, + resetComp: false + }); + module.exports = NodeActivator; + }), { + "./component-scheduler": 86, + "./platform/CCObject": 127, + "./platform/js": 142, + "./utils/misc": 205 + } ], + 121: [ (function(require, module, exports) { + "use strict"; + var js = require("./js"); + var Enum = require("./CCEnum"); + var utils = require("./utils"); + var _isPlainEmptyObj_DEV = utils.isPlainEmptyObj_DEV; + var _cloneable_DEV = utils.cloneable_DEV; + var Attr = require("./attribute"); + var DELIMETER = Attr.DELIMETER; + var preprocess = require("./preprocess-class"); + require("./requiring-frame"); + var BUILTIN_ENTRIES = [ "name", "extends", "mixins", "ctor", "__ctor__", "properties", "statics", "editor", "__ES6__" ]; + var INVALID_STATICS_DEV = false; + function pushUnique(array, item) { + array.indexOf(item) < 0 && array.push(item); + } + var deferredInitializer = { + datas: null, + push: function push(data) { + if (this.datas) this.datas.push(data); else { + this.datas = [ data ]; + var self = this; + setTimeout((function() { + self.init(); + }), 0); + } + }, + init: function init() { + var datas = this.datas; + if (datas) { + for (var i = 0; i < datas.length; ++i) { + var data = datas[i]; + var cls = data.cls; + var properties = data.props; + "function" === typeof properties && (properties = properties()); + var name = js.getClassName(cls); + properties ? declareProperties(cls, name, properties, cls.$super, data.mixins) : cc.errorID(3633, name); + } + this.datas = null; + } + } + }; + function appendProp(cls, name) { + false; + pushUnique(cls.__props__, name); + } + function defineProp(cls, className, propName, val, es6) { + var defaultValue = val["default"]; + false; + Attr.setClassAttr(cls, propName, "default", defaultValue); + appendProp(cls, propName); + parseAttributes(cls, val, className, propName, false); + var i; + false, false; + } + function defineGetSet(cls, name, propName, val, es6) { + var getter = val.get; + var setter = val.set; + var proto = cls.prototype; + var d = Object.getOwnPropertyDescriptor(proto, propName); + var setterUndefined = !d; + if (getter) { + false; + parseAttributes(cls, val, name, propName, true); + false, false; + Attr.setClassAttr(cls, propName, "serializable", false); + false; + es6 || js.get(proto, propName, getter, setterUndefined, setterUndefined); + false, false; + } + if (setter) { + if (!es6) { + false; + js.set(proto, propName, setter, setterUndefined, setterUndefined); + } + false, false; + } + } + function getDefault(defaultVal) { + if ("function" === typeof defaultVal) { + false; + return defaultVal(); + } + return defaultVal; + } + function mixinWithInherited(dest, src, filter) { + for (var prop in src) dest.hasOwnProperty(prop) || filter && !filter(prop) || Object.defineProperty(dest, prop, js.getPropertyDescriptor(src, prop)); + } + function doDefine(className, baseClass, mixins, options) { + var shouldAddProtoCtor; + var __ctor__ = options.__ctor__; + var ctor = options.ctor; + var __es6__ = options.__ES6__; + var ctorToUse; + false; + var ctors; + var fireClass; + if (__es6__) { + ctors = [ ctor ]; + fireClass = ctor; + } else { + ctors = __ctor__ ? [ __ctor__ ] : _getAllCtors(baseClass, mixins, options); + fireClass = _createCtor(ctors, baseClass, className, options); + js.value(fireClass, "extend", (function(options) { + options["extends"] = this; + return CCClass(options); + }), true); + } + js.value(fireClass, "__ctors__", ctors.length > 0 ? ctors : null, true); + var prototype = fireClass.prototype; + if (baseClass) { + if (!__es6__) { + js.extend(fireClass, baseClass); + prototype = fireClass.prototype; + } + fireClass.$super = baseClass; + false; + } + if (mixins) { + for (var m = mixins.length - 1; m >= 0; m--) { + var mixin = mixins[m]; + mixinWithInherited(prototype, mixin.prototype); + mixinWithInherited(fireClass, mixin, (function(prop) { + return mixin.hasOwnProperty(prop) && true; + })); + CCClass._isCCClass(mixin) && mixinWithInherited(Attr.getClassAttrs(fireClass), Attr.getClassAttrs(mixin)); + } + prototype.constructor = fireClass; + } + __es6__ || (prototype.__initProps__ = compileProps); + js.setClassName(className, fireClass); + return fireClass; + } + function define(className, baseClass, mixins, options) { + var Component = cc.Component; + var frame = cc._RF.peek(); + if (frame && js.isChildClassOf(baseClass, Component)) { + if (js.isChildClassOf(frame.cls, Component)) { + cc.errorID(3615); + return null; + } + false; + className = className || frame.script; + } + var cls = doDefine(className, baseClass, mixins, options); + if (frame) if (js.isChildClassOf(baseClass, Component)) { + var uuid = frame.uuid; + if (uuid) { + js._setClassId(uuid, cls); + false; + } + frame.cls = cls; + } else js.isChildClassOf(frame.cls, Component) || (frame.cls = cls); + return cls; + } + function normalizeClassName_DEV(className) { + var DefaultName = "CCClass"; + if (className) { + className = className.replace(/^[^$A-Za-z_]/, "_").replace(/[^0-9A-Za-z_$]/g, "_"); + try { + Function("function " + className + "(){}")(); + return className; + } catch (e) {} + } + return DefaultName; + } + function getNewValueTypeCodeJit(value) { + var clsName = js.getClassName(value); + var type = value.constructor; + var res = "new " + clsName + "("; + for (var i = 0; i < type.__props__.length; i++) { + var prop = type.__props__[i]; + var propVal = value[prop]; + false; + res += propVal; + i < type.__props__.length - 1 && (res += ","); + } + return res + ")"; + } + function escapeForJS(s) { + return JSON.stringify(s).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029"); + } + function getInitPropsJit(attrs, propList) { + var F = []; + var func = ""; + for (var i = 0; i < propList.length; i++) { + var prop = propList[i]; + var attrKey = prop + DELIMETER + "default"; + if (attrKey in attrs) { + var statement; + statement = IDENTIFIER_RE.test(prop) ? "this." + prop + "=" : "this[" + escapeForJS(prop) + "]="; + var expression; + var def = attrs[attrKey]; + if ("object" === typeof def && def) expression = def instanceof cc.ValueType ? getNewValueTypeCodeJit(def) : Array.isArray(def) ? "[]" : "{}"; else if ("function" === typeof def) { + var index = F.length; + F.push(def); + expression = "F[" + index + "]()"; + false; + } else expression = "string" === typeof def ? escapeForJS(def) : def; + statement = statement + expression + ";\n"; + func += statement; + } + } + var initProps; + initProps = 0 === F.length ? Function(func) : Function("F", "return (function(){\n" + func + "})")(F); + return initProps; + } + function getInitProps(attrs, propList) { + var props = null; + var simpleEnd = 0; + var valueTypeEnd = 0; + (function() { + var simples = null; + var valueTypes = null; + var advanceds = null; + for (var i = 0; i < propList.length; ++i) { + var prop = propList[i]; + var attrKey = prop + DELIMETER + "default"; + if (attrKey in attrs) { + var def = attrs[attrKey]; + if ("object" === typeof def && def || "function" === typeof def) if (def instanceof cc.ValueType) { + valueTypes || (valueTypes = []); + valueTypes.push(prop, def); + } else { + advanceds || (advanceds = []); + advanceds.push(prop, def); + } else { + simples || (simples = []); + simples.push(prop, def); + } + } + } + simpleEnd = simples ? simples.length : 0; + valueTypeEnd = simpleEnd + (valueTypes ? valueTypes.length : 0); + var totalLength = valueTypeEnd + (advanceds ? advanceds.length : 0); + props = new Array(totalLength); + for (var _i = 0; _i < simpleEnd; ++_i) props[_i] = simples[_i]; + for (var _i2 = simpleEnd; _i2 < valueTypeEnd; ++_i2) props[_i2] = valueTypes[_i2 - simpleEnd]; + for (var _i3 = valueTypeEnd; _i3 < totalLength; ++_i3) props[_i3] = advanceds[_i3 - valueTypeEnd]; + })(); + return function() { + var i = 0; + for (;i < simpleEnd; i += 2) this[props[i]] = props[i + 1]; + for (;i < valueTypeEnd; i += 2) this[props[i]] = props[i + 1].clone(); + for (;i < props.length; i += 2) { + var def = props[i + 1]; + if (Array.isArray(def)) this[props[i]] = []; else { + var value; + if ("object" === typeof def) value = {}; else { + false; + value = def(); + } + this[props[i]] = value; + } + } + }; + } + var IDENTIFIER_RE = /^[A-Za-z_$][0-9A-Za-z_$]*$/; + function compileProps(actualClass) { + var attrs = Attr.getClassAttrs(actualClass); + var propList = actualClass.__props__; + if (null === propList) { + deferredInitializer.init(); + propList = actualClass.__props__; + } + var initProps = getInitPropsJit(attrs, propList); + actualClass.prototype.__initProps__ = initProps; + initProps.call(this); + } + var _createCtor = function(ctors, baseClass, className, options) { + var superCallBounded = baseClass && boundSuperCalls(baseClass, options, className); + var ctorName = "CCClass"; + var body = "return function " + ctorName + "(){\n"; + superCallBounded && (body += "this._super=null;\n"); + body += "this.__initProps__(" + ctorName + ");\n"; + var ctorLen = ctors.length; + if (ctorLen > 0) { + var useTryCatch = false; + useTryCatch && (body += "try{\n"); + var SNIPPET = "].apply(this,arguments);\n"; + if (1 === ctorLen) body += ctorName + ".__ctors__[0" + SNIPPET; else { + body += "var cs=" + ctorName + ".__ctors__;\n"; + for (var i = 0; i < ctorLen; i++) body += "cs[" + i + SNIPPET; + } + useTryCatch && (body += "}catch(e){\ncc._throw(e);\n}\n"); + } + body += "}"; + return Function(body)(); + }; + function _validateCtor_DEV(ctor, baseClass, className, options) { + var originCtor; + false; + !(ctor.length > 0) || className && className.startsWith("cc.") || cc.warnID(3617, className); + return ctor; + } + function _getAllCtors(baseClass, mixins, options) { + function getCtors(cls) { + return CCClass._isCCClass(cls) ? cls.__ctors__ || [] : [ cls ]; + } + var ctors = []; + var baseOrMixins = [ baseClass ].concat(mixins); + for (var b = 0; b < baseOrMixins.length; b++) { + var baseOrMixin = baseOrMixins[b]; + if (baseOrMixin) { + var baseCtors = getCtors(baseOrMixin); + for (var c = 0; c < baseCtors.length; c++) pushUnique(ctors, baseCtors[c]); + } + } + var ctor = options.ctor; + ctor && ctors.push(ctor); + return ctors; + } + var SuperCallReg = /xyz/.test((function() { + xyz; + })) ? /\b\._super\b/ : /.*/; + var SuperCallRegStrict = /xyz/.test((function() { + xyz; + })) ? /this\._super\s*\(/ : /(NONE){99}/; + function boundSuperCalls(baseClass, options, className) { + var hasSuperCall = false; + for (var funcName in options) { + if (BUILTIN_ENTRIES.indexOf(funcName) >= 0) continue; + var func = options[funcName]; + if ("function" !== typeof func) continue; + var pd = js.getPropertyDescriptor(baseClass.prototype, funcName); + if (pd) { + var superFunc = pd.value; + if ("function" === typeof superFunc) { + if (SuperCallReg.test(func)) { + hasSuperCall = true; + options[funcName] = (function(superFunc, func) { + return function() { + var tmp = this._super; + this._super = superFunc; + var ret = func.apply(this, arguments); + this._super = tmp; + return ret; + }; + })(superFunc, func); + } + continue; + } + } + false; + } + return hasSuperCall; + } + function declareProperties(cls, className, properties, baseClass, mixins, es6) { + cls.__props__ = []; + baseClass && baseClass.__props__ && (cls.__props__ = baseClass.__props__.slice()); + if (mixins) for (var m = 0; m < mixins.length; ++m) { + var mixin = mixins[m]; + mixin.__props__ && (cls.__props__ = cls.__props__.concat(mixin.__props__.filter((function(x) { + return cls.__props__.indexOf(x) < 0; + })))); + } + if (properties) { + preprocess.preprocessAttrs(properties, className, cls, es6); + for (var propName in properties) { + var val = properties[propName]; + "default" in val ? defineProp(cls, className, propName, val, es6) : defineGetSet(cls, className, propName, val, es6); + } + } + var attrs = Attr.getClassAttrs(cls); + cls.__values__ = cls.__props__.filter((function(prop) { + return false !== attrs[prop + DELIMETER + "serializable"]; + })); + } + function CCClass(options) { + options = options || {}; + var name = options.name; + var base = options["extends"]; + var mixins = options.mixins; + var cls = define(name, base, mixins, options); + name || (name = cc.js.getClassName(cls)); + cls._sealed = true; + base && (base._sealed = false); + var properties = options.properties; + if ("function" === typeof properties || base && null === base.__props__ || mixins && mixins.some((function(x) { + return null === x.__props__; + }))) { + false; + deferredInitializer.push({ + cls: cls, + props: properties, + mixins: mixins + }); + cls.__props__ = cls.__values__ = null; + } else declareProperties(cls, name, properties, base, options.mixins, options.__ES6__); + var statics = options.statics; + if (statics) { + var staticPropName; + false; + for (staticPropName in statics) cls[staticPropName] = statics[staticPropName]; + } + for (var funcName in options) { + if (BUILTIN_ENTRIES.indexOf(funcName) >= 0) continue; + var func = options[funcName]; + if (!preprocess.validateMethodWithProps(func, funcName, name, cls, base)) continue; + js.value(cls.prototype, funcName, func, true, true); + } + var editor = options.editor; + editor && cc.Component._registerEditorProps(cls, editor); + return cls; + } + CCClass._isCCClass = function(constructor) { + return constructor && constructor.hasOwnProperty("__ctors__"); + }; + CCClass._fastDefine = function(className, constructor, serializableFields) { + js.setClassName(className, constructor); + var props = constructor.__props__ = constructor.__values__ = Object.keys(serializableFields); + var attrs = Attr.getClassAttrs(constructor); + for (var i = 0; i < props.length; i++) { + var key = props[i]; + attrs[key + DELIMETER + "visible"] = false; + attrs[key + DELIMETER + "default"] = serializableFields[key]; + } + }; + CCClass.Attr = Attr; + CCClass.attr = Attr.attr; + CCClass.getInheritanceChain = function(klass) { + var chain = []; + for (;;) { + klass = js.getSuper(klass); + if (!klass) break; + klass !== Object && chain.push(klass); + } + return chain; + }; + var PrimitiveTypes = { + Integer: "Number", + Float: "Number", + Boolean: "Boolean", + String: "String" + }; + var onAfterProps_ET = []; + function parseAttributes(cls, attributes, className, propName, usedInGetter) { + var ERR_Type = ""; + var attrs = null; + var propNamePrefix = ""; + function initAttrs() { + propNamePrefix = propName + DELIMETER; + return attrs = Attr.getClassAttrs(cls); + } + false, false; + var type = attributes.type; + if (type) { + var primitiveType = PrimitiveTypes[type]; + if (primitiveType) { + (attrs || initAttrs())[propNamePrefix + "type"] = type; + (false, false) && !attributes._short && onAfterProps_ET.push(Attr.getTypeChecker_ET(primitiveType, "cc." + type)); + } else if ("Object" === type) false; else if (type === Attr.ScriptUuid) { + (attrs || initAttrs())[propNamePrefix + "type"] = "Script"; + attrs[propNamePrefix + "ctor"] = cc.ScriptAsset; + } else if ("object" === typeof type) if (Enum.isEnum(type)) { + (attrs || initAttrs())[propNamePrefix + "type"] = "Enum"; + attrs[propNamePrefix + "enumList"] = Enum.getList(type); + } else false; else if ("function" === typeof type) { + (attrs || initAttrs())[propNamePrefix + "type"] = "Object"; + attrs[propNamePrefix + "ctor"] = type; + (false, false) && !attributes._short && onAfterProps_ET.push(Attr.getObjTypeChecker_ET(type)); + } else false; + } + function parseSimpleAttr(attrName, expectType) { + if (attrName in attributes) { + var val = attributes[attrName]; + typeof val === expectType && ((attrs || initAttrs())[propNamePrefix + attrName] = val); + } + } + if (attributes.editorOnly) { + false; + (attrs || initAttrs())[propNamePrefix + "editorOnly"] = true; + } + false; + if (false === attributes.serializable) { + false; + (attrs || initAttrs())[propNamePrefix + "serializable"] = false; + } + parseSimpleAttr("formerlySerializedAs", "string"); + false; + var visible; + var startsWithUS; + false; + var range = attributes.range; + if (range) if (Array.isArray(range)) if (range.length >= 2) { + (attrs || initAttrs())[propNamePrefix + "min"] = range[0]; + attrs[propNamePrefix + "max"] = range[1]; + range.length > 2 && (attrs[propNamePrefix + "step"] = range[2]); + } else false; else false; + parseSimpleAttr("min", "number"); + parseSimpleAttr("max", "number"); + parseSimpleAttr("step", "number"); + parseSimpleAttr("userData", "object"); + } + cc.Class = CCClass; + module.exports = { + isArray: function isArray(defaultVal) { + defaultVal = getDefault(defaultVal); + return Array.isArray(defaultVal); + }, + fastDefine: CCClass._fastDefine, + getNewValueTypeCode: (true, getNewValueTypeCodeJit), + IDENTIFIER_RE: IDENTIFIER_RE, + escapeForJS: escapeForJS, + getDefault: getDefault + }; + false; + }), { + "./CCEnum": 123, + "./attribute": 133, + "./js": 142, + "./preprocess-class": 143, + "./requiring-frame": 144, + "./utils": 145 + } ], + 122: [ (function(require, module, exports) { + "use strict"; + require("./CCClass"); + var Preprocess = require("./preprocess-class"); + var js = require("./js"); + var isPlainEmptyObj_DEV = false; + var CACHE_KEY = "__ccclassCache__"; + function fNOP(ctor) { + return ctor; + } + function getSubDict(obj, key) { + return obj[key] || (obj[key] = {}); + } + function checkCtorArgument(decorate) { + return function(target) { + if ("function" === typeof target) return decorate(target); + return function(ctor) { + return decorate(ctor, target); + }; + }; + } + function _checkNormalArgument(validator_DEV, decorate, decoratorName) { + return function(target) { + false; + return function(ctor) { + return decorate(ctor, target); + }; + }; + } + var checkCompArgument = _checkNormalArgument.bind(null, false); + function _argumentChecker(type) { + return _checkNormalArgument.bind(null, false); + } + var checkStringArgument = _argumentChecker("string"); + var checkNumberArgument = _argumentChecker("number"); + function getClassCache(ctor, decoratorName) { + false; + return getSubDict(ctor, CACHE_KEY); + } + function getDefaultFromInitializer(initializer) { + var value; + try { + value = initializer(); + } catch (e) { + return initializer; + } + return "object" !== typeof value || null === value ? value : initializer; + } + function extractActualDefaultValues(ctor) { + var dummyObj; + try { + dummyObj = new ctor(); + } catch (e) { + false; + return {}; + } + return dummyObj; + } + function genProperty(ctor, properties, propName, options, desc, cache) { + var fullOptions; + var isGetset = desc && (desc.get || desc.set); + options && (fullOptions = Preprocess.getFullFormOfProperty(options, isGetset)); + var existsProperty = properties[propName]; + var prop = js.mixin(existsProperty || {}, fullOptions || options || {}); + if (isGetset) { + var errorProps; + false; + desc.get && (prop.get = desc.get); + desc.set && (prop.set = desc.set); + } else { + false; + var defaultValue = void 0; + var isDefaultValueSpecified = false; + if (desc) { + if (desc.initializer) { + defaultValue = getDefaultFromInitializer(desc.initializer); + isDefaultValueSpecified = true; + } + } else { + var actualDefaultValues = cache["default"] || (cache["default"] = extractActualDefaultValues(ctor)); + if (actualDefaultValues.hasOwnProperty(propName)) { + defaultValue = actualDefaultValues[propName]; + isDefaultValueSpecified = true; + } + } + false, false; + prop["default"] = defaultValue; + } + properties[propName] = prop; + } + var ccclass = checkCtorArgument((function(ctor, name) { + var base = js.getSuper(ctor); + base === Object && (base = null); + var proto = { + name: name, + extends: base, + ctor: ctor, + __ES6__: true + }; + var cache = ctor[CACHE_KEY]; + if (cache) { + var decoratedProto = cache.proto; + decoratedProto && js.mixin(proto, decoratedProto); + ctor[CACHE_KEY] = void 0; + } + var res = cc.Class(proto); + var propNames; + var i; + var prop; + var desc; + var func; + false; + return res; + })); + function property(ctorProtoOrOptions, propName, desc) { + var options = null; + function normalized(ctorProto, propName, desc) { + var cache = getClassCache(ctorProto.constructor); + if (cache) { + var ccclassProto = getSubDict(cache, "proto"); + var properties = getSubDict(ccclassProto, "properties"); + genProperty(ctorProto.constructor, properties, propName, options, desc, cache); + } + } + if ("undefined" === typeof propName) { + options = ctorProtoOrOptions; + return normalized; + } + normalized(ctorProtoOrOptions, propName, desc); + } + function createEditorDecorator(argCheckFunc, editorPropName, staticValue) { + return argCheckFunc((function(ctor, decoratedValue) { + var cache = getClassCache(ctor, editorPropName); + if (cache) { + var value = void 0 !== staticValue ? staticValue : decoratedValue; + var proto = getSubDict(cache, "proto"); + getSubDict(proto, "editor")[editorPropName] = value; + } + }), editorPropName); + } + function createDummyDecorator(argCheckFunc) { + return argCheckFunc(fNOP); + } + var executeInEditMode = createDummyDecorator(checkCtorArgument, "executeInEditMode", true); + var requireComponent = createEditorDecorator(checkCompArgument, "requireComponent"); + var menu = createDummyDecorator(checkStringArgument, "menu"); + var executionOrder = createEditorDecorator(checkNumberArgument, "executionOrder"); + var disallowMultiple = createDummyDecorator(checkCtorArgument, "disallowMultiple"); + var playOnFocus = createDummyDecorator(checkCtorArgument, "playOnFocus", true); + var inspector = createDummyDecorator(checkStringArgument, "inspector"); + var icon = createDummyDecorator(checkStringArgument, "icon"); + var help = createDummyDecorator(checkStringArgument, "help"); + function mixins() { + var mixins = []; + for (var i = 0; i < arguments.length; i++) mixins[i] = arguments[i]; + return function(ctor) { + var cache = getClassCache(ctor, "mixins"); + cache && (getSubDict(cache, "proto").mixins = mixins); + }; + } + cc._decorator = module.exports = { + ccclass: ccclass, + property: property, + executeInEditMode: executeInEditMode, + requireComponent: requireComponent, + menu: menu, + executionOrder: executionOrder, + disallowMultiple: disallowMultiple, + playOnFocus: playOnFocus, + inspector: inspector, + icon: icon, + help: help, + mixins: mixins + }; + }), { + "./CCClass": 121, + "./js": 142, + "./preprocess-class": 143, + "./utils": 145 + } ], + 123: [ (function(require, module, exports) { + "use strict"; + var js = require("./js"); + function Enum(obj) { + if ("__enums__" in obj) return obj; + js.value(obj, "__enums__", null, true); + var lastIndex = -1; + var keys = Object.keys(obj); + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + var val = obj[key]; + if (-1 === val) { + val = ++lastIndex; + obj[key] = val; + } else if ("number" === typeof val) lastIndex = val; else if ("string" === typeof val && Number.isInteger(parseFloat(key))) continue; + var reverseKey = "" + val; + if (key !== reverseKey) { + if ((false, false) && reverseKey in obj && obj[reverseKey] !== key) { + cc.errorID(7100, reverseKey); + continue; + } + js.value(obj, reverseKey, key); + } + } + return obj; + } + Enum.isEnum = function(enumType) { + return enumType && enumType.hasOwnProperty("__enums__"); + }; + Enum.getList = function(enumDef) { + if (enumDef.__enums__) return enumDef.__enums__; + var enums = enumDef.__enums__ = []; + for (var name in enumDef) { + var value = enumDef[name]; + Number.isInteger(value) && enums.push({ + name: name, + value: value + }); + } + enums.sort((function(a, b) { + return a.value - b.value; + })); + return enums; + }; + var _TestEnum; + false; + module.exports = cc.Enum = Enum; + }), { + "./js": 142 + } ], + 124: [ (function(require, module, exports) { + "use strict"; + var eventManager = require("../event-manager"); + var inputManager = require("./CCInputManager"); + var PORTRAIT = 0; + var LANDSCAPE_LEFT = -90; + var PORTRAIT_UPSIDE_DOWN = 180; + var LANDSCAPE_RIGHT = 90; + var _didAccelerateFun; + cc.Acceleration = function(x, y, z, timestamp) { + this.x = x || 0; + this.y = y || 0; + this.z = z || 0; + this.timestamp = timestamp || 0; + }; + inputManager.setAccelerometerEnabled = function(isEnable) { + var _t = this; + if (_t._accelEnabled === isEnable) return; + _t._accelEnabled = isEnable; + var scheduler = cc.director.getScheduler(); + scheduler.enableForTarget(_t); + if (_t._accelEnabled) { + _t._registerAccelerometerEvent(); + _t._accelCurTime = 0; + scheduler.scheduleUpdate(_t); + } else { + _t._unregisterAccelerometerEvent(); + _t._accelCurTime = 0; + scheduler.unscheduleUpdate(_t); + } + false, false; + }; + inputManager.setAccelerometerInterval = function(interval) { + if (this._accelInterval !== interval) { + this._accelInterval = interval; + false, false; + } + }; + inputManager._registerKeyboardEvent = function() { + cc.game.canvas.addEventListener("keydown", (function(e) { + eventManager.dispatchEvent(new cc.Event.EventKeyboard(e.keyCode, true)); + e.stopPropagation(); + e.preventDefault(); + }), false); + cc.game.canvas.addEventListener("keyup", (function(e) { + eventManager.dispatchEvent(new cc.Event.EventKeyboard(e.keyCode, false)); + e.stopPropagation(); + e.preventDefault(); + }), false); + }; + inputManager._registerAccelerometerEvent = function() { + var w = window, _t = this; + _t._acceleration = new cc.Acceleration(); + _t._accelDeviceEvent = w.DeviceMotionEvent || w.DeviceOrientationEvent; + cc.sys.browserType === cc.sys.BROWSER_TYPE_MOBILE_QQ && (_t._accelDeviceEvent = window.DeviceOrientationEvent); + var _deviceEventType = _t._accelDeviceEvent === w.DeviceMotionEvent ? "devicemotion" : "deviceorientation"; + var ua = navigator.userAgent; + (/Android/.test(ua) || /Adr/.test(ua) && cc.sys.browserType === cc.BROWSER_TYPE_UC) && (_t._minus = -1); + _didAccelerateFun = _t.didAccelerate.bind(_t); + w.addEventListener(_deviceEventType, _didAccelerateFun, false); + }; + inputManager._unregisterAccelerometerEvent = function() { + var w = window, _t = this; + var _deviceEventType = _t._accelDeviceEvent === w.DeviceMotionEvent ? "devicemotion" : "deviceorientation"; + _didAccelerateFun && w.removeEventListener(_deviceEventType, _didAccelerateFun, false); + }; + inputManager.didAccelerate = function(eventData) { + var _t = this, w = window; + if (!_t._accelEnabled) return; + var mAcceleration = _t._acceleration; + var x, y, z; + if (_t._accelDeviceEvent === window.DeviceMotionEvent) { + var eventAcceleration = eventData["accelerationIncludingGravity"]; + x = _t._accelMinus * eventAcceleration.x * .1; + y = _t._accelMinus * eventAcceleration.y * .1; + z = .1 * eventAcceleration.z; + } else { + x = eventData["gamma"] / 90 * .981; + y = -eventData["beta"] / 90 * .981; + z = eventData["alpha"] / 90 * .981; + } + if (cc.view._isRotated) { + var tmp = x; + x = -y; + y = tmp; + } + mAcceleration.x = x; + mAcceleration.y = y; + mAcceleration.z = z; + mAcceleration.timestamp = eventData.timeStamp || Date.now(); + var tmpX = mAcceleration.x; + if (w.orientation === LANDSCAPE_RIGHT) { + mAcceleration.x = -mAcceleration.y; + mAcceleration.y = tmpX; + } else if (w.orientation === LANDSCAPE_LEFT) { + mAcceleration.x = mAcceleration.y; + mAcceleration.y = -tmpX; + } else if (w.orientation === PORTRAIT_UPSIDE_DOWN) { + mAcceleration.x = -mAcceleration.x; + mAcceleration.y = -mAcceleration.y; + } + if (cc.sys.os === cc.sys.OS_ANDROID && cc.sys.browserType !== cc.sys.BROWSER_TYPE_MOBILE_QQ) { + mAcceleration.x = -mAcceleration.x; + mAcceleration.y = -mAcceleration.y; + } + }; + }), { + "../event-manager": 112, + "./CCInputManager": 125 + } ], + 125: [ (function(require, module, exports) { + "use strict"; + var macro = require("./CCMacro"); + var sys = require("./CCSys"); + var eventManager = require("../event-manager"); + var TOUCH_TIMEOUT = macro.TOUCH_TIMEOUT; + var _vec2 = cc.v2(); + var inputManager = { + _mousePressed: false, + _isRegisterEvent: false, + _preTouchPoint: cc.v2(0, 0), + _prevMousePoint: cc.v2(0, 0), + _preTouchPool: [], + _preTouchPoolPointer: 0, + _touches: [], + _touchesIntegerDict: {}, + _indexBitsUsed: 0, + _maxTouches: 8, + _accelEnabled: false, + _accelInterval: .2, + _accelMinus: 1, + _accelCurTime: 0, + _acceleration: null, + _accelDeviceEvent: null, + _canvasBoundingRect: { + left: 0, + top: 0, + adjustedLeft: 0, + adjustedTop: 0, + width: 0, + height: 0 + }, + _getUnUsedIndex: function _getUnUsedIndex() { + var temp = this._indexBitsUsed; + var now = cc.sys.now(); + for (var i = 0; i < this._maxTouches; i++) { + if (!(1 & temp)) { + this._indexBitsUsed |= 1 << i; + return i; + } + var touch = this._touches[i]; + if (now - touch._lastModified > TOUCH_TIMEOUT) { + this._removeUsedIndexBit(i); + delete this._touchesIntegerDict[touch.getID()]; + return i; + } + temp >>= 1; + } + return -1; + }, + _removeUsedIndexBit: function _removeUsedIndexBit(index) { + if (index < 0 || index >= this._maxTouches) return; + var temp = 1 << index; + temp = ~temp; + this._indexBitsUsed &= temp; + }, + _glView: null, + _updateCanvasBoundingRect: function _updateCanvasBoundingRect() { + var element = cc.game.canvas; + var canvasBoundingRect = this._canvasBoundingRect; + var docElem = document.documentElement; + var leftOffset = window.pageXOffset - docElem.clientLeft; + var topOffset = window.pageYOffset - docElem.clientTop; + if (element.getBoundingClientRect) { + var box = element.getBoundingClientRect(); + canvasBoundingRect.left = box.left + leftOffset; + canvasBoundingRect.top = box.top + topOffset; + canvasBoundingRect.width = box.width; + canvasBoundingRect.height = box.height; + } else if (element instanceof HTMLCanvasElement) { + canvasBoundingRect.left = leftOffset; + canvasBoundingRect.top = topOffset; + canvasBoundingRect.width = element.width; + canvasBoundingRect.height = element.height; + } else { + canvasBoundingRect.left = leftOffset; + canvasBoundingRect.top = topOffset; + canvasBoundingRect.width = parseInt(element.style.width); + canvasBoundingRect.height = parseInt(element.style.height); + } + }, + handleTouchesBegin: function handleTouchesBegin(touches) { + var selTouch, index, curTouch, touchID, handleTouches = [], locTouchIntDict = this._touchesIntegerDict, now = sys.now(); + for (var i = 0, len = touches.length; i < len; i++) { + selTouch = touches[i]; + touchID = selTouch.getID(); + index = locTouchIntDict[touchID]; + if (null == index) { + var unusedIndex = this._getUnUsedIndex(); + if (-1 === unusedIndex) { + cc.logID(2300, unusedIndex); + continue; + } + curTouch = this._touches[unusedIndex] = new cc.Touch(selTouch._point.x, selTouch._point.y, selTouch.getID()); + curTouch._lastModified = now; + curTouch._setPrevPoint(selTouch._prevPoint); + locTouchIntDict[touchID] = unusedIndex; + handleTouches.push(curTouch); + } + } + if (handleTouches.length > 0) { + this._glView._convertTouchesWithScale(handleTouches); + var touchEvent = new cc.Event.EventTouch(handleTouches); + touchEvent._eventCode = cc.Event.EventTouch.BEGAN; + eventManager.dispatchEvent(touchEvent); + } + }, + handleTouchesMove: function handleTouchesMove(touches) { + var selTouch, index, touchID, handleTouches = [], locTouches = this._touches, now = sys.now(); + for (var i = 0, len = touches.length; i < len; i++) { + selTouch = touches[i]; + touchID = selTouch.getID(); + index = this._touchesIntegerDict[touchID]; + if (null == index) continue; + if (locTouches[index]) { + locTouches[index]._setPoint(selTouch._point); + locTouches[index]._setPrevPoint(selTouch._prevPoint); + locTouches[index]._lastModified = now; + handleTouches.push(locTouches[index]); + } + } + if (handleTouches.length > 0) { + this._glView._convertTouchesWithScale(handleTouches); + var touchEvent = new cc.Event.EventTouch(handleTouches); + touchEvent._eventCode = cc.Event.EventTouch.MOVED; + eventManager.dispatchEvent(touchEvent); + } + }, + handleTouchesEnd: function handleTouchesEnd(touches) { + var handleTouches = this.getSetOfTouchesEndOrCancel(touches); + if (handleTouches.length > 0) { + this._glView._convertTouchesWithScale(handleTouches); + var touchEvent = new cc.Event.EventTouch(handleTouches); + touchEvent._eventCode = cc.Event.EventTouch.ENDED; + eventManager.dispatchEvent(touchEvent); + } + this._preTouchPool.length = 0; + }, + handleTouchesCancel: function handleTouchesCancel(touches) { + var handleTouches = this.getSetOfTouchesEndOrCancel(touches); + if (handleTouches.length > 0) { + this._glView._convertTouchesWithScale(handleTouches); + var touchEvent = new cc.Event.EventTouch(handleTouches); + touchEvent._eventCode = cc.Event.EventTouch.CANCELED; + eventManager.dispatchEvent(touchEvent); + } + this._preTouchPool.length = 0; + }, + getSetOfTouchesEndOrCancel: function getSetOfTouchesEndOrCancel(touches) { + var selTouch, index, touchID, handleTouches = [], locTouches = this._touches, locTouchesIntDict = this._touchesIntegerDict; + for (var i = 0, len = touches.length; i < len; i++) { + selTouch = touches[i]; + touchID = selTouch.getID(); + index = locTouchesIntDict[touchID]; + if (null == index) continue; + if (locTouches[index]) { + locTouches[index]._setPoint(selTouch._point); + locTouches[index]._setPrevPoint(selTouch._prevPoint); + handleTouches.push(locTouches[index]); + this._removeUsedIndexBit(index); + delete locTouchesIntDict[touchID]; + } + } + return handleTouches; + }, + getPreTouch: function getPreTouch(touch) { + var preTouch = null; + var locPreTouchPool = this._preTouchPool; + var id = touch.getID(); + for (var i = locPreTouchPool.length - 1; i >= 0; i--) if (locPreTouchPool[i].getID() === id) { + preTouch = locPreTouchPool[i]; + break; + } + preTouch || (preTouch = touch); + return preTouch; + }, + setPreTouch: function setPreTouch(touch) { + var find = false; + var locPreTouchPool = this._preTouchPool; + var id = touch.getID(); + for (var i = locPreTouchPool.length - 1; i >= 0; i--) if (locPreTouchPool[i].getID() === id) { + locPreTouchPool[i] = touch; + find = true; + break; + } + if (!find) if (locPreTouchPool.length <= 50) locPreTouchPool.push(touch); else { + locPreTouchPool[this._preTouchPoolPointer] = touch; + this._preTouchPoolPointer = (this._preTouchPoolPointer + 1) % 50; + } + }, + getTouchByXY: function getTouchByXY(tx, ty, pos) { + var locPreTouch = this._preTouchPoint; + var location = this._glView.convertToLocationInView(tx, ty, pos); + var touch = new cc.Touch(location.x, location.y, 0); + touch._setPrevPoint(locPreTouch.x, locPreTouch.y); + locPreTouch.x = location.x; + locPreTouch.y = location.y; + return touch; + }, + getMouseEvent: function getMouseEvent(location, pos, eventType) { + var locPreMouse = this._prevMousePoint; + var mouseEvent = new cc.Event.EventMouse(eventType); + mouseEvent._setPrevCursor(locPreMouse.x, locPreMouse.y); + locPreMouse.x = location.x; + locPreMouse.y = location.y; + this._glView._convertMouseToLocationInView(locPreMouse, pos); + mouseEvent.setLocation(locPreMouse.x, locPreMouse.y); + return mouseEvent; + }, + getPointByEvent: function getPointByEvent(event, pos) { + cc.sys.browserType !== cc.sys.BROWSER_TYPE_QQ && cc.sys.browserType !== cc.sys.BROWSER_TYPE_UC && cc.sys.browserType !== cc.sys.BROWSER_TYPE_SAFARI || this._updateCanvasBoundingRect(); + if (null != event.pageX) return { + x: event.pageX, + y: event.pageY + }; + pos.left -= document.body.scrollLeft; + pos.top -= document.body.scrollTop; + return { + x: event.clientX, + y: event.clientY + }; + }, + getTouchesByEvent: function getTouchesByEvent(event, pos) { + var touchArr = [], locView = this._glView; + var touch_event, touch, preLocation; + var locPreTouch = this._preTouchPoint; + var length = event.changedTouches.length; + for (var i = 0; i < length; i++) { + touch_event = event.changedTouches[i]; + if (touch_event) { + var location = void 0; + location = sys.BROWSER_TYPE_FIREFOX === sys.browserType ? locView.convertToLocationInView(touch_event.pageX, touch_event.pageY, pos, _vec2) : locView.convertToLocationInView(touch_event.clientX, touch_event.clientY, pos, _vec2); + if (null != touch_event.identifier) { + touch = new cc.Touch(location.x, location.y, touch_event.identifier); + preLocation = this.getPreTouch(touch).getLocation(); + touch._setPrevPoint(preLocation.x, preLocation.y); + this.setPreTouch(touch); + } else { + touch = new cc.Touch(location.x, location.y); + touch._setPrevPoint(locPreTouch.x, locPreTouch.y); + } + locPreTouch.x = location.x; + locPreTouch.y = location.y; + touchArr.push(touch); + } + } + return touchArr; + }, + registerSystemEvent: function registerSystemEvent(element) { + if (this._isRegisterEvent) return; + this._glView = cc.view; + var selfPointer = this; + var canvasBoundingRect = this._canvasBoundingRect; + window.addEventListener("resize", this._updateCanvasBoundingRect.bind(this)); + var prohibition = sys.isMobile; + var supportMouse = "mouse" in sys.capabilities; + var supportTouches = "touches" in sys.capabilities; + if (supportMouse) { + if (!prohibition) { + window.addEventListener("mousedown", (function() { + selfPointer._mousePressed = true; + }), false); + window.addEventListener("mouseup", (function(event) { + if (!selfPointer._mousePressed) return; + selfPointer._mousePressed = false; + var location = selfPointer.getPointByEvent(event, canvasBoundingRect); + if (!cc.rect(canvasBoundingRect.left, canvasBoundingRect.top, canvasBoundingRect.width, canvasBoundingRect.height).contains(location)) { + selfPointer.handleTouchesEnd([ selfPointer.getTouchByXY(location.x, location.y, canvasBoundingRect) ]); + var mouseEvent = selfPointer.getMouseEvent(location, canvasBoundingRect, cc.Event.EventMouse.UP); + mouseEvent.setButton(event.button); + eventManager.dispatchEvent(mouseEvent); + } + }), false); + } + var EventMouse = cc.Event.EventMouse; + var _mouseEventsOnElement = [ !prohibition && [ "mousedown", EventMouse.DOWN, function(event, mouseEvent, location, canvasBoundingRect) { + selfPointer._mousePressed = true; + selfPointer.handleTouchesBegin([ selfPointer.getTouchByXY(location.x, location.y, canvasBoundingRect) ]); + element.focus(); + } ], !prohibition && [ "mouseup", EventMouse.UP, function(event, mouseEvent, location, canvasBoundingRect) { + selfPointer._mousePressed = false; + selfPointer.handleTouchesEnd([ selfPointer.getTouchByXY(location.x, location.y, canvasBoundingRect) ]); + } ], !prohibition && [ "mousemove", EventMouse.MOVE, function(event, mouseEvent, location, canvasBoundingRect) { + selfPointer.handleTouchesMove([ selfPointer.getTouchByXY(location.x, location.y, canvasBoundingRect) ]); + selfPointer._mousePressed || mouseEvent.setButton(null); + } ], [ "mousewheel", EventMouse.SCROLL, function(event, mouseEvent) { + mouseEvent.setScrollData(0, event.wheelDelta); + } ], [ "DOMMouseScroll", EventMouse.SCROLL, function(event, mouseEvent) { + mouseEvent.setScrollData(0, -120 * event.detail); + } ] ]; + for (var i = 0; i < _mouseEventsOnElement.length; ++i) { + var entry = _mouseEventsOnElement[i]; + entry && (function() { + var name = entry[0]; + var type = entry[1]; + var handler = entry[2]; + element.addEventListener(name, (function(event) { + var location = selfPointer.getPointByEvent(event, canvasBoundingRect); + var mouseEvent = selfPointer.getMouseEvent(location, canvasBoundingRect, type); + mouseEvent.setButton(event.button); + handler(event, mouseEvent, location, canvasBoundingRect); + eventManager.dispatchEvent(mouseEvent); + event.stopPropagation(); + event.preventDefault(); + }), false); + })(); + } + } + if (window.navigator.msPointerEnabled) { + var _pointerEventsMap = { + MSPointerDown: selfPointer.handleTouchesBegin, + MSPointerMove: selfPointer.handleTouchesMove, + MSPointerUp: selfPointer.handleTouchesEnd, + MSPointerCancel: selfPointer.handleTouchesCancel + }; + var _loop = function _loop(eventName) { + var touchEvent = _pointerEventsMap[eventName]; + element.addEventListener(eventName, (function(event) { + var documentElement = document.documentElement; + canvasBoundingRect.adjustedLeft = canvasBoundingRect.left - documentElement.scrollLeft; + canvasBoundingRect.adjustedTop = canvasBoundingRect.top - documentElement.scrollTop; + touchEvent.call(selfPointer, [ selfPointer.getTouchByXY(event.clientX, event.clientY, canvasBoundingRect) ]); + event.stopPropagation(); + }), false); + }; + for (var eventName in _pointerEventsMap) _loop(eventName); + } + if (supportTouches) { + var _touchEventsMap = { + touchstart: function touchstart(touchesToHandle) { + selfPointer.handleTouchesBegin(touchesToHandle); + element.focus(); + }, + touchmove: function touchmove(touchesToHandle) { + selfPointer.handleTouchesMove(touchesToHandle); + }, + touchend: function touchend(touchesToHandle) { + selfPointer.handleTouchesEnd(touchesToHandle); + }, + touchcancel: function touchcancel(touchesToHandle) { + selfPointer.handleTouchesCancel(touchesToHandle); + } + }; + var registerTouchEvent = function registerTouchEvent(eventName) { + var handler = _touchEventsMap[eventName]; + element.addEventListener(eventName, (function(event) { + if (!event.changedTouches) return; + var body = document.body; + canvasBoundingRect.adjustedLeft = canvasBoundingRect.left - (body.scrollLeft || window.scrollX || 0); + canvasBoundingRect.adjustedTop = canvasBoundingRect.top - (body.scrollTop || window.scrollY || 0); + handler(selfPointer.getTouchesByEvent(event, canvasBoundingRect)); + event.stopPropagation(); + event.preventDefault(); + }), false); + }; + for (var _eventName in _touchEventsMap) registerTouchEvent(_eventName); + } + this._registerKeyboardEvent(); + this._isRegisterEvent = true; + }, + _registerKeyboardEvent: function _registerKeyboardEvent() {}, + _registerAccelerometerEvent: function _registerAccelerometerEvent() {}, + update: function update(dt) { + if (this._accelCurTime > this._accelInterval) { + this._accelCurTime -= this._accelInterval; + eventManager.dispatchEvent(new cc.Event.EventAcceleration(this._acceleration)); + } + this._accelCurTime += dt; + } + }; + module.exports = cc.internal.inputManager = inputManager; + }), { + "../event-manager": 112, + "./CCMacro": 126, + "./CCSys": 130 + } ], + 126: [ (function(require, module, exports) { + "use strict"; + cc.macro = { + RAD: Math.PI / 180, + DEG: 180 / Math.PI, + REPEAT_FOREVER: Number.MAX_VALUE - 1, + FLT_EPSILON: 1.192092896e-7, + MIN_ZINDEX: -Math.pow(2, 15), + MAX_ZINDEX: Math.pow(2, 15) - 1, + ONE: 1, + ZERO: 0, + SRC_ALPHA: 770, + SRC_ALPHA_SATURATE: 776, + SRC_COLOR: 768, + DST_ALPHA: 772, + DST_COLOR: 774, + ONE_MINUS_SRC_ALPHA: 771, + ONE_MINUS_SRC_COLOR: 769, + ONE_MINUS_DST_ALPHA: 773, + ONE_MINUS_DST_COLOR: 775, + ONE_MINUS_CONSTANT_ALPHA: 32772, + ONE_MINUS_CONSTANT_COLOR: 32770, + ORIENTATION_PORTRAIT: 1, + ORIENTATION_LANDSCAPE: 2, + ORIENTATION_AUTO: 3, + DENSITYDPI_DEVICE: "device-dpi", + DENSITYDPI_HIGH: "high-dpi", + DENSITYDPI_MEDIUM: "medium-dpi", + DENSITYDPI_LOW: "low-dpi", + FIX_ARTIFACTS_BY_STRECHING_TEXEL_TMX: true, + DIRECTOR_STATS_POSITION: cc.v2(0, 0), + ENABLE_STACKABLE_ACTIONS: true, + TOUCH_TIMEOUT: 5e3, + BATCH_VERTEX_COUNT: 2e4, + ENABLE_TILEDMAP_CULLING: true, + ENABLE_TRANSPARENT_CANVAS: false, + ENABLE_WEBGL_ANTIALIAS: false, + ENABLE_CULLING: false, + CLEANUP_IMAGE_CACHE: false, + SHOW_MESH_WIREFRAME: false, + SHOW_MESH_NORMAL: false, + ENABLE_MULTI_TOUCH: true, + ALLOW_IMAGE_BITMAP: !cc.sys.isMobile, + ENABLE_NATIVE_TTF_RENDERER: false + }; + Object.defineProperty(cc.macro, "ROTATE_ACTION_CCW", { + set: function set(value) { + cc.RotateTo && cc.RotateBy && (cc.RotateTo._reverse = cc.RotateBy._reverse = value); + } + }); + var SUPPORT_TEXTURE_FORMATS = [ ".pkm", ".pvr", ".webp", ".jpg", ".jpeg", ".bmp", ".png" ]; + cc.macro.SUPPORT_TEXTURE_FORMATS = SUPPORT_TEXTURE_FORMATS; + cc.macro.KEY = { + none: 0, + back: 6, + menu: 18, + backspace: 8, + tab: 9, + enter: 13, + shift: 16, + ctrl: 17, + alt: 18, + pause: 19, + capslock: 20, + escape: 27, + space: 32, + pageup: 33, + pagedown: 34, + end: 35, + home: 36, + left: 37, + up: 38, + right: 39, + down: 40, + select: 41, + insert: 45, + Delete: 46, + 0: 48, + 1: 49, + 2: 50, + 3: 51, + 4: 52, + 5: 53, + 6: 54, + 7: 55, + 8: 56, + 9: 57, + a: 65, + b: 66, + c: 67, + d: 68, + e: 69, + f: 70, + g: 71, + h: 72, + i: 73, + j: 74, + k: 75, + l: 76, + m: 77, + n: 78, + o: 79, + p: 80, + q: 81, + r: 82, + s: 83, + t: 84, + u: 85, + v: 86, + w: 87, + x: 88, + y: 89, + z: 90, + num0: 96, + num1: 97, + num2: 98, + num3: 99, + num4: 100, + num5: 101, + num6: 102, + num7: 103, + num8: 104, + num9: 105, + "*": 106, + "+": 107, + "-": 109, + numdel: 110, + "/": 111, + f1: 112, + f2: 113, + f3: 114, + f4: 115, + f5: 116, + f6: 117, + f7: 118, + f8: 119, + f9: 120, + f10: 121, + f11: 122, + f12: 123, + numlock: 144, + scrolllock: 145, + ";": 186, + semicolon: 186, + equal: 187, + "=": 187, + ",": 188, + comma: 188, + dash: 189, + ".": 190, + period: 190, + forwardslash: 191, + grave: 192, + "[": 219, + openbracket: 219, + backslash: 220, + "]": 221, + closebracket: 221, + quote: 222, + dpadLeft: 1e3, + dpadRight: 1001, + dpadUp: 1003, + dpadDown: 1004, + dpadCenter: 1005 + }; + cc.macro.ImageFormat = cc.Enum({ + JPG: 0, + PNG: 1, + TIFF: 2, + WEBP: 3, + PVR: 4, + ETC: 5, + S3TC: 6, + ATITC: 7, + TGA: 8, + RAWDATA: 9, + UNKNOWN: 10 + }); + cc.macro.BlendFactor = cc.Enum({ + ONE: 1, + ZERO: 0, + SRC_ALPHA: 770, + SRC_COLOR: 768, + DST_ALPHA: 772, + DST_COLOR: 774, + ONE_MINUS_SRC_ALPHA: 771, + ONE_MINUS_SRC_COLOR: 769, + ONE_MINUS_DST_ALPHA: 773, + ONE_MINUS_DST_COLOR: 775 + }); + cc.macro.TextAlignment = cc.Enum({ + LEFT: 0, + CENTER: 1, + RIGHT: 2 + }); + cc.macro.VerticalTextAlignment = cc.Enum({ + TOP: 0, + CENTER: 1, + BOTTOM: 2 + }); + module.exports = cc.macro; + }), {} ], + 127: [ (function(require, module, exports) { + "use strict"; + var js = require("./js"); + var CCClass = require("./CCClass"); + var Destroyed = 1; + var RealDestroyed = 2; + var ToDestroy = 4; + var DontSave = 8; + var EditorOnly = 16; + var Dirty = 32; + var DontDestroy = 64; + var Destroying = 128; + var Deactivating = 256; + var LockedInEditor = 512; + var HideInHierarchy = 1024; + var IsOnEnableCalled = 2048; + var IsEditorOnEnableCalled = 4096; + var IsPreloadStarted = 8192; + var IsOnLoadCalled = 16384; + var IsOnLoadStarted = 32768; + var IsStartCalled = 65536; + var IsRotationLocked = 1 << 17; + var IsScaleLocked = 1 << 18; + var IsAnchorLocked = 1 << 19; + var IsSizeLocked = 1 << 20; + var IsPositionLocked = 1 << 21; + var PersistentMask = ~(ToDestroy | Dirty | Destroying | DontDestroy | Deactivating | IsPreloadStarted | IsOnLoadStarted | IsOnLoadCalled | IsStartCalled | IsOnEnableCalled | IsEditorOnEnableCalled | IsRotationLocked | IsScaleLocked | IsAnchorLocked | IsSizeLocked | IsPositionLocked); + function CCObject() { + this._name = ""; + this._objFlags = 0; + } + CCClass.fastDefine("cc.Object", CCObject, { + _name: "", + _objFlags: 0 + }); + js.value(CCObject, "Flags", { + Destroyed: Destroyed, + DontSave: DontSave, + EditorOnly: EditorOnly, + Dirty: Dirty, + DontDestroy: DontDestroy, + PersistentMask: PersistentMask, + Destroying: Destroying, + Deactivating: Deactivating, + LockedInEditor: LockedInEditor, + HideInHierarchy: HideInHierarchy, + IsPreloadStarted: IsPreloadStarted, + IsOnLoadStarted: IsOnLoadStarted, + IsOnLoadCalled: IsOnLoadCalled, + IsOnEnableCalled: IsOnEnableCalled, + IsStartCalled: IsStartCalled, + IsEditorOnEnableCalled: IsEditorOnEnableCalled, + IsPositionLocked: IsPositionLocked, + IsRotationLocked: IsRotationLocked, + IsScaleLocked: IsScaleLocked, + IsAnchorLocked: IsAnchorLocked, + IsSizeLocked: IsSizeLocked + }); + var objectsToDestroy = []; + function deferredDestroy() { + var deleteCount = objectsToDestroy.length; + for (var i = 0; i < deleteCount; ++i) { + var obj = objectsToDestroy[i]; + obj._objFlags & Destroyed || obj._destroyImmediate(); + } + deleteCount === objectsToDestroy.length ? objectsToDestroy.length = 0 : objectsToDestroy.splice(0, deleteCount); + false; + } + js.value(CCObject, "_deferredDestroy", deferredDestroy); + false; + var prototype = CCObject.prototype; + js.getset(prototype, "name", (function() { + return this._name; + }), (function(value) { + this._name = value; + }), true); + js.get(prototype, "isValid", (function() { + return !(this._objFlags & Destroyed); + }), true); + false, false; + var deferredDestroyTimer = null; + prototype.destroy = function() { + if (this._objFlags & Destroyed) { + cc.warnID(5e3); + return false; + } + if (this._objFlags & ToDestroy) return false; + this._objFlags |= ToDestroy; + objectsToDestroy.push(this); + false; + return true; + }; + false, false; + function compileDestruct(obj, ctor) { + var shouldSkipId = obj instanceof cc._BaseNode || obj instanceof cc.Component; + var idToSkip = shouldSkipId ? "_id" : null; + var key, propsToReset = {}; + for (key in obj) if (obj.hasOwnProperty(key)) { + if (key === idToSkip) continue; + switch (typeof obj[key]) { + case "string": + propsToReset[key] = ""; + break; + + case "object": + case "function": + propsToReset[key] = null; + } + } + if (cc.Class._isCCClass(ctor)) { + var attrs = cc.Class.Attr.getClassAttrs(ctor); + var propList = ctor.__props__; + for (var i = 0; i < propList.length; i++) { + key = propList[i]; + var attrKey = key + cc.Class.Attr.DELIMETER + "default"; + if (attrKey in attrs) { + if (shouldSkipId && "_id" === key) continue; + switch (typeof attrs[attrKey]) { + case "string": + propsToReset[key] = ""; + break; + + case "object": + case "function": + propsToReset[key] = null; + break; + + case "undefined": + propsToReset[key] = void 0; + } + } + } + } + true; + var func = ""; + for (key in propsToReset) { + var statement; + statement = CCClass.IDENTIFIER_RE.test(key) ? "o." + key + "=" : "o[" + CCClass.escapeForJS(key) + "]="; + var val = propsToReset[key]; + "" === val && (val = '""'); + func += statement + val + ";\n"; + } + return Function("o", func); + } + prototype._destruct = function() { + var ctor = this.constructor; + var destruct = ctor.__destruct__; + if (!destruct) { + destruct = compileDestruct(this, ctor); + js.value(ctor, "__destruct__", destruct, true); + } + destruct(this); + }; + prototype._onPreDestroy = null; + prototype._destroyImmediate = function() { + if (this._objFlags & Destroyed) { + cc.errorID(5e3); + return; + } + this._onPreDestroy && this._onPreDestroy(); + true; + this._destruct(); + this._objFlags |= Destroyed; + }; + false; + prototype._deserialize = null; + cc.isValid = function(value, strictMode) { + return "object" === typeof value ? !!value && !(value._objFlags & (strictMode ? Destroyed | ToDestroy : Destroyed)) : "undefined" !== typeof value; + }; + false, false; + cc.Object = module.exports = CCObject; + }), { + "./CCClass": 121, + "./js": 142 + } ], + 128: [ (function(require, module, exports) { + "use strict"; + var js = require("../platform/js"); + cc.SAXParser = function() { + if (true, window.DOMParser) { + this._isSupportDOMParser = true; + this._parser = new DOMParser(); + } else { + this._isSupportDOMParser = false; + this._parser = null; + } + }; + cc.SAXParser.prototype = { + constructor: cc.SAXParser, + parse: function parse(xmlTxt) { + return this._parseXML(xmlTxt); + }, + _parseXML: function _parseXML(textxml) { + var xmlDoc; + if (this._isSupportDOMParser) xmlDoc = this._parser.parseFromString(textxml, "text/xml"); else { + xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); + xmlDoc.async = "false"; + xmlDoc.loadXML(textxml); + } + return xmlDoc; + } + }; + cc.PlistParser = function() { + cc.SAXParser.call(this); + }; + js.extend(cc.PlistParser, cc.SAXParser); + js.mixin(cc.PlistParser.prototype, { + parse: function parse(xmlTxt) { + var xmlDoc = this._parseXML(xmlTxt); + var plist = xmlDoc.documentElement; + if ("plist" !== plist.tagName) { + cc.warnID(5100); + return {}; + } + var node = null; + for (var i = 0, len = plist.childNodes.length; i < len; i++) { + node = plist.childNodes[i]; + if (1 === node.nodeType) break; + } + xmlDoc = null; + return this._parseNode(node); + }, + _parseNode: function _parseNode(node) { + var data = null, tagName = node.tagName; + if ("dict" === tagName) data = this._parseDict(node); else if ("array" === tagName) data = this._parseArray(node); else if ("string" === tagName) if (1 === node.childNodes.length) data = node.firstChild.nodeValue; else { + data = ""; + for (var i = 0; i < node.childNodes.length; i++) data += node.childNodes[i].nodeValue; + } else "false" === tagName ? data = false : "true" === tagName ? data = true : "real" === tagName ? data = parseFloat(node.firstChild.nodeValue) : "integer" === tagName && (data = parseInt(node.firstChild.nodeValue, 10)); + return data; + }, + _parseArray: function _parseArray(node) { + var data = []; + for (var i = 0, len = node.childNodes.length; i < len; i++) { + var child = node.childNodes[i]; + if (1 !== child.nodeType) continue; + data.push(this._parseNode(child)); + } + return data; + }, + _parseDict: function _parseDict(node) { + var data = {}; + var key = null; + for (var i = 0, len = node.childNodes.length; i < len; i++) { + var child = node.childNodes[i]; + if (1 !== child.nodeType) continue; + "key" === child.tagName ? key = child.firstChild.nodeValue : data[key] = this._parseNode(child); + } + return data; + } + }); + cc.saxParser = new cc.SAXParser(); + cc.plistParser = new cc.PlistParser(); + module.exports = { + saxParser: cc.saxParser, + plistParser: cc.plistParser + }; + }), { + "../platform/js": 142 + } ], + 129: [ (function(require, module, exports) { + "use strict"; + cc.screen = { + _supportsFullScreen: false, + _onfullscreenchange: null, + _onfullscreenerror: null, + _preOnFullScreenChange: null, + _preOnFullScreenError: null, + _preOnTouch: null, + _touchEvent: "", + _fn: null, + _fnMap: [ [ "requestFullscreen", "exitFullscreen", "fullscreenchange", "fullscreenEnabled", "fullscreenElement", "fullscreenerror" ], [ "requestFullScreen", "exitFullScreen", "fullScreenchange", "fullScreenEnabled", "fullScreenElement", "fullscreenerror" ], [ "webkitRequestFullScreen", "webkitCancelFullScreen", "webkitfullscreenchange", "webkitIsFullScreen", "webkitCurrentFullScreenElement", "webkitfullscreenerror" ], [ "mozRequestFullScreen", "mozCancelFullScreen", "mozfullscreenchange", "mozFullScreen", "mozFullScreenElement", "mozfullscreenerror" ], [ "msRequestFullscreen", "msExitFullscreen", "MSFullscreenChange", "msFullscreenEnabled", "msFullscreenElement", "msfullscreenerror" ] ], + init: function init() { + this._fn = {}; + var i, l, val, map = this._fnMap, valL; + for (i = 0, l = map.length; i < l; i++) { + val = map[i]; + if (val && "undefined" !== typeof document[val[1]]) { + for (i = 0, valL = val.length; i < valL; i++) this._fn[map[0][i]] = val[i]; + break; + } + } + this._supportsFullScreen = void 0 !== this._fn.requestFullscreen; + this._touchEvent = "ontouchend" in window ? "touchend" : "mousedown"; + }, + fullScreen: function fullScreen() { + return !!this._supportsFullScreen && !!(document[this._fn.fullscreenElement] || document[this._fn.webkitFullscreenElement] || document[this._fn.mozFullScreenElement]); + }, + requestFullScreen: function requestFullScreen(element, onFullScreenChange, onFullScreenError) { + if (element && "video" === element.tagName.toLowerCase()) { + if (cc.sys.os === cc.sys.OS_IOS && cc.sys.isBrowser && element.readyState > 0) { + element.webkitEnterFullscreen && element.webkitEnterFullscreen(); + return; + } + element.setAttribute("x5-video-player-fullscreen", "true"); + } + if (!this._supportsFullScreen) return; + element = element || document.documentElement; + if (onFullScreenChange) { + var eventName = this._fn.fullscreenchange; + this._onfullscreenchange && document.removeEventListener(eventName, this._onfullscreenchange); + this._onfullscreenchange = onFullScreenChange; + document.addEventListener(eventName, onFullScreenChange, false); + } + if (onFullScreenError) { + var _eventName = this._fn.fullscreenerror; + this._onfullscreenerror && document.removeEventListener(_eventName, this._onfullscreenerror); + this._onfullscreenerror = onFullScreenError; + document.addEventListener(_eventName, onFullScreenError, { + once: true + }); + } + var requestPromise = element[this._fn.requestFullscreen](); + "undefined" === typeof document[this._fn.fullscreenerror] && window.Promise && requestPromise instanceof Promise && requestPromise["catch"]((function(err) {})); + }, + exitFullScreen: function exitFullScreen(element) { + if (element && "video" === element.tagName.toLowerCase()) { + if (cc.sys.os === cc.sys.OS_IOS && cc.sys.isBrowser) { + element.webkitExitFullscreen && element.webkitExitFullscreen(); + return; + } + element.setAttribute("x5-video-player-fullscreen", "false"); + } + return !this._supportsFullScreen || document[this._fn.exitFullscreen](); + }, + autoFullScreen: function autoFullScreen(element, onFullScreenChange) { + element = element || document.body; + this._ensureFullScreen(element, onFullScreenChange); + this.requestFullScreen(element, onFullScreenChange); + }, + disableAutoFullScreen: function disableAutoFullScreen(element) { + var touchTarget = cc.game.canvas || element; + var touchEventName = this._touchEvent; + if (this._preOnTouch) { + touchTarget.removeEventListener(touchEventName, this._preOnTouch); + this._preOnTouch = null; + } + }, + _ensureFullScreen: function _ensureFullScreen(element, onFullScreenChange) { + var self = this; + var touchTarget = cc.game.canvas || element; + var fullScreenErrorEventName = this._fn.fullscreenerror; + var touchEventName = this._touchEvent; + function onFullScreenError() { + self._preOnFullScreenError = null; + function onTouch() { + self._preOnTouch = null; + self.requestFullScreen(element, onFullScreenChange); + } + self._preOnTouch && touchTarget.removeEventListener(touchEventName, self._preOnTouch); + self._preOnTouch = onTouch; + touchTarget.addEventListener(touchEventName, self._preOnTouch, { + once: true + }); + } + this._preOnFullScreenError && element.removeEventListener(fullScreenErrorEventName, this._preOnFullScreenError); + this._preOnFullScreenError = onFullScreenError; + element.addEventListener(fullScreenErrorEventName, onFullScreenError, { + once: true + }); + } + }; + cc.screen.init(); + }), {} ], + 130: [ (function(require, module, exports) { + "use strict"; + var settingPlatform; + true; + settingPlatform = window._CCSettings ? _CCSettings.platform : void 0; + var isVivoGame = "qgame" === settingPlatform; + var isOppoGame = "quickgame" === settingPlatform; + var isHuaweiGame = "huawei" === settingPlatform; + var isJKWGame = "jkw-game" === settingPlatform; + var isQttGame = "qtt-game" === settingPlatform; + var isLinkSure = "link-sure" === settingPlatform; + var _global = "undefined" === typeof window ? global : window; + function initSys() { + cc.sys = {}; + var sys = cc.sys; + sys.LANGUAGE_ENGLISH = "en"; + sys.LANGUAGE_CHINESE = "zh"; + sys.LANGUAGE_FRENCH = "fr"; + sys.LANGUAGE_ITALIAN = "it"; + sys.LANGUAGE_GERMAN = "de"; + sys.LANGUAGE_SPANISH = "es"; + sys.LANGUAGE_DUTCH = "du"; + sys.LANGUAGE_RUSSIAN = "ru"; + sys.LANGUAGE_KOREAN = "ko"; + sys.LANGUAGE_JAPANESE = "ja"; + sys.LANGUAGE_HUNGARIAN = "hu"; + sys.LANGUAGE_PORTUGUESE = "pt"; + sys.LANGUAGE_ARABIC = "ar"; + sys.LANGUAGE_NORWEGIAN = "no"; + sys.LANGUAGE_POLISH = "pl"; + sys.LANGUAGE_TURKISH = "tr"; + sys.LANGUAGE_UKRAINIAN = "uk"; + sys.LANGUAGE_ROMANIAN = "ro"; + sys.LANGUAGE_BULGARIAN = "bg"; + sys.LANGUAGE_UNKNOWN = "unknown"; + sys.OS_IOS = "iOS"; + sys.OS_ANDROID = "Android"; + sys.OS_WINDOWS = "Windows"; + sys.OS_MARMALADE = "Marmalade"; + sys.OS_LINUX = "Linux"; + sys.OS_BADA = "Bada"; + sys.OS_BLACKBERRY = "Blackberry"; + sys.OS_OSX = "OS X"; + sys.OS_WP8 = "WP8"; + sys.OS_WINRT = "WINRT"; + sys.OS_UNKNOWN = "Unknown"; + sys.UNKNOWN = -1; + sys.WIN32 = 0; + sys.LINUX = 1; + sys.MACOS = 2; + sys.ANDROID = 3; + sys.IPHONE = 4; + sys.IPAD = 5; + sys.BLACKBERRY = 6; + sys.NACL = 7; + sys.EMSCRIPTEN = 8; + sys.TIZEN = 9; + sys.WINRT = 10; + sys.WP8 = 11; + sys.MOBILE_BROWSER = 100; + sys.DESKTOP_BROWSER = 101; + sys.EDITOR_PAGE = 102; + sys.EDITOR_CORE = 103; + sys.WECHAT_GAME = 104; + sys.QQ_PLAY = 105; + sys.FB_PLAYABLE_ADS = 106; + sys.BAIDU_GAME = 107; + sys.VIVO_GAME = 108; + sys.OPPO_GAME = 109; + sys.HUAWEI_GAME = 110; + sys.XIAOMI_GAME = 111; + sys.JKW_GAME = 112; + sys.ALIPAY_GAME = 113; + sys.WECHAT_GAME_SUB = 114; + sys.BAIDU_GAME_SUB = 115; + sys.QTT_GAME = 116; + sys.BYTEDANCE_GAME = 117; + sys.BYTEDANCE_GAME_SUB = 118; + sys.LINKSURE = 119; + sys.BROWSER_TYPE_WECHAT = "wechat"; + sys.BROWSER_TYPE_ANDROID = "androidbrowser"; + sys.BROWSER_TYPE_IE = "ie"; + sys.BROWSER_TYPE_EDGE = "edge"; + sys.BROWSER_TYPE_QQ = "qqbrowser"; + sys.BROWSER_TYPE_MOBILE_QQ = "mqqbrowser"; + sys.BROWSER_TYPE_UC = "ucbrowser"; + sys.BROWSER_TYPE_UCBS = "ucbs"; + sys.BROWSER_TYPE_360 = "360browser"; + sys.BROWSER_TYPE_BAIDU_APP = "baiduboxapp"; + sys.BROWSER_TYPE_BAIDU = "baidubrowser"; + sys.BROWSER_TYPE_MAXTHON = "maxthon"; + sys.BROWSER_TYPE_OPERA = "opera"; + sys.BROWSER_TYPE_OUPENG = "oupeng"; + sys.BROWSER_TYPE_MIUI = "miuibrowser"; + sys.BROWSER_TYPE_FIREFOX = "firefox"; + sys.BROWSER_TYPE_SAFARI = "safari"; + sys.BROWSER_TYPE_CHROME = "chrome"; + sys.BROWSER_TYPE_LIEBAO = "liebao"; + sys.BROWSER_TYPE_QZONE = "qzone"; + sys.BROWSER_TYPE_SOUGOU = "sogou"; + sys.BROWSER_TYPE_HUAWEI = "huawei"; + sys.BROWSER_TYPE_UNKNOWN = "unknown"; + sys.isNative = (false, false); + sys.isBrowser = "object" === typeof window && "object" === typeof document && true; + sys.glExtension = function(name) { + return !!cc.renderer.device.ext(name); + }; + sys.getMaxJointMatrixSize = function() { + if (!sys._maxJointMatrixSize) { + var JOINT_MATRICES_SIZE = 50; + var LEFT_UNIFORM_SIZE = 10; + var gl = cc.game._renderContext; + var maxUniforms = Math.floor(gl.getParameter(gl.MAX_VERTEX_UNIFORM_VECTORS) / 4) - LEFT_UNIFORM_SIZE; + sys._maxJointMatrixSize = maxUniforms < JOINT_MATRICES_SIZE ? 0 : JOINT_MATRICES_SIZE; + } + return sys._maxJointMatrixSize; + }; + sys.getSafeAreaRect = function() { + var visibleSize = cc.view.getVisibleSize(); + return cc.rect(0, 0, visibleSize.width, visibleSize.height); + }; + if (_global.__globalAdapter && _global.__globalAdapter.adaptSys) _global.__globalAdapter.adaptSys(sys); else { + false; + var platform; + var languageCode; + var w; + var h; + var ratio; + var capabilities; + false, false; + var win = window, nav = win.navigator, doc = document, docEle = doc.documentElement; + var ua = nav.userAgent.toLowerCase(); + false; + sys.isMobile = /mobile|android|iphone|ipad/.test(ua); + "undefined" !== typeof FbPlayableAd ? sys.platform = sys.FB_PLAYABLE_ADS : sys.platform = sys.isMobile ? sys.MOBILE_BROWSER : sys.DESKTOP_BROWSER; + var currLanguage = nav.language; + currLanguage = currLanguage || nav.browserLanguage; + sys.languageCode = currLanguage.toLowerCase(); + currLanguage = currLanguage ? currLanguage.split("-")[0] : sys.LANGUAGE_ENGLISH; + sys.language = currLanguage; + var isAndroid = false, iOS = false, osVersion = "", osMainVersion = 0; + var uaResult = /android\s*(\d+(?:\.\d+)*)/i.exec(ua) || /android\s*(\d+(?:\.\d+)*)/i.exec(nav.platform); + if (uaResult) { + isAndroid = true; + osVersion = uaResult[1] || ""; + osMainVersion = parseInt(osVersion) || 0; + } + uaResult = /(iPad|iPhone|iPod).*OS ((\d+_?){2,3})/i.exec(ua); + if (uaResult) { + iOS = true; + osVersion = uaResult[2] || ""; + osMainVersion = parseInt(osVersion) || 0; + } else if (/(iPhone|iPad|iPod)/.exec(nav.platform) || "MacIntel" === nav.platform && nav.maxTouchPoints && nav.maxTouchPoints > 1) { + iOS = true; + osVersion = ""; + osMainVersion = 0; + } + var osName = sys.OS_UNKNOWN; + -1 !== nav.appVersion.indexOf("Win") ? osName = sys.OS_WINDOWS : iOS ? osName = sys.OS_IOS : -1 !== nav.appVersion.indexOf("Mac") ? osName = sys.OS_OSX : -1 !== nav.appVersion.indexOf("X11") && -1 === nav.appVersion.indexOf("Linux") ? osName = sys.OS_UNIX : isAndroid ? osName = sys.OS_ANDROID : -1 === nav.appVersion.indexOf("Linux") && -1 === ua.indexOf("ubuntu") || (osName = sys.OS_LINUX); + sys.os = osName; + sys.osVersion = osVersion; + sys.osMainVersion = osMainVersion; + sys.browserType = sys.BROWSER_TYPE_UNKNOWN; + (function() { + var typeReg1 = /mqqbrowser|micromessenger|qqbrowser|sogou|qzone|liebao|maxthon|ucbs|360 aphone|360browser|baiduboxapp|baidubrowser|maxthon|mxbrowser|miuibrowser/i; + var typeReg2 = /qq|ucbrowser|ubrowser|edge|HuaweiBrowser/i; + var typeReg3 = /chrome|safari|firefox|trident|opera|opr\/|oupeng/i; + var browserTypes = typeReg1.exec(ua) || typeReg2.exec(ua) || typeReg3.exec(ua); + var browserType = browserTypes ? browserTypes[0].toLowerCase() : sys.BROWSER_TYPE_UNKNOWN; + "safari" === browserType && isAndroid ? browserType = sys.BROWSER_TYPE_ANDROID : "qq" === browserType && ua.match(/android.*applewebkit/i) && (browserType = sys.BROWSER_TYPE_ANDROID); + var typeMap = { + micromessenger: sys.BROWSER_TYPE_WECHAT, + trident: sys.BROWSER_TYPE_IE, + edge: sys.BROWSER_TYPE_EDGE, + "360 aphone": sys.BROWSER_TYPE_360, + mxbrowser: sys.BROWSER_TYPE_MAXTHON, + "opr/": sys.BROWSER_TYPE_OPERA, + ubrowser: sys.BROWSER_TYPE_UC, + huaweibrowser: sys.BROWSER_TYPE_HUAWEI + }; + "qqbrowser" !== browserType && "mqqbrowser" !== browserType || ua.match(/wechat|micromessenger/i) && (browserType = sys.BROWSER_TYPE_WECHAT); + sys.browserType = typeMap[browserType] || browserType; + })(); + sys.browserVersion = ""; + (function() { + var versionReg1 = /(mqqbrowser|micromessenger|qqbrowser|sogou|qzone|liebao|maxthon|uc|ucbs|360 aphone|360|baiduboxapp|baidu|maxthon|mxbrowser|miui(?:.hybrid)?)(mobile)?(browser)?\/?([\d.]+)/i; + var versionReg2 = /(qq|chrome|safari|firefox|trident|opera|opr\/|oupeng)(mobile)?(browser)?\/?([\d.]+)/i; + var tmp = ua.match(versionReg1); + tmp || (tmp = ua.match(versionReg2)); + sys.browserVersion = tmp ? tmp[4] : ""; + })(); + var w = window.innerWidth || document.documentElement.clientWidth; + var h = window.innerHeight || document.documentElement.clientHeight; + var ratio = window.devicePixelRatio || 1; + sys.windowPixelResolution = { + width: ratio * w, + height: ratio * h + }; + sys._checkWebGLRenderMode = function() { + if (cc.game.renderType !== cc.game.RENDER_TYPE_WEBGL) throw new Error("This feature supports WebGL render mode only."); + }; + var _tmpCanvas1 = document.createElement("canvas"); + var create3DContext = function create3DContext(canvas, opt_attribs, opt_contextType) { + if (!opt_contextType) return create3DContext(canvas, opt_attribs, "webgl") || create3DContext(canvas, opt_attribs, "experimental-webgl") || create3DContext(canvas, opt_attribs, "webkit-3d") || create3DContext(canvas, opt_attribs, "moz-webgl") || null; + try { + return canvas.getContext(opt_contextType, opt_attribs); + } catch (e) { + return null; + } + }; + try { + var localStorage = sys.localStorage = win.localStorage; + localStorage.setItem("storage", ""); + localStorage.removeItem("storage"); + localStorage = null; + } catch (e) { + var warn = function warn() { + cc.warnID(5200); + }; + sys.localStorage = { + getItem: warn, + setItem: warn, + removeItem: warn, + clear: warn + }; + } + var _supportWebp = _tmpCanvas1.toDataURL("image/webp").startsWith("data:image/webp"); + var _supportCanvas = !!_tmpCanvas1.getContext("2d"); + var _supportWebGL = false; + false; + win.WebGLRenderingContext && (_supportWebGL = true); + var capabilities = sys.capabilities = { + canvas: _supportCanvas, + opengl: _supportWebGL, + webp: _supportWebp, + imageBitmap: false + }; + if ("undefined" !== typeof createImageBitmap && "undefined" !== typeof Blob) { + _tmpCanvas1.width = _tmpCanvas1.height = 2; + createImageBitmap(_tmpCanvas1, {}).then((function(imageBitmap) { + capabilities.imageBitmap = true; + imageBitmap.close && imageBitmap.close(); + }))["catch"]((function(err) {})); + } + (void 0 !== docEle["ontouchstart"] || void 0 !== doc["ontouchstart"] || nav.msPointerEnabled) && (capabilities["touches"] = true); + void 0 !== docEle["onmouseup"] && (capabilities["mouse"] = true); + void 0 !== docEle["onkeyup"] && (capabilities["keyboard"] = true); + (win.DeviceMotionEvent || win.DeviceOrientationEvent) && (capabilities["accelerometer"] = true); + var __audioSupport; + (function() { + var DEBUG = false; + var version = sys.browserVersion; + var supportWebAudio = !!(window.AudioContext || window.webkitAudioContext || window.mozAudioContext); + __audioSupport = { + ONLY_ONE: false, + WEB_AUDIO: supportWebAudio, + DELAY_CREATE_CTX: false + }; + sys.os === sys.OS_IOS && (__audioSupport.USE_LOADER_EVENT = "loadedmetadata"); + if (sys.browserType === sys.BROWSER_TYPE_FIREFOX) { + __audioSupport.DELAY_CREATE_CTX = true; + __audioSupport.USE_LOADER_EVENT = "canplay"; + } + sys.os === sys.OS_ANDROID && sys.browserType === sys.BROWSER_TYPE_UC && (__audioSupport.ONE_SOURCE = true); + DEBUG && setTimeout((function() { + cc.log("browse type: " + sys.browserType); + cc.log("browse version: " + version); + cc.log("MULTI_CHANNEL: " + __audioSupport.MULTI_CHANNEL); + cc.log("WEB_AUDIO: " + __audioSupport.WEB_AUDIO); + cc.log("AUTOPLAY: " + __audioSupport.AUTOPLAY); + }), 0); + })(); + try { + if (__audioSupport.WEB_AUDIO) { + __audioSupport.context = new (window.AudioContext || window.webkitAudioContext || window.mozAudioContext)(); + __audioSupport.DELAY_CREATE_CTX && setTimeout((function() { + __audioSupport.context = new (window.AudioContext || window.webkitAudioContext || window.mozAudioContext)(); + }), 0); + } + } catch (error) { + __audioSupport.WEB_AUDIO = false; + cc.logID(5201); + } + var formatSupport = []; + (function() { + var audio = document.createElement("audio"); + if (audio.canPlayType) { + var ogg = audio.canPlayType('audio/ogg; codecs="vorbis"'); + ogg && formatSupport.push(".ogg"); + var mp3 = audio.canPlayType("audio/mpeg"); + mp3 && formatSupport.push(".mp3"); + var wav = audio.canPlayType('audio/wav; codecs="1"'); + wav && formatSupport.push(".wav"); + var mp4 = audio.canPlayType("audio/mp4"); + mp4 && formatSupport.push(".mp4"); + var m4a = audio.canPlayType("audio/x-m4a"); + m4a && formatSupport.push(".m4a"); + } + })(); + __audioSupport.format = formatSupport; + sys.__audioSupport = __audioSupport; + } + sys.NetworkType = { + NONE: 0, + LAN: 1, + WWAN: 2 + }; + sys.getNetworkType = function() { + return sys.NetworkType.LAN; + }; + sys.getBatteryLevel = function() { + return 1; + }; + sys.garbageCollect = function() {}; + sys.restartVM = function() {}; + sys.isObjectValid = function(obj) { + if (obj) return true; + return false; + }; + sys.dump = function() { + var self = this; + var str = ""; + str += "isMobile : " + self.isMobile + "\r\n"; + str += "language : " + self.language + "\r\n"; + str += "browserType : " + self.browserType + "\r\n"; + str += "browserVersion : " + self.browserVersion + "\r\n"; + str += "capabilities : " + JSON.stringify(self.capabilities) + "\r\n"; + str += "os : " + self.os + "\r\n"; + str += "osVersion : " + self.osVersion + "\r\n"; + str += "platform : " + self.platform + "\r\n"; + str += "Using " + (cc.game.renderType === cc.game.RENDER_TYPE_WEBGL ? "WEBGL" : "CANVAS") + " renderer.\r\n"; + cc.log(str); + }; + sys.openURL = function(url) { + false, false; + window.open(url); + }; + sys.now = function() { + return Date.now ? Date.now() : +new Date(); + }; + return sys; + } + var sys = cc && cc.sys ? cc.sys : initSys(); + module.exports = sys; + }), {} ], + 131: [ (function(require, module, exports) { + "use strict"; + var EventTarget = require("../event/event-target"); + var js = require("../platform/js"); + var renderer = require("../renderer"); + require("../platform/CCClass"); + var __BrowserGetter = { + init: function init() { + this.html = document.getElementsByTagName("html")[0]; + }, + availWidth: function availWidth(frame) { + return frame && frame !== this.html ? frame.clientWidth : window.innerWidth; + }, + availHeight: function availHeight(frame) { + return frame && frame !== this.html ? frame.clientHeight : window.innerHeight; + }, + meta: { + width: "device-width" + }, + adaptationType: cc.sys.browserType + }; + cc.sys.os === cc.sys.OS_IOS && (__BrowserGetter.adaptationType = cc.sys.BROWSER_TYPE_SAFARI); + switch (__BrowserGetter.adaptationType) { + case cc.sys.BROWSER_TYPE_SAFARI: + case cc.sys.BROWSER_TYPE_SOUGOU: + case cc.sys.BROWSER_TYPE_UC: + __BrowserGetter.meta["minimal-ui"] = "true"; + __BrowserGetter.availWidth = function(frame) { + return frame.clientWidth; + }; + __BrowserGetter.availHeight = function(frame) { + return frame.clientHeight; + }; + } + var _scissorRect = null; + var View = function View() { + EventTarget.call(this); + var _t = this, _strategyer = cc.ContainerStrategy, _strategy = cc.ContentStrategy; + __BrowserGetter.init(this); + _t._frameSize = cc.size(0, 0); + _t._designResolutionSize = cc.size(0, 0); + _t._originalDesignResolutionSize = cc.size(0, 0); + _t._scaleX = 1; + _t._scaleY = 1; + _t._viewportRect = cc.rect(0, 0, 0, 0); + _t._visibleRect = cc.rect(0, 0, 0, 0); + _t._autoFullScreen = false; + _t._devicePixelRatio = 1; + false; + _t._maxPixelRatio = 2; + _t._retinaEnabled = false; + _t._resizeCallback = null; + _t._resizing = false; + _t._resizeWithBrowserSize = false; + _t._orientationChanging = true; + _t._isRotated = false; + _t._orientation = cc.macro.ORIENTATION_AUTO; + _t._isAdjustViewport = true; + _t._antiAliasEnabled = false; + _t._resolutionPolicy = null; + _t._rpExactFit = new cc.ResolutionPolicy(_strategyer.EQUAL_TO_FRAME, _strategy.EXACT_FIT); + _t._rpShowAll = new cc.ResolutionPolicy(_strategyer.EQUAL_TO_FRAME, _strategy.SHOW_ALL); + _t._rpNoBorder = new cc.ResolutionPolicy(_strategyer.EQUAL_TO_FRAME, _strategy.NO_BORDER); + _t._rpFixedHeight = new cc.ResolutionPolicy(_strategyer.EQUAL_TO_FRAME, _strategy.FIXED_HEIGHT); + _t._rpFixedWidth = new cc.ResolutionPolicy(_strategyer.EQUAL_TO_FRAME, _strategy.FIXED_WIDTH); + cc.game.once(cc.game.EVENT_ENGINE_INITED, this.init, this); + }; + cc.js.extend(View, EventTarget); + cc.js.mixin(View.prototype, { + init: function init() { + this._initFrameSize(); + var w = cc.game.canvas.width, h = cc.game.canvas.height; + this._designResolutionSize.width = w; + this._designResolutionSize.height = h; + this._originalDesignResolutionSize.width = w; + this._originalDesignResolutionSize.height = h; + this._viewportRect.width = w; + this._viewportRect.height = h; + this._visibleRect.width = w; + this._visibleRect.height = h; + cc.winSize.width = this._visibleRect.width; + cc.winSize.height = this._visibleRect.height; + cc.visibleRect && cc.visibleRect.init(this._visibleRect); + }, + _resizeEvent: function _resizeEvent(forceOrEvent) { + var view; + view = this.setDesignResolutionSize ? this : cc.view; + var sys = cc.sys; + if (sys.browserType === sys.BROWSER_TYPE_UC && sys.os === sys.OS_IOS) { + setTimeout((function() { + view._resizeEvent(forceOrEvent); + }), 0); + return; + } + var prevFrameW = view._frameSize.width, prevFrameH = view._frameSize.height, prevRotated = view._isRotated; + if (cc.sys.isMobile) { + var containerStyle = cc.game.container.style, margin = containerStyle.margin; + containerStyle.margin = "0"; + containerStyle.display = "none"; + view._initFrameSize(); + containerStyle.margin = margin; + containerStyle.display = "block"; + } else view._initFrameSize(); + if (true !== forceOrEvent && view._isRotated === prevRotated && view._frameSize.width === prevFrameW && view._frameSize.height === prevFrameH) return; + var width = view._originalDesignResolutionSize.width; + var height = view._originalDesignResolutionSize.height; + view._resizing = true; + width > 0 && view.setDesignResolutionSize(width, height, view._resolutionPolicy); + view._resizing = false; + view.emit("canvas-resize"); + view._resizeCallback && view._resizeCallback.call(); + }, + _orientationChange: function _orientationChange() { + cc.view._orientationChanging = true; + cc.view._resizeEvent(); + cc.sys.browserType === cc.sys.BROWSER_TYPE_SAFARI && cc.sys.isMobile && setTimeout((function() { + window.innerHeight > window.innerWidth && window.scrollTo(0, 1); + }), 500); + }, + _resize: function _resize() { + cc.view._resizeEvent(false); + }, + resizeWithBrowserSize: function resizeWithBrowserSize(enabled) { + if (enabled) { + if (!this._resizeWithBrowserSize) { + this._resizeWithBrowserSize = true; + window.addEventListener("resize", this._resize); + window.addEventListener("orientationchange", this._orientationChange); + } + } else if (this._resizeWithBrowserSize) { + this._resizeWithBrowserSize = false; + window.removeEventListener("resize", this._resize); + window.removeEventListener("orientationchange", this._orientationChange); + } + }, + setResizeCallback: function setResizeCallback(callback) { + false; + "function" !== typeof callback && null != callback || (this._resizeCallback = callback); + }, + setOrientation: function setOrientation(orientation) { + orientation &= cc.macro.ORIENTATION_AUTO; + if (orientation && this._orientation !== orientation) { + this._orientation = orientation; + var designWidth = this._originalDesignResolutionSize.width; + var designHeight = this._originalDesignResolutionSize.height; + this.setDesignResolutionSize(designWidth, designHeight, this._resolutionPolicy); + } + }, + _initFrameSize: function _initFrameSize() { + var locFrameSize = this._frameSize; + var w = __BrowserGetter.availWidth(cc.game.frame); + var h = __BrowserGetter.availHeight(cc.game.frame); + var isLandscape = w >= h; + if ((false, !cc.sys.isMobile) || isLandscape && this._orientation & cc.macro.ORIENTATION_LANDSCAPE || !isLandscape && this._orientation & cc.macro.ORIENTATION_PORTRAIT) { + locFrameSize.width = w; + locFrameSize.height = h; + cc.game.container.style["-webkit-transform"] = "rotate(0deg)"; + cc.game.container.style.transform = "rotate(0deg)"; + this._isRotated = false; + } else { + locFrameSize.width = h; + locFrameSize.height = w; + cc.game.container.style["-webkit-transform"] = "rotate(90deg)"; + cc.game.container.style.transform = "rotate(90deg)"; + cc.game.container.style["-webkit-transform-origin"] = "0px 0px 0px"; + cc.game.container.style.transformOrigin = "0px 0px 0px"; + this._isRotated = true; + } + this._orientationChanging && setTimeout((function() { + cc.view._orientationChanging = false; + }), 1e3); + }, + _setViewportMeta: function _setViewportMeta(metas, overwrite) { + var vp = document.getElementById("cocosMetaElement"); + vp && overwrite && document.head.removeChild(vp); + var elems = document.getElementsByName("viewport"), currentVP = elems ? elems[0] : null, content, key, pattern; + content = currentVP ? currentVP.content : ""; + vp = vp || document.createElement("meta"); + vp.id = "cocosMetaElement"; + vp.name = "viewport"; + vp.content = ""; + for (key in metas) if (-1 == content.indexOf(key)) content += "," + key + "=" + metas[key]; else if (overwrite) { + pattern = new RegExp(key + "s*=s*[^,]+"); + content = content.replace(pattern, key + "=" + metas[key]); + } + /^,/.test(content) && (content = content.substr(1)); + vp.content = content; + currentVP && (currentVP.content = content); + document.head.appendChild(vp); + }, + _adjustViewportMeta: function _adjustViewportMeta() { + if (this._isAdjustViewport && true) { + this._setViewportMeta(__BrowserGetter.meta, false); + this._isAdjustViewport = false; + } + }, + adjustViewportMeta: function adjustViewportMeta(enabled) { + this._isAdjustViewport = enabled; + }, + enableRetina: function enableRetina(enabled) { + false; + this._retinaEnabled = !!enabled; + }, + isRetinaEnabled: function isRetinaEnabled() { + false; + return this._retinaEnabled; + }, + enableAntiAlias: function enableAntiAlias(enabled) { + cc.warnID(9200); + if (this._antiAliasEnabled === enabled) return; + this._antiAliasEnabled = enabled; + if (cc.game.renderType === cc.game.RENDER_TYPE_WEBGL) { + var cache = cc.assetManager.assets; + cache.forEach((function(asset) { + if (asset instanceof cc.Texture2D) { + var Filter = cc.Texture2D.Filter; + enabled ? asset.setFilters(Filter.LINEAR, Filter.LINEAR) : asset.setFilters(Filter.NEAREST, Filter.NEAREST); + } + })); + } else if (cc.game.renderType === cc.game.RENDER_TYPE_CANVAS) { + var ctx = cc.game.canvas.getContext("2d"); + ctx.imageSmoothingEnabled = enabled; + ctx.mozImageSmoothingEnabled = enabled; + } + }, + isAntiAliasEnabled: function isAntiAliasEnabled() { + return this._antiAliasEnabled; + }, + enableAutoFullScreen: function enableAutoFullScreen(enabled) { + if (enabled && enabled !== this._autoFullScreen && cc.sys.isMobile) { + this._autoFullScreen = true; + cc.screen.autoFullScreen(cc.game.frame); + } else { + this._autoFullScreen = false; + cc.screen.disableAutoFullScreen(cc.game.frame); + } + }, + isAutoFullScreenEnabled: function isAutoFullScreenEnabled() { + return this._autoFullScreen; + }, + setCanvasSize: function setCanvasSize(width, height) { + var canvas = cc.game.canvas; + var container = cc.game.container; + canvas.width = width * this._devicePixelRatio; + canvas.height = height * this._devicePixelRatio; + canvas.style.width = width + "px"; + canvas.style.height = height + "px"; + container.style.width = width + "px"; + container.style.height = height + "px"; + this._resizeEvent(); + }, + getCanvasSize: function getCanvasSize() { + return cc.size(cc.game.canvas.width, cc.game.canvas.height); + }, + getFrameSize: function getFrameSize() { + return cc.size(this._frameSize.width, this._frameSize.height); + }, + setFrameSize: function setFrameSize(width, height) { + this._frameSize.width = width; + this._frameSize.height = height; + cc.game.frame.style.width = width + "px"; + cc.game.frame.style.height = height + "px"; + this._resizeEvent(true); + }, + getVisibleSize: function getVisibleSize() { + return cc.size(this._visibleRect.width, this._visibleRect.height); + }, + getVisibleSizeInPixel: function getVisibleSizeInPixel() { + return cc.size(this._visibleRect.width * this._scaleX, this._visibleRect.height * this._scaleY); + }, + getVisibleOrigin: function getVisibleOrigin() { + return cc.v2(this._visibleRect.x, this._visibleRect.y); + }, + getVisibleOriginInPixel: function getVisibleOriginInPixel() { + return cc.v2(this._visibleRect.x * this._scaleX, this._visibleRect.y * this._scaleY); + }, + getResolutionPolicy: function getResolutionPolicy() { + return this._resolutionPolicy; + }, + setResolutionPolicy: function setResolutionPolicy(resolutionPolicy) { + var _t = this; + if (resolutionPolicy instanceof cc.ResolutionPolicy) _t._resolutionPolicy = resolutionPolicy; else { + var _locPolicy = cc.ResolutionPolicy; + resolutionPolicy === _locPolicy.EXACT_FIT && (_t._resolutionPolicy = _t._rpExactFit); + resolutionPolicy === _locPolicy.SHOW_ALL && (_t._resolutionPolicy = _t._rpShowAll); + resolutionPolicy === _locPolicy.NO_BORDER && (_t._resolutionPolicy = _t._rpNoBorder); + resolutionPolicy === _locPolicy.FIXED_HEIGHT && (_t._resolutionPolicy = _t._rpFixedHeight); + resolutionPolicy === _locPolicy.FIXED_WIDTH && (_t._resolutionPolicy = _t._rpFixedWidth); + } + }, + setDesignResolutionSize: function setDesignResolutionSize(width, height, resolutionPolicy) { + if (!(width > 0 && height > 0)) { + cc.errorID(2200); + return; + } + this.setResolutionPolicy(resolutionPolicy); + var policy = this._resolutionPolicy; + policy && policy.preApply(this); + cc.sys.isMobile && this._adjustViewportMeta(); + this._orientationChanging = true; + this._resizing || this._initFrameSize(); + if (!policy) { + cc.logID(2201); + return; + } + this._originalDesignResolutionSize.width = this._designResolutionSize.width = width; + this._originalDesignResolutionSize.height = this._designResolutionSize.height = height; + var result = policy.apply(this, this._designResolutionSize); + if (result.scale && 2 === result.scale.length) { + this._scaleX = result.scale[0]; + this._scaleY = result.scale[1]; + } + if (result.viewport) { + var vp = this._viewportRect, vb = this._visibleRect, rv = result.viewport; + vp.x = rv.x; + vp.y = rv.y; + vp.width = rv.width; + vp.height = rv.height; + vb.x = 0; + vb.y = 0; + vb.width = rv.width / this._scaleX; + vb.height = rv.height / this._scaleY; + } + policy.postApply(this); + cc.winSize.width = this._visibleRect.width; + cc.winSize.height = this._visibleRect.height; + cc.visibleRect && cc.visibleRect.init(this._visibleRect); + renderer.updateCameraViewport(); + cc.internal.inputManager._updateCanvasBoundingRect(); + this.emit("design-resolution-changed"); + }, + getDesignResolutionSize: function getDesignResolutionSize() { + return cc.size(this._designResolutionSize.width, this._designResolutionSize.height); + }, + setRealPixelResolution: function setRealPixelResolution(width, height, resolutionPolicy) { + true, true; + this._setViewportMeta({ + width: width + }, true); + document.documentElement.style.width = width + "px"; + document.body.style.width = width + "px"; + document.body.style.left = "0px"; + document.body.style.top = "0px"; + this.setDesignResolutionSize(width, height, resolutionPolicy); + }, + setViewportInPoints: function setViewportInPoints(x, y, w, h) { + var locScaleX = this._scaleX, locScaleY = this._scaleY; + cc.game._renderContext.viewport(x * locScaleX + this._viewportRect.x, y * locScaleY + this._viewportRect.y, w * locScaleX, h * locScaleY); + }, + setScissorInPoints: function setScissorInPoints(x, y, w, h) { + var scaleX = this._scaleX, scaleY = this._scaleY; + var sx = Math.ceil(x * scaleX + this._viewportRect.x); + var sy = Math.ceil(y * scaleY + this._viewportRect.y); + var sw = Math.ceil(w * scaleX); + var sh = Math.ceil(h * scaleY); + var gl = cc.game._renderContext; + if (!_scissorRect) { + var boxArr = gl.getParameter(gl.SCISSOR_BOX); + _scissorRect = cc.rect(boxArr[0], boxArr[1], boxArr[2], boxArr[3]); + } + if (_scissorRect.x !== sx || _scissorRect.y !== sy || _scissorRect.width !== sw || _scissorRect.height !== sh) { + _scissorRect.x = sx; + _scissorRect.y = sy; + _scissorRect.width = sw; + _scissorRect.height = sh; + gl.scissor(sx, sy, sw, sh); + } + }, + isScissorEnabled: function isScissorEnabled() { + return cc.game._renderContext.isEnabled(gl.SCISSOR_TEST); + }, + getScissorRect: function getScissorRect() { + if (!_scissorRect) { + var boxArr = gl.getParameter(gl.SCISSOR_BOX); + _scissorRect = cc.rect(boxArr[0], boxArr[1], boxArr[2], boxArr[3]); + } + var scaleXFactor = 1 / this._scaleX; + var scaleYFactor = 1 / this._scaleY; + return cc.rect((_scissorRect.x - this._viewportRect.x) * scaleXFactor, (_scissorRect.y - this._viewportRect.y) * scaleYFactor, _scissorRect.width * scaleXFactor, _scissorRect.height * scaleYFactor); + }, + getViewportRect: function getViewportRect() { + return this._viewportRect; + }, + getScaleX: function getScaleX() { + return this._scaleX; + }, + getScaleY: function getScaleY() { + return this._scaleY; + }, + getDevicePixelRatio: function getDevicePixelRatio() { + return this._devicePixelRatio; + }, + convertToLocationInView: function convertToLocationInView(tx, ty, relatedPos, out) { + var result = out || cc.v2(); + var posLeft = relatedPos.adjustedLeft ? relatedPos.adjustedLeft : relatedPos.left; + var posTop = relatedPos.adjustedTop ? relatedPos.adjustedTop : relatedPos.top; + var x = this._devicePixelRatio * (tx - posLeft); + var y = this._devicePixelRatio * (posTop + relatedPos.height - ty); + if (this._isRotated) { + result.x = cc.game.canvas.width - y; + result.y = x; + } else { + result.x = x; + result.y = y; + } + return result; + }, + _convertMouseToLocationInView: function _convertMouseToLocationInView(in_out_point, relatedPos) { + var viewport = this._viewportRect, _t = this; + in_out_point.x = (_t._devicePixelRatio * (in_out_point.x - relatedPos.left) - viewport.x) / _t._scaleX; + in_out_point.y = (_t._devicePixelRatio * (relatedPos.top + relatedPos.height - in_out_point.y) - viewport.y) / _t._scaleY; + }, + _convertPointWithScale: function _convertPointWithScale(point) { + var viewport = this._viewportRect; + point.x = (point.x - viewport.x) / this._scaleX; + point.y = (point.y - viewport.y) / this._scaleY; + }, + _convertTouchesWithScale: function _convertTouchesWithScale(touches) { + var viewport = this._viewportRect, scaleX = this._scaleX, scaleY = this._scaleY, selTouch, selPoint, selPrePoint; + for (var i = 0; i < touches.length; i++) { + selTouch = touches[i]; + selPoint = selTouch._point; + selPrePoint = selTouch._prevPoint; + selPoint.x = (selPoint.x - viewport.x) / scaleX; + selPoint.y = (selPoint.y - viewport.y) / scaleY; + selPrePoint.x = (selPrePoint.x - viewport.x) / scaleX; + selPrePoint.y = (selPrePoint.y - viewport.y) / scaleY; + } + } + }); + cc.ContainerStrategy = cc.Class({ + name: "ContainerStrategy", + preApply: function preApply(view) {}, + apply: function apply(view, designedResolution) {}, + postApply: function postApply(view) {}, + _setupContainer: function _setupContainer(view, w, h) { + var locCanvas = cc.game.canvas; + this._setupStyle(view, w, h); + var devicePixelRatio = view._devicePixelRatio = 1; + false; + view.isRetinaEnabled() && (devicePixelRatio = view._devicePixelRatio = Math.min(view._maxPixelRatio, window.devicePixelRatio || 1)); + locCanvas.width = w * devicePixelRatio; + locCanvas.height = h * devicePixelRatio; + }, + _setupStyle: function _setupStyle(view, w, h) { + var locCanvas = cc.game.canvas; + var locContainer = cc.game.container; + if (cc.sys.os === cc.sys.OS_ANDROID) { + document.body.style.width = (view._isRotated ? h : w) + "px"; + document.body.style.height = (view._isRotated ? w : h) + "px"; + } + locContainer.style.width = locCanvas.style.width = w + "px"; + locContainer.style.height = locCanvas.style.height = h + "px"; + }, + _fixContainer: function _fixContainer() { + document.body.insertBefore(cc.game.container, document.body.firstChild); + var bs = document.body.style; + bs.width = window.innerWidth + "px"; + bs.height = window.innerHeight + "px"; + bs.overflow = "hidden"; + var contStyle = cc.game.container.style; + contStyle.position = "fixed"; + contStyle.left = contStyle.top = "0px"; + document.body.scrollTop = 0; + } + }); + cc.ContentStrategy = cc.Class({ + name: "ContentStrategy", + ctor: function ctor() { + this._result = { + scale: [ 1, 1 ], + viewport: null + }; + }, + _buildResult: function _buildResult(containerW, containerH, contentW, contentH, scaleX, scaleY) { + Math.abs(containerW - contentW) < 2 && (contentW = containerW); + Math.abs(containerH - contentH) < 2 && (contentH = containerH); + var viewport = cc.rect((containerW - contentW) / 2, (containerH - contentH) / 2, contentW, contentH); + cc.game.renderType === cc.game.RENDER_TYPE_CANVAS; + this._result.scale = [ scaleX, scaleY ]; + this._result.viewport = viewport; + return this._result; + }, + preApply: function preApply(view) {}, + apply: function apply(view, designedResolution) { + return { + scale: [ 1, 1 ] + }; + }, + postApply: function postApply(view) {} + }); + (function() { + var EqualToFrame = cc.Class({ + name: "EqualToFrame", + extends: cc.ContainerStrategy, + apply: function apply(view) { + var frameH = view._frameSize.height, containerStyle = cc.game.container.style; + this._setupContainer(view, view._frameSize.width, view._frameSize.height); + view._isRotated ? containerStyle.margin = "0 0 0 " + frameH + "px" : containerStyle.margin = "0px"; + containerStyle.padding = "0px"; + } + }); + var ProportionalToFrame = cc.Class({ + name: "ProportionalToFrame", + extends: cc.ContainerStrategy, + apply: function apply(view, designedResolution) { + var frameW = view._frameSize.width, frameH = view._frameSize.height, containerStyle = cc.game.container.style, designW = designedResolution.width, designH = designedResolution.height, scaleX = frameW / designW, scaleY = frameH / designH, containerW, containerH; + scaleX < scaleY ? (containerW = frameW, containerH = designH * scaleX) : (containerW = designW * scaleY, + containerH = frameH); + var offx = Math.round((frameW - containerW) / 2); + var offy = Math.round((frameH - containerH) / 2); + containerW = frameW - 2 * offx; + containerH = frameH - 2 * offy; + this._setupContainer(view, containerW, containerH); + true; + view._isRotated ? containerStyle.margin = "0 0 0 " + frameH + "px" : containerStyle.margin = "0px"; + containerStyle.paddingLeft = offx + "px"; + containerStyle.paddingRight = offx + "px"; + containerStyle.paddingTop = offy + "px"; + containerStyle.paddingBottom = offy + "px"; + } + }); + var EqualToWindow = cc.Class({ + name: "EqualToWindow", + extends: EqualToFrame, + preApply: function preApply(view) { + this._super(view); + cc.game.frame = document.documentElement; + }, + apply: function apply(view) { + this._super(view); + this._fixContainer(); + } + }); + var ProportionalToWindow = cc.Class({ + name: "ProportionalToWindow", + extends: ProportionalToFrame, + preApply: function preApply(view) { + this._super(view); + cc.game.frame = document.documentElement; + }, + apply: function apply(view, designedResolution) { + this._super(view, designedResolution); + this._fixContainer(); + } + }); + var OriginalContainer = cc.Class({ + name: "OriginalContainer", + extends: cc.ContainerStrategy, + apply: function apply(view) { + this._setupContainer(view, cc.game.canvas.width, cc.game.canvas.height); + } + }); + var _global = "undefined" === typeof window ? global : window; + var globalAdapter = _global.__globalAdapter; + if (globalAdapter) { + globalAdapter.adaptContainerStrategy && globalAdapter.adaptContainerStrategy(cc.ContainerStrategy.prototype); + globalAdapter.adaptView && globalAdapter.adaptView(View.prototype); + } + cc.ContainerStrategy.EQUAL_TO_FRAME = new EqualToFrame(); + cc.ContainerStrategy.PROPORTION_TO_FRAME = new ProportionalToFrame(); + cc.ContainerStrategy.ORIGINAL_CONTAINER = new OriginalContainer(); + var ExactFit = cc.Class({ + name: "ExactFit", + extends: cc.ContentStrategy, + apply: function apply(view, designedResolution) { + var containerW = cc.game.canvas.width, containerH = cc.game.canvas.height, scaleX = containerW / designedResolution.width, scaleY = containerH / designedResolution.height; + return this._buildResult(containerW, containerH, containerW, containerH, scaleX, scaleY); + } + }); + var ShowAll = cc.Class({ + name: "ShowAll", + extends: cc.ContentStrategy, + apply: function apply(view, designedResolution) { + var containerW = cc.game.canvas.width, containerH = cc.game.canvas.height, designW = designedResolution.width, designH = designedResolution.height, scaleX = containerW / designW, scaleY = containerH / designH, scale = 0, contentW, contentH; + scaleX < scaleY ? (scale = scaleX, contentW = containerW, contentH = designH * scale) : (scale = scaleY, + contentW = designW * scale, contentH = containerH); + return this._buildResult(containerW, containerH, contentW, contentH, scale, scale); + } + }); + var NoBorder = cc.Class({ + name: "NoBorder", + extends: cc.ContentStrategy, + apply: function apply(view, designedResolution) { + var containerW = cc.game.canvas.width, containerH = cc.game.canvas.height, designW = designedResolution.width, designH = designedResolution.height, scaleX = containerW / designW, scaleY = containerH / designH, scale, contentW, contentH; + scaleX < scaleY ? (scale = scaleY, contentW = designW * scale, contentH = containerH) : (scale = scaleX, + contentW = containerW, contentH = designH * scale); + return this._buildResult(containerW, containerH, contentW, contentH, scale, scale); + } + }); + var FixedHeight = cc.Class({ + name: "FixedHeight", + extends: cc.ContentStrategy, + apply: function apply(view, designedResolution) { + var containerW = cc.game.canvas.width, containerH = cc.game.canvas.height, designH = designedResolution.height, scale = containerH / designH, contentW = containerW, contentH = containerH; + return this._buildResult(containerW, containerH, contentW, contentH, scale, scale); + } + }); + var FixedWidth = cc.Class({ + name: "FixedWidth", + extends: cc.ContentStrategy, + apply: function apply(view, designedResolution) { + var containerW = cc.game.canvas.width, containerH = cc.game.canvas.height, designW = designedResolution.width, scale = containerW / designW, contentW = containerW, contentH = containerH; + return this._buildResult(containerW, containerH, contentW, contentH, scale, scale); + } + }); + cc.ContentStrategy.EXACT_FIT = new ExactFit(); + cc.ContentStrategy.SHOW_ALL = new ShowAll(); + cc.ContentStrategy.NO_BORDER = new NoBorder(); + cc.ContentStrategy.FIXED_HEIGHT = new FixedHeight(); + cc.ContentStrategy.FIXED_WIDTH = new FixedWidth(); + })(); + cc.ResolutionPolicy = cc.Class({ + name: "cc.ResolutionPolicy", + ctor: function ctor(containerStg, contentStg) { + this._containerStrategy = null; + this._contentStrategy = null; + this.setContainerStrategy(containerStg); + this.setContentStrategy(contentStg); + }, + preApply: function preApply(view) { + this._containerStrategy.preApply(view); + this._contentStrategy.preApply(view); + }, + apply: function apply(view, designedResolution) { + this._containerStrategy.apply(view, designedResolution); + return this._contentStrategy.apply(view, designedResolution); + }, + postApply: function postApply(view) { + this._containerStrategy.postApply(view); + this._contentStrategy.postApply(view); + }, + setContainerStrategy: function setContainerStrategy(containerStg) { + containerStg instanceof cc.ContainerStrategy && (this._containerStrategy = containerStg); + }, + setContentStrategy: function setContentStrategy(contentStg) { + contentStg instanceof cc.ContentStrategy && (this._contentStrategy = contentStg); + } + }); + js.get(cc.ResolutionPolicy.prototype, "canvasSize", (function() { + return cc.v2(cc.game.canvas.width, cc.game.canvas.height); + })); + cc.ResolutionPolicy.EXACT_FIT = 0; + cc.ResolutionPolicy.NO_BORDER = 1; + cc.ResolutionPolicy.SHOW_ALL = 2; + cc.ResolutionPolicy.FIXED_HEIGHT = 3; + cc.ResolutionPolicy.FIXED_WIDTH = 4; + cc.ResolutionPolicy.UNKNOWN = 5; + cc.view = new View(); + cc.winSize = cc.size(); + module.exports = cc.view; + }), { + "../event/event-target": 114, + "../platform/CCClass": 121, + "../platform/js": 142, + "../renderer": 152 + } ], + 132: [ (function(require, module, exports) { + "use strict"; + cc.visibleRect = { + topLeft: cc.v2(0, 0), + topRight: cc.v2(0, 0), + top: cc.v2(0, 0), + bottomLeft: cc.v2(0, 0), + bottomRight: cc.v2(0, 0), + bottom: cc.v2(0, 0), + center: cc.v2(0, 0), + left: cc.v2(0, 0), + right: cc.v2(0, 0), + width: 0, + height: 0, + init: function init(visibleRect) { + var w = this.width = visibleRect.width; + var h = this.height = visibleRect.height; + var l = visibleRect.x, b = visibleRect.y, t = b + h, r = l + w; + this.topLeft.x = l; + this.topLeft.y = t; + this.topRight.x = r; + this.topRight.y = t; + this.top.x = l + w / 2; + this.top.y = t; + this.bottomLeft.x = l; + this.bottomLeft.y = b; + this.bottomRight.x = r; + this.bottomRight.y = b; + this.bottom.x = l + w / 2; + this.bottom.y = b; + this.center.x = l + w / 2; + this.center.y = b + h / 2; + this.left.x = l; + this.left.y = b + h / 2; + this.right.x = r; + this.right.y = b + h / 2; + } + }; + }), {} ], + 133: [ (function(require, module, exports) { + "use strict"; + var js = require("./js"); + var isPlainEmptyObj = require("./utils").isPlainEmptyObj_DEV; + var DELIMETER = "$_$"; + function createAttrsSingle(owner, superAttrs) { + var attrs = superAttrs ? Object.create(superAttrs) : {}; + js.value(owner, "__attrs__", attrs); + return attrs; + } + function createAttrs(subclass) { + if ("function" !== typeof subclass) { + var instance = subclass; + return createAttrsSingle(instance, getClassAttrs(instance.constructor)); + } + var superClass; + var chains = cc.Class.getInheritanceChain(subclass); + for (var i = chains.length - 1; i >= 0; i--) { + var cls = chains[i]; + var attrs = cls.hasOwnProperty("__attrs__") && cls.__attrs__; + if (!attrs) { + superClass = chains[i + 1]; + createAttrsSingle(cls, superClass && superClass.__attrs__); + } + } + superClass = chains[0]; + createAttrsSingle(subclass, superClass && superClass.__attrs__); + return subclass.__attrs__; + } + function attr(ctor, propName, newAttrs) { + var attrs = getClassAttrs(ctor); + var _key; + true; + var prefix = propName + DELIMETER; + var ret = {}; + for (var key in attrs) key.startsWith(prefix) && (ret[key.slice(prefix.length)] = attrs[key]); + return ret; + } + function getClassAttrs(ctor) { + return ctor.hasOwnProperty("__attrs__") && ctor.__attrs__ || createAttrs(ctor); + } + function setClassAttr(ctor, propName, key, value) { + getClassAttrs(ctor)[propName + DELIMETER + key] = value; + } + function PrimitiveType(name, def) { + this.name = name; + this["default"] = def; + } + PrimitiveType.prototype.toString = function() { + return this.name; + }; + cc.Integer = new PrimitiveType("Integer", 0); + cc.Float = new PrimitiveType("Float", 0); + false; + cc.Boolean = new PrimitiveType("Boolean", false); + cc.String = new PrimitiveType("String", ""); + function getTypeChecker(type, attrName) { + return function(constructor, mainPropName) { + var propInfo = '"' + js.getClassName(constructor) + "." + mainPropName + '"'; + var mainPropAttrs = attr(constructor, mainPropName); + var mainPropAttrsType = mainPropAttrs.type; + mainPropAttrsType === cc.Integer || mainPropAttrsType === cc.Float ? mainPropAttrsType = "Number" : mainPropAttrsType !== cc.String && mainPropAttrsType !== cc.Boolean || (mainPropAttrsType = "" + mainPropAttrsType); + if (mainPropAttrsType !== type) { + cc.warnID(3604, propInfo); + return; + } + if (!mainPropAttrs.hasOwnProperty("default")) return; + var defaultVal = mainPropAttrs["default"]; + if ("undefined" === typeof defaultVal) return; + var isContainer = Array.isArray(defaultVal) || isPlainEmptyObj(defaultVal); + if (isContainer) return; + var defaultType = typeof defaultVal; + var type_lowerCase = type.toLowerCase(); + if (defaultType === type_lowerCase) if ("object" === type_lowerCase) { + if (!defaultVal || defaultVal instanceof mainPropAttrs.ctor) return; + cc.warnID(3605, propInfo, js.getClassName(mainPropAttrs.ctor)); + } else "Number" !== type && cc.warnID(3606, attrName, propInfo, type); else { + if ("function" === defaultType) return; + type === cc.String && null == defaultVal ? cc.warnID(3607, propInfo) : cc.warnID(3611, attrName, propInfo, defaultType); + } + delete mainPropAttrs.type; + }; + } + function getObjTypeChecker(typeCtor) { + return function(classCtor, mainPropName) { + getTypeChecker("Object", "type")(classCtor, mainPropName); + var defaultDef = getClassAttrs(classCtor)[mainPropName + DELIMETER + "default"]; + var defaultVal = require("./CCClass").getDefault(defaultDef); + if (!Array.isArray(defaultVal) && js.isChildClassOf(typeCtor, cc.ValueType)) { + var typename = js.getClassName(typeCtor); + var info = cc.js.formatStr('No need to specify the "type" of "%s.%s" because %s is a child class of ValueType.', js.getClassName(classCtor), mainPropName, typename); + defaultDef ? cc.log(info) : cc.warnID(3612, info, typename, js.getClassName(classCtor), mainPropName, typename); + } + }; + } + module.exports = { + PrimitiveType: PrimitiveType, + attr: attr, + getClassAttrs: getClassAttrs, + setClassAttr: setClassAttr, + DELIMETER: DELIMETER, + getTypeChecker_ET: (false, false) && getTypeChecker, + getObjTypeChecker_ET: (false, false) && getObjTypeChecker, + ScriptUuid: {} + }; + }), { + "./CCClass": 121, + "./js": 142, + "./utils": 145 + } ], + 134: [ (function(require, module, exports) { + "use strict"; + var js = require("./js"); + var fastRemoveAt = js.array.fastRemoveAt; + function empty() {} + function CallbackInfo() { + this.callback = empty; + this.target = void 0; + this.once = false; + } + CallbackInfo.prototype.set = function(callback, target, once) { + this.callback = callback; + this.target = target; + this.once = !!once; + }; + var callbackInfoPool = new js.Pool(function(info) { + info.callback = empty; + info.target = void 0; + info.once = false; + return true; + }, 32); + callbackInfoPool.get = function() { + return this._get() || new CallbackInfo(); + }; + function CallbackList() { + this.callbackInfos = []; + this.isInvoking = false; + this.containCanceled = false; + } + var proto = CallbackList.prototype; + proto.removeByCallback = function(cb) { + for (var i = 0; i < this.callbackInfos.length; ++i) { + var info = this.callbackInfos[i]; + if (info && info.callback === cb) { + callbackInfoPool.put(info); + fastRemoveAt(this.callbackInfos, i); + --i; + } + } + }; + proto.removeByTarget = function(target) { + for (var i = 0; i < this.callbackInfos.length; ++i) { + var info = this.callbackInfos[i]; + if (info && info.target === target) { + callbackInfoPool.put(info); + fastRemoveAt(this.callbackInfos, i); + --i; + } + } + }; + proto.cancel = function(index) { + var info = this.callbackInfos[index]; + if (info) { + callbackInfoPool.put(info); + this.callbackInfos[index] = null; + } + this.containCanceled = true; + }; + proto.cancelAll = function() { + for (var i = 0; i < this.callbackInfos.length; i++) { + var info = this.callbackInfos[i]; + if (info) { + callbackInfoPool.put(info); + this.callbackInfos[i] = null; + } + } + this.containCanceled = true; + }; + proto.purgeCanceled = function() { + for (var i = this.callbackInfos.length - 1; i >= 0; --i) { + var info = this.callbackInfos[i]; + info || fastRemoveAt(this.callbackInfos, i); + } + this.containCanceled = false; + }; + proto.clear = function() { + this.cancelAll(); + this.callbackInfos.length = 0; + this.isInvoking = false; + this.containCanceled = false; + }; + var MAX_SIZE = 16; + var callbackListPool = new js.Pool(function(info) { + info.callbackInfos = []; + info.isInvoking = false; + info.containCanceled = false; + return true; + }, MAX_SIZE); + callbackListPool.get = function() { + return this._get() || new CallbackList(); + }; + function CallbacksInvoker() { + this._callbackTable = js.createMap(true); + } + proto = CallbacksInvoker.prototype; + proto.on = function(key, callback, target, once) { + var list = this._callbackTable[key]; + list || (list = this._callbackTable[key] = callbackListPool.get()); + var info = callbackInfoPool.get(); + info.set(callback, target, once); + list.callbackInfos.push(info); + }; + proto.hasEventListener = function(key, callback, target) { + var list = this._callbackTable[key]; + if (!list) return false; + var infos = list.callbackInfos; + if (!callback) { + if (list.isInvoking) { + for (var i = 0; i < infos.length; ++i) if (infos[i]) return true; + return false; + } + return infos.length > 0; + } + for (var _i = 0; _i < infos.length; ++_i) { + var info = infos[_i]; + if (info && info.callback === callback && info.target === target) return true; + } + return false; + }; + proto.removeAll = function(keyOrTarget) { + if ("string" === typeof keyOrTarget) { + var list = this._callbackTable[keyOrTarget]; + if (list) if (list.isInvoking) list.cancelAll(); else { + list.clear(); + callbackListPool.put(list); + delete this._callbackTable[keyOrTarget]; + } + } else if (keyOrTarget) for (var key in this._callbackTable) { + var _list = this._callbackTable[key]; + if (_list.isInvoking) { + var infos = _list.callbackInfos; + for (var i = 0; i < infos.length; ++i) { + var info = infos[i]; + info && info.target === keyOrTarget && _list.cancel(i); + } + } else _list.removeByTarget(keyOrTarget); + } + }; + proto.off = function(key, callback, target) { + var list = this._callbackTable[key]; + if (list) { + var infos = list.callbackInfos; + for (var i = 0; i < infos.length; ++i) { + var info = infos[i]; + if (info && info.callback === callback && info.target === target) { + if (list.isInvoking) list.cancel(i); else { + fastRemoveAt(infos, i); + callbackInfoPool.put(info); + } + break; + } + } + } + }; + proto.emit = function(key, arg1, arg2, arg3, arg4, arg5) { + var list = this._callbackTable[key]; + if (list) { + var rootInvoker = !list.isInvoking; + list.isInvoking = true; + var infos = list.callbackInfos; + for (var i = 0, len = infos.length; i < len; ++i) { + var info = infos[i]; + if (info) { + var target = info.target; + var callback = info.callback; + info.once && this.off(key, callback, target); + target ? callback.call(target, arg1, arg2, arg3, arg4, arg5) : callback(arg1, arg2, arg3, arg4, arg5); + } + } + if (rootInvoker) { + list.isInvoking = false; + list.containCanceled && list.purgeCanceled(); + } + } + }; + false; + module.exports = CallbacksInvoker; + }), { + "./js": 142 + } ], + 135: [ (function(require, module, exports) { + "use strict"; + function deepFlatten(strList, array) { + for (var i = 0; i < array.length; i++) { + var item = array[i]; + Array.isArray(item) ? deepFlatten(strList, item) : strList.push(item); + } + } + function flattenCodeArray(array) { + var separator = ""; + var strList = []; + deepFlatten(strList, array); + return strList.join(separator); + } + module.exports = { + flattenCodeArray: flattenCodeArray + }; + }), {} ], + 136: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = deserialize; + exports.getDependUuidList = getDependUuidList; + exports.hasNativeDep = hasNativeDep; + exports.packCustomObjData = packCustomObjData; + exports.unpackJSONs = unpackJSONs; + var _js = _interopRequireDefault(require("./js")); + var _vec = _interopRequireDefault(require("../value-types/vec2")); + var _vec2 = _interopRequireDefault(require("../value-types/vec3")); + var _vec3 = _interopRequireDefault(require("../value-types/vec4")); + var _color = _interopRequireDefault(require("../value-types/color")); + var _size = _interopRequireDefault(require("../value-types/size")); + var _rect = _interopRequireDefault(require("../value-types/rect")); + var _quat = _interopRequireDefault(require("../value-types/quat")); + var _mat = _interopRequireDefault(require("../value-types/mat4")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + var SUPPORT_MIN_FORMAT_VERSION = 1; + var EMPTY_PLACEHOLDER = 0; + var BuiltinValueTypes = [ _vec["default"], _vec2["default"], _vec3["default"], _quat["default"], _color["default"], _size["default"], _rect["default"], _mat["default"] ]; + function BuiltinValueTypeParsers_xyzw(obj, data) { + obj.x = data[1]; + obj.y = data[2]; + obj.z = data[3]; + obj.w = data[4]; + } + var BuiltinValueTypeSetters = [ function(obj, data) { + obj.x = data[1]; + obj.y = data[2]; + }, function(obj, data) { + obj.x = data[1]; + obj.y = data[2]; + obj.z = data[3]; + }, BuiltinValueTypeParsers_xyzw, BuiltinValueTypeParsers_xyzw, function(obj, data) { + obj._val = data[1]; + }, function(obj, data) { + obj.width = data[1]; + obj.height = data[2]; + }, function(obj, data) { + obj.x = data[1]; + obj.y = data[2]; + obj.width = data[3]; + obj.height = data[4]; + }, function(obj, data) { + _mat["default"].fromArray(obj, data, 1); + } ]; + function serializeBuiltinValueTypes(obj) { + var ctor = obj.constructor; + var typeId = BuiltinValueTypes.indexOf(ctor); + switch (ctor) { + case _vec["default"]: + return [ typeId, obj.x, obj.y ]; + + case _vec2["default"]: + return [ typeId, obj.x, obj.y, obj.z ]; + + case _vec3["default"]: + case _quat["default"]: + return [ typeId, obj.x, obj.y, obj.z, obj.w ]; + + case _color["default"]: + return [ typeId, obj._val ]; + + case _size["default"]: + return [ typeId, obj.width, obj.height ]; + + case _rect["default"]: + return [ typeId, obj.x, obj.y, obj.width, obj.height ]; + + case _mat["default"]: + var res = new Array(17); + res[0] = typeId; + _mat["default"].toArray(res, obj, 1); + return res; + + default: + return null; + } + } + var DataTypeID = { + SimpleType: 0, + InstanceRef: 1, + Array_InstanceRef: 2, + Array_AssetRefByInnerObj: 3, + Class: 4, + ValueTypeCreated: 5, + AssetRefByInnerObj: 6, + TRS: 7, + ValueType: 8, + Array_Class: 9, + CustomizedClass: 10, + Dict: 11, + Array: 12, + ARRAY_LENGTH: 13 + }; + var CLASS_TYPE = 0; + var CLASS_KEYS = 1; + var CLASS_PROP_TYPE_OFFSET = 2; + var MASK_CLASS = 0; + var OBJ_DATA_MASK = 0; + var CUSTOM_OBJ_DATA_CLASS = 0; + var CUSTOM_OBJ_DATA_CONTENT = 1; + var VALUETYPE_SETTER = 0; + var DICT_JSON_LAYOUT = 0; + var ARRAY_ITEM_VALUES = 0; + var Refs = { + EACH_RECORD_LENGTH: 3, + OWNER_OFFSET: 0, + KEY_OFFSET: 1, + TARGET_OFFSET: 2 + }; + var File = { + Version: 0, + Context: 0, + SharedUuids: 1, + SharedStrings: 2, + SharedClasses: 3, + SharedMasks: 4, + Instances: 5, + InstanceTypes: 6, + Refs: 7, + DependObjs: 8, + DependKeys: 9, + DependUuidIndices: 10, + ARRAY_LENGTH: 11 + }; + var PACKED_SECTIONS = 5; + var Details = (function() { + function Details() { + this.uuidObjList = null; + this.uuidPropList = null; + this.uuidList = null; + } + var _proto = Details.prototype; + _proto.init = function init(data) { + this.uuidObjList = data[8]; + this.uuidPropList = data[9]; + this.uuidList = data[10]; + }; + _proto.reset = function reset() { + this.uuidList = null; + this.uuidObjList = null; + this.uuidPropList = null; + }; + _proto.push = function push(obj, propName, uuid) { + this.uuidObjList.push(obj); + this.uuidPropList.push(propName); + this.uuidList.push(uuid); + }; + return Details; + })(); + Details.pool = new _js["default"].Pool(function(obj) { + obj.reset(); + }, 5); + Details.pool.get = function() { + return this._get() || new Details(); + }; + false, false; + function dereference(refs, instances, strings) { + var dataLength = refs.length - 1; + var i = 0; + var instanceOffset = 3 * refs[dataLength]; + for (;i < instanceOffset; i += 3) { + var _owner = refs[i]; + var target = instances[refs[i + 2]]; + var keyIndex = refs[i + 1]; + keyIndex >= 0 ? _owner[strings[keyIndex]] = target : _owner[~keyIndex] = target; + } + for (;i < dataLength; i += 3) { + var _owner2 = instances[refs[i]]; + var _target = instances[refs[i + 2]]; + var _keyIndex = refs[i + 1]; + _keyIndex >= 0 ? _owner2[strings[_keyIndex]] = _target : _owner2[~_keyIndex] = _target; + } + } + function deserializeCCObject(data, objectData) { + var mask = data[4][objectData[0]]; + var clazz = mask[0]; + var ctor = clazz[0]; + var obj = new ctor(); + var keys = clazz[1]; + var classTypeOffset = clazz[2]; + var maskTypeOffset = mask[mask.length - 1]; + var i = 1; + for (;i < maskTypeOffset; ++i) { + var _key = keys[mask[i]]; + obj[_key] = objectData[i]; + } + for (;i < objectData.length; ++i) { + var _key2 = keys[mask[i]]; + var _type = clazz[mask[i] + classTypeOffset]; + var op = ASSIGNMENTS[_type]; + op(data, obj, _key2, objectData[i]); + } + return obj; + } + function deserializeCustomCCObject(data, ctor, value) { + var obj = new ctor(); + obj._deserialize ? obj._deserialize(value, data[0]) : cc.errorID(5303, _js["default"].getClassName(ctor)); + return obj; + } + function assignSimple(data, owner, key, value) { + owner[key] = value; + } + function assignInstanceRef(data, owner, key, value) { + value >= 0 ? owner[key] = data[5][value] : data[7][3 * ~value] = owner; + } + function genArrayParser(parser) { + return function(data, owner, key, value) { + owner[key] = value; + for (var i = 0; i < value.length; ++i) parser(data, value, i, value[i]); + }; + } + function parseAssetRefByInnerObj(data, owner, key, value) { + owner[key] = null; + data[8][value] = owner; + } + function parseClass(data, owner, key, value) { + owner[key] = deserializeCCObject(data, value); + } + function parseCustomClass(data, owner, key, value) { + var ctor = data[3][value[0]]; + owner[key] = deserializeCustomCCObject(data, ctor, value[1]); + } + function parseValueTypeCreated(data, owner, key, value) { + BuiltinValueTypeSetters[value[0]](owner[key], value); + } + function parseValueType(data, owner, key, value) { + var val = new BuiltinValueTypes[value[0]](); + BuiltinValueTypeSetters[value[0]](val, value); + owner[key] = val; + } + function parseTRS(data, owner, key, value) { + var typedArray = owner[key]; + typedArray.set(value); + } + function parseDict(data, owner, key, value) { + var dict = value[0]; + owner[key] = dict; + for (var i = 1; i < value.length; i += 3) { + var _key3 = value[i]; + var _type2 = value[i + 1]; + var subValue = value[i + 2]; + var op = ASSIGNMENTS[_type2]; + op(data, dict, _key3, subValue); + } + } + function parseArray(data, owner, key, value) { + var array = value[0]; + owner[key] = array; + for (var i = 0; i < array.length; ++i) { + var subValue = array[i]; + var _type3 = value[i + 1]; + if (0 !== _type3) { + var op = ASSIGNMENTS[_type3]; + op(data, array, i, subValue); + } + } + } + var ASSIGNMENTS = new Array(13); + ASSIGNMENTS[0] = assignSimple; + ASSIGNMENTS[1] = assignInstanceRef; + ASSIGNMENTS[2] = genArrayParser(assignInstanceRef); + ASSIGNMENTS[3] = genArrayParser(parseAssetRefByInnerObj); + ASSIGNMENTS[4] = parseClass; + ASSIGNMENTS[5] = parseValueTypeCreated; + ASSIGNMENTS[6] = parseAssetRefByInnerObj; + ASSIGNMENTS[7] = parseTRS; + ASSIGNMENTS[8] = parseValueType; + ASSIGNMENTS[9] = genArrayParser(parseClass); + ASSIGNMENTS[10] = parseCustomClass; + ASSIGNMENTS[11] = parseDict; + ASSIGNMENTS[12] = parseArray; + function parseInstances(data) { + var instances = data[5]; + var instanceTypes = data[6]; + var instanceTypesLen = 0 === instanceTypes ? 0 : instanceTypes.length; + var rootIndex = instances[instances.length - 1]; + var normalObjectCount = instances.length - instanceTypesLen; + if ("number" !== typeof rootIndex) rootIndex = 0; else { + rootIndex < 0 && (rootIndex = ~rootIndex); + --normalObjectCount; + } + var insIndex = 0; + for (;insIndex < normalObjectCount; ++insIndex) instances[insIndex] = deserializeCCObject(data, instances[insIndex]); + var classes = data[3]; + for (var typeIndex = 0; typeIndex < instanceTypesLen; ++typeIndex, ++insIndex) { + var _type4 = instanceTypes[typeIndex]; + var eachData = instances[insIndex]; + if (_type4 >= 0) { + var ctor = classes[_type4]; + instances[insIndex] = deserializeCustomCCObject(data, ctor, eachData); + } else { + _type4 = ~_type4; + var op = ASSIGNMENTS[_type4]; + op(data, instances, insIndex, eachData); + } + } + return rootIndex; + } + function getMissingClass(hasCustomFinder, type) { + hasCustomFinder || deserialize.reportMissingClass(type); + return Object; + } + function doLookupClass(classFinder, type, container, index, silent, hasCustomFinder) { + var klass = classFinder(type); + if (!klass) { + if (silent) { + container[index] = (function(container, index, type) { + return function proxy() { + var klass = classFinder(type) || getMissingClass(hasCustomFinder, type); + container[index] = klass; + return new klass(); + }; + })(container, index, type); + return; + } + klass = getMissingClass(hasCustomFinder, type); + } + container[index] = klass; + } + function lookupClasses(data, silent, customFinder) { + var classFinder = customFinder || _js["default"]._getClassById; + var classes = data[3]; + for (var i = 0; i < classes.length; ++i) { + var klassLayout = classes[i]; + if ("string" !== typeof klassLayout) { + true; + if ("function" === typeof klassLayout[0]) throw new Error("Can not deserialize the same JSON data again."); + var _type5 = klassLayout[0]; + doLookupClass(classFinder, _type5, klassLayout, CLASS_TYPE, silent, customFinder); + } else doLookupClass(classFinder, klassLayout, classes, i, silent, customFinder); + } + } + function cacheMasks(data) { + var masks = data[4]; + if (masks) { + var classes = data[3]; + for (var i = 0; i < masks.length; ++i) { + var mask = masks[i]; + mask[0] = classes[mask[0]]; + } + } + } + function parseResult(data) { + var instances = data[5]; + var sharedStrings = data[2]; + var dependSharedUuids = data[1]; + var dependObjs = data[8]; + var dependKeys = data[9]; + var dependUuids = data[10]; + for (var i = 0; i < dependObjs.length; ++i) { + var _obj = dependObjs[i]; + "number" === typeof _obj && (dependObjs[i] = instances[_obj]); + var _key4 = dependKeys[i]; + if ("number" === typeof _key4) { + _key4 = _key4 >= 0 ? sharedStrings[_key4] : ~_key4; + dependKeys[i] = _key4; + } + var uuid = dependUuids[i]; + "number" === typeof uuid && (dependUuids[i] = dependSharedUuids[uuid]); + } + } + function deserialize(data, details, options) { + false; + "string" === typeof data && (data = JSON.parse(data)); + var borrowDetails = !details; + details = details || Details.pool.get(); + details.init(data); + options = options || {}; + var version = data[0]; + var preprocessed = false; + if ("object" === typeof version) { + preprocessed = version.preprocessed; + version = version.version; + } + if (version < 1) throw new Error(cc.debug.getError(5304, version)); + options._version = version; + options.result = details; + data[0] = options; + if (!preprocessed) { + lookupClasses(data, false, options.classFinder); + cacheMasks(data); + } + cc.game._isCloning = true; + var instances = data[5]; + var rootIndex = parseInstances(data); + cc.game._isCloning = false; + data[7] && dereference(data[7], instances, data[2]); + parseResult(data); + borrowDetails && Details.pool.put(details); + return instances[rootIndex]; + } + deserialize.Details = Details; + var FileInfo = function FileInfo(version) { + this.preprocessed = true; + this.version = version; + }; + function unpackJSONs(data, classFinder) { + if (data[0] < 1) throw new Error(cc.debug.getError(5304, data[0])); + lookupClasses(data, true, classFinder); + cacheMasks(data); + var version = new FileInfo(data[0]); + var sharedUuids = data[1]; + var sharedStrings = data[2]; + var sharedClasses = data[3]; + var sharedMasks = data[4]; + var sections = data[PACKED_SECTIONS]; + for (var i = 0; i < sections.length; ++i) sections[i].unshift(version, sharedUuids, sharedStrings, sharedClasses, sharedMasks); + return sections; + } + function packCustomObjData(type, data, hasNativeDep) { + return [ 1, EMPTY_PLACEHOLDER, EMPTY_PLACEHOLDER, [ type ], EMPTY_PLACEHOLDER, hasNativeDep ? [ data, -1 ] : [ data ], [ 0 ], EMPTY_PLACEHOLDER, [], [], [] ]; + } + function hasNativeDep(data) { + var instances = data[5]; + var rootInfo = instances[instances.length - 1]; + return "number" === typeof rootInfo && rootInfo < 0; + } + false; + function getDependUuidList(json) { + var sharedUuids = json[1]; + return json[10].map((function(index) { + return sharedUuids[index]; + })); + } + false, false; + false; + }), { + "../value-types/color": 219, + "../value-types/mat4": 222, + "../value-types/quat": 223, + "../value-types/rect": 224, + "../value-types/size": 225, + "../value-types/vec2": 229, + "../value-types/vec3": 230, + "../value-types/vec4": 231, + "./js": 142 + } ], + 137: [ (function(require, module, exports) { + "use strict"; + var _deserializeCompiled = _interopRequireDefault(require("./deserialize-compiled")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + _deserializeCompiled["default"].reportMissingClass = function(id) { + false; + cc.warnID(5302, id); + }; + var deserializeForEditor; + true; + cc.deserialize = _deserializeCompiled["default"]; + }), { + "./deserialize-compiled": 136, + "./deserialize-editor": void 0 + } ], + 138: [ (function(require, module, exports) { + "use strict"; + var NonUuidMark = "."; + function IdGenerater(category) { + this.id = 0 | 998 * Math.random(); + this.prefix = category ? category + NonUuidMark : ""; + } + IdGenerater.prototype.getNewId = function() { + return this.prefix + ++this.id; + }; + IdGenerater.global = new IdGenerater("global"); + module.exports = IdGenerater; + }), {} ], + 139: [ (function(require, module, exports) { + "use strict"; + require("./js"); + require("./CCClass"); + require("./CCClassDecorator"); + require("./CCEnum"); + require("./CCObject"); + require("./callbacks-invoker"); + require("./deserialize"); + require("./instantiate"); + require("./instantiate-jit"); + require("./requiring-frame"); + require("./CCSys"); + require("./CCMacro"); + true; + require("./CCVisibleRect"); + }), { + "./CCClass": 121, + "./CCClassDecorator": 122, + "./CCEnum": 123, + "./CCMacro": 126, + "./CCObject": 127, + "./CCSys": 130, + "./CCVisibleRect": 132, + "./callbacks-invoker": 134, + "./deserialize": 137, + "./instantiate": 141, + "./instantiate-jit": 140, + "./js": 142, + "./requiring-frame": 144 + } ], + 140: [ (function(require, module, exports) { + "use strict"; + var CCObject = require("./CCObject"); + var Destroyed = CCObject.Flags.Destroyed; + var PersistentMask = CCObject.Flags.PersistentMask; + var Attr = require("./attribute"); + var js = require("./js"); + var CCClass = require("./CCClass"); + var Compiler = require("./compiler"); + var DEFAULT = Attr.DELIMETER + "default"; + var IDENTIFIER_RE = CCClass.IDENTIFIER_RE; + var escapeForJS = CCClass.escapeForJS; + var VAR = "var "; + var LOCAL_OBJ = "o"; + var LOCAL_TEMP_OBJ = "t"; + var LOCAL_ARRAY = "a"; + var LINE_INDEX_OF_NEW_OBJ = 0; + var DEFAULT_MODULE_CACHE = { + "cc.Node": "cc.Node", + "cc.Sprite": "cc.Sprite", + "cc.Label": "cc.Label", + "cc.Button": "cc.Button", + "cc.Widget": "cc.Widget", + "cc.Animation": "cc.Animation", + "cc.ClickEvent": false, + "cc.PrefabInfo": false + }; + try { + !Float32Array.name && (Float32Array.name = "Float32Array"); + !Float64Array.name && (Float64Array.name = "Float64Array"); + !Int8Array.name && (Int8Array.name = "Int8Array"); + !Int16Array.name && (Int16Array.name = "Int16Array"); + !Int32Array.name && (Int32Array.name = "Int32Array"); + !Uint8Array.name && (Uint8Array.name = "Uint8Array"); + !Uint16Array.name && (Uint16Array.name = "Uint16Array"); + !Uint32Array.name && (Uint32Array.name = "Uint32Array"); + !Uint8ClampedArray.name && (Uint8ClampedArray.name = "Uint8ClampedArray"); + } catch (e) {} + function getTypedArrayName(constructor) { + if (constructor === Float32Array) return "Float32Array"; + if (constructor === Float64Array) return "Float64Array"; + if (constructor === Int8Array) return "Int8Array"; + if (constructor === Int16Array) return "Int16Array"; + if (constructor === Int32Array) return "Int32Array"; + if (constructor === Uint8Array) return "Uint8Array"; + if (constructor === Uint16Array) return "Uint16Array"; + if (constructor === Uint32Array) return "Uint32Array"; + if (constructor === Uint8ClampedArray) return "Uint8ClampedArray"; + throw new Error("Unknown TypedArray to instantiate: " + constructor); + } + function Declaration(varName, expression) { + this.varName = varName; + this.expression = expression; + } + Declaration.prototype.toString = function() { + return VAR + this.varName + "=" + this.expression + ";"; + }; + function mergeDeclaration(statement, expression) { + return expression instanceof Declaration ? new Declaration(expression.varName, statement + expression.expression) : statement + expression; + } + function writeAssignment(codeArray, statement, expression) { + if (Array.isArray(expression)) { + expression[0] = mergeDeclaration(statement, expression[0]); + codeArray.push(expression); + } else codeArray.push(mergeDeclaration(statement, expression) + ";"); + } + function Assignments(targetExpression) { + this._exps = []; + this._targetExp = targetExpression; + } + Assignments.prototype.append = function(key, expression) { + this._exps.push([ key, expression ]); + }; + Assignments.prototype.writeCode = function(codeArray) { + var targetVar; + if (this._exps.length > 1) { + codeArray.push(LOCAL_TEMP_OBJ + "=" + this._targetExp + ";"); + targetVar = LOCAL_TEMP_OBJ; + } else { + if (1 !== this._exps.length) return; + targetVar = this._targetExp; + } + for (var i = 0; i < this._exps.length; i++) { + var pair = this._exps[i]; + writeAssignment(codeArray, targetVar + getPropAccessor(pair[0]) + "=", pair[1]); + } + }; + Assignments.pool = new js.Pool(function(obj) { + obj._exps.length = 0; + obj._targetExp = null; + }, 1); + Assignments.pool.get = function(targetExpression) { + var cache = this._get() || new Assignments(); + cache._targetExp = targetExpression; + return cache; + }; + function equalsToDefault(def, value) { + if ("function" === typeof def) try { + def = def(); + } catch (e) { + return false; + } + if (def === value) return true; + if (def && value && "object" === typeof def && "object" === typeof value && def.constructor === value.constructor) if (def instanceof cc.ValueType) { + if (def.equals(value)) return true; + } else { + if (Array.isArray(def)) return 0 === def.length && 0 === value.length; + if (def.constructor === Object) return js.isEmptyObject(def) && js.isEmptyObject(value); + } + return false; + } + function getPropAccessor(key) { + return IDENTIFIER_RE.test(key) ? "." + key : "[" + escapeForJS(key) + "]"; + } + function Parser(obj, parent) { + this.parent = parent; + this.objsToClear_iN$t = []; + this.codeArray = []; + this.objs = []; + this.funcs = []; + this.funcModuleCache = js.createMap(); + js.mixin(this.funcModuleCache, DEFAULT_MODULE_CACHE); + this.globalVariables = []; + this.globalVariableId = 0; + this.localVariableId = 0; + this.codeArray.push(VAR + LOCAL_OBJ + "," + LOCAL_TEMP_OBJ + ";", "if(R){", LOCAL_OBJ + "=R;", "}else{", LOCAL_OBJ + "=R=new " + this.getFuncModule(obj.constructor, true) + "();", "}"); + js.value(obj, "_iN$t", { + globalVar: "R" + }, true); + this.objsToClear_iN$t.push(obj); + this.enumerateObject(this.codeArray, obj); + var globalVariablesDeclaration; + this.globalVariables.length > 0 && (globalVariablesDeclaration = VAR + this.globalVariables.join(",") + ";"); + var code = Compiler.flattenCodeArray([ "return (function(R){", globalVariablesDeclaration || [], this.codeArray, "return o;", "})" ]); + this.result = Function("O", "F", code)(this.objs, this.funcs); + for (var i = 0, len = this.objsToClear_iN$t.length; i < len; ++i) this.objsToClear_iN$t[i]._iN$t = null; + this.objsToClear_iN$t.length = 0; + } + var proto = Parser.prototype; + proto.getFuncModule = function(func, usedInNew) { + var clsName = js.getClassName(func); + if (clsName) { + var cache = this.funcModuleCache[clsName]; + if (cache) return cache; + if (void 0 === cache) { + var clsNameIsModule = -1 !== clsName.indexOf("."); + if (clsNameIsModule) try { + clsNameIsModule = func === Function("return " + clsName)(); + if (clsNameIsModule) { + this.funcModuleCache[clsName] = clsName; + return clsName; + } + } catch (e) {} + } + } + var index = this.funcs.indexOf(func); + if (index < 0) { + index = this.funcs.length; + this.funcs.push(func); + } + var res = "F[" + index + "]"; + usedInNew && (res = "(" + res + ")"); + this.funcModuleCache[clsName] = res; + return res; + }; + proto.getObjRef = function(obj) { + var index = this.objs.indexOf(obj); + if (index < 0) { + index = this.objs.length; + this.objs.push(obj); + } + return "O[" + index + "]"; + }; + proto.setValueType = function(codeArray, defaultValue, srcValue, targetExpression) { + var assignments = Assignments.pool.get(targetExpression); + var fastDefinedProps = defaultValue.constructor.__props__; + fastDefinedProps || (fastDefinedProps = Object.keys(defaultValue)); + for (var i = 0; i < fastDefinedProps.length; i++) { + var propName = fastDefinedProps[i]; + var prop = srcValue[propName]; + if (defaultValue[propName] === prop) continue; + var expression = this.enumerateField(srcValue, propName, prop); + assignments.append(propName, expression); + } + assignments.writeCode(codeArray); + Assignments.pool.put(assignments); + }; + proto.enumerateCCClass = function(codeArray, obj, klass) { + var props = klass.__values__; + var attrs = Attr.getClassAttrs(klass); + for (var p = 0; p < props.length; p++) { + var key = props[p]; + var val = obj[key]; + var defaultValue = attrs[key + DEFAULT]; + if (equalsToDefault(defaultValue, val)) continue; + if ("object" === typeof val && val instanceof cc.ValueType) { + defaultValue = CCClass.getDefault(defaultValue); + if (defaultValue && defaultValue.constructor === val.constructor) { + var targetExpression = LOCAL_OBJ + getPropAccessor(key); + this.setValueType(codeArray, defaultValue, val, targetExpression); + continue; + } + } + this.setObjProp(codeArray, obj, key, val); + } + }; + proto.instantiateArray = function(value) { + if (0 === value.length) return "[]"; + var arrayVar = LOCAL_ARRAY + ++this.localVariableId; + var declaration = new Declaration(arrayVar, "new Array(" + value.length + ")"); + var codeArray = [ declaration ]; + js.value(value, "_iN$t", { + globalVar: "", + source: codeArray + }, true); + this.objsToClear_iN$t.push(value); + for (var i = 0; i < value.length; ++i) { + var statement = arrayVar + "[" + i + "]="; + var expression = this.enumerateField(value, i, value[i]); + writeAssignment(codeArray, statement, expression); + } + return codeArray; + }; + proto.instantiateTypedArray = function(value) { + var type = value.constructor.name || getTypedArrayName(value.constructor); + if (0 === value.length) return "new " + type; + var arrayVar = LOCAL_ARRAY + ++this.localVariableId; + var declaration = new Declaration(arrayVar, "new " + type + "(" + value.length + ")"); + var codeArray = [ declaration ]; + value._iN$t = { + globalVar: "", + source: codeArray + }; + this.objsToClear_iN$t.push(value); + for (var i = 0; i < value.length; ++i) if (0 !== value[i]) { + var statement = arrayVar + "[" + i + "]="; + writeAssignment(codeArray, statement, value[i]); + } + return codeArray; + }; + proto.enumerateField = function(obj, key, value) { + if ("object" === typeof value && value) { + var _iN$t = value._iN$t; + if (_iN$t) { + var globalVar = _iN$t.globalVar; + if (!globalVar) { + globalVar = _iN$t.globalVar = "v" + ++this.globalVariableId; + this.globalVariables.push(globalVar); + var line = _iN$t.source[LINE_INDEX_OF_NEW_OBJ]; + _iN$t.source[LINE_INDEX_OF_NEW_OBJ] = mergeDeclaration(globalVar + "=", line); + } + return globalVar; + } + return ArrayBuffer.isView(value) ? this.instantiateTypedArray(value) : Array.isArray(value) ? this.instantiateArray(value) : this.instantiateObj(value); + } + if ("function" === typeof value) return this.getFuncModule(value); + if ("string" === typeof value) return escapeForJS(value); + "_objFlags" === key && obj instanceof CCObject && (value &= PersistentMask); + return value; + }; + proto.setObjProp = function(codeArray, obj, key, value) { + var statement = LOCAL_OBJ + getPropAccessor(key) + "="; + var expression = this.enumerateField(obj, key, value); + writeAssignment(codeArray, statement, expression); + }; + proto.enumerateObject = function(codeArray, obj) { + var klass = obj.constructor; + if (cc.Class._isCCClass(klass)) this.enumerateCCClass(codeArray, obj, klass); else for (var key in obj) { + if (!obj.hasOwnProperty(key) || 95 === key.charCodeAt(0) && 95 === key.charCodeAt(1) && "__type__" !== key) continue; + var value = obj[key]; + if ("object" === typeof value && value && value === obj._iN$t) continue; + this.setObjProp(codeArray, obj, key, value); + } + }; + proto.instantiateObj = function(obj) { + if (obj instanceof cc.ValueType) return CCClass.getNewValueTypeCode(obj); + if (obj instanceof cc.Asset) return this.getObjRef(obj); + if (obj._objFlags & Destroyed) return null; + var createCode; + var ctor = obj.constructor; + if (cc.Class._isCCClass(ctor)) { + if (this.parent) if (this.parent instanceof cc.Component) { + if (obj instanceof cc._BaseNode || obj instanceof cc.Component) return this.getObjRef(obj); + } else if (this.parent instanceof cc._BaseNode) if (obj instanceof cc._BaseNode) { + if (!obj.isChildOf(this.parent)) return this.getObjRef(obj); + } else if (obj instanceof cc.Component && !obj.node.isChildOf(this.parent)) return this.getObjRef(obj); + createCode = new Declaration(LOCAL_OBJ, "new " + this.getFuncModule(ctor, true) + "()"); + } else if (ctor === Object) createCode = new Declaration(LOCAL_OBJ, "{}"); else { + if (ctor) return this.getObjRef(obj); + createCode = new Declaration(LOCAL_OBJ, "Object.create(null)"); + } + var codeArray = [ createCode ]; + js.value(obj, "_iN$t", { + globalVar: "", + source: codeArray + }, true); + this.objsToClear_iN$t.push(obj); + this.enumerateObject(codeArray, obj); + return [ "(function(){", codeArray, "return o;})();" ]; + }; + function compile(node) { + var root = node instanceof cc._BaseNode && node; + var parser = new Parser(node, root); + return parser.result; + } + module.exports = { + compile: compile, + equalsToDefault: equalsToDefault + }; + false; + }), { + "./CCClass": 121, + "./CCObject": 127, + "./attribute": 133, + "./compiler": 135, + "./js": 142 + } ], + 141: [ (function(require, module, exports) { + "use strict"; + var CCObject = require("./CCObject"); + var CCValueType = require("../value-types/value-type"); + var Destroyed = CCObject.Flags.Destroyed; + var PersistentMask = CCObject.Flags.PersistentMask; + var _isDomNode = require("./utils").isDomNode; + var js = require("./js"); + function instantiate(original, internal_force) { + if (!internal_force) { + if ("object" !== typeof original || Array.isArray(original)) { + false; + return null; + } + if (!original) { + false; + return null; + } + if (!cc.isValid(original)) { + false; + return null; + } + false; + } + var clone; + if (original instanceof CCObject) { + if (original._instantiate) { + cc.game._isCloning = true; + clone = original._instantiate(null, true); + cc.game._isCloning = false; + return clone; + } + if (original instanceof cc.Asset) { + false; + return null; + } + } + cc.game._isCloning = true; + clone = doInstantiate(original); + cc.game._isCloning = false; + return clone; + } + var objsToClearTmpVar = []; + function doInstantiate(obj, parent) { + if (Array.isArray(obj)) { + false; + return null; + } + if (_isDomNode && _isDomNode(obj)) { + false; + return null; + } + var clone; + if (obj._iN$t) clone = obj._iN$t; else if (obj.constructor) { + var klass = obj.constructor; + clone = new klass(); + } else clone = Object.create(null); + enumerateObject(obj, clone, parent); + for (var i = 0, len = objsToClearTmpVar.length; i < len; ++i) objsToClearTmpVar[i]._iN$t = null; + objsToClearTmpVar.length = 0; + return clone; + } + function enumerateCCClass(klass, obj, clone, parent) { + var props = klass.__values__; + for (var p = 0; p < props.length; p++) { + var key = props[p]; + var value = obj[key]; + if ("object" === typeof value && value) { + var initValue = clone[key]; + initValue instanceof CCValueType && initValue.constructor === value.constructor ? initValue.set(value) : clone[key] = value._iN$t || instantiateObj(value, parent); + } else clone[key] = value; + } + } + function enumerateObject(obj, clone, parent) { + js.value(obj, "_iN$t", clone, true); + objsToClearTmpVar.push(obj); + var klass = obj.constructor; + if (cc.Class._isCCClass(klass)) enumerateCCClass(klass, obj, clone, parent); else for (var key in obj) { + if (!obj.hasOwnProperty(key) || 95 === key.charCodeAt(0) && 95 === key.charCodeAt(1) && "__type__" !== key) continue; + var value = obj[key]; + if ("object" === typeof value && value) { + if (value === clone) continue; + clone[key] = value._iN$t || instantiateObj(value, parent); + } else clone[key] = value; + } + obj instanceof CCObject && (clone._objFlags &= PersistentMask); + } + function instantiateObj(obj, parent) { + if (obj instanceof CCValueType) return obj.clone(); + if (obj instanceof cc.Asset) return obj; + var clone; + if (ArrayBuffer.isView(obj)) { + var len = obj.length; + clone = new obj.constructor(len); + obj._iN$t = clone; + objsToClearTmpVar.push(obj); + for (var i = 0; i < len; ++i) clone[i] = obj[i]; + return clone; + } + if (Array.isArray(obj)) { + var _len = obj.length; + clone = new Array(_len); + js.value(obj, "_iN$t", clone, true); + objsToClearTmpVar.push(obj); + for (var _i = 0; _i < _len; ++_i) { + var value = obj[_i]; + clone[_i] = "object" === typeof value && value ? value._iN$t || instantiateObj(value, parent) : value; + } + return clone; + } + if (obj._objFlags & Destroyed) return null; + var ctor = obj.constructor; + if (cc.Class._isCCClass(ctor)) { + if (parent) if (parent instanceof cc.Component) { + if (obj instanceof cc._BaseNode || obj instanceof cc.Component) return obj; + } else if (parent instanceof cc._BaseNode) if (obj instanceof cc._BaseNode) { + if (!obj.isChildOf(parent)) return obj; + } else if (obj instanceof cc.Component && !obj.node.isChildOf(parent)) return obj; + clone = new ctor(); + } else if (ctor === Object) clone = {}; else { + if (ctor) return obj; + clone = Object.create(null); + } + enumerateObject(obj, clone, parent); + return clone; + } + instantiate._clone = doInstantiate; + cc.instantiate = instantiate; + module.exports = instantiate; + }), { + "../value-types/value-type": 228, + "./CCObject": 127, + "./js": 142, + "./utils": 145 + } ], + 142: [ (function(require, module, exports) { + "use strict"; + var tempCIDGenerater = new (require("./id-generater"))("TmpCId."); + function _getPropertyDescriptor(obj, name) { + while (obj) { + var pd = Object.getOwnPropertyDescriptor(obj, name); + if (pd) return pd; + obj = Object.getPrototypeOf(obj); + } + return null; + } + function _copyprop(name, source, target) { + var pd = _getPropertyDescriptor(source, name); + Object.defineProperty(target, name, pd); + } + var js = { + isNumber: function isNumber(obj) { + return "number" === typeof obj || obj instanceof Number; + }, + isString: function isString(obj) { + return "string" === typeof obj || obj instanceof String; + }, + addon: function addon(obj) { + obj = obj || {}; + for (var i = 1, length = arguments.length; i < length; i++) { + var source = arguments[i]; + if (source) { + if ("object" !== typeof source) { + cc.errorID(5402, source); + continue; + } + for (var name in source) name in obj || _copyprop(name, source, obj); + } + } + return obj; + }, + mixin: function mixin(obj) { + obj = obj || {}; + for (var i = 1, length = arguments.length; i < length; i++) { + var source = arguments[i]; + if (source) { + if ("object" !== typeof source) { + cc.errorID(5403, source); + continue; + } + for (var name in source) _copyprop(name, source, obj); + } + } + return obj; + }, + extend: function extend(cls, base) { + false; + for (var p in base) base.hasOwnProperty(p) && (cls[p] = base[p]); + cls.prototype = Object.create(base.prototype, { + constructor: { + value: cls, + writable: true, + configurable: true + } + }); + return cls; + }, + getSuper: function getSuper(ctor) { + var proto = ctor.prototype; + var dunderProto = proto && Object.getPrototypeOf(proto); + return dunderProto && dunderProto.constructor; + }, + isChildClassOf: function isChildClassOf(subclass, superclass) { + if (subclass && superclass) { + if ("function" !== typeof subclass) return false; + if ("function" !== typeof superclass) { + false; + return false; + } + if (subclass === superclass) return true; + for (;;) { + subclass = js.getSuper(subclass); + if (!subclass) return false; + if (subclass === superclass) return true; + } + } + return false; + }, + clear: function clear(obj) { + var keys = Object.keys(obj); + for (var i = 0; i < keys.length; i++) delete obj[keys[i]]; + }, + isEmptyObject: function isEmptyObject(obj) { + for (var key in obj) return false; + return true; + }, + getPropertyDescriptor: _getPropertyDescriptor + }; + var tmpValueDesc = { + value: void 0, + enumerable: false, + writable: false, + configurable: true + }; + js.value = function(obj, prop, value, writable, enumerable) { + tmpValueDesc.value = value; + tmpValueDesc.writable = writable; + tmpValueDesc.enumerable = enumerable; + Object.defineProperty(obj, prop, tmpValueDesc); + tmpValueDesc.value = void 0; + }; + var tmpGetSetDesc = { + get: null, + set: null, + enumerable: false + }; + js.getset = function(obj, prop, getter, setter, enumerable, configurable) { + if ("function" !== typeof setter) { + enumerable = setter; + setter = void 0; + } + tmpGetSetDesc.get = getter; + tmpGetSetDesc.set = setter; + tmpGetSetDesc.enumerable = enumerable; + tmpGetSetDesc.configurable = configurable; + Object.defineProperty(obj, prop, tmpGetSetDesc); + tmpGetSetDesc.get = null; + tmpGetSetDesc.set = null; + }; + var tmpGetDesc = { + get: null, + enumerable: false, + configurable: false + }; + js.get = function(obj, prop, getter, enumerable, configurable) { + tmpGetDesc.get = getter; + tmpGetDesc.enumerable = enumerable; + tmpGetDesc.configurable = configurable; + Object.defineProperty(obj, prop, tmpGetDesc); + tmpGetDesc.get = null; + }; + var tmpSetDesc = { + set: null, + enumerable: false, + configurable: false + }; + js.set = function(obj, prop, setter, enumerable, configurable) { + tmpSetDesc.set = setter; + tmpSetDesc.enumerable = enumerable; + tmpSetDesc.configurable = configurable; + Object.defineProperty(obj, prop, tmpSetDesc); + tmpSetDesc.set = null; + }; + js.getClassName = function(objOrCtor) { + if ("function" === typeof objOrCtor) { + var prototype = objOrCtor.prototype; + if (prototype && prototype.hasOwnProperty("__classname__") && prototype.__classname__) return prototype.__classname__; + var retval = ""; + objOrCtor.name && (retval = objOrCtor.name); + if (objOrCtor.toString) { + var arr, str = objOrCtor.toString(); + arr = "[" === str.charAt(0) ? str.match(/\[\w+\s*(\w+)\]/) : str.match(/function\s*(\w+)/); + arr && 2 === arr.length && (retval = arr[1]); + } + return "Object" !== retval ? retval : ""; + } + if (objOrCtor && objOrCtor.constructor) return js.getClassName(objOrCtor.constructor); + return ""; + }; + function isTempClassId(id) { + return "string" !== typeof id || id.startsWith(tempCIDGenerater.prefix); + } + (function() { + var _idToClass = {}; + var _nameToClass = {}; + function setup(key, publicName, table) { + js.getset(js, publicName, (function() { + return Object.assign({}, table); + }), (function(value) { + js.clear(table); + Object.assign(table, value); + })); + return function(id, constructor) { + constructor.prototype.hasOwnProperty(key) && delete table[constructor.prototype[key]]; + js.value(constructor.prototype, key, id); + if (id) { + var registered = table[id]; + if (registered && registered !== constructor) { + var error = "A Class already exists with the same " + key + ' : "' + id + '".'; + false; + cc.error(error); + } else table[id] = constructor; + } + }; + } + js._setClassId = setup("__cid__", "_registeredClassIds", _idToClass); + var doSetClassName = setup("__classname__", "_registeredClassNames", _nameToClass); + js.setClassName = function(className, constructor) { + doSetClassName(className, constructor); + if (!constructor.prototype.hasOwnProperty("__cid__")) { + var id = className || tempCIDGenerater.getNewId(); + id && js._setClassId(id, constructor); + } + }; + js.unregisterClass = function() { + for (var i = 0; i < arguments.length; i++) { + var p = arguments[i].prototype; + var classId = p.__cid__; + classId && delete _idToClass[classId]; + var classname = p.__classname__; + classname && delete _nameToClass[classname]; + } + }; + js._getClassById = function(classId) { + return _idToClass[classId]; + }; + js.getClassByName = function(classname) { + return _nameToClass[classname]; + }; + js._getClassId = function(obj, allowTempId) { + allowTempId = "undefined" === typeof allowTempId || allowTempId; + var res; + if ("function" === typeof obj && obj.prototype.hasOwnProperty("__cid__")) { + res = obj.prototype.__cid__; + if (!allowTempId && (false, false) && isTempClassId(res)) return ""; + return res; + } + if (obj && obj.constructor) { + var prototype = obj.constructor.prototype; + if (prototype && prototype.hasOwnProperty("__cid__")) { + res = obj.__cid__; + if (!allowTempId && (false, false) && isTempClassId(res)) return ""; + return res; + } + } + return ""; + }; + })(); + js.obsolete = function(obj, obsoleted, newExpr, writable) { + var extractPropName = /([^.]+)$/; + var oldProp = extractPropName.exec(obsoleted)[0]; + var newProp = extractPropName.exec(newExpr)[0]; + function get() { + false; + return this[newProp]; + } + writable ? js.getset(obj, oldProp, get, (function(value) { + false; + this[newProp] = value; + })) : js.get(obj, oldProp, get); + }; + js.obsoletes = function(obj, objName, props, writable) { + for (var obsoleted in props) { + var newName = props[obsoleted]; + js.obsolete(obj, objName + "." + obsoleted, newName, writable); + } + }; + var REGEXP_NUM_OR_STR = /(%d)|(%s)/; + var REGEXP_STR = /%s/; + js.formatStr = function() { + var argLen = arguments.length; + if (0 === argLen) return ""; + var msg = arguments[0]; + if (1 === argLen) return "" + msg; + var hasSubstitution = "string" === typeof msg && REGEXP_NUM_OR_STR.test(msg); + if (hasSubstitution) for (var i = 1; i < argLen; ++i) { + var arg = arguments[i]; + var regExpToTest = "number" === typeof arg ? REGEXP_NUM_OR_STR : REGEXP_STR; + if (regExpToTest.test(msg)) { + var notReplaceFunction = "" + arg; + msg = msg.replace(regExpToTest, notReplaceFunction); + } else msg += " " + arg; + } else for (var _i = 1; _i < argLen; ++_i) msg += " " + arguments[_i]; + return msg; + }; + js.shiftArguments = function() { + var len = arguments.length - 1; + var args = new Array(len); + for (var i = 0; i < len; ++i) args[i] = arguments[i + 1]; + return args; + }; + js.createMap = function(forceDictMode) { + var map = Object.create(null); + if (forceDictMode) { + var INVALID_IDENTIFIER_1 = "."; + var INVALID_IDENTIFIER_2 = "/"; + map[INVALID_IDENTIFIER_1] = true; + map[INVALID_IDENTIFIER_2] = true; + delete map[INVALID_IDENTIFIER_1]; + delete map[INVALID_IDENTIFIER_2]; + } + return map; + }; + function removeAt(array, index) { + array.splice(index, 1); + } + function fastRemoveAt(array, index) { + var length = array.length; + if (index < 0 || index >= length) return; + array[index] = array[length - 1]; + array.length = length - 1; + } + function remove(array, value) { + var index = array.indexOf(value); + if (index >= 0) { + removeAt(array, index); + return true; + } + return false; + } + function fastRemove(array, value) { + var index = array.indexOf(value); + if (index >= 0) { + array[index] = array[array.length - 1]; + --array.length; + } + } + function verifyType(array, type) { + if (array && array.length > 0) for (var i = 0; i < array.length; i++) if (!(array[i] instanceof type)) { + cc.logID(1300); + return false; + } + return true; + } + function removeArray(array, minusArr) { + for (var i = 0, l = minusArr.length; i < l; i++) remove(array, minusArr[i]); + } + function appendObjectsAt(array, addObjs, index) { + array.splice.apply(array, [ index, 0 ].concat(addObjs)); + return array; + } + function contains(array, value) { + return array.indexOf(value) >= 0; + } + function copy(array) { + var i, len = array.length, arr_clone = new Array(len); + for (i = 0; i < len; i += 1) arr_clone[i] = array[i]; + return arr_clone; + } + js.array = { + remove: remove, + fastRemove: fastRemove, + removeAt: removeAt, + fastRemoveAt: fastRemoveAt, + contains: contains, + verifyType: verifyType, + removeArray: removeArray, + appendObjectsAt: appendObjectsAt, + copy: copy, + MutableForwardIterator: require("../utils/mutable-forward-iterator") + }; + function Pool(cleanupFunc, size) { + if (void 0 === size) { + size = cleanupFunc; + cleanupFunc = null; + } + this.get = null; + this.count = 0; + this._pool = new Array(size); + this._cleanup = cleanupFunc; + } + Pool.prototype._get = function() { + if (this.count > 0) { + --this.count; + var cache = this._pool[this.count]; + this._pool[this.count] = null; + return cache; + } + return null; + }; + Pool.prototype.put = function(obj) { + var pool = this._pool; + if (this.count < pool.length) { + if (this._cleanup && false === this._cleanup(obj)) return; + pool[this.count] = obj; + ++this.count; + } + }; + Pool.prototype.resize = function(length) { + if (length >= 0) { + this._pool.length = length; + this.count > length && (this.count = length); + } + }; + js.Pool = Pool; + cc.js = js; + module.exports = js; + }), { + "../utils/mutable-forward-iterator": 206, + "./id-generater": 138 + } ], + 143: [ (function(require, module, exports) { + "use strict"; + var js = require("./js"); + var Attrs = require("./attribute"); + var SerializableAttrs = { + default: {}, + serializable: {}, + editorOnly: {}, + formerlySerializedAs: {} + }; + var TYPO_TO_CORRECT_DEV = false; + function parseNotify(val, propName, notify, properties) { + if (val.get || val.set) { + false; + return; + } + if (val.hasOwnProperty("default")) { + var newKey = "_N$" + propName; + val.get = function() { + return this[newKey]; + }; + val.set = function(value) { + var oldValue = this[newKey]; + this[newKey] = value; + notify.call(this, oldValue); + }; + false; + var newValue = {}; + properties[newKey] = newValue; + for (var attr in SerializableAttrs) { + var v = SerializableAttrs[attr]; + if (val.hasOwnProperty(attr)) { + newValue[attr] = val[attr]; + v.canUsedInGet || delete val[attr]; + } + } + } else false; + } + function parseType(val, type, className, propName) { + var STATIC_CHECK = (false, false); + if (Array.isArray(type)) { + if (STATIC_CHECK && "default" in val) { + var isArray = require("./CCClass").isArray; + isArray(val["default"]) || cc.warnID(5507, className, propName); + } + if (!(type.length > 0)) return cc.errorID(5508, className, propName); + val.type = type = type[0]; + } + if ("function" === typeof type) { + if (type === String) { + val.type = cc.String; + STATIC_CHECK && cc.warnID(3608, '"' + className + "." + propName + '"'); + } else if (type === Boolean) { + val.type = cc.Boolean; + STATIC_CHECK && cc.warnID(3609, '"' + className + "." + propName + '"'); + } else if (type === Number) { + val.type = cc.Float; + STATIC_CHECK && cc.warnID(3610, '"' + className + "." + propName + '"'); + } + } else if (STATIC_CHECK) switch (type) { + case "Number": + cc.warnID(5510, className, propName); + break; + + case "String": + cc.warn('The type of "' + className + "." + propName + '" must be cc.String, not "String".'); + break; + + case "Boolean": + cc.warn('The type of "' + className + "." + propName + '" must be cc.Boolean, not "Boolean".'); + break; + + case "Float": + cc.warn('The type of "' + className + "." + propName + '" must be cc.Float, not "Float".'); + break; + + case "Integer": + cc.warn('The type of "' + className + "." + propName + '" must be cc.Integer, not "Integer".'); + break; + + case null: + cc.warnID(5511, className, propName); + } + false; + } + function getBaseClassWherePropertyDefined_DEV(propName, cls) { + var res; + false; + } + function _wrapOptions(isES6Getset, _default, type) { + var res = isES6Getset ? { + _short: true + } : { + _short: true, + default: _default + }; + type && (res.type = type); + return res; + } + exports.getFullFormOfProperty = function(options, isES6Getset) { + var isLiteral = options && options.constructor === Object; + if (isLiteral) return null; + return Array.isArray(options) && options.length > 0 ? _wrapOptions(isES6Getset, [], options) : "function" === typeof options ? _wrapOptions(isES6Getset, js.isChildClassOf(options, cc.ValueType) ? new options() : null, options) : options instanceof Attrs.PrimitiveType ? _wrapOptions(isES6Getset, options["default"]) : _wrapOptions(isES6Getset, options); + }; + exports.preprocessAttrs = function(properties, className, cls, es6) { + for (var propName in properties) { + var val = properties[propName]; + var fullForm = exports.getFullFormOfProperty(val, false); + fullForm && (val = properties[propName] = fullForm); + if (val) { + var maybeTypeScript; + false; + var baseClass; + false; + var notify = val.notify; + if (notify) { + false; + parseNotify(val, propName, notify, properties); + } + "type" in val && parseType(val, val.type, className, propName); + } + } + }; + var CALL_SUPER_DESTROY_REG_DEV; + false; + exports.validateMethodWithProps = function(func, funcName, className, cls, base) { + false; + if ("function" !== typeof func && null !== func) { + var overrided; + var baseFuc; + var subFuc; + var correct; + false; + return false; + } + false; + return true; + }; + }), { + "./CCClass": 121, + "./attribute": 133, + "./js": 142 + } ], + 144: [ (function(require, module, exports) { + "use strict"; + var requiringFrames = []; + cc._RF = { + push: function push(module, uuid, script) { + if (void 0 === script) { + script = uuid; + uuid = ""; + } + requiringFrames.push({ + uuid: uuid, + script: script, + module: module, + exports: module.exports, + beh: null + }); + }, + pop: function pop() { + var frameInfo = requiringFrames.pop(); + var module = frameInfo.module; + var exports = module.exports; + if (exports === frameInfo.exports) { + for (var anyKey in exports) return; + module.exports = exports = frameInfo.cls; + } + }, + peek: function peek() { + return requiringFrames[requiringFrames.length - 1]; + } + }; + false; + }), {} ], + 145: [ (function(require, module, exports) { + "use strict"; + var js = require("./js"); + module.exports = { + contains: function contains(refNode, otherNode) { + if ("function" == typeof refNode.contains) return refNode.contains(otherNode); + if ("function" == typeof refNode.compareDocumentPosition) return !!(16 & refNode.compareDocumentPosition(otherNode)); + var node = otherNode.parentNode; + if (node) do { + if (node === refNode) return true; + node = node.parentNode; + } while (null !== node); + return false; + }, + isDomNode: "object" === typeof window && ("function" === typeof Node ? function(obj) { + return obj instanceof Node; + } : function(obj) { + return obj && "object" === typeof obj && "number" === typeof obj.nodeType && "string" === typeof obj.nodeName; + }), + callInNextTick: function(callback, p1, p2) { + callback && setTimeout((function() { + callback(p1, p2); + }), 0); + } + }; + false; + false; + }), { + "./js": 142 + } ], + 146: [ (function(require, module, exports) { + "use strict"; + require("./platform/js"); + require("./value-types"); + require("./utils"); + require("./platform/CCInputManager"); + require("./platform/CCInputExtension"); + require("./event"); + require("./platform/CCSys"); + require("./platform/CCMacro"); + require("./asset-manager"); + require("./CCDirector"); + require("./renderer"); + true; + require("./platform/CCView"); + require("./platform/CCScreen"); + require("./CCScheduler"); + require("./event-manager"); + }), { + "./CCDirector": 22, + "./CCScheduler": 27, + "./asset-manager": 45, + "./event": 116, + "./event-manager": 112, + "./platform/CCInputExtension": 124, + "./platform/CCInputManager": 125, + "./platform/CCMacro": 126, + "./platform/CCScreen": 129, + "./platform/CCSys": 130, + "./platform/CCView": 131, + "./platform/js": 142, + "./renderer": 152, + "./utils": 204, + "./value-types": 220 + } ], + 147: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _assembler = _interopRequireDefault(require("./assembler")); + var _manager = _interopRequireDefault(require("./utils/dynamic-atlas/manager")); + var _renderData = _interopRequireDefault(require("./webgl/render-data")); + var _valueTypes = require("../value-types"); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + "value" in descriptor && (descriptor.writable = true); + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _createClass(Constructor, protoProps, staticProps) { + protoProps && _defineProperties(Constructor.prototype, protoProps); + staticProps && _defineProperties(Constructor, staticProps); + Object.defineProperty(Constructor, "prototype", { + writable: false + }); + return Constructor; + } + function _assertThisInitialized(self) { + if (void 0 === self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return self; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var Assembler2D = (function(_Assembler) { + _inheritsLoose(Assembler2D, _Assembler); + function Assembler2D() { + var _this; + _this = _Assembler.call(this) || this; + _this._renderData = new _renderData["default"](); + _this._renderData.init(_assertThisInitialized(_this)); + _this.initData(); + _this.initLocal(); + return _this; + } + var _proto = Assembler2D.prototype; + _proto.initData = function initData() { + var data = this._renderData; + data.createQuadData(0, this.verticesFloats, this.indicesCount); + }; + _proto.initLocal = function initLocal() { + this._local = []; + this._local.length = 4; + }; + _proto.updateColor = function updateColor(comp, color) { + var uintVerts = this._renderData.uintVDatas[0]; + if (!uintVerts) return; + color = null != color ? color : comp.node.color._val; + var floatsPerVert = this.floatsPerVert; + var colorOffset = this.colorOffset; + for (var i = colorOffset, l = uintVerts.length; i < l; i += floatsPerVert) uintVerts[i] = color; + }; + _proto.getBuffer = function getBuffer() { + return cc.renderer._handle._meshBuffer; + }; + _proto.updateWorldVerts = function updateWorldVerts(comp) { + var local = this._local; + var verts = this._renderData.vDatas[0]; + var matrix = comp.node._worldMatrix; + var matrixm = matrix.m, a = matrixm[0], b = matrixm[1], c = matrixm[4], d = matrixm[5], tx = matrixm[12], ty = matrixm[13]; + var vl = local[0], vr = local[2], vb = local[1], vt = local[3]; + var floatsPerVert = this.floatsPerVert; + var vertexOffset = 0; + var justTranslate = 1 === a && 0 === b && 0 === c && 1 === d; + if (justTranslate) { + verts[vertexOffset] = vl + tx; + verts[vertexOffset + 1] = vb + ty; + vertexOffset += floatsPerVert; + verts[vertexOffset] = vr + tx; + verts[vertexOffset + 1] = vb + ty; + vertexOffset += floatsPerVert; + verts[vertexOffset] = vl + tx; + verts[vertexOffset + 1] = vt + ty; + vertexOffset += floatsPerVert; + verts[vertexOffset] = vr + tx; + verts[vertexOffset + 1] = vt + ty; + } else { + var al = a * vl, ar = a * vr, bl = b * vl, br = b * vr, cb = c * vb, ct = c * vt, db = d * vb, dt = d * vt; + verts[vertexOffset] = al + cb + tx; + verts[vertexOffset + 1] = bl + db + ty; + vertexOffset += floatsPerVert; + verts[vertexOffset] = ar + cb + tx; + verts[vertexOffset + 1] = br + db + ty; + vertexOffset += floatsPerVert; + verts[vertexOffset] = al + ct + tx; + verts[vertexOffset + 1] = bl + dt + ty; + vertexOffset += floatsPerVert; + verts[vertexOffset] = ar + ct + tx; + verts[vertexOffset + 1] = br + dt + ty; + } + }; + _proto.fillBuffers = function fillBuffers(comp, renderer) { + renderer.worldMatDirty && this.updateWorldVerts(comp); + var renderData = this._renderData; + var vData = renderData.vDatas[0]; + var iData = renderData.iDatas[0]; + var buffer = this.getBuffer(renderer); + var offsetInfo = buffer.request(this.verticesCount, this.indicesCount); + var vertexOffset = offsetInfo.byteOffset >> 2, vbuf = buffer._vData; + vData.length + vertexOffset > vbuf.length ? vbuf.set(vData.subarray(0, vbuf.length - vertexOffset), vertexOffset) : vbuf.set(vData, vertexOffset); + var ibuf = buffer._iData, indiceOffset = offsetInfo.indiceOffset, vertexId = offsetInfo.vertexOffset; + for (var i = 0, l = iData.length; i < l; i++) ibuf[indiceOffset++] = vertexId + iData[i]; + }; + _proto.updateTexId = function updateTexId(comp) { + var texId = comp._texId; + var texIdOffset = this.texIdOffset; + var floatsPerVert = this.floatsPerVert; + var verts = this._renderData.vDatas[0]; + for (var i = 0, l = verts.length; i < l; i++) verts[floatsPerVert * i + texIdOffset] = texId; + }; + _createClass(Assembler2D, [ { + key: "verticesFloats", + get: function get() { + return this.verticesCount * this.floatsPerVert; + } + } ]); + return Assembler2D; + })(_assembler["default"]); + exports["default"] = Assembler2D; + cc.js.addon(Assembler2D.prototype, { + floatsPerVert: 5, + verticesCount: 4, + indicesCount: 6, + uvOffset: 2, + colorOffset: 4, + isMulti: false + }); + cc.Assembler2D = Assembler2D; + module.exports = exports["default"]; + }), { + "../value-types": 220, + "./assembler": 149, + "./utils/dynamic-atlas/manager": 154, + "./webgl/render-data": 188 + } ], + 148: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _pool3 = _interopRequireDefault(require("../utils/pool")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var _assemblerId = 0; + function getAssemblerId(assemblerCtor) { + Object.getOwnPropertyDescriptor(assemblerCtor, "__assemblerId__") || (assemblerCtor.__assemblerId__ = ++_assemblerId); + return assemblerCtor.__assemblerId__; + } + var AssemblerPool = (function(_Pool) { + _inheritsLoose(AssemblerPool, _Pool); + function AssemblerPool() { + var _this; + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; + _this = _Pool.call.apply(_Pool, [ this ].concat(args)) || this; + _this._pool = {}; + return _this; + } + var _proto = AssemblerPool.prototype; + _proto.put = function put(assembler) { + if (!assembler) return; + if (!this.enabled) { + false; + return; + } + var id = getAssemblerId(assembler.constructor); + var pool = this._pool; + pool[id] || (pool[id] = []); + if (this.count > this.maxSize) return; + this._clean(assembler); + pool[id].push(assembler); + this.count++; + }; + _proto.get = function get(assemblerCtor) { + var assembler; + if (this.enabled) { + var _pool = this._pool; + var id = getAssemblerId(assemblerCtor); + assembler = _pool[id] && _pool[id].pop(); + } + assembler ? this.count-- : assembler = new assemblerCtor(); + return assembler; + }; + _proto.clear = function clear() { + var _pool2; + var name; + var assemblers; + var i; + false; + this._pool = {}; + this.count = 0; + }; + _proto._clean = function _clean(assembler) { + false; + assembler._renderComp = null; + }; + return AssemblerPool; + })(_pool3["default"]); + var pool = new AssemblerPool(); + _pool3["default"].register("assembler", pool); + var _default = pool; + exports["default"] = _default; + module.exports = exports["default"]; + }), { + "../utils/pool": 207 + } ], + 149: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _vertexFormat = require("./webgl/vertex-format"); + var _assemblerPool = _interopRequireDefault(require("./assembler-pool")); + var _manager = _interopRequireDefault(require("./utils/dynamic-atlas/manager")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + var Assembler = (function() { + function Assembler() { + this._extendNative && this._extendNative(); + } + var _proto = Assembler.prototype; + _proto.init = function init(renderComp) { + this._renderComp = renderComp; + }; + _proto.updateRenderData = function updateRenderData(comp) {}; + _proto.updateRenderDataForSwitchMaterial = function updateRenderDataForSwitchMaterial(comp) {}; + _proto.fillBuffers = function fillBuffers(comp, renderer) {}; + _proto.getVfmt = function getVfmt() { + return _vertexFormat.vfmtPosUvColor; + }; + _proto.packDynamicAtlasAndCheckMaterial = function packDynamicAtlasAndCheckMaterial(comp, frame) { + false; + var allowDynamicAtlas = comp.allowDynamicAtlas; + if ((cc.sp.allowDynamicAtlas && 0 === allowDynamicAtlas || 1 === allowDynamicAtlas) && !frame._original && _manager["default"] && frame._texture.packable) { + var packedFrame = _manager["default"].insertSpriteFrame(frame); + packedFrame && frame._setDynamicAtlasFrame(packedFrame); + } + var material = comp._materials[0]; + if (!material) return false; + if (this.checkAndSwitchMaterial(comp, frame._texture, material)) return true; + if (material.material.isMultiSupport()) comp._texIdDirty = true; else if (material.getProperty("texture") !== frame._texture) { + comp._vertsDirty = true; + comp._updateMaterial(); + } + return false; + }; + _proto.checkAndSwitchMaterial = function checkAndSwitchMaterial(comp, texture, material) { + var autoSwitchMaterial = comp.autoSwitchMaterial; + if ((cc.sp.autoSwitchMaterial && 0 === autoSwitchMaterial || 1 === autoSwitchMaterial) && texture._multiMaterial && material.material !== texture._multiMaterial) { + comp.setMaterial(0, texture._multiMaterial); + if (!this.isMulti) { + comp._assembler.updateRenderDataForSwitchMaterial(comp); + return true; + } + } + }; + return Assembler; + })(); + exports["default"] = Assembler; + Assembler.register = function(renderCompCtor, assembler) { + renderCompCtor.__assembler__ = assembler; + }; + Assembler.init = function(renderComp) { + var renderCompCtor = renderComp.constructor; + var assemblerCtor = renderCompCtor.__assembler__; + while (!assemblerCtor) { + renderCompCtor = renderCompCtor.$super; + if (!renderCompCtor) { + cc.warn("Can not find assembler for render component : [" + cc.js.getClassName(renderComp) + "]"); + return; + } + assemblerCtor = renderCompCtor.__assembler__; + } + assemblerCtor.getConstructor && (assemblerCtor = assemblerCtor.getConstructor(renderComp)); + if (!renderComp._assembler || renderComp._assembler.constructor !== assemblerCtor) { + var assembler = _assemblerPool["default"].get(assemblerCtor); + assembler.init(renderComp); + renderComp._assembler = assembler; + } + }; + cc.Assembler = Assembler; + module.exports = exports["default"]; + }), { + "./assembler-pool": 148, + "./utils/dynamic-atlas/manager": 154, + "./webgl/vertex-format": 190 + } ], + 150: [ (function(require, module, exports) { + "use strict"; + var Device = function Device(canvasEL) { + var ctx; + try { + ctx = canvasEL.getContext("2d"); + } catch (err) { + console.error(err); + return; + } + this._canvas = canvasEL; + this._ctx = ctx; + this._caps = {}; + this._stats = { + drawcalls: 0 + }; + this._vx = this._vy = this._vw = this._vh = 0; + this._sx = this._sy = this._sw = this._sh = 0; + }; + Device.prototype._restoreTexture = function _restoreTexture(unit) {}; + Device.prototype.setViewport = function setViewport(x, y, w, h) { + if (this._vx !== x || this._vy !== y || this._vw !== w || this._vh !== h) { + this._vx = x; + this._vy = y; + this._vw = w; + this._vh = h; + } + }; + Device.prototype.setScissor = function setScissor(x, y, w, h) { + if (this._sx !== x || this._sy !== y || this._sw !== w || this._sh !== h) { + this._sx = x; + this._sy = y; + this._sw = w; + this._sh = h; + } + }; + Device.prototype.clear = function clear(color) { + var ctx = this._ctx; + ctx.clearRect(this._vx, this._vy, this._vw, this._vh); + if (color && (0 !== color[0] || 0 !== color[1] || 0 !== color[2])) { + ctx.fillStyle = "rgb(" + color[0] + "," + color[1] + "," + color[2] + ")"; + ctx.globalAlpha = color[3]; + ctx.fillRect(this._vx, this._vy, this._vw, this._vh); + } + }; + Device.prototype.resetDrawCalls = function() { + this._stats.drawcalls = 0; + }; + Device.prototype.getDrawCalls = function() { + return this._stats.drawcalls; + }; + module.exports = Device; + }), {} ], + 151: [ (function(require, module, exports) { + "use strict"; + var Texture2D = function Texture2D(device, options) { + this._device = device; + this._width = 4; + this._height = 4; + this._image = null; + if (options) { + void 0 !== options.width && (this._width = options.width); + void 0 !== options.height && (this._height = options.height); + this.updateImage(options); + } + }; + Texture2D.prototype.update = function update(options) { + this.updateImage(options); + }; + Texture2D.prototype.updateImage = function updateImage(options) { + if (options.images && options.images[0]) { + var image = options.images[0]; + image && image !== this._image && (this._image = image); + } + }; + Texture2D.prototype.destroy = function destroy() { + this._image = null; + }; + module.exports = Texture2D; + }), {} ], + 152: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _gfx = _interopRequireDefault(require("../../renderer/gfx")); + var _inputAssembler = _interopRequireDefault(require("../../renderer/core/input-assembler")); + var _pass = _interopRequireDefault(require("../../renderer/core/pass")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _initBuiltins(device) { + var defaultTexture = new _gfx["default"].Texture2D(device, { + images: [], + width: 128, + height: 128, + wrapS: _gfx["default"].WRAP_REPEAT, + wrapT: _gfx["default"].WRAP_REPEAT, + format: _gfx["default"].TEXTURE_FMT_RGB8, + genMipmaps: false + }); + return { + defaultTexture: defaultTexture, + programTemplates: [], + programChunks: {} + }; + } + var _default = cc.renderer = { + Texture2D: null, + InputAssembler: _inputAssembler["default"], + Pass: _pass["default"], + renderEngine: null, + canvas: null, + device: null, + scene: null, + drawCalls: 0, + _handle: null, + _cameraNode: null, + _camera: null, + _forward: null, + _flow: null, + initWebGL: function initWebGL(canvas, opts) { + require("./webgl/assemblers"); + var ModelBatcher = require("./webgl/model-batcher"); + this.Texture2D = _gfx["default"].Texture2D; + this.canvas = canvas; + this._flow = cc.RenderFlow; + var builtins; + var nativeFlow; + false; + var Scene = require("../../renderer/scene/scene"); + var ForwardRenderer = require("../../renderer/renderers/forward-renderer"); + this.device = new _gfx["default"].Device(canvas, opts); + this.scene = new Scene(); + var _builtins = _initBuiltins(this.device); + this._forward = new ForwardRenderer(this.device, _builtins); + this._handle = new ModelBatcher(this.device, this.scene); + this._flow.init(this._handle, this._forward); + }, + initCanvas: function initCanvas(canvas) { + var canvasRenderer = require("./canvas"); + var Texture2D = require("./canvas/Texture2D"); + var Device = require("./canvas/Device"); + this.Device = Device; + this.Texture2D = Texture2D; + this.canvas = canvas; + this.device = new Device(canvas); + this._camera = { + a: 1, + b: 0, + c: 0, + d: 1, + tx: 0, + ty: 0 + }; + this._handle = new canvasRenderer.RenderComponentHandle(this.device, this._camera); + this._forward = new canvasRenderer.ForwardRenderer(); + this._flow = cc.RenderFlow; + this._flow.init(this._handle, this._forward); + }, + updateCameraViewport: function updateCameraViewport() { + if (true, cc.director) { + var ecScene = cc.director.getScene(); + ecScene && ecScene.setScale(1, 1, 1); + } + if (cc.game.renderType === cc.game.RENDER_TYPE_CANVAS) { + var vp = cc.view.getViewportRect(); + this.device.setViewport(vp.x, vp.y, vp.width, vp.height); + this._camera.a = cc.view.getScaleX(); + this._camera.d = cc.view.getScaleY(); + this._camera.tx = vp.x; + this._camera.ty = vp.y + vp.height; + } + }, + render: function render(ecScene, dt) { + this.device.resetDrawCalls(); + if (ecScene) { + this._flow.render(ecScene, dt); + this.drawCalls = this.device.getDrawCalls(); + } + }, + clear: function clear() { + this._handle.reset(); + this._forward.clear(); + } + }; + exports["default"] = _default; + module.exports = exports["default"]; + }), { + "../../renderer/core/input-assembler": 237, + "../../renderer/core/pass": 238, + "../../renderer/gfx": 247, + "../../renderer/renderers/forward-renderer": 266, + "../../renderer/scene/scene": 269, + "./canvas": void 0, + "./canvas/Device": 150, + "./canvas/Texture2D": 151, + "./webgl/assemblers": 161, + "./webgl/model-batcher": 186 + } ], + 153: [ (function(require, module, exports) { + "use strict"; + var FlagOfset = 0; + var DONOTHING = 1 << FlagOfset++; + var BREAK_FLOW = 1 << FlagOfset++; + var LOCAL_TRANSFORM = 1 << FlagOfset++; + var WORLD_TRANSFORM = 1 << FlagOfset++; + var TRANSFORM = LOCAL_TRANSFORM | WORLD_TRANSFORM; + var UPDATE_RENDER_DATA = 1 << FlagOfset++; + var OPACITY = 1 << FlagOfset++; + var COLOR = 1 << FlagOfset++; + var OPACITY_COLOR = OPACITY | COLOR; + var RENDER = 1 << FlagOfset++; + var CHILDREN = 1 << FlagOfset++; + var POST_RENDER = 1 << FlagOfset++; + var FINAL = 1 << FlagOfset++; + var _batcher, _forward; + var _cullingMask = 0; + function RenderFlow() { + this._func = init; + this._next = null; + } + var _proto = RenderFlow.prototype; + _proto._doNothing = function() {}; + _proto._localTransform = function(node) { + node._updateLocalMatrix(); + node._renderFlag &= ~LOCAL_TRANSFORM; + this._next._func(node); + }; + _proto._worldTransform = function(node) { + _batcher.worldMatDirty++; + var t = node._matrix; + var trs = node._trs; + var tm = t.m; + tm[12] = trs[0]; + tm[13] = trs[1]; + tm[14] = trs[2]; + node._mulMat(node._worldMatrix, node._parent._worldMatrix, t); + node._renderFlag &= ~WORLD_TRANSFORM; + this._next._func(node); + _batcher.worldMatDirty--; + }; + _proto._opacity = function(node) { + _batcher.parentOpacityDirty++; + this._next._func(node); + node._renderFlag &= ~OPACITY; + _batcher.parentOpacityDirty--; + }; + _proto._color = function(node) { + var comp = node._renderComponent; + comp && comp._updateColor(); + node._renderFlag &= ~COLOR; + this._next._func(node); + }; + _proto._updateRenderData = function(node) { + var comp = node._renderComponent; + comp._assembler.updateRenderData(comp); + node._renderFlag &= ~UPDATE_RENDER_DATA; + this._next._func(node); + }; + _proto._render = function(node) { + var comp = node._renderComponent; + comp._checkBacth(_batcher, node._cullingMask); + comp._assembler.fillBuffers(comp, _batcher); + this._next._func(node); + }; + _proto._children = function(node) { + var cullingMask = _cullingMask; + var batcher = _batcher; + var parentOpacity = batcher.parentOpacity; + var opacity = batcher.parentOpacity *= node._opacity / 255; + var worldTransformFlag = batcher.worldMatDirty ? WORLD_TRANSFORM : 0; + var worldOpacityFlag = batcher.parentOpacityDirty ? OPACITY_COLOR : 0; + var worldDirtyFlag = worldTransformFlag | worldOpacityFlag; + var children = node._children; + for (var i = 0, l = children.length; i < l; i++) { + var c = children[i]; + c._renderFlag |= worldDirtyFlag; + if (!c._activeInHierarchy || 0 === c._opacity) continue; + _cullingMask = c._cullingMask = 0 === c.groupIndex ? cullingMask : 1 << c.groupIndex; + var colorVal = c._color._val; + c._color._fastSetA(c._opacity * opacity); + flows[c._renderFlag]._func(c); + c._color._val = colorVal; + } + batcher.parentOpacity = parentOpacity; + this._next._func(node); + }; + _proto._postRender = function(node) { + var comp = node._renderComponent; + comp._checkBacth(_batcher, node._cullingMask); + comp._assembler.postFillBuffers(comp, _batcher); + this._next._func(node); + }; + var EMPTY_FLOW = new RenderFlow(); + EMPTY_FLOW._func = EMPTY_FLOW._doNothing; + EMPTY_FLOW._next = EMPTY_FLOW; + var flows = {}; + function createFlow(flag, next) { + var flow = new RenderFlow(); + flow._next = next || EMPTY_FLOW; + switch (flag) { + case DONOTHING: + case BREAK_FLOW: + flow._func = flow._doNothing; + break; + + case LOCAL_TRANSFORM: + flow._func = flow._localTransform; + break; + + case WORLD_TRANSFORM: + flow._func = flow._worldTransform; + break; + + case OPACITY: + flow._func = flow._opacity; + break; + + case COLOR: + flow._func = flow._color; + break; + + case UPDATE_RENDER_DATA: + flow._func = flow._updateRenderData; + break; + + case RENDER: + flow._func = flow._render; + break; + + case CHILDREN: + flow._func = flow._children; + break; + + case POST_RENDER: + flow._func = flow._postRender; + } + return flow; + } + function getFlow(flag) { + var flow = null; + var tFlag = FINAL; + while (tFlag > 0) { + tFlag & flag && (flow = createFlow(tFlag, flow)); + tFlag >>= 1; + } + return flow; + } + function init(node) { + var flag = node._renderFlag; + var r = flows[flag] = getFlow(flag); + r._func(node); + } + RenderFlow.flows = flows; + RenderFlow.createFlow = createFlow; + var _validateList = []; + RenderFlow.registerValidate = function(renderComp) { + if (renderComp._inValidateList) return; + _validateList.push(renderComp); + renderComp._inValidateList = true; + }; + RenderFlow.validateRenderers = function() { + for (var i = 0, l = _validateList.length; i < l; i++) { + var renderComp = _validateList[i]; + if (!renderComp.isValid) continue; + renderComp.enabledInHierarchy ? renderComp._validateRender() : renderComp.disableRender(); + renderComp._inValidateList = false; + } + _validateList.length = 0; + }; + RenderFlow.visitRootNode = function(rootNode) { + RenderFlow.validateRenderers(); + var preCullingMask = _cullingMask; + _cullingMask = rootNode._cullingMask; + if (rootNode._renderFlag & WORLD_TRANSFORM) { + _batcher.worldMatDirty++; + rootNode._calculWorldMatrix(); + rootNode._renderFlag &= ~WORLD_TRANSFORM; + flows[rootNode._renderFlag]._func(rootNode); + _batcher.worldMatDirty--; + } else flows[rootNode._renderFlag]._func(rootNode); + _cullingMask = preCullingMask; + }; + RenderFlow.render = function(rootNode, dt) { + _batcher.reset(); + _batcher.walking = true; + RenderFlow.visitRootNode(rootNode); + _batcher.terminate(); + _batcher.walking = false; + _forward.render(_batcher._renderScene, dt); + }; + RenderFlow.renderCamera = function(camera, rootNode) { + _batcher.reset(); + _batcher.walking = true; + RenderFlow.visitRootNode(rootNode); + _batcher.terminate(); + _batcher.walking = false; + _forward.renderCamera(camera, _batcher._renderScene); + }; + RenderFlow.init = function(batcher, forwardRenderer) { + _batcher = batcher; + _forward = forwardRenderer; + flows[0] = EMPTY_FLOW; + for (var i = 1; i < FINAL; i++) flows[i] = new RenderFlow(); + }; + RenderFlow.getBachther = function() { + return _batcher; + }; + RenderFlow.FLAG_DONOTHING = DONOTHING; + RenderFlow.FLAG_BREAK_FLOW = BREAK_FLOW; + RenderFlow.FLAG_LOCAL_TRANSFORM = LOCAL_TRANSFORM; + RenderFlow.FLAG_WORLD_TRANSFORM = WORLD_TRANSFORM; + RenderFlow.FLAG_TRANSFORM = TRANSFORM; + RenderFlow.FLAG_OPACITY = OPACITY; + RenderFlow.FLAG_COLOR = COLOR; + RenderFlow.FLAG_OPACITY_COLOR = OPACITY_COLOR; + RenderFlow.FLAG_UPDATE_RENDER_DATA = UPDATE_RENDER_DATA; + RenderFlow.FLAG_RENDER = RENDER; + RenderFlow.FLAG_CHILDREN = CHILDREN; + RenderFlow.FLAG_POST_RENDER = POST_RENDER; + RenderFlow.FLAG_FINAL = FINAL; + module.exports = cc.RenderFlow = RenderFlow; + }), {} ], + 154: [ (function(require, module, exports) { + "use strict"; + var _reusableAtlas = require("./reusable-atlas"); + var _atlases = []; + var _atlasIndex = -1; + var _maxAtlasCount = -1; + var _textureSize = 2048; + var _maxFrameSize = 512; + var _textureBleeding = true; + var _autoMultiBatch = true; + var _autoResetBeforeSceneLoad = true; + var _debugNode = null; + function newAtlas() { + var atlas = _atlases[++_atlasIndex]; + if (!atlas) { + atlas = new _reusableAtlas.Atlas(_textureSize, _textureSize); + _atlases.push(atlas); + dynamicAtlasManager.autoMultiBatch && cc.sp.multiBatcher.requsetMaterial(atlas._texture); + } + return atlas; + } + function beforeSceneLoad() { + _autoResetBeforeSceneLoad && dynamicAtlasManager.reset(); + } + var _enabled = false; + var dynamicAtlasManager = { + Atlas: _reusableAtlas.Atlas, + Rect: _reusableAtlas.Rect, + get enabled() { + return _enabled; + }, + set enabled(value) { + if (_enabled === value) return; + if (value) { + this.reset(); + cc.director.on(cc.Director.EVENT_BEFORE_SCENE_LAUNCH, beforeSceneLoad); + } else cc.director.off(cc.Director.EVENT_BEFORE_SCENE_LAUNCH, beforeSceneLoad); + _enabled = value; + }, + get maxAtlasCount() { + return _maxAtlasCount; + }, + set maxAtlasCount(value) { + _maxAtlasCount = value; + }, + get atlasCount() { + return _atlases.length; + }, + get textureBleeding() { + return _textureBleeding; + }, + set textureBleeding(enable) { + _textureBleeding = enable; + }, + get textureSize() { + return _textureSize; + }, + set textureSize(value) { + _textureSize = value; + }, + get maxFrameSize() { + return _maxFrameSize; + }, + set maxFrameSize(value) { + _maxFrameSize = value; + }, + get autoMultiBatch() { + return _autoMultiBatch; + }, + set autoMultiBatch(enable) { + if (_autoMultiBatch === enable) return; + if (enable) for (var i = 0, l = _atlases.length; i < l; i++) cc.sp.multiBatcher.requsetMaterial(_atlases[i]._texture); + _autoMultiBatch = enable; + }, + get autoResetBeforeSceneLoad() { + return _autoResetBeforeSceneLoad; + }, + set autoResetBeforeSceneLoad(enable) { + if (_autoResetBeforeSceneLoad === enable) return; + _autoResetBeforeSceneLoad = enable; + }, + get atlases() { + return _atlases; + }, + rects: Object.create(null), + insertSpriteFrame: function insertSpriteFrame(spriteFrame) { + false; + if (!_enabled || !spriteFrame || spriteFrame._original) return null; + var atlas, frame; + var rect = spriteFrame._rect, texture = spriteFrame._texture, info = this.rects[texture._uuid]; + var sx = rect.x, sy = rect.y; + if (info) { + sx += info.x; + sy += info.y; + info.spriteFrames.push(spriteFrame); + frame = { + x: sx, + y: sy, + texture: info.atlas._texture + }; + return frame; + } + for (var i = 0; i <= _atlasIndex; i++) { + atlas = _atlases[i]; + frame = atlas.insertSpriteFrame(spriteFrame); + if (frame) return frame; + } + if (_atlasIndex + 1 < _maxAtlasCount) { + atlas = newAtlas(); + return atlas.insertSpriteFrame(spriteFrame); + } + return frame; + }, + deleteSpriteFrame: function deleteSpriteFrame(spriteFrame) { + if (spriteFrame && true && spriteFrame._original) { + this.deleteAtlasSpriteFrame(spriteFrame); + spriteFrame._resetDynamicAtlasFrame(); + } + }, + deleteTexture: function deleteTexture(texture) { + this.deleteAtlasTexture(texture); + }, + reset: function reset() { + for (var i = 0, l = _atlases.length; i < l; i++) _atlases[i].destroy(); + _atlases.length = 0; + _atlasIndex = -1; + }, + deleteAtlasSpriteFrame: function deleteAtlasSpriteFrame(spriteFrame) { + if (!spriteFrame._original) return; + var texture = spriteFrame._original._texture; + for (var i = _atlases.length - 1; i >= 0; i--) if (_atlases[i].deleteSpriteFrame(texture, spriteFrame)) return; + }, + deleteAtlasTexture: function deleteAtlasTexture(texture) { + if (texture) for (var i = _atlases.length - 1; i >= 0; i--) if (_atlases[i].deleteInnerTexture(texture, true)) return; + }, + showDebug: (true, function(show) { + if (show) { + if (!_debugNode || !_debugNode.isValid) { + var width = cc.visibleRect.width; + var height = cc.visibleRect.height; + _debugNode = new cc.Node("DYNAMIC_ATLAS_DEBUG_NODE"); + _debugNode.width = width; + _debugNode.height = height; + _debugNode.x = width / 2; + _debugNode.y = height / 2; + _debugNode.zIndex = cc.macro.MAX_ZINDEX; + _debugNode.parent = cc.director.getScene(); + _debugNode.groupIndex = cc.Node.BuiltinGroupIndex.DEBUG; + cc.Camera._setupDebugCamera(); + var scroll = _debugNode.addComponent(cc.ScrollView); + var content = new cc.Node("CONTENT"); + var layout = content.addComponent(cc.Layout); + layout.type = cc.Layout.Type.VERTICAL; + layout.resizeMode = cc.Layout.ResizeMode.CONTAINER; + content.parent = _debugNode; + content.width = _textureSize; + content.anchorY = 1; + content.x = _textureSize; + scroll.content = content; + for (var i = 0; i <= _atlasIndex; i++) { + var node = new cc.Node("ATLAS"); + var texture = _atlases[i]._texture; + var spriteFrame = new cc.SpriteFrame(); + spriteFrame.setTexture(_atlases[i]._texture); + var sprite = node.addComponent(cc.Sprite); + sprite.spriteFrame = spriteFrame; + node.parent = content; + } + } + return _debugNode; + } + if (_debugNode) { + _debugNode.parent = null; + _debugNode = null; + } + }), + update: function update() { + if (!this.enabled) return; + for (var i = 0; i <= _atlasIndex; i++) _atlases[i].update(); + } + }; + module.exports = cc.dynamicAtlasManager = dynamicAtlasManager; + }), { + "./reusable-atlas": 155 + } ], + 155: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports.Rect = exports.Atlas = void 0; + function _createForOfIteratorHelperLoose(o, allowArrayLike) { + var it = "undefined" !== typeof Symbol && o[Symbol.iterator] || o["@@iterator"]; + if (it) return (it = it.call(o)).next.bind(it); + if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && "number" === typeof o.length) { + it && (o = it); + var i = 0; + return function() { + if (i >= o.length) return { + done: true + }; + return { + done: false, + value: o[i++] + }; + }; + } + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ("string" === typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + "Object" === n && o.constructor && (n = o.constructor.name); + if ("Map" === n || "Set" === n) return Array.from(o); + if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + "value" in descriptor && (descriptor.writable = true); + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _createClass(Constructor, protoProps, staticProps) { + protoProps && _defineProperties(Constructor.prototype, protoProps); + staticProps && _defineProperties(Constructor, staticProps); + Object.defineProperty(Constructor, "prototype", { + writable: false + }); + return Constructor; + } + var RenderTexture = require("../../../assets/CCRenderTexture"); + var Rect = (function() { + Rect.reuse = function reuse(atlas, width, height, x, y) { + if (0 === this.pointer) { + for (var i = 0; i < 128; i++) Rect.pool[i] = new Rect(atlas, 0, 0, 0, 0); + this.pointer += 128; + } + this.pointer--; + var rect = this.pool[this.pointer]; + rect.atlas = atlas; + rect.width = width; + rect.height = height; + rect.x = x; + rect.y = y; + return rect; + }; + Rect.recycle = function recycle(rect) { + rect.atlas = void 0; + rect.uuid = ""; + rect.spriteFrames.length = 0; + rect.parentRect = void 0; + rect.subRectA = void 0; + rect.subRectB = void 0; + rect.subRectC = void 0; + rect.cacheIndex = -1; + this.pool[this.pointer] = rect; + this.pointer++; + }; + function Rect(atlas, width, height, x, y) { + this.atlas = void 0; + this.width = 0; + this.height = 0; + this.x = 0; + this.y = 0; + this.cacheIndex = -1; + this.uuid = ""; + this.spriteFrames = []; + this.parentRect = void 0; + this.subRectA = void 0; + this.subRectB = void 0; + this.subRectC = void 0; + this.used = 0; + this.atlas = atlas; + this.width = width; + this.height = height; + this.x = x; + this.y = y; + } + _createClass(Rect, [ { + key: "sizes", + get: function get() { + return this.width * this.height; + } + } ]); + return Rect; + })(); + exports.Rect = Rect; + Rect.pool = []; + Rect.pointer = 0; + var Atlas = (function() { + function Atlas(width, height, padding, border) { + void 0 === padding && (padding = 2); + void 0 === border && (border = 2); + this.width = 0; + this.height = 0; + this.padding = 0; + this.border = 0; + this.rootRect = void 0; + this.freeRects = []; + this._count = 0; + this._texture = void 0; + this._dirty = false; + var texture = new RenderTexture(); + texture.initWithSize(width, height); + texture.update(); + this._texture = texture; + this.width = width; + this.height = height; + this.padding = padding; + this.border = border; + this.rootRect = Rect.reuse(this, this.width + this.padding - 2 * this.border, this.height + this.padding - 2 * this.border, this.border, this.border); + this.pushFreeRect(this.rootRect); + } + var _proto = Atlas.prototype; + _proto.pushFreeRect = function pushFreeRect(rect) { + var i = this.freeRects.push(rect) - 1; + rect.cacheIndex = i; + }; + _proto.removeFreeRect = function removeFreeRect(index) { + var temp = this.freeRects[index]; + var temp2 = this.freeRects[this.freeRects.length - 1]; + temp2.cacheIndex = index; + temp.cacheIndex = -1; + this.freeRects[index] = temp2; + this.freeRects.pop(); + }; + _proto.replaceFreeRect = function replaceFreeRect(index, rect) { + this.freeRects[index].cacheIndex = -1; + rect.cacheIndex = index; + this.freeRects[index] = rect; + }; + _proto.insertSpriteFrame = function insertSpriteFrame(spriteFrame) { + var rect = spriteFrame._rect, texture = spriteFrame._texture; + var sx = rect.x, sy = rect.y; + var width = texture.width, height = texture.height; + var result = this.insert(texture); + if (!result) return null; + if (cc.dynamicAtlasManager.textureBleeding) { + if (width <= 8 || height <= 8) { + this._texture.drawTextureAt(texture, result.x - 1, result.y - 1); + this._texture.drawTextureAt(texture, result.x - 1, result.y + 1); + this._texture.drawTextureAt(texture, result.x + 1, result.y - 1); + this._texture.drawTextureAt(texture, result.x + 1, result.y + 1); + } + this._texture.drawTextureAt(texture, result.x - 1, result.y); + this._texture.drawTextureAt(texture, result.x + 1, result.y); + this._texture.drawTextureAt(texture, result.x, result.y - 1); + this._texture.drawTextureAt(texture, result.x, result.y + 1); + } + this._texture.drawTextureAt(texture, result.x, result.y); + this._count++; + sx += result.x; + sy += result.y; + result.spriteFrames.push(spriteFrame); + this._dirty = true; + var frame = { + x: sx, + y: sy, + texture: this._texture + }; + return frame; + }; + _proto.insert = function insert(texture) { + var width = texture.width + this.padding, height = texture.height + this.padding; + var score = Number.MAX_VALUE; + var areaFit = 0; + var original = void 0; + var originalIndex = 0; + for (var i = 0; i < this.freeRects.length; i++) { + var rect = this.freeRects[i]; + if (rect.width >= width && rect.height >= height) { + areaFit = rect.sizes - width * height; + if (areaFit < score) { + original = rect; + originalIndex = i; + score = areaFit; + } + } + } + if (original) { + if (original.width === width && original.height === height) { + original.uuid = texture._uuid; + original.used++; + original.parentRect && original.parentRect.used++; + cc.dynamicAtlasManager.rects[texture._uuid] = original; + this.removeFreeRect(originalIndex); + return original; + } + var best = Rect.reuse(this, width, height, original.x, original.y); + var tmp; + if (best.y + best.height < original.y + original.height) { + tmp = Rect.reuse(this, original.width, original.y + original.height - (best.y + best.height), original.x, best.y + best.height); + tmp.parentRect = original; + original.subRectB = tmp; + if (tmp.width > Atlas.ignoreRectSize && tmp.height > Atlas.ignoreRectSize) { + this.replaceFreeRect(originalIndex, tmp); + originalIndex = -1; + } + } + if (best.x + best.width < original.x + original.width) { + tmp = Rect.reuse(this, original.x + original.width - (best.x + best.width), original.height - (original.y + original.height - (best.y + best.height)), best.x + best.width, original.y); + tmp.parentRect = original; + original.subRectC = tmp; + if (tmp.width > Atlas.ignoreRectSize && tmp.height > Atlas.ignoreRectSize) if (-1 !== originalIndex) { + this.replaceFreeRect(originalIndex, tmp); + originalIndex = -1; + } else this.pushFreeRect(tmp); + } + -1 !== originalIndex && this.removeFreeRect(originalIndex); + best.parentRect = original; + original.subRectA = best; + best.used++; + original.used++; + 1 === original.used && original.parentRect && original.parentRect.used++; + best.uuid = texture._uuid; + cc.dynamicAtlasManager.rects[texture._uuid] = best; + return best; + } + return; + }; + _proto.update = function update() { + if (!this._dirty) return; + this._texture.update(); + this._dirty = false; + }; + _proto.deleteSpriteFrame = function deleteSpriteFrame(texture, frame) { + if (texture) { + var rect = cc.dynamicAtlasManager.rects[texture._uuid]; + if (rect) { + var index = rect.spriteFrames.indexOf(frame); + if (-1 !== index) { + rect.spriteFrames.splice(index, 1); + 0 === rect.spriteFrames.length && rect.atlas.deleteInnerRect(rect); + } else cc.warn("[Dynamic Atlas] can't find spriteFrame in Rect."); + return true; + } + } + return false; + }; + _proto.deleteInnerRect = function deleteInnerRect(rect) { + delete cc.dynamicAtlasManager.rects[rect.uuid]; + rect.uuid = ""; + this._count--; + for (var _iterator = _createForOfIteratorHelperLoose(rect.spriteFrames), _step; !(_step = _iterator()).done; ) { + var spriteFrame = _step.value; + spriteFrame.isValid && spriteFrame._resetDynamicAtlasFrame(); + } + rect.spriteFrames.length = 0; + this.tryMergeRecycle(rect); + }; + _proto.deleteInnerTexture = function deleteInnerTexture(texture) { + if (texture) { + var rect = cc.dynamicAtlasManager.rects[texture._uuid]; + if (rect) { + rect.atlas.deleteInnerRect(rect); + return true; + } + } + return false; + }; + _proto.tryMergeRecycle = function tryMergeRecycle(rect) { + var old = void 0; + var parent = rect; + while (parent) { + parent.used--; + if (0 === parent.used) { + if (parent.subRectA) { + var i = parent.subRectA.cacheIndex; + -1 !== i && this.removeFreeRect(i); + Rect.recycle(parent.subRectA); + parent.subRectA = void 0; + } + if (parent.subRectB) { + var _i = parent.subRectB.cacheIndex; + -1 !== _i && this.removeFreeRect(_i); + Rect.recycle(parent.subRectB); + parent.subRectB = void 0; + } + if (parent.subRectC) { + var _i2 = parent.subRectC.cacheIndex; + -1 !== _i2 && this.removeFreeRect(_i2); + Rect.recycle(parent.subRectC); + parent.subRectC = void 0; + } + old = parent; + parent = parent.parentRect; + } else { + old && old.width > Atlas.ignoreRectSize && old.height > Atlas.ignoreRectSize && this.pushFreeRect(old); + old = parent; + parent = void 0; + } + } + old === this.rootRect && 0 === old.used && this.pushFreeRect(old); + }; + _proto.isEmpty = function isEmpty() { + return this._count <= 0; + }; + _proto.reset = function reset() { + var rects = cc.dynamicAtlasManager.rects; + for (var key in rects) { + var rect = rects[key]; + if (rect.atlas === this) { + delete rects[key]; + for (var _iterator2 = _createForOfIteratorHelperLoose(rect.spriteFrames), _step2; !(_step2 = _iterator2()).done; ) { + var spriteFrame = _step2.value; + spriteFrame.isValid && spriteFrame._resetDynamicAtlasFrame(); + } + Rect.recycle(rect); + } + } + for (var _iterator3 = _createForOfIteratorHelperLoose(this.freeRects), _step3; !(_step3 = _iterator3()).done; ) { + var _rect = _step3.value; + Rect.recycle(_rect); + } + this.freeRects.length = 0; + this._count = 0; + this.rootRect = Rect.reuse(this, this.width + this.padding - 2 * this.border, this.height + this.padding - 2 * this.border, this.border, this.border); + this.pushFreeRect(this.rootRect); + }; + _proto.destroy = function destroy() { + this.reset(); + this._texture.destroy(); + }; + return Atlas; + })(); + exports.Atlas = Atlas; + Atlas.ignoreRectSize = 10; + Atlas.DEFAULT_HASH = new RenderTexture()._getHash(); + }), { + "../../../assets/CCRenderTexture": 65 + } ], + 156: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _assembler2d = _interopRequireDefault(require("../../assembler-2d")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var textUtils = require("../../../utils/text-utils"); + var macro = require("../../../platform/CCMacro"); + var Label = require("../../../components/CCLabel"); + var Overflow = Label.Overflow; + var shareLabelInfo = require("../utils").shareLabelInfo; + var LetterInfo = function LetterInfo() { + this["char"] = ""; + this.valid = true; + this.x = 0; + this.y = 0; + this.line = 0; + this.hash = ""; + }; + var _tmpRect = cc.rect(); + var _comp = null; + var _horizontalKernings = []; + var _lettersInfo = []; + var _linesWidth = []; + var _linesOffsetX = []; + var _fntConfig = null; + var _numberOfLines = 0; + var _textDesiredHeight = 0; + var _letterOffsetY = 0; + var _tailoredTopY = 0; + var _tailoredBottomY = 0; + var _bmfontScale = 1; + var _lineBreakWithoutSpaces = false; + var _spriteFrame = null; + var _lineSpacing = 0; + var _contentSize = cc.size(); + var _string = ""; + var _fontSize = 0; + var _originFontSize = 0; + var _hAlign = 0; + var _vAlign = 0; + var _spacingX = 0; + var _lineHeight = 0; + var _overflow = 0; + var _isWrapText = false; + var _labelWidth = 0; + var _labelHeight = 0; + var _maxLineWidth = 0; + var _isRetina = false; + var _retinaScale = 1; + var BmfontAssembler = (function(_Assembler2D) { + _inheritsLoose(BmfontAssembler, _Assembler2D); + function BmfontAssembler() { + return _Assembler2D.apply(this, arguments) || this; + } + var _proto = BmfontAssembler.prototype; + _proto.updateRenderData = function updateRenderData(comp) { + if (!comp._vertsDirty) return; + if (_comp === comp) return; + _comp = comp; + this._reserveQuads(comp, comp.string.toString().length); + var assemblerChanged = this._updateFontFamily(comp); + assemblerChanged || this._updateRenderData(comp); + }; + _proto._preUpdateRenderData = function _preUpdateRenderData(comp) { + _comp = comp; + this._reserveQuads(comp, comp.string.toString().length); + var fontAsset = comp.font; + _spriteFrame = fontAsset.spriteFrame; + _fntConfig = fontAsset._fntConfig; + shareLabelInfo.fontAtlas = fontAsset._fontDefDictionary; + }; + _proto._updateRenderData = function _updateRenderData(comp) { + this._updateProperties(comp); + this._updateLabelInfo(comp); + this._updateContent(); + this.updateWorldVerts(comp); + if (_isRetina) { + _contentSize.width /= _retinaScale; + _contentSize.height /= _retinaScale; + _fontSize /= _retinaScale; + } + _comp._actualFontSize = _fontSize; + _comp.node.setContentSize(_contentSize); + _comp._vertsDirty = false; + _comp = null; + this._resetProperties(); + }; + _proto._updateFontScale = function _updateFontScale() { + _bmfontScale = _fontSize / _originFontSize; + }; + _proto._updateFontFamily = function _updateFontFamily(comp) { + var fontAsset = comp.font; + _spriteFrame = fontAsset.spriteFrame; + _fntConfig = fontAsset._fntConfig; + shareLabelInfo.fontAtlas = fontAsset._fontDefDictionary; + return this.packDynamicAtlasAndCheckMaterial(comp, _spriteFrame); + }; + _proto._updateLabelInfo = function _updateLabelInfo() { + shareLabelInfo.hash = ""; + shareLabelInfo.margin = 0; + }; + _proto.getTTFTextureSizeScale = function getTTFTextureSizeScale() { + return _isRetina ? _retinaScale : 1; + }; + _proto._updateProperties = function _updateProperties(comp) { + _string = comp.string.toString(); + _isRetina = !(comp.font instanceof cc.BitmapFont) && cc.sp.enableLabelRetina && 0 === comp.enableRetina || 1 === comp.enableRetina; + _retinaScale = cc.sp.labelRetinaScale; + _fontSize = comp.fontSize; + _originFontSize = _fntConfig ? _fntConfig.fontSize : comp.fontSize; + _hAlign = comp.horizontalAlign; + _vAlign = comp.verticalAlign; + _spacingX = comp.spacingX; + _overflow = comp.overflow; + _lineHeight = comp._lineHeight; + _contentSize.width = comp.node.width; + _contentSize.height = comp.node.height; + if (_isRetina) { + _fontSize *= _retinaScale; + _fntConfig || (_originFontSize *= _retinaScale); + _contentSize.width *= _retinaScale; + _contentSize.height *= _retinaScale; + _lineHeight *= _retinaScale; + shareLabelInfo.margin *= _retinaScale; + } + if (_overflow === Overflow.NONE) { + _isWrapText = false; + _contentSize.width += 2 * shareLabelInfo.margin; + _contentSize.height += 2 * shareLabelInfo.margin; + } else if (_overflow === Overflow.RESIZE_HEIGHT) { + _isWrapText = true; + _contentSize.height += 2 * shareLabelInfo.margin; + } else _isWrapText = comp.enableWrapText; + shareLabelInfo.lineHeight = _lineHeight; + shareLabelInfo.fontSize = _fontSize; + this._setupBMFontOverflowMetrics(); + }; + _proto._resetProperties = function _resetProperties() { + _fntConfig = null; + _spriteFrame = null; + shareLabelInfo.hash = ""; + shareLabelInfo.margin = 0; + }; + _proto._updateContent = function _updateContent() { + this._updateFontScale(); + this._computeHorizontalKerningForText(); + this._alignText(); + }; + _proto._computeHorizontalKerningForText = function _computeHorizontalKerningForText() { + var string = _string; + var stringLen = string.length; + var horizontalKernings = _horizontalKernings; + var kerningDict; + _fntConfig && (kerningDict = _fntConfig.kerningDict); + if (kerningDict && !cc.js.isEmptyObject(kerningDict)) { + var prev = -1; + for (var i = 0; i < stringLen; ++i) { + var key = string.charCodeAt(i); + var kerningAmount = kerningDict[prev << 16 | 65535 & key] || 0; + horizontalKernings[i] = i < stringLen - 1 ? kerningAmount : 0; + prev = key; + } + } else horizontalKernings.length = 0; + }; + _proto._multilineTextWrap = function _multilineTextWrap(nextTokenFunc) { + var textLen = _string.length; + var lineIndex = 0; + var nextTokenX = 0; + var nextTokenY = 0; + var longestLine = 0; + var letterRight = 0; + var highestY = 0; + var lowestY = 0; + var letterDef = null; + var letterPosition = cc.v2(0, 0); + for (var index = 0; index < textLen; ) { + var character = _string.charAt(index); + if ("\n" === character) { + _linesWidth.push(letterRight); + letterRight = 0; + lineIndex++; + nextTokenX = 0; + nextTokenY -= _lineHeight * this._getFontScale() + _lineSpacing; + this._recordPlaceholderInfo(index, character); + index++; + continue; + } + var tokenLen = nextTokenFunc(_string, index, textLen); + var tokenHighestY = highestY; + var tokenLowestY = lowestY; + var tokenRight = letterRight; + var nextLetterX = nextTokenX; + var newLine = false; + for (var tmp = 0; tmp < tokenLen; ++tmp) { + var letterIndex = index + tmp; + character = _string.charAt(letterIndex); + if ("\r" === character) { + this._recordPlaceholderInfo(letterIndex, character); + continue; + } + letterDef = shareLabelInfo.fontAtlas.getLetterDefinitionForChar(character, shareLabelInfo); + if (!letterDef) { + this._recordPlaceholderInfo(letterIndex, character); + var atlasName = ""; + _fntConfig && (atlasName = _fntConfig.atlasName); + console.log("Can't find letter definition in texture atlas " + atlasName + " for letter:" + character); + continue; + } + var letterX = nextLetterX + letterDef.offsetX * _bmfontScale - shareLabelInfo.margin; + if (_isWrapText && _maxLineWidth > 0 && nextTokenX > 0 && letterX + letterDef.w * _bmfontScale > _maxLineWidth && !textUtils.isUnicodeSpace(character)) { + _linesWidth.push(letterRight); + letterRight = 0; + lineIndex++; + nextTokenX = 0; + nextTokenY -= _lineHeight * this._getFontScale() + _lineSpacing; + newLine = true; + break; + } + letterPosition.x = letterX; + letterPosition.y = nextTokenY - letterDef.offsetY * _bmfontScale + shareLabelInfo.margin; + this._recordLetterInfo(letterPosition, character, letterIndex, lineIndex); + letterIndex + 1 < _horizontalKernings.length && letterIndex < textLen - 1 && (nextLetterX += _horizontalKernings[letterIndex + 1]); + nextLetterX += letterDef.xAdvance * _bmfontScale + _spacingX - 2 * shareLabelInfo.margin; + tokenRight = letterPosition.x + letterDef.w * _bmfontScale - shareLabelInfo.margin; + tokenHighestY < letterPosition.y && (tokenHighestY = letterPosition.y); + tokenLowestY > letterPosition.y - letterDef.h * _bmfontScale && (tokenLowestY = letterPosition.y - letterDef.h * _bmfontScale); + } + if (newLine) continue; + nextTokenX = nextLetterX; + letterRight = tokenRight; + highestY < tokenHighestY && (highestY = tokenHighestY); + lowestY > tokenLowestY && (lowestY = tokenLowestY); + longestLine < letterRight && (longestLine = letterRight); + index += tokenLen; + } + this._finishMultilineTextWrap(); + _linesWidth.push(letterRight); + _numberOfLines = lineIndex + 1; + _textDesiredHeight = _numberOfLines * _lineHeight * this._getFontScale(); + _numberOfLines > 1 && (_textDesiredHeight += (_numberOfLines - 1) * _lineSpacing); + _contentSize.width = _labelWidth; + _contentSize.height = _labelHeight; + _labelWidth <= 0 && (_contentSize.width = parseFloat(longestLine.toFixed(2)) + 2 * shareLabelInfo.margin); + _labelHeight <= 0 && (_contentSize.height = parseFloat(_textDesiredHeight.toFixed(2)) + 2 * shareLabelInfo.margin); + _tailoredTopY = _contentSize.height; + _tailoredBottomY = 0; + if (_overflow !== Overflow.CLAMP) { + highestY > 0 && (_tailoredTopY = _contentSize.height + highestY); + lowestY < -_textDesiredHeight && (_tailoredBottomY = _textDesiredHeight + lowestY); + } + return true; + }; + _proto._getFirstCharLen = function _getFirstCharLen() { + return 1; + }; + _proto._getFontScale = function _getFontScale() { + return _overflow === Overflow.SHRINK ? _bmfontScale : 1; + }; + _proto._getFirstWordLen = function _getFirstWordLen(text, startIndex, textLen) { + var character = text.charAt(startIndex); + if (textUtils.isUnicodeCJK(character) || "\n" === character || textUtils.isUnicodeSpace(character)) return 1; + var len = 1; + var letterDef = shareLabelInfo.fontAtlas.getLetterDefinitionForChar(character, shareLabelInfo); + if (!letterDef) return len; + var nextLetterX = letterDef.xAdvance * _bmfontScale + _spacingX; + var letterX; + for (var index = startIndex + 1; index < textLen; ++index) { + character = text.charAt(index); + letterDef = shareLabelInfo.fontAtlas.getLetterDefinitionForChar(character, shareLabelInfo); + if (!letterDef) break; + letterX = nextLetterX + letterDef.offsetX * _bmfontScale; + if (letterX + letterDef.w * _bmfontScale > _maxLineWidth && !textUtils.isUnicodeSpace(character) && _maxLineWidth > 0) return len; + nextLetterX += letterDef.xAdvance * _bmfontScale + _spacingX; + if ("\n" === character || textUtils.isUnicodeSpace(character) || textUtils.isUnicodeCJK(character)) break; + len++; + } + return len; + }; + _proto._multilineTextWrapByWord = function _multilineTextWrapByWord() { + return this._multilineTextWrap(this._getFirstWordLen); + }; + _proto._multilineTextWrapByChar = function _multilineTextWrapByChar() { + return this._multilineTextWrap(this._getFirstCharLen); + }; + _proto._recordPlaceholderInfo = function _recordPlaceholderInfo(letterIndex, _char) { + if (letterIndex >= _lettersInfo.length) { + var tmpInfo = new LetterInfo(); + _lettersInfo.push(tmpInfo); + } + _lettersInfo[letterIndex]["char"] = _char; + _lettersInfo[letterIndex].hash = _char.charCodeAt(0) + shareLabelInfo.hash; + _lettersInfo[letterIndex].valid = false; + }; + _proto._recordLetterInfo = function _recordLetterInfo(letterPosition, character, letterIndex, lineIndex) { + if (letterIndex >= _lettersInfo.length) { + var tmpInfo = new LetterInfo(); + _lettersInfo.push(tmpInfo); + } + var _char2 = character.charCodeAt(0); + var key = _char2 + shareLabelInfo.hash; + _lettersInfo[letterIndex].line = lineIndex; + _lettersInfo[letterIndex]["char"] = character; + _lettersInfo[letterIndex].hash = key; + _lettersInfo[letterIndex].valid = shareLabelInfo.fontAtlas.getLetter(key).valid; + _lettersInfo[letterIndex].x = letterPosition.x; + _lettersInfo[letterIndex].y = letterPosition.y; + }; + _proto._alignText = function _alignText() { + _textDesiredHeight = 0; + _linesWidth.length = 0; + _lineBreakWithoutSpaces ? this._multilineTextWrapByChar() : this._multilineTextWrapByWord(); + this._computeAlignmentOffset(); + _overflow === Overflow.SHRINK && _fontSize > 0 && this._isVerticalClamp() && this._shrinkLabelToContentSize(this._isVerticalClamp); + this._updateQuads() || _overflow === Overflow.SHRINK && this._shrinkLabelToContentSize(this._isHorizontalClamp); + }; + _proto._scaleFontSizeDown = function _scaleFontSizeDown(fontSize) { + var shouldUpdateContent = true; + if (!fontSize) { + fontSize = .1; + shouldUpdateContent = false; + } + _fontSize = fontSize; + shouldUpdateContent && this._updateContent(); + }; + _proto._shrinkLabelToContentSize = function _shrinkLabelToContentSize(lambda) { + var fontSize = _fontSize; + var left = 0, right = 0 | fontSize, mid = 0; + while (left < right) { + mid = left + right + 1 >> 1; + var newFontSize = mid; + if (newFontSize <= 0) break; + _bmfontScale = newFontSize / _originFontSize; + _lineBreakWithoutSpaces ? this._multilineTextWrapByChar() : this._multilineTextWrapByWord(); + this._computeAlignmentOffset(); + lambda() ? right = mid - 1 : left = mid; + } + var actualFontSize = left; + actualFontSize >= 0 && this._scaleFontSizeDown(actualFontSize); + }; + _proto._isVerticalClamp = function _isVerticalClamp() { + return _textDesiredHeight > _contentSize.height; + }; + _proto._isHorizontalClamp = function _isHorizontalClamp() { + var letterClamp = false; + for (var ctr = 0, l = _string.length; ctr < l; ++ctr) { + var letterInfo = _lettersInfo[ctr]; + if (letterInfo.valid) { + var letterDef = shareLabelInfo.fontAtlas.getLetter(letterInfo.hash); + var px = letterInfo.x + letterDef.w * _bmfontScale; + var lineIndex = letterInfo.line; + if (_labelWidth > 0) if (_isWrapText) { + var wordWidth = _linesWidth[lineIndex]; + if (wordWidth > _contentSize.width && (px > _contentSize.width || px < 0)) { + letterClamp = true; + break; + } + } else if (px > _contentSize.width) { + letterClamp = true; + break; + } + } + } + return letterClamp; + }; + _proto._isHorizontalClamped = function _isHorizontalClamped(px, lineIndex) { + var wordWidth = _linesWidth[lineIndex]; + var letterOverClamp = px > _contentSize.width || px < 0; + return _isWrapText ? wordWidth > _contentSize.width && letterOverClamp : letterOverClamp; + }; + _proto._updateQuads = function _updateQuads() { + var texture = _spriteFrame ? _spriteFrame._texture : shareLabelInfo.fontAtlas.getTexture(); + var node = _comp.node; + this.verticesCount = this.indicesCount = 0; + this._renderData && (this._renderData.dataLength = 0); + var contentSize = _contentSize, appx = node._anchorPoint.x * contentSize.width, appy = node._anchorPoint.y * contentSize.height; + var ret = true; + for (var ctr = 0, l = _string.length; ctr < l; ++ctr) { + var letterInfo = _lettersInfo[ctr]; + if (!letterInfo.valid) continue; + var letterDef = shareLabelInfo.fontAtlas.getLetter(letterInfo.hash); + _tmpRect.height = letterDef.h; + _tmpRect.width = letterDef.w; + _tmpRect.x = letterDef.u; + _tmpRect.y = letterDef.v; + var py = letterInfo.y + _letterOffsetY; + if (_labelHeight > 0) { + if (py > _tailoredTopY) { + var clipTop = py - _tailoredTopY; + _tmpRect.y += clipTop; + _tmpRect.height -= clipTop; + py -= clipTop; + } + py - letterDef.h * _bmfontScale < _tailoredBottomY && _overflow === Overflow.CLAMP && (_tmpRect.height = py < _tailoredBottomY ? 0 : (py - _tailoredBottomY) / _bmfontScale); + } + var lineIndex = letterInfo.line; + var px = letterInfo.x + letterDef.w / 2 * _bmfontScale + _linesOffsetX[lineIndex]; + if (_labelWidth > 0 && this._isHorizontalClamped(px, lineIndex)) if (_overflow === Overflow.CLAMP) _tmpRect.width = 0; else if (_overflow === Overflow.SHRINK) { + if (_contentSize.width > letterDef.w) { + ret = false; + break; + } + _tmpRect.width = 0; + } + if (_tmpRect.height > 0 && _tmpRect.width > 0) { + var isRotated = this._determineRect(_tmpRect); + var letterPositionX = letterInfo.x + _linesOffsetX[letterInfo.line]; + this.appendQuad(_comp, texture, _tmpRect, isRotated, letterPositionX - appx, py - appy, _bmfontScale, letterDef); + } + } + this._quadsUpdated(_comp); + return ret; + }; + _proto._determineRect = function _determineRect(tempRect) { + var isRotated = _spriteFrame.isRotated(); + var originalSize = _spriteFrame._originalSize; + var rect = _spriteFrame._rect; + var offset = _spriteFrame._offset; + var trimmedLeft = offset.x + (originalSize.width - rect.width) / 2; + var trimmedTop = offset.y - (originalSize.height - rect.height) / 2; + if (isRotated) { + var originalX = tempRect.x; + tempRect.x = rect.x + rect.height - tempRect.y - tempRect.height - trimmedTop; + tempRect.y = originalX + rect.y - trimmedLeft; + tempRect.y < 0 && (tempRect.height = tempRect.height + trimmedTop); + } else { + tempRect.x += rect.x - trimmedLeft; + tempRect.y += rect.y + trimmedTop; + } + return isRotated; + }; + _proto._computeAlignmentOffset = function _computeAlignmentOffset() { + _linesOffsetX.length = 0; + switch (_hAlign) { + case macro.TextAlignment.LEFT: + for (var i = 0; i < _numberOfLines; ++i) _linesOffsetX.push(0); + break; + + case macro.TextAlignment.CENTER: + for (var _i = 0, l = _linesWidth.length; _i < l; _i++) _linesOffsetX.push((_contentSize.width - _linesWidth[_i]) / 2); + break; + + case macro.TextAlignment.RIGHT: + for (var _i2 = 0, _l = _linesWidth.length; _i2 < _l; _i2++) _linesOffsetX.push(_contentSize.width - _linesWidth[_i2]); + } + _letterOffsetY = _contentSize.height; + if (_vAlign !== macro.VerticalTextAlignment.TOP) { + var blank = _contentSize.height - _textDesiredHeight + _lineHeight * this._getFontScale() - _originFontSize * _bmfontScale; + _vAlign === macro.VerticalTextAlignment.BOTTOM ? _letterOffsetY -= blank : _letterOffsetY -= blank / 2; + } + }; + _proto._setupBMFontOverflowMetrics = function _setupBMFontOverflowMetrics() { + var newWidth = _contentSize.width, newHeight = _contentSize.height; + _overflow === Overflow.RESIZE_HEIGHT && (newHeight = 0); + if (_overflow === Overflow.NONE) { + newWidth = 0; + newHeight = 0; + } + _labelWidth = newWidth; + _labelHeight = newHeight; + _maxLineWidth = newWidth; + }; + _proto.updateWorldVerts = function updateWorldVerts() {}; + _proto.appendQuad = function appendQuad(comp, texture, rect, rotated, x, y, scale, letter) {}; + _proto._quadsUpdated = function _quadsUpdated(comp) {}; + _proto._reserveQuads = function _reserveQuads() {}; + _proto._finishMultilineTextWrap = function _finishMultilineTextWrap() {}; + return BmfontAssembler; + })(_assembler2d["default"]); + exports["default"] = BmfontAssembler; + module.exports = exports["default"]; + }), { + "../../../components/CCLabel": 93, + "../../../platform/CCMacro": 126, + "../../../utils/text-utils": 212, + "../../assembler-2d": 147, + "../utils": 160 + } ], + 157: [ (function(require, module, exports) { + "use strict"; + function LabelFrame() { + this._rect = null; + this.uv = []; + this._texture = null; + this._original = null; + } + LabelFrame.prototype = { + constructor: LabelFrame, + getRect: function getRect() { + return cc.rect(this._rect); + }, + setRect: function setRect(rect) { + this._rect = rect; + this._texture && this._calculateUV(); + }, + _setDynamicAtlasFrame: function _setDynamicAtlasFrame(frame) { + if (!frame) return; + this._original = { + _texture: this._texture, + _x: this._rect.x, + _y: this._rect.y + }; + this._texture = frame.texture; + this._rect.x = frame.x; + this._rect.y = frame.y; + this._calculateUV(); + }, + _resetDynamicAtlasFrame: function _resetDynamicAtlasFrame() { + if (!this._original) return; + this._rect.x = this._original._x; + this._rect.y = this._original._y; + this._texture = this._original._texture; + this._original = null; + this._calculateUV(); + }, + _refreshTexture: function _refreshTexture(texture) { + this._texture = texture; + this._rect = cc.rect(0, 0, texture.width, texture.height); + this._calculateUV(); + }, + _calculateUV: function _calculateUV() { + var rect = this._rect, texture = this._texture, uv = this.uv, texw = texture.width, texh = texture.height; + var l = 0 === texw ? 0 : rect.x / texw; + var r = 0 === texw ? 0 : (rect.x + rect.width) / texw; + var b = 0 === texh ? 0 : (rect.y + rect.height) / texh; + var t = 0 === texh ? 0 : rect.y / texh; + uv[0] = l; + uv[1] = b; + uv[2] = r; + uv[3] = b; + uv[4] = l; + uv[5] = t; + uv[6] = r; + uv[7] = t; + } + }; + module.exports = LabelFrame; + }), {} ], + 158: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _bmfont = _interopRequireDefault(require("../../webgl/assemblers/label/2d/bmfont")); + var _vertexFormat = require("../../webgl/vertex-format"); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + function _createForOfIteratorHelperLoose(o, allowArrayLike) { + var it = "undefined" !== typeof Symbol && o[Symbol.iterator] || o["@@iterator"]; + if (it) return (it = it.call(o)).next.bind(it); + if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && "number" === typeof o.length) { + it && (o = it); + var i = 0; + return function() { + if (i >= o.length) return { + done: true + }; + return { + done: false, + value: o[i++] + }; + }; + } + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ("string" === typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + "Object" === n && o.constructor && (n = o.constructor.name); + if ("Map" === n || "Set" === n) return Array.from(o); + if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var Label = require("../../../components/CCLabel"); + var LabelOutline = require("../../../components/CCLabelOutline"); + var textUtils = require("../../../utils/text-utils"); + var Component = require("../../../components/CCComponent"); + var RenderTexture = require("../../../assets/CCRenderTexture"); + var OUTLINE_SUPPORTED = cc.js.isChildClassOf(LabelOutline, Component); + var getFontFamily = require("../utils").getFontFamily; + var shareLabelInfo = require("../utils").shareLabelInfo; + var FontLetterDefinition = cc.BitmapFont.FontLetterDefinition; + var FontAtlas = cc.BitmapFont.FontAtlas; + var WHITE = cc.Color.WHITE; + var space = 0; + var bleed = 2; + var _invisibleAlpha = (1 / 255).toFixed(3); + function LetterTexture(_char, labelInfo) { + this._texture = null; + this._labelInfo = labelInfo; + this._char = _char; + this._hash = null; + this._data = null; + this._canvas = null; + this._context = null; + this._width = 0; + this._height = 0; + this._offsetY = 0; + this._hash = _char.charCodeAt(0) + labelInfo.hash; + } + LetterTexture.prototype = { + constructor: LetterTexture, + updateRenderData: function updateRenderData() { + this._updateProperties(); + this._updateTexture(); + }, + _updateProperties: function _updateProperties() { + this._texture = new cc.Texture2D(); + this._data = Label._canvasPool.get(); + this._canvas = this._data.canvas; + this._context = this._data.context; + this._context.font = this._labelInfo.fontDesc; + var width = textUtils.safeMeasureText(this._context, this._char, this._labelInfo.fontDesc); + var blank = 2 * this._labelInfo.margin + bleed; + this._width = parseFloat(width.toFixed(2)) + blank; + this._height = (1 + textUtils.BASELINE_RATIO) * this._labelInfo.fontSize + blank; + this._offsetY = -this._labelInfo.fontSize * textUtils.BASELINE_RATIO / 2; + this._canvas.width !== this._width && (this._canvas.width = this._width); + this._canvas.height !== this._height && (this._canvas.height = this._height); + this._texture.initWithElement(this._canvas); + }, + _updateTexture: function _updateTexture() { + var context = this._context; + var labelInfo = this._labelInfo, width = this._canvas.width, height = this._canvas.height; + var fontSize = this._labelInfo.fontSize; + var startX = width / 2; + var startY = height / 2 + fontSize * textUtils.MIDDLE_RATIO + fontSize * textUtils.BASELINE_OFFSET; + var color = labelInfo.color; + context.lineJoin = "round"; + context.textAlign = "center"; + context.clearRect(0, 0, width, height); + context.fillStyle = "rgba(" + color.r + ", " + color.g + ", " + color.b + ", " + _invisibleAlpha + ")"; + context.fillRect(0, 0, width, height); + context.font = labelInfo.fontDesc; + context.fillStyle = "rgba(" + color.r + ", " + color.g + ", " + color.b + ", 1)"; + if (labelInfo.isOutlined && labelInfo.margin > 0) { + var strokeColor = labelInfo.out || WHITE; + context.strokeStyle = "rgba(" + strokeColor.r + ", " + strokeColor.g + ", " + strokeColor.b + ", " + strokeColor.a / 255 + ")"; + context.lineWidth = 2 * labelInfo.margin; + context.strokeText(this._char, startX, startY); + } + context.fillText(this._char, startX, startY); + this._texture.handleLoadedTexture(); + }, + destroy: function destroy() { + this._texture.destroy(); + this._texture = null; + Label._canvasPool.put(this._data); + } + }; + function LetterAtlas(atlases, width, height) { + var texture = new RenderTexture(); + texture.initWithSize(width, height); + texture.update(); + this._atlases = atlases; + this._texture = texture; + this._id = 0; + this._tmpId = -1; + this._x = space; + this._y = space; + this._nexty = space; + this.frees = []; + this.waitCleans = []; + this._width = width; + this._height = height; + } + cc.js.mixin(LetterAtlas.prototype, { + insertLetterTexture: function insertLetterTexture(letterTexture) { + var texture = letterTexture._texture; + var width = texture.width, height = texture.height; + if (this.frees.length > 0) { + var score = Number.MAX_VALUE; + var areaFit = 0; + var original = null; + var originalIndex = 0; + for (var i = 0; i < this.frees.length; i++) { + var freeLetter = this.frees[i]; + if (freeLetter._width >= width && freeLetter._height >= height) { + areaFit = freeLetter._width * freeLetter._height - width * height; + if (areaFit < score) { + original = freeLetter; + originalIndex = i; + score = areaFit; + } + } + } + if (original) { + original._hash = letterTexture._hash; + original.w = letterTexture._width - bleed; + original.h = letterTexture._height - bleed; + original.xAdvance = original.w; + original.offsetY = letterTexture._offsetY; + this._texture.drawTextureAt(texture, original.u - bleed / 2, original.v - bleed / 2); + this._dirty = true; + this.removeFreeLetter(originalIndex); + this._atlases._fontDefDictionary.addLetterDefinitions(letterTexture._hash, original); + return original; + } + } + width <= .75 * height ? width = .75 * height : width <= height && (width = height); + var oldx = this._x, oldy = this._y, oldnexty = this._nexty; + if (this._x + width + space > this._width) { + this._x = space; + this._y = this._nexty; + } + this._y + height > this._nexty && (this._nexty = this._y + height + space); + if (this._nexty > this._height) { + this._x = oldx; + this._y = oldy; + this._nexty = oldnexty; + if (this.waitCleans.length > 0) { + for (var _iterator = _createForOfIteratorHelperLoose(this.waitCleans), _step; !(_step = _iterator()).done; ) { + var _letter = _step.value; + _letter._inCleans = false; + if (0 === _letter.ref) { + delete this._atlases._fontDefDictionary._letterDefinitions[_letter._hash]; + this.frees.push(_letter); + } + } + this.waitCleans.length = 0; + return this.insertLetterTexture(letterTexture); + } + return null; + } + this._texture.drawTextureAt(texture, this._x, this._y); + this._dirty = true; + var letter = new FontLetterDefinition(); + letter.u = this._x + bleed / 2; + letter.v = this._y + bleed / 2; + letter.texture = this._texture; + letter.atlas = this; + letter.ref = 0; + letter.valid = true; + letter.w = letterTexture._width - bleed; + letter.h = letterTexture._height - bleed; + letter._inCleans = false; + letter._hash = letterTexture._hash; + letter._width = width; + letter._height = height; + letter.xAdvance = letter.w; + letter.offsetY = letterTexture._offsetY; + this._x += width + space; + this._atlases._fontDefDictionary.addLetterDefinitions(letterTexture._hash, letter); + return letter; + }, + pushFreeLetter: function pushFreeLetter(letter) { + var i = this.frees.push(letter) - 1; + }, + removeFreeLetter: function removeFreeLetter(index) { + var temp = this.frees[index]; + var temp2 = this.frees[this.frees.length - 1]; + this.frees[index] = temp2; + this.frees.pop(); + }, + update: function update() { + if (!this._dirty) return; + this._texture.update(); + this._dirty = false; + }, + reset: function reset() { + this._x = space; + this._y = space; + this._nexty = space; + var defs = this._atlases._fontDefDictionary._letterDefinitions; + for (var key in defs) { + var def = defs[key]; + def.atlas === this && delete defs[key]; + } + this.frees.length = 0; + this.waitCleans.length = 0; + }, + destroy: function destroy() { + this.reset(); + var handler = this._atlases.material.getMultiHandler(); + handler.removeTexture(this._texture); + this._texture.destroy(); + this._texture = null; + } + }); + var LetterAtlases = (function() { + function LetterAtlases() { + this.atlases = []; + this.material = null; + this.fakeMaterial = { + material: null + }; + this._fontDefDictionary = new FontAtlas(null); + var handler = new cc.sp.MultiHandler(); + this.material = handler.material; + this.fakeMaterial.material = this.material; + cc.director.on(cc.Director.EVENT_BEFORE_SCENE_LAUNCH, this.beforeSceneLoad, this); + } + var _proto = LetterAtlases.prototype; + _proto.insertLetterTexture = function insertLetterTexture(letterTexture) { + for (var _iterator2 = _createForOfIteratorHelperLoose(this.atlases), _step2; !(_step2 = _iterator2()).done; ) { + var _atlas = _step2.value; + var letter = _atlas.insertLetterTexture(letterTexture); + if (letter) return letter; + } + if (this.atlases.length >= 8) return null; + var atlas = new LetterAtlas(this, _atlasWidth, _atlasHeight); + var len = this.atlases.push(atlas); + atlas._id = len - 1; + var handler = this.material.getMultiHandler(); + handler.setTexture(atlas._id, atlas._texture); + (true, cc.sp.charAtlasAutoBatchCount >= len) && cc.sp.multiBatcher.requsetMaterial(atlas._texture); + return atlas.insertLetterTexture(letterTexture); + }; + _proto.deleteLetter = function deleteLetter(letter) { + letter.ref--; + if (0 === letter.ref && !letter._inCleans) { + letter._inCleans = true; + letter.atlas.waitCleans.push(letter); + } + }; + _proto.update = function update() { + for (var _iterator3 = _createForOfIteratorHelperLoose(this.atlases), _step3; !(_step3 = _iterator3()).done; ) { + var atlas = _step3.value; + atlas.update(); + } + }; + _proto.reset = function reset() { + this._fontDefDictionary.clear(); + for (var _iterator4 = _createForOfIteratorHelperLoose(this.atlases), _step4; !(_step4 = _iterator4()).done; ) { + var atlas = _step4.value; + atlas.reset(); + } + }; + _proto.destroy = function destroy() { + this._fontDefDictionary.clear(); + for (var _iterator5 = _createForOfIteratorHelperLoose(this.atlases), _step5; !(_step5 = _iterator5()).done; ) { + var atlas = _step5.value; + atlas.destroy(); + } + this.atlases.length = 0; + }; + _proto.beforeSceneLoad = function beforeSceneLoad() { + cc.sp.charAtlasAutoResetBeforeSceneLoad && this.clearAllCache(); + }; + _proto.clearAllCache = function clearAllCache() { + this.reset(); + }; + _proto.getTexture = function getTexture() { + if (!_emptyTexture) { + _emptyTexture = new RenderTexture(); + _emptyTexture.initWithSize(_atlasWidth, _atlasHeight); + _emptyTexture.update(); + } + return _emptyTexture; + }; + _proto.getLetter = function getLetter(key) { + return this._fontDefDictionary._letterDefinitions[key]; + }; + _proto.getLetterDefinitionForChar = function getLetterDefinitionForChar(_char2, labelInfo) { + var hash = _char2.charCodeAt(0) + labelInfo.hash; + var letter = this._fontDefDictionary._letterDefinitions[hash]; + if (!letter) { + var temp = new LetterTexture(_char2, labelInfo); + temp.updateRenderData(); + letter = this.insertLetterTexture(temp); + temp.destroy(); + } + if (letter && _firstTraverse) { + letter.ref++; + _assembler._letterRefs.push(letter); + this.checkMaterialAndUpdateTexId(letter); + } + return letter; + }; + _proto.checkMaterialAndUpdateTexId = function checkMaterialAndUpdateTexId(letter) { + var atlas = letter.atlas; + var comp = _assembler._renderComp; + if (_needCheckMaterial) { + _needCheckMaterial = false; + if (_usedMaterial.material !== _shareAtlas.material) { + _assembler.checkAndSwitchMaterial(comp, atlas._texture, _usedMaterial); + _usedMaterial = comp._materials[0]; + } + } + if (_usedMaterial.material !== _shareAtlas.material && -1 === atlas._tmpId) { + var handler = _usedMaterial.material.getMultiHandler(); + if (handler) { + var index = handler.getIndex(atlas._texture.getImpl()); + if (-1 !== index) { + atlas._tmpId = index; + return; + } + } + comp.setMaterial(0, _shareAtlas.material); + _usedMaterial = _shareAtlas.fakeMaterial; + } + }; + return LetterAtlases; + })(); + function computeHash(labelInfo) { + var hashData = "|"; + var color = labelInfo.color.toHEX(); + var out = ""; + labelInfo.isOutlined && labelInfo.margin > 0 && (out = out + labelInfo.margin + labelInfo.out.toHEX()); + return hashData + labelInfo.fontSize + labelInfo.fontFamily + color + out; + } + var _shareAtlas = null; + var _atlasWidth = 2048; + var _atlasHeight = 2048; + var _isBold = false; + var _usedMaterial = null; + var _needCheckMaterial = false; + var _firstTraverse = false; + var _assembler = null; + var _emptyTexture = null; + var LetterFontAssembler = (function(_WebglBmfontAssembler) { + _inheritsLoose(LetterFontAssembler, _WebglBmfontAssembler); + function LetterFontAssembler() { + var _this; + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; + _this = _WebglBmfontAssembler.call.apply(_WebglBmfontAssembler, [ this ].concat(args)) || this; + _this._letterRefs = []; + return _this; + } + var _proto2 = LetterFontAssembler.prototype; + _proto2.initData = function initData() { + var data = this._renderData; + data.createFlexData(0, this.verticesCount, this.indicesCount, this.getVfmt()); + }; + _proto2.getVfmt = function getVfmt() { + return _vertexFormat.vfmtPosUvColorTexId; + }; + _proto2.getBuffer = function getBuffer() { + return cc.renderer._handle.getBuffer("mesh", this.getVfmt()); + }; + _proto2._getAssemblerData = function _getAssemblerData() { + if (!_shareAtlas) { + _shareAtlas = new LetterAtlases(); + cc.Label._shareAtlas = _shareAtlas; + } + return _shareAtlas.getTexture(); + }; + _proto2._updateFontFamily = function _updateFontFamily(comp) { + shareLabelInfo.fontAtlas = _shareAtlas; + shareLabelInfo.fontFamily = getFontFamily(comp); + var outline = OUTLINE_SUPPORTED && comp.getComponent(LabelOutline); + if (outline && outline.enabled) { + shareLabelInfo.isOutlined = true; + shareLabelInfo.margin = outline.width; + shareLabelInfo.out = outline.color.clone(); + shareLabelInfo.out.a = outline.color.a * comp.node.color.a / 255; + } else { + shareLabelInfo.isOutlined = false; + shareLabelInfo.margin = 0; + } + }; + _proto2._updateLabelInfo = function _updateLabelInfo(comp) { + shareLabelInfo.fontDesc = this._getFontDesc(); + shareLabelInfo.color = comp.node.color; + shareLabelInfo.hash = computeHash(shareLabelInfo); + }; + _proto2._getFontDesc = function _getFontDesc() { + var fontDesc = shareLabelInfo.fontSize.toString() + "px "; + fontDesc += shareLabelInfo.fontFamily; + _isBold && (fontDesc = "bold " + fontDesc); + return fontDesc; + }; + _proto2._computeHorizontalKerningForText = function _computeHorizontalKerningForText() {}; + _proto2._determineRect = function _determineRect(tempRect) { + return false; + }; + _proto2._updateRenderData = function _updateRenderData(comp) { + _assembler = this; + _usedMaterial = _assembler._renderComp._materials[0]; + _needCheckMaterial = true; + _firstTraverse = true; + for (var _iterator6 = _createForOfIteratorHelperLoose(_shareAtlas.atlases), _step6; !(_step6 = _iterator6()).done; ) { + var atlas = _step6.value; + atlas._tmpId = -1; + } + this._recycleLetterRef(); + _WebglBmfontAssembler.prototype._updateRenderData.call(this, comp); + _usedMaterial = null; + _assembler = null; + }; + _proto2._finishMultilineTextWrap = function _finishMultilineTextWrap() { + _firstTraverse = false; + }; + _proto2._recycleLetterRef = function _recycleLetterRef() { + for (var _iterator7 = _createForOfIteratorHelperLoose(this._letterRefs), _step7; !(_step7 = _iterator7()).done; ) { + var letter = _step7.value; + _shareAtlas.deleteLetter(letter); + } + this._letterRefs.length = 0; + }; + _proto2._resetAssemblerData = function _resetAssemblerData(assemblerData) { + 0 !== this._letterRefs.length && this._recycleLetterRef(); + }; + _proto2.appendVerts = function appendVerts(comp, offset, l, r, b, t, letter) { + _WebglBmfontAssembler.prototype.appendVerts.call(this, comp, offset, l, r, b, t, letter); + var renderData = this._renderData; + var verts = renderData.vDatas[0]; + var floatsPerVert = this.floatsPerVert; + var texIdOffset = offset + this.texIdOffset; + var id = _usedMaterial.material !== _shareAtlas.material ? letter.atlas._tmpId : letter.atlas._id; + verts[texIdOffset] = id; + texIdOffset += floatsPerVert; + verts[texIdOffset] = id; + texIdOffset += floatsPerVert; + verts[texIdOffset] = id; + texIdOffset += floatsPerVert; + verts[texIdOffset] = id; + }; + return LetterFontAssembler; + })(_bmfont["default"]); + exports["default"] = LetterFontAssembler; + LetterFontAssembler.prototype.floatsPerVert = 6; + LetterFontAssembler.prototype.texIdOffset = 5; + LetterFontAssembler.prototype.isMulti = true; + module.exports = exports["default"]; + }), { + "../../../assets/CCRenderTexture": 65, + "../../../components/CCComponent": 91, + "../../../components/CCLabel": 93, + "../../../components/CCLabelOutline": 94, + "../../../utils/text-utils": 212, + "../../webgl/assemblers/label/2d/bmfont": 164, + "../../webgl/vertex-format": 190, + "../utils": 160 + } ], + 159: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _assembler2d = _interopRequireDefault(require("../../assembler-2d")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var textUtils = require("../../../utils/text-utils"); + var macro = require("../../../platform/CCMacro"); + var Label = require("../../../components/CCLabel"); + var LabelOutline = require("../../../components/CCLabelOutline"); + var LabelShadow = require("../../../components/CCLabelShadow"); + var Overflow = Label.Overflow; + var deleteFromDynamicAtlas = require("../utils").deleteFromDynamicAtlas; + var getFontFamily = require("../utils").getFontFamily; + var MAX_SIZE = 2048; + var _invisibleAlpha = (1 / 255).toFixed(3); + var _context = null; + var _canvas = null; + var _texture = null; + var _fontDesc = ""; + var _string = ""; + var _fontSize = 0; + var _drawFontSize = 0; + var _splitedStrings = []; + var _canvasSize = cc.Size.ZERO; + var _lineHeight = 0; + var _hAlign = 0; + var _vAlign = 0; + var _color = null; + var _fontFamily = ""; + var _overflow = Overflow.NONE; + var _isWrapText = false; + var _premultiply = false; + var _isRetina = false; + var _retinaScale = 1; + var _outlineComp = null; + var _outlineColor = cc.Color.WHITE; + var _shadowComp = null; + var _shadowColor = cc.Color.BLACK; + var _canvasPadding = cc.rect(); + var _contentSizeExtend = cc.Size.ZERO; + var _nodeContentSize = cc.Size.ZERO; + var _enableBold = false; + var _enableItalic = false; + var _enableUnderline = false; + var _underlineThickness = 0; + var _drawUnderlinePos = cc.Vec2.ZERO; + var _drawUnderlineWidth = 0; + var _sharedLabelData; + var Alignment = [ "left", "center", "right" ]; + var TTFAssembler = (function(_Assembler2D) { + _inheritsLoose(TTFAssembler, _Assembler2D); + function TTFAssembler() { + return _Assembler2D.apply(this, arguments) || this; + } + var _proto = TTFAssembler.prototype; + _proto._getAssemblerData = function _getAssemblerData() { + _sharedLabelData = Label._canvasPool.get(); + _sharedLabelData.canvas.width = _sharedLabelData.canvas.height = 1; + return _sharedLabelData; + }; + _proto._resetAssemblerData = function _resetAssemblerData(assemblerData) { + assemblerData && Label._canvasPool.put(assemblerData); + }; + _proto.updateRenderData = function updateRenderData(comp) { + _Assembler2D.prototype.updateRenderData.call(this, comp); + if (!comp._vertsDirty) return; + this._updateProperties(comp); + this._calculateLabelFont(); + this._updateLabelDimensions(); + this._updateTexture(comp); + var assemblerChanged = this._calDynamicAtlas(comp); + assemblerChanged || this._updateRenderData(comp); + }; + _proto._updateRenderData = function _updateRenderData(comp) { + if (_isRetina) { + _fontSize /= _retinaScale; + _nodeContentSize.width /= _retinaScale; + _nodeContentSize.height /= _retinaScale; + } + comp._actualFontSize = _fontSize; + comp.node.setContentSize(_nodeContentSize); + this.updateVerts(comp); + comp._vertsDirty = false; + _context = null; + _canvas = null; + _texture = null; + }; + _proto.getTTFTextureSizeScale = function getTTFTextureSizeScale() { + return _isRetina ? _retinaScale : 1; + }; + _proto.updateVerts = function updateVerts() {}; + _proto._updatePaddingRect = function _updatePaddingRect() { + var top = 0, bottom = 0, left = 0, right = 0; + var outlineWidth = 0; + _contentSizeExtend.width = _contentSizeExtend.height = 0; + if (_outlineComp) { + outlineWidth = _outlineComp.width; + _isRetina && (outlineWidth *= _retinaScale); + top = bottom = left = right = outlineWidth; + _contentSizeExtend.width = _contentSizeExtend.height = 2 * outlineWidth; + } + if (_shadowComp) { + var shadowWidth = _shadowComp.blur + outlineWidth; + left = Math.max(left, -_shadowComp._offset.x + shadowWidth); + right = Math.max(right, _shadowComp._offset.x + shadowWidth); + top = Math.max(top, _shadowComp._offset.y + shadowWidth); + bottom = Math.max(bottom, -_shadowComp._offset.y + shadowWidth); + } + if (_enableItalic) { + var offset = _drawFontSize * Math.tan(.20943951); + right += offset; + _contentSizeExtend.width += offset; + } + _canvasPadding.x = left; + _canvasPadding.y = top; + _canvasPadding.width = left + right; + _canvasPadding.height = top + bottom; + }; + _proto._updateProperties = function _updateProperties(comp) { + var assemblerData = comp._assemblerData; + _context = assemblerData.context; + _canvas = assemblerData.canvas; + _texture = comp._frame._original ? comp._frame._original._texture : comp._frame._texture; + _isRetina = cc.sp.enableLabelRetina && 0 === comp.enableRetina || 1 === comp.enableRetina; + _retinaScale = cc.sp.labelRetinaScale; + _string = comp.string.toString(); + _fontSize = comp._fontSize; + _nodeContentSize = comp.node.getContentSize(); + _lineHeight = comp._lineHeight; + _drawFontSize = _fontSize; + _underlineThickness = comp.underlineHeight || _drawFontSize / 8; + if (_isRetina) { + _fontSize *= _retinaScale; + _nodeContentSize.width *= _retinaScale; + _nodeContentSize.height *= _retinaScale; + _lineHeight *= _retinaScale; + comp.underlineHeight && (_underlineThickness *= _retinaScale); + _drawFontSize = _fontSize; + } + _overflow = comp.overflow; + _canvasSize.width = _nodeContentSize.width; + _canvasSize.height = _nodeContentSize.height; + _hAlign = comp.horizontalAlign; + _vAlign = comp.verticalAlign; + _color = comp.node.color; + _enableBold = comp.enableBold; + _enableItalic = comp.enableItalic; + _enableUnderline = comp.enableUnderline; + _fontFamily = getFontFamily(comp); + _premultiply = comp.srcBlendFactor === cc.macro.BlendFactor.ONE; + false; + _isWrapText = _overflow !== Overflow.NONE && (_overflow === Overflow.RESIZE_HEIGHT || comp.enableWrapText); + _outlineComp = LabelOutline && comp.getComponent(LabelOutline); + _outlineComp = _outlineComp && _outlineComp.enabled && _outlineComp.width > 0 ? _outlineComp : null; + _outlineComp && _outlineColor.set(_outlineComp.color); + _shadowComp = LabelShadow && comp.getComponent(LabelShadow); + _shadowComp = _shadowComp && _shadowComp.enabled ? _shadowComp : null; + if (_shadowComp) { + _shadowColor.set(_shadowComp.color); + _shadowColor.a = _shadowColor.a * comp.node.color.a / 255; + } + this._updatePaddingRect(); + }; + _proto._calculateFillTextStartPosition = function _calculateFillTextStartPosition() { + var labelX = 0; + _hAlign === macro.TextAlignment.RIGHT ? labelX = _canvasSize.width - _canvasPadding.width : _hAlign === macro.TextAlignment.CENTER && (labelX = (_canvasSize.width - _canvasPadding.width) / 2); + var lineHeight = this._getLineHeight(); + var drawStartY = lineHeight * (_splitedStrings.length - 1); + var firstLinelabelY = _fontSize * (1 - textUtils.BASELINE_RATIO / 2); + if (_vAlign !== macro.VerticalTextAlignment.TOP) { + var blank = drawStartY + _canvasPadding.height + _fontSize - _canvasSize.height; + if (_vAlign === macro.VerticalTextAlignment.BOTTOM) { + blank += textUtils.BASELINE_RATIO / 2 * _fontSize; + firstLinelabelY -= blank; + } else firstLinelabelY -= blank / 2; + } + firstLinelabelY += textUtils.BASELINE_OFFSET * _fontSize; + return cc.v2(labelX + _canvasPadding.x, firstLinelabelY + _canvasPadding.y); + }; + _proto._setupOutline = function _setupOutline() { + _context.strokeStyle = "rgba(" + _outlineColor.r + ", " + _outlineColor.g + ", " + _outlineColor.b + ", " + _outlineColor.a / 255 + ")"; + _context.lineWidth = 2 * _outlineComp.width * (_isRetina ? _retinaScale : 1); + }; + _proto._setupShadow = function _setupShadow() { + _context.shadowColor = "rgba(" + _shadowColor.r + ", " + _shadowColor.g + ", " + _shadowColor.b + ", " + _shadowColor.a / 255 + ")"; + _context.shadowBlur = _shadowComp.blur * (_isRetina ? _retinaScale : 1); + _context.shadowOffsetX = _shadowComp.offset.x * (_isRetina ? _retinaScale : 1); + _context.shadowOffsetY = -_shadowComp.offset.y * (_isRetina ? _retinaScale : 1); + }; + _proto._drawTextEffect = function _drawTextEffect(startPosition, lineHeight) { + if (!_shadowComp && !_outlineComp && !_enableUnderline) return; + var isMultiple = _splitedStrings.length > 1 && _shadowComp; + var measureText = this._measureText(_context, _fontDesc); + var drawTextPosX = 0, drawTextPosY = 0; + _shadowComp && this._setupShadow(); + _outlineComp && this._setupOutline(); + for (var i = 0; i < _splitedStrings.length; ++i) { + drawTextPosX = startPosition.x; + drawTextPosY = startPosition.y + i * lineHeight; + if (isMultiple) { + _outlineComp && _context.strokeText(_splitedStrings[i], drawTextPosX, drawTextPosY); + _context.fillText(_splitedStrings[i], drawTextPosX, drawTextPosY); + } + if (_enableUnderline) { + _drawUnderlineWidth = measureText(_splitedStrings[i]); + _hAlign === macro.TextAlignment.RIGHT ? _drawUnderlinePos.x = startPosition.x - _drawUnderlineWidth : _hAlign === macro.TextAlignment.CENTER ? _drawUnderlinePos.x = startPosition.x - _drawUnderlineWidth / 2 : _drawUnderlinePos.x = startPosition.x; + _drawUnderlinePos.y = drawTextPosY + _drawFontSize / 8; + _context.fillRect(_drawUnderlinePos.x, _drawUnderlinePos.y, _drawUnderlineWidth, _underlineThickness); + } + } + isMultiple && (_context.shadowColor = "transparent"); + }; + _proto._updateTexture = function _updateTexture() { + _context.clearRect(0, 0, _canvas.width, _canvas.height); + _context.lineJoin = "round"; + if (_premultiply) _context.fillStyle = "rgba(" + _color.r + ", " + _color.g + ", " + _color.b + ", " + _color.a / 255 + ")"; else { + var _fillColor = _outlineComp ? _outlineColor : _color; + _context.fillStyle = "rgba(" + _fillColor.r + ", " + _fillColor.g + ", " + _fillColor.b + ", " + _invisibleAlpha + ")"; + _context.fillRect(0, 0, _canvas.width, _canvas.height); + _context.fillStyle = "rgba(" + _color.r + ", " + _color.g + ", " + _color.b + ", 1)"; + } + var startPosition = this._calculateFillTextStartPosition(); + var lineHeight = this._getLineHeight(); + var drawTextPosX = startPosition.x, drawTextPosY = 0; + this._drawTextEffect(startPosition, lineHeight); + for (var i = 0; i < _splitedStrings.length; ++i) { + drawTextPosY = startPosition.y + i * lineHeight; + _outlineComp && _context.strokeText(_splitedStrings[i], drawTextPosX, drawTextPosY); + _context.fillText(_splitedStrings[i], drawTextPosX, drawTextPosY); + } + _shadowComp && (_context.shadowColor = "transparent"); + _texture.handleLoadedTexture(); + }; + _proto._calDynamicAtlas = function _calDynamicAtlas(comp) { + if (comp.cacheMode !== Label.CacheMode.BITMAP) return false; + var frame = comp._frame; + deleteFromDynamicAtlas(comp, frame); + frame._original || frame.setRect(cc.rect(0, 0, _canvas.width, _canvas.height)); + return this.packDynamicAtlasAndCheckMaterial(comp, frame); + }; + _proto.packDynamicAtlasAndCheckMaterial = function packDynamicAtlasAndCheckMaterial(comp, frame) { + var allowDynamicAtlas = comp.allowDynamicAtlas; + if (cc.sp.allowDynamicAtlas && 0 === allowDynamicAtlas || 1 === allowDynamicAtlas) { + frame._texture._uuid = _fontDesc + _overflow + (_premultiply ? "P" : "NP") + (_enableUnderline ? "UL" : "NUL") + _string; + _outlineComp && (frame._texture._uuid += _outlineComp.color.toHEX() + "," + _outlineComp.width + ","); + _shadowComp && (frame._texture._uuid += _shadowComp.color.toHEX() + _shadowComp.offset.x + "," + _shadowComp.offset.y + "," + _shadowComp.blur); + } + return _Assembler2D.prototype.packDynamicAtlasAndCheckMaterial.call(this, comp, frame); + }; + _proto._updateLabelDimensions = function _updateLabelDimensions() { + _canvasSize.width = Math.min(_canvasSize.width, MAX_SIZE); + _canvasSize.height = Math.min(_canvasSize.height, MAX_SIZE); + var recreate = false; + if (_canvas.width !== _canvasSize.width) { + _canvas.width = _canvasSize.width; + recreate = true; + } + if (_canvas.height !== _canvasSize.height) { + _canvas.height = _canvasSize.height; + recreate = true; + } + recreate && (_context.font = _fontDesc); + _context.textAlign = Alignment[_hAlign]; + }; + _proto._getFontDesc = function _getFontDesc() { + var fontDesc = _fontSize.toString() + "px "; + fontDesc += _fontFamily; + _enableBold && (fontDesc = "bold " + fontDesc); + _enableItalic && (fontDesc = "italic " + fontDesc); + return fontDesc; + }; + _proto._getLineHeight = function _getLineHeight() { + var nodeSpacingY = _lineHeight; + nodeSpacingY = 0 === nodeSpacingY ? _fontSize : nodeSpacingY * _fontSize / _drawFontSize; + return 0 | nodeSpacingY; + }; + _proto._calculateParagraphLength = function _calculateParagraphLength(paragraphedStrings, ctx) { + var paragraphLength = []; + for (var i = 0; i < paragraphedStrings.length; ++i) { + var width = textUtils.safeMeasureText(ctx, paragraphedStrings[i], _fontDesc); + paragraphLength.push(width); + } + return paragraphLength; + }; + _proto._measureText = function _measureText(ctx, fontDesc) { + return function(string) { + return textUtils.safeMeasureText(ctx, string, fontDesc); + }; + }; + _proto._calculateShrinkFont = function _calculateShrinkFont(paragraphedStrings) { + var paragraphLength = this._calculateParagraphLength(paragraphedStrings, _context); + var i = 0; + var totalHeight = 0; + var maxLength = 0; + if (_isWrapText) { + var canvasWidthNoMargin = _nodeContentSize.width; + var canvasHeightNoMargin = _nodeContentSize.height; + if (canvasWidthNoMargin < 0 || canvasHeightNoMargin < 0) return; + totalHeight = canvasHeightNoMargin + 1; + var actualFontSize = _fontSize + 1; + var textFragment = ""; + var left = 0, right = 0 | actualFontSize, mid = 0; + while (left < right) { + mid = left + right + 1 >> 1; + if (mid <= 0) { + cc.logID(4003); + break; + } + _fontSize = mid; + _fontDesc = this._getFontDesc(); + _context.font = _fontDesc; + var lineHeight = this._getLineHeight(); + totalHeight = 0; + for (i = 0; i < paragraphedStrings.length; ++i) { + var allWidth = textUtils.safeMeasureText(_context, paragraphedStrings[i], _fontDesc); + textFragment = textUtils.fragmentText(paragraphedStrings[i], allWidth, canvasWidthNoMargin, this._measureText(_context, _fontDesc)); + totalHeight += textFragment.length * lineHeight; + } + totalHeight > canvasHeightNoMargin ? right = mid - 1 : left = mid; + } + if (0 === left) cc.logID(4003); else { + _fontSize = left; + _fontDesc = this._getFontDesc(); + _context.font = _fontDesc; + } + } else { + totalHeight = paragraphedStrings.length * this._getLineHeight(); + for (i = 0; i < paragraphedStrings.length; ++i) maxLength < paragraphLength[i] && (maxLength = paragraphLength[i]); + var scaleX = (_canvasSize.width - _canvasPadding.width) / maxLength; + var scaleY = _canvasSize.height / totalHeight; + _fontSize = _drawFontSize * Math.min(1, scaleX, scaleY) | 0; + _fontDesc = this._getFontDesc(); + _context.font = _fontDesc; + } + }; + _proto._calculateWrapText = function _calculateWrapText(paragraphedStrings) { + if (!_isWrapText) return; + _splitedStrings = []; + var canvasWidthNoMargin = _nodeContentSize.width; + for (var i = 0; i < paragraphedStrings.length; ++i) { + var allWidth = textUtils.safeMeasureText(_context, paragraphedStrings[i], _fontDesc); + var textFragment = textUtils.fragmentText(paragraphedStrings[i], allWidth, canvasWidthNoMargin, this._measureText(_context, _fontDesc)); + _splitedStrings = _splitedStrings.concat(textFragment); + } + }; + _proto._calculateLabelFont = function _calculateLabelFont() { + var paragraphedStrings = _string.split("\n"); + _splitedStrings = paragraphedStrings; + _fontDesc = this._getFontDesc(); + _context.font = _fontDesc; + switch (_overflow) { + case Overflow.NONE: + var canvasSizeX = 0; + var canvasSizeY = 0; + for (var i = 0; i < paragraphedStrings.length; ++i) { + var paraLength = textUtils.safeMeasureText(_context, paragraphedStrings[i], _fontDesc); + canvasSizeX = canvasSizeX > paraLength ? canvasSizeX : paraLength; + } + canvasSizeY = (_splitedStrings.length + textUtils.BASELINE_RATIO) * this._getLineHeight(); + var rawWidth = parseFloat(canvasSizeX.toFixed(2)); + var rawHeight = parseFloat(canvasSizeY.toFixed(2)); + _canvasSize.width = rawWidth + _canvasPadding.width; + _canvasSize.height = rawHeight + _canvasPadding.height; + _nodeContentSize.width = rawWidth + _contentSizeExtend.width; + _nodeContentSize.height = rawHeight + _contentSizeExtend.height; + break; + + case Overflow.SHRINK: + this._calculateShrinkFont(paragraphedStrings); + this._calculateWrapText(paragraphedStrings); + break; + + case Overflow.CLAMP: + this._calculateWrapText(paragraphedStrings); + break; + + case Overflow.RESIZE_HEIGHT: + this._calculateWrapText(paragraphedStrings); + var _rawHeight = (_splitedStrings.length + textUtils.BASELINE_RATIO) * this._getLineHeight(); + _canvasSize.height = _rawHeight + _canvasPadding.height; + _nodeContentSize.height = _rawHeight + _contentSizeExtend.height; + } + }; + return TTFAssembler; + })(_assembler2d["default"]); + exports["default"] = TTFAssembler; + module.exports = exports["default"]; + }), { + "../../../components/CCLabel": 93, + "../../../components/CCLabelOutline": 94, + "../../../components/CCLabelShadow": 95, + "../../../platform/CCMacro": 126, + "../../../utils/text-utils": 212, + "../../assembler-2d": 147, + "../utils": 160 + } ], + 160: [ (function(require, module, exports) { + "use strict"; + var dynamicAtlasManager = require("./dynamic-atlas/manager"); + var WHITE = cc.Color.WHITE; + var shareLabelInfo = { + fontAtlas: null, + fontSize: 0, + lineHeight: 0, + hAlign: 0, + vAlign: 0, + hash: "", + fontFamily: "", + fontDesc: "Arial", + color: WHITE, + isOutlined: false, + out: WHITE, + margin: 0 + }; + module.exports = { + deleteFromDynamicAtlas: function deleteFromDynamicAtlas(comp, frame) { + if (frame && true && frame._original && dynamicAtlasManager) { + dynamicAtlasManager.deleteAtlasSpriteFrame(frame); + frame._resetDynamicAtlasFrame(); + } + }, + getFontFamily: function getFontFamily(comp) { + if (comp.useSystemFont) return comp.fontFamily || "Arial"; + if (comp.font) { + if (comp.font._nativeAsset) return comp.font._nativeAsset; + cc.assetManager.postLoadNative(comp.font, (function(err) { + comp.isValid && comp.setVertsDirty(); + })); + return "Arial"; + } + return "Arial"; + }, + shareLabelInfo: shareLabelInfo + }; + }), { + "./dynamic-atlas/manager": 154 + } ], + 161: [ (function(require, module, exports) { + "use strict"; + cc.assemblers = {}; + require("./sprite"); + require("./mask-assembler"); + require("./graphics"); + require("./label"); + require("./motion-streak"); + require("./motion-streak-multi"); + }), { + "./graphics": void 0, + "./label": 168, + "./mask-assembler": void 0, + "./motion-streak": 170, + "./motion-streak-multi": 169, + "./sprite": 183 + } ], + 162: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _bmfont = _interopRequireDefault(require("../2d/bmfont")); + var _vertexFormat = require("../../../../webgl/vertex-format"); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var MultiWebglBmfontAssembler = (function(_WebglBmfontAssembler) { + _inheritsLoose(MultiWebglBmfontAssembler, _WebglBmfontAssembler); + function MultiWebglBmfontAssembler() { + return _WebglBmfontAssembler.apply(this, arguments) || this; + } + var _proto = MultiWebglBmfontAssembler.prototype; + _proto.initData = function initData() { + var data = this._renderData; + data.createFlexData(0, this.verticesCount, this.indicesCount, this.getVfmt()); + }; + _proto.getVfmt = function getVfmt() { + return _vertexFormat.vfmtPosUvColorTexId; + }; + _proto.getBuffer = function getBuffer() { + return cc.renderer._handle.getBuffer("mesh", this.getVfmt()); + }; + _proto.updateRenderData = function updateRenderData(comp) { + _WebglBmfontAssembler.prototype.updateRenderData.call(this, comp); + comp._texIdDirty && comp._updateMultiTexId(comp.getMaterial(0), comp._frame._texture); + this.updateTexId(comp); + comp._texIdDirty = false; + }; + _proto.updateRenderDataForSwitchMaterial = function updateRenderDataForSwitchMaterial(comp) { + _WebglBmfontAssembler.prototype._preUpdateRenderData.call(this, comp); + _WebglBmfontAssembler.prototype._updateRenderData.call(this, comp); + comp._texIdDirty && comp._updateMultiTexId(comp.getMaterial(0), comp._frame._texture); + this.updateTexId(comp); + comp._texIdDirty = false; + }; + return MultiWebglBmfontAssembler; + })(_bmfont["default"]); + exports["default"] = MultiWebglBmfontAssembler; + MultiWebglBmfontAssembler.prototype.floatsPerVert = 6; + MultiWebglBmfontAssembler.prototype.texIdOffset = 5; + MultiWebglBmfontAssembler.prototype.isMulti = true; + module.exports = exports["default"]; + }), { + "../../../../webgl/vertex-format": 190, + "../2d/bmfont": 164 + } ], + 163: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _ttf = _interopRequireDefault(require("../2d/ttf")); + var _vertexFormat = require("../../../../webgl/vertex-format"); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var MultiWebglTTFAssembler = (function(_WebglTTFAssembler) { + _inheritsLoose(MultiWebglTTFAssembler, _WebglTTFAssembler); + function MultiWebglTTFAssembler() { + return _WebglTTFAssembler.apply(this, arguments) || this; + } + var _proto = MultiWebglTTFAssembler.prototype; + _proto.initData = function initData() { + var data = this._renderData; + data.createFlexData(0, this.verticesCount, this.indicesCount, this.getVfmt()); + var indices = data.iDatas[0]; + data.initQuadIndices(indices); + }; + _proto.getVfmt = function getVfmt() { + return _vertexFormat.vfmtPosUvColorTexId; + }; + _proto.getBuffer = function getBuffer() { + return cc.renderer._handle.getBuffer("mesh", this.getVfmt()); + }; + _proto.updateRenderData = function updateRenderData(comp) { + _WebglTTFAssembler.prototype.updateRenderData.call(this, comp); + comp._texIdDirty && comp._updateMultiTexId(comp.getMaterial(0), comp._frame._texture); + this.updateTexId(comp); + comp._texIdDirty = false; + }; + _proto.updateRenderDataForSwitchMaterial = function updateRenderDataForSwitchMaterial(comp) { + _WebglTTFAssembler.prototype._updateRenderData.call(this, comp); + comp._texIdDirty && comp._updateMultiTexId(comp.getMaterial(0), comp._frame._texture); + this.updateTexId(comp); + comp._texIdDirty = false; + }; + return MultiWebglTTFAssembler; + })(_ttf["default"]); + exports["default"] = MultiWebglTTFAssembler; + MultiWebglTTFAssembler.prototype.floatsPerVert = 6; + MultiWebglTTFAssembler.prototype.texIdOffset = 5; + MultiWebglTTFAssembler.prototype.isMulti = true; + module.exports = exports["default"]; + }), { + "../../../../webgl/vertex-format": 190, + "../2d/ttf": 167 + } ], + 164: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _bmfont = _interopRequireDefault(require("../../../../utils/label/bmfont")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var _dataOffset = 0; + var WebglBmfontAssembler = (function(_BmfontAssembler) { + _inheritsLoose(WebglBmfontAssembler, _BmfontAssembler); + function WebglBmfontAssembler() { + return _BmfontAssembler.apply(this, arguments) || this; + } + var _proto = WebglBmfontAssembler.prototype; + _proto.initData = function initData() { + this._renderData.createFlexData(0, 4, 6, this.getVfmt()); + }; + _proto._reserveQuads = function _reserveQuads(comp, count) { + var verticesCount = 4 * count; + var indicesCount = 6 * count; + var flexBuffer = this._renderData._flexBuffer; + flexBuffer.reserve(verticesCount, indicesCount); + flexBuffer.used(verticesCount, indicesCount); + var iData = this._renderData.iDatas[0]; + for (var i = 0, vid = 0, l = indicesCount; i < l; i += 6, vid += 4) { + iData[i] = vid; + iData[i + 1] = vid + 1; + iData[i + 2] = vid + 2; + iData[i + 3] = vid + 1; + iData[i + 4] = vid + 3; + iData[i + 5] = vid + 2; + } + _dataOffset = 0; + }; + _proto._quadsUpdated = function _quadsUpdated(comp) { + _dataOffset = 0; + var flexBuffer = this._renderData._flexBuffer; + flexBuffer.used(this.verticesCount, this.indicesCount); + }; + _proto._getColor = function _getColor(comp) { + return comp.node._color._val; + }; + _proto.appendQuad = function appendQuad(comp, texture, rect, rotated, x, y, scale, letter) { + var renderData = this._renderData; + var verts = renderData.vDatas[0], uintVerts = renderData.uintVDatas[0]; + this.verticesCount += 4; + this.indicesCount = this.verticesCount / 2 * 3; + var texw = texture.width, texh = texture.height, rectWidth = rect.width, rectHeight = rect.height, color = this._getColor(comp); + var l, b, r, t; + var floatsPerVert = this.floatsPerVert; + var uvDataOffset = _dataOffset + this.uvOffset; + if (rotated) { + l = rect.x / texw; + r = (rect.x + rectHeight) / texw; + b = (rect.y + rectWidth) / texh; + t = rect.y / texh; + verts[uvDataOffset] = l; + verts[uvDataOffset + 1] = t; + uvDataOffset += floatsPerVert; + verts[uvDataOffset] = l; + verts[uvDataOffset + 1] = b; + uvDataOffset += floatsPerVert; + verts[uvDataOffset] = r; + verts[uvDataOffset + 1] = t; + uvDataOffset += floatsPerVert; + verts[uvDataOffset] = r; + verts[uvDataOffset + 1] = b; + } else { + l = rect.x / texw; + r = (rect.x + rectWidth) / texw; + b = (rect.y + rectHeight) / texh; + t = rect.y / texh; + verts[uvDataOffset] = l; + verts[uvDataOffset + 1] = b; + uvDataOffset += floatsPerVert; + verts[uvDataOffset] = r; + verts[uvDataOffset + 1] = b; + uvDataOffset += floatsPerVert; + verts[uvDataOffset] = l; + verts[uvDataOffset + 1] = t; + uvDataOffset += floatsPerVert; + verts[uvDataOffset] = r; + verts[uvDataOffset + 1] = t; + } + var retinaScale = this.getTTFTextureSizeScale(); + x /= retinaScale; + y /= retinaScale; + rectWidth /= retinaScale; + rectHeight /= retinaScale; + l = x; + r = x + rectWidth * scale; + b = y - rectHeight * scale; + t = y; + this.appendVerts(comp, _dataOffset, l, r, b, t, letter); + var colorOffset = _dataOffset + this.colorOffset; + for (var i = 0; i < 4; i++) { + uintVerts[colorOffset] = color; + colorOffset += floatsPerVert; + } + _dataOffset += 4 * this.floatsPerVert; + }; + _proto.appendVerts = function appendVerts(comp, offset, l, r, b, t, letter) { + var local = this._local; + var floatsPerVert = this.floatsPerVert; + local[offset] = l; + local[offset + 1] = b; + offset += floatsPerVert; + local[offset] = r; + local[offset + 1] = b; + offset += floatsPerVert; + local[offset] = l; + local[offset + 1] = t; + offset += floatsPerVert; + local[offset] = r; + local[offset + 1] = t; + }; + _proto.updateWorldVerts = function updateWorldVerts(comp) { + var node = comp.node; + var matrix = node._worldMatrix; + var matrixm = matrix.m, a = matrixm[0], b = matrixm[1], c = matrixm[4], d = matrixm[5], tx = matrixm[12], ty = matrixm[13]; + var local = this._local; + var world = this._renderData.vDatas[0]; + var floatsPerVert = this.floatsPerVert; + for (var offset = 0; offset < local.length; offset += floatsPerVert) { + var x = local[offset]; + var y = local[offset + 1]; + world[offset] = x * a + y * c + tx; + world[offset + 1] = x * b + y * d + ty; + } + }; + return WebglBmfontAssembler; + })(_bmfont["default"]); + exports["default"] = WebglBmfontAssembler; + module.exports = exports["default"]; + }), { + "../../../../utils/label/bmfont": 156 + } ], + 165: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var js = require("../../../../../platform/js"); + var WebglBmfontAssembler = require("./bmfont"); + var LetterFontAssembler = require("../../../../utils/label/letter-font"); + var WHITE = cc.color(255, 255, 255, 255); + var WebglLetterFontAssembler = (function(_LetterFontAssembler) { + _inheritsLoose(WebglLetterFontAssembler, _LetterFontAssembler); + function WebglLetterFontAssembler() { + return _LetterFontAssembler.apply(this, arguments) || this; + } + var _proto = WebglLetterFontAssembler.prototype; + _proto.createData = function createData(comp) { + return comp.requestRenderData(); + }; + _proto._getColor = function _getColor(comp) { + WHITE._fastSetA(comp.node._color.a); + return WHITE._val; + }; + _proto.updateColor = function updateColor(comp) { + var color = this._getColor(comp); + _LetterFontAssembler.prototype.updateColor.call(this, comp, color); + }; + return WebglLetterFontAssembler; + })(LetterFontAssembler); + exports["default"] = WebglLetterFontAssembler; + module.exports = exports["default"]; + }), { + "../../../../../platform/js": 142, + "../../../../utils/label/letter-font": 158, + "./bmfont": 164 + } ], + 166: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _materialVariant = _interopRequireDefault(require("../../../../../assets/material/material-variant")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + var Label = require("../../../../../components/CCLabel"); + var LabelShadow = require("../../../../../components/CCLabelShadow"); + var LabelOutline = require("../../../../../components/CCLabelOutline"); + var Material = require("../../../../../assets/material/CCMaterial"); + var UPDATE_CONTENT = 1; + var UPDATE_FONT = 2; + var UPDATE_EFFECT = 4; + var NativeTTF = (function() { + function NativeTTF() {} + var _proto = NativeTTF.prototype; + _proto.init = function init(comp) { + this.labelMaterial = null; + this._label = this._renderComp = comp; + renderer.CustomAssembler.prototype.ctor.call(this); + comp.node._proxy.setAssembler(this); + this._layout = new jsb.LabelRenderer(); + this._layout.init(comp); + this._cfg = new DataView(this._layout._cfg); + this._layoutInfo = new DataView(this._layout._layout); + this._cfgFields = jsb.LabelRenderer._cfgFields; + this._layoutFields = jsb.LabelRenderer._layoutFields; + this._layout.bindNodeProxy(comp.node._proxy); + this._bindMaterial(comp); + }; + _proto._setBufferFlag = function _setBufferFlag(dv, offset, size, type, flag) { + if ("int8" == type && 1 == size) { + var v = dv.getInt8(offset); + dv.setInt8(offset, flag | v); + } else if ("int32" == type && 4 == size) { + var _v = dv.getInt32(offset, jsb.__isLittleEndian__); + dv.setInt32(offset, flag | _v, jsb.__isLittleEndian__); + } else cc.warn("flag storage type should be int8/int32 only, type/size -> " + type + "/" + size + "."); + }; + _proto._updateCfgFlag = function _updateCfgFlag(flag) { + var field = this._cfgFields.updateFlags; + this._setBufferFlag(this._cfg, field.offset, field.size, field.type, flag); + }; + _proto._setBufferValue = function _setBufferValue(dv, offset, size, type, value) { + if ("float" == type && 4 == size) dv.setFloat32(offset, value, jsb.__isLittleEndian__); else if ("int32" == type && 4 == size) dv.setInt32(offset, value, jsb.__isLittleEndian__); else if ("bool" == type && 1 == size) dv.setInt8(offset, !value ? 0 : 1, jsb.__isLittleEndian__); else if ("Color4B" == type && 4 == size) { + dv.setUint8(offset, value.r); + dv.setUint8(offset + 1, value.g); + dv.setUint8(offset + 2, value.b); + dv.setUint8(offset + 3, value.a); + } else "int8" == type && 1 == size ? dv.setUint8(offset, value) : cc.warn("dont know how to set value to buffer, type/size -> " + type + "/" + size + "."); + }; + _proto._setFieldValue = function _setFieldValue(dv, desc, field_name, value) { + var field = desc[field_name]; + this._setBufferValue(dv, field.offset, field.size, field.type, value); + }; + _proto._getBufferValue = function _getBufferValue(dv, offset, size, type) { + if ("float" == type && 4 == size) return dv.getFloat32(offset, jsb.__isLittleEndian__); + if ("int32" == type && 4 == size) return dv.getInt32(offset, jsb.__isLittleEndian__); + if ("bool" == type && 1 == size) return 0 != dv.getInt8(offset, jsb.__isLittleEndian__); + if ("Color4B" == type && 4 == size) { + var r = dv.getUint8(offset); + var g = dv.getUint8(offset + 1); + var b = dv.getUint8(offset + 2); + var a = dv.getUint8(offset + 3); + return { + r: r, + g: g, + b: b, + a: a + }; + } + if ("int8" == type && 1 == size) return dv.getUint8(offset); + cc.warn("dont know how to get value from buffer, type/size -> " + type + "/" + size + "."); + return; + }; + _proto._getFieldValue = function _getFieldValue(dv, desc, field_name) { + var field = desc[field_name]; + return this._getBufferValue(dv, field.offset, field.size, field.type); + }; + _proto._getLayoutValue = function _getLayoutValue(field_name) { + return this._getFieldValue(this._layoutInfo, this._layoutFields, field_name); + }; + _proto._setLayoutValue = function _setLayoutValue(field_name, value) { + return this._setFieldValue(this._layoutInfo, this._layoutFields, field_name, value); + }; + _proto._updateCfgFlag_Content = function _updateCfgFlag_Content() { + this._updateCfgFlag(UPDATE_CONTENT); + }; + _proto._updateCfgFlag_Font = function _updateCfgFlag_Font() { + this._updateCfgFlag(UPDATE_FONT); + }; + _proto._colorEqual = function _colorEqual(a, b) { + return a.r == b.r && a.g == b.g && a.b == b.b && a.a == b.a; + }; + _proto._colorToObj = function _colorToObj(r, g, b, a) { + return { + r: r, + g: g, + b: b, + a: a + }; + }; + _proto.setString = function setString(str) { + if (str != this._layout.string) { + this._layout.string = str; + this._updateCfgFlag_Content(); + } + }; + _proto.setFontPath = function setFontPath(path) { + if (path != this._layout.fontPath) { + this._layout.fontPath = path; + this._updateCfgFlag_Font(); + } + }; + _proto.setFontSize = function setFontSize(fontSize, fontSizeRetina) { + var oldfontsize = this._getFieldValue(this._cfg, this._cfgFields, "fontSize"); + if (oldfontsize != fontSize) { + this._setFieldValue(this._cfg, this._cfgFields, "fontSize", fontSize); + this._setFieldValue(this._cfg, this._cfgFields, "fontSizeRetina", fontSizeRetina); + this._updateCfgFlag_Font(); + } + }; + _proto.setOutline = function setOutline(outline) { + var oldOutline = this._getLayoutValue("outlineSize"); + oldOutline > 0 != outline > 0 && this._updateCfgFlag_Font(); + if (oldOutline != outline) { + this._updateCfgFlag_Content(); + this._setLayoutValue("outlineSize", outline); + } + }; + _proto.setOutlineColor = function setOutlineColor(color) { + var oldColor = this._getLayoutValue("outlineColor"); + if (!this._colorEqual(oldColor, color)) { + this._setLayoutValue("outlineColor", color); + this._updateCfgFlag_Content(); + } + }; + _proto.setLineHeight = function setLineHeight(lineHeight) { + var oldLineHeight = this._getLayoutValue("lineHeight"); + if (oldLineHeight != lineHeight) { + this._setLayoutValue("lineHeight", lineHeight); + this._updateCfgFlag_Content(); + } + }; + _proto.setOverFlow = function setOverFlow(overflow) { + var oldValue = this._getLayoutValue("overflow"); + if (oldValue != overflow) { + this._setLayoutValue("overflow", overflow); + this._updateCfgFlag_Content(); + } + }; + _proto.setEnableWrap = function setEnableWrap(value) { + var oldValue = this._getLayoutValue("wrap"); + if (oldValue != value) { + this._setLayoutValue("wrap", value); + this._updateCfgFlag_Content(); + } + }; + _proto.setVerticalAlign = function setVerticalAlign(value) { + var oldValue = this._getLayoutValue("valign"); + if (oldValue != value) { + this._setLayoutValue("valign", value); + this._updateCfgFlag_Content(); + } + }; + _proto.setHorizontalAlign = function setHorizontalAlign(value) { + var oldValue = this._getLayoutValue("halign"); + if (oldValue != value) { + this._setLayoutValue("halign", value); + this._updateCfgFlag_Content(); + } + }; + _proto.setContentSize = function setContentSize(width, height) { + var oldWidth = this._getLayoutValue("width"); + var oldHeight = this._getLayoutValue("height"); + if (oldWidth != width || oldHeight != height) { + this._setLayoutValue("height", height); + this._setLayoutValue("width", width); + this._updateCfgFlag_Content(); + } + }; + _proto.setAnchorPoint = function setAnchorPoint(x, y) { + var oldX = this._getLayoutValue("anchorX"); + var oldY = this._getLayoutValue("anchorY"); + if (oldX != x || oldY != y) { + this._setLayoutValue("anchorX", x); + this._setLayoutValue("anchorY", y); + this._updateCfgFlag_Content(); + } + }; + _proto.setColor = function setColor(color) { + var oldColor = this._getLayoutValue("color"); + if (!this._colorEqual(oldColor, color)) { + this._setLayoutValue("color", color); + this._updateCfgFlag_Content(); + } + }; + _proto.setShadow = function setShadow(x, y, blur) { + var oldBlur = this._getLayoutValue("shadowBlur"); + var oldX = this._getLayoutValue("shadowX"); + var oldY = this._getLayoutValue("shadowY"); + oldBlur > 0 != blur > 0 && this._updateCfgFlag_Font(); + var updateContent = false; + if (oldBlur != blur) { + this._setLayoutValue("shadowBlur", blur); + updateContent = true; + } + if (oldX != x) { + this._setLayoutValue("shadowX", x); + updateContent = true; + } + if (oldY != y) { + this._setLayoutValue("shadowY", y); + updateContent = true; + } + updateContent && this._updateCfgFlag_Content(); + }; + _proto.setShadowColor = function setShadowColor(color) { + var oldColor = this._getLayoutValue("shadowColor"); + if (!this._colorEqual(oldColor, color)) { + this._setLayoutValue("shadowColor", color); + this._updateCfgFlag_Content(); + } + }; + _proto.setItalic = function setItalic(enabled) { + var oldItalic = this._getLayoutValue("italic"); + if (oldItalic != enabled) { + this._setLayoutValue("italic", enabled); + this._updateCfgFlag_Content(); + } + }; + _proto.setBold = function setBold(bold) { + var oldBold = this._getLayoutValue("bold"); + if (oldBold != bold) { + this._setLayoutValue("bold", bold); + this._updateCfgFlag_Content(); + this._updateCfgFlag_Font(); + } + }; + _proto.setUnderline = function setUnderline(underline) { + var oldBold = this._getLayoutValue("underline"); + if (oldBold != underline) { + this._setLayoutValue("underline", underline); + this._updateCfgFlag_Content(); + } + }; + _proto.setSpacingX = function setSpacingX(x) { + var oldX = this._getLayoutValue("spaceX"); + if (oldX != x && "number" == typeof x && !isNaN(x)) { + this._setLayoutValue("spaceX", x); + this._updateCfgFlag_Content(); + } + }; + _proto.updateRenderData = function updateRenderData(comp) { + if (!comp._vertsDirty) return; + comp.font && comp.font.nativeUrl && this.setFontPath(cc.assetManager.cacheManager.getCache(comp.font.nativeUrl) || comp.font.nativeUrl); + var layout = this._layout; + var c = comp.node.color; + var node = comp.node; + var retinaSize = comp.fontSize; + this.setString(comp.string); + this.setFontSize(comp.fontSize, retinaSize / 72 * comp.fontSize); + this.setLineHeight(comp.lineHeight); + this.setEnableWrap(comp.enableWrapText); + this.setItalic(comp.enableItalic); + this.setUnderline(comp.enableUnderline); + this.setBold(comp.enableBold); + this.setOverFlow(comp.overflow); + this.setVerticalAlign(comp.verticalAlign); + this.setHorizontalAlign(comp.horizontalAlign); + this.setSpacingX(comp.spacingX); + this.setContentSize(node.getContentSize().width, node.getContentSize().height); + this.setAnchorPoint(node.anchorX, node.anchorY); + this.setColor(this._colorToObj(c.getR(), c.getG(), c.getB(), Math.ceil(c.getA() * node.opacity / 255))); + var shadow = node.getComponent(cc.LabelShadow); + if (shadow && shadow.enabled) { + var shadowColor = shadow.color; + this.setShadow(shadow.offset.x, shadow.offset.y, shadow.blur); + this.setShadowColor(this._colorToObj(shadowColor.getR(), shadowColor.getG(), shadowColor.getB(), Math.ceil(shadowColor.getA() * node.opacity / 255))); + } else this.setShadow(0, 0, -1); + this._updateTTFMaterial(comp); + layout.render(); + }; + _proto._bindMaterial = function _bindMaterial(comp) { + var material = this.labelMaterial; + if (!material) { + material = _materialVariant["default"].createWithBuiltin("2d-label", comp); + this.labelMaterial = material; + } + return material; + }; + _proto._updateTTFMaterial = function _updateTTFMaterial(comp) { + var material = this._bindMaterial(comp); + var node = this._label.node; + var layout = this._layout; + var outline = node.getComponent(cc.LabelOutline); + var outlineSize = 0; + if (outline && outline.enabled && outline.width > 0) { + outlineSize = Math.max(Math.min(outline.width / 10, .4), .1); + var c = outline.color; + this.setOutlineColor(this._colorToObj(c.getR(), c.getG(), c.getB(), Math.ceil(c.getA() * node.opacity / 255))); + } + this.setOutline(outlineSize); + material.define("CC_USE_MODEL", true); + material.define("USE_TEXTURE_ALPHAONLY", true); + material.define("USE_SDF", outlineSize > 0 || comp.enableBold); + material.define("USE_SDF_EXTEND", comp.enableBold ? 1 : 0); + void 0 !== material.getDefine("CC_SUPPORT_standard_derivatives") && cc.sys.glExtension("OES_standard_derivatives") && material.define("CC_SUPPORT_standard_derivatives", true); + layout.setEffect(material.effect._nativeObj); + }; + _proto.fillBuffers = function fillBuffers(comp, renderer) { + this._layout.render(); + }; + _proto.getVfmt = function getVfmt() {}; + return NativeTTF; + })(); + exports["default"] = NativeTTF; + module.exports = exports["default"]; + }), { + "../../../../../assets/material/CCMaterial": 75, + "../../../../../assets/material/material-variant": 82, + "../../../../../components/CCLabel": 93, + "../../../../../components/CCLabelOutline": 94, + "../../../../../components/CCLabelShadow": 95 + } ], + 167: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _ttf = _interopRequireDefault(require("../../../../utils/label/ttf")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var LabelShadow = require("../../../../../components/CCLabelShadow"); + var WHITE = cc.color(255, 255, 255, 255); + var WebglTTFAssembler = (function(_TTFAssembler) { + _inheritsLoose(WebglTTFAssembler, _TTFAssembler); + function WebglTTFAssembler() { + return _TTFAssembler.apply(this, arguments) || this; + } + var _proto = WebglTTFAssembler.prototype; + _proto.updateUVs = function updateUVs(comp) { + var verts = this._renderData.vDatas[0]; + var uv = comp._frame.uv; + var uvOffset = this.uvOffset; + var floatsPerVert = this.floatsPerVert; + for (var i = 0; i < 4; i++) { + var srcOffset = 2 * i; + var dstOffset = floatsPerVert * i + uvOffset; + verts[dstOffset] = uv[srcOffset]; + verts[dstOffset + 1] = uv[srcOffset + 1]; + } + }; + _proto.updateColor = function updateColor(comp) { + WHITE._fastSetA(comp.node._color.a); + var color = WHITE._val; + _TTFAssembler.prototype.updateColor.call(this, comp, color); + }; + _proto.updateVerts = function updateVerts(comp) { + var scale = this.getTTFTextureSizeScale(); + var node = comp.node, canvasWidth = comp._ttfTexture.width / scale, canvasHeight = comp._ttfTexture.height / scale, appx = node.anchorX * node.width, appy = node.anchorY * node.height; + var shadow = LabelShadow && comp.getComponent(LabelShadow); + if (shadow && shadow._enabled) { + var offsetX = (canvasWidth - node.width) / 2; + var offsetY = (canvasHeight - node.height) / 2; + var shadowOffset = shadow.offset; + -shadowOffset.x > offsetX ? appx += canvasWidth - node.width : offsetX > shadowOffset.x && (appx += offsetX - shadowOffset.x); + -shadowOffset.y > offsetY ? appy += canvasHeight - node.height : offsetY > shadowOffset.y && (appy += offsetY - shadowOffset.y); + } + var local = this._local; + local[0] = -appx; + local[1] = -appy; + local[2] = canvasWidth - appx; + local[3] = canvasHeight - appy; + this.updateUVs(comp); + this.updateWorldVerts(comp); + }; + return WebglTTFAssembler; + })(_ttf["default"]); + exports["default"] = WebglTTFAssembler; + module.exports = exports["default"]; + }), { + "../../../../../components/CCLabelShadow": 95, + "../../../../utils/label/ttf": 159 + } ], + 168: [ (function(require, module, exports) { + "use strict"; + var _assembler = _interopRequireDefault(require("../../../assembler")); + var _CCLabel = _interopRequireDefault(require("../../../../components/CCLabel")); + var _ttf = _interopRequireDefault(require("./2d/ttf")); + var _bmfont = _interopRequireDefault(require("./2d/bmfont")); + var _letter = _interopRequireDefault(require("./2d/letter")); + var _ttf2 = _interopRequireDefault(require("./3d/ttf")); + var _bmfont2 = _interopRequireDefault(require("./3d/bmfont")); + var _letter2 = _interopRequireDefault(require("./3d/letter")); + var _ttf3 = _interopRequireDefault(require("./2d-multi/ttf")); + var _bmfont3 = _interopRequireDefault(require("./2d-multi/bmfont")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + var NativeTTF = void 0; + false; + _CCLabel["default"]._canvasPool = { + pool: [], + get: function get() { + var data = this.pool.pop(); + if (!data) { + var canvas = document.createElement("canvas"); + var context = canvas.getContext("2d"); + data = { + canvas: canvas, + context: context + }; + context.textBaseline = "alphabetic"; + } + return data; + }, + put: function put(canvas) { + if (this.pool.length >= 32) return; + this.pool.push(canvas); + } + }; + _assembler["default"].register(cc.Label, { + getConstructor: function getConstructor(label) { + var is3DNode = label.node.is3DNode; + var material = label.getMaterials()[0]; + var isMultiMaterial = material && material.material.isMultiSupport(); + var ctor = is3DNode ? _ttf2["default"] : isMultiMaterial ? _ttf3["default"] : _ttf["default"]; + if (label.font instanceof cc.BitmapFont) ctor = is3DNode ? _bmfont2["default"] : isMultiMaterial ? _bmfont3["default"] : _bmfont["default"]; else if (label.cacheMode === _CCLabel["default"].CacheMode.CHAR) { + false; + cc.sys.platform === cc.sys.WECHAT_GAME_SUB ? cc.warn("sorry, subdomain does not support CHAR mode currently!") : ctor = is3DNode ? _letter2["default"] : _letter["default"]; + } + return ctor; + }, + TTF: _ttf["default"], + Bmfont: _bmfont["default"], + Letter: _letter["default"], + TTF3D: _ttf2["default"], + Bmfont3D: _bmfont2["default"], + Letter3D: _letter2["default"], + NativeTTF: NativeTTF, + TTFMulti: _ttf3["default"], + BmfontMulti: _bmfont3["default"] + }); + }), { + "../../../../components/CCLabel": 93, + "../../../assembler": 149, + "./2d-multi/bmfont": 162, + "./2d-multi/ttf": 163, + "./2d/bmfont": 164, + "./2d/letter": 165, + "./2d/nativeTTF": 166, + "./2d/ttf": 167, + "./3d/bmfont": void 0, + "./3d/letter": void 0, + "./3d/ttf": void 0 + } ], + 169: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _motionStreak = _interopRequireDefault(require("./motion-streak")); + var _vertexFormat = require("../../webgl/vertex-format"); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var MotionStreak = require("../../../components/CCMotionStreak"); + var RenderFlow = require("../../render-flow"); + function Point(point, dir) { + this.point = point || cc.v2(); + this.dir = dir || cc.v2(); + this.distance = 0; + this.time = 0; + } + Point.prototype.setPoint = function(x, y) { + this.point.x = x; + this.point.y = y; + }; + Point.prototype.setDir = function(x, y) { + this.dir.x = x; + this.dir.y = y; + }; + var _normal = cc.v2(); + var _vec2 = cc.v2(); + function normal(out, dir) { + out.x = -dir.y; + out.y = dir.x; + return out; + } + var MultiMotionStreakAssembler = (function(_MotionStreakAssemble) { + _inheritsLoose(MultiMotionStreakAssembler, _MotionStreakAssemble); + function MultiMotionStreakAssembler() { + return _MotionStreakAssemble.apply(this, arguments) || this; + } + var _proto = MultiMotionStreakAssembler.prototype; + _proto.initData = function initData() { + this._renderData.createFlexData(0, 16, 42, this.getVfmt()); + }; + _proto.getVfmt = function getVfmt() { + return _vertexFormat.vfmtPosUvColorTexId; + }; + _proto.getBuffer = function getBuffer() { + return cc.renderer._handle.getBuffer("mesh", this.getVfmt()); + }; + _proto.update = function update(comp, dt) { + false; + var stroke = comp._stroke / 2; + var node = comp.node; + var matrix = node._worldMatrix.m; + var tx = matrix[12], ty = matrix[13]; + var points = comp._points; + var cur; + if (points.length > 1) { + var difx = points[0].point.x - tx; + var dify = points[0].point.y - ty; + difx * difx + dify * dify < comp.minSeg && (cur = points[0]); + } + if (!cur) { + cur = new Point(); + points.splice(0, 0, cur); + } + cur.setPoint(tx, ty); + cur.time = comp._fadeTime + dt; + var verticesCount = 0; + var indicesCount = 0; + if (points.length < 2) return; + var color = comp._color, cr = color.r, cg = color.g, cb = color.b, ca = color.a; + var prev = points[1]; + prev.distance = cur.point.sub(prev.point, _vec2).mag(); + _vec2.normalizeSelf(); + prev.setDir(_vec2.x, _vec2.y); + cur.setDir(_vec2.x, _vec2.y); + var flexBuffer = this._renderData._flexBuffer; + flexBuffer.reserve(2 * points.length, 6 * (points.length - 1)); + var vData = flexBuffer.vData; + var uintVData = flexBuffer.uintVData; + var vertsOffset = 6; + var fadeTime = comp._fadeTime; + var findLast = false; + for (var i = points.length - 1; i >= 0; i--) { + var p = points[i]; + var point = p.point; + var dir = p.dir; + p.time -= dt; + if (p.time < 0) { + points.splice(i, 1); + continue; + } + var progress = p.time / fadeTime; + var next = points[i - 1]; + if (!findLast) { + if (!next) { + points.splice(i, 1); + continue; + } + point.x = next.point.x - dir.x * progress; + point.y = next.point.y - dir.y * progress; + } + findLast = true; + normal(_normal, dir); + var da = progress * ca; + var c = (da << 24 >>> 0) + (cb << 16) + (cg << 8) + cr; + var offset = verticesCount * vertsOffset; + vData[offset] = point.x + _normal.x * stroke; + vData[offset + 1] = point.y + _normal.y * stroke; + vData[offset + 2] = 1; + vData[offset + 3] = progress; + uintVData[offset + 4] = c; + vData[offset + 5] = comp._texId; + offset += vertsOffset; + vData[offset] = point.x - _normal.x * stroke; + vData[offset + 1] = point.y - _normal.y * stroke; + vData[offset + 2] = 0; + vData[offset + 3] = progress; + uintVData[offset + 4] = c; + vData[offset + 5] = comp._texId; + verticesCount += 2; + } + indicesCount = verticesCount <= 2 ? 0 : 3 * (verticesCount - 2); + flexBuffer.used(verticesCount, indicesCount); + }; + _proto.fillBuffers = function fillBuffers(comp, renderer) { + var _this$_renderData$_fl = this._renderData._flexBuffer, vData = _this$_renderData$_fl.vData, usedVertices = _this$_renderData$_fl.usedVertices, usedIndices = _this$_renderData$_fl.usedIndices, usedVerticesFloats = _this$_renderData$_fl.usedVerticesFloats; + var buffer = this.getBuffer(renderer); + var offsetInfo = buffer.request(usedVertices, usedIndices); + var vertexOffset = offsetInfo.byteOffset >> 2, vbuf = buffer._vData; + vData.length + vertexOffset > vbuf.length ? vbuf.set(vData.subarray(0, usedVerticesFloats), vertexOffset) : vbuf.set(vData, vertexOffset); + var ibuf = buffer._iData, indiceOffset = offsetInfo.indiceOffset, vertexId = offsetInfo.vertexOffset; + for (var i = 0, l = usedVertices; i < l; i += 2) { + var start = vertexId + i; + ibuf[indiceOffset++] = start; + ibuf[indiceOffset++] = start + 2; + ibuf[indiceOffset++] = start + 1; + ibuf[indiceOffset++] = start + 1; + ibuf[indiceOffset++] = start + 2; + ibuf[indiceOffset++] = start + 3; + } + comp.node._renderFlag |= RenderFlow.FLAG_UPDATE_RENDER_DATA; + }; + return MultiMotionStreakAssembler; + })(_motionStreak["default"]); + exports["default"] = MultiMotionStreakAssembler; + _motionStreak["default"].register(MotionStreak, { + getConstructor: function getConstructor(comp) { + var material = comp.getMaterials()[0]; + var isMultiMaterial = material && material.material.isMultiSupport(); + return isMultiMaterial ? MultiMotionStreakAssembler : _motionStreak["default"]; + }, + MotionStreakAssembler: _motionStreak["default"], + MultiMotionStreakAssembler: MultiMotionStreakAssembler + }); + MultiMotionStreakAssembler.prototype.floatsPerVert = 6; + MultiMotionStreakAssembler.prototype.texIdOffset = 5; + MultiMotionStreakAssembler.prototype.isMulti = true; + module.exports = exports["default"]; + }), { + "../../../components/CCMotionStreak": 97, + "../../render-flow": 153, + "../../webgl/vertex-format": 190, + "./motion-streak": 170 + } ], + 170: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _assembler2d = _interopRequireDefault(require("../../assembler-2d")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var RenderFlow = require("../../render-flow"); + function Point(point, dir) { + this.point = point || cc.v2(); + this.dir = dir || cc.v2(); + this.distance = 0; + this.time = 0; + } + Point.prototype.setPoint = function(x, y) { + this.point.x = x; + this.point.y = y; + }; + Point.prototype.setDir = function(x, y) { + this.dir.x = x; + this.dir.y = y; + }; + var _tangent = cc.v2(); + var _miter = cc.v2(); + var _normal = cc.v2(); + var _vec2 = cc.v2(); + function normal(out, dir) { + out.x = -dir.y; + out.y = dir.x; + return out; + } + function computeMiter(miter, lineA, lineB, halfThick, maxMultiple) { + lineA.add(lineB, _tangent); + _tangent.normalizeSelf(); + miter.x = -_tangent.y; + miter.y = _tangent.x; + _vec2.x = -lineA.y; + _vec2.y = lineA.x; + var multiple = 1 / miter.dot(_vec2); + maxMultiple && (multiple = Math.min(multiple, maxMultiple)); + return halfThick * multiple; + } + var MotionStreakAssembler = (function(_Assembler2D) { + _inheritsLoose(MotionStreakAssembler, _Assembler2D); + function MotionStreakAssembler() { + return _Assembler2D.apply(this, arguments) || this; + } + var _proto = MotionStreakAssembler.prototype; + _proto.initData = function initData() { + this._renderData.createFlexData(0, 16, 42); + }; + _proto.update = function update(comp, dt) { + false; + var stroke = comp._stroke / 2; + var node = comp.node; + var matrix = node._worldMatrix.m; + var tx = matrix[12], ty = matrix[13]; + var points = comp._points; + var cur; + if (points.length > 1) { + var difx = points[0].point.x - tx; + var dify = points[0].point.y - ty; + difx * difx + dify * dify < comp.minSeg && (cur = points[0]); + } + if (!cur) { + cur = new Point(); + points.splice(0, 0, cur); + } + cur.setPoint(tx, ty); + cur.time = comp._fadeTime + dt; + var verticesCount = 0; + var indicesCount = 0; + if (points.length < 2) return; + var color = comp._color, cr = color.r, cg = color.g, cb = color.b, ca = color.a; + var prev = points[1]; + prev.distance = cur.point.sub(prev.point, _vec2).mag(); + _vec2.normalizeSelf(); + prev.setDir(_vec2.x, _vec2.y); + cur.setDir(_vec2.x, _vec2.y); + var flexBuffer = this._renderData._flexBuffer; + flexBuffer.reserve(2 * points.length, 6 * (points.length - 1)); + var vData = flexBuffer.vData; + var uintVData = flexBuffer.uintVData; + var vertsOffset = 5; + var fadeTime = comp._fadeTime; + var findLast = false; + for (var i = points.length - 1; i >= 0; i--) { + var p = points[i]; + var point = p.point; + var dir = p.dir; + p.time -= dt; + if (p.time < 0) { + points.splice(i, 1); + continue; + } + var progress = p.time / fadeTime; + var next = points[i - 1]; + if (!findLast) { + if (!next) { + points.splice(i, 1); + continue; + } + point.x = next.point.x - dir.x * progress; + point.y = next.point.y - dir.y * progress; + } + findLast = true; + normal(_normal, dir); + var da = progress * ca; + var c = (da << 24 >>> 0) + (cb << 16) + (cg << 8) + cr; + var offset = verticesCount * vertsOffset; + vData[offset] = point.x + _normal.x * stroke; + vData[offset + 1] = point.y + _normal.y * stroke; + vData[offset + 2] = 1; + vData[offset + 3] = progress; + uintVData[offset + 4] = c; + offset += vertsOffset; + vData[offset] = point.x - _normal.x * stroke; + vData[offset + 1] = point.y - _normal.y * stroke; + vData[offset + 2] = 0; + vData[offset + 3] = progress; + uintVData[offset + 4] = c; + verticesCount += 2; + } + indicesCount = verticesCount <= 2 ? 0 : 3 * (verticesCount - 2); + flexBuffer.used(verticesCount, indicesCount); + }; + _proto.fillBuffers = function fillBuffers(comp, renderer) { + var _this$_renderData$_fl = this._renderData._flexBuffer, vData = _this$_renderData$_fl.vData, usedVertices = _this$_renderData$_fl.usedVertices, usedIndices = _this$_renderData$_fl.usedIndices, usedVerticesFloats = _this$_renderData$_fl.usedVerticesFloats; + var buffer = renderer._meshBuffer; + var offsetInfo = buffer.request(usedVertices, usedIndices); + var vertexOffset = offsetInfo.byteOffset >> 2, vbuf = buffer._vData; + vData.length + vertexOffset > vbuf.length ? vbuf.set(vData.subarray(0, usedVerticesFloats), vertexOffset) : vbuf.set(vData, vertexOffset); + var ibuf = buffer._iData, indiceOffset = offsetInfo.indiceOffset, vertexId = offsetInfo.vertexOffset; + for (var i = 0, l = usedVertices; i < l; i += 2) { + var start = vertexId + i; + ibuf[indiceOffset++] = start; + ibuf[indiceOffset++] = start + 2; + ibuf[indiceOffset++] = start + 1; + ibuf[indiceOffset++] = start + 1; + ibuf[indiceOffset++] = start + 2; + ibuf[indiceOffset++] = start + 3; + } + comp.node._renderFlag |= RenderFlow.FLAG_UPDATE_RENDER_DATA; + }; + return MotionStreakAssembler; + })(_assembler2d["default"]); + exports["default"] = MotionStreakAssembler; + module.exports = exports["default"]; + }), { + "../../assembler-2d": 147, + "../../render-flow": 153 + } ], + 171: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _vertexFormat = require("../../../../webgl/vertex-format"); + var _barFilled = _interopRequireDefault(require("../2d/bar-filled")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var BarFilledAssemblerMulti = (function(_BarFilledAssembler) { + _inheritsLoose(BarFilledAssemblerMulti, _BarFilledAssembler); + function BarFilledAssemblerMulti() { + return _BarFilledAssembler.apply(this, arguments) || this; + } + var _proto = BarFilledAssemblerMulti.prototype; + _proto.initData = function initData() { + var data = this._renderData; + data.createFlexData(0, this.verticesCount, this.indicesCount, this.getVfmt()); + var indices = data.iDatas[0]; + data.initQuadIndices(indices); + }; + _proto.getVfmt = function getVfmt() { + return _vertexFormat.vfmtPosUvColorTexId; + }; + _proto.getBuffer = function getBuffer() { + return cc.renderer._handle.getBuffer("mesh", this.getVfmt()); + }; + _proto.updateRenderData = function updateRenderData(sprite) { + _BarFilledAssembler.prototype.updateRenderData.call(this, sprite); + if (sprite._texIdDirty) { + sprite._updateMultiTexId(sprite.getMaterial(0), sprite._spriteFrame._texture); + if (sprite._texIdDirty) { + this.updateTexId(sprite); + sprite._texIdDirty = false; + } + } + }; + _proto.updateRenderDataForSwitchMaterial = function updateRenderDataForSwitchMaterial(sprite) { + if (sprite._vertsDirty) { + var fillStart = sprite._fillStart; + var fillRange = sprite._fillRange; + if (fillRange < 0) { + fillStart += fillRange; + fillRange = -fillRange; + } + fillRange = fillStart + fillRange; + fillStart = fillStart > 1 ? 1 : fillStart; + fillStart = fillStart < 0 ? 0 : fillStart; + fillRange = fillRange > 1 ? 1 : fillRange; + fillRange = fillRange < 0 ? 0 : fillRange; + fillRange -= fillStart; + fillRange = fillRange < 0 ? 0 : fillRange; + var fillEnd = fillStart + fillRange; + fillEnd = fillEnd > 1 ? 1 : fillEnd; + this.updateUVs(sprite, fillStart, fillEnd); + this.updateVerts(sprite, fillStart, fillEnd); + sprite._vertsDirty = false; + } + if (sprite._texIdDirty) { + sprite._updateMultiTexId(sprite.getMaterial(0), sprite._spriteFrame._texture); + if (sprite._texIdDirty) { + this.updateTexId(sprite); + sprite._texIdDirty = false; + } + } + }; + return BarFilledAssemblerMulti; + })(_barFilled["default"]); + exports["default"] = BarFilledAssemblerMulti; + BarFilledAssemblerMulti.prototype.floatsPerVert = 6; + BarFilledAssemblerMulti.prototype.texIdOffset = 5; + BarFilledAssemblerMulti.prototype.isMulti = true; + module.exports = exports["default"]; + }), { + "../../../../webgl/vertex-format": 190, + "../2d/bar-filled": 177 + } ], + 172: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _vertexFormat = require("../../../../webgl/vertex-format"); + var _mesh = _interopRequireDefault(require("../2d/mesh")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var MultiMeshSpriteAssembler = (function(_MeshSpriteAssembler) { + _inheritsLoose(MultiMeshSpriteAssembler, _MeshSpriteAssembler); + function MultiMeshSpriteAssembler() { + return _MeshSpriteAssembler.apply(this, arguments) || this; + } + var _proto = MultiMeshSpriteAssembler.prototype; + _proto.getVfmt = function getVfmt() { + return _vertexFormat.vfmtPosUvColorTexId; + }; + _proto.getBuffer = function getBuffer() { + return cc.renderer._handle.getBuffer("mesh", this.getVfmt()); + }; + _proto.updateRenderData = function updateRenderData(sprite) { + var frame = sprite.spriteFrame; + _MeshSpriteAssembler.prototype.updateRenderData.call(this, sprite); + if (frame) { + sprite._texIdDirty && sprite._updateMultiTexId(sprite.getMaterial(0), frame._texture); + this.updateTexId(sprite); + sprite._texIdDirty = false; + } + }; + _proto.updateRenderDataForSwitchMaterial = function updateRenderDataForSwitchMaterial(sprite) { + var frame = sprite.spriteFrame; + if (frame) { + var vertices = frame.vertices; + if (vertices) { + this.verticesCount = vertices.x.length; + this.indicesCount = vertices.triangles.length; + var renderData = this._renderData; + var flexBuffer = renderData._flexBuffer; + if (flexBuffer.reserve(this.verticesCount, this.indicesCount)) { + this.updateColor(sprite); + sprite._vertsDirty = true; + } + flexBuffer.used(this.verticesCount, this.indicesCount); + this.updateIndices(vertices.triangles); + if (sprite._vertsDirty) { + this.updateUVs(sprite); + this.updateVerts(sprite); + this.updateWorldVerts(sprite); + sprite._vertsDirty = false; + } + } + } + sprite._texIdDirty && sprite._updateMultiTexId(sprite.getMaterial(0), frame._texture); + this.updateTexId(sprite); + sprite._texIdDirty = false; + }; + return MultiMeshSpriteAssembler; + })(_mesh["default"]); + exports["default"] = MultiMeshSpriteAssembler; + MultiMeshSpriteAssembler.prototype.floatsPerVert = 6; + MultiMeshSpriteAssembler.prototype.texIdOffset = 5; + MultiMeshSpriteAssembler.prototype.isMulti = true; + module.exports = exports["default"]; + }), { + "../../../../webgl/vertex-format": 190, + "../2d/mesh": 178 + } ], + 173: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _vertexFormat = require("../../../../webgl/vertex-format"); + var _radialFilled = _interopRequireDefault(require("../2d/radial-filled")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var MultiRadialFilledAssembler = (function(_RadialFilledAssemble) { + _inheritsLoose(MultiRadialFilledAssembler, _RadialFilledAssemble); + function MultiRadialFilledAssembler() { + return _RadialFilledAssemble.apply(this, arguments) || this; + } + var _proto = MultiRadialFilledAssembler.prototype; + _proto.initData = function initData(sprite) { + this._renderData.createFlexData(0, 4, 6, this.getVfmt()); + this.updateIndices(); + }; + _proto.getVfmt = function getVfmt() { + return _vertexFormat.vfmtPosUvColorTexId; + }; + _proto.getBuffer = function getBuffer() { + return cc.renderer._handle.getBuffer("mesh", this.getVfmt()); + }; + _proto.updateRenderData = function updateRenderData(sprite) { + _RadialFilledAssemble.prototype.updateRenderData.call(this, sprite); + sprite._texIdDirty && sprite._updateMultiTexId(sprite.getMaterial(0), sprite.spriteFrame._texture); + this.updateTexId(sprite); + sprite._texIdDirty = false; + }; + _proto.updateRenderDataForSwitchMaterial = function updateRenderDataForSwitchMaterial(sprite) { + this._updateRenderData(sprite); + sprite._texIdDirty && sprite._updateMultiTexId(sprite.getMaterial(0), sprite.spriteFrame._texture); + this.updateTexId(sprite); + sprite._texIdDirty = false; + }; + return MultiRadialFilledAssembler; + })(_radialFilled["default"]); + exports["default"] = MultiRadialFilledAssembler; + MultiRadialFilledAssembler.prototype.floatsPerVert = 6; + MultiRadialFilledAssembler.prototype.texIdOffset = 5; + MultiRadialFilledAssembler.prototype.isMulti = true; + module.exports = exports["default"]; + }), { + "../../../../webgl/vertex-format": 190, + "../2d/radial-filled": 179 + } ], + 174: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _vertexFormat = require("../../../../webgl/vertex-format"); + var _simple = _interopRequireDefault(require("../2d/simple")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var MultiSimpleSpriteAssembler = (function(_SimpleSpriteAssemble) { + _inheritsLoose(MultiSimpleSpriteAssembler, _SimpleSpriteAssemble); + function MultiSimpleSpriteAssembler() { + return _SimpleSpriteAssemble.apply(this, arguments) || this; + } + var _proto = MultiSimpleSpriteAssembler.prototype; + _proto.initData = function initData() { + var data = this._renderData; + data.createFlexData(0, this.verticesCount, this.indicesCount, this.getVfmt()); + var indices = data.iDatas[0]; + data.initQuadIndices(indices); + }; + _proto.getVfmt = function getVfmt() { + return _vertexFormat.vfmtPosUvColorTexId; + }; + _proto.getBuffer = function getBuffer() { + return cc.renderer._handle.getBuffer("mesh", this.getVfmt()); + }; + _proto.updateRenderData = function updateRenderData(sprite) { + _SimpleSpriteAssemble.prototype.updateRenderData.call(this, sprite); + if (sprite._texIdDirty) { + sprite._updateMultiTexId(sprite.getMaterial(0), sprite._spriteFrame._texture); + if (sprite._texIdDirty) { + this.updateTexId(sprite); + sprite._texIdDirty = false; + } + } + }; + _proto.updateRenderDataForSwitchMaterial = function updateRenderDataForSwitchMaterial(sprite) { + if (sprite._vertsDirty) { + this.updateUVs(sprite); + this.updateVerts(sprite); + sprite._vertsDirty = false; + } + if (sprite._texIdDirty) { + sprite._updateMultiTexId(sprite.getMaterial(0), sprite._spriteFrame._texture); + if (sprite._texIdDirty) { + this.updateTexId(sprite); + sprite._texIdDirty = false; + } + } + }; + return MultiSimpleSpriteAssembler; + })(_simple["default"]); + exports["default"] = MultiSimpleSpriteAssembler; + MultiSimpleSpriteAssembler.prototype.floatsPerVert = 6; + MultiSimpleSpriteAssembler.prototype.texIdOffset = 5; + MultiSimpleSpriteAssembler.prototype.isMulti = true; + module.exports = exports["default"]; + }), { + "../../../../webgl/vertex-format": 190, + "../2d/simple": 180 + } ], + 175: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _vertexFormat = require("../../../../webgl/vertex-format"); + var _sliced = _interopRequireDefault(require("../2d/sliced")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var MultiSlicedAssembler = (function(_SlicedAssembler) { + _inheritsLoose(MultiSlicedAssembler, _SlicedAssembler); + function MultiSlicedAssembler() { + return _SlicedAssembler.apply(this, arguments) || this; + } + var _proto = MultiSlicedAssembler.prototype; + _proto.initData = function initData(sprite) { + if (this._renderData.meshCount > 0) return; + this._renderData.createFlexData(0, this.verticesCount, this.indicesCount, this.getVfmt()); + var indices = this._renderData.iDatas[0]; + var indexOffset = 0; + for (var r = 0; r < 3; ++r) for (var c = 0; c < 3; ++c) { + var start = 4 * r + c; + indices[indexOffset++] = start; + indices[indexOffset++] = start + 1; + indices[indexOffset++] = start + 4; + indices[indexOffset++] = start + 1; + indices[indexOffset++] = start + 5; + indices[indexOffset++] = start + 4; + } + }; + _proto.getVfmt = function getVfmt() { + return _vertexFormat.vfmtPosUvColorTexId; + }; + _proto.getBuffer = function getBuffer() { + return cc.renderer._handle.getBuffer("mesh", this.getVfmt()); + }; + _proto.updateRenderData = function updateRenderData(sprite) { + _SlicedAssembler.prototype.updateRenderData.call(this, sprite); + if (sprite._texIdDirty) { + sprite._updateMultiTexId(sprite.getMaterial(0), sprite._spriteFrame._texture); + if (sprite._texIdDirty) { + this.updateTexId(sprite); + sprite._texIdDirty = false; + } + } + }; + _proto.updateRenderDataForSwitchMaterial = function updateRenderDataForSwitchMaterial(sprite) { + if (sprite._vertsDirty) { + this.updateUVs(sprite); + this.updateVerts(sprite); + sprite._vertsDirty = false; + } + if (sprite._texIdDirty) { + sprite._updateMultiTexId(sprite.getMaterial(0), sprite._spriteFrame._texture); + if (sprite._texIdDirty) { + this.updateTexId(sprite); + sprite._texIdDirty = false; + } + } + }; + return MultiSlicedAssembler; + })(_sliced["default"]); + exports["default"] = MultiSlicedAssembler; + MultiSlicedAssembler.prototype.floatsPerVert = 6; + MultiSlicedAssembler.prototype.texIdOffset = 5; + MultiSlicedAssembler.prototype.isMulti = true; + module.exports = exports["default"]; + }), { + "../../../../webgl/vertex-format": 190, + "../2d/sliced": 181 + } ], + 176: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _vertexFormat = require("../../../../webgl/vertex-format"); + var _tiled = _interopRequireDefault(require("../2d/tiled")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var MultiTiledAssembler = (function(_TiledAssembler) { + _inheritsLoose(MultiTiledAssembler, _TiledAssembler); + function MultiTiledAssembler() { + return _TiledAssembler.apply(this, arguments) || this; + } + var _proto = MultiTiledAssembler.prototype; + _proto.getVfmt = function getVfmt() { + return _vertexFormat.vfmtPosUvColorTexId; + }; + _proto.getBuffer = function getBuffer() { + return cc.renderer._handle.getBuffer("mesh", this.getVfmt()); + }; + _proto.updateRenderData = function updateRenderData(sprite) { + _TiledAssembler.prototype.updateRenderData.call(this, sprite); + sprite._texIdDirty && sprite._updateMultiTexId(sprite.getMaterial(0), sprite.spriteFrame._texture); + this.updateTexId(sprite); + sprite._texIdDirty = false; + }; + _proto.updateRenderDataForSwitchMaterial = function updateRenderDataForSwitchMaterial(sprite) { + var frame = sprite._spriteFrame; + var node = sprite.node; + var contentWidth = this.contentWidth = Math.abs(node.width); + var contentHeight = this.contentHeight = Math.abs(node.height); + var rect = frame._rect; + var leftWidth = frame.insetLeft, rightWidth = frame.insetRight, centerWidth = rect.width - leftWidth - rightWidth, topHeight = frame.insetTop, bottomHeight = frame.insetBottom, centerHeight = rect.height - topHeight - bottomHeight; + this.sizableWidth = contentWidth - leftWidth - rightWidth; + this.sizableHeight = contentHeight - topHeight - bottomHeight; + this.sizableWidth = this.sizableWidth > 0 ? this.sizableWidth : 0; + this.sizableHeight = this.sizableHeight > 0 ? this.sizableHeight : 0; + var hRepeat = this.hRepeat = 0 === centerWidth ? this.sizableWidth : this.sizableWidth / centerWidth; + var vRepeat = this.vRepeat = 0 === centerHeight ? this.sizableHeight : this.sizableHeight / centerHeight; + var row = this.row = Math.ceil(vRepeat + 2); + var col = this.col = Math.ceil(hRepeat + 2); + var count = row * col; + this.verticesCount = 4 * count; + this.indicesCount = 6 * count; + var renderData = this._renderData; + var flexBuffer = renderData._flexBuffer; + if (flexBuffer.reserve(this.verticesCount, this.indicesCount)) { + this._updateIndices(); + this.updateColor(sprite); + } + flexBuffer.used(this.verticesCount, this.indicesCount); + if (sprite._vertsDirty) { + this.updateUVs(sprite); + this.updateVerts(sprite); + sprite._vertsDirty = false; + } + sprite._texIdDirty && sprite._updateMultiTexId(sprite.getMaterial(0), sprite.spriteFrame._texture); + this.updateTexId(sprite); + sprite._texIdDirty = false; + }; + return MultiTiledAssembler; + })(_tiled["default"]); + exports["default"] = MultiTiledAssembler; + MultiTiledAssembler.prototype.floatsPerVert = 6; + MultiTiledAssembler.prototype.texIdOffset = 5; + MultiTiledAssembler.prototype.isMulti = true; + module.exports = exports["default"]; + }), { + "../../../../webgl/vertex-format": 190, + "../2d/tiled": 182 + } ], + 177: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _assembler2d = _interopRequireDefault(require("../../../../assembler-2d")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var Sprite = require("../../../../../components/CCSprite"); + var FillType = Sprite.FillType; + var BarFilledAssembler = (function(_Assembler2D) { + _inheritsLoose(BarFilledAssembler, _Assembler2D); + function BarFilledAssembler() { + return _Assembler2D.apply(this, arguments) || this; + } + var _proto = BarFilledAssembler.prototype; + _proto.updateRenderData = function updateRenderData(sprite) { + var frame = sprite._spriteFrame; + var assemblerChanged = this.packDynamicAtlasAndCheckMaterial(sprite, frame); + if (!assemblerChanged && sprite._vertsDirty) { + var fillStart = sprite._fillStart; + var fillRange = sprite._fillRange; + if (fillRange < 0) { + fillStart += fillRange; + fillRange = -fillRange; + } + fillRange = fillStart + fillRange; + fillStart = fillStart > 1 ? 1 : fillStart; + fillStart = fillStart < 0 ? 0 : fillStart; + fillRange = fillRange > 1 ? 1 : fillRange; + fillRange = fillRange < 0 ? 0 : fillRange; + fillRange -= fillStart; + fillRange = fillRange < 0 ? 0 : fillRange; + var fillEnd = fillStart + fillRange; + fillEnd = fillEnd > 1 ? 1 : fillEnd; + this.updateUVs(sprite, fillStart, fillEnd); + this.updateVerts(sprite, fillStart, fillEnd); + sprite._vertsDirty = false; + } + }; + _proto.updateUVs = function updateUVs(sprite, fillStart, fillEnd) { + var spriteFrame = sprite._spriteFrame; + var atlasWidth = spriteFrame._texture.width; + var atlasHeight = spriteFrame._texture.height; + var textureRect = spriteFrame._rect; + var ul, vb, ur, vt; + var quadUV0, quadUV1, quadUV2, quadUV3, quadUV4, quadUV5, quadUV6, quadUV7; + if (spriteFrame._rotated) { + ul = textureRect.x / atlasWidth; + vb = (textureRect.y + textureRect.width) / atlasHeight; + ur = (textureRect.x + textureRect.height) / atlasWidth; + vt = textureRect.y / atlasHeight; + quadUV0 = quadUV2 = ul; + quadUV4 = quadUV6 = ur; + quadUV3 = quadUV7 = vb; + quadUV1 = quadUV5 = vt; + } else { + ul = textureRect.x / atlasWidth; + vb = (textureRect.y + textureRect.height) / atlasHeight; + ur = (textureRect.x + textureRect.width) / atlasWidth; + vt = textureRect.y / atlasHeight; + quadUV0 = quadUV4 = ul; + quadUV2 = quadUV6 = ur; + quadUV1 = quadUV3 = vb; + quadUV5 = quadUV7 = vt; + } + var verts = this._renderData.vDatas[0]; + var uvOffset = this.uvOffset; + var floatsPerVert = this.floatsPerVert; + switch (sprite._fillType) { + case FillType.HORIZONTAL: + verts[uvOffset] = quadUV0 + (quadUV2 - quadUV0) * fillStart; + verts[uvOffset + 1] = quadUV1 + (quadUV3 - quadUV1) * fillStart; + verts[uvOffset + floatsPerVert] = quadUV0 + (quadUV2 - quadUV0) * fillEnd; + verts[uvOffset + floatsPerVert + 1] = quadUV1 + (quadUV3 - quadUV1) * fillEnd; + verts[uvOffset + 2 * floatsPerVert] = quadUV4 + (quadUV6 - quadUV4) * fillStart; + verts[uvOffset + 2 * floatsPerVert + 1] = quadUV5 + (quadUV7 - quadUV5) * fillStart; + verts[uvOffset + 3 * floatsPerVert] = quadUV4 + (quadUV6 - quadUV4) * fillEnd; + verts[uvOffset + 3 * floatsPerVert + 1] = quadUV5 + (quadUV7 - quadUV5) * fillEnd; + break; + + case FillType.VERTICAL: + verts[uvOffset] = quadUV0 + (quadUV4 - quadUV0) * fillStart; + verts[uvOffset + 1] = quadUV1 + (quadUV5 - quadUV1) * fillStart; + verts[uvOffset + floatsPerVert] = quadUV2 + (quadUV6 - quadUV2) * fillStart; + verts[uvOffset + floatsPerVert + 1] = quadUV3 + (quadUV7 - quadUV3) * fillStart; + verts[uvOffset + 2 * floatsPerVert] = quadUV0 + (quadUV4 - quadUV0) * fillEnd; + verts[uvOffset + 2 * floatsPerVert + 1] = quadUV1 + (quadUV5 - quadUV1) * fillEnd; + verts[uvOffset + 3 * floatsPerVert] = quadUV2 + (quadUV6 - quadUV2) * fillEnd; + verts[uvOffset + 3 * floatsPerVert + 1] = quadUV3 + (quadUV7 - quadUV3) * fillEnd; + break; + + default: + cc.errorID(2626); + } + }; + _proto.updateVerts = function updateVerts(sprite, fillStart, fillEnd) { + var node = sprite.node, width = node.width, height = node.height, appx = node.anchorX * width, appy = node.anchorY * height; + var l = -appx, b = -appy, r = width - appx, t = height - appy; + var progressStart, progressEnd; + switch (sprite._fillType) { + case FillType.HORIZONTAL: + progressStart = l + (r - l) * fillStart; + progressEnd = l + (r - l) * fillEnd; + l = progressStart; + r = progressEnd; + break; + + case FillType.VERTICAL: + progressStart = b + (t - b) * fillStart; + progressEnd = b + (t - b) * fillEnd; + b = progressStart; + t = progressEnd; + break; + + default: + cc.errorID(2626); + } + var local = this._local; + local[0] = l; + local[1] = b; + local[2] = r; + local[3] = t; + this.updateWorldVerts(sprite); + }; + return BarFilledAssembler; + })(_assembler2d["default"]); + exports["default"] = BarFilledAssembler; + module.exports = exports["default"]; + }), { + "../../../../../components/CCSprite": 101, + "../../../../assembler-2d": 147 + } ], + 178: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _assembler2d = _interopRequireDefault(require("../../../../assembler-2d")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var MeshSpriteAssembler = (function(_Assembler2D) { + _inheritsLoose(MeshSpriteAssembler, _Assembler2D); + function MeshSpriteAssembler() { + return _Assembler2D.apply(this, arguments) || this; + } + var _proto = MeshSpriteAssembler.prototype; + _proto.initData = function initData(sprite) { + this._renderData.createFlexData(0, 4, 6, this.getVfmt()); + }; + _proto.updateRenderData = function updateRenderData(sprite) { + var frame = sprite.spriteFrame; + var assemblerChanged = this.packDynamicAtlasAndCheckMaterial(sprite, frame); + if (!assemblerChanged && frame) { + var vertices = frame.vertices; + if (vertices) { + this.verticesCount = vertices.x.length; + this.indicesCount = vertices.triangles.length; + var renderData = this._renderData; + var flexBuffer = renderData._flexBuffer; + if (flexBuffer.reserve(this.verticesCount, this.indicesCount)) { + this.updateColor(sprite); + sprite._vertsDirty = true; + } + flexBuffer.used(this.verticesCount, this.indicesCount); + this.updateIndices(vertices.triangles); + if (sprite._vertsDirty) { + this.updateUVs(sprite); + this.updateVerts(sprite); + this.updateWorldVerts(sprite); + sprite._vertsDirty = false; + } + } + } + }; + _proto.updateIndices = function updateIndices(triangles) { + this._renderData.iDatas[0].set(triangles); + }; + _proto.updateUVs = function updateUVs(sprite) { + var vertices = sprite.spriteFrame.vertices, u = vertices.nu, v = vertices.nv; + var uvOffset = this.uvOffset; + var floatsPerVert = this.floatsPerVert; + var verts = this._renderData.vDatas[0]; + for (var i = 0; i < u.length; i++) { + var dstOffset = floatsPerVert * i + uvOffset; + verts[dstOffset] = u[i]; + verts[dstOffset + 1] = v[i]; + } + }; + _proto.updateVerts = function updateVerts(sprite) { + var node = sprite.node, contentWidth = Math.abs(node.width), contentHeight = Math.abs(node.height), appx = node.anchorX * contentWidth, appy = node.anchorY * contentHeight; + var frame = sprite.spriteFrame, vertices = frame.vertices, x = vertices.x, y = vertices.y, originalWidth = frame._originalSize.width, originalHeight = frame._originalSize.height, rectWidth = frame._rect.width, rectHeight = frame._rect.height, offsetX = frame._offset.x, offsetY = frame._offset.y, trimX = offsetX + (originalWidth - rectWidth) / 2, trimY = offsetY + (originalHeight - rectHeight) / 2; + var scaleX = contentWidth / (sprite.trim ? rectWidth : originalWidth), scaleY = contentHeight / (sprite.trim ? rectHeight : originalHeight); + var local = this._local; + if (sprite.trim) for (var _i = 0, _l = x.length; _i < _l; _i++) { + var _offset = 2 * _i; + local[_offset] = (x[_i] - trimX) * scaleX - appx; + local[_offset + 1] = (originalHeight - y[_i] - trimY) * scaleY - appy; + } else for (var i = 0, l = x.length; i < l; i++) { + var offset = 2 * i; + local[offset] = x[i] * scaleX - appx; + local[offset + 1] = (originalHeight - y[i]) * scaleY - appy; + } + if (frame._flipX) for (var _i2 = 0, _l2 = this.verticesCount; _i2 < _l2; _i2++) local[2 * _i2] = contentWidth - local[2 * _i2] - 2 * appx; + if (frame._flipY) for (var _i3 = 0, _l3 = this.verticesCount; _i3 < _l3; _i3++) local[2 * _i3 + 1] = contentHeight - local[2 * _i3 + 1] - 2 * appy; + }; + _proto.updateWorldVerts = function updateWorldVerts(sprite) { + var node = sprite.node; + var matrix = node._worldMatrix; + var matrixm = matrix.m; + var a = matrixm[0], b = matrixm[1], c = matrixm[4], d = matrixm[5], tx = matrixm[12], ty = matrixm[13]; + var local = this._local; + var world = this._renderData.vDatas[0]; + var floatsPerVert = this.floatsPerVert; + for (var i = 0, l = this.verticesCount; i < l; i++) { + var lx = local[2 * i]; + var ly = local[2 * i + 1]; + world[floatsPerVert * i] = lx * a + ly * c + tx; + world[floatsPerVert * i + 1] = lx * b + ly * d + ty; + } + }; + return MeshSpriteAssembler; + })(_assembler2d["default"]); + exports["default"] = MeshSpriteAssembler; + module.exports = exports["default"]; + }), { + "../../../../assembler-2d": 147 + } ], + 179: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _assembler2d = _interopRequireDefault(require("../../../../assembler-2d")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var PI_2 = 2 * Math.PI; + var _vertPos = [ cc.v2(0, 0), cc.v2(0, 0), cc.v2(0, 0), cc.v2(0, 0) ]; + var _vertices = [ 0, 0, 0, 0 ]; + var _uvs = [ 0, 0, 0, 0, 0, 0, 0, 0 ]; + var _intersectPoint_1 = [ cc.v2(0, 0), cc.v2(0, 0), cc.v2(0, 0), cc.v2(0, 0) ]; + var _intersectPoint_2 = [ cc.v2(0, 0), cc.v2(0, 0), cc.v2(0, 0), cc.v2(0, 0) ]; + var _center = cc.v2(0, 0); + var _triangles = []; + function _calcInsectedPoints(left, right, bottom, top, center, angle, intersectPoints) { + var sinAngle = Math.sin(angle); + var cosAngle = Math.cos(angle); + var tanAngle, cotAngle; + if (0 !== Math.cos(angle)) { + tanAngle = sinAngle / cosAngle; + if ((left - center.x) * cosAngle > 0) { + var yleft = center.y + tanAngle * (left - center.x); + intersectPoints[0].x = left; + intersectPoints[0].y = yleft; + } + if ((right - center.x) * cosAngle > 0) { + var yright = center.y + tanAngle * (right - center.x); + intersectPoints[2].x = right; + intersectPoints[2].y = yright; + } + } + if (0 !== Math.sin(angle)) { + cotAngle = cosAngle / sinAngle; + if ((top - center.y) * sinAngle > 0) { + var xtop = center.x + cotAngle * (top - center.y); + intersectPoints[3].x = xtop; + intersectPoints[3].y = top; + } + if ((bottom - center.y) * sinAngle > 0) { + var xbottom = center.x + cotAngle * (bottom - center.y); + intersectPoints[1].x = xbottom; + intersectPoints[1].y = bottom; + } + } + } + function _calculateVertices(sprite) { + var node = sprite.node, width = node.width, height = node.height, appx = node.anchorX * width, appy = node.anchorY * height; + var l = -appx, b = -appy, r = width - appx, t = height - appy; + var vertices = _vertices; + vertices[0] = l; + vertices[1] = b; + vertices[2] = r; + vertices[3] = t; + var fillCenter = sprite._fillCenter, cx = _center.x = Math.min(Math.max(0, fillCenter.x), 1) * (r - l) + l, cy = _center.y = Math.min(Math.max(0, fillCenter.y), 1) * (t - b) + b; + _vertPos[0].x = _vertPos[3].x = l; + _vertPos[1].x = _vertPos[2].x = r; + _vertPos[0].y = _vertPos[1].y = b; + _vertPos[2].y = _vertPos[3].y = t; + _triangles.length = 0; + cx !== vertices[0] && (_triangles[0] = [ 3, 0 ]); + cx !== vertices[2] && (_triangles[2] = [ 1, 2 ]); + cy !== vertices[1] && (_triangles[1] = [ 0, 1 ]); + cy !== vertices[3] && (_triangles[3] = [ 2, 3 ]); + } + function _calculateUVs(spriteFrame) { + var atlasWidth = spriteFrame._texture.width; + var atlasHeight = spriteFrame._texture.height; + var textureRect = spriteFrame._rect; + var u0, u1, v0, v1; + var uvs = _uvs; + if (spriteFrame._rotated) { + u0 = textureRect.x / atlasWidth; + u1 = (textureRect.x + textureRect.height) / atlasWidth; + v0 = textureRect.y / atlasHeight; + v1 = (textureRect.y + textureRect.width) / atlasHeight; + uvs[0] = uvs[2] = u0; + uvs[4] = uvs[6] = u1; + uvs[3] = uvs[7] = v1; + uvs[1] = uvs[5] = v0; + } else { + u0 = textureRect.x / atlasWidth; + u1 = (textureRect.x + textureRect.width) / atlasWidth; + v0 = textureRect.y / atlasHeight; + v1 = (textureRect.y + textureRect.height) / atlasHeight; + uvs[0] = uvs[4] = u0; + uvs[2] = uvs[6] = u1; + uvs[1] = uvs[3] = v1; + uvs[5] = uvs[7] = v0; + } + } + function _getVertAngle(start, end) { + var placementX, placementY; + placementX = end.x - start.x; + placementY = end.y - start.y; + if (0 === placementX && 0 === placementY) return; + if (0 === placementX) return placementY > 0 ? .5 * Math.PI : 1.5 * Math.PI; + var angle = Math.atan(placementY / placementX); + placementX < 0 && (angle += Math.PI); + return angle; + } + var RadialFilledAssembler = (function(_Assembler2D) { + _inheritsLoose(RadialFilledAssembler, _Assembler2D); + function RadialFilledAssembler() { + return _Assembler2D.apply(this, arguments) || this; + } + var _proto = RadialFilledAssembler.prototype; + _proto.initData = function initData(sprite) { + this._renderData.createFlexData(0, 4, 6, this.getVfmt()); + this.updateIndices(); + }; + _proto.updateRenderData = function updateRenderData(sprite) { + _Assembler2D.prototype.updateRenderData.call(this, sprite); + var frame = sprite.spriteFrame; + var assemblerChanged = this.packDynamicAtlasAndCheckMaterial(sprite, frame); + assemblerChanged || this._updateRenderData(sprite); + }; + _proto._updateRenderData = function _updateRenderData(sprite) { + var frame = sprite.spriteFrame; + if (sprite._vertsDirty) { + var fillStart = sprite._fillStart; + var fillRange = sprite._fillRange; + if (fillRange < 0) { + fillStart += fillRange; + fillRange = -fillRange; + } + while (fillStart >= 1) fillStart -= 1; + while (fillStart < 0) fillStart += 1; + fillStart *= PI_2; + fillRange *= PI_2; + _calculateVertices(sprite); + _calculateUVs(frame); + _calcInsectedPoints(_vertices[0], _vertices[2], _vertices[1], _vertices[3], _center, fillStart, _intersectPoint_1); + _calcInsectedPoints(_vertices[0], _vertices[2], _vertices[1], _vertices[3], _center, fillStart + fillRange, _intersectPoint_2); + this.updateVerts(sprite, fillStart, fillRange); + sprite._vertsDirty = false; + } + }; + _proto.updateVerts = function updateVerts(sprite, fillStart, fillRange) { + var fillEnd = fillStart + fillRange; + var local = this._local; + local.length = 0; + var offset = 0; + var floatsPerTriangle = 3 * this.floatsPerVert; + for (var triangleIndex = 0; triangleIndex < 4; ++triangleIndex) { + var triangle = _triangles[triangleIndex]; + if (!triangle) continue; + if (fillRange >= PI_2) { + local.length = offset + floatsPerTriangle; + this._generateTriangle(local, offset, _center, _vertPos[triangle[0]], _vertPos[triangle[1]]); + offset += floatsPerTriangle; + continue; + } + var startAngle = _getVertAngle(_center, _vertPos[triangle[0]]); + var endAngle = _getVertAngle(_center, _vertPos[triangle[1]]); + endAngle < startAngle && (endAngle += PI_2); + startAngle -= PI_2; + endAngle -= PI_2; + for (var testIndex = 0; testIndex < 3; ++testIndex) { + if (startAngle >= fillEnd) ; else if (startAngle >= fillStart) { + local.length = offset + floatsPerTriangle; + endAngle >= fillEnd ? this._generateTriangle(local, offset, _center, _vertPos[triangle[0]], _intersectPoint_2[triangleIndex]) : this._generateTriangle(local, offset, _center, _vertPos[triangle[0]], _vertPos[triangle[1]]); + offset += floatsPerTriangle; + } else if (endAngle <= fillStart) ; else if (endAngle <= fillEnd) { + local.length = offset + floatsPerTriangle; + this._generateTriangle(local, offset, _center, _intersectPoint_1[triangleIndex], _vertPos[triangle[1]]); + offset += floatsPerTriangle; + } else { + local.length = offset + floatsPerTriangle; + this._generateTriangle(local, offset, _center, _intersectPoint_1[triangleIndex], _intersectPoint_2[triangleIndex]); + offset += floatsPerTriangle; + } + startAngle += PI_2; + endAngle += PI_2; + } + } + this.allocWorldVerts(sprite); + this.updateWorldVerts(sprite); + }; + _proto.allocWorldVerts = function allocWorldVerts(sprite) { + var color = sprite.node._color._val; + var renderData = this._renderData; + var floatsPerVert = this.floatsPerVert; + var local = this._local; + var verticesCount = local.length / floatsPerVert; + this.verticesCount = this.indicesCount = verticesCount; + var flexBuffer = renderData._flexBuffer; + flexBuffer.reserve(verticesCount, verticesCount) && this.updateIndices(); + flexBuffer.used(this.verticesCount, this.indicesCount); + var verts = renderData.vDatas[0], uintVerts = renderData.uintVDatas[0]; + var uvOffset = this.uvOffset; + for (var offset = 0; offset < local.length; offset += floatsPerVert) { + var start = offset + uvOffset; + verts[start] = local[start]; + verts[start + 1] = local[start + 1]; + uintVerts[start + 2] = color; + } + }; + _proto.updateIndices = function updateIndices() { + var iData = this._renderData.iDatas[0]; + for (var i = 0; i < iData.length; i++) iData[i] = i; + }; + _proto.updateWorldVerts = function updateWorldVerts(sprite) { + var node = sprite.node; + var matrix = node._worldMatrix; + var matrixm = matrix.m, a = matrixm[0], b = matrixm[1], c = matrixm[4], d = matrixm[5], tx = matrixm[12], ty = matrixm[13]; + var local = this._local; + var world = this._renderData.vDatas[0]; + var floatsPerVert = this.floatsPerVert; + for (var offset = 0; offset < local.length; offset += floatsPerVert) { + var x = local[offset]; + var y = local[offset + 1]; + world[offset] = x * a + y * c + tx; + world[offset + 1] = x * b + y * d + ty; + } + }; + _proto._generateTriangle = function _generateTriangle(verts, offset, vert0, vert1, vert2) { + var vertices = _vertices; + var v0x = vertices[0]; + var v0y = vertices[1]; + var v1x = vertices[2]; + var v1y = vertices[3]; + var floatsPerVert = this.floatsPerVert; + verts[offset] = vert0.x; + verts[offset + 1] = vert0.y; + verts[offset + floatsPerVert] = vert1.x; + verts[offset + floatsPerVert + 1] = vert1.y; + verts[offset + 2 * floatsPerVert] = vert2.x; + verts[offset + 2 * floatsPerVert + 1] = vert2.y; + var uvOffset = this.uvOffset; + var progressX, progressY; + progressX = (vert0.x - v0x) / (v1x - v0x); + progressY = (vert0.y - v0y) / (v1y - v0y); + this._generateUV(progressX, progressY, verts, offset + uvOffset); + progressX = (vert1.x - v0x) / (v1x - v0x); + progressY = (vert1.y - v0y) / (v1y - v0y); + this._generateUV(progressX, progressY, verts, offset + floatsPerVert + uvOffset); + progressX = (vert2.x - v0x) / (v1x - v0x); + progressY = (vert2.y - v0y) / (v1y - v0y); + this._generateUV(progressX, progressY, verts, offset + 2 * floatsPerVert + uvOffset); + }; + _proto._generateUV = function _generateUV(progressX, progressY, verts, offset) { + var uvs = _uvs; + var px1 = uvs[0] + (uvs[2] - uvs[0]) * progressX; + var px2 = uvs[4] + (uvs[6] - uvs[4]) * progressX; + var py1 = uvs[1] + (uvs[3] - uvs[1]) * progressX; + var py2 = uvs[5] + (uvs[7] - uvs[5]) * progressX; + verts[offset] = px1 + (px2 - px1) * progressY; + verts[offset + 1] = py1 + (py2 - py1) * progressY; + }; + return RadialFilledAssembler; + })(_assembler2d["default"]); + exports["default"] = RadialFilledAssembler; + module.exports = exports["default"]; + }), { + "../../../../assembler-2d": 147 + } ], + 180: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _assembler2d = _interopRequireDefault(require("../../../../assembler-2d")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var SimpleSpriteAssembler = (function(_Assembler2D) { + _inheritsLoose(SimpleSpriteAssembler, _Assembler2D); + function SimpleSpriteAssembler() { + return _Assembler2D.apply(this, arguments) || this; + } + var _proto = SimpleSpriteAssembler.prototype; + _proto.updateRenderData = function updateRenderData(sprite) { + var assemblerChanged = this.packDynamicAtlasAndCheckMaterial(sprite, sprite._spriteFrame); + if (!assemblerChanged && sprite._vertsDirty) { + this.updateUVs(sprite); + this.updateVerts(sprite); + sprite._vertsDirty = false; + } + }; + _proto.updateUVs = function updateUVs(sprite) { + var uv = sprite._spriteFrame.uv; + var uvOffset = this.uvOffset; + var floatsPerVert = this.floatsPerVert; + var verts = this._renderData.vDatas[0]; + for (var i = 0; i < 4; i++) { + var srcOffset = 2 * i; + var dstOffset = floatsPerVert * i + uvOffset; + verts[dstOffset] = uv[srcOffset]; + verts[dstOffset + 1] = uv[srcOffset + 1]; + } + }; + _proto.updateVerts = function updateVerts(sprite) { + var node = sprite.node, cw = node.width, ch = node.height, appx = node.anchorX * cw, appy = node.anchorY * ch, l, b, r, t; + if (sprite.trim) { + l = -appx; + b = -appy; + r = cw - appx; + t = ch - appy; + } else { + var frame = sprite.spriteFrame, ow = frame._originalSize.width, oh = frame._originalSize.height, rw = frame._rect.width, rh = frame._rect.height, offset = frame._offset, scaleX = cw / ow, scaleY = ch / oh; + var trimLeft = offset.x + (ow - rw) / 2; + var trimRight = offset.x - (ow - rw) / 2; + var trimBottom = offset.y + (oh - rh) / 2; + var trimTop = offset.y - (oh - rh) / 2; + l = trimLeft * scaleX - appx; + b = trimBottom * scaleY - appy; + r = cw + trimRight * scaleX - appx; + t = ch + trimTop * scaleY - appy; + } + var local = this._local; + local[0] = l; + local[1] = b; + local[2] = r; + local[3] = t; + this.updateWorldVerts(sprite); + }; + return SimpleSpriteAssembler; + })(_assembler2d["default"]); + exports["default"] = SimpleSpriteAssembler; + module.exports = exports["default"]; + }), { + "../../../../assembler-2d": 147 + } ], + 181: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _assembler2d = _interopRequireDefault(require("../../../../assembler-2d")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var SlicedAssembler = (function(_Assembler2D) { + _inheritsLoose(SlicedAssembler, _Assembler2D); + function SlicedAssembler() { + return _Assembler2D.apply(this, arguments) || this; + } + var _proto = SlicedAssembler.prototype; + _proto.initData = function initData(sprite) { + if (this._renderData.meshCount > 0) return; + this._renderData.createData(0, this.verticesFloats, this.indicesCount); + var indices = this._renderData.iDatas[0]; + var indexOffset = 0; + for (var r = 0; r < 3; ++r) for (var c = 0; c < 3; ++c) { + var start = 4 * r + c; + indices[indexOffset++] = start; + indices[indexOffset++] = start + 1; + indices[indexOffset++] = start + 4; + indices[indexOffset++] = start + 1; + indices[indexOffset++] = start + 5; + indices[indexOffset++] = start + 4; + } + }; + _proto.initLocal = function initLocal() { + this._local = []; + this._local.length = 8; + }; + _proto.updateRenderData = function updateRenderData(sprite) { + var frame = sprite._spriteFrame; + var assemblerChanged = this.packDynamicAtlasAndCheckMaterial(sprite, frame); + if (!assemblerChanged && sprite._vertsDirty) { + this.updateUVs(sprite); + this.updateVerts(sprite); + sprite._vertsDirty = false; + } + }; + _proto.updateVerts = function updateVerts(sprite) { + var node = sprite.node, width = node.width, height = node.height, appx = node.anchorX * width, appy = node.anchorY * height; + var frame = sprite.spriteFrame; + var leftWidth = frame.insetLeft; + var rightWidth = frame.insetRight; + var topHeight = frame.insetTop; + var bottomHeight = frame.insetBottom; + var sizableWidth = width - leftWidth - rightWidth; + var sizableHeight = height - topHeight - bottomHeight; + var xScale = width / (leftWidth + rightWidth); + var yScale = height / (topHeight + bottomHeight); + xScale = isNaN(xScale) || xScale > 1 ? 1 : xScale; + yScale = isNaN(yScale) || yScale > 1 ? 1 : yScale; + sizableWidth = sizableWidth < 0 ? 0 : sizableWidth; + sizableHeight = sizableHeight < 0 ? 0 : sizableHeight; + var local = this._local; + local[0] = -appx; + local[1] = -appy; + local[2] = leftWidth * xScale - appx; + local[3] = bottomHeight * yScale - appy; + local[4] = local[2] + sizableWidth; + local[5] = local[3] + sizableHeight; + local[6] = width - appx; + local[7] = height - appy; + this.updateWorldVerts(sprite); + }; + _proto.updateUVs = function updateUVs(sprite) { + var verts = this._renderData.vDatas[0]; + var uvSliced = sprite.spriteFrame.uvSliced; + var uvOffset = this.uvOffset; + var floatsPerVert = this.floatsPerVert; + for (var row = 0; row < 4; ++row) for (var col = 0; col < 4; ++col) { + var vid = 4 * row + col; + var uv = uvSliced[vid]; + var voffset = vid * floatsPerVert; + verts[voffset + uvOffset] = uv.u; + verts[voffset + uvOffset + 1] = uv.v; + } + }; + _proto.updateWorldVerts = function updateWorldVerts(sprite) { + var matrix = sprite.node._worldMatrix; + var matrixm = matrix.m, a = matrixm[0], b = matrixm[1], c = matrixm[4], d = matrixm[5], tx = matrixm[12], ty = matrixm[13]; + var local = this._local; + var world = this._renderData.vDatas[0]; + var floatsPerVert = this.floatsPerVert; + for (var row = 0; row < 4; ++row) { + var localRowY = local[2 * row + 1]; + for (var col = 0; col < 4; ++col) { + var localColX = local[2 * col]; + var worldIndex = (4 * row + col) * floatsPerVert; + world[worldIndex] = localColX * a + localRowY * c + tx; + world[worldIndex + 1] = localColX * b + localRowY * d + ty; + } + } + }; + return SlicedAssembler; + })(_assembler2d["default"]); + exports["default"] = SlicedAssembler; + Object.assign(SlicedAssembler.prototype, { + verticesCount: 16, + indicesCount: 54 + }); + module.exports = exports["default"]; + }), { + "../../../../assembler-2d": 147 + } ], + 182: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _assembler2d = _interopRequireDefault(require("../../../../assembler-2d")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var TiledAssembler = (function(_Assembler2D) { + _inheritsLoose(TiledAssembler, _Assembler2D); + function TiledAssembler() { + return _Assembler2D.apply(this, arguments) || this; + } + var _proto = TiledAssembler.prototype; + _proto.initData = function initData(sprite) { + this.verticesCount = 0; + this.contentWidth = 0; + this.contentHeight = 0; + this.rectWidth = 0; + this.rectHeight = 0; + this.hRepeat = 0; + this.vRepeat = 0; + this.row = 0; + this.col = 0; + this._renderData.createFlexData(0, 4, 6, this.getVfmt()); + this._updateIndices(); + }; + _proto.initLocal = function initLocal() { + this._local = { + x: [], + y: [] + }; + }; + _proto._updateIndices = function _updateIndices() { + var iData = this._renderData.iDatas[0]; + for (var i = 0, vid = 0, l = iData.length; i < l; i += 6, vid += 4) { + iData[i] = vid; + iData[i + 1] = vid + 1; + iData[i + 2] = vid + 2; + iData[i + 3] = vid + 1; + iData[i + 4] = vid + 3; + iData[i + 5] = vid + 2; + } + }; + _proto.updateRenderData = function updateRenderData(sprite) { + var frame = sprite._spriteFrame; + var assemblerChanged = this.packDynamicAtlasAndCheckMaterial(sprite, frame); + if (!assemblerChanged) { + var node = sprite.node; + var contentWidth = this.contentWidth = Math.abs(node.width); + var contentHeight = this.contentHeight = Math.abs(node.height); + var rect = frame._rect; + var leftWidth = frame.insetLeft, rightWidth = frame.insetRight, centerWidth = rect.width - leftWidth - rightWidth, topHeight = frame.insetTop, bottomHeight = frame.insetBottom, centerHeight = rect.height - topHeight - bottomHeight; + this.sizableWidth = contentWidth - leftWidth - rightWidth; + this.sizableHeight = contentHeight - topHeight - bottomHeight; + this.sizableWidth = this.sizableWidth > 0 ? this.sizableWidth : 0; + this.sizableHeight = this.sizableHeight > 0 ? this.sizableHeight : 0; + var hRepeat = this.hRepeat = 0 === centerWidth ? this.sizableWidth : this.sizableWidth / centerWidth; + var vRepeat = this.vRepeat = 0 === centerHeight ? this.sizableHeight : this.sizableHeight / centerHeight; + var row = this.row = Math.ceil(vRepeat + 2); + var col = this.col = Math.ceil(hRepeat + 2); + var count = row * col; + this.verticesCount = 4 * count; + this.indicesCount = 6 * count; + var renderData = this._renderData; + var flexBuffer = renderData._flexBuffer; + if (flexBuffer.reserve(this.verticesCount, this.indicesCount)) { + this._updateIndices(); + this.updateColor(sprite); + } + flexBuffer.used(this.verticesCount, this.indicesCount); + if (sprite._vertsDirty) { + this.updateUVs(sprite); + this.updateVerts(sprite); + sprite._vertsDirty = false; + } + } + }; + _proto.updateVerts = function updateVerts(sprite) { + var frame = sprite._spriteFrame; + var rect = frame._rect; + var node = sprite.node, appx = node.anchorX * node.width, appy = node.anchorY * node.height; + var row = this.row, col = this.col, contentWidth = this.contentWidth, contentHeight = this.contentHeight; + var _this$_local = this._local, x = _this$_local.x, y = _this$_local.y; + x.length = y.length = 0; + var leftWidth = frame.insetLeft, rightWidth = frame.insetRight, centerWidth = rect.width - leftWidth - rightWidth, topHeight = frame.insetTop, bottomHeight = frame.insetBottom, centerHeight = rect.height - topHeight - bottomHeight; + var xScale = node.width / (leftWidth + rightWidth) > 1 ? 1 : node.width / (leftWidth + rightWidth); + var yScale = node.height / (topHeight + bottomHeight) > 1 ? 1 : node.height / (topHeight + bottomHeight); + var offsetWidth = 0, offsetHeight = 0; + offsetWidth = centerWidth > 0 ? Math.floor(1e3 * this.sizableWidth) / 1e3 % centerWidth === 0 ? centerWidth : this.sizableWidth % centerWidth : this.sizableWidth; + offsetHeight = centerHeight > 0 ? Math.floor(1e3 * this.sizableHeight) / 1e3 % centerHeight === 0 ? centerHeight : this.sizableHeight % centerHeight : this.sizableHeight; + for (var i = 0; i <= col; i++) 0 === i ? x[i] = -appx : i > 0 && i < col ? x[i] = 1 === i ? leftWidth * xScale + Math.min(centerWidth, this.sizableWidth) - appx : centerWidth > 0 ? i === col - 1 ? leftWidth + offsetWidth + centerWidth * (i - 2) - appx : leftWidth + Math.min(centerWidth, this.sizableWidth) + centerWidth * (i - 2) - appx : leftWidth + this.sizableWidth - appx : i === col && (x[i] = Math.min(leftWidth + this.sizableWidth + rightWidth, contentWidth) - appx); + for (var _i = 0; _i <= row; _i++) 0 === _i ? y[_i] = -appy : _i > 0 && _i < row ? y[_i] = 1 === _i ? bottomHeight * yScale + Math.min(centerHeight, this.sizableHeight) - appy : centerHeight > 0 ? _i === row - 1 ? bottomHeight + offsetHeight + (_i - 2) * centerHeight - appy : bottomHeight + Math.min(centerHeight, this.sizableHeight) + (_i - 2) * centerHeight - appy : bottomHeight + this.sizableHeight - appy : _i === row && (y[_i] = Math.min(bottomHeight + this.sizableHeight + topHeight, contentHeight) - appy); + this.updateWorldVerts(sprite); + }; + _proto.updateWorldVerts = function updateWorldVerts(sprite) { + var renderData = this._renderData; + var local = this._local; + var localX = local.x, localY = local.y; + var world = renderData.vDatas[0]; + var row = this.row, col = this.col; + var matrix = sprite.node._worldMatrix; + var matrixm = matrix.m; + var a = matrixm[0], b = matrixm[1], c = matrixm[4], d = matrixm[5], tx = matrixm[12], ty = matrixm[13]; + var x, x1, y, y1; + var floatsPerVert = this.floatsPerVert; + var vertexOffset = 0; + for (var yindex = 0, ylength = row; yindex < ylength; ++yindex) { + y = localY[yindex]; + y1 = localY[yindex + 1]; + for (var xindex = 0, xlength = col; xindex < xlength; ++xindex) { + x = localX[xindex]; + x1 = localX[xindex + 1]; + world[vertexOffset] = x * a + y * c + tx; + world[vertexOffset + 1] = x * b + y * d + ty; + vertexOffset += floatsPerVert; + world[vertexOffset] = x1 * a + y * c + tx; + world[vertexOffset + 1] = x1 * b + y * d + ty; + vertexOffset += floatsPerVert; + world[vertexOffset] = x * a + y1 * c + tx; + world[vertexOffset + 1] = x * b + y1 * d + ty; + vertexOffset += floatsPerVert; + world[vertexOffset] = x1 * a + y1 * c + tx; + world[vertexOffset + 1] = x1 * b + y1 * d + ty; + vertexOffset += floatsPerVert; + } + } + }; + _proto.updateUVs = function updateUVs(sprite) { + var verts = this._renderData.vDatas[0]; + if (!verts) return; + var frame = sprite._spriteFrame; + var rect = frame._rect; + var leftWidth = frame.insetLeft, rightWidth = frame.insetRight, centerWidth = rect.width - leftWidth - rightWidth, topHeight = frame.insetTop, bottomHeight = frame.insetBottom, centerHeight = rect.height - topHeight - bottomHeight; + var row = this.row, col = this.col, hRepeat = this.hRepeat, vRepeat = this.vRepeat; + var coefu = 0, coefv = 0; + var uv = sprite.spriteFrame.uv; + var uvSliced = sprite.spriteFrame.uvSliced; + var rotated = sprite.spriteFrame._rotated; + var floatsPerVert = this.floatsPerVert, uvOffset = this.uvOffset; + var tempXVerts = [], tempYVerts = []; + for (var yindex = 0, ylength = row; yindex < ylength; ++yindex) { + coefv = this.sizableHeight > centerHeight ? this.sizableHeight >= yindex * centerHeight ? 1 : vRepeat % 1 : vRepeat; + for (var xindex = 0, xlength = col; xindex < xlength; ++xindex) { + coefu = this.sizableWidth > centerWidth ? this.sizableWidth >= xindex * centerWidth ? 1 : hRepeat % 1 : hRepeat; + if (rotated) { + if (0 === yindex) { + tempXVerts[0] = uvSliced[0].u; + tempXVerts[1] = uvSliced[0].u; + tempXVerts[2] = uvSliced[4].u + (uvSliced[8].u - uvSliced[4].u) * coefv; + } else if (yindex < row - 1) { + tempXVerts[0] = uvSliced[4].u; + tempXVerts[1] = uvSliced[4].u; + tempXVerts[2] = uvSliced[4].u + (uvSliced[8].u - uvSliced[4].u) * coefv; + } else if (yindex === row - 1) { + tempXVerts[0] = uvSliced[8].u; + tempXVerts[1] = uvSliced[8].u; + tempXVerts[2] = uvSliced[12].u; + } + if (0 === xindex) { + tempYVerts[0] = uvSliced[0].v; + tempYVerts[1] = uvSliced[1].v + (uvSliced[2].v - uvSliced[1].v) * coefu; + tempYVerts[2] = uvSliced[0].v; + } else if (xindex < col - 1) { + tempYVerts[0] = uvSliced[1].v; + tempYVerts[1] = uvSliced[1].v + (uvSliced[2].v - uvSliced[1].v) * coefu; + tempYVerts[2] = uvSliced[1].v; + } else if (xindex === col - 1) { + tempYVerts[0] = uvSliced[2].v; + tempYVerts[1] = uvSliced[3].v; + tempYVerts[2] = uvSliced[2].v; + } + tempXVerts[3] = tempXVerts[2]; + tempYVerts[3] = tempYVerts[1]; + } else { + if (0 === xindex) { + tempXVerts[0] = uvSliced[0].u; + tempXVerts[1] = uvSliced[1].u + (uvSliced[2].u - uvSliced[1].u) * coefu; + tempXVerts[2] = uv[0]; + } else if (xindex < col - 1) { + tempXVerts[0] = uvSliced[1].u; + tempXVerts[1] = uvSliced[1].u + (uvSliced[2].u - uvSliced[1].u) * coefu; + tempXVerts[2] = uvSliced[1].u; + } else if (xindex === col - 1) { + tempXVerts[0] = uvSliced[2].u; + tempXVerts[1] = uvSliced[3].u; + tempXVerts[2] = uvSliced[2].u; + } + if (0 === yindex) { + tempYVerts[0] = uvSliced[0].v; + tempYVerts[1] = uvSliced[0].v; + tempYVerts[2] = uvSliced[4].v + (uvSliced[8].v - uvSliced[4].v) * coefv; + } else if (yindex < row - 1) { + tempYVerts[0] = uvSliced[4].v; + tempYVerts[1] = uvSliced[4].v; + tempYVerts[2] = uvSliced[4].v + (uvSliced[8].v - uvSliced[4].v) * coefv; + } else if (yindex === row - 1) { + tempYVerts[0] = uvSliced[8].v; + tempYVerts[1] = uvSliced[8].v; + tempYVerts[2] = uvSliced[12].v; + } + tempXVerts[3] = tempXVerts[1]; + tempYVerts[3] = tempYVerts[2]; + } + verts[uvOffset] = tempXVerts[0]; + verts[uvOffset + 1] = tempYVerts[0]; + uvOffset += floatsPerVert; + verts[uvOffset] = tempXVerts[1]; + verts[uvOffset + 1] = tempYVerts[1]; + uvOffset += floatsPerVert; + verts[uvOffset] = tempXVerts[2]; + verts[uvOffset + 1] = tempYVerts[2]; + uvOffset += floatsPerVert; + verts[uvOffset] = tempXVerts[3]; + verts[uvOffset + 1] = tempYVerts[3]; + uvOffset += floatsPerVert; + } + } + }; + return TiledAssembler; + })(_assembler2d["default"]); + exports["default"] = TiledAssembler; + module.exports = exports["default"]; + }), { + "../../../../assembler-2d": 147 + } ], + 183: [ (function(require, module, exports) { + "use strict"; + var _assembler = _interopRequireDefault(require("../../../assembler")); + var _CCSprite = require("../../../../components/CCSprite"); + var _simple = _interopRequireDefault(require("./2d/simple")); + var _sliced = _interopRequireDefault(require("./2d/sliced")); + var _tiled = _interopRequireDefault(require("./2d/tiled")); + var _radialFilled = _interopRequireDefault(require("./2d/radial-filled")); + var _barFilled = _interopRequireDefault(require("./2d/bar-filled")); + var _mesh = _interopRequireDefault(require("./2d/mesh")); + var _simple2 = _interopRequireDefault(require("./3d/simple")); + var _sliced2 = _interopRequireDefault(require("./3d/sliced")); + var _tiled2 = _interopRequireDefault(require("./3d/tiled")); + var _radialFilled2 = _interopRequireDefault(require("./3d/radial-filled")); + var _barFilled2 = _interopRequireDefault(require("./3d/bar-filled")); + var _mesh2 = _interopRequireDefault(require("./3d/mesh")); + var _simple3 = _interopRequireDefault(require("./2d-multi/simple")); + var _sliced3 = _interopRequireDefault(require("./2d-multi/sliced")); + var _tiled3 = _interopRequireDefault(require("./2d-multi/tiled")); + var _radialFilled3 = _interopRequireDefault(require("./2d-multi/radial-filled")); + var _barFilled3 = _interopRequireDefault(require("./2d-multi/bar-filled")); + var _mesh3 = _interopRequireDefault(require("./2d-multi/mesh")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + var ctor = { + getConstructor: function getConstructor(sprite) { + var is3DNode = sprite.node.is3DNode; + var material = sprite.getMaterials()[0]; + var isMultiMaterial = material && material.material.isMultiSupport(); + var ctor = is3DNode ? _simple2["default"] : isMultiMaterial ? _simple3["default"] : _simple["default"]; + switch (sprite.type) { + case _CCSprite.Type.SLICED: + ctor = is3DNode ? _sliced2["default"] : isMultiMaterial ? _sliced3["default"] : _sliced["default"]; + break; + + case _CCSprite.Type.TILED: + ctor = is3DNode ? _tiled2["default"] : isMultiMaterial ? _tiled3["default"] : _tiled["default"]; + break; + + case _CCSprite.Type.FILLED: + ctor = sprite._fillType === _CCSprite.FillType.RADIAL ? is3DNode ? _radialFilled2["default"] : isMultiMaterial ? _radialFilled3["default"] : _radialFilled["default"] : is3DNode ? _barFilled2["default"] : isMultiMaterial ? _barFilled3["default"] : _barFilled["default"]; + break; + + case _CCSprite.Type.MESH: + ctor = is3DNode ? _mesh2["default"] : isMultiMaterial ? _mesh3["default"] : _mesh["default"]; + } + return ctor; + }, + Simple: _simple["default"], + Sliced: _sliced["default"], + Tiled: _tiled["default"], + RadialFilled: _radialFilled["default"], + BarFilled: _barFilled["default"], + Mesh: _mesh["default"], + Simple3D: _simple2["default"], + Sliced3D: _sliced2["default"], + Tiled3D: _tiled2["default"], + RadialFilled3D: _radialFilled2["default"], + BarFilled3D: _barFilled2["default"], + Mesh3D: _mesh2["default"], + SimpleMulti: _simple3["default"], + SlicedMulti: _sliced3["default"], + TiledMulti: _tiled3["default"], + RadialFilledMulti: _radialFilled3["default"], + BarFilledMulti: _barFilled3["default"], + MeshMulti: _mesh3["default"] + }; + _assembler["default"].register(cc.Sprite, ctor); + }), { + "../../../../components/CCSprite": 101, + "../../../assembler": 149, + "./2d-multi/bar-filled": 171, + "./2d-multi/mesh": 172, + "./2d-multi/radial-filled": 173, + "./2d-multi/simple": 174, + "./2d-multi/sliced": 175, + "./2d-multi/tiled": 176, + "./2d/bar-filled": 177, + "./2d/mesh": 178, + "./2d/radial-filled": 179, + "./2d/simple": 180, + "./2d/sliced": 181, + "./2d/tiled": 182, + "./3d/bar-filled": void 0, + "./3d/mesh": void 0, + "./3d/radial-filled": void 0, + "./3d/simple": void 0, + "./3d/sliced": void 0, + "./3d/tiled": void 0 + } ], + 184: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var FlexBuffer = (function() { + function FlexBuffer(handler, index, verticesCount, indicesCount, vfmt) { + this._handler = handler; + this._index = index; + this._vfmt = vfmt; + this._verticesBytes = vfmt._bytes; + this._initVerticesCount = verticesCount; + this._initIndicesCount = indicesCount; + this.reset(); + } + var _proto = FlexBuffer.prototype; + _proto._reallocVData = function _reallocVData(floatsCount, oldData) { + this.vData = new Float32Array(floatsCount); + this.uintVData = new Uint32Array(this.vData.buffer); + oldData && this.vData.set(oldData); + this._handler.updateMesh(this._index, this.vData, this.iData); + }; + _proto._reallocIData = function _reallocIData(indicesCount, oldData) { + this.iData = new Uint16Array(indicesCount); + oldData && this.iData.set(oldData); + this._handler.updateMesh(this._index, this.vData, this.iData); + }; + _proto.reserve = function reserve(verticesCount, indicesCount) { + var floatsCount = verticesCount * this._verticesBytes >> 2; + var newFloatsCount = this.vData.length; + var realloced = false; + if (floatsCount > newFloatsCount) { + while (newFloatsCount < floatsCount) newFloatsCount *= 2; + this._reallocVData(newFloatsCount, this.vData); + realloced = true; + } + var newIndicesCount = this.iData.length; + if (indicesCount > newIndicesCount) { + while (newIndicesCount < indicesCount) newIndicesCount *= 2; + this._reallocIData(indicesCount, this.iData); + realloced = true; + } + return realloced; + }; + _proto.used = function used(verticesCount, indicesCount) { + this.usedVertices = verticesCount; + this.usedIndices = indicesCount; + this.usedVerticesFloats = verticesCount * this._verticesBytes >> 2; + this._handler.updateMeshRange(verticesCount, indicesCount); + }; + _proto.reset = function reset() { + var floatsCount = this._initVerticesCount * this._verticesBytes >> 2; + this._reallocVData(floatsCount); + this._reallocIData(this._initIndicesCount); + this.usedVertices = 0; + this.usedVerticesFloats = 0; + this.usedIndices = 0; + }; + return FlexBuffer; + })(); + exports["default"] = FlexBuffer; + cc.FlexBuffer = FlexBuffer; + module.exports = exports["default"]; + }), {} ], + 185: [ (function(require, module, exports) { + "use strict"; + var _gfx = _interopRequireDefault(require("../../../renderer/gfx")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + var FIX_IOS14_BUFFER = (cc.sys.os === cc.sys.OS_IOS || cc.sys.os === cc.sys.OS_OSX) && cc.sys.isBrowser && /(OS 1[4-9])|(Version\/1[4-9])/.test(window.navigator.userAgent); + var MeshBuffer = cc.Class({ + name: "cc.MeshBuffer", + ctor: function ctor(batcher, vertexFormat) { + this.init(batcher, vertexFormat); + }, + init: function init(batcher, vertexFormat) { + this.byteOffset = 0; + this.indiceOffset = 0; + this.vertexOffset = 0; + this.indiceStart = 0; + this._dirty = false; + this._vertexFormat = vertexFormat; + this._vertexBytes = this._vertexFormat._bytes; + this._arrOffset = 0; + this._vbArr = []; + this._vb = new _gfx["default"].VertexBuffer(batcher._device, vertexFormat, _gfx["default"].USAGE_DYNAMIC, new ArrayBuffer(), 0); + this._vbArr[0] = this._vb; + this._ibArr = []; + this._ib = new _gfx["default"].IndexBuffer(batcher._device, _gfx["default"].INDEX_FMT_UINT16, _gfx["default"].USAGE_STATIC, new ArrayBuffer(), 0); + this._ibArr[0] = this._ib; + this._vData = null; + this._uintVData = null; + this._iData = null; + this._batcher = batcher; + this._initVDataCount = 256 * vertexFormat._bytes; + this._initIDataCount = 1536; + this._offsetInfo = { + byteOffset: 0, + vertexOffset: 0, + indiceOffset: 0 + }; + this._reallocBuffer(); + }, + uploadData: function uploadData() { + if (0 === this.byteOffset || !this._dirty) return; + var vertexsData = new Float32Array(this._vData.buffer, 0, this.byteOffset >> 2); + var indicesData = new Uint16Array(this._iData.buffer, 0, this.indiceOffset); + var vb = this._vb; + vb.update(0, vertexsData); + var ib = this._ib; + ib.update(0, indicesData); + this._dirty = false; + }, + switchBuffer: function switchBuffer() { + var offset = ++this._arrOffset; + this.byteOffset = 0; + this.vertexOffset = 0; + this.indiceOffset = 0; + this.indiceStart = 0; + if (offset < this._vbArr.length) { + this._vb = this._vbArr[offset]; + this._ib = this._ibArr[offset]; + } else { + this._vb = new _gfx["default"].VertexBuffer(this._batcher._device, this._vertexFormat, _gfx["default"].USAGE_DYNAMIC, new ArrayBuffer(), 0); + this._vbArr[offset] = this._vb; + this._ib = new _gfx["default"].IndexBuffer(this._batcher._device, _gfx["default"].INDEX_FMT_UINT16, _gfx["default"].USAGE_STATIC, new ArrayBuffer(), 0); + this._ibArr[offset] = this._ib; + } + }, + checkAndSwitchBuffer: function checkAndSwitchBuffer(vertexCount) { + if (this.vertexOffset + vertexCount > 65535) { + this.uploadData(); + this._batcher._flush(); + this.switchBuffer(); + } + }, + requestStatic: function requestStatic(vertexCount, indiceCount) { + this.checkAndSwitchBuffer(vertexCount); + var byteOffset = this.byteOffset + vertexCount * this._vertexBytes; + var indiceOffset = this.indiceOffset + indiceCount; + var byteLength = this._vData.byteLength; + var indiceLength = this._iData.length; + if (byteOffset > byteLength || indiceOffset > indiceLength) { + while (byteLength < byteOffset || indiceLength < indiceOffset) { + this._initVDataCount *= 2; + this._initIDataCount *= 2; + byteLength = 4 * this._initVDataCount; + indiceLength = this._initIDataCount; + } + this._reallocBuffer(); + } + this._updateOffset(vertexCount, indiceCount, byteOffset); + }, + _updateOffset: function _updateOffset(vertexCount, indiceCount, byteOffset) { + var offsetInfo = this._offsetInfo; + offsetInfo.vertexOffset = this.vertexOffset; + this.vertexOffset += vertexCount; + offsetInfo.indiceOffset = this.indiceOffset; + this.indiceOffset += indiceCount; + offsetInfo.byteOffset = this.byteOffset; + this.byteOffset = byteOffset; + this._dirty = true; + }, + request: function request(vertexCount, indiceCount) { + if (this._batcher._buffer !== this) { + this._batcher._flush(); + this._batcher._buffer = this; + } + this.requestStatic(vertexCount, indiceCount); + return this._offsetInfo; + }, + requestForSpine: function requestForSpine(vertexCount, indiceCount) { + if (this._batcher._buffer !== this) { + this._batcher._flush(); + this._batcher._buffer = this; + } + this.requestStaticForSpine(vertexCount, indiceCount); + return this._offsetInfo; + }, + requestStaticForSpine: function requestStaticForSpine(vertexCount, indiceCount) { + this.checkAndSwitchBuffer(vertexCount); + var byteOffset = this.byteOffset + vertexCount * this._vertexBytes; + var indiceOffset = this.indiceOffset + indiceCount; + var byteLength = this._vData.byteLength; + var indiceLength = this._iData.length; + if (byteOffset > byteLength || indiceOffset > indiceLength) { + while (byteLength < byteOffset || indiceLength < indiceOffset) { + this._initVDataCount *= 2; + this._initIDataCount *= 2; + byteLength = 4 * this._initVDataCount; + indiceLength = this._initIDataCount; + } + this._reallocBuffer(); + } + var offsetInfo = this._offsetInfo; + offsetInfo.vertexOffset = this.vertexOffset; + offsetInfo.indiceOffset = this.indiceOffset; + offsetInfo.byteOffset = this.byteOffset; + }, + adjustForSpine: function adjustForSpine(vertexCount, indiceCount) { + this.vertexOffset += vertexCount; + this.indiceOffset += indiceCount; + this.byteOffset = this.byteOffset + vertexCount * this._vertexBytes; + this._dirty = true; + }, + _reallocBuffer: function _reallocBuffer() { + this._reallocVData(true); + this._reallocIData(true); + }, + _reallocVData: function _reallocVData(copyOldData) { + var oldVData; + this._vData && (oldVData = new Uint8Array(this._vData.buffer)); + this._vData = new Float32Array(this._initVDataCount); + this._uintVData = new Uint32Array(this._vData.buffer); + var newData = new Uint8Array(this._uintVData.buffer); + if (oldVData && copyOldData) for (var i = 0, l = oldVData.length; i < l; i++) newData[i] = oldVData[i]; + }, + _reallocIData: function _reallocIData(copyOldData) { + var oldIData = this._iData; + this._iData = new Uint16Array(this._initIDataCount); + if (oldIData && copyOldData) { + var iData = this._iData; + for (var i = 0, l = oldIData.length; i < l; i++) iData[i] = oldIData[i]; + } + }, + reset: function reset() { + this._arrOffset = 0; + this._vb = this._vbArr[0]; + this._ib = this._ibArr[0]; + this.byteOffset = 0; + this.indiceOffset = 0; + this.vertexOffset = 0; + this.indiceStart = 0; + this._dirty = false; + }, + destroy: function destroy() { + this.reset(); + for (var i = 0; i < this._vbArr.length; i++) { + var vb = this._vbArr[i]; + vb.destroy(); + } + this._vbArr = null; + for (var _i = 0; _i < this._ibArr.length; _i++) { + var ib = this._ibArr[_i]; + ib.destroy(); + } + this._ibArr = null; + this._ib = null; + this._vb = null; + }, + forwardIndiceStartToOffset: function forwardIndiceStartToOffset() { + this.indiceStart = this.indiceOffset; + } + }); + if (FIX_IOS14_BUFFER) { + MeshBuffer.prototype.checkAndSwitchBuffer = function(vertexCount) { + if (this.vertexOffset + vertexCount > 65535) { + this.uploadData(); + this._batcher._flush(); + } + }; + MeshBuffer.prototype.forwardIndiceStartToOffset = function() { + this.uploadData(); + this.switchBuffer(); + }; + } + cc.MeshBuffer = module.exports = MeshBuffer; + }), { + "../../../renderer/gfx": 247 + } ], + 186: [ (function(require, module, exports) { + "use strict"; + var _inputAssembler = _interopRequireDefault(require("../../../renderer/core/input-assembler")); + var _recyclePool = _interopRequireDefault(require("../../../renderer/memop/recycle-pool")); + var _model = _interopRequireDefault(require("../../../renderer/scene/model")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + var _require = require("./vertex-format"), vfmtPosUvColor = _require.vfmtPosUvColor, vfmt3D = _require.vfmt3D; + var QuadBuffer = require("./quad-buffer"); + var MeshBuffer = require("./mesh-buffer"); + var SpineBuffer = require("./spine-buffer"); + var Material = require("../../assets/material/CCMaterial"); + var idGenerater = new (require("../../platform/id-generater"))("VertextFormat"); + var _buffers = {}; + var empty_material = new Material(); + var empty_ia = new _inputAssembler["default"](); + empty_ia._count = 0; + var ModelBatcher = function ModelBatcher(device, renderScene) { + this._renderScene = renderScene; + this._device = device; + this.walking = false; + this.material = empty_material; + this.cullingMask = 1; + this._iaPool = new _recyclePool["default"](function() { + return new _inputAssembler["default"](); + }, 16); + this._modelPool = new _recyclePool["default"](function() { + return new _model["default"](); + }, 16); + this._quadBuffer = this.getBuffer("quad", vfmtPosUvColor); + this._meshBuffer = this.getBuffer("mesh", vfmtPosUvColor); + this._quadBuffer3D = this.getBuffer("quad", vfmt3D); + this._meshBuffer3D = this.getBuffer("mesh", vfmt3D); + this._buffer = this._meshBuffer; + this._batchedModels = []; + this._dummyNode = new cc.Node(); + this._sortKey = 0; + this.node = this._dummyNode; + this.parentOpacity = 1; + this.parentOpacityDirty = 0; + this.worldMatDirty = 0; + }; + ModelBatcher.prototype = { + constructor: ModelBatcher, + reset: function reset() { + this._iaPool.reset(); + var scene = this._renderScene; + var models = this._batchedModels; + for (var i = 0; i < models.length; ++i) { + models[i].setInputAssembler(null); + models[i].setEffect(null); + scene.removeModel(models[i]); + } + this._modelPool.reset(); + models.length = 0; + this._sortKey = 0; + for (var key in _buffers) _buffers[key].reset(); + this._buffer = this._meshBuffer; + this.node = this._dummyNode; + this.material = empty_material; + this.cullingMask = 1; + this.parentOpacity = 1; + this.parentOpacityDirty = 0; + this.worldMatDirty = 0; + }, + _flushMaterial: function _flushMaterial(material) { + if (!material) return; + this.material = material; + var effect = material.effect; + if (!effect) return; + var model = this._modelPool.add(); + this._batchedModels.push(model); + model.sortKey = this._sortKey++; + model._cullingMask = this.cullingMask; + model.setNode(this.node); + model.setEffect(effect, null); + model.setInputAssembler(empty_ia); + this._renderScene.addModel(model); + }, + _flush: function _flush() { + var material = this.material, buffer = this._buffer, indiceCount = buffer.indiceOffset - buffer.indiceStart; + if (!this.walking || !material || indiceCount <= 0) return; + var effect = material.effect; + if (!effect) return; + var ia = this._iaPool.add(); + ia._vertexBuffer = buffer._vb; + ia._indexBuffer = buffer._ib; + ia._start = buffer.indiceStart; + ia._count = indiceCount; + var model = this._modelPool.add(); + this._batchedModels.push(model); + model.sortKey = this._sortKey++; + model._cullingMask = this.cullingMask; + model.setNode(this.node); + model.setEffect(effect); + model.setInputAssembler(ia); + this._renderScene.addModel(model); + buffer.forwardIndiceStartToOffset(); + }, + _flushIA: function _flushIA(ia) { + if (!ia) return; + var material = this.material; + var effect = material.effect; + if (!effect) return; + var model = this._modelPool.add(); + this._batchedModels.push(model); + model.sortKey = this._sortKey++; + model._cullingMask = this.cullingMask; + model.setNode(this.node); + model.setEffect(effect); + model.setInputAssembler(ia); + this._renderScene.addModel(model); + }, + terminate: function terminate() { + cc.dynamicAtlasManager && cc.dynamicAtlasManager.enabled && cc.dynamicAtlasManager.update(); + this._flush(); + for (var key in _buffers) _buffers[key].uploadData(); + this.walking = false; + }, + getBuffer: function getBuffer(type, vertextFormat) { + var key = type + vertextFormat.getHash(); + var buffer = _buffers[key]; + if (!buffer) { + if ("mesh" === type) buffer = new MeshBuffer(this, vertextFormat); else if ("quad" === type) buffer = new QuadBuffer(this, vertextFormat); else { + if ("spine" !== type) { + cc.error("Not support buffer type [" + type + "]"); + return null; + } + buffer = new SpineBuffer(this, vertextFormat); + } + _buffers[key] = buffer; + } + return buffer; + } + }; + module.exports = ModelBatcher; + }), { + "../../../renderer/core/input-assembler": 237, + "../../../renderer/memop/recycle-pool": 262, + "../../../renderer/scene/model": 268, + "../../assets/material/CCMaterial": 75, + "../../platform/id-generater": 138, + "./mesh-buffer": 185, + "./quad-buffer": 187, + "./spine-buffer": 189, + "./vertex-format": 190 + } ], + 187: [ (function(require, module, exports) { + "use strict"; + var MeshBuffer = require("./mesh-buffer"); + var QuadBuffer = cc.Class({ + name: "cc.QuadBuffer", + extends: MeshBuffer, + _fillQuadBuffer: function _fillQuadBuffer() { + var count = this._initIDataCount / 6; + var buffer = this._iData; + for (var i = 0, idx = 0; i < count; i++) { + var vertextID = 4 * i; + buffer[idx++] = vertextID; + buffer[idx++] = vertextID + 1; + buffer[idx++] = vertextID + 2; + buffer[idx++] = vertextID + 1; + buffer[idx++] = vertextID + 3; + buffer[idx++] = vertextID + 2; + } + var indicesData = new Uint16Array(this._iData.buffer, 0, 6 * count); + this._ib.update(0, indicesData); + }, + uploadData: function uploadData() { + if (0 === this.byteOffset || !this._dirty) return; + var vertexsData = new Float32Array(this._vData.buffer, 0, this.byteOffset >> 2); + this._vb.update(0, vertexsData); + this._dirty = false; + }, + switchBuffer: function switchBuffer() { + this._super(); + var indicesData = new Uint16Array(this._iData.buffer, 0, this._initIDataCount); + this._ib.update(0, indicesData); + }, + _reallocBuffer: function _reallocBuffer() { + this._reallocVData(true); + this._reallocIData(); + this._fillQuadBuffer(); + } + }); + cc.QuadBuffer = module.exports = QuadBuffer; + }), { + "./mesh-buffer": 185 + } ], + 188: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = RenderData; + var _flexBuffer = _interopRequireDefault(require("./flex-buffer")); + var _vertexFormat = require("./vertex-format"); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function RenderData() { + this.vDatas = []; + this.uintVDatas = []; + this.iDatas = []; + this.meshCount = 0; + this._infos = null; + this._flexBuffer = null; + } + cc.js.mixin(RenderData.prototype, { + init: function init(assembler) {}, + clear: function clear() { + this.vDatas.length = 0; + this.iDatas.length = 0; + this.uintVDatas.length = 0; + this.meshCount = 0; + this._infos = null; + this._flexBuffer && this._flexBuffer.reset(); + }, + updateMesh: function updateMesh(index, vertices, indices) { + this.vDatas[index] = vertices; + this.uintVDatas[index] = new Uint32Array(vertices.buffer, 0, vertices.length); + this.iDatas[index] = indices; + this.meshCount = this.vDatas.length; + }, + updateMeshRange: function updateMeshRange(verticesCount, indicesCount) {}, + createData: function createData(index, verticesFloats, indicesCount) { + var vertices = new Float32Array(verticesFloats); + var indices = new Uint16Array(indicesCount); + this.updateMesh(index, vertices, indices); + }, + createQuadData: function createQuadData(index, verticesFloats, indicesCount) { + this.createData(index, verticesFloats, indicesCount); + this.initQuadIndices(this.iDatas[index]); + }, + createFlexData: function createFlexData(index, verticesFloats, indicesCount, vfmt) { + vfmt = vfmt || _vertexFormat.vfmtPosUvColor; + this._flexBuffer = new _flexBuffer["default"](this, index, verticesFloats, indicesCount, vfmt); + }, + initQuadIndices: function initQuadIndices(indices) { + var count = indices.length / 6; + for (var i = 0, idx = 0; i < count; i++) { + var vertextID = 4 * i; + indices[idx++] = vertextID; + indices[idx++] = vertextID + 1; + indices[idx++] = vertextID + 2; + indices[idx++] = vertextID + 1; + indices[idx++] = vertextID + 3; + indices[idx++] = vertextID + 2; + } + } + }); + cc.RenderData = RenderData; + module.exports = exports["default"]; + }), { + "./flex-buffer": 184, + "./vertex-format": 190 + } ], + 189: [ (function(require, module, exports) { + "use strict"; + var SpineBuffer = cc.Class({ + name: "cc.SpineBuffer", + extends: require("./mesh-buffer"), + requestStatic: function requestStatic(vertexCount, indiceCount) { + this.checkAndSwitchBuffer(vertexCount); + var byteOffset = this.byteOffset + vertexCount * this._vertexBytes; + var indiceOffset = this.indiceOffset + indiceCount; + var byteLength = this._vData.byteLength; + var indiceLength = this._iData.length; + if (byteOffset > byteLength || indiceOffset > indiceLength) { + while (byteLength < byteOffset || indiceLength < indiceOffset) { + this._initVDataCount *= 2; + this._initIDataCount *= 2; + byteLength = 4 * this._initVDataCount; + indiceLength = this._initIDataCount; + } + this._reallocBuffer(); + } + var offsetInfo = this._offsetInfo; + offsetInfo.vertexOffset = this.vertexOffset; + offsetInfo.indiceOffset = this.indiceOffset; + offsetInfo.byteOffset = this.byteOffset; + }, + adjust: function adjust(vertexCount, indiceCount) { + this.vertexOffset += vertexCount; + this.indiceOffset += indiceCount; + this.byteOffset = this.byteOffset + vertexCount * this._vertexBytes; + this._dirty = true; + } + }); + cc.SpineBuffer = module.exports = SpineBuffer; + }), { + "./mesh-buffer": 185 + } ], + 190: [ (function(require, module, exports) { + "use strict"; + var _gfx = _interopRequireDefault(require("../../../renderer/gfx")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + var vfmt3D = new _gfx["default"].VertexFormat([ { + name: _gfx["default"].ATTR_POSITION, + type: _gfx["default"].ATTR_TYPE_FLOAT32, + num: 3 + }, { + name: _gfx["default"].ATTR_UV0, + type: _gfx["default"].ATTR_TYPE_FLOAT32, + num: 2 + }, { + name: _gfx["default"].ATTR_COLOR, + type: _gfx["default"].ATTR_TYPE_UINT8, + num: 4, + normalize: true + } ]); + vfmt3D.name = "vfmt3D"; + _gfx["default"].VertexFormat.XYZ_UV_Color = vfmt3D; + var vfmtPosUvColor = new _gfx["default"].VertexFormat([ { + name: _gfx["default"].ATTR_POSITION, + type: _gfx["default"].ATTR_TYPE_FLOAT32, + num: 2 + }, { + name: _gfx["default"].ATTR_UV0, + type: _gfx["default"].ATTR_TYPE_FLOAT32, + num: 2 + }, { + name: _gfx["default"].ATTR_COLOR, + type: _gfx["default"].ATTR_TYPE_UINT8, + num: 4, + normalize: true + } ]); + vfmtPosUvColor.name = "vfmtPosUvColor"; + _gfx["default"].VertexFormat.XY_UV_Color = vfmtPosUvColor; + var vfmtPosUvColorTexId = new _gfx["default"].VertexFormat([ { + name: _gfx["default"].ATTR_POSITION, + type: _gfx["default"].ATTR_TYPE_FLOAT32, + num: 2 + }, { + name: _gfx["default"].ATTR_UV0, + type: _gfx["default"].ATTR_TYPE_FLOAT32, + num: 2 + }, { + name: _gfx["default"].ATTR_COLOR, + type: _gfx["default"].ATTR_TYPE_UINT8, + num: 4, + normalize: true + }, { + name: _gfx["default"].ATTR_TEX_ID, + type: _gfx["default"].ATTR_TYPE_FLOAT32, + num: 1 + } ]); + vfmtPosUvColorTexId.name = "vfmtPosUvColorTexId"; + _gfx["default"].VertexFormat.XY_UV_Color_TexId = vfmtPosUvColorTexId; + var vfmtPosUvTwoColor = new _gfx["default"].VertexFormat([ { + name: _gfx["default"].ATTR_POSITION, + type: _gfx["default"].ATTR_TYPE_FLOAT32, + num: 2 + }, { + name: _gfx["default"].ATTR_UV0, + type: _gfx["default"].ATTR_TYPE_FLOAT32, + num: 2 + }, { + name: _gfx["default"].ATTR_COLOR, + type: _gfx["default"].ATTR_TYPE_UINT8, + num: 4, + normalize: true + }, { + name: _gfx["default"].ATTR_COLOR0, + type: _gfx["default"].ATTR_TYPE_UINT8, + num: 4, + normalize: true + } ]); + vfmtPosUvTwoColor.name = "vfmtPosUvTwoColor"; + _gfx["default"].VertexFormat.XY_UV_Two_Color = vfmtPosUvTwoColor; + var vfmtPosUv = new _gfx["default"].VertexFormat([ { + name: _gfx["default"].ATTR_POSITION, + type: _gfx["default"].ATTR_TYPE_FLOAT32, + num: 2 + }, { + name: _gfx["default"].ATTR_UV0, + type: _gfx["default"].ATTR_TYPE_FLOAT32, + num: 2 + } ]); + vfmtPosUv.name = "vfmtPosUv"; + _gfx["default"].VertexFormat.XY_UV = vfmtPosUv; + var vfmtPosColor = new _gfx["default"].VertexFormat([ { + name: _gfx["default"].ATTR_POSITION, + type: _gfx["default"].ATTR_TYPE_FLOAT32, + num: 2 + }, { + name: _gfx["default"].ATTR_COLOR, + type: _gfx["default"].ATTR_TYPE_UINT8, + num: 4, + normalize: true + } ]); + vfmtPosColor.name = "vfmtPosColor"; + _gfx["default"].VertexFormat.XY_Color = vfmtPosColor; + var vfmtPos = new _gfx["default"].VertexFormat([ { + name: _gfx["default"].ATTR_POSITION, + type: _gfx["default"].ATTR_TYPE_FLOAT32, + num: 2 + } ]); + vfmtPos.name = "vfmtPos"; + _gfx["default"].VertexFormat.XY = vfmtPos; + module.exports = { + vfmt3D: vfmt3D, + vfmtPosUvColor: vfmtPosUvColor, + vfmtPosUvTwoColor: vfmtPosUvTwoColor, + vfmtPosUv: vfmtPosUv, + vfmtPosColor: vfmtPosColor, + vfmtPos: vfmtPos, + vfmtPosUvColorTexId: vfmtPosUvColorTexId + }; + }), { + "../../../renderer/gfx": 247 + } ], + 191: [ (function(require, module, exports) { + "use strict"; + require("./sp"); + require("./multi-handler"); + require("./multi-batcher"); + }), { + "./multi-batcher": 192, + "./multi-handler": 193, + "./sp": 194 + } ], + 192: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports.MultiBatcher = void 0; + var _multiHandler = require("./multi-handler"); + function _createForOfIteratorHelperLoose(o, allowArrayLike) { + var it = "undefined" !== typeof Symbol && o[Symbol.iterator] || o["@@iterator"]; + if (it) return (it = it.call(o)).next.bind(it); + if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && "number" === typeof o.length) { + it && (o = it); + var i = 0; + return function() { + if (i >= o.length) return { + done: true + }; + return { + done: false, + value: o[i++] + }; + }; + } + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ("string" === typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + "Object" === n && o.constructor && (n = o.constructor.name); + if ("Map" === n || "Set" === n) return Array.from(o); + if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var MultiBatcher = (function() { + function MultiBatcher() { + this.handlers = []; + this.nextHandler = void 0; + } + var _proto = MultiBatcher.prototype; + _proto.init = function init() { + var handler = new _multiHandler.MultiHandler(); + this.handlers.push(handler); + this.nextHandler = handler; + }; + _proto.requsetMaterial = function requsetMaterial(texture) { + if (!texture._multiMaterial) { + var handler = this.nextHandler; + var index = handler.getEmptyIndex(); + if (-1 === index) { + for (var _iterator = _createForOfIteratorHelperLoose(this.handlers), _step; !(_step = _iterator()).done; ) { + var _handler = _step.value; + index = _handler.getEmptyIndex(); + if (-1 !== index) { + handler = _handler; + this.nextHandler = handler; + break; + } + } + if (-1 === index) { + handler = new _multiHandler.MultiHandler(); + this.handlers.push(handler); + this.nextHandler = handler; + index = 0; + } + } + texture.linkMaterial(handler.material, index); + } + return texture._multiMaterial; + }; + _proto.reset = function reset() { + this.handlers.length = 0; + }; + return MultiBatcher; + })(); + exports.MultiBatcher = MultiBatcher; + cc.sp.multiBatcher = new MultiBatcher(); + cc.sp.MultiBatcher = MultiBatcher; + }), { + "./multi-handler": 193 + } ], + 193: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports.MultiHandler = void 0; + var MultiHandler = (function() { + function MultiHandler(material) { + this.material = void 0; + this.textures = []; + this.hasEmptySlot = false; + if (material) this.material = material; else { + this.material = cc.Material.create(cc.sp.multi2dSpriteEffectAsset); + this.material.name = "multi-2d-sprite"; + this.material.define("USE_TEXTURE", true); + this.material.define("USE_MULTI_TEXTURE", true); + } + this.material._multiHandler = this; + this.syncTextures(); + } + var _proto = MultiHandler.prototype; + _proto.syncTextures = function syncTextures() { + var effect = this.material["effect"]; + var properties = effect.passes[0]._properties; + this.textures[0] = properties.texture.value; + this.textures[1] = properties.texture2.value; + this.textures[2] = properties.texture3.value; + this.textures[3] = properties.texture4.value; + this.textures[4] = properties.texture5.value; + this.textures[5] = properties.texture6.value; + this.textures[6] = properties.texture7.value; + this.textures[7] = properties.texture8.value; + this.hasEmptySlot = true; + this.getEmptyIndex(); + }; + _proto.setTexture = function setTexture(index, texture) { + this.textures[index] = texture ? texture.getImpl() : null; + this.material.setProperty(cc.sp.propertyIndex2Name(index), texture); + null == texture && (this.hasEmptySlot = true); + }; + _proto.removeTexture = function removeTexture(texture) { + var index = this.getIndex(texture); + -1 !== index && this.setTexture(index, null); + }; + _proto.hasTexture = function hasTexture(texture) { + return -1 !== this.textures.indexOf(texture); + }; + _proto.getIndex = function getIndex(texture) { + return this.textures.indexOf(texture); + }; + _proto.getTexture = function getTexture(index) { + return this.textures[index]; + }; + _proto.getEmptyIndex = function getEmptyIndex() { + if (!this.hasEmptySlot) return -1; + var index = this.textures.indexOf(null); + if (-1 !== index) return index; + this.hasEmptySlot = false; + return -1; + }; + _proto.autoSetTexture = function autoSetTexture(texture) { + var index = this.getEmptyIndex(); + if (-1 === index) return -1; + this.setTexture(index, texture); + return index; + }; + return MultiHandler; + })(); + exports.MultiHandler = MultiHandler; + cc.sp.MultiHandler = MultiHandler; + }), {} ], + 194: [ (function(require, module, exports) { + "use strict"; + cc.sp = { + inited: false, + version: "1.0.0", + MAX_MULTITEXTURE_NUM: -1, + autoSwitchMaterial: true, + allowDynamicAtlas: true, + enableLabelRetina: true, + labelRetinaScale: 1, + charAtlasAutoBatchCount: 1, + charAtlasAutoResetBeforeSceneLoad: true, + multi2dSpriteEffectAsset: null, + i2nMap: [ "texture" ], + n2iMap: { + texture: 0 + }, + propertyIndex2Name: function propertyIndex2Name(index) { + return this.i2nMap[index]; + }, + propertyName2Index: function propertyName2Index(name) { + return this.n2iMap[name]; + } + }; + for (var i = 1; i < 8; i++) { + var name = "texture" + (i + 1); + cc.sp.i2nMap[i] = name; + cc.sp.n2iMap[name] = i; + } + }), {} ], + 195: [ (function(require, module, exports) { + "use strict"; + require("../platform/CCSys"); + var EXTNAME_RE = /(\.[^\.\/\?\\]*)(\?.*)?$/; + var DIRNAME_RE = /((.*)(\/|\\|\\\\))?(.*?\..*$)?/; + var NORMALIZE_RE = /[^\.\/]+\/\.\.\//; + cc.path = { + join: function join() { + var l = arguments.length; + var result = ""; + for (var i = 0; i < l; i++) result = (result + ("" === result ? "" : "/") + arguments[i]).replace(/(\/|\\\\)$/, ""); + return result; + }, + extname: function extname(pathStr) { + var temp = EXTNAME_RE.exec(pathStr); + return temp ? temp[1] : ""; + }, + mainFileName: function mainFileName(fileName) { + if (fileName) { + var idx = fileName.lastIndexOf("."); + if (-1 !== idx) return fileName.substring(0, idx); + } + return fileName; + }, + basename: function basename(pathStr, extname) { + var index = pathStr.indexOf("?"); + index > 0 && (pathStr = pathStr.substring(0, index)); + var reg = /(\/|\\)([^\/\\]+)$/g; + var result = reg.exec(pathStr.replace(/(\/|\\)$/, "")); + if (!result) return pathStr; + var baseName = result[2]; + if (extname && pathStr.substring(pathStr.length - extname.length).toLowerCase() === extname.toLowerCase()) return baseName.substring(0, baseName.length - extname.length); + return baseName; + }, + dirname: function dirname(pathStr) { + var temp = DIRNAME_RE.exec(pathStr); + return temp ? temp[2] : ""; + }, + changeExtname: function changeExtname(pathStr, extname) { + extname = extname || ""; + var index = pathStr.indexOf("?"); + var tempStr = ""; + if (index > 0) { + tempStr = pathStr.substring(index); + pathStr = pathStr.substring(0, index); + } + index = pathStr.lastIndexOf("."); + if (index < 0) return pathStr + extname + tempStr; + return pathStr.substring(0, index) + extname + tempStr; + }, + changeBasename: function changeBasename(pathStr, basename, isSameExt) { + if (0 === basename.indexOf(".")) return this.changeExtname(pathStr, basename); + var index = pathStr.indexOf("?"); + var tempStr = ""; + var ext = isSameExt ? this.extname(pathStr) : ""; + if (index > 0) { + tempStr = pathStr.substring(index); + pathStr = pathStr.substring(0, index); + } + index = pathStr.lastIndexOf("/"); + index = index <= 0 ? 0 : index + 1; + return pathStr.substring(0, index) + basename + ext + tempStr; + }, + _normalize: function _normalize(url) { + var oldUrl = url = String(url); + do { + oldUrl = url; + url = url.replace(NORMALIZE_RE, ""); + } while (oldUrl.length !== url.length); + return url; + }, + sep: cc.sys.os === cc.sys.OS_WINDOWS ? "\\" : "/", + stripSep: function stripSep(path) { + return path.replace(/[\/\\]$/, ""); + } + }; + module.exports = cc.path; + }), { + "../platform/CCSys": 130 + } ], + 196: [ (function(require, module, exports) { + "use strict"; + var AffineTransform = function AffineTransform(a, b, c, d, tx, ty) { + this.a = a; + this.b = b; + this.c = c; + this.d = d; + this.tx = tx; + this.ty = ty; + }; + AffineTransform.create = function(a, b, c, d, tx, ty) { + return { + a: a, + b: b, + c: c, + d: d, + tx: tx, + ty: ty + }; + }; + AffineTransform.identity = function() { + return { + a: 1, + b: 0, + c: 0, + d: 1, + tx: 0, + ty: 0 + }; + }; + AffineTransform.clone = function(t) { + return { + a: t.a, + b: t.b, + c: t.c, + d: t.d, + tx: t.tx, + ty: t.ty + }; + }; + AffineTransform.concat = function(out, t1, t2) { + var a = t1.a, b = t1.b, c = t1.c, d = t1.d, tx = t1.tx, ty = t1.ty; + out.a = a * t2.a + b * t2.c; + out.b = a * t2.b + b * t2.d; + out.c = c * t2.a + d * t2.c; + out.d = c * t2.b + d * t2.d; + out.tx = tx * t2.a + ty * t2.c + t2.tx; + out.ty = tx * t2.b + ty * t2.d + t2.ty; + return out; + }; + AffineTransform.invert = function(out, t) { + var a = t.a, b = t.b, c = t.c, d = t.d; + var determinant = 1 / (a * d - b * c); + var tx = t.tx, ty = t.ty; + out.a = determinant * d; + out.b = -determinant * b; + out.c = -determinant * c; + out.d = determinant * a; + out.tx = determinant * (c * ty - d * tx); + out.ty = determinant * (b * tx - a * ty); + return out; + }; + AffineTransform.fromMat4 = function(out, mat) { + var matm = mat.m; + out.a = matm[0]; + out.b = matm[1]; + out.c = matm[4]; + out.d = matm[5]; + out.tx = matm[12]; + out.ty = matm[13]; + return out; + }; + AffineTransform.transformVec2 = function(out, point, transOrY, t) { + var x, y; + if (void 0 === t) { + t = transOrY; + x = point.x; + y = point.y; + } else { + x = point; + y = transOrY; + } + out.x = t.a * x + t.c * y + t.tx; + out.y = t.b * x + t.d * y + t.ty; + return out; + }; + AffineTransform.transformSize = function(out, size, t) { + out.width = t.a * size.width + t.c * size.height; + out.height = t.b * size.width + t.d * size.height; + return out; + }; + AffineTransform.transformRect = function(out, rect, t) { + var ol = rect.x; + var ob = rect.y; + var or = ol + rect.width; + var ot = ob + rect.height; + var lbx = t.a * ol + t.c * ob + t.tx; + var lby = t.b * ol + t.d * ob + t.ty; + var rbx = t.a * or + t.c * ob + t.tx; + var rby = t.b * or + t.d * ob + t.ty; + var ltx = t.a * ol + t.c * ot + t.tx; + var lty = t.b * ol + t.d * ot + t.ty; + var rtx = t.a * or + t.c * ot + t.tx; + var rty = t.b * or + t.d * ot + t.ty; + var minX = Math.min(lbx, rbx, ltx, rtx); + var maxX = Math.max(lbx, rbx, ltx, rtx); + var minY = Math.min(lby, rby, lty, rty); + var maxY = Math.max(lby, rby, lty, rty); + out.x = minX; + out.y = minY; + out.width = maxX - minX; + out.height = maxY - minY; + return out; + }; + AffineTransform.transformObb = function(out_bl, out_tl, out_tr, out_br, rect, anAffineTransform) { + var x = rect.x; + var y = rect.y; + var width = rect.width; + var height = rect.height; + var tx = anAffineTransform.a * x + anAffineTransform.c * y + anAffineTransform.tx; + var ty = anAffineTransform.b * x + anAffineTransform.d * y + anAffineTransform.ty; + var xa = anAffineTransform.a * width; + var xb = anAffineTransform.b * width; + var yc = anAffineTransform.c * height; + var yd = anAffineTransform.d * height; + out_tl.x = tx; + out_tl.y = ty; + out_tr.x = xa + tx; + out_tr.y = xb + ty; + out_bl.x = yc + tx; + out_bl.y = yd + ty; + out_br.x = xa + yc + tx; + out_br.y = xb + yd + ty; + }; + cc.AffineTransform = module.exports = AffineTransform; + }), {} ], + 197: [ (function(require, module, exports) { + "use strict"; + var Flags = require("../platform/CCObject").Flags; + var misc = require("./misc"); + var js = require("../platform/js"); + var IdGenerater = require("../platform/id-generater"); + var eventManager = require("../event-manager"); + var RenderFlow = require("../renderer/render-flow"); + var Destroying = Flags.Destroying; + var DontDestroy = Flags.DontDestroy; + var Deactivating = Flags.Deactivating; + var CHILD_ADDED = "child-added"; + var CHILD_REMOVED = "child-removed"; + var idGenerater = new IdGenerater("Node"); + function getConstructor(typeOrClassName) { + if (!typeOrClassName) { + cc.errorID(3804); + return null; + } + if ("string" === typeof typeOrClassName) return js.getClassByName(typeOrClassName); + return typeOrClassName; + } + function findComponent(node, constructor) { + if (constructor._sealed) for (var i = 0; i < node._components.length; ++i) { + var comp = node._components[i]; + if (comp.constructor === constructor) return comp; + } else for (var _i = 0; _i < node._components.length; ++_i) { + var _comp = node._components[_i]; + if (_comp instanceof constructor) return _comp; + } + return null; + } + function findComponents(node, constructor, components) { + if (constructor._sealed) for (var i = 0; i < node._components.length; ++i) { + var comp = node._components[i]; + comp.constructor === constructor && components.push(comp); + } else for (var _i2 = 0; _i2 < node._components.length; ++_i2) { + var _comp2 = node._components[_i2]; + _comp2 instanceof constructor && components.push(_comp2); + } + } + function findChildComponent(children, constructor) { + for (var i = 0; i < children.length; ++i) { + var node = children[i]; + var comp = findComponent(node, constructor); + if (comp) return comp; + if (node._children.length > 0) { + comp = findChildComponent(node._children, constructor); + if (comp) return comp; + } + } + return null; + } + function findChildComponents(children, constructor, components) { + for (var i = 0; i < children.length; ++i) { + var node = children[i]; + findComponents(node, constructor, components); + node._children.length > 0 && findChildComponents(node._children, constructor, components); + } + } + var BaseNode = cc.Class({ + name: "cc._BaseNode", + extends: cc.Object, + properties: { + _parent: null, + _children: [], + _active: true, + _components: [], + _prefab: null, + _persistNode: { + get: function get() { + return (this._objFlags & DontDestroy) > 0; + }, + set: function set(value) { + value ? this._objFlags |= DontDestroy : this._objFlags &= ~DontDestroy; + } + }, + name: { + get: function get() { + return this._name; + }, + set: function set(value) { + false; + this._name = value; + false; + } + }, + uuid: { + get: function get() { + return this._id; + } + }, + children: { + get: function get() { + return this._children; + } + }, + childrenCount: { + get: function get() { + return this._children.length; + } + }, + active: { + get: function get() { + return this._active; + }, + set: function set(value) { + value = !!value; + if (this._active !== value) { + this._active = value; + var parent = this._parent; + if (parent) { + var couldActiveInScene = parent._activeInHierarchy; + couldActiveInScene && cc.director._nodeActivator.activateNode(this, value); + } + } + } + }, + activeInHierarchy: { + get: function get() { + return this._activeInHierarchy; + } + } + }, + ctor: function ctor(name) { + this._name = void 0 !== name ? name : "New Node"; + this._activeInHierarchy = false; + this._id = idGenerater.getNewId(); + cc.director._scheduler && cc.director._scheduler.enableForTarget(this); + this.__eventTargets = []; + }, + getParent: function getParent() { + return this._parent; + }, + setParent: function setParent(value) { + if (this._parent === value) return; + false; + var oldParent = this._parent; + (true, oldParent) && oldParent._objFlags & Deactivating && cc.errorID(3821); + this._parent = value || null; + this._onSetParent(value); + if (value) { + (true, value._objFlags & Deactivating) && cc.errorID(3821); + eventManager._setDirtyForNode(this); + value._children.push(this); + value.emit && value.emit(CHILD_ADDED, this); + value._renderFlag |= RenderFlow.FLAG_CHILDREN; + } + if (oldParent) { + if (!(oldParent._objFlags & Destroying)) { + var removeAt = oldParent._children.indexOf(this); + false; + oldParent._children.splice(removeAt, 1); + oldParent.emit && oldParent.emit(CHILD_REMOVED, this); + this._onHierarchyChanged(oldParent); + 0 === oldParent._children.length && (oldParent._renderFlag &= ~RenderFlow.FLAG_CHILDREN); + } + } else value && this._onHierarchyChanged(null); + }, + attr: function attr(attrs) { + js.mixin(this, attrs); + }, + getChildByUuid: function getChildByUuid(uuid) { + if (!uuid) { + cc.log("Invalid uuid"); + return null; + } + var locChildren = this._children; + for (var i = 0, len = locChildren.length; i < len; i++) if (locChildren[i]._id === uuid) return locChildren[i]; + return null; + }, + getChildByName: function getChildByName(name) { + if (!name) { + cc.log("Invalid name"); + return null; + } + var locChildren = this._children; + for (var i = 0, len = locChildren.length; i < len; i++) if (locChildren[i]._name === name) return locChildren[i]; + return null; + }, + addChild: function addChild(child) { + false; + cc.assertID(child, 1606); + cc.assertID(null === child._parent, 1605); + child.setParent(this); + }, + insertChild: function insertChild(child, siblingIndex) { + child.parent = this; + child.setSiblingIndex(siblingIndex); + }, + getSiblingIndex: function getSiblingIndex() { + return this._parent ? this._parent._children.indexOf(this) : 0; + }, + setSiblingIndex: function setSiblingIndex(index) { + if (!this._parent) return; + if (this._parent._objFlags & Deactivating) { + cc.errorID(3821); + return; + } + var siblings = this._parent._children; + index = -1 !== index ? index : siblings.length - 1; + var oldIndex = siblings.indexOf(this); + if (index !== oldIndex) { + siblings.splice(oldIndex, 1); + index < siblings.length ? siblings.splice(index, 0, this) : siblings.push(this); + this._onSiblingIndexChanged && this._onSiblingIndexChanged(index); + } + }, + walk: function walk(prefunc, postfunc) { + var BaseNode = cc._BaseNode; + var index = 1; + var children, child, curr, i, afterChildren; + var stack = BaseNode._stacks[BaseNode._stackId]; + if (!stack) { + stack = []; + BaseNode._stacks.push(stack); + } + BaseNode._stackId++; + stack.length = 0; + stack[0] = this; + var parent = null; + afterChildren = false; + while (index) { + index--; + curr = stack[index]; + if (!curr) continue; + !afterChildren && prefunc ? prefunc(curr) : afterChildren && postfunc && postfunc(curr); + stack[index] = null; + if (!afterChildren) { + if (curr._children.length > 0) { + parent = curr; + children = curr._children; + i = 0; + stack[index] = children[i]; + index++; + } else { + stack[index] = curr; + index++; + afterChildren = true; + } + continue; + } + if (parent === this._parent) break; + afterChildren = false; + if (children) { + i++; + if (children[i]) { + stack[index] = children[i]; + index++; + } else if (parent) { + stack[index] = parent; + index++; + afterChildren = true; + if (parent._parent) { + children = parent._parent._children; + i = children.indexOf(parent); + parent = parent._parent; + } else { + parent = null; + children = null; + } + if (i < 0) break; + } + } + } + stack.length = 0; + BaseNode._stackId--; + }, + cleanup: function cleanup() {}, + removeFromParent: function removeFromParent(cleanup) { + if (this._parent) { + void 0 === cleanup && (cleanup = true); + this._parent.removeChild(this, cleanup); + } + }, + removeChild: function removeChild(child, cleanup) { + if (this._children.indexOf(child) > -1) { + (cleanup || void 0 === cleanup) && child.cleanup(); + child.parent = null; + } + }, + removeAllChildren: function removeAllChildren(cleanup) { + var children = this._children; + void 0 === cleanup && (cleanup = true); + for (var i = children.length - 1; i >= 0; i--) { + var node = children[i]; + if (node) { + cleanup && node.cleanup(); + node.parent = null; + } + } + this._children.length = 0; + }, + isChildOf: function isChildOf(parent) { + var child = this; + do { + if (child === parent) return true; + child = child._parent; + } while (child); + return false; + }, + getComponent: function getComponent(typeOrClassName) { + var constructor = getConstructor(typeOrClassName); + if (constructor) return findComponent(this, constructor); + return null; + }, + getComponents: function getComponents(typeOrClassName) { + var constructor = getConstructor(typeOrClassName), components = []; + constructor && findComponents(this, constructor, components); + return components; + }, + getComponentInChildren: function getComponentInChildren(typeOrClassName) { + var constructor = getConstructor(typeOrClassName); + if (constructor) return findChildComponent(this._children, constructor); + return null; + }, + getComponentsInChildren: function getComponentsInChildren(typeOrClassName) { + var constructor = getConstructor(typeOrClassName), components = []; + if (constructor) { + findComponents(this, constructor, components); + findChildComponents(this._children, constructor, components); + } + return components; + }, + _checkMultipleComp: (false, false) && function(ctor) { + var existing = this.getComponent(ctor._disallowMultiple); + if (existing) { + existing.constructor === ctor ? cc.errorID(3805, js.getClassName(ctor), this._name) : cc.errorID(3806, js.getClassName(ctor), this._name, js.getClassName(existing)); + return false; + } + return true; + }, + addComponent: function addComponent(typeOrClassName) { + false; + var constructor; + if ("string" === typeof typeOrClassName) { + constructor = js.getClassByName(typeOrClassName); + if (!constructor) { + cc.errorID(3807, typeOrClassName); + cc._RFpeek() && cc.errorID(3808, typeOrClassName); + return null; + } + } else { + if (!typeOrClassName) { + cc.errorID(3804); + return null; + } + constructor = typeOrClassName; + } + if ("function" !== typeof constructor) { + cc.errorID(3809); + return null; + } + if (!js.isChildClassOf(constructor, cc.Component)) { + cc.errorID(3810); + return null; + } + if ((false, false) && constructor._disallowMultiple && !this._checkMultipleComp(constructor)) return null; + var ReqComp = constructor._requireComponent; + if (ReqComp && !this.getComponent(ReqComp)) { + var depended = this.addComponent(ReqComp); + if (!depended) return null; + } + var component = new constructor(); + component.node = this; + this._components.push(component); + (false, false) && cc.engine && this._id in cc.engine.attachedObjsForEditor && (cc.engine.attachedObjsForEditor[component._id] = component); + this._activeInHierarchy && cc.director._nodeActivator.activateComp(component); + return component; + }, + _addComponentAt: false, + removeComponent: function removeComponent(component) { + if (!component) { + cc.errorID(3813); + return; + } + component instanceof cc.Component || (component = this.getComponent(component)); + component && component.destroy(); + }, + _getDependComponent: false, + _removeComponent: function _removeComponent(component) { + if (!component) { + cc.errorID(3814); + return; + } + if (!(this._objFlags & Destroying)) { + var i = this._components.indexOf(component); + if (-1 !== i) { + this._components.splice(i, 1); + (false, false) && cc.engine && delete cc.engine.attachedObjsForEditor[component._id]; + } else component.node !== this && cc.errorID(3815); + } + }, + destroy: function destroy() { + cc.Object.prototype.destroy.call(this) && (this.active = false); + }, + destroyAllChildren: function destroyAllChildren() { + var children = this._children; + for (var i = 0; i < children.length; ++i) children[i].destroy(); + }, + _onSetParent: function _onSetParent(value) {}, + _onPostActivated: function _onPostActivated() {}, + _onBatchCreated: function _onBatchCreated(dontSyncChildPrefab) {}, + _onHierarchyChanged: function _onHierarchyChanged(oldParent) { + var newParent = this._parent; + if (this._persistNode && !(newParent instanceof cc.Scene)) { + cc.game.removePersistRootNode(this); + false; + } + var scene; + var inCurrentSceneBefore; + var inCurrentSceneNow; + var newPrefabRoot; + var myPrefabInfo; + var PrefabUtils; + false, false; + var shouldActiveNow = this._active && !!(newParent && newParent._activeInHierarchy); + this._activeInHierarchy !== shouldActiveNow && cc.director._nodeActivator.activateNode(this, shouldActiveNow); + }, + _instantiate: function _instantiate(cloned, isSyncedNode) { + cloned || (cloned = cc.instantiate._clone(this, this)); + var newPrefabInfo = cloned._prefab; + var PrefabUtils; + false; + var syncing; + false; + cloned._parent = null; + cloned._onBatchCreated(isSyncedNode); + return cloned; + }, + _registerIfAttached: (false, false) && function(register) { + var attachedObjsForEditor = cc.engine.attachedObjsForEditor; + if (register) { + attachedObjsForEditor[this._id] = this; + for (var i = 0; i < this._components.length; i++) { + var comp = this._components[i]; + attachedObjsForEditor[comp._id] = comp; + } + cc.engine.emit("node-attach-to-scene", this); + } else { + cc.engine.emit("node-detach-from-scene", this); + delete attachedObjsForEditor[this._id]; + for (var _i3 = 0; _i3 < this._components.length; _i3++) { + var _comp3 = this._components[_i3]; + delete attachedObjsForEditor[_comp3._id]; + } + } + var children = this._children; + for (var _i4 = 0, len = children.length; _i4 < len; ++_i4) { + var child = children[_i4]; + child._registerIfAttached(register); + } + }, + _onPreDestroy: function _onPreDestroy() { + var i, len; + this._objFlags |= Destroying; + var parent = this._parent; + var destroyByParent = parent && parent._objFlags & Destroying; + !destroyByParent && (false, false) && this._registerIfAttached(false); + var children = this._children; + for (i = 0, len = children.length; i < len; ++i) children[i]._destroyImmediate(); + for (i = 0, len = this._components.length; i < len; ++i) { + var component = this._components[i]; + component._destroyImmediate(); + } + var eventTargets = this.__eventTargets; + for (i = 0, len = eventTargets.length; i < len; ++i) { + var target = eventTargets[i]; + target && target.targetOff(this); + } + eventTargets.length = 0; + this._persistNode && cc.game.removePersistRootNode(this); + if (!destroyByParent && parent) { + var childIndex = parent._children.indexOf(this); + parent._children.splice(childIndex, 1); + parent.emit && parent.emit("child-removed", this); + } + return destroyByParent; + }, + onRestore: false + }); + BaseNode.idGenerater = idGenerater; + BaseNode._stacks = [ [] ]; + BaseNode._stackId = 0; + BaseNode.prototype._onPreDestroyBase = BaseNode.prototype._onPreDestroy; + false; + BaseNode.prototype._onHierarchyChangedBase = BaseNode.prototype._onHierarchyChanged; + false; + var SameNameGetSets = [ "parent", "name", "children", "childrenCount" ]; + misc.propertyDefine(BaseNode, SameNameGetSets, {}); + false; + cc._BaseNode = module.exports = BaseNode; + }), { + "../event-manager": 112, + "../platform/CCObject": 127, + "../platform/id-generater": 138, + "../platform/js": 142, + "../renderer/render-flow": 153, + "./misc": 205 + } ], + 198: [ (function(require, module, exports) { + "use strict"; + var EPSILON = 1e-6; + function binarySearchEpsilon(array, value) { + for (var l = 0, h = array.length - 1, m = h >>> 1; l <= h; m = l + h >>> 1) { + var test = array[m]; + if (test > value + EPSILON) h = m - 1; else { + if (!(test < value - EPSILON)) return m; + l = m + 1; + } + } + return ~l; + } + module.exports = { + binarySearchEpsilon: binarySearchEpsilon + }; + }), {} ], + 199: [ (function(require, module, exports) { + "use strict"; + var RenderComponent = require("../components/CCRenderComponent"); + var BlendFactor = require("../platform/CCMacro").BlendFactor; + var gfx = require("../../renderer/gfx"); + var BlendFunc = cc.Class({ + properties: { + _srcBlendFactor: BlendFactor.SRC_ALPHA, + _dstBlendFactor: BlendFactor.ONE_MINUS_SRC_ALPHA, + srcBlendFactor: { + get: function get() { + return this._srcBlendFactor; + }, + set: function set(value) { + if (this._srcBlendFactor === value) return; + this._srcBlendFactor = value; + this._updateBlendFunc(true); + this._onBlendChanged && this._onBlendChanged(); + }, + animatable: false, + type: BlendFactor, + tooltip: false, + visible: true + }, + dstBlendFactor: { + get: function get() { + return this._dstBlendFactor; + }, + set: function set(value) { + if (this._dstBlendFactor === value) return; + this._dstBlendFactor = value; + this._updateBlendFunc(true); + }, + animatable: false, + type: BlendFactor, + tooltip: false, + visible: true + } + }, + setMaterial: function setMaterial(index, material) { + var materialVar = RenderComponent.prototype.setMaterial.call(this, index, material); + this._srcBlendFactor === BlendFactor.SRC_ALPHA && this._dstBlendFactor === BlendFactor.ONE_MINUS_SRC_ALPHA || this._updateMaterialBlendFunc(materialVar); + return materialVar; + }, + _updateMaterial: function _updateMaterial() { + this._updateBlendFunc(); + }, + _updateBlendFunc: function _updateBlendFunc(force) { + if (!force && this._srcBlendFactor === BlendFactor.SRC_ALPHA && this._dstBlendFactor === BlendFactor.ONE_MINUS_SRC_ALPHA) return; + var materials = this.getMaterials(); + for (var i = 0; i < materials.length; i++) { + var material = materials[i]; + this._updateMaterialBlendFunc(material); + } + }, + _updateMaterialBlendFunc: function _updateMaterialBlendFunc(material) { + material.setBlend(true, gfx.BLEND_FUNC_ADD, this._srcBlendFactor, this._dstBlendFactor, gfx.BLEND_FUNC_ADD, this._srcBlendFactor, this._dstBlendFactor); + false; + } + }); + module.exports = cc.BlendFunc = BlendFunc; + }), { + "../../renderer/gfx": 247, + "../components/CCRenderComponent": 98, + "../platform/CCMacro": 126 + } ], + 200: [ (function(require, module, exports) { + "use strict"; + var Base64Values = require("./misc").BASE64_VALUES; + var HexChars = "0123456789abcdef".split(""); + var _t = [ "", "", "", "" ]; + var UuidTemplate = _t.concat(_t, "-", _t, "-", _t, "-", _t, "-", _t, _t, _t); + var Indices = UuidTemplate.map((function(x, i) { + return "-" === x ? NaN : i; + })).filter(isFinite); + module.exports = function(base64) { + if (22 !== base64.length) return base64; + UuidTemplate[0] = base64[0]; + UuidTemplate[1] = base64[1]; + for (var i = 2, j = 2; i < 22; i += 2) { + var lhs = Base64Values[base64.charCodeAt(i)]; + var rhs = Base64Values[base64.charCodeAt(i + 1)]; + UuidTemplate[Indices[j++]] = HexChars[lhs >> 2]; + UuidTemplate[Indices[j++]] = HexChars[(3 & lhs) << 2 | rhs >> 4]; + UuidTemplate[Indices[j++]] = HexChars[15 & rhs]; + } + return UuidTemplate.join(""); + }; + false; + }), { + "./misc": 205 + } ], + 201: [ (function(require, module, exports) { + "use strict"; + cc.find = module.exports = function(path, referenceNode) { + if (null == path) { + cc.errorID(3814); + return null; + } + if (referenceNode) false; else { + var scene = cc.director.getScene(); + if (!scene) { + false; + return null; + } + false; + referenceNode = scene; + } + var match = referenceNode; + var startIndex = "/" !== path[0] ? 0 : 1; + var nameList = path.split("/"); + for (var n = startIndex; n < nameList.length; n++) { + var name = nameList[n]; + var children = match._children; + match = null; + for (var t = 0, len = children.length; t < len; ++t) { + var subChild = children[t]; + if (subChild.name === name) { + match = subChild; + break; + } + } + if (!match) return null; + } + return match; + }; + }), {} ], + 202: [ (function(require, module, exports) { + "use strict"; + var _materialVariant = _interopRequireDefault(require("../assets/material/material-variant")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + var Material = require("../assets/material/CCMaterial"); + var GraySpriteState = cc.Class({ + properties: { + _normalMaterial: null, + normalMaterial: { + get: function get() { + return this._normalMaterial; + }, + set: function set(val) { + this._normalMaterial = val; + this._updateDisabledState && this._updateDisabledState(); + }, + type: Material, + tooltip: false, + animatable: false + }, + _grayMaterial: null, + grayMaterial: { + get: function get() { + return this._grayMaterial; + }, + set: function set(val) { + this._grayMaterial = val; + this._updateDisabledState && this._updateDisabledState(); + }, + type: Material, + tooltip: false, + animatable: false + } + }, + _switchGrayMaterial: function _switchGrayMaterial(useGrayMaterial, renderComp) { + var material; + if (useGrayMaterial) { + material = this._grayMaterial; + material || (material = Material.getBuiltinMaterial("2d-gray-sprite")); + material = this._grayMaterial = _materialVariant["default"].create(material, renderComp); + } else { + material = this._normalMaterial; + material || (material = Material.getBuiltinMaterial("2d-sprite", renderComp)); + material = this._normalMaterial = _materialVariant["default"].create(material, renderComp); + } + renderComp.setMaterial(0, material); + } + }); + module.exports = GraySpriteState; + }), { + "../assets/material/CCMaterial": 75, + "../assets/material/material-variant": 82 + } ], + 203: [ (function(require, module, exports) { + "use strict"; + var eventRegx = /^(click)(\s)*=|(param)(\s)*=/; + var imageAttrReg = /(\s)*src(\s)*=|(\s)*height(\s)*=|(\s)*width(\s)*=|(\s)*align(\s)*=|(\s)*offset(\s)*=|(\s)*click(\s)*=|(\s)*param(\s)*=/; + var HtmlTextParser = function HtmlTextParser() { + this._parsedObject = {}; + this._specialSymbolArray = []; + this._specialSymbolArray.push([ /</g, "<" ]); + this._specialSymbolArray.push([ />/g, ">" ]); + this._specialSymbolArray.push([ /&/g, "&" ]); + this._specialSymbolArray.push([ /"/g, '"' ]); + this._specialSymbolArray.push([ /'/g, "'" ]); + this._specialSymbolArray.push([ / /g, " " ]); + }; + HtmlTextParser.prototype = { + constructor: HtmlTextParser, + parse: function parse(htmlString) { + this._resultObjectArray = []; + this._stack = []; + var startIndex = 0; + var length = htmlString.length; + while (startIndex < length) { + var tagEndIndex = htmlString.indexOf(">", startIndex); + var tagBeginIndex = -1; + if (tagEndIndex >= 0) { + tagBeginIndex = htmlString.lastIndexOf("<", tagEndIndex); + var noTagBegin = tagBeginIndex < startIndex - 1; + if (noTagBegin) { + tagBeginIndex = htmlString.indexOf("<", tagEndIndex + 1); + tagEndIndex = htmlString.indexOf(">", tagBeginIndex + 1); + } + } + if (tagBeginIndex < 0) { + this._stack.pop(); + this._processResult(htmlString.substring(startIndex)); + startIndex = length; + } else { + var newStr = htmlString.substring(startIndex, tagBeginIndex); + var tagStr = htmlString.substring(tagBeginIndex + 1, tagEndIndex); + "" === tagStr && (newStr = htmlString.substring(startIndex, tagEndIndex + 1)); + this._processResult(newStr); + -1 === tagEndIndex ? tagEndIndex = tagBeginIndex : "/" === htmlString.charAt(tagBeginIndex + 1) ? this._stack.pop() : this._addToStack(tagStr); + startIndex = tagEndIndex + 1; + } + } + return this._resultObjectArray; + }, + _attributeToObject: function _attributeToObject(attribute) { + attribute = attribute.trim(); + var obj = {}; + var header = attribute.match(/^(color|size)(\s)*=/); + var tagName; + var nextSpace; + var eventObj; + var eventHanlderString; + if (header) { + tagName = header[0]; + attribute = attribute.substring(tagName.length).trim(); + if ("" === attribute) return obj; + nextSpace = attribute.indexOf(" "); + switch (tagName[0]) { + case "c": + obj.color = nextSpace > -1 ? attribute.substring(0, nextSpace).trim() : attribute; + break; + + case "s": + obj.size = parseInt(attribute); + } + if (nextSpace > -1) { + eventHanlderString = attribute.substring(nextSpace + 1).trim(); + eventObj = this._processEventHandler(eventHanlderString); + obj.event = eventObj; + } + return obj; + } + header = attribute.match(/^(br(\s)*\/)/); + if (header && header[0].length > 0) { + tagName = header[0].trim(); + if (tagName.startsWith("br") && "/" === tagName[tagName.length - 1]) { + obj.isNewLine = true; + this._resultObjectArray.push({ + text: "", + style: { + newline: true + } + }); + return obj; + } + } + header = attribute.match(/^(img(\s)*src(\s)*=[^>]+\/)/); + if (header && header[0].length > 0) { + tagName = header[0].trim(); + if (tagName.startsWith("img") && "/" === tagName[tagName.length - 1]) { + header = attribute.match(imageAttrReg); + var tagValue; + var remainingArgument; + var isValidImageTag = false; + while (header) { + attribute = attribute.substring(attribute.indexOf(header[0])); + tagName = attribute.substr(0, header[0].length); + remainingArgument = attribute.substring(tagName.length).trim(); + nextSpace = remainingArgument.indexOf(" "); + tagValue = nextSpace > -1 ? remainingArgument.substr(0, nextSpace) : remainingArgument; + tagName = tagName.replace(/[^a-zA-Z]/g, "").trim(); + tagName = tagName.toLocaleLowerCase(); + attribute = remainingArgument.substring(nextSpace).trim(); + tagValue.endsWith("/") && (tagValue = tagValue.slice(0, -1)); + if ("src" === tagName) { + switch (tagValue.charCodeAt(0)) { + case 34: + case 39: + isValidImageTag = true; + tagValue = tagValue.slice(1, -1); + } + obj.isImage = true; + obj.src = tagValue; + } else if ("height" === tagName) obj.imageHeight = parseInt(tagValue); else if ("width" === tagName) obj.imageWidth = parseInt(tagValue); else if ("align" === tagName) { + switch (tagValue.charCodeAt(0)) { + case 34: + case 39: + tagValue = tagValue.slice(1, -1); + } + obj.imageAlign = tagValue.toLocaleLowerCase(); + } else "offset" === tagName ? obj.imageOffset = tagValue : "click" === tagName && (obj.event = this._processEventHandler(tagName + "=" + tagValue)); + obj.event && "param" === tagName && (obj.event.param = tagValue.replace(/^\"|\"$/g, "")); + header = attribute.match(imageAttrReg); + } + isValidImageTag && obj.isImage && this._resultObjectArray.push({ + text: "", + style: obj + }); + return {}; + } + } + header = attribute.match(/^(outline(\s)*[^>]*)/); + if (header) { + attribute = header[0].substring("outline".length).trim(); + var defaultOutlineObject = { + color: "#ffffff", + width: 1 + }; + if (attribute) { + var outlineAttrReg = /(\s)*color(\s)*=|(\s)*width(\s)*=|(\s)*click(\s)*=|(\s)*param(\s)*=/; + header = attribute.match(outlineAttrReg); + var tagValue; + while (header) { + attribute = attribute.substring(attribute.indexOf(header[0])); + tagName = attribute.substr(0, header[0].length); + remainingArgument = attribute.substring(tagName.length).trim(); + nextSpace = remainingArgument.indexOf(" "); + tagValue = nextSpace > -1 ? remainingArgument.substr(0, nextSpace) : remainingArgument; + tagName = tagName.replace(/[^a-zA-Z]/g, "").trim(); + tagName = tagName.toLocaleLowerCase(); + attribute = remainingArgument.substring(nextSpace).trim(); + "click" === tagName ? obj.event = this._processEventHandler(tagName + "=" + tagValue) : "color" === tagName ? defaultOutlineObject.color = tagValue : "width" === tagName && (defaultOutlineObject.width = parseInt(tagValue)); + obj.event && "param" === tagName && (obj.event.param = tagValue.replace(/^\"|\"$/g, "")); + header = attribute.match(outlineAttrReg); + } + } + obj.outline = defaultOutlineObject; + } + header = attribute.match(/^(on|u|b|i)(\s)*/); + if (header && header[0].length > 0) { + tagName = header[0]; + attribute = attribute.substring(tagName.length).trim(); + switch (tagName[0]) { + case "u": + obj.underline = true; + break; + + case "i": + obj.italic = true; + break; + + case "b": + obj.bold = true; + } + if ("" === attribute) return obj; + eventObj = this._processEventHandler(attribute); + obj.event = eventObj; + } + return obj; + }, + _processEventHandler: function _processEventHandler(eventString) { + var index = 0; + var obj = {}; + var eventNames = eventString.match(eventRegx); + var isValidTag = false; + while (eventNames) { + var eventName = eventNames[0]; + var eventValue = ""; + isValidTag = false; + eventString = eventString.substring(eventName.length).trim(); + if ('"' === eventString.charAt(0)) { + index = eventString.indexOf('"', 1); + if (index > -1) { + eventValue = eventString.substring(1, index).trim(); + isValidTag = true; + } + index++; + } else if ("'" === eventString.charAt(0)) { + index = eventString.indexOf("'", 1); + if (index > -1) { + eventValue = eventString.substring(1, index).trim(); + isValidTag = true; + } + index++; + } else { + var match = eventString.match(/(\S)+/); + eventValue = match ? match[0] : ""; + index = eventValue.length; + } + if (isValidTag) { + eventName = eventName.substring(0, eventName.length - 1).trim(); + obj[eventName] = eventValue; + } + eventString = eventString.substring(index).trim(); + eventNames = eventString.match(eventRegx); + } + return obj; + }, + _addToStack: function _addToStack(attribute) { + var obj = this._attributeToObject(attribute); + if (0 === this._stack.length) this._stack.push(obj); else { + if (obj.isNewLine || obj.isImage) return; + var previousTagObj = this._stack[this._stack.length - 1]; + for (var key in previousTagObj) obj[key] || (obj[key] = previousTagObj[key]); + this._stack.push(obj); + } + }, + _processResult: function _processResult(value) { + if ("" === value) return; + value = this._escapeSpecialSymbol(value); + this._stack.length > 0 ? this._resultObjectArray.push({ + text: value, + style: this._stack[this._stack.length - 1] + }) : this._resultObjectArray.push({ + text: value + }); + }, + _escapeSpecialSymbol: function _escapeSpecialSymbol(str) { + for (var i = 0; i < this._specialSymbolArray.length; ++i) { + var key = this._specialSymbolArray[i][0]; + var value = this._specialSymbolArray[i][1]; + str = str.replace(key, value); + } + return str; + } + }; + false; + module.exports = HtmlTextParser; + }), {} ], + 204: [ (function(require, module, exports) { + "use strict"; + require("./CCPath"); + true; + require("./profiler/CCProfiler"); + require("./find"); + require("./mutable-forward-iterator"); + }), { + "./CCPath": 195, + "./find": 201, + "./mutable-forward-iterator": 206, + "./profiler/CCProfiler": 209 + } ], + 205: [ (function(require, module, exports) { + "use strict"; + var js = require("../platform/js"); + var misc = {}; + misc.propertyDefine = function(ctor, sameNameGetSets, diffNameGetSets) { + function define(np, propName, getter, setter) { + var pd = Object.getOwnPropertyDescriptor(np, propName); + if (pd) { + pd.get && (np[getter] = pd.get); + pd.set && setter && (np[setter] = pd.set); + } else { + var getterFunc = np[getter]; + var clsName; + false; + js.getset(np, propName, getterFunc, np[setter]); + } + } + var propName, np = ctor.prototype; + for (var i = 0; i < sameNameGetSets.length; i++) { + propName = sameNameGetSets[i]; + var suffix = propName[0].toUpperCase() + propName.slice(1); + define(np, propName, "get" + suffix, "set" + suffix); + } + for (propName in diffNameGetSets) { + var getset = diffNameGetSets[propName]; + define(np, propName, getset[0], getset[1]); + } + }; + misc.NextPOT = function(x) { + x -= 1; + x |= x >> 1; + x |= x >> 2; + x |= x >> 4; + x |= x >> 8; + x |= x >> 16; + return x + 1; + }; + false; + misc.BUILTIN_CLASSID_RE = /^(?:cc|dragonBones|sp|ccsg)\..+/; + var BASE64_KEYS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; + var BASE64_VALUES = new Array(123); + for (var i = 0; i < 123; ++i) BASE64_VALUES[i] = 64; + for (var _i = 0; _i < 64; ++_i) BASE64_VALUES[BASE64_KEYS.charCodeAt(_i)] = _i; + misc.BASE64_VALUES = BASE64_VALUES; + misc.pushToMap = function(map, key, value, pushFront) { + var exists = map[key]; + if (exists) if (Array.isArray(exists)) if (pushFront) { + exists.push(exists[0]); + exists[0] = value; + } else exists.push(value); else map[key] = pushFront ? [ value, exists ] : [ exists, value ]; else map[key] = value; + }; + misc.clampf = function(value, min_inclusive, max_inclusive) { + if (min_inclusive > max_inclusive) { + var temp = min_inclusive; + min_inclusive = max_inclusive; + max_inclusive = temp; + } + return value < min_inclusive ? min_inclusive : value < max_inclusive ? value : max_inclusive; + }; + misc.clamp01 = function(value) { + return value < 0 ? 0 : value < 1 ? value : 1; + }; + misc.lerp = function(a, b, r) { + return a + (b - a) * r; + }; + misc.degreesToRadians = function(angle) { + return angle * cc.macro.RAD; + }; + misc.radiansToDegrees = function(angle) { + return angle * cc.macro.DEG; + }; + cc.misc = module.exports = misc; + }), { + "../platform/js": 142 + } ], + 206: [ (function(require, module, exports) { + "use strict"; + function MutableForwardIterator(array) { + this.i = 0; + this.array = array; + } + var proto = MutableForwardIterator.prototype; + proto.remove = function(value) { + var index = this.array.indexOf(value); + index >= 0 && this.removeAt(index); + }; + proto.removeAt = function(i) { + this.array.splice(i, 1); + i <= this.i && --this.i; + }; + proto.fastRemove = function(value) { + var index = this.array.indexOf(value); + index >= 0 && this.fastRemoveAt(index); + }; + proto.fastRemoveAt = function(i) { + var array = this.array; + array[i] = array[array.length - 1]; + --array.length; + i <= this.i && --this.i; + }; + proto.push = function(item) { + this.array.push(item); + }; + module.exports = MutableForwardIterator; + }), {} ], + 207: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var Pool = (function() { + function Pool() { + this.enabled = false; + this.count = 0; + this.maxSize = 1024; + } + var _proto = Pool.prototype; + _proto.get = function get() {}; + _proto.put = function put() {}; + _proto.clear = function clear() {}; + return Pool; + })(); + exports["default"] = Pool; + cc.pool = {}; + Pool.register = function(name, pool) { + cc.pool[name] = pool; + }; + module.exports = exports["default"]; + }), {} ], + 208: [ (function(require, module, exports) { + "use strict"; + cc._PrefabInfo = cc.Class({ + name: "cc.PrefabInfo", + properties: { + root: null, + asset: null, + fileId: "", + sync: false + } + }); + module.exports = { + syncWithPrefab: function syncWithPrefab(node) { + var _prefab = node._prefab; + if (!_prefab.asset) { + var NodeUtils; + var PrefabUtils; + false; + cc.errorID(3701, node.name); + node._prefab = null; + return; + } + var _objFlags = node._objFlags; + var _parent = node._parent; + var _id = node._id; + var _name = node._name; + var _active = node._active; + var eulerAnglesX = node._eulerAngles.x; + var eulerAnglesY = node._eulerAngles.y; + var eulerAnglesZ = node._eulerAngles.z; + var _localZOrder = node._localZOrder; + var trs = node._trs; + var x = trs[0]; + var y = trs[1]; + var z = trs[2]; + cc.game._isCloning = true; + var prefabRoot; + true; + _prefab.asset._doInstantiate(node); + cc.game._isCloning = false; + node._objFlags = _objFlags; + node._parent = _parent; + node._id = _id; + node._prefab = _prefab; + node._name = _name; + node._active = _active; + node._localZOrder = _localZOrder; + trs = node._trs; + trs[0] = x; + trs[1] = y; + trs[2] = z; + node._eulerAngles.x = eulerAnglesX; + node._eulerAngles.y = eulerAnglesY; + node._eulerAngles.z = eulerAnglesZ; + } + }; + }), {} ], + 209: [ (function(require, module, exports) { + "use strict"; + var macro = require("../../platform/CCMacro"); + var PerfCounter = require("./perf-counter"); + var _showFPS = false; + var _fontSize = 15; + var _stats = null; + var _rootNode = null; + var _label = null; + function generateStats() { + if (_stats) return; + _stats = { + fps: { + desc: "Framerate (FPS)", + below: 30, + average: 500 + }, + draws: { + desc: "Draw Call" + }, + frame: { + desc: "Frame time (ms)", + min: 0, + max: 50, + average: 500 + }, + logic: { + desc: "Game Logic (ms)", + min: 0, + max: 50, + average: 500, + color: "#080" + }, + render: { + desc: "Renderer (ms)", + min: 0, + max: 50, + average: 500, + color: "#f90" + }, + mode: { + desc: cc.game.renderType === cc.game.RENDER_TYPE_WEBGL ? "WebGL" : "Canvas", + min: 1 + } + }; + var now = performance.now(); + for (var id in _stats) _stats[id]._counter = new PerfCounter(id, _stats[id], now); + } + function generateNode() { + if (_rootNode && _rootNode.isValid) return; + _rootNode = new cc.Node("PROFILER-NODE"); + _rootNode.x = _rootNode.y = 10; + _rootNode.groupIndex = cc.Node.BuiltinGroupIndex.DEBUG; + cc.Camera._setupDebugCamera(); + _rootNode.zIndex = macro.MAX_ZINDEX; + cc.game.addPersistRootNode(_rootNode); + var left = new cc.Node("LEFT-PANEL"); + left.anchorX = left.anchorY = 0; + var leftLabel = left.addComponent(cc.Label); + leftLabel.fontSize = _fontSize; + leftLabel.lineHeight = _fontSize; + left.parent = _rootNode; + var right = new cc.Node("RIGHT-PANEL"); + right.anchorX = 1; + right.anchorY = 0; + right.x = 200; + var rightLabel = right.addComponent(cc.Label); + rightLabel.horizontalAlign = cc.Label.HorizontalAlign.RIGHT; + rightLabel.fontSize = _fontSize; + rightLabel.lineHeight = _fontSize; + right.parent = _rootNode; + if (cc.sys.platform !== cc.sys.BAIDU_GAME_SUB && cc.sys.platform !== cc.sys.WECHAT_GAME_SUB) { + leftLabel.cacheMode = cc.Label.CacheMode.CHAR; + rightLabel.cacheMode = cc.Label.CacheMode.CHAR; + } + _label = { + left: leftLabel, + right: rightLabel + }; + } + function beforeUpdate() { + generateNode(); + var now = cc.director._lastUpdate; + _stats["frame"]._counter.start(now); + _stats["logic"]._counter.start(now); + } + function afterUpdate() { + var now = performance.now(); + cc.director.isPaused() ? _stats["frame"]._counter.start(now) : _stats["logic"]._counter.end(now); + _stats["render"]._counter.start(now); + } + function updateLabel(stat) { + var length = 20; + var desc = stat.desc; + var value = stat._counter.human() + ""; + stat.label.string = stat.desc + " " + stat._counter.human(); + } + function afterDraw() { + var now = performance.now(); + _stats["render"]._counter.end(now); + _stats["draws"]._counter.value = cc.renderer.drawCalls; + _stats["frame"]._counter.end(now); + _stats["fps"]._counter.frame(now); + var left = ""; + var right = ""; + for (var id in _stats) { + var stat = _stats[id]; + stat._counter.sample(now); + left += stat.desc + "\n"; + right += stat._counter.human() + "\n"; + } + if (_label) { + _label.left.string = left; + _label.right.string = right; + } + } + cc.profiler = module.exports = { + isShowingStats: function isShowingStats() { + return _showFPS; + }, + hideStats: function hideStats() { + if (_showFPS) { + _rootNode && (_rootNode.active = false); + cc.director.off(cc.Director.EVENT_BEFORE_UPDATE, beforeUpdate); + cc.director.off(cc.Director.EVENT_AFTER_UPDATE, afterUpdate); + cc.director.off(cc.Director.EVENT_AFTER_DRAW, afterDraw); + _showFPS = false; + } + }, + showStats: function showStats() { + if (!_showFPS) { + generateStats(); + _rootNode && (_rootNode.active = true); + cc.director.on(cc.Director.EVENT_BEFORE_UPDATE, beforeUpdate); + cc.director.on(cc.Director.EVENT_AFTER_UPDATE, afterUpdate); + cc.director.on(cc.Director.EVENT_AFTER_DRAW, afterDraw); + _showFPS = true; + } + } + }; + }), { + "../../platform/CCMacro": 126, + "./perf-counter": 211 + } ], + 210: [ (function(require, module, exports) { + "use strict"; + var Counter = cc.Class({ + name: "cc.Counter", + ctor: function ctor(id, opts, now) { + this._id = id; + this._opts = opts || {}; + this._value = 0; + this._total = 0; + this._averageValue = 0; + this._accumValue = 0; + this._accumSamples = 0; + this._accumStart = now; + }, + properties: { + value: { + get: function get() { + return this._value; + }, + set: function set(v) { + this._value = v; + } + } + }, + _average: function _average(v, now) { + if (this._opts.average) { + this._accumValue += v; + ++this._accumSamples; + var t = now; + if (t - this._accumStart >= this._opts.average) { + this._averageValue = this._accumValue / this._accumSamples; + this._accumValue = 0; + this._accumStart = t; + this._accumSamples = 0; + } + } + }, + sample: function sample(now) { + this._average(this._value, now); + }, + human: function human() { + var v = this._opts.average ? this._averageValue : this._value; + return Math.round(100 * v) / 100; + }, + alarm: function alarm() { + return this._opts.below && this._value < this._opts.below || this._opts.over && this._value > this._opts.over; + } + }); + module.exports = Counter; + }), {} ], + 211: [ (function(require, module, exports) { + "use strict"; + var Counter = require("./counter"); + var PerfCounter = cc.Class({ + name: "cc.PerfCounter", + extends: Counter, + ctor: function ctor(id, opts, now) { + this._time = now; + }, + start: function start(now) { + this._time = now; + }, + end: function end(now) { + this._value = now - this._time; + this._average(this._value); + }, + tick: function tick() { + this.end(); + this.start(); + }, + frame: function frame(now) { + var t = now; + var e = t - this._time; + this._total++; + var avg = this._opts.average || 1e3; + if (e > avg) { + this._value = 1e3 * this._total / e; + this._total = 0; + this._time = t; + this._average(this._value); + } + } + }); + module.exports = PerfCounter; + }), { + "./counter": 210 + } ], + 212: [ (function(require, module, exports) { + "use strict"; + var _js = _interopRequireDefault(require("../platform/js")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + var _BASELINE_RATIO = .26; + var _BASELINE_OFFSET = 0; + false; + var MAX_CACHE_SIZE = 100; + var pool = new _js["default"].Pool(2); + pool.get = function() { + var node = this._get() || { + key: null, + value: null, + prev: null, + next: null + }; + return node; + }; + function LRUCache(size) { + this.count = 0; + this.limit = size; + this.datas = {}; + this.head = null; + this.tail = null; + } + LRUCache.prototype.moveToHead = function(node) { + node.next = this.head; + node.prev = null; + null !== this.head && (this.head.prev = node); + this.head = node; + null === this.tail && (this.tail = node); + this.count++; + this.datas[node.key] = node; + }; + LRUCache.prototype.put = function(key, value) { + var node = pool.get(); + node.key = key; + node.value = value; + if (this.count >= this.limit) { + var discard = this.tail; + delete this.datas[discard.key]; + this.count--; + this.tail = discard.prev; + this.tail.next = null; + discard.prev = null; + discard.next = null; + pool.put(discard); + } + this.moveToHead(node); + }; + LRUCache.prototype.remove = function(node) { + null !== node.prev ? node.prev.next = node.next : this.head = node.next; + null !== node.next ? node.next.prev = node.prev : this.tail = node.prev; + delete this.datas[node.key]; + this.count--; + }; + LRUCache.prototype.get = function(key) { + var node = this.datas[key]; + if (node) { + this.remove(node); + this.moveToHead(node); + return node.value; + } + return null; + }; + LRUCache.prototype.clear = function() { + this.count = 0; + this.datas = {}; + this.head = null; + this.tail = null; + }; + LRUCache.prototype.has = function(key) { + return !!this.datas[key]; + }; + LRUCache.prototype["delete"] = function(key) { + var node = this.datas[key]; + this.remove(node); + }; + var measureCache = new LRUCache(MAX_CACHE_SIZE); + var textUtils = { + BASELINE_RATIO: _BASELINE_RATIO, + MIDDLE_RATIO: (_BASELINE_RATIO + 1) / 2 - _BASELINE_RATIO, + BASELINE_OFFSET: _BASELINE_OFFSET, + label_wordRex: /([a-zA-Z0-9\xc4\xd6\xdc\xe4\xf6\xfc\xdf\xe9\xe8\xe7\xe0\xf9\xea\xe2\xee\xf4\xfb\u0430-\u044f\u0410-\u042f\u0401\u0451]+|\S)/, + label_symbolRex: /^[!,.:;'}\]%\?>\u3001\u2018\u201c\u300b\uff1f\u3002\uff0c\uff01]/, + label_lastWordRex: /([a-zA-Z0-9\xc4\xd6\xdc\xe4\xf6\xfc\xdf\xe9\xe8\xe7\xe0\xf9\xea\xe2\xee\xf4\xfb\u0430\xed\xec\xcd\xcc\xef\xc1\xc0\xe1\xe0\xc9\xc8\xd2\xd3\xf2\xf3\u0150\u0151\xd9\xda\u0170\xfa\u0171\xf1\xd1\xe6\xc6\u0153\u0152\xc3\xc2\xe3\xd4\xf5\u011b\u0161\u010d\u0159\u017e\xfd\xe1\xed\xe9\xf3\xfa\u016f\u0165\u010f\u0148\u011a\u0160\u010c\u0158\u017d\xc1\xcd\xc9\xd3\xda\u0164\u017c\u017a\u015b\xf3\u0144\u0142\u0119\u0107\u0105\u017b\u0179\u015a\xd3\u0143\u0141\u0118\u0106\u0104-\u044f\u0410-\u042f\u0401\u0451]+|\S)$/, + label_lastEnglish: /[a-zA-Z0-9\xc4\xd6\xdc\xe4\xf6\xfc\xdf\xe9\xe8\xe7\xe0\xf9\xea\xe2\xee\xf4\xfb\u0430\xed\xec\xcd\xcc\xef\xc1\xc0\xe1\xe0\xc9\xc8\xd2\xd3\xf2\xf3\u0150\u0151\xd9\xda\u0170\xfa\u0171\xf1\xd1\xe6\xc6\u0153\u0152\xc3\xc2\xe3\xd4\xf5\u011b\u0161\u010d\u0159\u017e\xfd\xe1\xed\xe9\xf3\xfa\u016f\u0165\u010f\u0148\u011a\u0160\u010c\u0158\u017d\xc1\xcd\xc9\xd3\xda\u0164\u017c\u017a\u015b\xf3\u0144\u0142\u0119\u0107\u0105\u017b\u0179\u015a\xd3\u0143\u0141\u0118\u0106\u0104-\u044f\u0410-\u042f\u0401\u0451]+$/, + label_firstEnglish: /^[a-zA-Z0-9\xc4\xd6\xdc\xe4\xf6\xfc\xdf\xe9\xe8\xe7\xe0\xf9\xea\xe2\xee\xf4\xfb\u0430\xed\xec\xcd\xcc\xef\xc1\xc0\xe1\xe0\xc9\xc8\xd2\xd3\xf2\xf3\u0150\u0151\xd9\xda\u0170\xfa\u0171\xf1\xd1\xe6\xc6\u0153\u0152\xc3\xc2\xe3\xd4\xf5\u011b\u0161\u010d\u0159\u017e\xfd\xe1\xed\xe9\xf3\xfa\u016f\u0165\u010f\u0148\u011a\u0160\u010c\u0158\u017d\xc1\xcd\xc9\xd3\xda\u0164\u017c\u017a\u015b\xf3\u0144\u0142\u0119\u0107\u0105\u017b\u0179\u015a\xd3\u0143\u0141\u0118\u0106\u0104-\u044f\u0410-\u042f\u0401\u0451]/, + highSurrogateRex: /[\uD800-\uDBFF]/, + lowSurrogateRex: /[\uDC00-\uDFFF]/, + label_wrapinspection: true, + __CHINESE_REG: /^[\u4E00-\u9FFF\u3400-\u4DFF]+$/, + __JAPANESE_REG: /[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]|[\u4E00-\u9FAF]|[\u2605-\u2606]|[\u2190-\u2195]|\u203B/g, + __KOREAN_REG: /^[\u1100-\u11FF]|[\u3130-\u318F]|[\uA960-\uA97F]|[\uAC00-\uD7AF]|[\uD7B0-\uD7FF]+$/, + isUnicodeCJK: function isUnicodeCJK(ch) { + return this.__CHINESE_REG.test(ch) || this.__JAPANESE_REG.test(ch) || this.__KOREAN_REG.test(ch); + }, + isUnicodeSpace: function isUnicodeSpace(ch) { + ch = ch.charCodeAt(0); + return ch >= 9 && ch <= 13 || 32 === ch || 133 === ch || 160 === ch || 5760 === ch || ch >= 8192 && ch <= 8202 || 8232 === ch || 8233 === ch || 8239 === ch || 8287 === ch || 12288 === ch; + }, + safeMeasureText: function safeMeasureText(ctx, string, desc) { + var font = desc || ctx.font; + var key = font + "\ud83c\udfae" + string; + var cache = measureCache.get(key); + if (null !== cache) return cache; + var metric = ctx.measureText(string); + var width = metric && metric.width || 0; + measureCache.put(key, width); + return width; + }, + _safeSubstring: function _safeSubstring(targetString, startIndex, endIndex) { + var newStartIndex = startIndex, newEndIndex = endIndex; + var startChar = targetString[startIndex]; + this.lowSurrogateRex.test(startChar) && newStartIndex--; + if (void 0 !== endIndex) if (endIndex - 1 !== startIndex) { + var endChar = targetString[endIndex - 1]; + this.highSurrogateRex.test(endChar) && newEndIndex--; + } else this.highSurrogateRex.test(startChar) && newEndIndex++; + return targetString.substring(newStartIndex, newEndIndex); + }, + fragmentText: function fragmentText(stringToken, allWidth, maxWidth, measureText) { + var wrappedWords = []; + if (0 === stringToken.length || maxWidth < 0) { + wrappedWords.push(""); + return wrappedWords; + } + var text = stringToken; + while (allWidth > maxWidth && text.length > 1) { + var fuzzyLen = text.length * (maxWidth / allWidth) | 0; + var tmpText = this._safeSubstring(text, fuzzyLen); + var width = allWidth - measureText(tmpText); + var sLine = tmpText; + var pushNum = 0; + var checkWhile = 0; + var checkCount = 10; + while (width > maxWidth && checkWhile++ < checkCount) { + fuzzyLen *= maxWidth / width; + fuzzyLen |= 0; + tmpText = this._safeSubstring(text, fuzzyLen); + width = allWidth - measureText(tmpText); + } + checkWhile = 0; + while (width <= maxWidth && checkWhile++ < checkCount) { + if (tmpText) { + var exec = this.label_wordRex.exec(tmpText); + pushNum = exec ? exec[0].length : 1; + sLine = tmpText; + } + fuzzyLen += pushNum; + tmpText = this._safeSubstring(text, fuzzyLen); + width = allWidth - measureText(tmpText); + } + fuzzyLen -= pushNum; + if (0 === fuzzyLen) { + fuzzyLen = 1; + sLine = this._safeSubstring(text, 1); + } else if (1 === fuzzyLen && this.highSurrogateRex.test(text[0])) { + fuzzyLen = 2; + sLine = this._safeSubstring(text, 2); + } + var sText = this._safeSubstring(text, 0, fuzzyLen), result; + if (this.label_wrapinspection && this.label_symbolRex.test(sLine || tmpText)) { + result = this.label_lastWordRex.exec(sText); + fuzzyLen -= result ? result[0].length : 0; + 0 === fuzzyLen && (fuzzyLen = 1); + sLine = this._safeSubstring(text, fuzzyLen); + sText = this._safeSubstring(text, 0, fuzzyLen); + } + if (this.label_firstEnglish.test(sLine)) { + result = this.label_lastEnglish.exec(sText); + if (result && sText !== result[0]) { + fuzzyLen -= result[0].length; + sLine = this._safeSubstring(text, fuzzyLen); + sText = this._safeSubstring(text, 0, fuzzyLen); + } + } + if (0 === wrappedWords.length) wrappedWords.push(sText); else { + sText = sText.trimLeft(); + sText.length > 0 && wrappedWords.push(sText); + } + text = sLine || tmpText; + allWidth = measureText(text); + } + if (0 === wrappedWords.length) wrappedWords.push(text); else { + text = text.trimLeft(); + text.length > 0 && wrappedWords.push(text); + } + return wrappedWords; + } + }; + cc.textUtils = module.exports = textUtils; + }), { + "../platform/js": 142 + } ], + 213: [ (function(require, module, exports) { + "use strict"; + var Texture2D = require("../assets/CCTexture2D"); + var textureUtil = { + loadImage: function loadImage(url, cb, target) { + cc.assertID(url, 3103); + var tex = cc.assetManager.assets.get(url); + if (tex) { + if (tex.loaded) { + cb && cb.call(target, null, tex); + return tex; + } + tex.once("load", (function() { + cb && cb.call(target, null, tex); + }), target); + return tex; + } + cc.assetManager.loadRemote(url, (function(err, texture) { + cb && cb.call(target, err, texture); + })); + }, + cacheImage: function cacheImage(url, image) { + if (url && image) { + var tex = new Texture2D(); + tex.initWithElement(image); + cc.assetManager.assets.add(url, tex); + return tex; + } + }, + postLoadTexture: function postLoadTexture(texture, callback) { + if (texture.loaded) { + callback && callback(); + return; + } + if (!texture.nativeUrl) { + callback && callback(); + return; + } + cc.assetManager.postLoadNative(texture, callback); + } + }; + module.exports = textureUtil; + }), { + "../assets/CCTexture2D": 72 + } ], + 214: [ (function(require, module, exports) { + "use strict"; + var NodeUnit = require("./node-unit"); + var NodeMemPool = require("./node-mem-pool"); + module.exports = { + NodeMemPool: new NodeMemPool(NodeUnit) + }; + }), { + "./node-mem-pool": 216, + "./node-unit": 217 + } ], + 215: [ (function(require, module, exports) { + "use strict"; + var MemPool = function MemPool(unitClass) { + this._unitClass = unitClass; + this._pool = []; + this._findOrder = []; + false; + }; + var proto = MemPool.prototype; + proto._initNative = function() { + this._nativeMemPool = new renderer.MemPool(); + }; + proto._buildUnit = function(unitID) { + var unit = new this._unitClass(unitID, this); + false; + return unit; + }; + proto._destroyUnit = function(unitID) { + this._pool[unitID] = null; + for (var idx = 0, n = this._findOrder.length; idx < n; idx++) { + var unit = this._findOrder[idx]; + if (unit && unit.unitID == unitID) { + this._findOrder.splice(idx, 1); + break; + } + } + false; + }; + proto._findUnitID = function() { + var unitID = 0; + var pool = this._pool; + while (pool[unitID]) unitID++; + return unitID; + }; + proto.pop = function() { + var findUnit = null; + var idx = 0; + var findOrder = this._findOrder; + var pool = this._pool; + for (var n = findOrder.length; idx < n; idx++) { + var unit = findOrder[idx]; + if (unit && unit.hasSpace()) { + findUnit = unit; + break; + } + } + if (!findUnit) { + var unitID = this._findUnitID(); + findUnit = this._buildUnit(unitID); + pool[unitID] = findUnit; + findOrder.push(findUnit); + idx = findOrder.length - 1; + } + var firstUnit = findOrder[0]; + if (firstUnit !== findUnit) { + findOrder[0] = findUnit; + findOrder[idx] = firstUnit; + } + return findUnit.pop(); + }; + proto.push = function(info) { + var unit = this._pool[info.unitID]; + unit.push(info.index); + this._findOrder.length > 1 && unit.isAllFree() && this._destroyUnit(info.unitID); + return unit; + }; + module.exports = MemPool; + }), {} ], + 216: [ (function(require, module, exports) { + "use strict"; + var MemPool = require("./mem-pool"); + var NodeMemPool = function NodeMemPool(unitClass) { + MemPool.call(this, unitClass); + }; + (function() { + var Super = function Super() {}; + Super.prototype = MemPool.prototype; + NodeMemPool.prototype = new Super(); + })(); + var proto = NodeMemPool.prototype; + proto._initNative = function() { + this._nativeMemPool = new renderer.NodeMemPool(); + }; + proto._destroyUnit = function(unitID) { + MemPool.prototype._destroyUnit.call(this, unitID); + false; + }; + module.exports = NodeMemPool; + }), { + "./mem-pool": 215 + } ], + 217: [ (function(require, module, exports) { + "use strict"; + var _utils = require("../../value-types/utils"); + var Uint32_Bytes = 4; + var Uint8_Bytes = 1; + var Dirty_Type = Uint32Array; + var Dirty_Members = 1; + var Dirty_Stride = Dirty_Members * Uint32_Bytes; + var TRS_Members = 10; + var TRS_Stride = TRS_Members * _utils.FLOAT_BYTES; + var LocalMatrix_Members = 16; + var LocalMatrix_Stride = LocalMatrix_Members * _utils.FLOAT_BYTES; + var WorldMatrix_Members = 16; + var WorldMatrix_Stride = WorldMatrix_Members * _utils.FLOAT_BYTES; + var Parent_Type = Uint32Array; + var Parent_Members = 2; + var Parent_Stride = Parent_Members * Uint32_Bytes; + var ZOrder_Type = Uint32Array; + var ZOrder_Members = 1; + var ZOrder_Stride = ZOrder_Members * Uint32_Bytes; + var CullingMask_Type = Int32Array; + var CullingMask_Members = 1; + var CullingMask_Stride = CullingMask_Members * Uint32_Bytes; + var Opacity_Type = Uint8Array; + var Opacity_Members = 1; + var Opacity_Stride = Opacity_Members * Uint8_Bytes; + var Is3D_Type = Uint8Array; + var Is3D_Members = 1; + var Is3D_Stride = Is3D_Members * Uint8_Bytes; + var Node_Type = Uint32Array; + var Node_Members = 2; + var Skew_Members = 2; + var Skew_Stride = Skew_Members * _utils.FLOAT_BYTES; + var UnitBase = require("./unit-base"); + var NodeUnit = function NodeUnit(unitID, memPool) { + UnitBase.call(this, unitID, memPool); + var contentNum = this._contentNum; + this.trsList = new _utils.FLOAT_ARRAY_TYPE(contentNum * TRS_Members); + this.localMatList = new _utils.FLOAT_ARRAY_TYPE(contentNum * LocalMatrix_Members); + this.worldMatList = new _utils.FLOAT_ARRAY_TYPE(contentNum * WorldMatrix_Members); + false; + for (var i = 0; i < contentNum; i++) { + var space = this._spacesData[i]; + space.trs = new _utils.FLOAT_ARRAY_TYPE(this.trsList.buffer, i * TRS_Stride, TRS_Members); + space.localMat = new _utils.FLOAT_ARRAY_TYPE(this.localMatList.buffer, i * LocalMatrix_Stride, LocalMatrix_Members); + space.worldMat = new _utils.FLOAT_ARRAY_TYPE(this.worldMatList.buffer, i * WorldMatrix_Stride, WorldMatrix_Members); + false; + } + }; + (function() { + var Super = function Super() {}; + Super.prototype = UnitBase.prototype; + NodeUnit.prototype = new Super(); + })(); + module.exports = NodeUnit; + }), { + "../../value-types/utils": 227, + "./unit-base": 218 + } ], + 218: [ (function(require, module, exports) { + "use strict"; + var POINTER_INVALID_FLAG = 65535; + var SPACE_FREE_FLAG = 0; + var SPACE_USE_FLAG = 1; + var POS_NEXT_FREE = 0; + var POS_FREE_FLAG = 1; + var UnitBase = function UnitBase(unitID, memPool, contentNum) { + contentNum = contentNum || 128; + this.unitID = unitID; + this._memPool = memPool; + this._data = new Uint16Array(2); + this._data[0] = 0; + this._data[1] = 0; + this._contentNum = contentNum; + this._signData = new Uint16Array(2 * this._contentNum); + this._spacesData = []; + for (var i = 0; i < contentNum; i++) { + var signIndex = 2 * i; + this._signData[signIndex + POS_NEXT_FREE] = i + 1; + this._signData[signIndex + POS_FREE_FLAG] = SPACE_FREE_FLAG; + this._spacesData[i] = { + index: i, + unitID: unitID + }; + } + this._signData[2 * (contentNum - 1)] = POINTER_INVALID_FLAG; + }; + var UnitBaseProto = UnitBase.prototype; + UnitBaseProto.hasSpace = function() { + return this._data[0] !== POINTER_INVALID_FLAG; + }; + UnitBaseProto.isAllFree = function() { + return 0 == this._data[1]; + }; + UnitBaseProto.pop = function() { + var headFreeIndex = this._data[0]; + if (headFreeIndex === POINTER_INVALID_FLAG) return null; + var index = headFreeIndex; + var signIndex = 2 * index; + var space = this._spacesData[index]; + this._signData[signIndex + POS_FREE_FLAG] = SPACE_USE_FLAG; + this._data[0] = this._signData[signIndex + POS_NEXT_FREE]; + this._data[1]++; + return space; + }; + UnitBaseProto.push = function(index) { + var signIndex = 2 * index; + this._signData[signIndex + POS_FREE_FLAG] = SPACE_FREE_FLAG; + this._signData[signIndex + POS_NEXT_FREE] = this._data[0]; + this._data[0] = index; + this._data[1]--; + }; + UnitBaseProto.dump = function() { + var spaceNum = 0; + var index = this._data[0]; + var freeStr = ""; + while (index != POINTER_INVALID_FLAG) { + spaceNum++; + freeStr += index + "->"; + index = this._signData[2 * index + POS_NEXT_FREE]; + } + var usingNum = 0; + var usingStr = ""; + var contentNum = this._contentNum; + for (var i = 0; i < contentNum; i++) { + var freeFlag = this._signData[2 * i + POS_FREE_FLAG]; + if (freeFlag == SPACE_USE_FLAG) { + usingNum++; + usingStr += i + "->"; + } + } + var totalNum = spaceNum + usingNum; + console.log("unitID:", this.unitID, "spaceNum:", spaceNum, "calc using num:", usingNum, "store using num:", this._data[1], "calc total num:", totalNum, "actually total num:", this._contentNum); + console.log("free info:", freeStr); + console.log("using info:", usingStr); + usingNum != this._data[1] && cc.error("using num error", "calc using num:", usingNum, "store using num:", this._data[1]); + spaceNum + usingNum != this._contentNum && cc.error("total num error", "calc total num:", totalNum, "actually total num:", this._contentNum); + }; + module.exports = UnitBase; + }), {} ], + 219: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _valueType = _interopRequireDefault(require("./value-type")); + var _CCClass = _interopRequireDefault(require("../platform/CCClass")); + var _misc = _interopRequireDefault(require("../utils/misc")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + "value" in descriptor && (descriptor.writable = true); + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _createClass(Constructor, protoProps, staticProps) { + protoProps && _defineProperties(Constructor.prototype, protoProps); + staticProps && _defineProperties(Constructor, staticProps); + Object.defineProperty(Constructor, "prototype", { + writable: false + }); + return Constructor; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var Color = (function(_ValueType) { + _inheritsLoose(Color, _ValueType); + Color.copy = function copy(out, a) { + out.r = a.r; + out.g = a.g; + out.b = a.b; + out.a = a.a; + return out; + }; + Color.clone = function clone(a) { + return new Color(a.r, a.g, a.b, a.a); + }; + Color.set = function set(out, r, g, b, a) { + void 0 === r && (r = 255); + void 0 === g && (g = 255); + void 0 === b && (b = 255); + void 0 === a && (a = 255); + out.r = r; + out.g = g; + out.b = b; + out.a = a; + return out; + }; + Color.fromHex = function fromHex(out, hex) { + var r = (hex >> 24) / 255; + var g = (hex >> 16 & 255) / 255; + var b = (hex >> 8 & 255) / 255; + var a = (255 & hex) / 255; + out.r = r; + out.g = g; + out.b = b; + out.a = a; + return out; + }; + Color.fromHEX = function fromHEX(out, hexString) { + hexString = 0 === hexString.indexOf("#") ? hexString.substring(1) : hexString; + out.r = parseInt(hexString.substr(0, 2), 16) || 0; + out.g = parseInt(hexString.substr(2, 2), 16) || 0; + out.b = parseInt(hexString.substr(4, 2), 16) || 0; + out.a = parseInt(hexString.substr(6, 2), 16) || 255; + out._val = (out.a << 24 >>> 0) + (out.b << 16) + (out.g << 8) + out.r; + return out; + }; + Color.add = function add(out, a, b) { + out.r = a.r + b.r; + out.g = a.g + b.g; + out.b = a.b + b.b; + out.a = a.a + b.a; + return out; + }; + Color.subtract = function subtract(out, a, b) { + out.r = a.r - b.r; + out.g = a.g - b.g; + out.b = a.b - b.b; + out.a = a.a - b.a; + return out; + }; + Color.multiply = function multiply(out, a, b) { + out.r = a.r * b.r; + out.g = a.g * b.g; + out.b = a.b * b.b; + out.a = a.a * b.a; + return out; + }; + Color.divide = function divide(out, a, b) { + out.r = a.r / b.r; + out.g = a.g / b.g; + out.b = a.b / b.b; + out.a = a.a / b.a; + return out; + }; + Color.scale = function scale(out, a, b) { + out.r = a.r * b; + out.g = a.g * b; + out.b = a.b * b; + out.a = a.a * b; + return out; + }; + Color.lerp = function lerp(out, a, b, t) { + var ar = a.r, ag = a.g, ab = a.b, aa = a.a; + out.r = ar + t * (b.r - ar); + out.g = ag + t * (b.g - ag); + out.b = ab + t * (b.b - ab); + out.a = aa + t * (b.a - aa); + return out; + }; + Color.toArray = function toArray(out, a, ofs) { + void 0 === ofs && (ofs = 0); + var scale = a instanceof Color || a.a > 1 ? 1 / 255 : 1; + out[ofs + 0] = a.r * scale; + out[ofs + 1] = a.g * scale; + out[ofs + 2] = a.b * scale; + out[ofs + 3] = a.a * scale; + return out; + }; + Color.fromArray = function fromArray(arr, out, ofs) { + void 0 === ofs && (ofs = 0); + out.r = 255 * arr[ofs + 0]; + out.g = 255 * arr[ofs + 1]; + out.b = 255 * arr[ofs + 2]; + out.a = 255 * arr[ofs + 3]; + return out; + }; + Color.premultiplyAlpha = function premultiplyAlpha(out, color) { + var alpha = color.a / 255; + out.r = color.r * alpha; + out.g = color.g * alpha; + out.b = color.b * alpha; + out._fastSetA(color.a); + return out; + }; + function Color(r, g, b, a) { + var _this; + void 0 === r && (r = 0); + void 0 === g && (g = 0); + void 0 === b && (b = 0); + void 0 === a && (a = 255); + _this = _ValueType.call(this) || this; + _this._val = 0; + if ("object" === typeof r) { + g = r.g; + b = r.b; + a = r.a; + r = r.r; + } + _this._val = (a << 24 >>> 0) + (b << 16) + (g << 8) + (0 | r); + return _this; + } + var _proto = Color.prototype; + _proto.clone = function clone() { + var ret = new Color(); + ret._val = this._val; + return ret; + }; + _proto.equals = function equals(other) { + return other && this._val === other._val; + }; + _proto.lerp = function lerp(to, ratio, out) { + out = out || new Color(); + var r = this.r; + var g = this.g; + var b = this.b; + var a = this.a; + out.r = r + (to.r - r) * ratio; + out.g = g + (to.g - g) * ratio; + out.b = b + (to.b - b) * ratio; + out.a = a + (to.a - a) * ratio; + return out; + }; + _proto.toString = function toString() { + return "rgba(" + this.r.toFixed() + ", " + this.g.toFixed() + ", " + this.b.toFixed() + ", " + this.a.toFixed() + ")"; + }; + _proto.getR = function getR() { + return 255 & this._val; + }; + _proto.setR = function setR(red) { + red = ~~_misc["default"].clampf(red, 0, 255); + this._val = (4294967040 & this._val | red) >>> 0; + return this; + }; + _proto.getG = function getG() { + return (65280 & this._val) >> 8; + }; + _proto.setG = function setG(green) { + green = ~~_misc["default"].clampf(green, 0, 255); + this._val = (4294902015 & this._val | green << 8) >>> 0; + return this; + }; + _proto.getB = function getB() { + return (16711680 & this._val) >> 16; + }; + _proto.setB = function setB(blue) { + blue = ~~_misc["default"].clampf(blue, 0, 255); + this._val = (4278255615 & this._val | blue << 16) >>> 0; + return this; + }; + _proto.getA = function getA() { + return (4278190080 & this._val) >>> 24; + }; + _proto.setA = function setA(alpha) { + alpha = ~~_misc["default"].clampf(alpha, 0, 255); + this._val = (16777215 & this._val | alpha << 24) >>> 0; + return this; + }; + _proto.toCSS = function toCSS(opt) { + return opt && "rgba" !== opt ? "rgb" === opt ? "rgb(" + this.r + "," + this.g + "," + this.b + ")" : "#" + this.toHEX(opt) : "rgba(" + this.r + "," + this.g + "," + this.b + "," + (this.a / 255).toFixed(2) + ")"; + }; + _proto.fromHEX = function fromHEX(hexString) { + hexString = 0 === hexString.indexOf("#") ? hexString.substring(1) : hexString; + var r = parseInt(hexString.substr(0, 2), 16) || 0; + var g = parseInt(hexString.substr(2, 2), 16) || 0; + var b = parseInt(hexString.substr(4, 2), 16) || 0; + var a = parseInt(hexString.substr(6, 2), 16) || 255; + this._val = (a << 24 >>> 0) + (b << 16) + (g << 8) + r; + return this; + }; + _proto.toHEX = function toHEX(fmt) { + var prefix = "0"; + var hex = [ (this.r < 16 ? prefix : "") + this.r.toString(16), (this.g < 16 ? prefix : "") + this.g.toString(16), (this.b < 16 ? prefix : "") + this.b.toString(16) ]; + if ("#rgb" === fmt) { + hex[0] = hex[0][0]; + hex[1] = hex[1][0]; + hex[2] = hex[2][0]; + } else "#rrggbbaa" === fmt && hex.push((this.a < 16 ? prefix : "") + this.a.toString(16)); + return hex.join(""); + }; + _proto.toRGBValue = function toRGBValue() { + return 16777215 & this._val; + }; + _proto.fromHSV = function fromHSV(h, s, v) { + var r, g, b; + if (0 === s) r = g = b = v; else if (0 === v) r = g = b = 0; else { + 1 === h && (h = 0); + h *= 6; + var i = Math.floor(h); + var f = h - i; + var p = v * (1 - s); + var q = v * (1 - s * f); + var t = v * (1 - s * (1 - f)); + switch (i) { + case 0: + r = v; + g = t; + b = p; + break; + + case 1: + r = q; + g = v; + b = p; + break; + + case 2: + r = p; + g = v; + b = t; + break; + + case 3: + r = p; + g = q; + b = v; + break; + + case 4: + r = t; + g = p; + b = v; + break; + + case 5: + r = v; + g = p; + b = q; + } + } + r *= 255; + g *= 255; + b *= 255; + this._val = (this.a << 24 >>> 0) + (b << 16) + (g << 8) + (0 | r); + return this; + }; + _proto.toHSV = function toHSV() { + var r = this.r / 255; + var g = this.g / 255; + var b = this.b / 255; + var hsv = { + h: 0, + s: 0, + v: 0 + }; + var max = Math.max(r, g, b); + var min = Math.min(r, g, b); + var delta = 0; + hsv.v = max; + hsv.s = max ? (max - min) / max : 0; + if (hsv.s) { + delta = max - min; + hsv.h = r === max ? (g - b) / delta : g === max ? 2 + (b - r) / delta : 4 + (r - g) / delta; + hsv.h /= 6; + hsv.h < 0 && (hsv.h += 1); + } else hsv.h = 0; + return hsv; + }; + _proto.set = function set(color) { + if (color._val) this._val = color._val; else { + this.r = color.r; + this.g = color.g; + this.b = color.b; + this.a = color.a; + } + return this; + }; + _proto._fastSetA = function _fastSetA(alpha) { + this._val = (16777215 & this._val | alpha << 24) >>> 0; + }; + _proto.multiply = function multiply(other) { + var r = (255 & this._val) * other.r >> 8; + var g = (65280 & this._val) * other.g >> 8; + var b = (16711680 & this._val) * other.b >> 8; + var a = ((4278190080 & this._val) >>> 8) * other.a; + this._val = 4278190080 & a | 16711680 & b | 65280 & g | 255 & r; + return this; + }; + _createClass(Color, [ { + key: "r", + get: function get() { + return this.getR(); + }, + set: function set(v) { + this.setR(v); + } + }, { + key: "g", + get: function get() { + return this.getG(); + }, + set: function set(v) { + this.setG(v); + } + }, { + key: "b", + get: function get() { + return this.getB(); + }, + set: function set(v) { + this.setB(v); + } + }, { + key: "a", + get: function get() { + return this.getA(); + }, + set: function set(v) { + this.setA(v); + } + } ], [ { + key: "WHITE", + get: function get() { + return new Color(255, 255, 255, 255); + } + }, { + key: "BLACK", + get: function get() { + return new Color(0, 0, 0, 255); + } + }, { + key: "TRANSPARENT", + get: function get() { + return new Color(0, 0, 0, 0); + } + }, { + key: "GRAY", + get: function get() { + return new Color(127.5, 127.5, 127.5); + } + }, { + key: "RED", + get: function get() { + return new Color(255, 0, 0); + } + }, { + key: "GREEN", + get: function get() { + return new Color(0, 255, 0); + } + }, { + key: "BLUE", + get: function get() { + return new Color(0, 0, 255); + } + }, { + key: "YELLOW", + get: function get() { + return new Color(255, 235, 4); + } + }, { + key: "ORANGE", + get: function get() { + return new Color(255, 127, 0); + } + }, { + key: "CYAN", + get: function get() { + return new Color(0, 255, 255); + } + }, { + key: "MAGENTA", + get: function get() { + return new Color(255, 0, 255); + } + } ]); + return Color; + })(_valueType["default"]); + exports["default"] = Color; + Color.div = Color.divide; + Color.sub = Color.subtract; + Color.mul = Color.multiply; + Color.WHITE_R = Color.WHITE; + Color.BLACK_R = Color.BLACK; + Color.TRANSPARENT_R = Color.TRANSPARENT; + Color.GRAY_R = Color.GRAY; + Color.RED_R = Color.RED; + Color.GREEN_R = Color.GREEN; + Color.BLUE_R = Color.BLUE; + Color.YELLOW_R = Color.YELLOW; + Color.ORANGE_R = Color.ORANGE; + Color.CYAN_R = Color.CYAN; + Color.MAGENTA_R = Color.MAGENTA; + _CCClass["default"].fastDefine("cc.Color", Color, { + r: 0, + g: 0, + b: 0, + a: 255 + }); + cc.Color = Color; + cc.color = function color(r, g, b, a) { + if ("string" === typeof r) { + var result = new Color(); + return result.fromHEX(r); + } + if ("object" === typeof r) return new Color(r.r, r.g, r.b, r.a); + return new Color(r, g, b, a); + }; + module.exports = exports["default"]; + }), { + "../platform/CCClass": 121, + "../utils/misc": 205, + "./value-type": 228 + } ], + 220: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + var _exportNames = { + Vec2: true, + Vec3: true, + Vec4: true, + Mat4: true, + Mat3: true, + Rect: true, + Size: true, + Color: true, + Quat: true, + Trs: true + }; + exports.Vec4 = exports.Vec3 = exports.Vec2 = exports.Trs = exports.Size = exports.Rect = exports.Quat = exports.Mat4 = exports.Mat3 = exports.Color = void 0; + var _vec = _interopRequireDefault(require("./vec2")); + exports.Vec2 = _vec["default"]; + var _vec2 = _interopRequireDefault(require("./vec3")); + exports.Vec3 = _vec2["default"]; + var _vec3 = _interopRequireDefault(require("./vec4")); + exports.Vec4 = _vec3["default"]; + var _mat = _interopRequireDefault(require("./mat4")); + exports.Mat4 = _mat["default"]; + var _mat2 = _interopRequireDefault(require("./mat3")); + exports.Mat3 = _mat2["default"]; + var _rect = _interopRequireDefault(require("./rect")); + exports.Rect = _rect["default"]; + var _size = _interopRequireDefault(require("./size")); + exports.Size = _size["default"]; + var _color = _interopRequireDefault(require("./color")); + exports.Color = _color["default"]; + var _quat = _interopRequireDefault(require("./quat")); + exports.Quat = _quat["default"]; + var _trs = _interopRequireDefault(require("./trs")); + exports.Trs = _trs["default"]; + var _utils = require("./utils"); + Object.keys(_utils).forEach((function(key) { + if ("default" === key || "__esModule" === key) return; + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; + if (key in exports && exports[key] === _utils[key]) return; + exports[key] = _utils[key]; + })); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + cc.math = module.exports; + }), { + "./color": 219, + "./mat3": 221, + "./mat4": 222, + "./quat": 223, + "./rect": 224, + "./size": 225, + "./trs": 226, + "./utils": 227, + "./vec2": 229, + "./vec3": 230, + "./vec4": 231 + } ], + 221: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _utils = require("../value-types/utils"); + var _vec = _interopRequireDefault(require("./vec3")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + var Mat3 = (function() { + Mat3.create = function create(m00, m01, m02, m03, m04, m05, m06, m07, m08) { + void 0 === m00 && (m00 = 1); + void 0 === m01 && (m01 = 0); + void 0 === m02 && (m02 = 0); + void 0 === m03 && (m03 = 0); + void 0 === m04 && (m04 = 1); + void 0 === m05 && (m05 = 0); + void 0 === m06 && (m06 = 0); + void 0 === m07 && (m07 = 0); + void 0 === m08 && (m08 = 1); + return new Mat3(m00, m01, m02, m03, m04, m05, m06, m07, m08); + }; + Mat3.clone = function clone(a) { + var am = a.m; + return new Mat3(am[0], am[1], am[2], am[3], am[4], am[5], am[6], am[7], am[8]); + }; + Mat3.copy = function copy(out, a) { + out.m.set(a.m); + return out; + }; + Mat3.set = function set(out, m00, m01, m02, m10, m11, m12, m20, m21, m22) { + var outm = out.m; + outm[0] = m00; + outm[1] = m01; + outm[2] = m02; + outm[3] = m10; + outm[4] = m11; + outm[5] = m12; + outm[6] = m20; + outm[7] = m21; + outm[8] = m22; + return out; + }; + Mat3.identity = function identity(out) { + var outm = out.m; + outm[0] = 1; + outm[1] = 0; + outm[2] = 0; + outm[3] = 0; + outm[4] = 1; + outm[5] = 0; + outm[6] = 0; + outm[7] = 0; + outm[8] = 1; + return out; + }; + Mat3.transpose = function transpose(out, a) { + var am = a.m, outm = out.m; + if (out === a) { + var a01 = am[1], a02 = am[2], a12 = am[5]; + outm[1] = am[3]; + outm[2] = am[6]; + outm[3] = a01; + outm[5] = am[7]; + outm[6] = a02; + outm[7] = a12; + } else { + outm[0] = am[0]; + outm[1] = am[3]; + outm[2] = am[6]; + outm[3] = am[1]; + outm[4] = am[4]; + outm[5] = am[7]; + outm[6] = am[2]; + outm[7] = am[5]; + outm[8] = am[8]; + } + return out; + }; + Mat3.invert = function invert(out, a) { + var am = a.m, outm = out.m; + var a00 = am[0], a01 = am[1], a02 = am[2], a10 = am[3], a11 = am[4], a12 = am[5], a20 = am[6], a21 = am[7], a22 = am[8]; + var b01 = a22 * a11 - a12 * a21; + var b11 = -a22 * a10 + a12 * a20; + var b21 = a21 * a10 - a11 * a20; + var det = a00 * b01 + a01 * b11 + a02 * b21; + if (!det) return out; + det = 1 / det; + outm[0] = b01 * det; + outm[1] = (-a22 * a01 + a02 * a21) * det; + outm[2] = (a12 * a01 - a02 * a11) * det; + outm[3] = b11 * det; + outm[4] = (a22 * a00 - a02 * a20) * det; + outm[5] = (-a12 * a00 + a02 * a10) * det; + outm[6] = b21 * det; + outm[7] = (-a21 * a00 + a01 * a20) * det; + outm[8] = (a11 * a00 - a01 * a10) * det; + return out; + }; + Mat3.adjoint = function adjoint(out, a) { + var am = a.m, outm = out.m; + var a00 = am[0], a01 = am[1], a02 = am[2], a10 = am[3], a11 = am[4], a12 = am[5], a20 = am[6], a21 = am[7], a22 = am[8]; + outm[0] = a11 * a22 - a12 * a21; + outm[1] = a02 * a21 - a01 * a22; + outm[2] = a01 * a12 - a02 * a11; + outm[3] = a12 * a20 - a10 * a22; + outm[4] = a00 * a22 - a02 * a20; + outm[5] = a02 * a10 - a00 * a12; + outm[6] = a10 * a21 - a11 * a20; + outm[7] = a01 * a20 - a00 * a21; + outm[8] = a00 * a11 - a01 * a10; + return out; + }; + Mat3.determinant = function determinant(a) { + var am = a.m; + var a00 = am[0], a01 = am[1], a02 = am[2], a10 = am[3], a11 = am[4], a12 = am[5], a20 = am[6], a21 = am[7], a22 = am[8]; + return a00 * (a22 * a11 - a12 * a21) + a01 * (-a22 * a10 + a12 * a20) + a02 * (a21 * a10 - a11 * a20); + }; + Mat3.multiply = function multiply(out, a, b) { + var am = a.m, bm = b.m, outm = out.m; + var a00 = am[0], a01 = am[1], a02 = am[2], a10 = am[3], a11 = am[4], a12 = am[5], a20 = am[6], a21 = am[7], a22 = am[8]; + var b00 = bm[0], b01 = bm[1], b02 = bm[2]; + var b10 = bm[3], b11 = bm[4], b12 = bm[5]; + var b20 = bm[6], b21 = bm[7], b22 = bm[8]; + outm[0] = b00 * a00 + b01 * a10 + b02 * a20; + outm[1] = b00 * a01 + b01 * a11 + b02 * a21; + outm[2] = b00 * a02 + b01 * a12 + b02 * a22; + outm[3] = b10 * a00 + b11 * a10 + b12 * a20; + outm[4] = b10 * a01 + b11 * a11 + b12 * a21; + outm[5] = b10 * a02 + b11 * a12 + b12 * a22; + outm[6] = b20 * a00 + b21 * a10 + b22 * a20; + outm[7] = b20 * a01 + b21 * a11 + b22 * a21; + outm[8] = b20 * a02 + b21 * a12 + b22 * a22; + return out; + }; + Mat3.multiplyMat4 = function multiplyMat4(out, a, b) { + var am = a.m, bm = b.m, outm = out.m; + var a00 = am[0], a01 = am[1], a02 = am[2], a10 = am[3], a11 = am[4], a12 = am[5], a20 = am[6], a21 = am[7], a22 = am[8]; + var b00 = bm[0], b01 = bm[1], b02 = bm[2]; + var b10 = bm[4], b11 = bm[5], b12 = bm[6]; + var b20 = bm[8], b21 = bm[9], b22 = bm[10]; + outm[0] = b00 * a00 + b01 * a10 + b02 * a20; + outm[1] = b00 * a01 + b01 * a11 + b02 * a21; + outm[2] = b00 * a02 + b01 * a12 + b02 * a22; + outm[3] = b10 * a00 + b11 * a10 + b12 * a20; + outm[4] = b10 * a01 + b11 * a11 + b12 * a21; + outm[5] = b10 * a02 + b11 * a12 + b12 * a22; + outm[6] = b20 * a00 + b21 * a10 + b22 * a20; + outm[7] = b20 * a01 + b21 * a11 + b22 * a21; + outm[8] = b20 * a02 + b21 * a12 + b22 * a22; + return out; + }; + Mat3.translate = function translate(out, a, v) { + var am = a.m, outm = out.m; + var a00 = am[0], a01 = am[1], a02 = am[2], a10 = am[3], a11 = am[4], a12 = am[5], a20 = am[6], a21 = am[7], a22 = am[8]; + var x = v.x, y = v.y; + outm[0] = a00; + outm[1] = a01; + outm[2] = a02; + outm[3] = a10; + outm[4] = a11; + outm[5] = a12; + outm[6] = x * a00 + y * a10 + a20; + outm[7] = x * a01 + y * a11 + a21; + outm[8] = x * a02 + y * a12 + a22; + return out; + }; + Mat3.rotate = function rotate(out, a, rad) { + var am = a.m, outm = out.m; + var a00 = am[0], a01 = am[1], a02 = am[2], a10 = am[3], a11 = am[4], a12 = am[5], a20 = am[6], a21 = am[7], a22 = am[8]; + var s = Math.sin(rad); + var c = Math.cos(rad); + outm[0] = c * a00 + s * a10; + outm[1] = c * a01 + s * a11; + outm[2] = c * a02 + s * a12; + outm[3] = c * a10 - s * a00; + outm[4] = c * a11 - s * a01; + outm[5] = c * a12 - s * a02; + outm[6] = a20; + outm[7] = a21; + outm[8] = a22; + return out; + }; + Mat3.scale = function scale(out, a, v) { + var x = v.x, y = v.y; + var am = a.m, outm = out.m; + outm[0] = x * am[0]; + outm[1] = x * am[1]; + outm[2] = x * am[2]; + outm[3] = y * am[3]; + outm[4] = y * am[4]; + outm[5] = y * am[5]; + outm[6] = am[6]; + outm[7] = am[7]; + outm[8] = am[8]; + return out; + }; + Mat3.fromMat4 = function fromMat4(out, a) { + var am = a.m, outm = out.m; + outm[0] = am[0]; + outm[1] = am[1]; + outm[2] = am[2]; + outm[3] = am[4]; + outm[4] = am[5]; + outm[5] = am[6]; + outm[6] = am[8]; + outm[7] = am[9]; + outm[8] = am[10]; + return out; + }; + Mat3.fromTranslation = function fromTranslation(out, v) { + var outm = out.m; + outm[0] = 1; + outm[1] = 0; + outm[2] = 0; + outm[3] = 0; + outm[4] = 1; + outm[5] = 0; + outm[6] = v.x; + outm[7] = v.y; + outm[8] = 1; + return out; + }; + Mat3.fromRotation = function fromRotation(out, rad) { + var s = Math.sin(rad), c = Math.cos(rad); + var outm = out.m; + outm[0] = c; + outm[1] = s; + outm[2] = 0; + outm[3] = -s; + outm[4] = c; + outm[5] = 0; + outm[6] = 0; + outm[7] = 0; + outm[8] = 1; + return out; + }; + Mat3.fromScaling = function fromScaling(out, v) { + var outm = out.m; + outm[0] = v.x; + outm[1] = 0; + outm[2] = 0; + outm[3] = 0; + outm[4] = v.y; + outm[5] = 0; + outm[6] = 0; + outm[7] = 0; + outm[8] = 1; + return out; + }; + Mat3.fromQuat = function fromQuat(out, q) { + var outm = out.m; + var x = q.x, y = q.y, z = q.z, w = q.w; + var x2 = x + x; + var y2 = y + y; + var z2 = z + z; + var xx = x * x2; + var yx = y * x2; + var yy = y * y2; + var zx = z * x2; + var zy = z * y2; + var zz = z * z2; + var wx = w * x2; + var wy = w * y2; + var wz = w * z2; + outm[0] = 1 - yy - zz; + outm[3] = yx - wz; + outm[6] = zx + wy; + outm[1] = yx + wz; + outm[4] = 1 - xx - zz; + outm[7] = zy - wx; + outm[2] = zx - wy; + outm[5] = zy + wx; + outm[8] = 1 - xx - yy; + return out; + }; + Mat3.fromViewUp = function fromViewUp(out, view, up) { + var _fromViewUpIIFE = (function() { + var default_up = new _vec["default"](0, 1, 0); + var x = new _vec["default"](); + var y = new _vec["default"](); + return function(out, view, up) { + if (_vec["default"].lengthSqr(view) < _utils.EPSILON * _utils.EPSILON) { + Mat3.identity(out); + return out; + } + up = up || default_up; + _vec["default"].normalize(x, _vec["default"].cross(x, up, view)); + if (_vec["default"].lengthSqr(x) < _utils.EPSILON * _utils.EPSILON) { + Mat3.identity(out); + return out; + } + _vec["default"].cross(y, view, x); + Mat3.set(out, x.x, x.y, x.z, y.x, y.y, y.z, view.x, view.y, view.z); + return out; + }; + })(); + return _fromViewUpIIFE(out, view, up); + }; + Mat3.normalFromMat4 = function normalFromMat4(out, a) { + var am = a.m, outm = out.m; + var a00 = am[0], a01 = am[1], a02 = am[2], a03 = am[3], a10 = am[4], a11 = am[5], a12 = am[6], a13 = am[7], a20 = am[8], a21 = am[9], a22 = am[10], a23 = am[11], a30 = am[12], a31 = am[13], a32 = am[14], a33 = am[15]; + var b00 = a00 * a11 - a01 * a10; + var b01 = a00 * a12 - a02 * a10; + var b02 = a00 * a13 - a03 * a10; + var b03 = a01 * a12 - a02 * a11; + var b04 = a01 * a13 - a03 * a11; + var b05 = a02 * a13 - a03 * a12; + var b06 = a20 * a31 - a21 * a30; + var b07 = a20 * a32 - a22 * a30; + var b08 = a20 * a33 - a23 * a30; + var b09 = a21 * a32 - a22 * a31; + var b10 = a21 * a33 - a23 * a31; + var b11 = a22 * a33 - a23 * a32; + var det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06; + if (!det) return out; + det = 1 / det; + outm[0] = (a11 * b11 - a12 * b10 + a13 * b09) * det; + outm[1] = (a12 * b08 - a10 * b11 - a13 * b07) * det; + outm[2] = (a10 * b10 - a11 * b08 + a13 * b06) * det; + outm[3] = (a02 * b10 - a01 * b11 - a03 * b09) * det; + outm[4] = (a00 * b11 - a02 * b08 + a03 * b07) * det; + outm[5] = (a01 * b08 - a00 * b10 - a03 * b06) * det; + outm[6] = (a31 * b05 - a32 * b04 + a33 * b03) * det; + outm[7] = (a32 * b02 - a30 * b05 - a33 * b01) * det; + outm[8] = (a30 * b04 - a31 * b02 + a33 * b00) * det; + return out; + }; + Mat3.frob = function frob(a) { + var am = a.m; + return Math.sqrt(Math.pow(am[0], 2) + Math.pow(am[1], 2) + Math.pow(am[2], 2) + Math.pow(am[3], 2) + Math.pow(am[4], 2) + Math.pow(am[5], 2) + Math.pow(am[6], 2) + Math.pow(am[7], 2) + Math.pow(am[8], 2)); + }; + Mat3.add = function add(out, a, b) { + var am = a.m, bm = b.m, outm = out.m; + outm[0] = am[0] + bm[0]; + outm[1] = am[1] + bm[1]; + outm[2] = am[2] + bm[2]; + outm[3] = am[3] + bm[3]; + outm[4] = am[4] + bm[4]; + outm[5] = am[5] + bm[5]; + outm[6] = am[6] + bm[6]; + outm[7] = am[7] + bm[7]; + outm[8] = am[8] + bm[8]; + return out; + }; + Mat3.subtract = function subtract(out, a, b) { + var am = a.m, bm = b.m, outm = out.m; + outm[0] = am[0] - bm[0]; + outm[1] = am[1] - bm[1]; + outm[2] = am[2] - bm[2]; + outm[3] = am[3] - bm[3]; + outm[4] = am[4] - bm[4]; + outm[5] = am[5] - bm[5]; + outm[6] = am[6] - bm[6]; + outm[7] = am[7] - bm[7]; + outm[8] = am[8] - bm[8]; + return out; + }; + Mat3.multiplyScalar = function multiplyScalar(out, a, b) { + var am = a.m, outm = out.m; + outm[0] = am[0] * b; + outm[1] = am[1] * b; + outm[2] = am[2] * b; + outm[3] = am[3] * b; + outm[4] = am[4] * b; + outm[5] = am[5] * b; + outm[6] = am[6] * b; + outm[7] = am[7] * b; + outm[8] = am[8] * b; + return out; + }; + Mat3.multiplyScalarAndAdd = function multiplyScalarAndAdd(out, a, b, scale) { + var am = a.m, bm = b.m, outm = out.m; + outm[0] = am[0] + bm[0] * scale; + outm[1] = am[1] + bm[1] * scale; + outm[2] = am[2] + bm[2] * scale; + outm[3] = am[3] + bm[3] * scale; + outm[4] = am[4] + bm[4] * scale; + outm[5] = am[5] + bm[5] * scale; + outm[6] = am[6] + bm[6] * scale; + outm[7] = am[7] + bm[7] * scale; + outm[8] = am[8] + bm[8] * scale; + return out; + }; + Mat3.exactEquals = function exactEquals(a, b) { + var am = a.m, bm = b.m; + return am[0] === bm[0] && am[1] === bm[1] && am[2] === bm[2] && am[3] === bm[3] && am[4] === bm[4] && am[5] === bm[5] && am[6] === bm[6] && am[7] === bm[7] && am[8] === bm[8]; + }; + Mat3.equals = function equals(a, b) { + var am = a.m, bm = b.m; + var a0 = am[0], a1 = am[1], a2 = am[2], a3 = am[3], a4 = am[4], a5 = am[5], a6 = am[6], a7 = am[7], a8 = am[8]; + var b0 = bm[0], b1 = bm[1], b2 = bm[2], b3 = bm[3], b4 = bm[4], b5 = bm[5], b6 = bm[6], b7 = bm[7], b8 = bm[8]; + return Math.abs(a0 - b0) <= _utils.EPSILON * Math.max(1, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= _utils.EPSILON * Math.max(1, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= _utils.EPSILON * Math.max(1, Math.abs(a2), Math.abs(b2)) && Math.abs(a3 - b3) <= _utils.EPSILON * Math.max(1, Math.abs(a3), Math.abs(b3)) && Math.abs(a4 - b4) <= _utils.EPSILON * Math.max(1, Math.abs(a4), Math.abs(b4)) && Math.abs(a5 - b5) <= _utils.EPSILON * Math.max(1, Math.abs(a5), Math.abs(b5)) && Math.abs(a6 - b6) <= _utils.EPSILON * Math.max(1, Math.abs(a6), Math.abs(b6)) && Math.abs(a7 - b7) <= _utils.EPSILON * Math.max(1, Math.abs(a7), Math.abs(b7)) && Math.abs(a8 - b8) <= _utils.EPSILON * Math.max(1, Math.abs(a8), Math.abs(b8)); + }; + Mat3.toArray = function toArray(out, mat, ofs) { + void 0 === ofs && (ofs = 0); + var m = mat.m; + for (var i = 0; i < 9; i++) out[ofs + i] = m[i]; + return out; + }; + Mat3.fromArray = function fromArray(out, arr, ofs) { + void 0 === ofs && (ofs = 0); + var m = out.m; + for (var i = 0; i < 9; i++) m[i] = arr[ofs + i]; + return out; + }; + function Mat3(m00, m01, m02, m03, m04, m05, m06, m07, m08) { + void 0 === m00 && (m00 = 1); + void 0 === m01 && (m01 = 0); + void 0 === m02 && (m02 = 0); + void 0 === m03 && (m03 = 0); + void 0 === m04 && (m04 = 1); + void 0 === m05 && (m05 = 0); + void 0 === m06 && (m06 = 0); + void 0 === m07 && (m07 = 0); + void 0 === m08 && (m08 = 1); + this.m = void 0; + if (m00 instanceof _utils.FLOAT_ARRAY_TYPE) this.m = m00; else { + this.m = new _utils.FLOAT_ARRAY_TYPE(9); + var m = this.m; + m[0] = m00; + m[1] = m01; + m[2] = m02; + m[3] = m03; + m[4] = m04; + m[5] = m05; + m[6] = m06; + m[7] = m07; + m[8] = m08; + } + } + var _proto = Mat3.prototype; + _proto.toString = function toString() { + var am = this.m; + return "mat3(" + am[0] + ", " + am[1] + ", " + am[2] + ", " + am[3] + ", " + am[4] + ", " + am[5] + ", " + am[6] + ", " + am[7] + ", " + am[8] + ")"; + }; + return Mat3; + })(); + exports["default"] = Mat3; + Mat3.sub = Mat3.subtract; + Mat3.mul = Mat3.multiply; + Mat3.IDENTITY = Object.freeze(new Mat3()); + cc.Mat3 = Mat3; + module.exports = exports["default"]; + }), { + "../value-types/utils": 227, + "./vec3": 230 + } ], + 222: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _valueType = _interopRequireDefault(require("./value-type")); + var _CCClass = _interopRequireDefault(require("../platform/CCClass")); + var _vec = _interopRequireDefault(require("./vec3")); + var _quat = _interopRequireDefault(require("./quat")); + var _utils = require("./utils"); + var _mat = _interopRequireDefault(require("./mat3")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var _a00 = 0; + var _a01 = 0; + var _a02 = 0; + var _a03 = 0; + var _a10 = 0; + var _a11 = 0; + var _a12 = 0; + var _a13 = 0; + var _a20 = 0; + var _a21 = 0; + var _a22 = 0; + var _a23 = 0; + var _a30 = 0; + var _a31 = 0; + var _a32 = 0; + var _a33 = 0; + var Mat4 = (function(_ValueType) { + _inheritsLoose(Mat4, _ValueType); + var _proto = Mat4.prototype; + _proto.mul = function mul(m, out) { + return Mat4.multiply(out || new Mat4(), this, m); + }; + _proto.mulScalar = function mulScalar(num, out) { + Mat4.multiplyScalar(out || new Mat4(), this, num); + }; + _proto.sub = function sub(m, out) { + Mat4.subtract(out || new Mat4(), this, m); + }; + Mat4.clone = function clone(a) { + var m = a.m; + return new Mat4(m[0], m[1], m[2], m[3], m[4], m[5], m[6], m[7], m[8], m[9], m[10], m[11], m[12], m[13], m[14], m[15]); + }; + Mat4.copy = function copy(out, a) { + var m = out.m, am = a.m; + m[0] = am[0]; + m[1] = am[1]; + m[2] = am[2]; + m[3] = am[3]; + m[4] = am[4]; + m[5] = am[5]; + m[6] = am[6]; + m[7] = am[7]; + m[8] = am[8]; + m[9] = am[9]; + m[10] = am[10]; + m[11] = am[11]; + m[12] = am[12]; + m[13] = am[13]; + m[14] = am[14]; + m[15] = am[15]; + return out; + }; + Mat4.set = function set(out, m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33) { + var m = out.m; + m[0] = m00; + m[1] = m01; + m[2] = m02; + m[3] = m03; + m[4] = m10; + m[5] = m11; + m[6] = m12; + m[7] = m13; + m[8] = m20; + m[9] = m21; + m[10] = m22; + m[11] = m23; + m[12] = m30; + m[13] = m31; + m[14] = m32; + m[15] = m33; + return out; + }; + Mat4.identity = function identity(out) { + var m = out.m; + m[0] = 1; + m[1] = 0; + m[2] = 0; + m[3] = 0; + m[4] = 0; + m[5] = 1; + m[6] = 0; + m[7] = 0; + m[8] = 0; + m[9] = 0; + m[10] = 1; + m[11] = 0; + m[12] = 0; + m[13] = 0; + m[14] = 0; + m[15] = 1; + return out; + }; + Mat4.transpose = function transpose(out, a) { + var m = out.m, am = a.m; + if (out === a) { + var a01 = am[1], a02 = am[2], a03 = am[3], a12 = am[6], a13 = am[7], a23 = am[11]; + m[1] = am[4]; + m[2] = am[8]; + m[3] = am[12]; + m[4] = a01; + m[6] = am[9]; + m[7] = am[13]; + m[8] = a02; + m[9] = a12; + m[11] = am[14]; + m[12] = a03; + m[13] = a13; + m[14] = a23; + } else { + m[0] = am[0]; + m[1] = am[4]; + m[2] = am[8]; + m[3] = am[12]; + m[4] = am[1]; + m[5] = am[5]; + m[6] = am[9]; + m[7] = am[13]; + m[8] = am[2]; + m[9] = am[6]; + m[10] = am[10]; + m[11] = am[14]; + m[12] = am[3]; + m[13] = am[7]; + m[14] = am[11]; + m[15] = am[15]; + } + return out; + }; + Mat4.invert = function invert(out, a) { + var am = a.m; + _a00 = am[0]; + _a01 = am[1]; + _a02 = am[2]; + _a03 = am[3]; + _a10 = am[4]; + _a11 = am[5]; + _a12 = am[6]; + _a13 = am[7]; + _a20 = am[8]; + _a21 = am[9]; + _a22 = am[10]; + _a23 = am[11]; + _a30 = am[12]; + _a31 = am[13]; + _a32 = am[14]; + _a33 = am[15]; + var b00 = _a00 * _a11 - _a01 * _a10; + var b01 = _a00 * _a12 - _a02 * _a10; + var b02 = _a00 * _a13 - _a03 * _a10; + var b03 = _a01 * _a12 - _a02 * _a11; + var b04 = _a01 * _a13 - _a03 * _a11; + var b05 = _a02 * _a13 - _a03 * _a12; + var b06 = _a20 * _a31 - _a21 * _a30; + var b07 = _a20 * _a32 - _a22 * _a30; + var b08 = _a20 * _a33 - _a23 * _a30; + var b09 = _a21 * _a32 - _a22 * _a31; + var b10 = _a21 * _a33 - _a23 * _a31; + var b11 = _a22 * _a33 - _a23 * _a32; + var det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06; + if (0 === det) return null; + det = 1 / det; + var m = out.m; + m[0] = (_a11 * b11 - _a12 * b10 + _a13 * b09) * det; + m[1] = (_a02 * b10 - _a01 * b11 - _a03 * b09) * det; + m[2] = (_a31 * b05 - _a32 * b04 + _a33 * b03) * det; + m[3] = (_a22 * b04 - _a21 * b05 - _a23 * b03) * det; + m[4] = (_a12 * b08 - _a10 * b11 - _a13 * b07) * det; + m[5] = (_a00 * b11 - _a02 * b08 + _a03 * b07) * det; + m[6] = (_a32 * b02 - _a30 * b05 - _a33 * b01) * det; + m[7] = (_a20 * b05 - _a22 * b02 + _a23 * b01) * det; + m[8] = (_a10 * b10 - _a11 * b08 + _a13 * b06) * det; + m[9] = (_a01 * b08 - _a00 * b10 - _a03 * b06) * det; + m[10] = (_a30 * b04 - _a31 * b02 + _a33 * b00) * det; + m[11] = (_a21 * b02 - _a20 * b04 - _a23 * b00) * det; + m[12] = (_a11 * b07 - _a10 * b09 - _a12 * b06) * det; + m[13] = (_a00 * b09 - _a01 * b07 + _a02 * b06) * det; + m[14] = (_a31 * b01 - _a30 * b03 - _a32 * b00) * det; + m[15] = (_a20 * b03 - _a21 * b01 + _a22 * b00) * det; + return out; + }; + Mat4.determinant = function determinant(a) { + var m = a.m; + _a00 = m[0]; + _a01 = m[1]; + _a02 = m[2]; + _a03 = m[3]; + _a10 = m[4]; + _a11 = m[5]; + _a12 = m[6]; + _a13 = m[7]; + _a20 = m[8]; + _a21 = m[9]; + _a22 = m[10]; + _a23 = m[11]; + _a30 = m[12]; + _a31 = m[13]; + _a32 = m[14]; + _a33 = m[15]; + var b00 = _a00 * _a11 - _a01 * _a10; + var b01 = _a00 * _a12 - _a02 * _a10; + var b02 = _a00 * _a13 - _a03 * _a10; + var b03 = _a01 * _a12 - _a02 * _a11; + var b04 = _a01 * _a13 - _a03 * _a11; + var b05 = _a02 * _a13 - _a03 * _a12; + var b06 = _a20 * _a31 - _a21 * _a30; + var b07 = _a20 * _a32 - _a22 * _a30; + var b08 = _a20 * _a33 - _a23 * _a30; + var b09 = _a21 * _a32 - _a22 * _a31; + var b10 = _a21 * _a33 - _a23 * _a31; + var b11 = _a22 * _a33 - _a23 * _a32; + return b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06; + }; + Mat4.multiply = function multiply(out, a, b) { + var m = out.m, am = a.m, bm = b.m; + _a00 = am[0]; + _a01 = am[1]; + _a02 = am[2]; + _a03 = am[3]; + _a10 = am[4]; + _a11 = am[5]; + _a12 = am[6]; + _a13 = am[7]; + _a20 = am[8]; + _a21 = am[9]; + _a22 = am[10]; + _a23 = am[11]; + _a30 = am[12]; + _a31 = am[13]; + _a32 = am[14]; + _a33 = am[15]; + var b0 = bm[0], b1 = bm[1], b2 = bm[2], b3 = bm[3]; + m[0] = b0 * _a00 + b1 * _a10 + b2 * _a20 + b3 * _a30; + m[1] = b0 * _a01 + b1 * _a11 + b2 * _a21 + b3 * _a31; + m[2] = b0 * _a02 + b1 * _a12 + b2 * _a22 + b3 * _a32; + m[3] = b0 * _a03 + b1 * _a13 + b2 * _a23 + b3 * _a33; + b0 = bm[4]; + b1 = bm[5]; + b2 = bm[6]; + b3 = bm[7]; + m[4] = b0 * _a00 + b1 * _a10 + b2 * _a20 + b3 * _a30; + m[5] = b0 * _a01 + b1 * _a11 + b2 * _a21 + b3 * _a31; + m[6] = b0 * _a02 + b1 * _a12 + b2 * _a22 + b3 * _a32; + m[7] = b0 * _a03 + b1 * _a13 + b2 * _a23 + b3 * _a33; + b0 = bm[8]; + b1 = bm[9]; + b2 = bm[10]; + b3 = bm[11]; + m[8] = b0 * _a00 + b1 * _a10 + b2 * _a20 + b3 * _a30; + m[9] = b0 * _a01 + b1 * _a11 + b2 * _a21 + b3 * _a31; + m[10] = b0 * _a02 + b1 * _a12 + b2 * _a22 + b3 * _a32; + m[11] = b0 * _a03 + b1 * _a13 + b2 * _a23 + b3 * _a33; + b0 = bm[12]; + b1 = bm[13]; + b2 = bm[14]; + b3 = bm[15]; + m[12] = b0 * _a00 + b1 * _a10 + b2 * _a20 + b3 * _a30; + m[13] = b0 * _a01 + b1 * _a11 + b2 * _a21 + b3 * _a31; + m[14] = b0 * _a02 + b1 * _a12 + b2 * _a22 + b3 * _a32; + m[15] = b0 * _a03 + b1 * _a13 + b2 * _a23 + b3 * _a33; + return out; + }; + Mat4.transform = function transform(out, a, v) { + var x = v.x, y = v.y, z = v.z; + var m = out.m, am = a.m; + if (a === out) { + m[12] = am[0] * x + am[4] * y + am[8] * z + am[12]; + m[13] = am[1] * x + am[5] * y + am[9] * z + am[13]; + m[14] = am[2] * x + am[6] * y + am[10] * z + am[14]; + m[15] = am[3] * x + am[7] * y + am[11] * z + am[15]; + } else { + _a00 = am[0]; + _a01 = am[1]; + _a02 = am[2]; + _a03 = am[3]; + _a10 = am[4]; + _a11 = am[5]; + _a12 = am[6]; + _a13 = am[7]; + _a20 = am[8]; + _a21 = am[9]; + _a22 = am[10]; + _a23 = am[11]; + _a30 = am[12]; + _a31 = am[13]; + _a32 = am[14]; + _a33 = am[15]; + m[0] = _a00; + m[1] = _a01; + m[2] = _a02; + m[3] = _a03; + m[4] = _a10; + m[5] = _a11; + m[6] = _a12; + m[7] = _a13; + m[8] = _a20; + m[9] = _a21; + m[10] = _a22; + m[11] = _a23; + m[12] = _a00 * x + _a10 * y + _a20 * z + am[12]; + m[13] = _a01 * x + _a11 * y + _a21 * z + am[13]; + m[14] = _a02 * x + _a12 * y + _a22 * z + am[14]; + m[15] = _a03 * x + _a13 * y + _a23 * z + am[15]; + } + return out; + }; + Mat4.translate = function translate(out, a, v) { + var m = out.m, am = a.m; + if (a === out) { + m[12] += v.x; + m[13] += v.y; + m[14] += v.z; + } else { + m[0] = am[0]; + m[1] = am[1]; + m[2] = am[2]; + m[3] = am[3]; + m[4] = am[4]; + m[5] = am[5]; + m[6] = am[6]; + m[7] = am[7]; + m[8] = am[8]; + m[9] = am[9]; + m[10] = am[10]; + m[11] = am[11]; + m[12] += v.x; + m[13] += v.y; + m[14] += v.z; + m[15] = am[15]; + } + return out; + }; + Mat4.scale = function scale(out, a, v) { + var x = v.x, y = v.y, z = v.z; + var m = out.m, am = a.m; + m[0] = am[0] * x; + m[1] = am[1] * x; + m[2] = am[2] * x; + m[3] = am[3] * x; + m[4] = am[4] * y; + m[5] = am[5] * y; + m[6] = am[6] * y; + m[7] = am[7] * y; + m[8] = am[8] * z; + m[9] = am[9] * z; + m[10] = am[10] * z; + m[11] = am[11] * z; + m[12] = am[12]; + m[13] = am[13]; + m[14] = am[14]; + m[15] = am[15]; + return out; + }; + Mat4.rotate = function rotate(out, a, rad, axis) { + var x = axis.x, y = axis.y, z = axis.z; + var len = Math.sqrt(x * x + y * y + z * z); + if (Math.abs(len) < _utils.EPSILON) return null; + len = 1 / len; + x *= len; + y *= len; + z *= len; + var s = Math.sin(rad); + var c = Math.cos(rad); + var t = 1 - c; + var am = a.m; + _a00 = am[0]; + _a01 = am[1]; + _a02 = am[2]; + _a03 = am[3]; + _a10 = am[4]; + _a11 = am[5]; + _a12 = am[6]; + _a13 = am[7]; + _a20 = am[8]; + _a21 = am[9]; + _a22 = am[10]; + _a23 = am[11]; + var b00 = x * x * t + c, b01 = y * x * t + z * s, b02 = z * x * t - y * s; + var b10 = x * y * t - z * s, b11 = y * y * t + c, b12 = z * y * t + x * s; + var b20 = x * z * t + y * s, b21 = y * z * t - x * s, b22 = z * z * t + c; + var m = out.m; + m[0] = _a00 * b00 + _a10 * b01 + _a20 * b02; + m[1] = _a01 * b00 + _a11 * b01 + _a21 * b02; + m[2] = _a02 * b00 + _a12 * b01 + _a22 * b02; + m[3] = _a03 * b00 + _a13 * b01 + _a23 * b02; + m[4] = _a00 * b10 + _a10 * b11 + _a20 * b12; + m[5] = _a01 * b10 + _a11 * b11 + _a21 * b12; + m[6] = _a02 * b10 + _a12 * b11 + _a22 * b12; + m[7] = _a03 * b10 + _a13 * b11 + _a23 * b12; + m[8] = _a00 * b20 + _a10 * b21 + _a20 * b22; + m[9] = _a01 * b20 + _a11 * b21 + _a21 * b22; + m[10] = _a02 * b20 + _a12 * b21 + _a22 * b22; + m[11] = _a03 * b20 + _a13 * b21 + _a23 * b22; + if (a !== out) { + m[12] = am[12]; + m[13] = am[13]; + m[14] = am[14]; + m[15] = am[15]; + } + return out; + }; + Mat4.rotateX = function rotateX(out, a, rad) { + var m = out.m, am = a.m; + var s = Math.sin(rad), c = Math.cos(rad), a10 = am[4], a11 = am[5], a12 = am[6], a13 = am[7], a20 = am[8], a21 = am[9], a22 = am[10], a23 = am[11]; + if (a !== out) { + m[0] = am[0]; + m[1] = am[1]; + m[2] = am[2]; + m[3] = am[3]; + m[12] = am[12]; + m[13] = am[13]; + m[14] = am[14]; + m[15] = am[15]; + } + m[4] = a10 * c + a20 * s; + m[5] = a11 * c + a21 * s; + m[6] = a12 * c + a22 * s; + m[7] = a13 * c + a23 * s; + m[8] = a20 * c - a10 * s; + m[9] = a21 * c - a11 * s; + m[10] = a22 * c - a12 * s; + m[11] = a23 * c - a13 * s; + return out; + }; + Mat4.rotateY = function rotateY(out, a, rad) { + var m = out.m, am = a.m; + var s = Math.sin(rad), c = Math.cos(rad), a00 = am[0], a01 = am[1], a02 = am[2], a03 = am[3], a20 = am[8], a21 = am[9], a22 = am[10], a23 = am[11]; + if (a !== out) { + m[4] = am[4]; + m[5] = am[5]; + m[6] = am[6]; + m[7] = am[7]; + m[12] = am[12]; + m[13] = am[13]; + m[14] = am[14]; + m[15] = am[15]; + } + m[0] = a00 * c - a20 * s; + m[1] = a01 * c - a21 * s; + m[2] = a02 * c - a22 * s; + m[3] = a03 * c - a23 * s; + m[8] = a00 * s + a20 * c; + m[9] = a01 * s + a21 * c; + m[10] = a02 * s + a22 * c; + m[11] = a03 * s + a23 * c; + return out; + }; + Mat4.rotateZ = function rotateZ(out, a, rad) { + var am = a.m; + var m = out.m; + var s = Math.sin(rad), c = Math.cos(rad), a00 = a.m[0], a01 = a.m[1], a02 = a.m[2], a03 = a.m[3], a10 = a.m[4], a11 = a.m[5], a12 = a.m[6], a13 = a.m[7]; + if (a !== out) { + m[8] = am[8]; + m[9] = am[9]; + m[10] = am[10]; + m[11] = am[11]; + m[12] = am[12]; + m[13] = am[13]; + m[14] = am[14]; + m[15] = am[15]; + } + m[0] = a00 * c + a10 * s; + m[1] = a01 * c + a11 * s; + m[2] = a02 * c + a12 * s; + m[3] = a03 * c + a13 * s; + m[4] = a10 * c - a00 * s; + m[5] = a11 * c - a01 * s; + m[6] = a12 * c - a02 * s; + m[7] = a13 * c - a03 * s; + return out; + }; + Mat4.fromTranslation = function fromTranslation(out, v) { + var m = out.m; + m[0] = 1; + m[1] = 0; + m[2] = 0; + m[3] = 0; + m[4] = 0; + m[5] = 1; + m[6] = 0; + m[7] = 0; + m[8] = 0; + m[9] = 0; + m[10] = 1; + m[11] = 0; + m[12] = v.x; + m[13] = v.y; + m[14] = v.z; + m[15] = 1; + return out; + }; + Mat4.fromScaling = function fromScaling(out, v) { + var m = out.m; + m[0] = v.x; + m[1] = 0; + m[2] = 0; + m[3] = 0; + m[4] = 0; + m[5] = v.y; + m[6] = 0; + m[7] = 0; + m[8] = 0; + m[9] = 0; + m[10] = v.z; + m[11] = 0; + m[12] = 0; + m[13] = 0; + m[14] = 0; + m[15] = 1; + return out; + }; + Mat4.fromRotation = function fromRotation(out, rad, axis) { + var x = axis.x, y = axis.y, z = axis.z; + var len = Math.sqrt(x * x + y * y + z * z); + if (Math.abs(len) < _utils.EPSILON) return null; + len = 1 / len; + x *= len; + y *= len; + z *= len; + var s = Math.sin(rad); + var c = Math.cos(rad); + var t = 1 - c; + var m = out.m; + m[0] = x * x * t + c; + m[1] = y * x * t + z * s; + m[2] = z * x * t - y * s; + m[3] = 0; + m[4] = x * y * t - z * s; + m[5] = y * y * t + c; + m[6] = z * y * t + x * s; + m[7] = 0; + m[8] = x * z * t + y * s; + m[9] = y * z * t - x * s; + m[10] = z * z * t + c; + m[11] = 0; + m[12] = 0; + m[13] = 0; + m[14] = 0; + m[15] = 1; + return out; + }; + Mat4.fromXRotation = function fromXRotation(out, rad) { + var s = Math.sin(rad), c = Math.cos(rad); + var m = out.m; + m[0] = 1; + m[1] = 0; + m[2] = 0; + m[3] = 0; + m[4] = 0; + m[5] = c; + m[6] = s; + m[7] = 0; + m[8] = 0; + m[9] = -s; + m[10] = c; + m[11] = 0; + m[12] = 0; + m[13] = 0; + m[14] = 0; + m[15] = 1; + return out; + }; + Mat4.fromYRotation = function fromYRotation(out, rad) { + var s = Math.sin(rad), c = Math.cos(rad); + var m = out.m; + m[0] = c; + m[1] = 0; + m[2] = -s; + m[3] = 0; + m[4] = 0; + m[5] = 1; + m[6] = 0; + m[7] = 0; + m[8] = s; + m[9] = 0; + m[10] = c; + m[11] = 0; + m[12] = 0; + m[13] = 0; + m[14] = 0; + m[15] = 1; + return out; + }; + Mat4.fromZRotation = function fromZRotation(out, rad) { + var s = Math.sin(rad), c = Math.cos(rad); + var m = out.m; + m[0] = c; + m[1] = s; + m[2] = 0; + m[3] = 0; + m[4] = -s; + m[5] = c; + m[6] = 0; + m[7] = 0; + m[8] = 0; + m[9] = 0; + m[10] = 1; + m[11] = 0; + m[12] = 0; + m[13] = 0; + m[14] = 0; + m[15] = 1; + return out; + }; + Mat4.fromRT = function fromRT(out, q, v) { + var x = q.x, y = q.y, z = q.z, w = q.w; + var x2 = x + x; + var y2 = y + y; + var z2 = z + z; + var xx = x * x2; + var xy = x * y2; + var xz = x * z2; + var yy = y * y2; + var yz = y * z2; + var zz = z * z2; + var wx = w * x2; + var wy = w * y2; + var wz = w * z2; + var m = out.m; + m[0] = 1 - (yy + zz); + m[1] = xy + wz; + m[2] = xz - wy; + m[3] = 0; + m[4] = xy - wz; + m[5] = 1 - (xx + zz); + m[6] = yz + wx; + m[7] = 0; + m[8] = xz + wy; + m[9] = yz - wx; + m[10] = 1 - (xx + yy); + m[11] = 0; + m[12] = v.x; + m[13] = v.y; + m[14] = v.z; + m[15] = 1; + return out; + }; + Mat4.getTranslation = function getTranslation(out, mat) { + var m = mat.m; + out.x = m[12]; + out.y = m[13]; + out.z = m[14]; + return out; + }; + Mat4.getScaling = function getScaling(out, mat) { + var m = mat.m; + var m3 = m3_1.m; + var m00 = m3[0] = m[0]; + var m01 = m3[1] = m[1]; + var m02 = m3[2] = m[2]; + var m04 = m3[3] = m[4]; + var m05 = m3[4] = m[5]; + var m06 = m3[5] = m[6]; + var m08 = m3[6] = m[8]; + var m09 = m3[7] = m[9]; + var m10 = m3[8] = m[10]; + out.x = Math.sqrt(m00 * m00 + m01 * m01 + m02 * m02); + out.y = Math.sqrt(m04 * m04 + m05 * m05 + m06 * m06); + out.z = Math.sqrt(m08 * m08 + m09 * m09 + m10 * m10); + _mat["default"].determinant(m3_1) < 0 && (out.x *= -1); + return out; + }; + Mat4.getRotation = function getRotation(out, mat) { + var m = mat.m; + var trace = m[0] + m[5] + m[10]; + var S = 0; + if (trace > 0) { + S = 2 * Math.sqrt(trace + 1); + out.w = .25 * S; + out.x = (m[6] - m[9]) / S; + out.y = (m[8] - m[2]) / S; + out.z = (m[1] - m[4]) / S; + } else if (m[0] > m[5] && m[0] > m[10]) { + S = 2 * Math.sqrt(1 + m[0] - m[5] - m[10]); + out.w = (m[6] - m[9]) / S; + out.x = .25 * S; + out.y = (m[1] + m[4]) / S; + out.z = (m[8] + m[2]) / S; + } else if (m[5] > m[10]) { + S = 2 * Math.sqrt(1 + m[5] - m[0] - m[10]); + out.w = (m[8] - m[2]) / S; + out.x = (m[1] + m[4]) / S; + out.y = .25 * S; + out.z = (m[6] + m[9]) / S; + } else { + S = 2 * Math.sqrt(1 + m[10] - m[0] - m[5]); + out.w = (m[1] - m[4]) / S; + out.x = (m[8] + m[2]) / S; + out.y = (m[6] + m[9]) / S; + out.z = .25 * S; + } + return out; + }; + Mat4.toRTS = function toRTS(mat, q, v, s) { + var m = mat.m; + var m3 = m3_1.m; + s.x = _vec["default"].set(v3_1, m[0], m[1], m[2]).mag(); + m3[0] = m[0] / s.x; + m3[1] = m[1] / s.x; + m3[2] = m[2] / s.x; + s.y = _vec["default"].set(v3_1, m[4], m[5], m[6]).mag(); + m3[3] = m[4] / s.y; + m3[4] = m[5] / s.y; + m3[5] = m[6] / s.y; + s.z = _vec["default"].set(v3_1, m[8], m[9], m[10]).mag(); + m3[6] = m[8] / s.z; + m3[7] = m[9] / s.z; + m3[8] = m[10] / s.z; + var det = _mat["default"].determinant(m3_1); + if (det < 0) { + s.x *= -1; + m3[0] *= -1; + m3[1] *= -1; + m3[2] *= -1; + } + _quat["default"].fromMat3(q, m3_1); + _vec["default"].set(v, m[12], m[13], m[14]); + }; + Mat4.fromRTS = function fromRTS(out, q, v, s) { + var x = q.x, y = q.y, z = q.z, w = q.w; + var x2 = x + x; + var y2 = y + y; + var z2 = z + z; + var xx = x * x2; + var xy = x * y2; + var xz = x * z2; + var yy = y * y2; + var yz = y * z2; + var zz = z * z2; + var wx = w * x2; + var wy = w * y2; + var wz = w * z2; + var sx = s.x; + var sy = s.y; + var sz = s.z; + var m = out.m; + m[0] = (1 - (yy + zz)) * sx; + m[1] = (xy + wz) * sx; + m[2] = (xz - wy) * sx; + m[3] = 0; + m[4] = (xy - wz) * sy; + m[5] = (1 - (xx + zz)) * sy; + m[6] = (yz + wx) * sy; + m[7] = 0; + m[8] = (xz + wy) * sz; + m[9] = (yz - wx) * sz; + m[10] = (1 - (xx + yy)) * sz; + m[11] = 0; + m[12] = v.x; + m[13] = v.y; + m[14] = v.z; + m[15] = 1; + return out; + }; + Mat4.fromRTSOrigin = function fromRTSOrigin(out, q, v, s, o) { + var x = q.x, y = q.y, z = q.z, w = q.w; + var x2 = x + x; + var y2 = y + y; + var z2 = z + z; + var xx = x * x2; + var xy = x * y2; + var xz = x * z2; + var yy = y * y2; + var yz = y * z2; + var zz = z * z2; + var wx = w * x2; + var wy = w * y2; + var wz = w * z2; + var sx = s.x; + var sy = s.y; + var sz = s.z; + var ox = o.x; + var oy = o.y; + var oz = o.z; + var m = out.m; + m[0] = (1 - (yy + zz)) * sx; + m[1] = (xy + wz) * sx; + m[2] = (xz - wy) * sx; + m[3] = 0; + m[4] = (xy - wz) * sy; + m[5] = (1 - (xx + zz)) * sy; + m[6] = (yz + wx) * sy; + m[7] = 0; + m[8] = (xz + wy) * sz; + m[9] = (yz - wx) * sz; + m[10] = (1 - (xx + yy)) * sz; + m[11] = 0; + m[12] = v.x + ox - (m[0] * ox + m[4] * oy + m[8] * oz); + m[13] = v.y + oy - (m[1] * ox + m[5] * oy + m[9] * oz); + m[14] = v.z + oz - (m[2] * ox + m[6] * oy + m[10] * oz); + m[15] = 1; + return out; + }; + Mat4.fromQuat = function fromQuat(out, q) { + var x = q.x, y = q.y, z = q.z, w = q.w; + var x2 = x + x; + var y2 = y + y; + var z2 = z + z; + var xx = x * x2; + var yx = y * x2; + var yy = y * y2; + var zx = z * x2; + var zy = z * y2; + var zz = z * z2; + var wx = w * x2; + var wy = w * y2; + var wz = w * z2; + var m = out.m; + m[0] = 1 - yy - zz; + m[1] = yx + wz; + m[2] = zx - wy; + m[3] = 0; + m[4] = yx - wz; + m[5] = 1 - xx - zz; + m[6] = zy + wx; + m[7] = 0; + m[8] = zx + wy; + m[9] = zy - wx; + m[10] = 1 - xx - yy; + m[11] = 0; + m[12] = 0; + m[13] = 0; + m[14] = 0; + m[15] = 1; + return out; + }; + Mat4.frustum = function frustum(out, left, right, bottom, top, near, far) { + var rl = 1 / (right - left); + var tb = 1 / (top - bottom); + var nf = 1 / (near - far); + var m = out.m; + m[0] = 2 * near * rl; + m[1] = 0; + m[2] = 0; + m[3] = 0; + m[4] = 0; + m[5] = 2 * near * tb; + m[6] = 0; + m[7] = 0; + m[8] = (right + left) * rl; + m[9] = (top + bottom) * tb; + m[10] = (far + near) * nf; + m[11] = -1; + m[12] = 0; + m[13] = 0; + m[14] = far * near * 2 * nf; + m[15] = 0; + return out; + }; + Mat4.perspective = function perspective(out, fovy, aspect, near, far) { + var f = 1 / Math.tan(fovy / 2); + var nf = 1 / (near - far); + var m = out.m; + m[0] = f / aspect; + m[1] = 0; + m[2] = 0; + m[3] = 0; + m[4] = 0; + m[5] = f; + m[6] = 0; + m[7] = 0; + m[8] = 0; + m[9] = 0; + m[10] = (far + near) * nf; + m[11] = -1; + m[12] = 0; + m[13] = 0; + m[14] = 2 * far * near * nf; + m[15] = 0; + return out; + }; + Mat4.ortho = function ortho(out, left, right, bottom, top, near, far) { + var lr = 1 / (left - right); + var bt = 1 / (bottom - top); + var nf = 1 / (near - far); + var m = out.m; + m[0] = -2 * lr; + m[1] = 0; + m[2] = 0; + m[3] = 0; + m[4] = 0; + m[5] = -2 * bt; + m[6] = 0; + m[7] = 0; + m[8] = 0; + m[9] = 0; + m[10] = 2 * nf; + m[11] = 0; + m[12] = (left + right) * lr; + m[13] = (top + bottom) * bt; + m[14] = (far + near) * nf; + m[15] = 1; + return out; + }; + Mat4.lookAt = function lookAt(out, eye, center, up) { + var eyex = eye.x; + var eyey = eye.y; + var eyez = eye.z; + var upx = up.x; + var upy = up.y; + var upz = up.z; + var centerx = center.x; + var centery = center.y; + var centerz = center.z; + var z0 = eyex - centerx; + var z1 = eyey - centery; + var z2 = eyez - centerz; + var len = 1 / Math.sqrt(z0 * z0 + z1 * z1 + z2 * z2); + z0 *= len; + z1 *= len; + z2 *= len; + var x0 = upy * z2 - upz * z1; + var x1 = upz * z0 - upx * z2; + var x2 = upx * z1 - upy * z0; + len = 1 / Math.sqrt(x0 * x0 + x1 * x1 + x2 * x2); + x0 *= len; + x1 *= len; + x2 *= len; + var y0 = z1 * x2 - z2 * x1; + var y1 = z2 * x0 - z0 * x2; + var y2 = z0 * x1 - z1 * x0; + var m = out.m; + m[0] = x0; + m[1] = y0; + m[2] = z0; + m[3] = 0; + m[4] = x1; + m[5] = y1; + m[6] = z1; + m[7] = 0; + m[8] = x2; + m[9] = y2; + m[10] = z2; + m[11] = 0; + m[12] = -(x0 * eyex + x1 * eyey + x2 * eyez); + m[13] = -(y0 * eyex + y1 * eyey + y2 * eyez); + m[14] = -(z0 * eyex + z1 * eyey + z2 * eyez); + m[15] = 1; + return out; + }; + Mat4.inverseTranspose = function inverseTranspose(out, a) { + var m = a.m; + _a00 = m[0]; + _a01 = m[1]; + _a02 = m[2]; + _a03 = m[3]; + _a10 = m[4]; + _a11 = m[5]; + _a12 = m[6]; + _a13 = m[7]; + _a20 = m[8]; + _a21 = m[9]; + _a22 = m[10]; + _a23 = m[11]; + _a30 = m[12]; + _a31 = m[13]; + _a32 = m[14]; + _a33 = m[15]; + var b00 = _a00 * _a11 - _a01 * _a10; + var b01 = _a00 * _a12 - _a02 * _a10; + var b02 = _a00 * _a13 - _a03 * _a10; + var b03 = _a01 * _a12 - _a02 * _a11; + var b04 = _a01 * _a13 - _a03 * _a11; + var b05 = _a02 * _a13 - _a03 * _a12; + var b06 = _a20 * _a31 - _a21 * _a30; + var b07 = _a20 * _a32 - _a22 * _a30; + var b08 = _a20 * _a33 - _a23 * _a30; + var b09 = _a21 * _a32 - _a22 * _a31; + var b10 = _a21 * _a33 - _a23 * _a31; + var b11 = _a22 * _a33 - _a23 * _a32; + var det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06; + if (!det) return null; + det = 1 / det; + m = out.m; + m[0] = (_a11 * b11 - _a12 * b10 + _a13 * b09) * det; + m[1] = (_a12 * b08 - _a10 * b11 - _a13 * b07) * det; + m[2] = (_a10 * b10 - _a11 * b08 + _a13 * b06) * det; + m[3] = 0; + m[4] = (_a02 * b10 - _a01 * b11 - _a03 * b09) * det; + m[5] = (_a00 * b11 - _a02 * b08 + _a03 * b07) * det; + m[6] = (_a01 * b08 - _a00 * b10 - _a03 * b06) * det; + m[7] = 0; + m[8] = (_a31 * b05 - _a32 * b04 + _a33 * b03) * det; + m[9] = (_a32 * b02 - _a30 * b05 - _a33 * b01) * det; + m[10] = (_a30 * b04 - _a31 * b02 + _a33 * b00) * det; + m[11] = 0; + m[12] = 0; + m[13] = 0; + m[14] = 0; + m[15] = 1; + return out; + }; + Mat4.add = function add(out, a, b) { + var m = out.m, am = a.m, bm = b.m; + m[0] = am[0] + bm[0]; + m[1] = am[1] + bm[1]; + m[2] = am[2] + bm[2]; + m[3] = am[3] + bm[3]; + m[4] = am[4] + bm[4]; + m[5] = am[5] + bm[5]; + m[6] = am[6] + bm[6]; + m[7] = am[7] + bm[7]; + m[8] = am[8] + bm[8]; + m[9] = am[9] + bm[9]; + m[10] = am[10] + bm[10]; + m[11] = am[11] + bm[11]; + m[12] = am[12] + bm[12]; + m[13] = am[13] + bm[13]; + m[14] = am[14] + bm[14]; + m[15] = am[15] + bm[15]; + return out; + }; + Mat4.subtract = function subtract(out, a, b) { + var m = out.m, am = a.m, bm = b.m; + m[0] = am[0] - bm[0]; + m[1] = am[1] - bm[1]; + m[2] = am[2] - bm[2]; + m[3] = am[3] - bm[3]; + m[4] = am[4] - bm[4]; + m[5] = am[5] - bm[5]; + m[6] = am[6] - bm[6]; + m[7] = am[7] - bm[7]; + m[8] = am[8] - bm[8]; + m[9] = am[9] - bm[9]; + m[10] = am[10] - bm[10]; + m[11] = am[11] - bm[11]; + m[12] = am[12] - bm[12]; + m[13] = am[13] - bm[13]; + m[14] = am[14] - bm[14]; + m[15] = am[15] - bm[15]; + return out; + }; + Mat4.multiplyScalar = function multiplyScalar(out, a, b) { + var m = out.m, am = a.m; + m[0] = am[0] * b; + m[1] = am[1] * b; + m[2] = am[2] * b; + m[3] = am[3] * b; + m[4] = am[4] * b; + m[5] = am[5] * b; + m[6] = am[6] * b; + m[7] = am[7] * b; + m[8] = am[8] * b; + m[9] = am[9] * b; + m[10] = am[10] * b; + m[11] = am[11] * b; + m[12] = am[12] * b; + m[13] = am[13] * b; + m[14] = am[14] * b; + m[15] = am[15] * b; + return out; + }; + Mat4.multiplyScalarAndAdd = function multiplyScalarAndAdd(out, a, b, scale) { + var m = out.m, am = a.m, bm = b.m; + m[0] = am[0] + bm[0] * scale; + m[1] = am[1] + bm[1] * scale; + m[2] = am[2] + bm[2] * scale; + m[3] = am[3] + bm[3] * scale; + m[4] = am[4] + bm[4] * scale; + m[5] = am[5] + bm[5] * scale; + m[6] = am[6] + bm[6] * scale; + m[7] = am[7] + bm[7] * scale; + m[8] = am[8] + bm[8] * scale; + m[9] = am[9] + bm[9] * scale; + m[10] = am[10] + bm[10] * scale; + m[11] = am[11] + bm[11] * scale; + m[12] = am[12] + bm[12] * scale; + m[13] = am[13] + bm[13] * scale; + m[14] = am[14] + bm[14] * scale; + m[15] = am[15] + bm[15] * scale; + return out; + }; + Mat4.strictEquals = function strictEquals(a, b) { + var am = a.m, bm = b.m; + return am[0] === bm[0] && am[1] === bm[1] && am[2] === bm[2] && am[3] === bm[3] && am[4] === bm[4] && am[5] === bm[5] && am[6] === bm[6] && am[7] === bm[7] && am[8] === bm[8] && am[9] === bm[9] && am[10] === bm[10] && am[11] === bm[11] && am[12] === bm[12] && am[13] === bm[13] && am[14] === bm[14] && am[15] === bm[15]; + }; + Mat4.equals = function equals(a, b, epsilon) { + void 0 === epsilon && (epsilon = _utils.EPSILON); + var am = a.m, bm = b.m; + return Math.abs(am[0] - bm[0]) <= epsilon * Math.max(1, Math.abs(am[0]), Math.abs(bm[0])) && Math.abs(am[1] - bm[1]) <= epsilon * Math.max(1, Math.abs(am[1]), Math.abs(bm[1])) && Math.abs(am[2] - bm[2]) <= epsilon * Math.max(1, Math.abs(am[2]), Math.abs(bm[2])) && Math.abs(am[3] - bm[3]) <= epsilon * Math.max(1, Math.abs(am[3]), Math.abs(bm[3])) && Math.abs(am[4] - bm[4]) <= epsilon * Math.max(1, Math.abs(am[4]), Math.abs(bm[4])) && Math.abs(am[5] - bm[5]) <= epsilon * Math.max(1, Math.abs(am[5]), Math.abs(bm[5])) && Math.abs(am[6] - bm[6]) <= epsilon * Math.max(1, Math.abs(am[6]), Math.abs(bm[6])) && Math.abs(am[7] - bm[7]) <= epsilon * Math.max(1, Math.abs(am[7]), Math.abs(bm[7])) && Math.abs(am[8] - bm[8]) <= epsilon * Math.max(1, Math.abs(am[8]), Math.abs(bm[8])) && Math.abs(am[9] - bm[9]) <= epsilon * Math.max(1, Math.abs(am[9]), Math.abs(bm[9])) && Math.abs(am[10] - bm[10]) <= epsilon * Math.max(1, Math.abs(am[10]), Math.abs(bm[10])) && Math.abs(am[11] - bm[11]) <= epsilon * Math.max(1, Math.abs(am[11]), Math.abs(bm[11])) && Math.abs(am[12] - bm[12]) <= epsilon * Math.max(1, Math.abs(am[12]), Math.abs(bm[12])) && Math.abs(am[13] - bm[13]) <= epsilon * Math.max(1, Math.abs(am[13]), Math.abs(bm[13])) && Math.abs(am[14] - bm[14]) <= epsilon * Math.max(1, Math.abs(am[14]), Math.abs(bm[14])) && Math.abs(am[15] - bm[15]) <= epsilon * Math.max(1, Math.abs(am[15]), Math.abs(bm[15])); + }; + Mat4.adjoint = function adjoint(out, a) { + var am = a.m, outm = out.m; + var a00 = am[0], a01 = am[1], a02 = am[2], a03 = am[3], a10 = am[4], a11 = am[5], a12 = am[6], a13 = am[7], a20 = am[8], a21 = am[9], a22 = am[10], a23 = am[11], a30 = am[12], a31 = am[13], a32 = am[14], a33 = am[15]; + outm[0] = a11 * (a22 * a33 - a23 * a32) - a21 * (a12 * a33 - a13 * a32) + a31 * (a12 * a23 - a13 * a22); + outm[1] = -(a01 * (a22 * a33 - a23 * a32) - a21 * (a02 * a33 - a03 * a32) + a31 * (a02 * a23 - a03 * a22)); + outm[2] = a01 * (a12 * a33 - a13 * a32) - a11 * (a02 * a33 - a03 * a32) + a31 * (a02 * a13 - a03 * a12); + outm[3] = -(a01 * (a12 * a23 - a13 * a22) - a11 * (a02 * a23 - a03 * a22) + a21 * (a02 * a13 - a03 * a12)); + outm[4] = -(a10 * (a22 * a33 - a23 * a32) - a20 * (a12 * a33 - a13 * a32) + a30 * (a12 * a23 - a13 * a22)); + outm[5] = a00 * (a22 * a33 - a23 * a32) - a20 * (a02 * a33 - a03 * a32) + a30 * (a02 * a23 - a03 * a22); + outm[6] = -(a00 * (a12 * a33 - a13 * a32) - a10 * (a02 * a33 - a03 * a32) + a30 * (a02 * a13 - a03 * a12)); + outm[7] = a00 * (a12 * a23 - a13 * a22) - a10 * (a02 * a23 - a03 * a22) + a20 * (a02 * a13 - a03 * a12); + outm[8] = a10 * (a21 * a33 - a23 * a31) - a20 * (a11 * a33 - a13 * a31) + a30 * (a11 * a23 - a13 * a21); + outm[9] = -(a00 * (a21 * a33 - a23 * a31) - a20 * (a01 * a33 - a03 * a31) + a30 * (a01 * a23 - a03 * a21)); + outm[10] = a00 * (a11 * a33 - a13 * a31) - a10 * (a01 * a33 - a03 * a31) + a30 * (a01 * a13 - a03 * a11); + outm[11] = -(a00 * (a11 * a23 - a13 * a21) - a10 * (a01 * a23 - a03 * a21) + a20 * (a01 * a13 - a03 * a11)); + outm[12] = -(a10 * (a21 * a32 - a22 * a31) - a20 * (a11 * a32 - a12 * a31) + a30 * (a11 * a22 - a12 * a21)); + outm[13] = a00 * (a21 * a32 - a22 * a31) - a20 * (a01 * a32 - a02 * a31) + a30 * (a01 * a22 - a02 * a21); + outm[14] = -(a00 * (a11 * a32 - a12 * a31) - a10 * (a01 * a32 - a02 * a31) + a30 * (a01 * a12 - a02 * a11)); + outm[15] = a00 * (a11 * a22 - a12 * a21) - a10 * (a01 * a22 - a02 * a21) + a20 * (a01 * a12 - a02 * a11); + return out; + }; + Mat4.toArray = function toArray(out, mat, ofs) { + void 0 === ofs && (ofs = 0); + var m = mat.m; + for (var i = 0; i < 16; i++) out[ofs + i] = m[i]; + return out; + }; + Mat4.fromArray = function fromArray(out, arr, ofs) { + void 0 === ofs && (ofs = 0); + var m = out.m; + for (var i = 0; i < 16; i++) m[i] = arr[ofs + i]; + return out; + }; + function Mat4(m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33) { + var _this; + void 0 === m00 && (m00 = 1); + void 0 === m01 && (m01 = 0); + void 0 === m02 && (m02 = 0); + void 0 === m03 && (m03 = 0); + void 0 === m10 && (m10 = 0); + void 0 === m11 && (m11 = 1); + void 0 === m12 && (m12 = 0); + void 0 === m13 && (m13 = 0); + void 0 === m20 && (m20 = 0); + void 0 === m21 && (m21 = 0); + void 0 === m22 && (m22 = 1); + void 0 === m23 && (m23 = 0); + void 0 === m30 && (m30 = 0); + void 0 === m31 && (m31 = 0); + void 0 === m32 && (m32 = 0); + void 0 === m33 && (m33 = 1); + _this = _ValueType.call(this) || this; + _this.m = void 0; + if (m00 instanceof _utils.FLOAT_ARRAY_TYPE) _this.m = m00; else { + _this.m = new _utils.FLOAT_ARRAY_TYPE(16); + var tm = _this.m; + tm[0] = m00; + tm[1] = m01; + tm[2] = m02; + tm[3] = m03; + tm[4] = m10; + tm[5] = m11; + tm[6] = m12; + tm[7] = m13; + tm[8] = m20; + tm[9] = m21; + tm[10] = m22; + tm[11] = m23; + tm[12] = m30; + tm[13] = m31; + tm[14] = m32; + tm[15] = m33; + } + return _this; + } + _proto.clone = function clone() { + var t = this; + var tm = t.m; + return new Mat4(tm[0], tm[1], tm[2], tm[3], tm[4], tm[5], tm[6], tm[7], tm[8], tm[9], tm[10], tm[11], tm[12], tm[13], tm[14], tm[15]); + }; + _proto.set = function set(s) { + var t = this; + var tm = t.m, sm = s.m; + tm[0] = sm[0]; + tm[1] = sm[1]; + tm[2] = sm[2]; + tm[3] = sm[3]; + tm[4] = sm[4]; + tm[5] = sm[5]; + tm[6] = sm[6]; + tm[7] = sm[7]; + tm[8] = sm[8]; + tm[9] = sm[9]; + tm[10] = sm[10]; + tm[11] = sm[11]; + tm[12] = sm[12]; + tm[13] = sm[13]; + tm[14] = sm[14]; + tm[15] = sm[15]; + return this; + }; + _proto.equals = function equals(other) { + return Mat4.strictEquals(this, other); + }; + _proto.fuzzyEquals = function fuzzyEquals(other) { + return Mat4.equals(this, other); + }; + _proto.toString = function toString() { + var tm = this.m; + return tm ? "[\n" + tm[0] + ", " + tm[1] + ", " + tm[2] + ", " + tm[3] + ",\n" + tm[4] + ", " + tm[5] + ", " + tm[6] + ", " + tm[7] + ",\n" + tm[8] + ", " + tm[9] + ", " + tm[10] + ", " + tm[11] + ",\n" + tm[12] + ", " + tm[13] + ", " + tm[14] + ", " + tm[15] + "\n]" : "[\n1, 0, 0, 0\n0, 1, 0, 0\n0, 0, 1, 0\n0, 0, 0, 1\n]"; + }; + _proto.identity = function identity() { + return Mat4.identity(this); + }; + _proto.transpose = function transpose(out) { + out = out || new Mat4(); + return Mat4.transpose(out, this); + }; + _proto.invert = function invert(out) { + out = out || new Mat4(); + return Mat4.invert(out, this); + }; + _proto.adjoint = function adjoint(out) { + out = out || new Mat4(); + return Mat4.adjoint(out, this); + }; + _proto.determinant = function determinant() { + return Mat4.determinant(this); + }; + _proto.add = function add(other, out) { + out = out || new Mat4(); + return Mat4.add(out, this, other); + }; + _proto.subtract = function subtract(other) { + return Mat4.subtract(this, this, other); + }; + _proto.multiply = function multiply(other) { + return Mat4.multiply(this, this, other); + }; + _proto.multiplyScalar = function multiplyScalar(number) { + return Mat4.multiplyScalar(this, this, number); + }; + _proto.translate = function translate(v, out) { + out = out || new Mat4(); + return Mat4.translate(out, this, v); + }; + _proto.scale = function scale(v, out) { + out = out || new Mat4(); + return Mat4.scale(out, this, v); + }; + _proto.rotate = function rotate(rad, axis, out) { + out = out || new Mat4(); + return Mat4.rotate(out, this, rad, axis); + }; + _proto.getTranslation = function getTranslation(out) { + out = out || new _vec["default"](); + return Mat4.getTranslation(out, this); + }; + _proto.getScale = function getScale(out) { + out = out || new _vec["default"](); + return Mat4.getScaling(out, this); + }; + _proto.getRotation = function getRotation(out) { + out = out || new _quat["default"](); + return Mat4.getRotation(out, this); + }; + _proto.fromRTS = function fromRTS(q, v, s) { + return Mat4.fromRTS(this, q, v, s); + }; + _proto.fromQuat = function fromQuat(quat) { + return Mat4.fromQuat(this, quat); + }; + return Mat4; + })(_valueType["default"]); + exports["default"] = Mat4; + Mat4.mul = Mat4.multiply; + Mat4.sub = Mat4.subtract; + Mat4.IDENTITY = Object.freeze(new Mat4()); + var v3_1 = new _vec["default"](); + var m3_1 = new _mat["default"](); + _CCClass["default"].fastDefine("cc.Mat4", Mat4, { + m00: 1, + m01: 0, + m02: 0, + m03: 0, + m04: 0, + m05: 1, + m06: 0, + m07: 0, + m08: 0, + m09: 0, + m10: 1, + m11: 0, + m12: 0, + m13: 0, + m14: 0, + m15: 1 + }); + var _loop = function _loop(i) { + Object.defineProperty(Mat4.prototype, "m" + i, { + get: function get() { + return this.m[i]; + }, + set: function set(value) { + this.m[i] = value; + } + }); + }; + for (var i = 0; i < 16; i++) _loop(i); + cc.mat4 = function(m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33) { + var mat = new Mat4(m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33); + void 0 === m00 && Mat4.identity(mat); + return mat; + }; + cc.Mat4 = Mat4; + module.exports = exports["default"]; + }), { + "../platform/CCClass": 121, + "./mat3": 221, + "./quat": 223, + "./utils": 227, + "./value-type": 228, + "./vec3": 230 + } ], + 223: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _valueType = _interopRequireDefault(require("./value-type")); + var _CCClass = _interopRequireDefault(require("../platform/CCClass")); + var _vec = _interopRequireDefault(require("./vec3")); + var _mat = _interopRequireDefault(require("./mat3")); + var _utils = require("./utils"); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var _x = 0; + var _y = 0; + var _z = 0; + var _w = 0; + var Quat = (function(_ValueType) { + _inheritsLoose(Quat, _ValueType); + var _proto = Quat.prototype; + _proto.mul = function mul(other, out) { + return Quat.multiply(out || new Quat(), this, other); + }; + Quat.clone = function clone(a) { + return new Quat(a.x, a.y, a.z, a.w); + }; + Quat.copy = function copy(out, a) { + out.x = a.x; + out.y = a.y; + out.z = a.z; + out.w = a.w; + return out; + }; + Quat.set = function set(out, x, y, z, w) { + out.x = x; + out.y = y; + out.z = z; + out.w = w; + return out; + }; + Quat.identity = function identity(out) { + out.x = 0; + out.y = 0; + out.z = 0; + out.w = 1; + return out; + }; + Quat.rotationTo = function rotationTo(out, a, b) { + var dot = _vec["default"].dot(a, b); + if (dot < -.999999) { + _vec["default"].cross(v3_1, _vec["default"].RIGHT, a); + v3_1.mag() < 1e-6 && _vec["default"].cross(v3_1, _vec["default"].UP, a); + _vec["default"].normalize(v3_1, v3_1); + Quat.fromAxisAngle(out, v3_1, Math.PI); + return out; + } + if (dot > .999999) { + out.x = 0; + out.y = 0; + out.z = 0; + out.w = 1; + return out; + } + _vec["default"].cross(v3_1, a, b); + out.x = v3_1.x; + out.y = v3_1.y; + out.z = v3_1.z; + out.w = 1 + dot; + return Quat.normalize(out, out); + }; + Quat.getAxisAngle = function getAxisAngle(outAxis, q) { + var rad = 2 * Math.acos(q.w); + var s = Math.sin(rad / 2); + if (0 !== s) { + outAxis.x = q.x / s; + outAxis.y = q.y / s; + outAxis.z = q.z / s; + } else { + outAxis.x = 1; + outAxis.y = 0; + outAxis.z = 0; + } + return rad; + }; + Quat.multiply = function multiply(out, a, b) { + _x = a.x * b.w + a.w * b.x + a.y * b.z - a.z * b.y; + _y = a.y * b.w + a.w * b.y + a.z * b.x - a.x * b.z; + _z = a.z * b.w + a.w * b.z + a.x * b.y - a.y * b.x; + _w = a.w * b.w - a.x * b.x - a.y * b.y - a.z * b.z; + out.x = _x; + out.y = _y; + out.z = _z; + out.w = _w; + return out; + }; + Quat.multiplyScalar = function multiplyScalar(out, a, b) { + out.x = a.x * b; + out.y = a.y * b; + out.z = a.z * b; + out.w = a.w * b; + return out; + }; + Quat.scaleAndAdd = function scaleAndAdd(out, a, b, scale) { + out.x = a.x + b.x * scale; + out.y = a.y + b.y * scale; + out.z = a.z + b.z * scale; + out.w = a.w + b.w * scale; + return out; + }; + Quat.rotateX = function rotateX(out, a, rad) { + rad *= .5; + var bx = Math.sin(rad); + var bw = Math.cos(rad); + _x = a.x * bw + a.w * bx; + _y = a.y * bw + a.z * bx; + _z = a.z * bw - a.y * bx; + _w = a.w * bw - a.x * bx; + out.x = _x; + out.y = _y; + out.z = _z; + out.w = _w; + return out; + }; + Quat.rotateY = function rotateY(out, a, rad) { + rad *= .5; + var by = Math.sin(rad); + var bw = Math.cos(rad); + _x = a.x * bw - a.z * by; + _y = a.y * bw + a.w * by; + _z = a.z * bw + a.x * by; + _w = a.w * bw - a.y * by; + out.x = _x; + out.y = _y; + out.z = _z; + out.w = _w; + return out; + }; + Quat.rotateZ = function rotateZ(out, a, rad) { + rad *= .5; + var bz = Math.sin(rad); + var bw = Math.cos(rad); + _x = a.x * bw + a.y * bz; + _y = a.y * bw - a.x * bz; + _z = a.z * bw + a.w * bz; + _w = a.w * bw - a.z * bz; + out.x = _x; + out.y = _y; + out.z = _z; + out.w = _w; + return out; + }; + Quat.rotateAround = function rotateAround(out, rot, axis, rad) { + Quat.invert(qt_1, rot); + _vec["default"].transformQuat(v3_1, axis, qt_1); + Quat.fromAxisAngle(qt_1, v3_1, rad); + Quat.multiply(out, rot, qt_1); + return out; + }; + Quat.rotateAroundLocal = function rotateAroundLocal(out, rot, axis, rad) { + Quat.fromAxisAngle(qt_1, axis, rad); + Quat.multiply(out, rot, qt_1); + return out; + }; + Quat.calculateW = function calculateW(out, a) { + out.x = a.x; + out.y = a.y; + out.z = a.z; + out.w = Math.sqrt(Math.abs(1 - a.x * a.x - a.y * a.y - a.z * a.z)); + return out; + }; + Quat.dot = function dot(a, b) { + return a.x * b.x + a.y * b.y + a.z * b.z + a.w * b.w; + }; + Quat.lerp = function lerp(out, a, b, t) { + out.x = a.x + t * (b.x - a.x); + out.y = a.y + t * (b.y - a.y); + out.z = a.z + t * (b.z - a.z); + out.w = a.w + t * (b.w - a.w); + return out; + }; + Quat.slerp = function slerp(out, a, b, t) { + var scale0 = 0; + var scale1 = 0; + var cosom = a.x * b.x + a.y * b.y + a.z * b.z + a.w * b.w; + if (cosom < 0) { + cosom = -cosom; + b.x = -b.x; + b.y = -b.y; + b.z = -b.z; + b.w = -b.w; + } + if (1 - cosom > 1e-6) { + var omega = Math.acos(cosom); + var sinom = Math.sin(omega); + scale0 = Math.sin((1 - t) * omega) / sinom; + scale1 = Math.sin(t * omega) / sinom; + } else { + scale0 = 1 - t; + scale1 = t; + } + out.x = scale0 * a.x + scale1 * b.x; + out.y = scale0 * a.y + scale1 * b.y; + out.z = scale0 * a.z + scale1 * b.z; + out.w = scale0 * a.w + scale1 * b.w; + return out; + }; + Quat.sqlerp = function sqlerp(out, a, b, c, d, t) { + Quat.slerp(qt_1, a, d, t); + Quat.slerp(qt_2, b, c, t); + Quat.slerp(out, qt_1, qt_2, 2 * t * (1 - t)); + return out; + }; + Quat.invert = function invert(out, a) { + var dot = a.x * a.x + a.y * a.y + a.z * a.z + a.w * a.w; + var invDot = dot ? 1 / dot : 0; + out.x = -a.x * invDot; + out.y = -a.y * invDot; + out.z = -a.z * invDot; + out.w = a.w * invDot; + return out; + }; + Quat.conjugate = function conjugate(out, a) { + out.x = -a.x; + out.y = -a.y; + out.z = -a.z; + out.w = a.w; + return out; + }; + Quat.len = function len(a) { + return Math.sqrt(a.x * a.x + a.y * a.y + a.z * a.z + a.w * a.w); + }; + Quat.lengthSqr = function lengthSqr(a) { + return a.x * a.x + a.y * a.y + a.z * a.z + a.w * a.w; + }; + Quat.normalize = function normalize(out, a) { + var len = a.x * a.x + a.y * a.y + a.z * a.z + a.w * a.w; + if (len > 0) { + len = 1 / Math.sqrt(len); + out.x = a.x * len; + out.y = a.y * len; + out.z = a.z * len; + out.w = a.w * len; + } + return out; + }; + Quat.fromAxes = function fromAxes(out, xAxis, yAxis, zAxis) { + _mat["default"].set(m3_1, xAxis.x, xAxis.y, xAxis.z, yAxis.x, yAxis.y, yAxis.z, zAxis.x, zAxis.y, zAxis.z); + return Quat.normalize(out, Quat.fromMat3(out, m3_1)); + }; + Quat.fromViewUp = function fromViewUp(out, view, up) { + _mat["default"].fromViewUp(m3_1, view, up); + return Quat.normalize(out, Quat.fromMat3(out, m3_1)); + }; + Quat.fromAxisAngle = function fromAxisAngle(out, axis, rad) { + rad *= .5; + var s = Math.sin(rad); + out.x = s * axis.x; + out.y = s * axis.y; + out.z = s * axis.z; + out.w = Math.cos(rad); + return out; + }; + Quat.fromAngleZ = function fromAngleZ(out, z) { + z *= halfToRad; + out.x = out.y = 0; + out.z = Math.sin(z); + out.w = Math.cos(z); + return out; + }; + Quat.fromMat3 = function fromMat3(out, mat) { + var m = mat.m; + var m00 = m[0], m10 = m[1], m20 = m[2], m01 = m[3], m11 = m[4], m21 = m[5], m02 = m[6], m12 = m[7], m22 = m[8]; + var trace = m00 + m11 + m22; + if (trace > 0) { + var s = .5 / Math.sqrt(trace + 1); + out.w = .25 / s; + out.x = (m21 - m12) * s; + out.y = (m02 - m20) * s; + out.z = (m10 - m01) * s; + } else if (m00 > m11 && m00 > m22) { + var _s = 2 * Math.sqrt(1 + m00 - m11 - m22); + out.w = (m21 - m12) / _s; + out.x = .25 * _s; + out.y = (m01 + m10) / _s; + out.z = (m02 + m20) / _s; + } else if (m11 > m22) { + var _s2 = 2 * Math.sqrt(1 + m11 - m00 - m22); + out.w = (m02 - m20) / _s2; + out.x = (m01 + m10) / _s2; + out.y = .25 * _s2; + out.z = (m12 + m21) / _s2; + } else { + var _s3 = 2 * Math.sqrt(1 + m22 - m00 - m11); + out.w = (m10 - m01) / _s3; + out.x = (m02 + m20) / _s3; + out.y = (m12 + m21) / _s3; + out.z = .25 * _s3; + } + return out; + }; + Quat.fromEuler = function fromEuler(out, x, y, z) { + x *= halfToRad; + y *= halfToRad; + z *= halfToRad; + var sx = Math.sin(x); + var cx = Math.cos(x); + var sy = Math.sin(y); + var cy = Math.cos(y); + var sz = Math.sin(z); + var cz = Math.cos(z); + out.x = sx * cy * cz + cx * sy * sz; + out.y = cx * sy * cz + sx * cy * sz; + out.z = cx * cy * sz - sx * sy * cz; + out.w = cx * cy * cz - sx * sy * sz; + return out; + }; + Quat.toAxisX = function toAxisX(out, q) { + var fy = 2 * q.y; + var fz = 2 * q.z; + out.x = 1 - fy * q.y - fz * q.z; + out.y = fy * q.x + fz * q.w; + out.z = fz * q.x + fy * q.w; + return out; + }; + Quat.toAxisY = function toAxisY(out, q) { + var fx = 2 * q.x; + var fy = 2 * q.y; + var fz = 2 * q.z; + out.x = fy * q.x - fz * q.w; + out.y = 1 - fx * q.x - fz * q.z; + out.z = fz * q.y + fx * q.w; + return out; + }; + Quat.toAxisZ = function toAxisZ(out, q) { + var fx = 2 * q.x; + var fy = 2 * q.y; + var fz = 2 * q.z; + out.x = fz * q.x - fy * q.w; + out.y = fz * q.y - fx * q.w; + out.z = 1 - fx * q.x - fy * q.y; + return out; + }; + Quat.toEuler = function toEuler(out, q, outerZ) { + var x = q.x, y = q.y, z = q.z, w = q.w; + var bank = 0; + var heading = 0; + var attitude = 0; + var test = x * y + z * w; + if (test > .499999) { + bank = 0; + heading = (0, _utils.toDegree)(2 * Math.atan2(x, w)); + attitude = 90; + } else if (test < -.499999) { + bank = 0; + heading = -(0, _utils.toDegree)(2 * Math.atan2(x, w)); + attitude = -90; + } else { + var sqx = x * x; + var sqy = y * y; + var sqz = z * z; + bank = (0, _utils.toDegree)(Math.atan2(2 * x * w - 2 * y * z, 1 - 2 * sqx - 2 * sqz)); + heading = (0, _utils.toDegree)(Math.atan2(2 * y * w - 2 * x * z, 1 - 2 * sqy - 2 * sqz)); + attitude = (0, _utils.toDegree)(Math.asin(2 * test)); + if (outerZ) { + bank = -180 * Math.sign(bank + 1e-6) + bank; + heading = -180 * Math.sign(heading + 1e-6) + heading; + attitude = 180 * Math.sign(attitude + 1e-6) - attitude; + } + } + out.x = bank; + out.y = heading; + out.z = attitude; + return out; + }; + Quat.strictEquals = function strictEquals(a, b) { + return a.x === b.x && a.y === b.y && a.z === b.z && a.w === b.w; + }; + Quat.equals = function equals(a, b, epsilon) { + void 0 === epsilon && (epsilon = _utils.EPSILON); + return Math.abs(a.x - b.x) <= epsilon * Math.max(1, Math.abs(a.x), Math.abs(b.x)) && Math.abs(a.y - b.y) <= epsilon * Math.max(1, Math.abs(a.y), Math.abs(b.y)) && Math.abs(a.z - b.z) <= epsilon * Math.max(1, Math.abs(a.z), Math.abs(b.z)) && Math.abs(a.w - b.w) <= epsilon * Math.max(1, Math.abs(a.w), Math.abs(b.w)); + }; + Quat.toArray = function toArray(out, q, ofs) { + void 0 === ofs && (ofs = 0); + out[ofs + 0] = q.x; + out[ofs + 1] = q.y; + out[ofs + 2] = q.z; + out[ofs + 3] = q.w; + return out; + }; + Quat.fromArray = function fromArray(out, arr, ofs) { + void 0 === ofs && (ofs = 0); + out.x = arr[ofs + 0]; + out.y = arr[ofs + 1]; + out.z = arr[ofs + 2]; + out.w = arr[ofs + 3]; + return out; + }; + function Quat(x, y, z, w) { + var _this; + void 0 === x && (x = 0); + void 0 === y && (y = 0); + void 0 === z && (z = 0); + void 0 === w && (w = 1); + _this = _ValueType.call(this) || this; + _this.x = void 0; + _this.y = void 0; + _this.z = void 0; + _this.w = void 0; + if (x && "object" === typeof x) { + _this.x = x.x; + _this.y = x.y; + _this.z = x.z; + _this.w = x.w; + } else { + _this.x = x; + _this.y = y; + _this.z = z; + _this.w = w; + } + return _this; + } + _proto.clone = function clone() { + return new Quat(this.x, this.y, this.z, this.w); + }; + _proto.set = function set(newValue) { + this.x = newValue.x; + this.y = newValue.y; + this.z = newValue.z; + this.w = newValue.w; + return this; + }; + _proto.equals = function equals(other) { + return other && this.x === other.x && this.y === other.y && this.z === other.z && this.w === other.w; + }; + _proto.toEuler = function toEuler(out) { + return Quat.toEuler(out, this); + }; + _proto.fromEuler = function fromEuler(euler) { + return Quat.fromEuler(this, euler.x, euler.y, euler.z); + }; + _proto.lerp = function lerp(to, ratio, out) { + out = out || new Quat(); + Quat.slerp(out, this, to, ratio); + return out; + }; + _proto.multiply = function multiply(other) { + return Quat.multiply(this, this, other); + }; + _proto.rotateAround = function rotateAround(rot, axis, rad, out) { + out = out || new Quat(); + return Quat.rotateAround(out, rot, axis, rad); + }; + return Quat; + })(_valueType["default"]); + exports["default"] = Quat; + Quat.mul = Quat.multiply; + Quat.scale = Quat.multiplyScalar; + Quat.mag = Quat.len; + Quat.IDENTITY = Object.freeze(new Quat()); + var qt_1 = new Quat(); + var qt_2 = new Quat(); + var v3_1 = new _vec["default"](); + var m3_1 = new _mat["default"](); + var halfToRad = .5 * Math.PI / 180; + _CCClass["default"].fastDefine("cc.Quat", Quat, { + x: 0, + y: 0, + z: 0, + w: 1 + }); + cc.quat = function quat(x, y, z, w) { + return new Quat(x, y, z, w); + }; + cc.Quat = Quat; + module.exports = exports["default"]; + }), { + "../platform/CCClass": 121, + "./mat3": 221, + "./utils": 227, + "./value-type": 228, + "./vec3": 230 + } ], + 224: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _valueType = _interopRequireDefault(require("./value-type")); + var _CCClass = _interopRequireDefault(require("../platform/CCClass")); + var _vec = _interopRequireDefault(require("./vec2")); + var _size = _interopRequireDefault(require("./size")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + "value" in descriptor && (descriptor.writable = true); + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _createClass(Constructor, protoProps, staticProps) { + protoProps && _defineProperties(Constructor.prototype, protoProps); + staticProps && _defineProperties(Constructor, staticProps); + Object.defineProperty(Constructor, "prototype", { + writable: false + }); + return Constructor; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var Rect = (function(_ValueType) { + _inheritsLoose(Rect, _ValueType); + Rect.fromMinMax = function fromMinMax(v1, v2) { + var min_x = Math.min(v1.x, v2.x); + var min_y = Math.min(v1.y, v2.y); + var max_x = Math.max(v1.x, v2.x); + var max_y = Math.max(v1.y, v2.y); + return new Rect(min_x, min_y, max_x - min_x, max_y - min_y); + }; + function Rect(x, y, w, h) { + var _this; + void 0 === x && (x = 0); + void 0 === y && (y = 0); + void 0 === w && (w = 0); + void 0 === h && (h = 0); + _this = _ValueType.call(this) || this; + _this.x = void 0; + _this.y = void 0; + _this.width = void 0; + _this.height = void 0; + if (x && "object" === typeof x) { + y = x.y; + w = x.width; + h = x.height; + x = x.x; + } + _this.x = x || 0; + _this.y = y || 0; + _this.width = w || 0; + _this.height = h || 0; + return _this; + } + var _proto = Rect.prototype; + _proto.clone = function clone() { + return new Rect(this.x, this.y, this.width, this.height); + }; + _proto.equals = function equals(other) { + return other && this.x === other.x && this.y === other.y && this.width === other.width && this.height === other.height; + }; + _proto.lerp = function lerp(to, ratio, out) { + out = out || new Rect(); + var x = this.x; + var y = this.y; + var width = this.width; + var height = this.height; + out.x = x + (to.x - x) * ratio; + out.y = y + (to.y - y) * ratio; + out.width = width + (to.width - width) * ratio; + out.height = height + (to.height - height) * ratio; + return out; + }; + _proto.set = function set(source) { + this.x = source.x; + this.y = source.y; + this.width = source.width; + this.height = source.height; + return this; + }; + _proto.intersects = function intersects(rect) { + var maxax = this.x + this.width, maxay = this.y + this.height, maxbx = rect.x + rect.width, maxby = rect.y + rect.height; + return !(maxax < rect.x || maxbx < this.x || maxay < rect.y || maxby < this.y); + }; + _proto.intersection = function intersection(out, rectB) { + var axMin = this.x, ayMin = this.y, axMax = this.x + this.width, ayMax = this.y + this.height; + var bxMin = rectB.x, byMin = rectB.y, bxMax = rectB.x + rectB.width, byMax = rectB.y + rectB.height; + out.x = Math.max(axMin, bxMin); + out.y = Math.max(ayMin, byMin); + out.width = Math.min(axMax, bxMax) - out.x; + out.height = Math.min(ayMax, byMax) - out.y; + return out; + }; + _proto.contains = function contains(point) { + return this.x <= point.x && this.x + this.width >= point.x && this.y <= point.y && this.y + this.height >= point.y; + }; + _proto.containsRect = function containsRect(rect) { + return this.x <= rect.x && this.x + this.width >= rect.x + rect.width && this.y <= rect.y && this.y + this.height >= rect.y + rect.height; + }; + _proto.union = function union(out, rectB) { + var ax = this.x, ay = this.y, aw = this.width, ah = this.height; + var bx = rectB.x, by = rectB.y, bw = rectB.width, bh = rectB.height; + out.x = Math.min(ax, bx); + out.y = Math.min(ay, by); + out.width = Math.max(ax + aw, bx + bw) - out.x; + out.height = Math.max(ay + ah, by + bh) - out.y; + return out; + }; + _proto.transformMat4 = function transformMat4(out, mat) { + var ol = this.x; + var ob = this.y; + var or = ol + this.width; + var ot = ob + this.height; + var matm = mat.m; + var lbx = matm[0] * ol + matm[4] * ob + matm[12]; + var lby = matm[1] * ol + matm[5] * ob + matm[13]; + var rbx = matm[0] * or + matm[4] * ob + matm[12]; + var rby = matm[1] * or + matm[5] * ob + matm[13]; + var ltx = matm[0] * ol + matm[4] * ot + matm[12]; + var lty = matm[1] * ol + matm[5] * ot + matm[13]; + var rtx = matm[0] * or + matm[4] * ot + matm[12]; + var rty = matm[1] * or + matm[5] * ot + matm[13]; + var minX = Math.min(lbx, rbx, ltx, rtx); + var maxX = Math.max(lbx, rbx, ltx, rtx); + var minY = Math.min(lby, rby, lty, rty); + var maxY = Math.max(lby, rby, lty, rty); + out.x = minX; + out.y = minY; + out.width = maxX - minX; + out.height = maxY - minY; + return out; + }; + _proto.toString = function toString() { + return "(" + this.x.toFixed(2) + ", " + this.y.toFixed(2) + ", " + this.width.toFixed(2) + ", " + this.height.toFixed(2) + ")"; + }; + _createClass(Rect, [ { + key: "xMin", + get: function get() { + return this.x; + }, + set: function set(v) { + this.width += this.x - v; + this.x = v; + } + }, { + key: "yMin", + get: function get() { + return this.y; + }, + set: function set(v) { + this.height += this.y - v; + this.y = v; + } + }, { + key: "xMax", + get: function get() { + return this.x + this.width; + }, + set: function set(value) { + this.width = value - this.x; + } + }, { + key: "yMax", + get: function get() { + return this.y + this.height; + }, + set: function set(value) { + this.height = value - this.y; + } + }, { + key: "center", + get: function get() { + return new _vec["default"](this.x + .5 * this.width, this.y + .5 * this.height); + }, + set: function set(value) { + this.x = value.x - .5 * this.width; + this.y = value.y - .5 * this.height; + } + }, { + key: "origin", + get: function get() { + return new _vec["default"](this.x, this.y); + }, + set: function set(value) { + this.x = value.x; + this.y = value.y; + } + }, { + key: "size", + get: function get() { + return new _size["default"](this.width, this.height); + }, + set: function set(value) { + this.width = value.width; + this.height = value.height; + } + } ]); + return Rect; + })(_valueType["default"]); + exports["default"] = Rect; + _CCClass["default"].fastDefine("cc.Rect", Rect, { + x: 0, + y: 0, + width: 0, + height: 0 + }); + cc.Rect = Rect; + cc.rect = function rect(x, y, w, h) { + return new Rect(x, y, w, h); + }; + module.exports = exports["default"]; + }), { + "../platform/CCClass": 121, + "./size": 225, + "./value-type": 228, + "./vec2": 229 + } ], + 225: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _valueType = _interopRequireDefault(require("./value-type")); + var _CCClass = _interopRequireDefault(require("../platform/CCClass")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + "value" in descriptor && (descriptor.writable = true); + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _createClass(Constructor, protoProps, staticProps) { + protoProps && _defineProperties(Constructor.prototype, protoProps); + staticProps && _defineProperties(Constructor, staticProps); + Object.defineProperty(Constructor, "prototype", { + writable: false + }); + return Constructor; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var Size = (function(_ValueType) { + _inheritsLoose(Size, _ValueType); + function Size(width, height) { + var _this; + void 0 === width && (width = 0); + void 0 === height && (height = 0); + _this = _ValueType.call(this) || this; + _this.width = void 0; + _this.height = void 0; + if (width && "object" === typeof width) { + _this.width = width.width; + _this.height = width.height; + } else { + _this.width = width || 0; + _this.height = height || 0; + } + return _this; + } + var _proto = Size.prototype; + _proto.clone = function clone() { + return new Size(this.width, this.height); + }; + _proto.equals = function equals(other) { + return other && this.width === other.width && this.height === other.height; + }; + _proto.lerp = function lerp(to, ratio, out) { + out = out || new Size(); + var width = this.width; + var height = this.height; + out.width = width + (to.width - width) * ratio; + out.height = height + (to.height - height) * ratio; + return out; + }; + _proto.set = function set(source) { + this.width = source.width; + this.height = source.height; + return this; + }; + _proto.toString = function toString() { + return "(" + this.width.toFixed(2) + ", " + this.height.toFixed(2) + ")"; + }; + _createClass(Size, null, [ { + key: "ZERO", + get: function get() { + return new Size(); + } + } ]); + return Size; + })(_valueType["default"]); + exports["default"] = Size; + Size.ZERO_R = Size.ZERO; + _CCClass["default"].fastDefine("cc.Size", Size, { + width: 0, + height: 0 + }); + cc.size = function(w, h) { + return new Size(w, h); + }; + cc.Size = Size; + module.exports = exports["default"]; + }), { + "../platform/CCClass": 121, + "./value-type": 228 + } ], + 226: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _quat = _interopRequireDefault(require("./quat")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + var tmp_quat = new _quat["default"](); + var Trs = (function() { + function Trs() {} + Trs.toRotation = function toRotation(out, a) { + out.x = a[3]; + out.y = a[4]; + out.z = a[5]; + out.w = a[6]; + return out; + }; + Trs.fromRotation = function fromRotation(out, a) { + out[3] = a.x; + out[4] = a.y; + out[5] = a.z; + out[6] = a.w; + return out; + }; + Trs.toEuler = function toEuler(out, a) { + Trs.toRotation(tmp_quat, a); + _quat["default"].toEuler(out, tmp_quat); + return out; + }; + Trs.fromEuler = function fromEuler(out, a) { + _quat["default"].fromEuler(tmp_quat, a.x, a.y, a.z); + Trs.fromRotation(out, tmp_quat); + return out; + }; + Trs.fromEulerNumber = function fromEulerNumber(out, x, y, z) { + _quat["default"].fromEuler(tmp_quat, x, y, z); + Trs.fromRotation(out, tmp_quat); + return out; + }; + Trs.toScale = function toScale(out, a) { + out.x = a[7]; + out.y = a[8]; + out.z = a[9]; + return out; + }; + Trs.fromScale = function fromScale(out, a) { + out[7] = a.x; + out[8] = a.y; + out[9] = a.z; + return out; + }; + Trs.toPosition = function toPosition(out, a) { + out.x = a[0]; + out.y = a[1]; + out.z = a[2]; + return out; + }; + Trs.fromPosition = function fromPosition(out, a) { + out[0] = a.x; + out[1] = a.y; + out[2] = a.z; + return out; + }; + Trs.fromAngleZ = function fromAngleZ(out, a) { + _quat["default"].fromAngleZ(tmp_quat, a); + Trs.fromRotation(out, tmp_quat); + return out; + }; + Trs.toMat4 = function toMat4(out, trs) { + var x = trs[3], y = trs[4], z = trs[5], w = trs[6]; + var x2 = x + x; + var y2 = y + y; + var z2 = z + z; + var xx = x * x2; + var xy = x * y2; + var xz = x * z2; + var yy = y * y2; + var yz = y * z2; + var zz = z * z2; + var wx = w * x2; + var wy = w * y2; + var wz = w * z2; + var sx = trs[7]; + var sy = trs[8]; + var sz = trs[9]; + var m = out.m; + m[0] = (1 - (yy + zz)) * sx; + m[1] = (xy + wz) * sx; + m[2] = (xz - wy) * sx; + m[3] = 0; + m[4] = (xy - wz) * sy; + m[5] = (1 - (xx + zz)) * sy; + m[6] = (yz + wx) * sy; + m[7] = 0; + m[8] = (xz + wy) * sz; + m[9] = (yz - wx) * sz; + m[10] = (1 - (xx + yy)) * sz; + m[11] = 0; + m[12] = trs[0]; + m[13] = trs[1]; + m[14] = trs[2]; + m[15] = 1; + return out; + }; + return Trs; + })(); + exports["default"] = Trs; + cc.Trs = Trs; + module.exports = exports["default"]; + }), { + "./quat": 223 + } ], + 227: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports.INT_MIN = exports.INT_MAX = exports.INT_BITS = exports.FLOAT_BYTES = exports.FLOAT_ARRAY_TYPE = exports.EPSILON = void 0; + exports.approx = approx; + exports.clamp = clamp; + exports.clamp01 = clamp01; + exports.equals = equals; + exports.inverseLerp = inverseLerp; + exports.lerp = lerp; + exports.nextPow2 = nextPow2; + exports.pingPong = pingPong; + exports.pseudoRandom = pseudoRandom; + exports.pseudoRandomRange = pseudoRandomRange; + exports.pseudoRandomRangeInt = pseudoRandomRangeInt; + exports.random = void 0; + exports.randomRange = randomRange; + exports.randomRangeInt = randomRangeInt; + exports.repeat = repeat; + exports.sign = sign; + exports.toDegree = toDegree; + exports.toRadian = toRadian; + var _d2r = Math.PI / 180; + var _r2d = 180 / Math.PI; + var EPSILON = 1e-6; + exports.EPSILON = EPSILON; + var INT_BITS = 32; + exports.INT_BITS = INT_BITS; + var INT_MAX = 2147483647; + exports.INT_MAX = INT_MAX; + var INT_MIN = -1 << INT_BITS - 1; + exports.INT_MIN = INT_MIN; + var FLOAT_ARRAY_TYPE = Float64Array; + exports.FLOAT_ARRAY_TYPE = FLOAT_ARRAY_TYPE; + var FLOAT_BYTES = 8; + exports.FLOAT_BYTES = FLOAT_BYTES; + function equals(a, b) { + return Math.abs(a - b) <= EPSILON * Math.max(1, Math.abs(a), Math.abs(b)); + } + function approx(a, b, maxDiff) { + maxDiff = maxDiff || EPSILON; + return Math.abs(a - b) <= maxDiff; + } + function clamp(val, min, max) { + return val < min ? min : val > max ? max : val; + } + function clamp01(val) { + return val < 0 ? 0 : val > 1 ? 1 : val; + } + function lerp(from, to, ratio) { + return from + (to - from) * ratio; + } + function toRadian(a) { + return a * _d2r; + } + function toDegree(a) { + return a * _r2d; + } + var random = Math.random; + exports.random = random; + function randomRange(min, max) { + return Math.random() * (max - min) + min; + } + function randomRangeInt(min, max) { + return Math.floor(randomRange(min, max)); + } + function pseudoRandom(seed) { + seed = (9301 * seed + 49297) % 233280; + return seed / 233280; + } + function pseudoRandomRange(seed, min, max) { + return pseudoRandom(seed) * (max - min) + min; + } + function pseudoRandomRangeInt(seed, min, max) { + return Math.floor(pseudoRandomRange(seed, min, max)); + } + function nextPow2(val) { + --val; + val |= val >> 1; + val |= val >> 2; + val |= val >> 4; + val |= val >> 8; + val |= val >> 16; + ++val; + return val; + } + function repeat(t, length) { + return t - Math.floor(t / length) * length; + } + function pingPong(t, length) { + t = repeat(t, 2 * length); + t = length - Math.abs(t - length); + return t; + } + function inverseLerp(from, to, value) { + return (value - from) / (to - from); + } + function sign(v) { + return (v > 0) - (v < 0); + } + }), {} ], + 228: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _js = _interopRequireDefault(require("../platform/js")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + var ValueType = (function() { + function ValueType() {} + var _proto = ValueType.prototype; + _proto.clone = function clone() { + cc.errorID("0100", _js["default"].getClassName(this) + ".clone"); + return null; + }; + _proto.equals = function equals(other) { + cc.errorID("0100", _js["default"].getClassName(this) + ".equals"); + return false; + }; + _proto.lerp = function lerp(to, ratio) { + cc.errorID("0100", _js["default"].getClassName(this) + ".lerp"); + return this.clone(); + }; + _proto.set = function set(source) { + cc.errorID("0100", _js["default"].getClassName(this) + ".set"); + }; + _proto.toString = function toString() { + return "" + {}; + }; + return ValueType; + })(); + exports["default"] = ValueType; + _js["default"].setClassName("cc.ValueType", ValueType); + cc.ValueType = ValueType; + module.exports = exports["default"]; + }), { + "../platform/js": 142 + } ], + 229: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _valueType = _interopRequireDefault(require("./value-type")); + var _CCClass = _interopRequireDefault(require("../platform/CCClass")); + var _misc = _interopRequireDefault(require("../utils/misc")); + var _utils = require("./utils"); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + "value" in descriptor && (descriptor.writable = true); + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _createClass(Constructor, protoProps, staticProps) { + protoProps && _defineProperties(Constructor.prototype, protoProps); + staticProps && _defineProperties(Constructor, staticProps); + Object.defineProperty(Constructor, "prototype", { + writable: false + }); + return Constructor; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var _x = 0; + var _y = 0; + var Vec2 = (function(_ValueType) { + _inheritsLoose(Vec2, _ValueType); + var _proto = Vec2.prototype; + _proto.sub = function sub(vector, out) { + return Vec2.subtract(out || new Vec2(), this, vector); + }; + _proto.mul = function mul(num, out) { + return Vec2.multiplyScalar(out || new Vec2(), this, num); + }; + _proto.div = function div(num, out) { + return Vec2.multiplyScalar(out || new Vec2(), this, 1 / num); + }; + _proto.scale = function scale(vector, out) { + return Vec2.multiply(out || new Vec2(), this, vector); + }; + _proto.neg = function neg(out) { + return Vec2.negate(out || new Vec2(), this); + }; + Vec2.clone = function clone(a) { + return new Vec2(a.x, a.y); + }; + Vec2.copy = function copy(out, a) { + out.x = a.x; + out.y = a.y; + return out; + }; + Vec2.set = function set(out, x, y) { + out.x = x; + out.y = y; + return out; + }; + Vec2.add = function add(out, a, b) { + out.x = a.x + b.x; + out.y = a.y + b.y; + return out; + }; + Vec2.subtract = function subtract(out, a, b) { + out.x = a.x - b.x; + out.y = a.y - b.y; + return out; + }; + Vec2.multiply = function multiply(out, a, b) { + out.x = a.x * b.x; + out.y = a.y * b.y; + return out; + }; + Vec2.divide = function divide(out, a, b) { + out.x = a.x / b.x; + out.y = a.y / b.y; + return out; + }; + Vec2.ceil = function ceil(out, a) { + out.x = Math.ceil(a.x); + out.y = Math.ceil(a.y); + return out; + }; + Vec2.floor = function floor(out, a) { + out.x = Math.floor(a.x); + out.y = Math.floor(a.y); + return out; + }; + Vec2.min = function min(out, a, b) { + out.x = Math.min(a.x, b.x); + out.y = Math.min(a.y, b.y); + return out; + }; + Vec2.max = function max(out, a, b) { + out.x = Math.max(a.x, b.x); + out.y = Math.max(a.y, b.y); + return out; + }; + Vec2.round = function round(out, a) { + out.x = Math.round(a.x); + out.y = Math.round(a.y); + return out; + }; + Vec2.multiplyScalar = function multiplyScalar(out, a, b) { + out.x = a.x * b; + out.y = a.y * b; + return out; + }; + Vec2.scaleAndAdd = function scaleAndAdd(out, a, b, scale) { + out.x = a.x + b.x * scale; + out.y = a.y + b.y * scale; + return out; + }; + Vec2.distance = function distance(a, b) { + _x = b.x - a.x; + _y = b.y - a.y; + return Math.sqrt(_x * _x + _y * _y); + }; + Vec2.squaredDistance = function squaredDistance(a, b) { + _x = b.x - a.x; + _y = b.y - a.y; + return _x * _x + _y * _y; + }; + Vec2.len = function len(a) { + _x = a.x; + _y = a.y; + return Math.sqrt(_x * _x + _y * _y); + }; + Vec2.lengthSqr = function lengthSqr(a) { + _x = a.x; + _y = a.y; + return _x * _x + _y * _y; + }; + Vec2.negate = function negate(out, a) { + out.x = -a.x; + out.y = -a.y; + return out; + }; + Vec2.inverse = function inverse(out, a) { + out.x = 1 / a.x; + out.y = 1 / a.y; + return out; + }; + Vec2.inverseSafe = function inverseSafe(out, a) { + _x = a.x; + _y = a.y; + Math.abs(_x) < _utils.EPSILON ? out.x = 0 : out.x = 1 / _x; + Math.abs(_y) < _utils.EPSILON ? out.y = 0 : out.y = 1 / _y; + return out; + }; + Vec2.normalize = function normalize(out, a) { + _x = a.x; + _y = a.y; + var len = _x * _x + _y * _y; + if (len > 0) { + len = 1 / Math.sqrt(len); + out.x = _x * len; + out.y = _y * len; + } + return out; + }; + Vec2.dot = function dot(a, b) { + return a.x * b.x + a.y * b.y; + }; + Vec2.cross = function cross(out, a, b) { + out.x = out.y = 0; + out.z = a.x * b.y - a.y * b.x; + return out; + }; + Vec2.lerp = function lerp(out, a, b, t) { + _x = a.x; + _y = a.y; + out.x = _x + t * (b.x - _x); + out.y = _y + t * (b.y - _y); + return out; + }; + Vec2.random = function random(out, scale) { + scale = scale || 1; + var r = 2 * (0, _utils.random)() * Math.PI; + out.x = Math.cos(r) * scale; + out.y = Math.sin(r) * scale; + return out; + }; + Vec2.transformMat3 = function transformMat3(out, a, mat) { + _x = a.x; + _y = a.y; + var m = mat.m; + out.x = m[0] * _x + m[3] * _y + m[6]; + out.y = m[1] * _x + m[4] * _y + m[7]; + return out; + }; + Vec2.transformMat4 = function transformMat4(out, a, mat) { + _x = a.x; + _y = a.y; + var m = mat.m; + out.x = m[0] * _x + m[4] * _y + m[12]; + out.y = m[1] * _x + m[5] * _y + m[13]; + return out; + }; + Vec2.strictEquals = function strictEquals(a, b) { + return a.x === b.x && a.y === b.y; + }; + Vec2.equals = function equals(a, b, epsilon) { + void 0 === epsilon && (epsilon = _utils.EPSILON); + return Math.abs(a.x - b.x) <= epsilon * Math.max(1, Math.abs(a.x), Math.abs(b.x)) && Math.abs(a.y - b.y) <= epsilon * Math.max(1, Math.abs(a.y), Math.abs(b.y)); + }; + Vec2.angle = function angle(a, b) { + Vec2.normalize(v2_1, a); + Vec2.normalize(v2_2, b); + var cosine = Vec2.dot(v2_1, v2_2); + if (cosine > 1) return 0; + if (cosine < -1) return Math.PI; + return Math.acos(cosine); + }; + Vec2.toArray = function toArray(out, v, ofs) { + void 0 === ofs && (ofs = 0); + out[ofs + 0] = v.x; + out[ofs + 1] = v.y; + return out; + }; + Vec2.fromArray = function fromArray(out, arr, ofs) { + void 0 === ofs && (ofs = 0); + out.x = arr[ofs + 0]; + out.y = arr[ofs + 1]; + return out; + }; + function Vec2(x, y) { + var _this; + void 0 === x && (x = 0); + void 0 === y && (y = 0); + _this = _ValueType.call(this) || this; + _this.mag = Vec2.prototype.len; + _this.magSqr = Vec2.prototype.lengthSqr; + _this.subSelf = Vec2.prototype.subtract; + _this.mulSelf = Vec2.prototype.multiplyScalar; + _this.divSelf = Vec2.prototype.divide; + _this.scaleSelf = Vec2.prototype.multiply; + _this.negSelf = Vec2.prototype.negate; + _this.x = void 0; + _this.y = void 0; + _this.z = 0; + if (x && "object" === typeof x) { + _this.x = x.x || 0; + _this.y = x.y || 0; + } else { + _this.x = x || 0; + _this.y = y || 0; + } + return _this; + } + _proto.clone = function clone() { + return new Vec2(this.x, this.y); + }; + _proto.set = function set(newValue) { + this.x = newValue.x; + this.y = newValue.y; + return this; + }; + _proto.equals = function equals(other) { + return other && this.x === other.x && this.y === other.y; + }; + _proto.fuzzyEquals = function fuzzyEquals(other, variance) { + if (this.x - variance <= other.x && other.x <= this.x + variance && this.y - variance <= other.y && other.y <= this.y + variance) return true; + return false; + }; + _proto.toString = function toString() { + return "(" + this.x.toFixed(2) + ", " + this.y.toFixed(2) + ")"; + }; + _proto.lerp = function lerp(to, ratio, out) { + out = out || new Vec2(); + var x = this.x; + var y = this.y; + out.x = x + (to.x - x) * ratio; + out.y = y + (to.y - y) * ratio; + return out; + }; + _proto.clampf = function clampf(min_inclusive, max_inclusive) { + this.x = _misc["default"].clampf(this.x, min_inclusive.x, max_inclusive.x); + this.y = _misc["default"].clampf(this.y, min_inclusive.y, max_inclusive.y); + return this; + }; + _proto.add = function add(vector, out) { + out = out || new Vec2(); + out.x = this.x + vector.x; + out.y = this.y + vector.y; + return out; + }; + _proto.addSelf = function addSelf(vector) { + this.x += vector.x; + this.y += vector.y; + return this; + }; + _proto.subtract = function subtract(vector) { + this.x -= vector.x; + this.y -= vector.y; + return this; + }; + _proto.multiplyScalar = function multiplyScalar(num) { + this.x *= num; + this.y *= num; + return this; + }; + _proto.multiply = function multiply(vector) { + this.x *= vector.x; + this.y *= vector.y; + return this; + }; + _proto.divide = function divide(num) { + this.x /= num; + this.y /= num; + return this; + }; + _proto.negate = function negate() { + this.x = -this.x; + this.y = -this.y; + return this; + }; + _proto.dot = function dot(vector) { + return this.x * vector.x + this.y * vector.y; + }; + _proto.cross = function cross(vector) { + return this.x * vector.y - this.y * vector.x; + }; + _proto.len = function len() { + return Math.sqrt(this.x * this.x + this.y * this.y); + }; + _proto.lengthSqr = function lengthSqr() { + return this.x * this.x + this.y * this.y; + }; + _proto.normalizeSelf = function normalizeSelf() { + var magSqr = this.x * this.x + this.y * this.y; + if (1 === magSqr) return this; + if (0 === magSqr) return this; + var invsqrt = 1 / Math.sqrt(magSqr); + this.x *= invsqrt; + this.y *= invsqrt; + return this; + }; + _proto.normalize = function normalize(out) { + out = out || new Vec2(); + out.x = this.x; + out.y = this.y; + out.normalizeSelf(); + return out; + }; + _proto.angle = function angle(vector) { + var magSqr1 = this.magSqr(); + var magSqr2 = vector.magSqr(); + if (0 === magSqr1 || 0 === magSqr2) { + console.warn("Can't get angle between zero vector"); + return 0; + } + var dot = this.dot(vector); + var theta = dot / Math.sqrt(magSqr1 * magSqr2); + theta = _misc["default"].clampf(theta, -1, 1); + return Math.acos(theta); + }; + _proto.signAngle = function signAngle(vector) { + var angle = this.angle(vector); + return this.cross(vector) < 0 ? -angle : angle; + }; + _proto.rotate = function rotate(radians, out) { + out = out || new Vec2(); + out.x = this.x; + out.y = this.y; + return out.rotateSelf(radians); + }; + _proto.rotateSelf = function rotateSelf(radians) { + var sin = Math.sin(radians); + var cos = Math.cos(radians); + var x = this.x; + this.x = cos * x - sin * this.y; + this.y = sin * x + cos * this.y; + return this; + }; + _proto.project = function project(vector) { + return vector.multiplyScalar(this.dot(vector) / vector.dot(vector)); + }; + _proto.transformMat4 = function transformMat4(m, out) { + out = out || new Vec2(); + Vec2.transformMat4(out, this, m); + return out; + }; + _proto.maxAxis = function maxAxis() { + return Math.max(this.x, this.y); + }; + _createClass(Vec2, null, [ { + key: "ONE", + get: function get() { + return new Vec2(1, 1); + } + }, { + key: "ZERO", + get: function get() { + return new Vec2(0, 0); + } + }, { + key: "UP", + get: function get() { + return new Vec2(0, 1); + } + }, { + key: "RIGHT", + get: function get() { + return new Vec2(1, 0); + } + } ]); + return Vec2; + })(_valueType["default"]); + exports["default"] = Vec2; + Vec2.sub = Vec2.subtract; + Vec2.mul = Vec2.multiply; + Vec2.scale = Vec2.multiplyScalar; + Vec2.mag = Vec2.len; + Vec2.squaredMagnitude = Vec2.lengthSqr; + Vec2.div = Vec2.divide; + Vec2.ONE_R = Vec2.ONE; + Vec2.ZERO_R = Vec2.ZERO; + Vec2.UP_R = Vec2.UP; + Vec2.RIGHT_R = Vec2.RIGHT; + var v2_1 = new Vec2(); + var v2_2 = new Vec2(); + _CCClass["default"].fastDefine("cc.Vec2", Vec2, { + x: 0, + y: 0 + }); + cc.v2 = function v2(x, y) { + return new Vec2(x, y); + }; + cc.Vec2 = Vec2; + module.exports = exports["default"]; + }), { + "../platform/CCClass": 121, + "../utils/misc": 205, + "./utils": 227, + "./value-type": 228 + } ], + 230: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _valueType = _interopRequireDefault(require("./value-type")); + var _CCClass = _interopRequireDefault(require("../platform/CCClass")); + var _misc = _interopRequireDefault(require("../utils/misc")); + var _vec = _interopRequireDefault(require("./vec2")); + var _utils = require("./utils"); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + "value" in descriptor && (descriptor.writable = true); + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _createClass(Constructor, protoProps, staticProps) { + protoProps && _defineProperties(Constructor.prototype, protoProps); + staticProps && _defineProperties(Constructor, staticProps); + Object.defineProperty(Constructor, "prototype", { + writable: false + }); + return Constructor; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var _x = 0; + var _y = 0; + var _z = 0; + var Vec3 = (function(_ValueType) { + _inheritsLoose(Vec3, _ValueType); + var _proto = Vec3.prototype; + _proto.sub = function sub(vector, out) { + return Vec3.subtract(out || new Vec3(), this, vector); + }; + _proto.mul = function mul(num, out) { + return Vec3.multiplyScalar(out || new Vec3(), this, num); + }; + _proto.div = function div(num, out) { + return Vec3.multiplyScalar(out || new Vec3(), this, 1 / num); + }; + _proto.scale = function scale(vector, out) { + return Vec3.multiply(out || new Vec3(), this, vector); + }; + _proto.neg = function neg(out) { + return Vec3.negate(out || new Vec3(), this); + }; + Vec3.zero = function zero(out) { + out.x = 0; + out.y = 0; + out.z = 0; + return out; + }; + Vec3.clone = function clone(a) { + return new Vec3(a.x, a.y, a.z); + }; + Vec3.copy = function copy(out, a) { + out.x = a.x; + out.y = a.y; + out.z = a.z; + return out; + }; + Vec3.set = function set(out, x, y, z) { + out.x = x; + out.y = y; + out.z = z; + return out; + }; + Vec3.add = function add(out, a, b) { + out.x = a.x + b.x; + out.y = a.y + b.y; + out.z = a.z + b.z; + return out; + }; + Vec3.subtract = function subtract(out, a, b) { + out.x = a.x - b.x; + out.y = a.y - b.y; + out.z = a.z - b.z; + return out; + }; + Vec3.multiply = function multiply(out, a, b) { + out.x = a.x * b.x; + out.y = a.y * b.y; + out.z = a.z * b.z; + return out; + }; + Vec3.divide = function divide(out, a, b) { + out.x = a.x / b.x; + out.y = a.y / b.y; + out.z = a.z / b.z; + return out; + }; + Vec3.ceil = function ceil(out, a) { + out.x = Math.ceil(a.x); + out.y = Math.ceil(a.y); + out.z = Math.ceil(a.z); + return out; + }; + Vec3.floor = function floor(out, a) { + out.x = Math.floor(a.x); + out.y = Math.floor(a.y); + out.z = Math.floor(a.z); + return out; + }; + Vec3.min = function min(out, a, b) { + out.x = Math.min(a.x, b.x); + out.y = Math.min(a.y, b.y); + out.z = Math.min(a.z, b.z); + return out; + }; + Vec3.max = function max(out, a, b) { + out.x = Math.max(a.x, b.x); + out.y = Math.max(a.y, b.y); + out.z = Math.max(a.z, b.z); + return out; + }; + Vec3.round = function round(out, a) { + out.x = Math.round(a.x); + out.y = Math.round(a.y); + out.z = Math.round(a.z); + return out; + }; + Vec3.multiplyScalar = function multiplyScalar(out, a, b) { + out.x = a.x * b; + out.y = a.y * b; + out.z = a.z * b; + return out; + }; + Vec3.scaleAndAdd = function scaleAndAdd(out, a, b, scale) { + out.x = a.x + b.x * scale; + out.y = a.y + b.y * scale; + out.z = a.z + b.z * scale; + return out; + }; + Vec3.distance = function distance(a, b) { + _x = b.x - a.x; + _y = b.y - a.y; + _z = b.z - a.z; + return Math.sqrt(_x * _x + _y * _y + _z * _z); + }; + Vec3.squaredDistance = function squaredDistance(a, b) { + _x = b.x - a.x; + _y = b.y - a.y; + _z = b.z - a.z; + return _x * _x + _y * _y + _z * _z; + }; + Vec3.len = function len(a) { + _x = a.x; + _y = a.y; + _z = a.z; + return Math.sqrt(_x * _x + _y * _y + _z * _z); + }; + Vec3.lengthSqr = function lengthSqr(a) { + _x = a.x; + _y = a.y; + _z = a.z; + return _x * _x + _y * _y + _z * _z; + }; + Vec3.negate = function negate(out, a) { + out.x = -a.x; + out.y = -a.y; + out.z = -a.z; + return out; + }; + Vec3.inverse = function inverse(out, a) { + out.x = 1 / a.x; + out.y = 1 / a.y; + out.z = 1 / a.z; + return out; + }; + Vec3.inverseSafe = function inverseSafe(out, a) { + _x = a.x; + _y = a.y; + _z = a.z; + Math.abs(_x) < _utils.EPSILON ? out.x = 0 : out.x = 1 / _x; + Math.abs(_y) < _utils.EPSILON ? out.y = 0 : out.y = 1 / _y; + Math.abs(_z) < _utils.EPSILON ? out.z = 0 : out.z = 1 / _z; + return out; + }; + Vec3.normalize = function normalize(out, a) { + _x = a.x; + _y = a.y; + _z = a.z; + var len = _x * _x + _y * _y + _z * _z; + if (len > 0) { + len = 1 / Math.sqrt(len); + out.x = _x * len; + out.y = _y * len; + out.z = _z * len; + } + return out; + }; + Vec3.dot = function dot(a, b) { + return a.x * b.x + a.y * b.y + a.z * b.z; + }; + Vec3.cross = function cross(out, a, b) { + var ax = a.x, ay = a.y, az = a.z; + var bx = b.x, by = b.y, bz = b.z; + out.x = ay * bz - az * by; + out.y = az * bx - ax * bz; + out.z = ax * by - ay * bx; + return out; + }; + Vec3.lerp = function lerp(out, a, b, t) { + out.x = a.x + t * (b.x - a.x); + out.y = a.y + t * (b.y - a.y); + out.z = a.z + t * (b.z - a.z); + return out; + }; + Vec3.random = function random(out, scale) { + scale = scale || 1; + var phi = 2 * (0, _utils.random)() * Math.PI; + var cosTheta = 2 * (0, _utils.random)() - 1; + var sinTheta = Math.sqrt(1 - cosTheta * cosTheta); + out.x = sinTheta * Math.cos(phi) * scale; + out.y = sinTheta * Math.sin(phi) * scale; + out.z = cosTheta * scale; + return out; + }; + Vec3.transformMat4 = function transformMat4(out, a, mat) { + _x = a.x; + _y = a.y; + _z = a.z; + var m = mat.m; + var rhw = m[3] * _x + m[7] * _y + m[11] * _z + m[15]; + rhw = rhw ? 1 / rhw : 1; + out.x = (m[0] * _x + m[4] * _y + m[8] * _z + m[12]) * rhw; + out.y = (m[1] * _x + m[5] * _y + m[9] * _z + m[13]) * rhw; + out.z = (m[2] * _x + m[6] * _y + m[10] * _z + m[14]) * rhw; + return out; + }; + Vec3.transformMat4Normal = function transformMat4Normal(out, a, mat) { + _x = a.x; + _y = a.y; + _z = a.z; + var m = mat.m; + var rhw = m[3] * _x + m[7] * _y + m[11] * _z; + rhw = rhw ? 1 / rhw : 1; + out.x = (m[0] * _x + m[4] * _y + m[8] * _z) * rhw; + out.y = (m[1] * _x + m[5] * _y + m[9] * _z) * rhw; + out.z = (m[2] * _x + m[6] * _y + m[10] * _z) * rhw; + return out; + }; + Vec3.transformMat3 = function transformMat3(out, a, mat) { + _x = a.x; + _y = a.y; + _z = a.z; + var m = mat.m; + out.x = _x * m[0] + _y * m[3] + _z * m[6]; + out.y = _x * m[1] + _y * m[4] + _z * m[7]; + out.z = _x * m[2] + _y * m[5] + _z * m[8]; + return out; + }; + Vec3.transformAffine = function transformAffine(out, v, mat) { + _x = v.x; + _y = v.y; + _z = v.z; + var m = mat.m; + out.x = m[0] * _x + m[1] * _y + m[2] * _z + m[3]; + out.y = m[4] * _x + m[5] * _y + m[6] * _z + m[7]; + out.x = m[8] * _x + m[9] * _y + m[10] * _z + m[11]; + return out; + }; + Vec3.transformQuat = function transformQuat(out, a, q) { + var ix = q.w * a.x + q.y * a.z - q.z * a.y; + var iy = q.w * a.y + q.z * a.x - q.x * a.z; + var iz = q.w * a.z + q.x * a.y - q.y * a.x; + var iw = -q.x * a.x - q.y * a.y - q.z * a.z; + out.x = ix * q.w + iw * -q.x + iy * -q.z - iz * -q.y; + out.y = iy * q.w + iw * -q.y + iz * -q.x - ix * -q.z; + out.z = iz * q.w + iw * -q.z + ix * -q.y - iy * -q.x; + return out; + }; + Vec3.transformRTS = function transformRTS(out, a, r, t, s) { + var x = a.x * s.x; + var y = a.y * s.y; + var z = a.z * s.z; + var ix = r.w * x + r.y * z - r.z * y; + var iy = r.w * y + r.z * x - r.x * z; + var iz = r.w * z + r.x * y - r.y * x; + var iw = -r.x * x - r.y * y - r.z * z; + out.x = ix * r.w + iw * -r.x + iy * -r.z - iz * -r.y + t.x; + out.y = iy * r.w + iw * -r.y + iz * -r.x - ix * -r.z + t.y; + out.z = iz * r.w + iw * -r.z + ix * -r.y - iy * -r.x + t.z; + return out; + }; + Vec3.transformInverseRTS = function transformInverseRTS(out, a, r, t, s) { + var x = a.x - t.x; + var y = a.y - t.y; + var z = a.z - t.z; + var ix = r.w * x - r.y * z + r.z * y; + var iy = r.w * y - r.z * x + r.x * z; + var iz = r.w * z - r.x * y + r.y * x; + var iw = r.x * x + r.y * y + r.z * z; + out.x = (ix * r.w + iw * r.x + iy * r.z - iz * r.y) / s.x; + out.y = (iy * r.w + iw * r.y + iz * r.x - ix * r.z) / s.y; + out.z = (iz * r.w + iw * r.z + ix * r.y - iy * r.x) / s.z; + return out; + }; + Vec3.rotateX = function rotateX(out, v, o, a) { + _x = v.x - o.x; + _y = v.y - o.y; + _z = v.z - o.z; + var cos = Math.cos(a); + var sin = Math.sin(a); + var rx = _x; + var ry = _y * cos - _z * sin; + var rz = _y * sin + _z * cos; + out.x = rx + o.x; + out.y = ry + o.y; + out.z = rz + o.z; + return out; + }; + Vec3.rotateY = function rotateY(out, v, o, a) { + _x = v.x - o.x; + _y = v.y - o.y; + _z = v.z - o.z; + var cos = Math.cos(a); + var sin = Math.sin(a); + var rx = _z * sin + _x * cos; + var ry = _y; + var rz = _z * cos - _x * sin; + out.x = rx + o.x; + out.y = ry + o.y; + out.z = rz + o.z; + return out; + }; + Vec3.rotateZ = function rotateZ(out, v, o, a) { + _x = v.x - o.x; + _y = v.y - o.y; + _z = v.z - o.z; + var cos = Math.cos(a); + var sin = Math.sin(a); + var rx = _x * cos - _y * sin; + var ry = _x * sin + _y * cos; + var rz = _z; + out.x = rx + o.x; + out.y = ry + o.y; + out.z = rz + o.z; + return out; + }; + Vec3.strictEquals = function strictEquals(a, b) { + return a.x === b.x && a.y === b.y && a.z === b.z; + }; + Vec3.equals = function equals(a, b, epsilon) { + void 0 === epsilon && (epsilon = _utils.EPSILON); + var a0 = a.x, a1 = a.y, a2 = a.z; + var b0 = b.x, b1 = b.y, b2 = b.z; + return Math.abs(a0 - b0) <= epsilon * Math.max(1, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= epsilon * Math.max(1, Math.abs(a1), Math.abs(b1)) && Math.abs(a2 - b2) <= epsilon * Math.max(1, Math.abs(a2), Math.abs(b2)); + }; + Vec3.angle = function angle(a, b) { + Vec3.normalize(v3_1, a); + Vec3.normalize(v3_2, b); + var cosine = Vec3.dot(v3_1, v3_2); + if (cosine > 1) return 0; + if (cosine < -1) return Math.PI; + return Math.acos(cosine); + }; + Vec3.projectOnPlane = function projectOnPlane(out, a, n) { + return Vec3.subtract(out, a, Vec3.project(out, a, n)); + }; + Vec3.project = function project(out, a, b) { + var sqrLen = Vec3.lengthSqr(b); + return sqrLen < 1e-6 ? Vec3.set(out, 0, 0, 0) : Vec3.multiplyScalar(out, b, Vec3.dot(a, b) / sqrLen); + }; + Vec3.toArray = function toArray(out, v, ofs) { + void 0 === ofs && (ofs = 0); + out[ofs + 0] = v.x; + out[ofs + 1] = v.y; + out[ofs + 2] = v.z; + return out; + }; + Vec3.fromArray = function fromArray(out, arr, ofs) { + void 0 === ofs && (ofs = 0); + out.x = arr[ofs + 0]; + out.y = arr[ofs + 1]; + out.z = arr[ofs + 2]; + return out; + }; + function Vec3(x, y, z) { + var _this; + void 0 === x && (x = 0); + void 0 === y && (y = 0); + void 0 === z && (z = 0); + _this = _ValueType.call(this) || this; + _this.mag = Vec3.prototype.len; + _this.magSqr = Vec3.prototype.lengthSqr; + _this.subSelf = Vec3.prototype.subtract; + _this.mulSelf = Vec3.prototype.multiplyScalar; + _this.divSelf = Vec3.prototype.divide; + _this.scaleSelf = Vec3.prototype.multiply; + _this.negSelf = Vec3.prototype.negate; + _this.x = void 0; + _this.y = void 0; + _this.z = void 0; + _this.angle = _vec["default"].prototype.angle; + _this.project = _vec["default"].prototype.project; + if (x && "object" === typeof x) { + _this.x = x.x; + _this.y = x.y; + _this.z = x.z; + } else { + _this.x = x; + _this.y = y; + _this.z = z; + } + return _this; + } + _proto.clone = function clone() { + return new Vec3(this.x, this.y, this.z); + }; + _proto.set = function set(newValue) { + this.x = newValue.x; + this.y = newValue.y; + this.z = newValue.z; + return this; + }; + _proto.equals = function equals(other) { + return other && this.x === other.x && this.y === other.y && this.z === other.z; + }; + _proto.fuzzyEquals = function fuzzyEquals(other, variance) { + if (this.x - variance <= other.x && other.x <= this.x + variance && this.y - variance <= other.y && other.y <= this.y + variance && this.z - variance <= other.z && other.z <= this.z + variance) return true; + return false; + }; + _proto.toString = function toString() { + return "(" + this.x.toFixed(2) + ", " + this.y.toFixed(2) + ", " + this.z.toFixed(2) + ")"; + }; + _proto.lerp = function lerp(to, ratio, out) { + out = out || new Vec3(); + Vec3.lerp(out, this, to, ratio); + return out; + }; + _proto.clampf = function clampf(min_inclusive, max_inclusive) { + this.x = _misc["default"].clampf(this.x, min_inclusive.x, max_inclusive.x); + this.y = _misc["default"].clampf(this.y, min_inclusive.y, max_inclusive.y); + this.z = _misc["default"].clampf(this.z, min_inclusive.z, max_inclusive.z); + return this; + }; + _proto.addSelf = function addSelf(vector) { + this.x += vector.x; + this.y += vector.y; + this.z += vector.z; + return this; + }; + _proto.add = function add(vector, out) { + out = out || new Vec3(); + out.x = this.x + vector.x; + out.y = this.y + vector.y; + out.z = this.z + vector.z; + return out; + }; + _proto.subtract = function subtract(vector) { + this.x -= vector.x; + this.y -= vector.y; + this.z -= vector.z; + return this; + }; + _proto.multiplyScalar = function multiplyScalar(num) { + this.x *= num; + this.y *= num; + this.z *= num; + return this; + }; + _proto.multiply = function multiply(vector) { + this.x *= vector.x; + this.y *= vector.y; + this.z *= vector.z; + return this; + }; + _proto.divide = function divide(num) { + this.x /= num; + this.y /= num; + this.z /= num; + return this; + }; + _proto.negate = function negate() { + this.x = -this.x; + this.y = -this.y; + this.z = -this.z; + return this; + }; + _proto.dot = function dot(vector) { + return this.x * vector.x + this.y * vector.y + this.z * vector.z; + }; + _proto.cross = function cross(vector, out) { + out = out || new Vec3(); + Vec3.cross(out, this, vector); + return out; + }; + _proto.len = function len() { + return Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z); + }; + _proto.lengthSqr = function lengthSqr() { + return this.x * this.x + this.y * this.y + this.z * this.z; + }; + _proto.normalizeSelf = function normalizeSelf() { + Vec3.normalize(this, this); + return this; + }; + _proto.normalize = function normalize(out) { + out = out || new Vec3(); + Vec3.normalize(out, this); + return out; + }; + _proto.transformMat4 = function transformMat4(m, out) { + out = out || new Vec3(); + Vec3.transformMat4(out, this, m); + return out; + }; + _proto.maxAxis = function maxAxis() { + return Math.max(this.x, this.y, this.z); + }; + _proto.signAngle = function signAngle(vector) { + cc.warnID(1408, "vec3.signAngle", "v2.1", "cc.v2(selfVector).signAngle(vector)"); + var vec1 = new _vec["default"](this.x, this.y); + var vec2 = new _vec["default"](vector.x, vector.y); + return vec1.signAngle(vec2); + }; + _proto.rotate = function rotate(radians, out) { + cc.warnID(1408, "vec3.rotate", "v2.1", "cc.v2(selfVector).rotate(radians, out)"); + return _vec["default"].prototype.rotate.call(this, radians, out); + }; + _proto.rotateSelf = function rotateSelf(radians) { + cc.warnID(1408, "vec3.rotateSelf", "v2.1", "cc.v2(selfVector).rotateSelf(radians)"); + return _vec["default"].prototype.rotateSelf.call(this, radians); + }; + _createClass(Vec3, null, [ { + key: "ONE", + get: function get() { + return new Vec3(1, 1, 1); + } + }, { + key: "ZERO", + get: function get() { + return new Vec3(); + } + }, { + key: "UP", + get: function get() { + return new Vec3(0, 1, 0); + } + }, { + key: "RIGHT", + get: function get() { + return new Vec3(1, 0, 0); + } + }, { + key: "FORWARD", + get: function get() { + return new Vec3(0, 0, 1); + } + } ]); + return Vec3; + })(_valueType["default"]); + exports["default"] = Vec3; + Vec3.sub = Vec3.subtract; + Vec3.mul = Vec3.multiply; + Vec3.scale = Vec3.multiplyScalar; + Vec3.mag = Vec3.len; + Vec3.squaredMagnitude = Vec3.lengthSqr; + Vec3.div = Vec3.divide; + Vec3.ONE_R = Vec3.ONE; + Vec3.ZERO_R = Vec3.ZERO; + Vec3.UP_R = Vec3.UP; + Vec3.RIGHT_R = Vec3.RIGHT; + Vec3.FRONT_R = Vec3.FORWARD; + var v3_1 = new Vec3(); + var v3_2 = new Vec3(); + _CCClass["default"].fastDefine("cc.Vec3", Vec3, { + x: 0, + y: 0, + z: 0 + }); + cc.v3 = function v3(x, y, z) { + return new Vec3(x, y, z); + }; + cc.Vec3 = Vec3; + module.exports = exports["default"]; + }), { + "../platform/CCClass": 121, + "../utils/misc": 205, + "./utils": 227, + "./value-type": 228, + "./vec2": 229 + } ], + 231: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + exports.v4 = v4; + var _CCClass = _interopRequireDefault(require("../platform/CCClass")); + var _valueType = _interopRequireDefault(require("./value-type")); + var _utils = require("./utils"); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + "value" in descriptor && (descriptor.writable = true); + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _createClass(Constructor, protoProps, staticProps) { + protoProps && _defineProperties(Constructor.prototype, protoProps); + staticProps && _defineProperties(Constructor, staticProps); + Object.defineProperty(Constructor, "prototype", { + writable: false + }); + return Constructor; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var _x = 0; + var _y = 0; + var _z = 0; + var _w = 0; + var Vec4 = (function(_ValueType) { + _inheritsLoose(Vec4, _ValueType); + var _proto = Vec4.prototype; + _proto.sub = function sub(vector, out) { + return Vec4.subtract(out || new Vec4(), this, vector); + }; + _proto.mul = function mul(num, out) { + return Vec4.multiplyScalar(out || new Vec4(), this, num); + }; + _proto.div = function div(num, out) { + return Vec4.multiplyScalar(out || new Vec4(), this, 1 / num); + }; + _proto.scale = function scale(vector, out) { + return Vec4.multiply(out || new Vec4(), this, vector); + }; + _proto.neg = function neg(out) { + return Vec4.negate(out || new Vec4(), this); + }; + Vec4.clone = function clone(a) { + return new Vec4(a.x, a.y, a.z, a.w); + }; + Vec4.copy = function copy(out, a) { + out.x = a.x; + out.y = a.y; + out.z = a.z; + out.w = a.w; + return out; + }; + Vec4.set = function set(out, x, y, z, w) { + out.x = x; + out.y = y; + out.z = z; + out.w = w; + return out; + }; + Vec4.add = function add(out, a, b) { + out.x = a.x + b.x; + out.y = a.y + b.y; + out.z = a.z + b.z; + out.w = a.w + b.w; + return out; + }; + Vec4.subtract = function subtract(out, a, b) { + out.x = a.x - b.x; + out.y = a.y - b.y; + out.z = a.z - b.z; + out.w = a.w - b.w; + return out; + }; + Vec4.multiply = function multiply(out, a, b) { + out.x = a.x * b.x; + out.y = a.y * b.y; + out.z = a.z * b.z; + out.w = a.w * b.w; + return out; + }; + Vec4.divide = function divide(out, a, b) { + out.x = a.x / b.x; + out.y = a.y / b.y; + out.z = a.z / b.z; + out.w = a.w / b.w; + return out; + }; + Vec4.ceil = function ceil(out, a) { + out.x = Math.ceil(a.x); + out.y = Math.ceil(a.y); + out.z = Math.ceil(a.z); + out.w = Math.ceil(a.w); + return out; + }; + Vec4.floor = function floor(out, a) { + out.x = Math.floor(a.x); + out.y = Math.floor(a.y); + out.z = Math.floor(a.z); + out.w = Math.floor(a.w); + return out; + }; + Vec4.min = function min(out, a, b) { + out.x = Math.min(a.x, b.x); + out.y = Math.min(a.y, b.y); + out.z = Math.min(a.z, b.z); + out.w = Math.min(a.w, b.w); + return out; + }; + Vec4.max = function max(out, a, b) { + out.x = Math.max(a.x, b.x); + out.y = Math.max(a.y, b.y); + out.z = Math.max(a.z, b.z); + out.w = Math.max(a.w, b.w); + return out; + }; + Vec4.round = function round(out, a) { + out.x = Math.round(a.x); + out.y = Math.round(a.y); + out.z = Math.round(a.z); + out.w = Math.round(a.w); + return out; + }; + Vec4.multiplyScalar = function multiplyScalar(out, a, b) { + out.x = a.x * b; + out.y = a.y * b; + out.z = a.z * b; + out.w = a.w * b; + return out; + }; + Vec4.scaleAndAdd = function scaleAndAdd(out, a, b, scale) { + out.x = a.x + b.x * scale; + out.y = a.y + b.y * scale; + out.z = a.z + b.z * scale; + out.w = a.w + b.w * scale; + return out; + }; + Vec4.distance = function distance(a, b) { + var x = b.x - a.x; + var y = b.y - a.y; + var z = b.z - a.z; + var w = b.w - a.w; + return Math.sqrt(x * x + y * y + z * z + w * w); + }; + Vec4.squaredDistance = function squaredDistance(a, b) { + var x = b.x - a.x; + var y = b.y - a.y; + var z = b.z - a.z; + var w = b.w - a.w; + return x * x + y * y + z * z + w * w; + }; + Vec4.len = function len(a) { + _x = a.x; + _y = a.y; + _z = a.z; + _w = a.w; + return Math.sqrt(_x * _x + _y * _y + _z * _z + _w * _w); + }; + Vec4.lengthSqr = function lengthSqr(a) { + _x = a.x; + _y = a.y; + _z = a.z; + _w = a.w; + return _x * _x + _y * _y + _z * _z + _w * _w; + }; + Vec4.negate = function negate(out, a) { + out.x = -a.x; + out.y = -a.y; + out.z = -a.z; + out.w = -a.w; + return out; + }; + Vec4.inverse = function inverse(out, a) { + out.x = 1 / a.x; + out.y = 1 / a.y; + out.z = 1 / a.z; + out.w = 1 / a.w; + return out; + }; + Vec4.inverseSafe = function inverseSafe(out, a) { + _x = a.x; + _y = a.y; + _z = a.z; + _w = a.w; + Math.abs(_x) < _utils.EPSILON ? out.x = 0 : out.x = 1 / _x; + Math.abs(_y) < _utils.EPSILON ? out.y = 0 : out.y = 1 / _y; + Math.abs(_z) < _utils.EPSILON ? out.z = 0 : out.z = 1 / _z; + Math.abs(_w) < _utils.EPSILON ? out.w = 0 : out.w = 1 / _w; + return out; + }; + Vec4.normalize = function normalize(out, a) { + _x = a.x; + _y = a.y; + _z = a.z; + _w = a.w; + var len = _x * _x + _y * _y + _z * _z + _w * _w; + if (len > 0) { + len = 1 / Math.sqrt(len); + out.x = _x * len; + out.y = _y * len; + out.z = _z * len; + out.w = _w * len; + } + return out; + }; + Vec4.dot = function dot(a, b) { + return a.x * b.x + a.y * b.y + a.z * b.z + a.w * b.w; + }; + Vec4.lerp = function lerp(out, a, b, t) { + out.x = a.x + t * (b.x - a.x); + out.y = a.y + t * (b.y - a.y); + out.z = a.z + t * (b.z - a.z); + out.w = a.w + t * (b.w - a.w); + return out; + }; + Vec4.random = function random(out, scale) { + scale = scale || 1; + var phi = 2 * (0, _utils.random)() * Math.PI; + var cosTheta = 2 * (0, _utils.random)() - 1; + var sinTheta = Math.sqrt(1 - cosTheta * cosTheta); + out.x = sinTheta * Math.cos(phi) * scale; + out.y = sinTheta * Math.sin(phi) * scale; + out.z = cosTheta * scale; + out.w = 0; + return out; + }; + Vec4.transformMat4 = function transformMat4(out, a, mat) { + _x = a.x; + _y = a.y; + _z = a.z; + _w = a.w; + var m = mat.m; + out.x = m[0] * _x + m[4] * _y + m[8] * _z + m[12] * _w; + out.y = m[1] * _x + m[5] * _y + m[9] * _z + m[13] * _w; + out.z = m[2] * _x + m[6] * _y + m[10] * _z + m[14] * _w; + out.w = m[3] * _x + m[7] * _y + m[11] * _z + m[15] * _w; + return out; + }; + Vec4.transformAffine = function transformAffine(out, v, mat) { + _x = v.x; + _y = v.y; + _z = v.z; + _w = v.w; + var m = mat.m; + out.x = m[0] * _x + m[1] * _y + m[2] * _z + m[3] * _w; + out.y = m[4] * _x + m[5] * _y + m[6] * _z + m[7] * _w; + out.x = m[8] * _x + m[9] * _y + m[10] * _z + m[11] * _w; + out.w = v.w; + return out; + }; + Vec4.transformQuat = function transformQuat(out, a, q) { + var x = a.x, y = a.y, z = a.z; + _x = q.x; + _y = q.y; + _z = q.z; + _w = q.w; + var ix = _w * x + _y * z - _z * y; + var iy = _w * y + _z * x - _x * z; + var iz = _w * z + _x * y - _y * x; + var iw = -_x * x - _y * y - _z * z; + out.x = ix * _w + iw * -_x + iy * -_z - iz * -_y; + out.y = iy * _w + iw * -_y + iz * -_x - ix * -_z; + out.z = iz * _w + iw * -_z + ix * -_y - iy * -_x; + out.w = a.w; + return out; + }; + Vec4.strictEquals = function strictEquals(a, b) { + return a.x === b.x && a.y === b.y && a.z === b.z && a.w === b.w; + }; + Vec4.equals = function equals(a, b, epsilon) { + void 0 === epsilon && (epsilon = _utils.EPSILON); + return Math.abs(a.x - b.x) <= epsilon * Math.max(1, Math.abs(a.x), Math.abs(b.x)) && Math.abs(a.y - b.y) <= epsilon * Math.max(1, Math.abs(a.y), Math.abs(b.y)) && Math.abs(a.z - b.z) <= epsilon * Math.max(1, Math.abs(a.z), Math.abs(b.z)) && Math.abs(a.w - b.w) <= epsilon * Math.max(1, Math.abs(a.w), Math.abs(b.w)); + }; + Vec4.toArray = function toArray(out, v, ofs) { + void 0 === ofs && (ofs = 0); + out[ofs + 0] = v.x; + out[ofs + 1] = v.y; + out[ofs + 2] = v.z; + out[ofs + 3] = v.w; + return out; + }; + Vec4.fromArray = function fromArray(out, arr, ofs) { + void 0 === ofs && (ofs = 0); + out.x = arr[ofs + 0]; + out.y = arr[ofs + 1]; + out.z = arr[ofs + 2]; + out.w = arr[ofs + 3]; + return out; + }; + function Vec4(x, y, z, w) { + var _this; + void 0 === x && (x = 0); + void 0 === y && (y = 0); + void 0 === z && (z = 0); + void 0 === w && (w = 0); + _this = _ValueType.call(this) || this; + _this.mag = Vec4.prototype.len; + _this.magSqr = Vec4.prototype.lengthSqr; + _this.subSelf = Vec4.prototype.subtract; + _this.mulSelf = Vec4.prototype.multiplyScalar; + _this.divSelf = Vec4.prototype.divide; + _this.scaleSelf = Vec4.prototype.multiply; + _this.negSelf = Vec4.prototype.negate; + _this.x = void 0; + _this.y = void 0; + _this.z = void 0; + _this.w = void 0; + if (x && "object" === typeof x) { + _this.x = x.x; + _this.y = x.y; + _this.z = x.z; + _this.w = x.w; + } else { + _this.x = x; + _this.y = y; + _this.z = z; + _this.w = w; + } + return _this; + } + _proto.clone = function clone() { + return new Vec4(this.x, this.y, this.z, this.w); + }; + _proto.set = function set(x, y, z, w) { + if (x && "object" === typeof x) { + this.x = x.x; + this.y = x.y; + this.z = x.z; + this.w = x.w; + } else { + this.x = x || 0; + this.y = y || 0; + this.z = z || 0; + this.w = w || 0; + } + return this; + }; + _proto.equals = function equals(other, epsilon) { + void 0 === epsilon && (epsilon = _utils.EPSILON); + return Math.abs(this.x - other.x) <= epsilon * Math.max(1, Math.abs(this.x), Math.abs(other.x)) && Math.abs(this.y - other.y) <= epsilon * Math.max(1, Math.abs(this.y), Math.abs(other.y)) && Math.abs(this.z - other.z) <= epsilon * Math.max(1, Math.abs(this.z), Math.abs(other.z)) && Math.abs(this.w - other.w) <= epsilon * Math.max(1, Math.abs(this.w), Math.abs(other.w)); + }; + _proto.equals4f = function equals4f(x, y, z, w, epsilon) { + void 0 === epsilon && (epsilon = _utils.EPSILON); + return Math.abs(this.x - x) <= epsilon * Math.max(1, Math.abs(this.x), Math.abs(x)) && Math.abs(this.y - y) <= epsilon * Math.max(1, Math.abs(this.y), Math.abs(y)) && Math.abs(this.z - z) <= epsilon * Math.max(1, Math.abs(this.z), Math.abs(z)) && Math.abs(this.w - w) <= epsilon * Math.max(1, Math.abs(this.w), Math.abs(w)); + }; + _proto.strictEquals = function strictEquals(other) { + return this.x === other.x && this.y === other.y && this.z === other.z && this.w === other.w; + }; + _proto.strictEquals4f = function strictEquals4f(x, y, z, w) { + return this.x === x && this.y === y && this.z === z && this.w === w; + }; + _proto.lerp = function lerp(to, ratio) { + _x = this.x; + _y = this.y; + _z = this.z; + _w = this.w; + this.x = _x + ratio * (to.x - _x); + this.y = _y + ratio * (to.y - _y); + this.z = _z + ratio * (to.z - _z); + this.w = _w + ratio * (to.w - _w); + return this; + }; + _proto.toString = function toString() { + return "(" + this.x.toFixed(2) + ", " + this.y.toFixed(2) + ", " + this.z.toFixed(2) + ", " + this.w.toFixed(2) + ")"; + }; + _proto.clampf = function clampf(minInclusive, maxInclusive) { + this.x = (0, _utils.clamp)(this.x, minInclusive.x, maxInclusive.x); + this.y = (0, _utils.clamp)(this.y, minInclusive.y, maxInclusive.y); + this.z = (0, _utils.clamp)(this.z, minInclusive.z, maxInclusive.z); + this.w = (0, _utils.clamp)(this.w, minInclusive.w, maxInclusive.w); + return this; + }; + _proto.addSelf = function addSelf(vector) { + this.x += vector.x; + this.y += vector.y; + this.z += vector.z; + this.w += vector.w; + return this; + }; + _proto.add = function add(vector, out) { + out = out || new Vec4(); + out.x = this.x + vector.x; + out.y = this.y + vector.y; + out.z = this.z + vector.z; + out.w = this.w + vector.w; + return out; + }; + _proto.subtract = function subtract(vector, out) { + out = out || new Vec4(); + out.x = this.x - vector.x; + out.y = this.y - vector.y; + out.z = this.z - vector.z; + out.w = this.w - vector.w; + return out; + }; + _proto.multiplyScalar = function multiplyScalar(num) { + this.x *= num; + this.y *= num; + this.z *= num; + this.w *= num; + return this; + }; + _proto.multiply = function multiply(vector) { + this.x *= vector.x; + this.y *= vector.y; + this.z *= vector.z; + this.w *= vector.w; + return this; + }; + _proto.divide = function divide(num) { + this.x /= num; + this.y /= num; + this.z /= num; + this.w /= num; + return this; + }; + _proto.negate = function negate() { + this.x = -this.x; + this.y = -this.y; + this.z = -this.z; + this.w = -this.w; + return this; + }; + _proto.dot = function dot(vector) { + return this.x * vector.x + this.y * vector.y + this.z * vector.z + this.w * vector.w; + }; + _proto.cross = function cross(vector, out) { + out = out || new Vec4(); + var ax = this.x, ay = this.y, az = this.z; + var bx = vector.x, by = vector.y, bz = vector.z; + out.x = ay * bz - az * by; + out.y = az * bx - ax * bz; + out.z = ax * by - ay * bx; + return out; + }; + _proto.len = function len() { + var x = this.x, y = this.y, z = this.z, w = this.w; + return Math.sqrt(x * x + y * y + z * z + w * w); + }; + _proto.lengthSqr = function lengthSqr() { + var x = this.x, y = this.y, z = this.z, w = this.w; + return x * x + y * y + z * z + w * w; + }; + _proto.normalizeSelf = function normalizeSelf() { + this.normalize(this); + return this; + }; + _proto.normalize = function normalize(out) { + out = out || new Vec4(); + _x = this.x; + _y = this.y; + _z = this.z; + _w = this.w; + var len = _x * _x + _y * _y + _z * _z + _w * _w; + if (len > 0) { + len = 1 / Math.sqrt(len); + out.x = _x * len; + out.y = _y * len; + out.z = _z * len; + out.w = _w * len; + } + return out; + }; + _proto.transformMat4 = function transformMat4(matrix, out) { + out = out || new Vec4(); + _x = this.x; + _y = this.y; + _z = this.z; + _w = this.w; + var m = matrix.m; + out.x = m[0] * _x + m[4] * _y + m[8] * _z + m[12] * _w; + out.y = m[1] * _x + m[5] * _y + m[9] * _z + m[13] * _w; + out.z = m[2] * _x + m[6] * _y + m[10] * _z + m[14] * _w; + out.w = m[3] * _x + m[7] * _y + m[11] * _z + m[15] * _w; + return out; + }; + _proto.maxAxis = function maxAxis() { + return Math.max(this.x, this.y, this.z, this.w); + }; + _createClass(Vec4, null, [ { + key: "ZERO", + get: function get() { + return new Vec4(0, 0, 0, 0); + } + }, { + key: "ONE", + get: function get() { + return new Vec4(1, 1, 1, 1); + } + }, { + key: "NEG_ONE", + get: function get() { + return new Vec4(-1, -1, -1, -1); + } + } ]); + return Vec4; + })(_valueType["default"]); + exports["default"] = Vec4; + Vec4.sub = Vec4.subtract; + Vec4.mul = Vec4.multiply; + Vec4.div = Vec4.divide; + Vec4.scale = Vec4.multiplyScalar; + Vec4.mag = Vec4.len; + Vec4.squaredMagnitude = Vec4.lengthSqr; + Vec4.ZERO_R = Vec4.ZERO; + Vec4.ONE_R = Vec4.ONE; + Vec4.NEG_ONE_R = Vec4.NEG_ONE; + _CCClass["default"].fastDefine("cc.Vec4", Vec4, { + x: 0, + y: 0, + z: 0, + w: 0 + }); + function v4(x, y, z, w) { + return new Vec4(x, y, z, w); + } + cc.v4 = v4; + cc.Vec4 = Vec4; + }), { + "../platform/CCClass": 121, + "./utils": 227, + "./value-type": 228 + } ], + 232: [ (function(require, module, exports) { + "use strict"; + var js = cc.js; + true; + var deprecateEnum = function deprecateEnum(obj, oldPath, newPath, hasTypePrefixBefore) { + false; + hasTypePrefixBefore = false !== hasTypePrefixBefore; + var enumDef = Function("return " + newPath)(); + var entries = cc.Enum.getList(enumDef); + var delimiter = hasTypePrefixBefore ? "_" : "."; + for (var i = 0; i < entries.length; i++) { + var entry = entries[i].name; + var oldPropName; + if (hasTypePrefixBefore) { + var oldTypeName = oldPath.split(".").slice(-1)[0]; + oldPropName = oldTypeName + "_" + entry; + } else oldPropName = entry; + js.get(obj, oldPropName, function(entry) { + cc.errorID(1400, oldPath + delimiter + entry, newPath + "." + entry); + return enumDef[entry]; + }.bind(null, entry)); + } + }; + var markAsRemoved = function markAsRemoved(ownerCtor, removedProps, ownerName) { + if (!ownerCtor) return; + ownerName = ownerName || js.getClassName(ownerCtor); + removedProps.forEach((function(prop) { + function error() { + cc.errorID(1406, ownerName, prop); + } + js.getset(ownerCtor.prototype, prop, error, error); + })); + }; + var markAsDeprecated = function markAsDeprecated(ownerCtor, deprecatedProps, ownerName) { + if (!ownerCtor) return; + ownerName = ownerName || js.getClassName(ownerCtor); + var descriptors = Object.getOwnPropertyDescriptors(ownerCtor.prototype); + deprecatedProps.forEach((function(prop) { + var deprecatedProp = prop[0]; + var newProp = prop[1]; + var descriptor = descriptors[deprecatedProp]; + js.getset(ownerCtor.prototype, deprecatedProp, (function() { + cc.warnID(1400, ownerName + "." + deprecatedProp, ownerName + "." + newProp); + return descriptor.get.call(this); + }), (function(v) { + cc.warnID(1400, ownerName + "." + deprecatedProp, ownerName + "." + newProp); + descriptor.set.call(this, v); + })); + })); + }; + var markAsRemovedInObject = function markAsRemovedInObject(ownerObj, removedProps, ownerName) { + if (!ownerObj) return; + removedProps.forEach((function(prop) { + function error() { + cc.errorID(1406, ownerName, prop); + } + js.getset(ownerObj, prop, error); + })); + }; + var provideClearError = function provideClearError(owner, obj, ownerName) { + if (!owner) return; + var className = ownerName || cc.js.getClassName(owner); + var Info = "Sorry, " + className + ".%s is removed, please use %s instead."; + var _loop = function _loop() { + function define(prop, getset) { + function accessor(newProp) { + cc.error(Info, prop, newProp); + } + Array.isArray(getset) || (getset = getset.split(",").map((function(x) { + return x.trim(); + }))); + try { + js.getset(owner, prop, accessor.bind(null, getset[0]), getset[1] && accessor.bind(null, getset[1])); + } catch (e) {} + } + getset = obj[prop]; + if ("*" === prop[0]) { + etProp = prop.slice(1); + define("g" + etProp, getset); + define("s" + etProp, getset); + } else prop.split(",").map((function(x) { + return x.trim(); + })).forEach((function(x) { + define(x, getset); + })); + }; + for (var prop in obj) { + var getset; + var etProp; + _loop(); + } + }; + var markFunctionWarning = function markFunctionWarning(ownerCtor, obj, ownerName) { + if (!ownerCtor) return; + ownerName = ownerName || js.getClassName(ownerCtor); + for (var prop in obj) (function() { + var propName = prop; + var originFunc = ownerCtor[propName]; + if (!originFunc) return; + function warn() { + cc.warn("Sorry, %s.%s is deprecated. Please use %s instead", ownerName, propName, obj[propName]); + return originFunc.apply(this, arguments); + } + ownerCtor[propName] = warn; + })(); + }; + js.get(cc, "info", (function() { + cc.errorID(1400, "cc.info", "cc.log"); + return cc.log; + })); + js.get(cc, "spriteFrameCache", (function() { + cc.errorID(1404); + })); + js.get(cc, "vmath", (function() { + cc.warnID(1400, "cc.vmath", "cc.math"); + return cc.math; + })); + js.get(cc.math, "vec2", (function() { + cc.warnID(1400, "cc.vmath.vec2", "cc.Vec2"); + return cc.Vec2; + })); + js.get(cc.math, "vec3", (function() { + cc.warnID(1400, "cc.vmath.vec3", "cc.Vec3"); + return cc.Vec3; + })); + js.get(cc.math, "vec4", (function() { + cc.warnID(1400, "cc.vmath.vec4", "cc.Vec4"); + return cc.Vec4; + })); + js.get(cc.math, "mat4", (function() { + cc.warnID(1400, "cc.vmath.mat4", "cc.Mat4"); + return cc.Mat4; + })); + js.get(cc.math, "mat3", (function() { + cc.warnID(1400, "cc.vmath.mat3", "cc.Mat3"); + return cc.Mat3; + })); + js.get(cc.math, "quat", (function() { + cc.warnID(1400, "cc.vmath.quat", "cc.Quat"); + return cc.Quat; + })); + js.get(cc.SpriteFrame.prototype, "_textureLoaded", (function() { + cc.errorID(1400, "spriteFrame._textureLoaded", "spriteFrame.textureLoaded()"); + return this.textureLoaded(); + })); + markAsRemoved(cc.SpriteFrame, [ "addLoadedEventListener" ]); + markFunctionWarning(cc.Sprite.prototype, { + setState: "cc.Sprite.setMaterial", + getState: "cc.Sprite.getMaterial" + }, "cc.Sprite"); + js.get(cc.SpriteFrame.prototype, "clearTexture", (function() { + cc.errorID(1406, "cc.SpriteFrame", "clearTexture"); + return function() {}; + })); + js.get(cc, "textureCache", (function() { + cc.errorID(1406, "cc", "textureCache"); + })); + var Texture2D = cc.Texture2D; + js.get(Texture2D.prototype, "releaseTexture", (function() { + cc.errorID(1400, "texture.releaseTexture()", "texture.destroy()"); + return this.destroy; + })); + js.get(Texture2D.prototype, "getName", (function() { + cc.errorID(1400, "texture.getName()", "texture._glID"); + return function() { + return this._glID || null; + }; + })); + js.get(Texture2D.prototype, "isLoaded", (function() { + cc.errorID(1400, "texture.isLoaded function", "texture.loaded property"); + return function() { + return this.loaded; + }; + })); + js.get(Texture2D.prototype, "setAntiAliasTexParameters", (function() { + cc.errorID(1400, "texture.setAntiAliasTexParameters()", "texture.setFilters(cc.Texture2D.Filter.LINEAR, cc.Texture2D.Filter.LINEAR)"); + return function() { + this.setFilters(Texture2D.Filter.LINEAR, Texture2D.Filter.LINEAR); + }; + })); + js.get(Texture2D.prototype, "setAliasTexParameters", (function() { + cc.errorID(1400, "texture.setAntiAliasTexParameters()", "texture.setFilters(cc.Texture2D.Filter.NEAREST, cc.Texture2D.Filter.NEAREST)"); + return function() { + this.setFilters(Texture2D.Filter.NEAREST, Texture2D.Filter.NEAREST); + }; + })); + markAsRemovedInObject(cc.macro, [ "ENABLE_GL_STATE_CACHE", "FIX_ARTIFACTS_BY_STRECHING_TEXEL" ], "cc.macro"); + provideClearError(cc.macro, { + PI: "Math.PI", + PI2: "Math.PI * 2", + FLT_MAX: "Number.MAX_VALUE", + FLT_MIN: "Number.MIN_VALUE", + UINT_MAX: "Number.MAX_SAFE_INTEGER" + }, "cc.macro"); + markAsRemovedInObject(cc.game, [ "CONFIG_KEY" ], "cc.game"); + markAsRemovedInObject(cc.sys, [ "dumpRoot", "cleanScript", "BROWSER_TYPE_WECHAT_GAME", "BROWSER_TYPE_WECHAT_GAME_SUB", "BROWSER_TYPE_BAIDU_GAME", "BROWSER_TYPE_BAIDU_GAME_SUB", "BROWSER_TYPE_XIAOMI_GAME", "BROWSER_TYPE_ALIPAY_GAME" ], "cc.sys"); + provideClearError(cc.Director, { + EVENT_PROJECTION_CHANGED: "", + EVENT_BEFORE_VISIT: "EVENT_AFTER_UPDATE", + EVENT_AFTER_VISIT: "EVENT_BEFORE_DRAW" + }, "cc.Director"); + markFunctionWarning(cc.Director.prototype, { + convertToGL: "cc.view.convertToLocationInView", + convertToUI: "", + getWinSize: "cc.winSize", + getWinSizeInPixels: "cc.winSize", + getVisibleSize: "cc.view.getVisibleSize", + getVisibleOrigin: "cc.view.getVisibleOrigin", + purgeCachedData: "cc.assetManager.releaseAll", + setDepthTest: "cc.Camera.main.depth", + setClearColor: "cc.Camera.main.backgroundColor", + getRunningScene: "cc.director.getScene", + getAnimationInterval: "cc.game.getFrameRate", + setAnimationInterval: "cc.game.setFrameRate", + isDisplayStats: "cc.debug.isDisplayStats", + setDisplayStats: "cc.debug.setDisplayStats", + stopAnimation: "cc.game.pause", + startAnimation: "cc.game.resume" + }, "cc.Director"); + markAsRemoved(cc.Director, [ "pushScene", "popScene", "popToRootScene", "popToSceneStackLevel", "setProjection", "getProjection" ], "cc.Director"); + provideClearError(cc.Scheduler, { + scheduleCallbackForTarget: "schedule", + scheduleUpdateForTarget: "scheduleUpdate", + unscheduleCallbackForTarget: "unschedule", + unscheduleUpdateForTarget: "unscheduleUpdate", + unscheduleAllCallbacksForTarget: "unscheduleAllForTarget", + unscheduleAllCallbacks: "unscheduleAll", + unscheduleAllCallbacksWithMinPriority: "unscheduleAllWithMinPriority" + }, "cc.Scheduler"); + provideClearError(cc.view, { + adjustViewPort: "adjustViewportMeta", + setViewPortInPoints: "setViewportInPoints", + getViewPortRect: "getViewportRect" + }, "cc.view"); + markAsRemovedInObject(cc.view, [ "isViewReady", "setTargetDensityDPI", "getTargetDensityDPI", "setFrameZoomFactor", "canSetContentScaleFactor", "setContentTranslateLeftTop", "getContentTranslateLeftTop", "setViewName", "getViewName" ], "cc.view"); + markAsRemoved(cc.PhysicsManager, [ "attachDebugDrawToCamera", "detachDebugDrawFromCamera" ]); + markAsRemoved(cc.CollisionManager, [ "attachDebugDrawToCamera", "detachDebugDrawFromCamera" ]); + provideClearError(cc._BaseNode.prototype, { + tag: "name", + getTag: "name", + setTag: "name", + getChildByTag: "getChildByName", + removeChildByTag: "getChildByName(name).destroy()" + }); + markAsRemoved(cc.Node, [ "_cascadeColorEnabled", "cascadeColor", "isCascadeColorEnabled", "setCascadeColorEnabled", "_cascadeOpacityEnabled", "cascadeOpacity", "isCascadeOpacityEnabled", "setCascadeOpacityEnabled", "opacityModifyRGB", "isOpacityModifyRGB", "setOpacityModifyRGB", "ignoreAnchor", "isIgnoreAnchorPointForPosition", "ignoreAnchorPointForPosition", "isRunning", "_sgNode" ]); + markFunctionWarning(cc.Node.prototype, { + getNodeToParentTransform: "getLocalMatrix", + getNodeToParentTransformAR: "getLocalMatrix", + getNodeToWorldTransform: "getWorldMatrix", + getNodeToWorldTransformAR: "getWorldMatrix", + getParentToNodeTransform: "getLocalMatrix", + getWorldToNodeTransform: "getWorldMatrix", + convertTouchToNodeSpace: "convertToNodeSpaceAR", + convertTouchToNodeSpaceAR: "convertToNodeSpaceAR", + convertToWorldSpace: "convertToWorldSpaceAR", + convertToNodeSpace: "convertToNodeSpaceAR" + }); + provideClearError(cc.Node.prototype, { + getRotationX: "rotationX", + setRotationX: "rotationX", + getRotationY: "rotationY", + setRotationY: "rotationY", + getPositionX: "x", + setPositionX: "x", + getPositionY: "y", + setPositionY: "y", + getSkewX: "skewX", + setSkewX: "skewX", + getSkewY: "skewY", + setSkewY: "skewY", + getScaleX: "scaleX", + setScaleX: "scaleX", + getScaleY: "scaleY", + setScaleY: "scaleY", + getOpacity: "opacity", + setOpacity: "opacity", + getColor: "color", + setColor: "color", + getLocalZOrder: "zIndex", + setLocalZOrder: "zIndex" + }); + provideClearError(cc.Sprite.prototype, { + setInsetLeft: "cc.SpriteFrame insetLeft", + setInsetRight: "cc.SpriteFrame insetRight", + setInsetTop: "cc.SpriteFrame insetTop", + setInsetBottom: "cc.SpriteFrame insetBottom" + }); + cc.Material.getInstantiatedBuiltinMaterial = cc.MaterialVariant.createWithBuiltin; + cc.Material.getInstantiatedMaterial = cc.MaterialVariant.create; + markFunctionWarning(cc.Material, { + getInstantiatedBuiltinMaterial: "cc.MaterialVariant.createWithBuiltin", + getInstantiatedMaterial: "cc.MaterialVariant.create" + }); + cc.js.getset(cc.RenderComponent.prototype, "sharedMaterials", (function() { + cc.warnID(1400, "sharedMaterials", "getMaterials"); + return this.materials; + }), (function(v) { + cc.warnID(1400, "sharedMaterials", "setMaterial"); + this.materials = v; + })); + markFunctionWarning(cc.Camera.prototype, { + getNodeToCameraTransform: "getWorldToScreenMatrix2D", + getCameraToWorldPoint: "getScreenToWorldPoint", + getWorldToCameraPoint: "getWorldToScreenPoint", + getCameraToWorldMatrix: "getScreenToWorldMatrix2D", + getWorldToCameraMatrix: "getWorldToScreenMatrix2D" + }); + markAsRemoved(cc.Camera, [ "addTarget", "removeTarget", "getTargets" ]); + var ERR = '"%s" is not defined in the Scene, it is only defined in normal nodes.'; + false, Object.defineProperties(cc.Scene.prototype, { + active: { + get: function get() { + cc.error(ERR, "active"); + return true; + }, + set: function set() { + cc.error(ERR, "active"); + } + }, + activeInHierarchy: { + get: function get() { + cc.error(ERR, "activeInHierarchy"); + return true; + } + }, + getComponent: { + get: function get() { + cc.error(ERR, "getComponent"); + return function() { + return null; + }; + } + }, + addComponent: { + get: function get() { + cc.error(ERR, "addComponent"); + return function() { + return null; + }; + } + } + }); + markAsRemovedInObject(cc.dynamicAtlasManager, [ "minFrameSize" ], "cc.dynamicAtlasManager"); + cc.Light && markAsRemovedInObject(cc.Light.prototype, [ "shadowDepthScale" ], "cc.Light.prototype"); + provideClearError(cc, { + affineTransformMake: "cc.AffineTransform.create", + affineTransformMakeIdentity: "cc.AffineTransform.identity", + affineTransformClone: "cc.AffineTransform.clone", + affineTransformConcat: "cc.AffineTransform.concat", + affineTransformConcatIn: "cc.AffineTransform.concat", + affineTransformInvert: "cc.AffineTransform.invert", + affineTransformInvertIn: "cc.AffineTransform.invert", + affineTransformInvertOut: "cc.AffineTransform.invert", + affineTransformEqualToTransform: "cc.AffineTransform.equal", + pointApplyAffineTransform: "cc.AffineTransform.transformVec2", + sizeApplyAffineTransform: "cc.AffineTransform.transformSize", + rectApplyAffineTransform: "cc.AffineTransform.transformRect", + obbApplyAffineTransform: "cc.AffineTransform.transformObb", + pointEqualToPoint: "cc.Vec2 equals", + sizeEqualToSize: "cc.Size equals", + rectEqualToRect: "rectA.equals(rectB)", + rectContainsRect: "rectA.containsRect(rectB)", + rectContainsPoint: "rect.contains(vec2)", + rectOverlapsRect: "rectA.intersects(rectB)", + rectIntersectsRect: "rectA.intersects(rectB)", + rectIntersection: "rectA.intersection(intersection, rectB)", + rectUnion: "rectA.union(union, rectB)", + rectGetMaxX: "rect.xMax", + rectGetMidX: "rect.center.x", + rectGetMinX: "rect.xMin", + rectGetMaxY: "rect.yMax", + rectGetMidY: "rect.center.y", + rectGetMinY: "rect.yMin", + colorEqual: "colorA.equals(colorB)", + hexToColor: "color.fromHEX(hexColor)", + colorToHex: "color.toHEX()", + TextAlignment: "cc.macro.TextAlignment", + VerticalTextAlignment: "cc.macro.VerticalTextAlignment", + pNeg: "p.neg()", + pAdd: "p1.add(p2)", + pSub: "p1.sub(p2)", + pMult: "p.mul(factor)", + pMidpoint: "p1.add(p2).mul(0.5)", + pDot: "p1.dot(p2)", + pCross: "p1.cross(p2)", + pPerp: "p.rotate(-90 * Math.PI / 180)", + pRPerp: "p.rotate(90 * Math.PI / 180)", + pProject: "p1.project(p2)", + pLengthSQ: "p.magSqr()", + pDistanceSQ: "p1.sub(p2).magSqr()", + pLength: "p.mag()", + pDistance: "p1.sub(p2).mag()", + pNormalize: "p.normalize()", + pForAngle: "cc.v2(Math.cos(a), Math.sin(a))", + pToAngle: "Math.atan2(v.y, v.x)", + pZeroIn: "p.x = p.y = 0", + pIn: "p1.set(p2)", + pMultIn: "p.mulSelf(factor)", + pSubIn: "p1.subSelf(p2)", + pAddIn: "p1.addSelf(p2)", + pNormalizeIn: "p.normalizeSelf()", + pSameAs: "p1.equals(p2)", + pAngle: "v1.angle(v2)", + pAngleSigned: "v1.signAngle(v2)", + pRotateByAngle: "p.rotate(radians)", + pCompMult: "v1.multiply(v2)", + pFuzzyEqual: "v1.fuzzyEquals(v2, tolerance)", + pLerp: "p.lerp(endPoint, ratio)", + pClamp: "p.clampf(min_inclusive, max_inclusive)", + rand: "Math.random() * 0xffffff", + randomMinus1To1: "(Math.random() - 0.5) * 2", + container: "cc.game.container", + _canvas: "cc.game.canvas", + _renderType: "cc.game.renderType", + _getError: "cc.debug.getError", + _initDebugSetting: "cc.debug._resetDebugSetting", + DebugMode: "cc.debug.DebugMode" + }, "cc"); + markAsRemovedInObject(cc, [ "blendFuncDisable", "pFromSize", "pCompOp", "pIntersectPoint", "pSegmentIntersect", "pLineIntersect", "obbApplyMatrix", "getImageFormatByData", "initEngine" ], "cc"); + markFunctionWarning(cc, { + p: "cc.v2" + }, "cc"); + provideClearError(cc.Rect, { + contain: "rectA.contains(rectB)", + transformMat4: "rect.transformMat4(out, mat4)" + }); + provideClearError(cc.Color, { + rgb2hsv: "color.toHSV()", + hsv2rgb: "color.fromHSV(h, s, v)" + }); + markFunctionWarning(cc.Color, { + fromHex: "cc.Color.fromHEX" + }); + js.get(cc, "lerp", (function() { + cc.errorID(1400, "cc.lerp", "cc.misc.lerp"); + return cc.misc.lerp; + })); + js.get(cc, "random0To1", (function() { + cc.errorID(1400, "cc.random0To1", "Math.random"); + return Math.random; + })); + js.get(cc, "degreesToRadians", (function() { + cc.errorID(1400, "cc.degreesToRadians", "cc.misc.degreesToRadians"); + return cc.misc.degreesToRadians; + })); + js.get(cc, "radiansToDegrees", (function() { + cc.errorID(1400, "cc.radiansToDegrees", "cc.misc.radiansToDegrees"); + return cc.misc.radiansToDegrees; + })); + js.get(cc, "clampf", (function() { + cc.errorID(1400, "cc.clampf", "cc.misc.clampf"); + return cc.misc.clampf; + })); + js.get(cc, "clamp01", (function() { + cc.errorID(1400, "cc.clamp01", "cc.misc.clamp01"); + return cc.misc.clamp01; + })); + js.get(cc, "ImageFormat", (function() { + cc.errorID(1400, "cc.ImageFormat", "cc.macro.ImageFormat"); + return cc.macro.ImageFormat; + })); + js.get(cc, "KEY", (function() { + cc.errorID(1400, "cc.KEY", "cc.macro.KEY"); + return cc.macro.KEY; + })); + js.get(cc, "Easing", (function() { + cc.errorID(1400, "cc.Easing", "cc.easing"); + return cc.easing; + })); + js.get(cc, "isChildClassOf", (function() { + cc.errorID(1400, "cc.isChildClassOf", "cc.js.isChildClassOf"); + return cc.js.isChildClassOf; + })); + "undefined" !== typeof dragonBones && js.get(dragonBones.CCFactory, "getFactory", (function() { + cc.errorID(1400, "dragonBones.CCFactory.getFactory", "dragonBones.CCFactory.getInstance"); + return dragonBones.CCFactory.getInstance; + })); + cc.renderer.renderEngine = { + get gfx() { + cc.warnID(1400, "cc.renderer.renderEngine.gfx", "cc.gfx"); + return cc.gfx; + }, + get math() { + cc.warnID(1400, "cc.renderer.renderEngine.math", "cc.math"); + return cc.vmath; + }, + get InputAssembler() { + cc.warnID(1400, "cc.renderer.renderEngine.InputAssembler", "cc.renderer.InputAssembler"); + return cc.renderer.InputAssembler; + } + }; + markAsRemovedInObject(cc.audioEngine, [ "getProfile", "preload", "setMaxWebAudioSize" ], "cc.audioEngine"); + }), {} ], + 233: [ (function(require, module, exports) { + "use strict"; + require("./core/CCGame"); + require("./actions"); + }), { + "./actions": 8, + "./core/CCGame": 23 + } ], + 234: [ (function(require, module, exports) { + "use strict"; + var Asset = require("../core/assets/CCAsset"); + var CCSpriteFrame = require("../core/assets/CCSpriteFrame"); + var ParticleAsset = cc.Class({ + name: "cc.ParticleAsset", + extends: Asset, + properties: { + spriteFrame: { + default: null, + type: CCSpriteFrame + } + } + }); + cc.ParticleAsset = module.exports = ParticleAsset; + }), { + "../core/assets/CCAsset": 57, + "../core/assets/CCSpriteFrame": 69 + } ], + 235: [ (function(require, module, exports) { + "use strict"; + var enums = { + USAGE_STATIC: 35044, + USAGE_DYNAMIC: 35048, + USAGE_STREAM: 35040, + INDEX_FMT_UINT8: 5121, + INDEX_FMT_UINT16: 5123, + INDEX_FMT_UINT32: 5125, + ATTR_POSITION: "a_position", + ATTR_NORMAL: "a_normal", + ATTR_TANGENT: "a_tangent", + ATTR_BITANGENT: "a_bitangent", + ATTR_WEIGHTS: "a_weights", + ATTR_JOINTS: "a_joints", + ATTR_COLOR: "a_color", + ATTR_COLOR0: "a_color0", + ATTR_COLOR1: "a_color1", + ATTR_UV: "a_uv", + ATTR_UV0: "a_uv0", + ATTR_UV1: "a_uv1", + ATTR_UV2: "a_uv2", + ATTR_UV3: "a_uv3", + ATTR_UV4: "a_uv4", + ATTR_UV5: "a_uv5", + ATTR_UV6: "a_uv6", + ATTR_UV7: "a_uv7", + ATTR_TYPE_INT8: 5120, + ATTR_TYPE_UINT8: 5121, + ATTR_TYPE_INT16: 5122, + ATTR_TYPE_UINT16: 5123, + ATTR_TYPE_INT32: 5124, + ATTR_TYPE_UINT32: 5125, + ATTR_TYPE_FLOAT32: 5126, + FILTER_NEAREST: 0, + FILTER_LINEAR: 1, + WRAP_REPEAT: 10497, + WRAP_CLAMP: 33071, + WRAP_MIRROR: 33648, + TEXTURE_FMT_RGB_DXT1: 0, + TEXTURE_FMT_RGBA_DXT1: 1, + TEXTURE_FMT_RGBA_DXT3: 2, + TEXTURE_FMT_RGBA_DXT5: 3, + TEXTURE_FMT_RGB_ETC1: 4, + TEXTURE_FMT_RGB_PVRTC_2BPPV1: 5, + TEXTURE_FMT_RGBA_PVRTC_2BPPV1: 6, + TEXTURE_FMT_RGB_PVRTC_4BPPV1: 7, + TEXTURE_FMT_RGBA_PVRTC_4BPPV1: 8, + TEXTURE_FMT_A8: 9, + TEXTURE_FMT_L8: 10, + TEXTURE_FMT_L8_A8: 11, + TEXTURE_FMT_R5_G6_B5: 12, + TEXTURE_FMT_R5_G5_B5_A1: 13, + TEXTURE_FMT_R4_G4_B4_A4: 14, + TEXTURE_FMT_RGB8: 15, + TEXTURE_FMT_RGBA8: 16, + TEXTURE_FMT_RGB16F: 17, + TEXTURE_FMT_RGBA16F: 18, + TEXTURE_FMT_RGB32F: 19, + TEXTURE_FMT_RGBA32F: 20, + TEXTURE_FMT_R32F: 21, + TEXTURE_FMT_111110F: 22, + TEXTURE_FMT_SRGB: 23, + TEXTURE_FMT_SRGBA: 24, + TEXTURE_FMT_D16: 25, + TEXTURE_FMT_D32: 26, + TEXTURE_FMT_D24S8: 27, + TEXTURE_FMT_RGB_ETC2: 28, + TEXTURE_FMT_RGBA_ETC2: 29, + DS_FUNC_NEVER: 512, + DS_FUNC_LESS: 513, + DS_FUNC_EQUAL: 514, + DS_FUNC_LEQUAL: 515, + DS_FUNC_GREATER: 516, + DS_FUNC_NOTEQUAL: 517, + DS_FUNC_GEQUAL: 518, + DS_FUNC_ALWAYS: 519, + RB_FMT_RGBA4: 32854, + RB_FMT_RGB5_A1: 32855, + RB_FMT_RGB565: 36194, + RB_FMT_D16: 33189, + RB_FMT_S8: 36168, + RB_FMT_D24S8: 34041, + BLEND_FUNC_ADD: 32774, + BLEND_FUNC_SUBTRACT: 32778, + BLEND_FUNC_REVERSE_SUBTRACT: 32779, + BLEND_ZERO: 0, + BLEND_ONE: 1, + BLEND_SRC_COLOR: 768, + BLEND_ONE_MINUS_SRC_COLOR: 769, + BLEND_DST_COLOR: 774, + BLEND_ONE_MINUS_DST_COLOR: 775, + BLEND_SRC_ALPHA: 770, + BLEND_ONE_MINUS_SRC_ALPHA: 771, + BLEND_DST_ALPHA: 772, + BLEND_ONE_MINUS_DST_ALPHA: 773, + BLEND_CONSTANT_COLOR: 32769, + BLEND_ONE_MINUS_CONSTANT_COLOR: 32770, + BLEND_CONSTANT_ALPHA: 32771, + BLEND_ONE_MINUS_CONSTANT_ALPHA: 32772, + BLEND_SRC_ALPHA_SATURATE: 776, + STENCIL_DISABLE: 0, + STENCIL_ENABLE: 1, + STENCIL_INHERIT: 2, + STENCIL_OP_KEEP: 7680, + STENCIL_OP_ZERO: 0, + STENCIL_OP_REPLACE: 7681, + STENCIL_OP_INCR: 7682, + STENCIL_OP_INCR_WRAP: 34055, + STENCIL_OP_DECR: 7683, + STENCIL_OP_DECR_WRAP: 34056, + STENCIL_OP_INVERT: 5386, + CULL_NONE: 0, + CULL_FRONT: 1028, + CULL_BACK: 1029, + CULL_FRONT_AND_BACK: 1032, + PT_POINTS: 0, + PT_LINES: 1, + PT_LINE_LOOP: 2, + PT_LINE_STRIP: 3, + PT_TRIANGLES: 4, + PT_TRIANGLE_STRIP: 5, + PT_TRIANGLE_FAN: 6 + }; + var RenderQueue = { + OPAQUE: 0, + TRANSPARENT: 1, + OVERLAY: 2 + }; + function murmurhash2_32_gc(str, seed) { + var l = str.length, h = seed ^ l, i = 0, k; + while (l >= 4) { + k = 255 & str.charCodeAt(i) | (255 & str.charCodeAt(++i)) << 8 | (255 & str.charCodeAt(++i)) << 16 | (255 & str.charCodeAt(++i)) << 24; + k = 1540483477 * (65535 & k) + ((1540483477 * (k >>> 16) & 65535) << 16); + k ^= k >>> 24; + k = 1540483477 * (65535 & k) + ((1540483477 * (k >>> 16) & 65535) << 16); + h = 1540483477 * (65535 & h) + ((1540483477 * (h >>> 16) & 65535) << 16) ^ k; + l -= 4; + ++i; + } + switch (l) { + case 3: + h ^= (255 & str.charCodeAt(i + 2)) << 16; + + case 2: + h ^= (255 & str.charCodeAt(i + 1)) << 8; + + case 1: + h ^= 255 & str.charCodeAt(i); + h = 1540483477 * (65535 & h) + ((1540483477 * (h >>> 16) & 65535) << 16); + } + h ^= h >>> 13; + h = 1540483477 * (65535 & h) + ((1540483477 * (h >>> 16) & 65535) << 16); + h ^= h >>> 15; + return h >>> 0; + } + var WebGLEXT; + (function(WebGLEXT) { + WebGLEXT[WebGLEXT["COMPRESSED_RGB_S3TC_DXT1_EXT"] = 33776] = "COMPRESSED_RGB_S3TC_DXT1_EXT"; + WebGLEXT[WebGLEXT["COMPRESSED_RGBA_S3TC_DXT1_EXT"] = 33777] = "COMPRESSED_RGBA_S3TC_DXT1_EXT"; + WebGLEXT[WebGLEXT["COMPRESSED_RGBA_S3TC_DXT3_EXT"] = 33778] = "COMPRESSED_RGBA_S3TC_DXT3_EXT"; + WebGLEXT[WebGLEXT["COMPRESSED_RGBA_S3TC_DXT5_EXT"] = 33779] = "COMPRESSED_RGBA_S3TC_DXT5_EXT"; + WebGLEXT[WebGLEXT["COMPRESSED_SRGB_S3TC_DXT1_EXT"] = 35916] = "COMPRESSED_SRGB_S3TC_DXT1_EXT"; + WebGLEXT[WebGLEXT["COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT"] = 35917] = "COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT"; + WebGLEXT[WebGLEXT["COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT"] = 35918] = "COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT"; + WebGLEXT[WebGLEXT["COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT"] = 35919] = "COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT"; + WebGLEXT[WebGLEXT["COMPRESSED_RGB_PVRTC_4BPPV1_IMG"] = 35840] = "COMPRESSED_RGB_PVRTC_4BPPV1_IMG"; + WebGLEXT[WebGLEXT["COMPRESSED_RGB_PVRTC_2BPPV1_IMG"] = 35841] = "COMPRESSED_RGB_PVRTC_2BPPV1_IMG"; + WebGLEXT[WebGLEXT["COMPRESSED_RGBA_PVRTC_4BPPV1_IMG"] = 35842] = "COMPRESSED_RGBA_PVRTC_4BPPV1_IMG"; + WebGLEXT[WebGLEXT["COMPRESSED_RGBA_PVRTC_2BPPV1_IMG"] = 35843] = "COMPRESSED_RGBA_PVRTC_2BPPV1_IMG"; + WebGLEXT[WebGLEXT["COMPRESSED_RGB_ETC1_WEBGL"] = 36196] = "COMPRESSED_RGB_ETC1_WEBGL"; + })(WebGLEXT || (WebGLEXT = {})); + var GFXObjectType; + (function(GFXObjectType) { + GFXObjectType[GFXObjectType["UNKNOWN"] = 0] = "UNKNOWN"; + GFXObjectType[GFXObjectType["BUFFER"] = 1] = "BUFFER"; + GFXObjectType[GFXObjectType["TEXTURE"] = 2] = "TEXTURE"; + GFXObjectType[GFXObjectType["TEXTURE_VIEW"] = 3] = "TEXTURE_VIEW"; + GFXObjectType[GFXObjectType["RENDER_PASS"] = 4] = "RENDER_PASS"; + GFXObjectType[GFXObjectType["FRAMEBUFFER"] = 5] = "FRAMEBUFFER"; + GFXObjectType[GFXObjectType["SAMPLER"] = 6] = "SAMPLER"; + GFXObjectType[GFXObjectType["SHADER"] = 7] = "SHADER"; + GFXObjectType[GFXObjectType["PIPELINE_LAYOUT"] = 8] = "PIPELINE_LAYOUT"; + GFXObjectType[GFXObjectType["PIPELINE_STATE"] = 9] = "PIPELINE_STATE"; + GFXObjectType[GFXObjectType["BINDING_LAYOUT"] = 10] = "BINDING_LAYOUT"; + GFXObjectType[GFXObjectType["INPUT_ASSEMBLER"] = 11] = "INPUT_ASSEMBLER"; + GFXObjectType[GFXObjectType["COMMAND_ALLOCATOR"] = 12] = "COMMAND_ALLOCATOR"; + GFXObjectType[GFXObjectType["COMMAND_BUFFER"] = 13] = "COMMAND_BUFFER"; + GFXObjectType[GFXObjectType["QUEUE"] = 14] = "QUEUE"; + GFXObjectType[GFXObjectType["WINDOW"] = 15] = "WINDOW"; + })(GFXObjectType || (GFXObjectType = {})); + var GFXStatus; + (function(GFXStatus) { + GFXStatus[GFXStatus["UNREADY"] = 0] = "UNREADY"; + GFXStatus[GFXStatus["FAILED"] = 1] = "FAILED"; + GFXStatus[GFXStatus["SUCCESS"] = 2] = "SUCCESS"; + })(GFXStatus || (GFXStatus = {})); + var GFXObject = (function() { + function GFXObject(gfxType) { + this._gfxType = GFXObjectType.UNKNOWN; + this._status = GFXStatus.UNREADY; + this._gfxType = gfxType; + } + Object.defineProperty(GFXObject.prototype, "gfxType", { + get: function get() { + return this._gfxType; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(GFXObject.prototype, "status", { + get: function get() { + return this._status; + }, + enumerable: true, + configurable: true + }); + return GFXObject; + })(); + var GFXAttributeName; + (function(GFXAttributeName) { + GFXAttributeName["ATTR_POSITION"] = "a_position"; + GFXAttributeName["ATTR_NORMAL"] = "a_normal"; + GFXAttributeName["ATTR_TANGENT"] = "a_tangent"; + GFXAttributeName["ATTR_BITANGENT"] = "a_bitangent"; + GFXAttributeName["ATTR_WEIGHTS"] = "a_weights"; + GFXAttributeName["ATTR_JOINTS"] = "a_joints"; + GFXAttributeName["ATTR_COLOR"] = "a_color"; + GFXAttributeName["ATTR_COLOR1"] = "a_color1"; + GFXAttributeName["ATTR_COLOR2"] = "a_color2"; + GFXAttributeName["ATTR_TEX_COORD"] = "a_texCoord"; + GFXAttributeName["ATTR_TEX_COORD1"] = "a_texCoord1"; + GFXAttributeName["ATTR_TEX_COORD2"] = "a_texCoord2"; + GFXAttributeName["ATTR_TEX_COORD3"] = "a_texCoord3"; + GFXAttributeName["ATTR_TEX_COORD4"] = "a_texCoord4"; + GFXAttributeName["ATTR_TEX_COORD5"] = "a_texCoord5"; + GFXAttributeName["ATTR_TEX_COORD6"] = "a_texCoord6"; + GFXAttributeName["ATTR_TEX_COORD7"] = "a_texCoord7"; + GFXAttributeName["ATTR_TEX_COORD8"] = "a_texCoord8"; + })(GFXAttributeName || (GFXAttributeName = {})); + var GFXType; + (function(GFXType) { + GFXType[GFXType["UNKNOWN"] = 0] = "UNKNOWN"; + GFXType[GFXType["BOOL"] = 1] = "BOOL"; + GFXType[GFXType["BOOL2"] = 2] = "BOOL2"; + GFXType[GFXType["BOOL3"] = 3] = "BOOL3"; + GFXType[GFXType["BOOL4"] = 4] = "BOOL4"; + GFXType[GFXType["INT"] = 5] = "INT"; + GFXType[GFXType["INT2"] = 6] = "INT2"; + GFXType[GFXType["INT3"] = 7] = "INT3"; + GFXType[GFXType["INT4"] = 8] = "INT4"; + GFXType[GFXType["UINT"] = 9] = "UINT"; + GFXType[GFXType["UINT2"] = 10] = "UINT2"; + GFXType[GFXType["UINT3"] = 11] = "UINT3"; + GFXType[GFXType["UINT4"] = 12] = "UINT4"; + GFXType[GFXType["FLOAT"] = 13] = "FLOAT"; + GFXType[GFXType["FLOAT2"] = 14] = "FLOAT2"; + GFXType[GFXType["FLOAT3"] = 15] = "FLOAT3"; + GFXType[GFXType["FLOAT4"] = 16] = "FLOAT4"; + GFXType[GFXType["COLOR4"] = 17] = "COLOR4"; + GFXType[GFXType["MAT2"] = 18] = "MAT2"; + GFXType[GFXType["MAT2X3"] = 19] = "MAT2X3"; + GFXType[GFXType["MAT2X4"] = 20] = "MAT2X4"; + GFXType[GFXType["MAT3X2"] = 21] = "MAT3X2"; + GFXType[GFXType["MAT3"] = 22] = "MAT3"; + GFXType[GFXType["MAT3X4"] = 23] = "MAT3X4"; + GFXType[GFXType["MAT4X2"] = 24] = "MAT4X2"; + GFXType[GFXType["MAT4X3"] = 25] = "MAT4X3"; + GFXType[GFXType["MAT4"] = 26] = "MAT4"; + GFXType[GFXType["SAMPLER1D"] = 27] = "SAMPLER1D"; + GFXType[GFXType["SAMPLER1D_ARRAY"] = 28] = "SAMPLER1D_ARRAY"; + GFXType[GFXType["SAMPLER2D"] = 29] = "SAMPLER2D"; + GFXType[GFXType["SAMPLER2D_ARRAY"] = 30] = "SAMPLER2D_ARRAY"; + GFXType[GFXType["SAMPLER3D"] = 31] = "SAMPLER3D"; + GFXType[GFXType["SAMPLER_CUBE"] = 32] = "SAMPLER_CUBE"; + GFXType[GFXType["COUNT"] = 33] = "COUNT"; + })(GFXType || (GFXType = {})); + var GFXFormat; + (function(GFXFormat) { + GFXFormat[GFXFormat["UNKNOWN"] = 0] = "UNKNOWN"; + GFXFormat[GFXFormat["A8"] = 1] = "A8"; + GFXFormat[GFXFormat["L8"] = 2] = "L8"; + GFXFormat[GFXFormat["LA8"] = 3] = "LA8"; + GFXFormat[GFXFormat["R8"] = 4] = "R8"; + GFXFormat[GFXFormat["R8SN"] = 5] = "R8SN"; + GFXFormat[GFXFormat["R8UI"] = 6] = "R8UI"; + GFXFormat[GFXFormat["R8I"] = 7] = "R8I"; + GFXFormat[GFXFormat["R16F"] = 8] = "R16F"; + GFXFormat[GFXFormat["R16UI"] = 9] = "R16UI"; + GFXFormat[GFXFormat["R16I"] = 10] = "R16I"; + GFXFormat[GFXFormat["R32F"] = 11] = "R32F"; + GFXFormat[GFXFormat["R32UI"] = 12] = "R32UI"; + GFXFormat[GFXFormat["R32I"] = 13] = "R32I"; + GFXFormat[GFXFormat["RG8"] = 14] = "RG8"; + GFXFormat[GFXFormat["RG8SN"] = 15] = "RG8SN"; + GFXFormat[GFXFormat["RG8UI"] = 16] = "RG8UI"; + GFXFormat[GFXFormat["RG8I"] = 17] = "RG8I"; + GFXFormat[GFXFormat["RG16F"] = 18] = "RG16F"; + GFXFormat[GFXFormat["RG16UI"] = 19] = "RG16UI"; + GFXFormat[GFXFormat["RG16I"] = 20] = "RG16I"; + GFXFormat[GFXFormat["RG32F"] = 21] = "RG32F"; + GFXFormat[GFXFormat["RG32UI"] = 22] = "RG32UI"; + GFXFormat[GFXFormat["RG32I"] = 23] = "RG32I"; + GFXFormat[GFXFormat["RGB8"] = 24] = "RGB8"; + GFXFormat[GFXFormat["SRGB8"] = 25] = "SRGB8"; + GFXFormat[GFXFormat["RGB8SN"] = 26] = "RGB8SN"; + GFXFormat[GFXFormat["RGB8UI"] = 27] = "RGB8UI"; + GFXFormat[GFXFormat["RGB8I"] = 28] = "RGB8I"; + GFXFormat[GFXFormat["RGB16F"] = 29] = "RGB16F"; + GFXFormat[GFXFormat["RGB16UI"] = 30] = "RGB16UI"; + GFXFormat[GFXFormat["RGB16I"] = 31] = "RGB16I"; + GFXFormat[GFXFormat["RGB32F"] = 32] = "RGB32F"; + GFXFormat[GFXFormat["RGB32UI"] = 33] = "RGB32UI"; + GFXFormat[GFXFormat["RGB32I"] = 34] = "RGB32I"; + GFXFormat[GFXFormat["RGBA8"] = 35] = "RGBA8"; + GFXFormat[GFXFormat["SRGB8_A8"] = 36] = "SRGB8_A8"; + GFXFormat[GFXFormat["RGBA8SN"] = 37] = "RGBA8SN"; + GFXFormat[GFXFormat["RGBA8UI"] = 38] = "RGBA8UI"; + GFXFormat[GFXFormat["RGBA8I"] = 39] = "RGBA8I"; + GFXFormat[GFXFormat["RGBA16F"] = 40] = "RGBA16F"; + GFXFormat[GFXFormat["RGBA16UI"] = 41] = "RGBA16UI"; + GFXFormat[GFXFormat["RGBA16I"] = 42] = "RGBA16I"; + GFXFormat[GFXFormat["RGBA32F"] = 43] = "RGBA32F"; + GFXFormat[GFXFormat["RGBA32UI"] = 44] = "RGBA32UI"; + GFXFormat[GFXFormat["RGBA32I"] = 45] = "RGBA32I"; + GFXFormat[GFXFormat["R5G6B5"] = 46] = "R5G6B5"; + GFXFormat[GFXFormat["R11G11B10F"] = 47] = "R11G11B10F"; + GFXFormat[GFXFormat["RGB5A1"] = 48] = "RGB5A1"; + GFXFormat[GFXFormat["RGBA4"] = 49] = "RGBA4"; + GFXFormat[GFXFormat["RGB10A2"] = 50] = "RGB10A2"; + GFXFormat[GFXFormat["RGB10A2UI"] = 51] = "RGB10A2UI"; + GFXFormat[GFXFormat["RGB9E5"] = 52] = "RGB9E5"; + GFXFormat[GFXFormat["D16"] = 53] = "D16"; + GFXFormat[GFXFormat["D16S8"] = 54] = "D16S8"; + GFXFormat[GFXFormat["D24"] = 55] = "D24"; + GFXFormat[GFXFormat["D24S8"] = 56] = "D24S8"; + GFXFormat[GFXFormat["D32F"] = 57] = "D32F"; + GFXFormat[GFXFormat["D32F_S8"] = 58] = "D32F_S8"; + GFXFormat[GFXFormat["BC1"] = 59] = "BC1"; + GFXFormat[GFXFormat["BC1_ALPHA"] = 60] = "BC1_ALPHA"; + GFXFormat[GFXFormat["BC1_SRGB"] = 61] = "BC1_SRGB"; + GFXFormat[GFXFormat["BC1_SRGB_ALPHA"] = 62] = "BC1_SRGB_ALPHA"; + GFXFormat[GFXFormat["BC2"] = 63] = "BC2"; + GFXFormat[GFXFormat["BC2_SRGB"] = 64] = "BC2_SRGB"; + GFXFormat[GFXFormat["BC3"] = 65] = "BC3"; + GFXFormat[GFXFormat["BC3_SRGB"] = 66] = "BC3_SRGB"; + GFXFormat[GFXFormat["BC4"] = 67] = "BC4"; + GFXFormat[GFXFormat["BC4_SNORM"] = 68] = "BC4_SNORM"; + GFXFormat[GFXFormat["BC5"] = 69] = "BC5"; + GFXFormat[GFXFormat["BC5_SNORM"] = 70] = "BC5_SNORM"; + GFXFormat[GFXFormat["BC6H_UF16"] = 71] = "BC6H_UF16"; + GFXFormat[GFXFormat["BC6H_SF16"] = 72] = "BC6H_SF16"; + GFXFormat[GFXFormat["BC7"] = 73] = "BC7"; + GFXFormat[GFXFormat["BC7_SRGB"] = 74] = "BC7_SRGB"; + GFXFormat[GFXFormat["ETC_RGB8"] = 75] = "ETC_RGB8"; + GFXFormat[GFXFormat["ETC2_RGB8"] = 76] = "ETC2_RGB8"; + GFXFormat[GFXFormat["ETC2_SRGB8"] = 77] = "ETC2_SRGB8"; + GFXFormat[GFXFormat["ETC2_RGB8_A1"] = 78] = "ETC2_RGB8_A1"; + GFXFormat[GFXFormat["ETC2_SRGB8_A1"] = 79] = "ETC2_SRGB8_A1"; + GFXFormat[GFXFormat["ETC2_RGBA8"] = 80] = "ETC2_RGBA8"; + GFXFormat[GFXFormat["ETC2_SRGB8_A8"] = 81] = "ETC2_SRGB8_A8"; + GFXFormat[GFXFormat["EAC_R11"] = 82] = "EAC_R11"; + GFXFormat[GFXFormat["EAC_R11SN"] = 83] = "EAC_R11SN"; + GFXFormat[GFXFormat["EAC_RG11"] = 84] = "EAC_RG11"; + GFXFormat[GFXFormat["EAC_RG11SN"] = 85] = "EAC_RG11SN"; + GFXFormat[GFXFormat["PVRTC_RGB2"] = 86] = "PVRTC_RGB2"; + GFXFormat[GFXFormat["PVRTC_RGBA2"] = 87] = "PVRTC_RGBA2"; + GFXFormat[GFXFormat["PVRTC_RGB4"] = 88] = "PVRTC_RGB4"; + GFXFormat[GFXFormat["PVRTC_RGBA4"] = 89] = "PVRTC_RGBA4"; + GFXFormat[GFXFormat["PVRTC2_2BPP"] = 90] = "PVRTC2_2BPP"; + GFXFormat[GFXFormat["PVRTC2_4BPP"] = 91] = "PVRTC2_4BPP"; + })(GFXFormat || (GFXFormat = {})); + var GFXBufferUsageBit; + (function(GFXBufferUsageBit) { + GFXBufferUsageBit[GFXBufferUsageBit["NONE"] = 0] = "NONE"; + GFXBufferUsageBit[GFXBufferUsageBit["TRANSFER_SRC"] = 1] = "TRANSFER_SRC"; + GFXBufferUsageBit[GFXBufferUsageBit["TRANSFER_DST"] = 2] = "TRANSFER_DST"; + GFXBufferUsageBit[GFXBufferUsageBit["INDEX"] = 4] = "INDEX"; + GFXBufferUsageBit[GFXBufferUsageBit["VERTEX"] = 8] = "VERTEX"; + GFXBufferUsageBit[GFXBufferUsageBit["UNIFORM"] = 16] = "UNIFORM"; + GFXBufferUsageBit[GFXBufferUsageBit["STORAGE"] = 32] = "STORAGE"; + GFXBufferUsageBit[GFXBufferUsageBit["INDIRECT"] = 64] = "INDIRECT"; + })(GFXBufferUsageBit || (GFXBufferUsageBit = {})); + var GFXMemoryUsageBit; + (function(GFXMemoryUsageBit) { + GFXMemoryUsageBit[GFXMemoryUsageBit["NONE"] = 0] = "NONE"; + GFXMemoryUsageBit[GFXMemoryUsageBit["DEVICE"] = 1] = "DEVICE"; + GFXMemoryUsageBit[GFXMemoryUsageBit["HOST"] = 2] = "HOST"; + })(GFXMemoryUsageBit || (GFXMemoryUsageBit = {})); + var GFXBufferAccessBit; + (function(GFXBufferAccessBit) { + GFXBufferAccessBit[GFXBufferAccessBit["NONE"] = 0] = "NONE"; + GFXBufferAccessBit[GFXBufferAccessBit["READ"] = 1] = "READ"; + GFXBufferAccessBit[GFXBufferAccessBit["WRITE"] = 2] = "WRITE"; + })(GFXBufferAccessBit || (GFXBufferAccessBit = {})); + var GFXPrimitiveMode; + (function(GFXPrimitiveMode) { + GFXPrimitiveMode[GFXPrimitiveMode["POINT_LIST"] = 0] = "POINT_LIST"; + GFXPrimitiveMode[GFXPrimitiveMode["LINE_LIST"] = 1] = "LINE_LIST"; + GFXPrimitiveMode[GFXPrimitiveMode["LINE_STRIP"] = 2] = "LINE_STRIP"; + GFXPrimitiveMode[GFXPrimitiveMode["LINE_LOOP"] = 3] = "LINE_LOOP"; + GFXPrimitiveMode[GFXPrimitiveMode["LINE_LIST_ADJACENCY"] = 4] = "LINE_LIST_ADJACENCY"; + GFXPrimitiveMode[GFXPrimitiveMode["LINE_STRIP_ADJACENCY"] = 5] = "LINE_STRIP_ADJACENCY"; + GFXPrimitiveMode[GFXPrimitiveMode["ISO_LINE_LIST"] = 6] = "ISO_LINE_LIST"; + GFXPrimitiveMode[GFXPrimitiveMode["TRIANGLE_LIST"] = 7] = "TRIANGLE_LIST"; + GFXPrimitiveMode[GFXPrimitiveMode["TRIANGLE_STRIP"] = 8] = "TRIANGLE_STRIP"; + GFXPrimitiveMode[GFXPrimitiveMode["TRIANGLE_FAN"] = 9] = "TRIANGLE_FAN"; + GFXPrimitiveMode[GFXPrimitiveMode["TRIANGLE_LIST_ADJACENCY"] = 10] = "TRIANGLE_LIST_ADJACENCY"; + GFXPrimitiveMode[GFXPrimitiveMode["TRIANGLE_STRIP_ADJACENCY"] = 11] = "TRIANGLE_STRIP_ADJACENCY"; + GFXPrimitiveMode[GFXPrimitiveMode["TRIANGLE_PATCH_ADJACENCY"] = 12] = "TRIANGLE_PATCH_ADJACENCY"; + GFXPrimitiveMode[GFXPrimitiveMode["QUAD_PATCH_LIST"] = 13] = "QUAD_PATCH_LIST"; + })(GFXPrimitiveMode || (GFXPrimitiveMode = {})); + var GFXPolygonMode; + (function(GFXPolygonMode) { + GFXPolygonMode[GFXPolygonMode["FILL"] = 0] = "FILL"; + GFXPolygonMode[GFXPolygonMode["POINT"] = 1] = "POINT"; + GFXPolygonMode[GFXPolygonMode["LINE"] = 2] = "LINE"; + })(GFXPolygonMode || (GFXPolygonMode = {})); + var GFXShadeModel; + (function(GFXShadeModel) { + GFXShadeModel[GFXShadeModel["GOURAND"] = 0] = "GOURAND"; + GFXShadeModel[GFXShadeModel["FLAT"] = 1] = "FLAT"; + })(GFXShadeModel || (GFXShadeModel = {})); + var GFXCullMode; + (function(GFXCullMode) { + GFXCullMode[GFXCullMode["NONE"] = 0] = "NONE"; + GFXCullMode[GFXCullMode["FRONT"] = 1] = "FRONT"; + GFXCullMode[GFXCullMode["BACK"] = 2] = "BACK"; + })(GFXCullMode || (GFXCullMode = {})); + var GFXComparisonFunc; + (function(GFXComparisonFunc) { + GFXComparisonFunc[GFXComparisonFunc["NEVER"] = 0] = "NEVER"; + GFXComparisonFunc[GFXComparisonFunc["LESS"] = 1] = "LESS"; + GFXComparisonFunc[GFXComparisonFunc["EQUAL"] = 2] = "EQUAL"; + GFXComparisonFunc[GFXComparisonFunc["LESS_EQUAL"] = 3] = "LESS_EQUAL"; + GFXComparisonFunc[GFXComparisonFunc["GREATER"] = 4] = "GREATER"; + GFXComparisonFunc[GFXComparisonFunc["NOT_EQUAL"] = 5] = "NOT_EQUAL"; + GFXComparisonFunc[GFXComparisonFunc["GREATER_EQUAL"] = 6] = "GREATER_EQUAL"; + GFXComparisonFunc[GFXComparisonFunc["ALWAYS"] = 7] = "ALWAYS"; + })(GFXComparisonFunc || (GFXComparisonFunc = {})); + var GFXStencilOp; + (function(GFXStencilOp) { + GFXStencilOp[GFXStencilOp["ZERO"] = 0] = "ZERO"; + GFXStencilOp[GFXStencilOp["KEEP"] = 1] = "KEEP"; + GFXStencilOp[GFXStencilOp["REPLACE"] = 2] = "REPLACE"; + GFXStencilOp[GFXStencilOp["INCR"] = 3] = "INCR"; + GFXStencilOp[GFXStencilOp["DECR"] = 4] = "DECR"; + GFXStencilOp[GFXStencilOp["INVERT"] = 5] = "INVERT"; + GFXStencilOp[GFXStencilOp["INCR_WRAP"] = 6] = "INCR_WRAP"; + GFXStencilOp[GFXStencilOp["DECR_WRAP"] = 7] = "DECR_WRAP"; + })(GFXStencilOp || (GFXStencilOp = {})); + var GFXBlendOp; + (function(GFXBlendOp) { + GFXBlendOp[GFXBlendOp["ADD"] = 0] = "ADD"; + GFXBlendOp[GFXBlendOp["SUB"] = 1] = "SUB"; + GFXBlendOp[GFXBlendOp["REV_SUB"] = 2] = "REV_SUB"; + GFXBlendOp[GFXBlendOp["MIN"] = 3] = "MIN"; + GFXBlendOp[GFXBlendOp["MAX"] = 4] = "MAX"; + })(GFXBlendOp || (GFXBlendOp = {})); + var GFXBlendFactor; + (function(GFXBlendFactor) { + GFXBlendFactor[GFXBlendFactor["ZERO"] = 0] = "ZERO"; + GFXBlendFactor[GFXBlendFactor["ONE"] = 1] = "ONE"; + GFXBlendFactor[GFXBlendFactor["SRC_ALPHA"] = 2] = "SRC_ALPHA"; + GFXBlendFactor[GFXBlendFactor["DST_ALPHA"] = 3] = "DST_ALPHA"; + GFXBlendFactor[GFXBlendFactor["ONE_MINUS_SRC_ALPHA"] = 4] = "ONE_MINUS_SRC_ALPHA"; + GFXBlendFactor[GFXBlendFactor["ONE_MINUS_DST_ALPHA"] = 5] = "ONE_MINUS_DST_ALPHA"; + GFXBlendFactor[GFXBlendFactor["SRC_COLOR"] = 6] = "SRC_COLOR"; + GFXBlendFactor[GFXBlendFactor["DST_COLOR"] = 7] = "DST_COLOR"; + GFXBlendFactor[GFXBlendFactor["ONE_MINUS_SRC_COLOR"] = 8] = "ONE_MINUS_SRC_COLOR"; + GFXBlendFactor[GFXBlendFactor["ONE_MINUS_DST_COLOR"] = 9] = "ONE_MINUS_DST_COLOR"; + GFXBlendFactor[GFXBlendFactor["SRC_ALPHA_SATURATE"] = 10] = "SRC_ALPHA_SATURATE"; + GFXBlendFactor[GFXBlendFactor["CONSTANT_COLOR"] = 11] = "CONSTANT_COLOR"; + GFXBlendFactor[GFXBlendFactor["ONE_MINUS_CONSTANT_COLOR"] = 12] = "ONE_MINUS_CONSTANT_COLOR"; + GFXBlendFactor[GFXBlendFactor["CONSTANT_ALPHA"] = 13] = "CONSTANT_ALPHA"; + GFXBlendFactor[GFXBlendFactor["ONE_MINUS_CONSTANT_ALPHA"] = 14] = "ONE_MINUS_CONSTANT_ALPHA"; + })(GFXBlendFactor || (GFXBlendFactor = {})); + var GFXColorMask; + (function(GFXColorMask) { + GFXColorMask[GFXColorMask["NONE"] = 0] = "NONE"; + GFXColorMask[GFXColorMask["R"] = 1] = "R"; + GFXColorMask[GFXColorMask["G"] = 2] = "G"; + GFXColorMask[GFXColorMask["B"] = 4] = "B"; + GFXColorMask[GFXColorMask["A"] = 8] = "A"; + GFXColorMask[GFXColorMask["ALL"] = 15] = "ALL"; + })(GFXColorMask || (GFXColorMask = {})); + var GFXFilter; + (function(GFXFilter) { + GFXFilter[GFXFilter["NONE"] = 0] = "NONE"; + GFXFilter[GFXFilter["POINT"] = 1] = "POINT"; + GFXFilter[GFXFilter["LINEAR"] = 2] = "LINEAR"; + GFXFilter[GFXFilter["ANISOTROPIC"] = 3] = "ANISOTROPIC"; + })(GFXFilter || (GFXFilter = {})); + var GFXAddress; + (function(GFXAddress) { + GFXAddress[GFXAddress["WRAP"] = 0] = "WRAP"; + GFXAddress[GFXAddress["MIRROR"] = 1] = "MIRROR"; + GFXAddress[GFXAddress["CLAMP"] = 2] = "CLAMP"; + GFXAddress[GFXAddress["BORDER"] = 3] = "BORDER"; + })(GFXAddress || (GFXAddress = {})); + var GFXTextureType; + (function(GFXTextureType) { + GFXTextureType[GFXTextureType["TEX1D"] = 0] = "TEX1D"; + GFXTextureType[GFXTextureType["TEX2D"] = 1] = "TEX2D"; + GFXTextureType[GFXTextureType["TEX3D"] = 2] = "TEX3D"; + })(GFXTextureType || (GFXTextureType = {})); + var GFXTextureUsageBit; + (function(GFXTextureUsageBit) { + GFXTextureUsageBit[GFXTextureUsageBit["NONE"] = 0] = "NONE"; + GFXTextureUsageBit[GFXTextureUsageBit["TRANSFER_SRC"] = 1] = "TRANSFER_SRC"; + GFXTextureUsageBit[GFXTextureUsageBit["TRANSFER_DST"] = 2] = "TRANSFER_DST"; + GFXTextureUsageBit[GFXTextureUsageBit["SAMPLED"] = 4] = "SAMPLED"; + GFXTextureUsageBit[GFXTextureUsageBit["STORAGE"] = 8] = "STORAGE"; + GFXTextureUsageBit[GFXTextureUsageBit["COLOR_ATTACHMENT"] = 16] = "COLOR_ATTACHMENT"; + GFXTextureUsageBit[GFXTextureUsageBit["DEPTH_STENCIL_ATTACHMENT"] = 32] = "DEPTH_STENCIL_ATTACHMENT"; + GFXTextureUsageBit[GFXTextureUsageBit["TRANSIENT_ATTACHMENT"] = 64] = "TRANSIENT_ATTACHMENT"; + GFXTextureUsageBit[GFXTextureUsageBit["INPUT_ATTACHMENT"] = 128] = "INPUT_ATTACHMENT"; + })(GFXTextureUsageBit || (GFXTextureUsageBit = {})); + var GFXSampleCount; + (function(GFXSampleCount) { + GFXSampleCount[GFXSampleCount["X1"] = 0] = "X1"; + GFXSampleCount[GFXSampleCount["X2"] = 1] = "X2"; + GFXSampleCount[GFXSampleCount["X4"] = 2] = "X4"; + GFXSampleCount[GFXSampleCount["X8"] = 3] = "X8"; + GFXSampleCount[GFXSampleCount["X16"] = 4] = "X16"; + GFXSampleCount[GFXSampleCount["X32"] = 5] = "X32"; + GFXSampleCount[GFXSampleCount["X64"] = 6] = "X64"; + })(GFXSampleCount || (GFXSampleCount = {})); + var GFXTextureFlagBit; + (function(GFXTextureFlagBit) { + GFXTextureFlagBit[GFXTextureFlagBit["NONE"] = 0] = "NONE"; + GFXTextureFlagBit[GFXTextureFlagBit["GEN_MIPMAP"] = 1] = "GEN_MIPMAP"; + GFXTextureFlagBit[GFXTextureFlagBit["CUBEMAP"] = 2] = "CUBEMAP"; + GFXTextureFlagBit[GFXTextureFlagBit["BAKUP_BUFFER"] = 4] = "BAKUP_BUFFER"; + })(GFXTextureFlagBit || (GFXTextureFlagBit = {})); + var GFXTextureViewType; + (function(GFXTextureViewType) { + GFXTextureViewType[GFXTextureViewType["TV1D"] = 0] = "TV1D"; + GFXTextureViewType[GFXTextureViewType["TV2D"] = 1] = "TV2D"; + GFXTextureViewType[GFXTextureViewType["TV3D"] = 2] = "TV3D"; + GFXTextureViewType[GFXTextureViewType["CUBE"] = 3] = "CUBE"; + GFXTextureViewType[GFXTextureViewType["TV1D_ARRAY"] = 4] = "TV1D_ARRAY"; + GFXTextureViewType[GFXTextureViewType["TV2D_ARRAY"] = 5] = "TV2D_ARRAY"; + })(GFXTextureViewType || (GFXTextureViewType = {})); + var GFXShaderType; + (function(GFXShaderType) { + GFXShaderType[GFXShaderType["VERTEX"] = 0] = "VERTEX"; + GFXShaderType[GFXShaderType["HULL"] = 1] = "HULL"; + GFXShaderType[GFXShaderType["DOMAIN"] = 2] = "DOMAIN"; + GFXShaderType[GFXShaderType["GEOMETRY"] = 3] = "GEOMETRY"; + GFXShaderType[GFXShaderType["FRAGMENT"] = 4] = "FRAGMENT"; + GFXShaderType[GFXShaderType["COMPUTE"] = 5] = "COMPUTE"; + GFXShaderType[GFXShaderType["COUNT"] = 6] = "COUNT"; + })(GFXShaderType || (GFXShaderType = {})); + var GFXBindingType; + (function(GFXBindingType) { + GFXBindingType[GFXBindingType["UNKNOWN"] = 0] = "UNKNOWN"; + GFXBindingType[GFXBindingType["UNIFORM_BUFFER"] = 1] = "UNIFORM_BUFFER"; + GFXBindingType[GFXBindingType["SAMPLER"] = 2] = "SAMPLER"; + GFXBindingType[GFXBindingType["STORAGE_BUFFER"] = 3] = "STORAGE_BUFFER"; + })(GFXBindingType || (GFXBindingType = {})); + var GFXCommandBufferType; + (function(GFXCommandBufferType) { + GFXCommandBufferType[GFXCommandBufferType["PRIMARY"] = 0] = "PRIMARY"; + GFXCommandBufferType[GFXCommandBufferType["SECONDARY"] = 1] = "SECONDARY"; + })(GFXCommandBufferType || (GFXCommandBufferType = {})); + var GFXLoadOp; + (function(GFXLoadOp) { + GFXLoadOp[GFXLoadOp["LOAD"] = 0] = "LOAD"; + GFXLoadOp[GFXLoadOp["CLEAR"] = 1] = "CLEAR"; + GFXLoadOp[GFXLoadOp["DISCARD"] = 2] = "DISCARD"; + })(GFXLoadOp || (GFXLoadOp = {})); + var GFXStoreOp; + (function(GFXStoreOp) { + GFXStoreOp[GFXStoreOp["STORE"] = 0] = "STORE"; + GFXStoreOp[GFXStoreOp["DISCARD"] = 1] = "DISCARD"; + })(GFXStoreOp || (GFXStoreOp = {})); + var GFXTextureLayout; + (function(GFXTextureLayout) { + GFXTextureLayout[GFXTextureLayout["UNDEFINED"] = 0] = "UNDEFINED"; + GFXTextureLayout[GFXTextureLayout["GENERAL"] = 1] = "GENERAL"; + GFXTextureLayout[GFXTextureLayout["COLOR_ATTACHMENT_OPTIMAL"] = 2] = "COLOR_ATTACHMENT_OPTIMAL"; + GFXTextureLayout[GFXTextureLayout["DEPTH_STENCIL_ATTACHMENT_OPTIMAL"] = 3] = "DEPTH_STENCIL_ATTACHMENT_OPTIMAL"; + GFXTextureLayout[GFXTextureLayout["DEPTH_STENCIL_READONLY_OPTIMAL"] = 4] = "DEPTH_STENCIL_READONLY_OPTIMAL"; + GFXTextureLayout[GFXTextureLayout["SHADER_READONLY_OPTIMAL"] = 5] = "SHADER_READONLY_OPTIMAL"; + GFXTextureLayout[GFXTextureLayout["TRANSFER_SRC_OPTIMAL"] = 6] = "TRANSFER_SRC_OPTIMAL"; + GFXTextureLayout[GFXTextureLayout["TRANSFER_DST_OPTIMAL"] = 7] = "TRANSFER_DST_OPTIMAL"; + GFXTextureLayout[GFXTextureLayout["PREINITIALIZED"] = 8] = "PREINITIALIZED"; + GFXTextureLayout[GFXTextureLayout["PRESENT_SRC"] = 9] = "PRESENT_SRC"; + })(GFXTextureLayout || (GFXTextureLayout = {})); + var GFXPipelineBindPoint; + (function(GFXPipelineBindPoint) { + GFXPipelineBindPoint[GFXPipelineBindPoint["GRAPHICS"] = 0] = "GRAPHICS"; + GFXPipelineBindPoint[GFXPipelineBindPoint["COMPUTE"] = 1] = "COMPUTE"; + GFXPipelineBindPoint[GFXPipelineBindPoint["RAY_TRACING"] = 2] = "RAY_TRACING"; + })(GFXPipelineBindPoint || (GFXPipelineBindPoint = {})); + var GFXDynamicState; + (function(GFXDynamicState) { + GFXDynamicState[GFXDynamicState["VIEWPORT"] = 0] = "VIEWPORT"; + GFXDynamicState[GFXDynamicState["SCISSOR"] = 1] = "SCISSOR"; + GFXDynamicState[GFXDynamicState["LINE_WIDTH"] = 2] = "LINE_WIDTH"; + GFXDynamicState[GFXDynamicState["DEPTH_BIAS"] = 3] = "DEPTH_BIAS"; + GFXDynamicState[GFXDynamicState["BLEND_CONSTANTS"] = 4] = "BLEND_CONSTANTS"; + GFXDynamicState[GFXDynamicState["DEPTH_BOUNDS"] = 5] = "DEPTH_BOUNDS"; + GFXDynamicState[GFXDynamicState["STENCIL_WRITE_MASK"] = 6] = "STENCIL_WRITE_MASK"; + GFXDynamicState[GFXDynamicState["STENCIL_COMPARE_MASK"] = 7] = "STENCIL_COMPARE_MASK"; + })(GFXDynamicState || (GFXDynamicState = {})); + var GFXStencilFace; + (function(GFXStencilFace) { + GFXStencilFace[GFXStencilFace["FRONT"] = 0] = "FRONT"; + GFXStencilFace[GFXStencilFace["BACK"] = 1] = "BACK"; + GFXStencilFace[GFXStencilFace["ALL"] = 2] = "ALL"; + })(GFXStencilFace || (GFXStencilFace = {})); + var GFXQueueType; + (function(GFXQueueType) { + GFXQueueType[GFXQueueType["GRAPHICS"] = 0] = "GRAPHICS"; + GFXQueueType[GFXQueueType["COMPUTE"] = 1] = "COMPUTE"; + GFXQueueType[GFXQueueType["TRANSFER"] = 2] = "TRANSFER"; + })(GFXQueueType || (GFXQueueType = {})); + var GFXClearFlag; + (function(GFXClearFlag) { + GFXClearFlag[GFXClearFlag["NONE"] = 0] = "NONE"; + GFXClearFlag[GFXClearFlag["COLOR"] = 1] = "COLOR"; + GFXClearFlag[GFXClearFlag["DEPTH"] = 2] = "DEPTH"; + GFXClearFlag[GFXClearFlag["STENCIL"] = 4] = "STENCIL"; + GFXClearFlag[GFXClearFlag["DEPTH_STENCIL"] = 6] = "DEPTH_STENCIL"; + GFXClearFlag[GFXClearFlag["ALL"] = 7] = "ALL"; + })(GFXClearFlag || (GFXClearFlag = {})); + function GFXGetTypeSize(type) { + switch (type) { + case GFXType.BOOL: + case GFXType.INT: + case GFXType.UINT: + case GFXType.FLOAT: + return 4; + + case GFXType.BOOL2: + case GFXType.INT2: + case GFXType.UINT2: + case GFXType.FLOAT2: + return 8; + + case GFXType.BOOL3: + case GFXType.INT3: + case GFXType.UINT3: + case GFXType.FLOAT3: + return 12; + + case GFXType.BOOL4: + case GFXType.INT4: + case GFXType.UINT4: + case GFXType.FLOAT4: + case GFXType.MAT2: + return 16; + + case GFXType.MAT2X3: + return 24; + + case GFXType.MAT2X4: + return 32; + + case GFXType.MAT3X2: + return 24; + + case GFXType.MAT3: + return 36; + + case GFXType.MAT3X4: + return 48; + + case GFXType.MAT4X2: + case GFXType.MAT4X2: + return 32; + + case GFXType.MAT4: + return 64; + + case GFXType.SAMPLER1D: + case GFXType.SAMPLER1D_ARRAY: + case GFXType.SAMPLER2D: + case GFXType.SAMPLER2D_ARRAY: + case GFXType.SAMPLER3D: + case GFXType.SAMPLER_CUBE: + return 4; + + default: + return 0; + } + } + var RenderPassStage; + (function(RenderPassStage) { + RenderPassStage[RenderPassStage["DEFAULT"] = 100] = "DEFAULT"; + })(RenderPassStage || (RenderPassStage = {})); + var RenderPriority; + (function(RenderPriority) { + RenderPriority[RenderPriority["MIN"] = 0] = "MIN"; + RenderPriority[RenderPriority["MAX"] = 255] = "MAX"; + RenderPriority[RenderPriority["DEFAULT"] = 128] = "DEFAULT"; + })(RenderPriority || (RenderPriority = {})); + var MAX_BINDING_SUPPORTED = 24; + var UniformBinding; + (function(UniformBinding) { + UniformBinding[UniformBinding["UBO_GLOBAL"] = MAX_BINDING_SUPPORTED - 1] = "UBO_GLOBAL"; + UniformBinding[UniformBinding["UBO_SHADOW"] = MAX_BINDING_SUPPORTED - 2] = "UBO_SHADOW"; + UniformBinding[UniformBinding["UBO_LOCAL"] = MAX_BINDING_SUPPORTED - 3] = "UBO_LOCAL"; + UniformBinding[UniformBinding["UBO_FORWARD_LIGHTS"] = MAX_BINDING_SUPPORTED - 4] = "UBO_FORWARD_LIGHTS"; + UniformBinding[UniformBinding["UBO_SKINNING"] = MAX_BINDING_SUPPORTED - 5] = "UBO_SKINNING"; + UniformBinding[UniformBinding["UBO_SKINNING_TEXTURE"] = MAX_BINDING_SUPPORTED - 6] = "UBO_SKINNING_TEXTURE"; + UniformBinding[UniformBinding["UBO_UI"] = MAX_BINDING_SUPPORTED - 7] = "UBO_UI"; + UniformBinding[UniformBinding["SAMPLER_JOINTS"] = MAX_BINDING_SUPPORTED + 1] = "SAMPLER_JOINTS"; + UniformBinding[UniformBinding["SAMPLER_ENVIRONMENT"] = MAX_BINDING_SUPPORTED + 2] = "SAMPLER_ENVIRONMENT"; + UniformBinding[UniformBinding["CUSTUM_UBO_BINDING_END_POINT"] = MAX_BINDING_SUPPORTED - 7] = "CUSTUM_UBO_BINDING_END_POINT"; + UniformBinding[UniformBinding["CUSTOM_SAMPLER_BINDING_START_POINT"] = MAX_BINDING_SUPPORTED + 6] = "CUSTOM_SAMPLER_BINDING_START_POINT"; + })(UniformBinding || (UniformBinding = {})); + var _a, _b; + var SamplerInfoIndex; + (function(SamplerInfoIndex) { + SamplerInfoIndex[SamplerInfoIndex["minFilter"] = 0] = "minFilter"; + SamplerInfoIndex[SamplerInfoIndex["magFilter"] = 1] = "magFilter"; + SamplerInfoIndex[SamplerInfoIndex["mipFilter"] = 2] = "mipFilter"; + SamplerInfoIndex[SamplerInfoIndex["addressU"] = 3] = "addressU"; + SamplerInfoIndex[SamplerInfoIndex["addressV"] = 4] = "addressV"; + SamplerInfoIndex[SamplerInfoIndex["addressW"] = 5] = "addressW"; + SamplerInfoIndex[SamplerInfoIndex["maxAnisotropy"] = 6] = "maxAnisotropy"; + SamplerInfoIndex[SamplerInfoIndex["cmpFunc"] = 7] = "cmpFunc"; + SamplerInfoIndex[SamplerInfoIndex["minLOD"] = 8] = "minLOD"; + SamplerInfoIndex[SamplerInfoIndex["maxLOD"] = 9] = "maxLOD"; + SamplerInfoIndex[SamplerInfoIndex["mipLODBias"] = 10] = "mipLODBias"; + SamplerInfoIndex[SamplerInfoIndex["borderColor"] = 11] = "borderColor"; + SamplerInfoIndex[SamplerInfoIndex["total"] = 15] = "total"; + })(SamplerInfoIndex || (SamplerInfoIndex = {})); + var typeMap = {}; + typeMap[typeMap["bool"] = GFXType.BOOL] = "bool"; + typeMap[typeMap["int"] = GFXType.INT] = "int"; + typeMap[typeMap["ivec2"] = GFXType.INT2] = "ivec2invTypeParams"; + typeMap[typeMap["ivec3"] = GFXType.INT3] = "ivec3"; + typeMap[typeMap["ivec4"] = GFXType.INT4] = "ivec4"; + typeMap[typeMap["float"] = GFXType.FLOAT] = "float"; + typeMap[typeMap["vec2"] = GFXType.FLOAT2] = "vec2"; + typeMap[typeMap["vec3"] = GFXType.FLOAT3] = "vec3"; + typeMap[typeMap["vec4"] = GFXType.FLOAT4] = "vec4"; + typeMap[typeMap["mat2"] = GFXType.MAT2] = "mat2"; + typeMap[typeMap["mat3"] = GFXType.MAT3] = "mat3"; + typeMap[typeMap["mat4"] = GFXType.MAT4] = "mat4"; + typeMap[typeMap["sampler2D"] = GFXType.SAMPLER2D] = "sampler2D"; + typeMap[typeMap["samplerCube"] = GFXType.SAMPLER_CUBE] = "samplerCube"; + var sizeMap = (_a = {}, _a[GFXType.BOOL] = 4, _a[GFXType.INT] = 4, _a[GFXType.INT2] = 8, + _a[GFXType.INT3] = 12, _a[GFXType.INT4] = 16, _a[GFXType.FLOAT] = 4, _a[GFXType.FLOAT2] = 8, + _a[GFXType.FLOAT3] = 12, _a[GFXType.FLOAT4] = 16, _a[GFXType.MAT2] = 16, _a[GFXType.MAT3] = 36, + _a[GFXType.MAT4] = 64, _a[GFXType.SAMPLER2D] = 4, _a[GFXType.SAMPLER_CUBE] = 4, + _a); + var formatMap = (_b = {}, _b[GFXType.BOOL] = GFXFormat.R32I, _b[GFXType.INT] = GFXFormat.R32I, + _b[GFXType.INT2] = GFXFormat.RG32I, _b[GFXType.INT3] = GFXFormat.RGB32I, _b[GFXType.INT4] = GFXFormat.RGBA32I, + _b[GFXType.FLOAT] = GFXFormat.R32F, _b[GFXType.FLOAT2] = GFXFormat.RG32F, _b[GFXType.FLOAT3] = GFXFormat.RGB32F, + _b[GFXType.FLOAT4] = GFXFormat.RGBA32F, _b); + var passParams = { + BACK: enums.CULL_BACK, + FRONT: enums.CULL_FRONT, + NONE: enums.CULL_NONE, + ADD: enums.BLEND_FUNC_ADD, + SUB: enums.BLEND_FUNC_SUBTRACT, + REV_SUB: enums.BLEND_FUNC_REVERSE_SUBTRACT, + ZERO: enums.BLEND_ZERO, + ONE: enums.BLEND_ONE, + SRC_COLOR: enums.BLEND_SRC_COLOR, + ONE_MINUS_SRC_COLOR: enums.BLEND_ONE_MINUS_SRC_COLOR, + DST_COLOR: enums.BLEND_DST_COLOR, + ONE_MINUS_DST_COLOR: enums.BLEND_ONE_MINUS_DST_COLOR, + SRC_ALPHA: enums.BLEND_SRC_ALPHA, + ONE_MINUS_SRC_ALPHA: enums.BLEND_ONE_MINUS_SRC_ALPHA, + DST_ALPHA: enums.BLEND_DST_ALPHA, + ONE_MINUS_DST_ALPHA: enums.BLEND_ONE_MINUS_DST_ALPHA, + CONSTANT_COLOR: enums.BLEND_CONSTANT_COLOR, + ONE_MINUS_CONSTANT_COLOR: enums.BLEND_ONE_MINUS_CONSTANT_COLOR, + CONSTANT_ALPHA: enums.BLEND_CONSTANT_ALPHA, + ONE_MINUS_CONSTANT_ALPHA: enums.BLEND_ONE_MINUS_CONSTANT_ALPHA, + SRC_ALPHA_SATURATE: enums.BLEND_SRC_ALPHA_SATURATE, + NEVER: enums.DS_FUNC_NEVER, + LESS: enums.DS_FUNC_LESS, + EQUAL: enums.DS_FUNC_EQUAL, + LEQUAL: enums.DS_FUNC_LEQUAL, + GREATER: enums.DS_FUNC_GREATER, + NOTEQUAL: enums.DS_FUNC_NOTEQUAL, + GEQUAL: enums.DS_FUNC_GEQUAL, + ALWAYS: enums.DS_FUNC_ALWAYS, + KEEP: enums.STENCIL_OP_KEEP, + REPLACE: enums.STENCIL_OP_REPLACE, + INCR: enums.STENCIL_OP_INCR, + INCR_WRAP: enums.STENCIL_OP_INCR_WRAP, + DECR: enums.STENCIL_OP_DECR, + DECR_WRAP: enums.STENCIL_OP_DECR_WRAP, + INVERT: enums.STENCIL_OP_INVERT + }; + Object.assign(passParams, RenderPassStage); + var effectStructure = { + $techniques: [ { + $passes: [ { + depthStencilState: {}, + rasterizerState: {}, + blendState: { + targets: [ {} ] + }, + properties: { + any: { + sampler: {}, + inspector: {} + } + } + } ] + } ] + }; + var mappings = { + murmurhash2_32_gc: murmurhash2_32_gc, + SamplerInfoIndex: SamplerInfoIndex, + effectStructure: effectStructure, + typeMap: typeMap, + sizeMap: sizeMap, + formatMap: formatMap, + passParams: passParams, + RenderQueue: RenderQueue, + RenderPriority: RenderPriority, + GFXGetTypeSize: GFXGetTypeSize, + UniformBinding: UniformBinding + }; + module.exports = mappings; + }), {} ], + 236: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _memop = require("../memop"); + var _enums = _interopRequireDefault(require("../enums")); + var _valueTypes = require("../../core/value-types"); + var _programLib = _interopRequireDefault(require("./program-lib")); + var _view = _interopRequireDefault(require("./view")); + var _gfx = _interopRequireDefault(require("../gfx")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + var _m4_tmp = new _valueTypes.Mat4(); + var _stageInfos = new _memop.RecyclePool(function() { + return { + stage: null, + items: null + }; + }, 8); + var _float2_pool = new _memop.RecyclePool(function() { + return new Float32Array(2); + }, 8); + var _float3_pool = new _memop.RecyclePool(function() { + return new Float32Array(3); + }, 8); + var _float4_pool = new _memop.RecyclePool(function() { + return new Float32Array(4); + }, 8); + var _float9_pool = new _memop.RecyclePool(function() { + return new Float32Array(9); + }, 8); + var _float16_pool = new _memop.RecyclePool(function() { + return new Float32Array(16); + }, 8); + var _float64_pool = new _memop.RecyclePool(function() { + return new Float32Array(64); + }, 8); + var _int2_pool = new _memop.RecyclePool(function() { + return new Int32Array(2); + }, 8); + var _int3_pool = new _memop.RecyclePool(function() { + return new Int32Array(3); + }, 8); + var _int4_pool = new _memop.RecyclePool(function() { + return new Int32Array(4); + }, 8); + var _int64_pool = new _memop.RecyclePool(function() { + return new Int32Array(64); + }, 8); + var Base = (function() { + function Base(device, opts) { + var _this$_type2defaultVa; + this._device = device; + this._programLib = new _programLib["default"](device); + this._opts = opts; + this._type2defaultValue = (_this$_type2defaultVa = {}, _this$_type2defaultVa[_enums["default"].PARAM_INT] = 0, + _this$_type2defaultVa[_enums["default"].PARAM_INT2] = new _valueTypes.Vec2(0, 0), + _this$_type2defaultVa[_enums["default"].PARAM_INT3] = new _valueTypes.Vec3(0, 0, 0), + _this$_type2defaultVa[_enums["default"].PARAM_INT4] = new _valueTypes.Vec4(0, 0, 0, 0), + _this$_type2defaultVa[_enums["default"].PARAM_FLOAT] = 0, _this$_type2defaultVa[_enums["default"].PARAM_FLOAT2] = new _valueTypes.Vec2(0, 0), + _this$_type2defaultVa[_enums["default"].PARAM_FLOAT3] = new _valueTypes.Vec3(0, 0, 0), + _this$_type2defaultVa[_enums["default"].PARAM_FLOAT4] = new _valueTypes.Vec4(0, 0, 0, 0), + _this$_type2defaultVa[_enums["default"].PARAM_COLOR4] = new _valueTypes.Color(0, 0, 0, 1), + _this$_type2defaultVa[_enums["default"].PARAM_MAT3] = new _valueTypes.Mat3(), _this$_type2defaultVa[_enums["default"].PARAM_MAT4] = new _valueTypes.Mat4(), + _this$_type2defaultVa[_enums["default"].PARAM_TEXTURE_2D] = opts.defaultTexture, + _this$_type2defaultVa[_enums["default"].PARAM_TEXTURE_CUBE] = opts.defaultTextureCube, + _this$_type2defaultVa); + this._stage2fn = {}; + this._usedTextureUnits = 0; + this._viewPools = new _memop.RecyclePool(function() { + return new _view["default"](); + }, 8); + this._drawItemsPools = new _memop.RecyclePool(function() { + return { + model: null, + node: null, + ia: null, + effect: null, + defines: null, + uniforms: null + }; + }, 100); + this._stageItemsPools = new _memop.RecyclePool(function() { + return new _memop.RecyclePool(function() { + return { + model: null, + node: null, + ia: null, + effect: null, + defines: null, + passes: [], + sortKey: -1, + uniforms: null + }; + }, 100); + }, 16); + this._definesChanged = false; + } + var _proto = Base.prototype; + _proto._resetTextuerUnit = function _resetTextuerUnit() { + this._usedTextureUnits = 0; + }; + _proto._allocTextureUnit = function _allocTextureUnit() { + var device = this._device; + var unit = this._usedTextureUnits; + unit >= device._caps.maxTextureUnits && console.warn("Trying to use " + unit + " texture units while this GPU supports only " + device._caps.maxTextureUnits); + this._usedTextureUnits += 1; + return unit; + }; + _proto._registerStage = function _registerStage(name, fn) { + this._stage2fn[name] = fn; + }; + _proto.clear = function clear() { + this._programLib.clear(); + this.reset(); + }; + _proto.reset = function reset() { + this._viewPools.reset(); + this._stageItemsPools.reset(); + this._definesChanged = false; + }; + _proto._requestView = function _requestView() { + return this._viewPools.add(); + }; + _proto._render = function _render(view, scene) { + var device = this._device; + device.setFrameBuffer(view._framebuffer); + device.setViewport(view._rect.x, view._rect.y, view._rect.w, view._rect.h); + var clearOpts = {}; + view._clearFlags & _enums["default"].CLEAR_COLOR && (clearOpts.color = _valueTypes.Vec4.toArray([], view._color)); + view._clearFlags & _enums["default"].CLEAR_DEPTH && (clearOpts.depth = view._depth); + view._clearFlags & _enums["default"].CLEAR_STENCIL && (clearOpts.stencil = view._stencil); + device.clear(clearOpts); + this._drawItemsPools.reset(); + for (var i = 0; i < scene._models.length; ++i) { + var model = scene._models.data[i]; + if (0 === (model._cullingMask & view._cullingMask)) continue; + var drawItem = this._drawItemsPools.add(); + model.extractDrawItem(drawItem); + } + _stageInfos.reset(); + for (var _i = 0; _i < view._stages.length; ++_i) { + var stage = view._stages[_i]; + var stageItems = this._stageItemsPools.add(); + stageItems.reset(); + for (var j = 0; j < this._drawItemsPools.length; ++j) { + var _drawItem = this._drawItemsPools.data[j]; + var passes = _drawItem.effect.stagePasses[stage]; + if (!passes || 0 === passes.length) continue; + var stageItem = stageItems.add(); + stageItem.passes = passes; + stageItem.model = _drawItem.model; + stageItem.node = _drawItem.node; + stageItem.ia = _drawItem.ia; + stageItem.effect = _drawItem.effect; + stageItem.defines = _drawItem.defines; + stageItem.sortKey = -1; + stageItem.uniforms = _drawItem.uniforms; + } + var stageInfo = _stageInfos.add(); + stageInfo.stage = stage; + stageInfo.items = stageItems; + } + for (var _i2 = 0; _i2 < _stageInfos.length; ++_i2) { + var info = _stageInfos.data[_i2]; + var fn = this._stage2fn[info.stage]; + fn(view, info.items); + } + }; + _proto._setProperty = function _setProperty(prop) { + var device = this._device; + var param = prop.value; + void 0 === param && (param = prop.val); + void 0 === param && (param = this._type2defaultValue[prop.type]); + if (void 0 === param) { + console.warn("Failed to set technique property " + prop.name + ", value not found."); + return; + } + if (prop.type === _enums["default"].PARAM_TEXTURE_2D || prop.type === _enums["default"].PARAM_TEXTURE_CUBE) if (Array.isArray(param)) { + if (param.length > prop.count) { + console.error("Failed to set property [" + prop.name + "] : The length of texture array [" + param.length + "] is bigger than [" + prop.count + "]."); + return; + } + var slots = _int64_pool.add(); + for (var index = 0; index < param.length; ++index) slots[index] = this._allocTextureUnit(); + device.setTextureArray(prop.name, param, slots); + } else device.setTexture(prop.name, param, this._allocTextureUnit()); else prop.directly ? device.setUniformDirectly(prop.name, param) : device.setUniform(prop.name, param); + }; + _proto._draw = function _draw(item) { + var device = this._device; + var programLib = this._programLib; + var node = item.node, ia = item.ia, passes = item.passes, effect = item.effect; + _float2_pool.reset(); + _float3_pool.reset(); + _float4_pool.reset(); + _float9_pool.reset(); + _float16_pool.reset(); + _float64_pool.reset(); + _int2_pool.reset(); + _int3_pool.reset(); + _int4_pool.reset(); + _int64_pool.reset(); + node.getWorldMatrix(_m4_tmp); + device.setUniform("cc_matWorld", _valueTypes.Mat4.toArray(_float16_pool.add(), _m4_tmp)); + _valueTypes.Mat4.invert(_m4_tmp, _m4_tmp); + _valueTypes.Mat4.transpose(_m4_tmp, _m4_tmp); + device.setUniform("cc_matWorldIT", _valueTypes.Mat4.toArray(_float16_pool.add(), _m4_tmp)); + var defines = this._defines; + for (var i = 0; i < passes.length; ++i) { + var pass = passes[i]; + this._definesChanged && (pass._programKey = null); + var count = ia.count; + ia._vertexBuffer && device.setVertexBuffer(0, ia._vertexBuffer); + ia._indexBuffer && device.setIndexBuffer(ia._indexBuffer); + device.setPrimitiveType(ia._primitiveType); + Object.setPrototypeOf(defines, pass._defines); + var program = programLib.getProgram(pass, defines, effect.name); + device.setProgram(program); + var uniforms = program._uniforms; + var variants = pass._properties; + for (var j = 0; j < uniforms.length; j++) { + var prop = variants[uniforms[j].name]; + void 0 !== prop && this._setProperty(prop); + } + device.setCullMode(pass._cullMode); + if (pass._blend) { + device.enableBlend(); + device.setBlendFuncSep(pass._blendSrc, pass._blendDst, pass._blendSrcAlpha, pass._blendDstAlpha); + device.setBlendEqSep(pass._blendEq, pass._blendAlphaEq); + device.setBlendColor32(pass._blendColor); + } + if (pass._depthTest) { + device.enableDepthTest(); + device.setDepthFunc(pass._depthFunc); + } + pass._depthWrite && device.enableDepthWrite(); + device.setStencilTest(pass._stencilTest); + if (pass._stencilTest === _gfx["default"].STENCIL_ENABLE) { + device.setStencilFuncFront(pass._stencilFuncFront, pass._stencilRefFront, pass._stencilMaskFront); + device.setStencilOpFront(pass._stencilFailOpFront, pass._stencilZFailOpFront, pass._stencilZPassOpFront, pass._stencilWriteMaskFront); + device.setStencilFuncBack(pass._stencilFuncBack, pass._stencilRefBack, pass._stencilMaskBack); + device.setStencilOpBack(pass._stencilFailOpBack, pass._stencilZFailOpBack, pass._stencilZPassOpBack, pass._stencilWriteMaskBack); + } + device.draw(ia._start, count); + this._resetTextuerUnit(); + } + }; + return Base; + })(); + exports["default"] = Base; + module.exports = exports["default"]; + }), { + "../../core/value-types": 220, + "../enums": 242, + "../gfx": 247, + "../memop": 259, + "./program-lib": 239, + "./view": 241 + } ], + 237: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _gfx = _interopRequireDefault(require("../gfx")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + "value" in descriptor && (descriptor.writable = true); + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _createClass(Constructor, protoProps, staticProps) { + protoProps && _defineProperties(Constructor.prototype, protoProps); + staticProps && _defineProperties(Constructor, staticProps); + Object.defineProperty(Constructor, "prototype", { + writable: false + }); + return Constructor; + } + var InputAssembler = (function() { + function InputAssembler(vb, ib, pt) { + void 0 === pt && (pt = _gfx["default"].PT_TRIANGLES); + this._vertexBuffer = vb; + this._indexBuffer = ib; + this._primitiveType = pt; + this._start = 0; + this._count = -1; + } + _createClass(InputAssembler, [ { + key: "count", + get: function get() { + if (-1 !== this._count) return this._count; + if (this._indexBuffer) return this._indexBuffer.count; + if (this._vertexBuffer) return this._vertexBuffer.count; + return 0; + } + } ]); + return InputAssembler; + })(); + exports["default"] = InputAssembler; + module.exports = exports["default"]; + }), { + "../gfx": 247 + } ], + 238: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _gfx = _interopRequireDefault(require("../gfx")); + var _enums = _interopRequireDefault(require("../enums")); + var _valueType = _interopRequireDefault(require("../../core/value-types/value-type")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + var Pass = (function() { + function Pass(name, detailName, programName, stage, properties, defines) { + void 0 === properties && (properties = {}); + void 0 === defines && (defines = {}); + this._name = name; + this._detailName = detailName; + this._programName = programName; + this._programKey = null; + this._stage = stage; + this._properties = properties; + this._defines = defines; + this._cullMode = _gfx["default"].CULL_BACK; + this._blend = false; + this._blendEq = _gfx["default"].BLEND_FUNC_ADD; + this._blendAlphaEq = _gfx["default"].BLEND_FUNC_ADD; + this._blendSrc = _gfx["default"].BLEND_SRC_ALPHA; + this._blendDst = _gfx["default"].BLEND_ONE_MINUS_SRC_ALPHA; + this._blendSrcAlpha = _gfx["default"].BLEND_SRC_ALPHA; + this._blendDstAlpha = _gfx["default"].BLEND_ONE_MINUS_SRC_ALPHA; + this._blendColor = 4294967295; + this._depthTest = false; + this._depthWrite = false; + this._depthFunc = _gfx["default"].DS_FUNC_LESS, this._stencilTest = _gfx["default"].STENCIL_INHERIT; + this._stencilFuncFront = _gfx["default"].DS_FUNC_ALWAYS; + this._stencilRefFront = 0; + this._stencilMaskFront = 255; + this._stencilFailOpFront = _gfx["default"].STENCIL_OP_KEEP; + this._stencilZFailOpFront = _gfx["default"].STENCIL_OP_KEEP; + this._stencilZPassOpFront = _gfx["default"].STENCIL_OP_KEEP; + this._stencilWriteMaskFront = 255; + this._stencilFuncBack = _gfx["default"].DS_FUNC_ALWAYS; + this._stencilRefBack = 0; + this._stencilMaskBack = 255; + this._stencilFailOpBack = _gfx["default"].STENCIL_OP_KEEP; + this._stencilZFailOpBack = _gfx["default"].STENCIL_OP_KEEP; + this._stencilZPassOpBack = _gfx["default"].STENCIL_OP_KEEP; + this._stencilWriteMaskBack = 255; + } + var _proto = Pass.prototype; + _proto.setCullMode = function setCullMode(cullMode) { + void 0 === cullMode && (cullMode = _gfx["default"].CULL_BACK); + this._cullMode = cullMode; + }; + _proto.setBlend = function setBlend(enabled, blendEq, blendSrc, blendDst, blendAlphaEq, blendSrcAlpha, blendDstAlpha, blendColor) { + void 0 === enabled && (enabled = false); + void 0 === blendEq && (blendEq = _gfx["default"].BLEND_FUNC_ADD); + void 0 === blendSrc && (blendSrc = _gfx["default"].BLEND_SRC_ALPHA); + void 0 === blendDst && (blendDst = _gfx["default"].BLEND_ONE_MINUS_SRC_ALPHA); + void 0 === blendAlphaEq && (blendAlphaEq = _gfx["default"].BLEND_FUNC_ADD); + void 0 === blendSrcAlpha && (blendSrcAlpha = _gfx["default"].BLEND_SRC_ALPHA); + void 0 === blendDstAlpha && (blendDstAlpha = _gfx["default"].BLEND_ONE_MINUS_SRC_ALPHA); + void 0 === blendColor && (blendColor = 4294967295); + this._blend = enabled; + this._blendEq = blendEq; + this._blendSrc = blendSrc; + this._blendDst = blendDst; + this._blendAlphaEq = blendAlphaEq; + this._blendSrcAlpha = blendSrcAlpha; + this._blendDstAlpha = blendDstAlpha; + this._blendColor = blendColor; + }; + _proto.setDepth = function setDepth(depthTest, depthWrite, depthFunc) { + void 0 === depthTest && (depthTest = false); + void 0 === depthWrite && (depthWrite = false); + void 0 === depthFunc && (depthFunc = _gfx["default"].DS_FUNC_LESS); + this._depthTest = depthTest; + this._depthWrite = depthWrite; + this._depthFunc = depthFunc; + }; + _proto.setStencilFront = function setStencilFront(enabled, stencilFunc, stencilRef, stencilMask, stencilFailOp, stencilZFailOp, stencilZPassOp, stencilWriteMask) { + void 0 === enabled && (enabled = _gfx["default"].STENCIL_INHERIT); + void 0 === stencilFunc && (stencilFunc = _gfx["default"].DS_FUNC_ALWAYS); + void 0 === stencilRef && (stencilRef = 0); + void 0 === stencilMask && (stencilMask = 255); + void 0 === stencilFailOp && (stencilFailOp = _gfx["default"].STENCIL_OP_KEEP); + void 0 === stencilZFailOp && (stencilZFailOp = _gfx["default"].STENCIL_OP_KEEP); + void 0 === stencilZPassOp && (stencilZPassOp = _gfx["default"].STENCIL_OP_KEEP); + void 0 === stencilWriteMask && (stencilWriteMask = 255); + this._stencilTest = enabled; + this._stencilFuncFront = stencilFunc; + this._stencilRefFront = stencilRef; + this._stencilMaskFront = stencilMask; + this._stencilFailOpFront = stencilFailOp; + this._stencilZFailOpFront = stencilZFailOp; + this._stencilZPassOpFront = stencilZPassOp; + this._stencilWriteMaskFront = stencilWriteMask; + }; + _proto.setStencilEnabled = function setStencilEnabled(stencilTest) { + void 0 === stencilTest && (stencilTest = _gfx["default"].STENCIL_INHERIT); + this._stencilTest = stencilTest; + }; + _proto.setStencilBack = function setStencilBack(stencilTest, stencilFunc, stencilRef, stencilMask, stencilFailOp, stencilZFailOp, stencilZPassOp, stencilWriteMask) { + void 0 === stencilTest && (stencilTest = _gfx["default"].STENCIL_INHERIT); + void 0 === stencilFunc && (stencilFunc = _gfx["default"].DS_FUNC_ALWAYS); + void 0 === stencilRef && (stencilRef = 0); + void 0 === stencilMask && (stencilMask = 255); + void 0 === stencilFailOp && (stencilFailOp = _gfx["default"].STENCIL_OP_KEEP); + void 0 === stencilZFailOp && (stencilZFailOp = _gfx["default"].STENCIL_OP_KEEP); + void 0 === stencilZPassOp && (stencilZPassOp = _gfx["default"].STENCIL_OP_KEEP); + void 0 === stencilWriteMask && (stencilWriteMask = 255); + this._stencilTest = stencilTest; + this._stencilFuncBack = stencilFunc; + this._stencilRefBack = stencilRef; + this._stencilMaskBack = stencilMask; + this._stencilFailOpBack = stencilFailOp; + this._stencilZFailOpBack = stencilZFailOp; + this._stencilZPassOpBack = stencilZPassOp; + this._stencilWriteMaskBack = stencilWriteMask; + }; + _proto.setStage = function setStage(stage) { + this._stage = stage; + }; + _proto.setProperties = function setProperties(properties) { + this._properties = properties; + }; + _proto.getProperty = function getProperty(name) { + if (!this._properties[name]) return; + return this._properties[name].value; + }; + _proto.setProperty = function setProperty(name, value, directly) { + var prop = this._properties[name]; + if (!prop) return false; + prop.directly = directly; + if (Array.isArray(value)) { + var array = prop.value; + if (array.length !== value.length) { + cc.warnID(9105, this._name, name); + return; + } + for (var i = 0; i < value.length; i++) array[i] = value[i]; + } else if (value && !ArrayBuffer.isView(value)) if (prop.type === _enums["default"].PARAM_TEXTURE_2D) prop.value = value.getImpl(); else if (value instanceof _valueType["default"]) value.constructor.toArray(prop.value, value); else { + "object" === typeof value && cc.warnID(9106, this._name, name); + prop.value = value; + } else prop.value = value; + return true; + }; + _proto.getDefine = function getDefine(name) { + return this._defines[name]; + }; + _proto.define = function define(name, value, force) { + var oldValue = this._defines[name]; + if (!force && void 0 === oldValue) return false; + if (oldValue !== value) { + this._defines[name] = value; + this._programKey = null; + } + return true; + }; + _proto.clone = function clone() { + var pass = new Pass(this._programName); + Object.assign(pass, this); + var newProperties = {}; + var properties = this._properties; + for (var name in properties) { + var prop = properties[name]; + var newProp = newProperties[name] = {}; + var value = prop.value; + Array.isArray(value) ? newProp.value = value.concat() : ArrayBuffer.isView(value) ? newProp.value = new value.__proto__.constructor(value) : newProp.value = value; + for (var _name in prop) { + if ("value" === _name) continue; + newProp[_name] = prop[_name]; + } + } + pass._properties = newProperties; + pass._defines = Object.assign({}, this._defines); + return pass; + }; + return Pass; + })(); + exports["default"] = Pass; + module.exports = exports["default"]; + }), { + "../../core/value-types/value-type": 228, + "../enums": 242, + "../gfx": 247 + } ], + 239: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _gfx = _interopRequireDefault(require("../gfx")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + var _shdID = 0; + function _generateDefines(tmpDefines, defines) { + var results = []; + for (var i = 0; i < tmpDefines.length; i++) { + var name = tmpDefines[i].name; + var value = defines[name]; + "number" !== typeof value && (value = value ? 1 : 0); + results.push("#define " + name + " " + value); + } + return results.join("\n") + "\n"; + } + function _replaceMacroNums(string, tmpDefines, defines) { + var tmp = string; + for (var i = 0; i < tmpDefines.length; i++) { + var name = tmpDefines[i].name; + var value = defines[name]; + if (Number.isInteger(value)) { + var reg = new RegExp(name, "g"); + tmp = tmp.replace(reg, value); + } + } + return tmp; + } + function _unrollLoops(string) { + var pattern = /#pragma for (\w+) in range\(\s*(\d+)\s*,\s*(\d+)\s*\)([\s\S]+?)#pragma endFor/g; + function replace(match, index, begin, end, snippet) { + var unroll = ""; + var parsedBegin = parseInt(begin); + var parsedEnd = parseInt(end); + (parsedBegin.isNaN || parsedEnd.isNaN) && console.error("Unroll For Loops Error: begin and end of range must be an int num."); + for (var i = parsedBegin; i < parsedEnd; ++i) unroll += snippet.replace(new RegExp("{" + index + "}", "g"), i); + return unroll; + } + return string.replace(pattern, replace); + } + function _replaceHighp(string) { + return string.replace(/\bhighp\b/g, "mediump"); + } + var ProgramLib = (function() { + function ProgramLib(device) { + this._device = device; + this._templates = {}; + this._cache = {}; + this._checkPrecision(); + } + var _proto = ProgramLib.prototype; + _proto.clear = function clear() { + this._templates = {}; + this._cache = {}; + }; + _proto.define = function define(prog) { + var name = prog.name, defines = prog.defines, glsl1 = prog.glsl1; + var _ref = glsl1 || prog, vert = _ref.vert, frag = _ref.frag; + if (this._templates[name]) return; + var id = ++_shdID; + var offset = 0; + for (var i = 0; i < defines.length; ++i) { + var def = defines[i]; + var cnt = 1; + if ("number" === def.type) { + var range = def.range || []; + def.min = range[0] || 0; + def.max = range[1] || 4; + cnt = Math.ceil(Math.log2(def.max - def.min)); + def._map = function(value) { + return value - this.min << this._offset; + }.bind(def); + } else def._map = function(value) { + if (value) return 1 << this._offset; + return 0; + }.bind(def); + def._offset = offset; + offset += cnt; + } + var uniforms = prog.uniforms || []; + if (prog.samplers) for (var _i = 0; _i < prog.samplers.length; _i++) uniforms.push(prog.samplers[_i]); + if (prog.blocks) for (var _i2 = 0; _i2 < prog.blocks.length; _i2++) { + var _defines = prog.blocks[_i2].defines; + var members = prog.blocks[_i2].members; + for (var j = 0; j < members.length; j++) uniforms.push({ + defines: _defines, + name: members[j].name, + type: members[j].type + }); + } + this._templates[name] = { + id: id, + name: name, + vert: vert, + frag: frag, + defines: defines, + attributes: prog.attributes, + uniforms: uniforms, + extensions: prog.extensions + }; + }; + _proto.getTemplate = function getTemplate(name) { + return this._templates[name]; + }; + _proto.hasProgram = function hasProgram(name) { + return void 0 !== this._templates[name]; + }; + _proto.getKey = function getKey(name, defines) { + var tmpl = this._templates[name]; + var key = 0; + for (var i = 0; i < tmpl.defines.length; ++i) { + var tmplDefs = tmpl.defines[i]; + var value = defines[tmplDefs.name]; + if (void 0 === value) continue; + key |= tmplDefs._map(value); + } + return tmpl.id + ":" + key; + }; + _proto.getProgram = function getProgram(pass, defines, errPrefix) { + var key = pass._programKey = pass._programKey || this.getKey(pass._programName, defines); + var program = this._cache[key]; + if (program) return program; + var tmpl = this._templates[pass._programName]; + var customDef = _generateDefines(tmpl.defines, defines); + var vert = _replaceMacroNums(tmpl.vert, tmpl.defines, defines); + vert = customDef + _unrollLoops(vert); + this._highpSupported || (vert = _replaceHighp(vert)); + var frag = _replaceMacroNums(tmpl.frag, tmpl.defines, defines); + frag = customDef + _unrollLoops(frag); + this._highpSupported || (frag = _replaceHighp(frag)); + program = new _gfx["default"].Program(this._device, { + vert: vert, + frag: frag + }); + var errors = program.link(); + if (errors) { + var vertLines = vert.split("\n"); + var fragLines = frag.split("\n"); + var defineLength = tmpl.defines.length; + errors.forEach((function(err) { + var line = err.line - 1; + var originLine = err.line - defineLength; + var lines = "vs" === err.type ? vertLines : fragLines; + var source = lines[line]; + var info = err.info || "Failed to compile " + err.type + " " + err.fileID + " (ln " + originLine + "): \n " + err.message + ": \n " + source; + cc.error(errPrefix + " : " + info); + })); + } + this._cache[key] = program; + return program; + }; + _proto._checkPrecision = function _checkPrecision() { + var gl = this._device._gl; + var highpSupported = false; + if (gl.getShaderPrecisionFormat) { + var vertHighp = gl.getShaderPrecisionFormat(gl.VERTEX_SHADER, gl.HIGH_FLOAT); + var fragHighp = gl.getShaderPrecisionFormat(gl.FRAGMENT_SHADER, gl.HIGH_FLOAT); + highpSupported = vertHighp && vertHighp.precision > 0 && fragHighp && fragHighp.precision > 0; + } + highpSupported || cc.warnID(9102); + this._highpSupported = highpSupported; + }; + return ProgramLib; + })(); + exports["default"] = ProgramLib; + module.exports = exports["default"]; + }), { + "../gfx": 247 + } ], + 240: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + "value" in descriptor && (descriptor.writable = true); + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _createClass(Constructor, protoProps, staticProps) { + protoProps && _defineProperties(Constructor.prototype, protoProps); + staticProps && _defineProperties(Constructor, staticProps); + Object.defineProperty(Constructor, "prototype", { + writable: false + }); + return Constructor; + } + var Technique = (function() { + function Technique(name, passes) { + this._name = name; + this._passes = passes; + } + var _proto = Technique.prototype; + _proto.clone = function clone() { + var passes = []; + for (var i = 0; i < this._passes.length; i++) passes.push(this._passes[i].clone()); + return new Technique(this._name, passes); + }; + _createClass(Technique, [ { + key: "name", + get: function get() { + return this._name; + } + }, { + key: "passes", + get: function get() { + return this._passes; + } + } ]); + return Technique; + })(); + exports["default"] = Technique; + module.exports = exports["default"]; + }), {} ], + 241: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _valueTypes = require("../../core/value-types"); + var _enums = _interopRequireDefault(require("../enums")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + var _m4_tmp = new _valueTypes.Mat4(); + var _genID = 0; + var View = (function() { + function View() { + this._id = _genID++; + this._priority = 0; + this._rect = { + x: 0, + y: 0, + w: 1, + h: 1 + }; + this._color = new _valueTypes.Vec4(.3, .3, .3, 1); + this._depth = 1; + this._stencil = 0; + this._clearFlags = _enums["default"].CLEAR_COLOR | _enums["default"].CLEAR_DEPTH; + this._clearModel = null; + this._matView = cc.mat4(); + this._matViewInv = cc.mat4(); + this._matProj = cc.mat4(); + this._matViewProj = cc.mat4(); + this._matInvViewProj = cc.mat4(); + this._stages = []; + this._cullingByID = false; + this._framebuffer = null; + this._shadowLight = null; + this._cullingMask = 4294967295; + } + var _proto = View.prototype; + _proto.getForward = function getForward(out) { + var m = this._matView.m; + return _valueTypes.Vec3.set(out, -m[2], -m[6], -m[10]); + }; + _proto.getPosition = function getPosition(out) { + _valueTypes.Mat4.invert(_m4_tmp, this._matView); + return _valueTypes.Mat4.getTranslation(out, _m4_tmp); + }; + return View; + })(); + exports["default"] = View; + module.exports = exports["default"]; + }), { + "../../core/value-types": 220, + "../enums": 242 + } ], + 242: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _mappings = require("./build/mappings"); + var _default = { + PROJ_PERSPECTIVE: 0, + PROJ_ORTHO: 1, + LIGHT_DIRECTIONAL: 0, + LIGHT_POINT: 1, + LIGHT_SPOT: 2, + LIGHT_AMBIENT: 3, + SHADOW_NONE: 0, + SHADOW_HARD: 1, + SHADOW_SOFT: 2, + PARAM_INT: _mappings.typeMap["int"], + PARAM_INT2: _mappings.typeMap.ivec2, + PARAM_INT3: _mappings.typeMap.ivec3, + PARAM_INT4: _mappings.typeMap.ivec4, + PARAM_FLOAT: _mappings.typeMap["float"], + PARAM_FLOAT2: _mappings.typeMap.vec2, + PARAM_FLOAT3: _mappings.typeMap.vec3, + PARAM_FLOAT4: _mappings.typeMap.vec4, + PARAM_MAT2: _mappings.typeMap.mat2, + PARAM_MAT3: _mappings.typeMap.mat3, + PARAM_MAT4: _mappings.typeMap.mat4, + PARAM_TEXTURE_2D: _mappings.typeMap.sampler2D, + PARAM_TEXTURE_CUBE: _mappings.typeMap.samplerCube, + CLEAR_COLOR: 1, + CLEAR_DEPTH: 2, + CLEAR_STENCIL: 4, + CLEAR_SKYBOX: 8, + BUFFER_VIEW_INT8: 0, + BUFFER_VIEW_UINT8: 1, + BUFFER_VIEW_INT16: 2, + BUFFER_VIEW_UINT16: 3, + BUFFER_VIEW_INT32: 4, + BUFFER_VIEW_UINT32: 5, + BUFFER_VIEW_FLOAT32: 6 + }; + exports["default"] = _default; + module.exports = exports["default"]; + }), { + "./build/mappings": 235 + } ], + 243: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _state = _interopRequireDefault(require("./state")); + var _enums = require("./enums"); + var _texture2d = _interopRequireDefault(require("./texture-2d")); + var _textureCube = _interopRequireDefault(require("./texture-cube")); + var _type2uniformCommit2, _type2uniformArrayCom; + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + "value" in descriptor && (descriptor.writable = true); + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _createClass(Constructor, protoProps, staticProps) { + protoProps && _defineProperties(Constructor.prototype, protoProps); + staticProps && _defineProperties(Constructor, staticProps); + Object.defineProperty(Constructor, "prototype", { + writable: false + }); + return Constructor; + } + var GL_INT = 5124; + var GL_FLOAT = 5126; + var GL_FLOAT_VEC2 = 35664; + var GL_FLOAT_VEC3 = 35665; + var GL_FLOAT_VEC4 = 35666; + var GL_INT_VEC2 = 35667; + var GL_INT_VEC3 = 35668; + var GL_INT_VEC4 = 35669; + var GL_BOOL = 35670; + var GL_BOOL_VEC2 = 35671; + var GL_BOOL_VEC3 = 35672; + var GL_BOOL_VEC4 = 35673; + var GL_FLOAT_MAT2 = 35674; + var GL_FLOAT_MAT3 = 35675; + var GL_FLOAT_MAT4 = 35676; + var GL_SAMPLER_2D = 35678; + var GL_SAMPLER_CUBE = 35680; + var _type2uniformCommit = (_type2uniformCommit2 = {}, _type2uniformCommit2[GL_INT] = function(gl, id, value) { + gl.uniform1i(id, value); + }, _type2uniformCommit2[GL_FLOAT] = function(gl, id, value) { + gl.uniform1f(id, value); + }, _type2uniformCommit2[GL_FLOAT_VEC2] = function(gl, id, value) { + gl.uniform2fv(id, value); + }, _type2uniformCommit2[GL_FLOAT_VEC3] = function(gl, id, value) { + gl.uniform3fv(id, value); + }, _type2uniformCommit2[GL_FLOAT_VEC4] = function(gl, id, value) { + gl.uniform4fv(id, value); + }, _type2uniformCommit2[GL_INT_VEC2] = function(gl, id, value) { + gl.uniform2iv(id, value); + }, _type2uniformCommit2[GL_INT_VEC3] = function(gl, id, value) { + gl.uniform3iv(id, value); + }, _type2uniformCommit2[GL_INT_VEC4] = function(gl, id, value) { + gl.uniform4iv(id, value); + }, _type2uniformCommit2[GL_BOOL] = function(gl, id, value) { + gl.uniform1i(id, value); + }, _type2uniformCommit2[GL_BOOL_VEC2] = function(gl, id, value) { + gl.uniform2iv(id, value); + }, _type2uniformCommit2[GL_BOOL_VEC3] = function(gl, id, value) { + gl.uniform3iv(id, value); + }, _type2uniformCommit2[GL_BOOL_VEC4] = function(gl, id, value) { + gl.uniform4iv(id, value); + }, _type2uniformCommit2[GL_FLOAT_MAT2] = function(gl, id, value) { + gl.uniformMatrix2fv(id, false, value); + }, _type2uniformCommit2[GL_FLOAT_MAT3] = function(gl, id, value) { + gl.uniformMatrix3fv(id, false, value); + }, _type2uniformCommit2[GL_FLOAT_MAT4] = function(gl, id, value) { + gl.uniformMatrix4fv(id, false, value); + }, _type2uniformCommit2[GL_SAMPLER_2D] = function(gl, id, value) { + gl.uniform1i(id, value); + }, _type2uniformCommit2[GL_SAMPLER_CUBE] = function(gl, id, value) { + gl.uniform1i(id, value); + }, _type2uniformCommit2); + var _type2uniformArrayCommit = (_type2uniformArrayCom = {}, _type2uniformArrayCom[GL_INT] = function(gl, id, value) { + gl.uniform1iv(id, value); + }, _type2uniformArrayCom[GL_FLOAT] = function(gl, id, value) { + gl.uniform1fv(id, value); + }, _type2uniformArrayCom[GL_FLOAT_VEC2] = function(gl, id, value) { + gl.uniform2fv(id, value); + }, _type2uniformArrayCom[GL_FLOAT_VEC3] = function(gl, id, value) { + gl.uniform3fv(id, value); + }, _type2uniformArrayCom[GL_FLOAT_VEC4] = function(gl, id, value) { + gl.uniform4fv(id, value); + }, _type2uniformArrayCom[GL_INT_VEC2] = function(gl, id, value) { + gl.uniform2iv(id, value); + }, _type2uniformArrayCom[GL_INT_VEC3] = function(gl, id, value) { + gl.uniform3iv(id, value); + }, _type2uniformArrayCom[GL_INT_VEC4] = function(gl, id, value) { + gl.uniform4iv(id, value); + }, _type2uniformArrayCom[GL_BOOL] = function(gl, id, value) { + gl.uniform1iv(id, value); + }, _type2uniformArrayCom[GL_BOOL_VEC2] = function(gl, id, value) { + gl.uniform2iv(id, value); + }, _type2uniformArrayCom[GL_BOOL_VEC3] = function(gl, id, value) { + gl.uniform3iv(id, value); + }, _type2uniformArrayCom[GL_BOOL_VEC4] = function(gl, id, value) { + gl.uniform4iv(id, value); + }, _type2uniformArrayCom[GL_FLOAT_MAT2] = function(gl, id, value) { + gl.uniformMatrix2fv(id, false, value); + }, _type2uniformArrayCom[GL_FLOAT_MAT3] = function(gl, id, value) { + gl.uniformMatrix3fv(id, false, value); + }, _type2uniformArrayCom[GL_FLOAT_MAT4] = function(gl, id, value) { + gl.uniformMatrix4fv(id, false, value); + }, _type2uniformArrayCom[GL_SAMPLER_2D] = function(gl, id, value) { + gl.uniform1iv(id, value); + }, _type2uniformArrayCom[GL_SAMPLER_CUBE] = function(gl, id, value) { + gl.uniform1iv(id, value); + }, _type2uniformArrayCom); + function _commitBlendStates(gl, cur, next) { + if (cur.blend !== next.blend) { + if (!next.blend) { + gl.disable(gl.BLEND); + return; + } + gl.enable(gl.BLEND); + next.blendSrc !== _enums.enums.BLEND_CONSTANT_COLOR && next.blendSrc !== _enums.enums.BLEND_ONE_MINUS_CONSTANT_COLOR && next.blendDst !== _enums.enums.BLEND_CONSTANT_COLOR && next.blendDst !== _enums.enums.BLEND_ONE_MINUS_CONSTANT_COLOR || gl.blendColor((next.blendColor >> 24) / 255, (next.blendColor >> 16 & 255) / 255, (next.blendColor >> 8 & 255) / 255, (255 & next.blendColor) / 255); + if (next.blendSep) { + gl.blendFuncSeparate(next.blendSrc, next.blendDst, next.blendSrcAlpha, next.blendDstAlpha); + gl.blendEquationSeparate(next.blendEq, next.blendAlphaEq); + } else { + gl.blendFunc(next.blendSrc, next.blendDst); + gl.blendEquation(next.blendEq); + } + return; + } + if (false === next.blend) return; + cur.blendColor !== next.blendColor && gl.blendColor((next.blendColor >> 24) / 255, (next.blendColor >> 16 & 255) / 255, (next.blendColor >> 8 & 255) / 255, (255 & next.blendColor) / 255); + if (cur.blendSep !== next.blendSep) { + if (next.blendSep) { + gl.blendFuncSeparate(next.blendSrc, next.blendDst, next.blendSrcAlpha, next.blendDstAlpha); + gl.blendEquationSeparate(next.blendEq, next.blendAlphaEq); + } else { + gl.blendFunc(next.blendSrc, next.blendDst); + gl.blendEquation(next.blendEq); + } + return; + } + if (next.blendSep) { + cur.blendSrc === next.blendSrc && cur.blendDst === next.blendDst && cur.blendSrcAlpha === next.blendSrcAlpha && cur.blendDstAlpha === next.blendDstAlpha || gl.blendFuncSeparate(next.blendSrc, next.blendDst, next.blendSrcAlpha, next.blendDstAlpha); + cur.blendEq === next.blendEq && cur.blendAlphaEq === next.blendAlphaEq || gl.blendEquationSeparate(next.blendEq, next.blendAlphaEq); + } else { + cur.blendSrc === next.blendSrc && cur.blendDst === next.blendDst || gl.blendFunc(next.blendSrc, next.blendDst); + cur.blendEq !== next.blendEq && gl.blendEquation(next.blendEq); + } + } + function _commitDepthStates(gl, cur, next) { + if (cur.depthTest !== next.depthTest) { + if (!next.depthTest) { + gl.disable(gl.DEPTH_TEST); + return; + } + gl.enable(gl.DEPTH_TEST); + gl.depthFunc(next.depthFunc); + gl.depthMask(next.depthWrite); + return; + } + cur.depthWrite !== next.depthWrite && gl.depthMask(next.depthWrite); + if (false === next.depthTest) { + if (next.depthWrite) { + next.depthTest = true; + next.depthFunc = _enums.enums.DS_FUNC_ALWAYS; + gl.enable(gl.DEPTH_TEST); + gl.depthFunc(next.depthFunc); + } + return; + } + cur.depthFunc !== next.depthFunc && gl.depthFunc(next.depthFunc); + } + function _commitStencilStates(gl, cur, next) { + if (next.stencilTest === _enums.enums.STENCIL_INHERIT) return; + if (next.stencilTest !== cur.stencilTest) { + if (next.stencilTest === _enums.enums.STENCIL_DISABLE) { + gl.disable(gl.STENCIL_TEST); + return; + } + gl.enable(gl.STENCIL_TEST); + if (next.stencilSep) { + gl.stencilFuncSeparate(gl.FRONT, next.stencilFuncFront, next.stencilRefFront, next.stencilMaskFront); + gl.stencilMaskSeparate(gl.FRONT, next.stencilWriteMaskFront); + gl.stencilOpSeparate(gl.FRONT, next.stencilFailOpFront, next.stencilZFailOpFront, next.stencilZPassOpFront); + gl.stencilFuncSeparate(gl.BACK, next.stencilFuncBack, next.stencilRefBack, next.stencilMaskBack); + gl.stencilMaskSeparate(gl.BACK, next.stencilWriteMaskBack); + gl.stencilOpSeparate(gl.BACK, next.stencilFailOpBack, next.stencilZFailOpBack, next.stencilZPassOpBack); + } else { + gl.stencilFunc(next.stencilFuncFront, next.stencilRefFront, next.stencilMaskFront); + gl.stencilMask(next.stencilWriteMaskFront); + gl.stencilOp(next.stencilFailOpFront, next.stencilZFailOpFront, next.stencilZPassOpFront); + } + return; + } + if (next.stencilTest === _enums.enums.STENCIL_DISABLE) return; + if (cur.stencilSep !== next.stencilSep) { + if (next.stencilSep) { + gl.stencilFuncSeparate(gl.FRONT, next.stencilFuncFront, next.stencilRefFront, next.stencilMaskFront); + gl.stencilMaskSeparate(gl.FRONT, next.stencilWriteMaskFront); + gl.stencilOpSeparate(gl.FRONT, next.stencilFailOpFront, next.stencilZFailOpFront, next.stencilZPassOpFront); + gl.stencilFuncSeparate(gl.BACK, next.stencilFuncBack, next.stencilRefBack, next.stencilMaskBack); + gl.stencilMaskSeparate(gl.BACK, next.stencilWriteMaskBack); + gl.stencilOpSeparate(gl.BACK, next.stencilFailOpBack, next.stencilZFailOpBack, next.stencilZPassOpBack); + } else { + gl.stencilFunc(next.stencilFuncFront, next.stencilRefFront, next.stencilMaskFront); + gl.stencilMask(next.stencilWriteMaskFront); + gl.stencilOp(next.stencilFailOpFront, next.stencilZFailOpFront, next.stencilZPassOpFront); + } + return; + } + if (next.stencilSep) { + cur.stencilFuncFront === next.stencilFuncFront && cur.stencilRefFront === next.stencilRefFront && cur.stencilMaskFront === next.stencilMaskFront || gl.stencilFuncSeparate(gl.FRONT, next.stencilFuncFront, next.stencilRefFront, next.stencilMaskFront); + cur.stencilWriteMaskFront !== next.stencilWriteMaskFront && gl.stencilMaskSeparate(gl.FRONT, next.stencilWriteMaskFront); + cur.stencilFailOpFront === next.stencilFailOpFront && cur.stencilZFailOpFront === next.stencilZFailOpFront && cur.stencilZPassOpFront === next.stencilZPassOpFront || gl.stencilOpSeparate(gl.FRONT, next.stencilFailOpFront, next.stencilZFailOpFront, next.stencilZPassOpFront); + cur.stencilFuncBack === next.stencilFuncBack && cur.stencilRefBack === next.stencilRefBack && cur.stencilMaskBack === next.stencilMaskBack || gl.stencilFuncSeparate(gl.BACK, next.stencilFuncBack, next.stencilRefBack, next.stencilMaskBack); + cur.stencilWriteMaskBack !== next.stencilWriteMaskBack && gl.stencilMaskSeparate(gl.BACK, next.stencilWriteMaskBack); + cur.stencilFailOpBack === next.stencilFailOpBack && cur.stencilZFailOpBack === next.stencilZFailOpBack && cur.stencilZPassOpBack === next.stencilZPassOpBack || gl.stencilOpSeparate(gl.BACK, next.stencilFailOpBack, next.stencilZFailOpBack, next.stencilZPassOpBack); + } else { + cur.stencilFuncFront === next.stencilFuncFront && cur.stencilRefFront === next.stencilRefFront && cur.stencilMaskFront === next.stencilMaskFront || gl.stencilFunc(next.stencilFuncFront, next.stencilRefFront, next.stencilMaskFront); + cur.stencilWriteMaskFront !== next.stencilWriteMaskFront && gl.stencilMask(next.stencilWriteMaskFront); + cur.stencilFailOpFront === next.stencilFailOpFront && cur.stencilZFailOpFront === next.stencilZFailOpFront && cur.stencilZPassOpFront === next.stencilZPassOpFront || gl.stencilOp(next.stencilFailOpFront, next.stencilZFailOpFront, next.stencilZPassOpFront); + } + } + function _commitCullMode(gl, cur, next) { + if (cur.cullMode === next.cullMode) return; + if (next.cullMode === _enums.enums.CULL_NONE) { + gl.disable(gl.CULL_FACE); + return; + } + gl.enable(gl.CULL_FACE); + gl.cullFace(next.cullMode); + } + function _commitVertexBuffers(device, gl, cur, next) { + var attrsDirty = false; + if (-1 === next.maxStream) return; + if (cur.maxStream !== next.maxStream) attrsDirty = true; else if (cur.program !== next.program) attrsDirty = true; else for (var i = 0; i < next.maxStream + 1; ++i) if (cur.vertexBuffers[i] !== next.vertexBuffers[i] || cur.vertexBufferOffsets[i] !== next.vertexBufferOffsets[i]) { + attrsDirty = true; + break; + } + if (attrsDirty) { + for (var _i = 0; _i < device._caps.maxVertexAttribs; ++_i) device._newAttributes[_i] = 0; + for (var _i2 = 0; _i2 < next.maxStream + 1; ++_i2) { + var vb = next.vertexBuffers[_i2]; + var vbOffset = next.vertexBufferOffsets[_i2]; + if (!vb || -1 === vb._glID) continue; + gl.bindBuffer(gl.ARRAY_BUFFER, vb._glID); + for (var j = 0; j < next.program._attributes.length; ++j) { + var attr = next.program._attributes[j]; + var el = vb._format.element(attr.name); + if (!el) { + console.warn("Can not find vertex attribute: " + attr.name); + continue; + } + if (0 === device._enabledAttributes[attr.location]) { + gl.enableVertexAttribArray(attr.location); + device._enabledAttributes[attr.location] = 1; + } + device._newAttributes[attr.location] = 1; + gl.vertexAttribPointer(attr.location, el.num, el.type, el.normalize, el.stride, el.offset + vbOffset * el.stride); + } + } + for (var _i3 = 0; _i3 < device._caps.maxVertexAttribs; ++_i3) if (device._enabledAttributes[_i3] !== device._newAttributes[_i3]) { + gl.disableVertexAttribArray(_i3); + device._enabledAttributes[_i3] = 0; + } + } + } + function _commitTextures(gl, cur, next) { + for (var i = 0; i < next.maxTextureSlot + 1; ++i) if (cur.textureUnits[i] !== next.textureUnits[i]) { + var texture = next.textureUnits[i]; + if (texture && -1 !== texture._glID) { + gl.activeTexture(gl.TEXTURE0 + i); + gl.bindTexture(texture._target, texture._glID); + } + } + } + function _attach(gl, location, attachment, face) { + void 0 === face && (face = 0); + attachment instanceof _texture2d["default"] ? gl.framebufferTexture2D(gl.FRAMEBUFFER, location, gl.TEXTURE_2D, attachment._glID, 0) : attachment instanceof _textureCube["default"] ? gl.framebufferTexture2D(gl.FRAMEBUFFER, location, gl.TEXTURE_CUBE_MAP_POSITIVE_X + face, attachment._glID, 0) : gl.framebufferRenderbuffer(gl.FRAMEBUFFER, location, gl.RENDERBUFFER, attachment._glID); + } + var Device = (function() { + function Device(canvasEL, opts) { + var gl; + opts = opts || {}; + void 0 === opts.alpha && (opts.alpha = false); + void 0 === opts.stencil && (opts.stencil = true); + void 0 === opts.depth && (opts.depth = true); + void 0 === opts.antialias && (opts.antialias = false); + void 0 === opts.preserveDrawingBuffer && (opts.preserveDrawingBuffer = false); + try { + gl = canvasEL.getContext("webgl", opts) || canvasEL.getContext("experimental-webgl", opts) || canvasEL.getContext("webkit-3d", opts) || canvasEL.getContext("moz-webgl", opts); + } catch (err) { + console.error(err); + return; + } + gl || console.error("This device does not support webgl"); + this._gl = gl; + this._extensions = {}; + this._caps = {}; + this._stats = { + texture: 0, + vb: 0, + ib: 0, + drawcalls: 0 + }; + this._initExtensions([ "EXT_texture_filter_anisotropic", "EXT_shader_texture_lod", "OES_standard_derivatives", "OES_texture_float", "OES_texture_float_linear", "OES_texture_half_float", "OES_texture_half_float_linear", "OES_vertex_array_object", "WEBGL_compressed_texture_atc", "WEBGL_compressed_texture_etc", "WEBGL_compressed_texture_etc1", "WEBGL_compressed_texture_pvrtc", "WEBGL_compressed_texture_s3tc", "WEBGL_depth_texture", "WEBGL_draw_buffers" ]); + this._initCaps(); + this._initStates(); + _state["default"].initDefault(this); + this._current = new _state["default"](this); + this._next = new _state["default"](this); + this._uniforms = {}; + this._vx = this._vy = this._vw = this._vh = 0; + this._sx = this._sy = this._sw = this._sh = 0; + this._framebuffer = null; + this._enabledAttributes = new Array(this._caps.maxVertexAttribs); + this._newAttributes = new Array(this._caps.maxVertexAttribs); + for (var i = 0; i < this._caps.maxVertexAttribs; ++i) { + this._enabledAttributes[i] = 0; + this._newAttributes[i] = 0; + } + } + var _proto = Device.prototype; + _proto._initExtensions = function _initExtensions(extensions) { + var gl = this._gl; + for (var i = 0; i < extensions.length; ++i) { + var name = extensions[i]; + var vendorPrefixes = [ "", "WEBKIT_", "MOZ_" ]; + for (var j = 0; j < vendorPrefixes.length; j++) try { + var ext = gl.getExtension(vendorPrefixes[j] + name); + if (ext) { + this._extensions[name] = ext; + break; + } + } catch (e) { + console.error(e); + } + } + }; + _proto._initCaps = function _initCaps() { + var gl = this._gl; + var extDrawBuffers = this.ext("WEBGL_draw_buffers"); + this._caps.maxVertexStreams = 4; + this._caps.maxVertexTextures = gl.getParameter(gl.MAX_VERTEX_TEXTURE_IMAGE_UNITS); + this._caps.maxFragUniforms = gl.getParameter(gl.MAX_FRAGMENT_UNIFORM_VECTORS); + this._caps.maxTextureUnits = gl.getParameter(gl.MAX_TEXTURE_IMAGE_UNITS); + this._caps.maxVertexAttribs = gl.getParameter(gl.MAX_VERTEX_ATTRIBS); + this._caps.maxTextureSize = gl.getParameter(gl.MAX_TEXTURE_SIZE); + this._caps.maxDrawBuffers = extDrawBuffers ? gl.getParameter(extDrawBuffers.MAX_DRAW_BUFFERS_WEBGL) : 1; + this._caps.maxColorAttachments = extDrawBuffers ? gl.getParameter(extDrawBuffers.MAX_COLOR_ATTACHMENTS_WEBGL) : 1; + }; + _proto._initStates = function _initStates() { + var gl = this._gl; + gl.disable(gl.BLEND); + gl.blendFunc(gl.ONE, gl.ZERO); + gl.blendEquation(gl.FUNC_ADD); + gl.blendColor(1, 1, 1, 1); + gl.colorMask(true, true, true, true); + gl.enable(gl.CULL_FACE); + gl.cullFace(gl.BACK); + gl.disable(gl.DEPTH_TEST); + gl.depthFunc(gl.LESS); + gl.depthMask(false); + gl.disable(gl.POLYGON_OFFSET_FILL); + gl.depthRange(0, 1); + gl.disable(gl.STENCIL_TEST); + gl.stencilFunc(gl.ALWAYS, 0, 255); + gl.stencilMask(255); + gl.stencilOp(gl.KEEP, gl.KEEP, gl.KEEP); + gl.clearDepth(1); + gl.clearColor(0, 0, 0, 0); + gl.clearStencil(0); + gl.disable(gl.SCISSOR_TEST); + }; + _proto._restoreTexture = function _restoreTexture(unit) { + var gl = this._gl; + var texture = this._current.textureUnits[unit]; + texture && -1 !== texture._glID ? gl.bindTexture(texture._target, texture._glID) : gl.bindTexture(gl.TEXTURE_2D, null); + }; + _proto._restoreIndexBuffer = function _restoreIndexBuffer() { + var gl = this._gl; + var ib = this._current.indexBuffer; + ib && -1 !== ib._glID ? gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, ib._glID) : gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, null); + }; + _proto.ext = function ext(name) { + return this._extensions[name]; + }; + _proto.allowFloatTexture = function allowFloatTexture() { + return null != this.ext("OES_texture_float"); + }; + _proto.setFrameBuffer = function setFrameBuffer(fb) { + if (this._framebuffer === fb) return; + this._framebuffer = fb; + var gl = this._gl; + if (!fb) { + gl.bindFramebuffer(gl.FRAMEBUFFER, null); + return; + } + gl.bindFramebuffer(gl.FRAMEBUFFER, fb._glID); + var numColors = fb._colors.length; + for (var i = 0; i < numColors; ++i) { + var colorBuffer = fb._colors[i]; + _attach(gl, gl.COLOR_ATTACHMENT0 + i, colorBuffer); + } + for (var _i4 = numColors; _i4 < this._caps.maxColorAttachments; ++_i4) gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0 + _i4, gl.TEXTURE_2D, null, 0); + fb._depth && _attach(gl, gl.DEPTH_ATTACHMENT, fb._depth); + fb._stencil && _attach(gl, gl.STENCIL_ATTACHMENT, fb._stencil); + fb._depthStencil && _attach(gl, gl.DEPTH_STENCIL_ATTACHMENT, fb._depthStencil); + }; + _proto.setViewport = function setViewport(x, y, w, h) { + if (this._vx !== x || this._vy !== y || this._vw !== w || this._vh !== h) { + this._gl.viewport(x, y, w, h); + this._vx = x; + this._vy = y; + this._vw = w; + this._vh = h; + } + }; + _proto.setScissor = function setScissor(x, y, w, h) { + if (this._sx !== x || this._sy !== y || this._sw !== w || this._sh !== h) { + this._gl.scissor(x, y, w, h); + this._sx = x; + this._sy = y; + this._sw = w; + this._sh = h; + } + }; + _proto.clear = function clear(opts) { + if (void 0 === opts.color && void 0 === opts.depth && void 0 === opts.stencil) return; + var gl = this._gl; + var flags = 0; + if (void 0 !== opts.color) { + flags |= gl.COLOR_BUFFER_BIT; + gl.clearColor(opts.color[0], opts.color[1], opts.color[2], opts.color[3]); + } + if (void 0 !== opts.depth) { + flags |= gl.DEPTH_BUFFER_BIT; + gl.clearDepth(opts.depth); + gl.enable(gl.DEPTH_TEST); + gl.depthMask(true); + gl.depthFunc(gl.ALWAYS); + } + if (void 0 !== opts.stencil) { + flags |= gl.STENCIL_BUFFER_BIT; + gl.clearStencil(opts.stencil); + } + gl.clear(flags); + if (void 0 !== opts.depth) if (false === this._current.depthTest) gl.disable(gl.DEPTH_TEST); else { + false === this._current.depthWrite && gl.depthMask(false); + this._current.depthFunc !== _enums.enums.DS_FUNC_ALWAYS && gl.depthFunc(this._current.depthFunc); + } + }; + _proto.enableBlend = function enableBlend() { + this._next.blend = true; + }; + _proto.enableDepthTest = function enableDepthTest() { + this._next.depthTest = true; + }; + _proto.enableDepthWrite = function enableDepthWrite() { + this._next.depthWrite = true; + }; + _proto.setStencilTest = function setStencilTest(stencilTest) { + this._next.stencilTest = stencilTest; + }; + _proto.setStencilFunc = function setStencilFunc(func, ref, mask) { + this._next.stencilSep = false; + this._next.stencilFuncFront = this._next.stencilFuncBack = func; + this._next.stencilRefFront = this._next.stencilRefBack = ref; + this._next.stencilMaskFront = this._next.stencilMaskBack = mask; + }; + _proto.setStencilFuncFront = function setStencilFuncFront(func, ref, mask) { + this._next.stencilSep = true; + this._next.stencilFuncFront = func; + this._next.stencilRefFront = ref; + this._next.stencilMaskFront = mask; + }; + _proto.setStencilFuncBack = function setStencilFuncBack(func, ref, mask) { + this._next.stencilSep = true; + this._next.stencilFuncBack = func; + this._next.stencilRefBack = ref; + this._next.stencilMaskBack = mask; + }; + _proto.setStencilOp = function setStencilOp(failOp, zFailOp, zPassOp, writeMask) { + this._next.stencilFailOpFront = this._next.stencilFailOpBack = failOp; + this._next.stencilZFailOpFront = this._next.stencilZFailOpBack = zFailOp; + this._next.stencilZPassOpFront = this._next.stencilZPassOpBack = zPassOp; + this._next.stencilWriteMaskFront = this._next.stencilWriteMaskBack = writeMask; + }; + _proto.setStencilOpFront = function setStencilOpFront(failOp, zFailOp, zPassOp, writeMask) { + this._next.stencilSep = true; + this._next.stencilFailOpFront = failOp; + this._next.stencilZFailOpFront = zFailOp; + this._next.stencilZPassOpFront = zPassOp; + this._next.stencilWriteMaskFront = writeMask; + }; + _proto.setStencilOpBack = function setStencilOpBack(failOp, zFailOp, zPassOp, writeMask) { + this._next.stencilSep = true; + this._next.stencilFailOpBack = failOp; + this._next.stencilZFailOpBack = zFailOp; + this._next.stencilZPassOpBack = zPassOp; + this._next.stencilWriteMaskBack = writeMask; + }; + _proto.setDepthFunc = function setDepthFunc(depthFunc) { + this._next.depthFunc = depthFunc; + }; + _proto.setBlendColor32 = function setBlendColor32(rgba) { + this._next.blendColor = rgba; + }; + _proto.setBlendColor = function setBlendColor(r, g, b, a) { + this._next.blendColor = (255 * r << 24 | 255 * g << 16 | 255 * b << 8 | 255 * a) >>> 0; + }; + _proto.setBlendFunc = function setBlendFunc(src, dst) { + this._next.blendSep = false; + this._next.blendSrc = src; + this._next.blendDst = dst; + }; + _proto.setBlendFuncSep = function setBlendFuncSep(src, dst, srcAlpha, dstAlpha) { + this._next.blendSep = true; + this._next.blendSrc = src; + this._next.blendDst = dst; + this._next.blendSrcAlpha = srcAlpha; + this._next.blendDstAlpha = dstAlpha; + }; + _proto.setBlendEq = function setBlendEq(eq) { + this._next.blendSep = false; + this._next.blendEq = eq; + }; + _proto.setBlendEqSep = function setBlendEqSep(eq, alphaEq) { + this._next.blendSep = true; + this._next.blendEq = eq; + this._next.blendAlphaEq = alphaEq; + }; + _proto.setCullMode = function setCullMode(mode) { + this._next.cullMode = mode; + }; + _proto.setVertexBuffer = function setVertexBuffer(stream, buffer, start) { + void 0 === start && (start = 0); + this._next.vertexBuffers[stream] = buffer; + this._next.vertexBufferOffsets[stream] = start; + this._next.maxStream < stream && (this._next.maxStream = stream); + }; + _proto.setIndexBuffer = function setIndexBuffer(buffer) { + this._next.indexBuffer = buffer; + }; + _proto.setProgram = function setProgram(program) { + this._next.program = program; + }; + _proto.setTexture = function setTexture(name, texture, slot) { + if (slot >= this._caps.maxTextureUnits) { + console.warn("Can not set texture " + name + " at stage " + slot + ", max texture exceed: " + this._caps.maxTextureUnits); + return; + } + this._next.textureUnits[slot] = texture; + this.setUniform(name, slot); + this._next.maxTextureSlot < slot && (this._next.maxTextureSlot = slot); + }; + _proto.setTextureArray = function setTextureArray(name, textures, slots) { + var len = textures.length; + if (len >= this._caps.maxTextureUnits) { + console.warn("Can not set " + len + " textures for " + name + ", max texture exceed: " + this._caps.maxTextureUnits); + return; + } + for (var i = 0; i < len; ++i) { + var slot = slots[i]; + this._next.textureUnits[slot] = textures[i]; + this._next.maxTextureSlot < slot && (this._next.maxTextureSlot = slot); + } + this.setUniform(name, slots); + }; + _proto.setUniform = function setUniform(name, value) { + var uniform = this._uniforms[name]; + var sameType = false; + var isArray = false, isFloat32Array = false, isInt32Array = false; + do { + if (!uniform) break; + isFloat32Array = Array.isArray(value) || value instanceof Float32Array; + isInt32Array = value instanceof Int32Array; + isArray = isFloat32Array || isInt32Array; + if (uniform.isArray !== isArray) break; + if (uniform.isArray && uniform.value.length !== value.length) break; + sameType = true; + } while (false); + if (sameType) { + var oldValue = uniform.value; + var dirty = false; + if (uniform.isArray) { + for (var i = 0, l = oldValue.length; i < l; i++) if (oldValue[i] !== value[i]) { + dirty = true; + oldValue[i] = value[i]; + } + } else if (oldValue !== value) { + dirty = true; + uniform.value = value; + } + dirty && (uniform.dirty = true); + } else { + var newValue = value; + isFloat32Array ? newValue = new Float32Array(value) : isInt32Array && (newValue = new Int32Array(value)); + uniform = { + dirty: true, + value: newValue, + isArray: isArray + }; + } + this._uniforms[name] = uniform; + }; + _proto.setUniformDirectly = function setUniformDirectly(name, value) { + var uniform = this._uniforms[name]; + uniform || (this._uniforms[name] = uniform = {}); + uniform.dirty = true; + uniform.value = value; + }; + _proto.setPrimitiveType = function setPrimitiveType(type) { + this._next.primitiveType = type; + }; + _proto.resetDrawCalls = function resetDrawCalls() { + this._stats.drawcalls = 0; + }; + _proto.getDrawCalls = function getDrawCalls() { + return this._stats.drawcalls; + }; + _proto.draw = function draw(base, count) { + var gl = this._gl; + var cur = this._current; + var next = this._next; + _commitBlendStates(gl, cur, next); + _commitDepthStates(gl, cur, next); + _commitStencilStates(gl, cur, next); + _commitCullMode(gl, cur, next); + _commitVertexBuffers(this, gl, cur, next); + cur.indexBuffer !== next.indexBuffer && gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, next.indexBuffer && -1 !== next.indexBuffer._glID ? next.indexBuffer._glID : null); + var programDirty = false; + if (cur.program !== next.program) { + next.program._linked ? gl.useProgram(next.program._glID) : console.warn("Failed to use program: has not linked yet."); + programDirty = true; + } + _commitTextures(gl, cur, next); + for (var i = 0; i < next.program._uniforms.length; ++i) { + var uniformInfo = next.program._uniforms[i]; + var uniform = this._uniforms[uniformInfo.name]; + if (!uniform) continue; + if (!programDirty && !uniform.dirty) continue; + uniform.dirty = false; + var commitFunc = void 0 === uniformInfo.size ? _type2uniformCommit[uniformInfo.type] : _type2uniformArrayCommit[uniformInfo.type]; + if (!commitFunc) { + console.warn("Can not find commit function for uniform " + uniformInfo.name); + continue; + } + commitFunc(gl, uniformInfo.location, uniform.value); + } + if (count) { + next.indexBuffer ? gl.drawElements(this._next.primitiveType, count, next.indexBuffer._format, base * next.indexBuffer._bytesPerIndex) : gl.drawArrays(this._next.primitiveType, base, count); + this._stats.drawcalls++; + } + cur.set(next); + next.reset(); + }; + _createClass(Device, [ { + key: "caps", + get: function get() { + return this._caps; + } + } ]); + return Device; + })(); + exports["default"] = Device; + module.exports = exports["default"]; + }), { + "./enums": 244, + "./state": 251, + "./texture-2d": 252, + "./texture-cube": 253 + } ], + 244: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports.attrTypeBytes = attrTypeBytes; + exports.enums = void 0; + exports.glFilter = glFilter; + exports.glTextureFmt = glTextureFmt; + var GL_NEAREST = 9728; + var GL_LINEAR = 9729; + var GL_NEAREST_MIPMAP_NEAREST = 9984; + var GL_LINEAR_MIPMAP_NEAREST = 9985; + var GL_NEAREST_MIPMAP_LINEAR = 9986; + var GL_LINEAR_MIPMAP_LINEAR = 9987; + var GL_UNSIGNED_BYTE = 5121; + var GL_UNSIGNED_SHORT = 5123; + var GL_UNSIGNED_INT = 5125; + var GL_FLOAT = 5126; + var GL_UNSIGNED_SHORT_5_6_5 = 33635; + var GL_UNSIGNED_SHORT_4_4_4_4 = 32819; + var GL_UNSIGNED_SHORT_5_5_5_1 = 32820; + var GL_HALF_FLOAT_OES = 36193; + var GL_DEPTH_COMPONENT = 6402; + var GL_ALPHA = 6406; + var GL_RGB = 6407; + var GL_RGBA = 6408; + var GL_LUMINANCE = 6409; + var GL_LUMINANCE_ALPHA = 6410; + var GL_COMPRESSED_RGB_S3TC_DXT1_EXT = 33776; + var GL_COMPRESSED_RGBA_S3TC_DXT1_EXT = 33777; + var GL_COMPRESSED_RGBA_S3TC_DXT3_EXT = 33778; + var GL_COMPRESSED_RGBA_S3TC_DXT5_EXT = 33779; + var GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 35840; + var GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG = 35841; + var GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = 35842; + var GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG = 35843; + var GL_COMPRESSED_RGB_ETC1_WEBGL = 36196; + var GL_COMPRESSED_RGB8_ETC2 = 37492; + var GL_COMPRESSED_RGBA8_ETC2_EAC = 37496; + var _filterGL = [ [ GL_NEAREST, GL_NEAREST_MIPMAP_NEAREST, GL_NEAREST_MIPMAP_LINEAR ], [ GL_LINEAR, GL_LINEAR_MIPMAP_NEAREST, GL_LINEAR_MIPMAP_LINEAR ] ]; + var _textureFmtGL = [ { + format: GL_RGB, + internalFormat: GL_COMPRESSED_RGB_S3TC_DXT1_EXT, + pixelType: null + }, { + format: GL_RGBA, + internalFormat: GL_COMPRESSED_RGBA_S3TC_DXT1_EXT, + pixelType: null + }, { + format: GL_RGBA, + internalFormat: GL_COMPRESSED_RGBA_S3TC_DXT3_EXT, + pixelType: null + }, { + format: GL_RGBA, + internalFormat: GL_COMPRESSED_RGBA_S3TC_DXT5_EXT, + pixelType: null + }, { + format: GL_RGB, + internalFormat: GL_COMPRESSED_RGB_ETC1_WEBGL, + pixelType: null + }, { + format: GL_RGB, + internalFormat: GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG, + pixelType: null + }, { + format: GL_RGBA, + internalFormat: GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG, + pixelType: null + }, { + format: GL_RGB, + internalFormat: GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG, + pixelType: null + }, { + format: GL_RGBA, + internalFormat: GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG, + pixelType: null + }, { + format: GL_ALPHA, + internalFormat: GL_ALPHA, + pixelType: GL_UNSIGNED_BYTE + }, { + format: GL_LUMINANCE, + internalFormat: GL_LUMINANCE, + pixelType: GL_UNSIGNED_BYTE + }, { + format: GL_LUMINANCE_ALPHA, + internalFormat: GL_LUMINANCE_ALPHA, + pixelType: GL_UNSIGNED_BYTE + }, { + format: GL_RGB, + internalFormat: GL_RGB, + pixelType: GL_UNSIGNED_SHORT_5_6_5 + }, { + format: GL_RGBA, + internalFormat: GL_RGBA, + pixelType: GL_UNSIGNED_SHORT_5_5_5_1 + }, { + format: GL_RGBA, + internalFormat: GL_RGBA, + pixelType: GL_UNSIGNED_SHORT_4_4_4_4 + }, { + format: GL_RGB, + internalFormat: GL_RGB, + pixelType: GL_UNSIGNED_BYTE + }, { + format: GL_RGBA, + internalFormat: GL_RGBA, + pixelType: GL_UNSIGNED_BYTE + }, { + format: GL_RGB, + internalFormat: GL_RGB, + pixelType: GL_HALF_FLOAT_OES + }, { + format: GL_RGBA, + internalFormat: GL_RGBA, + pixelType: GL_HALF_FLOAT_OES + }, { + format: GL_RGB, + internalFormat: GL_RGB, + pixelType: GL_FLOAT + }, { + format: GL_RGBA, + internalFormat: GL_RGBA, + pixelType: GL_FLOAT + }, { + format: null, + internalFormat: null, + pixelType: null + }, { + format: null, + internalFormat: null, + pixelType: null + }, { + format: null, + internalFormat: null, + pixelType: null + }, { + format: null, + internalFormat: null, + pixelType: null + }, { + format: GL_DEPTH_COMPONENT, + internalFormat: GL_DEPTH_COMPONENT, + pixelType: GL_UNSIGNED_SHORT + }, { + format: GL_DEPTH_COMPONENT, + internalFormat: GL_DEPTH_COMPONENT, + pixelType: GL_UNSIGNED_INT + }, { + format: GL_DEPTH_COMPONENT, + internalFormat: GL_DEPTH_COMPONENT, + pixelType: GL_UNSIGNED_INT + }, { + format: GL_RGB, + internalFormat: GL_COMPRESSED_RGB8_ETC2, + pixelType: null + }, { + format: GL_RGBA, + internalFormat: GL_COMPRESSED_RGBA8_ETC2_EAC, + pixelType: null + } ]; + var enums = { + USAGE_STATIC: 35044, + USAGE_DYNAMIC: 35048, + USAGE_STREAM: 35040, + INDEX_FMT_UINT8: 5121, + INDEX_FMT_UINT16: 5123, + INDEX_FMT_UINT32: 5125, + ATTR_POSITION: "a_position", + ATTR_NORMAL: "a_normal", + ATTR_TANGENT: "a_tangent", + ATTR_BITANGENT: "a_bitangent", + ATTR_WEIGHTS: "a_weights", + ATTR_JOINTS: "a_joints", + ATTR_COLOR: "a_color", + ATTR_COLOR0: "a_color0", + ATTR_COLOR1: "a_color1", + ATTR_UV: "a_uv", + ATTR_UV0: "a_uv0", + ATTR_UV1: "a_uv1", + ATTR_UV2: "a_uv2", + ATTR_UV3: "a_uv3", + ATTR_UV4: "a_uv4", + ATTR_UV5: "a_uv5", + ATTR_UV6: "a_uv6", + ATTR_UV7: "a_uv7", + ATTR_TEX_COORD: "a_texCoord", + ATTR_TEX_COORD1: "a_texCoord1", + ATTR_TEX_COORD2: "a_texCoord2", + ATTR_TEX_COORD3: "a_texCoord3", + ATTR_TEX_COORD4: "a_texCoord4", + ATTR_TEX_COORD5: "a_texCoord5", + ATTR_TEX_COORD6: "a_texCoord6", + ATTR_TEX_COORD7: "a_texCoord7", + ATTR_TEX_COORD8: "a_texCoord8", + ATTR_TEX_ID: "a_texId", + ATTR_TYPE_INT8: 5120, + ATTR_TYPE_UINT8: 5121, + ATTR_TYPE_INT16: 5122, + ATTR_TYPE_UINT16: 5123, + ATTR_TYPE_INT32: 5124, + ATTR_TYPE_UINT32: 5125, + ATTR_TYPE_FLOAT32: 5126, + FILTER_NEAREST: 0, + FILTER_LINEAR: 1, + WRAP_REPEAT: 10497, + WRAP_CLAMP: 33071, + WRAP_MIRROR: 33648, + TEXTURE_FMT_RGB_DXT1: 0, + TEXTURE_FMT_RGBA_DXT1: 1, + TEXTURE_FMT_RGBA_DXT3: 2, + TEXTURE_FMT_RGBA_DXT5: 3, + TEXTURE_FMT_RGB_ETC1: 4, + TEXTURE_FMT_RGB_PVRTC_2BPPV1: 5, + TEXTURE_FMT_RGBA_PVRTC_2BPPV1: 6, + TEXTURE_FMT_RGB_PVRTC_4BPPV1: 7, + TEXTURE_FMT_RGBA_PVRTC_4BPPV1: 8, + TEXTURE_FMT_A8: 9, + TEXTURE_FMT_L8: 10, + TEXTURE_FMT_L8_A8: 11, + TEXTURE_FMT_R5_G6_B5: 12, + TEXTURE_FMT_R5_G5_B5_A1: 13, + TEXTURE_FMT_R4_G4_B4_A4: 14, + TEXTURE_FMT_RGB8: 15, + TEXTURE_FMT_RGBA8: 16, + TEXTURE_FMT_RGB16F: 17, + TEXTURE_FMT_RGBA16F: 18, + TEXTURE_FMT_RGB32F: 19, + TEXTURE_FMT_RGBA32F: 20, + TEXTURE_FMT_R32F: 21, + TEXTURE_FMT_111110F: 22, + TEXTURE_FMT_SRGB: 23, + TEXTURE_FMT_SRGBA: 24, + TEXTURE_FMT_D16: 25, + TEXTURE_FMT_D32: 26, + TEXTURE_FMT_D24S8: 27, + TEXTURE_FMT_RGB_ETC2: 28, + TEXTURE_FMT_RGBA_ETC2: 29, + DS_FUNC_NEVER: 512, + DS_FUNC_LESS: 513, + DS_FUNC_EQUAL: 514, + DS_FUNC_LEQUAL: 515, + DS_FUNC_GREATER: 516, + DS_FUNC_NOTEQUAL: 517, + DS_FUNC_GEQUAL: 518, + DS_FUNC_ALWAYS: 519, + RB_FMT_RGBA4: 32854, + RB_FMT_RGB5_A1: 32855, + RB_FMT_RGB565: 36194, + RB_FMT_D16: 33189, + RB_FMT_S8: 36168, + RB_FMT_D24S8: 34041, + BLEND_FUNC_ADD: 32774, + BLEND_FUNC_SUBTRACT: 32778, + BLEND_FUNC_REVERSE_SUBTRACT: 32779, + BLEND_ZERO: 0, + BLEND_ONE: 1, + BLEND_SRC_COLOR: 768, + BLEND_ONE_MINUS_SRC_COLOR: 769, + BLEND_DST_COLOR: 774, + BLEND_ONE_MINUS_DST_COLOR: 775, + BLEND_SRC_ALPHA: 770, + BLEND_ONE_MINUS_SRC_ALPHA: 771, + BLEND_DST_ALPHA: 772, + BLEND_ONE_MINUS_DST_ALPHA: 773, + BLEND_CONSTANT_COLOR: 32769, + BLEND_ONE_MINUS_CONSTANT_COLOR: 32770, + BLEND_CONSTANT_ALPHA: 32771, + BLEND_ONE_MINUS_CONSTANT_ALPHA: 32772, + BLEND_SRC_ALPHA_SATURATE: 776, + STENCIL_DISABLE: 0, + STENCIL_ENABLE: 1, + STENCIL_INHERIT: 2, + STENCIL_OP_KEEP: 7680, + STENCIL_OP_ZERO: 0, + STENCIL_OP_REPLACE: 7681, + STENCIL_OP_INCR: 7682, + STENCIL_OP_INCR_WRAP: 34055, + STENCIL_OP_DECR: 7683, + STENCIL_OP_DECR_WRAP: 34056, + STENCIL_OP_INVERT: 5386, + CULL_NONE: 0, + CULL_FRONT: 1028, + CULL_BACK: 1029, + CULL_FRONT_AND_BACK: 1032, + PT_POINTS: 0, + PT_LINES: 1, + PT_LINE_LOOP: 2, + PT_LINE_STRIP: 3, + PT_TRIANGLES: 4, + PT_TRIANGLE_STRIP: 5, + PT_TRIANGLE_FAN: 6 + }; + exports.enums = enums; + function attrTypeBytes(attrType) { + if (attrType === enums.ATTR_TYPE_INT8) return 1; + if (attrType === enums.ATTR_TYPE_UINT8) return 1; + if (attrType === enums.ATTR_TYPE_INT16) return 2; + if (attrType === enums.ATTR_TYPE_UINT16) return 2; + if (attrType === enums.ATTR_TYPE_INT32) return 4; + if (attrType === enums.ATTR_TYPE_UINT32) return 4; + if (attrType === enums.ATTR_TYPE_FLOAT32) return 4; + console.warn("Unknown ATTR_TYPE: " + attrType); + return 0; + } + function glFilter(gl, filter, mipFilter) { + void 0 === mipFilter && (mipFilter = -1); + var result = _filterGL[filter][mipFilter + 1]; + if (void 0 === result) { + console.warn("Unknown FILTER: " + filter); + return -1 === mipFilter ? gl.LINEAR : gl.LINEAR_MIPMAP_LINEAR; + } + return result; + } + function glTextureFmt(fmt) { + var result = _textureFmtGL[fmt]; + if (void 0 === result) { + console.warn("Unknown TEXTURE_FMT: " + fmt); + return _textureFmtGL[enums.TEXTURE_FMT_RGBA8]; + } + return result; + } + }), {} ], + 245: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var FrameBuffer = (function() { + function FrameBuffer(device, width, height, options) { + this._device = device; + this._width = width; + this._height = height; + this._colors = options.colors || []; + this._depth = options.depth || null; + this._stencil = options.stencil || null; + this._depthStencil = options.depthStencil || null; + this._glID = device._gl.createFramebuffer(); + } + var _proto = FrameBuffer.prototype; + _proto.destroy = function destroy() { + if (null === this._glID) { + console.error("The frame-buffer already destroyed"); + return; + } + var gl = this._device._gl; + gl.deleteFramebuffer(this._glID); + this._glID = null; + }; + _proto.getHandle = function getHandle() { + return this._glID; + }; + return FrameBuffer; + })(); + exports["default"] = FrameBuffer; + module.exports = exports["default"]; + }), {} ], + 246: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _enums = require("./enums"); + var _BYTES_PER_INDEX; + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + "value" in descriptor && (descriptor.writable = true); + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _createClass(Constructor, protoProps, staticProps) { + protoProps && _defineProperties(Constructor.prototype, protoProps); + staticProps && _defineProperties(Constructor, staticProps); + Object.defineProperty(Constructor, "prototype", { + writable: false + }); + return Constructor; + } + var BYTES_PER_INDEX = (_BYTES_PER_INDEX = {}, _BYTES_PER_INDEX[_enums.enums.INDEX_FMT_UINT8] = 1, + _BYTES_PER_INDEX[_enums.enums.INDEX_FMT_UINT16] = 2, _BYTES_PER_INDEX[_enums.enums.INDEX_FMT_UINT32] = 4, + _BYTES_PER_INDEX); + var IndexBuffer = (function() { + function IndexBuffer(device, format, usage, data) { + this._device = device; + this._format = format; + this._usage = usage; + this._bytesPerIndex = BYTES_PER_INDEX[format]; + this._bytes = data.byteLength; + this._numIndices = this._bytes / this._bytesPerIndex; + this._needExpandDataStore = true; + this._glID = device._gl.createBuffer(); + this.update(0, data); + device._stats.ib += this._bytes; + } + var _proto = IndexBuffer.prototype; + _proto.destroy = function destroy() { + if (-1 === this._glID) { + console.error("The buffer already destroyed"); + return; + } + var gl = this._device._gl; + gl.deleteBuffer(this._glID); + this._device._stats.ib -= this.bytes; + this._glID = -1; + }; + _proto.update = function update(byteOffset, data) { + if (-1 === this._glID) { + console.error("The buffer is destroyed"); + return; + } + if (0 === data.byteLength) return; + if (byteOffset + data.byteLength > this._bytes) { + if (byteOffset) { + console.error("Failed to update data, bytes exceed."); + return; + } + this._needExpandDataStore = true; + this._bytes = byteOffset + data.byteLength; + this._numIndices = this._bytes / this._bytesPerIndex; + } + var gl = this._device._gl; + var glUsage = this._usage; + gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, this._glID); + if (this._needExpandDataStore) { + gl.bufferData(gl.ELEMENT_ARRAY_BUFFER, data, glUsage); + this._needExpandDataStore = false; + } else gl.bufferSubData(gl.ELEMENT_ARRAY_BUFFER, byteOffset, data); + this._device._restoreIndexBuffer(); + }; + _proto.setUsage = function setUsage(usage) { + this._usage = usage; + }; + _createClass(IndexBuffer, [ { + key: "count", + get: function get() { + return this._numIndices; + } + } ]); + return IndexBuffer; + })(); + IndexBuffer.BYTES_PER_INDEX = BYTES_PER_INDEX; + var _default = IndexBuffer; + exports["default"] = _default; + module.exports = exports["default"]; + }), { + "./enums": 244 + } ], + 247: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _enums = require("./enums"); + var gfx = null; + false; + var VertexFormat = require("./vertex-format"); + var IndexBuffer = require("./index-buffer"); + var VertexBuffer = require("./vertex-buffer"); + var Program = require("./program"); + var Texture = require("./texture"); + var Texture2D = require("./texture-2d"); + var TextureCube = require("./texture-cube"); + var RenderBuffer = require("./render-buffer"); + var FrameBuffer = require("./frame-buffer"); + var Device = require("./device"); + gfx = { + VertexFormat: VertexFormat, + IndexBuffer: IndexBuffer, + VertexBuffer: VertexBuffer, + Program: Program, + Texture: Texture, + Texture2D: Texture2D, + TextureCube: TextureCube, + RenderBuffer: RenderBuffer, + FrameBuffer: FrameBuffer, + Device: Device, + attrTypeBytes: _enums.attrTypeBytes, + glFilter: _enums.glFilter, + glTextureFmt: _enums.glTextureFmt + }; + Object.assign(gfx, _enums.enums); + var _default = gfx; + exports["default"] = _default; + cc.gfx = gfx; + module.exports = exports["default"]; + }), { + "./device": 243, + "./enums": 244, + "./frame-buffer": 245, + "./index-buffer": 246, + "./program": 249, + "./render-buffer": 250, + "./texture": 254, + "./texture-2d": 252, + "./texture-cube": 253, + "./vertex-buffer": 255, + "./vertex-format": 256 + } ], + 248: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports.isPow2 = isPow2; + function isPow2(v) { + return !(v & v - 1) && !!v; + } + }), {} ], + 249: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + "value" in descriptor && (descriptor.writable = true); + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _createClass(Constructor, protoProps, staticProps) { + protoProps && _defineProperties(Constructor.prototype, protoProps); + staticProps && _defineProperties(Constructor, staticProps); + Object.defineProperty(Constructor, "prototype", { + writable: false + }); + return Constructor; + } + var _genID = 0; + function _parseError(out, type, errorLog) { + if (!errorLog) return; + errorLog.split("\n").forEach((function(msg) { + if (msg.length < 5) return; + var parts = /^ERROR:\s+(\d+):(\d+):\s*(.*)$/.exec(msg); + parts ? out.push({ + type: type, + fileID: 0 | parts[1], + line: 0 | parts[2], + message: parts[3].trim() + }) : msg.length > 0 && out.push({ + type: type, + fileID: -1, + line: 0, + message: msg + }); + })); + } + var Program = (function() { + function Program(device, options) { + this._device = device; + this._attributes = []; + this._uniforms = []; + this._samplers = []; + this._errors = []; + this._linked = false; + this._vertSource = options.vert; + this._fragSource = options.frag; + this._glID = null; + this._id = _genID++; + } + var _proto = Program.prototype; + _proto.link = function link() { + if (this._linked) return; + var gl = this._device._gl; + var vertShader = _createShader(gl, gl.VERTEX_SHADER, this._vertSource); + var fragShader = _createShader(gl, gl.FRAGMENT_SHADER, this._fragSource); + var program = gl.createProgram(); + gl.attachShader(program, vertShader); + gl.attachShader(program, fragShader); + gl.linkProgram(program); + var failed = false; + var errors = this._errors; + if (!gl.getShaderParameter(vertShader, gl.COMPILE_STATUS)) { + _parseError(errors, "vs", gl.getShaderInfoLog(vertShader)); + failed = true; + } + if (!gl.getShaderParameter(fragShader, gl.COMPILE_STATUS)) { + _parseError(errors, "fs", gl.getShaderInfoLog(fragShader)); + failed = true; + } + gl.deleteShader(vertShader); + gl.deleteShader(fragShader); + if (failed) return errors; + if (!gl.getProgramParameter(program, gl.LINK_STATUS)) { + errors.push({ + info: "Failed to link shader program: " + gl.getProgramInfoLog(program) + }); + return errors; + } + this._glID = program; + var numAttributes = gl.getProgramParameter(program, gl.ACTIVE_ATTRIBUTES); + for (var i = 0; i < numAttributes; ++i) { + var info = gl.getActiveAttrib(program, i); + var location = gl.getAttribLocation(program, info.name); + this._attributes.push({ + name: info.name, + location: location, + type: info.type + }); + } + var numUniforms = gl.getProgramParameter(program, gl.ACTIVE_UNIFORMS); + for (var _i = 0; _i < numUniforms; ++_i) { + var _info = gl.getActiveUniform(program, _i); + var name = _info.name; + var _location = gl.getUniformLocation(program, name); + var isArray = "[0]" === name.substr(name.length - 3); + isArray && (name = name.substr(0, name.length - 3)); + var uniform = { + name: name, + location: _location, + type: _info.type, + size: isArray ? _info.size : void 0 + }; + this._uniforms.push(uniform); + } + this._linked = true; + }; + _proto.destroy = function destroy() { + var gl = this._device._gl; + gl.deleteProgram(this._glID); + this._linked = false; + this._glID = null; + this._attributes = []; + this._uniforms = []; + this._samplers = []; + }; + _createClass(Program, [ { + key: "id", + get: function get() { + return this._id; + } + } ]); + return Program; + })(); + exports["default"] = Program; + function _createShader(gl, type, src) { + var shader = gl.createShader(type); + gl.shaderSource(shader, src); + gl.compileShader(shader); + return shader; + } + module.exports = exports["default"]; + }), {} ], + 250: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var RenderBuffer = (function() { + function RenderBuffer(device, format, width, height) { + this._device = device; + this._format = format; + this._glID = device._gl.createRenderbuffer(); + this.update(width, height); + } + var _proto = RenderBuffer.prototype; + _proto.update = function update(width, height) { + this._width = width; + this._height = height; + var gl = this._device._gl; + gl.bindRenderbuffer(gl.RENDERBUFFER, this._glID); + gl.renderbufferStorage(gl.RENDERBUFFER, this._format, width, height); + gl.bindRenderbuffer(gl.RENDERBUFFER, null); + }; + _proto.destroy = function destroy() { + if (null === this._glID) { + console.error("The render-buffer already destroyed"); + return; + } + var gl = this._device._gl; + gl.bindRenderbuffer(gl.RENDERBUFFER, null); + gl.deleteRenderbuffer(this._glID); + this._glID = null; + }; + return RenderBuffer; + })(); + exports["default"] = RenderBuffer; + module.exports = exports["default"]; + }), {} ], + 251: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _enums = require("./enums"); + var _default = { + blend: false, + blendSep: false, + blendColor: 4294967295, + blendEq: _enums.enums.BLEND_FUNC_ADD, + blendAlphaEq: _enums.enums.BLEND_FUNC_ADD, + blendSrc: _enums.enums.BLEND_ONE, + blendDst: _enums.enums.BLEND_ZERO, + blendSrcAlpha: _enums.enums.BLEND_ONE, + blendDstAlpha: _enums.enums.BLEND_ZERO, + depthTest: false, + depthWrite: false, + depthFunc: _enums.enums.DS_FUNC_LESS, + stencilTest: false, + stencilSep: false, + stencilFuncFront: _enums.enums.DS_FUNC_ALWAYS, + stencilRefFront: 0, + stencilMaskFront: 255, + stencilFailOpFront: _enums.enums.STENCIL_OP_KEEP, + stencilZFailOpFront: _enums.enums.STENCIL_OP_KEEP, + stencilZPassOpFront: _enums.enums.STENCIL_OP_KEEP, + stencilWriteMaskFront: 255, + stencilFuncBack: _enums.enums.DS_FUNC_ALWAYS, + stencilRefBack: 0, + stencilMaskBack: 255, + stencilFailOpBack: _enums.enums.STENCIL_OP_KEEP, + stencilZFailOpBack: _enums.enums.STENCIL_OP_KEEP, + stencilZPassOpBack: _enums.enums.STENCIL_OP_KEEP, + stencilWriteMaskBack: 255, + cullMode: _enums.enums.CULL_BACK, + primitiveType: _enums.enums.PT_TRIANGLES, + maxStream: -1, + vertexBuffers: [], + vertexBufferOffsets: [], + indexBuffer: null, + maxTextureSlot: -1, + textureUnits: [], + program: null + }; + var State = (function() { + function State(device) { + this.vertexBuffers = new Array(device._caps.maxVertexStreams); + this.vertexBufferOffsets = new Array(device._caps.maxVertexStreams); + this.textureUnits = new Array(device._caps.maxTextureUnits); + this.set(_default); + } + State.initDefault = function initDefault(device) { + _default.vertexBuffers = new Array(device._caps.maxVertexStreams); + _default.vertexBufferOffsets = new Array(device._caps.maxVertexStreams); + _default.textureUnits = new Array(device._caps.maxTextureUnits); + }; + var _proto = State.prototype; + _proto.reset = function reset() { + this.set(_default); + }; + _proto.set = function set(cpy) { + this.blend = cpy.blend; + this.blendSep = cpy.blendSep; + this.blendColor = cpy.blendColor; + this.blendEq = cpy.blendEq; + this.blendAlphaEq = cpy.blendAlphaEq; + this.blendSrc = cpy.blendSrc; + this.blendDst = cpy.blendDst; + this.blendSrcAlpha = cpy.blendSrcAlpha; + this.blendDstAlpha = cpy.blendDstAlpha; + this.depthTest = cpy.depthTest; + this.depthWrite = cpy.depthWrite; + this.depthFunc = cpy.depthFunc; + this.stencilTest = cpy.stencilTest; + this.stencilSep = cpy.stencilSep; + this.stencilFuncFront = cpy.stencilFuncFront; + this.stencilRefFront = cpy.stencilRefFront; + this.stencilMaskFront = cpy.stencilMaskFront; + this.stencilFailOpFront = cpy.stencilFailOpFront; + this.stencilZFailOpFront = cpy.stencilZFailOpFront; + this.stencilZPassOpFront = cpy.stencilZPassOpFront; + this.stencilWriteMaskFront = cpy.stencilWriteMaskFront; + this.stencilFuncBack = cpy.stencilFuncBack; + this.stencilRefBack = cpy.stencilRefBack; + this.stencilMaskBack = cpy.stencilMaskBack; + this.stencilFailOpBack = cpy.stencilFailOpBack; + this.stencilZFailOpBack = cpy.stencilZFailOpBack; + this.stencilZPassOpBack = cpy.stencilZPassOpBack; + this.stencilWriteMaskBack = cpy.stencilWriteMaskBack; + this.cullMode = cpy.cullMode; + this.primitiveType = cpy.primitiveType; + this.maxStream = cpy.maxStream; + for (var i = 0; i < cpy.vertexBuffers.length; ++i) this.vertexBuffers[i] = cpy.vertexBuffers[i]; + for (var _i = 0; _i < cpy.vertexBufferOffsets.length; ++_i) this.vertexBufferOffsets[_i] = cpy.vertexBufferOffsets[_i]; + this.indexBuffer = cpy.indexBuffer; + this.maxTextureSlot = cpy.maxTextureSlot; + for (var _i2 = 0; _i2 < cpy.textureUnits.length; ++_i2) this.textureUnits[_i2] = cpy.textureUnits[_i2]; + this.program = cpy.program; + }; + return State; + })(); + exports["default"] = State; + module.exports = exports["default"]; + }), { + "./enums": 244 + } ], + 252: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _texture = _interopRequireDefault(require("./texture")); + var _enums = require("./enums"); + var _misc = require("./misc"); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var Texture2D = (function(_Texture) { + _inheritsLoose(Texture2D, _Texture); + function Texture2D(device, options) { + var _this; + _this = _Texture.call(this, device) || this; + var gl = _this._device._gl; + _this._target = gl.TEXTURE_2D; + _this._glID = gl.createTexture(); + options.images = options.images || [ null ]; + _this.update(options); + return _this; + } + var _proto = Texture2D.prototype; + _proto.update = function update(options) { + var gl = this._device._gl; + var genMipmaps = this._genMipmap; + if (options) { + void 0 !== options.width && (this._width = options.width); + void 0 !== options.height && (this._height = options.height); + void 0 !== options.anisotropy && (this._anisotropy = options.anisotropy); + void 0 !== options.minFilter && (this._minFilter = options.minFilter); + void 0 !== options.magFilter && (this._magFilter = options.magFilter); + void 0 !== options.mipFilter && (this._mipFilter = options.mipFilter); + void 0 !== options.wrapS && (this._wrapS = options.wrapS); + void 0 !== options.wrapT && (this._wrapT = options.wrapT); + if (void 0 !== options.format) { + this._format = options.format; + this._compressed = this._format >= _enums.enums.TEXTURE_FMT_RGB_DXT1 && this._format <= _enums.enums.TEXTURE_FMT_RGBA_PVRTC_4BPPV1 || this._format >= _enums.enums.TEXTURE_FMT_RGB_ETC2 && this._format <= _enums.enums.TEXTURE_FMT_RGBA_ETC2; + } + if (void 0 !== options.genMipmaps) { + this._genMipmap = options.genMipmaps; + genMipmaps = options.genMipmaps; + } + var maxSize = this._device.caps.maxTextureSize || Number.MAX_VALUE; + var textureMaxSize = Math.max(options.width || 0, options.height || 0); + maxSize < textureMaxSize && console.warn("The current texture size " + textureMaxSize + " exceeds the maximum size [" + maxSize + "] supported on the device."); + if (void 0 !== options.images && options.images.length > 1) { + genMipmaps = false; + var maxLength = options.width > options.height ? options.width : options.height; + maxLength >> options.images.length - 1 !== 1 && console.error("texture-2d mipmap is invalid, should have a 1x1 mipmap."); + } + } + var pot = (0, _misc.isPow2)(this._width) && (0, _misc.isPow2)(this._height); + pot || (genMipmaps = false); + gl.activeTexture(gl.TEXTURE0); + gl.bindTexture(gl.TEXTURE_2D, this._glID); + if (void 0 !== options.images && options.images.length > 0) { + this._setMipmap(options.images, options.flipY, options.premultiplyAlpha); + options.images.length > 1 && (this._genMipmap = true); + } + if (genMipmaps) { + gl.hint(gl.GENERATE_MIPMAP_HINT, gl.NICEST); + gl.generateMipmap(gl.TEXTURE_2D); + this._genMipmap = true; + } + this._setTexInfo(); + this._device._restoreTexture(0); + }; + _proto.updateSubImage = function updateSubImage(options) { + var gl = this._device._gl; + var glFmt = (0, _enums.glTextureFmt)(this._format); + gl.activeTexture(gl.TEXTURE0); + gl.bindTexture(gl.TEXTURE_2D, this._glID); + this._setSubImage(glFmt, options); + this._device._restoreTexture(0); + }; + _proto.updateImage = function updateImage(options) { + var gl = this._device._gl; + var glFmt = (0, _enums.glTextureFmt)(this._format); + gl.activeTexture(gl.TEXTURE0); + gl.bindTexture(gl.TEXTURE_2D, this._glID); + this._setImage(glFmt, options); + this._device._restoreTexture(0); + }; + _proto._setSubImage = function _setSubImage(glFmt, options) { + var gl = this._device._gl; + var flipY = options.flipY; + var premultiplyAlpha = options.premultiplyAlpha; + var img = options.image; + if (!img || ArrayBuffer.isView(img) || img instanceof ArrayBuffer) { + void 0 === flipY ? gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, false) : gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, flipY); + void 0 === premultiplyAlpha ? gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, false) : gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, premultiplyAlpha); + this._compressed ? gl.compressedTexSubImage2D(gl.TEXTURE_2D, options.level, options.x, options.y, options.width, options.height, glFmt.format, img) : gl.texSubImage2D(gl.TEXTURE_2D, options.level, options.x, options.y, options.width, options.height, glFmt.format, glFmt.pixelType, img); + } else { + void 0 === flipY ? gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, true) : gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, flipY); + void 0 === premultiplyAlpha ? gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, false) : gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, premultiplyAlpha); + gl.texSubImage2D(gl.TEXTURE_2D, options.level, options.x, options.y, glFmt.format, glFmt.pixelType, img); + } + }; + _proto._setImage = function _setImage(glFmt, options) { + var gl = this._device._gl; + var flipY = options.flipY; + var premultiplyAlpha = options.premultiplyAlpha; + var img = options.image; + if (!img || ArrayBuffer.isView(img) || img instanceof ArrayBuffer) { + void 0 === flipY ? gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, false) : gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, flipY); + void 0 === premultiplyAlpha ? gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, false) : gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, premultiplyAlpha); + this._compressed ? gl.compressedTexImage2D(gl.TEXTURE_2D, options.level, glFmt.internalFormat, options.width, options.height, 0, img) : gl.texImage2D(gl.TEXTURE_2D, options.level, glFmt.internalFormat, options.width, options.height, 0, glFmt.format, glFmt.pixelType, img); + } else { + void 0 === flipY ? gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, true) : gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, flipY); + void 0 === premultiplyAlpha ? gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, false) : gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, premultiplyAlpha); + gl.texImage2D(gl.TEXTURE_2D, options.level, glFmt.internalFormat, glFmt.format, glFmt.pixelType, img); + } + }; + _proto._setMipmap = function _setMipmap(images, flipY, premultiplyAlpha) { + var glFmt = (0, _enums.glTextureFmt)(this._format); + var options = { + width: this._width, + height: this._height, + flipY: flipY, + premultiplyAlpha: premultiplyAlpha, + level: 0, + image: null + }; + for (var i = 0; i < images.length; ++i) { + options.level = i; + options.width = this._width >> i; + options.height = this._height >> i; + options.image = images[i]; + this._setImage(glFmt, options); + } + }; + _proto._setTexInfo = function _setTexInfo() { + var gl = this._device._gl; + var pot = (0, _misc.isPow2)(this._width) && (0, _misc.isPow2)(this._height); + if (!pot && (this._wrapS !== _enums.enums.WRAP_CLAMP || this._wrapT !== _enums.enums.WRAP_CLAMP)) { + console.warn("WebGL1 doesn't support all wrap modes with NPOT textures"); + this._wrapS = _enums.enums.WRAP_CLAMP; + this._wrapT = _enums.enums.WRAP_CLAMP; + } + var mipFilter = this._genMipmap ? this._mipFilter : -1; + if (!pot && -1 !== mipFilter) { + console.warn("NPOT textures do not support mipmap filter"); + mipFilter = -1; + } + gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, (0, _enums.glFilter)(gl, this._minFilter, mipFilter)); + gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, (0, _enums.glFilter)(gl, this._magFilter, -1)); + gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, this._wrapS); + gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, this._wrapT); + var ext = this._device.ext("EXT_texture_filter_anisotropic"); + ext && gl.texParameteri(gl.TEXTURE_2D, ext.TEXTURE_MAX_ANISOTROPY_EXT, this._anisotropy); + }; + return Texture2D; + })(_texture["default"]); + exports["default"] = Texture2D; + module.exports = exports["default"]; + }), { + "./enums": 244, + "./misc": 248, + "./texture": 254 + } ], + 253: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _texture = _interopRequireDefault(require("./texture")); + var _enums = require("./enums"); + var _misc = require("./misc"); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var TextureCube = (function(_Texture) { + _inheritsLoose(TextureCube, _Texture); + function TextureCube(device, options) { + var _this; + _this = _Texture.call(this, device) || this; + var gl = _this._device._gl; + _this._target = gl.TEXTURE_CUBE_MAP; + _this._glID = gl.createTexture(); + _this.update(options); + return _this; + } + var _proto = TextureCube.prototype; + _proto.update = function update(options) { + var gl = this._device._gl; + var genMipmaps = this._genMipmaps; + if (options) { + void 0 !== options.width && (this._width = options.width); + void 0 !== options.height && (this._height = options.height); + void 0 !== options.anisotropy && (this._anisotropy = options.anisotropy); + void 0 !== options.minFilter && (this._minFilter = options.minFilter); + void 0 !== options.magFilter && (this._magFilter = options.magFilter); + void 0 !== options.mipFilter && (this._mipFilter = options.mipFilter); + void 0 !== options.wrapS && (this._wrapS = options.wrapS); + void 0 !== options.wrapT && (this._wrapT = options.wrapT); + if (void 0 !== options.format) { + this._format = options.format; + this._compressed = this._format >= _enums.enums.TEXTURE_FMT_RGB_DXT1 && this._format <= _enums.enums.TEXTURE_FMT_RGBA_PVRTC_4BPPV1 || this._format >= _enums.enums.TEXTURE_FMT_RGB_ETC2 && this._format <= _enums.enums.TEXTURE_FMT_RGBA_ETC2; + } + if (void 0 !== options.genMipmaps) { + this._genMipmaps = options.genMipmaps; + genMipmaps = options.genMipmaps; + } + if (void 0 !== options.images && options.images.length > 1) { + genMipmaps = false; + options.width !== options.height && console.warn("texture-cube width and height should be identical."); + options.width >> options.images.length - 1 !== 1 && console.error("texture-cube mipmap is invalid. please set mipmap as 1x1, 2x2, 4x4 ... nxn"); + } + } + var pot = (0, _misc.isPow2)(this._width) && (0, _misc.isPow2)(this._height); + pot || (genMipmaps = false); + gl.activeTexture(gl.TEXTURE0); + gl.bindTexture(gl.TEXTURE_CUBE_MAP, this._glID); + if (void 0 !== options.images && options.images.length > 0) { + this._setMipmap(options.images, options.flipY, options.premultiplyAlpha); + options.images.length > 1 && (this._genMipmaps = true); + } + if (genMipmaps) { + gl.hint(gl.GENERATE_MIPMAP_HINT, gl.NICEST); + gl.generateMipmap(gl.TEXTURE_CUBE_MAP); + this._genMipmaps = true; + } + this._setTexInfo(); + this._device._restoreTexture(0); + }; + _proto.updateSubImage = function updateSubImage(options) { + var gl = this._device._gl; + var glFmt = (0, _enums.glTextureFmt)(this._format); + gl.activeTexture(gl.TEXTURE0); + gl.bindTexture(gl.TEXTURE_CUBE_MAP, this._glID); + this._setSubImage(glFmt, options); + this._device._restoreTexture(0); + }; + _proto.updateImage = function updateImage(options) { + var gl = this._device._gl; + var glFmt = (0, _enums.glTextureFmt)(this._format); + gl.activeTexture(gl.TEXTURE0); + gl.bindTexture(gl.TEXTURE_CUBE_MAP, this._glID); + this._setImage(glFmt, options); + this._device._restoreTexture(0); + }; + _proto._setSubImage = function _setSubImage(glFmt, options) { + var gl = this._device._gl; + var flipY = options.flipY; + var premultiplyAlpha = options.premultiplyAlpha; + var faceIndex = options.faceIndex; + var img = options.image; + void 0 === flipY ? gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, false) : gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, flipY); + void 0 === premultiplyAlpha ? gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, false) : gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, premultiplyAlpha); + !img || ArrayBuffer.isView(img) || img instanceof ArrayBuffer ? this._compressed ? gl.compressedTexSubImage2D(gl.TEXTURE_CUBE_MAP_POSITIVE_X + faceIndex, options.level, options.x, options.y, options.width, options.height, glFmt.format, img) : gl.texSubImage2D(gl.TEXTURE_CUBE_MAP_POSITIVE_X + faceIndex, options.level, options.x, options.y, options.width, options.height, glFmt.format, glFmt.pixelType, img) : gl.texSubImage2D(gl.TEXTURE_CUBE_MAP_POSITIVE_X + faceIndex, options.level, options.x, options.y, glFmt.format, glFmt.pixelType, img); + }; + _proto._setImage = function _setImage(glFmt, options) { + var gl = this._device._gl; + var flipY = options.flipY; + var premultiplyAlpha = options.premultiplyAlpha; + var faceIndex = options.faceIndex; + var img = options.image; + void 0 === flipY ? gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, false) : gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, flipY); + void 0 === premultiplyAlpha ? gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, false) : gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, premultiplyAlpha); + !img || ArrayBuffer.isView(img) || img instanceof ArrayBuffer ? this._compressed ? gl.compressedTexImage2D(gl.TEXTURE_CUBE_MAP_POSITIVE_X + faceIndex, options.level, glFmt.internalFormat, options.width, options.height, 0, img) : gl.texImage2D(gl.TEXTURE_CUBE_MAP_POSITIVE_X + faceIndex, options.level, glFmt.internalFormat, options.width, options.height, 0, glFmt.format, glFmt.pixelType, img) : gl.texImage2D(gl.TEXTURE_CUBE_MAP_POSITIVE_X + faceIndex, options.level, glFmt.internalFormat, glFmt.format, glFmt.pixelType, img); + }; + _proto._setMipmap = function _setMipmap(images, flipY, premultiplyAlpha) { + var glFmt = (0, _enums.glTextureFmt)(this._format); + var options = { + width: this._width, + height: this._height, + faceIndex: 0, + flipY: flipY, + premultiplyAlpha: premultiplyAlpha, + level: 0, + image: null + }; + for (var i = 0; i < images.length; ++i) { + var levelImages = images[i]; + options.level = i; + options.width = this._width >> i; + options.height = this._height >> i; + for (var face = 0; face < 6; ++face) { + options.faceIndex = face; + options.image = levelImages[face]; + this._setImage(glFmt, options); + } + } + }; + _proto._setTexInfo = function _setTexInfo() { + var gl = this._device._gl; + var pot = (0, _misc.isPow2)(this._width) && (0, _misc.isPow2)(this._height); + if (!pot && (this._wrapS !== _enums.enums.WRAP_CLAMP || this._wrapT !== _enums.enums.WRAP_CLAMP)) { + console.warn("WebGL1 doesn't support all wrap modes with NPOT textures"); + this._wrapS = _enums.enums.WRAP_CLAMP; + this._wrapT = _enums.enums.WRAP_CLAMP; + } + var mipFilter = this._genMipmaps ? this._mipFilter : -1; + if (!pot && -1 !== mipFilter) { + console.warn("NPOT textures do not support mipmap filter"); + mipFilter = -1; + } + gl.texParameteri(gl.TEXTURE_CUBE_MAP, gl.TEXTURE_MIN_FILTER, (0, _enums.glFilter)(gl, this._minFilter, mipFilter)); + gl.texParameteri(gl.TEXTURE_CUBE_MAP, gl.TEXTURE_MAG_FILTER, (0, _enums.glFilter)(gl, this._magFilter, -1)); + gl.texParameteri(gl.TEXTURE_CUBE_MAP, gl.TEXTURE_WRAP_S, this._wrapS); + gl.texParameteri(gl.TEXTURE_CUBE_MAP, gl.TEXTURE_WRAP_T, this._wrapT); + var ext = this._device.ext("EXT_texture_filter_anisotropic"); + ext && gl.texParameteri(gl.TEXTURE_CUBE_MAP, ext.TEXTURE_MAX_ANISOTROPY_EXT, this._anisotropy); + }; + return TextureCube; + })(_texture["default"]); + exports["default"] = TextureCube; + module.exports = exports["default"]; + }), { + "./enums": 244, + "./misc": 248, + "./texture": 254 + } ], + 254: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _enums = require("./enums"); + var _nullWebGLTexture = null; + var _textureID = 0; + var Texture = (function() { + function Texture(device) { + this._device = device; + this._width = 4; + this._height = 4; + this._genMipmaps = false; + this._compressed = false; + this._anisotropy = 1; + this._minFilter = _enums.enums.FILTER_LINEAR; + this._magFilter = _enums.enums.FILTER_LINEAR; + this._mipFilter = _enums.enums.FILTER_LINEAR; + this._wrapS = _enums.enums.WRAP_REPEAT; + this._wrapT = _enums.enums.WRAP_REPEAT; + this._format = _enums.enums.TEXTURE_FMT_RGBA8; + this._target = -1; + this._id = _textureID++; + } + var _proto = Texture.prototype; + _proto.destroy = function destroy() { + if (this._glID === _nullWebGLTexture) { + console.error("The texture already destroyed"); + return; + } + var gl = this._device._gl; + gl.deleteTexture(this._glID); + this._device._stats.tex -= this.bytes; + this._glID = _nullWebGLTexture; + }; + return Texture; + })(); + exports["default"] = Texture; + module.exports = exports["default"]; + }), { + "./enums": 244 + } ], + 255: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _enums = require("./enums"); + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + "value" in descriptor && (descriptor.writable = true); + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _createClass(Constructor, protoProps, staticProps) { + protoProps && _defineProperties(Constructor.prototype, protoProps); + staticProps && _defineProperties(Constructor, staticProps); + Object.defineProperty(Constructor, "prototype", { + writable: false + }); + return Constructor; + } + var VertexBuffer = (function() { + function VertexBuffer(device, format, usage, data) { + this._device = device; + this._format = format; + this._usage = usage; + this._bytesPerVertex = this._format._bytes; + this._bytes = data.byteLength; + this._numVertices = this._bytes / this._bytesPerVertex; + this._needExpandDataStore = true; + this._glID = device._gl.createBuffer(); + this.update(0, data); + device._stats.vb += this._bytes; + } + var _proto = VertexBuffer.prototype; + _proto.destroy = function destroy() { + if (-1 === this._glID) { + console.error("The buffer already destroyed"); + return; + } + var gl = this._device._gl; + gl.deleteBuffer(this._glID); + this._device._stats.vb -= this.bytes; + this._glID = -1; + }; + _proto.update = function update(byteOffset, data) { + if (-1 === this._glID) { + console.error("The buffer is destroyed"); + return; + } + if (0 === data.byteLength) return; + if (byteOffset + data.byteLength > this._bytes) { + if (byteOffset) { + console.error("Failed to update data, bytes exceed."); + return; + } + this._needExpandDataStore = true; + this._bytes = byteOffset + data.byteLength; + this._numVertices = this._bytes / this._bytesPerVertex; + } + var gl = this._device._gl; + var glUsage = this._usage; + gl.bindBuffer(gl.ARRAY_BUFFER, this._glID); + if (this._needExpandDataStore) { + gl.bufferData(gl.ARRAY_BUFFER, data, glUsage); + this._needExpandDataStore = false; + } else gl.bufferSubData(gl.ARRAY_BUFFER, byteOffset, data); + gl.bindBuffer(gl.ARRAY_BUFFER, null); + }; + _proto.getFormat = function getFormat(name) { + return this._format.element(name); + }; + _proto.setUsage = function setUsage(usage) { + this._usage = usage; + }; + _createClass(VertexBuffer, [ { + key: "count", + get: function get() { + return this._numVertices; + } + } ]); + return VertexBuffer; + })(); + var _default = VertexBuffer; + exports["default"] = _default; + module.exports = exports["default"]; + }), { + "./enums": 244 + } ], + 256: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _enums = require("./enums"); + var _murmurhash2_gc = _interopRequireDefault(require("../murmurhash2_gc")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + var VertexFormat = (function() { + function VertexFormat(infos) { + this._attr2el = {}; + this._elements = []; + this._bytes = 0; + var hash = ""; + for (var i = 0, len = infos.length; i < len; ++i) { + var info = infos[i]; + var el = { + name: info.name, + offset: this._bytes, + stride: 0, + stream: -1, + type: info.type, + num: info.num, + normalize: void 0 !== info.normalize && info.normalize, + bytes: info.num * (0, _enums.attrTypeBytes)(info.type) + }; + this._attr2el[el.name] = el; + this._elements.push(el); + this._bytes += el.bytes; + hash += el.name + ":" + el.num + ":" + el.type + ":" + el.normalize; + } + for (var _i = 0, _len = this._elements.length; _i < _len; ++_i) { + var _el = this._elements[_i]; + _el.stride = this._bytes; + } + this._hash = (0, _murmurhash2_gc["default"])(hash, 666); + } + var _proto = VertexFormat.prototype; + _proto.element = function element(attrName) { + return this._attr2el[attrName]; + }; + _proto.getHash = function getHash() { + return this._hash; + }; + return VertexFormat; + })(); + exports["default"] = VertexFormat; + module.exports = exports["default"]; + }), { + "../murmurhash2_gc": 265, + "./enums": 244 + } ], + 257: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var CircularPool = (function() { + function CircularPool(fn, size) { + this._cursor = 0; + this._data = new Array(size); + for (var i = 0; i < size; ++i) this._data[i] = fn(); + } + var _proto = CircularPool.prototype; + _proto.request = function request() { + var item = this._data[this._cursor]; + this._cursor = (this._cursor + 1) % this._data.length; + return item; + }; + return CircularPool; + })(); + exports["default"] = CircularPool; + module.exports = exports["default"]; + }), {} ], + 258: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _timsort = _interopRequireDefault(require("./timsort")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + "value" in descriptor && (descriptor.writable = true); + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _createClass(Constructor, protoProps, staticProps) { + protoProps && _defineProperties(Constructor.prototype, protoProps); + staticProps && _defineProperties(Constructor, staticProps); + Object.defineProperty(Constructor, "prototype", { + writable: false + }); + return Constructor; + } + var FixedArray = (function() { + function FixedArray(size) { + this._count = 0; + this._data = new Array(size); + } + var _proto = FixedArray.prototype; + _proto._resize = function _resize(size) { + if (size > this._data.length) for (var i = this._data.length; i < size; ++i) this._data[i] = void 0; + }; + _proto.reset = function reset() { + for (var i = 0; i < this._count; ++i) this._data[i] = void 0; + this._count = 0; + }; + _proto.push = function push(val) { + this._count >= this._data.length && this._resize(2 * this._data.length); + this._data[this._count] = val; + ++this._count; + }; + _proto.pop = function pop() { + --this._count; + this._count < 0 && (this._count = 0); + var ret = this._data[this._count]; + this._data[this._count] = void 0; + return ret; + }; + _proto.fastRemove = function fastRemove(idx) { + if (idx >= this._count || idx < 0) return; + var last = this._count - 1; + this._data[idx] = this._data[last]; + this._data[last] = void 0; + this._count -= 1; + }; + _proto.indexOf = function indexOf(val) { + return this._data.indexOf(val); + }; + _proto.sort = function sort(cmp) { + return (0, _timsort["default"])(this._data, 0, this._count, cmp); + }; + _createClass(FixedArray, [ { + key: "length", + get: function get() { + return this._count; + } + }, { + key: "data", + get: function get() { + return this._data; + } + } ]); + return FixedArray; + })(); + exports["default"] = FixedArray; + module.exports = exports["default"]; + }), { + "./timsort": 263 + } ], + 259: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports.TypedArrayPool = exports.RecyclePool = exports.Pool = exports.LinkedArray = exports.FixedArray = exports.CircularPool = void 0; + var _circularPool = _interopRequireDefault(require("./circular-pool")); + exports.CircularPool = _circularPool["default"]; + var _fixedArray = _interopRequireDefault(require("./fixed-array")); + exports.FixedArray = _fixedArray["default"]; + var _linkedArray = _interopRequireDefault(require("./linked-array")); + exports.LinkedArray = _linkedArray["default"]; + var _pool = _interopRequireDefault(require("./pool")); + exports.Pool = _pool["default"]; + var _recyclePool = _interopRequireDefault(require("./recycle-pool")); + exports.RecyclePool = _recyclePool["default"]; + var _typedArrayPool = _interopRequireDefault(require("./typed-array-pool")); + exports.TypedArrayPool = _typedArrayPool["default"]; + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + }), { + "./circular-pool": 257, + "./fixed-array": 258, + "./linked-array": 260, + "./pool": 261, + "./recycle-pool": 262, + "./typed-array-pool": 264 + } ], + 260: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _pool = _interopRequireDefault(require("./pool")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + "value" in descriptor && (descriptor.writable = true); + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _createClass(Constructor, protoProps, staticProps) { + protoProps && _defineProperties(Constructor.prototype, protoProps); + staticProps && _defineProperties(Constructor, staticProps); + Object.defineProperty(Constructor, "prototype", { + writable: false + }); + return Constructor; + } + var LinkedArray = (function() { + function LinkedArray(fn, size) { + this._fn = fn; + this._count = 0; + this._head = null; + this._tail = null; + this._pool = new _pool["default"](fn, size); + } + var _proto = LinkedArray.prototype; + _proto.add = function add() { + var node = this._pool.alloc(); + if (this._tail) { + this._tail._next = node; + node._prev = this._tail; + } else this._head = node; + this._tail = node; + this._count += 1; + return node; + }; + _proto.remove = function remove(node) { + node._prev ? node._prev._next = node._next : this._head = node._next; + node._next ? node._next._prev = node._prev : this._tail = node._prev; + node._next = null; + node._prev = null; + this._pool.free(node); + this._count -= 1; + }; + _proto.forEach = function forEach(fn, binder) { + var cursor = this._head; + if (!cursor) return; + binder && (fn = fn.bind(binder)); + var idx = 0; + var next = cursor; + while (cursor) { + next = cursor._next; + fn(cursor, idx, this); + cursor = next; + ++idx; + } + }; + _createClass(LinkedArray, [ { + key: "head", + get: function get() { + return this._head; + } + }, { + key: "tail", + get: function get() { + return this._tail; + } + }, { + key: "length", + get: function get() { + return this._count; + } + } ]); + return LinkedArray; + })(); + exports["default"] = LinkedArray; + module.exports = exports["default"]; + }), { + "./pool": 261 + } ], + 261: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var Pool = (function() { + function Pool(fn, size) { + this._fn = fn; + this._idx = size - 1; + this._frees = new Array(size); + for (var i = 0; i < size; ++i) this._frees[i] = fn(); + } + var _proto = Pool.prototype; + _proto._expand = function _expand(size) { + var old = this._frees; + this._frees = new Array(size); + var len = size - old.length; + for (var i = 0; i < len; ++i) this._frees[i] = this._fn(); + for (var _i = len, j = 0; _i < size; ++_i, ++j) this._frees[_i] = old[j]; + this._idx += len; + }; + _proto.alloc = function alloc() { + this._idx < 0 && this._expand(Math.round(1.2 * this._frees.length) + 1); + var ret = this._frees[this._idx]; + this._frees[this._idx] = null; + --this._idx; + return ret; + }; + _proto.free = function free(obj) { + ++this._idx; + this._frees[this._idx] = obj; + }; + _proto.clear = function clear(fn) { + for (var i = 0; i <= this._idx; i++) fn && fn(this._frees[i]); + this._frees.length = 0; + this._idx = -1; + }; + return Pool; + })(); + exports["default"] = Pool; + module.exports = exports["default"]; + }), {} ], + 262: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _timsort = _interopRequireDefault(require("./timsort")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + "value" in descriptor && (descriptor.writable = true); + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _createClass(Constructor, protoProps, staticProps) { + protoProps && _defineProperties(Constructor.prototype, protoProps); + staticProps && _defineProperties(Constructor, staticProps); + Object.defineProperty(Constructor, "prototype", { + writable: false + }); + return Constructor; + } + var RecyclePool = (function() { + function RecyclePool(fn, size) { + this._fn = fn; + this._count = 0; + this._data = new Array(size); + for (var i = 0; i < size; ++i) this._data[i] = fn(); + } + var _proto = RecyclePool.prototype; + _proto.reset = function reset() { + this._count = 0; + }; + _proto.resize = function resize(size) { + if (size > this._data.length) for (var i = this._data.length; i < size; ++i) this._data[i] = this._fn(); + }; + _proto.add = function add() { + this._count >= this._data.length && this.resize(2 * this._data.length); + return this._data[this._count++]; + }; + _proto.remove = function remove(idx) { + if (idx >= this._count) return; + var last = this._count - 1; + var tmp = this._data[idx]; + this._data[idx] = this._data[last]; + this._data[last] = tmp; + this._count -= 1; + }; + _proto.sort = function sort(cmp) { + return (0, _timsort["default"])(this._data, 0, this._count, cmp); + }; + _createClass(RecyclePool, [ { + key: "length", + get: function get() { + return this._count; + } + }, { + key: "data", + get: function get() { + return this._data; + } + } ]); + return RecyclePool; + })(); + exports["default"] = RecyclePool; + cc.RecyclePool = RecyclePool; + module.exports = exports["default"]; + }), { + "./timsort": 263 + } ], + 263: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = _default; + var DEFAULT_MIN_MERGE = 32; + var DEFAULT_MIN_GALLOPING = 7; + var DEFAULT_TMP_STORAGE_LENGTH = 256; + var POWERS_OF_TEN = [ 1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9 ]; + function log10(x) { + if (x < 1e5) { + if (x < 100) return x < 10 ? 0 : 1; + if (x < 1e4) return x < 1e3 ? 2 : 3; + return 4; + } + if (x < 1e7) return x < 1e6 ? 5 : 6; + if (x < 1e9) return x < 1e8 ? 7 : 8; + return 9; + } + function alphabeticalCompare(a, b) { + if (a === b) return 0; + if (~~a === a && ~~b === b) { + if (0 === a || 0 === b) return a < b ? -1 : 1; + if (a < 0 || b < 0) { + if (b >= 0) return -1; + if (a >= 0) return 1; + a = -a; + b = -b; + } + var al = log10(a); + var bl = log10(b); + var t = 0; + if (al < bl) { + a *= POWERS_OF_TEN[bl - al - 1]; + b /= 10; + t = -1; + } else if (al > bl) { + b *= POWERS_OF_TEN[al - bl - 1]; + a /= 10; + t = 1; + } + if (a === b) return t; + return a < b ? -1 : 1; + } + var aStr = String(a); + var bStr = String(b); + if (aStr === bStr) return 0; + return aStr < bStr ? -1 : 1; + } + function minRunLength(n) { + var r = 0; + while (n >= DEFAULT_MIN_MERGE) { + r |= 1 & n; + n >>= 1; + } + return n + r; + } + function makeAscendingRun(array, lo, hi, compare) { + var runHi = lo + 1; + if (runHi === hi) return 1; + if (compare(array[runHi++], array[lo]) < 0) { + while (runHi < hi && compare(array[runHi], array[runHi - 1]) < 0) runHi++; + reverseRun(array, lo, runHi); + } else while (runHi < hi && compare(array[runHi], array[runHi - 1]) >= 0) runHi++; + return runHi - lo; + } + function reverseRun(array, lo, hi) { + hi--; + while (lo < hi) { + var t = array[lo]; + array[lo++] = array[hi]; + array[hi--] = t; + } + } + function binaryInsertionSort(array, lo, hi, start, compare) { + start === lo && start++; + for (;start < hi; start++) { + var pivot = array[start]; + var left = lo; + var right = start; + while (left < right) { + var mid = left + right >>> 1; + compare(pivot, array[mid]) < 0 ? right = mid : left = mid + 1; + } + var n = start - left; + switch (n) { + case 3: + array[left + 3] = array[left + 2]; + + case 2: + array[left + 2] = array[left + 1]; + + case 1: + array[left + 1] = array[left]; + break; + + default: + while (n > 0) { + array[left + n] = array[left + n - 1]; + n--; + } + } + array[left] = pivot; + } + } + function gallopLeft(value, array, start, length, hint, compare) { + var lastOffset = 0; + var maxOffset = 0; + var offset = 1; + if (compare(value, array[start + hint]) > 0) { + maxOffset = length - hint; + while (offset < maxOffset && compare(value, array[start + hint + offset]) > 0) { + lastOffset = offset; + offset = 1 + (offset << 1); + offset <= 0 && (offset = maxOffset); + } + offset > maxOffset && (offset = maxOffset); + lastOffset += hint; + offset += hint; + } else { + maxOffset = hint + 1; + while (offset < maxOffset && compare(value, array[start + hint - offset]) <= 0) { + lastOffset = offset; + offset = 1 + (offset << 1); + offset <= 0 && (offset = maxOffset); + } + offset > maxOffset && (offset = maxOffset); + var tmp = lastOffset; + lastOffset = hint - offset; + offset = hint - tmp; + } + lastOffset++; + while (lastOffset < offset) { + var m = lastOffset + (offset - lastOffset >>> 1); + compare(value, array[start + m]) > 0 ? lastOffset = m + 1 : offset = m; + } + return offset; + } + function gallopRight(value, array, start, length, hint, compare) { + var lastOffset = 0; + var maxOffset = 0; + var offset = 1; + if (compare(value, array[start + hint]) < 0) { + maxOffset = hint + 1; + while (offset < maxOffset && compare(value, array[start + hint - offset]) < 0) { + lastOffset = offset; + offset = 1 + (offset << 1); + offset <= 0 && (offset = maxOffset); + } + offset > maxOffset && (offset = maxOffset); + var tmp = lastOffset; + lastOffset = hint - offset; + offset = hint - tmp; + } else { + maxOffset = length - hint; + while (offset < maxOffset && compare(value, array[start + hint + offset]) >= 0) { + lastOffset = offset; + offset = 1 + (offset << 1); + offset <= 0 && (offset = maxOffset); + } + offset > maxOffset && (offset = maxOffset); + lastOffset += hint; + offset += hint; + } + lastOffset++; + while (lastOffset < offset) { + var m = lastOffset + (offset - lastOffset >>> 1); + compare(value, array[start + m]) < 0 ? offset = m : lastOffset = m + 1; + } + return offset; + } + var TimSort = (function() { + function TimSort(array, compare) { + this.array = array; + this.compare = compare; + this.minGallop = DEFAULT_MIN_GALLOPING; + this.length = array.length; + this.tmpStorageLength = DEFAULT_TMP_STORAGE_LENGTH; + this.length < 2 * DEFAULT_TMP_STORAGE_LENGTH && (this.tmpStorageLength = this.length >>> 1); + this.tmp = new Array(this.tmpStorageLength); + this.stackLength = this.length < 120 ? 5 : this.length < 1542 ? 10 : this.length < 119151 ? 19 : 40; + this.runStart = new Array(this.stackLength); + this.runLength = new Array(this.stackLength); + this.stackSize = 0; + } + var _proto = TimSort.prototype; + _proto.pushRun = function pushRun(runStart, runLength) { + this.runStart[this.stackSize] = runStart; + this.runLength[this.stackSize] = runLength; + this.stackSize += 1; + }; + _proto.mergeRuns = function mergeRuns() { + while (this.stackSize > 1) { + var n = this.stackSize - 2; + if (n >= 1 && this.runLength[n - 1] <= this.runLength[n] + this.runLength[n + 1] || n >= 2 && this.runLength[n - 2] <= this.runLength[n] + this.runLength[n - 1]) this.runLength[n - 1] < this.runLength[n + 1] && n--; else if (this.runLength[n] > this.runLength[n + 1]) break; + this.mergeAt(n); + } + }; + _proto.forceMergeRuns = function forceMergeRuns() { + while (this.stackSize > 1) { + var n = this.stackSize - 2; + n > 0 && this.runLength[n - 1] < this.runLength[n + 1] && n--; + this.mergeAt(n); + } + }; + _proto.mergeAt = function mergeAt(i) { + var compare = this.compare; + var array = this.array; + var start1 = this.runStart[i]; + var length1 = this.runLength[i]; + var start2 = this.runStart[i + 1]; + var length2 = this.runLength[i + 1]; + this.runLength[i] = length1 + length2; + if (i === this.stackSize - 3) { + this.runStart[i + 1] = this.runStart[i + 2]; + this.runLength[i + 1] = this.runLength[i + 2]; + } + this.stackSize--; + var k = gallopRight(array[start2], array, start1, length1, 0, compare); + start1 += k; + length1 -= k; + if (0 === length1) return; + length2 = gallopLeft(array[start1 + length1 - 1], array, start2, length2, length2 - 1, compare); + if (0 === length2) return; + length1 <= length2 ? this.mergeLow(start1, length1, start2, length2) : this.mergeHigh(start1, length1, start2, length2); + }; + _proto.mergeLow = function mergeLow(start1, length1, start2, length2) { + var compare = this.compare; + var array = this.array; + var tmp = this.tmp; + var i = 0; + for (i = 0; i < length1; i++) tmp[i] = array[start1 + i]; + var cursor1 = 0; + var cursor2 = start2; + var dest = start1; + array[dest++] = array[cursor2++]; + if (0 === --length2) { + for (i = 0; i < length1; i++) array[dest + i] = tmp[cursor1 + i]; + return; + } + if (1 === length1) { + for (i = 0; i < length2; i++) array[dest + i] = array[cursor2 + i]; + array[dest + length2] = tmp[cursor1]; + return; + } + var minGallop = this.minGallop; + while (true) { + var count1 = 0; + var count2 = 0; + var exit = false; + do { + if (compare(array[cursor2], tmp[cursor1]) < 0) { + array[dest++] = array[cursor2++]; + count2++; + count1 = 0; + if (0 === --length2) { + exit = true; + break; + } + } else { + array[dest++] = tmp[cursor1++]; + count1++; + count2 = 0; + if (1 === --length1) { + exit = true; + break; + } + } + } while ((count1 | count2) < minGallop); + if (exit) break; + do { + count1 = gallopRight(array[cursor2], tmp, cursor1, length1, 0, compare); + if (0 !== count1) { + for (i = 0; i < count1; i++) array[dest + i] = tmp[cursor1 + i]; + dest += count1; + cursor1 += count1; + length1 -= count1; + if (length1 <= 1) { + exit = true; + break; + } + } + array[dest++] = array[cursor2++]; + if (0 === --length2) { + exit = true; + break; + } + count2 = gallopLeft(tmp[cursor1], array, cursor2, length2, 0, compare); + if (0 !== count2) { + for (i = 0; i < count2; i++) array[dest + i] = array[cursor2 + i]; + dest += count2; + cursor2 += count2; + length2 -= count2; + if (0 === length2) { + exit = true; + break; + } + } + array[dest++] = tmp[cursor1++]; + if (1 === --length1) { + exit = true; + break; + } + minGallop--; + } while (count1 >= DEFAULT_MIN_GALLOPING || count2 >= DEFAULT_MIN_GALLOPING); + if (exit) break; + minGallop < 0 && (minGallop = 0); + minGallop += 2; + } + this.minGallop = minGallop; + minGallop < 1 && (this.minGallop = 1); + if (1 === length1) { + for (i = 0; i < length2; i++) array[dest + i] = array[cursor2 + i]; + array[dest + length2] = tmp[cursor1]; + } else { + if (0 === length1) throw new Error("mergeLow preconditions were not respected"); + for (i = 0; i < length1; i++) array[dest + i] = tmp[cursor1 + i]; + } + }; + _proto.mergeHigh = function mergeHigh(start1, length1, start2, length2) { + var compare = this.compare; + var array = this.array; + var tmp = this.tmp; + var i = 0; + for (i = 0; i < length2; i++) tmp[i] = array[start2 + i]; + var cursor1 = start1 + length1 - 1; + var cursor2 = length2 - 1; + var dest = start2 + length2 - 1; + var customCursor = 0; + var customDest = 0; + array[dest--] = array[cursor1--]; + if (0 === --length1) { + customCursor = dest - (length2 - 1); + for (i = 0; i < length2; i++) array[customCursor + i] = tmp[i]; + return; + } + if (1 === length2) { + dest -= length1; + cursor1 -= length1; + customDest = dest + 1; + customCursor = cursor1 + 1; + for (i = length1 - 1; i >= 0; i--) array[customDest + i] = array[customCursor + i]; + array[dest] = tmp[cursor2]; + return; + } + var minGallop = this.minGallop; + while (true) { + var count1 = 0; + var count2 = 0; + var exit = false; + do { + if (compare(tmp[cursor2], array[cursor1]) < 0) { + array[dest--] = array[cursor1--]; + count1++; + count2 = 0; + if (0 === --length1) { + exit = true; + break; + } + } else { + array[dest--] = tmp[cursor2--]; + count2++; + count1 = 0; + if (1 === --length2) { + exit = true; + break; + } + } + } while ((count1 | count2) < minGallop); + if (exit) break; + do { + count1 = length1 - gallopRight(tmp[cursor2], array, start1, length1, length1 - 1, compare); + if (0 !== count1) { + dest -= count1; + cursor1 -= count1; + length1 -= count1; + customDest = dest + 1; + customCursor = cursor1 + 1; + for (i = count1 - 1; i >= 0; i--) array[customDest + i] = array[customCursor + i]; + if (0 === length1) { + exit = true; + break; + } + } + array[dest--] = tmp[cursor2--]; + if (1 === --length2) { + exit = true; + break; + } + count2 = length2 - gallopLeft(array[cursor1], tmp, 0, length2, length2 - 1, compare); + if (0 !== count2) { + dest -= count2; + cursor2 -= count2; + length2 -= count2; + customDest = dest + 1; + customCursor = cursor2 + 1; + for (i = 0; i < count2; i++) array[customDest + i] = tmp[customCursor + i]; + if (length2 <= 1) { + exit = true; + break; + } + } + array[dest--] = array[cursor1--]; + if (0 === --length1) { + exit = true; + break; + } + minGallop--; + } while (count1 >= DEFAULT_MIN_GALLOPING || count2 >= DEFAULT_MIN_GALLOPING); + if (exit) break; + minGallop < 0 && (minGallop = 0); + minGallop += 2; + } + this.minGallop = minGallop; + minGallop < 1 && (this.minGallop = 1); + if (1 === length2) { + dest -= length1; + cursor1 -= length1; + customDest = dest + 1; + customCursor = cursor1 + 1; + for (i = length1 - 1; i >= 0; i--) array[customDest + i] = array[customCursor + i]; + array[dest] = tmp[cursor2]; + } else { + if (0 === length2) throw new Error("mergeHigh preconditions were not respected"); + customCursor = dest - (length2 - 1); + for (i = 0; i < length2; i++) array[customCursor + i] = tmp[i]; + } + }; + return TimSort; + })(); + function _default(array, lo, hi, compare) { + if (!Array.isArray(array)) throw new TypeError("Can only sort arrays"); + void 0 === lo && (lo = 0); + void 0 === hi && (hi = array.length); + void 0 === compare && (compare = alphabeticalCompare); + var remaining = hi - lo; + if (remaining < 2) return; + var runLength = 0; + if (remaining < DEFAULT_MIN_MERGE) { + runLength = makeAscendingRun(array, lo, hi, compare); + binaryInsertionSort(array, lo, hi, lo + runLength, compare); + return; + } + var ts = new TimSort(array, compare); + var minRun = minRunLength(remaining); + do { + runLength = makeAscendingRun(array, lo, hi, compare); + if (runLength < minRun) { + var force = remaining; + force > minRun && (force = minRun); + binaryInsertionSort(array, lo, lo + force, lo + runLength, compare); + runLength = force; + } + ts.pushRun(lo, runLength); + ts.mergeRuns(); + remaining -= runLength; + lo += runLength; + } while (0 !== remaining); + ts.forceMergeRuns(); + } + module.exports = exports["default"]; + }), {} ], + 264: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _bufferPools = Array(8); + for (var i = 0; i < 8; ++i) _bufferPools[i] = []; + function _nextPow16(v) { + for (var _i = 16; _i <= 1 << 28; _i *= 16) if (v <= _i) return _i; + return 0; + } + function _log2(v) { + var r, shift; + r = (v > 65535) << 4; + v >>>= r; + shift = (v > 255) << 3; + v >>>= shift; + r |= shift; + shift = (v > 15) << 2; + v >>>= shift; + r |= shift; + shift = (v > 3) << 1; + v >>>= shift; + r |= shift; + return r | v >> 1; + } + function _alloc(n) { + var sz = _nextPow16(n); + var bin = _bufferPools[_log2(sz) >> 2]; + if (bin.length > 0) return bin.pop(); + return new ArrayBuffer(sz); + } + function _free(buf) { + _bufferPools[_log2(buf.byteLength) >> 2].push(buf); + } + var _default = { + alloc_int8: function alloc_int8(n) { + var result = new Int8Array(_alloc(n), 0, n); + if (result.length !== n) return result.subarray(0, n); + return result; + }, + alloc_uint8: function alloc_uint8(n) { + var result = new Uint8Array(_alloc(n), 0, n); + if (result.length !== n) return result.subarray(0, n); + return result; + }, + alloc_int16: function alloc_int16(n) { + var result = new Int16Array(_alloc(2 * n), 0, n); + if (result.length !== n) return result.subarray(0, n); + return result; + }, + alloc_uint16: function alloc_uint16(n) { + var result = new Uint16Array(_alloc(2 * n), 0, n); + if (result.length !== n) return result.subarray(0, n); + return result; + }, + alloc_int32: function alloc_int32(n) { + var result = new Int32Array(_alloc(4 * n), 0, n); + if (result.length !== n) return result.subarray(0, n); + return result; + }, + alloc_uint32: function alloc_uint32(n) { + var result = new Uint32Array(_alloc(4 * n), 0, n); + if (result.length !== n) return result.subarray(0, n); + return result; + }, + alloc_float32: function alloc_float32(n) { + var result = new Float32Array(_alloc(4 * n), 0, n); + if (result.length !== n) return result.subarray(0, n); + return result; + }, + alloc_float64: function alloc_float64(n) { + var result = new Float64Array(_alloc(8 * n), 0, n); + if (result.length !== n) return result.subarray(0, n); + return result; + }, + alloc_dataview: function alloc_dataview(n) { + var result = new DataView(_alloc(n), 0, n); + if (result.length !== n) return result.subarray(0, n); + return result; + }, + free: function free(array) { + _free(array.buffer); + }, + reset: function reset() { + var _bufferPools = Array(8); + for (var _i2 = 0; _i2 < 8; ++_i2) _bufferPools[_i2] = []; + } + }; + exports["default"] = _default; + module.exports = exports["default"]; + }), {} ], + 265: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = murmurhash2_32_gc; + function murmurhash2_32_gc(str, seed) { + var l = str.length, h = seed ^ l, i = 0, k; + while (l >= 4) { + k = 255 & str.charCodeAt(i) | (255 & str.charCodeAt(++i)) << 8 | (255 & str.charCodeAt(++i)) << 16 | (255 & str.charCodeAt(++i)) << 24; + k = 1540483477 * (65535 & k) + ((1540483477 * (k >>> 16) & 65535) << 16); + k ^= k >>> 24; + k = 1540483477 * (65535 & k) + ((1540483477 * (k >>> 16) & 65535) << 16); + h = 1540483477 * (65535 & h) + ((1540483477 * (h >>> 16) & 65535) << 16) ^ k; + l -= 4; + ++i; + } + switch (l) { + case 3: + h ^= (255 & str.charCodeAt(i + 2)) << 16; + + case 2: + h ^= (255 & str.charCodeAt(i + 1)) << 8; + + case 1: + h ^= 255 & str.charCodeAt(i); + h = 1540483477 * (65535 & h) + ((1540483477 * (h >>> 16) & 65535) << 16); + } + h ^= h >>> 13; + h = 1540483477 * (65535 & h) + ((1540483477 * (h >>> 16) & 65535) << 16); + h ^= h >>> 15; + return h >>> 0; + } + module.exports = exports["default"]; + }), {} ], + 266: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _valueTypes = require("../../core/value-types"); + var _baseRenderer = _interopRequireDefault(require("../core/base-renderer")); + var _enums = _interopRequireDefault(require("../enums")); + var _memop = require("../memop"); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _assertThisInitialized(self) { + if (void 0 === self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return self; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var _a16_view = new Float32Array(16); + var _a16_view_inv = new Float32Array(16); + var _a16_proj = new Float32Array(16); + var _a16_viewProj = new Float32Array(16); + var _a4_camPos = new Float32Array(4); + var _a64_shadow_lightViewProj = new Float32Array(64); + var _a16_shadow_lightViewProjs = []; + var _a4_shadow_info = new Float32Array(4); + var _camPos = new _valueTypes.Vec4(0, 0, 0, 0); + var _camFwd = new _valueTypes.Vec3(0, 0, 0); + var _v3_tmp1 = new _valueTypes.Vec3(0, 0, 0); + var CC_MAX_LIGHTS = 4; + var CC_MAX_SHADOW_LIGHTS = 2; + var _float16_pool = new _memop.RecyclePool(function() { + return new Float32Array(16); + }, 8); + function sortView(a, b) { + return a._priority - b._priority; + } + var ForwardRenderer = (function(_BaseRenderer) { + _inheritsLoose(ForwardRenderer, _BaseRenderer); + function ForwardRenderer(device, builtin) { + var _this; + _this = _BaseRenderer.call(this, device, builtin) || this; + _this._time = new Float32Array(4); + _this._lights = []; + _this._shadowLights = []; + _this._numLights = 0; + _this._defines = {}; + _this._registerStage("shadowcast", _this._shadowStage.bind(_assertThisInitialized(_this))); + _this._registerStage("opaque", _this._opaqueStage.bind(_assertThisInitialized(_this))); + _this._registerStage("transparent", _this._transparentStage.bind(_assertThisInitialized(_this))); + return _this; + } + var _proto = ForwardRenderer.prototype; + _proto.reset = function reset() { + _float16_pool.reset(); + _BaseRenderer.prototype.reset.call(this); + }; + _proto.render = function render(scene, dt) { + this.reset(); + true; + if (dt) { + this._time[0] += dt; + this._time[1] = dt; + this._time[2]++; + } + this._device.setUniform("cc_time", this._time); + this._updateLights(scene); + var canvas = this._device._gl.canvas; + for (var i = 0; i < scene._cameras.length; ++i) { + var view = this._requestView(); + var width = canvas.width; + var height = canvas.height; + var camera = scene._cameras.data[i]; + camera.extractView(view, width, height); + } + this._viewPools.sort(sortView); + for (var _i = 0; _i < this._viewPools.length; ++_i) { + var _view = this._viewPools.data[_i]; + this._render(_view, scene); + } + }; + _proto.renderCamera = function renderCamera(camera, scene) { + this.reset(); + this._updateLights(scene); + var canvas = this._device._gl.canvas; + var width = canvas.width; + var height = canvas.height; + var view = this._requestView(); + camera.extractView(view, width, height); + this._viewPools.sort(sortView); + for (var i = 0; i < this._viewPools.length; ++i) { + var _view2 = this._viewPools.data[i]; + this._render(_view2, scene); + } + }; + _proto._updateLights = function _updateLights(scene) { + this._lights.length = 0; + this._shadowLights.length = 0; + var lights = scene._lights; + for (var i = 0; i < lights.length; ++i) { + var light = lights.data[i]; + light.update(this._device); + if (light.shadowType !== _enums["default"].SHADOW_NONE) { + this._shadowLights.length < CC_MAX_SHADOW_LIGHTS && this._shadowLights.splice(0, 0, light); + var view = this._requestView(); + light.extractView(view, [ "shadowcast" ]); + this._lights.splice(0, 0, light); + } else this._lights.push(light); + } + this._updateLightDefines(); + this._numLights = lights._count; + }; + _proto._updateLightDefines = function _updateLightDefines() { + var defines = this._defines; + for (var i = 0; i < this._lights.length; ++i) { + var light = this._lights[i]; + var lightKey = "CC_LIGHT_" + i + "_TYPE"; + var shadowKey = "CC_SHADOW_" + i + "_TYPE"; + if (defines[lightKey] !== light._type) { + defines[lightKey] = light._type; + this._definesChanged = true; + } + if (defines[shadowKey] !== light._shadowType) { + defines[shadowKey] = light._shadowType; + this._definesChanged = true; + } + } + var newCount = Math.min(CC_MAX_LIGHTS, this._lights.length); + if (defines.CC_NUM_LIGHTS !== newCount) { + defines.CC_NUM_LIGHTS = newCount; + this._definesChanged = true; + } + newCount = Math.min(CC_MAX_LIGHTS, this._shadowLights.length); + if (defines.CC_NUM_SHADOW_LIGHTS !== newCount) { + defines.CC_NUM_SHADOW_LIGHTS = newCount; + this._definesChanged = true; + } + }; + _proto._submitLightsUniforms = function _submitLightsUniforms() { + var device = this._device; + if (this._lights.length > 0) { + var positionAndRanges = _float16_pool.add(); + var directions = _float16_pool.add(); + var colors = _float16_pool.add(); + var lightNum = Math.min(CC_MAX_LIGHTS, this._lights.length); + for (var i = 0; i < lightNum; ++i) { + var light = this._lights[i]; + var index = 4 * i; + colors.set(light._colorUniform, index); + directions.set(light._directionUniform, index); + positionAndRanges.set(light._positionUniform, index); + positionAndRanges[index + 3] = light._range; + if (light._type === _enums["default"].LIGHT_SPOT) { + directions[index + 3] = light._spotUniform[0]; + colors[index + 3] = light._spotUniform[1]; + } else { + directions[index + 3] = 0; + colors[index + 3] = 0; + } + } + device.setUniform("cc_lightDirection", directions); + device.setUniform("cc_lightColor", colors); + device.setUniform("cc_lightPositionAndRange", positionAndRanges); + } + }; + _proto._submitShadowStageUniforms = function _submitShadowStageUniforms(view) { + var light = view._shadowLight; + var shadowInfo = _a4_shadow_info; + shadowInfo[0] = light.shadowMinDepth; + shadowInfo[1] = light.shadowMaxDepth; + shadowInfo[2] = light.shadowDepthScale; + shadowInfo[3] = light.shadowDarkness; + this._device.setUniform("cc_shadow_map_lightViewProjMatrix", _valueTypes.Mat4.toArray(_a16_viewProj, view._matViewProj)); + this._device.setUniform("cc_shadow_map_info", shadowInfo); + this._device.setUniform("cc_shadow_map_bias", light.shadowBias); + this._defines.CC_SHADOW_TYPE = light._shadowType; + }; + _proto._submitOtherStagesUniforms = function _submitOtherStagesUniforms() { + var shadowInfo = _float16_pool.add(); + for (var i = 0; i < this._shadowLights.length; ++i) { + var light = this._shadowLights[i]; + var view = _a16_shadow_lightViewProjs[i]; + view || (view = _a16_shadow_lightViewProjs[i] = new Float32Array(_a64_shadow_lightViewProj.buffer, 64 * i, 16)); + _valueTypes.Mat4.toArray(view, light.viewProjMatrix); + var index = 4 * i; + shadowInfo[index] = light.shadowMinDepth; + shadowInfo[index + 1] = light.shadowMaxDepth; + shadowInfo[index + 2] = light._shadowResolution; + shadowInfo[index + 3] = light.shadowDarkness; + } + this._device.setUniform("cc_shadow_lightViewProjMatrix", _a64_shadow_lightViewProj); + this._device.setUniform("cc_shadow_info", shadowInfo); + }; + _proto._sortItems = function _sortItems(items) { + items.sort((function(a, b) { + if (a.passes.length !== b.passes.length) return a.passes.length - b.passes.length; + return a.sortKey - b.sortKey; + })); + }; + _proto._shadowStage = function _shadowStage(view, items) { + this._submitShadowStageUniforms(view); + for (var i = 0; i < items.length; ++i) { + var item = items.data[i]; + item.effect.getDefine("CC_CASTING_SHADOW") && this._draw(item); + } + }; + _proto._drawItems = function _drawItems(view, items) { + var shadowLights = this._shadowLights; + if (0 === shadowLights.length && 0 === this._numLights) for (var i = 0; i < items.length; ++i) { + var item = items.data[i]; + this._draw(item); + } else for (var _i2 = 0; _i2 < items.length; ++_i2) { + var _item = items.data[_i2]; + for (var shadowIdx = 0; shadowIdx < shadowLights.length; ++shadowIdx) this._device.setTexture("cc_shadow_map_" + shadowIdx, shadowLights[shadowIdx].shadowMap, this._allocTextureUnit()); + this._draw(_item); + } + }; + _proto._opaqueStage = function _opaqueStage(view, items) { + view.getPosition(_camPos); + this._device.setUniform("cc_matView", _valueTypes.Mat4.toArray(_a16_view, view._matView)); + this._device.setUniform("cc_matViewInv", _valueTypes.Mat4.toArray(_a16_view_inv, view._matViewInv)); + this._device.setUniform("cc_matProj", _valueTypes.Mat4.toArray(_a16_proj, view._matProj)); + this._device.setUniform("cc_matViewProj", _valueTypes.Mat4.toArray(_a16_viewProj, view._matViewProj)); + this._device.setUniform("cc_cameraPos", _valueTypes.Vec4.toArray(_a4_camPos, _camPos)); + this._submitLightsUniforms(); + this._submitOtherStagesUniforms(); + this._drawItems(view, items); + }; + _proto._transparentStage = function _transparentStage(view, items) { + view.getPosition(_camPos); + view.getForward(_camFwd); + this._device.setUniform("cc_matView", _valueTypes.Mat4.toArray(_a16_view, view._matView)); + this._device.setUniform("cc_matViewInv", _valueTypes.Mat4.toArray(_a16_view_inv, view._matViewInv)); + this._device.setUniform("cc_matProj", _valueTypes.Mat4.toArray(_a16_proj, view._matProj)); + this._device.setUniform("cc_matViewProj", _valueTypes.Mat4.toArray(_a16_viewProj, view._matViewProj)); + this._device.setUniform("cc_cameraPos", _valueTypes.Vec4.toArray(_a4_camPos, _camPos)); + this._submitLightsUniforms(); + this._submitOtherStagesUniforms(); + for (var i = 0; i < items.length; ++i) { + var item = items.data[i]; + item.node.getWorldPosition(_v3_tmp1); + _valueTypes.Vec3.sub(_v3_tmp1, _v3_tmp1, _camPos); + item.sortKey = -_valueTypes.Vec3.dot(_v3_tmp1, _camFwd); + } + this._sortItems(items); + this._drawItems(view, items); + }; + return ForwardRenderer; + })(_baseRenderer["default"]); + exports["default"] = ForwardRenderer; + module.exports = exports["default"]; + }), { + "../../core/value-types": 220, + "../core/base-renderer": 236, + "../enums": 242, + "../memop": 259 + } ], + 267: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _valueTypes = require("../../core/value-types"); + var _geomUtils = require("../../core/geom-utils"); + var _enums = _interopRequireDefault(require("../enums")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + "value" in descriptor && (descriptor.writable = true); + Object.defineProperty(target, descriptor.key, descriptor); + } + } + function _createClass(Constructor, protoProps, staticProps) { + protoProps && _defineProperties(Constructor.prototype, protoProps); + staticProps && _defineProperties(Constructor, staticProps); + Object.defineProperty(Constructor, "prototype", { + writable: false + }); + return Constructor; + } + var _tmp_mat4 = new _valueTypes.Mat4(); + var _matView = new _valueTypes.Mat4(); + var _matViewInv = new _valueTypes.Mat4(); + var _matProj = new _valueTypes.Mat4(); + var _matViewProj = new _valueTypes.Mat4(); + var _matInvViewProj = new _valueTypes.Mat4(); + var _tmp_v3 = new _valueTypes.Vec3(); + var _tmp2_v3 = new _valueTypes.Vec3(); + var Camera = (function() { + function Camera() { + this._poolID = -1; + this._node = null; + this._projection = _enums["default"].PROJ_PERSPECTIVE; + this._priority = 0; + this._color = new _valueTypes.Vec4(.2, .3, .47, 1); + this._depth = 1; + this._stencil = 0; + this._clearFlags = _enums["default"].CLEAR_COLOR | _enums["default"].CLEAR_DEPTH; + this._clearModel = null; + this._stages = []; + this._framebuffer = null; + this._near = .01; + this._far = 1e3; + this._fov = Math.PI / 4; + this._rect = { + x: 0, + y: 0, + w: 1, + h: 1 + }; + this._orthoHeight = 10; + this._cullingMask = 4294967295; + } + var _proto = Camera.prototype; + _proto.setCullingMask = function setCullingMask(mask) { + this._cullingMask = mask; + }; + _proto.getNode = function getNode() { + return this._node; + }; + _proto.setNode = function setNode(node) { + this._node = node; + }; + _proto.getType = function getType() { + return this._projection; + }; + _proto.setType = function setType(type) { + this._projection = type; + }; + _proto.getPriority = function getPriority() { + return this._priority; + }; + _proto.setPriority = function setPriority(priority) { + this._priority = priority; + }; + _proto.getOrthoHeight = function getOrthoHeight() { + return this._orthoHeight; + }; + _proto.setOrthoHeight = function setOrthoHeight(val) { + this._orthoHeight = val; + }; + _proto.getFov = function getFov() { + return this._fov; + }; + _proto.setFov = function setFov(fov) { + this._fov = fov; + }; + _proto.getNear = function getNear() { + return this._near; + }; + _proto.setNear = function setNear(near) { + this._near = near; + }; + _proto.getFar = function getFar() { + return this._far; + }; + _proto.setFar = function setFar(far) { + this._far = far; + }; + _proto.getColor = function getColor(out) { + return _valueTypes.Vec4.copy(out, this._color); + }; + _proto.setColor = function setColor(r, g, b, a) { + _valueTypes.Vec4.set(this._color, r, g, b, a); + }; + _proto.getDepth = function getDepth() { + return this._depth; + }; + _proto.setDepth = function setDepth(depth) { + this._depth = depth; + }; + _proto.getStencil = function getStencil() { + return this._stencil; + }; + _proto.setStencil = function setStencil(stencil) { + this._stencil = stencil; + }; + _proto.getClearFlags = function getClearFlags() { + return this._clearFlags; + }; + _proto.setClearFlags = function setClearFlags(flags) { + this._clearFlags = flags; + }; + _proto.getRect = function getRect(out) { + out.x = this._rect.x; + out.y = this._rect.y; + out.w = this._rect.w; + out.h = this._rect.h; + return out; + }; + _proto.setRect = function setRect(x, y, w, h) { + this._rect.x = x; + this._rect.y = y; + this._rect.w = w; + this._rect.h = h; + }; + _proto.getStages = function getStages() { + return this._stages; + }; + _proto.setStages = function setStages(stages) { + this._stages = stages; + }; + _proto.getFramebuffer = function getFramebuffer() { + return this._framebuffer; + }; + _proto.setFrameBuffer = function setFrameBuffer(framebuffer) { + this._framebuffer = framebuffer; + }; + _proto._calcMatrices = function _calcMatrices(width, height) { + this._node.getWorldRT(_matViewInv); + _valueTypes.Mat4.invert(_matView, _matViewInv); + var aspect = width / height; + if (this._projection === _enums["default"].PROJ_PERSPECTIVE) _valueTypes.Mat4.perspective(_matProj, this._fov, aspect, this._near, this._far); else { + var x = this._orthoHeight * aspect; + var y = this._orthoHeight; + _valueTypes.Mat4.ortho(_matProj, -x, x, -y, y, this._near, this._far); + } + _valueTypes.Mat4.mul(_matViewProj, _matProj, _matView); + _valueTypes.Mat4.invert(_matInvViewProj, _matViewProj); + }; + _proto.extractView = function extractView(out, width, height) { + if (this._framebuffer) { + width = this._framebuffer._width; + height = this._framebuffer._height; + } + out._priority = this._priority; + out._rect.x = this._rect.x * width; + out._rect.y = this._rect.y * height; + out._rect.w = this._rect.w * width; + out._rect.h = this._rect.h * height; + this.getColor(out._color); + out._depth = this._depth; + out._stencil = this._stencil; + out._clearFlags = this._clearFlags; + out._clearModel = this._clearModel; + out._stages = this._stages; + out._framebuffer = this._framebuffer; + this._calcMatrices(width, height); + _valueTypes.Mat4.copy(out._matView, _matView); + _valueTypes.Mat4.copy(out._matViewInv, _matViewInv); + _valueTypes.Mat4.copy(out._matProj, _matProj); + _valueTypes.Mat4.copy(out._matViewProj, _matViewProj); + _valueTypes.Mat4.copy(out._matInvViewProj, _matInvViewProj); + out._cullingMask = this._cullingMask; + }; + _proto.screenPointToRay = function screenPointToRay(x, y, width, height, out) { + if (!cc.geomUtils) return out; + out = out || new _geomUtils.Ray(); + this._calcMatrices(width, height); + var cx = this._rect.x * width; + var cy = this._rect.y * height; + var cw = this._rect.w * width; + var ch = this._rect.h * height; + _valueTypes.Vec3.set(_tmp2_v3, (x - cx) / cw * 2 - 1, (y - cy) / ch * 2 - 1, 1); + _valueTypes.Vec3.transformMat4(_tmp2_v3, _tmp2_v3, _matInvViewProj); + if (this._projection === _enums["default"].PROJ_PERSPECTIVE) this._node.getWorldPosition(_tmp_v3); else { + _valueTypes.Vec3.set(_tmp_v3, (x - cx) / cw * 2 - 1, (y - cy) / ch * 2 - 1, -1); + _valueTypes.Vec3.transformMat4(_tmp_v3, _tmp_v3, _matInvViewProj); + } + return _geomUtils.Ray.fromPoints(out, _tmp_v3, _tmp2_v3); + }; + _proto.screenToWorld = function screenToWorld(out, screenPos, width, height) { + this._calcMatrices(width, height); + var cx = this._rect.x * width; + var cy = this._rect.y * height; + var cw = this._rect.w * width; + var ch = this._rect.h * height; + if (this._projection === _enums["default"].PROJ_PERSPECTIVE) { + _valueTypes.Vec3.set(out, (screenPos.x - cx) / cw * 2 - 1, (screenPos.y - cy) / ch * 2 - 1, .9999); + _valueTypes.Vec3.transformMat4(out, out, _matInvViewProj); + this._node.getWorldPosition(_tmp_v3); + _valueTypes.Vec3.lerp(out, _tmp_v3, out, (0, _valueTypes.lerp)(this._near / this._far, 1, screenPos.z)); + } else { + _valueTypes.Vec3.set(out, (screenPos.x - cx) / cw * 2 - 1, (screenPos.y - cy) / ch * 2 - 1, 2 * screenPos.z - 1); + _valueTypes.Vec3.transformMat4(out, out, _matInvViewProj); + } + return out; + }; + _proto.worldToScreen = function worldToScreen(out, worldPos, width, height) { + this._calcMatrices(width, height); + var cx = this._rect.x * width; + var cy = this._rect.y * height; + var cw = this._rect.w * width; + var ch = this._rect.h * height; + _valueTypes.Vec3.transformMat4(out, worldPos, _matViewProj); + out.x = cx + .5 * (out.x + 1) * cw; + out.y = cy + .5 * (out.y + 1) * ch; + out.z = .5 * out.z + .5; + return out; + }; + _proto.worldMatrixToScreen = function worldMatrixToScreen(out, worldMatrix, width, height) { + this._calcMatrices(width, height); + _valueTypes.Mat4.mul(out, _matViewProj, worldMatrix); + var halfWidth = width / 2; + var halfHeight = height / 2; + _valueTypes.Mat4.identity(_tmp_mat4); + _valueTypes.Mat4.transform(_tmp_mat4, _tmp_mat4, _valueTypes.Vec3.set(_tmp_v3, halfWidth, halfHeight, 0)); + _valueTypes.Mat4.scale(_tmp_mat4, _tmp_mat4, _valueTypes.Vec3.set(_tmp_v3, halfWidth, halfHeight, 1)); + _valueTypes.Mat4.mul(out, _tmp_mat4, out); + return out; + }; + _createClass(Camera, [ { + key: "cullingMask", + get: function get() { + return this._cullingMask; + }, + set: function set(mask) { + this._cullingMask = mask; + } + } ]); + return Camera; + })(); + exports["default"] = Camera; + module.exports = exports["default"]; + }), { + "../../core/geom-utils": void 0, + "../../core/value-types": 220, + "../enums": 242 + } ], + 268: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var Model = (function() { + function Model() { + this._type = "default"; + this._poolID = -1; + this._node = null; + this._inputAssembler = null; + this._effect = null; + this._viewID = -1; + this._cameraID = -1; + this._userKey = -1; + this._castShadow = false; + this._boundingShape = null; + } + var _proto = Model.prototype; + _proto.setNode = function setNode(node) { + this._node = node; + }; + _proto.setInputAssembler = function setInputAssembler(ia) { + this._inputAssembler = ia; + }; + _proto.setEffect = function setEffect(effect) { + this._effect = effect; + }; + _proto.setUserKey = function setUserKey(key) { + this._userKey = key; + }; + _proto.extractDrawItem = function extractDrawItem(out) { + out.model = this; + out.node = this._node; + out.ia = this._inputAssembler; + out.effect = this._effect; + }; + return Model; + })(); + exports["default"] = Model; + module.exports = exports["default"]; + }), {} ], + 269: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _memop = require("../memop"); + var Scene = (function() { + function Scene(app) { + this._lights = new _memop.FixedArray(16); + this._models = new _memop.FixedArray(16); + this._cameras = new _memop.FixedArray(16); + this._debugCamera = null; + this._app = app; + this._views = []; + } + var _proto = Scene.prototype; + _proto._add = function _add(pool, item) { + if (-1 !== item._poolID) return; + pool.push(item); + item._poolID = pool.length - 1; + }; + _proto._remove = function _remove(pool, item) { + if (-1 === item._poolID) return; + pool.data[pool.length - 1]._poolID = item._poolID; + pool.fastRemove(item._poolID); + item._poolID = -1; + }; + _proto.reset = function reset() { + for (var i = 0; i < this._models.length; ++i) { + var model = this._models.data[i]; + model._viewID = -1; + } + }; + _proto.setDebugCamera = function setDebugCamera(cam) { + this._debugCamera = cam; + }; + _proto.getCameraCount = function getCameraCount() { + return this._cameras.length; + }; + _proto.getCamera = function getCamera(idx) { + return this._cameras.data[idx]; + }; + _proto.addCamera = function addCamera(camera) { + this._add(this._cameras, camera); + }; + _proto.removeCamera = function removeCamera(camera) { + this._remove(this._cameras, camera); + }; + _proto.getModelCount = function getModelCount() { + return this._models.length; + }; + _proto.getModel = function getModel(idx) { + return this._models.data[idx]; + }; + _proto.addModel = function addModel(model) { + this._add(this._models, model); + }; + _proto.removeModel = function removeModel(model) { + this._remove(this._models, model); + }; + _proto.getLightCount = function getLightCount() { + return this._lights.length; + }; + _proto.getLight = function getLight(idx) { + return this._lights.data[idx]; + }; + _proto.addLight = function addLight(light) { + this._add(this._lights, light); + }; + _proto.removeLight = function removeLight(light) { + this._remove(this._lights, light); + }; + _proto.addView = function addView(view) { + -1 === this._views.indexOf(view) && this._views.push(view); + }; + _proto.removeView = function removeView(view) { + var idx = this._views.indexOf(view); + -1 !== idx && this._views.splice(idx, 1); + }; + return Scene; + })(); + var _default = Scene; + exports["default"] = _default; + module.exports = exports["default"]; + }), { + "../memop": 259 + } ], + 270: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports.getClassName = exports.enums2default = exports.ctor2enums = void 0; + exports.getInspectorProps = getInspectorProps; + exports.getInstanceType = exports.getInstanceCtor = void 0; + var _enums = _interopRequireDefault(require("./enums")); + var _valueTypes = require("../core/value-types"); + var _CCTexture2D = _interopRequireDefault(require("../core/assets/CCTexture2D")); + var _ctor2default, _enums2ctor, _ctor2enums, _enums2default; + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + var gfxTexture2D = null, gfxTextureCube = null; + false; + gfxTexture2D = require("./gfx/texture-2d"); + var CCObject = cc.Object; + var ctor2default = (_ctor2default = {}, _ctor2default[Boolean] = function(v) { + return v || false; + }, _ctor2default[Number] = function(v) { + return v ? ArrayBuffer.isView(v) ? v[0] : v : 0; + }, _ctor2default[_valueTypes.Vec2] = function(v) { + return v ? cc.v2(v[0], v[1]) : cc.v2(); + }, _ctor2default[_valueTypes.Vec3] = function(v) { + return v ? cc.v3(v[0], v[1], v[2]) : cc.v3(); + }, _ctor2default[_valueTypes.Vec4] = function(v) { + return v ? cc.v4(v[0], v[1], v[2], v[3]) : cc.v4(); + }, _ctor2default[_valueTypes.Color] = function(v) { + return v ? cc.color(255 * v[0], 255 * v[1], 255 * v[2], 255 * (v[3] || 1)) : cc.color(); + }, _ctor2default[_valueTypes.Mat4] = function(v) { + return v ? cc.mat4(v[0], v[1], v[2], v[3], v[4], v[5], v[6], v[7], v[8], v[9], v[10], v[11], v[12], v[13], v[14], v[15]) : cc.mat4(); + }, _ctor2default[_CCTexture2D["default"]] = function() { + return null; + }, _ctor2default[CCObject] = function() { + return null; + }, _ctor2default); + var enums2ctor = (_enums2ctor = {}, _enums2ctor[_enums["default"].PARAM_INT] = Number, + _enums2ctor[_enums["default"].PARAM_INT2] = _valueTypes.Vec2, _enums2ctor[_enums["default"].PARAM_INT3] = _valueTypes.Vec3, + _enums2ctor[_enums["default"].PARAM_INT4] = _valueTypes.Vec4, _enums2ctor[_enums["default"].PARAM_FLOAT] = Number, + _enums2ctor[_enums["default"].PARAM_FLOAT2] = _valueTypes.Vec2, _enums2ctor[_enums["default"].PARAM_FLOAT3] = _valueTypes.Vec3, + _enums2ctor[_enums["default"].PARAM_FLOAT4] = _valueTypes.Vec4, _enums2ctor[_enums["default"].PARAM_MAT4] = _valueTypes.Mat4, + _enums2ctor[_enums["default"].PARAM_TEXTURE_2D] = _CCTexture2D["default"], _enums2ctor.color = _valueTypes.Color, + _enums2ctor.number = Number, _enums2ctor["boolean"] = Boolean, _enums2ctor["default"] = CCObject, + _enums2ctor); + var ctor2enums = (_ctor2enums = {}, _ctor2enums[Number] = _enums["default"].PARAM_FLOAT, + _ctor2enums[_valueTypes.Vec2] = _enums["default"].PARAM_FLOAT2, _ctor2enums[_valueTypes.Vec3] = _enums["default"].PARAM_FLOAT3, + _ctor2enums[_valueTypes.Vec4] = _enums["default"].PARAM_FLOAT4, _ctor2enums[_valueTypes.Color] = _enums["default"].PARAM_COLOR3, + _ctor2enums[_valueTypes.Color] = _enums["default"].PARAM_COLOR4, _ctor2enums[_valueTypes.Mat4] = _enums["default"].PARAM_MAT4, + _ctor2enums[_CCTexture2D["default"]] = _enums["default"].PARAM_TEXTURE_2D, _ctor2enums[gfxTexture2D] = _enums["default"].PARAM_TEXTURE_2D, + _ctor2enums); + exports.ctor2enums = ctor2enums; + var enums2default = (_enums2default = {}, _enums2default[_enums["default"].PARAM_INT] = new Uint32Array([ 0 ]), + _enums2default[_enums["default"].PARAM_INT2] = new Uint32Array([ 0, 0 ]), _enums2default[_enums["default"].PARAM_INT3] = new Uint32Array([ 0, 0, 0 ]), + _enums2default[_enums["default"].PARAM_INT4] = new Uint32Array([ 0, 0, 0, 0 ]), + _enums2default[_enums["default"].PARAM_FLOAT] = new Float32Array([ 0 ]), _enums2default[_enums["default"].PARAM_FLOAT2] = new Float32Array([ 0, 0 ]), + _enums2default[_enums["default"].PARAM_FLOAT3] = new Float32Array([ 0, 0, 0 ]), + _enums2default[_enums["default"].PARAM_FLOAT4] = new Float32Array([ 0, 0, 0, 0 ]), + _enums2default[_enums["default"].PARAM_MAT4] = cc.mat4().m, _enums2default[_enums["default"].PARAM_TEXTURE_2D] = null, + _enums2default.number = 0, _enums2default["boolean"] = false, _enums2default); + exports.enums2default = enums2default; + var getInstanceType = function getInstanceType(t) { + return enums2ctor[t] || enums2ctor["default"]; + }; + exports.getInstanceType = getInstanceType; + var getInstanceCtor = function getInstanceCtor(t) { + return ctor2default[getInstanceType(t)]; + }; + exports.getInstanceCtor = getInstanceCtor; + var getClassName = function getClassName(t) { + return cc.js.getClassName(getInstanceType(t)); + }; + exports.getClassName = getClassName; + var className2InspectorName = { + Number: "number", + Boolean: "boolean" + }; + function getInspectorProps(prop) { + var editor = { + type: prop.type + }; + Object.assign(editor, prop.editor || prop.inspector); + editor.defines = prop.defines; + editor.value = getInstanceCtor(editor.type)(prop.value); + prop.range && (editor.range = prop.range); + var className = getClassName(editor.type); + editor.typeName = className2InspectorName[className] || className; + editor.valueCtor = enums2ctor[editor.type]; + if ("cc.Texture2D" == editor.typeName) { + editor.typeName = "cc.Asset"; + editor.assetType = "cc.Texture2D"; + } + return editor; + } + }), { + "../core/assets/CCTexture2D": 72, + "../core/value-types": 220, + "./enums": 242, + "./gfx/texture-2d": 252 + } ], + 271: [ (function(require, module, exports) { + "use strict"; + var TiledMapAsset = cc.Class({ + name: "cc.TiledMapAsset", + extends: cc.Asset, + properties: { + tmxXmlStr: "", + textures: { + default: [], + type: [ cc.Texture2D ] + }, + textureNames: [ cc.String ], + textureSizes: { + default: [], + type: [ cc.Size ] + }, + imageLayerTextures: { + default: [], + type: [ cc.Texture2D ] + }, + imageLayerTextureNames: [ cc.String ], + tsxFiles: [ cc.TextAsset ], + tsxFileNames: [ cc.String ] + }, + statics: { + preventDeferredLoadDependents: true + }, + createNode: false + }); + cc.TiledMapAsset = TiledMapAsset; + module.exports = TiledMapAsset; + }), {} ], + 272: [ (function(require, module, exports) { + "use strict"; + require("./cocos2d/core"); + require("./cocos2d/animation"); + false; + require("./cocos2d/particle"); + require("./cocos2d/tilemap"); + require("./cocos2d/videoplayer/CCVideoPlayer"); + require("./cocos2d/webview/CCWebView"); + require("./cocos2d/core/components/CCStudioComponent"); + require("./extensions/ccpool/CCNodePool"); + require("./cocos2d/actions"); + require("./extensions/spine"); + require("./extensions/dragonbones"); + true; + require("./cocos2d/deprecated"); + }), { + "./cocos2d/actions": 8, + "./cocos2d/animation": 17, + "./cocos2d/core": 119, + "./cocos2d/core/components/CCStudioComponent": void 0, + "./cocos2d/deprecated": 232, + "./cocos2d/particle": void 0, + "./cocos2d/particle/CCParticleAsset": 234, + "./cocos2d/tilemap": void 0, + "./cocos2d/tilemap/CCTiledMapAsset": 271, + "./cocos2d/videoplayer/CCVideoPlayer": void 0, + "./cocos2d/webview/CCWebView": void 0, + "./extensions/ccpool/CCNodePool": void 0, + "./extensions/dragonbones": void 0, + "./extensions/spine": 275 + } ], + 273: [ (function(require, module, exports) { + "use strict"; + var _mat = _interopRequireDefault(require("../../cocos2d/core/value-types/mat4")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + var RenderFlow = require("../../cocos2d/core/renderer/render-flow"); + var FLAG_TRANSFORM = RenderFlow.FLAG_TRANSFORM; + var EmptyHandle = function EmptyHandle() {}; + var ATTACHED_ROOT_NAME = "ATTACHED_NODE_TREE"; + var ATTACHED_PRE_NAME = "ATTACHED_NODE:"; + var limitNode = function limitNode(node) { + Object.defineProperty(node, "_worldMatDirty", { + get: function get() { + return true; + }, + set: function set(value) {} + }); + node._calculWorldMatrix = EmptyHandle; + node._mulMat = EmptyHandle; + }; + var _tempMat4 = new _mat["default"](); + var AttachUtil = cc.Class({ + name: "sp.AttachUtil", + ctor: function ctor() { + this._inited = false; + this._skeleton = null; + this._skeletonNode = null; + this._skeletonComp = null; + this._attachedRootNode = null; + this._attachedNodeArray = []; + this._boneIndexToNode = {}; + }, + init: function init(skeletonComp) { + this._inited = true; + this._skeleton = skeletonComp._skeleton; + this._skeletonNode = skeletonComp.node; + this._skeletonComp = skeletonComp; + }, + reset: function reset() { + this._inited = false; + this._skeleton = null; + this._skeletonNode = null; + this._skeletonComp = null; + }, + _prepareAttachNode: function _prepareAttachNode() { + var armature = this._skeleton; + if (!armature) return; + var rootNode = this._skeletonNode.getChildByName(ATTACHED_ROOT_NAME); + if (!rootNode || !rootNode.isValid) { + rootNode = new cc.Node(ATTACHED_ROOT_NAME); + limitNode(rootNode); + this._skeletonNode.addChild(rootNode); + } + var isCached = this._skeletonComp.isAnimationCached(); + isCached && this._skeletonComp._frameCache && this._skeletonComp._frameCache.enableCacheAttachedInfo(); + this._attachedRootNode = rootNode; + return rootNode; + }, + _buildBoneAttachedNode: function _buildBoneAttachedNode(bone, boneIndex) { + var boneNodeName = ATTACHED_PRE_NAME + bone.data.name; + var boneNode = new cc.Node(boneNodeName); + this._buildBoneRelation(boneNode, bone, boneIndex); + return boneNode; + }, + _buildBoneRelation: function _buildBoneRelation(boneNode, bone, boneIndex) { + limitNode(boneNode); + boneNode._bone = bone; + boneNode._boneIndex = boneIndex; + this._attachedNodeArray.push(boneNode); + this._boneIndexToNode[boneIndex] = boneNode; + }, + getAttachedRootNode: function getAttachedRootNode() { + return this._attachedRootNode; + }, + getAttachedNodes: function getAttachedNodes(boneName) { + var nodeArray = this._attachedNodeArray; + var res = []; + if (!this._inited) return res; + for (var i = 0, n = nodeArray.length; i < n; i++) { + var boneNode = nodeArray[i]; + if (!boneNode || !boneNode.isValid) continue; + boneNode.name === ATTACHED_PRE_NAME + boneName && res.push(boneNode); + } + return res; + }, + _rebuildNodeArray: function _rebuildNodeArray() { + var findMap = this._boneIndexToNode = {}; + var oldNodeArray = this._attachedNodeArray; + var nodeArray = this._attachedNodeArray = []; + for (var i = 0, n = oldNodeArray.length; i < n; i++) { + var boneNode = oldNodeArray[i]; + if (!boneNode || !boneNode.isValid || boneNode._toRemove) continue; + nodeArray.push(boneNode); + findMap[boneNode._boneIndex] = boneNode; + } + }, + _sortNodeArray: function _sortNodeArray() { + var nodeArray = this._attachedNodeArray; + nodeArray.sort((function(a, b) { + return a._boneIndex < b._boneIndex ? -1 : 1; + })); + }, + _getNodeByBoneIndex: function _getNodeByBoneIndex(boneIndex) { + var findMap = this._boneIndexToNode; + var boneNode = findMap[boneIndex]; + if (!boneNode || !boneNode.isValid) return null; + return boneNode; + }, + destroyAttachedNodes: function destroyAttachedNodes(boneName) { + if (!this._inited) return; + var nodeArray = this._attachedNodeArray; + var markTree = function markTree(rootNode) { + var children = rootNode.children; + for (var i = 0, n = children.length; i < n; i++) { + var c = children[i]; + c && markTree(c); + } + rootNode._toRemove = true; + }; + for (var i = 0, n = nodeArray.length; i < n; i++) { + var boneNode = nodeArray[i]; + if (!boneNode || !boneNode.isValid) continue; + var delName = boneNode.name.split(ATTACHED_PRE_NAME)[1]; + if (delName === boneName) { + markTree(boneNode); + boneNode.removeFromParent(true); + boneNode.destroy(); + nodeArray[i] = null; + } + } + this._rebuildNodeArray(); + }, + generateAttachedNodes: function generateAttachedNodes(boneName) { + var targetNodes = []; + if (!this._inited) return targetNodes; + var rootNode = this._prepareAttachNode(); + if (!rootNode) return targetNodes; + var res = []; + var bones = this._skeleton.bones; + for (var i = 0, n = bones.length; i < n; i++) { + var bone = bones[i]; + var boneData = bone.data; + boneData.name == boneName && res.push(bone); + } + var buildBoneTree = function(bone) { + if (!bone) return; + var boneData = bone.data; + var boneNode = this._getNodeByBoneIndex(boneData.index); + if (boneNode) return boneNode; + boneNode = this._buildBoneAttachedNode(bone, boneData.index); + var parentBoneNode = buildBoneTree(bone.parent) || rootNode; + boneNode.parent = parentBoneNode; + return boneNode; + }.bind(this); + for (var _i = 0, _n = res.length; _i < _n; _i++) { + var targetNode = buildBoneTree(res[_i]); + targetNodes.push(targetNode); + } + this._sortNodeArray(); + return targetNodes; + }, + destroyAllAttachedNodes: function destroyAllAttachedNodes() { + this._attachedRootNode = null; + this._attachedNodeArray.length = 0; + this._boneIndexToNode = {}; + if (!this._inited) return; + var rootNode = this._skeletonNode.getChildByName(ATTACHED_ROOT_NAME); + if (rootNode) { + rootNode.removeFromParent(true); + rootNode.destroy(); + rootNode = null; + } + }, + generateAllAttachedNodes: function generateAllAttachedNodes() { + if (!this._inited) return; + this._boneIndexToNode = {}; + this._attachedNodeArray.length = 0; + var rootNode = this._prepareAttachNode(); + if (!rootNode) return; + var bones = this._skeleton.bones; + for (var i = 0, n = bones.length; i < n; i++) { + var bone = bones[i]; + var boneData = bone.data; + var parentNode = null; + if (bone.parent) { + var parentIndex = bone.parent.data.index; + parentNode = this._boneIndexToNode[parentIndex]; + } else parentNode = rootNode; + if (parentNode) { + var boneNode = parentNode.getChildByName(ATTACHED_PRE_NAME + boneData.name); + if (boneNode && boneNode.isValid) this._buildBoneRelation(boneNode, bone, boneData.index); else { + boneNode = this._buildBoneAttachedNode(bone, boneData.index); + parentNode.addChild(boneNode); + } + } + } + return rootNode; + }, + _hasAttachedNode: function _hasAttachedNode() { + if (!this._inited) return false; + var attachedRootNode = this._skeletonNode.getChildByName(ATTACHED_ROOT_NAME); + return !!attachedRootNode; + }, + _associateAttachedNode: function _associateAttachedNode() { + if (!this._inited) return; + var rootNode = this._skeletonNode.getChildByName(ATTACHED_ROOT_NAME); + if (!rootNode || !rootNode.isValid) return; + this._attachedRootNode = rootNode; + this._boneIndexToNode = {}; + var nodeArray = this._attachedNodeArray; + nodeArray.length = 0; + limitNode(rootNode); + true; + var isCached = this._skeletonComp.isAnimationCached(); + isCached && this._skeletonComp._frameCache && this._skeletonComp._frameCache.enableCacheAttachedInfo(); + var bones = this._skeleton.bones; + for (var i = 0, n = bones.length; i < n; i++) { + var bone = bones[i]; + var boneData = bone.data; + var parentNode = null; + if (bone.parent) { + var parentIndex = bone.parent.data.index; + parentNode = this._boneIndexToNode[parentIndex]; + } else parentNode = rootNode; + if (parentNode) { + var boneNode = parentNode.getChildByName(ATTACHED_PRE_NAME + boneData.name); + boneNode && boneNode.isValid && this._buildBoneRelation(boneNode, bone, boneData.index); + } + } + }, + _syncAttachedNode: function _syncAttachedNode() { + if (!this._inited) return; + var rootNode = this._attachedRootNode; + var nodeArray = this._attachedNodeArray; + if (!rootNode || !rootNode.isValid) { + this._attachedRootNode = null; + nodeArray.length = 0; + return; + } + var rootMatrix = this._skeletonNode._worldMatrix; + _mat["default"].copy(rootNode._worldMatrix, rootMatrix); + rootNode._renderFlag &= ~FLAG_TRANSFORM; + var boneInfos = null; + var isCached = this._skeletonComp.isAnimationCached(); + boneInfos = isCached ? this._skeletonComp._curFrame && this._skeletonComp._curFrame.boneInfos : this._skeleton.bones; + if (!boneInfos) return; + var mulMat = this._skeletonNode._mulMat; + var matrixHandle = function matrixHandle(nodeMat, parentMat, bone) { + var tm = _tempMat4.m; + tm[0] = bone.a; + tm[1] = bone.c; + tm[4] = bone.b; + tm[5] = bone.d; + tm[12] = bone.worldX; + tm[13] = bone.worldY; + mulMat(nodeMat, parentMat, _tempMat4); + }; + var nodeArrayDirty = false; + for (var i = 0, n = nodeArray.length; i < n; i++) { + var boneNode = nodeArray[i]; + if (!boneNode || !boneNode.isValid) { + nodeArray[i] = null; + nodeArrayDirty = true; + continue; + } + var bone = boneInfos[boneNode._boneIndex]; + if (!bone) { + boneNode.removeFromParent(true); + boneNode.destroy(); + nodeArray[i] = null; + nodeArrayDirty = true; + continue; + } + matrixHandle(boneNode._worldMatrix, rootNode._worldMatrix, bone); + boneNode._renderFlag &= ~FLAG_TRANSFORM; + } + nodeArrayDirty && this._rebuildNodeArray(); + } + }); + module.exports = sp.AttachUtil = AttachUtil; + }), { + "../../cocos2d/core/renderer/render-flow": 153, + "../../cocos2d/core/value-types/mat4": 222 + } ], + 274: [ (function(require, module, exports) { + "use strict"; + var TrackEntryListeners = require("./track-entry-listeners"); + var RenderComponent = require("../../cocos2d/core/components/CCRenderComponent"); + var spine = require("./lib/spine"); + var Graphics = require("../../cocos2d/core/graphics/graphics"); + var RenderFlow = require("../../cocos2d/core/renderer/render-flow"); + var FLAG_POST_RENDER = RenderFlow.FLAG_POST_RENDER; + var SkeletonCache = require("./skeleton-cache"); + var AttachUtil = require("./AttachUtil"); + var DefaultSkinsEnum = cc.Enum({ + default: -1 + }); + var DefaultAnimsEnum = cc.Enum({ + "": 0 + }); + var AnimationCacheMode = cc.Enum({ + REALTIME: 0, + SHARED_CACHE: 1, + PRIVATE_CACHE: 2 + }); + function setEnumAttr(obj, propName, enumDef) { + cc.Class.Attr.setClassAttr(obj, propName, "type", "Enum"); + cc.Class.Attr.setClassAttr(obj, propName, "enumList", cc.Enum.getList(enumDef)); + } + sp.Skeleton = cc.Class({ + name: "sp.Skeleton", + extends: RenderComponent, + editor: false, + statics: { + AnimationCacheMode: AnimationCacheMode + }, + properties: { + paused: { + default: false, + visible: false + }, + skeletonData: { + default: null, + type: sp.SkeletonData, + notify: function notify() { + this.defaultSkin = ""; + this.defaultAnimation = ""; + false; + this._updateSkeletonData(); + }, + tooltip: false + }, + defaultSkin: { + default: "", + visible: false + }, + defaultAnimation: { + default: "", + visible: false + }, + animation: { + get: function get() { + if (this.isAnimationCached()) return this._animationName; + var entry = this.getCurrent(0); + return entry && entry.animation.name || ""; + }, + set: function set(value) { + this.defaultAnimation = value; + if (value) this.setAnimation(0, value, this.loop); else if (!this.isAnimationCached()) { + this.clearTrack(0); + this.setToSetupPose(); + } + }, + visible: false + }, + _defaultSkinIndex: { + get: function get() { + if (this.skeletonData) { + var skinsEnum = this.skeletonData.getSkinsEnum(); + if (skinsEnum) if ("" === this.defaultSkin) { + if (skinsEnum.hasOwnProperty(0)) { + this._defaultSkinIndex = 0; + return 0; + } + } else { + var skinIndex = skinsEnum[this.defaultSkin]; + if (void 0 !== skinIndex) return skinIndex; + } + } + return 0; + }, + set: function set(value) { + var skinsEnum; + this.skeletonData && (skinsEnum = this.skeletonData.getSkinsEnum()); + if (!skinsEnum) return cc.errorID("", this.name); + var skinName = skinsEnum[value]; + if (void 0 !== skinName) { + this.defaultSkin = skinName; + this.setSkin(this.defaultSkin); + false; + } else cc.errorID(7501, this.name); + }, + type: DefaultSkinsEnum, + visible: true, + animatable: false, + displayName: "Default Skin", + tooltip: false + }, + _animationIndex: { + get: function get() { + var animationName = this.animation; + if (this.skeletonData && animationName) { + var animsEnum = this.skeletonData.getAnimsEnum(); + if (animsEnum) { + var animIndex = animsEnum[animationName]; + if (void 0 !== animIndex) return animIndex; + } + } + return 0; + }, + set: function set(value) { + if (0 === value) { + this.animation = ""; + return; + } + var animsEnum; + this.skeletonData && (animsEnum = this.skeletonData.getAnimsEnum()); + if (!animsEnum) return cc.errorID(7502, this.name); + var animName = animsEnum[value]; + void 0 !== animName ? this.animation = animName : cc.errorID(7503, this.name); + }, + type: DefaultAnimsEnum, + visible: true, + animatable: false, + displayName: "Animation", + tooltip: false + }, + _preCacheMode: -1, + _cacheMode: AnimationCacheMode.REALTIME, + _defaultCacheMode: { + default: 0, + type: AnimationCacheMode, + notify: function notify() { + this.setAnimationCacheMode(this._defaultCacheMode); + }, + editorOnly: true, + visible: true, + animatable: false, + displayName: "Animation Cache Mode", + tooltip: false + }, + loop: { + default: true, + tooltip: false + }, + premultipliedAlpha: { + default: true, + tooltip: false + }, + timeScale: { + default: 1, + tooltip: false + }, + debugSlots: { + default: false, + editorOnly: true, + tooltip: false, + notify: function notify() { + this._updateDebugDraw(); + } + }, + debugBones: { + default: false, + editorOnly: true, + tooltip: false, + notify: function notify() { + this._updateDebugDraw(); + } + }, + debugMesh: { + default: false, + editorOnly: true, + tooltip: false, + notify: function notify() { + this._updateDebugDraw(); + } + }, + useTint: { + default: false, + tooltip: false, + notify: function notify() { + this._updateUseTint(); + } + }, + enableBatch: { + default: false, + notify: function notify() { + this._updateBatch(); + }, + tooltip: false + }, + _accTime: 0, + _playCount: 0, + _frameCache: null, + _curFrame: null, + _skeletonCache: null, + _animationName: "", + _animationQueue: [], + _headAniInfo: null, + _playTimes: 0, + _isAniComplete: true, + autoSwitchMaterial: { + type: RenderComponent.EnableType, + default: RenderComponent.EnableType.GLOBAL, + notify: function notify(oldValue) { + if (this.autoSwitchMaterial === oldValue) return; + this.setVertsDirty(); + } + }, + allowDynamicAtlas: { + type: RenderComponent.EnableType, + default: RenderComponent.EnableType.GLOBAL, + notify: function notify(oldValue) { + if (this.allowDynamicAtlas === oldValue) return; + this.setVertsDirty(); + } + } + }, + ctor: function ctor() { + this._effectDelegate = null; + this._skeleton = null; + this._rootBone = null; + this._listener = null; + this._materialCache = {}; + this._debugRenderer = null; + this._startSlotIndex = -1; + this._endSlotIndex = -1; + this._startEntry = { + animation: { + name: "" + }, + trackIndex: 0 + }; + this._endEntry = { + animation: { + name: "" + }, + trackIndex: 0 + }; + this.attachUtil = new AttachUtil(); + this._dataDirty = true; + }, + setVertsDirty: function setVertsDirty() { + this.invalidAnimationCache(); + this._dataDirty = true; + this._materialCache = {}; + this._super(); + }, + _getDefaultMaterial: function _getDefaultMaterial() { + return cc.Material.getBuiltinMaterial("2d-spine"); + }, + _updateMaterial: function _updateMaterial() { + var useTint = this.useTint || this.isAnimationCached() && true; + var baseMaterial = this.getMaterial(0); + if (baseMaterial) { + var isMultiSupport = baseMaterial.material.isMultiSupport(); + if (!isMultiSupport) { + baseMaterial.define("USE_TINT", useTint); + baseMaterial.define("CC_USE_MODEL", !this.enableBatch); + } + var srcBlendFactor = this.premultipliedAlpha ? cc.gfx.BLEND_ONE : cc.gfx.BLEND_SRC_ALPHA; + var dstBlendFactor = cc.gfx.BLEND_ONE_MINUS_SRC_ALPHA; + baseMaterial.setBlend(true, cc.gfx.BLEND_FUNC_ADD, srcBlendFactor, srcBlendFactor, cc.gfx.BLEND_FUNC_ADD, dstBlendFactor, dstBlendFactor); + if (isMultiSupport) { + this.useTint && (this.useTint = false); + this.enableBatch || (this.enableBatch = true); + } + } + this._materialCache = {}; + }, + disableRender: function disableRender() { + this._super(); + this.node._renderFlag &= ~FLAG_POST_RENDER; + }, + markForRender: function markForRender(enable) { + this._super(enable); + enable ? this.node._renderFlag |= FLAG_POST_RENDER : this.node._renderFlag &= ~FLAG_POST_RENDER; + }, + _updateUseTint: function _updateUseTint() { + var baseMaterial = this.getMaterial(0); + if (baseMaterial) { + var useTint = this.useTint || this.isAnimationCached() && true; + baseMaterial.material.isMultiSupport() ? this.useTint && (this.useTint = false) : baseMaterial.define("USE_TINT", useTint); + } + this._materialCache = {}; + }, + _updateBatch: function _updateBatch() { + var baseMaterial = this.getMaterial(0); + baseMaterial && (baseMaterial.material.isMultiSupport() ? this.enableBatch || (this.enableBatch = true) : baseMaterial.define("CC_USE_MODEL", !this.enableBatch)); + this._materialCache = {}; + }, + _validateRender: function _validateRender() { + var skeletonData = this.skeletonData; + if (!skeletonData || !skeletonData.isTexturesLoaded()) { + this.disableRender(); + return; + } + this._super(); + }, + setSkeletonData: function setSkeletonData(skeletonData) { + null != skeletonData.width && null != skeletonData.height && this.node.setContentSize(skeletonData.width, skeletonData.height); + true; + if (this._cacheMode === AnimationCacheMode.SHARED_CACHE) this._skeletonCache = SkeletonCache.sharedCache; else if (this._cacheMode === AnimationCacheMode.PRIVATE_CACHE) { + this._skeletonCache = new SkeletonCache(); + this._skeletonCache.enablePrivateMode(); + } + if (this.isAnimationCached()) { + (this.debugBones || this.debugSlots) && cc.warn("Debug bones or slots is invalid in cached mode"); + var skeletonInfo = this._skeletonCache.getSkeletonCache(this.skeletonData._uuid, skeletonData); + this._skeleton = skeletonInfo.skeleton; + this._clipper = skeletonInfo.clipper; + this._rootBone = this._skeleton.getRootBone(); + } else { + this._skeleton = new spine.Skeleton(skeletonData); + this._clipper = new spine.SkeletonClipping(); + this._rootBone = this._skeleton.getRootBone(); + } + this.markForRender(true); + }, + setSlotsRange: function setSlotsRange(startSlotIndex, endSlotIndex) { + if (this.isAnimationCached()) cc.warn("Slots visible range can not be modified in cached mode."); else { + this._startSlotIndex = startSlotIndex; + this._endSlotIndex = endSlotIndex; + } + }, + setAnimationStateData: function setAnimationStateData(stateData) { + if (this.isAnimationCached()) cc.warn("'setAnimationStateData' interface can not be invoked in cached mode."); else { + var state = new spine.AnimationState(stateData); + if (this._listener) { + this._state && this._state.removeListener(this._listener); + state.addListener(this._listener); + } + this._state = state; + } + }, + __preload: function __preload() { + this._super(); + var Flags; + false; + var children = this.node.children; + for (var i = 0, n = children.length; i < n; i++) { + var child = children[i]; + child && "DEBUG_DRAW_NODE" === child._name && child.destroy(); + } + this._updateSkeletonData(); + this._updateDebugDraw(); + this._updateUseTint(); + this._updateBatch(); + }, + setAnimationCacheMode: function setAnimationCacheMode(cacheMode) { + if (this._preCacheMode !== cacheMode) { + this._cacheMode = cacheMode; + this._updateSkeletonData(); + this._updateUseTint(); + } + }, + isAnimationCached: function isAnimationCached() { + false; + return this._cacheMode !== AnimationCacheMode.REALTIME; + }, + update: function update(dt) { + false; + if (this.paused) return; + dt *= this.timeScale * sp.timeScale; + if (this.isAnimationCached()) { + if (this._isAniComplete) { + if (0 === this._animationQueue.length && !this._headAniInfo) { + var frameCache = this._frameCache; + if (frameCache && frameCache.isInvalid()) { + frameCache.updateToFrame(); + var frames = frameCache.frames; + this._curFrame = frames[frames.length - 1]; + } + return; + } + this._headAniInfo || (this._headAniInfo = this._animationQueue.shift()); + this._accTime += dt; + if (this._accTime > this._headAniInfo.delay) { + var aniInfo = this._headAniInfo; + this._headAniInfo = null; + this.setAnimation(0, aniInfo.animationName, aniInfo.loop); + } + return; + } + this._updateCache(dt); + } else this._updateRealtime(dt); + }, + _emitCacheCompleteEvent: function _emitCacheCompleteEvent() { + if (!this._listener) return; + this._endEntry.animation.name = this._animationName; + this._listener.complete && this._listener.complete(this._endEntry); + this._listener.end && this._listener.end(this._endEntry); + }, + _updateCache: function _updateCache(dt) { + var frameCache = this._frameCache; + if (!frameCache.isInited()) return; + var frames = frameCache.frames; + var frameTime = SkeletonCache.FrameTime; + if (0 == this._accTime && 0 == this._playCount) { + this._startEntry.animation.name = this._animationName; + this._listener && this._listener.start && this._listener.start(this._startEntry); + } + this._accTime += dt; + var frameIdx = Math.floor(this._accTime / frameTime); + frameCache.isCompleted || frameCache.updateToFrame(frameIdx); + if (frameCache.isCompleted && frameIdx >= frames.length) { + this._playCount++; + if (this._playTimes > 0 && this._playCount >= this._playTimes) { + this._curFrame = frames[frames.length - 1]; + this._accTime = 0; + this._playCount = 0; + this._isAniComplete = true; + this._emitCacheCompleteEvent(); + return; + } + this._accTime = 0; + frameIdx = 0; + this._emitCacheCompleteEvent(); + } + this._curFrame = frames[frameIdx]; + }, + _updateRealtime: function _updateRealtime(dt) { + var skeleton = this._skeleton; + var state = this._state; + if (skeleton) { + skeleton.update(dt); + if (state) { + state.update(dt); + state.apply(skeleton); + } + } + }, + setVertexEffectDelegate: function setVertexEffectDelegate(effectDelegate) { + this._effectDelegate = effectDelegate; + }, + updateWorldTransform: function updateWorldTransform() { + if (!this.isAnimationCached()) return; + this._skeleton && this._skeleton.updateWorldTransform(); + }, + setToSetupPose: function setToSetupPose() { + this._skeleton && this._skeleton.setToSetupPose(); + }, + setBonesToSetupPose: function setBonesToSetupPose() { + this._skeleton && this._skeleton.setBonesToSetupPose(); + }, + setSlotsToSetupPose: function setSlotsToSetupPose() { + this._skeleton && this._skeleton.setSlotsToSetupPose(); + }, + updateAnimationCache: function updateAnimationCache(animName) { + if (!this.isAnimationCached()) return; + var uuid = this.skeletonData._uuid; + this._skeletonCache && this._skeletonCache.updateAnimationCache(uuid, animName); + }, + invalidAnimationCache: function invalidAnimationCache() { + if (!this.isAnimationCached()) return; + this._skeletonCache && this._skeletonCache.invalidAnimationCache(this.skeletonData._uuid); + }, + findBone: function findBone(boneName) { + if (this._skeleton) return this._skeleton.findBone(boneName); + return null; + }, + findSlot: function findSlot(slotName) { + if (this._skeleton) return this._skeleton.findSlot(slotName); + return null; + }, + setSkin: function setSkin(skinName) { + if (this._skeleton) { + this._skeleton.setSkinByName(skinName); + this._skeleton.setSlotsToSetupPose(); + } + this.invalidAnimationCache(); + }, + getAttachment: function getAttachment(slotName, attachmentName) { + if (this._skeleton) return this._skeleton.getAttachmentByName(slotName, attachmentName); + return null; + }, + setAttachment: function setAttachment(slotName, attachmentName) { + this._skeleton && this._skeleton.setAttachment(slotName, attachmentName); + this.invalidAnimationCache(); + }, + getRegion: function getRegion(slotName, attachmentName) { + var attachment = this.getAttachment(slotName, attachmentName); + if (attachment) return attachment.region; + return null; + }, + setRegion: function setRegion(slotName, attachmentName, region) { + var attachment = this.getAttachment(slotName, attachmentName); + if (attachment) { + attachment.region = region; + if (attachment instanceof sp.spine.MeshAttachment) attachment.updateUVs(); else if (attachment instanceof sp.spine.RegionAttachment) { + attachment.setRegion(region); + attachment.updateOffset(); + } + this.setVertsDirty(); + return true; + } + return false; + }, + getTextureAtlas: function getTextureAtlas(regionAttachment) { + return regionAttachment.region; + }, + setMix: function setMix(fromAnimation, toAnimation, duration) { + this._state && this._state.data.setMix(fromAnimation, toAnimation, duration); + }, + setAnimation: function setAnimation(trackIndex, name, loop) { + this._playTimes = loop ? 0 : 1; + this._animationName = name; + if (this.isAnimationCached()) { + 0 !== trackIndex && cc.warn("Track index can not greater than 0 in cached mode."); + if (!this._skeletonCache) return null; + var cache = this._skeletonCache.getAnimationCache(this.skeletonData._uuid, name); + cache || (cache = this._skeletonCache.initAnimationCache(this.skeletonData._uuid, name)); + if (cache) { + this._isAniComplete = false; + this._accTime = 0; + this._playCount = 0; + this._frameCache = cache; + this.attachUtil._hasAttachedNode() && this._frameCache.enableCacheAttachedInfo(); + this._frameCache.updateToFrame(0); + this._curFrame = this._frameCache.frames[0]; + } + } else if (this._skeleton) { + var animation = this._skeleton.data.findAnimation(name); + if (!animation) { + cc.logID(7509, name); + return null; + } + var res = this._state.setAnimationWith(trackIndex, animation, loop); + this._state.apply(this._skeleton); + return res; + } + return null; + }, + addAnimation: function addAnimation(trackIndex, name, loop, delay) { + delay = delay || 0; + if (this.isAnimationCached()) { + 0 !== trackIndex && cc.warn("Track index can not greater than 0 in cached mode."); + this._animationQueue.push({ + animationName: name, + loop: loop, + delay: delay + }); + } else if (this._skeleton) { + var animation = this._skeleton.data.findAnimation(name); + if (!animation) { + cc.logID(7510, name); + return null; + } + return this._state.addAnimationWith(trackIndex, animation, loop, delay); + } + return null; + }, + findAnimation: function findAnimation(name) { + if (this._skeleton) return this._skeleton.data.findAnimation(name); + return null; + }, + getCurrent: function getCurrent(trackIndex) { + if (this.isAnimationCached()) cc.warn("'getCurrent' interface can not be invoked in cached mode."); else if (this._state) return this._state.getCurrent(trackIndex); + return null; + }, + clearTracks: function clearTracks() { + this.isAnimationCached() ? cc.warn("'clearTracks' interface can not be invoked in cached mode.") : this._state && this._state.clearTracks(); + }, + clearTrack: function clearTrack(trackIndex) { + if (this.isAnimationCached()) cc.warn("'clearTrack' interface can not be invoked in cached mode."); else if (this._state) { + this._state.clearTrack(trackIndex); + false; + } + }, + setStartListener: function setStartListener(listener) { + this._ensureListener(); + this._listener.start = listener; + }, + setInterruptListener: function setInterruptListener(listener) { + this._ensureListener(); + this._listener.interrupt = listener; + }, + setEndListener: function setEndListener(listener) { + this._ensureListener(); + this._listener.end = listener; + }, + setDisposeListener: function setDisposeListener(listener) { + this._ensureListener(); + this._listener.dispose = listener; + }, + setCompleteListener: function setCompleteListener(listener) { + this._ensureListener(); + this._listener.complete = listener; + }, + setEventListener: function setEventListener(listener) { + this._ensureListener(); + this._listener.event = listener; + }, + setTrackStartListener: function setTrackStartListener(entry, listener) { + TrackEntryListeners.getListeners(entry).start = listener; + }, + setTrackInterruptListener: function setTrackInterruptListener(entry, listener) { + TrackEntryListeners.getListeners(entry).interrupt = listener; + }, + setTrackEndListener: function setTrackEndListener(entry, listener) { + TrackEntryListeners.getListeners(entry).end = listener; + }, + setTrackDisposeListener: function setTrackDisposeListener(entry, listener) { + TrackEntryListeners.getListeners(entry).dispose = listener; + }, + setTrackCompleteListener: function setTrackCompleteListener(entry, listener) { + TrackEntryListeners.getListeners(entry).complete = function(trackEntry) { + var loopCount = Math.floor(trackEntry.trackTime / trackEntry.animationEnd); + listener(trackEntry, loopCount); + }; + }, + setTrackEventListener: function setTrackEventListener(entry, listener) { + TrackEntryListeners.getListeners(entry).event = listener; + }, + getState: function getState() { + return this._state; + }, + _updateAnimEnum: false, + _updateSkinEnum: false, + _ensureListener: function _ensureListener() { + if (!this._listener) { + this._listener = new TrackEntryListeners(); + this._state && this._state.addListener(this._listener); + } + }, + _updateSkeletonData: function _updateSkeletonData() { + if (!this.skeletonData) { + this.disableRender(); + return; + } + var data = this.skeletonData.getRuntimeData(); + if (!data) { + this.disableRender(); + return; + } + try { + this.setSkeletonData(data); + this.isAnimationCached() || this.setAnimationStateData(new spine.AnimationStateData(this._skeleton.data)); + this.defaultSkin && this.setSkin(this.defaultSkin); + } catch (e) { + cc.warn(e); + } + this.attachUtil.init(this); + this.attachUtil._associateAttachedNode(); + this._preCacheMode = this._cacheMode; + this.animation = this.defaultAnimation; + this._dataDirty = true; + }, + _refreshInspector: function _refreshInspector() { + this._updateAnimEnum(); + this._updateSkinEnum(); + Editor.Utils.refreshSelectedInspector("node", this.node.uuid); + }, + _updateDebugDraw: function _updateDebugDraw() { + if (this.debugBones || this.debugSlots) { + if (!this._debugRenderer) { + var debugDrawNode = new cc.PrivateNode(); + debugDrawNode.name = "DEBUG_DRAW_NODE"; + var debugDraw = debugDrawNode.addComponent(Graphics); + debugDraw.lineWidth = 1; + debugDraw.strokeColor = cc.color(255, 0, 0, 255); + this._debugRenderer = debugDraw; + } + this._debugRenderer.node.parent = this.node; + this.isAnimationCached() && cc.warn("Debug bones or slots is invalid in cached mode"); + } else this._debugRenderer && (this._debugRenderer.node.parent = null); + } + }); + module.exports = sp.Skeleton; + }), { + "../../cocos2d/core/components/CCRenderComponent": 98, + "../../cocos2d/core/graphics/graphics": void 0, + "../../cocos2d/core/renderer/render-flow": 153, + "./AttachUtil": 273, + "./lib/spine": 276, + "./skeleton-cache": 277, + "./track-entry-listeners": 281 + } ], + 275: [ (function(require, module, exports) { + "use strict"; + var _global = "undefined" === typeof window ? global : window; + var _isUseSpine = true; + true; + _global.spine = require("./lib/spine"); + if (_isUseSpine) { + _global.sp = {}; + sp._timeScale = 1; + Object.defineProperty(sp, "timeScale", { + get: function get() { + return this._timeScale; + }, + set: function set(value) { + this._timeScale = value; + }, + configurable: true + }); + sp.ATTACHMENT_TYPE = { + REGION: 0, + BOUNDING_BOX: 1, + MESH: 2, + SKINNED_MESH: 3 + }; + sp.AnimationEventType = cc.Enum({ + START: 0, + INTERRUPT: 1, + END: 2, + DISPOSE: 3, + COMPLETE: 4, + EVENT: 5 + }); + true; + sp.spine = _global.spine; + true; + require("./skeleton-texture"); + require("./skeleton-data"); + require("./vertex-effect-delegate"); + require("./Skeleton"); + require("./spine-assembler"); + } + }), { + "./Skeleton": 274, + "./lib/spine": 276, + "./skeleton-data": 278, + "./skeleton-texture": 279, + "./spine-assembler": 280, + "./vertex-effect-delegate": 282 + } ], + 276: [ (function(require, module, exports) { + "use strict"; + var __extends = (void 0, (function() { + var _extendStatics = function extendStatics(d, b) { + _extendStatics = Object.setPrototypeOf || { + __proto__: [] + } instanceof Array && function(d, b) { + d.__proto__ = b; + } || function(d, b) { + for (var p in b) b.hasOwnProperty(p) && (d[p] = b[p]); + }; + return _extendStatics(d, b); + }; + return function(d, b) { + _extendStatics(d, b); + function __() { + this.constructor = d; + } + d.prototype = null === b ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + })()); + var spine; + (function(spine) { + var Animation = (function() { + function Animation(name, timelines, duration) { + if (null == name) throw new Error("name cannot be null."); + if (null == timelines) throw new Error("timelines cannot be null."); + this.name = name; + this.timelines = timelines; + this.timelineIds = []; + for (var i = 0; i < timelines.length; i++) this.timelineIds[timelines[i].getPropertyId()] = true; + this.duration = duration; + } + Animation.prototype.hasTimeline = function(id) { + return true == this.timelineIds[id]; + }; + Animation.prototype.apply = function(skeleton, lastTime, time, loop, events, alpha, blend, direction) { + if (null == skeleton) throw new Error("skeleton cannot be null."); + if (loop && 0 != this.duration) { + time %= this.duration; + lastTime > 0 && (lastTime %= this.duration); + } + var timelines = this.timelines; + for (var i = 0, n = timelines.length; i < n; i++) timelines[i].apply(skeleton, lastTime, time, events, alpha, blend, direction); + }; + Animation.binarySearch = function(values, target, step) { + void 0 === step && (step = 1); + var low = 0; + var high = values.length / step - 2; + if (0 == high) return step; + var current = high >>> 1; + while (true) { + values[(current + 1) * step] <= target ? low = current + 1 : high = current; + if (low == high) return (low + 1) * step; + current = low + high >>> 1; + } + }; + Animation.linearSearch = function(values, target, step) { + for (var i = 0, last = values.length - step; i <= last; i += step) if (values[i] > target) return i; + return -1; + }; + return Animation; + })(); + spine.Animation = Animation; + var MixBlend; + (function(MixBlend) { + MixBlend[MixBlend["setup"] = 0] = "setup"; + MixBlend[MixBlend["first"] = 1] = "first"; + MixBlend[MixBlend["replace"] = 2] = "replace"; + MixBlend[MixBlend["add"] = 3] = "add"; + })(MixBlend = spine.MixBlend || (spine.MixBlend = {})); + var MixDirection; + (function(MixDirection) { + MixDirection[MixDirection["mixIn"] = 0] = "mixIn"; + MixDirection[MixDirection["mixOut"] = 1] = "mixOut"; + })(MixDirection = spine.MixDirection || (spine.MixDirection = {})); + var TimelineType; + (function(TimelineType) { + TimelineType[TimelineType["rotate"] = 0] = "rotate"; + TimelineType[TimelineType["translate"] = 1] = "translate"; + TimelineType[TimelineType["scale"] = 2] = "scale"; + TimelineType[TimelineType["shear"] = 3] = "shear"; + TimelineType[TimelineType["attachment"] = 4] = "attachment"; + TimelineType[TimelineType["color"] = 5] = "color"; + TimelineType[TimelineType["deform"] = 6] = "deform"; + TimelineType[TimelineType["event"] = 7] = "event"; + TimelineType[TimelineType["drawOrder"] = 8] = "drawOrder"; + TimelineType[TimelineType["ikConstraint"] = 9] = "ikConstraint"; + TimelineType[TimelineType["transformConstraint"] = 10] = "transformConstraint"; + TimelineType[TimelineType["pathConstraintPosition"] = 11] = "pathConstraintPosition"; + TimelineType[TimelineType["pathConstraintSpacing"] = 12] = "pathConstraintSpacing"; + TimelineType[TimelineType["pathConstraintMix"] = 13] = "pathConstraintMix"; + TimelineType[TimelineType["twoColor"] = 14] = "twoColor"; + })(TimelineType = spine.TimelineType || (spine.TimelineType = {})); + var CurveTimeline = (function() { + function CurveTimeline(frameCount) { + if (frameCount <= 0) throw new Error("frameCount must be > 0: " + frameCount); + this.curves = spine.Utils.newFloatArray((frameCount - 1) * CurveTimeline.BEZIER_SIZE); + } + CurveTimeline.prototype.getFrameCount = function() { + return this.curves.length / CurveTimeline.BEZIER_SIZE + 1; + }; + CurveTimeline.prototype.setLinear = function(frameIndex) { + this.curves[frameIndex * CurveTimeline.BEZIER_SIZE] = CurveTimeline.LINEAR; + }; + CurveTimeline.prototype.setStepped = function(frameIndex) { + this.curves[frameIndex * CurveTimeline.BEZIER_SIZE] = CurveTimeline.STEPPED; + }; + CurveTimeline.prototype.getCurveType = function(frameIndex) { + var index = frameIndex * CurveTimeline.BEZIER_SIZE; + if (index == this.curves.length) return CurveTimeline.LINEAR; + var type = this.curves[index]; + if (type == CurveTimeline.LINEAR) return CurveTimeline.LINEAR; + if (type == CurveTimeline.STEPPED) return CurveTimeline.STEPPED; + return CurveTimeline.BEZIER; + }; + CurveTimeline.prototype.setCurve = function(frameIndex, cx1, cy1, cx2, cy2) { + var tmpx = .03 * (2 * -cx1 + cx2), tmpy = .03 * (2 * -cy1 + cy2); + var dddfx = .006 * (3 * (cx1 - cx2) + 1), dddfy = .006 * (3 * (cy1 - cy2) + 1); + var ddfx = 2 * tmpx + dddfx, ddfy = 2 * tmpy + dddfy; + var dfx = .3 * cx1 + tmpx + .16666667 * dddfx, dfy = .3 * cy1 + tmpy + .16666667 * dddfy; + var i = frameIndex * CurveTimeline.BEZIER_SIZE; + var curves = this.curves; + curves[i++] = CurveTimeline.BEZIER; + var x = dfx, y = dfy; + for (var n = i + CurveTimeline.BEZIER_SIZE - 1; i < n; i += 2) { + curves[i] = x; + curves[i + 1] = y; + dfx += ddfx; + dfy += ddfy; + ddfx += dddfx; + ddfy += dddfy; + x += dfx; + y += dfy; + } + }; + CurveTimeline.prototype.getCurvePercent = function(frameIndex, percent) { + percent = spine.MathUtils.clamp(percent, 0, 1); + var curves = this.curves; + var i = frameIndex * CurveTimeline.BEZIER_SIZE; + var type = curves[i]; + if (type == CurveTimeline.LINEAR) return percent; + if (type == CurveTimeline.STEPPED) return 0; + i++; + var x = 0; + for (var start = i, n = i + CurveTimeline.BEZIER_SIZE - 1; i < n; i += 2) { + x = curves[i]; + if (x >= percent) { + var prevX = void 0, prevY = void 0; + if (i == start) { + prevX = 0; + prevY = 0; + } else { + prevX = curves[i - 2]; + prevY = curves[i - 1]; + } + return prevY + (curves[i + 1] - prevY) * (percent - prevX) / (x - prevX); + } + } + var y = curves[i - 1]; + return y + (1 - y) * (percent - x) / (1 - x); + }; + CurveTimeline.LINEAR = 0; + CurveTimeline.STEPPED = 1; + CurveTimeline.BEZIER = 2; + CurveTimeline.BEZIER_SIZE = 19; + return CurveTimeline; + })(); + spine.CurveTimeline = CurveTimeline; + var RotateTimeline = (function(_super) { + __extends(RotateTimeline, _super); + function RotateTimeline(frameCount) { + var _this = _super.call(this, frameCount) || this; + _this.frames = spine.Utils.newFloatArray(frameCount << 1); + return _this; + } + RotateTimeline.prototype.getPropertyId = function() { + return (TimelineType.rotate << 24) + this.boneIndex; + }; + RotateTimeline.prototype.setFrame = function(frameIndex, time, degrees) { + frameIndex <<= 1; + this.frames[frameIndex] = time; + this.frames[frameIndex + RotateTimeline.ROTATION] = degrees; + }; + RotateTimeline.prototype.apply = function(skeleton, lastTime, time, events, alpha, blend, direction) { + var frames = this.frames; + var bone = skeleton.bones[this.boneIndex]; + if (!bone.active) return; + if (time < frames[0]) { + switch (blend) { + case MixBlend.setup: + bone.rotation = bone.data.rotation; + return; + + case MixBlend.first: + var r_1 = bone.data.rotation - bone.rotation; + bone.rotation += (r_1 - 360 * (16384 - (16384.499999999996 - r_1 / 360 | 0))) * alpha; + } + return; + } + if (time >= frames[frames.length - RotateTimeline.ENTRIES]) { + var r_2 = frames[frames.length + RotateTimeline.PREV_ROTATION]; + switch (blend) { + case MixBlend.setup: + bone.rotation = bone.data.rotation + r_2 * alpha; + break; + + case MixBlend.first: + case MixBlend.replace: + r_2 += bone.data.rotation - bone.rotation; + r_2 -= 360 * (16384 - (16384.499999999996 - r_2 / 360 | 0)); + + case MixBlend.add: + bone.rotation += r_2 * alpha; + } + return; + } + var frame = Animation.binarySearch(frames, time, RotateTimeline.ENTRIES); + var prevRotation = frames[frame + RotateTimeline.PREV_ROTATION]; + var frameTime = frames[frame]; + var percent = this.getCurvePercent((frame >> 1) - 1, 1 - (time - frameTime) / (frames[frame + RotateTimeline.PREV_TIME] - frameTime)); + var r = frames[frame + RotateTimeline.ROTATION] - prevRotation; + r = prevRotation + (r - 360 * (16384 - (16384.499999999996 - r / 360 | 0))) * percent; + switch (blend) { + case MixBlend.setup: + bone.rotation = bone.data.rotation + (r - 360 * (16384 - (16384.499999999996 - r / 360 | 0))) * alpha; + break; + + case MixBlend.first: + case MixBlend.replace: + r += bone.data.rotation - bone.rotation; + + case MixBlend.add: + bone.rotation += (r - 360 * (16384 - (16384.499999999996 - r / 360 | 0))) * alpha; + } + }; + RotateTimeline.ENTRIES = 2; + RotateTimeline.PREV_TIME = -2; + RotateTimeline.PREV_ROTATION = -1; + RotateTimeline.ROTATION = 1; + return RotateTimeline; + })(CurveTimeline); + spine.RotateTimeline = RotateTimeline; + var TranslateTimeline = (function(_super) { + __extends(TranslateTimeline, _super); + function TranslateTimeline(frameCount) { + var _this = _super.call(this, frameCount) || this; + _this.frames = spine.Utils.newFloatArray(frameCount * TranslateTimeline.ENTRIES); + return _this; + } + TranslateTimeline.prototype.getPropertyId = function() { + return (TimelineType.translate << 24) + this.boneIndex; + }; + TranslateTimeline.prototype.setFrame = function(frameIndex, time, x, y) { + frameIndex *= TranslateTimeline.ENTRIES; + this.frames[frameIndex] = time; + this.frames[frameIndex + TranslateTimeline.X] = x; + this.frames[frameIndex + TranslateTimeline.Y] = y; + }; + TranslateTimeline.prototype.apply = function(skeleton, lastTime, time, events, alpha, blend, direction) { + var frames = this.frames; + var bone = skeleton.bones[this.boneIndex]; + if (!bone.active) return; + if (time < frames[0]) { + switch (blend) { + case MixBlend.setup: + bone.x = bone.data.x; + bone.y = bone.data.y; + return; + + case MixBlend.first: + bone.x += (bone.data.x - bone.x) * alpha; + bone.y += (bone.data.y - bone.y) * alpha; + } + return; + } + var x = 0, y = 0; + if (time >= frames[frames.length - TranslateTimeline.ENTRIES]) { + x = frames[frames.length + TranslateTimeline.PREV_X]; + y = frames[frames.length + TranslateTimeline.PREV_Y]; + } else { + var frame = Animation.binarySearch(frames, time, TranslateTimeline.ENTRIES); + x = frames[frame + TranslateTimeline.PREV_X]; + y = frames[frame + TranslateTimeline.PREV_Y]; + var frameTime = frames[frame]; + var percent = this.getCurvePercent(frame / TranslateTimeline.ENTRIES - 1, 1 - (time - frameTime) / (frames[frame + TranslateTimeline.PREV_TIME] - frameTime)); + x += (frames[frame + TranslateTimeline.X] - x) * percent; + y += (frames[frame + TranslateTimeline.Y] - y) * percent; + } + switch (blend) { + case MixBlend.setup: + bone.x = bone.data.x + x * alpha; + bone.y = bone.data.y + y * alpha; + break; + + case MixBlend.first: + case MixBlend.replace: + bone.x += (bone.data.x + x - bone.x) * alpha; + bone.y += (bone.data.y + y - bone.y) * alpha; + break; + + case MixBlend.add: + bone.x += x * alpha; + bone.y += y * alpha; + } + }; + TranslateTimeline.ENTRIES = 3; + TranslateTimeline.PREV_TIME = -3; + TranslateTimeline.PREV_X = -2; + TranslateTimeline.PREV_Y = -1; + TranslateTimeline.X = 1; + TranslateTimeline.Y = 2; + return TranslateTimeline; + })(CurveTimeline); + spine.TranslateTimeline = TranslateTimeline; + var ScaleTimeline = (function(_super) { + __extends(ScaleTimeline, _super); + function ScaleTimeline(frameCount) { + return _super.call(this, frameCount) || this; + } + ScaleTimeline.prototype.getPropertyId = function() { + return (TimelineType.scale << 24) + this.boneIndex; + }; + ScaleTimeline.prototype.apply = function(skeleton, lastTime, time, events, alpha, blend, direction) { + var frames = this.frames; + var bone = skeleton.bones[this.boneIndex]; + if (!bone.active) return; + if (time < frames[0]) { + switch (blend) { + case MixBlend.setup: + bone.scaleX = bone.data.scaleX; + bone.scaleY = bone.data.scaleY; + return; + + case MixBlend.first: + bone.scaleX += (bone.data.scaleX - bone.scaleX) * alpha; + bone.scaleY += (bone.data.scaleY - bone.scaleY) * alpha; + } + return; + } + var x = 0, y = 0; + if (time >= frames[frames.length - ScaleTimeline.ENTRIES]) { + x = frames[frames.length + ScaleTimeline.PREV_X] * bone.data.scaleX; + y = frames[frames.length + ScaleTimeline.PREV_Y] * bone.data.scaleY; + } else { + var frame = Animation.binarySearch(frames, time, ScaleTimeline.ENTRIES); + x = frames[frame + ScaleTimeline.PREV_X]; + y = frames[frame + ScaleTimeline.PREV_Y]; + var frameTime = frames[frame]; + var percent = this.getCurvePercent(frame / ScaleTimeline.ENTRIES - 1, 1 - (time - frameTime) / (frames[frame + ScaleTimeline.PREV_TIME] - frameTime)); + x = (x + (frames[frame + ScaleTimeline.X] - x) * percent) * bone.data.scaleX; + y = (y + (frames[frame + ScaleTimeline.Y] - y) * percent) * bone.data.scaleY; + } + if (1 == alpha) if (blend == MixBlend.add) { + bone.scaleX += x - bone.data.scaleX; + bone.scaleY += y - bone.data.scaleY; + } else { + bone.scaleX = x; + bone.scaleY = y; + } else { + var bx = 0, by = 0; + if (direction == MixDirection.mixOut) switch (blend) { + case MixBlend.setup: + bx = bone.data.scaleX; + by = bone.data.scaleY; + bone.scaleX = bx + (Math.abs(x) * spine.MathUtils.signum(bx) - bx) * alpha; + bone.scaleY = by + (Math.abs(y) * spine.MathUtils.signum(by) - by) * alpha; + break; + + case MixBlend.first: + case MixBlend.replace: + bx = bone.scaleX; + by = bone.scaleY; + bone.scaleX = bx + (Math.abs(x) * spine.MathUtils.signum(bx) - bx) * alpha; + bone.scaleY = by + (Math.abs(y) * spine.MathUtils.signum(by) - by) * alpha; + break; + + case MixBlend.add: + bx = bone.scaleX; + by = bone.scaleY; + bone.scaleX = bx + (Math.abs(x) * spine.MathUtils.signum(bx) - bone.data.scaleX) * alpha; + bone.scaleY = by + (Math.abs(y) * spine.MathUtils.signum(by) - bone.data.scaleY) * alpha; + } else switch (blend) { + case MixBlend.setup: + bx = Math.abs(bone.data.scaleX) * spine.MathUtils.signum(x); + by = Math.abs(bone.data.scaleY) * spine.MathUtils.signum(y); + bone.scaleX = bx + (x - bx) * alpha; + bone.scaleY = by + (y - by) * alpha; + break; + + case MixBlend.first: + case MixBlend.replace: + bx = Math.abs(bone.scaleX) * spine.MathUtils.signum(x); + by = Math.abs(bone.scaleY) * spine.MathUtils.signum(y); + bone.scaleX = bx + (x - bx) * alpha; + bone.scaleY = by + (y - by) * alpha; + break; + + case MixBlend.add: + bx = spine.MathUtils.signum(x); + by = spine.MathUtils.signum(y); + bone.scaleX = Math.abs(bone.scaleX) * bx + (x - Math.abs(bone.data.scaleX) * bx) * alpha; + bone.scaleY = Math.abs(bone.scaleY) * by + (y - Math.abs(bone.data.scaleY) * by) * alpha; + } + } + }; + return ScaleTimeline; + })(TranslateTimeline); + spine.ScaleTimeline = ScaleTimeline; + var ShearTimeline = (function(_super) { + __extends(ShearTimeline, _super); + function ShearTimeline(frameCount) { + return _super.call(this, frameCount) || this; + } + ShearTimeline.prototype.getPropertyId = function() { + return (TimelineType.shear << 24) + this.boneIndex; + }; + ShearTimeline.prototype.apply = function(skeleton, lastTime, time, events, alpha, blend, direction) { + var frames = this.frames; + var bone = skeleton.bones[this.boneIndex]; + if (!bone.active) return; + if (time < frames[0]) { + switch (blend) { + case MixBlend.setup: + bone.shearX = bone.data.shearX; + bone.shearY = bone.data.shearY; + return; + + case MixBlend.first: + bone.shearX += (bone.data.shearX - bone.shearX) * alpha; + bone.shearY += (bone.data.shearY - bone.shearY) * alpha; + } + return; + } + var x = 0, y = 0; + if (time >= frames[frames.length - ShearTimeline.ENTRIES]) { + x = frames[frames.length + ShearTimeline.PREV_X]; + y = frames[frames.length + ShearTimeline.PREV_Y]; + } else { + var frame = Animation.binarySearch(frames, time, ShearTimeline.ENTRIES); + x = frames[frame + ShearTimeline.PREV_X]; + y = frames[frame + ShearTimeline.PREV_Y]; + var frameTime = frames[frame]; + var percent = this.getCurvePercent(frame / ShearTimeline.ENTRIES - 1, 1 - (time - frameTime) / (frames[frame + ShearTimeline.PREV_TIME] - frameTime)); + x += (frames[frame + ShearTimeline.X] - x) * percent; + y += (frames[frame + ShearTimeline.Y] - y) * percent; + } + switch (blend) { + case MixBlend.setup: + bone.shearX = bone.data.shearX + x * alpha; + bone.shearY = bone.data.shearY + y * alpha; + break; + + case MixBlend.first: + case MixBlend.replace: + bone.shearX += (bone.data.shearX + x - bone.shearX) * alpha; + bone.shearY += (bone.data.shearY + y - bone.shearY) * alpha; + break; + + case MixBlend.add: + bone.shearX += x * alpha; + bone.shearY += y * alpha; + } + }; + return ShearTimeline; + })(TranslateTimeline); + spine.ShearTimeline = ShearTimeline; + var ColorTimeline = (function(_super) { + __extends(ColorTimeline, _super); + function ColorTimeline(frameCount) { + var _this = _super.call(this, frameCount) || this; + _this.frames = spine.Utils.newFloatArray(frameCount * ColorTimeline.ENTRIES); + return _this; + } + ColorTimeline.prototype.getPropertyId = function() { + return (TimelineType.color << 24) + this.slotIndex; + }; + ColorTimeline.prototype.setFrame = function(frameIndex, time, r, g, b, a) { + frameIndex *= ColorTimeline.ENTRIES; + this.frames[frameIndex] = time; + this.frames[frameIndex + ColorTimeline.R] = r; + this.frames[frameIndex + ColorTimeline.G] = g; + this.frames[frameIndex + ColorTimeline.B] = b; + this.frames[frameIndex + ColorTimeline.A] = a; + }; + ColorTimeline.prototype.apply = function(skeleton, lastTime, time, events, alpha, blend, direction) { + var slot = skeleton.slots[this.slotIndex]; + if (!slot.bone.active) return; + var frames = this.frames; + if (time < frames[0]) { + switch (blend) { + case MixBlend.setup: + slot.color.setFromColor(slot.data.color); + return; + + case MixBlend.first: + var color = slot.color, setup = slot.data.color; + color.add((setup.r - color.r) * alpha, (setup.g - color.g) * alpha, (setup.b - color.b) * alpha, (setup.a - color.a) * alpha); + } + return; + } + var r = 0, g = 0, b = 0, a = 0; + if (time >= frames[frames.length - ColorTimeline.ENTRIES]) { + var i = frames.length; + r = frames[i + ColorTimeline.PREV_R]; + g = frames[i + ColorTimeline.PREV_G]; + b = frames[i + ColorTimeline.PREV_B]; + a = frames[i + ColorTimeline.PREV_A]; + } else { + var frame = Animation.binarySearch(frames, time, ColorTimeline.ENTRIES); + r = frames[frame + ColorTimeline.PREV_R]; + g = frames[frame + ColorTimeline.PREV_G]; + b = frames[frame + ColorTimeline.PREV_B]; + a = frames[frame + ColorTimeline.PREV_A]; + var frameTime = frames[frame]; + var percent = this.getCurvePercent(frame / ColorTimeline.ENTRIES - 1, 1 - (time - frameTime) / (frames[frame + ColorTimeline.PREV_TIME] - frameTime)); + r += (frames[frame + ColorTimeline.R] - r) * percent; + g += (frames[frame + ColorTimeline.G] - g) * percent; + b += (frames[frame + ColorTimeline.B] - b) * percent; + a += (frames[frame + ColorTimeline.A] - a) * percent; + } + if (1 == alpha) slot.color.set(r, g, b, a); else { + var color = slot.color; + blend == MixBlend.setup && color.setFromColor(slot.data.color); + color.add((r - color.r) * alpha, (g - color.g) * alpha, (b - color.b) * alpha, (a - color.a) * alpha); + } + }; + ColorTimeline.ENTRIES = 5; + ColorTimeline.PREV_TIME = -5; + ColorTimeline.PREV_R = -4; + ColorTimeline.PREV_G = -3; + ColorTimeline.PREV_B = -2; + ColorTimeline.PREV_A = -1; + ColorTimeline.R = 1; + ColorTimeline.G = 2; + ColorTimeline.B = 3; + ColorTimeline.A = 4; + return ColorTimeline; + })(CurveTimeline); + spine.ColorTimeline = ColorTimeline; + var TwoColorTimeline = (function(_super) { + __extends(TwoColorTimeline, _super); + function TwoColorTimeline(frameCount) { + var _this = _super.call(this, frameCount) || this; + _this.frames = spine.Utils.newFloatArray(frameCount * TwoColorTimeline.ENTRIES); + return _this; + } + TwoColorTimeline.prototype.getPropertyId = function() { + return (TimelineType.twoColor << 24) + this.slotIndex; + }; + TwoColorTimeline.prototype.setFrame = function(frameIndex, time, r, g, b, a, r2, g2, b2) { + frameIndex *= TwoColorTimeline.ENTRIES; + this.frames[frameIndex] = time; + this.frames[frameIndex + TwoColorTimeline.R] = r; + this.frames[frameIndex + TwoColorTimeline.G] = g; + this.frames[frameIndex + TwoColorTimeline.B] = b; + this.frames[frameIndex + TwoColorTimeline.A] = a; + this.frames[frameIndex + TwoColorTimeline.R2] = r2; + this.frames[frameIndex + TwoColorTimeline.G2] = g2; + this.frames[frameIndex + TwoColorTimeline.B2] = b2; + }; + TwoColorTimeline.prototype.apply = function(skeleton, lastTime, time, events, alpha, blend, direction) { + var slot = skeleton.slots[this.slotIndex]; + if (!slot.bone.active) return; + var frames = this.frames; + if (time < frames[0]) { + switch (blend) { + case MixBlend.setup: + slot.color.setFromColor(slot.data.color); + slot.darkColor.setFromColor(slot.data.darkColor); + return; + + case MixBlend.first: + var light = slot.color, dark = slot.darkColor, setupLight = slot.data.color, setupDark = slot.data.darkColor; + light.add((setupLight.r - light.r) * alpha, (setupLight.g - light.g) * alpha, (setupLight.b - light.b) * alpha, (setupLight.a - light.a) * alpha); + dark.add((setupDark.r - dark.r) * alpha, (setupDark.g - dark.g) * alpha, (setupDark.b - dark.b) * alpha, 0); + } + return; + } + var r = 0, g = 0, b = 0, a = 0, r2 = 0, g2 = 0, b2 = 0; + if (time >= frames[frames.length - TwoColorTimeline.ENTRIES]) { + var i = frames.length; + r = frames[i + TwoColorTimeline.PREV_R]; + g = frames[i + TwoColorTimeline.PREV_G]; + b = frames[i + TwoColorTimeline.PREV_B]; + a = frames[i + TwoColorTimeline.PREV_A]; + r2 = frames[i + TwoColorTimeline.PREV_R2]; + g2 = frames[i + TwoColorTimeline.PREV_G2]; + b2 = frames[i + TwoColorTimeline.PREV_B2]; + } else { + var frame = Animation.binarySearch(frames, time, TwoColorTimeline.ENTRIES); + r = frames[frame + TwoColorTimeline.PREV_R]; + g = frames[frame + TwoColorTimeline.PREV_G]; + b = frames[frame + TwoColorTimeline.PREV_B]; + a = frames[frame + TwoColorTimeline.PREV_A]; + r2 = frames[frame + TwoColorTimeline.PREV_R2]; + g2 = frames[frame + TwoColorTimeline.PREV_G2]; + b2 = frames[frame + TwoColorTimeline.PREV_B2]; + var frameTime = frames[frame]; + var percent = this.getCurvePercent(frame / TwoColorTimeline.ENTRIES - 1, 1 - (time - frameTime) / (frames[frame + TwoColorTimeline.PREV_TIME] - frameTime)); + r += (frames[frame + TwoColorTimeline.R] - r) * percent; + g += (frames[frame + TwoColorTimeline.G] - g) * percent; + b += (frames[frame + TwoColorTimeline.B] - b) * percent; + a += (frames[frame + TwoColorTimeline.A] - a) * percent; + r2 += (frames[frame + TwoColorTimeline.R2] - r2) * percent; + g2 += (frames[frame + TwoColorTimeline.G2] - g2) * percent; + b2 += (frames[frame + TwoColorTimeline.B2] - b2) * percent; + } + if (1 == alpha) { + slot.color.set(r, g, b, a); + slot.darkColor.set(r2, g2, b2, 1); + } else { + var light = slot.color, dark = slot.darkColor; + if (blend == MixBlend.setup) { + light.setFromColor(slot.data.color); + dark.setFromColor(slot.data.darkColor); + } + light.add((r - light.r) * alpha, (g - light.g) * alpha, (b - light.b) * alpha, (a - light.a) * alpha); + dark.add((r2 - dark.r) * alpha, (g2 - dark.g) * alpha, (b2 - dark.b) * alpha, 0); + } + }; + TwoColorTimeline.ENTRIES = 8; + TwoColorTimeline.PREV_TIME = -8; + TwoColorTimeline.PREV_R = -7; + TwoColorTimeline.PREV_G = -6; + TwoColorTimeline.PREV_B = -5; + TwoColorTimeline.PREV_A = -4; + TwoColorTimeline.PREV_R2 = -3; + TwoColorTimeline.PREV_G2 = -2; + TwoColorTimeline.PREV_B2 = -1; + TwoColorTimeline.R = 1; + TwoColorTimeline.G = 2; + TwoColorTimeline.B = 3; + TwoColorTimeline.A = 4; + TwoColorTimeline.R2 = 5; + TwoColorTimeline.G2 = 6; + TwoColorTimeline.B2 = 7; + return TwoColorTimeline; + })(CurveTimeline); + spine.TwoColorTimeline = TwoColorTimeline; + var AttachmentTimeline = (function() { + function AttachmentTimeline(frameCount) { + this.frames = spine.Utils.newFloatArray(frameCount); + this.attachmentNames = new Array(frameCount); + } + AttachmentTimeline.prototype.getPropertyId = function() { + return (TimelineType.attachment << 24) + this.slotIndex; + }; + AttachmentTimeline.prototype.getFrameCount = function() { + return this.frames.length; + }; + AttachmentTimeline.prototype.setFrame = function(frameIndex, time, attachmentName) { + this.frames[frameIndex] = time; + this.attachmentNames[frameIndex] = attachmentName; + }; + AttachmentTimeline.prototype.apply = function(skeleton, lastTime, time, events, alpha, blend, direction) { + var slot = skeleton.slots[this.slotIndex]; + if (!slot.bone.active) return; + if (direction == MixDirection.mixOut && blend == MixBlend.setup) { + var attachmentName_1 = slot.data.attachmentName; + slot.setAttachment(null == attachmentName_1 ? null : skeleton.getAttachment(this.slotIndex, attachmentName_1)); + return; + } + var frames = this.frames; + if (time < frames[0]) { + if (blend == MixBlend.setup || blend == MixBlend.first) { + var attachmentName_2 = slot.data.attachmentName; + slot.setAttachment(null == attachmentName_2 ? null : skeleton.getAttachment(this.slotIndex, attachmentName_2)); + } + return; + } + var frameIndex = 0; + frameIndex = time >= frames[frames.length - 1] ? frames.length - 1 : Animation.binarySearch(frames, time, 1) - 1; + var attachmentName = this.attachmentNames[frameIndex]; + skeleton.slots[this.slotIndex].setAttachment(null == attachmentName ? null : skeleton.getAttachment(this.slotIndex, attachmentName)); + }; + return AttachmentTimeline; + })(); + spine.AttachmentTimeline = AttachmentTimeline; + var zeros = null; + var DeformTimeline = (function(_super) { + __extends(DeformTimeline, _super); + function DeformTimeline(frameCount) { + var _this = _super.call(this, frameCount) || this; + _this.frames = spine.Utils.newFloatArray(frameCount); + _this.frameVertices = new Array(frameCount); + null == zeros && (zeros = spine.Utils.newFloatArray(64)); + return _this; + } + DeformTimeline.prototype.getPropertyId = function() { + return (TimelineType.deform << 27) + +this.attachment.id + this.slotIndex; + }; + DeformTimeline.prototype.setFrame = function(frameIndex, time, vertices) { + this.frames[frameIndex] = time; + this.frameVertices[frameIndex] = vertices; + }; + DeformTimeline.prototype.apply = function(skeleton, lastTime, time, firedEvents, alpha, blend, direction) { + var slot = skeleton.slots[this.slotIndex]; + if (!slot.bone.active) return; + var slotAttachment = slot.getAttachment(); + if (!(slotAttachment instanceof spine.VertexAttachment) || !(slotAttachment.deformAttachment == this.attachment)) return; + var deformArray = slot.deform; + 0 == deformArray.length && (blend = MixBlend.setup); + var frameVertices = this.frameVertices; + var vertexCount = frameVertices[0].length; + var frames = this.frames; + if (time < frames[0]) { + var vertexAttachment = slotAttachment; + switch (blend) { + case MixBlend.setup: + deformArray.length = 0; + return; + + case MixBlend.first: + if (1 == alpha) { + deformArray.length = 0; + break; + } + var deform_1 = spine.Utils.setArraySize(deformArray, vertexCount); + if (null == vertexAttachment.bones) { + var setupVertices = vertexAttachment.vertices; + for (var i = 0; i < vertexCount; i++) deform_1[i] += (setupVertices[i] - deform_1[i]) * alpha; + } else { + alpha = 1 - alpha; + for (var i = 0; i < vertexCount; i++) deform_1[i] *= alpha; + } + } + return; + } + var deform = spine.Utils.setArraySize(deformArray, vertexCount); + if (time >= frames[frames.length - 1]) { + var lastVertices = frameVertices[frames.length - 1]; + if (1 == alpha) if (blend == MixBlend.add) { + var vertexAttachment = slotAttachment; + if (null == vertexAttachment.bones) { + var setupVertices = vertexAttachment.vertices; + for (var i_1 = 0; i_1 < vertexCount; i_1++) deform[i_1] += lastVertices[i_1] - setupVertices[i_1]; + } else for (var i_2 = 0; i_2 < vertexCount; i_2++) deform[i_2] += lastVertices[i_2]; + } else spine.Utils.arrayCopy(lastVertices, 0, deform, 0, vertexCount); else switch (blend) { + case MixBlend.setup: + var vertexAttachment_1 = slotAttachment; + if (null == vertexAttachment_1.bones) { + var setupVertices = vertexAttachment_1.vertices; + for (var i_3 = 0; i_3 < vertexCount; i_3++) { + var setup = setupVertices[i_3]; + deform[i_3] = setup + (lastVertices[i_3] - setup) * alpha; + } + } else for (var i_4 = 0; i_4 < vertexCount; i_4++) deform[i_4] = lastVertices[i_4] * alpha; + break; + + case MixBlend.first: + case MixBlend.replace: + for (var i_5 = 0; i_5 < vertexCount; i_5++) deform[i_5] += (lastVertices[i_5] - deform[i_5]) * alpha; + + case MixBlend.add: + var vertexAttachment = slotAttachment; + if (null == vertexAttachment.bones) { + var setupVertices = vertexAttachment.vertices; + for (var i_6 = 0; i_6 < vertexCount; i_6++) deform[i_6] += (lastVertices[i_6] - setupVertices[i_6]) * alpha; + } else for (var i_7 = 0; i_7 < vertexCount; i_7++) deform[i_7] += lastVertices[i_7] * alpha; + } + return; + } + var frame = Animation.binarySearch(frames, time); + var prevVertices = frameVertices[frame - 1]; + var nextVertices = frameVertices[frame]; + var frameTime = frames[frame]; + var percent = this.getCurvePercent(frame - 1, 1 - (time - frameTime) / (frames[frame - 1] - frameTime)); + if (1 == alpha) if (blend == MixBlend.add) { + var vertexAttachment = slotAttachment; + if (null == vertexAttachment.bones) { + var setupVertices = vertexAttachment.vertices; + for (var i_8 = 0; i_8 < vertexCount; i_8++) { + var prev = prevVertices[i_8]; + deform[i_8] += prev + (nextVertices[i_8] - prev) * percent - setupVertices[i_8]; + } + } else for (var i_9 = 0; i_9 < vertexCount; i_9++) { + var prev = prevVertices[i_9]; + deform[i_9] += prev + (nextVertices[i_9] - prev) * percent; + } + } else for (var i_10 = 0; i_10 < vertexCount; i_10++) { + var prev = prevVertices[i_10]; + deform[i_10] = prev + (nextVertices[i_10] - prev) * percent; + } else switch (blend) { + case MixBlend.setup: + var vertexAttachment_2 = slotAttachment; + if (null == vertexAttachment_2.bones) { + var setupVertices = vertexAttachment_2.vertices; + for (var i_11 = 0; i_11 < vertexCount; i_11++) { + var prev = prevVertices[i_11], setup = setupVertices[i_11]; + deform[i_11] = setup + (prev + (nextVertices[i_11] - prev) * percent - setup) * alpha; + } + } else for (var i_12 = 0; i_12 < vertexCount; i_12++) { + var prev = prevVertices[i_12]; + deform[i_12] = (prev + (nextVertices[i_12] - prev) * percent) * alpha; + } + break; + + case MixBlend.first: + case MixBlend.replace: + for (var i_13 = 0; i_13 < vertexCount; i_13++) { + var prev = prevVertices[i_13]; + deform[i_13] += (prev + (nextVertices[i_13] - prev) * percent - deform[i_13]) * alpha; + } + break; + + case MixBlend.add: + var vertexAttachment = slotAttachment; + if (null == vertexAttachment.bones) { + var setupVertices = vertexAttachment.vertices; + for (var i_14 = 0; i_14 < vertexCount; i_14++) { + var prev = prevVertices[i_14]; + deform[i_14] += (prev + (nextVertices[i_14] - prev) * percent - setupVertices[i_14]) * alpha; + } + } else for (var i_15 = 0; i_15 < vertexCount; i_15++) { + var prev = prevVertices[i_15]; + deform[i_15] += (prev + (nextVertices[i_15] - prev) * percent) * alpha; + } + } + }; + return DeformTimeline; + })(CurveTimeline); + spine.DeformTimeline = DeformTimeline; + var EventTimeline = (function() { + function EventTimeline(frameCount) { + this.frames = spine.Utils.newFloatArray(frameCount); + this.events = new Array(frameCount); + } + EventTimeline.prototype.getPropertyId = function() { + return TimelineType.event << 24; + }; + EventTimeline.prototype.getFrameCount = function() { + return this.frames.length; + }; + EventTimeline.prototype.setFrame = function(frameIndex, event) { + this.frames[frameIndex] = event.time; + this.events[frameIndex] = event; + }; + EventTimeline.prototype.apply = function(skeleton, lastTime, time, firedEvents, alpha, blend, direction) { + if (null == firedEvents) return; + var frames = this.frames; + var frameCount = this.frames.length; + if (lastTime > time) { + this.apply(skeleton, lastTime, Number.MAX_VALUE, firedEvents, alpha, blend, direction); + lastTime = -1; + } else if (lastTime >= frames[frameCount - 1]) return; + if (time < frames[0]) return; + var frame = 0; + if (lastTime < frames[0]) frame = 0; else { + frame = Animation.binarySearch(frames, lastTime); + var frameTime = frames[frame]; + while (frame > 0) { + if (frames[frame - 1] != frameTime) break; + frame--; + } + } + for (;frame < frameCount && time >= frames[frame]; frame++) firedEvents.push(this.events[frame]); + }; + return EventTimeline; + })(); + spine.EventTimeline = EventTimeline; + var DrawOrderTimeline = (function() { + function DrawOrderTimeline(frameCount) { + this.frames = spine.Utils.newFloatArray(frameCount); + this.drawOrders = new Array(frameCount); + } + DrawOrderTimeline.prototype.getPropertyId = function() { + return TimelineType.drawOrder << 24; + }; + DrawOrderTimeline.prototype.getFrameCount = function() { + return this.frames.length; + }; + DrawOrderTimeline.prototype.setFrame = function(frameIndex, time, drawOrder) { + this.frames[frameIndex] = time; + this.drawOrders[frameIndex] = drawOrder; + }; + DrawOrderTimeline.prototype.apply = function(skeleton, lastTime, time, firedEvents, alpha, blend, direction) { + var drawOrder = skeleton.drawOrder; + var slots = skeleton.slots; + if (direction == MixDirection.mixOut && blend == MixBlend.setup) { + spine.Utils.arrayCopy(skeleton.slots, 0, skeleton.drawOrder, 0, skeleton.slots.length); + return; + } + var frames = this.frames; + if (time < frames[0]) { + blend != MixBlend.setup && blend != MixBlend.first || spine.Utils.arrayCopy(skeleton.slots, 0, skeleton.drawOrder, 0, skeleton.slots.length); + return; + } + var frame = 0; + frame = time >= frames[frames.length - 1] ? frames.length - 1 : Animation.binarySearch(frames, time) - 1; + var drawOrderToSetupIndex = this.drawOrders[frame]; + if (null == drawOrderToSetupIndex) spine.Utils.arrayCopy(slots, 0, drawOrder, 0, slots.length); else for (var i = 0, n = drawOrderToSetupIndex.length; i < n; i++) drawOrder[i] = slots[drawOrderToSetupIndex[i]]; + }; + return DrawOrderTimeline; + })(); + spine.DrawOrderTimeline = DrawOrderTimeline; + var IkConstraintTimeline = (function(_super) { + __extends(IkConstraintTimeline, _super); + function IkConstraintTimeline(frameCount) { + var _this = _super.call(this, frameCount) || this; + _this.frames = spine.Utils.newFloatArray(frameCount * IkConstraintTimeline.ENTRIES); + return _this; + } + IkConstraintTimeline.prototype.getPropertyId = function() { + return (TimelineType.ikConstraint << 24) + this.ikConstraintIndex; + }; + IkConstraintTimeline.prototype.setFrame = function(frameIndex, time, mix, softness, bendDirection, compress, stretch) { + frameIndex *= IkConstraintTimeline.ENTRIES; + this.frames[frameIndex] = time; + this.frames[frameIndex + IkConstraintTimeline.MIX] = mix; + this.frames[frameIndex + IkConstraintTimeline.SOFTNESS] = softness; + this.frames[frameIndex + IkConstraintTimeline.BEND_DIRECTION] = bendDirection; + this.frames[frameIndex + IkConstraintTimeline.COMPRESS] = compress ? 1 : 0; + this.frames[frameIndex + IkConstraintTimeline.STRETCH] = stretch ? 1 : 0; + }; + IkConstraintTimeline.prototype.apply = function(skeleton, lastTime, time, firedEvents, alpha, blend, direction) { + var frames = this.frames; + var constraint = skeleton.ikConstraints[this.ikConstraintIndex]; + if (!constraint.active) return; + if (time < frames[0]) { + switch (blend) { + case MixBlend.setup: + constraint.mix = constraint.data.mix; + constraint.softness = constraint.data.softness; + constraint.bendDirection = constraint.data.bendDirection; + constraint.compress = constraint.data.compress; + constraint.stretch = constraint.data.stretch; + return; + + case MixBlend.first: + constraint.mix += (constraint.data.mix - constraint.mix) * alpha; + constraint.softness += (constraint.data.softness - constraint.softness) * alpha; + constraint.bendDirection = constraint.data.bendDirection; + constraint.compress = constraint.data.compress; + constraint.stretch = constraint.data.stretch; + } + return; + } + if (time >= frames[frames.length - IkConstraintTimeline.ENTRIES]) { + if (blend == MixBlend.setup) { + constraint.mix = constraint.data.mix + (frames[frames.length + IkConstraintTimeline.PREV_MIX] - constraint.data.mix) * alpha; + constraint.softness = constraint.data.softness + (frames[frames.length + IkConstraintTimeline.PREV_SOFTNESS] - constraint.data.softness) * alpha; + if (direction == MixDirection.mixOut) { + constraint.bendDirection = constraint.data.bendDirection; + constraint.compress = constraint.data.compress; + constraint.stretch = constraint.data.stretch; + } else { + constraint.bendDirection = frames[frames.length + IkConstraintTimeline.PREV_BEND_DIRECTION]; + constraint.compress = 0 != frames[frames.length + IkConstraintTimeline.PREV_COMPRESS]; + constraint.stretch = 0 != frames[frames.length + IkConstraintTimeline.PREV_STRETCH]; + } + } else { + constraint.mix += (frames[frames.length + IkConstraintTimeline.PREV_MIX] - constraint.mix) * alpha; + constraint.softness += (frames[frames.length + IkConstraintTimeline.PREV_SOFTNESS] - constraint.softness) * alpha; + if (direction == MixDirection.mixIn) { + constraint.bendDirection = frames[frames.length + IkConstraintTimeline.PREV_BEND_DIRECTION]; + constraint.compress = 0 != frames[frames.length + IkConstraintTimeline.PREV_COMPRESS]; + constraint.stretch = 0 != frames[frames.length + IkConstraintTimeline.PREV_STRETCH]; + } + } + return; + } + var frame = Animation.binarySearch(frames, time, IkConstraintTimeline.ENTRIES); + var mix = frames[frame + IkConstraintTimeline.PREV_MIX]; + var softness = frames[frame + IkConstraintTimeline.PREV_SOFTNESS]; + var frameTime = frames[frame]; + var percent = this.getCurvePercent(frame / IkConstraintTimeline.ENTRIES - 1, 1 - (time - frameTime) / (frames[frame + IkConstraintTimeline.PREV_TIME] - frameTime)); + if (blend == MixBlend.setup) { + constraint.mix = constraint.data.mix + (mix + (frames[frame + IkConstraintTimeline.MIX] - mix) * percent - constraint.data.mix) * alpha; + constraint.softness = constraint.data.softness + (softness + (frames[frame + IkConstraintTimeline.SOFTNESS] - softness) * percent - constraint.data.softness) * alpha; + if (direction == MixDirection.mixOut) { + constraint.bendDirection = constraint.data.bendDirection; + constraint.compress = constraint.data.compress; + constraint.stretch = constraint.data.stretch; + } else { + constraint.bendDirection = frames[frame + IkConstraintTimeline.PREV_BEND_DIRECTION]; + constraint.compress = 0 != frames[frame + IkConstraintTimeline.PREV_COMPRESS]; + constraint.stretch = 0 != frames[frame + IkConstraintTimeline.PREV_STRETCH]; + } + } else { + constraint.mix += (mix + (frames[frame + IkConstraintTimeline.MIX] - mix) * percent - constraint.mix) * alpha; + constraint.softness += (softness + (frames[frame + IkConstraintTimeline.SOFTNESS] - softness) * percent - constraint.softness) * alpha; + if (direction == MixDirection.mixIn) { + constraint.bendDirection = frames[frame + IkConstraintTimeline.PREV_BEND_DIRECTION]; + constraint.compress = 0 != frames[frame + IkConstraintTimeline.PREV_COMPRESS]; + constraint.stretch = 0 != frames[frame + IkConstraintTimeline.PREV_STRETCH]; + } + } + }; + IkConstraintTimeline.ENTRIES = 6; + IkConstraintTimeline.PREV_TIME = -6; + IkConstraintTimeline.PREV_MIX = -5; + IkConstraintTimeline.PREV_SOFTNESS = -4; + IkConstraintTimeline.PREV_BEND_DIRECTION = -3; + IkConstraintTimeline.PREV_COMPRESS = -2; + IkConstraintTimeline.PREV_STRETCH = -1; + IkConstraintTimeline.MIX = 1; + IkConstraintTimeline.SOFTNESS = 2; + IkConstraintTimeline.BEND_DIRECTION = 3; + IkConstraintTimeline.COMPRESS = 4; + IkConstraintTimeline.STRETCH = 5; + return IkConstraintTimeline; + })(CurveTimeline); + spine.IkConstraintTimeline = IkConstraintTimeline; + var TransformConstraintTimeline = (function(_super) { + __extends(TransformConstraintTimeline, _super); + function TransformConstraintTimeline(frameCount) { + var _this = _super.call(this, frameCount) || this; + _this.frames = spine.Utils.newFloatArray(frameCount * TransformConstraintTimeline.ENTRIES); + return _this; + } + TransformConstraintTimeline.prototype.getPropertyId = function() { + return (TimelineType.transformConstraint << 24) + this.transformConstraintIndex; + }; + TransformConstraintTimeline.prototype.setFrame = function(frameIndex, time, rotateMix, translateMix, scaleMix, shearMix) { + frameIndex *= TransformConstraintTimeline.ENTRIES; + this.frames[frameIndex] = time; + this.frames[frameIndex + TransformConstraintTimeline.ROTATE] = rotateMix; + this.frames[frameIndex + TransformConstraintTimeline.TRANSLATE] = translateMix; + this.frames[frameIndex + TransformConstraintTimeline.SCALE] = scaleMix; + this.frames[frameIndex + TransformConstraintTimeline.SHEAR] = shearMix; + }; + TransformConstraintTimeline.prototype.apply = function(skeleton, lastTime, time, firedEvents, alpha, blend, direction) { + var frames = this.frames; + var constraint = skeleton.transformConstraints[this.transformConstraintIndex]; + if (!constraint.active) return; + if (time < frames[0]) { + var data = constraint.data; + switch (blend) { + case MixBlend.setup: + constraint.rotateMix = data.rotateMix; + constraint.translateMix = data.translateMix; + constraint.scaleMix = data.scaleMix; + constraint.shearMix = data.shearMix; + return; + + case MixBlend.first: + constraint.rotateMix += (data.rotateMix - constraint.rotateMix) * alpha; + constraint.translateMix += (data.translateMix - constraint.translateMix) * alpha; + constraint.scaleMix += (data.scaleMix - constraint.scaleMix) * alpha; + constraint.shearMix += (data.shearMix - constraint.shearMix) * alpha; + } + return; + } + var rotate = 0, translate = 0, scale = 0, shear = 0; + if (time >= frames[frames.length - TransformConstraintTimeline.ENTRIES]) { + var i = frames.length; + rotate = frames[i + TransformConstraintTimeline.PREV_ROTATE]; + translate = frames[i + TransformConstraintTimeline.PREV_TRANSLATE]; + scale = frames[i + TransformConstraintTimeline.PREV_SCALE]; + shear = frames[i + TransformConstraintTimeline.PREV_SHEAR]; + } else { + var frame = Animation.binarySearch(frames, time, TransformConstraintTimeline.ENTRIES); + rotate = frames[frame + TransformConstraintTimeline.PREV_ROTATE]; + translate = frames[frame + TransformConstraintTimeline.PREV_TRANSLATE]; + scale = frames[frame + TransformConstraintTimeline.PREV_SCALE]; + shear = frames[frame + TransformConstraintTimeline.PREV_SHEAR]; + var frameTime = frames[frame]; + var percent = this.getCurvePercent(frame / TransformConstraintTimeline.ENTRIES - 1, 1 - (time - frameTime) / (frames[frame + TransformConstraintTimeline.PREV_TIME] - frameTime)); + rotate += (frames[frame + TransformConstraintTimeline.ROTATE] - rotate) * percent; + translate += (frames[frame + TransformConstraintTimeline.TRANSLATE] - translate) * percent; + scale += (frames[frame + TransformConstraintTimeline.SCALE] - scale) * percent; + shear += (frames[frame + TransformConstraintTimeline.SHEAR] - shear) * percent; + } + if (blend == MixBlend.setup) { + var data = constraint.data; + constraint.rotateMix = data.rotateMix + (rotate - data.rotateMix) * alpha; + constraint.translateMix = data.translateMix + (translate - data.translateMix) * alpha; + constraint.scaleMix = data.scaleMix + (scale - data.scaleMix) * alpha; + constraint.shearMix = data.shearMix + (shear - data.shearMix) * alpha; + } else { + constraint.rotateMix += (rotate - constraint.rotateMix) * alpha; + constraint.translateMix += (translate - constraint.translateMix) * alpha; + constraint.scaleMix += (scale - constraint.scaleMix) * alpha; + constraint.shearMix += (shear - constraint.shearMix) * alpha; + } + }; + TransformConstraintTimeline.ENTRIES = 5; + TransformConstraintTimeline.PREV_TIME = -5; + TransformConstraintTimeline.PREV_ROTATE = -4; + TransformConstraintTimeline.PREV_TRANSLATE = -3; + TransformConstraintTimeline.PREV_SCALE = -2; + TransformConstraintTimeline.PREV_SHEAR = -1; + TransformConstraintTimeline.ROTATE = 1; + TransformConstraintTimeline.TRANSLATE = 2; + TransformConstraintTimeline.SCALE = 3; + TransformConstraintTimeline.SHEAR = 4; + return TransformConstraintTimeline; + })(CurveTimeline); + spine.TransformConstraintTimeline = TransformConstraintTimeline; + var PathConstraintPositionTimeline = (function(_super) { + __extends(PathConstraintPositionTimeline, _super); + function PathConstraintPositionTimeline(frameCount) { + var _this = _super.call(this, frameCount) || this; + _this.frames = spine.Utils.newFloatArray(frameCount * PathConstraintPositionTimeline.ENTRIES); + return _this; + } + PathConstraintPositionTimeline.prototype.getPropertyId = function() { + return (TimelineType.pathConstraintPosition << 24) + this.pathConstraintIndex; + }; + PathConstraintPositionTimeline.prototype.setFrame = function(frameIndex, time, value) { + frameIndex *= PathConstraintPositionTimeline.ENTRIES; + this.frames[frameIndex] = time; + this.frames[frameIndex + PathConstraintPositionTimeline.VALUE] = value; + }; + PathConstraintPositionTimeline.prototype.apply = function(skeleton, lastTime, time, firedEvents, alpha, blend, direction) { + var frames = this.frames; + var constraint = skeleton.pathConstraints[this.pathConstraintIndex]; + if (!constraint.active) return; + if (time < frames[0]) { + switch (blend) { + case MixBlend.setup: + constraint.position = constraint.data.position; + return; + + case MixBlend.first: + constraint.position += (constraint.data.position - constraint.position) * alpha; + } + return; + } + var position = 0; + if (time >= frames[frames.length - PathConstraintPositionTimeline.ENTRIES]) position = frames[frames.length + PathConstraintPositionTimeline.PREV_VALUE]; else { + var frame = Animation.binarySearch(frames, time, PathConstraintPositionTimeline.ENTRIES); + position = frames[frame + PathConstraintPositionTimeline.PREV_VALUE]; + var frameTime = frames[frame]; + var percent = this.getCurvePercent(frame / PathConstraintPositionTimeline.ENTRIES - 1, 1 - (time - frameTime) / (frames[frame + PathConstraintPositionTimeline.PREV_TIME] - frameTime)); + position += (frames[frame + PathConstraintPositionTimeline.VALUE] - position) * percent; + } + blend == MixBlend.setup ? constraint.position = constraint.data.position + (position - constraint.data.position) * alpha : constraint.position += (position - constraint.position) * alpha; + }; + PathConstraintPositionTimeline.ENTRIES = 2; + PathConstraintPositionTimeline.PREV_TIME = -2; + PathConstraintPositionTimeline.PREV_VALUE = -1; + PathConstraintPositionTimeline.VALUE = 1; + return PathConstraintPositionTimeline; + })(CurveTimeline); + spine.PathConstraintPositionTimeline = PathConstraintPositionTimeline; + var PathConstraintSpacingTimeline = (function(_super) { + __extends(PathConstraintSpacingTimeline, _super); + function PathConstraintSpacingTimeline(frameCount) { + return _super.call(this, frameCount) || this; + } + PathConstraintSpacingTimeline.prototype.getPropertyId = function() { + return (TimelineType.pathConstraintSpacing << 24) + this.pathConstraintIndex; + }; + PathConstraintSpacingTimeline.prototype.apply = function(skeleton, lastTime, time, firedEvents, alpha, blend, direction) { + var frames = this.frames; + var constraint = skeleton.pathConstraints[this.pathConstraintIndex]; + if (!constraint.active) return; + if (time < frames[0]) { + switch (blend) { + case MixBlend.setup: + constraint.spacing = constraint.data.spacing; + return; + + case MixBlend.first: + constraint.spacing += (constraint.data.spacing - constraint.spacing) * alpha; + } + return; + } + var spacing = 0; + if (time >= frames[frames.length - PathConstraintSpacingTimeline.ENTRIES]) spacing = frames[frames.length + PathConstraintSpacingTimeline.PREV_VALUE]; else { + var frame = Animation.binarySearch(frames, time, PathConstraintSpacingTimeline.ENTRIES); + spacing = frames[frame + PathConstraintSpacingTimeline.PREV_VALUE]; + var frameTime = frames[frame]; + var percent = this.getCurvePercent(frame / PathConstraintSpacingTimeline.ENTRIES - 1, 1 - (time - frameTime) / (frames[frame + PathConstraintSpacingTimeline.PREV_TIME] - frameTime)); + spacing += (frames[frame + PathConstraintSpacingTimeline.VALUE] - spacing) * percent; + } + blend == MixBlend.setup ? constraint.spacing = constraint.data.spacing + (spacing - constraint.data.spacing) * alpha : constraint.spacing += (spacing - constraint.spacing) * alpha; + }; + return PathConstraintSpacingTimeline; + })(PathConstraintPositionTimeline); + spine.PathConstraintSpacingTimeline = PathConstraintSpacingTimeline; + var PathConstraintMixTimeline = (function(_super) { + __extends(PathConstraintMixTimeline, _super); + function PathConstraintMixTimeline(frameCount) { + var _this = _super.call(this, frameCount) || this; + _this.frames = spine.Utils.newFloatArray(frameCount * PathConstraintMixTimeline.ENTRIES); + return _this; + } + PathConstraintMixTimeline.prototype.getPropertyId = function() { + return (TimelineType.pathConstraintMix << 24) + this.pathConstraintIndex; + }; + PathConstraintMixTimeline.prototype.setFrame = function(frameIndex, time, rotateMix, translateMix) { + frameIndex *= PathConstraintMixTimeline.ENTRIES; + this.frames[frameIndex] = time; + this.frames[frameIndex + PathConstraintMixTimeline.ROTATE] = rotateMix; + this.frames[frameIndex + PathConstraintMixTimeline.TRANSLATE] = translateMix; + }; + PathConstraintMixTimeline.prototype.apply = function(skeleton, lastTime, time, firedEvents, alpha, blend, direction) { + var frames = this.frames; + var constraint = skeleton.pathConstraints[this.pathConstraintIndex]; + if (!constraint.active) return; + if (time < frames[0]) { + switch (blend) { + case MixBlend.setup: + constraint.rotateMix = constraint.data.rotateMix; + constraint.translateMix = constraint.data.translateMix; + return; + + case MixBlend.first: + constraint.rotateMix += (constraint.data.rotateMix - constraint.rotateMix) * alpha; + constraint.translateMix += (constraint.data.translateMix - constraint.translateMix) * alpha; + } + return; + } + var rotate = 0, translate = 0; + if (time >= frames[frames.length - PathConstraintMixTimeline.ENTRIES]) { + rotate = frames[frames.length + PathConstraintMixTimeline.PREV_ROTATE]; + translate = frames[frames.length + PathConstraintMixTimeline.PREV_TRANSLATE]; + } else { + var frame = Animation.binarySearch(frames, time, PathConstraintMixTimeline.ENTRIES); + rotate = frames[frame + PathConstraintMixTimeline.PREV_ROTATE]; + translate = frames[frame + PathConstraintMixTimeline.PREV_TRANSLATE]; + var frameTime = frames[frame]; + var percent = this.getCurvePercent(frame / PathConstraintMixTimeline.ENTRIES - 1, 1 - (time - frameTime) / (frames[frame + PathConstraintMixTimeline.PREV_TIME] - frameTime)); + rotate += (frames[frame + PathConstraintMixTimeline.ROTATE] - rotate) * percent; + translate += (frames[frame + PathConstraintMixTimeline.TRANSLATE] - translate) * percent; + } + if (blend == MixBlend.setup) { + constraint.rotateMix = constraint.data.rotateMix + (rotate - constraint.data.rotateMix) * alpha; + constraint.translateMix = constraint.data.translateMix + (translate - constraint.data.translateMix) * alpha; + } else { + constraint.rotateMix += (rotate - constraint.rotateMix) * alpha; + constraint.translateMix += (translate - constraint.translateMix) * alpha; + } + }; + PathConstraintMixTimeline.ENTRIES = 3; + PathConstraintMixTimeline.PREV_TIME = -3; + PathConstraintMixTimeline.PREV_ROTATE = -2; + PathConstraintMixTimeline.PREV_TRANSLATE = -1; + PathConstraintMixTimeline.ROTATE = 1; + PathConstraintMixTimeline.TRANSLATE = 2; + return PathConstraintMixTimeline; + })(CurveTimeline); + spine.PathConstraintMixTimeline = PathConstraintMixTimeline; + })(spine || (spine = {})); + var spine; + (function(spine) { + var AnimationState = (function() { + function AnimationState(data) { + this.tracks = new Array(); + this.timeScale = 1; + this.events = new Array(); + this.listeners = new Array(); + this.queue = new EventQueue(this); + this.propertyIDs = new spine.IntSet(); + this.animationsChanged = false; + this.trackEntryPool = new spine.Pool(function() { + return new TrackEntry(); + }); + this.data = data; + } + AnimationState.prototype.update = function(delta) { + delta *= this.timeScale; + var tracks = this.tracks; + for (var i = 0, n = tracks.length; i < n; i++) { + var current = tracks[i]; + if (null == current) continue; + current.animationLast = current.nextAnimationLast; + current.trackLast = current.nextTrackLast; + var currentDelta = delta * current.timeScale; + if (current.delay > 0) { + current.delay -= currentDelta; + if (current.delay > 0) continue; + currentDelta = -current.delay; + current.delay = 0; + } + var next = current.next; + if (null != next) { + var nextTime = current.trackLast - next.delay; + if (nextTime >= 0) { + next.delay = 0; + next.trackTime += 0 == current.timeScale ? 0 : (nextTime / current.timeScale + delta) * next.timeScale; + current.trackTime += currentDelta; + this.setCurrent(i, next, true); + while (null != next.mixingFrom) { + next.mixTime += delta; + next = next.mixingFrom; + } + continue; + } + } else if (current.trackLast >= current.trackEnd && null == current.mixingFrom) { + tracks[i] = null; + this.queue.end(current); + this.disposeNext(current); + continue; + } + if (null != current.mixingFrom && this.updateMixingFrom(current, delta)) { + var from = current.mixingFrom; + current.mixingFrom = null; + null != from && (from.mixingTo = null); + while (null != from) { + this.queue.end(from); + from = from.mixingFrom; + } + } + current.trackTime += currentDelta; + } + this.queue.drain(); + }; + AnimationState.prototype.updateMixingFrom = function(to, delta) { + var from = to.mixingFrom; + if (null == from) return true; + var finished = this.updateMixingFrom(from, delta); + from.animationLast = from.nextAnimationLast; + from.trackLast = from.nextTrackLast; + if (to.mixTime > 0 && to.mixTime >= to.mixDuration) { + if (0 == from.totalAlpha || 0 == to.mixDuration) { + to.mixingFrom = from.mixingFrom; + null != from.mixingFrom && (from.mixingFrom.mixingTo = to); + to.interruptAlpha = from.interruptAlpha; + this.queue.end(from); + } + return finished; + } + from.trackTime += delta * from.timeScale; + to.mixTime += delta; + return false; + }; + AnimationState.prototype.apply = function(skeleton) { + if (null == skeleton) throw new Error("skeleton cannot be null."); + this.animationsChanged && this._animationsChanged(); + var events = this.events; + var tracks = this.tracks; + var applied = false; + for (var i = 0, n = tracks.length; i < n; i++) { + var current = tracks[i]; + if (null == current || current.delay > 0) continue; + applied = true; + var blend = 0 == i ? spine.MixBlend.first : current.mixBlend; + var mix = current.alpha; + null != current.mixingFrom ? mix *= this.applyMixingFrom(current, skeleton, blend) : current.trackTime >= current.trackEnd && null == current.next && (mix = 0); + var animationLast = current.animationLast, animationTime = current.getAnimationTime(); + var timelineCount = current.animation.timelines.length; + var timelines = current.animation.timelines; + if (0 == i && 1 == mix || blend == spine.MixBlend.add) for (var ii = 0; ii < timelineCount; ii++) { + spine.Utils.webkit602BugfixHelper(mix, blend); + timelines[ii].apply(skeleton, animationLast, animationTime, events, mix, blend, spine.MixDirection.mixIn); + } else { + var timelineMode = current.timelineMode; + var firstFrame = 0 == current.timelinesRotation.length; + firstFrame && spine.Utils.setArraySize(current.timelinesRotation, timelineCount << 1, null); + var timelinesRotation = current.timelinesRotation; + for (var ii = 0; ii < timelineCount; ii++) { + var timeline = timelines[ii]; + var timelineBlend = (timelineMode[ii] & AnimationState.NOT_LAST - 1) == AnimationState.SUBSEQUENT ? blend : spine.MixBlend.setup; + if (timeline instanceof spine.RotateTimeline) this.applyRotateTimeline(timeline, skeleton, animationTime, mix, timelineBlend, timelinesRotation, ii << 1, firstFrame); else { + spine.Utils.webkit602BugfixHelper(mix, blend); + timeline.apply(skeleton, animationLast, animationTime, events, mix, timelineBlend, spine.MixDirection.mixIn); + } + } + } + this.queueEvents(current, animationTime); + events.length = 0; + current.nextAnimationLast = animationTime; + current.nextTrackLast = current.trackTime; + } + this.queue.drain(); + return applied; + }; + AnimationState.prototype.applyMixingFrom = function(to, skeleton, blend) { + var from = to.mixingFrom; + null != from.mixingFrom && this.applyMixingFrom(from, skeleton, blend); + var mix = 0; + if (0 == to.mixDuration) { + mix = 1; + blend == spine.MixBlend.first && (blend = spine.MixBlend.setup); + } else { + mix = to.mixTime / to.mixDuration; + mix > 1 && (mix = 1); + blend != spine.MixBlend.first && (blend = from.mixBlend); + } + var events = mix < from.eventThreshold ? this.events : null; + var attachments = mix < from.attachmentThreshold, drawOrder = mix < from.drawOrderThreshold; + var animationLast = from.animationLast, animationTime = from.getAnimationTime(); + var timelineCount = from.animation.timelines.length; + var timelines = from.animation.timelines; + var alphaHold = from.alpha * to.interruptAlpha, alphaMix = alphaHold * (1 - mix); + if (blend == spine.MixBlend.add) for (var i = 0; i < timelineCount; i++) timelines[i].apply(skeleton, animationLast, animationTime, events, alphaMix, blend, spine.MixDirection.mixOut); else { + var timelineMode = from.timelineMode; + var timelineHoldMix = from.timelineHoldMix; + var firstFrame = 0 == from.timelinesRotation.length; + firstFrame && spine.Utils.setArraySize(from.timelinesRotation, timelineCount << 1, null); + var timelinesRotation = from.timelinesRotation; + from.totalAlpha = 0; + for (var i = 0; i < timelineCount; i++) { + var timeline = timelines[i]; + var direction = spine.MixDirection.mixOut; + var timelineBlend = void 0; + var alpha = 0; + switch (timelineMode[i] & AnimationState.NOT_LAST - 1) { + case AnimationState.SUBSEQUENT: + timelineBlend = blend; + if (!attachments && timeline instanceof spine.AttachmentTimeline) { + if ((timelineMode[i] & AnimationState.NOT_LAST) == AnimationState.NOT_LAST) continue; + timelineBlend = spine.MixBlend.setup; + } + if (!drawOrder && timeline instanceof spine.DrawOrderTimeline) continue; + alpha = alphaMix; + break; + + case AnimationState.FIRST: + timelineBlend = spine.MixBlend.setup; + alpha = alphaMix; + break; + + case AnimationState.HOLD: + timelineBlend = spine.MixBlend.setup; + alpha = alphaHold; + break; + + default: + timelineBlend = spine.MixBlend.setup; + var holdMix = timelineHoldMix[i]; + alpha = alphaHold * Math.max(0, 1 - holdMix.mixTime / holdMix.mixDuration); + } + from.totalAlpha += alpha; + if (timeline instanceof spine.RotateTimeline) this.applyRotateTimeline(timeline, skeleton, animationTime, alpha, timelineBlend, timelinesRotation, i << 1, firstFrame); else { + spine.Utils.webkit602BugfixHelper(alpha, blend); + timelineBlend == spine.MixBlend.setup && (timeline instanceof spine.AttachmentTimeline ? (attachments || (timelineMode[i] & AnimationState.NOT_LAST) == AnimationState.NOT_LAST) && (direction = spine.MixDirection.mixIn) : timeline instanceof spine.DrawOrderTimeline && drawOrder && (direction = spine.MixDirection.mixIn)); + timeline.apply(skeleton, animationLast, animationTime, events, alpha, timelineBlend, direction); + } + } + } + to.mixDuration > 0 && this.queueEvents(from, animationTime); + this.events.length = 0; + from.nextAnimationLast = animationTime; + from.nextTrackLast = from.trackTime; + return mix; + }; + AnimationState.prototype.applyRotateTimeline = function(timeline, skeleton, time, alpha, blend, timelinesRotation, i, firstFrame) { + firstFrame && (timelinesRotation[i] = 0); + if (1 == alpha) { + timeline.apply(skeleton, 0, time, null, 1, blend, spine.MixDirection.mixIn); + return; + } + var rotateTimeline = timeline; + var frames = rotateTimeline.frames; + var bone = skeleton.bones[rotateTimeline.boneIndex]; + if (!bone.active) return; + var r1 = 0, r2 = 0; + if (time < frames[0]) switch (blend) { + case spine.MixBlend.setup: + bone.rotation = bone.data.rotation; + + default: + return; + + case spine.MixBlend.first: + r1 = bone.rotation; + r2 = bone.data.rotation; + } else { + r1 = blend == spine.MixBlend.setup ? bone.data.rotation : bone.rotation; + if (time >= frames[frames.length - spine.RotateTimeline.ENTRIES]) r2 = bone.data.rotation + frames[frames.length + spine.RotateTimeline.PREV_ROTATION]; else { + var frame = spine.Animation.binarySearch(frames, time, spine.RotateTimeline.ENTRIES); + var prevRotation = frames[frame + spine.RotateTimeline.PREV_ROTATION]; + var frameTime = frames[frame]; + var percent = rotateTimeline.getCurvePercent((frame >> 1) - 1, 1 - (time - frameTime) / (frames[frame + spine.RotateTimeline.PREV_TIME] - frameTime)); + r2 = frames[frame + spine.RotateTimeline.ROTATION] - prevRotation; + r2 -= 360 * (16384 - (16384.499999999996 - r2 / 360 | 0)); + r2 = prevRotation + r2 * percent + bone.data.rotation; + r2 -= 360 * (16384 - (16384.499999999996 - r2 / 360 | 0)); + } + } + var total = 0, diff = r2 - r1; + diff -= 360 * (16384 - (16384.499999999996 - diff / 360 | 0)); + if (0 == diff) total = timelinesRotation[i]; else { + var lastTotal = 0, lastDiff = 0; + if (firstFrame) { + lastTotal = 0; + lastDiff = diff; + } else { + lastTotal = timelinesRotation[i]; + lastDiff = timelinesRotation[i + 1]; + } + var current = diff > 0, dir = lastTotal >= 0; + if (spine.MathUtils.signum(lastDiff) != spine.MathUtils.signum(diff) && Math.abs(lastDiff) <= 90) { + Math.abs(lastTotal) > 180 && (lastTotal += 360 * spine.MathUtils.signum(lastTotal)); + dir = current; + } + total = diff + lastTotal - lastTotal % 360; + dir != current && (total += 360 * spine.MathUtils.signum(lastTotal)); + timelinesRotation[i] = total; + } + timelinesRotation[i + 1] = diff; + r1 += total * alpha; + bone.rotation = r1 - 360 * (16384 - (16384.499999999996 - r1 / 360 | 0)); + }; + AnimationState.prototype.queueEvents = function(entry, animationTime) { + var animationStart = entry.animationStart, animationEnd = entry.animationEnd; + var duration = animationEnd - animationStart; + var trackLastWrapped = entry.trackLast % duration; + var events = this.events; + var i = 0, n = events.length; + for (;i < n; i++) { + var event_1 = events[i]; + if (event_1.time < trackLastWrapped) break; + if (event_1.time > animationEnd) continue; + this.queue.event(entry, event_1); + } + var complete = false; + complete = entry.loop ? 0 == duration || trackLastWrapped > entry.trackTime % duration : animationTime >= animationEnd && entry.animationLast < animationEnd; + complete && this.queue.complete(entry); + for (;i < n; i++) { + var event_2 = events[i]; + if (event_2.time < animationStart) continue; + this.queue.event(entry, events[i]); + } + }; + AnimationState.prototype.clearTracks = function() { + var oldDrainDisabled = this.queue.drainDisabled; + this.queue.drainDisabled = true; + for (var i = 0, n = this.tracks.length; i < n; i++) this.clearTrack(i); + this.tracks.length = 0; + this.queue.drainDisabled = oldDrainDisabled; + this.queue.drain(); + }; + AnimationState.prototype.clearTrack = function(trackIndex) { + if (trackIndex >= this.tracks.length) return; + var current = this.tracks[trackIndex]; + if (null == current) return; + this.queue.end(current); + this.disposeNext(current); + var entry = current; + while (true) { + var from = entry.mixingFrom; + if (null == from) break; + this.queue.end(from); + entry.mixingFrom = null; + entry.mixingTo = null; + entry = from; + } + this.tracks[current.trackIndex] = null; + this.queue.drain(); + }; + AnimationState.prototype.setCurrent = function(index, current, interrupt) { + var from = this.expandToIndex(index); + this.tracks[index] = current; + if (null != from) { + interrupt && this.queue.interrupt(from); + current.mixingFrom = from; + from.mixingTo = current; + current.mixTime = 0; + null != from.mixingFrom && from.mixDuration > 0 && (current.interruptAlpha *= Math.min(1, from.mixTime / from.mixDuration)); + from.timelinesRotation.length = 0; + } + this.queue.start(current); + }; + AnimationState.prototype.setAnimation = function(trackIndex, animationName, loop) { + var animation = this.data.skeletonData.findAnimation(animationName); + if (null == animation) throw new Error("Animation not found: " + animationName); + return this.setAnimationWith(trackIndex, animation, loop); + }; + AnimationState.prototype.setAnimationWith = function(trackIndex, animation, loop) { + if (null == animation) throw new Error("animation cannot be null."); + var interrupt = true; + var current = this.expandToIndex(trackIndex); + if (null != current) if (-1 == current.nextTrackLast) { + this.tracks[trackIndex] = current.mixingFrom; + this.queue.interrupt(current); + this.queue.end(current); + this.disposeNext(current); + current = current.mixingFrom; + interrupt = false; + } else this.disposeNext(current); + var entry = this.trackEntry(trackIndex, animation, loop, current); + this.setCurrent(trackIndex, entry, interrupt); + this.queue.drain(); + return entry; + }; + AnimationState.prototype.addAnimation = function(trackIndex, animationName, loop, delay) { + var animation = this.data.skeletonData.findAnimation(animationName); + if (null == animation) throw new Error("Animation not found: " + animationName); + return this.addAnimationWith(trackIndex, animation, loop, delay); + }; + AnimationState.prototype.addAnimationWith = function(trackIndex, animation, loop, delay) { + if (null == animation) throw new Error("animation cannot be null."); + var last = this.expandToIndex(trackIndex); + if (null != last) while (null != last.next) last = last.next; + var entry = this.trackEntry(trackIndex, animation, loop, last); + if (null == last) { + this.setCurrent(trackIndex, entry, true); + this.queue.drain(); + } else { + last.next = entry; + if (delay <= 0) { + var duration = last.animationEnd - last.animationStart; + if (0 != duration) { + last.loop ? delay += duration * (1 + (last.trackTime / duration | 0)) : delay += Math.max(duration, last.trackTime); + delay -= this.data.getMix(last.animation, animation); + } else delay = last.trackTime; + } + } + entry.delay = delay; + return entry; + }; + AnimationState.prototype.setEmptyAnimation = function(trackIndex, mixDuration) { + var entry = this.setAnimationWith(trackIndex, AnimationState.emptyAnimation, false); + entry.mixDuration = mixDuration; + entry.trackEnd = mixDuration; + return entry; + }; + AnimationState.prototype.addEmptyAnimation = function(trackIndex, mixDuration, delay) { + delay <= 0 && (delay -= mixDuration); + var entry = this.addAnimationWith(trackIndex, AnimationState.emptyAnimation, false, delay); + entry.mixDuration = mixDuration; + entry.trackEnd = mixDuration; + return entry; + }; + AnimationState.prototype.setEmptyAnimations = function(mixDuration) { + var oldDrainDisabled = this.queue.drainDisabled; + this.queue.drainDisabled = true; + for (var i = 0, n = this.tracks.length; i < n; i++) { + var current = this.tracks[i]; + null != current && this.setEmptyAnimation(current.trackIndex, mixDuration); + } + this.queue.drainDisabled = oldDrainDisabled; + this.queue.drain(); + }; + AnimationState.prototype.expandToIndex = function(index) { + if (index < this.tracks.length) return this.tracks[index]; + spine.Utils.ensureArrayCapacity(this.tracks, index + 1, null); + this.tracks.length = index + 1; + return null; + }; + AnimationState.prototype.trackEntry = function(trackIndex, animation, loop, last) { + var entry = this.trackEntryPool.obtain(); + entry.trackIndex = trackIndex; + entry.animation = animation; + entry.loop = loop; + entry.holdPrevious = false; + entry.eventThreshold = 0; + entry.attachmentThreshold = 0; + entry.drawOrderThreshold = 0; + entry.animationStart = 0; + entry.animationEnd = animation.duration; + entry.animationLast = -1; + entry.nextAnimationLast = -1; + entry.delay = 0; + entry.trackTime = 0; + entry.trackLast = -1; + entry.nextTrackLast = -1; + entry.trackEnd = Number.MAX_VALUE; + entry.timeScale = 1; + entry.alpha = 1; + entry.interruptAlpha = 1; + entry.mixTime = 0; + entry.mixDuration = null == last ? 0 : this.data.getMix(last.animation, animation); + return entry; + }; + AnimationState.prototype.disposeNext = function(entry) { + var next = entry.next; + while (null != next) { + this.queue.dispose(next); + next = next.next; + } + entry.next = null; + }; + AnimationState.prototype._animationsChanged = function() { + this.animationsChanged = false; + this.propertyIDs.clear(); + for (var i = 0, n = this.tracks.length; i < n; i++) { + var entry = this.tracks[i]; + if (null == entry) continue; + while (null != entry.mixingFrom) entry = entry.mixingFrom; + do { + null != entry.mixingFrom && entry.mixBlend == spine.MixBlend.add || this.computeHold(entry); + entry = entry.mixingTo; + } while (null != entry); + } + this.propertyIDs.clear(); + for (var i = this.tracks.length - 1; i >= 0; i--) { + var entry = this.tracks[i]; + while (null != entry) { + this.computeNotLast(entry); + entry = entry.mixingFrom; + } + } + }; + AnimationState.prototype.computeHold = function(entry) { + var to = entry.mixingTo; + var timelines = entry.animation.timelines; + var timelinesCount = entry.animation.timelines.length; + var timelineMode = spine.Utils.setArraySize(entry.timelineMode, timelinesCount); + entry.timelineHoldMix.length = 0; + var timelineDipMix = spine.Utils.setArraySize(entry.timelineHoldMix, timelinesCount); + var propertyIDs = this.propertyIDs; + if (null != to && to.holdPrevious) { + for (var i = 0; i < timelinesCount; i++) { + propertyIDs.add(timelines[i].getPropertyId()); + timelineMode[i] = AnimationState.HOLD; + } + return; + } + outer: for (var i = 0; i < timelinesCount; i++) { + var timeline = timelines[i]; + var id = timeline.getPropertyId(); + if (propertyIDs.add(id)) if (null == to || timeline instanceof spine.AttachmentTimeline || timeline instanceof spine.DrawOrderTimeline || timeline instanceof spine.EventTimeline || !to.animation.hasTimeline(id)) timelineMode[i] = AnimationState.FIRST; else { + for (var next = to.mixingTo; null != next; next = next.mixingTo) { + if (next.animation.hasTimeline(id)) continue; + if (entry.mixDuration > 0) { + timelineMode[i] = AnimationState.HOLD_MIX; + timelineDipMix[i] = next; + continue outer; + } + break; + } + timelineMode[i] = AnimationState.HOLD; + } else timelineMode[i] = AnimationState.SUBSEQUENT; + } + }; + AnimationState.prototype.computeNotLast = function(entry) { + var timelines = entry.animation.timelines; + var timelinesCount = entry.animation.timelines.length; + var timelineMode = entry.timelineMode; + var propertyIDs = this.propertyIDs; + for (var i = 0; i < timelinesCount; i++) if (timelines[i] instanceof spine.AttachmentTimeline) { + var timeline = timelines[i]; + propertyIDs.add(timeline.slotIndex) || (timelineMode[i] |= AnimationState.NOT_LAST); + } + }; + AnimationState.prototype.getCurrent = function(trackIndex) { + if (trackIndex >= this.tracks.length) return null; + return this.tracks[trackIndex]; + }; + AnimationState.prototype.addListener = function(listener) { + if (null == listener) throw new Error("listener cannot be null."); + this.listeners.push(listener); + }; + AnimationState.prototype.removeListener = function(listener) { + var index = this.listeners.indexOf(listener); + index >= 0 && this.listeners.splice(index, 1); + }; + AnimationState.prototype.clearListeners = function() { + this.listeners.length = 0; + }; + AnimationState.prototype.clearListenerNotifications = function() { + this.queue.clear(); + }; + AnimationState.emptyAnimation = new spine.Animation("", [], 0); + AnimationState.SUBSEQUENT = 0; + AnimationState.FIRST = 1; + AnimationState.HOLD = 2; + AnimationState.HOLD_MIX = 3; + AnimationState.NOT_LAST = 4; + return AnimationState; + })(); + spine.AnimationState = AnimationState; + var TrackEntry = (function() { + function TrackEntry() { + this.mixBlend = spine.MixBlend.replace; + this.timelineMode = new Array(); + this.timelineHoldMix = new Array(); + this.timelinesRotation = new Array(); + } + TrackEntry.prototype.reset = function() { + this.next = null; + this.mixingFrom = null; + this.mixingTo = null; + this.animation = null; + this.listener = null; + this.timelineMode.length = 0; + this.timelineHoldMix.length = 0; + this.timelinesRotation.length = 0; + }; + TrackEntry.prototype.getAnimationTime = function() { + if (this.loop) { + var duration = this.animationEnd - this.animationStart; + if (0 == duration) return this.animationStart; + return this.trackTime % duration + this.animationStart; + } + return Math.min(this.trackTime + this.animationStart, this.animationEnd); + }; + TrackEntry.prototype.setAnimationLast = function(animationLast) { + this.animationLast = animationLast; + this.nextAnimationLast = animationLast; + }; + TrackEntry.prototype.isComplete = function() { + return this.trackTime >= this.animationEnd - this.animationStart; + }; + TrackEntry.prototype.resetRotationDirections = function() { + this.timelinesRotation.length = 0; + }; + return TrackEntry; + })(); + spine.TrackEntry = TrackEntry; + var EventQueue = (function() { + function EventQueue(animState) { + this.objects = []; + this.drainDisabled = false; + this.animState = animState; + } + EventQueue.prototype.start = function(entry) { + this.objects.push(EventType.start); + this.objects.push(entry); + this.animState.animationsChanged = true; + }; + EventQueue.prototype.interrupt = function(entry) { + this.objects.push(EventType.interrupt); + this.objects.push(entry); + }; + EventQueue.prototype.end = function(entry) { + this.objects.push(EventType.end); + this.objects.push(entry); + this.animState.animationsChanged = true; + }; + EventQueue.prototype.dispose = function(entry) { + this.objects.push(EventType.dispose); + this.objects.push(entry); + }; + EventQueue.prototype.complete = function(entry) { + this.objects.push(EventType.complete); + this.objects.push(entry); + }; + EventQueue.prototype.event = function(entry, event) { + this.objects.push(EventType.event); + this.objects.push(entry); + this.objects.push(event); + }; + EventQueue.prototype.drain = function() { + if (this.drainDisabled) return; + this.drainDisabled = true; + var objects = this.objects; + var listeners = this.animState.listeners; + for (var i = 0; i < objects.length; i += 2) { + var type = objects[i]; + var entry = objects[i + 1]; + switch (type) { + case EventType.start: + null != entry.listener && entry.listener.start && entry.listener.start(entry); + for (var ii = 0; ii < listeners.length; ii++) listeners[ii].start && listeners[ii].start(entry); + break; + + case EventType.interrupt: + null != entry.listener && entry.listener.interrupt && entry.listener.interrupt(entry); + for (var ii = 0; ii < listeners.length; ii++) listeners[ii].interrupt && listeners[ii].interrupt(entry); + break; + + case EventType.end: + null != entry.listener && entry.listener.end && entry.listener.end(entry); + for (var ii = 0; ii < listeners.length; ii++) listeners[ii].end && listeners[ii].end(entry); + + case EventType.dispose: + null != entry.listener && entry.listener.dispose && entry.listener.dispose(entry); + for (var ii = 0; ii < listeners.length; ii++) listeners[ii].dispose && listeners[ii].dispose(entry); + this.animState.trackEntryPool.free(entry); + break; + + case EventType.complete: + null != entry.listener && entry.listener.complete && entry.listener.complete(entry); + for (var ii = 0; ii < listeners.length; ii++) listeners[ii].complete && listeners[ii].complete(entry); + break; + + case EventType.event: + var event_3 = objects[2 + i++]; + null != entry.listener && entry.listener.event && entry.listener.event(entry, event_3); + for (var ii = 0; ii < listeners.length; ii++) listeners[ii].event && listeners[ii].event(entry, event_3); + } + } + this.clear(); + this.drainDisabled = false; + }; + EventQueue.prototype.clear = function() { + this.objects.length = 0; + }; + return EventQueue; + })(); + spine.EventQueue = EventQueue; + var EventType; + (function(EventType) { + EventType[EventType["start"] = 0] = "start"; + EventType[EventType["interrupt"] = 1] = "interrupt"; + EventType[EventType["end"] = 2] = "end"; + EventType[EventType["dispose"] = 3] = "dispose"; + EventType[EventType["complete"] = 4] = "complete"; + EventType[EventType["event"] = 5] = "event"; + })(EventType = spine.EventType || (spine.EventType = {})); + var AnimationStateAdapter = (function() { + function AnimationStateAdapter() {} + AnimationStateAdapter.prototype.start = function(entry) {}; + AnimationStateAdapter.prototype.interrupt = function(entry) {}; + AnimationStateAdapter.prototype.end = function(entry) {}; + AnimationStateAdapter.prototype.dispose = function(entry) {}; + AnimationStateAdapter.prototype.complete = function(entry) {}; + AnimationStateAdapter.prototype.event = function(entry, event) {}; + return AnimationStateAdapter; + })(); + spine.AnimationStateAdapter = AnimationStateAdapter; + })(spine || (spine = {})); + var spine; + (function(spine) { + var AnimationStateData = (function() { + function AnimationStateData(skeletonData) { + this.animationToMixTime = {}; + this.defaultMix = 0; + if (null == skeletonData) throw new Error("skeletonData cannot be null."); + this.skeletonData = skeletonData; + } + AnimationStateData.prototype.setMix = function(fromName, toName, duration) { + var from = this.skeletonData.findAnimation(fromName); + if (null == from) throw new Error("Animation not found: " + fromName); + var to = this.skeletonData.findAnimation(toName); + if (null == to) throw new Error("Animation not found: " + toName); + this.setMixWith(from, to, duration); + }; + AnimationStateData.prototype.setMixWith = function(from, to, duration) { + if (null == from) throw new Error("from cannot be null."); + if (null == to) throw new Error("to cannot be null."); + var key = from.name + "." + to.name; + this.animationToMixTime[key] = duration; + }; + AnimationStateData.prototype.getMix = function(from, to) { + var key = from.name + "." + to.name; + var value = this.animationToMixTime[key]; + return void 0 === value ? this.defaultMix : value; + }; + return AnimationStateData; + })(); + spine.AnimationStateData = AnimationStateData; + })(spine || (spine = {})); + var spine; + (function(spine) { + var AssetManager = (function() { + function AssetManager(textureLoader, pathPrefix) { + void 0 === pathPrefix && (pathPrefix = ""); + this.assets = {}; + this.errors = {}; + this.toLoad = 0; + this.loaded = 0; + this.textureLoader = textureLoader; + this.pathPrefix = pathPrefix; + } + AssetManager.downloadText = function(url, success, error) { + var request = new XMLHttpRequest(); + request.open("GET", url, true); + request.onload = function() { + 200 == request.status ? success(request.responseText) : error(request.status, request.responseText); + }; + request.onerror = function() { + error(request.status, request.responseText); + }; + request.send(); + }; + AssetManager.downloadBinary = function(url, success, error) { + var request = new XMLHttpRequest(); + request.open("GET", url, true); + request.responseType = "arraybuffer"; + request.onload = function() { + 200 == request.status ? success(new Uint8Array(request.response)) : error(request.status, request.responseText); + }; + request.onerror = function() { + error(request.status, request.responseText); + }; + request.send(); + }; + AssetManager.prototype.loadBinary = function(path, success, error) { + var _this = this; + void 0 === success && (success = null); + void 0 === error && (error = null); + path = this.pathPrefix + path; + this.toLoad++; + AssetManager.downloadBinary(path, (function(data) { + _this.assets[path] = data; + success && success(path, data); + _this.toLoad--; + _this.loaded++; + }), (function(state, responseText) { + _this.errors[path] = "Couldn't load binary " + path + ": status " + status + ", " + responseText; + error && error(path, "Couldn't load binary " + path + ": status " + status + ", " + responseText); + _this.toLoad--; + _this.loaded++; + })); + }; + AssetManager.prototype.loadText = function(path, success, error) { + var _this = this; + void 0 === success && (success = null); + void 0 === error && (error = null); + path = this.pathPrefix + path; + this.toLoad++; + AssetManager.downloadText(path, (function(data) { + _this.assets[path] = data; + success && success(path, data); + _this.toLoad--; + _this.loaded++; + }), (function(state, responseText) { + _this.errors[path] = "Couldn't load text " + path + ": status " + status + ", " + responseText; + error && error(path, "Couldn't load text " + path + ": status " + status + ", " + responseText); + _this.toLoad--; + _this.loaded++; + })); + }; + AssetManager.prototype.loadTexture = function(path, success, error) { + var _this = this; + void 0 === success && (success = null); + void 0 === error && (error = null); + path = this.pathPrefix + path; + this.toLoad++; + var img = new Image(); + img.crossOrigin = "anonymous"; + img.onload = function(ev) { + var texture = _this.textureLoader(img); + _this.assets[path] = texture; + _this.toLoad--; + _this.loaded++; + success && success(path, img); + }; + img.onerror = function(ev) { + _this.errors[path] = "Couldn't load image " + path; + _this.toLoad--; + _this.loaded++; + error && error(path, "Couldn't load image " + path); + }; + img.src = path; + }; + AssetManager.prototype.loadTextureData = function(path, data, success, error) { + var _this = this; + void 0 === success && (success = null); + void 0 === error && (error = null); + path = this.pathPrefix + path; + this.toLoad++; + var img = new Image(); + img.onload = function(ev) { + var texture = _this.textureLoader(img); + _this.assets[path] = texture; + _this.toLoad--; + _this.loaded++; + success && success(path, img); + }; + img.onerror = function(ev) { + _this.errors[path] = "Couldn't load image " + path; + _this.toLoad--; + _this.loaded++; + error && error(path, "Couldn't load image " + path); + }; + img.src = data; + }; + AssetManager.prototype.loadTextureAtlas = function(path, success, error) { + var _this = this; + void 0 === success && (success = null); + void 0 === error && (error = null); + var parent = path.lastIndexOf("/") >= 0 ? path.substring(0, path.lastIndexOf("/")) : ""; + path = this.pathPrefix + path; + this.toLoad++; + AssetManager.downloadText(path, (function(atlasData) { + var pagesLoaded = { + count: 0 + }; + var atlasPages = new Array(); + try { + var atlas = new spine.TextureAtlas(atlasData, function(path) { + atlasPages.push(parent + "/" + path); + var image = document.createElement("img"); + image.width = 16; + image.height = 16; + return new spine.FakeTexture(image); + }); + } catch (e) { + var ex = e; + _this.errors[path] = "Couldn't load texture atlas " + path + ": " + ex.message; + error && error(path, "Couldn't load texture atlas " + path + ": " + ex.message); + _this.toLoad--; + _this.loaded++; + return; + } + var _loop_1 = function _loop_1(atlasPage) { + var pageLoadError = false; + _this.loadTexture(atlasPage, (function(imagePath, image) { + pagesLoaded.count++; + if (pagesLoaded.count == atlasPages.length) if (pageLoadError) { + _this.errors[path] = "Couldn't load texture atlas page " + imagePath + "} of atlas " + path; + error && error(path, "Couldn't load texture atlas page " + imagePath + " of atlas " + path); + _this.toLoad--; + _this.loaded++; + } else try { + var atlas = new spine.TextureAtlas(atlasData, function(path) { + return _this.get(parent + "/" + path); + }); + _this.assets[path] = atlas; + success && success(path, atlas); + _this.toLoad--; + _this.loaded++; + } catch (e) { + var ex = e; + _this.errors[path] = "Couldn't load texture atlas " + path + ": " + ex.message; + error && error(path, "Couldn't load texture atlas " + path + ": " + ex.message); + _this.toLoad--; + _this.loaded++; + } + }), (function(imagePath, errorMessage) { + pageLoadError = true; + pagesLoaded.count++; + if (pagesLoaded.count == atlasPages.length) { + _this.errors[path] = "Couldn't load texture atlas page " + imagePath + "} of atlas " + path; + error && error(path, "Couldn't load texture atlas page " + imagePath + " of atlas " + path); + _this.toLoad--; + _this.loaded++; + } + })); + }; + for (var _i = 0, atlasPages_1 = atlasPages; _i < atlasPages_1.length; _i++) { + var atlasPage = atlasPages_1[_i]; + _loop_1(atlasPage); + } + }), (function(state, responseText) { + _this.errors[path] = "Couldn't load texture atlas " + path + ": status " + status + ", " + responseText; + error && error(path, "Couldn't load texture atlas " + path + ": status " + status + ", " + responseText); + _this.toLoad--; + _this.loaded++; + })); + }; + AssetManager.prototype.get = function(path) { + path = this.pathPrefix + path; + return this.assets[path]; + }; + AssetManager.prototype.remove = function(path) { + path = this.pathPrefix + path; + var asset = this.assets[path]; + asset.dispose && asset.dispose(); + this.assets[path] = null; + }; + AssetManager.prototype.removeAll = function() { + for (var key in this.assets) { + var asset = this.assets[key]; + asset.dispose && asset.dispose(); + } + this.assets = {}; + }; + AssetManager.prototype.isLoadingComplete = function() { + return 0 == this.toLoad; + }; + AssetManager.prototype.getToLoad = function() { + return this.toLoad; + }; + AssetManager.prototype.getLoaded = function() { + return this.loaded; + }; + AssetManager.prototype.dispose = function() { + this.removeAll(); + }; + AssetManager.prototype.hasErrors = function() { + return Object.keys(this.errors).length > 0; + }; + AssetManager.prototype.getErrors = function() { + return this.errors; + }; + return AssetManager; + })(); + spine.AssetManager = AssetManager; + })(spine || (spine = {})); + var spine; + (function(spine) { + var AtlasAttachmentLoader = (function() { + function AtlasAttachmentLoader(atlas) { + this.atlas = atlas; + } + AtlasAttachmentLoader.prototype.newRegionAttachment = function(skin, name, path) { + var region = this.atlas.findRegion(path); + if (null == region) return null; + region.renderObject = region; + var attachment = new spine.RegionAttachment(name); + attachment.setRegion(region); + return attachment; + }; + AtlasAttachmentLoader.prototype.newMeshAttachment = function(skin, name, path) { + var region = this.atlas.findRegion(path); + if (null == region) return null; + region.renderObject = region; + var attachment = new spine.MeshAttachment(name); + attachment.region = region; + return attachment; + }; + AtlasAttachmentLoader.prototype.newBoundingBoxAttachment = function(skin, name) { + return new spine.BoundingBoxAttachment(name); + }; + AtlasAttachmentLoader.prototype.newPathAttachment = function(skin, name) { + return new spine.PathAttachment(name); + }; + AtlasAttachmentLoader.prototype.newPointAttachment = function(skin, name) { + return new spine.PointAttachment(name); + }; + AtlasAttachmentLoader.prototype.newClippingAttachment = function(skin, name) { + return new spine.ClippingAttachment(name); + }; + return AtlasAttachmentLoader; + })(); + spine.AtlasAttachmentLoader = AtlasAttachmentLoader; + })(spine || (spine = {})); + var spine; + (function(spine) { + var BlendMode; + (function(BlendMode) { + BlendMode[BlendMode["Normal"] = 0] = "Normal"; + BlendMode[BlendMode["Additive"] = 1] = "Additive"; + BlendMode[BlendMode["Multiply"] = 2] = "Multiply"; + BlendMode[BlendMode["Screen"] = 3] = "Screen"; + })(BlendMode = spine.BlendMode || (spine.BlendMode = {})); + })(spine || (spine = {})); + var spine; + (function(spine) { + var Bone = (function() { + function Bone(data, skeleton, parent) { + this.children = new Array(); + this.x = 0; + this.y = 0; + this.rotation = 0; + this.scaleX = 0; + this.scaleY = 0; + this.shearX = 0; + this.shearY = 0; + this.ax = 0; + this.ay = 0; + this.arotation = 0; + this.ascaleX = 0; + this.ascaleY = 0; + this.ashearX = 0; + this.ashearY = 0; + this.appliedValid = false; + this.a = 0; + this.b = 0; + this.c = 0; + this.d = 0; + this.worldY = 0; + this.worldX = 0; + this.sorted = false; + this.active = false; + if (null == data) throw new Error("data cannot be null."); + if (null == skeleton) throw new Error("skeleton cannot be null."); + this.data = data; + this.skeleton = skeleton; + this.parent = parent; + this.setToSetupPose(); + } + Bone.prototype.isActive = function() { + return this.active; + }; + Bone.prototype.update = function() { + this.updateWorldTransformWith(this.x, this.y, this.rotation, this.scaleX, this.scaleY, this.shearX, this.shearY); + }; + Bone.prototype.updateWorldTransform = function() { + this.updateWorldTransformWith(this.x, this.y, this.rotation, this.scaleX, this.scaleY, this.shearX, this.shearY); + }; + Bone.prototype.updateWorldTransformWith = function(x, y, rotation, scaleX, scaleY, shearX, shearY) { + this.ax = x; + this.ay = y; + this.arotation = rotation; + this.ascaleX = scaleX; + this.ascaleY = scaleY; + this.ashearX = shearX; + this.ashearY = shearY; + this.appliedValid = true; + var parent = this.parent; + if (null == parent) { + var skeleton = this.skeleton; + var rotationY = rotation + 90 + shearY; + var sx = skeleton.scaleX; + var sy = skeleton.scaleY; + this.a = spine.MathUtils.cosDeg(rotation + shearX) * scaleX * sx; + this.b = spine.MathUtils.cosDeg(rotationY) * scaleY * sx; + this.c = spine.MathUtils.sinDeg(rotation + shearX) * scaleX * sy; + this.d = spine.MathUtils.sinDeg(rotationY) * scaleY * sy; + this.worldX = x * sx + skeleton.x; + this.worldY = y * sy + skeleton.y; + return; + } + var pa = parent.a, pb = parent.b, pc = parent.c, pd = parent.d; + this.worldX = pa * x + pb * y + parent.worldX; + this.worldY = pc * x + pd * y + parent.worldY; + switch (this.data.transformMode) { + case spine.TransformMode.Normal: + var rotationY = rotation + 90 + shearY; + var la = spine.MathUtils.cosDeg(rotation + shearX) * scaleX; + var lb = spine.MathUtils.cosDeg(rotationY) * scaleY; + var lc = spine.MathUtils.sinDeg(rotation + shearX) * scaleX; + var ld = spine.MathUtils.sinDeg(rotationY) * scaleY; + this.a = pa * la + pb * lc; + this.b = pa * lb + pb * ld; + this.c = pc * la + pd * lc; + this.d = pc * lb + pd * ld; + return; + + case spine.TransformMode.OnlyTranslation: + var rotationY = rotation + 90 + shearY; + this.a = spine.MathUtils.cosDeg(rotation + shearX) * scaleX; + this.b = spine.MathUtils.cosDeg(rotationY) * scaleY; + this.c = spine.MathUtils.sinDeg(rotation + shearX) * scaleX; + this.d = spine.MathUtils.sinDeg(rotationY) * scaleY; + break; + + case spine.TransformMode.NoRotationOrReflection: + var s = pa * pa + pc * pc; + var prx = 0; + if (s > 1e-4) { + s = Math.abs(pa * pd - pb * pc) / s; + pb = pc * s; + pd = pa * s; + prx = Math.atan2(pc, pa) * spine.MathUtils.radDeg; + } else { + pa = 0; + pc = 0; + prx = 90 - Math.atan2(pd, pb) * spine.MathUtils.radDeg; + } + var rx = rotation + shearX - prx; + var ry = rotation + shearY - prx + 90; + var la = spine.MathUtils.cosDeg(rx) * scaleX; + var lb = spine.MathUtils.cosDeg(ry) * scaleY; + var lc = spine.MathUtils.sinDeg(rx) * scaleX; + var ld = spine.MathUtils.sinDeg(ry) * scaleY; + this.a = pa * la - pb * lc; + this.b = pa * lb - pb * ld; + this.c = pc * la + pd * lc; + this.d = pc * lb + pd * ld; + break; + + case spine.TransformMode.NoScale: + case spine.TransformMode.NoScaleOrReflection: + var cos = spine.MathUtils.cosDeg(rotation); + var sin = spine.MathUtils.sinDeg(rotation); + var za = (pa * cos + pb * sin) / this.skeleton.scaleX; + var zc = (pc * cos + pd * sin) / this.skeleton.scaleY; + var s = Math.sqrt(za * za + zc * zc); + s > 1e-5 && (s = 1 / s); + za *= s; + zc *= s; + s = Math.sqrt(za * za + zc * zc); + this.data.transformMode == spine.TransformMode.NoScale && pa * pd - pb * pc < 0 != (this.skeleton.scaleX < 0 != this.skeleton.scaleY < 0) && (s = -s); + var r = Math.PI / 2 + Math.atan2(zc, za); + var zb = Math.cos(r) * s; + var zd = Math.sin(r) * s; + var la = spine.MathUtils.cosDeg(shearX) * scaleX; + var lb = spine.MathUtils.cosDeg(90 + shearY) * scaleY; + var lc = spine.MathUtils.sinDeg(shearX) * scaleX; + var ld = spine.MathUtils.sinDeg(90 + shearY) * scaleY; + this.a = za * la + zb * lc; + this.b = za * lb + zb * ld; + this.c = zc * la + zd * lc; + this.d = zc * lb + zd * ld; + } + this.a *= this.skeleton.scaleX; + this.b *= this.skeleton.scaleX; + this.c *= this.skeleton.scaleY; + this.d *= this.skeleton.scaleY; + }; + Bone.prototype.setToSetupPose = function() { + var data = this.data; + this.x = data.x; + this.y = data.y; + this.rotation = data.rotation; + this.scaleX = data.scaleX; + this.scaleY = data.scaleY; + this.shearX = data.shearX; + this.shearY = data.shearY; + }; + Bone.prototype.getWorldRotationX = function() { + return Math.atan2(this.c, this.a) * spine.MathUtils.radDeg; + }; + Bone.prototype.getWorldRotationY = function() { + return Math.atan2(this.d, this.b) * spine.MathUtils.radDeg; + }; + Bone.prototype.getWorldScaleX = function() { + return Math.sqrt(this.a * this.a + this.c * this.c); + }; + Bone.prototype.getWorldScaleY = function() { + return Math.sqrt(this.b * this.b + this.d * this.d); + }; + Bone.prototype.updateAppliedTransform = function() { + this.appliedValid = true; + var parent = this.parent; + if (null == parent) { + this.ax = this.worldX; + this.ay = this.worldY; + this.arotation = Math.atan2(this.c, this.a) * spine.MathUtils.radDeg; + this.ascaleX = Math.sqrt(this.a * this.a + this.c * this.c); + this.ascaleY = Math.sqrt(this.b * this.b + this.d * this.d); + this.ashearX = 0; + this.ashearY = Math.atan2(this.a * this.b + this.c * this.d, this.a * this.d - this.b * this.c) * spine.MathUtils.radDeg; + return; + } + var pa = parent.a, pb = parent.b, pc = parent.c, pd = parent.d; + var pid = 1 / (pa * pd - pb * pc); + var dx = this.worldX - parent.worldX, dy = this.worldY - parent.worldY; + this.ax = dx * pd * pid - dy * pb * pid; + this.ay = dy * pa * pid - dx * pc * pid; + var ia = pid * pd; + var id = pid * pa; + var ib = pid * pb; + var ic = pid * pc; + var ra = ia * this.a - ib * this.c; + var rb = ia * this.b - ib * this.d; + var rc = id * this.c - ic * this.a; + var rd = id * this.d - ic * this.b; + this.ashearX = 0; + this.ascaleX = Math.sqrt(ra * ra + rc * rc); + if (this.ascaleX > 1e-4) { + var det = ra * rd - rb * rc; + this.ascaleY = det / this.ascaleX; + this.ashearY = Math.atan2(ra * rb + rc * rd, det) * spine.MathUtils.radDeg; + this.arotation = Math.atan2(rc, ra) * spine.MathUtils.radDeg; + } else { + this.ascaleX = 0; + this.ascaleY = Math.sqrt(rb * rb + rd * rd); + this.ashearY = 0; + this.arotation = 90 - Math.atan2(rd, rb) * spine.MathUtils.radDeg; + } + }; + Bone.prototype.worldToLocal = function(world) { + var a = this.a, b = this.b, c = this.c, d = this.d; + var invDet = 1 / (a * d - b * c); + var x = world.x - this.worldX, y = world.y - this.worldY; + world.x = x * d * invDet - y * b * invDet; + world.y = y * a * invDet - x * c * invDet; + return world; + }; + Bone.prototype.localToWorld = function(local) { + var x = local.x, y = local.y; + local.x = x * this.a + y * this.b + this.worldX; + local.y = x * this.c + y * this.d + this.worldY; + return local; + }; + Bone.prototype.worldToLocalRotation = function(worldRotation) { + var sin = spine.MathUtils.sinDeg(worldRotation), cos = spine.MathUtils.cosDeg(worldRotation); + return Math.atan2(this.a * sin - this.c * cos, this.d * cos - this.b * sin) * spine.MathUtils.radDeg + this.rotation - this.shearX; + }; + Bone.prototype.localToWorldRotation = function(localRotation) { + localRotation -= this.rotation - this.shearX; + var sin = spine.MathUtils.sinDeg(localRotation), cos = spine.MathUtils.cosDeg(localRotation); + return Math.atan2(cos * this.c + sin * this.d, cos * this.a + sin * this.b) * spine.MathUtils.radDeg; + }; + Bone.prototype.rotateWorld = function(degrees) { + var a = this.a, b = this.b, c = this.c, d = this.d; + var cos = spine.MathUtils.cosDeg(degrees), sin = spine.MathUtils.sinDeg(degrees); + this.a = cos * a - sin * c; + this.b = cos * b - sin * d; + this.c = sin * a + cos * c; + this.d = sin * b + cos * d; + this.appliedValid = false; + }; + return Bone; + })(); + spine.Bone = Bone; + })(spine || (spine = {})); + var spine; + (function(spine) { + var BoneData = (function() { + function BoneData(index, name, parent) { + this.x = 0; + this.y = 0; + this.rotation = 0; + this.scaleX = 1; + this.scaleY = 1; + this.shearX = 0; + this.shearY = 0; + this.transformMode = TransformMode.Normal; + this.skinRequired = false; + this.color = new spine.Color(); + if (index < 0) throw new Error("index must be >= 0."); + if (null == name) throw new Error("name cannot be null."); + this.index = index; + this.name = name; + this.parent = parent; + } + return BoneData; + })(); + spine.BoneData = BoneData; + var TransformMode; + (function(TransformMode) { + TransformMode[TransformMode["Normal"] = 0] = "Normal"; + TransformMode[TransformMode["OnlyTranslation"] = 1] = "OnlyTranslation"; + TransformMode[TransformMode["NoRotationOrReflection"] = 2] = "NoRotationOrReflection"; + TransformMode[TransformMode["NoScale"] = 3] = "NoScale"; + TransformMode[TransformMode["NoScaleOrReflection"] = 4] = "NoScaleOrReflection"; + })(TransformMode = spine.TransformMode || (spine.TransformMode = {})); + })(spine || (spine = {})); + var spine; + (function(spine) { + var ConstraintData = (function() { + function ConstraintData(name, order, skinRequired) { + this.name = name; + this.order = order; + this.skinRequired = skinRequired; + } + return ConstraintData; + })(); + spine.ConstraintData = ConstraintData; + })(spine || (spine = {})); + var spine; + (function(spine) { + var Event = (function() { + function Event(time, data) { + if (null == data) throw new Error("data cannot be null."); + this.time = time; + this.data = data; + } + return Event; + })(); + spine.Event = Event; + })(spine || (spine = {})); + var spine; + (function(spine) { + var EventData = (function() { + function EventData(name) { + this.name = name; + } + return EventData; + })(); + spine.EventData = EventData; + })(spine || (spine = {})); + var spine; + (function(spine) { + var IkConstraint = (function() { + function IkConstraint(data, skeleton) { + this.bendDirection = 0; + this.compress = false; + this.stretch = false; + this.mix = 1; + this.softness = 0; + this.active = false; + if (null == data) throw new Error("data cannot be null."); + if (null == skeleton) throw new Error("skeleton cannot be null."); + this.data = data; + this.mix = data.mix; + this.softness = data.softness; + this.bendDirection = data.bendDirection; + this.compress = data.compress; + this.stretch = data.stretch; + this.bones = new Array(); + for (var i = 0; i < data.bones.length; i++) this.bones.push(skeleton.findBone(data.bones[i].name)); + this.target = skeleton.findBone(data.target.name); + } + IkConstraint.prototype.isActive = function() { + return this.active; + }; + IkConstraint.prototype.apply = function() { + this.update(); + }; + IkConstraint.prototype.update = function() { + var target = this.target; + var bones = this.bones; + switch (bones.length) { + case 1: + this.apply1(bones[0], target.worldX, target.worldY, this.compress, this.stretch, this.data.uniform, this.mix); + break; + + case 2: + this.apply2(bones[0], bones[1], target.worldX, target.worldY, this.bendDirection, this.stretch, this.softness, this.mix); + } + }; + IkConstraint.prototype.apply1 = function(bone, targetX, targetY, compress, stretch, uniform, alpha) { + bone.appliedValid || bone.updateAppliedTransform(); + var p = bone.parent; + var id = 1 / (p.a * p.d - p.b * p.c); + var x = targetX - p.worldX, y = targetY - p.worldY; + var tx = (x * p.d - y * p.b) * id - bone.ax, ty = (y * p.a - x * p.c) * id - bone.ay; + var rotationIK = Math.atan2(ty, tx) * spine.MathUtils.radDeg - bone.ashearX - bone.arotation; + bone.ascaleX < 0 && (rotationIK += 180); + rotationIK > 180 ? rotationIK -= 360 : rotationIK < -180 && (rotationIK += 360); + var sx = bone.ascaleX, sy = bone.ascaleY; + if (compress || stretch) { + var b = bone.data.length * sx, dd = Math.sqrt(tx * tx + ty * ty); + if (compress && dd < b || stretch && dd > b && b > 1e-4) { + var s = (dd / b - 1) * alpha + 1; + sx *= s; + uniform && (sy *= s); + } + } + bone.updateWorldTransformWith(bone.ax, bone.ay, bone.arotation + rotationIK * alpha, sx, sy, bone.ashearX, bone.ashearY); + }; + IkConstraint.prototype.apply2 = function(parent, child, targetX, targetY, bendDir, stretch, softness, alpha) { + if (0 == alpha) { + child.updateWorldTransform(); + return; + } + parent.appliedValid || parent.updateAppliedTransform(); + child.appliedValid || child.updateAppliedTransform(); + var px = parent.ax, py = parent.ay, psx = parent.ascaleX, sx = psx, psy = parent.ascaleY, csx = child.ascaleX; + var os1 = 0, os2 = 0, s2 = 0; + if (psx < 0) { + psx = -psx; + os1 = 180; + s2 = -1; + } else { + os1 = 0; + s2 = 1; + } + if (psy < 0) { + psy = -psy; + s2 = -s2; + } + if (csx < 0) { + csx = -csx; + os2 = 180; + } else os2 = 0; + var cx = child.ax, cy = 0, cwx = 0, cwy = 0, a = parent.a, b = parent.b, c = parent.c, d = parent.d; + var u = Math.abs(psx - psy) <= 1e-4; + if (u) { + cy = child.ay; + cwx = a * cx + b * cy + parent.worldX; + cwy = c * cx + d * cy + parent.worldY; + } else { + cy = 0; + cwx = a * cx + parent.worldX; + cwy = c * cx + parent.worldY; + } + var pp = parent.parent; + a = pp.a; + b = pp.b; + c = pp.c; + d = pp.d; + var id = 1 / (a * d - b * c), x = cwx - pp.worldX, y = cwy - pp.worldY; + var dx = (x * d - y * b) * id - px, dy = (y * a - x * c) * id - py; + var l1 = Math.sqrt(dx * dx + dy * dy), l2 = child.data.length * csx, a1, a2; + if (l1 < 1e-4) { + this.apply1(parent, targetX, targetY, false, stretch, false, alpha); + child.updateWorldTransformWith(cx, cy, 0, child.ascaleX, child.ascaleY, child.ashearX, child.ashearY); + return; + } + x = targetX - pp.worldX; + y = targetY - pp.worldY; + var tx = (x * d - y * b) * id - px, ty = (y * a - x * c) * id - py; + var dd = tx * tx + ty * ty; + if (0 != softness) { + softness *= psx * (csx + 1) / 2; + var td = Math.sqrt(dd), sd = td - l1 - l2 * psx + softness; + if (sd > 0) { + var p = Math.min(1, sd / (2 * softness)) - 1; + p = (sd - softness * (1 - p * p)) / td; + tx -= p * tx; + ty -= p * ty; + dd = tx * tx + ty * ty; + } + } + outer: if (u) { + l2 *= psx; + var cos = (dd - l1 * l1 - l2 * l2) / (2 * l1 * l2); + if (cos < -1) cos = -1; else if (cos > 1) { + cos = 1; + stretch && (sx *= (Math.sqrt(dd) / (l1 + l2) - 1) * alpha + 1); + } + a2 = Math.acos(cos) * bendDir; + a = l1 + l2 * cos; + b = l2 * Math.sin(a2); + a1 = Math.atan2(ty * a - tx * b, tx * a + ty * b); + } else { + a = psx * l2; + b = psy * l2; + var aa = a * a, bb = b * b, ta = Math.atan2(ty, tx); + c = bb * l1 * l1 + aa * dd - aa * bb; + var c1 = -2 * bb * l1, c2 = bb - aa; + d = c1 * c1 - 4 * c2 * c; + if (d >= 0) { + var q = Math.sqrt(d); + c1 < 0 && (q = -q); + q = -(c1 + q) / 2; + var r0 = q / c2, r1 = c / q; + var r = Math.abs(r0) < Math.abs(r1) ? r0 : r1; + if (r * r <= dd) { + y = Math.sqrt(dd - r * r) * bendDir; + a1 = ta - Math.atan2(y, r); + a2 = Math.atan2(y / psy, (r - l1) / psx); + break outer; + } + } + var minAngle = spine.MathUtils.PI, minX = l1 - a, minDist = minX * minX, minY = 0; + var maxAngle = 0, maxX = l1 + a, maxDist = maxX * maxX, maxY = 0; + c = -a * l1 / (aa - bb); + if (c >= -1 && c <= 1) { + c = Math.acos(c); + x = a * Math.cos(c) + l1; + y = b * Math.sin(c); + d = x * x + y * y; + if (d < minDist) { + minAngle = c; + minDist = d; + minX = x; + minY = y; + } + if (d > maxDist) { + maxAngle = c; + maxDist = d; + maxX = x; + maxY = y; + } + } + if (dd <= (minDist + maxDist) / 2) { + a1 = ta - Math.atan2(minY * bendDir, minX); + a2 = minAngle * bendDir; + } else { + a1 = ta - Math.atan2(maxY * bendDir, maxX); + a2 = maxAngle * bendDir; + } + } + var os = Math.atan2(cy, cx) * s2; + var rotation = parent.arotation; + a1 = (a1 - os) * spine.MathUtils.radDeg + os1 - rotation; + a1 > 180 ? a1 -= 360 : a1 < -180 && (a1 += 360); + parent.updateWorldTransformWith(px, py, rotation + a1 * alpha, sx, parent.ascaleY, 0, 0); + rotation = child.arotation; + a2 = ((a2 + os) * spine.MathUtils.radDeg - child.ashearX) * s2 + os2 - rotation; + a2 > 180 ? a2 -= 360 : a2 < -180 && (a2 += 360); + child.updateWorldTransformWith(cx, cy, rotation + a2 * alpha, child.ascaleX, child.ascaleY, child.ashearX, child.ashearY); + }; + return IkConstraint; + })(); + spine.IkConstraint = IkConstraint; + })(spine || (spine = {})); + var spine; + (function(spine) { + var IkConstraintData = (function(_super) { + __extends(IkConstraintData, _super); + function IkConstraintData(name) { + var _this = _super.call(this, name, 0, false) || this; + _this.bones = new Array(); + _this.bendDirection = 1; + _this.compress = false; + _this.stretch = false; + _this.uniform = false; + _this.mix = 1; + _this.softness = 0; + return _this; + } + return IkConstraintData; + })(spine.ConstraintData); + spine.IkConstraintData = IkConstraintData; + })(spine || (spine = {})); + var spine; + (function(spine) { + var PathConstraint = (function() { + function PathConstraint(data, skeleton) { + this.position = 0; + this.spacing = 0; + this.rotateMix = 0; + this.translateMix = 0; + this.spaces = new Array(); + this.positions = new Array(); + this.world = new Array(); + this.curves = new Array(); + this.lengths = new Array(); + this.segments = new Array(); + this.active = false; + if (null == data) throw new Error("data cannot be null."); + if (null == skeleton) throw new Error("skeleton cannot be null."); + this.data = data; + this.bones = new Array(); + for (var i = 0, n = data.bones.length; i < n; i++) this.bones.push(skeleton.findBone(data.bones[i].name)); + this.target = skeleton.findSlot(data.target.name); + this.position = data.position; + this.spacing = data.spacing; + this.rotateMix = data.rotateMix; + this.translateMix = data.translateMix; + } + PathConstraint.prototype.isActive = function() { + return this.active; + }; + PathConstraint.prototype.apply = function() { + this.update(); + }; + PathConstraint.prototype.update = function() { + var attachment = this.target.getAttachment(); + if (!(attachment instanceof spine.PathAttachment)) return; + var rotateMix = this.rotateMix, translateMix = this.translateMix; + var translate = translateMix > 0, rotate = rotateMix > 0; + if (!translate && !rotate) return; + var data = this.data; + var percentSpacing = data.spacingMode == spine.SpacingMode.Percent; + var rotateMode = data.rotateMode; + var tangents = rotateMode == spine.RotateMode.Tangent, scale = rotateMode == spine.RotateMode.ChainScale; + var boneCount = this.bones.length, spacesCount = tangents ? boneCount : boneCount + 1; + var bones = this.bones; + var spaces = spine.Utils.setArraySize(this.spaces, spacesCount), lengths = null; + var spacing = this.spacing; + if (scale || !percentSpacing) { + scale && (lengths = spine.Utils.setArraySize(this.lengths, boneCount)); + var lengthSpacing = data.spacingMode == spine.SpacingMode.Length; + for (var i = 0, n = spacesCount - 1; i < n; ) { + var bone = bones[i]; + var setupLength = bone.data.length; + if (setupLength < PathConstraint.epsilon) { + scale && (lengths[i] = 0); + spaces[++i] = 0; + } else if (percentSpacing) { + if (scale) { + var x = setupLength * bone.a, y = setupLength * bone.c; + var length_1 = Math.sqrt(x * x + y * y); + lengths[i] = length_1; + } + spaces[++i] = spacing; + } else { + var x = setupLength * bone.a, y = setupLength * bone.c; + var length_2 = Math.sqrt(x * x + y * y); + scale && (lengths[i] = length_2); + spaces[++i] = (lengthSpacing ? setupLength + spacing : spacing) * length_2 / setupLength; + } + } + } else for (var i = 1; i < spacesCount; i++) spaces[i] = spacing; + var positions = this.computeWorldPositions(attachment, spacesCount, tangents, data.positionMode == spine.PositionMode.Percent, percentSpacing); + var boneX = positions[0], boneY = positions[1], offsetRotation = data.offsetRotation; + var tip = false; + if (0 == offsetRotation) tip = rotateMode == spine.RotateMode.Chain; else { + tip = false; + var p = this.target.bone; + offsetRotation *= p.a * p.d - p.b * p.c > 0 ? spine.MathUtils.degRad : -spine.MathUtils.degRad; + } + for (var i = 0, p = 3; i < boneCount; i++, p += 3) { + var bone = bones[i]; + bone.worldX += (boneX - bone.worldX) * translateMix; + bone.worldY += (boneY - bone.worldY) * translateMix; + var x = positions[p], y = positions[p + 1], dx = x - boneX, dy = y - boneY; + if (scale) { + var length_3 = lengths[i]; + if (0 != length_3) { + var s = (Math.sqrt(dx * dx + dy * dy) / length_3 - 1) * rotateMix + 1; + bone.a *= s; + bone.c *= s; + } + } + boneX = x; + boneY = y; + if (rotate) { + var a = bone.a, b = bone.b, c = bone.c, d = bone.d, r = 0, cos = 0, sin = 0; + r = tangents ? positions[p - 1] : 0 == spaces[i + 1] ? positions[p + 2] : Math.atan2(dy, dx); + r -= Math.atan2(c, a); + if (tip) { + cos = Math.cos(r); + sin = Math.sin(r); + var length_4 = bone.data.length; + boneX += (length_4 * (cos * a - sin * c) - dx) * rotateMix; + boneY += (length_4 * (sin * a + cos * c) - dy) * rotateMix; + } else r += offsetRotation; + r > spine.MathUtils.PI ? r -= spine.MathUtils.PI2 : r < -spine.MathUtils.PI && (r += spine.MathUtils.PI2); + r *= rotateMix; + cos = Math.cos(r); + sin = Math.sin(r); + bone.a = cos * a - sin * c; + bone.b = cos * b - sin * d; + bone.c = sin * a + cos * c; + bone.d = sin * b + cos * d; + } + bone.appliedValid = false; + } + }; + PathConstraint.prototype.computeWorldPositions = function(path, spacesCount, tangents, percentPosition, percentSpacing) { + var target = this.target; + var position = this.position; + var spaces = this.spaces, out = spine.Utils.setArraySize(this.positions, 3 * spacesCount + 2), world = null; + var closed = path.closed; + var verticesLength = path.worldVerticesLength, curveCount = verticesLength / 6, prevCurve = PathConstraint.NONE; + if (!path.constantSpeed) { + var lengths = path.lengths; + curveCount -= closed ? 1 : 2; + var pathLength_1 = lengths[curveCount]; + percentPosition && (position *= pathLength_1); + if (percentSpacing) for (var i = 1; i < spacesCount; i++) spaces[i] *= pathLength_1; + world = spine.Utils.setArraySize(this.world, 8); + for (var i = 0, o = 0, curve = 0; i < spacesCount; i++, o += 3) { + var space = spaces[i]; + position += space; + var p = position; + if (closed) { + p %= pathLength_1; + p < 0 && (p += pathLength_1); + curve = 0; + } else { + if (p < 0) { + if (prevCurve != PathConstraint.BEFORE) { + prevCurve = PathConstraint.BEFORE; + path.computeWorldVertices(target, 2, 4, world, 0, 2); + } + this.addBeforePosition(p, world, 0, out, o); + continue; + } + if (p > pathLength_1) { + if (prevCurve != PathConstraint.AFTER) { + prevCurve = PathConstraint.AFTER; + path.computeWorldVertices(target, verticesLength - 6, 4, world, 0, 2); + } + this.addAfterPosition(p - pathLength_1, world, 0, out, o); + continue; + } + } + for (;;curve++) { + var length_5 = lengths[curve]; + if (p > length_5) continue; + if (0 == curve) p /= length_5; else { + var prev = lengths[curve - 1]; + p = (p - prev) / (length_5 - prev); + } + break; + } + if (curve != prevCurve) { + prevCurve = curve; + if (closed && curve == curveCount) { + path.computeWorldVertices(target, verticesLength - 4, 4, world, 0, 2); + path.computeWorldVertices(target, 0, 4, world, 4, 2); + } else path.computeWorldVertices(target, 6 * curve + 2, 8, world, 0, 2); + } + this.addCurvePosition(p, world[0], world[1], world[2], world[3], world[4], world[5], world[6], world[7], out, o, tangents || i > 0 && 0 == space); + } + return out; + } + if (closed) { + verticesLength += 2; + world = spine.Utils.setArraySize(this.world, verticesLength); + path.computeWorldVertices(target, 2, verticesLength - 4, world, 0, 2); + path.computeWorldVertices(target, 0, 2, world, verticesLength - 4, 2); + world[verticesLength - 2] = world[0]; + world[verticesLength - 1] = world[1]; + } else { + curveCount--; + verticesLength -= 4; + world = spine.Utils.setArraySize(this.world, verticesLength); + path.computeWorldVertices(target, 2, verticesLength, world, 0, 2); + } + var curves = spine.Utils.setArraySize(this.curves, curveCount); + var pathLength = 0; + var x1 = world[0], y1 = world[1], cx1 = 0, cy1 = 0, cx2 = 0, cy2 = 0, x2 = 0, y2 = 0; + var tmpx = 0, tmpy = 0, dddfx = 0, dddfy = 0, ddfx = 0, ddfy = 0, dfx = 0, dfy = 0; + for (var i = 0, w = 2; i < curveCount; i++, w += 6) { + cx1 = world[w]; + cy1 = world[w + 1]; + cx2 = world[w + 2]; + cy2 = world[w + 3]; + x2 = world[w + 4]; + y2 = world[w + 5]; + tmpx = .1875 * (x1 - 2 * cx1 + cx2); + tmpy = .1875 * (y1 - 2 * cy1 + cy2); + dddfx = .09375 * (3 * (cx1 - cx2) - x1 + x2); + dddfy = .09375 * (3 * (cy1 - cy2) - y1 + y2); + ddfx = 2 * tmpx + dddfx; + ddfy = 2 * tmpy + dddfy; + dfx = .75 * (cx1 - x1) + tmpx + .16666667 * dddfx; + dfy = .75 * (cy1 - y1) + tmpy + .16666667 * dddfy; + pathLength += Math.sqrt(dfx * dfx + dfy * dfy); + dfx += ddfx; + dfy += ddfy; + ddfx += dddfx; + ddfy += dddfy; + pathLength += Math.sqrt(dfx * dfx + dfy * dfy); + dfx += ddfx; + dfy += ddfy; + pathLength += Math.sqrt(dfx * dfx + dfy * dfy); + dfx += ddfx + dddfx; + dfy += ddfy + dddfy; + pathLength += Math.sqrt(dfx * dfx + dfy * dfy); + curves[i] = pathLength; + x1 = x2; + y1 = y2; + } + position *= percentPosition ? pathLength : pathLength / path.lengths[curveCount - 1]; + if (percentSpacing) for (var i = 1; i < spacesCount; i++) spaces[i] *= pathLength; + var segments = this.segments; + var curveLength = 0; + for (var i = 0, o = 0, curve = 0, segment = 0; i < spacesCount; i++, o += 3) { + var space = spaces[i]; + position += space; + var p = position; + if (closed) { + p %= pathLength; + p < 0 && (p += pathLength); + curve = 0; + } else { + if (p < 0) { + this.addBeforePosition(p, world, 0, out, o); + continue; + } + if (p > pathLength) { + this.addAfterPosition(p - pathLength, world, verticesLength - 4, out, o); + continue; + } + } + for (;;curve++) { + var length_6 = curves[curve]; + if (p > length_6) continue; + if (0 == curve) p /= length_6; else { + var prev = curves[curve - 1]; + p = (p - prev) / (length_6 - prev); + } + break; + } + if (curve != prevCurve) { + prevCurve = curve; + var ii = 6 * curve; + x1 = world[ii]; + y1 = world[ii + 1]; + cx1 = world[ii + 2]; + cy1 = world[ii + 3]; + cx2 = world[ii + 4]; + cy2 = world[ii + 5]; + x2 = world[ii + 6]; + y2 = world[ii + 7]; + tmpx = .03 * (x1 - 2 * cx1 + cx2); + tmpy = .03 * (y1 - 2 * cy1 + cy2); + dddfx = .006 * (3 * (cx1 - cx2) - x1 + x2); + dddfy = .006 * (3 * (cy1 - cy2) - y1 + y2); + ddfx = 2 * tmpx + dddfx; + ddfy = 2 * tmpy + dddfy; + dfx = .3 * (cx1 - x1) + tmpx + .16666667 * dddfx; + dfy = .3 * (cy1 - y1) + tmpy + .16666667 * dddfy; + curveLength = Math.sqrt(dfx * dfx + dfy * dfy); + segments[0] = curveLength; + for (ii = 1; ii < 8; ii++) { + dfx += ddfx; + dfy += ddfy; + ddfx += dddfx; + ddfy += dddfy; + curveLength += Math.sqrt(dfx * dfx + dfy * dfy); + segments[ii] = curveLength; + } + dfx += ddfx; + dfy += ddfy; + curveLength += Math.sqrt(dfx * dfx + dfy * dfy); + segments[8] = curveLength; + dfx += ddfx + dddfx; + dfy += ddfy + dddfy; + curveLength += Math.sqrt(dfx * dfx + dfy * dfy); + segments[9] = curveLength; + segment = 0; + } + p *= curveLength; + for (;;segment++) { + var length_7 = segments[segment]; + if (p > length_7) continue; + if (0 == segment) p /= length_7; else { + var prev = segments[segment - 1]; + p = segment + (p - prev) / (length_7 - prev); + } + break; + } + this.addCurvePosition(.1 * p, x1, y1, cx1, cy1, cx2, cy2, x2, y2, out, o, tangents || i > 0 && 0 == space); + } + return out; + }; + PathConstraint.prototype.addBeforePosition = function(p, temp, i, out, o) { + var x1 = temp[i], y1 = temp[i + 1], dx = temp[i + 2] - x1, dy = temp[i + 3] - y1, r = Math.atan2(dy, dx); + out[o] = x1 + p * Math.cos(r); + out[o + 1] = y1 + p * Math.sin(r); + out[o + 2] = r; + }; + PathConstraint.prototype.addAfterPosition = function(p, temp, i, out, o) { + var x1 = temp[i + 2], y1 = temp[i + 3], dx = x1 - temp[i], dy = y1 - temp[i + 1], r = Math.atan2(dy, dx); + out[o] = x1 + p * Math.cos(r); + out[o + 1] = y1 + p * Math.sin(r); + out[o + 2] = r; + }; + PathConstraint.prototype.addCurvePosition = function(p, x1, y1, cx1, cy1, cx2, cy2, x2, y2, out, o, tangents) { + if (0 == p || isNaN(p)) { + out[o] = x1; + out[o + 1] = y1; + out[o + 2] = Math.atan2(cy1 - y1, cx1 - x1); + return; + } + var tt = p * p, ttt = tt * p, u = 1 - p, uu = u * u, uuu = uu * u; + var ut = u * p, ut3 = 3 * ut, uut3 = u * ut3, utt3 = ut3 * p; + var x = x1 * uuu + cx1 * uut3 + cx2 * utt3 + x2 * ttt, y = y1 * uuu + cy1 * uut3 + cy2 * utt3 + y2 * ttt; + out[o] = x; + out[o + 1] = y; + tangents && (out[o + 2] = p < .001 ? Math.atan2(cy1 - y1, cx1 - x1) : Math.atan2(y - (y1 * uu + cy1 * ut * 2 + cy2 * tt), x - (x1 * uu + cx1 * ut * 2 + cx2 * tt))); + }; + PathConstraint.NONE = -1; + PathConstraint.BEFORE = -2; + PathConstraint.AFTER = -3; + PathConstraint.epsilon = 1e-5; + return PathConstraint; + })(); + spine.PathConstraint = PathConstraint; + })(spine || (spine = {})); + var spine; + (function(spine) { + var PathConstraintData = (function(_super) { + __extends(PathConstraintData, _super); + function PathConstraintData(name) { + var _this = _super.call(this, name, 0, false) || this; + _this.bones = new Array(); + return _this; + } + return PathConstraintData; + })(spine.ConstraintData); + spine.PathConstraintData = PathConstraintData; + var PositionMode; + (function(PositionMode) { + PositionMode[PositionMode["Fixed"] = 0] = "Fixed"; + PositionMode[PositionMode["Percent"] = 1] = "Percent"; + })(PositionMode = spine.PositionMode || (spine.PositionMode = {})); + var SpacingMode; + (function(SpacingMode) { + SpacingMode[SpacingMode["Length"] = 0] = "Length"; + SpacingMode[SpacingMode["Fixed"] = 1] = "Fixed"; + SpacingMode[SpacingMode["Percent"] = 2] = "Percent"; + })(SpacingMode = spine.SpacingMode || (spine.SpacingMode = {})); + var RotateMode; + (function(RotateMode) { + RotateMode[RotateMode["Tangent"] = 0] = "Tangent"; + RotateMode[RotateMode["Chain"] = 1] = "Chain"; + RotateMode[RotateMode["ChainScale"] = 2] = "ChainScale"; + })(RotateMode = spine.RotateMode || (spine.RotateMode = {})); + })(spine || (spine = {})); + var spine; + (function(spine) { + var Assets = (function() { + function Assets(clientId) { + this.toLoad = new Array(); + this.assets = {}; + this.clientId = clientId; + } + Assets.prototype.loaded = function() { + var i = 0; + for (var v in this.assets) i++; + return i; + }; + return Assets; + })(); + var SharedAssetManager = (function() { + function SharedAssetManager(pathPrefix) { + void 0 === pathPrefix && (pathPrefix = ""); + this.clientAssets = {}; + this.queuedAssets = {}; + this.rawAssets = {}; + this.errors = {}; + this.pathPrefix = pathPrefix; + } + SharedAssetManager.prototype.queueAsset = function(clientId, textureLoader, path) { + var clientAssets = this.clientAssets[clientId]; + if (null === clientAssets || void 0 === clientAssets) { + clientAssets = new Assets(clientId); + this.clientAssets[clientId] = clientAssets; + } + null !== textureLoader && (clientAssets.textureLoader = textureLoader); + clientAssets.toLoad.push(path); + if (this.queuedAssets[path] === path) return false; + this.queuedAssets[path] = path; + return true; + }; + SharedAssetManager.prototype.loadText = function(clientId, path) { + var _this = this; + path = this.pathPrefix + path; + if (!this.queueAsset(clientId, null, path)) return; + var request = new XMLHttpRequest(); + request.onreadystatechange = function() { + request.readyState == XMLHttpRequest.DONE && (request.status >= 200 && request.status < 300 ? _this.rawAssets[path] = request.responseText : _this.errors[path] = "Couldn't load text " + path + ": status " + request.status + ", " + request.responseText); + }; + request.open("GET", path, true); + request.send(); + }; + SharedAssetManager.prototype.loadJson = function(clientId, path) { + var _this = this; + path = this.pathPrefix + path; + if (!this.queueAsset(clientId, null, path)) return; + var request = new XMLHttpRequest(); + request.onreadystatechange = function() { + request.readyState == XMLHttpRequest.DONE && (request.status >= 200 && request.status < 300 ? _this.rawAssets[path] = JSON.parse(request.responseText) : _this.errors[path] = "Couldn't load text " + path + ": status " + request.status + ", " + request.responseText); + }; + request.open("GET", path, true); + request.send(); + }; + SharedAssetManager.prototype.loadTexture = function(clientId, textureLoader, path) { + var _this = this; + path = this.pathPrefix + path; + if (!this.queueAsset(clientId, textureLoader, path)) return; + var img = new Image(); + img.src = path; + img.crossOrigin = "anonymous"; + img.onload = function(ev) { + _this.rawAssets[path] = img; + }; + img.onerror = function(ev) { + _this.errors[path] = "Couldn't load image " + path; + }; + }; + SharedAssetManager.prototype.get = function(clientId, path) { + path = this.pathPrefix + path; + var clientAssets = this.clientAssets[clientId]; + if (null === clientAssets || void 0 === clientAssets) return true; + return clientAssets.assets[path]; + }; + SharedAssetManager.prototype.updateClientAssets = function(clientAssets) { + for (var i = 0; i < clientAssets.toLoad.length; i++) { + var path = clientAssets.toLoad[i]; + var asset = clientAssets.assets[path]; + if (null === asset || void 0 === asset) { + var rawAsset = this.rawAssets[path]; + if (null === rawAsset || void 0 === rawAsset) continue; + rawAsset instanceof HTMLImageElement ? clientAssets.assets[path] = clientAssets.textureLoader(rawAsset) : clientAssets.assets[path] = rawAsset; + } + } + }; + SharedAssetManager.prototype.isLoadingComplete = function(clientId) { + var clientAssets = this.clientAssets[clientId]; + if (null === clientAssets || void 0 === clientAssets) return true; + this.updateClientAssets(clientAssets); + return clientAssets.toLoad.length == clientAssets.loaded(); + }; + SharedAssetManager.prototype.dispose = function() {}; + SharedAssetManager.prototype.hasErrors = function() { + return Object.keys(this.errors).length > 0; + }; + SharedAssetManager.prototype.getErrors = function() { + return this.errors; + }; + return SharedAssetManager; + })(); + spine.SharedAssetManager = SharedAssetManager; + })(spine || (spine = {})); + var spine; + (function(spine) { + var Skeleton = (function() { + function Skeleton(data) { + this._updateCache = new Array(); + this.updateCacheReset = new Array(); + this.time = 0; + this.scaleX = 1; + this.scaleY = 1; + this.x = 0; + this.y = 0; + if (null == data) throw new Error("data cannot be null."); + this.data = data; + this.bones = new Array(); + for (var i = 0; i < data.bones.length; i++) { + var boneData = data.bones[i]; + var bone = void 0; + if (null == boneData.parent) bone = new spine.Bone(boneData, this, null); else { + var parent_1 = this.bones[boneData.parent.index]; + bone = new spine.Bone(boneData, this, parent_1); + parent_1.children.push(bone); + } + this.bones.push(bone); + } + this.slots = new Array(); + this.drawOrder = new Array(); + for (var i = 0; i < data.slots.length; i++) { + var slotData = data.slots[i]; + var bone = this.bones[slotData.boneData.index]; + var slot = new spine.Slot(slotData, bone); + this.slots.push(slot); + this.drawOrder.push(slot); + } + this.ikConstraints = new Array(); + for (var i = 0; i < data.ikConstraints.length; i++) { + var ikConstraintData = data.ikConstraints[i]; + this.ikConstraints.push(new spine.IkConstraint(ikConstraintData, this)); + } + this.transformConstraints = new Array(); + for (var i = 0; i < data.transformConstraints.length; i++) { + var transformConstraintData = data.transformConstraints[i]; + this.transformConstraints.push(new spine.TransformConstraint(transformConstraintData, this)); + } + this.pathConstraints = new Array(); + for (var i = 0; i < data.pathConstraints.length; i++) { + var pathConstraintData = data.pathConstraints[i]; + this.pathConstraints.push(new spine.PathConstraint(pathConstraintData, this)); + } + this.color = new spine.Color(1, 1, 1, 1); + this.updateCache(); + } + Skeleton.prototype.updateCache = function() { + var updateCache = this._updateCache; + updateCache.length = 0; + this.updateCacheReset.length = 0; + var bones = this.bones; + for (var i = 0, n = bones.length; i < n; i++) { + var bone = bones[i]; + bone.sorted = bone.data.skinRequired; + bone.active = !bone.sorted; + } + if (null != this.skin) { + var skinBones = this.skin.bones; + for (var i = 0, n = this.skin.bones.length; i < n; i++) { + var bone = this.bones[skinBones[i].index]; + do { + bone.sorted = false; + bone.active = true; + bone = bone.parent; + } while (null != bone); + } + } + var ikConstraints = this.ikConstraints; + var transformConstraints = this.transformConstraints; + var pathConstraints = this.pathConstraints; + var ikCount = ikConstraints.length, transformCount = transformConstraints.length, pathCount = pathConstraints.length; + var constraintCount = ikCount + transformCount + pathCount; + outer: for (var i = 0; i < constraintCount; i++) { + for (var ii = 0; ii < ikCount; ii++) { + var constraint = ikConstraints[ii]; + if (constraint.data.order == i) { + this.sortIkConstraint(constraint); + continue outer; + } + } + for (var ii = 0; ii < transformCount; ii++) { + var constraint = transformConstraints[ii]; + if (constraint.data.order == i) { + this.sortTransformConstraint(constraint); + continue outer; + } + } + for (var ii = 0; ii < pathCount; ii++) { + var constraint = pathConstraints[ii]; + if (constraint.data.order == i) { + this.sortPathConstraint(constraint); + continue outer; + } + } + } + for (var i = 0, n = bones.length; i < n; i++) this.sortBone(bones[i]); + }; + Skeleton.prototype.sortIkConstraint = function(constraint) { + constraint.active = constraint.target.isActive() && (!constraint.data.skinRequired || null != this.skin && spine.Utils.contains(this.skin.constraints, constraint.data, true)); + if (!constraint.active) return; + var target = constraint.target; + this.sortBone(target); + var constrained = constraint.bones; + var parent = constrained[0]; + this.sortBone(parent); + if (constrained.length > 1) { + var child = constrained[constrained.length - 1]; + this._updateCache.indexOf(child) > -1 || this.updateCacheReset.push(child); + } + this._updateCache.push(constraint); + this.sortReset(parent.children); + constrained[constrained.length - 1].sorted = true; + }; + Skeleton.prototype.sortPathConstraint = function(constraint) { + constraint.active = constraint.target.bone.isActive() && (!constraint.data.skinRequired || null != this.skin && spine.Utils.contains(this.skin.constraints, constraint.data, true)); + if (!constraint.active) return; + var slot = constraint.target; + var slotIndex = slot.data.index; + var slotBone = slot.bone; + null != this.skin && this.sortPathConstraintAttachment(this.skin, slotIndex, slotBone); + null != this.data.defaultSkin && this.data.defaultSkin != this.skin && this.sortPathConstraintAttachment(this.data.defaultSkin, slotIndex, slotBone); + for (var i = 0, n = this.data.skins.length; i < n; i++) this.sortPathConstraintAttachment(this.data.skins[i], slotIndex, slotBone); + var attachment = slot.getAttachment(); + attachment instanceof spine.PathAttachment && this.sortPathConstraintAttachmentWith(attachment, slotBone); + var constrained = constraint.bones; + var boneCount = constrained.length; + for (var i = 0; i < boneCount; i++) this.sortBone(constrained[i]); + this._updateCache.push(constraint); + for (var i = 0; i < boneCount; i++) this.sortReset(constrained[i].children); + for (var i = 0; i < boneCount; i++) constrained[i].sorted = true; + }; + Skeleton.prototype.sortTransformConstraint = function(constraint) { + constraint.active = constraint.target.isActive() && (!constraint.data.skinRequired || null != this.skin && spine.Utils.contains(this.skin.constraints, constraint.data, true)); + if (!constraint.active) return; + this.sortBone(constraint.target); + var constrained = constraint.bones; + var boneCount = constrained.length; + if (constraint.data.local) for (var i = 0; i < boneCount; i++) { + var child = constrained[i]; + this.sortBone(child.parent); + this._updateCache.indexOf(child) > -1 || this.updateCacheReset.push(child); + } else for (var i = 0; i < boneCount; i++) this.sortBone(constrained[i]); + this._updateCache.push(constraint); + for (var ii = 0; ii < boneCount; ii++) this.sortReset(constrained[ii].children); + for (var ii = 0; ii < boneCount; ii++) constrained[ii].sorted = true; + }; + Skeleton.prototype.sortPathConstraintAttachment = function(skin, slotIndex, slotBone) { + var attachments = skin.attachments[slotIndex]; + if (!attachments) return; + for (var key in attachments) this.sortPathConstraintAttachmentWith(attachments[key], slotBone); + }; + Skeleton.prototype.sortPathConstraintAttachmentWith = function(attachment, slotBone) { + if (!(attachment instanceof spine.PathAttachment)) return; + var pathBones = attachment.bones; + if (null == pathBones) this.sortBone(slotBone); else { + var bones = this.bones; + var i = 0; + while (i < pathBones.length) { + var boneCount = pathBones[i++]; + for (var n = i + boneCount; i < n; i++) { + var boneIndex = pathBones[i]; + this.sortBone(bones[boneIndex]); + } + } + } + }; + Skeleton.prototype.sortBone = function(bone) { + if (bone.sorted) return; + var parent = bone.parent; + null != parent && this.sortBone(parent); + bone.sorted = true; + this._updateCache.push(bone); + }; + Skeleton.prototype.sortReset = function(bones) { + for (var i = 0, n = bones.length; i < n; i++) { + var bone = bones[i]; + if (!bone.active) continue; + bone.sorted && this.sortReset(bone.children); + bone.sorted = false; + } + }; + Skeleton.prototype.updateWorldTransform = function() { + var updateCacheReset = this.updateCacheReset; + for (var i = 0, n = updateCacheReset.length; i < n; i++) { + var bone = updateCacheReset[i]; + bone.ax = bone.x; + bone.ay = bone.y; + bone.arotation = bone.rotation; + bone.ascaleX = bone.scaleX; + bone.ascaleY = bone.scaleY; + bone.ashearX = bone.shearX; + bone.ashearY = bone.shearY; + bone.appliedValid = true; + } + var updateCache = this._updateCache; + for (var i = 0, n = updateCache.length; i < n; i++) updateCache[i].update(); + }; + Skeleton.prototype.setToSetupPose = function() { + this.setBonesToSetupPose(); + this.setSlotsToSetupPose(); + }; + Skeleton.prototype.setBonesToSetupPose = function() { + var bones = this.bones; + for (var i = 0, n = bones.length; i < n; i++) bones[i].setToSetupPose(); + var ikConstraints = this.ikConstraints; + for (var i = 0, n = ikConstraints.length; i < n; i++) { + var constraint = ikConstraints[i]; + constraint.mix = constraint.data.mix; + constraint.softness = constraint.data.softness; + constraint.bendDirection = constraint.data.bendDirection; + constraint.compress = constraint.data.compress; + constraint.stretch = constraint.data.stretch; + } + var transformConstraints = this.transformConstraints; + for (var i = 0, n = transformConstraints.length; i < n; i++) { + var constraint = transformConstraints[i]; + var data = constraint.data; + constraint.rotateMix = data.rotateMix; + constraint.translateMix = data.translateMix; + constraint.scaleMix = data.scaleMix; + constraint.shearMix = data.shearMix; + } + var pathConstraints = this.pathConstraints; + for (var i = 0, n = pathConstraints.length; i < n; i++) { + var constraint = pathConstraints[i]; + var data = constraint.data; + constraint.position = data.position; + constraint.spacing = data.spacing; + constraint.rotateMix = data.rotateMix; + constraint.translateMix = data.translateMix; + } + }; + Skeleton.prototype.setSlotsToSetupPose = function() { + var slots = this.slots; + spine.Utils.arrayCopy(slots, 0, this.drawOrder, 0, slots.length); + for (var i = 0, n = slots.length; i < n; i++) slots[i].setToSetupPose(); + }; + Skeleton.prototype.getRootBone = function() { + if (0 == this.bones.length) return null; + return this.bones[0]; + }; + Skeleton.prototype.findBone = function(boneName) { + if (null == boneName) throw new Error("boneName cannot be null."); + var bones = this.bones; + for (var i = 0, n = bones.length; i < n; i++) { + var bone = bones[i]; + if (bone.data.name == boneName) return bone; + } + return null; + }; + Skeleton.prototype.findBoneIndex = function(boneName) { + if (null == boneName) throw new Error("boneName cannot be null."); + var bones = this.bones; + for (var i = 0, n = bones.length; i < n; i++) if (bones[i].data.name == boneName) return i; + return -1; + }; + Skeleton.prototype.findSlot = function(slotName) { + if (null == slotName) throw new Error("slotName cannot be null."); + var slots = this.slots; + for (var i = 0, n = slots.length; i < n; i++) { + var slot = slots[i]; + if (slot.data.name == slotName) return slot; + } + return null; + }; + Skeleton.prototype.findSlotIndex = function(slotName) { + if (null == slotName) throw new Error("slotName cannot be null."); + var slots = this.slots; + for (var i = 0, n = slots.length; i < n; i++) if (slots[i].data.name == slotName) return i; + return -1; + }; + Skeleton.prototype.setSkinByName = function(skinName) { + var skin = this.data.findSkin(skinName); + if (null == skin) throw new Error("Skin not found: " + skinName); + this.setSkin(skin); + }; + Skeleton.prototype.setSkin = function(newSkin) { + if (newSkin == this.skin) return; + if (null != newSkin) if (null != this.skin) newSkin.attachAll(this, this.skin); else { + var slots = this.slots; + for (var i = 0, n = slots.length; i < n; i++) { + var slot = slots[i]; + var name_1 = slot.data.attachmentName; + if (null != name_1) { + var attachment = newSkin.getAttachment(i, name_1); + null != attachment && slot.setAttachment(attachment); + } + } + } + this.skin = newSkin; + this.updateCache(); + }; + Skeleton.prototype.getAttachmentByName = function(slotName, attachmentName) { + return this.getAttachment(this.data.findSlotIndex(slotName), attachmentName); + }; + Skeleton.prototype.getAttachment = function(slotIndex, attachmentName) { + if (null == attachmentName) throw new Error("attachmentName cannot be null."); + if (null != this.skin) { + var attachment = this.skin.getAttachment(slotIndex, attachmentName); + if (null != attachment) return attachment; + } + if (null != this.data.defaultSkin) return this.data.defaultSkin.getAttachment(slotIndex, attachmentName); + return null; + }; + Skeleton.prototype.setAttachment = function(slotName, attachmentName) { + if (null == slotName) throw new Error("slotName cannot be null."); + var slots = this.slots; + for (var i = 0, n = slots.length; i < n; i++) { + var slot = slots[i]; + if (slot.data.name == slotName) { + var attachment = null; + if (null != attachmentName) { + attachment = this.getAttachment(i, attachmentName); + if (null == attachment) throw new Error("Attachment not found: " + attachmentName + ", for slot: " + slotName); + } + slot.setAttachment(attachment); + return; + } + } + throw new Error("Slot not found: " + slotName); + }; + Skeleton.prototype.findIkConstraint = function(constraintName) { + if (null == constraintName) throw new Error("constraintName cannot be null."); + var ikConstraints = this.ikConstraints; + for (var i = 0, n = ikConstraints.length; i < n; i++) { + var ikConstraint = ikConstraints[i]; + if (ikConstraint.data.name == constraintName) return ikConstraint; + } + return null; + }; + Skeleton.prototype.findTransformConstraint = function(constraintName) { + if (null == constraintName) throw new Error("constraintName cannot be null."); + var transformConstraints = this.transformConstraints; + for (var i = 0, n = transformConstraints.length; i < n; i++) { + var constraint = transformConstraints[i]; + if (constraint.data.name == constraintName) return constraint; + } + return null; + }; + Skeleton.prototype.findPathConstraint = function(constraintName) { + if (null == constraintName) throw new Error("constraintName cannot be null."); + var pathConstraints = this.pathConstraints; + for (var i = 0, n = pathConstraints.length; i < n; i++) { + var constraint = pathConstraints[i]; + if (constraint.data.name == constraintName) return constraint; + } + return null; + }; + Skeleton.prototype.getBounds = function(offset, size, temp) { + void 0 === temp && (temp = new Array(2)); + if (null == offset) throw new Error("offset cannot be null."); + if (null == size) throw new Error("size cannot be null."); + var drawOrder = this.drawOrder; + var minX = Number.POSITIVE_INFINITY, minY = Number.POSITIVE_INFINITY, maxX = Number.NEGATIVE_INFINITY, maxY = Number.NEGATIVE_INFINITY; + for (var i = 0, n = drawOrder.length; i < n; i++) { + var slot = drawOrder[i]; + if (!slot.bone.active) continue; + var verticesLength = 0; + var vertices = null; + var attachment = slot.getAttachment(); + if (attachment instanceof spine.RegionAttachment) { + verticesLength = 8; + vertices = spine.Utils.setArraySize(temp, verticesLength, 0); + attachment.computeWorldVertices(slot.bone, vertices, 0, 2); + } else if (attachment instanceof spine.MeshAttachment) { + var mesh = attachment; + verticesLength = mesh.worldVerticesLength; + vertices = spine.Utils.setArraySize(temp, verticesLength, 0); + mesh.computeWorldVertices(slot, 0, verticesLength, vertices, 0, 2); + } + if (null != vertices) for (var ii = 0, nn = vertices.length; ii < nn; ii += 2) { + var x = vertices[ii], y = vertices[ii + 1]; + minX = Math.min(minX, x); + minY = Math.min(minY, y); + maxX = Math.max(maxX, x); + maxY = Math.max(maxY, y); + } + } + offset.set(minX, minY); + size.set(maxX - minX, maxY - minY); + }; + Skeleton.prototype.update = function(delta) { + this.time += delta; + }; + return Skeleton; + })(); + spine.Skeleton = Skeleton; + })(spine || (spine = {})); + var spine; + (function(spine) { + var SkeletonBinary = (function() { + function SkeletonBinary(attachmentLoader) { + this.scale = 1; + this.linkedMeshes = new Array(); + this.attachmentLoader = attachmentLoader; + } + SkeletonBinary.prototype.readSkeletonData = function(binary) { + var scale = this.scale; + var skeletonData = new spine.SkeletonData(); + skeletonData.name = ""; + var input = new BinaryInput(binary); + skeletonData.hash = input.readString(); + skeletonData.version = input.readString(); + skeletonData.x = input.readFloat(); + skeletonData.y = input.readFloat(); + skeletonData.width = input.readFloat(); + skeletonData.height = input.readFloat(); + var nonessential = input.readBoolean(); + if (nonessential) { + skeletonData.fps = input.readFloat(); + skeletonData.imagesPath = input.readString(); + skeletonData.audioPath = input.readString(); + } + var n = 0; + n = input.readInt(true); + for (var i = 0; i < n; i++) input.strings.push(input.readString()); + n = input.readInt(true); + for (var i = 0; i < n; i++) { + var name_2 = input.readString(); + var parent_2 = 0 == i ? null : skeletonData.bones[input.readInt(true)]; + var data = new spine.BoneData(i, name_2, parent_2); + data.rotation = input.readFloat(); + data.x = input.readFloat() * scale; + data.y = input.readFloat() * scale; + data.scaleX = input.readFloat(); + data.scaleY = input.readFloat(); + data.shearX = input.readFloat(); + data.shearY = input.readFloat(); + data.length = input.readFloat() * scale; + data.transformMode = SkeletonBinary.TransformModeValues[input.readInt(true)]; + data.skinRequired = input.readBoolean(); + nonessential && spine.Color.rgba8888ToColor(data.color, input.readInt32()); + skeletonData.bones.push(data); + } + n = input.readInt(true); + for (var i = 0; i < n; i++) { + var slotName = input.readString(); + var boneData = skeletonData.bones[input.readInt(true)]; + var data = new spine.SlotData(i, slotName, boneData); + spine.Color.rgba8888ToColor(data.color, input.readInt32()); + var darkColor = input.readInt32(); + -1 != darkColor && spine.Color.rgb888ToColor(data.darkColor = new spine.Color(), darkColor); + data.attachmentName = input.readStringRef(); + data.blendMode = SkeletonBinary.BlendModeValues[input.readInt(true)]; + skeletonData.slots.push(data); + } + n = input.readInt(true); + for (var i = 0, nn = void 0; i < n; i++) { + var data = new spine.IkConstraintData(input.readString()); + data.order = input.readInt(true); + data.skinRequired = input.readBoolean(); + nn = input.readInt(true); + for (var ii = 0; ii < nn; ii++) data.bones.push(skeletonData.bones[input.readInt(true)]); + data.target = skeletonData.bones[input.readInt(true)]; + data.mix = input.readFloat(); + data.softness = input.readFloat() * scale; + data.bendDirection = input.readByte(); + data.compress = input.readBoolean(); + data.stretch = input.readBoolean(); + data.uniform = input.readBoolean(); + skeletonData.ikConstraints.push(data); + } + n = input.readInt(true); + for (var i = 0, nn = void 0; i < n; i++) { + var data = new spine.TransformConstraintData(input.readString()); + data.order = input.readInt(true); + data.skinRequired = input.readBoolean(); + nn = input.readInt(true); + for (var ii = 0; ii < nn; ii++) data.bones.push(skeletonData.bones[input.readInt(true)]); + data.target = skeletonData.bones[input.readInt(true)]; + data.local = input.readBoolean(); + data.relative = input.readBoolean(); + data.offsetRotation = input.readFloat(); + data.offsetX = input.readFloat() * scale; + data.offsetY = input.readFloat() * scale; + data.offsetScaleX = input.readFloat(); + data.offsetScaleY = input.readFloat(); + data.offsetShearY = input.readFloat(); + data.rotateMix = input.readFloat(); + data.translateMix = input.readFloat(); + data.scaleMix = input.readFloat(); + data.shearMix = input.readFloat(); + skeletonData.transformConstraints.push(data); + } + n = input.readInt(true); + for (var i = 0, nn = void 0; i < n; i++) { + var data = new spine.PathConstraintData(input.readString()); + data.order = input.readInt(true); + data.skinRequired = input.readBoolean(); + nn = input.readInt(true); + for (var ii = 0; ii < nn; ii++) data.bones.push(skeletonData.bones[input.readInt(true)]); + data.target = skeletonData.slots[input.readInt(true)]; + data.positionMode = SkeletonBinary.PositionModeValues[input.readInt(true)]; + data.spacingMode = SkeletonBinary.SpacingModeValues[input.readInt(true)]; + data.rotateMode = SkeletonBinary.RotateModeValues[input.readInt(true)]; + data.offsetRotation = input.readFloat(); + data.position = input.readFloat(); + data.positionMode == spine.PositionMode.Fixed && (data.position *= scale); + data.spacing = input.readFloat(); + data.spacingMode != spine.SpacingMode.Length && data.spacingMode != spine.SpacingMode.Fixed || (data.spacing *= scale); + data.rotateMix = input.readFloat(); + data.translateMix = input.readFloat(); + skeletonData.pathConstraints.push(data); + } + var defaultSkin = this.readSkin(input, skeletonData, true, nonessential); + if (null != defaultSkin) { + skeletonData.defaultSkin = defaultSkin; + skeletonData.skins.push(defaultSkin); + } + var i = skeletonData.skins.length; + spine.Utils.setArraySize(skeletonData.skins, n = i + input.readInt(true)); + for (;i < n; i++) skeletonData.skins[i] = this.readSkin(input, skeletonData, false, nonessential); + n = this.linkedMeshes.length; + for (var i = 0; i < n; i++) { + var linkedMesh = this.linkedMeshes[i]; + var skin = null == linkedMesh.skin ? skeletonData.defaultSkin : skeletonData.findSkin(linkedMesh.skin); + if (null == skin) throw new Error("Skin not found: " + linkedMesh.skin); + var parent_3 = skin.getAttachment(linkedMesh.slotIndex, linkedMesh.parent); + if (null == parent_3) throw new Error("Parent mesh not found: " + linkedMesh.parent); + linkedMesh.mesh.deformAttachment = linkedMesh.inheritDeform ? parent_3 : linkedMesh.mesh; + linkedMesh.mesh.setParentMesh(parent_3); + linkedMesh.mesh.updateUVs(); + } + this.linkedMeshes.length = 0; + n = input.readInt(true); + for (var i = 0; i < n; i++) { + var data = new spine.EventData(input.readStringRef()); + data.intValue = input.readInt(false); + data.floatValue = input.readFloat(); + data.stringValue = input.readString(); + data.audioPath = input.readString(); + if (null != data.audioPath) { + data.volume = input.readFloat(); + data.balance = input.readFloat(); + } + skeletonData.events.push(data); + } + n = input.readInt(true); + for (var i = 0; i < n; i++) skeletonData.animations.push(this.readAnimation(input, input.readString(), skeletonData)); + return skeletonData; + }; + SkeletonBinary.prototype.readSkin = function(input, skeletonData, defaultSkin, nonessential) { + var skin = null; + var slotCount = 0; + if (defaultSkin) { + slotCount = input.readInt(true); + if (0 == slotCount) return null; + skin = new spine.Skin("default"); + } else { + skin = new spine.Skin(input.readStringRef()); + skin.bones.length = input.readInt(true); + for (var i = 0, n = skin.bones.length; i < n; i++) skin.bones[i] = skeletonData.bones[input.readInt(true)]; + for (var i = 0, n = input.readInt(true); i < n; i++) skin.constraints.push(skeletonData.ikConstraints[input.readInt(true)]); + for (var i = 0, n = input.readInt(true); i < n; i++) skin.constraints.push(skeletonData.transformConstraints[input.readInt(true)]); + for (var i = 0, n = input.readInt(true); i < n; i++) skin.constraints.push(skeletonData.pathConstraints[input.readInt(true)]); + slotCount = input.readInt(true); + } + for (var i = 0; i < slotCount; i++) { + var slotIndex = input.readInt(true); + for (var ii = 0, nn = input.readInt(true); ii < nn; ii++) { + var name_3 = input.readStringRef(); + var attachment = this.readAttachment(input, skeletonData, skin, slotIndex, name_3, nonessential); + null != attachment && skin.setAttachment(slotIndex, name_3, attachment); + } + } + return skin; + }; + SkeletonBinary.prototype.readAttachment = function(input, skeletonData, skin, slotIndex, attachmentName, nonessential) { + var scale = this.scale; + var name = input.readStringRef(); + null == name && (name = attachmentName); + var typeIndex = input.readByte(); + var type = SkeletonBinary.AttachmentTypeValues[typeIndex]; + switch (type) { + case spine.AttachmentType.Region: + var path = input.readStringRef(); + var rotation = input.readFloat(); + var x = input.readFloat(); + var y = input.readFloat(); + var scaleX = input.readFloat(); + var scaleY = input.readFloat(); + var width = input.readFloat(); + var height = input.readFloat(); + var color = input.readInt32(); + null == path && (path = name); + var region = this.attachmentLoader.newRegionAttachment(skin, name, path); + if (null == region) return null; + region.path = path; + region.x = x * scale; + region.y = y * scale; + region.scaleX = scaleX; + region.scaleY = scaleY; + region.rotation = rotation; + region.width = width * scale; + region.height = height * scale; + spine.Color.rgba8888ToColor(region.color, color); + region.updateOffset(); + return region; + + case spine.AttachmentType.BoundingBox: + var vertexCount = input.readInt(true); + var vertices = this.readVertices(input, vertexCount); + var color = nonessential ? input.readInt32() : 0; + var box = this.attachmentLoader.newBoundingBoxAttachment(skin, name); + if (null == box) return null; + box.worldVerticesLength = vertexCount << 1; + box.vertices = vertices.vertices; + box.bones = vertices.bones; + nonessential && spine.Color.rgba8888ToColor(box.color, color); + return box; + + case spine.AttachmentType.Mesh: + var path = input.readStringRef(); + var color = input.readInt32(); + var vertexCount = input.readInt(true); + var uvs = this.readFloatArray(input, vertexCount << 1, 1); + var triangles = this.readShortArray(input); + var vertices = this.readVertices(input, vertexCount); + var hullLength = input.readInt(true); + var edges = null; + var width = 0, height = 0; + if (nonessential) { + edges = this.readShortArray(input); + width = input.readFloat(); + height = input.readFloat(); + } + null == path && (path = name); + var mesh = this.attachmentLoader.newMeshAttachment(skin, name, path); + if (null == mesh) return null; + mesh.path = path; + spine.Color.rgba8888ToColor(mesh.color, color); + mesh.bones = vertices.bones; + mesh.vertices = vertices.vertices; + mesh.worldVerticesLength = vertexCount << 1; + mesh.triangles = triangles; + mesh.regionUVs = uvs; + mesh.updateUVs(); + mesh.hullLength = hullLength << 1; + if (nonessential) { + mesh.edges = edges; + mesh.width = width * scale; + mesh.height = height * scale; + } + return mesh; + + case spine.AttachmentType.LinkedMesh: + var path = input.readStringRef(); + var color = input.readInt32(); + var skinName = input.readStringRef(); + var parent_4 = input.readStringRef(); + var inheritDeform = input.readBoolean(); + var width = 0, height = 0; + if (nonessential) { + width = input.readFloat(); + height = input.readFloat(); + } + null == path && (path = name); + var mesh = this.attachmentLoader.newMeshAttachment(skin, name, path); + if (null == mesh) return null; + mesh.path = path; + spine.Color.rgba8888ToColor(mesh.color, color); + if (nonessential) { + mesh.width = width * scale; + mesh.height = height * scale; + } + this.linkedMeshes.push(new LinkedMesh(mesh, skinName, slotIndex, parent_4, inheritDeform)); + return mesh; + + case spine.AttachmentType.Path: + var closed_1 = input.readBoolean(); + var constantSpeed = input.readBoolean(); + var vertexCount = input.readInt(true); + var vertices = this.readVertices(input, vertexCount); + var lengths = spine.Utils.newArray(vertexCount / 3, 0); + for (var i = 0, n = lengths.length; i < n; i++) lengths[i] = input.readFloat() * scale; + var color = nonessential ? input.readInt32() : 0; + var path = this.attachmentLoader.newPathAttachment(skin, name); + if (null == path) return null; + path.closed = closed_1; + path.constantSpeed = constantSpeed; + path.worldVerticesLength = vertexCount << 1; + path.vertices = vertices.vertices; + path.bones = vertices.bones; + path.lengths = lengths; + nonessential && spine.Color.rgba8888ToColor(path.color, color); + return path; + + case spine.AttachmentType.Point: + var rotation = input.readFloat(); + var x = input.readFloat(); + var y = input.readFloat(); + var color = nonessential ? input.readInt32() : 0; + var point = this.attachmentLoader.newPointAttachment(skin, name); + if (null == point) return null; + point.x = x * scale; + point.y = y * scale; + point.rotation = rotation; + nonessential && spine.Color.rgba8888ToColor(point.color, color); + return point; + + case spine.AttachmentType.Clipping: + var endSlotIndex = input.readInt(true); + var vertexCount = input.readInt(true); + var vertices = this.readVertices(input, vertexCount); + var color = nonessential ? input.readInt32() : 0; + var clip = this.attachmentLoader.newClippingAttachment(skin, name); + if (null == clip) return null; + clip.endSlot = skeletonData.slots[endSlotIndex]; + clip.worldVerticesLength = vertexCount << 1; + clip.vertices = vertices.vertices; + clip.bones = vertices.bones; + nonessential && spine.Color.rgba8888ToColor(clip.color, color); + return clip; + } + return null; + }; + SkeletonBinary.prototype.readVertices = function(input, vertexCount) { + var verticesLength = vertexCount << 1; + var vertices = new Vertices(); + var scale = this.scale; + if (!input.readBoolean()) { + vertices.vertices = this.readFloatArray(input, verticesLength, scale); + return vertices; + } + var weights = new Array(); + var bonesArray = new Array(); + for (var i = 0; i < vertexCount; i++) { + var boneCount = input.readInt(true); + bonesArray.push(boneCount); + for (var ii = 0; ii < boneCount; ii++) { + bonesArray.push(input.readInt(true)); + weights.push(input.readFloat() * scale); + weights.push(input.readFloat() * scale); + weights.push(input.readFloat()); + } + } + vertices.vertices = spine.Utils.toFloatArray(weights); + vertices.bones = bonesArray; + return vertices; + }; + SkeletonBinary.prototype.readFloatArray = function(input, n, scale) { + var array = new Array(n); + if (1 == scale) for (var i = 0; i < n; i++) array[i] = input.readFloat(); else for (var i = 0; i < n; i++) array[i] = input.readFloat() * scale; + return array; + }; + SkeletonBinary.prototype.readShortArray = function(input) { + var n = input.readInt(true); + var array = new Array(n); + for (var i = 0; i < n; i++) array[i] = input.readShort(); + return array; + }; + SkeletonBinary.prototype.readAnimation = function(input, name, skeletonData) { + var timelines = new Array(); + var scale = this.scale; + var duration = 0; + var tempColor1 = new spine.Color(); + var tempColor2 = new spine.Color(); + for (var i = 0, n = input.readInt(true); i < n; i++) { + var slotIndex = input.readInt(true); + for (var ii = 0, nn = input.readInt(true); ii < nn; ii++) { + var timelineType = input.readByte(); + var frameCount = input.readInt(true); + switch (timelineType) { + case SkeletonBinary.SLOT_ATTACHMENT: + var timeline = new spine.AttachmentTimeline(frameCount); + timeline.slotIndex = slotIndex; + for (var frameIndex = 0; frameIndex < frameCount; frameIndex++) timeline.setFrame(frameIndex, input.readFloat(), input.readStringRef()); + timelines.push(timeline); + duration = Math.max(duration, timeline.frames[frameCount - 1]); + break; + + case SkeletonBinary.SLOT_COLOR: + var timeline = new spine.ColorTimeline(frameCount); + timeline.slotIndex = slotIndex; + for (var frameIndex = 0; frameIndex < frameCount; frameIndex++) { + var time = input.readFloat(); + spine.Color.rgba8888ToColor(tempColor1, input.readInt32()); + timeline.setFrame(frameIndex, time, tempColor1.r, tempColor1.g, tempColor1.b, tempColor1.a); + frameIndex < frameCount - 1 && this.readCurve(input, frameIndex, timeline); + } + timelines.push(timeline); + duration = Math.max(duration, timeline.frames[(frameCount - 1) * spine.ColorTimeline.ENTRIES]); + break; + + case SkeletonBinary.SLOT_TWO_COLOR: + var timeline = new spine.TwoColorTimeline(frameCount); + timeline.slotIndex = slotIndex; + for (var frameIndex = 0; frameIndex < frameCount; frameIndex++) { + var time = input.readFloat(); + spine.Color.rgba8888ToColor(tempColor1, input.readInt32()); + spine.Color.rgb888ToColor(tempColor2, input.readInt32()); + timeline.setFrame(frameIndex, time, tempColor1.r, tempColor1.g, tempColor1.b, tempColor1.a, tempColor2.r, tempColor2.g, tempColor2.b); + frameIndex < frameCount - 1 && this.readCurve(input, frameIndex, timeline); + } + timelines.push(timeline); + duration = Math.max(duration, timeline.frames[(frameCount - 1) * spine.TwoColorTimeline.ENTRIES]); + } + } + } + for (var i = 0, n = input.readInt(true); i < n; i++) { + var boneIndex = input.readInt(true); + for (var ii = 0, nn = input.readInt(true); ii < nn; ii++) { + var timelineType = input.readByte(); + var frameCount = input.readInt(true); + switch (timelineType) { + case SkeletonBinary.BONE_ROTATE: + var timeline = new spine.RotateTimeline(frameCount); + timeline.boneIndex = boneIndex; + for (var frameIndex = 0; frameIndex < frameCount; frameIndex++) { + timeline.setFrame(frameIndex, input.readFloat(), input.readFloat()); + frameIndex < frameCount - 1 && this.readCurve(input, frameIndex, timeline); + } + timelines.push(timeline); + duration = Math.max(duration, timeline.frames[(frameCount - 1) * spine.RotateTimeline.ENTRIES]); + break; + + case SkeletonBinary.BONE_TRANSLATE: + case SkeletonBinary.BONE_SCALE: + case SkeletonBinary.BONE_SHEAR: + var timeline = void 0; + var timelineScale = 1; + if (timelineType == SkeletonBinary.BONE_SCALE) timeline = new spine.ScaleTimeline(frameCount); else if (timelineType == SkeletonBinary.BONE_SHEAR) timeline = new spine.ShearTimeline(frameCount); else { + timeline = new spine.TranslateTimeline(frameCount); + timelineScale = scale; + } + timeline.boneIndex = boneIndex; + for (var frameIndex = 0; frameIndex < frameCount; frameIndex++) { + timeline.setFrame(frameIndex, input.readFloat(), input.readFloat() * timelineScale, input.readFloat() * timelineScale); + frameIndex < frameCount - 1 && this.readCurve(input, frameIndex, timeline); + } + timelines.push(timeline); + duration = Math.max(duration, timeline.frames[(frameCount - 1) * spine.TranslateTimeline.ENTRIES]); + } + } + } + for (var i = 0, n = input.readInt(true); i < n; i++) { + var index = input.readInt(true); + var frameCount = input.readInt(true); + var timeline = new spine.IkConstraintTimeline(frameCount); + timeline.ikConstraintIndex = index; + for (var frameIndex = 0; frameIndex < frameCount; frameIndex++) { + timeline.setFrame(frameIndex, input.readFloat(), input.readFloat(), input.readFloat() * scale, input.readByte(), input.readBoolean(), input.readBoolean()); + frameIndex < frameCount - 1 && this.readCurve(input, frameIndex, timeline); + } + timelines.push(timeline); + duration = Math.max(duration, timeline.frames[(frameCount - 1) * spine.IkConstraintTimeline.ENTRIES]); + } + for (var i = 0, n = input.readInt(true); i < n; i++) { + var index = input.readInt(true); + var frameCount = input.readInt(true); + var timeline = new spine.TransformConstraintTimeline(frameCount); + timeline.transformConstraintIndex = index; + for (var frameIndex = 0; frameIndex < frameCount; frameIndex++) { + timeline.setFrame(frameIndex, input.readFloat(), input.readFloat(), input.readFloat(), input.readFloat(), input.readFloat()); + frameIndex < frameCount - 1 && this.readCurve(input, frameIndex, timeline); + } + timelines.push(timeline); + duration = Math.max(duration, timeline.frames[(frameCount - 1) * spine.TransformConstraintTimeline.ENTRIES]); + } + for (var i = 0, n = input.readInt(true); i < n; i++) { + var index = input.readInt(true); + var data = skeletonData.pathConstraints[index]; + for (var ii = 0, nn = input.readInt(true); ii < nn; ii++) { + var timelineType = input.readByte(); + var frameCount = input.readInt(true); + switch (timelineType) { + case SkeletonBinary.PATH_POSITION: + case SkeletonBinary.PATH_SPACING: + var timeline = void 0; + var timelineScale = 1; + if (timelineType == SkeletonBinary.PATH_SPACING) { + timeline = new spine.PathConstraintSpacingTimeline(frameCount); + data.spacingMode != spine.SpacingMode.Length && data.spacingMode != spine.SpacingMode.Fixed || (timelineScale = scale); + } else { + timeline = new spine.PathConstraintPositionTimeline(frameCount); + data.positionMode == spine.PositionMode.Fixed && (timelineScale = scale); + } + timeline.pathConstraintIndex = index; + for (var frameIndex = 0; frameIndex < frameCount; frameIndex++) { + timeline.setFrame(frameIndex, input.readFloat(), input.readFloat() * timelineScale); + frameIndex < frameCount - 1 && this.readCurve(input, frameIndex, timeline); + } + timelines.push(timeline); + duration = Math.max(duration, timeline.frames[(frameCount - 1) * spine.PathConstraintPositionTimeline.ENTRIES]); + break; + + case SkeletonBinary.PATH_MIX: + var timeline = new spine.PathConstraintMixTimeline(frameCount); + timeline.pathConstraintIndex = index; + for (var frameIndex = 0; frameIndex < frameCount; frameIndex++) { + timeline.setFrame(frameIndex, input.readFloat(), input.readFloat(), input.readFloat()); + frameIndex < frameCount - 1 && this.readCurve(input, frameIndex, timeline); + } + timelines.push(timeline); + duration = Math.max(duration, timeline.frames[(frameCount - 1) * spine.PathConstraintMixTimeline.ENTRIES]); + } + } + } + for (var i = 0, n = input.readInt(true); i < n; i++) { + var skin = skeletonData.skins[input.readInt(true)]; + for (var ii = 0, nn = input.readInt(true); ii < nn; ii++) { + var slotIndex = input.readInt(true); + for (var iii = 0, nnn = input.readInt(true); iii < nnn; iii++) { + var attachment = skin.getAttachment(slotIndex, input.readStringRef()); + var weighted = null != attachment.bones; + var vertices = attachment.vertices; + var deformLength = weighted ? vertices.length / 3 * 2 : vertices.length; + var frameCount = input.readInt(true); + var timeline = new spine.DeformTimeline(frameCount); + timeline.slotIndex = slotIndex; + timeline.attachment = attachment; + for (var frameIndex = 0; frameIndex < frameCount; frameIndex++) { + var time = input.readFloat(); + var deform = void 0; + var end = input.readInt(true); + if (0 == end) deform = weighted ? spine.Utils.newFloatArray(deformLength) : vertices; else { + deform = spine.Utils.newFloatArray(deformLength); + var start = input.readInt(true); + end += start; + if (1 == scale) for (var v = start; v < end; v++) deform[v] = input.readFloat(); else for (var v = start; v < end; v++) deform[v] = input.readFloat() * scale; + if (!weighted) for (var v = 0, vn = deform.length; v < vn; v++) deform[v] += vertices[v]; + } + timeline.setFrame(frameIndex, time, deform); + frameIndex < frameCount - 1 && this.readCurve(input, frameIndex, timeline); + } + timelines.push(timeline); + duration = Math.max(duration, timeline.frames[frameCount - 1]); + } + } + } + var drawOrderCount = input.readInt(true); + if (drawOrderCount > 0) { + var timeline = new spine.DrawOrderTimeline(drawOrderCount); + var slotCount = skeletonData.slots.length; + for (var i = 0; i < drawOrderCount; i++) { + var time = input.readFloat(); + var offsetCount = input.readInt(true); + var drawOrder = spine.Utils.newArray(slotCount, 0); + for (var ii = slotCount - 1; ii >= 0; ii--) drawOrder[ii] = -1; + var unchanged = spine.Utils.newArray(slotCount - offsetCount, 0); + var originalIndex = 0, unchangedIndex = 0; + for (var ii = 0; ii < offsetCount; ii++) { + var slotIndex = input.readInt(true); + while (originalIndex != slotIndex) unchanged[unchangedIndex++] = originalIndex++; + drawOrder[originalIndex + input.readInt(true)] = originalIndex++; + } + while (originalIndex < slotCount) unchanged[unchangedIndex++] = originalIndex++; + for (var ii = slotCount - 1; ii >= 0; ii--) -1 == drawOrder[ii] && (drawOrder[ii] = unchanged[--unchangedIndex]); + timeline.setFrame(i, time, drawOrder); + } + timelines.push(timeline); + duration = Math.max(duration, timeline.frames[drawOrderCount - 1]); + } + var eventCount = input.readInt(true); + if (eventCount > 0) { + var timeline = new spine.EventTimeline(eventCount); + for (var i = 0; i < eventCount; i++) { + var time = input.readFloat(); + var eventData = skeletonData.events[input.readInt(true)]; + var event_4 = new spine.Event(time, eventData); + event_4.intValue = input.readInt(false); + event_4.floatValue = input.readFloat(); + event_4.stringValue = input.readBoolean() ? input.readString() : eventData.stringValue; + if (null != event_4.data.audioPath) { + event_4.volume = input.readFloat(); + event_4.balance = input.readFloat(); + } + timeline.setFrame(i, event_4); + } + timelines.push(timeline); + duration = Math.max(duration, timeline.frames[eventCount - 1]); + } + return new spine.Animation(name, timelines, duration); + }; + SkeletonBinary.prototype.readCurve = function(input, frameIndex, timeline) { + switch (input.readByte()) { + case SkeletonBinary.CURVE_STEPPED: + timeline.setStepped(frameIndex); + break; + + case SkeletonBinary.CURVE_BEZIER: + this.setCurve(timeline, frameIndex, input.readFloat(), input.readFloat(), input.readFloat(), input.readFloat()); + } + }; + SkeletonBinary.prototype.setCurve = function(timeline, frameIndex, cx1, cy1, cx2, cy2) { + timeline.setCurve(frameIndex, cx1, cy1, cx2, cy2); + }; + SkeletonBinary.AttachmentTypeValues = [ 0, 1, 2, 3, 4, 5, 6 ]; + SkeletonBinary.TransformModeValues = [ spine.TransformMode.Normal, spine.TransformMode.OnlyTranslation, spine.TransformMode.NoRotationOrReflection, spine.TransformMode.NoScale, spine.TransformMode.NoScaleOrReflection ]; + SkeletonBinary.PositionModeValues = [ spine.PositionMode.Fixed, spine.PositionMode.Percent ]; + SkeletonBinary.SpacingModeValues = [ spine.SpacingMode.Length, spine.SpacingMode.Fixed, spine.SpacingMode.Percent ]; + SkeletonBinary.RotateModeValues = [ spine.RotateMode.Tangent, spine.RotateMode.Chain, spine.RotateMode.ChainScale ]; + SkeletonBinary.BlendModeValues = [ spine.BlendMode.Normal, spine.BlendMode.Additive, spine.BlendMode.Multiply, spine.BlendMode.Screen ]; + SkeletonBinary.BONE_ROTATE = 0; + SkeletonBinary.BONE_TRANSLATE = 1; + SkeletonBinary.BONE_SCALE = 2; + SkeletonBinary.BONE_SHEAR = 3; + SkeletonBinary.SLOT_ATTACHMENT = 0; + SkeletonBinary.SLOT_COLOR = 1; + SkeletonBinary.SLOT_TWO_COLOR = 2; + SkeletonBinary.PATH_POSITION = 0; + SkeletonBinary.PATH_SPACING = 1; + SkeletonBinary.PATH_MIX = 2; + SkeletonBinary.CURVE_LINEAR = 0; + SkeletonBinary.CURVE_STEPPED = 1; + SkeletonBinary.CURVE_BEZIER = 2; + return SkeletonBinary; + })(); + spine.SkeletonBinary = SkeletonBinary; + var BinaryInput = (function() { + function BinaryInput(data, strings, index, buffer) { + void 0 === strings && (strings = new Array()); + void 0 === index && (index = 0); + void 0 === buffer && (buffer = new DataView(data.buffer)); + this.strings = strings; + this.index = index; + this.buffer = buffer; + } + BinaryInput.prototype.readByte = function() { + return this.buffer.getInt8(this.index++); + }; + BinaryInput.prototype.readShort = function() { + var value = this.buffer.getInt16(this.index); + this.index += 2; + return value; + }; + BinaryInput.prototype.readInt32 = function() { + var value = this.buffer.getInt32(this.index); + this.index += 4; + return value; + }; + BinaryInput.prototype.readInt = function(optimizePositive) { + var b = this.readByte(); + var result = 127 & b; + if (0 != (128 & b)) { + b = this.readByte(); + result |= (127 & b) << 7; + if (0 != (128 & b)) { + b = this.readByte(); + result |= (127 & b) << 14; + if (0 != (128 & b)) { + b = this.readByte(); + result |= (127 & b) << 21; + if (0 != (128 & b)) { + b = this.readByte(); + result |= (127 & b) << 28; + } + } + } + } + return optimizePositive ? result : result >>> 1 ^ -(1 & result); + }; + BinaryInput.prototype.readStringRef = function() { + var index = this.readInt(true); + return 0 == index ? null : this.strings[index - 1]; + }; + BinaryInput.prototype.readString = function() { + var byteCount = this.readInt(true); + switch (byteCount) { + case 0: + return null; + + case 1: + return ""; + } + byteCount--; + var chars = ""; + var charCount = 0; + for (var i = 0; i < byteCount; ) { + var b = this.readByte(); + switch (b >> 4) { + case 12: + case 13: + chars += String.fromCharCode((31 & b) << 6 | 63 & this.readByte()); + i += 2; + break; + + case 14: + chars += String.fromCharCode((15 & b) << 12 | (63 & this.readByte()) << 6 | 63 & this.readByte()); + i += 3; + break; + + default: + chars += String.fromCharCode(b); + i++; + } + } + return chars; + }; + BinaryInput.prototype.readFloat = function() { + var value = this.buffer.getFloat32(this.index); + this.index += 4; + return value; + }; + BinaryInput.prototype.readBoolean = function() { + return 0 != this.readByte(); + }; + return BinaryInput; + })(); + var LinkedMesh = (function() { + function LinkedMesh(mesh, skin, slotIndex, parent, inheritDeform) { + this.mesh = mesh; + this.skin = skin; + this.slotIndex = slotIndex; + this.parent = parent; + this.inheritDeform = inheritDeform; + } + return LinkedMesh; + })(); + var Vertices = (function() { + function Vertices(bones, vertices) { + void 0 === bones && (bones = null); + void 0 === vertices && (vertices = null); + this.bones = bones; + this.vertices = vertices; + } + return Vertices; + })(); + })(spine || (spine = {})); + var spine; + (function(spine) { + var SkeletonBounds = (function() { + function SkeletonBounds() { + this.minX = 0; + this.minY = 0; + this.maxX = 0; + this.maxY = 0; + this.boundingBoxes = new Array(); + this.polygons = new Array(); + this.polygonPool = new spine.Pool(function() { + return spine.Utils.newFloatArray(16); + }); + } + SkeletonBounds.prototype.update = function(skeleton, updateAabb) { + if (null == skeleton) throw new Error("skeleton cannot be null."); + var boundingBoxes = this.boundingBoxes; + var polygons = this.polygons; + var polygonPool = this.polygonPool; + var slots = skeleton.slots; + var slotCount = slots.length; + boundingBoxes.length = 0; + polygonPool.freeAll(polygons); + polygons.length = 0; + for (var i = 0; i < slotCount; i++) { + var slot = slots[i]; + if (!slot.bone.active) continue; + var attachment = slot.getAttachment(); + if (attachment instanceof spine.BoundingBoxAttachment) { + var boundingBox = attachment; + boundingBoxes.push(boundingBox); + var polygon = polygonPool.obtain(); + polygon.length != boundingBox.worldVerticesLength && (polygon = spine.Utils.newFloatArray(boundingBox.worldVerticesLength)); + polygons.push(polygon); + boundingBox.computeWorldVertices(slot, 0, boundingBox.worldVerticesLength, polygon, 0, 2); + } + } + if (updateAabb) this.aabbCompute(); else { + this.minX = Number.POSITIVE_INFINITY; + this.minY = Number.POSITIVE_INFINITY; + this.maxX = Number.NEGATIVE_INFINITY; + this.maxY = Number.NEGATIVE_INFINITY; + } + }; + SkeletonBounds.prototype.aabbCompute = function() { + var minX = Number.POSITIVE_INFINITY, minY = Number.POSITIVE_INFINITY, maxX = Number.NEGATIVE_INFINITY, maxY = Number.NEGATIVE_INFINITY; + var polygons = this.polygons; + for (var i = 0, n = polygons.length; i < n; i++) { + var polygon = polygons[i]; + var vertices = polygon; + for (var ii = 0, nn = polygon.length; ii < nn; ii += 2) { + var x = vertices[ii]; + var y = vertices[ii + 1]; + minX = Math.min(minX, x); + minY = Math.min(minY, y); + maxX = Math.max(maxX, x); + maxY = Math.max(maxY, y); + } + } + this.minX = minX; + this.minY = minY; + this.maxX = maxX; + this.maxY = maxY; + }; + SkeletonBounds.prototype.aabbContainsPoint = function(x, y) { + return x >= this.minX && x <= this.maxX && y >= this.minY && y <= this.maxY; + }; + SkeletonBounds.prototype.aabbIntersectsSegment = function(x1, y1, x2, y2) { + var minX = this.minX; + var minY = this.minY; + var maxX = this.maxX; + var maxY = this.maxY; + if (x1 <= minX && x2 <= minX || y1 <= minY && y2 <= minY || x1 >= maxX && x2 >= maxX || y1 >= maxY && y2 >= maxY) return false; + var m = (y2 - y1) / (x2 - x1); + var y = m * (minX - x1) + y1; + if (y > minY && y < maxY) return true; + y = m * (maxX - x1) + y1; + if (y > minY && y < maxY) return true; + var x = (minY - y1) / m + x1; + if (x > minX && x < maxX) return true; + x = (maxY - y1) / m + x1; + if (x > minX && x < maxX) return true; + return false; + }; + SkeletonBounds.prototype.aabbIntersectsSkeleton = function(bounds) { + return this.minX < bounds.maxX && this.maxX > bounds.minX && this.minY < bounds.maxY && this.maxY > bounds.minY; + }; + SkeletonBounds.prototype.containsPoint = function(x, y) { + var polygons = this.polygons; + for (var i = 0, n = polygons.length; i < n; i++) if (this.containsPointPolygon(polygons[i], x, y)) return this.boundingBoxes[i]; + return null; + }; + SkeletonBounds.prototype.containsPointPolygon = function(polygon, x, y) { + var vertices = polygon; + var nn = polygon.length; + var prevIndex = nn - 2; + var inside = false; + for (var ii = 0; ii < nn; ii += 2) { + var vertexY = vertices[ii + 1]; + var prevY = vertices[prevIndex + 1]; + if (vertexY < y && prevY >= y || prevY < y && vertexY >= y) { + var vertexX = vertices[ii]; + vertexX + (y - vertexY) / (prevY - vertexY) * (vertices[prevIndex] - vertexX) < x && (inside = !inside); + } + prevIndex = ii; + } + return inside; + }; + SkeletonBounds.prototype.intersectsSegment = function(x1, y1, x2, y2) { + var polygons = this.polygons; + for (var i = 0, n = polygons.length; i < n; i++) if (this.intersectsSegmentPolygon(polygons[i], x1, y1, x2, y2)) return this.boundingBoxes[i]; + return null; + }; + SkeletonBounds.prototype.intersectsSegmentPolygon = function(polygon, x1, y1, x2, y2) { + var vertices = polygon; + var nn = polygon.length; + var width12 = x1 - x2, height12 = y1 - y2; + var det1 = x1 * y2 - y1 * x2; + var x3 = vertices[nn - 2], y3 = vertices[nn - 1]; + for (var ii = 0; ii < nn; ii += 2) { + var x4 = vertices[ii], y4 = vertices[ii + 1]; + var det2 = x3 * y4 - y3 * x4; + var width34 = x3 - x4, height34 = y3 - y4; + var det3 = width12 * height34 - height12 * width34; + var x = (det1 * width34 - width12 * det2) / det3; + if ((x >= x3 && x <= x4 || x >= x4 && x <= x3) && (x >= x1 && x <= x2 || x >= x2 && x <= x1)) { + var y = (det1 * height34 - height12 * det2) / det3; + if ((y >= y3 && y <= y4 || y >= y4 && y <= y3) && (y >= y1 && y <= y2 || y >= y2 && y <= y1)) return true; + } + x3 = x4; + y3 = y4; + } + return false; + }; + SkeletonBounds.prototype.getPolygon = function(boundingBox) { + if (null == boundingBox) throw new Error("boundingBox cannot be null."); + var index = this.boundingBoxes.indexOf(boundingBox); + return -1 == index ? null : this.polygons[index]; + }; + SkeletonBounds.prototype.getWidth = function() { + return this.maxX - this.minX; + }; + SkeletonBounds.prototype.getHeight = function() { + return this.maxY - this.minY; + }; + return SkeletonBounds; + })(); + spine.SkeletonBounds = SkeletonBounds; + })(spine || (spine = {})); + var spine; + (function(spine) { + var SkeletonClipping = (function() { + function SkeletonClipping() { + this.triangulator = new spine.Triangulator(); + this.clippingPolygon = new Array(); + this.clipOutput = new Array(); + this.clippedVertices = new Array(); + this.clippedTriangles = new Array(); + this.scratch = new Array(); + } + SkeletonClipping.prototype.clipStart = function(slot, clip) { + if (null != this.clipAttachment) return 0; + this.clipAttachment = clip; + var n = clip.worldVerticesLength; + var vertices = spine.Utils.setArraySize(this.clippingPolygon, n); + clip.computeWorldVertices(slot, 0, n, vertices, 0, 2); + var clippingPolygon = this.clippingPolygon; + SkeletonClipping.makeClockwise(clippingPolygon); + var clippingPolygons = this.clippingPolygons = this.triangulator.decompose(clippingPolygon, this.triangulator.triangulate(clippingPolygon)); + for (var i = 0, n_1 = clippingPolygons.length; i < n_1; i++) { + var polygon = clippingPolygons[i]; + SkeletonClipping.makeClockwise(polygon); + polygon.push(polygon[0]); + polygon.push(polygon[1]); + } + return clippingPolygons.length; + }; + SkeletonClipping.prototype.clipEndWithSlot = function(slot) { + null != this.clipAttachment && this.clipAttachment.endSlot == slot.data && this.clipEnd(); + }; + SkeletonClipping.prototype.clipEnd = function() { + if (null == this.clipAttachment) return; + this.clipAttachment = null; + this.clippingPolygons = null; + this.clippedVertices.length = 0; + this.clippedTriangles.length = 0; + this.clippingPolygon.length = 0; + }; + SkeletonClipping.prototype.isClipping = function() { + return null != this.clipAttachment; + }; + SkeletonClipping.prototype.clipTriangles = function(vertices, verticesLength, triangles, trianglesLength, uvs, light, dark, twoColor, stride, originIndexOffset, originVertOffset, originUVSOffset) { + var clipOutput = this.clipOutput, clippedVertices = this.clippedVertices; + var clippedTriangles = this.clippedTriangles; + var polygons = this.clippingPolygons; + var polygonsCount = this.clippingPolygons.length; + var vertexSize = twoColor ? 12 : 8; + var index = 0; + originIndexOffset = originIndexOffset || 0; + originVertOffset = originVertOffset || 0; + originUVSOffset = originUVSOffset || 0; + clippedVertices.length = 0; + clippedTriangles.length = 0; + outer: for (var i = originIndexOffset, n = originIndexOffset + trianglesLength; i < n; i += 3) { + var vertexOffset = triangles[i] * stride; + var xyOffset = vertexOffset + originVertOffset; + var uvOffset = vertexOffset + originUVSOffset; + var x1 = vertices[xyOffset], y1 = vertices[xyOffset + 1]; + var u1 = uvs[uvOffset], v1 = uvs[uvOffset + 1]; + vertexOffset = triangles[i + 1] * stride; + xyOffset = vertexOffset + originVertOffset; + uvOffset = vertexOffset + originUVSOffset; + var x2 = vertices[xyOffset], y2 = vertices[xyOffset + 1]; + var u2 = uvs[uvOffset], v2 = uvs[uvOffset + 1]; + vertexOffset = triangles[i + 2] * stride; + xyOffset = vertexOffset + originVertOffset; + uvOffset = vertexOffset + originUVSOffset; + var x3 = vertices[xyOffset], y3 = vertices[xyOffset + 1]; + var u3 = uvs[uvOffset], v3 = uvs[uvOffset + 1]; + for (var p = 0; p < polygonsCount; p++) { + var s = clippedVertices.length; + if (!this.clip(x1, y1, x2, y2, x3, y3, polygons[p], clipOutput)) { + var clippedVerticesItems = spine.Utils.setArraySize(clippedVertices, s + 3 * vertexSize); + clippedVerticesItems[s] = x1; + clippedVerticesItems[s + 1] = y1; + clippedVerticesItems[s + 2] = light.r; + clippedVerticesItems[s + 3] = light.g; + clippedVerticesItems[s + 4] = light.b; + clippedVerticesItems[s + 5] = light.a; + if (twoColor) { + clippedVerticesItems[s + 6] = u1; + clippedVerticesItems[s + 7] = v1; + clippedVerticesItems[s + 8] = dark.r; + clippedVerticesItems[s + 9] = dark.g; + clippedVerticesItems[s + 10] = dark.b; + clippedVerticesItems[s + 11] = dark.a; + clippedVerticesItems[s + 12] = x2; + clippedVerticesItems[s + 13] = y2; + clippedVerticesItems[s + 14] = light.r; + clippedVerticesItems[s + 15] = light.g; + clippedVerticesItems[s + 16] = light.b; + clippedVerticesItems[s + 17] = light.a; + clippedVerticesItems[s + 18] = u2; + clippedVerticesItems[s + 19] = v2; + clippedVerticesItems[s + 20] = dark.r; + clippedVerticesItems[s + 21] = dark.g; + clippedVerticesItems[s + 22] = dark.b; + clippedVerticesItems[s + 23] = dark.a; + clippedVerticesItems[s + 24] = x3; + clippedVerticesItems[s + 25] = y3; + clippedVerticesItems[s + 26] = light.r; + clippedVerticesItems[s + 27] = light.g; + clippedVerticesItems[s + 28] = light.b; + clippedVerticesItems[s + 29] = light.a; + clippedVerticesItems[s + 30] = u3; + clippedVerticesItems[s + 31] = v3; + clippedVerticesItems[s + 32] = dark.r; + clippedVerticesItems[s + 33] = dark.g; + clippedVerticesItems[s + 34] = dark.b; + clippedVerticesItems[s + 35] = dark.a; + } else { + clippedVerticesItems[s + 6] = u1; + clippedVerticesItems[s + 7] = v1; + clippedVerticesItems[s + 8] = x2; + clippedVerticesItems[s + 9] = y2; + clippedVerticesItems[s + 10] = light.r; + clippedVerticesItems[s + 11] = light.g; + clippedVerticesItems[s + 12] = light.b; + clippedVerticesItems[s + 13] = light.a; + clippedVerticesItems[s + 14] = u2; + clippedVerticesItems[s + 15] = v2; + clippedVerticesItems[s + 16] = x3; + clippedVerticesItems[s + 17] = y3; + clippedVerticesItems[s + 18] = light.r; + clippedVerticesItems[s + 19] = light.g; + clippedVerticesItems[s + 20] = light.b; + clippedVerticesItems[s + 21] = light.a; + clippedVerticesItems[s + 22] = u3; + clippedVerticesItems[s + 23] = v3; + } + s = clippedTriangles.length; + var clippedTrianglesItems = spine.Utils.setArraySize(clippedTriangles, s + 3); + clippedTrianglesItems[s] = index; + clippedTrianglesItems[s + 1] = index + 1; + clippedTrianglesItems[s + 2] = index + 2; + index += 3; + continue outer; + } + var clipOutputLength = clipOutput.length; + if (0 == clipOutputLength) continue; + var d0 = y2 - y3, d1 = x3 - x2, d2 = x1 - x3, d4 = y3 - y1; + var d = 1 / (d0 * d2 + d1 * (y1 - y3)); + var clipOutputCount = clipOutputLength >> 1; + var clipOutputItems = this.clipOutput; + var clippedVerticesItems = spine.Utils.setArraySize(clippedVertices, s + clipOutputCount * vertexSize); + for (var ii = 0; ii < clipOutputLength; ii += 2) { + var x = clipOutputItems[ii], y = clipOutputItems[ii + 1]; + clippedVerticesItems[s] = x; + clippedVerticesItems[s + 1] = y; + clippedVerticesItems[s + 2] = light.r; + clippedVerticesItems[s + 3] = light.g; + clippedVerticesItems[s + 4] = light.b; + clippedVerticesItems[s + 5] = light.a; + var c0 = x - x3, c1 = y - y3; + var a = (d0 * c0 + d1 * c1) * d; + var b = (d4 * c0 + d2 * c1) * d; + var c = 1 - a - b; + clippedVerticesItems[s + 6] = u1 * a + u2 * b + u3 * c; + clippedVerticesItems[s + 7] = v1 * a + v2 * b + v3 * c; + if (twoColor) { + clippedVerticesItems[s + 8] = dark.r; + clippedVerticesItems[s + 9] = dark.g; + clippedVerticesItems[s + 10] = dark.b; + clippedVerticesItems[s + 11] = dark.a; + } + s += vertexSize; + } + s = clippedTriangles.length; + var clippedTrianglesItems = spine.Utils.setArraySize(clippedTriangles, s + 3 * (clipOutputCount - 2)); + clipOutputCount--; + for (var ii = 1; ii < clipOutputCount; ii++) { + clippedTrianglesItems[s] = index; + clippedTrianglesItems[s + 1] = index + ii; + clippedTrianglesItems[s + 2] = index + ii + 1; + s += 3; + } + index += clipOutputCount + 1; + } + } + }; + SkeletonClipping.prototype.clip = function(x1, y1, x2, y2, x3, y3, clippingArea, output) { + var originalOutput = output; + var clipped = false; + var input = null; + if (clippingArea.length % 4 >= 2) { + input = output; + output = this.scratch; + } else input = this.scratch; + input.length = 0; + input.push(x1); + input.push(y1); + input.push(x2); + input.push(y2); + input.push(x3); + input.push(y3); + input.push(x1); + input.push(y1); + output.length = 0; + var clippingVertices = clippingArea; + var clippingVerticesLast = clippingArea.length - 4; + for (var i = 0; ;i += 2) { + var edgeX = clippingVertices[i], edgeY = clippingVertices[i + 1]; + var edgeX2 = clippingVertices[i + 2], edgeY2 = clippingVertices[i + 3]; + var deltaX = edgeX - edgeX2, deltaY = edgeY - edgeY2; + var inputVertices = input; + var inputVerticesLength = input.length - 2, outputStart = output.length; + for (var ii = 0; ii < inputVerticesLength; ii += 2) { + var inputX = inputVertices[ii], inputY = inputVertices[ii + 1]; + var inputX2 = inputVertices[ii + 2], inputY2 = inputVertices[ii + 3]; + var side2 = deltaX * (inputY2 - edgeY2) - deltaY * (inputX2 - edgeX2) > 0; + if (deltaX * (inputY - edgeY2) - deltaY * (inputX - edgeX2) > 0) { + if (side2) { + output.push(inputX2); + output.push(inputY2); + continue; + } + var c0 = inputY2 - inputY, c2 = inputX2 - inputX; + var s = c0 * (edgeX2 - edgeX) - c2 * (edgeY2 - edgeY); + if (Math.abs(s) > 1e-6) { + var ua = (c2 * (edgeY - inputY) - c0 * (edgeX - inputX)) / s; + output.push(edgeX + (edgeX2 - edgeX) * ua); + output.push(edgeY + (edgeY2 - edgeY) * ua); + } else { + output.push(edgeX); + output.push(edgeY); + } + } else if (side2) { + var c0 = inputY2 - inputY, c2 = inputX2 - inputX; + var s = c0 * (edgeX2 - edgeX) - c2 * (edgeY2 - edgeY); + if (Math.abs(s) > 1e-6) { + var ua = (c2 * (edgeY - inputY) - c0 * (edgeX - inputX)) / s; + output.push(edgeX + (edgeX2 - edgeX) * ua); + output.push(edgeY + (edgeY2 - edgeY) * ua); + } else { + output.push(edgeX); + output.push(edgeY); + } + output.push(inputX2); + output.push(inputY2); + } + clipped = true; + } + if (outputStart == output.length) { + originalOutput.length = 0; + return true; + } + output.push(output[0]); + output.push(output[1]); + if (i == clippingVerticesLast) break; + var temp = output; + output = input; + output.length = 0; + input = temp; + } + if (originalOutput != output) { + originalOutput.length = 0; + for (var i = 0, n = output.length - 2; i < n; i++) originalOutput[i] = output[i]; + } else originalOutput.length = originalOutput.length - 2; + return clipped; + }; + SkeletonClipping.makeClockwise = function(polygon) { + var vertices = polygon; + var verticeslength = polygon.length; + var area = vertices[verticeslength - 2] * vertices[1] - vertices[0] * vertices[verticeslength - 1], p1x = 0, p1y = 0, p2x = 0, p2y = 0; + for (var i = 0, n = verticeslength - 3; i < n; i += 2) { + p1x = vertices[i]; + p1y = vertices[i + 1]; + p2x = vertices[i + 2]; + p2y = vertices[i + 3]; + area += p1x * p2y - p2x * p1y; + } + if (area < 0) return; + for (var i = 0, lastX = verticeslength - 2, n = verticeslength >> 1; i < n; i += 2) { + var x = vertices[i], y = vertices[i + 1]; + var other = lastX - i; + vertices[i] = vertices[other]; + vertices[i + 1] = vertices[other + 1]; + vertices[other] = x; + vertices[other + 1] = y; + } + }; + return SkeletonClipping; + })(); + spine.SkeletonClipping = SkeletonClipping; + })(spine || (spine = {})); + var spine; + (function(spine) { + var SkeletonData = (function() { + function SkeletonData() { + this.bones = new Array(); + this.slots = new Array(); + this.skins = new Array(); + this.events = new Array(); + this.animations = new Array(); + this.ikConstraints = new Array(); + this.transformConstraints = new Array(); + this.pathConstraints = new Array(); + this.fps = 0; + } + SkeletonData.prototype.findBone = function(boneName) { + if (null == boneName) throw new Error("boneName cannot be null."); + var bones = this.bones; + for (var i = 0, n = bones.length; i < n; i++) { + var bone = bones[i]; + if (bone.name == boneName) return bone; + } + return null; + }; + SkeletonData.prototype.findBoneIndex = function(boneName) { + if (null == boneName) throw new Error("boneName cannot be null."); + var bones = this.bones; + for (var i = 0, n = bones.length; i < n; i++) if (bones[i].name == boneName) return i; + return -1; + }; + SkeletonData.prototype.findSlot = function(slotName) { + if (null == slotName) throw new Error("slotName cannot be null."); + var slots = this.slots; + for (var i = 0, n = slots.length; i < n; i++) { + var slot = slots[i]; + if (slot.name == slotName) return slot; + } + return null; + }; + SkeletonData.prototype.findSlotIndex = function(slotName) { + if (null == slotName) throw new Error("slotName cannot be null."); + var slots = this.slots; + for (var i = 0, n = slots.length; i < n; i++) if (slots[i].name == slotName) return i; + return -1; + }; + SkeletonData.prototype.findSkin = function(skinName) { + if (null == skinName) throw new Error("skinName cannot be null."); + var skins = this.skins; + for (var i = 0, n = skins.length; i < n; i++) { + var skin = skins[i]; + if (skin.name == skinName) return skin; + } + return null; + }; + SkeletonData.prototype.findEvent = function(eventDataName) { + if (null == eventDataName) throw new Error("eventDataName cannot be null."); + var events = this.events; + for (var i = 0, n = events.length; i < n; i++) { + var event_5 = events[i]; + if (event_5.name == eventDataName) return event_5; + } + return null; + }; + SkeletonData.prototype.findAnimation = function(animationName) { + if (null == animationName) throw new Error("animationName cannot be null."); + var animations = this.animations; + for (var i = 0, n = animations.length; i < n; i++) { + var animation = animations[i]; + if (animation.name == animationName) return animation; + } + return null; + }; + SkeletonData.prototype.findIkConstraint = function(constraintName) { + if (null == constraintName) throw new Error("constraintName cannot be null."); + var ikConstraints = this.ikConstraints; + for (var i = 0, n = ikConstraints.length; i < n; i++) { + var constraint = ikConstraints[i]; + if (constraint.name == constraintName) return constraint; + } + return null; + }; + SkeletonData.prototype.findTransformConstraint = function(constraintName) { + if (null == constraintName) throw new Error("constraintName cannot be null."); + var transformConstraints = this.transformConstraints; + for (var i = 0, n = transformConstraints.length; i < n; i++) { + var constraint = transformConstraints[i]; + if (constraint.name == constraintName) return constraint; + } + return null; + }; + SkeletonData.prototype.findPathConstraint = function(constraintName) { + if (null == constraintName) throw new Error("constraintName cannot be null."); + var pathConstraints = this.pathConstraints; + for (var i = 0, n = pathConstraints.length; i < n; i++) { + var constraint = pathConstraints[i]; + if (constraint.name == constraintName) return constraint; + } + return null; + }; + SkeletonData.prototype.findPathConstraintIndex = function(pathConstraintName) { + if (null == pathConstraintName) throw new Error("pathConstraintName cannot be null."); + var pathConstraints = this.pathConstraints; + for (var i = 0, n = pathConstraints.length; i < n; i++) if (pathConstraints[i].name == pathConstraintName) return i; + return -1; + }; + return SkeletonData; + })(); + spine.SkeletonData = SkeletonData; + })(spine || (spine = {})); + var spine; + (function(spine) { + var SkeletonJson = (function() { + function SkeletonJson(attachmentLoader) { + this.scale = 1; + this.linkedMeshes = new Array(); + this.attachmentLoader = attachmentLoader; + } + SkeletonJson.prototype.readSkeletonData = function(json) { + var scale = this.scale; + var skeletonData = new spine.SkeletonData(); + var root = "string" === typeof json ? JSON.parse(json) : json; + var skeletonMap = root.skeleton; + if (null != skeletonMap) { + skeletonData.hash = skeletonMap.hash; + skeletonData.version = skeletonMap.spine; + skeletonData.x = skeletonMap.x; + skeletonData.y = skeletonMap.y; + skeletonData.width = skeletonMap.width; + skeletonData.height = skeletonMap.height; + skeletonData.fps = skeletonMap.fps; + skeletonData.imagesPath = skeletonMap.images; + } + if (root.bones) for (var i = 0; i < root.bones.length; i++) { + var boneMap = root.bones[i]; + var parent_5 = null; + var parentName = this.getValue(boneMap, "parent", null); + if (null != parentName) { + parent_5 = skeletonData.findBone(parentName); + if (null == parent_5) throw new Error("Parent bone not found: " + parentName); + } + var data = new spine.BoneData(skeletonData.bones.length, boneMap.name, parent_5); + data.length = this.getValue(boneMap, "length", 0) * scale; + data.x = this.getValue(boneMap, "x", 0) * scale; + data.y = this.getValue(boneMap, "y", 0) * scale; + data.rotation = this.getValue(boneMap, "rotation", 0); + data.scaleX = this.getValue(boneMap, "scaleX", 1); + data.scaleY = this.getValue(boneMap, "scaleY", 1); + data.shearX = this.getValue(boneMap, "shearX", 0); + data.shearY = this.getValue(boneMap, "shearY", 0); + data.transformMode = SkeletonJson.transformModeFromString(this.getValue(boneMap, "transform", "normal")); + data.skinRequired = this.getValue(boneMap, "skin", false); + skeletonData.bones.push(data); + } + if (root.slots) for (var i = 0; i < root.slots.length; i++) { + var slotMap = root.slots[i]; + var slotName = slotMap.name; + var boneName = slotMap.bone; + var boneData = skeletonData.findBone(boneName); + if (null == boneData) throw new Error("Slot bone not found: " + boneName); + var data = new spine.SlotData(skeletonData.slots.length, slotName, boneData); + var color = this.getValue(slotMap, "color", null); + null != color && data.color.setFromString(color); + var dark = this.getValue(slotMap, "dark", null); + if (null != dark) { + data.darkColor = new spine.Color(1, 1, 1, 1); + data.darkColor.setFromString(dark); + } + data.attachmentName = this.getValue(slotMap, "attachment", null); + data.blendMode = SkeletonJson.blendModeFromString(this.getValue(slotMap, "blend", "normal")); + skeletonData.slots.push(data); + } + if (root.ik) for (var i = 0; i < root.ik.length; i++) { + var constraintMap = root.ik[i]; + var data = new spine.IkConstraintData(constraintMap.name); + data.order = this.getValue(constraintMap, "order", 0); + data.skinRequired = this.getValue(constraintMap, "skin", false); + for (var j = 0; j < constraintMap.bones.length; j++) { + var boneName = constraintMap.bones[j]; + var bone = skeletonData.findBone(boneName); + if (null == bone) throw new Error("IK bone not found: " + boneName); + data.bones.push(bone); + } + var targetName = constraintMap.target; + data.target = skeletonData.findBone(targetName); + if (null == data.target) throw new Error("IK target bone not found: " + targetName); + data.mix = this.getValue(constraintMap, "mix", 1); + data.softness = this.getValue(constraintMap, "softness", 0) * scale; + data.bendDirection = this.getValue(constraintMap, "bendPositive", true) ? 1 : -1; + data.compress = this.getValue(constraintMap, "compress", false); + data.stretch = this.getValue(constraintMap, "stretch", false); + data.uniform = this.getValue(constraintMap, "uniform", false); + skeletonData.ikConstraints.push(data); + } + if (root.transform) for (var i = 0; i < root.transform.length; i++) { + var constraintMap = root.transform[i]; + var data = new spine.TransformConstraintData(constraintMap.name); + data.order = this.getValue(constraintMap, "order", 0); + data.skinRequired = this.getValue(constraintMap, "skin", false); + for (var j = 0; j < constraintMap.bones.length; j++) { + var boneName = constraintMap.bones[j]; + var bone = skeletonData.findBone(boneName); + if (null == bone) throw new Error("Transform constraint bone not found: " + boneName); + data.bones.push(bone); + } + var targetName = constraintMap.target; + data.target = skeletonData.findBone(targetName); + if (null == data.target) throw new Error("Transform constraint target bone not found: " + targetName); + data.local = this.getValue(constraintMap, "local", false); + data.relative = this.getValue(constraintMap, "relative", false); + data.offsetRotation = this.getValue(constraintMap, "rotation", 0); + data.offsetX = this.getValue(constraintMap, "x", 0) * scale; + data.offsetY = this.getValue(constraintMap, "y", 0) * scale; + data.offsetScaleX = this.getValue(constraintMap, "scaleX", 0); + data.offsetScaleY = this.getValue(constraintMap, "scaleY", 0); + data.offsetShearY = this.getValue(constraintMap, "shearY", 0); + data.rotateMix = this.getValue(constraintMap, "rotateMix", 1); + data.translateMix = this.getValue(constraintMap, "translateMix", 1); + data.scaleMix = this.getValue(constraintMap, "scaleMix", 1); + data.shearMix = this.getValue(constraintMap, "shearMix", 1); + skeletonData.transformConstraints.push(data); + } + if (root.path) for (var i = 0; i < root.path.length; i++) { + var constraintMap = root.path[i]; + var data = new spine.PathConstraintData(constraintMap.name); + data.order = this.getValue(constraintMap, "order", 0); + data.skinRequired = this.getValue(constraintMap, "skin", false); + for (var j = 0; j < constraintMap.bones.length; j++) { + var boneName = constraintMap.bones[j]; + var bone = skeletonData.findBone(boneName); + if (null == bone) throw new Error("Transform constraint bone not found: " + boneName); + data.bones.push(bone); + } + var targetName = constraintMap.target; + data.target = skeletonData.findSlot(targetName); + if (null == data.target) throw new Error("Path target slot not found: " + targetName); + data.positionMode = SkeletonJson.positionModeFromString(this.getValue(constraintMap, "positionMode", "percent")); + data.spacingMode = SkeletonJson.spacingModeFromString(this.getValue(constraintMap, "spacingMode", "length")); + data.rotateMode = SkeletonJson.rotateModeFromString(this.getValue(constraintMap, "rotateMode", "tangent")); + data.offsetRotation = this.getValue(constraintMap, "rotation", 0); + data.position = this.getValue(constraintMap, "position", 0); + data.positionMode == spine.PositionMode.Fixed && (data.position *= scale); + data.spacing = this.getValue(constraintMap, "spacing", 0); + data.spacingMode != spine.SpacingMode.Length && data.spacingMode != spine.SpacingMode.Fixed || (data.spacing *= scale); + data.rotateMix = this.getValue(constraintMap, "rotateMix", 1); + data.translateMix = this.getValue(constraintMap, "translateMix", 1); + skeletonData.pathConstraints.push(data); + } + if (root.skins) { + var skins = root.skins; + var isArray = skins instanceof Array; + if (!isArray) { + var skinArr = []; + for (var skinName in skins) skinArr.push({ + name: skinName, + attachments: skins[skinName] + }); + skins = skinArr; + } + for (var i = 0; i < skins.length; i++) { + var skinMap = skins[i]; + var skin = new spine.Skin(skinMap.name); + if (skinMap.bones) for (var ii = 0; ii < skinMap.bones.length; ii++) { + var bone = skeletonData.findBone(skinMap.bones[ii]); + if (null == bone) throw new Error("Skin bone not found: " + skinMap.bones[i]); + skin.bones.push(bone); + } + if (skinMap.ik) for (var ii = 0; ii < skinMap.ik.length; ii++) { + var constraint = skeletonData.findIkConstraint(skinMap.ik[ii]); + if (null == constraint) throw new Error("Skin IK constraint not found: " + skinMap.ik[i]); + skin.constraints.push(constraint); + } + if (skinMap.transform) for (var ii = 0; ii < skinMap.transform.length; ii++) { + var constraint = skeletonData.findTransformConstraint(skinMap.transform[ii]); + if (null == constraint) throw new Error("Skin transform constraint not found: " + skinMap.transform[i]); + skin.constraints.push(constraint); + } + if (skinMap.path) for (var ii = 0; ii < skinMap.path.length; ii++) { + var constraint = skeletonData.findPathConstraint(skinMap.path[ii]); + if (null == constraint) throw new Error("Skin path constraint not found: " + skinMap.path[i]); + skin.constraints.push(constraint); + } + for (var slotName in skinMap.attachments) { + var slot = skeletonData.findSlot(slotName); + if (null == slot) throw new Error("Slot not found: " + slotName); + var slotMap = skinMap.attachments[slotName]; + for (var entryName in slotMap) { + var attachment = this.readAttachment(slotMap[entryName], skin, slot.index, entryName, skeletonData); + null != attachment && skin.setAttachment(slot.index, entryName, attachment); + } + } + skeletonData.skins.push(skin); + "default" == skin.name && (skeletonData.defaultSkin = skin); + } + } + for (var i = 0, n = this.linkedMeshes.length; i < n; i++) { + var linkedMesh = this.linkedMeshes[i]; + var skin = null == linkedMesh.skin ? skeletonData.defaultSkin : skeletonData.findSkin(linkedMesh.skin); + if (null == skin) throw new Error("Skin not found: " + linkedMesh.skin); + var parent_6 = skin.getAttachment(linkedMesh.slotIndex, linkedMesh.parent); + if (null == parent_6) throw new Error("Parent mesh not found: " + linkedMesh.parent); + linkedMesh.mesh.deformAttachment = linkedMesh.inheritDeform ? parent_6 : linkedMesh.mesh; + linkedMesh.mesh.setParentMesh(parent_6); + linkedMesh.mesh.updateUVs(); + } + this.linkedMeshes.length = 0; + if (root.events) for (var eventName in root.events) { + var eventMap = root.events[eventName]; + var data = new spine.EventData(eventName); + data.intValue = this.getValue(eventMap, "int", 0); + data.floatValue = this.getValue(eventMap, "float", 0); + data.stringValue = this.getValue(eventMap, "string", ""); + data.audioPath = this.getValue(eventMap, "audio", null); + if (null != data.audioPath) { + data.volume = this.getValue(eventMap, "volume", 1); + data.balance = this.getValue(eventMap, "balance", 0); + } + skeletonData.events.push(data); + } + if (root.animations) for (var animationName in root.animations) { + var animationMap = root.animations[animationName]; + this.readAnimation(animationMap, animationName, skeletonData); + } + return skeletonData; + }; + SkeletonJson.prototype.readAttachment = function(map, skin, slotIndex, name, skeletonData) { + var scale = this.scale; + name = this.getValue(map, "name", name); + var type = this.getValue(map, "type", "region"); + switch (type) { + case "region": + var path = this.getValue(map, "path", name); + var region = this.attachmentLoader.newRegionAttachment(skin, name, path); + if (null == region) return null; + region.path = path; + region.x = this.getValue(map, "x", 0) * scale; + region.y = this.getValue(map, "y", 0) * scale; + region.scaleX = this.getValue(map, "scaleX", 1); + region.scaleY = this.getValue(map, "scaleY", 1); + region.rotation = this.getValue(map, "rotation", 0); + region.width = map.width * scale; + region.height = map.height * scale; + var color = this.getValue(map, "color", null); + null != color && region.color.setFromString(color); + region.updateOffset(); + return region; + + case "boundingbox": + var box = this.attachmentLoader.newBoundingBoxAttachment(skin, name); + if (null == box) return null; + this.readVertices(map, box, map.vertexCount << 1); + var color = this.getValue(map, "color", null); + null != color && box.color.setFromString(color); + return box; + + case "mesh": + case "linkedmesh": + var path = this.getValue(map, "path", name); + var mesh = this.attachmentLoader.newMeshAttachment(skin, name, path); + if (null == mesh) return null; + mesh.path = path; + var color = this.getValue(map, "color", null); + null != color && mesh.color.setFromString(color); + mesh.width = this.getValue(map, "width", 0) * scale; + mesh.height = this.getValue(map, "height", 0) * scale; + var parent_7 = this.getValue(map, "parent", null); + if (null != parent_7) { + this.linkedMeshes.push(new LinkedMesh(mesh, this.getValue(map, "skin", null), slotIndex, parent_7, this.getValue(map, "deform", true))); + return mesh; + } + var uvs = map.uvs; + this.readVertices(map, mesh, uvs.length); + mesh.triangles = map.triangles; + mesh.regionUVs = uvs; + mesh.updateUVs(); + mesh.edges = this.getValue(map, "edges", null); + mesh.hullLength = 2 * this.getValue(map, "hull", 0); + return mesh; + + case "path": + var path = this.attachmentLoader.newPathAttachment(skin, name); + if (null == path) return null; + path.closed = this.getValue(map, "closed", false); + path.constantSpeed = this.getValue(map, "constantSpeed", true); + var vertexCount = map.vertexCount; + this.readVertices(map, path, vertexCount << 1); + var lengths = spine.Utils.newArray(vertexCount / 3, 0); + for (var i = 0; i < map.lengths.length; i++) lengths[i] = map.lengths[i] * scale; + path.lengths = lengths; + var color = this.getValue(map, "color", null); + null != color && path.color.setFromString(color); + return path; + + case "point": + var point = this.attachmentLoader.newPointAttachment(skin, name); + if (null == point) return null; + point.x = this.getValue(map, "x", 0) * scale; + point.y = this.getValue(map, "y", 0) * scale; + point.rotation = this.getValue(map, "rotation", 0); + var color = this.getValue(map, "color", null); + null != color && point.color.setFromString(color); + return point; + + case "clipping": + var clip = this.attachmentLoader.newClippingAttachment(skin, name); + if (null == clip) return null; + var end = this.getValue(map, "end", null); + if (null != end) { + var slot = skeletonData.findSlot(end); + if (null == slot) throw new Error("Clipping end slot not found: " + end); + clip.endSlot = slot; + } + var vertexCount = map.vertexCount; + this.readVertices(map, clip, vertexCount << 1); + var color = this.getValue(map, "color", null); + null != color && clip.color.setFromString(color); + return clip; + } + return null; + }; + SkeletonJson.prototype.readVertices = function(map, attachment, verticesLength) { + var scale = this.scale; + attachment.worldVerticesLength = verticesLength; + var vertices = map.vertices; + if (verticesLength == vertices.length) { + var scaledVertices = spine.Utils.toFloatArray(vertices); + if (1 != scale) for (var i = 0, n = vertices.length; i < n; i++) scaledVertices[i] *= scale; + attachment.vertices = scaledVertices; + return; + } + var weights = new Array(); + var bones = new Array(); + for (var i = 0, n = vertices.length; i < n; ) { + var boneCount = vertices[i++]; + bones.push(boneCount); + for (var nn = i + 4 * boneCount; i < nn; i += 4) { + bones.push(vertices[i]); + weights.push(vertices[i + 1] * scale); + weights.push(vertices[i + 2] * scale); + weights.push(vertices[i + 3]); + } + } + attachment.bones = bones; + attachment.vertices = spine.Utils.toFloatArray(weights); + }; + SkeletonJson.prototype.readAnimation = function(map, name, skeletonData) { + var scale = this.scale; + var timelines = new Array(); + var duration = 0; + if (map.slots) for (var slotName in map.slots) { + var slotMap = map.slots[slotName]; + var slotIndex = skeletonData.findSlotIndex(slotName); + if (-1 == slotIndex) throw new Error("Slot not found: " + slotName); + for (var timelineName in slotMap) { + var timelineMap = slotMap[timelineName]; + if ("attachment" == timelineName) { + var timeline = new spine.AttachmentTimeline(timelineMap.length); + timeline.slotIndex = slotIndex; + var frameIndex = 0; + for (var i = 0; i < timelineMap.length; i++) { + var valueMap = timelineMap[i]; + timeline.setFrame(frameIndex++, this.getValue(valueMap, "time", 0), valueMap.name); + } + timelines.push(timeline); + duration = Math.max(duration, timeline.frames[timeline.getFrameCount() - 1]); + } else if ("color" == timelineName) { + var timeline = new spine.ColorTimeline(timelineMap.length); + timeline.slotIndex = slotIndex; + var frameIndex = 0; + for (var i = 0; i < timelineMap.length; i++) { + var valueMap = timelineMap[i]; + var color = new spine.Color(); + color.setFromString(valueMap.color); + timeline.setFrame(frameIndex, this.getValue(valueMap, "time", 0), color.r, color.g, color.b, color.a); + this.readCurve(valueMap, timeline, frameIndex); + frameIndex++; + } + timelines.push(timeline); + duration = Math.max(duration, timeline.frames[(timeline.getFrameCount() - 1) * spine.ColorTimeline.ENTRIES]); + } else { + if ("twoColor" != timelineName) throw new Error("Invalid timeline type for a slot: " + timelineName + " (" + slotName + ")"); + var timeline = new spine.TwoColorTimeline(timelineMap.length); + timeline.slotIndex = slotIndex; + var frameIndex = 0; + for (var i = 0; i < timelineMap.length; i++) { + var valueMap = timelineMap[i]; + var light = new spine.Color(); + var dark = new spine.Color(); + light.setFromString(valueMap.light); + dark.setFromString(valueMap.dark); + timeline.setFrame(frameIndex, this.getValue(valueMap, "time", 0), light.r, light.g, light.b, light.a, dark.r, dark.g, dark.b); + this.readCurve(valueMap, timeline, frameIndex); + frameIndex++; + } + timelines.push(timeline); + duration = Math.max(duration, timeline.frames[(timeline.getFrameCount() - 1) * spine.TwoColorTimeline.ENTRIES]); + } + } + } + if (map.bones) for (var boneName in map.bones) { + var boneMap = map.bones[boneName]; + var boneIndex = skeletonData.findBoneIndex(boneName); + if (-1 == boneIndex) throw new Error("Bone not found: " + boneName); + for (var timelineName in boneMap) { + var timelineMap = boneMap[timelineName]; + if ("rotate" === timelineName) { + var timeline = new spine.RotateTimeline(timelineMap.length); + timeline.boneIndex = boneIndex; + var frameIndex = 0; + for (var i = 0; i < timelineMap.length; i++) { + var valueMap = timelineMap[i]; + timeline.setFrame(frameIndex, this.getValue(valueMap, "time", 0), this.getValue(valueMap, "angle", 0)); + this.readCurve(valueMap, timeline, frameIndex); + frameIndex++; + } + timelines.push(timeline); + duration = Math.max(duration, timeline.frames[(timeline.getFrameCount() - 1) * spine.RotateTimeline.ENTRIES]); + } else { + if ("translate" !== timelineName && "scale" !== timelineName && "shear" !== timelineName) throw new Error("Invalid timeline type for a bone: " + timelineName + " (" + boneName + ")"); + var timeline = null; + var timelineScale = 1, defaultValue = 0; + if ("scale" === timelineName) { + timeline = new spine.ScaleTimeline(timelineMap.length); + defaultValue = 1; + } else if ("shear" === timelineName) timeline = new spine.ShearTimeline(timelineMap.length); else { + timeline = new spine.TranslateTimeline(timelineMap.length); + timelineScale = scale; + } + timeline.boneIndex = boneIndex; + var frameIndex = 0; + for (var i = 0; i < timelineMap.length; i++) { + var valueMap = timelineMap[i]; + var x = this.getValue(valueMap, "x", defaultValue), y = this.getValue(valueMap, "y", defaultValue); + timeline.setFrame(frameIndex, this.getValue(valueMap, "time", 0), x * timelineScale, y * timelineScale); + this.readCurve(valueMap, timeline, frameIndex); + frameIndex++; + } + timelines.push(timeline); + duration = Math.max(duration, timeline.frames[(timeline.getFrameCount() - 1) * spine.TranslateTimeline.ENTRIES]); + } + } + } + if (map.ik) for (var constraintName in map.ik) { + var constraintMap = map.ik[constraintName]; + var constraint = skeletonData.findIkConstraint(constraintName); + var timeline = new spine.IkConstraintTimeline(constraintMap.length); + timeline.ikConstraintIndex = skeletonData.ikConstraints.indexOf(constraint); + var frameIndex = 0; + for (var i = 0; i < constraintMap.length; i++) { + var valueMap = constraintMap[i]; + timeline.setFrame(frameIndex, this.getValue(valueMap, "time", 0), this.getValue(valueMap, "mix", 1), this.getValue(valueMap, "softness", 0) * scale, this.getValue(valueMap, "bendPositive", true) ? 1 : -1, this.getValue(valueMap, "compress", false), this.getValue(valueMap, "stretch", false)); + this.readCurve(valueMap, timeline, frameIndex); + frameIndex++; + } + timelines.push(timeline); + duration = Math.max(duration, timeline.frames[(timeline.getFrameCount() - 1) * spine.IkConstraintTimeline.ENTRIES]); + } + if (map.transform) for (var constraintName in map.transform) { + var constraintMap = map.transform[constraintName]; + var constraint = skeletonData.findTransformConstraint(constraintName); + var timeline = new spine.TransformConstraintTimeline(constraintMap.length); + timeline.transformConstraintIndex = skeletonData.transformConstraints.indexOf(constraint); + var frameIndex = 0; + for (var i = 0; i < constraintMap.length; i++) { + var valueMap = constraintMap[i]; + timeline.setFrame(frameIndex, this.getValue(valueMap, "time", 0), this.getValue(valueMap, "rotateMix", 1), this.getValue(valueMap, "translateMix", 1), this.getValue(valueMap, "scaleMix", 1), this.getValue(valueMap, "shearMix", 1)); + this.readCurve(valueMap, timeline, frameIndex); + frameIndex++; + } + timelines.push(timeline); + duration = Math.max(duration, timeline.frames[(timeline.getFrameCount() - 1) * spine.TransformConstraintTimeline.ENTRIES]); + } + var mapPath = map.path || map.paths; + if (mapPath) for (var constraintName in mapPath) { + var constraintMap = mapPath[constraintName]; + var index = skeletonData.findPathConstraintIndex(constraintName); + if (-1 == index) throw new Error("Path constraint not found: " + constraintName); + var data = skeletonData.pathConstraints[index]; + for (var timelineName in constraintMap) { + var timelineMap = constraintMap[timelineName]; + if ("position" === timelineName || "spacing" === timelineName) { + var timeline = null; + var timelineScale = 1; + if ("spacing" === timelineName) { + timeline = new spine.PathConstraintSpacingTimeline(timelineMap.length); + data.spacingMode != spine.SpacingMode.Length && data.spacingMode != spine.SpacingMode.Fixed || (timelineScale = scale); + } else { + timeline = new spine.PathConstraintPositionTimeline(timelineMap.length); + data.positionMode == spine.PositionMode.Fixed && (timelineScale = scale); + } + timeline.pathConstraintIndex = index; + var frameIndex = 0; + for (var i = 0; i < timelineMap.length; i++) { + var valueMap = timelineMap[i]; + timeline.setFrame(frameIndex, this.getValue(valueMap, "time", 0), this.getValue(valueMap, timelineName, 0) * timelineScale); + this.readCurve(valueMap, timeline, frameIndex); + frameIndex++; + } + timelines.push(timeline); + duration = Math.max(duration, timeline.frames[(timeline.getFrameCount() - 1) * spine.PathConstraintPositionTimeline.ENTRIES]); + } else if ("mix" === timelineName) { + var timeline = new spine.PathConstraintMixTimeline(timelineMap.length); + timeline.pathConstraintIndex = index; + var frameIndex = 0; + for (var i = 0; i < timelineMap.length; i++) { + var valueMap = timelineMap[i]; + timeline.setFrame(frameIndex, this.getValue(valueMap, "time", 0), this.getValue(valueMap, "rotateMix", 1), this.getValue(valueMap, "translateMix", 1)); + this.readCurve(valueMap, timeline, frameIndex); + frameIndex++; + } + timelines.push(timeline); + duration = Math.max(duration, timeline.frames[(timeline.getFrameCount() - 1) * spine.PathConstraintMixTimeline.ENTRIES]); + } + } + } + if (map.deform) for (var deformName in map.deform) { + var deformMap = map.deform[deformName]; + var skin = skeletonData.findSkin(deformName); + if (null == skin) throw new Error("Skin not found: " + deformName); + for (var slotName in deformMap) { + var slotMap = deformMap[slotName]; + var slotIndex = skeletonData.findSlotIndex(slotName); + if (-1 == slotIndex) throw new Error("Slot not found: " + slotMap.name); + for (var timelineName in slotMap) { + var timelineMap = slotMap[timelineName]; + var attachment = skin.getAttachment(slotIndex, timelineName); + if (null == attachment) continue; + var weighted = null != attachment.bones; + var vertices = attachment.vertices; + var deformLength = weighted ? vertices.length / 3 * 2 : vertices.length; + var timeline = new spine.DeformTimeline(timelineMap.length); + timeline.slotIndex = slotIndex; + timeline.attachment = attachment; + var frameIndex = 0; + for (var j = 0; j < timelineMap.length; j++) { + var valueMap = timelineMap[j]; + var deform = void 0; + var verticesValue = this.getValue(valueMap, "vertices", null); + if (null == verticesValue) deform = weighted ? spine.Utils.newFloatArray(deformLength) : vertices; else { + deform = spine.Utils.newFloatArray(deformLength); + var start = this.getValue(valueMap, "offset", 0); + spine.Utils.arrayCopy(verticesValue, 0, deform, start, verticesValue.length); + if (1 != scale) for (var i = start, n = i + verticesValue.length; i < n; i++) deform[i] *= scale; + if (!weighted) for (var i = 0; i < deformLength; i++) deform[i] += vertices[i]; + } + timeline.setFrame(frameIndex, this.getValue(valueMap, "time", 0), deform); + this.readCurve(valueMap, timeline, frameIndex); + frameIndex++; + } + timelines.push(timeline); + duration = Math.max(duration, timeline.frames[timeline.getFrameCount() - 1]); + } + } + } + var drawOrderNode = map.drawOrder; + null == drawOrderNode && (drawOrderNode = map.draworder); + if (null != drawOrderNode) { + var timeline = new spine.DrawOrderTimeline(drawOrderNode.length); + var slotCount = skeletonData.slots.length; + var frameIndex = 0; + for (var j = 0; j < drawOrderNode.length; j++) { + var drawOrderMap = drawOrderNode[j]; + var drawOrder = null; + var offsets = this.getValue(drawOrderMap, "offsets", null); + if (null != offsets) { + drawOrder = spine.Utils.newArray(slotCount, -1); + var unchanged = spine.Utils.newArray(slotCount - offsets.length, 0); + var originalIndex = 0, unchangedIndex = 0; + for (var i = 0; i < offsets.length; i++) { + var offsetMap = offsets[i]; + var slotIndex = skeletonData.findSlotIndex(offsetMap.slot); + if (-1 == slotIndex) throw new Error("Slot not found: " + offsetMap.slot); + while (originalIndex != slotIndex) unchanged[unchangedIndex++] = originalIndex++; + drawOrder[originalIndex + offsetMap.offset] = originalIndex++; + } + while (originalIndex < slotCount) unchanged[unchangedIndex++] = originalIndex++; + for (var i = slotCount - 1; i >= 0; i--) -1 == drawOrder[i] && (drawOrder[i] = unchanged[--unchangedIndex]); + } + timeline.setFrame(frameIndex++, this.getValue(drawOrderMap, "time", 0), drawOrder); + } + timelines.push(timeline); + duration = Math.max(duration, timeline.frames[timeline.getFrameCount() - 1]); + } + if (map.events) { + var timeline = new spine.EventTimeline(map.events.length); + var frameIndex = 0; + for (var i = 0; i < map.events.length; i++) { + var eventMap = map.events[i]; + var eventData = skeletonData.findEvent(eventMap.name); + if (null == eventData) throw new Error("Event not found: " + eventMap.name); + var event_6 = new spine.Event(spine.Utils.toSinglePrecision(this.getValue(eventMap, "time", 0)), eventData); + event_6.intValue = this.getValue(eventMap, "int", eventData.intValue); + event_6.floatValue = this.getValue(eventMap, "float", eventData.floatValue); + event_6.stringValue = this.getValue(eventMap, "string", eventData.stringValue); + if (null != event_6.data.audioPath) { + event_6.volume = this.getValue(eventMap, "volume", 1); + event_6.balance = this.getValue(eventMap, "balance", 0); + } + timeline.setFrame(frameIndex++, event_6); + } + timelines.push(timeline); + duration = Math.max(duration, timeline.frames[timeline.getFrameCount() - 1]); + } + if (isNaN(duration)) throw new Error("Error while parsing animation, duration is NaN"); + skeletonData.animations.push(new spine.Animation(name, timelines, duration)); + }; + SkeletonJson.prototype.readCurve = function(map, timeline, frameIndex) { + var curve = map.curve; + if (!curve) return; + "stepped" == curve ? timeline.setStepped(frameIndex) : "[object Array]" === Object.prototype.toString.call(curve) ? timeline.setCurve(frameIndex, curve[0], curve[1], curve[2], curve[3]) : timeline.setCurve(frameIndex, curve, this.getValue(map, "c2", 0), this.getValue(map, "c3", 1), this.getValue(map, "c4", 1)); + }; + SkeletonJson.prototype.getValue = function(map, prop, defaultValue) { + return void 0 !== map[prop] ? map[prop] : defaultValue; + }; + SkeletonJson.blendModeFromString = function(str) { + str = str.toLowerCase(); + if ("normal" == str) return spine.BlendMode.Normal; + if ("additive" == str) return spine.BlendMode.Additive; + if ("multiply" == str) return spine.BlendMode.Multiply; + if ("screen" == str) return spine.BlendMode.Screen; + throw new Error("Unknown blend mode: " + str); + }; + SkeletonJson.positionModeFromString = function(str) { + str = str.toLowerCase(); + if ("fixed" == str) return spine.PositionMode.Fixed; + if ("percent" == str) return spine.PositionMode.Percent; + throw new Error("Unknown position mode: " + str); + }; + SkeletonJson.spacingModeFromString = function(str) { + str = str.toLowerCase(); + if ("length" == str) return spine.SpacingMode.Length; + if ("fixed" == str) return spine.SpacingMode.Fixed; + if ("percent" == str) return spine.SpacingMode.Percent; + throw new Error("Unknown position mode: " + str); + }; + SkeletonJson.rotateModeFromString = function(str) { + str = str.toLowerCase(); + if ("tangent" == str) return spine.RotateMode.Tangent; + if ("chain" == str) return spine.RotateMode.Chain; + if ("chainscale" == str) return spine.RotateMode.ChainScale; + throw new Error("Unknown rotate mode: " + str); + }; + SkeletonJson.transformModeFromString = function(str) { + str = str.toLowerCase(); + if ("normal" == str) return spine.TransformMode.Normal; + if ("onlytranslation" == str) return spine.TransformMode.OnlyTranslation; + if ("norotationorreflection" == str) return spine.TransformMode.NoRotationOrReflection; + if ("noscale" == str) return spine.TransformMode.NoScale; + if ("noscaleorreflection" == str) return spine.TransformMode.NoScaleOrReflection; + throw new Error("Unknown transform mode: " + str); + }; + return SkeletonJson; + })(); + spine.SkeletonJson = SkeletonJson; + var LinkedMesh = (function() { + function LinkedMesh(mesh, skin, slotIndex, parent, inheritDeform) { + this.mesh = mesh; + this.skin = skin; + this.slotIndex = slotIndex; + this.parent = parent; + this.inheritDeform = inheritDeform; + } + return LinkedMesh; + })(); + })(spine || (spine = {})); + var spine; + (function(spine) { + var SkinEntry = (function() { + function SkinEntry(slotIndex, name, attachment) { + this.slotIndex = slotIndex; + this.name = name; + this.attachment = attachment; + } + return SkinEntry; + })(); + spine.SkinEntry = SkinEntry; + var Skin = (function() { + function Skin(name) { + this.attachments = new Array(); + this.bones = Array(); + this.constraints = new Array(); + if (null == name) throw new Error("name cannot be null."); + this.name = name; + } + Skin.prototype.setAttachment = function(slotIndex, name, attachment) { + if (null == attachment) throw new Error("attachment cannot be null."); + var attachments = this.attachments; + slotIndex >= attachments.length && (attachments.length = slotIndex + 1); + attachments[slotIndex] || (attachments[slotIndex] = {}); + attachments[slotIndex][name] = attachment; + }; + Skin.prototype.addSkin = function(skin) { + for (var i = 0; i < skin.bones.length; i++) { + var bone = skin.bones[i]; + var contained = false; + for (var j = 0; j < this.bones.length; j++) if (this.bones[j] == bone) { + contained = true; + break; + } + contained || this.bones.push(bone); + } + for (var i = 0; i < skin.constraints.length; i++) { + var constraint = skin.constraints[i]; + var contained = false; + for (var j = 0; j < this.constraints.length; j++) if (this.constraints[j] == constraint) { + contained = true; + break; + } + contained || this.constraints.push(constraint); + } + var attachments = skin.getAttachments(); + for (var i = 0; i < attachments.length; i++) { + var attachment = attachments[i]; + this.setAttachment(attachment.slotIndex, attachment.name, attachment.attachment); + } + }; + Skin.prototype.copySkin = function(skin) { + for (var i = 0; i < skin.bones.length; i++) { + var bone = skin.bones[i]; + var contained = false; + for (var j = 0; j < this.bones.length; j++) if (this.bones[j] == bone) { + contained = true; + break; + } + contained || this.bones.push(bone); + } + for (var i = 0; i < skin.constraints.length; i++) { + var constraint = skin.constraints[i]; + var contained = false; + for (var j = 0; j < this.constraints.length; j++) if (this.constraints[j] == constraint) { + contained = true; + break; + } + contained || this.constraints.push(constraint); + } + var attachments = skin.getAttachments(); + for (var i = 0; i < attachments.length; i++) { + var attachment = attachments[i]; + if (null == attachment.attachment) continue; + if (attachment.attachment instanceof spine.MeshAttachment) { + attachment.attachment = attachment.attachment.newLinkedMesh(); + this.setAttachment(attachment.slotIndex, attachment.name, attachment.attachment); + } else { + attachment.attachment = attachment.attachment.copy(); + this.setAttachment(attachment.slotIndex, attachment.name, attachment.attachment); + } + } + }; + Skin.prototype.getAttachment = function(slotIndex, name) { + var dictionary = this.attachments[slotIndex]; + return dictionary ? dictionary[name] : null; + }; + Skin.prototype.removeAttachment = function(slotIndex, name) { + var dictionary = this.attachments[slotIndex]; + dictionary && (dictionary[name] = null); + }; + Skin.prototype.getAttachments = function() { + var entries = new Array(); + for (var i = 0; i < this.attachments.length; i++) { + var slotAttachments = this.attachments[i]; + if (slotAttachments) for (var name_4 in slotAttachments) { + var attachment = slotAttachments[name_4]; + attachment && entries.push(new SkinEntry(i, name_4, attachment)); + } + } + return entries; + }; + Skin.prototype.getAttachmentsForSlot = function(slotIndex, attachments) { + var slotAttachments = this.attachments[slotIndex]; + if (slotAttachments) for (var name_5 in slotAttachments) { + var attachment = slotAttachments[name_5]; + attachment && attachments.push(new SkinEntry(slotIndex, name_5, attachment)); + } + }; + Skin.prototype.clear = function() { + this.attachments.length = 0; + this.bones.length = 0; + this.constraints.length = 0; + }; + Skin.prototype.attachAll = function(skeleton, oldSkin) { + var slotIndex = 0; + for (var i = 0; i < skeleton.slots.length; i++) { + var slot = skeleton.slots[i]; + var slotAttachment = slot.getAttachment(); + if (slotAttachment && slotIndex < oldSkin.attachments.length) { + var dictionary = oldSkin.attachments[slotIndex]; + for (var key in dictionary) { + var skinAttachment = dictionary[key]; + if (slotAttachment == skinAttachment) { + var attachment = this.getAttachment(slotIndex, key); + null != attachment && slot.setAttachment(attachment); + break; + } + } + } + slotIndex++; + } + }; + return Skin; + })(); + spine.Skin = Skin; + })(spine || (spine = {})); + var spine; + (function(spine) { + var Slot = (function() { + function Slot(data, bone) { + this.deform = new Array(); + if (null == data) throw new Error("data cannot be null."); + if (null == bone) throw new Error("bone cannot be null."); + this.data = data; + this.bone = bone; + this.color = new spine.Color(); + this.darkColor = null == data.darkColor ? null : new spine.Color(); + this.setToSetupPose(); + } + Slot.prototype.getSkeleton = function() { + return this.bone.skeleton; + }; + Slot.prototype.getAttachment = function() { + return this.attachment; + }; + Slot.prototype.setAttachment = function(attachment) { + if (this.attachment == attachment) return; + this.attachment = attachment; + this.attachmentTime = this.bone.skeleton.time; + this.deform.length = 0; + }; + Slot.prototype.setAttachmentTime = function(time) { + this.attachmentTime = this.bone.skeleton.time - time; + }; + Slot.prototype.getAttachmentTime = function() { + return this.bone.skeleton.time - this.attachmentTime; + }; + Slot.prototype.setToSetupPose = function() { + this.color.setFromColor(this.data.color); + null != this.darkColor && this.darkColor.setFromColor(this.data.darkColor); + if (null == this.data.attachmentName) this.attachment = null; else { + this.attachment = null; + this.setAttachment(this.bone.skeleton.getAttachment(this.data.index, this.data.attachmentName)); + } + }; + return Slot; + })(); + spine.Slot = Slot; + })(spine || (spine = {})); + var spine; + (function(spine) { + var SlotData = (function() { + function SlotData(index, name, boneData) { + this.color = new spine.Color(1, 1, 1, 1); + if (index < 0) throw new Error("index must be >= 0."); + if (null == name) throw new Error("name cannot be null."); + if (null == boneData) throw new Error("boneData cannot be null."); + this.index = index; + this.name = name; + this.boneData = boneData; + } + return SlotData; + })(); + spine.SlotData = SlotData; + })(spine || (spine = {})); + var spine; + (function(spine) { + var Texture = (function() { + function Texture(image) { + this._image = image; + } + Texture.prototype.getImage = function() { + return this._image; + }; + Texture.filterFromString = function(text) { + switch (text.toLowerCase()) { + case "nearest": + return TextureFilter.Nearest; + + case "linear": + return TextureFilter.Linear; + + case "mipmap": + return TextureFilter.MipMap; + + case "mipmapnearestnearest": + return TextureFilter.MipMapNearestNearest; + + case "mipmaplinearnearest": + return TextureFilter.MipMapLinearNearest; + + case "mipmapnearestlinear": + return TextureFilter.MipMapNearestLinear; + + case "mipmaplinearlinear": + return TextureFilter.MipMapLinearLinear; + + default: + throw new Error("Unknown texture filter " + text); + } + }; + Texture.wrapFromString = function(text) { + switch (text.toLowerCase()) { + case "mirroredtepeat": + return TextureWrap.MirroredRepeat; + + case "clamptoedge": + return TextureWrap.ClampToEdge; + + case "repeat": + return TextureWrap.Repeat; + + default: + throw new Error("Unknown texture wrap " + text); + } + }; + return Texture; + })(); + spine.Texture = Texture; + var TextureFilter; + (function(TextureFilter) { + TextureFilter[TextureFilter["Nearest"] = 9728] = "Nearest"; + TextureFilter[TextureFilter["Linear"] = 9729] = "Linear"; + TextureFilter[TextureFilter["MipMap"] = 9987] = "MipMap"; + TextureFilter[TextureFilter["MipMapNearestNearest"] = 9984] = "MipMapNearestNearest"; + TextureFilter[TextureFilter["MipMapLinearNearest"] = 9985] = "MipMapLinearNearest"; + TextureFilter[TextureFilter["MipMapNearestLinear"] = 9986] = "MipMapNearestLinear"; + TextureFilter[TextureFilter["MipMapLinearLinear"] = 9987] = "MipMapLinearLinear"; + })(TextureFilter = spine.TextureFilter || (spine.TextureFilter = {})); + var TextureWrap; + (function(TextureWrap) { + TextureWrap[TextureWrap["MirroredRepeat"] = 33648] = "MirroredRepeat"; + TextureWrap[TextureWrap["ClampToEdge"] = 33071] = "ClampToEdge"; + TextureWrap[TextureWrap["Repeat"] = 10497] = "Repeat"; + })(TextureWrap = spine.TextureWrap || (spine.TextureWrap = {})); + var TextureRegion = (function() { + function TextureRegion() { + this.u = 0; + this.v = 0; + this.u2 = 0; + this.v2 = 0; + this.width = 0; + this.height = 0; + this.rotate = false; + this.offsetX = 0; + this.offsetY = 0; + this.originalWidth = 0; + this.originalHeight = 0; + } + return TextureRegion; + })(); + spine.TextureRegion = TextureRegion; + var FakeTexture = (function(_super) { + __extends(FakeTexture, _super); + function FakeTexture() { + return null !== _super && _super.apply(this, arguments) || this; + } + FakeTexture.prototype.setFilters = function(minFilter, magFilter) {}; + FakeTexture.prototype.setWraps = function(uWrap, vWrap) {}; + FakeTexture.prototype.dispose = function() {}; + return FakeTexture; + })(Texture); + spine.FakeTexture = FakeTexture; + })(spine || (spine = {})); + var spine; + (function(spine) { + var TextureAtlas = (function() { + function TextureAtlas(atlasText, textureLoader) { + this.pages = new Array(); + this.regions = new Array(); + this.load(atlasText, textureLoader); + } + TextureAtlas.prototype.load = function(atlasText, textureLoader) { + if (null == textureLoader) throw new Error("textureLoader cannot be null."); + var reader = new TextureAtlasReader(atlasText); + var tuple = new Array(4); + var page = null; + while (true) { + var line = reader.readLine(); + if (null == line) break; + line = line.trim(); + if (0 == line.length) page = null; else if (page) { + var region = new TextureAtlasRegion(); + region.name = line; + region.page = page; + var rotateValue = reader.readValue(); + "true" == rotateValue.toLocaleLowerCase() ? region.degrees = 90 : "false" == rotateValue.toLocaleLowerCase() ? region.degrees = 0 : region.degrees = parseFloat(rotateValue); + region.rotate = 90 == region.degrees; + reader.readTuple(tuple); + var x = parseInt(tuple[0]); + var y = parseInt(tuple[1]); + reader.readTuple(tuple); + var width = parseInt(tuple[0]); + var height = parseInt(tuple[1]); + region.u = x / page.width; + region.v = y / page.height; + if (region.rotate) { + region.u2 = (x + height) / page.width; + region.v2 = (y + width) / page.height; + } else { + region.u2 = (x + width) / page.width; + region.v2 = (y + height) / page.height; + } + region.x = x; + region.y = y; + region.width = Math.abs(width); + region.height = Math.abs(height); + 4 == reader.readTuple(tuple) && 4 == reader.readTuple(tuple) && reader.readTuple(tuple); + region.originalWidth = parseInt(tuple[0]); + region.originalHeight = parseInt(tuple[1]); + reader.readTuple(tuple); + region.offsetX = parseInt(tuple[0]); + region.offsetY = parseInt(tuple[1]); + region.index = parseInt(reader.readValue()); + region.texture = page.texture; + this.regions.push(region); + } else { + page = new TextureAtlasPage(); + page.name = line; + if (2 == reader.readTuple(tuple)) { + page.width = parseInt(tuple[0]); + page.height = parseInt(tuple[1]); + reader.readTuple(tuple); + } + reader.readTuple(tuple); + page.minFilter = spine.Texture.filterFromString(tuple[0]); + page.magFilter = spine.Texture.filterFromString(tuple[1]); + var direction = reader.readValue(); + page.uWrap = spine.TextureWrap.ClampToEdge; + page.vWrap = spine.TextureWrap.ClampToEdge; + "x" == direction ? page.uWrap = spine.TextureWrap.Repeat : "y" == direction ? page.vWrap = spine.TextureWrap.Repeat : "xy" == direction && (page.uWrap = page.vWrap = spine.TextureWrap.Repeat); + page.texture = textureLoader(line); + page.texture.setFilters(page.minFilter, page.magFilter); + page.texture.setWraps(page.uWrap, page.vWrap); + page.width = page.texture.getImage().width; + page.height = page.texture.getImage().height; + this.pages.push(page); + } + } + }; + TextureAtlas.prototype.findRegion = function(name) { + for (var i = 0; i < this.regions.length; i++) if (this.regions[i].name == name) return this.regions[i]; + return null; + }; + TextureAtlas.prototype.dispose = function() { + for (var i = 0; i < this.pages.length; i++) this.pages[i].texture.dispose(); + }; + return TextureAtlas; + })(); + spine.TextureAtlas = TextureAtlas; + var TextureAtlasReader = (function() { + function TextureAtlasReader(text) { + this.index = 0; + this.lines = text.split(/\r\n|\r|\n/); + } + TextureAtlasReader.prototype.readLine = function() { + if (this.index >= this.lines.length) return null; + return this.lines[this.index++]; + }; + TextureAtlasReader.prototype.readValue = function() { + var line = this.readLine(); + var colon = line.indexOf(":"); + if (-1 == colon) throw new Error("Invalid line: " + line); + return line.substring(colon + 1).trim(); + }; + TextureAtlasReader.prototype.readTuple = function(tuple) { + var line = this.readLine(); + var colon = line.indexOf(":"); + if (-1 == colon) throw new Error("Invalid line: " + line); + var i = 0, lastMatch = colon + 1; + for (;i < 3; i++) { + var comma = line.indexOf(",", lastMatch); + if (-1 == comma) break; + tuple[i] = line.substr(lastMatch, comma - lastMatch).trim(); + lastMatch = comma + 1; + } + tuple[i] = line.substring(lastMatch).trim(); + return i + 1; + }; + return TextureAtlasReader; + })(); + var TextureAtlasPage = (function() { + function TextureAtlasPage() {} + return TextureAtlasPage; + })(); + spine.TextureAtlasPage = TextureAtlasPage; + var TextureAtlasRegion = (function(_super) { + __extends(TextureAtlasRegion, _super); + function TextureAtlasRegion() { + return null !== _super && _super.apply(this, arguments) || this; + } + return TextureAtlasRegion; + })(spine.TextureRegion); + spine.TextureAtlasRegion = TextureAtlasRegion; + })(spine || (spine = {})); + var spine; + (function(spine) { + var TransformConstraint = (function() { + function TransformConstraint(data, skeleton) { + this.rotateMix = 0; + this.translateMix = 0; + this.scaleMix = 0; + this.shearMix = 0; + this.temp = new spine.Vector2(); + this.active = false; + if (null == data) throw new Error("data cannot be null."); + if (null == skeleton) throw new Error("skeleton cannot be null."); + this.data = data; + this.rotateMix = data.rotateMix; + this.translateMix = data.translateMix; + this.scaleMix = data.scaleMix; + this.shearMix = data.shearMix; + this.bones = new Array(); + for (var i = 0; i < data.bones.length; i++) this.bones.push(skeleton.findBone(data.bones[i].name)); + this.target = skeleton.findBone(data.target.name); + } + TransformConstraint.prototype.isActive = function() { + return this.active; + }; + TransformConstraint.prototype.apply = function() { + this.update(); + }; + TransformConstraint.prototype.update = function() { + this.data.local ? this.data.relative ? this.applyRelativeLocal() : this.applyAbsoluteLocal() : this.data.relative ? this.applyRelativeWorld() : this.applyAbsoluteWorld(); + }; + TransformConstraint.prototype.applyAbsoluteWorld = function() { + var rotateMix = this.rotateMix, translateMix = this.translateMix, scaleMix = this.scaleMix, shearMix = this.shearMix; + var target = this.target; + var ta = target.a, tb = target.b, tc = target.c, td = target.d; + var degRadReflect = ta * td - tb * tc > 0 ? spine.MathUtils.degRad : -spine.MathUtils.degRad; + var offsetRotation = this.data.offsetRotation * degRadReflect; + var offsetShearY = this.data.offsetShearY * degRadReflect; + var bones = this.bones; + for (var i = 0, n = bones.length; i < n; i++) { + var bone = bones[i]; + var modified = false; + if (0 != rotateMix) { + var a = bone.a, b = bone.b, c = bone.c, d = bone.d; + var r = Math.atan2(tc, ta) - Math.atan2(c, a) + offsetRotation; + r > spine.MathUtils.PI ? r -= spine.MathUtils.PI2 : r < -spine.MathUtils.PI && (r += spine.MathUtils.PI2); + r *= rotateMix; + var cos = Math.cos(r), sin = Math.sin(r); + bone.a = cos * a - sin * c; + bone.b = cos * b - sin * d; + bone.c = sin * a + cos * c; + bone.d = sin * b + cos * d; + modified = true; + } + if (0 != translateMix) { + var temp = this.temp; + target.localToWorld(temp.set(this.data.offsetX, this.data.offsetY)); + bone.worldX += (temp.x - bone.worldX) * translateMix; + bone.worldY += (temp.y - bone.worldY) * translateMix; + modified = true; + } + if (scaleMix > 0) { + var s = Math.sqrt(bone.a * bone.a + bone.c * bone.c); + var ts = Math.sqrt(ta * ta + tc * tc); + s > 1e-5 && (s = (s + (ts - s + this.data.offsetScaleX) * scaleMix) / s); + bone.a *= s; + bone.c *= s; + s = Math.sqrt(bone.b * bone.b + bone.d * bone.d); + ts = Math.sqrt(tb * tb + td * td); + s > 1e-5 && (s = (s + (ts - s + this.data.offsetScaleY) * scaleMix) / s); + bone.b *= s; + bone.d *= s; + modified = true; + } + if (shearMix > 0) { + var b = bone.b, d = bone.d; + var by = Math.atan2(d, b); + var r = Math.atan2(td, tb) - Math.atan2(tc, ta) - (by - Math.atan2(bone.c, bone.a)); + r > spine.MathUtils.PI ? r -= spine.MathUtils.PI2 : r < -spine.MathUtils.PI && (r += spine.MathUtils.PI2); + r = by + (r + offsetShearY) * shearMix; + var s = Math.sqrt(b * b + d * d); + bone.b = Math.cos(r) * s; + bone.d = Math.sin(r) * s; + modified = true; + } + modified && (bone.appliedValid = false); + } + }; + TransformConstraint.prototype.applyRelativeWorld = function() { + var rotateMix = this.rotateMix, translateMix = this.translateMix, scaleMix = this.scaleMix, shearMix = this.shearMix; + var target = this.target; + var ta = target.a, tb = target.b, tc = target.c, td = target.d; + var degRadReflect = ta * td - tb * tc > 0 ? spine.MathUtils.degRad : -spine.MathUtils.degRad; + var offsetRotation = this.data.offsetRotation * degRadReflect, offsetShearY = this.data.offsetShearY * degRadReflect; + var bones = this.bones; + for (var i = 0, n = bones.length; i < n; i++) { + var bone = bones[i]; + var modified = false; + if (0 != rotateMix) { + var a = bone.a, b = bone.b, c = bone.c, d = bone.d; + var r = Math.atan2(tc, ta) + offsetRotation; + r > spine.MathUtils.PI ? r -= spine.MathUtils.PI2 : r < -spine.MathUtils.PI && (r += spine.MathUtils.PI2); + r *= rotateMix; + var cos = Math.cos(r), sin = Math.sin(r); + bone.a = cos * a - sin * c; + bone.b = cos * b - sin * d; + bone.c = sin * a + cos * c; + bone.d = sin * b + cos * d; + modified = true; + } + if (0 != translateMix) { + var temp = this.temp; + target.localToWorld(temp.set(this.data.offsetX, this.data.offsetY)); + bone.worldX += temp.x * translateMix; + bone.worldY += temp.y * translateMix; + modified = true; + } + if (scaleMix > 0) { + var s = (Math.sqrt(ta * ta + tc * tc) - 1 + this.data.offsetScaleX) * scaleMix + 1; + bone.a *= s; + bone.c *= s; + s = (Math.sqrt(tb * tb + td * td) - 1 + this.data.offsetScaleY) * scaleMix + 1; + bone.b *= s; + bone.d *= s; + modified = true; + } + if (shearMix > 0) { + var r = Math.atan2(td, tb) - Math.atan2(tc, ta); + r > spine.MathUtils.PI ? r -= spine.MathUtils.PI2 : r < -spine.MathUtils.PI && (r += spine.MathUtils.PI2); + var b = bone.b, d = bone.d; + r = Math.atan2(d, b) + (r - spine.MathUtils.PI / 2 + offsetShearY) * shearMix; + var s = Math.sqrt(b * b + d * d); + bone.b = Math.cos(r) * s; + bone.d = Math.sin(r) * s; + modified = true; + } + modified && (bone.appliedValid = false); + } + }; + TransformConstraint.prototype.applyAbsoluteLocal = function() { + var rotateMix = this.rotateMix, translateMix = this.translateMix, scaleMix = this.scaleMix, shearMix = this.shearMix; + var target = this.target; + target.appliedValid || target.updateAppliedTransform(); + var bones = this.bones; + for (var i = 0, n = bones.length; i < n; i++) { + var bone = bones[i]; + bone.appliedValid || bone.updateAppliedTransform(); + var rotation = bone.arotation; + if (0 != rotateMix) { + var r = target.arotation - rotation + this.data.offsetRotation; + r -= 360 * (16384 - (16384.499999999996 - r / 360 | 0)); + rotation += r * rotateMix; + } + var x = bone.ax, y = bone.ay; + if (0 != translateMix) { + x += (target.ax - x + this.data.offsetX) * translateMix; + y += (target.ay - y + this.data.offsetY) * translateMix; + } + var scaleX = bone.ascaleX, scaleY = bone.ascaleY; + if (0 != scaleMix) { + scaleX > 1e-5 && (scaleX = (scaleX + (target.ascaleX - scaleX + this.data.offsetScaleX) * scaleMix) / scaleX); + scaleY > 1e-5 && (scaleY = (scaleY + (target.ascaleY - scaleY + this.data.offsetScaleY) * scaleMix) / scaleY); + } + var shearY = bone.ashearY; + if (0 != shearMix) { + var r = target.ashearY - shearY + this.data.offsetShearY; + r -= 360 * (16384 - (16384.499999999996 - r / 360 | 0)); + bone.shearY += r * shearMix; + } + bone.updateWorldTransformWith(x, y, rotation, scaleX, scaleY, bone.ashearX, shearY); + } + }; + TransformConstraint.prototype.applyRelativeLocal = function() { + var rotateMix = this.rotateMix, translateMix = this.translateMix, scaleMix = this.scaleMix, shearMix = this.shearMix; + var target = this.target; + target.appliedValid || target.updateAppliedTransform(); + var bones = this.bones; + for (var i = 0, n = bones.length; i < n; i++) { + var bone = bones[i]; + bone.appliedValid || bone.updateAppliedTransform(); + var rotation = bone.arotation; + 0 != rotateMix && (rotation += (target.arotation + this.data.offsetRotation) * rotateMix); + var x = bone.ax, y = bone.ay; + if (0 != translateMix) { + x += (target.ax + this.data.offsetX) * translateMix; + y += (target.ay + this.data.offsetY) * translateMix; + } + var scaleX = bone.ascaleX, scaleY = bone.ascaleY; + if (0 != scaleMix) { + scaleX > 1e-5 && (scaleX *= (target.ascaleX - 1 + this.data.offsetScaleX) * scaleMix + 1); + scaleY > 1e-5 && (scaleY *= (target.ascaleY - 1 + this.data.offsetScaleY) * scaleMix + 1); + } + var shearY = bone.ashearY; + 0 != shearMix && (shearY += (target.ashearY + this.data.offsetShearY) * shearMix); + bone.updateWorldTransformWith(x, y, rotation, scaleX, scaleY, bone.ashearX, shearY); + } + }; + return TransformConstraint; + })(); + spine.TransformConstraint = TransformConstraint; + })(spine || (spine = {})); + var spine; + (function(spine) { + var TransformConstraintData = (function(_super) { + __extends(TransformConstraintData, _super); + function TransformConstraintData(name) { + var _this = _super.call(this, name, 0, false) || this; + _this.bones = new Array(); + _this.rotateMix = 0; + _this.translateMix = 0; + _this.scaleMix = 0; + _this.shearMix = 0; + _this.offsetRotation = 0; + _this.offsetX = 0; + _this.offsetY = 0; + _this.offsetScaleX = 0; + _this.offsetScaleY = 0; + _this.offsetShearY = 0; + _this.relative = false; + _this.local = false; + return _this; + } + return TransformConstraintData; + })(spine.ConstraintData); + spine.TransformConstraintData = TransformConstraintData; + })(spine || (spine = {})); + var spine; + (function(spine) { + var Triangulator = (function() { + function Triangulator() { + this.convexPolygons = new Array(); + this.convexPolygonsIndices = new Array(); + this.indicesArray = new Array(); + this.isConcaveArray = new Array(); + this.triangles = new Array(); + this.polygonPool = new spine.Pool(function() { + return new Array(); + }); + this.polygonIndicesPool = new spine.Pool(function() { + return new Array(); + }); + } + Triangulator.prototype.triangulate = function(verticesArray) { + var vertices = verticesArray; + var vertexCount = verticesArray.length >> 1; + var indices = this.indicesArray; + indices.length = 0; + for (var i = 0; i < vertexCount; i++) indices[i] = i; + var isConcave = this.isConcaveArray; + isConcave.length = 0; + for (var i = 0, n = vertexCount; i < n; ++i) isConcave[i] = Triangulator.isConcave(i, vertexCount, vertices, indices); + var triangles = this.triangles; + triangles.length = 0; + while (vertexCount > 3) { + var previous = vertexCount - 1, i = 0, next = 1; + while (true) { + outer: if (!isConcave[i]) { + var p1 = indices[previous] << 1, p2 = indices[i] << 1, p3 = indices[next] << 1; + var p1x = vertices[p1], p1y = vertices[p1 + 1]; + var p2x = vertices[p2], p2y = vertices[p2 + 1]; + var p3x = vertices[p3], p3y = vertices[p3 + 1]; + for (var ii = (next + 1) % vertexCount; ii != previous; ii = (ii + 1) % vertexCount) { + if (!isConcave[ii]) continue; + var v = indices[ii] << 1; + var vx = vertices[v], vy = vertices[v + 1]; + if (Triangulator.positiveArea(p3x, p3y, p1x, p1y, vx, vy) && Triangulator.positiveArea(p1x, p1y, p2x, p2y, vx, vy) && Triangulator.positiveArea(p2x, p2y, p3x, p3y, vx, vy)) break outer; + } + break; + } + if (0 == next) { + do { + if (!isConcave[i]) break; + i--; + } while (i > 0); + break; + } + previous = i; + i = next; + next = (next + 1) % vertexCount; + } + triangles.push(indices[(vertexCount + i - 1) % vertexCount]); + triangles.push(indices[i]); + triangles.push(indices[(i + 1) % vertexCount]); + indices.splice(i, 1); + isConcave.splice(i, 1); + vertexCount--; + var previousIndex = (vertexCount + i - 1) % vertexCount; + var nextIndex = i == vertexCount ? 0 : i; + isConcave[previousIndex] = Triangulator.isConcave(previousIndex, vertexCount, vertices, indices); + isConcave[nextIndex] = Triangulator.isConcave(nextIndex, vertexCount, vertices, indices); + } + if (3 == vertexCount) { + triangles.push(indices[2]); + triangles.push(indices[0]); + triangles.push(indices[1]); + } + return triangles; + }; + Triangulator.prototype.decompose = function(verticesArray, triangles) { + var vertices = verticesArray; + var convexPolygons = this.convexPolygons; + this.polygonPool.freeAll(convexPolygons); + convexPolygons.length = 0; + var convexPolygonsIndices = this.convexPolygonsIndices; + this.polygonIndicesPool.freeAll(convexPolygonsIndices); + convexPolygonsIndices.length = 0; + var polygonIndices = this.polygonIndicesPool.obtain(); + polygonIndices.length = 0; + var polygon = this.polygonPool.obtain(); + polygon.length = 0; + var fanBaseIndex = -1, lastWinding = 0; + for (var i = 0, n = triangles.length; i < n; i += 3) { + var t1 = triangles[i] << 1, t2 = triangles[i + 1] << 1, t3 = triangles[i + 2] << 1; + var x1 = vertices[t1], y1 = vertices[t1 + 1]; + var x2 = vertices[t2], y2 = vertices[t2 + 1]; + var x3 = vertices[t3], y3 = vertices[t3 + 1]; + var merged = false; + if (fanBaseIndex == t1) { + var o = polygon.length - 4; + var winding1 = Triangulator.winding(polygon[o], polygon[o + 1], polygon[o + 2], polygon[o + 3], x3, y3); + var winding2 = Triangulator.winding(x3, y3, polygon[0], polygon[1], polygon[2], polygon[3]); + if (winding1 == lastWinding && winding2 == lastWinding) { + polygon.push(x3); + polygon.push(y3); + polygonIndices.push(t3); + merged = true; + } + } + if (!merged) { + if (polygon.length > 0) { + convexPolygons.push(polygon); + convexPolygonsIndices.push(polygonIndices); + } else { + this.polygonPool.free(polygon); + this.polygonIndicesPool.free(polygonIndices); + } + polygon = this.polygonPool.obtain(); + polygon.length = 0; + polygon.push(x1); + polygon.push(y1); + polygon.push(x2); + polygon.push(y2); + polygon.push(x3); + polygon.push(y3); + polygonIndices = this.polygonIndicesPool.obtain(); + polygonIndices.length = 0; + polygonIndices.push(t1); + polygonIndices.push(t2); + polygonIndices.push(t3); + lastWinding = Triangulator.winding(x1, y1, x2, y2, x3, y3); + fanBaseIndex = t1; + } + } + if (polygon.length > 0) { + convexPolygons.push(polygon); + convexPolygonsIndices.push(polygonIndices); + } + for (var i = 0, n = convexPolygons.length; i < n; i++) { + polygonIndices = convexPolygonsIndices[i]; + if (0 == polygonIndices.length) continue; + var firstIndex = polygonIndices[0]; + var lastIndex = polygonIndices[polygonIndices.length - 1]; + polygon = convexPolygons[i]; + var o = polygon.length - 4; + var prevPrevX = polygon[o], prevPrevY = polygon[o + 1]; + var prevX = polygon[o + 2], prevY = polygon[o + 3]; + var firstX = polygon[0], firstY = polygon[1]; + var secondX = polygon[2], secondY = polygon[3]; + var winding = Triangulator.winding(prevPrevX, prevPrevY, prevX, prevY, firstX, firstY); + for (var ii = 0; ii < n; ii++) { + if (ii == i) continue; + var otherIndices = convexPolygonsIndices[ii]; + if (3 != otherIndices.length) continue; + var otherFirstIndex = otherIndices[0]; + var otherSecondIndex = otherIndices[1]; + var otherLastIndex = otherIndices[2]; + var otherPoly = convexPolygons[ii]; + var x3 = otherPoly[otherPoly.length - 2], y3 = otherPoly[otherPoly.length - 1]; + if (otherFirstIndex != firstIndex || otherSecondIndex != lastIndex) continue; + var winding1 = Triangulator.winding(prevPrevX, prevPrevY, prevX, prevY, x3, y3); + var winding2 = Triangulator.winding(x3, y3, firstX, firstY, secondX, secondY); + if (winding1 == winding && winding2 == winding) { + otherPoly.length = 0; + otherIndices.length = 0; + polygon.push(x3); + polygon.push(y3); + polygonIndices.push(otherLastIndex); + prevPrevX = prevX; + prevPrevY = prevY; + prevX = x3; + prevY = y3; + ii = 0; + } + } + } + for (var i = convexPolygons.length - 1; i >= 0; i--) { + polygon = convexPolygons[i]; + if (0 == polygon.length) { + convexPolygons.splice(i, 1); + this.polygonPool.free(polygon); + polygonIndices = convexPolygonsIndices[i]; + convexPolygonsIndices.splice(i, 1); + this.polygonIndicesPool.free(polygonIndices); + } + } + return convexPolygons; + }; + Triangulator.isConcave = function(index, vertexCount, vertices, indices) { + var previous = indices[(vertexCount + index - 1) % vertexCount] << 1; + var current = indices[index] << 1; + var next = indices[(index + 1) % vertexCount] << 1; + return !this.positiveArea(vertices[previous], vertices[previous + 1], vertices[current], vertices[current + 1], vertices[next], vertices[next + 1]); + }; + Triangulator.positiveArea = function(p1x, p1y, p2x, p2y, p3x, p3y) { + return p1x * (p3y - p2y) + p2x * (p1y - p3y) + p3x * (p2y - p1y) >= 0; + }; + Triangulator.winding = function(p1x, p1y, p2x, p2y, p3x, p3y) { + var px = p2x - p1x, py = p2y - p1y; + return p3x * py - p3y * px + px * p1y - p1x * py >= 0 ? 1 : -1; + }; + return Triangulator; + })(); + spine.Triangulator = Triangulator; + })(spine || (spine = {})); + var spine; + (function(spine) { + var IntSet = (function() { + function IntSet() { + this.array = new Array(); + } + IntSet.prototype.add = function(value) { + var contains = this.contains(value); + this.array[0 | value] = 0 | value; + return !contains; + }; + IntSet.prototype.contains = function(value) { + return void 0 != this.array[0 | value]; + }; + IntSet.prototype.remove = function(value) { + this.array[0 | value] = void 0; + }; + IntSet.prototype.clear = function() { + this.array.length = 0; + }; + return IntSet; + })(); + spine.IntSet = IntSet; + var Color = (function() { + function Color(r, g, b, a) { + void 0 === r && (r = 0); + void 0 === g && (g = 0); + void 0 === b && (b = 0); + void 0 === a && (a = 0); + this.r = r; + this.g = g; + this.b = b; + this.a = a; + } + Color.prototype.set = function(r, g, b, a) { + this.r = r; + this.g = g; + this.b = b; + this.a = a; + this.clamp(); + return this; + }; + Color.prototype.setFromColor = function(c) { + this.r = c.r; + this.g = c.g; + this.b = c.b; + this.a = c.a; + return this; + }; + Color.prototype.setFromString = function(hex) { + hex = "#" == hex.charAt(0) ? hex.substr(1) : hex; + this.r = parseInt(hex.substr(0, 2), 16) / 255; + this.g = parseInt(hex.substr(2, 2), 16) / 255; + this.b = parseInt(hex.substr(4, 2), 16) / 255; + this.a = (8 != hex.length ? 255 : parseInt(hex.substr(6, 2), 16)) / 255; + return this; + }; + Color.prototype.add = function(r, g, b, a) { + this.r += r; + this.g += g; + this.b += b; + this.a += a; + this.clamp(); + return this; + }; + Color.prototype.clamp = function() { + this.r < 0 ? this.r = 0 : this.r > 1 && (this.r = 1); + this.g < 0 ? this.g = 0 : this.g > 1 && (this.g = 1); + this.b < 0 ? this.b = 0 : this.b > 1 && (this.b = 1); + this.a < 0 ? this.a = 0 : this.a > 1 && (this.a = 1); + return this; + }; + Color.rgba8888ToColor = function(color, value) { + color.r = ((4278190080 & value) >>> 24) / 255; + color.g = ((16711680 & value) >>> 16) / 255; + color.b = ((65280 & value) >>> 8) / 255; + color.a = (255 & value) / 255; + }; + Color.rgb888ToColor = function(color, value) { + color.r = ((16711680 & value) >>> 16) / 255; + color.g = ((65280 & value) >>> 8) / 255; + color.b = (255 & value) / 255; + }; + Color.WHITE = new Color(1, 1, 1, 1); + Color.RED = new Color(1, 0, 0, 1); + Color.GREEN = new Color(0, 1, 0, 1); + Color.BLUE = new Color(0, 0, 1, 1); + Color.MAGENTA = new Color(1, 0, 1, 1); + return Color; + })(); + spine.Color = Color; + var MathUtils = (function() { + function MathUtils() {} + MathUtils.clamp = function(value, min, max) { + if (value < min) return min; + if (value > max) return max; + return value; + }; + MathUtils.cosDeg = function(degrees) { + return Math.cos(degrees * MathUtils.degRad); + }; + MathUtils.sinDeg = function(degrees) { + return Math.sin(degrees * MathUtils.degRad); + }; + MathUtils.signum = function(value) { + return value > 0 ? 1 : value < 0 ? -1 : 0; + }; + MathUtils.toInt = function(x) { + return x > 0 ? Math.floor(x) : Math.ceil(x); + }; + MathUtils.cbrt = function(x) { + var y = Math.pow(Math.abs(x), 1 / 3); + return x < 0 ? -y : y; + }; + MathUtils.randomTriangular = function(min, max) { + return MathUtils.randomTriangularWith(min, max, .5 * (min + max)); + }; + MathUtils.randomTriangularWith = function(min, max, mode) { + var u = Math.random(); + var d = max - min; + if (u <= (mode - min) / d) return min + Math.sqrt(u * d * (mode - min)); + return max - Math.sqrt((1 - u) * d * (max - mode)); + }; + MathUtils.PI = 3.1415927; + MathUtils.PI2 = 2 * MathUtils.PI; + MathUtils.radiansToDegrees = 180 / MathUtils.PI; + MathUtils.radDeg = MathUtils.radiansToDegrees; + MathUtils.degreesToRadians = MathUtils.PI / 180; + MathUtils.degRad = MathUtils.degreesToRadians; + return MathUtils; + })(); + spine.MathUtils = MathUtils; + var Interpolation = (function() { + function Interpolation() {} + Interpolation.prototype.apply = function(start, end, a) { + return start + (end - start) * this.applyInternal(a); + }; + return Interpolation; + })(); + spine.Interpolation = Interpolation; + var Pow = (function(_super) { + __extends(Pow, _super); + function Pow(power) { + var _this = _super.call(this) || this; + _this.power = 2; + _this.power = power; + return _this; + } + Pow.prototype.applyInternal = function(a) { + if (a <= .5) return Math.pow(2 * a, this.power) / 2; + return Math.pow(2 * (a - 1), this.power) / (this.power % 2 == 0 ? -2 : 2) + 1; + }; + return Pow; + })(Interpolation); + spine.Pow = Pow; + var PowOut = (function(_super) { + __extends(PowOut, _super); + function PowOut(power) { + return _super.call(this, power) || this; + } + PowOut.prototype.applyInternal = function(a) { + return Math.pow(a - 1, this.power) * (this.power % 2 == 0 ? -1 : 1) + 1; + }; + return PowOut; + })(Pow); + spine.PowOut = PowOut; + var Utils = (function() { + function Utils() {} + Utils.arrayCopy = function(source, sourceStart, dest, destStart, numElements) { + for (var i = sourceStart, j = destStart; i < sourceStart + numElements; i++, j++) dest[j] = source[i]; + }; + Utils.setArraySize = function(array, size, value) { + void 0 === value && (value = 0); + var oldSize = array.length; + if (oldSize == size) return array; + array.length = size; + if (oldSize < size) for (var i = oldSize; i < size; i++) array[i] = value; + return array; + }; + Utils.ensureArrayCapacity = function(array, size, value) { + void 0 === value && (value = 0); + if (array.length >= size) return array; + return Utils.setArraySize(array, size, value); + }; + Utils.newArray = function(size, defaultValue) { + var array = new Array(size); + for (var i = 0; i < size; i++) array[i] = defaultValue; + return array; + }; + Utils.newFloatArray = function(size) { + if (Utils.SUPPORTS_TYPED_ARRAYS) return new Float32Array(size); + var array = new Array(size); + for (var i = 0; i < array.length; i++) array[i] = 0; + return array; + }; + Utils.newShortArray = function(size) { + if (Utils.SUPPORTS_TYPED_ARRAYS) return new Int16Array(size); + var array = new Array(size); + for (var i = 0; i < array.length; i++) array[i] = 0; + return array; + }; + Utils.toFloatArray = function(array) { + return Utils.SUPPORTS_TYPED_ARRAYS ? new Float32Array(array) : array; + }; + Utils.toSinglePrecision = function(value) { + return Utils.SUPPORTS_TYPED_ARRAYS ? Math.fround(value) : value; + }; + Utils.webkit602BugfixHelper = function(alpha, blend) {}; + Utils.contains = function(array, element, identity) { + void 0 === identity && (identity = true); + for (var i = 0; i < array.length; i++) if (array[i] == element) return true; + return false; + }; + Utils.SUPPORTS_TYPED_ARRAYS = "undefined" !== typeof Float32Array; + return Utils; + })(); + spine.Utils = Utils; + var DebugUtils = (function() { + function DebugUtils() {} + DebugUtils.logBones = function(skeleton) { + for (var i = 0; i < skeleton.bones.length; i++) { + var bone = skeleton.bones[i]; + console.log(bone.data.name + ", " + bone.a + ", " + bone.b + ", " + bone.c + ", " + bone.d + ", " + bone.worldX + ", " + bone.worldY); + } + }; + return DebugUtils; + })(); + spine.DebugUtils = DebugUtils; + var Pool = (function() { + function Pool(instantiator) { + this.items = new Array(); + this.instantiator = instantiator; + } + Pool.prototype.obtain = function() { + return this.items.length > 0 ? this.items.pop() : this.instantiator(); + }; + Pool.prototype.free = function(item) { + item.reset && item.reset(); + this.items.push(item); + }; + Pool.prototype.freeAll = function(items) { + for (var i = 0; i < items.length; i++) { + items[i].reset && items[i].reset(); + this.items[i] = items[i]; + } + }; + Pool.prototype.clear = function() { + this.items.length = 0; + }; + return Pool; + })(); + spine.Pool = Pool; + var Vector2 = (function() { + function Vector2(x, y) { + void 0 === x && (x = 0); + void 0 === y && (y = 0); + this.x = x; + this.y = y; + } + Vector2.prototype.set = function(x, y) { + this.x = x; + this.y = y; + return this; + }; + Vector2.prototype.length = function() { + var x = this.x; + var y = this.y; + return Math.sqrt(x * x + y * y); + }; + Vector2.prototype.normalize = function() { + var len = this.length(); + if (0 != len) { + this.x /= len; + this.y /= len; + } + return this; + }; + return Vector2; + })(); + spine.Vector2 = Vector2; + var TimeKeeper = (function() { + function TimeKeeper() { + this.maxDelta = .064; + this.framesPerSecond = 0; + this.delta = 0; + this.totalTime = 0; + this.lastTime = Date.now() / 1e3; + this.frameCount = 0; + this.frameTime = 0; + } + TimeKeeper.prototype.update = function() { + var now = Date.now() / 1e3; + this.delta = now - this.lastTime; + this.frameTime += this.delta; + this.totalTime += this.delta; + this.delta > this.maxDelta && (this.delta = this.maxDelta); + this.lastTime = now; + this.frameCount++; + if (this.frameTime > 1) { + this.framesPerSecond = this.frameCount / this.frameTime; + this.frameTime = 0; + this.frameCount = 0; + } + }; + return TimeKeeper; + })(); + spine.TimeKeeper = TimeKeeper; + var WindowedMean = (function() { + function WindowedMean(windowSize) { + void 0 === windowSize && (windowSize = 32); + this.addedValues = 0; + this.lastValue = 0; + this.mean = 0; + this.dirty = true; + this.values = new Array(windowSize); + } + WindowedMean.prototype.hasEnoughData = function() { + return this.addedValues >= this.values.length; + }; + WindowedMean.prototype.addValue = function(value) { + this.addedValues < this.values.length && this.addedValues++; + this.values[this.lastValue++] = value; + this.lastValue > this.values.length - 1 && (this.lastValue = 0); + this.dirty = true; + }; + WindowedMean.prototype.getMean = function() { + if (this.hasEnoughData()) { + if (this.dirty) { + var mean = 0; + for (var i = 0; i < this.values.length; i++) mean += this.values[i]; + this.mean = mean / this.values.length; + this.dirty = false; + } + return this.mean; + } + return 0; + }; + return WindowedMean; + })(); + spine.WindowedMean = WindowedMean; + })(spine || (spine = {})); + (function() { + Math.fround || (Math.fround = (function(array) { + return function(x) { + return array[0] = x, array[0]; + }; + })(new Float32Array(1))); + })(); + var spine; + (function(spine) { + var Attachment = (function() { + function Attachment(name) { + if (null == name) throw new Error("name cannot be null."); + this.name = name; + } + return Attachment; + })(); + spine.Attachment = Attachment; + var VertexAttachment = (function(_super) { + __extends(VertexAttachment, _super); + function VertexAttachment(name) { + var _this = _super.call(this, name) || this; + _this.id = (65535 & VertexAttachment.nextID++) << 11; + _this.worldVerticesLength = 0; + _this.deformAttachment = _this; + return _this; + } + VertexAttachment.prototype.computeWorldVertices = function(slot, start, count, worldVertices, offset, stride) { + count = offset + (count >> 1) * stride; + var skeleton = slot.bone.skeleton; + var deformArray = slot.deform; + var vertices = this.vertices; + var bones = this.bones; + if (null == bones) { + deformArray.length > 0 && (vertices = deformArray); + var bone = slot.bone; + var x = bone.worldX; + var y = bone.worldY; + var a = bone.a, b = bone.b, c = bone.c, d = bone.d; + for (var v_1 = start, w = offset; w < count; v_1 += 2, w += stride) { + var vx = vertices[v_1], vy = vertices[v_1 + 1]; + worldVertices[w] = vx * a + vy * b + x; + worldVertices[w + 1] = vx * c + vy * d + y; + } + return; + } + var v = 0, skip = 0; + for (var i = 0; i < start; i += 2) { + var n = bones[v]; + v += n + 1; + skip += n; + } + var skeletonBones = skeleton.bones; + if (0 == deformArray.length) for (var w = offset, b = 3 * skip; w < count; w += stride) { + var wx = 0, wy = 0; + var n = bones[v++]; + n += v; + for (;v < n; v++, b += 3) { + var bone = skeletonBones[bones[v]]; + var vx = vertices[b], vy = vertices[b + 1], weight = vertices[b + 2]; + wx += (vx * bone.a + vy * bone.b + bone.worldX) * weight; + wy += (vx * bone.c + vy * bone.d + bone.worldY) * weight; + } + worldVertices[w] = wx; + worldVertices[w + 1] = wy; + } else { + var deform = deformArray; + for (var w = offset, b = 3 * skip, f = skip << 1; w < count; w += stride) { + var wx = 0, wy = 0; + var n = bones[v++]; + n += v; + for (;v < n; v++, b += 3, f += 2) { + var bone = skeletonBones[bones[v]]; + var vx = vertices[b] + deform[f], vy = vertices[b + 1] + deform[f + 1], weight = vertices[b + 2]; + wx += (vx * bone.a + vy * bone.b + bone.worldX) * weight; + wy += (vx * bone.c + vy * bone.d + bone.worldY) * weight; + } + worldVertices[w] = wx; + worldVertices[w + 1] = wy; + } + } + }; + VertexAttachment.prototype.copyTo = function(attachment) { + if (null != this.bones) { + attachment.bones = new Array(this.bones.length); + spine.Utils.arrayCopy(this.bones, 0, attachment.bones, 0, this.bones.length); + } else attachment.bones = null; + if (null != this.vertices) { + attachment.vertices = spine.Utils.newFloatArray(this.vertices.length); + spine.Utils.arrayCopy(this.vertices, 0, attachment.vertices, 0, this.vertices.length); + } else attachment.vertices = null; + attachment.worldVerticesLength = this.worldVerticesLength; + attachment.deformAttachment = this.deformAttachment; + }; + VertexAttachment.nextID = 0; + return VertexAttachment; + })(Attachment); + spine.VertexAttachment = VertexAttachment; + })(spine || (spine = {})); + var spine; + (function(spine) { + var AttachmentType; + (function(AttachmentType) { + AttachmentType[AttachmentType["Region"] = 0] = "Region"; + AttachmentType[AttachmentType["BoundingBox"] = 1] = "BoundingBox"; + AttachmentType[AttachmentType["Mesh"] = 2] = "Mesh"; + AttachmentType[AttachmentType["LinkedMesh"] = 3] = "LinkedMesh"; + AttachmentType[AttachmentType["Path"] = 4] = "Path"; + AttachmentType[AttachmentType["Point"] = 5] = "Point"; + AttachmentType[AttachmentType["Clipping"] = 6] = "Clipping"; + })(AttachmentType = spine.AttachmentType || (spine.AttachmentType = {})); + })(spine || (spine = {})); + var spine; + (function(spine) { + var BoundingBoxAttachment = (function(_super) { + __extends(BoundingBoxAttachment, _super); + function BoundingBoxAttachment(name) { + var _this = _super.call(this, name) || this; + _this.color = new spine.Color(1, 1, 1, 1); + return _this; + } + BoundingBoxAttachment.prototype.copy = function() { + var copy = new BoundingBoxAttachment(name); + this.copyTo(copy); + copy.color.setFromColor(this.color); + return copy; + }; + return BoundingBoxAttachment; + })(spine.VertexAttachment); + spine.BoundingBoxAttachment = BoundingBoxAttachment; + })(spine || (spine = {})); + var spine; + (function(spine) { + var ClippingAttachment = (function(_super) { + __extends(ClippingAttachment, _super); + function ClippingAttachment(name) { + var _this = _super.call(this, name) || this; + _this.color = new spine.Color(.2275, .2275, .8078, 1); + return _this; + } + ClippingAttachment.prototype.copy = function() { + var copy = new ClippingAttachment(name); + this.copyTo(copy); + copy.endSlot = this.endSlot; + copy.color.setFromColor(this.color); + return copy; + }; + return ClippingAttachment; + })(spine.VertexAttachment); + spine.ClippingAttachment = ClippingAttachment; + })(spine || (spine = {})); + var spine; + (function(spine) { + var MeshAttachment = (function(_super) { + __extends(MeshAttachment, _super); + function MeshAttachment(name) { + var _this = _super.call(this, name) || this; + _this.color = new spine.Color(1, 1, 1, 1); + _this.tempColor = new spine.Color(0, 0, 0, 0); + return _this; + } + MeshAttachment.prototype.updateUVs = function() { + var regionUVs = this.regionUVs; + null != this.uvs && this.uvs.length == regionUVs.length || (this.uvs = spine.Utils.newFloatArray(regionUVs.length)); + var uvs = this.uvs; + var n = this.uvs.length; + var u = this.region.u, v = this.region.v, width = 0, height = 0; + if (this.region instanceof spine.TextureAtlasRegion) { + var region = this.region; + var textureWidth = region.texture.getImage().width, textureHeight = region.texture.getImage().height; + switch (region.degrees) { + case 90: + u -= (region.originalHeight - region.offsetY - region.height) / textureWidth; + v -= (region.originalWidth - region.offsetX - region.width) / textureHeight; + width = region.originalHeight / textureWidth; + height = region.originalWidth / textureHeight; + for (var i = 0; i < n; i += 2) { + uvs[i] = u + regionUVs[i + 1] * width; + uvs[i + 1] = v + (1 - regionUVs[i]) * height; + } + return; + + case 180: + u -= (region.originalWidth - region.offsetX - region.width) / textureWidth; + v -= region.offsetY / textureHeight; + width = region.originalWidth / textureWidth; + height = region.originalHeight / textureHeight; + for (var i = 0; i < n; i += 2) { + uvs[i] = u + (1 - regionUVs[i]) * width; + uvs[i + 1] = v + (1 - regionUVs[i + 1]) * height; + } + return; + + case 270: + u -= region.offsetY / textureWidth; + v -= region.offsetX / textureHeight; + width = region.originalHeight / textureWidth; + height = region.originalWidth / textureHeight; + for (var i = 0; i < n; i += 2) { + uvs[i] = u + (1 - regionUVs[i + 1]) * width; + uvs[i + 1] = v + regionUVs[i] * height; + } + return; + } + u -= region.offsetX / textureWidth; + v -= (region.originalHeight - region.offsetY - region.height) / textureHeight; + width = region.originalWidth / textureWidth; + height = region.originalHeight / textureHeight; + } else if (null == this.region) { + u = v = 0; + width = height = 1; + } else { + width = this.region.u2 - u; + height = this.region.v2 - v; + } + for (var i = 0; i < n; i += 2) { + uvs[i] = u + regionUVs[i] * width; + uvs[i + 1] = v + regionUVs[i + 1] * height; + } + }; + MeshAttachment.prototype.getParentMesh = function() { + return this.parentMesh; + }; + MeshAttachment.prototype.setParentMesh = function(parentMesh) { + this.parentMesh = parentMesh; + if (null != parentMesh) { + this.bones = parentMesh.bones; + this.vertices = parentMesh.vertices; + this.worldVerticesLength = parentMesh.worldVerticesLength; + this.regionUVs = parentMesh.regionUVs; + this.triangles = parentMesh.triangles; + this.hullLength = parentMesh.hullLength; + this.worldVerticesLength = parentMesh.worldVerticesLength; + } + }; + MeshAttachment.prototype.copy = function() { + if (null != this.parentMesh) return this.newLinkedMesh(); + var copy = new MeshAttachment(this.name); + copy.region = this.region; + copy.path = this.path; + copy.color.setFromColor(this.color); + this.copyTo(copy); + copy.regionUVs = new Array(this.regionUVs.length); + spine.Utils.arrayCopy(this.regionUVs, 0, copy.regionUVs, 0, this.regionUVs.length); + copy.uvs = new Array(this.uvs.length); + spine.Utils.arrayCopy(this.uvs, 0, copy.uvs, 0, this.uvs.length); + copy.triangles = new Array(this.triangles.length); + spine.Utils.arrayCopy(this.triangles, 0, copy.triangles, 0, this.triangles.length); + copy.hullLength = this.hullLength; + if (null != this.edges) { + copy.edges = new Array(this.edges.length); + spine.Utils.arrayCopy(this.edges, 0, copy.edges, 0, this.edges.length); + } + copy.width = this.width; + copy.height = this.height; + return copy; + }; + MeshAttachment.prototype.newLinkedMesh = function() { + var copy = new MeshAttachment(this.name); + copy.region = this.region; + copy.path = this.path; + copy.color.setFromColor(this.color); + copy.deformAttachment = this.deformAttachment; + copy.setParentMesh(null != this.parentMesh ? this.parentMesh : this); + copy.updateUVs(); + return copy; + }; + return MeshAttachment; + })(spine.VertexAttachment); + spine.MeshAttachment = MeshAttachment; + })(spine || (spine = {})); + var spine; + (function(spine) { + var PathAttachment = (function(_super) { + __extends(PathAttachment, _super); + function PathAttachment(name) { + var _this = _super.call(this, name) || this; + _this.closed = false; + _this.constantSpeed = false; + _this.color = new spine.Color(1, 1, 1, 1); + return _this; + } + PathAttachment.prototype.copy = function() { + var copy = new PathAttachment(name); + this.copyTo(copy); + copy.lengths = new Array(this.lengths.length); + spine.Utils.arrayCopy(this.lengths, 0, copy.lengths, 0, this.lengths.length); + copy.closed = closed; + copy.constantSpeed = this.constantSpeed; + copy.color.setFromColor(this.color); + return copy; + }; + return PathAttachment; + })(spine.VertexAttachment); + spine.PathAttachment = PathAttachment; + })(spine || (spine = {})); + var spine; + (function(spine) { + var PointAttachment = (function(_super) { + __extends(PointAttachment, _super); + function PointAttachment(name) { + var _this = _super.call(this, name) || this; + _this.color = new spine.Color(.38, .94, 0, 1); + return _this; + } + PointAttachment.prototype.computeWorldPosition = function(bone, point) { + point.x = this.x * bone.a + this.y * bone.b + bone.worldX; + point.y = this.x * bone.c + this.y * bone.d + bone.worldY; + return point; + }; + PointAttachment.prototype.computeWorldRotation = function(bone) { + var cos = spine.MathUtils.cosDeg(this.rotation), sin = spine.MathUtils.sinDeg(this.rotation); + var x = cos * bone.a + sin * bone.b; + var y = cos * bone.c + sin * bone.d; + return Math.atan2(y, x) * spine.MathUtils.radDeg; + }; + PointAttachment.prototype.copy = function() { + var copy = new PointAttachment(name); + copy.x = this.x; + copy.y = this.y; + copy.rotation = this.rotation; + copy.color.setFromColor(this.color); + return copy; + }; + return PointAttachment; + })(spine.VertexAttachment); + spine.PointAttachment = PointAttachment; + })(spine || (spine = {})); + var spine; + (function(spine) { + var RegionAttachment = (function(_super) { + __extends(RegionAttachment, _super); + function RegionAttachment(name) { + var _this = _super.call(this, name) || this; + _this.x = 0; + _this.y = 0; + _this.scaleX = 1; + _this.scaleY = 1; + _this.rotation = 0; + _this.width = 0; + _this.height = 0; + _this.color = new spine.Color(1, 1, 1, 1); + _this.offset = spine.Utils.newFloatArray(8); + _this.uvs = spine.Utils.newFloatArray(8); + _this.tempColor = new spine.Color(1, 1, 1, 1); + return _this; + } + RegionAttachment.prototype.updateOffset = function() { + var regionScaleX = this.width / this.region.originalWidth * this.scaleX; + var regionScaleY = this.height / this.region.originalHeight * this.scaleY; + var localX = -this.width / 2 * this.scaleX + this.region.offsetX * regionScaleX; + var localY = -this.height / 2 * this.scaleY + this.region.offsetY * regionScaleY; + var localX2 = localX + this.region.width * regionScaleX; + var localY2 = localY + this.region.height * regionScaleY; + var radians = this.rotation * Math.PI / 180; + var cos = Math.cos(radians); + var sin = Math.sin(radians); + var localXCos = localX * cos + this.x; + var localXSin = localX * sin; + var localYCos = localY * cos + this.y; + var localYSin = localY * sin; + var localX2Cos = localX2 * cos + this.x; + var localX2Sin = localX2 * sin; + var localY2Cos = localY2 * cos + this.y; + var localY2Sin = localY2 * sin; + var offset = this.offset; + offset[RegionAttachment.OX1] = localXCos - localYSin; + offset[RegionAttachment.OY1] = localYCos + localXSin; + offset[RegionAttachment.OX2] = localXCos - localY2Sin; + offset[RegionAttachment.OY2] = localY2Cos + localXSin; + offset[RegionAttachment.OX3] = localX2Cos - localY2Sin; + offset[RegionAttachment.OY3] = localY2Cos + localX2Sin; + offset[RegionAttachment.OX4] = localX2Cos - localYSin; + offset[RegionAttachment.OY4] = localYCos + localX2Sin; + }; + RegionAttachment.prototype.setRegion = function(region) { + this.region = region; + var uvs = this.uvs; + if (90 === region.degrees) { + uvs[2] = region.u; + uvs[3] = region.v2; + uvs[4] = region.u; + uvs[5] = region.v; + uvs[6] = region.u2; + uvs[7] = region.v; + uvs[0] = region.u2; + uvs[1] = region.v2; + } else if (270 === region.degrees) { + uvs[6] = region.u; + uvs[7] = region.v2; + uvs[0] = region.u; + uvs[1] = region.v; + uvs[2] = region.u2; + uvs[3] = region.v; + uvs[4] = region.u2; + uvs[5] = region.v2; + } else { + uvs[0] = region.u; + uvs[1] = region.v2; + uvs[2] = region.u; + uvs[3] = region.v; + uvs[4] = region.u2; + uvs[5] = region.v; + uvs[6] = region.u2; + uvs[7] = region.v2; + } + }; + RegionAttachment.prototype.computeWorldVertices = function(bone, worldVertices, offset, stride) { + var vertexOffset = this.offset; + var x = bone.worldX, y = bone.worldY; + var a = bone.a, b = bone.b, c = bone.c, d = bone.d; + var offsetX = 0, offsetY = 0; + offsetX = vertexOffset[RegionAttachment.OX1]; + offsetY = vertexOffset[RegionAttachment.OY1]; + worldVertices[offset] = offsetX * a + offsetY * b + x; + worldVertices[offset + 1] = offsetX * c + offsetY * d + y; + offset += stride; + offsetX = vertexOffset[RegionAttachment.OX2]; + offsetY = vertexOffset[RegionAttachment.OY2]; + worldVertices[offset] = offsetX * a + offsetY * b + x; + worldVertices[offset + 1] = offsetX * c + offsetY * d + y; + offset += stride; + offsetX = vertexOffset[RegionAttachment.OX3]; + offsetY = vertexOffset[RegionAttachment.OY3]; + worldVertices[offset] = offsetX * a + offsetY * b + x; + worldVertices[offset + 1] = offsetX * c + offsetY * d + y; + offset += stride; + offsetX = vertexOffset[RegionAttachment.OX4]; + offsetY = vertexOffset[RegionAttachment.OY4]; + worldVertices[offset] = offsetX * a + offsetY * b + x; + worldVertices[offset + 1] = offsetX * c + offsetY * d + y; + }; + RegionAttachment.prototype.copy = function() { + var copy = new RegionAttachment(name); + copy.region = this.region; + copy.rendererObject = this.rendererObject; + copy.path = this.path; + copy.x = this.x; + copy.y = this.y; + copy.scaleX = this.scaleX; + copy.scaleY = this.scaleY; + copy.rotation = this.rotation; + copy.width = this.width; + copy.height = this.height; + spine.Utils.arrayCopy(this.uvs, 0, copy.uvs, 0, 8); + spine.Utils.arrayCopy(this.offset, 0, copy.offset, 0, 8); + copy.color.setFromColor(this.color); + return copy; + }; + RegionAttachment.OX1 = 0; + RegionAttachment.OY1 = 1; + RegionAttachment.OX2 = 2; + RegionAttachment.OY2 = 3; + RegionAttachment.OX3 = 4; + RegionAttachment.OY3 = 5; + RegionAttachment.OX4 = 6; + RegionAttachment.OY4 = 7; + RegionAttachment.X1 = 0; + RegionAttachment.Y1 = 1; + RegionAttachment.C1R = 2; + RegionAttachment.C1G = 3; + RegionAttachment.C1B = 4; + RegionAttachment.C1A = 5; + RegionAttachment.U1 = 6; + RegionAttachment.V1 = 7; + RegionAttachment.X2 = 8; + RegionAttachment.Y2 = 9; + RegionAttachment.C2R = 10; + RegionAttachment.C2G = 11; + RegionAttachment.C2B = 12; + RegionAttachment.C2A = 13; + RegionAttachment.U2 = 14; + RegionAttachment.V2 = 15; + RegionAttachment.X3 = 16; + RegionAttachment.Y3 = 17; + RegionAttachment.C3R = 18; + RegionAttachment.C3G = 19; + RegionAttachment.C3B = 20; + RegionAttachment.C3A = 21; + RegionAttachment.U3 = 22; + RegionAttachment.V3 = 23; + RegionAttachment.X4 = 24; + RegionAttachment.Y4 = 25; + RegionAttachment.C4R = 26; + RegionAttachment.C4G = 27; + RegionAttachment.C4B = 28; + RegionAttachment.C4A = 29; + RegionAttachment.U4 = 30; + RegionAttachment.V4 = 31; + return RegionAttachment; + })(spine.Attachment); + spine.RegionAttachment = RegionAttachment; + })(spine || (spine = {})); + var spine; + (function(spine) { + var JitterEffect = (function() { + function JitterEffect(jitterX, jitterY) { + this.jitterX = 0; + this.jitterY = 0; + this.jitterX = jitterX; + this.jitterY = jitterY; + } + JitterEffect.prototype.begin = function(skeleton) {}; + JitterEffect.prototype.transform = function(position, uv, light, dark) { + position.x += spine.MathUtils.randomTriangular(-this.jitterX, this.jitterY); + position.y += spine.MathUtils.randomTriangular(-this.jitterX, this.jitterY); + }; + JitterEffect.prototype.end = function() {}; + return JitterEffect; + })(); + spine.JitterEffect = JitterEffect; + })(spine || (spine = {})); + var spine; + (function(spine) { + var SwirlEffect = (function() { + function SwirlEffect(radius, interpolation) { + this.centerX = 0; + this.centerY = 0; + this.radius = 0; + this.angle = 0; + this.worldX = 0; + this.worldY = 0; + this.radius = radius; + this.interpolation = interpolation; + } + SwirlEffect.prototype.begin = function(skeleton) { + this.worldX = skeleton.x + this.centerX; + this.worldY = skeleton.y + this.centerY; + }; + SwirlEffect.prototype.transform = function(position, uv, light, dark) { + var radAngle = this.angle * spine.MathUtils.degreesToRadians; + var x = position.x - this.worldX; + var y = position.y - this.worldY; + var dist = Math.sqrt(x * x + y * y); + if (dist < this.radius) { + var theta = this.interpolation.apply(0, radAngle, (this.radius - dist) / this.radius); + var cos = Math.cos(theta); + var sin = Math.sin(theta); + position.x = cos * x - sin * y + this.worldX; + position.y = sin * x + cos * y + this.worldY; + } + }; + SwirlEffect.prototype.end = function() {}; + SwirlEffect.interpolation = new spine.PowOut(2); + return SwirlEffect; + })(); + spine.SwirlEffect = SwirlEffect; + })(spine || (spine = {})); + module.exports = spine; + }), {} ], + 277: [ (function(require, module, exports) { + "use strict"; + var TrackEntryListeners = require("./track-entry-listeners"); + var spine = require("./lib/spine"); + var MaxCacheTime = 30; + var FrameTime = 1 / 60; + var _vertices = []; + var _indices = []; + var _boneInfoOffset = 0; + var _vertexOffset = 0; + var _indexOffset = 0; + var _vfOffset = 0; + var _preTexUrl = null; + var _preBlendMode = null; + var _segVCount = 0; + var _segICount = 0; + var _segOffset = 0; + var _colorOffset = 0; + var _preFinalColor = null; + var _preDarkColor = null; + var _perVertexSize = 6; + var _perClipVertexSize = 12; + var _vfCount = 0, _indexCount = 0; + var _tempr, _tempg, _tempb, _tempa; + var _finalColor32, _darkColor32; + var _finalColor = new spine.Color(1, 1, 1, 1); + var _darkColor = new spine.Color(1, 1, 1, 1); + var _quadTriangles = [ 0, 1, 2, 2, 3, 0 ]; + var AnimationCache = cc.Class({ + ctor: function ctor() { + this._privateMode = false; + this._inited = false; + this._invalid = true; + this._enableCacheAttachedInfo = false; + this.frames = []; + this.totalTime = 0; + this._frameIdx = -1; + this.isCompleted = false; + this._skeletonInfo = null; + this._animationName = null; + this._tempSegments = null; + this._tempColors = null; + this._tempBoneInfos = null; + }, + init: function init(skeletonInfo, animationName) { + this._inited = true; + this._animationName = animationName; + this._skeletonInfo = skeletonInfo; + }, + clear: function clear() { + this._inited = false; + for (var i = 0, n = this.frames.length; i < n; i++) { + var frame = this.frames[i]; + frame.segments.length = 0; + } + this.invalidAllFrame(); + }, + bind: function bind(listener) { + var completeHandle = function(entry) { + entry && entry.animation.name === this._animationName && (this.isCompleted = true); + }.bind(this); + listener.complete = completeHandle; + }, + unbind: function unbind(listener) { + listener.complete = null; + }, + begin: function begin() { + if (!this._invalid) return; + var skeletonInfo = this._skeletonInfo; + var preAnimationCache = skeletonInfo.curAnimationCache; + preAnimationCache && preAnimationCache !== this && (this._privateMode ? preAnimationCache.invalidAllFrame() : preAnimationCache.updateToFrame()); + var skeleton = skeletonInfo.skeleton; + var listener = skeletonInfo.listener; + var state = skeletonInfo.state; + var animation = skeleton.data.findAnimation(this._animationName); + state.setAnimationWith(0, animation, false); + this.bind(listener); + skeletonInfo.curAnimationCache = this; + this._frameIdx = -1; + this.isCompleted = false; + this.totalTime = 0; + this._invalid = false; + }, + end: function end() { + if (!this._needToUpdate()) { + this._skeletonInfo.curAnimationCache = null; + this.frames.length = this._frameIdx + 1; + this.isCompleted = true; + this.unbind(this._skeletonInfo.listener); + } + }, + _needToUpdate: function _needToUpdate(toFrameIdx) { + return !this.isCompleted && this.totalTime < MaxCacheTime && (void 0 == toFrameIdx || this._frameIdx < toFrameIdx); + }, + updateToFrame: function updateToFrame(toFrameIdx) { + if (!this._inited) return; + this.begin(); + if (!this._needToUpdate(toFrameIdx)) return; + var skeletonInfo = this._skeletonInfo; + var skeleton = skeletonInfo.skeleton; + var clipper = skeletonInfo.clipper; + var state = skeletonInfo.state; + do { + skeleton.update(FrameTime); + state.update(FrameTime); + state.apply(skeleton); + skeleton.updateWorldTransform(); + this._frameIdx++; + this._updateFrame(skeleton, clipper, this._frameIdx); + this.totalTime += FrameTime; + } while (this._needToUpdate(toFrameIdx)); + this.end(); + }, + isInited: function isInited() { + return this._inited; + }, + isInvalid: function isInvalid() { + return this._invalid; + }, + invalidAllFrame: function invalidAllFrame() { + this.isCompleted = false; + this._invalid = true; + }, + updateAllFrame: function updateAllFrame() { + this.invalidAllFrame(); + this.updateToFrame(); + }, + enableCacheAttachedInfo: function enableCacheAttachedInfo() { + if (!this._enableCacheAttachedInfo) { + this._enableCacheAttachedInfo = true; + this.invalidAllFrame(); + } + }, + _updateFrame: function _updateFrame(skeleton, clipper, index) { + _vfOffset = 0; + _boneInfoOffset = 0; + _indexOffset = 0; + _vertexOffset = 0; + _preTexUrl = null; + _preBlendMode = null; + _segVCount = 0; + _segICount = 0; + _segOffset = 0; + _colorOffset = 0; + _preFinalColor = null; + _preDarkColor = null; + this.frames[index] = this.frames[index] || { + segments: [], + colors: [], + boneInfos: [], + vertices: null, + uintVert: null, + indices: null + }; + var frame = this.frames[index]; + var segments = this._tempSegments = frame.segments; + var colors = this._tempColors = frame.colors; + var boneInfos = this._tempBoneInfos = frame.boneInfos; + this._traverseSkeleton(skeleton, clipper); + _colorOffset > 0 && (colors[_colorOffset - 1].vfOffset = _vfOffset); + colors.length = _colorOffset; + boneInfos.length = _boneInfoOffset; + var preSegOffset = _segOffset - 1; + if (preSegOffset >= 0) if (_segICount > 0) { + var preSegInfo = segments[preSegOffset]; + preSegInfo.indexCount = _segICount; + preSegInfo.vfCount = _segVCount * _perVertexSize; + preSegInfo.vertexCount = _segVCount; + segments.length = _segOffset; + } else segments.length = _segOffset - 1; + if (0 == segments.length) return; + var vertices = frame.vertices; + var uintVert = frame.uintVert; + if (!vertices || vertices.length < _vfOffset) { + vertices = frame.vertices = new Float32Array(_vfOffset); + uintVert = frame.uintVert = new Uint32Array(vertices.buffer); + } + for (var i = 0, j = 0; i < _vfOffset; ) { + vertices[i++] = _vertices[j++]; + vertices[i++] = _vertices[j++]; + vertices[i++] = _vertices[j++]; + vertices[i++] = _vertices[j++]; + uintVert[i++] = _vertices[j++]; + uintVert[i++] = _vertices[j++]; + } + var indices = frame.indices; + (!indices || indices.length < _indexOffset) && (indices = frame.indices = new Uint16Array(_indexOffset)); + for (var _i = 0; _i < _indexOffset; _i++) indices[_i] = _indices[_i]; + frame.vertices = vertices; + frame.uintVert = uintVert; + frame.indices = indices; + }, + fillVertices: function fillVertices(skeletonColor, attachmentColor, slotColor, clipper, slot) { + _tempa = slotColor.a * attachmentColor.a * skeletonColor.a * 255; + _tempr = attachmentColor.r * skeletonColor.r * 255; + _tempg = attachmentColor.g * skeletonColor.g * 255; + _tempb = attachmentColor.b * skeletonColor.b * 255; + _finalColor.r = _tempr * slotColor.r; + _finalColor.g = _tempg * slotColor.g; + _finalColor.b = _tempb * slotColor.b; + _finalColor.a = _tempa; + if (null == slot.darkColor) _darkColor.set(0, 0, 0, 1); else { + _darkColor.r = slot.darkColor.r * _tempr; + _darkColor.g = slot.darkColor.g * _tempg; + _darkColor.b = slot.darkColor.b * _tempb; + } + _darkColor.a = 0; + _finalColor32 = (_finalColor.a << 24 >>> 0) + (_finalColor.b << 16) + (_finalColor.g << 8) + _finalColor.r; + _darkColor32 = (_darkColor.a << 24 >>> 0) + (_darkColor.b << 16) + (_darkColor.g << 8) + _darkColor.r; + if (_preFinalColor !== _finalColor32 || _preDarkColor !== _darkColor32) { + var colors = this._tempColors; + _preFinalColor = _finalColor32; + _preDarkColor = _darkColor32; + _colorOffset > 0 && (colors[_colorOffset - 1].vfOffset = _vfOffset); + colors[_colorOffset++] = { + fr: _finalColor.r, + fg: _finalColor.g, + fb: _finalColor.b, + fa: _finalColor.a, + dr: _darkColor.r, + dg: _darkColor.g, + db: _darkColor.b, + da: _darkColor.a, + vfOffset: 0 + }; + } + if (clipper.isClipping()) { + clipper.clipTriangles(_vertices, _vfCount, _indices, _indexCount, _vertices, _finalColor, _darkColor, true, _perVertexSize, _indexOffset, _vfOffset, _vfOffset + 2); + var clippedVertices = clipper.clippedVertices; + var clippedTriangles = clipper.clippedTriangles; + _indexCount = clippedTriangles.length; + _vfCount = clippedVertices.length / _perClipVertexSize * _perVertexSize; + for (var ii = 0, jj = _indexOffset, nn = clippedTriangles.length; ii < nn; ) _indices[jj++] = clippedTriangles[ii++]; + for (var _v = 0, _n = clippedVertices.length, offset = _vfOffset; _v < _n; _v += 12, + offset += _perVertexSize) { + _vertices[offset] = clippedVertices[_v]; + _vertices[offset + 1] = clippedVertices[_v + 1]; + _vertices[offset + 2] = clippedVertices[_v + 6]; + _vertices[offset + 3] = clippedVertices[_v + 7]; + _vertices[offset + 4] = _finalColor32; + _vertices[offset + 5] = _darkColor32; + } + } else for (var v = _vfOffset, n = _vfOffset + _vfCount; v < n; v += _perVertexSize) { + _vertices[v + 4] = _finalColor32; + _vertices[v + 5] = _darkColor32; + } + }, + _traverseSkeleton: function _traverseSkeleton(skeleton, clipper) { + var segments = this._tempSegments; + var boneInfos = this._tempBoneInfos; + var skeletonColor = skeleton.color; + var attachment, attachmentColor, slotColor, uvs, triangles; + var isRegion, isMesh, isClip; + var texture; + var preSegOffset, preSegInfo; + var blendMode; + var slot; + var bones = skeleton.bones; + if (this._enableCacheAttachedInfo) for (var i = 0, l = bones.length; i < l; i++, + _boneInfoOffset++) { + var bone = bones[i]; + var boneInfo = boneInfos[_boneInfoOffset]; + boneInfo || (boneInfo = boneInfos[_boneInfoOffset] = {}); + boneInfo.a = bone.a; + boneInfo.b = bone.b; + boneInfo.c = bone.c; + boneInfo.d = bone.d; + boneInfo.worldX = bone.worldX; + boneInfo.worldY = bone.worldY; + } + for (var slotIdx = 0, slotCount = skeleton.drawOrder.length; slotIdx < slotCount; slotIdx++) { + slot = skeleton.drawOrder[slotIdx]; + _vfCount = 0; + _indexCount = 0; + attachment = slot.getAttachment(); + if (!attachment) { + clipper.clipEndWithSlot(slot); + continue; + } + isRegion = attachment instanceof spine.RegionAttachment; + isMesh = attachment instanceof spine.MeshAttachment; + isClip = attachment instanceof spine.ClippingAttachment; + if (isClip) { + clipper.clipStart(slot, attachment); + continue; + } + if (!isRegion && !isMesh) { + clipper.clipEndWithSlot(slot); + continue; + } + texture = attachment.region.texture._texture; + if (!texture) { + clipper.clipEndWithSlot(slot); + continue; + } + blendMode = slot.data.blendMode; + if (_preTexUrl !== texture.nativeUrl || _preBlendMode !== blendMode) { + _preTexUrl = texture.nativeUrl; + _preBlendMode = blendMode; + preSegOffset = _segOffset - 1; + if (preSegOffset >= 0) if (_segICount > 0) { + preSegInfo = segments[preSegOffset]; + preSegInfo.indexCount = _segICount; + preSegInfo.vertexCount = _segVCount; + preSegInfo.vfCount = _segVCount * _perVertexSize; + } else _segOffset--; + segments[_segOffset] = { + tex: texture, + blendMode: blendMode, + indexCount: 0, + vertexCount: 0, + vfCount: 0 + }; + _segOffset++; + _segICount = 0; + _segVCount = 0; + } + if (isRegion) { + triangles = _quadTriangles; + _vfCount = 4 * _perVertexSize; + _indexCount = 6; + attachment.computeWorldVertices(slot.bone, _vertices, _vfOffset, _perVertexSize); + } else if (isMesh) { + triangles = attachment.triangles; + _vfCount = (attachment.worldVerticesLength >> 1) * _perVertexSize; + _indexCount = triangles.length; + attachment.computeWorldVertices(slot, 0, attachment.worldVerticesLength, _vertices, _vfOffset, _perVertexSize); + } + if (0 == _vfCount || 0 == _indexCount) { + clipper.clipEndWithSlot(slot); + continue; + } + for (var ii = 0, jj = _indexOffset, nn = triangles.length; ii < nn; ) _indices[jj++] = triangles[ii++]; + uvs = attachment.uvs; + for (var v = _vfOffset, n = _vfOffset + _vfCount, u = 0; v < n; v += _perVertexSize, + u += 2) { + _vertices[v + 2] = uvs[u]; + _vertices[v + 3] = uvs[u + 1]; + } + attachmentColor = attachment.color; + slotColor = slot.color; + this.fillVertices(skeletonColor, attachmentColor, slotColor, clipper, slot); + if (_indexCount > 0) { + for (var _ii = _indexOffset, _nn = _indexOffset + _indexCount; _ii < _nn; _ii++) _indices[_ii] += _segVCount; + _indexOffset += _indexCount; + _vfOffset += _vfCount; + _vertexOffset = _vfOffset / _perVertexSize; + _segICount += _indexCount; + _segVCount += _vfCount / _perVertexSize; + } + clipper.clipEndWithSlot(slot); + } + clipper.clipEnd(); + } + }); + var SkeletonCache = cc.Class({ + ctor: function ctor() { + this._privateMode = false; + this._animationPool = {}; + this._skeletonCache = {}; + }, + enablePrivateMode: function enablePrivateMode() { + this._privateMode = true; + }, + clear: function clear() { + this._animationPool = {}; + this._skeletonCache = {}; + }, + removeSkeleton: function removeSkeleton(uuid) { + var skeletonInfo = this._skeletonCache[uuid]; + if (!skeletonInfo) return; + var animationsCache = skeletonInfo.animationsCache; + for (var aniKey in animationsCache) { + var animationCache = animationsCache[aniKey]; + if (!animationCache) continue; + this._animationPool[uuid + "#" + aniKey] = animationCache; + animationCache.clear(); + } + delete this._skeletonCache[uuid]; + }, + getSkeletonCache: function getSkeletonCache(uuid, skeletonData) { + var skeletonInfo = this._skeletonCache[uuid]; + if (!skeletonInfo) { + var skeleton = new spine.Skeleton(skeletonData); + var clipper = new spine.SkeletonClipping(); + var stateData = new spine.AnimationStateData(skeleton.data); + var state = new spine.AnimationState(stateData); + var listener = new TrackEntryListeners(); + state.addListener(listener); + this._skeletonCache[uuid] = skeletonInfo = { + skeleton: skeleton, + clipper: clipper, + state: state, + listener: listener, + animationsCache: {}, + curAnimationCache: null + }; + } + return skeletonInfo; + }, + getAnimationCache: function getAnimationCache(uuid, animationName) { + var skeletonInfo = this._skeletonCache[uuid]; + if (!skeletonInfo) return null; + var animationsCache = skeletonInfo.animationsCache; + return animationsCache[animationName]; + }, + invalidAnimationCache: function invalidAnimationCache(uuid) { + var skeletonInfo = this._skeletonCache[uuid]; + var skeleton = skeletonInfo && skeletonInfo.skeleton; + if (!skeleton) return; + var animationsCache = skeletonInfo.animationsCache; + for (var aniKey in animationsCache) { + var animationCache = animationsCache[aniKey]; + animationCache.invalidAllFrame(); + } + }, + initAnimationCache: function initAnimationCache(uuid, animationName) { + if (!animationName) return null; + var skeletonInfo = this._skeletonCache[uuid]; + var skeleton = skeletonInfo && skeletonInfo.skeleton; + if (!skeleton) return null; + var animation = skeleton.data.findAnimation(animationName); + if (!animation) return null; + var animationsCache = skeletonInfo.animationsCache; + var animationCache = animationsCache[animationName]; + if (!animationCache) { + var poolKey = uuid + "#" + animationName; + animationCache = this._animationPool[poolKey]; + if (animationCache) delete this._animationPool[poolKey]; else { + animationCache = new AnimationCache(); + animationCache._privateMode = this._privateMode; + } + animationCache.init(skeletonInfo, animationName); + animationsCache[animationName] = animationCache; + } + return animationCache; + }, + updateAnimationCache: function updateAnimationCache(uuid, animationName) { + if (animationName) { + var animationCache = this.initAnimationCache(uuid, animationName); + if (!animationCache) return null; + animationCache.updateAllFrame(); + } else { + var skeletonInfo = this._skeletonCache[uuid]; + var skeleton = skeletonInfo && skeletonInfo.skeleton; + if (!skeleton) return; + var animationsCache = skeletonInfo.animationsCache; + for (var aniKey in animationsCache) { + var _animationCache = animationsCache[aniKey]; + _animationCache.updateAllFrame(); + } + } + } + }); + SkeletonCache.FrameTime = FrameTime; + SkeletonCache.sharedCache = new SkeletonCache(); + module.exports = SkeletonCache; + }), { + "./lib/spine": 276, + "./track-entry-listeners": 281 + } ], + 278: [ (function(require, module, exports) { + "use strict"; + function _createForOfIteratorHelperLoose(o, allowArrayLike) { + var it = "undefined" !== typeof Symbol && o[Symbol.iterator] || o["@@iterator"]; + if (it) return (it = it.call(o)).next.bind(it); + if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && "number" === typeof o.length) { + it && (o = it); + var i = 0; + return function() { + if (i >= o.length) return { + done: true + }; + return { + done: false, + value: o[i++] + }; + }; + } + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ("string" === typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + "Object" === n && o.constructor && (n = o.constructor.name); + if ("Map" === n || "Set" === n) return Array.from(o); + if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + var SkeletonCache = (true, require("./skeleton-cache").sharedCache); + var SkeletonData = cc.Class({ + name: "sp.SkeletonData", + extends: cc.Asset, + ctor: function ctor() { + this.reset(); + }, + properties: { + _skeletonJson: null, + skeletonJsonStr: { + get: function get() { + return this._skeletonJson ? JSON.stringify(this._skeletonJson) : ""; + } + }, + skeletonJson: { + get: function get() { + return this._skeletonJson; + }, + set: function set(value) { + this.reset(); + this._skeletonJson = "string" == typeof value ? JSON.parse(value) : value; + !this._uuid && value.skeleton && (this._uuid = value.skeleton.hash); + } + }, + _atlasText: "", + atlasText: { + get: function get() { + return this._atlasText; + }, + set: function set(value) { + this._atlasText = value; + this.reset(); + } + }, + textures: { + default: [], + type: [ cc.Texture2D ] + }, + textureNames: { + default: [], + type: [ cc.String ] + }, + scale: 1, + _nativeAsset: { + get: function get() { + return this._buffer; + }, + set: function set(bin) { + this._buffer = bin.buffer || bin; + this.reset(); + }, + override: true + } + }, + statics: { + preventDeferredLoadDependents: true, + createRegion: function createRegion(spriteFrame, original) { + void 0 === original && (original = void 0); + var region = new sp.spine.TextureAtlasRegion(); + var texture = spriteFrame.getTexture(); + var rect = spriteFrame.getRect(); + var origSize = spriteFrame.getOriginalSize(); + var _offset = spriteFrame.getOffset(); + var rotate = spriteFrame.isRotated(); + var offset = cc.v2(.5 * (origSize.width - rect.width) + _offset.x, .5 * (origSize.height - rect.height) + _offset.y); + var degrees = rotate ? 270 : 0; + if (original) { + region.name = original.name; + region.page = original.page; + } + region.x = rect.x; + region.y = rect.y; + region.width = rect.width; + region.height = rect.height; + region.originalWidth = origSize.width; + region.originalHeight = origSize.height; + region.offsetX = offset.x; + region.offsetY = offset.y; + region.rotate = 0 != degrees; + region.degrees = degrees; + var skelTex = new sp.SkeletonTexture({ + width: texture.width, + height: texture.height + }); + skelTex.setRealTexture(texture); + region.texture = skelTex; + this.updateRegionUV(region); + return region; + }, + updateRegionUV: function updateRegionUV(region) { + var texture = region.texture._texture; + if (region.rotate) { + region.u = region.x / texture.width; + region.v = region.y / texture.height; + region.u2 = (region.x + region.height) / texture.width; + region.v2 = (region.y + region.width) / texture.height; + } else { + region.u = region.x / texture.width; + region.v = region.y / texture.height; + region.u2 = (region.x + region.width) / texture.width; + region.v2 = (region.y + region.height) / texture.height; + } + }, + createSpriteFrame: function createSpriteFrame(region) { + var frame = new cc.SpriteFrame(region.texture._texture, cc.rect(region.x, region.y, region.width, region.height), region.rotate, cc.v2(region.offsetX - .5 * (region.originalWidth - region.width), region.offsetY - .5 * (region.originalHeight - region.height)), cc.size(region.originalWidth, region.originalHeight)); + return frame; + } + }, + createNode: false, + reset: function reset() { + this._skeletonCache = null; + this._atlasCache = null; + false; + this._cloneId = 0; + }, + ensureTexturesLoaded: function ensureTexturesLoaded(loaded, caller) { + var textures = this.textures; + var texsLen = textures.length; + if (0 == texsLen) { + loaded.call(caller, false); + return; + } + var loadedCount = 0; + var loadedItem = function loadedItem() { + loadedCount++; + if (loadedCount >= texsLen) { + loaded && loaded.call(caller, true); + loaded = null; + } + }; + for (var i = 0; i < texsLen; i++) { + var tex = textures[i]; + tex.loaded ? loadedItem() : tex.once("load", loadedItem); + } + }, + isTexturesLoaded: function isTexturesLoaded() { + var textures = this.textures; + var texsLen = textures.length; + for (var i = 0; i < texsLen; i++) { + var tex = textures[i]; + if (!tex.loaded) return false; + } + return true; + }, + getRuntimeData: function getRuntimeData(quiet) { + if (this._skeletonCache) return this._skeletonCache; + if (!(this.textures && this.textures.length > 0) && this.textureNames && this.textureNames.length > 0) { + quiet || cc.errorID(7507, this.name); + return null; + } + var atlas = this._getAtlas(quiet); + if (!atlas) return null; + var attachmentLoader = new sp.spine.AtlasAttachmentLoader(atlas); + var resData = null; + var reader = null; + if (this.skeletonJson) { + reader = new sp.spine.SkeletonJson(attachmentLoader); + resData = this.skeletonJson; + } else { + reader = new sp.spine.SkeletonBinary(attachmentLoader); + resData = new Uint8Array(this._nativeAsset); + } + reader.scale = this.scale; + this._skeletonCache = reader.readSkeletonData(resData); + atlas.dispose(); + return this._skeletonCache; + }, + getSkinsEnum: false, + getAnimsEnum: false, + _getTexture: function _getTexture(line) { + var names = this.textureNames; + for (var i = 0; i < names.length; i++) if (names[i] === line) { + var texture = this.textures[i]; + var tex = new sp.SkeletonTexture({ + width: texture.width, + height: texture.height + }); + tex.setRealTexture(texture); + return tex; + } + cc.errorID(7506, line); + return null; + }, + _getAtlas: function _getAtlas(quiet) { + if (this._atlasCache) return this._atlasCache; + if (!this.atlasText) { + quiet || cc.errorID(7508, this.name); + return null; + } + return this._atlasCache = new sp.spine.TextureAtlas(this.atlasText, this._getTexture.bind(this)); + }, + clone: function clone() { + var cloned = new SkeletonData(); + cloned._cloneId = this._cloneId + 1; + var suffix = "(clone " + String(cloned._cloneId) + ")"; + cloned._uuid = this._uuid + suffix; + cloned.name = this.name + suffix; + cloned.scale = this.scale; + cloned.textureNames = this.textureNames; + cloned.textures = this.textures; + cloned._atlasText = this._atlasText; + cloned._skeletonJson = this._skeletonJson; + cloned._buffer = this._buffer; + return cloned; + }, + destroy: function destroy() { + if (this._atlasCache) { + var regions = this._atlasCache.regions; + for (var _iterator = _createForOfIteratorHelperLoose(regions), _step; !(_step = _iterator()).done; ) { + var region = _step.value; + if (region._spriteFrame) { + region._spriteFrame.destroy(); + region._spriteFrame = null; + } + } + } + if (this._skeletonCache) { + var skins = this._skeletonCache.skins; + for (var _iterator2 = _createForOfIteratorHelperLoose(skins), _step2; !(_step2 = _iterator2()).done; ) { + var skin = _step2.value; + for (var _iterator3 = _createForOfIteratorHelperLoose(skin.attachments), _step3; !(_step3 = _iterator3()).done; ) { + var attachments = _step3.value; + for (var key in attachments) { + var _region = attachments[key].region; + if (_region && _region._spriteFrame) { + _region._spriteFrame.destroy(); + _region._spriteFrame = null; + } + } + } + } + } + SkeletonCache.removeSkeleton(this._uuid); + this._super(); + } + }); + sp.SkeletonData = module.exports = SkeletonData; + }), { + "./skeleton-cache": 277 + } ], + 279: [ (function(require, module, exports) { + "use strict"; + sp.SkeletonTexture = cc.Class({ + name: "sp.SkeletonTexture", + extends: sp.spine.Texture, + _texture: null, + _material: null, + setRealTexture: function setRealTexture(tex) { + this._texture = tex; + }, + getRealTexture: function getRealTexture() { + return this._texture; + }, + setFilters: function setFilters(minFilter, magFilter) { + this._texture && this._texture.setFilters(minFilter, magFilter); + }, + setWraps: function setWraps(uWrap, vWrap) { + this._texture && this._texture.setWrapMode(uWrap, vWrap); + }, + dispose: function dispose() {} + }); + }), {} ], + 280: [ (function(require, module, exports) { + "use strict"; + exports.__esModule = true; + exports["default"] = void 0; + var _assembler = _interopRequireDefault(require("../../cocos2d/core/renderer/assembler")); + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + default: obj + }; + } + function _createForOfIteratorHelperLoose(o, allowArrayLike) { + var it = "undefined" !== typeof Symbol && o[Symbol.iterator] || o["@@iterator"]; + if (it) return (it = it.call(o)).next.bind(it); + if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && "number" === typeof o.length) { + it && (o = it); + var i = 0; + return function() { + if (i >= o.length) return { + done: true + }; + return { + done: false, + value: o[i++] + }; + }; + } + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if ("string" === typeof o) return _arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + "Object" === n && o.constructor && (n = o.constructor.name); + if ("Map" === n || "Set" === n) return Array.from(o); + if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); + } + function _arrayLikeToArray(arr, len) { + (null == len || len > arr.length) && (len = arr.length); + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; + return arr2; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + _setPrototypeOf(subClass, superClass); + } + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + return _setPrototypeOf(o, p); + } + var Skeleton = require("./Skeleton"); + var spine = require("./lib/spine"); + var RenderFlow = require("../../cocos2d/core/renderer/render-flow"); + var VertexFormat = require("../../cocos2d/core/renderer/webgl/vertex-format"); + var VFOneColor = VertexFormat.vfmtPosUvColor; + var VFOneColorTexId = VertexFormat.vfmtPosUvColorTexId; + var VFTwoColor = VertexFormat.vfmtPosUvTwoColor; + var gfx = cc.gfx; + var FLAG_BATCH = 16; + var FLAG_TWO_COLOR = 1; + var _handleVal = 0; + var _quadTriangles = [ 0, 1, 2, 2, 3, 0 ]; + var _slotColor = cc.color(0, 0, 255, 255); + var _boneColor = cc.color(255, 0, 0, 255); + var _originColor = cc.color(0, 255, 0, 255); + var _meshColor = cc.color(255, 255, 0, 255); + var _finalColor = null; + var _darkColor = null; + var _tempPos = null, _tempUv = null; + true; + _finalColor = new spine.Color(1, 1, 1, 1); + _darkColor = new spine.Color(1, 1, 1, 1); + _tempPos = new spine.Vector2(); + _tempUv = new spine.Vector2(); + var _premultipliedAlpha; + var _multiplier; + var _slotRangeStart; + var _slotRangeEnd; + var _useTint; + var _useMulti; + var _texId; + var _debugSlots; + var _debugBones; + var _debugMesh; + var _nodeR, _nodeG, _nodeB, _nodeA; + var _finalColor32, _darkColor32; + var _vertexFormat; + var _perVertexSize; + var _perClipVertexSize; + var _vertexFloatCount = 0, _vertexCount = 0, _vertexFloatOffset = 0, _vertexOffset = 0, _indexCount = 0, _indexOffset = 0, _vfOffset = 0; + var _tempr, _tempg, _tempb; + var _inRange; + var _mustFlush; + var _x, _y, _m00, _m04, _m12, _m01, _m05, _m13; + var _r, _g, _b, _fr, _fg, _fb, _fa, _dr, _dg, _db, _da; + var _comp, _buffer, _renderer, _node, _needColor, _vertexEffect; + function _getSlotMaterial(tex, blendMode) { + var src, dst; + switch (blendMode) { + case spine.BlendMode.Additive: + src = _premultipliedAlpha ? cc.macro.ONE : cc.macro.SRC_ALPHA; + dst = cc.macro.ONE; + break; + + case spine.BlendMode.Multiply: + src = cc.macro.DST_COLOR; + dst = cc.macro.ONE_MINUS_SRC_ALPHA; + break; + + case spine.BlendMode.Screen: + src = cc.macro.ONE; + dst = cc.macro.ONE_MINUS_SRC_COLOR; + break; + + case spine.BlendMode.Normal: + default: + src = _premultipliedAlpha ? cc.macro.ONE : cc.macro.SRC_ALPHA; + dst = cc.macro.ONE_MINUS_SRC_ALPHA; + } + var useModel = !_comp.enableBatch; + var baseMaterial = _comp._materials[0]; + if (!baseMaterial) return null; + if (_useMulti) { + var key = tex.getId() + src + dst; + var materialCache = _comp._materialCache; + var materialInfo = materialCache[key]; + if (!materialInfo) { + var texId = baseMaterial.material.getMultiHandler().getIndex(tex.getImpl()); + if (materialCache.baseMaterial) materialInfo = { + material: cc.MaterialVariant.create(baseMaterial), + texId: texId + }; else { + materialInfo = { + material: baseMaterial, + texId: texId + }; + materialCache.baseMaterial = materialInfo; + } + if (-1 === texId) { + materialInfo.material.setProperty("texture", tex); + materialInfo.texId = 0; + } + materialInfo.material.setBlend(true, gfx.BLEND_FUNC_ADD, src, dst, gfx.BLEND_FUNC_ADD, src, dst); + materialCache[key] = materialInfo; + } + _texId = materialInfo.texId; + return materialInfo.material; + } + var _key = tex.getId() + src + dst + _useTint + useModel; + var _materialCache = _comp._materialCache; + var material = _materialCache[_key]; + if (!material) { + if (_materialCache.baseMaterial) material = cc.MaterialVariant.create(baseMaterial); else { + material = baseMaterial; + _materialCache.baseMaterial = baseMaterial; + } + material.define("CC_USE_MODEL", useModel); + material.define("USE_TINT", _useTint); + material.setProperty("texture", tex); + material.setBlend(true, gfx.BLEND_FUNC_ADD, src, dst, gfx.BLEND_FUNC_ADD, src, dst); + _materialCache[_key] = material; + } + return material; + } + function _handleColor(color) { + _fa = color.fa * _nodeA; + _multiplier = _premultipliedAlpha ? _fa / 255 : 1; + _r = _nodeR * _multiplier; + _g = _nodeG * _multiplier; + _b = _nodeB * _multiplier; + _fr = color.fr * _r; + _fg = color.fg * _g; + _fb = color.fb * _b; + _finalColor32 = (_fa << 24 >>> 0) + (_fb << 16) + (_fg << 8) + _fr; + _dr = color.dr * _r; + _dg = color.dg * _g; + _db = color.db * _b; + _da = _premultipliedAlpha ? 255 : 0; + _darkColor32 = (_da << 24 >>> 0) + (_db << 16) + (_dg << 8) + _dr; + } + function _spineColorToInt32(spineColor) { + return (spineColor.a << 24 >>> 0) + (spineColor.b << 16) + (spineColor.g << 8) + spineColor.r; + } + var SpineAssembler = (function(_Assembler) { + _inheritsLoose(SpineAssembler, _Assembler); + function SpineAssembler() { + return _Assembler.apply(this, arguments) || this; + } + var _proto = SpineAssembler.prototype; + _proto.updateRenderData = function updateRenderData(comp) { + if (comp.isAnimationCached()) return; + if (comp._dataDirty) { + this.packDynamicAtlasForSpine(comp); + var autoSwitchMaterial = comp.autoSwitchMaterial; + if (cc.sp.autoSwitchMaterial && 0 === autoSwitchMaterial || 1 === autoSwitchMaterial) { + var material = comp._materials[0]; + if (!material) return false; + var skins = comp.skeletonData._skeletonCache.skins; + for (var _iterator = _createForOfIteratorHelperLoose(skins), _step; !(_step = _iterator()).done; ) { + var skin = _step.value; + for (var _iterator2 = _createForOfIteratorHelperLoose(skin.attachments), _step2; !(_step2 = _iterator2()).done; ) { + var attachment = _step2.value; + for (var key in attachment) { + var region = attachment[key].region; + if (region && region.texture) { + this.checkAndSwitchMaterial(comp, region.texture._texture, material); + break; + } + } + } + } + } + comp._dataDirty = false; + } + var skeleton = comp._skeleton; + skeleton && skeleton.updateWorldTransform(); + }; + _proto.packDynamicAtlasForSpine = function packDynamicAtlasForSpine(comp) { + false; + var allowDynamicAtlas = comp.allowDynamicAtlas; + if ((cc.sp.allowDynamicAtlas && 0 === allowDynamicAtlas || 1 === allowDynamicAtlas) && cc.dynamicAtlasManager) { + var skins = comp.skeletonData._skeletonCache.skins; + for (var _iterator3 = _createForOfIteratorHelperLoose(skins), _step3; !(_step3 = _iterator3()).done; ) { + var skin = _step3.value; + for (var _iterator4 = _createForOfIteratorHelperLoose(skin.attachments), _step4; !(_step4 = _iterator4()).done; ) { + var attachments = _step4.value; + var _loop = function _loop(key) { + var attachment = attachments[key]; + var region = attachment.region; + if (region && !region._original && region.texture && region.texture._texture.packable) { + if (region._spriteFrame) { + region._spriteFrame.destroy(); + region._spriteFrame = null; + } + var frame = sp.SkeletonData.createSpriteFrame(region); + var packedFrame = cc.dynamicAtlasManager.insertSpriteFrame(frame); + if (packedFrame) { + frame._setDynamicAtlasFrame(packedFrame); + region._original = { + _texture: region.texture, + _x: region.x, + _y: region.y + }; + region.texture = new sp.SkeletonTexture({ + width: packedFrame.texture.width, + height: packedFrame.texture.height + }); + region.texture.setRealTexture(packedFrame.texture); + region.x = packedFrame.x; + region.y = packedFrame.y; + sp.SkeletonData.updateRegionUV(region); + if (attachment instanceof sp.spine.MeshAttachment) attachment.updateUVs(); else { + attachment.setRegion(region); + attachment.updateOffset(); + } + frame.once("_resetDynamicAtlasFrame", (function() { + region.x = region._original._x; + region.y = region._original._y; + region.texture = region._original._texture; + region._original = null; + sp.SkeletonData.updateRegionUV(region); + if (attachment instanceof sp.spine.MeshAttachment) attachment.updateUVs(); else { + attachment.setRegion(region); + attachment.updateOffset(); + } + })); + region._spriteFrame = frame; + } else frame.destroy(); + } + }; + for (var key in attachments) _loop(key); + } + } + } + }; + _proto.fillVertices = function fillVertices(skeletonColor, attachmentColor, slotColor, clipper, slot) { + var vbuf = _buffer._vData, ibuf = _buffer._iData, uintVData = _buffer._uintVData; + var offsetInfo; + _finalColor.a = slotColor.a * attachmentColor.a * skeletonColor.a * _nodeA * 255; + _multiplier = _premultipliedAlpha ? _finalColor.a : 255; + _tempr = _nodeR * attachmentColor.r * skeletonColor.r * _multiplier; + _tempg = _nodeG * attachmentColor.g * skeletonColor.g * _multiplier; + _tempb = _nodeB * attachmentColor.b * skeletonColor.b * _multiplier; + _finalColor.r = _tempr * slotColor.r; + _finalColor.g = _tempg * slotColor.g; + _finalColor.b = _tempb * slotColor.b; + if (null == slot.darkColor) _darkColor.set(0, 0, 0, 1); else { + _darkColor.r = slot.darkColor.r * _tempr; + _darkColor.g = slot.darkColor.g * _tempg; + _darkColor.b = slot.darkColor.b * _tempb; + } + _darkColor.a = _premultipliedAlpha ? 255 : 0; + if (clipper.isClipping()) { + var uvs = vbuf.subarray(_vertexFloatOffset + 2); + clipper.clipTriangles(vbuf.subarray(_vertexFloatOffset), _vertexFloatCount, ibuf.subarray(_indexOffset), _indexCount, uvs, _finalColor, _darkColor, _useTint, _perVertexSize); + var clippedVertices = new Float32Array(clipper.clippedVertices); + var clippedTriangles = clipper.clippedTriangles; + _indexCount = clippedTriangles.length; + _vertexFloatCount = clippedVertices.length / _perClipVertexSize * _perVertexSize; + offsetInfo = _buffer.requestForSpine(_vertexFloatCount / _perVertexSize, _indexCount); + _indexOffset = offsetInfo.indiceOffset, _vertexOffset = offsetInfo.vertexOffset, + _vertexFloatOffset = offsetInfo.byteOffset >> 2; + vbuf = _buffer._vData, ibuf = _buffer._iData; + uintVData = _buffer._uintVData; + ibuf.set(clippedTriangles, _indexOffset); + if (_vertexEffect) for (var _v2 = 0, _n2 = clippedVertices.length, offset = _vertexFloatOffset; _v2 < _n2; _v2 += _perClipVertexSize, + offset += _perVertexSize) { + _tempPos.x = clippedVertices[_v2]; + _tempPos.y = clippedVertices[_v2 + 1]; + _finalColor.set(clippedVertices[_v2 + 2], clippedVertices[_v2 + 3], clippedVertices[_v2 + 4], clippedVertices[_v2 + 5]); + _tempUv.x = clippedVertices[_v2 + 6]; + _tempUv.y = clippedVertices[_v2 + 7]; + _useTint ? _darkColor.set(clippedVertices[_v2 + 8], clippedVertices[_v2 + 9], clippedVertices[_v2 + 10], clippedVertices[_v2 + 11]) : _darkColor.set(0, 0, 0, 0); + _vertexEffect.transform(_tempPos, _tempUv, _finalColor, _darkColor); + vbuf[offset] = _tempPos.x; + vbuf[offset + 1] = _tempPos.y; + vbuf[offset + 2] = _tempUv.x; + vbuf[offset + 3] = _tempUv.y; + uintVData[offset + 4] = _spineColorToInt32(_finalColor); + _useMulti ? vbuf[offset + 5] = _texId : _useTint && (uintVData[offset + 5] = _spineColorToInt32(_darkColor)); + } else for (var _v3 = 0, _n3 = clippedVertices.length, _offset = _vertexFloatOffset; _v3 < _n3; _v3 += _perClipVertexSize, + _offset += _perVertexSize) { + vbuf[_offset] = clippedVertices[_v3]; + vbuf[_offset + 1] = clippedVertices[_v3 + 1]; + vbuf[_offset + 2] = clippedVertices[_v3 + 6]; + vbuf[_offset + 3] = clippedVertices[_v3 + 7]; + _finalColor32 = (clippedVertices[_v3 + 5] << 24 >>> 0) + (clippedVertices[_v3 + 4] << 16) + (clippedVertices[_v3 + 3] << 8) + clippedVertices[_v3 + 2]; + uintVData[_offset + 4] = _finalColor32; + if (_useMulti) vbuf[_offset + 5] = _texId; else if (_useTint) { + _darkColor32 = (clippedVertices[_v3 + 11] << 24 >>> 0) + (clippedVertices[_v3 + 10] << 16) + (clippedVertices[_v3 + 9] << 8) + clippedVertices[_v3 + 8]; + uintVData[_offset + 5] = _darkColor32; + } + } + } else if (_vertexEffect) for (var v = _vertexFloatOffset, n = _vertexFloatOffset + _vertexFloatCount; v < n; v += _perVertexSize) { + _tempPos.x = vbuf[v]; + _tempPos.y = vbuf[v + 1]; + _tempUv.x = vbuf[v + 2]; + _tempUv.y = vbuf[v + 3]; + _vertexEffect.transform(_tempPos, _tempUv, _finalColor, _darkColor); + vbuf[v] = _tempPos.x; + vbuf[v + 1] = _tempPos.y; + vbuf[v + 2] = _tempUv.x; + vbuf[v + 3] = _tempUv.y; + uintVData[v + 4] = _spineColorToInt32(_finalColor); + _useMulti ? vbuf[v + 5] = _texId : _useTint && (uintVData[v + 5] = _spineColorToInt32(_darkColor)); + } else { + _finalColor32 = _spineColorToInt32(_finalColor); + _darkColor32 = _spineColorToInt32(_darkColor); + for (var _v = _vertexFloatOffset, _n = _vertexFloatOffset + _vertexFloatCount; _v < _n; _v += _perVertexSize) { + uintVData[_v + 4] = _finalColor32; + _useMulti ? vbuf[_v + 5] = _texId : _useTint && (uintVData[_v + 5] = _darkColor32); + } + } + }; + _proto.realTimeTraverse = function realTimeTraverse(worldMat) { + var vbuf; + var ibuf; + var locSkeleton = _comp._skeleton; + var skeletonColor = locSkeleton.color; + var graphics = _comp._debugRenderer; + var clipper = _comp._clipper; + var material = null; + var attachment, attachmentColor, slotColor, uvs, triangles; + var isRegion, isMesh, isClip; + var offsetInfo; + var slot; + var worldMatm; + _slotRangeStart = _comp._startSlotIndex; + _slotRangeEnd = _comp._endSlotIndex; + _inRange = false; + -1 == _slotRangeStart && (_inRange = true); + _debugSlots = _comp.debugSlots; + _debugBones = _comp.debugBones; + _debugMesh = _comp.debugMesh; + if (graphics && (_debugBones || _debugSlots || _debugMesh)) { + graphics.clear(); + graphics.lineWidth = 2; + } + _perClipVertexSize = _useMulti ? 12 : _useTint ? 12 : 8; + _vertexFloatCount = 0; + _vertexFloatOffset = 0; + _vertexOffset = 0; + _indexCount = 0; + _indexOffset = 0; + for (var slotIdx = 0, slotCount = locSkeleton.drawOrder.length; slotIdx < slotCount; slotIdx++) { + slot = locSkeleton.drawOrder[slotIdx]; + if (void 0 == slot) continue; + _slotRangeStart >= 0 && _slotRangeStart == slot.data.index && (_inRange = true); + if (!_inRange) { + clipper.clipEndWithSlot(slot); + continue; + } + _slotRangeEnd >= 0 && _slotRangeEnd == slot.data.index && (_inRange = false); + _vertexFloatCount = 0; + _indexCount = 0; + attachment = slot.getAttachment(); + if (!attachment) { + clipper.clipEndWithSlot(slot); + continue; + } + isRegion = attachment instanceof spine.RegionAttachment; + isMesh = attachment instanceof spine.MeshAttachment; + isClip = attachment instanceof spine.ClippingAttachment; + if (isClip) { + clipper.clipStart(slot, attachment); + continue; + } + if (!isRegion && !isMesh) { + clipper.clipEndWithSlot(slot); + continue; + } + material = _getSlotMaterial(attachment.region.texture._texture, slot.data.blendMode); + if (!material) { + clipper.clipEndWithSlot(slot); + continue; + } + if (_mustFlush || material.getHash() !== _renderer.material.getHash()) { + _mustFlush = false; + _renderer._flush(); + _renderer.node = _node; + _renderer.material = material; + } + if (isRegion) { + triangles = _quadTriangles; + _vertexFloatCount = 4 * _perVertexSize; + _indexCount = 6; + offsetInfo = _buffer.requestForSpine(4, 6); + _indexOffset = offsetInfo.indiceOffset, _vertexOffset = offsetInfo.vertexOffset, + _vertexFloatOffset = offsetInfo.byteOffset >> 2; + vbuf = _buffer._vData, ibuf = _buffer._iData; + attachment.computeWorldVertices(slot.bone, vbuf, _vertexFloatOffset, _perVertexSize); + if (graphics && _debugSlots) { + graphics.strokeColor = _slotColor; + graphics.moveTo(vbuf[_vertexFloatOffset], vbuf[_vertexFloatOffset + 1]); + for (var ii = _vertexFloatOffset + _perVertexSize, nn = _vertexFloatOffset + _vertexFloatCount; ii < nn; ii += _perVertexSize) graphics.lineTo(vbuf[ii], vbuf[ii + 1]); + graphics.close(); + graphics.stroke(); + } + } else if (isMesh) { + triangles = attachment.triangles; + _vertexFloatCount = (attachment.worldVerticesLength >> 1) * _perVertexSize; + _indexCount = triangles.length; + offsetInfo = _buffer.requestForSpine(_vertexFloatCount / _perVertexSize, _indexCount); + _indexOffset = offsetInfo.indiceOffset, _vertexOffset = offsetInfo.vertexOffset, + _vertexFloatOffset = offsetInfo.byteOffset >> 2; + vbuf = _buffer._vData, ibuf = _buffer._iData; + attachment.computeWorldVertices(slot, 0, attachment.worldVerticesLength, vbuf, _vertexFloatOffset, _perVertexSize); + if (graphics && _debugMesh) { + graphics.strokeColor = _meshColor; + for (var _ii = 0, _nn = triangles.length; _ii < _nn; _ii += 3) { + var v1 = triangles[_ii] * _perVertexSize + _vertexFloatOffset; + var v2 = triangles[_ii + 1] * _perVertexSize + _vertexFloatOffset; + var v3 = triangles[_ii + 2] * _perVertexSize + _vertexFloatOffset; + graphics.moveTo(vbuf[v1], vbuf[v1 + 1]); + graphics.lineTo(vbuf[v2], vbuf[v2 + 1]); + graphics.lineTo(vbuf[v3], vbuf[v3 + 1]); + graphics.close(); + graphics.stroke(); + } + } + } + if (0 == _vertexFloatCount || 0 == _indexCount) { + clipper.clipEndWithSlot(slot); + continue; + } + ibuf.set(triangles, _indexOffset); + uvs = attachment.uvs; + for (var v = _vertexFloatOffset, n = _vertexFloatOffset + _vertexFloatCount, u = 0; v < n; v += _perVertexSize, + u += 2) { + vbuf[v + 2] = uvs[u]; + vbuf[v + 3] = uvs[u + 1]; + } + attachmentColor = attachment.color, slotColor = slot.color; + this.fillVertices(skeletonColor, attachmentColor, slotColor, clipper, slot); + vbuf = _buffer._vData, ibuf = _buffer._iData; + if (_indexCount > 0) { + for (var _ii2 = _indexOffset, _nn2 = _indexOffset + _indexCount; _ii2 < _nn2; _ii2++) ibuf[_ii2] += _vertexOffset; + if (worldMat) { + worldMatm = worldMat.m; + _m00 = worldMatm[0]; + _m04 = worldMatm[4]; + _m12 = worldMatm[12]; + _m01 = worldMatm[1]; + _m05 = worldMatm[5]; + _m13 = worldMatm[13]; + for (var _ii3 = _vertexFloatOffset, _nn3 = _vertexFloatOffset + _vertexFloatCount; _ii3 < _nn3; _ii3 += _perVertexSize) { + _x = vbuf[_ii3]; + _y = vbuf[_ii3 + 1]; + vbuf[_ii3] = _x * _m00 + _y * _m04 + _m12; + vbuf[_ii3 + 1] = _x * _m01 + _y * _m05 + _m13; + } + } + _buffer.adjustForSpine(_vertexFloatCount / _perVertexSize, _indexCount); + } + clipper.clipEndWithSlot(slot); + } + clipper.clipEnd(); + if (graphics && _debugBones) { + var bone; + graphics.strokeColor = _boneColor; + graphics.fillColor = _slotColor; + for (var i = 0, _n4 = locSkeleton.bones.length; i < _n4; i++) { + bone = locSkeleton.bones[i]; + var x = bone.data.length * bone.a + bone.worldX; + var y = bone.data.length * bone.c + bone.worldY; + graphics.moveTo(bone.worldX, bone.worldY); + graphics.lineTo(x, y); + graphics.stroke(); + graphics.circle(bone.worldX, bone.worldY, 1.5 * Math.PI); + graphics.fill(); + 0 === i && (graphics.fillColor = _originColor); + } + } + }; + _proto.cacheTraverse = function cacheTraverse(worldMat) { + var frame = _comp._curFrame; + if (!frame) return; + var segments = frame.segments; + if (0 == segments.length) return; + var vbuf, ibuf, uintbuf; + var material; + var offsetInfo; + var vertices = frame.vertices; + var indices = frame.indices; + var worldMatm; + var frameVFOffset = 0, frameIndexOffset = 0, segVFCount = 0; + if (worldMat) { + worldMatm = worldMat.m; + _m00 = worldMatm[0]; + _m01 = worldMatm[1]; + _m04 = worldMatm[4]; + _m05 = worldMatm[5]; + _m12 = worldMatm[12]; + _m13 = worldMatm[13]; + } + var justTranslate = 1 === _m00 && 0 === _m01 && 0 === _m04 && 1 === _m05; + var needBatch = _handleVal & FLAG_BATCH; + var calcTranslate = needBatch && justTranslate; + var colorOffset = 0; + var colors = frame.colors; + var nowColor = colors[colorOffset++]; + var maxVFOffset = nowColor.vfOffset; + _handleColor(nowColor); + for (var i = 0, n = segments.length; i < n; i++) { + var segInfo = segments[i]; + material = _getSlotMaterial(segInfo.tex, segInfo.blendMode); + if (!material) continue; + if (_mustFlush || material.getHash() !== _renderer.material.getHash()) { + _mustFlush = false; + _renderer._flush(); + _renderer.node = _node; + _renderer.material = material; + } + _vertexCount = segInfo.vertexCount; + _indexCount = segInfo.indexCount; + offsetInfo = _buffer.requestForSpine(_vertexCount, _indexCount); + _indexOffset = offsetInfo.indiceOffset; + _vertexOffset = offsetInfo.vertexOffset; + _vfOffset = offsetInfo.byteOffset >> 2; + vbuf = _buffer._vData; + ibuf = _buffer._iData; + uintbuf = _buffer._uintVData; + for (var ii = _indexOffset, il = _indexOffset + _indexCount; ii < il; ii++) ibuf[ii] = _vertexOffset + indices[frameIndexOffset++]; + segVFCount = segInfo.vfCount; + vbuf.set(vertices.subarray(frameVFOffset, frameVFOffset + segVFCount), _vfOffset); + frameVFOffset += segVFCount; + if (calcTranslate) for (var _ii4 = _vfOffset, _il = _vfOffset + segVFCount; _ii4 < _il; _ii4 += 6) { + vbuf[_ii4] += _m12; + vbuf[_ii4 + 1] += _m13; + } else if (needBatch) for (var _ii5 = _vfOffset, _il2 = _vfOffset + segVFCount; _ii5 < _il2; _ii5 += 6) { + _x = vbuf[_ii5]; + _y = vbuf[_ii5 + 1]; + vbuf[_ii5] = _x * _m00 + _y * _m04 + _m12; + vbuf[_ii5 + 1] = _x * _m01 + _y * _m05 + _m13; + } + _buffer.adjustForSpine(_vertexCount, _indexCount); + if (!_needColor) continue; + var frameColorOffset = frameVFOffset - segVFCount; + for (var _ii6 = _vfOffset + 4, _il3 = _vfOffset + 4 + segVFCount; _ii6 < _il3; _ii6 += 6, + frameColorOffset += 6) { + if (frameColorOffset >= maxVFOffset) { + nowColor = colors[colorOffset++]; + _handleColor(nowColor); + maxVFOffset = nowColor.vfOffset; + } + uintbuf[_ii6] = _finalColor32; + uintbuf[_ii6 + 1] = _darkColor32; + } + } + }; + _proto.fillBuffers = function fillBuffers(comp, renderer) { + var node = comp.node; + node._renderFlag |= RenderFlow.FLAG_UPDATE_RENDER_DATA; + if (!comp._skeleton) return; + var nodeColor = node._color; + _nodeR = nodeColor.r / 255; + _nodeG = nodeColor.g / 255; + _nodeB = nodeColor.b / 255; + _nodeA = nodeColor.a / 255; + var baseMaterial = comp._materials[0]; + if (!baseMaterial) return; + _useMulti = baseMaterial.material.isMultiSupport(); + _useTint = !_useMulti && (comp.useTint || comp.isAnimationCached()); + _vertexFormat = _useMulti ? VFOneColorTexId : _useTint ? VFTwoColor : VFOneColor; + _perVertexSize = _useMulti ? 6 : _useTint ? 6 : 5; + _node = comp.node; + _buffer = renderer.getBuffer("mesh", _vertexFormat); + _renderer = renderer; + _comp = comp; + _mustFlush = true; + _premultipliedAlpha = comp.premultipliedAlpha; + _multiplier = 1; + _handleVal = 0; + _needColor = false; + _vertexEffect = comp._effectDelegate && comp._effectDelegate._vertexEffect; + (4294967295 !== nodeColor._val || _premultipliedAlpha) && (_needColor = true); + _useTint && (_handleVal |= FLAG_TWO_COLOR); + var worldMat = void 0; + if (_comp.enableBatch) { + worldMat = _node._worldMatrix; + _mustFlush = false; + _handleVal |= FLAG_BATCH; + } + if (comp.isAnimationCached()) this.cacheTraverse(worldMat); else { + _vertexEffect && _vertexEffect.begin(comp._skeleton); + this.realTimeTraverse(worldMat); + _vertexEffect && _vertexEffect.end(); + } + renderer.worldMatDirty++; + comp.attachUtil._syncAttachedNode(); + _node = void 0; + _buffer = void 0; + _renderer = void 0; + _comp = void 0; + _vertexEffect = null; + }; + _proto.postFillBuffers = function postFillBuffers(comp, renderer) { + renderer.worldMatDirty--; + }; + return SpineAssembler; + })(_assembler["default"]); + exports["default"] = SpineAssembler; + _assembler["default"].register(Skeleton, SpineAssembler); + module.exports = exports["default"]; + }), { + "../../cocos2d/core/renderer/assembler": 149, + "../../cocos2d/core/renderer/render-flow": 153, + "../../cocos2d/core/renderer/webgl/vertex-format": 190, + "./Skeleton": 274, + "./lib/spine": 276 + } ], + 281: [ (function(require, module, exports) { + "use strict"; + var TrackEntryListeners = function TrackEntryListeners() { + this.start = null; + this.end = null; + this.complete = null; + this.event = null; + this.interrupt = null; + this.dispose = null; + }; + TrackEntryListeners.getListeners = function(entry) { + entry.listener || (entry.listener = new TrackEntryListeners()); + return entry.listener; + }; + module.exports = TrackEntryListeners; + }), {} ], + 282: [ (function(require, module, exports) { + "use strict"; + var spine = require("./lib/spine"); + sp.VertexEffectDelegate = cc.Class({ + name: "sp.VertexEffectDelegate", + ctor: function ctor() { + this._vertexEffect = null; + this._interpolation = null; + this._effectType = "none"; + }, + clear: function clear() { + this._vertexEffect = null; + this._interpolation = null; + this._effectType = "none"; + }, + initJitter: function initJitter(jitterX, jitterY) { + this._effectType = "jitter"; + this._vertexEffect = new spine.JitterEffect(jitterX, jitterY); + return this._vertexEffect; + }, + initSwirlWithPow: function initSwirlWithPow(radius, power) { + this._interpolation = new spine.Pow(power); + this._vertexEffect = new spine.SwirlEffect(radius, this._interpolation); + return this._vertexEffect; + }, + initSwirlWithPowOut: function initSwirlWithPowOut(radius, power) { + this._interpolation = new spine.PowOut(power); + this._vertexEffect = new spine.SwirlEffect(radius, this._interpolation); + return this._vertexEffect; + }, + getJitterVertexEffect: function getJitterVertexEffect() { + return this._vertexEffect; + }, + getSwirlVertexEffect: function getSwirlVertexEffect() { + return this._vertexEffect; + }, + getVertexEffect: function getVertexEffect() { + return this._vertexEffect; + }, + getEffectType: function getEffectType() { + return this._effectType; + } + }); + module.exports = sp.VertexEffectDelegate; + }), { + "./lib/spine": 276 + } ], + 283: [ (function(require, module, exports) { + "use strict"; + var _global = "undefined" === typeof window ? global : window; + _global.cc = _global.cc || {}; + cc.internal = cc.internal || {}; + require("./predefine"); + require("./polyfill/string"); + require("./polyfill/misc"); + require("./polyfill/array"); + require("./polyfill/object"); + require("./polyfill/array-buffer"); + require("./polyfill/number"); + true; + require("./polyfill/typescript"); + require("./cocos2d/core/predefine"); + true; + require("./cocos2d"); + require("./extends"); + false; + module.exports = _global.cc; + }), { + "./cocos2d": 233, + "./cocos2d/core/predefine": 146, + "./extends": 272, + "./package": void 0, + "./polyfill/array": 285, + "./polyfill/array-buffer": 284, + "./polyfill/misc": 286, + "./polyfill/number": 287, + "./polyfill/object": 288, + "./polyfill/string": 289, + "./polyfill/typescript": 290, + "./predefine": 291 + } ], + 284: [ (function(require, module, exports) { + "use strict"; + if (!ArrayBuffer.isView) { + var TypedArray = Object.getPrototypeOf(Int8Array); + ArrayBuffer.isView = "function" === typeof TypedArray ? function(obj) { + return obj instanceof TypedArray; + } : function(obj) { + if ("object" !== typeof obj) return false; + var ctor = obj.constructor; + return ctor === Float64Array || ctor === Float32Array || ctor === Uint8Array || ctor === Uint32Array || ctor === Int8Array; + }; + } + }), {} ], + 285: [ (function(require, module, exports) { + "use strict"; + Array.isArray || (Array.isArray = function(arg) { + return "[object Array]" === Object.prototype.toString.call(arg); + }); + Array.prototype.find || (Array.prototype.find = function(callback) { + var length = this.length; + for (var i = 0; i < length; i++) { + var element = this[i]; + if (callback.call(this, element, i, this)) return element; + } + return; + }); + Array.prototype.includes || (Array.prototype.includes = function(value) { + return -1 !== this.indexOf(value); + }); + }), {} ], + 286: [ (function(require, module, exports) { + "use strict"; + Math.sign || (Math.sign = function(x) { + x = +x; + if (0 === x || isNaN(x)) return x; + return x > 0 ? 1 : -1; + }); + Math.log2 || (Math.log2 = function(x) { + return Math.log(x) * Math.LOG2E; + }); + Number.isInteger || (Number.isInteger = function(value) { + return "number" === typeof value && isFinite(value) && Math.floor(value) === value; + }); + if ((false, false) || !console.time) { + var Timer = window.performance || Date; + var _timerTable = Object.create(null); + console.time = function(label) { + _timerTable[label] = Timer.now(); + }; + console.timeEnd = function(label) { + var startTime = _timerTable[label]; + var duration = Timer.now() - startTime; + console.log(label + ": " + duration + "ms"); + }; + } + }), {} ], + 287: [ (function(require, module, exports) { + "use strict"; + Number.parseFloat = Number.parseFloat || parseFloat; + Number.parseInt = Number.parseInt || parseInt; + }), {} ], + 288: [ (function(require, module, exports) { + "use strict"; + Object.assign || (Object.assign = function(target, source) { + return cc.js.mixin(target, source); + }); + Object.getOwnPropertyDescriptors || (Object.getOwnPropertyDescriptors = function(obj) { + var descriptors = {}; + var ownKeys = Object.getOwnPropertyNames(obj); + Object.getOwnPropertySymbols && (ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(obj))); + for (var i = 0; i < ownKeys.length; ++i) { + var key = ownKeys[i]; + descriptors[key] = Object.getOwnPropertyDescriptor(obj, key); + } + return descriptors; + }); + }), {} ], + 289: [ (function(require, module, exports) { + "use strict"; + String.prototype.startsWith || (String.prototype.startsWith = function(searchString, position) { + position = position || 0; + return this.lastIndexOf(searchString, position) === position; + }); + String.prototype.endsWith || (String.prototype.endsWith = function(searchString, position) { + ("undefined" === typeof position || position > this.length) && (position = this.length); + position -= searchString.length; + var lastIndex = this.indexOf(searchString, position); + return -1 !== lastIndex && lastIndex === position; + }); + String.prototype.trimLeft || (String.prototype.trimLeft = function() { + return this.replace(/^\s+/, ""); + }); + }), {} ], + 290: [ (function(require, module, exports) { + "use strict"; + var extendStatics = Object.setPrototypeOf || { + __proto__: [] + } instanceof Array && function(d, b) { + d.__proto__ = b; + } || function(d, b) { + for (var p in b) b.hasOwnProperty(p) && (d[p] = b[p]); + }; + window.__extends = function(d, b) { + extendStatics(d, b); + function __() { + this.constructor = d; + } + d.prototype = null === b ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + window.__assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && (t[p] = s[p]); + } + return t; + }; + window.__rest = function(s, e) { + var t = {}; + for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]); + if (null != s && "function" === typeof Object.getOwnPropertySymbols) for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]) && (t[p[i]] = s[p[i]]); + return t; + }; + window.__decorate = function(decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if ("object" === typeof Reflect && "function" === typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r); + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + window.__param = function(paramIndex, decorator) { + return function(target, key) { + decorator(target, key, paramIndex); + }; + }; + window.__metadata = function(metadataKey, metadataValue) { + if ("object" === typeof Reflect && "function" === typeof Reflect.metadata) return Reflect.metadata(metadataKey, metadataValue); + }; + window.__awaiter = function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e) { + reject(e); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e) { + reject(e); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + window.__generator = function(thisArg, body) { + var _ = { + label: 0, + sent: function sent() { + if (1 & t[0]) throw t[1]; + return t[1]; + }, + trys: [], + ops: [] + }, f, y, t, g; + return g = { + next: verb(0), + throw: verb(1), + return: verb(2) + }, "function" === typeof Symbol && (g[Symbol.iterator] = function() { + return this; + }), g; + function verb(n) { + return function(v) { + return step([ n, v ]); + }; + } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = 2 & op[0] ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), + 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + (y = 0, t) && (op = [ 2 & op[0], t.value ]); + switch (op[0]) { + case 0: + case 1: + t = op; + break; + + case 4: + _.label++; + return { + value: op[1], + done: false + }; + + case 5: + _.label++; + y = op[1]; + op = [ 0 ]; + continue; + + case 7: + op = _.ops.pop(); + _.trys.pop(); + continue; + + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (6 === op[0] || 2 === op[0])) { + _ = 0; + continue; + } + if (3 === op[0] && (!t || op[1] > t[0] && op[1] < t[3])) { + _.label = op[1]; + break; + } + if (6 === op[0] && _.label < t[1]) { + _.label = t[1]; + t = op; + break; + } + if (t && _.label < t[2]) { + _.label = t[2]; + _.ops.push(op); + break; + } + t[2] && _.ops.pop(); + _.trys.pop(); + continue; + } + op = body.call(thisArg, _); + } catch (e) { + op = [ 6, e ]; + y = 0; + } finally { + f = t = 0; + } + if (5 & op[0]) throw op[1]; + return { + value: op[0] ? op[1] : void 0, + done: true + }; + } + }; + window.__exportStar = function(m, o) { + for (var p in m) "default" === p || Object.prototype.hasOwnProperty.call(o, p) || __createBinding(o, m, p); + }; + window.__createBinding = Object.create ? function(o, m, k, k2) { + void 0 === k2 && (k2 = k); + Object.defineProperty(o, k2, { + enumerable: true, + get: function get() { + return m[k]; + } + }); + } : function(o, m, k, k2) { + void 0 === k2 && (k2 = k); + o[k2] = m[k]; + }; + window.__values = function(o) { + var s = "function" === typeof Symbol && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && "number" === typeof o.length) return { + next: function next() { + o && i >= o.length && (o = void 0); + return { + value: o && o[i++], + done: !o + }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + window.__read = function(o, n) { + var m = "function" === typeof Symbol && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((void 0 === n || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } catch (error) { + e = { + error: error + }; + } finally { + try { + r && !r.done && (m = i["return"]) && m.call(i); + } finally { + if (e) throw e.error; + } + } + return ar; + }; + window.__spread = function() { + for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); + return ar; + }; + window.__spreadArrays = function() { + for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; + for (var r = Array(s), k = 0, i = 0; i < il; i++) for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, + k++) r[k] = a[j]; + return r; + }; + window.__await = function(v) { + return this instanceof __await ? (this.v = v, this) : new __await(v); + }; + window.__asyncGenerator = function(thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { + return this; + }, i; + function verb(n) { + g[n] && (i[n] = function(v) { + return new Promise(function(a, b) { + q.push([ n, v, a, b ]) > 1 || resume(n, v); + }); + }); + } + function resume(n, v) { + try { + step(g[n](v)); + } catch (e) { + settle(q[0][3], e); + } + } + function step(r) { + r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); + } + function fulfill(value) { + resume("next", value); + } + function reject(value) { + resume("throw", value); + } + function settle(f, v) { + (f(v), q.shift(), q.length) && resume(q[0][0], q[0][1]); + } + }; + window.__asyncDelegator = function(o) { + var i, p; + return i = {}, verb("next"), verb("throw", (function(e) { + throw e; + })), verb("return"), i[Symbol.iterator] = function() { + return this; + }, i; + function verb(n, f) { + i[n] = o[n] ? function(v) { + return (p = !p) ? { + value: __await(o[n](v)), + done: "return" === n + } : f ? f(v) : v; + } : f; + } + }; + window.__asyncValues = function(o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = "function" === typeof __values ? __values(o) : o[Symbol.iterator](), + i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { + return this; + }, i); + function verb(n) { + i[n] = o[n] && function(v) { + return new Promise(function(resolve, reject) { + v = o[n](v), settle(resolve, reject, v.done, v.value); + }); + }; + } + function settle(resolve, reject, d, v) { + Promise.resolve(v).then((function(v) { + resolve({ + value: v, + done: d + }); + }), reject); + } + }; + window.__makeTemplateObject = function(cooked, raw) { + Object.defineProperty ? Object.defineProperty(cooked, "raw", { + value: raw + }) : cooked.raw = raw; + return cooked; + }; + var __setModuleDefault = Object.create ? function(o, v) { + Object.defineProperty(o, "default", { + enumerable: true, + value: v + }); + } : function(o, v) { + o["default"] = v; + }; + window.__importStar = function(mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (null != mod) for (var k in mod) "default" !== k && Object.prototype.hasOwnProperty.call(mod, k) && __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; + }; + window.__importDefault = function(mod) { + return mod && mod.__esModule ? mod : { + default: mod + }; + }; + window.__classPrivateFieldGet = function(receiver, privateMap) { + if (!privateMap.has(receiver)) throw new TypeError("attempted to get private field on non-instance"); + return privateMap.get(receiver); + }; + window.__classPrivateFieldSet = function(receiver, privateMap, value) { + if (!privateMap.has(receiver)) throw new TypeError("attempted to set private field on non-instance"); + privateMap.set(receiver, value); + return value; + }; + }), {} ], + 291: [ (function(require, module, exports) { + "use strict"; + var _global = "undefined" === typeof window ? global : window; + function defineMacro(name, defaultValue) { + "undefined" === typeof _global[name] && (_global[name] = defaultValue); + } + function defineDeprecatedMacroGetter(name, defaultValue) { + "undefined" === typeof _global[name] && Object.defineProperty(_global, name, { + get: function get() { + var recommandedUsage; + "CC_WECHATGAMESUB" === name ? recommandedUsage = "cc.sys.platform === cc.sys.WECHAT_GAME_SUB" : "CC_WECHATGAME" === name ? recommandedUsage = "cc.sys.platform === cc.sys.WECHAT_GAME" : "CC_QQPLAY" === name && (recommandedUsage = "cc.sys.platform === cc.sys.QQ_PLAY"); + cc.warnID(1400, name, recommandedUsage); + return defaultValue; + } + }); + } + function defined(name) { + return "object" === typeof _global[name]; + } + defineMacro("CC_BUILD", false); + true; + _global.CC_BUILD = true; + _global.CC_DEV = false; + _global.CC_DEBUG = true; + _global.CC_JSB = false; + _global.CC_NATIVERENDERER = false; + _global.CC_SUPPORT_JIT = true; + _global.CC_PHYSICS_BUILTIN = false; + _global.CC_PHYSICS_CANNON = false; + _global.CC_EDITOR = false; + _global.CC_PREVIEW = false; + _global.CC_TEST = false; + _global.CC_RUNTIME = false; + _global.CC_JSB = false; + var WECHATGAMESUB = !!(defined("wx") && wx.getSharedCanvas); + var WECHATGAME = !!(defined("wx") && (wx.getSystemInfoSync || wx.getSharedCanvas)); + var QQPLAY = defined("bk"); + defineDeprecatedMacroGetter("CC_WECHATGAMESUB", WECHATGAMESUB); + defineDeprecatedMacroGetter("CC_WECHATGAME", WECHATGAME); + defineDeprecatedMacroGetter("CC_QQPLAY", QQPLAY); + false; + var engineVersion = "2.4.5"; + _global["CocosEngine"] = cc.ENGINE_VERSION = engineVersion; + }), {} ] +}, {}, [ 283 ]); +//# sourceMappingURL=cocos2d-js.js.map diff --git a/demo/web-desktop/cocos2d-js.js.e63e9.map b/demo/web-desktop/cocos2d-js.js.e63e9.map new file mode 100644 index 00000000..913f2da3 --- /dev/null +++ b/demo/web-desktop/cocos2d-js.js.e63e9.map @@ -0,0 +1 @@ +{"version":3,"sources":["Users/smallmain/Documents/Work/test/engine/gulp/browserify_prelude.js","Users/smallmain/Documents/Work/test/engine/DebugInfos.json","cocos2d-js.931db.js","Users/smallmain/Documents/Work/test/engine/cocos2d/actions/CCAction.js","Users/smallmain/Documents/Work/test/engine/cocos2d/actions/CCActionCatmullRom.js","Users/smallmain/Documents/Work/test/engine/cocos2d/actions/CCActionEase.js","Users/smallmain/Documents/Work/test/engine/cocos2d/actions/CCActionInstant.js","Users/smallmain/Documents/Work/test/engine/cocos2d/actions/CCActionInterval.js","Users/smallmain/Documents/Work/test/engine/cocos2d/actions/CCActionManager.js","Users/smallmain/Documents/Work/test/engine/cocos2d/actions/index.js","Users/smallmain/Documents/Work/test/engine/cocos2d/actions/tween.js","Users/smallmain/Documents/Work/test/engine/cocos2d/animation/animation-animator.js","Users/smallmain/Documents/Work/test/engine/cocos2d/animation/animation-clip.js","Users/smallmain/Documents/Work/test/engine/cocos2d/animation/animation-curves.js","Users/smallmain/Documents/Work/test/engine/cocos2d/animation/animation-manager.js","Users/smallmain/Documents/Work/test/engine/cocos2d/animation/animation-state.js","Users/smallmain/Documents/Work/test/engine/cocos2d/animation/bezier.js","Users/smallmain/Documents/Work/test/engine/cocos2d/animation/easing.js","Users/smallmain/Documents/Work/test/engine/cocos2d/animation/index.js","Users/smallmain/Documents/Work/test/engine/cocos2d/animation/motion-path-helper.js","Users/smallmain/Documents/Work/test/engine/cocos2d/animation/playable.js","Users/smallmain/Documents/Work/test/engine/cocos2d/animation/types.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/CCDebug.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/CCDirector.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/CCGame.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/CCNode.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/CCPrivateNode.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/CCScene.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/CCScheduler.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/asset-manager/CCAssetManager.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/asset-manager/builtins.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/asset-manager/bundle.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/asset-manager/cache.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/asset-manager/config.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/asset-manager/depend-util.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/asset-manager/deprecated.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/asset-manager/deserialize.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/asset-manager/download-dom-audio.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/asset-manager/download-dom-image.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/asset-manager/download-file.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/asset-manager/download-script.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/asset-manager/downloader.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/asset-manager/factory.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/asset-manager/fetch.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/asset-manager/font-loader.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/asset-manager/helper.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/asset-manager/index.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/asset-manager/load.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/asset-manager/pack-manager.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/asset-manager/parser.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/asset-manager/pipeline.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/asset-manager/preprocess.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/asset-manager/releaseManager.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/asset-manager/request-item.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/asset-manager/shared.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/asset-manager/task.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/asset-manager/urlTransformer.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/asset-manager/utilities.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/assets/CCAsset.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/assets/CCAudioClip.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/assets/CCBitmapFont.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/assets/CCBufferAsset.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/assets/CCFont.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/assets/CCJsonAsset.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/assets/CCLabelAtlas.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/assets/CCPrefab.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/assets/CCRenderTexture.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/assets/CCSceneAsset.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/assets/CCScripts.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/assets/CCSpriteAtlas.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/assets/CCSpriteFrame.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/assets/CCTTFFont.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/assets/CCTextAsset.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/assets/CCTexture2D.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/assets/index.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/assets/material/CCEffectAsset.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/assets/material/CCMaterial.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/assets/material/effect-base.ts","Users/smallmain/Documents/Work/test/engine/cocos2d/core/assets/material/effect-parser.ts","Users/smallmain/Documents/Work/test/engine/cocos2d/core/assets/material/effect-variant.ts","Users/smallmain/Documents/Work/test/engine/cocos2d/core/assets/material/effect.ts","Users/smallmain/Documents/Work/test/engine/cocos2d/core/assets/material/index.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/assets/material/material-pool.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/assets/material/material-variant.ts","Users/smallmain/Documents/Work/test/engine/cocos2d/core/assets/material/utils.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/base-ui/CCWidgetManager.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/camera/CCCamera.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/component-scheduler.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/components/CCAnimation.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/components/CCBlockInputEvents.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/components/CCButton.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/components/CCCanvas.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/components/CCComponent.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/components/CCComponentEventHandler.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/components/CCLabel.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/components/CCLabelOutline.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/components/CCLabelShadow.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/components/CCLayout.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/components/CCMotionStreak.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/components/CCRenderComponent.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/components/CCRichText.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/components/CCScrollBar.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/components/CCSprite.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/components/CCToggle.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/components/CCToggleContainer.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/components/CCToggleGroup.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/components/CCWidget.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/components/index.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/components/missing-script.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/event-manager/CCEvent.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/event-manager/CCEventListener.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/event-manager/CCEventManager.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/event-manager/CCTouch.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/event-manager/index.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/event/event-listeners.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/event/event-target.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/event/event.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/event/index.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/event/system-event.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/graphics/index.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/index.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/node-activator.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/platform/CCClass.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/platform/CCClassDecorator.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/platform/CCEnum.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/platform/CCInputExtension.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/platform/CCInputManager.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/platform/CCMacro.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/platform/CCObject.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/platform/CCSAXParser.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/platform/CCScreen.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/platform/CCSys.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/platform/CCView.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/platform/CCVisibleRect.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/platform/attribute.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/platform/callbacks-invoker.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/platform/compiler.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/platform/deserialize-compiled.ts","Users/smallmain/Documents/Work/test/engine/cocos2d/core/platform/deserialize.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/platform/id-generater.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/platform/index.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/platform/instantiate-jit.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/platform/instantiate.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/platform/js.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/platform/preprocess-class.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/platform/requiring-frame.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/platform/utils.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/predefine.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/assembler-2d.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/assembler-pool.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/assembler.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/canvas/Device.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/canvas/Texture2D.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/index.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/render-flow.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/utils/dynamic-atlas/manager.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/utils/dynamic-atlas/reusable-atlas.ts","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/utils/label/bmfont.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/utils/label/label-frame.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/utils/label/letter-font.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/utils/label/ttf.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/utils/utils.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/webgl/assemblers/index.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/webgl/assemblers/label/2d-multi/bmfont.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/webgl/assemblers/label/2d-multi/ttf.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/webgl/assemblers/label/2d/bmfont.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/webgl/assemblers/label/2d/letter.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/webgl/assemblers/label/2d/nativeTTF.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/webgl/assemblers/label/2d/ttf.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/webgl/assemblers/label/index.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/webgl/assemblers/motion-streak-multi.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/webgl/assemblers/motion-streak.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/webgl/assemblers/sprite/2d-multi/bar-filled.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/webgl/assemblers/sprite/2d-multi/mesh.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/webgl/assemblers/sprite/2d-multi/radial-filled.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/webgl/assemblers/sprite/2d-multi/simple.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/webgl/assemblers/sprite/2d-multi/sliced.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/webgl/assemblers/sprite/2d-multi/tiled.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/webgl/assemblers/sprite/2d/bar-filled.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/webgl/assemblers/sprite/2d/mesh.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/webgl/assemblers/sprite/2d/radial-filled.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/webgl/assemblers/sprite/2d/simple.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/webgl/assemblers/sprite/2d/sliced.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/webgl/assemblers/sprite/2d/tiled.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/webgl/assemblers/sprite/index.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/webgl/flex-buffer.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/webgl/mesh-buffer.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/webgl/model-batcher.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/webgl/quad-buffer.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/webgl/render-data.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/webgl/spine-buffer.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/renderer/webgl/vertex-format.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/sp/index.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/sp/multi-batcher.ts","Users/smallmain/Documents/Work/test/engine/cocos2d/core/sp/multi-handler.ts","Users/smallmain/Documents/Work/test/engine/cocos2d/core/sp/sp.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/utils/CCPath.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/utils/affine-transform.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/utils/base-node.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/utils/binary-search.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/utils/blend-func.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/utils/decode-uuid.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/utils/find.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/utils/gray-sprite-state.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/utils/html-text-parser.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/utils/index.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/utils/misc.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/utils/mutable-forward-iterator.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/utils/pool.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/utils/prefab-helper.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/utils/profiler/CCProfiler.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/utils/profiler/counter.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/utils/profiler/perf-counter.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/utils/text-utils.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/utils/texture-util.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/utils/trans-pool/index.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/utils/trans-pool/mem-pool.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/utils/trans-pool/node-mem-pool.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/utils/trans-pool/node-unit.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/utils/trans-pool/unit-base.js","Users/smallmain/Documents/Work/test/engine/cocos2d/core/value-types/color.ts","Users/smallmain/Documents/Work/test/engine/cocos2d/core/value-types/index.ts","Users/smallmain/Documents/Work/test/engine/cocos2d/core/value-types/mat3.ts","Users/smallmain/Documents/Work/test/engine/cocos2d/core/value-types/mat4.ts","Users/smallmain/Documents/Work/test/engine/cocos2d/core/value-types/quat.ts","Users/smallmain/Documents/Work/test/engine/cocos2d/core/value-types/rect.ts","Users/smallmain/Documents/Work/test/engine/cocos2d/core/value-types/size.ts","Users/smallmain/Documents/Work/test/engine/cocos2d/core/value-types/trs.ts","Users/smallmain/Documents/Work/test/engine/cocos2d/core/value-types/utils.ts","Users/smallmain/Documents/Work/test/engine/cocos2d/core/value-types/value-type.ts","Users/smallmain/Documents/Work/test/engine/cocos2d/core/value-types/vec2.ts","Users/smallmain/Documents/Work/test/engine/cocos2d/core/value-types/vec3.ts","Users/smallmain/Documents/Work/test/engine/cocos2d/core/value-types/vec4.ts","Users/smallmain/Documents/Work/test/engine/cocos2d/deprecated.js","Users/smallmain/Documents/Work/test/engine/cocos2d/index.js","Users/smallmain/Documents/Work/test/engine/cocos2d/particle/CCParticleAsset.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/build/mappings/index.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/core/base-renderer.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/core/input-assembler.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/core/pass.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/core/program-lib.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/core/technique.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/core/view.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/enums.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/gfx/device.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/gfx/enums.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/gfx/frame-buffer.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/gfx/index-buffer.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/gfx/index.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/gfx/misc.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/gfx/program.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/gfx/render-buffer.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/gfx/state.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/gfx/texture-2d.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/gfx/texture-cube.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/gfx/texture.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/gfx/vertex-buffer.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/gfx/vertex-format.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/memop/circular-pool.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/memop/fixed-array.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/memop/index.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/memop/linked-array.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/memop/pool.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/memop/recycle-pool.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/memop/timsort.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/memop/typed-array-pool.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/murmurhash2_gc.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/renderers/forward-renderer.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/scene/camera.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/scene/model.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/scene/scene.js","Users/smallmain/Documents/Work/test/engine/cocos2d/renderer/types.js","Users/smallmain/Documents/Work/test/engine/cocos2d/tilemap/CCTiledMapAsset.js","Users/smallmain/Documents/Work/test/engine/extends.js","Users/smallmain/Documents/Work/test/engine/extensions/spine/AttachUtil.js","Users/smallmain/Documents/Work/test/engine/extensions/spine/Skeleton.js","Users/smallmain/Documents/Work/test/engine/extensions/spine/index.js","Users/smallmain/Documents/Work/test/engine/extensions/spine/lib/spine.js","Users/smallmain/Documents/Work/test/engine/extensions/spine/skeleton-cache.js","Users/smallmain/Documents/Work/test/engine/extensions/spine/skeleton-data.js","Users/smallmain/Documents/Work/test/engine/extensions/spine/skeleton-texture.js","Users/smallmain/Documents/Work/test/engine/extensions/spine/spine-assembler.js","Users/smallmain/Documents/Work/test/engine/extensions/spine/track-entry-listeners.js","Users/smallmain/Documents/Work/test/engine/extensions/spine/vertex-effect-delegate.js","Users/smallmain/Documents/Work/test/engine/index.js","Users/smallmain/Documents/Work/test/engine/polyfill/array-buffer.js","Users/smallmain/Documents/Work/test/engine/polyfill/array.js","Users/smallmain/Documents/Work/test/engine/polyfill/misc.js","Users/smallmain/Documents/Work/test/engine/polyfill/number.js","Users/smallmain/Documents/Work/test/engine/polyfill/object.js","Users/smallmain/Documents/Work/test/engine/polyfill/string.js","Users/smallmain/Documents/Work/test/engine/polyfill/typescript.js","Users/smallmain/Documents/Work/test/engine/predefine.js"],"names":["outer","modules","cache","entry","newRequire","name","jumped","module","moduleData","exports","x","i","length","1","require","1001","1002","1003","1004","1005","1006","1007","1008","1009","1010","1011","1012","1013","1014","1015","1016","1019","1020","1021","1022","1023","1024","1025","1026","1027","1028","1029","1030","1031","1100","1101","1200","1201","1203","1204","1205","1206","1207","1208","1209","1210","1211","1212","1213","1214","1215","1216","1300","1400","1404","1405","1406","1408","1502","1503","1504","1505","1506","1507","1508","1509","1510","1511","1513","1605","1606","1610","1612","1613","1617","1618","1619","1620","1623","1624","1625","1626","1627","1632","1633","1634","1635","1636","1637","1638","1639","1800","1801","1802","1803","1900","2000","2200","2201","2300","2400","2602","2603","2606","2607","2608","2609","2610","2614","2616","2617","2618","2619","2623","2625","2626","2627","2628","2712","3005","3006","3007","3103","3112","3113","3116","3117","3119","3120","3121","3300","3400","3401","3500","3501","3502","3503","3504","3505","3506","3507","3508","3509","3510","3511","3600","3601","3602","3603","3604","3605","3606","3607","3608","3609","3610","3611","3612","3613","3614","3615","3616","3617","3618","3619","3620","3621","3622","3623","3624","3625","3626","3627","3628","3633","3634","3635","3636","3637","3638","3639","3640","3641","3642","3643","3644","3645","3646","3647","3648","3649","3651","3652","3653","3654","3655","3700","3701","3800","3801","3802","3803","3804","3805","3806","3807","3808","3809","3810","3811","3812","3813","3814","3815","3816","3817","3818","3819","3820","3821","3900","3901","3902","3903","3904","3905","3906","3907","3912","4003","4004","4011","4012","4013","4200","4201","4202","4300","4400","4600","4700","4800","4901","4902","4914","4915","4916","4921","4922","4923","4924","4925","4926","4927","4928","4929","4930","4932","4933","5000","5001","5100","5200","5201","5202","5300","5301","5302","5303","5304","5402","5403","5404","5405","5406","5500","5501","5507","5508","5510","5511","5512","5513","5514","5515","5516","5517","5601","5602","5603","5700","5800","5801","5802","5900","5901","5902","6000","6001","6017","6018","6019","6020","6021","6022","6023","6024","6025","6026","6027","6028","6029","6030","6031","6032","6400","6402","6500","6600","6601","6700","6800","6801","6900","6901","6902","6903","6904","6905","7100","7101","7200","7201","7202","7203","7210","7211","7215","7216","7217","7218","7219","7221","7222","7236","7237","7238","7239","7240","7241","7401","7402","7501","7502","7503","7504","7506","7507","7508","7509","7510","7600","7601","7602","7603","7604","7605","7700","7701","7702","7800","7801","7802","7803","7804","7805","7900","7901","7902","7903","7904","7905","7906","7907","7908","7909","8000","8001","8002","8003","8103","8104","8105","8106","8107","8108","8109","8200","8300","8301","8400","8401","9000","9001","9100","9101","9102","9103","9104","9105","9106","9107","9200","0100","2","misc","cc","Action","Class","ctor","this","originalTarget","target","tag","TAG_INVALID","clone","action","isDone","startWithTarget","stop","step","dt","logID","update","getTarget","setTarget","getOriginalTarget","setOriginalTarget","getTag","setTag","retain","release","FiniteTimeAction","extends","_duration","getDuration","_timesForRepeat","setDuration","duration","reverse","Speed","speed","_speed","_innerAction","initWithAction","getSpeed","setSpeed","errorID","prototype","call","setInnerAction","getInnerAction","Follow","followedNode","rect","_followedNode","_boundarySet","_boundaryFullyCovered","_halfScreenSize","_fullScreenSize","leftBoundary","rightBoundary","topBoundary","bottomBoundary","_worldRect","initWithTarget","locRect","Rect","y","width","height","isBoundarySet","setBoudarySet","value","_this","winSize","v2","mul","targetWorldPos","convertToWorldSpaceAR","Vec2","ZERO","followedWorldPos","delta","sub","tempPos","parent","convertToNodeSpaceAR","add","setPosition","clampf","activeInHierarchy","follow","../core/platform/CCClass","../core/utils/misc","3","cardinalSplineAt","p0","p1","p2","p3","tension","t","t2","t3","s","b1","b2","b3","b4","getControlPointAt","controlPoints","pos","p","Math","min","max","reverseControlPoints","newArray","push","cloneControlPoints","CardinalSplineTo","ActionInterval","points","_points","_deltaT","_tension","_previousPosition","_accumulatedDiff","undefined","initWithDuration","setPoints","_computeEaseTime","lt","ps","locDT","newPos","macro","ENABLE_STACKABLE_ACTIONS","tempX","tempY","locAccDiff","updatePosition","reversePoints","cardinalSplineTo","getPoints","CardinalSplineBy","_startPosition","copyConfig","slice","current","reverseArray","pop","unshift","cardinalSplineBy","posX","posY","a","CatmullRomTo","catmullRomTo","CatmullRomBy","catmullRomBy","4","easeIn","rate","_rate","easing","pow","easeOut","easeInOut","_easeExponentialInObj","_easeExponentialOutObj","easeExponentialIn","easeExponentialOut","_easeExponentialInOutObj","easeExponentialInOut","_easeSineInObj","cos","PI","_easeSineOutObj","easeSineIn","sin","easeSineOut","_easeSineInOutObj","easeSineInOut","_easeElasticInObj","_easeElasticOutObj","easeElasticIn","period","_period","easeElasticOut","easeElasticInOut","newT","locPeriod","_bounceTime","time1","_easeBounceInObj","_easeBounceOutObj","easeBounceIn","easeBounceOut","_easeBounceInOutObj","easeBounceInOut","_easeBackInObj","overshoot","_easeBackOutObj","easeBackIn","easeBackOut","_easeBackInOutObj","easeBackInOut","easeBezierAction","b","c","d","_easeQuadraticActionIn","time","easeQuadraticActionIn","_easeQuadraticActionOut","easeQuadraticActionOut","_easeQuadraticActionInOut","resultTime","easeQuadraticActionInOut","_easeQuarticActionIn","easeQuarticActionIn","_easeQuarticActionOut","easeQuarticActionOut","_easeQuarticActionInOut","easeQuarticActionInOut","_easeQuinticActionIn","easeQuinticActionIn","_easeQuinticActionOut","easeQuinticActionOut","_easeQuinticActionInOut","easeQuinticActionInOut","_easeCircleActionIn","sqrt","easeCircleActionIn","_easeCircleActionOut","easeCircleActionOut","_easeCircleActionInOut","easeCircleActionInOut","_easeCubicActionIn","easeCubicActionIn","_easeCubicActionOut","easeCubicActionOut","_easeCubicActionInOut","easeCubicActionInOut","5","ActionInstant","Show","_renderComps","getComponentsInChildren","RenderComponent","render","enabled","Hide","show","hide","ToggleVisibility","toggleVisibility","RemoveSelf","isNeedCleanUp","_isNeedCleanUp","init","removeFromParent","removeSelf","DestroySelf","destroy","destroySelf","FlipX","flip","_flippedX","initWithFlipX","scaleX","abs","flipX","FlipY","_flippedY","initWithFlipY","scaleY","flipY","Place","_x","_y","initWithPosition","place","CallFunc","selector","selectorTarget","data","_selectorTarget","_function","_data","initWithFunction","execute","getTargetCallback","setTargetCallback","sel","callFunc","6","MAX_VALUE","_elapsed","_firstTick","_easeList","_repeatForever","_repeatMethod","_speedMethod","getElapsed","FLT_EPSILON","_cloneDecoration","_reverseEaseList","easeObj","arguments","locList","n","setAmplitudeRate","amp","getAmplitudeRate","repeat","times","round","isNaN","repeatForever","actionInterval","Sequence","tempArray","_actions","_split","_last","_reversed","paramArray","Array","last","prev","action1","_actionOneTwo","initWithTwoActions","actionOne","actionTwo","durationOne","durationTwo","new_t","found","locSplit","locActions","locLast","actionFound","sequence","result","Repeat","_times","_total","_nextDt","_actionInstant","locInnerAction","locDuration","locTimes","locNextDt","RepeatForever","Spawn","_one","_two","action2","ret","d1","d2","delayTime","spawn","pSpawn","RotateTo","statics","_reverse","dstAngle","_startAngle","_dstAngle","_angle","startAngle","angle","rotateTo","RotateBy","deltaAngle","_deltaAngle","rotateBy","MoveBy","deltaPos","deltaY","_positionDelta","position","locPosX","locPosY","locStartPosition","targetX","targetY","locPreviousPosition","moveBy","MoveTo","_endPosition","moveTo","SkewTo","sx","sy","_skewX","_skewY","_startSkewX","_startSkewY","_endSkewX","_endSkewY","_deltaX","_deltaY","skewX","skewY","skewTo","SkewBy","deltaSkewX","deltaSkewY","skewBy","JumpBy","jumps","_delta","_height","_jumps","frac","jumpBy","JumpTo","jumpTo","bezierAt","BezierBy","_config","newConfigs","selConf","locConfig","xa","xb","xc","xd","ya","yb","yc","yd","x0","y0","x1","y1","x2","y2","r","bezierBy","BezierTo","_toConfig","locStartPos","locToConfig","bezierTo","ScaleTo","_scaleX","_scaleY","_startScaleX","_startScaleY","_endScaleX","_endScaleY","scaleTo","ScaleBy","scaleBy","Blink","blinks","_originalState","m","opacity","blink","FadeTo","_toOpacity","_fromOpacity","fromOpacity","fadeTo","FadeIn","_reverseAction","FadeOut","fadeIn","fadeOut","TintTo","red","green","blue","_to","color","_from","Color","g","locTo","locFrom","tintTo","TintBy","deltaRed","deltaGreen","deltaBlue","_deltaR","_deltaG","_deltaB","_fromR","_fromG","_fromB","tintBy","DelayTime","ReverseTime","_other","reverseTime","TargetedAction","_action","_forcedTarget","getForcedTarget","setForcedTarget","forcedTarget","targetedAction","7","js","HashElement","actions","actionIndex","currentAction","paused","lock","ActionManager","_hashTargets","createMap","_arrayTargets","_currentTarget","director","_scheduler","enableForTarget","constructor","_elementPool","_searchElementByTarget","arr","k","_getElement","element","_putElement","addAction","_id","removeAllActions","locTargets","removeAllActionsFromTarget","forceDelete","_deleteHashElement","removeAction","splice","_removeActionByTag","l","_removeActionAtIndex","removeActionByTag","hashTargets","_element","getActionByTag","getNumberOfRunningActionsInTarget","pauseTarget","resumeTarget","pauseAllRunningActions","idsWithActions","resumeTargets","targetsToResume","pauseTargets","targetsToPause","purgeSharedManager","getScheduler","unscheduleUpdate","index","targets","locCurrTarget","elt","CC_TEST","../core/platform/js","8","./CCAction","./CCActionCatmullRom","./CCActionEase","./CCActionInstant","./CCActionInterval","./CCActionManager","./tween","9","_bezier","_tweenID","TweenAction","props","opts","_opts","Object","create","_props","progress","easingName","warnID","relative","isNumber","lerp","warn","prop","_originProps","start","end","easingTime","onUpdate","SetAction","Tween","_finalAction","_target","_tag","stopAll","getActionManager","stopAllByTag","stopAllByTarget","then","other","_union","isValid","tween","union","assign","c1","c2","to","c0x","c0y","c1x","c1y","bezier","by","_this2","tmp_args","wrapAction","arg","apply","set","delay","parallel","previousAsInputActions","keys","_loop","key","_loop2","_i","args","_i2","../animation/bezier","10","Playable","_require","EventAnimCurve","EventInfo","WrapModeMask","binarySearch","binarySearchEpsilon","AnimationAnimator","animation","_anims","array","MutableForwardIterator","extend","playState","state","startTime","clip","curveLoaded","initClipData","animator","play","setTime","stopStatesExcept","iterator","anim","stopState","addAnimation","indexOf","_setEventTarget","removeAnimation","fastRemoveAt","sample","pauseState","pause","resumeState","resume","isPaused","setStateTime","onStop","onPause","onResume","_reloadClip","createBatchedProperty","propPath","firstDotIndex","mainValue","animValue","nextValue","leftIndex","rightIndex","nextName","lastPropName","root","wrapMode","frameRate","Loop","repeatCount","Infinity","curves","createCurves","events","curve","eventData","ratio","frame","eventInfo","ratios","func","params","../core/utils/binary-search","./animation-curves","./playable","./types","11","WrapMode","DynamicAnimCurve","quickFindIndex","sampleMotionPaths","AnimationClip","Asset","properties","default","type","Float","get","Normal","curveData","visible","createWithSpriteFrames","spriteFrames","isArray","frames","comps","cc.Sprite","spriteFrame","onLoad","Number","parseFloat","parseInt","createPropCurve","keyframes","motionPaths","isMotionPathProp","Node","keyframe","motionPath","curveValue","values","curveTypes","types","Linear","Bezier","currRatioDif","lastRatioDif","canOptimize","EPSILON","_l","_findFrameIndex","firstValue","_lerp","_lerpNumber","Quat","_lerpQuat","_lerpVector2","Vec3","_lerpVector3","_lerpObject","createTargetCurves","propsData","compsData","compName","comp","getComponent","compData","_propPath","_curve","childrenCurveDatas","paths","namePath","find","childCurveDatas","./motion-path-helper","12","bezierByTime","WrappedInfo","computeRatioByType","AnimCurve","onTimeChangedManually","eachLength","floorIndex","_cachedIndex","from","out","quat","v3","frameCount","shoudRefind","cachedIndex","_fromRatio","_toRatio","fromVal","fromRatio","toRatio","ratioBetweenFrames","toVal","_wrappedInfo","_default","_lastWrappedInfo","_ignoreIndex","NaN","_wrapIterations","iterations","currentWrappedInfo","getWrappedInfo","direction","currentIndex","frameIndex","_fireEvent","currentIterations","lastWrappedInfo","lastIterations","lastIndex","lastDirection","interationsChanged","PingPong","getAnimationManager","pushDelayEvent","components","_components","event","funcName","j","component","info","./bezier","13","AnimationManager","_delayEvents","_isPlaying","_isPaused","destruct","14","Types","AnimationState","_currentFramePlayed","_delay","_delayTime","_process","process","_clip","_name","_lastframeEventOn","emit","proto","_emit","on","callback","once","self","off","hasEventListener","onPlay","lastInfo","stopped","simpleProcess","len","_lastIterations","_needRevers","needRevers","isEnd","isOddIteration","Reverse","tempRatio","tempTime","shouldWrap","_wrapMode","ShouldWrap","obsolete","getset","CC_EDITOR","_repeatCount","15","C1","C2","C3","C4","t1","acos","pi","tau","crt","v","cardano","pa","pb","pc","pd","pa3","pb3","pc3","rd","r3","a3","q","q2","discriminant","u1","v1","x3","mp3","mp33","cosphi","phi","crtr","sd","percent","p1y","p2y","16","constant","linear","quadIn","quadOut","quadInOut","cubicIn","cubicOut","cubicInOut","quartIn","quartOut","quartInOut","quintIn","quintOut","quintInOut","sineIn","sineOut","sineInOut","expoIn","expoOut","expoInOut","circIn","circOut","circInOut","elasticIn","asin","elasticOut","elasticInOut","backIn","backOut","backInOut","bounceIn","bounceOut","bounceInOut","smooth","fade","_makeOutIn","fnIn","fnOut","quadOutIn","cubicOutIn","quartOutIn","quintOutIn","sineOutIn","expoOutIn","circOutIn","backOutIn","bounceOutIn","17","./animation-animator","./animation-clip","./animation-manager","./animation-state","./easing","18","Curve","beziers","progresses","computeBeziers","startPoint","endPoint","startCtrlPoint","endCtrlPoint","getLength","getPointAt","u","getUtoTmapping","getPoint","lengths","getLengths","divisions","__arcLengthDivisions","cacheArcLengths","vector","sum","mag","distance","arcLengths","il","targetArcLength","low","high","comparison","floor","lengthBefore","lengthAfter","segmentLength","segmentFraction","checkMotionPath","controls","fps","createControlPoints","in","map","motionPathValid","_motionPath","newValues","newTypes","newRatios","addNewDatas","startRatioOffset","newType","nextRatio","betweenRatio","results","finalProgress","l2","normal","normalize","bezierIndex","newRatio","19","debug","_stepOnce","virtual","onError","getError","../core/CCDebug","20","Enum","Default","LoopReverse","PingPongReverse","21","utils","debugInfos","ERROR_MAP_URL","logList","log","error","assert","console","bind","resetDebugSetting","mode","DebugMode","NONE","ERROR","logToWebPage","msg","game","canvas","logDiv","document","createElement","setAttribute","logDivStyle","style","zIndex","top","left","logListStyle","backgroundColor","borderBottom","borderTopWidth","borderLeftWidth","borderRightWidth","borderTopStyle","borderLeftStyle","borderRightStyle","padding","margin","appendChild","parentNode","scrollTop","scrollHeight","formatStr","cond","shiftArguments","ERROR_FOR_WEB_PAGE","INFO_FOR_WEB_PAGE","CC_JSB","CC_DEV","Error","INFO","CC_RUNTIME","_throw","callInNextTick","getTypedFormatter","id","argsArray","concat","logFormatter","warnFormatter","errorFormatter","assertFormatter","assertID","WARN","WARN_FOR_WEB_PAGE","_resetDebugSetting","isDisplayStats","profiler","isShowingStats","setDisplayStats","displayStats","renderType","RENDER_TYPE_CANVAS","showStats","hideStats","config","showFPS","../../DebugInfos","./platform/utils","22","EventTarget","ComponentScheduler","NodeActivator","Obj","renderer","eventManager","Scheduler","Director","_paused","_purgeDirectorInNextLoop","_winSizeInPoints","_scene","_loadingScene","_totalFrames","_lastUpdate","_deltaTime","_startTime","_maxParticleDeltaTime","_compScheduler","_nodeActivator","_actionManager","EVENT_SHOW","performance","now","EVENT_ENGINE_INITED","size","scheduleUpdate","PRIORITY_SYSTEM","sharedInit","setEnabled","_animationManager","CollisionManager","_collisionManager","PhysicsManager","_physicsManager","Physics3DManager","CC_PHYSICS_BUILTIN","CC_PHYSICS_CANNON","_physics3DManager","_widgetManager","calculateDeltaTime","CC_DEBUG","convertToGL","uiPoint","container","view","box","getBoundingClientRect","window","pageXOffset","clientLeft","pageYOffset","clientTop","_devicePixelRatio","_isRotated","_viewportRect","convertToUI","glPoint","getWinSize","getWinSizeInPixels","purgeCachedData","assetManager","releaseAll","purgeDirector","unscheduleAll","reset","clear","builtins","runSceneImmediate","scene","onBeforeLoadScene","onLaunched","Scene","SceneAsset","CC_BUILD","_load","timeEnd","persistNodeList","_persistRootNodes","node","existNode","getChildByUuid","uuid","getSiblingIndex","_destroyImmediate","insertChild","oldScene","_releaseManager","_autoRelease","_deferredDestroy","EVENT_BEFORE_SCENE_LAUNCH","_activate","EVENT_AFTER_SCENE_LAUNCH","runScene","EVENT_AFTER_DRAW","loadScene","sceneName","_onUnloaded","bundle","bundles","getSceneInfo","EVENT_BEFORE_SCENE_LOADING","err","preloadScene","onProgress","onLoaded","setDepthTest","Camera","main","depth","setClearColor","clearColor","getRunningScene","getScene","getAnimationInterval","getFrameRate","setAnimationInterval","setFrameRate","getDeltaTime","getTotalTime","getTotalFrames","setScheduler","scheduler","setActionManager","actionManager","getCollisionManager","getPhysicsManager","getPhysics3DManager","startAnimation","stopAnimation","_resetDeltaTime","mainLoop","EVENT_BEFORE_UPDATE","startPhase","updatePhase","lateUpdatePhase","EVENT_AFTER_UPDATE","EVENT_BEFORE_DRAW","frameUpdateListeners","__fastOn","__fastOff","addon","EVENT_PROJECTION_CHANGED","EVENT_BEFORE_VISIT","EVENT_AFTER_VISIT","PROJECTION_2D","PROJECTION_3D","PROJECTION_CUSTOM","PROJECTION_DEFAULT","EVENT_BEFORE_PHYSICS","EVENT_AFTER_PHYSICS","./CCGame","./CCScheduler","./component-scheduler","./event-manager","./event/event-target","./node-activator","./platform/CCObject","./renderer","23","dynamicAtlasManager","EVENT_HIDE","EVENT_RESTART","EVENT_GAME_INITED","EVENT_RENDERER_INITED","RENDER_TYPE_WEBGL","RENDER_TYPE_OPENGL","_configLoaded","_isCloning","_prepared","_rendererInitialized","_renderContext","_intervalId","_lastTime","_frameTime","onStart","cancelAnimFrame","_setAnimFrame","_runMainLoop","audioEngine","_break","_restore","restart","removePersistRootNode","uncacheAll","close","_initEngine","_initRenderer","_initEvents","_loadPreviewScript","cb","CC_PREVIEW","_prepareFinished","ENGINE_VERSION","eventTargetOn","eventTargetOnce","prepare","run","_initConfig","addPersistRootNode","isNode","_persistNode","_addPersistNodeRef","_removePersistNodeRef","isPersistRootNode","rAF","requestAnimationFrame","webkitRequestAnimationFrame","mozRequestAnimationFrame","oRequestAnimationFrame","msRequestAnimationFrame","requestAnimFrame","_stTimeWithRAF","_stTime","_ctTime","cancelAnimationFrame","cancelRequestAnimationFrame","msCancelRequestAnimationFrame","mozCancelRequestAnimationFrame","oCancelRequestAnimationFrame","webkitCancelRequestAnimationFrame","msCancelAnimationFrame","mozCancelAnimationFrame","webkitCancelAnimationFrame","oCancelAnimationFrame","currTime","timeToCall","setTimeout","clearTimeout","_callback","skip","debugMode","exposeClassName","renderMode","registerSystemEvent","collisionMatrix","groupList","_determineRenderType","userRenderMode","supportRender","sys","capabilities","el","localCanvas","localContainer","addClass","hasClass","className","HTMLElement","querySelector","tagName","insertBefore","clientWidth","clientHeight","body","documentElement","stencil","antialias","ENABLE_WEBGL_ANTIALIAS","alpha","ENABLE_TRANSPARENT_CANVAS","initWebGL","device","_gl","CLEANUP_IMAGE_CACHE","initCanvas","_ctx","oncontextmenu","_isContextMenuEnable","win","hiddenPropName","internal","inputManager","hidden","mozHidden","msHidden","webkitHidden","onHidden","onShown","arg0","arg1","arg2","arg3","arg4","changeList","addEventListener","navigator","userAgent","onfocus","../audio/CCAudioEngine","../core/renderer/utils/dynamic-atlas/manager","./CCDebug","./renderer/index.js","24","_valueTypes","BaseNode","PrefabHelper","nodeMemPool","NodeMemPool","AffineTrans","Event","RenderFlow","Flags","Destroying","ERR_INVALID_NUMBER","ONE_DEGREE","ActionManagerExist","emptyFunc","_gwpVec3","_gwpQuat","_tpVec3a","_tpVec3b","_tpQuata","_tpQuatb","_swpVec3","_gwsVec3","_swsVec3","_gwrtVec3a","_gwrtVec3b","_gwrtQuata","_gwrtQuatb","_laVec3","_laQuat","_urfVec3","_urfQuat","_htVec3a","_htVec3b","_gwrQuat","_swrQuat","_quata","_mat4_temp","mat4","_vec3_temp","_cachedArray","POSITION_ON","SCALE_ON","ROTATION_ON","SIZE_ON","ANCHOR_ON","COLOR_ON","BuiltinGroupIndex","DEBUG","LocalDirtyFlag","POSITION","SCALE","ROTATION","SKEW","TRS","RS","TRSS","PHYSICS_POSITION","PHYSICS_SCALE","PHYSICS_ROTATION","PHYSICS_TRS","PHYSICS_RS","ALL_POSITION","ALL_SCALE","ALL_ROTATION","ALL_TRS","ALL","EventType","TOUCH_START","TOUCH_MOVE","TOUCH_END","TOUCH_CANCEL","MOUSE_DOWN","MOUSE_MOVE","MOUSE_ENTER","MOUSE_LEAVE","MOUSE_UP","MOUSE_WHEEL","POSITION_CHANGED","ROTATION_CHANGED","SCALE_CHANGED","SIZE_CHANGED","ANCHOR_CHANGED","COLOR_CHANGED","CHILD_ADDED","CHILD_REMOVED","CHILD_REORDER","GROUP_CHANGED","SIBLING_ORDER_CHANGED","_touchEvents","_mouseEvents","_skewNeedWarn","_skewWarn","nodePath","NodeUtils","_currentHovered","_touchStartHandler","touch","getLocation","owner","_hitTest","bubbles","dispatchEvent","_touchMoveHandler","_touchEndHandler","_touchCancelHandler","_mouseDownHandler","_mouseMoveHandler","hit","_previousIn","_mouseListener","stopPropagation","_mouseUpHandler","_mouseWheelHandler","_searchComponentsInParent","list","curr","_parent","next","_checkListeners","_objFlags","_bubblingListeners","_capturingListeners","_doDispatchEvent","_getCapturingTargets","eventPhase","currentTarget","_propagationStopped","_propagationImmediateStopped","_getBubblingTargets","_getActualGroupIndex","groupIndex","_updateCullingMask","_cullingMask","_children","updateLocalMatrix3D","_localMatDirty","_matrix","tm","Trs","toMat4","_trs","skx","tan","sky","_worldMatDirty","updateLocalMatrix2D","dirtyFlag","trs","rotation","_eulerAngles","z","hasSkew","rotationRadians","_a","_b","_c","_d","calculWorldMatrix3D","_updateLocalMatrix","parentMat","_worldMatrix","Mat4","copy","calculWorldMatrix2D","_mulMat","mulMat2D","am","bm","outm","aa","ab","ac","ad","atx","aty","ba","bb","bc","bd","btx","bty","mulMat3D","NodeDefines","_opacity","_color","WHITE","_contentSize","Size","_anchorPoint","_position","_scale","_zIndex","Integer","_localZOrder","serializable","_is3DNode","_groupIndex","formerlySerializedAs","group","oldValue","setLocalDirty","_eventMask","_renderFlag","FLAG_WORLD_TRANSFORM","fromAngleZ","rotationX","fromEulerNumber","rotationY","eulerAngles","toEuler","fromEuler","FLAG_TRANSFORM","setRotation","scale","setScale","scaleZ","FLAG_OPACITY_COLOR","range","equals","FLAG_COLOR","anchorX","anchorPoint","anchorY","MAX_ZINDEX","MIN_ZINDEX","_onSiblingIndexChanged","is3DNode","_update3DFunction","up","_up","transformQuat","UP","getWorldRotation","right","_right","RIGHT","forward","_forward","FORWARD","_reorderChildDirty","_widget","_renderComponent","_touchListener","_initDataFromPool","_childArrivalOrder","_LocalDirtyFlag","obj","_delaySort","_onPreDestroy","destroyByParent","_onPreDestroyBase","removeListeners","mask","_backDataIntoPool","sortAllChildren","_onPostActivated","active","_checkListenerMask","_onHierarchyChanged","oldParent","_updateOrderOfArrival","_onHierarchyChangedBase","_nodesOrderDirty","_activeInHierarchy","_calculWorldMatrix","_on3DNodeChanged","_spaceInfo","spaceInfo","localMat","identity","worldMat","_toEuler","_fromEuler","_initProperties","desTrs","subarray","_onBatchCreated","dontSyncChildPrefab","children","child","prefabInfo","_prefab","sync","syncWithPrefab","FLAG_CHILDREN","Mask","_checknSetupSysEvent","newAdded","forDispatch","EventListener","TOUCH_ONE_BY_ONE","swallowTouches","onTouchBegan","onTouchMoved","onTouchEnded","onTouchCancelled","addListener","MOUSE","onMouseDown","onMouseMove","onMouseUp","onMouseScroll","schedule","useCapture","_onDispatch","listeners","__eventTargets","touchEvent","mouseEvent","_offDispatch","removeListener","hasListeners","fastRemove","removeAll","targetOff","has","arg5","pauseSystemEvents","recursive","resumeSystemEvents","point","listener","w","h","cameraPt","testPt","camera","findCamera","getScreenToWorldPoint","_updateWorldMatrix","invert","transformMat4","temp","_enabled","runAction","_suppressDeprecation","pauseAllActions","resumeAllActions","stopAllActions","stopAction","stopActionByTag","getNumberOfRunningActions","getPosition","toPosition","newPosOrX","oldPosition","getScale","toScale","newScaleOrX","getRotation","toRotation","getContentSize","setContentSize","locContentSize","getAnchorPoint","setAnchorPoint","locAnchorPoint","_invTransformPoint","ltrs","conjugate","inverseSafe","getWorldPosition","setWorldPosition","fromPosition","setWorldRotation","val","fromRotation","getWorldScale","setWorldScale","div","fromScale","getWorldRT","opos","orot","fromRT","lookAt","fromViewUp","flag","setWorldDirty","getLocalMatrix","getWorldMatrix","worldPoint","nodePoint","convertToNodeSpace","convertToWorldSpace","getNodeToParentTransform","contentSize","transform","fromMat4","getNodeToParentTransformAR","getNodeToWorldTransform","getNodeToWorldTransformAR","getParentToNodeTransform","getWorldToNodeTransform","convertTouchToNodeSpace","convertTouchToNodeSpaceAR","getBoundingBox","getBoundingBoxToWorld","_getBoundingBoxTo","locChildren","childRect","arrivalOrder","addChild","cleanup","_setDirtyForNode","_child","child2","count","_restoreProperties","onRestore","_p","vec3_tmp","./event/event","./platform/CCMacro","./platform/js","./renderer/render-flow","./utils/affine-transform","./utils/base-node","./utils/prefab-helper","./utils/trans-pool","./value-types","25","_createForOfIteratorHelperLoose","o","allowArrayLike","it","Symbol","_unsupportedIterableToArray","done","TypeError","minLen","_arrayLikeToArray","toString","test","arr2","HideInHierarchy","PrivateNode","_originPos","localPosition","_posDirty","override","showInEditor","editorOnly","sendEvent","_super","setParent","getParent","./CCNode","26","NIL","autoReleaseAssets","_inited","dependAssets","_active","_instantiate","activateNode","27","IdGenerater","MAX_POOL_SIZE","idGenerater","ListEntry","priority","markedForDeletion","_listEntries","put","HashUpdateEntry","_hashUpdateEntries","HashTimerEntry","timers","timerIndex","currentTimer","currentTimerSalvaged","_t","_hashTimerEntries","CallbackTimer","_lock","_runForever","_useDelay","_timesExecuted","_repeat","_interval","initWithCallback","seconds","REPEAT_FOREVER","getInterval","setInterval","interval","trigger","cancel","getCallback","unschedule","_timers","timer","_timeScale","_updatesNegList","_updates0List","_updatesPosList","_hashForUpdates","_hashForTimers","_currentTargetSalvaged","_updateHashLocked","_arrayForTimers","_removeHashElement","_removeUpdateFromHash","targetId","listEntry","_priorityIn","ppList","listElement","_appendIn","__instanceId","getNewId","setTimeScale","timeScale","getTimeScale","tmp","hashElement","li","unscheduleAllForTarget","unscheduleAllWithMinPriority","minPriority","temp_length","isScheduled","pauseAllTargets","pauseAllTargetsWithMinPriority","idsWithSelectors","locArrayForTimers","elementUpdate","isTargetPaused","PRIORITY_NON_SYSTEM","./platform/id-generater","28","preprocess","fetch","Cache","helper","releaseManager","dependUtil","load","Pipeline","Task","RequestItem","downloader","parser","packManager","Bundle","factory","parse","combine","_require2","parseParameters","asyncify","_require3","assets","files","parsed","pipeline","transformPipeline","fetchPipeline","RequestType","BuiltinBundleName","AssetManager","_preprocessPipe","_fetchPipe","_loadPipe","append","_files","_parsed","generalImportBase","generalNativeBase","cacheAsset","force","cacheManager","presets","preload","maxConcurrency","maxRequestsPerFrame","remote","maxRetryCount","script","MAIN","resources","RESOURCES","INTERNAL","options","bundleVers","server","importBase","nativeBase","getBundle","removeBundle","_destroy","remove","loadAny","requests","onComplete","_parseParameters","preset","task","input","async","preloadAny","_parseParameters2","postLoadNative","asset","_parseParameters3","_native","_nativeAsset","depend","getNativeDep","_uuid","getAssetInfo","message","stack","loadRemote","url","_parseParameters4","__isNative__","ext","path","extname","loadScript","_parseParameters5","__requestType__","URL","loadBundle","nameOrUrl","_parseParameters6","bundleName","basename","releaseAsset","tryRelease","releaseUnusedAssets","forEach","_transform","subTask","urls","item","recycle","e","output","defineProperty","./builtins","./bundle","./cache","./depend-util","./downloader","./factory","./fetch","./helper","./load","./pack-manager","./parser","./pipeline","./preprocess","./releaseManager","./request-item","./shared","./task","./urlTransformer","./utilities","29","_assets","material","effect","_loadBuiltins","dirname","builtin","loadDir","addRef","_loadBuiltinsSP","sp","MAX_MULTITEXTURE_NUM","_loadMultiEffect","multi2dSpriteEffectAsset","inited","multiBatcher","maxAtlasCount","charAtlasAutoBatchCount","EffectAsset","getBuiltin","30","Config","parseLoadResArgs","deps","base","getInfoWithPath","getDirWithPath","_parseLoadResArgs","PATH","__outputAsArray__","_parseLoadResArgs2","dir","_parseLoadResArgs3","DIR","preloadDir","_parseLoadResArgs4","sceneAsset","redirect","./config","31","_map","_count","predicate","../platform/js","32","processOptions","assetInfos","scenes","_initUuid","uuids","_initPath","_initScene","_initPackage","packs","_initVersion","versions","_initRedirect","uuidList","pathList","isSubAsset","assetInfo","_getClassById","sceneList","packageList","packUuid","pack","assetPacks","entries","ver","nativeVer","items","isChildClassOf","infos","isMatchByWord","nextAscii","charCodeAt","startsWith","endsWith","33","_deserializeCompiled","_interopRequireWildcard","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","__esModule","newObj","hasPropertyDescriptor","getOwnPropertyDescriptor","hasOwnProperty","desc","deserialize","_depends","nativeDep","getDeps","getDepsRecursively","exclude","depends","_descend","json","__type__","hasNativeDep","_parseDepsFromJson","_parseDepsFromAsset","parsedFromExistAsset","preventPreloadNativeObject","preventDeferredLoadDependents","__depends__","dep","__nativeDepend__","_nativeDep","getDependUuidList","decodeUuid","../platform/deserialize-compiled","./deserialize","34","utilities","ImageFmts","AudioFmts","GetTrue","md5Pipe","transformURL","getUuidFromURL","hashValue","hashPatchInFolder","replace","match","loader","_autoReleaseSetting","_cache","progressCallback","completeCallback","images","audios","finish","total","content","includes","res","image","audio","isCompleted","getXMLHttpRequest","XMLHttpRequest","getItem","loadRes","_this$_parseLoadResAr","loadResArray","_this$_parseLoadResAr2","loadResDir","_this$_parseLoadResAr3","getRes","getResCount","getDependsRecursively","assetLoader","addDownloadHandlers","extMap","handler","register","addLoadHandlers","file","flowInDeps","isBuiltin","builtinAsset","_isBuiltin","releaseRes","releaseResDir","removeItem","setAutoRelease","autoRelease","setAutoReleaseRecursively","isAutoRelease","loadSubpackage","AssetLibrary","libraryPath","rawAssetsBase","rawAssets","loadAsset","getLibUrlNoExt","queryAssetInfo","raw","changeExtname","substr","onceWarns","assetLibrary","defineProperties","LoadingItems","DOWNLOAD_MAX_CONCURRENT","_getSceneUuid","_sceneInfos","releaseSettings","../CCDirector","35","MissingClass","classFinder","missingClass","_MissingScript","safeFindClass","pool","deserializeForCompiled","deserializeForEditor","Details","tdInfo","customEnv","objList","uuidObjList","propList","uuidPropList","dependUuid","../platform/deserialize","../platform/deserialize-editor","36","__audioSupport","downloadDomAudio","dom","src","clearEvent","removeEventListener","success","failure","USE_LOADER_EVENT","readyState","37","downloadDomImage","img","Image","location","protocol","crossOrigin","loadCallback","errorCallback","38","downloadFile","xhr","errInfo","open","responseType","withCredentials","mimeType","overrideMimeType","timeout","header","setRequestHeader","onload","status","response","onprogress","lengthComputable","loaded","onerror","ontimeout","onabort","send","39","downloaded","downloadScript","loadHandler","removeChild","errorHandler","40","loadFont","_require4","urlAppendTimestamp","retry","REGEX","formatSupport","format","unsupported","downloadAudio","audioLoadMode","AudioClip","LoadMode","DOM_AUDIO","downloadArrayBuffer","WEB_AUDIO","downloadImage","imageBitmap","ALLOW_IMAGE_BITMAP","downloadBlob","onFileProgress","downloadJson","JSON","downloadText","downloadVideo","downloadBundle","version","_downloading","_queue","_queueDirty","_totalNum","_totalNumThisPeriod","_lastDate","_checkNextPeriod","updateTime","Date","_maxInterval","handleQueue","sort","nextOne","invoke","_remoteServerAddress","remoteServerAddress","appendTimeStamp","limited","retryInterval","mixin","downloaders","download","downloadCallbacks","finale","callbacks",".png",".jpg",".bmp",".jpeg",".gif",".ico",".tiff",".webp",".image",".pvr",".pkm",".mp3",".ogg",".wav",".m4a",".txt",".xml",".vsh",".fsh",".atlas",".tmx",".tsx",".json",".ExportJson",".plist",".fnt",".font",".eot",".ttf",".woff",".svg",".ttc",".mp4",".avi",".mov",".mpg",".mpeg",".rm",".rmvb",".binary",".bin",".dbbin",".skel",".js","_downloaders","../CCDebug","../platform/CCSys","../platform/utils","./download-dom-audio","./download-dom-image","./download-file","./download-script.js","./font-loader","41","_creating","createTexture","Texture2D","_nativeUrl","createAudioClip","createJsonAsset","JsonAsset","createTextAsset","TextAsset","text","createFont","TTFFont","createBufferAsset","BufferAsset","createAsset","createBundle","producers","creating","42","getDepends","firstTask","canInvoke","__exclude__","isNative","handle","__asyncLoadAssets__","isFinish","dispatch","decreaseRef","decRef","loadDepends","43","textUtils","_canvasContext","_testString","_fontFaces","_loadingFonts","_timeout","useNativeCheck","nativeCheck","FontFace","exec","safari10Match","vendor","_checkFontLoaded","allFontsLoaded","fontLoadHandle","fontFamily","fontFamilyName","oldWidth","refWidth","fontDesc","font","newWidth","safeMeasureText","clearInterval","nativeCheckFontLoaded","Promise","resolve","reject","check","fonts","timeoutId","race","fontLoader","_getFontFamily","labelCanvas","getContext","fontStyle","fontStr","textContent","preloadDiv","divStyle","innerHTML","fontHandle","ttfIndex","lastIndexOf","slashPos","substring","../utils/text-utils","44","_uuidRegex","matches","getUrlWithUuid","nativeExt","isScene","../utils/decode-uuid","45","./CCAssetManager","./deprecated","46","gatherAsset","setProperties","checkCircleReference","loadOneAssetPipeline","reload","_exclude$uuid","repeatItem","dependAsset","missingAsset","__onLoadInvoked__","47","_loading","isLoading","unpackJson","unpackJSONs","textureType","_getClassId","datas","split","packCustomObjData","unpackers","unpack","unpacker","48","plistParser","_parsing","parseImage","Blob","imageOptions","imageOrientation","__flipY__","premultiplyAlpha","__premultiplyAlpha__","createImageBitmap","parseAudio","ArrayBuffer","context","decodeAudioData","buffer","parsePVRTex","PVR_HEADER_LENGTH","PVR_MAGIC","PVR_HEADER_MAGIC","PVR_HEADER_FORMAT","PVR_HEADER_HEIGHT","PVR_HEADER_WIDTH","PVR_HEADER_MIPMAPCOUNT","PVR_HEADER_METADATA","Int32Array","dataOffset","pvrtcData","Uint8Array","_compressed","parsePKMTex","ETC_PKM_HEADER_SIZE","ETC_PKM_FORMAT_OFFSET","ETC_PKM_ENCODED_WIDTH_OFFSET","ETC_PKM_ENCODED_HEIGHT_OFFSET","ETC_PKM_WIDTH_OFFSET","ETC_PKM_HEIGHT_OFFSET","ETC1_RGB_NO_MIPMAPS","ETC2_RGB_NO_MIPMAPS","ETC2_RGBA_NO_MIPMAPS","readBEUint16","offset","encodedWidth","encodedHeight","etcData","parsePlist","parseImport","parsers","parsedAsset","parsing","parseHandler","import","../platform/CCSAXParser","49","_pipelineId","funcs","pipes","insert","_isFinish","pipe","_flow","50","subOptions","leftOptions","op","UUID","SCENE","source","51","visitAsset","visitComponent","getOwnPropertyNames","propName","_j","_val","_temp","visitNode","descendOpRef","refs","refCount","checkCircularReference","_persistNodeDeps","_toDelete","eventListener","freeAssets","_free","newScene","persistNodes","childs","dependencies","persistDeps","_asset","sceneDeps","_i3","_l2","../assets/CCAsset","52","MAX_DEAD_NUM","_deadPool","53","START_SCENE","54","_taskId","param1","param2","param3","param4","str","toUpperCase","55","stringify","__nativeName__","56","MissingObjectReporter","realEntries","_entry","packId","packedIds","folder","_uuid2","clearRef","wait","asyncLoadAssets","includeNative","_i4","_dep","_isScene","assetsMap","missingAssetReporter","reportByOwner","errs","isCallback","isValidType","checked","57","CCObject","writable","_ref","nativeUrl","_$nativeAsset","serialize","createNode","_setRawAsset","filename","inLibrary","../platform/CCObject","58","mixins","_audio","loadMode","_loadByUrl","audioClip","_ensureLoaded","uncache","../event/event-target","./CCAsset","59","FontLetterDefinition","offsetX","offsetY","textureID","valid","xAdvance","FontAtlas","texture","_letterDefinitions","_texture","addLetterDefinitions","letter","letterDefinition","cloneLetterDefinition","copyLetterDefinitions","getTexture","getLetter","getLetterDefinitionForChar","_char","hasKey","BitmapFont","Font","fntDataStr","SpriteFrame","fontSize","_fntConfig","_fontDefDictionary","fntConfig","fontDict","fontDefDictionary","fontDef","xOffset","yOffset","60","_buffer","bin","61","62","63","LabelAtlas","64","OptimizationPolicy","AUTO","SINGLE_INSTANCE","MULTI_INSTANCE","Prefab","_createFunction","_instantiatedTimes","optimizationPolicy","readonly","OptimizationPolicyThreshold","compileCreateFunction","jit","compile","_doInstantiate","rootToRedirect","useJit","CC_SUPPORT_JIT","PrefabUtils","../platform/instantiate-jit","65","_gfx","_interopRequireDefault","DepthStencilFormat","RB_FMT_D24S8","RB_FMT_S8","RB_FMT_D16","RenderTexture","_framebuffer","initWithSize","depthStencilFormat","visibleRect","_resetUnderlyingMipmaps","colors","_depthStencilBuffer","depthStencilBuffer","RenderBuffer","depthStencil","FrameBuffer","_packable","updateSize","rbo","_width","drawTextureAt","_image","updateSubImage","level","_premultiplyAlpha","readPixels","gl","oldFBO","getParameter","FRAMEBUFFER_BINDING","bindFramebuffer","FRAMEBUFFER","getHandle","RGBA","UNSIGNED_BYTE","../../renderer/gfx","../renderer","./CCTexture2D","66","67","Script","_Script","JavaScript","_JavaScript","TypeScript","_TypeScript","68","SpriteAtlas","_spriteFrames","getSpriteFrame","sf","getSpriteFrames","69","INSET_LEFT","INSET_TOP","INSET_RIGHT","INSET_BOTTOM","temp_uvs","_textureSetter","_refreshTexture","insetTop","_capInsets","_calculateSlicedUV","insetBottom","insetLeft","insetRight","rotated","originalSize","_rect","uv","_original","_offset","_originalSize","_rotated","_flipX","_flipY","vertices","uvSliced","setTexture","textureLoaded","onTextureLoaded","ensureLoadTexture","isRotated","setRotated","bRotated","_calculateUV","isFlipX","isFlipY","setFlipX","setFlipY","getRect","setRect","getOriginalSize","setOriginalSize","_textureLoadedCallback","_checkRect","setOffset","getOffset","offsets","maxX","maxY","_flipXY","uvs","tempVal","_tempVal","atlasWidth","atlasHeight","leftWidth","rightWidth","centerWidth","topHeight","bottomHeight","centerHeight","row","rowD","col","colD","_row","_rowD","_col","_colD","_setDynamicAtlasFrame","_resetDynamicAtlasFrame","texw","texh","_r","_tempVal2","nu","nv","_serialize","exporting","ctx","_textureFilename","Editor","Utils","UuidCache","urlToUuid","UuidUtils","compressUuid","dependsOn","triangles","atlas","_atlasUuid","capInsets","_deserialize","textureUuid","deleteSpriteFrame","copyWithZone","initWithTexture","70","_fontFamily","String","./CCFont","71","72","GL_NEAREST","GL_LINEAR","GL_REPEAT","GL_CLAMP_TO_EDGE","GL_MIRRORED_REPEAT","GL_RGBA","CHAR_CODE_0","CHAR_CODE_1","CUSTOM_PIXEL_FORMAT","PixelFormat","RGB565","TEXTURE_FMT_R5_G6_B5","RGB5A1","TEXTURE_FMT_R5_G5_B5_A1","RGBA4444","TEXTURE_FMT_R4_G4_B4_A4","RGB888","TEXTURE_FMT_RGB8","RGBA8888","TEXTURE_FMT_RGBA8","RGBA32F","TEXTURE_FMT_RGBA32F","A8","TEXTURE_FMT_A8","I8","TEXTURE_FMT_L8","AI8","TEXTURE_FMT_L8_A8","RGB_PVRTC_2BPPV1","TEXTURE_FMT_RGB_PVRTC_2BPPV1","RGBA_PVRTC_2BPPV1","TEXTURE_FMT_RGBA_PVRTC_2BPPV1","RGB_A_PVRTC_2BPPV1","RGB_PVRTC_4BPPV1","TEXTURE_FMT_RGB_PVRTC_4BPPV1","RGBA_PVRTC_4BPPV1","TEXTURE_FMT_RGBA_PVRTC_4BPPV1","RGB_A_PVRTC_4BPPV1","RGB_ETC1","TEXTURE_FMT_RGB_ETC1","RGBA_ETC1","RGB_ETC2","TEXTURE_FMT_RGB_ETC2","RGBA_ETC2","TEXTURE_FMT_RGBA_ETC2","REPEAT","CLAMP_TO_EDGE","MIRRORED_REPEAT","Filter","LINEAR","NEAREST","FilterIndex","9728","9729","_images","_sharedOpts","minFilter","magFilter","wrapS","wrapT","genMipmaps","_getSharedOptions","initWithData","_format","initWithElement","_minFilter","_magFilter","_mipFilter","_wrapS","_wrapT","_isAlphaAtlas","_genMipmaps","packable","_FilterIndex","extnames","_parseExt","extIdStr","defaultFormat","extIds","defaultExt","bestExt","bestIndex","bestFormat","SupportTextureFormats","SUPPORT_TEXTURE_FORMATS","extFormat","tmpExt","tmpFormat","webp","_hashDirty","_hash","_multiMaterial","getImpl","getId","updateImg","mipFilter","ImageBitmap","_checkImageBitmap","_upload","complete","HTMLCanvasElement","handleLoadedTexture","pixelFormat","pixelsWidth","pixelsHeight","_getGFXPixelFormat","_updateFormat","_checkPackable","getHtmlElementObj","deleteAtlasTexture","unlinkMaterial","getPixelFormat","hasPremultipliedAlpha","isAlphaAtlas","HTMLImageElement","_clearImage","description","releaseTexture","setWrapMode","setFilters","setPremultiplyAlpha","premultiply","dynamicAtlas","_isCompressed","maxFrameSize","_getHash","Atlas","DEFAULT_HASH","_getOpts","anisotropy","_anisotropy","mipmapSources","extId","exportedExts","_exportedExts","exts","_extId","join","fields","linkMaterial","getMultiHandler","autoSetTexture","removeTexture","getLinkedMaterial","hasLinkedMaterial","../platform/CCClass","../platform/id-generater","73","./CCAudioClip","./CCBitmapFont","./CCBufferAsset","./CCJsonAsset","./CCLabelAtlas","./CCPrefab","./CCRenderTexture","./CCSceneAsset","./CCScripts","./CCSpriteAtlas","./CCSpriteFrame","./CCTTFFont","./CCTextAsset","./material","74","_CCAsset","_effectParser","_effect","techniques","shaders","lib","_programLib","define","_initEffect","parseEffect","freeze","getInstantiatedEffect","getEffect","../CCAsset","./effect-parser","75","Texture","textureUtil","gfx","BUILTIN_NAME","SPRITE","GRAY_SPRITE","UNLIT","Material","_manualHash","_dirty","_multiHandler","_defines","_effectAsset","_techniqueIndex","_techniqueData","effectName","effectAsset","updateMultiSupport","techniqueIndex","switchTechnique","getBuiltinMaterial","createWithBuiltin","setProperty","passIdx","directly","def","getDefine","getProperty","setCullMode","cullMode","CULL_BACK","setDepth","depthTest","depthWrite","depthFunc","DS_FUNC_LESS","setBlend","blendEq","blendSrc","blendDst","blendAlphaEq","blendSrcAlpha","blendDstAlpha","blendColor","BLEND_FUNC_ADD","BLEND_SRC_ALPHA","BLEND_ONE_MINUS_SRC_ALPHA","setStencilEnabled","stencilTest","STENCIL_INHERIT","setStencil","stencilFunc","stencilRef","stencilMask","stencilFailOp","stencilZFailOp","stencilZPassOp","stencilWriteMask","DS_FUNC_ALWAYS","STENCIL_OP_KEEP","updateHash","hash","getHash","passDatas","passData","defines","syncTextures","passes","technique","setMultiSupport","isMultiSupport","bool","MultiHandler","../../utils/texture-util","../CCTexture2D","./CCEffectAsset","76","_pass","_defineProperties","descriptor","enumerable","configurable","_createClass","Constructor","protoProps","staticProps","EffectBase","_dirtyCode","_technique","_proto","_createPassProp","pass","_properties","uniform","Float32Array","Float64Array","_setPassProperty","setStencilFront","setStencilBack","../../../renderer/core/pass","77","_types","_enums","getInvolvedProgram","programName","getTemplate","parseProperties","passJson","propertiesJson","program","uniformInfo","uniforms","_ret","propInfo","PARAM_TEXTURE_2D","PARAM_INT","PARAM_FLOAT","enums2default","passDefines","parseTechniques","techNum","tech","techName","passNum","passName","detailName","stage","newPass","rasterizerState","blendState","blend","depthStencilState","stencilFuncFront","stencilRefFront","stencilMaskFront","stencilFailOpFront","stencilZFailOpFront","stencilZPassOpFront","stencilWriteMaskFront","stencilFuncBack","stencilRefBack","stencilMaskBack","stencilFailOpBack","stencilZFailOpBack","stencilZPassOpBack","stencilWriteMaskBack","../../../renderer/core/technique","../../../renderer/enums","../../../renderer/types","./effect","78","_murmurhash2_gc","_utils","_effectBase","_inheritsLoose","subClass","superClass","_setPrototypeOf","setPrototypeOf","__proto__","EffectVariant","_EffectBase","_passes","_stagePasses","_effectDirtyCode","_onEffectChanged","variantPasses","stagePasses","variant","_stage","serializePasses","../../../renderer/murmurhash2_gc","./effect-base","./utils","79","Effect","_techniques","createNative","80","./CCMaterial","./material-variant","81","_pool","MaterialPool","_Pool","_len","_key","exampleMat","renderComponent","MaterialVariant","_owner","instance","serializeDefines","serializeTechniques","mat","maxSize","_clean","materialPool","../../utils/pool","82","_CCMaterial","_effectVariant","_materialPool","_dec","_class","ccclass","_decorator","_Material","materialName","_material","./effect-variant","./material-pool","83","serializePass","excludeProperties","_programName","_cullMode","_blend","_blendEq","_blendAlphaEq","_blendSrc","_blendDst","_blendSrcAlpha","_blendDstAlpha","_blendColor","_depthTest","_depthWrite","_depthFunc","_stencilTest","_stencilFuncFront","_stencilRefFront","_stencilMaskFront","_stencilFailOpFront","_stencilZFailOpFront","_stencilZPassOpFront","_stencilWriteMaskFront","_stencilFuncBack","_stencilRefBack","_stencilMaskBack","_stencilFailOpBack","_stencilZFailOpBack","_stencilZPassOpBack","_stencilWriteMaskBack","serializeUniforms","hashData","param","PARAM_TEXTURE_CUBE","84","TOP","MID","BOT","LEFT","CENTER","HORIZONTAL","VERTICAL","AlignMode","ONCE","ON_WINDOW_RESIZE","ALWAYS","getReadonlyNodeSize","computeInverseTransForTarget","widgetNode","out_inverseTranslate","out_inverseScale","translateX","translateY","tInverseTranslate","tInverseScale","ONE","align","widget","hasTarget","inverseTranslate","inverseScale","targetSize","targetAnchor","isRoot","anchor","_alignFlags","localLeft","localRight","targetWidth","_isAbsLeft","_left","_isAbsRight","isStretchWidth","isAlignHorizontalCenter","localHorizontalCenter","_isAbsHorizontalCenter","_horizontalCenter","targetCenter","isAlignLeft","localTop","localBottom","targetHeight","bottom","_isAbsBottom","_bottom","_isAbsTop","_top","isStretchHeight","isAlignVerticalCenter","localVerticalCenter","_isAbsVerticalCenter","_verticalCenter","targetMiddle","isAlignBottom","alignMode","widgetManager","activeWidgets","animationState","refreshScene","AnimUtils","EditMode","nowPreviewing","_component","_animation","isAligning","_activeWidgetsIterator","editingNode","adjustWidgetToAllowMovingInEditor","adjustWidgetToAllowResizingInEditor","updateAlignment","Widget","_AlignFlags","thisOnResized","onResized","refreshWidgetOnResized","../CCNode","85","_geomUtils","RendererCamera","_mat4_temp_1","_mat4_temp_2","_v3_temp_1","_v3_temp_2","_v3_temp_3","_cameras","updateMainCamera","minDepth","_depth","_debugCamera","repositionDebugCamera","getNode","ClearFlags","COLOR","DEPTH","STENCIL","StageFlags","OPAQUE","TRANSPARENT","Component","setStages","dirty","_camera","editor","_clearFlags","_backgroundColor","_zoomRatio","_targetTexture","_fov","_orthoSize","_nearClip","_farClip","_ortho","_renderStages","_alignWithScreen","zoomRatio","tooltip","fov","orthoSize","nearClip","_updateClippingpPlanes","farClip","ortho","_updateProjection","_updateRect","cullingMask","_updateCameraMask","clearFlags","setClearFlags","_updateBackgroundColor","setPriority","targetTexture","_updateTargetTexture","renderStages","_updateStages","alignWithScreen","_is3D","cameras","containsNode","_findRendererCamera","_setupDebugCamera","setFov","setNear","setFar","setColor","setNode","addCamera","setFrameBuffer","setType","flags","stages","_init","beforeDraw","__preload","onEnable","onDisable","removeCamera","getScreenToWorldMatrix2D","getWorldToScreenMatrix2D","_mat4_temp_1m","m12","m13","center","screenPosition","screenToWorld","getWorldToScreenPoint","worldPosition","worldToScreen","getRay","screenPos","geomUtils","Ray","fromPoints","rootNode","renderCamera","_onAlignWithScreen","RAD","atan","setOrthoHeight","getNodeToCameraTransform","getWorldToCameraMatrix","getCameraToWorldPoint","getWorldToCameraPoint","getCameraToWorldMatrix","../../renderer/scene/camera","../CCGame","../geom-utils","../renderer/index","../renderer/render-flow","../utils/affine-transform","../value-types","86","jsArray","IsStartCalled","IsOnEnableCalled","IsEditorOnEnableCalled","callerFunctor","callOnEnableInTryCatch","callOnDisableInTryCatch","sortedIndex","order","_executionOrder","testOrder","testId","stableRemoveInactive","flagToClear","removeAt","LifeCycleInvoker","__ctor__","invokeFunc","Iterator","_zero","_neg","_pos","_invoke","compareOrder","OneOffInvoker","cancelInactive","compsNeg","compsPos","ReusableInvoker","enableInEditor","engine","createInvokeImpl","indiePath","useDt","ensureFlag","fastPath","Function","invokeStart","invokeUpdate","invokeLateUpdate","startInvoker","updateInvoker","lateUpdateInvoker","_deferredComps","_updating","invokeOnEnable","compScheduler","deactivatedDuringOnEnable","_onEnabled","_scheduleImmediate","_onDisabled","lateUpdate","enableComp","invoker","disableComp","_deferredSchedule","_startForNewComps","./platform/CCClass","./utils/misc","87","equalClips","clip1","clip2","PLAY","STOP","PAUSE","RESUME","LASTFRAME","FINISHED","Animation","_animator","_nameToState","_didInit","_currentClip","_defaultClip","defaultClip","contain","currentClip","_writableClips","_clips","playOnLoad","isPlaying","getAnimationState","onDestroy","getClips","playAdditive","enabledInHierarchy","setCurrentTime","addClip","newName","contains","oldState","newState","removeClip","filter","_EventTargetOn","states","_EventTargetOff","_createStates","defaultClipState","../../animation/animation-animator","../../animation/animation-clip","./CCComponent","88","BlockEvents","BlockInputEvents","menu","inspector","help","89","GraySpriteState","Transition","State","NORMAL","HOVER","PRESSED","DISABLED","Button","_pressed","_hovered","_fromColor","_toColor","_time","_transitionFinished","_fromScale","_toScale","_originalScale","_graySpriteMaterial","_spriteMaterial","_sprite","interactable","notify","_updateState","_resetState","animatable","_resizeToTarget","_resizeNodeToTargetNode","enableAutoGrayEffect","_updateDisabledState","transition","_updateTransition","normalColor","displayName","_getButtonState","_getTarget","pressedColor","hoverColor","disabledColor","zoomScale","normalSprite","pressedSprite","hoverSprite","disabledSprite","_applyTarget","_unregisterTargetEvent","clickEvents","EventHandler","originalScale","_setTargetColor","_registerNodeEvent","_unregisterNodeEvent","_onTargetSpriteFrameChanged","_setCurrentStateSprite","_onTargetColorChanged","_setCurrentStateColor","_onTargetScaleChanged","cloneColor","_getStateColor","_getStateSprite","_onTouchBegan","_onTouchMove","_onTouchEnded","_onTouchCancel","_onMouseMoveIn","_onMouseMoveOut","_registerTargetEvent","_getTargetSprite","sprite","Sprite","_applyTransition","emitEvents","_updateColorTransitionImmediately","_updateColorTransition","_updateSpriteTransition","_updateScaleTransition","_zoomUp","_zoomBack","oldTransition","useGrayMaterial","_switchGrayMaterial","../utils/gray-sprite-state","90","resetWidgetComponent","addComponent","isAlignTop","isAlignRight","Canvas","resetInEditor","_designResolution","designResolution","applySettings","_fitWidth","_fitHeight","fitHeight","fitWidth","_fitDesignResolution","cameraNode","setSiblingIndex","ResolutionPolicy","policy","SHOW_ALL","FIXED_WIDTH","FIXED_HEIGHT","NO_BORDER","designRes","setDesignResolutionSize","../camera/CCCamera","91","IsOnLoadCalled","getClassName","trimLeft","__scriptAsset","_isOnLoadCalled","onFocusInEditor","onLostFocusInEditor","typeOrClassName","getComponents","getComponentInChildren","_getLocalBounds","unscheduleAllCallbacks","eventTargets","destroyComp","_removeComponent","cloned","instantiate","_clone","scheduleOnce","callback_fn","_requireComponent","cls","reqComp","requireComponent","executionOrder","_disallowMultiple","willExecuteInEditMode","__scriptUuid","92","_componentId","_componentName","_genCompIdIfNeeded","_compId2Name","_compName2Id","customEventData","compType","getClassByName","compId","93","LabelFrame","BlendFunc","deleteFromDynamicAtlas","HorizontalAlign","TextAlignment","VerticalAlign","VerticalTextAlignment","Overflow","CLAMP","SHRINK","RESIZE_HEIGHT","CacheMode","BITMAP","CHAR","BOLD_FLAG","ITALIC_FLAG","UNDERLINE_FLAG","Label","_actualFontSize","_assemblerData","_frame","_ttfTexture","_letterTexture","_updateMaterial","_updateMaterialCanvas","_updateMaterialWebgl","_string","string","setVertsDirty","_checkStringEmpty","multiline","horizontalAlign","verticalAlign","actualFontSize","_fontSize","_lineHeight","lineHeight","overflow","_enableWrapText","enableWrapText","_N$file","_isSystemFontUsed","_forceUpdateRenderData","useSystemFont","markForValidate","_bmFontOriginalSize","_spacingX","spacingX","_batchAsBitmap","cacheMode","_materials","_shareAtlas","setMaterial","_getDefaultMaterial","_styleFlags","enableBold","enableItalic","enableUnderline","_underlineHeight","underlineHeight","autoSwitchMaterial","EnableType","GLOBAL","allowDynamicAtlas","enableRetina","clearCharCache","clearAllCache","_nodeSizeChanged","_nodeColorChanged","_assembler","_resetAssemblerData","_updateColor","_srcBlendFactor","BlendFactor","SRC_ALPHA","FLAG_OPACITY","_validateRender","disableRender","_resetAssembler","_resetFrame","markForRender","_applyFontTexture","_onBMFontTextureLoaded","updateRenderData","_onBlendChanged","_nativeTTF","_getAssemblerData","getMaterial","_updateTTFMaterial","isMultiMaterial","_texIdDirty","isMulti","_forceUseCanvas","_useNativeTTF","ENABLE_NATIVE_TTF_RENDERER","_enableBold","_enableItalics","_enableUnderline","../assets/material/CCMaterial","../platform/CCMacro","../renderer/utils/label/label-frame","../renderer/utils/utils","../utils/blend-func","./CCRenderComponent","94","LabelOutline","_updateRenderData","label","95","LabelShadow","_blur","blur","96","NodeEvent","Type","GRID","ResizeMode","CONTAINER","CHILDREN","AxisDirection","VerticalDirection","BOTTOM_TO_TOP","TOP_TO_BOTTOM","HorizontalDirection","LEFT_TO_RIGHT","RIGHT_TO_LEFT","Layout","_layoutSize","_layoutDirty","_resize","_N$layoutType","reLayouted","_doLayoutDirty","resizeMode","cellSize","startAxis","paddingLeft","paddingRight","paddingTop","paddingBottom","spacingY","verticalDirection","horizontalDirection","affectedByScale","_addEventListeners","_removeEventListeners","_doScaleDirty","updateLayout","_resized","_childAdded","_childRemoved","_addChildrenEventListeners","_removeChildrenEventListeners","_doLayoutHorizontally","baseWidth","rowBreak","fnPositionY","applyChildren","layoutAnchor","sign","paddingX","leftBoundaryOfLayout","nextX","rowMaxHeight","tempMaxHeight","secondMaxHeight","containerResizeBoundary","maxHeightChildAnchorY","activeChildCount","newChildWidth","childScaleX","_getUsedScaleValue","childScaleY","childBoundingBoxWidth","childBoundingBoxHeight","rightBoundaryOfChild","rowBreakBoundary","leftToRightRowBreak","rightToLeftRowBreak","finalPositionY","signX","tempFinalPositionY","topMarign","_getVerticalBaseHeight","newHeight","_doLayoutVertically","baseHeight","columnBreak","fnPositionX","paddingY","bottomBoundaryOfLayout","nextY","columnMaxWidth","tempMaxWidth","secondMaxWidth","column","maxWidthChildAnchorX","newChildHeight","topBoundaryOfChild","columnBreakBoundary","bottomToTopColumnBreak","topToBottomColumnBreak","finalPositionX","tempFinalPositionX","rightMarign","_doLayoutBasic","allChildrenBoundingBox","leftBottomSpace","rightTopSpace","xMax","yMax","newSize","toFixed","newAnchorX","newAnchorY","_doLayoutGridAxisHorizontal","layoutSize","topOffset","boundary","_doLayoutGridAxisVertical","leftOffset","_doLayoutGrid","_getHorizontalBaseWidth","_doLayout","97","MotionStreak","preview","_fadeTime","fadeTime","_minSeg","minSeg","_stroke","stroke","_checkSwitchMaterial","_fastMode","fastMode","checkAndSwitchMaterial","_updateMultiTexId","updateTexId","_renderData","../../core/utils/blend-func","../components/CCRenderComponent","98","_materialVariant","_temp_color","ENABLE","DISABLE","materials","_activateMaterial","_vertsDirty","_texId","assembler","registerValidate","enable","FLAG_RENDER","FLAG_UPDATE_RENDER_DATA","instantiated","getMaterials","updateColor","srcBlendFactor","_checkBacth","_flush","_dummyNode","multi","spTexture","nSpTexture","same","isChanged","texId","getIndex","../assets/material/material-variant","../renderer/assembler","99","HtmlTextParser","_htmlTextParser","RichTextChildName","RichTextChildImageName","debounce","immediate","later","callNow","Pool","outline","richtext","labelNode","_get","labelComponent","RichText","_textArray","_labelSegments","_labelSegmentsCache","_linesWidth","_updateRichTextStatus","_updateRichText","_onTTFLoaded","maxWidth","imageAtlas","handleTouchEvent","customMaterial","spriteComponent","_labelComponent","_labelComponent2","_labelComponent3","_labelComponent4","_activateChildren","_onColorChanged","parentColor","childNode","_updateLabelSegmentTextAttributes","_applyTextAttribute","_createFontLabel","_measureText","styleIndex","_styleIndex","labelSize","labelSegment","clickHandler","_clickHandler","clickParam","_clickParam","_containsTouchLocation","myRect","_lineOffsetX","_lineCount","_labelWidth","_labelHeight","_addLabelSegment","stringToken","_updateRichTextWithMaxWidth","labelString","labelWidth","fragmentWidth","checkStartIndex","checkEndIndex","_getFirstWordLen","checkString","checkStringWidth","remainingString","_updateLineInfo","fragments","fragmentText","splitString","_isLastComponentCR","_needsUpdateTextLayout","newTextArray","oldItem","newItem","oldStyle","newStyle","italic","isImage","imageAlign","imageHeight","imageWidth","imageOffset","_addRichTextImageElement","richTextElement","spriteFrameName","spriteNode","_imageOffset","SLICED","sizeMode","SizeMode","CUSTOM","spriteRect","scaleFactor","spriteWidth","spriteHeight","expectWidth","expectHeight","click","lastEmptyLine","newline","multilineTexts","BASELINE_RATIO","_updateRichTextPosition","startIndex","textLen","character","charAt","isUnicodeCJK","isUnicodeSpace","nextTokenX","nextLineIndex","totalLineCount","lineCount","lineOffsetX","lineHeightSet","lineHeightReal","isInteger","_offsetY","_convertLiteralColorValue","colorValue","fromHEX","textStyle","isAsset","bold","enableItalics","underline","labelOutlineComponent","../utils/html-text-parser","100","GETTINGSHORTERFACTOR","Direction","Scrollbar","_scrollView","_touching","_autoHideRemainingTime","_onScroll","enableAutoHide","autoHideTime","setTargetScrollView","scrollView","_convertToScrollViewSpace","scrollViewNode","worldSpacePos","scrollViewSpacePos","_setOpacity","outOfBoundary","scrollViewSize","handleNodeSize","_conditionalDisableScrollBar","contentMeasure","scrollViewMeasure","outOfBoundaryValue","contentPosition","handleNodeMeasure","_calculateLength","_calculatePosition","_updateLength","_updateHanlderPosition","_fixupHandlerPosition","barSize","barAnchor","handleSize","handleParent","leftBottomWorldPosition","fixupPosition","denominatorValue","lengthRation","actualLenth","positionRatio","clamp01","handleNode","_processAutoHide","deltaTime","../utils/misc","101","SpriteType","SIMPLE","TILED","FILLED","MESH","FillType","RADIAL","TRIMMED","RAW","GRAY","_spriteFrame","_type","_sizeMode","_fillType","_fillCenter","_fillStart","_fillRange","_isTrimmedMode","_atlas","lastSprite","_applySpriteFrame","fillType","fillCenter","fillStart","fillRange","trim","_applySpriteSize","setVisible","setState","getState","_applyAtlas","oldFrame","oldTexture","newTexture","102","Toggle","_N$isChecked","isChecked","toggleGroup","_toggleContainer","allowSwitchOff","_updateCheckMark","updateToggles","_triggerEventInScript_isChecked","_emitToggleEvents","checkMark","checkEvents","_triggerEventInScript_check","_registerToggleEvent","addToggle","_unregisterToggleEvent","removeToggle","_hideCheckMark","toggle","uncheck","ToggleContainer","./CCButton","./CCToggleGroup","103","toggleItems","_allowOnlyOneToggleChecked","_makeAtLeastOneToggleChecked","Boolean","104","ToggleGroup","_toggleItems","showed","105","WidgetManager","AlignFlags","TOP_BOT","LEFT_RIGHT","_setAlign","horizontalCenter","verticalCenter","isAbsoluteHorizontalCenter","isAbsoluteVerticalCenter","isAbsoluteTop","isAbsoluteBottom","isAbsoluteLeft","isAbsoluteRight","_wasAlignOnce","_originalWidth","_originalHeight","_validateTargetInDEV","isAlign","isHorizontal","../base-ui/CCWidgetManager","106","SubContextView","WXSubContextView","SwanSubContextView","./CCAnimation","./CCAudioSource","./CCBlockInputEvents","./CCCanvas","./CCComponentEventHandler","./CCLabel","./CCLabelOutline","./CCLabelShadow","./CCLayout","./CCMask","./CCMotionStreak","./CCPageView","./CCPageViewIndicator","./CCProgressBar","./CCRichText","./CCSafeArea","./CCScrollBar","./CCScrollView","./CCSlider","./CCSprite","./CCToggle","./CCToggleContainer","./CCWidget","./SubContextView","./editbox/CCEditBox","./missing-script","107","MissingScript","compiled","_$erialized","reportMissingClass","108","EventMouse","eventType","_eventType","_button","_prevX","_prevY","_scrollX","_scrollY","setScrollData","scrollX","scrollY","getScrollX","getScrollY","setLocation","getLocationInView","_designResolutionSize","_setPrevCursor","getPreviousLocation","getDelta","getDeltaX","getDeltaY","setButton","button","getButton","getLocationX","getLocationY","DOWN","MOVE","SCROLL","BUTTON_LEFT","BUTTON_RIGHT","BUTTON_MIDDLE","BUTTON_4","BUTTON_5","BUTTON_6","BUTTON_7","BUTTON_8","EventTouch","touchArr","TOUCH","_eventCode","_touches","currentTouch","getEventCode","getTouches","_setEventCode","eventCode","_setTouches","touches","setTouchInfo","getID","getStartLocation","MAX_TOUCHES","BEGAN","MOVED","ENDED","CANCELED","EventAcceleration","acc","ACCELERATION","EventKeyboard","keyCode","isPressed","KEYBOARD","../event/event","109","listenerID","_onEvent","_listenerID","_registered","_fixedPriority","_node","_isEnabled","_setPaused","_setRegistered","registered","_isRegistered","_getType","_getListenerID","_setFixedPriority","fixedPriority","_getFixedPriority","_setSceneGraphPriority","_getSceneGraphPriority","checkAvailable","isEnabled","UNKNOWN","TOUCH_ALL_AT_ONCE","ListenerID","Custom","listenerId","_onCustomEvent","Mouse","TouchOneByOne","_claimedTouches","setSwallowTouches","needSwallow","isSwallowTouches","TouchAllAtOnce","onTouchesBegan","onTouchesMoved","onTouchesEnded","onTouchesCancelled","Acceleration","_onAccelerationEvent","Keyboard","onKeyPressed","onKeyReleased","argObj","listenerType","eventName","110","_EventListenerVector","_fixedListeners","_sceneGraphListeners","gt0Index","empty","clearSceneGraphListeners","clearFixedListeners","getFixedPriorityListeners","getSceneGraphPriorityListeners","__getListenerID","DIRTY_NONE","DIRTY_FIXED_PRIORITY","DIRTY_SCENE_GRAPH_PRIORITY","DIRTY_ALL","_listenersMap","_priorityDirtyFlagMap","_nodeListenersMap","_toAddedListeners","_toRemovedListeners","_dirtyListeners","_inDispatch","_currentTouch","_currentTouchListener","_internalCustomListenerIDs","selListeners","selListener","childrenCount","_BaseNode","_addListener","_forceAddEventListener","_setDirty","_associateNodeAndEventListener","_getListeners","_updateDirtyFlagForSceneGraph","locDirtyListeners","selKey","_removeAllListenersInVector","listenerVector","_dissociateNodeAndEventListener","_removeListenersForListenerID","fixedPriorityListeners","sceneGraphPriorityListeners","locToAddedListeners","_sortEventListeners","locFlagMap","_sortListenersOfFixedPriority","rootEntity","_sortListenersOfSceneGraphPriority","sceneGraphListener","_sortEventListenersOfSceneGraphPriorityDes","l1","node1","node2","ex","fixedListeners","_sortListenersOfFixedPriorityAsc","_onUpdateListeners","idx","toRemovedListeners","locListenersMap","locPriorityDirtyFlagMap","_cleanToRemovedListeners","_updateTouchListeners","locInDispatch","_onTouchEventCallback","argsObj","selTouch","isClaimed","removedIdx","getCode","ENABLE_MULTI_TOUCH","_clearCurTouch","isStopped","needsMutableSet","_dispatchTouchEvent","oneByOneListeners","allAtOnceListeners","originalTouches","mutableTouches","oneByOneArgsObj","_dispatchEventToListeners","_onTouchesEventCallback","callbackParams","onEvent","eventOrArgs","shouldStopPropagation","locDirtyFlagMap","_sortNumberAsc","nodeOrPriority","addCustomListener","isFound","locListener","_removeListenerInVector","_removeListenerInCallback","listenersCopy","removeCustomListeners","customEventName","removeAllListeners","locListeners","locInternalCustomEventIDs","getType","_onListenerCallback","dispatchCustomEvent","optionalUserData","ev","EventCustom","setUserData","./CCEventListener","111","Touch","_lastModified","_point","_prevPoint","_startPoint","getPreviousLocationInView","getStartLocationInView","_startPointCaptured","_convertPointWithScale","_setPoint","_setPrevPoint","112","./CCEvent","./CCEventManager","./CCTouch","113","CallbacksInvoker","EventListeners","captureListeners","_callbackTable","rootInvoker","isInvoking","callbackInfos","containCanceled","purgeCanceled","../platform/callbacks-invoker","114","__on","__off","115","unuse","NO_TYPE","reuse","stopPropagationImmediate","getCurrentTarget","CAPTURING_PHASE","AT_TARGET","BUBBLING_PHASE","detail","getUserData","getEventName","_eventPool","116","./event","./event-listeners","./event-target","./system-event","117","inputManger","KEY_DOWN","KEY_UP","DEVICEMOTION","keyboardListener","accelerationListener","SystemEvent","setAccelerometerEnabled","isEnable","DeviceMotionEvent","requestPermission","setAccelerometerInterval","systemEvent","hasKeyDownEventListener","hasKeyUpEventListener","../event-manager","../platform/CCInputManager","118","./graphics","119","./3d","./CCPrivateNode","./CCScene","./assets","./base-ui/CCWidgetManager","./camera/CCCamera","./collider","./collider/CCIntersection","./components","./geom-utils","./mesh","./physics","./platform","./sp","120","CompScheduler","IsPreloadStarted","IsOnLoadStarted","Deactivating","callPreloadInTryCatch","callOnLoadInTryCatch","callOnDestroyInTryCatch","callOnFocusInTryCatch","callOnLostFocusInTryCatch","UnsortedInvoker","invokePreload","invokeOnLoad","activateTasksPool","getActivateTask","_componentCorrupted","_onLoadInEditor","focused","Selection","curActivate","_Scene","AssetsWatcher","_activatingStack","_activateNodeRecursively","preloadInvoker","onLoadInvoker","onEnableInvoker","originCount","activateComp","_deactivateNodeRecursively","lastTask","deactivatedOnLoading","resetComp","121","_isPlainEmptyObj_DEV","isPlainEmptyObj_DEV","_cloneable_DEV","cloneable_DEV","Attr","DELIMETER","BUILTIN_ENTRIES","INVALID_STATICS_DEV","pushUnique","deferredInitializer","declareProperties","$super","appendProp","__props__","defineProp","es6","defaultValue","setClassAttr","parseAttributes","defineGetSet","getter","setter","setterUndefined","getDefault","defaultVal","mixinWithInherited","dest","getPropertyDescriptor","doDefine","baseClass","shouldAddProtoCtor","__es6__","__ES6__","ctorToUse","ctors","fireClass","_getAllCtors","_createCtor","CCClass","_isCCClass","getClassAttrs","__initProps__","compileProps","setClassName","_RF","peek","_setClassId","normalizeClassName_DEV","DefaultName","getNewValueTypeCodeJit","clsName","propVal","escapeForJS","getInitPropsJit","attrs","F","attrKey","statement","IDENTIFIER_RE","expression","ValueType","initProps","getInitProps","simpleEnd","valueTypeEnd","simples","valueTypes","advanceds","totalLength","actualClass","superCallBounded","boundSuperCalls","ctorName","ctorLen","useTryCatch","SNIPPET","_validateCtor_DEV","originCtor","getCtors","__ctors__","baseOrMixins","baseOrMixin","baseCtors","SuperCallReg","xyz","SuperCallRegStrict","hasSuperCall","superFunc","preprocessAttrs","__values__","_sealed","some","staticPropName","validateMethodWithProps","_registerEditorProps","_fastDefine","serializableFields","attr","getInheritanceChain","klass","chain","getSuper","PrimitiveTypes","onAfterProps_ET","attributes","usedInGetter","ERR_Type","propNamePrefix","initAttrs","primitiveType","_short","getTypeChecker_ET","ScriptUuid","ScriptAsset","isEnum","getList","getObjTypeChecker_ET","parseSimpleAttr","attrName","expectType","startsWithUS","fastDefine","getNewValueTypeCode","./CCEnum","./attribute","./js","./preprocess-class","./requiring-frame","122","Preprocess","CACHE_KEY","fNOP","getSubDict","checkCtorArgument","decorate","_checkNormalArgument","validator_DEV","decoratorName","checkCompArgument","_argumentChecker","checkStringArgument","checkNumberArgument","getClassCache","getDefaultFromInitializer","initializer","extractActualDefaultValues","dummyObj","genProperty","fullOptions","isGetset","getFullFormOfProperty","existsProperty","errorProps","isDefaultValueSpecified","actualDefaultValues","decoratedProto","propNames","property","ctorProtoOrOptions","normalized","ctorProto","ccclassProto","createEditorDecorator","argCheckFunc","editorPropName","staticValue","decoratedValue","createDummyDecorator","executeInEditMode","disallowMultiple","playOnFocus","icon","./CCClass","123","reverseKey","enumType","enumDef","__enums__","enums","_TestEnum","124","PORTRAIT","LANDSCAPE_LEFT","PORTRAIT_UPSIDE_DOWN","LANDSCAPE_RIGHT","_didAccelerateFun","timestamp","_accelEnabled","_registerAccelerometerEvent","_accelCurTime","_unregisterAccelerometerEvent","_accelInterval","_registerKeyboardEvent","preventDefault","_acceleration","_accelDeviceEvent","DeviceOrientationEvent","browserType","BROWSER_TYPE_MOBILE_QQ","_deviceEventType","ua","BROWSER_TYPE_UC","_minus","didAccelerate","mAcceleration","eventAcceleration","_accelMinus","timeStamp","tmpX","orientation","os","OS_ANDROID","./CCInputManager","125","TOUCH_TIMEOUT","_vec2","_mousePressed","_isRegisterEvent","_preTouchPoint","_prevMousePoint","_preTouchPool","_preTouchPoolPointer","_touchesIntegerDict","_indexBitsUsed","_maxTouches","_canvasBoundingRect","adjustedLeft","adjustedTop","_getUnUsedIndex","_removeUsedIndexBit","_glView","_updateCanvasBoundingRect","canvasBoundingRect","docElem","handleTouchesBegin","curTouch","touchID","handleTouches","locTouchIntDict","unusedIndex","_convertTouchesWithScale","handleTouchesMove","locTouches","handleTouchesEnd","getSetOfTouchesEndOrCancel","handleTouchesCancel","locTouchesIntDict","getPreTouch","preTouch","locPreTouchPool","setPreTouch","getTouchByXY","tx","ty","locPreTouch","convertToLocationInView","getMouseEvent","locPreMouse","_convertMouseToLocationInView","getPointByEvent","BROWSER_TYPE_QQ","BROWSER_TYPE_SAFARI","pageX","pageY","scrollLeft","clientX","clientY","getTouchesByEvent","locView","touch_event","preLocation","changedTouches","BROWSER_TYPE_FIREFOX","identifier","selfPointer","prohibition","isMobile","supportMouse","supportTouches","_mouseEventsOnElement","focus","wheelDelta","msPointerEnabled","_pointerEventsMap","MSPointerDown","MSPointerMove","MSPointerUp","MSPointerCancel","_touchEventsMap","touchstart","touchesToHandle","touchmove","touchend","touchcancel","registerTouchEvent","_eventName","./CCMacro","./CCSys","126","DEG","SRC_ALPHA_SATURATE","SRC_COLOR","DST_ALPHA","DST_COLOR","ONE_MINUS_SRC_ALPHA","ONE_MINUS_SRC_COLOR","ONE_MINUS_DST_ALPHA","ONE_MINUS_DST_COLOR","ONE_MINUS_CONSTANT_ALPHA","ONE_MINUS_CONSTANT_COLOR","ORIENTATION_PORTRAIT","ORIENTATION_LANDSCAPE","ORIENTATION_AUTO","DENSITYDPI_DEVICE","DENSITYDPI_HIGH","DENSITYDPI_MEDIUM","DENSITYDPI_LOW","FIX_ARTIFACTS_BY_STRECHING_TEXEL_TMX","DIRECTOR_STATS_POSITION","BATCH_VERTEX_COUNT","ENABLE_TILEDMAP_CULLING","ENABLE_CULLING","SHOW_MESH_WIREFRAME","SHOW_MESH_NORMAL","KEY","none","back","backspace","tab","enter","shift","ctrl","alt","capslock","escape","space","pageup","pagedown","home","down","select","Delete","0","f","num0","num1","num2","num3","num4","num5","num6","num7","num8","num9","*","+","-","numdel","/","f1","f2","f3","f4","f5","f6","f7","f8","f9","f10","f11","f12","numlock","scrolllock",";","semicolon","equal","=",",","comma","dash",".","forwardslash","grave","[","openbracket","backslash","]","closebracket","quote","dpadLeft","dpadRight","dpadUp","dpadDown","dpadCenter","ImageFormat","JPG","PNG","TIFF","WEBP","PVR","ETC","S3TC","ATITC","TGA","RAWDATA","BOTTOM","127","Destroyed","RealDestroyed","ToDestroy","DontSave","EditorOnly","Dirty","DontDestroy","LockedInEditor","IsRotationLocked","IsScaleLocked","IsAnchorLocked","IsSizeLocked","IsPositionLocked","PersistentMask","objectsToDestroy","deferredDestroy","deleteCount","deferredDestroyTimer","compileDestruct","shouldSkipId","idToSkip","propsToReset","_destruct","__destruct__","strictMode","128","SAXParser","DOMParser","_isSupportDOMParser","_parser","xmlTxt","_parseXML","textxml","xmlDoc","parseFromString","ActiveXObject","loadXML","PlistParser","plist","childNodes","nodeType","_parseNode","_parseDict","_parseArray","firstChild","nodeValue","saxParser","129","screen","_supportsFullScreen","_onfullscreenchange","_onfullscreenerror","_preOnFullScreenChange","_preOnFullScreenError","_preOnTouch","_touchEvent","_fn","_fnMap","valL","requestFullscreen","fullScreen","fullscreenElement","webkitFullscreenElement","mozFullScreenElement","requestFullScreen","onFullScreenChange","onFullScreenError","toLowerCase","OS_IOS","isBrowser","webkitEnterFullscreen","fullscreenchange","fullscreenerror","requestPromise","exitFullScreen","webkitExitFullscreen","exitFullscreen","autoFullScreen","_ensureFullScreen","disableAutoFullScreen","touchTarget","touchEventName","fullScreenErrorEventName","onTouch","130","settingPlatform","_CCSettings","platform","isVivoGame","isOppoGame","isHuaweiGame","isJKWGame","isQttGame","isLinkSure","_global","global","initSys","LANGUAGE_ENGLISH","LANGUAGE_CHINESE","LANGUAGE_FRENCH","LANGUAGE_ITALIAN","LANGUAGE_GERMAN","LANGUAGE_SPANISH","LANGUAGE_DUTCH","LANGUAGE_RUSSIAN","LANGUAGE_KOREAN","LANGUAGE_JAPANESE","LANGUAGE_HUNGARIAN","LANGUAGE_PORTUGUESE","LANGUAGE_ARABIC","LANGUAGE_NORWEGIAN","LANGUAGE_POLISH","LANGUAGE_TURKISH","LANGUAGE_UKRAINIAN","LANGUAGE_ROMANIAN","LANGUAGE_BULGARIAN","LANGUAGE_UNKNOWN","OS_WINDOWS","OS_MARMALADE","OS_LINUX","OS_BADA","OS_BLACKBERRY","OS_OSX","OS_WP8","OS_WINRT","OS_UNKNOWN","WIN32","LINUX","MACOS","ANDROID","IPHONE","IPAD","BLACKBERRY","NACL","EMSCRIPTEN","TIZEN","WINRT","WP8","MOBILE_BROWSER","DESKTOP_BROWSER","EDITOR_PAGE","EDITOR_CORE","WECHAT_GAME","QQ_PLAY","FB_PLAYABLE_ADS","BAIDU_GAME","VIVO_GAME","OPPO_GAME","HUAWEI_GAME","XIAOMI_GAME","JKW_GAME","ALIPAY_GAME","WECHAT_GAME_SUB","BAIDU_GAME_SUB","QTT_GAME","BYTEDANCE_GAME","BYTEDANCE_GAME_SUB","LINKSURE","BROWSER_TYPE_WECHAT","BROWSER_TYPE_ANDROID","BROWSER_TYPE_IE","BROWSER_TYPE_EDGE","BROWSER_TYPE_UCBS","BROWSER_TYPE_360","BROWSER_TYPE_BAIDU_APP","BROWSER_TYPE_BAIDU","BROWSER_TYPE_MAXTHON","BROWSER_TYPE_OPERA","BROWSER_TYPE_OUPENG","BROWSER_TYPE_MIUI","BROWSER_TYPE_CHROME","BROWSER_TYPE_LIEBAO","BROWSER_TYPE_QZONE","BROWSER_TYPE_SOUGOU","BROWSER_TYPE_HUAWEI","BROWSER_TYPE_UNKNOWN","glExtension","getMaxJointMatrixSize","_maxJointMatrixSize","JOINT_MATRICES_SIZE","LEFT_UNIFORM_SIZE","maxUniforms","MAX_VERTEX_UNIFORM_VECTORS","getSafeAreaRect","visibleSize","getVisibleSize","__globalAdapter","adaptSys","languageCode","nav","doc","docEle","FbPlayableAd","currLanguage","language","browserLanguage","isAndroid","iOS","osVersion","osMainVersion","uaResult","maxTouchPoints","osName","appVersion","OS_UNIX","typeReg1","typeReg2","typeReg3","browserTypes","typeMap","micromessenger","trident","edge","360 aphone","mxbrowser","opr/","ubrowser","huaweibrowser","browserVersion","versionReg1","versionReg2","innerWidth","innerHeight","devicePixelRatio","windowPixelResolution","_checkWebGLRenderMode","_tmpCanvas1","create3DContext","opt_attribs","opt_contextType","localStorage","setItem","_supportWebp","toDataURL","_supportCanvas","_supportWebGL","WebGLRenderingContext","opengl","supportWebAudio","AudioContext","webkitAudioContext","mozAudioContext","ONLY_ONE","DELAY_CREATE_CTX","ONE_SOURCE","MULTI_CHANNEL","AUTOPLAY","canPlayType","ogg","wav","mp4","m4a","NetworkType","LAN","WWAN","getNetworkType","getBatteryLevel","garbageCollect","restartVM","isObjectValid","dump","openURL","131","__BrowserGetter","html","getElementsByTagName","availWidth","availHeight","meta","adaptationType","_scissorRect","View","_strategyer","ContainerStrategy","_strategy","ContentStrategy","_frameSize","_originalDesignResolutionSize","_visibleRect","_autoFullScreen","_maxPixelRatio","_retinaEnabled","_resizeCallback","_resizing","_resizeWithBrowserSize","_orientationChanging","_orientation","_isAdjustViewport","_antiAliasEnabled","_resolutionPolicy","_rpExactFit","EQUAL_TO_FRAME","EXACT_FIT","_rpShowAll","_rpNoBorder","_rpFixedHeight","_rpFixedWidth","_initFrameSize","_resizeEvent","forceOrEvent","prevFrameW","prevFrameH","prevRotated","containerStyle","display","_orientationChange","scrollTo","resizeWithBrowserSize","setResizeCallback","setOrientation","designWidth","designHeight","locFrameSize","isLandscape","transformOrigin","_setViewportMeta","metas","overwrite","vp","getElementById","head","elems","getElementsByName","currentVP","pattern","RegExp","_adjustViewportMeta","adjustViewportMeta","isRetinaEnabled","enableAntiAlias","imageSmoothingEnabled","mozImageSmoothingEnabled","isAntiAliasEnabled","enableAutoFullScreen","isAutoFullScreenEnabled","setCanvasSize","getCanvasSize","getFrameSize","setFrameSize","getVisibleSizeInPixel","getVisibleOrigin","getVisibleOriginInPixel","getResolutionPolicy","setResolutionPolicy","resolutionPolicy","_locPolicy","preApply","viewport","vb","rv","postApply","updateCameraViewport","getDesignResolutionSize","setRealPixelResolution","setViewportInPoints","locScaleX","locScaleY","setScissorInPoints","ceil","sw","sh","boxArr","SCISSOR_BOX","scissor","isScissorEnabled","SCISSOR_TEST","getScissorRect","scaleXFactor","scaleYFactor","getViewportRect","getScaleX","getScaleY","getDevicePixelRatio","relatedPos","posLeft","posTop","in_out_point","selPoint","selPrePoint","designedResolution","_setupContainer","locCanvas","_setupStyle","locContainer","_fixContainer","bs","contStyle","_result","_buildResult","containerW","containerH","contentW","contentH","EqualToFrame","frameH","ProportionalToFrame","frameW","designW","designH","offx","offy","EqualToWindow","ProportionalToWindow","OriginalContainer","globalAdapter","adaptContainerStrategy","adaptView","PROPORTION_TO_FRAME","ORIGINAL_CONTAINER","ExactFit","ShowAll","NoBorder","FixedHeight","FixedWidth","containerStg","contentStg","_containerStrategy","_contentStrategy","setContainerStrategy","setContentStrategy","132","topLeft","topRight","bottomLeft","bottomRight","133","isPlainEmptyObj","createAttrsSingle","superAttrs","createAttrs","subclass","chains","__attrs__","newAttrs","prefix","PrimitiveType","getTypeChecker","mainPropName","mainPropAttrs","mainPropAttrsType","isContainer","defaultType","type_lowerCase","getObjTypeChecker","typeCtor","classCtor","defaultDef","typename","134","CallbackInfo","callbackInfoPool","CallbackList","removeByCallback","removeByTarget","cancelAll","MAX_SIZE","callbackListPool","keyOrTarget","_list","135","deepFlatten","strList","flattenCodeArray","separator","136","_js","_vec","_vec3","_size","_quat","_mat","SUPPORT_MIN_FORMAT_VERSION","EMPTY_PLACEHOLDER","BuiltinValueTypes","BuiltinValueTypeParsers_xyzw","BuiltinValueTypeSetters","fromArray","serializeBuiltinValueTypes","typeId","toArray","DataTypeID","SimpleType","InstanceRef","Array_InstanceRef","Array_AssetRefByInnerObj","ValueTypeCreated","AssetRefByInnerObj","Array_Class","CustomizedClass","Dict","ARRAY_LENGTH","CLASS_TYPE","CLASS_KEYS","CLASS_PROP_TYPE_OFFSET","MASK_CLASS","OBJ_DATA_MASK","CUSTOM_OBJ_DATA_CLASS","CUSTOM_OBJ_DATA_CONTENT","VALUETYPE_SETTER","DICT_JSON_LAYOUT","ARRAY_ITEM_VALUES","Refs","EACH_RECORD_LENGTH","OWNER_OFFSET","KEY_OFFSET","TARGET_OFFSET","File","Version","Context","SharedUuids","SharedStrings","SharedClasses","SharedMasks","Instances","InstanceTypes","DependObjs","DependKeys","DependUuidIndices","PACKED_SECTIONS","dereference","instances","strings","dataLength","instanceOffset","keyIndex","_owner2","_keyIndex","deserializeCCObject","objectData","clazz","classTypeOffset","maskTypeOffset","_key2","ASSIGNMENTS","deserializeCustomCCObject","assignSimple","assignInstanceRef","genArrayParser","parseAssetRefByInnerObj","parseClass","parseCustomClass","parseValueTypeCreated","parseValueType","parseTRS","typedArray","parseDict","dict","_key3","_type2","subValue","parseArray","_type3","parseInstances","instanceTypes","instanceTypesLen","rootIndex","normalObjectCount","insIndex","classes","typeIndex","_type4","eachData","getMissingClass","hasCustomFinder","doLookupClass","silent","proxy","lookupClasses","customFinder","klassLayout","_type5","cacheMasks","masks","parseResult","sharedStrings","dependSharedUuids","dependObjs","dependKeys","dependUuids","_obj","_key4","details","borrowDetails","preprocessed","_version","FileInfo","sharedUuids","sharedClasses","sharedMasks","sections","rootInfo","../value-types/color","../value-types/mat4","../value-types/quat","../value-types/rect","../value-types/size","../value-types/vec2","../value-types/vec3","../value-types/vec4","137","./deserialize-compiled","./deserialize-editor","138","NonUuidMark","category","random","139","./CCClassDecorator","./CCObject","./CCVisibleRect","./callbacks-invoker","./instantiate","./instantiate-jit","140","Compiler","DEFAULT","VAR","LOCAL_OBJ","LOCAL_TEMP_OBJ","LOCAL_ARRAY","LINE_INDEX_OF_NEW_OBJ","DEFAULT_MODULE_CACHE","cc.Node","cc.Label","cc.Button","cc.Widget","cc.Animation","cc.ClickEvent","cc.PrefabInfo","Int8Array","Int16Array","Uint16Array","Uint32Array","Uint8ClampedArray","getTypedArrayName","Declaration","varName","mergeDeclaration","writeAssignment","codeArray","Assignments","targetExpression","_exps","_targetExp","writeCode","targetVar","pair","getPropAccessor","equalsToDefault","isEmptyObject","Parser","objsToClear_iN$t","objs","funcModuleCache","globalVariables","globalVariableId","localVariableId","getFuncModule","globalVar","enumerateObject","globalVariablesDeclaration","code","_iN$t","usedInNew","clsNameIsModule","getObjRef","setValueType","srcValue","assignments","fastDefinedProps","enumerateField","enumerateCCClass","setObjProp","instantiateArray","arrayVar","declaration","instantiateTypedArray","line","isView","instantiateObj","createCode","isChildOf","./compiler","141","CCValueType","_isDomNode","isDomNode","original","internal_force","doInstantiate","objsToClearTmpVar","initValue","../value-types/value-type","142","tempCIDGenerater","_getPropertyDescriptor","getPrototypeOf","_copyprop","isString","dunderProto","superclass","tmpValueDesc","tmpGetSetDesc","tmpGetDesc","tmpSetDesc","objOrCtor","__classname__","retval","isTempClassId","_idToClass","_nameToClass","setup","publicName","table","doSetClassName","unregisterClass","classId","__cid__","classname","allowTempId","obsoleted","newExpr","extractPropName","oldProp","newProp","obsoletes","objName","REGEXP_NUM_OR_STR","REGEXP_STR","argLen","hasSubstitution","regExpToTest","notReplaceFunction","forceDictMode","INVALID_IDENTIFIER_1","INVALID_IDENTIFIER_2","verifyType","removeArray","minusArr","appendObjectsAt","addObjs","arr_clone","cleanupFunc","_cleanup","resize","../utils/mutable-forward-iterator","./id-generater","143","Attrs","SerializableAttrs","TYPO_TO_CORRECT_DEV","parseNotify","newKey","newValue","canUsedInGet","parseType","STATIC_CHECK","getBaseClassWherePropertyDefined_DEV","_wrapOptions","isES6Getset","isLiteral","fullForm","maybeTypeScript","CALL_SUPER_DESTROY_REG_DEV","overrided","baseFuc","subFuc","correct","144","requiringFrames","beh","frameInfo","anyKey","145","refNode","otherNode","compareDocumentPosition","nodeName","146","./CCDirector","./asset-manager","./platform/CCInputExtension","./platform/CCInputManager","./platform/CCScreen","./platform/CCSys","./platform/CCView","147","_manager","_assertThisInitialized","ReferenceError","Assembler2D","_Assembler","initData","initLocal","createQuadData","verticesFloats","indicesCount","_local","uintVerts","uintVDatas","floatsPerVert","colorOffset","getBuffer","_handle","_meshBuffer","updateWorldVerts","local","verts","vDatas","matrix","matrixm","vl","vr","vt","vertexOffset","justTranslate","al","ar","bl","br","ct","db","fillBuffers","worldMatDirty","renderData","vData","iData","iDatas","offsetInfo","request","verticesCount","byteOffset","vbuf","_vData","ibuf","_iData","indiceOffset","vertexId","texIdOffset","uvOffset","./assembler","./utils/dynamic-atlas/manager","./webgl/render-data","148","_pool3","_assemblerId","getAssemblerId","assemblerCtor","__assemblerId__","AssemblerPool","_pool2","assemblers","_renderComp","../utils/pool","149","_vertexFormat","_assemblerPool","Assembler","_extendNative","renderComp","updateRenderDataForSwitchMaterial","getVfmt","vfmtPosUvColor","packDynamicAtlasAndCheckMaterial","packedFrame","insertSpriteFrame","renderCompCtor","__assembler__","getConstructor","./assembler-pool","./webgl/vertex-format","150","Device","canvasEL","_canvas","_caps","_stats","drawcalls","_vx","_vy","_vw","_vh","_sx","_sy","_sw","_sh","_restoreTexture","unit","setViewport","setScissor","clearRect","fillStyle","globalAlpha","fillRect","resetDrawCalls","getDrawCalls","151","_device","updateImage","152","_inputAssembler","_initBuiltins","defaultTexture","WRAP_REPEAT","programTemplates","programChunks","InputAssembler","Pass","renderEngine","drawCalls","_cameraNode","ModelBatcher","nativeFlow","ForwardRenderer","_builtins","canvasRenderer","RenderComponentHandle","ecScene","../../renderer/core/input-assembler","../../renderer/core/pass","../../renderer/renderers/forward-renderer","../../renderer/scene/scene","./canvas","./canvas/Device","./canvas/Texture2D","./webgl/assemblers","./webgl/model-batcher","153","FlagOfset","DONOTHING","BREAK_FLOW","LOCAL_TRANSFORM","WORLD_TRANSFORM","TRANSFORM","UPDATE_RENDER_DATA","OPACITY","OPACITY_COLOR","RENDER","POST_RENDER","FINAL","_batcher","_func","_next","_doNothing","_localTransform","_worldTransform","parentOpacityDirty","_render","batcher","parentOpacity","worldTransformFlag","worldOpacityFlag","worldDirtyFlag","colorVal","_fastSetA","flows","_postRender","postFillBuffers","EMPTY_FLOW","createFlow","flow","getFlow","tFlag","_validateList","_inValidateList","validateRenderers","visitRootNode","preCullingMask","walking","terminate","_renderScene","forwardRenderer","getBachther","FLAG_DONOTHING","FLAG_BREAK_FLOW","FLAG_LOCAL_TRANSFORM","FLAG_POST_RENDER","FLAG_FINAL","154","_reusableAtlas","_atlases","_atlasIndex","_maxAtlasCount","_textureSize","_maxFrameSize","_textureBleeding","_autoMultiBatch","_autoResetBeforeSceneLoad","_debugNode","newAtlas","autoMultiBatch","requsetMaterial","beforeSceneLoad","atlasCount","textureBleeding","textureSize","autoResetBeforeSceneLoad","atlases","rects","deleteAtlasSpriteFrame","deleteTexture","deleteInnerTexture","showDebug","scroll","ScrollView","layout","./reusable-atlas","155","pointer","parentRect","subRectA","subRectB","subRectC","cacheIndex","used","border","rootRect","freeRects","pushFreeRect","removeFreeRect","temp2","replaceFreeRect","score","areaFit","originalIndex","sizes","best","ignoreRectSize","deleteInnerRect","_iterator","_step","tryMergeRecycle","old","isEmpty","_iterator2","_step2","_iterator3","_step3","../../../assets/CCRenderTexture","156","_assembler2d","shareLabelInfo","LetterInfo","_tmpRect","_comp","_horizontalKernings","_lettersInfo","_linesOffsetX","_numberOfLines","_textDesiredHeight","_letterOffsetY","_tailoredTopY","_tailoredBottomY","_bmfontScale","_lineBreakWithoutSpaces","_lineSpacing","_originFontSize","_hAlign","_vAlign","_overflow","_isWrapText","_maxLineWidth","_isRetina","_retinaScale","BmfontAssembler","_Assembler2D","_reserveQuads","assemblerChanged","_updateFontFamily","_preUpdateRenderData","fontAsset","fontAtlas","_updateProperties","_updateLabelInfo","_updateContent","_resetProperties","_updateFontScale","getTTFTextureSizeScale","enableLabelRetina","labelRetinaScale","_setupBMFontOverflowMetrics","_computeHorizontalKerningForText","_alignText","stringLen","horizontalKernings","kerningDict","kerningAmount","_multilineTextWrap","nextTokenFunc","lineIndex","nextTokenY","longestLine","letterRight","highestY","lowestY","letterDef","letterPosition","_getFontScale","_recordPlaceholderInfo","tokenLen","tokenHighestY","tokenLowestY","tokenRight","nextLetterX","newLine","letterIndex","atlasName","letterX","_recordLetterInfo","_finishMultilineTextWrap","_getFirstCharLen","_multilineTextWrapByWord","_multilineTextWrapByChar","tmpInfo","_char2","_computeAlignmentOffset","_isVerticalClamp","_shrinkLabelToContentSize","_updateQuads","_isHorizontalClamp","_scaleFontSizeDown","shouldUpdateContent","lambda","mid","newFontSize","letterClamp","ctr","letterInfo","px","wordWidth","_isHorizontalClamped","letterOverClamp","appx","appy","py","clipTop","_determineRect","letterPositionX","appendQuad","_quadsUpdated","tempRect","trimmedLeft","trimmedTop","originalX","blank","../../../components/CCLabel","../../../platform/CCMacro","../../../utils/text-utils","../../assembler-2d","../utils","157","158","_bmfont","OUTLINE_SUPPORTED","getFontFamily","bleed","_invisibleAlpha","LetterTexture","labelInfo","_labelInfo","_context","_updateTexture","_canvasPool","startX","startY","MIDDLE_RATIO","BASELINE_OFFSET","lineJoin","textAlign","isOutlined","strokeColor","strokeStyle","lineWidth","strokeText","fillText","LetterAtlas","_tmpId","_nexty","frees","waitCleans","insertLetterTexture","letterTexture","freeLetter","removeFreeLetter","oldx","oldy","oldnexty","_letter","_inCleans","ref","pushFreeLetter","defs","LetterAtlases","fakeMaterial","_atlasWidth","_atlasHeight","deleteLetter","_iterator4","_step4","_iterator5","_step5","charAtlasAutoResetBeforeSceneLoad","_emptyTexture","_firstTraverse","_letterRefs","checkMaterialAndUpdateTexId","_needCheckMaterial","_usedMaterial","computeHash","toHEX","_isBold","LetterFontAssembler","_WebglBmfontAssembler","_proto2","createFlexData","vfmtPosUvColorTexId","_getFontDesc","_iterator6","_step6","_recycleLetterRef","_iterator7","_step7","assemblerData","appendVerts","../../../components/CCComponent","../../../components/CCLabelOutline","../../webgl/assemblers/label/2d/bmfont","../../webgl/vertex-format","159","_fontDesc","_drawFontSize","_splitedStrings","_canvasSize","_premultiply","_outlineComp","_outlineColor","_shadowComp","_shadowColor","BLACK","_canvasPadding","_contentSizeExtend","_nodeContentSize","_enableItalic","_underlineThickness","_drawUnderlinePos","_drawUnderlineWidth","_sharedLabelData","Alignment","TTFAssembler","_calculateLabelFont","_updateLabelDimensions","_calDynamicAtlas","updateVerts","_updatePaddingRect","outlineWidth","shadowWidth","CC_NATIVERENDERER","_calculateFillTextStartPosition","labelX","_getLineHeight","drawStartY","firstLinelabelY","_setupOutline","_setupShadow","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","_drawTextEffect","startPosition","isMultiple","measureText","drawTextPosX","drawTextPosY","_fillColor","recreate","nodeSpacingY","_calculateParagraphLength","paragraphedStrings","paragraphLength","_calculateShrinkFont","totalHeight","maxLength","canvasWidthNoMargin","canvasHeightNoMargin","textFragment","allWidth","_calculateWrapText","canvasSizeX","canvasSizeY","paraLength","rawWidth","rawHeight","_rawHeight","../../../components/CCLabelShadow","160","hAlign","vAlign","./dynamic-atlas/manager","161","./label","./mask-assembler","./motion-streak","./motion-streak-multi","./sprite","162","MultiWebglBmfontAssembler","../../../../webgl/vertex-format","../2d/bmfont","163","_ttf","MultiWebglTTFAssembler","_WebglTTFAssembler","indices","initQuadIndices","../2d/ttf","164","_dataOffset","WebglBmfontAssembler","_BmfontAssembler","flexBuffer","_flexBuffer","reserve","vid","_getColor","rectWidth","rectHeight","uvDataOffset","retinaScale","world","../../../../utils/label/bmfont","165","WebglLetterFontAssembler","_LetterFontAssembler","createData","requestRenderData","../../../../../platform/js","../../../../utils/label/letter-font","./bmfont","166","UPDATE_CONTENT","UPDATE_FONT","UPDATE_EFFECT","NativeTTF","labelMaterial","_label","CustomAssembler","_proxy","setAssembler","_layout","jsb","LabelRenderer","_cfg","DataView","_layoutInfo","_cfgFields","_layoutFields","bindNodeProxy","_bindMaterial","_setBufferFlag","dv","getInt8","setInt8","_v","getInt32","__isLittleEndian__","setInt32","_updateCfgFlag","field","updateFlags","_setBufferValue","setFloat32","setUint8","_setFieldValue","field_name","_getBufferValue","getFloat32","getUint8","_getFieldValue","_getLayoutValue","_setLayoutValue","_updateCfgFlag_Content","_updateCfgFlag_Font","_colorEqual","_colorToObj","setString","setFontPath","fontPath","setFontSize","fontSizeRetina","oldfontsize","setOutline","oldOutline","setOutlineColor","oldColor","setLineHeight","oldLineHeight","setOverFlow","setEnableWrap","setVerticalAlign","setHorizontalAlign","oldHeight","oldX","oldY","setShadow","oldBlur","updateContent","setShadowColor","setItalic","oldItalic","setBold","oldBold","setUnderline","setSpacingX","getCache","retinaSize","getR","getG","getB","getA","shadow","outlineSize","setEffect","_nativeObj","../../../../../assets/material/CCMaterial","../../../../../assets/material/material-variant","../../../../../components/CCLabel","../../../../../components/CCLabelOutline","../../../../../components/CCLabelShadow","167","WebglTTFAssembler","_TTFAssembler","updateUVs","srcOffset","dstOffset","canvasWidth","canvasHeight","shadowOffset","../../../../utils/label/ttf","168","_CCLabel","_ttf2","_bmfont2","_letter2","_ttf3","_bmfont3","textBaseline","TTF","Bmfont","Letter","TTF3D","Bmfont3D","Letter3D","TTFMulti","BmfontMulti","../../../../components/CCLabel","../../../assembler","./2d-multi/bmfont","./2d-multi/ttf","./2d/bmfont","./2d/letter","./2d/nativeTTF","./2d/ttf","./3d/bmfont","./3d/letter","./3d/ttf","169","_motionStreak","Point","setPoint","setDir","_normal","MultiMotionStreakAssembler","_MotionStreakAssemble","cur","difx","dify","cr","cg","ca","normalizeSelf","uintVData","vertsOffset","findLast","da","_this$_renderData$_fl","usedVertices","usedIndices","usedVerticesFloats","MotionStreakAssembler","../../../components/CCMotionStreak","../../render-flow","170","_tangent","_miter","computeMiter","miter","lineA","lineB","halfThick","maxMultiple","multiple","dot","171","_barFilled","BarFilledAssemblerMulti","_BarFilledAssembler","fillEnd","../2d/bar-filled","172","_mesh","MultiMeshSpriteAssembler","_MeshSpriteAssembler","updateIndices","../2d/mesh","173","_radialFilled","MultiRadialFilledAssembler","_RadialFilledAssemble","../2d/radial-filled","174","_simple","MultiSimpleSpriteAssembler","_SimpleSpriteAssemble","../2d/simple","175","_sliced","MultiSlicedAssembler","_SlicedAssembler","meshCount","indexOffset","../2d/sliced","176","_tiled","MultiTiledAssembler","_TiledAssembler","contentWidth","contentHeight","sizableWidth","sizableHeight","hRepeat","vRepeat","_updateIndices","../2d/tiled","177","BarFilledAssembler","textureRect","ul","ur","quadUV0","quadUV1","quadUV2","quadUV3","quadUV4","quadUV5","quadUV6","quadUV7","progressStart","progressEnd","../../../../../components/CCSprite","../../../../assembler-2d","178","MeshSpriteAssembler","originalWidth","originalHeight","trimX","trimY","_l3","lx","ly","179","PI_2","_vertPos","_vertices","_uvs","_intersectPoint_1","_intersectPoint_2","_center","_triangles","_calcInsectedPoints","intersectPoints","sinAngle","cosAngle","tanAngle","cotAngle","yleft","yright","xtop","xbottom","_calculateVertices","cx","cy","_calculateUVs","u0","v0","_getVertAngle","placementX","placementY","RadialFilledAssembler","floatsPerTriangle","triangleIndex","triangle","_generateTriangle","endAngle","testIndex","allocWorldVerts","vert0","vert1","vert2","v0x","v0y","v1x","v1y","progressX","progressY","_generateUV","px1","px2","py1","py2","180","SimpleSpriteAssembler","cw","ch","ow","oh","rw","rh","trimRight","trimBottom","trimTop","181","SlicedAssembler","xScale","yScale","voffset","localRowY","localColX","worldIndex","182","TiledAssembler","_this$_local","offsetWidth","offsetHeight","localX","localY","yindex","ylength","xindex","xlength","coefu","coefv","tempXVerts","tempYVerts","183","_CCSprite","_simple2","_sliced2","_tiled2","_radialFilled2","_barFilled2","_mesh2","_simple3","_sliced3","_tiled3","_radialFilled3","_barFilled3","_mesh3","Simple","Sliced","Tiled","RadialFilled","BarFilled","Mesh","Simple3D","Sliced3D","Tiled3D","RadialFilled3D","BarFilled3D","Mesh3D","SimpleMulti","SlicedMulti","TiledMulti","RadialFilledMulti","BarFilledMulti","MeshMulti","../../../../components/CCSprite","./2d-multi/bar-filled","./2d-multi/mesh","./2d-multi/radial-filled","./2d-multi/simple","./2d-multi/sliced","./2d-multi/tiled","./2d/bar-filled","./2d/mesh","./2d/radial-filled","./2d/simple","./2d/sliced","./2d/tiled","./3d/bar-filled","./3d/mesh","./3d/radial-filled","./3d/simple","./3d/sliced","./3d/tiled","184","FlexBuffer","vfmt","_handler","_index","_vfmt","_verticesBytes","_bytes","_initVerticesCount","_initIndicesCount","_reallocVData","floatsCount","oldData","updateMesh","_reallocIData","newFloatsCount","realloced","newIndicesCount","updateMeshRange","185","FIX_IOS14_BUFFER","MeshBuffer","vertexFormat","indiceStart","_vertexBytes","_arrOffset","_vbArr","_vb","VertexBuffer","USAGE_DYNAMIC","_ibArr","_ib","IndexBuffer","INDEX_FMT_UINT16","USAGE_STATIC","_uintVData","_initVDataCount","_initIDataCount","_offsetInfo","_reallocBuffer","uploadData","vertexsData","indicesData","ib","switchBuffer","checkAndSwitchBuffer","vertexCount","requestStatic","indiceCount","byteLength","indiceLength","_updateOffset","requestForSpine","requestStaticForSpine","adjustForSpine","copyOldData","oldVData","newData","oldIData","forwardIndiceStartToOffset","../../../renderer/gfx","186","_recyclePool","_model","vfmt3D","QuadBuffer","SpineBuffer","_buffers","empty_material","empty_ia","renderScene","_iaPool","_modelPool","_quadBuffer","_quadBuffer3D","_meshBuffer3D","_batchedModels","_sortKey","models","setInputAssembler","removeModel","_flushMaterial","model","sortKey","addModel","ia","_vertexBuffer","_indexBuffer","_start","_flushIA","vertextFormat","../../../renderer/core/input-assembler","../../../renderer/memop/recycle-pool","../../../renderer/scene/model","../../assets/material/CCMaterial","../../platform/id-generater","./mesh-buffer","./quad-buffer","./spine-buffer","./vertex-format","187","_fillQuadBuffer","vertextID","188","RenderData","_infos","./flex-buffer","189","adjust","190","VertexFormat","ATTR_POSITION","ATTR_TYPE_FLOAT32","num","ATTR_UV0","ATTR_COLOR","ATTR_TYPE_UINT8","XYZ_UV_Color","XY_UV_Color","ATTR_TEX_ID","XY_UV_Color_TexId","vfmtPosUvTwoColor","ATTR_COLOR0","XY_UV_Two_Color","vfmtPosUv","XY_UV","vfmtPosColor","XY_Color","vfmtPos","XY","191","./multi-batcher","./multi-handler","192","MultiBatcher","handlers","nextHandler","getEmptyIndex","193","textures","hasEmptySlot","texture2","texture3","texture4","texture5","texture6","texture7","texture8","propertyIndex2Name","hasTexture","194","i2nMap","n2iMap","propertyName2Index","195","EXTNAME_RE","DIRNAME_RE","NORMALIZE_RE","pathStr","mainFileName","fileName","reg","baseName","tempStr","changeBasename","isSameExt","_normalize","oldUrl","sep","stripSep","196","AffineTransform","determinant","matm","transformVec2","transOrY","transformSize","transformRect","ol","ob","or","ot","lbx","lby","rbx","rby","ltx","lty","rtx","rty","minX","minY","transformObb","out_bl","out_tl","out_tr","out_br","anAffineTransform","197","findComponent","findComponents","_comp2","findChildComponent","findChildComponents","couldActiveInScene","_onSetParent","getChildByName","siblingIndex","siblings","oldIndex","walk","prefunc","postfunc","afterChildren","_stacks","_stackId","removeAllChildren","_checkMultipleComp","existing","_RFpeek","ReqComp","depended","attachedObjsForEditor","_addComponentAt","removeComponent","_getDependComponent","destroyAllChildren","newParent","inCurrentSceneBefore","inCurrentSceneNow","newPrefabRoot","myPrefabInfo","shouldActiveNow","isSyncedNode","newPrefabInfo","syncing","_registerIfAttached","_comp3","childIndex","SameNameGetSets","propertyDefine","./misc","198","199","_dstBlendFactor","_updateBlendFunc","dstBlendFactor","materialVar","_updateMaterialBlendFunc","200","Base64Values","BASE64_VALUES","HexChars","UuidTemplate","Indices","isFinite","base64","lhs","rhs","201","referenceNode","nameList","subChild","202","_normalMaterial","normalMaterial","_grayMaterial","grayMaterial","203","eventRegx","imageAttrReg","_parsedObject","_specialSymbolArray","htmlString","_resultObjectArray","_stack","tagEndIndex","tagBeginIndex","noTagBegin","_processResult","newStr","tagStr","_addToStack","_attributeToObject","attribute","nextSpace","eventObj","eventHanlderString","_processEventHandler","isNewLine","tagValue","remainingArgument","isValidImageTag","toLocaleLowerCase","defaultOutlineObject","outlineAttrReg","eventString","eventNames","isValidTag","eventValue","previousTagObj","_escapeSpecialSymbol","204","./CCPath","./find","./mutable-forward-iterator","./profiler/CCProfiler","205","sameNameGetSets","diffNameGetSets","np","getterFunc","suffix","NextPOT","BUILTIN_CLASSID_RE","BASE64_KEYS","pushToMap","pushFront","exists","min_inclusive","max_inclusive","degreesToRadians","radiansToDegrees","206","207","208","_PrefabInfo","fileId","eulerAnglesX","eulerAnglesY","eulerAnglesZ","prefabRoot","209","PerfCounter","_showFPS","_rootNode","generateStats","below","average","draws","logic","_counter","generateNode","leftLabel","rightLabel","beforeUpdate","afterUpdate","updateLabel","stat","human","afterDraw","../../platform/CCMacro","./perf-counter","210","Counter","_value","_averageValue","_accumValue","_accumSamples","_accumStart","_average","alarm","over","211","tick","avg","./counter","212","_BASELINE_RATIO","_BASELINE_OFFSET","MAX_CACHE_SIZE","LRUCache","limit","tail","moveToHead","discard","measureCache","label_wordRex","label_symbolRex","label_lastWordRex","label_lastEnglish","label_firstEnglish","highSurrogateRex","lowSurrogateRex","label_wrapinspection","__CHINESE_REG","__JAPANESE_REG","__KOREAN_REG","metric","_safeSubstring","targetString","endIndex","newStartIndex","newEndIndex","startChar","endChar","wrappedWords","fuzzyLen","tmpText","sLine","pushNum","checkWhile","checkCount","sText","213","loadImage","tex","cacheImage","postLoadTexture","../assets/CCTexture2D","214","NodeUnit","./node-mem-pool","./node-unit","215","MemPool","unitClass","_unitClass","_findOrder","_initNative","_nativeMemPool","_buildUnit","unitID","_destroyUnit","_findUnitID","findUnit","findOrder","hasSpace","firstUnit","isAllFree","216","Super","./mem-pool","217","Uint32_Bytes","Uint8_Bytes","Dirty_Type","Dirty_Members","Dirty_Stride","TRS_Members","TRS_Stride","FLOAT_BYTES","LocalMatrix_Members","LocalMatrix_Stride","WorldMatrix_Members","WorldMatrix_Stride","Parent_Type","Parent_Members","Parent_Stride","ZOrder_Type","ZOrder_Members","ZOrder_Stride","CullingMask_Type","CullingMask_Members","CullingMask_Stride","Opacity_Type","Opacity_Members","Opacity_Stride","Is3D_Type","Is3D_Members","Is3D_Stride","Node_Type","Node_Members","Skew_Members","Skew_Stride","UnitBase","memPool","contentNum","_contentNum","trsList","FLOAT_ARRAY_TYPE","localMatList","worldMatList","_spacesData","../../value-types/utils","./unit-base","218","POINTER_INVALID_FLAG","SPACE_FREE_FLAG","SPACE_USE_FLAG","POS_NEXT_FREE","POS_FREE_FLAG","_memPool","_signData","signIndex","UnitBaseProto","headFreeIndex","spaceNum","freeStr","usingNum","usingStr","freeFlag","totalNum","219","_valueType","_CCClass","_misc","_ValueType","fromHex","hex","hexString","subtract","multiply","divide","ag","ofs","setR","setG","setB","setA","toCSS","opt","fmt","toRGBValue","fromHSV","toHSV","hsv","WHITE_R","BLACK_R","TRANSPARENT_R","GRAY_R","RED_R","RED","GREEN_R","GREEN","BLUE_R","BLUE","YELLOW_R","YELLOW","ORANGE_R","ORANGE","CYAN_R","CYAN","MAGENTA_R","MAGENTA","./value-type","220","_exportNames","Vec4","Mat3","_mat2","math","./color","./mat3","./mat4","./quat","./rect","./size","./trs","./vec2","./vec3","./vec4","221","m00","m01","m02","m03","m04","m05","m06","m07","m08","m10","m11","m20","m21","m22","transpose","a01","a02","a12","a00","a10","a11","a20","a21","a22","b01","b11","b21","det","adjoint","b00","b02","b10","b12","b20","b22","multiplyMat4","translate","rotate","rad","fromTranslation","fromScaling","fromQuat","z2","xx","yx","yy","zx","zy","zz","wx","wy","wz","_fromViewUpIIFE","default_up","lengthSqr","cross","normalFromMat4","a03","a13","a23","a30","a31","a32","a33","b03","b04","b05","b06","b07","b08","b09","frob","multiplyScalar","multiplyScalarAndAdd","exactEquals","a0","a1","a2","a4","a5","a6","a7","a8","b0","b5","b6","b7","b8","IDENTITY","../value-types/utils","222","_a00","_a01","_a02","_a03","_a10","_a11","_a12","_a13","_a20","_a21","_a22","_a23","_a30","_a31","_a32","_a33","mulScalar","m23","m30","m31","m32","m33","axis","rotateX","rotateY","rotateZ","fromXRotation","fromYRotation","fromZRotation","xy","xz","yz","getTranslation","getScaling","m3","m3_1","m09","trace","S","toRTS","v3_1","fromMat3","fromRTS","sz","fromRTSOrigin","ox","oy","oz","frustum","near","far","rl","tb","nf","perspective","fovy","aspect","lr","bt","eye","eyex","eyey","eyez","upx","upy","upz","centerx","centery","centerz","z0","z1","inverseTranspose","strictEquals","epsilon","sm","fuzzyEquals","number","m14","m15","223","_z","_w","rotationTo","fromAxisAngle","getAxisAngle","outAxis","scaleAndAdd","bx","bw","bz","rotateAround","rot","qt_1","rotateAroundLocal","calculateW","slerp","scale0","scale1","cosom","omega","sinom","sqlerp","qt_2","invDot","fromAxes","xAxis","yAxis","zAxis","halfToRad","_s","_s2","_s3","cz","toAxisX","fy","fz","toAxisY","fx","toAxisZ","outerZ","bank","heading","attitude","toDegree","atan2","sqx","sqy","sqz","euler","224","fromMinMax","min_x","min_y","max_x","max_y","intersects","maxax","maxay","maxbx","maxby","intersection","rectB","axMin","ayMin","axMax","ayMax","bxMin","byMin","bxMax","byMax","containsRect","ax","ay","aw","ah","bh","225","ZERO_R","226","tmp_quat","227","INT_MIN","INT_MAX","INT_BITS","approx","clamp","inverseLerp","nextPow2","pingPong","pseudoRandom","pseudoRandomRange","pseudoRandomRangeInt","randomRange","randomRangeInt","toRadian","_d2r","_r2d","maxDiff","seed","228","229","neg","negate","squaredDistance","inverse","transformMat3","v2_1","v2_2","cosine","magSqr","subSelf","mulSelf","divSelf","scaleSelf","negSelf","variance","addSelf","invsqrt","magSqr1","magSqr2","theta","signAngle","radians","rotateSelf","project","maxAxis","squaredMagnitude","ONE_R","UP_R","RIGHT_R","230","zero","az","cosTheta","sinTheta","rhw","transformMat4Normal","transformAffine","ix","iy","iz","iw","transformRTS","transformInverseRTS","rx","ry","rz","v3_2","projectOnPlane","sqrLen","vec1","vec2","FRONT_R","231","v4","equals4f","strictEquals4f","minInclusive","maxInclusive","NEG_ONE_R","NEG_ONE","232","deprecateEnum","oldPath","newPath","hasTypePrefixBefore","delimiter","oldPropName","oldTypeName","markAsRemoved","ownerCtor","removedProps","ownerName","markAsDeprecated","deprecatedProps","descriptors","getOwnPropertyDescriptors","deprecatedProp","markAsRemovedInObject","ownerObj","provideClearError","Info","accessor","etProp","markFunctionWarning","originFunc","_glID","PI2","FLT_MAX","FLT_MIN","UINT_MAX","scheduleCallbackForTarget","scheduleUpdateForTarget","unscheduleCallbackForTarget","unscheduleUpdateForTarget","unscheduleAllCallbacksForTarget","unscheduleAllCallbacksWithMinPriority","adjustViewPort","setViewPortInPoints","getViewPortRect","getChildByTag","removeChildByTag","getRotationX","setRotationX","getRotationY","setRotationY","getPositionX","setPositionX","getPositionY","setPositionY","getSkewX","setSkewX","getSkewY","setSkewY","setScaleX","setScaleY","getOpacity","setOpacity","getColor","getLocalZOrder","setLocalZOrder","setInsetLeft","setInsetRight","setInsetTop","setInsetBottom","getInstantiatedBuiltinMaterial","getInstantiatedMaterial","ERR","Light","affineTransformMake","affineTransformMakeIdentity","affineTransformClone","affineTransformConcat","affineTransformConcatIn","affineTransformInvert","affineTransformInvertIn","affineTransformInvertOut","affineTransformEqualToTransform","pointApplyAffineTransform","sizeApplyAffineTransform","rectApplyAffineTransform","obbApplyAffineTransform","pointEqualToPoint","sizeEqualToSize","rectEqualToRect","rectContainsRect","rectContainsPoint","rectOverlapsRect","rectIntersectsRect","rectIntersection","rectUnion","rectGetMaxX","rectGetMidX","rectGetMinX","rectGetMaxY","rectGetMidY","rectGetMinY","colorEqual","hexToColor","colorToHex","pNeg","pAdd","pSub","pMult","pMidpoint","pDot","pCross","pPerp","pRPerp","pProject","pLengthSQ","pDistanceSQ","pLength","pDistance","pNormalize","pForAngle","pToAngle","pZeroIn","pIn","pMultIn","pSubIn","pAddIn","pNormalizeIn","pSameAs","pAngle","pAngleSigned","pRotateByAngle","pCompMult","pFuzzyEqual","pLerp","pClamp","rand","randomMinus1To1","_renderType","_getError","_initDebugSetting","rgb2hsv","hsv2rgb","dragonBones","CCFactory","getInstance","vmath","233","./actions","./core/CCGame","234","CCSpriteFrame","ParticleAsset","../core/assets/CCAsset","../core/assets/CCSpriteFrame","235","USAGE_STREAM","INDEX_FMT_UINT8","INDEX_FMT_UINT32","ATTR_NORMAL","ATTR_TANGENT","ATTR_BITANGENT","ATTR_WEIGHTS","ATTR_JOINTS","ATTR_COLOR1","ATTR_UV","ATTR_UV1","ATTR_UV2","ATTR_UV3","ATTR_UV4","ATTR_UV5","ATTR_UV6","ATTR_UV7","ATTR_TYPE_INT8","ATTR_TYPE_INT16","ATTR_TYPE_UINT16","ATTR_TYPE_INT32","ATTR_TYPE_UINT32","FILTER_NEAREST","FILTER_LINEAR","WRAP_CLAMP","WRAP_MIRROR","TEXTURE_FMT_RGB_DXT1","TEXTURE_FMT_RGBA_DXT1","TEXTURE_FMT_RGBA_DXT3","TEXTURE_FMT_RGBA_DXT5","TEXTURE_FMT_RGB16F","TEXTURE_FMT_RGBA16F","TEXTURE_FMT_RGB32F","TEXTURE_FMT_R32F","TEXTURE_FMT_111110F","TEXTURE_FMT_SRGB","TEXTURE_FMT_SRGBA","TEXTURE_FMT_D16","TEXTURE_FMT_D32","TEXTURE_FMT_D24S8","DS_FUNC_NEVER","DS_FUNC_EQUAL","DS_FUNC_LEQUAL","DS_FUNC_GREATER","DS_FUNC_NOTEQUAL","DS_FUNC_GEQUAL","RB_FMT_RGBA4","RB_FMT_RGB5_A1","RB_FMT_RGB565","BLEND_FUNC_SUBTRACT","BLEND_FUNC_REVERSE_SUBTRACT","BLEND_ZERO","BLEND_ONE","BLEND_SRC_COLOR","BLEND_ONE_MINUS_SRC_COLOR","BLEND_DST_COLOR","BLEND_ONE_MINUS_DST_COLOR","BLEND_DST_ALPHA","BLEND_ONE_MINUS_DST_ALPHA","BLEND_CONSTANT_COLOR","BLEND_ONE_MINUS_CONSTANT_COLOR","BLEND_CONSTANT_ALPHA","BLEND_ONE_MINUS_CONSTANT_ALPHA","BLEND_SRC_ALPHA_SATURATE","STENCIL_DISABLE","STENCIL_ENABLE","STENCIL_OP_ZERO","STENCIL_OP_REPLACE","STENCIL_OP_INCR","STENCIL_OP_INCR_WRAP","STENCIL_OP_DECR","STENCIL_OP_DECR_WRAP","STENCIL_OP_INVERT","CULL_NONE","CULL_FRONT","CULL_FRONT_AND_BACK","PT_POINTS","PT_LINES","PT_LINE_LOOP","PT_LINE_STRIP","PT_TRIANGLES","PT_TRIANGLE_STRIP","PT_TRIANGLE_FAN","RenderQueue","OVERLAY","murmurhash2_32_gc","WebGLEXT","GFXObjectType","GFXStatus","GFXObject","gfxType","_gfxType","_status","UNREADY","GFXAttributeName","GFXType","GFXFormat","GFXBufferUsageBit","GFXMemoryUsageBit","GFXBufferAccessBit","GFXPrimitiveMode","GFXPolygonMode","GFXShadeModel","GFXCullMode","GFXComparisonFunc","GFXStencilOp","GFXBlendOp","GFXBlendFactor","GFXColorMask","GFXFilter","GFXAddress","GFXTextureType","GFXTextureUsageBit","GFXSampleCount","GFXTextureFlagBit","GFXTextureViewType","GFXShaderType","GFXBindingType","GFXCommandBufferType","GFXLoadOp","GFXStoreOp","GFXTextureLayout","GFXPipelineBindPoint","GFXDynamicState","GFXStencilFace","GFXQueueType","GFXClearFlag","GFXGetTypeSize","BOOL","INT","UINT","FLOAT","BOOL2","INT2","UINT2","FLOAT2","BOOL3","INT3","UINT3","FLOAT3","BOOL4","INT4","UINT4","FLOAT4","MAT2","MAT2X3","MAT2X4","MAT3X2","MAT3","MAT3X4","MAT4X2","MAT4","SAMPLER1D","SAMPLER1D_ARRAY","SAMPLER2D","SAMPLER2D_ARRAY","SAMPLER3D","SAMPLER_CUBE","RenderPassStage","RenderPriority","MAX_BINDING_SUPPORTED","UniformBinding","SamplerInfoIndex","sizeMap","formatMap","R32I","RG32I","RGB32I","RGBA32I","R32F","RG32F","RGB32F","passParams","BACK","FRONT","ADD","SUB","REV_SUB","CONSTANT_COLOR","CONSTANT_ALPHA","NEVER","LESS","EQUAL","LEQUAL","GREATER","NOTEQUAL","GEQUAL","KEEP","REPLACE","INCR","INCR_WRAP","DECR","DECR_WRAP","INVERT","effectStructure","$techniques","$passes","any","sampler","mappings","236","_memop","_view","_m4_tmp","_stageInfos","RecyclePool","_float2_pool","_float3_pool","_float4_pool","_float9_pool","_float16_pool","_float64_pool","_int2_pool","_int3_pool","_int4_pool","_int64_pool","Base","_this$_type2defaultVa","_type2defaultValue","PARAM_INT2","PARAM_INT3","PARAM_INT4","PARAM_FLOAT2","PARAM_FLOAT3","PARAM_FLOAT4","PARAM_COLOR4","PARAM_MAT3","PARAM_MAT4","defaultTextureCube","_stage2fn","_usedTextureUnits","_viewPools","_drawItemsPools","_stageItemsPools","_definesChanged","_resetTextuerUnit","_allocTextureUnit","maxTextureUnits","_registerStage","fn","_requestView","clearOpts","CLEAR_COLOR","CLEAR_DEPTH","CLEAR_STENCIL","_stencil","_models","drawItem","extractDrawItem","_stages","stageItems","_drawItem","stageItem","stageInfo","_setProperty","slots","setTextureArray","setUniformDirectly","setUniform","_draw","programLib","_programKey","setVertexBuffer","setIndexBuffer","setPrimitiveType","_primitiveType","getProgram","setProgram","_uniforms","variants","enableBlend","setBlendFuncSep","setBlendEqSep","setBlendColor32","enableDepthTest","setDepthFunc","enableDepthWrite","setStencilTest","setStencilFuncFront","setStencilOpFront","setStencilFuncBack","setStencilOpBack","draw","../../core/value-types","../enums","../gfx","../memop","./program-lib","./view","237","pt","238","_detailName","setStage","newProperties","../../core/value-types/value-type","239","_shdID","_generateDefines","tmpDefines","_replaceMacroNums","_unrollLoops","begin","snippet","unroll","parsedBegin","parsedEnd","_replaceHighp","ProgramLib","_templates","_checkPrecision","prog","glsl1","vert","frag","cnt","log2","samplers","blocks","members","extensions","hasProgram","getKey","tmpl","tmplDefs","errPrefix","customDef","_highpSupported","Program","errors","link","vertLines","fragLines","defineLength","originLine","lines","fileID","highpSupported","getShaderPrecisionFormat","vertHighp","VERTEX_SHADER","HIGH_FLOAT","fragHighp","FRAGMENT_SHADER","precision","240","Technique","241","_genID","_priority","_clearModel","_matView","_matViewInv","_matProj","_matViewProj","_matInvViewProj","_cullingByID","_shadowLight","getForward","242","_mappings","PROJ_PERSPECTIVE","PROJ_ORTHO","LIGHT_DIRECTIONAL","LIGHT_POINT","LIGHT_SPOT","LIGHT_AMBIENT","SHADOW_NONE","SHADOW_HARD","SHADOW_SOFT","ivec2","ivec3","ivec4","vec3","vec4","PARAM_MAT2","mat2","mat3","sampler2D","samplerCube","CLEAR_SKYBOX","BUFFER_VIEW_INT8","BUFFER_VIEW_UINT8","BUFFER_VIEW_INT16","BUFFER_VIEW_UINT16","BUFFER_VIEW_INT32","BUFFER_VIEW_UINT32","BUFFER_VIEW_FLOAT32","./build/mappings","243","_state","_texture2d","_textureCube","_type2uniformCommit2","_type2uniformArrayCom","GL_INT","GL_FLOAT","GL_FLOAT_VEC2","GL_FLOAT_VEC3","GL_FLOAT_VEC4","GL_INT_VEC2","GL_INT_VEC3","GL_INT_VEC4","GL_BOOL","GL_BOOL_VEC2","GL_BOOL_VEC3","GL_BOOL_VEC4","GL_FLOAT_MAT2","GL_FLOAT_MAT3","GL_FLOAT_MAT4","GL_SAMPLER_2D","GL_SAMPLER_CUBE","_type2uniformCommit","uniform1i","uniform1f","uniform2fv","uniform3fv","uniform4fv","uniform2iv","uniform3iv","uniform4iv","uniformMatrix2fv","uniformMatrix3fv","uniformMatrix4fv","_type2uniformArrayCommit","uniform1iv","uniform1fv","_commitBlendStates","disable","BLEND","blendSep","blendFuncSeparate","blendEquationSeparate","blendFunc","blendEquation","_commitDepthStates","DEPTH_TEST","depthMask","_commitStencilStates","STENCIL_TEST","stencilSep","stencilFuncSeparate","stencilMaskSeparate","stencilOpSeparate","stencilOp","_commitCullMode","CULL_FACE","cullFace","_commitVertexBuffers","attrsDirty","maxStream","vertexBuffers","vertexBufferOffsets","maxVertexAttribs","_newAttributes","vbOffset","bindBuffer","ARRAY_BUFFER","_attributes","_enabledAttributes","enableVertexAttribArray","vertexAttribPointer","stride","disableVertexAttribArray","_commitTextures","maxTextureSlot","textureUnits","activeTexture","TEXTURE0","bindTexture","_attach","attachment","face","framebufferTexture2D","TEXTURE_2D","TEXTURE_CUBE_MAP_POSITIVE_X","framebufferRenderbuffer","RENDERBUFFER","preserveDrawingBuffer","_extensions","_initExtensions","_initCaps","_initStates","initDefault","_current","vendorPrefixes","getExtension","extDrawBuffers","maxVertexStreams","maxVertexTextures","MAX_VERTEX_TEXTURE_IMAGE_UNITS","maxFragUniforms","MAX_FRAGMENT_UNIFORM_VECTORS","MAX_TEXTURE_IMAGE_UNITS","MAX_VERTEX_ATTRIBS","maxTextureSize","MAX_TEXTURE_SIZE","maxDrawBuffers","MAX_DRAW_BUFFERS_WEBGL","maxColorAttachments","MAX_COLOR_ATTACHMENTS_WEBGL","FUNC_ADD","colorMask","POLYGON_OFFSET_FILL","depthRange","clearDepth","clearStencil","_restoreIndexBuffer","indexBuffer","ELEMENT_ARRAY_BUFFER","allowFloatTexture","fb","numColors","_colors","colorBuffer","COLOR_ATTACHMENT0","DEPTH_ATTACHMENT","STENCIL_ATTACHMENT","_depthStencil","DEPTH_STENCIL_ATTACHMENT","COLOR_BUFFER_BIT","DEPTH_BUFFER_BIT","STENCIL_BUFFER_BIT","setStencilFunc","setStencilOp","failOp","zFailOp","zPassOp","writeMask","rgba","setBlendColor","setBlendFunc","dst","srcAlpha","dstAlpha","setBlendEq","eq","alphaEq","stream","slot","sameType","isFloat32Array","isInt32Array","programDirty","_linked","useProgram","commitFunc","drawElements","_bytesPerIndex","drawArrays","./enums","./state","./texture-2d","./texture-cube","244","attrTypeBytes","glFilter","glTextureFmt","GL_NEAREST_MIPMAP_NEAREST","GL_LINEAR_MIPMAP_NEAREST","GL_NEAREST_MIPMAP_LINEAR","GL_LINEAR_MIPMAP_LINEAR","GL_UNSIGNED_BYTE","GL_UNSIGNED_SHORT","GL_UNSIGNED_INT","GL_UNSIGNED_SHORT_5_6_5","GL_UNSIGNED_SHORT_4_4_4_4","GL_UNSIGNED_SHORT_5_5_5_1","GL_HALF_FLOAT_OES","GL_DEPTH_COMPONENT","GL_ALPHA","GL_RGB","GL_LUMINANCE","GL_LUMINANCE_ALPHA","GL_COMPRESSED_RGB_S3TC_DXT1_EXT","GL_COMPRESSED_RGBA_S3TC_DXT1_EXT","GL_COMPRESSED_RGBA_S3TC_DXT3_EXT","GL_COMPRESSED_RGBA_S3TC_DXT5_EXT","GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG","GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG","GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG","GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG","GL_COMPRESSED_RGB_ETC1_WEBGL","GL_COMPRESSED_RGB8_ETC2","GL_COMPRESSED_RGBA8_ETC2_EAC","_filterGL","_textureFmtGL","internalFormat","pixelType","ATTR_TEX_COORD","ATTR_TEX_COORD1","ATTR_TEX_COORD2","ATTR_TEX_COORD3","ATTR_TEX_COORD4","ATTR_TEX_COORD5","ATTR_TEX_COORD6","ATTR_TEX_COORD7","ATTR_TEX_COORD8","attrType","LINEAR_MIPMAP_LINEAR","245","createFramebuffer","deleteFramebuffer","246","_BYTES_PER_INDEX","BYTES_PER_INDEX","usage","_usage","_numIndices","_needExpandDataStore","createBuffer","deleteBuffer","bytes","glUsage","bufferData","bufferSubData","setUsage","247","TextureCube","./device","./frame-buffer","./index-buffer","./program","./render-buffer","./texture","./vertex-buffer","248","isPow2","249","_parseError","errorLog","parts","_samplers","_errors","_vertSource","_fragSource","vertShader","_createShader","fragShader","createProgram","attachShader","linkProgram","failed","getShaderParameter","COMPILE_STATUS","getShaderInfoLog","deleteShader","getProgramParameter","LINK_STATUS","getProgramInfoLog","numAttributes","ACTIVE_ATTRIBUTES","getActiveAttrib","getAttribLocation","numUniforms","ACTIVE_UNIFORMS","_info","getActiveUniform","_location","getUniformLocation","deleteProgram","shader","createShader","shaderSource","compileShader","250","createRenderbuffer","bindRenderbuffer","renderbufferStorage","deleteRenderbuffer","251","cpy","252","_Texture","_genMipmap","caps","textureMaxSize","pot","_setMipmap","hint","GENERATE_MIPMAP_HINT","NICEST","generateMipmap","_setTexInfo","glFmt","_setSubImage","_setImage","pixelStorei","UNPACK_FLIP_Y_WEBGL","UNPACK_PREMULTIPLY_ALPHA_WEBGL","compressedTexSubImage2D","texSubImage2D","compressedTexImage2D","texImage2D","texParameteri","TEXTURE_MIN_FILTER","TEXTURE_MAG_FILTER","TEXTURE_WRAP_S","TEXTURE_WRAP_T","TEXTURE_MAX_ANISOTROPY_EXT","253","TEXTURE_CUBE_MAP","faceIndex","levelImages","254","_nullWebGLTexture","_textureID","255","_bytesPerVertex","_numVertices","getFormat","256","_attr2el","_elements","_el","../murmurhash2_gc","257","CircularPool","_cursor","258","_timsort","FixedArray","cmp","./timsort","259","TypedArrayPool","LinkedArray","_circularPool","_fixedArray","_linkedArray","_typedArrayPool","./circular-pool","./fixed-array","./linked-array","./pool","./recycle-pool","./typed-array-pool","260","_head","_tail","alloc","_prev","free","binder","cursor","261","_idx","_frees","_expand","262","263","DEFAULT_MIN_MERGE","DEFAULT_MIN_GALLOPING","DEFAULT_TMP_STORAGE_LENGTH","POWERS_OF_TEN","log10","alphabeticalCompare","aStr","bStr","minRunLength","makeAscendingRun","lo","hi","compare","runHi","reverseRun","binaryInsertionSort","pivot","gallopLeft","lastOffset","maxOffset","gallopRight","TimSort","minGallop","tmpStorageLength","stackLength","runStart","runLength","stackSize","pushRun","mergeRuns","mergeAt","forceMergeRuns","start1","length1","start2","length2","mergeLow","mergeHigh","cursor1","cursor2","count1","count2","exit","customCursor","customDest","remaining","ts","minRun","264","_bufferPools","_nextPow16","_log2","_alloc","buf","alloc_int8","alloc_uint8","alloc_int16","alloc_uint16","alloc_int32","alloc_uint32","alloc_float32","alloc_float64","alloc_dataview","265","266","_baseRenderer","_a16_view","_a16_view_inv","_a16_proj","_a16_viewProj","_a4_camPos","_a64_shadow_lightViewProj","_a16_shadow_lightViewProjs","_a4_shadow_info","_camPos","_camFwd","_v3_tmp1","CC_MAX_LIGHTS","CC_MAX_SHADOW_LIGHTS","sortView","_BaseRenderer","_lights","_shadowLights","_numLights","_shadowStage","_opaqueStage","_transparentStage","_updateLights","extractView","_view2","lights","light","shadowType","_updateLightDefines","lightKey","shadowKey","_shadowType","newCount","CC_NUM_LIGHTS","CC_NUM_SHADOW_LIGHTS","_submitLightsUniforms","positionAndRanges","directions","lightNum","_colorUniform","_directionUniform","_positionUniform","_range","_spotUniform","_submitShadowStageUniforms","shadowInfo","shadowMinDepth","shadowMaxDepth","shadowDepthScale","shadowDarkness","shadowBias","CC_SHADOW_TYPE","_submitOtherStagesUniforms","viewProjMatrix","_shadowResolution","_sortItems","_drawItems","shadowLights","_item","shadowIdx","shadowMap","../core/base-renderer","267","_tmp_mat4","_tmp_v3","_tmp2_v3","_poolID","_projection","_near","_far","_orthoHeight","setCullingMask","getPriority","getOrthoHeight","getFov","getNear","getFar","getDepth","getStencil","getClearFlags","getStages","getFramebuffer","framebuffer","_calcMatrices","screenPointToRay","worldPos","worldMatrixToScreen","worldMatrix","halfWidth","halfHeight","../../core/geom-utils","268","Model","_viewID","_cameraID","_userKey","_castShadow","_boundingShape","setUserKey","269","app","_app","_views","_add","_remove","setDebugCamera","cam","getCameraCount","getCamera","getModelCount","getModel","getLightCount","getLight","addLight","removeLight","addView","removeView","270","ctor2enums","getInspectorProps","getInstanceType","getInstanceCtor","_CCTexture2D","_ctor2default","_enums2ctor","_ctor2enums","_enums2default","gfxTexture2D","gfxTextureCube","ctor2default","enums2ctor","PARAM_COLOR3","className2InspectorName","typeName","valueCtor","assetType","../core/assets/CCTexture2D","../core/value-types","./gfx/texture-2d","271","TiledMapAsset","tmxXmlStr","textureNames","textureSizes","imageLayerTextures","imageLayerTextureNames","tsxFiles","tsxFileNames","272","./cocos2d/actions","./cocos2d/animation","./cocos2d/core","./cocos2d/core/components/CCStudioComponent","./cocos2d/deprecated","./cocos2d/particle","./cocos2d/particle/CCParticleAsset","./cocos2d/tilemap","./cocos2d/tilemap/CCTiledMapAsset","./cocos2d/videoplayer/CCVideoPlayer","./cocos2d/webview/CCWebView","./extensions/ccpool/CCNodePool","./extensions/dragonbones","./extensions/spine","273","EmptyHandle","ATTACHED_ROOT_NAME","ATTACHED_PRE_NAME","limitNode","_tempMat4","AttachUtil","_skeleton","_skeletonNode","_skeletonComp","_attachedRootNode","_attachedNodeArray","_boneIndexToNode","skeletonComp","_prepareAttachNode","armature","isCached","isAnimationCached","_frameCache","enableCacheAttachedInfo","_buildBoneAttachedNode","bone","boneIndex","boneNodeName","boneNode","_buildBoneRelation","_bone","_boneIndex","getAttachedRootNode","getAttachedNodes","boneName","nodeArray","_rebuildNodeArray","findMap","oldNodeArray","_toRemove","_sortNodeArray","_getNodeByBoneIndex","destroyAttachedNodes","markTree","delName","generateAttachedNodes","targetNodes","bones","boneData","buildBoneTree","parentBoneNode","_n","targetNode","destroyAllAttachedNodes","generateAllAttachedNodes","parentIndex","_hasAttachedNode","attachedRootNode","_associateAttachedNode","_syncAttachedNode","rootMatrix","boneInfos","_curFrame","mulMat","matrixHandle","nodeMat","worldX","worldY","nodeArrayDirty","../../cocos2d/core/renderer/render-flow","../../cocos2d/core/value-types/mat4","274","TrackEntryListeners","spine","Graphics","SkeletonCache","DefaultSkinsEnum","DefaultAnimsEnum","","AnimationCacheMode","REALTIME","SHARED_CACHE","PRIVATE_CACHE","setEnumAttr","Skeleton","skeletonData","SkeletonData","defaultSkin","defaultAnimation","_updateSkeletonData","_animationName","getCurrent","setAnimation","loop","clearTrack","setToSetupPose","_defaultSkinIndex","skinsEnum","getSkinsEnum","skinIndex","skinName","setSkin","_animationIndex","animationName","animsEnum","getAnimsEnum","animIndex","animName","_preCacheMode","_cacheMode","_defaultCacheMode","setAnimationCacheMode","premultipliedAlpha","debugSlots","_updateDebugDraw","debugBones","debugMesh","useTint","_updateUseTint","enableBatch","_updateBatch","_accTime","_playCount","_skeletonCache","_animationQueue","_headAniInfo","_playTimes","_isAniComplete","_effectDelegate","_rootBone","_listener","_materialCache","_debugRenderer","_startSlotIndex","_endSlotIndex","_startEntry","trackIndex","_endEntry","attachUtil","_dataDirty","invalidAnimationCache","baseMaterial","isTexturesLoaded","setSkeletonData","sharedCache","enablePrivateMode","skeletonInfo","getSkeletonCache","skeleton","_clipper","clipper","getRootBone","SkeletonClipping","setSlotsRange","startSlotIndex","endSlotIndex","setAnimationStateData","stateData","frameCache","isInvalid","updateToFrame","aniInfo","_updateCache","_updateRealtime","_emitCacheCompleteEvent","isInited","frameTime","FrameTime","frameIdx","setVertexEffectDelegate","effectDelegate","updateWorldTransform","setBonesToSetupPose","setSlotsToSetupPose","updateAnimationCache","findBone","findSlot","slotName","setSkinByName","getAttachment","attachmentName","getAttachmentByName","setAttachment","getRegion","region","setRegion","MeshAttachment","RegionAttachment","updateOffset","getTextureAtlas","regionAttachment","setMix","fromAnimation","toAnimation","getAnimationCache","initAnimationCache","findAnimation","setAnimationWith","addAnimationWith","clearTracks","setStartListener","_ensureListener","setInterruptListener","interrupt","setEndListener","setDisposeListener","dispose","setCompleteListener","setEventListener","setTrackStartListener","getListeners","setTrackInterruptListener","setTrackEndListener","setTrackDisposeListener","setTrackCompleteListener","trackEntry","loopCount","trackTime","animationEnd","setTrackEventListener","_updateAnimEnum","_updateSkinEnum","getRuntimeData","AnimationStateData","_refreshInspector","refreshSelectedInspector","debugDrawNode","debugDraw","../../cocos2d/core/components/CCRenderComponent","../../cocos2d/core/graphics/graphics","./AttachUtil","./lib/spine","./skeleton-cache","./track-entry-listeners","275","_isUseSpine","ATTACHMENT_TYPE","REGION","BOUNDING_BOX","SKINNED_MESH","AnimationEventType","START","INTERRUPT","END","DISPOSE","COMPLETE","EVENT","./Skeleton","./skeleton-data","./skeleton-texture","./spine-assembler","./vertex-effect-delegate","276","__extends","_extendStatics","extendStatics","__","timelines","timelineIds","getPropertyId","hasTimeline","lastTime","linearSearch","MixBlend","MixDirection","TimelineType","CurveTimeline","newFloatArray","BEZIER_SIZE","getFrameCount","setLinear","setStepped","STEPPED","getCurveType","BEZIER","setCurve","cx1","cy1","cx2","cy2","tmpx","tmpy","dddfx","dddfy","ddfx","ddfy","dfx","dfy","getCurvePercent","MathUtils","prevX","prevY","RotateTimeline","setFrame","degrees","first","r_1","ENTRIES","r_2","PREV_ROTATION","prevRotation","PREV_TIME","TranslateTimeline","X","Y","PREV_X","PREV_Y","ScaleTimeline","mixOut","signum","ShearTimeline","shear","shearX","shearY","ColorTimeline","slotIndex","R","G","B","A","setFromColor","PREV_R","PREV_G","PREV_B","PREV_A","TwoColorTimeline","twoColor","r2","g2","R2","G2","B2","darkColor","dark","setupLight","setupDark","PREV_R2","PREV_G2","PREV_B2","AttachmentTimeline","attachmentNames","attachmentName_1","attachmentName_2","zeros","DeformTimeline","frameVertices","deform","firedEvents","slotAttachment","VertexAttachment","deformAttachment","deformArray","vertexAttachment","deform_1","setArraySize","setupVertices","lastVertices","i_1","i_2","arrayCopy","vertexAttachment_1","i_3","i_4","i_5","i_6","i_7","prevVertices","nextVertices","i_8","i_9","i_10","vertexAttachment_2","i_11","i_12","i_13","i_14","i_15","EventTimeline","DrawOrderTimeline","drawOrders","drawOrder","drawOrderToSetupIndex","IkConstraintTimeline","ikConstraint","ikConstraintIndex","mix","softness","bendDirection","compress","stretch","MIX","SOFTNESS","BEND_DIRECTION","COMPRESS","STRETCH","constraint","ikConstraints","PREV_MIX","PREV_SOFTNESS","PREV_BEND_DIRECTION","PREV_COMPRESS","PREV_STRETCH","mixIn","TransformConstraintTimeline","transformConstraint","transformConstraintIndex","rotateMix","translateMix","scaleMix","shearMix","ROTATE","TRANSLATE","SHEAR","transformConstraints","PREV_ROTATE","PREV_TRANSLATE","PREV_SCALE","PREV_SHEAR","PathConstraintPositionTimeline","pathConstraintPosition","pathConstraintIndex","VALUE","pathConstraints","PREV_VALUE","PathConstraintSpacingTimeline","pathConstraintSpacing","spacing","PathConstraintMixTimeline","pathConstraintMix","tracks","queue","EventQueue","propertyIDs","IntSet","animationsChanged","trackEntryPool","TrackEntry","animationLast","nextAnimationLast","trackLast","nextTrackLast","currentDelta","nextTime","setCurrent","mixingFrom","mixTime","trackEnd","disposeNext","updateMixingFrom","mixingTo","drain","finished","mixDuration","totalAlpha","interruptAlpha","_animationsChanged","applied","mixBlend","applyMixingFrom","animationTime","getAnimationTime","timelineCount","ii","webkit602BugfixHelper","timelineMode","firstFrame","timelinesRotation","timeline","timelineBlend","NOT_LAST","SUBSEQUENT","applyRotateTimeline","queueEvents","eventThreshold","attachments","attachmentThreshold","drawOrderThreshold","alphaHold","alphaMix","timelineHoldMix","FIRST","HOLD","holdMix","rotateTimeline","r1","diff","lastTotal","lastDiff","animationStart","trackLastWrapped","event_1","event_2","oldDrainDisabled","drainDisabled","expandToIndex","getMix","setEmptyAnimation","emptyAnimation","addEmptyAnimation","setEmptyAnimations","ensureArrayCapacity","obtain","holdPrevious","computeHold","computeNotLast","timelinesCount","timelineDipMix","HOLD_MIX","clearListeners","clearListenerNotifications","setAnimationLast","isComplete","resetRotationDirections","animState","objects","event_3","AnimationStateAdapter","animationToMixTime","defaultMix","fromName","toName","setMixWith","textureLoader","pathPrefix","toLoad","responseText","downloadBinary","loadBinary","loadText","loadTexture","loadTextureData","loadTextureAtlas","atlasData","pagesLoaded","atlasPages","TextureAtlas","FakeTexture","_loop_1","atlasPage","pageLoadError","imagePath","errorMessage","atlasPages_1","isLoadingComplete","getToLoad","getLoaded","hasErrors","getErrors","AtlasAttachmentLoader","newRegionAttachment","skin","findRegion","renderObject","newMeshAttachment","newBoundingBoxAttachment","BoundingBoxAttachment","newPathAttachment","PathAttachment","newPointAttachment","PointAttachment","newClippingAttachment","ClippingAttachment","BlendMode","Bone","arotation","ascaleX","ascaleY","ashearX","ashearY","appliedValid","sorted","isActive","updateWorldTransformWith","cosDeg","sinDeg","transformMode","TransformMode","la","lb","lc","ld","OnlyTranslation","NoRotationOrReflection","prx","radDeg","NoScale","NoScaleOrReflection","za","zc","zb","zd","getWorldRotationX","getWorldRotationY","getWorldScaleX","getWorldScaleY","updateAppliedTransform","pid","dx","dy","ic","ra","rb","rc","worldToLocal","invDet","localToWorld","worldToLocalRotation","worldRotation","localToWorldRotation","localRotation","rotateWorld","BoneData","skinRequired","ConstraintData","EventData","IkConstraint","apply1","apply2","rotationIK","dd","bendDir","psx","psy","csx","os1","os2","s2","cwx","cwy","pp","td","ta","r0","minAngle","minDist","maxAngle","maxDist","IkConstraintData","PathConstraint","spaces","positions","segments","percentSpacing","spacingMode","SpacingMode","Percent","rotateMode","tangents","RotateMode","Tangent","ChainScale","boneCount","spacesCount","lengthSpacing","Length","setupLength","length_1","length_2","computeWorldPositions","positionMode","PositionMode","boneX","boneY","offsetRotation","tip","Chain","degRad","length_3","length_4","percentPosition","closed","verticesLength","worldVerticesLength","curveCount","prevCurve","constantSpeed","pathLength_1","BEFORE","computeWorldVertices","addBeforePosition","AFTER","addAfterPosition","length_5","addCurvePosition","pathLength","curveLength","segment","length_6","length_7","tt","ttt","uu","uuu","ut","ut3","uut3","utt3","PathConstraintData","Assets","clientId","SharedAssetManager","clientAssets","queuedAssets","queueAsset","onreadystatechange","DONE","loadJson","updateClientAssets","rawAsset","updateCacheReset","parent_1","slotData","Slot","ikConstraintData","transformConstraintData","TransformConstraint","pathConstraintData","updateCache","skinBones","ikCount","transformCount","pathCount","constraintCount","sortIkConstraint","sortTransformConstraint","sortPathConstraint","sortBone","constraints","constrained","sortReset","slotBone","sortPathConstraintAttachment","skins","sortPathConstraintAttachmentWith","pathBones","findBoneIndex","findSlotIndex","findSkin","newSkin","attachAll","name_1","findIkConstraint","constraintName","findTransformConstraint","findPathConstraint","getBounds","POSITIVE_INFINITY","NEGATIVE_INFINITY","mesh","nn","SkeletonBinary","attachmentLoader","linkedMeshes","readSkeletonData","binary","BinaryInput","readString","readFloat","nonessential","readBoolean","imagesPath","audioPath","readInt","name_2","parent_2","TransformModeValues","rgba8888ToColor","readInt32","SlotData","rgb888ToColor","readStringRef","blendMode","BlendModeValues","readByte","TransformConstraintData","offsetScaleX","offsetScaleY","offsetShearY","PositionModeValues","SpacingModeValues","RotateModeValues","Fixed","readSkin","linkedMesh","parent_3","inheritDeform","setParentMesh","intValue","floatValue","stringValue","volume","balance","animations","readAnimation","slotCount","Skin","name_3","readAttachment","AttachmentTypeValues","AttachmentType","Region","BoundingBox","readVertices","readFloatArray","readShortArray","hullLength","edges","regionUVs","LinkedMesh","parent_4","Path","closed_1","Clipping","endSlot","Vertices","weights","bonesArray","toFloatArray","readShort","tempColor1","tempColor2","timelineType","SLOT_ATTACHMENT","SLOT_COLOR","readCurve","SLOT_TWO_COLOR","BONE_ROTATE","BONE_TRANSLATE","BONE_SCALE","BONE_SHEAR","timelineScale","PATH_POSITION","PATH_SPACING","PATH_MIX","iii","nnn","weighted","deformLength","vn","drawOrderCount","offsetCount","unchanged","unchangedIndex","eventCount","event_4","CURVE_STEPPED","CURVE_BEZIER","Additive","Multiply","Screen","CURVE_LINEAR","getInt16","optimizePositive","byteCount","chars","charCount","fromCharCode","SkeletonBounds","boundingBoxes","polygons","polygonPool","updateAabb","freeAll","boundingBox","polygon","aabbCompute","aabbContainsPoint","aabbIntersectsSegment","aabbIntersectsSkeleton","bounds","containsPoint","containsPointPolygon","prevIndex","inside","vertexY","vertexX","intersectsSegment","intersectsSegmentPolygon","width12","height12","det1","y3","x4","y4","det2","width34","height34","det3","getPolygon","getWidth","getHeight","triangulator","Triangulator","clippingPolygon","clipOutput","clippedVertices","clippedTriangles","scratch","clipStart","clipAttachment","makeClockwise","clippingPolygons","decompose","triangulate","n_1","clipEndWithSlot","clipEnd","isClipping","clipTriangles","trianglesLength","originIndexOffset","originVertOffset","originUVSOffset","polygonsCount","vertexSize","xyOffset","u2","u3","clippedVerticesItems","clippedTrianglesItems","clipOutputLength","d0","d4","clipOutputCount","clipOutputItems","c0","clippingArea","originalOutput","clipped","clippingVertices","clippingVerticesLast","edgeX","edgeY","edgeX2","edgeY2","deltaX","inputVertices","inputVerticesLength","outputStart","inputX","inputY","inputX2","inputY2","side2","verticeslength","area","p1x","p2x","lastX","findEvent","eventDataName","event_5","findPathConstraintIndex","pathConstraintName","SkeletonJson","skeletonMap","boneMap","parent_5","parentName","getValue","transformModeFromString","slotMap","setFromString","blendModeFromString","ik","constraintMap","targetName","positionModeFromString","spacingModeFromString","rotateModeFromString","skinArr","skinMap","entryName","parent_6","eventMap","animationMap","parent_7","scaledVertices","timelineName","timelineMap","valueMap","mapPath","deformName","deformMap","verticesValue","drawOrderNode","draworder","drawOrderMap","offsetMap","event_6","toSinglePrecision","SkinEntry","addSkin","contained","getAttachments","copySkin","newLinkedMesh","dictionary","removeAttachment","slotAttachments","name_4","getAttachmentsForSlot","name_5","oldSkin","skinAttachment","getSkeleton","attachmentTime","setAttachmentTime","getAttachmentTime","getImage","filterFromString","TextureFilter","Nearest","MipMap","MipMapNearestNearest","MipMapLinearNearest","MipMapNearestLinear","MipMapLinearLinear","wrapFromString","TextureWrap","MirroredRepeat","ClampToEdge","TextureRegion","setWraps","uWrap","vWrap","atlasText","pages","regions","reader","TextureAtlasReader","tuple","page","readLine","TextureAtlasRegion","rotateValue","readValue","readTuple","TextureAtlasPage","colon","lastMatch","Vector2","applyRelativeLocal","applyAbsoluteLocal","applyRelativeWorld","applyAbsoluteWorld","tc","degRadReflect","modified","convexPolygons","convexPolygonsIndices","indicesArray","isConcaveArray","polygonIndicesPool","verticesArray","isConcave","previous","p3x","p3y","vx","vy","positiveArea","previousIndex","nextIndex","polygonIndices","fanBaseIndex","lastWinding","merged","winding1","winding","winding2","firstIndex","prevPrevX","prevPrevY","firstX","firstY","secondX","secondY","otherIndices","otherFirstIndex","otherSecondIndex","otherLastIndex","otherPoly","toInt","cbrt","randomTriangular","randomTriangularWith","Interpolation","applyInternal","Pow","power","PowOut","sourceStart","destStart","numElements","oldSize","SUPPORTS_TYPED_ARRAYS","newShortArray","fround","DebugUtils","logBones","instantiator","TimeKeeper","maxDelta","framesPerSecond","totalTime","WindowedMean","windowSize","addedValues","lastValue","mean","hasEnoughData","addValue","getMean","Attachment","nextID","worldVertices","v_1","skeletonBones","weight","copyTo","tempColor","textureWidth","textureHeight","getParentMesh","parentMesh","computeWorldPosition","computeWorldRotation","regionScaleX","regionScaleY","localX2","localY2","localXCos","localXSin","localYCos","localYSin","localX2Cos","localX2Sin","localY2Cos","localY2Sin","OX1","OY1","OX2","OY2","OX3","OY3","OX4","OY4","rendererObject","X1","Y1","C1R","C1G","C1B","C1A","U1","V1","X2","Y2","C2R","C2G","C2B","C2A","U2","V2","X3","Y3","C3R","C3G","C3B","C3A","U3","V3","X4","Y4","C4R","C4G","C4B","C4A","U4","V4","JitterEffect","jitterX","jitterY","SwirlEffect","radius","interpolation","centerX","centerY","radAngle","dist","277","MaxCacheTime","_indices","_boneInfoOffset","_vertexOffset","_indexOffset","_vfOffset","_preTexUrl","_preBlendMode","_segVCount","_segICount","_segOffset","_colorOffset","_preFinalColor","_preDarkColor","_perVertexSize","_perClipVertexSize","_vfCount","_indexCount","_tempr","_tempg","_tempb","_tempa","_finalColor32","_darkColor32","_finalColor","_darkColor","_quadTriangles","AnimationCache","_privateMode","_invalid","_enableCacheAttachedInfo","_frameIdx","_skeletonInfo","_tempSegments","_tempColors","_tempBoneInfos","invalidAllFrame","completeHandle","unbind","preAnimationCache","curAnimationCache","_needToUpdate","toFrameIdx","_updateFrame","updateAllFrame","uintVert","_traverseSkeleton","vfOffset","preSegOffset","preSegInfo","indexCount","vfCount","fillVertices","skeletonColor","attachmentColor","slotColor","fr","fg","fa","dr","dg","jj","isRegion","isMesh","isClip","boneInfo","slotIdx","_ii","_nn","_animationPool","removeSkeleton","animationsCache","aniKey","animationCache","poolKey","_animationCache","278","_skeletonJson","skeletonJsonStr","skeletonJson","_atlasText","createRegion","origSize","skelTex","SkeletonTexture","setRealTexture","updateRegionUV","createSpriteFrame","_atlasCache","_cloneId","ensureTexturesLoaded","caller","texsLen","loadedCount","loadedItem","quiet","_getAtlas","resData","_getTexture","names","_region","279","getRealTexture","280","VFOneColor","VFOneColorTexId","VFTwoColor","FLAG_BATCH","FLAG_TWO_COLOR","_handleVal","_slotColor","_boneColor","_originColor","_meshColor","_tempPos","_tempUv","_premultipliedAlpha","_multiplier","_slotRangeStart","_slotRangeEnd","_useTint","_useMulti","_debugSlots","_debugBones","_debugMesh","_nodeR","_nodeG","_nodeB","_nodeA","_vertexFloatCount","_vertexCount","_vertexFloatOffset","_inRange","_mustFlush","_m00","_m04","_m12","_m01","_m05","_m13","_g","_fr","_fg","_fb","_fa","_dr","_dg","_db","_da","_renderer","_needColor","_vertexEffect","_getSlotMaterial","useModel","materialCache","materialInfo","_handleColor","_spineColorToInt32","spineColor","SpineAssembler","packDynamicAtlasForSpine","_v2","_n2","_v3","_n3","realTimeTraverse","locSkeleton","graphics","worldMatm","lineTo","_ii2","_nn2","_ii3","_nn3","fillColor","_n4","circle","fill","cacheTraverse","uintbuf","frameVFOffset","frameIndexOffset","segVFCount","needBatch","calcTranslate","nowColor","maxVFOffset","segInfo","_ii4","_il","_ii5","_il2","frameColorOffset","_ii6","_il3","nodeColor","../../cocos2d/core/renderer/assembler","../../cocos2d/core/renderer/webgl/vertex-format","281","282","VertexEffectDelegate","_interpolation","_effectType","initJitter","initSwirlWithPow","initSwirlWithPowOut","getJitterVertexEffect","getSwirlVertexEffect","getVertexEffect","getEffectType","283","./cocos2d","./cocos2d/core/predefine","./extends","./package","./polyfill/array","./polyfill/array-buffer","./polyfill/misc","./polyfill/number","./polyfill/object","./polyfill/string","./polyfill/typescript","./predefine","284","TypedArray","285","286","LOG2E","Timer","_timerTable","287","288","ownKeys","getOwnPropertySymbols","289","searchString","290","__assign","__rest","propertyIsEnumerable","__decorate","decorators","Reflect","__param","paramIndex","decorator","__metadata","metadataKey","metadataValue","metadata","__awaiter","thisArg","_arguments","P","generator","adopt","fulfilled","rejected","__generator","_","sent","trys","ops","verb","throw","return","__exportStar","__createBinding","k2","__values","__read","__spread","__spreadArrays","jl","__await","__asyncGenerator","asyncIterator","settle","fulfill","__asyncDelegator","__asyncValues","__makeTemplateObject","cooked","__setModuleDefault","__importStar","mod","__importDefault","__classPrivateFieldGet","receiver","privateMap","__classPrivateFieldSet","291","defineMacro","defineDeprecatedMacroGetter","recommandedUsage","defined","WECHATGAMESUB","getSharedCanvas","WECHATGAME","getSystemInfoSync","QQPLAY","engineVersion"],"mappings":"CAWA,SAAAA,MAAAC,SAAAC,OAAAC;EACA,SAAAC,WAAAC,MAAAC;IACA,IAAAC,SAAAL,MAAAG;IACA,KAAAE,QAAA;MACA,IAAAC,aAAAP,QAAAI;MACA,KAAAG,YAEA;MAEA,IAAAC,UAAA;MACAF,SAAAL,MAAAG,QAAA;QAAAI,SAAAA;;MACAD,WAAA,GAAA,SAAAE;QACA,OAAAN,WAAAI,WAAA,GAAAE,MAAAA;SACAH,QAAAE;;IAEA,OAAAF,OAAAE;;EAEA,KAAA,IAAAE,IAAA,GAAAA,IAAAR,MAAAS,QAAAD,KAAAP,WAAAD,MAAAQ;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MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC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A;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,KAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,KAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MACAC,MAAA;MAC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Oo8C,eAAe6lG,SAASxgL,MAAM;QACjCsnC,KAAK,SAAAA;UACD,IAAIq4S;UACS,uBAAT3/U,OACA2/U,mBAAmB,+CAEL,oBAAT3/U,OACL2/U,mBAAmB,2CAEL,gBAAT3/U,SACL2/U,mBAAmB;UAEvBtlU,GAAGukB,OAAO,MAAM5+B,MAAM2/U;UACtB,OAAOx9K;;;;IAMvB,SAASy9K,QAAS5/U;MACd,OAAgC,oBAAlBwgL,QAAQxgL;;IAK1By/U,YAAY,YAAY;IAKpB36R;IACA07H,QAAQ17H,WAAWA;IACnB07H,QAAQpiI,SAASA;IACjBoiI,QAAQ39H,WAAWA;IACnB29H,QAAQriI,SAASA;IACjBqiI,QAAQ0oC,oBAAoBA;IAC5B1oC,QAAQn5E,iBAAiBA;IACzBm5E,QAAQh+H,qBAAqBA;IAC7Bg+H,QAAQ/9H,oBAAoBA;IAC5B+9H,QAAQvvI,YAAYA;IACpBuvI,QAAQr0H,aAAaA;IACrBq0H,QAAQljJ,UAAUA;IAClBkjJ,QAAQjiI,aAAaA;IACrBiiI,QAAQriI,SAASA;IAkBrB,IAAM0hS,mBAAmBD,QAAQ,SAAS/0F,GAAGi1F;IAC7C,IAAMC,gBAAgBH,QAAQ,UAAU/0F,GAAGm1F,qBAAqBn1F,GAAGi1F;IACnE,IAAMG,SAASL,QAAQ;IACvBF,4BAA4B,oBAAoBG;IAChDH,4BAA4B,iBAAiBK;IAC7CL,4BAA4B,aAAaO;IAErC7hS;IAkBJ,IAAM8hS,gBAAgB;IACtB1/J,QAAQ,iBAAiBnmK,GAAGgyC,iBAAiB6zR;KlSm90G3C;GAAK,IAAG,EAAC","file":"cocos2d-js.931db.js","sourcesContent":["\n// Based on https://github.com/substack/browser-pack/blob/master/prelude.js\n\n// modules are defined as an array\n// [ module function, map of requireuires ]\n//\n// map of requireuires is short require name -> numeric require\n//\n// anything defined in a previous bundle is accessed via the\n// orig method which is the requireuire for previous bundles\n\n(function outer (modules, cache, entry) {\n function newRequire(name, jumped){\n var module = cache[name];\n if(!module) {\n var moduleData = modules[name];\n if(!moduleData) {\n // this module is excluded from engine\n return undefined;\n }\n var exports = {};\n module = cache[name] = {exports: exports};\n moduleData[0](function(x){\n return newRequire(moduleData[1][x] || x);\n },module,exports);\n }\n return module.exports;\n }\n for(var i=0;i\n step:function (dt) {\n cc.logID(1006);\n },\n\n // Called once per frame. Time is the number of seconds of a frame interval.\n update:function (dt) {\n cc.logID(1007);\n },\n\n /**\n * !#en get the target.\n * !#zh 获取当前目标节点。\n * @method getTarget\n * @return {Node}\n */\n getTarget:function () {\n return this.target;\n },\n\n /**\n * !#en The action will modify the target properties.\n * !#zh 设置目标节点。\n * @method setTarget\n * @param {Node} target\n */\n setTarget:function (target) {\n this.target = target;\n },\n\n /**\n * !#en get the original target.\n * !#zh 获取原始目标节点。\n * @method getOriginalTarget\n * @return {Node}\n */\n getOriginalTarget:function () {\n return this.originalTarget;\n },\n\n // Set the original target, since target can be nil.\n // Is the target that were used to run the action.\n // Unless you are doing something complex, like cc.ActionManager, you should NOT call this method.\n setOriginalTarget:function (originalTarget) {\n this.originalTarget = originalTarget;\n },\n\n /**\n * !#en get tag number.\n * !#zh 获取用于识别动作的标签。\n * @method getTag\n * @return {Number}\n */\n getTag:function () {\n return this.tag;\n },\n\n /**\n * !#en set tag number.\n * !#zh 设置标签,用于识别动作。\n * @method setTag\n * @param {Number} tag\n */\n setTag:function (tag) {\n this.tag = tag;\n },\n\n // Currently JavaScript Bindigns (JSB), in some cases, needs to use retain and release. This is a bug in JSB,\n // and the ugly workaround is to use retain/release. So, these 2 methods were added to be compatible with JSB.\n // This is a hack, and should be removed once JSB fixes the retain/release bug.\n retain:function () {\n },\n\n // Currently JavaScript Bindigns (JSB), in some cases, needs to use retain and release. This is a bug in JSB,\n // and the ugly workaround is to use retain/release. So, these 2 methods were added to be compatible with JSB.\n // This is a hack, and should be removed once JSB fixes the retain/release bug.\n release:function () {\n }\n});\n\n/**\n * !#en Default Action tag.\n * !#zh 默认动作标签。\n * @property TAG_INVALID\n * @constant\n * @static\n * @type {Number}\n * @default -1\n */\ncc.Action.TAG_INVALID = -1;\n\n\n/**\n * !#en\n * Base class actions that do have a finite time duration.
\n * Possible actions:
\n * - An action with a duration of 0 seconds.
\n * - An action with a duration of 35.5 seconds.\n *\n * Infinite time actions are valid\n * !#zh 有限时间动作,这种动作拥有时长 duration 属性。\n * @class FiniteTimeAction\n * @extends Action\n */\ncc.FiniteTimeAction = cc.Class({\n name: 'cc.FiniteTimeAction',\n extends: cc.Action,\n\n ctor:function () {\n //! duration in seconds\n this._duration = 0;\n },\n\n /**\n * !#en get duration of the action. (seconds).\n * !#zh 获取动作以秒为单位的持续时间。\n * @method getDuration\n * @return {Number}\n */\n getDuration:function () {\n return this._duration * (this._timesForRepeat || 1);\n },\n\n /**\n * !#en set duration of the action. (seconds).\n * !#zh 设置动作以秒为单位的持续时间。\n * @method setDuration\n * @param {Number} duration\n */\n setDuration:function (duration) {\n this._duration = duration;\n },\n\n /**\n * !#en\n * Returns a reversed action.
\n * For example:
\n * - The action will be x coordinates of 0 move to 100.
\n * - The reversed action will be x of 100 move to 0.\n * - Will be rewritten\n * !#zh 返回一个新的动作,执行与原动作完全相反的动作。\n * @method reverse\n * @return {Null}\n */\n reverse:function () {\n cc.logID(1008);\n return null;\n },\n\n /**\n * !#en\n * to copy object with deep copy.\n * returns a clone of action.\n * !#zh 返回一个克隆的动作。\n * @method clone\n * @return {FiniteTimeAction}\n */\n clone:function () {\n return new cc.FiniteTimeAction();\n }\n});\n\n/**\n * @module cc\n */\n\n/*\n * Changes the speed of an action, making it take longer (speed > 1)\n * or less (speed < 1) time.
\n * Useful to simulate 'slow motion' or 'fast forward' effect.\n *\n * @warning This action can't be Sequenceable because it is not an cc.IntervalAction\n * @class Speed\n * @extends Action\n *\n * @param {ActionInterval} action\n * @param {Number} speed\n */\ncc.Speed = cc.Class({\n name: 'cc.Speed',\n extends: cc.Action,\n\n ctor:function (action, speed) {\n this._speed = 0;\n this._innerAction = null;\n\n\t\taction && this.initWithAction(action, speed);\n },\n\n /*\n * Gets the current running speed.
\n * Will get a percentage number, compared to the original speed.\n *\n * @method getSpeed\n * @return {Number}\n */\n getSpeed:function () {\n return this._speed;\n },\n\n /*\n * alter the speed of the inner function in runtime.\n * @method setSpeed\n * @param {Number} speed\n */\n setSpeed:function (speed) {\n this._speed = speed;\n },\n\n /*\n * initializes the action.\n * @method initWithAction\n * @param {ActionInterval} action\n * @param {Number} speed\n * @return {Boolean}\n */\n initWithAction:function (action, speed) {\n if (!action) {\n cc.errorID(1021);\n return false;\n }\n\n this._innerAction = action;\n this._speed = speed;\n return true;\n },\n\n clone:function () {\n var action = new cc.Speed();\n action.initWithAction(this._innerAction.clone(), this._speed);\n return action;\n },\n\n startWithTarget:function (target) {\n cc.Action.prototype.startWithTarget.call(this, target);\n this._innerAction.startWithTarget(target);\n },\n\n stop:function () {\n this._innerAction.stop();\n cc.Action.prototype.stop.call(this);\n },\n\n step:function (dt) {\n this._innerAction.step(dt * this._speed);\n },\n\n isDone:function () {\n return this._innerAction.isDone();\n },\n\n reverse:function () {\n return new cc.Speed(this._innerAction.reverse(), this._speed);\n },\n\n /*\n * Set inner Action.\n * @method setInnerAction\n * @param {ActionInterval} action\n */\n setInnerAction:function (action) {\n if (this._innerAction !== action) {\n this._innerAction = action;\n }\n },\n\n /*\n * Get inner Action.\n * @method getInnerAction\n * @return {ActionInterval}\n */\n getInnerAction:function () {\n return this._innerAction;\n }\n});\n\n/**\n * @module cc\n */\n\n/**\n * !#en\n * Creates the speed action which changes the speed of an action, making it take longer (speed > 1)\n * or less (speed < 1) time.
\n * Useful to simulate 'slow motion' or 'fast forward' effect.\n * !#zh 修改目标动作的速率。\n * @warning This action can't be Sequenceable because it is not an cc.IntervalAction\n *\n * @method speed\n * @param {ActionInterval} action\n * @param {Number} speed\n * @return {Action}\n * @example\n * // change the target action speed;\n * var action = cc.scaleTo(0.2, 1, 0.6);\n * var newAction = cc.speed(action, 0.5);\n */\ncc.speed = function (action, speed) {\n return new cc.Speed(action, speed);\n};\n\n/*\n * cc.Follow is a follow action which makes its target follows another node.\n *\n * @example\n * //example\n * //Instead of using cc.Camera as a \"follower\", use this action instead.\n * layer.runAction(cc.follow(hero));\n *\n * @property {Number} leftBoundary - world leftBoundary.\n * @property {Number} rightBoundary - world rightBoundary.\n * @property {Number} topBoundary - world topBoundary.\n * @property {Number} bottomBoundary - world bottomBoundary.\n *\n * @param {cc.Node} followedNode\n * @param {Rect} rect\n * @example\n * // creates the action with a set boundary\n * var followAction = new cc.Follow(node, cc.rect(0, 0, s.width * 2 - 100, s.height));\n * this.runAction(followAction);\n *\n * // creates the action with no boundary set\n * var followAction = new cc.Follow(node);\n * this.runAction(followAction);\n *\n * @class\n * @extends Action\n */\ncc.Follow = cc.Class({\n name: 'cc.Follow',\n extends: cc.Action,\n\n\t/*\n * Constructor function, override it to extend the construction behavior, remember to call \"this._super()\" in the extended \"ctor\" function.
\n\t * creates the action with a set boundary.
\n\t * creates the action with no boundary set.\n * @param {cc.Node} followedNode\n * @param {Rect} rect\n\t */\n ctor:function (followedNode, rect) {\n // node to follow\n this._followedNode = null;\n // whether camera should be limited to certain area\n this._boundarySet = false;\n // if screen size is bigger than the boundary - update not needed\n this._boundaryFullyCovered = false;\n // fast access to the screen dimensions\n this._halfScreenSize = null;\n this._fullScreenSize = null;\n\n this.leftBoundary = 0.0;\n this.rightBoundary = 0.0;\n this.topBoundary = 0.0;\n this.bottomBoundary = 0.0;\n this._worldRect = cc.rect(0, 0, 0, 0);\n\n\t\tif(followedNode)\n\t\t\trect ? this.initWithTarget(followedNode, rect)\n\t\t\t\t : this.initWithTarget(followedNode);\n },\n\n clone:function () {\n var action = new cc.Follow();\n var locRect = this._worldRect;\n var rect = new cc.Rect(locRect.x, locRect.y, locRect.width, locRect.height);\n action.initWithTarget(this._followedNode, rect);\n return action;\n },\n\n /*\n * Get whether camera should be limited to certain area.\n *\n * @return {Boolean}\n */\n isBoundarySet:function () {\n return this._boundarySet;\n },\n\n /*\n * alter behavior - turn on/off boundary.\n *\n * @param {Boolean} value\n */\n setBoudarySet:function (value) {\n this._boundarySet = value;\n },\n\n /*\n * initializes the action with a set boundary.\n *\n * @param {cc.Node} followedNode\n * @param {Rect} [rect=]\n * @return {Boolean}\n */\n initWithTarget:function (followedNode, rect) {\n if (!followedNode) {\n cc.errorID(1022);\n return false;\n }\n\n var _this = this;\n rect = rect || cc.rect(0, 0, 0, 0);\n _this._followedNode = followedNode;\n _this._worldRect = rect;\n\n _this._boundarySet = !(rect.width === 0 && rect.height === 0);\n\n _this._boundaryFullyCovered = false;\n\n var winSize = cc.winSize;\n _this._fullScreenSize = cc.v2(winSize.width, winSize.height);\n _this._halfScreenSize = _this._fullScreenSize.mul(0.5);\n\n if (_this._boundarySet) {\n _this.leftBoundary = -((rect.x + rect.width) - _this._fullScreenSize.x);\n _this.rightBoundary = -rect.x;\n _this.topBoundary = -rect.y;\n _this.bottomBoundary = -((rect.y + rect.height) - _this._fullScreenSize.y);\n\n if (_this.rightBoundary < _this.leftBoundary) {\n // screen width is larger than world's boundary width\n //set both in the middle of the world\n _this.rightBoundary = _this.leftBoundary = (_this.leftBoundary + _this.rightBoundary) / 2;\n }\n if (_this.topBoundary < _this.bottomBoundary) {\n // screen width is larger than world's boundary width\n //set both in the middle of the world\n _this.topBoundary = _this.bottomBoundary = (_this.topBoundary + _this.bottomBoundary) / 2;\n }\n\n if ((_this.topBoundary === _this.bottomBoundary) && (_this.leftBoundary === _this.rightBoundary))\n _this._boundaryFullyCovered = true;\n }\n return true;\n },\n\n step:function (dt) {\n var targetWorldPos = this.target.convertToWorldSpaceAR(cc.Vec2.ZERO);\n var followedWorldPos = this._followedNode.convertToWorldSpaceAR(cc.Vec2.ZERO);\n // compute the offset between followed and target node\n var delta = targetWorldPos.sub(followedWorldPos);\n var tempPos = this.target.parent.convertToNodeSpaceAR(delta.add(this._halfScreenSize));\n\n if (this._boundarySet) {\n // whole map fits inside a single screen, no need to modify the position - unless map boundaries are increased\n if (this._boundaryFullyCovered)\n return;\n\n\t this.target.setPosition(misc.clampf(tempPos.x, this.leftBoundary, this.rightBoundary), misc.clampf(tempPos.y, this.bottomBoundary, this.topBoundary));\n } else {\n this.target.setPosition(tempPos.x, tempPos.y);\n }\n },\n\n isDone:function () {\n return ( !this._followedNode.activeInHierarchy );\n },\n\n stop:function () {\n this.target = null;\n cc.Action.prototype.stop.call(this);\n }\n});\n\n/**\n * !#en Create a follow action which makes its target follows another node.\n * !#zh 追踪目标节点的位置。\n * @method follow\n * @param {Node} followedNode\n * @param {Rect} rect\n * @return {Action|Null} returns the cc.Follow object on success\n * @example\n * // example\n * // creates the action with a set boundary\n * var followAction = cc.follow(targetNode, cc.rect(0, 0, screenWidth * 2 - 100, screenHeight));\n * node.runAction(followAction);\n *\n * // creates the action with no boundary set\n * var followAction = cc.follow(targetNode);\n * node.runAction(followAction);\n */\ncc.follow = function (followedNode, rect) {\n return new cc.Follow(followedNode, rect);\n};\n","/****************************************************************************\n Copyright (c) 2008 Radu Gruian\n Copyright (c) 2008-2010 Ricardo Quesada\n Copyright (c) 2011 Vit Valentin\n Copyright (c) 2011-2012 cocos2d-x.org\n Copyright (c) 2013-2016 Chukong Technologies Inc.\n Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.\n\n http://www.cocos2d-x.org\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in\n all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n\n Orignal code by Radu Gruian: http://www.codeproject.com/Articles/30838/Overhauser-Catmull-Rom-Splines-for-Camera-Animatio.So\n\n Adapted to cocos2d-x by Vit Valentin\n\n Adapted from cocos2d-x to cocos2d-iphone by Ricardo Quesada\n ****************************************************************************/\n\n/**\n * @module cc\n */\n\n/*\n * Returns the Cardinal Spline position for a given set of control points, tension and time.
\n * CatmullRom Spline formula.
\n * s(-ttt + 2tt - t)P1 + s(-ttt + tt)P2 + (2ttt - 3tt + 1)P2 + s(ttt - 2tt + t)P3 + (-2ttt + 3tt)P3 + s(ttt - tt)P4\n *\n * @method cardinalSplineAt\n * @param {Vec2} p0\n * @param {Vec2} p1\n * @param {Vec2} p2\n * @param {Vec2} p3\n * @param {Number} tension\n * @param {Number} t\n * @return {Vec2}\n */\nfunction cardinalSplineAt (p0, p1, p2, p3, tension, t) {\n var t2 = t * t;\n var t3 = t2 * t;\n\n /*\n * Formula: s(-ttt + 2tt - t)P1 + s(-ttt + tt)P2 + (2ttt - 3tt + 1)P2 + s(ttt - 2tt + t)P3 + (-2ttt + 3tt)P3 + s(ttt - tt)P4\n */\n var s = (1 - tension) / 2;\n\n var b1 = s * ((-t3 + (2 * t2)) - t); // s(-t3 + 2 t2 - t)P1\n var b2 = s * (-t3 + t2) + (2 * t3 - 3 * t2 + 1); // s(-t3 + t2)P2 + (2 t3 - 3 t2 + 1)P2\n var b3 = s * (t3 - 2 * t2 + t) + (-2 * t3 + 3 * t2); // s(t3 - 2 t2 + t)P3 + (-2 t3 + 3 t2)P3\n var b4 = s * (t3 - t2); // s(t3 - t2)P4\n\n var x = (p0.x * b1 + p1.x * b2 + p2.x * b3 + p3.x * b4);\n var y = (p0.y * b1 + p1.y * b2 + p2.y * b3 + p3.y * b4);\n return cc.v2(x, y);\n};\n\n/*\n * returns a point from the array\n * @method getControlPointAt\n * @param {Array} controlPoints\n * @param {Number} pos\n * @return {Array}\n */\nfunction getControlPointAt (controlPoints, pos) {\n var p = Math.min(controlPoints.length - 1, Math.max(pos, 0));\n return controlPoints[p];\n};\n\nfunction reverseControlPoints (controlPoints) {\n var newArray = [];\n for (var i = controlPoints.length - 1; i >= 0; i--) {\n newArray.push(cc.v2(controlPoints[i].x, controlPoints[i].y));\n }\n return newArray;\n}\n\nfunction cloneControlPoints (controlPoints) {\n var newArray = [];\n for (var i = 0; i < controlPoints.length; i++)\n newArray.push(cc.v2(controlPoints[i].x, controlPoints[i].y));\n return newArray;\n}\n\n\n/*\n * Cardinal Spline path. http://en.wikipedia.org/wiki/Cubic_Hermite_spline#Cardinal_spline\n * Absolute coordinates.\n *\n * @class CardinalSplineTo\n * @extends ActionInterval\n *\n * @param {Number} duration\n * @param {Array} points array of control points\n * @param {Number} tension\n *\n * @example\n * //create a cc.CardinalSplineTo\n * var action1 = cc.cardinalSplineTo(3, array, 0);\n */\ncc.CardinalSplineTo = cc.Class({\n name: 'cc.CardinalSplineTo',\n extends: cc.ActionInterval,\n\n ctor: function (duration, points, tension) {\n /* Array of control points */\n this._points = [];\n this._deltaT = 0;\n this._tension = 0;\n this._previousPosition = null;\n this._accumulatedDiff = null;\n tension !== undefined && cc.CardinalSplineTo.prototype.initWithDuration.call(this, duration, points, tension);\n },\n\n initWithDuration:function (duration, points, tension) {\n if (!points || points.length === 0) {\n cc.errorID(1024);\n return false;\n }\n\n if (cc.ActionInterval.prototype.initWithDuration.call(this, duration)) {\n this.setPoints(points);\n this._tension = tension;\n return true;\n }\n return false;\n },\n\n clone:function () {\n var action = new cc.CardinalSplineTo();\n action.initWithDuration(this._duration, cloneControlPoints(this._points), this._tension);\n return action;\n },\n\n startWithTarget:function (target) {\n cc.ActionInterval.prototype.startWithTarget.call(this, target);\n // Issue #1441 from cocos2d-iphone\n this._deltaT = 1 / (this._points.length - 1);\n this._previousPosition = cc.v2(this.target.x, this.target.y);\n this._accumulatedDiff = cc.v2(0, 0);\n },\n\n update:function (dt) {\n dt = this._computeEaseTime(dt);\n var p, lt;\n var ps = this._points;\n // eg.\n // p..p..p..p..p..p..p\n // 1..2..3..4..5..6..7\n // want p to be 1, 2, 3, 4, 5, 6\n if (dt === 1) {\n p = ps.length - 1;\n lt = 1;\n } else {\n var locDT = this._deltaT;\n p = 0 | (dt / locDT);\n lt = (dt - locDT * p) / locDT;\n }\n\n var newPos = cardinalSplineAt(\n getControlPointAt(ps, p - 1),\n getControlPointAt(ps, p - 0),\n getControlPointAt(ps, p + 1),\n getControlPointAt(ps, p + 2),\n this._tension, lt);\n\n if (cc.macro.ENABLE_STACKABLE_ACTIONS) {\n var tempX, tempY;\n tempX = this.target.x - this._previousPosition.x;\n tempY = this.target.y - this._previousPosition.y;\n if (tempX !== 0 || tempY !== 0) {\n var locAccDiff = this._accumulatedDiff;\n tempX = locAccDiff.x + tempX;\n tempY = locAccDiff.y + tempY;\n locAccDiff.x = tempX;\n locAccDiff.y = tempY;\n newPos.x += tempX;\n newPos.y += tempY;\n }\n }\n this.updatePosition(newPos);\n },\n\n reverse:function () {\n var reversePoints = reverseControlPoints(this._points);\n return cc.cardinalSplineTo(this._duration, reversePoints, this._tension);\n },\n\n /*\n * update position of target\n * @method updatePosition\n * @param {Vec2} newPos\n */\n updatePosition:function (newPos) {\n this.target.setPosition(newPos);\n this._previousPosition = newPos;\n },\n\n /*\n * Points getter\n * @method getPoints\n * @return {Array}\n */\n getPoints:function () {\n return this._points;\n },\n\n /**\n * Points setter\n * @method setPoints\n * @param {Array} points\n */\n setPoints:function (points) {\n this._points = points;\n }\n});\n\n/**\n * !#en Creates an action with a Cardinal Spline array of points and tension.\n * !#zh 按基数样条曲线轨迹移动到目标位置。\n * @method cardinalSplineTo\n * @param {Number} duration\n * @param {Array} points array of control points\n * @param {Number} tension\n * @return {ActionInterval}\n *\n * @example\n * //create a cc.CardinalSplineTo\n * var action1 = cc.cardinalSplineTo(3, array, 0);\n */\ncc.cardinalSplineTo = function (duration, points, tension) {\n return new cc.CardinalSplineTo(duration, points, tension);\n};\n\n/*\n * Cardinal Spline path. http://en.wikipedia.org/wiki/Cubic_Hermite_spline#Cardinal_spline\n * Relative coordinates.\n *\n * @class CardinalSplineBy\n * @extends CardinalSplineTo\n *\n * @param {Number} duration\n * @param {Array} points\n * @param {Number} tension\n *\n * @example\n * //create a cc.CardinalSplineBy\n * var action1 = cc.cardinalSplineBy(3, array, 0);\n */\ncc.CardinalSplineBy = cc.Class({\n name: 'cc.CardinalSplineBy',\n extends: cc.CardinalSplineTo,\n\n ctor:function (duration, points, tension) {\n this._startPosition = cc.v2(0, 0);\n tension !== undefined && this.initWithDuration(duration, points, tension);\n },\n\n startWithTarget:function (target) {\n cc.CardinalSplineTo.prototype.startWithTarget.call(this, target);\n this._startPosition.x = target.x;\n this._startPosition.y = target.y;\n },\n\n reverse:function () {\n var copyConfig = this._points.slice();\n var current;\n //\n // convert \"absolutes\" to \"diffs\"\n //\n var p = copyConfig[0];\n for (var i = 1; i < copyConfig.length; ++i) {\n current = copyConfig[i];\n copyConfig[i] = current.sub(p);\n p = current;\n }\n\n // convert to \"diffs\" to \"reverse absolute\"\n var reverseArray = reverseControlPoints(copyConfig);\n\n // 1st element (which should be 0,0) should be here too\n p = reverseArray[ reverseArray.length - 1 ];\n reverseArray.pop();\n\n p.x = -p.x;\n p.y = -p.y;\n\n reverseArray.unshift(p);\n for (var i = 1; i < reverseArray.length; ++i) {\n current = reverseArray[i];\n current.x = -current.x;\n current.y = -current.y;\n current.x += p.x;\n current.y += p.y;\n reverseArray[i] = current;\n p = current;\n }\n return cc.cardinalSplineBy(this._duration, reverseArray, this._tension);\n },\n\n /**\n * update position of target\n * @method updatePosition\n * @param {Vec2} newPos\n */\n updatePosition:function (newPos) {\n var pos = this._startPosition;\n var posX = newPos.x + pos.x;\n var posY = newPos.y + pos.y;\n this._previousPosition.x = posX;\n this._previousPosition.y = posY;\n this.target.setPosition(posX, posY);\n },\n\n clone:function () {\n var a = new cc.CardinalSplineBy();\n a.initWithDuration(this._duration, cloneControlPoints(this._points), this._tension);\n return a;\n }\n});\n\n/**\n * !#en Creates an action with a Cardinal Spline array of points and tension.\n * !#zh 按基数样条曲线轨迹移动指定的距离。\n * @method cardinalSplineBy\n * @param {Number} duration\n * @param {Array} points\n * @param {Number} tension\n *\n * @return {ActionInterval}\n */\ncc.cardinalSplineBy = function (duration, points, tension) {\n return new cc.CardinalSplineBy(duration, points, tension);\n};\n\n/*\n * An action that moves the target with a CatmullRom curve to a destination point.
\n * A Catmull Rom is a Cardinal Spline with a tension of 0.5.
\n * http://en.wikipedia.org/wiki/Cubic_Hermite_spline#Catmull.E2.80.93Rom_spline\n * Absolute coordinates.\n *\n * @class CatmullRomTo\n * @extends CardinalSplineTo\n *\n * @param {Number} dt\n * @param {Array} points\n *\n * @example\n * var action1 = cc.catmullRomTo(3, array);\n */\ncc.CatmullRomTo = cc.Class({\n name: 'cc.CatmullRomTo',\n extends: cc.CardinalSplineTo,\n\n ctor: function(dt, points) {\n points && this.initWithDuration(dt, points);\n },\n\n initWithDuration:function (dt, points) {\n return cc.CardinalSplineTo.prototype.initWithDuration.call(this, dt, points, 0.5);\n },\n\n clone:function () {\n var action = new cc.CatmullRomTo();\n action.initWithDuration(this._duration, cloneControlPoints(this._points));\n return action;\n }\n});\n\n/**\n * !#en Creates an action with a Cardinal Spline array of points and tension.\n * !#zh 按 Catmull Rom 样条曲线轨迹移动到目标位置。\n * @method catmullRomTo\n * @param {Number} dt\n * @param {Array} points\n * @return {ActionInterval}\n *\n * @example\n * var action1 = cc.catmullRomTo(3, array);\n */\ncc.catmullRomTo = function (dt, points) {\n return new cc.CatmullRomTo(dt, points);\n};\n\n/*\n * An action that moves the target with a CatmullRom curve by a certain distance.
\n * A Catmull Rom is a Cardinal Spline with a tension of 0.5.
\n * http://en.wikipedia.org/wiki/Cubic_Hermite_spline#Catmull.E2.80.93Rom_spline\n * Relative coordinates.\n *\n * @class CatmullRomBy\n * @extends CardinalSplineBy\n *\n * @param {Number} dt\n * @param {Array} points\n *\n * @example\n * var action1 = cc.catmullRomBy(3, array);\n */\ncc.CatmullRomBy = cc.Class({\n name: 'cc.CatmullRomBy',\n extends: cc.CardinalSplineBy,\n\n ctor: function(dt, points) {\n points && this.initWithDuration(dt, points);\n },\n\n initWithDuration:function (dt, points) {\n return cc.CardinalSplineTo.prototype.initWithDuration.call(this, dt, points, 0.5);\n },\n\n clone:function () {\n var action = new cc.CatmullRomBy();\n action.initWithDuration(this._duration, cloneControlPoints(this._points));\n return action;\n }\n});\n\n/**\n * !#en Creates an action with a Cardinal Spline array of points and tension.\n * !#zh 按 Catmull Rom 样条曲线轨迹移动指定的距离。\n * @method catmullRomBy\n * @param {Number} dt\n * @param {Array} points\n * @return {ActionInterval}\n * @example\n * var action1 = cc.catmullRomBy(3, array);\n */\ncc.catmullRomBy = function (dt, points) {\n return new cc.CatmullRomBy(dt, points);\n};\n","/****************************************************************************\n Copyright (c) 2008-2010 Ricardo Quesada\n Copyright (c) 2011-2012 cocos2d-x.org\n Copyright (c) 2013-2016 Chukong Technologies Inc.\n Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.\n\n http://www.cocos2d-x.org\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in\n all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n\n/**\n * @module cc\n */\n\n/**\n * !#en\n * Creates the action easing object with the rate parameter.
\n * From slow to fast.\n * !#zh 创建 easeIn 缓动对象,由慢到快。\n * @method easeIn\n * @param {Number} rate\n * @return {Object}\n * @example\n * action.easing(cc.easeIn(3.0));\n */\ncc.easeIn = function (rate) {\n return {\n _rate: rate,\n easing: function (dt) {\n return Math.pow(dt, this._rate);\n },\n reverse: function(){\n return cc.easeIn(1 / this._rate);\n }\n };\n};\n\n/**\n * !#en\n * Creates the action easing object with the rate parameter.
\n * From fast to slow.\n * !#zh 创建 easeOut 缓动对象,由快到慢。\n * @method easeOut\n * @param {Number} rate\n * @return {Object}\n * @example\n * action.easing(cc.easeOut(3.0));\n */\ncc.easeOut = function (rate) {\n return {\n _rate: rate,\n easing: function (dt) {\n return Math.pow(dt, 1 / this._rate);\n },\n reverse: function(){\n return cc.easeOut(1 / this._rate);\n }\n };\n};\n\n/**\n * !#en\n * Creates the action easing object with the rate parameter.
\n * Slow to fast then to slow.\n * !#zh 创建 easeInOut 缓动对象,慢到快,然后慢。\n * @method easeInOut\n * @param {Number} rate\n * @return {Object}\n *\n * @example\n * action.easing(cc.easeInOut(3.0));\n */\ncc.easeInOut = function (rate) {\n return {\n _rate: rate,\n easing: function (dt) {\n dt *= 2;\n if (dt < 1)\n return 0.5 * Math.pow(dt, this._rate);\n else\n return 1.0 - 0.5 * Math.pow(2 - dt, this._rate);\n },\n reverse: function(){\n return cc.easeInOut(this._rate);\n }\n };\n};\n\n/**\n * !#en\n * Creates the action easing object with the rate parameter.
\n * Reference easeInExpo:
\n * http://www.zhihu.com/question/21981571/answer/19925418\n * !#zh\n * 创建 easeExponentialIn 缓动对象。
\n * EaseExponentialIn 是按指数函数缓动进入的动作。
\n * 参考 easeInExpo:http://www.zhihu.com/question/21981571/answer/19925418\n * @method easeExponentialIn\n * @return {Object}\n * @example\n * action.easing(cc.easeExponentialIn());\n */\nvar _easeExponentialInObj = {\n easing: function(dt){\n return dt === 0 ? 0 : Math.pow(2, 10 * (dt - 1));\n },\n reverse: function(){\n return _easeExponentialOutObj;\n }\n};\ncc.easeExponentialIn = function(){\n return _easeExponentialInObj;\n};\n\n/**\n * !#en\n * Creates the action easing object.
\n * Reference easeOutExpo:
\n * http://www.zhihu.com/question/21981571/answer/19925418\n * !#zh\n * 创建 easeExponentialOut 缓动对象。
\n * EaseExponentialOut 是按指数函数缓动退出的动作。
\n * 参考 easeOutExpo:http://www.zhihu.com/question/21981571/answer/19925418\n * @method easeExponentialOut\n * @return {Object}\n * @example\n * action.easing(cc.easeExponentialOut());\n */\nvar _easeExponentialOutObj = {\n easing: function(dt){\n return dt === 1 ? 1 : (-(Math.pow(2, -10 * dt)) + 1);\n },\n reverse: function(){\n return _easeExponentialInObj;\n }\n};\ncc.easeExponentialOut = function(){\n return _easeExponentialOutObj;\n};\n\n/**\n * !#en\n * Creates an EaseExponentialInOut action easing object.
\n * Reference easeInOutExpo:
\n * http://www.zhihu.com/question/21981571/answer/19925418\n * !#zh\n * 创建 easeExponentialInOut 缓动对象。
\n * EaseExponentialInOut 是按指数函数缓动进入并退出的动作。
\n * 参考 easeInOutExpo:http://www.zhihu.com/question/21981571/answer/19925418\n * @method easeExponentialInOut\n * @return {Object}\n * @example\n * action.easing(cc.easeExponentialInOut());\n */\nvar _easeExponentialInOutObj = {\n easing: function(dt){\n if( dt !== 1 && dt !== 0) {\n dt *= 2;\n if (dt < 1)\n return 0.5 * Math.pow(2, 10 * (dt - 1));\n else\n return 0.5 * (-Math.pow(2, -10 * (dt - 1)) + 2);\n }\n return dt;\n },\n reverse: function(){\n return _easeExponentialInOutObj;\n }\n};\ncc.easeExponentialInOut = function(){\n return _easeExponentialInOutObj;\n};\n\n/**\n * !#en\n * Creates an EaseSineIn action.
\n * Reference easeInSine:
\n * http://www.zhihu.com/question/21981571/answer/19925418\n * !#zh\n * 创建 EaseSineIn 缓动对象。
\n * EaseSineIn 是按正弦函数缓动进入的动作。
\n * 参考 easeInSine:http://www.zhihu.com/question/21981571/answer/19925418\n * @method easeSineIn\n * @return {Object}\n * @example\n * action.easing(cc.easeSineIn());\n */\nvar _easeSineInObj = {\n easing: function(dt){\n return (dt===0 || dt===1) ? dt : -1 * Math.cos(dt * Math.PI / 2) + 1;\n },\n reverse: function(){\n return _easeSineOutObj;\n }\n};\ncc.easeSineIn = function(){\n return _easeSineInObj;\n};\n\n/**\n * !#en\n * Creates an EaseSineOut action easing object.
\n * Reference easeOutSine:
\n * http://www.zhihu.com/question/21981571/answer/19925418\n * !#zh\n * 创建 EaseSineOut 缓动对象。
\n * EaseSineIn 是按正弦函数缓动退出的动作。
\n * 参考 easeOutSine:http://www.zhihu.com/question/21981571/answer/19925418\n * @method easeSineOut\n * @return {Object}\n * @example\n * action.easing(cc.easeSineOut());\n */\nvar _easeSineOutObj = {\n easing: function(dt){\n return (dt===0 || dt===1) ? dt : Math.sin(dt * Math.PI / 2);\n },\n reverse: function(){\n return _easeSineInObj;\n }\n};\ncc.easeSineOut = function(){\n return _easeSineOutObj;\n};\n\n/**\n * !#en\n * Creates the action easing object.
\n * Reference easeInOutSine:
\n * http://www.zhihu.com/question/21981571/answer/19925418\n * !#zh\n * 创建 easeSineInOut 缓动对象。
\n * EaseSineIn 是按正弦函数缓动进入并退出的动作。
\n * 参考 easeInOutSine:http://www.zhihu.com/question/21981571/answer/19925418\n * @method easeSineInOut\n * @return {Object}\n * @example\n * action.easing(cc.easeSineInOut());\n */\nvar _easeSineInOutObj = {\n easing: function(dt){\n return (dt === 0 || dt === 1) ? dt : -0.5 * (Math.cos(Math.PI * dt) - 1);\n },\n reverse: function(){\n return _easeSineInOutObj;\n }\n};\ncc.easeSineInOut = function(){\n return _easeSineInOutObj;\n};\n\n/**\n * @module cc\n */\n\n/**\n * !#en\n * Creates the action easing object with the period in radians (default is 0.3).
\n * Reference easeInElastic:
\n * http://www.zhihu.com/question/21981571/answer/19925418\n * !#zh\n * 创建 easeElasticIn 缓动对象。
\n * EaseElasticIn 是按弹性曲线缓动进入的动作。
\n * 参数 easeInElastic:http://www.zhihu.com/question/21981571/answer/19925418\n * @method easeElasticIn\n * @param {Number} period\n * @return {Object}\n * @example\n * // example\n * action.easing(cc.easeElasticIn(3.0));\n */\n//default ease elastic in object (period = 0.3)\nvar _easeElasticInObj = {\n easing:function(dt){\n if (dt === 0 || dt === 1)\n return dt;\n dt = dt - 1;\n return -Math.pow(2, 10 * dt) * Math.sin((dt - (0.3 / 4)) * Math.PI * 2 / 0.3);\n },\n reverse:function(){\n return _easeElasticOutObj;\n }\n };\ncc.easeElasticIn = function (period) {\n if(period && period !== 0.3){\n return {\n _period: period,\n easing: function (dt) {\n if (dt === 0 || dt === 1)\n return dt;\n dt = dt - 1;\n return -Math.pow(2, 10 * dt) * Math.sin((dt - (this._period / 4)) * Math.PI * 2 / this._period);\n },\n reverse:function () {\n return cc.easeElasticOut(this._period);\n }\n };\n }\n return _easeElasticInObj;\n};\n\n/**\n * !#en\n * Creates the action easing object with the period in radians (default is 0.3).
\n * Reference easeOutElastic:
\n * http://www.zhihu.com/question/21981571/answer/19925418\n * !#zh\n * 创建 easeElasticOut 缓动对象。
\n * EaseElasticOut 是按弹性曲线缓动退出的动作。
\n * 参考 easeOutElastic:http://www.zhihu.com/question/21981571/answer/19925418\n * @method easeElasticOut\n * @param {Number} period\n * @return {Object}\n * @example\n * // example\n * action.easing(cc.easeElasticOut(3.0));\n */\n//default ease elastic out object (period = 0.3)\nvar _easeElasticOutObj = {\n easing: function (dt) {\n return (dt === 0 || dt === 1) ? dt : Math.pow(2, -10 * dt) * Math.sin((dt - (0.3 / 4)) * Math.PI * 2 / 0.3) + 1;\n },\n reverse:function(){\n return _easeElasticInObj;\n }\n};\ncc.easeElasticOut = function (period) {\n if(period && period !== 0.3){\n return {\n _period: period,\n easing: function (dt) {\n return (dt === 0 || dt === 1) ? dt : Math.pow(2, -10 * dt) * Math.sin((dt - (this._period / 4)) * Math.PI * 2 / this._period) + 1;\n },\n reverse:function(){\n return cc.easeElasticIn(this._period);\n }\n };\n }\n return _easeElasticOutObj;\n};\n\n/**\n * !#en\n * Creates the action easing object with the period in radians (default is 0.3).
\n * Reference easeInOutElastic:
\n * http://www.zhihu.com/question/21981571/answer/19925418\n * !#zh\n * 创建 easeElasticInOut 缓动对象。
\n * EaseElasticInOut 是按弹性曲线缓动进入并退出的动作。
\n * 参考 easeInOutElastic:http://www.zhihu.com/question/21981571/answer/19925418\n * @method easeElasticInOut\n * @param {Number} period\n * @return {Object}\n * @example\n * // example\n * action.easing(cc.easeElasticInOut(3.0));\n */\ncc.easeElasticInOut = function (period) {\n period = period || 0.3;\n return {\n _period: period,\n easing: function (dt) {\n var newT = 0;\n var locPeriod = this._period;\n if (dt === 0 || dt === 1) {\n newT = dt;\n } else {\n dt = dt * 2;\n if (!locPeriod)\n locPeriod = this._period = 0.3 * 1.5;\n var s = locPeriod / 4;\n dt = dt - 1;\n if (dt < 0)\n newT = -0.5 * Math.pow(2, 10 * dt) * Math.sin((dt - s) * Math.PI * 2 / locPeriod);\n else\n newT = Math.pow(2, -10 * dt) * Math.sin((dt - s) * Math.PI * 2 / locPeriod) * 0.5 + 1;\n }\n return newT;\n },\n reverse: function(){\n return cc.easeElasticInOut(this._period);\n }\n };\n};\n\n/**\n * @module cc\n */\n\nfunction _bounceTime (time1) {\n if (time1 < 1 / 2.75) {\n return 7.5625 * time1 * time1;\n } else if (time1 < 2 / 2.75) {\n time1 -= 1.5 / 2.75;\n return 7.5625 * time1 * time1 + 0.75;\n } else if (time1 < 2.5 / 2.75) {\n time1 -= 2.25 / 2.75;\n return 7.5625 * time1 * time1 + 0.9375;\n }\n\n time1 -= 2.625 / 2.75;\n return 7.5625 * time1 * time1 + 0.984375;\n};\n\nvar _easeBounceInObj = {\n easing: function(dt){\n return 1 - _bounceTime(1 - dt);\n },\n reverse: function(){\n return _easeBounceOutObj;\n }\n};\n\n/**\n * !#en\n * Creates the action easing object.
\n * Eased bounce effect at the beginning.\n * !#zh\n * 创建 easeBounceIn 缓动对象。
\n * EaseBounceIn 是按弹跳动作缓动进入的动作。\n * @method easeBounceIn\n * @return {Object}\n * @example\n * // example\n * action.easing(cc.easeBounceIn());\n */\ncc.easeBounceIn = function(){\n return _easeBounceInObj;\n};\n\n/**\n * !#en\n * Creates the action easing object.
\n * Eased bounce effect at the ending.\n * !#zh\n * 创建 easeBounceOut 缓动对象。
\n * EaseBounceOut 是按弹跳动作缓动退出的动作。\n * @method easeBounceOut\n * @return {Object}\n * @example\n * // example\n * action.easing(cc.easeBounceOut());\n */\nvar _easeBounceOutObj = {\n easing: function(dt){\n return _bounceTime(dt);\n },\n reverse:function () {\n return _easeBounceInObj;\n }\n};\ncc.easeBounceOut = function(){\n return _easeBounceOutObj;\n};\n\n/**\n * !#en\n * Creates the action easing object.
\n * Eased bounce effect at the begining and ending.\n * !#zh\n * 创建 easeBounceInOut 缓动对象。
\n * EaseBounceInOut 是按弹跳动作缓动进入并退出的动作。\n * @method easeBounceInOut\n * @return {Object}\n * @example\n * // example\n * action.easing(cc.easeBounceInOut());\n */\nvar _easeBounceInOutObj = {\n easing: function (time1) {\n var newT;\n if (time1 < 0.5) {\n time1 = time1 * 2;\n newT = (1 - _bounceTime(1 - time1)) * 0.5;\n } else {\n newT = _bounceTime(time1 * 2 - 1) * 0.5 + 0.5;\n }\n return newT;\n },\n reverse: function(){\n return _easeBounceInOutObj;\n }\n};\ncc.easeBounceInOut = function(){\n return _easeBounceInOutObj;\n};\n\n/**\n * !#en\n * Creates the action easing object.
\n * In the opposite direction to move slowly, and then accelerated to the right direction.\n * !#zh\n * 创建 easeBackIn 缓动对象。
\n * easeBackIn 是在相反的方向缓慢移动,然后加速到正确的方向。
\n * @method easeBackIn\n * @return {Object}\n * @example\n * // example\n * action.easing(cc.easeBackIn());\n */\nvar _easeBackInObj = {\n easing: function (time1) {\n var overshoot = 1.70158;\n return (time1===0 || time1===1) ? time1 : time1 * time1 * ((overshoot + 1) * time1 - overshoot);\n },\n reverse: function(){\n return _easeBackOutObj;\n }\n};\ncc.easeBackIn = function(){\n return _easeBackInObj;\n};\n\n/**\n * !#en\n * Creates the action easing object.
\n * Fast moving more than the finish, and then slowly back to the finish.\n * !#zh\n * 创建 easeBackOut 缓动对象。
\n * easeBackOut 快速移动超出目标,然后慢慢回到目标点。\n * @method easeBackOut\n * @return {Object}\n * @example\n * // example\n * action.easing(cc.easeBackOut());\n */\nvar _easeBackOutObj = {\n easing: function (time1) {\n if (time1 === 0) {\n return 0;\n }\n var overshoot = 1.70158;\n time1 = time1 - 1;\n return time1 * time1 * ((overshoot + 1) * time1 + overshoot) + 1;\n },\n reverse: function(){\n return _easeBackInObj;\n }\n};\ncc.easeBackOut = function(){\n return _easeBackOutObj;\n};\n\n/**\n * !#en\n * Creates the action easing object.
\n * Begining of cc.EaseBackIn. Ending of cc.EaseBackOut.\n * !#zh\n * 创建 easeBackInOut 缓动对象。
\n * @method easeBackInOut\n * @return {Object}\n * @example\n * // example\n * action.easing(cc.easeBackInOut());\n */\nvar _easeBackInOutObj = {\n easing: function (time1) {\n var overshoot = 1.70158 * 1.525;\n time1 = time1 * 2;\n if (time1 < 1) {\n return (time1 * time1 * ((overshoot + 1) * time1 - overshoot)) / 2;\n } else {\n time1 = time1 - 2;\n return (time1 * time1 * ((overshoot + 1) * time1 + overshoot)) / 2 + 1;\n }\n },\n reverse: function(){\n return _easeBackInOutObj;\n }\n};\ncc.easeBackInOut = function(){\n return _easeBackInOutObj;\n};\n\n/**\n * !#en\n * Creates the action easing object.
\n * Into the 4 reference point.
\n * To calculate the motion curve.\n * !#zh\n * 创建 easeBezierAction 缓动对象。
\n * EaseBezierAction 是按贝塞尔曲线缓动的动作。\n * @method easeBezierAction\n * @param {Number} p0 The first bezier parameter\n * @param {Number} p1 The second bezier parameter\n * @param {Number} p2 The third bezier parameter\n * @param {Number} p3 The fourth bezier parameter\n * @returns {Object}\n * @example\n * // example\n * action.easing(cc.easeBezierAction(0.5, 0.5, 1.0, 1.0));\n */\ncc.easeBezierAction = function(a, b, c, d){\n return {\n easing: function(t){\n return (Math.pow(1-t,3) * a + 3*t*(Math.pow(1-t,2))*b + 3*Math.pow(t,2)*(1-t)*c + Math.pow(t,3)*d);\n },\n reverse: function(){\n return cc.easeBezierAction(d, c, b, a);\n }\n };\n};\n\n/**\n * !#en\n * Creates the action easing object.
\n * Reference easeInQuad:
\n * http://www.zhihu.com/question/21981571/answer/19925418\n * !#zh\n * 创建 easeQuadraticActionIn 缓动对象。
\n * EaseQuadraticIn是按二次函数缓动进入的动作。
\n * 参考 easeInQuad:http://www.zhihu.com/question/21981571/answer/19925418\n * @method easeQuadraticActionIn\n * @returns {Object}\n * @example\n * //example\n * action.easing(cc.easeQuadraticActionIn());\n */\nvar _easeQuadraticActionIn = {\n easing: function(time){\n return Math.pow(time, 2);\n },\n reverse: function(){\n return _easeQuadraticActionIn;\n }\n};\ncc.easeQuadraticActionIn = function(){\n return _easeQuadraticActionIn;\n};\n\n/**\n * !#en\n * Creates the action easing object.
\n * Reference easeOutQuad:
\n * http://www.zhihu.com/question/21981571/answer/19925418\n * !#zh\n * 创建 easeQuadraticActionOut 缓动对象。
\n * EaseQuadraticOut 是按二次函数缓动退出的动作。
\n * 参考 easeOutQuad:http://www.zhihu.com/question/21981571/answer/19925418\n * @method easeQuadraticActionOut\n * @returns {Object}\n * @example\n * //example\n * action.easing(cc.easeQuadraticActionOut());\n */\nvar _easeQuadraticActionOut = {\n easing: function(time){\n return -time*(time-2);\n },\n reverse: function(){\n return _easeQuadraticActionOut;\n }\n};\ncc.easeQuadraticActionOut = function(){\n return _easeQuadraticActionOut;\n};\n\n/**\n * !#en\n * Creates the action easing object.
\n * Reference easeInOutQuad:
\n * http://www.zhihu.com/question/21981571/answer/19925418\n * !#zh\n * 创建 easeQuadraticActionInOut 缓动对象。
\n * EaseQuadraticInOut 是按二次函数缓动进入并退出的动作。
\n * 参考 easeInOutQuad:http://www.zhihu.com/question/21981571/answer/19925418\n * @method easeQuadraticActionInOut\n * @returns {Object}\n * @example\n * //example\n * action.easing(cc.easeQuadraticActionInOut());\n */\nvar _easeQuadraticActionInOut = {\n easing: function(time){\n var resultTime = time;\n time *= 2;\n if(time < 1){\n resultTime = time * time * 0.5;\n }else{\n --time;\n resultTime = -0.5 * ( time * ( time - 2 ) - 1)\n }\n return resultTime;\n },\n reverse: function(){\n return _easeQuadraticActionInOut;\n }\n};\ncc.easeQuadraticActionInOut = function(){\n return _easeQuadraticActionInOut;\n};\n\n/**\n * !#en\n * Creates the action easing object.
\n * Reference easeIntQuart:
\n * http://www.zhihu.com/question/21981571/answer/19925418\n * !#zh\n * 创建 easeQuarticActionIn 缓动对象。
\n * EaseQuarticIn 是按四次函数缓动进入的动作。
\n * 参考 easeIntQuart:http://www.zhihu.com/question/21981571/answer/19925418\n * @method easeQuarticActionIn\n * @returns {Object}\n * @example\n * //example\n * action.easing(cc.easeQuarticActionIn());\n */\nvar _easeQuarticActionIn = {\n easing: function(time){\n return time * time * time * time;\n },\n reverse: function(){\n return _easeQuarticActionIn;\n }\n};\ncc.easeQuarticActionIn = function(){\n return _easeQuarticActionIn;\n};\n\n/**\n * !#en\n * Creates the action easing object.
\n * Reference easeOutQuart:
\n * http://www.zhihu.com/question/21981571/answer/19925418\n * !#zh\n * 创建 easeQuarticActionOut 缓动对象。
\n * EaseQuarticOut 是按四次函数缓动退出的动作。
\n * 参考 easeOutQuart:http://www.zhihu.com/question/21981571/answer/19925418\n * @method easeQuarticActionOut\n * @returns {Object}\n * @example\n * //example\n * action.easing(cc.QuarticActionOut());\n */\nvar _easeQuarticActionOut = {\n easing: function(time){\n time -= 1;\n return -(time * time * time * time - 1);\n },\n reverse: function(){\n return _easeQuarticActionOut;\n }\n};\ncc.easeQuarticActionOut = function(){\n return _easeQuarticActionOut;\n};\n\n/**\n * !#en\n * Creates the action easing object.
\n * Reference easeInOutQuart:
\n * http://www.zhihu.com/question/21981571/answer/19925418\n * !#zh\n * 创建 easeQuarticActionInOut 缓动对象。
\n * EaseQuarticInOut 是按四次函数缓动进入并退出的动作。
\n * 参考 easeInOutQuart:http://www.zhihu.com/question/21981571/answer/19925418\n * @method easeQuarticActionInOut\n * @returns {Object}\n */\nvar _easeQuarticActionInOut = {\n easing: function(time){\n time = time*2;\n if (time < 1)\n return 0.5 * time * time * time * time;\n time -= 2;\n return -0.5 * (time * time * time * time - 2);\n },\n reverse: function(){\n return _easeQuarticActionInOut;\n }\n};\ncc.easeQuarticActionInOut = function(){\n return _easeQuarticActionInOut;\n};\n\n/**\n * !#en\n * Creates the action easing object.
\n * Reference easeInQuint:
\n * http://www.zhihu.com/question/21981571/answer/19925418\n * !#zh\n * 创建 easeQuinticActionIn 缓动对象。
\n * EaseQuinticIn 是按五次函数缓动进的动作。
\n * 参考 easeInQuint:http://www.zhihu.com/question/21981571/answer/19925418\n * @method easeQuinticActionIn\n * @returns {Object}\n * @example\n * //example\n * action.easing(cc.easeQuinticActionIn());\n */\nvar _easeQuinticActionIn = {\n easing: function(time){\n return time * time * time * time * time;\n },\n reverse: function(){\n return _easeQuinticActionIn;\n }\n};\ncc.easeQuinticActionIn = function(){\n return _easeQuinticActionIn;\n};\n\n/**\n * !#en\n * Creates the action easing object.
\n * Reference easeOutQuint:
\n * http://www.zhihu.com/question/21981571/answer/19925418\n * !#zh\n * 创建 easeQuinticActionOut 缓动对象。
\n * EaseQuinticOut 是按五次函数缓动退出的动作\n * 参考 easeOutQuint:http://www.zhihu.com/question/21981571/answer/19925418\n * @method easeQuinticActionOut\n * @returns {Object}\n * @example\n * //example\n * action.easing(cc.easeQuadraticActionOut());\n */\nvar _easeQuinticActionOut = {\n easing: function(time){\n time -=1;\n return (time * time * time * time * time + 1);\n },\n reverse: function(){\n return _easeQuinticActionOut;\n }\n};\ncc.easeQuinticActionOut = function(){\n return _easeQuinticActionOut;\n};\n\n/**\n * !#en\n * Creates the action easing object.
\n * Reference easeInOutQuint:
\n * http://www.zhihu.com/question/21981571/answer/19925418\n * !#zh\n * 创建 easeQuinticActionInOut 缓动对象。
\n * EaseQuinticInOut是按五次函数缓动进入并退出的动作。
\n * 参考 easeInOutQuint:http://www.zhihu.com/question/21981571/answer/19925418\n * @method easeQuinticActionInOut\n * @returns {Object}\n * @example\n * //example\n * action.easing(cc.easeQuinticActionInOut());\n */\nvar _easeQuinticActionInOut = {\n easing: function(time){\n time = time*2;\n if (time < 1)\n return 0.5 * time * time * time * time * time;\n time -= 2;\n return 0.5 * (time * time * time * time * time + 2);\n },\n reverse: function(){\n return _easeQuinticActionInOut;\n }\n};\ncc.easeQuinticActionInOut = function(){\n return _easeQuinticActionInOut;\n};\n\n/**\n * !#en\n * Creates the action easing object.
\n * Reference easeInCirc:
\n * http://www.zhihu.com/question/21981571/answer/19925418\n * !#zh\n * 创建 easeCircleActionIn 缓动对象。
\n * EaseCircleIn是按圆形曲线缓动进入的动作。
\n * 参考 easeInCirc:http://www.zhihu.com/question/21981571/answer/19925418\n * @method easeCircleActionIn\n * @returns {Object}\n * @example\n * //example\n * action.easing(cc.easeCircleActionIn());\n */\nvar _easeCircleActionIn = {\n easing: function(time){\n return -1 * (Math.sqrt(1 - time * time) - 1);\n },\n reverse: function(){\n return _easeCircleActionIn;\n }\n};\ncc.easeCircleActionIn = function(){\n return _easeCircleActionIn;\n};\n\n/**\n * !#en\n * Creates the action easing object.
\n * Reference easeOutCirc:
\n * http://www.zhihu.com/question/21981571/answer/19925418\n * !#zh\n * 创建 easeCircleActionOut 缓动对象。
\n * EaseCircleOut是按圆形曲线缓动退出的动作。
\n * 参考 easeOutCirc:http://www.zhihu.com/question/21981571/answer/19925418\n * @method easeCircleActionOut\n * @returns {Object}\n * @example\n * //example\n * actioneasing(cc.easeCircleActionOut());\n */\nvar _easeCircleActionOut = {\n easing: function(time){\n time = time - 1;\n return Math.sqrt(1 - time * time);\n },\n reverse: function(){\n return _easeCircleActionOut;\n }\n};\ncc.easeCircleActionOut = function(){\n return _easeCircleActionOut;\n};\n\n/**\n * !#en\n * Creates the action easing object.
\n * Reference easeInOutCirc:
\n * http://www.zhihu.com/question/21981571/answer/19925418\n * !#zh\n * 创建 easeCircleActionInOut 缓动对象。
\n * EaseCircleInOut 是按圆形曲线缓动进入并退出的动作。
\n * 参考 easeInOutCirc:http://www.zhihu.com/question/21981571/answer/19925418\n * @method easeCircleActionInOut\n * @returns {Object}\n * @example\n * //example\n * action.easing(cc.easeCircleActionInOut());\n */\nvar _easeCircleActionInOut = {\n easing: function(time){\n time = time * 2;\n if (time < 1)\n return -0.5 * (Math.sqrt(1 - time * time) - 1);\n time -= 2;\n return 0.5 * (Math.sqrt(1 - time * time) + 1);\n },\n reverse: function(){\n return _easeCircleActionInOut;\n }\n};\ncc.easeCircleActionInOut = function(){\n return _easeCircleActionInOut;\n};\n\n/**\n * !#en\n * Creates the action easing object.
\n * Reference easeInCubic:
\n * http://www.zhihu.com/question/21981571/answer/19925418\n * !#zh\n * 创建 easeCubicActionIn 缓动对象。
\n * EaseCubicIn 是按三次函数缓动进入的动作。
\n * 参考 easeInCubic:http://www.zhihu.com/question/21981571/answer/19925418\n * @method easeCubicActionIn\n * @returns {Object}\n * @example\n * //example\n * action.easing(cc.easeCubicActionIn());\n */\nvar _easeCubicActionIn = {\n easing: function(time){\n return time * time * time;\n },\n reverse: function(){\n return _easeCubicActionIn;\n }\n};\ncc.easeCubicActionIn = function(){\n return _easeCubicActionIn;\n};\n\n/**\n * !#en\n * Creates the action easing object.
\n * Reference easeOutCubic:
\n * http://www.zhihu.com/question/21981571/answer/19925418\n * !#zh\n * 创建 easeCubicActionOut 缓动对象。
\n * EaseCubicOut 是按三次函数缓动退出的动作。
\n * 参考 easeOutCubic:http://www.zhihu.com/question/21981571/answer/19925418\n * @method easeCubicActionOut\n * @returns {Object}\n * @example\n * //example\n * action.easing(cc.easeCubicActionOut());\n */\nvar _easeCubicActionOut = {\n easing: function(time){\n time -= 1;\n return (time * time * time + 1);\n },\n reverse: function(){\n return _easeCubicActionOut;\n }\n};\ncc.easeCubicActionOut = function(){\n return _easeCubicActionOut;\n};\n\n/**\n * !#en\n * Creates the action easing object.
\n * Reference easeInOutCubic:
\n * http://www.zhihu.com/question/21981571/answer/19925418\n * !#zh\n * 创建 easeCubicActionInOut 缓动对象。
\n * EaseCubicInOut是按三次函数缓动进入并退出的动作。
\n * 参考 easeInOutCubic:http://www.zhihu.com/question/21981571/answer/19925418\n * @method easeCubicActionInOut\n * @returns {Object}\n */\nvar _easeCubicActionInOut = {\n easing: function(time){\n time = time*2;\n if (time < 1)\n return 0.5 * time * time * time;\n time -= 2;\n return 0.5 * (time * time * time + 2);\n },\n reverse: function(){\n return _easeCubicActionInOut;\n }\n};\ncc.easeCubicActionInOut = function(){\n return _easeCubicActionInOut;\n};\n\n","/****************************************************************************\n Copyright (c) 2008-2010 Ricardo Quesada\n Copyright (c) 2011-2012 cocos2d-x.org\n Copyright (c) 2013-2016 Chukong Technologies Inc.\n Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.\n\n http://www.cocos2d-x.org\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in\n all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n\n/**\n * @module cc\n */\n\n/**\n * !#en Instant actions are immediate actions. They don't have a duration like the ActionInterval actions.\n * !#zh 即时动作,这种动作立即就会执行,继承自 FiniteTimeAction。\n * @class ActionInstant\n * @extends FiniteTimeAction\n */\ncc.ActionInstant = cc.Class({\n name: 'cc.ActionInstant',\n extends: cc.FiniteTimeAction,\n isDone:function () {\n return true;\n },\n\n step:function (dt) {\n this.update(1);\n },\n\n update:function (dt) {\n //nothing\n },\n\n /**\n * returns a reversed action.
\n * For example:
\n * - The action is x coordinates of 0 move to 100.
\n * - The reversed action will be x of 100 move to 0.\n * @returns {Action}\n */\n reverse:function(){\n return this.clone();\n },\n\n clone:function(){\n return new cc.ActionInstant();\n }\n});\n\n/**\n * @module cc\n */\n\n/*\n * Show the node.\n * @class Show\n * @extends ActionInstant\n */\ncc.Show = cc.Class({\n name: 'cc.Show',\n extends: cc.ActionInstant,\n\n update:function (dt) {\n var _renderComps = this.target.getComponentsInChildren(cc.RenderComponent);\n for (var i = 0; i < _renderComps.length; ++i) {\n var render = _renderComps[i];\n render.enabled = true;\n }\n },\n\n reverse:function () {\n return new cc.Hide();\n },\n\n clone:function(){\n return new cc.Show();\n }\n});\n\n/**\n * !#en Show the Node.\n * !#zh 立即显示。\n * @method show\n * @return {ActionInstant}\n * @example\n * // example\n * var showAction = cc.show();\n */\ncc.show = function () {\n return new cc.Show();\n};\n\n/*\n * Hide the node.\n * @class Hide\n * @extends ActionInstant\n */\ncc.Hide = cc.Class({\n name: 'cc.Hide',\n extends: cc.ActionInstant,\n\n update:function (dt) {\n var _renderComps = this.target.getComponentsInChildren(cc.RenderComponent);\n for (var i = 0; i < _renderComps.length; ++i) {\n var render = _renderComps[i];\n render.enabled = false;\n }\n },\n\n reverse:function () {\n return new cc.Show();\n },\n\n clone:function(){\n return new cc.Hide();\n }\n});\n\n/**\n * !#en Hide the node.\n * !#zh 立即隐藏。\n * @method hide\n * @return {ActionInstant}\n * @example\n * // example\n * var hideAction = cc.hide();\n */\ncc.hide = function () {\n return new cc.Hide();\n};\n\n/*\n * Toggles the visibility of a node.\n * @class ToggleVisibility\n * @extends ActionInstant\n */\ncc.ToggleVisibility = cc.Class({\n name: 'cc.ToggleVisibility',\n extends: cc.ActionInstant,\n\n update:function (dt) {\n var _renderComps = this.target.getComponentsInChildren(cc.RenderComponent);\n for (var i = 0; i < _renderComps.length; ++i) {\n var render = _renderComps[i];\n render.enabled = !render.enabled;\n }\n },\n\n reverse:function () {\n return new cc.ToggleVisibility();\n },\n\n clone:function(){\n return new cc.ToggleVisibility();\n }\n});\n\n/**\n * !#en Toggles the visibility of a node.\n * !#zh 显隐状态切换。\n * @method toggleVisibility\n * @return {ActionInstant}\n * @example\n * // example\n * var toggleVisibilityAction = cc.toggleVisibility();\n */\ncc.toggleVisibility = function () {\n return new cc.ToggleVisibility();\n};\n\n/*\n * Delete self in the next frame.\n * @class RemoveSelf\n * @extends ActionInstant\n * @param {Boolean} [isNeedCleanUp=true]\n *\n * @example\n * // example\n * var removeSelfAction = new cc.RemoveSelf(false);\n */\ncc.RemoveSelf = cc.Class({\n name: 'cc.RemoveSelf',\n extends: cc.ActionInstant,\n\n ctor:function(isNeedCleanUp){\n this._isNeedCleanUp = true;\n\t isNeedCleanUp !== undefined && this.init(isNeedCleanUp);\n },\n\n update:function(dt){\n this.target.removeFromParent(this._isNeedCleanUp);\n },\n\n init:function(isNeedCleanUp){\n this._isNeedCleanUp = isNeedCleanUp;\n return true;\n },\n\n reverse:function(){\n return new cc.RemoveSelf(this._isNeedCleanUp);\n },\n\n clone:function(){\n return new cc.RemoveSelf(this._isNeedCleanUp);\n }\n});\n\n/**\n * !#en Create a RemoveSelf object with a flag indicate whether the target should be cleaned up while removing.\n * !#zh 从父节点移除自身。\n * @method removeSelf\n * @param {Boolean} [isNeedCleanUp = true]\n * @return {ActionInstant}\n *\n * @example\n * // example\n * var removeSelfAction = cc.removeSelf();\n */\ncc.removeSelf = function(isNeedCleanUp){\n return new cc.RemoveSelf(isNeedCleanUp);\n};\n\n/*\n * Create an action to destroy self.\n * @class DestroySelf\n * @extends ActionInstant\n *\n * @example\n * var destroySelfAction = new cc.DestroySelf();\n */\ncc.DestroySelf = cc.Class({\n name: 'cc.DestroySelf',\n extends: cc.ActionInstant,\n\n update () {\n this.target.destroy();\n },\n\n reverse () {\n return new cc.DestroySelf();\n },\n\n clone () {\n return new cc.DestroySelf();\n }\n});\n\n/**\n * !#en Destroy self\n * !#zh 创建一个销毁自身的动作。\n * @method destroySelf\n * @return {ActionInstant}\n *\n * @example\n * var destroySelfAction = cc.destroySelf();\n */\ncc.destroySelf = function () {\n return new cc.DestroySelf();\n};\n\n/*\n * Flips the sprite horizontally.\n * @class FlipX\n * @extends ActionInstant\n * @param {Boolean} flip Indicate whether the target should be flipped or not\n *\n * @example\n * var flipXAction = new cc.FlipX(true);\n */\ncc.FlipX = cc.Class({\n name: 'cc.FlipX',\n extends: cc.ActionInstant,\n\n ctor:function(flip){\n this._flippedX = false;\n\t\tflip !== undefined && this.initWithFlipX(flip);\n },\n\n /*\n * initializes the action with a set flipX.\n * @param {Boolean} flip\n * @return {Boolean}\n */\n initWithFlipX:function (flip) {\n this._flippedX = flip;\n return true;\n },\n\n update:function (dt) {\n this.target.scaleX = Math.abs(this.target.scaleX) * (this._flippedX ? -1 : 1);\n },\n\n reverse:function () {\n return new cc.FlipX(!this._flippedX);\n },\n\n clone:function(){\n var action = new cc.FlipX();\n action.initWithFlipX(this._flippedX);\n return action;\n }\n});\n\n/**\n * !#en Create a FlipX action to flip or unflip the target.\n * !#zh X轴翻转。\n * @method flipX\n * @param {Boolean} flip Indicate whether the target should be flipped or not\n * @return {ActionInstant}\n * @example\n * var flipXAction = cc.flipX(true);\n */\ncc.flipX = function (flip) {\n return new cc.FlipX(flip);\n};\n\n/*\n * Flips the sprite vertically\n * @class FlipY\n * @extends ActionInstant\n * @param {Boolean} flip\n * @example\n * var flipYAction = new cc.FlipY(true);\n */\ncc.FlipY = cc.Class({\n name: 'cc.FlipY',\n extends: cc.ActionInstant,\n\n ctor: function(flip){\n this._flippedY = false;\n\t\tflip !== undefined && this.initWithFlipY(flip);\n },\n\n /*\n * initializes the action with a set flipY.\n * @param {Boolean} flip\n * @return {Boolean}\n */\n initWithFlipY:function (flip) {\n this._flippedY = flip;\n return true;\n },\n\n update:function (dt) {\n this.target.scaleY = Math.abs(this.target.scaleY) * (this._flippedY ? -1 : 1);\n },\n\n reverse:function () {\n return new cc.FlipY(!this._flippedY);\n },\n\n clone:function(){\n var action = new cc.FlipY();\n action.initWithFlipY(this._flippedY);\n return action;\n }\n});\n\n/**\n * !#en Create a FlipY action to flip or unflip the target.\n * !#zh Y轴翻转。\n * @method flipY\n * @param {Boolean} flip\n * @return {ActionInstant}\n * @example\n * var flipYAction = cc.flipY(true);\n */\ncc.flipY = function (flip) {\n return new cc.FlipY(flip);\n};\n\n/*\n * Places the node in a certain position\n * @class Place\n * @extends ActionInstant\n * @param {Vec2|Number} pos\n * @param {Number} [y]\n * @example\n * var placeAction = new cc.Place(cc.v2(200, 200));\n * var placeAction = new cc.Place(200, 200);\n */\ncc.Place = cc.Class({\n name: 'cc.Place',\n extends: cc.ActionInstant,\n\n ctor:function(pos, y){\n this._x = 0;\n\t this._y = 0;\n\n\t\tif (pos !== undefined) {\n\t\t\tif (pos.x !== undefined) {\n\t\t\t\ty = pos.y;\n\t\t\t\tpos = pos.x;\n\t\t\t}\n\t\t\tthis.initWithPosition(pos, y);\n\t\t}\n },\n\n /*\n * Initializes a Place action with a position\n * @param {number} x\n * @param {number} y\n * @return {Boolean}\n */\n initWithPosition: function (x, y) {\n this._x = x;\n this._y = y;\n return true;\n },\n\n update:function (dt) {\n this.target.setPosition(this._x, this._y);\n },\n\n clone:function(){\n var action = new cc.Place();\n action.initWithPosition(this._x, this._y);\n return action;\n }\n});\n\n/**\n * !#en Creates a Place action with a position.\n * !#zh 放置在目标位置。\n * @method place\n * @param {Vec2|Number} pos\n * @param {Number} [y]\n * @return {ActionInstant}\n * @example\n * // example\n * var placeAction = cc.place(cc.v2(200, 200));\n * var placeAction = cc.place(200, 200);\n */\ncc.place = function (pos, y) {\n return new cc.Place(pos, y);\n};\n\n\n/*\n * Calls a 'callback'.\n * @class CallFunc\n * @extends ActionInstant\n * @param {function} selector\n * @param {object} [selectorTarget=null]\n * @param {*} [data=null] data for function, it accepts all data types.\n * @example\n * // example\n * // CallFunc without data\n * var finish = new cc.CallFunc(this.removeSprite, this);\n *\n * // CallFunc with data\n * var finish = new cc.CallFunc(this.removeFromParentAndCleanup, this, true);\n */\ncc.CallFunc = cc.Class({\n name: 'cc.CallFunc',\n extends: cc.ActionInstant,\n\n /*\n * Constructor function, override it to extend the construction behavior, remember to call \"this._super()\" in the extended \"ctor\" function.
\n\t * Creates a CallFunc action with the callback.\n\t * @param {function} selector\n\t * @param {object} [selectorTarget=null]\n\t * @param {*} [data=null] data for function, it accepts all data types.\n\t */\n ctor:function(selector, selectorTarget, data){\n this._selectorTarget = null;\n this._function = null;\n this._data = null;\n this.initWithFunction(selector, selectorTarget, data);\n },\n\n /*\n * Initializes the action with a function or function and its target\n * @param {function} selector\n * @param {object|Null} selectorTarget\n * @param {*|Null} [data] data for function, it accepts all data types.\n * @return {Boolean}\n */\n initWithFunction:function (selector, selectorTarget, data) {\n if (selector) {\n this._function = selector;\n }\n if (selectorTarget) {\n this._selectorTarget = selectorTarget;\n }\n if (data !== undefined) {\n this._data = data;\n }\n return true;\n },\n\n /*\n * execute the function.\n */\n execute:function () {\n if (this._function) {\n this._function.call(this._selectorTarget, this.target, this._data);\n }\n },\n\n update:function (dt) {\n this.execute();\n },\n\n /*\n * Get selectorTarget.\n * @return {object}\n */\n getTargetCallback:function () {\n return this._selectorTarget;\n },\n\n /*\n * Set selectorTarget.\n * @param {object} sel\n */\n setTargetCallback:function (sel) {\n if (sel !== this._selectorTarget) {\n if (this._selectorTarget)\n this._selectorTarget = null;\n this._selectorTarget = sel;\n }\n },\n\n clone:function(){\n var action = new cc.CallFunc();\n action.initWithFunction(this._function, this._selectorTarget, this._data);\n return action;\n }\n});\n\n/**\n * !#en Creates the action with the callback.\n * !#zh 执行回调函数。\n * @method callFunc\n * @param {function} selector\n * @param {object} [selectorTarget=null]\n * @param {*} [data=null] - data for function, it accepts all data types.\n * @return {ActionInstant}\n * @example\n * // example\n * // CallFunc without data\n * var finish = cc.callFunc(this.removeSprite, this);\n *\n * // CallFunc with data\n * var finish = cc.callFunc(this.removeFromParentAndCleanup, this._grossini, true);\n */\ncc.callFunc = function (selector, selectorTarget, data) {\n return new cc.CallFunc(selector, selectorTarget, data);\n};\n","/****************************************************************************\n Copyright (c) 2008-2010 Ricardo Quesada\n Copyright (c) 2011-2012 cocos2d-x.org\n Copyright (c) 2013-2016 Chukong Technologies Inc.\n Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.\n\n http://www.cocos2d-x.org\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in\n all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n\n\n/**\n * @module cc\n */\n\n/**\n * !#en\n *

An interval action is an action that takes place within a certain period of time.
\n * It has an start time, and a finish time. The finish time is the parameter
\n * duration plus the start time.

\n *\n *

These CCActionInterval actions have some interesting properties, like:
\n * - They can run normally (default)
\n * - They can run reversed with the reverse method
\n * - They can run with the time altered with the Accelerate, AccelDeccel and Speed actions.

\n *\n *

For example, you can simulate a Ping Pong effect running the action normally and
\n * then running it again in Reverse mode.

\n * !#zh 时间间隔动作,这种动作在已定时间内完成,继承 FiniteTimeAction。\n * @class ActionInterval\n * @extends FiniteTimeAction\n * @param {Number} d duration in seconds\n */\ncc.ActionInterval = cc.Class({\n name: 'cc.ActionInterval',\n extends: cc.FiniteTimeAction,\n\n ctor:function (d) {\n this.MAX_VALUE = 2;\n this._elapsed = 0;\n this._firstTick = false;\n this._easeList = null;\n this._speed = 1;\n this._timesForRepeat = 1;\n this._repeatForever = false;\n this._repeatMethod = false;//Compatible with repeat class, Discard after can be deleted\n this._speedMethod = false;//Compatible with repeat class, Discard after can be deleted\n d !== undefined && cc.ActionInterval.prototype.initWithDuration.call(this, d);\n },\n\n /*\n * How many seconds had elapsed since the actions started to run.\n * @return {Number}\n */\n getElapsed:function () {\n return this._elapsed;\n },\n\n /*\n * Initializes the action.\n * @param {Number} d duration in seconds\n * @return {Boolean}\n */\n initWithDuration:function (d) {\n this._duration = (d === 0) ? cc.macro.FLT_EPSILON : d;\n // prevent division by 0\n // This comparison could be in step:, but it might decrease the performance\n // by 3% in heavy based action games.\n this._elapsed = 0;\n this._firstTick = true;\n return true;\n },\n\n isDone:function () {\n return (this._elapsed >= this._duration);\n },\n\n _cloneDecoration: function(action){\n action._repeatForever = this._repeatForever;\n action._speed = this._speed;\n action._timesForRepeat = this._timesForRepeat;\n action._easeList = this._easeList;\n action._speedMethod = this._speedMethod;\n action._repeatMethod = this._repeatMethod;\n },\n\n _reverseEaseList: function(action){\n if(this._easeList){\n action._easeList = [];\n for(var i=0; i (this._elapsed / this._duration)) ? this._elapsed / this._duration : 1);\n //this.update(Math.max(0, Math.min(1, this._elapsed / Math.max(this._duration, cc.macro.FLT_EPSILON))));\n var t = this._elapsed / (this._duration > 0.0000001192092896 ? this._duration : 0.0000001192092896);\n t = (1 > t ? t : 1);\n this.update(t > 0 ? t : 0);\n\n //Compatible with repeat class, Discard after can be deleted (this._repeatMethod)\n if(this._repeatMethod && this._timesForRepeat > 1 && this.isDone()){\n if(!this._repeatForever){\n this._timesForRepeat--;\n }\n //var diff = locInnerAction.getElapsed() - locInnerAction._duration;\n this.startWithTarget(this.target);\n // to prevent jerk. issue #390 ,1247\n //this._innerAction.step(0);\n //this._innerAction.step(diff);\n this.step(this._elapsed - this._duration);\n\n }\n },\n\n startWithTarget:function (target) {\n cc.Action.prototype.startWithTarget.call(this, target);\n this._elapsed = 0;\n this._firstTick = true;\n },\n\n reverse:function () {\n cc.logID(1010);\n return null;\n },\n\n /*\n * Set amplitude rate.\n * @warning It should be overridden in subclass.\n * @param {Number} amp\n */\n setAmplitudeRate:function (amp) {\n // Abstract class needs implementation\n cc.logID(1011);\n },\n\n /*\n * Get amplitude rate.\n * @warning It should be overridden in subclass.\n * @return {Number} 0\n */\n getAmplitudeRate:function () {\n // Abstract class needs implementation\n cc.logID(1012);\n return 0;\n },\n\n /**\n * !#en\n * Changes the speed of an action, making it take longer (speed>1)\n * or less (speed<1) time.
\n * Useful to simulate 'slow motion' or 'fast forward' effect.\n * !#zh\n * 改变一个动作的速度,使它的执行使用更长的时间(speed > 1)
\n * 或更少(speed < 1)可以有效得模拟“慢动作”或“快进”的效果。\n * @param {Number} speed\n * @returns {Action}\n */\n speed: function(speed){\n if(speed <= 0){\n cc.logID(1013);\n return this;\n }\n\n this._speedMethod = true;//Compatible with repeat class, Discard after can be deleted\n this._speed *= speed;\n return this;\n },\n\n /**\n * Get this action speed.\n * @return {Number}\n */\n getSpeed: function(){\n return this._speed;\n },\n\n /**\n * Set this action speed.\n * @param {Number} speed\n * @returns {ActionInterval}\n */\n setSpeed: function(speed){\n this._speed = speed;\n return this;\n },\n\n /**\n * !#en\n * Repeats an action a number of times.\n * To repeat an action forever use the CCRepeatForever action.\n * !#zh 重复动作可以按一定次数重复一个动作,使用 RepeatForever 动作来永远重复一个动作。\n * @method repeat\n * @param {Number} times\n * @returns {ActionInterval}\n */\n repeat: function(times){\n times = Math.round(times);\n if(isNaN(times) || times < 1){\n cc.logID(1014);\n return this;\n }\n this._repeatMethod = true;//Compatible with repeat class, Discard after can be deleted\n this._timesForRepeat *= times;\n return this;\n },\n\n /**\n * !#en\n * Repeats an action for ever.
\n * To repeat the an action for a limited number of times use the Repeat action.
\n * !#zh 永远地重复一个动作,有限次数内重复一个动作请使用 Repeat 动作。\n * @method repeatForever\n * @returns {ActionInterval}\n */\n repeatForever: function(){\n this._repeatMethod = true;//Compatible with repeat class, Discard after can be deleted\n this._timesForRepeat = this.MAX_VALUE;\n this._repeatForever = true;\n return this;\n }\n});\n\ncc.actionInterval = function (d) {\n return new cc.ActionInterval(d);\n};\n\n/**\n * @module cc\n */\n\n/*\n * Runs actions sequentially, one after another.\n * @class Sequence\n * @extends ActionInterval\n * @param {Array|FiniteTimeAction} tempArray\n * @example\n * // create sequence with actions\n * var seq = new cc.Sequence(act1, act2);\n *\n * // create sequence with array\n * var seq = new cc.Sequence(actArray);\n */\ncc.Sequence = cc.Class({\n name: 'cc.Sequence',\n extends: cc.ActionInterval,\n\n ctor:function (tempArray) {\n this._actions = [];\n this._split = null;\n this._last = 0;\n this._reversed = false;\n\n var paramArray = (tempArray instanceof Array) ? tempArray : arguments;\n if (paramArray.length === 1) {\n cc.errorID(1019);\n return;\n }\n var last = paramArray.length - 1;\n if ((last >= 0) && (paramArray[last] == null))\n cc.logID(1015);\n\n if (last >= 0) {\n var prev = paramArray[0], action1;\n for (var i = 1; i < last; i++) {\n if (paramArray[i]) {\n action1 = prev;\n prev = cc.Sequence._actionOneTwo(action1, paramArray[i]);\n }\n }\n this.initWithTwoActions(prev, paramArray[last]);\n }\n },\n\n /*\n * Initializes the action
\n * @param {FiniteTimeAction} actionOne\n * @param {FiniteTimeAction} actionTwo\n * @return {Boolean}\n */\n initWithTwoActions:function (actionOne, actionTwo) {\n if (!actionOne || !actionTwo) {\n cc.errorID(1025);\n return false;\n }\n\n var durationOne = actionOne._duration, durationTwo = actionTwo._duration;\n durationOne *= actionOne._repeatMethod ? actionOne._timesForRepeat : 1;\n durationTwo *= actionTwo._repeatMethod ? actionTwo._timesForRepeat : 1;\n var d = durationOne + durationTwo;\n this.initWithDuration(d);\n\n this._actions[0] = actionOne;\n this._actions[1] = actionTwo;\n return true;\n },\n\n clone:function () {\n var action = new cc.Sequence();\n this._cloneDecoration(action);\n action.initWithTwoActions(this._actions[0].clone(), this._actions[1].clone());\n return action;\n },\n\n startWithTarget:function (target) {\n cc.ActionInterval.prototype.startWithTarget.call(this, target);\n this._split = this._actions[0]._duration / this._duration;\n this._split *= this._actions[0]._repeatMethod ? this._actions[0]._timesForRepeat : 1;\n this._last = -1;\n },\n\n stop:function () {\n // Issue #1305\n if (this._last !== -1)\n this._actions[this._last].stop();\n cc.Action.prototype.stop.call(this);\n },\n\n update:function (dt) {\n var new_t, found = 0;\n var locSplit = this._split, locActions = this._actions, locLast = this._last, actionFound;\n\n dt = this._computeEaseTime(dt);\n if (dt < locSplit) {\n // action[0]\n new_t = (locSplit !== 0) ? dt / locSplit : 1;\n\n if (found === 0 && locLast === 1 && this._reversed) {\n // Reverse mode ?\n // XXX: Bug. this case doesn't contemplate when _last==-1, found=0 and in \"reverse mode\"\n // since it will require a hack to know if an action is on reverse mode or not.\n // \"step\" should be overriden, and the \"reverseMode\" value propagated to inner Sequences.\n locActions[1].update(0);\n locActions[1].stop();\n }\n } else {\n // action[1]\n found = 1;\n new_t = (locSplit === 1) ? 1 : (dt - locSplit) / (1 - locSplit);\n\n if (locLast === -1) {\n // action[0] was skipped, execute it.\n locActions[0].startWithTarget(this.target);\n locActions[0].update(1);\n locActions[0].stop();\n }\n if (locLast === 0) {\n // switching to action 1. stop action 0.\n locActions[0].update(1);\n locActions[0].stop();\n }\n }\n\n actionFound = locActions[found];\n // Last action found and it is done.\n if (locLast === found && actionFound.isDone())\n return;\n\n // Last action not found\n if (locLast !== found)\n actionFound.startWithTarget(this.target);\n\n new_t = new_t * actionFound._timesForRepeat;\n actionFound.update(new_t > 1 ? new_t % 1 : new_t);\n this._last = found;\n },\n\n reverse:function () {\n var action = cc.Sequence._actionOneTwo(this._actions[1].reverse(), this._actions[0].reverse());\n this._cloneDecoration(action);\n this._reverseEaseList(action);\n action._reversed = true;\n return action;\n }\n});\n\n/**\n * !#en\n * Helper constructor to create an array of sequenceable actions\n * The created action will run actions sequentially, one after another.\n * !#zh 顺序执行动作,创建的动作将按顺序依次运行。\n * @method sequence\n * @param {FiniteTimeAction|FiniteTimeAction[]} actionOrActionArray\n * @param {FiniteTimeAction} ...tempArray\n * @return {ActionInterval}\n * @example\n * // example\n * // create sequence with actions\n * var seq = cc.sequence(act1, act2);\n *\n * // create sequence with array\n * var seq = cc.sequence(actArray);\n */\n// todo: It should be use new\ncc.sequence = function (/*Multiple Arguments*/tempArray) {\n var paramArray = (tempArray instanceof Array) ? tempArray : arguments;\n if (paramArray.length === 1) {\n cc.errorID(1019);\n return null;\n }\n var last = paramArray.length - 1;\n if ((last >= 0) && (paramArray[last] == null))\n cc.logID(1015);\n\n var result = null;\n if (last >= 0) {\n result = paramArray[0];\n for (var i = 1; i <= last; i++) {\n if (paramArray[i]) {\n result = cc.Sequence._actionOneTwo(result, paramArray[i]);\n }\n }\n }\n\n return result;\n};\n\ncc.Sequence._actionOneTwo = function (actionOne, actionTwo) {\n var sequence = new cc.Sequence();\n sequence.initWithTwoActions(actionOne, actionTwo);\n return sequence;\n};\n\n/*\n * Repeats an action a number of times.\n * To repeat an action forever use the CCRepeatForever action.\n * @class Repeat\n * @extends ActionInterval\n * @param {FiniteTimeAction} action\n * @param {Number} times\n * @example\n * var rep = new cc.Repeat(cc.sequence(jump2, jump1), 5);\n */\ncc.Repeat = cc.Class({\n name: 'cc.Repeat',\n extends: cc.ActionInterval,\n\n ctor: function (action, times) {\n this._times = 0;\n this._total = 0;\n this._nextDt = 0;\n this._actionInstant = false;\n this._innerAction = null;\n\t\ttimes !== undefined && this.initWithAction(action, times);\n },\n\n /*\n * @param {FiniteTimeAction} action\n * @param {Number} times\n * @return {Boolean}\n */\n initWithAction:function (action, times) {\n var duration = action._duration * times;\n\n if (this.initWithDuration(duration)) {\n this._times = times;\n this._innerAction = action;\n if (action instanceof cc.ActionInstant){\n this._actionInstant = true;\n this._times -= 1;\n }\n this._total = 0;\n return true;\n }\n return false;\n },\n\n clone:function () {\n var action = new cc.Repeat();\n this._cloneDecoration(action);\n action.initWithAction(this._innerAction.clone(), this._times);\n return action;\n },\n\n startWithTarget:function (target) {\n this._total = 0;\n this._nextDt = this._innerAction._duration / this._duration;\n cc.ActionInterval.prototype.startWithTarget.call(this, target);\n this._innerAction.startWithTarget(target);\n },\n\n stop:function () {\n this._innerAction.stop();\n cc.Action.prototype.stop.call(this);\n },\n\n update:function (dt) {\n dt = this._computeEaseTime(dt);\n var locInnerAction = this._innerAction;\n var locDuration = this._duration;\n var locTimes = this._times;\n var locNextDt = this._nextDt;\n\n if (dt >= locNextDt) {\n while (dt > locNextDt && this._total < locTimes) {\n locInnerAction.update(1);\n this._total++;\n locInnerAction.stop();\n locInnerAction.startWithTarget(this.target);\n locNextDt += locInnerAction._duration / locDuration;\n this._nextDt = locNextDt > 1 ? 1 : locNextDt;\n }\n\n // fix for issue #1288, incorrect end value of repeat\n if (dt >= 1.0 && this._total < locTimes) {\n // fix for cocos-creator/fireball/issues/4310\n locInnerAction.update(1);\n this._total++;\n }\n\n // don't set a instant action back or update it, it has no use because it has no duration\n if (!this._actionInstant) {\n if (this._total === locTimes) {\n locInnerAction.stop();\n } else {\n // issue #390 prevent jerk, use right update\n locInnerAction.update(dt - (locNextDt - locInnerAction._duration / locDuration));\n }\n }\n } else {\n locInnerAction.update((dt * locTimes) % 1.0);\n }\n },\n\n isDone:function () {\n return this._total === this._times;\n },\n\n reverse:function () {\n var action = new cc.Repeat(this._innerAction.reverse(), this._times);\n this._cloneDecoration(action);\n this._reverseEaseList(action);\n return action;\n },\n\n /*\n * Set inner Action.\n * @param {FiniteTimeAction} action\n */\n setInnerAction:function (action) {\n if (this._innerAction !== action) {\n this._innerAction = action;\n }\n },\n\n /*\n * Get inner Action.\n * @return {FiniteTimeAction}\n */\n getInnerAction:function () {\n return this._innerAction;\n }\n});\n\n/**\n * !#en Creates a Repeat action. Times is an unsigned integer between 1 and pow(2,30)\n * !#zh 重复动作,可以按一定次数重复一个动,如果想永远重复一个动作请使用 repeatForever 动作来完成。\n * @method repeat\n * @param {FiniteTimeAction} action\n * @param {Number} times\n * @return {ActionInterval}\n * @example\n * // example\n * var rep = cc.repeat(cc.sequence(jump2, jump1), 5);\n */\ncc.repeat = function (action, times) {\n return new cc.Repeat(action, times);\n};\n\n\n/*\n * Repeats an action for ever.
\n * To repeat the an action for a limited number of times use the Repeat action.
\n * @warning This action can't be Sequenceable because it is not an IntervalAction\n * @class RepeatForever\n * @extends ActionInterval\n * @param {FiniteTimeAction} action\n * @example\n * var rep = new cc.RepeatForever(cc.sequence(jump2, jump1), 5);\n */\ncc.RepeatForever = cc.Class({\n name: 'cc.RepeatForever',\n extends: cc.ActionInterval,\n\n ctor:function (action) {\n this._innerAction = null;\n\t\taction && this.initWithAction(action);\n },\n\n /*\n * @param {ActionInterval} action\n * @return {Boolean}\n */\n initWithAction:function (action) {\n if (!action) {\n cc.errorID(1026);\n return false;\n }\n\n this._innerAction = action;\n return true;\n },\n\n clone:function () {\n var action = new cc.RepeatForever();\n this._cloneDecoration(action);\n action.initWithAction(this._innerAction.clone());\n return action;\n },\n\n startWithTarget:function (target) {\n cc.ActionInterval.prototype.startWithTarget.call(this, target);\n this._innerAction.startWithTarget(target);\n },\n\n step:function (dt) {\n var locInnerAction = this._innerAction;\n locInnerAction.step(dt);\n if (locInnerAction.isDone()) {\n //var diff = locInnerAction.getElapsed() - locInnerAction._duration;\n locInnerAction.startWithTarget(this.target);\n // to prevent jerk. issue #390 ,1247\n //this._innerAction.step(0);\n //this._innerAction.step(diff);\n locInnerAction.step(locInnerAction.getElapsed() - locInnerAction._duration);\n }\n },\n\n isDone:function () {\n return false;\n },\n\n reverse:function () {\n var action = new cc.RepeatForever(this._innerAction.reverse());\n this._cloneDecoration(action);\n this._reverseEaseList(action);\n return action;\n },\n\n /*\n * Set inner action.\n * @param {ActionInterval} action\n */\n setInnerAction:function (action) {\n if (this._innerAction !== action) {\n this._innerAction = action;\n }\n },\n\n /*\n * Get inner action.\n * @return {ActionInterval}\n */\n getInnerAction:function () {\n return this._innerAction;\n }\n});\n\n/**\n * !#en Create a acton which repeat forever, as it runs forever, it can't be added into cc.sequence and cc.spawn.\n * !#zh 永远地重复一个动作,有限次数内重复一个动作请使用 repeat 动作,由于这个动作不会停止,所以不能被添加到 cc.sequence 或 cc.spawn 中。\n * @method repeatForever\n * @param {FiniteTimeAction} action\n * @return {ActionInterval}\n * @example\n * // example\n * var repeat = cc.repeatForever(cc.rotateBy(1.0, 360));\n */\ncc.repeatForever = function (action) {\n return new cc.RepeatForever(action);\n};\n\n\n/* \n * Spawn a new action immediately\n * @class Spawn\n * @extends ActionInterval\n */\ncc.Spawn = cc.Class({\n name: 'cc.Spawn',\n extends: cc.ActionInterval,\n\n ctor:function (tempArray) {\n this._one = null;\n this._two = null;\n\n\t\tvar paramArray = (tempArray instanceof Array) ? tempArray : arguments;\n if (paramArray.length === 1) {\n cc.errorID(1020);\n return;\n }\n\t\tvar last = paramArray.length - 1;\n\t\tif ((last >= 0) && (paramArray[last] == null))\n\t\t\tcc.logID(1015);\n\n if (last >= 0) {\n var prev = paramArray[0], action1;\n for (var i = 1; i < last; i++) {\n if (paramArray[i]) {\n action1 = prev;\n prev = cc.Spawn._actionOneTwo(action1, paramArray[i]);\n }\n }\n this.initWithTwoActions(prev, paramArray[last]);\n }\n },\n\n /* initializes the Spawn action with the 2 actions to spawn\n * @param {FiniteTimeAction} action1\n * @param {FiniteTimeAction} action2\n * @return {Boolean}\n */\n initWithTwoActions:function (action1, action2) {\n if (!action1 || !action2) {\n cc.errorID(1027);\n return false;\n }\n\n var ret = false;\n\n var d1 = action1._duration;\n var d2 = action2._duration;\n\n if (this.initWithDuration(Math.max(d1, d2))) {\n this._one = action1;\n this._two = action2;\n\n if (d1 > d2) {\n this._two = cc.Sequence._actionOneTwo(action2, cc.delayTime(d1 - d2));\n } else if (d1 < d2) {\n this._one = cc.Sequence._actionOneTwo(action1, cc.delayTime(d2 - d1));\n }\n\n ret = true;\n }\n return ret;\n },\n\n clone:function () {\n var action = new cc.Spawn();\n this._cloneDecoration(action);\n action.initWithTwoActions(this._one.clone(), this._two.clone());\n return action;\n },\n\n startWithTarget:function (target) {\n cc.ActionInterval.prototype.startWithTarget.call(this, target);\n this._one.startWithTarget(target);\n this._two.startWithTarget(target);\n },\n\n stop:function () {\n this._one.stop();\n this._two.stop();\n cc.Action.prototype.stop.call(this);\n },\n\n update:function (dt) {\n dt = this._computeEaseTime(dt);\n if (this._one)\n this._one.update(dt);\n if (this._two)\n this._two.update(dt);\n },\n\n reverse:function () {\n var action = cc.Spawn._actionOneTwo(this._one.reverse(), this._two.reverse());\n this._cloneDecoration(action);\n this._reverseEaseList(action);\n return action;\n }\n});\n\n/**\n * !#en Create a spawn action which runs several actions in parallel.\n * !#zh 同步执行动作,同步执行一组动作。\n * @method spawn\n * @param {FiniteTimeAction|FiniteTimeAction[]} actionOrActionArray\n * @param {FiniteTimeAction} ...tempArray\n * @return {FiniteTimeAction}\n * @example\n * // example\n * var action = cc.spawn(cc.jumpBy(2, cc.v2(300, 0), 50, 4), cc.rotateBy(2, 720));\n * todo: It should be the direct use new\n */\ncc.spawn = function (/*Multiple Arguments*/tempArray) {\n var paramArray = (tempArray instanceof Array) ? tempArray : arguments;\n if (paramArray.length === 1) {\n cc.errorID(1020);\n return null;\n }\n if ((paramArray.length > 0) && (paramArray[paramArray.length - 1] == null))\n cc.logID(1015);\n\n var prev = paramArray[0];\n for (var i = 1; i < paramArray.length; i++) {\n if (paramArray[i] != null)\n prev = cc.Spawn._actionOneTwo(prev, paramArray[i]);\n }\n return prev;\n};\n\ncc.Spawn._actionOneTwo = function (action1, action2) {\n var pSpawn = new cc.Spawn();\n pSpawn.initWithTwoActions(action1, action2);\n return pSpawn;\n};\n\n\n/*\n * Rotates a Node object to a certain angle by modifying its angle property.
\n * The direction will be decided by the shortest angle.\n * @class RotateTo\n * @extends ActionInterval\n * @param {Number} duration duration in seconds\n * @param {Number} dstAngle dstAngle in degrees.\n * @example\n * var rotateTo = new cc.RotateTo(2, 61.0);\n */\ncc.RotateTo = cc.Class({\n name: 'cc.RotateTo',\n extends: cc.ActionInterval,\n\n statics: {\n _reverse: false,\n },\n\n ctor:function (duration, dstAngle) {\n this._startAngle = 0;\n this._dstAngle = 0;\n this._angle = 0;\n dstAngle !== undefined && this.initWithDuration(duration, dstAngle);\n },\n\n /*\n * Initializes the action.\n * @param {Number} duration\n * @param {Number} dstAngle\n * @return {Boolean}\n */\n initWithDuration:function (duration, dstAngle) {\n if (cc.ActionInterval.prototype.initWithDuration.call(this, duration)) {\n this._dstAngle = dstAngle;\n return true;\n }\n return false;\n },\n\n clone:function () {\n var action = new cc.RotateTo();\n this._cloneDecoration(action);\n action.initWithDuration(this._duration, this._dstAngle);\n return action;\n },\n\n startWithTarget:function (target) {\n cc.ActionInterval.prototype.startWithTarget.call(this, target);\n\n let startAngle = target.angle % 360;\n\n let angle = cc.RotateTo._reverse ? (this._dstAngle - startAngle) : (this._dstAngle + startAngle);\n if (angle > 180) angle -= 360;\n if (angle < -180) angle += 360;\n\n this._startAngle = startAngle;\n this._angle = cc.RotateTo._reverse ? angle : -angle;\n },\n\n reverse:function () {\n cc.logID(1016);\n },\n\n update:function (dt) {\n dt = this._computeEaseTime(dt);\n if (this.target) {\n this.target.angle = this._startAngle + this._angle * dt;\n }\n }\n});\n\n/**\n * !#en\n * Rotates a Node object to a certain angle by modifying its angle property.
\n * The direction will be decided by the shortest angle.\n * !#zh 旋转到目标角度,通过逐帧修改它的 angle 属性,旋转方向将由最短的角度决定。\n * @method rotateTo\n * @param {Number} duration duration in seconds\n * @param {Number} dstAngle dstAngle in degrees.\n * @return {ActionInterval}\n * @example\n * // example\n * var rotateTo = cc.rotateTo(2, 61.0);\n */\ncc.rotateTo = function (duration, dstAngle) {\n return new cc.RotateTo(duration, dstAngle);\n};\n\n\n/*\n * Rotates a Node object clockwise a number of degrees by modifying its angle property.\n * Relative to its properties to modify.\n * @class RotateBy\n * @extends ActionInterval\n * @param {Number} duration duration in seconds\n * @param {Number} deltaAngle deltaAngle in degrees\n * @example\n * var actionBy = new cc.RotateBy(2, 360);\n */\ncc.RotateBy = cc.Class({\n name: 'cc.RotateBy',\n extends: cc.ActionInterval,\n\n statics: {\n _reverse: false,\n },\n\n ctor: function (duration, deltaAngle) {\n deltaAngle *= cc.RotateBy._reverse ? 1 : -1;\n\n this._deltaAngle = 0;\n this._startAngle = 0;\n deltaAngle !== undefined && this.initWithDuration(duration, deltaAngle);\n },\n\n /*\n * Initializes the action.\n * @param {Number} duration duration in seconds\n * @param {Number} deltaAngle deltaAngle in degrees\n * @return {Boolean}\n */\n initWithDuration:function (duration, deltaAngle) {\n if (cc.ActionInterval.prototype.initWithDuration.call(this, duration)) {\n this._deltaAngle = deltaAngle;\n return true;\n }\n return false;\n },\n\n clone:function () {\n var action = new cc.RotateBy();\n this._cloneDecoration(action);\n action.initWithDuration(this._duration, this._deltaAngle);\n return action;\n },\n\n startWithTarget:function (target) {\n cc.ActionInterval.prototype.startWithTarget.call(this, target);\n this._startAngle = target.angle;\n },\n\n update:function (dt) {\n dt = this._computeEaseTime(dt);\n if (this.target) {\n this.target.angle = this._startAngle + this._deltaAngle * dt;\n }\n },\n\n reverse:function () {\n var action = new cc.RotateBy();\n action.initWithDuration(this._duration, -this._deltaAngle);\n this._cloneDecoration(action);\n this._reverseEaseList(action);\n return action;\n }\n});\n\n/**\n * !#en\n * Rotates a Node object clockwise a number of degrees by modifying its angle property.\n * Relative to its properties to modify.\n * !#zh 旋转指定的角度。\n * @method rotateBy\n * @param {Number} duration duration in seconds\n * @param {Number} deltaAngle deltaAngle in degrees\n * @return {ActionInterval}\n * @example\n * // example\n * var actionBy = cc.rotateBy(2, 360);\n */\ncc.rotateBy = function (duration, deltaAngle) {\n return new cc.RotateBy(duration, deltaAngle);\n};\n\n\n/*\n *

\n * Moves a Node object x,y pixels by modifying its position property.
\n * x and y are relative to the position of the object.
\n * Several MoveBy actions can be concurrently called, and the resulting
\n * movement will be the sum of individual movements.\n *

\n * @class MoveBy\n * @extends ActionInterval\n * @param {Number} duration duration in seconds\n * @param {Vec2|Number} deltaPos\n * @param {Number} [deltaY]\n * @example\n * var actionTo = cc.moveBy(2, cc.v2(windowSize.width - 40, windowSize.height - 40));\n */\ncc.MoveBy = cc.Class({\n name: 'cc.MoveBy',\n extends: cc.ActionInterval,\n\n ctor:function (duration, deltaPos, deltaY) {\n this._positionDelta = cc.v2(0, 0);\n this._startPosition = cc.v2(0, 0);\n this._previousPosition = cc.v2(0, 0);\n\n deltaPos !== undefined && cc.MoveBy.prototype.initWithDuration.call(this, duration, deltaPos, deltaY);\t\n },\n\n /*\n * Initializes the action.\n * @param {Number} duration duration in seconds\n * @param {Vec2} position\n * @param {Number} [y]\n * @return {Boolean}\n */\n initWithDuration:function (duration, position, y) {\n if (cc.ActionInterval.prototype.initWithDuration.call(this, duration)) {\n\t if(position.x !== undefined) {\n\t\t y = position.y;\n\t\t position = position.x;\n\t }\n\n this._positionDelta.x = position;\n this._positionDelta.y = y;\n return true;\n }\n return false;\n },\n\n clone:function () {\n var action = new cc.MoveBy();\n this._cloneDecoration(action);\n action.initWithDuration(this._duration, this._positionDelta);\n return action;\n },\n\n startWithTarget:function (target) {\n cc.ActionInterval.prototype.startWithTarget.call(this, target);\n var locPosX = target.x;\n var locPosY = target.y;\n this._previousPosition.x = locPosX;\n this._previousPosition.y = locPosY;\n this._startPosition.x = locPosX;\n this._startPosition.y = locPosY;\n },\n\n update:function (dt) {\n dt = this._computeEaseTime(dt);\n if (this.target) {\n var x = this._positionDelta.x * dt;\n var y = this._positionDelta.y * dt;\n var locStartPosition = this._startPosition;\n if (cc.macro.ENABLE_STACKABLE_ACTIONS) {\n var targetX = this.target.x;\n var targetY = this.target.y;\n var locPreviousPosition = this._previousPosition;\n\n locStartPosition.x = locStartPosition.x + targetX - locPreviousPosition.x;\n locStartPosition.y = locStartPosition.y + targetY - locPreviousPosition.y;\n x = x + locStartPosition.x;\n y = y + locStartPosition.y;\n\t locPreviousPosition.x = x;\n\t locPreviousPosition.y = y;\n\t this.target.setPosition(x, y);\n } else {\n this.target.setPosition(locStartPosition.x + x, locStartPosition.y + y);\n }\n }\n },\n\n reverse:function () {\n var action = new cc.MoveBy(this._duration, cc.v2(-this._positionDelta.x, -this._positionDelta.y));\n this._cloneDecoration(action);\n this._reverseEaseList(action);\n return action;\n }\n});\n\n/**\n * !#en\n * Moves a Node object x,y pixels by modifying its position property.
\n * x and y are relative to the position of the object.
\n * Several MoveBy actions can be concurrently called, and the resulting
\n * movement will be the sum of individual movements.\n * !#zh 移动指定的距离。\n * @method moveBy\n * @param {Number} duration duration in seconds\n * @param {Vec2|Number} deltaPos\n * @param {Number} [deltaY]\n * @return {ActionInterval}\n * @example\n * // example\n * var actionTo = cc.moveBy(2, cc.v2(windowSize.width - 40, windowSize.height - 40));\n */\ncc.moveBy = function (duration, deltaPos, deltaY) {\n return new cc.MoveBy(duration, deltaPos, deltaY);\n};\n\n\n/*\n * Moves a Node object to the position x,y. x and y are absolute coordinates by modifying its position property.
\n * Several MoveTo actions can be concurrently called, and the resulting
\n * movement will be the sum of individual movements.\n * @class MoveTo\n * @extends MoveBy\n * @param {Number} duration duration in seconds\n * @param {Vec2|Number} position\n * @param {Number} [y]\n * @example\n * var actionBy = new cc.MoveTo(2, cc.v2(80, 80));\n */\ncc.MoveTo = cc.Class({\n name: 'cc.MoveTo',\n extends: cc.MoveBy,\n\n ctor:function (duration, position, y) {\n this._endPosition = cc.v2(0, 0);\n\t\tposition !== undefined && this.initWithDuration(duration, position, y);\n },\n\n /*\n * Initializes the action.\n * @param {Number} duration duration in seconds\n * @param {Vec2} position\n * @param {Number} [y]\n * @return {Boolean}\n */\n initWithDuration:function (duration, position, y) {\n if (cc.MoveBy.prototype.initWithDuration.call(this, duration, position, y)) {\n\t if(position.x !== undefined) {\n\t\t y = position.y;\n\t\t position = position.x;\n\t }\n\n this._endPosition.x = position;\n this._endPosition.y = y;\n return true;\n }\n return false;\n },\n\n clone:function () {\n var action = new cc.MoveTo();\n this._cloneDecoration(action);\n action.initWithDuration(this._duration, this._endPosition);\n return action;\n },\n\n startWithTarget:function (target) {\n cc.MoveBy.prototype.startWithTarget.call(this, target);\n this._positionDelta.x = this._endPosition.x - target.x;\n this._positionDelta.y = this._endPosition.y - target.y;\n }\n});\n\n/**\n * !#en\n * Moves a Node object to the position x,y. x and y are absolute coordinates by modifying its position property.
\n * Several MoveTo actions can be concurrently called, and the resulting
\n * movement will be the sum of individual movements.\n * !#zh 移动到目标位置。\n * @method moveTo\n * @param {Number} duration duration in seconds\n * @param {Vec2|Number} position\n * @param {Number} [y]\n * @return {ActionInterval}\n * @example\n * // example\n * var actionBy = cc.moveTo(2, cc.v2(80, 80));\n */\ncc.moveTo = function (duration, position, y) {\n return new cc.MoveTo(duration, position, y);\n};\n\n/*\n * Skews a Node object to given angles by modifying its skewX and skewY properties\n * @class SkewTo\n * @extends ActionInterval\n * @param {Number} t time in seconds\n * @param {Number} sx\n * @param {Number} sy\n * @example\n * var actionTo = new cc.SkewTo(2, 37.2, -37.2);\n */\ncc.SkewTo = cc.Class({\n name: 'cc.SkewTo',\n extends: cc.ActionInterval,\n\n ctor: function (t, sx, sy) {\n this._skewX = 0;\n this._skewY = 0;\n this._startSkewX = 0;\n this._startSkewY = 0;\n this._endSkewX = 0;\n this._endSkewY = 0;\n this._deltaX = 0;\n this._deltaY = 0;\n sy !== undefined && cc.SkewTo.prototype.initWithDuration.call(this, t, sx, sy);\n },\n\n /*\n * Initializes the action.\n * @param {Number} t time in seconds\n * @param {Number} sx\n * @param {Number} sy\n * @return {Boolean}\n */\n initWithDuration:function (t, sx, sy) {\n var ret = false;\n if (cc.ActionInterval.prototype.initWithDuration.call(this, t)) {\n this._endSkewX = sx;\n this._endSkewY = sy;\n ret = true;\n }\n return ret;\n },\n\n clone:function () {\n var action = new cc.SkewTo();\n this._cloneDecoration(action);\n action.initWithDuration(this._duration, this._endSkewX, this._endSkewY);\n return action;\n },\n\n startWithTarget:function (target) {\n cc.ActionInterval.prototype.startWithTarget.call(this, target);\n\n this._startSkewX = target.skewX % 180;\n this._deltaX = this._endSkewX - this._startSkewX;\n if (this._deltaX > 180)\n this._deltaX -= 360;\n if (this._deltaX < -180)\n this._deltaX += 360;\n\n this._startSkewY = target.skewY % 360;\n this._deltaY = this._endSkewY - this._startSkewY;\n if (this._deltaY > 180)\n this._deltaY -= 360;\n if (this._deltaY < -180)\n this._deltaY += 360;\n },\n\n update:function (dt) {\n dt = this._computeEaseTime(dt);\n this.target.skewX = this._startSkewX + this._deltaX * dt;\n this.target.skewY = this._startSkewY + this._deltaY * dt;\n }\n});\n\n/**\n * !#en\n * Create a action which skews a Node object to given angles by modifying its skewX and skewY properties.\n * Changes to the specified value.\n * !#zh 偏斜到目标角度。\n * @method skewTo\n * @param {Number} t time in seconds\n * @param {Number} sx\n * @param {Number} sy\n * @return {ActionInterval}\n * @example\n * // example\n * var actionTo = cc.skewTo(2, 37.2, -37.2);\n */\ncc.skewTo = function (t, sx, sy) {\n return new cc.SkewTo(t, sx, sy);\n};\n\n/*\n * Skews a Node object by skewX and skewY degrees.\n * Relative to its property modification.\n * @class SkewBy\n * @extends SkewTo\n * @param {Number} t time in seconds\n * @param {Number} sx skew in degrees for X axis\n * @param {Number} sy skew in degrees for Y axis\n */\ncc.SkewBy = cc.Class({\n name: 'cc.SkewBy',\n extends: cc.SkewTo,\n\n\tctor: function(t, sx, sy) {\n\t\tsy !== undefined && this.initWithDuration(t, sx, sy);\n\t},\n\n /*\n * Initializes the action.\n * @param {Number} t time in seconds\n * @param {Number} deltaSkewX skew in degrees for X axis\n * @param {Number} deltaSkewY skew in degrees for Y axis\n * @return {Boolean}\n */\n initWithDuration:function (t, deltaSkewX, deltaSkewY) {\n var ret = false;\n if (cc.SkewTo.prototype.initWithDuration.call(this, t, deltaSkewX, deltaSkewY)) {\n this._skewX = deltaSkewX;\n this._skewY = deltaSkewY;\n ret = true;\n }\n return ret;\n },\n\n clone:function () {\n var action = new cc.SkewBy();\n this._cloneDecoration(action);\n action.initWithDuration(this._duration, this._skewX, this._skewY);\n return action;\n },\n\n startWithTarget:function (target) {\n cc.SkewTo.prototype.startWithTarget.call(this, target);\n this._deltaX = this._skewX;\n this._deltaY = this._skewY;\n this._endSkewX = this._startSkewX + this._deltaX;\n this._endSkewY = this._startSkewY + this._deltaY;\n },\n\n reverse:function () {\n var action = new cc.SkewBy(this._duration, -this._skewX, -this._skewY);\n this._cloneDecoration(action);\n this._reverseEaseList(action);\n return action;\n }\n});\n\n/**\n * !#en\n * Skews a Node object by skewX and skewY degrees.
\n * Relative to its property modification.\n * !#zh 偏斜指定的角度。\n * @method skewBy\n * @param {Number} t time in seconds\n * @param {Number} sx sx skew in degrees for X axis\n * @param {Number} sy sy skew in degrees for Y axis\n * @return {ActionInterval}\n * @example\n * // example\n * var actionBy = cc.skewBy(2, 0, -90);\n */\ncc.skewBy = function (t, sx, sy) {\n return new cc.SkewBy(t, sx, sy);\n};\n\n\n/*\n * Moves a Node object simulating a parabolic jump movement by modifying its position property.\n * Relative to its movement.\n * @class JumpBy\n * @extends ActionInterval\n * @param {Number} duration\n * @param {Vec2|Number} position\n * @param {Number} [y]\n * @param {Number} height\n * @param {Number} jumps\n * @example\n * var actionBy = new cc.JumpBy(2, cc.v2(300, 0), 50, 4);\n * var actionBy = new cc.JumpBy(2, 300, 0, 50, 4);\n */\ncc.JumpBy = cc.Class({\n name: 'cc.JumpBy',\n extends: cc.ActionInterval,\n\n ctor:function (duration, position, y, height, jumps) {\n this._startPosition = cc.v2(0, 0);\n this._previousPosition = cc.v2(0, 0);\n this._delta = cc.v2(0, 0);\n this._height = 0;\n this._jumps = 0;\n\n height !== undefined && cc.JumpBy.prototype.initWithDuration.call(this, duration, position, y, height, jumps);\n },\n /*\n * Initializes the action.\n * @param {Number} duration\n * @param {Vec2|Number} position\n * @param {Number} [y]\n * @param {Number} height\n * @param {Number} jumps\n * @return {Boolean}\n * @example\n * actionBy.initWithDuration(2, cc.v2(300, 0), 50, 4);\n * actionBy.initWithDuration(2, 300, 0, 50, 4);\n */\n initWithDuration:function (duration, position, y, height, jumps) {\n if (cc.ActionInterval.prototype.initWithDuration.call(this, duration)) {\n\t if (jumps === undefined) {\n\t\t jumps = height;\n\t\t height = y;\n\t\t y = position.y;\n\t\t position = position.x;\n\t }\n this._delta.x = position;\n this._delta.y = y;\n this._height = height;\n this._jumps = jumps;\n return true;\n }\n return false;\n },\n\n clone:function () {\n var action = new cc.JumpBy();\n this._cloneDecoration(action);\n action.initWithDuration(this._duration, this._delta, this._height, this._jumps);\n return action;\n },\n\n startWithTarget:function (target) {\n cc.ActionInterval.prototype.startWithTarget.call(this, target);\n var locPosX = target.x;\n var locPosY = target.y;\n this._previousPosition.x = locPosX;\n this._previousPosition.y = locPosY;\n this._startPosition.x = locPosX;\n this._startPosition.y = locPosY;\n },\n\n update:function (dt) {\n dt = this._computeEaseTime(dt);\n if (this.target) {\n var frac = dt * this._jumps % 1.0;\n var y = this._height * 4 * frac * (1 - frac);\n y += this._delta.y * dt;\n\n var x = this._delta.x * dt;\n var locStartPosition = this._startPosition;\n if (cc.macro.ENABLE_STACKABLE_ACTIONS) {\n var targetX = this.target.x;\n var targetY = this.target.y;\n var locPreviousPosition = this._previousPosition;\n\n locStartPosition.x = locStartPosition.x + targetX - locPreviousPosition.x;\n locStartPosition.y = locStartPosition.y + targetY - locPreviousPosition.y;\n x = x + locStartPosition.x;\n y = y + locStartPosition.y;\n\t locPreviousPosition.x = x;\n\t locPreviousPosition.y = y;\n\t this.target.setPosition(x, y);\n } else {\n this.target.setPosition(locStartPosition.x + x, locStartPosition.y + y);\n }\n }\n },\n\n reverse:function () {\n var action = new cc.JumpBy(this._duration, cc.v2(-this._delta.x, -this._delta.y), this._height, this._jumps);\n this._cloneDecoration(action);\n this._reverseEaseList(action);\n return action;\n }\n});\n\n/**\n * !#en\n * Moves a Node object simulating a parabolic jump movement by modifying it's position property.\n * Relative to its movement.\n * !#zh 用跳跃的方式移动指定的距离。\n * @method jumpBy\n * @param {Number} duration\n * @param {Vec2|Number} position\n * @param {Number} [y]\n * @param {Number} [height]\n * @param {Number} [jumps]\n * @return {ActionInterval}\n * @example\n * // example\n * var actionBy = cc.jumpBy(2, cc.v2(300, 0), 50, 4);\n * var actionBy = cc.jumpBy(2, 300, 0, 50, 4);\n */\ncc.jumpBy = function (duration, position, y, height, jumps) {\n return new cc.JumpBy(duration, position, y, height, jumps);\n};\n\n/*\n * Moves a Node object to a parabolic position simulating a jump movement by modifying it's position property.
\n * Jump to the specified location.\n * @class JumpTo\n * @extends JumpBy\n * @param {Number} duration\n * @param {Vec2|Number} position\n * @param {Number} [y]\n * @param {Number} [height]\n * @param {Number} [jumps]\n * @example\n * var actionTo = new cc.JumpTo(2, cc.v2(300, 0), 50, 4);\n * var actionTo = new cc.JumpTo(2, 300, 0, 50, 4);\n */\ncc.JumpTo = cc.Class({\n name: 'cc.JumpTo',\n extends: cc.JumpBy,\n\n ctor:function (duration, position, y, height, jumps) {\n this._endPosition = cc.v2(0, 0);\n height !== undefined && this.initWithDuration(duration, position, y, height, jumps);\n },\n /*\n * Initializes the action.\n * @param {Number} duration\n * @param {Vec2|Number} position\n * @param {Number} [y]\n * @param {Number} height\n * @param {Number} jumps\n * @return {Boolean}\n * @example\n * actionTo.initWithDuration(2, cc.v2(300, 0), 50, 4);\n * actionTo.initWithDuration(2, 300, 0, 50, 4);\n */\n initWithDuration:function (duration, position, y, height, jumps) {\n if (cc.JumpBy.prototype.initWithDuration.call(this, duration, position, y, height, jumps)) {\n if (jumps === undefined) {\n y = position.y;\n position = position.x;\n }\n this._endPosition.x = position;\n this._endPosition.y = y;\n return true;\n }\n return false;\n },\n\n startWithTarget:function (target) {\n cc.JumpBy.prototype.startWithTarget.call(this, target);\n this._delta.x = this._endPosition.x - this._startPosition.x;\n this._delta.y = this._endPosition.y - this._startPosition.y;\n },\n\n clone:function () {\n var action = new cc.JumpTo();\n this._cloneDecoration(action);\n action.initWithDuration(this._duration, this._endPosition, this._height, this._jumps);\n return action;\n }\n});\n\n/**\n * !#en\n * Moves a Node object to a parabolic position simulating a jump movement by modifying its position property.
\n * Jump to the specified location.\n * !#zh 用跳跃的方式移动到目标位置。\n * @method jumpTo\n * @param {Number} duration\n * @param {Vec2|Number} position\n * @param {Number} [y]\n * @param {Number} [height]\n * @param {Number} [jumps]\n * @return {ActionInterval}\n * @example\n * // example\n * var actionTo = cc.jumpTo(2, cc.v2(300, 300), 50, 4);\n * var actionTo = cc.jumpTo(2, 300, 300, 50, 4);\n */\ncc.jumpTo = function (duration, position, y, height, jumps) {\n return new cc.JumpTo(duration, position, y, height, jumps);\n};\n\n/* An action that moves the target with a cubic Bezier curve by a certain distance.\n * Relative to its movement.\n * @class BezierBy\n * @extends ActionInterval\n * @param {Number} t - time in seconds\n * @param {Vec2[]} c - Array of points\n * @example\n * var bezier = [cc.v2(0, windowSize.height / 2), cc.v2(300, -windowSize.height / 2), cc.v2(300, 100)];\n * var bezierForward = new cc.BezierBy(3, bezier);\n */\nfunction bezierAt (a, b, c, d, t) {\n return (Math.pow(1 - t, 3) * a +\n 3 * t * (Math.pow(1 - t, 2)) * b +\n 3 * Math.pow(t, 2) * (1 - t) * c +\n Math.pow(t, 3) * d );\n};\ncc.BezierBy = cc.Class({\n name: 'cc.BezierBy',\n extends: cc.ActionInterval,\n\n ctor:function (t, c) {\n this._config = [];\n this._startPosition = cc.v2(0, 0);\n this._previousPosition = cc.v2(0, 0);\n c && cc.BezierBy.prototype.initWithDuration.call(this, t, c);\n },\n\n /*\n * Initializes the action.\n * @param {Number} t - time in seconds\n * @param {Vec2[]} c - Array of points\n * @return {Boolean}\n */\n initWithDuration:function (t, c) {\n if (cc.ActionInterval.prototype.initWithDuration.call(this, t)) {\n this._config = c;\n return true;\n }\n return false;\n },\n\n clone:function () {\n var action = new cc.BezierBy();\n this._cloneDecoration(action);\n var newConfigs = [];\n for (var i = 0; i < this._config.length; i++) {\n var selConf = this._config[i];\n newConfigs.push(cc.v2(selConf.x, selConf.y));\n }\n action.initWithDuration(this._duration, newConfigs);\n return action;\n },\n\n startWithTarget:function (target) {\n cc.ActionInterval.prototype.startWithTarget.call(this, target);\n var locPosX = target.x;\n var locPosY = target.y;\n this._previousPosition.x = locPosX;\n this._previousPosition.y = locPosY;\n this._startPosition.x = locPosX;\n this._startPosition.y = locPosY;\n },\n\n update:function (dt) {\n dt = this._computeEaseTime(dt);\n if (this.target) {\n var locConfig = this._config;\n var xa = 0;\n var xb = locConfig[0].x;\n var xc = locConfig[1].x;\n var xd = locConfig[2].x;\n\n var ya = 0;\n var yb = locConfig[0].y;\n var yc = locConfig[1].y;\n var yd = locConfig[2].y;\n\n var x = bezierAt(xa, xb, xc, xd, dt);\n var y = bezierAt(ya, yb, yc, yd, dt);\n\n var locStartPosition = this._startPosition;\n if (cc.macro.ENABLE_STACKABLE_ACTIONS) {\n var targetX = this.target.x;\n var targetY = this.target.y;\n var locPreviousPosition = this._previousPosition;\n\n locStartPosition.x = locStartPosition.x + targetX - locPreviousPosition.x;\n locStartPosition.y = locStartPosition.y + targetY - locPreviousPosition.y;\n x = x + locStartPosition.x;\n y = y + locStartPosition.y;\n\t locPreviousPosition.x = x;\n\t locPreviousPosition.y = y;\n\t this.target.setPosition(x, y);\n } else {\n this.target.setPosition(locStartPosition.x + x, locStartPosition.y + y);\n }\n }\n },\n\n reverse:function () {\n var locConfig = this._config;\n var x0 = locConfig[0].x, y0 = locConfig[0].y;\n var x1 = locConfig[1].x, y1 = locConfig[1].y;\n var x2 = locConfig[2].x, y2 = locConfig[2].y;\n var r = [\n cc.v2(x1 - x2, y1 - y2),\n cc.v2(x0 - x2, y0 - y2),\n cc.v2(-x2, -y2) ];\n var action = new cc.BezierBy(this._duration, r);\n this._cloneDecoration(action);\n this._reverseEaseList(action);\n return action;\n }\n});\n\n/**\n * !#en\n * An action that moves the target with a cubic Bezier curve by a certain distance.\n * Relative to its movement.\n * !#zh 按贝赛尔曲线轨迹移动指定的距离。\n * @method bezierBy\n * @param {Number} t - time in seconds\n * @param {Vec2[]} c - Array of points\n * @return {ActionInterval}\n * @example\n * // example\n * var bezier = [cc.v2(0, windowSize.height / 2), cc.v2(300, -windowSize.height / 2), cc.v2(300, 100)];\n * var bezierForward = cc.bezierBy(3, bezier);\n */\ncc.bezierBy = function (t, c) {\n return new cc.BezierBy(t, c);\n};\n\n\n/* An action that moves the target with a cubic Bezier curve to a destination point.\n * @class BezierTo\n * @extends BezierBy\n * @param {Number} t\n * @param {Vec2[]} c - Array of points\n * @example\n * var bezier = [cc.v2(0, windowSize.height / 2), cc.v2(300, -windowSize.height / 2), cc.v2(300, 100)];\n * var bezierTo = new cc.BezierTo(2, bezier);\n */\ncc.BezierTo = cc.Class({\n name: 'cc.BezierTo',\n extends: cc.BezierBy,\n\n ctor:function (t, c) {\n this._toConfig = [];\n\t\tc && this.initWithDuration(t, c);\n },\n\n /*\n * Initializes the action.\n * @param {Number} t time in seconds\n * @param {Vec2[]} c - Array of points\n * @return {Boolean}\n */\n initWithDuration:function (t, c) {\n if (cc.ActionInterval.prototype.initWithDuration.call(this, t)) {\n this._toConfig = c;\n return true;\n }\n return false;\n },\n\n clone:function () {\n var action = new cc.BezierTo();\n this._cloneDecoration(action);\n action.initWithDuration(this._duration, this._toConfig);\n return action;\n },\n\n startWithTarget:function (target) {\n cc.BezierBy.prototype.startWithTarget.call(this, target);\n var locStartPos = this._startPosition;\n var locToConfig = this._toConfig;\n var locConfig = this._config;\n\n locConfig[0] = locToConfig[0].sub(locStartPos);\n locConfig[1] = locToConfig[1].sub(locStartPos);\n locConfig[2] = locToConfig[2].sub(locStartPos);\n }\n});\n/**\n * !#en An action that moves the target with a cubic Bezier curve to a destination point.\n * !#zh 按贝赛尔曲线轨迹移动到目标位置。\n * @method bezierTo\n * @param {Number} t\n * @param {Vec2[]} c - Array of points\n * @return {ActionInterval}\n * @example\n * // example\n * var bezier = [cc.v2(0, windowSize.height / 2), cc.v2(300, -windowSize.height / 2), cc.v2(300, 100)];\n * var bezierTo = cc.bezierTo(2, bezier);\n */\ncc.bezierTo = function (t, c) {\n return new cc.BezierTo(t, c);\n};\n\n\n/* Scales a Node object to a zoom factor by modifying it's scale property.\n * @warning This action doesn't support \"reverse\"\n * @class ScaleTo\n * @extends ActionInterval\n * @param {Number} duration\n * @param {Number} sx scale parameter in X\n * @param {Number} [sy] scale parameter in Y, if Null equal to sx\n * @example\n * // It scales to 0.5 in both X and Y.\n * var actionTo = new cc.ScaleTo(2, 0.5);\n *\n * // It scales to 0.5 in x and 2 in Y\n * var actionTo = new cc.ScaleTo(2, 0.5, 2);\n */\ncc.ScaleTo = cc.Class({\n name: 'cc.ScaleTo',\n extends: cc.ActionInterval,\n\n ctor:function (duration, sx, sy) {\n this._scaleX = 1;\n this._scaleY = 1;\n this._startScaleX = 1;\n this._startScaleY = 1;\n this._endScaleX = 0;\n this._endScaleY = 0;\n this._deltaX = 0;\n this._deltaY = 0;\n sx !== undefined && cc.ScaleTo.prototype.initWithDuration.call(this, duration, sx, sy);\n },\n\n /*\n * Initializes the action.\n * @param {Number} duration\n * @param {Number} sx\n * @param {Number} [sy=]\n * @return {Boolean}\n */\n initWithDuration:function (duration, sx, sy) { //function overload here\n if (cc.ActionInterval.prototype.initWithDuration.call(this, duration)) {\n this._endScaleX = sx;\n this._endScaleY = (sy != null) ? sy : sx;\n return true;\n }\n return false;\n },\n\n clone:function () {\n var action = new cc.ScaleTo();\n this._cloneDecoration(action);\n action.initWithDuration(this._duration, this._endScaleX, this._endScaleY);\n return action;\n },\n\n startWithTarget:function (target) {\n cc.ActionInterval.prototype.startWithTarget.call(this, target);\n this._startScaleX = target.scaleX;\n this._startScaleY = target.scaleY;\n this._deltaX = this._endScaleX - this._startScaleX;\n this._deltaY = this._endScaleY - this._startScaleY;\n },\n\n update:function (dt) {\n dt = this._computeEaseTime(dt);\n if (this.target) {\n this.target.scaleX = this._startScaleX + this._deltaX * dt;\n\t this.target.scaleY = this._startScaleY + this._deltaY * dt;\n }\n }\n});\n/**\n * !#en Scales a Node object to a zoom factor by modifying it's scale property.\n * !#zh 将节点大小缩放到指定的倍数。\n * @method scaleTo\n * @param {Number} duration\n * @param {Number} sx scale parameter in X\n * @param {Number} [sy] scale parameter in Y, if Null equal to sx\n * @return {ActionInterval}\n * @example\n * // example\n * // It scales to 0.5 in both X and Y.\n * var actionTo = cc.scaleTo(2, 0.5);\n *\n * // It scales to 0.5 in x and 2 in Y\n * var actionTo = cc.scaleTo(2, 0.5, 2);\n */\ncc.scaleTo = function (duration, sx, sy) { //function overload\n return new cc.ScaleTo(duration, sx, sy);\n};\n\n\n/* Scales a Node object a zoom factor by modifying it's scale property.\n * Relative to its changes.\n * @class ScaleBy\n * @extends ScaleTo\n */\ncc.ScaleBy = cc.Class({\n name: 'cc.ScaleBy',\n extends: cc.ScaleTo,\n\n startWithTarget:function (target) {\n cc.ScaleTo.prototype.startWithTarget.call(this, target);\n this._deltaX = this._startScaleX * this._endScaleX - this._startScaleX;\n this._deltaY = this._startScaleY * this._endScaleY - this._startScaleY;\n },\n\n reverse:function () {\n var action = new cc.ScaleBy(this._duration, 1 / this._endScaleX, 1 / this._endScaleY);\n this._cloneDecoration(action);\n this._reverseEaseList(action);\n return action;\n },\n\n clone:function () {\n var action = new cc.ScaleBy();\n this._cloneDecoration(action);\n action.initWithDuration(this._duration, this._endScaleX, this._endScaleY);\n return action;\n }\n});\n/**\n * !#en\n * Scales a Node object a zoom factor by modifying it's scale property.\n * Relative to its changes.\n * !#zh 按指定的倍数缩放节点大小。\n * @method scaleBy\n * @param {Number} duration duration in seconds\n * @param {Number} sx sx scale parameter in X\n * @param {Number|Null} [sy=] sy scale parameter in Y, if Null equal to sx\n * @return {ActionInterval}\n * @example\n * // example without sy, it scales by 2 both in X and Y\n * var actionBy = cc.scaleBy(2, 2);\n *\n * //example with sy, it scales by 0.25 in X and 4.5 in Y\n * var actionBy2 = cc.scaleBy(2, 0.25, 4.5);\n */\ncc.scaleBy = function (duration, sx, sy) {\n return new cc.ScaleBy(duration, sx, sy);\n};\n\n/* Blinks a Node object by modifying it's visible property\n * @class Blink\n * @extends ActionInterval\n * @param {Number} duration duration in seconds\n * @param {Number} blinks blinks in times\n * @example\n * var action = new cc.Blink(2, 10);\n */\ncc.Blink = cc.Class({\n name: 'cc.Blink',\n extends: cc.ActionInterval,\n\n ctor:function (duration, blinks) {\n this._times = 0;\n this._originalState = false;\n\t\tblinks !== undefined && this.initWithDuration(duration, blinks);\n },\n\n /*\n * Initializes the action.\n * @param {Number} duration duration in seconds\n * @param {Number} blinks blinks in times\n * @return {Boolean}\n */\n initWithDuration:function (duration, blinks) {\n if (cc.ActionInterval.prototype.initWithDuration.call(this, duration)) {\n this._times = blinks;\n return true;\n }\n return false;\n },\n\n clone:function () {\n var action = new cc.Blink();\n this._cloneDecoration(action);\n action.initWithDuration(this._duration, this._times);\n return action;\n },\n\n update:function (dt) {\n dt = this._computeEaseTime(dt);\n if (this.target && !this.isDone()) {\n var slice = 1.0 / this._times;\n var m = dt % slice;\n this.target.opacity = (m > (slice / 2)) ? 255 : 0;\n }\n },\n\n startWithTarget:function (target) {\n cc.ActionInterval.prototype.startWithTarget.call(this, target);\n this._originalState = target.opacity;\n },\n\n stop:function () {\n this.target.opacity = this._originalState;\n cc.ActionInterval.prototype.stop.call(this);\n },\n\n reverse:function () {\n var action = new cc.Blink(this._duration, this._times);\n this._cloneDecoration(action);\n this._reverseEaseList(action);\n return action;\n }\n});\n/**\n * !#en Blinks a Node object by modifying it's visible property.\n * !#zh 闪烁(基于透明度)。\n * @method blink\n * @param {Number} duration duration in seconds\n * @param {Number} blinks blinks in times\n * @return {ActionInterval}\n * @example\n * // example\n * var action = cc.blink(2, 10);\n */\ncc.blink = function (duration, blinks) {\n return new cc.Blink(duration, blinks);\n};\n\n/* Fades an object that implements the cc.RGBAProtocol protocol. It modifies the opacity from the current value to a custom one.\n * @warning This action doesn't support \"reverse\"\n * @class FadeTo\n * @extends ActionInterval\n * @param {Number} duration\n * @param {Number} opacity 0-255, 0 is transparent\n * @example\n * var action = new cc.FadeTo(1.0, 0);\n */\ncc.FadeTo = cc.Class({\n name: 'cc.FadeTo',\n extends: cc.ActionInterval,\n\n ctor:function (duration, opacity) {\n this._toOpacity = 0;\n this._fromOpacity = 0;\n opacity !== undefined && cc.FadeTo.prototype.initWithDuration.call(this, duration, opacity);\n },\n\n /*\n * Initializes the action.\n * @param {Number} duration duration in seconds\n * @param {Number} opacity\n * @return {Boolean}\n */\n initWithDuration:function (duration, opacity) {\n if (cc.ActionInterval.prototype.initWithDuration.call(this, duration)) {\n this._toOpacity = opacity;\n return true;\n }\n return false;\n },\n\n clone:function () {\n var action = new cc.FadeTo();\n this._cloneDecoration(action);\n action.initWithDuration(this._duration, this._toOpacity);\n return action;\n },\n\n update:function (time) {\n time = this._computeEaseTime(time);\n var fromOpacity = this._fromOpacity !== undefined ? this._fromOpacity : 255;\n this.target.opacity = fromOpacity + (this._toOpacity - fromOpacity) * time;\n },\n\n startWithTarget:function (target) {\n cc.ActionInterval.prototype.startWithTarget.call(this, target);\n this._fromOpacity = target.opacity;\n }\n});\n\n/**\n * !#en\n * Fades an object that implements the cc.RGBAProtocol protocol.\n * It modifies the opacity from the current value to a custom one.\n * !#zh 修改透明度到指定值。\n * @method fadeTo\n * @param {Number} duration\n * @param {Number} opacity 0-255, 0 is transparent\n * @return {ActionInterval}\n * @example\n * // example\n * var action = cc.fadeTo(1.0, 0);\n */\ncc.fadeTo = function (duration, opacity) {\n return new cc.FadeTo(duration, opacity);\n};\n\n/* Fades In an object that implements the cc.RGBAProtocol protocol. It modifies the opacity from 0 to 255.
\n * The \"reverse\" of this action is FadeOut\n * @class FadeIn\n * @extends FadeTo\n * @param {Number} duration duration in seconds\n */\ncc.FadeIn = cc.Class({\n name: 'cc.FadeIn',\n extends: cc.FadeTo,\n\n ctor:function (duration) {\n if (duration == null)\n duration = 0;\n this._reverseAction = null;\n this.initWithDuration(duration, 255);\n },\n\n reverse:function () {\n var action = new cc.FadeOut();\n action.initWithDuration(this._duration, 0);\n this._cloneDecoration(action);\n this._reverseEaseList(action);\n return action;\n },\n\n clone:function () {\n var action = new cc.FadeIn();\n this._cloneDecoration(action);\n action.initWithDuration(this._duration, this._toOpacity);\n return action;\n },\n\n startWithTarget:function (target) {\n if(this._reverseAction)\n this._toOpacity = this._reverseAction._fromOpacity;\n cc.FadeTo.prototype.startWithTarget.call(this, target);\n }\n});\n\n/**\n * !#en Fades In an object that implements the cc.RGBAProtocol protocol. It modifies the opacity from 0 to 255.\n * !#zh 渐显效果。\n * @method fadeIn\n * @param {Number} duration duration in seconds\n * @return {ActionInterval}\n * @example\n * //example\n * var action = cc.fadeIn(1.0);\n */\ncc.fadeIn = function (duration) {\n return new cc.FadeIn(duration);\n};\n\n\n/* Fades Out an object that implements the cc.RGBAProtocol protocol. It modifies the opacity from 255 to 0.\n * The \"reverse\" of this action is FadeIn\n * @class FadeOut\n * @extends FadeTo\n * @param {Number} duration duration in seconds\n */\ncc.FadeOut = cc.Class({\n name: 'cc.FadeOut',\n extends: cc.FadeTo,\n\n ctor:function (duration) {\n if (duration == null)\n duration = 0;\n this._reverseAction = null;\n this.initWithDuration(duration, 0);\n },\n\n reverse:function () {\n var action = new cc.FadeIn();\n action._reverseAction = this;\n action.initWithDuration(this._duration, 255);\n this._cloneDecoration(action);\n this._reverseEaseList(action);\n return action;\n },\n\n clone:function () {\n var action = new cc.FadeOut();\n this._cloneDecoration(action);\n action.initWithDuration(this._duration, this._toOpacity);\n return action;\n }\n});\n\n/**\n * !#en Fades Out an object that implements the cc.RGBAProtocol protocol. It modifies the opacity from 255 to 0.\n * !#zh 渐隐效果。\n * @method fadeOut\n * @param {Number} d duration in seconds\n * @return {ActionInterval}\n * @example\n * // example\n * var action = cc.fadeOut(1.0);\n */\ncc.fadeOut = function (d) {\n return new cc.FadeOut(d);\n};\n\n/* Tints a Node that implements the cc.NodeRGB protocol from current tint to a custom one.\n * @warning This action doesn't support \"reverse\"\n * @class TintTo\n * @extends ActionInterval\n * @param {Number} duration\n * @param {Number} red 0-255\n * @param {Number} green 0-255\n * @param {Number} blue 0-255\n * @example\n * var action = new cc.TintTo(2, 255, 0, 255);\n */\ncc.TintTo = cc.Class({\n name: 'cc.TintTo',\n extends: cc.ActionInterval,\n\n ctor:function (duration, red, green, blue) {\n this._to = cc.color(0, 0, 0);\n this._from = cc.color(0, 0, 0);\n\n if (red instanceof cc.Color) {\n blue = red.b;\n green = red.g;\n red = red.r;\n }\n\n blue !== undefined && this.initWithDuration(duration, red, green, blue);\n },\n\n /*\n * Initializes the action.\n * @param {Number} duration\n * @param {Number} red 0-255\n * @param {Number} green 0-255\n * @param {Number} blue 0-255\n * @return {Boolean}\n */\n initWithDuration:function (duration, red, green, blue) {\n if (cc.ActionInterval.prototype.initWithDuration.call(this, duration)) {\n this._to = cc.color(red, green, blue);\n return true;\n }\n return false;\n },\n\n clone:function () {\n var action = new cc.TintTo();\n this._cloneDecoration(action);\n var locTo = this._to;\n action.initWithDuration(this._duration, locTo.r, locTo.g, locTo.b);\n return action;\n },\n\n startWithTarget:function (target) {\n cc.ActionInterval.prototype.startWithTarget.call(this, target);\n\n this._from = this.target.color;\n },\n\n update:function (dt) {\n dt = this._computeEaseTime(dt);\n var locFrom = this._from, locTo = this._to;\n if (locFrom) {\n this.target.color = cc.color(\n locFrom.r + (locTo.r - locFrom.r) * dt,\n locFrom.g + (locTo.g - locFrom.g) * dt,\n locFrom.b + (locTo.b - locFrom.b) * dt);\n }\n }\n});\n\n/**\n * !#en Tints a Node that implements the cc.NodeRGB protocol from current tint to a custom one.\n * !#zh 修改颜色到指定值。\n * @method tintTo\n * @param {Number} duration\n * @param {Number} red 0-255\n * @param {Number} green 0-255\n * @param {Number} blue 0-255\n * @return {ActionInterval}\n * @example\n * // example\n * var action = cc.tintTo(2, 255, 0, 255);\n */\ncc.tintTo = function (duration, red, green, blue) {\n return new cc.TintTo(duration, red, green, blue);\n};\n\n\n/* Tints a Node that implements the cc.NodeRGB protocol from current tint to a custom one.\n * Relative to their own color change.\n * @class TintBy\n * @extends ActionInterval\n * @param {Number} duration duration in seconds\n * @param {Number} deltaRed\n * @param {Number} deltaGreen\n * @param {Number} deltaBlue\n * @example\n * var action = new cc.TintBy(2, -127, -255, -127);\n */\ncc.TintBy = cc.Class({\n name: 'cc.TintBy',\n extends: cc.ActionInterval,\n\n ctor:function (duration, deltaRed, deltaGreen, deltaBlue) {\n this._deltaR = 0;\n this._deltaG = 0;\n this._deltaB = 0;\n this._fromR = 0;\n this._fromG = 0;\n this._fromB = 0;\n\t\tdeltaBlue !== undefined && this.initWithDuration(duration, deltaRed, deltaGreen, deltaBlue);\n },\n\n /*\n * Initializes the action.\n * @param {Number} duration\n * @param {Number} deltaRed 0-255\n * @param {Number} deltaGreen 0-255\n * @param {Number} deltaBlue 0-255\n * @return {Boolean}\n */\n initWithDuration:function (duration, deltaRed, deltaGreen, deltaBlue) {\n if (cc.ActionInterval.prototype.initWithDuration.call(this, duration)) {\n this._deltaR = deltaRed;\n this._deltaG = deltaGreen;\n this._deltaB = deltaBlue;\n return true;\n }\n return false;\n },\n\n clone:function () {\n var action = new cc.TintBy();\n this._cloneDecoration(action);\n action.initWithDuration(this._duration, this._deltaR, this._deltaG, this._deltaB);\n return action;\n },\n\n startWithTarget:function (target) {\n cc.ActionInterval.prototype.startWithTarget.call(this, target);\n\n var color = target.color;\n this._fromR = color.r;\n this._fromG = color.g;\n this._fromB = color.b;\n },\n\n update:function (dt) {\n dt = this._computeEaseTime(dt);\n\n this.target.color = cc.color(this._fromR + this._deltaR * dt,\n this._fromG + this._deltaG * dt,\n this._fromB + this._deltaB * dt);\n },\n\n reverse:function () {\n var action = new cc.TintBy(this._duration, -this._deltaR, -this._deltaG, -this._deltaB);\n this._cloneDecoration(action);\n this._reverseEaseList(action);\n return action;\n }\n});\n\n/**\n * !#en\n * Tints a Node that implements the cc.NodeRGB protocol from current tint to a custom one.\n * Relative to their own color change.\n * !#zh 按照指定的增量修改颜色。\n * @method tintBy\n * @param {Number} duration duration in seconds\n * @param {Number} deltaRed\n * @param {Number} deltaGreen\n * @param {Number} deltaBlue\n * @return {ActionInterval}\n * @example\n * // example\n * var action = cc.tintBy(2, -127, -255, -127);\n */\ncc.tintBy = function (duration, deltaRed, deltaGreen, deltaBlue) {\n return new cc.TintBy(duration, deltaRed, deltaGreen, deltaBlue);\n};\n\n/* Delays the action a certain amount of seconds\n * @class DelayTime\n * @extends ActionInterval\n */\ncc.DelayTime = cc.Class({\n name: 'cc.DelayTime',\n extends: cc.ActionInterval,\n\n update:function (dt) {},\n\n reverse:function () {\n var action = new cc.DelayTime(this._duration);\n this._cloneDecoration(action);\n this._reverseEaseList(action);\n return action;\n },\n\n clone:function () {\n var action = new cc.DelayTime();\n this._cloneDecoration(action);\n action.initWithDuration(this._duration);\n return action;\n }\n});\n\n/**\n * !#en Delays the action a certain amount of seconds.\n * !#zh 延迟指定的时间量。\n * @method delayTime\n * @param {Number} d duration in seconds\n * @return {ActionInterval}\n * @example\n * // example\n * var delay = cc.delayTime(1);\n */\ncc.delayTime = function (d) {\n return new cc.DelayTime(d);\n};\n\n/*\n *

\n * Executes an action in reverse order, from time=duration to time=0
\n * @warning Use this action carefully. This action is not sequenceable.
\n * Use it as the default \"reversed\" method of your own actions, but using it outside the \"reversed\"
\n * scope is not recommended.\n *

\n * @class ReverseTime\n * @extends ActionInterval\n * @param {FiniteTimeAction} action\n * @example\n * var reverse = new cc.ReverseTime(this);\n */\ncc.ReverseTime = cc.Class({\n name: 'cc.ReverseTime',\n extends: cc.ActionInterval,\n\n ctor:function (action) {\n this._other = null;\n\t\taction && this.initWithAction(action);\n },\n\n /*\n * @param {FiniteTimeAction} action\n * @return {Boolean}\n */\n initWithAction:function (action) {\n if (!action) {\n cc.errorID(1028);\n return false;\n }\n if (action === this._other) {\n cc.errorID(1029);\n return false;\n }\n\n if (cc.ActionInterval.prototype.initWithDuration.call(this, action._duration)) {\n // Don't leak if action is reused\n this._other = action;\n return true;\n }\n return false;\n },\n\n clone:function () {\n var action = new cc.ReverseTime();\n this._cloneDecoration(action);\n action.initWithAction(this._other.clone());\n return action;\n },\n\n startWithTarget:function (target) {\n cc.ActionInterval.prototype.startWithTarget.call(this, target);\n this._other.startWithTarget(target);\n },\n\n update:function (dt) {\n dt = this._computeEaseTime(dt);\n if (this._other)\n this._other.update(1 - dt);\n },\n\n reverse:function () {\n return this._other.clone();\n },\n\n stop:function () {\n this._other.stop();\n cc.Action.prototype.stop.call(this);\n }\n});\n\n/**\n * !#en Executes an action in reverse order, from time=duration to time=0.\n * !#zh 反转目标动作的时间轴。\n * @method reverseTime\n * @param {FiniteTimeAction} action\n * @return {ActionInterval}\n * @example\n * // example\n * var reverse = cc.reverseTime(this);\n */\ncc.reverseTime = function (action) {\n return new cc.ReverseTime(action);\n};\n\n/*\n *

\n * Overrides the target of an action so that it always runs on the target
\n * specified at action creation rather than the one specified by runAction.\n *

\n * @class TargetedAction\n * @extends ActionInterval\n * @param {Node} target\n * @param {FiniteTimeAction} action\n */\ncc.TargetedAction = cc.Class({\n name: 'cc.TargetedAction',\n extends: cc.ActionInterval,\n\n ctor: function (target, action) {\n this._action = null;\n this._forcedTarget = null;\n\t\taction && this.initWithTarget(target, action);\n },\n\n /*\n * Init an action with the specified action and forced target\n * @param {Node} target\n * @param {FiniteTimeAction} action\n * @return {Boolean}\n */\n initWithTarget:function (target, action) {\n if (this.initWithDuration(action._duration)) {\n this._forcedTarget = target;\n this._action = action;\n return true;\n }\n return false;\n },\n\n clone:function () {\n var action = new cc.TargetedAction();\n this._cloneDecoration(action);\n action.initWithTarget(this._forcedTarget, this._action.clone());\n return action;\n },\n\n startWithTarget:function (target) {\n cc.ActionInterval.prototype.startWithTarget.call(this, target);\n this._action.startWithTarget(this._forcedTarget);\n },\n\n stop:function () {\n this._action.stop();\n },\n\n update:function (dt) {\n dt = this._computeEaseTime(dt);\n this._action.update(dt);\n },\n\n /*\n * return the target that the action will be forced to run with\n * @return {Node}\n */\n getForcedTarget:function () {\n return this._forcedTarget;\n },\n\n /*\n * set the target that the action will be forced to run with\n * @param {Node} forcedTarget\n */\n setForcedTarget:function (forcedTarget) {\n if (this._forcedTarget !== forcedTarget)\n this._forcedTarget = forcedTarget;\n }\n});\n\n/**\n * !#en Create an action with the specified action and forced target.\n * !#zh 用已有动作和一个新的目标节点创建动作。\n * @method targetedAction\n * @param {Node} target\n * @param {FiniteTimeAction} action\n * @return {ActionInterval}\n */\ncc.targetedAction = function (target, action) {\n return new cc.TargetedAction(target, action);\n};\n","/****************************************************************************\n Copyright (c) 2008-2010 Ricardo Quesada\n Copyright (c) 2011-2012 cocos2d-x.org\n Copyright (c) 2013-2016 Chukong Technologies Inc.\n Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.\n\n http://www.cocos2d-x.org\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in\n all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n\nrequire('../core/platform/CCClass');\nvar js = require('../core/platform/js');\n\n/*\n * @class HashElement\n * @constructor\n * @private\n */\nvar HashElement = function () {\n this.actions = [];\n this.target = null; //ccobject\n this.actionIndex = 0;\n this.currentAction = null; //CCAction\n this.paused = false;\n this.lock = false;\n};\n\n/**\n * !#en\n * cc.ActionManager is a class that can manage actions.
\n * Normally you won't need to use this class directly. 99% of the cases you will use the CCNode interface,\n * which uses this class's singleton object.\n * But there are some cases where you might need to use this class.
\n * Examples:
\n * - When you want to run an action where the target is different from a CCNode.
\n * - When you want to pause / resume the actions
\n * !#zh\n * cc.ActionManager 是可以管理动作的单例类。
\n * 通常你并不需要直接使用这个类,99%的情况您将使用 CCNode 的接口。
\n * 但也有一些情况下,您可能需要使用这个类。
\n * 例如:\n * - 当你想要运行一个动作,但目标不是 CCNode 类型时。
\n * - 当你想要暂停/恢复动作时。
\n * @class ActionManager\n * @example {@link cocos2d/core/CCActionManager/ActionManager.js}\n */\ncc.ActionManager = function () {\n this._hashTargets = js.createMap(true);\n this._arrayTargets = [];\n this._currentTarget = null;\n cc.director._scheduler && cc.director._scheduler.enableForTarget(this);\n};\ncc.ActionManager.prototype = {\n constructor: cc.ActionManager,\n _elementPool: [],\n\n _searchElementByTarget:function (arr, target) {\n for (var k = 0; k < arr.length; k++) {\n if (target === arr[k].target)\n return arr[k];\n }\n return null;\n },\n\n _getElement: function (target, paused) {\n var element = this._elementPool.pop();\n if (!element) {\n element = new HashElement();\n }\n element.target = target;\n element.paused = !!paused;\n return element;\n },\n\n _putElement: function (element) {\n element.actions.length = 0;\n element.actionIndex = 0;\n element.currentAction = null;\n element.paused = false;\n element.target = null;\n element.lock = false;\n this._elementPool.push(element);\n },\n\n /**\n * !#en\n * Adds an action with a target.
\n * If the target is already present, then the action will be added to the existing target.\n * If the target is not present, a new instance of this target will be created either paused or not, and the action will be added to the newly created target.\n * When the target is paused, the queued actions won't be 'ticked'.\n * !#zh\n * 增加一个动作,同时还需要提供动作的目标对象,目标对象是否暂停作为参数。
\n * 如果目标已存在,动作将会被直接添加到现有的节点中。
\n * 如果目标不存在,将为这一目标创建一个新的实例,并将动作添加进去。
\n * 当目标状态的 paused 为 true,动作将不会被执行\n *\n * @method addAction\n * @param {Action} action\n * @param {Node} target\n * @param {Boolean} paused\n */\n addAction:function (action, target, paused) {\n if (!action || !target) {\n cc.errorID(1000);\n return;\n }\n\n //check if the action target already exists\n var element = this._hashTargets[target._id];\n //if doesn't exists, create a hashelement and push in mpTargets\n if (!element) {\n element = this._getElement(target, paused);\n this._hashTargets[target._id] = element;\n this._arrayTargets.push(element);\n }\n else if (!element.actions) {\n element.actions = [];\n }\n\n element.actions.push(action);\n action.startWithTarget(target);\n },\n\n /**\n * !#en Removes all actions from all the targets.\n * !#zh 移除所有对象的所有动作。\n * @method removeAllActions\n */\n removeAllActions:function () {\n var locTargets = this._arrayTargets;\n for (var i = 0; i < locTargets.length; i++) {\n var element = locTargets[i];\n if (element)\n this._putElement(element);\n }\n this._arrayTargets.length = 0;\n this._hashTargets = js.createMap(true);\n },\n /**\n * !#en\n * Removes all actions from a certain target.
\n * All the actions that belongs to the target will be removed.\n * !#zh\n * 移除指定对象上的所有动作。
\n * 属于该目标的所有的动作将被删除。\n * @method removeAllActionsFromTarget\n * @param {Node} target\n * @param {Boolean} forceDelete\n */\n removeAllActionsFromTarget:function (target, forceDelete) {\n // explicit null handling\n if (target == null)\n return;\n var element = this._hashTargets[target._id];\n if (element) {\n element.actions.length = 0;\n this._deleteHashElement(element);\n }\n },\n /**\n * !#en Removes an action given an action reference.\n * !#zh 移除指定的动作。\n * @method removeAction \n * @param {Action} action\n */\n removeAction:function (action) {\n // explicit null handling\n if (!action) {\n return;\n }\n var target = action.getOriginalTarget();\n var element = this._hashTargets[target._id];\n\n if (!element) {\n return;\n }\n\n for (var i = 0; i < element.actions.length; i++) {\n if (element.actions[i] === action) {\n element.actions.splice(i, 1);\n // update actionIndex in case we are in tick. looping over the actions\n if (element.actionIndex >= i)\n element.actionIndex--;\n break;\n }\n }\n },\n\n _removeActionByTag (tag, element, target) {\n for (var i = 0, l = element.actions.length; i < l; ++i) {\n var action = element.actions[i];\n if (action && action.getTag() === tag) {\n if (target && action.getOriginalTarget() !== target) {\n continue;\n }\n this._removeActionAtIndex(i, element);\n break;\n }\n }\n },\n\n /**\n * !#en Removes an action given its tag and the target.\n * !#zh 删除指定对象下特定标签的一个动作,将删除首个匹配到的动作。\n * @method removeActionByTag\n * @param {Number} tag\n * @param {Node} [target]\n */\n removeActionByTag:function (tag, target) {\n if(tag === cc.Action.TAG_INVALID)\n cc.logID(1002);\n\n let hashTargets = this._hashTargets;\n if (target) {\n var element = hashTargets[target._id];\n if (element) {\n this._removeActionByTag(tag, element, target);\n }\n }\n else {\n for (let name in hashTargets) {\n let element = hashTargets[name];\n this._removeActionByTag(tag, element);\n }\n }\n },\n\n /**\n * !#en Gets an action given its tag an a target.\n * !#zh 通过目标对象和标签获取一个动作。\n * @method getActionByTag\n * @param {Number} tag\n * @param {Node} target\n * @return {Action|Null} return the Action with the given tag on success\n */\n getActionByTag:function (tag, target) {\n if(tag === cc.Action.TAG_INVALID)\n cc.logID(1004);\n\n var element = this._hashTargets[target._id];\n if (element) {\n if (element.actions != null) {\n for (var i = 0; i < element.actions.length; ++i) {\n var action = element.actions[i];\n if (action && action.getTag() === tag)\n return action;\n }\n }\n cc.logID(1005, tag);\n }\n return null;\n },\n\n\n /**\n * !#en\n * Returns the numbers of actions that are running in a certain target.
\n * Composable actions are counted as 1 action.
\n * Example:
\n * - If you are running 1 Sequence of 7 actions, it will return 1.
\n * - If you are running 7 Sequences of 2 actions, it will return 7.\n * !#zh\n * 返回指定对象下所有正在运行的动作数量。
\n * 组合动作被算作一个动作。
\n * 例如:
\n * - 如果您正在运行 7 个动作组成的序列动作(Sequence),这个函数将返回 1。
\n * - 如果你正在运行 2 个序列动作(Sequence)和 5 个普通动作,这个函数将返回 7。
\n *\n * @method getNumberOfRunningActionsInTarget\n * @param {Node} target\n * @return {Number}\n */\n getNumberOfRunningActionsInTarget:function (target) {\n var element = this._hashTargets[target._id];\n if (element)\n return (element.actions) ? element.actions.length : 0;\n\n return 0;\n },\n /**\n * !#en Pauses the target: all running actions and newly added actions will be paused.\n * !#zh 暂停指定对象:所有正在运行的动作和新添加的动作都将会暂停。\n * @method pauseTarget\n * @param {Node} target\n */\n pauseTarget:function (target) {\n var element = this._hashTargets[target._id];\n if (element)\n element.paused = true;\n },\n /**\n * !#en Resumes the target. All queued actions will be resumed.\n * !#zh 让指定目标恢复运行。在执行序列中所有被暂停的动作将重新恢复运行。\n * @method resumeTarget\n * @param {Node} target\n */\n resumeTarget:function (target) {\n var element = this._hashTargets[target._id];\n if (element)\n element.paused = false;\n },\n\n /**\n * !#en Pauses all running actions, returning a list of targets whose actions were paused.\n * !#zh 暂停所有正在运行的动作,返回一个包含了那些动作被暂停了的目标对象的列表。\n * @method pauseAllRunningActions\n * @return {Array} a list of targets whose actions were paused.\n */\n pauseAllRunningActions:function(){\n var idsWithActions = [];\n var locTargets = this._arrayTargets;\n for(var i = 0; i< locTargets.length; i++){\n var element = locTargets[i];\n if(element && !element.paused){\n element.paused = true;\n idsWithActions.push(element.target);\n }\n }\n return idsWithActions;\n },\n\n /**\n * !#en Resume a set of targets (convenience function to reverse a pauseAllRunningActions or pauseTargets call).\n * !#zh 让一组指定对象恢复运行(用来逆转 pauseAllRunningActions 效果的便捷函数)。\n * @method resumeTargets\n * @param {Array} targetsToResume\n */\n resumeTargets:function(targetsToResume){\n if (!targetsToResume)\n return;\n\n for (var i = 0; i< targetsToResume.length; i++) {\n if(targetsToResume[i])\n this.resumeTarget(targetsToResume[i]);\n }\n },\n\n /**\n * !#en Pause a set of targets.\n * !#zh 暂停一组指定对象。\n * @method pauseTargets\n * @param {Array} targetsToPause\n */\n pauseTargets:function(targetsToPause){\n if (!targetsToPause)\n return;\n\n for (var i = 0; i< targetsToPause.length; i++) {\n if (targetsToPause[i])\n this.pauseTarget(targetsToPause[i]);\n }\n },\n\n /**\n * !#en\n * purges the shared action manager. It releases the retained instance.
\n * because it uses this, so it can not be static.\n * !#zh\n * 清除共用的动作管理器。它释放了持有的实例。
\n * 因为它使用 this,因此它不能是静态的。\n * @method purgeSharedManager\n */\n purgeSharedManager:function () {\n cc.director.getScheduler().unscheduleUpdate(this);\n },\n\n //protected\n _removeActionAtIndex:function (index, element) {\n var action = element.actions[index];\n\n element.actions.splice(index, 1);\n\n // update actionIndex in case we are in tick. looping over the actions\n if (element.actionIndex >= index)\n element.actionIndex--;\n\n if (element.actions.length === 0) {\n this._deleteHashElement(element);\n }\n },\n\n _deleteHashElement:function (element) {\n var ret = false;\n if (element && !element.lock) {\n if (this._hashTargets[element.target._id]) {\n delete this._hashTargets[element.target._id];\n var targets = this._arrayTargets;\n for (var i = 0, l = targets.length; i < l; i++) {\n if (targets[i] === element) {\n targets.splice(i, 1);\n break;\n }\n }\n this._putElement(element);\n ret = true;\n }\n }\n return ret;\n },\n\n /**\n * !#en The ActionManager update。\n * !#zh ActionManager 主循环。\n * @method update\n * @param {Number} dt delta time in seconds\n */\n update:function (dt) {\n var locTargets = this._arrayTargets , locCurrTarget;\n for (var elt = 0; elt < locTargets.length; elt++) {\n this._currentTarget = locTargets[elt];\n locCurrTarget = this._currentTarget;\n if (!locCurrTarget.paused && locCurrTarget.actions) {\n locCurrTarget.lock = true;\n // The 'actions' CCMutableArray may change while inside this loop.\n for (locCurrTarget.actionIndex = 0; locCurrTarget.actionIndex < locCurrTarget.actions.length; locCurrTarget.actionIndex++) {\n locCurrTarget.currentAction = locCurrTarget.actions[locCurrTarget.actionIndex];\n if (!locCurrTarget.currentAction)\n continue;\n\n //use for speed\n locCurrTarget.currentAction.step(dt * ( locCurrTarget.currentAction._speedMethod ? locCurrTarget.currentAction._speed : 1 ) );\n \n if (locCurrTarget.currentAction && locCurrTarget.currentAction.isDone()) {\n locCurrTarget.currentAction.stop();\n var action = locCurrTarget.currentAction;\n // Make currentAction nil to prevent removeAction from salvaging it.\n locCurrTarget.currentAction = null;\n this.removeAction(action);\n }\n\n locCurrTarget.currentAction = null;\n }\n locCurrTarget.lock = false;\n }\n // only delete currentTarget if no actions were scheduled during the cycle (issue #481)\n if (locCurrTarget.actions.length === 0) {\n this._deleteHashElement(locCurrTarget) && elt--;\n }\n }\n }\n};\n\nif (CC_TEST) {\n cc.ActionManager.prototype.isTargetPaused_TEST = function (target) {\n var element = this._hashTargets[target._id];\n return element.paused;\n };\n}\n","/****************************************************************************\n Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n\nrequire('./CCActionManager');\nrequire('./CCAction');\nrequire('./CCActionInterval');\nrequire('./CCActionInstant');\nrequire('./CCActionEase');\nrequire('./CCActionCatmullRom');\nrequire('./tween');\n","import { bezier } from '../animation/bezier';\n\nlet _tweenID = 0;\n\nlet TweenAction = cc.Class({\n name: 'cc.TweenAction',\n extends: cc.ActionInterval,\n\n ctor (duration, props, opts) {\n this._opts = opts = opts || Object.create(null);\n this._props = Object.create(null);\n\n // global easing or progress used for this action\n opts.progress = opts.progress || this.progress;\n if (opts.easing && typeof opts.easing === 'string') {\n let easingName = opts.easing;\n opts.easing = cc.easing[easingName];\n !opts.easing && cc.warnID(1031, easingName);\n }\n\n let relative = this._opts.relative;\n\n for (let name in props) {\n let value = props[name];\n\n // property may have custom easing or progress function\n let easing, progress;\n if (value.value !== undefined && (value.easing || value.progress)) {\n if (typeof value.easing === 'string') {\n easing = cc.easing[value.easing];\n !easing && cc.warnID(1031, value.easing);\n }\n else {\n easing = value.easing;\n }\n progress = value.progress;\n value = value.value;\n }\n\n let isNumber = typeof value === 'number';\n if (!isNumber && (!value.lerp || (relative && !value.add && !value.mul) || !value.clone)) {\n cc.warn(`Can not animate ${name} property, because it do not have [lerp, (add|mul), clone] function.`);\n continue;\n }\n\n let prop = Object.create(null);\n prop.value = value;\n prop.easing = easing;\n prop.progress = progress;\n this._props[name] = prop;\n }\n\n this._originProps = props;\n this.initWithDuration(duration);\n },\n\n clone () {\n var action = new TweenAction(this._duration, this._originProps, this._opts);\n this._cloneDecoration(action);\n return action;\n },\n\n startWithTarget (target) {\n cc.ActionInterval.prototype.startWithTarget.call(this, target);\n\n let relative = !!this._opts.relative;\n let props = this._props;\n for (let name in props) {\n let value = target[name];\n let prop = props[name];\n\n if (typeof value === 'number') {\n prop.start = value;\n prop.current = value;\n prop.end = relative ? value + prop.value : prop.value;\n }\n else {\n prop.start = value.clone();\n prop.current = value.clone();\n prop.end = relative ? (value.add || value.mul).call(value, prop.value) : prop.value;\n }\n }\n },\n\n update (t) {\n let opts = this._opts;\n let easingTime = t;\n if (opts.easing) easingTime = opts.easing(t);\n\n let target = this.target;\n if (!target) return;\n\n let props = this._props;\n let progress = opts.progress;\n for (let name in props) {\n let prop = props[name];\n let time = prop.easing ? prop.easing(t) : easingTime;\n let current = prop.current = (prop.progress || progress)(prop.start, prop.end, prop.current, time);\n target[name] = current;\n }\n\n let onUpdate = opts.onUpdate;\n if (onUpdate) {\n onUpdate(target, t)\n }\n },\n\n progress (start, end, current, t) {\n if (typeof start === 'number') {\n current = start + (end - start) * t;\n }\n else {\n start.lerp(end, t, current);\n }\n return current;\n }\n});\n\nlet SetAction = cc.Class({\n name: 'cc.SetAction',\n extends: cc.ActionInstant,\n\n ctor (props) {\n this._props = {};\n props !== undefined && this.init(props);\n },\n\n init (props) {\n for (let name in props) {\n this._props[name] = props[name];\n }\n return true;\n },\n\n update () {\n let props = this._props;\n let target = this.target;\n for (let name in props) {\n target[name] = props[name];\n }\n },\n\n clone () {\n var action = new SetAction();\n action.init(this._props);\n return action;\n }\n});\n\n\n\n/**\n * !#en\n * Tween provide a simple and flexible way to create action. Tween's api is more flexible than `cc.Action`:\n * - Support creating an action sequence in chained api.\n * - Support animate any objects' any properties, not limited to node's properties. By contrast, `cc.Action` needs to create a new action class to support new node property.\n * - Support working with `cc.Action`.\n * - Support easing and progress function.\n * !#zh\n * Tween 提供了一个简单灵活的方法来创建 action。相对于 Cocos 传统的 `cc.Action`,`cc.Tween` 在创建动画上要灵活非常多:\n * - 支持以链式结构的方式创建一个动画序列。\n * - 支持对任意对象的任意属性进行缓动,不再局限于节点上的属性,而 `cc.Action` 添加一个属性的支持时还需要添加一个新的 action 类型。\n * - 支持与 `cc.Action` 混用。\n * - 支持设置 {{#crossLink \"Easing\"}}{{/crossLink}} 或者 progress 函数。\n * @class Tween\n * @example\n * cc.tween(node)\n * .to(1, {scale: 2, position: cc.v3(100, 100, 100)})\n * .call(() => { console.log('This is a callback'); })\n * .by(1, {scale: 3, position: cc.v3(200, 200, 200)}, {easing: 'sineOutIn'})\n * .start(cc.find('Canvas/cocos'));\n * @typescript Tween\n */\nfunction Tween (target) {\n this._actions = [];\n this._finalAction = null;\n this._target = target;\n this._tag = cc.Action.TAG_INVALID;\n}\n\n/**\n * @method constructor\n * @param {Object} [target]\n */\n\n/**\n * !#en Stop all tweens\n * !#zh 停止所有缓动\n * @method stopAll\n * @static\n */\nTween.stopAll = function () {\n cc.director.getActionManager().removeAllActions();\n}\n/**\n * !#en Stop all tweens by tag\n * !#zh 停止所有指定标签的缓动\n * @method stopAllByTag\n * @static\n * @param {number} tag\n */\nTween.stopAllByTag = function (tag) {\n cc.director.getActionManager().removeActionByTag(tag);\n}\n/**\n * !#en Stop all tweens by target\n * !#zh 停止所有指定对象的缓动\n * @method stopAllByTarget\n * @static\n * @param {Object} target\n */\nTween.stopAllByTarget = function (target) {\n cc.director.getActionManager().removeAllActionsFromTarget(target);\n}\n\n/**\n * !#en\n * Insert an action or tween to this sequence\n * !#zh\n * 插入一个 action 或者 tween 到队列中\n * @method then \n * @param {Action|Tween} other\n * @return {Tween}\n * @typescript then(other: Action|Tween): Tween\n */\nTween.prototype.then = function (other) {\n if (other instanceof cc.Action) {\n this._actions.push(other.clone());\n }\n else {\n this._actions.push(other._union());\n }\n return this;\n};\n\n\n/**\n * !#en\n * Set tween target\n * !#zh\n * 设置 tween 的 target\n * @method target\n * @param {Object} target\n * @return {Tween}\n * @typescript target(target: any): Tween\n */\nTween.prototype.target = function (target) {\n this._target = target;\n return this;\n};\n\n/**\n * !#en\n * Start this tween\n * !#zh\n * 运行当前 tween\n * @method start\n * @return {Tween}\n * @typescript start(): Tween\n */\nTween.prototype.start = function () {\n let target = this._target;\n if (!target) {\n cc.warn('Please set target to tween first');\n return this;\n }\n if (target instanceof cc.Object && !target.isValid) {\n return;\n }\n\n if (this._finalAction) {\n cc.director.getActionManager().removeAction(this._finalAction);\n }\n this._finalAction = this._union();\n\n if (target._id === undefined) {\n target._id = ++_tweenID;\n }\n\n this._finalAction.setTag(this._tag);\n cc.director.getActionManager().addAction(this._finalAction, target, false);\n return this;\n};\n\n/**\n * !#en\n * Stop this tween\n * !#zh\n * 停止当前 tween\n * @method stop\n * @return {Tween}\n * @typescript stop(): Tween\n */\nTween.prototype.stop = function () {\n if (this._finalAction) {\n cc.director.getActionManager().removeAction(this._finalAction);\n }\n return this;\n};\n\n\n/**\n * !#en Sets tween tag\n * !#zh 设置缓动的标签\n * @method tag\n * @param {number} tag\n * @return {Tween}\n * @typescript tag(tag: number): Tween\n */\nTween.prototype.tag = function (tag) {\n this._tag = tag;\n return this;\n};\n\n\n/**\n * !#en\n * Clone a tween\n * !#zh\n * 克隆当前 tween\n * @method clone\n * @param {Object} [target]\n * @return {Tween}\n * @typescript clone(target?: any): Tween\n */\nTween.prototype.clone = function (target) {\n let action = this._union();\n return cc.tween(target).then(action.clone());\n};\n\n/**\n * !#en\n * Integrate all previous actions to an action.\n * !#zh\n * 将之前所有的 action 整合为一个 action。\n * @method union\n * @return {Tween}\n * @typescritp union(): Tween\n */\nTween.prototype.union = function () {\n let action = this._union();\n this._actions.length = 0;\n this._actions.push(action);\n return this;\n};\n\nTween.prototype._union = function () {\n let actions = this._actions;\n\n if (actions.length === 1) {\n actions = actions[0];\n }\n else {\n actions = cc.sequence(actions);\n }\n\n return actions;\n};\n\nObject.assign(Tween.prototype, {\n /**\n * !#en Sets target's position property according to the bezier curve.\n * !#zh 按照贝塞尔路径设置目标的 position 属性。\n * @method bezierTo\n * @param {number} duration\n * @param {cc.Vec2} c1\n * @param {cc.Vec2} c2\n * @param {cc.Vec2} to\n * @return {Tween}\n * @typescript bezierTo(duration: number, c1: Vec2, c2: Vec2, to: Vec2): Tween\n */\n bezierTo (duration, c1, c2, to, opts) {\n let c0x = c1.x, c0y = c1.y,\n c1x = c2.x, c1y = c2.y;\n opts = opts || Object.create(null);\n opts.progress = function (start, end, current, t) {\n current.x = bezier(start.x, c0x, c1x, end.x, t);\n current.y = bezier(start.y, c0y, c1y, end.y, t);\n return current;\n }\n return this.to(duration, { position: to }, opts);\n },\n\n /**\n * !#en Sets target's position property according to the bezier curve.\n * !#zh 按照贝塞尔路径设置目标的 position 属性。\n * @method bezierBy\n * @param {number} duration\n * @param {cc.Vec2} c1\n * @param {cc.Vec2} c2\n * @param {cc.Vec2} to\n * @return {Tween}\n * @typescript bezierBy(duration: number, c1: Vec2, c2: Vec2, to: Vec2): Tween\n */\n bezierBy (duration, c1, c2, to, opts) {\n let c0x = c1.x, c0y = c1.y,\n c1x = c2.x, c1y = c2.y;\n opts = opts || Object.create(null);\n opts.progress = function (start, end, current, t) {\n let sx = start.x, sy = start.y;\n current.x = bezier(sx, c0x + sx, c1x + sx, end.x, t);\n current.y = bezier(sy, c0y + sy, c1y + sy, end.y, t);\n return current;\n }\n return this.by(duration, { position: to }, opts);\n },\n\n /**\n * !#en Flips target's scaleX\n * !#zh 翻转目标的 scaleX 属性\n * @method flipX\n * @return {Tween}\n * @typescript flipX(): Tween\n */\n flipX () {\n return this.call(() => { this._target.scaleX *= -1; }, this);\n \n },\n /**\n * !#en Flips target's scaleY\n * !#zh 翻转目标的 scaleY 属性\n * @method flipY\n * @return {Tween}\n * @typescript flipY(): Tween\n */\n flipY () {\n return this.call(() => { this._target.scaleY *= -1; }, this);\n },\n\n /**\n * !#en Blinks target by set target's opacity property\n * !#zh 通过设置目标的 opacity 属性达到闪烁效果\n * @method blink\n * @param {number} duration\n * @param {number} times\n * @param {Object} [opts]\n * @param {Function} [opts.progress]\n * @param {Function|String} [opts.easing]\n * @return {Tween}\n * @typescript blink(duration: number, times: number, opts?: {progress?: Function; easing?: Function|string; }): Tween\n */\n blink (duration, times, opts) {\n var slice = 1.0 / times;\n opts = opts || Object.create(null);\n opts.progress = function (start, end, current, t) {\n if (t >= 1) {\n return start;\n }\n else {\n var m = t % slice;\n return (m > (slice / 2)) ? 255 : 0;\n }\n };\n return this.to(duration, { opacity: 1 }, opts);\n },\n})\n\nlet tmp_args = [];\n\nfunction wrapAction (action) {\n return function () {\n tmp_args.length = 0;\n for (let l = arguments.length, i = 0; i < l; i++) {\n let arg = tmp_args[i] = arguments[i];\n if (arg instanceof Tween) {\n tmp_args[i] = arg._union();\n }\n }\n\n return action.apply(this, tmp_args);\n };\n}\n\nlet actions = {\n /**\n * !#en\n * Add an action which calculate with absolute value\n * !#zh\n * 添加一个对属性进行绝对值计算的 action\n * @method to\n * @param {Number} duration\n * @param {Object} props - {scale: 2, position: cc.v3(100, 100, 100)}\n * @param {Object} [opts]\n * @param {Function} [opts.progress]\n * @param {Function|String} [opts.easing]\n * @return {Tween}\n * @typescript\n * to>(duration: number, props: ConstructorType, opts?: OPTS): Tween\n */\n to (duration, props, opts) {\n opts = opts || Object.create(null);\n opts.relative = false;\n return new TweenAction(duration, props, opts);\n },\n\n /**\n * !#en\n * Add an action which calculate with relative value\n * !#zh\n * 添加一个对属性进行相对值计算的 action\n * @method by\n * @param {Number} duration\n * @param {Object} props - {scale: 2, position: cc.v3(100, 100, 100)}\n * @param {Object} [opts]\n * @param {Function} [opts.progress]\n * @param {Function|String} [opts.easing]\n * @return {Tween}\n * @typescript\n * by>(duration: number, props: ConstructorType, opts?: OPTS): Tween\n */\n by (duration, props, opts) {\n opts = opts || Object.create(null);\n opts.relative = true;\n return new TweenAction(duration, props, opts);\n },\n\n /**\n * !#en\n * Directly set target properties\n * !#zh\n * 直接设置 target 的属性\n * @method set\n * @param {Object} props\n * @return {Tween}\n * @typescript\n * set (props: ConstructorType) : Tween\n */\n set (props) {\n return new SetAction(props);\n },\n\n /**\n * !#en\n * Add an delay action\n * !#zh\n * 添加一个延时 action\n * @method delay\n * @param {Number} duration\n * @return {Tween}\n * @typescript delay(duration: number): Tween\n */\n delay: cc.delayTime,\n /**\n * !#en\n * Add an callback action\n * !#zh\n * 添加一个回调 action\n * @method call\n * @param {Function} callback\n * @param {object} [selectTarget]\n * @return {Tween}\n * @typescript call(callback: Function, selectTarget?: object): Tween\n */\n call: cc.callFunc,\n /**\n * !#en\n * Add an hide action\n * !#zh\n * 添加一个隐藏 action\n * @method hide\n * @return {Tween}\n * @typescript hide(): Tween\n */\n hide: cc.hide,\n /**\n * !#en\n * Add an show action\n * !#zh\n * 添加一个显示 action\n * @method show\n * @return {Tween}\n * @typescript show(): Tween\n */\n show: cc.show,\n /**\n * !#en\n * Add an removeSelf action\n * !#zh\n * 添加一个移除自己 action\n * @method removeSelf\n * @return {Tween}\n * @typescript removeSelf(): Tween\n */\n removeSelf: cc.removeSelf,\n /**\n * !#en\n * Add an sequence action\n * !#zh\n * 添加一个队列 action\n * @method sequence\n * @param {Action|Tween} action\n * @param {Action|Tween} ...actions\n * @return {Tween}\n * @typescript sequence(action: Action|Tween, ...actions: (Action|Tween)[]): Tween\n */\n sequence: wrapAction(cc.sequence),\n /**\n * !#en\n * Add an parallel action\n * !#zh\n * 添加一个并行 action\n * @method parallel\n * @param {Action|Tween} action\n * @param {Action|Tween} ...actions\n * @return {Tween}\n * @typescript parallel(action: Action|Tween, ...actions: (Action|Tween)[]): Tween\n */\n parallel: wrapAction(cc.spawn)\n};\n\n// these action will use previous action as their parameters\nlet previousAsInputActions = {\n /**\n * !#en\n * Add an repeat action. This action will integrate before actions to a sequence action as their parameters.\n * !#zh\n * 添加一个重复 action,这个 action 会将前一个动作作为他的参数。\n * @method repeat\n * @param {Number} repeatTimes\n * @param {Action | Tween} [action]\n * @return {Tween}\n * @typescript repeat(repeatTimes: number, action?: Action|Tween): Tween\n */\n repeat: cc.repeat,\n /**\n * !#en\n * Add an repeat forever action. This action will integrate before actions to a sequence action as their parameters.\n * !#zh\n * 添加一个永久重复 action,这个 action 会将前一个动作作为他的参数。\n * @method repeatForever\n * @param {Action | Tween} [action]\n * @return {Tween}\n * @typescript repeatForever(action?: Action|Tween): Tween\n */\n repeatForever: function (action) {\n // TODO: fixed with cc.repeatForever\n return cc.repeat(action, 10e8);\n },\n /**\n * !#en\n * Add an reverse time action. This action will integrate before actions to a sequence action as their parameters.\n * !#zh\n * 添加一个倒置时间 action,这个 action 会将前一个动作作为他的参数。\n * @method reverseTime\n * @param {Action | Tween} [action]\n * @return {Tween}\n * @typescript reverseTime(action?: Action|Tween): Tween\n */\n reverseTime: cc.reverseTime,\n};\n\n\nlet keys = Object.keys(actions);\nfor (let i = 0; i < keys.length; i++) {\n let key = keys[i];\n Tween.prototype[key] = function () {\n let action = actions[key].apply(this, arguments);\n this._actions.push(action);\n return this;\n };\n}\n\nkeys = Object.keys(previousAsInputActions);\nfor (let i = 0; i < keys.length; i++) {\n let key = keys[i];\n Tween.prototype[key] = function () {\n\n let actions = this._actions;\n let action = arguments[arguments.length - 1];\n let length = arguments.length - 1;\n\n if (action instanceof cc.Tween) {\n action = action._union();\n }\n else if (!(action instanceof cc.Action)) {\n action = actions[actions.length - 1];\n actions.length -= 1;\n length += 1;\n }\n\n let args = [action];\n for (let i = 0; i < length; i++) {\n args.push(arguments[i]);\n }\n\n action = previousAsInputActions[key].apply(this, args);\n actions.push(action);\n\n return this;\n };\n}\n\n/**\n * @module cc\n */\n\n/**\n * @method tween\n * @param {Object} [target] - the target to animate\n * @return {Tween}\n * @typescript\n * tween (target?: T) : Tween\n */\ncc.tween = function (target) {\n return new Tween(target);\n};\n\ncc.Tween = Tween;\n \n","/****************************************************************************\n Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n\nconst js = cc.js;\nconst Playable = require('./playable');\nconst { EventAnimCurve, EventInfo } = require('./animation-curves');\nconst WrapModeMask = require('./types').WrapModeMask;\nconst binarySearch = require('../core/utils/binary-search').binarySearchEpsilon;\n\n// The actual animator for Animation Component\n\nfunction AnimationAnimator (target, animation) {\n Playable.call(this);\n this.target = target;\n this.animation = animation;\n\n this._anims = new js.array.MutableForwardIterator([]);\n}\njs.extend(AnimationAnimator, Playable);\nlet p = AnimationAnimator.prototype;\n\np.playState = function (state, startTime) {\n if (!state.clip) {\n return;\n }\n\n if (!state.curveLoaded) {\n initClipData(this.target, state);\n }\n\n state.animator = this;\n state.play();\n\n if (typeof startTime === 'number') {\n state.setTime(startTime);\n }\n\n this.play();\n};\n\np.stopStatesExcept = function (state) {\n let iterator = this._anims;\n let array = iterator.array;\n for (iterator.i = 0; iterator.i < array.length; ++iterator.i) {\n let anim = array[iterator.i];\n if (anim === state) {\n continue;\n }\n\n this.stopState(anim);\n }\n};\n\np.addAnimation = function (anim) {\n let index = this._anims.array.indexOf(anim);\n if (index === -1) {\n this._anims.push(anim);\n }\n\n anim._setEventTarget(this.animation);\n};\n\np.removeAnimation = function (anim) {\n let index = this._anims.array.indexOf(anim);\n if (index >= 0) {\n this._anims.fastRemoveAt(index);\n\n if (this._anims.array.length === 0) {\n this.stop();\n }\n }\n else {\n cc.errorID(3907);\n }\n\n anim.animator = null;\n};\n\np.sample = function () {\n let iterator = this._anims;\n let array = iterator.array;\n for (iterator.i = 0; iterator.i < array.length; ++iterator.i) {\n let anim = array[iterator.i];\n anim.sample();\n }\n};\n\np.stopState = function (state) {\n if (state) {\n state.stop();\n }\n};\n\np.pauseState = function (state) {\n if (state) {\n state.pause();\n }\n};\n\np.resumeState = function (state) {\n if (state) {\n state.resume();\n }\n\n if (this.isPaused) {\n this.resume();\n }\n};\n\np.setStateTime = function (state, time) {\n if (time !== undefined) {\n if (state) {\n state.setTime(time);\n state.sample();\n } \n }\n else {\n time = state;\n\n let array = this._anims.array;\n for (let i = 0; i < array.length; ++i) {\n let anim = array[i];\n anim.setTime(time);\n anim.sample();\n }\n }\n};\n\np.onStop = function () {\n let iterator = this._anims;\n let array = iterator.array;\n for (iterator.i = 0; iterator.i < array.length; ++iterator.i) {\n let anim = array[iterator.i];\n anim.stop();\n }\n};\n\np.onPause = function () {\n let array = this._anims.array;\n for (let i = 0; i < array.length; ++i) {\n let anim = array[i];\n anim.pause();\n\n // need to unbind animator to anim, or it maybe cannot be gc.\n anim.animator = null;\n }\n};\n\np.onResume = function () {\n let array = this._anims.array;\n for (let i = 0; i < array.length; ++i) {\n let anim = array[i];\n \n // rebind animator to anim\n anim.animator = this;\n\n anim.resume();\n }\n};\n\np._reloadClip = function (state) {\n initClipData(this.target, state);\n};\n\n// 这个方法应该是 SampledAnimCurve 才能用\nfunction createBatchedProperty (propPath, firstDotIndex, mainValue, animValue) {\n mainValue = mainValue.clone();\n let nextValue = mainValue;\n let leftIndex = firstDotIndex + 1;\n let rightIndex = propPath.indexOf('.', leftIndex);\n\n // scan property path\n while (rightIndex !== -1) {\n let nextName = propPath.slice(leftIndex, rightIndex);\n nextValue = nextValue[nextName];\n leftIndex = rightIndex + 1;\n rightIndex = propPath.indexOf('.', leftIndex);\n }\n let lastPropName = propPath.slice(leftIndex);\n nextValue[lastPropName] = animValue;\n\n return mainValue;\n}\n\nif (CC_TEST) {\n cc._Test.createBatchedProperty = createBatchedProperty;\n}\n\n\nfunction initClipData (root, state) {\n let clip = state.clip;\n\n state.duration = clip.duration;\n state.speed = clip.speed;\n state.wrapMode = clip.wrapMode;\n state.frameRate = clip.sample;\n\n if ((state.wrapMode & WrapModeMask.Loop) === WrapModeMask.Loop) {\n state.repeatCount = Infinity;\n }\n else {\n state.repeatCount = 1;\n }\n\n let curves = state.curves = clip.createCurves(state, root);\n\n // events curve\n\n let events = clip.events;\n\n if (!CC_EDITOR && events) {\n let curve;\n\n for (let i = 0, l = events.length; i < l; i++) {\n if (!curve) {\n curve = new EventAnimCurve();\n curve.target = root;\n curves.push(curve);\n }\n\n let eventData = events[i];\n let ratio = eventData.frame / state.duration;\n\n let eventInfo;\n let index = binarySearch(curve.ratios, ratio);\n if (index >= 0) {\n eventInfo = curve.events[index];\n }\n else {\n eventInfo = new EventInfo();\n curve.ratios.push(ratio);\n curve.events.push(eventInfo);\n }\n\n eventInfo.add(eventData.func, eventData.params);\n }\n }\n}\n\nif (CC_TEST) {\n cc._Test.initClipData = initClipData;\n}\n\n\nmodule.exports = AnimationAnimator;\n","/****************************************************************************\n Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n\nconst WrapMode = require('./types').WrapMode;\nconst { DynamicAnimCurve, quickFindIndex } = require('./animation-curves');\nconst sampleMotionPaths = require('./motion-path-helper').sampleMotionPaths;\nconst binarySearch = require('../core/utils/binary-search').binarySearchEpsilon;\n\n/**\n * !#en Class for animation data handling.\n * !#zh 动画剪辑,用于存储动画数据。\n * @class AnimationClip\n * @extends Asset\n */\nvar AnimationClip = cc.Class({\n name: 'cc.AnimationClip',\n extends: cc.Asset,\n\n properties: {\n _duration: {\n default: 0,\n type: cc.Float,\n },\n\n /**\n * !#en Duration of this animation.\n * !#zh 动画的持续时间。\n * @property duration\n * @type {Number}\n */\n duration: {\n get: function () { return this._duration; },\n },\n\n /**\n * !#en FrameRate of this animation.\n * !#zh 动画的帧速率。\n * @property sample\n * @type {Number}\n */\n sample: {\n default: 60,\n },\n\n /**\n * !#en Speed of this animation.\n * !#zh 动画的播放速度。\n * @property speed\n * @type {Number}\n */\n speed: {\n default: 1\n },\n\n /**\n * !#en WrapMode of this animation.\n * !#zh 动画的循环模式。\n * @property wrapMode\n * @type {WrapMode}\n */\n wrapMode: {\n default: WrapMode.Normal\n },\n\n /**\n * !#en Curve data.\n * !#zh 曲线数据。\n * @property curveData\n * @type {Object}\n * @example {@link cocos2d/core/animation-clip/curve-data.js}\n */\n curveData: {\n default: {},\n visible: false,\n },\n\n /**\n * !#en Event data.\n * !#zh 事件数据。\n * @property events\n * @type {Object[]}\n * @example {@link cocos2d/core/animation-clip/event-data.js}\n * @typescript events: {frame: number, func: string, params: string[]}[]\n */\n events: {\n default: [],\n visible: false,\n }\n },\n\n statics: {\n /**\n * !#en Crate clip with a set of sprite frames\n * !#zh 使用一组序列帧图片来创建动画剪辑\n * @method createWithSpriteFrames\n * @param {[SpriteFrame]} spriteFrames\n * @param {Number} sample\n * @return {AnimationClip}\n * @static\n * @example\n *\n * var clip = cc.AnimationClip.createWithSpriteFrames(spriteFrames, 10);\n *\n */\n createWithSpriteFrames: function (spriteFrames, sample) {\n if (!Array.isArray(spriteFrames)) {\n cc.errorID(3905);\n return null;\n }\n\n var clip = new AnimationClip();\n clip.sample = sample || clip.sample;\n\n clip._duration = spriteFrames.length / clip.sample;\n\n var frames = [];\n var step = 1 / clip.sample;\n\n for (var i = 0, l = spriteFrames.length; i < l; i++) {\n frames[i] = { frame: (i * step), value: spriteFrames[i] };\n }\n\n clip.curveData = {\n comps: {\n // component\n 'cc.Sprite': {\n // component properties\n 'spriteFrame': frames\n }\n }\n };\n\n return clip;\n }\n },\n\n onLoad () {\n this._duration = Number.parseFloat(this.duration);\n this.speed = Number.parseFloat(this.speed);\n this.wrapMode = Number.parseInt(this.wrapMode);\n this.frameRate = Number.parseFloat(this.sample);\n },\n\n createPropCurve (target, propPath, keyframes) {\n let motionPaths = [];\n let isMotionPathProp = target instanceof cc.Node && propPath === 'position';\n\n let curve = new DynamicAnimCurve();\n\n // 缓存目标对象,所以 Component 必须一开始都创建好并且不能运行时动态替换……\n curve.target = target;\n curve.prop = propPath;\n\n // for each keyframes\n for (let i = 0, l = keyframes.length; i < l; i++) {\n let keyframe = keyframes[i];\n let ratio = keyframe.frame / this.duration;\n curve.ratios.push(ratio);\n\n if (isMotionPathProp) {\n motionPaths.push(keyframe.motionPath);\n }\n\n let curveValue = keyframe.value;\n curve.values.push(curveValue);\n\n let curveTypes = keyframe.curve;\n if (curveTypes) {\n if (typeof curveTypes === 'string') {\n curve.types.push(curveTypes);\n continue;\n }\n else if (Array.isArray(curveTypes)) {\n if (curveTypes[0] === curveTypes[1] &&\n curveTypes[2] === curveTypes[3]) {\n curve.types.push(DynamicAnimCurve.Linear);\n }\n else {\n curve.types.push(DynamicAnimCurve.Bezier(curveTypes));\n }\n continue;\n }\n }\n curve.types.push(DynamicAnimCurve.Linear);\n }\n \n if (isMotionPathProp) {\n sampleMotionPaths(motionPaths, curve, this.duration, this.sample, target);\n }\n\n // if every piece of ratios are the same, we can use the quick function to find frame index.\n let ratios = curve.ratios;\n let currRatioDif, lastRatioDif;\n let canOptimize = true;\n let EPSILON = 1e-6;\n for (let i = 1, l = ratios.length; i < l; i++) {\n currRatioDif = ratios[i] - ratios[i-1];\n if (i === 1) {\n lastRatioDif = currRatioDif;\n }\n else if (Math.abs(currRatioDif - lastRatioDif) > EPSILON) {\n canOptimize = false; \n break;\n }\n }\n\n curve._findFrameIndex = canOptimize ? quickFindIndex : binarySearch;\n\n // find the lerp function\n let firstValue = curve.values[0];\n if (firstValue !== undefined && firstValue !== null && !curve._lerp) {\n if (typeof firstValue === 'number') {\n curve._lerp = DynamicAnimCurve.prototype._lerpNumber;\n }\n else if (firstValue instanceof cc.Quat) {\n curve._lerp = DynamicAnimCurve.prototype._lerpQuat;\n }\n else if (firstValue instanceof cc.Vec2) {\n curve._lerp = DynamicAnimCurve.prototype._lerpVector2;\n }\n else if (firstValue instanceof cc.Vec3) {\n curve._lerp = DynamicAnimCurve.prototype._lerpVector3;\n }\n else if (firstValue.lerp) {\n curve._lerp = DynamicAnimCurve.prototype._lerpObject;\n }\n }\n\n return curve;\n },\n\n createTargetCurves (target, curveData, curves) {\n let propsData = curveData.props;\n let compsData = curveData.comps;\n\n if (propsData) {\n for (let propPath in propsData) {\n let data = propsData[propPath];\n let curve = this.createPropCurve(target, propPath, data);\n\n curves.push(curve);\n }\n }\n\n if (compsData) {\n for (let compName in compsData) {\n let comp = target.getComponent(compName);\n\n if (!comp) {\n continue;\n }\n\n let compData = compsData[compName];\n for (let propPath in compData) {\n let data = compData[propPath];\n let curve = this.createPropCurve(comp, propPath, data);\n\n curves.push(curve);\n }\n }\n }\n },\n\n createCurves (state, root) {\n let curveData = this.curveData;\n let childrenCurveDatas = curveData.paths;\n let curves = [];\n\n this.createTargetCurves(root, curveData, curves);\n\n for (let namePath in childrenCurveDatas) {\n let target = cc.find(namePath, root);\n\n if (!target) {\n continue;\n }\n\n let childCurveDatas = childrenCurveDatas[namePath];\n this.createTargetCurves(target, childCurveDatas, curves);\n }\n\n return curves;\n }\n});\n\ncc.AnimationClip = module.exports = AnimationClip;\n","/****************************************************************************\n Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n\n\nconst bezierByTime = require('./bezier').bezierByTime;\n\nconst binarySearch = require('../core/utils/binary-search').binarySearchEpsilon;\nconst WrapModeMask = require('./types').WrapModeMask;\nconst WrappedInfo = require('./types').WrappedInfo;\n\n/**\n * Compute a new ratio by curve type\n * @param {Number} ratio - The origin ratio\n * @param {Array|String} type - If it's Array, then ratio will be computed with bezierByTime. If it's string, then ratio will be computed with cc.easing function\n */\nfunction computeRatioByType (ratio, type) {\n if (typeof type === 'string') {\n var func = cc.easing[type];\n if (func) {\n ratio = func(ratio);\n }\n else {\n cc.errorID(3906, type);\n }\n }\n else if (Array.isArray(type)) {\n // bezier curve\n ratio = bezierByTime(type, ratio);\n }\n\n return ratio;\n}\n\n//\n// 动画数据类,相当于 AnimationClip。\n// 虽然叫做 AnimCurve,但除了曲线,可以保存任何类型的值。\n//\n// @class AnimCurve\n//\n//\nvar AnimCurve = cc.Class({\n name: 'cc.AnimCurve',\n\n //\n // @method sample\n // @param {number} time\n // @param {number} ratio - The normalized time specified as a number between 0.0 and 1.0 inclusive.\n // @param {AnimationState} state\n //\n sample: function (time, ratio, state) {},\n\n onTimeChangedManually: undefined\n});\n\n/**\n * 当每两帧之前的间隔都一样的时候可以使用此函数快速查找 index\n */\nfunction quickFindIndex (ratios, ratio) {\n var length = ratios.length - 1;\n\n if (length === 0) return 0;\n\n var start = ratios[0];\n if (ratio < start) return 0;\n\n var end = ratios[length];\n if (ratio > end) return ~ratios.length;\n\n ratio = (ratio - start) / (end - start);\n\n var eachLength = 1 / length;\n var index = ratio / eachLength;\n var floorIndex = index | 0;\n var EPSILON = 1e-6;\n\n if ((index - floorIndex) < EPSILON) {\n return floorIndex;\n }\n else if ((floorIndex + 1 - index) < EPSILON) {\n return floorIndex + 1;\n }\n\n return ~(floorIndex + 1);\n}\n\n//\n//\n// @class DynamicAnimCurve\n//\n// @extends AnimCurve\n//\nvar DynamicAnimCurve = cc.Class({\n name: 'cc.DynamicAnimCurve',\n extends: AnimCurve,\n\n ctor () {\n // cache last frame index\n this._cachedIndex = 0;\n },\n\n properties: {\n\n // The object being animated.\n // @property target\n // @type {object}\n target: null,\n\n // The name of the property being animated.\n // @property prop\n // @type {string}\n prop: '',\n\n // The values of the keyframes. (y)\n // @property values\n // @type {any[]}\n values: [],\n\n // The keyframe ratio of the keyframe specified as a number between 0.0 and 1.0 inclusive. (x)\n // @property ratios\n // @type {number[]}\n ratios: [],\n\n // @property types\n // @param {object[]}\n // Each array item maybe type:\n // - [x, x, x, x]: Four control points for bezier\n // - null: linear\n types: [],\n },\n\n _findFrameIndex: binarySearch,\n _lerp: undefined,\n\n _lerpNumber (from, to, t) {\n return from + (to - from) * t;\n },\n\n _lerpObject (from, to, t) {\n return from.lerp(to, t);\n },\n\n _lerpQuat: (function () {\n let out = cc.quat();\n return function (from, to, t) {\n return from.lerp(to, t, out);\n };\n })(),\n\n _lerpVector2: (function () {\n let out = cc.v2();\n return function (from, to, t) {\n return from.lerp(to, t, out);\n };\n })(),\n\n _lerpVector3: (function () {\n let out = cc.v3();\n return function (from, to, t) {\n return from.lerp(to, t, out);\n };\n })(),\n\n sample (time, ratio, state) {\n let values = this.values;\n let ratios = this.ratios;\n let frameCount = ratios.length;\n\n if (frameCount === 0) {\n return;\n }\n\n // only need to refind frame index when ratio is out of range of last from ratio and to ratio.\n let shoudRefind = true;\n let cachedIndex = this._cachedIndex;\n if (cachedIndex < 0) {\n cachedIndex = ~cachedIndex;\n if (cachedIndex > 0 && cachedIndex < ratios.length) {\n let fromRatio = ratios[cachedIndex - 1];\n let toRatio = ratios[cachedIndex];\n if (ratio > fromRatio && ratio < toRatio) {\n shoudRefind = false;\n }\n }\n }\n\n if (shoudRefind) {\n this._cachedIndex = this._findFrameIndex(ratios, ratio);\n }\n\n // evaluate value\n let value;\n let index = this._cachedIndex;\n if (index < 0) {\n index = ~index;\n\n if (index <= 0) {\n value = values[0];\n }\n else if (index >= frameCount) {\n value = values[frameCount - 1];\n }\n else {\n var fromVal = values[index - 1];\n\n if (!this._lerp) {\n value = fromVal;\n }\n else {\n var fromRatio = ratios[index - 1];\n var toRatio = ratios[index];\n var type = this.types[index - 1];\n var ratioBetweenFrames = (ratio - fromRatio) / (toRatio - fromRatio);\n\n if (type) {\n ratioBetweenFrames = computeRatioByType(ratioBetweenFrames, type);\n }\n\n // calculate value\n var toVal = values[index];\n\n value = this._lerp(fromVal, toVal, ratioBetweenFrames);\n }\n }\n }\n else {\n value = values[index];\n }\n\n this.target[this.prop] = value;\n }\n});\n\nDynamicAnimCurve.Linear = null;\nDynamicAnimCurve.Bezier = function (controlPoints) {\n return controlPoints;\n};\n\n\n/**\n * Event information,\n * @class EventInfo\n *\n */\nvar EventInfo = function () {\n this.events = [];\n};\n\n/**\n * @param {Function} [func] event function\n * @param {Object[]} [params] event params\n */\nEventInfo.prototype.add = function (func, params) {\n this.events.push({\n func: func || '',\n params: params || []\n });\n};\n\n\n/**\n *\n * @class EventAnimCurve\n *\n * @extends AnimCurve\n */\nvar EventAnimCurve = cc.Class({\n name: 'cc.EventAnimCurve',\n extends: AnimCurve,\n\n properties: {\n /**\n * The object being animated.\n * @property target\n * @type {object}\n */\n target: null,\n\n /** The keyframe ratio of the keyframe specified as a number between 0.0 and 1.0 inclusive. (x)\n * @property ratios\n * @type {number[]}\n */\n ratios: [],\n\n /**\n * @property events\n * @type {EventInfo[]}\n */\n events: [],\n\n _wrappedInfo: {\n default: function () {\n return new WrappedInfo();\n }\n },\n\n _lastWrappedInfo: null,\n\n _ignoreIndex: NaN\n },\n\n _wrapIterations: function (iterations) {\n if (iterations - (iterations | 0) === 0) iterations -= 1;\n return iterations | 0;\n },\n\n sample: function (time, ratio, state) {\n var length = this.ratios.length;\n\n var currentWrappedInfo = state.getWrappedInfo(state.time, this._wrappedInfo);\n var direction = currentWrappedInfo.direction;\n var currentIndex = binarySearch(this.ratios, currentWrappedInfo.ratio);\n if (currentIndex < 0) {\n currentIndex = ~currentIndex - 1;\n\n // if direction is inverse, then increase index\n if (direction < 0) currentIndex += 1;\n }\n\n if (this._ignoreIndex !== currentIndex) {\n this._ignoreIndex = NaN;\n }\n\n currentWrappedInfo.frameIndex = currentIndex;\n\n if (!this._lastWrappedInfo) {\n this._fireEvent(currentIndex);\n this._lastWrappedInfo = new WrappedInfo(currentWrappedInfo);\n return;\n }\n\n var wrapMode = state.wrapMode;\n var currentIterations = this._wrapIterations(currentWrappedInfo.iterations);\n\n var lastWrappedInfo = this._lastWrappedInfo;\n var lastIterations = this._wrapIterations(lastWrappedInfo.iterations);\n var lastIndex = lastWrappedInfo.frameIndex;\n var lastDirection = lastWrappedInfo.direction;\n\n var interationsChanged = lastIterations !== -1 && currentIterations !== lastIterations;\n\n if (lastIndex === currentIndex && interationsChanged && length === 1) {\n this._fireEvent(0);\n }\n else if (lastIndex !== currentIndex || interationsChanged) {\n direction = lastDirection;\n\n do {\n if (lastIndex !== currentIndex) {\n if (direction === -1 && lastIndex === 0 && currentIndex > 0) {\n if ((wrapMode & WrapModeMask.PingPong) === WrapModeMask.PingPong) {\n direction *= -1;\n }\n else {\n lastIndex = length;\n }\n\n lastIterations ++;\n }\n else if (direction === 1 && lastIndex === length - 1 && currentIndex < length - 1) {\n if ((wrapMode & WrapModeMask.PingPong) === WrapModeMask.PingPong) {\n direction *= -1;\n }\n else {\n lastIndex = -1;\n }\n\n lastIterations ++;\n }\n\n if (lastIndex === currentIndex) break;\n if (lastIterations > currentIterations) break;\n }\n\n lastIndex += direction;\n\n cc.director.getAnimationManager().pushDelayEvent(this, '_fireEvent', [lastIndex]);\n } while (lastIndex !== currentIndex && lastIndex > -1 && lastIndex < length);\n }\n\n this._lastWrappedInfo.set(currentWrappedInfo);\n },\n\n _fireEvent: function (index) {\n if (index < 0 || index >= this.events.length || this._ignoreIndex === index) return;\n\n var eventInfo = this.events[index];\n var events = eventInfo.events;\n \n if ( !this.target.isValid ) { \n return; \n }\n \n var components = this.target._components;\n\n for (var i = 0; i < events.length; i++) {\n var event = events[i];\n var funcName = event.func;\n\n for (var j = 0; j < components.length; j++) {\n var component = components[j];\n var func = component[funcName];\n\n if (func) func.apply(component, event.params);\n }\n }\n },\n\n onTimeChangedManually: function (time, state) {\n this._lastWrappedInfo = null;\n this._ignoreIndex = NaN;\n\n var info = state.getWrappedInfo(time, this._wrappedInfo);\n var direction = info.direction;\n var frameIndex = binarySearch(this.ratios, info.ratio);\n\n // only ignore when time not on a frame index\n if (frameIndex < 0) {\n frameIndex = ~frameIndex - 1;\n\n // if direction is inverse, then increase index\n if (direction < 0) frameIndex += 1;\n\n this._ignoreIndex = frameIndex;\n }\n }\n});\n\n\nif (CC_TEST) {\n cc._Test.DynamicAnimCurve = DynamicAnimCurve;\n cc._Test.EventAnimCurve = EventAnimCurve;\n cc._Test.quickFindIndex = quickFindIndex;\n}\n\nmodule.exports = {\n AnimCurve: AnimCurve,\n DynamicAnimCurve: DynamicAnimCurve,\n EventAnimCurve: EventAnimCurve,\n EventInfo: EventInfo,\n computeRatioByType: computeRatioByType,\n quickFindIndex: quickFindIndex\n};\n","/****************************************************************************\n Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n\nvar js = cc.js;\n\nvar AnimationManager = cc.Class({\n ctor: function () {\n this._anims = new js.array.MutableForwardIterator([]);\n this._delayEvents = [];\n\n cc.director._scheduler && cc.director._scheduler.enableForTarget(this);\n },\n\n // for manager\n\n update: function (dt) {\n var iterator = this._anims;\n var array = iterator.array;\n for (iterator.i = 0; iterator.i < array.length; ++iterator.i) {\n var anim = array[iterator.i];\n if (anim._isPlaying && !anim._isPaused) {\n anim.update(dt);\n }\n }\n\n var events = this._delayEvents;\n for (let i = 0; i < events.length; i++) {\n var event = events[i];\n event.target[event.func].apply(event.target, event.args);\n }\n events.length = 0;\n \n },\n\n destruct: function () {},\n\n\n /**\n * @param {AnimationState} anim\n */\n addAnimation: function (anim) {\n var index = this._anims.array.indexOf(anim);\n if (index === -1) {\n this._anims.push(anim);\n }\n },\n\n /**\n * @param {AnimationState} anim\n */\n removeAnimation: function (anim) {\n var index = this._anims.array.indexOf(anim);\n if (index >= 0) {\n this._anims.fastRemoveAt(index);\n }\n else {\n cc.errorID(3907);\n }\n },\n\n pushDelayEvent: function (target, func, args) {\n this._delayEvents.push({\n target: target,\n func: func,\n args: args\n });\n }\n});\n\n\ncc.AnimationManager = module.exports = AnimationManager;\n","/****************************************************************************\n Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n\n\nvar js = cc.js;\nvar Playable = require('./playable');\n\nvar Types = require('./types');\nvar WrappedInfo = Types.WrappedInfo;\nvar WrapMode = Types.WrapMode;\nvar WrapModeMask = Types.WrapModeMask;\n\n/**\n * !#en\n * The AnimationState gives full control over animation playback process.\n * In most cases the Animation Component is sufficient and easier to use. Use the AnimationState if you need full control.\n * !#zh\n * AnimationState 完全控制动画播放过程。
\n * 大多数情况下 动画组件 是足够和易于使用的。如果您需要更多的动画控制接口,请使用 AnimationState。\n * @class AnimationState\n * @extends Playable\n *\n */\n\n/**\n * @method constructor\n * @param {AnimationClip} clip\n * @param {String} [name]\n */\nfunction AnimationState (clip, name) {\n Playable.call(this);\n \n // Mark whether the current frame is played.\n // When set new time to animation state, we should ensure the frame at the specified time being played at next update.\n this._currentFramePlayed = false;\n \n this._delay = 0;\n this._delayTime = 0;\n\n this._wrappedInfo = new WrappedInfo();\n this._lastWrappedInfo = null;\n\n this._process = process;\n\n this._clip = clip;\n this._name = name || (clip && clip.name);\n\n /**\n * @property animator\n * @type {AnimationAnimator}\n * @private\n */\n this.animator = null;\n\n /**\n * !#en The curves list.\n * !#zh 曲线列表。\n * @property curves\n * @type {Object[]}\n */\n this.curves = [];\n\n // http://www.w3.org/TR/web-animations/#idl-def-AnimationTiming\n\n /**\n * !#en The start delay which represents the number of seconds from an animation's start time to the start of\n * the active interval.\n * !#zh 延迟多少秒播放。\n *\n * @property delay\n * @type {Number}\n * @default 0\n */\n this.delay = 0;\n\n /**\n * !#en The animation's iteration count property.\n *\n * A real number greater than or equal to zero (including positive infinity) representing the number of times\n * to repeat the animation node.\n *\n * Values less than zero and NaN values are treated as the value 1.0 for the purpose of timing model\n * calculations.\n *\n * !#zh 迭代次数,指动画播放多少次后结束, normalize time。 如 2.5(2次半)\n *\n * @property repeatCount\n * @type {Number}\n * @default 1\n */\n this.repeatCount = 1;\n\n /**\n * !#en The iteration duration of this animation in seconds. (length)\n * !#zh 单次动画的持续时间,秒。\n *\n * @property duration\n * @type {Number}\n * @readOnly\n */\n this.duration = 1;\n\n /**\n * !#en The animation's playback speed. 1 is normal playback speed.\n * !#zh 播放速率。\n * @property speed\n * @type {Number}\n * @default: 1.0\n */\n this.speed = 1;\n\n /**\n * !#en\n * Wrapping mode of the playing animation.\n * Notice : dynamic change wrapMode will reset time and repeatCount property\n * !#zh\n * 动画循环方式。\n * 需要注意的是,动态修改 wrapMode 时,会重置 time 以及 repeatCount\n *\n * @property wrapMode\n * @type {WrapMode}\n * @default: WrapMode.Normal\n */\n this.wrapMode = WrapMode.Normal;\n\n /**\n * !#en The current time of this animation in seconds.\n * !#zh 动画当前的时间,秒。\n * @property time\n * @type {Number}\n * @default 0\n */\n this.time = 0;\n\n // Animation as event target\n this._target = null;\n this._lastframeEventOn = false;\n this.emit = function () {\n var args = new Array(arguments.length);\n for (var i = 0, l = args.length; i < l; i++) {\n args[i] = arguments[i];\n }\n cc.director.getAnimationManager().pushDelayEvent(this, '_emit', args);\n };\n}\njs.extend(AnimationState, Playable);\n\nvar proto = AnimationState.prototype;\n\nproto._emit = function (type, state) {\n if (this._target && this._target.isValid) {\n this._target.emit(type, type, state);\n }\n};\n\nproto.on = function (type, callback, target) {\n if (this._target && this._target.isValid) {\n if (type === 'lastframe') {\n this._lastframeEventOn = true;\n }\n return this._target.on(type, callback, target);\n }\n else {\n return null;\n }\n};\n\nproto.once = function (type, callback, target) {\n if (this._target && this._target.isValid) {\n if (type === 'lastframe') {\n this._lastframeEventOn = true;\n }\n let self = this;\n return this._target.once(type, function (event) {\n callback.call(target, event);\n self._lastframeEventOn = false;\n });\n }\n else {\n return null;\n }\n};\n\nproto.off = function (type, callback, target) {\n if (this._target && this._target.isValid) {\n if (type === 'lastframe') {\n if (!this._target.hasEventListener(type)) {\n this._lastframeEventOn = false;\n }\n }\n this._target.off(type, callback, target);\n }\n};\n\nproto._setEventTarget = function (target) {\n this._target = target;\n};\n\nproto.onPlay = function () {\n // replay\n this.setTime(0);\n this._delayTime = this._delay;\n \n cc.director.getAnimationManager().addAnimation(this);\n\n if (this.animator) {\n this.animator.addAnimation(this);\n }\n \n this.emit('play', this);\n};\n\nproto.onStop = function () {\n if (!this.isPaused) {\n cc.director.getAnimationManager().removeAnimation(this);\n }\n\n if (this.animator) {\n this.animator.removeAnimation(this);\n }\n\n this.emit('stop', this);\n};\n\nproto.onResume = function () {\n cc.director.getAnimationManager().addAnimation(this);\n this.emit('resume', this);\n};\n\nproto.onPause = function () {\n cc.director.getAnimationManager().removeAnimation(this);\n this.emit('pause', this);\n};\n\nproto.setTime = function (time) {\n this._currentFramePlayed = false;\n this.time = time || 0;\n\n var curves = this.curves;\n for (var i = 0, l = curves.length; i < l; i++) {\n var curve = curves[i];\n if (curve.onTimeChangedManually) {\n curve.onTimeChangedManually(time, this);\n }\n }\n};\n\nfunction process () {\n // sample\n var info = this.sample();\n\n if (this._lastframeEventOn) {\n var lastInfo;\n if (!this._lastWrappedInfo) {\n lastInfo = this._lastWrappedInfo = new WrappedInfo(info);\n } else {\n lastInfo = this._lastWrappedInfo;\n }\n\n if (this.repeatCount > 1 && ((info.iterations | 0) > (lastInfo.iterations | 0))) {\n this.emit('lastframe', this);\n }\n\n lastInfo.set(info);\n }\n\n if (info.stopped) {\n this.stop();\n this.emit('finished', this);\n }\n}\n\nfunction simpleProcess () {\n var time = this.time;\n var duration = this.duration;\n\n if (time > duration) {\n time = time % duration;\n if (time === 0) time = duration;\n }\n else if (time < 0) {\n time = time % duration;\n if (time !== 0) time += duration;\n }\n\n var ratio = time / duration;\n\n var curves = this.curves;\n for (var i = 0, len = curves.length; i < len; i++) {\n var curve = curves[i];\n curve.sample(time, ratio, this);\n }\n\n if (this._lastframeEventOn) {\n if (this._lastIterations === undefined) {\n this._lastIterations = ratio;\n }\n\n if ((this.time > 0 && this._lastIterations > ratio) || (this.time < 0 && this._lastIterations < ratio)) {\n this.emit('lastframe', this);\n }\n\n this._lastIterations = ratio;\n }\n}\n\nproto.update = function (delta) {\n // calculate delay time\n\n if (this._delayTime > 0) {\n this._delayTime -= delta;\n if (this._delayTime > 0) {\n // still waiting\n return;\n }\n }\n\n // make first frame perfect\n\n //var playPerfectFirstFrame = (this.time === 0);\n if (this._currentFramePlayed) {\n this.time += (delta * this.speed);\n }\n else {\n this._currentFramePlayed = true;\n }\n\n this._process();\n};\n\nproto._needRevers = function (currentIterations) {\n var wrapMode = this.wrapMode;\n var needRevers = false;\n\n if ((wrapMode & WrapModeMask.PingPong) === WrapModeMask.PingPong) {\n var isEnd = currentIterations - (currentIterations | 0) === 0;\n if (isEnd && (currentIterations > 0)) {\n currentIterations -= 1;\n }\n\n var isOddIteration = currentIterations & 1;\n if (isOddIteration) {\n needRevers = !needRevers;\n }\n }\n if ((wrapMode & WrapModeMask.Reverse) === WrapModeMask.Reverse) {\n needRevers = !needRevers;\n }\n return needRevers;\n};\n\nproto.getWrappedInfo = function (time, info) {\n info = info || new WrappedInfo();\n \n var stopped = false;\n var duration = this.duration;\n var repeatCount = this.repeatCount;\n\n var currentIterations = time > 0 ? (time / duration) : -(time / duration);\n if (currentIterations >= repeatCount) {\n currentIterations = repeatCount;\n\n stopped = true;\n var tempRatio = repeatCount - (repeatCount | 0);\n if (tempRatio === 0) {\n tempRatio = 1; // 如果播放过,动画不复位\n }\n time = tempRatio * duration * (time > 0 ? 1 : -1);\n }\n\n if (time > duration) {\n var tempTime = time % duration;\n time = tempTime === 0 ? duration : tempTime;\n }\n else if (time < 0) {\n time = time % duration;\n if (time !== 0 ) time += duration;\n }\n\n var needRevers = false;\n var shouldWrap = this._wrapMode & WrapModeMask.ShouldWrap;\n if (shouldWrap) {\n needRevers = this._needRevers(currentIterations);\n }\n\n var direction = needRevers ? -1 : 1;\n if (this.speed < 0) {\n direction *= -1;\n }\n\n // calculate wrapped time\n if (shouldWrap && needRevers) {\n time = duration - time;\n }\n\n info.ratio = time / duration;\n info.time = time;\n info.direction = direction;\n info.stopped = stopped;\n info.iterations = currentIterations;\n\n return info;\n};\n\nproto.sample = function () {\n var info = this.getWrappedInfo(this.time, this._wrappedInfo);\n var curves = this.curves;\n for (var i = 0, len = curves.length; i < len; i++) {\n var curve = curves[i];\n curve.sample(info.time, info.ratio, this);\n }\n\n return info;\n};\n\n\n/**\n * !#en The clip that is being played by this animation state.\n * !#zh 此动画状态正在播放的剪辑。\n * @property clip\n * @type {AnimationClip}\n * @final\n */\njs.get(proto, 'clip', function () {\n return this._clip;\n});\n\n/**\n * !#en The name of the playing animation.\n * !#zh 动画的名字\n * @property name\n * @type {String}\n * @readOnly\n */\njs.get(proto, 'name', function () {\n return this._name;\n});\n\njs.obsolete(proto, 'AnimationState.length', 'duration');\n\njs.getset(proto, 'curveLoaded',\n function () {\n return this.curves.length > 0;\n },\n function () {\n this.curves.length = 0;\n }\n);\n\n\njs.getset(proto, 'wrapMode',\n function () {\n return this._wrapMode;\n },\n function (value) {\n this._wrapMode = value;\n\n if (CC_EDITOR) return;\n\n // dynamic change wrapMode will need reset time to 0\n this.time = 0;\n\n if (value & WrapModeMask.Loop) {\n this.repeatCount = Infinity;\n }\n else {\n this.repeatCount = 1;\n }\n \n }\n);\n\njs.getset(proto, 'repeatCount',\n function () {\n return this._repeatCount;\n },\n function (value) {\n this._repeatCount = value;\n \n var shouldWrap = this._wrapMode & WrapModeMask.ShouldWrap;\n var reverse = (this.wrapMode & WrapModeMask.Reverse) === WrapModeMask.Reverse;\n if (value === Infinity && !shouldWrap && !reverse) {\n this._process = simpleProcess;\n }\n else {\n this._process = process;\n }\n }\n);\n\njs.getset(proto, 'delay', \n function () {\n return this._delay;\n },\n function (value) {\n this._delayTime = this._delay = value;\n }\n);\n\n\ncc.AnimationState = module.exports = AnimationState;\n","/****************************************************************************\n Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n\n//var bezier = (function () {\n// function B1 (t) { return (t * t * t); }\n// function B2 (t) { return (3 * t * t * (1 - t)); }\n// function B3 (t) { return (3 * t * (1 - t) * (1 - t)); }\n// function B4 (t) { return ((1 - t) * (1 - t) * (1 - t)); }\n// function bezier (C1, C2, C3, C4, t) {\n// return C1 * B1(t) + C2 * B2(t) + C3 * B3(t) + C4 * B4(t);\n// }\n//\n// //function bezier (C1, C2, C3, C4, t, out) {\n// // out.x = C1.x * B1(t) + C2.x * B2(t) + C3.x * B3(t) + C4.x * B4(t);\n// // out.y = C1.y * B1(t) + C2.y * B2(t) + C3.y * B3(t) + C4.y * B4(t);\n// //}\n//\n// return bezier;\n//})();\nfunction bezier (C1, C2, C3, C4, t) {\n var t1 = 1 - t;\n return t1 * (t1 * (C1 + (C2 * 3 - C1) * t) + C3 * 3 * t * t) + C4 * t * t * t;\n}\n//function bezier (c0, c1, c2, c3, t) {\n// var cy = 3.0 * (c1);\n// var by = 3.0 * (c3 - c1) - cy;\n// var ay = 1 - cy - by;\n// return (ay * t * t * t) + (by * t * t) + (cy * t);\n//}\n\n//var sin = Math.sin;\nvar cos = Math.cos,\n acos = Math.acos,\n max = Math.max,\n //atan2 = Math.atan2,\n pi = Math.PI,\n tau = 2 * pi,\n sqrt = Math.sqrt;\n\nfunction crt (v) {\n if (v < 0) {\n return -Math.pow(-v, 1 / 3);\n }\n else {\n return Math.pow(v, 1 / 3);\n }\n}\n\n//function align (curve, line) {\n// var tx = line.p1.x,\n// ty = line.p1.y,\n// a = -atan2(line.p2.y-ty, line.p2.x-tx);\n// curve = [{x:0, y:1}, {x: curve[0], y: 1-curve[1]}, {x: curve[2], y: 1-curve[3]}, {x:1, y:0}];\n// return curve.map(function(v) {\n// return {\n// x: (v.x-tx)*cos(a) - (v.y-ty)*sin(a),\n// y: (v.x-tx)*sin(a) + (v.y-ty)*cos(a)\n// };\n// });\n//}\n\n// Modified from http://jsbin.com/yibipofeqi/1/edit, optimized for animations.\n// The origin Cardano's algorithm is based on http://www.trans4mind.com/personal_development/mathematics/polynomials/cubicAlgebra.htm\nfunction cardano (curve, x) {\n // align curve with the intersecting line:\n //var line = {p1: {x: x, y: 0}, p2: {x: x, y: 1}};\n //var aligned = align(curve, line);\n //// and rewrite from [a(1-t)^3 + 3bt(1-t)^2 + 3c(1-t)t^2 + dt^3] form\n // pa = aligned[0].y,\n // pb = aligned[1].y,\n // pc = aligned[2].y,\n // pd = aligned[3].y;\n ////// curve = [{x:0, y:1}, {x: curve[0], y: 1-curve[1]}, {x: curve[2], y: 1-curve[3]}, {x:1, y:0}];\n var pa = x - 0;\n var pb = x - curve[0];\n var pc = x - curve[2];\n var pd = x - 1;\n\n // to [t^3 + at^2 + bt + c] form:\n var pa3 = pa * 3;\n var pb3 = pb * 3;\n var pc3 = pc * 3;\n var d = (-pa + pb3 - pc3 + pd),\n rd = 1 / d,\n r3 = 1 / 3,\n a = (pa3 - 6 * pb + pc3) * rd,\n a3 = a * r3,\n b = (-pa3 + pb3) * rd,\n c = pa * rd,\n // then, determine p and q:\n p = (3 * b - a * a) * r3,\n p3 = p * r3,\n q = (2 * a * a * a - 9 * a * b + 27 * c) / 27,\n q2 = q / 2,\n // and determine the discriminant:\n discriminant = q2 * q2 + p3 * p3 * p3,\n // and some reserved variables\n u1, v1, x1, x2, x3;\n\n // If the discriminant is negative, use polar coordinates\n // to get around square roots of negative numbers\n if (discriminant < 0) {\n var mp3 = -p * r3,\n mp33 = mp3 * mp3 * mp3,\n r = sqrt(mp33),\n // compute cosphi corrected for IEEE float rounding:\n t = -q / (2 * r),\n cosphi = t < -1 ? -1 : t > 1 ? 1 : t,\n phi = acos(cosphi),\n crtr = crt(r),\n t1 = 2 * crtr;\n x1 = t1 * cos(phi * r3) - a3;\n x2 = t1 * cos((phi + tau) * r3) - a3;\n x3 = t1 * cos((phi + 2 * tau) * r3) - a3;\n\n // choose best percentage\n if (0 <= x1 && x1 <= 1) {\n if (0 <= x2 && x2 <= 1) {\n if (0 <= x3 && x3 <= 1) {\n return max(x1, x2, x3);\n }\n else {\n return max(x1, x2);\n }\n }\n else if (0 <= x3 && x3 <= 1) {\n return max(x1, x3);\n }\n else {\n return x1;\n }\n }\n else {\n if (0 <= x2 && x2 <= 1) {\n if (0 <= x3 && x3 <= 1) {\n return max(x2, x3);\n }\n else {\n return x2;\n }\n }\n else {\n return x3;\n }\n }\n }\n else if (discriminant === 0) {\n u1 = q2 < 0 ? crt(-q2) : -crt(q2);\n x1 = 2 * u1 - a3;\n x2 = -u1 - a3;\n\n // choose best percentage\n if (0 <= x1 && x1 <= 1) {\n if (0 <= x2 && x2 <= 1) {\n return max(x1, x2);\n }\n else {\n return x1;\n }\n }\n else {\n return x2;\n }\n }\n // one real root, and two imaginary roots\n else {\n var sd = sqrt(discriminant);\n u1 = crt(-q2 + sd);\n v1 = crt(q2 + sd);\n x1 = u1 - v1 - a3;\n return x1;\n }\n}\n\nfunction bezierByTime (controlPoints, x) {\n var percent = cardano(controlPoints, x); // t\n var p1y = controlPoints[1]; // b\n var p2y = controlPoints[3]; // c\n // return bezier(0, p1y, p2y, 1, percent);\n return ((1 - percent) * (p1y + (p2y - p1y) * percent) * 3 + percent * percent) * percent;\n}\n\nif (CC_TEST) {\n cc._Test.bezier = bezier;\n cc._Test.bezierByTime = bezierByTime;\n}\n\nmodule.exports = {\n bezier: bezier,\n bezierByTime: bezierByTime\n};\n","/****************************************************************************\n Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n\n/**\n * @module cc\n */\n\n /**\n * !#en\n * This class provide easing methods for {{#crossLink \"tween\"}}{{/crossLink}} class.
\n * Demonstratio: https://easings.net/\n * !#zh\n * 缓动函数类,为 {{#crossLink \"Tween\"}}{{/crossLink}} 提供缓动效果函数。
\n * 函数效果演示: https://easings.net/\n * @class Easing\n */\n\nvar easing = {\n constant: function () { return 0; },\n linear: function (k) { return k; },\n\n // quad\n // easing equation function for a quadratic (t^2)\n // @param t: Current time (in frames or seconds).\n // @return: The correct value.\n\n /**\n * !#en Easing in with quadratic formula. From slow to fast.\n * !#zh 平方曲线缓入函数。运动由慢到快。\n * @method quadIn\n * @param {Number} t The current time as a percentage of the total time.\n * @return {Number} The correct value\n */\n quadIn: function (k) { return k * k; },\n /**\n * !#en Easing out with quadratic formula. From fast to slow.\n * !#zh 平方曲线缓出函数。运动由快到慢。\n * @method quadOut\n * @param {Number} t The current time as a percentage of the total time.\n * @return {Number} The correct value\n */\n quadOut: function (k) { return k * ( 2 - k ); },\n /**\n * !#en Easing in and out with quadratic formula. From slow to fast, then back to slow.\n * !#zh 平方曲线缓入缓出函数。运动由慢到快再到慢。\n * @method quadInOut\n * @param {Number} t The current time as a percentage of the total time.\n * @return {Number} The correct value\n */\n quadInOut: function (k) {\n if (( k *= 2 ) < 1) {\n return 0.5 * k * k;\n }\n return -0.5 * ( --k * ( k - 2 ) - 1 );\n },\n\n // cubic\n // easing equation function for a cubic (t^3)\n // @param t: Current time (in frames or seconds).\n // @return: The correct value.\n\n /**\n * !#en Easing in with cubic formula. From slow to fast.\n * !#zh 立方曲线缓入函数。运动由慢到快。\n * @method cubicIn\n * @param {Number} t The current time as a percentage of the total time.\n * @return {Number} The correct value.\n */\n cubicIn: function (k) { return k * k * k; },\n /**\n * !#en Easing out with cubic formula. From slow to fast.\n * !#zh 立方曲线缓出函数。运动由快到慢。\n * @method cubicOut\n * @param {Number} t The current time as a percentage of the total time.\n * @return {Number} The correct value.\n */\n cubicOut: function (k) { return --k * k * k + 1; },\n /**\n * !#en Easing in and out with cubic formula. From slow to fast, then back to slow.\n * !#zh 立方曲线缓入缓出函数。运动由慢到快再到慢。\n * @method cubicInOut\n * @param {Number} t The current time as a percentage of the total time.\n * @return {Number} The correct value.\n */\n cubicInOut: function (k) {\n if (( k *= 2 ) < 1) {\n return 0.5 * k * k * k;\n }\n return 0.5 * ( ( k -= 2 ) * k * k + 2 );\n },\n\n // quart\n // easing equation function for a quartic (t^4)\n // @param t: Current time (in frames or seconds).\n // @return: The correct value.\n\n /**\n * !#en Easing in with quartic formula. From slow to fast.\n * !#zh 四次方曲线缓入函数。运动由慢到快。\n * @method quartIn\n * @param {Number} t The current time as a percentage of the total time.\n * @return {Number} The correct value.\n */\n quartIn: function (k) { return k * k * k * k; },\n /**\n * !#en Easing out with quartic formula. From fast to slow.\n * !#zh 四次方曲线缓出函数。运动由快到慢。\n * @method quartOut\n * @param {Number} t The current time as a percentage of the total time.\n * @return {Number} The correct value.\n */\n quartOut: function (k) { return 1 - ( --k * k * k * k ); },\n /**\n * !#en Easing in and out with quartic formula. From slow to fast, then back to slow.\n * !#zh 四次方曲线缓入缓出函数。运动由慢到快再到慢。\n * @method quartInOut\n * @param {Number} t The current time as a percentage of the total time.\n * @return {Number} The correct value.\n */\n quartInOut: function (k) {\n if (( k *= 2 ) < 1) {\n return 0.5 * k * k * k * k;\n }\n return -0.5 * ( ( k -= 2 ) * k * k * k - 2 );\n },\n\n // quint\n // easing equation function for a quintic (t^5)\n // @param t: Current time (in frames or seconds).\n // @return: The correct value.\n\n /**\n * !#en Easing in with quintic formula. From slow to fast.\n * !#zh 五次方曲线缓入函数。运动由慢到快。\n * @method quintIn\n * @param {Number} t The current time as a percentage of the total time.\n * @return {Number} The correct value.\n */\n quintIn: function (k) { return k * k * k * k * k; },\n /**\n * !#en Easing out with quintic formula. From fast to slow.\n * !#zh 五次方曲线缓出函数。运动由快到慢。\n * @method quintOut\n * @param {Number} t The current time as a percentage of the total time.\n * @return {Number} The correct value.\n */\n quintOut: function (k) { return --k * k * k * k * k + 1; },\n /**\n * !#en Easing in and out with quintic formula. From slow to fast, then back to slow.\n * !#zh 五次方曲线缓入缓出函数。运动由慢到快再到慢。\n * @method quintInOut\n * @param {Number} t The current time as a percentage of the total time.\n * @return {Number} The correct value.\n */\n quintInOut: function (k) {\n if (( k *= 2 ) < 1) {\n return 0.5 * k * k * k * k * k;\n }\n return 0.5 * ( ( k -= 2 ) * k * k * k * k + 2 );\n },\n\n // sine\n // easing equation function for a sinusoidal (sin(t))\n // @param t: Current time (in frames or seconds).\n // @return: The correct value.\n\n /**\n * !#en Easing in and out with sine formula. From slow to fast.\n * !#zh 正弦曲线缓入函数。运动由慢到快。\n * @method sineIn\n * @param {Number} t The current time as a percentage of the total time.\n * @return {Number} The correct value.\n */\n sineIn: function (k) { return 1 - Math.cos(k * Math.PI / 2); },\n /**\n * !#en Easing in and out with sine formula. From fast to slow.\n * !#zh 正弦曲线缓出函数。运动由快到慢。\n * @method sineOut\n * @param {Number} t The current time as a percentage of the total time.\n * @return {Number} The correct value.\n */\n sineOut: function (k) { return Math.sin(k * Math.PI / 2); },\n /**\n * !#en Easing in and out with sine formula. From slow to fast, then back to slow.\n * !#zh 正弦曲线缓入缓出函数。运动由慢到快再到慢。\n * @method sineInOut\n * @param {Number} t The current time as a percentage of the total time.\n * @return {Number} The correct value.\n */\n sineInOut: function (k) { return 0.5 * ( 1 - Math.cos(Math.PI * k) ); },\n\n // expo\n // easing equation function for an exponential (2^t)\n // param t: Current time (in frames or seconds).\n // return: The correct value.\n\n /**\n * !#en Easing in and out with exponential formula. From slow to fast.\n * !#zh 指数曲线缓入函数。运动由慢到快。\n * @method expoIn\n * @param {Number} t The current time as a percentage of the total time.\n * @return {Number} The correct value.\n */\n expoIn: function (k) { return k === 0 ? 0 : Math.pow(1024, k - 1); },\n /**\n * !#en Easing in and out with exponential formula. From fast to slow.\n * !#zh 指数曲线缓出函数。运动由快到慢。\n * @method expoOut\n * @param {Number} t The current time as a percentage of the total time.\n * @return {Number} The correct value.\n */\n expoOut: function (k) { return k === 1 ? 1 : 1 - Math.pow(2, -10 * k); },\n /**\n * !#en Easing in and out with exponential formula. From slow to fast.\n * !#zh 指数曲线缓入和缓出函数。运动由慢到很快再到慢。\n * @method expoInOut\n * @param {Number} t The current time as a percentage of the total time, then back to slow.\n * @return {Number} The correct value.\n */\n expoInOut: function (k) {\n if (k === 0) {\n return 0;\n }\n if (k === 1) {\n return 1;\n }\n if (( k *= 2 ) < 1) {\n return 0.5 * Math.pow(1024, k - 1);\n }\n return 0.5 * ( -Math.pow(2, -10 * ( k - 1 )) + 2 );\n },\n\n // circ\n // easing equation function for a circular (sqrt(1-t^2))\n // @param t: Current time (in frames or seconds).\n // @return:\tThe correct value.\n\n /**\n * !#en Easing in and out with circular formula. From slow to fast.\n * !#zh 循环公式缓入函数。运动由慢到快。\n * @method circIn\n * @param {Number} t The current time as a percentage of the total time.\n * @return {Number} The correct value.\n */\n circIn: function (k) { return 1 - Math.sqrt(1 - k * k); },\n /**\n * !#en Easing in and out with circular formula. From fast to slow.\n * !#zh 循环公式缓出函数。运动由快到慢。\n * @method circOut\n * @param {Number} t The current time as a percentage of the total time.\n * @return {Number} The correct value.\n */\n circOut: function (k) { return Math.sqrt(1 - ( --k * k )); },\n /**\n * !#en Easing in and out with circular formula. From slow to fast.\n * !#zh 指数曲线缓入缓出函数。运动由慢到很快再到慢。\n * @method circInOut\n * @param {Number} t The current time as a percentage of the total time, then back to slow.\n * @return {Number} The correct value.\n */\n circInOut: function (k) {\n if (( k *= 2 ) < 1) {\n return -0.5 * ( Math.sqrt(1 - k * k) - 1);\n }\n return 0.5 * ( Math.sqrt(1 - ( k -= 2) * k) + 1);\n },\n\n // elastic\n // easing equation function for an elastic (exponentially decaying sine wave)\n // @param t: Current time (in frames or seconds).\n // @return: The correct value.\n // recommand value: elastic (t)\n\n /**\n * !#en Easing in action with a spring oscillating effect.\n * !#zh 弹簧回震效果的缓入函数。\n * @method elasticIn\n * @param {Number} t The current time as a percentage of the total time.\n * @return {Number} The correct value.\n */\n elasticIn: function (k) {\n var s, a = 0.1, p = 0.4;\n if (k === 0) {\n return 0;\n }\n if (k === 1) {\n return 1;\n }\n if (!a || a < 1) {\n a = 1;\n s = p / 4;\n }\n else {\n s = p * Math.asin(1 / a) / ( 2 * Math.PI );\n }\n return -( a * Math.pow(2, 10 * ( k -= 1 )) * Math.sin(( k - s ) * ( 2 * Math.PI ) / p) );\n },\n /**\n * !#en Easing out action with a spring oscillating effect.\n * !#zh 弹簧回震效果的缓出函数。\n * @method elasticOut\n * @param {Number} t The current time as a percentage of the total time.\n * @return {Number} The correct value.\n */\n elasticOut: function (k) {\n var s, a = 0.1, p = 0.4;\n if (k === 0) {\n return 0;\n }\n if (k === 1) {\n return 1;\n }\n if (!a || a < 1) {\n a = 1;\n s = p / 4;\n }\n else {\n s = p * Math.asin(1 / a) / ( 2 * Math.PI );\n }\n return ( a * Math.pow(2, -10 * k) * Math.sin(( k - s ) * ( 2 * Math.PI ) / p) + 1 );\n },\n /**\n * !#en Easing in and out action with a spring oscillating effect.\n * !#zh 弹簧回震效果的缓入缓出函数。\n * @method elasticInOut\n * @param {Number} t The current time as a percentage of the total time.\n * @return {Number} The correct value.\n */\n elasticInOut: function (k) {\n var s, a = 0.1, p = 0.4;\n if (k === 0) {\n return 0;\n }\n if (k === 1) {\n return 1;\n }\n if (!a || a < 1) {\n a = 1;\n s = p / 4;\n }\n else {\n s = p * Math.asin(1 / a) / ( 2 * Math.PI );\n }\n if (( k *= 2 ) < 1) {\n return -0.5 *\n ( a * Math.pow(2, 10 * ( k -= 1 )) * Math.sin(( k - s ) * ( 2 * Math.PI ) / p) );\n }\n return a * Math.pow(2, -10 * ( k -= 1 )) * Math.sin(( k - s ) * ( 2 * Math.PI ) / p) * 0.5 + 1;\n },\n\n // back\n // easing equation function for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2)\n // @param t: Current time (in frames or seconds).\n // @return: The correct value.\n\n /**\n * !#en Easing in action with \"back up\" behavior.\n * !#zh 回退效果的缓入函数。\n * @method backIn\n * @param {Number} t The current time as a percentage of the total time.\n * @return {Number} The correct value.\n */\n backIn: function (k) {\n var s = 1.70158;\n return k * k * ( ( s + 1 ) * k - s );\n },\n /**\n * !#en Easing out action with \"back up\" behavior.\n * !#zh 回退效果的缓出函数。\n * @method backOut\n * @param {Number} t The current time as a percentage of the total time.\n * @return {Number} The correct value.\n */\n backOut: function (k) {\n var s = 1.70158;\n return --k * k * ( ( s + 1 ) * k + s ) + 1;\n },\n /**\n * !#en Easing in and out action with \"back up\" behavior.\n * !#zh 回退效果的缓入缓出函数。\n * @method backInOut\n * @param {Number} t The current time as a percentage of the total time.\n * @return {Number} The correct value.\n */\n backInOut: function (k) {\n var s = 1.70158 * 1.525;\n if (( k *= 2 ) < 1) {\n return 0.5 * ( k * k * ( ( s + 1 ) * k - s ) );\n }\n return 0.5 * ( ( k -= 2 ) * k * ( ( s + 1 ) * k + s ) + 2 );\n },\n\n // bounce\n // easing equation function for a bounce (exponentially decaying parabolic bounce)\n // @param t: Current time (in frames or seconds).\n // @return: The correct value.\n\n /**\n * !#en Easing in action with bouncing effect.\n * !#zh 弹跳效果的缓入函数。\n * @method bounceIn\n * @param {Number} t The current time as a percentage of the total time.\n * @return {Number} The correct value.\n */\n bounceIn: function (k) {\n return 1 - easing.bounceOut(1 - k);\n },\n /**\n * !#en Easing out action with bouncing effect.\n * !#zh 弹跳效果的缓出函数。\n * @method bounceOut\n * @param {Number} t The current time as a percentage of the total time.\n * @return {Number} The correct value.\n */\n bounceOut: function (k) {\n if (k < ( 1 / 2.75 )) {\n return 7.5625 * k * k;\n }\n else if (k < ( 2 / 2.75 )) {\n return 7.5625 * ( k -= ( 1.5 / 2.75 ) ) * k + 0.75;\n }\n else if (k < ( 2.5 / 2.75 )) {\n return 7.5625 * ( k -= ( 2.25 / 2.75 ) ) * k + 0.9375;\n }\n else {\n return 7.5625 * ( k -= ( 2.625 / 2.75 ) ) * k + 0.984375;\n }\n },\n /**\n * !#en Easing in and out action with bouncing effect.\n * !#zh 弹跳效果的缓入缓出函数。\n * @method bounceInOut\n * @param {Number} t The current time as a percentage of the total time.\n * @return {Number} The correct value.\n */\n bounceInOut: function (k) {\n if (k < 0.5) {\n return easing.bounceIn(k * 2) * 0.5;\n }\n return easing.bounceOut(k * 2 - 1) * 0.5 + 0.5;\n },\n\n /**\n * !#en Target will run action with smooth effect.\n * !#zh 平滑效果函数。\n * @method smooth\n * @param {Number} t The current time as a percentage of the total time.\n * @return {Number} The correct value.\n */\n // t<=0: 0 | 0=1: 1\n smooth: function (t) {\n if (t <= 0) {\n return 0;\n }\n if (t >= 1) {\n return 1;\n }\n return t * t * (3 - 2 * t);\n },\n\n /**\n * !#en Target will run action with fade effect.\n * !#zh 渐褪效果函数。\n * @method fade\n * @param {Number} t The current time as a percentage of the total time.\n * @return {Number} The correct value.\n */\n // t<=0: 0 | 0=1: 1\n fade: function (t) {\n if (t <= 0) {\n return 0;\n }\n if (t >= 1) {\n return 1;\n }\n return t * t * t * (t * (t * 6 - 15) + 10);\n },\n};\n\nfunction _makeOutIn (fnIn, fnOut) {\n return function (k) {\n if (k < 0.5) {\n return fnOut(k * 2) / 2;\n }\n return fnIn(2 * k - 1) / 2 + 0.5;\n };\n}\neasing.quadOutIn = _makeOutIn(easing.quadIn, easing.quadOut);\neasing.cubicOutIn = _makeOutIn(easing.cubicIn, easing.cubicOut);\neasing.quartOutIn = _makeOutIn(easing.quartIn, easing.quartOut);\neasing.quintOutIn = _makeOutIn(easing.quintIn, easing.quintOut);\neasing.sineOutIn = _makeOutIn(easing.sineIn, easing.sineOut);\neasing.expoOutIn = _makeOutIn(easing.expoIn, easing.expoOut);\neasing.circOutIn = _makeOutIn(easing.circIn, easing.circOut);\neasing.backOutIn = _makeOutIn(easing.backIn, easing.backOut);\neasing.bounceIn = function (k) { return 1 - easing.bounceOut(1 - k); };\neasing.bounceInOut = function (k) {\n if (k < 0.5) {\n return easing.bounceIn(k * 2) * 0.5;\n }\n return easing.bounceOut(k * 2 - 1) * 0.5 + 0.5;\n};\neasing.bounceOutIn = _makeOutIn(easing.bounceIn, easing.bounceOut);\n\n/**\n * @module cc\n */\n\n/**\n * !#en This is a Easing instance.\n * !#zh 这是一个 Easing 类实例。\n * @property easing\n * @type Easing\n */\n\ncc.easing = module.exports = easing;\n","/****************************************************************************\n Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n\nrequire('./bezier');\nrequire('./easing');\nrequire('./types');\nrequire('./motion-path-helper');\nrequire('./animation-curves');\nrequire('./animation-clip');\nrequire('./animation-manager');\nrequire('./animation-state');\nrequire('./animation-animator');\n","/****************************************************************************\n Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n\nvar DynamicAnimCurve = require('./animation-curves').DynamicAnimCurve;\nvar computeRatioByType = require('./animation-curves').computeRatioByType;\n\nvar bezier = require('./bezier').bezier;\nvar binarySearch = require('../core/utils/binary-search').binarySearchEpsilon;\n\nvar v2 = cc.v2;\n\nfunction Curve (points) {\n this.points = points || [];\n this.beziers = [];\n this.ratios = [];\n this.progresses = [];\n\n this.length = 0;\n\n this.computeBeziers();\n}\nCurve.prototype.computeBeziers = function () {\n this.beziers.length = 0;\n this.ratios.length = 0;\n this.progresses.length = 0;\n this.length = 0;\n\n var bezier;\n\n for (var i = 1; i < this.points.length; i++) {\n var startPoint = this.points[i - 1];\n var endPoint = this.points[i];\n bezier = new Bezier();\n bezier.start = startPoint.pos;\n bezier.startCtrlPoint = startPoint.out;\n bezier.end = endPoint.pos;\n bezier.endCtrlPoint = endPoint.in;\n this.beziers.push(bezier);\n\n this.length += bezier.getLength();\n }\n\n var current = 0;\n for (var i = 0; i < this.beziers.length; i++) {\n bezier = this.beziers[i];\n this.ratios[i] = bezier.getLength() / this.length;\n this.progresses[i] = current = current + this.ratios[i];\n }\n\n return this.beziers;\n};\n\nfunction Bezier () {\n this.start = v2();\n this.end = v2();\n this.startCtrlPoint = v2(); // cp0, cp1\n this.endCtrlPoint = v2(); // cp2, cp3\n}\n\n// Get point at relative position in curve according to arc length\n// - u [0 .. 1]\nBezier.prototype.getPointAt = function ( u ) {\n var t = this.getUtoTmapping( u );\n return this.getPoint( t );\n};\n\n\n// Get point at time t\n// - t [0 .. 1]\nBezier.prototype.getPoint = function ( t ) {\n var x = bezier(this.start.x, this.startCtrlPoint.x, this.endCtrlPoint.x, this.end.x, t);\n var y = bezier(this.start.y, this.startCtrlPoint.y, this.endCtrlPoint.y, this.end.y, t);\n\n return new v2(x, y);\n};\n\n// Get total curve arc length\nBezier.prototype.getLength = function () {\n\n var lengths = this.getLengths();\n return lengths[ lengths.length - 1 ];\n\n};\n\n// Get list of cumulative segment lengths\nBezier.prototype.getLengths = function ( divisions ) {\n\n if ( ! divisions ) divisions = (this.__arcLengthDivisions) ? (this.__arcLengthDivisions): 200;\n\n if ( this.cacheArcLengths\n && ( this.cacheArcLengths.length === divisions + 1 )) {\n\n //console.log( \"cached\", this.cacheArcLengths );\n return this.cacheArcLengths;\n\n }\n\n var cache = [];\n var current, last = this.getPoint( 0 ), vector = v2();\n var p, sum = 0;\n\n cache.push( 0 );\n\n for ( p = 1; p <= divisions; p ++ ) {\n\n current = this.getPoint ( p / divisions );\n vector.x = last.x - current.x;\n vector.y = last.y - current.y;\n sum += vector.mag();\n cache.push( sum );\n last = current;\n\n }\n\n this.cacheArcLengths = cache;\n\n return cache; // { sums: cache, sum:sum }; Sum is in the last element.\n};\n\nBezier.prototype.getUtoTmapping = function ( u, distance ) {\n\n var arcLengths = this.getLengths();\n\n var i = 0, il = arcLengths.length;\n\n var targetArcLength; // The targeted u distance value to get\n\n if ( distance ) {\n targetArcLength = distance;\n } else {\n targetArcLength = u * arcLengths[ il - 1 ];\n }\n\n //var time = Date.now();\n\n // binary search for the index with largest value smaller than target u distance\n\n var low = 0, high = il - 1, comparison;\n\n while ( low <= high ) {\n\n i = Math.floor( low + ( high - low ) / 2 ); // less likely to overflow, though probably not issue here, JS doesn't really have integers, all numbers are floats\n\n comparison = arcLengths[ i ] - targetArcLength;\n\n if ( comparison < 0 ) {\n\n low = i + 1;\n continue;\n\n } else if ( comparison > 0 ) {\n\n high = i - 1;\n continue;\n\n } else {\n\n high = i;\n break;\n\n // DONE\n\n }\n\n }\n\n i = high;\n\n //console.log('b' , i, low, high, Date.now()- time);\n\n if ( arcLengths[ i ] === targetArcLength ) {\n\n var t = i / ( il - 1 );\n return t;\n\n }\n\n // we could get finer grain at lengths, or use simple interpolatation between two points\n\n var lengthBefore = arcLengths[ i ];\n var lengthAfter = arcLengths[ i + 1 ];\n\n var segmentLength = lengthAfter - lengthBefore;\n\n // determine where we are between the 'before' and 'after' points\n\n var segmentFraction = ( targetArcLength - lengthBefore ) / segmentLength;\n\n // add that fractional amount to t\n\n var t = ( i + segmentFraction ) / ( il -1 );\n\n return t;\n};\n\n\nfunction checkMotionPath(motionPath) {\n if (!Array.isArray(motionPath)) return false;\n\n for (let i = 0, l = motionPath.length; i < l; i++) {\n let controls = motionPath[i];\n\n if (!Array.isArray(controls) || controls.length !== 6) return false;\n }\n\n return true;\n}\n\nfunction sampleMotionPaths (motionPaths, data, duration, fps, target) {\n\n function createControlPoints(array) {\n if (array instanceof cc.Vec2) {\n return {\n in: array,\n pos: array,\n out: array\n };\n }\n else if (Array.isArray(array) && array.length === 6) {\n return {\n in: v2(array[2], array[3]),\n pos: v2(array[0], array[1]),\n out: v2(array[4], array[5])\n };\n }\n\n return {\n in: cc.Vec2.ZERO,\n pos: cc.Vec2.ZERO,\n out: cc.Vec2.ZERO\n };\n }\n\n let values = data.values = data.values.map(function (value) {\n if (Array.isArray(value)) {\n value = value.length === 2 ? cc.v2(value[0], value[1]) : cc.v3(value[0], value[1], value[2]);\n }\n return value;\n });\n\n if (motionPaths.length === 0 || values.length === 0) {\n return;\n }\n\n let motionPathValid = false;\n for (let i = 0; i < motionPaths.length; i++) {\n let motionPath = motionPaths[i];\n if (motionPath && !checkMotionPath(motionPath)) {\n cc.errorID(3904, target ? target.name : '', 'position', i);\n motionPath = null;\n }\n if (motionPath && motionPath.length > 0) {\n motionPathValid = true;\n break;\n }\n }\n\n if (!motionPathValid) {\n return;\n }\n\n if (values.length === 1) {\n return;\n }\n\n var types = data.types;\n var ratios = data.ratios;\n\n var newValues = data.values = [];\n var newTypes = data.types = [];\n var newRatios = data.ratios = [];\n\n function addNewDatas (value, type, ratio) {\n newValues.push(value);\n newTypes.push(type);\n newRatios.push(ratio);\n }\n\n // ensure every ratio section's length is the same\n var startRatioOffset = 0;\n\n var EPSILON = 1e-6;\n var newType = DynamicAnimCurve.Linear;\n\n // do not need to compute last path\n for (var i = 0, l = motionPaths.length; i < l-1; i++) {\n var motionPath = motionPaths[i];\n\n var ratio = ratios[i];\n var nextRatio = ratios[i + 1];\n var betweenRatio = nextRatio - ratio;\n\n var value = values[i];\n var nextValue = values[i + 1];\n\n var type = types[i];\n\n var results = [];\n var progress = startRatioOffset / betweenRatio;\n var speed = 1 / (betweenRatio * duration * fps);\n var finalProgress;\n\n if (motionPath && motionPath.length > 0) {\n var points = [];\n points.push(createControlPoints(value));\n\n for (var j = 0, l2 = motionPath.length; j < l2; j++) {\n var controlPoints = createControlPoints(motionPath[j]);\n points.push(controlPoints);\n }\n\n points.push(createControlPoints(nextValue));\n\n // create Curve to compute beziers\n var curve = new Curve(points);\n curve.computeBeziers();\n\n // sample beziers\n var progresses = curve.progresses;\n\n while ( 1 - progress > EPSILON) {\n finalProgress = progress;\n\n finalProgress = computeRatioByType(finalProgress, type);\n\n var pos, bezier, normal, length;\n\n if (finalProgress < 0) {\n bezier = curve.beziers[0];\n length = (0 - finalProgress) * bezier.getLength();\n normal = bezier.start.sub(bezier.endCtrlPoint).normalize();\n pos = bezier.start.add(normal.mul(length));\n }\n else if (finalProgress > 1) {\n bezier = curve.beziers[curve.beziers.length - 1];\n length = (finalProgress - 1) * bezier.getLength();\n normal = bezier.end.sub(bezier.startCtrlPoint).normalize();\n pos = bezier.end.add(normal.mul(length));\n }\n else {\n var bezierIndex = binarySearch(progresses, finalProgress);\n if (bezierIndex < 0) bezierIndex = ~bezierIndex;\n\n finalProgress -= bezierIndex > 0 ? progresses[bezierIndex - 1] : 0;\n finalProgress = finalProgress / curve.ratios[bezierIndex];\n\n pos = curve.beziers[bezierIndex].getPointAt(finalProgress);\n }\n\n results.push(pos);\n progress += speed;\n }\n\n }\n else {\n while ( 1 - progress > EPSILON) {\n finalProgress = progress;\n\n finalProgress = computeRatioByType(finalProgress, type);\n\n results.push(value.lerp(nextValue, finalProgress));\n\n progress += speed;\n }\n }\n\n newType = type === 'constant' ? type : DynamicAnimCurve.Linear;\n\n for (var j = 0, l2 = results.length; j < l2; j++) {\n var newRatio = ratio + startRatioOffset + speed * j * betweenRatio;\n addNewDatas(results[j], newType, newRatio);\n }\n\n if (Math.abs(progress - 1) > EPSILON) // progress > 1\n startRatioOffset = (progress - 1) * betweenRatio;\n else\n startRatioOffset = 0;\n }\n\n if (ratios[ratios.length - 1] !== newRatios[newRatios.length -1]) {\n addNewDatas(values[values.length - 1], newType, ratios[ratios.length - 1]);\n }\n}\n\nif (CC_TEST) {\n cc._Test.sampleMotionPaths = sampleMotionPaths;\n}\n\nmodule.exports = {\n sampleMotionPaths: sampleMotionPaths,\n Curve: Curve,\n Bezier: Bezier\n};\n","/****************************************************************************\n Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n\nvar js = cc.js;\nconst debug = require('../core/CCDebug');\n\n/**\n * @class Playable\n *\n */\nfunction Playable () {\n this._isPlaying = false;\n this._isPaused = false;\n this._stepOnce = false;\n}\n\nvar prototype = Playable.prototype;\n\n/**\n * !#en Is playing or paused in play mode?\n * !#zh 当前是否正在播放。\n * @property isPlaying\n * @type {boolean}\n * @default false\n * @readOnly\n */\njs.get(prototype, 'isPlaying', function () {\n return this._isPlaying;\n}, true);\n\n/**\n * !#en Is currently paused? This can be true even if in edit mode(isPlaying == false).\n * !#zh 当前是否正在暂停\n * @property isPaused\n * @type {boolean}\n * @default false\n * @readOnly\n */\njs.get(prototype, 'isPaused', function () {\n return this._isPaused;\n}, true);\n\n// virtual\n\nvar virtual = function () {};\n/**\n * @method onPlay\n * @private\n */\nprototype.onPlay = virtual;\n/**\n * @method onPause\n * @private\n */\nprototype.onPause = virtual;\n/**\n * @method onResume\n * @private\n */\nprototype.onResume = virtual;\n/**\n * @method onStop\n * @private\n */\nprototype.onStop = virtual;\n/**\n * @method onError\n * @param {string} errorCode\n * @private\n */\nprototype.onError = virtual;\n\n// public\n\n/**\n * !#en Play this animation.\n * !#zh 播放动画。\n * @method play\n */\nprototype.play = function () {\n if (this._isPlaying) {\n if (this._isPaused) {\n this._isPaused = false;\n this.onResume();\n }\n else {\n this.onError(debug.getError(3912));\n }\n }\n else {\n this._isPlaying = true;\n this.onPlay();\n }\n};\n\n/**\n * !#en Stop this animation.\n * !#zh 停止动画播放。\n * @method stop\n */\nprototype.stop = function () {\n if (this._isPlaying) {\n this._isPlaying = false;\n this.onStop();\n\n // need reset pause flag after onStop\n this._isPaused = false;\n }\n};\n\n/**\n * !#en Pause this animation.\n * !#zh 暂停动画。\n * @method pause\n */\nprototype.pause = function () {\n if (this._isPlaying && !this._isPaused) {\n this._isPaused = true;\n this.onPause();\n }\n};\n\n/**\n * !#en Resume this animation.\n * !#zh 重新播放动画。\n * @method resume\n */\nprototype.resume = function () {\n if (this._isPlaying && this._isPaused) {\n this._isPaused = false;\n this.onResume();\n }\n};\n\n/**\n * !#en Perform a single frame step.\n * !#zh 执行一帧动画。\n * @method step\n */\nprototype.step = function () {\n this.pause();\n this._stepOnce = true;\n if (!this._isPlaying) {\n this.play();\n }\n};\n\nmodule.exports = Playable;\n","/****************************************************************************\n Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n\nvar WrapModeMask = {\n Loop: 1 << 1,\n ShouldWrap: 1 << 2,\n // Reserved: 1 << 3,\n PingPong: 1 << 4 | 1 << 1 | 1 << 2, // Loop, ShouldWrap\n Reverse: 1 << 5 | 1 << 2, // ShouldWrap\n};\n\n/**\n * !#en Specifies how time is treated when it is outside of the keyframe range of an Animation.\n * !#zh 动画使用的循环模式。\n * @enum WrapMode\n * @memberof cc\n */\nvar WrapMode = cc.Enum({\n\n /**\n * !#en Reads the default wrap mode set higher up.\n * !#zh 向 Animation Component 或者 AnimationClip 查找 wrapMode\n * @property {Number} Default\n */\n Default: 0,\n\n /**\n * !#en All iterations are played as specified.\n * !#zh 动画只播放一遍\n * @property {Number} Normal\n */\n Normal: 1,\n\n /**\n * !#en All iterations are played in the reverse direction from the way they are specified.\n * !#zh 从最后一帧或结束位置开始反向播放,到第一帧或开始位置停止\n * @property {Number} Reverse\n */\n Reverse: WrapModeMask.Reverse,\n\n /**\n * !#en When time reaches the end of the animation, time will continue at the beginning.\n * !#zh 循环播放\n * @property {Number} Loop\n */\n Loop: WrapModeMask.Loop,\n\n /**\n * !#en All iterations are played in the reverse direction from the way they are specified.\n * And when time reaches the start of the animation, time will continue at the ending.\n * !#zh 反向循环播放\n * @property {Number} LoopReverse\n */\n LoopReverse: WrapModeMask.Loop | WrapModeMask.Reverse,\n\n /**\n * !#en Even iterations are played as specified, odd iterations are played in the reverse direction from the way they\n * are specified.\n * !#zh 从第一帧播放到最后一帧,然后反向播放回第一帧,到第一帧后再正向播放,如此循环\n * @property {Number} PingPong\n */\n PingPong: WrapModeMask.PingPong,\n\n /**\n * !#en Even iterations are played in the reverse direction from the way they are specified, odd iterations are played\n * as specified.\n * !#zh 从最后一帧开始反向播放,其他同 PingPong\n * @property {Number} PingPongReverse\n */\n PingPongReverse: WrapModeMask.PingPong | WrapModeMask.Reverse\n});\n\ncc.WrapMode = WrapMode;\n\n// For internal\nfunction WrappedInfo (info) {\n if (info) {\n this.set(info);\n return;\n }\n\n this.ratio = 0;\n this.time = 0;\n this.direction = 1;\n this.stopped = true;\n this.iterations = 0;\n this.frameIndex = undefined;\n}\n\nWrappedInfo.prototype.set = function (info) {\n this.ratio = info.ratio;\n this.time = info.time;\n this.direction = info.direction;\n this.stopped = info.stopped;\n this.iterations = info.iterations;\n this.frameIndex = info.frameIndex;\n};\n\nmodule.exports = {\n WrapModeMask,\n WrapMode,\n WrappedInfo\n};\n","/****************************************************************************\n Copyright (c) 2018 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n\nconst utils = require('./platform/utils');\nconst debugInfos = require('../../DebugInfos') || {};\nconst ERROR_MAP_URL = 'https://github.com/cocos-creator/engine/blob/master/EngineErrorMap.md';\n\n// the html element displays log in web page (DebugMode.INFO_FOR_WEB_PAGE)\nlet logList;\n\n/**\n * @module cc\n */\n\ncc.log = cc.warn = cc.error = cc.assert = console.log.bind ? console.log.bind(console) : console.log;\n\nlet resetDebugSetting = function (mode) {\n // reset\n cc.log = cc.warn = cc.error = cc.assert = function () {};\n\n if (mode === DebugMode.NONE)\n return;\n\n if (mode > DebugMode.ERROR) {\n //log to web page\n\n function logToWebPage (msg) {\n if (!cc.game.canvas)\n return;\n\n if (!logList) {\n var logDiv = document.createElement(\"Div\");\n logDiv.setAttribute(\"id\", \"logInfoDiv\");\n logDiv.setAttribute(\"width\", \"200\");\n logDiv.setAttribute(\"height\", cc.game.canvas.height);\n var logDivStyle = logDiv.style;\n logDivStyle.zIndex = \"99999\";\n logDivStyle.position = \"absolute\";\n logDivStyle.top = logDivStyle.left = \"0\";\n\n logList = document.createElement(\"textarea\");\n logList.setAttribute(\"rows\", \"20\");\n logList.setAttribute(\"cols\", \"30\");\n logList.setAttribute(\"disabled\", \"true\");\n var logListStyle = logList.style;\n logListStyle.backgroundColor = \"transparent\";\n logListStyle.borderBottom = \"1px solid #cccccc\";\n logListStyle.borderTopWidth = logListStyle.borderLeftWidth = logListStyle.borderRightWidth = \"0px\";\n logListStyle.borderTopStyle = logListStyle.borderLeftStyle = logListStyle.borderRightStyle = \"none\";\n logListStyle.padding = \"0px\";\n logListStyle.margin = 0;\n\n logDiv.appendChild(logList);\n cc.game.canvas.parentNode.appendChild(logDiv);\n }\n\n logList.value = logList.value + msg + \"\\r\\n\";\n logList.scrollTop = logList.scrollHeight;\n }\n\n cc.error = function () {\n logToWebPage(\"ERROR : \" + cc.js.formatStr.apply(null, arguments));\n };\n cc.assert = function (cond, msg) {\n 'use strict';\n if (!cond && msg) {\n msg = cc.js.formatStr.apply(null, cc.js.shiftArguments.apply(null, arguments));\n logToWebPage(\"ASSERT: \" + msg);\n }\n };\n if (mode !== DebugMode.ERROR_FOR_WEB_PAGE) {\n cc.warn = function () {\n logToWebPage(\"WARN : \" + cc.js.formatStr.apply(null, arguments));\n };\n }\n if (mode === DebugMode.INFO_FOR_WEB_PAGE) {\n cc.log = function () {\n logToWebPage(cc.js.formatStr.apply(null, arguments));\n };\n }\n }\n else if (console && console.log.apply) {//console is null when user doesn't open dev tool on IE9\n //log to console\n\n // For JSB\n if (!console.error) console.error = console.log;\n if (!console.warn) console.warn = console.log;\n\n /**\n * !#en\n * Outputs an error message to the Cocos Creator Console (editor) or Web Console (runtime).
\n * - In Cocos Creator, error is red.
\n * - In Chrome, error have a red icon along with red message text.
\n * !#zh\n * 输出错误消息到 Cocos Creator 编辑器的 Console 或运行时页面端的 Console 中。
\n * - 在 Cocos Creator 中,错误信息显示是红色的。
\n * - 在 Chrome 中,错误信息有红色的图标以及红色的消息文本。
\n *\n * @method error\n * @param {any} msg - A JavaScript string containing zero or more substitution strings.\n * @param {any} ...subst - JavaScript objects with which to replace substitution strings within msg. This gives you additional control over the format of the output.\n */\n if (CC_EDITOR) {\n cc.error = Editor.error;\n }\n else if (console.error.bind) {\n // use bind to avoid pollute call stacks\n cc.error = console.error.bind(console);\n }\n else {\n cc.error = CC_JSB || CC_RUNTIME ? console.error : function () {\n return console.error.apply(console, arguments);\n };\n }\n cc.assert = function (cond, msg) {\n if (!cond) {\n if (msg) {\n msg = cc.js.formatStr.apply(null, cc.js.shiftArguments.apply(null, arguments));\n }\n if (CC_DEV) {\n debugger;\n }\n if (CC_TEST) {\n ok(false, msg);\n }\n else {\n throw new Error(msg);\n }\n }\n }\n }\n if (mode !== DebugMode.ERROR) {\n /**\n * !#en\n * Outputs a warning message to the Cocos Creator Console (editor) or Web Console (runtime).\n * - In Cocos Creator, warning is yellow.\n * - In Chrome, warning have a yellow warning icon with the message text.\n * !#zh\n * 输出警告消息到 Cocos Creator 编辑器的 Console 或运行时 Web 端的 Console 中。
\n * - 在 Cocos Creator 中,警告信息显示是黄色的。
\n * - 在 Chrome 中,警告信息有着黄色的图标以及黄色的消息文本。
\n * @method warn\n * @param {any} msg - A JavaScript string containing zero or more substitution strings.\n * @param {any} ...subst - JavaScript objects with which to replace substitution strings within msg. This gives you additional control over the format of the output.\n */\n if (CC_EDITOR) {\n cc.warn = Editor.warn;\n }\n else if (console.warn.bind) {\n // use bind to avoid pollute call stacks\n cc.warn = console.warn.bind(console);\n }\n else {\n cc.warn = CC_JSB || CC_RUNTIME ? console.warn : function () {\n return console.warn.apply(console, arguments);\n };\n }\n }\n if (CC_EDITOR) {\n cc.log = Editor.log;\n }\n else if (mode === DebugMode.INFO) {\n /**\n * !#en Outputs a message to the Cocos Creator Console (editor) or Web Console (runtime).\n * !#zh 输出一条消息到 Cocos Creator 编辑器的 Console 或运行时 Web 端的 Console 中。\n * @method log\n * @param {String|any} msg - A JavaScript string containing zero or more substitution strings.\n * @param {any} ...subst - JavaScript objects with which to replace substitution strings within msg. This gives you additional control over the format of the output.\n */\n if (CC_JSB || CC_RUNTIME) {\n if (scriptEngineType === \"JavaScriptCore\") {\n // console.log has to use `console` as its context for iOS 8~9. Therefore, apply it.\n cc.log = function () {\n return console.log.apply(console, arguments);\n };\n } else {\n cc.log = console.log;\n }\n }\n else if (console.log.bind) {\n // use bind to avoid pollute call stacks\n cc.log = console.log.bind(console);\n }\n else {\n cc.log = function () {\n return console.log.apply(console, arguments);\n };\n }\n }\n};\n\ncc._throw = CC_EDITOR ? Editor.error : function (error) {\n utils.callInNextTick(function () {\n throw error;\n });\n};\n\nfunction getTypedFormatter (type) {\n return function () {\n var id = arguments[0];\n var msg = CC_DEBUG ? (debugInfos[id] || 'unknown id') : `${type} ${id}, please go to ${ERROR_MAP_URL}#${id} to see details.`;\n if (arguments.length === 1) {\n return msg;\n }\n else if (arguments.length === 2) {\n return CC_DEBUG ? cc.js.formatStr(msg, arguments[1]) :\n msg + ' Arguments: ' + arguments[1];\n }\n else {\n var argsArray = cc.js.shiftArguments.apply(null, arguments);\n return CC_DEBUG ? cc.js.formatStr.apply(null, [msg].concat(argsArray)) :\n msg + ' Arguments: ' + argsArray.join(', ');\n }\n };\n}\n\nvar logFormatter = getTypedFormatter('Log');\ncc.logID = function () {\n cc.log(logFormatter.apply(null, arguments));\n};\n\nvar warnFormatter = getTypedFormatter('Warning');\ncc.warnID = function () {\n cc.warn(warnFormatter.apply(null, arguments));\n};\n\nvar errorFormatter = getTypedFormatter('Error');\ncc.errorID = function () {\n cc.error(errorFormatter.apply(null, arguments));\n};\n\nvar assertFormatter = getTypedFormatter('Assert');\ncc.assertID = function (cond) {\n 'use strict';\n if (cond) {\n return;\n }\n cc.assert(false, assertFormatter.apply(null, cc.js.shiftArguments.apply(null, arguments)));\n};\n\n/**\n* !#en Enum for debug modes.\n* !#zh 调试模式\n* @enum debug.DebugMode\n* @memberof cc\n */\nvar DebugMode = cc.Enum({\n /**\n * !#en The debug mode none.\n * !#zh 禁止模式,禁止显示任何日志信息。\n * @property NONE\n * @type {Number}\n * @static\n */\n NONE: 0,\n /**\n * !#en The debug mode info.\n * !#zh 信息模式,在 console 中显示所有日志。\n * @property INFO\n * @type {Number}\n * @static\n */\n INFO: 1,\n /**\n * !#en The debug mode warn.\n * !#zh 警告模式,在 console 中只显示 warn 级别以上的(包含 error)日志。\n * @property WARN\n * @type {Number}\n * @static\n */\n WARN: 2,\n /**\n * !#en The debug mode error.\n * !#zh 错误模式,在 console 中只显示 error 日志。\n * @property ERROR\n * @type {Number}\n * @static\n */\n ERROR: 3,\n /**\n * !#en The debug mode info for web page.\n * !#zh 信息模式(仅 WEB 端有效),在画面上输出所有信息。\n * @property INFO_FOR_WEB_PAGE\n * @type {Number}\n * @static\n */\n INFO_FOR_WEB_PAGE: 4,\n /**\n * !#en The debug mode warn for web page.\n * !#zh 警告模式(仅 WEB 端有效),在画面上输出 warn 级别以上的(包含 error)信息。\n * @property WARN_FOR_WEB_PAGE\n * @type {Number}\n * @static\n */\n WARN_FOR_WEB_PAGE: 5,\n /**\n * !#en The debug mode error for web page.\n * !#zh 错误模式(仅 WEB 端有效),在画面上输出 error 信息。\n * @property ERROR_FOR_WEB_PAGE\n * @type {Number}\n * @static\n */\n ERROR_FOR_WEB_PAGE: 6\n});\n/**\n * !#en An object to boot the game.\n * !#zh 包含游戏主体信息并负责驱动游戏的游戏对象。\n * @class debug\n * @main\n * @static\n */\nmodule.exports = cc.debug = {\n DebugMode: DebugMode,\n\n _resetDebugSetting: resetDebugSetting,\n\n /**\n * !#en Gets error message with the error id and possible parameters.\n * !#zh 通过 error id 和必要的参数来获取错误信息。\n * @method getError\n * @param {Number} errorId\n * @param {any} [param]\n * @return {String}\n */\n getError: getTypedFormatter('ERROR'),\n\n /**\n * !#en Returns whether or not to display the FPS informations.\n * !#zh 是否显示 FPS 信息。\n * @method isDisplayStats\n * @return {Boolean}\n */\n isDisplayStats: function () {\n return cc.profiler ? cc.profiler.isShowingStats() : false;\n },\n\n /**\n * !#en Sets whether display the FPS on the bottom-left corner.\n * !#zh 设置是否在左下角显示 FPS。\n * @method setDisplayStats\n * @param {Boolean} displayStats\n */\n setDisplayStats: function (displayStats) {\n if (cc.profiler && cc.game.renderType !== cc.game.RENDER_TYPE_CANVAS) {\n displayStats ? cc.profiler.showStats() : cc.profiler.hideStats();\n cc.game.config.showFPS = !!displayStats;\n }\n },\n}","/****************************************************************************\n Copyright (c) 2008-2010 Ricardo Quesada\n Copyright (c) 2011-2012 cocos2d-x.org\n Copyright (c) 2013-2016 Chukong Technologies Inc.\n Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.\n\n http://www.cocos2d-x.org\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in\n all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n\nconst EventTarget = require('./event/event-target');\nconst ComponentScheduler = require('./component-scheduler');\nconst NodeActivator = require('./node-activator');\nconst Obj = require('./platform/CCObject');\nconst game = require('./CCGame');\nconst renderer = require('./renderer');\nconst eventManager = require('./event-manager');\nconst Scheduler = require('./CCScheduler');\n\n//----------------------------------------------------------------------------------------------------------------------\n\n/**\n * !#en\n *

\n * ATTENTION: USE cc.director INSTEAD OF cc.Director.
\n * cc.director is a singleton object which manage your game's logic flow.
\n * Since the cc.director is a singleton, you don't need to call any constructor or create functions,
\n * the standard way to use it is by calling:
\n * - cc.director.methodName();
\n *\n * It creates and handle the main Window and manages how and when to execute the Scenes.
\n *
\n * The cc.director is also responsible for:
\n * - initializing the OpenGL context
\n * - setting the OpenGL pixel format (default on is RGB565)
\n * - setting the OpenGL buffer depth (default on is 0-bit)
\n * - setting the color for clear screen (default one is BLACK)
\n * - setting the projection (default one is 3D)
\n * - setting the orientation (default one is Portrait)
\n *
\n *
\n * The cc.director also sets the default OpenGL context:
\n * - GL_TEXTURE_2D is enabled
\n * - GL_VERTEX_ARRAY is enabled
\n * - GL_COLOR_ARRAY is enabled
\n * - GL_TEXTURE_COORD_ARRAY is enabled
\n *

\n *

\n * cc.director also synchronizes timers with the refresh rate of the display.
\n * Features and Limitations:
\n * - Scheduled timers & drawing are synchronizes with the refresh rate of the display
\n * - Only supports animation intervals of 1/60 1/30 & 1/15
\n *

\n *\n * !#zh\n *

\n * 注意:用 cc.director 代替 cc.Director。
\n * cc.director 一个管理你的游戏的逻辑流程的单例对象。
\n * 由于 cc.director 是一个单例,你不需要调用任何构造函数或创建函数,
\n * 使用它的标准方法是通过调用:
\n * - cc.director.methodName();\n *
\n * 它创建和处理主窗口并且管理什么时候执行场景。
\n *
\n * cc.director 还负责:
\n * - 初始化 OpenGL 环境。
\n * - 设置OpenGL像素格式。(默认是 RGB565)
\n * - 设置OpenGL缓冲区深度 (默认是 0-bit)
\n * - 设置空白场景的颜色 (默认是 黑色)
\n * - 设置投影 (默认是 3D)
\n * - 设置方向 (默认是 Portrait)
\n *
\n * cc.director 设置了 OpenGL 默认环境
\n * - GL_TEXTURE_2D 启用。
\n * - GL_VERTEX_ARRAY 启用。
\n * - GL_COLOR_ARRAY 启用。
\n * - GL_TEXTURE_COORD_ARRAY 启用。
\n *

\n *

\n * cc.director 也同步定时器与显示器的刷新速率。\n *
\n * 特点和局限性:
\n * - 将计时器 & 渲染与显示器的刷新频率同步。
\n * - 只支持动画的间隔 1/60 1/30 & 1/15。
\n *

\n *\n * @class Director\n * @extends EventTarget\n */\ncc.Director = function () {\n EventTarget.call(this);\n\n // paused?\n this._paused = false;\n // purge?\n this._purgeDirectorInNextLoop = false;\n\n this._winSizeInPoints = null;\n\n // scenes\n this._scene = null;\n this._loadingScene = '';\n\n // FPS\n this._totalFrames = 0;\n this._lastUpdate = 0;\n this._deltaTime = 0.0;\n this._startTime = 0.0;\n\n // ParticleSystem max step delta time\n this._maxParticleDeltaTime = 0.0;\n\n // Scheduler for user registration update\n this._scheduler = null;\n // Scheduler for life-cycle methods in component\n this._compScheduler = null;\n // Node activator\n this._nodeActivator = null;\n // Action manager\n this._actionManager = null;\n\n var self = this;\n game.on(game.EVENT_SHOW, function () {\n self._lastUpdate = performance.now();\n });\n\n game.once(game.EVENT_ENGINE_INITED, this.init, this);\n};\n\ncc.Director.prototype = {\n constructor: cc.Director,\n init: function () {\n this._totalFrames = 0;\n this._lastUpdate = performance.now();\n this._startTime = this._lastUpdate;\n this._paused = false;\n this._purgeDirectorInNextLoop = false;\n this._winSizeInPoints = cc.size(0, 0);\n this._scheduler = new Scheduler();\n\n if (cc.ActionManager) {\n this._actionManager = new cc.ActionManager();\n this._scheduler.scheduleUpdate(this._actionManager, Scheduler.PRIORITY_SYSTEM, false);\n } else {\n this._actionManager = null;\n }\n\n this.sharedInit();\n return true;\n },\n\n /*\n * Manage all init process shared between the web engine and jsb engine.\n * All platform independent init process should be occupied here.\n */\n sharedInit: function () {\n this._compScheduler = new ComponentScheduler();\n this._nodeActivator = new NodeActivator();\n\n // Event manager\n if (eventManager) {\n eventManager.setEnabled(true);\n }\n\n // Animation manager\n if (cc.AnimationManager) {\n this._animationManager = new cc.AnimationManager();\n this._scheduler.scheduleUpdate(this._animationManager, Scheduler.PRIORITY_SYSTEM, false);\n }\n else {\n this._animationManager = null;\n }\n\n // collision manager\n if (cc.CollisionManager) {\n this._collisionManager = new cc.CollisionManager();\n this._scheduler.scheduleUpdate(this._collisionManager, Scheduler.PRIORITY_SYSTEM, false);\n }\n else {\n this._collisionManager = null;\n }\n\n // physics manager\n if (cc.PhysicsManager) {\n this._physicsManager = new cc.PhysicsManager();\n this._scheduler.scheduleUpdate(this._physicsManager, Scheduler.PRIORITY_SYSTEM, false);\n }\n else {\n this._physicsManager = null;\n }\n\n // physics 3d manager\n if (cc.Physics3DManager && (CC_PHYSICS_BUILTIN || CC_PHYSICS_CANNON)) {\n this._physics3DManager = new cc.Physics3DManager();\n this._scheduler.scheduleUpdate(this._physics3DManager, Scheduler.PRIORITY_SYSTEM, false);\n } else {\n this._physics3DManager = null;\n }\n\n // WidgetManager\n if (cc._widgetManager) {\n cc._widgetManager.init(this);\n }\n },\n\n /**\n * calculates delta time since last time it was called\n */\n calculateDeltaTime: function (now) {\n if (!now) now = performance.now();\n\n // avoid delta time from being negative\n // negative deltaTime would be caused by the precision of now's value, for details please see: https://developer.mozilla.org/zh-CN/docs/Web/API/window/requestAnimationFrame\n this._deltaTime = now > this._lastUpdate ? (now - this._lastUpdate) / 1000 : 0;\n if (CC_DEBUG && (this._deltaTime > 1))\n this._deltaTime = 1 / 60.0;\n\n this._lastUpdate = now;\n },\n\n /**\n * !#en\n * Converts a view coordinate to an WebGL coordinate
\n * Useful to convert (multi) touches coordinates to the current layout (portrait or landscape)
\n * Implementation can be found in CCDirectorWebGL.\n * !#zh 将触摸点的屏幕坐标转换为 WebGL View 下的坐标。\n * @method convertToGL\n * @param {Vec2} uiPoint\n * @return {Vec2}\n * @deprecated since v2.0\n */\n convertToGL: function (uiPoint) {\n var container = game.container;\n var view = cc.view;\n var box = container.getBoundingClientRect();\n var left = box.left + window.pageXOffset - container.clientLeft;\n var top = box.top + window.pageYOffset - container.clientTop;\n var x = view._devicePixelRatio * (uiPoint.x - left);\n var y = view._devicePixelRatio * (top + box.height - uiPoint.y);\n return view._isRotated ? cc.v2(view._viewportRect.width - y, x) : cc.v2(x, y);\n },\n\n /**\n * !#en\n * Converts an OpenGL coordinate to a view coordinate
\n * Useful to convert node points to window points for calls such as glScissor
\n * Implementation can be found in CCDirectorWebGL.\n * !#zh 将触摸点的 WebGL View 坐标转换为屏幕坐标。\n * @method convertToUI\n * @param {Vec2} glPoint\n * @return {Vec2}\n * @deprecated since v2.0\n */\n convertToUI: function (glPoint) {\n var container = game.container;\n var view = cc.view;\n var box = container.getBoundingClientRect();\n var left = box.left + window.pageXOffset - container.clientLeft;\n var top = box.top + window.pageYOffset - container.clientTop;\n var uiPoint = cc.v2(0, 0);\n if (view._isRotated) {\n uiPoint.x = left + glPoint.y / view._devicePixelRatio;\n uiPoint.y = top + box.height - (view._viewportRect.width - glPoint.x) / view._devicePixelRatio;\n }\n else {\n uiPoint.x = left + glPoint.x * view._devicePixelRatio;\n uiPoint.y = top + box.height - glPoint.y * view._devicePixelRatio;\n }\n return uiPoint;\n },\n\n /**\n * End the life of director in the next frame\n * @method end\n */\n end: function () {\n this._purgeDirectorInNextLoop = true;\n },\n\n /**\n * !#en\n * Returns the size of the WebGL view in points.
\n * It takes into account any possible rotation (device orientation) of the window.\n * !#zh 获取视图的大小,以点为单位。\n * @method getWinSize\n * @return {Size}\n * @deprecated since v2.0\n */\n getWinSize: function () {\n return cc.size(cc.winSize);\n },\n\n /**\n * !#en\n * Returns the size of the OpenGL view in pixels.
\n * It takes into account any possible rotation (device orientation) of the window.
\n * On Mac winSize and winSizeInPixels return the same value.\n * (The pixel here refers to the resource resolution. If you want to get the physics resolution of device, you need to use cc.view.getFrameSize())\n * !#zh\n * 获取视图大小,以像素为单位(这里的像素指的是资源分辨率。\n * 如果要获取屏幕物理分辨率,需要用 cc.view.getFrameSize())\n * @method getWinSizeInPixels\n * @return {Size}\n * @deprecated since v2.0\n */\n getWinSizeInPixels: function () {\n return cc.size(cc.winSize);\n },\n\n /**\n * !#en Pause the director's ticker, only involve the game logic execution.\n * It won't pause the rendering process nor the event manager.\n * If you want to pause the entier game including rendering, audio and event, \n * please use {{#crossLink \"Game.pause\"}}cc.game.pause{{/crossLink}}\n * !#zh 暂停正在运行的场景,该暂停只会停止游戏逻辑执行,但是不会停止渲染和 UI 响应。\n * 如果想要更彻底得暂停游戏,包含渲染,音频和事件,请使用 {{#crossLink \"Game.pause\"}}cc.game.pause{{/crossLink}}。\n * @method pause\n */\n pause: function () {\n if (this._paused)\n return;\n this._paused = true;\n },\n\n /**\n * Removes cached all cocos2d cached data.\n * @deprecated since v2.0\n */\n purgeCachedData: function () {\n cc.assetManager.releaseAll();\n },\n\n /**\n * Purge the cc.director itself, including unschedule all schedule, remove all event listeners, clean up and exit the running scene, stops all animations, clear cached data.\n */\n purgeDirector: function () {\n //cleanup scheduler\n this._scheduler.unscheduleAll();\n this._compScheduler.unscheduleAll();\n\n this._nodeActivator.reset();\n\n // Disable event dispatching\n if (eventManager)\n eventManager.setEnabled(false);\n\n if (!CC_EDITOR) {\n if (cc.isValid(this._scene)) {\n this._scene.destroy();\n }\n this._scene = null;\n\n cc.renderer.clear();\n cc.assetManager.builtins.clear();\n }\n\n cc.game.pause();\n\n // Clear all caches\n cc.assetManager.releaseAll();\n },\n\n /**\n * Reset the cc.director, can be used to restart the director after purge\n */\n reset: function () {\n this.purgeDirector();\n\n if (eventManager)\n eventManager.setEnabled(true);\n\n // Action manager\n if (this._actionManager){\n this._scheduler.scheduleUpdate(this._actionManager, cc.Scheduler.PRIORITY_SYSTEM, false);\n }\n\n // Animation manager\n if (this._animationManager) {\n this._scheduler.scheduleUpdate(this._animationManager, cc.Scheduler.PRIORITY_SYSTEM, false);\n }\n\n // Collider manager\n if (this._collisionManager) {\n this._scheduler.scheduleUpdate(this._collisionManager, cc.Scheduler.PRIORITY_SYSTEM, false);\n }\n\n // Physics manager\n if (this._physicsManager) {\n this._scheduler.scheduleUpdate(this._physicsManager, cc.Scheduler.PRIORITY_SYSTEM, false);\n }\n\n cc.game.resume();\n },\n\n /**\n * !#en\n * Run a scene. Replaces the running scene with a new one or enter the first scene.
\n * The new scene will be launched immediately.\n * !#zh 立刻切换指定场景。\n * @method runSceneImmediate\n * @param {Scene|SceneAsset} scene - The need run scene.\n * @param {Function} [onBeforeLoadScene] - The function invoked at the scene before loading.\n * @param {Function} [onLaunched] - The function invoked at the scene after launch.\n */\n runSceneImmediate: function (scene, onBeforeLoadScene, onLaunched) {\n cc.assertID(scene instanceof cc.Scene || scene instanceof cc.SceneAsset, 1216);\n\n if (scene instanceof cc.SceneAsset) scene = scene.scene;\n\n CC_BUILD && CC_DEBUG && console.time('InitScene');\n scene._load(); // ensure scene initialized\n CC_BUILD && CC_DEBUG && console.timeEnd('InitScene');\n\n // Re-attach or replace persist nodes\n CC_BUILD && CC_DEBUG && console.time('AttachPersist');\n var persistNodeList = Object.keys(game._persistRootNodes).map(function (x) {\n return game._persistRootNodes[x];\n });\n for (let i = 0; i < persistNodeList.length; i++) {\n let node = persistNodeList[i];\n var existNode = scene.getChildByUuid(node.uuid);\n if (existNode) {\n // scene also contains the persist node, select the old one\n var index = existNode.getSiblingIndex();\n existNode._destroyImmediate();\n scene.insertChild(node, index);\n }\n else {\n node.parent = scene;\n }\n }\n CC_BUILD && CC_DEBUG && console.timeEnd('AttachPersist');\n\n var oldScene = this._scene;\n if (!CC_EDITOR) {\n // auto release assets\n CC_BUILD && CC_DEBUG && console.time('AutoRelease');\n cc.assetManager._releaseManager._autoRelease(oldScene, scene, game._persistRootNodes);\n CC_BUILD && CC_DEBUG && console.timeEnd('AutoRelease');\n }\n\n // unload scene\n CC_BUILD && CC_DEBUG && console.time('Destroy');\n if (cc.isValid(oldScene)) {\n oldScene.destroy();\n }\n\n this._scene = null;\n\n // purge destroyed nodes belongs to old scene\n Obj._deferredDestroy();\n CC_BUILD && CC_DEBUG && console.timeEnd('Destroy');\n\n if (onBeforeLoadScene) {\n onBeforeLoadScene();\n }\n this.emit(cc.Director.EVENT_BEFORE_SCENE_LAUNCH, scene);\n\n // Run an Entity Scene\n this._scene = scene;\n\n CC_BUILD && CC_DEBUG && console.time('Activate');\n scene._activate();\n CC_BUILD && CC_DEBUG && console.timeEnd('Activate');\n\n //start scene\n cc.game.resume();\n\n if (onLaunched) {\n onLaunched(null, scene);\n }\n this.emit(cc.Director.EVENT_AFTER_SCENE_LAUNCH, scene);\n },\n\n /**\n * !#en\n * Run a scene. Replaces the running scene with a new one or enter the first scene.\n * The new scene will be launched at the end of the current frame.\n * !#zh 运行指定场景。\n * @method runScene\n * @param {Scene|SceneAsset} scene - The need run scene.\n * @param {Function} [onBeforeLoadScene] - The function invoked at the scene before loading.\n * @param {Function} [onLaunched] - The function invoked at the scene after launch.\n */\n runScene: function (scene, onBeforeLoadScene, onLaunched) {\n cc.assertID(scene, 1205);\n cc.assertID(scene instanceof cc.Scene || scene instanceof cc.SceneAsset, 1216);\n\n if (scene instanceof cc.SceneAsset) scene = scene.scene;\n // ensure scene initialized\n scene._load();\n\n // Delay run / replace scene to the end of the frame\n this.once(cc.Director.EVENT_AFTER_DRAW, function () {\n this.runSceneImmediate(scene, onBeforeLoadScene, onLaunched);\n }, this);\n },\n\n /**\n * !#en Loads the scene by its name.\n * !#zh 通过场景名称进行加载场景。\n *\n * @method loadScene\n * @param {String} sceneName - The name of the scene to load.\n * @param {Function} [onLaunched] - callback, will be called after scene launched.\n * @return {Boolean} if error, return false\n */\n loadScene: function (sceneName, onLaunched, _onUnloaded) {\n if (this._loadingScene) {\n cc.warnID(1208, sceneName, this._loadingScene);\n return false;\n }\n var bundle = cc.assetManager.bundles.find(function (bundle) {\n return bundle.getSceneInfo(sceneName);\n });\n if (bundle) {\n this.emit(cc.Director.EVENT_BEFORE_SCENE_LOADING, sceneName);\n this._loadingScene = sceneName;\n var self = this;\n console.time('LoadScene ' + sceneName);\n bundle.loadScene(sceneName, function (err, scene) {\n console.timeEnd('LoadScene ' + sceneName);\n self._loadingScene = '';\n if (err) {\n err = 'Failed to load scene: ' + err;\n cc.error(err);\n onLaunched && onLaunched(err);\n }\n else {\n self.runSceneImmediate(scene, _onUnloaded, onLaunched);\n }\n });\n return true;\n }\n else {\n cc.errorID(1209, sceneName);\n return false;\n }\n },\n\n /**\n * !#en\n * Preloads the scene to reduces loading time. You can call this method at any time you want.\n * After calling this method, you still need to launch the scene by `cc.director.loadScene`.\n * It will be totally fine to call `cc.director.loadScene` at any time even if the preloading is not\n * yet finished, the scene will be launched after loaded automatically.\n * !#zh 预加载场景,你可以在任何时候调用这个方法。\n * 调用完后,你仍然需要通过 `cc.director.loadScene` 来启动场景,因为这个方法不会执行场景加载操作。\n * 就算预加载还没完成,你也可以直接调用 `cc.director.loadScene`,加载完成后场景就会启动。\n *\n * @method preloadScene\n * @param {String} sceneName - The name of the scene to preload.\n * @param {Function} [onProgress] - callback, will be called when the load progression change.\n * @param {Number} onProgress.completedCount - The number of the items that are already completed\n * @param {Number} onProgress.totalCount - The total number of the items\n * @param {Object} onProgress.item - The latest item which flow out the pipeline\n * @param {Function} [onLoaded] - callback, will be called after scene loaded.\n * @param {Error} onLoaded.error - null or the error object.\n */\n preloadScene (sceneName, onProgress, onLoaded) {\n var bundle = cc.assetManager.bundles.find(function (bundle) {\n return bundle.getSceneInfo(sceneName);\n });\n if (bundle) {\n bundle.preloadScene(sceneName, null, onProgress, onLoaded);\n }\n else {\n cc.errorID(1209, sceneName);\n return null;\n }\n },\n\n\n /**\n * !#en Resume game logic execution after pause, if the current scene is not paused, nothing will happen.\n * !#zh 恢复暂停场景的游戏逻辑,如果当前场景没有暂停将没任何事情发生。\n * @method resume\n */\n resume: function () {\n if (!this._paused) {\n return;\n }\n\n this._lastUpdate = performance.now();\n if (!this._lastUpdate) {\n cc.logID(1200);\n }\n\n this._paused = false;\n this._deltaTime = 0;\n },\n\n /**\n * !#en\n * Enables or disables WebGL depth test.
\n * Implementation can be found in CCDirectorCanvas.js/CCDirectorWebGL.js\n * !#zh 启用/禁用深度测试(在 Canvas 渲染模式下不会生效)。\n * @method setDepthTest\n * @param {Boolean} on\n * @deprecated since v2.0\n */\n setDepthTest: function (value) {\n if (!cc.Camera.main) {\n return;\n }\n cc.Camera.main.depth = !!value;\n },\n\n /**\n * !#en\n * Set color for clear screen.
\n * (Implementation can be found in CCDirectorCanvas.js/CCDirectorWebGL.js)\n * !#zh\n * 设置场景的默认擦除颜色。
\n * 支持全透明,但不支持透明度为中间值。要支持全透明需手工开启 cc.macro.ENABLE_TRANSPARENT_CANVAS。\n * @method setClearColor\n * @param {Color} clearColor\n * @deprecated since v2.0\n */\n setClearColor: function (clearColor) {\n if (!cc.Camera.main) {\n return;\n }\n cc.Camera.main.backgroundColor = clearColor;\n },\n\n /**\n * !#en Returns current logic Scene.\n * !#zh 获取当前逻辑场景。\n * @method getRunningScene\n * @private\n * @return {Scene}\n * @deprecated since v2.0\n */\n getRunningScene: function () {\n return this._scene;\n },\n\n /**\n * !#en Returns current logic Scene.\n * !#zh 获取当前逻辑场景。\n * @method getScene\n * @return {Scene}\n * @example\n * // This will help you to get the Canvas node in scene\n * cc.director.getScene().getChildByName('Canvas');\n */\n getScene: function () {\n return this._scene;\n },\n\n /**\n * !#en Returns the FPS value. Please use {{#crossLink \"Game.setFrameRate\"}}cc.game.setFrameRate{{/crossLink}} to control animation interval.\n * !#zh 获取单位帧执行时间。请使用 {{#crossLink \"Game.setFrameRate\"}}cc.game.setFrameRate{{/crossLink}} 来控制游戏帧率。\n * @method getAnimationInterval\n * @deprecated since v2.0\n * @return {Number}\n */\n getAnimationInterval: function () {\n return 1000 / game.getFrameRate();\n },\n\n /**\n * Sets animation interval, this doesn't control the main loop.\n * To control the game's frame rate overall, please use {{#crossLink \"Game.setFrameRate\"}}cc.game.setFrameRate{{/crossLink}}\n * @method setAnimationInterval\n * @deprecated since v2.0\n * @param {Number} value - The animation interval desired.\n */\n setAnimationInterval: function (value) {\n game.setFrameRate(Math.round(1000 / value));\n },\n\n /**\n * !#en Returns the delta time since last frame.\n * !#zh 获取上一帧的增量时间。\n * @method getDeltaTime\n * @return {Number}\n */\n getDeltaTime: function () {\n return this._deltaTime;\n },\n\n /**\n * !#en Returns the total passed time since game start, unit: ms\n * !#zh 获取从游戏开始到现在总共经过的时间,单位为 ms\n * @method getTotalTime\n * @return {Number}\n */\n getTotalTime: function () {\n return performance.now() - this._startTime;\n },\n\n /**\n * !#en Returns how many frames were called since the director started.\n * !#zh 获取 director 启动以来游戏运行的总帧数。\n * @method getTotalFrames\n * @return {Number}\n */\n getTotalFrames: function () {\n return this._totalFrames;\n },\n\n /**\n * !#en Returns whether or not the Director is paused.\n * !#zh 是否处于暂停状态。\n * @method isPaused\n * @return {Boolean}\n */\n isPaused: function () {\n return this._paused;\n },\n\n /**\n * !#en Returns the cc.Scheduler associated with this director.\n * !#zh 获取和 director 相关联的 cc.Scheduler。\n * @method getScheduler\n * @return {Scheduler}\n */\n getScheduler: function () {\n return this._scheduler;\n },\n\n /**\n * !#en Sets the cc.Scheduler associated with this director.\n * !#zh 设置和 director 相关联的 cc.Scheduler。\n * @method setScheduler\n * @param {Scheduler} scheduler\n */\n setScheduler: function (scheduler) {\n if (this._scheduler !== scheduler) {\n this._scheduler = scheduler;\n }\n },\n\n /**\n * !#en Returns the cc.ActionManager associated with this director.\n * !#zh 获取和 director 相关联的 cc.ActionManager(动作管理器)。\n * @method getActionManager\n * @return {ActionManager}\n */\n getActionManager: function () {\n return this._actionManager;\n },\n /**\n * !#en Sets the cc.ActionManager associated with this director.\n * !#zh 设置和 director 相关联的 cc.ActionManager(动作管理器)。\n * @method setActionManager\n * @param {ActionManager} actionManager\n */\n setActionManager: function (actionManager) {\n if (this._actionManager !== actionManager) {\n if (this._actionManager) {\n this._scheduler.unscheduleUpdate(this._actionManager);\n }\n this._actionManager = actionManager;\n this._scheduler.scheduleUpdate(this._actionManager, cc.Scheduler.PRIORITY_SYSTEM, false);\n }\n },\n\n /* \n * !#en Returns the cc.AnimationManager associated with this director.\n * !#zh 获取和 director 相关联的 cc.AnimationManager(动画管理器)。\n * @method getAnimationManager\n * @return {AnimationManager}\n */\n getAnimationManager: function () {\n return this._animationManager;\n },\n\n /**\n * !#en Returns the cc.CollisionManager associated with this director.\n * !#zh 获取和 director 相关联的 cc.CollisionManager (碰撞管理器)。\n * @method getCollisionManager\n * @return {CollisionManager}\n */\n getCollisionManager: function () {\n return this._collisionManager;\n },\n\n /**\n * !#en Returns the cc.PhysicsManager associated with this director.\n * !#zh 返回与 director 相关联的 cc.PhysicsManager (物理管理器)。\n * @method getPhysicsManager\n * @return {PhysicsManager}\n */\n getPhysicsManager: function () {\n return this._physicsManager;\n },\n\n /**\n * !#en Returns the cc.Physics3DManager associated with this director.\n * !#zh 返回与 director 相关联的 cc.Physics3DManager (物理管理器)。\n * @method getPhysics3DManager\n * @return {Physics3DManager}\n */\n getPhysics3DManager: function () {\n return this._physics3DManager;\n },\n\n // Loop management\n /*\n * Starts Animation\n * @deprecated since v2.1.2\n */\n startAnimation: function () {\n cc.game.resume();\n },\n\n /*\n * Stops animation\n * @deprecated since v2.1.2\n */\n stopAnimation: function () {\n cc.game.pause();\n },\n\n _resetDeltaTime () {\n this._lastUpdate = performance.now();\n this._deltaTime = 0;\n },\n\n /*\n * Run main loop of director\n */\n mainLoop: CC_EDITOR ? function (deltaTime, updateAnimate) {\n this._deltaTime = deltaTime;\n\n // Update\n if (!this._paused) {\n this.emit(cc.Director.EVENT_BEFORE_UPDATE);\n\n this._compScheduler.startPhase();\n this._compScheduler.updatePhase(deltaTime);\n\n if (updateAnimate) {\n this._scheduler.update(deltaTime);\n }\n\n this._compScheduler.lateUpdatePhase(deltaTime);\n\n this.emit(cc.Director.EVENT_AFTER_UPDATE);\n }\n\n // Render\n this.emit(cc.Director.EVENT_BEFORE_DRAW);\n renderer.render(this._scene, deltaTime);\n \n // After draw\n this.emit(cc.Director.EVENT_AFTER_DRAW);\n\n this._totalFrames++;\n\n } : function (now) {\n if (this._purgeDirectorInNextLoop) {\n this._purgeDirectorInNextLoop = false;\n this.purgeDirector();\n }\n else {\n // calculate \"global\" dt\n this.calculateDeltaTime(now);\n\n // Update\n if (!this._paused) {\n // before update\n this.emit(cc.Director.EVENT_BEFORE_UPDATE);\n\n // Call start for new added components\n this._compScheduler.startPhase();\n\n // Update for components\n this._compScheduler.updatePhase(this._deltaTime);\n // Engine update with scheduler\n this._scheduler.update(this._deltaTime);\n\n // Late update for components\n this._compScheduler.lateUpdatePhase(this._deltaTime);\n\n // User can use this event to do things after update\n this.emit(cc.Director.EVENT_AFTER_UPDATE);\n \n // Destroy entities that have been removed recently\n Obj._deferredDestroy();\n }\n\n // Render\n this.emit(cc.Director.EVENT_BEFORE_DRAW);\n renderer.render(this._scene, this._deltaTime);\n\n // After draw\n this.emit(cc.Director.EVENT_AFTER_DRAW);\n\n eventManager.frameUpdateListeners();\n this._totalFrames++;\n }\n },\n\n __fastOn: function (type, callback, target) {\n this.on(type, callback, target);\n },\n\n __fastOff: function (type, callback, target) {\n this.off(type, callback, target);\n },\n};\n\n// Event target\ncc.js.addon(cc.Director.prototype, EventTarget.prototype);\n\n/**\n * !#en The event projection changed of cc.Director. This event will not get triggered since v2.0\n * !#zh cc.Director 投影变化的事件。从 v2.0 开始这个事件不会再被触发\n * @property {String} EVENT_PROJECTION_CHANGED\n * @readonly\n * @static\n * @deprecated since v2.0\n */\ncc.Director.EVENT_PROJECTION_CHANGED = \"director_projection_changed\";\n\n/**\n * !#en The event which will be triggered before loading a new scene.\n * !#zh 加载新场景之前所触发的事件。\n * @event cc.Director.EVENT_BEFORE_SCENE_LOADING\n * @param {String} sceneName - The loading scene name\n */\n/**\n * !#en The event which will be triggered before loading a new scene.\n * !#zh 加载新场景之前所触发的事件。\n * @property {String} EVENT_BEFORE_SCENE_LOADING\n * @readonly\n * @static\n */\ncc.Director.EVENT_BEFORE_SCENE_LOADING = \"director_before_scene_loading\";\n\n/*\n * !#en The event which will be triggered before launching a new scene.\n * !#zh 运行新场景之前所触发的事件。\n * @event cc.Director.EVENT_BEFORE_SCENE_LAUNCH\n * @param {String} sceneName - New scene which will be launched\n */\n/**\n * !#en The event which will be triggered before launching a new scene.\n * !#zh 运行新场景之前所触发的事件。\n * @property {String} EVENT_BEFORE_SCENE_LAUNCH\n * @readonly\n * @static\n */\ncc.Director.EVENT_BEFORE_SCENE_LAUNCH = \"director_before_scene_launch\";\n\n/**\n * !#en The event which will be triggered after launching a new scene.\n * !#zh 运行新场景之后所触发的事件。\n * @event cc.Director.EVENT_AFTER_SCENE_LAUNCH\n * @param {String} sceneName - New scene which is launched\n */\n/**\n * !#en The event which will be triggered after launching a new scene.\n * !#zh 运行新场景之后所触发的事件。\n * @property {String} EVENT_AFTER_SCENE_LAUNCH\n * @readonly\n * @static\n */\ncc.Director.EVENT_AFTER_SCENE_LAUNCH = \"director_after_scene_launch\";\n\n/**\n * !#en The event which will be triggered at the beginning of every frame.\n * !#zh 每个帧的开始时所触发的事件。\n * @event cc.Director.EVENT_BEFORE_UPDATE\n */\n/**\n * !#en The event which will be triggered at the beginning of every frame.\n * !#zh 每个帧的开始时所触发的事件。\n * @property {String} EVENT_BEFORE_UPDATE\n * @readonly\n * @static\n */\ncc.Director.EVENT_BEFORE_UPDATE = \"director_before_update\";\n\n/**\n * !#en The event which will be triggered after engine and components update logic.\n * !#zh 将在引擎和组件 “update” 逻辑之后所触发的事件。\n * @event cc.Director.EVENT_AFTER_UPDATE\n */\n/**\n * !#en The event which will be triggered after engine and components update logic.\n * !#zh 将在引擎和组件 “update” 逻辑之后所触发的事件。\n * @property {String} EVENT_AFTER_UPDATE\n * @readonly\n * @static\n */\ncc.Director.EVENT_AFTER_UPDATE = \"director_after_update\";\n\n/**\n * !#en The event is deprecated since v2.0, please use cc.Director.EVENT_BEFORE_DRAW instead\n * !#zh 这个事件从 v2.0 开始被废弃,请直接使用 cc.Director.EVENT_BEFORE_DRAW\n * @property {String} EVENT_BEFORE_VISIT\n * @readonly\n * @deprecated since v2.0\n * @static\n */\ncc.Director.EVENT_BEFORE_VISIT = \"director_before_draw\";\n\n/**\n * !#en The event is deprecated since v2.0, please use cc.Director.EVENT_BEFORE_DRAW instead\n * !#zh 这个事件从 v2.0 开始被废弃,请直接使用 cc.Director.EVENT_BEFORE_DRAW\n * @property {String} EVENT_AFTER_VISIT\n * @readonly\n * @deprecated since v2.0\n * @static\n */\ncc.Director.EVENT_AFTER_VISIT = \"director_before_draw\";\n\n/**\n * !#en The event which will be triggered before the rendering process.\n * !#zh 渲染过程之前所触发的事件。\n * @event cc.Director.EVENT_BEFORE_DRAW\n */\n/**\n * !#en The event which will be triggered before the rendering process.\n * !#zh 渲染过程之前所触发的事件。\n * @property {String} EVENT_BEFORE_DRAW\n * @readonly\n * @static\n */\ncc.Director.EVENT_BEFORE_DRAW = \"director_before_draw\";\n\n/**\n * !#en The event which will be triggered after the rendering process.\n * !#zh 渲染过程之后所触发的事件。\n * @event cc.Director.EVENT_AFTER_DRAW\n */\n/**\n * !#en The event which will be triggered after the rendering process.\n * !#zh 渲染过程之后所触发的事件。\n * @property {String} EVENT_AFTER_DRAW\n * @readonly\n * @static\n */\ncc.Director.EVENT_AFTER_DRAW = \"director_after_draw\";\n\n//Possible OpenGL projections used by director\n\n/**\n * Constant for 2D projection (orthogonal projection)\n * @property {Number} PROJECTION_2D\n * @default 0\n * @readonly\n * @static\n * @deprecated since v2.0\n */\ncc.Director.PROJECTION_2D = 0;\n\n/**\n * Constant for 3D projection with a fovy=60, znear=0.5f and zfar=1500.\n * @property {Number} PROJECTION_3D\n * @default 1\n * @readonly\n * @static\n * @deprecated since v2.0\n */\ncc.Director.PROJECTION_3D = 1;\n\n/**\n * Constant for custom projection, if cc.Director's projection set to it, it calls \"updateProjection\" on the projection delegate.\n * @property {Number} PROJECTION_CUSTOM\n * @default 3\n * @readonly\n * @static\n * @deprecated since v2.0\n */\ncc.Director.PROJECTION_CUSTOM = 3;\n\n/**\n * Constant for default projection of cc.Director, default projection is 2D projection\n * @property {Number} PROJECTION_DEFAULT\n * @default cc.Director.PROJECTION_2D\n * @readonly\n * @static\n * @deprecated since v2.0\n */\ncc.Director.PROJECTION_DEFAULT = cc.Director.PROJECTION_2D;\n\n/**\n * The event which will be triggered before the physics process.
\n * 物理过程之前所触发的事件。\n * @event Director.EVENT_BEFORE_PHYSICS\n * @readonly\n */\ncc.Director.EVENT_BEFORE_PHYSICS = 'director_before_physics';\n\n/**\n * The event which will be triggered after the physics process.
\n * 物理过程之后所触发的事件。\n * @event Director.EVENT_AFTER_PHYSICS\n * @readonly\n */\ncc.Director.EVENT_AFTER_PHYSICS = 'director_after_physics';\n\n/**\n * @module cc\n */\n\n/**\n * !#en Director\n * !#zh 导演类。\n * @property director\n * @type {Director}\n */\ncc.director = new cc.Director();\n\nmodule.exports = cc.director;","/****************************************************************************\n Copyright (c) 2013-2016 Chukong Technologies Inc.\n Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n\nvar EventTarget = require('./event/event-target');\nrequire('../audio/CCAudioEngine');\nconst debug = require('./CCDebug');\nconst renderer = require('./renderer/index.js');\nconst dynamicAtlasManager = require('../core/renderer/utils/dynamic-atlas/manager');\n\n/**\n * @module cc\n */\n\n/**\n * !#en An object to boot the game.\n * !#zh 包含游戏主体信息并负责驱动游戏的游戏对象。\n * @class Game\n * @extends EventTarget\n */\nvar game = {\n /**\n * !#en Event triggered when game hide to background.\n * Please note that this event is not 100% guaranteed to be fired on Web platform,\n * on native platforms, it corresponds to enter background event, os status bar or notification center may not trigger this event.\n * !#zh 游戏进入后台时触发的事件。\n * 请注意,在 WEB 平台,这个事件不一定会 100% 触发,这完全取决于浏览器的回调行为。\n * 在原生平台,它对应的是应用被切换到后台事件,下拉菜单和上拉状态栏等不一定会触发这个事件,这取决于系统行为。\n * @property EVENT_HIDE\n * @type {String}\n * @example\n * cc.game.on(cc.game.EVENT_HIDE, function () {\n * cc.audioEngine.pauseMusic();\n * cc.audioEngine.pauseAllEffects();\n * });\n */\n EVENT_HIDE: \"game_on_hide\",\n\n /**\n * !#en Event triggered when game back to foreground\n * Please note that this event is not 100% guaranteed to be fired on Web platform,\n * on native platforms, it corresponds to enter foreground event.\n * !#zh 游戏进入前台运行时触发的事件。\n * 请注意,在 WEB 平台,这个事件不一定会 100% 触发,这完全取决于浏览器的回调行为。\n * 在原生平台,它对应的是应用被切换到前台事件。\n * @property EVENT_SHOW\n * @constant\n * @type {String}\n */\n EVENT_SHOW: \"game_on_show\",\n\n /**\n * !#en Event triggered when game restart\n * !#zh 调用restart后,触发事件。\n * @property EVENT_RESTART\n * @constant\n * @type {String}\n */\n EVENT_RESTART: \"game_on_restart\",\n\n /**\n * Event triggered after game inited, at this point all engine objects and game scripts are loaded\n * @property EVENT_GAME_INITED\n * @constant\n * @type {String}\n */\n EVENT_GAME_INITED: \"game_inited\",\n\n /**\n * Event triggered after engine inited, at this point you will be able to use all engine classes.\n * It was defined as EVENT_RENDERER_INITED in cocos creator v1.x and renamed in v2.0\n * @property EVENT_ENGINE_INITED\n * @constant\n * @type {String}\n */\n EVENT_ENGINE_INITED: \"engine_inited\",\n // deprecated\n EVENT_RENDERER_INITED: \"engine_inited\",\n\n /**\n * Web Canvas 2d API as renderer backend\n * @property RENDER_TYPE_CANVAS\n * @constant\n * @type {Number}\n */\n RENDER_TYPE_CANVAS: 0,\n /**\n * WebGL API as renderer backend\n * @property RENDER_TYPE_WEBGL\n * @constant\n * @type {Number}\n */\n RENDER_TYPE_WEBGL: 1,\n /**\n * OpenGL API as renderer backend\n * @property RENDER_TYPE_OPENGL\n * @constant\n * @type {Number}\n */\n RENDER_TYPE_OPENGL: 2,\n\n _persistRootNodes: {},\n\n // states\n _paused: true,//whether the game is paused\n _configLoaded: false,//whether config loaded\n _isCloning: false, // deserializing or instantiating\n _prepared: false, //whether the engine has prepared\n _rendererInitialized: false,\n\n _renderContext: null,\n\n _intervalId: null,//interval target of main\n\n _lastTime: null,\n _frameTime: null,\n\n /**\n * !#en The outer frame of the game canvas, parent of game container.\n * !#zh 游戏画布的外框,container 的父容器。\n * @property frame\n * @type {Object}\n */\n frame: null,\n /**\n * !#en The container of game canvas.\n * !#zh 游戏画布的容器。\n * @property container\n * @type {HTMLDivElement}\n */\n container: null,\n /**\n * !#en The canvas of the game.\n * !#zh 游戏的画布。\n * @property canvas\n * @type {HTMLCanvasElement}\n */\n canvas: null,\n\n /**\n * !#en The renderer backend of the game.\n * !#zh 游戏的渲染器类型。\n * @property renderType\n * @type {Number}\n */\n renderType: -1,\n\n /**\n * !#en\n * The current game configuration, including:
\n * 1. debugMode
\n * \"debugMode\" possible values :
\n * 0 - No message will be printed.
\n * 1 - cc.error, cc.assert, cc.warn, cc.log will print in console.
\n * 2 - cc.error, cc.assert, cc.warn will print in console.
\n * 3 - cc.error, cc.assert will print in console.
\n * 4 - cc.error, cc.assert, cc.warn, cc.log will print on canvas, available only on web.
\n * 5 - cc.error, cc.assert, cc.warn will print on canvas, available only on web.
\n * 6 - cc.error, cc.assert will print on canvas, available only on web.
\n * 2. showFPS
\n * Left bottom corner fps information will show when \"showFPS\" equals true, otherwise it will be hide.
\n * 3. exposeClassName
\n * Expose class name to chrome debug tools, the class intantiate performance is a little bit slower when exposed.
\n * 4. frameRate
\n * \"frameRate\" set the wanted frame rate for your game, but the real fps depends on your game implementation and the running environment.
\n * 5. id
\n * \"gameCanvas\" sets the id of your canvas element on the web page, it's useful only on web.
\n * 6. renderMode
\n * \"renderMode\" sets the renderer type, only useful on web :
\n * 0 - Automatically chosen by engine
\n * 1 - Forced to use canvas renderer
\n * 2 - Forced to use WebGL renderer, but this will be ignored on mobile browsers
\n *
\n * Please DO NOT modify this object directly, it won't have any effect.
\n * !#zh\n * 当前的游戏配置,包括:
\n * 1. debugMode(debug 模式,但是在浏览器中这个选项会被忽略)
\n * \"debugMode\" 各种设置选项的意义。
\n * 0 - 没有消息被打印出来。
\n * 1 - cc.error,cc.assert,cc.warn,cc.log 将打印在 console 中。
\n * 2 - cc.error,cc.assert,cc.warn 将打印在 console 中。
\n * 3 - cc.error,cc.assert 将打印在 console 中。
\n * 4 - cc.error,cc.assert,cc.warn,cc.log 将打印在 canvas 中(仅适用于 web 端)。
\n * 5 - cc.error,cc.assert,cc.warn 将打印在 canvas 中(仅适用于 web 端)。
\n * 6 - cc.error,cc.assert 将打印在 canvas 中(仅适用于 web 端)。
\n * 2. showFPS(显示 FPS)
\n * 当 showFPS 为 true 的时候界面的左下角将显示 fps 的信息,否则被隐藏。
\n * 3. exposeClassName
\n * 暴露类名让 Chrome DevTools 可以识别,如果开启会稍稍降低类的创建过程的性能,但对对象构造没有影响。
\n * 4. frameRate (帧率)
\n * “frameRate” 设置想要的帧率你的游戏,但真正的FPS取决于你的游戏实现和运行环境。
\n * 5. id
\n * \"gameCanvas\" Web 页面上的 Canvas Element ID,仅适用于 web 端。
\n * 6. renderMode(渲染模式)
\n * “renderMode” 设置渲染器类型,仅适用于 web 端:
\n * 0 - 通过引擎自动选择。
\n * 1 - 强制使用 canvas 渲染。\n * 2 - 强制使用 WebGL 渲染,但是在部分 Android 浏览器中这个选项会被忽略。
\n *
\n * 注意:请不要直接修改这个对象,它不会有任何效果。\n * @property config\n * @type {Object}\n */\n config: null,\n\n /**\n * !#en Callback when the scripts of engine have been load.\n * !#zh 当引擎完成启动后的回调函数。\n * @method onStart\n * @type {Function}\n */\n onStart: null,\n\n//@Public Methods\n\n// @Game play control\n /**\n * !#en Set frame rate of game.\n * !#zh 设置游戏帧率。\n * @method setFrameRate\n * @param {Number} frameRate\n */\n setFrameRate: function (frameRate) {\n var config = this.config;\n config.frameRate = frameRate;\n if (this._intervalId)\n window.cancelAnimFrame(this._intervalId);\n this._intervalId = 0;\n this._paused = true;\n this._setAnimFrame();\n this._runMainLoop();\n },\n\n /**\n * !#en Get frame rate set for the game, it doesn't represent the real frame rate.\n * !#zh 获取设置的游戏帧率(不等同于实际帧率)。\n * @method getFrameRate\n * @return {Number} frame rate\n */\n getFrameRate: function () {\n return this.config.frameRate;\n },\n\n /**\n * !#en Run the game frame by frame.\n * !#zh 执行一帧游戏循环。\n * @method step\n */\n step: function () {\n cc.director.mainLoop();\n },\n\n /**\n * !#en Pause the game main loop. This will pause:\n * game logic execution, rendering process, event manager, background music and all audio effects.\n * This is different with cc.director.pause which only pause the game logic execution.\n * !#zh 暂停游戏主循环。包含:游戏逻辑,渲染,事件处理,背景音乐和所有音效。这点和只暂停游戏逻辑的 cc.director.pause 不同。\n * @method pause\n */\n pause: function () {\n if (this._paused) return;\n this._paused = true;\n // Pause audio engine\n if (cc.audioEngine) {\n cc.audioEngine._break();\n }\n // Pause main loop\n if (this._intervalId)\n window.cancelAnimFrame(this._intervalId);\n this._intervalId = 0;\n },\n\n /**\n * !#en Resume the game from pause. This will resume:\n * game logic execution, rendering process, event manager, background music and all audio effects.\n * !#zh 恢复游戏主循环。包含:游戏逻辑,渲染,事件处理,背景音乐和所有音效。\n * @method resume\n */\n resume: function () {\n if (!this._paused) return;\n this._paused = false;\n // Resume audio engine\n if (cc.audioEngine) {\n cc.audioEngine._restore();\n }\n cc.director._resetDeltaTime();\n // Resume main loop\n this._runMainLoop();\n },\n\n /**\n * !#en Check whether the game is paused.\n * !#zh 判断游戏是否暂停。\n * @method isPaused\n * @return {Boolean}\n */\n isPaused: function () {\n return this._paused;\n },\n\n /**\n * !#en Restart game.\n * !#zh 重新开始游戏\n * @method restart\n */\n restart: function () {\n cc.director.once(cc.Director.EVENT_AFTER_DRAW, function () {\n for (var id in game._persistRootNodes) {\n game.removePersistRootNode(game._persistRootNodes[id]);\n }\n\n // Clear scene\n cc.director.getScene().destroy();\n cc.Object._deferredDestroy();\n\n // Clean up audio\n if (cc.audioEngine) {\n cc.audioEngine.uncacheAll();\n }\n\n cc.director.reset();\n\n game.pause();\n cc.assetManager.builtins.init(() => {\n game.onStart();\n game.emit(game.EVENT_RESTART);\n });\n });\n },\n\n /**\n * !#en End game, it will close the game window\n * !#zh 退出游戏\n * @method end\n */\n end: function () {\n close();\n },\n\n// @Game loading\n\n _initEngine () {\n if (this._rendererInitialized) {\n return;\n }\n\n this._initRenderer();\n\n if (!CC_EDITOR) {\n this._initEvents();\n }\n\n this.emit(this.EVENT_ENGINE_INITED);\n },\n\n _loadPreviewScript (cb) {\n if (CC_PREVIEW && window.__quick_compile_project__) {\n window.__quick_compile_project__.load(cb);\n }\n else {\n cb();\n }\n },\n\n _prepareFinished (cb) {\n // Init engine\n this._initEngine();\n this._setAnimFrame();\n cc.assetManager.builtins.init(() => {\n // Log engine version\n console.log('Cocos Creator SP v' + cc.ENGINE_VERSION);\n this._prepared = true;\n this._runMainLoop();\n\n this.emit(this.EVENT_GAME_INITED);\n\n if (cb) cb();\n });\n },\n\n eventTargetOn: EventTarget.prototype.on,\n eventTargetOnce: EventTarget.prototype.once,\n\n /**\n * !#en\n * Register an callback of a specific event type on the game object.\n * This type of event should be triggered via `emit`.\n * !#zh\n * 注册 game 的特定事件类型回调。这种类型的事件应该被 `emit` 触发。\n *\n * @method on\n * @param {String} type - A string representing the event type to listen for.\n * @param {Function} callback - The callback that will be invoked when the event is dispatched.\n * The callback is ignored if it is a duplicate (the callbacks are unique).\n * @param {any} [callback.arg1] arg1\n * @param {any} [callback.arg2] arg2\n * @param {any} [callback.arg3] arg3\n * @param {any} [callback.arg4] arg4\n * @param {any} [callback.arg5] arg5\n * @param {Object} [target] - The target (this object) to invoke the callback, can be null\n * @return {Function} - Just returns the incoming callback so you can save the anonymous function easier.\n * @typescript\n * on(type: string, callback: T, target?: any, useCapture?: boolean): T\n */\n on (type, callback, target, once) {\n // Make sure EVENT_ENGINE_INITED and EVENT_GAME_INITED callbacks to be invoked\n if ((this._prepared && type === this.EVENT_ENGINE_INITED) ||\n (!this._paused && type === this.EVENT_GAME_INITED)) {\n callback.call(target);\n }\n else {\n this.eventTargetOn(type, callback, target, once);\n }\n },\n /**\n * !#en\n * Register an callback of a specific event type on the game object,\n * the callback will remove itself after the first time it is triggered.\n * !#zh\n * 注册 game 的特定事件类型回调,回调会在第一时间被触发后删除自身。\n *\n * @method once\n * @param {String} type - A string representing the event type to listen for.\n * @param {Function} callback - The callback that will be invoked when the event is dispatched.\n * The callback is ignored if it is a duplicate (the callbacks are unique).\n * @param {any} [callback.arg1] arg1\n * @param {any} [callback.arg2] arg2\n * @param {any} [callback.arg3] arg3\n * @param {any} [callback.arg4] arg4\n * @param {any} [callback.arg5] arg5\n * @param {Object} [target] - The target (this object) to invoke the callback, can be null\n */\n once (type, callback, target) {\n // Make sure EVENT_ENGINE_INITED and EVENT_GAME_INITED callbacks to be invoked\n if ((this._prepared && type === this.EVENT_ENGINE_INITED) ||\n (!this._paused && type === this.EVENT_GAME_INITED)) {\n callback.call(target);\n }\n else {\n this.eventTargetOnce(type, callback, target);\n }\n },\n\n /**\n * !#en Prepare game.\n * !#zh 准备引擎,请不要直接调用这个函数。\n * @param {Function} cb\n * @method prepare\n */\n prepare (cb) {\n // Already prepared\n if (this._prepared) {\n if (cb) cb();\n return;\n }\n\n this._loadPreviewScript(() => {\n this._prepareFinished(cb);\n });\n },\n\n /**\n * !#en Run game with configuration object and onStart function.\n * !#zh 运行游戏,并且指定引擎配置和 onStart 的回调。\n * @method run\n * @param {Object} config - Pass configuration object or onStart function\n * @param {Function} onStart - function to be executed after game initialized\n */\n run: function (config, onStart) {\n this._initConfig(config);\n this.onStart = onStart;\n this.prepare(game.onStart && game.onStart.bind(game));\n },\n\n// @ Persist root node section\n /**\n * !#en\n * Add a persistent root node to the game, the persistent node won't be destroyed during scene transition.
\n * The target node must be placed in the root level of hierarchy, otherwise this API won't have any effect.\n * !#zh\n * 声明常驻根节点,该节点不会被在场景切换中被销毁。
\n * 目标节点必须位于为层级的根节点,否则无效。\n * @method addPersistRootNode\n * @param {Node} node - The node to be made persistent\n */\n addPersistRootNode: function (node) {\n if (!cc.Node.isNode(node) || !node.uuid) {\n cc.warnID(3800);\n return;\n }\n var id = node.uuid;\n if (!this._persistRootNodes[id]) {\n var scene = cc.director._scene;\n if (cc.isValid(scene)) {\n if (!node.parent) {\n node.parent = scene;\n }\n else if ( !(node.parent instanceof cc.Scene) ) {\n cc.warnID(3801);\n return;\n }\n else if (node.parent !== scene) {\n cc.warnID(3802);\n return;\n }\n }\n this._persistRootNodes[id] = node;\n node._persistNode = true;\n cc.assetManager._releaseManager._addPersistNodeRef(node);\n }\n },\n\n /**\n * !#en Remove a persistent root node.\n * !#zh 取消常驻根节点。\n * @method removePersistRootNode\n * @param {Node} node - The node to be removed from persistent node list\n */\n removePersistRootNode: function (node) {\n var id = node.uuid || '';\n if (node === this._persistRootNodes[id]) {\n delete this._persistRootNodes[id];\n node._persistNode = false;\n cc.assetManager._releaseManager._removePersistNodeRef(node);\n }\n },\n\n /**\n * !#en Check whether the node is a persistent root node.\n * !#zh 检查节点是否是常驻根节点。\n * @method isPersistRootNode\n * @param {Node} node - The node to be checked\n * @return {Boolean}\n */\n isPersistRootNode: function (node) {\n return node._persistNode;\n },\n\n//@Private Methods\n\n// @Time ticker section\n _setAnimFrame: function () {\n this._lastTime = performance.now();\n var frameRate = game.config.frameRate;\n this._frameTime = 1000 / frameRate;\n cc.director._maxParticleDeltaTime = this._frameTime / 1000 * 2;\n if (CC_JSB || CC_RUNTIME) {\n jsb.setPreferredFramesPerSecond(frameRate);\n window.requestAnimFrame = window.requestAnimationFrame;\n window.cancelAnimFrame = window.cancelAnimationFrame;\n }\n else {\n let rAF = window.requestAnimationFrame = window.requestAnimationFrame ||\n window.webkitRequestAnimationFrame ||\n window.mozRequestAnimationFrame ||\n window.oRequestAnimationFrame ||\n window.msRequestAnimationFrame;\n\n if (frameRate !== 60 && frameRate !== 30) {\n window.requestAnimFrame = rAF ? this._stTimeWithRAF : this._stTime;\n window.cancelAnimFrame = this._ctTime;\n }\n else {\n window.requestAnimFrame = rAF || this._stTime;\n\n window.cancelAnimFrame = window.cancelAnimationFrame ||\n window.cancelRequestAnimationFrame ||\n window.msCancelRequestAnimationFrame ||\n window.mozCancelRequestAnimationFrame ||\n window.oCancelRequestAnimationFrame ||\n window.webkitCancelRequestAnimationFrame ||\n window.msCancelAnimationFrame ||\n window.mozCancelAnimationFrame ||\n window.webkitCancelAnimationFrame ||\n window.oCancelAnimationFrame ||\n this._ctTime;\n }\n }\n },\n\n _stTimeWithRAF: function(callback){\n var currTime = performance.now();\n var timeToCall = Math.max(0, game._frameTime - (currTime - game._lastTime));\n var id = window.setTimeout(function() {\n window.requestAnimationFrame(callback);\n }, timeToCall);\n game._lastTime = currTime + timeToCall;\n return id;\n },\n\n _stTime: function(callback){\n var currTime = performance.now();\n var timeToCall = Math.max(0, game._frameTime - (currTime - game._lastTime));\n var id = window.setTimeout(function() { callback(); },\n timeToCall);\n game._lastTime = currTime + timeToCall;\n return id;\n },\n _ctTime: function(id){\n window.clearTimeout(id);\n },\n //Run game.\n _runMainLoop: function () {\n if (CC_EDITOR) {\n return;\n }\n if (!this._prepared) return;\n\n var self = this, callback, config = self.config,\n director = cc.director,\n skip = true, frameRate = config.frameRate;\n\n debug.setDisplayStats(config.showFPS);\n\n callback = function (now) {\n if (!self._paused) {\n self._intervalId = window.requestAnimFrame(callback);\n if (!CC_JSB && !CC_RUNTIME && frameRate === 30) {\n if (skip = !skip) {\n return;\n }\n }\n director.mainLoop(now);\n }\n };\n\n self._intervalId = window.requestAnimFrame(callback);\n self._paused = false;\n },\n\n// @Game loading section\n _initConfig (config) {\n // Configs adjustment\n if (typeof config.debugMode !== 'number') {\n config.debugMode = 0;\n }\n config.exposeClassName = !!config.exposeClassName;\n if (typeof config.frameRate !== 'number') {\n config.frameRate = 60;\n }\n let renderMode = config.renderMode;\n if (typeof renderMode !== 'number' || renderMode > 2 || renderMode < 0) {\n config.renderMode = 0;\n }\n if (typeof config.registerSystemEvent !== 'boolean') {\n config.registerSystemEvent = true;\n }\n if (renderMode === 1) {\n config.showFPS = false;\n }\n else {\n config.showFPS = !!config.showFPS;\n }\n\n // Collide Map and Group List\n this.collisionMatrix = config.collisionMatrix || [];\n this.groupList = config.groupList || [];\n\n debug._resetDebugSetting(config.debugMode);\n\n this.config = config;\n this._configLoaded = true;\n },\n\n _determineRenderType () {\n let config = this.config,\n userRenderMode = parseInt(config.renderMode) || 0;\n\n // Determine RenderType\n this.renderType = this.RENDER_TYPE_CANVAS;\n let supportRender = false;\n\n if (userRenderMode === 0) {\n if (cc.sys.capabilities['opengl']) {\n this.renderType = this.RENDER_TYPE_WEBGL;\n supportRender = true;\n }\n else if (cc.sys.capabilities['canvas']) {\n this.renderType = this.RENDER_TYPE_CANVAS;\n supportRender = true;\n }\n }\n else if (userRenderMode === 1 && cc.sys.capabilities['canvas']) {\n this.renderType = this.RENDER_TYPE_CANVAS;\n supportRender = true;\n }\n else if (userRenderMode === 2 && cc.sys.capabilities['opengl']) {\n this.renderType = this.RENDER_TYPE_WEBGL;\n supportRender = true;\n }\n\n if (!supportRender) {\n throw new Error(debug.getError(3820, userRenderMode));\n }\n },\n\n _initRenderer () {\n // Avoid setup to be called twice.\n if (this._rendererInitialized) return;\n\n let el = this.config.id,\n width, height,\n localCanvas, localContainer;\n\n if (CC_JSB || CC_RUNTIME) {\n this.container = localContainer = document.createElement(\"DIV\");\n this.frame = localContainer.parentNode === document.body ? document.documentElement : localContainer.parentNode;\n localCanvas = window.__canvas;\n this.canvas = localCanvas;\n }\n else {\n var element = (el instanceof HTMLElement) ? el : (document.querySelector(el) || document.querySelector('#' + el));\n\n if (element.tagName === \"CANVAS\") {\n width = element.width;\n height = element.height;\n\n //it is already a canvas, we wrap it around with a div\n this.canvas = localCanvas = element;\n this.container = localContainer = document.createElement(\"DIV\");\n if (localCanvas.parentNode)\n localCanvas.parentNode.insertBefore(localContainer, localCanvas);\n } else {\n //we must make a new canvas and place into this element\n if (element.tagName !== \"DIV\") {\n cc.warnID(3819);\n }\n width = element.clientWidth;\n height = element.clientHeight;\n this.canvas = localCanvas = document.createElement(\"CANVAS\");\n this.container = localContainer = document.createElement(\"DIV\");\n element.appendChild(localContainer);\n }\n localContainer.setAttribute('id', 'Cocos2dGameContainer');\n localContainer.appendChild(localCanvas);\n this.frame = (localContainer.parentNode === document.body) ? document.documentElement : localContainer.parentNode;\n\n function addClass (element, name) {\n var hasClass = (' ' + element.className + ' ').indexOf(' ' + name + ' ') > -1;\n if (!hasClass) {\n if (element.className) {\n element.className += \" \";\n }\n element.className += name;\n }\n }\n addClass(localCanvas, \"gameCanvas\");\n localCanvas.setAttribute(\"width\", width || 480);\n localCanvas.setAttribute(\"height\", height || 320);\n localCanvas.setAttribute(\"tabindex\", 99);\n }\n\n this._determineRenderType();\n // WebGL context created successfully\n if (this.renderType === this.RENDER_TYPE_WEBGL) {\n var opts = {\n 'stencil': true,\n // MSAA is causing serious performance dropdown on some browsers.\n 'antialias': cc.macro.ENABLE_WEBGL_ANTIALIAS,\n 'alpha': cc.macro.ENABLE_TRANSPARENT_CANVAS\n };\n renderer.initWebGL(localCanvas, opts);\n this._renderContext = renderer.device._gl;\n\n // Enable dynamic atlas manager by default\n if (!cc.macro.CLEANUP_IMAGE_CACHE && dynamicAtlasManager) {\n dynamicAtlasManager.enabled = true;\n }\n }\n if (!this._renderContext) {\n this.renderType = this.RENDER_TYPE_CANVAS;\n // Could be ignored by module settings\n renderer.initCanvas(localCanvas);\n this._renderContext = renderer.device._ctx;\n }\n\n this.canvas.oncontextmenu = function () {\n if (!cc._isContextMenuEnable) return false;\n };\n\n this._rendererInitialized = true;\n },\n\n _initEvents: function () {\n var win = window, hiddenPropName;\n\n // register system events\n if (this.config.registerSystemEvent)\n cc.internal.inputManager.registerSystemEvent(this.canvas);\n\n if (typeof document.hidden !== 'undefined') {\n hiddenPropName = \"hidden\";\n } else if (typeof document.mozHidden !== 'undefined') {\n hiddenPropName = \"mozHidden\";\n } else if (typeof document.msHidden !== 'undefined') {\n hiddenPropName = \"msHidden\";\n } else if (typeof document.webkitHidden !== 'undefined') {\n hiddenPropName = \"webkitHidden\";\n }\n\n var hidden = false;\n\n function onHidden () {\n if (!hidden) {\n hidden = true;\n game.emit(game.EVENT_HIDE);\n }\n }\n // In order to adapt the most of platforms the onshow API.\n function onShown (arg0, arg1, arg2, arg3, arg4) {\n if (hidden) {\n hidden = false;\n game.emit(game.EVENT_SHOW, arg0, arg1, arg2, arg3, arg4);\n }\n }\n\n if (hiddenPropName) {\n var changeList = [\n \"visibilitychange\",\n \"mozvisibilitychange\",\n \"msvisibilitychange\",\n \"webkitvisibilitychange\",\n \"qbrowserVisibilityChange\"\n ];\n for (var i = 0; i < changeList.length; i++) {\n document.addEventListener(changeList[i], function (event) {\n var visible = document[hiddenPropName];\n // QQ App\n visible = visible || event[\"hidden\"];\n if (visible)\n onHidden();\n else\n onShown();\n });\n }\n } else {\n win.addEventListener(\"blur\", onHidden);\n win.addEventListener(\"focus\", onShown);\n }\n\n if (navigator.userAgent.indexOf(\"MicroMessenger\") > -1) {\n win.onfocus = onShown;\n }\n\n if (\"onpageshow\" in window && \"onpagehide\" in window) {\n win.addEventListener(\"pagehide\", onHidden);\n win.addEventListener(\"pageshow\", onShown);\n // Taobao UIWebKit\n document.addEventListener(\"pagehide\", onHidden);\n document.addEventListener(\"pageshow\", onShown);\n }\n\n this.on(game.EVENT_HIDE, function () {\n game.pause();\n });\n this.on(game.EVENT_SHOW, function () {\n game.resume();\n });\n }\n};\n\nEventTarget.call(game);\ncc.js.addon(game, EventTarget.prototype);\n\n/**\n * @module cc\n */\n\n/**\n * !#en This is a Game instance.\n * !#zh 这是一个 Game 类的实例,包含游戏主体信息并负责驱动游戏的游戏对象。。\n * @property game\n * @type Game\n */\ncc.game = module.exports = game;\n","/****************************************************************************\n Copyright (c) 2013-2016 Chukong Technologies Inc.\n Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.\n\n http://www.cocos2d-x.org\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in\n all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n\n'use strict';\n\nimport { Mat4, Vec2, Vec3, Quat, Trs } from './value-types';\n\nconst BaseNode = require('./utils/base-node');\nconst PrefabHelper = require('./utils/prefab-helper');\nconst nodeMemPool = require('./utils/trans-pool').NodeMemPool;\nconst AffineTrans = require('./utils/affine-transform');\nconst eventManager = require('./event-manager');\nconst macro = require('./platform/CCMacro');\nconst js = require('./platform/js');\nconst Event = require('./event/event');\nconst EventTarget = require('./event/event-target');\nconst RenderFlow = require('./renderer/render-flow');\n\nconst Flags = cc.Object.Flags;\nconst Destroying = Flags.Destroying;\n\nconst ERR_INVALID_NUMBER = CC_EDITOR && 'The %s is invalid';\nconst ONE_DEGREE = Math.PI / 180;\n\nvar ActionManagerExist = !!cc.ActionManager;\nvar emptyFunc = function () {};\n\n// getWorldPosition temp var\nvar _gwpVec3 = new Vec3();\nvar _gwpQuat = new Quat();\n\n// _invTransformPoint temp var\nvar _tpVec3a = new Vec3();\nvar _tpVec3b = new Vec3();\nvar _tpQuata = new Quat();\nvar _tpQuatb = new Quat();\n\n// setWorldPosition temp var\nvar _swpVec3 = new Vec3();\n\n// getWorldScale temp var\nvar _gwsVec3 = new Vec3();\n\n// setWorldScale temp var\nvar _swsVec3 = new Vec3();\n\n// getWorldRT temp var\nvar _gwrtVec3a = new Vec3();\nvar _gwrtVec3b = new Vec3();\nvar _gwrtQuata = new Quat();\nvar _gwrtQuatb = new Quat();\n\n// lookAt temp var\nvar _laVec3 = new Vec3();\nvar _laQuat = new Quat();\n\n//up、right、forward temp var\nvar _urfVec3 = new Vec3();\nvar _urfQuat = new Quat();\n\n// _hitTest temp var\nvar _htVec3a = new Vec3();\nvar _htVec3b = new Vec3();\n\n// getWorldRotation temp var\nvar _gwrQuat = new Quat();\n\n// setWorldRotation temp var\nvar _swrQuat = new Quat();\n\nvar _quata = new Quat();\nvar _mat4_temp = cc.mat4();\nvar _vec3_temp = new Vec3();\n\nvar _cachedArray = new Array(16);\n_cachedArray.length = 0;\n\nconst POSITION_ON = 1 << 0;\nconst SCALE_ON = 1 << 1;\nconst ROTATION_ON = 1 << 2;\nconst SIZE_ON = 1 << 3;\nconst ANCHOR_ON = 1 << 4;\nconst COLOR_ON = 1 << 5;\n\n\nlet BuiltinGroupIndex = cc.Enum({\n DEBUG: 31\n});\n\n/**\n * !#en Node's local dirty properties flag\n * !#zh Node 的本地属性 dirty 状态位\n * @enum Node._LocalDirtyFlag\n * @static\n * @private\n * @namespace Node\n */\nvar LocalDirtyFlag = cc.Enum({\n /**\n * !#en Flag for position dirty\n * !#zh 位置 dirty 的标记位\n * @property {Number} POSITION\n * @static\n */\n POSITION: 1 << 0,\n /**\n * !#en Flag for scale dirty\n * !#zh 缩放 dirty 的标记位\n * @property {Number} SCALE\n * @static\n */\n SCALE: 1 << 1,\n /**\n * !#en Flag for rotation dirty\n * !#zh 旋转 dirty 的标记位\n * @property {Number} ROTATION\n * @static\n */\n ROTATION: 1 << 2,\n /**\n * !#en Flag for skew dirty\n * !#zh skew dirty 的标记位\n * @property {Number} SKEW\n * @static\n */\n SKEW: 1 << 3,\n /**\n * !#en Flag for rotation, scale or position dirty\n * !#zh 旋转,缩放,或位置 dirty 的标记位\n * @property {Number} TRS\n * @static\n */\n TRS: 1 << 0 | 1 << 1 | 1 << 2,\n /**\n * !#en Flag for rotation or scale dirty\n * !#zh 旋转或缩放 dirty 的标记位\n * @property {Number} RS\n * @static\n */\n RS: 1 << 1 | 1 << 2,\n /**\n * !#en Flag for rotation, scale, position, skew dirty\n * !#zh 旋转,缩放,位置,或斜角 dirty 的标记位\n * @property {Number} TRS\n * @static\n */\n TRSS: 1 << 0 | 1 << 1 | 1 << 2 | 1 << 3,\n\n /**\n * !#en Flag for physics position dirty\n * !#zh 物理位置 dirty 的标记位\n * @property {Number} PHYSICS_POSITION\n * @static\n */\n PHYSICS_POSITION: 1 << 4,\n\n /**\n * !#en Flag for physics scale dirty\n * !#zh 物理缩放 dirty 的标记位\n * @property {Number} PHYSICS_SCALE\n * @static\n */\n PHYSICS_SCALE: 1 << 5,\n\n /**\n * !#en Flag for physics rotation dirty\n * !#zh 物理旋转 dirty 的标记位\n * @property {Number} PHYSICS_ROTATION\n * @static\n */\n PHYSICS_ROTATION: 1 << 6,\n\n /**\n * !#en Flag for physics trs dirty\n * !#zh 物理位置旋转缩放 dirty 的标记位\n * @property {Number} PHYSICS_TRS\n * @static\n */\n PHYSICS_TRS: 1 << 4 | 1 << 5 | 1 << 6,\n\n /**\n * !#en Flag for physics rs dirty\n * !#zh 物理旋转缩放 dirty 的标记位\n * @property {Number} PHYSICS_RS\n * @static\n */\n PHYSICS_RS: 1 << 5 | 1 << 6,\n\n /**\n * !#en Flag for node and physics position dirty\n * !#zh 所有位置 dirty 的标记位\n * @property {Number} ALL_POSITION\n * @static\n */\n ALL_POSITION: 1 << 0 | 1 << 4,\n\n /**\n * !#en Flag for node and physics scale dirty\n * !#zh 所有缩放 dirty 的标记位\n * @property {Number} ALL_SCALE\n * @static\n */\n ALL_SCALE: 1 << 1 | 1 << 5,\n\n /**\n * !#en Flag for node and physics rotation dirty\n * !#zh 所有旋转 dirty 的标记位\n * @property {Number} ALL_ROTATION\n * @static\n */\n ALL_ROTATION: 1 << 2 | 1 << 6,\n\n /**\n * !#en Flag for node and physics trs dirty\n * !#zh 所有trs dirty 的标记位\n * @property {Number} ALL_TRS\n * @static\n */\n ALL_TRS: 1 << 0 | 1 << 1 | 1 << 2 | 1 << 4 | 1 << 5 | 1 << 6,\n\n /**\n * !#en Flag for all dirty properties\n * !#zh 覆盖所有 dirty 状态的标记位\n * @property {Number} ALL\n * @static\n */\n ALL: 0xffff,\n});\n\n/**\n * !#en The event type supported by Node\n * !#zh Node 支持的事件类型\n * @class Node.EventType\n * @static\n * @namespace Node\n */\n// Why EventType defined as class, because the first parameter of Node.on method needs set as 'string' type.\nvar EventType = cc.Enum({\n /**\n * !#en The event type for touch start event, you can use its value directly: 'touchstart'\n * !#zh 当手指触摸到屏幕时。\n * @property {String} TOUCH_START\n * @static\n */\n TOUCH_START: 'touchstart',\n /**\n * !#en The event type for touch move event, you can use its value directly: 'touchmove'\n * !#zh 当手指在屏幕上移动时。\n * @property {String} TOUCH_MOVE\n * @static\n */\n TOUCH_MOVE: 'touchmove',\n /**\n * !#en The event type for touch end event, you can use its value directly: 'touchend'\n * !#zh 当手指在目标节点区域内离开屏幕时。\n * @property {String} TOUCH_END\n * @static\n */\n TOUCH_END: 'touchend',\n /**\n * !#en The event type for touch end event, you can use its value directly: 'touchcancel'\n * !#zh 当手指在目标节点区域外离开屏幕时。\n * @property {String} TOUCH_CANCEL\n * @static\n */\n TOUCH_CANCEL: 'touchcancel',\n\n /**\n * !#en The event type for mouse down events, you can use its value directly: 'mousedown'\n * !#zh 当鼠标按下时触发一次。\n * @property {String} MOUSE_DOWN\n * @static\n */\n MOUSE_DOWN: 'mousedown',\n /**\n * !#en The event type for mouse move events, you can use its value directly: 'mousemove'\n * !#zh 当鼠标在目标节点在目标节点区域中移动时,不论是否按下。\n * @property {String} MOUSE_MOVE\n * @static\n */\n MOUSE_MOVE: 'mousemove',\n /**\n * !#en The event type for mouse enter target events, you can use its value directly: 'mouseenter'\n * !#zh 当鼠标移入目标节点区域时,不论是否按下。\n * @property {String} MOUSE_ENTER\n * @static\n */\n MOUSE_ENTER: 'mouseenter',\n /**\n * !#en The event type for mouse leave target events, you can use its value directly: 'mouseleave'\n * !#zh 当鼠标移出目标节点区域时,不论是否按下。\n * @property {String} MOUSE_LEAVE\n * @static\n */\n MOUSE_LEAVE: 'mouseleave',\n /**\n * !#en The event type for mouse up events, you can use its value directly: 'mouseup'\n * !#zh 当鼠标从按下状态松开时触发一次。\n * @property {String} MOUSE_UP\n * @static\n */\n MOUSE_UP: 'mouseup',\n /**\n * !#en The event type for mouse wheel events, you can use its value directly: 'mousewheel'\n * !#zh 当鼠标滚轮滚动时。\n * @property {String} MOUSE_WHEEL\n * @static\n */\n MOUSE_WHEEL: 'mousewheel',\n\n /**\n * !#en The event type for position change events.\n * Performance note, this event will be triggered every time corresponding properties being changed,\n * if the event callback have heavy logic it may have great performance impact, try to avoid such scenario.\n * !#zh 当节点位置改变时触发的事件。\n * 性能警告:这个事件会在每次对应的属性被修改时触发,如果事件回调损耗较高,有可能对性能有很大的负面影响,请尽量避免这种情况。\n * @property {String} POSITION_CHANGED\n * @static\n */\n POSITION_CHANGED: 'position-changed',\n /**\n * !#en The event type for rotation change events.\n * Performance note, this event will be triggered every time corresponding properties being changed,\n * if the event callback have heavy logic it may have great performance impact, try to avoid such scenario.\n * !#zh 当节点旋转改变时触发的事件。\n * 性能警告:这个事件会在每次对应的属性被修改时触发,如果事件回调损耗较高,有可能对性能有很大的负面影响,请尽量避免这种情况。\n * @property {String} ROTATION_CHANGED\n * @static\n */\n ROTATION_CHANGED: 'rotation-changed',\n /**\n * !#en The event type for scale change events.\n * Performance note, this event will be triggered every time corresponding properties being changed,\n * if the event callback have heavy logic it may have great performance impact, try to avoid such scenario.\n * !#zh 当节点缩放改变时触发的事件。\n * 性能警告:这个事件会在每次对应的属性被修改时触发,如果事件回调损耗较高,有可能对性能有很大的负面影响,请尽量避免这种情况。\n * @property {String} SCALE_CHANGED\n * @static\n */\n SCALE_CHANGED: 'scale-changed',\n /**\n * !#en The event type for size change events.\n * Performance note, this event will be triggered every time corresponding properties being changed,\n * if the event callback have heavy logic it may have great performance impact, try to avoid such scenario.\n * !#zh 当节点尺寸改变时触发的事件。\n * 性能警告:这个事件会在每次对应的属性被修改时触发,如果事件回调损耗较高,有可能对性能有很大的负面影响,请尽量避免这种情况。\n * @property {String} SIZE_CHANGED\n * @static\n */\n SIZE_CHANGED: 'size-changed',\n /**\n * !#en The event type for anchor point change events.\n * Performance note, this event will be triggered every time corresponding properties being changed,\n * if the event callback have heavy logic it may have great performance impact, try to avoid such scenario.\n * !#zh 当节点锚点改变时触发的事件。\n * 性能警告:这个事件会在每次对应的属性被修改时触发,如果事件回调损耗较高,有可能对性能有很大的负面影响,请尽量避免这种情况。\n * @property {String} ANCHOR_CHANGED\n * @static\n */\n ANCHOR_CHANGED: 'anchor-changed',\n /**\n * !#en The event type for color change events.\n * Performance note, this event will be triggered every time corresponding properties being changed,\n * if the event callback have heavy logic it may have great performance impact, try to avoid such scenario.\n * !#zh 当节点颜色改变时触发的事件。\n * 性能警告:这个事件会在每次对应的属性被修改时触发,如果事件回调损耗较高,有可能对性能有很大的负面影响,请尽量避免这种情况。\n * @property {String} COLOR_CHANGED\n * @static\n */\n COLOR_CHANGED: 'color-changed',\n /**\n * !#en The event type for new child added events.\n * !#zh 当新的子节点被添加时触发的事件。\n * @property {String} CHILD_ADDED\n * @static\n */\n CHILD_ADDED: 'child-added',\n /**\n * !#en The event type for child removed events.\n * !#zh 当子节点被移除时触发的事件。\n * @property {String} CHILD_REMOVED\n * @static\n */\n CHILD_REMOVED: 'child-removed',\n /**\n * !#en The event type for children reorder events.\n * !#zh 当子节点顺序改变时触发的事件。\n * @property {String} CHILD_REORDER\n * @static\n */\n CHILD_REORDER: 'child-reorder',\n /**\n * !#en The event type for node group changed events.\n * !#zh 当节点归属群组发生变化时触发的事件。\n * @property {String} GROUP_CHANGED\n * @static\n */\n GROUP_CHANGED: 'group-changed',\n /**\n * !#en The event type for node's sibling order changed.\n * !#zh 当节点在兄弟节点中的顺序发生变化时触发的事件。\n * @property {String} SIBLING_ORDER_CHANGED\n * @static\n */\n SIBLING_ORDER_CHANGED: 'sibling-order-changed',\n});\n\nvar _touchEvents = [\n EventType.TOUCH_START,\n EventType.TOUCH_MOVE,\n EventType.TOUCH_END,\n EventType.TOUCH_CANCEL,\n];\nvar _mouseEvents = [\n EventType.MOUSE_DOWN,\n EventType.MOUSE_ENTER,\n EventType.MOUSE_MOVE,\n EventType.MOUSE_LEAVE,\n EventType.MOUSE_UP,\n EventType.MOUSE_WHEEL,\n];\n\nvar _skewNeedWarn = true;\nvar _skewWarn = function (value, node) {\n if (value !== 0) {\n var nodePath = \"\";\n if (CC_EDITOR) {\n var NodeUtils = Editor.require('scene://utils/node');\n nodePath = `Node: ${NodeUtils.getNodePath(node)}.`\n }\n _skewNeedWarn && cc.warn(\"`cc.Node.skewX/Y` is deprecated since v2.2.1, please use 3D node instead.\", nodePath);\n !CC_EDITOR && (_skewNeedWarn = false);\n }\n}\n\nvar _currentHovered = null;\n\nvar _touchStartHandler = function (touch, event) {\n var pos = touch.getLocation();\n var node = this.owner;\n\n if (node._hitTest(pos, this)) {\n event.type = EventType.TOUCH_START;\n event.touch = touch;\n event.bubbles = true;\n node.dispatchEvent(event);\n return true;\n }\n return false;\n};\nvar _touchMoveHandler = function (touch, event) {\n var node = this.owner;\n event.type = EventType.TOUCH_MOVE;\n event.touch = touch;\n event.bubbles = true;\n node.dispatchEvent(event);\n};\nvar _touchEndHandler = function (touch, event) {\n var pos = touch.getLocation();\n var node = this.owner;\n\n if (node._hitTest(pos, this)) {\n event.type = EventType.TOUCH_END;\n }\n else {\n event.type = EventType.TOUCH_CANCEL;\n }\n event.touch = touch;\n event.bubbles = true;\n node.dispatchEvent(event);\n};\nvar _touchCancelHandler = function (touch, event) {\n var pos = touch.getLocation();\n var node = this.owner;\n\n event.type = EventType.TOUCH_CANCEL;\n event.touch = touch;\n event.bubbles = true;\n node.dispatchEvent(event);\n};\n\nvar _mouseDownHandler = function (event) {\n var pos = event.getLocation();\n var node = this.owner;\n\n if (node._hitTest(pos, this)) {\n event.type = EventType.MOUSE_DOWN;\n event.bubbles = true;\n node.dispatchEvent(event);\n }\n};\nvar _mouseMoveHandler = function (event) {\n var pos = event.getLocation();\n var node = this.owner;\n var hit = node._hitTest(pos, this);\n if (hit) {\n if (!this._previousIn) {\n // Fix issue when hover node switched, previous hovered node won't get MOUSE_LEAVE notification\n if (_currentHovered && _currentHovered._mouseListener) {\n event.type = EventType.MOUSE_LEAVE;\n _currentHovered.dispatchEvent(event);\n _currentHovered._mouseListener._previousIn = false;\n }\n _currentHovered = this.owner;\n event.type = EventType.MOUSE_ENTER;\n node.dispatchEvent(event);\n this._previousIn = true;\n }\n event.type = EventType.MOUSE_MOVE;\n event.bubbles = true;\n node.dispatchEvent(event);\n }\n else if (this._previousIn) {\n event.type = EventType.MOUSE_LEAVE;\n node.dispatchEvent(event);\n this._previousIn = false;\n _currentHovered = null;\n }\n else {\n // continue dispatching\n return;\n }\n\n // Event processed, cleanup\n event.stopPropagation();\n};\nvar _mouseUpHandler = function (event) {\n var pos = event.getLocation();\n var node = this.owner;\n\n if (node._hitTest(pos, this)) {\n event.type = EventType.MOUSE_UP;\n event.bubbles = true;\n node.dispatchEvent(event);\n event.stopPropagation();\n }\n};\nvar _mouseWheelHandler = function (event) {\n var pos = event.getLocation();\n var node = this.owner;\n\n if (node._hitTest(pos, this)) {\n event.type = EventType.MOUSE_WHEEL;\n event.bubbles = true;\n node.dispatchEvent(event);\n event.stopPropagation();\n }\n};\n\nfunction _searchComponentsInParent (node, comp) {\n if (comp) {\n let index = 0;\n let list = null;\n for (var curr = node; curr && cc.Node.isNode(curr); curr = curr._parent, ++index) {\n if (curr.getComponent(comp)) {\n let next = {\n index: index,\n node: curr,\n };\n\n if (list) {\n list.push(next);\n } else {\n list = [next];\n }\n }\n }\n\n return list;\n }\n\n return null;\n}\n\nfunction _checkListeners (node, events) {\n if (!(node._objFlags & Destroying)) {\n if (node._bubblingListeners) {\n for (let i = 0, l = events.length; i < l; ++i) {\n if (node._bubblingListeners.hasEventListener(events[i])) {\n return true;\n }\n }\n }\n if (node._capturingListeners) {\n for (let i = 0, l = events.length; i < l; ++i) {\n if (node._capturingListeners.hasEventListener(events[i])) {\n return true;\n }\n }\n }\n return false;\n }\n return true;\n}\n\nfunction _doDispatchEvent (owner, event) {\n var target, i;\n event.target = owner;\n\n // Event.CAPTURING_PHASE\n _cachedArray.length = 0;\n owner._getCapturingTargets(event.type, _cachedArray);\n // capturing\n event.eventPhase = 1;\n for (i = _cachedArray.length - 1; i >= 0; --i) {\n target = _cachedArray[i];\n if (target._capturingListeners) {\n event.currentTarget = target;\n // fire event\n target._capturingListeners.emit(event.type, event, _cachedArray);\n // check if propagation stopped\n if (event._propagationStopped) {\n _cachedArray.length = 0;\n return;\n }\n }\n }\n _cachedArray.length = 0;\n\n // Event.AT_TARGET\n // checks if destroyed in capturing callbacks\n event.eventPhase = 2;\n event.currentTarget = owner;\n if (owner._capturingListeners) {\n owner._capturingListeners.emit(event.type, event);\n }\n if (!event._propagationImmediateStopped && owner._bubblingListeners) {\n owner._bubblingListeners.emit(event.type, event);\n }\n\n if (!event._propagationStopped && event.bubbles) {\n // Event.BUBBLING_PHASE\n owner._getBubblingTargets(event.type, _cachedArray);\n // propagate\n event.eventPhase = 3;\n for (i = 0; i < _cachedArray.length; ++i) {\n target = _cachedArray[i];\n if (target._bubblingListeners) {\n event.currentTarget = target;\n // fire event\n target._bubblingListeners.emit(event.type, event);\n // check if propagation stopped\n if (event._propagationStopped) {\n _cachedArray.length = 0;\n return;\n }\n }\n }\n }\n _cachedArray.length = 0;\n}\n\n// traversal the node tree, child cullingMask must keep the same with the parent.\nfunction _getActualGroupIndex (node) {\n let groupIndex = node.groupIndex;\n if (groupIndex === 0 && node.parent) {\n groupIndex = _getActualGroupIndex(node.parent);\n }\n return groupIndex;\n}\n\nfunction _updateCullingMask (node) {\n let index = _getActualGroupIndex(node);\n node._cullingMask = 1 << index;\n if (CC_JSB && CC_NATIVERENDERER) {\n node._proxy && node._proxy.updateCullingMask();\n }\n for (let i = 0; i < node._children.length; i++) {\n _updateCullingMask(node._children[i]);\n }\n}\n\n// 2D/3D matrix functions\nfunction updateLocalMatrix3D () {\n if (this._localMatDirty & LocalDirtyFlag.TRSS) {\n // Update transform\n let t = this._matrix;\n let tm = t.m;\n Trs.toMat4(t, this._trs);\n\n // skew\n if (this._skewX || this._skewY) {\n let a = tm[0], b = tm[1], c = tm[4], d = tm[5];\n let skx = Math.tan(this._skewX * ONE_DEGREE);\n let sky = Math.tan(this._skewY * ONE_DEGREE);\n if (skx === Infinity)\n skx = 99999999;\n if (sky === Infinity)\n sky = 99999999;\n tm[0] = a + c * sky;\n tm[1] = b + d * sky;\n tm[4] = c + a * skx;\n tm[5] = d + b * skx;\n }\n this._localMatDirty &= ~LocalDirtyFlag.TRSS;\n // Register dirty status of world matrix so that it can be recalculated\n this._worldMatDirty = true;\n }\n}\n\nfunction updateLocalMatrix2D () {\n let dirtyFlag = this._localMatDirty;\n if (!(dirtyFlag & LocalDirtyFlag.TRSS)) return;\n\n // Update transform\n let t = this._matrix;\n let tm = t.m;\n let trs = this._trs;\n\n if (dirtyFlag & (LocalDirtyFlag.RS | LocalDirtyFlag.SKEW)) {\n let rotation = -this._eulerAngles.z;\n let hasSkew = this._skewX || this._skewY;\n let sx = trs[7], sy = trs[8];\n\n if (rotation || hasSkew) {\n let a = 1, b = 0, c = 0, d = 1;\n // rotation\n if (rotation) {\n let rotationRadians = rotation * ONE_DEGREE;\n c = Math.sin(rotationRadians);\n d = Math.cos(rotationRadians);\n a = d;\n b = -c;\n }\n // scale\n tm[0] = a *= sx;\n tm[1] = b *= sx;\n tm[4] = c *= sy;\n tm[5] = d *= sy;\n // skew\n if (hasSkew) {\n let a = tm[0], b = tm[1], c = tm[4], d = tm[5];\n let skx = Math.tan(this._skewX * ONE_DEGREE);\n let sky = Math.tan(this._skewY * ONE_DEGREE);\n if (skx === Infinity)\n skx = 99999999;\n if (sky === Infinity)\n sky = 99999999;\n tm[0] = a + c * sky;\n tm[1] = b + d * sky;\n tm[4] = c + a * skx;\n tm[5] = d + b * skx;\n }\n }\n else {\n tm[0] = sx;\n tm[1] = 0;\n tm[4] = 0;\n tm[5] = sy;\n }\n }\n\n // position\n tm[12] = trs[0];\n tm[13] = trs[1];\n\n this._localMatDirty &= ~LocalDirtyFlag.TRSS;\n // Register dirty status of world matrix so that it can be recalculated\n this._worldMatDirty = true;\n}\n\nfunction calculWorldMatrix3D () {\n // Avoid as much function call as possible\n if (this._localMatDirty & LocalDirtyFlag.TRSS) {\n this._updateLocalMatrix();\n }\n\n if (this._parent) {\n let parentMat = this._parent._worldMatrix;\n Mat4.mul(this._worldMatrix, parentMat, this._matrix);\n }\n else {\n Mat4.copy(this._worldMatrix, this._matrix);\n }\n this._worldMatDirty = false;\n}\n\nfunction calculWorldMatrix2D () {\n // Avoid as much function call as possible\n if (this._localMatDirty & LocalDirtyFlag.TRSS) {\n this._updateLocalMatrix();\n }\n\n // Assume parent world matrix is correct\n let parent = this._parent;\n if (parent) {\n this._mulMat(this._worldMatrix, parent._worldMatrix, this._matrix);\n }\n else {\n Mat4.copy(this._worldMatrix, this._matrix);\n }\n this._worldMatDirty = false;\n}\n\nfunction mulMat2D (out, a, b) {\n let am = a.m, bm = b.m, outm = out.m;\n let aa=am[0], ab=am[1], ac=am[4], ad=am[5], atx=am[12], aty=am[13];\n let ba=bm[0], bb=bm[1], bc=bm[4], bd=bm[5], btx=bm[12], bty=bm[13];\n if (ab !== 0 || ac !== 0) {\n outm[0] = ba * aa + bb * ac;\n outm[1] = ba * ab + bb * ad;\n outm[4] = bc * aa + bd * ac;\n outm[5] = bc * ab + bd * ad;\n outm[12] = aa * btx + ac * bty + atx;\n outm[13] = ab * btx + ad * bty + aty;\n }\n else {\n outm[0] = ba * aa;\n outm[1] = bb * ad;\n outm[4] = bc * aa;\n outm[5] = bd * ad;\n outm[12] = aa * btx + atx;\n outm[13] = ad * bty + aty;\n }\n}\n\nconst mulMat3D = Mat4.mul;\n\n/**\n * !#en\n * Class of all entities in Cocos Creator scenes.
\n * For events supported by Node, please refer to {{#crossLink \"Node.EventType\"}}{{/crossLink}}\n * !#zh\n * Cocos Creator 场景中的所有节点类。
\n * 支持的节点事件,请参阅 {{#crossLink \"Node.EventType\"}}{{/crossLink}}。\n * @class Node\n * @extends _BaseNode\n */\nlet NodeDefines = {\n name: 'cc.Node',\n extends: BaseNode,\n\n properties: {\n // SERIALIZABLE\n _opacity: 255,\n _color: cc.Color.WHITE,\n _contentSize: cc.Size,\n _anchorPoint: cc.v2(0.5, 0.5),\n _position: undefined,\n _scale: undefined,\n _trs: null,\n _eulerAngles: cc.Vec3,\n _skewX: 0.0,\n _skewY: 0.0,\n _zIndex: {\n default: undefined,\n type: cc.Integer\n },\n _localZOrder: {\n default: 0,\n serializable: false\n },\n\n _is3DNode: false,\n\n // internal properties\n /**\n * !#en\n * Group index of node.
\n * Which Group this node belongs to will resolve that this node's collision components can collide with which other collision componentns.
\n * !#zh\n * 节点的分组索引。
\n * 节点的分组将关系到节点的碰撞组件可以与哪些碰撞组件相碰撞。
\n * @property groupIndex\n * @type {Integer}\n * @default 0\n */\n _groupIndex: {\n default: 0,\n formerlySerializedAs: 'groupIndex'\n },\n groupIndex: {\n get () {\n return this._groupIndex;\n },\n set (value) {\n this._groupIndex = value;\n _updateCullingMask(this);\n this.emit(EventType.GROUP_CHANGED, this);\n }\n },\n\n /**\n * !#en\n * Group of node.
\n * Which Group this node belongs to will resolve that this node's collision components can collide with which other collision componentns.
\n * !#zh\n * 节点的分组。
\n * 节点的分组将关系到节点的碰撞组件可以与哪些碰撞组件相碰撞。
\n * @property group\n * @type {String}\n */\n group: {\n get () {\n return cc.game.groupList[this.groupIndex] || '';\n },\n\n set (value) {\n // update the groupIndex\n this.groupIndex = cc.game.groupList.indexOf(value);\n }\n },\n\n //properties moved from base node begin\n\n /**\n * !#en The position (x, y) of the node in its parent's coordinates.\n * !#zh 节点在父节点坐标系中的位置(x, y)。\n * @property {Vec3} position\n * @example\n * cc.log(\"Node Position: \" + node.position);\n */\n\n /**\n * !#en x axis position of node.\n * !#zh 节点 X 轴坐标。\n * @property x\n * @type {Number}\n * @example\n * node.x = 100;\n * cc.log(\"Node Position X: \" + node.x);\n */\n x: {\n get () {\n return this._trs[0];\n },\n set (value) {\n let trs = this._trs;\n if (value !== trs[0]) {\n if (!CC_EDITOR || isFinite(value)) {\n let oldValue;\n if (CC_EDITOR) {\n oldValue = trs[0];\n }\n\n trs[0] = value;\n this.setLocalDirty(LocalDirtyFlag.ALL_POSITION);\n\n // fast check event\n if (this._eventMask & POSITION_ON) {\n // send event\n if (CC_EDITOR) {\n this.emit(EventType.POSITION_CHANGED, new cc.Vec3(oldValue, trs[1], trs[2]));\n }\n else {\n this.emit(EventType.POSITION_CHANGED);\n }\n }\n }\n else {\n cc.error(ERR_INVALID_NUMBER, 'new x');\n }\n }\n },\n },\n\n /**\n * !#en y axis position of node.\n * !#zh 节点 Y 轴坐标。\n * @property y\n * @type {Number}\n * @example\n * node.y = 100;\n * cc.log(\"Node Position Y: \" + node.y);\n */\n y: {\n get () {\n return this._trs[1];\n },\n set (value) {\n let trs = this._trs;\n if (value !== trs[1]) {\n if (!CC_EDITOR || isFinite(value)) {\n let oldValue;\n if (CC_EDITOR) {\n oldValue = trs[1];\n }\n\n trs[1] = value;\n this.setLocalDirty(LocalDirtyFlag.ALL_POSITION);\n\n // fast check event\n if (this._eventMask & POSITION_ON) {\n // send event\n if (CC_EDITOR) {\n this.emit(EventType.POSITION_CHANGED, new cc.Vec3(trs[0], oldValue, trs[2]));\n }\n else {\n this.emit(EventType.POSITION_CHANGED);\n }\n }\n }\n else {\n cc.error(ERR_INVALID_NUMBER, 'new y');\n }\n }\n },\n },\n\n /**\n * !#en z axis position of node.\n * !#zh 节点 Z 轴坐标。\n * @property z\n * @type {Number}\n */\n z: {\n get () {\n return this._trs[2];\n },\n set (value) {\n let trs = this._trs;\n if (value !== trs[2]) {\n if (!CC_EDITOR || isFinite(value)) {\n let oldValue;\n if (CC_EDITOR) {\n oldValue = trs[2];\n }\n trs[2] = value;\n this.setLocalDirty(LocalDirtyFlag.ALL_POSITION);\n !CC_NATIVERENDERER && (this._renderFlag |= RenderFlow.FLAG_WORLD_TRANSFORM);\n // fast check event\n if (this._eventMask & POSITION_ON) {\n if (CC_EDITOR) {\n this.emit(EventType.POSITION_CHANGED, new cc.Vec3(trs[0], trs[1], oldValue));\n }\n else {\n this.emit(EventType.POSITION_CHANGED);\n }\n }\n }\n else {\n cc.error(ERR_INVALID_NUMBER, 'new z');\n }\n }\n }\n },\n\n /**\n * !#en Rotation of node.\n * !#zh 该节点旋转角度。\n * @property rotation\n * @type {Number}\n * @deprecated since v2.1\n * @example\n * node.rotation = 90;\n * cc.log(\"Node Rotation: \" + node.rotation);\n */\n rotation: {\n get () {\n if (CC_DEBUG) {\n cc.warn(\"`cc.Node.rotation` is deprecated since v2.1.0, please use `-angle` instead. (`this.node.rotation` -> `-this.node.angle`)\");\n }\n return -this.angle;\n },\n set (value) {\n if (CC_DEBUG) {\n cc.warn(\"`cc.Node.rotation` is deprecated since v2.1.0, please set `-angle` instead. (`this.node.rotation = x` -> `this.node.angle = -x`)\");\n }\n this.angle = -value;\n }\n },\n\n /**\n * !#en\n * Angle of node, the positive value is anti-clockwise direction.\n * !#zh\n * 该节点的旋转角度,正值为逆时针方向。\n * @property angle\n * @type {Number}\n */\n angle: {\n get () {\n return this._eulerAngles.z;\n },\n set (value) {\n Vec3.set(this._eulerAngles, 0, 0, value);\n Trs.fromAngleZ(this._trs, value);\n this.setLocalDirty(LocalDirtyFlag.ALL_ROTATION);\n\n if (this._eventMask & ROTATION_ON) {\n this.emit(EventType.ROTATION_CHANGED);\n }\n }\n },\n\n /**\n * !#en The rotation as Euler angles in degrees, used in 3D node.\n * !#zh 该节点的欧拉角度,用于 3D 节点。\n * @property eulerAngles\n * @type {Vec3}\n * @example\n * node.is3DNode = true;\n * node.eulerAngles = cc.v3(45, 45, 45);\n * cc.log(\"Node eulerAngles (X, Y, Z): \" + node.eulerAngles.toString());\n */\n\n /**\n * !#en Rotation on x axis.\n * !#zh 该节点 X 轴旋转角度。\n * @property rotationX\n * @type {Number}\n * @deprecated since v2.1\n * @example\n * node.is3DNode = true;\n * node.eulerAngles = cc.v3(45, 0, 0);\n * cc.log(\"Node eulerAngles X: \" + node.eulerAngles.x);\n */\n rotationX: {\n get () {\n if (CC_DEBUG) {\n cc.warn(\"`cc.Node.rotationX` is deprecated since v2.1.0, please use `eulerAngles.x` instead. (`this.node.rotationX` -> `this.node.eulerAngles.x`)\");\n }\n return this._eulerAngles.x;\n },\n set (value) {\n if (CC_DEBUG) {\n cc.warn(\"`cc.Node.rotationX` is deprecated since v2.1.0, please set `eulerAngles` instead. (`this.node.rotationX = x` -> `this.node.is3DNode = true; this.node.eulerAngles = cc.v3(x, 0, 0)`\");\n }\n if (this._eulerAngles.x !== value) {\n this._eulerAngles.x = value;\n // Update quaternion from rotation\n if (this._eulerAngles.x === this._eulerAngles.y) {\n Trs.fromAngleZ(this._trs, -value);\n }\n else {\n Trs.fromEulerNumber(this._trs, value, this._eulerAngles.y, 0);\n }\n this.setLocalDirty(LocalDirtyFlag.ALL_ROTATION);\n\n if (this._eventMask & ROTATION_ON) {\n this.emit(EventType.ROTATION_CHANGED);\n }\n }\n },\n },\n\n /**\n * !#en Rotation on y axis.\n * !#zh 该节点 Y 轴旋转角度。\n * @property rotationY\n * @type {Number}\n * @deprecated since v2.1\n * @example\n * node.is3DNode = true;\n * node.eulerAngles = cc.v3(0, 45, 0);\n * cc.log(\"Node eulerAngles Y: \" + node.eulerAngles.y);\n */\n rotationY: {\n get () {\n if (CC_DEBUG) {\n cc.warn(\"`cc.Node.rotationY` is deprecated since v2.1.0, please use `eulerAngles.y` instead. (`this.node.rotationY` -> `this.node.eulerAngles.y`)\");\n }\n return this._eulerAngles.y;\n },\n set (value) {\n if (CC_DEBUG) {\n cc.warn(\"`cc.Node.rotationY` is deprecated since v2.1.0, please set `eulerAngles` instead. (`this.node.rotationY = y` -> `this.node.is3DNode = true; this.node.eulerAngles = cc.v3(0, y, 0)`\");\n }\n if (this._eulerAngles.y !== value) {\n this._eulerAngles.y = value;\n // Update quaternion from rotation\n if (this._eulerAngles.x === this._eulerAngles.y) {\n Trs.fromAngleZ(this._trs, -value);\n }\n else {\n Trs.fromEulerNumber(this._trs, this._eulerAngles.x, value, 0);\n }\n this.setLocalDirty(LocalDirtyFlag.ALL_ROTATION);\n\n if (this._eventMask & ROTATION_ON) {\n this.emit(EventType.ROTATION_CHANGED);\n }\n }\n },\n },\n\n eulerAngles: {\n get () {\n if (CC_EDITOR) {\n return this._eulerAngles;\n }\n else {\n return Trs.toEuler(this._eulerAngles, this._trs);\n }\n }, set (v) {\n if (CC_EDITOR) {\n this._eulerAngles.set(v);\n }\n\n Trs.fromEuler(this._trs, v);\n this.setLocalDirty(LocalDirtyFlag.ALL_ROTATION);\n !CC_NATIVERENDERER && (this._renderFlag |= RenderFlow.FLAG_TRANSFORM);\n\n if (this._eventMask & ROTATION_ON) {\n this.emit(EventType.ROTATION_CHANGED);\n }\n }\n },\n\n // This property is used for Mesh Skeleton Animation\n // Should be removed when node.rotation upgrade to quaternion value\n quat: {\n get () {\n let trs = this._trs;\n return new Quat(trs[3], trs[4], trs[5], trs[6]);\n }, set (v) {\n this.setRotation(v);\n }\n },\n\n /**\n * !#en The local scale relative to the parent.\n * !#zh 节点相对父节点的缩放。\n * @property scale\n * @type {Number}\n * @example\n * node.scale = 1;\n */\n scale: {\n get () {\n return this._trs[7];\n },\n set (v) {\n this.setScale(v);\n }\n },\n\n /**\n * !#en Scale on x axis.\n * !#zh 节点 X 轴缩放。\n * @property scaleX\n * @type {Number}\n * @example\n * node.scaleX = 0.5;\n * cc.log(\"Node Scale X: \" + node.scaleX);\n */\n scaleX: {\n get () {\n return this._trs[7];\n },\n set (value) {\n if (this._trs[7] !== value) {\n this._trs[7] = value;\n this.setLocalDirty(LocalDirtyFlag.ALL_SCALE);\n\n if (this._eventMask & SCALE_ON) {\n this.emit(EventType.SCALE_CHANGED);\n }\n }\n },\n },\n\n /**\n * !#en Scale on y axis.\n * !#zh 节点 Y 轴缩放。\n * @property scaleY\n * @type {Number}\n * @example\n * node.scaleY = 0.5;\n * cc.log(\"Node Scale Y: \" + node.scaleY);\n */\n scaleY: {\n get () {\n return this._trs[8];\n },\n set (value) {\n if (this._trs[8] !== value) {\n this._trs[8] = value;\n this.setLocalDirty(LocalDirtyFlag.ALL_SCALE);\n\n if (this._eventMask & SCALE_ON) {\n this.emit(EventType.SCALE_CHANGED);\n }\n }\n },\n },\n\n /**\n * !#en Scale on z axis.\n * !#zh 节点 Z 轴缩放。\n * @property scaleZ\n * @type {Number}\n */\n scaleZ: {\n get () {\n return this._trs[9];\n },\n set (value) {\n if (this._trs[9] !== value) {\n this._trs[9] = value;\n this.setLocalDirty(LocalDirtyFlag.ALL_SCALE);\n !CC_NATIVERENDERER && (this._renderFlag |= RenderFlow.FLAG_TRANSFORM);\n\n if (this._eventMask & SCALE_ON) {\n this.emit(EventType.SCALE_CHANGED);\n }\n }\n }\n },\n\n /**\n * !#en Skew x\n * !#zh 该节点 X 轴倾斜角度。\n * @property skewX\n * @type {Number}\n * @example\n * node.skewX = 0;\n * cc.log(\"Node SkewX: \" + node.skewX);\n * @deprecated since v2.2.1\n */\n skewX: {\n get () {\n return this._skewX;\n },\n set (value) {\n _skewWarn(value, this);\n\n this._skewX = value;\n this.setLocalDirty(LocalDirtyFlag.SKEW);\n if (CC_JSB && CC_NATIVERENDERER) {\n this._proxy.updateSkew();\n }\n }\n },\n\n /**\n * !#en Skew y\n * !#zh 该节点 Y 轴倾斜角度。\n * @property skewY\n * @type {Number}\n * @example\n * node.skewY = 0;\n * cc.log(\"Node SkewY: \" + node.skewY);\n * @deprecated since v2.2.1\n */\n skewY: {\n get () {\n return this._skewY;\n },\n set (value) {\n _skewWarn(value, this);\n\n this._skewY = value;\n this.setLocalDirty(LocalDirtyFlag.SKEW);\n if (CC_JSB && CC_NATIVERENDERER) {\n this._proxy.updateSkew();\n }\n }\n },\n\n /**\n * !#en Opacity of node, default value is 255.\n * !#zh 节点透明度,默认值为 255。\n * @property opacity\n * @type {Number}\n * @example\n * node.opacity = 255;\n */\n opacity: {\n get () {\n return this._opacity;\n },\n set (value) {\n value = cc.misc.clampf(value, 0, 255);\n if (this._opacity !== value) {\n this._opacity = value;\n if (CC_JSB && CC_NATIVERENDERER) {\n this._proxy.updateOpacity();\n }\n this._renderFlag |= RenderFlow.FLAG_OPACITY_COLOR;\n }\n },\n range: [0, 255]\n },\n\n /**\n * !#en Color of node, default value is white: (255, 255, 255).\n * !#zh 节点颜色。默认为白色,数值为:(255,255,255)。\n * @property color\n * @type {Color}\n * @example\n * node.color = new cc.Color(255, 255, 255);\n */\n color: {\n get () {\n return this._color.clone()\n },\n set (value) {\n if (!this._color.equals(value)) {\n this._color.set(value);\n if (CC_DEV && value.a !== 255) {\n cc.warnID(1626);\n }\n\n this._renderFlag |= RenderFlow.FLAG_COLOR;\n\n if (this._eventMask & COLOR_ON) {\n this.emit(EventType.COLOR_CHANGED, value);\n }\n }\n },\n },\n\n /**\n * !#en Anchor point's position on x axis.\n * !#zh 节点 X 轴锚点位置。\n * @property anchorX\n * @type {Number}\n * @example\n * node.anchorX = 0;\n */\n anchorX: {\n get () {\n return this._anchorPoint.x;\n },\n set (value) {\n var anchorPoint = this._anchorPoint;\n if (anchorPoint.x !== value) {\n anchorPoint.x = value;\n if (this._eventMask & ANCHOR_ON) {\n this.emit(EventType.ANCHOR_CHANGED);\n }\n }\n },\n },\n\n /**\n * !#en Anchor point's position on y axis.\n * !#zh 节点 Y 轴锚点位置。\n * @property anchorY\n * @type {Number}\n * @example\n * node.anchorY = 0;\n */\n anchorY: {\n get () {\n return this._anchorPoint.y;\n },\n set (value) {\n var anchorPoint = this._anchorPoint;\n if (anchorPoint.y !== value) {\n anchorPoint.y = value;\n if (this._eventMask & ANCHOR_ON) {\n this.emit(EventType.ANCHOR_CHANGED);\n }\n }\n },\n },\n\n /**\n * !#en Width of node.\n * !#zh 节点宽度。\n * @property width\n * @type {Number}\n * @example\n * node.width = 100;\n */\n width: {\n get () {\n return this._contentSize.width;\n },\n set (value) {\n if (value !== this._contentSize.width) {\n if (CC_EDITOR) {\n var clone = cc.size(this._contentSize.width, this._contentSize.height);\n }\n this._contentSize.width = value;\n if (this._eventMask & SIZE_ON) {\n if (CC_EDITOR) {\n this.emit(EventType.SIZE_CHANGED, clone);\n }\n else {\n this.emit(EventType.SIZE_CHANGED);\n }\n }\n }\n },\n },\n\n /**\n * !#en Height of node.\n * !#zh 节点高度。\n * @property height\n * @type {Number}\n * @example\n * node.height = 100;\n */\n height: {\n get () {\n return this._contentSize.height;\n },\n set (value) {\n if (value !== this._contentSize.height) {\n if (CC_EDITOR) {\n var clone = cc.size(this._contentSize.width, this._contentSize.height);\n }\n this._contentSize.height = value;\n if (this._eventMask & SIZE_ON) {\n if (CC_EDITOR) {\n this.emit(EventType.SIZE_CHANGED, clone);\n }\n else {\n this.emit(EventType.SIZE_CHANGED);\n }\n }\n }\n },\n },\n\n /**\n * !#en zIndex is the 'key' used to sort the node relative to its siblings.
\n * The value of zIndex should be in the range between cc.macro.MIN_ZINDEX and cc.macro.MAX_ZINDEX.
\n * The Node's parent will sort all its children based on the zIndex value and the arrival order.
\n * Nodes with greater zIndex will be sorted after nodes with smaller zIndex.
\n * If two nodes have the same zIndex, then the node that was added first to the children's array will be in front of the other node in the array.
\n * Node's order in children list will affect its rendering order. Parent is always rendering before all children.\n * !#zh zIndex 是用来对节点进行排序的关键属性,它决定一个节点在兄弟节点之间的位置。
\n * zIndex 的取值应该介于 cc.macro.MIN_ZINDEX 和 cc.macro.MAX_ZINDEX 之间\n * 父节点主要根据节点的 zIndex 和添加次序来排序,拥有更高 zIndex 的节点将被排在后面,如果两个节点的 zIndex 一致,先添加的节点会稳定排在另一个节点之前。
\n * 节点在 children 中的顺序决定了其渲染顺序。父节点永远在所有子节点之前被渲染\n * @property zIndex\n * @type {Number}\n * @example\n * node.zIndex = 1;\n * cc.log(\"Node zIndex: \" + node.zIndex);\n */\n zIndex: {\n get () {\n return this._localZOrder >> 16;\n },\n set (value) {\n if (value > macro.MAX_ZINDEX) {\n cc.warnID(1636);\n value = macro.MAX_ZINDEX;\n }\n else if (value < macro.MIN_ZINDEX) {\n cc.warnID(1637);\n value = macro.MIN_ZINDEX;\n }\n\n if (this.zIndex !== value) {\n this._localZOrder = (this._localZOrder & 0x0000ffff) | (value << 16);\n this.emit(EventType.SIBLING_ORDER_CHANGED);\n\n this._onSiblingIndexChanged();\n }\n }\n },\n\n /**\n * !#en\n * Switch 2D/3D node. The 2D nodes will run faster.\n * !#zh\n * 切换 2D/3D 节点,2D 节点会有更高的运行效率\n * @property {Boolean} is3DNode\n * @default false\n */\n is3DNode: {\n get () {\n return this._is3DNode;\n }, set (v) {\n this._is3DNode = v;\n this._update3DFunction();\n }\n },\n\n /**\n * !#en Returns a normalized vector representing the up direction (Y axis) of the node in world space.\n * !#zh 获取节点正上方(y 轴)面对的方向,返回值为世界坐标系下的归一化向量\n *\n * @property up\n * @type {Vec3}\n */\n up: {\n get () {\n var _up = Vec3.transformQuat(_urfVec3, Vec3.UP, this.getWorldRotation(_urfQuat));\n return _up.clone();\n }\n },\n\n /**\n * !#en Returns a normalized vector representing the right direction (X axis) of the node in world space.\n * !#zh 获取节点正右方(x 轴)面对的方向,返回值为世界坐标系下的归一化向量\n *\n * @property right\n * @type {Vec3}\n */\n right: {\n get () {\n var _right = Vec3.transformQuat(_urfVec3, Vec3.RIGHT, this.getWorldRotation(_urfQuat));\n return _right.clone();\n }\n },\n\n /**\n * !#en Returns a normalized vector representing the forward direction (Z axis) of the node in world space.\n * !#zh 获取节点正前方(z 轴)面对的方向,返回值为世界坐标系下的归一化向量\n *\n * @property forward\n * @type {Vec3}\n */\n forward: {\n get () {\n var _forward = Vec3.transformQuat(_urfVec3, Vec3.FORWARD, this.getWorldRotation(_urfQuat));\n return _forward.clone();\n }\n },\n },\n\n /**\n * @method constructor\n * @param {String} [name]\n */\n ctor () {\n this._reorderChildDirty = false;\n\n // cache component\n this._widget = null;\n // fast render component access\n this._renderComponent = null;\n // Event listeners\n this._capturingListeners = null;\n this._bubblingListeners = null;\n // Touch event listener\n this._touchListener = null;\n // Mouse event listener\n this._mouseListener = null;\n\n this._initDataFromPool();\n\n this._eventMask = 0;\n this._cullingMask = 1;\n this._childArrivalOrder = 1;\n\n // Proxy\n if (CC_JSB && CC_NATIVERENDERER) {\n this._proxy = new renderer.NodeProxy(this._spaceInfo.unitID, this._spaceInfo.index, this._id, this._name);\n this._proxy.init(this);\n }\n // should reset _renderFlag for both web and native\n this._renderFlag = RenderFlow.FLAG_TRANSFORM | RenderFlow.FLAG_OPACITY_COLOR;\n },\n\n statics: {\n EventType,\n _LocalDirtyFlag: LocalDirtyFlag,\n // is node but not scene\n isNode (obj) {\n return obj instanceof Node && (obj.constructor === Node || !(obj instanceof cc.Scene));\n },\n BuiltinGroupIndex\n },\n\n // OVERRIDES\n\n _onSiblingIndexChanged () {\n // update rendering scene graph, sort them by arrivalOrder\n if (this._parent) {\n this._parent._delaySort();\n }\n },\n\n _onPreDestroy () {\n var destroyByParent = this._onPreDestroyBase();\n\n // Actions\n if (ActionManagerExist) {\n cc.director.getActionManager().removeAllActionsFromTarget(this);\n }\n\n // Remove Node.currentHovered\n if (_currentHovered === this) {\n _currentHovered = null;\n }\n\n this._bubblingListeners && this._bubblingListeners.clear();\n this._capturingListeners && this._capturingListeners.clear();\n\n // Remove all event listeners if necessary\n if (this._touchListener || this._mouseListener) {\n eventManager.removeListeners(this);\n if (this._touchListener) {\n this._touchListener.owner = null;\n this._touchListener.mask = null;\n this._touchListener = null;\n }\n if (this._mouseListener) {\n this._mouseListener.owner = null;\n this._mouseListener.mask = null;\n this._mouseListener = null;\n }\n }\n\n if (CC_JSB && CC_NATIVERENDERER) {\n this._proxy.destroy();\n this._proxy = null;\n }\n\n this._backDataIntoPool();\n\n if (this._reorderChildDirty) {\n cc.director.__fastOff(cc.Director.EVENT_AFTER_UPDATE, this.sortAllChildren, this);\n }\n\n if (!destroyByParent) {\n // simulate some destruct logic to make undo system work correctly\n if (CC_EDITOR) {\n // ensure this node can reattach to scene by undo system\n this._parent = null;\n }\n }\n },\n\n _onPostActivated (active) {\n var actionManager = ActionManagerExist ? cc.director.getActionManager() : null;\n if (active) {\n // Refresh transform\n this._renderFlag |= RenderFlow.FLAG_WORLD_TRANSFORM;\n // ActionManager & EventManager\n actionManager && actionManager.resumeTarget(this);\n eventManager.resumeTarget(this);\n // Search Mask in parent\n this._checkListenerMask();\n } else {\n // deactivate\n actionManager && actionManager.pauseTarget(this);\n eventManager.pauseTarget(this);\n }\n },\n\n _onHierarchyChanged (oldParent) {\n this._updateOrderOfArrival();\n // Fixed a bug where children and parent node groups were forced to synchronize, instead of only synchronizing `_cullingMask` value\n _updateCullingMask(this);\n if (this._parent) {\n this._parent._delaySort();\n }\n this._renderFlag |= RenderFlow.FLAG_WORLD_TRANSFORM;\n this._onHierarchyChangedBase(oldParent);\n if (cc._widgetManager) {\n cc._widgetManager._nodesOrderDirty = true;\n }\n\n if (oldParent && this._activeInHierarchy) {\n //TODO: It may be necessary to update the listener mask of all child nodes.\n this._checkListenerMask();\n }\n\n // Node proxy\n if (CC_JSB && CC_NATIVERENDERER) {\n this._proxy.updateParent();\n }\n },\n\n // INTERNAL\n\n _update3DFunction () {\n if (this._is3DNode) {\n this._updateLocalMatrix = updateLocalMatrix3D;\n this._calculWorldMatrix = calculWorldMatrix3D;\n this._mulMat = mulMat3D;\n }\n else {\n this._updateLocalMatrix = updateLocalMatrix2D;\n this._calculWorldMatrix = calculWorldMatrix2D;\n this._mulMat = mulMat2D;\n }\n if (this._renderComponent && this._renderComponent._on3DNodeChanged) {\n this._renderComponent._on3DNodeChanged();\n }\n this._renderFlag |= RenderFlow.FLAG_TRANSFORM;\n this._localMatDirty = LocalDirtyFlag.ALL;\n\n if (CC_JSB && CC_NATIVERENDERER) {\n this._proxy.update3DNode();\n }\n },\n\n _initDataFromPool () {\n if (!this._spaceInfo) {\n if (CC_EDITOR || CC_TEST) {\n this._spaceInfo = {\n trs: new Float64Array(10),\n localMat: new Float64Array(16),\n worldMat: new Float64Array(16),\n };\n } else {\n this._spaceInfo = nodeMemPool.pop();\n }\n }\n\n let spaceInfo = this._spaceInfo;\n this._matrix = cc.mat4(spaceInfo.localMat);\n Mat4.identity(this._matrix);\n this._worldMatrix = cc.mat4(spaceInfo.worldMat);\n Mat4.identity(this._worldMatrix);\n this._localMatDirty = LocalDirtyFlag.ALL;\n this._worldMatDirty = true;\n\n let trs = this._trs = spaceInfo.trs;\n trs[0] = 0; // position.x\n trs[1] = 0; // position.y\n trs[2] = 0; // position.z\n trs[3] = 0; // rotation.x\n trs[4] = 0; // rotation.y\n trs[5] = 0; // rotation.z\n trs[6] = 1; // rotation.w\n trs[7] = 1; // scale.x\n trs[8] = 1; // scale.y\n trs[9] = 1; // scale.z\n },\n\n _backDataIntoPool () {\n if (!(CC_EDITOR || CC_TEST)) {\n // push back to pool\n nodeMemPool.push(this._spaceInfo);\n this._matrix = null;\n this._worldMatrix = null;\n this._trs = null;\n this._spaceInfo = null;\n }\n },\n\n _toEuler () {\n if (this.is3DNode) {\n Trs.toEuler(this._eulerAngles, this._trs);\n }\n else {\n let z = Math.asin(this._trs[5]) / ONE_DEGREE * 2;\n Vec3.set(this._eulerAngles, 0, 0, z);\n }\n },\n\n _fromEuler () {\n if (this.is3DNode) {\n Trs.fromEuler(this._trs, this._eulerAngles);\n }\n else {\n Trs.fromAngleZ(this._trs, this._eulerAngles.z);\n }\n },\n\n _initProperties () {\n if (this._is3DNode) {\n this._update3DFunction();\n }\n\n let trs = this._trs;\n if (trs) {\n let desTrs = trs;\n trs = this._trs = this._spaceInfo.trs;\n // just adapt to old trs\n if (desTrs.length === 11) {\n trs.set(desTrs.subarray(1));\n } else {\n trs.set(desTrs);\n }\n } else {\n trs = this._trs = this._spaceInfo.trs;\n }\n\n if (CC_EDITOR) {\n if (this._skewX !== 0 || this._skewY !== 0) {\n var NodeUtils = Editor.require('scene://utils/node');\n cc.warn(\"`cc.Node.skewX/Y` is deprecated since v2.2.1, please use 3D node instead.\", `Node: ${NodeUtils.getNodePath(this)}.`);\n }\n }\n\n this._fromEuler();\n\n if (CC_JSB && CC_NATIVERENDERER) {\n this._renderFlag |= RenderFlow.FLAG_TRANSFORM | RenderFlow.FLAG_OPACITY_COLOR;\n }\n },\n\n /*\n * The initializer for Node which will be called before all components onLoad\n */\n _onBatchCreated (dontSyncChildPrefab) {\n this._initProperties();\n\n // Fixed a bug where children and parent node groups were forced to synchronize, instead of only synchronizing `_cullingMask` value\n this._cullingMask = 1 << _getActualGroupIndex(this);\n if (CC_JSB && CC_NATIVERENDERER) {\n this._proxy && this._proxy.updateCullingMask();\n }\n\n if (!this._activeInHierarchy) {\n if (CC_EDITOR ? cc.director.getActionManager() : ActionManagerExist) {\n // deactivate ActionManager and EventManager by default\n cc.director.getActionManager().pauseTarget(this);\n }\n eventManager.pauseTarget(this);\n }\n\n let children = this._children;\n for (let i = 0, len = children.length; i < len; i++) {\n let child = children[i];\n if (!dontSyncChildPrefab) {\n // sync child prefab\n let prefabInfo = child._prefab;\n if (prefabInfo && prefabInfo.sync && prefabInfo.root === child) {\n PrefabHelper.syncWithPrefab(child);\n }\n child._updateOrderOfArrival();\n }\n child._onBatchCreated(dontSyncChildPrefab);\n }\n\n if (children.length > 0) {\n this._renderFlag |= RenderFlow.FLAG_CHILDREN;\n }\n\n if (CC_JSB && CC_NATIVERENDERER) {\n this._proxy.initNative();\n }\n },\n\n // EVENT TARGET\n _checkListenerMask () {\n // Because Mask may be nested, need to find all the Mask components in the parent node.\n // The click area must satisfy all Masks to trigger the click.\n if (this._touchListener) {\n var mask = this._touchListener.mask = _searchComponentsInParent(this, cc.Mask);\n if (this._mouseListener) {\n this._mouseListener.mask = mask;\n }\n } else if (this._mouseListener) {\n this._mouseListener.mask = _searchComponentsInParent(this, cc.Mask);\n }\n },\n\n _checknSetupSysEvent (type) {\n let newAdded = false;\n let forDispatch = false;\n if (_touchEvents.indexOf(type) !== -1) {\n if (!this._touchListener) {\n this._touchListener = cc.EventListener.create({\n event: cc.EventListener.TOUCH_ONE_BY_ONE,\n swallowTouches: true,\n owner: this,\n mask: _searchComponentsInParent(this, cc.Mask),\n onTouchBegan: _touchStartHandler,\n onTouchMoved: _touchMoveHandler,\n onTouchEnded: _touchEndHandler,\n onTouchCancelled: _touchCancelHandler\n });\n eventManager.addListener(this._touchListener, this);\n newAdded = true;\n }\n forDispatch = true;\n }\n else if (_mouseEvents.indexOf(type) !== -1) {\n if (!this._mouseListener) {\n this._mouseListener = cc.EventListener.create({\n event: cc.EventListener.MOUSE,\n _previousIn: false,\n owner: this,\n mask: _searchComponentsInParent(this, cc.Mask),\n onMouseDown: _mouseDownHandler,\n onMouseMove: _mouseMoveHandler,\n onMouseUp: _mouseUpHandler,\n onMouseScroll: _mouseWheelHandler,\n });\n eventManager.addListener(this._mouseListener, this);\n newAdded = true;\n }\n forDispatch = true;\n }\n if (newAdded && !this._activeInHierarchy) {\n cc.director.getScheduler().schedule(function () {\n if (!this._activeInHierarchy) {\n eventManager.pauseTarget(this);\n }\n }, this, 0, 0, 0, false);\n }\n return forDispatch;\n },\n\n /**\n * !#en\n * Register a callback of a specific event type on Node.
\n * Use this method to register touch or mouse event permit propagation based on scene graph,
\n * These kinds of event are triggered with dispatchEvent, the dispatch process has three steps:
\n * 1. Capturing phase: dispatch in capture targets (`_getCapturingTargets`), e.g. parents in node tree, from root to the real target
\n * 2. At target phase: dispatch to the listeners of the real target
\n * 3. Bubbling phase: dispatch in bubble targets (`_getBubblingTargets`), e.g. parents in node tree, from the real target to root
\n * In any moment of the dispatching process, it can be stopped via `event.stopPropagation()` or `event.stopPropagationImmidiate()`.
\n * It's the recommended way to register touch/mouse event for Node,
\n * please do not use cc.eventManager directly for Node.
\n * You can also register custom event and use `emit` to trigger custom event on Node.
\n * For such events, there won't be capturing and bubbling phase, your event will be dispatched directly to its listeners registered on the same node.
\n * You can also pass event callback parameters with `emit` by passing parameters after `type`.\n * !#zh\n * 在节点上注册指定类型的回调函数,也可以设置 target 用于绑定响应函数的 this 对象。
\n * 鼠标或触摸事件会被系统调用 dispatchEvent 方法触发,触发的过程包含三个阶段:
\n * 1. 捕获阶段:派发事件给捕获目标(通过 `_getCapturingTargets` 获取),比如,节点树中注册了捕获阶段的父节点,从根节点开始派发直到目标节点。
\n * 2. 目标阶段:派发给目标节点的监听器。
\n * 3. 冒泡阶段:派发事件给冒泡目标(通过 `_getBubblingTargets` 获取),比如,节点树中注册了冒泡阶段的父节点,从目标节点开始派发直到根节点。
\n * 同时您可以将事件派发到父节点或者通过调用 stopPropagation 拦截它。
\n * 推荐使用这种方式来监听节点上的触摸或鼠标事件,请不要在节点上直接使用 cc.eventManager。
\n * 你也可以注册自定义事件到节点上,并通过 emit 方法触发此类事件,对于这类事件,不会发生捕获冒泡阶段,只会直接派发给注册在该节点上的监听器
\n * 你可以通过在 emit 方法调用时在 type 之后传递额外的参数作为事件回调的参数列表\n * @method on\n * @param {String|Node.EventType} type - A string representing the event type to listen for.
See {{#crossLink \"Node/EventTyupe/POSITION_CHANGED\"}}Node Events{{/crossLink}} for all builtin events.\n * @param {Function} callback - The callback that will be invoked when the event is dispatched. The callback is ignored if it is a duplicate (the callbacks are unique).\n * @param {Event|any} [callback.event] event or first argument when emit\n * @param {any} [callback.arg2] arg2\n * @param {any} [callback.arg3] arg3\n * @param {any} [callback.arg4] arg4\n * @param {any} [callback.arg5] arg5\n * @param {Object} [target] - The target (this object) to invoke the callback, can be null\n * @param {Boolean} [useCapture=false] - When set to true, the listener will be triggered at capturing phase which is ahead of the final target emit, otherwise it will be triggered during bubbling phase.\n * @return {Function} - Just returns the incoming callback so you can save the anonymous function easier.\n * @typescript\n * on(type: string, callback: T, target?: any, useCapture?: boolean): T\n * @example\n * this.node.on(cc.Node.EventType.TOUCH_START, this.memberFunction, this); // if \"this\" is component and the \"memberFunction\" declared in CCClass.\n * node.on(cc.Node.EventType.TOUCH_START, callback, this);\n * node.on(cc.Node.EventType.TOUCH_MOVE, callback, this);\n * node.on(cc.Node.EventType.TOUCH_END, callback, this);\n * node.on(cc.Node.EventType.TOUCH_CANCEL, callback, this);\n * node.on(cc.Node.EventType.ANCHOR_CHANGED, callback);\n * node.on(cc.Node.EventType.COLOR_CHANGED, callback);\n */\n on (type, callback, target, useCapture) {\n let forDispatch = this._checknSetupSysEvent(type);\n if (forDispatch) {\n return this._onDispatch(type, callback, target, useCapture);\n }\n else {\n switch (type) {\n case EventType.POSITION_CHANGED:\n this._eventMask |= POSITION_ON;\n break;\n case EventType.SCALE_CHANGED:\n this._eventMask |= SCALE_ON;\n break;\n case EventType.ROTATION_CHANGED:\n this._eventMask |= ROTATION_ON;\n break;\n case EventType.SIZE_CHANGED:\n this._eventMask |= SIZE_ON;\n break;\n case EventType.ANCHOR_CHANGED:\n this._eventMask |= ANCHOR_ON;\n break;\n case EventType.COLOR_CHANGED:\n this._eventMask |= COLOR_ON;\n break;\n }\n if (!this._bubblingListeners) {\n this._bubblingListeners = new EventTarget();\n }\n return this._bubblingListeners.on(type, callback, target);\n }\n },\n\n /**\n * !#en\n * Register an callback of a specific event type on the Node,\n * the callback will remove itself after the first time it is triggered.\n * !#zh\n * 注册节点的特定事件类型回调,回调会在第一时间被触发后删除自身。\n *\n * @method once\n * @param {String} type - A string representing the event type to listen for.\n * @param {Function} callback - The callback that will be invoked when the event is dispatched.\n * The callback is ignored if it is a duplicate (the callbacks are unique).\n * @param {Event|any} [callback.event] event or first argument when emit\n * @param {any} [callback.arg2] arg2\n * @param {any} [callback.arg3] arg3\n * @param {any} [callback.arg4] arg4\n * @param {any} [callback.arg5] arg5\n * @param {Object} [target] - The target (this object) to invoke the callback, can be null\n * @typescript\n * once(type: string, callback: T, target?: any, useCapture?: boolean): T\n * @example\n * node.once(cc.Node.EventType.ANCHOR_CHANGED, callback);\n */\n once (type, callback, target, useCapture) {\n let forDispatch = this._checknSetupSysEvent(type);\n\n let listeners = null;\n if (forDispatch && useCapture) {\n listeners = this._capturingListeners = this._capturingListeners || new EventTarget();\n }\n else {\n listeners = this._bubblingListeners = this._bubblingListeners || new EventTarget();\n }\n\n listeners.once(type, callback, target);\n listeners.once(type, () => {\n this.off(type, callback, target);\n }, undefined);\n },\n\n _onDispatch (type, callback, target, useCapture) {\n // Accept also patameters like: (type, callback, useCapture)\n if (typeof target === 'boolean') {\n useCapture = target;\n target = undefined;\n }\n else useCapture = !!useCapture;\n if (!callback) {\n cc.errorID(6800);\n return;\n }\n\n var listeners = null;\n if (useCapture) {\n listeners = this._capturingListeners = this._capturingListeners || new EventTarget();\n }\n else {\n listeners = this._bubblingListeners = this._bubblingListeners || new EventTarget();\n }\n\n if ( !listeners.hasEventListener(type, callback, target) ) {\n listeners.on(type, callback, target);\n\n if (target && target.__eventTargets) {\n target.__eventTargets.push(this);\n }\n }\n\n return callback;\n },\n\n /**\n * !#en\n * Removes the callback previously registered with the same type, callback, target and or useCapture.\n * This method is merely an alias to removeEventListener.\n * !#zh 删除之前与同类型,回调,目标或 useCapture 注册的回调。\n * @method off\n * @param {String} type - A string representing the event type being removed.\n * @param {Function} [callback] - The callback to remove.\n * @param {Object} [target] - The target (this object) to invoke the callback, if it's not given, only callback without target will be removed\n * @param {Boolean} [useCapture=false] - When set to true, the listener will be triggered at capturing phase which is ahead of the final target emit, otherwise it will be triggered during bubbling phase.\n * @example\n * this.node.off(cc.Node.EventType.TOUCH_START, this.memberFunction, this);\n * node.off(cc.Node.EventType.TOUCH_START, callback, this.node);\n * node.off(cc.Node.EventType.ANCHOR_CHANGED, callback, this);\n */\n off (type, callback, target, useCapture) {\n let touchEvent = _touchEvents.indexOf(type) !== -1;\n let mouseEvent = !touchEvent && _mouseEvents.indexOf(type) !== -1;\n if (touchEvent || mouseEvent) {\n this._offDispatch(type, callback, target, useCapture);\n\n if (touchEvent) {\n if (this._touchListener && !_checkListeners(this, _touchEvents)) {\n eventManager.removeListener(this._touchListener);\n this._touchListener = null;\n }\n }\n else if (mouseEvent) {\n if (this._mouseListener && !_checkListeners(this, _mouseEvents)) {\n eventManager.removeListener(this._mouseListener);\n this._mouseListener = null;\n }\n }\n }\n else if (this._bubblingListeners) {\n this._bubblingListeners.off(type, callback, target);\n\n var hasListeners = this._bubblingListeners.hasEventListener(type);\n // All listener removed\n if (!hasListeners) {\n switch (type) {\n case EventType.POSITION_CHANGED:\n this._eventMask &= ~POSITION_ON;\n break;\n case EventType.SCALE_CHANGED:\n this._eventMask &= ~SCALE_ON;\n break;\n case EventType.ROTATION_CHANGED:\n this._eventMask &= ~ROTATION_ON;\n break;\n case EventType.SIZE_CHANGED:\n this._eventMask &= ~SIZE_ON;\n break;\n case EventType.ANCHOR_CHANGED:\n this._eventMask &= ~ANCHOR_ON;\n break;\n case EventType.COLOR_CHANGED:\n this._eventMask &= ~COLOR_ON;\n break;\n }\n }\n }\n },\n\n _offDispatch (type, callback, target, useCapture) {\n // Accept also patameters like: (type, callback, useCapture)\n if (typeof target === 'boolean') {\n useCapture = target;\n target = undefined;\n }\n else useCapture = !!useCapture;\n if (!callback) {\n this._capturingListeners && this._capturingListeners.removeAll(type);\n this._bubblingListeners && this._bubblingListeners.removeAll(type);\n }\n else {\n var listeners = useCapture ? this._capturingListeners : this._bubblingListeners;\n if (listeners) {\n listeners.off(type, callback, target);\n\n if (target && target.__eventTargets) {\n js.array.fastRemove(target.__eventTargets, this);\n }\n }\n\n }\n },\n\n /**\n * !#en Removes all callbacks previously registered with the same target.\n * !#zh 移除目标上的所有注册事件。\n * @method targetOff\n * @param {Object} target - The target to be searched for all related callbacks\n * @example\n * node.targetOff(target);\n */\n targetOff (target) {\n let listeners = this._bubblingListeners;\n if (listeners) {\n listeners.targetOff(target);\n\n // Check for event mask reset\n if ((this._eventMask & POSITION_ON) && !listeners.hasEventListener(EventType.POSITION_CHANGED)) {\n this._eventMask &= ~POSITION_ON;\n }\n if ((this._eventMask & SCALE_ON) && !listeners.hasEventListener(EventType.SCALE_CHANGED)) {\n this._eventMask &= ~SCALE_ON;\n }\n if ((this._eventMask & ROTATION_ON) && !listeners.hasEventListener(EventType.ROTATION_CHANGED)) {\n this._eventMask &= ~ROTATION_ON;\n }\n if ((this._eventMask & SIZE_ON) && !listeners.hasEventListener(EventType.SIZE_CHANGED)) {\n this._eventMask &= ~SIZE_ON;\n }\n if ((this._eventMask & ANCHOR_ON) && !listeners.hasEventListener(EventType.ANCHOR_CHANGED)) {\n this._eventMask &= ~ANCHOR_ON;\n }\n if ((this._eventMask & COLOR_ON) && !listeners.hasEventListener(EventType.COLOR_CHANGED)) {\n this._eventMask &= ~COLOR_ON;\n }\n }\n if (this._capturingListeners) {\n this._capturingListeners.targetOff(target);\n }\n\n if (target && target.__eventTargets) {\n js.array.fastRemove(target.__eventTargets, this);\n }\n\n if (this._touchListener && !_checkListeners(this, _touchEvents)) {\n eventManager.removeListener(this._touchListener);\n this._touchListener = null;\n }\n if (this._mouseListener && !_checkListeners(this, _mouseEvents)) {\n eventManager.removeListener(this._mouseListener);\n this._mouseListener = null;\n }\n },\n\n /**\n * !#en Checks whether the EventTarget object has any callback registered for a specific type of event.\n * !#zh 检查事件目标对象是否有为特定类型的事件注册的回调。\n * @method hasEventListener\n * @param {String} type - The type of event.\n * @return {Boolean} True if a callback of the specified type is registered; false otherwise.\n */\n hasEventListener (type) {\n let has = false;\n if (this._bubblingListeners) {\n has = this._bubblingListeners.hasEventListener(type);\n }\n if (!has && this._capturingListeners) {\n has = this._capturingListeners.hasEventListener(type);\n }\n return has;\n },\n\n /**\n * !#en\n * Trigger an event directly with the event name and necessary arguments.\n * !#zh\n * 通过事件名发送自定义事件\n *\n * @method emit\n * @param {String} type - event type\n * @param {*} [arg1] - First argument in callback\n * @param {*} [arg2] - Second argument in callback\n * @param {*} [arg3] - Third argument in callback\n * @param {*} [arg4] - Fourth argument in callback\n * @param {*} [arg5] - Fifth argument in callback\n * @example\n *\n * eventTarget.emit('fire', event);\n * eventTarget.emit('fire', message, emitter);\n */\n emit (type, arg1, arg2, arg3, arg4, arg5) {\n if (this._bubblingListeners) {\n this._bubblingListeners.emit(type, arg1, arg2, arg3, arg4, arg5);\n }\n },\n\n /**\n * !#en\n * Dispatches an event into the event flow.\n * The event target is the EventTarget object upon which the dispatchEvent() method is called.\n * !#zh 分发事件到事件流中。\n *\n * @method dispatchEvent\n * @param {Event} event - The Event object that is dispatched into the event flow\n */\n dispatchEvent (event) {\n _doDispatchEvent(this, event);\n _cachedArray.length = 0;\n },\n\n /**\n * !#en Pause node related system events registered with the current Node. Node system events includes touch and mouse events.\n * If recursive is set to true, then this API will pause the node system events for the node and all nodes in its sub node tree.\n * Reference: http://docs.cocos2d-x.org/editors_and_tools/creator-chapters/scripting/internal-events/\n * !#zh 暂停当前节点上注册的所有节点系统事件,节点系统事件包含触摸和鼠标事件。\n * 如果传递 recursive 为 true,那么这个 API 将暂停本节点和它的子树上所有节点的节点系统事件。\n * 参考:https://www.cocos.com/docs/creator/scripting/internal-events.html\n * @method pauseSystemEvents\n * @param {Boolean} recursive - Whether to pause node system events on the sub node tree.\n * @example\n * node.pauseSystemEvents(true);\n */\n pauseSystemEvents (recursive) {\n eventManager.pauseTarget(this, recursive);\n },\n\n /**\n * !#en Resume node related system events registered with the current Node. Node system events includes touch and mouse events.\n * If recursive is set to true, then this API will resume the node system events for the node and all nodes in its sub node tree.\n * Reference: http://docs.cocos2d-x.org/editors_and_tools/creator-chapters/scripting/internal-events/\n * !#zh 恢复当前节点上注册的所有节点系统事件,节点系统事件包含触摸和鼠标事件。\n * 如果传递 recursive 为 true,那么这个 API 将恢复本节点和它的子树上所有节点的节点系统事件。\n * 参考:https://www.cocos.com/docs/creator/scripting/internal-events.html\n * @method resumeSystemEvents\n * @param {Boolean} recursive - Whether to resume node system events on the sub node tree.\n * @example\n * node.resumeSystemEvents(true);\n */\n resumeSystemEvents (recursive) {\n eventManager.resumeTarget(this, recursive);\n },\n\n _hitTest (point, listener) {\n let w = this._contentSize.width,\n h = this._contentSize.height,\n cameraPt = _htVec3a,\n testPt = _htVec3b;\n\n let camera = cc.Camera.findCamera(this);\n if (camera) {\n camera.getScreenToWorldPoint(point, cameraPt);\n }\n else {\n cameraPt.set(point);\n }\n\n this._updateWorldMatrix();\n // If scale is 0, it can't be hit.\n if (!Mat4.invert(_mat4_temp, this._worldMatrix)) {\n return false;\n }\n Vec2.transformMat4(testPt, cameraPt, _mat4_temp);\n testPt.x += this._anchorPoint.x * w;\n testPt.y += this._anchorPoint.y * h;\n\n let hit = false;\n if (testPt.x >= 0 && testPt.y >= 0 && testPt.x <= w && testPt.y <= h) {\n hit = true;\n if (listener && listener.mask) {\n let mask = listener.mask;\n let parent = this;\n let length = mask ? mask.length : 0;\n // find mask parent, should hit test it\n for (let i = 0, j = 0; parent && j < length; ++i, parent = parent.parent) {\n let temp = mask[j];\n if (i === temp.index) {\n if (parent === temp.node) {\n let comp = parent.getComponent(cc.Mask);\n if (comp && comp._enabled && !comp._hitTest(cameraPt)) {\n hit = false;\n break\n }\n\n j++;\n } else {\n // mask parent no longer exists\n mask.length = j;\n break\n }\n } else if (i > temp.index) {\n // mask parent no longer exists\n mask.length = j;\n break\n }\n }\n }\n }\n\n return hit;\n },\n\n /**\n * Get all the targets listening to the supplied type of event in the target's capturing phase.\n * The capturing phase comprises the journey from the root to the last node BEFORE the event target's node.\n * The result should save in the array parameter, and MUST SORT from child nodes to parent nodes.\n *\n * Subclasses can override this method to make event propagable.\n * @method _getCapturingTargets\n * @private\n * @param {String} type - the event type\n * @param {Array} array - the array to receive targets\n * @example {@link cocos2d/core/event/_getCapturingTargets.js}\n */\n _getCapturingTargets (type, array) {\n var parent = this.parent;\n while (parent) {\n if (parent._capturingListeners && parent._capturingListeners.hasEventListener(type)) {\n array.push(parent);\n }\n parent = parent.parent;\n }\n },\n\n /**\n * Get all the targets listening to the supplied type of event in the target's bubbling phase.\n * The bubbling phase comprises any SUBSEQUENT nodes encountered on the return trip to the root of the tree.\n * The result should save in the array parameter, and MUST SORT from child nodes to parent nodes.\n *\n * Subclasses can override this method to make event propagable.\n * @method _getBubblingTargets\n * @private\n * @param {String} type - the event type\n * @param {Array} array - the array to receive targets\n */\n _getBubblingTargets (type, array) {\n var parent = this.parent;\n while (parent) {\n if (parent._bubblingListeners && parent._bubblingListeners.hasEventListener(type)) {\n array.push(parent);\n }\n parent = parent.parent;\n }\n },\n\n// ACTIONS\n /**\n * !#en\n * Executes an action, and returns the action that is executed.
\n * The node becomes the action's target. Refer to cc.Action's getTarget()
\n * Calling runAction while the node is not active won't have any effect.
\n * Note:You shouldn't modify the action after runAction, that won't take any effect.
\n * if you want to modify, when you define action plus.\n * !#zh\n * 执行并返回该执行的动作。该节点将会变成动作的目标。
\n * 调用 runAction 时,节点自身处于不激活状态将不会有任何效果。
\n * 注意:你不应该修改 runAction 后的动作,将无法发挥作用,如果想进行修改,请在定义 action 时加入。\n * @method runAction\n * @param {Action} action\n * @return {Action} An Action pointer\n * @example\n * var action = cc.scaleTo(0.2, 1, 0.6);\n * node.runAction(action);\n * node.runAction(action).repeatForever(); // fail\n * node.runAction(action.repeatForever()); // right\n */\n runAction: ActionManagerExist ? function (action) {\n if (!this.active)\n return;\n cc.assertID(action, 1618);\n let am = cc.director.getActionManager();\n if (!am._suppressDeprecation) {\n am._suppressDeprecation = true;\n cc.warnID(1639);\n }\n am.addAction(action, this, false);\n return action;\n } : emptyFunc,\n\n /**\n * !#en Pause all actions running on the current node. Equals to `cc.director.getActionManager().pauseTarget(node)`.\n * !#zh 暂停本节点上所有正在运行的动作。和 `cc.director.getActionManager().pauseTarget(node);` 等价。\n * @method pauseAllActions\n * @example\n * node.pauseAllActions();\n */\n pauseAllActions: ActionManagerExist ? function () {\n cc.director.getActionManager().pauseTarget(this);\n } : emptyFunc,\n\n /**\n * !#en Resume all paused actions on the current node. Equals to `cc.director.getActionManager().resumeTarget(node)`.\n * !#zh 恢复运行本节点上所有暂停的动作。和 `cc.director.getActionManager().resumeTarget(node);` 等价。\n * @method resumeAllActions\n * @example\n * node.resumeAllActions();\n */\n resumeAllActions: ActionManagerExist ? function () {\n cc.director.getActionManager().resumeTarget(this);\n } : emptyFunc,\n\n /**\n * !#en Stops and removes all actions from the running action list .\n * !#zh 停止并且移除所有正在运行的动作列表。\n * @method stopAllActions\n * @example\n * node.stopAllActions();\n */\n stopAllActions: ActionManagerExist ? function () {\n cc.director.getActionManager().removeAllActionsFromTarget(this);\n } : emptyFunc,\n\n /**\n * !#en Stops and removes an action from the running action list.\n * !#zh 停止并移除指定的动作。\n * @method stopAction\n * @param {Action} action An action object to be removed.\n * @example\n * var action = cc.scaleTo(0.2, 1, 0.6);\n * node.stopAction(action);\n */\n stopAction: ActionManagerExist ? function (action) {\n cc.director.getActionManager().removeAction(action);\n } : emptyFunc,\n\n /**\n * !#en Removes an action from the running action list by its tag.\n * !#zh 停止并且移除指定标签的动作。\n * @method stopActionByTag\n * @param {Number} tag A tag that indicates the action to be removed.\n * @example\n * node.stopActionByTag(1);\n */\n stopActionByTag: ActionManagerExist ? function (tag) {\n if (tag === cc.Action.TAG_INVALID) {\n cc.logID(1612);\n return;\n }\n cc.director.getActionManager().removeActionByTag(tag, this);\n } : emptyFunc,\n\n /**\n * !#en Returns an action from the running action list by its tag.\n * !#zh 通过标签获取指定动作。\n * @method getActionByTag\n * @see cc.Action#getTag and cc.Action#setTag\n * @param {Number} tag\n * @return {Action} The action object with the given tag.\n * @example\n * var action = node.getActionByTag(1);\n */\n getActionByTag: ActionManagerExist ? function (tag) {\n if (tag === cc.Action.TAG_INVALID) {\n cc.logID(1613);\n return null;\n }\n return cc.director.getActionManager().getActionByTag(tag, this);\n } : function () {\n return null;\n },\n\n /**\n * !#en\n * Returns the numbers of actions that are running plus the ones that are schedule to run (actions in actionsToAdd and actions arrays).
\n * Composable actions are counted as 1 action. Example:
\n * If you are running 1 Sequence of 7 actions, it will return 1.
\n * If you are running 7 Sequences of 2 actions, it will return 7.

\n * !#zh\n * 获取运行着的动作加上正在调度运行的动作的总数。
\n * 例如:
\n * - 如果你正在运行 7 个动作中的 1 个 Sequence,它将返回 1。
\n * - 如果你正在运行 2 个动作中的 7 个 Sequence,它将返回 7。
\n *\n * @method getNumberOfRunningActions\n * @return {Number} The number of actions that are running plus the ones that are schedule to run\n * @example\n * var count = node.getNumberOfRunningActions();\n * cc.log(\"Running Action Count: \" + count);\n */\n getNumberOfRunningActions: ActionManagerExist ? function () {\n return cc.director.getActionManager().getNumberOfRunningActionsInTarget(this);\n } : function () {\n return 0;\n },\n\n\n// TRANSFORM RELATED\n /**\n * !#en\n * Returns a copy of the position (x, y, z) of the node in its parent's coordinates.\n * You can pass a cc.Vec2 or cc.Vec3 as the argument to receive the return values.\n * !#zh\n * 获取节点在父节点坐标系中的位置(x, y, z)。\n * 你可以传一个 cc.Vec2 或者 cc.Vec3 作为参数来接收返回值。\n * @method getPosition\n * @param {Vec2|Vec3} [out] - The return value to receive position\n * @return {Vec2|Vec3} The position (x, y, z) of the node in its parent's coordinates\n * @example\n * cc.log(\"Node Position: \" + node.getPosition());\n */\n getPosition (out) {\n out = out || new Vec3();\n return Trs.toPosition(out, this._trs);\n },\n\n /**\n * !#en\n * Sets the position (x, y, z) of the node in its parent's coordinates.
\n * Usually we use cc.v2(x, y) to compose cc.Vec2 object, in this case, position.z will become 0.
\n * and passing two numbers (x, y) is more efficient than passing cc.Vec2 object, in this case, position.z will remain unchanged.\n * For 3D node we can use cc.v3(x, y, z) to compose cc.Vec3 object,
\n * and passing three numbers (x, y, z) is more efficient than passing cc.Vec3 object.\n * !#zh\n * 设置节点在父节点坐标系中的位置。
\n * 可以通过下面的方式设置坐标点:
\n * 1. 传入 2 个数值 x, y (此时不会改变 position.z 的值)。
\n * 2. 传入 cc.v2(x, y) 类型为 cc.Vec2 的对象 (此时 position.z 的值将被设置为0)。\n * 3. 对于 3D 节点可以传入 3 个数值 x, y, z。
\n * 4. 对于 3D 节点可以传入 cc.v3(x, y, z) 类型为 cc.Vec3 的对象。\n * @method setPosition\n * @param {Vec2|Vec3|Number} x - X coordinate for position or the position object\n * @param {Number} [y] - Y coordinate for position\n * @param {Number} [z] - Z coordinate for position\n */\n setPosition (newPosOrX, y, z) {\n let x;\n if (y === undefined) {\n x = newPosOrX.x;\n y = newPosOrX.y;\n z = newPosOrX.z;\n }\n else {\n x = newPosOrX;\n }\n\n let trs = this._trs;\n\n if (z === undefined) {\n z = trs[2];\n }\n\n if (trs[0] === x && trs[1] === y && trs[2] === z) {\n return;\n }\n\n if (CC_EDITOR) {\n var oldPosition = new cc.Vec3(trs[0], trs[1], trs[2]);\n }\n\n trs[0] = x;\n trs[1] = y;\n trs[2] = z;\n\n this.setLocalDirty(LocalDirtyFlag.ALL_POSITION);\n !CC_NATIVERENDERER && (this._renderFlag |= RenderFlow.FLAG_WORLD_TRANSFORM);\n\n // fast check event\n if (this._eventMask & POSITION_ON) {\n if (CC_EDITOR) {\n this.emit(EventType.POSITION_CHANGED, oldPosition);\n }\n else {\n this.emit(EventType.POSITION_CHANGED);\n }\n }\n },\n\n /**\n * !#en\n * Returns the scale factor of the node.\n * Need pass a cc.Vec2 or cc.Vec3 as the argument to receive the return values.\n * !#zh 获取节点的缩放,需要传一个 cc.Vec2 或者 cc.Vec3 作为参数来接收返回值。\n * @method getScale\n * @param {Vec2|Vec3} out\n * @return {Vec2|Vec3} The scale factor\n * @example\n * cc.log(\"Node Scale: \" + node.getScale(cc.v3()));\n */\n getScale (out) {\n if (out !== undefined) {\n return Trs.toScale(out, this._trs);\n }\n else {\n cc.errorID(1400, 'cc.Node.getScale', 'cc.Node.scale or cc.Node.getScale(cc.Vec3)');\n return this._trs[7];\n }\n },\n\n /**\n * !#en\n * Sets the scale of axis in local coordinates of the node.\n * You can operate 2 axis in 2D node, and 3 axis in 3D node.\n * When only (x, y) is passed, the value of scale.z will not be changed.\n * When a Vec2 is passed in, the value of scale.z will be set to 0.\n * !#zh\n * 设置节点在本地坐标系中坐标轴上的缩放比例。\n * 2D 节点可以操作两个坐标轴,而 3D 节点可以操作三个坐标轴。\n * 当只传入 (x, y) 时,scale.z 的值不会被改变。\n * 当只传入 Vec2 对象时,scale.z 的值将被设置为0。\n * @method setScale\n * @param {Number|Vec2|Vec3} x - scaleX or scale object\n * @param {Number} [y]\n * @param {Number} [z]\n * @example\n * node.setScale(cc.v2(2, 2)); // Notice: scaleZ will be 0\n * node.setScale(cc.v3(2, 2, 2)); // for 3D node\n * node.setScale(2);\n */\n setScale (newScaleOrX, y, z) {\n let x;\n // only one parameter, and it's a Vec2/Vec3:\n if (newScaleOrX && typeof newScaleOrX !== 'number') {\n x = newScaleOrX.x;\n y = newScaleOrX.y;\n z = newScaleOrX.z;\n }\n // only one parameter, and it's a number:\n else if (newScaleOrX !== undefined && y === undefined) {\n x = newScaleOrX;\n y = newScaleOrX;\n z = newScaleOrX;\n }\n // two or three paramters:\n else {\n x = newScaleOrX;\n }\n\n let trs = this._trs;\n\n if (z === undefined) {\n z = trs[9];\n }\n\n if (trs[7] !== x || trs[8] !== y || trs[9] !== z) {\n trs[7] = x;\n trs[8] = y;\n trs[9] = z;\n this.setLocalDirty(LocalDirtyFlag.ALL_SCALE);\n !CC_NATIVERENDERER && (this._renderFlag |= RenderFlow.FLAG_TRANSFORM);\n\n if (this._eventMask & SCALE_ON) {\n this.emit(EventType.SCALE_CHANGED);\n }\n }\n },\n\n /**\n * !#en\n * Get rotation of node (in quaternion).\n * Need pass a cc.Quat as the argument to receive the return values.\n * !#zh\n * 获取该节点的 quaternion 旋转角度,需要传一个 cc.Quat 作为参数来接收返回值。\n * @method getRotation\n * @param {Quat} out\n * @return {Quat} Quaternion object represents the rotation\n */\n getRotation (out) {\n if (out instanceof Quat) {\n return Trs.toRotation(out, this._trs);\n }\n else {\n if (CC_DEBUG) {\n cc.warn(\"`cc.Node.getRotation()` is deprecated since v2.1.0, please use `-cc.Node.angle` instead. (`this.node.getRotation()` -> `-this.node.angle`)\");\n }\n return -this.angle;\n }\n },\n\n /**\n * !#en Set rotation of node (in quaternion).\n * !#zh 设置该节点的 quaternion 旋转角度。\n * @method setRotation\n * @param {cc.Quat|Number} quat Quaternion object represents the rotation or the x value of quaternion\n * @param {Number} [y] y value of quternion\n * @param {Number} [z] z value of quternion\n * @param {Number} [w] w value of quternion\n */\n setRotation (rotation, y, z, w) {\n if (typeof rotation === 'number' && y === undefined) {\n if (CC_DEBUG) {\n cc.warn(\"`cc.Node.setRotation(degree)` is deprecated since v2.1.0, please set `-cc.Node.angle` instead. (`this.node.setRotation(x)` -> `this.node.angle = -x`)\");\n }\n this.angle = -rotation;\n }\n else {\n let x = rotation;\n if (y === undefined) {\n x = rotation.x;\n y = rotation.y;\n z = rotation.z;\n w = rotation.w;\n }\n\n let trs = this._trs;\n if (trs[3] !== x || trs[4] !== y || trs[5] !== z || trs[6] !== w) {\n trs[3] = x;\n trs[4] = y;\n trs[5] = z;\n trs[6] = w;\n this.setLocalDirty(LocalDirtyFlag.ALL_ROTATION);\n\n if (this._eventMask & ROTATION_ON) {\n this.emit(EventType.ROTATION_CHANGED);\n }\n\n if (CC_EDITOR) {\n this._toEuler();\n }\n }\n }\n },\n\n /**\n * !#en\n * Returns a copy the untransformed size of the node.
\n * The contentSize remains the same no matter the node is scaled or rotated.
\n * All nodes has a size. Layer and Scene has the same size of the screen by default.
\n * !#zh 获取节点自身大小,不受该节点是否被缩放或者旋转的影响。\n * @method getContentSize\n * @return {Size} The untransformed size of the node.\n * @example\n * cc.log(\"Content Size: \" + node.getContentSize());\n */\n getContentSize () {\n return cc.size(this._contentSize.width, this._contentSize.height);\n },\n\n /**\n * !#en\n * Sets the untransformed size of the node.
\n * The contentSize remains the same no matter the node is scaled or rotated.
\n * All nodes has a size. Layer and Scene has the same size of the screen.\n * !#zh 设置节点原始大小,不受该节点是否被缩放或者旋转的影响。\n * @method setContentSize\n * @param {Size|Number} size - The untransformed size of the node or The untransformed size's width of the node.\n * @param {Number} [height] - The untransformed size's height of the node.\n * @example\n * node.setContentSize(cc.size(100, 100));\n * node.setContentSize(100, 100);\n */\n setContentSize (size, height) {\n var locContentSize = this._contentSize;\n var clone;\n if (height === undefined) {\n if ((size.width === locContentSize.width) && (size.height === locContentSize.height))\n return;\n if (CC_EDITOR) {\n clone = cc.size(locContentSize.width, locContentSize.height);\n }\n locContentSize.width = size.width;\n locContentSize.height = size.height;\n } else {\n if ((size === locContentSize.width) && (height === locContentSize.height))\n return;\n if (CC_EDITOR) {\n clone = cc.size(locContentSize.width, locContentSize.height);\n }\n locContentSize.width = size;\n locContentSize.height = height;\n }\n if (this._eventMask & SIZE_ON) {\n if (CC_EDITOR) {\n this.emit(EventType.SIZE_CHANGED, clone);\n }\n else {\n this.emit(EventType.SIZE_CHANGED);\n }\n }\n },\n\n /**\n * !#en\n * Returns a copy of the anchor point.
\n * Anchor point is the point around which all transformations and positioning manipulations take place.
\n * It's like a pin in the node where it is \"attached\" to its parent.
\n * The anchorPoint is normalized, like a percentage. (0,0) means the bottom-left corner and (1,1) means the top-right corner.
\n * But you can use values higher than (1,1) and lower than (0,0) too.
\n * The default anchor point is (0.5,0.5), so it starts at the center of the node.\n * !#zh\n * 获取节点锚点,用百分比表示。
\n * 锚点应用于所有变换和坐标点的操作,它就像在节点上连接其父节点的大头针。
\n * 锚点是标准化的,就像百分比一样。(0,0) 表示左下角,(1,1) 表示右上角。
\n * 但是你可以使用比(1,1)更高的值或者比(0,0)更低的值。
\n * 默认的锚点是(0.5,0.5),因此它开始于节点的中心位置。
\n * 注意:Creator 中的锚点仅用于定位所在的节点,子节点的定位不受影响。\n * @method getAnchorPoint\n * @return {Vec2} The anchor point of node.\n * @example\n * cc.log(\"Node AnchorPoint: \" + node.getAnchorPoint());\n */\n getAnchorPoint () {\n return cc.v2(this._anchorPoint);\n },\n\n /**\n * !#en\n * Sets the anchor point in percent.
\n * anchor point is the point around which all transformations and positioning manipulations take place.
\n * It's like a pin in the node where it is \"attached\" to its parent.
\n * The anchorPoint is normalized, like a percentage. (0,0) means the bottom-left corner and (1,1) means the top-right corner.
\n * But you can use values higher than (1,1) and lower than (0,0) too.
\n * The default anchor point is (0.5,0.5), so it starts at the center of the node.\n * !#zh\n * 设置锚点的百分比。
\n * 锚点应用于所有变换和坐标点的操作,它就像在节点上连接其父节点的大头针。
\n * 锚点是标准化的,就像百分比一样。(0,0) 表示左下角,(1,1) 表示右上角。
\n * 但是你可以使用比(1,1)更高的值或者比(0,0)更低的值。
\n * 默认的锚点是(0.5,0.5),因此它开始于节点的中心位置。
\n * 注意:Creator 中的锚点仅用于定位所在的节点,子节点的定位不受影响。\n * @method setAnchorPoint\n * @param {Vec2|Number} point - The anchor point of node or The x axis anchor of node.\n * @param {Number} [y] - The y axis anchor of node.\n * @example\n * node.setAnchorPoint(cc.v2(1, 1));\n * node.setAnchorPoint(1, 1);\n */\n setAnchorPoint (point, y) {\n var locAnchorPoint = this._anchorPoint;\n if (y === undefined) {\n if ((point.x === locAnchorPoint.x) && (point.y === locAnchorPoint.y))\n return;\n locAnchorPoint.x = point.x;\n locAnchorPoint.y = point.y;\n } else {\n if ((point === locAnchorPoint.x) && (y === locAnchorPoint.y))\n return;\n locAnchorPoint.x = point;\n locAnchorPoint.y = y;\n }\n this.setLocalDirty(LocalDirtyFlag.ALL_POSITION);\n if (this._eventMask & ANCHOR_ON) {\n this.emit(EventType.ANCHOR_CHANGED);\n }\n },\n\n /*\n * Transforms position from world space to local space.\n * @method _invTransformPoint\n * @param {Vec3} out\n * @param {Vec3} vec3\n */\n _invTransformPoint (out, pos) {\n if (this._parent) {\n this._parent._invTransformPoint(out, pos);\n } else {\n Vec3.copy(out, pos);\n }\n\n let ltrs = this._trs;\n // out = parent_inv_pos - pos\n Trs.toPosition(_tpVec3a, ltrs);\n Vec3.sub(out, out, _tpVec3a);\n\n // out = inv(rot) * out\n Trs.toRotation(_tpQuata, ltrs);\n Quat.conjugate(_tpQuatb, _tpQuata);\n Vec3.transformQuat(out, out, _tpQuatb);\n\n // out = (1/scale) * out\n Trs.toScale(_tpVec3a, ltrs);\n Vec3.inverseSafe(_tpVec3b, _tpVec3a);\n Vec3.mul(out, out, _tpVec3b);\n\n return out;\n },\n\n /*\n * Calculate and return world position.\n * This is not a public API yet, its usage could be updated\n * @method getWorldPosition\n * @param {Vec3} out\n * @return {Vec3}\n */\n getWorldPosition (out) {\n Trs.toPosition(out, this._trs);\n let curr = this._parent;\n let ltrs;\n while (curr) {\n ltrs = curr._trs;\n // out = parent_scale * pos\n Trs.toScale(_gwpVec3, ltrs);\n Vec3.mul(out, out, _gwpVec3);\n // out = parent_quat * out\n Trs.toRotation(_gwpQuat, ltrs);\n Vec3.transformQuat(out, out, _gwpQuat);\n // out = out + pos\n Trs.toPosition(_gwpVec3, ltrs);\n Vec3.add(out, out, _gwpVec3);\n curr = curr._parent;\n }\n return out;\n },\n\n /*\n * Set world position.\n * This is not a public API yet, its usage could be updated\n * @method setWorldPosition\n * @param {Vec3} pos\n */\n setWorldPosition (pos) {\n let ltrs = this._trs;\n if (CC_EDITOR) {\n var oldPosition = new cc.Vec3(ltrs[0], ltrs[1], ltrs[2]);\n }\n // NOTE: this is faster than invert world matrix and transform the point\n if (this._parent) {\n this._parent._invTransformPoint(_swpVec3, pos);\n }\n else {\n Vec3.copy(_swpVec3, pos);\n }\n Trs.fromPosition(ltrs, _swpVec3);\n this.setLocalDirty(LocalDirtyFlag.ALL_POSITION);\n\n // fast check event\n if (this._eventMask & POSITION_ON) {\n // send event\n if (CC_EDITOR) {\n this.emit(EventType.POSITION_CHANGED, oldPosition);\n }\n else {\n this.emit(EventType.POSITION_CHANGED);\n }\n }\n },\n\n /*\n * Calculate and return world rotation\n * This is not a public API yet, its usage could be updated\n * @method getWorldRotation\n * @param {Quat} out\n * @return {Quat}\n */\n getWorldRotation (out) {\n Trs.toRotation(_gwrQuat, this._trs);\n Quat.copy(out, _gwrQuat);\n let curr = this._parent;\n while (curr) {\n Trs.toRotation(_gwrQuat, curr._trs);\n Quat.mul(out, _gwrQuat, out);\n curr = curr._parent;\n }\n return out;\n },\n\n /*\n * Set world rotation with quaternion\n * This is not a public API yet, its usage could be updated\n * @method setWorldRotation\n * @param {Quat} val\n */\n setWorldRotation (val) {\n if (this._parent) {\n this._parent.getWorldRotation(_swrQuat);\n Quat.conjugate(_swrQuat, _swrQuat);\n Quat.mul(_swrQuat, _swrQuat, val);\n }\n else {\n Quat.copy(_swrQuat, val);\n }\n Trs.fromRotation(this._trs, _swrQuat);\n if (CC_EDITOR) {\n this._toEuler();\n }\n this.setLocalDirty(LocalDirtyFlag.ALL_ROTATION);\n },\n\n /*\n * Calculate and return world scale\n * This is not a public API yet, its usage could be updated\n * @method getWorldScale\n * @param {Vec3} out\n * @return {Vec3}\n */\n getWorldScale (out) {\n Trs.toScale(_gwsVec3, this._trs);\n Vec3.copy(out, _gwsVec3);\n let curr = this._parent;\n while (curr) {\n Trs.toScale(_gwsVec3, curr._trs);\n Vec3.mul(out, out, _gwsVec3);\n curr = curr._parent;\n }\n return out;\n },\n\n /*\n * Set world scale with vec3\n * This is not a public API yet, its usage could be updated\n * @method setWorldScale\n * @param {Vec3} scale\n */\n setWorldScale (scale) {\n if (this._parent) {\n this._parent.getWorldScale(_swsVec3);\n Vec3.div(_swsVec3, scale, _swsVec3);\n }\n else {\n Vec3.copy(_swsVec3, scale);\n }\n Trs.fromScale(this._trs, _swsVec3);\n this.setLocalDirty(LocalDirtyFlag.ALL_SCALE);\n },\n\n getWorldRT (out) {\n let opos = _gwrtVec3a;\n let orot = _gwrtQuata;\n let ltrs = this._trs;\n Trs.toPosition(opos, ltrs);\n Trs.toRotation(orot, ltrs);\n\n let curr = this._parent;\n while (curr) {\n ltrs = curr._trs;\n // opos = parent_lscale * lpos\n Trs.toScale(_gwrtVec3b, ltrs);\n Vec3.mul(opos, opos, _gwrtVec3b);\n // opos = parent_lrot * opos\n Trs.toRotation(_gwrtQuatb, ltrs);\n Vec3.transformQuat(opos, opos, _gwrtQuatb);\n // opos = opos + lpos\n Trs.toPosition(_gwrtVec3b, ltrs);\n Vec3.add(opos, opos, _gwrtVec3b);\n // orot = lrot * orot\n Quat.mul(orot, _gwrtQuatb, orot);\n curr = curr._parent;\n }\n Mat4.fromRT(out, orot, opos);\n return out;\n },\n\n /**\n * !#en Set rotation by lookAt target point, normally used by Camera Node\n * !#zh 通过观察目标来设置 rotation,一般用于 Camera Node 上\n * @method lookAt\n * @param {Vec3} pos\n * @param {Vec3} [up] - default is (0,1,0)\n */\n lookAt (pos, up) {\n this.getWorldPosition(_laVec3);\n Vec3.sub(_laVec3, _laVec3, pos); // NOTE: we use -z for view-dir\n Vec3.normalize(_laVec3, _laVec3);\n Quat.fromViewUp(_laQuat, _laVec3, up);\n\n this.setWorldRotation(_laQuat);\n },\n\n _updateLocalMatrix: updateLocalMatrix2D,\n\n _calculWorldMatrix () {\n // Avoid as much function call as possible\n if (this._localMatDirty & LocalDirtyFlag.TRSS) {\n this._updateLocalMatrix();\n }\n\n // Assume parent world matrix is correct\n let parent = this._parent;\n if (parent) {\n this._mulMat(this._worldMatrix, parent._worldMatrix, this._matrix);\n }\n else {\n Mat4.copy(this._worldMatrix, this._matrix);\n }\n this._worldMatDirty = false;\n },\n\n _mulMat: mulMat2D,\n\n _updateWorldMatrix () {\n if (this._parent) {\n this._parent._updateWorldMatrix();\n }\n if (this._worldMatDirty) {\n this._calculWorldMatrix();\n // Sync dirty to children\n let children = this._children;\n for (let i = 0, l = children.length; i < l; i++) {\n children[i]._worldMatDirty = true;\n }\n }\n },\n\n setLocalDirty (flag) {\n this._localMatDirty |= flag;\n this._worldMatDirty = true;\n\n if (flag === LocalDirtyFlag.ALL_POSITION || flag === LocalDirtyFlag.POSITION) {\n this._renderFlag |= RenderFlow.FLAG_WORLD_TRANSFORM;\n }\n else {\n this._renderFlag |= RenderFlow.FLAG_TRANSFORM;\n }\n },\n\n setWorldDirty () {\n this._worldMatDirty = true;\n },\n\n /**\n * !#en\n * Get the local transform matrix (4x4), based on parent node coordinates\n * !#zh 返回局部空间坐标系的矩阵,基于父节点坐标系。\n * @method getLocalMatrix\n * @param {Mat4} out The matrix object to be filled with data\n * @return {Mat4} Same as the out matrix object\n * @example\n * let mat4 = cc.mat4();\n * node.getLocalMatrix(mat4);\n */\n getLocalMatrix (out) {\n this._updateLocalMatrix();\n return Mat4.copy(out, this._matrix);\n },\n\n /**\n * !#en\n * Get the world transform matrix (4x4)\n * !#zh 返回世界空间坐标系的矩阵。\n * @method getWorldMatrix\n * @param {Mat4} out The matrix object to be filled with data\n * @return {Mat4} Same as the out matrix object\n * @example\n * let mat4 = cc.mat4();\n * node.getWorldMatrix(mat4);\n */\n getWorldMatrix (out) {\n this._updateWorldMatrix();\n return Mat4.copy(out, this._worldMatrix);\n },\n\n /**\n * !#en\n * Converts a Point to node (local) space coordinates.\n * !#zh\n * 将一个点转换到节点 (局部) 空间坐标系。\n * @method convertToNodeSpaceAR\n * @param {Vec3|Vec2} worldPoint\n * @param {Vec3|Vec2} [out]\n * @return {Vec3|Vec2}\n * @typescript\n * convertToNodeSpaceAR(worldPoint: T, out?: T): T\n * @example\n * var newVec2 = node.convertToNodeSpaceAR(cc.v2(100, 100));\n * var newVec3 = node.convertToNodeSpaceAR(cc.v3(100, 100, 100));\n */\n convertToNodeSpaceAR (worldPoint, out) {\n this._updateWorldMatrix();\n Mat4.invert(_mat4_temp, this._worldMatrix);\n\n if (worldPoint instanceof cc.Vec2) {\n out = out || new cc.Vec2();\n return Vec2.transformMat4(out, worldPoint, _mat4_temp);\n }\n else {\n out = out || new cc.Vec3();\n return Vec3.transformMat4(out, worldPoint, _mat4_temp);\n }\n },\n\n /**\n * !#en\n * Converts a Point in node coordinates to world space coordinates.\n * !#zh\n * 将节点坐标系下的一个点转换到世界空间坐标系。\n * @method convertToWorldSpaceAR\n * @param {Vec3|Vec2} nodePoint\n * @param {Vec3|Vec2} [out]\n * @return {Vec3|Vec2}\n * @typescript\n * convertToWorldSpaceAR(nodePoint: T, out?: T): T\n * @example\n * var newVec2 = node.convertToWorldSpaceAR(cc.v2(100, 100));\n * var newVec3 = node.convertToWorldSpaceAR(cc.v3(100, 100, 100));\n */\n convertToWorldSpaceAR (nodePoint, out) {\n this._updateWorldMatrix();\n if (nodePoint instanceof cc.Vec2) {\n out = out || new cc.Vec2();\n return Vec2.transformMat4(out, nodePoint, this._worldMatrix);\n }\n else {\n out = out || new cc.Vec3();\n return Vec3.transformMat4(out, nodePoint, this._worldMatrix);\n }\n },\n\n// OLD TRANSFORM ACCESS APIs\n /**\n * !#en Converts a Point to node (local) space coordinates then add the anchor point position.\n * So the return position will be related to the left bottom corner of the node's bounding box.\n * This equals to the API behavior of cocos2d-x, you probably want to use convertToNodeSpaceAR instead\n * !#zh 将一个点转换到节点 (局部) 坐标系,并加上锚点的坐标。
\n * 也就是说返回的坐标是相对于节点包围盒左下角的坐标。
\n * 这个 API 的设计是为了和 cocos2d-x 中行为一致,更多情况下你可能需要使用 convertToNodeSpaceAR。\n * @method convertToNodeSpace\n * @deprecated since v2.1.3\n * @param {Vec2} worldPoint\n * @return {Vec2}\n * @example\n * var newVec2 = node.convertToNodeSpace(cc.v2(100, 100));\n */\n convertToNodeSpace (worldPoint) {\n this._updateWorldMatrix();\n Mat4.invert(_mat4_temp, this._worldMatrix);\n let out = new cc.Vec2();\n Vec2.transformMat4(out, worldPoint, _mat4_temp);\n out.x += this._anchorPoint.x * this._contentSize.width;\n out.y += this._anchorPoint.y * this._contentSize.height;\n return out;\n },\n\n /**\n * !#en Converts a Point related to the left bottom corner of the node's bounding box to world space coordinates.\n * This equals to the API behavior of cocos2d-x, you probably want to use convertToWorldSpaceAR instead\n * !#zh 将一个相对于节点左下角的坐标位置转换到世界空间坐标系。\n * 这个 API 的设计是为了和 cocos2d-x 中行为一致,更多情况下你可能需要使用 convertToWorldSpaceAR\n * @method convertToWorldSpace\n * @deprecated since v2.1.3\n * @param {Vec2} nodePoint\n * @return {Vec2}\n * @example\n * var newVec2 = node.convertToWorldSpace(cc.v2(100, 100));\n */\n convertToWorldSpace (nodePoint) {\n this._updateWorldMatrix();\n let out = new cc.Vec2(\n nodePoint.x - this._anchorPoint.x * this._contentSize.width,\n nodePoint.y - this._anchorPoint.y * this._contentSize.height\n );\n return Vec2.transformMat4(out, out, this._worldMatrix);\n },\n\n /**\n * !#en\n * Returns the matrix that transform the node's (local) space coordinates into the parent's space coordinates.
\n * The matrix is in Pixels.\n * !#zh 返回这个将节点(局部)的空间坐标系转换成父节点的空间坐标系的矩阵。这个矩阵以像素为单位。\n * @method getNodeToParentTransform\n * @deprecated since v2.0\n * @param {AffineTransform} [out] The affine transform object to be filled with data\n * @return {AffineTransform} Same as the out affine transform object\n * @example\n * let affineTransform = cc.AffineTransform.create();\n * node.getNodeToParentTransform(affineTransform);\n */\n getNodeToParentTransform (out) {\n if (!out) {\n out = AffineTrans.identity();\n }\n this._updateLocalMatrix();\n\n var contentSize = this._contentSize;\n _vec3_temp.x = -this._anchorPoint.x * contentSize.width;\n _vec3_temp.y = -this._anchorPoint.y * contentSize.height;\n\n Mat4.copy(_mat4_temp, this._matrix);\n Mat4.transform(_mat4_temp, _mat4_temp, _vec3_temp);\n return AffineTrans.fromMat4(out, _mat4_temp);\n },\n\n /**\n * !#en\n * Returns the matrix that transform the node's (local) space coordinates into the parent's space coordinates.
\n * The matrix is in Pixels.
\n * This method is AR (Anchor Relative).\n * !#zh\n * 返回这个将节点(局部)的空间坐标系转换成父节点的空间坐标系的矩阵。
\n * 这个矩阵以像素为单位。
\n * 该方法基于节点坐标。\n * @method getNodeToParentTransformAR\n * @deprecated since v2.0\n * @param {AffineTransform} [out] The affine transform object to be filled with data\n * @return {AffineTransform} Same as the out affine transform object\n * @example\n * let affineTransform = cc.AffineTransform.create();\n * node.getNodeToParentTransformAR(affineTransform);\n */\n getNodeToParentTransformAR (out) {\n if (!out) {\n out = AffineTrans.identity();\n }\n this._updateLocalMatrix();\n return AffineTrans.fromMat4(out, this._matrix);\n },\n\n /**\n * !#en Returns the world affine transform matrix. The matrix is in Pixels.\n * !#zh 返回节点到世界坐标系的仿射变换矩阵。矩阵单位是像素。\n * @method getNodeToWorldTransform\n * @deprecated since v2.0\n * @param {AffineTransform} [out] The affine transform object to be filled with data\n * @return {AffineTransform} Same as the out affine transform object\n * @example\n * let affineTransform = cc.AffineTransform.create();\n * node.getNodeToWorldTransform(affineTransform);\n */\n getNodeToWorldTransform (out) {\n if (!out) {\n out = AffineTrans.identity();\n }\n this._updateWorldMatrix();\n\n var contentSize = this._contentSize;\n _vec3_temp.x = -this._anchorPoint.x * contentSize.width;\n _vec3_temp.y = -this._anchorPoint.y * contentSize.height;\n\n Mat4.copy(_mat4_temp, this._worldMatrix);\n Mat4.transform(_mat4_temp, _mat4_temp, _vec3_temp);\n\n return AffineTrans.fromMat4(out, _mat4_temp);\n },\n\n /**\n * !#en\n * Returns the world affine transform matrix. The matrix is in Pixels.
\n * This method is AR (Anchor Relative).\n * !#zh\n * 返回节点到世界坐标仿射变换矩阵。矩阵单位是像素。
\n * 该方法基于节点坐标。\n * @method getNodeToWorldTransformAR\n * @deprecated since v2.0\n * @param {AffineTransform} [out] The affine transform object to be filled with data\n * @return {AffineTransform} Same as the out affine transform object\n * @example\n * let affineTransform = cc.AffineTransform.create();\n * node.getNodeToWorldTransformAR(affineTransform);\n */\n getNodeToWorldTransformAR (out) {\n if (!out) {\n out = AffineTrans.identity();\n }\n this._updateWorldMatrix();\n return AffineTrans.fromMat4(out, this._worldMatrix);\n },\n\n /**\n * !#en\n * Returns the matrix that transform parent's space coordinates to the node's (local) space coordinates.
\n * The matrix is in Pixels. The returned transform is readonly and cannot be changed.\n * !#zh\n * 返回将父节点的坐标系转换成节点(局部)的空间坐标系的矩阵。
\n * 该矩阵以像素为单位。返回的矩阵是只读的,不能更改。\n * @method getParentToNodeTransform\n * @deprecated since v2.0\n * @param {AffineTransform} [out] The affine transform object to be filled with data\n * @return {AffineTransform} Same as the out affine transform object\n * @example\n * let affineTransform = cc.AffineTransform.create();\n * node.getParentToNodeTransform(affineTransform);\n */\n getParentToNodeTransform (out) {\n if (!out) {\n out = AffineTrans.identity();\n }\n this._updateLocalMatrix();\n Mat4.invert(_mat4_temp, this._matrix);\n return AffineTrans.fromMat4(out, _mat4_temp);\n },\n\n /**\n * !#en Returns the inverse world affine transform matrix. The matrix is in Pixels.\n * !#en 返回世界坐标系到节点坐标系的逆矩阵。\n * @method getWorldToNodeTransform\n * @deprecated since v2.0\n * @param {AffineTransform} [out] The affine transform object to be filled with data\n * @return {AffineTransform} Same as the out affine transform object\n * @example\n * let affineTransform = cc.AffineTransform.create();\n * node.getWorldToNodeTransform(affineTransform);\n */\n getWorldToNodeTransform (out) {\n if (!out) {\n out = AffineTrans.identity();\n }\n this._updateWorldMatrix();\n Mat4.invert(_mat4_temp, this._worldMatrix);\n return AffineTrans.fromMat4(out, _mat4_temp);\n },\n\n /**\n * !#en convenience methods which take a cc.Touch instead of cc.Vec2.\n * !#zh 将触摸点转换成本地坐标系中位置。\n * @method convertTouchToNodeSpace\n * @deprecated since v2.0\n * @param {Touch} touch - The touch object\n * @return {Vec2}\n * @example\n * var newVec2 = node.convertTouchToNodeSpace(touch);\n */\n convertTouchToNodeSpace (touch) {\n return this.convertToNodeSpace(touch.getLocation());\n },\n\n /**\n * !#en converts a cc.Touch (world coordinates) into a local coordinate. This method is AR (Anchor Relative).\n * !#zh 转换一个 cc.Touch(世界坐标)到一个局部坐标,该方法基于节点坐标。\n * @method convertTouchToNodeSpaceAR\n * @deprecated since v2.0\n * @param {Touch} touch - The touch object\n * @return {Vec2}\n * @example\n * var newVec2 = node.convertTouchToNodeSpaceAR(touch);\n */\n convertTouchToNodeSpaceAR (touch) {\n return this.convertToNodeSpaceAR(touch.getLocation());\n },\n\n /**\n * !#en\n * Returns a \"local\" axis aligned bounding box of the node.
\n * The returned box is relative only to its parent.\n * !#zh 返回父节坐标系下的轴向对齐的包围盒。\n * @method getBoundingBox\n * @return {Rect} The calculated bounding box of the node\n * @example\n * var boundingBox = node.getBoundingBox();\n */\n getBoundingBox () {\n this._updateLocalMatrix();\n let width = this._contentSize.width;\n let height = this._contentSize.height;\n let rect = cc.rect(\n -this._anchorPoint.x * width,\n -this._anchorPoint.y * height,\n width,\n height);\n return rect.transformMat4(rect, this._matrix);\n },\n\n /**\n * !#en\n * Returns a \"world\" axis aligned bounding box of the node.
\n * The bounding box contains self and active children's world bounding box.\n * !#zh\n * 返回节点在世界坐标系下的对齐轴向的包围盒(AABB)。
\n * 该边框包含自身和已激活的子节点的世界边框。\n * @method getBoundingBoxToWorld\n * @return {Rect}\n * @example\n * var newRect = node.getBoundingBoxToWorld();\n */\n getBoundingBoxToWorld () {\n if (this._parent) {\n this._parent._updateWorldMatrix();\n return this._getBoundingBoxTo();\n }\n else {\n return this.getBoundingBox();\n }\n },\n\n _getBoundingBoxTo () {\n let width = this._contentSize.width;\n let height = this._contentSize.height;\n let rect = cc.rect(\n -this._anchorPoint.x * width,\n -this._anchorPoint.y * height,\n width,\n height);\n\n this._calculWorldMatrix();\n rect.transformMat4(rect, this._worldMatrix);\n\n //query child's BoundingBox\n if (!this._children)\n return rect;\n\n var locChildren = this._children;\n for (var i = 0; i < locChildren.length; i++) {\n var child = locChildren[i];\n if (child && child.active) {\n var childRect = child._getBoundingBoxTo();\n if (childRect)\n rect.union(rect, childRect);\n }\n }\n return rect;\n },\n\n _updateOrderOfArrival () {\n var arrivalOrder = this._parent ? ++this._parent._childArrivalOrder : 0;\n this._localZOrder = (this._localZOrder & 0xffff0000) | arrivalOrder;\n\n this.emit(EventType.SIBLING_ORDER_CHANGED);\n },\n\n /**\n * !#en\n * Adds a child to the node with z order and name.\n * !#zh\n * 添加子节点,并且可以修改该节点的 局部 Z 顺序和名字。\n * @method addChild\n * @param {Node} child - A child node\n * @param {Number} [zIndex] - Z order for drawing priority. Please refer to zIndex property\n * @param {String} [name] - A name to identify the node easily. Please refer to name property\n * @example\n * node.addChild(newNode, 1, \"node\");\n */\n addChild (child, zIndex, name) {\n if (CC_DEV && !cc.Node.isNode(child)) {\n return cc.errorID(1634, cc.js.getClassName(child));\n }\n cc.assertID(child, 1606);\n cc.assertID(child._parent === null, 1605);\n\n // invokes the parent setter\n child.parent = this;\n\n if (zIndex !== undefined) {\n child.zIndex = zIndex;\n }\n if (name !== undefined) {\n child.name = name;\n }\n },\n\n /**\n * !#en Stops all running actions and schedulers.\n * !#zh 停止所有正在播放的动作和计时器。\n * @method cleanup\n * @example\n * node.cleanup();\n */\n cleanup () {\n // actions\n ActionManagerExist && cc.director.getActionManager().removeAllActionsFromTarget(this);\n // event\n eventManager.removeListeners(this);\n\n // children\n var i, len = this._children.length, node;\n for (i = 0; i < len; ++i) {\n node = this._children[i];\n if (node)\n node.cleanup();\n }\n },\n\n /**\n * !#en Sorts the children array depends on children's zIndex and arrivalOrder,\n * normally you won't need to invoke this function.\n * !#zh 根据子节点的 zIndex 和 arrivalOrder 进行排序,正常情况下开发者不需要手动调用这个函数。\n *\n * @method sortAllChildren\n */\n sortAllChildren () {\n if (this._reorderChildDirty) {\n\n this._reorderChildDirty = false;\n\n // delay update arrivalOrder before sort children\n var _children = this._children, child;\n // reset arrivalOrder before sort children\n this._childArrivalOrder = 1;\n for (let i = 0, len = _children.length; i < len; i++) {\n child = _children[i];\n child._updateOrderOfArrival();\n }\n\n // Optimize reordering event code to fix problems with setting zindex\n // https://github.com/cocos-creator/2d-tasks/issues/1186\n eventManager._setDirtyForNode(this);\n\n if (_children.length > 1) {\n // insertion sort\n let child, child2;\n for (let i = 1, count = _children.length; i < count; i++) {\n child = _children[i];\n let j = i;\n for (; j > 0 &&\n (child2 = _children[j - 1])._localZOrder > child._localZOrder; j--) {\n _children[j] = child2;\n }\n _children[j] = child;\n }\n\n this.emit(EventType.CHILD_REORDER, this);\n }\n cc.director.__fastOff(cc.Director.EVENT_AFTER_UPDATE, this.sortAllChildren, this);\n }\n },\n\n _delaySort () {\n if (!this._reorderChildDirty) {\n this._reorderChildDirty = true;\n cc.director.__fastOn(cc.Director.EVENT_AFTER_UPDATE, this.sortAllChildren, this);\n }\n },\n\n _restoreProperties: CC_EDITOR && function () {\n /*\n * TODO: Refine this code after completing undo/redo 2.0.\n * The node will be destroyed when deleting in the editor,\n * but it will be reserved and reused for undo.\n */\n\n // restore 3d node\n this.is3DNode = this.is3DNode;\n\n if (!this._matrix) {\n this._matrix = cc.mat4(this._spaceInfo.localMat);\n Mat4.identity(this._matrix);\n }\n if (!this._worldMatrix) {\n this._worldMatrix = cc.mat4(this._spaceInfo.worldMat);\n Mat4.identity(this._worldMatrix);\n }\n\n this._localMatDirty = LocalDirtyFlag.ALL;\n this._worldMatDirty = true;\n\n this._fromEuler();\n\n this._renderFlag |= RenderFlow.FLAG_TRANSFORM;\n if (this._renderComponent) {\n this._renderComponent.markForRender(true);\n }\n\n if (this._children.length > 0) {\n this._renderFlag |= RenderFlow.FLAG_CHILDREN;\n }\n },\n\n onRestore: CC_EDITOR && function () {\n this._onRestoreBase();\n\n this._restoreProperties();\n\n var actionManager = cc.director.getActionManager();\n if (this._activeInHierarchy) {\n actionManager && actionManager.resumeTarget(this);\n eventManager.resumeTarget(this);\n }\n else {\n actionManager && actionManager.pauseTarget(this);\n eventManager.pauseTarget(this);\n }\n },\n\n};\n\nif (CC_EDITOR) {\n // deprecated, only used to import old data in editor\n js.mixin(NodeDefines.properties, {\n _scaleX: {\n default: undefined,\n type: cc.Float,\n editorOnly: true\n },\n _scaleY: {\n default: undefined,\n type: cc.Float,\n editorOnly: true\n },\n });\n}\n\nlet Node = cc.Class(NodeDefines);\n\n// 3D Node Property\n\n\n// Node Event\n\n/**\n * !#en\n * The position changing event, you can listen to this event through the statement this.node.on(cc.Node.EventType.POSITION_CHANGED, callback, this);\n * !#zh\n * 位置变动监听事件, 通过 this.node.on(cc.Node.EventType.POSITION_CHANGED, callback, this); 进行监听。\n * @event position-changed\n * @param {Vec2} oldPos - The old position, but this parameter is only available in editor!\n */\n/**\n * !#en\n * The size changing event, you can listen to this event through the statement this.node.on(cc.Node.EventType.SIZE_CHANGED, callback, this);\n * !#zh\n * 尺寸变动监听事件,通过 this.node.on(cc.Node.EventType.SIZE_CHANGED, callback, this); 进行监听。\n * @event size-changed\n * @param {Size} oldSize - The old size, but this parameter is only available in editor!\n */\n/**\n * !#en\n * The anchor changing event, you can listen to this event through the statement this.node.on(cc.Node.EventType.ANCHOR_CHANGED, callback, this);\n * !#zh\n * 锚点变动监听事件,通过 this.node.on(cc.Node.EventType.ANCHOR_CHANGED, callback, this); 进行监听。\n * @event anchor-changed\n */\n/**\n * !#en\n * The adding child event, you can listen to this event through the statement this.node.on(cc.Node.EventType.CHILD_ADDED, callback, this);\n * !#zh\n * 增加子节点监听事件,通过 this.node.on(cc.Node.EventType.CHILD_ADDED, callback, this); 进行监听。\n * @event child-added\n * @param {Node} child - child which have been added\n */\n/**\n * !#en\n * The removing child event, you can listen to this event through the statement this.node.on(cc.Node.EventType.CHILD_REMOVED, callback, this);\n * !#zh\n * 删除子节点监听事件,通过 this.node.on(cc.Node.EventType.CHILD_REMOVED, callback, this); 进行监听。\n * @event child-removed\n * @param {Node} child - child which have been removed\n */\n/**\n * !#en\n * The reordering child event, you can listen to this event through the statement this.node.on(cc.Node.EventType.CHILD_REORDER, callback, this);\n * !#zh\n * 子节点顺序变动监听事件,通过 this.node.on(cc.Node.EventType.CHILD_REORDER, callback, this); 进行监听。\n * @event child-reorder\n * @param {Node} node - node whose children have been reordered\n */\n/**\n * !#en\n * The group changing event, you can listen to this event through the statement this.node.on(cc.Node.EventType.GROUP_CHANGED, callback, this);\n * !#zh\n * 节点分组变动监听事件,通过 this.node.on(cc.Node.EventType.GROUP_CHANGED, callback, this); 进行监听。\n * @event group-changed\n * @param {Node} node - node whose group has changed\n */\n\n// Deprecated APIs\n\n/**\n * !#en\n * Returns the displayed opacity of Node,\n * the difference between displayed opacity and opacity is that displayed opacity is calculated based on opacity and parent node's opacity when cascade opacity enabled.\n * !#zh\n * 获取节点显示透明度,\n * 显示透明度和透明度之间的不同之处在于当启用级连透明度时,\n * 显示透明度是基于自身透明度和父节点透明度计算的。\n *\n * @method getDisplayedOpacity\n * @return {number} displayed opacity\n * @deprecated since v2.0, please use opacity property, cascade opacity is removed\n */\n\n/**\n * !#en\n * Returns the displayed color of Node,\n * the difference between displayed color and color is that displayed color is calculated based on color and parent node's color when cascade color enabled.\n * !#zh\n * 获取节点的显示颜色,\n * 显示颜色和颜色之间的不同之处在于当启用级连颜色时,\n * 显示颜色是基于自身颜色和父节点颜色计算的。\n *\n * @method getDisplayedColor\n * @return {Color}\n * @deprecated since v2.0, please use color property, cascade color is removed\n */\n\n/**\n * !#en Cascade opacity is removed from v2.0\n * Indicate whether node's opacity value affect its child nodes, default value is true.\n * !#zh 透明度级联功能从 v2.0 开始已移除\n * 节点的不透明度值是否影响其子节点,默认值为 true。\n * @property cascadeOpacity\n * @deprecated since v2.0\n * @type {Boolean}\n */\n\n/**\n * !#en Cascade opacity is removed from v2.0\n * Returns whether node's opacity value affect its child nodes.\n * !#zh 透明度级联功能从 v2.0 开始已移除\n * 返回节点的不透明度值是否影响其子节点。\n * @method isCascadeOpacityEnabled\n * @deprecated since v2.0\n * @return {Boolean}\n */\n\n/**\n * !#en Cascade opacity is removed from v2.0\n * Enable or disable cascade opacity, if cascade enabled, child nodes' opacity will be the multiplication of parent opacity and its own opacity.\n * !#zh 透明度级联功能从 v2.0 开始已移除\n * 启用或禁用级连不透明度,如果级连启用,子节点的不透明度将是父不透明度乘上它自己的不透明度。\n * @method setCascadeOpacityEnabled\n * @deprecated since v2.0\n * @param {Boolean} cascadeOpacityEnabled\n */\n\n/**\n * !#en Opacity modify RGB have been removed since v2.0\n * Set whether color should be changed with the opacity value,\n * useless in ccsg.Node, but this function is override in some class to have such behavior.\n * !#zh 透明度影响颜色配置已经被废弃\n * 设置更改透明度时是否修改RGB值,\n * @method setOpacityModifyRGB\n * @deprecated since v2.0\n * @param {Boolean} opacityValue\n */\n\n/**\n * !#en Opacity modify RGB have been removed since v2.0\n * Get whether color should be changed with the opacity value.\n * !#zh 透明度影响颜色配置已经被废弃\n * 获取更改透明度时是否修改RGB值。\n * @method isOpacityModifyRGB\n * @deprecated since v2.0\n * @return {Boolean}\n */\n\n\nlet _p = Node.prototype;\njs.getset(_p, 'position', _p.getPosition, _p.setPosition, false, true);\n\nif (CC_EDITOR) {\n let vec3_tmp = new Vec3();\n cc.js.getset(_p, 'worldEulerAngles', function () {\n let angles = new Vec3(this._eulerAngles);\n let parent = this.parent;\n while (parent) {\n angles.addSelf(parent._eulerAngles);\n parent = parent.parent;\n }\n return angles;\n }, function (v) {\n vec3_tmp.set(v);\n let parent = this.parent;\n while (parent) {\n vec3_tmp.subSelf(parent._eulerAngles);\n parent = parent.parent;\n }\n this.eulerAngles = vec3_tmp;\n });\n}\n\ncc.Node = module.exports = Node;\n","/****************************************************************************\n Copyright (c) 2018 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n\n'use strict';\n\nconst Node = require('./CCNode');\nconst RenderFlow = require('./renderer/render-flow');\n\nconst HideInHierarchy = cc.Object.Flags.HideInHierarchy;\nconst LocalDirtyFlag = Node._LocalDirtyFlag;\nconst POSITION_ON = 1 << 0;\n\n/**\n * !#en\n * Class of private entities in Cocos Creator scenes.
\n * The PrivateNode is hidden in editor, and completely transparent to users.
\n * It's normally used as Node's private content created by components in parent node.
\n * So in theory private nodes are not children, they are part of the parent node.
\n * Private node have two important characteristics:
\n * 1. It has the minimum z index and cannot be modified, because they can't be displayed over real children.
\n * 2. The positioning of private nodes is also special, they will consider the left bottom corner of the parent node's bounding box as the origin of local coordinates.
\n * In this way, they can be easily kept inside the bounding box.
\n * Currently, it's used by RichText component and TileMap component.\n * !#zh\n * Cocos Creator 场景中的私有节点类。
\n * 私有节点在编辑器中不可见,对用户透明。
\n * 通常私有节点是被一些特殊的组件创建出来作为父节点的一部分而存在的,理论上来说,它们不是子节点,而是父节点的组成部分。
\n * 私有节点有两个非常重要的特性:
\n * 1. 它有着最小的渲染排序的 Z 轴深度,并且无法被更改,因为它们不能被显示在其他正常子节点之上。
\n * 2. 它的定位也是特殊的,对于私有节点来说,父节点包围盒的左下角是它的局部坐标系原点,这个原点相当于父节点的位置减去它锚点的偏移。这样私有节点可以比较容易被控制在包围盒之中。
\n * 目前在引擎中,RichText 和 TileMap 都有可能生成私有节点。\n * @class PrivateNode\n * @constructor\n * @param {String} name\n * @extends Node\n */\nlet PrivateNode = cc.Class({\n name: 'cc.PrivateNode',\n extends: Node,\n\n properties: {\n x: {\n get () {\n return this._originPos.x;\n },\n set (value) {\n var localPosition = this._originPos;\n if (value !== localPosition.x) {\n localPosition.x = value;\n this._posDirty(true);\n }\n },\n override: true\n },\n y: {\n get () {\n return this._originPos.y;\n },\n set (value) {\n var localPosition = this._originPos;\n if (value !== localPosition.y) {\n localPosition.y = value;\n this._posDirty(true);\n }\n },\n override: true\n },\n zIndex: {\n get () {\n return cc.macro.MIN_ZINDEX;\n },\n set () {\n },\n override: true\n },\n showInEditor: {\n default: false,\n editorOnly: true,\n override: true\n }\n },\n\n /**\n * @method constructor\n * @param {String} [name]\n */\n ctor (name) {\n this._localZOrder = cc.macro.MIN_ZINDEX << 16;\n this._originPos = cc.v2();\n if (CC_EDITOR) {\n this._objFlags |= HideInHierarchy;\n }\n },\n\n _posDirty (sendEvent) {\n this.setLocalDirty(LocalDirtyFlag.POSITION);\n !CC_NATIVERENDERER && (this._renderFlag |= RenderFlow.FLAG_TRANSFORM);\n if (sendEvent === true && (this._eventMask & POSITION_ON)) {\n this.emit(Node.EventType.POSITION_CHANGED);\n }\n },\n\n _updateLocalMatrix() {\n if (!this._localMatDirty) return;\n\n let parent = this.parent;\n if (parent) {\n // Position correction for transform calculation\n this._trs[0] = this._originPos.x - (parent._anchorPoint.x - 0.5) * parent._contentSize.width;\n this._trs[1] = this._originPos.y - (parent._anchorPoint.y - 0.5) * parent._contentSize.height;\n }\n\n this._super();\n },\n\n getPosition () {\n return new cc.Vec2(this._originPos);\n },\n\n setPosition (x, y) {\n if (y === undefined) {\n x = x.x;\n y = x.y;\n }\n\n let pos = this._originPos;\n if (pos.x === x && pos.y === y) {\n return;\n }\n pos.x = x;\n pos.y = y;\n this._posDirty(true);\n },\n\n setParent(value) {\n let oldParent = this._parent;\n this._super(value);\n if (oldParent !== value) {\n if (oldParent) {\n oldParent.off(Node.EventType.ANCHOR_CHANGED, this._posDirty, this);\n }\n if (value) {\n value.on(Node.EventType.ANCHOR_CHANGED, this._posDirty, this);\n }\n }\n },\n\n // do not update order of arrival\n _updateOrderOfArrival() {},\n});\n\nlet proto = PrivateNode.prototype;\ncc.js.getset(proto, \"parent\", proto.getParent, proto.setParent);\ncc.js.getset(proto, \"position\", proto.getPosition, proto.setPosition);\n\nif (CC_EDITOR) {\n // check components to avoid missing node reference serialied in previous version\n proto._onBatchCreated = function (dontSyncChildPrefab) {\n for (let comp of this._components) {\n comp.node = this;\n }\n\n Node.prototype._onBatchCreated.call(this, dontSyncChildPrefab);\n };\n}\n\ncc.PrivateNode = module.exports = PrivateNode;\n","/****************************************************************************\n Copyright (c) 2015-2016 Chukong Technologies Inc.\n Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.\n\n http://www.cocos2d-x.org\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in\n all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n\nvar NIL = function () {};\n\n/**\n * !#en\n * cc.Scene is a subclass of cc.Node that is used only as an abstract concept.
\n * cc.Scene and cc.Node are almost identical with the difference that users can not modify cc.Scene manually.\n * !#zh\n * cc.Scene 是 cc.Node 的子类,仅作为一个抽象的概念。
\n * cc.Scene 和 cc.Node 有点不同,用户不应直接修改 cc.Scene。\n * @class Scene\n * @extends Node\n */\ncc.Scene = cc.Class({\n name: 'cc.Scene',\n extends: require('./CCNode'),\n\n properties: {\n _is3DNode: {\n default: true,\n override: true\n },\n\n /**\n * !#en Indicates whether all (directly or indirectly) static referenced assets of this scene are releasable by default after scene unloading.\n * !#zh 指示该场景中直接或间接静态引用到的所有资源是否默认在场景切换后自动释放。\n * @property {Boolean} autoReleaseAssets\n * @default false\n */\n autoReleaseAssets: false,\n },\n\n ctor: function () {\n this._anchorPoint.x = 0.0;\n this._anchorPoint.y = 0.0;\n\n this._activeInHierarchy = false;\n this._inited = !cc.game._isCloning;\n\n if (CC_EDITOR) {\n this._prefabSyncedInLiveReload = false;\n }\n\n // cache all depend assets for auto release\n this.dependAssets = null;\n },\n\n destroy: function () {\n if (cc.Object.prototype.destroy.call(this)) {\n var children = this._children;\n for (var i = 0; i < children.length; ++i) {\n children[i].active = false;\n }\n }\n this._active = false;\n this._activeInHierarchy = false;\n },\n\n _onHierarchyChanged: NIL,\n _instantiate : null,\n\n _load: function () {\n if (!this._inited) {\n if (CC_TEST) {\n cc.assert(!this._activeInHierarchy, 'Should deactivate ActionManager and EventManager by default');\n }\n this._onBatchCreated(CC_EDITOR && this._prefabSyncedInLiveReload);\n this._inited = true;\n }\n },\n\n _activate: function (active) {\n active = (active !== false);\n if (CC_EDITOR || CC_TEST) {\n // register all nodes to editor\n this._registerIfAttached(active);\n }\n cc.director._nodeActivator.activateNode(this, active);\n }\n});\n\nmodule.exports = cc.Scene;\n","/****************************************************************************\n Copyright (c) 2013-2016 Chukong Technologies Inc.\n Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n\n/**\n * @module cc\n */\nconst js = require('./platform/js');\nconst IdGenerater = require('./platform/id-generater');\nconst MAX_POOL_SIZE = 20;\n\nvar idGenerater = new IdGenerater('Scheduler');\n\n//data structures\n/*\n * A list double-linked list used for \"updates with priority\"\n * @class ListEntry\n * @param {Object} target not retained (retained by hashUpdateEntry)\n * @param {Number} priority\n * @param {Boolean} paused\n * @param {Boolean} markedForDeletion selector will no longer be called and entry will be removed at end of the next tick\n */\nvar ListEntry = function (target, priority, paused, markedForDeletion) {\n this.target = target;\n this.priority = priority;\n this.paused = paused;\n this.markedForDeletion = markedForDeletion;\n};\n\nvar _listEntries = [];\nListEntry.get = function (target, priority, paused, markedForDeletion) {\n var result = _listEntries.pop();\n if (result) {\n result.target = target;\n result.priority = priority;\n result.paused = paused;\n result.markedForDeletion = markedForDeletion;\n }\n else {\n result = new ListEntry(target, priority, paused, markedForDeletion);\n }\n return result;\n};\nListEntry.put = function (entry) {\n if (_listEntries.length < MAX_POOL_SIZE) {\n entry.target = null;\n _listEntries.push(entry);\n }\n};\n\n/*\n * A update entry list\n * @class HashUpdateEntry\n * @param {Array} list Which list does it belong to ?\n * @param {ListEntry} entry entry in the list\n * @param {Object} target hash key (retained)\n * @param {function} callback\n */\nvar HashUpdateEntry = function (list, entry, target, callback) {\n this.list = list;\n this.entry = entry;\n this.target = target;\n this.callback = callback;\n};\nvar _hashUpdateEntries = [];\nHashUpdateEntry.get = function (list, entry, target, callback) {\n var result = _hashUpdateEntries.pop();\n if (result) {\n result.list = list;\n result.entry = entry;\n result.target = target;\n result.callback = callback;\n }\n else {\n result = new HashUpdateEntry(list, entry, target, callback);\n }\n return result;\n};\nHashUpdateEntry.put = function (entry) {\n if (_hashUpdateEntries.length < MAX_POOL_SIZE) {\n entry.list = entry.entry = entry.target = entry.callback = null;\n _hashUpdateEntries.push(entry);\n }\n};\n\n//\n/*\n * Hash Element used for \"selectors with interval\"\n * @class HashTimerEntry\n * @param {Array} timers\n * @param {Object} target hash key (retained)\n * @param {Number} timerIndex\n * @param {Timer} currentTimer\n * @param {Boolean} currentTimerSalvaged\n * @param {Boolean} paused\n */\nvar HashTimerEntry = function (timers, target, timerIndex, currentTimer, currentTimerSalvaged, paused) {\n var _t = this;\n _t.timers = timers;\n _t.target = target;\n _t.timerIndex = timerIndex;\n _t.currentTimer = currentTimer;\n _t.currentTimerSalvaged = currentTimerSalvaged;\n _t.paused = paused;\n};\nvar _hashTimerEntries = [];\nHashTimerEntry.get = function (timers, target, timerIndex, currentTimer, currentTimerSalvaged, paused) {\n var result = _hashTimerEntries.pop();\n if (result) {\n result.timers = timers;\n result.target = target;\n result.timerIndex = timerIndex;\n result.currentTimer = currentTimer;\n result.currentTimerSalvaged = currentTimerSalvaged;\n result.paused = paused;\n }\n else {\n result = new HashTimerEntry(timers, target, timerIndex, currentTimer, currentTimerSalvaged, paused);\n }\n return result;\n};\nHashTimerEntry.put = function (entry) {\n if (_hashTimerEntries.length < MAX_POOL_SIZE) {\n entry.timers = entry.target = entry.currentTimer = null;\n _hashTimerEntries.push(entry);\n }\n};\n\n/*\n * Light weight timer\n * @extends cc.Class\n */\nfunction CallbackTimer () {\n this._lock = false;\n this._scheduler = null;\n this._elapsed = -1;\n this._runForever = false;\n this._useDelay = false;\n this._timesExecuted = 0;\n this._repeat = 0;\n this._delay = 0;\n this._interval = 0;\n\n this._target = null;\n this._callback = null;\n}\n\nvar proto = CallbackTimer.prototype;\n\nproto.initWithCallback = function (scheduler, callback, target, seconds, repeat, delay) {\n this._lock = false;\n this._scheduler = scheduler;\n this._target = target;\n this._callback = callback;\n\n this._elapsed = -1;\n this._interval = seconds;\n this._delay = delay;\n this._useDelay = (this._delay > 0);\n this._repeat = repeat;\n this._runForever = (this._repeat === cc.macro.REPEAT_FOREVER);\n return true;\n};\n/**\n * @return {Number} returns interval of timer\n */\nproto.getInterval = function(){return this._interval;};\n/**\n * @param {Number} interval set interval in seconds\n */\nproto.setInterval = function(interval){this._interval = interval;};\n\n/**\n * triggers the timer\n * @param {Number} dt delta time\n */\nproto.update = function (dt) {\n if (this._elapsed === -1) {\n this._elapsed = 0;\n this._timesExecuted = 0;\n } else {\n this._elapsed += dt;\n if (this._runForever && !this._useDelay) {//standard timer usage\n if (this._elapsed >= this._interval) {\n this.trigger();\n this._elapsed = 0;\n }\n } else {//advanced usage\n if (this._useDelay) {\n if (this._elapsed >= this._delay) {\n this.trigger();\n\n this._elapsed -= this._delay;\n this._timesExecuted += 1;\n this._useDelay = false;\n }\n } else {\n if (this._elapsed >= this._interval) {\n this.trigger();\n\n this._elapsed = 0;\n this._timesExecuted += 1;\n }\n }\n\n if (this._callback && !this._runForever && this._timesExecuted > this._repeat)\n this.cancel();\n }\n }\n};\n\nproto.getCallback = function(){\n return this._callback;\n};\n\nproto.trigger = function () {\n if (this._target && this._callback) {\n this._lock = true;\n this._callback.call(this._target, this._elapsed);\n this._lock = false;\n }\n};\n\nproto.cancel = function () {\n //override\n this._scheduler.unschedule(this._callback, this._target);\n};\n\nvar _timers = [];\nCallbackTimer.get = function () {\n return _timers.pop() || new CallbackTimer();\n};\nCallbackTimer.put = function (timer) {\n if (_timers.length < MAX_POOL_SIZE && !timer._lock) {\n timer._scheduler = timer._target = timer._callback = null;\n _timers.push(timer);\n }\n};\n\n/**\n * !#en\n * Scheduler is responsible of triggering the scheduled callbacks.
\n * You should not use NSTimer. Instead use this class.
\n *
\n * There are 2 different types of callbacks (selectors):
\n * - update callback: the 'update' callback will be called every frame. You can customize the priority.
\n * - custom callback: A custom callback will be called every frame, or with a custom interval of time
\n *
\n * The 'custom selectors' should be avoided when possible. It is faster,\n * and consumes less memory to use the 'update callback'. *\n * !#zh\n * Scheduler 是负责触发回调函数的类。
\n * 通常情况下,建议使用 cc.director.getScheduler() 来获取系统定时器。
\n * 有两种不同类型的定时器:
\n * - update 定时器:每一帧都会触发。您可以自定义优先级。
\n * - 自定义定时器:自定义定时器可以每一帧或者自定义的时间间隔触发。
\n * 如果希望每帧都触发,应该使用 update 定时器,使用 update 定时器更快,而且消耗更少的内存。\n *\n * @class Scheduler\n */\ncc.Scheduler = function () {\n this._timeScale = 1.0;\n this._updatesNegList = []; // list of priority < 0\n this._updates0List = []; // list of priority == 0\n this._updatesPosList = []; // list of priority > 0\n this._hashForUpdates = js.createMap(true); // hash used to fetch quickly the list entries for pause, delete, etc\n this._hashForTimers = js.createMap(true); // Used for \"selectors with interval\"\n this._currentTarget = null;\n this._currentTargetSalvaged = false;\n this._updateHashLocked = false; // If true unschedule will not remove anything from a hash. Elements will only be marked for deletion.\n\n this._arrayForTimers = []; // Speed up indexing\n //this._arrayForUpdates = []; // Speed up indexing\n};\n\ncc.Scheduler.prototype = {\n constructor: cc.Scheduler,\n //-----------------------private method----------------------\n\n _removeHashElement: function (element) {\n delete this._hashForTimers[element.target._id];\n var arr = this._arrayForTimers;\n for (var i = 0, l = arr.length; i < l; i++) {\n if (arr[i] === element) {\n arr.splice(i, 1);\n break;\n }\n }\n HashTimerEntry.put(element);\n },\n\n _removeUpdateFromHash: function (entry) {\n var targetId = entry.target._id;\n var self = this, element = self._hashForUpdates[targetId];\n if (element) {\n // Remove list entry from list\n var list = element.list, listEntry = element.entry;\n for (var i = 0, l = list.length; i < l; i++) {\n if (list[i] === listEntry) {\n list.splice(i, 1);\n break;\n }\n }\n\n delete self._hashForUpdates[targetId];\n ListEntry.put(listEntry);\n HashUpdateEntry.put(element);\n }\n },\n\n _priorityIn: function (ppList, listElement, priority) {\n for (var i = 0; i < ppList.length; i++){\n if (priority < ppList[i].priority) {\n ppList.splice(i, 0, listElement);\n return;\n }\n }\n ppList.push(listElement);\n },\n\n _appendIn: function (ppList, listElement) {\n ppList.push(listElement);\n },\n\n //-----------------------public method-------------------------\n /**\n * !#en This method should be called for any target which needs to schedule tasks, and this method should be called before any scheduler API usage.\n * This method will add a `_id` property if it doesn't exist.\n * !#zh 任何需要用 Scheduler 管理任务的对象主体都应该调用这个方法,并且应该在调用任何 Scheduler API 之前调用这个方法。\n * 这个方法会给对象添加一个 `_id` 属性,如果这个属性不存在的话。\n * @method enableForTarget\n * @param {Object} target\n */\n enableForTarget: function (target) {\n if (!target._id) {\n if (target.__instanceId) {\n cc.warnID(1513);\n }\n else {\n target._id = idGenerater.getNewId();\n }\n }\n },\n\n /**\n * !#en\n * Modifies the time of all scheduled callbacks.
\n * You can use this property to create a 'slow motion' or 'fast forward' effect.
\n * Default is 1.0. To create a 'slow motion' effect, use values below 1.0.
\n * To create a 'fast forward' effect, use values higher than 1.0.
\n * Note:It will affect EVERY scheduled selector / action.\n * !#zh\n * 设置时间间隔的缩放比例。
\n * 您可以使用这个方法来创建一个 “slow motion(慢动作)” 或 “fast forward(快进)” 的效果。
\n * 默认是 1.0。要创建一个 “slow motion(慢动作)” 效果,使用值低于 1.0。
\n * 要使用 “fast forward(快进)” 效果,使用值大于 1.0。
\n * 注意:它影响该 Scheduler 下管理的所有定时器。\n * @method setTimeScale\n * @param {Number} timeScale\n */\n setTimeScale: function (timeScale) {\n this._timeScale = timeScale;\n },\n\n /**\n * !#en Returns time scale of scheduler.\n * !#zh 获取时间间隔的缩放比例。\n * @method getTimeScale\n * @return {Number}\n */\n getTimeScale: function () {\n return this._timeScale;\n },\n\n /**\n * !#en 'update' the scheduler. (You should NEVER call this method, unless you know what you are doing.)\n * !#zh update 调度函数。(不应该直接调用这个方法,除非完全了解这么做的结果)\n * @method update\n * @param {Number} dt delta time\n */\n update: function (dt) {\n this._updateHashLocked = true;\n if(this._timeScale !== 1)\n dt *= this._timeScale;\n\n var i, list, len, entry;\n\n for(i=0,list=this._updatesNegList, len = list.length; i\n * The scheduled method will be called every 'interval' seconds.
\n * If paused is YES, then it won't be called until it is resumed.
\n * If 'interval' is 0, it will be called every frame, but if so, it recommended to use 'scheduleUpdateForTarget:' instead.
\n * If the callback function is already scheduled, then only the interval parameter will be updated without re-scheduling it again.
\n * repeat let the action be repeated repeat + 1 times, use cc.macro.REPEAT_FOREVER to let the action run continuously
\n * delay is the amount of time the action will wait before it'll start
\n *

\n * !#zh\n * 指定回调函数,调用对象等信息来添加一个新的定时器。
\n * 如果 paused 值为 true,那么直到 resume 被调用才开始计时。
\n * 当时间间隔达到指定值时,设置的回调函数将会被调用。
\n * 如果 interval 值为 0,那么回调函数每一帧都会被调用,但如果是这样,\n * 建议使用 scheduleUpdateForTarget 代替。
\n * 如果回调函数已经被定时器使用,那么只会更新之前定时器的时间间隔参数,不会设置新的定时器。
\n * repeat 值可以让定时器触发 repeat + 1 次,使用 cc.macro.REPEAT_FOREVER\n * 可以让定时器一直循环触发。
\n * delay 值指定延迟时间,定时器会在延迟指定的时间之后开始计时。\n * @method schedule\n * @param {Function} callback\n * @param {Object} target\n * @param {Number} interval\n * @param {Number} [repeat=cc.macro.REPEAT_FOREVER]\n * @param {Number} [delay=0]\n * @param {Boolean} paused\n * @example {@link cocos2d/core/CCScheduler/schedule.js}\n * @typescript\n * schedule(callback: Function, target: any, interval: number, repeat: number, delay: number, paused?: boolean): void\n * schedule(callback: Function, target: any, interval: number, paused?: boolean): void\n */\n schedule: function (callback, target, interval, repeat, delay, paused) {\n 'use strict';\n if (typeof callback !== 'function') {\n var tmp = callback;\n callback = target;\n target = tmp;\n }\n //selector, target, interval, repeat, delay, paused\n //selector, target, interval, paused\n if (arguments.length === 4 || arguments.length === 5) {\n paused = !!repeat;\n repeat = cc.macro.REPEAT_FOREVER;\n delay = 0;\n }\n\n cc.assertID(target, 1502);\n\n var targetId = target._id;\n if (!targetId) {\n if (target.__instanceId) {\n cc.warnID(1513);\n targetId = target._id = target.__instanceId;\n }\n else {\n cc.errorID(1510);\n }\n }\n var element = this._hashForTimers[targetId];\n if (!element) {\n // Is this the 1st element ? Then set the pause level to all the callback_fns of this target\n element = HashTimerEntry.get(null, target, 0, null, null, paused);\n this._arrayForTimers.push(element);\n this._hashForTimers[targetId] = element;\n } else if (element.paused !== paused) {\n cc.warnID(1511);\n }\n\n var timer, i;\n if (element.timers == null) {\n element.timers = [];\n }\n else {\n for (i = 0; i < element.timers.length; ++i) {\n timer = element.timers[i];\n if (timer && callback === timer._callback) {\n cc.logID(1507, timer.getInterval(), interval);\n timer._interval = interval;\n return;\n }\n }\n }\n\n timer = CallbackTimer.get();\n timer.initWithCallback(this, callback, target, interval, repeat, delay);\n element.timers.push(timer);\n\n if (this._currentTarget === element && this._currentTargetSalvaged) {\n this._currentTargetSalvaged = false;\n }\n },\n\n /**\n * !#en\n * Schedules the update callback for a given target,\n * During every frame after schedule started, the \"update\" function of target will be invoked.\n * !#zh\n * 使用指定的优先级为指定的对象设置 update 定时器。\n * update 定时器每一帧都会被触发,触发时自动调用指定对象的 \"update\" 函数。\n * 优先级的值越低,定时器被触发的越早。\n * @method scheduleUpdate\n * @param {Object} target\n * @param {Number} priority\n * @param {Boolean} paused\n */\n scheduleUpdate: function(target, priority, paused) {\n var targetId = target._id;\n if (!targetId) {\n if (target.__instanceId) {\n cc.warnID(1513);\n targetId = target._id = target.__instanceId;\n }\n else {\n cc.errorID(1510);\n }\n }\n var hashElement = this._hashForUpdates[targetId];\n if (hashElement && hashElement.entry){\n // check if priority has changed\n if (hashElement.entry.priority !== priority){\n if (this._updateHashLocked){\n cc.logID(1506);\n hashElement.entry.markedForDeletion = false;\n hashElement.entry.paused = paused;\n return;\n }else{\n // will be added again outside if (hashElement).\n this.unscheduleUpdate(target);\n }\n }else{\n hashElement.entry.markedForDeletion = false;\n hashElement.entry.paused = paused;\n return;\n }\n }\n\n var listElement = ListEntry.get(target, priority, paused, false);\n var ppList;\n\n // most of the updates are going to be 0, that's way there\n // is an special list for updates with priority 0\n if (priority === 0) {\n ppList = this._updates0List;\n this._appendIn(ppList, listElement);\n }\n else {\n ppList = priority < 0 ? this._updatesNegList : this._updatesPosList;\n this._priorityIn(ppList, listElement, priority);\n }\n\n //update hash entry for quick access\n this._hashForUpdates[targetId] = HashUpdateEntry.get(ppList, listElement, target, null);\n },\n\n /**\n * !#en\n * Unschedules a callback for a callback and a given target.\n * If you want to unschedule the \"update\", use `unscheduleUpdate()`\n * !#zh\n * 取消指定对象定时器。\n * 如果需要取消 update 定时器,请使用 unscheduleUpdate()。\n * @method unschedule\n * @param {Function} callback The callback to be unscheduled\n * @param {Object} target The target bound to the callback.\n */\n unschedule: function (callback, target) {\n //callback, target\n\n // explicity handle nil arguments when removing an object\n if (!target || !callback)\n return;\n var targetId = target._id;\n if (!targetId) {\n if (target.__instanceId) {\n cc.warnID(1513);\n targetId = target._id = target.__instanceId;\n }\n else {\n cc.errorID(1510);\n }\n }\n\n var self = this, element = self._hashForTimers[targetId];\n if (element) {\n var timers = element.timers;\n for(var i = 0, li = timers.length; i < li; i++){\n var timer = timers[i];\n if (callback === timer._callback) {\n if ((timer === element.currentTimer) && (!element.currentTimerSalvaged)) {\n element.currentTimerSalvaged = true;\n }\n timers.splice(i, 1);\n CallbackTimer.put(timer);\n //update timerIndex in case we are in tick;, looping over the actions\n if (element.timerIndex >= i) {\n element.timerIndex--;\n }\n\n if (timers.length === 0) {\n if (self._currentTarget === element) {\n self._currentTargetSalvaged = true;\n } else {\n self._removeHashElement(element);\n }\n }\n return;\n }\n }\n }\n },\n\n /** \n * !#en Unschedules the update callback for a given target.\n * !#zh 取消指定对象的 update 定时器。\n * @method unscheduleUpdate\n * @param {Object} target The target to be unscheduled.\n */\n unscheduleUpdate: function (target) {\n if (!target)\n return;\n var targetId = target._id;\n if (!targetId) {\n if (target.__instanceId) {\n cc.warnID(1513);\n targetId = target._id = target.__instanceId;\n }\n else {\n cc.errorID(1510);\n }\n }\n\n var element = this._hashForUpdates[targetId];\n if (element) {\n if (this._updateHashLocked) {\n element.entry.markedForDeletion = true;\n } else {\n this._removeUpdateFromHash(element.entry);\n }\n }\n },\n\n /** \n * !#en\n * Unschedules all scheduled callbacks for a given target.\n * This also includes the \"update\" callback.\n * !#zh 取消指定对象的所有定时器,包括 update 定时器。\n * @method unscheduleAllForTarget\n * @param {Object} target The target to be unscheduled.\n */\n unscheduleAllForTarget: function (target) {\n // explicit nullptr handling\n if (!target){\n return;\n }\n var targetId = target._id;\n if (!targetId) {\n if (target.__instanceId) {\n cc.warnID(1513);\n targetId = target._id = target.__instanceId;\n }\n else {\n cc.errorID(1510);\n }\n }\n\n // Custom Selectors\n var element = this._hashForTimers[targetId];\n if (element) {\n var timers = element.timers;\n if (timers.indexOf(element.currentTimer) > -1 && \n (!element.currentTimerSalvaged)) {\n element.currentTimerSalvaged = true;\n }\n for (var i = 0, l = timers.length; i < l; i++) {\n CallbackTimer.put(timers[i]);\n }\n timers.length = 0;\n\n if (this._currentTarget === element){\n this._currentTargetSalvaged = true;\n }else{\n this._removeHashElement(element);\n }\n }\n\n // update selector\n this.unscheduleUpdate(target);\n },\n\n /**\n * !#en\n * Unschedules all scheduled callbacks from all targets including the system callbacks.
\n * You should NEVER call this method, unless you know what you are doing.\n * !#zh\n * 取消所有对象的所有定时器,包括系统定时器。
\n * 不要调用此函数,除非你确定你在做什么。\n * @method unscheduleAll\n */\n unscheduleAll: function(){\n this.unscheduleAllWithMinPriority(cc.Scheduler.PRIORITY_SYSTEM);\n },\n\n /**\n * !#en\n * Unschedules all callbacks from all targets with a minimum priority.
\n * You should only call this with `PRIORITY_NON_SYSTEM_MIN` or higher.\n * !#zh\n * 取消所有优先级的值大于指定优先级的定时器。
\n * 你应该只取消优先级的值大于 PRIORITY_NON_SYSTEM_MIN 的定时器。\n * @method unscheduleAllWithMinPriority\n * @param {Number} minPriority The minimum priority of selector to be unscheduled. Which means, all selectors which\n * priority is higher than minPriority will be unscheduled.\n */\n unscheduleAllWithMinPriority: function(minPriority){\n // Custom Selectors\n var i, element, arr = this._arrayForTimers;\n for(i=arr.length-1; i>=0; i--){\n element = arr[i];\n this.unscheduleAllForTarget(element.target);\n }\n\n // Updates selectors\n var entry;\n var temp_length = 0;\n if(minPriority < 0){\n for(i=0; i= minPriority)\n this.unscheduleUpdate(entry.target);\n if (temp_length == this._updatesNegList.length)\n i++;\n }\n }\n\n if(minPriority <= 0){\n for(i=0; i= minPriority)\n this.unscheduleUpdate(entry.target);\n if (temp_length == this._updatesPosList.length)\n i++;\n }\n },\n\n /** \n * !#en Checks whether a callback for a given target is scheduled.\n * !#zh 检查指定的回调函数和回调对象组合是否存在定时器。\n * @method isScheduled\n * @param {Function} callback The callback to check.\n * @param {Object} target The target of the callback.\n * @return {Boolean} True if the specified callback is invoked, false if not.\n */\n isScheduled: function(callback, target){\n //key, target\n //selector, target\n cc.assertID(callback, 1508);\n cc.assertID(target, 1509);\n var targetId = target._id;\n if (!targetId) {\n if (target.__instanceId) {\n cc.warnID(1513);\n targetId = target._id = target.__instanceId;\n }\n else {\n cc.errorID(1510);\n }\n }\n \n var element = this._hashForTimers[targetId];\n\n if (!element) {\n return false;\n }\n\n if (element.timers == null){\n return false;\n }\n else {\n var timers = element.timers;\n for (var i = 0; i < timers.length; ++i) {\n var timer = timers[i];\n\n if (callback === timer._callback){\n return true;\n }\n }\n return false;\n }\n },\n\n /**\n * !#en\n * Pause all selectors from all targets.
\n * You should NEVER call this method, unless you know what you are doing.\n * !#zh\n * 暂停所有对象的所有定时器。
\n * 不要调用这个方法,除非你知道你正在做什么。\n * @method pauseAllTargets\n */\n pauseAllTargets: function () {\n return this.pauseAllTargetsWithMinPriority(cc.Scheduler.PRIORITY_SYSTEM);\n },\n\n /**\n * !#en\n * Pause all selectors from all targets with a minimum priority.
\n * You should only call this with kCCPriorityNonSystemMin or higher.\n * !#zh\n * 暂停所有优先级的值大于指定优先级的定时器。
\n * 你应该只暂停优先级的值大于 PRIORITY_NON_SYSTEM_MIN 的定时器。\n * @method pauseAllTargetsWithMinPriority\n * @param {Number} minPriority\n */\n pauseAllTargetsWithMinPriority: function (minPriority) {\n var idsWithSelectors = [];\n\n var self = this, element, locArrayForTimers = self._arrayForTimers;\n var i, li;\n // Custom Selectors\n for(i = 0, li = locArrayForTimers.length; i < li; i++){\n element = locArrayForTimers[i];\n if (element) {\n element.paused = true;\n idsWithSelectors.push(element.target);\n }\n }\n\n var entry;\n if(minPriority < 0){\n for(i=0; i= minPriority){\n entry.paused = true;\n idsWithSelectors.push(entry.target);\n }\n }\n }\n }\n\n if(minPriority <= 0){\n for(i=0; i= minPriority){\n entry.paused = true;\n idsWithSelectors.push(entry.target);\n }\n }\n }\n\n return idsWithSelectors;\n },\n\n /**\n * !#en\n * Resume selectors on a set of targets.
\n * This can be useful for undoing a call to pauseAllCallbacks.\n * !#zh\n * 恢复指定数组中所有对象的定时器。
\n * 这个函数是 pauseAllCallbacks 的逆操作。\n * @method resumeTargets\n * @param {Array} targetsToResume\n */\n resumeTargets: function (targetsToResume) {\n if (!targetsToResume)\n return;\n\n for (var i = 0; i < targetsToResume.length; i++) {\n this.resumeTarget(targetsToResume[i]);\n }\n },\n\n /**\n * !#en\n * Pauses the target.
\n * All scheduled selectors/update for a given target won't be 'ticked' until the target is resumed.
\n * If the target is not present, nothing happens.\n * !#zh\n * 暂停指定对象的定时器。
\n * 指定对象的所有定时器都会被暂停。
\n * 如果指定的对象没有定时器,什么也不会发生。\n * @method pauseTarget\n * @param {Object} target\n */\n pauseTarget: function (target) {\n cc.assertID(target, 1503);\n var targetId = target._id;\n if (!targetId) {\n if (target.__instanceId) {\n cc.warnID(1513);\n targetId = target._id = target.__instanceId;\n }\n else {\n cc.errorID(1510);\n }\n }\n\n //customer selectors\n var self = this, \n element = self._hashForTimers[targetId];\n if (element) {\n element.paused = true;\n }\n\n //update callback\n var elementUpdate = self._hashForUpdates[targetId];\n if (elementUpdate) {\n elementUpdate.entry.paused = true;\n }\n },\n\n /**\n * !#en\n * Resumes the target.
\n * The 'target' will be unpaused, so all schedule selectors/update will be 'ticked' again.
\n * If the target is not present, nothing happens.\n * !#zh\n * 恢复指定对象的所有定时器。
\n * 指定对象的所有定时器将继续工作。
\n * 如果指定的对象没有定时器,什么也不会发生。\n * @method resumeTarget\n * @param {Object} target\n */\n resumeTarget: function (target) {\n cc.assertID(target, 1504);\n var targetId = target._id;\n if (!targetId) {\n if (target.__instanceId) {\n cc.warnID(1513);\n targetId = target._id = target.__instanceId;\n }\n else {\n cc.errorID(1510);\n }\n }\n\n // custom selectors\n var self = this,\n element = self._hashForTimers[targetId];\n if (element) {\n element.paused = false;\n }\n\n //update callback\n var elementUpdate = self._hashForUpdates[targetId];\n if (elementUpdate) {\n elementUpdate.entry.paused = false;\n }\n },\n\n /**\n * !#en Returns whether or not the target is paused.\n * !#zh 返回指定对象的定时器是否暂停了。\n * @method isTargetPaused\n * @param {Object} target\n * @return {Boolean}\n */\n isTargetPaused: function (target) {\n cc.assertID(target, 1505);\n var targetId = target._id;\n if (!targetId) {\n if (target.__instanceId) {\n cc.warnID(1513);\n targetId = target._id = target.__instanceId;\n }\n else {\n cc.errorID(1510);\n }\n }\n\n // Custom selectors\n var element = this._hashForTimers[targetId];\n if (element) {\n return element.paused;\n }\n var elementUpdate = this._hashForUpdates[targetId];\n if (elementUpdate) {\n return elementUpdate.entry.paused;\n }\n return false;\n },\n};\n\n/**\n * !#en Priority level reserved for system services.\n * !#zh 系统服务的优先级。\n * @property PRIORITY_SYSTEM\n * @type {Number}\n * @static\n */\ncc.Scheduler.PRIORITY_SYSTEM = 1 << 31;\n\n/**\n * !#en Minimum priority level for user scheduling.\n * !#zh 用户调度最低优先级。\n * @property PRIORITY_NON_SYSTEM\n * @type {Number}\n * @static\n */\ncc.Scheduler.PRIORITY_NON_SYSTEM = cc.Scheduler.PRIORITY_SYSTEM + 1;\n\nmodule.exports = cc.Scheduler;\n","/****************************************************************************\n Copyright (c) 2019 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n\nconst preprocess = require('./preprocess');\nconst fetch = require('./fetch');\nconst Cache = require('./cache');\nconst helper = require('./helper');\nconst releaseManager = require('./releaseManager');\nconst dependUtil = require('./depend-util');\nconst load = require('./load');\nconst Pipeline = require('./pipeline');\nconst Task = require('./task');\nconst RequestItem = require('./request-item');\nconst downloader = require('./downloader');\nconst parser = require('./parser');\nconst packManager = require('./pack-manager');\nconst Bundle = require('./bundle');\nconst builtins = require('./builtins');\nconst factory = require('./factory');\nconst { parse, combine } = require('./urlTransformer');\nconst { parseParameters, asyncify } = require('./utilities');\nconst { assets, files, parsed, pipeline, transformPipeline, fetchPipeline, RequestType, bundles, BuiltinBundleName } = require('./shared');\n\n\n/**\n * @module cc\n */\n/**\n * !#en\n * This module controls asset's behaviors and information, include loading, releasing etc. it is a singleton\n * All member can be accessed with `cc.assetManager`.\n * \n * !#zh\n * 此模块管理资源的行为和信息,包括加载,释放等,这是一个单例,所有成员能够通过 `cc.assetManager` 调用\n * \n * @class AssetManager\n */\nfunction AssetManager () {\n\n this._preprocessPipe = preprocess;\n\n this._fetchPipe = fetch;\n\n this._loadPipe = load;\n\n /**\n * !#en \n * Normal loading pipeline\n * \n * !#zh\n * 正常加载管线\n * \n * @property pipeline\n * @type {Pipeline}\n */\n this.pipeline = pipeline.append(preprocess).append(load);\n \n /**\n * !#en \n * Fetching pipeline\n * \n * !#zh\n * 下载管线\n * \n * @property fetchPipeline\n * @type {Pipeline}\n */\n this.fetchPipeline = fetchPipeline.append(preprocess).append(fetch);\n\n /**\n * !#en \n * Url transformer\n * \n * !#zh\n * Url 转换器\n * \n * @property transformPipeline\n * @type {Pipeline}\n */\n this.transformPipeline = transformPipeline.append(parse).append(combine);\n\n\n /**\n * !#en \n * The collection of bundle which is already loaded, you can remove cache with {{#crossLink \"AssetManager/removeBundle:method\"}}{{/crossLink}}\n * \n * !#zh\n * 已加载 bundle 的集合, 你能通过 {{#crossLink \"AssetManager/removeBundle:method\"}}{{/crossLink}} 来移除缓存\n * \n * @property bundles\n * @type {Cache}\n * @typescript\n * bundles: AssetManager.Cache\n */\n this.bundles = bundles;\n\n /**\n * !#en \n * The collection of asset which is already loaded, you can remove cache with {{#crossLink \"AssetManager/releaseAsset:method\"}}{{/crossLink}}\n * \n * !#zh\n * 已加载资源的集合, 你能通过 {{#crossLink \"AssetManager/releaseAsset:method\"}}{{/crossLink}} 来移除缓存\n * \n * @property assets\n * @type {Cache}\n * @typescript\n * assets: AssetManager.Cache\n */\n this.assets = assets;\n \n this._files = files;\n \n this._parsed = parsed;\n\n this.generalImportBase = '';\n\n this.generalNativeBase = '';\n\n /**\n * !#en \n * Manage relationship between asset and its dependencies\n * \n * !#zh\n * 管理资源依赖关系\n * \n * @property dependUtil\n * @type {DependUtil}\n */\n this.dependUtil = dependUtil;\n\n this._releaseManager = releaseManager;\n\n /**\n * !#en \n * Whether or not cache the loaded asset\n * \n * !#zh\n * 是否缓存已加载的资源\n * \n * @property cacheAsset\n * @type {boolean}\n */\n this.cacheAsset = true;\n\n /**\n * !#en \n * Whether or not load asset forcely, if it is true, asset will be loaded regardless of error\n * \n * !#zh\n * 是否强制加载资源, 如果为 true ,加载资源将会忽略报错\n * \n * @property force\n * @type {boolean}\n */\n this.force = false;\n\n /**\n * !#en \n * Some useful function\n * \n * !#zh\n * 一些有用的方法\n * \n * @property utils\n * @type {Helper}\n */\n this.utils = helper;\n\n /**\n * !#en \n * Manage all downloading task\n * \n * !#zh\n * 管理所有下载任务\n * \n * @property downloader\n * @type {Downloader}\n */\n this.downloader = downloader; \n\n /**\n * !#en \n * Manage all parsing task\n * \n * !#zh\n * 管理所有解析任务\n * \n * @property parser\n * @type {Parser}\n */\n this.parser = parser;\n\n /**\n * !#en \n * Manage internal asset\n * \n * !#zh\n * 管理内置资源\n * \n * @property builtins\n * @type {Builtins}\n */\n this.builtins = builtins;\n\n /**\n * !#en \n * Manage all packed asset\n * \n * !#zh\n * 管理所有合并后的资源\n * \n * @property packManager\n * @type {PackManager}\n */\n this.packManager = packManager;\n\n this.factory = factory;\n\n /**\n * !#en \n * Cache manager is a module which controls all caches downloaded from server in non-web platform.\n * \n * !#zh\n * 缓存管理器是一个模块,在非 WEB 平台上,用于管理所有从服务器上下载下来的缓存\n * \n * @property cacheManager\n * @type {cc.AssetManager.CacheManager}\n * @typescript\n * cacheManager: cc.AssetManager.CacheManager|null\n */\n this.cacheManager = null;\n\n /**\n * !#en \n * The preset of options\n * \n * !#zh\n * 可选参数的预设集\n * \n * @property presets\n * @type {Object}\n * @typescript\n * presets: Record>\n */\n this.presets = {\n 'default': {\n priority: 0,\n },\n\n 'preload': {\n maxConcurrency: 2, \n maxRequestsPerFrame: 2,\n priority: -1,\n },\n\n 'scene': {\n maxConcurrency: 8, \n maxRequestsPerFrame: 8,\n priority: 1,\n },\n\n 'bundle': {\n maxConcurrency: 8, \n maxRequestsPerFrame: 8,\n priority: 2,\n },\n\n 'remote': {\n maxRetryCount: 4\n },\n\n 'script': {\n maxConcurrency: 1024,\n maxRequestsPerFrame: 1024,\n priority: 2\n }\n }\n\n}\n\nAssetManager.Pipeline = Pipeline;\nAssetManager.Task = Task;\nAssetManager.Cache = Cache;\nAssetManager.RequestItem = RequestItem;\nAssetManager.Bundle = Bundle;\nAssetManager.BuiltinBundleName = BuiltinBundleName;\n\nAssetManager.prototype = {\n\n constructor: AssetManager,\n\n /**\n * !#en \n * The builtin 'main' bundle\n * \n * !#zh\n * 内置 main 包\n * \n * @property main\n * @readonly\n * @type {Bundle}\n */\n get main () {\n return bundles.get(BuiltinBundleName.MAIN);\n },\n\n /**\n * !#en \n * The builtin 'resources' bundle\n * \n * !#zh\n * 内置 resources 包\n * \n * @property resources\n * @readonly\n * @type {Bundle}\n */\n get resources () {\n return bundles.get(BuiltinBundleName.RESOURCES);\n },\n\n /**\n * !#en \n * The builtin 'internal' bundle\n * \n * !#zh\n * 内置 internal 包\n * \n * @property internal\n * @readonly\n * @type {Bundle}\n */\n get internal () {\n return bundles.get(BuiltinBundleName.INTERNAL);\n },\n\n /**\n * !#en\n * Initialize assetManager with options\n * \n * !#zh\n * 初始化资源管理器\n * \n * @method init\n * @param {Object} options \n * \n * @typescript\n * init(options: Record): void\n */\n init (options) {\n options = options || Object.create(null);\n this._files.clear();\n this._parsed.clear();\n this._releaseManager.init();\n this.assets.clear();\n this.bundles.clear();\n this.packManager.init();\n this.downloader.init(options.bundleVers, options.server);\n this.parser.init();\n this.dependUtil.init();\n this.generalImportBase = options.importBase;\n this.generalNativeBase = options.nativeBase;\n },\n\n /**\n * !#en \n * Get the bundle which has been loaded\n * \n * !#zh\n * 获取已加载的分包\n * \n * @method getBundle\n * @param {String} name - The name of bundle \n * @return {Bundle} - The loaded bundle\n * \n * @example\n * // ${project}/assets/test1\n * cc.assetManager.getBundle('test1');\n * \n * cc.assetManager.getBundle('resources');\n * \n * @typescript\n * getBundle (name: string): cc.AssetManager.Bundle\n */\n getBundle (name) {\n return bundles.get(name);\n },\n\n /**\n * !#en \n * Remove this bundle. NOTE: The asset whthin this bundle will not be released automatically, you can call {{#crossLink \"Bundle/releaseAll:method\"}}{{/crossLink}} manually before remove it if you need\n * \n * !#zh \n * 移除此包, 注意:这个包内的资源不会自动释放, 如果需要的话你可以在摧毁之前手动调用 {{#crossLink \"Bundle/releaseAll:method\"}}{{/crossLink}} 进行释放\n *\n * @method removeBundle\n * @param {Bundle} bundle - The bundle to be removed \n * \n * @typescript\n * removeBundle(bundle: cc.AssetManager.Bundle): void\n */\n removeBundle (bundle) {\n bundle._destroy();\n bundles.remove(bundle.name);\n },\n\n /**\n * !#en\n * General interface used to load assets with a progression callback and a complete callback. You can achieve almost all effect you want with combination of `requests` and `options`.\n * It is highly recommended that you use more simple API, such as `load`, `loadDir` etc. Every custom parameter in `options` will be distribute to each of `requests`. \n * if request already has same one, the parameter in request will be given priority. Besides, if request has dependencies, `options` will distribute to dependencies too.\n * Every custom parameter in `requests` will be tranfered to handler of `downloader` and `parser` as `options`. \n * You can register you own handler downloader or parser to collect these custom parameters for some effect.\n * \n * Reserved Keyword: `uuid`, `url`, `path`, `dir`, `scene`, `type`, `priority`, `preset`, `audioLoadMode`, `ext`, `bundle`, `onFileProgress`, `maxConcurrency`, `maxRequestsPerFrame`\n * `maxRetryCount`, `version`, `responseType`, `withCredentials`, `mimeType`, `timeout`, `header`, `reload`, `cacheAsset`, `cacheEnabled`,\n * Please DO NOT use these words as custom options!\n * \n * !#zh\n * 通用加载资源接口,可传入进度回调以及完成回调,通过组合 `request` 和 `options` 参数,几乎可以实现和扩展所有想要的加载效果。非常建议你使用更简单的API,例如 `load`、`loadDir` 等。\n * `options` 中的自定义参数将会分发到 `requests` 的每一项中,如果request中已存在同名的参数则以 `requests` 中为准,同时如果有其他\n * 依赖资源,则 `options` 中的参数会继续向依赖项中分发。request中的自定义参数都会以 `options` 形式传入加载流程中的 `downloader`, `parser` 的方法中, 你可以\n * 扩展 `downloader`, `parser` 收集参数完成想实现的效果。\n * \n * 保留关键字: `uuid`, `url`, `path`, `dir`, `scene`, `type`, `priority`, `preset`, `audioLoadMode`, `ext`, `bundle`, `onFileProgress`, `maxConcurrency`, `maxRequestsPerFrame`\n * `maxRetryCount`, `version`, `responseType`, `withCredentials`, `mimeType`, `timeout`, `header`, `reload`, `cacheAsset`, `cacheEnabled`,\n * 请不要使用这些字段为自定义参数!\n * \n * @method loadAny\n * @param {string|string[]|Object|Object[]} requests - The request you want to load\n * @param {Object} [options] - Optional parameters\n * @param {Function} [onProgress] - Callback invoked when progression change\n * @param {Number} onProgress.finished - The number of the items that are already completed\n * @param {Number} onProgress.total - The total number of the items\n * @param {RequestItem} onProgress.item - The current request item\n * @param {Function} [onComplete] - Callback invoked when finish loading\n * @param {Error} onComplete.err - The error occured in loading process.\n * @param {Object} onComplete.data - The loaded content\n * \n * @example\n * cc.assetManager.loadAny({url: 'http://example.com/a.png'}, (err, img) => cc.log(img));\n * cc.assetManager.loadAny(['60sVXiTH1D/6Aft4MRt9VC'], (err, assets) => cc.log(assets));\n * cc.assetManager.loadAny([{ uuid: '0cbZa5Y71CTZAccaIFluuZ'}, {url: 'http://example.com/a.png'}], (err, assets) => cc.log(assets));\n * cc.assetManager.downloader.register('.asset', (url, options, onComplete) => {\n * url += '?userName=' + options.userName + \"&password=\" + options.password;\n * cc.assetManager.downloader.downloadFile(url, null, onComplete);\n * });\n * cc.assetManager.parser.register('.asset', (file, options, onComplete) => {\n * var json = JSON.parse(file);\n * var skin = json[options.skin];\n * var model = json[options.model];\n * onComplete(null, {skin, model});\n * });\n * cc.assetManager.loadAny({ url: 'http://example.com/my.asset', skin: 'xxx', model: 'xxx', userName: 'xxx', password: 'xxx' });\n * \n * @typescript\n * loadAny(requests: string | string[] | Record | Record[], options: Record, onProgress: (finished: number, total: number, item: cc.AssetManager.RequestItem) => void, onComplete: (err: Error, data: any) => void): void\n * loadAny(requests: string | string[] | Record | Record[], onProgress: (finished: number, total: number, item: cc.AssetManager.RequestItem) => void, onComplete: (err: Error, data: any) => void): void\n * loadAny(requests: string | string[] | Record | Record[], options: Record, onComplete: (err: Error, data: any) => void): void\n * loadAny(requests: string | string[] | Record | Record[], onComplete: (err: Error, data: any) => void): void\n * loadAny(requests: string | string[] | Record | Record[], options: Record): void\n * loadAny(requests: string | string[] | Record | Record[]): void\n */\n loadAny (requests, options, onProgress, onComplete) {\n var { options, onProgress, onComplete } = parseParameters(options, onProgress, onComplete);\n \n options.preset = options.preset || 'default';\n requests = Array.isArray(requests) ? requests.concat() : requests;\n let task = new Task({input: requests, onProgress, onComplete: asyncify(onComplete), options});\n pipeline.async(task);\n },\n\n /**\n * !#en\n * General interface used to preload assets with a progression callback and a complete callback.It is highly recommended that you use more simple API, such as `preloadRes`, `preloadResDir` etc.\n * Everything about preload is just likes `cc.assetManager.loadAny`, the difference is `cc.assetManager.preloadAny` will only download asset but not parse asset. You need to invoke `cc.assetManager.loadAny(preloadTask)` \n * to finish loading asset\n * \n * !#zh\n * 通用预加载资源接口,可传入进度回调以及完成回调,非常建议你使用更简单的 API ,例如 `preloadRes`, `preloadResDir` 等。`preloadAny` 和 `loadAny` 几乎一样,区别在于 `preloadAny` 只会下载资源,不会去解析资源,你需要调用 `cc.assetManager.loadAny(preloadTask)`\n * 来完成资源加载。\n * \n * @method preloadAny\n * @param {string|string[]|Object|Object[]} requests - The request you want to preload\n * @param {Object} [options] - Optional parameters\n * @param {Function} [onProgress] - Callback invoked when progression change\n * @param {Number} onProgress.finished - The number of the items that are already completed\n * @param {Number} onProgress.total - The total number of the items\n * @param {RequestItem} onProgress.item - The current request item\n * @param {Function} [onComplete] - Callback invoked when finish preloading\n * @param {Error} onComplete.err - The error occured in preloading process.\n * @param {RequestItem[]} onComplete.items - The preloaded content\n * \n * @example\n * cc.assetManager.preloadAny('0cbZa5Y71CTZAccaIFluuZ', (err) => cc.assetManager.loadAny('0cbZa5Y71CTZAccaIFluuZ'));\n * \n * @typescript\n * preloadAny(requests: string | string[] | Record | Record[], options: Record, onProgress: (finished: number, total: number, item: cc.AssetManager.RequestItem) => void, onComplete: (err: Error, items: cc.AssetManager.RequestItem[]) => void): void\n * preloadAny(requests: string | string[] | Record | Record[], onProgress: (finished: number, total: number, item: cc.AssetManager.RequestItem) => void, onComplete: (err: Error, items: cc.AssetManager.RequestItem[]) => void): void\n * preloadAny(requests: string | string[] | Record | Record[], options: Record, onComplete: (err: Error, items: cc.AssetManager.RequestItem[]) => void): void\n * preloadAny(requests: string | string[] | Record | Record[], onComplete: (err: Error, items: cc.AssetManager.RequestItem[]) => void): void\n * preloadAny(requests: string | string[] | Record | Record[], options: Record): void\n * preloadAny(requests: string | string[] | Record | Record[]): void\n */\n preloadAny (requests, options, onProgress, onComplete) {\n var { options, onProgress, onComplete } = parseParameters(options, onProgress, onComplete);\n \n options.preset = options.preset || 'preload';\n requests = Array.isArray(requests) ? requests.concat() : requests;\n var task = new Task({input: requests, onProgress, onComplete: asyncify(onComplete), options});\n fetchPipeline.async(task);\n },\n\n /**\n * !#en\n * Load native file of asset, if you check the option 'Async Load Assets', you may need to load native file with this before you use the asset\n * \n * !#zh\n * 加载资源的原生文件,如果你勾选了'延迟加载资源'选项,你可能需要在使用资源之前调用此方法来加载原生文件\n * \n * @method postLoadNative\n * @param {Asset} asset - The asset\n * @param {Object} [options] - Some optional parameters\n * @param {Function} [onComplete] - Callback invoked when finish loading\n * @param {Error} onComplete.err - The error occured in loading process.\n * \n * @example\n * cc.assetManager.postLoadNative(texture, (err) => console.log(err));\n * \n * @typescript\n * postLoadNative(asset: cc.Asset, options: Record, onComplete: (err: Error) => void): void\n * postLoadNative(asset: cc.Asset, onComplete: (err: Error) => void): void\n * postLoadNative(asset: cc.Asset, options: Record): void\n * postLoadNative(asset: cc.Asset): void\n */\n postLoadNative (asset, options, onComplete) {\n if (!(asset instanceof cc.Asset)) throw new Error('input is not asset');\n var { options, onComplete } = parseParameters(options, undefined, onComplete);\n\n if (!asset._native || asset._nativeAsset) {\n return asyncify(onComplete)(null);\n }\n\n var depend = dependUtil.getNativeDep(asset._uuid);\n if (depend) {\n if (!bundles.has(depend.bundle)) {\n var bundle = bundles.find(function (bundle) {\n return bundle.getAssetInfo(asset._uuid);\n });\n if (bundle) {\n depend.bundle = bundle.name;\n }\n }\n \n this.loadAny(depend, options, function (err, native) {\n if (!err) {\n if (asset.isValid && !asset._nativeAsset) {\n asset._nativeAsset = native\n }\n }\n else {\n cc.error(err.message, err.stack);\n }\n onComplete && onComplete(err);\n });\n }\n },\n\n /**\n * !#en\n * Load remote asset with url, such as audio, image, text and so on.\n * \n * !#zh\n * 使用 url 加载远程资源,例如音频,图片,文本等等。\n * \n * @method loadRemote\n * @param {string} url - The url of asset\n * @param {Object} [options] - Some optional parameters\n * @param {cc.AudioClip.LoadMode} [options.audioLoadMode] - Indicate which mode audio you want to load\n * @param {string} [options.ext] - If the url does not have a extension name, you can specify one manually.\n * @param {Function} [onComplete] - Callback invoked when finish loading\n * @param {Error} onComplete.err - The error occured in loading process.\n * @param {Asset} onComplete.asset - The loaded texture\n * \n * @example\n * cc.assetManager.loadRemote('http://www.cloud.com/test1.jpg', (err, texture) => console.log(err));\n * cc.assetManager.loadRemote('http://www.cloud.com/test2.mp3', (err, audioClip) => console.log(err));\n * cc.assetManager.loadRemote('http://www.cloud.com/test3', { ext: '.png' }, (err, texture) => console.log(err));\n * \n * @typescript\n * loadRemote(url: string, options: Record, onComplete: (err: Error, asset: T) => void): void\n * loadRemote(url: string, onComplete: (err: Error, asset: T) => void): void\n * loadRemote(url: string, options: Record): void\n * loadRemote(url: string): void\n */\n loadRemote (url, options, onComplete) {\n var { options, onComplete } = parseParameters(options, undefined, onComplete);\n\n if (this.assets.has(url)) {\n return asyncify(onComplete)(null, this.assets.get(url));\n }\n\n options.__isNative__ = true;\n options.preset = options.preset || 'remote';\n this.loadAny({url}, options, null, function (err, data) {\n if (err) {\n cc.error(err.message, err.stack);\n onComplete && onComplete(err, null);\n }\n else {\n factory.create(url, data, options.ext || cc.path.extname(url), options, function (err, out) {\n onComplete && onComplete(err, out);\n });\n }\n });\n },\n\n /**\n * !#en\n * Load script \n * \n * !#zh\n * 加载脚本\n * \n * @method loadScript\n * @param {string|string[]} url - Url of the script\n * @param {Object} [options] - Some optional paramters\n * @param {boolean} [options.async] - Indicate whether or not loading process should be async\n * @param {Function} [onComplete] - Callback when script loaded or failed\n * @param {Error} onComplete.err - The occurred error, null indicetes success\n * \n * @example\n * loadScript('http://localhost:8080/index.js', null, (err) => console.log(err));\n * \n * @typescript\n * loadScript(url: string|string[], options: Record, onComplete: (err: Error) => void): void\n * loadScript(url: string|string[], onComplete: (err: Error) => void): void\n * loadScript(url: string|string[], options: Record): void\n * loadScript(url: string|string[]): void\n */\n loadScript (url, options, onComplete) {\n var { options, onComplete } = parseParameters(options, undefined, onComplete);\n options.__requestType__ = RequestType.URL;\n options.preset = options.preset || 'script';\n this.loadAny(url, options, onComplete);\n },\n\n /**\n * !#en\n * load bundle\n * \n * !#zh\n * 加载资源包\n * \n * @method loadBundle\n * @param {string} nameOrUrl - The name or root path of bundle\n * @param {Object} [options] - Some optional paramter, same like downloader.downloadFile\n * @param {string} [options.version] - The version of this bundle, you can check config.json in this bundle\n * @param {Function} [onComplete] - Callback when bundle loaded or failed\n * @param {Error} onComplete.err - The occurred error, null indicetes success\n * @param {Bundle} onComplete.bundle - The loaded bundle\n * \n * @example\n * loadBundle('http://localhost:8080/test', null, (err, bundle) => console.log(err));\n * \n * @typescript\n * loadBundle(nameOrUrl: string, options: Record, onComplete: (err: Error, bundle: cc.AssetManager.Bundle) => void): void\n * loadBundle(nameOrUrl: string, onComplete: (err: Error, bundle: cc.AssetManager.Bundle) => void): void\n * loadBundle(nameOrUrl: string, options: Record): void\n * loadBundle(nameOrUrl: string): void\n */\n loadBundle (nameOrUrl, options, onComplete) {\n var { options, onComplete } = parseParameters(options, undefined, onComplete);\n\n let bundleName = cc.path.basename(nameOrUrl);\n\n if (this.bundles.has(bundleName)) {\n return asyncify(onComplete)(null, this.getBundle(bundleName));\n }\n\n options.preset = options.preset || 'bundle';\n options.ext = 'bundle';\n this.loadRemote(nameOrUrl, options, onComplete);\n },\n\n /**\n * !#en\n * Release asset and it's dependencies.\n * This method will not only remove the cache of the asset in assetManager, but also clean up its content.\n * For example, if you release a texture, the texture asset and its gl texture data will be freed up.\n * Notice, this method may cause the texture to be unusable, if there are still other nodes use the same texture, they may turn to black and report gl errors.\n * \n * !#zh\n * 释放资源以及其依赖资源, 这个方法不仅会从 assetManager 中删除资源的缓存引用,还会清理它的资源内容。\n * 比如说,当你释放一个 texture 资源,这个 texture 和它的 gl 贴图数据都会被释放。\n * 注意,这个函数可能会导致资源贴图或资源所依赖的贴图不可用,如果场景中存在节点仍然依赖同样的贴图,它们可能会变黑并报 GL 错误。\n *\n * @method releaseAsset\n * @param {Asset} asset - The asset to be released\n * \n * @example\n * // release a texture which is no longer need\n * cc.assetManager.releaseAsset(texture);\n *\n * @typescript\n * releaseAsset(asset: cc.Asset): void\n */\n releaseAsset (asset) {\n releaseManager.tryRelease(asset, true);\n },\n\n /**\n * !#en \n * Release all unused assets. Refer to {{#crossLink \"AssetManager/releaseAsset:method\"}}{{/crossLink}} for detailed informations.\n * \n * !#zh \n * 释放所有没有用到的资源。详细信息请参考 {{#crossLink \"AssetManager/releaseAsset:method\"}}{{/crossLink}}\n *\n * @method releaseUnusedAssets\n * @private\n * \n * @typescript\n * releaseUnusedAssets(): void\n */\n releaseUnusedAssets () {\n assets.forEach(function (asset) {\n releaseManager.tryRelease(asset);\n });\n },\n\n /**\n * !#en \n * Release all assets. Refer to {{#crossLink \"AssetManager/releaseAsset:method\"}}{{/crossLink}} for detailed informations.\n * \n * !#zh \n * 释放所有资源。详细信息请参考 {{#crossLink \"AssetManager/releaseAsset:method\"}}{{/crossLink}}\n *\n * @method releaseAll\n * \n * @typescript\n * releaseAll(): void\n */\n releaseAll () {\n assets.forEach(function (asset) {\n releaseManager.tryRelease(asset, true);\n });\n },\n\n _transform (input, options) {\n var subTask = Task.create({input, options});\n var urls = [];\n try {\n var result = transformPipeline.sync(subTask);\n for (var i = 0, l = result.length; i < l; i++) {\n var item = result[i];\n var url = item.url;\n item.recycle();\n urls.push(url);\n }\n }\n catch (e) {\n for (var i = 0, l = subTask.output.length; i < l; i++) {\n subTask.output[i].recycle();\n }\n cc.error(e.message, e.stack);\n }\n subTask.recycle();\n return urls.length > 1 ? urls : urls[0];\n }\n};\n\ncc.AssetManager = AssetManager;\n/**\n * @module cc\n */\n/**\n * @property assetManager\n * @type {AssetManager}\n */\ncc.assetManager = new AssetManager();\n\nObject.defineProperty(cc, 'resources', {\n /**\n * !#en\n * cc.resources is a bundle and controls all asset under assets/resources\n * \n * !#zh\n * cc.resources 是一个 bundle,用于管理所有在 assets/resources 下的资源\n * \n * @property resources\n * @readonly\n * @type {AssetManager.Bundle}\n */\n get () {\n return bundles.get(BuiltinBundleName.RESOURCES);\n }\n});\n\n\nmodule.exports = cc.assetManager;\n\n/**\n * !#en\n * This module controls asset's behaviors and information, include loading, releasing etc. \n * All member can be accessed with `cc.assetManager`. All class or enum can be accessed with `cc.AssetManager`\n * \n * !#zh\n * 此模块管理资源的行为和信息,包括加载,释放等,所有成员能够通过 `cc.assetManager` 调用. 所有类型或枚举能通过 `cc.AssetManager` 访问\n * \n * @module cc.AssetManager\n */","/****************************************************************************\n Copyright (c) 2019 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\nconst Cache = require('./cache');\nconst releaseManager = require('./releaseManager');\nconst { BuiltinBundleName } = require('./shared'); \n\n/**\n * @module cc.AssetManager\n */\n/**\n * !#en\n * This module contains the builtin asset, it's a singleton, all member can be accessed with `cc.assetManager.builtins` \n * \n * !#zh\n * 此模块包含内建资源,这是一个单例,所有成员能通过 `cc.assetManager.builtins` 访问\n * \n * @class Builtins\n */\nvar builtins = {\n \n _assets: new Cache({ material: new Cache(), effect: new Cache() }), // builtin assets\n\n _loadBuiltins (name, cb) {\n let dirname = name + 's';\n let builtin = this._assets.get(name);\n return cc.assetManager.internal.loadDir(dirname, null, null, (err, assets) => {\n if (err) {\n cc.error(err.message, err.stack);\n }\n else {\n for (let i = 0; i < assets.length; i++) {\n var asset = assets[i];\n builtin.add(asset.name, asset.addRef());\n }\n }\n\n cb();\n });\n },\n\n /**\n * !#en\n * Initialize\n * \n * !#zh\n * 初始化 \n * \n * @method init\n * @param {Function} cb - Callback when finish loading built-in assets\n * \n * @typescript\n * init (cb: () => void): void\n */\n init (cb) {\n this.clear();\n if (cc.game.renderType === cc.game.RENDER_TYPE_CANVAS || !cc.assetManager.bundles.has(BuiltinBundleName.INTERNAL)) {\n return cb && cb();\n }\n\n this._loadBuiltins('effect', () => {\n this._loadBuiltins('material', () => {\n this._loadBuiltinsSP(cb);\n });\n });\n },\n\n _loadBuiltinsSP(cb) {\n cc.sp.MAX_MULTITEXTURE_NUM = 8;\n // cc.renderer.device.caps.maxTextureUnits\n\n this._loadMultiEffect('multi-2d-sprite', (effect) => {\n cc.sp.multi2dSpriteEffectAsset = effect;\n effect.addRef();\n cc.sp.inited = true;\n cc.sp.multiBatcher.init();\n if (cc.dynamicAtlasManager.maxAtlasCount === -1) cc.dynamicAtlasManager.maxAtlasCount = Math.max(0, cc.sp.MAX_MULTITEXTURE_NUM - cc.sp.charAtlasAutoBatchCount);\n cb();\n });\n },\n\n _loadMultiEffect(name, cb) {\n if (CC_EDITOR) {\n cc.assetManager.loadAny(Editor.assetdb.remote.urlToUuid('db://service-pack-resources/sp/effects/' + name + '.effect'), function (err, effect) {\n if (err) {\n return Editor.error(err);\n } else {\n cb(effect);\n }\n });\n } else {\n cc.assetManager.loadBundle('sp', (err, bundle) => {\n if (err) {\n cc.error(err);\n } else {\n bundle.load('effects/' + name, cc.EffectAsset, (err, effect) => {\n if (err) {\n cc.error(err);\n } else {\n cb(effect);\n }\n });\n }\n });\n }\n },\n\n /**\n * !#en\n * Get the built-in asset using specific type and name.\n * \n * !#zh\n * 通过特定的类型和名称获取内建资源\n * \n * @method getBuiltin\n * @param {string} [type] - The type of asset, such as `effect`\n * @param {string} [name] - The name of asset, such as `phong`\n * @return {Asset|Cache} Builtin-assets\n * \n * @example\n * cc.assetManaer.builtins.getBuiltin('effect', 'phone');\n * \n * @typescript\n * getBuiltin(type?: string, name?: string): cc.Asset | Cache\n */\n getBuiltin (type, name) {\n if (arguments.length === 0) return this._assets;\n else if (arguments.length === 1) return this._assets.get(type);\n else return this._assets.get(type).get(name);\n },\n\n /**\n * !#en\n * Clear all builtin assets\n * \n * !#zh\n * 清空所有内置资源\n * \n * @method clear\n * \n * @typescript\n * clear(): void\n */\n clear () {\n this._assets.forEach(function (assets) {\n assets.forEach(function (asset) {\n releaseManager.tryRelease(asset, true);\n });\n assets.clear();\n });\n }\n}\n\nmodule.exports = builtins;\n","/****************************************************************************\n Copyright (c) 2019 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\nconst Config = require('./config');\nconst releaseManager = require('./releaseManager');\nconst { parseParameters, parseLoadResArgs } = require('./utilities');\nconst { RequestType, assets, bundles } = require('./shared');\n\n/**\n * @module cc.AssetManager\n */\n\n/**\n * !#en\n * A bundle contains an amount of assets(includes scene), you can load, preload, release asset which is in this bundle\n * \n * !#zh\n * 一个包含一定数量资源(包括场景)的包,你可以加载,预加载,释放此包内的资源\n * \n * @class Bundle\n */\nfunction Bundle () {\n this._config = new Config();\n}\n\nBundle.prototype = {\n \n /**\n * !#en\n * Create a bundle\n * \n * !#zh\n * 创建一个 bundle\n * \n * @method constructor\n * \n * @typescript\n * constructor()\n */\n constructor: Bundle,\n\n /**\n * !#en\n * The name of this bundle\n * \n * !#zh\n * 此 bundle 的名称\n * \n * @property name\n * @type {string}\n */\n get name () {\n return this._config.name;\n },\n\n /**\n * !#en\n * The dependency of this bundle\n * \n * !#zh\n * 此 bundle 的依赖\n * \n * @property deps\n * @type {string[]}\n */\n get deps () {\n return this._config.deps;\n },\n\n /**\n * !#en\n * The root path of this bundle, such like 'http://example.com/bundle1'\n * \n * !#zh\n * 此 bundle 的根路径, 例如 'http://example.com/bundle1'\n * \n * @property base\n * @type {string}\n */\n get base () {\n return this._config.base;\n },\n\n /**\n * !#en\n * Get asset's info using path, only valid when asset is in bundle folder.\n * \n * !#zh\n * 使用 path 获取资源的配置信息\n * \n * @method getInfoWithPath\n * @param {string} path - The relative path of asset, such as 'images/a'\n * @param {Function} [type] - The constructor of asset, such as `cc.Texture2D`\n * @returns {Object} The asset info \n * \n * @example\n * var info = bundle.getInfoWithPath('image/a', cc.Texture2D);\n * \n * @typescript\n * getInfoWithPath (path: string, type?: typeof cc.Asset): Record\n */\n getInfoWithPath (path, type) {\n return this._config.getInfoWithPath(path, type);\n },\n\n /**\n * !#en\n * Get all asset's info within specific folder\n * \n * !#zh\n * 获取在某个指定文件夹下的所有资源信息\n * \n * @method getDirWithPath\n * @param {string} path - The relative path of folder, such as 'images'\n * @param {Function} [type] - The constructor should be used to filter paths\n * @param {Array} [out] - The output array\n * @returns {Object[]} Infos\n * \n * @example \n * var infos = [];\n * bundle.getDirWithPath('images', cc.Texture2D, infos);\n * \n * @typescript\n * getDirWithPath (path: string, type: typeof cc.Asset, out: Array>): Array>\n * getDirWithPath (path: string, type: typeof cc.Asset): Array>\n * getDirWithPath (path: string): Array>\n */\n getDirWithPath (path, type, out) {\n return this._config.getDirWithPath(path, type, out);\n },\n\n /**\n * !#en\n * Get asset's info with uuid\n * \n * !#zh\n * 通过 uuid 获取资源信息\n * \n * @method getAssetInfo\n * @param {string} uuid - The asset's uuid\n * @returns {Object} info \n * \n * @example\n * var info = bundle.getAssetInfo('fcmR3XADNLgJ1ByKhqcC5Z');\n * \n * @typescript\n * getAssetInfo (uuid: string): Record\n */\n getAssetInfo (uuid) {\n return this._config.getAssetInfo(uuid);\n },\n\n /**\n * !#en\n * Get scene'info with name\n * \n * !#zh\n * 通过场景名获取场景信息\n * \n * @method getSceneInfo\n * @param {string} name - The name of scene\n * @return {Object} info\n * \n * @example\n * var info = bundle.getSceneInfo('first.fire');\n * \n * @typescript\n * getSceneInfo(name: string): Record\n */\n getSceneInfo (name) {\n return this._config.getSceneInfo(name);\n },\n\n /**\n * !#en\n * Initialize this bundle with options\n * \n * !#zh\n * 初始化此 bundle\n * \n * @method init\n * @param {Object} options \n * \n * @typescript\n * init(options: Record): void\n */\n init (options) {\n this._config.init(options);\n bundles.add(options.name, this);\n },\n\n /**\n * !#en\n * Load the asset within this bundle by the path which is relative to bundle's path\n * \n * !#zh\n * 通过相对路径加载分包中的资源。路径是相对分包文件夹路径的相对路径\n *\n * @method load\n * @param {String|String[]} paths - Paths of the target assets.The path is relative to the bundle's folder, extensions must be omitted.\n * @param {Function} [type] - Only asset of type will be loaded if this argument is supplied.\n * @param {Function} [onProgress] - Callback invoked when progression change.\n * @param {Number} onProgress.finish - The number of the items that are already completed.\n * @param {Number} onProgress.total - The total number of the items.\n * @param {RequestItem} onProgress.item - The finished request item.\n * @param {Function} [onComplete] - Callback invoked when all assets loaded.\n * @param {Error} onComplete.error - The error info or null if loaded successfully.\n * @param {Asset|Asset[]} onComplete.assets - The loaded assets.\n *\n * @example\n * // load the texture (${project}/assets/resources/textures/background.jpg) from resources\n * cc.resources.load('textures/background', cc.Texture2D, (err, texture) => console.log(err));\n * \n * // load the audio (${project}/assets/resources/music/hit.mp3) from resources\n * cc.resources.load('music/hit', cc.AudioClip, (err, audio) => console.log(err));\n * \n * // load the prefab (${project}/assets/bundle1/misc/character/cocos) from bundle1 folder\n * bundle1.load('misc/character/cocos', cc.Prefab, (err, prefab) => console.log(err));\n *\n * // load the sprite frame (${project}/assets/some/xxx/bundle2/imgs/cocos.png) from bundle2 folder\n * bundle2.load('imgs/cocos', cc.SpriteFrame, null, (err, spriteFrame) => console.log(err));\n * \n * @typescript\n * load(paths: string, type: typeof cc.Asset, onProgress: (finish: number, total: number, item: RequestItem) => void, onComplete: (error: Error, assets: T) => void): void\n * load(paths: string[], type: typeof cc.Asset, onProgress: (finish: number, total: number, item: RequestItem) => void, onComplete: (error: Error, assets: Array) => void): void\n * load(paths: string, onProgress: (finish: number, total: number, item: RequestItem) => void, onComplete: (error: Error, assets: T) => void): void\n * load(paths: string[], onProgress: (finish: number, total: number, item: RequestItem) => void, onComplete: (error: Error, assets: Array) => void): void\n * load(paths: string, type: typeof cc.Asset, onComplete?: (error: Error, assets: T) => void): void\n * load(paths: string[], type: typeof cc.Asset, onComplete?: (error: Error, assets: Array) => void): void\n * load(paths: string, onComplete?: (error: Error, assets: T) => void): void\n * load(paths: string[], onComplete?: (error: Error, assets: Array) => void): void\n */\n load (paths, type, onProgress, onComplete) {\n var { type, onProgress, onComplete } = parseLoadResArgs(type, onProgress, onComplete);\n cc.assetManager.loadAny(paths, { __requestType__: RequestType.PATH, type: type, bundle: this.name, __outputAsArray__: Array.isArray(paths) }, onProgress, onComplete);\n },\n\n /**\n * !#en\n * Preload the asset within this bundle by the path which is relative to bundle's path. \n * After calling this method, you still need to finish loading by calling `Bundle.load`.\n * It will be totally fine to call `Bundle.load` at any time even if the preloading is not\n * yet finished\n * \n * !#zh\n * 通过相对路径预加载分包中的资源。路径是相对分包文件夹路径的相对路径。调用完后,你仍然需要通过 `Bundle.load` 来完成加载。\n * 就算预加载还没完成,你也可以直接调用 `Bundle.load`。\n *\n * @method preload\n * @param {String|String[]} paths - Paths of the target asset.The path is relative to bundle folder, extensions must be omitted.\n * @param {Function} [type] - Only asset of type will be loaded if this argument is supplied.\n * @param {Function} [onProgress] - Callback invoked when progression change.\n * @param {Number} onProgress.finish - The number of the items that are already completed.\n * @param {Number} onProgress.total - The total number of the items.\n * @param {RequestItem} onProgress.item - The finished request item.\n * @param {Function} [onComplete] - Callback invoked when the resource loaded.\n * @param {Error} onComplete.error - The error info or null if loaded successfully.\n * @param {RequestItem[]} onComplete.items - The preloaded items.\n * \n * @example\n * // preload the texture (${project}/assets/resources/textures/background.jpg) from resources\n * cc.resources.preload('textures/background', cc.Texture2D);\n * \n * // preload the audio (${project}/assets/resources/music/hit.mp3) from resources\n * cc.resources.preload('music/hit', cc.AudioClip);\n * // wait for while\n * cc.resources.load('music/hit', cc.AudioClip, (err, audioClip) => {});\n * \n * * // preload the prefab (${project}/assets/bundle1/misc/character/cocos) from bundle1 folder\n * bundle1.preload('misc/character/cocos', cc.Prefab);\n *\n * // load the sprite frame of (${project}/assets/bundle2/imgs/cocos.png) from bundle2 folder\n * bundle2.preload('imgs/cocos', cc.SpriteFrame);\n * // wait for while\n * bundle2.load('imgs/cocos', cc.SpriteFrame, (err, spriteFrame) => {});\n * \n * @typescript\n * preload(paths: string|string[], type: typeof cc.Asset, onProgress: (finish: number, total: number, item: RequestItem) => void, onComplete: (error: Error, items: RequestItem[]) => void): void\n * preload(paths: string|string[], onProgress: (finish: number, total: number, item: RequestItem) => void, onComplete: (error: Error, items: RequestItem[]) => void): void\n * preload(paths: string|string[], type: typeof cc.Asset, onComplete: (error: Error, items: RequestItem[]) => void): void\n * preload(paths: string|string[], type: typeof cc.Asset): void\n * preload(paths: string|string[], onComplete: (error: Error, items: RequestItem[]) => void): void\n * preload(paths: string|string[]): void\n */\n preload (paths, type, onProgress, onComplete) {\n var { type, onProgress, onComplete } = parseLoadResArgs(type, onProgress, onComplete);\n cc.assetManager.preloadAny(paths, { __requestType__: RequestType.PATH, type: type, bundle: this.name }, onProgress, onComplete);\n },\n\n /**\n * !#en\n * Load all assets under a folder inside the bundle folder.
\n *
\n * Note: All asset paths in Creator use forward slashes, paths using backslashes will not work.\n * \n * !#zh\n * 加载目标文件夹中的所有资源, 注意:路径中只能使用斜杠,反斜杠将停止工作\n *\n * @method loadDir\n * @param {string} dir - path of the target folder.The path is relative to the bundle folder, extensions must be omitted.\n * @param {Function} [type] - Only asset of type will be loaded if this argument is supplied.\n * @param {Function} [onProgress] - Callback invoked when progression change.\n * @param {Number} onProgress.finish - The number of the items that are already completed.\n * @param {Number} onProgress.total - The total number of the items.\n * @param {Object} onProgress.item - The latest request item\n * @param {Function} [onComplete] - A callback which is called when all assets have been loaded, or an error occurs.\n * @param {Error} onComplete.error - If one of the asset failed, the complete callback is immediately called with the error. If all assets are loaded successfully, error will be null.\n * @param {Asset[]|Asset} onComplete.assets - An array of all loaded assets.\n * \n * @example\n * // load all audios (resources/audios/) \n * cc.resources.loadDir('audios', cc.AudioClip, (err, audios) => {});\n *\n * // load all textures in \"resources/imgs/\"\n * cc.resources.loadDir('imgs', cc.Texture2D, null, function (err, textures) {\n * var texture1 = textures[0];\n * var texture2 = textures[1];\n * });\n * \n * // load all prefabs (${project}/assets/bundle1/misc/characters/) from bundle1 folder\n * bundle1.loadDir('misc/characters', cc.Prefab, (err, prefabs) => console.log(err));\n *\n * // load all sprite frame (${project}/assets/some/xxx/bundle2/skills/) from bundle2 folder\n * bundle2.loadDir('skills', cc.SpriteFrame, null, (err, spriteFrames) => console.log(err));\n *\n * @typescript\n * loadDir(dir: string, type: typeof cc.Asset, onProgress: (finish: number, total: number, item: RequestItem) => void, onComplete: (error: Error, assets: Array) => void): void\n * loadDir(dir: string, onProgress: (finish: number, total: number, item: RequestItem) => void, onComplete: (error: Error, assets: Array) => void): void\n * loadDir(dir: string, type: typeof cc.Asset, onComplete: (error: Error, assets: Array) => void): void\n * loadDir(dir: string, type: typeof cc.Asset): void\n * loadDir(dir: string, onComplete: (error: Error, assets: Array) => void): void\n * loadDir(dir: string): void\n */\n loadDir (dir, type, onProgress, onComplete) {\n var { type, onProgress, onComplete } = parseLoadResArgs(type, onProgress, onComplete);\n cc.assetManager.loadAny(dir, { __requestType__: RequestType.DIR, type: type, bundle: this.name, __outputAsArray__: true }, onProgress, onComplete);\n },\n\n /**\n * !#en\n * Preload all assets under a folder inside the bundle folder.
After calling this method, you still need to finish loading by calling `Bundle.loadDir`.\n * It will be totally fine to call `Bundle.loadDir` at any time even if the preloading is not yet finished\n * \n * !#zh\n * 预加载目标文件夹中的所有资源。调用完后,你仍然需要通过 `Bundle.loadDir` 来完成加载。\n * 就算预加载还没完成,你也可以直接调用 `Bundle.loadDir`。\n *\n * @method preloadDir\n * @param {string} dir - path of the target folder.The path is relative to the bundle folder, extensions must be omitted.\n * @param {Function} [type] - Only asset of type will be preloaded if this argument is supplied.\n * @param {Function} [onProgress] - Callback invoked when progression change.\n * @param {Number} onProgress.finish - The number of the items that are already completed.\n * @param {Number} onProgress.total - The total number of the items.\n * @param {Object} onProgress.item - The latest request item\n * @param {Function} [onComplete] - A callback which is called when all assets have been loaded, or an error occurs.\n * @param {Error} onComplete.error - If one of the asset failed, the complete callback is immediately called with the error. If all assets are preloaded successfully, error will be null.\n * @param {RequestItem[]} onComplete.items - An array of all preloaded items.\n * \n * @example\n * // preload all audios (resources/audios/) \n * cc.resources.preloadDir('audios', cc.AudioClip);\n *\n * // preload all textures in \"resources/imgs/\"\n * cc.resources.preloadDir('imgs', cc.Texture2D);\n * // wait for while\n * cc.resources.loadDir('imgs', cc.Texture2D, (err, textures) => {});\n * \n * // preload all prefabs (${project}/assets/bundle1/misc/characters/) from bundle1 folder\n * bundle1.preloadDir('misc/characters', cc.Prefab);\n *\n * // preload all sprite frame (${project}/assets/some/xxx/bundle2/skills/) from bundle2 folder\n * bundle2.preloadDir('skills', cc.SpriteFrame);\n * // wait for while\n * bundle2.loadDir('skills', cc.SpriteFrame, (err, spriteFrames) => {});\n * \n * @typescript\n * preloadDir(dir: string, type: typeof cc.Asset, onProgress: (finish: number, total: number, item: RequestItem) => void, onComplete: (error: Error, items: RequestItem[]) => void): void\n * preloadDir(dir: string, onProgress: (finish: number, total: number, item: RequestItem) => void, onComplete: (error: Error, items: RequestItem[]) => void): void\n * preloadDir(dir: string, type: typeof cc.Asset, onComplete: (error: Error, items: RequestItem[]) => void): void\n * preloadDir(dir: string, type: typeof cc.Asset): void\n * preloadDir(dir: string, onComplete: (error: Error, items: RequestItem[]) => void): void\n * preloadDir(dir: string): void\n */\n preloadDir (dir, type, onProgress, onComplete) {\n var { type, onProgress, onComplete } = parseLoadResArgs(type, onProgress, onComplete);\n cc.assetManager.preloadAny(dir, { __requestType__: RequestType.DIR, type: type, bundle: this.name }, onProgress, onComplete);\n },\n\n /**\n * !#en \n * Loads the scene within this bundle by its name. \n * \n * !#zh \n * 通过场景名称加载分包中的场景。\n *\n * @method loadScene\n * @param {String} sceneName - The name of the scene to load.\n * @param {Object} [options] - Some optional parameters\n * @param {Function} [onProgress] - Callback invoked when progression change.\n * @param {Number} onProgress.finish - The number of the items that are already completed.\n * @param {Number} onProgress.total - The total number of the items.\n * @param {Object} onProgress.item - The latest request item\n * @param {Function} [onComplete] - callback, will be called after scene launched.\n * @param {Error} onComplete.err - The occurred error, null indicetes success\n * @param {SceneAsset} onComplete.sceneAsset - The scene asset\n * \n * @example\n * bundle1.loadScene('first', (err, sceneAsset) => cc.director.runScene(sceneAsset));\n * \n * @typescript\n * loadScene(sceneName: string, options: Record, onProgress: (finish: number, total: number, item: RequestItem) => void, onComplete: (error: Error, sceneAsset: cc.SceneAsset) => void): void\n * loadScene(sceneName: string, onProgress: (finish: number, total: number, item: RequestItem) => void, onComplete: (error: Error, sceneAsset: cc.SceneAsset) => void): void\n * loadScene(sceneName: string, options: Record, onComplete: (error: Error, sceneAsset: cc.SceneAsset) => void): void\n * loadScene(sceneName: string, onComplete: (error: Error, sceneAsset: cc.SceneAsset) => void): void\n * loadScene(sceneName: string, options: Record): void\n * loadScene(sceneName: string): void\n */\n loadScene (sceneName, options, onProgress, onComplete) {\n var { options, onProgress, onComplete } = parseParameters(options, onProgress, onComplete);\n \n options.preset = options.preset || 'scene';\n options.bundle = this.name;\n cc.assetManager.loadAny({ 'scene': sceneName }, options, onProgress, function (err, sceneAsset) {\n if (err) {\n cc.error(err.message, err.stack);\n onComplete && onComplete(err);\n }\n else if (sceneAsset instanceof cc.SceneAsset) {\n var scene = sceneAsset.scene;\n scene._id = sceneAsset._uuid;\n scene._name = sceneAsset._name;\n onComplete && onComplete(null, sceneAsset);\n }\n else {\n onComplete && onComplete(new Error('The asset ' + sceneAsset._uuid + ' is not a scene'));\n }\n });\n },\n\n /**\n * !#en\n * Preloads the scene within this bundle by its name. After calling this method, you still need to finish loading by calling `Bundle.loadScene` or `cc.director.loadScene`.\n * It will be totally fine to call `Bundle.loadDir` at any time even if the preloading is not yet finished\n * \n * !#zh \n * 通过场景名称预加载分包中的场景.调用完后,你仍然需要通过 `Bundle.loadScene` 或 `cc.director.loadScene` 来完成加载。\n * 就算预加载还没完成,你也可以直接调用 `Bundle.loadScene` 或 `cc.director.loadScene`。\n *\n * @method preloadScene\n * @param {String} sceneName - The name of the scene to preload.\n * @param {Object} [options] - Some optional parameters\n * @param {Function} [onProgress] - callback, will be called when the load progression change.\n * @param {Number} onProgress.finish - The number of the items that are already completed\n * @param {Number} onProgress.total - The total number of the items\n * @param {RequestItem} onProgress.item The latest request item\n * @param {Function} [onComplete] - callback, will be called after scene loaded.\n * @param {Error} onComplete.error - null or the error object.\n * \n * @example\n * bundle1.preloadScene('first');\n * // wait for a while\n * bundle1.loadScene('first', (err, scene) => cc.director.runScene(scene));\n * \n * @typescript\n * preloadScene(sceneName: string, options: Record, onProgress: (finish: number, total: number, item: RequestItem) => void, onComplete: (error: Error) => void): void\n * preloadScene(sceneName: string, onProgress: (finish: number, total: number, item: RequestItem) => void, onComplete: (error: Error) => void): void\n * preloadScene(sceneName: string, options: Record, onComplete: (error: Error) => void): void\n * preloadScene(sceneName: string, onComplete: (error: Error) => void): void\n * preloadScene(sceneName: string, options: Record): void\n * preloadScene(sceneName: string): void\n */\n preloadScene (sceneName, options, onProgress, onComplete) {\n var { options, onProgress, onComplete } = parseParameters(options, onProgress, onComplete);\n\n options.bundle = this.name;\n cc.assetManager.preloadAny({'scene': sceneName}, options, onProgress, function (err) {\n if (err) {\n cc.errorID(1210, sceneName, err.message);\n }\n onComplete && onComplete(err);\n });\n },\n\n /**\n * !#en\n * Get asset within this bundle by path and type.
\n * After you load asset with {{#crossLink \"Bundle/load:method\"}}{{/crossLink}} or {{#crossLink \"Bundle/loadDir:method\"}}{{/crossLink}},\n * you can acquire them by passing the path to this API.\n * \n * !#zh\n * 通过路径与类型获取资源。在你使用 {{#crossLink \"Bundle/load:method\"}}{{/crossLink}} 或者 {{#crossLink \"Bundle/loadDir:method\"}}{{/crossLink}} 之后,\n * 你能通过传路径通过这个 API 获取到这些资源。\n * \n * @method get\n * @param {String} path - The path of asset\n * @param {Function} [type] - Only asset of type will be returned if this argument is supplied.\n * @returns {Asset} \n * \n * @example\n * bundle1.get('music/hit', cc.AudioClip);\n * \n * @typescript\n * get (path: string, type?: typeof cc.Asset): T\n */\n get (path, type) {\n var info = this.getInfoWithPath(path, type);\n return assets.get(info && info.uuid);\n },\n\n /**\n * !#en \n * Release the asset loaded by {{#crossLink \"Bundle/load:method\"}}{{/crossLink}} or {{#crossLink \"Bundle/loadDir:method\"}}{{/crossLink}} and it's dependencies. \n * Refer to {{#crossLink \"AssetManager/releaseAsset:method\"}}{{/crossLink}} for detailed informations.\n * \n * !#zh \n * 释放通过 {{#crossLink \"Bundle/load:method\"}}{{/crossLink}} 或者 {{#crossLink \"Bundle/loadDir:method\"}}{{/crossLink}} 加载的资源。详细信息请参考 {{#crossLink \"AssetManager/releaseAsset:method\"}}{{/crossLink}}\n * \n * @method release\n * @param {String} path - The path of asset\n * @param {Function} [type] - Only asset of type will be released if this argument is supplied.\n * \n * @example\n * // release a texture which is no longer need\n * bundle1.release('misc/character/cocos');\n *\n * @typescript\n * release(path: string, type: typeof cc.Asset): void\n * release(path: string): void\n */\n release (path, type) {\n releaseManager.tryRelease(this.get(path, type), true);\n },\n\n /**\n * !#en \n * Release all unused assets within this bundle. Refer to {{#crossLink \"AssetManager/releaseAll:method\"}}{{/crossLink}} for detailed informations.\n * \n * !#zh \n * 释放此包中的所有没有用到的资源。详细信息请参考 {{#crossLink \"AssetManager/releaseAll:method\"}}{{/crossLink}}\n *\n * @method releaseUnusedAssets\n * @private\n * \n * @example\n * // release all unused asset within bundle1\n * bundle1.releaseUnusedAssets();\n * \n * @typescript\n * releaseUnusedAssets(): void\n */\n releaseUnusedAssets () {\n var self = this;\n assets.forEach(function (asset) {\n let info = self.getAssetInfo(asset._uuid);\n if (info && !info.redirect) {\n releaseManager.tryRelease(asset);\n }\n });\n },\n\n /**\n * !#en \n * Release all assets within this bundle. Refer to {{#crossLink \"AssetManager/releaseAll:method\"}}{{/crossLink}} for detailed informations.\n * \n * !#zh \n * 释放此包中的所有资源。详细信息请参考 {{#crossLink \"AssetManager/releaseAll:method\"}}{{/crossLink}}\n *\n * @method releaseAll\n * \n * @example\n * // release all asset within bundle1\n * bundle1.releaseAll();\n * \n * @typescript\n * releaseAll(): void\n */\n releaseAll () {\n var self = this;\n assets.forEach(function (asset) {\n let info = self.getAssetInfo(asset._uuid);\n if (info && !info.redirect) {\n releaseManager.tryRelease(asset, true);\n }\n });\n },\n\n _destroy () {\n this._config.destroy();\n }\n\n};\n\nmodule.exports = Bundle;","/****************************************************************************\n Copyright (c) 2019 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n/**\n * @module cc.AssetManager\n */\n\nconst js = require('../platform/js');\n/**\n * !#en\n * use to cache something\n * \n * !#zh\n * 用于缓存某些内容\n * \n * @class Cache\n * @typescript Cache\n */\nfunction Cache (map) {\n if (map) {\n this._map = map;\n this._count = Object.keys(map).length;\n }\n else {\n this._map = js.createMap(true);\n this._count = 0;\n }\n}\n\nCache.prototype = {\n \n /**\n * !#en\n * Create a cache\n * \n * !#zh\n * 创建一个 cache\n * \n * @method constructor\n * @param {Object} [map] - An object used to initialize \n * \n * @typescript\n * constructor(map?: Record)\n */\n constructor: Cache,\n\n /**\n * !#en\n * Add Key-Value to cache\n * \n * !#zh\n * 增加键值对到缓存中\n * \n * @method add\n * @param {String} key - The key\n * @param {*} val - The value\n * @returns {*} The value\n * \n * @example\n * var cache = new Cache();\n * cache.add('test', null);\n * \n * @typescript\n * add(key: string, val: T): T\n */\n add (key, val) { \n if (!(key in this._map)) this._count++;\n return this._map[key] = val;\n },\n\n /**\n * !#en\n * Get the cached content by key\n * \n * !#zh\n * 通过 key 获取对应的 value\n * \n * @method get\n * @param {string} key - The key\n * @returns {*} The corresponding content\n * \n * @example\n * var cache = new Cache();\n * var test = cache.get('test');\n * \n * @typescript\n * get(key: string): T\n */\n get (key) {\n return this._map[key];\n },\n\n /**\n * !#en\n * Check whether or not content exists by key\n * \n * !#zh\n * 通过 Key 判断是否存在对应的内容\n * \n * @method has\n * @param {string} key - The key\n * @returns {boolean} True indecates that content of the key exists\n * \n * @example\n * var cache = new Cache();\n * var exist = cache.has('test');\n * \n * @typescript\n * has(key: string): boolean\n */\n has (key) {\n return key in this._map;\n },\n\n /**\n * !#en\n * Remove the cached content by key\n * \n * !#zh\n * 通过 Key 移除对应的内容\n * \n * @method remove\n * @param {string} key - The key\n * @returns {*} The removed content\n * \n * @example\n * var cache = new Cache();\n * var content = cache.remove('test');\n * \n * @typescript\n * remove(key: string): T\n */\n remove (key) {\n var out = this._map[key];\n if (key in this._map) {\n delete this._map[key];\n this._count--;\n }\n return out;\n },\n\n /**\n * !#en\n * Clear all content\n * \n * !#zh\n * 清除所有内容\n * \n * @method clear\n * \n * @example\n * var cache = new Cache();\n * cache.clear();\n * \n * @typescript\n * clear():void\n */\n clear () {\n if (this._count !== 0) {\n this._map = js.createMap(true);\n this._count = 0;\n }\n },\n\n /**\n * !#en\n * Enumerate all content and invoke function\n * \n * !#zh\n * 枚举所有内容并执行方法\n * \n * @method forEach\n * @param {Function} func - Function to be invoked\n * @param {*} func.val - The value \n * @param {String} func.key - The corresponding key\n * \n * @example\n * var cache = new Cache();\n * cache.forEach((val, key) => console.log(key));\n * \n * @typescript\n * forEach(func: (val: T, key: string) => void): void\n */\n forEach (func) {\n for (var key in this._map) {\n func(this._map[key], key);\n }\n },\n\n /**\n * !#en\n * Enumerate all content to find one element which can fulfill condition\n * \n * !#zh\n * 枚举所有内容,找到一个可以满足条件的元素\n * \n * @method find\n * @param {Function} predicate - The condition\n * @returns {*} content\n * \n * @example\n * var cache = new Cache();\n * var val = cache.find((val, key) => key === 'test');\n * \n * @typescript\n * find(predicate: (val: T, key: string) => boolean): T\n */\n find (predicate) {\n for (var key in this._map) {\n if (predicate(this._map[key], key)) return this._map[key];\n }\n return null;\n },\n\n /**\n * !#en\n * The count of cached content\n * \n * !#zh\n * 缓存数量\n * \n * @property count\n * @type {Number}\n */\n get count () {\n return this._count;\n },\n\n /**\n * !#en\n * Destroy this cache\n * \n * !#zh\n * 销毁这个 cache\n * \n * @method destroy\n * \n * @typescript\n * destroy(): void\n */\n destroy () {\n this._map = null;\n }\n};\n\nmodule.exports = Cache;","/****************************************************************************\n Copyright (c) 2019 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\nconst js = require('../platform/js');\nconst Cache = require('./cache');\nconst { normalize } = require('./helper');\nconst { processOptions } = require('./utilities');\n\nfunction Config () {\n\n this.name = '';\n\n this.base = '';\n\n this.importBase = '';\n\n this.nativeBase = '';\n\n this.deps = null;\n\n this.assetInfos = new Cache();\n\n this.scenes = new Cache();\n\n this.paths = new Cache();\n}\n\nConfig.prototype = {\n\n constructor: Config,\n\n init: function (options) {\n processOptions(options);\n\n this.importBase = options.importBase || '';\n this.nativeBase = options.nativeBase || '';\n this.base = options.base || '';\n this.name = options.name || '';\n this.deps = options.deps || [];\n // init\n this._initUuid(options.uuids);\n this._initPath(options.paths);\n this._initScene(options.scenes);\n this._initPackage(options.packs);\n this._initVersion(options.versions);\n this._initRedirect(options.redirect);\n },\n\n _initUuid: function (uuidList) {\n if (!uuidList) return;\n this.assetInfos.clear();\n for (var i = 0, l = uuidList.length; i < l; i++) {\n var uuid = uuidList[i];\n this.assetInfos.add(uuid, {uuid});\n }\n },\n\n _initPath: function (pathList) {\n if (!pathList) return;\n var paths = this.paths;\n paths.clear();\n for (var uuid in pathList) {\n var info = pathList[uuid];\n var path = info[0];\n var type = info[1];\n var isSubAsset = info.length === 3;\n\n var assetInfo = this.assetInfos.get(uuid);\n assetInfo.path = path;\n assetInfo.ctor = js._getClassById(type);\n if (paths.has(path)) {\n if (isSubAsset) {\n paths.get(path).push(assetInfo);\n }\n else {\n paths.get(path).splice(0, 0, assetInfo);\n } \n }\n else {\n paths.add(path, [assetInfo]);\n }\n }\n },\n\n _initScene: function (sceneList) {\n if (!sceneList) return;\n var scenes = this.scenes;\n scenes.clear();\n var assetInfos = this.assetInfos;\n for (var sceneName in sceneList) {\n var uuid = sceneList[sceneName];\n var assetInfo = assetInfos.get(uuid);\n assetInfo.url = sceneName;\n scenes.add(sceneName, assetInfo);\n }\n },\n\n _initPackage: function (packageList) {\n if (!packageList) return;\n var assetInfos = this.assetInfos;\n for (var packUuid in packageList) {\n var uuids = packageList[packUuid];\n var pack = {uuid: packUuid, packs: uuids, ext:'.json'};\n assetInfos.add(packUuid, pack);\n\n for (var i = 0, l = uuids.length; i < l; i++) {\n var uuid = uuids[i];\n var assetInfo = assetInfos.get(uuid);\n var assetPacks = assetInfo.packs;\n if (assetPacks) {\n if (l === 1) {\n assetPacks.splice(0, 0, pack);\n }\n else {\n assetPacks.push(pack);\n }\n }\n else {\n assetInfo.packs = [pack];\n }\n }\n }\n },\n\n _initVersion: function (versions) {\n if (!versions) return;\n var assetInfos = this.assetInfos;\n var entries = versions.import;\n if (entries) {\n for (var i = 0, l = entries.length; i < l; i += 2) {\n var uuid = entries[i];\n var assetInfo = assetInfos.get(uuid);\n assetInfo.ver = entries[i + 1];\n }\n }\n entries = versions.native;\n if (entries) {\n for (var i = 0, l = entries.length; i < l; i += 2) {\n var uuid = entries[i];\n var assetInfo = assetInfos.get(uuid);\n assetInfo.nativeVer = entries[i + 1];\n }\n }\n },\n\n _initRedirect: function (redirect) {\n if (!redirect) return;\n var assetInfos = this.assetInfos;\n for (var i = 0, l = redirect.length; i < l; i += 2) {\n var uuid = redirect[i];\n var assetInfo = assetInfos.get(uuid);\n assetInfo.redirect = redirect[i + 1];\n }\n },\n\n getInfoWithPath: function (path, type) {\n\n if (!path) {\n return null;\n }\n path = normalize(path);\n var items = this.paths.get(path);\n if (items) {\n if (type) {\n for (var i = 0, l = items.length; i < l; i++) {\n var assetInfo = items[i];\n if (js.isChildClassOf(assetInfo.ctor, type)) {\n return assetInfo;\n }\n }\n }\n else {\n return items[0];\n }\n }\n return null;\n },\n\n getDirWithPath: function (path, type, out) {\n path = normalize(path);\n if (path[path.length - 1] === '/') {\n path = path.slice(0, -1);\n }\n\n var infos = out || [];\n function isMatchByWord (path, test) {\n if (path.length > test.length) {\n var nextAscii = path.charCodeAt(test.length);\n return nextAscii === 47; // '/'\n }\n return true;\n }\n this.paths.forEach(function (items, p) {\n if ((p.startsWith(path) && isMatchByWord(p, path)) || !path) {\n for (var i = 0, l = items.length; i < l; i++) {\n var entry = items[i];\n if (!type || js.isChildClassOf(entry.ctor, type)) {\n infos.push(entry);\n }\n }\n }\n });\n\n return infos;\n },\n\n getAssetInfo: function (uuid) {\n return this.assetInfos.get(uuid);\n },\n\n getSceneInfo: function (name) {\n if (!name.endsWith('.fire')) {\n name += '.fire';\n }\n if (name[0] !== '/' && !name.startsWith('db://')) {\n name = '/' + name; // 使用全名匹配\n }\n // search scene\n var info = this.scenes.find(function (val, key) {\n return key.endsWith(name);\n });\n return info;\n },\n\n destroy: function () {\n this.paths.destroy();\n this.scenes.destroy();\n this.assetInfos.destroy();\n }\n};\n\nif (CC_TEST) {\n cc._Test.Config = Config;\n}\n\nmodule.exports = Config;","/****************************************************************************\n Copyright (c) 2019 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\nconst Cache = require('./cache');\nconst deserialize = require('./deserialize');\nconst { files, parsed } = require('./shared');\nimport { hasNativeDep , getDependUuidList } from '../platform/deserialize-compiled';\nimport deserializeForCompiled from '../platform/deserialize-compiled';\n\n/**\n * @module cc.AssetManager\n */\n/**\n * !#en\n * Control asset's dependency list, it is a singleton. All member can be accessed with `cc.assetManager.dependUtil`\n * \n * !#zh\n * 控制资源的依赖列表,这是一个单例, 所有成员能通过 `cc.assetManager.dependUtil` 访问\n * \n * @class DependUtil\n */\nvar dependUtil = {\n _depends: new Cache(),\n\n init () {\n this._depends.clear();\n },\n\n /**\n * !#en\n * Get asset's native dependency. For example, Texture's native dependency is image.\n * \n * !#zh\n * 获取资源的原生依赖,例如 Texture 的原生依赖是图片\n * \n * @method getNativeDep\n * @param {string} uuid - asset's uuid\n * @returns {Object} native dependency\n * \n * @example\n * var dep = dependUtil.getNativeDep('fcmR3XADNLgJ1ByKhqcC5Z');\n * \n * @typescript\n * getNativeDep(uuid: string): Record\n */\n getNativeDep (uuid) {\n let depend = this._depends.get(uuid);\n if (depend) return depend.nativeDep && Object.assign({}, depend.nativeDep);\n return null;\n },\n\n /**\n * !#en\n * Get asset's direct referencing non-native dependency list. For example, Material's non-native dependencies are Texture.\n * \n * !#zh\n * 获取资源直接引用的非原生依赖列表,例如,材质的非原生依赖是 Texture\n * \n * @method getDeps\n * @param {string} uuid - asset's uuid\n * @returns {string[]} direct referencing non-native dependency list\n * \n * @example\n * var deps = dependUtil.getDeps('fcmR3XADNLgJ1ByKhqcC5Z');\n * \n * @typescript\n * getDeps(uuid: string): string[]\n */\n getDeps (uuid) {\n if (this._depends.has(uuid)) {\n return this._depends.get(uuid).deps;\n }\n return [];\n },\n \n /**\n * !#en\n * Get non-native dependency list of the loaded asset, include indirect reference.\n * The returned array stores the dependencies with their uuid, after retrieve dependencies,\n * \n * !#zh\n * 获取某个已经加载好的资源的所有非原生依赖资源列表,包括间接引用的资源,并保存在数组中返回。\n * 返回的数组将仅保存依赖资源的 uuid。\n *\n * @method getDependsRecursively\n * @param {String} uuid - The asset's uuid\n * @returns {string[]} non-native dependency list\n * \n * @example\n * var deps = dependUtil.getDepsRecursively('fcmR3XADNLgJ1ByKhqcC5Z');\n * \n * @typescript\n * getDepsRecursively(uuid: string): string[]\n */\n getDepsRecursively (uuid) {\n var exclude = Object.create(null), depends = [];\n this._descend(uuid, exclude, depends);\n return depends;\n },\n\n _descend (uuid, exclude, depends) {\n var deps = this.getDeps(uuid);\n for (var i = 0; i < deps.length; i++) {\n var depend = deps[i];\n if ( !exclude[depend] ) {\n exclude[depend] = true;\n depends.push(depend);\n this._descend(depend, exclude, depends);\n }\n }\n },\n\n remove (uuid) {\n this._depends.remove(uuid);\n },\n \n /**\n * !#en\n * Extract dependency list from serialized data or asset and then store in cache.\n * \n * !#zh\n * 从序列化数据或资源中提取出依赖列表,并且存储在缓存中。\n * \n * @param {string} uuid - The uuid of serialized data or asset\n * @param {Object} json - Serialized data or asset\n * @returns {Object} dependency list, include non-native and native dependency\n * \n * @example\n * downloader.downloadFile('test.json', {responseType: 'json'}, null, (err, file) => {\n * var dependencies = parse('fcmR3XADNLgJ1ByKhqcC5Z', file);\n * });\n * \n * @typescript\n * parse(uuid: string, json: any): { deps?: string[], nativeDep?: any }\n */\n parse (uuid, json) {\n var out = null;\n if (Array.isArray(json) || json.__type__) {\n\n if (out = this._depends.get(uuid)) return out;\n\n if (Array.isArray(json) && (!(CC_BUILD || deserializeForCompiled.isCompiledJson(json)) || !hasNativeDep(json))) {\n out = {\n deps: this._parseDepsFromJson(json),\n };\n }\n else {\n try {\n var asset = deserialize(json);\n out = this._parseDepsFromAsset(asset);\n out.nativeDep && (out.nativeDep.uuid = uuid);\n parsed.add(uuid + '@import', asset);\n }\n catch (e) {\n files.remove(uuid + '@import');\n out = { deps: [] };\n }\n }\n }\n // get deps from an existing asset \n else {\n if (!CC_EDITOR && (out = this._depends.get(uuid)) && out.parsedFromExistAsset) return out;\n out = this._parseDepsFromAsset(json);\n }\n // cache dependency list\n this._depends.add(uuid, out);\n return out;\n },\n\n _parseDepsFromAsset: function (asset) {\n var out = {\n deps: [],\n parsedFromExistAsset: true,\n preventPreloadNativeObject: asset.constructor.preventPreloadNativeObject,\n preventDeferredLoadDependents: asset.constructor.preventDeferredLoadDependents\n };\n let deps = asset.__depends__;\n for (var i = 0, l = deps.length; i < l; i++) {\n var dep = deps[i].uuid;\n out.deps.push(dep);\n }\n \n if (asset.__nativeDepend__) {\n out.nativeDep = asset._nativeDep;\n }\n\n return out;\n },\n\n _parseDepsFromJson: CC_EDITOR || CC_PREVIEW ? function (json) {\n\n if (deserializeForCompiled.isCompiledJson(json)) {\n let depends = getDependUuidList(json);\n depends.forEach((uuid, index) => depends[index] = cc.assetManager.utils.decodeUuid(uuid));\n return depends;\n }\n \n var depends = [];\n function parseDependRecursively (data, out) {\n if (!data || typeof data !== 'object' || data.__id__) return;\n var uuid = data.__uuid__;\n if (Array.isArray(data)) {\n for (let i = 0, l = data.length; i < l; i++) {\n parseDependRecursively(data[i], out);\n }\n }\n else if (uuid) { \n out.push(cc.assetManager.utils.decodeUuid(uuid));\n }\n else {\n for (var prop in data) {\n parseDependRecursively(data[prop], out);\n }\n }\n }\n parseDependRecursively(json, depends);\n return depends;\n } : function (json) {\n let depends = getDependUuidList(json);\n depends.forEach((uuid, index) => depends[index] = cc.assetManager.utils.decodeUuid(uuid));\n return depends;\n }\n};\n\nmodule.exports = dependUtil;","/****************************************************************************\n Copyright (c) 2019 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n\nconst js = require('../platform/js');\nrequire('../CCDirector');\nconst utilities = require('./utilities');\nconst dependUtil = require('./depend-util');\nconst releaseManager = require('./releaseManager');\nconst downloader = require('./downloader');\nconst factory = require('./factory');\nconst helper = require('./helper');\n\nconst ImageFmts = ['.png', '.jpg', '.bmp', '.jpeg', '.gif', '.ico', '.tiff', '.webp', '.image', '.pvr', '.pkm'];\nconst AudioFmts = ['.mp3', '.ogg', '.wav', '.m4a'];\n\nfunction GetTrue () { return true; }\n\nconst md5Pipe = {\n transformURL (url) {\n let uuid = helper.getUuidFromURL(url);\n if (!uuid) { return url; }\n let bundle = cc.assetManager.bundles.find((b) => {\n return !!b.getAssetInfo(uuid);\n });\n if (!bundle) { return url; }\n let hashValue = '';\n let info = bundle.getAssetInfo(uuid);\n if (url.startsWith(bundle.base + bundle._config.nativeBase)) {\n hashValue = info.nativeVer || '';\n }\n else {\n hashValue = info.ver || '';\n }\n if (!hashValue || url.indexOf(hashValue) !== -1) { return url; }\n let hashPatchInFolder = false;\n if (cc.path.extname(url) === '.ttf') {\n hashPatchInFolder = true;\n }\n if (hashPatchInFolder) {\n let dirname = cc.path.dirname(url);\n let basename = cc.path.basename(url);\n url = `${dirname}.${hashValue}/${basename}`;\n } else {\n url = url.replace(/.*[/\\\\][0-9a-fA-F]{2}[/\\\\]([0-9a-fA-F-]{8,})/, (match, uuid) => {\n return match + '.' + hashValue;\n });\n }\n \n return url;\n },\n};\n\n/**\n * `cc.loader` is deprecated, please backup your project and upgrade to {{#crossLink \"AssetManager\"}}{{/crossLink}}\n *\n * @class loader\n * @static\n * @deprecated cc.loader is deprecated, please backup your project and upgrade to cc.assetManager\n */\nconst loader = {\n /**\n * `cc.loader.onProgress` is deprecated, please transfer onProgress to API as a parameter\n * @property onProgress\n * @deprecated cc.loader.onProgress is deprecated, please transfer onProgress to API as a parameter\n */\n onProgress: null,\n _autoReleaseSetting: Object.create(null),\n\n get _cache () {\n return cc.assetManager.assets._map;\n },\n\n /**\n * `cc.loader.load` is deprecated, please use {{#crossLink \"AssetManager/loadAny:method\"}}{{/crossLink}} instead\n *\n * @deprecated cc.loader.load is deprecated, please use cc.assetManager.loadAny instead\n *\n * @method load\n * @param {String|String[]|Object} resources - Url list in an array\n * @param {Function} [progressCallback] - Callback invoked when progression change\n * @param {Number} progressCallback.completedCount - The number of the items that are already completed\n * @param {Number} progressCallback.totalCount - The total number of the items\n * @param {Object} progressCallback.item - The latest item which flow out the pipeline\n * @param {Function} [completeCallback] - Callback invoked when all resources loaded\n * @typescript\n * load(resources: string|string[]|{uuid?: string, url?: string, type?: string}, completeCallback?: Function): void\n * load(resources: string|string[]|{uuid?: string, url?: string, type?: string}, progressCallback: (completedCount: number, totalCount: number, item: any) => void, completeCallback: Function|null): void\n */\n load (resources, progressCallback, completeCallback) {\n if (completeCallback === undefined) {\n if (progressCallback !== undefined) {\n completeCallback = progressCallback;\n progressCallback = null;\n }\n }\n resources = Array.isArray(resources) ? resources : [resources];\n for (var i = 0; i < resources.length; i++) {\n var item = resources[i];\n if (typeof item === 'string') {\n resources[i] = { url: item, __isNative__: true};\n }\n else {\n if (item.type) {\n item.ext = '.' + item.type;\n item.type = undefined;\n }\n\n if (item.url) {\n item.__isNative__ = true;\n }\n }\n }\n var images = [];\n var audios = [];\n cc.assetManager.loadAny(resources, null, (finish, total, item) => {\n if (item.content) {\n if (ImageFmts.includes(item.ext)) {\n images.push(item.content);\n }\n else if (AudioFmts.includes(item.ext)) {\n audios.push(item.content);\n }\n }\n progressCallback && progressCallback(finish, total, item);\n }, (err, native) => {\n var res = null;\n if (!err) {\n native = Array.isArray(native) ? native : [native];\n for (var i = 0; i < native.length; i++) {\n var item = native[i];\n if (!(item instanceof cc.Asset)) {\n var asset = item;\n var url = resources[i].url;\n if (images.includes(asset)) {\n factory.create(url, item, '.png', null, (err, image) => {\n asset = native[i] = image;\n });\n }\n else if (audios.includes(asset)) {\n factory.create(url, item, '.mp3', null, (err, audio) => {\n asset = native[i] = audio;\n });\n }\n cc.assetManager.assets.add(url, asset);\n }\n }\n if (native.length > 1) {\n var map = Object.create(null);\n native.forEach(function (asset) {\n map[asset._uuid] = asset;\n });\n res = { isCompleted: GetTrue, _map: map };\n }\n else {\n res = native[0];\n }\n }\n completeCallback && completeCallback(err, res);\n });\n },\n\n /**\n * `cc.loader.getXMLHttpRequest` is deprecated, please use `XMLHttpRequest` directly\n *\n * @method getXMLHttpRequest\n * @deprecated cc.loader.getXMLHttpRequest is deprecated, please use XMLHttpRequest directly\n * @returns {XMLHttpRequest}\n */\n getXMLHttpRequest () {\n return new XMLHttpRequest();\n },\n\n _parseLoadResArgs: utilities.parseLoadResArgs,\n\n /**\n * `cc.loader.getItem` is deprecated, please use `cc.assetManager.asset.get` instead\n *\n * @method getItem\n * @param {Object} id The id of the item\n * @return {Object}\n * @deprecated cc.loader.getItem is deprecated, please use cc.assetManager.assets.get instead\n */\n getItem (key) {\n return cc.assetManager.assets.has(key) ? { content: cc.assetManager.assets.get(key) } : null;\n },\n\n /**\n * `cc.loader.loadRes` is deprecated, please use {{#crossLink \"Bundle/load:method\"}}{{/crossLink}} instead\n *\n * @deprecated cc.loader.loadRes is deprecated, please use cc.resources.load instead\n * @method loadRes\n * @param {String} url - Url of the target resource.\n * The url is relative to the \"resources\" folder, extensions must be omitted.\n * @param {Function} [type] - Only asset of type will be loaded if this argument is supplied.\n * @param {Function} [progressCallback] - Callback invoked when progression change.\n * @param {Number} progressCallback.completedCount - The number of the items that are already completed.\n * @param {Number} progressCallback.totalCount - The total number of the items.\n * @param {Object} progressCallback.item - The latest item which flow out the pipeline.\n * @param {Function} [completeCallback] - Callback invoked when the resource loaded.\n * @param {Error} completeCallback.error - The error info or null if loaded successfully.\n * @param {Object} completeCallback.resource - The loaded resource if it can be found otherwise returns null.\n *\n * @typescript\n * loadRes(url: string, type: typeof cc.Asset, progressCallback: (completedCount: number, totalCount: number, item: any) => void, completeCallback: ((error: Error, resource: any) => void)|null): void\n * loadRes(url: string, type: typeof cc.Asset, completeCallback: (error: Error, resource: any) => void): void\n * loadRes(url: string, type: typeof cc.Asset): void\n * loadRes(url: string, progressCallback: (completedCount: number, totalCount: number, item: any) => void, completeCallback: ((error: Error, resource: any) => void)|null): void\n * loadRes(url: string, completeCallback: (error: Error, resource: any) => void): void\n * loadRes(url: string): void\n */\n loadRes (url, type, progressCallback, completeCallback) {\n var { type, onProgress, onComplete } = this._parseLoadResArgs(type, progressCallback, completeCallback);\n var extname = cc.path.extname(url);\n if (extname) {\n // strip extname\n url = url.slice(0, - extname.length);\n }\n cc.resources.load(url, type, onProgress, onComplete);\n },\n\n /**\n * `cc.loader.loadResArray` is deprecated, please use {{#crossLink \"Bundle/load:method\"}}{{/crossLink}} instead\n *\n * @deprecated cc.loader.loadResArray is deprecated, please use cc.resources.load instead\n * @method loadResArray\n * @param {String[]} urls - Array of URLs of the target resource.\n * The url is relative to the \"resources\" folder, extensions must be omitted.\n * @param {Function} [type] - Only asset of type will be loaded if this argument is supplied.\n * @param {Function} [progressCallback] - Callback invoked when progression change.\n * @param {Number} progressCallback.completedCount - The number of the items that are already completed.\n * @param {Number} progressCallback.totalCount - The total number of the items.\n * @param {Object} progressCallback.item - The latest item which flow out the pipeline.\n * @param {Function} [completeCallback] - A callback which is called when all assets have been loaded, or an error occurs.\n * @param {Error} completeCallback.error - If one of the asset failed, the complete callback is immediately called\n * with the error. If all assets are loaded successfully, error will be null.\n * @param {Asset[]|Array} completeCallback.assets - An array of all loaded assets.\n * If nothing to load, assets will be an empty array.\n * @typescript\n * loadResArray(url: string[], type: typeof cc.Asset, progressCallback: (completedCount: number, totalCount: number, item: any) => void, completeCallback: ((error: Error, resource: any[]) => void)|null): void\n * loadResArray(url: string[], type: typeof cc.Asset, completeCallback: (error: Error, resource: any[]) => void): void\n * loadResArray(url: string[], type: typeof cc.Asset): void\n * loadResArray(url: string[], progressCallback: (completedCount: number, totalCount: number, item: any) => void, completeCallback: ((error: Error, resource: any[]) => void)|null): void\n * loadResArray(url: string[], completeCallback: (error: Error, resource: any[]) => void): void\n * loadResArray(url: string[]): void\n * loadResArray(url: string[], type: typeof cc.Asset[]): void\n */\n loadResArray (urls, type, progressCallback, completeCallback) {\n var { type, onProgress, onComplete } = this._parseLoadResArgs(type, progressCallback, completeCallback);\n urls.forEach((url, i) => {\n var extname = cc.path.extname(url);\n if (extname) {\n // strip extname\n urls[i] = url.slice(0, - extname.length);\n }\n })\n cc.resources.load(urls, type, onProgress, onComplete);\n },\n\n /**\n * `cc.loader.loadResDir` is deprecated, please use {{#crossLink \"Bundle/loadDir:method\"}}{{/crossLink}} instead\n *\n * @deprecated cc.loader.loadResDir is deprecated, please use cc.resources.loadDir instead\n * @method loadResDir\n * @param {String} url - Url of the target folder.\n * The url is relative to the \"resources\" folder, extensions must be omitted.\n * @param {Function} [type] - Only asset of type will be loaded if this argument is supplied.\n * @param {Function} [progressCallback] - Callback invoked when progression change.\n * @param {Number} progressCallback.completedCount - The number of the items that are already completed.\n * @param {Number} progressCallback.totalCount - The total number of the items.\n * @param {Object} progressCallback.item - The latest item which flow out the pipeline.\n * @param {Function} [completeCallback] - A callback which is called when all assets have been loaded, or an error occurs.\n * @param {Error} completeCallback.error - If one of the asset failed, the complete callback is immediately called\n * with the error. If all assets are loaded successfully, error will be null.\n * @param {Asset[]|Array} completeCallback.assets - An array of all loaded assets.\n * If nothing to load, assets will be an empty array.\n * @param {String[]} completeCallback.urls - An array that lists all the URLs of loaded assets.\n *\n * @typescript\n * loadResDir(url: string, type: typeof cc.Asset, progressCallback: (completedCount: number, totalCount: number, item: any) => void, completeCallback: ((error: Error, resource: any[], urls: string[]) => void)|null): void\n * loadResDir(url: string, type: typeof cc.Asset, completeCallback: (error: Error, resource: any[], urls: string[]) => void): void\n * loadResDir(url: string, type: typeof cc.Asset): void\n * loadResDir(url: string, progressCallback: (completedCount: number, totalCount: number, item: any) => void, completeCallback: ((error: Error, resource: any[], urls: string[]) => void)|null): void\n * loadResDir(url: string, completeCallback: (error: Error, resource: any[], urls: string[]) => void): void\n * loadResDir(url: string): void\n */\n loadResDir (url, type, progressCallback, completeCallback) {\n var { type, onProgress, onComplete } = this._parseLoadResArgs(type, progressCallback, completeCallback);\n cc.resources.loadDir(url, type, onProgress, function (err, assets) {\n var urls = [];\n if (!err) {\n var infos = cc.resources.getDirWithPath(url, type);\n urls = infos.map(function (info) {\n return info.path;\n });\n }\n onComplete && onComplete(err, assets, urls);\n });\n },\n\n /**\n * `cc.loader.getRes` is deprecated, please use {{#crossLink \"Bundle/get:method\"}}{{/crossLink}} instead\n *\n * @method getRes\n * @param {String} url\n * @param {Function} [type] - Only asset of type will be returned if this argument is supplied.\n * @returns {*}\n * @deprecated cc.loader.getRes is deprecated, please use cc.resources.get instead\n */\n getRes (url, type) {\n return cc.assetManager.assets.has(url) ? cc.assetManager.assets.get(url) : cc.resources.get(url, type);\n },\n\n getResCount () {\n return cc.assetManager.assets.count;\n },\n\n /**\n * `cc.loader.getDependsRecursively` is deprecated, please use use {{#crossLink \"DependUtil/getDepsRecursively:method\"}}{{/crossLink}} instead\n *\n * @deprecated cc.loader.getDependsRecursively is deprecated, please use use cc.assetManager.dependUtil.getDepsRecursively instead\n * @method getDependsRecursively\n * @param {Asset|String} owner - The owner asset or the resource url or the asset's uuid\n * @returns {Array}\n */\n getDependsRecursively (owner) {\n if (!owner) return [];\n return dependUtil.getDepsRecursively(typeof owner === 'string' ? owner : owner._uuid).concat([ owner._uuid ]);\n },\n\n /**\n * `cc.loader.assetLoader` was removed, assetLoader and md5Pipe were merged into {{#crossLink \"AssetManager/transformPipeline:property\"}}{{/crossLink}}\n *\n * @property assetLoader\n * @deprecated cc.loader.assetLoader was removed, assetLoader and md5Pipe were merged into cc.assetManager.transformPipeline\n * @type {Object}\n */\n get assetLoader () {\n if (CC_DEBUG) {\n cc.error('cc.loader.assetLoader was removed, assetLoader and md5Pipe were merged into cc.assetManager.transformPipeline');\n }\n },\n\n /**\n * `cc.loader.md5Pipe` is deprecated, assetLoader and md5Pipe were merged into {{#crossLink \"AssetManager/transformPipeline:property\"}}{{/crossLink}}\n *\n * @property md5Pipe\n * @deprecated cc.loader.md5Pipe is deprecated, assetLoader and md5Pipe were merged into cc.assetManager.transformPipeline\n * @type {Object}\n */\n get md5Pipe () {\n return md5Pipe;\n },\n\n /**\n * `cc.loader.downloader` is deprecated, please use {{#crossLink \"AssetManager/downloader:property\"}}{{/crossLink}} instead\n *\n * @deprecated cc.loader.downloader is deprecated, please use cc.assetManager.downloader instead\n * @property downloader\n * @type {Object}\n */\n get downloader () {\n return cc.assetManager.downloader;\n },\n\n /**\n * `cc.loader.loader` is deprecated, please use {{#crossLink \"AssetManager/parser:property\"}}{{/crossLink}} instead\n *\n * @property loader\n * @type {Object}\n * @deprecated cc.loader.loader is deprecated, please use cc.assetManager.parser instead\n */\n get loader () {\n return cc.assetManager.parser;\n },\n\n /**\n * `cc.loader.addDownloadHandlers` is deprecated, please use `cc.assetManager.downloader.register` instead\n *\n * @method addDownloadHandlers\n * @param {Object} extMap Custom supported types with corresponded handler\n * @deprecated cc.loader.addDownloadHandlers is deprecated, please use cc.assetManager.downloader.register instead\n */\n addDownloadHandlers (extMap) {\n if (CC_DEBUG) {\n cc.warn('`cc.loader.addDownloadHandlers` is deprecated, please use `cc.assetManager.downloader.register` instead');\n }\n var handler = Object.create(null);\n for (var type in extMap) {\n var func = extMap[type];\n handler['.' + type] = function (url, options, onComplete) {\n func({url}, onComplete);\n };\n }\n cc.assetManager.downloader.register(handler);\n },\n\n /**\n * `cc.loader.addLoadHandlers` is deprecated, please use `cc.assetManager.parser.register` instead\n *\n * @method addLoadHandlers\n * @param {Object} extMap Custom supported types with corresponded handler\n * @deprecated cc.loader.addLoadHandlers is deprecated, please use cc.assetManager.parser.register instead\n */\n addLoadHandlers (extMap) {\n if (CC_DEBUG) {\n cc.warn('`cc.loader.addLoadHandlers` is deprecated, please use `cc.assetManager.parser.register` instead');\n }\n var handler = Object.create(null);\n for (var type in extMap) {\n var func = extMap[type];\n handler['.' + type] = function (file, options, onComplete) {\n func({content: file}, onComplete);\n };\n }\n cc.assetManager.parser.register(handler);\n },\n\n flowInDeps () {\n if (CC_DEBUG) {\n cc.error('cc.loader.flowInDeps was removed');\n }\n },\n\n /**\n * `cc.loader.release` is deprecated, please use {{#crossLink \"AssetManager/releaseAsset:method\"}}{{/crossLink}} instead\n *\n * @method release\n * @param {Asset|String|Array} asset\n * @deprecated cc.loader.release is deprecated, please use cc.assetManager.releaseAsset instead\n */\n release (asset) {\n if (Array.isArray(asset)) {\n for (let i = 0; i < asset.length; i++) {\n var key = asset[i];\n if (typeof key === 'string') key = cc.assetManager.assets.get(key);\n let isBuiltin = cc.assetManager.builtins._assets.find(function (assets) {\n return assets.find(builtinAsset => builtinAsset === key);\n });\n if (isBuiltin) continue;\n cc.assetManager.releaseAsset(key);\n }\n }\n else if (asset) {\n if (typeof asset === 'string') asset = cc.assetManager.assets.get(asset);\n let isBuiltin = cc.assetManager.builtins._assets.find(function (assets) {\n return assets.find(builtinAsset => builtinAsset === asset);\n });\n if (isBuiltin) return;\n cc.assetManager.releaseAsset(asset);\n }\n },\n\n /**\n * `cc.loader.releaseAsset` is deprecated, please use {{#crossLink \"AssetManager/releaseAsset:method\"}}{{/crossLink}} instead\n *\n * @deprecated cc.loader.releaseAsset is deprecated, please use cc.assetManager.releaseAsset instead\n * @method releaseAsset\n * @param {Asset} asset\n */\n releaseAsset (asset) {\n cc.assetManager.releaseAsset(asset);\n },\n\n /**\n * `cc.loader.releaseRes` is deprecated, please use {{#crossLink \"AssetManager/releaseRes:method\"}}{{/crossLink}} instead\n *\n * @deprecated cc.loader.releaseRes is deprecated, please use cc.assetManager.releaseRes instead\n * @method releaseRes\n * @param {String} url\n * @param {Function} [type] - Only asset of type will be released if this argument is supplied.\n */\n releaseRes (url, type) {\n cc.resources.release(url, type);\n },\n\n /**\n * `cc.loader.releaseResDir` was removed, please use {{#crossLink \"AssetManager/releaseRes:method\"}}{{/crossLink}} instead\n *\n * @deprecated cc.loader.releaseResDir was removed, please use cc.assetManager.releaseRes instead\n * @method releaseResDir\n */\n releaseResDir () {\n if (CC_DEBUG) {\n cc.error('cc.loader.releaseResDir was removed, please use cc.assetManager.releaseAsset instead');\n }\n },\n\n /**\n * `cc.loader.releaseAll` is deprecated, please use {{#crossLink \"AssetManager/releaseAll:method\"}}{{/crossLink}} instead\n *\n * @deprecated cc.loader.releaseAll is deprecated, please use cc.assetManager.releaseAll instead\n * @method releaseAll\n */\n releaseAll () {\n cc.assetManager.releaseAll();\n cc.assetManager.assets.clear();\n },\n\n /**\n * `cc.loader.removeItem` is deprecated, please use `cc.assetManager.assets.remove` instead\n *\n * @deprecated cc.loader.removeItem is deprecated, please use cc.assetManager.assets.remove instead\n * @method removeItem\n * @param {Object} id The id of the item\n * @return {Boolean} succeed or not\n */\n removeItem (key) {\n cc.assetManager.assets.remove(key);\n },\n\n /**\n * `cc.loader.setAutoRelease` is deprecated, if you want to prevent some asset from auto releasing, please use {{#crossLink \"Asset/addRef:method\"}}{{/crossLink}} instead\n *\n * @deprecated cc.loader.setAutoRelease is deprecated, if you want to prevent some asset from auto releasing, please use cc.Asset.addRef instead\n * @method setAutoRelease\n * @param {Asset|String} assetOrUrlOrUuid - asset object or the raw asset's url or uuid\n * @param {Boolean} autoRelease - indicates whether should release automatically\n */\n setAutoRelease (asset, autoRelease) {\n if (typeof asset === 'object') asset = asset._uuid;\n this._autoReleaseSetting[asset] = !!autoRelease;\n },\n\n /**\n * `cc.loader.setAutoReleaseRecursively` is deprecated, if you want to prevent some asset from auto releasing, please use {{#crossLink \"Asset/addRef:method\"}}{{/crossLink}} instead\n *\n * @method setAutoReleaseRecursively\n * @param {Asset|String} assetOrUrlOrUuid - asset object or the raw asset's url or uuid\n * @param {Boolean} autoRelease - indicates whether should release automatically\n * @deprecated cc.loader.setAutoReleaseRecursively is deprecated, if you want to prevent some asset from auto releasing, please use cc.Asset.addRef instead\n */\n setAutoReleaseRecursively (asset, autoRelease) {\n if (typeof asset === 'object') asset = asset._uuid;\n autoRelease = !!autoRelease;\n this._autoReleaseSetting[asset] = autoRelease;\n var depends = dependUtil.getDepsRecursively(asset);\n for (var i = 0; i < depends.length; i++) {\n var depend = depends[i];\n this._autoReleaseSetting[depend] = autoRelease;\n }\n },\n\n /**\n * `cc.loader.isAutoRelease` is deprecated\n *\n * @method isAutoRelease\n * @param {Asset|String} assetOrUrl - asset object or the raw asset's url\n * @returns {Boolean}\n * @deprecated cc.loader.isAutoRelease is deprecated\n */\n isAutoRelease (asset) {\n if (typeof asset === 'object') asset = asset._uuid;\n return !!this._autoReleaseSetting[asset];\n }\n};\n\n/**\n * @class Downloader\n */\n/**\n * `cc.loader.downloader.loadSubpackage` is deprecated, please use {{#crossLink \"AssetManager/loadBundle:method\"}}{{/crossLink}} instead\n *\n * @deprecated cc.loader.downloader.loadSubpackage is deprecated, please use AssetManager.loadBundle instead\n * @method loadSubpackage\n * @param {String} name - Subpackage name\n * @param {Function} [completeCallback] - Callback invoked when subpackage loaded\n * @param {Error} completeCallback.error - error information\n */\ndownloader.loadSubpackage = function (name, completeCallback) {\n cc.assetManager.loadBundle(name, null, completeCallback);\n};\n\n/**\n * @deprecated cc.AssetLibrary is deprecated, please backup your project and upgrade to cc.assetManager\n */\nvar AssetLibrary = {\n\n /**\n * @deprecated cc.AssetLibrary.init is deprecated, please use cc.assetManager.init instead\n */\n init (options) {\n options.importBase = options.libraryPath;\n options.nativeBase = CC_BUILD ? options.rawAssetsBase : options.libraryPath;\n cc.assetManager.init(options);\n if (options.rawAssets) {\n var resources = new cc.AssetManager.Bundle();\n resources.init({\n name: cc.AssetManager.BuiltinBundleName.RESOURCES,\n importBase: options.importBase,\n nativeBase: options.nativeBase,\n paths: options.rawAssets.assets,\n uuids: Object.keys(options.rawAssets.assets),\n });\n }\n },\n\n /**\n * @deprecated cc.AssetLibrary is deprecated, please use cc.assetManager.loadAny instead\n */\n loadAsset (uuid, onComplete) {\n cc.assetManager.loadAny(uuid, onComplete);\n },\n\n getLibUrlNoExt () {\n if (CC_DEBUG) {\n cc.error('cc.AssetLibrary.getLibUrlNoExt was removed, if you want to transform url, please use cc.assetManager.utils.getUrlWithUuid instead');\n }\n },\n\n queryAssetInfo () {\n if (CC_DEBUG) {\n cc.error('cc.AssetLibrary.queryAssetInfo was removed, only available in the editor by using cc.assetManager.editorExtend.queryAssetInfo');\n }\n }\n};\n\n/**\n * `cc.url` is deprecated\n *\n * @deprecated cc.url is deprecated\n * @class url\n * @static\n */\ncc.url = {\n normalize (url) {\n cc.warnID(1400, 'cc.url.normalize', 'cc.assetManager.utils.normalize');\n return cc.assetManager.utils.normalize(url);\n },\n\n /**\n * `cc.url.raw` is deprecated, please use `cc.resources.load` directly, or use `Asset.nativeUrl` instead.\n *\n * @deprecated cc.url.raw is deprecated, please use cc.resources.load directly, or use Asset.nativeUrl instead.\n * @method raw\n * @param {String} url\n * @return {String}\n */\n raw (url) {\n cc.warnID(1400, 'cc.url.raw', 'cc.resources.load');\n if (url.startsWith('resources/')) {\n return cc.assetManager._transform({'path': cc.path.changeExtname(url.substr(10)), bundle: cc.AssetManager.BuiltinBundleName.RESOURCES, __isNative__: true, ext: cc.path.extname(url)});\n }\n return '';\n }\n};\n\nlet onceWarns = {\n loader: true,\n assetLibrary: true,\n};\n\nObject.defineProperties(cc, {\n loader: {\n get () {\n if (CC_DEBUG) {\n if (onceWarns.loader) {\n onceWarns.loader = false;\n cc.log('cc.loader is deprecated, use cc.assetManager instead please. See https://docs.cocos.com/creator/manual/zh/release-notes/asset-manager-upgrade-guide.html');\n }\n }\n return loader;\n }\n },\n\n AssetLibrary: {\n get () {\n if (CC_DEBUG) {\n if (onceWarns.assetLibrary) {\n onceWarns.assetLibrary = false;\n cc.log('cc.AssetLibrary is deprecated, use cc.assetManager instead please. See https://docs.cocos.com/creator/manual/zh/release-notes/asset-manager-upgrade-guide.html');\n }\n }\n return AssetLibrary;\n }\n },\n\n /**\n * `cc.LoadingItems` was removed, please use {{#crossLink \"Task\"}}{{/crossLink}} instead\n *\n * @deprecated cc.LoadingItems was removed, please use cc.AssetManager.Task instead\n * @class LoadingItems\n */\n LoadingItems: {\n get () {\n cc.warnID(1400, 'cc.LoadingItems', 'cc.AssetManager.Task');\n return cc.AssetManager.Task;\n }\n },\n\n Pipeline: {\n get () {\n cc.warnID(1400, 'cc.Pipeline', 'cc.AssetManager.Pipeline');\n return cc.AssetManager.Pipeline;\n }\n }\n});\n\njs.obsolete(cc, 'cc.RawAsset', 'cc.Asset');\n\n/**\n * @class Asset\n */\n/**\n * `cc.Asset.url` is deprecated, please use {{#crossLink \"Asset/nativeUrl:property\"}}{{/crossLink}} instead\n * @property url\n * @type {String}\n * @deprecated cc.Asset.url is deprecated, please use cc.Asset.nativeUrl instead\n */\njs.obsolete(cc.Asset.prototype, 'cc.Asset.url', 'nativeUrl');\n\n/**\n * @class macro\n * @static\n */\nObject.defineProperties(cc.macro, {\n /**\n * `cc.macro.DOWNLOAD_MAX_CONCURRENT` is deprecated now, please use {{#crossLink \"Downloader/maxConcurrency:property\"}}{{/crossLink}} instead\n * \n * @property DOWNLOAD_MAX_CONCURRENT\n * @type {Number}\n * @deprecated cc.macro.DOWNLOAD_MAX_CONCURRENT is deprecated now, please use cc.assetManager.downloader.maxConcurrency instead\n */\n DOWNLOAD_MAX_CONCURRENT: {\n get () {\n return cc.assetManager.downloader.maxConcurrency;\n },\n\n set (val) {\n cc.assetManager.downloader.maxConcurrency = val;\n }\n }\n});\n\nObject.assign(cc.director, {\n _getSceneUuid (sceneName) {\n cc.assetManager.main.getSceneInfo(sceneName);\n }\n});\n\nObject.defineProperties(cc.game, {\n _sceneInfos: {\n get () {\n var scenes = [];\n cc.assetManager.main._config.scenes.forEach(function (val) {\n scenes.push(val);\n });\n return scenes;\n }\n }\n});\n\nvar parseParameters = utilities.parseParameters;\nutilities.parseParameters = function (options, onProgress, onComplete) {\n var result = parseParameters(options, onProgress, onComplete);\n result.onProgress = result.onProgress || loader.onProgress;\n return result;\n};\n\nvar autoRelease = releaseManager._autoRelease;\nreleaseManager._autoRelease = function () {\n autoRelease.apply(this, arguments);\n var releaseSettings = loader._autoReleaseSetting;\n var keys = Object.keys(releaseSettings);\n for (let i = 0; i < keys.length; i++) {\n let key = keys[i];\n if (releaseSettings[key] === true) {\n var asset = cc.assetManager.assets.get(key);\n asset && releaseManager.tryRelease(asset);\n }\n }\n};","/****************************************************************************\n Copyright (c) 2019 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n\nconst helper = require('./helper');\nconst MissingClass = CC_EDITOR && Editor.require('app://editor/page/scene-utils/missing-class-reporter').MissingClass;\nrequire('../platform/deserialize');\n\nfunction deserialize (json, options) {\n var classFinder, missingClass;\n if (CC_EDITOR) {\n missingClass = MissingClass;\n classFinder = function (type, data, owner, propName) {\n var res = missingClass.classFinder(type, data, owner, propName);\n if (res) {\n return res;\n }\n return cc._MissingScript;\n };\n classFinder.onDereferenced = missingClass.classFinder.onDereferenced;\n }\n else {\n classFinder = cc._MissingScript.safeFindClass;\n }\n\n let pool = null;\n if (!CC_PREVIEW) {\n pool = cc.deserialize.Details.pool;\n }\n else {\n let { default: deserializeForCompiled } = require('../platform/deserialize-compiled');\n let deserializeForEditor = require('../platform/deserialize-editor');\n if (deserializeForCompiled.isCompiledJson(json)) {\n pool = deserializeForCompiled.Details.pool;\n }\n else {\n pool = deserializeForEditor.Details.pool;\n }\n }\n var tdInfo = pool.get();\n\n var asset;\n try {\n asset = cc.deserialize(json, tdInfo, {\n classFinder: classFinder,\n customEnv: options\n });\n }\n catch (e) {\n pool.put(tdInfo);\n throw e;\n }\n\n if (CC_EDITOR && missingClass) {\n missingClass.reportMissingClass(asset);\n missingClass.reset();\n }\n\n var uuidList = tdInfo.uuidList;\n var objList = tdInfo.uuidObjList;\n var propList = tdInfo.uuidPropList;\n var depends = [];\n\n for (var i = 0; i < uuidList.length; i++) {\n var dependUuid = uuidList[i];\n depends[i] = {\n uuid: helper.decodeUuid(dependUuid),\n owner: objList[i],\n prop: propList[i]\n };\n }\n\n // non-native deps\n asset.__depends__ = depends;\n // native dep\n asset._native && (asset.__nativeDepend__ = true);\n pool.put(tdInfo);\n return asset;\n\n}\n\nmodule.exports = deserialize;\n","/****************************************************************************\n Copyright (c) 2019 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\nvar __audioSupport = cc.sys.__audioSupport;\nconst { parseParameters } = require('./utilities');\n\nfunction downloadDomAudio (url, options, onComplete) {\n var { options, onComplete } = parseParameters(options, undefined, onComplete);\n\n var dom = document.createElement('audio');\n dom.src = url;\n\n var clearEvent = function () {\n clearTimeout(timer);\n dom.removeEventListener(\"canplaythrough\", success, false);\n dom.removeEventListener(\"error\", failure, false);\n if(__audioSupport.USE_LOADER_EVENT)\n dom.removeEventListener(__audioSupport.USE_LOADER_EVENT, success, false);\n };\n\n var timer = setTimeout(function () {\n if (dom.readyState === 0)\n failure();\n else\n success();\n }, 8000);\n\n var success = function () {\n clearEvent();\n onComplete && onComplete(null, dom);\n };\n \n var failure = function () {\n clearEvent();\n var message = 'load audio failure - ' + url;\n cc.log(message);\n onComplete && onComplete(new Error(message));\n };\n\n dom.addEventListener(\"canplaythrough\", success, false);\n dom.addEventListener(\"error\", failure, false);\n if(__audioSupport.USE_LOADER_EVENT)\n dom.addEventListener(__audioSupport.USE_LOADER_EVENT, success, false);\n return dom;\n}\n\nmodule.exports = downloadDomAudio;","\n/****************************************************************************\n Copyright (c) 2019 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n\nconst { parseParameters } = require('./utilities');\n\nfunction downloadDomImage (url, options, onComplete) {\n var { options, onComplete } = parseParameters(options, undefined, onComplete);\n\n var img = new Image();\n\n if (window.location.protocol !== 'file:') {\n img.crossOrigin = 'anonymous';\n }\n\n function loadCallback () {\n img.removeEventListener('load', loadCallback);\n img.removeEventListener('error', errorCallback);\n onComplete && onComplete(null, img);\n }\n \n function errorCallback () {\n img.removeEventListener('load', loadCallback);\n img.removeEventListener('error', errorCallback);\n onComplete && onComplete(new Error(cc.debug.getError(4930, url)));\n }\n\n img.addEventListener('load', loadCallback);\n img.addEventListener('error', errorCallback);\n img.src = url;\n return img;\n}\n\nmodule.exports = downloadDomImage;","/****************************************************************************\n Copyright (c) 2019 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\nconst { parseParameters } = require('./utilities');\n\nfunction downloadFile (url, options, onProgress, onComplete) {\n var { options, onProgress, onComplete } = parseParameters(options, onProgress, onComplete);\n\n var xhr = new XMLHttpRequest(), errInfo = 'download failed: ' + url + ', status: ';\n\n xhr.open('GET', url, true);\n\n if (options.responseType !== undefined) xhr.responseType = options.responseType;\n if (options.withCredentials !== undefined) xhr.withCredentials = options.withCredentials;\n if (options.mimeType !== undefined && xhr.overrideMimeType ) xhr.overrideMimeType(options.mimeType);\n if (options.timeout !== undefined) xhr.timeout = options.timeout;\n\n if (options.header) {\n for (var header in options.header) {\n xhr.setRequestHeader(header, options.header[header]);\n }\n }\n\n xhr.onload = function () {\n if ( xhr.status === 200 || xhr.status === 0 ) {\n onComplete && onComplete(null, xhr.response);\n } else {\n onComplete && onComplete(new Error(errInfo + xhr.status + '(no response)'));\n }\n\n };\n\n if (onProgress) {\n xhr.onprogress = function (e) {\n if (e.lengthComputable) {\n onProgress(e.loaded, e.total);\n }\n };\n }\n\n xhr.onerror = function(){\n onComplete && onComplete(new Error(errInfo + xhr.status + '(error)'));\n };\n\n xhr.ontimeout = function(){\n onComplete && onComplete(new Error(errInfo + xhr.status + '(time out)'));\n };\n\n xhr.onabort = function(){\n onComplete && onComplete(new Error(errInfo + xhr.status + '(abort)'));\n };\n\n xhr.send(null);\n \n return xhr;\n}\n\nmodule.exports = downloadFile;","\n/****************************************************************************\n Copyright (c) 2019 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\nconst { parseParameters } = require('./utilities');\n\nconst downloaded = {};\n\nfunction downloadScript (url, options, onComplete) {\n var { options, onComplete } = parseParameters(options, undefined, onComplete);\n\n // no need to load script again\n if (downloaded[url]) {\n return onComplete && onComplete(null);\n }\n\n var d = document, s = document.createElement('script');\n\n if (window.location.protocol !== 'file:') {\n s.crossOrigin = 'anonymous';\n }\n\n s.async = options.async;\n s.src = url;\n function loadHandler () {\n s.parentNode.removeChild(s);\n s.removeEventListener('load', loadHandler, false);\n s.removeEventListener('error', errorHandler, false);\n downloaded[url] = true;\n onComplete && onComplete(null);\n }\n\n function errorHandler() {\n s.parentNode.removeChild(s);\n s.removeEventListener('load', loadHandler, false);\n s.removeEventListener('error', errorHandler, false);\n onComplete && onComplete(new Error(cc.debug.getError(4928, url)));\n }\n \n s.addEventListener('load', loadHandler, false);\n s.addEventListener('error', errorHandler, false);\n d.body.appendChild(s);\n}\n\nmodule.exports = downloadScript;","/****************************************************************************\n Copyright (c) 2019 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n/**\n * @module cc.AssetManager\n */\nconst js = require('../platform/js');\nconst debug = require('../CCDebug');\nconst { loadFont } = require('./font-loader');\nconst callInNextTick = require('../platform/utils').callInNextTick;\nconst downloadDomImage = require('./download-dom-image');\nconst downloadDomAudio = require('./download-dom-audio');\nconst downloadFile = require('./download-file');\nconst downloadScript = require('./download-script.js');\nconst Cache = require('./cache');\nconst { files } = require('./shared');\nconst { __audioSupport, capabilities } = require('../platform/CCSys');\nconst { urlAppendTimestamp, retry } = require('./utilities');\n\nconst REGEX = /^(?:\\w+:\\/\\/|\\.+\\/).+/;\n\n\nvar formatSupport = __audioSupport.format || [];\n\nvar unsupported = function (url, options, onComplete) {\n onComplete(new Error(debug.getError(4927)));\n}\n\nvar downloadAudio = function (url, options, onComplete) {\n // web audio need to download file as arrayBuffer\n if (options.audioLoadMode !== cc.AudioClip.LoadMode.DOM_AUDIO) {\n downloadArrayBuffer(url, options, onComplete);\n }\n else {\n downloadDomAudio(url, options, onComplete);\n }\n};\n\nvar downloadAudio = (!CC_EDITOR || !Editor.isMainProcess) ? (formatSupport.length === 0 ? unsupported : (__audioSupport.WEB_AUDIO ? downloadAudio : downloadDomAudio)) : null;\n\nvar downloadImage = function (url, options, onComplete) {\n // if createImageBitmap is valid, we can transform blob to ImageBitmap. Otherwise, just use HTMLImageElement to load\n var func = capabilities.imageBitmap && cc.macro.ALLOW_IMAGE_BITMAP ? downloadBlob : downloadDomImage;\n func.apply(this, arguments);\n};\n\nvar downloadBlob = function (url, options, onComplete) {\n options.responseType = \"blob\";\n downloadFile(url, options, options.onFileProgress, onComplete);\n};\n\nvar downloadJson = function (url, options, onComplete) {\n options.responseType = \"json\";\n downloadFile(url, options, options.onFileProgress, function (err, data) {\n if (!err && typeof data === 'string') {\n try {\n data = JSON.parse(data);\n }\n catch (e) {\n err = e;\n }\n }\n onComplete && onComplete(err, data);\n });\n};\n\nvar downloadArrayBuffer = function (url, options, onComplete) {\n options.responseType = \"arraybuffer\";\n downloadFile(url, options, options.onFileProgress, onComplete);\n};\n\nvar downloadText = function (url, options, onComplete) {\n options.responseType = \"text\";\n downloadFile(url, options, options.onFileProgress, onComplete);\n};\n\nvar downloadVideo = function (url, options, onComplete) {\n onComplete(null, url);\n};\n\nvar downloadBundle = function (nameOrUrl, options, onComplete) {\n let bundleName = cc.path.basename(nameOrUrl);\n let url = nameOrUrl;\n if (!REGEX.test(url)) url = 'assets/' + bundleName;\n var version = options.version || downloader.bundleVers[bundleName];\n var count = 0;\n var config = `${url}/config.${version ? version + '.' : ''}json`;\n let out = null, error = null;\n downloadJson(config, options, function (err, response) {\n if (err) {\n error = err;\n }\n out = response;\n out && (out.base = url + '/');\n count++;\n if (count === 2) {\n onComplete(error, out);\n }\n });\n\n var js = `${url}/index.${version ? version + '.' : ''}js`;\n downloadScript(js, options, function (err) {\n if (err) {\n error = err;\n }\n count++;\n if (count === 2) {\n onComplete(error, out);\n }\n });\n};\n\nvar _downloading = new Cache();\nvar _queue = [];\nvar _queueDirty = false;\n\n// the number of loading thread\nvar _totalNum = 0;\n\n// the number of request that launched in this period\nvar _totalNumThisPeriod = 0;\n\n// last time, if now - lastTime > period, refresh _totalNumThisPeriod.\nvar _lastDate = -1;\n\n// if _totalNumThisPeriod equals max, move request to next period using setTimeOut.\nvar _checkNextPeriod = false;\n\nvar updateTime = function () {\n var now = Date.now();\n // use deltaTime as interval\n let interval = cc.director._deltaTime > downloader._maxInterval ? downloader._maxInterval : cc.director._deltaTime;\n if (now - _lastDate > interval * 1000) {\n _totalNumThisPeriod = 0;\n _lastDate = now;\n }\n};\n\n// handle the rest request in next period\nvar handleQueue = function (maxConcurrency, maxRequestsPerFrame) {\n _checkNextPeriod = false;\n updateTime();\n while (_queue.length > 0 && _totalNum < maxConcurrency && _totalNumThisPeriod < maxRequestsPerFrame) {\n if (_queueDirty) {\n _queue.sort(function (a, b) {\n return a.priority - b.priority;\n });\n _queueDirty = false;\n }\n var nextOne = _queue.pop();\n if (!nextOne) {\n break;\n }\n _totalNum++;\n _totalNumThisPeriod++;\n nextOne.invoke();\n }\n\n if (_queue.length > 0 && _totalNum < maxConcurrency) {\n callInNextTick(handleQueue, maxConcurrency, maxRequestsPerFrame);\n _checkNextPeriod = true;\n }\n}\n\n\n/**\n * !#en\n * Control all download process, it is a singleton. All member can be accessed with `cc.assetManager.downloader` , it can download several types of files:\n * 1. Text\n * 2. Image\n * 3. Audio\n * 4. Assets\n * 5. Scripts\n * \n * !#zh\n * 管理所有下载过程,downloader 是个单例,所有成员能通过 `cc.assetManager.downloader` 访问,它能下载以下几种类型的文件:\n * 1. 文本\n * 2. 图片\n * 3. 音频\n * 4. 资源\n * 5. 脚本\n * \n * @class Downloader\n */\nvar downloader = {\n\n _remoteServerAddress: '',\n _maxInterval: 1 / 30,\n \n /**\n * !#en \n * The address of remote server\n * \n * !#zh\n * 远程服务器地址\n * \n * @property remoteServerAddress\n * @type {string}\n * @default ''\n */\n get remoteServerAddress () {\n return this._remoteServerAddress;\n },\n\n /**\n * !#en \n * The maximum number of concurrent when downloading\n * \n * !#zh\n * 下载时的最大并发数\n * \n * @property maxConcurrency\n * @type {number}\n * @default 6\n */\n maxConcurrency: 6,\n\n /**\n * !#en \n * The maximum number of request can be launched per frame when downloading\n * \n * !#zh\n * 下载时每帧可以启动的最大请求数\n * \n * @property maxRequestsPerFrame\n * @type {number}\n * @default 6\n */\n maxRequestsPerFrame: 6,\n\n /**\n * !#en\n * The max number of retries when fail\n * \n * !#zh\n * 失败重试次数\n * \n * @property maxRetryCount\n * @type {Number}\n */\n maxRetryCount: 3,\n\n appendTimeStamp: false,\n\n limited: true,\n\n /**\n * !#en\n * Wait for while before another retry, unit: ms\n * \n * !#zh\n * 重试的间隔时间\n * \n * @property retryInterval\n * @type {Number}\n */\n retryInterval: 2000,\n\n bundleVers: null,\n\n /*\n * !#en\n * Use Image element to download image\n * \n * !#zh\n * 使用 Image 元素来下载图片\n * \n * @method downloadDomImage\n * @param {string} url - Url of the image\n * @param {Object} [options] - Some optional paramters\n * @param {Function} [onComplete] - Callback when image loaded or failed\n * @param {Error} onComplete.err - The occurred error, null indicetes success\n * @param {HTMLImageElement} onComplete.img - The loaded Image element, null if error occurred\n * @returns {HTMLImageElement} The image element\n * \n * @example\n * downloadDomImage('http://example.com/test.jpg', null, (err, img) => console.log(err));\n * \n * @typescript\n * downloadDomImage(url: string, options?: Record , onComplete?: (err: Error, img: HTMLImageElement) => void): HTMLImageElement\n * downloadDomImage(url: string, onComplete?: (err: Error, img: HTMLImageElement) => void): HTMLImageElement\n */\n downloadDomImage: downloadDomImage,\n\n /*\n * !#en\n * Use audio element to download audio\n * \n * !#zh\n * 使用 Audio 元素来下载音频 \n * \n * @method downloadDomAudio\n * @param {string} url - Url of the audio\n * @param {Object} [options] - Some optional paramters\n * @param {Function} [onComplete] - Callback invoked when audio loaded or failed\n * @param {Error} onComplete.err - The occurred error, null indicetes success\n * @param {HTMLAudioElement} onComplete.audio - The loaded audio element, null if error occurred\n * @returns {HTMLAudioElement} The audio element\n * \n * @example\n * downloadDomAudio('http://example.com/test.mp3', null, (err, audio) => console.log(err));\n * \n * @typescript\n * downloadDomAudio(url: string, options?: Record, onComplete?: (err: Error, audio: HTMLAudioElement) => void): HTMLAudioElement\n * downloadDomAudio(url: string, onComplete?: (err: Error, audio: HTMLAudioElement) => void): HTMLAudioElement\n */\n downloadDomAudio: downloadDomAudio,\n \n /*\n * !#en\n * Use XMLHttpRequest to download file\n * \n * !#zh\n * 使用 XMLHttpRequest 来下载文件\n * \n * @method downloadFile\n * @param {string} url - Url of the file\n * @param {Object} [options] - Some optional paramters\n * @param {string} [options.responseType] - Indicate which type of content should be returned\n * @param {boolean} [options.withCredentials] - Indicate whether or not cross-site Access-Contorl requests should be made using credentials\n * @param {string} [options.mimeType] - Indicate which type of content should be returned. In some browsers, responseType does't work, you can use mimeType instead\n * @param {Number} [options.timeout] - Represent the number of ms a request can take before being terminated.\n * @param {Object} [options.header] - The header should be tranferred to server\n * @param {Function} [onFileProgress] - Callback continuously during download is processing\n * @param {Number} onFileProgress.loaded - Size of downloaded content.\n * @param {Number} onFileProgress.total - Total size of content.\n * @param {Function} [onComplete] - Callback when file loaded or failed\n * @param {Error} onComplete.err - The occurred error, null indicetes success\n * @param {*} onComplete.response - The loaded content, null if error occurred, type of content can be indicated by options.responseType\n * @returns {XMLHttpRequest} The xhr to be send\n * \n * @example\n * downloadFile('http://example.com/test.bin', {responseType: 'arraybuffer'}, null, (err, arrayBuffer) => console.log(err));\n * \n * @typescript\n * downloadFile(url: string, options?: Record, onFileProgress?: (loaded: Number, total: Number) => void, onComplete?: (err: Error, response: any) => void): XMLHttpRequest\n * downloadFile(url: string, onFileProgress?: (loaded: Number, total: Number) => void, onComplete?: (err: Error, response: any) => void): XMLHttpRequest\n * downloadFile(url: string, options?: Record, onComplete?: (err: Error, response: any) => void): XMLHttpRequest\n * downloadFile(url: string, onComplete?: (err: Error, response: any) => void): XMLHttpRequest\n */\n downloadFile: downloadFile,\n\n /*\n * !#en\n * Load script \n * \n * !#zh\n * 加载脚本\n * \n * @method downloadScript\n * @param {string} url - Url of the script\n * @param {Object} [options] - Some optional paramters\n * @param {boolean} [options.isAsync] - Indicate whether or not loading process should be async\n * @param {Function} [onComplete] - Callback when script loaded or failed\n * @param {Error} onComplete.err - The occurred error, null indicetes success\n * \n * @example\n * downloadScript('http://localhost:8080/index.js', null, (err) => console.log(err));\n * \n * @typescript\n * downloadScript(url: string, options?: Record, onComplete?: (err: Error) => void): void\n * downloadScript(url: string, onComplete?: (err: Error) => void): void\n */\n downloadScript: downloadScript,\n\n init (bundleVers, remoteServerAddress) {\n _downloading.clear();\n _queue.length = 0;\n this._remoteServerAddress = remoteServerAddress || '';\n this.bundleVers = bundleVers || Object.create(null);\n },\n\n /**\n * !#en\n * Register custom handler if you want to change default behavior or extend downloader to download other format file\n * \n * !#zh\n * 当你想修改默认行为或者拓展 downloader 来下载其他格式文件时可以注册自定义的 handler \n * \n * @method register\n * @param {string|Object} type - Extension likes '.jpg' or map likes {'.jpg': jpgHandler, '.png': pngHandler}\n * @param {Function} [handler] - handler\n * @param {string} handler.url - url\n * @param {Object} handler.options - some optional paramters will be transferred to handler.\n * @param {Function} handler.onComplete - callback when finishing downloading\n * \n * @example\n * downloader.register('.tga', (url, options, onComplete) => onComplete(null, null));\n * downloader.register({'.tga': (url, options, onComplete) => onComplete(null, null), '.ext': (url, options, onComplete) => onComplete(null, null)});\n * \n * @typescript\n * register(type: string, handler: (url: string, options: Record, onComplete: (err: Error, content: any) => void) => void): void\n * register(map: Record, onComplete: (err: Error, content: any) => void) => void>): void\n */\n register (type, handler) {\n if (typeof type === 'object') {\n js.mixin(downloaders, type);\n }\n else {\n downloaders[type] = handler;\n }\n },\n\n /**\n * !#en\n * Use corresponding handler to download file under limitation \n * \n * !#zh\n * 在限制下使用对应的 handler 来下载文件\n * \n * @method download\n * @param {string} url - The url should be downloaded\n * @param {string} type - The type indicates that which handler should be used to download, such as '.jpg'\n * @param {Object} options - some optional paramters will be transferred to the corresponding handler.\n * @param {Function} [options.onFileProgress] - progressive callback will be transferred to handler.\n * @param {Number} [options.maxRetryCount] - How many times should retry when download failed\n * @param {Number} [options.maxConcurrency] - The maximum number of concurrent when downloading\n * @param {Number} [options.maxRequestsPerFrame] - The maximum number of request can be launched per frame when downloading\n * @param {Number} [options.priority] - The priority of this url, default is 0, the greater number is higher priority.\n * @param {Function} onComplete - callback when finishing downloading\n * @param {Error} onComplete.err - The occurred error, null indicetes success\n * @param {*} onComplete.contetnt - The downloaded file\n * \n * @example\n * download('http://example.com/test.tga', '.tga', {onFileProgress: (loaded, total) => console.lgo(loaded/total)}, onComplete: (err) => console.log(err));\n * \n * @typescript\n * download(id: string, url: string, type: string, options: Record, onComplete: (err: Error, content: any) => void): void\n */\n download (id, url, type, options, onComplete) {\n let func = downloaders[type] || downloaders['default'];\n let self = this;\n // if it is downloaded, don't download again\n let file, downloadCallbacks;\n if (file = files.get(id)) {\n onComplete(null, file);\n }\n else if (downloadCallbacks = _downloading.get(id)) {\n downloadCallbacks.push(onComplete);\n for (let i = 0, l = _queue.length; i < l; i++) {\n var item = _queue[i];\n if (item.id === id) {\n var priority = options.priority || 0;\n if (item.priority < priority) {\n item.priority = priority;\n _queueDirty = true;\n } \n return;\n }\n } \n }\n else {\n // if download fail, should retry\n var maxRetryCount = typeof options.maxRetryCount !== 'undefined' ? options.maxRetryCount : this.maxRetryCount;\n var maxConcurrency = typeof options.maxConcurrency !== 'undefined' ? options.maxConcurrency : this.maxConcurrency;\n var maxRequestsPerFrame = typeof options.maxRequestsPerFrame !== 'undefined' ? options.maxRequestsPerFrame : this.maxRequestsPerFrame;\n\n function process (index, callback) {\n if (index === 0) {\n _downloading.add(id, [onComplete]);\n }\n \n if (!self.limited) return func(urlAppendTimestamp(url), options, callback);\n\n // refresh\n updateTime();\n\n function invoke () {\n func(urlAppendTimestamp(url), options, function () {\n // when finish downloading, update _totalNum\n _totalNum--;\n if (!_checkNextPeriod && _queue.length > 0) {\n callInNextTick(handleQueue, maxConcurrency, maxRequestsPerFrame);\n _checkNextPeriod = true;\n }\n callback.apply(this, arguments);\n });\n }\n\n if (_totalNum < maxConcurrency && _totalNumThisPeriod < maxRequestsPerFrame) {\n invoke();\n _totalNum++;\n _totalNumThisPeriod++;\n }\n else {\n // when number of request up to limitation, cache the rest\n _queue.push({ id, priority: options.priority || 0, invoke });\n _queueDirty = true;\n \n if (!_checkNextPeriod && _totalNum < maxConcurrency) {\n callInNextTick(handleQueue, maxConcurrency, maxRequestsPerFrame);\n _checkNextPeriod = true;\n }\n }\n }\n\n // when retry finished, invoke callbacks\n function finale (err, result) {\n if (!err) files.add(id, result);\n var callbacks = _downloading.remove(id);\n for (let i = 0, l = callbacks.length; i < l; i++) {\n callbacks[i](err, result);\n }\n }\n \n retry(process, maxRetryCount, this.retryInterval, finale);\n }\n }\n};\n\n// dafault handler map\nvar downloaders = {\n // Images\n '.png' : downloadImage,\n '.jpg' : downloadImage,\n '.bmp' : downloadImage,\n '.jpeg' : downloadImage,\n '.gif' : downloadImage,\n '.ico' : downloadImage,\n '.tiff' : downloadImage,\n '.webp' : downloadImage,\n '.image' : downloadImage,\n '.pvr': downloadArrayBuffer,\n '.pkm': downloadArrayBuffer,\n\n // Audio\n '.mp3' : downloadAudio,\n '.ogg' : downloadAudio,\n '.wav' : downloadAudio,\n '.m4a' : downloadAudio,\n\n // Txt\n '.txt' : downloadText,\n '.xml' : downloadText,\n '.vsh' : downloadText,\n '.fsh' : downloadText,\n '.atlas' : downloadText,\n\n '.tmx' : downloadText,\n '.tsx' : downloadText,\n\n '.json' : downloadJson,\n '.ExportJson' : downloadJson,\n '.plist' : downloadText,\n\n '.fnt' : downloadText,\n\n // font\n '.font' : loadFont,\n '.eot' : loadFont,\n '.ttf' : loadFont,\n '.woff' : loadFont,\n '.svg' : loadFont,\n '.ttc' : loadFont,\n\n // Video\n '.mp4': downloadVideo,\n '.avi': downloadVideo,\n '.mov': downloadVideo,\n '.mpg': downloadVideo,\n '.mpeg': downloadVideo,\n '.rm': downloadVideo,\n '.rmvb': downloadVideo,\n\n // Binary\n '.binary' : downloadArrayBuffer,\n '.bin': downloadArrayBuffer,\n '.dbbin': downloadArrayBuffer,\n '.skel': downloadArrayBuffer,\n\n '.js': downloadScript,\n\n 'bundle': downloadBundle,\n\n 'default': downloadText\n\n};\n\ndownloader._downloaders = downloaders;\nmodule.exports = downloader;\n","/****************************************************************************\n Copyright (c) 2020 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\nconst Bundle = require('./bundle');\nconst Cache = require('./cache');\nconst { assets, bundles } = require('./shared');\n\nconst _creating = new Cache();\n\nfunction createTexture (id, data, options, onComplete) {\n let out = null, err = null;\n try {\n out = new cc.Texture2D();\n out._nativeUrl = id;\n out._nativeAsset = data;\n }\n catch (e) {\n err = e;\n }\n onComplete && onComplete(err, out);\n}\n\nfunction createAudioClip (id, data, options, onComplete) {\n let out = new cc.AudioClip();\n out._nativeUrl = id;\n out._nativeAsset = data;\n out.duration = data.duration;\n onComplete && onComplete(null, out);\n}\n\nfunction createJsonAsset (id, data, options, onComplete) {\n let out = new cc.JsonAsset();\n out.json = data;\n onComplete && onComplete(null, out);\n}\n\nfunction createTextAsset (id, data, options, onComplete) {\n let out = new cc.TextAsset();\n out.text = data;\n onComplete && onComplete(null, out);\n}\n\nfunction createFont (id, data, options, onComplete) {\n let out = new cc.TTFFont();\n out._nativeUrl = id;\n out._nativeAsset = data;\n onComplete && onComplete(null, out);\n}\n\nfunction createBufferAsset (id, data, options, onComplete) {\n let out = new cc.BufferAsset();\n out._nativeUrl = id;\n out._nativeAsset = data;\n onComplete && onComplete(null, out);\n}\n\nfunction createAsset (id, data, options, onComplete) {\n let out = new cc.Asset();\n out._nativeUrl = id;\n out._nativeAsset = data;\n onComplete && onComplete(null, out);\n}\n\nfunction createBundle (id, data, options, onComplete) {\n let bundle = bundles.get(data.name);\n if (!bundle) {\n bundle = new Bundle();\n data.base = data.base || id + '/';\n bundle.init(data);\n }\n onComplete && onComplete(null, bundle);\n}\n\nconst factory = {\n\n register (type, handler) {\n if (typeof type === 'object') {\n cc.js.mixin(producers, type);\n }\n else {\n producers[type] = handler;\n }\n },\n\n create (id, data, type, options, onComplete) {\n var func = producers[type] || producers['default'];\n let asset, creating;\n if (asset = assets.get(id)) {\n onComplete(null, asset);\n }\n else if (creating = _creating.get(id)) {\n creating.push(onComplete);\n }\n else {\n _creating.add(id, [onComplete]);\n func(id, data, options, function (err, data) {\n if (!err && data instanceof cc.Asset) {\n data._uuid = id;\n assets.add(id, data);\n }\n let callbacks = _creating.remove(id);\n for (let i = 0, l = callbacks.length; i < l; i++) {\n callbacks[i](err, data);\n }\n });\n }\n }\n};\n\nconst producers = {\n // Images\n '.png' : createTexture,\n '.jpg' : createTexture,\n '.bmp' : createTexture,\n '.jpeg' : createTexture,\n '.gif' : createTexture,\n '.ico' : createTexture,\n '.tiff' : createTexture,\n '.webp' : createTexture,\n '.image' : createTexture,\n '.pvr': createTexture,\n '.pkm': createTexture,\n\n // Audio\n '.mp3' : createAudioClip,\n '.ogg' : createAudioClip,\n '.wav' : createAudioClip,\n '.m4a' : createAudioClip,\n\n // Txt\n '.txt' : createTextAsset,\n '.xml' : createTextAsset,\n '.vsh' : createTextAsset,\n '.fsh' : createTextAsset,\n '.atlas' : createTextAsset,\n\n '.tmx' : createTextAsset,\n '.tsx' : createTextAsset,\n '.fnt' : createTextAsset,\n\n '.json' : createJsonAsset,\n '.ExportJson' : createJsonAsset,\n\n // font\n '.font' : createFont,\n '.eot' : createFont,\n '.ttf' : createFont,\n '.woff' : createFont,\n '.svg' : createFont,\n '.ttc' : createFont,\n\n // Binary\n '.binary': createBufferAsset,\n '.bin': createBufferAsset,\n '.dbbin': createBufferAsset,\n '.skel': createBufferAsset,\n\n 'bundle': createBundle,\n\n 'default': createAsset\n\n};\n\nmodule.exports = factory;\n","/****************************************************************************\n Copyright (c) 2019 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\nconst packManager = require('./pack-manager');\nconst Task = require('./task');\nconst { getDepends, clear, forEach } = require('./utilities');\nconst { assets, fetchPipeline } = require('./shared');\n\nfunction fetch (task, done) {\n\n let firstTask = false;\n if (!task.progress) {\n task.progress = { finish: 0, total: task.input.length, canInvoke: true }; \n firstTask = true;\n }\n\n let options = task.options, depends = [], progress = task.progress, total = progress.total;\n options.__exclude__ = options.__exclude__ || Object.create(null);\n\n task.output = [];\n\n forEach(task.input, function (item, cb) {\n \n if (!item.isNative && assets.has(item.uuid)) {\n var asset = assets.get(item.uuid);\n asset.addRef();\n handle(item, task, asset, null, asset.__asyncLoadAssets__, depends, total, done);\n return cb();\n }\n\n packManager.load(item, task.options, function (err, data) {\n if (err) {\n if (!task.isFinish) {\n if (!cc.assetManager.force || firstTask) {\n cc.error(err.message, err.stack);\n progress.canInvoke = false;\n done(err);\n }\n else {\n handle(item, task, null, null, false, depends, total, done);\n }\n }\n }\n else {\n if (!task.isFinish) handle(item, task, null, data, !item.isNative, depends, total, done);\n }\n cb();\n });\n \n }, function () {\n\n if (task.isFinish) {\n clear(task, true);\n return task.dispatch('error');\n } \n if (depends.length > 0) {\n\n // stage 2 , download depend asset\n let subTask = Task.create({\n name: task.name + ' dependencies',\n input: depends,\n progress,\n options,\n onProgress: task.onProgress,\n onError: Task.prototype.recycle,\n onComplete: function (err) {\n if (!err) {\n task.output.push.apply(task.output, this.output);\n subTask.recycle();\n }\n if (firstTask) decreaseRef(task);\n done(err);\n },\n });\n fetchPipeline.async(subTask);\n return;\n }\n if (firstTask) decreaseRef(task);\n done();\n });\n}\n\nfunction decreaseRef (task) {\n let output = task.output;\n for (let i = 0, l = output.length; i < l; i++) {\n output[i].content && output[i].content.decRef(false);\n }\n}\n\nfunction handle (item, task, content, file, loadDepends, depends, last, done) {\n\n var exclude = task.options.__exclude__;\n var progress = task.progress;\n\n item.content = content;\n item.file = file;\n task.output.push(item);\n\n if (loadDepends) {\n exclude[item.uuid] = true;\n getDepends(item.uuid, file || content, exclude, depends, true, false, item.config);\n progress.total = last + depends.length;\n }\n\n progress.canInvoke && task.dispatch('progress', ++progress.finish, progress.total, item);\n}\n\nmodule.exports = fetch;","/****************************************************************************\n Copyright (c) 2019 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n\nconst textUtils = require('../utils/text-utils');\n\nlet _canvasContext = null;\n// letter symbol number CJK\nlet _testString = \"BES bswy:->@123\\u4E01\\u3041\\u1101\";\n\nlet _fontFaces = Object.create(null);\nlet _intervalId = -1;\nlet _loadingFonts = [];\n// 3 seconds timeout\nlet _timeout = 3000;\n\n// Refer to https://github.com/typekit/webfontloader/blob/master/src/core/fontwatcher.js\nlet useNativeCheck = (function () {\n var nativeCheck = undefined;\n return function () {\n if (nativeCheck === undefined) {\n if (!!window.FontFace) {\n var match = /Gecko.*Firefox\\/(\\d+)/.exec(window.navigator.userAgent);\n var safari10Match = /OS X.*Version\\/10\\..*Safari/.exec(window.navigator.userAgent) && /Apple/.exec(window.navigator.vendor);\n \n if (match) {\n nativeCheck = parseInt(match[1], 10) > 42;\n } \n else if (safari10Match) {\n nativeCheck = false;\n } \n else {\n nativeCheck = true;\n }\n \n } else {\n nativeCheck = false;\n }\n }\n\n return nativeCheck;\n \n }\n})();\n\nfunction _checkFontLoaded () {\n let allFontsLoaded = true;\n let now = Date.now();\n\n for (let i = _loadingFonts.length - 1; i >= 0; i--) {\n let fontLoadHandle = _loadingFonts[i];\n let fontFamily = fontLoadHandle.fontFamilyName;\n // load timeout\n if (now - fontLoadHandle.startTime > _timeout) {\n cc.warnID(4933, fontFamily);\n fontLoadHandle.onComplete(null, fontFamily);\n _loadingFonts.splice(i, 1);\n continue;\n }\n\n let oldWidth = fontLoadHandle.refWidth;\n let fontDesc = '40px ' + fontFamily;\n _canvasContext.font = fontDesc;\n let newWidth = textUtils.safeMeasureText(_canvasContext, _testString, fontDesc);\n // loaded successfully\n if (oldWidth !== newWidth) {\n _loadingFonts.splice(i, 1);\n fontLoadHandle.onComplete(null, fontFamily);\n }\n else {\n allFontsLoaded = false;\n }\n }\n\n if (allFontsLoaded) {\n clearInterval(_intervalId);\n _intervalId = -1;\n }\n}\n\n// refer to https://github.com/typekit/webfontloader/blob/master/src/core/nativefontwatchrunner.js\nfunction nativeCheckFontLoaded (start, font, callback) {\n var loader = new Promise(function (resolve, reject) {\n var check = function () {\n var now = Date.now();\n\n if (now - start >= _timeout) {\n reject();\n } \n else {\n document.fonts.load('40px ' + font).then(function (fonts) {\n if (fonts.length >= 1) {\n resolve();\n } \n else {\n setTimeout(check, 100);\n }\n }, function () {\n reject();\n });\n }\n };\n\n check();\n });\n \n var timeoutId = null,\n timer = new Promise(function (resolve, reject) {\n timeoutId = setTimeout(reject, _timeout);\n });\n \n Promise.race([timer, loader]).then(function () {\n if (timeoutId) {\n clearTimeout(timeoutId);\n timeoutId = null;\n }\n \n callback(null, font);\n }, function () {\n cc.warnID(4933, font);\n callback(null, font);\n });\n}\n\nvar fontLoader = {\n loadFont: function (url, options, onComplete) {\n let fontFamilyName = fontLoader._getFontFamily(url);\n\n // Already loaded fonts\n if (_fontFaces[fontFamilyName]) {\n return onComplete(null, fontFamilyName);\n }\n\n if (!_canvasContext) {\n let labelCanvas = document.createElement('canvas');\n labelCanvas.width = 100;\n labelCanvas.height = 100;\n _canvasContext = labelCanvas.getContext('2d');\n }\n \n // Default width reference to test whether new font is loaded correctly\n let fontDesc = '40px ' + fontFamilyName;\n _canvasContext.font = fontDesc;\n let refWidth = textUtils.safeMeasureText(_canvasContext, _testString, fontDesc);\n\n // Setup font face style\n let fontStyle = document.createElement(\"style\");\n fontStyle.type = \"text/css\";\n let fontStr = \"\";\n if (isNaN(fontFamilyName - 0))\n fontStr += \"@font-face { font-family:\" + fontFamilyName + \"; src:\";\n else\n fontStr += \"@font-face { font-family:'\" + fontFamilyName + \"'; src:\";\n fontStr += \"url('\" + url + \"');\";\n fontStyle.textContent = fontStr + \"}\";\n document.body.appendChild(fontStyle);\n\n // Preload font with div\n let preloadDiv = document.createElement(\"div\");\n let divStyle = preloadDiv.style;\n divStyle.fontFamily = fontFamilyName;\n preloadDiv.innerHTML = \".\";\n divStyle.position = \"absolute\";\n divStyle.left = \"-100px\";\n divStyle.top = \"-100px\";\n document.body.appendChild(preloadDiv);\n\n if (useNativeCheck()) {\n nativeCheckFontLoaded(Date.now(), fontFamilyName, onComplete);\n }\n else {\n // Save loading font\n let fontLoadHandle = {\n fontFamilyName,\n refWidth,\n onComplete,\n startTime: Date.now()\n }\n _loadingFonts.push(fontLoadHandle);\n if (_intervalId === -1) {\n _intervalId = setInterval(_checkFontLoaded, 100);\n }\n }\n _fontFaces[fontFamilyName] = fontStyle;\n },\n\n _getFontFamily: function (fontHandle) {\n var ttfIndex = fontHandle.lastIndexOf(\".ttf\");\n if (ttfIndex === -1) return fontHandle;\n\n var slashPos = fontHandle.lastIndexOf(\"/\");\n var fontFamilyName;\n if (slashPos === -1) {\n fontFamilyName = fontHandle.substring(0, ttfIndex) + \"_LABEL\";\n } else {\n fontFamilyName = fontHandle.substring(slashPos + 1, ttfIndex) + \"_LABEL\";\n }\n if (fontFamilyName.indexOf(' ') !== -1) {\n fontFamilyName = '\"' + fontFamilyName + '\"';\n }\n return fontFamilyName;\n }\n};\n\nmodule.exports = fontLoader","/****************************************************************************\n Copyright (c) 2019 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\nconst { bundles } = require('./shared');\n/**\n * @module cc.AssetManager\n */\n/**\n * !#en\n * Provide some helpful function, it is a singleton. All member can be accessed with `cc.assetManager.utils`\n * \n * !#zh\n * 提供一些辅助方法,helper 是一个单例, 所有成员能通过 `cc.assetManager.utils` 访问\n * \n * @class Helper\n */\nvar helper = {\n /**\n * !#en\n * Decode uuid, returns the original uuid\n * \n * !#zh\n * 解码 uuid,返回原始 uuid\n * \n * @method decodeUuid\n * @param {String} base64 - the encoded uuid\n * @returns {String} the original uuid \n * \n * @example\n * var uuid = 'fcmR3XADNLgJ1ByKhqcC5Z';\n * var originalUuid = decodeUuid(uuid); // fc991dd7-0033-4b80-9d41-c8a86a702e59\n * \n * @typescript\n * decodeUuid(base64: string): string\n */\n decodeUuid: require('../utils/decode-uuid'),\n\n /**\n * !#en\n * Extract uuid from url\n * \n * !#zh\n * 从 url 中提取 uuid\n * \n * @method getUuidFromURL\n * @param {String} url - url\n * @returns {String} the uuid parsed from url\n * \n * @example\n * var url = 'assets/main/import/fc/fc991dd7-0033-4b80-9d41-c8a86a702e59.json';\n * var uuid = getUuidFromURL(url); // fc991dd7-0033-4b80-9d41-c8a86a702e59\n * \n * @typescript\n * getUuidFromURL(url: string): string\n */\n getUuidFromURL: (function () {\n var _uuidRegex = /.*[/\\\\][0-9a-fA-F]{2}[/\\\\]([0-9a-fA-F-]{8,})/;\n return function (url) {\n var matches = url.match(_uuidRegex);\n if (matches) {\n return matches[1];\n }\n return '';\n }\n })(),\n\n /**\n * !#en\n * Transform uuid to url\n * \n * !#zh\n * 转换 uuid 为 url\n * \n * @method getUrlWithUuid\n * @param {string} uuid - The uuid of asset\n * @param {Object} [options] - Some optional parameters\n * @param {Boolean} [options.isNative] - Indicates whether the path you want is a native resource path\n * @param {string} [options.nativeExt] - Extension of the native resource path, it is required when isNative is true\n * @returns {string} url\n * \n * @example\n * // json path, 'assets/main/import/fc/fc991dd7-0033-4b80-9d41-c8a86a702e59.json';\n * var url = getUrlWithUuid('fcmR3XADNLgJ1ByKhqcC5Z', {isNative: false});\n * \n * // png path, 'assets/main/native/fc/fc991dd7-0033-4b80-9d41-c8a86a702e59.png';\n * var url = getUrlWithUuid('fcmR3XADNLgJ1ByKhqcC5Z', {isNative: true, nativeExt: '.png'});\n * \n * @typescript\n * getUrlWithUuid(uuid: string, options?: Record): string\n */\n getUrlWithUuid: function (uuid, options) {\n options = options || Object.create(null);\n options.__isNative__ = options.isNative;\n options.ext = options.nativeExt;\n var bundle = bundles.find(function (bundle) {\n return bundle.getAssetInfo(uuid);\n });\n\n if (bundle) {\n options.bundle = bundle.name;\n }\n\n return cc.assetManager._transform(uuid, options);\n },\n\n /**\n * !#en\n * Check if the type of asset is scene\n * \n * !#zh\n * 检查资源类型是否是场景\n * \n * @method isScene\n * @param {*} asset - asset\n * @returns {boolean} - whether or not type is cc.SceneAsset\n * \n * @typescript\n * isScene(asset: any): boolean\n */\n isScene: function (asset) {\n return asset && (asset.constructor === cc.SceneAsset || asset instanceof cc.Scene);\n },\n\n /**\n * !#en\n * Normalize url, strip './' and '/'\n * \n * !#zh\n * 标准化 url ,去除 './' 和 '/' \n * \n * @method normalize\n * @param {string} url - url\n * @returns {string} - The normalized url\n * \n * @typescript\n * normalize(url: string): string\n */\n normalize: function (url) {\n if (url) {\n if (url.charCodeAt(0) === 46 && url.charCodeAt(1) === 47) {\n // strip './'\n url = url.slice(2);\n }\n else if (url.charCodeAt(0) === 47) {\n // strip '/'\n url = url.slice(1);\n }\n }\n return url;\n }\n};\n\nmodule.exports = helper;","/****************************************************************************\n Copyright (c) 2019 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\nrequire('./deprecated');\nrequire('./CCAssetManager');\n\n","/****************************************************************************\n Copyright (c) 2019 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\nconst packManager = require('./pack-manager');\nconst Pipeline = require('./pipeline');\nconst parser = require('./parser');\nconst { getDepends, cache, gatherAsset, setProperties, forEach, clear, checkCircleReference } = require('./utilities');\nconst { assets, files, parsed, pipeline } = require('./shared');\nconst Task = require('./task');\n\nfunction load (task, done) {\n\n let firstTask = false;\n if (!task.progress) {\n task.progress = { finish: 0, total: task.input.length, canInvoke: true };\n firstTask = true;\n }\n \n var options = task.options, progress = task.progress;\n\n options.__exclude__ = options.__exclude__ || Object.create(null);\n\n task.output = [];\n \n forEach(task.input, function (item, cb) {\n\n let subTask = Task.create({ \n input: item, \n onProgress: task.onProgress, \n options, \n progress, \n onComplete: function (err, item) {\n if (err && !task.isFinish) {\n if (!cc.assetManager.force || firstTask) {\n if (!CC_EDITOR) {\n cc.error(err.message, err.stack);\n }\n progress.canInvoke = false;\n done(err);\n }\n else {\n progress.canInvoke && task.dispatch('progress', ++progress.finish, progress.total, item);\n }\n }\n task.output.push(item);\n subTask.recycle();\n cb();\n }\n });\n\n loadOneAssetPipeline.async(subTask);\n\n }, function () {\n\n options.__exclude__ = null;\n\n if (task.isFinish) {\n clear(task, true);\n return task.dispatch('error');\n }\n\n gatherAsset(task);\n clear(task, true);\n done();\n });\n}\n\nvar loadOneAssetPipeline = new Pipeline('loadOneAsset', [\n\n function fetch (task, done) {\n var item = task.output = task.input;\n var { options, isNative, uuid, file } = item;\n var { reload } = options;\n\n if (file || (!reload && !isNative && assets.has(uuid))) return done();\n\n packManager.load(item, task.options, function (err, data) {\n item.file = data;\n done(err);\n });\n },\n\n function parse (task, done) {\n\n var item = task.output = task.input, progress = task.progress, exclude = task.options.__exclude__;\n var { id, file, options } = item;\n\n if (item.isNative) {\n parser.parse(id, file, item.ext, options, function (err, asset) {\n if (err) return done(err);\n item.content = asset;\n progress.canInvoke && task.dispatch('progress', ++progress.finish, progress.total, item);\n files.remove(id);\n parsed.remove(id);\n done();\n });\n }\n else {\n var { uuid } = item;\n if (uuid in exclude) {\n \n var { finish, content, err, callbacks } = exclude[uuid];\n progress.canInvoke && task.dispatch('progress', ++progress.finish, progress.total, item);\n \n if (finish || checkCircleReference(uuid, uuid, exclude) ) {\n content && content.addRef && content.addRef();\n item.content = content;\n done(err);\n }\n else {\n callbacks.push({ done, item });\n }\n }\n else {\n if (!options.reload && assets.has(uuid)) {\n var asset = assets.get(uuid);\n if (options.__asyncLoadAssets__ || !asset.__asyncLoadAssets__) {\n item.content = asset.addRef();\n progress.canInvoke && task.dispatch('progress', ++progress.finish, progress.total, item);\n done();\n }\n else {\n loadDepends(task, asset, done, false);\n }\n }\n else {\n parser.parse(id, file, 'import', options, function (err, asset) {\n if (err) return done(err);\n asset._uuid = uuid;\n loadDepends(task, asset, done, true);\n });\n }\n }\n }\n }\n]);\n\nfunction loadDepends (task, asset, done, init) {\n\n var item = task.input, progress = task.progress;\n var { uuid, id, options, config } = item;\n var { __asyncLoadAssets__, cacheAsset } = options;\n\n var depends = [];\n // add reference avoid being released during loading dependencies\n asset.addRef && asset.addRef();\n getDepends(uuid, asset, Object.create(null), depends, false, __asyncLoadAssets__, config);\n progress.canInvoke && task.dispatch('progress', ++progress.finish, progress.total += depends.length, item);\n\n var repeatItem = task.options.__exclude__[uuid] = { content: asset, finish: false, callbacks: [{ done, item }] };\n\n let subTask = Task.create({ \n input: depends, \n options: task.options, \n onProgress: task.onProgress, \n onError: Task.prototype.recycle, \n progress, \n onComplete: function (err) {\n asset.decRef && asset.decRef(false);\n asset.__asyncLoadAssets__ = __asyncLoadAssets__;\n repeatItem.finish = true;\n repeatItem.err = err;\n\n if (!err) {\n\n var assets = Array.isArray(subTask.output) ? subTask.output : [subTask.output];\n var map = Object.create(null);\n for (let i = 0, l = assets.length; i < l; i++) {\n var dependAsset = assets[i];\n dependAsset && (map[dependAsset instanceof cc.Asset ? dependAsset._uuid + '@import' : uuid + '@native'] = dependAsset);\n }\n\n if (!init) {\n if (asset.__nativeDepend__ && !asset._nativeAsset) {\n var missingAsset = setProperties(uuid, asset, map);\n if (!missingAsset && !asset.__onLoadInvoked__) {\n try {\n asset.onLoad && asset.onLoad();\n asset.__onLoadInvoked__ = true;\n }\n catch (e) {\n cc.error(e.message, e.stack);\n }\n }\n }\n }\n else {\n var missingAsset = setProperties(uuid, asset, map);\n if (!missingAsset && !asset.__onLoadInvoked__) {\n try {\n asset.onLoad && asset.onLoad();\n asset.__onLoadInvoked__ = true;\n }\n catch (e) {\n cc.error(e.message, e.stack);\n }\n }\n files.remove(id);\n parsed.remove(id);\n cache(uuid, asset, cacheAsset !== undefined ? cacheAsset : cc.assetManager.cacheAsset); \n }\n subTask.recycle();\n }\n \n var callbacks = repeatItem.callbacks;\n\n for (var i = 0, l = callbacks.length; i < l; i++) {\n\n var cb = callbacks[i];\n asset.addRef && asset.addRef();\n cb.item.content = asset;\n cb.done(err);\n\n }\n\n callbacks.length = 0;\n }\n });\n\n pipeline.async(subTask);\n}\n\nmodule.exports = load;","/****************************************************************************\n Copyright (c) 2019 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n\nimport { unpackJSONs, packCustomObjData } from '../platform/deserialize-compiled';\n\nconst downloader = require('./downloader');\nconst Cache = require('./cache');\nconst js = require('../platform/js');\nconst { files } = require('./shared');\n\nvar _loading = new Cache();\n\nfunction isLoading (val) {\n return _loading.has(val.uuid);\n}\n\n\n/**\n * @module cc.AssetManager\n */\n/**\n * !#en\n * Handle the packed asset, include unpacking, loading, cache and so on. It is a singleton. All member can be accessed with `cc.assetManager.packManager`\n * \n * !#zh\n * 处理打包资源,包括拆包,加载,缓存等等,这是一个单例, 所有成员能通过 `cc.assetManager.packManager` 访问\n * \n * @class PackManager\n */\nvar packManager = {\n\n /**\n * !#en\n * Unpack the json, revert to what it was before packing\n * \n * !#zh\n * 拆解 json 包,恢复为打包之前的内容\n * \n * @method unpackJson\n * @param {String[]} pack - The pack\n * @param {Object} json - The content of pack\n * @param {Object} options - Some optional parameters\n * @param {Function} onComplete - Callback when finish unpacking\n * @param {Error} onComplete.err - The occurred error, null indicetes success\n * @param {Object} onComplete.content - The unpacked assets\n * \n * @example\n * downloader.downloadFile('pack.json', {responseType: 'json'}, null, (err, file) => {\n * packManager.unpackJson(['a', 'b'], file, null, (err, data) => console.log(err));\n * });\n * \n * @typescript\n * unpackJson(pack: string[], json: any, options: Record, onComplete?: (err: Error, content: any) => void): void\n */\n unpackJson (pack, json, options, onComplete) {\n\n var out = js.createMap(true), err = null;\n \n if (Array.isArray(json)) {\n\n json = unpackJSONs(json);\n\n if (json.length !== pack.length) {\n cc.errorID(4915);\n }\n for (let i = 0; i < pack.length; i++) {\n var key = pack[i] + '@import';\n out[key] = json[i];\n }\n }\n else {\n const textureType = js._getClassId(cc.Texture2D);\n if (json.type === textureType) {\n if (json.data) {\n var datas = json.data.split('|');\n if (datas.length !== pack.length) {\n cc.errorID(4915);\n }\n for (let i = 0; i < pack.length; i++) {\n out[pack[i] + '@import'] = packCustomObjData(textureType, datas[i], true);\n }\n }\n }\n else {\n err = new Error('unmatched type pack!');\n out = null;\n }\n }\n onComplete && onComplete(err, out);\n },\n\n init () {\n _loading.clear();\n },\n\n /**\n * !#en\n * Register custom handler if you want to change default behavior or extend packManager to unpack other format pack\n * \n * !#zh\n * 当你想修改默认行为或者拓展 packManager 来拆分其他格式的包时可以注册自定义的 handler\n * \n * @method register\n * @param {string|Object} type - Extension likes '.bin' or map likes {'.bin': binHandler, '.ab': abHandler}\n * @param {Function} [handler] - handler\n * @param {string} handler.packUuid - The uuid of pack\n * @param {*} handler.data - The content of pack\n * @param {Object} handler.options - Some optional parameters\n * @param {Function} handler.onComplete - Callback when finishing unpacking\n * \n * @example\n * packManager.register('.bin', (packUuid, file, options, onComplete) => onComplete(null, null));\n * packManager.register({'.bin': (packUuid, file, options, onComplete) => onComplete(null, null), '.ab': (packUuid, file, options, onComplete) => onComplete(null, null)});\n * \n * @typescript\n * register(type: string, handler: (packUuid: string, data: any, options: Record, onComplete: (err: Error, content: any) => void) => void): void\n * register(map: Record, onComplete: (err: Error, content: any) => void) => void>): void\n */\n register (type, handler) {\n if (typeof type === 'object') {\n js.mixin(unpackers, type);\n }\n else {\n unpackers[type] = handler;\n }\n },\n \n /**\n * !#en\n * Use corresponding handler to unpack package\n * \n * !#zh\n * 用对应的 handler 来进行解包 \n * \n * @method unpack\n * @param {String[]} pack - The uuid of packed assets \n * @param {*} data - The packed data\n * @param {string} type - The type indicates that which handler should be used to download, such as '.jpg'\n * @param {Object} options - Some optional parameter\n * @param {Function} onComplete - callback when finishing unpacking\n * @param {Error} onComplete.err - The occurred error, null indicetes success\n * @param {*} onComplete.data - Original assets\n * \n * @example\n * downloader.downloadFile('pack.json', {responseType: 'json'}, null, (err, file) => {\n * packManager.unpack(['2fawq123d', '1zsweq23f'], file, '.json', null, (err, data) => console.log(err));\n * });\n * \n * @typescript\n * unpack(pack: string[], data: any, type: string, options: Record, onComplete?: (err: Error, data: any) => void): void\n */\n unpack (pack, data, type, options, onComplete) {\n if (!data) {\n onComplete && onComplete(new Error('package data is wrong!'));\n return;\n }\n var unpacker = unpackers[type];\n unpacker(pack, data, options, onComplete);\n },\n\n /**\n * !#en\n * Download request item, If item is not in any package, download as usual. Otherwise, download the corresponding package and unpack it. \n * And then retrieve the corresponding content form it.\n * \n * !#zh\n * 下载请求对象,如果请求对象不在任何包内,则正常下载,否则下载对应的 package 并进行拆解,并取回包内对应的内容\n * \n * @method load\n * @param {RequestItem} item - Some item you want to download\n * @param {Object} options - Some optional parameters\n * @param {Function} onComplete - Callback when finished\n * @param {Err} onComplete.err - The occurred error, null indicetes success\n * @param {*} onComplete.data - The unpacked data retrieved from package\n * \n * @example\n * var requestItem = cc.AssetManager.RequestItem.create();\n * requestItem.uuid = 'fcmR3XADNLgJ1ByKhqcC5Z';\n * requestItem.info = config.getAssetInfo('fcmR3XADNLgJ1ByKhqcC5Z');\n * packManager.load(requestItem, null, (err, data) => console.log(err));\n * \n * @typescript\n * load(item: RequestItem, options: Record, onComplete: (err: Error, data: any) => void): void\n * \n */\n load (item, options, onComplete) {\n // if not in any package, download as uausl\n if (item.isNative || !item.info || !item.info.packs) return downloader.download(item.id, item.url, item.ext, item.options, onComplete);\n\n if (files.has(item.id)) return onComplete(null, files.get(item.id));\n\n var packs = item.info.packs;\n\n // find a loading package\n var pack = packs.find(isLoading);\n \n if (pack) return _loading.get(pack.uuid).push({ onComplete, id: item.id });\n\n // download a new package\n pack = packs[0];\n _loading.add(pack.uuid, [{ onComplete, id: item.id }]);\n\n let url = cc.assetManager._transform(pack.uuid, {ext: pack.ext, bundle: item.config.name});\n\n downloader.download(pack.uuid, url, pack.ext, item.options, function (err, data) {\n files.remove(pack.uuid);\n if (err) {\n cc.error(err.message, err.stack);\n }\n // unpack package\n packManager.unpack(pack.packs, data, pack.ext, item.options, function (err, result) {\n if (!err) {\n for (var id in result) {\n files.add(id, result[id]);\n }\n }\n var callbacks = _loading.remove(pack.uuid);\n for (var i = 0, l = callbacks.length; i < l; i++) {\n var cb = callbacks[i];\n if (err) {\n cb.onComplete(err);\n continue;\n }\n\n var data = result[cb.id];\n if (!data) {\n cb.onComplete(new Error('can not retrieve data from package'));\n }\n else {\n cb.onComplete(null, data);\n }\n }\n });\n });\n }\n};\n\nvar unpackers = {\n '.json': packManager.unpackJson\n};\n\nmodule.exports = packManager;\n","/****************************************************************************\n Copyright (c) 2019 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n\n/**\n * @module cc.AssetManager\n */\n\nconst plistParser = require('../platform/CCSAXParser').plistParser;\nconst js = require('../platform/js');\nconst deserialize = require('./deserialize');\nconst Cache = require('./cache');\nconst { isScene } = require('./helper');\nconst { parsed, files } = require('./shared');\nconst { __audioSupport, capabilities } = require('../platform/CCSys');\n\nvar _parsing = new Cache();\n\n/**\n * !#en\n * Parse the downloaded file, it's a singleton, all member can be accessed with `cc.assetManager.parser`\n * \n * !#zh\n * 解析已下载的文件,parser 是一个单例, 所有成员能通过 `cc.assetManaager.parser` 访问\n * \n * @class Parser\n */\nvar parser = {\n /*\n * !#en\n * Parse image file\n * \n * !#zh\n * 解析图片文件\n * \n * @method parseImage\n * @param {Blob} file - The downloaded file\n * @param {Object} options - Some optional paramters \n * @param {Function} [onComplete] - callback when finish parsing.\n * @param {Error} onComplete.err - The occurred error, null indicetes success\n * @param {ImageBitmap|HTMLImageElement} onComplete.img - The parsed content\n * \n * @example\n * downloader.downloadFile('test.jpg', {responseType: 'blob'}, null, (err, file) => {\n * parser.parseImage(file, null, (err, img) => console.log(err));\n * });\n * \n * @typescript\n * parseImage(file: Blob, options: Record, onComplete?: (err: Error, img: ImageBitmap|HTMLImageElement) => void): void\n */\n parseImage (file, options, onComplete) {\n if (capabilities.imageBitmap && file instanceof Blob) {\n let imageOptions = {};\n imageOptions.imageOrientation = options.__flipY__ ? 'flipY' : 'none';\n imageOptions.premultiplyAlpha = options.__premultiplyAlpha__ ? 'premultiply' : 'none';\n createImageBitmap(file, imageOptions).then(function (result) {\n result.flipY = !!options.__flipY__;\n result.premultiplyAlpha = !!options.__premultiplyAlpha__;\n onComplete && onComplete(null, result);\n }, function (err) {\n onComplete && onComplete(err, null);\n });\n }\n else {\n onComplete && onComplete(null, file);\n }\n },\n\n /*\n * !#en\n * Parse audio file\n * \n * !#zh\n * 解析音频文件\n * \n * @method parseAudio\n * @param {ArrayBuffer|HTMLAudioElement} file - The downloaded file\n * @param {Object} options - Some optional paramters\n * @param {Function} onComplete - Callback when finish parsing.\n * @param {Error} onComplete.err - The occurred error, null indicetes success\n * @param {AudioBuffer|HTMLAudioElement} onComplete.audio - The parsed content\n * \n * @example\n * downloader.downloadFile('test.mp3', {responseType: 'arraybuffer'}, null, (err, file) => {\n * parser.parseAudio(file, null, (err, audio) => console.log(err));\n * });\n * \n * @typescript\n * parseAudio(file: ArrayBuffer|HTMLAudioElement, options: Record, onComplete?: (err: Error, audio: AudioBuffer|HTMLAudioElement) => void): void\n */\n parseAudio (file, options, onComplete) {\n if (file instanceof ArrayBuffer) { \n __audioSupport.context.decodeAudioData(file, function (buffer) {\n onComplete && onComplete(null, buffer);\n }, function(e){\n onComplete && onComplete(e, null);\n });\n }\n else {\n onComplete && onComplete(null, file);\n }\n },\n\n /*\n * !#en\n * Parse pvr file \n * \n * !#zh\n * 解析压缩纹理格式 pvr 文件\n * \n * @method parsePVRTex\n * @param {ArrayBuffer|ArrayBufferView} file - The downloaded file\n * @param {Object} options - Some optional paramters\n * @param {Function} onComplete - Callback when finish parsing.\n * @param {Error} onComplete.err - The occurred error, null indicetes success\n * @param {Object} onComplete.pvrAsset - The parsed content\n * \n * @example\n * downloader.downloadFile('test.pvr', {responseType: 'arraybuffer'}, null, (err, file) => {\n * parser.parsePVRTex(file, null, (err, pvrAsset) => console.log(err));\n * });\n * \n * @typescript\n * parsePVRTex(file: ArrayBuffer|ArrayBufferView, options: Record, onComplete: (err: Error, pvrAsset: {_data: Uint8Array, _compressed: boolean, width: number, height: number}) => void): void\n */\n parsePVRTex : (function () {\n //===============//\n // PVR constants //\n //===============//\n // https://github.com/toji/texture-tester/blob/master/js/webgl-texture-util.js#L424\n const PVR_HEADER_LENGTH = 13; // The header length in 32 bit ints.\n const PVR_MAGIC = 0x03525650; //0x50565203;\n \n // Offsets into the header array.\n const PVR_HEADER_MAGIC = 0;\n const PVR_HEADER_FORMAT = 2;\n const PVR_HEADER_HEIGHT = 6;\n const PVR_HEADER_WIDTH = 7;\n const PVR_HEADER_MIPMAPCOUNT = 11;\n const PVR_HEADER_METADATA = 12;\n \n return function (file, options, onComplete) {\n let err = null, out = null;\n try {\n let buffer = file instanceof ArrayBuffer ? file : file.buffer;\n // Get a view of the arrayBuffer that represents the DDS header.\n let header = new Int32Array(buffer, 0, PVR_HEADER_LENGTH);\n \n // Do some sanity checks to make sure this is a valid DDS file.\n if(header[PVR_HEADER_MAGIC] != PVR_MAGIC) {\n throw new Error(\"Invalid magic number in PVR header\");\n }\n \n // Gather other basic metrics and a view of the raw the DXT data.\n let width = header[PVR_HEADER_WIDTH];\n let height = header[PVR_HEADER_HEIGHT];\n let dataOffset = header[PVR_HEADER_METADATA] + 52;\n let pvrtcData = new Uint8Array(buffer, dataOffset);\n \n out = {\n _data: pvrtcData,\n _compressed: true,\n width: width,\n height: height,\n };\n \n }\n catch (e) {\n err = e;\n }\n onComplete && onComplete(err, out);\n };\n })(),\n\n /*\n * !#en\n * Parse pkm file\n * \n * !#zh\n * 解析压缩纹理格式 pkm 文件\n * \n * @method parsePKMTex\n * @param {ArrayBuffer|ArrayBufferView} file - The downloaded file\n * @param {Object} options - Some optional paramters\n * @param {Function} onComplete - Callback when finish parsing.\n * @param {Error} onComplete.err - The occurred error, null indicetes success\n * @param {Object} onComplete.etcAsset - The parsed content\n * \n * @example\n * downloader.downloadFile('test.pkm', {responseType: 'arraybuffer'}, null, (err, file) => {\n * parser.parsePKMTex(file, null, (err, etcAsset) => console.log(err));\n * });\n * \n * @typescript\n * parsePKMTex(file: ArrayBuffer|ArrayBufferView, options: Record, onComplete: (err: Error, etcAsset: {_data: Uint8Array, _compressed: boolean, width: number, height: number}) => void): void\n */\n parsePKMTex: (function () {\n //===============//\n // ETC constants //\n //===============//\n const ETC_PKM_HEADER_SIZE = 16;\n\n const ETC_PKM_FORMAT_OFFSET = 6;\n const ETC_PKM_ENCODED_WIDTH_OFFSET = 8;\n const ETC_PKM_ENCODED_HEIGHT_OFFSET = 10;\n const ETC_PKM_WIDTH_OFFSET = 12;\n const ETC_PKM_HEIGHT_OFFSET = 14;\n\n const ETC1_RGB_NO_MIPMAPS = 0;\n const ETC2_RGB_NO_MIPMAPS = 1;\n const ETC2_RGBA_NO_MIPMAPS = 3;\n\n function readBEUint16(header, offset) {\n return (header[offset] << 8) | header[offset+1];\n }\n return function (file, options, onComplete) {\n let err = null, out = null;\n try {\n let buffer = file instanceof ArrayBuffer ? file : file.buffer;\n let header = new Uint8Array(buffer);\n let format = readBEUint16(header, ETC_PKM_FORMAT_OFFSET);\n if (format !== ETC1_RGB_NO_MIPMAPS && format !== ETC2_RGB_NO_MIPMAPS && format !== ETC2_RGBA_NO_MIPMAPS) {\n return new Error(\"Invalid magic number in ETC header\");\n }\n let width = readBEUint16(header, ETC_PKM_WIDTH_OFFSET);\n let height = readBEUint16(header, ETC_PKM_HEIGHT_OFFSET);\n let encodedWidth = readBEUint16(header, ETC_PKM_ENCODED_WIDTH_OFFSET);\n let encodedHeight = readBEUint16(header, ETC_PKM_ENCODED_HEIGHT_OFFSET);\n let etcData = new Uint8Array(buffer, ETC_PKM_HEADER_SIZE);\n out = {\n _data: etcData,\n _compressed: true,\n width: width,\n height: height\n };\n \n }\n catch (e) {\n err = e;\n }\n onComplete && onComplete(err, out);\n }\n })(),\n\n /*\n * !#en\n * Parse plist file\n * \n * !#zh\n * 解析 plist 文件\n * \n * @method parsePlist\n * @param {string} file - The downloaded file\n * @param {Object} options - Some optional paramters\n * @param {Function} onComplete - Callback when finish parsing\n * @param {Error} onComplete.err - The occurred error, null indicetes success\n * @param {*} onComplete.data - The parsed content\n * \n * @example\n * downloader.downloadFile('test.plist', {responseType: 'text'}, null, (err, file) => {\n * parser.parsePlist(file, null, (err, data) => console.log(err));\n * });\n * \n * @typescript\n * parsePlist(file: string, options: Record, onComplete?: (err: Error, data: any) => void): void\n */\n parsePlist (file, options, onComplete) {\n var err = null;\n var result = plistParser.parse(file);\n if (!result) err = new Error('parse failed');\n onComplete && onComplete(err, result);\n },\n\n /*\n * !#en\n * Deserialize asset file\n * \n * !#zh\n * 反序列化资源文件\n * \n * @method parseImport\n * @param {Object} file - The serialized json\n * @param {Object} options - Some optional paramters\n * @param {Function} onComplete - Callback when finish parsing\n * @param {Error} onComplete.err - The occurred error, null indicetes success\n * @param {Asset} onComplete.asset - The parsed content\n * \n * @example\n * downloader.downloadFile('test.json', {responseType: 'json'}, null, (err, file) => {\n * parser.parseImport(file, null, (err, data) => console.log(err));\n * });\n * \n * @typescript\n * parseImport (file: any, options: Record, onComplete?: (err: Error, asset: cc.Asset) => void): void\n */\n parseImport (file, options, onComplete) {\n if (!file) return onComplete && onComplete(new Error('Json is empty'));\n var result, err = null;\n try {\n result = deserialize(file, options);\n }\n catch (e) {\n err = e;\n }\n onComplete && onComplete(err, result);\n },\n\n init () {\n _parsing.clear();\n },\n\n /**\n * !#en\n * Register custom handler if you want to change default behavior or extend parser to parse other format file\n * \n * !#zh\n * 当你想修改默认行为或者拓展 parser 来解析其他格式文件时可以注册自定义的handler\n * \n * @method register\n * @param {string|Object} type - Extension likes '.jpg' or map likes {'.jpg': jpgHandler, '.png': pngHandler}\n * @param {Function} [handler] - The corresponding handler\n * @param {*} handler.file - File\n * @param {Object} handler.options - Some optional paramter\n * @param {Function} handler.onComplete - callback when finishing parsing\n * \n * @example\n * parser.register('.tga', (file, options, onComplete) => onComplete(null, null));\n * parser.register({'.tga': (file, options, onComplete) => onComplete(null, null), '.ext': (file, options, onComplete) => onComplete(null, null)});\n * \n * @typescript\n * register(type: string, handler: (file: any, options: Record, onComplete: (err: Error, data: any) => void) => void): void\n * register(map: Record, onComplete: (err: Error, data: any) => void) => void>): void\n */\n register (type, handler) {\n if (typeof type === 'object') {\n js.mixin(parsers, type);\n }\n else {\n parsers[type] = handler;\n }\n },\n\n /**\n * !#en\n * Use corresponding handler to parse file \n * \n * !#zh\n * 使用对应的handler来解析文件\n * \n * @method parse\n * @param {string} id - The id of file\n * @param {*} file - File\n * @param {string} type - The corresponding type of file, likes '.jpg'.\n * @param {Object} options - Some optional paramters will be transferred to the corresponding handler.\n * @param {Function} onComplete - callback when finishing downloading\n * @param {Error} onComplete.err - The occurred error, null indicetes success\n * @param {*} onComplete.contetnt - The parsed file\n * \n * @example\n * downloader.downloadFile('test.jpg', {responseType: 'blob'}, null, (err, file) => {\n * parser.parse('test.jpg', file, '.jpg', null, (err, img) => console.log(err));\n * });\n * \n * @typescript\n * parse(id: string, file: any, type: string, options: Record, onComplete: (err: Error, content: any) => void): void\n */\n parse (id, file, type, options, onComplete) {\n let parsedAsset, parsing, parseHandler;\n if (parsedAsset = parsed.get(id)) {\n onComplete(null, parsedAsset);\n }\n else if (parsing = _parsing.get(id)){\n parsing.push(onComplete);\n }\n else if (parseHandler = parsers[type]){\n _parsing.add(id, [onComplete]);\n parseHandler(file, options, function (err, data) {\n if (err) {\n files.remove(id);\n } \n else if (!isScene(data)){\n parsed.add(id, data);\n }\n let callbacks = _parsing.remove(id);\n for (let i = 0, l = callbacks.length; i < l; i++) {\n callbacks[i](err, data);\n }\n });\n }\n else {\n onComplete(null, file);\n }\n }\n};\n\nvar parsers = {\n '.png' : parser.parseImage,\n '.jpg' : parser.parseImage,\n '.bmp' : parser.parseImage,\n '.jpeg' : parser.parseImage,\n '.gif' : parser.parseImage,\n '.ico' : parser.parseImage,\n '.tiff' : parser.parseImage,\n '.webp' : parser.parseImage,\n '.image' : parser.parseImage,\n '.pvr' : parser.parsePVRTex,\n '.pkm' : parser.parsePKMTex,\n // Audio\n '.mp3' : parser.parseAudio,\n '.ogg' : parser.parseAudio,\n '.wav' : parser.parseAudio,\n '.m4a' : parser.parseAudio,\n\n // plist\n '.plist' : parser.parsePlist,\n 'import' : parser.parseImport\n};\n\nmodule.exports = parser;","/****************************************************************************\n Copyright (c) 2019 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n/**\n * @module cc.AssetManager\n */\n\nconst Task = require('./task');\n\nvar _pipelineId = 0;\n/**\n * !#en\n * Pipeline can execute the task for some effect.\n * \n * !#zh\n * 管线能执行任务达到某个效果\n * \n * @class Pipeline\n */\nfunction Pipeline (name, funcs) {\n if (!Array.isArray(funcs)) {\n cc.warn('funcs must be an array');\n return;\n } \n \n /**\n * !#en\n * The id of pipeline\n * \n * !#zh\n * 管线的 id\n * \n * @property id\n * @type {Number}\n */\n this.id = _pipelineId++;\n\n /**\n * !#en\n * The name of pipeline\n * \n * !#zh\n * 管线的名字\n * \n * @property name\n * @type {String}\n */\n this.name = name;\n\n /**\n * !#en\n * All pipes of pipeline\n * \n * !#zh\n * 所有的管道\n * \n * @property pipes\n * @type {Function[]}\n */\n this.pipes = [];\n\n for (var i = 0, l = funcs.length; i < l; i++) {\n if (typeof funcs[i] === 'function') {\n this.pipes.push(funcs[i]);\n }\n }\n\n}\n\nPipeline.prototype = {\n\n\n /**\n * !#en\n * Create a new pipeline\n * \n * !#zh\n * 创建一个管线\n * \n * @method constructor\n * @param {string} name - The name of pipeline\n * @param {Function[]} funcs - The array of pipe, every pipe must be function which take two parameters, the first is a `Task` flowed in pipeline, the second is complete callback\n * \n * @example\n * var pipeline = new Pipeline('download', [\n * (task, done) => {\n * var url = task.input;\n * cc.assetManager.downloader.downloadFile(url, null, null, (err, result) => {\n * task.output = result;\n * done(err);\n * });\n * },\n * (task, done) => {\n * var text = task.input;\n * var json = JSON.stringify(text);\n * task.output = json;\n * done();\n * }\n * ]);\n * \n * @typescript\n * constructor(name: string, funcs: Array<(task: Task, done?: (err: Error) => void) => void>)\n */\n constructor: Pipeline,\n\n /**\n * !#en\n * At specific point insert a new pipe to pipeline\n * \n * !#zh\n * 在某个特定的点为管线插入一个新的 pipe\n * \n * @method insert\n * @param {Function} func - The new pipe\n * @param {Task} func.task - The task handled with pipeline will be transferred to this function\n * @param {Function} [func.callback] - Callback you need to invoke manually when this pipe is finished. if the pipeline is synchronous, callback is unnecessary.\n * @param {number} index - The specific point you want to insert at.\n * @return {Pipeline} pipeline\n * \n * @example\n * var pipeline = new Pipeline('test', []);\n * pipeline.insert((task, done) => {\n * // do something\n * done();\n * }, 0);\n * \n * @typescript\n * insert(func: (task: Task, callback?: (err: Error) => void) => void, index: number): Pipeline\n */\n insert (func, index) {\n if (typeof func !== 'function' || index > this.pipes.length) {\n cc.warnID(4921);\n return;\n }\n \n this.pipes.splice(index, 0, func);\n return this;\n },\n\n\n /**\n * !#en\n * Append a new pipe to the pipeline\n * \n * !#zh\n * 添加一个管道到管线中\n * \n * @method append\n * @param {Function} func - The new pipe\n * @param {Task} func.task - The task handled with pipeline will be transferred to this function\n * @param {Function} [func.callback] - Callback you need to invoke manually when this pipe is finished. if the pipeline is synchronous, callback is unnecessary.\n * @return {Pipeline} pipeline\n * \n * @example\n * var pipeline = new Pipeline('test', []);\n * pipeline.append((task, done) => {\n * // do something\n * done();\n * });\n * \n * @typescript\n * append(func: (task: Task, callback?: (err: Error) => void) => void): Pipeline\n */\n append (func) {\n if (typeof func !== 'function') {\n return;\n }\n \n this.pipes.push(func);\n return this;\n },\n\n /**\n * !#en\n * Remove pipe which at specific point\n * \n * !#zh\n * 移除特定位置的管道\n * \n * @method remove\n * @param {number} index - The specific point\n * @return {Pipeline} pipeline\n * \n * @example\n * var pipeline = new Pipeline('test', (task, done) => {\n * // do something\n * done(); \n * });\n * pipeline.remove(0);\n * \n * @typescript\n * remove(index: number): Pipeline\n */\n remove (index) {\n if (typeof index !== 'number') {\n return;\n }\n \n this.pipes.splice(index, 1);\n return this;\n },\n\n /**\n * !#en\n * Execute task synchronously\n * \n * !#zh\n * 同步执行任务\n * \n * @method sync\n * @param {Task} task - The task will be executed\n * @returns {*} result\n * \n * @example\n * var pipeline = new Pipeline('sync', [(task) => {\n * let input = task.input;\n * task.output = doSomething(task.input);\n * }]);\n * \n * var task = new Task({input: 'test'});\n * console.log(pipeline.sync(task));\n * \n * @typescript\n * sync(task: Task): any \n */\n sync (task) {\n var pipes = this.pipes;\n if (!(task instanceof Task) || pipes.length === 0) return;\n if (task.output != null) {\n task.input = task.output;\n task.output = null;\n }\n task._isFinish = false;\n for (var i = 0, l = pipes.length; i < l;) {\n var pipe = pipes[i];\n var result = pipe(task);\n if (result) {\n task._isFinish = true;\n return result;\n }\n i++;\n if (i !== l) {\n task.input = task.output;\n task.output = null;\n }\n }\n task._isFinish = true;\n return task.output;\n },\n\n /**\n * !#en\n * Execute task asynchronously\n * \n * !#zh\n * 异步执行任务\n * \n * @method async\n * @param {Task} task - The task will be executed\n * \n * @example\n * var pipeline = new Pipeline('sync', [(task, done) => {\n * let input = task.input;\n * task.output = doSomething(task.input);\n * done();\n * }]);\n * var task = new Task({input: 'test', onComplete: (err, result) => console.log(result)});\n * pipeline.async(task);\n * \n * @typescript\n * async(task: Task): void\n */\n async (task) {\n var pipes = this.pipes;\n if (!(task instanceof Task) || pipes.length === 0) return;\n if (task.output != null) {\n task.input = task.output;\n task.output = null;\n }\n task._isFinish = false;\n this._flow(0, task);\n },\n\n _flow (index, task) {\n var self = this;\n var pipe = this.pipes[index];\n pipe(task, function (result) {\n if (result) {\n task._isFinish = true;\n task.onComplete && task.onComplete(result);\n }\n else {\n index++;\n if (index < self.pipes.length) {\n // move output to input\n task.input = task.output;\n task.output = null;\n self._flow(index, task);\n }\n else {\n task._isFinish = true;\n task.onComplete && task.onComplete(result, task.output);\n }\n }\n });\n }\n};\n\nmodule.exports = Pipeline;\n","/****************************************************************************\n Copyright (c) 2019 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\nconst Task = require('./task');\nconst { transformPipeline, RequestType } = require('./shared');\n\nfunction preprocess (task, done) {\n var options = task.options, subOptions = Object.create(null), leftOptions = Object.create(null);\n\n for (var op in options) {\n switch (op) {\n // can't set these attributes in options\n case RequestType.PATH:\n case RequestType.UUID:\n case RequestType.DIR:\n case RequestType.SCENE:\n case RequestType.URL : break;\n // only need these attributes to transform url\n case '__requestType__':\n case '__isNative__':\n case 'ext' :\n case 'type':\n case '__nativeName__':\n case 'audioLoadMode':\n case 'bundle':\n subOptions[op] = options[op];\n break;\n // other settings, left to next pipe\n case '__exclude__':\n case '__outputAsArray__':\n leftOptions[op] = options[op];\n break;\n default: \n subOptions[op] = options[op];\n leftOptions[op] = options[op];\n break;\n }\n }\n task.options = leftOptions;\n\n // transform url\n let subTask = Task.create({input: task.input, options: subOptions});\n var err = null;\n try {\n task.output = task.source = transformPipeline.sync(subTask);\n }\n catch (e) {\n err = e;\n for (var i = 0, l = subTask.output.length; i < l; i++) {\n subTask.output[i].recycle();\n }\n }\n subTask.recycle();\n done(err);\n}\n\nmodule.exports = preprocess;","/****************************************************************************\n Copyright (c) 2019 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\nconst dependUtil = require('./depend-util');\nconst Cache = require('./cache');\nrequire('../assets/CCAsset');\nconst { assets } = require('./shared');\nconst { callInNextTick } = require('../platform/utils');\n\nfunction visitAsset (asset, deps) {\n // Skip assets generated programmatically or by user (e.g. label texture)\n if (!asset._uuid) {\n return;\n }\n deps.push(asset._uuid);\n}\n\nfunction visitComponent (comp, deps) {\n var props = Object.getOwnPropertyNames(comp);\n for (let i = 0; i < props.length; i++) {\n var propName = props[i];\n if (propName === 'node' || propName === '__eventTargets') continue;\n var value = comp[propName];\n if (typeof value === 'object' && value) {\n if (Array.isArray(value)) {\n for (let j = 0; j < value.length; j++) {\n let val = value[j];\n if (val instanceof cc.Asset) {\n visitAsset(val, deps);\n }\n }\n }\n else if (!value.constructor || value.constructor === Object) {\n let keys = Object.getOwnPropertyNames(value);\n for (let j = 0; j < keys.length; j++) {\n let val = value[keys[j]];\n if (val instanceof cc.Asset) {\n visitAsset(val, deps);\n }\n }\n }\n else if (value instanceof cc.Asset) {\n visitAsset(value, deps);\n }\n }\n }\n}\n\nlet _temp = [];\n\nfunction visitNode (node, deps) {\n for (let i = 0; i < node._components.length; i++) {\n visitComponent(node._components[i], deps);\n }\n for (let i = 0; i < node._children.length; i++) {\n visitNode(node._children[i], deps);\n }\n}\n\nfunction descendOpRef (asset, refs, exclude, op) {\n exclude.push(asset._uuid);\n var depends = dependUtil.getDeps(asset._uuid);\n for (let i = 0, l = depends.length; i < l; i++) {\n var dependAsset = assets.get(depends[i]);\n if (dependAsset) {\n let uuid = dependAsset._uuid;\n if (!(uuid in refs)) { \n refs[uuid] = dependAsset.refCount + op;\n }\n else {\n refs[uuid] += op;\n }\n if (exclude.includes(uuid)) continue; \n descendOpRef(dependAsset, refs, exclude, op);\n }\n }\n}\n\nfunction checkCircularReference (asset) {\n // check circular reference\n var refs = Object.create(null);\n refs[asset._uuid] = asset.refCount;\n descendOpRef(asset, refs, _temp, -1);\n _temp.length = 0;\n if (refs[asset._uuid] !== 0) return refs[asset._uuid];\n\n for (let uuid in refs) {\n if (refs[uuid] !== 0) {\n descendOpRef(assets.get(uuid), refs, _temp, 1);\n }\n }\n _temp.length = 0;\n\n return refs[asset._uuid];\n}\n\nvar _persistNodeDeps = new Cache();\nvar _toDelete = new Cache();\nvar eventListener = false;\n\nfunction freeAssets () {\n eventListener = false;\n _toDelete.forEach(function (asset) {\n releaseManager._free(asset);\n });\n _toDelete.clear();\n}\n\nvar releaseManager = {\n init () {\n _persistNodeDeps.clear();\n _toDelete.clear();\n },\n\n _addPersistNodeRef (node) {\n var deps = [];\n visitNode(node, deps);\n for (let i = 0, l = deps.length; i < l; i++) {\n var dependAsset = assets.get(deps[i]);\n if (dependAsset) {\n dependAsset.addRef();\n }\n }\n _persistNodeDeps.add(node.uuid, deps);\n },\n\n _removePersistNodeRef (node) {\n if (_persistNodeDeps.has(node.uuid)) {\n var deps = _persistNodeDeps.get(node.uuid);\n for (let i = 0, l = deps.length; i < l; i++) {\n var dependAsset = assets.get(deps[i]);\n if (dependAsset) {\n dependAsset.decRef();\n }\n }\n _persistNodeDeps.remove(node.uuid);\n }\n },\n\n // do auto release\n _autoRelease (oldScene, newScene, persistNodes) { \n\n if (oldScene) {\n var childs = dependUtil.getDeps(oldScene._id);\n for (let i = 0, l = childs.length; i < l; i++) {\n let asset = assets.get(childs[i]);\n asset && asset.decRef(CC_TEST || oldScene.autoReleaseAssets);\n }\n var dependencies = dependUtil._depends.get(oldScene._id);\n if (dependencies && dependencies.persistDeps) {\n var persistDeps = dependencies.persistDeps;\n for (let i = 0, l = persistDeps.length; i < l; i++) {\n let asset = assets.get(persistDeps[i]);\n asset && asset.decRef(CC_TEST || oldScene.autoReleaseAssets);\n }\n }\n oldScene._id !== newScene._id && dependUtil.remove(oldScene._id);\n }\n\n var sceneDeps = dependUtil._depends.get(newScene._id);\n sceneDeps && (sceneDeps.persistDeps = []);\n // transfer refs from persist nodes to new scene\n for (let key in persistNodes) {\n var node = persistNodes[key];\n var deps = _persistNodeDeps.get(node.uuid);\n for (let i = 0, l = deps.length; i < l; i++) {\n var dependAsset = assets.get(deps[i]);\n if (dependAsset) {\n dependAsset.addRef();\n }\n }\n if (sceneDeps) {\n sceneDeps.persistDeps.push.apply(sceneDeps.persistDeps, deps);\n }\n }\n },\n\n _free (asset, force) {\n _toDelete.remove(asset._uuid);\n\n if (!cc.isValid(asset, true)) return;\n\n if (!force) {\n if (asset.refCount > 0) {\n if (checkCircularReference(asset) > 0) return; \n }\n }\n \n // remove from cache\n assets.remove(asset._uuid);\n var depends = dependUtil.getDeps(asset._uuid);\n for (let i = 0, l = depends.length; i < l; i++) {\n var dependAsset = assets.get(depends[i]);\n if (dependAsset) {\n dependAsset.decRef(false);\n releaseManager._free(dependAsset, false);\n }\n }\n asset.destroy();\n dependUtil.remove(asset._uuid);\n },\n\n tryRelease (asset, force) {\n if (!(asset instanceof cc.Asset)) return;\n if (force) {\n releaseManager._free(asset, force);\n }\n else {\n _toDelete.add(asset._uuid, asset);\n if (!eventListener) {\n eventListener = true;\n callInNextTick(freeAssets);\n }\n }\n }\n};\n\nmodule.exports = releaseManager;","/****************************************************************************\n Copyright (c) 2019 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n\n/**\n * @module cc.AssetManager\n */\n\nvar MAX_DEAD_NUM = 500;\nvar _deadPool = [];\n\n/**\n * !#en\n * A collection of information about a request\n * \n * !#zh\n * 请求的相关信息集合\n * \n * @class RequestItem\n */\nfunction RequestItem () {\n\n this._id = '';\n\n /**\n * !#en \n * The uuid of request\n * \n * !#zh \n * 请求资源的uuid\n * \n * @property uuid\n * @type {String}\n */\n this.uuid = '';\n\n /**\n * !#en \n * The final url of request\n * \n * !#zh\n * 请求的最终url\n * \n * @property url\n * @type {String}\n */\n this.url = '';\n\n /**\n * !#en\n * The extension name of asset\n * \n * !#zh\n * 资源的扩展名\n * \n * @property ext\n * @type {String}\n */\n this.ext = '.json';\n\n /**\n * !#en\n * The content of asset\n * \n * !#zh\n * 资源的内容\n * \n * @property content\n * @type {*}\n */\n this.content = null;\n\n /**\n * !#en\n * The file of asset\n * \n * !#zh\n * 资源的文件\n * \n * @property file\n * @type {*}\n */\n this.file = null;\n\n /**\n * !#en\n * The information of asset\n * \n * !#zh\n * 资源的相关信息\n * \n * @property info\n * @type {Object}\n */\n this.info = null;\n\n this.config = null;\n\n /**\n * !#en\n * Whether or not it is native asset\n * \n * !#zh\n * 资源是否是原生资源\n * \n * @property isNative\n * @type {Boolean}\n */\n this.isNative = false;\n\n /**\n * !#en\n * Custom options\n * \n * !#zh\n * 自定义参数\n * \n * @property options\n * @type {Object}\n */\n this.options = Object.create(null);\n}\n\nRequestItem.prototype = {\n\n /**\n * !#en\n * Create a request item\n * \n * !#zh\n * 创建一个 request item\n * \n * @method constructor\n * \n * @typescript\n * constructor()\n */\n constructor: RequestItem,\n\n /**\n * !#en\n * The id of request, combined from uuid and isNative\n * \n * !#zh\n * 请求的 id, 由 uuid 和 isNative 组合而成\n * \n * @property id\n * @type {String}\n */\n get id () {\n if (!this._id) {\n this._id = this.uuid + '@' + (this.isNative ? 'native' : 'import');\n }\n return this._id;\n },\n\n /**\n * !#en\n * Recycle this for reuse\n * \n * !#zh\n * 回收 requestItem 用于复用\n * \n * @method recycle\n * \n * @typescript\n * recycle(): void\n */\n recycle () {\n if (_deadPool.length === MAX_DEAD_NUM) return;\n this._id = '';\n this.uuid = '';\n this.url = '';\n this.ext = '.json';\n this.content = null;\n this.file = null;\n this.info = null;\n this.config = null;\n this.isNative = false;\n this.options = Object.create(null);\n _deadPool.push(this);\n }\n};\n\n/**\n * !#en\n * Create a new request item from pool\n * \n * !#zh\n * 从对象池中创建 requestItem\n * \n * @static\n * @method create\n * @returns {RequestItem} requestItem\n * \n * @typescript \n * create(): RequestItem\n */\nRequestItem.create = function () {\n var out = null;\n if (_deadPool.length !== 0) {\n out = _deadPool.pop();\n }\n else {\n out = new RequestItem();\n }\n\n return out;\n};\n\nmodule.exports = RequestItem;","/****************************************************************************\n Copyright (c) 2019 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\nconst Cache = require('./cache');\nconst Pipeline = require('./pipeline');\n\nvar assets = new Cache();\nvar files = new Cache();\nvar parsed = new Cache();\nvar bundles = new Cache();\nvar pipeline = new Pipeline('normal load', []);\nvar fetchPipeline = new Pipeline('fetch', []);\nvar transformPipeline = new Pipeline('transform url', []);\n\n/**\n * @module cc.AssetManager\n */\n\nvar RequestType = {\n \n UUID: 'uuid',\n\n PATH: 'path',\n\n DIR: 'dir',\n\n URL: 'url',\n\n SCENE: 'scene'\n};\n\n/**\n * !#en\n * The builtin bundles \n * \n * !#zh\n * 内置 bundle\n * \n * @enum BuiltinBundleName\n */\nvar BuiltinBundleName = {\n /**\n * !#en\n * The builtin bundle corresponds to 'assets/resources'.\n * \n * !#zh\n * 内置 bundle, 对应 'assets/resources' 目录\n * \n * @property RESOURCES\n * @readonly\n * @type {String}\n */\n RESOURCES: 'resources',\n\n /**\n * !#en\n * The builtin bundle corresponds to 'internal/resources'.\n * \n * !#zh\n * 内置 bundle, 对应 'internal/resources' 目录\n * \n * @property INTERNAL\n * @readonly\n * @type {String}\n */\n INTERNAL: 'internal',\n\n /**\n * !#en\n * The builtin bundle\n * \n * !#zh\n * 内置 bundle\n * \n * @property MAIN\n * @readonly\n * @type {String}\n */\n MAIN: 'main',\n\n /**\n * !#en\n * The builtin bundle, exists when Start Scene asset bundle is checked on the project building panel\n * \n * !#zh\n * 内置 bundle, 如果构建面板开启了首场景分包,则会有 START_SCENE bundle\n * \n * @property START_SCENE\n * @readonly\n * @type {String}\n */\n START_SCENE: 'start-scene',\n};\n\nmodule.exports = { assets, files, parsed, pipeline, fetchPipeline, transformPipeline, RequestType, bundles, BuiltinBundleName };","/****************************************************************************\n Copyright (c) 2019 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n\n/**\n * @module cc.AssetManager\n */\n\nvar _taskId = 0;\nvar MAX_DEAD_NUM = 500;\nvar _deadPool = [];\n\n/**\n * !#en\n * Task is used to run in the pipeline for some effect\n * \n * !#zh\n * 任务用于在管线中运行以达成某种效果\n * \n * @class Task\n */\nfunction Task (options) {\n /**\n * !#en\n * The id of task\n * \n * !#zh\n * 任务id\n * \n * @property id\n * @type {Number}\n */\n this.id = _taskId++;\n\n this._isFinish = true;\n\n /**\n * !#en\n * The callback when task is completed\n * \n * !#zh\n * 完成回调\n * \n * @property onComplete\n * @type {Function}\n */\n this.onComplete = null;\n\n /**\n * !#en\n * The callback of progression\n * \n * !#zh\n * 进度回调\n * \n * @property onProgress\n * @type {Function}\n */\n this.onProgress = null;\n\n /**\n * !#en\n * The callback when something goes wrong\n * \n * !#zh\n * 错误回调\n * \n * @property onError\n * @type {Function}\n */\n this.onError = null;\n\n /**\n * !#en\n * The source of task\n * \n * !#zh\n * 任务的源\n * \n * @property source\n * @type {*}\n */\n this.source = null;\n\n /**\n * !#en\n * The output of task\n * \n * !#zh\n * 任务的输出\n * \n * @property output\n * @type {*}\n */\n this.output = null\n\n /**\n * !#en\n * The input of task\n * \n * !#zh\n * 任务的输入\n * \n * @property input\n * @type {*}\n */\n this.input = null;\n\n /**\n * !#en\n * The progression of task\n * \n * !#zh\n * 任务的进度\n * \n * @property progress\n * @type {*}\n */\n this.progress = null;\n\n /**\n * !#en\n * Custom options\n * \n * !#zh\n * 自定义参数\n * \n * @property options\n * @type {Object}\n */\n this.options = null;\n this.set(options);\n};\n\nTask.prototype = {\n \n /**\n * !#en\n * Create a new Task\n * \n * !#zh\n * 创建一个任务\n * \n * @method constructor\n * @param {Object} [options] - Some optional paramters\n * @param {Function} [options.onComplete] - Callback when the task is completed, if the pipeline is synchronous, onComplete is unnecessary.\n * @param {Function} [options.onProgress] - Continuously callback when the task is runing, if the pipeline is synchronous, onProgress is unnecessary.\n * @param {Function} [options.onError] - Callback when something goes wrong, if the pipeline is synchronous, onError is unnecessary.\n * @param {*} options.input - Something will be handled with pipeline\n * @param {*} [options.progress] - Progress information, you may need to assign it manually when multiple pipeline share one progress\n * @param {Object} [options.options] - Custom parameters\n * \n * @typescript\n * constructor(options?: {onComplete?: (err: Error, result: any) => void, onError?: () => void, onProgress?: Function, input: any, progress?: any, options?: Record})\n */\n constructor: Task,\n\n /**\n * !#en\n * Set paramters of this task\n * \n * !#zh\n * 设置任务的参数\n * \n * @method set\n * @param {Object} [options] - Some optional paramters\n * @param {Function} [options.onComplete] - Callback when the task complete, if the pipeline is synchronous, onComplete is unnecessary.\n * @param {Function} [options.onProgress] - Continuously callback when the task is runing, if the pipeline is synchronous, onProgress is unnecessary.\n * @param {Function} [options.onError] - Callback when something goes wrong, if the pipeline is synchronous, onError is unnecessary.\n * @param {*} options.input - Something will be handled with pipeline\n * @param {*} [options.progress] - Progress information, you may need to assign it manually when multiple pipeline share one progress\n * @param {Object} [options.options] - Custom parameters\n * \n * @example \n * var task = new Task();\n * task.set({input: ['test'], onComplete: (err, result) => console.log(err), onProgress: (finish, total) => console.log(finish / total)});\n * \n * @typescript\n * set(options?: {onComplete?: (err: Error, result: any) => void, onError?: () => void, onProgress?: Function, input: any, progress?: any, options?: Record}): void\n */\n set (options) {\n options = options || Object.create(null);\n this.onComplete = options.onComplete;\n this.onProgress = options.onProgress;\n this.onError = options.onError;\n this.source = this.input = options.input;\n this.output = null;\n this.progress = options.progress;\n // custom data\n this.options = options.options || Object.create(null);\n },\n\n /**\n * !#en\n * Dispatch event\n * \n * !#zh\n * 发布事件\n * \n * @method dispatch\n * @param {string} event - The event name\n * @param {*} param1 - Parameter 1\n * @param {*} param2 - Parameter 2\n * @param {*} param3 - Parameter 3\n * @param {*} param4 - Parameter 4\n * \n * @example\n * var task = Task.create();\n * Task.onComplete = (msg) => console.log(msg);\n * Task.dispatch('complete', 'hello world');\n * \n * @typescript\n * dispatch(event: string, param1?: any, param2?: any, param3?: any, param4?: any): void\n */\n dispatch (event, param1, param2, param3, param4) {\n switch (event) {\n case 'complete' :\n this.onComplete && this.onComplete(param1, param2, param3, param4);\n break; \n case 'progress': \n this.onProgress && this.onProgress(param1, param2, param3, param4);\n break;\n case 'error': \n this.onError && this.onError(param1, param2, param3, param4);\n break;\n default:\n var str = 'on' + event[0].toUpperCase() + event.substr(1);\n if (typeof this[str] === 'function') {\n this[str](param1, param2, param3, param4);\n }\n break;\n }\n },\n\n /**\n * !#en\n * Recycle this for reuse\n * \n * !#zh\n * 回收 task 用于复用\n * \n * @method recycle\n * \n * @typescript\n * recycle(): void\n */\n recycle () {\n if (_deadPool.length === MAX_DEAD_NUM) return;\n this.onComplete = null;\n this.onProgress = null;\n this.onError = null;\n this.source = this.output = this.input = null;\n this.progress = null;\n this.options = null;\n _deadPool.push(this);\n },\n\n /**\n * !#en\n * Whether or not this task is completed\n * \n * !#zh\n * 此任务是否已经完成\n * \n * @property isFinish\n * @type {Boolean}\n */\n get isFinish () {\n return this._isFinish;\n }\n};\n\n/**\n * !#en\n * Create a new task from pool\n * \n * !#zh\n * 从对象池中创建 task\n * \n * @static\n * @method create\n * @param {Object} [options] - Some optional paramters\n * @param {Function} [options.onComplete] - Callback when the task complete, if the pipeline is synchronous, onComplete is unnecessary.\n * @param {Function} [options.onProgress] - Continuously callback when the task is runing, if the pipeline is synchronous, onProgress is unnecessary.\n * @param {Function} [options.onError] - Callback when something goes wrong, if the pipeline is synchronous, onError is unnecessary.\n * @param {*} options.input - Something will be handled with pipeline\n * @param {*} [options.progress] - Progress information, you may need to assign it manually when multiple pipeline share one progress\n * @param {Object} [options.options] - Custom parameters\n * @returns {Task} task\n * \n * @typescript \n * create(options?: {onComplete?: (err: Error, result: any) => void, onError?: () => void, onProgress?: Function, input: any, progress?: any, options?: Record}): Task\n */\nTask.create = function (options) {\n var out = null;\n if (_deadPool.length !== 0) {\n out = _deadPool.pop();\n out.set(options);\n }\n else {\n out = new Task(options);\n }\n\n return out;\n};\n\nmodule.exports = Task;","/****************************************************************************\n Copyright (c) 2019 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\nconst { decodeUuid } = require('./helper');\nconst RequestItem = require('./request-item');\nconst { RequestType, bundles } = require('./shared');\n\nfunction parse (task) {\n\n var input = task.input, options = task.options;\n input = Array.isArray(input) ? input : [ input ];\n\n task.output = [];\n for (var i = 0; i < input.length; i ++ ) {\n var item = input[i];\n var out = RequestItem.create();\n if (typeof item === 'string') {\n item = Object.create(null);\n item[options.__requestType__ || RequestType.UUID] = input[i];\n }\n if (typeof item === 'object') {\n // local options will overlap glabal options\n cc.js.addon(item, options);\n if (item.preset) {\n cc.js.addon(item, cc.assetManager.presets[item.preset]);\n }\n for (var key in item) {\n switch (key) {\n case RequestType.UUID: \n var uuid = out.uuid = decodeUuid(item.uuid);\n if (bundles.has(item.bundle)) {\n var config = bundles.get(item.bundle)._config;\n var info = config.getAssetInfo(uuid);\n if (info && info.redirect) {\n if (!bundles.has(info.redirect)) throw new Error(`Please load bundle ${info.redirect} first`);\n config = bundles.get(info.redirect)._config;\n info = config.getAssetInfo(uuid);\n }\n out.config = config;\n out.info = info;\n }\n out.ext = item.ext || '.json';\n break;\n case '__requestType__':\n case 'ext': \n case 'bundle':\n case 'preset':\n case 'type': break;\n case RequestType.DIR: \n if (bundles.has(item.bundle)) {\n var infos = [];\n bundles.get(item.bundle)._config.getDirWithPath(item.dir, item.type, infos);\n for (let i = 0, l = infos.length; i < l; i++) {\n var info = infos[i];\n input.push({uuid: info.uuid, __isNative__: false, ext: '.json', bundle: item.bundle});\n }\n }\n out.recycle();\n out = null;\n break;\n case RequestType.PATH: \n if (bundles.has(item.bundle)) {\n var config = bundles.get(item.bundle)._config;\n var info = config.getInfoWithPath(item.path, item.type);\n \n if (info && info.redirect) {\n if (!bundles.has(info.redirect)) throw new Error(`you need to load bundle ${info.redirect} first`);\n config = bundles.get(info.redirect)._config;\n info = config.getAssetInfo(info.uuid);\n }\n\n if (!info) {\n out.recycle();\n throw new Error(`Bundle ${item.bundle} doesn't contain ${item.path}`);\n }\n out.config = config; \n out.uuid = info.uuid;\n out.info = info;\n }\n out.ext = item.ext || '.json';\n break;\n case RequestType.SCENE:\n if (bundles.has(item.bundle)) {\n var config = bundles.get(item.bundle)._config;\n var info = config.getSceneInfo(item.scene);\n \n if (info && info.redirect) {\n if (!bundles.has(info.redirect)) throw new Error(`you need to load bundle ${info.redirect} first`);\n config = bundles.get(info.redirect)._config;\n info = config.getAssetInfo(info.uuid);\n }\n if (!info) {\n out.recycle();\n throw new Error(`Bundle ${config.name} doesn't contain scene ${item.scene}`);\n }\n out.config = config; \n out.uuid = info.uuid;\n out.info = info;\n }\n break;\n case '__isNative__': \n out.isNative = item.__isNative__;\n break;\n case RequestType.URL: \n out.url = item.url;\n out.uuid = item.uuid || item.url;\n out.ext = item.ext || cc.path.extname(item.url);\n out.isNative = item.__isNative__ !== undefined ? item.__isNative__ : true;\n break;\n default: out.options[key] = item[key];\n }\n if (!out) break;\n }\n }\n if (!out) continue;\n task.output.push(out);\n if (!out.uuid && !out.url) throw new Error('Can not parse this input:' + JSON.stringify(item));\n }\n return null;\n}\n\nfunction combine (task) {\n var input = task.output = task.input;\n for (var i = 0; i < input.length; i++) {\n var item = input[i];\n if (item.url) continue;\n\n var url = '', base = '';\n var config = item.config;\n if (item.isNative) {\n base = (config && config.nativeBase) ? (config.base + config.nativeBase) : cc.assetManager.generalNativeBase;\n } \n else {\n base = (config && config.importBase) ? (config.base + config.importBase) : cc.assetManager.generalImportBase;\n }\n\n let uuid = item.uuid;\n \n var ver = '';\n if (item.info) {\n if (item.isNative) {\n ver = item.info.nativeVer ? ('.' + item.info.nativeVer) : '';\n }\n else {\n ver = item.info.ver ? ('.' + item.info.ver) : '';\n }\n }\n\n // ugly hack, WeChat does not support loading font likes 'myfont.dw213.ttf'. So append hash to directory\n if (item.ext === '.ttf') {\n url = `${base}/${uuid.slice(0, 2)}/${uuid}${ver}/${item.options.__nativeName__}`;\n }\n else {\n url = `${base}/${uuid.slice(0, 2)}/${uuid}${ver}${item.ext}`;\n }\n \n item.url = url;\n }\n return null;\n}\n\nmodule.exports = { parse, combine };","/****************************************************************************\n Copyright (c) 2019 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\nconst dependUtil = require('./depend-util');\nconst { isScene, decodeUuid } = require('./helper');\nconst { assets } = require('./shared');\nconst { callInNextTick } = require('../platform/utils');\nconst MissingObjectReporter = CC_EDITOR && Editor.require('app://editor/page/scene-utils/missing-object-reporter');\nrequire('../assets/CCAsset');\n\nvar utils = {\n\n processOptions (options) {\n if (CC_EDITOR) return;\n var uuids = options.uuids;\n var paths = options.paths;\n var types = options.types;\n var bundles = options.deps;\n var realEntries = options.paths = Object.create(null);\n\n if (options.debug === false) {\n for (let i = 0, l = uuids.length; i < l; i++) {\n uuids[i] = decodeUuid(uuids[i]);\n }\n\n for (let id in paths) {\n let entry = paths[id];\n let type = entry[1];\n entry[1] = types[type];\n }\n }\n else {\n var out = Object.create(null);\n for (let i = 0, l = uuids.length; i < l; i++) {\n let uuid = uuids[i];\n uuids[i] = out[uuid] = decodeUuid(uuid);\n }\n uuids = out;\n }\n\n for (let id in paths) {\n let entry = paths[id];\n realEntries[uuids[id]] = entry;\n }\n\n var scenes = options.scenes;\n for (let name in scenes) {\n let uuid = scenes[name];\n scenes[name] = uuids[uuid];\n }\n\n var packs = options.packs;\n for (let packId in packs) {\n let packedIds = packs[packId];\n for (let j = 0; j < packedIds.length; ++j) {\n packedIds[j] = uuids[packedIds[j]];\n }\n }\n\n var versions = options.versions;\n if (versions) {\n for (let folder in versions) {\n var entries = versions[folder];\n for (let i = 0; i < entries.length; i += 2) {\n let uuid = entries[i];\n entries[i] = uuids[uuid] || uuid;\n }\n }\n }\n\n var redirect = options.redirect;\n if (redirect) {\n for (let i = 0; i < redirect.length; i += 2) {\n redirect[i] = uuids[redirect[i]];\n redirect[i + 1] = bundles[redirect[i + 1]];\n }\n }\n\n },\n\n clear (task, clearRef) {\n for (var i = 0, l = task.input.length; i < l; i++) {\n var item = task.input[i];\n if (clearRef) {\n !item.isNative && item.content && item.content.decRef && item.content.decRef(false);\n }\n item.recycle();\n }\n task.input = null;\n },\n\n urlAppendTimestamp (url) {\n if (cc.assetManager.downloader.appendTimeStamp && typeof url === 'string') {\n if (/\\?/.test(url))\n return url + '&_t=' + (new Date() - 0);\n else\n return url + '?_t=' + (new Date() - 0);\n }\n return url;\n },\n\n retry (process, times, wait, onComplete, index) {\n index = index || 0;\n process(index, function (err, result) {\n index++;\n if (!err || index > times) {\n onComplete && onComplete(err, result);\n }\n else {\n setTimeout(function () {\n utils.retry(process, times, wait, onComplete, index);\n }, wait);\n }\n });\n },\n\n getDepends (uuid, data, exclude, depends, preload, asyncLoadAssets, config) {\n try {\n var info = dependUtil.parse(uuid, data);\n var includeNative = true;\n if (data instanceof cc.Asset && (!data.__nativeDepend__ || data._nativeAsset)) includeNative = false; \n if (!preload) {\n asyncLoadAssets = !CC_EDITOR && (!!data.asyncLoadAssets || (asyncLoadAssets && !info.preventDeferredLoadDependents));\n for (let i = 0, l = info.deps.length; i < l; i++) {\n let dep = info.deps[i];\n if (!(dep in exclude)) {\n exclude[dep] = true;\n depends.push({uuid: dep, __asyncLoadAssets__: asyncLoadAssets, bundle: config && config.name});\n }\n }\n\n if (includeNative && !asyncLoadAssets && !info.preventPreloadNativeObject && info.nativeDep) {\n config && (info.nativeDep.bundle = config.name);\n depends.push(Object.assign({}, info.nativeDep));\n }\n \n } else {\n for (let i = 0, l = info.deps.length; i < l; i++) {\n let dep = info.deps[i];\n if (!(dep in exclude)) {\n exclude[dep] = true;\n depends.push({uuid: dep, bundle: config && config.name});\n }\n }\n if (includeNative && info.nativeDep) {\n config && (info.nativeDep.bundle = config.name);\n depends.push(Object.assign({}, info.nativeDep));\n }\n }\n }\n catch (e) {\n cc.error(e.message, e.stack);\n }\n },\n \n cache (id, asset, cacheAsset) {\n if (!asset) return;\n var _isScene = isScene(asset);\n if (!_isScene && cacheAsset) {\n assets.add(id, asset);\n }\n if (_isScene) {\n if (CC_EDITOR && !asset.scene) {\n Editor.error('Sorry, the scene data of \"%s\" is corrupted!', asset._uuid);\n }\n }\n },\n\n setProperties (uuid, asset, assetsMap) {\n\n var missingAsset = false;\n let depends = asset.__depends__;\n if (depends) {\n var missingAssetReporter = null;\n for (var i = 0, l = depends.length; i < l; i++) {\n var depend = depends[i];\n var dependAsset = assetsMap[depend.uuid + '@import'];\n if (!dependAsset) {\n if (CC_EDITOR) {\n !missingAssetReporter && (missingAssetReporter = new MissingObjectReporter(asset));\n missingAssetReporter.stashByOwner(depend.owner, depend.prop, Editor.serialize.asAsset(depend.uuid));\n }\n else {\n cc.error('The asset ' + depend.uuid + ' is missing!');\n }\n missingAsset = true;\n }\n else {\n depend.owner[depend.prop] = dependAsset.addRef();\n }\n }\n\n missingAssetReporter && missingAssetReporter.reportByOwner();\n asset.__depends__ = undefined;\n }\n \n if (asset.__nativeDepend__) {\n if (!asset._nativeAsset) {\n if (assetsMap[uuid + '@native']) {\n asset._nativeAsset = assetsMap[uuid + '@native'];\n }\n else {\n missingAsset = true;\n if (CC_EDITOR) {\n console.error(`the native asset of ${uuid} is missing!`);\n }\n }\n }\n asset.__nativeDepend__ = undefined;\n }\n return missingAsset;\n },\n\n gatherAsset (task) {\n let source = task.source;\n if (!task.options.__outputAsArray__ && source.length === 1) {\n task.output = source[0].content;\n }\n else {\n let output = task.output = [];\n for (var i = 0, l = source.length; i < l; i++) {\n output.push(source[i].content);\n }\n }\n },\n\n forEach (array, process, onComplete) {\n var count = 0;\n var errs = [];\n if (array.length === 0) onComplete && onComplete(errs);\n for (var i = 0, l = array.length; i < l; i++) {\n process(array[i], function (err) {\n if (err) {\n errs.push(err);\n }\n count ++;\n if (count === l) {\n onComplete && onComplete(errs);\n }\n });\n }\n },\n\n parseParameters (options, onProgress, onComplete) {\n if (onComplete === undefined) {\n var isCallback = typeof options === 'function';\n if (onProgress) {\n onComplete = onProgress;\n if (!isCallback) {\n onProgress = null;\n }\n }\n else if (onProgress === undefined && isCallback) {\n onComplete = options;\n options = null;\n onProgress = null;\n }\n if (onProgress !== undefined && isCallback) {\n onProgress = options;\n options = null;\n }\n }\n options = options || Object.create(null);\n return { options, onProgress, onComplete };\n },\n\n parseLoadResArgs (type, onProgress, onComplete) {\n if (onComplete === undefined) {\n var isValidType = cc.js.isChildClassOf(type, cc.Asset);\n if (onProgress) {\n onComplete = onProgress;\n if (isValidType) {\n onProgress = null;\n }\n }\n else if (onProgress === undefined && !isValidType) {\n onComplete = type;\n onProgress = null;\n type = null;\n }\n if (onProgress !== undefined && !isValidType) {\n onProgress = type;\n type = null;\n }\n }\n return { type, onProgress, onComplete };\n },\n\n checkCircleReference (owner, uuid, map, checked) {\n if (!checked) { \n checked = Object.create(null);\n }\n let item = map[uuid];\n if (!item || checked[uuid]) {\n return false;\n }\n checked[uuid] = true;\n var result = false;\n var deps = dependUtil.getDeps(uuid);\n if (deps) {\n for (var i = 0, l = deps.length; i < l; i++) {\n var dep = deps[i];\n if (dep === owner || utils.checkCircleReference(owner, dep, map, checked)) {\n result = true;\n break;\n }\n }\n }\n return result;\n },\n\n asyncify (cb) {\n return function (p1, p2) {\n if (!cb) return;\n let refs = [];\n if (Array.isArray(p2)) {\n p2.forEach(x => x instanceof cc.Asset && refs.push(x.addRef()));\n } else {\n p2 instanceof cc.Asset && refs.push(p2.addRef());\n }\n callInNextTick(() => {\n refs.forEach(x => x.decRef(false));\n cb(p1, p2);\n }); \n }\n }\n};\n\nmodule.exports = utils;","/****************************************************************************\n Copyright (c) 2013-2016 Chukong Technologies Inc.\n Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n\nvar CCObject = require('../platform/CCObject');\n\n/**\n * !#en\n * Base class for handling assets used in Creator.
\n *\n * You may want to override:
\n * - createNode
\n * - getset functions of _nativeAsset
\n * - cc.Object._serialize
\n * - cc.Object._deserialize
\n * !#zh\n * Creator 中的资源基类。
\n *\n * 您可能需要重写:
\n * - createNode
\n * - _nativeAsset 的 getset 方法
\n * - cc.Object._serialize
\n * - cc.Object._deserialize
\n *\n * @class Asset\n * @extends Object\n */\ncc.Asset = cc.Class({\n name: 'cc.Asset', extends: CCObject,\n\n ctor () {\n /**\n * @property {String} _uuid\n * @private\n */\n // enumerable is false by default, to avoid uuid being assigned to empty string during destroy\n Object.defineProperty(this, '_uuid', {\n value: '',\n writable: true,\n });\n /**\n * !#en\n * Whether the asset is loaded or not.\n * !#zh\n * 该资源是否已经成功加载。\n *\n * @property loaded\n * @type {Boolean}\n */\n this.loaded = true;\n this._nativeUrl = '';\n this._ref = 0;\n },\n\n properties: {\n /**\n * !#en\n * Returns the url of this asset's native object, if none it will returns an empty string.\n * !#zh\n * 返回该资源对应的目标平台资源的 URL,如果没有将返回一个空字符串。\n * @property nativeUrl\n * @type {String}\n * @readOnly\n */\n nativeUrl: {\n get: function () {\n if (!this._nativeUrl) {\n if (this._native) {\n var name = this._native;\n if (name.charCodeAt(0) === 47) { // '/'\n // remove library tag\n // not imported in library, just created on-the-fly\n return name.slice(1);\n }\n if (name.charCodeAt(0) === 46) { // '.'\n // imported in dir where json exist\n this._nativeUrl = cc.assetManager.utils.getUrlWithUuid(this._uuid, {nativeExt: name, isNative: true });\n }\n else {\n // imported in an independent dir\n this._nativeUrl = cc.assetManager.utils.getUrlWithUuid(this._uuid, {__nativeName__: name, nativeExt: cc.path.extname(name), isNative: true});\n }\n }\n }\n return this._nativeUrl;\n },\n visible: false\n },\n\n /**\n * !#en\n * The number of reference\n * \n * !#zh\n * 引用的数量\n * \n * @property refCount\n * @type {Number}\n */\n refCount: {\n get () {\n return this._ref;\n }\n },\n\n /**\n * !#en\n * Serializable url for native asset.\n * !#zh\n * 保存原生资源的 URL。\n * @property {String} _native\n * @default undefined\n * @private\n */\n _native: \"\",\n\n /**\n * !#en\n * The underlying native asset of this asset if one is available.\n * This property can be used to access additional details or functionality releated to the asset.\n * This property will be initialized by the loader if `_native` is available.\n * !#zh\n * 此资源依赖的底层原生资源(如果有的话)。\n * 此属性可用于访问与资源相关的其他详细信息或功能。\n * 如果 `_native` 可用,则此属性将由加载器初始化。\n * @property {Object} _nativeAsset\n * @default null\n * @private\n */\n _nativeAsset: {\n get () {\n return this._$nativeAsset;\n },\n set (obj) {\n this._$nativeAsset = obj;\n }\n },\n\n _nativeDep: {\n get () {\n if (this._native) {\n return {__isNative__: true, uuid: this._uuid, ext: this._native};\n }\n }\n }\n },\n\n statics: {\n /**\n * !#en\n * Provide this method at the request of AssetDB.\n * !#zh\n * 应 AssetDB 要求提供这个方法。\n *\n * @method deserialize\n * @param {String} data\n * @return {Asset}\n * @static\n * @private\n */\n deserialize: CC_EDITOR && function (data) {\n return cc.deserialize(data);\n },\n\n /**\n * !#en Indicates whether its dependent raw assets can support deferred load if the owner scene (or prefab) is marked as `asyncLoadAssets`.\n * !#zh 当场景或 Prefab 被标记为 `asyncLoadAssets`,禁止延迟加载该资源所依赖的其它原始资源。\n *\n * @property {Boolean} preventDeferredLoadDependents\n * @default false\n * @static\n */\n preventDeferredLoadDependents: false,\n\n /**\n * !#en Indicates whether its native object should be preloaded from native url.\n * !#zh 禁止预加载原生对象。\n *\n * @property {Boolean} preventPreloadNativeObject\n * @default false\n * @static\n */\n preventPreloadNativeObject: false\n\n },\n\n /**\n * !#en\n * Returns the asset's url.\n\n * The `Asset` object overrides the `toString()` method of the `Object` object.\n * For `Asset` objects, the `toString()` method returns a string representation of the object.\n * JavaScript calls the `toString()` method automatically when an asset is to be represented as a text value or when a texture is referred to in a string concatenation.\n * !#zh\n * 返回资源的 URL。\n * \n * Asset 对象将会重写 Object 对象的 `toString()` 方法。\n * 对于 Asset 对象,`toString()` 方法返回该对象的字符串表示形式。\n * 当资源要表示为文本值时或在字符串连接时引用时,JavaScript 会自动调用 `toString()` 方法。\n * @method toString\n * @return {String}\n */\n toString () {\n return this.nativeUrl;\n },\n\n /**\n * !#en\n * Provide this method at the request of AssetDB.\n * !#zh\n * 应 AssetDB 要求提供这个方法。\n *\n * @method serialize\n * @return {String}\n * @private\n */\n serialize: CC_EDITOR && function () {\n return Editor.serialize(this);\n },\n\n /**\n * !#en\n * Create a new node using this asset in the scene.
\n * If this type of asset dont have its corresponding node type, this method should be null.\n * !#zh\n * 使用该资源在场景中创建一个新节点。
\n * 如果这类资源没有相应的节点类型,该方法应该是空的。\n *\n * @method createNode\n * @param {Function} callback\n * @param {String} callback.error - null or the error info\n * @param {Object} callback.node - the created node or null\n */\n createNode: null,\n\n /**\n * !#en\n * Set native file name for this asset.\n * !#zh\n * 为此资源设置原生文件名。\n * \n * @seealso nativeUrl\n *\n * @method _setRawAsset\n * @param {String} filename\n * @param {Boolean} [inLibrary=true]\n * @private\n */\n _setRawAsset: function (filename, inLibrary) {\n if (inLibrary !== false) {\n this._native = filename || undefined;\n }\n else {\n this._native = '/' + filename; // simply use '/' to tag location where is not in the library\n }\n },\n\n /**\n * !#en\n * Add references of asset\n * \n * !#zh\n * 增加资源的引用\n * \n * @method addRef\n * @return {Asset} itself\n * \n * @typescript\n * addRef(): cc.Asset\n */\n addRef () {\n this._ref++;\n return this;\n },\n\n /**\n * !#en\n * Reduce references of asset and it will be auto released when refCount equals 0.\n * \n * !#zh\n * 减少资源的引用并尝试进行自动释放。\n * \n * @method decRef\n * @return {Asset} itself\n * \n * @typescript\n * decRef(): cc.Asset\n */\n decRef (autoRelease) {\n this._ref > 0 && this._ref--;\n autoRelease !== false && cc.assetManager._releaseManager.tryRelease(this);\n return this;\n }\n});\n\nmodule.exports = cc.Asset;\n","/****************************************************************************\n Copyright (c) 2013-2016 Chukong Technologies Inc.\n Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.\n\n https://www.cocos.com/\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated engine source code (the \"Software\"), a limited,\n worldwide, royalty-free, non-assignable, revocable and non-exclusive license\n to use Cocos Creator solely to develop games on your target platforms. You shall\n not use Cocos Creator software for developing other software or tools that's\n used for developing games. You are not granted to publish, distribute,\n sublicense, and/or sell copies of Cocos Creator.\n\n The software or tools in this License Agreement are licensed, not sold.\n Xiamen Yaji Software Co., Ltd. reserves all rights not expressly granted to you.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n THE SOFTWARE.\n ****************************************************************************/\n\nconst Asset = require('./CCAsset');\nconst EventTarget = require('../event/event-target');\n\nvar LoadMode = cc.Enum({\n WEB_AUDIO: 0,\n DOM_AUDIO: 1,\n});\n\n/**\n * !#en Class for audio data handling.\n * !#zh 音频资源类。\n * @class AudioClip\n * @extends Asset\n * @uses EventTarget\n */\nvar AudioClip = cc.Class({\n name: 'cc.AudioClip',\n extends: Asset,\n mixins: [EventTarget],\n\n ctor () {\n this._loading = false;\n this.loaded = false;\n\n // the web audio buffer or