Commit 3c6332e6 authored by limingzhe's avatar limingzhe

fix: 360新算法

parent a13834a3
No preview for this file type
{ {"ver":"1.1.2","uuid":"e9f579c0-59b7-4567-93ad-5b17f799e827","isBundle":false,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":false,"android":false},"subMetas":{}}
"ver": "1.1.2", \ No newline at end of file
"uuid": "e9f579c0-59b7-4567-93ad-5b17f799e827",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
...@@ -92,7 +92,7 @@ cc.Class({ ...@@ -92,7 +92,7 @@ cc.Class({
getDefaultData() { getDefaultData() {
return {"write_big_0_audio_url":"https://teach.cdn.ireadabc.com/90dabc173753ed6035c8a119057aa5bd.mp3","write_big_1_audio_url":"https://teach.cdn.ireadabc.com/4c5a39defde0e90f3a53bf50db6943f4.mp3","write_big_2_audio_url":"https://teach.cdn.ireadabc.com/d4b65a66108b46eb83dbfb93b742fc0d.mp3","write_small_0_audio_url":"https://teach.cdn.ireadabc.com/d099918c85ac7afc33f169c9038f46d4.mp3","write_small_1_audio_url":"https://teach.cdn.ireadabc.com/2f1ea180fb4d17dce34e8d7cc6cf9159.mp3","write_small_2_audio_url":"https://teach.cdn.ireadabc.com/841ba4410e6b4c9da6ba58cd3a4e86e0.mp3","tip_audio_url":"https://teach.cdn.ireadabc.com/d5cdef3f02abe29b14ca8c16ad4e7543.mp3","finish_audio_url":"https://teach.cdn.ireadabc.com/7fb349c67a76d2112a0604e624acaa97.mp3","letter":"G","animArr":[{"key":"letter_big_0","title":"大写彩色动画","skeJsonData":{"url":"https://teach.cdn.ireadabc.com/46648eaa3466cbb103c93d05dff1d995.json","name":"G大彩_ske.json"},"texJsonData":{"url":"https://teach.cdn.ireadabc.com/9267521512c602ee3bef2390d8b13947.json","name":"G大彩_tex.json"},"texPngData":{"url":"https://teach.cdn.ireadabc.com/42b25f1defaec7b11813825bfe0154d0.png","name":"G大彩_tex.png"}},{"key":"letter_big_1","title":"大写黑色动画","skeJsonData":{"url":"https://teach.cdn.ireadabc.com/f1c4994d43eaf2f73650aa80760d32fa.json","name":"G大黑_ske.json"},"texJsonData":{"url":"https://teach.cdn.ireadabc.com/343c9d1c8849e89f7144b593f17175a8.json","name":"G大黑_tex.json"},"texPngData":{"url":"https://teach.cdn.ireadabc.com/940b5059f2ead824a3f6088f20ce7ea5.png","name":"G大黑_tex.png"}},{"key":"letter_small_0","title":"小写彩色动画","skeJsonData":{"url":"https://teach.cdn.ireadabc.com/a4f58f48a8ab425fea95208280a2c8b8.json","name":"G小彩_ske.json"},"texJsonData":{"url":"https://teach.cdn.ireadabc.com/4503b6d5bb2c1a3bcea14747d3a01552.json","name":"G小彩_tex.json"},"texPngData":{"url":"https://teach.cdn.ireadabc.com/d92b9ea0e00045ad21324be26cefc726.png","name":"G小彩_tex.png"}},{"key":"letter_small_1","title":"小写黑色动画","skeJsonData":{"url":"https://teach.cdn.ireadabc.com/20ca0a1db036c6f8d5fd8860b3322a40.json","name":"G小黑_ske.json"},"texJsonData":{"url":"https://teach.cdn.ireadabc.com/f48f121f0dbd575ddbba4f12d657767c.json","name":"G小黑_tex.json"},"texPngData":{"url":"https://teach.cdn.ireadabc.com/faabc51aacefa4d6ed982c6a322c430f.png","name":"G小黑_tex.png"}}],"bg_pic_url":"https://teach.cdn.ireadabc.com/27037fea3bbe4f3fd9cfd09939197b82.png","dot_big_1_url":"https://teach.cdn.ireadabc.com/f2263a4e1e0e172c8e14998b04cd2f9f.png","dot_big_2_url":"https://teach.cdn.ireadabc.com/11aa8e1a3eed220e23d4d3087f24abf5.png","dot_small_1_url":"https://teach.cdn.ireadabc.com/031aa9423ac13e962173dfde3a07cb66.png","dot_small_2_url":"https://teach.cdn.ireadabc.com/2b70aabb5a4c8fce6c97e4dcbc99b16b.png","page_id":"25","book_id":"Oxford_Phonics_World_1_SB","part_name":"c","bgItem2":{"url":"https://teach.cdn.ireadabc.com/49fac1cb7ddef0d80253d100fcdfdc73.png","rect":{"x":137.07,"y":0,"width":1076.85,"height":1393}},"hotZoneItemArr2":[{"id":"1667986757301","index":0,"itemType":"rect","fontScale":1.05546875,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.05546875,"dragDot":{"x":675.5,"y":709.4506065857886},"gIdx":"3","labelText":"rac a say","posX":343,"posY":118,"rect":{"x":87.89,"y":108.04,"width":363.19,"height":55.17}},{"id":"1667986804356","index":1,"itemType":"rect","fontScale":1.05546875,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.05546875,"dragDot":{"x":675.5,"y":709.4506065857886},"gIdx":"5","labelText":"G","posX":224,"posY":190,"rect":{"x":87.89,"y":173.55,"width":89.65,"height":89.65}},{"id":"1667986845495","index":2,"itemType":"rect","fontScale":1.05546875,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.05546875,"dragDot":{"x":675.5,"y":709.4506065857886},"gIdx":"1","labelText":"G_0_b","posX":414,"posY":191,"rect":{"x":308.56,"y":174.7,"width":85.05,"height":89.65}},{"id":"1667986930683","index":3,"itemType":"rect","fontScale":1.05546875,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.05546875,"dragDot":{"x":675.5,"y":709.4506065857886},"gIdx":"1","labelText":"G_1_b","posX":500.00458302879935,"posY":191.00048861314352,"rect":{"x":406.28,"y":174.7,"width":87.34,"height":89.65}},{"id":"1667986957700","index":4,"itemType":"rect","fontScale":1.05546875,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.05546875,"dragDot":{"x":675.5,"y":709.4506065857886},"gIdx":"1","labelText":"G_2_b","posX":589.0048081489912,"posY":191.00048861314352,"rect":{"x":509.71,"y":174.7,"width":85.04,"height":89.65}},{"id":"1667986992262","index":5,"itemType":"rect","fontScale":1.05546875,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.05546875,"dragDot":{"x":675.5,"y":709.4506065857886},"gIdx":"1","labelText":"G_3_b","posX":676.0050358273669,"posY":192.00048861314352,"rect":{"x":609.73,"y":175.85,"width":85.04,"height":89.65}},{"id":"1667987011440","index":6,"itemType":"rect","fontScale":1.05546875,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.05546875,"dragDot":{"x":675.5,"y":709.4506065857886},"gIdx":"1","labelText":"G_4_b","posX":764.0052609475587,"posY":191.00049117132752,"rect":{"x":712.02,"y":174.7,"width":82.74,"height":89.65}},{"id":"1667987046498","index":7,"itemType":"rect","fontScale":1.05546875,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.05546875,"dragDot":{"x":675.5,"y":709.4506065857886},"gIdx":"1","labelText":"G_5_b","posX":852.0154886515163,"posY":192.00049372951153,"rect":{"x":813.18,"y":175.85,"width":82.72,"height":89.65}},{"id":"1667987078242","index":8,"itemType":"rect","fontScale":1.05546875,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.05546875,"dragDot":{"x":675.5,"y":709.4506065857886},"gIdx":"1","labelText":"G_6_b","posX":938.0257163554738,"posY":192.00049117132752,"rect":{"x":913.2,"y":175.85,"width":80.39,"height":89.65}},{"id":"1667987243378","index":9,"itemType":"rect","fontScale":1.05546875,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.05546875,"dragDot":{"x":675.5,"y":709.4506065857886},"gIdx":"1","labelText":"g||6||9||q||a_0_s","posX":415.0309235811686,"posY":339.00049117132755,"rect":{"x":321.28,"y":345.95,"width":62,"height":87.35}},{"id":"1667987276179","index":10,"itemType":"rect","fontScale":1.05546875,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.05546875,"dragDot":{"x":675.5,"y":709.4506065857886},"gIdx":"1","labelText":"g||6||9||q||a_1_s","posX":502.0345856637288,"posY":339.00086722437516,"rect":{"x":421.27,"y":345.95,"width":62,"height":87.35}},{"id":"1667987300225","index":11,"itemType":"rect","fontScale":1.05546875,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.05546875,"dragDot":{"x":675.5,"y":709.4506065857886},"gIdx":"1","labelText":"g||6||9||q||a_2_s","posX":592.0348107839206,"posY":339.00086978255916,"rect":{"x":524.71,"y":345.95,"width":62,"height":87.35}},{"id":"1667987330641","index":12,"itemType":"rect","fontScale":1.05546875,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.05546875,"dragDot":{"x":675.5,"y":709.4506065857886},"gIdx":"1","labelText":"g||6||9||q||a_3_s","posX":679.0350384622964,"posY":339.0008723407432,"rect":{"x":624.72,"y":345.95,"width":62,"height":87.35}},{"id":"1667987360891","index":13,"itemType":"rect","fontScale":1.05546875,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.05546875,"dragDot":{"x":675.5,"y":709.4506065857886},"gIdx":"1","labelText":"g||6||9||q||a_4_s","posX":769.0352610243042,"posY":340.0008723407432,"rect":{"x":728.18,"y":347.1,"width":62,"height":87.35}},{"id":"1667987402567","index":14,"itemType":"rect","fontScale":1.05546875,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.05546875,"dragDot":{"x":675.5,"y":709.4506065857886},"gIdx":"1","labelText":"g||6||9||q||a_5_s","posX":854.0454912864458,"posY":340.00086978255916,"rect":{"x":825.88,"y":347.1,"width":62,"height":87.35}},{"id":"1667987419969","index":15,"itemType":"rect","fontScale":1.05546875,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.05546875,"dragDot":{"x":675.5,"y":709.4506065857886},"gIdx":"1","labelText":"g||6||9||q||a_6_s","posX":939.0557087576674,"posY":339.00086978255916,"rect":{"x":923.59,"y":345.95,"width":62,"height":87.35}},{"id":"1667987449223","index":16,"itemType":"rect","fontScale":1.05546875,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.05546875,"dragDot":{"x":675.5,"y":709.4506065857886},"gIdx":"2","posX":589,"posY":242,"rect":{"x":46.52,"y":99.99,"width":1011.42,"height":356.3}}],"isDebug":true} // return {"write_big_0_audio_url":"https://teach.cdn.ireadabc.com/90dabc173753ed6035c8a119057aa5bd.mp3","write_big_1_audio_url":"https://teach.cdn.ireadabc.com/4c5a39defde0e90f3a53bf50db6943f4.mp3","write_big_2_audio_url":"https://teach.cdn.ireadabc.com/d4b65a66108b46eb83dbfb93b742fc0d.mp3","write_small_0_audio_url":"https://teach.cdn.ireadabc.com/d099918c85ac7afc33f169c9038f46d4.mp3","write_small_1_audio_url":"https://teach.cdn.ireadabc.com/2f1ea180fb4d17dce34e8d7cc6cf9159.mp3","write_small_2_audio_url":"https://teach.cdn.ireadabc.com/841ba4410e6b4c9da6ba58cd3a4e86e0.mp3","tip_audio_url":"https://teach.cdn.ireadabc.com/d5cdef3f02abe29b14ca8c16ad4e7543.mp3","finish_audio_url":"https://teach.cdn.ireadabc.com/7fb349c67a76d2112a0604e624acaa97.mp3","letter":"G","animArr":[{"key":"letter_big_0","title":"大写彩色动画","skeJsonData":{"url":"https://teach.cdn.ireadabc.com/46648eaa3466cbb103c93d05dff1d995.json","name":"G大彩_ske.json"},"texJsonData":{"url":"https://teach.cdn.ireadabc.com/9267521512c602ee3bef2390d8b13947.json","name":"G大彩_tex.json"},"texPngData":{"url":"https://teach.cdn.ireadabc.com/42b25f1defaec7b11813825bfe0154d0.png","name":"G大彩_tex.png"}},{"key":"letter_big_1","title":"大写黑色动画","skeJsonData":{"url":"https://teach.cdn.ireadabc.com/f1c4994d43eaf2f73650aa80760d32fa.json","name":"G大黑_ske.json"},"texJsonData":{"url":"https://teach.cdn.ireadabc.com/343c9d1c8849e89f7144b593f17175a8.json","name":"G大黑_tex.json"},"texPngData":{"url":"https://teach.cdn.ireadabc.com/940b5059f2ead824a3f6088f20ce7ea5.png","name":"G大黑_tex.png"}},{"key":"letter_small_0","title":"小写彩色动画","skeJsonData":{"url":"https://teach.cdn.ireadabc.com/a4f58f48a8ab425fea95208280a2c8b8.json","name":"G小彩_ske.json"},"texJsonData":{"url":"https://teach.cdn.ireadabc.com/4503b6d5bb2c1a3bcea14747d3a01552.json","name":"G小彩_tex.json"},"texPngData":{"url":"https://teach.cdn.ireadabc.com/d92b9ea0e00045ad21324be26cefc726.png","name":"G小彩_tex.png"}},{"key":"letter_small_1","title":"小写黑色动画","skeJsonData":{"url":"https://teach.cdn.ireadabc.com/20ca0a1db036c6f8d5fd8860b3322a40.json","name":"G小黑_ske.json"},"texJsonData":{"url":"https://teach.cdn.ireadabc.com/f48f121f0dbd575ddbba4f12d657767c.json","name":"G小黑_tex.json"},"texPngData":{"url":"https://teach.cdn.ireadabc.com/faabc51aacefa4d6ed982c6a322c430f.png","name":"G小黑_tex.png"}}],"bg_pic_url":"https://teach.cdn.ireadabc.com/27037fea3bbe4f3fd9cfd09939197b82.png","dot_big_1_url":"https://teach.cdn.ireadabc.com/f2263a4e1e0e172c8e14998b04cd2f9f.png","dot_big_2_url":"https://teach.cdn.ireadabc.com/11aa8e1a3eed220e23d4d3087f24abf5.png","dot_small_1_url":"https://teach.cdn.ireadabc.com/031aa9423ac13e962173dfde3a07cb66.png","dot_small_2_url":"https://teach.cdn.ireadabc.com/2b70aabb5a4c8fce6c97e4dcbc99b16b.png","page_id":"25","book_id":"Oxford_Phonics_World_1_SB","part_name":"c","bgItem2":{"url":"https://teach.cdn.ireadabc.com/49fac1cb7ddef0d80253d100fcdfdc73.png","rect":{"x":137.07,"y":0,"width":1076.85,"height":1393}},"hotZoneItemArr2":[{"id":"1667986757301","index":0,"itemType":"rect","fontScale":1.05546875,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.05546875,"dragDot":{"x":675.5,"y":709.4506065857886},"gIdx":"3","labelText":"rac a say","posX":343,"posY":118,"rect":{"x":87.89,"y":108.04,"width":363.19,"height":55.17}},{"id":"1667986804356","index":1,"itemType":"rect","fontScale":1.05546875,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.05546875,"dragDot":{"x":675.5,"y":709.4506065857886},"gIdx":"5","labelText":"G","posX":224,"posY":190,"rect":{"x":87.89,"y":173.55,"width":89.65,"height":89.65}},{"id":"1667986845495","index":2,"itemType":"rect","fontScale":1.05546875,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.05546875,"dragDot":{"x":675.5,"y":709.4506065857886},"gIdx":"1","labelText":"G_0_b","posX":414,"posY":191,"rect":{"x":308.56,"y":174.7,"width":85.05,"height":89.65}},{"id":"1667986930683","index":3,"itemType":"rect","fontScale":1.05546875,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.05546875,"dragDot":{"x":675.5,"y":709.4506065857886},"gIdx":"1","labelText":"G_1_b","posX":500.00458302879935,"posY":191.00048861314352,"rect":{"x":406.28,"y":174.7,"width":87.34,"height":89.65}},{"id":"1667986957700","index":4,"itemType":"rect","fontScale":1.05546875,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.05546875,"dragDot":{"x":675.5,"y":709.4506065857886},"gIdx":"1","labelText":"G_2_b","posX":589.0048081489912,"posY":191.00048861314352,"rect":{"x":509.71,"y":174.7,"width":85.04,"height":89.65}},{"id":"1667986992262","index":5,"itemType":"rect","fontScale":1.05546875,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.05546875,"dragDot":{"x":675.5,"y":709.4506065857886},"gIdx":"1","labelText":"G_3_b","posX":676.0050358273669,"posY":192.00048861314352,"rect":{"x":609.73,"y":175.85,"width":85.04,"height":89.65}},{"id":"1667987011440","index":6,"itemType":"rect","fontScale":1.05546875,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.05546875,"dragDot":{"x":675.5,"y":709.4506065857886},"gIdx":"1","labelText":"G_4_b","posX":764.0052609475587,"posY":191.00049117132752,"rect":{"x":712.02,"y":174.7,"width":82.74,"height":89.65}},{"id":"1667987046498","index":7,"itemType":"rect","fontScale":1.05546875,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.05546875,"dragDot":{"x":675.5,"y":709.4506065857886},"gIdx":"1","labelText":"G_5_b","posX":852.0154886515163,"posY":192.00049372951153,"rect":{"x":813.18,"y":175.85,"width":82.72,"height":89.65}},{"id":"1667987078242","index":8,"itemType":"rect","fontScale":1.05546875,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.05546875,"dragDot":{"x":675.5,"y":709.4506065857886},"gIdx":"1","labelText":"G_6_b","posX":938.0257163554738,"posY":192.00049117132752,"rect":{"x":913.2,"y":175.85,"width":80.39,"height":89.65}},{"id":"1667987243378","index":9,"itemType":"rect","fontScale":1.05546875,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.05546875,"dragDot":{"x":675.5,"y":709.4506065857886},"gIdx":"1","labelText":"g||6||9||q||a_0_s","posX":415.0309235811686,"posY":339.00049117132755,"rect":{"x":321.28,"y":345.95,"width":62,"height":87.35}},{"id":"1667987276179","index":10,"itemType":"rect","fontScale":1.05546875,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.05546875,"dragDot":{"x":675.5,"y":709.4506065857886},"gIdx":"1","labelText":"g||6||9||q||a_1_s","posX":502.0345856637288,"posY":339.00086722437516,"rect":{"x":421.27,"y":345.95,"width":62,"height":87.35}},{"id":"1667987300225","index":11,"itemType":"rect","fontScale":1.05546875,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.05546875,"dragDot":{"x":675.5,"y":709.4506065857886},"gIdx":"1","labelText":"g||6||9||q||a_2_s","posX":592.0348107839206,"posY":339.00086978255916,"rect":{"x":524.71,"y":345.95,"width":62,"height":87.35}},{"id":"1667987330641","index":12,"itemType":"rect","fontScale":1.05546875,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.05546875,"dragDot":{"x":675.5,"y":709.4506065857886},"gIdx":"1","labelText":"g||6||9||q||a_3_s","posX":679.0350384622964,"posY":339.0008723407432,"rect":{"x":624.72,"y":345.95,"width":62,"height":87.35}},{"id":"1667987360891","index":13,"itemType":"rect","fontScale":1.05546875,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.05546875,"dragDot":{"x":675.5,"y":709.4506065857886},"gIdx":"1","labelText":"g||6||9||q||a_4_s","posX":769.0352610243042,"posY":340.0008723407432,"rect":{"x":728.18,"y":347.1,"width":62,"height":87.35}},{"id":"1667987402567","index":14,"itemType":"rect","fontScale":1.05546875,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.05546875,"dragDot":{"x":675.5,"y":709.4506065857886},"gIdx":"1","labelText":"g||6||9||q||a_5_s","posX":854.0454912864458,"posY":340.00086978255916,"rect":{"x":825.88,"y":347.1,"width":62,"height":87.35}},{"id":"1667987419969","index":15,"itemType":"rect","fontScale":1.05546875,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.05546875,"dragDot":{"x":675.5,"y":709.4506065857886},"gIdx":"1","labelText":"g||6||9||q||a_6_s","posX":939.0557087576674,"posY":339.00086978255916,"rect":{"x":923.59,"y":345.95,"width":62,"height":87.35}},{"id":"1667987449223","index":16,"itemType":"rect","fontScale":1.05546875,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.05546875,"dragDot":{"x":675.5,"y":709.4506065857886},"gIdx":"2","posX":589,"posY":242,"rect":{"x":46.52,"y":99.99,"width":1011.42,"height":356.3}}],"isDebug":true}
// return {"write_big_0_audio_url":"http://teach.cdn.ireadabc.com/34bdf0dfff014d8ba8d21a954052ed72.mp3","write_big_1_audio_url":"http://teach.cdn.ireadabc.com/4c5a39defde0e90f3a53bf50db6943f4.mp3","write_big_2_audio_url":"http://teach.cdn.ireadabc.com/4414404648097fd17a2f68d90f5f3826.mp3","write_small_0_audio_url":"http://teach.cdn.ireadabc.com/d099918c85ac7afc33f169c9038f46d4.mp3","write_small_1_audio_url":"http://teach.cdn.ireadabc.com/2f1ea180fb4d17dce34e8d7cc6cf9159.mp3","write_small_2_audio_url":"http://teach.cdn.ireadabc.com/f711246a0105fd437f83041b28cb7283.mp3","tip_audio_url":"http://teach.cdn.ireadabc.com/d5cdef3f02abe29b14ca8c16ad4e7543.mp3","finish_audio_url":"http://teach.cdn.ireadabc.com/7fb349c67a76d2112a0604e624acaa97.mp3","letter":"O","animArr":[{"key":"letter_big_0","title":"大写彩色动画","skeJsonData":{"url":"http://teach.cdn.ireadabc.com/a6eb903542260d9fd057261d3d8cd916.json","name":"O大彩_ske.json"},"texJsonData":{"url":"http://teach.cdn.ireadabc.com/ffa8d016aa6b77ce92a24cf64aa67822.json","name":"O大彩_tex.json"},"texPngData":{"url":"http://teach.cdn.ireadabc.com/bb57debf0de27979990adcea5a083747.png","name":"O大彩_tex.png"}},{"key":"letter_big_1","title":"大写黑色动画","skeJsonData":{"url":"http://teach.cdn.ireadabc.com/a21e416c0663c7145ac1f56f1b9a359c.json","name":"O大黑_ske.json"},"texJsonData":{"url":"http://teach.cdn.ireadabc.com/25c5628b107dde62fbb8764d50877c48.json","name":"O大黑_tex.json"},"texPngData":{"url":"http://teach.cdn.ireadabc.com/940b082e1c78fa6975d65795d0c0de1f.png","name":"O大黑_tex.png"}},{"key":"letter_small_0","title":"小写彩色动画","skeJsonData":{"url":"http://teach.cdn.ireadabc.com/6195d9ba221550929511456f9585a282.json","name":"O小彩_ske.json"},"texJsonData":{"url":"http://teach.cdn.ireadabc.com/9c6711f9533e931bb723dfe01a27d77b.json","name":"O小彩_tex.json"},"texPngData":{"url":"http://teach.cdn.ireadabc.com/c509b7b6cf66054c505c87879fbbbb2e.png","name":"O小彩_tex.png"}},{"key":"letter_small_1","title":"小写黑色动画","skeJsonData":{"url":"http://teach.cdn.ireadabc.com/0793022b629803766b729dd2c6d36095.json","name":"O小黑_ske.json"},"texJsonData":{"url":"http://teach.cdn.ireadabc.com/09b9b04f7803ab64c4689e9771899896.json","name":"O小黑_tex.json"},"texPngData":{"url":"http://teach.cdn.ireadabc.com/bdec6de4a9943b788a1113bded88a374.png","name":"O小黑_tex.png"}}],"bg_pic_url":"http://teach.cdn.ireadabc.com/311e82c0bef7eb5ca9b30b97433634b8.png","dot_big_1_url":"http://teach.cdn.ireadabc.com/8bcf92fd090cfa76a657aef38a0cd3e6.png","dot_big_2_url":"http://teach.cdn.ireadabc.com/8bcf92fd090cfa76a657aef38a0cd3e6.png","dot_small_1_url":"http://teach.cdn.ireadabc.com/64e967ea643f557174b2fa6d63d66de0.png","dot_small_2_url":"http://teach.cdn.ireadabc.com/64e967ea643f557174b2fa6d63d66de0.png","bgItem2":{"url":"http://teach.cdn.ireadabc.com/2df6362f502da486362afcdb931143a4.png","rect":{"x":173.35,"y":0,"width":1385.3,"height":1792}},"hotZoneItemArr2":[{"id":"1667996384613","index":0,"itemType":"rect","fontScale":1.353125,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.353125,"dragDot":{"x":866,"y":909.5251299826689},"gIdx":"3","labelText":"Trace w a say","posX":347,"posY":118,"rect":{"x":114.54,"y":138.98,"width":476.09,"height":70.97}},{"id":"1667996429449","index":1,"itemType":"rect","fontScale":1.353125,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.353125,"dragDot":{"x":866,"y":909.5251299826689},"gIdx":"5","labelText":"O","posX":223,"posY":190,"rect":{"x":111.59,"y":223.26,"width":115.33,"height":115.33}},{"id":"1667996475755","index":2,"itemType":"rect","fontScale":1.353125,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.353125,"dragDot":{"x":866,"y":909.5251299826689},"gIdx":"1","labelText":"O_0_b","posX":413,"posY":190,"rect":{"x":393.99,"y":224.74,"width":112.37,"height":112.37}},{"id":"1667996514606","index":3,"itemType":"rect","fontScale":1.353125,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.353125,"dragDot":{"x":866,"y":909.5251299826689},"gIdx":"1","labelText":"O_1_b","posX":501.00458047061534,"posY":189.0004860549595,"rect":{"x":524.1,"y":223.26,"width":112.37,"height":112.37}},{"id":"1667996537563","index":4,"itemType":"rect","fontScale":1.353125,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.353125,"dragDot":{"x":866,"y":909.5251299826689},"gIdx":"1","labelText":"O_2_b","posX":589.0048055908071,"posY":190.00048349677553,"rect":{"x":654.22,"y":224.74,"width":112.37,"height":112.37}},{"id":"1667996628116","index":5,"itemType":"rect","fontScale":1.353125,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.353125,"dragDot":{"x":866,"y":909.5251299826689},"gIdx":"1","labelText":"O_3_b","posX":677.005030710999,"posY":191.0004860549595,"rect":{"x":784.36,"y":226.22,"width":112.37,"height":112.37}},{"id":"1667996647292","index":6,"itemType":"rect","fontScale":1.353125,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.353125,"dragDot":{"x":866,"y":909.5251299826689},"gIdx":"1","labelText":"O_4_b","posX":764.0052558311908,"posY":191.00048861314352,"rect":{"x":913.01,"y":226.22,"width":112.37,"height":112.37}},{"id":"1667996663956","index":7,"itemType":"rect","fontScale":1.353125,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.353125,"dragDot":{"x":866,"y":909.5251299826689},"gIdx":"1","labelText":"O_5_b","posX":851.0154784187804,"posY":191.00048861314352,"rect":{"x":1041.65,"y":226.22,"width":112.37,"height":112.37}},{"id":"1667996680692","index":8,"itemType":"rect","fontScale":1.353125,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.353125,"dragDot":{"x":866,"y":909.5251299826689},"gIdx":"1","labelText":"O_6_b","posX":937.02570100637,"posY":191.00048861314352,"rect":{"x":1168.82,"y":226.22,"width":112.37,"height":112.37}},{"id":"1667996735804","index":9,"itemType":"rect","fontScale":1.353125,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.353125,"dragDot":{"x":866,"y":909.5251299826689},"gIdx":"1","labelText":"o_0_s","posX":414.0391379943202,"posY":327.0058339807742,"rect":{"x":417.75,"y":449.54,"width":67.91,"height":67.91}},{"id":"1667996746463","index":10,"itemType":"rect","fontScale":1.353125,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.353125,"dragDot":{"x":866,"y":909.5251299826689},"gIdx":"1","labelText":"o_1_s","posX":502.0395831183358,"posY":327.00583653895814,"rect":{"x":547.86,"y":449.54,"width":67.91,"height":67.91}},{"id":"1667996766201","index":11,"itemType":"rect","fontScale":1.353125,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.353125,"dragDot":{"x":866,"y":909.5251299826689},"gIdx":"1","labelText":"o_2_s","posX":591.0398082385276,"posY":327.00583653895814,"rect":{"x":679.45,"y":449.54,"width":67.91,"height":67.91}},{"id":"1667996792956","index":12,"itemType":"rect","fontScale":1.353125,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.353125,"dragDot":{"x":866,"y":909.5251299826689},"gIdx":"1","labelText":"o_3_s","posX":677.0400359169033,"posY":326.00583653895814,"rect":{"x":806.65,"y":448.08,"width":67.9,"height":67.9}},{"id":"1667996807381","index":13,"itemType":"rect","fontScale":1.353125,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.353125,"dragDot":{"x":866,"y":909.5251299826689},"gIdx":"1","labelText":"o_4_s","posX":764.0402559207271,"posY":325.00583653895814,"rect":{"x":935.29,"y":446.58,"width":67.91,"height":67.91}},{"id":"1667996825251","index":14,"itemType":"rect","fontScale":1.353125,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.353125,"dragDot":{"x":866,"y":909.5251299826689},"gIdx":"1","labelText":"o_5_s","posX":851.0504810665007,"posY":326.00583653895814,"rect":{"x":1063.94,"y":448.06,"width":67.91,"height":67.91}},{"id":"1667997008158","index":15,"itemType":"rect","fontScale":1.353125,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.353125,"dragDot":{"x":866,"y":909.5251299826689},"gIdx":"1","labelText":"o_6_s","posX":939.0707011214882,"posY":326.0058339807742,"rect":{"x":1194.06,"y":448.06,"width":67.91,"height":67.91}},{"id":"1667997079815","index":16,"itemType":"rect","fontScale":1.353125,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.353125,"dragDot":{"x":866,"y":909.5251299826689},"gIdx":"2","posX":880.7500124043811,"posY":349.8094961982715,"rect":{"x":96.76,"y":119.16,"width":1221.28,"height":461.31}}],"page_id":"49","book_id":"Oxford_Phonics_World_1_SB","part_name":"c","isDebug":false} // return {"write_big_0_audio_url":"http://teach.cdn.ireadabc.com/34bdf0dfff014d8ba8d21a954052ed72.mp3","write_big_1_audio_url":"http://teach.cdn.ireadabc.com/4c5a39defde0e90f3a53bf50db6943f4.mp3","write_big_2_audio_url":"http://teach.cdn.ireadabc.com/4414404648097fd17a2f68d90f5f3826.mp3","write_small_0_audio_url":"http://teach.cdn.ireadabc.com/d099918c85ac7afc33f169c9038f46d4.mp3","write_small_1_audio_url":"http://teach.cdn.ireadabc.com/2f1ea180fb4d17dce34e8d7cc6cf9159.mp3","write_small_2_audio_url":"http://teach.cdn.ireadabc.com/f711246a0105fd437f83041b28cb7283.mp3","tip_audio_url":"http://teach.cdn.ireadabc.com/d5cdef3f02abe29b14ca8c16ad4e7543.mp3","finish_audio_url":"http://teach.cdn.ireadabc.com/7fb349c67a76d2112a0604e624acaa97.mp3","letter":"O","animArr":[{"key":"letter_big_0","title":"大写彩色动画","skeJsonData":{"url":"http://teach.cdn.ireadabc.com/a6eb903542260d9fd057261d3d8cd916.json","name":"O大彩_ske.json"},"texJsonData":{"url":"http://teach.cdn.ireadabc.com/ffa8d016aa6b77ce92a24cf64aa67822.json","name":"O大彩_tex.json"},"texPngData":{"url":"http://teach.cdn.ireadabc.com/bb57debf0de27979990adcea5a083747.png","name":"O大彩_tex.png"}},{"key":"letter_big_1","title":"大写黑色动画","skeJsonData":{"url":"http://teach.cdn.ireadabc.com/a21e416c0663c7145ac1f56f1b9a359c.json","name":"O大黑_ske.json"},"texJsonData":{"url":"http://teach.cdn.ireadabc.com/25c5628b107dde62fbb8764d50877c48.json","name":"O大黑_tex.json"},"texPngData":{"url":"http://teach.cdn.ireadabc.com/940b082e1c78fa6975d65795d0c0de1f.png","name":"O大黑_tex.png"}},{"key":"letter_small_0","title":"小写彩色动画","skeJsonData":{"url":"http://teach.cdn.ireadabc.com/6195d9ba221550929511456f9585a282.json","name":"O小彩_ske.json"},"texJsonData":{"url":"http://teach.cdn.ireadabc.com/9c6711f9533e931bb723dfe01a27d77b.json","name":"O小彩_tex.json"},"texPngData":{"url":"http://teach.cdn.ireadabc.com/c509b7b6cf66054c505c87879fbbbb2e.png","name":"O小彩_tex.png"}},{"key":"letter_small_1","title":"小写黑色动画","skeJsonData":{"url":"http://teach.cdn.ireadabc.com/0793022b629803766b729dd2c6d36095.json","name":"O小黑_ske.json"},"texJsonData":{"url":"http://teach.cdn.ireadabc.com/09b9b04f7803ab64c4689e9771899896.json","name":"O小黑_tex.json"},"texPngData":{"url":"http://teach.cdn.ireadabc.com/bdec6de4a9943b788a1113bded88a374.png","name":"O小黑_tex.png"}}],"bg_pic_url":"http://teach.cdn.ireadabc.com/311e82c0bef7eb5ca9b30b97433634b8.png","dot_big_1_url":"http://teach.cdn.ireadabc.com/8bcf92fd090cfa76a657aef38a0cd3e6.png","dot_big_2_url":"http://teach.cdn.ireadabc.com/8bcf92fd090cfa76a657aef38a0cd3e6.png","dot_small_1_url":"http://teach.cdn.ireadabc.com/64e967ea643f557174b2fa6d63d66de0.png","dot_small_2_url":"http://teach.cdn.ireadabc.com/64e967ea643f557174b2fa6d63d66de0.png","bgItem2":{"url":"http://teach.cdn.ireadabc.com/2df6362f502da486362afcdb931143a4.png","rect":{"x":173.35,"y":0,"width":1385.3,"height":1792}},"hotZoneItemArr2":[{"id":"1667996384613","index":0,"itemType":"rect","fontScale":1.353125,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.353125,"dragDot":{"x":866,"y":909.5251299826689},"gIdx":"3","labelText":"Trace w a say","posX":347,"posY":118,"rect":{"x":114.54,"y":138.98,"width":476.09,"height":70.97}},{"id":"1667996429449","index":1,"itemType":"rect","fontScale":1.353125,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.353125,"dragDot":{"x":866,"y":909.5251299826689},"gIdx":"5","labelText":"O","posX":223,"posY":190,"rect":{"x":111.59,"y":223.26,"width":115.33,"height":115.33}},{"id":"1667996475755","index":2,"itemType":"rect","fontScale":1.353125,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.353125,"dragDot":{"x":866,"y":909.5251299826689},"gIdx":"1","labelText":"O_0_b","posX":413,"posY":190,"rect":{"x":393.99,"y":224.74,"width":112.37,"height":112.37}},{"id":"1667996514606","index":3,"itemType":"rect","fontScale":1.353125,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.353125,"dragDot":{"x":866,"y":909.5251299826689},"gIdx":"1","labelText":"O_1_b","posX":501.00458047061534,"posY":189.0004860549595,"rect":{"x":524.1,"y":223.26,"width":112.37,"height":112.37}},{"id":"1667996537563","index":4,"itemType":"rect","fontScale":1.353125,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.353125,"dragDot":{"x":866,"y":909.5251299826689},"gIdx":"1","labelText":"O_2_b","posX":589.0048055908071,"posY":190.00048349677553,"rect":{"x":654.22,"y":224.74,"width":112.37,"height":112.37}},{"id":"1667996628116","index":5,"itemType":"rect","fontScale":1.353125,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.353125,"dragDot":{"x":866,"y":909.5251299826689},"gIdx":"1","labelText":"O_3_b","posX":677.005030710999,"posY":191.0004860549595,"rect":{"x":784.36,"y":226.22,"width":112.37,"height":112.37}},{"id":"1667996647292","index":6,"itemType":"rect","fontScale":1.353125,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.353125,"dragDot":{"x":866,"y":909.5251299826689},"gIdx":"1","labelText":"O_4_b","posX":764.0052558311908,"posY":191.00048861314352,"rect":{"x":913.01,"y":226.22,"width":112.37,"height":112.37}},{"id":"1667996663956","index":7,"itemType":"rect","fontScale":1.353125,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.353125,"dragDot":{"x":866,"y":909.5251299826689},"gIdx":"1","labelText":"O_5_b","posX":851.0154784187804,"posY":191.00048861314352,"rect":{"x":1041.65,"y":226.22,"width":112.37,"height":112.37}},{"id":"1667996680692","index":8,"itemType":"rect","fontScale":1.353125,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.353125,"dragDot":{"x":866,"y":909.5251299826689},"gIdx":"1","labelText":"O_6_b","posX":937.02570100637,"posY":191.00048861314352,"rect":{"x":1168.82,"y":226.22,"width":112.37,"height":112.37}},{"id":"1667996735804","index":9,"itemType":"rect","fontScale":1.353125,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.353125,"dragDot":{"x":866,"y":909.5251299826689},"gIdx":"1","labelText":"o_0_s","posX":414.0391379943202,"posY":327.0058339807742,"rect":{"x":417.75,"y":449.54,"width":67.91,"height":67.91}},{"id":"1667996746463","index":10,"itemType":"rect","fontScale":1.353125,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.353125,"dragDot":{"x":866,"y":909.5251299826689},"gIdx":"1","labelText":"o_1_s","posX":502.0395831183358,"posY":327.00583653895814,"rect":{"x":547.86,"y":449.54,"width":67.91,"height":67.91}},{"id":"1667996766201","index":11,"itemType":"rect","fontScale":1.353125,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.353125,"dragDot":{"x":866,"y":909.5251299826689},"gIdx":"1","labelText":"o_2_s","posX":591.0398082385276,"posY":327.00583653895814,"rect":{"x":679.45,"y":449.54,"width":67.91,"height":67.91}},{"id":"1667996792956","index":12,"itemType":"rect","fontScale":1.353125,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.353125,"dragDot":{"x":866,"y":909.5251299826689},"gIdx":"1","labelText":"o_3_s","posX":677.0400359169033,"posY":326.00583653895814,"rect":{"x":806.65,"y":448.08,"width":67.9,"height":67.9}},{"id":"1667996807381","index":13,"itemType":"rect","fontScale":1.353125,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.353125,"dragDot":{"x":866,"y":909.5251299826689},"gIdx":"1","labelText":"o_4_s","posX":764.0402559207271,"posY":325.00583653895814,"rect":{"x":935.29,"y":446.58,"width":67.91,"height":67.91}},{"id":"1667996825251","index":14,"itemType":"rect","fontScale":1.353125,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.353125,"dragDot":{"x":866,"y":909.5251299826689},"gIdx":"1","labelText":"o_5_s","posX":851.0504810665007,"posY":326.00583653895814,"rect":{"x":1063.94,"y":448.06,"width":67.91,"height":67.91}},{"id":"1667997008158","index":15,"itemType":"rect","fontScale":1.353125,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.353125,"dragDot":{"x":866,"y":909.5251299826689},"gIdx":"1","labelText":"o_6_s","posX":939.0707011214882,"posY":326.0058339807742,"rect":{"x":1194.06,"y":448.06,"width":67.91,"height":67.91}},{"id":"1667997079815","index":16,"itemType":"rect","fontScale":1.353125,"imgScale":1,"imgSizeW":0,"imgSizeH":0,"mapScale":1.353125,"dragDot":{"x":866,"y":909.5251299826689},"gIdx":"2","posX":880.7500124043811,"posY":349.8094961982715,"rect":{"x":96.76,"y":119.16,"width":1221.28,"height":461.31}}],"page_id":"49","book_id":"Oxford_Phonics_World_1_SB","part_name":"c","isDebug":false}
...@@ -241,6 +241,9 @@ cc.Class({ ...@@ -241,6 +241,9 @@ cc.Class({
this.benchmark2Data = this.getGroupArrByGIdx(this.data.hotZoneItemArr2, '4')[0]; this.benchmark2Data = this.getGroupArrByGIdx(this.data.hotZoneItemArr2, '4')[0];
this.firstItemData = this.getGroupArrByGIdx(this.data.hotZoneItemArr2, '5')[0]; this.firstItemData = this.getGroupArrByGIdx(this.data.hotZoneItemArr2, '5')[0];
this.newRectArr = this.getGroupArrByGIdx(this.data.hotZoneItemArr2, '1');
this.initCheckBase(); this.initCheckBase();
this.initQuesRegion(); this.initQuesRegion();
// this.initTestPointArr(); // this.initTestPointArr();
...@@ -687,13 +690,11 @@ cc.Class({ ...@@ -687,13 +690,11 @@ cc.Class({
this.startHelper(); this.startHelper();
// // setInterval(() => { // setInterval(() => {
// this.getPhotoData((data) => { // this.getPhotoData((data) => {
// this.photoEnd(data); // this.photoEnd(data);
// }); // });
// // }, 30); // }, 30);
// return; // return;
const partRegions = this.getRegionsByGidx('2'); const partRegions = this.getRegionsByGidx('2');
...@@ -1444,6 +1445,10 @@ cc.Class({ ...@@ -1444,6 +1445,10 @@ cc.Class({
const s = Math.min(sx, sy); const s = Math.min(sx, sy);
layer.scale = s; layer.scale = s;
layer.data = this.data.bgItem2;
this.addNewRect();
this.startTesting(); this.startTesting();
}); });
...@@ -1462,6 +1467,68 @@ cc.Class({ ...@@ -1462,6 +1467,68 @@ cc.Class({
}, },
addNewRect() {
if (!this.newRectArr) {
return;
}
this.newRectCheckArr = [];
const bg = this.debugLayer;
for (let i=0; i<this.newRectArr.length; i++) {
const oneData = this.newRectArr[i];
this.setNewRectDot(oneData, bg);
console.log('oneData: ', oneData);
}
},
setNewRectDot(data, bg) {
const bgData = bg.data;
const rate = (bg.scale * bg.width) / bgData.rect.width;
const rectNode = new cc.Node();
rectNode.name = 'rect' + data.index;
bg.addChild(rectNode);
const ctx = rectNode.addComponent(cc.Graphics);
// 红色矩形
ctx.lineWidth = 4;
ctx.strokeColor = cc.Color.BLACK;
ctx.fillColor = cc.Color.WHITE.setA(100);
const scale = rate / bg.scaleY;
console.log('scale: ', scale);
rectNode.width = data.rect.width * scale;
rectNode.height = data.rect.height * scale;
rectNode.x = data.rect.x * scale;
rectNode.y = - data.rect.y * scale - data.rect.height * scale;
rectNode.anchorX = rectNode.anchorY = 0;
rectNode.x /= bg.width;
rectNode.y /= bg.height;
rectNode.width /= bg.width;
rectNode.height /= bg.height;
const colorRect = this.getColorRect(rectNode, 'green');
colorRect.opacity = 180;
colorRect.data = data;
colorRect.parent = bg;
colorRect.zIndex = 20;
// bg.addChild(colorRect, 20);
this.newRectCheckArr.push(colorRect);
},
...@@ -2252,10 +2319,164 @@ cc.Class({ ...@@ -2252,10 +2319,164 @@ cc.Class({
}, },
photoEndNewRect(data) {
let textArr = data?.result?.text;
if (!textArr) {
return;
}
const answerData = {};
const checkOneByData = (oneData) => {
const oneTextData = oneData
const x = oneTextData.location.left//oneTextData.location.left + (oneTextData.location.right - oneTextData.location.left) / 2;
const y = -oneTextData.location.bottom//-oneTextData.location.top - (oneTextData.location.bottom - oneTextData.location.top) / 2;
const w = oneTextData.location.right - oneTextData.location.left;
const h = oneTextData.location.bottom - oneTextData.location.top;
const rect = {
x, y,
width: w,
height: h
}
console.log('oneTextData: ', oneTextData);
const content = oneTextData.content;
console.log('x: ', x);
console.log('y: ', y);
console.log('w: ', w);
console.log('h: ', h);
console.log('~!rect: ', rect);
const colorRect = this.getColorRect(rect, "red");
colorRect.labelText = content;
// this.debugDrawLayer.addChild(colorRect, 1);
console.log('~~colorRect.ccRect:', colorRect.ccRect);
const label = this.getLabel(content, colorRect.scaleX * colorRect.width);
label.x = colorRect.x + colorRect.width / 2 * colorRect.scaleX;
label.y = colorRect.y + colorRect.height / 2 * colorRect.scaleY;
label.color = cc.Color.BLACK;
this.debugDrawLayer.addChild(label, 2);
this.setOneAnswerDataNew(colorRect, answerData);
}
for (let i=0; i<textArr.length; i++) {
const oneTextData = textArr[i];
if ( oneTextData.characters) {
console.log('~~ oneTextData: ', oneTextData);
const tempArr = this.getArrByCharacters(oneTextData);
console.log('tempArr~: ', tempArr);
for (let j=0; j<tempArr.length; j++) {
checkOneByData(tempArr[j]);
}
} else {
checkOneByData(oneTextData);
}
}
console.log('answerData:' , answerData);
this.showUserRight(answerData, data);
// this.showUserRightNew(answerData);
},
setOneAnswerDataNew(colorRect, answerData) {
const rect = colorRect.ccRect;
console.log('~rect: ', rect);
const dotV2 = new cc.Vec2(rect.x + rect.width/2, rect.y + rect.height / 2);
const targetLabelText = colorRect.labelText;
console.log('--targetLabelText--', targetLabelText);
const newRectCheckArr = this.newRectCheckArr;
for (let i=0; i<newRectCheckArr.length; i++) {
let labelText = newRectCheckArr[i].data.labelText;
const checkRect = newRectCheckArr[i].ccRect;
const key = newRectCheckArr[i].data.index + 1;
console.log('--labelText--', labelText);
labelText = labelText.split("_")[0];
console.log('checkRect: ', checkRect);
console.log('dotV2: ', dotV2);
if (checkRect.contains(dotV2)) {
console.log('--1--');
const index = labelText.indexOf("||");
if (index != -1) {
console.log('--2--');
const keyArr = labelText.split("||");
for (let j=0; j<keyArr.length; j++) {
console.log('--3--');
if (targetLabelText.indexOf(keyArr[j]) != -1 ) {
console.log('--4--');
const tempTextArr = newRectCheckArr[i].data.labelText.split("_");
const key2 = tempTextArr[1] + '_' + tempTextArr[2];
answerData[key2] = {isFinish: true};
// answerData[key] = {isFinish: true};
break;
}
}
} else {
console.log('--5--');
if (targetLabelText.indexOf(labelText) != -1 ) {
console.log('--6--');
const tempTextArr = newRectCheckArr[i].data.labelText.split("_");
const key2 = tempTextArr[1] + '_' + tempTextArr[2];
answerData[key2] = {isFinish: true};
// answerData[key] = {isFinish: true};
}
}
}
}
},
photoEnd(data, isPool=false) { photoEnd(data, isPool=false) {
console.log(' this.photo end ', data); console.log(' this.photo end ', data);
this.filterData(data); // this.filterData(data);
this.pushNodePoolArr(); this.pushNodePoolArr();
...@@ -2281,6 +2502,11 @@ cc.Class({ ...@@ -2281,6 +2502,11 @@ cc.Class({
return; return;
} }
this.photoEndNewRect(data);
return;
// this.changeBboxPos(data); // this.changeBboxPos(data);
const isRightArea = this.checkIsRightArea(data); const isRightArea = this.checkIsRightArea(data);
...@@ -4295,7 +4521,7 @@ cc.Class({ ...@@ -4295,7 +4521,7 @@ cc.Class({
getPhotoData(cb) { getPhotoData(cb) {
const tmpData2 = {"result":{"text":[{"left":0.0729999989271164,"right":0.429666668176651,"top":0.07973195612430573,"bottom":0.11581443250179291,"score":1,"content":"Trace.write.and say.","characters":[{"character":"T","centerLoc":[0.14133334,0.093907215],"poly":[0.13466667,0.086175255,0.14966667,0.102927834]},{"character":"r","centerLoc":[0.15633334,0.097773194],"poly":[0.14966667,0.092618555,0.16466667,0.102927834]},{"character":"a","centerLoc":[0.173,0.097773194],"poly":[0.16466667,0.092618555,0.18133333,0.104216486]},{"character":"c","centerLoc":[0.18633333,0.097773194],"poly":[0.18133333,0.091329895,0.193,0.104216486]},{"character":"e","centerLoc":[0.203,0.097773194],"poly":[0.19466667,0.091329895,0.21133333,0.104216486]},{"character":".","centerLoc":[0.21966666,0.097773194],"poly":[0.21133333,0.092618555,0.228,0.104216486]},{"character":"w","centerLoc":[0.23799999,0.096484534],"poly":[0.228,0.091329895,0.24966666,0.102927834]},{"character":"r","centerLoc":[0.2546667,0.096484534],"poly":[0.24966666,0.091329895,0.25966668,0.102927834]},{"character":"i","centerLoc":[0.263,0.095195875],"poly":[0.25966668,0.088752575,0.26633334,0.102927834]},{"character":"t","centerLoc":[0.27133334,0.095195875],"poly":[0.26633334,0.088752575,0.278,0.102927834]},{"character":"e","centerLoc":[0.28633335,0.096484534],"poly":[0.27966666,0.091329895,0.293,0.102927834]},{"character":".","centerLoc":[0.30133334,0.099061854],"poly":[0.293,0.095195875,0.31133336,0.104216486]},{"character":"a","centerLoc":[0.31966668,0.097773194],"poly":[0.31133336,0.091329895,0.328,0.104216486]},{"character":"n","centerLoc":[0.338,0.096484534],"poly":[0.33133334,0.091329895,0.3446667,0.102927834]},{"character":"d","centerLoc":[0.35466668,0.095195875],"poly":[0.34633335,0.087463915,0.363,0.104216486]},{"character":" ","centerLoc":[0.36466667,0.093907215],"poly":[0.363,0.087463915,0.368,0.101639174]},{"character":"s","centerLoc":[0.37633336,0.097773194],"poly":[0.36966667,0.091329895,0.38300002,0.104216486]},{"character":"a","centerLoc":[0.38966668,0.097773194],"poly":[0.38300002,0.091329895,0.398,0.104216486]},{"character":"y","centerLoc":[0.40800002,0.100350514],"poly":[0.398,0.092618555,0.41966668,0.109371126]},{"character":".","centerLoc":[0.423,0.101639174],"poly":[0.41966668,0.100350514,0.42633334,0.102927834]}]},{"left":0.06300000101327896,"right":0.9463332891464233,"top":0.11452576518058777,"bottom":0.19957731664180756,"score":0.9962362051010132,"content":"GGGGGGGGG","characters":[{"character":"G","centerLoc":[0.13466667,0.15318556],"poly":[0.103,0.114525765,0.16633333,0.19184536]},{"character":"G","centerLoc":[0.233,0.15576288],"poly":[0.18633333,0.12096907,0.27966666,0.1905567]},{"character":"G","centerLoc":[0.32466668,0.15447423],"poly":[0.28133333,0.122257724,0.37133336,0.18926804]},{"character":"G","centerLoc":[0.418,0.15447423],"poly":[0.3746667,0.122257724,0.46466666,0.18926804]},{"character":"G","centerLoc":[0.518,0.15447423],"poly":[0.48633334,0.12096907,0.553,0.18926804]},{"character":"G","centerLoc":[0.638,0.15576288],"poly":[0.5913333,0.12354639,0.68466663,0.18797937]},{"character":"G","centerLoc":[0.71133333,0.1583402],"poly":[0.68466663,0.12612371,0.7413333,0.1905567]},{"character":"G","centerLoc":[0.803,0.16349484],"poly":[0.77633333,0.132567,0.833,0.19313401]},{"character":"G","centerLoc":[0.8896667,0.15962887],"poly":[0.863,0.12870103,0.918,0.18926804]}]},{"left":0.08799999952316284,"right":0.9363332986831665,"top":0.22921648621559143,"bottom":0.3168453574180603,"score":0.9507761597633362,"content":"g gg g 6gg gg","characters":[{"character":"g","centerLoc":[0.14466667,0.28205156],"poly":[0.12133333,0.25112373,0.168,0.3155567]},{"character":" ","centerLoc":[0.18466666,0.27947423],"poly":[0.168,0.25112373,0.20466666,0.30782473]},{"character":"g","centerLoc":[0.248,0.28205156],"poly":[0.22133332,0.25112373,0.27466667,0.3129794]},{"character":"g","centerLoc":[0.32466668,0.27947423],"poly":[0.298,0.24854639,0.35466668,0.3129794]},{"character":" ","centerLoc":[0.37300003,0.2768969],"poly":[0.35466668,0.24854639,0.393,0.30524743]},{"character":"g","centerLoc":[0.42633334,0.27947423],"poly":[0.40633336,0.24854639,0.44633335,0.31040207]},{"character":" ","centerLoc":[0.46633336,0.2640103],"poly":[0.44633335,0.23050515,0.48966667,0.29751545]},{"character":"6","centerLoc":[0.5196667,0.25627834],"poly":[0.4996667,0.23050515,0.543,0.28462887]},{"character":"g","centerLoc":[0.60466665,0.2768969],"poly":[0.58133334,0.24339175,0.6313333,0.31169072]},{"character":"g","centerLoc":[0.69299996,0.27818555],"poly":[0.66466665,0.24596907,0.723,0.31169072]},{"character":" ","centerLoc":[0.74966663,0.27818555],"poly":[0.723,0.24596907,0.77633333,0.31169072]},{"character":"g","centerLoc":[0.79466665,0.28076288],"poly":[0.77633333,0.24596907,0.81799996,0.31684536]},{"character":"g","centerLoc":[0.8796666,0.27818555],"poly":[0.858,0.24725772,0.9063333,0.31169072]}]}]}} const tmpData2 = {"result":{"text":[{"left":0.19333332777023315,"right":0.9316666722297668,"top":0.12628865242004395,"bottom":0.21778351068496704,"score":0.9017215371131897,"content":"A A A A A A A A","characters":[{"character":"A","centerLoc":[0.2175,0.17203608],"poly":[0.19333333,0.12628865,0.24166666,0.21778351]},{"character":" ","centerLoc":[0.26666665,0.17203608],"poly":[0.24166666,0.12628865,0.29166666,0.21778351]},{"character":"A","centerLoc":[0.31583333,0.17203608],"poly":[0.29166666,0.12628865,0.34,0.21778351]},{"character":" ","centerLoc":[0.365,0.17203608],"poly":[0.34,0.12628865,0.39,0.21778351]},{"character":"A","centerLoc":[0.41416666,0.17203608],"poly":[0.39,0.12628865,0.43833333,0.21778351]},{"character":" ","centerLoc":[0.46333334,0.17203608],"poly":[0.43833333,0.12628865,0.48833334,0.21778351]},{"character":"A","centerLoc":[0.51250005,0.17203608],"poly":[0.48833334,0.12628865,0.5366667,0.21778351]},{"character":" ","centerLoc":[0.56166667,0.17203608],"poly":[0.5366667,0.12628865,0.58666664,0.21778351]},{"character":"A","centerLoc":[0.6108333,0.17203608],"poly":[0.58666664,0.12628865,0.635,0.21778351]},{"character":" ","centerLoc":[0.65999997,0.17203608],"poly":[0.635,0.12628865,0.685,0.21778351]},{"character":"A","centerLoc":[0.70916665,0.17203608],"poly":[0.685,0.12628865,0.73333335,0.21778351]},{"character":" ","centerLoc":[0.7583333,0.17203608],"poly":[0.73333335,0.12628865,0.78333336,0.21778351]},{"character":"A","centerLoc":[0.8075,0.17203608],"poly":[0.78333336,0.12628865,0.83166665,0.21778351]},{"character":" ","centerLoc":[0.8566667,0.17203608],"poly":[0.83166665,0.12628865,0.88166666,0.21778351]},{"character":"A","centerLoc":[0.90666664,0.17203608],"poly":[0.88166666,0.12628865,0.9316667,0.21778351]}]},{"left":0.19333332777023315,"right":0.9350000023841858,"top":0.22809278964996338,"bottom":0.31572166085243225,"score":0.9455733895301819,"content":"aaaaaaa a","characters":[{"character":"a","centerLoc":[0.23416667,0.2719072],"poly":[0.19333333,0.22809279,0.275,0.31572166]},{"character":"a","centerLoc":[0.31583333,0.2719072],"poly":[0.275,0.22809279,0.35666665,0.31572166]},{"character":"a","centerLoc":[0.3983333,0.2719072],"poly":[0.35666665,0.22809279,0.44,0.31572166]},{"character":"a","centerLoc":[0.48083332,0.2719072],"poly":[0.44,0.22809279,0.52166665,0.31572166]},{"character":"a","centerLoc":[0.56333333,0.2719072],"poly":[0.52166665,0.22809279,0.605,0.31572166]},{"character":"a","centerLoc":[0.6458334,0.2719072],"poly":[0.605,0.22809279,0.68666667,0.31572166]},{"character":"a","centerLoc":[0.72833335,0.2719072],"poly":[0.68666667,0.22809279,0.77,0.31572166]},{"character":" ","centerLoc":[0.81083333,0.2719072],"poly":[0.77,0.22809279,0.8516667,0.31572166]},{"character":"a","centerLoc":[0.8933333,0.2719072],"poly":[0.8516667,0.22809279,0.935,0.31572166]}]},{"left":0.1899999976158142,"right":0.351666659116745,"top":0.4110824763774872,"bottom":0.5180412530899048,"score":0.9947138428688049,"content":"A a","characters":[{"character":"A","centerLoc":[0.21666667,0.46456188],"poly":[0.19,0.41108248,0.24333334,0.51804125]},{"character":" ","centerLoc":[0.26999998,0.46456188],"poly":[0.24333334,0.41108248,0.29666665,0.51804125]},{"character":"a","centerLoc":[0.32416666,0.46456188],"poly":[0.29666665,0.41108248,0.35166666,0.51804125]}]}]}}
// const tmpData2 = {"result":{"text":[{"left":0.07833333313465118,"right":0.4300000071525574,"top":0.0758659765124321,"bottom":0.11839175224304199,"score":1,"content":"C Trace,write,and say.","characters":[{"character":"C","centerLoc":[0.11,0.093907215],"poly":[0.09166667,0.07715464,0.12666667,0.111948445]},{"character":" ","centerLoc":[0.13,0.093907215],"poly":[0.12833333,0.078443296,0.13166666,0.109371126]},{"character":"T","centerLoc":[0.14333333,0.093907215],"poly":[0.13666667,0.084886596,0.15166667,0.102927834]},{"character":"r","centerLoc":[0.15666667,0.096484534],"poly":[0.15166667,0.090041235,0.16166666,0.104216486]},{"character":"a","centerLoc":[0.17,0.097773194],"poly":[0.16333333,0.090041235,0.17666666,0.10550515]},{"character":"c","centerLoc":[0.18333334,0.097773194],"poly":[0.17833333,0.090041235,0.19166666,0.10550515]},{"character":"e","centerLoc":[0.20166667,0.097773194],"poly":[0.19500001,0.090041235,0.20833333,0.10550515]},{"character":",","centerLoc":[0.21666667,0.099061854],"poly":[0.20833333,0.092618555,0.22666667,0.106793806]},{"character":"w","centerLoc":[0.23666666,0.099061854],"poly":[0.22666667,0.093907215,0.245,0.104216486]},{"character":"r","centerLoc":[0.25,0.097773194],"poly":[0.24666667,0.091329895,0.255,0.104216486]},{"character":"i","centerLoc":[0.26,0.096484534],"poly":[0.25666666,0.087463915,0.26666665,0.10550515]},{"character":"t","centerLoc":[0.27333334,0.096484534],"poly":[0.26666665,0.088752575,0.28,0.10550515]},{"character":"e","centerLoc":[0.285,0.097773194],"poly":[0.28,0.091329895,0.29,0.10550515]},{"character":",","centerLoc":[0.29833332,0.102927834],"poly":[0.29,0.100350514,0.30666667,0.106793806]},{"character":"a","centerLoc":[0.315,0.097773194],"poly":[0.30666667,0.091329895,0.32333332,0.10550515]},{"character":"n","centerLoc":[0.335,0.099061854],"poly":[0.32666668,0.091329895,0.345,0.10550515]},{"character":"d","centerLoc":[0.35166666,0.096484534],"poly":[0.345,0.087463915,0.35666665,0.10550515]},{"character":" ","centerLoc":[0.36166668,0.095195875],"poly":[0.35833335,0.087463915,0.36333334,0.102927834]},{"character":"s","centerLoc":[0.375,0.097773194],"poly":[0.36833334,0.091329895,0.38333333,0.10550515]},{"character":"a","centerLoc":[0.39000002,0.097773194],"poly":[0.38333333,0.090041235,0.395,0.10550515]},{"character":"y","centerLoc":[0.40833333,0.101639174],"poly":[0.4,0.092618555,0.415,0.111948445]},{"character":".","centerLoc":[0.42000002,0.102927834],"poly":[0.41666666,0.100350514,0.425,0.10550515]}]},{"left":0.08500000089406967,"right":0.9483333230018616,"top":0.12225772440433502,"bottom":0.1944226771593094,"score":0.9797745943069458,"content":"AAA AAAA AA","characters":[{"character":"A","centerLoc":[0.13833334,0.15705153],"poly":[0.11333333,0.12612371,0.16499999,0.18926804]},{"character":"A","centerLoc":[0.23166667,0.15962887],"poly":[0.19,0.12741236,0.27166668,0.1905567]},{"character":"A","centerLoc":[0.32666668,0.1583402],"poly":[0.295,0.12870103,0.35833335,0.18926804]},{"character":" ","centerLoc":[0.37333333,0.15576288],"poly":[0.35833335,0.12741236,0.38666666,0.18540207]},{"character":"A","centerLoc":[0.425,0.15962887],"poly":[0.40166667,0.12741236,0.45166668,0.19184536]},{"character":"A","centerLoc":[0.50333333,0.15576288],"poly":[0.47666666,0.12612371,0.53,0.18540207]},{"character":"A","centerLoc":[0.61833334,0.15705153],"poly":[0.57,0.12612371,0.665,0.18926804]},{"character":"A","centerLoc":[0.69166666,0.15705153],"poly":[0.665,0.124835044,0.7166667,0.19184536]},{"character":" ","centerLoc":[0.755,0.15576288],"poly":[0.735,0.12612371,0.7783333,0.18797937]},{"character":"A","centerLoc":[0.8,0.15576288],"poly":[0.7783333,0.12612371,0.82,0.18540207]},{"character":"A","centerLoc":[0.88,0.15060824],"poly":[0.85,0.122257724,0.90833336,0.18024743]}]},{"left":0.18333333730697632,"right":0.9483333230018616,"top":0.23565979301929474,"bottom":0.2975154519081116,"score":0.9791452288627625,"content":"a a a a a a aa","characters":[{"character":"a","centerLoc":[0.24333334,0.27174228],"poly":[0.21333334,0.25498968,0.27166668,0.2897835]},{"character":" ","centerLoc":[0.285,0.26916495],"poly":[0.27166668,0.25241238,0.29999998,0.28591752]},{"character":"a","centerLoc":[0.33333334,0.2704536],"poly":[0.31666666,0.25241238,0.35166666,0.2897835]},{"character":" ","centerLoc":[0.37166667,0.26916495],"poly":[0.35166666,0.25241238,0.39333335,0.28591752]},{"character":"a","centerLoc":[0.425,0.2704536],"poly":[0.40666667,0.25241238,0.445,0.2897835]},{"character":" ","centerLoc":[0.46333334,0.26916495],"poly":[0.445,0.25112373,0.48333335,0.28849483]},{"character":"a","centerLoc":[0.5233333,0.2704536],"poly":[0.49333334,0.25112373,0.5516667,0.29107216]},{"character":" ","centerLoc":[0.565,0.26916495],"poly":[0.5516667,0.25112373,0.5783333,0.28849483]},{"character":"a","centerLoc":[0.6166667,0.27174228],"poly":[0.5916667,0.25241238,0.64,0.29107216]},{"character":" ","centerLoc":[0.6566667,0.26916495],"poly":[0.64,0.24854639,0.67333335,0.28849483]},{"character":"a","centerLoc":[0.705,0.2704536],"poly":[0.68333334,0.24854639,0.7266667,0.29107216]},{"character":" ","centerLoc":[0.74666667,0.26916495],"poly":[0.7266667,0.25112373,0.77,0.28849483]},{"character":"a","centerLoc":[0.805,0.2704536],"poly":[0.78000003,0.25112373,0.83166665,0.2897835]},{"character":"a","centerLoc":[0.9,0.26658762],"poly":[0.87,0.24725772,0.9316667,0.28591752]}]}]}} // const tmpData2 = {"result":{"text":[{"left":0.07833333313465118,"right":0.4300000071525574,"top":0.0758659765124321,"bottom":0.11839175224304199,"score":1,"content":"C Trace,write,and say.","characters":[{"character":"C","centerLoc":[0.11,0.093907215],"poly":[0.09166667,0.07715464,0.12666667,0.111948445]},{"character":" ","centerLoc":[0.13,0.093907215],"poly":[0.12833333,0.078443296,0.13166666,0.109371126]},{"character":"T","centerLoc":[0.14333333,0.093907215],"poly":[0.13666667,0.084886596,0.15166667,0.102927834]},{"character":"r","centerLoc":[0.15666667,0.096484534],"poly":[0.15166667,0.090041235,0.16166666,0.104216486]},{"character":"a","centerLoc":[0.17,0.097773194],"poly":[0.16333333,0.090041235,0.17666666,0.10550515]},{"character":"c","centerLoc":[0.18333334,0.097773194],"poly":[0.17833333,0.090041235,0.19166666,0.10550515]},{"character":"e","centerLoc":[0.20166667,0.097773194],"poly":[0.19500001,0.090041235,0.20833333,0.10550515]},{"character":",","centerLoc":[0.21666667,0.099061854],"poly":[0.20833333,0.092618555,0.22666667,0.106793806]},{"character":"w","centerLoc":[0.23666666,0.099061854],"poly":[0.22666667,0.093907215,0.245,0.104216486]},{"character":"r","centerLoc":[0.25,0.097773194],"poly":[0.24666667,0.091329895,0.255,0.104216486]},{"character":"i","centerLoc":[0.26,0.096484534],"poly":[0.25666666,0.087463915,0.26666665,0.10550515]},{"character":"t","centerLoc":[0.27333334,0.096484534],"poly":[0.26666665,0.088752575,0.28,0.10550515]},{"character":"e","centerLoc":[0.285,0.097773194],"poly":[0.28,0.091329895,0.29,0.10550515]},{"character":",","centerLoc":[0.29833332,0.102927834],"poly":[0.29,0.100350514,0.30666667,0.106793806]},{"character":"a","centerLoc":[0.315,0.097773194],"poly":[0.30666667,0.091329895,0.32333332,0.10550515]},{"character":"n","centerLoc":[0.335,0.099061854],"poly":[0.32666668,0.091329895,0.345,0.10550515]},{"character":"d","centerLoc":[0.35166666,0.096484534],"poly":[0.345,0.087463915,0.35666665,0.10550515]},{"character":" ","centerLoc":[0.36166668,0.095195875],"poly":[0.35833335,0.087463915,0.36333334,0.102927834]},{"character":"s","centerLoc":[0.375,0.097773194],"poly":[0.36833334,0.091329895,0.38333333,0.10550515]},{"character":"a","centerLoc":[0.39000002,0.097773194],"poly":[0.38333333,0.090041235,0.395,0.10550515]},{"character":"y","centerLoc":[0.40833333,0.101639174],"poly":[0.4,0.092618555,0.415,0.111948445]},{"character":".","centerLoc":[0.42000002,0.102927834],"poly":[0.41666666,0.100350514,0.425,0.10550515]}]},{"left":0.08500000089406967,"right":0.9483333230018616,"top":0.12225772440433502,"bottom":0.1944226771593094,"score":0.9797745943069458,"content":"AAA AAAA AA","characters":[{"character":"A","centerLoc":[0.13833334,0.15705153],"poly":[0.11333333,0.12612371,0.16499999,0.18926804]},{"character":"A","centerLoc":[0.23166667,0.15962887],"poly":[0.19,0.12741236,0.27166668,0.1905567]},{"character":"A","centerLoc":[0.32666668,0.1583402],"poly":[0.295,0.12870103,0.35833335,0.18926804]},{"character":" ","centerLoc":[0.37333333,0.15576288],"poly":[0.35833335,0.12741236,0.38666666,0.18540207]},{"character":"A","centerLoc":[0.425,0.15962887],"poly":[0.40166667,0.12741236,0.45166668,0.19184536]},{"character":"A","centerLoc":[0.50333333,0.15576288],"poly":[0.47666666,0.12612371,0.53,0.18540207]},{"character":"A","centerLoc":[0.61833334,0.15705153],"poly":[0.57,0.12612371,0.665,0.18926804]},{"character":"A","centerLoc":[0.69166666,0.15705153],"poly":[0.665,0.124835044,0.7166667,0.19184536]},{"character":" ","centerLoc":[0.755,0.15576288],"poly":[0.735,0.12612371,0.7783333,0.18797937]},{"character":"A","centerLoc":[0.8,0.15576288],"poly":[0.7783333,0.12612371,0.82,0.18540207]},{"character":"A","centerLoc":[0.88,0.15060824],"poly":[0.85,0.122257724,0.90833336,0.18024743]}]},{"left":0.18333333730697632,"right":0.9483333230018616,"top":0.23565979301929474,"bottom":0.2975154519081116,"score":0.9791452288627625,"content":"a a a a a a aa","characters":[{"character":"a","centerLoc":[0.24333334,0.27174228],"poly":[0.21333334,0.25498968,0.27166668,0.2897835]},{"character":" ","centerLoc":[0.285,0.26916495],"poly":[0.27166668,0.25241238,0.29999998,0.28591752]},{"character":"a","centerLoc":[0.33333334,0.2704536],"poly":[0.31666666,0.25241238,0.35166666,0.2897835]},{"character":" ","centerLoc":[0.37166667,0.26916495],"poly":[0.35166666,0.25241238,0.39333335,0.28591752]},{"character":"a","centerLoc":[0.425,0.2704536],"poly":[0.40666667,0.25241238,0.445,0.2897835]},{"character":" ","centerLoc":[0.46333334,0.26916495],"poly":[0.445,0.25112373,0.48333335,0.28849483]},{"character":"a","centerLoc":[0.5233333,0.2704536],"poly":[0.49333334,0.25112373,0.5516667,0.29107216]},{"character":" ","centerLoc":[0.565,0.26916495],"poly":[0.5516667,0.25112373,0.5783333,0.28849483]},{"character":"a","centerLoc":[0.6166667,0.27174228],"poly":[0.5916667,0.25241238,0.64,0.29107216]},{"character":" ","centerLoc":[0.6566667,0.26916495],"poly":[0.64,0.24854639,0.67333335,0.28849483]},{"character":"a","centerLoc":[0.705,0.2704536],"poly":[0.68333334,0.24854639,0.7266667,0.29107216]},{"character":" ","centerLoc":[0.74666667,0.26916495],"poly":[0.7266667,0.25112373,0.77,0.28849483]},{"character":"a","centerLoc":[0.805,0.2704536],"poly":[0.78000003,0.25112373,0.83166665,0.2897835]},{"character":"a","centerLoc":[0.9,0.26658762],"poly":[0.87,0.24725772,0.9316667,0.28591752]}]}]}}
// const tmpData2 = {"result":{"text":[{"left":0.07000000029802322,"right":0.42666664719581604,"top":0.08275257796049118,"bottom":0.11625772714614868,"score":1,"content":"CTrace,write,and say.","characters":[{"character":"C","centerLoc":[0.09833334,0.09821649],"poly":[0.08166666,0.08275258,0.115,0.11625773]},{"character":"T","centerLoc":[0.13,0.09821649],"poly":[0.12166667,0.08919588,0.13833334,0.10852577]},{"character":"r","centerLoc":[0.14500001,0.10079381],"poly":[0.13833334,0.09435052,0.15333334,0.10852577]},{"character":"a","centerLoc":[0.16,0.10079381],"poly":[0.15333334,0.09435052,0.16666666,0.10852577]},{"character":"c","centerLoc":[0.175,0.10079381],"poly":[0.16666666,0.09435052,0.18333334,0.10852577]},{"character":"e","centerLoc":[0.19333333,0.10079381],"poly":[0.185,0.09435052,0.20166665,0.107237116]},{"character":",","centerLoc":[0.21000001,0.10079381],"poly":[0.20166665,0.09435052,0.22,0.10852577]},{"character":"w","centerLoc":[0.22999999,0.09950516],"poly":[0.22,0.09435052,0.24000001,0.10594845]},{"character":"r","centerLoc":[0.245,0.09950516],"poly":[0.24000001,0.09306186,0.25,0.10594845]},{"character":"i","centerLoc":[0.255,0.09692784],"poly":[0.25,0.08919588,0.26,0.10594845]},{"character":"t","centerLoc":[0.26833335,0.09821649],"poly":[0.26,0.09048454,0.27666667,0.10594845]},{"character":"e","centerLoc":[0.28166667,0.09950516],"poly":[0.27666667,0.09306186,0.28833333,0.10594845]},{"character":",","centerLoc":[0.29666668,0.10337113],"poly":[0.28833333,0.09950516,0.305,0.107237116]},{"character":"a","centerLoc":[0.31333333,0.09950516],"poly":[0.305,0.09306186,0.32166666,0.10594845]},{"character":"n","centerLoc":[0.32999998,0.09950516],"poly":[0.32333332,0.09306186,0.33833334,0.10594845]},{"character":"d","centerLoc":[0.34833333,0.09692784],"poly":[0.34166667,0.08790722,0.35666665,0.10594845]},{"character":" ","centerLoc":[0.35999998,0.09563918],"poly":[0.35666665,0.08790722,0.36499998,0.10337113]},{"character":"s","centerLoc":[0.37,0.09950516],"poly":[0.36499998,0.09306186,0.37666667,0.10594845]},{"character":"a","centerLoc":[0.38666666,0.09821649],"poly":[0.37833333,0.0917732,0.39499998,0.10594845]},{"character":"y","centerLoc":[0.40166667,0.102082476],"poly":[0.39499998,0.09306186,0.40833333,0.112391755]},{"character":".","centerLoc":[0.41333333,0.09950516],"poly":[0.40833333,0.09306186,0.42,0.10594845]}]},{"left":0.2516666650772095,"right":0.6366666555404663,"top":0.12270103394985199,"bottom":0.19486597180366516,"score":0.7862052917480469,"content":"O00C","characters":[{"character":"O","centerLoc":[0.32166666,0.15749484],"poly":[0.275,0.12398969,0.36833334,0.19228865]},{"character":"0","centerLoc":[0.415,0.1587835],"poly":[0.37,0.126567,0.46166667,0.19486597]},{"character":"0","centerLoc":[0.51666665,0.1587835],"poly":[0.48,0.12398969,0.555,0.19486597]},{"character":"C","centerLoc":[0.605,0.15491752],"poly":[0.58166665,0.122701034,0.63,0.18842268]}]},{"left":0.7316666841506958,"right":0.9483333230018616,"top":0.11883504688739777,"bottom":0.189711332321167,"score":0.7896353006362915,"content":")00","characters":[{"character":")","centerLoc":[0.755,0.15362886],"poly":[0.735,0.12785567,0.77666664,0.18069072]},{"character":"0","centerLoc":[0.8183333,0.15362886],"poly":[0.7783333,0.12141237,0.8616667,0.18584536]},{"character":"0","centerLoc":[0.9083333,0.15491752],"poly":[0.875,0.12398969,0.945,0.18842268]}]}]}} // const tmpData2 = {"result":{"text":[{"left":0.07000000029802322,"right":0.42666664719581604,"top":0.08275257796049118,"bottom":0.11625772714614868,"score":1,"content":"CTrace,write,and say.","characters":[{"character":"C","centerLoc":[0.09833334,0.09821649],"poly":[0.08166666,0.08275258,0.115,0.11625773]},{"character":"T","centerLoc":[0.13,0.09821649],"poly":[0.12166667,0.08919588,0.13833334,0.10852577]},{"character":"r","centerLoc":[0.14500001,0.10079381],"poly":[0.13833334,0.09435052,0.15333334,0.10852577]},{"character":"a","centerLoc":[0.16,0.10079381],"poly":[0.15333334,0.09435052,0.16666666,0.10852577]},{"character":"c","centerLoc":[0.175,0.10079381],"poly":[0.16666666,0.09435052,0.18333334,0.10852577]},{"character":"e","centerLoc":[0.19333333,0.10079381],"poly":[0.185,0.09435052,0.20166665,0.107237116]},{"character":",","centerLoc":[0.21000001,0.10079381],"poly":[0.20166665,0.09435052,0.22,0.10852577]},{"character":"w","centerLoc":[0.22999999,0.09950516],"poly":[0.22,0.09435052,0.24000001,0.10594845]},{"character":"r","centerLoc":[0.245,0.09950516],"poly":[0.24000001,0.09306186,0.25,0.10594845]},{"character":"i","centerLoc":[0.255,0.09692784],"poly":[0.25,0.08919588,0.26,0.10594845]},{"character":"t","centerLoc":[0.26833335,0.09821649],"poly":[0.26,0.09048454,0.27666667,0.10594845]},{"character":"e","centerLoc":[0.28166667,0.09950516],"poly":[0.27666667,0.09306186,0.28833333,0.10594845]},{"character":",","centerLoc":[0.29666668,0.10337113],"poly":[0.28833333,0.09950516,0.305,0.107237116]},{"character":"a","centerLoc":[0.31333333,0.09950516],"poly":[0.305,0.09306186,0.32166666,0.10594845]},{"character":"n","centerLoc":[0.32999998,0.09950516],"poly":[0.32333332,0.09306186,0.33833334,0.10594845]},{"character":"d","centerLoc":[0.34833333,0.09692784],"poly":[0.34166667,0.08790722,0.35666665,0.10594845]},{"character":" ","centerLoc":[0.35999998,0.09563918],"poly":[0.35666665,0.08790722,0.36499998,0.10337113]},{"character":"s","centerLoc":[0.37,0.09950516],"poly":[0.36499998,0.09306186,0.37666667,0.10594845]},{"character":"a","centerLoc":[0.38666666,0.09821649],"poly":[0.37833333,0.0917732,0.39499998,0.10594845]},{"character":"y","centerLoc":[0.40166667,0.102082476],"poly":[0.39499998,0.09306186,0.40833333,0.112391755]},{"character":".","centerLoc":[0.41333333,0.09950516],"poly":[0.40833333,0.09306186,0.42,0.10594845]}]},{"left":0.2516666650772095,"right":0.6366666555404663,"top":0.12270103394985199,"bottom":0.19486597180366516,"score":0.7862052917480469,"content":"O00C","characters":[{"character":"O","centerLoc":[0.32166666,0.15749484],"poly":[0.275,0.12398969,0.36833334,0.19228865]},{"character":"0","centerLoc":[0.415,0.1587835],"poly":[0.37,0.126567,0.46166667,0.19486597]},{"character":"0","centerLoc":[0.51666665,0.1587835],"poly":[0.48,0.12398969,0.555,0.19486597]},{"character":"C","centerLoc":[0.605,0.15491752],"poly":[0.58166665,0.122701034,0.63,0.18842268]}]},{"left":0.7316666841506958,"right":0.9483333230018616,"top":0.11883504688739777,"bottom":0.189711332321167,"score":0.7896353006362915,"content":")00","characters":[{"character":")","centerLoc":[0.755,0.15362886],"poly":[0.735,0.12785567,0.77666664,0.18069072]},{"character":"0","centerLoc":[0.8183333,0.15362886],"poly":[0.7783333,0.12141237,0.8616667,0.18584536]},{"character":"0","centerLoc":[0.9083333,0.15491752],"poly":[0.875,0.12398969,0.945,0.18842268]}]}]}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment