|
@@ -1869,7 +1869,11 @@
|
|
* DO NOT INVOKE for internal purpose only
|
|
* DO NOT INVOKE for internal purpose only
|
|
*/
|
|
*/
|
|
public set actualPosition(val: Vector2) {
|
|
public set actualPosition(val: Vector2) {
|
|
- this._actualPosition = val;
|
|
|
|
|
|
+ if (!this._actualPosition) {
|
|
|
|
+ this._actualPosition = val.clone();
|
|
|
|
+ } else {
|
|
|
|
+ this._actualPosition.copyFrom(val);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -1916,7 +1920,11 @@
|
|
if (!this._checkPositionChange()) {
|
|
if (!this._checkPositionChange()) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- this._position = value;
|
|
|
|
|
|
+ if (!this._position) {
|
|
|
|
+ this._position = value.clone();
|
|
|
|
+ } else {
|
|
|
|
+ this._position.copyFrom(value);
|
|
|
|
+ }
|
|
this._triggerPropertyChanged(Prim2DBase.actualPositionProperty, value);
|
|
this._triggerPropertyChanged(Prim2DBase.actualPositionProperty, value);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -2016,7 +2024,11 @@
|
|
}
|
|
}
|
|
|
|
|
|
protected internalSetSize(value: Size) {
|
|
protected internalSetSize(value: Size) {
|
|
- this._size = value;
|
|
|
|
|
|
+ if (!this._size) {
|
|
|
|
+ this._size = (value != null) ? value.clone() : null;
|
|
|
|
+ } else {
|
|
|
|
+ this._size.copyFrom(value);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -2118,7 +2130,11 @@
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
- this._actualSize = value;
|
|
|
|
|
|
+ if (!this._actualSize) {
|
|
|
|
+ this._actualSize = value.clone();
|
|
|
|
+ } else {
|
|
|
|
+ this._actualSize.copyFrom(value);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -2171,7 +2187,11 @@
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
- this._minSize = value;
|
|
|
|
|
|
+ if (!this._minSize) {
|
|
|
|
+ this._minSize = value.clone();
|
|
|
|
+ } else {
|
|
|
|
+ this._minSize.copyFrom(value);
|
|
|
|
+ }
|
|
this._parentLayoutDirty();
|
|
this._parentLayoutDirty();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -2189,7 +2209,11 @@
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
- this._maxSize = value;
|
|
|
|
|
|
+ if (!this._maxSize) {
|
|
|
|
+ this._maxSize = value.clone();
|
|
|
|
+ } else {
|
|
|
|
+ this._maxSize.copyFrom(value);
|
|
|
|
+ }
|
|
this._parentLayoutDirty();
|
|
this._parentLayoutDirty();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -2208,7 +2232,11 @@
|
|
}
|
|
}
|
|
|
|
|
|
public set origin(value: Vector2) {
|
|
public set origin(value: Vector2) {
|
|
- this._origin = value;
|
|
|
|
|
|
+ if (!this._origin) {
|
|
|
|
+ this._origin = value.clone();
|
|
|
|
+ } else {
|
|
|
|
+ this._origin.copyFrom(value);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
@dynamicLevelProperty(SmartPropertyPrim.SMARTPROPERTYPRIM_PROPCOUNT + 15, pi => Prim2DBase.levelVisibleProperty = pi)
|
|
@dynamicLevelProperty(SmartPropertyPrim.SMARTPROPERTYPRIM_PROPCOUNT + 15, pi => Prim2DBase.levelVisibleProperty = pi)
|
|
@@ -2485,7 +2513,7 @@
|
|
if (this.parent) {
|
|
if (this.parent) {
|
|
this.parent._setFlags(SmartPropertyPrim.flagLayoutBoundingInfoDirty | SmartPropertyPrim.flagGlobalTransformDirty);
|
|
this.parent._setFlags(SmartPropertyPrim.flagLayoutBoundingInfoDirty | SmartPropertyPrim.flagGlobalTransformDirty);
|
|
}
|
|
}
|
|
- this._layoutArea = val;
|
|
|
|
|
|
+ this._layoutArea.copyFrom(val);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -2507,7 +2535,11 @@
|
|
this.parent._setFlags(SmartPropertyPrim.flagLayoutBoundingInfoDirty | SmartPropertyPrim.flagGlobalTransformDirty);
|
|
this.parent._setFlags(SmartPropertyPrim.flagLayoutBoundingInfoDirty | SmartPropertyPrim.flagGlobalTransformDirty);
|
|
}
|
|
}
|
|
this._positioningDirty();
|
|
this._positioningDirty();
|
|
- this._layoutAreaPos = val;
|
|
|
|
|
|
+ if (!this._layoutAreaPos) {
|
|
|
|
+ this._layoutAreaPos = val.clone();
|
|
|
|
+ } else {
|
|
|
|
+ this._layoutAreaPos.copyFrom(val);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|