remove @constget (#4860)

This commit is contained in:
Weiliang Wang
2019-07-11 11:13:15 +08:00
committed by GitHub
parent 255141f3a6
commit f3f4745d80
10 changed files with 21 additions and 21 deletions
+1 -1
View File
@@ -204,7 +204,7 @@ export class CameraComponent extends Component {
* @zh 相机的颜色缓冲默认值。
*/
@property
@constget
// @constget
get color (): Readonly<Color> {
return this._color;
}
+1 -1
View File
@@ -61,7 +61,7 @@ export class LightComponent extends Component {
* 光源颜色。
*/
@property
@constget
// @constget
get color (): Readonly<Color> {
return this._color;
}
+4 -4
View File
@@ -196,7 +196,7 @@ export class ButtonComponent extends Component {
* 普通状态下按钮所显示的颜色。
*/
@property
@constget
// @constget
get normalColor (): Readonly<Color> {
return this._normalColor;
}
@@ -215,7 +215,7 @@ export class ButtonComponent extends Component {
* 按下状态时按钮所显示的颜色。
*/
@property
@constget
// @constget
get pressedColor (): Readonly<Color> {
return this._pressColor;
}
@@ -233,7 +233,7 @@ export class ButtonComponent extends Component {
* 悬停状态下按钮所显示的颜色。
*/
@property
@constget
// @constget
get hoverColor (): Readonly<Color> {
return this._hoverColor;
}
@@ -250,7 +250,7 @@ export class ButtonComponent extends Component {
* 禁用状态下按钮所显示的颜色。
*/
@property
@constget
// @constget
get disabledColor (): Readonly<Color> {
return this._disabledColor;
}
+2 -2
View File
@@ -111,7 +111,7 @@ export class GraphicsComponent extends UIRenderComponent {
* 线段颜色。
*/
@property
@constget
// @constget
get strokeColor (): Readonly<Color> {
return this._strokeColor;
}
@@ -130,7 +130,7 @@ export class GraphicsComponent extends UIRenderComponent {
* 填充颜色。
*/
@property
@constget
// @constget
get fillColor (): Readonly<Color> {
return this._fillColor;
}
@@ -68,7 +68,7 @@ export class LabelOutlineComponent extends Component {
* ```
*/
@property
@constget
// @constget
get color (): Readonly<Color> {
return this._color;
}
+1 -1
View File
@@ -217,7 +217,7 @@ export class LayoutComponent extends Component {
* 每个格子的大小,只有布局类型为 GRID 的时候才有效。
*/
@property
@constget
// @constget
get cellSize (): Readonly<Size> {
return this._cellSize;
}
+1 -1
View File
@@ -238,7 +238,7 @@ export class MaskComponent extends UIRenderComponent {
visible: false,
override: true,
})
@constget
// @constget
get color (): Readonly<Color> {
return this._color;
}
@@ -142,7 +142,7 @@ export class UIRenderComponent extends UIComponent {
@property({
displayOrder: 2,
})
@constget
// @constget
get color (): Readonly<Color> {
return this._color;
}
@@ -61,7 +61,7 @@ export class UITransformComponent extends Component {
@property({
displayOrder: 0,
})
@constget
// @constget
get contentSize (): Readonly<Size> {
return this._contentSize;
}
@@ -139,7 +139,7 @@ export class UITransformComponent extends Component {
@property({
displayOrder: 1,
})
@constget
// @constget
get anchorPoint (): Readonly<Vec2> {
return this._anchorPoint;
}
+7 -7
View File
@@ -411,7 +411,7 @@ export class Node extends BaseNode {
* @zh
* 本地坐标
*/
@constget
// @constget
public get position (): Readonly<Vec3> {
return this._lpos;
}
@@ -487,7 +487,7 @@ export class Node extends BaseNode {
* @zh
* 本地旋转
*/
@constget
// @constget
public get rotation (): Readonly<Quat> {
return this._lrot;
}
@@ -542,7 +542,7 @@ export class Node extends BaseNode {
* @zh
* 本地缩放
*/
@constget
// @constget
public get scale (): Readonly<Vec3> {
return this._lscale;
}
@@ -609,7 +609,7 @@ export class Node extends BaseNode {
* @zh
* 世界坐标
*/
@constget
// @constget
public get worldPosition (): Readonly<Vec3> {
this.updateWorldTransform();
return this._pos;
@@ -696,7 +696,7 @@ export class Node extends BaseNode {
* @zh
* 世界旋转
*/
@constget
// @constget
public get worldRotation (): Readonly<Quat> {
this.updateWorldTransform();
return this._rot;
@@ -758,7 +758,7 @@ export class Node extends BaseNode {
* @zh
* 世界缩放
*/
@constget
// @constget
public get worldScale (): Readonly<Vec3> {
this.updateWorldTransform();
return this._scale;
@@ -782,7 +782,7 @@ export class Node extends BaseNode {
* @zh
* 世界变换矩阵
*/
@constget
// @constget
public get worldMatrix (): Readonly<Mat4> {
this.updateWorldTransformFull();
return this._mat;