Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
YM5-6
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-6
Commits
1bf858a3
Commit
1bf858a3
authored
Jan 21, 2021
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add zoom scale for select pannel
parent
7d564af6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
play.component.ts
src/app/play/play.component.ts
+4
-5
No files found.
src/app/play/play.component.ts
View file @
1bf858a3
...
...
@@ -121,6 +121,7 @@ export class PlayComponent implements OnInit, OnDestroy {
wordAll
=
[];
currentClickNode
=
null
;
zoom
=
0.9
;
setWordLoad
(
id
:
string
,
letterId
:
string
,
loaded
:
boolean
,
letter
:
Label
):
void
{
...
...
@@ -523,13 +524,11 @@ export class PlayComponent implements OnInit, OnDestroy {
});
this
.
rawAudios
.
forEach
((
value
,
key
)
=>
{
// 预加载音频
const
a
=
this
.
preloadAudio
(
value
)
.
then
(()
=>
{
// this.images.set(key, img);
})
.
catch
(
err
=>
console
.
log
(
err
));
pr
.
push
(
a
);
});
return
Promise
.
all
(
pr
);
...
...
@@ -763,9 +762,9 @@ export class PlayComponent implements OnInit, OnDestroy {
initPic
()
{
this
.
body_bg
=
new
ShapeRoundRect
();
// this.body_bg.setSize(1280*this.mapScale, 555*this.mapScale, 30*this.mapScale) ;
this
.
body_bg
.
setScaleXY
(
this
.
mapScale
)
this
.
body_bg
.
x
=
this
.
canvasWidth
/
2
-
610
*
this
.
mapScale
// (this.canvasWidth - this.body_bg.width) / 2; // - 100 * this.mapScale;
this
.
body_bg
.
y
=
this
.
canvasHeight
/
2
-
250
*
this
.
mapScale
// this.canvasHeight - this.body_bg.height - (this.canvasHeight - this.body_bg.height)/3 ;
this
.
body_bg
.
setScaleXY
(
this
.
mapScale
*
this
.
zoom
)
this
.
body_bg
.
x
=
this
.
canvasWidth
/
2
-
610
*
this
.
mapScale
*
this
.
zoom
// (this.canvasWidth - this.body_bg.width) / 2; // - 100 * this.mapScale;
this
.
body_bg
.
y
=
this
.
canvasHeight
/
2
-
250
*
this
.
mapScale
*
this
.
zoom
// this.canvasHeight - this.body_bg.height - (this.canvasHeight - this.body_bg.height)/3 ;
this
.
renderArr
.
push
(
this
.
body_bg
);
let
colorBlock_left
=
new
ShapeRoundRect
()
...
...
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