Commit 54933023 authored by limingzhe's avatar limingzhe

fix: debug

parent a8cb6846
No preview for this file type
...@@ -96,7 +96,13 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -96,7 +96,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
let img = pg.view.find(this.layout_canvas, 'img'); let img = pg.view.find(this.layout_canvas, 'img');
pg.view.setNetImg(img, this.currentQuestion.bgItem.url, { w: 1220, h: 790 }, true).then(() => { pg.view.setNetImg(img, this.currentQuestion.bgItem.url, { w: 1220, h: 790 }, true).then(() => {
this.initTargets(img); this.initTargets(img);
if (this.current != 0) {
this.layout_target.children.forEach(nd => {
nd.opacity = 255
})
}
}) })
if (this.current == 0) { if (this.current == 0) {
...@@ -117,18 +123,25 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -117,18 +123,25 @@ export default class SceneComponent extends MyCocosSceneComponent {
} }
} }
initTargets(img) { initTargets(img) {
console.log('in initTargets')
this.layout_target.removeAllChildren(); this.layout_target.removeAllChildren();
let item_color = pg.view.find(this, 'item_color'); let item_color = pg.view.find(this, 'item_color');
let boxHeight = this.layout_canvas.height; // let boxHeight = this.layout_canvas.height;
let imgHeight = img.height; // let imgHeight = img.height;
let moveY = (boxHeight - imgHeight) / 2 // let moveY = (boxHeight - imgHeight) / 2
let arr = this.changepoints(this.currentQuestion, moveY);
this.layout_target.scale = img.scale;
this.layout_items.scale = img.scale;
let arr = this.changepoints(this.currentQuestion, img);
// 整体的坐标需要往中间下面进行计算。 // 整体的坐标需要往中间下面进行计算。
arr.forEach((ar) => { arr.forEach((ar) => {
let node = pg.view.clone(item_color); let node = pg.view.clone(item_color);
node.x = ar.pos.x; node.x = ar.pos.x;
node.y = ar.pos.y node.y = ar.pos.y;
node.data = ar; node.data = ar;
node.opacity = 0; node.opacity = 0;
node.removeComponent(cc.Sprite); node.removeComponent(cc.Sprite);
...@@ -316,18 +329,45 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -316,18 +329,45 @@ export default class SceneComponent extends MyCocosSceneComponent {
return { targetData, targetItem } return { targetData, targetItem }
} }
private changepoints(data, moveY) { private changepoints(data, bgImg) {
let scaleX = 1220 / data.bgItem.rect.width;
let scaleY = 790 / data.bgItem.rect.height; const rate = (bgImg.scale * bgImg.width) / data.bgItem.rect.width;
let scale = scaleX <= scaleY ? scaleX : scaleY; const scale = rate / bgImg.scaleY;
return data.hotZoneItemArr.map((item, idx) => { return data.hotZoneItemArr.map((item, idx) => {
let rect = item.rect; let rect = item.rect;
item.pos = {
x: (rect.x + (rect.width / 2)) * scale, item.pos = {};
y: -((rect.y + (rect.height / 2)) * scale) - moveY
} const rectNode = new cc.Node();
item.width = rect.width * scale; rectNode.name = 'rect' + data.index;
item.height = rect.height * scale; bgImg.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 / bgImg.scaleY;
rectNode.width = rect.width * scale;
rectNode.height = rect.height * scale;
rectNode.x = -bgImg.width / 2 + rect.x * scale;
rectNode.y = bgImg.height / 2 - rect.height * scale - rect.y * scale;
rectNode.anchorX = rectNode.anchorY = 0;
ctx.rect(0, 0, rectNode.width, rectNode.height);
// ctx.stroke();
// ctx.fill();
item.width = rectNode.width;
item.height = rectNode.height;
const worldPos = bgImg.convertToWorldSpaceAR(cc.v2(rectNode.x + rectNode.width / 2, rectNode.y + rectNode.height / 2));
const newPos = this.layout_target.convertToNodeSpaceAR(worldPos);
item.pos.x = newPos.x;
item.pos.y = newPos.y;
// item.width = rect.width * scale;
// item.height = rect.height * scale;
return item; return item;
}) })
} }
...@@ -349,6 +389,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -349,6 +389,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
let text2 = pg.view.find(node, 'text_2'); let text2 = pg.view.find(node, 'text_2');
text1.active = false; text1.active = false;
text2.active = false; text2.active = false;
text.parent.scale = 1 / this.layout_items.scale;
pg.view.setColor(text, '#1D8B38') pg.view.setColor(text, '#1D8B38')
text.getComponent(cc.Label).fontSize = targetData.fontSize; text.getComponent(cc.Label).fontSize = targetData.fontSize;
......
import { width } from './../../../form/node_modules/@fortawesome/free-regular-svg-icons/faAddressCard.d';
class Emitter { class Emitter {
static instance; static instance;
static getInstance() { static getInstance() {
...@@ -292,13 +293,19 @@ let pg = { ...@@ -292,13 +293,19 @@ let pg = {
let scaleX = w / nw; let scaleX = w / nw;
let scaleY = h / nh; let scaleY = h / nh;
let scale = scaleX <= scaleY ? scaleX : scaleY; let scale = scaleX <= scaleY ? scaleX : scaleY;
node.width = nw * scale; // node.width = nw * scale;
node.height = nh * scale; // node.height = nh * scale;
node.scale = scale;
} else { } else {
let scaleX = w / nw; let scaleX = w / nw;
let scaleY = h / nh; let scaleY = h / nh;
node.width = nw * scaleX; let scale = scaleX <= scaleY ? scaleX : scaleY;
node.height = nh * scaleY;
// node.width = nw * scaleX;
// node.height = nh * scaleY;
node.scale = scale;
} }
node.active = nodeActive; node.active = nodeActive;
resolve({ w: nw, h: nh }); resolve({ w: nw, h: nh });
......
export const defaultData = export const defaultData =
{
"npcTitle": "", "npcAudio": "", "npcAudioName": "开始音频.mp3", "npcAudioEnd": "http://teach.cdn.ireadabc.com/5c53861a4a8c9bfb7a86453bdcbb23f1_l.mp3", "npcAudioEndName": "结束音频.mp3", "questions": [{
"options": [], "hotZoneFontObj": { "size": 50, "name": "BRLNSR_1", "color": "#8f3758" }, "bgItem": { "url": "http://teach.cdn.ireadabc.com/48ef6e30800733163a3a7e5eee450b9b.png", "rect": { "x": 175.26254180602007, "y": 2.842170943040401e-14, "width": 742.4749163879599, "height": 443.99999999999994 } },
"hotZoneItemArr": [
{
"index": 0, "text": "extinction", "itemType": "text", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.85390625, "imgScale": 1, "mapScale": 0.85390625, "rect": { "x": 84.24, "y": -32, "width": 200, "height": 200 }
}, {
"index": 1, "text": "extinction", "itemType": "text", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.85390625, "imgScale": 1, "mapScale": 0.85390625, "rect": { "x": 92.24, "y": 55, "width": 200, "height": 200 }
}, {
"index": 2, "text": "global warming", "itemType": "text", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.85390625, "imgScale": 1, "mapScale": 0.85390625, "rect": { "x": 448.24, "y": -12, "width": 200, "height": 200 }
}, {
"index": 3, "text": "threaten", "itemType": "text", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.85390625, "imgScale": 1, "mapScale": 0.85390625, "rect": { "x": 439.24, "y": 93, "width": 200, "height": 200 }
}]
}], "bgItem": "", "hotZoneItemArr": []
}
let mc = {
"npcTitle": "exit", "npcAudio": "http://staging-teach.cdn.ireadabc.com/5f4e4c72671607bb35d1ecd1d291f238_l.mp3",
"npcAudioName": "boom_dg28_drag.mp3",
"npcAudioEnd": "http://staging-teach.cdn.ireadabc.com/289fe0a6d9893519c3fb5993b86b6fe9_l.mp3",
"npcAudioEndName": "dragdown_dg28_drag.mp3",
"questions": [{
"options": [{ "audio": "", "hotZoneItemArr": [], "bgItem": "", "right": false },
{ "audio": "", "hotZoneItemArr": [], "bgItem": "", "right": false },
{ "audio": "", "hotZoneItemArr": [], "bgItem": "", "right": false }],
"type": "img",
"bgItem": {
"url": "http://staging-teach.cdn.ireadabc.com/f627ed930909e43e823cd79ed90aaea3.png", "rect": { "x": 90.8694029850746, "y": 0, "width": 910.2611940298508, "height": 595 }
}, "hotZoneItemArr": [
{
"index": 0, "text": "part1", "itemType": "text", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.853125, "imgScale": 1, "mapScale": 0.853125, "rect": { "x": 261.13, "y": 44.5, "width": 200, "height": 200 }
}, {
"index": 1, "text": "part2", "itemType": "text", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.853125, "imgScale": 1, "mapScale": 0.853125, "rect": { "x": 512.13, "y": 45.5, "width": 200, "height": 200 }
}, {
"index": 2, "text": "part3", "itemType": "text", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.853125, "imgScale": 1, "mapScale": 0.853125, "rect": { "x": 355.13, "y": 151.5, "width": 200, "height": 200 }
}, {
"index": 3, "pic_url": "http://staging-teach.cdn.ireadabc.com/be8ec5cee7a3074440478b00a4a84f5e.png", "itemType": "pic", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.853125, "imgScale": 0.44287909836065575, "mapScale": 0.853125, "rect": { "x": 23.13, "y": 44.5, "width": 200, "height": 200 }
}], "hotZoneFontObj": { "size": 50, "name": "BRLNSR_1", "color": "#8f3758" }
}, {
"options": [], "type": "img", "bgItem": { "url": "http://staging-teach.cdn.ireadabc.com/8b565a3db344386ab9cde226cc1411f2.jpg", "rect": { "x": 72.15060240963851, "y": 0, "width": 947.698795180723, "height": 595 } }, "hotZoneItemArr": [{ "index": 0, "text": "download", "itemType": "text", "fontSize": "40", "fontName": "BRLNSR_1", "fontColor": "#FF0000", "fontScale": 0.853125, "imgScale": 1, "mapScale": 0.853125, "rect": { "x": 122.84, "y": 71.5, "width": 200, "height": 200 } }, { "index": 1, "text": "app", "itemType": "text", "fontSize": "40", "fontName": "BRLNSR_1", "fontColor": "#FF0000", "fontScale": 0.853125, "imgScale": 1, "mapScale": 0.853125, "rect": { "x": 176.84, "y": 270.5, "width": 200, "height": 200 } }], "hotZoneFontObj": { "size": "40", "name": "BRLNSR_1", "color": "#FF0000" }
}], "bgItem": "", "hotZoneItemArr": []
}
const b = { {"npcTitle":"标题","npcAudio":"http://staging-teach.cdn.ireadabc.com/83266fbc34663cc2b94970dbef44265b_l.mp3","npcAudioName":"ruler.mp3","npcAudioEnd":"http://staging-teach.cdn.ireadabc.com/83266fbc34663cc2b94970dbef44265b_l.mp3","npcAudioEndName":"ruler.mp3","questions":[{"options":[],"hotZoneFontObj":{"size":50,"name":"BRLNSR_1","color":"#8f3758"},"bgItem":{"url":"http://staging-teach.cdn.ireadabc.com/c27035c38dff21b06c1a380593fca788.jpg","rect":{"x":0,"y":17.281588447653405,"width":1092,"height":857.4368231046932}},"hotZoneItemArr":[{"index":0,"text":"aaa bbb","itemType":"text","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.853125,"imgScale":1,"mapScale":0.853125,"rect":{"x":160,"y":669.72,"width":200,"height":148}},{"index":1,"text":"cccc ddddd","itemType":"text","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.853125,"imgScale":1,"mapScale":0.853125,"rect":{"x":789,"y":333.72,"width":200,"height":200}}]},{"options":[],"hotZoneFontObj":{"size":50,"name":"BRLNSR_1","color":"#8f3758"},"bgItem":{"url":"http://staging-teach.cdn.ireadabc.com/64235a8728c5f0168624ae4167f14c43.webp","rect":{"x":0,"y":79.01639344262293,"width":1092,"height":733.9672131147541}},"hotZoneItemArr":[{"index":0,"text":"C","audio_url":"http://staging-teach.cdn.ireadabc.com/ba0b9463cd86d1f6eff20147ef99e66f.mp3","itemType":"text","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.853125,"imgScale":1,"mapScale":0.853125,"rect":{"x":244,"y":530.98,"width":200,"height":200}},{"index":1,"text":"A","audio_url":"http://staging-teach.cdn.ireadabc.com/f5484db3e00a63a12f5197410ca95f0f.mp3","itemType":"text","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.853125,"imgScale":1,"mapScale":0.853125,"rect":{"x":213,"y":271.98,"width":200,"height":200}},{"index":2,"text":"B","audio_url":"http://staging-teach.cdn.ireadabc.com/c0acdb70d3f5f1483e44bae2faa1b25a.mp3","itemType":"text","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":0.853125,"imgScale":1,"mapScale":0.853125,"rect":{"x":456,"y":417.98,"width":200,"height":200}}]}],"bgItem":"","hotZoneItemArr":[]}
"npcTitle": "exit",
"npcAudio": "http://staging-teach.cdn.ireadabc.com/5f4e4c72671607bb35d1ecd1d291f238_l.mp3", // {
"npcAudioName": "boom_dg28_drag.mp3", // "npcTitle": "", "npcAudio": "", "npcAudioName": "开始音频.mp3", "npcAudioEnd": "http://teach.cdn.ireadabc.com/5c53861a4a8c9bfb7a86453bdcbb23f1_l.mp3", "npcAudioEndName": "结束音频.mp3", "questions": [{
"npcAudioEnd": "http://staging-teach.cdn.ireadabc.com/289fe0a6d9893519c3fb5993b86b6fe9_l.mp3", // "options": [], "hotZoneFontObj": { "size": 50, "name": "BRLNSR_1", "color": "#8f3758" }, "bgItem": { "url": "http://teach.cdn.ireadabc.com/48ef6e30800733163a3a7e5eee450b9b.png", "rect": { "x": 175.26254180602007, "y": 2.842170943040401e-14, "width": 742.4749163879599, "height": 443.99999999999994 } },
"npcAudioEndName": "dragdown_dg28_drag.mp3", // "hotZoneItemArr": [
"questions": [ // {
{ // "index": 0, "text": "extinction", "itemType": "text", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.85390625, "imgScale": 1, "mapScale": 0.85390625, "rect": { "x": 84.24, "y": -32, "width": 200, "height": 200 }
"options": [ // }, {
{ // "index": 1, "text": "extinction", "itemType": "text", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.85390625, "imgScale": 1, "mapScale": 0.85390625, "rect": { "x": 92.24, "y": 55, "width": 200, "height": 200 }
"audio": "", "hotZoneItemArr": [], "bgItem": "", "right": false // }, {
}, { // "index": 2, "text": "global warming", "itemType": "text", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.85390625, "imgScale": 1, "mapScale": 0.85390625, "rect": { "x": 448.24, "y": -12, "width": 200, "height": 200 }
"audio": "", "hotZoneItemArr": [], "bgItem": "", "right": false // }, {
}, { // "index": 3, "text": "threaten", "itemType": "text", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.85390625, "imgScale": 1, "mapScale": 0.85390625, "rect": { "x": 439.24, "y": 93, "width": 200, "height": 200 }
"audio": "", "hotZoneItemArr": [], "bgItem": "", "right": false // }]
} // }], "bgItem": "", "hotZoneItemArr": []
], // }
"type": "img", // let mc = {
"bgItem": { // "npcTitle": "exit", "npcAudio": "http://staging-teach.cdn.ireadabc.com/5f4e4c72671607bb35d1ecd1d291f238_l.mp3",
"url": "http://staging-teach.cdn.ireadabc.com/b4494456199505bdf990fff96a0c9fb8.jpg", // "npcAudioName": "boom_dg28_drag.mp3",
"rect": { // "npcAudioEnd": "http://staging-teach.cdn.ireadabc.com/289fe0a6d9893519c3fb5993b86b6fe9_l.mp3",
"x": 17.111111111111086, // "npcAudioEndName": "dragdown_dg28_drag.mp3",
"y": 0, // "questions": [{
"width": 1057.7777777777778, // "options": [{ "audio": "", "hotZoneItemArr": [], "bgItem": "", "right": false },
"height": 595 // { "audio": "", "hotZoneItemArr": [], "bgItem": "", "right": false },
} // { "audio": "", "hotZoneItemArr": [], "bgItem": "", "right": false }],
}, // "type": "img",
"hotZoneItemArr": [ // "bgItem": {
{ // "url": "http://staging-teach.cdn.ireadabc.com/f627ed930909e43e823cd79ed90aaea3.png", "rect": { "x": 90.8694029850746, "y": 0, "width": 910.2611940298508, "height": 595 }
"index": 0, "text": "part1", "itemType": "text", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.853125, "imgScale": 1, "mapScale": 0.853125, "rect": { "x": 435.89, "y": 190.5, "width": 200, "height": 200 } // }, "hotZoneItemArr": [
}, { // {
"index": 1, "text": "part2", "itemType": "text", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.853125, "imgScale": 1, "mapScale": 0.853125, "rect": { "x": -19.11, "y": -59.5, "width": 200, "height": 200 } // "index": 0, "text": "part1", "itemType": "text", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.853125, "imgScale": 1, "mapScale": 0.853125, "rect": { "x": 261.13, "y": 44.5, "width": 200, "height": 200 }
}, { // }, {
"index": 2, "text": "part4", "itemType": "text", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.853125, "imgScale": 1, "mapScale": 0.853125, "rect": { "x": -27.11, "y": 452.5, "width": 200, "height": 200 } // "index": 1, "text": "part2", "itemType": "text", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.853125, "imgScale": 1, "mapScale": 0.853125, "rect": { "x": 512.13, "y": 45.5, "width": 200, "height": 200 }
}, { // }, {
"index": 3, "text": "part5", "itemType": "text", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.853125, "imgScale": 1, "mapScale": 0.853125, "rect": { "x": 883.89, "y": 460.5, "width": 200, "height": 200 } // "index": 2, "text": "part3", "itemType": "text", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.853125, "imgScale": 1, "mapScale": 0.853125, "rect": { "x": 355.13, "y": 151.5, "width": 200, "height": 200 }
}, { // }, {
"index": 4, "pic_url": "http://staging-teach.cdn.ireadabc.com/be8ec5cee7a3074440478b00a4a84f5e.png", "itemType": "pic", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.853125, "imgScale": 0.44287909836065575, "mapScale": 0.853125, "rect": { "x": 6.89, "y": 79.5, "width": 200, "height": 200 } // "index": 3, "pic_url": "http://staging-teach.cdn.ireadabc.com/be8ec5cee7a3074440478b00a4a84f5e.png", "itemType": "pic", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.853125, "imgScale": 0.44287909836065575, "mapScale": 0.853125, "rect": { "x": 23.13, "y": 44.5, "width": 200, "height": 200 }
}], // }], "hotZoneFontObj": { "size": 50, "name": "BRLNSR_1", "color": "#8f3758" }
"hotZoneFontObj": { // }, {
"size": 50, // "options": [], "type": "img", "bgItem": { "url": "http://staging-teach.cdn.ireadabc.com/8b565a3db344386ab9cde226cc1411f2.jpg", "rect": { "x": 72.15060240963851, "y": 0, "width": 947.698795180723, "height": 595 } }, "hotZoneItemArr": [{ "index": 0, "text": "download", "itemType": "text", "fontSize": "40", "fontName": "BRLNSR_1", "fontColor": "#FF0000", "fontScale": 0.853125, "imgScale": 1, "mapScale": 0.853125, "rect": { "x": 122.84, "y": 71.5, "width": 200, "height": 200 } }, { "index": 1, "text": "app", "itemType": "text", "fontSize": "40", "fontName": "BRLNSR_1", "fontColor": "#FF0000", "fontScale": 0.853125, "imgScale": 1, "mapScale": 0.853125, "rect": { "x": 176.84, "y": 270.5, "width": 200, "height": 200 } }], "hotZoneFontObj": { "size": "40", "name": "BRLNSR_1", "color": "#FF0000" }
"name": "BRLNSR_1", // }], "bgItem": "", "hotZoneItemArr": []
"color": "#8f3758" // }
}
}, { // const b = {
"options": [], // "npcTitle": "exit",
"type": "img", // "npcAudio": "http://staging-teach.cdn.ireadabc.com/5f4e4c72671607bb35d1ecd1d291f238_l.mp3",
"bgItem": { // "npcAudioName": "boom_dg28_drag.mp3",
"url": "http://staging-teach.cdn.ireadabc.com/9ecda2ef223dfc255a17522110fc7ee2.png", // "npcAudioEnd": "http://staging-teach.cdn.ireadabc.com/289fe0a6d9893519c3fb5993b86b6fe9_l.mp3",
"rect": { // "npcAudioEndName": "dragdown_dg28_drag.mp3",
"x": 152.03542234332423, // "questions": [
"y": 0, // {
"width": 787.9291553133515, // "options": [
"height": 595 // {
} // "audio": "", "hotZoneItemArr": [], "bgItem": "", "right": false
}, // }, {
"hotZoneItemArr": [ // "audio": "", "hotZoneItemArr": [], "bgItem": "", "right": false
{ // }, {
"index": 0, "text": "test1", "itemType": "text", "fontSize": "40", "fontName": "BRLNSR_1", "fontColor": "#FF0000", "fontScale": 0.853125, "imgScale": 1, "mapScale": 0.853125, "rect": { "x": 166.96, "y": 0.5, "width": 200, "height": 200 } // "audio": "", "hotZoneItemArr": [], "bgItem": "", "right": false
}, { // }
"index": 1, "text": "test2", "itemType": "text", "fontSize": "40", "fontName": "BRLNSR_1", "fontColor": "#FF0000", "fontScale": 0.853125, "imgScale": 1, "mapScale": 0.853125, "rect": { "x": 343.96, "y": 335.5, "width": 200, "height": 200 } // ],
}], // "type": "img",
"hotZoneFontObj": { // "bgItem": {
"size": "40", "name": "BRLNSR_1", "color": "#FF0000" // "url": "http://staging-teach.cdn.ireadabc.com/b4494456199505bdf990fff96a0c9fb8.jpg",
} // "rect": {
}], // "x": 17.111111111111086,
"bgItem": "", // "y": 0,
"hotZoneItemArr": [] // "width": 1057.7777777777778,
} // "height": 595
// }
// },
// "hotZoneItemArr": [
// {
// "index": 0, "text": "part1", "itemType": "text", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.853125, "imgScale": 1, "mapScale": 0.853125, "rect": { "x": 435.89, "y": 190.5, "width": 200, "height": 200 }
// }, {
// "index": 1, "text": "part2", "itemType": "text", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.853125, "imgScale": 1, "mapScale": 0.853125, "rect": { "x": -19.11, "y": -59.5, "width": 200, "height": 200 }
// }, {
// "index": 2, "text": "part4", "itemType": "text", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.853125, "imgScale": 1, "mapScale": 0.853125, "rect": { "x": -27.11, "y": 452.5, "width": 200, "height": 200 }
// }, {
// "index": 3, "text": "part5", "itemType": "text", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.853125, "imgScale": 1, "mapScale": 0.853125, "rect": { "x": 883.89, "y": 460.5, "width": 200, "height": 200 }
// }, {
// "index": 4, "pic_url": "http://staging-teach.cdn.ireadabc.com/be8ec5cee7a3074440478b00a4a84f5e.png", "itemType": "pic", "fontSize": 50, "fontName": "BRLNSR_1", "fontColor": "#8f3758", "fontScale": 0.853125, "imgScale": 0.44287909836065575, "mapScale": 0.853125, "rect": { "x": 6.89, "y": 79.5, "width": 200, "height": 200 }
// }],
// "hotZoneFontObj": {
// "size": 50,
// "name": "BRLNSR_1",
// "color": "#8f3758"
// }
// }, {
// "options": [],
// "type": "img",
// "bgItem": {
// "url": "http://staging-teach.cdn.ireadabc.com/9ecda2ef223dfc255a17522110fc7ee2.png",
// "rect": {
// "x": 152.03542234332423,
// "y": 0,
// "width": 787.9291553133515,
// "height": 595
// }
// },
// "hotZoneItemArr": [
// {
// "index": 0, "text": "test1", "itemType": "text", "fontSize": "40", "fontName": "BRLNSR_1", "fontColor": "#FF0000", "fontScale": 0.853125, "imgScale": 1, "mapScale": 0.853125, "rect": { "x": 166.96, "y": 0.5, "width": 200, "height": 200 }
// }, {
// "index": 1, "text": "test2", "itemType": "text", "fontSize": "40", "fontName": "BRLNSR_1", "fontColor": "#FF0000", "fontScale": 0.853125, "imgScale": 1, "mapScale": 0.853125, "rect": { "x": 343.96, "y": 335.5, "width": 200, "height": 200 }
// }],
// "hotZoneFontObj": {
// "size": "40", "name": "BRLNSR_1", "color": "#FF0000"
// }
// }],
// "bgItem": "",
// "hotZoneItemArr": []
// }
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