We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7157d57 commit 96a7811Copy full SHA for 96a7811
1 file changed
v3/src/components/Transform.js
@@ -15,16 +15,24 @@ var Transform = {
15
_rotation: 0,
16
_z: 0,
17
18
+ // public properties / methods
19
+
20
x: 0,
21
y: 0,
22
23
z: {
- get: function () {
24
25
+ get: function ()
26
+ {
27
return this._z;
28
},
- set: function (value) {
- this.state.sortChildrenFlag = true;
29
30
+ set: function (value)
31
32
+ this.state.sys.sortChildrenFlag = true;
33
this._z = value;
34
}
35
36
37
38
scaleX: {
@@ -129,6 +137,15 @@ var Transform = {
129
137
this.scaleX = x;
130
138
this.scaleY = y;
131
139
140
+ return this;
141
+ },
142
143
+ setZ: function (value)
144
145
+ if (value === undefined) { value = 0; }
146
147
+ this.z = value;
148
132
149
return this;
133
150
134
151
0 commit comments