Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
PU03
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
PU03
Commits
976da4cd
Commit
976da4cd
authored
4 years ago
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New uuid package
parent
f829952a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
play.component.ts
src/app/play/play.component.ts
+4
-4
No files found.
src/app/play/play.component.ts
View file @
976da4cd
...
...
@@ -8,7 +8,7 @@ import {
HostListener
}
from
"
@angular/core
"
;
import
{
UUID
}
from
'
angular2-
uuid
'
;
import
{
v4
as
uuidv4
}
from
'
uuid
'
;
import
{
MySprite
,
...
...
@@ -1199,14 +1199,14 @@ export class PlayComponent implements OnInit, OnDestroy {
line_1
.
setScaleXY
(
this
.
g_mapScale
)
line_1
.
anchorX
=
(
line_1
.
width
-
line_1
.
height
/
2
)
/
line_1
.
width
;
line_1
.
anchorY
=
0
;
line_1
.
id
=
UUID
.
UUID
();
line_1
.
id
=
uuidv4
();
const
line_2
=
new
MySprite
();
line_2
.
init
(
this
.
g_cartoon
.
images
.
get
(
color
));
line_2
.
setScaleXY
(
this
.
g_mapScale
)
line_2
.
anchorX
=
(
line_2
.
width
-
line_2
.
height
/
2
)
/
line_2
.
width
;
line_2
.
anchorY
=
0
;
line_2
.
id
=
UUID
.
UUID
();
line_2
.
id
=
uuidv4
();
line_1
.
visible
=
false
line_2
.
visible
=
false
...
...
@@ -1216,7 +1216,7 @@ export class PlayComponent implements OnInit, OnDestroy {
line_3
.
setScaleXY
(
this
.
g_mapScale
)
line_3
.
anchorX
=
(
line_3
.
width
-
line_3
.
height
/
2
)
/
line_3
.
width
;
line_3
.
anchorY
=
0
;
line_3
.
id
=
UUID
.
UUID
();
line_3
.
id
=
uuidv4
();
let
target_1
=
this
.
g_cartoon
.
getCartoonElement
(
T1
).
ref
.
dot
let
target_2
=
this
.
g_cartoon
.
getCartoonElement
(
T2
).
ref
.
dot
...
...
This diff is collapsed.
Click to expand it.
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