Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dg18_tianci
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
dg18_tianci
Commits
54933023
Commit
54933023
authored
Jul 30, 2024
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
a8cb6846
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
180 additions
and
129 deletions
+180
-129
.DS_Store
.DS_Store
+0
-0
dg18_tianci.ts
assets/dg18_tianci/scene/dg18_tianci.ts
+56
-15
pg_dg18_tianci.ts
assets/dg18_tianci/scene/pg_dg18_tianci.ts
+11
-4
defaultData_dg18_tianci.ts
assets/dg18_tianci/script/defaultData_dg18_tianci.ts
+113
-110
No files found.
.DS_Store
View file @
54933023
No preview for this file type
assets/dg18_tianci/scene/dg18_tianci.ts
View file @
54933023
...
...
@@ -96,7 +96,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
let
img
=
pg
.
view
.
find
(
this
.
layout_canvas
,
'
img
'
);
pg
.
view
.
setNetImg
(
img
,
this
.
currentQuestion
.
bgItem
.
url
,
{
w
:
1220
,
h
:
790
},
true
).
then
(()
=>
{
this
.
initTargets
(
img
);
if
(
this
.
current
!=
0
)
{
this
.
layout_target
.
children
.
forEach
(
nd
=>
{
nd
.
opacity
=
255
})
}
})
if
(
this
.
current
==
0
)
{
...
...
@@ -117,18 +123,25 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
}
initTargets
(
img
)
{
console
.
log
(
'
in initTargets
'
)
this
.
layout_target
.
removeAllChildren
();
let
item_color
=
pg
.
view
.
find
(
this
,
'
item_color
'
);
let
boxHeight
=
this
.
layout_canvas
.
height
;
let
imgHeight
=
img
.
height
;
let
moveY
=
(
boxHeight
-
imgHeight
)
/
2
let
arr
=
this
.
changepoints
(
this
.
currentQuestion
,
moveY
);
// let boxHeight = this.layout_canvas.height;
// let imgHeight = img.height;
// let moveY = (boxHeight - imgHeight) / 2
this
.
layout_target
.
scale
=
img
.
scale
;
this
.
layout_items
.
scale
=
img
.
scale
;
let
arr
=
this
.
changepoints
(
this
.
currentQuestion
,
img
);
// 整体的坐标需要往中间下面进行计算。
arr
.
forEach
((
ar
)
=>
{
let
node
=
pg
.
view
.
clone
(
item_color
);
node
.
x
=
ar
.
pos
.
x
;
node
.
y
=
ar
.
pos
.
y
node
.
y
=
ar
.
pos
.
y
;
node
.
data
=
ar
;
node
.
opacity
=
0
;
node
.
removeComponent
(
cc
.
Sprite
);
...
...
@@ -316,18 +329,45 @@ export default class SceneComponent extends MyCocosSceneComponent {
return
{
targetData
,
targetItem
}
}
private
changepoints
(
data
,
moveY
)
{
let
scaleX
=
1220
/
data
.
bgItem
.
rect
.
width
;
let
scaleY
=
790
/
data
.
bgItem
.
rect
.
height
;
let
scale
=
scaleX
<=
scaleY
?
scaleX
:
scaleY
;
private
changepoints
(
data
,
bgImg
)
{
const
rate
=
(
bgImg
.
scale
*
bgImg
.
width
)
/
data
.
bgItem
.
rect
.
width
;
const
scale
=
rate
/
bgImg
.
scaleY
;
return
data
.
hotZoneItemArr
.
map
((
item
,
idx
)
=>
{
let
rect
=
item
.
rect
;
item
.
pos
=
{
x
:
(
rect
.
x
+
(
rect
.
width
/
2
))
*
scale
,
y
:
-
((
rect
.
y
+
(
rect
.
height
/
2
))
*
scale
)
-
moveY
}
item
.
width
=
rect
.
width
*
scale
;
item
.
height
=
rect
.
height
*
scale
;
item
.
pos
=
{};
const
rectNode
=
new
cc
.
Node
();
rectNode
.
name
=
'
rect
'
+
data
.
index
;
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
;
})
}
...
...
@@ -349,6 +389,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
let
text2
=
pg
.
view
.
find
(
node
,
'
text_2
'
);
text1
.
active
=
false
;
text2
.
active
=
false
;
text
.
parent
.
scale
=
1
/
this
.
layout_items
.
scale
;
pg
.
view
.
setColor
(
text
,
'
#1D8B38
'
)
text
.
getComponent
(
cc
.
Label
).
fontSize
=
targetData
.
fontSize
;
...
...
assets/dg18_tianci/scene/pg_dg18_tianci.ts
View file @
54933023
import
{
width
}
from
'
./../../../form/node_modules/@fortawesome/free-regular-svg-icons/faAddressCard.d
'
;
class
Emitter
{
static
instance
;
static
getInstance
()
{
...
...
@@ -292,13 +293,19 @@ let pg = {
let
scaleX
=
w
/
nw
;
let
scaleY
=
h
/
nh
;
let
scale
=
scaleX
<=
scaleY
?
scaleX
:
scaleY
;
node
.
width
=
nw
*
scale
;
node
.
height
=
nh
*
scale
;
// node.width = nw * scale;
// node.height = nh * scale;
node
.
scale
=
scale
;
}
else
{
let
scaleX
=
w
/
nw
;
let
scaleY
=
h
/
nh
;
node
.
width
=
nw
*
scaleX
;
node
.
height
=
nh
*
scaleY
;
let
scale
=
scaleX
<=
scaleY
?
scaleX
:
scaleY
;
// node.width = nw * scaleX;
// node.height = nh * scaleY;
node
.
scale
=
scale
;
}
node
.
active
=
nodeActive
;
resolve
({
w
:
nw
,
h
:
nh
});
...
...
assets/dg18_tianci/script/defaultData_dg18_tianci.ts
View file @
54933023
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.842170943040401
e
-
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
"
:
"
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/b4494456199505bdf990fff96a0c9fb8.jpg
"
,
"
rect
"
:
{
"
x
"
:
17.111111111111086
,
"
y
"
:
0
,
"
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
"
:
[]
}
{
"
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": "", "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": "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/b4494456199505bdf990fff96a0c9fb8.jpg",
// "rect": {
// "x": 17.111111111111086,
// "y": 0,
// "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": []
// }
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment