@woosh/meep-engine 2.92.4 → 2.92.5
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/build/meep.module.js
CHANGED
|
@@ -85076,7 +85076,7 @@ class AssetManager {
|
|
|
85076
85076
|
* @template T
|
|
85077
85077
|
* @param {String} path
|
|
85078
85078
|
* @param {String} type
|
|
85079
|
-
* @param {function(asset:Asset<T>)} callback
|
|
85079
|
+
* @param {function(asset:Asset<T>)} [callback]
|
|
85080
85080
|
* @param {function(*)} [failure]
|
|
85081
85081
|
* @param {function(loaded:number, total:number)} [progress]
|
|
85082
85082
|
* @param {boolean} [skip_queue]
|
|
@@ -85085,7 +85085,7 @@ class AssetManager {
|
|
|
85085
85085
|
get({
|
|
85086
85086
|
path,
|
|
85087
85087
|
type,
|
|
85088
|
-
callback,
|
|
85088
|
+
callback = noop,
|
|
85089
85089
|
failure = console.error,
|
|
85090
85090
|
progress = noop,
|
|
85091
85091
|
skip_queue = false,
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssetManager.d.ts","sourceRoot":"","sources":["../../../../src/engine/asset/AssetManager.js"],"names":[],"mappings":"AAiDA;;;;GAIG;AACH;IAgII;;;;;OAKG;IACH,oCAJW,GAAG,EAYb;IA7ID;;;;OAIG;IACH,eAEG;IAEH;;;OAGG;IACH,iBAA6C;IAe7C;;;;;;OAMG;IACH,kBAFU,MAAM,CAEY;IAyB5B;;;;OAIG;IACH,iBAAc;IAEd;;;OAGG;IACH,mBAFU,iBAAiB,CAEiB;IAwE5C,gBAQC;IAED;;;;OAIG;IACH,qBAHW,MAAM,GACL,QAAQ,IAAI,CAAC,CAexB;IAED;;;;;OAKG;IACH,oCAFa,OAAO,CAOnB;IAED;;OAEG;IACH,cAEC;IAED,8BAEC;IAED;;;;;;OAMG;IACH,4DAJW,iBAAiB,GAEf,cAAc,CAY1B;IAED;;;;;;;;;OASG;IACH,
|
|
1
|
+
{"version":3,"file":"AssetManager.d.ts","sourceRoot":"","sources":["../../../../src/engine/asset/AssetManager.js"],"names":[],"mappings":"AAiDA;;;;GAIG;AACH;IAgII;;;;;OAKG;IACH,oCAJW,GAAG,EAYb;IA7ID;;;;OAIG;IACH,eAEG;IAEH;;;OAGG;IACH,iBAA6C;IAe7C;;;;;;OAMG;IACH,kBAFU,MAAM,CAEY;IAyB5B;;;;OAIG;IACH,iBAAc;IAEd;;;OAGG;IACH,mBAFU,iBAAiB,CAEiB;IAwE5C,gBAQC;IAED;;;;OAIG;IACH,qBAHW,MAAM,GACL,QAAQ,IAAI,CAAC,CAexB;IAED;;;;;OAKG;IACH,oCAFa,OAAO,CAOnB;IAED;;OAEG;IACH,cAEC;IAED,8BAEC;IAED;;;;;;OAMG;IACH,4DAJW,iBAAiB,GAEf,cAAc,CAY1B;IAED;;;;;;;;;OASG;IACH,qFAsCC;IAED;;;;;OAKG;IACH,aAJW,MAAM,QACN,MAAM,sBAehB;IAsQD;;;;;OAKG;IACH,sBA2BC;IAGD;;;;OAIG;IACH,uBAHW,MAAM,GACL,OAAO,CAIlB;IAED;;;;OAIG;IACH,sBAHW,MAAM,GACJ,wBAAY,SAAS,CAMjC;IAaD;;;;OAIG;IACH,+BAHW,MAAM,4CAqBhB;IAED;;;;OAIG;IACH,iCAHW,MAAM,+CAyBhB;IAED;;;;;OAKG;IACH,0BAJW,MAAM,iEAwChB;IAED;;;OAGG;IACH,uBAFW,MAAM,iBAkBhB;IAED;;;;;;OAMG;IACH,yCAFa,aAAS,IAAI,CAYzB;IAED;;;;;OAKG;IACH,eAJW,MAAM,QACN,MAAM,GACJ,OAAO,CAMnB;IAED;;;;OAIG;IACH,2BAHW,MAAM,GACL,mBAAiB,CAa5B;IAED;;;;OAIG;IACH,oBAHW,MAAM,GACL,gBAAgB,GAAC,SAAS,CAQrC;IAED;;;;;OAKG;IACH,mBAJW,MAAM,QACN,MAAM,QACN,MAAM,QAUhB;IAGL;;;OAGG;IACH,yBAFU,OAAO,CAEoB;;CANpC;kCA50BiC,6BAA6B;kCAD7B,wBAAwB;4BAE9B,0BAA0B;iCALrB,uBAAuB"}
|
|
@@ -273,7 +273,7 @@ export class AssetManager {
|
|
|
273
273
|
* @template T
|
|
274
274
|
* @param {String} path
|
|
275
275
|
* @param {String} type
|
|
276
|
-
* @param {function(asset:Asset<T>)} callback
|
|
276
|
+
* @param {function(asset:Asset<T>)} [callback]
|
|
277
277
|
* @param {function(*)} [failure]
|
|
278
278
|
* @param {function(loaded:number, total:number)} [progress]
|
|
279
279
|
* @param {boolean} [skip_queue]
|
|
@@ -282,7 +282,7 @@ export class AssetManager {
|
|
|
282
282
|
get({
|
|
283
283
|
path,
|
|
284
284
|
type,
|
|
285
|
-
callback,
|
|
285
|
+
callback = noop,
|
|
286
286
|
failure = console.error,
|
|
287
287
|
progress = noop,
|
|
288
288
|
skip_queue = false,
|
|
@@ -297,6 +297,10 @@ export class AssetManager {
|
|
|
297
297
|
throw new TypeError(`type must be a string, instead was '${typeof type}'`);
|
|
298
298
|
}
|
|
299
299
|
|
|
300
|
+
assert.isFunction(callback, 'success');
|
|
301
|
+
assert.isFunction(failure, 'failure');
|
|
302
|
+
assert.isFunction(progress, 'progress');
|
|
303
|
+
|
|
300
304
|
const assetDescription = new AssetDescription(path, type);
|
|
301
305
|
|
|
302
306
|
const asset = this.assets.get(assetDescription);
|