@urso/core 0.7.32 → 0.7.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@urso/core",
3
- "version": "0.7.32",
3
+ "version": "0.7.33",
4
4
  "description": "HTML5 game engine",
5
5
  "main": "build/js/index.js",
6
6
  "author": "Megbrimef",
@@ -195,6 +195,12 @@ class ModulesObjectsBaseModel {
195
195
 
196
196
  return newTexture;
197
197
  }
198
+
199
+ // sorts children by zIndex
200
+ sortChildren() {
201
+ if(this._baseObject.children?.length > 0)
202
+ this._baseObject.sortChildren();
203
+ }
198
204
  }
199
205
 
200
206
  module.exports = ModulesObjectsBaseModel;
@@ -233,7 +233,7 @@ class ModulesObjectsProxy {
233
233
  'class': 'class',
234
234
  'x': 'x',
235
235
  'y': 'y',
236
- 'z': 'z',
236
+ 'z': 'zIndex',
237
237
  'angle': 'angle',
238
238
  'anchorX': 'anchor.x', //'anchor.x',
239
239
  'anchorY': 'anchor.y', //'anchor.y',