Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
YM5-22
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-22
Commits
fc45a3c4
Commit
fc45a3c4
authored
Jul 08, 2020
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: Unit 增加图片遮照 图片圆角 图片切圆 视频类
parent
8a51c964
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
237 additions
and
50 deletions
+237
-50
Unit.ts
src/app/play/Unit.ts
+224
-49
play.component.ts
src/app/play/play.component.ts
+11
-0
tslint.json
tslint.json
+2
-1
No files found.
src/app/play/Unit.ts
View file @
fc45a3c4
This diff is collapsed.
Click to expand it.
src/app/play/play.component.ts
View file @
fc45a3c4
...
...
@@ -108,6 +108,16 @@ export class PlayComponent implements OnInit, OnDestroy {
ngOnDestroy
()
{
window
[
'
curCtx
'
]
=
null
;
window
.
cancelAnimationFrame
(
this
.
animationId
);
this
.
cleanAudio
();
}
cleanAudio
()
{
if
(
this
.
audioObj
)
{
for
(
const
key
in
this
.
audioObj
)
{
this
.
audioObj
[
key
].
pause
();
}
}
}
...
...
@@ -141,6 +151,7 @@ export class PlayComponent implements OnInit, OnDestroy {
this
.
canvas
.
nativeElement
.
height
=
this
.
canvasHeight
;
window
[
'
curCtx
'
]
=
this
.
ctx
;
window
[
'
curImages
'
]
=
this
.
images
;
}
...
...
tslint.json
View file @
fc45a3c4
...
...
@@ -92,7 +92,8 @@
"variable-name"
:
false
,
"no-unused-expression"
:
false
,
"align"
:
false
"align"
:
false
,
"no-string-literal"
:
false
},
"rulesDirectory"
:
[
"codelyzer"
...
...
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