Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
YM5-9
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
YM5-9
Commits
6fc8f78d
Commit
6fc8f78d
authored
Feb 03, 2021
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adajst space
parent
eec9e5f9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
play.component.ts
src/app/play/play.component.ts
+9
-9
No files found.
src/app/play/play.component.ts
View file @
6fc8f78d
...
...
@@ -289,7 +289,7 @@ export class PlayComponent implements OnInit, OnDestroy {
}
initTopMaskLine
()
{
let
maskTop
=
this
.
g_cartoon
.
createCartoonElementShapeRect
(
"
top-mask
"
,
this
.
g_canvasWidth
,
105
*
this
.
g_mapScale
,
"
#f0f5f8
"
)
//
let
maskTop
=
this
.
g_cartoon
.
createCartoonElementShapeRect
(
"
top-mask
"
,
this
.
g_canvasWidth
,
80
*
this
.
g_mapScale
,
"
#f0f5f8
"
)
//
this
.
render
(
maskTop
.
ref
,
zIndexMap
.
topMaskLine
)
}
...
...
@@ -481,14 +481,14 @@ export class PlayComponent implements OnInit, OnDestroy {
}
initScrollPannel
()
{
let
pannel
=
this
.
g_cartoon
.
createCartoonElementShapeRect
(
"
scroll-pannel
"
,
this
.
g_canvasWidth
-
180
*
this
.
g_mapScale
,
this
.
g_canvasHeight
-
78
*
this
.
g_mapScale
,
"
#f0f5f8
"
)
pannel
.
ref
.
y
=
78
*
this
.
g_mapScale
let
pannel
=
this
.
g_cartoon
.
createCartoonElementShapeRect
(
"
scroll-pannel
"
,
this
.
g_canvasWidth
-
180
*
this
.
g_mapScale
,
this
.
g_canvasHeight
-
52
*
this
.
g_mapScale
,
"
#f0f5f8
"
)
// f0f5f8
pannel
.
ref
.
y
=
52
*
this
.
g_mapScale
this
.
render
(
pannel
.
ref
,
10
);
pannel
.
lastInserType
=
"
Q
"
pannel
.
windowHeight
=
this
.
g_canvasHeight
-
78
*
this
.
g_mapScale
pannel
.
windowHeight
=
this
.
g_canvasHeight
-
52
*
this
.
g_mapScale
pannel
.
currentY
=
0
;
pannel
.
currentQuestionIndex
=
-
1
;
pannel
.
topY
=
78
*
this
.
g_mapScale
pannel
.
topY
=
52
*
this
.
g_mapScale
pannel
.
insertQuestion
=
(
text
,
nextQuestion
=
false
)
=>
{
if
(
nextQuestion
)
{
pannel
.
currentQuestionIndex
++
;
...
...
@@ -502,7 +502,7 @@ export class PlayComponent implements OnInit, OnDestroy {
}
else
{
textString
=
`
${
text
}
`
;
}
pannel
.
currentY
+=
2
8
*
this
.
g_mapScale
;
pannel
.
currentY
+=
1
8
*
this
.
g_mapScale
;
}
else
{
textString
=
text
;
pannel
.
currentY
-=
52
*
this
.
g_mapScale
;
...
...
@@ -531,9 +531,9 @@ export class PlayComponent implements OnInit, OnDestroy {
let
bb
=
label
.
ref
.
getBoundingBox
();
label
.
ref
.
x
=
42
*
this
.
g_mapScale
*
2
+
bb
.
width
/
2
;
if
(
pannel
.
lastInserType
==
"
Q
"
)
{
pannel
.
currentY
-=
28
*
this
.
g_mapScale
line
.
mask
.
ref
.
y
-=
28
*
this
.
g_mapScale
;
line
.
target
.
ref
.
y
-=
28
*
this
.
g_mapScale
;
pannel
.
currentY
-=
32
*
this
.
g_mapScale
line
.
mask
.
ref
.
y
-=
32
*
this
.
g_mapScale
;
line
.
target
.
ref
.
y
-=
32
*
this
.
g_mapScale
;
}
label
.
ref
.
y
=
pannel
.
currentY
+
32
*
this
.
g_mapScale
/
2
;
...
...
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