@galacean/engine-loader 1.1.0-alpha.4 → 1.1.0-beta.1

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/dist/main.js CHANGED
@@ -40,56 +40,61 @@ function _inherits(subClass, superClass) {
40
40
  if (superClass) _set_prototype_of(subClass, superClass);
41
41
  }
42
42
 
43
- /******************************************************************************
44
- Copyright (c) Microsoft Corporation.
45
-
46
- Permission to use, copy, modify, and/or distribute this software for any
47
- purpose with or without fee is hereby granted.
48
-
49
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
50
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
51
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
52
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
53
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
54
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
55
- PERFORMANCE OF THIS SOFTWARE.
56
- ***************************************************************************** */
57
-
58
- function __decorate(decorators, target, key, desc) {
59
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
60
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
61
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
62
- return c > 3 && r && Object.defineProperty(target, key, r), r;
63
- }
64
-
65
- function __generator(thisArg, body) {
66
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
67
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
68
- function verb(n) { return function (v) { return step([n, v]); }; }
69
- function step(op) {
70
- if (f) throw new TypeError("Generator is already executing.");
71
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
72
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
73
- if (y = 0, t) op = [op[0] & 2, t.value];
74
- switch (op[0]) {
75
- case 0: case 1: t = op; break;
76
- case 4: _.label++; return { value: op[1], done: false };
77
- case 5: _.label++; y = op[1]; op = [0]; continue;
78
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
79
- default:
80
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
81
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
82
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
83
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
84
- if (t[2]) _.ops.pop();
85
- _.trys.pop(); continue;
86
- }
87
- op = body.call(thisArg, _);
88
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
89
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
90
- }
43
+ /******************************************************************************
44
+ Copyright (c) Microsoft Corporation.
45
+
46
+ Permission to use, copy, modify, and/or distribute this software for any
47
+ purpose with or without fee is hereby granted.
48
+
49
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
50
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
51
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
52
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
53
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
54
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
55
+ PERFORMANCE OF THIS SOFTWARE.
56
+ ***************************************************************************** */
57
+
58
+ function __decorate(decorators, target, key, desc) {
59
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
60
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
61
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
62
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
63
+ }
64
+
65
+ function __generator(thisArg, body) {
66
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
67
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
68
+ function verb(n) { return function (v) { return step([n, v]); }; }
69
+ function step(op) {
70
+ if (f) throw new TypeError("Generator is already executing.");
71
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
72
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
73
+ if (y = 0, t) op = [op[0] & 2, t.value];
74
+ switch (op[0]) {
75
+ case 0: case 1: t = op; break;
76
+ case 4: _.label++; return { value: op[1], done: false };
77
+ case 5: _.label++; y = op[1]; op = [0]; continue;
78
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
79
+ default:
80
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
81
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
82
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
83
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
84
+ if (t[2]) _.ops.pop();
85
+ _.trys.pop(); continue;
86
+ }
87
+ op = body.call(thisArg, _);
88
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
89
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
90
+ }
91
91
  }
92
92
 
93
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
94
+ var e = new Error(message);
95
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
96
+ };
97
+
93
98
  function _defineProperties(target, props) {
94
99
  for (var i = 0; i < props.length; i++) {
95
100
  var descriptor = props[i];
@@ -622,7 +627,7 @@ var ReflectionParser = /*#__PURE__*/ function() {
622
627
  return _this.parseBasicType(param, engine, resourceManager);
623
628
  })).then(function(result) {
624
629
  var _instance;
625
- return (_instance = instance)[methodName].apply(_instance, result);
630
+ return (_instance = instance)[methodName].apply(_instance, [].concat(result));
626
631
  });
627
632
  };
628
633
  ReflectionParser._isClass = function _isClass(value) {
@@ -1001,10 +1006,10 @@ var SceneParserContext = /*#__PURE__*/ function() {
1001
1006
  return SceneParser;
1002
1007
  }();
1003
1008
 
1004
- exports.MeshLoader = /*#__PURE__*/ function(Loader) {
1005
- _inherits(MeshLoader, Loader);
1009
+ exports.MeshLoader = /*#__PURE__*/ function(Loader1) {
1010
+ _inherits(MeshLoader, Loader1);
1006
1011
  function MeshLoader() {
1007
- return Loader.apply(this, arguments);
1012
+ return Loader1.apply(this, arguments);
1008
1013
  }
1009
1014
  var _proto = MeshLoader.prototype;
1010
1015
  _proto.load = function load(item, resourceManager) {
@@ -1027,10 +1032,10 @@ exports.MeshLoader = __decorate([
1027
1032
  ], true)
1028
1033
  ], exports.MeshLoader);
1029
1034
 
1030
- exports.EditorTextureLoader = /*#__PURE__*/ function(Loader) {
1031
- _inherits(EditorTextureLoader, Loader);
1035
+ exports.EditorTextureLoader = /*#__PURE__*/ function(Loader1) {
1036
+ _inherits(EditorTextureLoader, Loader1);
1032
1037
  function EditorTextureLoader() {
1033
- return Loader.apply(this, arguments);
1038
+ return Loader1.apply(this, arguments);
1034
1039
  }
1035
1040
  var _proto = EditorTextureLoader.prototype;
1036
1041
  _proto.load = function load(item, resourceManager) {
@@ -1067,10 +1072,10 @@ exports.EditorTextureLoader = __decorate([
1067
1072
  });
1068
1073
  }
1069
1074
 
1070
- var AnimationClipLoader = /*#__PURE__*/ function(Loader) {
1071
- _inherits(AnimationClipLoader, Loader);
1075
+ var AnimationClipLoader = /*#__PURE__*/ function(Loader1) {
1076
+ _inherits(AnimationClipLoader, Loader1);
1072
1077
  function AnimationClipLoader() {
1073
- return Loader.apply(this, arguments);
1078
+ return Loader1.apply(this, arguments);
1074
1079
  }
1075
1080
  var _proto = AnimationClipLoader.prototype;
1076
1081
  _proto.load = function load(item, resourceManager) {
@@ -1135,6 +1140,7 @@ var AnimatorControllerLoader = /*#__PURE__*/ function(Loader1) {
1135
1140
  var states = stateMachineData.states;
1136
1141
  var stateMachine = layer.stateMachine = new engineCore.AnimatorStateMachine();
1137
1142
  states.forEach(function(stateData, stateIndex) {
1143
+ var _scriptsObject;
1138
1144
  var name = stateData.name, speed = stateData.speed, wrapMode = stateData.wrapMode, clipStartNormalizedTime = stateData.clipStartNormalizedTime, clipEndNormalizedTime = stateData.clipEndNormalizedTime, isDefaultState = stateData.isDefaultState, clipData = stateData.clip, scripts = stateData.scripts;
1139
1145
  var state = stateMachine.addState(name);
1140
1146
  isDefaultState && (stateMachine.defaultState = state);
@@ -1143,7 +1149,7 @@ var AnimatorControllerLoader = /*#__PURE__*/ function(Loader1) {
1143
1149
  state.clipStartTime = clipStartNormalizedTime;
1144
1150
  state.clipEndTime = clipEndNormalizedTime;
1145
1151
  var scriptsObject = JSON.parse(scripts);
1146
- scriptsObject == null ? void 0 : scriptsObject.forEach(function(script) {
1152
+ (_scriptsObject = scriptsObject) == null ? void 0 : _scriptsObject.forEach(function(script) {
1147
1153
  state.addStateMachineScript(engineCore.Loader.getClass(script));
1148
1154
  });
1149
1155
  if (clipData) {
@@ -1197,10 +1203,10 @@ AnimatorControllerLoader = __decorate([
1197
1203
  function isBase64(url) {
1198
1204
  return /^data:(.+?);base64,/.test(url);
1199
1205
  }
1200
- var BufferLoader = /*#__PURE__*/ function(Loader) {
1201
- _inherits(BufferLoader, Loader);
1206
+ var BufferLoader = /*#__PURE__*/ function(Loader1) {
1207
+ _inherits(BufferLoader, Loader1);
1202
1208
  function BufferLoader() {
1203
- return Loader.apply(this, arguments);
1209
+ return Loader1.apply(this, arguments);
1204
1210
  }
1205
1211
  var _proto = BufferLoader.prototype;
1206
1212
  _proto.load = function load(item) {
@@ -1227,10 +1233,10 @@ BufferLoader = __decorate([
1227
1233
  ], false)
1228
1234
  ], BufferLoader);
1229
1235
 
1230
- var EnvLoader = /*#__PURE__*/ function(Loader) {
1231
- _inherits(EnvLoader, Loader);
1236
+ var EnvLoader = /*#__PURE__*/ function(Loader1) {
1237
+ _inherits(EnvLoader, Loader1);
1232
1238
  function EnvLoader() {
1233
- return Loader.apply(this, arguments);
1239
+ return Loader1.apply(this, arguments);
1234
1240
  }
1235
1241
  var _proto = EnvLoader.prototype;
1236
1242
  _proto.load = function load(item, resourceManager) {
@@ -1239,10 +1245,10 @@ var EnvLoader = /*#__PURE__*/ function(Loader) {
1239
1245
  _this.request(item.url, {
1240
1246
  type: "arraybuffer"
1241
1247
  }).then(function(arraybuffer) {
1242
- var _ref;
1248
+ var _this;
1243
1249
  var shArray = new Float32Array(arraybuffer, 0, 27);
1244
1250
  var shByteLength = 27 * 4;
1245
- var size = (_ref = new Uint16Array(arraybuffer, shByteLength, 1)) == null ? void 0 : _ref[0];
1251
+ var size = (_this = new Uint16Array(arraybuffer, shByteLength, 1)) == null ? void 0 : _this[0];
1246
1252
  var engine = resourceManager.engine;
1247
1253
  var texture = new engineCore.TextureCube(engine, size);
1248
1254
  texture.filterMode = engineCore.TextureFilterMode.Trilinear;
@@ -1309,10 +1315,10 @@ function _async_to_generator(fn) {
1309
1315
  };
1310
1316
  }
1311
1317
 
1312
- var FontLoader = /*#__PURE__*/ function(Loader) {
1313
- _inherits(FontLoader, Loader);
1318
+ var FontLoader = /*#__PURE__*/ function(Loader1) {
1319
+ _inherits(FontLoader, Loader1);
1314
1320
  function FontLoader() {
1315
- return Loader.apply(this, arguments);
1321
+ return Loader1.apply(this, arguments);
1316
1322
  }
1317
1323
  var _proto = FontLoader.prototype;
1318
1324
  _proto.load = function load(item, resourceManager) {
@@ -1369,11 +1375,11 @@ FontLoader = __decorate([
1369
1375
 
1370
1376
  /**
1371
1377
  * Product after glTF parser, usually, `defaultSceneRoot` is only needed to use.
1372
- */ var GLTFResource = /*#__PURE__*/ function(ReferResource) {
1373
- _inherits(GLTFResource, ReferResource);
1378
+ */ var GLTFResource = /*#__PURE__*/ function(ReferResource1) {
1379
+ _inherits(GLTFResource, ReferResource1);
1374
1380
  function GLTFResource(engine, url) {
1375
1381
  var _this;
1376
- _this = ReferResource.call(this, engine) || this;
1382
+ _this = ReferResource1.call(this, engine) || this;
1377
1383
  _this.url = url;
1378
1384
  return _this;
1379
1385
  }
@@ -2576,10 +2582,10 @@ var AbstractTranscoder = /*#__PURE__*/ function() {
2576
2582
  };
2577
2583
  }
2578
2584
 
2579
- /** @internal */ var BinomialLLCTranscoder = /*#__PURE__*/ function(AbstractTranscoder) {
2580
- _inherits(BinomialLLCTranscoder, AbstractTranscoder);
2585
+ /** @internal */ var BinomialLLCTranscoder = /*#__PURE__*/ function(AbstractTranscoder1) {
2586
+ _inherits(BinomialLLCTranscoder, AbstractTranscoder1);
2581
2587
  function BinomialLLCTranscoder(workerLimitCount) {
2582
- return AbstractTranscoder.call(this, workerLimitCount);
2588
+ return AbstractTranscoder1.call(this, workerLimitCount);
2583
2589
  }
2584
2590
  var _proto = BinomialLLCTranscoder.prototype;
2585
2591
  _proto._initTranscodeWorkerPool = function _initTranscodeWorkerPool() {
@@ -2756,11 +2762,11 @@ function TranscodeWorkerCode() {
2756
2762
  };
2757
2763
  }
2758
2764
 
2759
- /** @internal */ var KhronosTranscoder = /*#__PURE__*/ function(AbstractTranscoder) {
2760
- _inherits(KhronosTranscoder, AbstractTranscoder);
2765
+ /** @internal */ var KhronosTranscoder = /*#__PURE__*/ function(AbstractTranscoder1) {
2766
+ _inherits(KhronosTranscoder, AbstractTranscoder1);
2761
2767
  function KhronosTranscoder(workerLimitCount, type) {
2762
2768
  var _this;
2763
- _this = AbstractTranscoder.call(this, workerLimitCount) || this;
2769
+ _this = AbstractTranscoder1.call(this, workerLimitCount) || this;
2764
2770
  _this.type = type;
2765
2771
  return _this;
2766
2772
  }
@@ -2828,10 +2834,10 @@ function TranscodeWorkerCode() {
2828
2834
  })();
2829
2835
 
2830
2836
  var _KTX2Loader;
2831
- exports.KTX2Loader = (_KTX2Loader = /*#__PURE__*/ function(Loader) {
2832
- _inherits(KTX2Loader1, Loader);
2837
+ exports.KTX2Loader = (_KTX2Loader = /*#__PURE__*/ function(Loader1) {
2838
+ _inherits(KTX2Loader1, Loader1);
2833
2839
  function KTX2Loader1() {
2834
- return Loader.apply(this, arguments);
2840
+ return Loader1.apply(this, arguments);
2835
2841
  }
2836
2842
  var _proto = KTX2Loader1.prototype;
2837
2843
  _proto.initialize = function initialize(engine, configuration) {
@@ -2887,8 +2893,9 @@ exports.KTX2Loader = (_KTX2Loader = /*#__PURE__*/ function(Loader) {
2887
2893
  this._isBinomialInit = false;
2888
2894
  };
2889
2895
  /** @internal */ KTX2Loader1._parseBuffer = function _parseBuffer(buffer, engine, params) {
2896
+ var _params;
2890
2897
  var ktx2Container = new KTX2Container(buffer);
2891
- var formatPriorities = params == null ? void 0 : params.priorityFormats;
2898
+ var formatPriorities = (_params = params) == null ? void 0 : _params.priorityFormats;
2892
2899
  var targetFormat = exports.KTX2Loader._decideTargetFormat(engine, ktx2Container, formatPriorities);
2893
2900
  var transcodeResultPromise;
2894
2901
  if (exports.KTX2Loader._isBinomialInit || !KhronosTranscoder.transcoderMap[targetFormat] || !ktx2Container.isUASTC) {
@@ -3026,11 +3033,11 @@ exports.KTX2Loader = __decorate([
3026
3033
 
3027
3034
  /**
3028
3035
  * @internal
3029
- */ var GLTFContentRestorer = /*#__PURE__*/ function(ContentRestorer) {
3030
- _inherits(GLTFContentRestorer, ContentRestorer);
3036
+ */ var GLTFContentRestorer = /*#__PURE__*/ function(ContentRestorer1) {
3037
+ _inherits(GLTFContentRestorer, ContentRestorer1);
3031
3038
  function GLTFContentRestorer() {
3032
3039
  var _this;
3033
- _this = ContentRestorer.apply(this, arguments) || this;
3040
+ _this = ContentRestorer1.apply(this, arguments) || this;
3034
3041
  _this.bufferRequests = [];
3035
3042
  _this.glbBufferSlices = [];
3036
3043
  _this.bufferTextures = [];
@@ -3198,24 +3205,6 @@ exports.KTX2Loader = __decorate([
3198
3205
  this.count = count;
3199
3206
  };
3200
3207
 
3201
- function _array_without_holes(arr) {
3202
- if (Array.isArray(arr)) return _array_like_to_array(arr);
3203
- }
3204
-
3205
- function _iterable_to_array(iter) {
3206
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
3207
- return Array.from(iter);
3208
- }
3209
- }
3210
-
3211
- function _non_iterable_spread() {
3212
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3213
- }
3214
-
3215
- function _to_consumable_array(arr) {
3216
- return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
3217
- }
3218
-
3219
3208
  /**
3220
3209
  * Base class of glTF extension parser.
3221
3210
  */ var GLTFExtensionParser = /*#__PURE__*/ function() {
@@ -3282,12 +3271,7 @@ exports.GLTFExtensionMode = void 0;
3282
3271
  var _GLTFParser;
3283
3272
  var extensionName = extensionArray[i];
3284
3273
  var extensionSchema = extensions[extensionName];
3285
- resource = (_GLTFParser = GLTFParser)._createAndParse.apply(_GLTFParser, [
3286
- extensionName,
3287
- context,
3288
- extensionSchema,
3289
- ownerSchema
3290
- ].concat(_to_consumable_array(extra)));
3274
+ resource = (_GLTFParser = GLTFParser)._createAndParse.apply(_GLTFParser, [].concat(extensionName, context, extensionSchema, ownerSchema, extra));
3291
3275
  if (resource) {
3292
3276
  return resource;
3293
3277
  }
@@ -3307,13 +3291,7 @@ exports.GLTFExtensionMode = void 0;
3307
3291
  for(var extensionName in extensions){
3308
3292
  var _GLTFParser;
3309
3293
  var extensionSchema = extensions[extensionName];
3310
- (_GLTFParser = GLTFParser)._additiveParse.apply(_GLTFParser, [
3311
- extensionName,
3312
- context,
3313
- parseResource,
3314
- extensionSchema,
3315
- ownerSchema
3316
- ].concat(_to_consumable_array(extra)));
3294
+ (_GLTFParser = GLTFParser)._additiveParse.apply(_GLTFParser, [].concat(extensionName, context, parseResource, extensionSchema, ownerSchema, extra));
3317
3295
  }
3318
3296
  };
3319
3297
  /**
@@ -3330,8 +3308,9 @@ exports.GLTFExtensionMode = void 0;
3330
3308
  * @param mode - GLTF extension mode
3331
3309
  * @returns GLTF extension parser
3332
3310
  */ GLTFParser.getExtensionParser = function getExtensionParser(extensionName, mode) {
3311
+ var _parsers;
3333
3312
  var parsers = GLTFParser._extensionParsers[extensionName];
3334
- var length = parsers == null ? void 0 : parsers.length;
3313
+ var length = (_parsers = parsers) == null ? void 0 : _parsers.length;
3335
3314
  if (length) {
3336
3315
  // only use the last parser.
3337
3316
  for(var i = length - 1; i >= 0; --i){
@@ -3357,11 +3336,7 @@ exports.GLTFExtensionMode = void 0;
3357
3336
  var parser = GLTFParser.getExtensionParser(extensionName, exports.GLTFExtensionMode.CreateAndParse);
3358
3337
  if (parser) {
3359
3338
  var _parser;
3360
- return (_parser = parser).createAndParse.apply(_parser, [
3361
- context,
3362
- extensionSchema,
3363
- ownerSchema
3364
- ].concat(_to_consumable_array(extra)));
3339
+ return (_parser = parser).createAndParse.apply(_parser, [].concat(context, extensionSchema, ownerSchema, extra));
3365
3340
  }
3366
3341
  };
3367
3342
  GLTFParser._additiveParse = function _additiveParse(extensionName, context, parseResource, extensionSchema, ownerSchema) {
@@ -3371,12 +3346,7 @@ exports.GLTFExtensionMode = void 0;
3371
3346
  var parser = GLTFParser.getExtensionParser(extensionName, exports.GLTFExtensionMode.AdditiveParse);
3372
3347
  if (parser) {
3373
3348
  var _parser;
3374
- (_parser = parser).additiveParse.apply(_parser, [
3375
- context,
3376
- parseResource,
3377
- extensionSchema,
3378
- ownerSchema
3379
- ].concat(_to_consumable_array(extra)));
3349
+ (_parser = parser).additiveParse.apply(_parser, [].concat(context, parseResource, extensionSchema, ownerSchema, extra));
3380
3350
  }
3381
3351
  };
3382
3352
  return GLTFParser;
@@ -3395,10 +3365,10 @@ exports.GLTFExtensionMode = void 0;
3395
3365
  };
3396
3366
  }
3397
3367
 
3398
- exports.GLTFSchemaParser = /*#__PURE__*/ function(GLTFParser) {
3399
- _inherits(GLTFSchemaParser, GLTFParser);
3368
+ exports.GLTFSchemaParser = /*#__PURE__*/ function(GLTFParser1) {
3369
+ _inherits(GLTFSchemaParser, GLTFParser1);
3400
3370
  function GLTFSchemaParser() {
3401
- return GLTFParser.apply(this, arguments);
3371
+ return GLTFParser1.apply(this, arguments);
3402
3372
  }
3403
3373
  var _proto = GLTFSchemaParser.prototype;
3404
3374
  _proto.parse = function parse(context) {
@@ -3614,10 +3584,10 @@ exports.GLTFAnimationParser = __decorate([
3614
3584
  registerGLTFParser(exports.GLTFParserType.Animation)
3615
3585
  ], exports.GLTFAnimationParser);
3616
3586
 
3617
- exports.GLTFBufferParser = /*#__PURE__*/ function(GLTFParser) {
3618
- _inherits(GLTFBufferParser, GLTFParser);
3587
+ exports.GLTFBufferParser = /*#__PURE__*/ function(GLTFParser1) {
3588
+ _inherits(GLTFBufferParser, GLTFParser1);
3619
3589
  function GLTFBufferParser() {
3620
- return GLTFParser.apply(this, arguments);
3590
+ return GLTFParser1.apply(this, arguments);
3621
3591
  }
3622
3592
  var _proto = GLTFBufferParser.prototype;
3623
3593
  _proto.parse = function parse(context, index) {
@@ -4239,10 +4209,10 @@ exports.GLTFSceneParser = __decorate([
4239
4209
  registerGLTFParser(exports.GLTFParserType.Scene)
4240
4210
  ], exports.GLTFSceneParser);
4241
4211
 
4242
- exports.GLTFSkinParser = /*#__PURE__*/ function(GLTFParser) {
4243
- _inherits(GLTFSkinParser, GLTFParser);
4212
+ exports.GLTFSkinParser = /*#__PURE__*/ function(GLTFParser1) {
4213
+ _inherits(GLTFSkinParser, GLTFParser1);
4244
4214
  function GLTFSkinParser() {
4245
- return GLTFParser.apply(this, arguments);
4215
+ return GLTFParser1.apply(this, arguments);
4246
4216
  }
4247
4217
  var _proto = GLTFSkinParser.prototype;
4248
4218
  _proto.parse = function parse(context, index) {
@@ -4338,6 +4308,7 @@ exports.GLTFTextureParser = (_GLTFTextureParser = /*#__PURE__*/ function(GLTFPar
4338
4308
  var useSampler = sampler !== undefined;
4339
4309
  var samplerInfo = sampler !== undefined && GLTFUtils.getSamplerInfo(glTF.samplers[sampler]);
4340
4310
  if (uri) {
4311
+ var _samplerInfo;
4341
4312
  // TODO: deleted in 2.0
4342
4313
  var extIndex = uri.lastIndexOf(".");
4343
4314
  var ext = uri.substring(extIndex + 1);
@@ -4346,7 +4317,7 @@ exports.GLTFTextureParser = (_GLTFTextureParser = /*#__PURE__*/ function(GLTFPar
4346
4317
  url: engineCore.Utils.resolveAbsoluteUrl(url, uri),
4347
4318
  type: type,
4348
4319
  params: {
4349
- mipmap: samplerInfo == null ? void 0 : samplerInfo.mipmap
4320
+ mipmap: (_samplerInfo = samplerInfo) == null ? void 0 : _samplerInfo.mipmap
4350
4321
  }
4351
4322
  }).then(function(texture) {
4352
4323
  var _texture;
@@ -4360,7 +4331,8 @@ exports.GLTFTextureParser = (_GLTFTextureParser = /*#__PURE__*/ function(GLTFPar
4360
4331
  var buffer = buffers[bufferView.buffer];
4361
4332
  var imageBuffer = new Uint8Array(buffer, bufferView.byteOffset, bufferView.byteLength);
4362
4333
  return GLTFUtils.loadImageBuffer(imageBuffer, mimeType).then(function(image) {
4363
- var texture = new engineCore.Texture2D(engine, image.width, image.height, undefined, samplerInfo == null ? void 0 : samplerInfo.mipmap);
4334
+ var _samplerInfo;
4335
+ var texture = new engineCore.Texture2D(engine, image.width, image.height, undefined, (_samplerInfo = samplerInfo) == null ? void 0 : _samplerInfo.mipmap);
4364
4336
  texture.setImageSource(image);
4365
4337
  texture.generateMipmaps();
4366
4338
  texture.name = textureName || imageName || "texture_" + index;
@@ -4424,17 +4396,18 @@ exports.GLTFValidator = __decorate([
4424
4396
  registerGLTFParser(exports.GLTFParserType.Validator)
4425
4397
  ], exports.GLTFValidator);
4426
4398
 
4427
- var GLTFLoader = /*#__PURE__*/ function(Loader) {
4428
- _inherits(GLTFLoader, Loader);
4399
+ var GLTFLoader = /*#__PURE__*/ function(Loader1) {
4400
+ _inherits(GLTFLoader, Loader1);
4429
4401
  function GLTFLoader() {
4430
- return Loader.apply(this, arguments);
4402
+ return Loader1.apply(this, arguments);
4431
4403
  }
4432
4404
  var _proto = GLTFLoader.prototype;
4433
4405
  _proto.load = function load(item, resourceManager) {
4406
+ var _params;
4434
4407
  var url = item.url;
4435
4408
  var params = item.params;
4436
4409
  var glTFResource = new GLTFResource(resourceManager.engine, url);
4437
- var context = new GLTFParserContext(glTFResource, resourceManager, !!(params == null ? void 0 : params.keepMeshData));
4410
+ var context = new GLTFParserContext(glTFResource, resourceManager, !!((_params = params) == null ? void 0 : _params.keepMeshData));
4438
4411
  return context.parse();
4439
4412
  };
4440
4413
  return GLTFLoader;
@@ -4448,10 +4421,10 @@ GLTFLoader = __decorate([
4448
4421
 
4449
4422
  var _HDRLoader;
4450
4423
  var PI = Math.PI;
4451
- var HDRLoader = (_HDRLoader = /*#__PURE__*/ function(Loader) {
4452
- _inherits(HDRLoader1, Loader);
4424
+ var HDRLoader = (_HDRLoader = /*#__PURE__*/ function(Loader1) {
4425
+ _inherits(HDRLoader1, Loader1);
4453
4426
  function HDRLoader1() {
4454
- return Loader.apply(this, arguments);
4427
+ return Loader1.apply(this, arguments);
4455
4428
  }
4456
4429
  var _proto = HDRLoader1.prototype;
4457
4430
  _proto.load = function load(item, resourceManager) {
@@ -4762,10 +4735,10 @@ HDRLoader = __decorate([
4762
4735
  ])
4763
4736
  ], HDRLoader);
4764
4737
 
4765
- var JSONLoader = /*#__PURE__*/ function(Loader) {
4766
- _inherits(JSONLoader, Loader);
4738
+ var JSONLoader = /*#__PURE__*/ function(Loader1) {
4739
+ _inherits(JSONLoader, Loader1);
4767
4740
  function JSONLoader() {
4768
- return Loader.apply(this, arguments);
4741
+ return Loader1.apply(this, arguments);
4769
4742
  }
4770
4743
  var _proto = JSONLoader.prototype;
4771
4744
  _proto.load = function load(item) {
@@ -4966,10 +4939,10 @@ function parseCubeKTX(dataArray) {
4966
4939
  };
4967
4940
  }
4968
4941
 
4969
- var KTXCubeLoader = /*#__PURE__*/ function(Loader) {
4970
- _inherits(KTXCubeLoader, Loader);
4942
+ var KTXCubeLoader = /*#__PURE__*/ function(Loader1) {
4943
+ _inherits(KTXCubeLoader, Loader1);
4971
4944
  function KTXCubeLoader() {
4972
- return Loader.apply(this, arguments);
4945
+ return Loader1.apply(this, arguments);
4973
4946
  }
4974
4947
  var _proto = KTXCubeLoader.prototype;
4975
4948
  _proto.load = function load(item, resourceManager) {
@@ -5003,10 +4976,10 @@ KTXCubeLoader = __decorate([
5003
4976
  engineCore.resourceLoader(engineCore.AssetType.KTXCube, [])
5004
4977
  ], KTXCubeLoader);
5005
4978
 
5006
- var KTXLoader = /*#__PURE__*/ function(Loader) {
5007
- _inherits(KTXLoader, Loader);
4979
+ var KTXLoader = /*#__PURE__*/ function(Loader1) {
4980
+ _inherits(KTXLoader, Loader1);
5008
4981
  function KTXLoader() {
5009
- return Loader.apply(this, arguments);
4982
+ return Loader1.apply(this, arguments);
5010
4983
  }
5011
4984
  var _proto = KTXLoader.prototype;
5012
4985
  _proto.load = function load(item, resourceManager) {
@@ -5046,10 +5019,10 @@ function parseProperty(object, key, value) {
5046
5019
  object[key] = value;
5047
5020
  }
5048
5021
  }
5049
- var MaterialLoader = /*#__PURE__*/ function(Loader) {
5050
- _inherits(MaterialLoader, Loader);
5022
+ var MaterialLoader = /*#__PURE__*/ function(Loader1) {
5023
+ _inherits(MaterialLoader, Loader1);
5051
5024
  function MaterialLoader() {
5052
- return Loader.apply(this, arguments);
5025
+ return Loader1.apply(this, arguments);
5053
5026
  }
5054
5027
  var _proto = MaterialLoader.prototype;
5055
5028
  _proto.load = function load(item, resourceManager) {
@@ -5114,10 +5087,10 @@ MaterialLoader = __decorate([
5114
5087
  ])
5115
5088
  ], MaterialLoader);
5116
5089
 
5117
- var MeshLoader = /*#__PURE__*/ function(Loader) {
5118
- _inherits(MeshLoader, Loader);
5090
+ var MeshLoader = /*#__PURE__*/ function(Loader1) {
5091
+ _inherits(MeshLoader, Loader1);
5119
5092
  function MeshLoader() {
5120
- return Loader.apply(this, arguments);
5093
+ return Loader1.apply(this, arguments);
5121
5094
  }
5122
5095
  var _proto = MeshLoader.prototype;
5123
5096
  _proto.load = function load(item, resourceManager) {
@@ -5140,10 +5113,10 @@ MeshLoader = __decorate([
5140
5113
  ])
5141
5114
  ], MeshLoader);
5142
5115
 
5143
- var SourceFontLoader = /*#__PURE__*/ function(Loader) {
5144
- _inherits(SourceFontLoader, Loader);
5116
+ var SourceFontLoader = /*#__PURE__*/ function(Loader1) {
5117
+ _inherits(SourceFontLoader, Loader1);
5145
5118
  function SourceFontLoader() {
5146
- return Loader.apply(this, arguments);
5119
+ return Loader1.apply(this, arguments);
5147
5120
  }
5148
5121
  var _proto = SourceFontLoader.prototype;
5149
5122
  _proto.load = function load(item, resourceManager) {
@@ -5189,11 +5162,11 @@ SourceFontLoader = __decorate([
5189
5162
  ], false)
5190
5163
  ], SourceFontLoader);
5191
5164
 
5192
- var SpriteAtlasLoader = /*#__PURE__*/ function(Loader) {
5193
- _inherits(SpriteAtlasLoader, Loader);
5165
+ var SpriteAtlasLoader = /*#__PURE__*/ function(Loader1) {
5166
+ _inherits(SpriteAtlasLoader, Loader1);
5194
5167
  function SpriteAtlasLoader() {
5195
5168
  var _this;
5196
- _this = Loader.apply(this, arguments) || this;
5169
+ _this = Loader1.apply(this, arguments) || this;
5197
5170
  _this._tempRect = new engineMath.Rect();
5198
5171
  _this._tempVec2 = new engineMath.Vector2();
5199
5172
  _this._tempVec4 = new engineMath.Vector4();
@@ -5281,10 +5254,10 @@ SpriteAtlasLoader = __decorate([
5281
5254
  ], false)
5282
5255
  ], SpriteAtlasLoader);
5283
5256
 
5284
- var SpriteLoader = /*#__PURE__*/ function(Loader) {
5285
- _inherits(SpriteLoader, Loader);
5257
+ var SpriteLoader = /*#__PURE__*/ function(Loader1) {
5258
+ _inherits(SpriteLoader, Loader1);
5286
5259
  function SpriteLoader() {
5287
- return Loader.apply(this, arguments);
5260
+ return Loader1.apply(this, arguments);
5288
5261
  }
5289
5262
  var _proto = SpriteLoader.prototype;
5290
5263
  _proto.load = function load(item, resourceManager) {
@@ -5319,11 +5292,11 @@ SpriteLoader = __decorate([
5319
5292
 
5320
5293
  /**
5321
5294
  * @internal
5322
- */ var Texture2DContentRestorer = /*#__PURE__*/ function(ContentRestorer) {
5323
- _inherits(Texture2DContentRestorer, ContentRestorer);
5295
+ */ var Texture2DContentRestorer = /*#__PURE__*/ function(ContentRestorer1) {
5296
+ _inherits(Texture2DContentRestorer, ContentRestorer1);
5324
5297
  function Texture2DContentRestorer(resource, url, requestConfig) {
5325
5298
  var _this;
5326
- _this = ContentRestorer.call(this, resource) || this;
5299
+ _this = ContentRestorer1.call(this, resource) || this;
5327
5300
  _this.url = url;
5328
5301
  _this.requestConfig = requestConfig;
5329
5302
  return _this;
@@ -5341,10 +5314,10 @@ SpriteLoader = __decorate([
5341
5314
  return Texture2DContentRestorer;
5342
5315
  }(engineCore.ContentRestorer);
5343
5316
 
5344
- var Texture2DLoader = /*#__PURE__*/ function(Loader) {
5345
- _inherits(Texture2DLoader, Loader);
5317
+ var Texture2DLoader = /*#__PURE__*/ function(Loader1) {
5318
+ _inherits(Texture2DLoader, Loader1);
5346
5319
  function Texture2DLoader() {
5347
- return Loader.apply(this, arguments);
5320
+ return Loader1.apply(this, arguments);
5348
5321
  }
5349
5322
  var _proto = Texture2DLoader.prototype;
5350
5323
  _proto.load = function load(item, resourceManager) {
@@ -5355,8 +5328,9 @@ var Texture2DLoader = /*#__PURE__*/ function(Loader) {
5355
5328
  type: "image"
5356
5329
  });
5357
5330
  _this.request(url, requestConfig).then(function(image) {
5331
+ var _params, _params1;
5358
5332
  var params = item.params;
5359
- var texture = new engineCore.Texture2D(resourceManager.engine, image.width, image.height, params == null ? void 0 : params.format, params == null ? void 0 : params.mipmap);
5333
+ var texture = new engineCore.Texture2D(resourceManager.engine, image.width, image.height, (_params = params) == null ? void 0 : _params.format, (_params1 = params) == null ? void 0 : _params1.mipmap);
5360
5334
  texture.setImageSource(image);
5361
5335
  texture.generateMipmaps();
5362
5336
  if (url.indexOf("data:") !== 0) {
@@ -5383,11 +5357,11 @@ Texture2DLoader = __decorate([
5383
5357
 
5384
5358
  /**
5385
5359
  * @internal
5386
- */ var TextureCubeContentRestorer = /*#__PURE__*/ function(ContentRestorer) {
5387
- _inherits(TextureCubeContentRestorer, ContentRestorer);
5360
+ */ var TextureCubeContentRestorer = /*#__PURE__*/ function(ContentRestorer1) {
5361
+ _inherits(TextureCubeContentRestorer, ContentRestorer1);
5388
5362
  function TextureCubeContentRestorer(resource, urls, requestConfig) {
5389
5363
  var _this;
5390
- _this = ContentRestorer.call(this, resource) || this;
5364
+ _this = ContentRestorer1.call(this, resource) || this;
5391
5365
  _this.urls = urls;
5392
5366
  _this.requestConfig = requestConfig;
5393
5367
  return _this;
@@ -5413,10 +5387,10 @@ Texture2DLoader = __decorate([
5413
5387
  return TextureCubeContentRestorer;
5414
5388
  }(engineCore.ContentRestorer);
5415
5389
 
5416
- var TextureCubeLoader = /*#__PURE__*/ function(Loader) {
5417
- _inherits(TextureCubeLoader, Loader);
5390
+ var TextureCubeLoader = /*#__PURE__*/ function(Loader1) {
5391
+ _inherits(TextureCubeLoader, Loader1);
5418
5392
  function TextureCubeLoader() {
5419
- return Loader.apply(this, arguments);
5393
+ return Loader1.apply(this, arguments);
5420
5394
  }
5421
5395
  var _proto = TextureCubeLoader.prototype;
5422
5396
  _proto.load = function load(item, resourceManager) {
@@ -5454,10 +5428,10 @@ TextureCubeLoader = __decorate([
5454
5428
  ])
5455
5429
  ], TextureCubeLoader);
5456
5430
 
5457
- var SceneLoader = /*#__PURE__*/ function(Loader) {
5458
- _inherits(SceneLoader, Loader);
5431
+ var SceneLoader = /*#__PURE__*/ function(Loader1) {
5432
+ _inherits(SceneLoader, Loader1);
5459
5433
  function SceneLoader() {
5460
- return Loader.apply(this, arguments);
5434
+ return Loader1.apply(this, arguments);
5461
5435
  }
5462
5436
  var _proto = SceneLoader.prototype;
5463
5437
  _proto.load = function load(item, resourceManager) {
@@ -5551,7 +5525,7 @@ var SceneLoader = /*#__PURE__*/ function(Loader) {
5551
5525
  }(engineCore.Loader);
5552
5526
  SceneLoader = __decorate([
5553
5527
  engineCore.resourceLoader(engineCore.AssetType.Scene, [
5554
- "prefab"
5528
+ "scene"
5555
5529
  ], true)
5556
5530
  ], SceneLoader);
5557
5531
  ReflectionParser.registerCustomParseComponent("TextRenderer", /*#__PURE__*/ _async_to_generator(function(instance, item, engine) {
@@ -5570,10 +5544,10 @@ ReflectionParser.registerCustomParseComponent("TextRenderer", /*#__PURE__*/ _asy
5570
5544
  }));
5571
5545
 
5572
5546
  var _KHR_draco_mesh_compression;
5573
- var KHR_draco_mesh_compression = (_KHR_draco_mesh_compression = /*#__PURE__*/ function(GLTFExtensionParser) {
5574
- _inherits(KHR_draco_mesh_compression1, GLTFExtensionParser);
5547
+ var KHR_draco_mesh_compression = (_KHR_draco_mesh_compression = /*#__PURE__*/ function(GLTFExtensionParser1) {
5548
+ _inherits(KHR_draco_mesh_compression1, GLTFExtensionParser1);
5575
5549
  function KHR_draco_mesh_compression1() {
5576
- return GLTFExtensionParser.apply(this, arguments);
5550
+ return GLTFExtensionParser1.apply(this, arguments);
5577
5551
  }
5578
5552
  var _proto = KHR_draco_mesh_compression1.prototype;
5579
5553
  _proto.createAndParse = function createAndParse(context, schema, glTFPrimitive, glTFMesh) {
@@ -5733,10 +5707,10 @@ KHR_draco_mesh_compression = __decorate([
5733
5707
  registerGLTFExtension("KHR_draco_mesh_compression", exports.GLTFExtensionMode.CreateAndParse)
5734
5708
  ], KHR_draco_mesh_compression);
5735
5709
 
5736
- var KHR_lights_punctual = /*#__PURE__*/ function(GLTFExtensionParser) {
5737
- _inherits(KHR_lights_punctual, GLTFExtensionParser);
5710
+ var KHR_lights_punctual = /*#__PURE__*/ function(GLTFExtensionParser1) {
5711
+ _inherits(KHR_lights_punctual, GLTFExtensionParser1);
5738
5712
  function KHR_lights_punctual() {
5739
- return GLTFExtensionParser.apply(this, arguments);
5713
+ return GLTFExtensionParser1.apply(this, arguments);
5740
5714
  }
5741
5715
  var _proto = KHR_lights_punctual.prototype;
5742
5716
  _proto.additiveParse = function additiveParse(context, entity, extensionSchema) {
@@ -5774,10 +5748,10 @@ KHR_lights_punctual = __decorate([
5774
5748
  registerGLTFExtension("KHR_lights_punctual", exports.GLTFExtensionMode.AdditiveParse)
5775
5749
  ], KHR_lights_punctual);
5776
5750
 
5777
- var KHR_materials_clearcoat = /*#__PURE__*/ function(GLTFExtensionParser) {
5778
- _inherits(KHR_materials_clearcoat, GLTFExtensionParser);
5751
+ var KHR_materials_clearcoat = /*#__PURE__*/ function(GLTFExtensionParser1) {
5752
+ _inherits(KHR_materials_clearcoat, GLTFExtensionParser1);
5779
5753
  function KHR_materials_clearcoat() {
5780
- return GLTFExtensionParser.apply(this, arguments);
5754
+ return GLTFExtensionParser1.apply(this, arguments);
5781
5755
  }
5782
5756
  var _proto = KHR_materials_clearcoat.prototype;
5783
5757
  _proto.additiveParse = function additiveParse(context, material, schema) {
@@ -5809,10 +5783,10 @@ KHR_materials_clearcoat = __decorate([
5809
5783
  registerGLTFExtension("KHR_materials_clearcoat", exports.GLTFExtensionMode.AdditiveParse)
5810
5784
  ], KHR_materials_clearcoat);
5811
5785
 
5812
- var KHR_materials_ior = /*#__PURE__*/ function(GLTFExtensionParser) {
5813
- _inherits(KHR_materials_ior, GLTFExtensionParser);
5786
+ var KHR_materials_ior = /*#__PURE__*/ function(GLTFExtensionParser1) {
5787
+ _inherits(KHR_materials_ior, GLTFExtensionParser1);
5814
5788
  function KHR_materials_ior() {
5815
- return GLTFExtensionParser.apply(this, arguments);
5789
+ return GLTFExtensionParser1.apply(this, arguments);
5816
5790
  }
5817
5791
  var _proto = KHR_materials_ior.prototype;
5818
5792
  _proto.additiveParse = function additiveParse(context, material, schema) {
@@ -5825,10 +5799,10 @@ KHR_materials_ior = __decorate([
5825
5799
  registerGLTFExtension("KHR_materials_ior", exports.GLTFExtensionMode.AdditiveParse)
5826
5800
  ], KHR_materials_ior);
5827
5801
 
5828
- var KHR_materials_pbrSpecularGlossiness = /*#__PURE__*/ function(GLTFExtensionParser) {
5829
- _inherits(KHR_materials_pbrSpecularGlossiness, GLTFExtensionParser);
5802
+ var KHR_materials_pbrSpecularGlossiness = /*#__PURE__*/ function(GLTFExtensionParser1) {
5803
+ _inherits(KHR_materials_pbrSpecularGlossiness, GLTFExtensionParser1);
5830
5804
  function KHR_materials_pbrSpecularGlossiness() {
5831
- return GLTFExtensionParser.apply(this, arguments);
5805
+ return GLTFExtensionParser1.apply(this, arguments);
5832
5806
  }
5833
5807
  var _proto = KHR_materials_pbrSpecularGlossiness.prototype;
5834
5808
  _proto.createAndParse = function createAndParse(context, schema, ownerSchema) {
@@ -5866,10 +5840,10 @@ KHR_materials_pbrSpecularGlossiness = __decorate([
5866
5840
  registerGLTFExtension("KHR_materials_pbrSpecularGlossiness", exports.GLTFExtensionMode.CreateAndParse)
5867
5841
  ], KHR_materials_pbrSpecularGlossiness);
5868
5842
 
5869
- var KHR_materials_unlit = /*#__PURE__*/ function(GLTFExtensionParser) {
5870
- _inherits(KHR_materials_unlit, GLTFExtensionParser);
5843
+ var KHR_materials_unlit = /*#__PURE__*/ function(GLTFExtensionParser1) {
5844
+ _inherits(KHR_materials_unlit, GLTFExtensionParser1);
5871
5845
  function KHR_materials_unlit() {
5872
- return GLTFExtensionParser.apply(this, arguments);
5846
+ return GLTFExtensionParser1.apply(this, arguments);
5873
5847
  }
5874
5848
  var _proto = KHR_materials_unlit.prototype;
5875
5849
  _proto.createAndParse = function createAndParse(context, _, ownerSchema) {
@@ -5885,10 +5859,10 @@ KHR_materials_unlit = __decorate([
5885
5859
  registerGLTFExtension("KHR_materials_unlit", exports.GLTFExtensionMode.CreateAndParse)
5886
5860
  ], KHR_materials_unlit);
5887
5861
 
5888
- var KHR_materials_variants = /*#__PURE__*/ function(GLTFExtensionParser) {
5889
- _inherits(KHR_materials_variants, GLTFExtensionParser);
5862
+ var KHR_materials_variants = /*#__PURE__*/ function(GLTFExtensionParser1) {
5863
+ _inherits(KHR_materials_variants, GLTFExtensionParser1);
5890
5864
  function KHR_materials_variants() {
5891
- return GLTFExtensionParser.apply(this, arguments);
5865
+ return GLTFExtensionParser1.apply(this, arguments);
5892
5866
  }
5893
5867
  var _proto = KHR_materials_variants.prototype;
5894
5868
  _proto.additiveParse = function additiveParse(context, renderer, schema) {
@@ -5918,10 +5892,10 @@ KHR_materials_variants = __decorate([
5918
5892
  registerGLTFExtension("KHR_materials_variants", exports.GLTFExtensionMode.AdditiveParse)
5919
5893
  ], KHR_materials_variants);
5920
5894
 
5921
- var KHR_mesh_quantization = /*#__PURE__*/ function(GLTFExtensionParser) {
5922
- _inherits(KHR_mesh_quantization, GLTFExtensionParser);
5895
+ var KHR_mesh_quantization = /*#__PURE__*/ function(GLTFExtensionParser1) {
5896
+ _inherits(KHR_mesh_quantization, GLTFExtensionParser1);
5923
5897
  function KHR_mesh_quantization() {
5924
- return GLTFExtensionParser.apply(this, arguments);
5898
+ return GLTFExtensionParser1.apply(this, arguments);
5925
5899
  }
5926
5900
  return KHR_mesh_quantization;
5927
5901
  }(GLTFExtensionParser);
@@ -5929,10 +5903,10 @@ KHR_mesh_quantization = __decorate([
5929
5903
  registerGLTFExtension("KHR_mesh_quantization", exports.GLTFExtensionMode.AdditiveParse)
5930
5904
  ], KHR_mesh_quantization);
5931
5905
 
5932
- var KHR_texture_basisu = /*#__PURE__*/ function(GLTFExtensionParser) {
5933
- _inherits(KHR_texture_basisu, GLTFExtensionParser);
5906
+ var KHR_texture_basisu = /*#__PURE__*/ function(GLTFExtensionParser1) {
5907
+ _inherits(KHR_texture_basisu, GLTFExtensionParser1);
5934
5908
  function KHR_texture_basisu() {
5935
- return GLTFExtensionParser.apply(this, arguments);
5909
+ return GLTFExtensionParser1.apply(this, arguments);
5936
5910
  }
5937
5911
  var _proto = KHR_texture_basisu.prototype;
5938
5912
  _proto.createAndParse = function createAndParse(context, schema, textureInfo) {
@@ -5992,10 +5966,10 @@ KHR_texture_basisu = __decorate([
5992
5966
  registerGLTFExtension("KHR_texture_basisu", exports.GLTFExtensionMode.CreateAndParse)
5993
5967
  ], KHR_texture_basisu);
5994
5968
 
5995
- var KHR_texture_transform = /*#__PURE__*/ function(GLTFExtensionParser) {
5996
- _inherits(KHR_texture_transform, GLTFExtensionParser);
5969
+ var KHR_texture_transform = /*#__PURE__*/ function(GLTFExtensionParser1) {
5970
+ _inherits(KHR_texture_transform, GLTFExtensionParser1);
5997
5971
  function KHR_texture_transform() {
5998
- return GLTFExtensionParser.apply(this, arguments);
5972
+ return GLTFExtensionParser1.apply(this, arguments);
5999
5973
  }
6000
5974
  var _proto = KHR_texture_transform.prototype;
6001
5975
  _proto.additiveParse = function additiveParse(context, material, schema) {
@@ -6021,10 +5995,10 @@ KHR_texture_transform = __decorate([
6021
5995
  registerGLTFExtension("KHR_texture_transform", exports.GLTFExtensionMode.AdditiveParse)
6022
5996
  ], KHR_texture_transform);
6023
5997
 
6024
- var GALACEAN_materials_remap = /*#__PURE__*/ function(GLTFExtensionParser) {
6025
- _inherits(GALACEAN_materials_remap, GLTFExtensionParser);
5998
+ var GALACEAN_materials_remap = /*#__PURE__*/ function(GLTFExtensionParser1) {
5999
+ _inherits(GALACEAN_materials_remap, GLTFExtensionParser1);
6026
6000
  function GALACEAN_materials_remap() {
6027
- return GLTFExtensionParser.apply(this, arguments);
6001
+ return GLTFExtensionParser1.apply(this, arguments);
6028
6002
  }
6029
6003
  var _proto = GALACEAN_materials_remap.prototype;
6030
6004
  _proto.createAndParse = function createAndParse(context, schema) {
@@ -6038,10 +6012,10 @@ GALACEAN_materials_remap = __decorate([
6038
6012
  registerGLTFExtension("GALACEAN_materials_remap", exports.GLTFExtensionMode.CreateAndParse)
6039
6013
  ], GALACEAN_materials_remap);
6040
6014
 
6041
- var GALACEAN_animation_event = /*#__PURE__*/ function(GLTFExtensionParser) {
6042
- _inherits(GALACEAN_animation_event, GLTFExtensionParser);
6015
+ var GALACEAN_animation_event = /*#__PURE__*/ function(GLTFExtensionParser1) {
6016
+ _inherits(GALACEAN_animation_event, GLTFExtensionParser1);
6043
6017
  function GALACEAN_animation_event() {
6044
- return GLTFExtensionParser.apply(this, arguments);
6018
+ return GLTFExtensionParser1.apply(this, arguments);
6045
6019
  }
6046
6020
  var _proto = GALACEAN_animation_event.prototype;
6047
6021
  _proto.additiveParse = function additiveParse(context, animationClip, schema) {