Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
ym-23
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
ym-23
Commits
4273faa8
Commit
4273faa8
authored
Jun 09, 2020
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style: 调整句子背景块位置
parent
029d01a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
21 deletions
+2
-21
play.component.ts
src/app/play/play.component.ts
+2
-21
No files found.
src/app/play/play.component.ts
View file @
4273faa8
...
...
@@ -65,7 +65,6 @@ export class PlayComponent implements OnInit, OnDestroy {
t1Bg
:
MySprite
;
Btn
playButton
juzi_bg
:
ShapeRect
;
guide_bg
:
ShapeRect
;
guide
:
MySprite
;
wordArr
...
...
@@ -697,7 +696,7 @@ export class PlayComponent implements OnInit, OnDestroy {
letter_num
.
fontName
=
'
GOTHICB_1
'
;
letter_num
.
fontColor
=
this
.
getColor
(
'
#ffffff
'
);
letter_num
.
refreshSize
();
letter_num
.
x
=
tempWidth
+
5
;
letter_num
.
x
=
tempWidth
+
2
5
;
rowHeight
=
letter_num
.
height
;
letter_num
.
y
=
rows
*
rowHeight
-
rowHeight
/
2
;
rowGroup
[
rows
-
1
].
letterLabels
.
push
(
letter_num
);
...
...
@@ -896,20 +895,10 @@ export class PlayComponent implements OnInit, OnDestroy {
const
j
=
Math
.
min
(
sx2
,
sy2
);
this
.
juziBg
.
setScaleXY
(
j
);
this
.
juziBg
.
x
=
this
.
canvasWidth
/
2
;
this
.
juziBg
.
x
=
this
.
juziBg
.
width
/
2
*
this
.
juziBg
.
scaleX
;
this
.
juziBg
.
y
=
this
.
canvasHeight
/
2
;
//句子方块
this
.
juzi_bg
=
new
ShapeRect
();
this
.
juzi_bg
.
fillColor
=
'
#ffffff
'
;
this
.
juzi_bg
.
setSize
(
1060
,
570
);
this
.
juzi_bg
.
x
=
-
550
;
this
.
juzi_bg
.
y
=
-
289
;
this
.
juziBg
.
addChild
(
this
.
juzi_bg
);
//按钮
this
.
Btn
=
new
MySprite
();
this
.
pauseButton
=
new
MySprite
();
this
.
playButton
=
new
MySprite
();
...
...
@@ -1020,14 +1009,6 @@ export class PlayComponent implements OnInit, OnDestroy {
}
/*
if(this.checkClickTarget(this.juzi_bg)){
//滚动区域
this.shapePosY = event.clientY;
}
*/
}
private
pauseSentenceAudio
()
{
...
...
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