Commit bf9a7460 authored by rockyl's avatar rockyl

修复

parent 30c83217
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment