melonjs 13.2.1 → 13.3.0

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/README.md CHANGED
@@ -91,10 +91,9 @@ Tools integration and usage with melonJS is documented in our [Wiki](https://git
91
91
 
92
92
  # Using melonJS
93
93
 
94
- ### For your first time using melonJS, use either of these tutorials for setting up the engine. These are where you start.
94
+ ### For your first time using melonJS, this is where you start
95
95
 
96
- - [Platformer](http://melonjs.github.io/tutorial-platformer/) Step by Step Tutorial.
97
- - [Space Invaders](http://melonjs.github.io/tutorial-space-invaders/) Step by Step Tutorial.
96
+ - [melonJS: Hacking a Platformer Game](https://melonjs.org/tutorial/)
98
97
 
99
98
  You may find it useful to skim the overview found at the wiki [Details & Usage](https://github.com/melonjs/melonJS/wiki#details--usage)
100
99
 
@@ -112,7 +111,7 @@ A few demos of melonJS capabilities :
112
111
  * [Primitive Drawing Demo](https://melonjs.github.io/examples/graphics/)
113
112
  * [UI Demo](https://melonjs.github.io/examples/UI/)
114
113
 
115
- More examples are available [here](https://melonjs.github.io/examples/)
114
+ More examples are available [here](https://melonjs.github.io/examples/)
116
115
 
117
116
  -------------------------------------------------------------------------------
118
117
 
@@ -148,8 +147,9 @@ Documentation
148
147
  -------------------------------------------------------------------------------
149
148
 
150
149
  * [Online API](http://melonjs.github.io/melonJS/docs/)
151
- * [offline](https://github.com/melonjs/melonJS/archive/gh-pages.zip) version under the `docs` directory)
152
150
 
151
+ To enable an offline version of the documentation, navigate to the settings page and enable `offline storage`:
152
+ <img width="297" alt="186643536-854af31e-9c94-412e-a764-4bb7f93f15c3" src="https://user-images.githubusercontent.com/4033090/187061867-cf8c4c8a-437b-4f76-9138-610adda0ca23.png">
153
153
 
154
154
  Download melonJS
155
155
  -------------------------------------------------------------------------------
package/dist/melonjs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * melonJS Game Engine - v13.2.1
2
+ * melonJS Game Engine - v13.3.0
3
3
  * http://www.melonjs.org
4
4
  * melonjs is licensed under the MIT License.
5
5
  * http://www.opensource.org/licenses/mit-license
@@ -128,12 +128,20 @@
128
128
  return classof$2(it) == 'String' ? split(it, '') : $Object$3(it);
129
129
  } : $Object$3;
130
130
 
131
+ // we can't use just `it == null` since of `document.all` special case
132
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
133
+ var isNullOrUndefined$2 = function (it) {
134
+ return it === null || it === undefined;
135
+ };
136
+
137
+ var isNullOrUndefined$1 = isNullOrUndefined$2;
138
+
131
139
  var $TypeError$5 = TypeError;
132
140
 
133
141
  // `RequireObjectCoercible` abstract operation
134
142
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
135
143
  var requireObjectCoercible$3 = function (it) {
136
- if (it == undefined) { throw $TypeError$5("Can't call method on " + it); }
144
+ if (isNullOrUndefined$1(it)) { throw $TypeError$5("Can't call method on " + it); }
137
145
  return it;
138
146
  };
139
147
 
@@ -153,7 +161,14 @@
153
161
 
154
162
  var isCallable$a = isCallable$b;
155
163
 
156
- var isObject$5 = function (it) {
164
+ var documentAll = typeof document == 'object' && document.all;
165
+
166
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
167
+ var SPECIAL_DOCUMENT_ALL = typeof documentAll == 'undefined' && documentAll !== undefined;
168
+
169
+ var isObject$5 = SPECIAL_DOCUMENT_ALL ? function (it) {
170
+ return typeof it == 'object' ? it !== null : isCallable$a(it) || it === documentAll;
171
+ } : function (it) {
157
172
  return typeof it == 'object' ? it !== null : isCallable$a(it);
158
173
  };
159
174
 
@@ -210,7 +225,7 @@
210
225
  var fails$5 = fails$9;
211
226
 
212
227
  // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
213
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$5(function () {
228
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$5(function () {
214
229
  var symbol = Symbol();
215
230
  // Chrome 38 Symbol has incorrect toString conversion
216
231
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -221,7 +236,7 @@
221
236
 
222
237
  /* eslint-disable es-x/no-symbol -- required for testing */
223
238
 
224
- var NATIVE_SYMBOL$1 = nativeSymbol;
239
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
225
240
 
226
241
  var useSymbolAsUid = NATIVE_SYMBOL$1
227
242
  && !Symbol.sham
@@ -263,12 +278,13 @@
263
278
  };
264
279
 
265
280
  var aCallable = aCallable$1;
281
+ var isNullOrUndefined = isNullOrUndefined$2;
266
282
 
267
283
  // `GetMethod` abstract operation
268
284
  // https://tc39.es/ecma262/#sec-getmethod
269
285
  var getMethod$1 = function (V, P) {
270
286
  var func = V[P];
271
- return func == null ? undefined : aCallable(func);
287
+ return isNullOrUndefined(func) ? undefined : aCallable(func);
272
288
  };
273
289
 
274
290
  var call$2 = functionCall;
@@ -315,10 +331,10 @@
315
331
  (shared$3.exports = function (key, value) {
316
332
  return store$2[key] || (store$2[key] = value !== undefined ? value : {});
317
333
  })('versions', []).push({
318
- version: '3.24.1',
334
+ version: '3.25.0',
319
335
  mode: 'global',
320
336
  copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
321
- license: 'https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE',
337
+ license: 'https://github.com/zloirock/core-js/blob/v3.25.0/LICENSE',
322
338
  source: 'https://github.com/zloirock/core-js'
323
339
  });
324
340
 
@@ -358,7 +374,7 @@
358
374
  var shared$2 = shared$3.exports;
359
375
  var hasOwn$6 = hasOwnProperty_1;
360
376
  var uid$1 = uid$2;
361
- var NATIVE_SYMBOL = nativeSymbol;
377
+ var NATIVE_SYMBOL = symbolConstructorDetection;
362
378
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
363
379
 
364
380
  var WellKnownSymbolsStore = shared$2('wks');
@@ -575,15 +591,14 @@
575
591
  };
576
592
  }
577
593
 
578
- var inspectSource$2 = store$1.inspectSource;
594
+ var inspectSource$1 = store$1.inspectSource;
579
595
 
580
596
  var global$5 = global$c;
581
597
  var isCallable$4 = isCallable$b;
582
- var inspectSource$1 = inspectSource$2;
583
598
 
584
599
  var WeakMap$1 = global$5.WeakMap;
585
600
 
586
- var nativeWeakMap = isCallable$4(WeakMap$1) && /native code/.test(inspectSource$1(WeakMap$1));
601
+ var weakMapBasicDetection = isCallable$4(WeakMap$1) && /native code/.test(String(WeakMap$1));
587
602
 
588
603
  var shared$1 = shared$3.exports;
589
604
  var uid = uid$2;
@@ -596,7 +611,7 @@
596
611
 
597
612
  var hiddenKeys$3 = {};
598
613
 
599
- var NATIVE_WEAK_MAP = nativeWeakMap;
614
+ var NATIVE_WEAK_MAP = weakMapBasicDetection;
600
615
  var global$4 = global$c;
601
616
  var uncurryThis$4 = functionUncurryThis;
602
617
  var isObject = isObject$5;
@@ -630,7 +645,7 @@
630
645
  var wmhas = uncurryThis$4(store.has);
631
646
  var wmset = uncurryThis$4(store.set);
632
647
  set = function (it, metadata) {
633
- if (wmhas(store, it)) { throw new TypeError$1(OBJECT_ALREADY_INITIALIZED); }
648
+ if (wmhas(store, it)) { throw TypeError$1(OBJECT_ALREADY_INITIALIZED); }
634
649
  metadata.facade = it;
635
650
  wmset(store, it, metadata);
636
651
  return metadata;
@@ -645,7 +660,7 @@
645
660
  var STATE = sharedKey('state');
646
661
  hiddenKeys$2[STATE] = true;
647
662
  set = function (it, metadata) {
648
- if (hasOwn$3(it, STATE)) { throw new TypeError$1(OBJECT_ALREADY_INITIALIZED); }
663
+ if (hasOwn$3(it, STATE)) { throw TypeError$1(OBJECT_ALREADY_INITIALIZED); }
649
664
  metadata.facade = it;
650
665
  createNonEnumerableProperty$1(it, STATE, metadata);
651
666
  return metadata;
@@ -671,7 +686,7 @@
671
686
  var hasOwn$2 = hasOwnProperty_1;
672
687
  var DESCRIPTORS = descriptors;
673
688
  var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
674
- var inspectSource = inspectSource$2;
689
+ var inspectSource = inspectSource$1;
675
690
  var InternalStateModule = internalState;
676
691
 
677
692
  var enforceInternalState = InternalStateModule.enforce;
@@ -32989,10 +33004,10 @@
32989
33004
  * this can be overridden by the plugin
32990
33005
  * @public
32991
33006
  * @type {string}
32992
- * @default "13.2.1"
33007
+ * @default "13.3.0"
32993
33008
  * @name plugin.Base#version
32994
33009
  */
32995
- this.version = "13.2.1";
33010
+ this.version = "13.3.0";
32996
33011
  };
32997
33012
 
32998
33013
  /**
@@ -37686,7 +37701,7 @@
37686
37701
  * @name version
37687
37702
  * @type {string}
37688
37703
  */
37689
- var version = "13.2.1";
37704
+ var version = "13.3.0";
37690
37705
 
37691
37706
 
37692
37707
  /**