@galacean/engine-loader 1.1.0-alpha.3 → 1.1.0-beta.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.
@@ -41,56 +41,61 @@ function _inherits(subClass, superClass) {
41
41
  if (superClass) _set_prototype_of(subClass, superClass);
42
42
  }
43
43
 
44
- /******************************************************************************
45
- Copyright (c) Microsoft Corporation.
46
-
47
- Permission to use, copy, modify, and/or distribute this software for any
48
- purpose with or without fee is hereby granted.
49
-
50
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
51
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
52
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
53
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
54
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
55
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
56
- PERFORMANCE OF THIS SOFTWARE.
57
- ***************************************************************************** */
58
-
59
- function __decorate(decorators, target, key, desc) {
60
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
61
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
62
- 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;
63
- return c > 3 && r && Object.defineProperty(target, key, r), r;
64
- }
65
-
66
- function __generator(thisArg, body) {
67
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
68
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
69
- function verb(n) { return function (v) { return step([n, v]); }; }
70
- function step(op) {
71
- if (f) throw new TypeError("Generator is already executing.");
72
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
73
- 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;
74
- if (y = 0, t) op = [op[0] & 2, t.value];
75
- switch (op[0]) {
76
- case 0: case 1: t = op; break;
77
- case 4: _.label++; return { value: op[1], done: false };
78
- case 5: _.label++; y = op[1]; op = [0]; continue;
79
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
80
- default:
81
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
82
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
83
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
84
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
85
- if (t[2]) _.ops.pop();
86
- _.trys.pop(); continue;
87
- }
88
- op = body.call(thisArg, _);
89
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
90
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
91
- }
44
+ /******************************************************************************
45
+ Copyright (c) Microsoft Corporation.
46
+
47
+ Permission to use, copy, modify, and/or distribute this software for any
48
+ purpose with or without fee is hereby granted.
49
+
50
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
51
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
52
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
53
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
54
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
55
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
56
+ PERFORMANCE OF THIS SOFTWARE.
57
+ ***************************************************************************** */
58
+
59
+ function __decorate(decorators, target, key, desc) {
60
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
61
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
62
+ 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;
63
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
92
64
  }
93
65
 
66
+ function __generator(thisArg, body) {
67
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
68
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
69
+ function verb(n) { return function (v) { return step([n, v]); }; }
70
+ function step(op) {
71
+ if (f) throw new TypeError("Generator is already executing.");
72
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
73
+ 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;
74
+ if (y = 0, t) op = [op[0] & 2, t.value];
75
+ switch (op[0]) {
76
+ case 0: case 1: t = op; break;
77
+ case 4: _.label++; return { value: op[1], done: false };
78
+ case 5: _.label++; y = op[1]; op = [0]; continue;
79
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
80
+ default:
81
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
82
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
83
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
84
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
85
+ if (t[2]) _.ops.pop();
86
+ _.trys.pop(); continue;
87
+ }
88
+ op = body.call(thisArg, _);
89
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
90
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
91
+ }
92
+ }
93
+
94
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
95
+ var e = new Error(message);
96
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
97
+ };
98
+
94
99
  function _defineProperties(target, props) {
95
100
  for (var i = 0; i < props.length; i++) {
96
101
  var descriptor = props[i];
@@ -623,7 +628,7 @@ var ReflectionParser = /*#__PURE__*/ function() {
623
628
  return _this.parseBasicType(param, engine, resourceManager);
624
629
  })).then(function(result) {
625
630
  var _instance;
626
- return (_instance = instance)[methodName].apply(_instance, result);
631
+ return (_instance = instance)[methodName].apply(_instance, [].concat(result));
627
632
  });
628
633
  };
629
634
  ReflectionParser._isClass = function _isClass(value) {
@@ -681,6 +686,8 @@ exports.InterpolableValueType = void 0;
681
686
  InterpolableValueType[InterpolableValueType["Color"] = 6] = "Color";
682
687
  InterpolableValueType[InterpolableValueType["Array"] = 7] = "Array";
683
688
  InterpolableValueType[InterpolableValueType["Boolean"] = 8] = "Boolean";
689
+ InterpolableValueType[InterpolableValueType["Rect"] = 9] = "Rect";
690
+ InterpolableValueType[InterpolableValueType["ReferResource"] = 10] = "ReferResource";
684
691
  })(exports.InterpolableValueType || (exports.InterpolableValueType = {}));
685
692
  exports.AnimationClipDecoder = /*#__PURE__*/ function() {
686
693
  function AnimationClipDecoder() {}
@@ -709,7 +716,7 @@ exports.AnimationClipDecoder = /*#__PURE__*/ function() {
709
716
  switch(curveType){
710
717
  case "AnimationFloatCurve":
711
718
  {
712
- curve = curve || new miniprogram.AnimationFloatCurve();
719
+ curve = new miniprogram.AnimationFloatCurve();
713
720
  curve.interpolation = interpolation;
714
721
  for(var j = 0; j < keysLen; ++j){
715
722
  var keyframe = new miniprogram.Keyframe();
@@ -723,7 +730,7 @@ exports.AnimationClipDecoder = /*#__PURE__*/ function() {
723
730
  }
724
731
  case "AnimationArrayCurve":
725
732
  {
726
- curve = curve || new miniprogram.AnimationArrayCurve();
733
+ curve = new miniprogram.AnimationArrayCurve();
727
734
  curve.interpolation = interpolation;
728
735
  for(var j1 = 0; j1 < keysLen; ++j1){
729
736
  var keyframe1 = new miniprogram.Keyframe();
@@ -738,7 +745,7 @@ exports.AnimationClipDecoder = /*#__PURE__*/ function() {
738
745
  }
739
746
  case "AnimationFloatArrayCurve":
740
747
  {
741
- curve = curve || new miniprogram.AnimationFloatArrayCurve();
748
+ curve = new miniprogram.AnimationFloatArrayCurve();
742
749
  curve.interpolation = interpolation;
743
750
  for(var j2 = 0; j2 < keysLen; ++j2){
744
751
  var keyframe2 = new miniprogram.Keyframe();
@@ -753,7 +760,7 @@ exports.AnimationClipDecoder = /*#__PURE__*/ function() {
753
760
  }
754
761
  case "AnimationVector2Curve":
755
762
  {
756
- curve = curve || new miniprogram.AnimationVector2Curve();
763
+ curve = new miniprogram.AnimationVector2Curve();
757
764
  curve.interpolation = interpolation;
758
765
  for(var j3 = 0; j3 < keysLen; ++j3){
759
766
  var keyframe3 = new miniprogram.Keyframe();
@@ -767,7 +774,7 @@ exports.AnimationClipDecoder = /*#__PURE__*/ function() {
767
774
  }
768
775
  case "AnimationVector3Curve":
769
776
  {
770
- curve = curve || new miniprogram.AnimationVector3Curve();
777
+ curve = new miniprogram.AnimationVector3Curve();
771
778
  curve.interpolation = interpolation;
772
779
  for(var j4 = 0; j4 < keysLen; ++j4){
773
780
  var keyframe4 = new miniprogram.Keyframe();
@@ -781,7 +788,7 @@ exports.AnimationClipDecoder = /*#__PURE__*/ function() {
781
788
  }
782
789
  case "AnimationVector4Curve":
783
790
  {
784
- curve = curve || new miniprogram.AnimationVector4Curve();
791
+ curve = new miniprogram.AnimationVector4Curve();
785
792
  curve.interpolation = interpolation;
786
793
  var keyframe5 = new miniprogram.Keyframe();
787
794
  keyframe5.time = bufferReader.nextFloat32();
@@ -793,7 +800,7 @@ exports.AnimationClipDecoder = /*#__PURE__*/ function() {
793
800
  }
794
801
  case "AnimationColorCurve":
795
802
  {
796
- curve = curve || new miniprogram.AnimationColorCurve();
803
+ curve = new miniprogram.AnimationColorCurve();
797
804
  curve.interpolation = interpolation;
798
805
  for(var j5 = 0; j5 < keysLen; ++j5){
799
806
  var keyframe6 = new miniprogram.Keyframe();
@@ -807,7 +814,7 @@ exports.AnimationClipDecoder = /*#__PURE__*/ function() {
807
814
  }
808
815
  case "AnimationQuaternionCurve":
809
816
  {
810
- curve = curve || new miniprogram.AnimationQuaternionCurve();
817
+ curve = new miniprogram.AnimationQuaternionCurve();
811
818
  curve.interpolation = interpolation;
812
819
  for(var j6 = 0; j6 < keysLen; ++j6){
813
820
  var keyframe7 = new miniprogram.Keyframe();
@@ -819,6 +826,18 @@ exports.AnimationClipDecoder = /*#__PURE__*/ function() {
819
826
  }
820
827
  break;
821
828
  }
829
+ case "AnimationRefCurve":
830
+ {
831
+ curve = new miniprogram.AnimationRefCurve();
832
+ curve.interpolation = interpolation;
833
+ for(var j7 = 0; j7 < keysLen; ++j7){
834
+ var keyframe8 = new miniprogram.Keyframe();
835
+ keyframe8.time = bufferReader.nextFloat32();
836
+ keyframe8.value = JSON.parse(bufferReader.nextStr());
837
+ curve.addKey(keyframe8);
838
+ }
839
+ break;
840
+ }
822
841
  }
823
842
  clip.addCurveBinding(relativePath, componentType, property, curve);
824
843
  }
@@ -988,10 +1007,10 @@ var SceneParserContext = /*#__PURE__*/ function() {
988
1007
  return SceneParser;
989
1008
  }();
990
1009
 
991
- exports.MeshLoader = /*#__PURE__*/ function(Loader) {
992
- _inherits(MeshLoader, Loader);
1010
+ exports.MeshLoader = /*#__PURE__*/ function(Loader1) {
1011
+ _inherits(MeshLoader, Loader1);
993
1012
  function MeshLoader() {
994
- return Loader.apply(this, arguments);
1013
+ return Loader1.apply(this, arguments);
995
1014
  }
996
1015
  var _proto = MeshLoader.prototype;
997
1016
  _proto.load = function load(item, resourceManager) {
@@ -1014,10 +1033,10 @@ exports.MeshLoader = __decorate([
1014
1033
  ], true)
1015
1034
  ], exports.MeshLoader);
1016
1035
 
1017
- exports.EditorTextureLoader = /*#__PURE__*/ function(Loader) {
1018
- _inherits(EditorTextureLoader, Loader);
1036
+ exports.EditorTextureLoader = /*#__PURE__*/ function(Loader1) {
1037
+ _inherits(EditorTextureLoader, Loader1);
1019
1038
  function EditorTextureLoader() {
1020
- return Loader.apply(this, arguments);
1039
+ return Loader1.apply(this, arguments);
1021
1040
  }
1022
1041
  var _proto = EditorTextureLoader.prototype;
1023
1042
  _proto.load = function load(item, resourceManager) {
@@ -1054,10 +1073,10 @@ exports.EditorTextureLoader = __decorate([
1054
1073
  });
1055
1074
  }
1056
1075
 
1057
- var AnimationClipLoader = /*#__PURE__*/ function(Loader) {
1058
- _inherits(AnimationClipLoader, Loader);
1076
+ var AnimationClipLoader = /*#__PURE__*/ function(Loader1) {
1077
+ _inherits(AnimationClipLoader, Loader1);
1059
1078
  function AnimationClipLoader() {
1060
- return Loader.apply(this, arguments);
1079
+ return Loader1.apply(this, arguments);
1061
1080
  }
1062
1081
  var _proto = AnimationClipLoader.prototype;
1063
1082
  _proto.load = function load(item, resourceManager) {
@@ -1066,7 +1085,27 @@ var AnimationClipLoader = /*#__PURE__*/ function(Loader) {
1066
1085
  _this.request(item.url, _extends({}, item, {
1067
1086
  type: "arraybuffer"
1068
1087
  })).then(function(data) {
1069
- return decode(data, resourceManager.engine).then(resolve);
1088
+ return decode(data, resourceManager.engine).then(function(clip) {
1089
+ var curveBindingPromises = clip.curveBindings.map(function(curveBinding) {
1090
+ var curve = curveBinding.curve;
1091
+ var promises = curve.keys.map(function(key) {
1092
+ var value = key.value;
1093
+ if (typeof value === "object" && value.refId) {
1094
+ return new Promise(function(resolve) {
1095
+ resourceManager// @ts-ignore
1096
+ .getResourceByRef(value).then(function(asset) {
1097
+ key.value = asset;
1098
+ resolve(key);
1099
+ }).catch(reject);
1100
+ });
1101
+ }
1102
+ });
1103
+ return Promise.all(promises);
1104
+ });
1105
+ return Promise.all(curveBindingPromises).then(function() {
1106
+ resolve(clip);
1107
+ });
1108
+ });
1070
1109
  }).catch(reject);
1071
1110
  });
1072
1111
  };
@@ -1102,6 +1141,7 @@ var AnimatorControllerLoader = /*#__PURE__*/ function(Loader1) {
1102
1141
  var states = stateMachineData.states;
1103
1142
  var stateMachine = layer.stateMachine = new miniprogram.AnimatorStateMachine();
1104
1143
  states.forEach(function(stateData, stateIndex) {
1144
+ var _scriptsObject;
1105
1145
  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;
1106
1146
  var state = stateMachine.addState(name);
1107
1147
  isDefaultState && (stateMachine.defaultState = state);
@@ -1110,7 +1150,7 @@ var AnimatorControllerLoader = /*#__PURE__*/ function(Loader1) {
1110
1150
  state.clipStartTime = clipStartNormalizedTime;
1111
1151
  state.clipEndTime = clipEndNormalizedTime;
1112
1152
  var scriptsObject = JSON.parse(scripts);
1113
- scriptsObject == null ? void 0 : scriptsObject.forEach(function(script) {
1153
+ (_scriptsObject = scriptsObject) == null ? void 0 : _scriptsObject.forEach(function(script) {
1114
1154
  state.addStateMachineScript(miniprogram.Loader.getClass(script));
1115
1155
  });
1116
1156
  if (clipData) {
@@ -1164,10 +1204,10 @@ AnimatorControllerLoader = __decorate([
1164
1204
  function isBase64(url) {
1165
1205
  return /^data:(.+?);base64,/.test(url);
1166
1206
  }
1167
- var BufferLoader = /*#__PURE__*/ function(Loader) {
1168
- _inherits(BufferLoader, Loader);
1207
+ var BufferLoader = /*#__PURE__*/ function(Loader1) {
1208
+ _inherits(BufferLoader, Loader1);
1169
1209
  function BufferLoader() {
1170
- return Loader.apply(this, arguments);
1210
+ return Loader1.apply(this, arguments);
1171
1211
  }
1172
1212
  var _proto = BufferLoader.prototype;
1173
1213
  _proto.load = function load(item) {
@@ -1194,10 +1234,10 @@ BufferLoader = __decorate([
1194
1234
  ], false)
1195
1235
  ], BufferLoader);
1196
1236
 
1197
- var EnvLoader = /*#__PURE__*/ function(Loader) {
1198
- _inherits(EnvLoader, Loader);
1237
+ var EnvLoader = /*#__PURE__*/ function(Loader1) {
1238
+ _inherits(EnvLoader, Loader1);
1199
1239
  function EnvLoader() {
1200
- return Loader.apply(this, arguments);
1240
+ return Loader1.apply(this, arguments);
1201
1241
  }
1202
1242
  var _proto = EnvLoader.prototype;
1203
1243
  _proto.load = function load(item, resourceManager) {
@@ -1206,10 +1246,10 @@ var EnvLoader = /*#__PURE__*/ function(Loader) {
1206
1246
  _this.request(item.url, {
1207
1247
  type: "arraybuffer"
1208
1248
  }).then(function(arraybuffer) {
1209
- var _ref;
1249
+ var _this;
1210
1250
  var shArray = new Float32Array(arraybuffer, 0, 27);
1211
1251
  var shByteLength = 27 * 4;
1212
- var size = (_ref = new Uint16Array(arraybuffer, shByteLength, 1)) == null ? void 0 : _ref[0];
1252
+ var size = (_this = new Uint16Array(arraybuffer, shByteLength, 1)) == null ? void 0 : _this[0];
1213
1253
  var engine = resourceManager.engine;
1214
1254
  var texture = new miniprogram.TextureCube(engine, size);
1215
1255
  texture.filterMode = miniprogram.TextureFilterMode.Trilinear;
@@ -1276,10 +1316,10 @@ function _async_to_generator(fn) {
1276
1316
  };
1277
1317
  }
1278
1318
 
1279
- var FontLoader = /*#__PURE__*/ function(Loader) {
1280
- _inherits(FontLoader, Loader);
1319
+ var FontLoader = /*#__PURE__*/ function(Loader1) {
1320
+ _inherits(FontLoader, Loader1);
1281
1321
  function FontLoader() {
1282
- return Loader.apply(this, arguments);
1322
+ return Loader1.apply(this, arguments);
1283
1323
  }
1284
1324
  var _proto = FontLoader.prototype;
1285
1325
  _proto.load = function load(item, resourceManager) {
@@ -1336,11 +1376,11 @@ FontLoader = __decorate([
1336
1376
 
1337
1377
  /**
1338
1378
  * Product after glTF parser, usually, `defaultSceneRoot` is only needed to use.
1339
- */ var GLTFResource = /*#__PURE__*/ function(ReferResource) {
1340
- _inherits(GLTFResource, ReferResource);
1379
+ */ var GLTFResource = /*#__PURE__*/ function(ReferResource1) {
1380
+ _inherits(GLTFResource, ReferResource1);
1341
1381
  function GLTFResource(engine, url) {
1342
1382
  var _this;
1343
- _this = ReferResource.call(this, engine) || this;
1383
+ _this = ReferResource1.call(this, engine) || this;
1344
1384
  _this.url = url;
1345
1385
  return _this;
1346
1386
  }
@@ -2543,10 +2583,10 @@ var AbstractTranscoder = /*#__PURE__*/ function() {
2543
2583
  };
2544
2584
  }
2545
2585
 
2546
- /** @internal */ var BinomialLLCTranscoder = /*#__PURE__*/ function(AbstractTranscoder) {
2547
- _inherits(BinomialLLCTranscoder, AbstractTranscoder);
2586
+ /** @internal */ var BinomialLLCTranscoder = /*#__PURE__*/ function(AbstractTranscoder1) {
2587
+ _inherits(BinomialLLCTranscoder, AbstractTranscoder1);
2548
2588
  function BinomialLLCTranscoder(workerLimitCount) {
2549
- return AbstractTranscoder.call(this, workerLimitCount);
2589
+ return AbstractTranscoder1.call(this, workerLimitCount);
2550
2590
  }
2551
2591
  var _proto = BinomialLLCTranscoder.prototype;
2552
2592
  _proto._initTranscodeWorkerPool = function _initTranscodeWorkerPool() {
@@ -2723,11 +2763,11 @@ function TranscodeWorkerCode() {
2723
2763
  };
2724
2764
  }
2725
2765
 
2726
- /** @internal */ var KhronosTranscoder = /*#__PURE__*/ function(AbstractTranscoder) {
2727
- _inherits(KhronosTranscoder, AbstractTranscoder);
2766
+ /** @internal */ var KhronosTranscoder = /*#__PURE__*/ function(AbstractTranscoder1) {
2767
+ _inherits(KhronosTranscoder, AbstractTranscoder1);
2728
2768
  function KhronosTranscoder(workerLimitCount, type) {
2729
2769
  var _this;
2730
- _this = AbstractTranscoder.call(this, workerLimitCount) || this;
2770
+ _this = AbstractTranscoder1.call(this, workerLimitCount) || this;
2731
2771
  _this.type = type;
2732
2772
  return _this;
2733
2773
  }
@@ -2795,10 +2835,10 @@ function TranscodeWorkerCode() {
2795
2835
  })();
2796
2836
 
2797
2837
  var _KTX2Loader;
2798
- exports.KTX2Loader = (_KTX2Loader = /*#__PURE__*/ function(Loader) {
2799
- _inherits(KTX2Loader1, Loader);
2838
+ exports.KTX2Loader = (_KTX2Loader = /*#__PURE__*/ function(Loader1) {
2839
+ _inherits(KTX2Loader1, Loader1);
2800
2840
  function KTX2Loader1() {
2801
- return Loader.apply(this, arguments);
2841
+ return Loader1.apply(this, arguments);
2802
2842
  }
2803
2843
  var _proto = KTX2Loader1.prototype;
2804
2844
  _proto.initialize = function initialize(engine, configuration) {
@@ -2854,8 +2894,9 @@ exports.KTX2Loader = (_KTX2Loader = /*#__PURE__*/ function(Loader) {
2854
2894
  this._isBinomialInit = false;
2855
2895
  };
2856
2896
  /** @internal */ KTX2Loader1._parseBuffer = function _parseBuffer(buffer, engine, params) {
2897
+ var _params;
2857
2898
  var ktx2Container = new KTX2Container(buffer);
2858
- var formatPriorities = params == null ? void 0 : params.priorityFormats;
2899
+ var formatPriorities = (_params = params) == null ? void 0 : _params.priorityFormats;
2859
2900
  var targetFormat = exports.KTX2Loader._decideTargetFormat(engine, ktx2Container, formatPriorities);
2860
2901
  var transcodeResultPromise;
2861
2902
  if (exports.KTX2Loader._isBinomialInit || !KhronosTranscoder.transcoderMap[targetFormat] || !ktx2Container.isUASTC) {
@@ -2993,11 +3034,11 @@ exports.KTX2Loader = __decorate([
2993
3034
 
2994
3035
  /**
2995
3036
  * @internal
2996
- */ var GLTFContentRestorer = /*#__PURE__*/ function(ContentRestorer) {
2997
- _inherits(GLTFContentRestorer, ContentRestorer);
3037
+ */ var GLTFContentRestorer = /*#__PURE__*/ function(ContentRestorer1) {
3038
+ _inherits(GLTFContentRestorer, ContentRestorer1);
2998
3039
  function GLTFContentRestorer() {
2999
3040
  var _this;
3000
- _this = ContentRestorer.apply(this, arguments) || this;
3041
+ _this = ContentRestorer1.apply(this, arguments) || this;
3001
3042
  _this.bufferRequests = [];
3002
3043
  _this.glbBufferSlices = [];
3003
3044
  _this.bufferTextures = [];
@@ -3165,24 +3206,6 @@ exports.KTX2Loader = __decorate([
3165
3206
  this.count = count;
3166
3207
  };
3167
3208
 
3168
- function _array_without_holes(arr) {
3169
- if (Array.isArray(arr)) return _array_like_to_array(arr);
3170
- }
3171
-
3172
- function _iterable_to_array(iter) {
3173
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
3174
- return Array.from(iter);
3175
- }
3176
- }
3177
-
3178
- function _non_iterable_spread() {
3179
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3180
- }
3181
-
3182
- function _to_consumable_array(arr) {
3183
- return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
3184
- }
3185
-
3186
3209
  /**
3187
3210
  * Base class of glTF extension parser.
3188
3211
  */ var GLTFExtensionParser = /*#__PURE__*/ function() {
@@ -3249,12 +3272,7 @@ exports.GLTFExtensionMode = void 0;
3249
3272
  var _GLTFParser;
3250
3273
  var extensionName = extensionArray[i];
3251
3274
  var extensionSchema = extensions[extensionName];
3252
- resource = (_GLTFParser = GLTFParser)._createAndParse.apply(_GLTFParser, [
3253
- extensionName,
3254
- context,
3255
- extensionSchema,
3256
- ownerSchema
3257
- ].concat(_to_consumable_array(extra)));
3275
+ resource = (_GLTFParser = GLTFParser)._createAndParse.apply(_GLTFParser, [].concat(extensionName, context, extensionSchema, ownerSchema, extra));
3258
3276
  if (resource) {
3259
3277
  return resource;
3260
3278
  }
@@ -3274,13 +3292,7 @@ exports.GLTFExtensionMode = void 0;
3274
3292
  for(var extensionName in extensions){
3275
3293
  var _GLTFParser;
3276
3294
  var extensionSchema = extensions[extensionName];
3277
- (_GLTFParser = GLTFParser)._additiveParse.apply(_GLTFParser, [
3278
- extensionName,
3279
- context,
3280
- parseResource,
3281
- extensionSchema,
3282
- ownerSchema
3283
- ].concat(_to_consumable_array(extra)));
3295
+ (_GLTFParser = GLTFParser)._additiveParse.apply(_GLTFParser, [].concat(extensionName, context, parseResource, extensionSchema, ownerSchema, extra));
3284
3296
  }
3285
3297
  };
3286
3298
  /**
@@ -3297,8 +3309,9 @@ exports.GLTFExtensionMode = void 0;
3297
3309
  * @param mode - GLTF extension mode
3298
3310
  * @returns GLTF extension parser
3299
3311
  */ GLTFParser.getExtensionParser = function getExtensionParser(extensionName, mode) {
3312
+ var _parsers;
3300
3313
  var parsers = GLTFParser._extensionParsers[extensionName];
3301
- var length = parsers == null ? void 0 : parsers.length;
3314
+ var length = (_parsers = parsers) == null ? void 0 : _parsers.length;
3302
3315
  if (length) {
3303
3316
  // only use the last parser.
3304
3317
  for(var i = length - 1; i >= 0; --i){
@@ -3324,11 +3337,7 @@ exports.GLTFExtensionMode = void 0;
3324
3337
  var parser = GLTFParser.getExtensionParser(extensionName, exports.GLTFExtensionMode.CreateAndParse);
3325
3338
  if (parser) {
3326
3339
  var _parser;
3327
- return (_parser = parser).createAndParse.apply(_parser, [
3328
- context,
3329
- extensionSchema,
3330
- ownerSchema
3331
- ].concat(_to_consumable_array(extra)));
3340
+ return (_parser = parser).createAndParse.apply(_parser, [].concat(context, extensionSchema, ownerSchema, extra));
3332
3341
  }
3333
3342
  };
3334
3343
  GLTFParser._additiveParse = function _additiveParse(extensionName, context, parseResource, extensionSchema, ownerSchema) {
@@ -3338,12 +3347,7 @@ exports.GLTFExtensionMode = void 0;
3338
3347
  var parser = GLTFParser.getExtensionParser(extensionName, exports.GLTFExtensionMode.AdditiveParse);
3339
3348
  if (parser) {
3340
3349
  var _parser;
3341
- (_parser = parser).additiveParse.apply(_parser, [
3342
- context,
3343
- parseResource,
3344
- extensionSchema,
3345
- ownerSchema
3346
- ].concat(_to_consumable_array(extra)));
3350
+ (_parser = parser).additiveParse.apply(_parser, [].concat(context, parseResource, extensionSchema, ownerSchema, extra));
3347
3351
  }
3348
3352
  };
3349
3353
  return GLTFParser;
@@ -3362,10 +3366,10 @@ exports.GLTFExtensionMode = void 0;
3362
3366
  };
3363
3367
  }
3364
3368
 
3365
- exports.GLTFSchemaParser = /*#__PURE__*/ function(GLTFParser) {
3366
- _inherits(GLTFSchemaParser, GLTFParser);
3369
+ exports.GLTFSchemaParser = /*#__PURE__*/ function(GLTFParser1) {
3370
+ _inherits(GLTFSchemaParser, GLTFParser1);
3367
3371
  function GLTFSchemaParser() {
3368
- return GLTFParser.apply(this, arguments);
3372
+ return GLTFParser1.apply(this, arguments);
3369
3373
  }
3370
3374
  var _proto = GLTFSchemaParser.prototype;
3371
3375
  _proto.parse = function parse(context) {
@@ -3581,10 +3585,10 @@ exports.GLTFAnimationParser = __decorate([
3581
3585
  registerGLTFParser(exports.GLTFParserType.Animation)
3582
3586
  ], exports.GLTFAnimationParser);
3583
3587
 
3584
- exports.GLTFBufferParser = /*#__PURE__*/ function(GLTFParser) {
3585
- _inherits(GLTFBufferParser, GLTFParser);
3588
+ exports.GLTFBufferParser = /*#__PURE__*/ function(GLTFParser1) {
3589
+ _inherits(GLTFBufferParser, GLTFParser1);
3586
3590
  function GLTFBufferParser() {
3587
- return GLTFParser.apply(this, arguments);
3591
+ return GLTFParser1.apply(this, arguments);
3588
3592
  }
3589
3593
  var _proto = GLTFBufferParser.prototype;
3590
3594
  _proto.parse = function parse(context, index) {
@@ -4206,10 +4210,10 @@ exports.GLTFSceneParser = __decorate([
4206
4210
  registerGLTFParser(exports.GLTFParserType.Scene)
4207
4211
  ], exports.GLTFSceneParser);
4208
4212
 
4209
- exports.GLTFSkinParser = /*#__PURE__*/ function(GLTFParser) {
4210
- _inherits(GLTFSkinParser, GLTFParser);
4213
+ exports.GLTFSkinParser = /*#__PURE__*/ function(GLTFParser1) {
4214
+ _inherits(GLTFSkinParser, GLTFParser1);
4211
4215
  function GLTFSkinParser() {
4212
- return GLTFParser.apply(this, arguments);
4216
+ return GLTFParser1.apply(this, arguments);
4213
4217
  }
4214
4218
  var _proto = GLTFSkinParser.prototype;
4215
4219
  _proto.parse = function parse(context, index) {
@@ -4305,6 +4309,7 @@ exports.GLTFTextureParser = (_GLTFTextureParser = /*#__PURE__*/ function(GLTFPar
4305
4309
  var useSampler = sampler !== undefined;
4306
4310
  var samplerInfo = sampler !== undefined && GLTFUtils.getSamplerInfo(glTF.samplers[sampler]);
4307
4311
  if (uri) {
4312
+ var _samplerInfo;
4308
4313
  // TODO: deleted in 2.0
4309
4314
  var extIndex = uri.lastIndexOf(".");
4310
4315
  var ext = uri.substring(extIndex + 1);
@@ -4313,7 +4318,7 @@ exports.GLTFTextureParser = (_GLTFTextureParser = /*#__PURE__*/ function(GLTFPar
4313
4318
  url: miniprogram.Utils.resolveAbsoluteUrl(url, uri),
4314
4319
  type: type,
4315
4320
  params: {
4316
- mipmap: samplerInfo == null ? void 0 : samplerInfo.mipmap
4321
+ mipmap: (_samplerInfo = samplerInfo) == null ? void 0 : _samplerInfo.mipmap
4317
4322
  }
4318
4323
  }).then(function(texture) {
4319
4324
  var _texture;
@@ -4327,7 +4332,8 @@ exports.GLTFTextureParser = (_GLTFTextureParser = /*#__PURE__*/ function(GLTFPar
4327
4332
  var buffer = buffers[bufferView.buffer];
4328
4333
  var imageBuffer = new Uint8Array(buffer, bufferView.byteOffset, bufferView.byteLength);
4329
4334
  return GLTFUtils.loadImageBuffer(imageBuffer, mimeType).then(function(image) {
4330
- var texture = new miniprogram.Texture2D(engine, image.width, image.height, undefined, samplerInfo == null ? void 0 : samplerInfo.mipmap);
4335
+ var _samplerInfo;
4336
+ var texture = new miniprogram.Texture2D(engine, image.width, image.height, undefined, (_samplerInfo = samplerInfo) == null ? void 0 : _samplerInfo.mipmap);
4331
4337
  texture.setImageSource(image);
4332
4338
  texture.generateMipmaps();
4333
4339
  texture.name = textureName || imageName || "texture_" + index;
@@ -4391,17 +4397,18 @@ exports.GLTFValidator = __decorate([
4391
4397
  registerGLTFParser(exports.GLTFParserType.Validator)
4392
4398
  ], exports.GLTFValidator);
4393
4399
 
4394
- var GLTFLoader = /*#__PURE__*/ function(Loader) {
4395
- _inherits(GLTFLoader, Loader);
4400
+ var GLTFLoader = /*#__PURE__*/ function(Loader1) {
4401
+ _inherits(GLTFLoader, Loader1);
4396
4402
  function GLTFLoader() {
4397
- return Loader.apply(this, arguments);
4403
+ return Loader1.apply(this, arguments);
4398
4404
  }
4399
4405
  var _proto = GLTFLoader.prototype;
4400
4406
  _proto.load = function load(item, resourceManager) {
4407
+ var _params;
4401
4408
  var url = item.url;
4402
4409
  var params = item.params;
4403
4410
  var glTFResource = new GLTFResource(resourceManager.engine, url);
4404
- var context = new GLTFParserContext(glTFResource, resourceManager, !!(params == null ? void 0 : params.keepMeshData));
4411
+ var context = new GLTFParserContext(glTFResource, resourceManager, !!((_params = params) == null ? void 0 : _params.keepMeshData));
4405
4412
  return context.parse();
4406
4413
  };
4407
4414
  return GLTFLoader;
@@ -4415,10 +4422,10 @@ GLTFLoader = __decorate([
4415
4422
 
4416
4423
  var _HDRLoader;
4417
4424
  var PI = Math.PI;
4418
- var HDRLoader = (_HDRLoader = /*#__PURE__*/ function(Loader) {
4419
- _inherits(HDRLoader1, Loader);
4425
+ var HDRLoader = (_HDRLoader = /*#__PURE__*/ function(Loader1) {
4426
+ _inherits(HDRLoader1, Loader1);
4420
4427
  function HDRLoader1() {
4421
- return Loader.apply(this, arguments);
4428
+ return Loader1.apply(this, arguments);
4422
4429
  }
4423
4430
  var _proto = HDRLoader1.prototype;
4424
4431
  _proto.load = function load(item, resourceManager) {
@@ -4729,10 +4736,10 @@ HDRLoader = __decorate([
4729
4736
  ])
4730
4737
  ], HDRLoader);
4731
4738
 
4732
- var JSONLoader = /*#__PURE__*/ function(Loader) {
4733
- _inherits(JSONLoader, Loader);
4739
+ var JSONLoader = /*#__PURE__*/ function(Loader1) {
4740
+ _inherits(JSONLoader, Loader1);
4734
4741
  function JSONLoader() {
4735
- return Loader.apply(this, arguments);
4742
+ return Loader1.apply(this, arguments);
4736
4743
  }
4737
4744
  var _proto = JSONLoader.prototype;
4738
4745
  _proto.load = function load(item) {
@@ -4933,10 +4940,10 @@ function parseCubeKTX(dataArray) {
4933
4940
  };
4934
4941
  }
4935
4942
 
4936
- var KTXCubeLoader = /*#__PURE__*/ function(Loader) {
4937
- _inherits(KTXCubeLoader, Loader);
4943
+ var KTXCubeLoader = /*#__PURE__*/ function(Loader1) {
4944
+ _inherits(KTXCubeLoader, Loader1);
4938
4945
  function KTXCubeLoader() {
4939
- return Loader.apply(this, arguments);
4946
+ return Loader1.apply(this, arguments);
4940
4947
  }
4941
4948
  var _proto = KTXCubeLoader.prototype;
4942
4949
  _proto.load = function load(item, resourceManager) {
@@ -4970,10 +4977,10 @@ KTXCubeLoader = __decorate([
4970
4977
  miniprogram.resourceLoader(miniprogram.AssetType.KTXCube, [])
4971
4978
  ], KTXCubeLoader);
4972
4979
 
4973
- var KTXLoader = /*#__PURE__*/ function(Loader) {
4974
- _inherits(KTXLoader, Loader);
4980
+ var KTXLoader = /*#__PURE__*/ function(Loader1) {
4981
+ _inherits(KTXLoader, Loader1);
4975
4982
  function KTXLoader() {
4976
- return Loader.apply(this, arguments);
4983
+ return Loader1.apply(this, arguments);
4977
4984
  }
4978
4985
  var _proto = KTXLoader.prototype;
4979
4986
  _proto.load = function load(item, resourceManager) {
@@ -5013,10 +5020,10 @@ function parseProperty(object, key, value) {
5013
5020
  object[key] = value;
5014
5021
  }
5015
5022
  }
5016
- var MaterialLoader = /*#__PURE__*/ function(Loader) {
5017
- _inherits(MaterialLoader, Loader);
5023
+ var MaterialLoader = /*#__PURE__*/ function(Loader1) {
5024
+ _inherits(MaterialLoader, Loader1);
5018
5025
  function MaterialLoader() {
5019
- return Loader.apply(this, arguments);
5026
+ return Loader1.apply(this, arguments);
5020
5027
  }
5021
5028
  var _proto = MaterialLoader.prototype;
5022
5029
  _proto.load = function load(item, resourceManager) {
@@ -5081,10 +5088,10 @@ MaterialLoader = __decorate([
5081
5088
  ])
5082
5089
  ], MaterialLoader);
5083
5090
 
5084
- var MeshLoader = /*#__PURE__*/ function(Loader) {
5085
- _inherits(MeshLoader, Loader);
5091
+ var MeshLoader = /*#__PURE__*/ function(Loader1) {
5092
+ _inherits(MeshLoader, Loader1);
5086
5093
  function MeshLoader() {
5087
- return Loader.apply(this, arguments);
5094
+ return Loader1.apply(this, arguments);
5088
5095
  }
5089
5096
  var _proto = MeshLoader.prototype;
5090
5097
  _proto.load = function load(item, resourceManager) {
@@ -5107,10 +5114,10 @@ MeshLoader = __decorate([
5107
5114
  ])
5108
5115
  ], MeshLoader);
5109
5116
 
5110
- var SourceFontLoader = /*#__PURE__*/ function(Loader) {
5111
- _inherits(SourceFontLoader, Loader);
5117
+ var SourceFontLoader = /*#__PURE__*/ function(Loader1) {
5118
+ _inherits(SourceFontLoader, Loader1);
5112
5119
  function SourceFontLoader() {
5113
- return Loader.apply(this, arguments);
5120
+ return Loader1.apply(this, arguments);
5114
5121
  }
5115
5122
  var _proto = SourceFontLoader.prototype;
5116
5123
  _proto.load = function load(item, resourceManager) {
@@ -5156,11 +5163,11 @@ SourceFontLoader = __decorate([
5156
5163
  ], false)
5157
5164
  ], SourceFontLoader);
5158
5165
 
5159
- var SpriteAtlasLoader = /*#__PURE__*/ function(Loader) {
5160
- _inherits(SpriteAtlasLoader, Loader);
5166
+ var SpriteAtlasLoader = /*#__PURE__*/ function(Loader1) {
5167
+ _inherits(SpriteAtlasLoader, Loader1);
5161
5168
  function SpriteAtlasLoader() {
5162
5169
  var _this;
5163
- _this = Loader.apply(this, arguments) || this;
5170
+ _this = Loader1.apply(this, arguments) || this;
5164
5171
  _this._tempRect = new miniprogram$1.Rect();
5165
5172
  _this._tempVec2 = new miniprogram$1.Vector2();
5166
5173
  _this._tempVec4 = new miniprogram$1.Vector4();
@@ -5248,10 +5255,10 @@ SpriteAtlasLoader = __decorate([
5248
5255
  ], false)
5249
5256
  ], SpriteAtlasLoader);
5250
5257
 
5251
- var SpriteLoader = /*#__PURE__*/ function(Loader) {
5252
- _inherits(SpriteLoader, Loader);
5258
+ var SpriteLoader = /*#__PURE__*/ function(Loader1) {
5259
+ _inherits(SpriteLoader, Loader1);
5253
5260
  function SpriteLoader() {
5254
- return Loader.apply(this, arguments);
5261
+ return Loader1.apply(this, arguments);
5255
5262
  }
5256
5263
  var _proto = SpriteLoader.prototype;
5257
5264
  _proto.load = function load(item, resourceManager) {
@@ -5286,11 +5293,11 @@ SpriteLoader = __decorate([
5286
5293
 
5287
5294
  /**
5288
5295
  * @internal
5289
- */ var Texture2DContentRestorer = /*#__PURE__*/ function(ContentRestorer) {
5290
- _inherits(Texture2DContentRestorer, ContentRestorer);
5296
+ */ var Texture2DContentRestorer = /*#__PURE__*/ function(ContentRestorer1) {
5297
+ _inherits(Texture2DContentRestorer, ContentRestorer1);
5291
5298
  function Texture2DContentRestorer(resource, url, requestConfig) {
5292
5299
  var _this;
5293
- _this = ContentRestorer.call(this, resource) || this;
5300
+ _this = ContentRestorer1.call(this, resource) || this;
5294
5301
  _this.url = url;
5295
5302
  _this.requestConfig = requestConfig;
5296
5303
  return _this;
@@ -5308,10 +5315,10 @@ SpriteLoader = __decorate([
5308
5315
  return Texture2DContentRestorer;
5309
5316
  }(miniprogram.ContentRestorer);
5310
5317
 
5311
- var Texture2DLoader = /*#__PURE__*/ function(Loader) {
5312
- _inherits(Texture2DLoader, Loader);
5318
+ var Texture2DLoader = /*#__PURE__*/ function(Loader1) {
5319
+ _inherits(Texture2DLoader, Loader1);
5313
5320
  function Texture2DLoader() {
5314
- return Loader.apply(this, arguments);
5321
+ return Loader1.apply(this, arguments);
5315
5322
  }
5316
5323
  var _proto = Texture2DLoader.prototype;
5317
5324
  _proto.load = function load(item, resourceManager) {
@@ -5322,8 +5329,9 @@ var Texture2DLoader = /*#__PURE__*/ function(Loader) {
5322
5329
  type: "image"
5323
5330
  });
5324
5331
  _this.request(url, requestConfig).then(function(image) {
5332
+ var _params, _params1;
5325
5333
  var params = item.params;
5326
- var texture = new miniprogram.Texture2D(resourceManager.engine, image.width, image.height, params == null ? void 0 : params.format, params == null ? void 0 : params.mipmap);
5334
+ var texture = new miniprogram.Texture2D(resourceManager.engine, image.width, image.height, (_params = params) == null ? void 0 : _params.format, (_params1 = params) == null ? void 0 : _params1.mipmap);
5327
5335
  texture.setImageSource(image);
5328
5336
  texture.generateMipmaps();
5329
5337
  if (url.indexOf("data:") !== 0) {
@@ -5350,11 +5358,11 @@ Texture2DLoader = __decorate([
5350
5358
 
5351
5359
  /**
5352
5360
  * @internal
5353
- */ var TextureCubeContentRestorer = /*#__PURE__*/ function(ContentRestorer) {
5354
- _inherits(TextureCubeContentRestorer, ContentRestorer);
5361
+ */ var TextureCubeContentRestorer = /*#__PURE__*/ function(ContentRestorer1) {
5362
+ _inherits(TextureCubeContentRestorer, ContentRestorer1);
5355
5363
  function TextureCubeContentRestorer(resource, urls, requestConfig) {
5356
5364
  var _this;
5357
- _this = ContentRestorer.call(this, resource) || this;
5365
+ _this = ContentRestorer1.call(this, resource) || this;
5358
5366
  _this.urls = urls;
5359
5367
  _this.requestConfig = requestConfig;
5360
5368
  return _this;
@@ -5380,10 +5388,10 @@ Texture2DLoader = __decorate([
5380
5388
  return TextureCubeContentRestorer;
5381
5389
  }(miniprogram.ContentRestorer);
5382
5390
 
5383
- var TextureCubeLoader = /*#__PURE__*/ function(Loader) {
5384
- _inherits(TextureCubeLoader, Loader);
5391
+ var TextureCubeLoader = /*#__PURE__*/ function(Loader1) {
5392
+ _inherits(TextureCubeLoader, Loader1);
5385
5393
  function TextureCubeLoader() {
5386
- return Loader.apply(this, arguments);
5394
+ return Loader1.apply(this, arguments);
5387
5395
  }
5388
5396
  var _proto = TextureCubeLoader.prototype;
5389
5397
  _proto.load = function load(item, resourceManager) {
@@ -5421,10 +5429,10 @@ TextureCubeLoader = __decorate([
5421
5429
  ])
5422
5430
  ], TextureCubeLoader);
5423
5431
 
5424
- var SceneLoader = /*#__PURE__*/ function(Loader) {
5425
- _inherits(SceneLoader, Loader);
5432
+ var SceneLoader = /*#__PURE__*/ function(Loader1) {
5433
+ _inherits(SceneLoader, Loader1);
5426
5434
  function SceneLoader() {
5427
- return Loader.apply(this, arguments);
5435
+ return Loader1.apply(this, arguments);
5428
5436
  }
5429
5437
  var _proto = SceneLoader.prototype;
5430
5438
  _proto.load = function load(item, resourceManager) {
@@ -5518,7 +5526,7 @@ var SceneLoader = /*#__PURE__*/ function(Loader) {
5518
5526
  }(miniprogram.Loader);
5519
5527
  SceneLoader = __decorate([
5520
5528
  miniprogram.resourceLoader(miniprogram.AssetType.Scene, [
5521
- "prefab"
5529
+ "scene"
5522
5530
  ], true)
5523
5531
  ], SceneLoader);
5524
5532
  ReflectionParser.registerCustomParseComponent("TextRenderer", /*#__PURE__*/ _async_to_generator(function(instance, item, engine) {
@@ -5537,10 +5545,10 @@ ReflectionParser.registerCustomParseComponent("TextRenderer", /*#__PURE__*/ _asy
5537
5545
  }));
5538
5546
 
5539
5547
  var _KHR_draco_mesh_compression;
5540
- var KHR_draco_mesh_compression = (_KHR_draco_mesh_compression = /*#__PURE__*/ function(GLTFExtensionParser) {
5541
- _inherits(KHR_draco_mesh_compression1, GLTFExtensionParser);
5548
+ var KHR_draco_mesh_compression = (_KHR_draco_mesh_compression = /*#__PURE__*/ function(GLTFExtensionParser1) {
5549
+ _inherits(KHR_draco_mesh_compression1, GLTFExtensionParser1);
5542
5550
  function KHR_draco_mesh_compression1() {
5543
- return GLTFExtensionParser.apply(this, arguments);
5551
+ return GLTFExtensionParser1.apply(this, arguments);
5544
5552
  }
5545
5553
  var _proto = KHR_draco_mesh_compression1.prototype;
5546
5554
  _proto.createAndParse = function createAndParse(context, schema, glTFPrimitive, glTFMesh) {
@@ -5700,10 +5708,10 @@ KHR_draco_mesh_compression = __decorate([
5700
5708
  registerGLTFExtension("KHR_draco_mesh_compression", exports.GLTFExtensionMode.CreateAndParse)
5701
5709
  ], KHR_draco_mesh_compression);
5702
5710
 
5703
- var KHR_lights_punctual = /*#__PURE__*/ function(GLTFExtensionParser) {
5704
- _inherits(KHR_lights_punctual, GLTFExtensionParser);
5711
+ var KHR_lights_punctual = /*#__PURE__*/ function(GLTFExtensionParser1) {
5712
+ _inherits(KHR_lights_punctual, GLTFExtensionParser1);
5705
5713
  function KHR_lights_punctual() {
5706
- return GLTFExtensionParser.apply(this, arguments);
5714
+ return GLTFExtensionParser1.apply(this, arguments);
5707
5715
  }
5708
5716
  var _proto = KHR_lights_punctual.prototype;
5709
5717
  _proto.additiveParse = function additiveParse(context, entity, extensionSchema) {
@@ -5741,10 +5749,10 @@ KHR_lights_punctual = __decorate([
5741
5749
  registerGLTFExtension("KHR_lights_punctual", exports.GLTFExtensionMode.AdditiveParse)
5742
5750
  ], KHR_lights_punctual);
5743
5751
 
5744
- var KHR_materials_clearcoat = /*#__PURE__*/ function(GLTFExtensionParser) {
5745
- _inherits(KHR_materials_clearcoat, GLTFExtensionParser);
5752
+ var KHR_materials_clearcoat = /*#__PURE__*/ function(GLTFExtensionParser1) {
5753
+ _inherits(KHR_materials_clearcoat, GLTFExtensionParser1);
5746
5754
  function KHR_materials_clearcoat() {
5747
- return GLTFExtensionParser.apply(this, arguments);
5755
+ return GLTFExtensionParser1.apply(this, arguments);
5748
5756
  }
5749
5757
  var _proto = KHR_materials_clearcoat.prototype;
5750
5758
  _proto.additiveParse = function additiveParse(context, material, schema) {
@@ -5776,10 +5784,10 @@ KHR_materials_clearcoat = __decorate([
5776
5784
  registerGLTFExtension("KHR_materials_clearcoat", exports.GLTFExtensionMode.AdditiveParse)
5777
5785
  ], KHR_materials_clearcoat);
5778
5786
 
5779
- var KHR_materials_ior = /*#__PURE__*/ function(GLTFExtensionParser) {
5780
- _inherits(KHR_materials_ior, GLTFExtensionParser);
5787
+ var KHR_materials_ior = /*#__PURE__*/ function(GLTFExtensionParser1) {
5788
+ _inherits(KHR_materials_ior, GLTFExtensionParser1);
5781
5789
  function KHR_materials_ior() {
5782
- return GLTFExtensionParser.apply(this, arguments);
5790
+ return GLTFExtensionParser1.apply(this, arguments);
5783
5791
  }
5784
5792
  var _proto = KHR_materials_ior.prototype;
5785
5793
  _proto.additiveParse = function additiveParse(context, material, schema) {
@@ -5792,10 +5800,10 @@ KHR_materials_ior = __decorate([
5792
5800
  registerGLTFExtension("KHR_materials_ior", exports.GLTFExtensionMode.AdditiveParse)
5793
5801
  ], KHR_materials_ior);
5794
5802
 
5795
- var KHR_materials_pbrSpecularGlossiness = /*#__PURE__*/ function(GLTFExtensionParser) {
5796
- _inherits(KHR_materials_pbrSpecularGlossiness, GLTFExtensionParser);
5803
+ var KHR_materials_pbrSpecularGlossiness = /*#__PURE__*/ function(GLTFExtensionParser1) {
5804
+ _inherits(KHR_materials_pbrSpecularGlossiness, GLTFExtensionParser1);
5797
5805
  function KHR_materials_pbrSpecularGlossiness() {
5798
- return GLTFExtensionParser.apply(this, arguments);
5806
+ return GLTFExtensionParser1.apply(this, arguments);
5799
5807
  }
5800
5808
  var _proto = KHR_materials_pbrSpecularGlossiness.prototype;
5801
5809
  _proto.createAndParse = function createAndParse(context, schema, ownerSchema) {
@@ -5833,10 +5841,10 @@ KHR_materials_pbrSpecularGlossiness = __decorate([
5833
5841
  registerGLTFExtension("KHR_materials_pbrSpecularGlossiness", exports.GLTFExtensionMode.CreateAndParse)
5834
5842
  ], KHR_materials_pbrSpecularGlossiness);
5835
5843
 
5836
- var KHR_materials_unlit = /*#__PURE__*/ function(GLTFExtensionParser) {
5837
- _inherits(KHR_materials_unlit, GLTFExtensionParser);
5844
+ var KHR_materials_unlit = /*#__PURE__*/ function(GLTFExtensionParser1) {
5845
+ _inherits(KHR_materials_unlit, GLTFExtensionParser1);
5838
5846
  function KHR_materials_unlit() {
5839
- return GLTFExtensionParser.apply(this, arguments);
5847
+ return GLTFExtensionParser1.apply(this, arguments);
5840
5848
  }
5841
5849
  var _proto = KHR_materials_unlit.prototype;
5842
5850
  _proto.createAndParse = function createAndParse(context, _, ownerSchema) {
@@ -5852,10 +5860,10 @@ KHR_materials_unlit = __decorate([
5852
5860
  registerGLTFExtension("KHR_materials_unlit", exports.GLTFExtensionMode.CreateAndParse)
5853
5861
  ], KHR_materials_unlit);
5854
5862
 
5855
- var KHR_materials_variants = /*#__PURE__*/ function(GLTFExtensionParser) {
5856
- _inherits(KHR_materials_variants, GLTFExtensionParser);
5863
+ var KHR_materials_variants = /*#__PURE__*/ function(GLTFExtensionParser1) {
5864
+ _inherits(KHR_materials_variants, GLTFExtensionParser1);
5857
5865
  function KHR_materials_variants() {
5858
- return GLTFExtensionParser.apply(this, arguments);
5866
+ return GLTFExtensionParser1.apply(this, arguments);
5859
5867
  }
5860
5868
  var _proto = KHR_materials_variants.prototype;
5861
5869
  _proto.additiveParse = function additiveParse(context, renderer, schema) {
@@ -5885,10 +5893,10 @@ KHR_materials_variants = __decorate([
5885
5893
  registerGLTFExtension("KHR_materials_variants", exports.GLTFExtensionMode.AdditiveParse)
5886
5894
  ], KHR_materials_variants);
5887
5895
 
5888
- var KHR_mesh_quantization = /*#__PURE__*/ function(GLTFExtensionParser) {
5889
- _inherits(KHR_mesh_quantization, GLTFExtensionParser);
5896
+ var KHR_mesh_quantization = /*#__PURE__*/ function(GLTFExtensionParser1) {
5897
+ _inherits(KHR_mesh_quantization, GLTFExtensionParser1);
5890
5898
  function KHR_mesh_quantization() {
5891
- return GLTFExtensionParser.apply(this, arguments);
5899
+ return GLTFExtensionParser1.apply(this, arguments);
5892
5900
  }
5893
5901
  return KHR_mesh_quantization;
5894
5902
  }(GLTFExtensionParser);
@@ -5896,10 +5904,10 @@ KHR_mesh_quantization = __decorate([
5896
5904
  registerGLTFExtension("KHR_mesh_quantization", exports.GLTFExtensionMode.AdditiveParse)
5897
5905
  ], KHR_mesh_quantization);
5898
5906
 
5899
- var KHR_texture_basisu = /*#__PURE__*/ function(GLTFExtensionParser) {
5900
- _inherits(KHR_texture_basisu, GLTFExtensionParser);
5907
+ var KHR_texture_basisu = /*#__PURE__*/ function(GLTFExtensionParser1) {
5908
+ _inherits(KHR_texture_basisu, GLTFExtensionParser1);
5901
5909
  function KHR_texture_basisu() {
5902
- return GLTFExtensionParser.apply(this, arguments);
5910
+ return GLTFExtensionParser1.apply(this, arguments);
5903
5911
  }
5904
5912
  var _proto = KHR_texture_basisu.prototype;
5905
5913
  _proto.createAndParse = function createAndParse(context, schema, textureInfo) {
@@ -5959,10 +5967,10 @@ KHR_texture_basisu = __decorate([
5959
5967
  registerGLTFExtension("KHR_texture_basisu", exports.GLTFExtensionMode.CreateAndParse)
5960
5968
  ], KHR_texture_basisu);
5961
5969
 
5962
- var KHR_texture_transform = /*#__PURE__*/ function(GLTFExtensionParser) {
5963
- _inherits(KHR_texture_transform, GLTFExtensionParser);
5970
+ var KHR_texture_transform = /*#__PURE__*/ function(GLTFExtensionParser1) {
5971
+ _inherits(KHR_texture_transform, GLTFExtensionParser1);
5964
5972
  function KHR_texture_transform() {
5965
- return GLTFExtensionParser.apply(this, arguments);
5973
+ return GLTFExtensionParser1.apply(this, arguments);
5966
5974
  }
5967
5975
  var _proto = KHR_texture_transform.prototype;
5968
5976
  _proto.additiveParse = function additiveParse(context, material, schema) {
@@ -5988,10 +5996,10 @@ KHR_texture_transform = __decorate([
5988
5996
  registerGLTFExtension("KHR_texture_transform", exports.GLTFExtensionMode.AdditiveParse)
5989
5997
  ], KHR_texture_transform);
5990
5998
 
5991
- var GALACEAN_materials_remap = /*#__PURE__*/ function(GLTFExtensionParser) {
5992
- _inherits(GALACEAN_materials_remap, GLTFExtensionParser);
5999
+ var GALACEAN_materials_remap = /*#__PURE__*/ function(GLTFExtensionParser1) {
6000
+ _inherits(GALACEAN_materials_remap, GLTFExtensionParser1);
5993
6001
  function GALACEAN_materials_remap() {
5994
- return GLTFExtensionParser.apply(this, arguments);
6002
+ return GLTFExtensionParser1.apply(this, arguments);
5995
6003
  }
5996
6004
  var _proto = GALACEAN_materials_remap.prototype;
5997
6005
  _proto.createAndParse = function createAndParse(context, schema) {
@@ -6005,10 +6013,10 @@ GALACEAN_materials_remap = __decorate([
6005
6013
  registerGLTFExtension("GALACEAN_materials_remap", exports.GLTFExtensionMode.CreateAndParse)
6006
6014
  ], GALACEAN_materials_remap);
6007
6015
 
6008
- var GALACEAN_animation_event = /*#__PURE__*/ function(GLTFExtensionParser) {
6009
- _inherits(GALACEAN_animation_event, GLTFExtensionParser);
6016
+ var GALACEAN_animation_event = /*#__PURE__*/ function(GLTFExtensionParser1) {
6017
+ _inherits(GALACEAN_animation_event, GLTFExtensionParser1);
6010
6018
  function GALACEAN_animation_event() {
6011
- return GLTFExtensionParser.apply(this, arguments);
6019
+ return GLTFExtensionParser1.apply(this, arguments);
6012
6020
  }
6013
6021
  var _proto = GALACEAN_animation_event.prototype;
6014
6022
  _proto.additiveParse = function additiveParse(context, animationClip, schema) {