Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
劳工
zeroing-engine
Commits
bf9a7460
Commit
bf9a7460
authored
Jun 05, 2020
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复
parent
30c83217
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
DisplayObject.ts
src/2d/display/DisplayObject.ts
+33
-0
No files found.
src/2d/display/DisplayObject.ts
View file @
bf9a7460
...
...
@@ -450,6 +450,9 @@ export class DisplayObject extends EventDispatcher {
}
set
x
(
value
:
number
)
{
if
(
this
.
destroyed
){
return
;
}
this
.
transform
.
position
.
x
=
value
;
}
...
...
@@ -458,6 +461,9 @@ export class DisplayObject extends EventDispatcher {
}
set
y
(
value
:
number
)
{
if
(
this
.
destroyed
){
return
;
}
this
.
transform
.
position
.
y
=
value
;
}
...
...
@@ -493,6 +499,9 @@ export class DisplayObject extends EventDispatcher {
* 设置位置对象
*/
set
position
(
value
)
{
if
(
this
.
destroyed
){
return
;
}
this
.
transform
.
position
.
copy
(
value
);
}
...
...
@@ -508,6 +517,9 @@ export class DisplayObject extends EventDispatcher {
* 设置缩放对象
*/
set
scale
(
value
)
{
if
(
this
.
destroyed
){
return
;
}
this
.
transform
.
scale
.
copy
(
value
);
}
...
...
@@ -516,6 +528,9 @@ export class DisplayObject extends EventDispatcher {
}
set
scaleX
(
value
)
{
if
(
this
.
destroyed
){
return
;
}
this
.
transform
.
scale
.
x
=
value
;
}
...
...
@@ -524,6 +539,9 @@ export class DisplayObject extends EventDispatcher {
}
set
scaleY
(
value
)
{
if
(
this
.
destroyed
){
return
;
}
this
.
transform
.
scale
.
y
=
value
;
}
...
...
@@ -536,6 +554,9 @@ export class DisplayObject extends EventDispatcher {
}
set
anchor
(
value
)
{
if
(
this
.
destroyed
){
return
;
}
this
.
transform
.
anchor
.
copy
(
value
);
}
...
...
@@ -544,6 +565,9 @@ export class DisplayObject extends EventDispatcher {
}
set
anchorX
(
value
)
{
if
(
this
.
destroyed
){
return
;
}
this
.
transform
.
anchor
.
x
=
value
;
}
...
...
@@ -552,6 +576,9 @@ export class DisplayObject extends EventDispatcher {
}
set
anchorY
(
value
)
{
if
(
this
.
destroyed
){
return
;
}
this
.
transform
.
anchor
.
y
=
value
;
}
...
...
@@ -564,6 +591,9 @@ export class DisplayObject extends EventDispatcher {
}
set
skew
(
value
)
{
if
(
this
.
destroyed
){
return
;
}
this
.
transform
.
skew
.
copy
(
value
);
}
...
...
@@ -579,6 +609,9 @@ export class DisplayObject extends EventDispatcher {
* 角度制
*/
set
rotation
(
value
:
number
)
{
if
(
this
.
destroyed
){
return
;
}
this
.
transform
.
rotation
=
value
*
DEG_TO_RAD
;
}
...
...
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