@urso/core 0.6.18 → 0.6.19-dev

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.
@@ -7,7 +7,7 @@ object-assign
7
7
  /*!
8
8
  * Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported.
9
9
  *
10
- * howler.js v2.2.3
10
+ * howler.js v2.2.4
11
11
  * howlerjs.com
12
12
  *
13
13
  * (c) 2013-2020, James Simpson of GoldFire Studios
@@ -17,7 +17,7 @@ object-assign
17
17
  */
18
18
 
19
19
  /*!
20
- * howler.js v2.2.3
20
+ * howler.js v2.2.4
21
21
  * howlerjs.com
22
22
  *
23
23
  * (c) 2013-2020, James Simpson of GoldFire Studios
@@ -27,8 +27,8 @@ object-assign
27
27
  */
28
28
 
29
29
  /*!
30
- * @pixi-spine/loader-base - v3.1.0
31
- * Compiled Wed, 03 Aug 2022 16:58:28 UTC
30
+ * @pixi-spine/loader-base - v3.0.16
31
+ * Compiled Tue, 28 Jun 2022 15:02:42 UTC
32
32
  *
33
33
  * @pixi-spine/loader-base is licensed under the MIT License.
34
34
  * http://www.opensource.org/licenses/mit-license
@@ -37,8 +37,8 @@ object-assign
37
37
  */
38
38
 
39
39
  /*!
40
- * @pixi-spine/runtime-3.8 - v3.1.0
41
- * Compiled Wed, 03 Aug 2022 16:58:28 UTC
40
+ * @pixi-spine/runtime-3.8 - v3.0.16
41
+ * Compiled Tue, 28 Jun 2022 15:02:42 UTC
42
42
  *
43
43
  * @pixi-spine/runtime-3.8 is licensed under the MIT License.
44
44
  * http://www.opensource.org/licenses/mit-license
@@ -47,300 +47,164 @@ object-assign
47
47
  */
48
48
 
49
49
  /*!
50
- * @pixi/accessibility - v6.5.8
51
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
50
+ * @pixi/canvas-display - v6.3.0
51
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
52
52
  *
53
- * @pixi/accessibility is licensed under the MIT License.
53
+ * @pixi/canvas-display is licensed under the MIT License.
54
54
  * http://www.opensource.org/licenses/mit-license
55
55
  */
56
56
 
57
57
  /*!
58
- * @pixi/app - v6.5.8
59
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
58
+ * @pixi/canvas-extract - v6.3.0
59
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
60
60
  *
61
- * @pixi/app is licensed under the MIT License.
61
+ * @pixi/canvas-extract is licensed under the MIT License.
62
62
  * http://www.opensource.org/licenses/mit-license
63
63
  */
64
64
 
65
65
  /*!
66
- * @pixi/compressed-textures - v6.5.8
67
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
66
+ * @pixi/canvas-particle-container - v6.3.0
67
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
68
68
  *
69
- * @pixi/compressed-textures is licensed under the MIT License.
69
+ * @pixi/canvas-particle-container is licensed under the MIT License.
70
70
  * http://www.opensource.org/licenses/mit-license
71
71
  */
72
72
 
73
73
  /*!
74
- * @pixi/constants - v6.5.8
75
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
74
+ * @pixi/canvas-text - v6.3.0
75
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
76
76
  *
77
- * @pixi/constants is licensed under the MIT License.
77
+ * @pixi/canvas-text is licensed under the MIT License.
78
78
  * http://www.opensource.org/licenses/mit-license
79
79
  */
80
80
 
81
81
  /*!
82
- * @pixi/core - v6.5.8
83
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
82
+ * @pixi/constants - v6.3.0
83
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
84
84
  *
85
- * @pixi/core is licensed under the MIT License.
85
+ * @pixi/constants is licensed under the MIT License.
86
86
  * http://www.opensource.org/licenses/mit-license
87
87
  */
88
88
 
89
89
  /*!
90
- * @pixi/display - v6.5.8
91
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
90
+ * @pixi/core - v6.3.0
91
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
92
92
  *
93
- * @pixi/display is licensed under the MIT License.
93
+ * @pixi/core is licensed under the MIT License.
94
94
  * http://www.opensource.org/licenses/mit-license
95
95
  */
96
96
 
97
97
  /*!
98
- * @pixi/extensions - v6.5.8
99
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
98
+ * @pixi/display - v6.3.0
99
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
100
100
  *
101
- * @pixi/extensions is licensed under the MIT License.
101
+ * @pixi/display is licensed under the MIT License.
102
102
  * http://www.opensource.org/licenses/mit-license
103
103
  */
104
104
 
105
105
  /*!
106
- * @pixi/extract - v6.5.8
107
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
106
+ * @pixi/extract - v6.3.0
107
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
108
108
  *
109
109
  * @pixi/extract is licensed under the MIT License.
110
110
  * http://www.opensource.org/licenses/mit-license
111
111
  */
112
112
 
113
113
  /*!
114
- * @pixi/filter-alpha - v6.5.8
115
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
116
- *
117
- * @pixi/filter-alpha is licensed under the MIT License.
118
- * http://www.opensource.org/licenses/mit-license
119
- */
120
-
121
- /*!
122
- * @pixi/filter-blur - v6.5.8
123
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
124
- *
125
- * @pixi/filter-blur is licensed under the MIT License.
126
- * http://www.opensource.org/licenses/mit-license
127
- */
128
-
129
- /*!
130
- * @pixi/filter-color-matrix - v6.5.8
131
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
132
- *
133
- * @pixi/filter-color-matrix is licensed under the MIT License.
134
- * http://www.opensource.org/licenses/mit-license
135
- */
136
-
137
- /*!
138
- * @pixi/filter-displacement - v6.5.8
139
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
114
+ * @pixi/filter-displacement - v6.3.0
115
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
140
116
  *
141
117
  * @pixi/filter-displacement is licensed under the MIT License.
142
118
  * http://www.opensource.org/licenses/mit-license
143
119
  */
144
120
 
145
121
  /*!
146
- * @pixi/filter-fxaa - v6.5.8
147
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
148
- *
149
- * @pixi/filter-fxaa is licensed under the MIT License.
150
- * http://www.opensource.org/licenses/mit-license
151
- */
152
-
153
- /*!
154
- * @pixi/filter-noise - v6.5.8
155
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
156
- *
157
- * @pixi/filter-noise is licensed under the MIT License.
158
- * http://www.opensource.org/licenses/mit-license
159
- */
160
-
161
- /*!
162
- * @pixi/graphics - v6.5.8
163
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
164
- *
165
- * @pixi/graphics is licensed under the MIT License.
166
- * http://www.opensource.org/licenses/mit-license
167
- */
168
-
169
- /*!
170
- * @pixi/interaction - v6.5.8
171
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
122
+ * @pixi/filter-kawase-blur - v3.2.0
123
+ * Compiled Wed, 23 Dec 2020 00:29:02 UTC
172
124
  *
173
- * @pixi/interaction is licensed under the MIT License.
125
+ * @pixi/filter-kawase-blur is licensed under the MIT License.
174
126
  * http://www.opensource.org/licenses/mit-license
175
127
  */
176
128
 
177
129
  /*!
178
- * @pixi/loaders - v6.5.8
179
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
130
+ * @pixi/loaders - v6.3.0
131
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
180
132
  *
181
133
  * @pixi/loaders is licensed under the MIT License.
182
134
  * http://www.opensource.org/licenses/mit-license
183
135
  */
184
136
 
185
137
  /*!
186
- * @pixi/math - v6.5.8
187
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
138
+ * @pixi/math - v6.3.0
139
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
188
140
  *
189
141
  * @pixi/math is licensed under the MIT License.
190
142
  * http://www.opensource.org/licenses/mit-license
191
143
  */
192
144
 
193
145
  /*!
194
- * @pixi/mesh - v6.5.8
195
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
196
- *
197
- * @pixi/mesh is licensed under the MIT License.
198
- * http://www.opensource.org/licenses/mit-license
199
- */
200
-
201
- /*!
202
- * @pixi/mesh-extras - v6.5.8
203
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
204
- *
205
- * @pixi/mesh-extras is licensed under the MIT License.
206
- * http://www.opensource.org/licenses/mit-license
207
- */
208
-
209
- /*!
210
- * @pixi/mixin-cache-as-bitmap - v6.5.8
211
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
212
- *
213
- * @pixi/mixin-cache-as-bitmap is licensed under the MIT License.
214
- * http://www.opensource.org/licenses/mit-license
215
- */
216
-
217
- /*!
218
- * @pixi/mixin-get-child-by-name - v6.5.8
219
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
146
+ * @pixi/mixin-get-child-by-name - v6.3.0
147
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
220
148
  *
221
149
  * @pixi/mixin-get-child-by-name is licensed under the MIT License.
222
150
  * http://www.opensource.org/licenses/mit-license
223
151
  */
224
152
 
225
153
  /*!
226
- * @pixi/mixin-get-global-position - v6.5.8
227
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
154
+ * @pixi/mixin-get-global-position - v6.3.0
155
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
228
156
  *
229
157
  * @pixi/mixin-get-global-position is licensed under the MIT License.
230
158
  * http://www.opensource.org/licenses/mit-license
231
159
  */
232
160
 
233
161
  /*!
234
- * @pixi/particle-container - v6.5.8
235
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
236
- *
237
- * @pixi/particle-container is licensed under the MIT License.
238
- * http://www.opensource.org/licenses/mit-license
239
- */
240
-
241
- /*!
242
- * @pixi/polyfill - v6.5.8
243
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
162
+ * @pixi/polyfill - v6.3.0
163
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
244
164
  *
245
165
  * @pixi/polyfill is licensed under the MIT License.
246
166
  * http://www.opensource.org/licenses/mit-license
247
167
  */
248
168
 
249
169
  /*!
250
- * @pixi/prepare - v6.5.8
251
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
170
+ * @pixi/prepare - v6.3.0
171
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
252
172
  *
253
173
  * @pixi/prepare is licensed under the MIT License.
254
174
  * http://www.opensource.org/licenses/mit-license
255
175
  */
256
176
 
257
177
  /*!
258
- * @pixi/runner - v6.5.8
259
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
178
+ * @pixi/runner - v6.3.0
179
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
260
180
  *
261
181
  * @pixi/runner is licensed under the MIT License.
262
182
  * http://www.opensource.org/licenses/mit-license
263
183
  */
264
184
 
265
185
  /*!
266
- * @pixi/settings - v6.5.8
267
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
268
- *
269
- * @pixi/settings is licensed under the MIT License.
270
- * http://www.opensource.org/licenses/mit-license
271
- */
272
-
273
- /*!
274
- * @pixi/sprite - v6.5.8
275
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
276
- *
277
- * @pixi/sprite is licensed under the MIT License.
278
- * http://www.opensource.org/licenses/mit-license
279
- */
280
-
281
- /*!
282
- * @pixi/sprite-animated - v6.5.8
283
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
284
- *
285
- * @pixi/sprite-animated is licensed under the MIT License.
286
- * http://www.opensource.org/licenses/mit-license
287
- */
288
-
289
- /*!
290
- * @pixi/sprite-tiling - v6.5.8
291
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
292
- *
293
- * @pixi/sprite-tiling is licensed under the MIT License.
294
- * http://www.opensource.org/licenses/mit-license
295
- */
296
-
297
- /*!
298
- * @pixi/spritesheet - v6.5.8
299
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
300
- *
301
- * @pixi/spritesheet is licensed under the MIT License.
302
- * http://www.opensource.org/licenses/mit-license
303
- */
304
-
305
- /*!
306
- * @pixi/text - v6.5.8
307
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
308
- *
309
- * @pixi/text is licensed under the MIT License.
310
- * http://www.opensource.org/licenses/mit-license
311
- */
312
-
313
- /*!
314
- * @pixi/text-bitmap - v6.5.8
315
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
316
- *
317
- * @pixi/text-bitmap is licensed under the MIT License.
318
- * http://www.opensource.org/licenses/mit-license
319
- */
320
-
321
- /*!
322
- * @pixi/ticker - v6.5.8
323
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
186
+ * @pixi/ticker - v6.3.0
187
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
324
188
  *
325
189
  * @pixi/ticker is licensed under the MIT License.
326
190
  * http://www.opensource.org/licenses/mit-license
327
191
  */
328
192
 
329
193
  /*!
330
- * @pixi/utils - v6.5.8
331
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
194
+ * @pixi/utils - v6.3.0
195
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
332
196
  *
333
197
  * @pixi/utils is licensed under the MIT License.
334
198
  * http://www.opensource.org/licenses/mit-license
335
199
  */
336
200
 
337
201
  /*!
338
- * GSAP 3.11.3
339
- * https://greensock.com
202
+ * GSAP 3.12.5
203
+ * https://gsap.com
340
204
  *
341
- * @license Copyright 2008-2022, GreenSock. All rights reserved.
342
- * Subject to the terms at https://greensock.com/standard-license or for
343
- * Club GreenSock members, the agreement issued with that membership.
205
+ * @license Copyright 2008-2024, GreenSock. All rights reserved.
206
+ * Subject to the terms at https://gsap.com/standard-license or for
207
+ * Club GSAP members, the agreement issued with that membership.
344
208
  * @author: Jack Doyle, jack@greensock.com
345
209
  */
346
210
 
@@ -353,8 +217,8 @@ object-assign
353
217
  */
354
218
 
355
219
  /*!
356
- * pixi-spine - v3.1.0
357
- * Compiled Wed, 03 Aug 2022 17:00:10 UTC
220
+ * pixi-spine - v3.0.0
221
+ * Compiled Thu, 29 Apr 2021 13:42:29 UTC
358
222
  *
359
223
  * pixi-spine is licensed under the MIT License.
360
224
  * http://www.opensource.org/licenses/mit-license
@@ -363,8 +227,8 @@ object-assign
363
227
  */
364
228
 
365
229
  /*!
366
- * pixi-viewport - v4.37.0
367
- * Compiled Sun, 23 Oct 2022 14:02:15 UTC
230
+ * pixi-viewport - v4.38.0
231
+ * Compiled Sun, 27 Nov 2022 13:43:58 UTC
368
232
  *
369
233
  * pixi-viewport is licensed under the MIT License.
370
234
  * http://www.opensource.org/licenses/mit-license
@@ -373,13 +237,21 @@ object-assign
373
237
  */
374
238
 
375
239
  /*!
376
- * pixi.js - v6.5.8
377
- * Compiled Sun, 23 Oct 2022 23:01:45 UTC
240
+ * pixi.js - v6.3.0
241
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
378
242
  *
379
243
  * pixi.js is licensed under the MIT License.
380
244
  * http://www.opensource.org/licenses/mit-license
381
245
  */
382
246
 
247
+ /*!
248
+ * pixi.js-legacy - v6.3.0
249
+ * Compiled Wed, 23 Mar 2022 18:58:56 UTC
250
+ *
251
+ * pixi.js-legacy is licensed under the MIT License.
252
+ * http://www.opensource.org/licenses/mit-license
253
+ */
254
+
383
255
  /*! *****************************************************************************
384
256
  Copyright (c) Microsoft Corporation.
385
257
 
@@ -410,4 +282,4 @@ See the Apache Version 2.0 License for specific language governing permissions
410
282
  and limitations under the License.
411
283
  ***************************************************************************** */
412
284
 
413
- /*! https://mths.be/punycode v1.3.2 by @mathias */
285
+ /*! https://mths.be/punycode v1.4.1 by @mathias */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@urso/core",
3
- "version": "0.6.18",
3
+ "version": "0.6.19-dev",
4
4
  "description": "HTML5 game engine",
5
5
  "main": "build/js/index.js",
6
6
  "author": "Megbrimef",
@@ -29,10 +29,10 @@
29
29
  "pixi-particles": "^4.3.0",
30
30
  "pixi-projection": "0.3.15",
31
31
  "pixi-scrollbox": "^2.3.1",
32
- "pixi-spine": "^3.0.13",
32
+ "pixi-spine": "3.0.1",
33
33
  "pixi-text-input": "^1.0.6",
34
34
  "pixi-viewport": "^4.34.0",
35
- "pixi.js": "^6.2.0"
35
+ "pixi.js-legacy": "6.3.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@babel/core": "^7.12.10",
@@ -1,4 +1,4 @@
1
- import * as PIXI from 'pixi.js';
1
+ import * as PIXI from 'pixi.js-legacy';
2
2
  window.PIXI = PIXI;
3
3
  window.PIXI.particles = require('pixi-particles');
4
4
 
@@ -16,25 +16,22 @@ class ObjectPoolMember {
16
16
 
17
17
  /**
18
18
  * @param {Function} constructorFunction - function to constract element
19
- * @param {Function} resetFunction - function to reset element when put back to pool
19
+ * @param {Function} constructorFunction - function to reset element when put back to pool
20
20
  * @param {Number} [initialSize] - initial pool size. Use only if you not using keys when constract
21
21
  * @param {Number} [maxSize] - max pool size. Old elements will be removed from pool
22
- * @param {Function} removeFunction - function to remove element from pool. Happens, when max size is reached
23
22
  */
24
23
  class LibObjectPool {
25
24
 
26
25
  _pool = {};
27
- constructorFunction = () => { };
28
26
  resetFunction = () => { };
29
- removeFunction = () => { };
27
+ constructorFunction = () => { };
30
28
  _maxSize = 0;
31
29
 
32
30
  _lastBranchKeys = {};
33
31
  _putTimeCache = {};
34
32
 
35
- constructor(constructorFunction, resetFunction = (obj) => obj, initialSize = 0, maxSize = 0, removeFunction = (obj) => obj) {
33
+ constructor(constructorFunction, resetFunction = (obj) => obj, initialSize = 0, maxSize = 0) {
36
34
  this.resetFunction = resetFunction;
37
- this.removeFunction = removeFunction;
38
35
  this.constructorFunction = constructorFunction;
39
36
  this._maxSize = maxSize;
40
37
 
@@ -115,7 +112,6 @@ class LibObjectPool {
115
112
  delete this._pool[element.key][element.branchKey];
116
113
 
117
114
  //reset element
118
- this.removeFunction(element.data);
119
115
  element.free = false;
120
116
  element.putCacheTimeKey = 0;
121
117
  element.key = null;
@@ -246,9 +246,6 @@ class ModulesObjectsModelsSpine extends Urso.Core.Modules.Objects.BaseModel {
246
246
  if (!spineAsset)
247
247
  Urso.logger.error('ModulesObjectsModelsSpine assets error: no spine object ' + this.assetKey);
248
248
 
249
- if (!spineAsset.spineData)
250
- Urso.logger.error('ModulesObjectsModelsSpine assets error: no spine correct object (no spineData) for key ' + this.assetKey);
251
-
252
249
  this._baseObject = new PIXI.spine.Spine(spineAsset.spineData);
253
250
  //this._baseObject.state.timeScale = this.animation.timeScale;
254
251
  Object.defineProperty(this._baseObject.state, 'timeScale', { get: this.getTimeScale.bind(this) });
@@ -34,7 +34,7 @@ class ModulesScenesPixiWrapper {
34
34
 
35
35
  //define renderer
36
36
  PIXI.utils.skipHello();
37
- this.renderer = new PIXI.Renderer({ preserveDrawingBuffer: true, width: 1, height: 1 });
37
+ this.renderer = new PIXI.autoDetectRenderer({ preserveDrawingBuffer: true, width: 1, height: 1 });
38
38
  document.body.appendChild(this.renderer.view);
39
39
 
40
40
  //root and world